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
/** * Swaggy Jenkins * Jenkins API clients generated from Swagger / Open API specification * * The version of the OpenAPI document: 1.1.2-pre.0 * Contact: [email protected] * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not ed...
cliffano/swaggy-jenkins
clients/scala-akka/generated/src/main/scala/org/openapitools/client/model/GithubOrganizationlinks.scala
Scala
mit
588
package io.netflow import io.netty.handler.logging.LoggingHandler import io.wasted.util._ object Node extends App with Logger { def start() { // OS Checking val os = System.getProperty("os.name").toLowerCase if (!(os.contains("nix") || os.contains("nux") || os.contains("bsd") || os.contains("mac") || os...
ayscb/netflow
netflow1/netflow-master/src/main/scala/io/netflow/Node.scala
Scala
apache-2.0
835
package org.jetbrains.plugins.scala package codeInsight package template import com.intellij.codeInsight.template.{ExpressionContext, Result} import com.intellij.psi.PsiDocumentManager import com.intellij.util.IncorrectOperationException import org.jetbrains.plugins.scala.lang.completion.lookups.ScalaLookupItem import...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/codeInsight/template/macros/package.scala
Scala
apache-2.0
2,297
/** * 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...
lindong28/kafka
core/src/main/scala/kafka/admin/ReassignPartitionsCommand.scala
Scala
apache-2.0
67,974
package de.htwg.zeta.common.format.project.gdsl.shape.geoModel import de.htwg.zeta.common.models.project.gdsl.shape.geomodel.Position import de.htwg.zeta.common.models.project.gdsl.shape.geomodel.Rectangle import de.htwg.zeta.common.models.project.gdsl.shape.geomodel.Size import de.htwg.zeta.common.models.project.gdsl...
Zeta-Project/zeta
api/common/src/test/scala/de/htwg/zeta/common/format/project/gdsl/shape/geoModel/RectangleFormatTest.scala
Scala
bsd-2-clause
2,602
package jmh import org.openjdk.jmh.annotations._ import scala.offheap._ @State(Scope.Thread) class PoolContention { implicit val props = Region.Props(Pool()) @Benchmark def contention = { val r = Region.open r.close } }
adamwy/scala-offheap
jmh/src/main/scala/Pool.scala
Scala
bsd-3-clause
239
package io.findify.s3mock.response /** * Created by shutty on 3/13/17. */ case class DeleteObjectsResponse(deleted: Seq[String], error: Seq[String]) { def toXML = { <DeleteResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> { deleted.map(d => <Deleted><Key>{d}</Key></Deleted>) } { if (error...
findify/s3mock
src/main/scala/io/findify/s3mock/response/DeleteObjectsResponse.scala
Scala
mit
537
package com.sksamuel.elastic4s.searches.aggs case class NestedAggregationDefinition(name: String, path: String, subaggs: Seq[AbstractAggregation] = Nil, metadata: Map[String, AnyRef] = Map.empty) exte...
aroundus-inc/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/searches/aggs/NestedAggregationDefinition.scala
Scala
apache-2.0
573
package org.aprsdroid.app import _root_.android.content.res.Configuration import _root_.android.view.{Menu, MenuItem} class StationHelper(title_id : Int) extends LoadingListActivity { lazy val targetcall = getIntent().getDataString() override def onResume() = { super.onResume() setLongTitle(title_id, targetcal...
ge0rg/aprsdroid
src/StationHelper.scala
Scala
gpl-2.0
704
package io.github.hamsters import scala.annotation.implicitNotFound import scala.concurrent.{ExecutionContext, Future} @implicitNotFound("""Cannot create monad instance for type ${Box}. If you are combining Future with another monad you might pass an (implicit ec: ExecutionContext) parameter to your method or...
dgouyette/hamsters
shared/src/main/scala/io/github/hamsters/Monad.scala
Scala
apache-2.0
1,172
package sangria.util import scala.collection.concurrent.TrieMap class TrieMapCache[Key, Value] extends Cache[Key, Value] { private val cache = TrieMap[Key, Value]() def size = cache.size def contains(key: Key) = cache.contains(key) def apply(key: Key) = cache(key) def get(key: Key) = cache.get(key) def ...
OlegIlyenko/sangria
modules/core/src/main/scala/sangria/util/TrieMapCache.scala
Scala
apache-2.0
1,426
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
chuckchen/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/util/SQLOpenHashSet.scala
Scala
apache-2.0
2,343
package jp.ac.nagoya_u.dsmoq.sdk.request.json private[request] case class SetMemberRoleJson(role: Int) extends Jsonable
nkawa/dsmoq
sdk/src/main/java/jp/ac/nagoya_u/dsmoq/sdk/request/json/SetMemberRoleJson.scala
Scala
apache-2.0
121
package com.twitter.querulous.database import com.twitter.querulous.{FutureTimeout, TimeoutException} import java.sql.{Connection, SQLException} import concurrent.duration.Duration class SqlDatabaseTimeoutException(msg: String, val timeout: Duration) extends SQLException(msg) class TimingOutDatabaseFactory( val d...
kievbs/querulous210
src/main/scala/com/twitter/querulous/database/TimingOutDatabase.scala
Scala
apache-2.0
1,580
package mesosphere.marathon package core.task.state import mesosphere.UnitTest import mesosphere.marathon.core.pod.{ BridgeNetwork, ContainerNetwork } import mesosphere.marathon.state.Container.{ Docker, Mesos, PortMapping } import mesosphere.marathon.state._ class NetworkInfoTest extends UnitTest { val f = new Fix...
guenter/marathon
src/test/scala/mesosphere/marathon/core/task/state/NetworkInfoTest.scala
Scala
apache-2.0
6,812
/* * Copyright 2016 The BigDL Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
wzhongyuan/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/nn/CMulSpec.scala
Scala
apache-2.0
3,090
/* * Copyright 2010-2011 Vilius Normantas <[email protected]> * * This file is part of Crossbow library. * * Crossbow 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 ...
ViliusN/Crossbow
crossbow-core/src/lt/norma/crossbow/indicators/HistoryLast.scala
Scala
gpl-3.0
1,014
package redmine4s.api.resource import play.api.libs.json._ import redmine4s.api.model.User /** * Users * http://www.redmine.org/projects/redmine/wiki/Rest_Users */ trait UserResource extends BaseResource { private def applyRedmineToUser: PartialFunction[User, User] = { case p: User => p.copy(redmine = red...
tomingtoming/redmine4s
src/main/scala/redmine4s/api/resource/UserResource.scala
Scala
apache-2.0
2,476
package io.bartholomews.spotify4s.core.entities // https://developer.spotify.com/documentation/web-api/reference-beta/#object-externalidobject sealed trait ExternalIds { def value: String } // https://en.wikipedia.org/wiki/International_Standard_Recording_Code case class ISRC(value: String) extends ExternalIds // ...
bartholomews/spotify-scala-client
modules/core/src/main/scala/io/bartholomews/spotify4s/core/entities/ExternalIds.scala
Scala
mit
536
package org.jetbrains.sbt.project.template.activator import java.io._ import com.intellij.openapi.progress.ProgressIndicator import com.intellij.openapi.util.io.FileUtil import com.intellij.util.io.HttpRequests import com.intellij.util.net.NetUtils /** * User: Dmitry.Naydanov * Date: 30.01.15. */ object Activator...
triggerNZ/intellij-scala
src/org/jetbrains/sbt/project/template/activator/ActivatorDownloadUtil.scala
Scala
apache-2.0
2,740
/* * Copyright 2016-2017 original author or authors * * 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...
uts-cic/tap
src/main/scala/tap/analysis/Lexicons.scala
Scala
apache-2.0
1,646
package com.ponkotuy.data import com.ponkotuy.data.master.MasterRemodel import com.ponkotuy.tool.PostQueryParser import org.scalatest.FunSuite import org.json4s.native.JsonMethods._ /** * * @author ponkotuy * Date: 15/02/05. */ class MasterRemodelSuite extends FunSuite { test("normal pattern") { val jsonVal...
ttdoda/MyFleetGirls
library/src/test/scala/com/ponkotuy/data/MasterRemodelSuite.scala
Scala
mit
882
/* * Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.javadsl.persistence.cassandra import java.net.URI import scala.concurrent.Future import akka.actor.ActorSystem import com.lightbend.lagom.internal.javadsl.persistence.cassandra._ import com.lightbend.lagom.intern...
rstento/lagom
persistence-cassandra/javadsl/src/main/scala/com/lightbend/lagom/javadsl/persistence/cassandra/CassandraPersistenceModule.scala
Scala
apache-2.0
2,126
package com.blackboxsociety.http.routes import com.blackboxsociety.http._ case class PathRoute(path: String) extends HttpRouteRule { def route(request: HttpRequest): Option[HttpRequest] = { if(request.resource.path == path) Some(request) else None } }
blackboxsociety/blackbox-http
src/main/scala/com/blackboxsociety/http/routes/PathRoute.scala
Scala
mit
279
package im.actor.server.office import java.util.concurrent.TimeUnit import akka.actor.{ ActorLogging, Status } import akka.contrib.pattern.ShardRegion.Passivate import akka.pattern.pipe import akka.persistence.PersistentActor import org.joda.time.DateTime import scala.collection.immutable import scala.concurrent.Fut...
x303597316/actor-platform
actor-server/actor-core/src/main/scala/im/actor/server/office/Processor.scala
Scala
mit
4,962
package net.sansa_stack.inference.data /** * @author Lorenz Buehmann */ trait TripleOps[Rdf <: RDF] { /** * @return the subject */ def s: Rdf#Node /** * @return the predicate */ def p: Rdf#URI /** * @return the object */ def o: Rdf#Node }
SANSA-Stack/SANSA-RDF
sansa-inference/sansa-inference-common/src/main/scala/net/sansa_stack/inference/data/TripleOps.scala
Scala
apache-2.0
282
package scaladex.core.util case class Secret(private val value: String) extends AnyVal { def decode: String = value override def toString: String = "*****" }
scalacenter/scaladex
modules/core/shared/src/main/scala/scaladex/core/util/Secret.scala
Scala
bsd-3-clause
164
package im.mange.backdoor import im.mange.backdoor.server.kryo.Cryopreservation import im.mange.backdoor.server.{BackdoorMessageHandler, JsonRequestHandler} import net.liftweb.common.Box import net.liftweb.http.rest.RestHelper import net.liftweb.http.{PostRequest, Req, _} import net.liftweb.json._ object BackdoorServ...
alltonp/backdoor-liftweb
src/main/scala/im/mange/backdoor/BackdoorServer.scala
Scala
apache-2.0
1,108
package models.dao.anorm import anorm._ import anorm.SqlParser._ import play.api.db.DB import play.api.Play.current import models.dao.{Category, CategoryDAO} object AnormCategoryDAO extends CategoryDAO { val category = { int("id") ~ str("display_name") ~ str("url_name") map { case id~displayName~urlName =...
aspectcg15/play-app
app/models/dao/anorm/AnormCategoryDAO.scala
Scala
gpl-3.0
1,137
/* * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/play-filters
src/main/scala/uk/gov/hmrc/play/filters/Support.scala
Scala
apache-2.0
978
/* * Copyright 2016 The BigDL Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
intel-analytics/BigDL
scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/feature/common/TensorToSample.scala
Scala
apache-2.0
1,296
/* * 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 ...
lvdongr/spark
mllib/src/test/scala/org/apache/spark/ml/util/MLTestSuite.scala
Scala
apache-2.0
2,044
//package io.eels.component.parquet // //import java.nio.file.Paths // //import io.eels.{SinkParser, SourceParser} //import org.apache.hadoop.conf.Configuration //import org.apache.hadoop.fs.{FileSystem, Path} //import org.apache.hadoop.hive.conf.HiveConf // //object ParquetSourceParser extends SourceParser { // val r...
eel-lib/eel
eel-core/src/main/scala/io/eels/component/parquet/util/parser.scala
Scala
mit
1,628
package redis package algebra import scalaz.{Free, Functor, Inject, InjectFunctions, NonEmptyList} import data.Status sealed abstract class HashAlgebra[A] final case class Hdel[A](key: ByteString, fields: NonEmptyList[ByteString], h: Long => A) extends HashAlgebra[A] final case class Hexists[A](key: ByteString, fi...
ethul/redis-algebra
src/main/scala/redis/algebra/hash.scala
Scala
mit
5,352
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
camunda/feel-scala
src/main/scala/org/camunda/feel/valuemapper/JavaCustomValueMapper.scala
Scala
apache-2.0
2,810
package com.socrata.pg.store import scala.language.reflectiveCalls class CurrentVersionTest extends PGSecondaryTestBase with PGSecondaryUniverseTestBase with PGStoreTestBase { import PGSecondaryUtil._ test("handle CurrentVersion") { withPgu() { pgu => val f = columnsCreatedFixture var version =...
socrata-platform/soql-postgres-adapter
store-pg/src/test/scala/com/socrata/pg/store/CurrentVersionTest.scala
Scala
apache-2.0
987
/* * Copyright 2008-present MongoDB, 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 ag...
rozza/mongo-scala-driver
bson/src/main/scala/org/mongodb/scala/bson/BsonElement.scala
Scala
apache-2.0
946
package net.dinkla.lbnn.utils trait Utilities { def mkdir(dir: String): Unit def deldir(dir: String): Unit def delete(ps: String*): Unit = for (p <- ps) { deldir(p) } def exists(file: String): Boolean def merge(src: String, dst: String): Unit def download(url: String, dest: String): Unit def writ...
jdinkla/location-based-nearest-neighbours
src/main/scala/net/dinkla/lbnn/utils/Utilities.scala
Scala
apache-2.0
366
package org.jetbrains.plugins.scala.lang.resolve import org.jetbrains.plugins.scala.base.ScalaLightCodeInsightFixtureTestAdapter import org.jetbrains.plugins.scala.project._ class PartialUnificationImplicitClassTest extends ScalaLightCodeInsightFixtureTestAdapter with SimpleResolveTestBase { import SimpleResolveTes...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/lang/resolve/PartialUnificationImplicitClassTest.scala
Scala
apache-2.0
833
/*********************************************************************** * 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-fs/geomesa-fs-storage/geomesa-fs-storage-parquet/src/test/scala/org/locationtech/geomesa/parquet/ListMapTest.scala
Scala
apache-2.0
10,784
import com.lightbend.paradox.sbt.ParadoxPlugin import com.lightbend.paradox.sbt.ParadoxPlugin.autoImport._ import com.typesafe.sbt.git.ConsoleGitRunner import coursier.version.{Version, VersionParse} import sbt.Keys._ import sbt._ import sjsonnew.support.scalajson.unsafe.Converter import sjsonnew.support.scalajson.unsa...
slick/slick
project/Docs.scala
Scala
bsd-2-clause
9,277
package mesosphere.marathon package api.v2 import mesosphere.UnitTest import mesosphere.marathon.api.TestAuthFixture import mesosphere.marathon.core.base.{ Clock, ConstantClock } import mesosphere.marathon.core.launcher.OfferMatchResult import mesosphere.marathon.core.launchqueue.LaunchQueue import mesosphere.marathon...
natemurthy/marathon
src/test/scala/mesosphere/marathon/api/v2/QueueResourceTest.scala
Scala
apache-2.0
7,641
/* * 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 ...
fhueske/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/optimize/StreamCommonSubGraphBasedOptimizer.scala
Scala
apache-2.0
13,490
/** * Swaggy Jenkins * Jenkins API clients generated from Swagger / Open API specification * * The version of the OpenAPI document: 1.1.2-pre.0 * Contact: [email protected] * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not ed...
cliffano/swaggy-jenkins
clients/scala-akka/generated/src/main/scala/org/openapitools/client/model/ComputerSet.scala
Scala
mit
677
/* * 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 ...
foryou2030/incubator-carbondata
integration/spark/src/main/scala/org/apache/spark/sql/CarbonDictionaryDecoder.scala
Scala
apache-2.0
9,025
package com.github.havarunner /** * Marks a test class as a suite. * * A suite is comprised of suite members that are annotated with [[com.github.havarunner.annotation.PartOf]]. * * A suite is also a test, which means that it can contain tests. * * Suite members must be within the same package as the suite. *...
havarunner/havarunner
src/main/scala/com/github/havarunner/HavaRunnerSuite.scala
Scala
mit
877
package com.arcusys.valamis.util.mustache case class PartialToken(key: String, otag: String, ctag: String) extends Token { def render(context: Any, partials: Map[String, Mustache], callstack: List[Any]): TokenProduct = partials.get(key) match { case Some(template) => template.product(context, partials, ...
ViLPy/Valamis
valamis-util/src/main/scala/com/arcusys/valamis/util/mustache/PartialToken.scala
Scala
lgpl-3.0
517
package ch13 object ex08 { def to2d(a: Array[Int], c: Int) = { a.grouped(c).toArray } def main(args: Array[String]) { val arr = Array(1, 2, 3, 4, 5, 6) to2d(arr,4) map (_.toList) foreach println } }
tuxdna/scala-for-the-impatient-exercises
src/main/scala/ch13/ex08.scala
Scala
apache-2.0
221
package com.mehmetakiftutuncu.muezzinapi.shovel import java.time.LocalDateTime import java.util.concurrent.TimeUnit import javax.inject.{Inject, Singleton} import akka.actor.{ActorRef, ActorSystem, Cancellable, PoisonPill, Props} import com.google.inject.ImplementedBy import com.mehmetakiftutuncu.muezzinapi.data.{Abs...
mehmetakiftutuncu/MuezzinAPI
app/com/mehmetakiftutuncu/muezzinapi/shovel/Shovel.scala
Scala
mit
2,613
package es.uvigo.ei.sing.sds package annotator import scala.concurrent.Future import entity._ import service.{ DiseaseEntity, DiseasesService } final class DiseasesAnnotator extends AnnotatorAdapter { import context._ lazy val diseases = new DiseasesService override def annotate(article: Article): Future[Un...
agjacome/smart-drug-search
src/main/scala/annotator/DiseasesAnnotator.scala
Scala
mit
964
package gg.uhc.hosts.endpoints.docs import akka.http.scaladsl.model.StatusCodes import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.Route class DocsRoute { def apply(): Route = concat( pathEndOrSingleSlash { redirectToTrailingSlashIfMissing(StatusCodes.Found) { ...
Eluinhost/hosts.uhc.gg
src/main/scala/gg/uhc/hosts/endpoints/docs/DocsRoute.scala
Scala
mit
432
package pl.touk.nussknacker.engine.requestresponse.management import org.scalatest.{FunSuite, Matchers} import pl.touk.nussknacker.engine.api.deployment._ import pl.touk.nussknacker.engine.api.deployment.simple.{SimpleProcessStateDefinitionManager, SimpleStateStatus} import pl.touk.nussknacker.engine.api.process.{Proc...
TouK/nussknacker
engine/lite/request-response/runtime/src/test/scala/pl/touk/nussknacker/engine/requestresponse/management/MultiInstanceRequestResponseClientSpec.scala
Scala
apache-2.0
5,519
package com.twitter.finagle.http.netty import org.jboss.netty.handler.codec.http.{DefaultHttpRequest, HttpMethod, HttpVersion} import org.junit.runner.RunWith import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class HttpRequestProxyTest extends FunSuite { test("basic...
travisbrown/finagle
finagle-http/src/test/scala/com/twitter/finagle/http/netty/HttpRequestProxyTest.scala
Scala
apache-2.0
655
package shapeless.contrib.scalaz import shapeless.contrib.scalacheck._ import org.specs2.matcher.OptionMatchers import org.specs2.scalaz.Spec import org.scalacheck.Arbitrary import org.scalacheck.Arbitrary._ import scalaz.{Equal, \\/} import scalaz.scalacheck.ScalazArbitrary._ class BinaryTest extends Spec with Op...
milessabin/shapeless-contrib
scalaz/src/test/scala/BinaryTest.scala
Scala
mit
2,463
package coursier.install.error final class NoPrebuiltBinaryAvailable(val candidateUrls: Seq[String]) extends InstallDirException( if (candidateUrls.isEmpty) "No prebuilt binary available" else s"No prebuilt binary available at ${candidateUrls.mkString(", ")}" )
alexarchambault/coursier
modules/install/src/main/scala/coursier/install/error/NoPrebuiltBinaryAvailable.scala
Scala
apache-2.0
299
/* * Copyright (c) 2013-2014 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, and * you may not use this file except in compliance with the Apache License * Version 2.0. You may obtain a copy of the Apache License Version 2.0 at * http://www.a...
mdavid/lessig-bigdata
lib/snowplow/2-collectors/scala-stream-collector/src/test/scala/com.snowplowanalytics.snowplow.collectors.scalastream/CollectorServiceSpec.scala
Scala
mit
6,452
package zzb.rest package unmarshalling trait UnmarshallerLifting { implicit def fromRequestUnmarshaller[T](implicit um: FromMessageUnmarshaller[T]): FromRequestUnmarshaller[T] = new FromRequestUnmarshaller[T] { def apply(request: RestRequest): Deserialized[T] = um(request) } implicit def fromRespon...
stepover/zzb
zzb-rest/src/main/scala/zzb/rest/unmarshalling/UnmarshallerLifting.scala
Scala
mit
798
class B extends A class C extends B
dotty-staging/dotty
sbt-test/source-dependencies/transitive-class/BC.scala
Scala
apache-2.0
36
package reactivemongo.play.json.compat import scala.language.implicitConversions import play.api.libs.json.{ JsNull, JsNumber, JsString, JsValue } import reactivemongo.api.bson.{ BSONArray, BSONBinary, BSONBoolean, BSONDateTime, BSONDecimal, BSONDocument, BSONDouble, BSONInteger, BSONJavaScript, ...
ReactiveMongo/Reactivemongo-Play-Json
compat/src/main/scala/LaxValueConverters.scala
Scala
apache-2.0
2,885
/* Copyright (c) 2009-2012, The Regents of the University of California All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this lis...
cdlib/weari
src/main/scala/org/cdlib/was/weari/server/WeariHandler.scala
Scala
bsd-3-clause
4,204
package com.eevolution.context.dictionary.infrastructure.service.impl import java.util.UUID import com.eevolution.context.dictionary.infrastructure.repository.ReplicationRunRepository import com.eevolution.context.dictionary.infrastructure.service.ReplicationRunService import com.lightbend.lagom.scaladsl.api.ServiceC...
adempiere/ADReactiveSystem
dictionary-impl/src/main/scala/com/eevolution/context/dictionary/infrastructure/service/impl/ReplicationRunServiceImpl.scala
Scala
gpl-3.0
2,094
/* * 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/internal/io/HadoopMapReduceCommitProtocol.scala
Scala
apache-2.0
13,791
package scalaprops import scalaz._ import scalaz.std.anyVal._ import ScalapropsScalaz._ object AlterTest extends Scalaprops { val lawsMaybe = Properties.list( scalazlaws.equal.all[Alter[Maybe, Int]], scalazlaws.monoid.all[Alter[Maybe, Int]] ) val lawsIList = Properties.list( scalazlaws.equal.all[Al...
scalaprops/scalaprops
scalaz/src/test/scala/scalaprops/AlterTest.scala
Scala
mit
389
package cpup.lib.arguments.parsing trait ArgData { def prettyPrint: String def reify(role: ArgData.Role): String def flatten: String } object ArgData { case class List(data: ArgData*) extends ArgData { override def toString = s"List(${data.mkString(", ")})" override def prettyPrint = s"[==[${data.map(_.prett...
CoderPuppy/cpup-lib
src/main/scala/cpup/lib/arguments/parsing/ArgData.scala
Scala
mit
1,027
/* * 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 ...
fredji97/samza
samza-core/src/main/scala/org/apache/samza/coordinator/JobModelManager.scala
Scala
apache-2.0
11,129
package net.mtgto.garoon.schedule import com.github.nscala_time.time.Imports._ import net.mtgto.garoon.{Authentication, Id, GaroonClient} import org.sisioh.dddbase.core.lifecycle.{EntityNotFoundException, EntityIOContext} import org.sisioh.dddbase.core.lifecycle.sync.SyncEntityReader import scala.util.Try import scala...
mtgto/garoon
src/main/scala/net/mtgto/garoon/schedule/EventRepository.scala
Scala
gpl-3.0
1,957
/* * 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 ...
hhbyyh/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileFormatDataWriter.scala
Scala
apache-2.0
12,389
/* * This file is part of AckCord, licensed under the MIT License (MIT). * * Copyright (c) 2019 Katrix * * 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 restriction, including ...
Katrix-/AckCord
core/src/main/scala/ackcord/CacheStreams.scala
Scala
mit
4,384
/* * Copyright 2020 Lenses.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
datamountaineer/stream-reactor
kafka-connect-aws-s3/src/main/scala/io/lenses/streamreactor/connect/aws/s3/formats/parquet/ParquetInputFile.scala
Scala
apache-2.0
1,441
import com.github.tminglei.slickpg import com.vividsolutions.jts.geom._ import play.api.data._ import play.api.data.format._ import java.util.UUID import org.joda.time.{LocalDateTime, LocalDate} import play.api.libs.json.JsValue package object myUtils { type Range[T] = slickpg.Range[T] val Range = slickpg.Range ...
hardmettle/slick-postgress-samples
app/myUtils/package.scala
Scala
apache-2.0
2,617
package com.github.al.roulette.load.impl case class LoadTestEvent(msg: String)
andrei-l/reactive-roulette
load-test-impl/src/main/scala/com/github/al/roulette/load/impl/LoadTestEvent.scala
Scala
mit
80
package org.scalajs.core.tools.linker.backend.closure import org.scalajs.core.ir import ir.Position.NoPosition import org.scalajs.core.tools.javascript.Trees.Tree import org.scalajs.core.tools.javascript.JSTreeBuilder import com.google.javascript.rhino._ import com.google.javascript.jscomp._ import scala.collection...
lrytz/scala-js
tools/jvm/src/main/scala/org/scalajs/core/tools/linker/backend/closure/ClosureAstBuilder.scala
Scala
bsd-3-clause
1,401
package com.github.jpmossin.charjump import java.awt.event._ import java.awt.{Dimension, Graphics} import javax.swing.JTextField import com.intellij.openapi.editor.colors.EditorFontType import com.intellij.openapi.editor.{Editor, VisualPosition} import com.intellij.openapi.ui.popup.JBPopupFactory import com.intellij....
jpmossin/CharJump
src/main/scala/com/github/jpmossin/charjump/SearchBox.scala
Scala
mit
2,015
package cats.scalatest import org.scalatest.matchers.{ MatchResult, BeMatcher, Matcher } import scala.util.Either import cats.syntax.either._ trait EitherMatchers { /** * Checks to see if `scala.util.Either` is a specific Left element. */ def beLeft[E](element: E): Matcher[E Either _] = new BeCatsLeftEithe...
coltfred/cats-scalatest
src/main/scala/cats/scalatest/EitherMatchers.scala
Scala
apache-2.0
2,343
package com.arcusys.valamis.web.servlet.grade import javax.servlet.http.HttpServletResponse import com.arcusys.learn.liferay.util.PortletName import com.arcusys.valamis.web.portlet.base.ViewAllPermission import com.arcusys.valamis.web.servlet.base.{BaseJsonApiController, PermissionUtil} import com.arcusys.valamis.web...
igor-borisov/valamis
valamis-portlets/src/main/scala/com/arcusys/valamis/web/servlet/grade/NotificationServlet.scala
Scala
gpl-3.0
1,006
/** * © 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-controller/src/main/scala/cmwell/ctrl/tasks/AddNode.scala
Scala
apache-2.0
3,380
/*********************************************************************** * 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-process/geomesa-process-vector/src/test/scala/org/locationtech/geomesa/process/transform/BinConversionProcessTest.scala
Scala
apache-2.0
3,989
/* * Copyright 2016 Nikolay Tatarinov * * 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...
rockjam/iq-notes
src/test/scala/com/github/rockjam/iqnotes/SpecBase.scala
Scala
apache-2.0
1,273
import sbt._ import Keys._ object BuildSettings { lazy val repos = Seq( "Sonatype OSS Repo" at "https://oss.sonatype.org/content/repositories/releases", "Concurrent Maven Repo" at "http://conjars.org/repo" /*, "Apache HBase" at "https://repository.apache.org/content/repositories/releases", "Typ...
sitano/hbase-cascading-test1
project/BuildSettings.scala
Scala
mit
2,449
/*********************************************************************** * 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-arrow/geomesa-arrow-gt/src/main/scala/org/locationtech/geomesa/arrow/io/ConcatenatedFileWriter.scala
Scala
apache-2.0
2,916
/* * 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 ...
yanboliang/spark
core/src/main/scala/org/apache/spark/scheduler/Task.scala
Scala
apache-2.0
9,033
package mypipe.producer import com.typesafe.config.Config import mypipe.api.event.{ AlterEvent, UpdateMutation, SingleValuedMutation, Mutation } import mypipe.avro.schema.{ AvroSchemaUtils, GenericSchemaRepository } import mypipe.avro.AvroVersionedRecordSerializer import mypipe.kafka.KafkaUtil import org.apache.avro.S...
Asana/mypipe
mypipe-kafka/src/main/scala/mypipe/producer/KafkaMutationSpecificAvroProducer.scala
Scala
apache-2.0
4,007
/* * Copyright (C) 2016 Christopher Batey and Dogan Narinc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
mikefero/cpp-driver
gtests/src/integration/scassandra/server/server/src/test/scala/org/scassandra/server/priming/prepared/PrimePreparedStoreTest.scala
Scala
apache-2.0
6,610
import stainless.lang._ import stainless.collection._ import stainless.lang.Option._ import stainless.annotation._ import stainless.proof.check import stainless.lang.StaticChecks._ object StackExample { final case class Node(val value: BigInt, var nextOpt: Option[Node]) extends AnyHeapRef {} final case class Q(va...
epfl-lara/stainless
frontends/benchmarks/full-imperative/valid/Stack.scala
Scala
apache-2.0
1,964
package com.sksamuel.elastic4s.searches.aggs import com.sksamuel.elastic4s.searches.aggs.pipeline.PipelineAggregationBuilderFn import org.elasticsearch.search.aggregations.AggregationBuilders import org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder import scala.collection.JavaConverters._...
tyth/elastic4s
elastic4s-tcp/src/main/scala/com/sksamuel/elastic4s/searches/aggs/MissingAggregationBuilder.scala
Scala
apache-2.0
787
package com.jeff.chaser.models.systems.common import com.badlogic.ashley.core.{ComponentMapper, Entity, Family} import com.badlogic.ashley.systems.IteratingSystem import com.badlogic.gdx.math.{MathUtils, Vector2} import com.jeff.chaser.models.components.motion.{TransformComponent, VelocityComponent} import com.jeff.ch...
jregistr/Academia
CSC455-Game-Programming/Chaser/core/src/com/jeff/chaser/models/systems/common/ControlSystem.scala
Scala
mit
1,519
package nak.data /* Copyright 2009 David Hall, Daniel Ramage 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 ...
scalanlp/nak
src/main/scala/nak/data/Observation.scala
Scala
apache-2.0
1,559
/* * ____ ____ _____ ____ ___ ____ * | _ \\ | _ \\ | ____| / ___| / _/ / ___| Precog (R) * | |_) | | |_) | | _| | | | | /| | | _ Advanced Analytics Engine for NoSQL Data * | __/ | _ < | |___ | |___ |/ _| | | |_| | Copyright (C) 2010 - 2013 SlamData, In...
precog/platform
ingest/src/main/scala/com/precog/ingest/service/IngestProcessor.scala
Scala
agpl-3.0
5,606
package com.arcusys.learn.models.response.certificates import com.arcusys.valamis.user.model.User case class CertificateSuccessUsersResponse( id: Int, title: String, shortDescription: String, description: String, logo: String, succeedUsers: Seq[User])
ViLPy/Valamis
learn-portlet/src/main/scala/com/arcusys/learn/models/response/certificates/CertificateSuccessUsersResponse.scala
Scala
lgpl-3.0
267
/* * 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 swave.docs object MonteCarloPi extends App { //#example import swave.core.util.XorShiftRandom i...
sirthias/swave
docs/src/test/scala/swave/docs/MonteCarloPi.scala
Scala
mpl-2.0
1,766
package elcurto99.scalaquestrade import java.time.{LocalDateTime, ZonedDateTime} import elcurto99.scalaquestrade.models.OrderStateFilterType.OrderStateFilterType import elcurto99.scalaquestrade.models._ /** * Definition of the Questrade API interface */ trait QuestradeAPI { /** * Perform a login request t...
elcurto99/scala-questrade
src/main/scala/elcurto99/scalaquestrade/QuestradeAPI.scala
Scala
mit
3,193
import org.specs2.mutable._ import org.specs2.runner._ import org.junit.runner._ import org.specs2.matcher.JsonMatchers import play.api.libs.json.{JsString, Json} import play.api.libs.ws.WS import play.api.{Play, Logger} import play.api.test._ /** * add your integration spec here. * An integration test will fire up...
indarium/hbbTVPlugin
test/HMSAPISpec.scala
Scala
agpl-3.0
1,320
package me.yingrui.segment.filter import org.junit.Assert import org.junit.Test import me.yingrui.segment.core.SegmentResult import me.yingrui.segment.dict.POSUtil class ReduplicatingFilterTest { var filter = new ReduplicatingFilter() @Test def should_merge_two_reduplicating_words() { val segmen...
yingrui/mahjong
lib-segment/src/test/scala/me/yingrui/segment/filter/ReduplicatingFilterTest.scala
Scala
gpl-3.0
1,560
/** * Copyright (C) 2012 Inria, University Lille 1. * * This file is part of PowerAPI. * * PowerAPI 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...
abourdon/powerapi-akka
listeners/listener-cpu-jfreechart/src/main/scala/fr/inria/powerapi/listener/cpu/jfreechart/CpuListener.scala
Scala
agpl-3.0
1,568
package exercises.ch10 trait Monoid[A] { def op(a1: A, a2: A): A def zero: A }
VladMinzatu/fpinscala-exercises
src/main/scala/exercises/ch10/Monoid.scala
Scala
mit
84
/* * Copyright 2014-2022 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Netflix-Skunkworks/iep-apps
iep-clienttest/src/main/scala/com/netflix/iep/clienttest/Main.scala
Scala
apache-2.0
2,761
/* * Copyright (c) 2015, Nightfall Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions a...
Nightfall/Instrumentality
core/src/main/scala/moe/nightfall/instrumentality/editor/control/ModelElement.scala
Scala
bsd-2-clause
4,572
/* * 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 ...
bOOm-X/spark
core/src/main/scala/org/apache/spark/storage/StorageStatusListener.scala
Scala
apache-2.0
4,716
/** * COPYRIGHT (C) 2015 Alpine Data Labs Inc. All Rights Reserved. */ package com.alpine.plugin.core import com.alpine.plugin.core.annotation.AlpineSdkApi import com.alpine.plugin.core.datasource.OperatorDataSourceManager import com.alpine.plugin.core.dialog.OperatorDialog import com.alpine.plugin.core.io._ import...
holdenk/PluginSDK
plugin-core/src/main/scala/com/alpine/plugin/core/OperatorGUINode.scala
Scala
apache-2.0
4,561
package com.github.diegopacheco.sandbox.sacala.twoten.dynamic import scala.language.dynamics class Ruby extends Dynamic { def applyDynamic(methodName:String)(args:Any*): Any = { println("Calling method: " + methodName + ", with args: " + args) } } object BackToRubyworld extends App { val r = new R...
diegopacheco/scala-playground
scala-2.10-playground/src/com/github/diegopacheco/sandbox/sacala/twoten/dynamic/BackToRubyworld.scala
Scala
unlicense
352