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
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.tools.testkit i...
martijnhoekstra/scala
src/testkit/scala/tools/testkit/AllocationTest.scala
Scala
apache-2.0
2,496
package geotrellis.statistics import geotrellis._ import math.{abs, ceil, min, max, sqrt} object ArrayHistogram { def apply(size:Int) = new ArrayHistogram(Array.fill[Int](size)(0), 0) def apply(counts:Array[Int], total:Int) = new ArrayHistogram(counts, total) def fromRaster(r:Raster, n:Int) = { val h = Ar...
Tjoene/thesis
Case_Programs/geotrellis-0.7.0/src/main/scala/geotrellis/statistics/ArrayHistogram.scala
Scala
gpl-2.0
1,697
package t1000531 class A[B] extends java.lang.Iterable[B] { import scala.collection.JavaConversions._ def iterator = Iterator.empty }
Kwestor/scala-ide
org.scala-ide.sdt.core.tests/test-workspace/pc/src/t1000531/A.scala
Scala
bsd-3-clause
138
package org.bitcoins.rpc.client.v17 import akka.actor.ActorSystem import org.bitcoins.core.crypto.ECPrivateKey import org.bitcoins.core.protocol.transaction.Transaction import org.bitcoins.core.script.crypto.HashType import org.bitcoins.rpc.client.common.{ BitcoindRpcClient, BitcoindVersion, RpcOpts } import org...
bitcoin-s/bitcoin-s-core
bitcoind-rpc/src/main/scala/org/bitcoins/rpc/client/v17/BitcoindV17RpcClient.scala
Scala
mit
4,318
package satisfaction.engine.actors import satisfaction.notifier.Notifier import akka.actor.Actor import akka.actor.ActorLogging import satisfaction.Track import satisfaction.notifier.Notified import satisfaction.retry.Retryable import satisfaction.Goal import akka.actor.ActorSystem import scala.concurrent.duration.Dur...
jeromebanks/satisfaction
modules/engine/src/main/scala/satisfaction/engine/actors/JMXAgent.scala
Scala
apache-2.0
1,922
/** * ____ __ ____ ____ ____,,___ ____ __ __ ____ * ( _ \ /__\ (_ )(_ _)( ___)/ __) ( _ \( )( )( _ \ Read * ) / /(__)\ / /_ _)(_ )__) \__ \ )___/ )(__)( ) _ < README.txt * (_)\_)(__)(__)(____)(____)(____)(___/ (__) (______)(____/ LICENSE.txt */ package ...
razie/diesel-hydra
diesel/src/main/scala/razie/wiki/model/Wikis.scala
Scala
apache-2.0
32,648
package collins.util import scala.collection.mutable.StringBuilder import scala.concurrent.duration.Duration import scala.sys.process.Process import scala.sys.process.ProcessLogger import play.api.Logger import collins.models.IpmiInfo import collins.shell.CommandResult import collins.util.concurrent.BackgroundProces...
funzoneq/collins
app/collins/util/IpmiCommand.scala
Scala
apache-2.0
1,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 ...
adobe-research/spark-cluster-deployment
initial-deployment-puppet/modules/spark/files/spark/examples/src/main/scala/org/apache/spark/examples/mllib/LinearRegression.scala
Scala
apache-2.0
4,469
package net.orfjackal.dimdwarf.domain import java.util.concurrent.atomic.AtomicReference import javax.annotation.concurrent.ThreadSafe import scala.annotation.tailrec @ThreadSafe class Clock(startingValue: Timestamp) { private val next = new AtomicReference[Timestamp](startingValue) @tailrec final def nextTimest...
orfjackal/dimdwarf
dimdwarf-core/src/main/scala/net/orfjackal/dimdwarf/domain/Clock.scala
Scala
apache-2.0
482
package knot.core.stream import knot.core.stream.flows.IdleTimeoutDuplex import knot.core.stream.graphs.builders.{DuplexBuilder, DuplexFromFlowsBuilder} import knot.core.stream.graphs.{DuplexGraph, MatSelector} import knot.core.stream.ops.DuplexOps import knot.core.{Decorations, Done} import scala.concurrent.duration...
defvar/knot
knot-core/src/main/scala/knot/core/stream/Duplex.scala
Scala
mit
1,088
package controllers import javax.inject._ import akka.actor.{ ActorRef, ActorSystem } import akka.stream.Materializer import akka.util.Timeout import com.github.j5ik2o.spetstore.adaptor.http.{ CreateCustomerJson, CustomerSupport } import com.github.j5ik2o.spetstore.usecase.CustomerUseCase import com.github.tototoshi....
j5ik2o/spetstore-cqrs-es-akka
play2-application/app/controllers/CustomerController.scala
Scala
mit
1,165
package com.outr.stripe.support import com.outr.stripe.connect.{Acceptance, Account, DeclineChargeOn, LegalEntity, TransferSchedule} import com.outr.stripe.{Deleted, Implicits, QueryConfig, ResponseError, Stripe, StripeList} import scala.concurrent.Future class AccountsSupport(stripe: Stripe) extends Implicits { d...
outr/scala-stripe
core/jvm/src/main/scala/com/outr/stripe/support/AccountsSupport.scala
Scala
mit
4,379
/* * 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 ...
gyfora/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/sinks/TableSinkUtils.scala
Scala
apache-2.0
13,178
package org.vds.discoverscala.core.ch07 import org.scalatest.{Matchers, WordSpec} /** * Example for ch7. Control Structures */ class ControlStructures extends WordSpec with Matchers { "For structures for (i <- i to n){}" when { "We use range" should { "Interact from 1 to 4" in { var res = 1; ...
dawid-swist/discover-scala
src/test/scala/org/vds/discoverscala/core/ch07/ControlStructures.scala
Scala
gpl-3.0
1,224
package com.sksamuel.elastic4s.searches.aggs.pipeline import org.elasticsearch.search.aggregations.pipeline.BucketHelpers.GapPolicy import org.elasticsearch.search.aggregations.pipeline.movavg.models.MovAvgModelBuilder case class MovAvgDefinition(name: String, bucketsPath: String, ...
aroundus-inc/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/searches/aggs/pipeline/MovAvgDefinition.scala
Scala
apache-2.0
1,656
package leo.datastructures.blackboard import leo.datastructures.context.Context import leo.modules.output.StatusSZS /** * Marker Interface for any Event for the Agents */ trait Event { } /** * Marker Interface for a message from Agent to Agent * * @author Max Wisniewski * @since 11/19/14 */ trait Message ext...
cbenzmueller/LeoPARD
src/main/scala/leo/datastructures/blackboard/BlackboardMarker.scala
Scala
bsd-3-clause
1,534
package org.zbritva.main /** * Created by zBritva on 04.05.16. */ import org.apache.spark.{SparkConf, SparkContext, SparkEnv} import org.apache.log4j.{Level, Logger} import org.apache.spark.rdd.RDD import org.apache.spark.sql.Row import org.zbritva.graph.{CubeTree, Simplex} import tests.org.zbritva.graph.TestOpti...
zBritva/SparkCUBE
src/org/zbritva/main/SparkCubeRun.scala
Scala
apache-2.0
2,897
/* * Copyright (C) 2005, The OpenURP Software. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This...
openurp/api
edu/src/main/scala/org/openurp/edu/grade/model/AbstractGradeState.scala
Scala
lgpl-3.0
1,358
/* * Copyright 2014 Michael Krolikowski * * 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...
mkroli/dns4s
examples/simple-client/src/main/scala/com/github/mkroli/dns4s/examples/simple/client/DnsClient.scala
Scala
apache-2.0
1,388
package blended.streams.file import blended.container.context.api.ContainerContext import blended.streams.FlowHeaderConfig import blended.streams.message.{FlowMessage, MsgProperty} import blended.util.config.Implicits._ import com.typesafe.config.Config import scala.jdk.CollectionConverters._ import scala.concurrent....
woq-blended/blended
blended.streams/src/main/scala/blended/streams/file/FilePollConfig.scala
Scala
apache-2.0
2,925
/** Copyright 2015 TappingStone, 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 ...
ch33hau/PredictionIO
core/src/main/scala/io/prediction/controller/EngineParamsGenerator.scala
Scala
apache-2.0
1,445
/* * Copyright 2011-2022 GatlingCorp (https://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...
gatling/gatling
gatling-core/src/main/scala/io/gatling/core/feeder/SeparatedValuesParser.scala
Scala
apache-2.0
1,819
/** * Copyright (C) 2007 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This program i...
brunobuzzi/orbeon-forms
xforms/jvm/src/main/scala/org/orbeon/oxf/xforms/control/controls/FileMetadata.scala
Scala
lgpl-2.1
8,820
package adtoyou.spark.analysis import org.apache.spark.{SparkConf, SparkContext} /** * Created by tuyou006 on 2017/5/10. */ object HintExtract { def main(args: Array[String]): Unit = { val conf = new SparkConf().setAppName("Spark HintExtract").setMaster("yarn-client") val sc = new SparkConte...
7u/spark-learning
spark.learning/spark_test/src/main/scala/adtoyou/spark/analysis/HintExtract.scala
Scala
apache-2.0
695
package com.ignition.frame import org.apache.spark.sql.Row import org.junit.runner.RunWith import org.specs2.runner.JUnitRunner import com.ignition.TestDataHelper import com.ignition.script.RichString import com.ignition.types.{ RichStructType, date, double, fieldToRichStruct, string } @RunWith(classOf[JUnitRunner])...
uralian/ignition
src/test/scala/com/ignition/frame/FormulaSpec.scala
Scala
apache-2.0
4,471
/** * Copyright 2017 Daniel Götten * * 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...
dangoe/freda
core/src/main/scala/de/dangoe/freda/RestrictedConnection.scala
Scala
apache-2.0
8,881
package com.codiply.barrio.tests.helpers import org.scalatest.FlatSpec import com.codiply.barrio.helpers.LongQuantityStats import com.codiply.barrio.helpers.LongQuantityStatsContainer class LongQuantityStatsContainerSpec extends FlatSpec { "LongQuantityStatsContainer.empty" should "return an empty container with e...
codiply/barrio
src/test/scala/com/codiply/barrio/helpers/StatsContainerSpec.scala
Scala
apache-2.0
4,720
/* * Copyright (c) 2014-2020 by The Monix Project Developers. * See the project homepage at: https://monix.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...
alexandru/monifu
monix-reactive/shared/src/test/scala/monix/reactive/observers/OverflowStrategyDropNewSuite.scala
Scala
apache-2.0
16,091
/** * Copyright 2013-2015 PayPal * * 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 ...
webhost/horizon
project/Build.scala
Scala
apache-2.0
9,924
/** * Copyright 2015 ICT. * * 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 ...
ayscb/netflow
common/src/main/scala/cn/ac/ict/acs/netflow/metrics/MetricsConfig.scala
Scala
apache-2.0
3,073
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala package reflect ...
lrytz/scala
src/reflect/scala/reflect/io/ZipArchive.scala
Scala
apache-2.0
14,832
/* * 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 ...
bowenli86/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/runtime/stream/sql/CalcITCase.scala
Scala
apache-2.0
8,927
package org.jetbrains.plugins.scala package lang package completion package filters.expression import com.intellij.psi.filters.ElementFilter import com.intellij.psi.{PsiElement, _} import org.jetbrains.annotations.NonNls import org.jetbrains.plugins.scala.extensions.PsiFileExt import org.jetbrains.plugins.scala.lang.c...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/completion/filters/expression/FinallyFilter.scala
Scala
apache-2.0
1,640
import de.wayofquality.sbt.testlogconfig.TestLogConfig.autoImport._ import sbt._ import blended.sbt.Dependencies object BlendedJmsBridge extends ProjectFactory { private[this] val helper : ProjectSettings = new ProjectSettings( projectName = "blended.jms.bridge", description = "A generic JMS bridge to conne...
lefou/blended
project/BlendedJmsBridge.scala
Scala
apache-2.0
1,417
package com.typesafe.sbt.webpack import sbt._ import com.typesafe.sbt.web.{PathMapping, SbtWeb} import com.typesafe.sbt.web.js.JS import com.typesafe.sbt.web.pipeline.Pipeline import sbt.Keys._ import sbt.Task object Import { // For development only, could execute before "run" // eg: run in Compile <<= (run in C...
zhengcan/play-webpack-react
project/WebpackPlugin.scala
Scala
mit
2,516
// Test from https://lrytz.github.io/scala-aladdin-bugtracker/displayItem.do%3Fid=763.html // and expanded with package object variants trait Foo { type T; def apply() : T } object e extends Foo { type T = Int; def apply() = 42 } package p { trait T[X] { def O : { def apply(): X } } object `package` extends T[In...
scala/scala
test/files/pos/alladin763.scala
Scala
apache-2.0
749
package com.pulptunes.relay.models import javax.inject.Inject import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future import cats.data.Xor import cats.syntax.option._ import cats.syntax.xor._ import play.api.db.slick.{DatabaseConfigProvider, HasDatabaseConfigProvider} import slick.dr...
alpeb/pulptunes-relay
app/com/pulptunes/relay/models/Server.scala
Scala
mpl-2.0
2,601
/** * 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...
bryaakov/CM-Well
server/cmwell-ws/app/BGMonitorActor.scala
Scala
apache-2.0
10,742
package amphip.data import scala.annotation.implicitNotFound import scala.math.BigDecimal.RoundingMode.{ HALF_UP => HalfUp, DOWN => Down } import java.math.MathContext.{ DECIMAL128 => D128 } /* import scalaz.std.list._, listSyntax._ import scalaz.std.option._, optionSyntax._ import scalaz.syntax.foldable1._ import s...
gerferra/amphip
core/src/main/scala/amphip/data/eval.scala
Scala
mpl-2.0
25,703
package chapter21 /* How does -> work? That is, how can "Hello" -> 42 and 42 -> "Hello" be pairs ("Hello", 42) and (42, "Hello")? Hint: Predef.any2ArrowAssoc. */ object Exercise1 { /* implicit final class ArrowAssoc[A](private val self: A) extends AnyVal { @inline def -> [B](y: B): Tuple2[A, B] = Tuple2(self...
vsuharnikov/books-exercises
scala/scala-for-the-impatient/src/main/scala/chapter21/Exercise1.scala
Scala
mit
517
/** * 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"); yo...
mihbor/kafka
core/src/test/scala/unit/kafka/server/ReplicationQuotasTest.scala
Scala
apache-2.0
10,433
package com.twitter.monoloco.tricks import java.util.concurrent.TimeUnit.SECONDS import com.twitter.monoloco.CodeTrick import javax.crypto.{KeyGenerator, Cipher} import java.security.SecureRandom import java.math.BigInteger import java.util.concurrent.{Executors, ExecutorService, ThreadPoolExecutor} class CipherUpdat...
capotej/monoloco
src/main/scala/com/twitter/monoloco/tricks/BurnCpu.scala
Scala
apache-2.0
1,111
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. package ducttape.workflow import collection._ import ducttape.hyperdag.PackedVertex import ducttape.hyperdag.meta.MetaHype...
jhclark/ducttape
src/main/scala/ducttape/workflow/HyperWorkflow.scala
Scala
mpl-2.0
6,090
package com.nxtwv.graphs.neo import play.api.libs.concurrent.Execution.Implicits._ import play.api.libs.functional.syntax._ import play.api.libs.json.Json.JsValueWrapper import play.api.libs.json._ import play.api.libs.ws.ning.NingAsyncHttpClientConfigBuilder import play.api.libs.ws.{DefaultWSClientConfig, WS, WSAuthS...
coreyauger/agent-smith
src/main/scala/com/nxtwv/graphs/neo/NeoService.scala
Scala
mit
5,416
/* * Copyright (c) 2014-2016 * nonblocking.at gmbh [http://www.nonblocking.at] * * This file is part of Cliwix. * * Cliwix is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the...
nonblocking/cliwix
cliwix-core/src/main/scala/at/nonblocking/cliwix/core/validation/XMLSchemaValidationEventHandler.scala
Scala
agpl-3.0
1,518
/* Copyright 2015 Alessandro Maria Rizzi * Copyright 2016 Eugenio Gianniti * * 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 * * Unle...
deib-polimi/Profiler
src/main/scala-2.11/profiler/Execution.scala
Scala
apache-2.0
5,397
object Test { def test() = { java.util.Arrays.asList(Array(1,2,3):_*) } def main(args: Array[String]) { println(test()) } }
felixmulder/scala
test/files/run/t3199b.scala
Scala
bsd-3-clause
143
package io.getquill import com.datastax.oss.driver.api.core.CqlSession import com.typesafe.config.Config import io.getquill.context.{ AsyncFutureCache, CassandraSession, SyncCache } import io.getquill.util.LoadConfig import zio.{ Has, ZIO, ZLayer, ZManaged } case class CassandraZioSession( override val session: ...
getquill/quill
quill-cassandra-zio/src/main/scala/io/getquill/CassandraZioSession.scala
Scala
apache-2.0
1,365
package launchers import java.io.{File,FileWriter, BufferedWriter} import java.util.TimerTask import org.apache.spark.launcher.SparkLauncher import org.joda.time.DateTime import models.Project import scala.sys.process import scala.sys.process._ import scala.sys.process.ProcessLogger class PTCrawlerLauncher(crawler...
canademar/me_extractors
BRMProjectManager/src/main/scala/launchers/PTCrawlerLauncher.scala
Scala
gpl-2.0
2,999
package com.stefansavev.randomprojections.implementation import java.io.File import com.stefansavev.randomprojections.datarepr.dense.DataFrameView import com.stefansavev.randomprojections.implementation.query.NearestNeigbhorQueryScratchBuffer import com.stefansavev.randomprojections.interface.Index import com.stefansa...
codeaudit/random-projections-at-berlinbuzzwords
src/main/scala/com/stefansavev/randomprojections/implementation/IndexImpl.scala
Scala
apache-2.0
7,839
package ml.combust.bundle.test.ops /** * Created by hollinwilkins on 8/21/16. */ trait Transformer { val uid: String }
combust/mleap
bundle-ml/src/test/scala/ml/combust/bundle/test/ops/Transformer.scala
Scala
apache-2.0
126
object A { def f :Int = { class B { println("B") return 10 } new B 20 } def main(args: Array[String]) { f } }
felixmulder/scala
test/files/neg/t1033.scala
Scala
bsd-3-clause
150
/* * Copyright 2011-2014 Chris de Vreeze * * 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 agree...
EBPI/yaidom
src/test/scala/nl/ebpi/yaidom/queryapitests/dom/QueryTest.scala
Scala
apache-2.0
18,307
/* * 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 ...
SparklineData/spark-druid-olap
src/test/scala/org/sparklinedata/druid/client/test/DruidRewritesTest.scala
Scala
apache-2.0
14,070
package lara.epfl.scalasca.rules import lara.epfl.scalasca.core._ import scala.tools.nsc._ case class UnusedCodeRemovalBlocks(blocksToRemove: Map[Global#Position, Global#Tree]) extends RuleResult with TreeTransformer { override def warning = Notice("GEN_UNUSED_CODE_REMOVAL", "Removing code that no execution path...
jean-andre-gauthier/scalasca
src/main/scala/lara/epfl/scalasca/rules/UnusedCodeRemoval.scala
Scala
bsd-3-clause
3,297
/* * 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 ...
saturday-shi/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/generators.scala
Scala
apache-2.0
14,186
import sbt._ import Keys._ import sbtassembly.Plugin._ import sbtjflex.SbtJFlexPlugin._ import AssemblyKeys._ object Versions{ val scalaMajorVersion = "2.11" val scalaMinorVersion = "7" val factorieVersion = "1.2-SNAPSHOT" } object FactorieBuild extends Build { import Dependencies._ lazy val overrideSettin...
patverga/factorie
project/Build.scala
Scala
apache-2.0
4,993
package com.twitter.finagle.http import com.twitter.finagle.{Status => CoreStatus} import com.twitter.finagle.http.codec.ConnectionManager import com.twitter.finagle.http.exp.{Multi, StreamTransportProxy, StreamTransport} import com.twitter.util.{Future, Promise} import scala.util.control.NonFatal /** * A Transport ...
sveinnfannar/finagle
finagle-http/src/main/scala/com/twitter/finagle/http/HttpTransport.scala
Scala
apache-2.0
1,402
package com.twitter.inject.thrift.internal.filters import com.twitter.finagle.stats.Counter import com.twitter.finagle.{Service, SimpleFilter} import com.twitter.util._ private[thrift] class IncrementCounterFilter[Req, Rep](counter: Counter) extends SimpleFilter[Req, Rep] { override def apply(request: Req, ser...
twitter/finatra
inject/inject-thrift-client/src/main/scala/com/twitter/inject/thrift/internal/filters/IncrementCounterFilter.scala
Scala
apache-2.0
408
package org.scalajs.testsuite.niocharset import scala.language.implicitConversions import scala.scalajs.niocharset.StandardCharsets._ import java.nio.charset._ import org.junit.Test import org.junit.Assert._ class CharsetJSTest { @Test def defaultCharset(): Unit = { assertSame(UTF_8, Charset.defaultCharset(...
lrytz/scala-js
test-suite/js/src/test/scala/org/scalajs/testsuite/niocharset/CharsetJSTest.scala
Scala
bsd-3-clause
1,498
package mesosphere.marathon.event.http import java.util.UUID import javax.inject.{ Inject, Named } import javax.servlet.http.HttpServletRequest import akka.actor.ActorRef import mesosphere.marathon.ModuleNames import mesosphere.marathon.event.http.HttpEventStreamActor._ import org.eclipse.jetty.servlets.EventSource.E...
ss75710541/marathon
src/main/scala/mesosphere/marathon/event/http/HttpEventStreamServlet.scala
Scala
apache-2.0
1,778
package io.iohk.ethereum.domain import akka.util.ByteString trait TransactionOutcome case class HashOutcome(stateHash: ByteString) extends TransactionOutcome case object SuccessOutcome extends TransactionOutcome case object FailureOutcome extends TransactionOutcome
input-output-hk/etc-client
src/main/scala/io/iohk/ethereum/domain/TransactionOutcome.scala
Scala
mit
271
package ml.wolfe.nlp.converters import java.util.Properties import edu.arizona.sista.processors.{Document => SistaDocument, Sentence => SistaSentence} import edu.arizona.sista.processors.corenlp.{CoreNLPProcessor, CoreNLPDocument} import edu.arizona.sista.processors.fastnlp.FastNLPProcessor import ml.wolfe.nlp.{Docum...
wolfe-pack/wolfe
wolfe-nlp/src/main/scala/ml/wolfe/nlp/converters/SISTAProcessors.scala
Scala
apache-2.0
5,966
package core.engine /** * Created by OpenDataFlow on 02/01/16. */ abstract class JobResult { }
opendataflow/opendataflow
opendataflow-core/src/main/scala/core/engine/JobResult.scala
Scala
apache-2.0
99
package com.caibowen.prma.logger.jul import java.net.InetAddress import java.util.logging.{LogRecord => JulLogRecord} import javax.annotation.{Nonnull, Nullable} import com.caibowen.gplume.misc.Str import com.caibowen.prma.api.LogLevel.LogLevel import com.caibowen.prma.api.model.{EventVO, ExceptionVO} import com.caib...
xkommando/PRMA
logger/src/main/scala/com/caibowen/prma/logger/jul/JulRecordAdaptor.scala
Scala
lgpl-3.0
3,529
package scavlink.link import scavlink.state.{State, StateGenerator} package object telemetry { type StateGenerators = Set[StateGenerator[_ <: State]] }
nickolasrossi/scavlink
src/main/scala/scavlink/link/telemetry/package.scala
Scala
mit
156
/* __ *\\ ** ________ ___ / / ___ __ ____ Scala.js IR ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2014, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ |/_// /_\\ \\ http://scala-js.org/ ** ** /____/\\___/...
xuwei-k/scala-js
ir/src/main/scala/org/scalajs/core/ir/InfoSerializers.scala
Scala
bsd-3-clause
5,913
/* __ *\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2003-2013, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/...
rorygraves/perf_tester
corpus/scala-library/src/main/scala/sys/process/package.scala
Scala
apache-2.0
11,675
/* * AnnealingSmokersTest.scala * Bayesian network example tests. * * Created By: Avi Pfeffer (apfeffer@cra.com) * Creation Date: Jan 1, 2009 * * Copyright 2013 Avrom J. Pfeffer and Charles River Analytics, Inc. * See http://www.cra.com or email figaro@cra.com for information. * * See http://www.gi...
wkretschmer/figaro
Figaro/src/test/scala/com/cra/figaro/test/example/AnnealingSmokersTest.scala
Scala
bsd-3-clause
1,626
package org.jetbrains.plugins.dotty.lang.psi.types import org.jetbrains.plugins.scala.lang.psi.types.ScType import org.jetbrains.plugins.scala.lang.psi.types.api.{TypeVisitor, ValueType} import org.jetbrains.plugins.scala.project.ProjectContext /** * @author adkozlov */ trait DottyType extends ScType { override...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/dotty/lang/psi/types/DottyType.scala
Scala
apache-2.0
1,021
/* * Copyright (c) 2014 Dufresne Management Consulting LLC. */ package testActors; import org.scalatest.Suites class TestSuite extends Suites ( new HtmlCleanerSpec, new HotHouseJazzSpec, new CrawlerHelperSpec, new EventCrawlerSpec)
reactivecore01/livejazznear.me
play/test/testActors/TestSuites.scala
Scala
apache-2.0
243
package org.jetbrains.sbt package codeInspection import com.intellij.codeInspection.{ProblemHighlightType, ProblemsHolder} import com.intellij.openapi.project.Project import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.codeInspection.{AbstractFixOnPsiElement, AbstractInspection} import org.jetbrains....
ilinum/intellij-scala
src/org/jetbrains/sbt/codeInspection/SbtReplaceProjectWithProjectInInspection.scala
Scala
apache-2.0
2,623
package com.github.mjreid.flinkwrapper import java.time.LocalDateTime import com.github.mjreid.flinkwrapper.util.Readers import play.api.libs.json.{JsPath, Reads} import play.api.libs.functional.syntax._ import scala.concurrent.duration.Duration case class JobVertex( id: String, name: String, parallelism: Int...
mjreid/flink-rest-scala-wrapper
api/src/main/scala/com/github/mjreid/flinkwrapper/JobVertex.scala
Scala
apache-2.0
1,195
package org.jetbrains.plugins.scala.debugger.evaluateExpression import org.jetbrains.plugins.scala.debugger._ /** * User: Alefas * Date: 17.10.11 */ class ScalaMethodEvaluationTest extends ScalaMethodEvaluationTestBase { override implicit val version: ScalaVersion = Scala_2_11 } class ScalaMethodEvaluationTest...
ilinum/intellij-scala
test/org/jetbrains/plugins/scala/debugger/evaluateExpression/ScalaMethodEvaluationTest.scala
Scala
apache-2.0
22,136
package org.bfn.ninetynineprobs import org.scalatest._ class P51Spec extends UnitSpec { // TODO }
bfontaine/99Scala
src/test/scala/P51Spec.scala
Scala
mit
105
package controllers import lila.app._ import lila.api.Context import lila.common.HTTPRequest import lila.game.{ Game => GameModel, GameRepo } import play.api.http.ContentTypes import views._ object Search extends LilaController { private def paginator = Env.game.paginator private def env = Env.gameSearch def s...
pawank/lila
app/controllers/Search.scala
Scala
mit
1,693
/* Copyright (C) 2008-2016 University of Massachusetts Amherst. This file is part of "FACTORIE" (Factor graphs, Imperative, Extensible) http://factorie.cs.umass.edu, http://github.com/factorie Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
strubell/factorie
src/main/scala/cc/factorie/app/topics/lda/TopicPhraseCounts.scala
Scala
apache-2.0
3,183
package demo package components import chandu0101.scalajs.react.components.RCustomStyles import chandu0101.scalajs.react.components.RCustomStyles._ import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.html_<^._ object AppHeader { object Style { val headerStyle = Seq( ^.background := "#F270...
rleibman/scalajs-react-components
demo/src/main/scala/demo/components/AppHeader.scala
Scala
apache-2.0
2,210
/* * 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 ...
pronix/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/planning/patterns.scala
Scala
apache-2.0
9,583
package com.cloudera.hue.livy.server.sessions import java.net.URL import com.cloudera.hue.livy.msgs.ExecuteRequest import com.cloudera.hue.livy.server.Statement import scala.annotation.tailrec import scala.concurrent.Future object Session { sealed trait State case class NotStarted() extends State case class S...
dulems/hue
apps/spark/java/livy-server/src/main/scala/com/cloudera/hue/livy/server/sessions/Session.scala
Scala
apache-2.0
1,229
package pl.project13.scala.akka.raft.cluster import akka.testkit.ImplicitSender import concurrent.duration._ import akka.cluster.ClusterEvent.{CurrentClusterState, MemberUp} import akka.cluster.Cluster import akka.actor.Props import akka.util.Timeout import clusters._ import pl.project13.scala.akka.raft.example.WordCo...
ktoso/akka-raft
src/multi-jvm/scala/pl/project13/scala/akka/raft/cluster/ClusterRoleAwarenessSpec.scala
Scala
apache-2.0
1,849
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.scaladsl.testkit import java.util.concurrent.ConcurrentHashMap import java.util.function.{ Function => JFunction } import akka.Done import akka.actor.ActorRef import akka.actor.ActorSystem import akka.actor.Props import ak...
lagom/lagom
testkit/scaladsl/src/main/scala/com/lightbend/lagom/scaladsl/testkit/ProducerStubFactory.scala
Scala
apache-2.0
3,484
package controllers import com.mohiva.play.silhouette.api.Silhouette import com.mohiva.play.silhouette.impl.authenticators.CookieAuthenticator import models.User import play.api.i18n.I18nSupport import play.api.mvc.Controller /** * Created by gbecan on 9/25/15. */ abstract class BaseController extends Controller wi...
gbecan/OpenCompare
org.opencompare/play-app/app/controllers/BaseController.scala
Scala
apache-2.0
686
package juan.ddd.proto.domain.routing case class Route(uri: Uri)
yoskhdia/ddd-proto
src/main/scala/juan/ddd/proto/domain/routing/Route.scala
Scala
mit
66
package dao import org.bson.types.ObjectId import com.novus.salat.dao.SalatDAO import se.radley.plugin.salat._ import model.{BlogStatus, Blog} import play.api.Play.current import com.mongodb.casbah.commons.MongoDBObject import org.joda.time.DateTime /** * The Class BlogDao. * * @author Nguyen Duc Dung * @since 1/...
SunriseSoftVN/hayhayblog
core/app/dao/BlogDao.scala
Scala
gpl-2.0
1,475
/* * 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 ...
gioenn/xSpark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/ExpressionTypeCheckingSuite.scala
Scala
apache-2.0
10,335
package org.jetbrains.sbt package project.template import com.intellij.ide.util.projectWizard.WizardContext import com.intellij.platform.ProjectTemplate import org.jetbrains.plugins.scala.project.template.ScalaProjectTemplatesFactoryBase import org.jetbrains.sbt.project.template.techhub.TechHubProjectTemplate /** *...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/sbt/project/template/SbtProjectTemplateFactory.scala
Scala
apache-2.0
726
package com.nthportal.extrapredef import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers import org.scalatest.OptionValues import scala.collection.immutable.SortedMap import scala.concurrent.{Await, Future} import scala.concurrent.duration.Duration import scala.language.implicitConver...
NthPortal/extra-predef
src/test/scala/com/nthportal/extrapredef/ExtraPredefTest.scala
Scala
apache-2.0
5,028
package com.enkidu.lignum.parsers.ast import com.enkidu.lignum.parsers.ast.expression.discardable.dimension.AbstractDimension import com.enkidu.lignum.parsers.ast.expression.discardable.literals.BooleanLiteral import com.enkidu.lignum.parsers.ast.expression.types.annotations.MarkerAnnotation import com.enkidu.lignum.p...
marek1840/java-parser
src/test/scala/com/enkidu/lignum/parsers/ast/VisitorTest.scala
Scala
mit
1,966
package models.quiz.question.table import models.quiz.question.{MultipleChoiceQuestionOption, MultipleChoiceQuestion} import models.quiz.table.{QuestionIdNext, quizzesTable} import models.support.QuestionId import play.api.db.slick.Config.driver.simple._ import play.api.templates.Html import service.table.LoginsTable ...
kristiankime/web-education-games
app/models/quiz/question/table/MultipleChoiceQuestionOptionsTable.scala
Scala
mit
1,181
/* * 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 ...
saturday-shi/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala
Scala
apache-2.0
51,274
package org.apache.spark.core.server.actors import java.util import akka.actor.{Actor, ActorRef, ActorSelection, Props} import akka.pattern.ask import com.typesafe.config.{Config, ConfigFactory} import org.apache.commons.lang.exception.ExceptionUtils import org.apache.spark.core.response.{Context, Contexts} import Co...
linzhe/matrix
src/main/scala/org/apache/spark/core/server/actors/ContextManagerActor.scala
Scala
apache-2.0
9,006
/** * Copyright (C) 2014-2015 Really Inc. <http://really.io> */ package io.really.model.materializer import akka.actor.{ FSM, Stash, ActorLogging } import akka.persistence.{ SaveSnapshotFailure, SaveSnapshotSuccess, SnapshotOffer, PersistentView } import io.really.CommandError.OperationPartiallyComplete import io.re...
reallylabs/really
modules/really-core/src/main/scala/io/really/model/materializer/CollectionViewMaterializer.scala
Scala
apache-2.0
20,147
package fileSearcher import java.io.File object FileConverter { def convertToIOObject(file: File) = if(file.isDirectory()) DirectoryObject(file) else FileObject(file) }
sagasu/scalaPlayground
sbt/src/main/scala-2.11/fileSearcher/FileConverter.scala
Scala
apache-2.0
181
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ // GENERATED CODE: DO NOT EDIT...
lrytz/scala
src/library/scala/Function5.scala
Scala
apache-2.0
1,437
/** * Copyright 2011-2012 eBusiness Information, Groupe Excilys (www.excilys.com) * * 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 * *...
Tjoene/thesis
Case_Programs/gatling-1.4.0/gatling-recorder/src/main/scala/com/excilys/ebi/gatling/recorder/scenario/TagElement.scala
Scala
gpl-2.0
790
/** * 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"); yo...
KevinLiLu/kafka
core/src/main/scala/kafka/server/ReplicaAlterLogDirsManager.scala
Scala
apache-2.0
1,816
import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import org.scalatest._ object F { def add(a: Int, b: Int) = a + b } @RunWith(classOf[JUnitRunner]) class ScalaTestFunSuite extends FunSuite { test("add(1, 1) == 2") { assert(F.add(1, 1) == 2) } } @RunWith(classOf[JUnitRunner]) class Sca...
Codewars/codewars-runner
frameworks/gradle/src/test/scala/ScalaTestJUnitRunner.scala
Scala
mit
597
/** * Copyright (C) 2007 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This prog...
brunobuzzi/orbeon-forms
xforms/jvm/src/main/scala/org/orbeon/oxf/xforms/submission/TextReplacer.scala
Scala
lgpl-2.1
6,243
/* * Copyright 2014 IBM Corp. * * 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...
codeaudit/spark-kernel
client/src/main/scala/com/ibm/spark/kernel/protocol/v5/client/execution/DeferredExecutionTuple.scala
Scala
apache-2.0
767