code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
/*********************************************************************** * Copyright (c) 2013-2015 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 which * accompanies this distribution and is ...
vpipkt/geomesa
geomesa-convert/geomesa-convert-json/src/main/scala/org/locationtech/geomesa/convert/json/JsonSimpleFeatureConverter.scala
Scala
apache-2.0
7,595
object traverser1 { import org.mentha.tools.archimate.model._ import org.mentha.tools.archimate.model.edges._ import org.mentha.tools.archimate.model.nodes.dsl._ import org.mentha.tools.archimate.model.nodes.dsl.Business._ import org.mentha.tools.archimate.model.nodes.dsl.Motivation._ import org.mentha.too...
zhuj/mentha-web-archimate
junk/src/test/scala/traverser1.scala
Scala
mit
2,773
import sbt._ import Keys._ object InfoSettings { type Sett = Project.Setting[_] def all = Seq[Sett](versioninfo) val versioninfo = sourceGenerators in Compile <+= (sourceManaged in Compile, version, name) map { (d, v, n) => val file = d / "info.scala" IO.write(file, """package com.nicta ...
NICTA/trackfunction
project/InfoSettings.scala
Scala
bsd-3-clause
574
/* Copyright (c) 2016, Rice University Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2....
agrippa/spark-swat
swat/src/test/scala/org/apache/spark/rdd/cl/tests/AsyncPrimitiveArrayInputTest.scala
Scala
bsd-3-clause
3,015
package com.twitter.finagle.http.filter import com.twitter.finagle.{Service, SimpleFilter} import com.twitter.finagle.http.{MediaType, Method, Request, Response} import com.twitter.util.Future import com.twitter.io.Buf /** * JSONP (callback) filter * * Wrap JSON content in <callback>(<content>); * * See: http://...
mkhq/finagle
finagle-http/src/main/scala/com/twitter/finagle/http/filter/JsonpFilter.scala
Scala
apache-2.0
2,110
package packa import org.junit.Test class TestA { @Test def testMethod(): Unit = {} } class TestA1 { @Test def testMethod1(): Unit = {} @Test def testMethod2(): Unit = {} }
Kwestor/scala-ide
org.scala-ide.sdt.core.tests/test-workspace/test-finder/src/packa/TestA.scala
Scala
bsd-3-clause
190
package com.szadowsz.gospel.core.engine.subgoal import com.szadowsz.gospel.core.data.Term import com.szadowsz.gospel.core.engine.subgoal.tree.{SubGoalLeaf, SubGoalTree} /** Class to hold sub-goal clauses to evaluate * * Main Constructor takes an existing Sub-Goal Tree generally * generated by a ClauseInfo objec...
zakski/project-soisceal
scala-core/src/main/scala/com/szadowsz/gospel/core/engine/subgoal/SubGoalStore.scala
Scala
lgpl-3.0
2,424
package uk.gov.gds.ier.service import com.google.inject.Inject import uk.gov.gds.ier.model.Country import uk.gov.gds.ier.transaction.ordinary.InprogressOrdinary import uk.gov.gds.ier.validation.{DateValidator, CountryValidator} import uk.gov.gds.ier.validation.constants.DateOfBirthConstants class ScotlandService @Inj...
alphagov/ier-frontend
app/uk/gov/gds/ier/service/ScotlandService.scala
Scala
mit
3,665
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600/v2/B93.scala
Scala
apache-2.0
1,232
/* * Copyright 2020 Precog Data * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
djspiewak/quasar
connector/src/main/scala/quasar/connector/package.scala
Scala
apache-2.0
924
package jp.ne.opt.chronoscala import java.time._ import java.util.TimeZone import org.scalacheck.Gen import Gens.timeZoneIds trait Gens { def instantGen: Gen[Instant] = Gen.chooseNum(0L, Long.MaxValue).map(Instant.ofEpochMilli) def localDateGen: Gen[LocalDate] = for { year <- Gen.chooseNum(Year.MIN_VALUE, Y...
opt-tech/chronoscala
shared/src/test/scala/jp/ne/opt/chronoscala/Gens.scala
Scala
mit
1,570
package org.flowpaint.filters import org.flowpaint.property.{DataImpl, Data} import org.flowpaint.util.{MathUtils, DataSample, PropertyRegister} /** * Removes segments with zero length, and merges their properties with subsequent points * * @author Hans Haggstrom */ class ZeroLengthSegmentFilter extends PathProc...
zzorn/flowpaint
src/main/scala/org/flowpaint/filters/ZeroLengthSegmentFilter.scala
Scala
gpl-2.0
2,581
/*§ =========================================================================== GraphsJ - SDK =========================================================================== Copyright (C) 2009-2016 Gianluca Costa =========================================================================== Licensed under the Apac...
giancosta86/GraphsJ-sdk
src/main/scala/info/gianlucacosta/graphsj/NopOutputConsole.scala
Scala
apache-2.0
1,251
package com.github.meln1k.reactive.telegrambot.api import java.util.UUID import com.github.meln1k.reactive.telegrambot.methods.ApiMethod /** * Class representing request to api * @param id unique id of the request * @param method request method */ case class ApiRequest(method: ApiMethod, id: UUID = UUID.randomUU...
meln1k/reactive-telegrambot
src/main/scala/com/github/meln1k/reactive/telegrambot/api/ApiRequest.scala
Scala
mit
326
package antonkulaga.projects.stats import java.io.FileInputStream import ammonite.ops.{LsSeq, read, Path} import org.w3.banana.io.{RDFXML, RDFReader} import org.w3.banana.sesame.Sesame import org.w3.banana.{RDFOps, RDF} import org.w3.banana.util.tryInstances._ import scala.util._ import scalaz.{Monad, Comonad} abstr...
antonkulaga/personal
app/jvm/src/main/scala/antonkulaga/projects/stats/SesameReader.scala
Scala
mpl-2.0
1,214
package io.github.binaryfoo.gclog.output import java.io.{PrintStream, PrintWriter} import java.net.Socket trait OutputSink { def write(event: String) def close() } object StdOutSink extends PrintStreamSink(Console.out) case class PrintStreamSink(out: PrintStream) extends OutputSink { override def write(event:...
binaryfoo/gclog-parser
src/main/scala/io/github/binaryfoo/gclog/output/OutputSink.scala
Scala
mit
897
package org.apache.spark.sql.util object __THIS_IS_THE_ROAD_TO_CLOWNTOWN__ArrowUtils { // TODO: // This is defeating encapsulation and should be avoided if possible. // Sorry, I'm a clown. val rootAllocator = org.apache.spark.sql.util.ArrowUtils.rootAllocator val toArrowSchema = org.apache.spark.sql.util.Ar...
rstudio/sparklyr
java/spark-3.0.0/clowntown.scala
Scala
apache-2.0
351
/* ASIB - A Scala IRC Bot Copyright (C) 2012 Iain Cambridge This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versio...
icambridge-old/asib
src/test/scala/asib/mocks/command/MockQuit.scala
Scala
gpl-3.0
952
package authentication import akka.actor.ActorSystem import akka.testkit.{ImplicitSender, TestActorRef, TestKit} import authentication.AuthenticatorSuite._ import authentication.entities._ import tests.TestWordSpec import org.mockito.Mock import org.scalatest.concurrent.Eventually import rest.client.RestClient import ...
lymr/fun-chat
fun-chat-client/src/test/scala/authentication/AuthenticatorSuite.scala
Scala
mit
4,716
package my.game.pkg.actors import my.game.pkg.utils.Implicits._ import my.game.pkg.utils.Utils._ import my.game.pkg.Settings import my.game.pkg.base_actor.{ActorInView, AcceleratableActor} import com.badlogic.gdx.Gdx import com.badlogic.gdx.scenes.scene2d.actions.Actions import com.badlogic.gdx.scenes.scene2d.{Actio...
raymank26/asteroids-scala
common/src/main/scala/ship.scala
Scala
gpl-3.0
6,134
package controllers /** * Created by sam on 17/12/16. */ import io.circe.generic.auto._ import io.circe.syntax._ import io.swagger.annotations._ import io.swagger.config.ConfigFactory import models.User import pdi.jwt._ import play.api._ import play.api.libs.circe.Circe import play.api.mvc._ @Api( value = "/api"...
sammyrulez/minimal-play2
app/controllers/CirceController.scala
Scala
mit
1,777
import scala.deriving.Mirror @main def Test = val mirrorTop = summon[Mirror.SumOf[lib.Top]] assert(mirrorTop eq lib.Top) // cached in companion - previous run, tasty dependency assert(mirrorTop.ordinal(lib.Middle()) == 0)
dotty-staging/dotty
tests/run/i14540-priorRun/Test_2.scala
Scala
apache-2.0
229
/* * Copyright 2017 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
VlachJosef/bforms-frontend
app/uk/gov/hmrc/bforms/connectors/BformsConnectors.scala
Scala
apache-2.0
3,162
/* * Wire * Copyright (C) 2016 Wire Swiss GmbH * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This progr...
wireapp/wire-android-sync-engine
zmessaging/src/test/scala/com/waz/utils/NamePartsSpec.scala
Scala
gpl-3.0
3,659
/** * Copyright 2011-2016 GatlingCorp (http://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
GabrielPlassard/gatling
gatling-http/src/main/scala/io/gatling/http/resolver/DelegatingNameResolver.scala
Scala
apache-2.0
1,645
/* * Copyright 2015 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
scottcutts/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600/v2/B18.scala
Scala
apache-2.0
1,090
package com.twitter.finagle.serverset2.client import com.twitter.finagle.stats.{StatsReceiver, Stat} import com.twitter.io.Buf import com.twitter.util._ private[serverset2] trait StatsClient extends ZooKeeperClient { sealed trait StatFilter { val name: String lazy val failure = stats.counter(s"${name}_failu...
luciferous/finagle
finagle-serversets/src/main/scala/com/twitter/finagle/serverset2/client/Stats.scala
Scala
apache-2.0
6,747
/* * Copyright (c) 2015 Contributor. All rights reserved. */ package org.scalaide.debug.internal.expression package context.invoker import org.scalaide.debug.internal.expression.Names.Java import org.scalaide.debug.internal.expression.context.JdiContext import org.scalaide.debug.internal.expression.proxies.JdiProxy ...
stephenh/scala-ide
org.scala-ide.sdt.debug.expression/src/org/scalaide/debug/internal/expression/context/invoker/StringAddMethod.scala
Scala
bsd-3-clause
1,285
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
shaoxuan-wang/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/codegen/LookupJoinCodeGenerator.scala
Scala
apache-2.0
15,550
package io.buoyant /** * The [[io.buoyant.router]] and [[com.twitter.finagle.buoyant]] * packages provide a library for building RPC routers with Finagle. */ package object router
denverwilliams/linkerd
router/core/src/main/scala/com/twitter/finagle/buoyant/package.scala
Scala
apache-2.0
184
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
bdrillard/spark
external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaTestUtils.scala
Scala
apache-2.0
23,257
package org.phenoscape.owl.util import better.files._ import scala.io.Source object Conversions { implicit class BetterFileOps(val self: File) extends AnyVal { def toSource(encoding: String): Source = Source.fromFile(self.toJava, encoding) } }
phenoscape/phenoscape-owl-tools
src/main/scala/org/phenoscape/owl/util/Conversions.scala
Scala
mit
259
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
caneGuy/spark
sql/core/src/main/scala/org/apache/spark/sql/DataFrameNaFunctions.scala
Scala
apache-2.0
18,845
/* * Copyright (c) 2013-2014 Telefónica Investigación y Desarrollo S.A.U. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
telefonicaid/fiware-cosmos-platform
cosmos-api/it/scala/es/tid/cosmos/api/mocks/MockInfrastructureProvider.scala
Scala
apache-2.0
3,418
/** * Copyright 2015 Thomson Reuters * * Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
hochgi/CM-Well
server/cmwell-it/src/it/scala/cmwell/it/QuadTests.scala
Scala
apache-2.0
33,142
package com.API import akka.actor.{ActorSystem, Props} import akka.io.IO import spray.can.Http import akka.pattern.ask import akka.util.Timeout import scala.concurrent.duration._ object Boot extends App { // we need an ActorSystem to host our application in implicit val system = ActorSystem("spray-actors") //...
code-ape/Clojure-vs-Scala-Web-API
scala-api/src/main/scala/com/API/boot.scala
Scala
gpl-2.0
612
package barbershop import akka.actor.Actor import akka.actor.ActorRef import scala.util.Random class Barber extends Actor { val random = new Random def receive = { case customer: ActorRef => println("[b] Starting to cut hair on customer!") Thread.sleep(random.nextInt(300)) customer...
saesh/BarberShopAkka
src/scala/main/barbershop/Barber.scala
Scala
mit
397
package models import java.util.{Date, UUID} import scala.collection.JavaConversions._ import com.datastax.driver.core.querybuilder.QueryBuilder import database.Cassandra import constants.Table import pubsub.{UnFollowMessage, FollowMessage, PubSubHelper} import com.datastax.driver.core.Row trait Counter { val cou...
lequangdzung/quora-clone
api-app/app/models/social.scala
Scala
gpl-2.0
29,968
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
rahul003/mxnet
scala-package/examples/src/test/scala/org/apache/mxnetexamples/customop/CustomOpExampleSuite.scala
Scala
apache-2.0
3,469
package whitespace import skinny.orm._, feature._ import scalikejdbc._ import org.joda.time._ case class PostTag( id: Long, tagId: Int, postId: Int, createdAt: DateTime ) object PostTag extends SkinnyJoinTable[PostTag] { override val connectionPoolName = 'ws override val tableName = "pos...
seratch/skinny-framework
factory-girl/src/test/scala/whitespace/PostTag.scala
Scala
mit
607
/** * Copyright (c) 2007-2011 Eric Torreborre <etorreborre@yahoo.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation * the rights ...
yyuu/specs
src/test/scala/org/specs/samples/isolatedExamples.scala
Scala
mit
1,983
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller, Matthew Saltz * @version 1.3 * @date Wed May 13 14:58:25 EDT 2015 * @see LICENSE (MIT style license file). * * `MGraph` Dual Simulation Using Mutable Sets */ package scalation.graphalytics.mutable...
NBKlepp/fda
scalation_1.3/scalation_modeling/src/main/scala/scalation/graphalytics/mutable/MDualSim.scala
Scala
mit
6,595
package com.socrata.soda.clients.datacoordinator import com.rojoma.json.v3.ast._ import com.rojoma.json.v3.util.JsonUtil import com.socrata.soda.server.id.RollupName sealed abstract class RollupMutation extends DataCoordinatorInstruction { override def toString = JsonUtil.renderJson(asJson) } case class CreateOrUp...
socrata-platform/soda-fountain
soda-fountain-lib/src/main/scala/com/socrata/soda/clients/datacoordinator/RollupMutation.scala
Scala
apache-2.0
735
package org.jetbrains.plugins.scala package codeInsight.generation import com.intellij.lang.LanguageCodeInsightActionHandler import com.intellij.testFramework.fixtures.CodeInsightTestFixture /** * Nikolay.Tropin * 8/23/13 */ class GenerateEqualsTest extends ScalaGenerateTestBase { import CodeInsightTestFixture....
loskutov/intellij-scala
test/org/jetbrains/plugins/scala/codeInsight/generation/GenerateEqualsTest.scala
Scala
apache-2.0
7,223
package props import org.scalatest.PropSpec import org.scalatest.prop.GeneratorDrivenPropertyChecks class UnionSpec extends PropSpec with GeneratorDrivenPropertyChecks { property("set union is associative") { forAll { (a: Set[String], b: Set[String], c: Set[String]) => assert( union(union(a,b),c) == unio...
jastice/proptests
src/test/scala/props/UnionSpec.scala
Scala
bsd-2-clause
941
package com.mucahitbayar.shoppingcart.checkout import com.mucahitbayar.shoppingcart.domain.{Discount, Product} case class ShoppingCartItem(product: Product, qty: Int = 1) { def total(): BigDecimal = product.price * qty def total(discount: Discount): BigDecimal = { if (discount.minQty <= qty) { val ex...
mucahitbayar/ScalaTDDShop
src/main/scala/com/mucahitbayar/shoppingcart/checkout/ShoppingCartItem.scala
Scala
mit
841
/* * Copyright 2012-2013 Eligotech BV. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
CoderPaulK/eventsourced
es-core/src/main/scala/org/eligosource/eventsourced/core/Sequencer.scala
Scala
apache-2.0
1,670
/* * Copyright 2011 TomTom International BV * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
ebowman/mavenizer
src/test/scala/com/tomtom/dps/mavenizer/dependency/NexusSpec.scala
Scala
apache-2.0
3,246
/* * Copyright 2016 The BigDL Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
intel-analytics/BigDL
scala/dllib/src/test/scala/com/intel/analytics/bigdl/dllib/nn/LogSpec.scala
Scala
apache-2.0
2,009
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
guoxiaolongzte/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala
Scala
apache-2.0
18,312
import strawman.collection.Iterator object Test { def main(args: Array[String]): Unit = { // FIXME: issue loading package object // val it = new MyIterator // println(it.hasNext) // println(it.next()) println(true) println(3) } } //class MyIterator extends Iterator[Int] { // override def has...
som-snytt/dotty
tests/link/strawman/iterator-1.scala
Scala
apache-2.0
378
package geotrellis.test.multiband.accumulo import geotrellis.config.Dataset import geotrellis.raster.MultibandTile import geotrellis.spark._ import geotrellis.spark.io._ import geotrellis.test.AccumuloTest import geotrellis.test.multiband.load.TemporalHadoopLoad import geotrellis.util.SparkSupport import org.apache....
geotrellis/geotrellis-integration-tests-tool
src/main/scala/geotrellis/test/multiband/accumulo/TemporalHadoopIngestTest.scala
Scala
apache-2.0
721
package cas.web.pages import spray.routing._ import Directives._ import akka.actor.ActorRef import akka.util.Timeout import cas.analysis.estimation._ import cas.persistence.searching.{ElasticSearch, SearchEngine} import cas.utils.{Files, Web} import cas.web.dealers.vk.VkApiDealer import cas.web.model.UsingDealerProtoc...
kell18/CAS
src/main/scala/cas/web/pages/ControlPage.scala
Scala
gpl-2.0
5,707
package de.mineformers.core.client.ui.state import java.lang.{Integer => JInt} /** * IntProperty * * @author PaleoCrafter */ class IntProperty(val name: String, val defaultValue: Int = 0, range: Range = null, val priority: Int = 0) extends Property[Int] { val allowedValues = if (range != null) range.toSeq else ...
MineFormers/MFCore
src/main/scala/de/mineformers/core/client/ui/state/IntProperty.scala
Scala
mit
471
/* * Copyright 2015 - 2016 Red Bull Media House GmbH <http://www.redbullmediahouse.com> - all rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
ianclegg/eventuate
eventuate-crdt/src/main/scala/com/rbmhtechnology/eventuate/crdt/japi/CounterService.scala
Scala
apache-2.0
2,151
package bytecode import sai.bytecode.Method import sai.bytecode.instruction.{ExitPoint, Instruction} import vm.Frame import scala.annotation.tailrec class BasicBlock(val method: Method, val leader: Instruction) { def lineRange = leader.lineNumber to lastInstruction.lineNumber override def toString: String = St...
oliverhaase/sai
src/sai/bytecode/BasicBlock.scala
Scala
mit
1,819
package org.jetbrains.plugins.scala package codeInspection.parentheses import com.intellij.codeInspection.LocalInspectionTool import org.jetbrains.plugins.scala.codeInspection.ScalaLightInspectionFixtureTestAdapter /** * Nikolay.Tropin * 4/29/13 */ class UnnecessaryParenthesesInspectionTest extends ScalaLightInspe...
LPTK/intellij-scala
test/org/jetbrains/plugins/scala/codeInspection/parentheses/UnnecessaryParenthesesInspectionTest.scala
Scala
apache-2.0
3,566
package com.verisign.hio.logging import org.slf4j.{Logger, LoggerFactory} trait LazyLogging { protected lazy val logger: Logger = LoggerFactory.getLogger(getClass.getName) } trait StrictLogging { protected val logger: Logger = LoggerFactory.getLogger(getClass.getName) }
verisign/hio
src/main/scala/com/verisign/hio/logging/Logging.scala
Scala
apache-2.0
282
package io.udash.web.commons.views import com.avsystem.commons._ import com.avsystem.commons.misc.AbstractCase import io.udash._ import io.udash.bootstrap.alert.UdashAlert import io.udash.bootstrap.utils.BootstrapImplicits._ import io.udash.bootstrap.utils.BootstrapStyles import io.udash.web.guide.markdown.{MarkdownPa...
UdashFramework/udash-guide
commons/src/main/scala/io/udash/web/commons/views/MarkdownView.scala
Scala
gpl-3.0
2,233
/* * Copyright 2011-2018 GatlingCorp (http://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
wiacekm/gatling
gatling-http/src/main/scala/io/gatling/http/action/ws2/WsConnect.scala
Scala
apache-2.0
2,633
package com.github.j5ik2o.dddbase.example.repository trait SpecSupport { def sameAs[A](c: Traversable[A], d: Traversable[A]): Boolean = { def counts(e: Traversable[A]) = e groupBy identity mapValues (_.size) counts(c) == counts(d) } }
j5ik2o/scala-ddd-base-functional
example/src/test/scala/com/github/j5ik2o/dddbase/example/repository/SpecSupport.scala
Scala
mit
250
/* * BooleanObjView.scala * (Mellite) * * Copyright (c) 2012-2022 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU Affero General Public License v3+ * * * For further information, please contact Hanns Holger Rutz at * contact@sciss.de */ package de.sciss.mellite.imp...
Sciss/Mellite
app/src/main/scala/de/sciss/mellite/impl/objview/BooleanObjView.scala
Scala
agpl-3.0
3,220
package org.jetbrains.plugins.scala.lang.optimize package generated class OptimizeImportsSimpleTest extends OptimizeImportsTestBase { //This class was generated by build script, please don't change this override def folderPath: String = super.folderPath + "simple/" protected override def rootPath(): String = f...
triggerNZ/intellij-scala
test/org/jetbrains/plugins/scala/lang/optimize/generated/OptimizeImportsSimpleTest.scala
Scala
apache-2.0
845
package domain.database import domain.Identifiable trait ProviderTypes { self: DriverProvider => import self.driver.api._ trait IdColumn[I] { def id: Rep[I] } trait IdentityColumn[Id] extends IdColumn[Id] { this: IdTable[_, Id] => import self.driver.api._ def id: Rep[Id] = column[Id]("id", O.Aut...
pnosko/staging.vita.infinita.api
src/main/scala/domain/database/ProviderTypes.scala
Scala
cc0-1.0
723
/* * Copyright (c) 2017 Lucas Satabin * * Licensed under the Apache License Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
satabin/toolxit-ng
core/src/main/scala/toolxit/util/List1.scala
Scala
apache-2.0
1,131
package it.dtk.feed import akka.actor.{ Actor, ActorLogging, Props } import akka.event.Logging import akka.routing.{ DefaultResizer, RoundRobinPool } import com.sclasen.akka.kafka.StreamFSM import it.dtk.feed.Model._ import it.dtk.feed.logic.{ FeedUtil, HttpDownloader } import it.dtk.kafka.FeedProducerKafka import org...
DataToKnowledge/wheretolive-feed
feed-processor/src/main/scala/it/dtk/feed/FeedProcessor.scala
Scala
apache-2.0
2,508
class Test { inline def foo = 1 def test = -foo }
som-snytt/dotty
tests/pos/i3633.scala
Scala
apache-2.0
54
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
WindCanDie/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
Scala
apache-2.0
59,254
/* Copyright 2009-2016 EPFL, Lausanne */ package leon package synthesis.disambiguation import datagen.GrammarDataGen import synthesis.Solution import evaluators.DefaultEvaluator import purescala.Expressions._ import purescala.ExprOps import purescala.Types._ import purescala.Common.Identifier import purescala.Definit...
epfl-lara/leon
src/main/scala/leon/synthesis/disambiguation/QuestionBuilder.scala
Scala
gpl-3.0
13,290
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
PredictionIO/PredictionIO
core/src/main/scala/org/apache/predictionio/controller/LAverageServing.scala
Scala
apache-2.0
1,695
package com.mind_era.arima import org.scalatest.FreeSpec //import scalin.immutable.Vec //import scalin._ import spire.algebra._ //import cats.kernel.Eq._ import spire.math._ import spire.implicits._ import scalin.mutable._ import scalin.mutable.dense._ class ArimaDiffTest extends FreeSpec { "Methods tests" - { ...
aborg0/arima
src/test/scala/com/mind_era/arima/ArimaDiffTest.scala
Scala
agpl-3.0
2,899
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.indexer import fastparse.all._ object SignatureParser extends ClassParser { protected val GenericClassSig: Parser[GenericClassName] = P(GenericClassSigWithArgs | G...
ensime/ensime-server
core/src/main/scala/org/ensime/indexer/SignatureParser.scala
Scala
gpl-3.0
3,489
package bylt.core import bylt.core.JsonProtocol._ import org.scalacheck.Prop._ import org.scalatest.FunSuite import org.scalatest.prop.Checkers import spray.json._ class JsonProtocolTest extends FunSuite with Checkers { implicit override val generatorDrivenConfig = PropertyCheckConfig (minSize = 0, maxS...
ozmi/bylt
src/test/scala/bylt/core/JsonProtocolTest.scala
Scala
mit
1,150
package org.psesd.srx.shared.core import org.psesd.srx.shared.core.exceptions.ArgumentNullOrEmptyOrWhitespaceException import org.psesd.srx.shared.core.extensions.TypeExtensions._ /** Represents SRX service component. * * @version 1.0 * @since 1.0 * @author Stephen Pugmire (iTrellis, LLC) **/ class SrxServi...
PSESD/srx-shared-core
src/main/scala/org/psesd/srx/shared/core/SrxServiceComponent.scala
Scala
mit
591
package de.frosner.broccoli.models import java.util.Date import de.frosner.broccoli.models.JobStatus.JobStatus import de.frosner.broccoli.models.ServiceStatus.ServiceStatus import play.api.libs.json.Json import JobStatusJson._ case class PeriodicRun(createdBy: String, status: JobStatus, utcSeconds: Long, jobName: St...
FRosner/cluster-broccoli
server/src/main/scala/de/frosner/broccoli/models/PeriodicRun.scala
Scala
apache-2.0
491
package akka.rtcweb.protocol.dtls import javax.crypto.{ Cipher, Mac } import akka.rtcweb.protocol.dtls.handshake._ import scodec._ import scodec.codecs._ private[dtls] case object SecurityParameters /** * struct { * ConnectionEnd entity; * PRFAlgorithm prf_algorithm; * BulkCipherAlgorithm ...
danielwegener/akka-rtcweb
src/main/scala/akka/rtcweb/protocol/dtls/SecurityParameters.scala
Scala
apache-2.0
3,583
package com.jroliveira.boo.routes import akka.http.scaladsl.server.{Directives, Route} object Router extends Directives { val routes: Route = HomeRoute.routes ~ UsersRoute.routes ~ TogglesRoute.routes }
jroliveira/boo-api
src/main/scala/com/jroliveira/boo/routes/Router.scala
Scala
mit
223
//package com.eharmony.aloha.models.ensemble.maxima // //import scala.collection.GenTraversableOnce //import com.eharmony.aloha.score.basic.ModelOutput //import ModelOutput.Implicits.modelOutputOrdering //import com.eharmony.aloha.models.ensemble.tie.TieBreaker //import com.eharmony.aloha.id.ModelIdentity //import com....
eHarmony/aloha
aloha-core/src/main/scala/com/eharmony/aloha/models/ensemble/maxima/Max.scala
Scala
mit
917
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.3 * @date Sun Sep 11 22:43:04 EDT 2011 * @see LICENSE (MIT style license file). */ package scalation.minima import scala.collection.mutable.ArrayBuffer import scala.math.{abs, ceil, flo...
NBKlepp/fda
scalation_1.3/scalation_modeling/src/main/scala/scalation/minima/IntegerNLP.scala
Scala
mit
8,688
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
kevinyu98/spark
mllib/src/main/scala/org/apache/spark/ml/feature/VarianceThresholdSelector.scala
Scala
apache-2.0
9,866
package com.github.diegopacheco.sandbox.scripts.scala.java class Person { var name:String = "" var age:Int = 0 def getName() = name def setName(s:String) = name = s def getAge() = age def setAge(a:Int) = age = a def show(a:java.lang.String) = println(a) override def toString() = "Name " + name + " Ag...
diegopacheco/scala-playground
scala-playground/src/com/github/diegopacheco/sandbox/scripts/scala/java/Person.scala
Scala
unlicense
333
package intellij.haskell.spellchecker import com.intellij.psi.PsiElement import com.intellij.spellchecker.tokenizer.{SpellcheckingStrategy, Tokenizer} import intellij.haskell.cabal.CabalLanguage /** * Provide spellchecker support for Cabal sources. */ class CabalSpellcheckingStrategy extends SpellcheckingStrategy...
rikvdkleij/intellij-haskell
src/main/scala/intellij/haskell/spellchecker/CabalSpellcheckingStrategy.scala
Scala
apache-2.0
431
package lila.storm import scala.concurrent.duration._ import scala.concurrent.ExecutionContext import lila.db.dsl._ import lila.memo.CacheApi import lila.puzzle.PuzzleColls /* The difficulty of storm should remain constant! * Be very careful when adjusting the selector. * Use the grafana average rating per slice c...
luanlv/lila
modules/storm/src/main/StormSelector.scala
Scala
mit
4,907
package com.arcusys.learn.liferay.update.version260.certificate import com.arcusys.learn.liferay.update.version240.certificate.CertificateTableComponent import com.arcusys.valamis.model.PeriodTypes import com.arcusys.valamis.persistence.common.DbNameUtils._ import com.arcusys.valamis.persistence.common.SlickProfile t...
igor-borisov/valamis
learn-portlet/src/main/scala/com/arcusys/learn/liferay/update/version260/certificate/StatementGoalTableComponent.scala
Scala
gpl-3.0
1,378
package io.youi.image.resize import scala.concurrent.Future object FastResizer extends ImageResizer { override protected[resize] def resizeInternal(source: html.Image | html.Canvas, destination: html.Canvas): Future[html.Canvas] = { destination.context.drawImage(source.asInstanceOf[html.Image], 0.0, 0.0, destin...
outr/youi
ui/js/src/main/scala/io/youi/image/resize/FastResizer.scala
Scala
mit
394
package org.jetbrains.plugins.scala package lang package psi package stubs package elements import com.intellij.psi.PsiElement import com.intellij.psi.stubs._ import org.jetbrains.plugins.scala.lang.psi.api.statements.ScVariable import org.jetbrains.plugins.scala.lang.psi.stubs.impl.ScVariableStubImpl import org.jetbr...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/stubs/elements/ScVariableElementType.scala
Scala
apache-2.0
1,499
object Test { val x: T[Int] = ??? val y: Int = 1 val a: Int = T.f(x) val b: T[Int] = T.g(y) }
som-snytt/dotty
tests/pos/toplevel-opaque/Test.scala
Scala
apache-2.0
102
package org.viz.lightning.types class Settings(var map: Map[String, Any]) { def this() = this(Map[String, Any]()) def append(style: Style): this.type = { if (style.defined) { style.validate map += style.name -> style.contents } this } def append(styles: List[Style]): this.type = { ...
lightning-viz/lightning-scala
src/main/scala/org/viz/lightning/types/Settings.scala
Scala
mit
440
package tuner.gui.event import scala.swing.Component import scala.swing.event.ComponentEvent case class ControlTableRowAdded(source:Component) extends ComponentEvent
gabysbrain/tuner
src/main/scala/tuner/gui/event/ControlTableRowAdded.scala
Scala
mit
169
package co.rc.tokenmanager.util class TokenException( msg: String ) extends RuntimeException( msg )
rodricifuentes1/token-manager
src/main/scala/co/rc/tokenmanager/util/TokenException.scala
Scala
mit
101
/* Copyright 2012 Twitter, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
snoble/algebird
algebird-core/src/main/scala/com/twitter/algebird/Ring.scala
Scala
apache-2.0
4,126
/** * Copyright 2015 Otto (GmbH & Co KG) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
utzwestermann/schedoscope
schedoscope-tutorial/src/test/scala/schedoscope/example/osm/datahub/ShopsTest.scala
Scala
apache-2.0
1,941
/* * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/play-graphite
src/main/scala/uk/gov/hmrc/play/graphite/MicroserviceMetrics.scala
Scala
apache-2.0
826
package io.vamp.workflow_driver import akka.actor.ActorRef import akka.pattern.ask import io.vamp.common.akka.IoC.actorFor import io.vamp.container_driver.ContainerDriverActor.{ DeployWorkflow, GetWorkflow, UndeployWorkflow } import io.vamp.container_driver.ContainerWorkflow import io.vamp.model.artifact.{ DaemonSched...
dragoslav/vamp
workflow_driver/src/main/scala/io/vamp/workflow_driver/DaemonWorkflowDriver.scala
Scala
apache-2.0
2,050
/* * Copyright (C) 2016 Christopher Batey and Dogan Narinc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
mikefero/cpp-driver
gtests/src/integration/scassandra/server/server/src/test/scala/org/scassandra/server/e2e/query/MapPriming.scala
Scala
apache-2.0
3,071
/* This file is part of Static Web Gallery (SWG). MathMaster is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. MathMaster is distribute...
orest-d/swg
swg/src/main/scala/eu/lateral/swg/db/Menu.scala
Scala
gpl-3.0
1,707
package com.twitter.concurrent import java.util.concurrent.atomic.AtomicReference import scala.annotation.tailrec import com.twitter.util.{Future, Promise, Return} object SpoolSource { private object DefaultInterruptHandler extends PartialFunction[Any, Nothing] { def isDefinedAt(x: Any) = false def apply(...
travisbrown/util
util-core/src/main/scala/com/twitter/concurrent/SpoolSource.scala
Scala
apache-2.0
4,176
package com.arcusys.learn.facades import java.io.{ File, InputStream } import com.arcusys.learn.liferay.LiferayClasses._ import com.arcusys.learn.liferay.model.Activity import com.arcusys.valamis.gradebook.model.PackageGrade import com.arcusys.valamis.lesson.tincan.model.ManifestActivity import com.arcusys.valamis.lr...
ViLPy/Valamis
learn-portlet/src/main/scala/com/arcusys/learn/facades/PackageFacadeContract.scala
Scala
lgpl-3.0
3,588
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
tzulitai/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/plan/stream/table/validation/TemporalTableJoinValidationTest.scala
Scala
apache-2.0
3,981
/* * Copyright 2014 Databricks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
methodmill/spark-redshift
src/test/scala/com/databricks/spark/redshift/RedshiftInputFormatSuite.scala
Scala
apache-2.0
5,304