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 cli.printer import java.io.OutputStream import core.Pipeline /** * Created by OpenDataFlow on 31/12/15. */ object Printer { def getPrinter(name: String): Printer = { name match { case "text" ⇒ new PlainTextPrinter() case "dot" ⇒ new DotPrinter() // if we don't have it let's assume ...
opendataflow/opendataflow
opendataflow-cli/src/main/scala/cli/printer/Printer.scala
Scala
apache-2.0
689
package eu.semberal.dbstress.actor import akka.actor.{Actor, ActorRef, Props, Status} import akka.event.LoggingReceive import com.typesafe.scalalogging.LazyLogging import eu.semberal.dbstress.actor.ControllerActor._ import eu.semberal.dbstress.actor.DatabaseActor.{InitConnection, StartUnitRun} import eu.semberal.dbstr...
semberal/dbstress
src/main/scala/eu/semberal/dbstress/actor/ControllerActor.scala
Scala
apache-2.0
3,800
import sbt._ import Keys._ object Settings { val appName = "coral" val buildOrganization = "io.coral" val buildVersion = "1.0.0-SNAPSHOT" val buildScalaVersion = "2.11.5" val buildSettings = Defaults.coreDefaultSettings ++ Seq ( organization := buildOrganization, version := buildVersion...
daishichao/coral
project/settings.scala
Scala
apache-2.0
1,078
/* * 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 ...
derrickburns/generalized-kmeans-clustering
src/main/scala/com/massivedatascience/clusterer/KMeansPlusPlus.scala
Scala
apache-2.0
5,522
package cmwell.analytics.main import cmwell.analytics.data.InfotonWithKeyFields import cmwell.analytics.util.{CmwellConnector, DatasetFilter} import cmwell.analytics.util.DatasetFilter._ import cmwell.analytics.util.TimestampConversion.timestampConverter import org.apache.log4j.LogManager import org.rogach.scallop.{Sc...
dudi3001/CM-Well
tools/dataConsistencyTool/cmwell-spark-analysis/src/main/scala/cmwell/analytics/main/DumpInfotonWithKeyFields.scala
Scala
apache-2.0
2,908
/* * 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 /** `Nothing` i...
lrytz/scala
test/scaladoc/resources/doc-root/Nothing.scala
Scala
apache-2.0
1,068
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Intel-bigdata/OAP
oap-native-sql/core/src/test/scala/org/apache/spark/sql/streaming/test/DataStreamReaderWriterSuite.scala
Scala
apache-2.0
24,425
/** * 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...
KevinLiLu/kafka
core/src/test/scala/integration/kafka/api/IntegrationTestHarness.scala
Scala
apache-2.0
6,700
package org.pdfextractor.algorithm.phrase /** * Marker for specifying the packages to scan for annotated services * in type-safe manner. */ class PhrasePackageMarker {}
kveskimae/pdfalg
src/main/scala/org/pdfextractor/algorithm/phrase/PhrasePackageMarker.scala
Scala
mit
176
/* * 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/util/GzipHelper.scala
Scala
apache-2.0
4,238
/* * Copyright (c) 2015-2020 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...
snowplow/snowplow-scala-tracker
modules/id-emitter/src/test/scala/com/snowplowanalytics/snowplow/scalatracker/emitters/id/StressTest.scala
Scala
apache-2.0
8,569
package edison.search.algorithm import edison.search.Samples import edison.search.tree._ import edison.search.tree.select.Selector import edison.util.SmartSpec import org.scalamock.scalatest.MockFactory class UctSelectionContextTest extends SmartSpec with MockFactory { val algorithm = new UctAlgorithm(UctConfig(al...
pawel-wiejacha/edison
core/src/test/scala/edison/search/algorithm/UctSelectionContextTest.scala
Scala
mit
2,122
package controllers.api import models.ZkKafka import models.ZkKafka._ import play.api._ import play.api.libs.json._ import play.api.mvc._ import _root_.utils.JsonFormats._ object Status extends Controller { def current(topoRoot: String, topic: String) = Action { val stormState = ZkKafka.getSpoutState(topoRoot...
evertrue/capillary
app/controllers/api/Status.scala
Scala
mit
512
package org.jetbrains.plugins.scala package lang.psi.api.expr /** * @author Alefas * @since 25/03/14. */ trait ScInfixArgumentExpression extends ScExpression { /** * Return true if this expression is arguments for method invocation */ def isCall: Boolean = { getContext match { case infix: ScInfi...
loskutov/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/expr/ScInfixArgumentExpression.scala
Scala
apache-2.0
388
package org.firedancer3d.scenegraph.geometry; class Sphere { }
cyberthinkers/FireDancer3D
firedancer3d_shared/src/main/scala/org/firedancer3d/scenegraph/geometry/Sphere.scala
Scala
mit
70
/* Copyright 2017-18, 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
tensorflow/scala/api/src/main/scala/org/platanios/tensorflow/api/core/distributed/ReplicaDevicePlacer.scala
Scala
apache-2.0
7,095
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); ...
druid-io/tranquility
spark/src/test/scala/com/metamx/tranquility/test/SparkDruidTest.scala
Scala
apache-2.0
4,089
package io.finch import scala.reflect.ClassTag import cats.Alternative import cats.data.NonEmptyList import com.twitter.finagle.Service import com.twitter.finagle.http.{Cookie, Request, Response, Status} import com.twitter.util.{Future, Return, Throw, Try} import io.catbird.util.Rerunnable import io.finch.internal._ ...
ilya-murzinov/finch
core/src/main/scala/io/finch/Endpoint.scala
Scala
apache-2.0
22,034
package boatcraft.core.blocks import net.minecraft.block.Block import net.minecraft.block.material.Material import net.minecraft.world.World import boatcraft.core.blocks.tileentites.TileDock import net.minecraftforge.common.util.ForgeDirection import net.minecraft.entity.EntityLivingBase import com.ibm.icu.impl.durati...
Open-Code-Developers/BoatCraft
src/main/scala/boatcraft/core/blocks/BlockDock.scala
Scala
mit
1,945
package au.com.agiledigital.rest.security import javax.inject._ import au.com.agiledigital.rest.controllers.transport.{ MessageLevel, Message, JsonApiResponse } import play.api._ import play.api.http.{ Writeable, DefaultHttpErrorHandler, MimeTypes } import play.api.libs.json.{ JsValue, Json } import play.api.mvc._ im...
agiledigital/play-rest-support
core/src/main/scala/au/com/agiledigital/rest/security/ErrorHandler.scala
Scala
apache-2.0
2,398
/* * 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
mllib/src/test/scala/org/apache/spark/mllib/feature/HashingTFSuite.scala
Scala
apache-2.0
2,951
package wandou.math.vector import java.util.Random import java.util.StringTokenizer import wandou.math.timeseries.Null import wandou.collection.ArrayList /** * Sparse implement of Vec. It do not store 0 valued elements. * * This class should keep elements index sorted. * * Create a <code>SparseVec</code> whose i...
wandoulabs/wandou-math
wandou-math/src/main/scala/wandou/math/vector/SparseVec.scala
Scala
apache-2.0
10,037
package mesosphere.marathon package integration import mesosphere.AkkaIntegrationTest import mesosphere.marathon.integration.facades.ITEnrichedTask import mesosphere.marathon.integration.setup._ import mesosphere.marathon.raml.App import mesosphere.marathon.state.PathId._ import org.scalatest.Inside import scala.conc...
janisz/marathon
src/test/scala/mesosphere/marathon/integration/TaskUnreachableIntegrationTest.scala
Scala
apache-2.0
7,559
/* * Copyright (c) 2015. * Created by MrTJP. * All rights reserved. */ package mrtjp.core.math import java.util.Random import net.minecraft.world.World object PerlinNoiseGenerator extends PerlinNoiseGenerator { protected def floor(x:Double) = if (x >= 0) x.toInt else x.toInt-1 protected def fade(x:Double...
MrTJP/MrTJPCore
src/main/scala/mrtjp/core/math/PerlinNoiseGenerator.scala
Scala
lgpl-3.0
3,962
package build.unstable.sonicd.source import akka.actor._ import akka.event.Logging.LogLevel import akka.http.scaladsl.model._ import akka.http.scaladsl.settings.ConnectionPoolSettings import akka.stream.actor.ActorPublisher import akka.util.ByteString import build.unstable.sonic.JsonProtocol._ import build.unstable.so...
ernestrc/sonicd
server/src/main/scala/build/unstable/sonicd/source/ElasticSearchSource.scala
Scala
mit
9,646
package xyz.mattclifton.play.swagger.stringent.test import com.iheart.playSwagger.{PrefixDomainModelQualifier, SwaggerSpecGenerator} import org.specs2.mutable.Specification import play.api.libs.json.{JsString, JsArray, JsObject, JsValue} import xyz.mattclifton.play.swagger.stringent.EndPointSpecBuilderFactory class E...
lynx44/play-swagger-reflect
play-swagger-stringent/src/test/scala/xyz/mattclifton/play/swagger/stringent/test/EndpointSpecBuilderSpec.scala
Scala
mit
24,507
package sma.digging case class Digging(user: String, network: String, term: String, action: String) { val key: String = s"${term}!${user}@${network}" def mkString = key } case class DiggingReply() case class BulkDigging(messages: Seq[Digging], version: Int) { def apply() = messages def mkString = message...
eduardo-lago-aguilar/sma
src/main/scala/sma/digging/Digging.scala
Scala
mit
370
/** * Copyright 2015 Zaradai * * 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 writ...
zaradai/lattrac
src/main/scala/com/zaradai/lattrac/store/Observable.scala
Scala
apache-2.0
1,034
package com.themillhousegroup.scoup import org.jsoup.{ Connection, Jsoup } import org.jsoup.nodes.Document import scala.collection.JavaConverters._ import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.global import com.themillhousegroup.scoup.options.ScoupOptions import org.jsoup.Connectio...
themillhousegroup/scoup
src/main/scala/com/themillhousegroup/scoup/Scoup.scala
Scala
mit
4,065
package com.github.saurfang.parquet.proto import com.google.protobuf.GeneratedMessage import org.apache.hadoop.mapreduce.{InputSplit, RecordReader, TaskAttemptContext} import org.apache.parquet.hadoop.{ParquetInputFormat, ParquetRecordReader} class ProtoMessageParquetInputFormat[T <: GeneratedMessage] extends Parquet...
saurfang/sparksql-protobuf
src/main/scala/com/github/saurfang/parquet/proto/ProtoMessageParquetInputFormat.scala
Scala
apache-2.0
1,267
package org.monarchinitiative.dosdp.cli import caseapp._ import org.apache.jena.sys.JenaSystem import org.monarchinitiative.dosdp.DOSDP import scribe._ import scribe.filter._ import zio._ object Main extends ZCommandApp[Config] { override def appName: String = "dosdp-tools" override def progName: String = "dosd...
balhoff/dosdp-scala
src/main/scala/org/monarchinitiative/dosdp/cli/Main.scala
Scala
mit
803
/* * 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/ast/functions/Range.scala
Scala
apache-2.0
1,325
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 Nikolay.Tropin */ class ZeroIndexToHeadInspection extends OperationOnCollectionInspection { override def...
ilinum/intellij-scala
src/org/jetbrains/plugins/scala/codeInspection/collections/ZeroIndexToHeadInspection.scala
Scala
apache-2.0
832
package com.twitter.zipkin.json import com.twitter.zipkin.common.Annotation case class JsonAnnotation(timestamp: Long, value: String, endpoint: Option[JsonEndpoint]) object JsonAnnotation extends (Annotation => JsonAnnotation) { override def apply(a: Annotation) = JsonAnnotation(a.timestamp, a.value, a.host.ma...
betable/zipkin
zipkin-common/src/main/scala/com/twitter/zipkin/json/JsonAnnotation.scala
Scala
apache-2.0
446
/* Copyright 2013 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 distr...
twitter/summingbird
summingbird-storm/src/main/scala/com/twitter/summingbird/storm/option/FlatMapOptions.scala
Scala
apache-2.0
3,175
package memnets.fx.games.wta import memnets.fx._ import memnets.linalg.W import memnets.model._ import memnets.models.neuro.swta.SoftWTAGrid import scalafx.scene.paint.Color import scala.collection.mutable.{ArrayBuffer, ListBuffer} import scala.util.Random trait BoardItem object Board { type BItems = List[BoardIte...
MemoryNetworks/memnets
fx/src/main/scala/memnets/fx/games/wta/Board.scala
Scala
apache-2.0
6,569
package org.jetbrains.plugins.scala.runner import com.intellij.openapi.project.Project import com.intellij.psi._ import com.intellij.psi.impl.light.LightElement import com.intellij.psi.scope.PsiScopeProcessor import com.intellij.psi.search.GlobalSearchScope import com.intellij.util.IncorrectOperationException import o...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/runner/ScalaMainMethodSyntheticClassFinder.scala
Scala
apache-2.0
5,840
package com.durooma.api.route import akka.http.scaladsl.model.StatusCodes import com.durooma.api.model.{Account, AccountBody} object AccountResource extends CustomDirectives with JsonSupport { val route = pathPrefix("account") { authenticateToken { implicit session => pathEnd { get { co...
durooma/api
src/main/scala/com/durooma/api/route/AccountResource.scala
Scala
mit
873
package com.sksamuel.elastic4s import com.sksamuel.elastic4s.analyzers.{StemmerTokenFilter, SnowballTokenFilter, ShingleTokenFilter, NGramTokenFilter, EdgeNGramTokenFilter, CommonGramsTokenFilter} // a dumping ground for deprecated syntax, keeps the main file clear trait DeprecatedElasticDsl { @deprecated("use sco...
k4200/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/DeprecatedElasticDsl.scala
Scala
apache-2.0
3,027
package org.jetbrains.plugins.hocon import scala.collection.JavaConversions import scala.collection.convert.{DecorateAsJava, DecorateAsScala} object JavaInterop extends DecorateAsJava with DecorateAsScala { type JIterator[A] = java.util.Iterator[A] type JIterable[A] = java.lang.Iterable[A] type JCollection[A] =...
ilinum/intellij-scala
src/org/jetbrains/plugins/hocon/JavaInterop.scala
Scala
apache-2.0
1,108
/* * Copyright (C) 2012 Mikołaj Sochacki mikolajsochacki AT gmail.com * This file is part of VRegister (Virtual Register) * Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ */ package eu.brosbit.opos.snippet.page import net.liftweb.http.js.JsCmds.SetHtml import eu.brosbit.opos.lib.F...
mikolajs/osp
src/main/scala/eu/brosbit/opos/snippet/page/PageSn.scala
Scala
agpl-3.0
6,286
package com.softwaremill.demo.step1 import akka.actor.ActorSystem import org.json4s.JValue import org.json4s.JsonAST.JNothing import org.supler.Supler import org.supler.field.ActionResult import spray.http.MediaTypes import spray.http.StatusCodes._ import spray.httpx.Json4sSupport import spray.routing.{Route, SimpleRo...
softwaremill/supler-pres
src/main/scala/com/softwaremill/demo/step1/ServerStep1.scala
Scala
apache-2.0
1,222
package org.flowpaint.raster.tasks import org.flowpaint.raster.tile.TileId import java.lang.Object import java.util.{HashSet, LinkedList} import javax.swing.SwingUtilities import java.util.concurrent.{TimeUnit, Executors} /** * Allows spawning render jobs for tiles on different threads, speeding up the application o...
zzorn/flowpaint
src/main/scala/org/flowpaint/raster/tasks/TaskService.scala
Scala
gpl-2.0
4,092
package com.twitter.finagle.http.exp import com.twitter.finagle.{CancelledRequestException, Failure} import com.twitter.finagle.context.{Contexts, RemoteInfo} import com.twitter.finagle.transport.Transport import com.twitter.finagle.util.DefaultTimer import com.twitter.logging.{Level, Logger} import com.twitter.util._...
luciferous/finagle
finagle-base-http/src/main/scala/com/twitter/finagle/http/exp/GenStreamingSerialServerDispatcher.scala
Scala
apache-2.0
6,475
/* * 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 ...
kimoonkim/spark
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/kubernetes/PodWithDetachedInitContainer.scala
Scala
apache-2.0
1,032
/*********************************************************************** * 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-geojson/geomesa-geojson-api/src/test/scala/org/locationtech/geomesa/geojson/query/GeoJsonQueryTest.scala
Scala
apache-2.0
3,748
/*** * Copyright 2018 Rackspace US, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
wdschei/api-checker
core/src/test/scala/com/rackspace/com/papi/components/checker/wadl/WADLCheckerTenantFailSpec.scala
Scala
apache-2.0
25,763
package dispatch.spec import org.scalacheck._ import org.scalacheck.Prop._ object UriSpecification extends Properties("Uri") { /** java.net.URLDecoder should *NOT* be used for testing URI segment decoding * because it implements completely different functionality: query parameter decoding */ property("Enco...
dispatch/reboot
core/src/test/scala/uri.scala
Scala
lgpl-3.0
1,003
package org.broadinstitute.dsde.firecloud.webservice import akka.http.scaladsl.client.RequestBuilding import akka.http.scaladsl.server.{Directives, Route} import org.broadinstitute.dsde.firecloud.model.ModelJsonProtocol._ import org.broadinstitute.dsde.firecloud.model._ import org.broadinstitute.dsde.firecloud.service...
broadinstitute/firecloud-orchestration
src/main/scala/org/broadinstitute/dsde/firecloud/webservice/NihApiService.scala
Scala
bsd-3-clause
1,559
/** * 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...
geeag/kafka
core/src/main/scala/kafka/utils/ReplicationUtils.scala
Scala
apache-2.0
4,744
/* * Copyright 2014–2020 SlamData Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
slamdata/quasar
impl/src/main/scala/quasar/impl/datasource/AggregatingDatasource.scala
Scala
apache-2.0
5,382
/* * 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 ...
zimmermatt/flink
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/catalog/ExternalCatalogSchemaTest.scala
Scala
apache-2.0
3,688
/* * Copyright DataGenerator Contributors * * 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...
mibrahim/DataGenerator
dg-common/src/main/scala/org/finra/datagenerator/common/SocialNetwork_Example/User.scala
Scala
apache-2.0
1,487
/* * Copyright 2016 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 * * Un...
unibas-gravis/scalismo-faces
src/main/scala/scalismo/faces/color/HSV.scala
Scala
apache-2.0
2,975
/* * 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/test/scala/org/apache/spark/sql/catalyst/analysis/ResolveHintsSuite.scala
Scala
apache-2.0
12,684
package net.flaviusb.atomish import scala.util.parsing.combinator._ import scala.collection.mutable.{Map => MMap, MutableList => MList} import scala.language.postfixOps class PreReader { def read(str: AtomishString): AtomishCode = { AtomishParser.parseAll(AtomishParser.code, str.value) match { case Atomi...
flaviusb/Atomish
bootstrap/PreReader.scala
Scala
gpl-3.0
7,446
/** * 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...
archieco/kafka
core/src/main/scala/kafka/consumer/ConsumerFetcherThread.scala
Scala
apache-2.0
3,665
/* * Copyright 2015 Magnus Madsen. * * 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 ...
magnus-madsen/umonitor
src/dk/umonitor/language/Compiler.scala
Scala
apache-2.0
36,579
package com.szadowsz.cadisainmduit.ships.uboat import java.io.{File, StringReader} import java.sql.Date import java.text.SimpleDateFormat import com.szadowsz.common.io.delete.DeleteUtil import com.szadowsz.common.io.read.{CsvReader, FReader} import com.szadowsz.common.io.write.CsvWriter import com.szadowsz.common.io....
zakski/project-cadisainmduit
module/dataprep-people/src/main/scala/com/szadowsz/cadisainmduit/ships/uboat/UboatPreparer.scala
Scala
apache-2.0
5,899
package com.zczapran.freshmail.model case class Auth( key: String, sign: String ) object Auth { def build(key: String, path: String, json: String, secret: String) = { val md = java.security.MessageDigest.getInstance("SHA-1") Auth( key = key, sign = md.digest((key ++ path ++ json ++ secret).g...
zczapran/freshmail-scala
src/main/scala/com/zczapran/freshmail/model/Auth.scala
Scala
mit
381
package example import java.util.NoSuchElementException import org.scalatest.FunSuite import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner /** * This class implements a ScalaTest test suite for the methods in object * `Lists` that need to be implemented as part of this assignment. A test * suite...
jeffreylloydbrown/classwork
FunctionalProgrammingWithScala/example/src/test/scala/example/ListsSuite.scala
Scala
unlicense
4,745
package dk.gp.cogp.testutils import breeze.linalg.DenseMatrix import breeze.linalg._ import java.io._ import dk.gp.cogp.model.Task object loadToyModelData { def apply(n: Int = Int.MaxValue, y0Filter: (Double) => Boolean = (x) => true, y1Filter: (Double) => Boolean = (x) => true): Array[Task] = { val allData =...
danielkorzekwa/bayes-scala-gp
src/test/scala/dk/gp/cogp/testutils/loadToyModelData.scala
Scala
bsd-2-clause
855
/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package play.api.libs.openid import org.specs2.mutable.Specification object UserInfoSpec extends Specification { val claimedId = "http://example.com/openid?id=C123" val identity = "http://example.com/openid?id=C123&id" val defaultSigned ...
jyotikamboj/container
pf-framework/src/play-ws/src/test/scala/play/api/libs/openid/UserInfoSpec.scala
Scala
mit
3,749
import sbt.Keys._ import sbt._ object BuildSettings { val app = "kipper-calendar" val dist = TaskKey[Unit]("dist") val kipperCalendarBuildSettings: Seq[Setting[_]] = Seq[Setting[_]]( scalacOptions := Seq( "-feature", "-language:_", "-deprecation", "-unchecked"), logBuffered := true, logBuffered in T...
kipperjim/kipper-calendar
project/SbtBuild.scala
Scala
mit
577
import sbt._ import Keys._ object Dependencies { lazy val scala282 = "2.8.2" lazy val scala292 = "2.9.2" lazy val scala293 = "2.9.3" lazy val scala210 = "2.10.5" lazy val scala211 = "2.11.7" lazy val jline = "jline" % "jline" % "2.11" lazy val ivy = "org.scala-sbt.ivy" % "ivy" % "2.3.0-sbt-d592b1b0f77cf...
adriaanm/sbt
project/Dependencies.scala
Scala
bsd-3-clause
3,388
/* * 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 ...
bwsw/sj-platform
core/sj-output-streaming-engine/src/main/scala/com/bwsw/sj/engine/output/processing/EsOutputProcessor.scala
Scala
apache-2.0
4,411
package edu.rice.habanero.benchmarks.concdict import edu.rice.habanero.benchmarks.BenchmarkRunner import edu.rice.hj.Module0._ import edu.rice.hj.api.HjSuspendable import edu.rice.hj.experimental.actors.ReaderWriterPolicy /** * * @author <a href="http://shams.web.rice.edu/">Shams Imam</a> (shams@rice.edu) */ objec...
shamsmahmood/savina
src/main/scala/edu/rice/habanero/benchmarks/concdict/DictionaryHabaneroRWWriterFirstBenchmark.scala
Scala
gpl-2.0
1,070
/*********************************************************************** * Copyright (c) 2013-2017 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
ronq/geomesa
geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/conf/ConfConversions.scala
Scala
apache-2.0
1,633
package org.http4s package server package middleware package authentication import java.util.concurrent.Executors import org.http4s.dsl._ import org.http4s.headers._ import org.http4s.parser.HttpHeaderParser import org.http4s.util.CaseInsensitiveString import scalaz.concurrent.Task import scala.concurrent.duration....
m4dc4p/http4s
server/src/test/scala/org/http4s/server/middleware/authentication/AuthenticationSpec.scala
Scala
apache-2.0
8,282
/* * 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/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600e/v3/E45.scala
Scala
apache-2.0
1,074
package uk.gov.gds.ier.transaction.overseas.confirmation.blocks trait DateOfBirthBlocks { self: ConfirmationBlock => def dateOfBirth = { val dob = form.dateOfBirth map { dob => dob.toString("d MMMM yyyy") } getOrElse "" ConfirmationQuestion( title = "Date of birth", editLink = overs...
michaeldfallen/ier-frontend
app/uk/gov/gds/ier/transaction/overseas/confirmation/blocks/DateOfBirthBlocks.scala
Scala
mit
474
/* * Copyright (c) 2014-2015 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...
mdavid/lessig-bigdata
lib/snowplow/3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/utils/shredder/ShredderSpec.scala
Scala
mit
3,122
/* * Copyright 2011-2022 GatlingCorp (https://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...
gatling/gatling
gatling-http-java/src/main/scala/io/gatling/javaapi/http/internal/ScalaHttpRequestActionBuilderConditions.scala
Scala
apache-2.0
2,475
package org.mms.core.transform import org.mms.core._ import org.mms.core.Property import org.mms.core.codemodel.SourceMember import org.mms.core.codemodel.IType import org.mms.core.Type import org.mms.core.runtime.RuntimeProperty import org.mms.core.runtime.IRuntimeProperty import org.mms.core.runtime.ICollectionProper...
petrochenko-pavel-a/mms.core
org.mms.core/src/main/scala/org/mms/core/transform/modelToSource.scala
Scala
epl-1.0
5,002
package com.enkidu.lignum.parsers.ast.expression.discardable.instantiation import com.enkidu.lignum.parsers.ast.expression.ArrayInitializer import com.enkidu.lignum.parsers.ast.expression.types.Type case class InitializedArrayInstantiation(`type`: Type, initializer: ArrayInitializer) extends ArrayInstantiation { ov...
marek1840/java-parser
src/main/scala/com/enkidu/lignum/parsers/ast/expression/discardable/instantiation/InitializedArrayInstantiation.scala
Scala
mit
456
var i = 0 while(i < args.length){ if(i != 0) print(" ") print(args(i)) i += 1 }
jmlb23/scala
libro_odersky/scripts_CH2/echoargs.scala
Scala
gpl-3.0
93
package domain.model.account import scala.util.Try trait AccountRepository { def nextIdentity(): Try[AccountId] def accountOfIdentity(id: AccountId): Try[Account] def accountOfMail(mail: AccountMail): Try[Account] def save(account: Account): Try[Account] }
tarugo07/play-chat
app/domain/model/account/AccountRepository.scala
Scala
mit
272
//package muster // //import scala.language.experimental.macros //import scala.reflect.macros._ // // //object TypeHints { // def apply[T](fName: String) = new TypeHints[T] { val fieldName: String = fName } //} // //trait TypeHints[T] { // def fieldName: String // // def short[C <: T](): TypeHint[C] = macro shortImp...
json4s/muster
core/src/main/scala/muster/type_hints.scala
Scala
mit
2,597
/* * 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 ...
lincoln-lil/flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/expressions/ArrayTypeTest.scala
Scala
apache-2.0
9,932
package com.sksamuel.elastic4s import org.elasticsearch.action.explain.{ExplainAction, ExplainRequest, ExplainRequestBuilder, ExplainResponse} import org.elasticsearch.action.support.QuerySourceBuilder import org.elasticsearch.client.Client import scala.concurrent.Future /** @author Stephen Samuel */ trait ExplainDs...
k4200/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/ExplainDsl.scala
Scala
apache-2.0
2,575
/* * Copyright 2007-2010 WorldWide Conferencing, 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 * * Unless required by applica...
lift/lift
framework/lift-modules/lift-widgets/src/main/scala/net/liftweb/widgets/gravatar/Gravatar.scala
Scala
apache-2.0
2,680
package net.liftweb.json.scalaz import scalaz._ import Scalaz._ import JsonScalaz._ import net.liftweb.json._ import org.specs2.mutable.Specification object TupleExample extends Specification { "Parse tuple from List" in { val json = JsonParser.parse(""" [1,2,3] """) fromJSON[Tuple3[Int, Int, Int]](json) m...
lzpfmh/framework-2
core/json-scalaz/src/test/scala/net/lifweb/json/scalaz/TupleExample.scala
Scala
apache-2.0
352
package lila.tournament import org.joda.time.DateTime private[tournament] case class WaitingUsers( hash: Map[String, DateTime], clock: Option[chess.Clock], date: DateTime) { // 1+0 -> 5 -> 7 // 3+0 -> 9 -> 11 // 5+0 -> 17 -> 17 // 10+0 -> 32 -> 30 private val waitSeconds = { (clock.fol...
Happy0/lila
modules/tournament/src/main/WaitingUsers.scala
Scala
mit
1,398
/* * Copyright 2015 - 2016 Red Bull Media House GmbH <http://www.redbullmediahouse.com> - 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...
RBMHTechnology/eventuate
eventuate-crdt-pure/src/multi-jvm/scala/com/rbmhtechnology/eventuate/crdt/ReplicatedAWSetSpec.scala
Scala
apache-2.0
3,825
package edu.stanford.cme323.spark.smti.utils import java.io.File import java.io.FileWriter import scala.io.Source import org.apache.spark.Logging import org.apache.spark.SparkContext import org.apache.spark.rdd.RDD import edu.stanford.cme323.spark.smti._ object IO extends Logging { /** * Modified Random gen...
gaomy3832/spark-smti
src/main/scala/edu/stanford/cme323/spark/smti/utils/IO.scala
Scala
apache-2.0
2,749
// See LICENSE.txt for license details. package problems import chisel3._ import chisel3.util._ // Problem: // // Implement a vending machine using 'when' states. // 'nickel' is a 5 cent coin // 'dime' is 10 cent coin // 'sOk' is reached when there are coins totalling 20 cents or more in the machine. // The vending...
timtian090/Playground
chiselTutorial/src/main/scala/problems/VendingMachine.scala
Scala
mit
752
package object models { type ResourceId = String type UserId = java.util.UUID type UniqueId = java.util.UUID type TripId = UniqueId type ScheduleId = UniqueId type DayId = UniqueId type VisitId = UniqueId type TransportId = UniqueId type TransportModalityId = ResourceId type CityId = Resour...
joaoraf/tripspace
app/models/package.scala
Scala
apache-2.0
408
package fpinscala.state import fpinscala.state.RNG._ trait RNG { def nextInt: (Int, RNG) // Should generate a random `Int`. We'll later define other functions in terms of `nextInt`. } object RNG { // NB - this was called SimpleRNG in the book text case class Simple(seed: Long) extends RNG { def nextInt: (...
siwulus/fpinscala
exercises/src/main/scala/fpinscala/state/State.scala
Scala
mit
4,097
/* * Copyright 2019 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/microservice-bootstrap
src/test/scala/uk/gov/hmrc/play/microservice/bootstrap/JsonErrorHandlingSpec.scala
Scala
apache-2.0
4,954
/* * Copyright 2020 Precog Data * * 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 ...
djspiewak/quasar
qsu/src/main/scala/quasar/qsu/ExtractFreeMap.scala
Scala
apache-2.0
9,565
/* * 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...
dotty-staging/scalatest
scalatest/src/main/scala/org/scalatest/matchers/dsl/ResultOfATypeInvocation.scala
Scala
apache-2.0
6,563
/* Copyright 2009-2016 EPFL, Lausanne */ package leon.integration.purescala import leon.test._ import leon.purescala.Common._ import leon.purescala.Expressions._ import leon.purescala.Types._ import leon.datagen._ import leon.evaluators._ class DataGenSuite extends LeonTestSuiteWithProgram with helpers.Expressions...
epfl-lara/leon
src/test/scala/leon/integration/purescala/DataGenSuite.scala
Scala
gpl-3.0
3,161
package autoregister.plugin import scala.tools.nsc.plugins.PluginComponent import scala.tools.nsc.{ Global, Phase } import scala.tools.nsc.transform.TypingTransformers import scala.tools.nsc.transform.Transform import scala.tools.nsc.ast.TreeDSL import scala.annotation.tailrec import Utils._ class RegistryP...
math85360/autoregister
src/main/scala/autoregister/plugin/RegistryPluginPhase.scala
Scala
mit
9,767
// @SOURCE:/home/baptiste/check_my_ride/conf/routes // @HASH:66277d7cd60a62c63c0557fa462785079a0dca5e // @DATE:Mon Aug 18 16:34:53 CEST 2014 import play.core._ import play.core.Router._ import play.core.j._ import play.api.mvc._ import Router.queryString object Routes extends Router.Routes { private var _prefix ...
Viewtiful/Check-my-ride
target/scala-2.10/src_managed/main/routes_routing.scala
Scala
apache-2.0
3,379
package gitbucket.core.view import java.util.Date import gitbucket.core.model.Account import gitbucket.core.service.{SystemSettingsService, RequestCache} import gitbucket.core.controller.Context import SystemSettingsService.SystemSettings import javax.servlet.http.HttpServletRequest import play.twirl.api.Html import ...
marklacroix/gitbucket
src/test/scala/gitbucket/core/view/AvatarImageProviderSpec.scala
Scala
apache-2.0
5,460
/* * Shadowsocks - A shadowsocks client for Android * Copyright (C) 2015 <max.c.lv@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at y...
baohaojun/shadowsocks-android
src/main/scala/com/github/shadowsocks/utils/TrafficMonitorThread.scala
Scala
gpl-3.0
4,128
// Starter Code for Exercise 1 // From "String Interpolation" atom import com.atomicscala.AtomicTest._ val gnome = new GardenGnome(20.0, 110.0, false) gnome.show() is "20.0 110.0 false true" val bob = new GardenGnome("Bob") bob.show() is "15.0 100.0 true true"
P7h/ScalaPlayground
Atomic Scala/atomic-scala-solutions/29_StringInterpolation/Starter-1.scala
Scala
apache-2.0
262
/* * -╥⌐⌐⌐⌐ -⌐⌐⌐⌐- * ≡╢░░░░⌐\░░░φ ╓╝░░░░⌐░░░░╪╕ * ╣╬░░` `░░░╢┘ φ▒╣╬╝╜ ░░╢╣Q * ║╣╬░⌐ ` ╤▒▒▒Å` ║╢╬╣ * ╚╣╬░⌐ ╔▒▒▒▒`«╕ ╢╢╣▒ * ╫╬░░╖ .░ ╙╨╨ ╣╣╬░φ ╓φ░╢╢Å * ╙╢░░░░⌐"░░░╜ ╙Å░░░░⌐░░░░╝` * ``˚¬ ⌐ ˚˚⌐´ * * ...
Flipkart/connekt
receptors/src/main/scala/com/flipkart/connekt/receptors/wire/JsonToEntityMarshaller.scala
Scala
mit
3,532
package toledo17.communication import java.io.Serializable import com.amazonaws.services.sqs.AmazonSQSClient import com.amazonaws.services.sqs.model.Message import scala.collection.JavaConverters._ class Communication[Payload <: Serializable] { private[this] def client : AmazonSQSClient = new AmazonSQSClient() ...
mccartney/toledo17
src/main/scala/toledo17/communication/Communication.scala
Scala
gpl-3.0
1,292
package com.eevolution.context.dictionary.infrastructure.service.impl import java.util.UUID import com.eevolution.context.dictionary.infrastructure.repository.UserDefinedTabRepository import com.eevolution.context.dictionary.infrastructure.service.UserDefinedTabService import com.lightbend.lagom.scaladsl.api.ServiceC...
adempiere/ADReactiveSystem
dictionary-impl/src/main/scala/com/eevolution/context/dictionary/infrastructure/service/impl/UserDefinedTabServiceImpl.scala
Scala
gpl-3.0
2,095