code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
package net.bhardy.braintree.scala import gw._ import search.{TransactionSearchRequest, SubscriptionSearchRequest, CustomerSearchRequest, CreditCardVerificationSearchRequest} abstract trait Pager[T] { def getPage(ids: List[String]): List[T] } class CreditCardVerificationPager(gateway:CreditCardVerificationGateway,...
benhardy/braintree-scala
src/main/scala/Pager.scala
Scala
mit
1,583
/* * Copyright 2016 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...
ahudspith-equalexperts/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600j/v3/retriever/CT600JBoxRetriever.scala
Scala
apache-2.0
1,628
import scala.collection.mutable.Buffer case class Buffer println(/* */ Buffer.getClass) println(classOf[/* file: this, type: org.jetbrains.plugins.scala.lang.psi.api.toplevel.typedef.ScClass */ Buffer])
katejim/intellij-scala
testdata/resolve2/import/clash/TypeAndValue2.scala
Scala
apache-2.0
205
package models import play.api.Play.current import play.api.db.slick.Config.driver.simple._ import play.api.db.slick.DB import play.api.libs.json._ import play.api.libs.functional.syntax._ class Worlds(tag: Tag) extends Table[World](tag, "World") { def id = column[Int]("id", O.PrimaryKey) def randomNumber = colum...
denkab/FrameworkBenchmarks
frameworks/Scala/play2-scala/play2-scala-slick/app/models/World.scala
Scala
bsd-3-clause
1,028
package com.thetestpeople.trt.demo import com.thetestpeople.trt.model.Configuration import com.thetestpeople.trt.json.RestApi import com.github.nscala_time.time.Imports._ import scala.util.Random import org.joda.time.Duration import com.thetestpeople.trt.mother.{ IncomingFactory ⇒ F } import com.thetestpeople.trt.util...
thetestpeople/trt
test/com/thetestpeople/trt/demo/DemoPopulator.scala
Scala
mit
2,918
/* * 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 ...
zhreshold/mxnet
scala-package/core/src/main/scala/org/apache/mxnet/IO.scala
Scala
apache-2.0
13,971
package com.thoughtworks.sbtApiMappings import com.thoughtworks.Extractor._ import sbt._ /** * @author 杨博 (Yang Bo) <pop.atry@gmail.com> */ object PlayApiMappingRule extends AutoPlugin { import ApiMappings.autoImport._ override def requires = ApiMappings override def trigger = allRequirements pr...
ThoughtWorksInc/sbt-api-mappings
src/main/scala/com/thoughtworks/sbtApiMappings/PlayApiMappingRule.scala
Scala
apache-2.0
979
/** * Global Sensor Networks (GSN) Source Code * Copyright (c) 2006-2016, Ecole Polytechnique Federale de Lausanne (EPFL) * * This file is part of GSN. * * GSN 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,...
LSIR/gsn
gsn-tools/src/main/scala/ch/epfl/gsn/config/WatchServiceTask.scala
Scala
gpl-3.0
2,399
package ru.tmtool.math.arithmetic import _root_.junit.framework.TestCase import org.scalatest._ import org.junit.Test import scala.math.E /** * User: skozlov * E-mail: mail.sergey.kozlov@gmail.com * Date: 24.08.2014 */ class LnTest extends TestCase with MustMatchers{ @Test def test1(){ ln(1) mustBe 0 } @Te...
tmtool/math
src/test/scala/ru/tmtool/math/arithmetic/LnTest.scala
Scala
mit
403
package org.jetbrains.plugins.scala.codeInspection.typeChecking import com.intellij.codeInspection.LocalInspectionTool import org.jetbrains.plugins.scala.codeInspection.ScalaLightInspectionFixtureTestAdapter /** * Author: Svyatoslav Ilinskiy * Date: 21.12.15. */ class PatternMayNeverMatchInspectionTest extends ...
whorbowicz/intellij-scala
test/org/jetbrains/plugins/scala/codeInspection/typeChecking/PatternMayNeverMatchInspectionTest.scala
Scala
apache-2.0
1,021
/* * Copyright 2017 by Eugene Yokota * * 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...
eed3si9n/gigahorse
core/src/main/scala/gigahorse/ReactiveHttpClient.scala
Scala
apache-2.0
1,302
/* * 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 ...
tophua/spark1.52
core/src/main/scala/org/apache/spark/rdd/ParallelCollectionRDD.scala
Scala
apache-2.0
6,832
package com.datastax.examples.meetup.model import org.joda.time.{DateTimeZone, DateTime} import org.apache.spark.streaming.Time /** * Created by rustam on 29/12/2014. */ object EventInterval { val All = "ALL" def Seconds(time: Time): String = "S" + new DateTime(time.milliseconds, DateTimeZone.UTC).toString...
rstml/datastax-spark-streaming-demo
src/main/scala/com/datastax/examples/meetup/model/EventInterval.scala
Scala
apache-2.0
340
package org.jetbrains.plugins.scala package annotator package importsTracker import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.extensions.PsiElementExt import org.jetbrains.plugins.scala.lang.psi.api.ScalaFile import org.jetbrains.plugins.scala.lang.psi.api.toplevel.imports.ScImportExpr import org...
triplequote/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/annotator/importsTracker/ImportTracker.scala
Scala
apache-2.0
2,081
/* * 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 ...
tophua/spark1.52
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/LogicalRelation.scala
Scala
apache-2.0
4,145
object Test { def f(i: => Int) = i + i val res = List(42).map(f) // error val g: (=> Int) => Int = f val h: Int => Int = g // error }
lampepfl/dotty
tests/neg/i5976.scala
Scala
apache-2.0
142
/* * Copyright 2001-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
dotty-staging/scalatest
scalatest-test/src/test/scala/org/scalatest/TestNameProp.scala
Scala
apache-2.0
23,341
package metaconfig.generic import scala.annotation.StaticAnnotation import metaconfig.annotation._ import metaconfig.internal.CliParser final class Setting(val field: Field) { def name: String = field.name def withName(name: String): Setting = new Setting(field.withName(name)) def tpe: String = field.tpe def ...
olafurpg/metaconfig
metaconfig-core/shared/src/main/scala/metaconfig/generic/Setting.scala
Scala
apache-2.0
2,779
package com.rasterfoundry.common.utils import com.rasterfoundry.common.cache._ import com.rasterfoundry.common.cache.kryo._ import com.rasterfoundry.common.{Config => CommonConfig} import com.rasterfoundry.datamodel.TiffWithMetadata import geotrellis.vector._ import geotrellis.raster._ import geotrellis.raster.histog...
azavea/raster-foundry
app-backend/common/src/main/scala/utils/CogUtils.scala
Scala
apache-2.0
3,676
package scalaxb.stockquote.server import javax.jws.{ WebService, WebMethod, WebParam, WebResult } import javax.jws.soap.SOAPBinding import javax.jws.soap.SOAPBinding.{Style, Use, ParameterStyle} import collection.mutable import scala.concurrent._, duration.Duration @WebService(name = "DocumentWrappedService", service...
eed3si9n/scalaxb
integration/src/test/scala/DocumentWrappedService.scala
Scala
mit
795
package com.socialthingy.plusf.z80 import com.socialthingy.plusf.ProcessorSpec class BlockOperationSpec extends ProcessorSpec { "ldi" should "operate correctly when bc decrements to a non-zero value" in new Machine { // given registerContainsValue("a", 0x80) registerContainsValue("hl", 0x1000) regi...
alangibson27/plus-f
plus-f/src/test/scala/com/socialthingy/plusf/z80/BlockOperationSpec.scala
Scala
mit
16,710
package com.github.mdr.mash.completions import com.github.mdr.mash.inference._ import com.github.mdr.mash.lexer.Token import com.github.mdr.mash.os.{ EnvironmentInteractions, FileSystem } import com.github.mdr.mash.parser.AbstractSyntax._ import com.github.mdr.mash.utils.Region class ArgCompleter(fileSystem: FileSys...
mdr/mash
src/main/scala/com/github/mdr/mash/completions/ArgCompleter.scala
Scala
mit
3,047
/* * Copyright 2017 Datamountaineer. * * 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...
CodeSmell/stream-reactor
kafka-connect-elastic6/src/main/scala/com/datamountaineer/streamreactor/connect/elastic6/KElasticClient.scala
Scala
apache-2.0
4,460
package worker import java.util.concurrent.Executor import akka.actor.{Actor, ActorLogging, Status} import akka.pattern.pipe import com.cave.metrics.data._ import com.cave.metrics.data.evaluator.{CheckEvaluator, DataFetcher} import init.Init import scala.concurrent.{ExecutionContext, Future} import scala.util.Try o...
gilt/cave
worker/app/worker/Checker.scala
Scala
mit
1,222
/* * 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.apac...
haensel-ams/snowplow
3-enrich/stream-enrich/project/SnowplowKinesisEnrichBuild.scala
Scala
apache-2.0
1,979
object Overflow3 { def foo3(x: Int): Int = { x - 1 } }
epfl-lara/stainless
frontends/benchmarks/strictarithmetic/invalid/Overflow3.scala
Scala
apache-2.0
66
/* * Copyright 2013 Akiyoshi Sugiki, University of Tsukuba * * 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 a...
axi-sugiki/kumoi
src/kumoi/impl/rmi/hook/ClientSideInvoke.scala
Scala
apache-2.0
2,209
package vep.app import akka.http.scaladsl.server.Route import akka.http.scaladsl.server.Directives._ import vep.app.common.CommonIntegrationModule import vep.app.production.ProductionIntegrationModule import vep.app.seo.SeoIntegrationModule import vep.app.user.UserIntegrationModule import vep.framework.database.Databa...
kneelnrise/vep
src/main/scala/vep/app/AppIntegrationModule.scala
Scala
mit
1,417
package akka.ainterface import akka.ainterface.datatype.{ErlAtom, ErlPid, ErlReference, ErlTerm} private[ainterface] sealed abstract class ControlMessage { def target: Target } private[ainterface] object ControlMessage { /** * Cookie is currently unused. * @see [[http://comments.gmane.org/gmane.comp.lang.e...
ainterface/ainterface
ainterface/src/main/scala/akka/ainterface/ControlMessage.scala
Scala
apache-2.0
4,982
/** * 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"); yo...
ollie314/kafka
core/src/test/scala/unit/kafka/server/ReplicaAlterLogDirsThreadTest.scala
Scala
apache-2.0
27,578
package test import akka.actor.ActorSystem import akka.pattern.AskTimeoutException import github.gphat.datadog._ import java.nio.charset.StandardCharsets import org.json4s._ import org.json4s.native.JsonMethods._ import org.specs2.mutable.Specification import scala.concurrent.duration._ import scala.concurrent.Executi...
gphat/datadog-scala
src/test/scala/MetricSpec.scala
Scala
mit
3,115
/* __ __ *\\ * / /____ ___ ____ ___ ___ _/ / lasius * * / __/ -_) _ `/ _ \\/ _ \\/ _ `/ / contributed by tegonal * * \\__/\\__/\\_, /\\___/_//_/\\_,_/_/ http://tegonal.com/ * ...
tegonal/lasius
test/repositories/BookingStatisticsRepositorySpec.scala
Scala
gpl-3.0
7,672
import language.experimental.macros import scala.reflect.macros.blackbox.Context object M { def impl(c: Context)(a: c.Expr[Any]) = c.Expr[Any](c.untypecheck(a.tree)) def m(a: Any) = macro impl }
yusuke2255/dotty
tests/disabled/not-representable/pos/annotated-original/M_1.scala
Scala
bsd-3-clause
200
package chana.jpql import akka.cluster.pubsub.DistributedPubSubMediator.{ Subscribe, SubscribeAck } import chana.Entity import chana.PutJPQL import chana.avro.UpdateAction import chana.avro.UpdateEvent import chana.jpql import org.apache.avro.generic.GenericData.Record import scala.concurrent.duration._ import scala.c...
wandoulabs/chana
src/main/scala/chana/jpql/JPQLBehavior.scala
Scala
apache-2.0
4,914
package dotty.tools package backend.jvm import dotc.ast.Trees.Select import dotc.ast.tpd._ import dotc.core._ import Contexts.{Context, ctx} import Names.TermName, StdNames._ import Types.{JavaArrayType, UnspecifiedErrorType, Type} import Symbols.{Symbol, NoSymbol} import scala.annotation.threadUnsafe import scala.co...
som-snytt/dotty
compiler/src/dotty/tools/backend/jvm/scalaPrimitives.scala
Scala
apache-2.0
15,045
package rescala.fullmv object TurnPhase { type Type = Int val dummy: Type = 0 val Uninitialized: Type = 1 val Framing: Type = 2 val Executing: Type = 3 val Completed: Type = 4 def toString(phase: TurnPhase.Type) = phase match { case 1 => "Uninitialized" case 2 => "Framing"...
guidosalva/REScala
Code/Main/jvm/src/main/scala/rescala/fullmv/TurnPhase.scala
Scala
apache-2.0
420
package com.aesthetikx.android.canopy import android.view.{LayoutInflater, View, ViewGroup} import java.util.List trait CanopyItem { // Expansion def setExpanded(expanded: Boolean): Unit def toggleExpanded(): Unit def isExpanded(): Boolean def parentToggled(parentExpanded: Boolean, parentVisible: Bool...
Aesthetikx/canopy
library/src/main/scala/com/aesthetikx/android/canopy/CanopyItem.scala
Scala
gpl-2.0
694
package se.culvertsoft.mnet.backend import java.io.ByteArrayInputStream import java.io.ByteArrayOutputStream import se.culvertsoft.mgen.javapack.serialization.BinaryReader import se.culvertsoft.mgen.javapack.serialization.BinaryWriter import se.culvertsoft.mgen.javapack.serialization.JsonReader import se.culvertsoft....
culvertsoft/mnet
mnet-backend/src/main/scala/se/culvertsoft/mnet/backend/WebsockSerializer.scala
Scala
gpl-2.0
1,413
package sbt import complete.{ Completion, Completions, DefaultParsers, HistoryCommands, Parser, TokenCompletions } import classpath.ClasspathUtilities.toLoader import DefaultParsers._ import Types.{ const, idFun } import Function.tupled import Command.applyEffect import HistoryCommands.{ Start => HistoryPrefix } impor...
jasonchaffee/sbt
main/command/src/main/scala/sbt/BasicCommands.scala
Scala
bsd-3-clause
13,448
package unfiltered.request import org.specs2.mutable._ object JsonpSpec extends Specification with unfiltered.specs2.jetty.Served { import unfiltered.response._ import unfiltered.request._ import unfiltered.request.{Path => UFPath} class TestPlan extends unfiltered.filter.Plan { def intent = { cas...
hamnis/unfiltered
json4s/src/test/scala/JsonpSpec.scala
Scala
mit
3,073
package collins.models import play.api.libs.json.Json import play.api.libs.json.JsObject import play.api.libs.json.JsNumber import play.api.libs.json.JsString import org.squeryl.PrimitiveTypeMode._ import org.squeryl.Schema import org.squeryl.Table import collins.solr.SolrKey import collins.solr.SolrSingleValue impo...
funzoneq/collins
app/collins/models/AssetMeta.scala
Scala
apache-2.0
6,751
/* Copyright 2009-2016 EPFL, Lausanne */ import leon.lang._ object Termination { abstract class List case class Cons(head: Int, tail: List) extends List case class Nil() extends List def f1(list: List) : Int = f2(list) def f2(list: List) : Int = list match { case Cons(head, tail) => f1(tail) case ...
regb/leon
src/test/resources/regression/termination/valid/Termination_passing1.scala
Scala
gpl-3.0
546
/* * 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/test/scala/tap/nlp/old/openNlp/ParsersSpec.scala
Scala
apache-2.0
1,790
/* * Copyright (C) 2016 University of Basel, Graphics and Vision Research Group * * 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) an...
unibas-gravis/scalismo-ui
src/main/scala/scalismo/ui/view/dialog/ErrorDialog.scala
Scala
gpl-3.0
4,557
package ohnosequences.scalaguide.test.errors import org.scalatest.FunSuite import ohnosequences.scalaguide.errors._ import scalaz._ class ErrorHandlingExamples extends FunSuite { val notPalindromic = "aaaca" val notFiveChars = "012345" test("fail-fast examples") { val notOk = FailFastWonky( fiveCh...
ohnosequences/scala-guide
src/test/scala/errors.scala
Scala
agpl-3.0
906
package scala.collection import org.junit.Assert.{ assertThrows => _, _ } import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.JUnit4 import scala.tools.testkit.AssertUtil._ import Seq.empty @RunWith(classOf[JUnit4]) class IteratorTest { private def from0 = Iterator.from(0) @Test def...
lrytz/scala
test/junit/scala/collection/IteratorTest.scala
Scala
apache-2.0
28,472
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.2 * @date Sun Jan 4 23:09:27 EST 2015 * @see LICENSE (MIT style license file). */ package scalation.analytics import scalation.linalgebra.{MatrixD, VectoD, VectorD, VectorI} import sca...
NBKlepp/fda
scalation_1.2/src/main/scala/scalation/analytics/ANCOVA.scala
Scala
mit
6,567
/* * 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/fpm/FPGrowthSuite.scala
Scala
apache-2.0
3,721
/* * Copyright 2001-2013 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
dotty-staging/scalatest
scalatest-test/src/test/scala/org/scalatest/ShouldBeWritableStructuralSpec.scala
Scala
apache-2.0
5,339
package net.liftweb.markdown /* * Copyright 2013 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 * * U...
lift/framework
core/markdown/src/test/scala/net/liftweb/markdown/BlockParsersTest.scala
Scala
apache-2.0
2,349
package com.sksamuel.elastic4s.searches.aggs import com.sksamuel.elastic4s.searches.aggs.pipeline.PipelineAggregationDefinition import com.sksamuel.exts.OptionImplicits._ case class GeoHashGridAggregationDefinition(name: String, field: Option[String] = None, ...
tyth/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/searches/aggs/GeoHashGridAggregationDefinition.scala
Scala
apache-2.0
1,549
package io.plasmap import io.plasmap.components.MainComponent import japgolly.scalajs.react.{ReactDOM, React} import org.scalajs.dom.ext.Ajax import scala.scalajs.js import scala.util.{Failure, Success} import scalaz.effect.IO import org.scalajs.dom import scala.concurrent.ExecutionContext.Implicits.global import upi...
i-am-the-slime/IntelliJLicenceWinner
client/src/main/scala/io/plasmap/App.scala
Scala
apache-2.0
605
/** * Copyright 2013 Tully Ernst * * 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...
trysetnull/calibris
src/main/scala/trysetnull/com/github/gpr/kernel/KernelBase.scala
Scala
apache-2.0
1,398
package wom import cats.syntax.either._ import common.Checked import common.validation.Checked._ import org.scalatest.prop.TableDrivenPropertyChecks import org.scalatest.{BeforeAndAfterAll, FlatSpec, Matchers} import shapeless.Coproduct import wdl.{WdlNamespace, WdlNamespaceWithWorkflow} import wom.executable.Executab...
ohsu-comp-bio/cromwell
wdl/src/test/scala/wom/WdlInputValidationSpec.scala
Scala
bsd-3-clause
4,871
/** * Swaggy Jenkins * Jenkins API clients generated from Swagger / Open API specification * * The version of the OpenAPI document: 1.1.2-pre.0 * Contact: blah@cliffano.com * * 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-sttp/generated/src/main/scala/org/openapitools/client/api/RemoteAccessApi.scala
Scala
mit
19,168
/* * Copyright (c) 2016 SnappyData, Inc. 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 ap...
vjr/snappydata
core/src/main/scala/org/apache/spark/sql/streaming/RabbitMQUtils.scala
Scala
apache-2.0
3,416
/* * 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 ...
JihongMA/incubator-carbondata
integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/filterexpr/FilterProcessorTestCase.scala
Scala
apache-2.0
11,936
/* ______ ** | ___ \\ ** ___ _ _ _ __ | |_/ /_ _ _ __ _ __ ** / __| | | | '_ \\| ___ \\ | | | '__| '_ \\ ** \\__ \\ |_| | | | | |_/ / |_| | | | | | | ** |___/\\__,_|_| |_\\____/ \\__,_|_| |_| |_| ** ** SunBurn RayTracer ** ...
hsyl20/SunBurn
src/main/scala/samplers/ShuffledSampler.scala
Scala
gpl-3.0
1,314
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package play.filters.csrf import java.util.concurrent.CompletableFuture import javax.inject.Inject import akka.stream.scaladsl.Source import akka.util.ByteString import org.specs2.specification.core.Fragment import play.api.ApplicationLoader.Context ...
marcospereira/playframework
web/play-filters-helpers/src/test/scala/play/filters/csrf/CSRFFilterSpec.scala
Scala
apache-2.0
15,812
package toguru.play import java.util.UUID import play.api.mvc.RequestHeader import toguru.api.Toggle.ToggleId import toguru.api.{Activations, ToguruClient} import toguru.impl.TogglesString.parse import scala.util.Try abstract class AbstractPlaySupport { /** * Creates a new toguru client based on the given cl...
AutoScout24/toguru-scala-client
play/src/main/scala/toguru/play/AbstractPlaySupport.scala
Scala
mit
3,019
/* * * 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 rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or s...
flyberry-capital/scala-slack
src/main/scala/com/flyberrycapital/slack/SlackIM.scala
Scala
mit
1,502
package org.jetbrains.sbt.shell.sbt13_7 import org.jetbrains.plugins.scala.PerfCycleTests import org.jetbrains.sbt.shell.UseSbtTestRunTest import org.junit.experimental.categories.Category /** * Created by Roman.Shein on 13.04.2017. */ @Category(Array(classOf[PerfCycleTests])) class UseSbtTestRunTest_13_7 extends...
jastice/intellij-scala
scala/scala-impl/test/org/jetbrains/sbt/shell/sbt13_7/UseSbtTestRunTest_13_7.scala
Scala
apache-2.0
406
// Copyright 2016 Clément Bizeau // // 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 w...
clebi/projecter
app/models/Auth.scala
Scala
apache-2.0
1,134
package nounou.elements.data import nounou.elements.ranges.{SampleRangeValid} import nounou.elements.traits.{NNDataTiming, NNDataScale} import breeze.linalg.{DenseMatrix => DM, DenseVector => DV} /**NNData class with internal representation as data array. */ class NNDataPreloaded( val data: Array[DV[Int]], timingEnt...
ktakagaki/nounou.rebooted150527
src/main/scala/nounou/elements/data/NNDataPreloaded.scala
Scala
apache-2.0
1,859
package dispatch.as.stream import dispatch._ object Lines { def apply[U](f: String => U) = new stream.StringsByLine[Unit] { def onStringBy(string: String) { f(string) } def onCompleted = () } }
maiflai/reboot
core/src/main/scala/as/stream/lines.scala
Scala
lgpl-3.0
232
package autolift.test.algebird import autolift._ import Algebird._ class `LiftM*Test` extends BaseSpec{ def intintF(x: Int, y: Int) = x + y def anyanyF(x: Any, y: Any) = 1 "liftM2" should "work on a pair of List" in{ val lf = liftM2(intintF) val out = lf(List(0, 1), List(1, 2)) same[List[Int]](out, List(1,...
wheaties/AutoLifts
autolift-algebird/src/test/scala/autolift/algebird/LiftM*Test.scala
Scala
apache-2.0
1,133
package com.lucidchart.open.cashy.uploaders import com.lucidchart.open.cashy.amazons3.S3Client import com.lucidchart.open.cashy.models.{Asset, User, AssetModel} import com.lucidchart.open.cashy.utils.{DownloadHelper, KrakenClient} import scala.collection.mutable.MutableList object KrakenImageUploader extends KrakenI...
lucidsoftware/cashy
app/com/lucidchart/open/cashy/uploaders/KrakenImageUploader.scala
Scala
apache-2.0
3,031
/** * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. */ package kafka.manager.utils import org.apache.curator.framework.{CuratorFrameworkFactory, CuratorFramework} import org.apache.curator.retry.ExponentialBackoffRetry import org.apache.curator.test.Testin...
Flipkart/kafka-manager
test/kafka/manager/utils/CuratorAwareTest.scala
Scala
apache-2.0
1,857
/* * 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 ...
pronix/spark
sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala
Scala
apache-2.0
7,625
package hotpepper4s.raw import hotpepper4s.{CodeName, Area, BaseArea, Results} /** * @author ponkotuy * date: 13/12/27 */ case class MiddleAreaResults( private val api_version: String, private val results_available: Int, private val results_returned: String, private val results_start: Int, priv...
ponkotuy/hotpepper4s
src/main/scala/hotpepper4s/raw/MiddleAreaResults.scala
Scala
mit
961
package com.twitter.util import java.util.logging.{Level, Logger} /** * Wraps an exception that happens when handling another exception in * a monitor. */ case class MonitorException( handlingExc: Throwable, monitorExc: Throwable ) extends Exception(monitorExc) { override def getMessage = "threw exceptio...
stremlenye/util
util-core/src/main/scala/com/twitter/util/Monitor.scala
Scala
apache-2.0
5,267
package Interview import Interview.QuantexaTestQuestion.get_max_difference import org.scalatest.{FlatSpec, Matchers} /** * Created by dan.dixey on 06/07/2017. */ class TestQuantexa extends FlatSpec with Matchers { "question one" should "find the max" in { assert(get_max_difference(List(1, 2, 3, 5, 12, 50,...
dandxy89/LearningScala
src/test/scala/Interview/TestQuantexa.scala
Scala
mit
401
// // MicrosoftTranslator.scala -- Scala class MicrosoftTranslator // Project OrcSites // // Created by amp on Oct 9, 2016. // // Copyright (c) 2017 The University of Texas at Austin. All rights reserved. // // Use and redistribution of this file is governed by the license terms in // the LICENSE file found in the proj...
orc-lang/orc
OrcSites/src/orc/lib/net/MicrosoftTranslator.scala
Scala
bsd-3-clause
4,859
class A { var s = " " } object Main { def main(args: Array[String]) { } }
tobast/compil-petitscala
tests/syntax/bad/testfile-newline_in_string-1.scala
Scala
gpl-3.0
79
/* * 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 ...
chenc10/Spark-PAF
core/src/main/scala/org/apache/spark/rdd/WholeTextFileRDD.scala
Scala
apache-2.0
2,134
package spire package algebra /** * A `RingAlgebra` is a module that is also a `Rng`. An example is the Gaussian * numbers. */ trait RingAlgebra[V, @sp R] extends Any with Module[V, R] with Rng[V] object RingAlgebra { implicit def ZAlgebra[A](implicit vector0: Ring[A], scalar0: Ring[Int]): ZAlgebra[A] = new ZAl...
tixxit/spire
core/shared/src/main/scala/spire/algebra/RingAlgebra.scala
Scala
mit
1,268
package com.sksamuel.elastic4s.searches.aggs import com.sksamuel.elastic4s.script.ScriptDefinition import com.sksamuel.elastic4s.searches.aggs.pipeline.PipelineAggregationDefinition import com.sksamuel.exts.OptionImplicits._ case class AvgAggregationDefinition(name: String, field: ...
aroundus-inc/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/searches/aggs/AvgAggregationDefinition.scala
Scala
apache-2.0
1,182
/* * Copyright 2007-2008 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 applicab...
beni55/liftweb
lift-widgets/src/main/scala/net/liftweb/widgets/flot/FlotAjax.scala
Scala
apache-2.0
2,521
package me.echen.scaldingale import com.twitter.scalding._ /** * Given a dataset of movies and their ratings by different * users, how can we compute the similarity between pairs of * movies? * * This class computes similarities between movies * by representing each movie as a vector of ratings and * computing...
echen/scaldingale
MovieSimilarities.scala
Scala
mit
6,579
/* * Copyright 2017 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
cjwebb/play-filters
src/test/scala/uk/gov/hmrc/play/filters/CacheControlFilterSpec.scala
Scala
apache-2.0
4,999
/* * Copyright 2015 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 agreed t...
rspieldenner/atlas
atlas-akka/src/test/scala/com/netflix/atlas/akka/TestApi.scala
Scala
apache-2.0
1,607
// ScalaMenuTest.scala object ScalaMenuTest { def main(args: Array[String]): Unit = { val v = new javax.swing.JMenu() v.add(new javax.swing.JMenuItem()) //v.add(new java.awt.PopupMenu()); } }
yusuke2255/dotty
tests/untried/pos/kinzer.scala
Scala
bsd-3-clause
208
package spinoco.protocol.sdp /** * Description of the Media transferred * @param tpe Type of the media * @param port Port where the media are available * @param portCount Count of the ports * @param protocol Media transport protocol * @param format ...
Spinoco/protocol
sdp/src/main/scala/spinoco/protocol/sdp/MediaDescription.scala
Scala
mit
1,333
package com.karasiq.shadowcloud.model.utils import com.karasiq.common.memory.MemorySize @SerialVersionUID(0L) final case class StorageHealth(writableSpace: Long, totalSpace: Long, usedSpace: Long = 0L, online: Boolean = true) extends HealthStatus { require(writableSpace >= 0 && totalSpace >= 0 && usedSpace >= 0, "I...
Karasiq/shadowcloud
model/src/main/scala/com/karasiq/shadowcloud/model/utils/StorageHealth.scala
Scala
apache-2.0
1,795
/* * Copyright 2017 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
liquidarmour/ct-calculations
src/test/scala/uk/gov/hmrc/ct/accounts/frs102/boxes/ACQ5021Spec.scala
Scala
apache-2.0
3,480
/* * Copyright 2013 - 2020 Outworkers Ltd. * * 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...
outworkers/phantom
phantom-dsl/src/test/scala/com/outworkers/phantom/builder/serializers/CreateQueryBuilderTest.scala
Scala
apache-2.0
20,864
/* * Copyright 2015 - 2016 Red Bull Media House GmbH <http://www.redbullmediahouse.com> - 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...
RBMHTechnology/eventuate
eventuate-core/src/main/scala/com/rbmhtechnology/eventuate/Recovery.scala
Scala
apache-2.0
14,457
/* * ----------------------------------------------------------------------------- * - ScaNao is an open-source enabling Nao's control from Scala code. - * - At the low level jNaoqi is used to bridge the C++ code with the JVM. - * - ...
iPomme/scanao
server/src/main/scala/io/nao/scanao/srv/SNMotionActor.scala
Scala
mit
2,951
/* * Copyright (C) 2013 Alcatel-Lucent. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * Licensed to you 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 cop...
molecule-labs/molecule
molecule-core/src/main/scala/molecule/process/core/Foreach.scala
Scala
apache-2.0
1,381
package com.sksamuel.elastic4s import org.elasticsearch.common.lucene.search.function.FieldValueFactorFunction import org.elasticsearch.index.query.functionscore.exp.ExponentialDecayFunctionBuilder import org.elasticsearch.index.query.functionscore.factor.FactorBuilder import org.elasticsearch.index.query.functionscor...
alexander-svendsen/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/scorers.scala
Scala
apache-2.0
4,353
/* * 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...
HuaweiBigData/astro
src/test/scala/org/apache/spark/sql/hbase/TestBase.scala
Scala
apache-2.0
6,728
//import com.sfxcode.nosql.mongo.gridfs.GridfsDatabaseFunctions //import com.sfxcode.nosql.mongo.model.ImageMetadata //import org.bson.types.ObjectId // //object GridfsDatabaseApp extends App with GridfsDatabaseFunctions { // // dropImages // // println(imagesCount) // createIndexOnImages("name") // // val id: Obje...
sfxcode/simple-mongo
docs/src/main/scala/GridfsDatabaseApp.scala
Scala
apache-2.0
865
package com.rrdinsights.scalabrine.models import com.rrdinsights.scalabrine.models.Utils._ import java.{lang => jl} final case class TeamGameLog(games: Seq[GameLog]) final case class TeamGameLogResponse(resource: String, teamGameLog: TeamGameLog) final case class GameLog(teamId:...
rd11490/Scalabrine
src/main/scala/com/rrdinsights/scalabrine/models/TeamGameLog.scala
Scala
mit
3,634
package net.hearthstats.game.imageanalysis import java.awt.image.BufferedImage import grizzled.slf4j.Logging import net.hearthstats.core.{Card, Deck, HeroClass} import net.hearthstats.game.imageanalysis.CoordinateCacheBase.UniquePixelIdentifier import net.hearthstats.game.imageanalysis.UniquePixel._ import net.hearth...
HearthStats/HearthStats.net-Uploader
companion/src/main/scala/net/hearthstats/game/imageanalysis/DeckAnalyser.scala
Scala
bsd-3-clause
6,632
/* * Copyright 2015 - 2016 Red Bull Media House GmbH <http://www.redbullmediahouse.com> - 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...
RBMHTechnology/eventuate
eventuate-core/src/main/scala/com/rbmhtechnology/eventuate/ConditionalRequest.scala
Scala
apache-2.0
3,607
package ${package} { package snippet { import org.specs._ import org.specs.runner.JUnit3 import org.specs.runner.ConsoleRunner import net.liftweb._ import http._ import net.liftweb.util._ import net.liftweb.common._ import org.specs.matcher._ import org.specs.specification._ import Helpers._ import lib._ class Hello...
wsaccaco/lift
archetypes/lift-archetype-sbt/src/main/resources/archetype-resources/src/test/scala/snippet/HelloWorldTest.scala
Scala
apache-2.0
1,141
package onion.compiler /* ************************************************************** * * * * Copyright (c) 2016-, Kota Mizushima, All rights reserved. * * * * ...
onionlang/onion
src/main/scala/onion/compiler/SemanticErrorReporter.scala
Scala
bsd-3-clause
13,531
/** * 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
formulae/formula-mem-single/src/test/scala/fr/inria/powerapi/formula/mem/single/MemFormulaSpec.scala
Scala
agpl-3.0
3,114
/* * 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-common/src/test/scala-2.12/com/bwsw/sj/common/si/ServiceSiTests.scala
Scala
apache-2.0
11,612
def mapF[B](f: A => B): Liist[B] = foldRight(Niil: Liist[B]){ case (a,v) => f(a) ::: v }
grzegorzbalcerek/scala-exercises
Liist/stepLiistMapF.scala
Scala
bsd-2-clause
91