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.wandledi.scala import org.wandledi.Scroll import org.wandledi.Selector trait SelectableElement extends org.wandledi.SelectableElement with Element with Selectable object SelectableElement { def apply(selector: Selector, parentScroll: Scroll, localScroll: Scroll) = new SelectableElementImpl(selector...
machisuji/Wandledi
scala-lib/src/main/scala/org/wandledi/scala/SelectableElement.scala
Scala
mit
351
/* * 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 ...
minixalpha/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcFileFormat.scala
Scala
apache-2.0
1,537
/****************************************************************************** * Copyright © 2016 Maxim Karpov * * * * Licensed under the Apache License, Version 2.0 (the "License"); * ...
makkarpov/scalingua
play/src/main/scala/ru/makkarpov/scalingua/play/PlayUtils.scala
Scala
apache-2.0
2,698
/*********************************************************************** * 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-filter/src/main/scala/org/locationtech/geomesa/filter/FilterValues.scala
Scala
apache-2.0
2,840
/* * 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 ...
rednaxelafx/apache-spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/AlreadyExistException.scala
Scala
apache-2.0
3,488
/* * Copyright (c) 2011 Miles Sabin * * 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...
retronym/shapeless
src/main/scala/shapeless/conversions.scala
Scala
apache-2.0
6,124
package org.openapitools.client.model case class GithubRepositories ( _class: Option[String], _links: Option[GithubRepositorieslinks], _items: Option[List[GithubRepository]], _lastPage: Option[Integer], _nextPage: Option[Integer], _pageSize: Option[Integer] ) object GithubRepositories { d...
cliffano/swaggy-jenkins
clients/scala-gatling/generated/src/gatling/scala/org/openapitools/client/model/GithubRepositories.scala
Scala
mit
666
package spark import java.io.{File, FileOutputStream} import java.net.{URI, URL, URLClassLoader} import java.util.concurrent._ import scala.actors.remote.RemoteActor import scala.collection.mutable.ArrayBuffer import com.google.protobuf.ByteString import org.apache.mesos._ import org.apache.mesos.Protos._ import s...
javelinjs/spark
core/src/main/scala/spark/Executor.scala
Scala
bsd-3-clause
6,224
package uk.gov.hmrc.mongo.geospatial import reactivemongo.api.ReadPreference import uk.gov.hmrc.mongo.ReactiveRepository trait Geospatial[A, ID] { self: ReactiveRepository[A, ID] => import scala.concurrent.ExecutionContext import play.api.libs.json.Json import reactivemongo.api.indexes.Index import reacti...
mefellows/simple-reactivemongo
src/main/scala/uk/gov/hmrc/mongo/geospatial/Geospatial.scala
Scala
apache-2.0
960
package pl.bsulkowski.datagrafter /** Contains data and computations organized in a mutable directed tree structure. * * Branch names allow unique identification of any tree element by path from root. * Allows use of references between tree elements, that work like symbolic links for files. * Tree branches and...
bsulkowski/data-grafter
src/main/scala/pl/bsulkowski/datagrafter/Tree.scala
Scala
mit
1,993
/*********************************************************************** * 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-hbase/geomesa-hbase-datastore/src/test/scala/org/locationtech/geomesa/hbase/data/HBaseBackCompatibilityTest.scala
Scala
apache-2.0
12,277
package com.pwootage.metroidprime.formats.scly import com.pwootage.metroidprime.formats.BinarySerializable import com.pwootage.metroidprime.formats.io.PrimeDataFile class ScriptObjectConnection extends BinarySerializable { var state: Int = -1 var message: Int = -1 var targetObject: Int = -1 override def writ...
Pwootage/prime-patcher
src/main/scala/com/pwootage/metroidprime/formats/scly/ScriptObjectConnection.scala
Scala
gpl-3.0
859
/* ************************************************************************************* * Copyright 2012 Normation SAS ************************************************************************************* * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero Ge...
jooooooon/rudder
rudder-core/src/main/scala/com/normation/rudder/batch/AutomaticReportsCleaner.scala
Scala
agpl-3.0
14,600
import _root_.io.gatling.core.scenario.Simulation import ch.qos.logback.classic.{Level, LoggerContext} import io.gatling.core.Predef._ import io.gatling.http.Predef._ import org.slf4j.LoggerFactory import scala.concurrent.duration._ /** * Performance test for the GenJournal entity. */ class GenJournalGatlingTest ex...
dlwhitehurst/blackhole
src/test/gatling/simulations/GenJournalGatlingTest.scala
Scala
apache-2.0
3,636
package controller import org.springframework.stereotype.Controller import org.springframework.web.bind.annotation.{RequestMapping, RequestMethod} import us.hexcoder.twirl.view.TwirlView /** * User: 67726e */ @Controller @RequestMapping(value = Array("/")) class IndexController { @RequestMapping(value = Array("/")...
67726e/Spring-MVC-Twirl
src/test/scala/controller/IndexController.scala
Scala
mit
1,149
package me.heaton.profun.week4 /** * Expression with Pattern Matching */ trait ExprWithPM { /** * A MatchError exception is thrown if no pattern matches the value of selector * * Patterns are constructed from: * constructors * variables (Always begin with a lowercase letter and no repetition) * ...
SanCoder-Q/hello-scala
src/main/scala/me/heaton/profun/week4/ExprWithPM.scala
Scala
mit
1,290
package amphip.model import scala.annotation.implicitNotFound object ops { @implicitNotFound("Ref is not defined for ${A}") trait RefOp[A, B, C] { def apply(a: => A, expr: List[B]): C } @implicitNotFound("=== is not defined for ${A}, ${B}") trait EqOp[A, B, C] { def eq(lhe: A, rhe: B): C } @i...
gerferra/amphip
core/src/main/scala/amphip/model/ops.scala
Scala
mpl-2.0
5,442
package omniauth.lib import scala.xml.NodeSeq import net.liftweb.http.S import net.liftweb.common.Box import net.liftweb.json.JsonParser import net.liftweb.util.Helpers.tryo import dispatch.classic.:/ import omniauth.Omniauth import omniauth.AuthInfo class VKProvider(appId: String, secret: String) extends OmniauthPro...
ghostm/lift-omniauth
src/main/scala/omniauth/lib/VKProvider.scala
Scala
apache-2.0
3,538
package edu.uci.eecs.spectralLDA import breeze.linalg.sum import org.apache.spark.{SparkConf, SparkContext} import edu.uci.eecs.spectralLDA.algorithm._ import org.apache.spark.rdd._ import org.apache.spark.mllib.clustering._ import org.apache.spark.mllib.linalg._ object CVLogPerplexity { def main(args: Array[String...
FurongHuang/SpectralLDA-TensorSpark
src/main/scala/edu/uci/eecs/spectralLDA/CVLogPerplexity.scala
Scala
apache-2.0
3,114
/* * Copyright 2017 PayPal * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Harikiranvuyyuru/squbs
squbs-unicomplex/src/test/scala/org/squbs/unicomplex/cubeB/CubeB.scala
Scala
apache-2.0
1,227
package controllers.management import javax.inject._ import auth.{AdminAction, AuthenticatedRequest} import forms.UsersSamplesForm import models.UserSample import play.api.Logger import play.api.db.Database import play.api.libs.json._ import play.api.mvc._ import scala.util.{Failure, Success, Try} @Singleton class...
chuv-ssrc/bam-server-scala
app/controllers/management/UsersSamplesController.scala
Scala
gpl-3.0
7,378
import sbt._ import sbt.Keys._ object ScalamataBuild extends Build { lazy val buildSettings = Project.defaultSettings ++ Seq( // name := "Automata in Scala", organization := "org.everpeace", version := "0.1-SNAPSHOT", scalaVersion := "2.9.1" // add other settings here ) lazy val...
everpeace/scalamata
project/Build.scala
Scala
mit
715
package tw.edu.ntu.csie.liblinear /** * SolverType defines the names of different solvers. */ object SolverType extends Enumeration { type Solver = Value val L2_LR = Value(0) val L2_L2LOSS_SVC = Value(2) val unknown = Value(-1) def parse(id : Int) : Value = { if(id == L2_LR.id) { return L2_LR; }...
Chieh-Yen/experimental
src/main/scala/tw/edu/ntu/csie/liblinear/Parameter.scala
Scala
apache-2.0
818
package org.psesd.srx.shared.core import org.psesd.srx.shared.core.extensions.ExtendedEnumeration /** Enumeration of supported SRX operations. * * @version 1.0 * @since 1.0 * @author Stephen Pugmire (iTrellis, LLC) **/ object SrxOperation extends ExtendedEnumeration { type SrxOperation = Value val Diagn...
PSESD/srx-shared-core
src/main/scala/org/psesd/srx/shared/core/SrxOperation.scala
Scala
mit
834
package stealthnet.scala.network.connection /** * Connection listener object. * * Defines messages that can be notified to listeners. */ object ConnectionListener { /* XXX - manager connection updates (state, etc) and closing */ /** Message: new connection initiated. */ case class NewConnection(cnx: Stealth...
suiryc/StealthNet
core/src/main/scala/stealthnet/scala/network/connection/ConnectionListener.scala
Scala
gpl-3.0
432
package connections.network import java.io.IOException import java.net.SocketException import connections.{BaseDeviceManager, ConnectionManager} import slide.SystemInfo import enums.ConnectionMode class NetworkDeviceManager extends BaseDeviceManager { private var ndc: NetworkDeviceConnection = null private ...
LorenK96/slide-desktop
src/main/scala/connections/network/NetworkDeviceManager.scala
Scala
gpl-2.0
2,282
package com.intel.analytics.bigdl.apps.model.inference.flink.ImageClassification import com.intel.analytics.bigdl.orca.inference.InferenceModel class MobileNetInferenceModel(var concurrentNum: Int = 1, modelPath: String, modelType: String, inputs: Array[String], outputs: Array[String], intraOpParallelismThreads: Int,...
intel-analytics/BigDL
apps/model-inference-examples/model-inference-flink/src/main/scala/com/intel/analytics/bigdl/apps/model/inference/flink/ImageClassification/MobileNetInferenceModel.scala
Scala
apache-2.0
578
/* * Copyright (C) 2017 LREN CHUV for Human Brain Project * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version...
LREN-CHUV/workflow
src/test/scala/ch/chuv/lren/woken/service/TestServices.scala
Scala
apache-2.0
4,274
import de.qualitune.util.StringUtils import org.scalatest.FunSuite /** * @author Max Leuthaeuser * @since 05.05.12 */ class StringUtilTests extends FunSuite { test("Testing replaceAllWithPrefix") { // single occurrences val t1 = "a.bla()" val t2 = "!a.bla()" val t3 = "xyz.bla()|a.bla()...
max-leuthaeuser/CPSTextInterpreter
src/test/scala/StringUtilTests.scala
Scala
gpl-3.0
2,641
/* * Copyright 2014 Richard Friend. * * 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...
rikf/Holophonor
src/test/scala/holophonor/weave/Nike.scala
Scala
apache-2.0
707
package com.github.akiomik.dispatch.dropbox.core import dispatch._ trait Method { def complete: Req => Req def apply(req: Req): Req = complete(req) } trait Path { val path: Req => Req def base: Req => Req def root: Req => Req } trait DropboxPath extends Path { def root: Req => Req = _ / "dropbox" } tra...
akiomik/dispatch-dropbox
src/main/scala/com/github/akiomik/dispatch/dropbox/core/requests.scala
Scala
mit
7,931
// // JsonGenerator.scala -- Scala object JsonGenerator // Project OrcTests // // Created by jthywiss on Sep 5, 2017. // // Copyright (c) 2018 The University of Texas at Austin. All rights reserved. // // Use and redistribution of this file is governed by the license terms in // the LICENSE file found in the project's ...
orc-lang/orc
OrcTests/src/orc/test/util/JsonGenerator.scala
Scala
bsd-3-clause
4,401
package com.seanshubin.todo.sample import java.io.{OutputStream, InputStream} import scala.annotation.tailrec object IoUtil { def feedInputStreamToOutputStream(inputStream: InputStream, outputStream: OutputStream) { @tailrec def loop(byte: Int) { if (byte != -1) { outputStream.write(byte) ...
SeanShubin/javascript-todo-samples
gui/src/main/scala/com/seanshubin/todo/sample/IoUtil.scala
Scala
unlicense
398
import java.lang.reflect.Modifier trait HaveFinalMethod { final def finalMethod: String = "final" } class Child extends HaveFinalMethod object Test { def main(args: Array[String]): Unit = { val meth = classOf[Child].getMethod("finalMethod") assert(meth.isBridge) val mods = meth.getModifiers asser...
som-snytt/dotty
tests/run/t11485.scala
Scala
apache-2.0
353
class A { var x: Int = 10 def compare(c: Int = 5, a: A = this): Boolean = if (c == a.x) true else false } class B extends A { def updateThenCompare(c: Int): Boolean = { x = c compare() // error } val result = updateThenCompare(5) }
dotty-staging/dotty
tests/init/neg/default-this.scala
Scala
apache-2.0
269
package intron import org.apache.spark.SparkContext import org.scalatest.{ BeforeAndAfterAll, FlatSpec } class DataSpec extends FlatSpec with BeforeAndAfterAll { var sc: SparkContext = _ val ExonsFilePath: String = getClass.getResource("/data/exons.sample").toString val GenesFilePath: String = getClass.getResou...
bbiletskyy/intron-prediction
src/test/scala/intron/DataSpec.scala
Scala
apache-2.0
1,123
/** * Created by Administrator on 2015/1/4. */ println("哈哈哈,hello world scala...")
fangguanya/study
Java/scala/src/greetcall.scala
Scala
mit
91
package loader.core /** A more complex implementation for core, where Element is extended through composition with * an arbitrary Data object which can be built from the parent and Status object. */ trait ExtCore extends definition.Impl { type Status = ExtCore.Status[Key] type Dlg >: Null <: DlgBase ty...
Y-P-/data-processing-binding
Core/src/loader/core/ExtCore.scala
Scala
gpl-3.0
3,986
package models.request import java.util.Date import play.api.data.validation.{Constraint, Invalid, Valid, ValidationError} case class EventCreateRequest( date: Date , title: String , country: String , city: String , url: String ) { /** * Make key string * * @return Key string ...
yh1224/ingressevents
app/models/request/EventCreateRequest.scala
Scala
gpl-2.0
819
/** * 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...
SumoLogic/elasticsearch-client
elasticsearch-aws/src/test/scala/com/sumologic/elasticsearch/util/AwsRequestSignerTest.scala
Scala
apache-2.0
7,862
package mesosphere.marathon.core.plugin import scala.reflect.ClassTag trait PluginManager { def plugins[T](implicit ct: ClassTag[T]): Seq[T] def definitions: PluginDefinitions }
ss75710541/marathon
src/main/scala/mesosphere/marathon/core/plugin/PluginManager.scala
Scala
apache-2.0
187
/* * Copyright 2020 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
producer-model-mapper/src/main/scala/za/co/absa/spline/producer/modelmapper/ModelMapper.scala
Scala
apache-2.0
835
package com.andbutso.poker import com.andbutso.poker.fixtures.AllFixtures import com.andbutso.poker.handhistory.ChipAmount import org.specs2.mutable.SpecificationWithJUnit import org.specs2.mock.Mockito trait ParentSpec extends SpecificationWithJUnit with AllFixtures with Mockito { args.execute(isolated = true, seq...
marcel/texas
src/test/scala/com/andbutso/poker/ParentSpec.scala
Scala
mit
456
package nat.traversal import com.typesafe.scalalogging.StrictLogging import nat.traversal.upnp.UPnPManager import nat.traversal.upnp.ssdp.SSDPClientService object Boot extends StrictLogging { /* It's useful to get a logger here, so that logging system gets initialized. * Otherwise we are likely to get messages...
suiryc/nat-traversal
src/main/scala/nat/traversal/Boot.scala
Scala
gpl-3.0
700
/* * 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 ...
zhangminglei/flink
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/api/batch/table/SetOperatorsTest.scala
Scala
apache-2.0
7,522
package picasso.model.dbp import picasso.utils.{LogCritical, LogError, LogWarning, LogNotice, LogInfo, LogDebug, Logger, Misc, MultiSet} import picasso.math._ import picasso.math.WellPartialOrdering._ import picasso.graph._ import scala.collection.{GenSeq, GenIterable, GenMap} class DepthBoundedProcess[P <: DBCT](tr...
dzufferey/picasso
core/src/main/scala/picasso/model/dbp/DepthBoundedProcess.scala
Scala
bsd-2-clause
5,439
/** * 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...
eljefe6a/kafka
core/src/main/scala/kafka/server/ReplicaManager.scala
Scala
apache-2.0
47,068
/*********************************************************************** * 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-fs/geomesa-fs-tools/src/main/scala/org/locationtech/geomesa/fs/tools/compact/FileSystemCompactionJob.scala
Scala
apache-2.0
6,458
package com.socrata.soql.typed trait Typable[Type] { def typ: Type }
socrata-platform/soql-reference
soql-analyzer/src/main/scala/com/socrata/soql/typed/Typable.scala
Scala
apache-2.0
73
/* * 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 ...
andrewor14/iolap
sql/core/src/main/scala/org/apache/spark/sql/sources/PartitioningUtils.scala
Scala
apache-2.0
11,416
package buck object MainMixed extends App { val argString = args map { _.toUpperCase } mkString "," new Class2(argString).sayHello() }
LegNeato/buck
test/com/facebook/buck/jvm/scala/testdata/scala_binary/MainMixed.scala
Scala
apache-2.0
140
/* * Demo of using by name implicits to resolve (hidden) divergence issues when * traversing recursive generic structures. * * See https://stackoverflow.com/questions/25923974 */ sealed trait HList object HList { implicit class Syntax[L <: HList](l: L) { def ::[U](u: U): U :: L = new ::(u, l) } } sealed t...
lrytz/scala
test/files/run/byname-implicits-6.scala
Scala
apache-2.0
3,369
package scalaSci.util /*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ /** * This trait is used to report errors showing the class and method within * which the error or flaw occured. */ trait Error { /** Name of the class where the error occured */ private val className = ...
scalalab/scalalab
source/src/main/scala/scalaSci/util/Error.scala
Scala
mit
728
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j 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 Foundatio...
HuangLS/neo4j
community/cypher/cypher-compiler-2.3/src/test/scala/org/neo4j/cypher/internal/compiler/v2_3/executionplan/builders/StartPointBuilderTest.scala
Scala
apache-2.0
9,584
/** * 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...
CandleCandle/camel
components/camel-scala/src/test/scala/org/apache/camel/scala/UsingModelTest.scala
Scala
apache-2.0
1,518
/* * @author Philip Stutz * * Copyright 2014 University of Zurich * * 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 * * U...
uzh/triplerush
src/main/scala/com/signalcollect/triplerush/sparql/VariableEncoding.scala
Scala
apache-2.0
1,123
package es.um.nosql.streaminginference.benchmark import scala.collection.immutable.HashMap import org.mongodb.scala.bson.collection.immutable.Document class Aggregate(fields:Int, version:Int, depth:Int) { private lazy val primitives:HashMap[String, String] = { var prim = HashMap[String,String]() for (i ...
catedrasaes-umu/NoSQLDataEngineering
projects/es.um.nosql.streaminginference.benchmark/src/es/um/nosql/streaminginference/benchmark/Aggregate.scala
Scala
mit
1,436
/* * 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-blink/src/main/scala/org/apache/flink/table/sinks/BaseRetractStreamTableSink.scala
Scala
apache-2.0
1,332
package bad.robot.temperature import bad.robot.temperature.task.FixedTimeMeasurement import scalaz.\/ trait TemperatureWriter { def write(measurement: Measurement): Error \/ Unit } trait FixedTimeMeasurementWriter { def write(measurement: FixedTimeMeasurement): Error \/ List[SensorReading] }
tobyweston/temperature-machine
src/main/scala/bad/robot/temperature/TemperatureWriter.scala
Scala
apache-2.0
301
package org.jetbrains.plugins.scala package lang package psi package api package base package patterns import com.intellij.psi.PsiElement import com.intellij.psi.tree.TokenSet import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes import org.jetbrains.plugins.scala.lang.psi.api.expr.{ScExpression, ScGuard} /**...
ilinum/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/base/patterns/ScCaseClause.scala
Scala
apache-2.0
1,113
/* * Distributed as part of Scalala, a linear algebra library. * * Copyright (C) 2008- Daniel Ramage * * 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 ...
scalala/Scalala
src/main/scala/scalala/tensor/Tensor.scala
Scala
lgpl-2.1
24,870
package net.kaliber.basicAuthentication import com.typesafe.config.ConfigValueType import java.util.UUID import org.apache.commons.codec.binary.Base64 import play.api.Configuration import play.api.http.HeaderNames.AUTHORIZATION import play.api.http.HeaderNames.WWW_AUTHENTICATE import play.api.libs.Crypto import pla...
Kaliber/play-basic-authentication-filter
src/main/scala/net/kaliber/basicAuthentication/BasicAuthenticationFilter.scala
Scala
mit
4,693
/** * 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...
dongjiaqiang/kafka
core/src/main/scala/kafka/log/OffsetMap.scala
Scala
apache-2.0
5,916
/* * 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 ...
chuckchen/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JsonInferSchema.scala
Scala
apache-2.0
15,109
package pl.touk.nussknacker.test import org.scalatest.concurrent.{Eventually, ScalaFutures} import org.scalatest.time.{Millis, Minutes, Span} trait ExtremelyPatientScalaFutures extends ScalaFutures with Eventually { final override implicit def patienceConfig: PatienceConfig = PatienceConfig(timeout = scaled(Span(5...
TouK/nussknacker
utils/test-utils/src/main/scala/pl/touk/nussknacker/test/ExtremelyPatientScalaFutures.scala
Scala
apache-2.0
374
/* * Copyright 2014-2020 Rik van der Kleij * 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...
rikvdkleij/intellij-haskell
src/main/scala/intellij/haskell/external/execution/CommandLine.scala
Scala
apache-2.0
8,587
/* * * /\\\\\\\\\\ * /\\\\\\///\\\\\\ * /\\\\\\/ \\///\\\\\\ /\\\\\\\\\\\\\\\\\\ /\\\\\\ /\\\\\\ * /\\\\\\ \\//\\\\\\ /\\\\\\/////\\\\\\ /\\\\\\\\\\\\\\\\\\\\\\ \\/// /\\\\\\\\\\ /\\\\\\\\\\ /\\\\\\ /\\\\\\ /\\\\\\\\\\\\\\\\\\\\ * \\/\\\\\\ \\/\\\\\\ \\/\\\\\\\\\\\\\\\\\\\...
vagm/Optimus
core/src/main/scala/optimus/optimization/enums/SolutionStatus.scala
Scala
lgpl-3.0
1,352
/* * 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 ...
takezoe/incubator-predictionio
examples/scala-parallel-similarproduct/multi-events-multi-algos/src/main/scala/Preparator.scala
Scala
apache-2.0
1,563
def flatMap[A, B](sa: State[S, A])(k: A => State[S, B]): State[S, B] = State { s => val (a, s1) = runState(sa)(s) val sb = k(a) runState(sb)(s1) }
hmemcpy/milewski-ctfp-pdf
src/content/3.5/code/scala/snippet18.scala
Scala
gpl-3.0
162
package actors import akka.testkit.TestActorRef import org.junit.runner.RunWith import org.specs2.mutable.Specification import org.specs2.runner.JUnitRunner import protocol._ @RunWith(classOf[JUnitRunner]) class ScribeSpec extends Specification { "The Scribe" should { "report winner" in new AkkaTestkitSpecs2 {...
lukaszbudnik/kardz
src/test/scala/actors/ScribeSpec.scala
Scala
apache-2.0
408
package com.avsystem.commons package macros trait ApplierUnapplier[T, F] { def apply(f: F): T def unapply(t: T): F } object ApplyUnapplyTest { case class Empty() case class Single(int: Int) case class Multiple(int: Int, str: String) case class Gadt[T](t: T, list: List[T], cos: String) case class Generic...
AVSystem/scala-commons
commons-core/src/test/scala/com/avsystem/commons/macros/ApplyUnapplyTest.scala
Scala
mit
829
def factorizer[A, B, C](p: C => A)(q: C => B): (C => (A, B)) = x => (p(x), q(x))
hmemcpy/milewski-ctfp-pdf
src/content/3.2/code/scala/snippet07.scala
Scala
gpl-3.0
82
package chandu0101.scalajs.react.components.util /** * Created by chandrasekharkode . */ object KeyLine { object Desktop { val GUTTER = 24 val GUTTER_LESS = 16 val INCREMENT = 64 val MENU_ITEM_HEIGHT = 32 } def getIncrementalDim(dim : Double) = Math.ceil( dim / Desktop.INCREMENT) * Desk...
coreyauger/scalajs-react-components
core/src/main/scala/chandu0101/scalajs/react/components/util/KeyLine.scala
Scala
apache-2.0
336
/** * Copyright 2014 Dropbox, 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...
jeremiahyan/djinni
src/source/JNIGenerator.scala
Scala
apache-2.0
19,145
package tastytest object PathDep { trait Foo { type T def foo: T } trait Goo { type F <: Foo val foo: F } class Bar { def bar(member: Foo): member.T = { member.foo } def baz(member: Goo): member.foo.T = { member.foo.foo } def qux(member: Goo): member.foo.typ...
scala/scala
test/tasty/run/src-3/tastytest/PathDep.scala
Scala
apache-2.0
356
package tyler.breakout import levels.RedBrick abstract class Level { def blockCollection: Seq[RedBrick] def initialBatPosition: ImmutableVector2f def initialBatVelocity: ImmutableVector2f def initialBallPosition: ImmutableVector2f def initialBallVelocity: ImmutableVector2f def initialLifeCount: Int } ...
DaveTCode/BreakoutGameScala
src/main/scala/tyler/breakout/Level.scala
Scala
mit
321
package com.arcusys.valamis.web.servlet.scorm import com.arcusys.valamis.lesson.scorm.model.tracking.{ActivityState, ActivityStateNode, ObjectiveState} import com.arcusys.valamis.lesson.scorm.service.ActivityServiceContract import com.arcusys.valamis.lesson.scorm.service.lms.DataModelService import com.arcusys.valamis...
igor-borisov/valamis
valamis-portlets/src/main/scala/com/arcusys/valamis/web/servlet/scorm/RteServlet.scala
Scala
gpl-3.0
7,492
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.runtime.java8 @...
scala/scala
src/library/scala/runtime/java8/JFunction2$mcDII$sp.scala
Scala
apache-2.0
655
package org.jetbrains.plugins.scala package lang.refactoring.changeSignature import java.util import com.intellij.psi.PsiElement import com.intellij.refactoring.changeSignature.MethodDescriptor import com.intellij.refactoring.changeSignature.MethodDescriptor.ReadWriteOption import org.jetbrains.plugins.scala.lang.psi...
ilinum/intellij-scala
src/org/jetbrains/plugins/scala/lang/refactoring/changeSignature/ScalaMethodDescriptor.scala
Scala
apache-2.0
1,723
/******************************************************************************* * Copyright (c) 2012-2013 CWI * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http...
msteindorfer/oopsla15-artifact
pdb.values.persistent.scala/src/main/scala/org/eclipse/imp/pdb/facts/impl/persistent/scala/ListWriter.scala
Scala
epl-1.0
1,754
package mesosphere.marathon.api.v2 import java.util import java.util.concurrent.atomic.AtomicInteger import akka.event.EventStream import com.codahale.metrics.MetricRegistry import mesosphere.marathon._ import mesosphere.marathon.api.{ TestGroupManagerFixture, JsonTestHelper, TaskKiller, TestAuthFixture } import meso...
pgkelley4/marathon
src/test/scala/mesosphere/marathon/api/v2/AppsResourceTest.scala
Scala
apache-2.0
21,112
package mllib.perf import org.json4s.JsonAST._ import org.json4s.JsonDSL._ import org.apache.spark.SparkContext import org.apache.spark.ml.PredictionModel import org.apache.spark.ml.classification.{GBTClassificationModel, GBTClassifier, RandomForestClassificationModel, RandomForestClassifier, LogisticRegression} impo...
Altiscale/spark-perf
mllib-tests/v1p5/src/main/scala/mllib/perf/MLAlgorithmTests.scala
Scala
apache-2.0
32,321
/* * Copyright 2011-2018 GatlingCorp (http://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
wiacekm/gatling
gatling-commons/src/main/scala/io/gatling/commons/stats/assertion/AssertionPathParts.scala
Scala
apache-2.0
878
package mr.merc.map.view import org.scalatest.funsuite.AnyFunSuite import mr.merc.unit.view.SoldierView import org.mockito.Mockito._ import org.mockito.MockitoSugar import org.scalatest.BeforeAndAfter import scalafx.scene.canvas.GraphicsContext import scalafx.geometry.Rectangle2D class SoldierDrawerTest extends AnyFu...
RenualdMarch/merc
src/test/scala/mr/merc/map/view/SoldierDrawerTest.scala
Scala
gpl-3.0
1,282
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.tools.nsc.fsc i...
scala/scala
src/compiler/scala/tools/nsc/fsc/OfflineCompilerCommand.scala
Scala
apache-2.0
1,806
package BootstrapResampling class Bootstrapper(data: SingleSample, statistic: SingleSample => N, B_in: Int, seed: Int) { def this(data: SingleSample, statistic: SingleSample => N, B_in: Int) = this(data, statistic, B_in, default_seed) def this(data: SingleSample, statistic: SingleSample =...
rdtaylor/BootstrapResampling
src/main/scala/BootstrapResampling/BootstrapResampling.scala
Scala
mit
2,376
/* Scala.js compiler * Copyright 2013 LAMP/EPFL * @author Sébastien Doeraene */ package org.scalajs.core.compiler import scala.tools.nsc._ import scala.tools.nsc.plugins.{ Plugin => NscPlugin, PluginComponent => NscPluginComponent } import scala.collection.{ mutable, immutable } import java.net.{ URI, URISynta...
matthughes/scala-js
compiler/src/main/scala/org/scalajs/core/compiler/ScalaJSPlugin.scala
Scala
bsd-3-clause
5,302
/* * Copyright © 2011-2012 Sattvik Software & Technology Resources, Ltd. Co. * 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/licens...
sattvik/baitha
src/main/scala/com/sattvik/baitha/views/EnhancedRadioGroup.scala
Scala
apache-2.0
1,085
package sttp.client3 import sttp.capabilities.Effect import sttp.client3.monad.{FunctionK, MapEffect} import sttp.monad.{EitherMonad, MonadError} import scala.util.control.NonFatal /** A synchronous backend that safely wraps [[SttpBackend]] exceptions in `Either[Throwable, *]`'s * * @param delegate * A synch...
softwaremill/sttp
core/src/main/scala/sttp/client3/EitherBackend.scala
Scala
apache-2.0
1,739
package com.twitter.finagle.loadbalancer.roundrobin import com.twitter.finagle.stats.{NullStatsReceiver, StatsReceiver} import com.twitter.finagle.{Address, NoBrokersAvailableException} import com.twitter.finagle.loadbalancer.EndpointFactory import com.twitter.util.{Activity, Var} trait RoundRobinSuite { // number ...
mkhq/finagle
finagle-core/src/test/scala/com/twitter/finagle/loadbalancer/roundrobin/RoundRobinSuite.scala
Scala
apache-2.0
1,222
package sky.dispatcher.example.CallingThreadDispatcher import akka.actor.{Props, ActorSystem} import akka.routing.RoundRobinRouter import com.typesafe.config.ConfigFactory import sky.MsgEchoActor /** * Created by szekai on 22/08/2014. */ object Example { def main(args: Array[String]): Unit = { val _system = A...
szekai/akka-example
AkkaDispatcherExample/src/main/scala/sky/dispatcher/example/CallingThreadDispatcher/Example.scala
Scala
apache-2.0
657
/* * Copyright (c) 2017-2022 Lymia Alusyia <lymia@lymiahugs.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
Lymia/PrincessEdit
modules/princess-edit/src/main/scala/moe/lymia/princess/editor/scripting/I18NLib.scala
Scala
mit
1,626
/* * 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 ...
spark-test/spark
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala
Scala
apache-2.0
34,451
package is.hail.expr.ir.functions import is.hail.expr.NatVariable import is.hail.expr.ir._ import is.hail.types.coerce import is.hail.types.virtual._ object NDArrayFunctions extends RegistryFunctions { override def registerAll() { for ((stringOp, argType, retType, irOp) <- ArrayFunctions.arrayOps) { val n...
danking/hail
hail/src/main/scala/is/hail/expr/ir/functions/NDArrayFunctions.scala
Scala
mit
1,127
package smtlib package drivers import parser.Terms._ import parser.Commands._ import parser.CommandsResponses._ import printer.RecursivePrinter /** Provide standard complient behaviour for a sequence of commands. * * This driver will properly understand the whole SMT-LIB 2.5 language, * maintaining proper stat...
manoskouk/scala-smtlib
src/main/scala/smtlib/drivers/SemanticsDriver.scala
Scala
mit
9,676
package io.ddf.spark.content import io.ddf.spark.ATestSuite /** * Created by huandao on 7/20/15. */ class CopyDDFSuite extends ATestSuite { createTableMtcars() createTableAirline() test("copy ddf") { val ddf1 = manager.sql2ddf("select * from mtcars", "SparkSQL") Array("cyl", "hp", "vs", "am", "gear", "...
ubolonton/DDF
spark/src/test/scala/io/ddf/spark/content/CopyDDFSuite.scala
Scala
apache-2.0
680
/* * 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 ...
mrchristine/spark-examples-dbc
src/main/scala/org/apache/spark/examples/DriverSubmissionTest.scala
Scala
apache-2.0
1,843
package com.github.jparkie.spark.elasticsearch.sql import com.holdenkarau.spark.testing.SharedSparkContext import org.apache.spark.sql.SQLContext import org.scalatest.{ MustMatchers, WordSpec } class PackageSpec extends WordSpec with MustMatchers with SharedSparkContext { "Package com.github.jparkie.spark.elasticse...
jparkie/Spark2Elasticsearch
src/test/scala/com/github/jparkie/spark/elasticsearch/sql/PackageSpec.scala
Scala
apache-2.0
796
import sbt._ import Keys._ object BuildSettings { val paradiseVersion = "2.0.0-M3" val buildSettings = Defaults.defaultSettings ++ Seq( organization := "mixfix", version := "0.1.0", //scalacOptions ++= Seq("-Ymacro-debug-lite"), scalaVersion := "2.10.3", resolvers += Resolver.sonatypeRepo("snap...
hunam/scala-mixfix
project/Build.scala
Scala
apache-2.0
1,424
package ch.descabato.core.util import java.io.File import java.nio.file.Files import java.text.SimpleDateFormat import java.util.Date import java.util.stream.Collectors import ch.descabato.core.config.BackupFolderConfiguration import scala.collection.JavaConverters._ import scala.util.Try object Constants { val t...
Stivo/DeScaBaTo
core/src/main/scala/ch/descabato/core/util/FileManager.scala
Scala
gpl-3.0
4,703