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
/* * * 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 * distri...
flaminem/flamy
src/main/scala/com/flaminem/flamy/model/names/TablePartitionName.scala
Scala
apache-2.0
3,214
/*********************************************************************** * Copyright (c) 2013-2018 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...
ddseapy/geomesa
geomesa-accumulo/geomesa-accumulo-tools/src/main/scala/org/locationtech/geomesa/accumulo/tools/data/AccumuloCompactCommand.scala
Scala
apache-2.0
9,000
package edu.berkeley.cs.succinct.sql import edu.berkeley.cs.succinct.SuccinctIndexedFile import org.apache.spark.sql.Row /** * Iterator for a SuccinctPrunedTableRDD partition. * * @constructor Create a new SuccinctTableIterator with a SuccinctIndexedBuffer and a list of separators. * @param sBuf The underlying Su...
SwathiMystery/succinct
spark/src/main/scala/edu/berkeley/cs/succinct/sql/SuccinctPrunedTableIterator.scala
Scala
apache-2.0
1,198
package com.twitter.util.jackson import com.twitter.io.Buf import java.io.{ByteArrayInputStream, File => JFile} import org.junit.runner.RunWith import org.scalatest.funsuite.AnyFunSuite import org.scalatest.matchers.should.Matchers import org.scalatestplus.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class YAMLTe...
twitter/util
util-jackson/src/test/scala/com/twitter/util/jackson/YAMLTest.scala
Scala
apache-2.0
4,082
/* * 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 ...
manishgupta88/carbondata
integration/spark-common-test/src/test/scala/org/apache/carbondata/integration/spark/testsuite/complexType/TestComplexTypeQuery.scala
Scala
apache-2.0
15,234
/* * Copyright 2014 Netflix, 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 t...
fengshao0907/archaius
archaius-scala/src/main/scala/com/netflix/config/scala/DynamicProperties.scala
Scala
apache-2.0
4,016
package cafesat import util.Logger case class Context(logger: Logger)
regb/cafesat
src/main/scala/cafesat/Context.scala
Scala
mit
72
package com.wlangiewicz.brainwallet import java.security.MessageDigest import org.bitcoinj.core.ECKey import org.bitcoinj.params.MainNetParams object Brainwallet { def getAddress(s: String) = { val SHA256 = new SHA256() new ECKey(SHA256.getHash(s), null).toAddress(MainNetParams.get).toString } def ge...
wlk/brainwallet-scala
src/main/scala/com/wlangiewicz/brainwallet/Brainwallet.scala
Scala
apache-2.0
639
/* * 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 ...
aljoscha/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/runtime/harness/OverWindowHarnessTest.scala
Scala
apache-2.0
38,415
package sttp.client3 import scala.concurrent.Future object quick extends SttpApi { lazy val backend: SttpBackend[Future, Any] = FetchBackend() }
softwaremill/sttp
core/src/main/scalajs/sttp/client3/quick.scala
Scala
apache-2.0
149
package beppo2k.ftp.server import akka.actor.ActorRef import akka.actor.ActorSystem import akka.actor.Props import akka.actor.actorRef2Scala import beppo2k.ftp.server.command.FtpCommandServer import beppo2k.ftp.server.datatransfer.{FtpDataTransferActor, Start} object DataTransferActor { val system = ActorSystem("...
beppo2k/ftpserver
src/main/scala/beppo2k/ftp/server/Main.scala
Scala
mit
736
/* * Copyright (C) 2007-2008 Artima, Inc. 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.org/licenses/LICENSE-2.0 * * Unless requir...
peachyy/scalastu
compo-inherit/Ex1.scala
Scala
apache-2.0
1,133
package im.tox.antox.callbacks import android.content.Context import im.tox.antox.tox.{MessageHelper, ToxSingleton} import im.tox.antox.utils.Constants import im.tox.antox.wrapper.MessageType import im.tox.tox4j.core.callbacks.FriendActionCallback object AntoxOnActionCallback { private val TAG = "im.tox.antox.TAG"...
afkgeek/Antox
app/src/main/scala/im/tox/antox/callbacks/AntoxOnActionCallback.scala
Scala
gpl-3.0
686
/* * 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 ...
sshcherbakov/incubator-geode
gemfire-spark-connector/gemfire-spark-connector/src/it/scala/ittest/io/pivotal/gemfire/spark/connector/RetrieveRegionIntegrationTest.scala
Scala
apache-2.0
10,116
/* * 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 ...
wangmiao1981/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/v2/jdbc/JDBCTableCatalogSuite.scala
Scala
apache-2.0
17,639
/* * Copyright (c) 2014 Paul Bernard * * 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 t...
quantintel/spectrum
financial/src/main/scala/org/quantintel/ql/instruments/options/nver/CappedStyleOption.scala
Scala
apache-2.0
867
package com.weather.scalacass import com.datastax.driver.core.{ DataType, TupleType, TupleValue } trait LowPriorityCassFormatEncoderVersionSpecific { implicit def tupleFormat[TUP <: Product](implicit underlying: TupleCassFormatEncoder[TUP]): CassFormatEncoder[TUP] = new CassFormatEncoder[TUP] { type From = Tupl...
thurstonsand/fast-cass
src/main/scala_cass21/com/weather/scalacass/CassFormatEncoderVersionSpecific.scala
Scala
mit
843
/** * Copyright 2011-2017 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...
MykolaB/gatling
gatling-charts/src/main/scala/io/gatling/charts/util/Colors.scala
Scala
apache-2.0
1,831
/* * 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 ...
michalsenkyr/spark
external/avro/src/main/scala/org/apache/spark/sql/avro/SchemaConverters.scala
Scala
apache-2.0
7,448
/* * 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...
luchy0120/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/transform/vision/image/opencv/OpenCVMatSpec.scala
Scala
apache-2.0
3,986
package controllers import java.text.DateFormat import scala.collection.JavaConversions.iterableAsScalaIterable import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.future import org.jcrom.Jcrom import com.feth.play.module.pa.user.AuthUser import com.google.inject.Inject import ScalaSe...
uq-eresearch/aorra
app/controllers/FileStoreAsync.scala
Scala
mit
4,657
package net.scalytica.clammyscan import net.scalytica.test.{TestAppContext, TestResources, TestRouterUris} import play.api.test.Helpers.NOT_ACCEPTABLE class KeepInfectedClammyScanSpec extends TestAppContext with TestResources { override lazy val additionalConfig = Map( "clammyscan.removeInfected" -> "false" ...
scalytica/clammyscan
bodyparsers/src/test/scala/net/scalytica/clammyscan/KeepInfectedClammyScanSpec.scala
Scala
mit
1,244
package org.scalatra package servlet import java.io.{ OutputStream, PrintWriter } import javax.servlet.http.{ HttpServletResponse, Cookie => ServletCookie } import org.scalatra.util.RicherString._ import scala.collection.JavaConverters._ import scala.collection.mutable.Map case class RichResponse(res: HttpServletRe...
lightvector/scalatra
core/src/main/scala/org/scalatra/servlet/RichResponse.scala
Scala
bsd-2-clause
2,354
package net.danielkza.http2.util.stream import akka.stream._ import akka.stream.scaladsl._ import akka.stream.stage.Stage object Concentrator { def fromFlow[I, O, M](n: Int, flow: Flow[I, O, M], bufferSize: Int = 1, overflowStrategy: OverflowStrategy = OverflowStrategy.backpressure) : Gr...
danielkza/h2scala
core/src/main/scala/net/danielkza/http2/util/stream/Concentrator.scala
Scala
apache-2.0
1,549
/* * Copyright 2013 - 2020 Outworkers Ltd. * * 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...
outworkers/phantom
phantom-streams/src/test/scala/com/outworkers/phantom/streams/suites/iteratee/OperaPublisher.scala
Scala
apache-2.0
1,396
package org.eigengo.mirror import com.google.api.client.http.javanet.NetHttpTransport import com.google.api.client.json.jackson2.JacksonFactory object ClientComponents { val transport = new NetHttpTransport() val jsonFactory = new JacksonFactory() }
eigengo/activator-mirror
src/main/scala/org/eigengo/mirror/ClientComponents.scala
Scala
apache-2.0
256
package at.logic.gapt.proofs.lk.algorithms import at.logic.gapt.expr.{ Or, HOLFormula } import at.logic.gapt.expr._ import at.logic.gapt.language.schema.SchemaFormula import at.logic.gapt.proofs.lk._ import at.logic.gapt.proofs.lk.base.{ LKProof, Sequent } import at.logic.gapt.proofs.occurrences.{ FormulaOccurrence, _...
gisellemnr/gapt
src/main/scala/at/logic/gapt/proofs/lk/algorithms/clone.scala
Scala
gpl-3.0
23,069
package sangria.visitor import scala.collection.mutable.{Map => MutableMap} class VisitorStack[T]( var node: T, var updated: Boolean, var deleted: Boolean, var currMember: String, var memberIndex: Int, var memberSize: Int, var edits: MutableMap[String, MutableMap[Int, T]], var specialE...
sangria-graphql/macro-visit
src/main/scala/sangria/visitor/VisitorStack.scala
Scala
apache-2.0
413
package openclrenderdemo import java.awt.geom.AffineTransform import java.awt.image.BufferedImage import javax.media.jai.PerspectiveTransform trait ImageRasterizer { def setImage(image: BufferedImage) def rasterize(weight: Int, height: Int, viewTransform: AffineTransform, perspectiveTransform: PerspectiveTransf...
Akon32/openclrenderdemo
src/main/scala/openclrenderdemo/ImageRasterizer.scala
Scala
bsd-3-clause
784
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs // License: http://www.apache.org/licenses/LICENSE-2.0 package org.ensime.api final case class EnsimeConfig( @deprecating("rootDir is no longer used except in testing") rootDir: RawFile, cacheDir: RawFile, javaHome: RawFile, name: String,...
VlachJosef/ensime-server
api/src/main/scala/org/ensime/api/config.scala
Scala
gpl-3.0
1,313
/* * 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 ...
h2oai/sparkling-water
api-generation/src/main/scala/ai/h2o/sparkling/api/generation/common/AutoMLIgnoredParameters.scala
Scala
apache-2.0
1,178
/** Licensed to Gravity.com under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Gravity.com licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this fil...
bikash/HPaste
src/test/scala/com/gravity/hbase/schema/ExampleSchema.scala
Scala
apache-2.0
10,432
/* * 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/src/test/scala/org/apache/flink/table/runtime/aggfunctions/CountAggFunctionWithNonParamTest.scala
Scala
apache-2.0
1,743
package controllers import play.libs.Akka._ import play.api._ import play.api.libs.concurrent._ import play.api.mvc._ import play.libs.Akka import akka.actor.Props import org.jclouds.compute.domain.internal.NodeMetadataImpl import org.jclouds.compute.domain.NodeMetadata import utils.Compute import utils.NodeActors ...
icambridge-old/overlord
app/controllers/Node.scala
Scala
mit
2,836
/* * 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 ...
mahak/spark
external/avro/src/main/scala/org/apache/spark/sql/avro/AvroUtils.scala
Scala
apache-2.0
13,949
package isabelle.eclipse.ui.util import java.net.URI import java.net.URISyntaxException import org.eclipse.core.filesystem.URIUtil import org.eclipse.core.resources.IResource import org.eclipse.core.resources.ResourcesPlugin import org.eclipse.ui.IEditorInput import org.eclipse.ui.editors.text.ILocationProvider impor...
andriusvelykis/isabelle-eclipse
isabelle.eclipse.ui/src/isabelle/eclipse/ui/util/ResourceUtil.scala
Scala
epl-1.0
2,742
/* * 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 ...
h2oai/sparkling-water
scoring/src/main/scala/ai/h2o/sparkling/ml/metrics/H2OGLMMetrics.scala
Scala
apache-2.0
1,216
/* * ========================================================================================= * Copyright © 2017 Workday, Inc. * Copyright © 2013-2017 the kamon project <http://kamon.io/> * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the...
Workday/prometheus-akka
src/main/scala/akka/monitor/instrumentation/RouterInstrumentation.scala
Scala
apache-2.0
3,149
/* * 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 ...
tophua/spark1.52
sql/hive/src/test/scala/org/apache/spark/sql/hive/CachedTableSuite.scala
Scala
apache-2.0
8,092
object LearningScala {;import org.scalaide.worksheet.runtime.library.WorksheetSupport._; def main(args: Array[String])=$execute{;$skip(66); println("Welcome to the Scala worksheet");$skip(116); // VALUES are immutable constants. You can't change them once defined. val hello: String = "Hello BA BEAD!";System...
suriarasai/HadoopShowcase
SimpleSparkExamples/.worksheet/src/LearningScala.scala
Scala
cc0-1.0
4,156
import org.springframework.context.ApplicationContext import org.springframework.context.annotation.AnnotationConfigApplicationContext import config.AppConfig import play.api.GlobalSettings object Global extends GlobalSettings { private val ctx = new AnnotationConfigApplicationContext ctx.getEnvironment().setA...
stevehanson/scala-play-di
app/Global.scala
Scala
mit
470
/* * Copyright (c) 2014, Malte Isberner * * 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...
misberner/generateUpdated
src/main/scala/com/github/misberner/scalamacros/updated/macroimpl/generateUpdatedMacro.scala
Scala
apache-2.0
2,038
package com.softwaremill.bootzooka.api import com.softwaremill.bootzooka.version.BuildInfo._ import org.scalatra.swagger.{StringResponseMessage, Swagger, SwaggerSupport} case class VersionJson(build: String, date: String) class VersionServlet(override implicit val swagger: Swagger) extends JsonServlet with SwaggerMa...
umitunal/bootzooka
backend/src/main/scala/com/softwaremill/bootzooka/api/VersionServlet.scala
Scala
apache-2.0
976
package info.siddhuw.example import info.siddhuw.logback.LogbackSpec import info.siddhuw.models.Log import org.scalatest.{Matchers, FlatSpec} import info.siddhuw.models.LogLevel._ class ExampleLoggingSpec extends FlatSpec with Matchers with LogbackSpec { "The Example" should "log the following in order" in { va...
siddhuwarrier/logspec
logspec-example/src/test/scala/info/siddhuw/example/ExampleLoggingSpec.scala
Scala
apache-2.0
588
package net.benchmark.akka.http.fortune import akka.NotUsed import akka.actor.ActorSystem import akka.http.scaladsl.marshalling.{Marshaller, ToEntityMarshaller} import akka.http.scaladsl.model.HttpCharsets.`UTF-8` import akka.http.scaladsl.model.HttpEntity import akka.http.scaladsl.model.MediaTypes.`text/html` import ...
nbrady-techempower/FrameworkBenchmarks
frameworks/Scala/akka-http/akka-http-slick-postgres/src/main/scala/net/benchmark/akka/http/fortune/FortuneRoute.scala
Scala
bsd-3-clause
1,978
/*********************************************************************** * Copyright (c) 2013-2017 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...
ronq/geomesa
geomesa-accumulo/geomesa-accumulo-security/src/main/scala/org/locationtech/geomesa/accumulo/security/VisibilityFilterFunction.scala
Scala
apache-2.0
2,379
package com.ticketfly.spreedly.stubs object PurchaseResponses { val purchaseSuccess = <transaction> <amount type="integer">144</amount> <on_test_gateway type="boolean">true</on_test_gateway> <created_at type="datetime">2013-07-31T19:46:26Z</created_at> <updated_at type="datetime">2013-07-...
Ticketfly/spreedly-scala
src/test/scala/com/ticketfly/spreedly/stubs/PurchaseResponses.scala
Scala
mit
6,243
/* active-learning-scala: Active Learning library for Scala Copyright (c) 2014 Davi Pereira dos Santos 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 ...
active-learning/active-learning-scala
src/main/scala/clean/tex/WilcoxonDists.scala
Scala
gpl-2.0
4,099
package scodec.protocols import language.higherKinds import scalaz.{ \\/, -\\/, \\/-, Bind, Lens, LensFamily, Traverse } import \\/.{ left, right } import scalaz.syntax.traverse._ import scalaz.stream.{ Cause, Process, Process1, process1 } import Process._ import process1.Await1 /** General purpose combinators for w...
jrudnick/scodec-protocols
src/main/scala/scodec/protocols/process1ext.scala
Scala
bsd-3-clause
3,425
import org.scalatest.FunSuite class MySpec extends FunSuite { test("bob") { } test("rita") { } }
maiflai/gradle-scalatest
src/test/examples/cmdline/src/test/scala/MySpec.scala
Scala
unlicense
105
package io.swagger.client.api import io.swagger.client.model.Inline_response_200_25 import io.swagger.client.model.VariableUserSource import io.swagger.client.model.Inline_response_200_26 import io.swagger.client.model.Inline_response_200_2 import io.swagger.client.ApiInvoker import io.swagger.client.ApiException imp...
QuantiModo/QuantiModo-SDK-Scala
src/main/scala/io/swagger/client/api/VariableUserSourceApi.scala
Scala
gpl-2.0
9,099
package com.gilt.handlebars.scala.helper import com.gilt.handlebars.scala.Handlebars import com.gilt.handlebars.scala.binding.{Binding, BindingFactory, VoidBinding} import com.gilt.handlebars.scala.context.Context import com.gilt.handlebars.scala.logging.Loggable import com.gilt.handlebars.scala.parser.{Program, _} im...
mwunsch/handlebars.scala
src/main/scala/com/gilt/handlebars/scala/helper/HelperOptionsBuilder.scala
Scala
apache-2.0
4,827
/* * Copyright (C) 2014 AyaIB Developers (http://github.com/fauu/AyaIB) * * This software is licensed under the GNU General Public License * (version 3 or later). See the COPYING file in this distribution. * * You should have received a copy of the GNU Library General Public License * along with this software. I...
fauu/AyaIB
app/repositories/ThreadRepository.scala
Scala
gpl-3.0
4,924
package org.jetbrains.plugins.scala.lang.psi.api import org.jetbrains.plugins.scala.lang.psi.api.statements.params.ScTypeParam import org.jetbrains.plugins.scala.lang.psi.api.statements.{ScFunction, ScTypeAliasDeclaration, ScTypeAliasDefinition} import org.jetbrains.plugins.scala.lang.psi.types.result.TypingContext /...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/toplevel/package.scala
Scala
apache-2.0
1,595
/* * 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 ...
zzcclp/carbondata
integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/addsegment/AddSegmentTestCase.scala
Scala
apache-2.0
57,403
package turksem.util import cats.implicits._ import java.io.StringWriter import java.io.PrintWriter import scala.util.{Try, Success, Failure} import com.typesafe.scalalogging.Logger import nlpdata.datasets.wiktionary.Inflections import nlpdata.util.HasTokens import nlpdata.util.HasTokens.ops._ import nlpdata.util....
julianmichael/mturk-semantics
turksem/jvm/src/main/scala/turksem/util/package.scala
Scala
mit
1,391
package com.twitter.finatra.httpclient.test import com.twitter.finagle.Service import com.twitter.finagle.http.{Request, Response} import com.twitter.finatra.conversions.string._ import com.twitter.finatra.utils.Resettable import com.twitter.inject.app.Banner import com.twitter.inject.{Injector, Logging} import com.tw...
kaushik94/finatra
httpclient/src/test/scala/com/twitter/finatra/httpclient/test/InMemoryHttpService.scala
Scala
apache-2.0
3,458
/* * Copyright 2012-2020 the original author or 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 ap...
planet42/Laika
core/shared/src/main/scala/laika/collection/TransitionalCollectionOps.scala
Scala
apache-2.0
2,294
trait IO { def c(x: Int): Int = ??? } trait SO extends IO { override final def c(x: Int): Int = ??? } trait SOIO extends IO { override def c(x: Int): Int = ??? } trait SOSO extends SOIO with SO abstract class AS extends SO class L extends AS with SOSO // error: cannot override final member object Test { def mai...
dotty-staging/dotty
tests/neg/i5094.scala
Scala
apache-2.0
369
package be.wegenenverkeer.atomium.server.jdbc.legacy import java.sql._ import java.time.OffsetDateTime trait Dialect { /** * @param entryTableName The entry table name. * @return the sql statement for the Feed table. */ protected def createEntryTableStatement(entryTableName: String): String /** *...
kwark/atomium
modules/server-jdbc/src/main/scala/be/wegenenverkeer/atomium/server/jdbc/legacy/Dialect.scala
Scala
mit
6,204
package com.felixmilea.processing.models class RGBColor( red: Float = 255, green: Float = 255, blue: Float = 255, alpha: Float = 255 ) extends Color { var r: Float = red var g: Float = green var b: Float = blue a = alpha def toInt(): Int = { callibrate() val ( rP, gP, bP, aP ) = ( Math.round( r ).to...
felixmc/Scala-Processing-Libs
src/com/felixmilea/processing/models/RGBColor.scala
Scala
mit
1,476
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package scalaguide.tests.specs2 import scalaguide.tests.controllers import play.api.test._ class FunctionalExampleControllerSpec extends PlaySpecification { // #scalafunctionaltest-functionalexamplecontrollerspec "respond to the index Action" in...
marcospereira/playframework
documentation/manual/working/scalaGuide/main/tests/code/specs2/FunctionalExampleControllerSpec.scala
Scala
apache-2.0
693
/* * Copyright 2018 Aman Mehara * * 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 ...
amanmehara/programming-app-data
Scala/AP Sum/ArithmeticProgressionSum.scala
Scala
apache-2.0
1,053
/* * 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 ...
techaddict/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/debug/DebuggingSuite.scala
Scala
apache-2.0
3,047
package io.finch.generic import cats.data.NonEmptyList import cats.effect.Effect import io.finch._ import scala.reflect.ClassTag import shapeless._ import shapeless.labelled._ import shapeless.poly._ /** * A type class empowering a generic derivation of [[Endpoint]]s from query string params. */ trait FromParams[F[...
ImLiar/finch
generic/src/main/scala/io/finch/generic/FromParams.scala
Scala
apache-2.0
1,845
package com.uprootlabs.trackme; sealed abstract class Result() case class Redirect(url: String) extends Result class Content(val contentType: String, val content: String, val responseCode: Int) extends Result case class XmlContent(xContent: xml.Node, respCode: Int = 200) extends Content("text/xml", xContent.toStrin...
chetankothari/trackMe
web/src/com/uprootlabs/trackme/result.scala
Scala
gpl-3.0
826
package sclib.ops import scala.util.Try import sclib.ops.`try`._ import scala.collection.generic.CanBuildFrom object either extends either /** * `Either` extensions * * ''check the member documentation for examples'' */ trait either { /** * extensions on `Either` instances */ implicit class Eit...
j-keck/sclib
src/main/scala/sclib/ops/either.scala
Scala
mit
3,799
/* * 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/amls-frontend
test/controllers/AssetsControllerSpec.scala
Scala
apache-2.0
1,973
/* * 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 ...
michalsenkyr/spark
resource-managers/kubernetes/integration-tests/src/test/scala/org/apache/spark/deploy/k8s/integrationtest/ClientModeTestsSuite.scala
Scala
apache-2.0
4,489
package com.socrata.pg.store.events import com.socrata.datacoordinator.id.{ColumnId, UserColumnId} import com.socrata.datacoordinator.secondary.{FieldNameUpdated, ColumnCreated} import com.socrata.pg.store.{PGStoreTestBase, PGSecondaryUniverseTestBase, PGSecondaryTestBase} import com.socrata.soql.environment.ColumnNam...
socrata-platform/soql-postgres-adapter
store-pg/src/test/scala/com/socrata/pg/store/events/FieldNameUpdatedHandlerTest.scala
Scala
apache-2.0
1,353
/* * Copyright (c) 2018. Fengguo Wei and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License v2.0 * which accompanies this distribution, and is available at * https://www.apache.org/licenses/LICENSE-2.0 * * Detailed contributors ar...
arguslab/Argus-SAF
jawa/src/main/scala/org/argus/jawa/core/ast/javafile/JavaSourceFile.scala
Scala
apache-2.0
2,553
package github.gphat.censorinus.example import github.gphat.censorinus.DogStatsDClient object Benchmark { def main(args: Array[String]): Unit = { val client = new DogStatsDClient(asynchronous=true, defaultSampleRate = 1, maxQueueSize = Some(10000)) val iterations = 10 var tot = 0L Range(start = 0,...
gphat/censorinus
src/main/scala/github/gphat/censorinus/example/Benchmark.scala
Scala
mit
863
package com.lambtors.poker_api.module.poker.infrastructure.stub import java.util.UUID import com.lambtors.poker_api.module.poker.domain.model.PlayerId object PlayerIdStub { def create(playerId: UUID = UUID.randomUUID()): PlayerId = PlayerId(playerId) def random(): PlayerId = create() def invalid(): String = ...
lambtors/poker-api
src/test/scala/com/lambtors/poker_api/module/poker/infrastructure/stub/PlayerIdStub.scala
Scala
mit
325
package spire.math import org.scalatest.Matchers import org.scalacheck.Arbitrary._ import org.scalatest._ import prop._ import spire.implicits._ import BigDecimal.RoundingMode._ class ComplexCheck extends PropSpec with Matchers with GeneratorDrivenPropertyChecks { type C = Complex[BigDecimal] val zero = Comple...
lrytz/spire
tests/src/test/scala/spire/math/ComplexCheck.scala
Scala
mit
3,794
package com.arcusys.learn.liferay.update.version310.certificate3102 import com.arcusys.learn.liferay.update.migration.GoalType import com.arcusys.valamis.updaters.version310.certificate.CertificateTableComponent import com.arcusys.valamis.model.PeriodTypes import com.arcusys.valamis.model.PeriodTypes._ import com.arcu...
arcusys/Valamis
learn-portlet/src/main/scala/com/arcusys/learn/liferay/update/version310/certificate3102/CertificateGoalTableComponent.scala
Scala
gpl-3.0
2,730
/* * 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 ...
goldmedal/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/QueryExecution.scala
Scala
apache-2.0
13,950
/*********************************************************************** * Copyright (c) 2013-2020 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...
aheyne/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/main/scala/org/locationtech/geomesa/accumulo/iterators/S3Iterator.scala
Scala
apache-2.0
1,212
package mesosphere.marathon.health import java.net.{ InetAddress, ServerSocket } import akka.actor.Props import akka.testkit.{ ImplicitSender, TestActorRef } import mesosphere.marathon.Protos.HealthCheckDefinition.Protocol import mesosphere.marathon.core.task.Task import mesosphere.marathon.state.AppDefinition import...
ss75710541/marathon
src/test/scala/mesosphere/marathon/health/HealthCheckWorkerActorTest.scala
Scala
apache-2.0
2,532
/* * Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.scaladsl.persistence.slick import com.lightbend.lagom.scaladsl.persistence.ReadSideProcessor.ReadSideHandler import com.lightbend.lagom.scaladsl.persistence.TestEntity.Evt import com.lightbend.lagom.scaladsl.persi...
rstento/lagom
persistence-jdbc/scaladsl/src/test/scala/com/lightbend/lagom/scaladsl/persistence/slick/SlickTestEntityReadSide.scala
Scala
apache-2.0
2,808
package de.htwg.zeta.common.format.project.gdsl.shape.geoModel import de.htwg.zeta.common.format.project.gdsl.style.StyleFormat import de.htwg.zeta.common.models.project.gdsl.shape.geomodel.RoundedRectangle import play.api.libs.json.JsObject import play.api.libs.json.JsResult import play.api.libs.json.JsValue import p...
Zeta-Project/zeta
api/common/src/main/scala/de/htwg/zeta/common/format/project/gdsl/shape/geoModel/RoundedRectangleFormat.scala
Scala
bsd-2-clause
2,061
/*********************************************************************** * Copyright (c) 2013-2017 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...
ronq/geomesa
geomesa-tools/src/main/scala/org/locationtech/geomesa/tools/export/formats/AvroExporter.scala
Scala
apache-2.0
1,068
package com.aergonaut.lib.manual.gui import com.aergonaut.lib.manual.page.MultiblockPage import net.minecraft.client.gui.GuiButton class GuiMultiblockControl(multiblockPage: MultiblockPage, id: Int, x: Int, y: Int, w: Int, h: Int) extends GuiButton(id, x, y, w, h, "") { }
aergonaut/LifeAquatic
src/main/scala/com/aergonaut/lib/manual/gui/GuiMultiblockControl.scala
Scala
mit
276
package org.bitcoins.spvnode.serializers.messages.data import org.bitcoins.core.crypto.DoubleSha256Digest import org.bitcoins.core.number.UInt64 import org.bitcoins.core.protocol.CompactSizeUInt import org.bitcoins.spvnode.messages.MsgTx import org.bitcoins.spvnode.messages.data.Inventory import org.scalatest.{FlatSpe...
bitcoin-s/bitcoin-s-spv-node
src/test/scala/org/bitcoins/spvnode/serializers/messages/data/RawGetDataMessageSerializerTest.scala
Scala
mit
1,432
import java.io.File import java.io.BufferedWriter import java.io.FileWriter import scala.io.Source object GenColCompatHelper { private def writeFile(targetFile: File, content: String): File = { targetFile.getParentFile.mkdirs() val destWriter = new BufferedWriter(new FileWriter(targetFile)) try { ...
dotty-staging/scalatest
project/GenColCompatHelper.scala
Scala
apache-2.0
13,072
/* * 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 ...
actuaryzhang/spark
sql/hive-thriftserver/v2.3.5/src/main/scala/org/apache/spark/sql/hive/thriftserver/ThriftserverShimUtils.scala
Scala
apache-2.0
2,255
package reactivemongo import reactivemongo.api.{ NodeSetSession, SessionTransaction } import reactivemongo.api.bson.{ BSONArray, BSONBinary, BSONDocument } import reactivemongo.api.commands.{ DeleteCommand, ResolvedCollectionCommand } import reactivemongo.api.{ PackSupport, Session, WriteConcern } final class DeleteC...
ReactiveMongo/ReactiveMongo
driver/src/test/scala/DeleteCommandSpec.scala
Scala
apache-2.0
3,444
package template.client.serverevents import japgolly.scalajs.react.BackendScope import japgolly.scalajs.react.Callback import japgolly.scalajs.react.ReactComponentB import japgolly.scalajs.react.ReactElement import japgolly.scalajs.react.vdom.prefix_<^._ import org.scalajs.dom.MessageEvent import org.scalajs.dom.WebSo...
markschaake/akka-http-scalajs
client/src/main/scala/client/serverevents/ServerEventsList.scala
Scala
mit
3,722
package me.axiometry.blocknet.block import me.axiometry.blocknet._ trait BlockState extends WorldLocatable with BlockLocatable { def block: Block def data: Option[Block.Data] def light: Int def entity: Option[BlockEntity] def withBlock(block: Block): BlockState def withData(data: Option[Block.Data]): Blo...
Axiometry/Blocknet
blocknet-api/src/main/scala/me/axiometry/blocknet/block/BlockState.scala
Scala
bsd-2-clause
483
package io.finch import com.twitter.util.Try import io.finch.internal.BufText import org.json4s._ import org.json4s.jackson.JsonMethods import org.json4s.jackson.Serialization._ package object json4s { /** * @param formats json4s `Formats` to use for decoding * @tparam A the type of data to decode into */...
ilya-murzinov/finch
json4s/src/main/scala/io/finch/json4s/package.scala
Scala
apache-2.0
733
import sbt._ class Test(info: ProjectInfo) extends DefaultProject(info) { val sourcesOnly = "net.liftweb" % "lift-webkit" % "1.0" % "sources" sources() intransitive() val sourcesAndJar = "org.scalacheck" % "scalacheck" % "1.5" withSources() def expectedCompile = Set("scalacheck-1.5.jar", "scalacheck-1.5-sources.jar...
matheshar/simple-build-tool
src/sbt-test/dependency-management/sources/project/build/Test.scala
Scala
bsd-3-clause
1,034
package org.openurp.edu.eams.teach.grade.course.service import java.text.Collator import java.util.Comparator import org.apache.commons.beanutils.PropertyUtils import org.beangle.commons.collection.Collections import org.openurp.edu.teach.code.GradeType import org.openurp.edu.eams.teach.grade.course.web.helper.Teac...
openurp/edu-eams-webapp
grade/src/main/scala/org/openurp/edu/eams/teach/grade/course/service/CourseGradeComparator.scala
Scala
gpl-3.0
2,167
package wam.client import org.scalajs.dom import org.scalajs.dom._ import scala.scalajs.js object log { private val doc = dom.document trait LogSupport { def debug(msg: String) = log(now, "DEBUG", msg) def info(msg: String) = log(now, "INFO", msg) def error(msg: String) = log(now, "ERROR", msg)...
j-keck/wam
client/src/main/scala/wam/client/log.scala
Scala
mit
732
package com.twitter.finagle.mux.pushsession import com.twitter.finagle.mux.transport.Netty4Framer import com.twitter.finagle.netty4.CopyingByteReaderDecoder import com.twitter.finagle.netty4.codec.BufCodec import io.netty.channel.ChannelHandler.Sharable import io.netty.channel._ private[finagle] object PipelineInit e...
twitter/finagle
finagle-mux/src/main/scala/com/twitter/finagle/mux/pushsession/PipelineInit.scala
Scala
apache-2.0
1,071
/* * This file is part of CubeLoader. * Copyright (c) 2016 - 2017, KitsuneAlex, All rights reserved. * * CubeLoader 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 Li...
TeamMD5/CubeLoader
src/main/scala/de/keri/cubelib/item/armor/ItemLeggingsBase.scala
Scala
gpl-3.0
2,217
package pages.changekeeper import org.openqa.selenium.WebDriver import uk.gov.dvla.vehicles.presentation.common.helpers.webbrowser.{Page, WebDriverFactory} import views.changekeeper.VehicleLookupFailure import VehicleLookupFailure.{BeforeYouStartId, VehicleLookupId} import org.scalatest.selenium.WebBrowser.{TextField,...
dvla/vehicles-change-keeper-online
test/pages/changekeeper/VehicleLookupFailurePage.scala
Scala
mit
984
package org.scalaide.core.internal.builder import java.{ util => ju } import scala.collection.mutable.HashSet import org.eclipse.core.resources.IFile import org.eclipse.core.resources.IProject import org.eclipse.core.resources.IResourceDelta import org.eclipse.core.resources.IResourceDeltaVisitor import org.eclipse....
scala-ide/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/core/internal/builder/ScalaBuilder.scala
Scala
bsd-3-clause
6,140
/* * FactoredAlgorithm.scala * Trait for algorithms that use factors * * Created By: Michael Howard (mhoward@cra.com) * Creation Date: Jul 1, 2013 * * Copyright 2013 Avrom J. Pfeffer and Charles River Analytics, Inc. * See http://www.cra.com or email figaro@cra.com for information. * * See http://ww...
jyuhuan/figaro
Figaro/src/main/scala/com/cra/figaro/algorithm/factored/FactoredAlgorithm.scala
Scala
bsd-3-clause
7,722
package org.scalawiki.wlx import org.scalawiki.wlx.dto.Monument import org.scalawiki.wlx.dto.lists.ListConfig.{WleUa, WlmUa} import org.specs2.mutable.Specification class MonumentSpec extends Specification { var text1: String = "{{ВЛП-рядок\\n" + "| ID = 05-105-0001\\n" + "| назва = [[Козятин I|Коз...
intracer/scalawiki
scalawiki-wlx/src/test/scala/org/scalawiki/wlx/MonumentSpec.scala
Scala
apache-2.0
8,343
/* * Copyright 2012 Pellucid and Zenexity * * 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...
Enalmada/datomisca
core/src/main/scala/datomisca/queryExecutor.scala
Scala
apache-2.0
3,465
package org.scalaide.core.internal.formatter import org.eclipse.core.resources.IProject import org.eclipse.core.runtime.IAdaptable import org.eclipse.jface.text._ import org.eclipse.jface.text.TextUtilities.getDefaultLineDelimiter import org.eclipse.jface.text.formatter._ import org.eclipse.jface.text.source.ISourceVi...
Kwestor/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/core/internal/formatter/ScalaFormattingStrategy.scala
Scala
bsd-3-clause
3,724