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
/* date: Dec 7, 2013 BUTTON CARD SET REMAP '%ButtonCardSet' code group is identical to the '%CardSet' code set. Both are children of Notecard and are linked by the sibling address. 'ButtonCardSetRemap' removes the '%ButtonCardSet' group from this sibling link, and attaches it to '%CardSet''s buttonAdd...
hangle/Script
src/ButtonCardSetRemap.scala
Scala
apache-2.0
7,230
package com.wordnik.client.model import com.wordnik.client.model.VariableCategory case class Inline_response_200_23 ( data: List[VariableCategory], success: Boolean )
QuantiModo/QuantiModo-SDK-Scalatra
src/main/scala/com/wordnik/client/model/Inline_response_200_23.scala
Scala
gpl-2.0
174
package troy package cql package object ast { type Identifier = String }
schemasafe/troy
cql-ast/src/main/scala/troy/cql/ast/package.scala
Scala
apache-2.0
76
package name.ryanboder.maestroid import android.graphics.Color import org.scaloid.common._ class MainActivity extends SActivity with TagUtil { lazy val accelerometer = new Accelerometer(this) lazy val recorder = new AccelerometerRecorder() lazy val detector = new GestureDetector(this) lazy val player = new Mu...
ryan-boder/maestroid
src/main/scala/name/ryanboder/maestroid/MainActivity.scala
Scala
gpl-3.0
2,372
package com.twitter.finagle.http.filter import com.twitter.finagle.http.{Fields, Method, Request, Response, Status} import com.twitter.finagle.stats.InMemoryStatsReceiver import com.twitter.finagle.{Status => _, _} import com.twitter.io.Buf import com.twitter.util.{Await, Awaitable, Closable, Duration, Future} import ...
twitter/finagle
finagle-http/src/test/scala/com/twitter/finagle/http/filter/ClientNackFilterTest.scala
Scala
apache-2.0
9,133
package com.avast.metrics.scalaapi.impl import java.util.function.Supplier import com.avast.metrics.api.{Naming, Monitor => JMonitor} import com.avast.metrics.scalaapi._ private[scalaapi] class MonitorImpl(monitor: JMonitor, naming: Naming) extends Monitor { override def named(name: String): Monitor = new Monitor...
avast/metrics
scala-api/src/main/scala/com/avast/metrics/scalaapi/impl/MonitorImpl.scala
Scala
mit
1,535
/* * 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 ...
MLnick/spark
sql/core/src/test/scala/org/apache/spark/sql/streaming/FlatMapGroupsWithStateSuite.scala
Scala
apache-2.0
37,479
package engine import com.typesafe.scalalogging.LazyLogging import engine.Task.{TaskContext, TaskState, TreeNode} object Task { case class TaskContext(engine: Engine, workflow: Workflow, task: Task) object TaskState extends Enumeration { val New, Done, Running = Value } trait TreeNode[T] { private ...
mpod/scala-workflow
backend/src/main/scala/engine/Task.scala
Scala
gpl-3.0
1,673
/* * Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.internal.projection import java.net.URLEncoder import akka.actor.ActorRef import akka.actor.Props import akka.cluster.ddata.DistributedData import akka.actor.Terminated import akka.actor.Actor import akka.actor.A...
rcavalcanti/lagom
projection/core/src/main/scala/com/lightbend/lagom/internal/projection/ProjectionRegistryActor.scala
Scala
apache-2.0
11,502
/* * Copyright (C) 2012 Pavel Fatin <http://pavelfatin.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 your option) any later version. * ...
pavelfatin/toyfs
src/main/scala/com/pavelfatin/fs/manager/action/AbstractAction.scala
Scala
gpl-3.0
4,829
/*********************************************************************** * 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...
boundlessgeo/geomesa
geomesa-filter/src/main/scala/org/locationtech/geomesa/filter/package.scala
Scala
apache-2.0
18,314
package proofpeer.metis import ClauseInstances._ import LiteralInstances._ import proofpeer.metis.util.Fun._ import proofpeer.metis.util._ import scala.language.higherKinds import scala.language.implicitConversions import scalaz._ import Scalaz._ /** A logical kernel for trusted resolution certificates. * * @tpar...
proofpeer/proofpeer-metis
shared/src/main/scala/proofpeer/metis/Kernel.scala
Scala
mit
8,571
package org.nisshiee.crowd4s import org.specs2._, matcher.DataTables import scalaz._, Scalaz._ class AuthorizeSpec extends Specification with DataTables { def is = "Authorize" ^ "checkActive" ...
nisshiee/crowd4s
src/test/scala/functions/AuthorizeSpec.scala
Scala
mit
6,834
/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package play.api.libs.json import scala.annotation.implicitNotFound import scala.collection._ import scala.reflect.ClassTag import com.fasterxml.jackson.databind.JsonNode import com.fasterxml.jackson.databind.node.{ ArrayNode, ObjectNode } imp...
jyotikamboj/container
pf-framework/src/play-json/src/main/scala/play/api/libs/json/Writes.scala
Scala
mit
8,200
package controllers import controllers.GalleryController.getQuery import db.scalikejdbc.rewrite.ImageDbNew.Limit import db.scalikejdbc.{MonumentJdbc, Round, SelectionJdbc, User} import org.intracer.wmua._ import play.api.mvc.{Controller, EssentialAction, Request, Result} import play.api.i18n.Messages.Implicits._ obje...
intracer/wlxjury
app/controllers/LargeViewController.scala
Scala
apache-2.0
6,666
package uk.org.openeyes.jsonschema.core import java.net.URI import org.json4s.JsonAST._ object JsonRef { def unapply(jv: JValue): Option[URI] = jv \\ "$ref" match { case JString(ref) => Some(new URI(ref)) case _ => None } } object DraftV4Schema { def parentSchemaRefs(jv: JValue): Seq[URI] = jv \\...
openeyes/oe-json-schema
core/src/main/scala/Schema.scala
Scala
gpl-3.0
1,908
package sbt import java.io.File import org.specs2._ import mutable.Specification import IO.{createDirectory, delete, touch, withTemporaryDirectory} import org.apache.ivy.util.ChecksumHelper import IfMissing.Fail object ComponentManagerTest extends Specification { val TestID = "manager-test" "Component manager" shou...
harrah/xsbt
ivy/src/test/scala/ComponentManagerTest.scala
Scala
bsd-3-clause
3,338
package app import service._ import util.{UsersAuthenticator, Keys} import util.Implicits._ class DashboardController extends DashboardControllerBase with IssuesService with PullRequestService with RepositoryService with AccountService with UsersAuthenticator trait DashboardControllerBase extends Contr...
Muscipular/gitbucket
src/main/scala/app/DashboardController.scala
Scala
apache-2.0
4,131
package hammock package asynchttpclient import cats._ import cats.implicits._ import cats.data.Kleisli import cats.effect._ import org.asynchttpclient._ import java.util.{concurrent => jc} import scala.util._ import scala.jdk.CollectionConverters._ object AsyncHttpClientInterpreter { def apply[F[_]](implicit F: In...
pepegar/hammock
hammock-asynchttpclient/src/main/scala/hammock/asynchttpclient/AsyncHttpClientInterpreter.scala
Scala
mit
3,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 ...
ueshin/apache-spark
core/src/main/scala/org/apache/spark/deploy/worker/DriverRunner.scala
Scala
apache-2.0
10,323
package scala.tools.nsc package backend.jvm package opt import org.junit.Assert._ import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.JUnit4 import scala.jdk.CollectionConverters._ import scala.collection.immutable.TreeMap import scala.tools.asm.tree.ClassNode import scala.tools.nsc.backend...
scala/scala
test/junit/scala/tools/nsc/backend/jvm/opt/ScalaInlineInfoTest.scala
Scala
apache-2.0
10,777
/* * 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 ...
cloudera/spark
core/src/test/scala/org/apache/spark/rdd/JdbcRDDSuite.scala
Scala
apache-2.0
2,382
import android.Keys._ import sbt._ import sbt.Keys._ object Settings { val common = Def.settings( autoScalaLibrary := false, javacOptions ++= "-source" :: "1.7" :: "-target" :: "1.7" :: Nil, minSdkVersion := "16", organization := "com.liefery.andr...
liefery/android-gallery
project/Settings.scala
Scala
mit
441
/* * 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 ...
nolimitid/spark-hbase
src/main/scala/examples/HBaseInput.scala
Scala
apache-2.0
3,503
/** * License * ======= * * The MIT License (MIT) * * * Copyright (c) 2017 Antoine DOERAENE @sherpal * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restrictio...
sherpal/holomorphic-maps
src/main/scala/plot/RawShape.scala
Scala
mit
1,716
package statla import spire.math.{Fractional, Numeric} package object Util { type CentralMoments[T] = (T, T, T, T) def zero[T : Fractional] = Fractional[T].zero def zeroMoments[T : Fractional] = (Fractional[T].zero, Fractional[T].zero, Fractional[T].zero, Fractional[T].zero) def emptySample[T : Fractional] ...
jvican/statla
src/main/scala/statla/Util.scala
Scala
mit
1,966
package @portlet.java.package.name@ import com.liferay.util.bridges.mvc.MVCPortlet class @portlet.java.class.name@Portlet extends MVCPortlet
rivetlogic/liferay-voice-command
tools/portlet_scala_tmpl/docroot/WEB-INF/src/ScalaPortlet.scala
Scala
gpl-3.0
143
package process import org.scalatest._ class OpticalCharRecognizerTest extends FlatSpec with Matchers { "The OCR parse method" should "return Some string if id is not dividable by 7" in { OpticalCharRecognizer.parse(1, "Test") should be (Some("Test")) } it should "return None if id is dividable by 7" in {...
jvorhauer/akka-workshop
exercises/speedcam/src/test/scala/process/OpticalCharRecognizerTest.scala
Scala
apache-2.0
386
package controllers import play.api.mvc.{Action, Controller} object Application extends Controller { def index = Action { Ok(views.html.index("Hello Play Framework")) } }
tomaszym/izabela
front/app/controllers/Application.scala
Scala
gpl-2.0
182
package com.sksamuel.elastic4s.requests.searches.aggs import com.sksamuel.elastic4s.requests.common.RefreshPolicy import com.sksamuel.elastic4s.requests.searches.DateHistogramInterval import com.sksamuel.elastic4s.requests.searches.aggs.responses.bucket.{DateHistogram, DateHistogramBucket} import com.sksamuel.elastic4...
stringbean/elastic4s
elastic4s-tests/src/test/scala/com/sksamuel/elastic4s/requests/searches/aggs/DateHistogramAggregationHttpTest.scala
Scala
apache-2.0
3,789
/* * This file is part of Kiama. * * Copyright (C) 2011-2015 Anthony M Sloane, Macquarie University. * * Kiama 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 3 of the License, or ...
solomono/kiama
library/src/org/kiama/example/prolog/SemanticAnalyserTests.scala
Scala
gpl-3.0
2,017
/* * Copyright 2006-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...
lzpfmh/framework-2
core/util/src/main/scala/net/liftweb/util/BaseField.scala
Scala
apache-2.0
5,650
package peapod import javax.servlet.http.{HttpServletRequest, HttpServletResponse} import org.eclipse.jetty.server.{Handler, Request, Server} import org.eclipse.jetty.server.handler.{AbstractHandler, ContextHandler, ContextHandlerCollection, ResourceHandler} import scala.concurrent.Future /** * Experimental and m...
teachingmachines/peapod
src/main/scala/peapod/Web.scala
Scala
mit
2,177
package org.dsa.iot import scala.collection.JavaConverters._ import scala.util.{ Failure, Success, Try } import org.dsa.iot.dslink.node.{ Node, NodeBuilder, Permission, Writable } import org.dsa.iot.dslink.node.actions.{ Action, ActionResult, EditorType, Parameter, ResultType } import org.dsa.iot.dslink.node.value.{ V...
IOT-DSA/dslink-scala-kafka
src/main/scala/org/dsa/iot/kafka/package.scala
Scala
apache-2.0
7,761
package info.hargrave.composer.backend.manager import java.io.{InputStream, OutputStream} /** * Defines the idea of a project, something that is open and being worked with by the user. * At the most basic level, a project has a title and can be saved to the disk. */ abstract class Project { /** * Name of...
RomanHargrave/CUEComposer
src/main/scala/info/hargrave/composer/backend/manager/Project.scala
Scala
gpl-3.0
1,036
package sampler.abc import org.scalatest.FreeSpec class WeightedTest extends FreeSpec { "Weighted should" - { "Calculate mean rep scores" in fail("TODO") "Throw exception if weight is negative" in fail("TODO") "Know if it was generated locally" in fail("TODO") } }
tearne/Sampler
sampler-abc/src/test/scala/sampler/abc/WeightedTest.scala
Scala
apache-2.0
280
package controllers import play.api._ import play.api.mvc._ object Application extends Controller { def index = Action { Ok(views.html.retrospective()) } }
marlonpp/retrospective
app/controllers/Application.scala
Scala
mit
167
package abstractions trait MoveSupplier[A, D] { def apply(context: AbstractContext[A, _, _, D]): Move[A, D] }
arie-benichou/go-dot
src/main/scala/abstractions/MoveSupplier.scala
Scala
gpl-3.0
120
package rx.lang.scala import scala.language.higherKinds /** * This package object provides some type class instances for Observable. */ package object scalaz extends ObservableInstances with ObservableTInstances { }
everpeace/rxscalaz
src/main/scala/rx/lang/scala/scalaz/package.scala
Scala
apache-2.0
221
package klughdl.components import spinal.core._ /** * KlugHDL * Created by snipy on 05.12.16. */ class OneLevelComponent extends Component { val io = new Bundle { val a: Bool = in Bool val b: Bool = in Bool val c: Bool = in Bool val d: Bool = in Bool val e: Bool = out Bool } val andG...
SnipyJulmy/MSE_1617_PA
KlugHDL/src/main/scala/klughdl/components/OneLevelComponent.scala
Scala
gpl-2.0
1,183
/* * Copyright © 2016 Schlichtherle IT Services * * 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 * * Unless required by applicable ...
christian-schlichtherle/neuron-di
core-scala/src/test/scala/global/namespace/neuron/di/scala/sample/SimpleGreetingModule.scala
Scala
apache-2.0
1,292
package scalarules.test.io_utils import java.io.File import java.nio.file.Files import io.bazel.rulesscala.io_utils.DeleteRecursively import org.scalatest._ import flatspec._ import matchers.should._ class DeleteDirectoryTest extends AnyFlatSpec with Matchers { "DeleteDirectory.run" should "remove nested folders"...
bazelbuild/rules_scala
test/src/main/scala/scalarules/test/io_utils/DeleteDirectoryTest.scala
Scala
apache-2.0
801
package scala.meta package internal package semantic import org.scalameta.adt import org.scalameta.adt._ import org.scalameta.invariants._ import org.scalameta.show._ import scala.meta.internal.prettyprinters._ @monadicRoot trait Typing object Typing { @noneLeaf object Zero extends Typing @noneLeaf object Recursi...
beni55/scalameta
scalameta/trees/src/main/scala/scala/meta/internal/semantic/Typing.scala
Scala
bsd-3-clause
1,884
/*********************************************************************** * 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-accumulo/geomesa-accumulo-datastore/src/test/scala/org/locationtech/geomesa/accumulo/data/AccumuloDataStoreAttributeVisibilityTest.scala
Scala
apache-2.0
4,305
import language.higherKinds object Test { trait Monad[M[_]] { def foo[A](ma: M[A])(f: M[A] => Any) = f(ma) } implicit def function1Covariant[T]: Monad[({type l[a] = (T => a)})#l] = new Monad[({type l[a] = (T => a)})#l] {} def main(args: Array[String]) { // inference of T = (=> Any) here was outlaw...
yusuke2255/dotty
tests/pending/run/t7899-regression.scala
Scala
bsd-3-clause
851
/* * Copyright (c) 2012 Miles Sabin * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
mpilquist/shapeless
core/src/test/scala/shapeless/lenses.scala
Scala
apache-2.0
6,301
package views.html package site import controllers.routes import scala.util.chaining._ import lila.api.Context import lila.app.templating.Environment._ import lila.app.ui.ScalatagsTemplate._ object contact { import trans.contact._ import views.html.base.navTree._ private lazy val contactEmailBase64 = lila.co...
luanlv/lila
app/views/site/contact.scala
Scala
mit
11,392
package io.flow.reference import io.flow.reference.v0.models.Region object Regions extends Validation[Region] { override val cache: Map[String, Region] = Map( data.Regions.all.map { r => (r.id.toLowerCase -> r) }: _* ) override def singular = "region" override def plural = "regions" overri...
flowcommerce/lib-reference-scala
src/main/scala/io/flow/reference/Regions.scala
Scala
mit
897
package com.xored.scalajs.react.examples.timer import com.xored.scalajs.react._ import org.scalajs.dom._ object Timer extends TypedReactSpec { case class Props() case class State(secondsElapsed: Int, interval: Option[Int]) def getInitialState(self: This) = State(secondsElapsed = 0, interval = None) implici...
Aste88/scala-js-react
scalajs-react-examples/src/main/scala/com/xored/scalajs/react/examples/timer/Timer.scala
Scala
apache-2.0
861
package jmh import org.openjdk.jmh.annotations._ import offheap._ @State(Scope.Thread) class PoolContention { implicit val props = Region.Props() @Benchmark def contention = { val r = Region.open r.close } }
ignasi35/scala-offheap
jmh/src/main/scala/Pool.scala
Scala
bsd-3-clause
227
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package play.api.i18n import play.api.mvc._ /** * Brings convenient implicit conversions from [[play.api.mvc.RequestHeader]] to [[Messages]]. * * Example: * {{{ * import play.api.i18n.Messages * class MyController(val messagesApi: MessagesA...
mkurz/playframework
core/play/src/main/scala/play/api/i18n/I18nSupport.scala
Scala
apache-2.0
3,741
/* * 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...
adarro/ddo-calc
subprojects/common/ddo-core/src/main/scala/io/truthencode/ddo/model/feats/DruidSpontaneousCasting.scala
Scala
apache-2.0
1,949
package com.arcusys.learn.liferay.update.version300 import java.sql.Connection import com.arcusys.learn.liferay.update.version300.migrations.scorm.ActivityDataMapMigration import com.arcusys.valamis.persistence.common.SlickProfile import com.arcusys.valamis.persistence.impl.scorm.schema.ActivityDataMapTableComponent ...
igor-borisov/valamis
learn-portlet/src/test/scala/com/arcusys/learn/liferay/update/version300/ActivityDataMapMigrationTest.scala
Scala
gpl-3.0
3,318
package lensimpl.bench.std import lensimpl.bench.{Nested0Input, Util} import org.openjdk.jmh.annotations._ @State(Scope.Benchmark) class LensBench { @Benchmark def lensSTDGet0(in: Nested0Input) = in.n0.i @Benchmark def lensSTDGet3(in: Nested0Input) = in.n0.n.n.n.i @Benchmark def lensSTDGet6(in: Nested0Input) =...
julien-truffaut/LensImpl
bench/src/main/scala/lensimpl/bench/std/LensBench.scala
Scala
mit
2,028
/* * 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 ...
shaoxuan-wang/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/plan/rules/physical/batch/BatchExecCorrelateRule.scala
Scala
apache-2.0
3,273
package p1 object Cafe { def coalesce(charges: Seq[Charge]): Seq[Charge] = charges.groupBy(_.cc).values.map(_.reduce(_ combine _)).toSeq } case class Charge(cc:CreditCard, amount:Double) { def combine(other:Charge): Charge = if(cc == other.cc) { copy(amount = amount + other.amount) } else { th...
tarata/FunctionalProgramminginScala
src/main/scala/p1/Cafe.scala
Scala
mit
872
/** * Licensed to Big Data Genomics (BDG) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The BDG licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
bigdatagenomics/qc-metrics
quinine-core/src/main/scala/org/bdgenomics/quinine/metrics/rna/RNASeqReadCounts.scala
Scala
apache-2.0
4,026
/* * 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 ...
mkolod/incubator-spark
core/src/main/scala/org/apache/spark/ui/UIUtils.scala
Scala
apache-2.0
5,288
package mesosphere.marathon package core.task.tracker import akka.actor.ActorRef import akka.stream.Materializer import mesosphere.marathon.core.base.Clock import mesosphere.marathon.core.instance.update.{ InstanceChangeHandler, InstanceUpdateOpResolver } import mesosphere.marathon.core.leadership.LeadershipModule imp...
natemurthy/marathon
src/main/scala/mesosphere/marathon/core/task/tracker/InstanceTrackerModule.scala
Scala
apache-2.0
2,649
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package detailedtopics.configuration.securityheaders //#filters import javax.inject.Inject import play.api.http.DefaultHttpFilters import play.filters.headers.SecurityHeadersFilter import play.api.mvc.BaseController import play.api.mvc.ControllerComp...
benmccann/playframework
documentation/manual/working/commonGuide/filters/code/SecurityHeaders.scala
Scala
apache-2.0
795
package abeel.genometools.tdf import net.sf.samtools.SAMFileReader import java.io.PrintWriter import java.io.File import abeel.genometools.Main import java.time.LocalDateTime import atk.compbio.DNAHash import net.sf.samtools.SAMFileReader.ValidationStringency import atk.util.TimeInterval import scala.collection.JavaCo...
AbeelLab/genometools
genomeview/genomeview/genometools/TDF2GCbias.scala
Scala
gpl-3.0
3,613
package com.twitter.inject.server.tests import com.google.inject.AbstractModule import com.twitter.finagle.http.Status import com.twitter.inject.server.{EmbeddedTwitterServer, Ports, TwitterServer} import com.twitter.inject.{Test, TwitterModule} import com.twitter.server.Lifecycle.Warmup import com.twitter.server.{Twi...
kaushik94/finatra
inject/inject-server/src/test/scala/com/twitter/inject/server/tests/StartupIntegrationTest.scala
Scala
apache-2.0
4,921
package filodb.standalone import scala.concurrent.duration._ import scala.util.control.NonFatal import akka.actor.ActorRef import akka.cluster.Cluster import com.typesafe.scalalogging.StrictLogging import filodb.akkabootstrapper.AkkaBootstrapper import filodb.coordinator._ import filodb.coordinator.client.LocalClien...
tuplejump/FiloDB
standalone/src/main/scala/filodb.standalone/FiloServer.scala
Scala
apache-2.0
3,344
package strd.util import java.util import com.escalatesoft.subcut.inject.{BindingModule, MutableBindingModule} import com.twitter.ostrich.admin.{Service, ServiceTracker} import com.twitter.ostrich.stats.Stats import org.slf4j.LoggerFactory import strd.trace.PoolContext import sun.misc.VM import scala.collection.muta...
onerinvestments/strd
strd-commons/src/main/scala/strd/util/ServerStarter.scala
Scala
apache-2.0
5,395
package org.openapitools.models import io.circe._ import io.finch.circe._ import io.circe.generic.semiauto._ import io.circe.java8.time._ import org.openapitools._ import org.openapitools.models.ExtensionClassContainerImpl1links import org.openapitools.models.ExtensionClassContainerImpl1map /** * * @param Undersco...
cliffano/swaggy-jenkins
clients/scala-finch/generated/src/main/scala/org/openapitools/models/ExtensionClassContainerImpl1.scala
Scala
mit
913
package cwl import cats.data.NonEmptyList import eu.timepit.refined._ import cats.syntax.either._ import shapeless.{:+:, CNil, Witness} import shapeless.syntax.singleton._ import cwl.LinkMergeMethod.LinkMergeMethod import cwl.WorkflowStepInput.InputSource import common.validation.ErrorOr.ErrorOr import wom.types.WomTy...
ohsu-comp-bio/cromwell
cwl/src/main/scala/cwl/model.scala
Scala
bsd-3-clause
9,610
package com.sksamuel.scoverage.samples import org.scalatest.{MustMatchers, FunSuite} import scala.concurrent.Await import scala.concurrent.duration._ /** @author Stephen Samuel */ class FuturesTest extends FunSuite with MustMatchers { lazy val futures = new Futures val timeout = 10.seconds import scala.concur...
scoverage/sbt-scoverage-samples
src/test/scala/com/sksamuel/scoverage/samples/FuturesTest.scala
Scala
apache-2.0
642
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2007-2010, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
cran/rkafkajars
java/scala/reflect/generic/ByteCodecs.scala
Scala
apache-2.0
5,960
package org.jetbrains.plugins.scala package codeInspection package packageNameInspection import com.intellij.codeInspection._ import com.intellij.openapi.roots.{JavaProjectRootsUtil, ProjectRootManager} import com.intellij.openapi.util.TextRange import com.intellij.openapi.util.io.FileUtil import com.intellij.openapi....
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/codeInspection/packageNameInspection/ScalaPackageNameInspection.scala
Scala
apache-2.0
5,888
/* * Copyright 2001-2014 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...
cheeseng/scalatest
scalatest/src/main/scala/org/scalatest/AsyncFreeSpec.scala
Scala
apache-2.0
1,182
/* * 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...
jeppenejsum/liftweb
framework/lift-persistence/lift-record/src/main/scala/net/liftweb/record/field/BinaryField.scala
Scala
apache-2.0
2,264
/** * Copyright (C) 2016 Nicola Justus <nicola.justus@mni.thm.de> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package de.thm.move.controllers impo...
THM-MoTE/MoVE
src/main/scala/de/thm/move/controllers/ColorToolbarCtrl.scala
Scala
mpl-2.0
5,135
/* * 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 ...
manuzhang/incubator-gearpump
experiments/akkastream/src/main/scala/org/apache/gearpump/akkastream/util/MaterializedValueOps.scala
Scala
apache-2.0
1,752
package mesosphere.marathon package core.instance import com.fasterxml.uuid.{EthernetAddress, Generators} import mesosphere.marathon.api.v2.json.Formats._ import mesosphere.marathon.state.{PathId, PersistentVolume, VolumeMount} import play.api.libs.functional.syntax._ import play.api.libs.json._ case class LocalVolum...
gsantovena/marathon
src/main/scala/mesosphere/marathon/core/instance/LocalVolume.scala
Scala
apache-2.0
1,942
/******************************************************************************* Copyright (c) 2013, S-Core. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. *********************************************************************...
darkrsw/safe
src/main/scala/kr/ac/kaist/jsaf/analysis/typing/models/Tizen/TIZENWebAPIError.scala
Scala
bsd-3-clause
2,202
package part2 import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers class Exercise8bVecCaseClassSpec extends AnyFlatSpec with Matchers { // val vec1 = Vec(3, 4) // val vec2 = Vec(5, 12) "accessors" should "return fields from the Vec" in { pending // vec1.x should equal...
underscoreio/essential-scala-code
src/test/scala/part2/Exercise8bVecCaseClassSpec.scala
Scala
apache-2.0
1,179
package models import org.joda.time.DateTime import java.sql.Connection import java.time.Instant case class CreateNewsCategory( categoryName: String, iconUrl: String ) ( implicit newsCategoryRepo: NewsCategoryRepo ) { def save()(implicit conn: Connection): NewsCategory = newsCategoryRepo.createNew( catego...
ruimo/store2
app/models/CreateNewsCategory.scala
Scala
apache-2.0
488
/* * ____ ____ _____ ____ ___ ____ * | _ \\ | _ \\ | ____| / ___| / _/ / ___| Precog (R) * | |_) | | |_) | | _| | | | | /| | | _ Advanced Analytics Engine for NoSQL Data * | __/ | _ < | |___ | |___ |/ _| | | |_| | Copyright (C) 2010 - 2013 SlamData, In...
precog/platform
performance/src/test/scala/com/precog/performance/YggdrasilPerformanceSpec.scala
Scala
agpl-3.0
15,235
package com.tritondigital.consul.http.client import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future class ConsulClient(listNodes: (String, String, Int) => Future[Seq[Node]]) { private var nodeSelector = new RoundRobinSelector[Node] def resolve(service: String, host: String, por...
tritondigital/ConsulHttpClient
src/main/scala/com/tritondigital/consul/http/client/ConsulClient.scala
Scala
mit
881
/*********************************************************************** * 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-tools/src/main/scala/org/locationtech/geomesa/tools/status/KeywordsCommand.scala
Scala
apache-2.0
2,805
package plumitive object Document { case class Id(unId: String) extends AnyVal case class Title(unTitle: String) extends AnyVal case class Tag(unTag: String) extends AnyVal case class Date(month: Option[Month], year: Int) case class Sender(unSender: String) extends AnyVal case class Recipient(unRecipient: ...
ostapneko/plumitive
src/main/scala/plumitive/Document.scala
Scala
mit
2,991
package water.api.dsl import water.fvec.Chunk import water.MRTask2 abstract class SMRTask[T <: SMRTask[T]] extends MRTask2[T] { def iterator(chunks:Array[Chunk]) : Iterator[Row] = new RowIterator(chunks) private class RowIterator (private val chunks:Array[Chunk]) extends Iterator[Row] { private var rowNum: I...
janezhango/BigDataMachineLearning
h2o-scala/src/main/scala/water/api/dsl/SMRTask.scala
Scala
apache-2.0
803
package leibniz import leibniz.internal.Unsafe import leibniz.variance.Constant /** * In constructive mathematics, an apartness relation is a constructive * form of inequality, and is often taken to be more basic than equality. * It is often written as # to distinguish from the negation of equality * (the den...
alexknvl/leibniz
src/main/scala/leibniz/Apart.scala
Scala
mit
2,712
// Copyright: 2010 - 2017 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.intg import scala.concurrent.duration._ import org.ensime.api import org.ensime.api.{ BasicTypeInfo => _, EnsimeFile => _, _ } import org.ensime.core._ import org.ensime....
VlachJosef/ensime-server
core/src/it/scala/org/ensime/intg/BasicWorkflow.scala
Scala
gpl-3.0
17,824
package com.roundeights.foldout import java.net.URLEncoder import java.net.URL /** * UrlBuilder Companion */ private[foldout] object UrlBuilder { /** Generates a query string from a list of tuples */ def toQueryString ( pairs: List[(_, _)] ): String = { pairs.map( (pair) => "%s=%s".format( ...
Nycto/FoldOut
src/main/scala/FoldOut/UrlBuilder.scala
Scala
mit
2,327
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
andrewor14/iolap
mllib/src/test/scala/org/apache/spark/mllib/clustering/GaussianMixtureSuite.scala
Scala
apache-2.0
6,055
package lila.study import akka.actor._ import akka.pattern.ask import lila.hub.actorApi.HasUserId import lila.notify.InvitedToStudy.InvitedBy import lila.notify.{ InvitedToStudy, NotifyApi, Notification } import lila.relation.RelationApi import lila.user.{ User, UserRepo } import makeTimeout.short import org.joda.tim...
clarkerubber/lila
modules/study/src/main/StudyNotifier.scala
Scala
agpl-3.0
1,376
package controllers import java.util.concurrent.TimeUnit import org.specs2.mutable._ import play.api.libs.json.Json import play.api.test._ import play.api.test.Helpers._ import scala.concurrent.Await import scala.concurrent.duration.FiniteDuration class GroupIT extends Specification { val timeout: FiniteDuration...
HiP-App/HiPBackend
test/controllers/GroupIT.scala
Scala
apache-2.0
1,265
/* * 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 ...
michalsenkyr/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/MicroBatchWritSupport.scala
Scala
apache-2.0
2,164
/* * Copyright 2011-2014 Chris de Vreeze * * 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...
EBPI/yaidom
src/test/scala/nl/ebpi/yaidom/queryapitests/dom/ScopedElemLikeQueryTest.scala
Scala
apache-2.0
2,915
package moe.lymia.princess import java.nio.file.{Path, Paths} object NativeImageData { private val nativeTypes = Seq( "moe.lymia.princess.native.NativeException", ) private val windowsTypes = Seq( "org.eclipse.swt.internal.ole.win32.GUID", "org.eclipse.swt.internal.win32.ACCEL", "org.eclipse.swt...
Lymia/PrincessEdit
modules/princess-edit/src/main/scala/moe/lymia/princess/NativeImageData.scala
Scala
mit
10,410
package pl.newicom.dddd.process import akka.actor.{ActorRef, Props} import pl.newicom.dddd.actor.CreationSupport object ReceptorSupport { /** * Responsible of creating [[Receptor]] using provided [[ReceptorConfig]] */ type ReceptorFactory = (ReceptorConfig) => Receptor def registerReceptor(receptorConfi...
ahjohannessen/akka-ddd
akka-ddd-core/src/main/scala/pl/newicom/dddd/process/ReceptorSupport.scala
Scala
mit
588
/* * Copyright 2013 TeamNexus * * TeamNexus Licenses this file to you under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://opensource.org/licenses/mit-license.php * * Unless required by applicable law ...
crvidya/nexus-scala
src/main/scala/com/nexus/errorhandling/ErrorReportCategoryEntry.scala
Scala
mit
1,017
package net.fluxo.blue.downloader import net.fluxo.blue.Processes import java.io.File import org.apache.log4j.Level import org.apache.commons.exec.{ExecuteWatchdog, DefaultExecuteResultHandler, CommandLine, DefaultExecutor} /** * User: Ronald Kurniawan (viper) * Date: 30/12/13. */ class DownloadProcess(downloadObj...
fluxodesign/FluxoBlue
src/main/scala/net/fluxo/blue/downloader/DownloadProcess.scala
Scala
lgpl-3.0
3,745
package com.sksamuel.elastic4s import org.elasticsearch.action.index.{IndexRequestBuilder, IndexResponse} import org.elasticsearch.action.percolate.{PercolateRequestBuilder, PercolateResponse} import org.elasticsearch.client.Client import org.elasticsearch.common.xcontent.{XContentHelper, XContentBuilder, XContentFact...
alexander-svendsen/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/PercolateDsl.scala
Scala
apache-2.0
5,622
package io.vamp.common.akka import akka.actor.ActorSystem trait ActorSystemProvider { implicit def actorSystem: ActorSystem }
magneticio/vamp
common/src/main/scala/io/vamp/common/akka/ActorSystemProvider.scala
Scala
apache-2.0
130
package quizleague.web.model import quizleague.web.util.rx.RefObservable import scalajs.js import scala.scalajs.js.annotation._ class Team ( val id:String, val name:String, val shortName:String, val venue:RefObservable[Venue], val text:RefObservable[Text], val users:js.Array[RefObservable[User...
gumdrop/quizleague-maintain
js/src/main/scala/quizleague/web/model/Team.scala
Scala
mit
649
package io.swagger.client.api import io.swagger.client.core._ import io.swagger.client.core.CollectionFormats._ import io.swagger.client.core.ApiKeyLocations._ object OauthApi { /** * Client provides authorization token obtained from /api/oauth2/authorize to this endpoint and receives an access token. Access to...
QuantiModo/QuantiModo-SDK-Akka-Scala
src/main/scala/io/swagger/client/api/OauthApi.scala
Scala
gpl-2.0
4,170
/* * Copyright (c) 2013-2015 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 available at * http://www.opensource.org/licenses/apache2.0.php. ...
drackaer/geomesa
geomesa-compute/src/main/scala/org/locationtech/geomesa/compute/spark/sql/GeoMesaDataContext.scala
Scala
apache-2.0
3,924
/* * 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 ...
zuotingbing/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/TimestampFormatter.scala
Scala
apache-2.0
10,048