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
import Macros._ object Test extends App { List(1, 2) match { case UnapplyMacro(x, y) => println((x, y)) } List(1, 2, 3) match { case UnapplyMacro(x, y, z) => println((x, y, z)) } }
som-snytt/dotty
tests/disabled/macro/run/macro-expand-unapply-a/Test_2.scala
Scala
apache-2.0
185
package org.jetbrains.plugins.scala package lang package parser package parsing package top import _root_.org.jetbrains.plugins.scala.lang.parser.parsing.params.TypeParamClause import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes import org.jetbrains.plugins.scala.lang.parser.parsing.builder.ScalaPsiBuilder ...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/lang/parser/parsing/top/TraitDef.scala
Scala
apache-2.0
1,136
package co.s4n.comision.domain import scalaz._ case class Cliente(id: String, nombre: String) sealed trait EstadoComision final case class Nueva() extends EstadoComision final case class Liquidada() extends EstadoComision final case class Anulada() extends EstadoComision final case class Aprobada() extends Estad...
yujikiriki/functional-domain
src/main/scala/co/s4n/comision/domain/comision.scala
Scala
unlicense
1,380
package net.scalytica.clammyscan.streams import java.net.InetSocketAddress import akka.actor.ActorSystem import akka.io.Inet.SO.SendBufferSize import akka.stream._ import akka.stream.scaladsl.{Tcp, _} import akka.util.ByteString import net.scalytica.clammyscan.streams.ClamProtocol._ import net.scalytica.clammyscan.st...
scalytica/clammyscan
streams-lib/src/main/scala/net/scalytica/clammyscan/streams/ClamIO.scala
Scala
mit
6,363
/* Copyright (c) 2017 KAPSARC 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 dist...
EconomicSL/auctions
src/main/scala/org/economicsl/auctions/messages/CancelOrderResponse.scala
Scala
apache-2.0
1,091
package tastytest final class Box[T](t: T)
scala/scala
test/tasty/pos/src-3/tastytest/Box.scala
Scala
apache-2.0
44
/* * 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/test/scala/org/apache/spark/api/python/PythonRDDSuite.scala
Scala
apache-2.0
2,941
import java.awt.Dimension object T { implicit def tuple2Dimension(t: (Int, Int)) = new Dimension(t._1, t._2) } class Dim { def dim = new Dimension(0, 0) def dim_=(d: Dimension) { println(d) } } object Test extends App { import T._ val d = new Dim d.dim = (10, 20) } /*import java.awt.Dimension object T {...
LPTK/intellij-scala
testdata/optimize/implicits/Assignment.scala
Scala
apache-2.0
565
package com.ereisman.esurient.etl.format import com.ereisman.esurient.EsurientConstants._ import java.io.{OutputStream,BufferedOutputStream} import org.apache.hadoop.conf.Configuration import org.apache.hadoop.fs.{Path,FileSystem} import org.apache.hadoop.io.compress.{CompressionCodec,CompressionCodecFactory} impor...
initialcontext/esurient
src/main/scala/com/ereisman/esurient/etl/format/OutStreamGenerator.scala
Scala
apache-2.0
1,388
object Test extends App { val emptyTuple: Tuple = Tuple() val tuple: Tuple = ("1", "2", "3", "4", "5") val tupleXXL: Tuple = ("11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35") println(emptyTuple.take(0)) prin...
lampepfl/dotty
tests/run-deep-subtype/tuple-take.scala
Scala
apache-2.0
707
/* * Copyright 2016 Nicolas Rinaudo * * 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...
nrinaudo/kantan.codecs
core/shared/src/test/scala/kantan/codecs/EncoderCompanionTests.scala
Scala
apache-2.0
1,144
object ch8_11 { import ch8.Gen ??? } import ch8_11._ /* from repl you can test typing: :load src/main/scala/fpinscala/ch6/RNG.scala :load src/main/scala/fpinscala/ch6/State.scala :load src/main/scala/fpinscala/ch8/Gen.scala :load src/main/scala/fpinscala/ch8/Exercise11.scala */
rucka/fpinscala
src/main/scala/fpinscala/ch8/Exercise11.scala
Scala
gpl-2.0
291
/* * 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
mllib/src/test/scala/org/apache/spark/mllib/feature/IDFSuite.scala
Scala
apache-2.0
4,329
/*********************************************************************** * Copyright (c) 2013-2022 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...
locationtech/geomesa
geomesa-security/src/main/scala/org/locationtech/geomesa/security/FilteringAuthorizationsProvider.scala
Scala
apache-2.0
1,293
/** * Copyright (C) 2011 LShift 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 a...
0x6e6562/diffa
agent/src/main/scala/net/lshift/diffa/agent/auth/UserDetailsAdapter.scala
Scala
apache-2.0
5,144
package com.scalableQuality.quick.mantle.error class EncounteredError( whileDoing: String, stoppedBecause: String, toSolveTheProblem: String ) extends UnrecoverableError { override def toString: String = s"""while ${whileDoing} |process is interrupted because ${stoppedBecause} |to solve...
MouslihAbdelhakim/Quick
src/main/scala/com/scalableQuality/quick/mantle/error/EncounteredError.scala
Scala
apache-2.0
603
/* * 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/spark-streaming-with-google-cloud-example
src/test/scala/org/apache/spark/mllib/util/MLlibTestSparkContext.scala
Scala
apache-2.0
2,294
/****************************************************************************** * Copyright (c) 2014, Equal Experts Ltd * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Red...
EqualExperts/Midas
src/test/scala/com/ee/midas/transform/ExceptionInjectorSpecs.scala
Scala
bsd-2-clause
4,363
/* * 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 ...
mike0sv/spark
core/src/main/scala/org/apache/spark/deploy/worker/CommandUtils.scala
Scala
apache-2.0
4,602
/** * 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...
stealthly/kafka
core/src/test/scala/unit/kafka/consumer/TopicFilterTest.scala
Scala
apache-2.0
2,662
package pipelines.images.voc import java.io.File import breeze.linalg._ import breeze.stats._ import evaluation.MeanAveragePrecisionEvaluator import loaders.{VOCDataPath, VOCLabelPath, VOCLoader} import nodes.images.external.{FisherVector, GMMFisherVectorEstimator, SIFTExtractor} import nodes.images.{GrayScaler, Mult...
zhaozhang/keystone
src/main/scala/pipelines/images/voc/VOCSIFTFisher.scala
Scala
apache-2.0
6,313
/** * Copyright (C) 2014 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This program i...
brunobuzzi/orbeon-forms
src/main/scala/org/orbeon/oxf/servlet/LimiterFilter.scala
Scala
lgpl-2.1
4,501
package com.twitter.finagle.netty3.socks import com.twitter.finagle.{ChannelClosedException, ConnectionFailedException, InconsistentStateException} import com.twitter.finagle.netty3.{SocketAddressResolveHandler, SocketAddressResolver} import com.twitter.finagle.socks.{AuthenticationSetting, Unauthenticated, UsernamePa...
adriancole/finagle
finagle-core/src/main/scala/com/twitter/finagle/netty3/socks/SocksConnectHandler.scala
Scala
apache-2.0
9,393
package com.arcusys.valamis.updaters.version310.migrations import com.arcusys.slick.migration.dialect.Dialect import com.arcusys.slick.migration.table.TableMigration import com.arcusys.valamis.persistence.common.SlickProfile import com.arcusys.valamis.updaters.{schema => newSchema} import com.arcusys.valamis.updaters....
arcusys/Valamis
valamis-updaters/src/main/scala/com/arcusys/valamis/updaters/version310/migrations/CertificateActivationColumnMigration.scala
Scala
gpl-3.0
2,204
/* * Copyright (c) 2014-2018 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
ddworak/monix
monix-execution/js/src/main/scala/monix/execution/atomic/Atomic.scala
Scala
apache-2.0
13,647
/* * SPDX-License-Identifier: Apache-2.0 * Copyright 2016-2020 Daniel Urban and contributors listed in NOTICE.txt * * 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.ap...
durban/exp-reagents
core/src/main/scala/dev/tauri/choam/kcas/kcas.scala
Scala
apache-2.0
4,171
package isel.ps.g18 class DirManager( csv: String) { def header = "lat,lon,extremLat,extremLon,averageSpeed,normalizedByLog,normalizedByMinMax,customScale,north,south,east,west" def csvToTest = csv def currentDir = System.getProperty("user.dir") def resources = currentDir + "/src/main/resources" def isel_db...
isaacboucinha/CardioStream
web-app/src/main/scala/isel/ps/g18/DirManager.scala
Scala
apache-2.0
677
package org.scalafmt.config import metaconfig.ConfigReader /** * * @param include * Regexp for which infix operators should * indent by 2 spaces. For example, .*= * produces this output * * a && * b * * a += * b * @param exclude * Regexp for which infix operators should *...
Daxten/scalafmt
core/src/main/scala/org/scalafmt/config/IndentOperator.scala
Scala
apache-2.0
874
/* * 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 ...
brad-kaiser/spark
core/src/main/scala/org/apache/spark/SecurityManager.scala
Scala
apache-2.0
14,805
package controllers import jp.t2v.lab.play2.auth._ import jp.t2v.lab.play2.stackc.{ RequestWithAttributes, RequestAttributeKey, StackableController } import play.api._, mvc._ import play.api.libs.concurrent.Execution.Implicits._ import scala.concurrent.Future import play.api.Play.current import play.api.i18n.Messages....
ornicar/idbase
app/controllers/DocAdmin.scala
Scala
mit
2,576
package unfiltered.request abstract class Protocol(p: String) { def unapply[T](req: HttpRequest[T]) = if (req.protocol.equalsIgnoreCase(p)) Some(req) else None } object HTTP_1_0 extends Protocol("HTTP/1.0") object HTTP_1_1 extends Protocol("HTTP/1.1")
hamnis/unfiltered
library/src/main/scala/request/protocols.scala
Scala
mit
264
package slick.jdbc import java.sql.{PreparedStatement, ResultSet} import slick.compiler.{CompilerState, CodeGen} import slick.ast._ import slick.relational._ import slick.lifted.MappedProjection import slick.driver.JdbcDriver import slick.util.SQLBuilder /** JDBC driver component which contains the mapping compiler a...
adamkozuch/slick
slick/src/main/scala/slick/jdbc/JdbcMappingCompilerComponent.scala
Scala
bsd-2-clause
3,874
/* * Copyright (c) 2013-2014 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apach...
jramos/snowplow
3-enrich/stream-enrich/project/BuildSettings.scala
Scala
apache-2.0
2,367
package com.estus.distribution import routine._ import org.apache.commons.math3.distribution.GammaDistribution object gamma { /** * * * Gamma Distribution * * d_ - probability density function * p_ - cumulative density function * q_ - inverse cumulative density function * r_ - random nu...
EstusDev/Estus
estus-distribution/src/main/scala/gamma.scala
Scala
apache-2.0
3,812
/* * 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/frontend-2.3/src/main/scala/org/neo4j/cypher/internal/frontend/v2_3/helpers/TreeZipper.scala
Scala
apache-2.0
5,709
/*start*/List(1, 2, 3) map (_ * 2)/*end*/ //List[Int]
katejim/intellij-scala
testdata/typeInference/localTypeInference/InfixMap.scala
Scala
apache-2.0
53
package com.datayumyum.helloPOS import com.starmicronics.stario.{StarIOPortException, StarIOPort, StarPrinterStatus} import android.text.{TextPaint, Layout, StaticLayout} import android.graphics._ import com.StarMicronics.StarIOSDK.StarBitmap object Printer { val TAG = "com.datayumyum.pos.Printer" var port: Star...
sonwh98/helloPOS
src/main/scala/com/datayumyum/helloPOS/Printer.scala
Scala
gpl-2.0
4,894
/* * Copyright 2017 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
spinnaker/kayenta
kayenta-judge/src/main/scala/com/netflix/kayenta/judge/evaluation/Metrics.scala
Scala
apache-2.0
5,329
package org.akkapulline import akka.actor._ import scala.reflect.ClassTag import scala.collection.mutable import org.akkapulline.Messages._ import scala.util.Try class PullLineProducer[R: ClassTag](workerLocation: String, rightLocation: String, bufferSize: Int) extends Actor with ActorLogging { val worker = co...
fehmicansaglam/akka-pulline
src/main/scala/org/akkapulline/PullLineProducer.scala
Scala
unlicense
1,744
package com.sksamuel.avro4s.record.decoder import com.sksamuel.avro4s.{AvroName, AvroSchema, Decoder, DefaultNamingStrategy} import org.apache.avro.generic.GenericData import org.apache.avro.util.Utf8 import org.scalatest.{FunSuite, Matchers} class AvroNameDecoderTest extends FunSuite with Matchers { case class Av...
51zero/avro4s
avro4s-core/src/test/scala/com/sksamuel/avro4s/record/decoder/AvroNameDecoderTest.scala
Scala
mit
694
package com.trafficland.augmentsbt.generators import sbt._ import Keys._ import java.io.FileWriter import java.util.{Date, Properties} import java.text.SimpleDateFormat import com.trafficland.augmentsbt.git.GitPlugin import GitPlugin.autoImport._ import com.trafficland.augmentsbt.utils.SourceGenerator._ import sbt.pl...
ereichert/augment-sbt
src/main/scala/com/trafficland/augmentsbt/generators/BuildInfoPlugin.scala
Scala
apache-2.0
3,550
/* * 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-zkcluster/src/main/scala/org/squbs/cluster/package.scala
Scala
apache-2.0
3,955
package com.colingodsey.logos import java.io.InputStream import java.nio.ByteBuffer import scala.collection.IndexedSeqOptimized package object collections { object IVec3 { def apply(point: Vec3): IVec3 = IVec3( math.floor(point.x).toInt, math.floor(point.y).toInt, math.floor(point.z).toInt) } final ca...
colinrgodsey/logos
collections/shared/src/main/scala/com/colingodsey/logos/collections/package.scala
Scala
gpl-2.0
1,360
package slick.jdbc import scala.concurrent.ExecutionContext import scala.reflect.ClassTag import scala.util.{Failure, Success} import java.sql.DatabaseMetaData import slick.SlickException import slick.ast.ColumnOption import slick.dbio._ import slick.jdbc.meta._ import slick.{model => m} import slick.relational.Rel...
nafg/slick
slick/src/main/scala/slick/jdbc/JdbcModelBuilder.scala
Scala
bsd-2-clause
17,543
package org.elasticmq import java.nio.ByteBuffer import javax.xml.bind.DatatypeConverter sealed abstract class MessageAttribute(val customType: Option[String]) { protected val primaryDataType: String def getDataType() = customType match { case Some(t) => s"$primaryDataType.$t" case None => primaryData...
nagyistoce/elasticmq
core/src/main/scala/org/elasticmq/MessageAttribute.scala
Scala
apache-2.0
1,534
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/init-repository
src/test/scala/uk/gov/hmrc/initrepository/GitSpecs.scala
Scala
apache-2.0
3,878
package ml.combust.mleap.executor.service import akka.actor.{Actor, ActorRef, Props, Status, Terminated} import akka.stream.{ActorMaterializer, Materializer} import ml.combust.mleap.executor.repository.RepositoryBundleLoader import ml.combust.mleap.executor._ import ml.combust.mleap.executor.error.NotFoundException i...
combust/mleap
mleap-executor/src/main/scala/ml/combust/mleap/executor/service/LocalTransformServiceActor.scala
Scala
apache-2.0
2,847
package dao import scala.Predef._ import utils.driver.pgSlickDriver.simple._ import models.Timezone /** * Timezone table definition. * For more detailed information about rows and stored data, @see{models.Timezone}. * * @author Amadeusz Kosik <akosik@semantive.com> */ object Timezones extends Table[Timezone]("t...
Semantive/geoys
app/dao/Timezones.scala
Scala
apache-2.0
1,589
package sampler.math class RangeException[N: Numeric](actual: N, lower: N, upper: N) extends RuntimeException(s"$actual not in range [$lower, $upper]") /** Object to allow checking that a value is a valid probability or is within a given range*/ object RangeCheck { /** Checks that a given value is a valid proba...
tsaratoon/Sampler
sampler-core/src/main/scala/sampler/math/RangeCheck.scala
Scala
apache-2.0
1,171
package spinoco.protocol.mail.imap import java.time.LocalDate import spinoco.protocol.mail.EmailAddress object BodyStructure { /** * Body type fields * @param params Parameters (arbitrary) * @param id Id of the body * @param desc Description of the body * @param enc...
Spinoco/protocol
mail/src/main/scala/spinoco/protocol/mail/imap/BodyStructure.scala
Scala
mit
3,553
package test; object test { class A class B def m(a: A, b: B*) = b.toArray def m(a: A*, b: B ) = a.toArray def m(a: A*, b: B*) = a.toArray }
yusuke2255/dotty
tests/untried/neg/parstar.scala
Scala
bsd-3-clause
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 ...
sh-cho/cshSpark
internal/config/ConfigProvider.scala
Scala
apache-2.0
2,220
/* * Copyright 2016 Dennis Vriend * * 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...
wwwiiilll/akka-persistence-jdbc
src/main/scala/akka/persistence/jdbc/serialization/SerializationProxy.scala
Scala
apache-2.0
5,753
/* * 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/serializer/JavaSerializerSuite.scala
Scala
apache-2.0
1,209
/** * 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...
wangcy6/storm_app
frame/kafka-0.11.0/kafka-0.11.0.1-src/core/src/test/scala/unit/kafka/network/SocketServerTest.scala
Scala
apache-2.0
17,668
package freedomandy.protocol import akka.stream.scaladsl.Source import akka.util.ByteString import freedomandy.data.{BlobInfo, BlobUploadInfo} import akka.http.scaladsl.server.directives.{FileInfo => DFileInfo} /** * Created by andy on 05/06/2017. */ sealed trait BlobRequestMessage extends RequestMessage case cla...
freedomandy/akka-storage
src/main/scala-2.11/freedomandy/protocol/BlobProtocol.scala
Scala
mit
1,051
package lila.setup import chess.format.Forsyth import chess.{ Game => ChessGame, Board, Situation, Clock, Speed } import lila.game.{ GameRepo, Game, Pov } import lila.lobby.Color import lila.tournament.{ System => TournamentSystem } private[setup] trait Config { // Whether or not to use a clock val timeMode: Ti...
bjhaid/lila
modules/setup/src/main/Config.scala
Scala
mit
3,668
class ShowUtil2[T : Show](value: T) { def print2 = print(implicitly[Show[T]].show(value)) }
grzegorzbalcerek/scala-book-examples
examples/ContextBounds2.scala
Scala
mit
94
/** * Copyright 2015 Thomson Reuters * * Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
hochgi/CM-Well
server/cmwell-controller/src/main/scala/cmwell/ctrl/server/CommandActor.scala
Scala
apache-2.0
1,921
/* * Copyright (c) 2014 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org...
mdavid/lessig-bigdata
lib/snowplow/3-enrich/scala-hadoop-shred/src/test/scala/com.snowplowanalytics.snowplow.enrich.hadoop/jobs/misc/NoShreddingRequiredSpec.scala
Scala
mit
2,907
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
zzcclp/carbondata
integration/spark/src/main/spark2.4/org/apache/spark/sql/CarbonToSparkAdapter.scala
Scala
apache-2.0
9,112
package de.tototec.cmvn.eclipse.plugin import org.eclipse.core.runtime.Path import org.eclipse.jdt.core.IClasspathEntry import org.eclipse.jdt.core.IJavaProject import org.eclipse.jdt.core.JavaCore import org.eclipse.jdt.ui.wizards.IClasspathContainerPage import org.eclipse.jdt.ui.wizards.IClasspathContainerPageExtens...
ToToTec/cmvn
de.tototec.cmvn.eclipse.plugin/src/main/scala/de/tototec/cmvn/eclipse/plugin/CmvnClasspathContainerPage.scala
Scala
apache-2.0
4,406
package mesosphere.marathon.integration.setup import java.io.File import mesosphere.marathon.api.v2.json.V2AppDefinition import mesosphere.marathon.health.HealthCheck import mesosphere.marathon.state.{ AppDefinition, PathId } import org.apache.commons.io.FileUtils import org.apache.zookeeper.{ WatchedEvent, Watcher, ...
EasonYi/marathon
src/test/scala/mesosphere/marathon/integration/setup/SingleMarathonIntegrationTest.scala
Scala
apache-2.0
8,802
package br.unb.cic.poo.gol /** Classe usada para computar as estatisticas do GoL. * @author Breno Xavier (baseado na implementacao Java de rbonifacio@unb.br) * Refatorado por Pedro Torres no 2o semestre de 2017. * */ object Statistics { private var revivedCells = 0 private var killedCells = 0 def get...
PeterTowers/TP1-022017
GoLScala/GoLScala_UN/src/br/unb/cic/poo/gol/Statistics.scala
Scala
mit
1,077
/* Copyright 2012 Elias Ponvert * * 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 i...
eponvert/corpora
src/main/scala/multiword/corpus/treebank/constituent/bracket/Bracket.scala
Scala
apache-2.0
6,960
package io.github.binaryfoo.lagotto.output import io.github.binaryfoo.lagotto.LagoTest class GZipTest extends LagoTest { "Unzip" should "hunt for GZIP magic header" in { val twoByteHeader = "00001F8B0800000000000000CB48CDC9C95748C94C4F2D2E010037FA227F0C000000" GZip.unzip(twoByteHeader) shouldBe "hello dige...
binaryfoo/lagotto
src/test/scala/io/github/binaryfoo/lagotto/output/GZipTest.scala
Scala
mit
667
package com.twitter.scalding.reducer_estimation import com.twitter.scalding.estimation.{HistoryEstimator, Task} import org.apache.hadoop.mapred.JobConf object ReducerHistoryEstimator { val Status = "status" val StartTime = "startTime" val FinishTime = "finishTime" implicit class ReducerRichTask(val task: Tas...
twitter/scalding
scalding-core/src/main/scala/com/twitter/scalding/reducer_estimation/ReducerHistoryEstimator.scala
Scala
apache-2.0
756
package org.fermat.web import org.fermat.Event import org.fermat.DefaultViewImpl import org.fermat.FermatGeneralAttribute import org.fermat.FermatDynamicText import org.fermat.FermatStaticText import org.fermat.FermatStaticText import org.fermat.FermatGeneralAttribute import org.fermat.FermatDynamicText import org.fer...
jinjor/Fermat
src/main/scala/org/fermat/web/Backbone.scala
Scala
bsd-3-clause
10,901
package com.github.golem.army import akka.event.{LoggingAdapter, Logging} import com.github.golem.model.Board.{Stone, Free, FreeField} import com.github.golem.model.{GameState, Put, BasicRulesGame, Board} import com.github.golem.model.BasicRulesGame.Chain import com.github.golem.model.GameState.MovesHistory abstract...
pjarosik/golem
src/main/scala/com/github/golem/army/Private.scala
Scala
gpl-2.0
2,339
package mouse import cats._ import cats.instances.AllInstances import org.scalactic.TripleEqualsSupport.BToAEquivalenceConstraint import org.scalactic.{CanEqual, Equivalence} import org.scalatest.funsuite.AnyFunSuite import org.scalatest.matchers.should.Matchers import org.scalatestplus.scalacheck.ScalaCheckDrivenProp...
benhutchison/mouse
shared/src/test/scala/mouse/MouseSuite.scala
Scala
mit
1,128
package com.chatwork.sbt.aws.s3.resolver.ivy import java.io.{ByteArrayInputStream, InputStream} import org.apache.ivy.plugins.repository.Resource case class MissingResource() extends Resource { override def getName: String = "" override def getLastModified: Long = 0L override def getContentLength: Long = 0L ...
chatwork/sbt-aws
sbt-aws-s3-resolver/src/main/scala/com/chatwork/sbt/aws/s3/resolver/ivy/MissingResource.scala
Scala
mit
549
/* * 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 ...
ioana-delaney/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala
Scala
apache-2.0
26,074
package sequence.searching import org.salgo.sequences.searching.BoyerMooreHorspool class BoyerMooreHorspoolSpec extends StringSearchAlgorithmSpec { override def getAlgorithm = BoyerMooreHorspool }
ascensio/salgo
tests/sequence/searching/BoyerMooreHorspoolSpec.scala
Scala
apache-2.0
201
/** * Copyright (c) 2015, Cloudera, Inc. All Rights Reserved. * * Cloudera, Inc. licenses this file to you 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/LIC...
ypramos1986/spark-timeseries
src/test/scala/com/cloudera/sparkts/models/HoltWintersModelSuite.scala
Scala
apache-2.0
7,964
package org.jetbrains.plugins.scala.debugger import com.intellij.debugger.engine.SimplePropertyGetterProvider import com.intellij.psi.util.PsiTreeUtil import com.intellij.psi.{PsiClass, PsiElement, PsiMethod} import org.jetbrains.plugins.scala.lang.psi.api.expr.{ScBlock, ScExpression, ScReferenceExpression, ScThisRefe...
LPTK/intellij-scala
src/org/jetbrains/plugins/scala/debugger/ScalaSimpleGetterProvider.scala
Scala
apache-2.0
1,516
package macros import scala.quoted._ def oops(using QuoteContext) = { var v = '{0}; val q = '{ (x: Int) => ${ v = '{x}; v } } '{$q($v)} } inline def test = ${oops}
som-snytt/dotty
tests/neg-macros/i7142/Macro_1.scala
Scala
apache-2.0
171
package satisfaction package engine package actors import org.specs2.mutable._ import scala.concurrent.duration._ import org.joda.time.DateTime import scala.concurrent.Future import scala.concurrent.ExecutionContext import scala.concurrent.ExecutionContext.Implicits.global import org.specs2.runner.JUnitRunner import o...
jeromebanks/satisfaction
modules/engine/src/test/scala/satisfaction/ProofEngineSpec.scala
Scala
apache-2.0
15,802
/* * 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-http/src/main/scala/io/gatling/http/action/async/sse/SseHandler.scala
Scala
apache-2.0
4,248
/* 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/lookup/IDLookupTableWithHashBuckets.scala
Scala
apache-2.0
6,721
package org.allenai.common import org.allenai.common.testkit.UnitSpec import spray.json._ import spray.json.DefaultJsonProtocol._ import scala.io.{ Codec, Source } import java.io.ByteArrayOutputStream class JsonIoSpec extends UnitSpec { case class Foo(name: String) implicit val fooFormat = jsonFormat1(Foo.appl...
ryanai3/common
core/src/test/scala/org/allenai/common/JsonIoSpec.scala
Scala
apache-2.0
1,936
package agni.std import java.util.concurrent.CompletionStage import java.util.function.BiConsumer import agni.util.Par import cats.~> import scala.concurrent.{Future, Promise} object async { implicit val scalaFuturePar: Par.Aux[CompletionStage, Future] = new Par[CompletionStage] { type G[A] = Future[A] ...
tkrs/agni
core/src/main/scala/agni/std/async.scala
Scala
mit
683
package de.hyronx.matter.compiler import scala.collection.mutable.LinkedHashSet import scalaz.{ Tree, TreeLoc } import de.hyronx.matter.compiler.ast.AST package object types { type TypeTraitNode = TypeTrait type TypeNode = Type type GenericTypeNode = GenericTypeTrait type BuiltInNode = BuiltInTypeTrait ty...
hyronx/matter
src/main/scala/de/hyronx/matter/compiler/types/package.scala
Scala
apache-2.0
11,684
package renderer import globalvariables.VariableStorage import org.scalajs.dom import org.scalajs.dom.html import org.scalajs.dom.raw.Event import sharednodejsapis.ElectronShell /** * Here we put all the codes that is common to all the menu pages. */ object Common { if (VariableStorage.retrieveValue...
sherpal/oh-hell-card-game
gameMenus/src/main/scala/renderer/Common.scala
Scala
mit
757
/* * 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 ...
kiszk/spark
sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala
Scala
apache-2.0
35,676
package ejemplos.interfaces abstract class Mamifero { def mover(): String }
MontealegreLuis/programacion2
src/main/scala/ejemplos/interfaces/Mamifero.scala
Scala
mit
79
package org.shapelogic.sc.image trait BufferImageTrait[T] extends Any with Serializable { /* * Number of elements used by a one line */ def stride: Int def bufferLenght: Int /** * Get the first channel if this is byte array * If it is an Int array with bytes packed in it would be the Int *...
sami-badawi/shapelogic-scala
src/main/scala/org/shapelogic/sc/image/BufferImageTrait.scala
Scala
mit
419
/* * 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
examples/src/main/scala/org/apache/spark/examples/ml/NGramExample.scala
Scala
apache-2.0
2,528
package org.jetbrains.plugins.scala package lang package psi package api package base import _root_.org.jetbrains.plugins.scala.lang.resolve._ import com.intellij.openapi.util.TextRange import com.intellij.psi._ import com.intellij.psi.util.PsiTreeUtil import org.jetbrains.plugins.scala.annotator.intention.ScalaImport...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/base/ScReferenceElement.scala
Scala
apache-2.0
14,132
package com.softwaremill.bootzooka.dao import java.util.UUID import com.softwaremill.bootzooka.common.FutureHelpers._ import com.softwaremill.bootzooka.dao.sql.SqlDatabase import com.softwaremill.bootzooka.domain.User import org.joda.time.DateTime import scala.concurrent.{ExecutionContext, Future} class UserDao(pro...
umitunal/bootzooka
backend/src/main/scala/com/softwaremill/bootzooka/dao/UserDao.scala
Scala
apache-2.0
3,813
package org.scaladebugger.api.lowlevel.monitors import org.scaladebugger.api.lowlevel.requests.JDIRequestArgument import org.scaladebugger.api.utils.PendingActionManager import scala.util.{Success, Try} /** * Provides pending monitor contended enter capabilities to an existing * monitor contended enter manager. *...
ensime/scala-debugger
scala-debugger-api/src/main/scala/org/scaladebugger/api/lowlevel/monitors/PendingMonitorContendedEnterSupport.scala
Scala
apache-2.0
2,968
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
mike0sv/spark
mllib/src/main/scala/org/apache/spark/mllib/classification/StreamingLogisticRegressionWithSGD.scala
Scala
apache-2.0
3,702
/* * Licensed to STRATIO (C) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. The STRATIO (C) licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file...
Stratio/stratio-connector-sparkSQL
connector-sparksql/src/test/scala/com/stratio/connector/sparksql/core/engine/query/QueryExecutorFT.scala
Scala
apache-2.0
5,809
package incognito.anonymization.redistribution; // // //package uis.cipsi.incognito.anonymization.redistribution // //import breeze.linalg.Vector //import org.apache.spark.rdd.RDD //import scala.collection.mutable.HashMap //import org.apache.spark.SparkContext //import org.apache.spark.rdd.RDD.rddToPairRDDFunctions //i...
achak1987/SparkAnonymizationToolkit
src/main/scala/incognito/archive/RedistributeNew1.scala
Scala
apache-2.0
4,098
/** * Copyright 2011-2016 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...
GabrielPlassard/gatling
gatling-jms/src/main/scala/io/gatling/jms/protocol/JmsProtocol.scala
Scala
apache-2.0
2,082
package org.http4s.json4s package object jackson extends Json4sJacksonInstances
aeons/http4s
json4s-jackson/src/main/scala/org/http4s/json4s/jackson/package.scala
Scala
apache-2.0
81
package com.yetu.controlcenter.controllers import play.api.mvc.{ Action, Controller } object Health extends Controller { def check = Action { Ok(com.yetu.BuildInfo.toJson) } }
yetu/controlcenter
app/com/yetu/controlcenter/controllers/Health.scala
Scala
mit
189
/** * Copyright (C) 2010 Orbeon, Inc. * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either version * 2.1 of the License, or (at your option) any later version. * * This program i...
martinluther/orbeon-forms
src/test/scala/org/orbeon/oxf/test/DocumentTestBase.scala
Scala
lgpl-2.1
1,926
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala package reflect ...
lrytz/scala
src/reflect/scala/reflect/macros/blackbox/Context.scala
Scala
apache-2.0
4,519
package fpinscala.gettingstarted // A comment! /* Another comment */ /** A documentation comment */ object MyModule { def abs(n: Int): Int = if (n < 0) -n else n private def formatAbs(x: Int) = { val msg = "The absolute value of %d is %d" msg.format(x, abs(x)) } def main(args: Array[String])...
galarragas/FpInScala
answers/src/main/scala/fpinscala/gettingstarted/GettingStarted.scala
Scala
mit
6,064
package org.sameersingh.htmlgen import org.junit.Test /** * @author sameer * @since 12/5/14. */ class JsonTest extends Tester(JsonConverter) { @Test def testAll() { this.writeHTML("Generated HTML Using Json", "src/main/resources/json.html") } }
sameersingh/htmlgen
src/test/scala/org/sameersingh/htmlgen/JsonTest.scala
Scala
bsd-2-clause
262