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 org.jetbrains.plugins.scala package lang.refactoring.memberPullUp import com.intellij.openapi.project.Project import com.intellij.psi.codeStyle.CodeStyleManager import com.intellij.psi.{PsiDocumentManager, PsiElement} import com.intellij.refactoring.{BaseRefactoringProcessor, RefactoringBundle} import com.inte...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/lang/refactoring/memberPullUp/ScalaPullUpProcessor.scala
Scala
apache-2.0
7,441
/** * Copyright 2013 Jim Burton. * Copyright 2014 Kangmo Kim * * Licensed under the MIT license (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/mit-license.php * * Unless required by applicable ...
Kangmo/bitcoinj
core/src/main/scala/com/nhnsoft/bitcoin/crypto/KeyCrypter.scala
Scala
apache-2.0
2,978
package org.zalando.nakadi.client.utils import java.util.Optional import java.util.concurrent.TimeUnit import scala.collection.JavaConversions._ import scala.concurrent.Await import scala.concurrent.duration.Duration object FutureConversions { // private def extractEither[T](either: Either[String, T]): T = eithe...
zalando/nakadi-klients
client/src/main/scala/org/zalando/nakadi/client/utils/FutureConversions.scala
Scala
mit
2,164
/** * 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...
usakey/kafka
core/src/test/scala/unit/kafka/security/auth/ResourceTypeTest.scala
Scala
apache-2.0
1,361
/** * 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-http/src/main/scala/io/gatling/http/action/ws2/WsSend.scala
Scala
apache-2.0
1,800
/* * 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...
psyyz10/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/torch/EuclideanSpec.scala
Scala
apache-2.0
4,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 ...
JerryLead/spark
sql/core/src/test/scala/org/apache/spark/sql/SubquerySuite.scala
Scala
apache-2.0
28,837
package com.arcusys.valamis.quiz.service import com.arcusys.valamis.quiz.model.{ QuizQuestionCategory, QuizTreeElement } import com.arcusys.valamis.quiz.storage.{ QuizQuestionCategoryStorage, QuizQuestionStorage, QuizTreeStorage } trait QuizCategoryServiceImpl extends QuizQuestionServiceImpl with QuizService { pro...
ViLPy/Valamis
valamis-quiz/src/main/scala/com/arcusys/valamis/quiz/service/QuizCategoryServiceImpl.scala
Scala
lgpl-3.0
2,490
package ch.wsl.box.rest.logic.notification import java.util.Date import ch.wsl.box.jdbc.Connection import ch.wsl.box.services.Services import org.postgresql.PGConnection import scribe.Logging import scala.concurrent.{ExecutionContext, Future} import scala.util.{Failure, Success, Try} trait PgNotifier{ def stop() ...
Insubric/box
server/src/main/scala/ch/wsl/box/rest/logic/notification/NotificationsHandler.scala
Scala
apache-2.0
2,990
package com.twitter.inject.modules import com.twitter.finagle.stats.{LoadedStatsReceiver, StatsReceiver} import com.twitter.inject.TwitterModule object StatsReceiverModule extends TwitterModule { override def configure() { bindSingleton[StatsReceiver].toInstance(LoadedStatsReceiver) } }
tom-chan/finatra
inject/inject-modules/src/main/scala/com/twitter/inject/modules/StatsReceiverModule.scala
Scala
apache-2.0
298
/* * Copyright 2012-2014 Comcast Cable Communications Management, LLC * * 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 * * Unl...
mattinger/sirius
src/main/scala/com/comcast/xfinity/sirius/api/impl/status/StatusWorker.scala
Scala
apache-2.0
2,918
/* * Copyright 2013-2015 Websudos, Limited. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list of c...
levinson/phantom
phantom-dsl/src/main/scala/com/websudos/phantom/builder/ops/ImplicitMechanism.scala
Scala
bsd-2-clause
9,482
package utils import java.nio.charset.Charset import java.nio.file.Files import java.nio.file.Path import java.io.{File, PrintWriter} object FileUtils { def readFileToString(file: File, encoding: Charset) = { val encoded = Files.readAllBytes(file.toPath) new String(encoded, encoding) } def writeString...
j-c-w/mlc
src/main/scala/utils/FileUtils.scala
Scala
gpl-3.0
479
package org.precompiler.spark101.env import java.io.File /** * * @author Richard Li */ trait EnvSetup { private val winutilsPath = getUserDir() + File.separator + "src" + File.separator + "main" + File.separator + "resources" def setupMockHadoop(): Unit = { if (isWindows()) { System.setProperty("...
precompiler/spark-101
learning-spark/src/main/scala/org/precompiler/spark101/env/EnvSetup.scala
Scala
apache-2.0
527
package skinny.task import org.scalatest._ class SkinnyTaskLauncherSpec extends FlatSpec with Matchers { val launcher = new SkinnyTaskLauncher {} var result: String = "ng" it should "accept registered tasks" in { launcher.register("echo", (params) => params.foreach(println)) launcher.register("s...
skinny-framework/skinny-framework
task/src/test/scala/skinny/task/SkinnyTaskLauncherSpec.scala
Scala
mit
517
package unfiltered.response import unfiltered.request._ trait ResponseFunction[-A] { // A is contravariant so e.g. a ResponseFunction[Any] can be supplied // when ResponseFunction[HttpServletResponse] is expected. def apply[B <: A](res: HttpResponse[B]): HttpResponse[B] } trait Responder[A] extends ResponseFun...
softprops/Unfiltered
library/src/main/scala/response/functions.scala
Scala
mit
944
/* * Copyright 2014-15 Intelix Pty 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 agr...
intelix/eventstreams
es-instructions/es-instructions-set/src/main/scala/eventstreams/instructions/DateInstruction.scala
Scala
apache-2.0
6,417
package ingraph.ire.listeners case class AddListener(listener: ChangeListener)
FTSRG/ingraph
ire/src/main/scala/ingraph/ire/listeners/AddListener.scala
Scala
epl-1.0
80
/* * 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 ...
nchammas/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/orc/OrcQuerySuite.scala
Scala
apache-2.0
31,390
package Repositories import Database.UserSchema import Models.User import org.squeryl.PrimitiveTypeMode._ /** * Created by sandman on 11/29/14. */ object UserRepository { def addUser(name: String, email: String) = { transaction { val newUser = new User(name = name, email = email) UserSchema.users....
J4g0n/testingSqueryl
src/main/scala/Repositories/UserRepository.scala
Scala
mit
379
package org.jetbrains.plugins.scala package codeInspection package collections import com.intellij.codeInspection.ProblemHighlightType import org.jetbrains.plugins.scala.lang.psi.api.expr.ScExpression import org.jetbrains.plugins.scala.lang.psi.types.ScTypeExt import org.jetbrains.plugins.scala.lang.psi.types.result._...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/codeInspection/collections/RedundantCollectionConversionInspection.scala
Scala
apache-2.0
1,427
package io.vamp.gateway_driver.haproxy import io.vamp.common.util.HashUtil case class HaProxy( frontends: List[Frontend], backends: List[Backend], virtualHostFrontends: List[Frontend], virtualHostBackends: List[Backend] ) case class Frontend( name: String, lookup: ...
magneticio/vamp
haproxy/src/main/scala/io/vamp/gateway_driver/haproxy/HaProxy.scala
Scala
apache-2.0
1,480
/* * 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 agre...
scalatest/scalatest
jvm/scalatest-test/src/test/scala/org/scalatest/tools/StringReporterSuite.scala
Scala
apache-2.0
16,269
/* * 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 ...
aosagie/spark
core/src/main/scala/org/apache/spark/rpc/netty/NettyRpcEnv.scala
Scala
apache-2.0
26,923
/* Copyright (c) 2016, Rice University Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2....
agrippa/spark-swat
swat/src/test/scala/org/apache/spark/rdd/cl/tests/Tuple2DenseOutputTest.scala
Scala
bsd-3-clause
3,668
/** * 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 us...
themarkypantz/kafka
core/src/test/scala/integration/kafka/api/ProducerBounceTest.scala
Scala
apache-2.0
7,960
/** * (C) Copyright IBM Corp. 2015 - 2017 * * 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 la...
SparkTC/spark-bench
cli/src/test/scala/com/ibm/sparktc/sparkbench/datageneration/GraphDataGenTest.scala
Scala
apache-2.0
2,887
/* * ========================================================================================= * Copyright © 2017,2018 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 wit...
Workday/prometheus-akka
src/test/scala/com/workday/prometheus/akka/impl/RegexPathFilterSpec.scala
Scala
apache-2.0
2,313
package com.twitter.finagle.memcached.unit import com.twitter.conversions.time._ import com.twitter.finagle.memcached._ import com.twitter.util.{Await, Awaitable} import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import org.scalatest.FunSuite @RunWith(classOf[JUnitRunner]) class PoolingReadRepair...
mkhq/finagle
finagle-memcached/src/test/scala/com/twitter/finagle/memcached/unit/PoolingReadRepairClientTest.scala
Scala
apache-2.0
1,139
package atari.st.disk import java.nio.file.Path case class Disk(root: Path, info: DiskInfo)
suiryc/atari-st-tools
src/main/scala/atari/st/disk/Disk.scala
Scala
gpl-3.0
95
/* __ *\\ ** ________ ___ / / ___ __ ____ Scala.js tools ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2013-2014, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ |/_// /_\\ \\ http://scala-js.org/ ** ** /____/\\___/...
mdedetrich/scala-js
tools/jvm/src/main/scala/org/scalajs/core/tools/io/IRContainerPlatformExtensions.scala
Scala
bsd-3-clause
1,740
/* * 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 ...
yu-iskw/gihyo-spark-book-example
src/main/scala/jp/gihyo/spark/ch06/gihyo_6_3_reduceByKeyAndWindow.scala
Scala
apache-2.0
1,794
package uk.zebington.junkcraft.proxy import net.minecraftforge.fml.common.registry.GameRegistry import uk.zebington.junkcraft._ import uk.zebington.junkcraft.common.tileentities.{TileEntitySpikeStation, TileEntityElectricFence} /** * Created by Charlotte on 19/02/2015. */ class CommonProxy { def registerRenderers...
zebington/JunkCraft
src/main/scala/uk/zebington/junkcraft/proxy/CommonProxy.scala
Scala
gpl-3.0
554
package scala.pickling.singleton.simple import org.scalatest.FunSuite import scala.pickling._, scala.pickling.Defaults._, json._ object D { val shouldntSerializeMe = 42 } class SingletonSimpleTest extends FunSuite { test("main") { val pickle = D.pickle assert(pickle.toString === """ |JSONPickle({ ...
scala/pickling
core/src/test/scala/scala/pickling/generation/SingletonSimpleTest.scala
Scala
bsd-3-clause
472
/* * * 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/commands/Diff.scala
Scala
apache-2.0
7,620
/* * 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 ...
jongwook/incubator-s2graph
s2counter_core/src/main/scala/org/apache/s2graph/counter/helper/WithHBase.scala
Scala
apache-2.0
3,763
/* * 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
core/src/test/scala/org/apache/spark/api/python/PythonRDDSuite.scala
Scala
apache-2.0
1,964
package provingground.codeexperiments import annotation.tailrec //import scala.swing._ import java.awt.Dimension import akka.actor._ import scala.concurrent._ import scala.concurrent.duration._ import scala.util._ import provingground.TextToInt._ import akka.util.Timeout.durationToTimeout import akka.pattern.ask impor...
siddhartha-gadgil/ProvingGround
digressions/src/main/scala/provingground/codeexperiments/Factorisation.scala
Scala
mit
2,765
/** * Original work: SecureSocial (https://github.com/jaliss/securesocial) * Copyright 2013 Brian Porter (poornerd at gmail dot com) - twitter: @poornerd * * Derivative work: Silhouette (https://github.com/mohiva/play-silhouette) * Modifications Copyright 2015 Mohiva Organisation (license at mohiva dot com) * * ...
rfranco/play-silhouette
silhouette/app/com/mohiva/play/silhouette/impl/providers/oauth2/FoursquareProvider.scala
Scala
apache-2.0
5,992
/* * Copyright 2001-2014 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...
travisbrown/scalatest
src/test/scala/org/scalactic/GeneralContainElementSpec.scala
Scala
apache-2.0
1,012
package com.gfeuillen.neo4j.sink import java.util.Properties import com.gfeuillen.neo4j.util.ConnectorProperties import com.gfeuillen.neo4j.wrapper.ScalaSinkConnector import org.apache.kafka.common.config.ConfigDef import org.apache.kafka.connect.connector.Task import scala.collection.mutable class Neo4JSinkConnect...
Gfeuillen/neo4j-sink
sink/src/main/scala/com/gfeuillen/neo4j/sink/Neo4JSinkConnector.scala
Scala
mit
888
/* * Copyright 2017 Iaroslav Zeigerman * * 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...
akkeeper-project/akkeeper
akkeeper/src/test/scala/akkeeper/ActorTestUtils.scala
Scala
apache-2.0
1,581
/* * 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 ...
cbickel/openwhisk
tests/src/test/scala/org/apache/openwhisk/core/controller/test/SwaggerRoutesTests.scala
Scala
apache-2.0
2,127
package models import api.{Tweet, TweetLocation} import models.traits.{BaseTable, BaseTableQueryOps, GenericDB} import org.joda.time.DateTime import play.api.libs.json.{Format, Json} import scala.slick.driver.PostgresDriver.simple._ import scala.slick.jdbc.JdbcBackend.Database.dynamicSession case class UserTweet(id:...
rtfpessoa/distributed-twitter-crawler
app/models/UserTweet.scala
Scala
mit
3,097
package controllers import java.util.{Calendar, Date} import play.api.data.Form import play.api.data.Forms._ import play.api.db.DB import play.api.libs.json._ import play.api.mvc._ import anorm._ import play.api.Play.current class Record extends Controller with Secured{ val recordFormTuple = Form( tuple( ...
orlyngerano/myexpenses
app/controllers/Record.scala
Scala
apache-2.0
7,691
// Copyright 2014,2015,2016,2017,2018,2019,2020 Commonwealth Bank of Australia // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unles...
CommBank/grimlock
grimlock-core/src/main/scala/commbank/grimlock/framework/Type.scala
Scala
apache-2.0
6,509
/* * Copyright 2019 Google LLC 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 required by applicab...
CloudVLab/professional-services
tools/bigquery-zos-mainframe-connector/src/main/scala/com/google/cloud/bqsh/QueryOptionParser.scala
Scala
apache-2.0
8,057
package com.twitter.finagle.util import java.net.InetSocketAddress import org.junit.runner.RunWith import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class InetSocketAddressUtilTest extends FunSuite { test("parseHosts") { assert(InetSocketAddressUtil.parseHosts("...
firebase/finagle
finagle-core/src/test/scala/com/twitter/finagle/util/InetSocketAddressUtilTest.scala
Scala
apache-2.0
1,652
package gitbucket.core import java.io.FileOutputStream import java.nio.charset.StandardCharsets import java.sql.Connection import java.util.UUID import gitbucket.core.model.Activity import gitbucket.core.util.Directory.ActivityLog import gitbucket.core.util.JDBCUtil import io.github.gitbucket.solidbase.Solidbase impo...
gitbucket/gitbucket
src/main/scala/gitbucket/core/GitBucketCoreModule.scala
Scala
apache-2.0
5,158
package be.wegenenverkeer.atomium.server.jdbc trait PostgresDialect extends Dialect { protected override def createEntryTableStatement(entryTableName: String): String = { s"""CREATE TABLE IF NOT EXISTS $entryTableName ( |${EntryDbModel.Table.idColumn} SERIAL primary key, |${EntryDbModel.Table...
joachimvda/atomium
modules/server-jdbc/src/main/scala/be/wegenenverkeer/atomium/server/jdbc/PostgresDialect.scala
Scala
mit
3,955
/* * Created on 2010/11/04 * Copyright (c) 2010-2014, Wei-ju Wu. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, ...
weiju/zmpp2
zmpp-glulx/src/main/scala/org/zmpp/glulx/ChannelIO.scala
Scala
bsd-3-clause
2,884
/* * * * Copyright 2014 websudos 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...
nosheenzaza/phantom-data-centric
phantom-testing/src/main/scala/com/websudos/phantom/testing/BaseTest.scala
Scala
gpl-2.0
4,821
package com.sksamuel.elastic4s import org.elasticsearch.action.get.GetResponse import org.elasticsearch.client.{Client, Requests} import org.elasticsearch.index.VersionType import org.elasticsearch.index.get.GetField import org.elasticsearch.search.fetch.source.FetchSourceContext import scala.concurrent.Future import...
k4200/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/GetDsl.scala
Scala
apache-2.0
3,767
/* * Copyright 2017-2018 Azad Bolour * Licensed under GNU Affero General Public License v3.0 - * https://github.com/azadbolour/boardgame/blob/master/LICENSE.md */ package com.bolour.boardgame.scala.server.domain import com.bolour.boardgame.scala.common.domain.{Piece, PlayPiece} import com.bolour.plane.scala.dom...
azadbolour/boardgame
scala-server/app/com/bolour/boardgame/scala/server/domain/StripMatcher.scala
Scala
agpl-3.0
14,950
/* * 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 ...
mdespriee/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryRelation.scala
Scala
apache-2.0
7,779
package com.openstudy.sbt import java.lang.Runtime import scala.collection.JavaConversions._ import org.scalatest._ import mock._ import org.mockito.Mockito._ import org.mockito.Matchers._ import java.io._ import _root_.sbt.{File => SbtFile, _} import Keys.{baseDirectory, resourceDirectory, streams, target, _} c...
Shadowfiend/sbt-resource-management
src/test/scala/com/openstudy/sbt/SassCompilationSpec.scala
Scala
mit
5,975
package com.transgee.ebook.pdf private abstract class GraphicsOperations { def showGlyph(): Unit def appendRectangle(): Unit def clip(): Unit def moveTo(): Unit def lineTo(): Unit def curveTo(): Unit def closePath(): Unit def endPath(): Unit def strokePath(): Unit def fillPath(): Unit def fillAn...
zenkiezhu/scala-ebook-clipper
src/main/scala/com/transgee/ebook/pdf/GraphicsOperations.scala
Scala
apache-2.0
369
package net.sansa_stack.query.tests import org.scalatest.Tag object UnsupportedFeature extends Tag("net.sansa_stack.query.UnsupportedFeature") object ConformanceTestSuite extends Tag("net.sansa_stack.query.ConformanceTestSuite")
SANSA-Stack/SANSA-RDF
sansa-query/sansa-query-tests/src/main/scala/net/sansa_stack/query/tests/Tags.scala
Scala
apache-2.0
231
package codebook.runtime.server import codebook.runtime.protocol.{OptimizedRequestQueue, Request, RequestQueue} import scala.concurrent.duration.Duration trait LimitedIntervalFeeder[S,D] { _ : UserServiceActorBase[S,D] => private var _lastExecution:Long = 0L private var _penalty = 0L private var _waiting = fal...
RustyRaven/CodebookRuntime
scala/src/main/scala/codebook/runtime/server/LimitedIntervalFeeder.scala
Scala
mit
1,325
package mesosphere.marathon import akka.Done import mesosphere.AkkaUnitTest import mesosphere.marathon.test.SettableClock import mesosphere.marathon.core.condition.Condition import mesosphere.marathon.core.health.HealthCheckManager import mesosphere.marathon.core.instance.{ Instance, TestInstanceBuilder } import mesos...
janisz/marathon
src/test/scala/mesosphere/marathon/SchedulerActionsTest.scala
Scala
apache-2.0
12,382
package com.clackjones.connectivitymap.referenceprofile trait ReferenceSetLoaderComponent { def referenceSetLoader : ReferenceSetLoader /** * A class to take a [[ReferenceSet]] object and load all of its * constituent [[ReferenceProfile]]s from file. */ trait ReferenceSetLoader { /** * load ...
hiraethus/scala-connectivity-map
src/main/scala/com/clackjones/connectivitymap/referenceprofile/ReferenceSetLoader.scala
Scala
gpl-3.0
2,076
package com.twitter.finagle.client import com.twitter.finagle.{ClientConnection, Service, ServiceFactory} import com.twitter.finagle.stats.InMemoryStatsReceiver import com.twitter.util.{Await, Future, Time} import org.junit.runner.RunWith import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner @RunWith(c...
JustinTulloss/finagle
finagle-core/src/test/scala/com/twitter/finagle/client/DefaultPoolTest.scala
Scala
apache-2.0
2,714
class Y class H extends Y class ScalaLowerBound[t >: H] new ScalaLowerBound[Y<caret>] //t >: H
ilinum/intellij-scala
testdata/parameterInfo/typeParameterInfo/Extends/ScalaLowerBound.scala
Scala
apache-2.0
95
/** * Copyright (c) 2013-2015 Patrick Nicolas - Scala for Machine Learning - All rights reserved * * The source code in this file is provided by the author for the sole purpose of illustrating the * concepts and algorithms presented in "Scala for Machine Learning". It should not be used to * build commercial ap...
batermj/algorithm-challenger
books/cs/machine-learning/scala-for-machine-learning/1rst-edition/original-src-from-the-book/src/main/scala/org/scalaml/supervised/hmm/Beta.scala
Scala
apache-2.0
4,567
package lila.analyse import play.api.libs.json._ import lila.common.PimpedJson._ import lila.game.Game object JsonView { def moves(analysis: Analysis) = JsArray(analysis.infoAdvices map { case ((info, adviceOption)) => Json.obj( "eval" -> info.score.map(_.centipawns), "mate" -> info.mate, "b...
clarkerubber/lila
modules/analyse/src/main/JsonView.scala
Scala
agpl-3.0
1,392
package com.wavesplatform.crypto import com.wavesplatform.account.KeyPair import com.wavesplatform.common.state.ByteStr import com.wavesplatform.crypto import com.wavesplatform.test.PropSpec class SigningFunctionsSpecification extends PropSpec { property("signed message should be verifiable with appropriate public...
wavesplatform/Waves
node/src/test/scala/com/wavesplatform/crypto/SigningFunctionsSpecification.scala
Scala
mit
942
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
caneGuy/spark
sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/ui/ThriftServerPageSuite.scala
Scala
apache-2.0
3,812
package com.twitter.finatra_client import org.scalatest.FlatSpec import org.scalatest.matchers.ShouldMatchers import com.twitter.finagle.Service import com.twitter.finagle.http.{Http, RichHttp, Response, Request} import com.twitter.finagle.builder.ClientBuilder import org.jboss.netty.handler.codec.http.HttpMethod cla...
twoism/finatra_client
src/test/scala/com/twitter/finatra_client/FinatraHttpRequestSpec.scala
Scala
apache-2.0
1,300
/* * Copyright 2015 University of Basel, Graphics and Vision Research Group * * 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 * * Unl...
unibas-gravis/scalismo
src/main/scala/scalismo/image/filter/DiscreteImageFilter.scala
Scala
apache-2.0
4,607
package com.rgcase.playground object HelloWorld extends App { println("Hello com.rgcase.playground!") }
rgcase/testplayground
src/main/scala/App.scala
Scala
apache-2.0
107
package uk.co.morleydev.zander.client.data.map import uk.co.morleydev.zander.client.model.arg.Project import uk.co.morleydev.zander.client.model.arg.BuildCompiler._ import uk.co.morleydev.zander.client.model.arg.BuildMode._ import uk.co.morleydev.zander.client.model.store.ArtefactDetails import uk.co.morleydev.zander....
MorleyDev/zander.client
src/main/scala/uk/co/morleydev/zander/client/data/map/RemoveOverlappingFilesFromArtefactDetails.scala
Scala
mit
884
package silhouette trait SecuredUser extends com.mohiva.play.silhouette.api.Identity
fredericoramos78/play-scala-angularjs
app/silhouette/SecuredUser.scala
Scala
gpl-3.0
86
package controllers import javax.inject.Singleton import com.fasterxml.jackson.annotation.JsonValue import org.slf4j.{Logger, LoggerFactory} import play.api.libs.concurrent.Execution.Implicits.defaultContext import play.api.libs.json._ import play.api.mvc._ import play.modules.reactivemongo.MongoController import pla...
ranraj/reactive-play-angular
app/controllers/Plans.scala
Scala
apache-2.0
5,405
package models import db.{CouponDto, CruitedProductDto} import models.client.OrderReceivedFromClient case class Order(id: Option[Long], editionId: Long, containedProductCodes: List[String], couponId: Option[Long], cvFileName: Option[String], ...
PanzerKunst/redesigned-cruited.com-frontend
document-web-service/app/models/Order.scala
Scala
gpl-3.0
3,602
/* * Copyright 2001-2009 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...
hubertp/scalatest
src/examples/scala/org/scalatestexamples/testng/ErrorTestNGSuite.scala
Scala
apache-2.0
938
/*********************************************************************** * 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...
ccri/geomesa
geomesa-utils/src/test/scala/org/locationtech/geomesa/utils/kryo/NonMutatingInputTest.scala
Scala
apache-2.0
1,116
package lila.gameSearch import chess.Mode import org.joda.time.DateTime import play.api.data._ import play.api.data.Forms._ import lila.common.Form._ import lila.search.Range final private[gameSearch] class GameSearchForm { val search = Form( mapping( "players" -> mapping( "a" -> optional(n...
luanlv/lila
modules/gameSearch/src/main/GameSearchForm.scala
Scala
mit
4,889
import scala.reflect.runtime.universe._ object Test extends App { def weakTypeTagIsnotManifest[T: WeakTypeTag] = { println(manifest[T]) } weakTypeTagIsnotManifest[Int] weakTypeTagIsnotManifest[String] weakTypeTagIsnotManifest[Array[Int]] }
felixmulder/scala
test/files/neg/interop_abstypetags_arenot_manifests.scala
Scala
bsd-3-clause
255
package japgolly.scalajs.react import scala.scalajs.js.{Any => JAny, Array => JArray, _} import Internal._ object ReactComponentB { // =================================================================================================================== // Builder @inline def apply[Props](name: String) = new P[P...
chandu0101/scalajs-react
core/src/main/scala/japgolly/scalajs/react/ReactComponentB.scala
Scala
apache-2.0
11,156
package org.humanistika.exist.index.algolia import DOMHelper._ import java.io.{ByteArrayInputStream, StringWriter} import java.nio.charset.StandardCharsets import javax.xml.namespace.QName import javax.xml.parsers.DocumentBuilderFactory import com.fasterxml.jackson.databind.ObjectMapper import org.humanistika.exist.i...
BCDH/exist-algolia-index
src/test/scala/org/humanistika/exist/index/algolia/IndexableRootObjectJsonSerializerSpec.scala
Scala
gpl-3.0
19,750
import scala.collection.mutable.ListBuffer def dfs(nums: Array[Int], target: Int, index: Int, path: ListBuffer[Int], res: ListBuffer[ListBuffer[Int]]): Unit = { if (target == 0) { res += path return } for (i <- index to nums.length-1) { val next = target - nums(i) if (next < 0) { return ...
marcosfede/algorithms
backtrack/combination_sum/combination_sum.scala
Scala
gpl-3.0
711
package com.codahale.jerkson.ser import org.codehaus.jackson.JsonGenerator import org.codehaus.jackson.map.{SerializerProvider, JsonSerializer} import org.codehaus.jackson.map.annotate.JsonCachable @JsonCachable class MapSerializer extends JsonSerializer[collection.Map[_ ,_]] { def serialize(map: collection.Map[_,_...
cphylabs/jerkson-old
src/main/scala/com/codahale/jerkson/ser/MapSerializer.scala
Scala
mit
538
package ml.combust.mleap.bundle.ops.regression import ml.combust.bundle.BundleContext import ml.combust.bundle.dsl._ import ml.combust.bundle.op.OpModel import ml.combust.mleap.bundle.ops.MleapOp import ml.combust.mleap.core.regression.AFTSurvivalRegressionModel import ml.combust.mleap.runtime.MleapContext import ml.c...
combust/mleap
mleap-runtime/src/main/scala/ml/combust/mleap/bundle/ops/regression/AFTSurvivalRegressionOp.scala
Scala
apache-2.0
1,891
package org.zbizaca.electric /** * Represents a network based on Nodes and Links * and an energy propagator * * Created by zbizaca on 10/12/16. */ trait Network { def addPotential(nodeId: Long, potential:Result) = { getNode(nodeId).map { node => node.addResult(potential) } } protected d...
zbizaca/toy-land
src/main/scala/org/zbizaca/electric/Network.scala
Scala
apache-2.0
1,016
/* * 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 ...
jiangxb1987/spark
core/src/test/scala/org/apache/spark/util/UtilsSuite.scala
Scala
apache-2.0
60,775
/* Copyright 2014 Twitter, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
tresata/scalding
scalding-serialization/src/main/scala/com/twitter/scalding/serialization/macros/impl/ordered_serialization/providers/TraversablesOrderedBuf.scala
Scala
apache-2.0
14,529
/** * 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 ...
tomwhite/adam
adam-core/src/main/scala/org/bdgenomics/adam/rdd/read/MarkDuplicates.scala
Scala
apache-2.0
5,365
package atari.st.util.zip import java.io.InputStream import java.util.zip.ZipInputStream class ZipEntryInputStream(zip: ZipInputStream) extends InputStream { private var eof = false @inline private def doAndEOF[T](f: => T, ifEOF: T = ()): T = if (eof) ifEOF else { val r = f eof = available(...
suiryc/atari-st-tools
src/main/scala/atari/st/util/zip/ZipEntryInputStream.scala
Scala
gpl-3.0
692
package com.twitter.finagle.exception import com.fasterxml.jackson.databind.{JsonNode, ObjectMapper} import com.twitter.finagle.core.util.InetAddressUtil import com.twitter.util.{GZIPStringEncoder, Time} import java.lang.{Throwable, StackTraceElement => javaSTE} import java.net.{SocketAddress, InetSocketAddress, InetA...
jamescway/finagle
finagle-exception/src/test/scala/com/twitter/finagle/exception/ServiceExceptionTest.scala
Scala
apache-2.0
8,124
package com.twitter.finagle.toggle import com.twitter.util.{Return, Throw, Try} import org.scalacheck.Arbitrary.arbitrary import org.scalatest.FunSuite import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks import scala.collection.JavaConverters._ class JsonToggleMapTest extends FunSuite with ScalaCheckDr...
luciferous/finagle
finagle-toggle/src/test/scala/com/twitter/finagle/toggle/JsonToggleMapTest.scala
Scala
apache-2.0
5,743
package at.logic.gapt.proofs.algorithms.ceres import at.logic.gapt.proofs.lk.algorithms.subsumption.StillmanSubsumptionAlgorithmHOL import at.logic.gapt.proofs.lk._ import at.logic.gapt.proofs.lksk.TypeSynonyms.Label import at.logic.gapt.proofs.lksk.algorithms.applySubstitution import at.logic.gapt.proofs.occurrences....
gisellemnr/gapt
src/main/scala/at/logic/gapt/proofs/algorithms/ceres/ceres_omega.scala
Scala
gpl-3.0
25,199
package org.jetbrains.plugins.scala package lang package parser package parsing package types import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes import org.jetbrains.plugins.scala.lang.parser.parsing.builder.ScalaPsiBuilder /** * @author Alexander Podkhalyuzin * Date: 28.02.2008 */ object RefineStatSeq { ...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/parser/parsing/types/RefineStatSeq.scala
Scala
apache-2.0
1,201
package suggestions package gui import scala.collection.mutable.ListBuffer import scala.collection.JavaConverters._ import scala.concurrent._ import scala.concurrent.duration._ import scala.concurrent.ExecutionContext.Implicits.global import scala.swing._ import scala.util.{ Try, Success, Failure } import scala.swing....
thiagosqr/coursera-reactive
suggestions/src/main/scala/suggestions/gui/WikipediaSuggest.scala
Scala
apache-2.0
5,061
package io.youi.image import com.outr.{CanvgOptions, canvg} import io.youi._ import io.youi.dom._ import io.youi.image.resize.ImageResizer import io.youi.net.URL import io.youi.path.Path import io.youi.spatial.{BoundingBox, Size} import io.youi.stream.StreamURL import io.youi.util.{CanvasPool, LazyFuture} import org.s...
outr/youi
gui/src/main/scala/io/youi/image/SVGImage.scala
Scala
mit
7,455
/* Author: Kristal Curtis */ package siren import it.unimi.dsi.fastutil.longs.LongList import it.unimi.dsi.fastutil.longs.LongArrayList import org.apache.spark._ abstract class UnionFindAbstract extends Serializable { def size: Long def find(v: Long): Long def union(v: Long, w: Long) def findClu...
fnothaft/siren-release
src/main/scala/siren/UnionFindAbstract.scala
Scala
bsd-2-clause
3,242
/*§ =========================================================================== KnapScal - Core =========================================================================== Copyright (C) 2015-2016 Gianluca Costa =========================================================================== Licensed under the Ap...
giancosta86/KnapScal-core
src/main/scala/info/gianlucacosta/knapscal/knapsack/branchbound/Solution.scala
Scala
apache-2.0
1,452
package breeze.math /* Copyright 2012 David Hall 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 w...
ktakagaki/breeze
src/main/scala/breeze/math/Field.scala
Scala
apache-2.0
5,238
package com.rasterfoundry.database import java.util.UUID import cats.Applicative import cats.implicits._ import com.rasterfoundry.database.util._ import com.rasterfoundry.datamodel._ import com.rasterfoundry.datamodel.PageRequest import doobie._ import doobie.implicits._ import doobie.postgres.implicits._ import doob...
aaronxsu/raster-foundry
app-backend/db/src/main/scala/AoiDao.scala
Scala
apache-2.0
3,492
package org.jetbrains.plugins.scala.codeInspection.collections import org.jetbrains.plugins.scala.codeInspection.InspectionBundle import org.jetbrains.plugins.scala.lang.psi.api.expr.ScExpression /** * @author t-kameyama */ class CollectHeadOptionInspection extends OperationOnCollectionInspection { override def...
triplequote/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/codeInspection/collections/CollectHeadOptionInspection.scala
Scala
apache-2.0
845
package adtoyou.spark.analysis import java.text.SimpleDateFormat import java.util.{Calendar, Date} import aiouniya.spark.MyRDDFunctions._ import aiouniya.spark.util.MD5Util import com.redislabs.provider.redis._ import org.apache.spark.{SparkConf, SparkContext} import redis.clients.util.JedisClusterCRC16 ...
7u/spark-learning
spark.learning/spark_test/src/main/scala/adtoyou/spark/analysis/UMLRefresh.scala
Scala
apache-2.0
5,356