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 sbt._ object Dependencies { object Compile { val hadoop = "org.apache.hadoop" % "hadoop-core" % "0.20.205.0" % "compile" } object Test { val spec2 = "org.specs2" %% "specs2" % "1.8.2" % "te...
amir343/saaloop
project/Dependencies.scala
Scala
apache-2.0
330
package org.jetbrains.plugins.scala package annotator.createFromUsage import com.intellij.codeInsight.intention.IntentionAction import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.intellij.psi.{PsiDocumentManager, PsiFile} import org.jetbrains.plugins.scala.debugger.evaluat...
SergeevPavel/intellij-scala
src/org/jetbrains/plugins/scala/annotator/createFromUsage/CreateFromUsageQuickFixBase.scala
Scala
apache-2.0
1,386
package net.categoricaldata.category trait Equivalence { equivalence => val source: Category val target: Category trait Source2Target extends Functor { override val source: equivalence.source.type= equivalence.source override val target: equivalence.target.type= equivalence.target } trait Target2Source ex...
JasonGross/categoricaldata
src/main/scala/net/categoricaldata/category/Equivalence.scala
Scala
mit
629
package org.json4s package scalaz import _root_.scalaz._ import Scalaz._ import native.JsonMethods._ import org.json4s.native.scalaz._ import JsonScalaz._ import org.specs2.mutable.Specification object Example extends Specification { case class Address(street: String, zipCode: String) case class Person(name: St...
karolx/json4s
tests/src/test/scala/org/json4s/scalaz/Example.scala
Scala
apache-2.0
2,558
/* * Copyright 2017 Simeon Simeonov and Swoop, 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 applicab...
swoop-inc/spark-records
src/main/scala/com/swoop/spark/records/Features.scala
Scala
apache-2.0
2,383
package org.jetbrains.plugins.scala.lang.typeInference import org.jetbrains.plugins.scala.{LatestScalaVersions, ScalaVersion} class Scala3DerivingTest extends ImplicitParametersTestBase { override protected def supportedIn(version: ScalaVersion): Boolean = version >= LatestScalaVersions.Scala_3_0 def testSimp...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/lang/typeInference/Scala3DerivingTest.scala
Scala
apache-2.0
3,966
package net.sansa_stack.rdf.common.partition.layout import scala.reflect.runtime.universe.{Type, typeOf} import org.apache.jena.graph.Triple import net.sansa_stack.rdf.common.partition.core.RdfPartitionerDefault import net.sansa_stack.rdf.common.partition.schema.SchemaStringFloat object TripleLayoutFloat extends ...
SANSA-Stack/SANSA-RDF
sansa-rdf/sansa-rdf-common/src/main/scala/net/sansa_stack/rdf/common/partition/layout/TripleLayoutFloat.scala
Scala
apache-2.0
806
/* * 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 ...
zjureel/flink
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/ExpressionReducer.scala
Scala
apache-2.0
12,458
package com.zhranklin.homepage.im import java.io.{BufferedReader, InputStreamReader} import java.net._ import com.typesafe.config.ConfigFactory import scala.concurrent.Future object ImPortRegisterer { val localPort = ConfigFactory.load().getInt("settings.socket.server_port") val ips = collection.mutable.Map.emp...
zhranklin/Private_Blog
server/src/main/scala/com/zhranklin/homepage/im/ImPortRegisterer.scala
Scala
gpl-3.0
882
package org.scalajs.jsenv import scala.concurrent.duration.Duration trait ComJSRunner extends AsyncJSRunner { /** Send a message to the JS VM. Throws if the message cannot be sent. */ def send(msg: String): Unit /** Blocks until a message is received and returns it. * * @throws ComClosedException if th...
doron123/scala-js
js-envs/src/main/scala/org/scalajs/jsenv/ComJSRunner.scala
Scala
bsd-3-clause
1,248
package com.technophobia.substeps.domain import com.technophobia.substeps.domain.repositories.SubstepRepository import com.technophobia.substeps.domain.execution.RunResult import com.technophobia.substeps.domain.events.{ExecutionCompleted, ExecutionStarted, DomainEventPublisher} /** * @author rbarefield */ case cla...
G2G3Digital/substeps-scala-core
src/main/scala/com/technophobia/substeps/domain/Background.scala
Scala
lgpl-3.0
883
package org.jetbrains.plugins.scala.testingSupport.scalatest.singleTest import org.jetbrains.plugins.scala.testingSupport.scalatest.generators.FreeSpecGenerator /** * @author Roman.Shein * @since 20.01.2015. */ trait FreeSpecSingleTestTest extends FreeSpecGenerator { val freeSpecTestPath = List("[root]", freeSpe...
ilinum/intellij-scala
test/org/jetbrains/plugins/scala/testingSupport/scalatest/singleTest/FreeSpecSingleTestTest.scala
Scala
apache-2.0
746
/** * 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...
gf53520/kafka
core/src/test/scala/unit/kafka/network/SocketServerTest.scala
Scala
apache-2.0
62,985
package com.twitter.finagle.stats import org.scalatest.funsuite.AnyFunSuite class LazyStatsReceiverTest extends AnyFunSuite { test("Doesn't eagerly initialize counters") { val underlying = new InMemoryStatsReceiver() val wrapped = new LazyStatsReceiver(underlying) val counter = wrapped.counter("foo") ...
twitter/util
util-stats/src/test/scala/com/twitter/finagle/stats/LazyStatsReceiverTest.scala
Scala
apache-2.0
743
package io.circe import algebra.Eq import cats.Show import cats.data.Xor import cats.std.list._ /** * A data type representing possible JSON values. * * @author Travis Brown * @author Tony Morris * @author Dylan Just * @author Mark Hibberd */ sealed abstract class Json extends Product with Serializable { imp...
ktoso/circe
core/shared/src/main/scala/io/circe/Json.scala
Scala
apache-2.0
7,136
/** * 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...
patricklucas/kafka-manager
app/kafka/manager/utils/ReassignPartitionCommand.scala
Scala
apache-2.0
7,847
/* * 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...
SRGOM/scalatest
scalatest-test/src/test/scala/org/scalatest/ShouldBeReadableLogicalOrImplicitSpec.scala
Scala
apache-2.0
12,584
/* * Copyright 2009-2011 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...
tmatvienko/json4s
ast/src/main/scala/org/json4s/JsonAST.scala
Scala
apache-2.0
7,682
package info.glennengstrand.news.model case class Participant( id: Option[Long], name: Option[String], link: Option[String]) { def isValid: Boolean = { !name.isEmpty } }
gengstrand/clojure-news-feed
server/feed12/app/info/glennengstrand/news/model/Participant.scala
Scala
epl-1.0
185
/******************************************************************************* Copyright (c) 2013, S-Core. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. *********************************************************************...
daejunpark/jsaf
src/kr/ac/kaist/jsaf/analysis/typing/models/jquery/JQueryHelper.scala
Scala
bsd-3-clause
16,205
package artisanal.pickle.maker import models._ import parser._ import org.specs2._ import mutable._ import specification._ import scala.reflect.internal.pickling.ByteCodecs import scala.tools.scalap.scalax.rules.scalasig._ import com.novus.salat.annotations.util._ import scala.reflect.ScalaSignature class ListLo...
julianpeeters/artisanal-pickle-maker
src/test/scala/singleValueMember/ListSpecs/List[Long]Spec.scala
Scala
apache-2.0
929
/* * Copyright 2015 Heiko Seeberger * * 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...
hseeberger/reactive-flows
src/main/scala/de/heikoseeberger/reactiveflows/Main.scala
Scala
apache-2.0
3,271
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.core import akka.actor._ import akka.event.LoggingReceive.withLabel import org.ensime.api._ import org.ensime.config.richconfig._ import org.ensime.util.FileUtils.toSource...
VlachJosef/ensime-server
core/src/main/scala/org/ensime/core/AnalyzerManager.scala
Scala
gpl-3.0
5,553
package com.cloudera.hue.livy.server import javax.servlet.ServletContext import com.cloudera.hue.livy.{Utils, Logging, LivyConf, WebServer} import org.scalatra._ import org.scalatra.servlet.ScalatraListener object Main { val SESSION_KIND = "livy-server.session.kind" val THREAD_SESSION = "thread" val PROCESS_S...
nvoron23/hue
apps/spark/java/livy-server/src/main/scala/com/cloudera/hue/livy/server/Main.scala
Scala
apache-2.0
2,097
package techex.cases import org.http4s.dsl._ import org.joda.time.{Instant, DateTime} import techex._ import techex.data._ import techex.domain._ import scalaz.stream.async.mutable.Topic object endSession { def restApi(topic: Topic[InputMessage]): WebHandler = { case req@POST -> Root / "sessions" / "end" / s...
kantega/tech-ex-2015
backend/src/main/scala/techex/cases/endSession.scala
Scala
mit
683
package com.github.xubo245.gcdss.utils /** * Created by xubo on 2017/4/9. */ object Constants { var debug=false }
xubo245/GCDSS
src/main/scala/com/github/xubo245/gcdss/utils/Constants.scala
Scala
gpl-2.0
119
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
usakey/kafka
core/src/main/scala/kafka/message/Message.scala
Scala
apache-2.0
7,922
package mr.merc.map.pathfind import org.scalatest.funsuite.AnyFunSuite import mr.merc.map.hex.HexField import mr.merc.map.hex.Hex class MercPossibleMovesFinderTest extends AnyFunSuite { val finder = PossibleMovesFinder test("sanity check") { val grid = new TestGrid(new HexField[Hex](5, 5, Hex.hexInit)) v...
RenualdMarch/merc
src/test/scala/mr/merc/map/pathfind/PossibleMovesFinderTest.scala
Scala
gpl-3.0
1,506
/* * 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 ...
davidzchen/samza
samza-kafka/src/main/scala/org/apache/samza/system/kafka/KafkaSystemConsumer.scala
Scala
apache-2.0
10,032
package io.gatling.amqp.infra import java.util.concurrent.atomic._ import akka.actor.Props import com.rabbitmq.client._ import io.gatling.amqp.config._ import io.gatling.amqp.data._ import io.gatling.amqp.event._ import io.gatling.core.result.writer.StatsEngine import io.gatling.core.session.Session import io.gatling...
maiha/gatling-amqp
src/main/scala/io/gatling/amqp/infra/AmqpPublisher.scala
Scala
mit
2,742
/* * 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-core/src/main/scala/de/fuberlin/wiwiss/silk/util/sparql/SparqlSamplePathsCollector.scala
Scala
apache-2.0
3,665
package com.datastax.spark.connector.mapper import com.datastax.driver.core.ProtocolVersion import com.datastax.spark.connector.ColumnRef import com.datastax.spark.connector.cql.{StructDef, TableDef} import scala.reflect.runtime.universe._ /** Produces [[ColumnMapForReading]] or [[ColumnMapForWriting]] objects that...
shashwat7/spark-cassandra-connector
spark-cassandra-connector/src/main/scala/com/datastax/spark/connector/mapper/ColumnMapper.scala
Scala
apache-2.0
8,519
package ws.vinta.albedo.utils import org.apache.spark.sql.types._ object SchemaUtils { def equalsIgnoreNullability(left: DataType, right: DataType): Boolean = { (left, right) match { case (ArrayType(leftElementType, _), ArrayType(rightElementType, _)) => equalsIgnoreNullability(leftElementType, ri...
vinta/albedo
src/main/scala/ws/vinta/albedo/utils/SchemaUtils.scala
Scala
mit
1,132
package io.iohk.ethereum.logger import java.util.concurrent.atomic.AtomicInteger import akka.actor.{ActorRef, ActorSystem} import akka.dispatch._ import akka.event.Logging import com.typesafe.config.Config /** * Logs the mailbox size when exceeding the configured limit. It logs at most once per second * when the...
input-output-hk/etc-client
src/main/scala/io/iohk/ethereum/logger/LoggingMailbox.scala
Scala
mit
2,477
package lables.pimpmylib import lables.model._ object LabelPrinter { // Function using view bound syntactical sugar def printLabelSmall[T <% CanBeLabeled](from : T): Unit = { val toPrint = LabelMaker.createLabel(from) println(s"Small Label: $toPrint") } // Function using curried implicit modifier fo...
tupol/scala-patterns-tc-pml
src/main/scala/lables/pimpmylib/LabelPrinter.scala
Scala
apache-2.0
1,088
/*********************************************************************** * 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-jobs/src/test/scala/org/locationtech/geomesa/jobs/JobUtilsTest.scala
Scala
apache-2.0
1,337
/*********************************************************************** * Copyright (c) 2013-2016 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 is ...
nagavallia/geomesa
geomesa-features/geomesa-feature-avro/src/main/scala/org/locationtech/geomesa/features/avro/AvroDataFile.scala
Scala
apache-2.0
2,258
package se.marcuslonnberg.stark.site import org.scalatest.{FreeSpec, Matchers} import se.marcuslonnberg.stark.site.Implicits._ import spray.http.Uri import spray.http.Uri.Path class RelativePathSpec extends FreeSpec with Matchers { implicit class PathString(request: String) { def shouldBeRelativeTo(site: Strin...
FredrikWendt/stark
src/test/scala/se/marcuslonnberg/stark/site/RelativePathSpec.scala
Scala
mit
1,632
/* * 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 ...
Lewuathe/neurallib
src/main/scala/com/lewuathe/dllib/example/XORApp.scala
Scala
mit
2,731
package mesosphere.marathon.api.v1.json import org.junit.Test import org.junit.Assert._ import com.fasterxml.jackson.databind.ObjectMapper import mesosphere.marathon.Protos.Constraint import mesosphere.marathon.api.v2.json.MarathonModule /** * @author Tobi Knaup */ class ConstraintTest { @Test def testDeseria...
MiLk/marathon
src/test/scala/mesosphere/marathon/api/v1/json/ConstraintTest.scala
Scala
apache-2.0
1,729
/** * Copyright 2009 Jorge Ortiz * * 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...
xuwei-k/nscala-time
src/main/scala/com/github/nscala_time/time/RichInt.scala
Scala
apache-2.0
2,003
package streams import common._ /** * This trait represents the layout and building blocks of the game */ trait GameDef { /** * The case class `Pos` encodes positions in the terrain. * * IMPORTANT NOTE * - The `row` coordinate denotes the position on the vertical axis * - The `col` coordinate is...
yurii-khomenko/fpScalaSpec
c2w2streams/src/main/scala/streams/GameDef.scala
Scala
gpl-3.0
4,450
package com.benkolera.slick.pg import scala.slick.jdbc.{PositionedResult,GetResult} trait DecodePgObject[A] extends GetResult[A] { def apply(pr:PositionedResult) = stringDecode( pr.nextString ) def stringDecode(s:String): A } object DecodePgObject extends DecodePgObjects { def apply[A](f:String => A): Dec...
benkolera/scala-slick-extras
src/main/scala/pg/DecodePgObject.scala
Scala
mit
922
package net.revenj.database.postgres.converters import net.revenj.database.postgres.PostgresWriter object NumberConverter { private val NUMBERS = { val arr = new Array[Int](100) for (i <- arr.indices) { val first = ((i / 10) + '0').asInstanceOf[Char] val second = ((i % 10) + '0').asInstanceOf[Ch...
ngs-doo/revenj
scala/revenj-core/src/main/scala/net/revenj/database/postgres/converters/NumberConverter.scala
Scala
bsd-3-clause
5,786
/* * 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 ...
spark0001/spark2.1.1
external/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/OracleIntegrationSuite.scala
Scala
apache-2.0
7,662
package scoverage import org.scalatest.{FreeSpec, Matchers} class LocationTest extends FreeSpec with Matchers { "location function" - { "should correctly process top level types" - { "for classes" in { val compiler = ScoverageCompiler.locationCompiler compiler.compile("package com.test\\n...
gslowikowski/scalac-scoverage-plugin
scalac-scoverage-plugin/src/test/scala/scoverage/LocationTest.scala
Scala
apache-2.0
10,191
/* Copyright (C) 2008-2016 University of Massachusetts Amherst. This file is part of "FACTORIE" (Factor graphs, Imperative, Extensible) http://factorie.cs.umass.edu, http://github.com/factorie Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
Craigacp/factorie
src/main/scala/cc/factorie/app/nlp/ner/StackedChainNer.scala
Scala
apache-2.0
36,237
/* * 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 ...
bravo-zhang/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/ResolvedUuidExpressionsSuite.scala
Scala
apache-2.0
2,757
package org.scalameta.collections trait OverloadHack1 object OverloadHack1 { implicit object Instance extends OverloadHack1 } trait OverloadHack2 object OverloadHack2 { implicit object Instance extends OverloadHack2 } trait OverloadHack3 object OverloadHack3 { implicit object Instance extends OverloadHack3 } trait ...
beni55/scalameta
foundation/src/main/scala/org/scalameta/collections/OverloadHack.scala
Scala
bsd-3-clause
406
import java.io.{BufferedInputStream, File} import java.nio.file.{Files, Path, Paths} import java.time._ import java.util.TimeZone import java.util.concurrent.atomic.AtomicBoolean import burnup._ import cli.CliUtil._ import github.{Issue, IssueEvent, Milestone, GitHubClient} import org.slf4j.LoggerFactory import play.a...
shuwada/github-burnup-chart
src/main/scala/Main.scala
Scala
apache-2.0
8,462
/* * Copyright (c) 2014-2015 by its authors. Some rights reserved. * See the project homepage at: http://www.monifu.org * * 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://...
sergius/monifu
monifu/shared/src/main/scala/monifu/reactive/subjects/PublishSubject.scala
Scala
apache-2.0
1,801
package stormlantern.consul.client import java.net.URL import scala.concurrent.duration._ import scala.concurrent._ import akka.actor._ import akka.util.Timeout import akka.pattern.ask import stormlantern.consul.client.dao._ import stormlantern.consul.client.dao.akka.AkkaHttpConsulClient import stormlantern.consul....
dlouwers/reactive-consul
client/src/main/scala/stormlantern/consul/client/ServiceBroker.scala
Scala
mit
2,749
package io.console.commands import io.console.ConsoleState object Blank extends Command { override val stringRep: String = "blank" override val execute = (state: ConsoleState) => state override val description: String = "" }
akwanashie/constraints-dsl
src/main/scala/io/console/commands/Blank.scala
Scala
mit
233
package scwebapp.servlet.bootstrap import jakarta.servlet.* import scutil.lang.* import scwebapp.* import scwebapp.servlet.extensions.* /** make an object extending this and annotate it with javax.servlet.annotation.WebListener */ trait HttpHandlerServletContextListener extends BootstrapServletContextListener { pr...
ritschwumm/scwebapp
modules/servlet/src/main/scala/scwebapp/servlet/bootstrap/HttpHandlerServletContextListener.scala
Scala
bsd-2-clause
784
package im.actor.server.persist.push import scala.concurrent.ExecutionContext import slick.driver.PostgresDriver.api._ import im.actor.server.models class ApplePushCredentialsTable(tag: Tag) extends Table[models.push.ApplePushCredentials](tag, "apple_push_credentials") { def authId = column[Long]("auth_id", O.Pri...
boneyao/actor-platform
actor-server/actor-persist/src/main/scala/im/actor/server/persist/push/ApplePushCredentials.scala
Scala
mit
1,294
/*§ =========================================================================== KnapScal =========================================================================== Copyright (C) 2015-2017 Gianluca Costa =========================================================================== Licensed under the Apache Li...
giancosta86/KnapScal
src/main/scala/info/gianlucacosta/knapscal/app/MainSceneController.scala
Scala
apache-2.0
4,498
/* * 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...
poplav/incubator-toree
protocol/src/main/scala/org/apache/toree/kernel/protocol/v5/SparkKernelInfo.scala
Scala
apache-2.0
1,819
/* * Copyright (c) 2016. <jason.zou@gmail.com> * * VariableField.scala is part of marc4scala. * * marc4scala 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, ...
jasonzou/marc4scala
src/main/scala/org/marc4scala/VariableField.scala
Scala
gpl-3.0
1,798
import java.io.{File} import scalaxb.compiler.{Config} import scalaxb.compiler.ConfigEntry._ class NullNamespaceTest extends TestBase { val inFile = new File("integration/src/test/resources/nullnamespace.xsd") val config = Config.default.update(PackageNames(Map[Option[String], Option[String]]())). update(Ou...
eed3si9n/scalaxb
integration/src/test/scala/NullNamespaceTest.scala
Scala
mit
606
package io.buoyant.namerd.storage.kubernetes import com.fasterxml.jackson.annotation.JsonProperty import io.buoyant.k8s.{KubeList, ObjectMeta} case class DtabList( @JsonProperty("items") items: Seq[Dtab], kind: Option[String] = None, metadata: Option[ObjectMeta] = None, apiVersion: Option[String] = None ) ext...
denverwilliams/linkerd
namerd/storage/k8s/src/main/scala/io/buoyant/namerd/storage/kubernetes/DtabList.scala
Scala
apache-2.0
340
package com.outr.arango.api.model import io.circe.Json case class GeneralGraphEdgeCreateHttpExamplesRc400(error: Boolean, code: Option[Int] = None, errorMessage: Option[String] = None, ...
outr/arangodb-scala
api/src/main/scala/com/outr/arango/api/model/GeneralGraphEdgeCreateHttpExamplesRc400.scala
Scala
mit
370
/** * 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...
guozhangwang/kafka
core/src/test/scala/unit/kafka/server/MetadataRequestWithForwardingTest.scala
Scala
apache-2.0
5,131
/* * Copyright (c) 2016. Fengguo (Hugo) Wei and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Detailed co...
arguslab/argus-cit-intellij
src/main/scala/org/argus/cit/intellij/jawa/lang/psi/types/api/JawaTypePsiTypeBridge.scala
Scala
epl-1.0
4,119
/* * 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 ...
ArvinDevel/onlineAggregationOnSparkV2
core/src/main/scala/org/apache/spark/scheduler/SparkListenerBus.scala
Scala
apache-2.0
3,056
package kuaixue.scala.book.chapter2 object condition extends App{ val x = 1 def ifTest = if(x > 0) 1 else -1 val s = if(x > 0) 1 else -1 val s1 = if(x > 0) "positive" else -1 def equalsExpression(){ val s = if(x > 0) 1 val s1 = if(x > 0) 1 else () val s2 = if(x > 0) 1 else U...
slieer/scala-tutorials
src/main/scala/kuaixue/scala/book/chapter2/Condition.scala
Scala
apache-2.0
337
/* * Copyright 2012 Pellucid and Zenexity * * 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...
Enalmada/datomisca
integration/src/it/scala/datomisca/DatomicFixture.scala
Scala
apache-2.0
1,943
package agilesites.setup import java.io.File import agilesites.{AgileSitesConstants, Utils} import sbt.Keys._ import sbt._ trait TomcatSettings extends Utils { this: AutoPlugin => lazy val serverStop = taskKey[Unit]("Start Local Sites") lazy val serverStart = taskKey[Unit]("Stop Local Sites") def tomcatOpt...
agilesites/agilesites2-build
src/main/scala/agilesites/setup/TomcatSettings.scala
Scala
mit
5,093
// Copyright 2018 Twitter. 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 ...
lucperkins/heron
heron/api/tests/scala/com/twitter/heron/streamlet/scala/converter/ScalaToJavaConverterTest.scala
Scala
apache-2.0
6,150
/* * Copyright © 2013 by Jörg D. Weisbarth * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License 3 as published by * the Free Software Foundation; * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRA...
joergdw/antconflictbeh
src/sim/app/antDefenseAIs/model/LN_WithFetching.scala
Scala
lgpl-3.0
2,030
import sbt._ import sbt.Keys._ import bintray.Plugin.bintraySettings import ls.Plugin.lsSettings object Publishing { def settings = Seq( licenses in ThisBuild := Seq(("MIT", url(s"https://github.com/softprops/zoey/blob/${version.value}/LICENSE"))), publishArtifact in Test := false, homepage in ThisBuild ...
softprops/zoey
project/Publishing.scala
Scala
mit
1,102
package TAPLcomp2.fullref import scala.util.parsing.combinator.{ImplicitConversions, PackratParsers} import scala.util.parsing.combinator.syntactical.StandardTokenParsers sealed trait Ty case class TyVar(i: String) extends Ty case class TyArr(t1: Ty, t2: Ty) extends Ty case object TyUnit extends Ty case class TyR...
hy-zhang/parser
Scala/Parser/src/TAPLcomp2/fullref/parser.scala
Scala
bsd-3-clause
6,262
package com.example.sample import java.util.logging.Logger import javax.ws.rs.core.MediaType import javax.ws.rs.ext.{ContextResolver, Provider} import javax.ws.rs._ import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.scala.DefaultScalaModule import org.glassfish.jersey.server.Resour...
daneko/appengine-standard-java8-jax-rs-with-scala
gae-taskqueue-sample/worker/src/main/scala/com/example/sample/ApplicationResource.scala
Scala
mit
1,153
package org.sstudio.bulldozer.dsl object Result { private[this] var _code: Int = _ private[this] var _body: String = _ private[this] var _elapsedTime: Long = _ def code: Int = _code def body: String = _body def elapsedTime: Long = _elapsedTime def setCode(code: Int): Unit = { _code = code } ...
avril23/bulldozer
bulldozer/src/main/scala/org/sstudio/bulldozer/dsl/Result.scala
Scala
bsd-3-clause
452
/* * Copyright 2022 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/vat-registration-frontend
test/views/VatRegViewSpec.scala
Scala
apache-2.0
5,188
package com.github.diegopacheco.scalaplayground.typeclasses object NumbersMainApp extends App { trait NumberLike[T] { def plus(x: T, y: T): T def divide(x: T, y: T): T def minus(x: T, y: T): T def multiply(x: T, y: T): T } object NumberLike { implicit object NumberLikeDouble extends NumberL...
diegopacheco/scala-playground
scala-2.12-typeclasses/src/main/scala/com/github/diegopacheco/scalaplayground/typeclasses/NumbersMainApp.scala
Scala
unlicense
1,402
package scala.swing package uitest /** Example application to verify that table row sorting * and column reordering work correctly. */ object Issue47 extends SimpleSwingApplication { lazy val top: Frame = { val data0 = Array[Array[Any]]( Array("Schaeffer" , 1910, 1995), Array("Sun Ra" , 1914, ...
scala/scala-swing
uitest/src/main/scala/scala/swing/uitest/Issue47.scala
Scala
apache-2.0
2,109
package scalaz.stream import java.nio.BufferOverflowException import org.scalacheck._ import Prop._ import scalaz.concurrent.Task import scalaz.stream.Process._ import scalaz.stream.text.{LengthExceeded, lines} object LinesSpec extends Properties("text") { val samples = 0 until 5 flatMap { i => List("\\r\\n", "\...
rossabaker/scalaz-stream
src/test/scala/scalaz/stream/LinesSpec.scala
Scala
mit
2,133
package com.samstarling.prometheusfinagle.helper import io.prometheus.client.Collector.MetricFamilySamples.{Sample => PrometheusSample} import io.prometheus.client.{Collector, CollectorRegistry} import scala.collection.JavaConverters._ case class CollectorRegistryHelper(registry: CollectorRegistry) { // TODO: Mes...
samstarling/finagle-prometheus
src/test/scala/com/samstarling/prometheusfinagle/helper/CollectorRegistryHelper.scala
Scala
mit
1,160
/** * 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...
fintler/kafka
project/Build.scala
Scala
apache-2.0
7,688
package util.db import org.joda.time._ import org.joda.time.format._ import anorm._ /** * Implicit conversions and extractors for Anorm types not supported by default */ object AnormExtension { /* * Allows JodaTime to be used with Anorm. * Credit and reference: http://stackoverflow.com/questions/1138...
PriscH/Foosball
app/util/db/AnormExtension.scala
Scala
gpl-3.0
2,262
/* * Copyright (c) 2014 Paul Bernard * * 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...
pmularien/spectrum-old
financial/src/main/scala/org/quantintel/ql/instruments/bonds/FixedRateBond.scala
Scala
apache-2.0
788
package org.finra.datagenerator.scaffolding.context import org.finra.datagenerator.scaffolding.utils.Logging import scala.collection.JavaConverters._ /** * Created by dkopel on 12/14/16. */ trait GlobalsProvider extends Logging { private var globals: Map[String, Object] = Map.empty[String, Object] def s...
FINRAOS/DataGenerator
rubber-scaffolding/rubber-commons/src/main/scala/org/finra/datagenerator/scaffolding/context/GlobalsProvider.scala
Scala
apache-2.0
590
/* * 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...
VlachJosef/bforms
app/uk/gov/hmrc/bforms/models/Section.scala
Scala
apache-2.0
892
package cpup.mc.oldenMagic.content.testing import net.minecraft.command.{ICommandSender, CommandBase} import cpup.mc.lib.ModLifecycleHandler import cpup.mc.oldenMagic.OldenMagicMod import cpup.mc.oldenMagic.api.oldenLanguage.{EntityMagicData, PassiveSpells} import cpup.mc.oldenMagic.api.oldenLanguage.runeParsing.Spell...
CoderPuppy/oldenmagic-mc
src/main/scala/cpup/mc/oldenMagic/content/testing/ChangeMagicDataCommand.scala
Scala
mit
2,118
package com.twitter.finagle.loadbalancer import com.twitter.app.App import com.twitter.finagle.client.StringClient import com.twitter.finagle.{NoBrokersAvailableException, param} import com.twitter.finagle.stats.{InMemoryStatsReceiver, LoadedStatsReceiver, NullStatsReceiver} import com.twitter.util.Await import org.ju...
yancl/finagle-6.22.0
finagle-core/src/test/scala/com/twitter/finagle/loadbalancer/LoadBalancerFactoryTest.scala
Scala
apache-2.0
3,821
/* * Copyright 2012-2013 Stephane Godbillon (@sgodbillon) and Zenexity * * 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 req...
charleskubicek/ReactiveMongo
driver/src/main/scala/api/api.scala
Scala
apache-2.0
33,517
/* * Copyright 2015 LG CNS. * * 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...
jhshin9/scouter
scouter.server/src/scouter/server/db/counter/DailyCounterData.scala
Scala
apache-2.0
5,197
import java.io.File object TreeRecursiveTraverse { def main(args: Array[String]): Unit = { traverse(".") } def traverse(path: String) = { def output(level: Int, file: File): Unit = { println("\\t" * level + file.getName) } def traverse0(level: Int, file: File): Unit = { output(leve...
rockie-yang/explore-spark
src/main/scala/TreeRecursiveTraverse.scala
Scala
mit
536
import sbt._ import Keys._ object FPInScalaBuild extends Build { val opts = Project.defaultSettings ++ Seq( scalaVersion := "2.11.6", resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/", libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.4" % "test", libraryD...
jstjohn/fpinscala
project/Build.scala
Scala
mit
1,515
/** * 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...
kavink92/kafka-0.8.0-beta1-src
core/src/main/scala/kafka/controller/ReplicaStateMachine.scala
Scala
apache-2.0
16,940
package com.github.mdr.mash.evaluator class PrivateMethodsTest extends AbstractEvaluatorTest { "class A { @private def a = 42 }; A.new.a".shouldThrowAnException "class A { @private def a = 42 }; A.new['a']".shouldThrowAnException "class A { @private def a = 42 }; 'a' A.new".shouldThrowAnException "class A ...
mdr/mash
src/test/scala/com/github/mdr/mash/evaluator/PrivateMethodsTest.scala
Scala
mit
592
/* * 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 ...
markusthoemmes/openwhisk
core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/docker/DockerClient.scala
Scala
apache-2.0
12,262
/* * Copyright 2013-, Björn Westlin (bwestlin at gmail dot com) - github: bwestlin * * 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 * * ...
bwestlin/su-lunch
test/views/TodaysLunchesSpec.scala
Scala
apache-2.0
2,903
/* * 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 ...
dbtsai/spark
core/src/main/scala/org/apache/spark/status/LiveEntity.scala
Scala
apache-2.0
30,092
package st.emily.swayze.data case class FailedParseException(message: String) extends Exception(message)
ErinCall/swayze
src/main/scala/data/Exceptions.scala
Scala
mit
107
/* * 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 ...
matthewfranglen/spark
mllib-local/src/test/scala/org/apache/spark/ml/linalg/BLASSuite.scala
Scala
mit
15,419
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author Matthew Saltz, John Miller, Ayushi Jain * @version 1.3 * @date Thu Jul 25 11:28:31 EDT 2013 * @see LICENSE (MIT style license file). */ package scalation.graphalytics import scala.collection.immutable.{Set => SE...
NBKlepp/fda
scalation_1.3/scalation_modeling/src/main/scala/scalation/graphalytics/DualIso.scala
Scala
mit
8,603
package message /** * Created by dylan on 2/14/16. */ abstract class Msg case class Send(msg: String) extends Msg case class NewMsg(from: String, msg: String) extends Msg case class Info(msg: String) extends Msg case class Connect(username: String) extends Msg case class Broadcast(msg: String) extends Msg ca...
astray1988/reactive-farm
simple-akka-chat/src/main/scala/message/Msg.scala
Scala
mit
354
/* * 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 ...
mahak/spark
core/src/main/scala/org/apache/spark/deploy/rest/RestSubmissionClient.scala
Scala
apache-2.0
18,649
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\ * @ @ * * # # # # (c) 2016 CAB * * # # # # # # ...
AlexCAB/ProbabilisticPlaying
mathact/src/test/scala/mathact/parts/control/infrastructure/WorkbenchControllerTest.scala
Scala
mit
41,818