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 slamdata.engine.analysis import slamdata.Predef._ import fixplate._ import slamdata.engine.fp._ import slamdata.engine.{RenderTree, Terminal, NonTerminal} import scalaz._ import Scalaz._ import scalaz.scalacheck.ScalazProperties._ import org.specs2.ScalaCheck import org.specs2.mutable._ import org.specs2.s...
wemrysi/quasar
core/src/test/scala/slamdata/engine/analysis/fixplate.scala
Scala
apache-2.0
20,885
/* * 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/t-streams
src/test/scala/com/bwsw/tstreams/common/PartitionIterationPolicyTests.scala
Scala
apache-2.0
2,198
package services.migration.r2 import model.{MigrationBatch, SourceContent} import play.Logger import services.migration.{MigrationBatchParams, ThrottleControl} import scala.concurrent.Future abstract class R2CrosswordMigratorService(client : R2IntegrationAPIClient) extends R2MigrationService { import ThrottleCon...
guardian/flex-content-migrator
app/services/migration/r2/R2CrosswordMigratorService.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 ...
LucidWorks/spark-solr
src/main/scala/com/lucidworks/spark/analysis/LuceneTextAnalyzer.scala
Scala
apache-2.0
22,907
package fpis.datastructures sealed trait Tree[+A] case class Leaf[A](value: A) extends Tree[A] case class Branch[A](left: Tree[A], right: Tree[A]) extends Tree[A] object Tree { /* Correction on https://github.com/fpinscala/fpinscala/blob/master/answers/src/main/scala/fpinscala/datastructures/Tree.scala */ /* ...
TGITS/programming-workouts
scala/basic/fpis_chp3_functional_data_structures/src/main/scala/fpis/datastructures/Tree.scala
Scala
mit
2,299
package github import java.time.ZonedDateTime import play.api.libs.json.JsValue /** * Subset of issue event. See https://developer.github.com/v3/issues/events/ */ case class IssueEvent ( id: Long, timestamp: ZonedDateTime, event: String, issue: Issue, milestoneTitle: Option[String] ) { def this (jsValu...
shuwada/github-burnup-chart
src/main/scala/github/IssueEvent.scala
Scala
apache-2.0
576
/*********************************************************************** * 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-kafka/geomesa-kafka-confluent/src/main/scala/org/locationtech/geomesa/kafka/confluent/ConfluentMetadata.scala
Scala
apache-2.0
4,438
package scadla.examples import scadla._ import utils._ import Trig._ import InlineOps._ import scadla.EverythingIsIn.{millimeters, radians} import squants.space.{Length, Angle, Degrees, Millimeters} import scala.language.postfixOps // for mm notation import squants.space.LengthConversions._ // for mm notation /** A...
dzufferey/scadla
src/main/scala/scadla/examples/MecanumWheel.scala
Scala
apache-2.0
9,051
/* * 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 ...
wzhfy/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees/TreeNode.scala
Scala
apache-2.0
30,301
package ghpages.examples import ghpages.GhPagesMacros import ghpages.examples.util.SingleSide object CatsEffectExample { // EXAMPLE:START import cats.effect._ import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.html_<^._ // Cats Effect example code // ======================== final ca...
japgolly/scalajs-react
ghpages/src/main/scala/ghpages/examples/CatsEffectExample.scala
Scala
apache-2.0
3,595
/* * ____ ____ _____ ____ ___ ____ * | _ \\ | _ \\ | ____| / ___| / _/ / ___| Precog (R) * | |_) | | |_) | | _| | | | | /| | | _ Advanced Analytics Engine for NoSQL Data * | __/ | _ < | |___ | |___ |/ _| | | |_| | Copyright (C) 2010 - 2013 SlamData, In...
precog/platform
common/src/main/scala/com/precog/common/ColumnRef.scala
Scala
agpl-3.0
1,581
package app.components.custom import app.WsClient import app.actions.GlobalContextImpl import app.components.custom.userspage.UsersPageMem import japgolly.scalajs.react.Callback import shared.api.ServerApi import shared.dto.User case class ThePageState(modState: (ThePageState => ThePageState) => Callback = null, ...
Igorocky/lesn
client/src/main/scala/app/components/custom/ThePageState.scala
Scala
mit
1,309
package com.sksamuel.scapegoat /** * @author * Stephen Samuel */ sealed trait Level object Levels { /** * Errors indicate code that is potentially unsafe or likely to lead to bugs. * * An example is use of nulls. Use of nulls can lead to NullPointerExceptions and should be avoided. */ case objec...
sksamuel/scapegoat
src/main/scala/com/sksamuel/scapegoat/Level.scala
Scala
apache-2.0
1,649
package presistent trait BinTreeNode[T <: AnyVal] { def rootValue : Option[T] def left : BinTreeNode[T] def right : BinTreeNode[T] def isEmpty : Boolean = rootValue.isEmpty def hasChildren : Boolean = left.rootValue.isDefined || right.rootValue.isDefined def contains(elem:T) : Boolean def > (elem:T) :...
rominavarela-scala/progfun1
progfun1-week3/src/presistent/BinTreeNode.scala
Scala
mit
563
/** * Copyright 2011-2012 eBusiness Information, Groupe Excilys (www.excilys.com) * * 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 * *...
Tjoene/thesis
Case_Programs/gatling-1.4.0/gatling-core/src/test/scala/com/excilys/ebi/gatling/core/config/ProtocolConfigurationRegistrySpec.scala
Scala
gpl-2.0
2,077
/* * 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...
TimothyKlim/snowplow
3-enrich/scala-common-enrich/src/test/scala/com.snowplowanalytics.snowplow.enrich.common/utils/shredder/ShredderSpec.scala
Scala
apache-2.0
2,980
package edu.berkeley.nlp.entity // Chunks are semi-inclusive intervals. @SerialVersionUID(1L) case class Chunk[T](val start: Int, val end: Int, val label: T); object Chunk { def seqify[T](chunk: Chunk[T]): Chunk[Seq[T]] = new Chunk(chunk.start, chunk.end, Seq(chunk.label)); }
malcolmgreaves/berkeley-entity
src/main/java/edu/berkeley/nlp/entity/Chunk.scala
Scala
gpl-3.0
320
package com.socrata.soda.server.wiremodels import com.socrata.soda.server.responses.SodaResponse import java.io.IOException sealed abstract class ExtractResult[+T] { def map[U](f: T => U): ExtractResult[U] def flatMap[U](f: T => ExtractResult[U]): ExtractResult[U] } object ExtractResult { def sequence[A](es: S...
socrata-platform/soda-fountain
soda-fountain-lib/src/main/scala/com/socrata/soda/server/wiremodels/ExtractResult.scala
Scala
apache-2.0
1,078
package services.post import java.net.URLEncoder import play.api.libs.ws.Response import play.api.mvc.RequestHeader import services.auth.providers.Twitter import services.comment.Commenter import models.Comment object TwitterPoster extends GenericPoster { override val authProvider = Twitter override def urlToPo...
Froggies/Skimbo
app/services/post/TwitterPoster.scala
Scala
agpl-3.0
452
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.abondar.scalabasic.typeparam class Queue[T]( private[this] var leading: List[T], private[this] var trailing: List[T] ...
Dr762/ScalaBase
src/main/scala/org/abondar/scalabasic/typeparam/Queue.scala
Scala
apache-2.0
860
/* * Copyright 2015-2016 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
nwspeete-ibm/openwhisk
core/controller/src/main/scala/whisk/core/controller/AuthorizedRouteDispatcher.scala
Scala
apache-2.0
6,220
/* * 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 ...
shaneknapp/spark
sql/core/src/test/scala/org/apache/spark/sql/connector/SimpleWritableDataSource.scala
Scala
apache-2.0
7,457
import sbt._ import Keys._ import play.Project._ object ApplicationBuild extends Build { val appName = "IncidentResponseManager" val appVersion = "1.0-SNAPSHOT" val appDependencies = Seq( // Add your project dependencies here, jdbc, anorm, "mysql" % "mysql-connector-java" % "5.1.18...
larryoatmeal/Incident-Response-Manager
project/Build.scala
Scala
apache-2.0
947
package cz.cvut.fit.cervamar.gatling.check import cz.cvut.fit.cervamar.gatling.ResultCheck import io.gatling.commons.validation.{Failure, Validation} import io.gatling.core.check.CheckResult import io.gatling.core.session.Session import org.apache.tinkerpop.gremlin.driver.Result import scala.collection.mutable /** ...
cervamar/gremlin-gatling
src/main/scala/cz/cvut/fit/cervamar/gatling/check/SimpleResultCheck.scala
Scala
apache-2.0
718
/** * 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/util/InternalHttpClient.scala
Scala
lgpl-2.1
4,787
package com.dslplatform.json package runtime import java.lang.reflect.Type import scala.collection.mutable final class ArrayBufferDecoder[E]( manifest: Type, decoder: JsonReader.ReadObject[E], empty: () => scala.collection.Iterable[E], finalize: mutable.ArrayBuffer[E] => scala.collection.Iterable[...
ngs-doo/dsl-json
scala/src/main/scala/com/dslplatform/json/runtime/ArrayBufferDecoder.scala
Scala
bsd-3-clause
1,173
// Generated by the Scala Plugin for the Protocol Buffer Compiler. // Do not edit! // // Protofile syntax: PROTO3 package com.google.protobuf.api import _root_.scalapb.internal.compat.JavaConverters._ /** Api is a light-weight descriptor for an API Interface. * * Interfaces are also described as "protocol buffer ...
trueaccord/ScalaPB
scalapb-runtime/src/main/scalajvm/com/google/protobuf/api/Api.scala
Scala
apache-2.0
19,746
package com.twitter.finagle.http import com.twitter.finagle.benchmark.StdBenchAnnotations import org.openjdk.jmh.annotations._ import org.openjdk.jmh.infra.Blackhole import scala.util.Random @State(Scope.Benchmark) abstract class HeaderMapBenchmark extends StdBenchAnnotations { protected def newMap(): HeaderMap ...
mkhq/finagle
finagle-benchmark/src/main/scala/com/twitter/finagle/http/HeaderMapBenchmark.scala
Scala
apache-2.0
1,096
/* * 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 ...
dotunolafunmiloye/spark
streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaDStreamLike.scala
Scala
apache-2.0
17,595
package org.jetbrains.plugins.hocon.lexer import com.intellij.lexer.LexerBase import com.intellij.psi.tree.IElementType import org.jetbrains.plugins.hocon.HoconConstants import scala.annotation.tailrec import scala.util.matching.Regex object HoconLexer { case class State(raw: Int) extends AnyVal final val Init...
ghik/intellij-hocon
src/org/jetbrains/plugins/hocon/lexer/HoconLexer.scala
Scala
apache-2.0
7,987
/* * Copyright 2017 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...
liquidarmour/ct-calculations
src/test/scala/uk/gov/hmrc/ct/computations/CP89Spec.scala
Scala
apache-2.0
4,893
package org.kale.dkim import java.security.spec.X509EncodedKeySpec import java.security.{KeyFactory, PublicKey} import java.util.Base64 import org.apache.logging.log4j.LogManager import scala.collection.concurrent.RDCSS_Descriptor object DkimDnsLookup { val logger = LogManager.getLogger(getClass) val DKIM1 = "...
OdysseusLevy/kale
dkim/src/main/scala/org/kale/dkim/DkimDnsLookup.scala
Scala
apache-2.0
1,667
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.scaladsl.testkit import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths import com.lightbend.lagom.scaladsl.api.Descriptor import com.lightbend.lagom.scaladsl.api.Service import com.lightbend.lagom...
lagom/lagom
testkit/scaladsl/src/test/scala/com/lightbend/lagom/scaladsl/testkit/ServiceTestSpec.scala
Scala
apache-2.0
3,307
/* ------------------- sse-jmx ------------------- *\ * Licensed under the Apache License, Version 2.0. * * Author: Spiros Tzavellas * \* ----------------------------------------------- */ package com.tzavellas.sse.jmx.export import javax.management.MBeanOperationInfo import javax.management.m...
sptz45/sse-jmx
src/main/scala/com/tzavellas/sse/jmx/export/NoGetterAndSetterMBeanInfo.scala
Scala
apache-2.0
1,533
package coursier.publish.upload import coursier.core.Authentication import coursier.publish.upload.logger.UploadLogger import coursier.util.Task final case class DummyUpload(underlying: Upload) extends Upload { def upload( url: String, authentication: Option[Authentication], content: Array[Byte], lo...
alexarchambault/coursier
modules/publish/src/main/scala/coursier/publish/upload/DummyUpload.scala
Scala
apache-2.0
427
package com.twitter.scalding.parquet.thrift import cascading.scheme.Scheme import com.twitter.scalding.typed.{PartitionSchemed, PartitionUtil} import com.twitter.scalding.{FixedPathSource, HadoopSchemeInstance, TupleConverter, TupleSetter} import scala.reflect.ClassTag /** * Scalding source to read or write partiti...
twitter/scalding
scalding-parquet/src/main/scala/com/twitter/scalding/parquet/thrift/PartitionedParquetThriftSource.scala
Scala
apache-2.0
2,137
package org.bizzle.pathfinding import org.bizzle.tester.cluster.{ TestFuncConstructionBundle, TestFuncFlagBundle, TestFunction } import pathingmap.PathingMapString /** * Created by IntelliJ IDEA. * User: Jason * Date: 1/19/12 * Time: 9:58 PM */ class PathingTestFunction(testString: PathingMapString, ...
TheBizzle/PathFindingCore
src/test/org/bizzle/pathfinding/PathingTestFunction.scala
Scala
bsd-3-clause
1,328
/* * Copyright 2015 Functional Objects, 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 ...
funobjects/hue-and-cry
src/main/scala/org/funobjects/hue/HueModule.scala
Scala
apache-2.0
7,098
package com.gu.core.models import org.joda.time.DateTime case class Filters( status: Status, since: Option[DateTime], until: Option[DateTime], order: Option[OrderBy] )
guardian/discussion-avatar
api/src/main/scala/com/gu/core/models/Filters.scala
Scala
apache-2.0
178
package promisewell import org.scalatest.FunSpec import scala.collection.mutable import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.global class CappedSpec extends FunSpec { describe("Cache#capped") { it ("should cap items") { val evictions = new mutable.ArrayBuffer[Int] ...
softprops/promise-well
src/test/scala/CappedSpec.scala
Scala
mit
988
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
printedheart/sparkling-water
core/src/test/scala/water/api/ScalaCodeHandlerSuite.scala
Scala
apache-2.0
8,279
/** * Copyright 2013 Gianluca Amato * * This file is part of JANDOM: JVM-based Analyzer for Numerical DOMains * JANDOM 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 ...
francescaScozzari/Jandom
core/src/test/scala/it/unich/jandom/domains/numerical/ParallelotopeDomainSuite.scala
Scala
lgpl-3.0
9,975
package org.jetbrains.plugins.scala package lang package psi package stubs package elements import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.intellij.psi.stubs.IndexSink import com.intellij.psi.stubs.StubElement import com.intellij.psi.stubs.StubInputStream import com.intellij.psi.stubs.S...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/stubs/elements/ScExtendsBlockElementType.scala
Scala
apache-2.0
1,805
/* * MUSIT is a museum database to archive natural and cultural history data. * Copyright (C) 2016 MUSIT Norway, part of www.uio.no (University of Oslo) * * 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 Softw...
kpmeen/musit
service_barcode/app/models/Millimeters.scala
Scala
gpl-2.0
1,209
import org.scalatra.ScalatraServlet class ExtremeStartup extends ScalatraServlet { get("/") { "The server is running" } }
JoakimMisund/extreme_startup_servers
scala/scalatra/src/main/scala/ExtremeStartup.scala
Scala
bsd-2-clause
156
package breeze.linalg import breeze.math.Complex import org.scalatest.funsuite.AnyFunSuite class kronTest extends AnyFunSuite { test("kron complex") { val m = DenseMatrix((Complex(0, 1), Complex(2, 1)), (Complex(3, 3), Complex(4, 4))) val result = DenseMatrix( (Complex(-1.0, 0.0), Complex(-1.0, 2.0),...
scalanlp/breeze
math/src/test/scala/breeze/linalg/functions/kronTest.scala
Scala
apache-2.0
668
package hrscala.validation object Models { // INPUT case class Row(cells: String*) val people = List( Row("Ivan", "30", "scala, java, c"), Row("Mirko", "millenial", "js"), Row("Josip", "30", "scala, haskell"), Row("Miro", "400", "java, php, scala") ) // OUTPUT ...
HRScala/validations-keep-us-sane
model/src/main/scala/Models.scala
Scala
unlicense
715
package com.typesafe.sbt.packager.windows import sbt._ import sbt.Keys.{mappings, name, packageBin, sourceDirectory, streams, target, version} import com.typesafe.sbt.SbtNativePackager.Universal import com.typesafe.sbt.packager.Keys.{maintainer, packageDescription, packageName, packageSummary} import com.typesafe.sbt....
kardapoltsev/sbt-native-packager
src/main/scala/com/typesafe/sbt/packager/windows/WindowsPlugin.scala
Scala
bsd-2-clause
7,939
/* * Copyright 2020 Daniel Spiewak * * 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 ...
djspiewak/shims
core/src/main/scala/shims/conversions/kernel.scala
Scala
apache-2.0
5,694
package org.etl.server import org.restlet.resource.ServerResource import org.restlet.resource.Get import java.io.BufferedReader import java.io.FileReader import org.etl.SparrowStandaloneSetup import org.etl.parser.antlr.SparrowParser import org.etl.config.ConfigurationService import scala.collection.immutable.HashMap ...
jpvelsamy/sparrow
sparrow-server/src/main/scala/org/etl/server/StartProcess.scala
Scala
apache-2.0
2,547
// Copyright 2013 Christopher Swenson. // Author: Christopher Swenson (chris@caswenson.com) package com.caswenson.pizza import com.caswenson.pizza.data.{Pizza, Cities} import com.simple.simplespec.Spec import org.junit.Test object PizzaSpec { lazy val cities = Cities("census/place") lazy val orPizza = Pizza(citie...
swenson/pizza
src/test/scala/com/caswenson/pizza/PizzaSpec.scala
Scala
mit
1,473
package amphip.stoch import spire.implicits._ import org.junit.Assert._ import org.junit.Test import amphip.dsl._ import amphip.model.ast._ import amphip.data.ModelData._ class TestStochData { @Test def testModel1(): Unit = { val S = set("S") val T = set("T") val prob = param("prob", S) //val ...
gerferra/amphip
core/src/test/scala/amphip/stoch/TestStochData.scala
Scala
mpl-2.0
6,890
package org.jetbrains.plugins.scala package editor.enterHandler import com.intellij.codeInsight.CodeInsightSettings import com.intellij.codeInsight.editorActions.enter.EnterHandlerDelegate.Result import com.intellij.codeInsight.editorActions.enter.EnterHandlerDelegateAdapter import com.intellij.openapi.actionSystem.Da...
katejim/intellij-scala
src/org/jetbrains/plugins/scala/editor/enterHandler/MultilineStringEnterHandler.scala
Scala
apache-2.0
11,699
/** * © 2019 Refinitiv. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
dudi3001/CM-Well
server/cmwell-plugin-gremlin/src/main/scala/cmwell/plugins/impl/GremlinParser.scala
Scala
apache-2.0
3,765
package io.eels.component.kudu import java.util.concurrent.atomic.AtomicBoolean import com.sksamuel.exts.Logging import com.sksamuel.exts.io.Using import io.eels.datastream.{DataStream, Publisher, Subscriber, Subscription} import io.eels.schema._ import io.eels.{Row, Source} import org.apache.kudu.client.{KuduClient,...
sksamuel/eel-sdk
eel-kudu/src/main/scala/io/eels/component/kudu/KuduSource.scala
Scala
apache-2.0
3,297
package ElevenToTwenty /** * Created by Farrell on 5/20/15. */ object P17 { }
Spinlocks/99Problems
src/ElevenToTwenty/P17.scala
Scala
apache-2.0
82
package com.adamkunicki.kiji.twitter import org.slf4j.LoggerFactory import akka.actor.{ActorRef, Props, Actor, ActorSystem} import com.adamkunicki.akka._ import com.adamkunicki.avro._ import akka.routing.RoundRobinRouter import org.kiji.schema._ import java.io.IOException import twitter4j._ import scala.collection.Jav...
kunickiaj/kiji-tweet-stream
src/main/scala/com/adamkunicki/kiji/twitter/TweetIngester.scala
Scala
apache-2.0
8,142
package com.classcat.ccnsm2 import org.apache.spark.SparkContext class DataBasic { protected val sc : SparkContext = GData.sc protected val bro_logs : String = MyConfig.bro_logs // protected val bro_logs : String = "%s/logs".format(bro_home) protected var is_error : Boolean = false protected v...
classcat/cc-nsm2-ui
src/main/scala/com/classcat/ccnsm2/DataBasic.scala
Scala
gpl-3.0
435
/* * Copyright (c) 2014-2021 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...
monifu/monifu
monix-execution/jvm/src/main/scala/monix/execution/internal/collection/queues/FromCircularQueue.scala
Scala
apache-2.0
3,810
package com.lkroll.ep.mapviewer.datamodel import java.util.UUID; import squants._ import squants.motion._ object Designation { def apply(p: Planet, ordinal: Int): (String, String) = ("Designation" -> s"${p.name} ${RomanNumerals.toRomanNumerals(ordinal)}") } class Moon(_name: String, _id: UUID, _mass: Mass, val...
Bathtor/ep-explorer
src/main/scala/com/lkroll/ep/mapviewer/datamodel/Moon.scala
Scala
mit
639
package mesosphere.marathon import javax.inject.{ Inject, Named } import akka.actor.{ ActorRef, ActorSystem } import akka.event.EventStream import com.fasterxml.jackson.databind.ObjectMapper import mesosphere.marathon.MarathonSchedulerActor.ScaleApp import mesosphere.marathon.Protos.MarathonTask import mesosphere.mar...
quamilek/marathon
src/main/scala/mesosphere/marathon/MarathonScheduler.scala
Scala
apache-2.0
7,547
/* * ========================================================================================= * Copyright © 2015 the khronus project <https://github.com/hotels-tech/khronus> * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You m...
despegar/khronus
khronus-influx-api/src/it/scala/com.searchlight.khronus.influx/finder/InfluxDashboardResolverSpec.scala
Scala
apache-2.0
4,597
/* * Copyright 2018 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/worldpay-downloader
app/domain/Order.scala
Scala
apache-2.0
1,310
package lore.compiler.transformation import lore.compiler.core.Position import lore.compiler.feedback.{Feedback, Reporter, StructFeedback} import lore.compiler.resolution.TypeExpressionEvaluator import lore.compiler.semantics.NamePath import lore.compiler.semantics.expressions.Expression import lore.compiler.semantics...
marcopennekamp/lore
compiler/src/lore/compiler/transformation/StructTransformation.scala
Scala
mit
5,025
/* * 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/AndedPropertyInequalities.scala
Scala
apache-2.0
1,382
package hello import org.springframework.boot.SpringApplication //import HelloConfig. /** * This object bootstraps Spring Boot web application. * Via Gradle: gradle bootRun * * @author saung * @since 1.0 */ object HelloWebApplication { def main(args: Array[String]) { SpringApplication.run(classOf[Hell...
GauravBuche/hello-world
src/main/scala/hello/HelloWebApplication.scala
Scala
mit
365
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2015-2021 Andre White. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * ...
adarro/ddo-calc
subprojects/common/ddo-core/src/test/scala/io/truthencode/ddo/model/effect/EffectParameterBuilderTest.scala
Scala
apache-2.0
3,405
package de.hsaugsburg.ego.planetsim import de.hsaugsburg.smas.startup.{BasicSystemBuilder, XmlSystemBuilder} import de.hsaugsburg.smas.util.HolonUtil object StartGui { val configFile = "/config/planetsim/gui.xml" def main(args: Array[String]) { XmlSystemBuilder.runOverXmlFileAndBuildSystem(configFile) } ...
kitingChris/PlanetSim
src/main/scala/de/hsaugsburg/ego/planetsim/Launcher.scala
Scala
gpl-2.0
711
package com.ambrosoft /** * Created by jacek on 7/8/16. * * Approach: * * can imagine all ways canonicalized by sorting from bigger coins to smaller * thus if n > 25, at least one family of ways will start with 25 * followed by all the ways (n - 25) can be expressed, recursively (which therefore will inc...
JacekAmbroziak/Ambrosoft
src/main/scala/com/ambrosoft/CoinWays.scala
Scala
apache-2.0
1,274
/* * 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/accounts/frs102/boxes/AC119A.scala
Scala
apache-2.0
1,154
package com.softwaremill.codebrag.dao.repositorystatus import com.softwaremill.codebrag.domain.RepositoryStatus trait RepositoryStatusDAO { def updateRepoStatus(newStatus: RepositoryStatus) def getRepoStatus(repoName: String): Option[RepositoryStatus] }
softwaremill/codebrag
codebrag-dao/src/main/scala/com/softwaremill/codebrag/dao/repositorystatus/RepositoryStatusDAO.scala
Scala
agpl-3.0
259
package io.github.reggert.reb4s.test import org.scalacheck.{Arbitrary, Gen} import Arbitrary.arbitrary import io.github.reggert.reb4s.Literal import Literal.{CharLiteral, StringLiteral} trait LiteralGenerators { implicit val arbCharLiteral: Arbitrary[CharLiteral] = Arbitrary(genCharLiteral) implicit val arbStringLi...
reggert/reb4s
src/test/scala/io/github/reggert/reb4s/test/LiteralGenerators.scala
Scala
lgpl-3.0
1,019
package com.twitter.inject.app import com.google.inject.{Module, Stage} import com.twitter.app.Flag import com.twitter.inject.app.internal.InstalledModules import com.twitter.inject.{Injector, TwitterModule} object TestInjector { /* Public */ def apply(modules: Module*): Injector = { apply(modules = modules...
nkhuyu/finatra
inject/inject-app/src/test/scala/com/twitter/inject/app/TestInjector.scala
Scala
apache-2.0
1,938
package dk.bayes.clustergraph.infer import org.junit._ import org.junit.Assert._ import dk.bayes.clustergraph.testutil._ import dk.bayes.clustergraph.testutil.AssertUtil._ import dk.bayes.clustergraph.testutil.StudentBN._ import dk.bayes.clustergraph.factor.Var import dk.bayes.clustergraph.factor.Factor import dk.baye...
danielkorzekwa/bayes-scala
src/test/scala/dk/bayes/clustergraph/infer/LoopyBPStudentTest.scala
Scala
bsd-2-clause
7,491
package com.twitter.concurrent import com.twitter.util.{Future, Promise} import java.util.concurrent.atomic.AtomicReference import scala.annotation.tailrec import scala.collection.immutable.Queue object AsyncQueue { private sealed trait State[+T] private case object Idle extends State[Nothing] private case clas...
mosesn/util
util-core/src/main/scala/com/twitter/concurrent/AsyncQueue.scala
Scala
apache-2.0
2,793
/*********************************************************************** * Copyright (c) 2013-2018 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
ddseapy/geomesa
geomesa-kudu/geomesa-kudu-tools/src/main/scala/org/locationtech/geomesa/kudu/tools/data/KuduDeleteCatalogCommand.scala
Scala
apache-2.0
1,303
/* * 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/StopOnFailureReporter.scala
Scala
apache-2.0
1,110
import sbt._ import Keys._ object BuildSettings { val paradiseVersion = "2.0.0" val buildSettings = Defaults.defaultSettings ++ Seq( organization := "be.angelcorp.scala-glsl", version := "1.0.0-SNAPSHOT", scalacOptions ++= Seq(), scalaVersion := "2.11.1", crossScalaVersions := Seq("2.11.0", "2....
AODtorusan/scala-glsl
project/Build.scala
Scala
mit
1,737
package org.mozartoz.bootcompiler package transform import oz._ import ast._ import bytecode._ import symtab._ object CodeGen extends Transformer with TreeDSL { def code = abstraction.codeArea private implicit def symbol2reg(symbol: Symbol) = code.registerFor(symbol) private implicit def varorconst2reg(ex...
layus/mozart2
bootcompiler/src/main/scala/org/mozartoz/bootcompiler/transform/CodeGen.scala
Scala
bsd-2-clause
8,343
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller, Michael Cotterell * @version 1.2 * @date Wed Nov 2 22:32:00 EDT 2011 * @see LICENSE (MIT style license file). */ package scalation.math import scala.collection.mutable.{IndexedSeq, ArrayBuffer} i...
NBKlepp/fda
scalation_1.2/src/main/scala/scalation/math/Primes.scala
Scala
mit
15,031
package com.alanjz.microstrike.gear class Kevlar { }
spacenut/microstrike
src/com/alanjz/microstrike/gear/Kevlar.scala
Scala
gpl-2.0
55
package cross class DummyClass extends Serializable { val var1 = "đĐe" val var2 = 123 val var3 = 0.999 val var4 = null val var5 = new { val x = Map(0 -> 123.4567, "k1" -> "value1", "k2" -> "Tiếng Việt") } val var6 = "a dynamic var" } object Data { val dataFile = "php-ser.data" val dummy = new Du...
giabao/php-utils
src/test/scala/cross/Data.scala
Scala
apache-2.0
1,953
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
caneGuy/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/FileBatchWrite.scala
Scala
apache-2.0
2,083
package distrimon.master import akka.actor.ActorRef import akka.io.Tcp.{ConnectionClosed, Write, Close, Received} import akka.util.ByteString import distrimon.{Connection, Envolope, State} import Manager._ import MinionTunnel._ class MinionHandler(val manager: ActorRef, val conn: ActorRef) extends Connection { val ...
ConnorDillon/distrimon
src/main/scala/distrimon/master/MinionHandler.scala
Scala
gpl-3.0
1,670
/* * Copyright (C) 2010 Romain Reuillon * * 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. * * This progra...
openmole/openmole
openmole/plugins/org.openmole.plugin.sampling.lhs/src/main/scala/org/openmole/plugin/sampling/lhs/LHS.scala
Scala
agpl-3.0
1,658
package com.twitter.finagle.zipkin.thrift import com.twitter.finagle.NoStacktrace import com.twitter.finagle.stats.{DefaultStatsReceiver, NullStatsReceiver, StatsReceiver} import com.twitter.finagle.tracing.{TraceId, Record, Tracer, Annotation, Trace} import com.twitter.finagle.zipkin.{host => Host, initialSampleRate ...
travisbrown/finagle
finagle-zipkin/src/main/scala/com/twitter/finagle/zipkin/thrift/ZipkinTracer.scala
Scala
apache-2.0
8,199
package scalacookbook.chapter03 /** * Created by liguodong on 2016/6/20. */ object LoopWithForAndForeach extends App{ val a = Array("apple", "banana", "orange") for (e <- a) println(e) println("=================") //Returning values from a for loop for (e <- a) { // imagine this requires multiple li...
liguodongIOT/java-scala-mix-sbt
src/main/scala/scalacookbook/chapter03/LoopWithForAndForeach.scala
Scala
apache-2.0
2,488
package com.github.nearbydelta.deepspark.data import java.io.{ByteArrayInputStream, ByteArrayOutputStream} import breeze.linalg.{DenseMatrix, DenseVector} import com.esotericsoftware.kryo._ import com.esotericsoftware.kryo.io.{Input, Output} import com.github.nearbydelta.deepspark.layer._ import com.github.nearbydelt...
nearbydelta/deepspark
src/main/scala/com/github/nearbydelta/deepspark/data/KryoWrap.scala
Scala
gpl-2.0
5,356
package models import org.specs2.mutable._ import org.specs2.runner._ import org.junit.runner._ import play.api.test._ import play.api.test.Helpers._ import controllers.Screener.ScreenParams @RunWith(classOf[JUnitRunner]) class TradeSpec extends Specification { val itmTrade = { running(FakeApplication()) { ...
Exupery/optionometer
test/models/TradeSpec.scala
Scala
mit
2,939
package org.bitcoins.core.util import org.bitcoins.core.crypto._ import org.bitcoins.core.number.UInt32 import org.bitcoins.core.protocol.CompactSizeUInt import org.bitcoins.core.protocol.script.{CLTVScriptPubKey, CSVScriptPubKey, EmptyScriptPubKey, _} import org.bitcoins.core.protocol.transaction.{Transaction, Witnes...
SuredBits/bitcoin-s-sidechains
src/main/scala/org/bitcoins/core/util/BitcoinScriptUtil.scala
Scala
mit
18,782
package com.eevolution.context.dictionary.domain.api.repository import com.eevolution.context.dictionary._ /** * Copyright (C) 2003-2017, e-Evolution Consultants S.A. , http://www.e-evolution.com * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publi...
adempiere/ADReactiveSystem
dictionary-api/src/main/scala/com/eevolution/context/dictionary/domain/api/repository/PrintTableFormatRepository.scala
Scala
gpl-3.0
1,151
package com.temportalist.chalked.common import com.temportalist.origin.wrapper.common.ProxyWrapper import net.minecraft.entity.player.EntityPlayer import net.minecraft.tileentity.TileEntity import net.minecraft.world.World /** * * * @author TheTemportalist */ class CommonProxy() extends ProxyWrapper { override ...
TheTemportalist/Chalked
src/main/scala/com/temportalist/chalked/common/CommonProxy.scala
Scala
apache-2.0
678
package gitbucket.core.service import gitbucket.core.GitBucketCoreModule import gitbucket.core.util.{DatabaseConfig, FileUtil} import gitbucket.core.util.SyntaxSugars._ import io.github.gitbucket.solidbase.Solidbase import liquibase.database.core.H2Database import liquibase.database.jvm.JdbcConnection import gitbucket...
mann-ed/gitbucket
src/test/scala/gitbucket/core/service/ServiceSpecBase.scala
Scala
apache-2.0
3,626
/* * This file is part of Apparat. * * Copyright (C) 2010 Joa Ebert * http://www.joa-ebert.com/ * * 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 Lice...
joa/apparat
apparat-core/src/main/scala/apparat/pbj/Pbj.scala
Scala
lgpl-2.1
18,586
/** * Copyright (C) 2017 DANS - Data Archiving and Networked Services (info@dans.knaw.nl) * * 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/LIC...
rvanheest/easy-greeter
src/main/scala/cake/greeter/component/PropertiesComponent.scala
Scala
apache-2.0
1,429
/* * 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 * distrib...
fusepoolP3/p3-silk
silk-workspace/src/main/scala/de/fuberlin/wiwiss/silk/workspace/scripts/RunResult.scala
Scala
apache-2.0
1,426
package edu.cmu.dynet /** Builder method for creating GRUs, as in the C++ code. For its public methods see * [[edu.cmu.dynet.RnnBuilder]]. */ class GruBuilder private[dynet](private[dynet] val builder: internal.GRUBuilder) extends RnnBuilder(builder) { /** Create a new, empty GruBuilder. */ def this() { t...
cherryc/dynet
contrib/swig/src/main/scala/edu/cmu/dynet/GRUBuilder.scala
Scala
apache-2.0
575
/* * Copyright (c) 2011-2017 Interfaculty Department of Geoinformatics, University of * Salzburg (Z_GIS) & Institute of Geological and Nuclear Sciences Limited (GNS Science) * in the SMART Aquifer Characterisation (SAC) programme funded by the New Zealand * Ministry of Business, Innovation and Employment (MBIE) * ...
ZGIS/smart-portal-backend
app/models/users/UserFile.scala
Scala
apache-2.0
4,803
/* * 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 ...
bowenli86/flink
flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/StreamExecutionEnvironment.scala
Scala
apache-2.0
41,443
package net.pointsgame.lift.snippet import net.liftweb.common.Loggable import net.liftweb.http._ import net.liftweb.util.Helpers._ import net.liftweb.util.{CssSel, Props} class SimpleSnippets extends Loggable { lazy val room = S.uri.split('/').lastOption getOrElse "TODO" def specifyRoom: CssSel = { if (room mat...
vn971/points-wip
modules/lift-server/src/main/scala/net/pointsgame/lift/snippet/SimpleSnippets.scala
Scala
agpl-3.0
674