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
package api import com.beimin.eveapi.account.characters.{EveCharacter, CharactersParser} import com.beimin.eveapi.core.ApiAuthorization import com.beimin.eveapi.exception.ApiException import com.typesafe.scalalogging.LazyLogging import scala.collection.JavaConversions._ object CharacterInfo extends LazyLogging { de...
Calavoow/eve-corp-contracts
src/main/scala/api/CharacterInfo.scala
Scala
gpl-2.0
862
/* * 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/expressions/nullExpressions.scala
Scala
apache-2.0
8,282
/* * 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 ...
hongyuhong/flink
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/nodes/datastream/StreamScan.scala
Scala
apache-2.0
2,488
// Copyright: 2017 https://github.com/cakesolutions/sbt-cake/graphs // License: http://www.apache.org/licenses/LICENSE-2.0 // Copyright: 2016-2017 Dale Wijnand // License: http://www.apache.org/licenses/LICENSE-2.0 package net.cakesolutions import java.time.{Instant, ZoneId} import java.time.format.DateTimeFormatter ...
cakesolutions/sbt-cake
src/main/scala/net/cakesolutions/CakeDynVerPlugin.scala
Scala
apache-2.0
8,827
/* * 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 not u...
DavidHHShao/sparkling-water
core/src/main/scala/org/apache/spark/h2o/H2OConf.scala
Scala
apache-2.0
7,900
/*********************************************************************** * 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 ...
drackaer/geomesa
geomesa-process/src/main/scala/org/locationtech/geomesa/process/DensityProcess.scala
Scala
apache-2.0
7,672
package com.twitter.finagle.thrift import com.twitter.finagle.ThriftMux import com.twitter.finagle.benchmark.thriftscala._ import com.twitter.util.{Await, Future} /** * Thrift server for [[HelloClient]] (thrift allocations benchmark). */ object HelloServer { def main(args: Array[String]): Unit = { val server...
mkhq/finagle
finagle-benchmark/src/main/scala/com/twitter/finagle/thrift/HelloServer.scala
Scala
apache-2.0
489
/* 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/lib/RangeGenerator.scala
Scala
gpl-2.0
1,279
/* * * * Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com> * */ package play.api.libs.ws.ssl.debug import java.net.{ URLConnection, URL } import java.util.jar.{ JarEntry, JarInputStream } /** * Loads a set of classes from a package (including ones which are NOT already in the classloader) * and r...
jyotikamboj/container
pf-framework/src/play-ws/src/main/scala/play/api/libs/ws/ssl/debug/ClassFinder.scala
Scala
mit
2,317
import akka.actor.{ActorLogging, Actor} class XpathScraper extends Actor with ActorLogging { def receive = { case "scrape" => log.info(s"scrape xpath from html") } }
dgkris/XPathExtractor
XPathExtractor/src/main/scala/com/dgkris/xpathextractor/actors/XpathScraper.scala
Scala
mit
175
import sbt._ import sbt.Keys._ object Dependencies { object Versions { val ammonite = "0.5.1" val akka = "2.4.1" val akkaHttp = "2.0.1" val phantom = "1.20.1" val spark = "1.6.0" val cassandraConnector = "1.5.0-RC1" } val ammonite = Seq( "com.lihaoyi" % "ammonite-repl" % Versions.am...
blstream/wykopml
project/Dependencies.scala
Scala
mit
2,018
package afterparty import unfiltered.netty import unfiltered.request.{Params, StringHeader, &} import unfiltered.response.Ok import org.jboss.netty.channel.ChannelHandlerContext import org.json4s.native.JsonMethods.parse import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.global import sc...
softprops/after-party
src/main/scala/AfterParty.scala
Scala
mit
2,991
package moe.pizza.sparkhelpers import play.twirl.api.HtmlFormat import spark._ /** * Created by Andi on 16/12/2015. */ object SparkWebScalaHelpers { implicit def stringlambda2route(l: (Request, Response) => String): Route = new Route { override def handle(request: Request, response: Response): String = l(requ...
xxpizzaxx/set.them.red
src/main/scala/moe/pizza/sparkhelpers/SparkWebScalaHelpers.scala
Scala
mit
1,150
package com.datastax.spark.connector.types import java.io.ObjectOutputStream import com.datastax.oss.driver.api.core.`type`.{DataType, UserDefinedType => DriverUserDefinedType} import com.datastax.oss.driver.api.core.`type`.codec.registry.CodecRegistry import com.datastax.oss.driver.api.core.data.{UdtValue => DriverU...
datastax/spark-cassandra-connector
driver/src/main/scala/com/datastax/spark/connector/types/UserDefinedType.scala
Scala
apache-2.0
5,104
package fpinscala.datastructures sealed trait List[+A] // `List` data type, parameterized on a type, `A` case object Nil extends List[Nothing] // A `List` data constructor representing the empty list /* Another data constructor, representing nonempty lists. Note that `tail` is another `List[A]`, which may be `Nil` or ...
ailveen/fpinscala
exercises/src/main/scala/fpinscala/datastructures/List.scala
Scala
mit
6,783
package com.gu.pandomainauth.service import java.math.BigInteger import java.security.SecureRandom import com.gu.pandomainauth.model.{AuthenticatedUser, OAuthSettings, User} import play.api.libs.json.JsValue import play.api.libs.ws.{WSClient, WSResponse} import play.api.mvc.Results.Redirect import play.api.mvc.{Reque...
guardian/pan-domain-authentication
pan-domain-auth-play_2-8/src/main/scala/com/gu/pandomainauth/service/OAuth.scala
Scala
apache-2.0
4,093
package demo.suites import japgolly.scalajs.benchmark.gui.GuiBuilder package object shootouts { lazy val all = GuiBuilder.folder("Shootouts")( AsyncEffectShootout.guiSuite, FreeMonadShootout.guiSuite, LensShooutout.guiSuite, StateMonadShootout.guiSuite, ) }
japgolly/scalajs-benchmark
demo/src/main/scala/demo/suites/shootouts/package.scala
Scala
apache-2.0
281
package model case class ConfirmRegistrationInput(token: String)
sysgears/apollo-universal-starter-kit
modules/user/server-scala/src/main/scala/model/ConfirmRegistrationInput.scala
Scala
mit
66
import scala.collection._ import scala.collection.generic._ trait ViewMkString[+A] trait TraversableViewLike[+A, +Coll, +This <: TraversableView[A, Coll] with TraversableViewLike[A, Coll, This]] extends Traversable[A] with TraversableLike[A, This] with ViewMkStrin...
densh/dotty
tests/pos/paramcycle.scala
Scala
bsd-3-clause
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"); you may ...
Intel-bigdata/OAP
oap-native-sql/core/src/test/scala/org/apache/spark/sql/internal/VariableSubstitutionSuite.scala
Scala
apache-2.0
2,233
/* * 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...
wangyixiaohuihui/spark2-annotation
core/src/main/scala/org/apache/spark/scheduler/MapStatus.scala
Scala
apache-2.0
8,540
package uk.gov.gds.ier.transaction.overseas.nino import uk.gov.gds.ier.transaction.overseas.OverseasControllers import com.google.inject.{Inject, Singleton} import uk.gov.gds.ier.serialiser.JsonSerialiser import uk.gov.gds.ier.config.Config import uk.gov.gds.ier.security.EncryptionService import uk.gov.gds.ier.step.{...
michaeldfallen/ier-frontend
app/uk/gov/gds/ier/transaction/overseas/nino/NinoStep.scala
Scala
mit
1,013
package eu.brosbit.opos.snippet import scala.xml.{Text, Unparsed} import _root_.net.liftweb._ import http.S import common._ import util._ import eu.brosbit.opos.model.edu._ import eu.brosbit.opos.model._ import json.JsonDSL._ import Helpers._ class BaseShowCourseSn { val basePath = "/view/course/" lazy val pa...
mikolajs/osp
src/main/scala/eu/brosbit/opos/snippet/BaseShowCourseSn.scala
Scala
agpl-3.0
9,846
/* * Copyright 2001-2008 Artima, 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 agre...
svn2github/scalatest
src/main/scala/org/scalatest/matchers/BePropertyMatcher.scala
Scala
apache-2.0
6,974
package example class NamedArguments { case class User(name: String) User(name = "John") User.apply(name = "John") }
som-snytt/dotty
tests/semanticdb/expect/NamedArguments.scala
Scala
apache-2.0
124
package app import service._ import util.AdminAuthenticator import util.StringUtil._ import util.ControlUtil._ import jp.sf.amateras.scalatra.forms._ import org.apache.commons.io.FileUtils import util.Directory._ class UserManagementController extends UserManagementControllerBase with AccountService with Repository...
loveshell/gitbucket
src/main/scala/app/UserManagementController.scala
Scala
apache-2.0
7,797
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.core.javac import scala.collection.JavaConverters._ import scala.collection.breakOut import scala.collection.mutable.ArrayBuffer import scala.concurrent.Await import scala...
pascr/ensime-server
core/src/main/scala/org/ensime/core/javac/JavaCompletionsAtPoint.scala
Scala
gpl-3.0
10,127
package com.metl.comet import net.liftweb._ import common._ import http._ import util._ import Helpers._ import actor._ import scala.xml._ object TestCounter { protected var count:Int = 0 def add:Unit = { synchronized { count += 1 } } def remove:Unit = { synchronized { count -= 1 ...
StackableRegiments/analyticalmetlx
src/main/scala/com/metl/comet/Test.scala
Scala
apache-2.0
1,060
package com.microsoft.partnercatalyst.fortis.spark.transforms import java.io.{File, FileNotFoundException} import java.net.URL import java.nio.file.Files import java.util.concurrent.ConcurrentHashMap import com.microsoft.partnercatalyst.fortis.spark.logging.Loggable import net.lingala.zip4j.core.ZipFile import scala...
CatalystCode/project-fortis-spark
src/main/scala/com/microsoft/partnercatalyst/fortis/spark/transforms/ZipModelsProvider.scala
Scala
mit
2,727
package daos.doobie import daos.SubjectDao import daos.doobie.DoobieImports._ import doobie.imports._ import doobie.util.transactor.DataSourceTransactor import javax.inject.Inject import models.{ Role, User } import models.security.MySubject import org.joda.time.Instant import play.api.db.Database class SubjectDaoDoo...
kdoomsday/kaminalapp
app/daos/doobie/SubjectDaoDoobie.scala
Scala
mit
1,241
/* * 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 ...
dbtsai/spark
mllib/src/main/scala/org/apache/spark/ml/classification/DecisionTreeClassifier.scala
Scala
apache-2.0
13,070
/** * Copyright (c) 2016 Intel Corporation  * * 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 applicabl...
trustedanalytics/spark-tk
sparktk-core/src/main/scala/org/apache/spark/graphx/lib/org/trustedanalytics/sparktk/SingleSourceShortestPath.scala
Scala
apache-2.0
5,275
import net.liftweb.json.{Formats, DefaultFormats, JValue, parse, Extraction, render, compact, pretty} import java.util.Date import scala.util.control.NonFatal object JsonUtils { def extractJsonObject(jsonString: String): TextAnalysisResults = { implicit val formats: Formats = DefaultFormats // Required by Lift ...
dotdeb/Pilsner
Analytics/ScienceAnalyzer/Docker-full/spark-app/src/main/scala/models/JsonUtils.scala
Scala
apache-2.0
2,172
package burnup import java.time.ZonedDateTime import github.Milestone import org.specs2.mutable._ class MilestoneHistoryTest extends Specification { "First event timestamps" should { "be None if MilestoneHistory has no event nor due" in { val h = new MilestoneHistory() h.from must beNone } ...
shuwada/github-burnup-chart
src/test/scala/burnup/MilestoneHistoryTest.scala
Scala
apache-2.0
2,182
package org.alcaudon import java.util.concurrent.TimeUnit import org.openjdk.jmh.annotations._ @State(Scope.Benchmark) @BenchmarkMode(Array(Mode.Throughput)) @Fork(1) @Threads(1) @Warmup(iterations = 10, time = 15, timeUnit = TimeUnit.SECONDS, batchSize = 1) @Measurement(iterations = 10, time = 20, timeUnit = TimeUn...
fcofdez/alcaudon
benchmarks/src/main/scala/ComputationBenchmark.scala
Scala
apache-2.0
1,137
/* * Copyright 2016-2018 SN127.fi * * 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...
jaa127/tackler
api/src/main/scala/fi/sn127/tackler/api/TxnHeader.scala
Scala
apache-2.0
3,331
package me.axiometry.blocknet import me.axiometry.blocknet.Location.{Precise => Pos} class BoundingBoxSpec extends UnitSpec { describe("BoundingBox") { it("should have the correct min and max coordinates") { Given("the bounding box((3, -3, -3), (-3, 3, 3))") val bb = BoundingBox(Pos(3, -3, -3), Pos(...
Axiometry/Blocknet
blocknet-api/src/test/scala/me/axiometry/blocknet/BoundingBoxSpec.scala
Scala
bsd-2-clause
4,756
object Test { def main(args: Array[String]): Unit = { var test: String = null val fun1: Int => () => Unit = foo(test) _ val fun2: Int => () => Unit = foo(test)(_) val fun3: Int => () => Unit = { lazy val eta1: String = test (dummy: Int) => foo(eta1)(dummy) } val fun4: Int => () => ...
lrytz/scala
test/files/run/t5610.scala
Scala
apache-2.0
727
package com.asto.dop.core.module.query import com.asto.dop.core.entity.{UserOptEntity, VisitEntity} import com.asto.dop.core.helper.DBHelper import com.ecfront.common.{JsonHelper, Resp} import io.vertx.core.json.JsonObject import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.{Future, Prom...
zj-lingxin/dop-core
src/main/scala/com/asto/dop/core/module/query/RealTimeSourceProcessor.scala
Scala
mit
8,123
package org.scalaide.debug.internal import java.io.File import org.eclipse.core.resources.IncrementalProjectBuilder import org.eclipse.core.runtime.NullProgressMonitor import org.junit.After import org.junit.AfterClass import org.junit.Assert import org.junit.Before import org.junit.Test import org.scalaide.core.test...
scala-ide/scala-ide
org.scala-ide.sdt.debug.tests/src/org/scalaide/debug/internal/SourcePathInStackFrameTest.scala
Scala
bsd-3-clause
2,965
/*********************************************************************** * 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-datastore/src/main/scala/org/locationtech/geomesa/accumulo/audit/AccumuloEventReader.scala
Scala
apache-2.0
2,009
package me.archdev import akka.http.scaladsl.testkit.ScalatestRouteTest import org.scalatest._ import org.scalatest.mockito.MockitoSugar import scala.concurrent.duration._ import scala.concurrent.{Await, Future} trait BaseServiceTest extends WordSpec with Matchers with ScalatestRouteTest with MockitoSugar { def a...
ArchDev/akka-http-rest
src/test/scala/me/archdev/BaseServiceTest.scala
Scala
mit
412
/* * Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
zoo/src/main/scala/com/intel/analytics/zoo/pipeline/api/keras/layers/MaxPooling2D.scala
Scala
apache-2.0
3,862
package hr.element.beepo package Model.postgres import hr.ngs.patterns._ import org.pgscala.converters._ import org.pgscala.util._ import hr.ngs.patterns._ object RequestStatusConverter { private val logger = org.slf4j.LoggerFactory.getLogger(getClass) def fromPGString(record: String, locator: IServiceLocator)...
element-doo/beepo
code/scala/model-services-generated/src/main/scala/hr/element/beepo/Model/postgres/RequestStatusConverter.scala
Scala
bsd-3-clause
5,241
// Copyright (C) 2011-2012 the original author or authors. // See the LICENCE.txt file distributed with this work for additional // information regarding copyright ownership. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You ...
scalastyle/scalastyle
src/test/scala/org/scalastyle/ExcludeFilesTest.scala
Scala
apache-2.0
2,240
/* * 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 ...
ConeyLiu/spark
sql/core/src/test/scala/org/apache/spark/sql/sources/PartitionedWriteSuite.scala
Scala
apache-2.0
6,680
package org.bitcoins.rpc.client.common import org.bitcoins.core.protocol.BitcoinAddress import org.bitcoins.core.protocol.script.ScriptPubKey import org.bitcoins.rpc.jsonmodels.{ DecodeScriptResult, ValidateAddressResult, ValidateAddressResultImpl } import org.bitcoins.rpc.serializers.JsonSerializers._ import pl...
bitcoin-s/bitcoin-s-core
bitcoind-rpc/src/main/scala/org/bitcoins/rpc/client/common/UtilRpc.scala
Scala
mit
842
/* * 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 ...
ksimar/incubator-carbondata
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/DDLStrategy.scala
Scala
apache-2.0
6,448
/* * Copyright 2014 Commonwealth Computer Research, 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 applica...
jnh5y/geomesa
geomesa-core/src/test/scala/org/locationtech/geomesa/core/iterators/IteratorTest.scala
Scala
apache-2.0
1,907
package org.jetbrains.plugins.scala.lang.typeInference import org.jetbrains.plugins.scala.base.ScalaLightCodeInsightFixtureTestAdapter /** * @author Anton Yalyshev * @since 07.09.2018. */ class MixinTypeTest extends ScalaLightCodeInsightFixtureTestAdapter { def testSCL6573(): Unit = { val text = ""...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/lang/typeInference/MixinTypeTest.scala
Scala
apache-2.0
541
package org.jetbrains.plugins.scala package codeInsight package intention package booleans import com.intellij.testFramework.EditorTestUtil /** * @author Ksenia.Sautina * @since 5/13/12 */ class NegateComparisonIntentionTest extends intentions.ScalaIntentionTestBase { import EditorTestUtil.{CARET_TAG => CARET} ...
JetBrains/intellij-scala
scala/codeInsight/test/org/jetbrains/plugins/scala/codeInsight/intention/booleans/NegateComparisonIntentionTest.scala
Scala
apache-2.0
1,568
/** * 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...
lakshmi-kannan/kafka-sashafied
core/src/main/scala/kafka/controller/KafkaController.scala
Scala
apache-2.0
53,336
/* * Copyright 2001-2013 Artima, 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 agr...
travisbrown/scalatest
src/main/scala/org/scalatest/concurrent/ConductorFixture.scala
Scala
apache-2.0
3,843
package com.argcv.iphigenia.example /** * * @author Yu Jing <yu@argcv.com> on 10/6/16 */ package object hdfs { }
yuikns/iphigenia
src/main/scala/com/argcv/iphigenia/example/hdfs/package.scala
Scala
mit
118
/*********************************************************************** * 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-datastore/src/test/scala/org/locationtech/geomesa/accumulo/index/AttributeIndexValuesTest.scala
Scala
apache-2.0
4,795
package com.basrikahveci package cardgame.server import org.jboss.netty.handler.codec.oneone.OneToOneEncoder import org.jboss.netty.channel.{Channel, ChannelHandlerContext} import org.jboss.netty.buffer.ChannelBuffers.{wrappedBuffer, copiedBuffer} import org.jboss.netty.buffer.ChannelBuffer class NullTerminatedMessa...
metanet/cardgame-server-scala
src/main/scala/com/basrikahveci/cardgame/server/NullTerminatedMessageEncoder.scala
Scala
mit
506
package scodec import scalaz.{ \\/, StateT } import scodec.bits.BitVector /** Provides constructors for `DecodingContext`. */ object DecodingContext { /** Lifts a function of the shape `BitVector => String \\/ (BitVector, A)` to a decoding context. */ def apply[A](f: BitVector => String \\/ (BitVector, A)): Dec...
ceedubs/scodec
src/main/scala/scodec/DecodingContext.scala
Scala
bsd-3-clause
718
/* * Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com> */ package controllers.module import play.api.mvc._ import javax.inject.Inject class ModuleController @Inject()(c: ControllerComponents) extends AbstractController(c) { def index = Action { Ok } }
Shenker93/playframework
framework/src/sbt-plugin/src/sbt-test/routes-compiler-plugin/routes-compilation/app/controllers/module/ModuleController.scala
Scala
apache-2.0
281
package HackerRank.ProjectEuler import java.io.{ByteArrayInputStream, IOException, InputStream, PrintWriter} import java.util.InputMismatchException import scala.annotation.tailrec import scala.collection.generic.CanBuildFrom import scala.language.higherKinds /** * Copyright (c) 2017 A. Roberto Fischer * * @au...
robertoFischer/hackerrank
src/main/scala/HackerRank/ProjectEuler/Euler004LargestPalindromeProduct.scala
Scala
mit
9,631
package org.scalamu.core.testapi package scalatest import org.scalamu.core.api.ClassName import org.scalatest.events._ import org.scalatest.{Reporter, Status, Stopper} import scala.collection.mutable class ScalaTestConverters extends SuiteResultTypeConverter[Status] { private val failures = mutable.Set.empty...
sugakandrey/scalamu
core/src/main/scala/org/scalamu/core/testapi/scalatest/ScalaTestConverters.scala
Scala
gpl-3.0
1,187
/* * 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...
yiheng/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/optim/FtrlSpec.scala
Scala
apache-2.0
4,919
/* * Copyright 2014–2018 SlamData 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 agr...
slamdata/matryoshka
tests/shared/src/test/scala/matryoshka/example/mathExpr.scala
Scala
apache-2.0
3,481
package com.github.agourlay.cornichon.http.client import cats.Show import cats.data.EitherT import cats.syntax.either._ import cats.effect.IO import com.github.agourlay.cornichon.core.Done import com.github.agourlay.cornichon.http.{ HttpResponse, HttpRequest, HttpStreamedRequest } import org.http4s.EntityEncoder impo...
agourlay/cornichon
cornichon-core/src/main/scala/com/github/agourlay/cornichon/http/client/NoOpHttpClient.scala
Scala
apache-2.0
792
object Test { def testMethodLocalCaseClass: Unit = { case class MethodLocalWide( f01: Int, f02: Int, f03: Int, f04: Int, f05: Int, f06: Int, f07: Int, f08: Int, f09: Int, f10: Int, f11: Int, f12: Int, f13: Int, f14: Int, f15: Int, f16: Int, f17: Int,...
scala/scala
test/files/run/t9567.scala
Scala
apache-2.0
784
/* * The MIT License (MIT) * * Copyright (c) 2016 Algolia * http://www.algolia.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...
algolia/algoliasearch-client-scala
src/main/scala/algolia/http/HttpPayload.scala
Scala
mit
3,944
case class CC2[A, B](_1: A, _2: B) object Test { def main(args: Array[String]): Unit = { val CC2(_, CC2(a, _)) = CC2(0, CC2(1, 2)) assert(a == 1) } }
som-snytt/dotty
tests/run/i1960.scala
Scala
apache-2.0
163
/** * Licensed to Big Data Genomics (BDG) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The BDG licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
allenday/adam
adam-core/src/test/scala/org/bdgenomics/adam/models/RecordGroupDictionarySuite.scala
Scala
apache-2.0
2,713
package scalakurs.oop abstract class Shape(val center: Point) { def name: String def area: Double def circumference: Double } trait Drawing extends Shape { def draw(): Unit = println(s"Drawing $name with area $area and circumference $circumference with center at $center") } class Circle(center:Point, rad...
elacin/scala-kurs
oppgaver/src/main/scala/scalakurs/oop/Shape.scala
Scala
apache-2.0
666
package com.github.kikuomax.spray.jwt.example import akka.actor.{ ActorSystem, Props } import akka.io.IO import akka.pattern.ask import akka.util.Timeout import scala.concurrent.duration.DurationInt import spray.can.Http /** Runs an example service. */ object Boot extends App { implicit val system = ActorSystem...
kikuomax/spray-jwt
example/src/main/scala/com/github/kikuomax/spray/jwt/example/Boot.scala
Scala
mit
538
package org.ensime.config import java.io.File import org.apache.ivy.{ core, util } import org.apache.ivy.ant.IvyCacheTask import org.apache.ivy.core.report.ArtifactDownloadReport import org.apache.maven.artifact.ant._ import org.apache.tools.ant._ import org.ensime.util._ import org.ensime.util.FileUtils._ import scala...
bbatsov/ensime
src/main/scala/org/ensime/config/ExternalConfigInterface.scala
Scala
gpl-3.0
6,445
/* * 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 ...
ueshin/apache-flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/runtime/batch/table/TableSinkITCase.scala
Scala
apache-2.0
2,676
/* * 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...
kapil-malik/incubator-toree
kernel/src/test/scala/integration/PostProcessorSpecForIntegration.scala
Scala
apache-2.0
2,743
import sbt._ import Keys._ import play.Project._ object ApplicationBuild extends Build { val appName = "share_editor" val appVersion = "1.1" val appDependencies = Seq( jdbc, anorm, "org.webjars" %% "webjars-play" % "2.2.1-2", "org.webjars" % "bootstrap" % "2.3.1", "org.webjars"...
kencharos/share_editor
project/Build.scala
Scala
mit
601
package com.bot4s.telegram.marshalling import java.util.NoSuchElementException import com.bot4s.telegram.methods.ChatAction.ChatAction import com.bot4s.telegram.methods.ParseMode.ParseMode import com.bot4s.telegram.methods.PollType.PollType import com.bot4s.telegram.models._ import com.bot4s.telegram.methods.{ ChatAc...
mukel/telegrambot4s
core/src/com/bot4s/telegram/marshalling/CirceDecoders.scala
Scala
apache-2.0
8,188
package troy package cql.parser.ddl import org.scalatest._ import troy.cql.ast.ddl.Table import troy.cql.ast.{ CreateTable, DataType } import troy.cql.parser.ParserTestUtils.parseSchemaAs class CreateTableParserTest extends FlatSpec with Matchers { "Create Table Parser" should "parse simple create table" in { v...
schemasafe/troy
cql-parser/src/test/scala/troy/cql/parser/ddl/CreateTableParserTest.scala
Scala
apache-2.0
6,491
package com.datapiece import better.files._ object Main extends App { /** Configuration parameter parser */ val parser = new scopt.OptionParser[Config]("datapiece") { override def showUsageOnError = true head("Datapiece", "0.1") opt[String]('b', "boxes") action { (x, c) => c.copy(boxesFile = x...
alexbyrnes/Datapiece
src/main/scala/com/datapiece/Main.scala
Scala
mit
4,572
package classes case class CasePerson(firstname: String, lastName: String, age: Int) { }
Igerly/scalaBasics
src/classes/CasePerson.scala
Scala
mit
92
package repositories import java.nio.file.{Files, Path, Paths} import com.byteslounge.slickrepo.repository.Repository import com.google.inject.Inject import common.errors.{AmbigousResult, NotFound} import model.UserTable.UserTable import models.DbMessageTable.DbMessageTable import models.MessageAttachmentTable.Messag...
sysgears/apollo-fullstack-starter-kit
modules/chat/server-scala/src/main/scala/repositories/ChatRepository.scala
Scala
mit
6,600
/* * Copyright 2019 ABSA Group Limited * * 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...
AbsaOSS/spline
consumer-services/src/main/scala/za/co/absa/spline/consumer/service/repo/OperationRepository.scala
Scala
apache-2.0
950
package asobu.distributed.gateway import play.api.mvc.{RawBuffer, AnyContent, Request} import play.core.routing.RouteParams case class GateWayRequest(routeParam: RouteParams, request: Request[RawBuffer])
iheartradio/asobu
distributed/src/main/scala/asobu/distributed/gateway/GatewayRequest.scala
Scala
apache-2.0
206
import sbt._ import blended.sbt.Dependencies object BlendedMgmtWs extends ProjectFactory { private[this] val helper = new ProjectSettings( projectName = "blended.mgmt.ws", description = "Web sockets interface for Mgmt clients.", deps = Seq( Dependencies.akkaHttp, Dependencies.akkaHttpCore, ...
lefou/blended
project/BlendedMgmtWs.scala
Scala
apache-2.0
1,247
package pidigits class CPS[M <: lib.big.Big](protected val module: M) { import module.{ I => BigInt, _ } def BigInt(i: Int) = { var ret: BigInt = uninit fromInt(i, { ret = _ }) ret } def apply(limit: Int, report5: Int => Unit) = { val (kZero, kOne, kTen) = (BigInt(0), BigInt(1), BigInt(10)) ...
losvald/benchmarks-game
other-lang/miniscala/src/pidigits.scala
Scala
gpl-2.0
2,871
package io.github.configur8 import io.github.configur8.Property._ import org.scalatest.{FunSpec, Matchers} class ConfigurationTemplateTest extends FunSpec with Matchers { private val intProperty = integer("anInteger") describe("Configuration Template") { it("reification blows up when required value is not s...
daviddenton/configur8
scala/src/test/scala/io/github/configur8/ConfigurationTemplateTest.scala
Scala
apache-2.0
1,175
/* * tuProlog - Copyright (C) 2001-2002 aliCE team at deis.unibo.it * * This library 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 l...
zakski/project-soisceal
gospel-core/src/main/scala/com/szadowsz/gospel/core/event/interpreter/WarningEvent.scala
Scala
lgpl-3.0
2,025
/* * 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
io/src/main/scala/laika/io/runtime/TreeResultBuilder.scala
Scala
apache-2.0
6,134
/* * 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 ...
shuangshuangwang/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/AdaptiveSparkPlanExec.scala
Scala
apache-2.0
29,652
package com.github.flameframework.compiler.base import com.github.flameframework.util.WordSplitter._ import scala.language.implicitConversions trait Identifier { def words : Seq[String] override def toString = words.mkString("-") } object Identifier { private case class IdentifierImpl(words: Seq[String]) ...
flameframework/flame-compiler
src/main/scala/com/github/flameframework/compiler/base/Identifier.scala
Scala
apache-2.0
428
package com.twitter.finagle.http.exp.routing /** A value corresponding to a [[Parameter]]. */ private[routing] sealed abstract class ParameterValue { /** The raw string value. */ def value: String override def toString: String = value } private[routing] final case class StringValue(value: String) extends Param...
twitter/finagle
finagle-http/src/main/scala/com/twitter/finagle/http/exp/routing/ParameterValue.scala
Scala
apache-2.0
872
/* Copyright 2017-19, Emmanouil Antonios Platanios. 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 ...
eaplatanios/tensorflow_scala
modules/api/src/main/scala/org/platanios/tensorflow/api/ops/rnn/cell/StackedCell.scala
Scala
apache-2.0
2,724
// Specs2 import org.specs2.mutable.Specification import java.io.File import org.apache.avro.generic._ import org.apache.avro.specific._ import org.apache.avro.Schema import org.apache.avro.Schema.{Type => AvroType} import org.apache.avro.file._ import test._ class Specific14Test extends Specification { "A cas...
ppearcy/avrohugger
avrohugger-core/src/sbt-test/projects/SpecificSerializationTests/src/test/scala/specific/2ArityHomoPrimitivesSpec.scala
Scala
apache-2.0
13,980
package io.ddf.jdbc import java.sql.Connection import io.ddf.DDFManager import io.ddf.DDFManager.EngineType import io.ddf.datasource.DataSourceDescriptor import io.ddf.jdbc.analytics.AnalyticsBehaviors import io.ddf.jdbc.content.ContentBehaviors import io.ddf.jdbc.etl.ETLBehaviors import org.scalatest.FlatSpec class...
ddf-project/ddf-jdbc
jdbc-test/src/test/scala/io/ddf/jdbc/H2JdbcDDFSpec.scala
Scala
apache-2.0
1,696
package org.scalatra.scalate import org.scalatra._ import scala.concurrent.{ExecutionContext, Future} import test.specs2.MutableScalatraSpec import org.fusesource.scalate.layout.DefaultLayoutStrategy import java.util.concurrent.{ExecutorService, ThreadFactory, Executors} import org.specs2.specification.{Step, Fragment...
etorreborre/scalatra
scalate/src/test/scala/org/scalatra/scalate/ScalateFuturesSupportSpec.scala
Scala
bsd-2-clause
8,219
/* * 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 ...
dbtsai/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/ScalaUDF.scala
Scala
apache-2.0
53,550
package org.jetbrains.plugins.scala.project.sdkdetect.repository import java.nio.file.Path import java.util.stream.{Stream => JStream} import com.intellij.openapi.progress.ProgressIndicator import com.intellij.openapi.vfs.{VfsUtilCore, VirtualFile} import org.jetbrains.plugins.scala.ScalaBundle import org.jetbrains.p...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/project/sdkdetect/repository/ProjectLocalDetector.scala
Scala
apache-2.0
1,091
import akka.http.scaladsl.model.HttpEntity import akka.http.scaladsl.model.MediaTypes.`application/json` import akka.http.scaladsl.model.StatusCodes.OK import akka.http.scaladsl.testkit.WSProbe import common.routes.graphql.jsonProtocols.GraphQLMessage.graphQlWebsocketProtocol import common.routes.graphql.jsonProtocols....
sysgears/apollo-universal-starter-kit
modules/chat/server-scala/src/test/scala/ChatWebSocketSpec.scala
Scala
mit
4,196
/*********************************************************************** * Copyright (c) 2013-2019 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...
elahrvivaz/geomesa
geomesa-features/geomesa-feature-common/src/main/scala/org/locationtech/geomesa/features/SimpleFeatureSerializer.scala
Scala
apache-2.0
5,135
/** * 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...
roadboy/KafkaACL
core/src/test/scala/unit/kafka/server/ReplicaFetchTest.scala
Scala
apache-2.0
3,041
package org.jetbrains.plugins.scala package lang.psi.api.expr.xml import lang.psi.ScalaPsiElement import com.intellij.psi.xml.XmlTokenType import com.intellij.psi.PsiElement /** * User: Dmitry Naydanov * Date: 4/9/12 */ trait ScXmlPairedTag extends ScalaPsiElement{ def getTagName = findChildrenByType(XmlTokenTy...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/psi/api/expr/xml/ScXmlPairedTag.scala
Scala
apache-2.0
520
package scalaparsers import Document._ import scalaz.{ Order, Ordering } import scalaz.Scalaz._ /** a Loc is an abstract possibly built-in location * * @author EAK */ sealed abstract class Loc extends Located { def loc = this def orElse(l: Loc): Loc def unifiedWith(l: Loc): Loc = orElse(l) def inferred...
JexCheng/ermine-parser
src/main/scala/scalaparsers/Locations.scala
Scala
bsd-2-clause
4,376
/* * 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 ...
LantaoJin/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalog/v2/TestTableCatalog.scala
Scala
apache-2.0
7,524