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
/** * This code is generated using [[https://www.scala-sbt.org/contraband/ sbt-contraband]]. */ // DO NOT EDIT MANUALLY package sbt.internal.bsp /** * Compile Response * @param originId An optional request id to know the origin of this report. * @param statusCode A status code for the execution. */ final class B...
sbt/sbt
protocol/src/main/contraband-scala/sbt/internal/bsp/BspCompileResult.scala
Scala
apache-2.0
1,615
/* * Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
47deg/github4s
github4s/src/main/scala/github4s/algebras/Activities.scala
Scala
apache-2.0
2,904
import play.api.ApplicationLoader.Context import play.api._ import play.api.i18n._ import play.api.routing.Router import router.Routes import com.softwaremill.macwire._ import com.softwaremill.tagging._ import akka.actor.ActorSystem import akka.actor.Props import com.mohiva.play.silhouette.api.{Environment => Silhouett...
dit4c/dit4c
dit4c-portal/app/AppApplicationLoader.scala
Scala
mit
8,726
package com.twitter.scrooge.ast import scala.collection.mutable import com.twitter.scrooge.frontend.ScroogeInternalException sealed abstract class Identifier extends IdNode { // It was intentional not to override toString. Instead, use // "fullName" to indicate its purpose. def fullName: String def toCamelCa...
elipoz/scrooge
scrooge-generator/src/main/scala/com/twitter/scrooge/AST/Identifier.scala
Scala
apache-2.0
4,408
/* * Copyright 2014–2020 SlamData Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
slamdata/quasar
qsu/src/main/scala/quasar/qsu/mra/JoinKeys.scala
Scala
apache-2.0
3,358
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 ListLi...
julianpeeters/artisanal-pickle-maker
src/test/scala/singleValueMember/ListSpecs/ListListListStringSpec.scala
Scala
apache-2.0
999
/* * Copyright (c) 2014-2020 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
alexandru/monifu
monix-catnap/shared/src/main/scala/monix/catnap/cancelables/BooleanCancelableF.scala
Scala
apache-2.0
3,521
package fm.common.test.classutil object TestClass { } class TestClass { def foo: String = "test_class" }
frugalmechanic/fm-common
jvm/src/test/scala/fm/common/test/classutil/TestClass.scala
Scala
apache-2.0
109
package monocle.generic import monocle.{Iso, Prism} import monocle.generic.internal.{CoproductToDisjunction, DisjunctionToCoproduct} import shapeless.{Coproduct, Generic} import shapeless.ops.coproduct.{CoproductToEither, EitherToCoproduct, Inject, Selector} import scala.annotation.nowarn @deprecated("no replacement...
julien-truffaut/Monocle
generic/src/main/scala/monocle/generic/CoProduct.scala
Scala
mit
3,816
package model.attributes trait AttributeDescription { val name: String val code: String val desc: String } object DexterityDescription extends AttributeDescription { override val name = "Ловкость" override val code = "dex" override val desc = "Влияет на шанс попадания/уворота" } object EnduranceDescripti...
treble-snake/gladiators
src/main/scala/model/attributes/AttributeDescription.scala
Scala
apache-2.0
761
// Copyright 2014 Commonwealth Bank of Australia // // 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 ap...
toddmowen/maestro
maestro-example/src/main/scala/au/com/cba/omnia/maestro/example/CustomerJob.scala
Scala
apache-2.0
2,082
/* * Copyright (c) 2013, OpenCloudDB/MyCAT and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software;Designed and Developed mainly by many Chinese * opensource volunteers. you can redistribute it and/or modify it under the * ...
fengshao0907/Mycat-spider
src/main/scala/turbo/crawler/StringAdapter.scala
Scala
apache-2.0
1,538
package models.connector import scala.concurrent.Future import akka.actor._ import akka.util.ByteString import play.api.libs.iteratee._ import play.api.libs.concurrent.Execution.Implicits._ import rxtxio.Serial._ /** Mock for a serial port. Uses the rxtxio.Serial interface. */ object SerialPortMock { /** Data that ...
knittery/knittery-ui
app/models/connector/SerialPortMock.scala
Scala
gpl-2.0
2,029
/* * Copyright 2011-2013 The myBatis Team * * 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...
xujianhai/scala-3
mybatis-scala-core/src/main/scala/org/mybatis/scala/config/ConfigurationSpace.scala
Scala
apache-2.0
12,212
package validatr import org.specs2.mutable._ class ValidationResultSpec extends Specification { case class Person(name: String, age: Int) "validationResult.prefix" >> { ValidationResult("Must not be empty.", path = "bar" :: Nil).prefix("foo") mustEqual ValidationResult("Must not be empty.", path = "fo...
underscoreio/essential-macros
validation/lib/src/test/scala/validatr/ValidationResultSpec.scala
Scala
apache-2.0
346
/* * 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...
jenniew/BigDL
spark/dl/src/test/scala/com/intel/analytics/bigdl/utils/tf/loaders/CeilSpec.scala
Scala
apache-2.0
1,189
package com.danielasfregola.twitter4s import akka.actor.ActorSystem import com.danielasfregola.twitter4s.entities.{AccessToken, ConsumerToken} import com.danielasfregola.twitter4s.http.clients.rest.RestClient import com.danielasfregola.twitter4s.http.clients.rest.v2.tweets.{ TwitterSearchTweetsClient, TwitterTimel...
DanielaSfregola/twitter4s
src/main/scala/com/danielasfregola/twitter4s/TwitterRestV2Client.scala
Scala
apache-2.0
2,060
package com.eevolution.context.dictionary.domain.model import ai.x.play.json.Jsonx import com.eevolution.context.dictionary.api.{ActiveEnabled, DomainModel, Identifiable, Traceable} import org.joda.time.DateTime /** * Copyright (C) 2003-2017, e-Evolution Consultants S.A. , http://www.e-evolution.com * This progra...
adempiere/ADReactiveSystem
dictionary-api/src/main/scala/com/eevolution/context/dictionary/domain/model/WorkflowNodePara.scala
Scala
gpl-3.0
3,636
/* * 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/help-to-save-frontend
app/uk/gov/hmrc/helptosavefrontend/services/HelpToSaveReminderService.scala
Scala
apache-2.0
2,644
/* * 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 ...
maropu/spark
sql/core/src/test/scala/org/apache/spark/sql/SessionStateSuite.scala
Scala
apache-2.0
9,595
/* * Copyright © 2014 TU Berlin ([email protected]) * * 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 app...
aalexandrov/emma
emma-spark/src/main/scala/org/emmalanguage/compiler/SparkCompiler.scala
Scala
apache-2.0
3,664
package es.weso.rbe.interval import es.weso.rbe._ import es.weso.collection._ import IntOrUnbounded._ import es.weso.rbe.deriv._ case class IntervalChecker[A](rbe: Rbe[A]) extends BagChecker[A] { type Matched[B] = Either[String,B] def isOk[B](m: Matched[B]): Boolean = m.isRight lazy val derivChecker = De...
labra/rbe
src/main/scala/es/weso/rbe/interval/IntervalChecker.scala
Scala
mit
2,313
package beam.integration import beam.utils.TestConfigUtils.testConfig import com.typesafe.config.{Config, ConfigFactory, ConfigValueFactory} trait IntegrationSpecCommon { private val LAST_ITER_CONF_PATH = "matsim.modules.controler.lastIteration" protected var totalIterations: Int = 1 val configFileName = "tes...
colinsheppard/beam
src/test/scala/beam/integration/IntegrationSpecCommon.scala
Scala
gpl-3.0
924
package common.implicits import scala.concurrent.{ExecutionContext, Future} object RichFuture { /** * Adds various extension methods to the Future[Option] class. * * @param futureOfOption a Future[Option] to be extended * @tparam A a type that was lifted to an inner Option of a Future[Option] *...
sysgears/apollo-universal-starter-kit
modules/core/server-scala/src/main/scala/common/implicits/RichFuture.scala
Scala
mit
949
package org.genericConfig.admin.shared.configTree /** * Copyright (C) 2016 Gennadi Heimann [email protected] * * Created by Gennadi Heimann 02.06.2020 */ class ConfigTreeItemUserPropDTO { }
gennadij/admin
shared/src/main/scala/org/genericConfig/admin/shared/configTree/ConfigTreeItemUserPropDTO.scala
Scala
apache-2.0
200
package mesosphere.marathon.plugin.auth import mesosphere.marathon.plugin.http.HttpResponse import mesosphere.marathon.plugin.plugin.Plugin /** * Base trait for all authorizer implementations. * An authorizer is able to authorize an action on a resource based on an identity: * * [[Identity]] is a custom imple...
ss75710541/marathon
plugin-interface/src/main/scala/mesosphere/marathon/plugin/auth/Authorizer.scala
Scala
apache-2.0
1,518
/* Copyright 2017-19, Emmanouil Antonios Platanios. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
eaplatanios/tensorflow_scala
modules/api/src/main/scala/org/platanios/tensorflow/api/ops/rnn/cell/BasicLSTMCell.scala
Scala
apache-2.0
4,049
package io.peregrine import com.twitter.finagle.http.Cookie import org.jboss.netty.handler.codec.http.DefaultCookie class CookieBuilder { private var secure : Option[Boolean] = None private var httpOnly: Option[Boolean] = None private var name : Option[String] = None private var value : Option[String] ...
dvarelap/stilt
src/main/scala/io/peregrine/CookieBuilder.scala
Scala
apache-2.0
1,187
package org.trustedanalytics.sparktk.frame.internal.rdd import org.apache.spark.rdd.RDD import org.apache.spark.sql.Row import scala.reflect.ClassTag //implicit conversion for PairRDD import org.apache.spark.SparkContext._ /** * * This is a wrapper to encapsulate methods that may need to be serialized to executed...
shibanis1/spark-tk
core/src/main/scala/org/trustedanalytics/sparktk/frame/internal/rdd/MiscFrameFunctions.scala
Scala
apache-2.0
3,815
/* * Distributed as part of Scalala, a linear algebra library. * * Copyright (C) 2008- Daniel Ramage * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the ...
scalala/Scalala
src/main/scala/scalala/tensor/Tensor1Slice.scala
Scala
lgpl-2.1
1,728
package org.jetbrains.plugins.scala package lang package psi package impl package base package types import com.intellij.lang.ASTNode import com.intellij.psi._ import com.intellij.psi.scope.PsiScopeProcessor import org.jetbrains.plugins.scala.lang.psi.api.ScalaElementVisitor import org.jetbrains.plugins.scala.lang.psi...
LPTK/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/impl/base/types/ScParameterizedTypeElementImpl.scala
Scala
apache-2.0
11,912
/* * Copyright (c) 2015 Robert Conrad - All Rights Reserved. * Unauthorized copying of this file, via any medium is strictly prohibited. * This file is proprietary and confidential. * Last modified by rconrad, 1/3/15 4:19 PM */ package base.entity.kv.impl import base.entity.kv.{ Key, KvTest } /** * {{ Describe...
robconrad/base-api
project-entity/src/test/scala/base/entity/kv/impl/KeyFactoryImplTest.scala
Scala
mit
823
package org.apache.spot.dns.model import org.apache.log4j.Logger import org.apache.spark.SparkContext import org.apache.spark.broadcast.Broadcast import org.apache.spark.rdd.RDD import org.apache.spark.sql.functions._ import org.apache.spark.sql.types._ import org.apache.spark.sql.{DataFrame, Row, SQLContext} import o...
kpeiruza/incubator-spot
spot-ml/src/main/scala/org/apache/spot/dns/model/DNSSuspiciousConnectsModel.scala
Scala
apache-2.0
13,135
package gapt.expr.formula import gapt.expr.Expr object Iff { def apply( a: Expr, b: Expr ): Formula = And( Imp( a, b ), Imp( b, a ) ) def unapply( f: Formula ): Option[( Formula, Formula )] = f match { case And( Imp( a, b ), Imp( b_, a_ ) ) if a == a_ && b == b_ => Some( ( a, b ) ) case _ => None ...
gapt/gapt
core/src/main/scala/gapt/expr/formula/Iff.scala
Scala
gpl-3.0
328
package com.nyavro.manythanks.ws.auth import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._ import akka.http.scaladsl.model.{HttpEntity, MediaTypes, StatusCodes} import akka.http.scaladsl.testkit.ScalatestRouteTest import com.nyavro.manythanks.ws.user.{User, UserFormat} import org.scalamock.scalatest.Mock...
nyavro/manythanks
webService/src/test/scala/com/nyavro/manythanks/ws/auth/AuthRouteTest.scala
Scala
apache-2.0
2,450
package com.sksamuel.elastic4s.requests.snapshots import com.sksamuel.elastic4s.{Index, Indexes} import com.sksamuel.elastic4s.ext.OptionImplicits._ case class RestoreSnapshotRequest(snapshotName: String, repositoryName: String, indices: Indexes = In...
sksamuel/elastic4s
elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/requests/snapshots/RestoreSnapshotRequest.scala
Scala
apache-2.0
1,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 ...
michalsenkyr/spark
sql/core/src/test/scala/org/apache/spark/sql/BenchmarkQueryTest.scala
Scala
apache-2.0
2,687
package avrohugger package format package specific package converters import SchemaAccessors._ import matchers.TypeMatcher import stores.ClassStore import types._ import treehugger.forest._ import definitions._ import treehuggerDSL._ import org.apache.avro.{LogicalTypes, Schema} import scala.language.postfixOps im...
julianpeeters/avrohugger
avrohugger-core/src/main/scala/format/specific/converters/ScalaConverter.scala
Scala
apache-2.0
10,633
/** * Copyright 2015 Otto (GmbH & Co KG) * * 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...
hpzorn/schedoscope
schedoscope-tutorial/src/test/scala/schedoscope/example/osm/datamart/ShopProfilesTest.scala
Scala
apache-2.0
2,528
package ru.reajames import org.scalatest._ import ReajamesStreamTests._ import org.scalatest.concurrent.ScalaFutures import java.util.concurrent.atomic.AtomicInteger import scala.concurrent.{ExecutionContext, Future} import org.scalatest.time.{Milliseconds, Seconds, Span} import java.util.concurrent.{ExecutorService, ...
dobrynya/reajames
src/test/scala/ru/reajames/ReajamesStreamTests.scala
Scala
apache-2.0
7,603
/* * 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 ...
graphframes/graphframes
src/test/scala/org/graphframes/examples/GraphsSuite.scala
Scala
apache-2.0
2,027
/* * 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...
quantintel/spectrum
financial/src/main/scala/org/quantintel/ql/math/AbstractSolver1D.scala
Scala
apache-2.0
1,775
/* * 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/main/scala/org/scassandra/server/priming/routes/ActivityVerificationRoute.scala
Scala
apache-2.0
3,251
package reaktor.scct.report import java.io.File import io.Source import xml.{Text, Node, NodeSeq} import reaktor.scct._ class HtmlReporter(project: ProjectData, writer: HtmlReportWriter) extends HtmlHelper { val data = project.coverage object files { val packages = "packages.html" val summary = "summary....
mtkopone/scct
src/main/scala/reaktor/scct/report/HtmlReporter.scala
Scala
apache-2.0
2,983
/** * Copyright 2011-2017 GatlingCorp (http://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
timve/gatling
gatling-core/src/main/scala/io/gatling/core/check/extractor/regex/RegexCheckBuilder.scala
Scala
apache-2.0
1,824
/* * Copyright 2011-2017 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...
dvreeze/yaidom
jvm/src/test/scala/eu/cdevreeze/yaidom/integrationtest/CdStoreTest.scala
Scala
apache-2.0
4,752
package ornicar.scalalib trait OrnicarOption { implicit final def toOrnicarOption[A](o: Option[A]) = new OrnicarOptionWrapper(o) } final class OrnicarOptionWrapper[A](private val self: Option[A]) extends AnyVal { def ??[B: Zero](f: A => B): B = self.fold(Zero[B].zero)(f) def ifTrue(b: Boolean): Option[A] = s...
ornicar/scalalib
src/main/scala/Option.scala
Scala
mit
544
/** * (c) Copyright 2012 WibiData, Inc. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * 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...
alexandre-normand/kiji-schema-shell
src/test/scala/org/kiji/schema/shell/ddl/TestUseDbCommands.scala
Scala
apache-2.0
1,997
package com.twitter.mycollector import com.twitter.finagle.Http import com.twitter.finagle.stats.StatsReceiver import com.twitter.server.{Closer, TwitterServer} import com.twitter.util.{Await, Closable, Future} import com.twitter.zipkin.anormdb.AnormDBSpanStoreFactory import com.twitter.zipkin.collector.SpanReceiver i...
jeffreywugz/zipkin
zipkin-example/src/main/scala/com/twitter/zipkin/example/Main.scala
Scala
apache-2.0
1,541
/* Copyright 2009-2021 EPFL, Lausanne */ object MyTuple2 { abstract class A case class B(i: Int) extends A case class C(a: A) extends A def foo(): Int = { val t = (B(2), C(B(3))) t match { case (B(x), C(y)) => x } } ensuring( _ == 3) }
epfl-lara/stainless
frontends/benchmarks/verification/invalid/MyTuple2.scala
Scala
apache-2.0
268
/* * 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 ...
mashin-io/rich-spark
streaming/src/main/scala/org/apache/spark/streaming/DStreamGraph.scala
Scala
apache-2.0
10,236
package org.receiver2d.engine.ecs.components import org.receiver2d.engine.Receiver2D import org.receiver2d.engine.math.Vec2 import org.receiver2d.engine.physics.Mechanics /** * A built-in component that enables physics support for all entities that use * it. * * @param density this affects the calculated mass...
Prince781/Receiver2D
src/main/scala/org/receiver2d/engine/ecs/components/Rigidbody.scala
Scala
gpl-2.0
2,767
/* * Copyright (C) 2011 Romain Reuillon * * 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. * * This program is di...
openmole/openmole
openmole/plugins/org.openmole.plugin.sampling.combine/src/main/scala/org/openmole/plugin/sampling/combine/ZipWithNameSampling.scala
Scala
agpl-3.0
1,756
/* * Copyright 2013-2015 Websudos, Limited. * * 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 list of c...
levinson/phantom
phantom-reactivestreams/src/test/scala/com/websudos/phantom/reactivestreams/suites/iteratee/IterateeBenchmarkPerformanceTest.scala
Scala
bsd-2-clause
2,953
package es.weso.wiFetcher.dao import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import org.scalatest.BeforeAndAfter import org.scalatest.Matchers import org.scalatest.FunSuite import java.io.FileNotFoundException import es.weso.wiFetcher.entities.Dataset import es.weso.wiFetcher.dao.entity.Dataset...
weso/wiFetcher
test/es/weso/wiFetcher/dao/DatasetDAOImplSuite.scala
Scala
apache-2.0
2,225
package com.tierline.scala.activemodel import org.squeryl._ import org.squeryl.PrimitiveTypeMode._ trait TableSupport[K, T] { }
tierline/scala-activemodel
src/main/scala/com/tierline/scala/activemodel/TableSupport.scala
Scala
mit
131
package de.fuberlin.wiwiss.silk.preprocessing.transformer import scala.xml.Node /** * Represents a Transformer * */ trait Transformer{ def apply(values: List[String]): List[String] }
fusepoolP3/p3-silk
silk-tools/silk-freetext-preprocessing/src/main/scala/de/fuberlin/wiwiss/silk/preprocessing/transformer/Transformer.scala
Scala
apache-2.0
191
/* * 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 ...
yew1eb/flink
flink-libraries/flink-ml/src/test/scala/org/apache/flink/ml/classification/Classification.scala
Scala
apache-2.0
6,883
import sbt._ import sbt.Keys._ import sbt.plugins.JvmPlugin import com.typesafe.sbt.packager.MappingsHelper.contentOf /** * SBT plugin to build the frontend through yarn. * */ object YarnPlugin extends AutoPlugin { override val requires: Plugins = JvmPlugin override val trigger: PluginTrigger = NoTrigger ...
FRosner/cluster-broccoli
project/YarnPlugin.scala
Scala
apache-2.0
4,802
package test object Test extends App { println("SUCCESS!") }
benmccann/sbt-native-packager
src/sbt-test/windows/java-app-archetype/src/main/scala/test/Test.scala
Scala
bsd-2-clause
64
import annotation.showAsInfix // This version of Tuple requires full retyping of untyped trees on inlining object typelevel { erased def erasedValue[T]: T = compiletime.erasedValue class Typed[T](val value: T) { type Type = T } } sealed trait Tuple object Empty extends Tuple @showAsInfix final case class *: [H, ...
dotty-staging/dotty
tests/invalid/run/Tuple.scala
Scala
apache-2.0
2,347
/* * This software is licensed under the GNU Affero General Public License, quoted below. * * This file is a part of PowerAPI. * * Copyright (C) 2011-2016 Inria, University of Lille 1. * * PowerAPI is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public Lice...
Spirals-Team/powerapi
powerapi-daemon/src/test/scala/org/powerapi/daemon/DaemonConfigurationSuite.scala
Scala
agpl-3.0
1,785
/* * TCPTransmitterImpl.scala * (ScalaOSC) * * Copyright (c) 2008-2021 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU Lesser General Public License v2.1+ * * * For further information, please contact Hanns Holger Rutz at * [email protected] */ package de.sciss.osc packag...
Sciss/ScalaOSC
shared/src/main/scala/de/sciss/osc/impl/TCPTransmitterImpl.scala
Scala
lgpl-2.1
1,352
package de.htwg.zeta.common.format.project.gdsl.shape.geoModel import de.htwg.zeta.common.models.project.gdsl.shape.geomodel.Compartement import de.htwg.zeta.common.models.project.gdsl.shape.geomodel.Position import de.htwg.zeta.common.models.project.gdsl.shape.geomodel.Size import de.htwg.zeta.common.models.project.g...
Zeta-Project/zeta
api/common/src/test/scala/de/htwg/zeta/common/format/project/gdsl/shape/geoModel/CompartementFormatTest.scala
Scala
bsd-2-clause
2,632
package picasso.frontend.compilerPlugin.utils import scala.tools.nsc.Global import picasso.utils.{LogCritical, LogError, LogWarning, LogNotice, LogInfo, LogDebug, Logger} import picasso.utils.Namer trait PatternUtils { self: TypeUtils => val global: Global import global._ import global.definitions._ obj...
dzufferey/picasso
frontend/compilerPlugin/src/main/scala/picasso/frontend/compilerPlugin/utils/PatternUtils.scala
Scala
bsd-2-clause
6,164
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/" ) lazy val root = Project(id = "fpinscala", base = file("."), ...
geoquant/fpinscala
project/Build.scala
Scala
mit
1,292
package akka.event import language.existentials object Logging { /** * Marker trait for annotating LogLevel, which must be Int after erasure. */ case class LogLevel(asInt: Int) extends AnyVal { @inline final def >=(other: LogLevel): Boolean = asInt >= other.asInt @inline final def <=(other: LogLeve...
sjrd/scala-js-actors
actors/src/main/scala/akka/event/Logging.scala
Scala
bsd-3-clause
2,602
// // Transformation.scala -- Scala traits NamedASTFunction and NamedASTTransform and object EmptyFunction // Project OrcScala // // $Id: NamedASTTransform.scala 3099 2012-07-21 02:33:18Z laurenyew $ // // Created by dkitchin on Jul 12, 2010. // // Copyright (c) 2011 The University of Texas at Austin. All rights reserv...
laurenyew/cOrcS
src/orc/ast/oil/named/NamedASTTransform.scala
Scala
bsd-3-clause
6,973
package com.giyeok.gitexplorer.model import com.giyeok.gitexplorer.Util._ import java.io.File trait GitObjects { this: GitRepository => case class GitUser(name: String, email: String, date: String) { override def toString = s"$name <$email>" } object GitUser { def fromString(spec: Str...
Joonsoo/gitexplorer
src/main/scala/com/giyeok/gitexplorer/model/GitObjects.scala
Scala
mit
10,892
import sbt._ import Keys._ import play.Project._ object ApplicationBuild extends Build { val appName = "lifelog" val appVersion = "0.0" val commonDeps = Seq( jdbc, anorm, cache, "org.fluentd" % "fluent-logger" % "0.2.11" ) val adminDeps = Seq( ) val websiteDeps = Seq( )...
agwlvssainokuni/lifelog
project/Build.scala
Scala
apache-2.0
1,124
/* * 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 ...
barbaragomes/incubator-iota
performers/zmq/src/main/scala/org/apache/iota/fey/performer/UnknownException.scala
Scala
apache-2.0
912
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Intel-bigdata/OAP
oap-cache/oap/src/main/scala/org/apache/spark/sql/execution/datasources/oap/filecache/FiberSensor.scala
Scala
apache-2.0
5,945
package lila.ublog import akka.stream.scaladsl._ import cats.implicits._ import com.softwaremill.tagging._ import org.joda.time.DateTime import play.api.i18n.Lang import reactivemongo.akkastream.cursorProducer import reactivemongo.api._ import scala.concurrent.ExecutionContext import lila.db.dsl._ import lila.hub.act...
luanlv/lila
modules/ublog/src/main/UblogRank.scala
Scala
mit
5,493
/* * 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
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/ShufflePartitionsUtil.scala
Scala
mit
7,698
/* * 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/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala
Scala
apache-2.0
109,723
object Hello{ def main(args: Array[String]) { println("Hello World!") } }
Com-Mean/Scala_for_the_Impatient
chapter5/hello.scala
Scala
gpl-3.0
94
package com.eevolution.context.dictionary.domain.api.service import com.eevolution.context.dictionary.api import com.eevolution.context.dictionary.domain.model.MigrationStep /** * Copyright (C) 2003-2017, e-Evolution Consultants S.A. , http://www.e-evolution.com * This program is free software: you can redistribu...
adempiere/ADReactiveSystem
dictionary-api/src/main/scala/com/eevolution/context/dictionary/domain/api/service/MigrationStepService.scala
Scala
gpl-3.0
1,233
/* * 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/models/maskrcnn/Test.scala
Scala
apache-2.0
3,361
class Test { // Any override def getClass(): Class[_] = ??? // error override def ==(that: Any): Boolean = ??? // error override def != (that: Any): Boolean = ??? // error override def ##(): Int = ??? // error override def isInstanceOf[T0]: Boolean = ??? // error override def asInstanceOf[T0]: T0 = ??? //...
som-snytt/dotty
tests/neg/i3442.scala
Scala
apache-2.0
714
package edu.colorado.plv.cuanto.jsy package mutation { /** @group Abstract Syntax Nodes */ case object Assign extends Bop /** @group Abstract Syntax Nodes */ case object Null extends Val /** @group Intermediate AST Nodes */ case object Deref extends Uop /** Address. * * @group Intermediate AS...
cuplv/cuanto
src/main/scala/edu/colorado/plv/cuanto/jsy/mutation/package.scala
Scala
apache-2.0
448
package scalaz.stream.async.mutable import scalaz.stream.Cause._ import scalaz.concurrent.{Actor, Strategy, Task} import scalaz.stream.Process.{Cont, Halt} import scalaz.stream._ import scalaz.stream.async.immutable import scalaz.{-\\/, \\/, \\/-} /** * Like a `Topic`, but allows to specify `Writer1` to eventually `...
shawjef3/scalaz-stream
src/main/scala/scalaz/stream/async/mutable/WriterTopic.scala
Scala
mit
9,023
/* * Copyright 2015 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...
keithhall/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600a/v3/A75.scala
Scala
apache-2.0
1,460
package uima.cpe import java.io.{BufferedReader, File, InputStreamReader} import modules.converter.QALabDataset2MultiLingualQACorpusConverter import modules.ir.fulltext.indri.en.{EnglishIndriContentWordLevelIndexer, EnglishIndriTokenLevelIndexer} import modules.ir.fulltext.indri.ja.{JapaneseIndriCharactereLevelIndexe...
ktr-skmt/FelisCatusZero-multilingual
src/main/scala/uima/cpe/CPERunner.scala
Scala
apache-2.0
14,602
package cz.senkadam.gatlingsql.actions import akka.actor.{ActorRef, Props} import cz.senkadam.gatlingsql.requests.SqlRequestBuilder import io.gatling.core.action.builder.ActionBuilder import io.gatling.core.config.Protocols /** * Created by senk on 5.1.15. */ class SqlActionBuilder(requestName: String, requestBu...
veraicon/gatlingsql
src/main/scala/cz/senkadam/gatlingsql/actions/SqlActionBuilder.scala
Scala
apache-2.0
840
/* Copyright 2012 Twitter, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
lucamilanesio/scalding
scalding-core/src/main/scala/com/twitter/scalding/typed/TypedPipe.scala
Scala
apache-2.0
34,866
package sylvestris.core import cats.data._ import cats.implicits._ import catsclaw.implicits._ import spray.json._ object InMemoryGraph { def apply() = new InMemoryGraph {} } trait InMemoryGraph extends Graph { case class GNode(id: Id, tag: Tag, content: String) object GNode { def apply[T : NodeManifest](...
janrain/sylvestris
core/src/main/scala/sylvestris/core/InMemoryGraph.scala
Scala
mit
3,067
package uk.co.morleydev.zander.client.test.unit.data.map import java.io.File import uk.co.morleydev.zander.client.data.map.GetCachedArtefactsLocation import uk.co.morleydev.zander.client.test.gen.GenModel import uk.co.morleydev.zander.client.test.unit.UnitTest class GetCacheArtefactsLocationTests extends UnitTest { ...
MorleyDev/zander.client
src/test/scala/uk/co/morleydev/zander/client/test/unit/data/map/GetCacheArtefactsLocationTests.scala
Scala
mit
1,001
package scala.macros.internal package prettyprinters // NOTE: This class is an evolution of Show from 1.x // and is heavily inspired by ShowBuilder from scala-native/scala-native. final class Prettyprinter { private val buf = new java.lang.StringBuilder def raw(value: String): Prettyprinter = { buf.append(va...
xeno-by/scalamacros
core/src/main/scala/scala/macros/internal/prettyprinters/Prettyprinter.scala
Scala
bsd-3-clause
821
// Copyright (c) 2014 David Miguel Antunes <davidmiguel {at} antunes.net> // // 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 without limitation the right...
david04/liftutils
src/main/scala/com/github/david04/liftutils/entity/Entity.scala
Scala
mit
1,729
package sri.universal import scala.scalajs.js import scala.scalajs.js.annotation.JSGlobalScope @js.native @JSGlobalScope object AssetLoader extends js.Object { def require[T](name: String): T = js.native } //http://www.cakesolutions.net/teamblogs/default-type-parameters-with-implicits-in-scala trait DefaultsTo[T...
scalajs-react-interface/universal
src/main/scala/sri/universal/AssetLoader.scala
Scala
apache-2.0
473
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
bwsw/sj-platform
core/sj-crud-rest/src/main/scala/com/bwsw/sj/crud/rest/utils/CompletionUtils.scala
Scala
apache-2.0
2,552
/* * 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
core/src/main/scala/org/apache/spark/util/collection/OpenHashMap.scala
Scala
mit
5,195
package com.softwaremill.guardedblocks.testing class AkkaHttpCasesSpec extends GuardedBlocksPluginTestSuite("/akkaHttp/routes")
mkubala/scalac-guardedblocks-plugin
tests/akkaHttp/src/test/scala/com/softwaremill/guardedblocks/testing/AkkaHttpCasesSpec.scala
Scala
gpl-3.0
129
package direct.traffic.archivespark.specific.warc.commoncrawl import java.net.URI import direct.traffic.archivespark.dataspecs.MultiTextDataLoader import direct.traffic.archivespark.specific.warc.spec.JCdxSpec import direct.traffic.archivespark.dataspecs.access.ListingFileMap import org.apache.spark.deploy.SparkHadoo...
trafficdirect/ArchiveSparkJCDX
src/main/scala/direct/traffic/archivespark/specific/warc/commoncrawl/CommonCrawlSpec.scala
Scala
mit
888
/** * (c) Copyright 2013 WibiData, Inc. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * 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...
kijiproject/kiji-express
kiji-express/src/main/scala/org/kiji/express/flow/InvalidKijiTapException.scala
Scala
apache-2.0
1,272
package org.scalaide.core.internal.launching import org.eclipse.core.expressions.PropertyTester import org.eclipse.core.runtime.CoreException import org.eclipse.core.runtime.IAdaptable import org.eclipse.jdt.core.IJavaElement import org.eclipse.jdt.core.JavaModelException import org.scalaide.util.eclipse.EclipseUtils....
scala-ide/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/core/internal/launching/ScalaLaunchableTester.scala
Scala
bsd-3-clause
3,316
/* __ *\\ ** ________ ___ / / ___ __ ____ Scala.js Test Suite ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2013-2016, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ |/_// /_\\ \\ http://scala-js.org/ ** ** /____/\\___/...
lrytz/scala-js
test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/util/EventObjectTest.scala
Scala
bsd-3-clause
1,639
/** * 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...
eribeiro/kafka
core/src/main/scala/kafka/utils/NetworkClientBlockingOps.scala
Scala
apache-2.0
5,463
package org.rebeam.boxes.persistence /** * Result of assigning an id to a thing */ sealed trait IdResult { def existing: Boolean def id: Long } /** * Object already had an id * @param id The pre-existing id for the object */ case class ExistingId(id: Long) extends IdResult { def existing = true } /** * O...
trepidacious/boxes-core
src/main/scala/org/rebeam/boxes/persistence/IdResult.scala
Scala
gpl-2.0
510
package fafa.api /** * Created by mac on 03.01.16. */ case class Piece(color: Color, role: Role)
Macok/fafachess
src/main/scala/fafa/api/Piece.scala
Scala
apache-2.0
101