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 fds.scala.cache import com.zink.cache.{CacheFactory, Cache} /** * Created by nigel on 02/12/2015. */ object CacheClient { val cache: Cache = CacheFactory.connect("192.168.99.100") cache.set("BBC1", "http://www.bbc.co.uk/iplayer/tv/bbc_one") System.out.println(cache.get("BBC1")) System.out...
Vigil365/fds-project
src/main/scala/fds/scala/cache/CacheClient.scala
Scala
cc0-1.0
693
/* * 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/handlers/ExternalAnalysisHandler.scala
Scala
apache-2.0
1,264
package gapt.proofs.lk import gapt.examples.tape import gapt.expr.formula.hol.universalClosure import gapt.proofs.SequentMatchers import gapt.proofs.context.facet.ProofDefinitions import gapt.proofs.context.facet.ProofNames import gapt.proofs.lk.rules.ProofLink import gapt.proofs.lk.transformations.makeTheoryAxiomsExp...
gapt/gapt
tests/src/test/scala/gapt/proofs/lk/makeTheoryAxiomsExplicitTest.scala
Scala
gpl-3.0
964
package models.webservice import models.admin.{AnswerTable, CategoryTable, QuestionTable} import play.api.Play import play.api.db.slick.DatabaseConfigProvider import play.api.libs.json.Json import slick.driver.JdbcProfile import slick.driver.MySQLDriver.api._ import slick.lifted.{TableQuery, Tag} import scala.concurr...
mustafin/ent-quiz-server
modules/webservice/app/models/webservice/Round.scala
Scala
apache-2.0
5,683
package org.tearne.crosser.spike import java.net.URL import java.io.InputStreamReader import java.io.BufferedReader import scala.io.Source import com.typesafe.config.ConfigFactory object URLRequest extends App{ val stream = new URL("""http://crosser.callsar.com/api/backend/scheme/7?format=json""").openStream() // v...
tearne/Crosser
src/main/scala/org/tearne/crosser/spike/URLRequest.scala
Scala
apache-2.0
502
package zooowner import zooowner.message._ import org.apache.zookeeper.ZooKeeper.States import org.apache.zookeeper.Watcher.Event.KeeperState import scala.concurrent.Future import scala.concurrent.duration._ import ZKConnection._ trait ZKConnection { /** * Takes a function to be called on client taking care ...
ataraxer/zooowner
zooowner-core/src/main/scala/ZKConnection.scala
Scala
mit
2,699
package com.github.sorhus.webalytics.cruft.redis import akka.actor.ActorSystem import com.github.sorhus.webalytics.akka.event._ import com.github.sorhus.webalytics.model._ import com.github.sorhus.webalytics.cruft.model._ import redis.RedisClient import redis.commands.TransactionBuilder import scala.concurrent.Execut...
sorhus/webalytics
service/src/main/scala/com/github/sorhus/webalytics/cruft/redis/RedisMetaDao.scala
Scala
gpl-3.0
2,531
package com.michalplachta.shoesorter.api import akka.actor.{ActorSystem, Props} import com.michalplachta.shoesorter.DecidersGuardian import com.typesafe.config.ConfigFactory object SingleNodeApp extends App { val config = ConfigFactory.load() implicit val system = ActorSystem(config getString "application.name") ...
miciek/akka-sharding-example
src/main/scala/com/michalplachta/shoesorter/api/SingleNodeApp.scala
Scala
mit
442
package models import java.util.concurrent.ConcurrentHashMap case class Team(key: String, email: String) object Teams { import scala.collection.JavaConverters._ private val teams = new ConcurrentHashMap[String, Team]().asScala def list() = teams.values def upsert(team: Team): Option[Team] = teams...
ebowman/play-json-service-lib
play-2.4-example/app/models/Teams.scala
Scala
mit
511
class A { // First three compile. def f1(x: Either[Int, String]) = x.right map (y => y) def f2(x: Either[Int, String]) = for (y <- x.right) yield y def f3(x: Either[Int, (String, Int)]) = x.right map { case (y1, y2) => (y1, y2) } // Last one fails. def f4(x: Either[Int, (String, Int)]) = for (...
felixmulder/scala
test/pending/pos/t5589.scala
Scala
bsd-3-clause
1,065
/* * Copyright 2019 Spotify AB. * * 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 ...
spotify/scio
scio-test/src/test/scala/com/spotify/scio/testing/CoderAssertionsTest.scala
Scala
apache-2.0
2,556
package com.bradbrok.filmomatic.state import com.bradbrok.filmomatic.state.State._ import org.scalatest._ import scala.concurrent.duration._ import scala.language.postfixOps class PlanSpec extends FlatSpec with Matchers { "A balanced Plan" should "report itself as balanced" in { val plan1 = Plan(stages = List...
bradbrok/Film-O-Matic
core/src/test/scala/com/bradbrok/filmomatic/state/PlanSpec.scala
Scala
mit
1,454
package uk.gov.dvla.vehicles.presentation.common.models import play.api.data.Mapping import play.api.data.Forms.{mapping, nonEmptyText} import play.api.libs.json.Json import play.api.data.validation.{ValidationError, Invalid, Valid, Constraint} import uk.gov.dvla.vehicles.presentation.common.clientsidesession.CacheKey...
dvla/vehicles-presentation-common
common-test/app/uk/gov/dvla/vehicles/presentation/common/models/ValtechSelectModel.scala
Scala
mit
1,499
/* Copyright 2009-2016 EPFL, Lausanne */ package leon package genc package ir import IRs.{ NIR, LIR } import collection.mutable.{ Map => MutableMap, Set => MutableSet } // Lift class types to their hierarchy top type in order to properly use tagged union. final class ClassLifter(val ctx: LeonContext) extends Transf...
epfl-lara/leon
src/main/scala/leon/genc/ir/ClassLifter.scala
Scala
gpl-3.0
6,980
package com.avsystem.scex package compiler import java.{lang => jl, util => ju} import com.avsystem.scex.util.MacroUtils import scala.collection.mutable import scala.reflect.internal.util._ import scala.reflect.io.AbstractFile import scala.tools.nsc.Global import scala.tools.nsc.plugins.Plugin /** * Created: 01-04...
pnf/scex
scex-core/src/main/scala/com/avsystem/scex/compiler/ScexGlobal.scala
Scala
apache-2.0
3,146
package ml.sparkling.graph.operators.algorithms.bfs import java.util.Date import ml.sparkling.graph.operators.algorithms.bfs.predicate.BFSPredicate import ml.sparkling.graph.operators.algorithms.bfs.processor.BFSProcessor import org.apache.spark.graphx.{Graph, VertexId} import scala.reflect.ClassTag /** * Created...
sparkling-graph/sparkling-graph
operators/src/main/scala/ml/sparkling/graph/operators/algorithms/bfs/BFSShortestPath.scala
Scala
bsd-2-clause
911
package edu.berkeley.nlp.entity.preprocess import edu.berkeley.nlp.futile.LightRunner import java.io.File import edu.berkeley.nlp.futile.syntax.Trees.PennTreeReader import edu.berkeley.nlp.futile.fig.basic.IOUtils import edu.berkeley.nlp.entity.ConllDoc import edu.berkeley.nlp.entity.DepConstTree import scala.collecti...
gregdurrett/berkeley-entity
src/main/java/edu/berkeley/nlp/entity/preprocess/PTBToConllMunger.scala
Scala
gpl-3.0
5,626
/* * 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 ...
u2009cf/spark-radar
sql/core/src/test/scala/org/apache/spark/sql/DatasetSuite.scala
Scala
apache-2.0
39,080
/* * 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...
psyyz10/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/nn/HardShrink.scala
Scala
apache-2.0
2,582
/** * Copyright (c) 2007-2011 Eric Torreborre <etorreborre@yahoo.com> * * 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 ...
yyuu/specs
src/main/scala/org/specs/xml/ExtendedNode.scala
Scala
mit
5,208
package com.rcirka.play.dynamodb.dao import com.rcirka.play.dynamodb.requests.CreateTableRequest import com.rcirka.play.dynamodb.results.DescribeTableResult import com.rcirka.play.dynamodb.{DynamoDbWebService, DynamoDBClient} import play.api.libs.json._ import scala.concurrent.ExecutionContext.Implicits.global import ...
rcirka/Play-DynamoDB
src/main/scala/com/rcirka/play/dynamodb/dao/GlobalDynamoDao.scala
Scala
mit
3,013
package com.softwaremill.bootzooka.dao.sql import com.softwaremill.bootzooka.dao.DatabaseConfig import com.typesafe.config.ConfigFactory object H2BrowserConsole extends App { val config = new DatabaseConfig { def rootConfig = ConfigFactory.load() } new Thread(new Runnable { def run() = new org.h2.tools...
umitunal/bootzooka
backend/src/main/scala/com/softwaremill/bootzooka/dao/sql/H2BrowserConsole.scala
Scala
apache-2.0
478
package filodb.query.exec.aggregator import filodb.core.query.{MutableRowReader, RangeVector, RangeVectorKey, ResultSchema, TransientHistRow} import filodb.memory.format.RowReader object HistSumRowAggregator extends RowAggregator { import filodb.memory.format.{vectors => bv} class HistSumHolder(var timestamp: Lo...
tuplejump/FiloDB
query/src/main/scala/filodb/query/exec/aggregator/HistSumRowAggregator.scala
Scala
apache-2.0
1,576
package persistent.script import scala.slick.codegen.SourceCodeGenerator /** * Created by yangguo on 14-11-3. */ object AutoGen { def main(args:Array[String]) :Unit={ SourceCodeGenerator.main(Array( "scala.slick.driver.MySQLDriver", "com.mysql.jdbc.Driver", "jdbc:mysql://localhost:3306/craz...
guoyang2011/myfinagle
chcare_back/src/main/scala/cn/changhong/persistent/script/AutoGen.scala
Scala
apache-2.0
437
// Wei Chen - HDBSCAN Test // 2016-11-12 import com.scalaml.TestData._ import com.scalaml.general.MatrixFunc._ import com.scalaml.algorithm.HDBSCAN import org.scalatest.funsuite.AnyFunSuite class HDBSCANSuite extends AnyFunSuite { val hdbscan = new HDBSCAN() test("HDBSCAN Test : Clustering Tiny Data") { ...
Wei-1/Scala-Machine-Learning
src/test/scala/algorithm/clustering/HDBSCANTest.scala
Scala
mit
1,189
import scala.quoted.* class A[+X[_], -Y] class P[T] class B extends A[P, String] inline def test(): Unit = ${ testExpr } def testExpr(using Quotes): Expr[Unit] = { import quotes.reflect.* val t = TypeRepr.of[B] val baseTypes = t.baseClasses.map(b => t.baseType(b)) '{ println(${Expr(baseTypes.map(_.show...
dotty-staging/dotty
tests/run-macros/i8514b/Macro_1.scala
Scala
apache-2.0
346
/** * 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...
sslavic/kafka
core/src/main/scala/kafka/Kafka.scala
Scala
apache-2.0
3,675
/* * 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 ...
adobe-research/spark-cluster-deployment
initial-deployment-puppet/modules/spark/files/spark/examples/src/main/scala/org/apache/spark/examples/mllib/DecisionTreeRunner.scala
Scala
apache-2.0
5,464
package xyz.ariwaranosai.tidori.dom import org.scalajs.dom.html.{BR, Span} import scalatags.JsDom.all._ /** * Created by ariwaranosai on 2017/1/9. * */ object DomElements { val cursor: Span = span(`class`:="typed_cursor")("|").render def htmlBR: BR = br().render }
ariwaranosai/tidori
src/main/scala/xyz/ariwaranosai/tidori/dom/DomElements.scala
Scala
mit
279
package commons.validations.constraints case object PrefixOrSuffixWithWhiteSpaces extends Constraint
Dasiu/play-framework-test-project
app/commons/validations/constraints/PrefixOrSuffixWithWhiteSpaces.scala
Scala
mit
102
/* * Copyright (c) 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....
mdavid/lessig-bigdata
lib/snowplow/4-storage/kinesis-elasticsearch-sink/src/main/scala/com.snowplowanalytics.snowplow.storage.kinesis/package.scala
Scala
mit
1,368
package chana import akka.actor.ActorSystem import akka.http.scaladsl.Http import akka.http.scaladsl.model.headers.RawHeader import akka.http.scaladsl.server.Directives import akka.stream.ActorMaterializer import akka.util.Timeout import chana.rest.RestRouteAkka import scala.concurrent.duration._ /** * Chana REST se...
matthewtt/chana
src/main/scala/chana/ChanaAkkaHttp.scala
Scala
apache-2.0
1,085
/* * 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 ...
gioenn/xSpark
sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileOperator.scala
Scala
apache-2.0
4,599
/* * Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com> */ package play.api.mvc import java.io.IOException import akka.actor.ActorSystem import akka.stream.ActorMaterializer import akka.stream.scaladsl.Source import akka.util.ByteString import org.specs2.mutable.Specification import org.specs2.spec...
Shenker93/playframework
framework/src/play/src/test/scala/play/api/mvc/RawBodyParserSpec.scala
Scala
apache-2.0
2,753
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
bravo-zhang/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonSuite.scala
Scala
apache-2.0
92,707
package org.jetbrains.plugins.scala package lang.refactoring.introduceField import com.intellij.internal.statistic.UsageTrigger import com.intellij.openapi.actionSystem.DataContext import com.intellij.openapi.editor.markup.RangeHighlighter import com.intellij.openapi.editor.{Document, Editor} import com.intellij.opena...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/lang/refactoring/introduceField/ScalaIntroduceFieldFromExpressionHandler.scala
Scala
apache-2.0
8,483
/* * 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...
travisbrown/scalatest
src/main/scala/org/scalatest/BeforeAndAfter.scala
Scala
apache-2.0
11,710
/* --------------------------------------------------------------------------- This software is released under a BSD license, adapted from http://opensource.org/licenses/bsd-license.php Copyright (c) 2010-2018, Brian M. Clapper All rights reserved. See the accompanying license file for details. --------...
bmc/markwrap
src/test/scala/org/clapper/markwrap/HTMLTextSpec.scala
Scala
bsd-3-clause
963
package sds.classfile.bytecode import sds.classfile.ClassfileStream import sds.classfile.ClassfileInformation import sds.classfile.bytecode.{MnemonicTable => Table} import sds.classfile.constant_pool.ConstantInfo class OpcodeInfo(__type: String, _pc: Int) extends ClassfileInformation { def _type: String = __type ...
g1144146/sds_for_scala
src/main/scala/sds/classfile/bytecode/OpcodeInfo.scala
Scala
apache-2.0
3,969
package lila.history import scala.concurrent.duration._ import scala.math.round import org.joda.time.DateTime import play.api.libs.json._ import lila.rating.{ Glicko, PerfType } import lila.user.{ User, Perfs } final class RatingChartApi( historyApi: HistoryApi, mongoCache: lila.memo.MongoCache.Builder, ...
clarkerubber/lila
modules/history/src/main/RatingChartApi.scala
Scala
agpl-3.0
1,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...
akosiaris/kafka
core/src/main/scala/kafka/server/KafkaConfig.scala
Scala
apache-2.0
11,432
/* * 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 ...
aosagie/spark
core/src/test/scala/org/apache/spark/serializer/KryoSerializerBenchmark.scala
Scala
apache-2.0
3,011
package org.jetbrains.plugins.scala.lang.psi.impl.expr import com.intellij.lang.ASTNode import com.intellij.psi._ import org.jetbrains.plugins.scala.extensions.PsiElementExt import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes import org.jetbrains.plugins.scala.lang.psi.ScalaPsiElementImpl import org.jetbrain...
gtache/intellij-lsp
intellij-lsp-dotty/src/org/jetbrains/plugins/scala/lang/psi/impl/expr/ScArgumentExprListImpl.scala
Scala
apache-2.0
3,701
package code.comet import net.liftweb.actor._ import net.liftweb.http._ import js._ import JsCmds._ import JE._ import scala.xml.NodeSeq object Presentation extends LiftActor with ListenerManager { object Ask object Init val initialStep = "title" var currentStep:String = initialStep def createUpdate = c...
joescii/type-prog-impress
src/main/scala/code/comet/Presentation.scala
Scala
apache-2.0
767
package scala.meta.internal.semanticdb.scalac import scala.reflect.internal.util.Position import scala.tools.nsc.reporters.Reporter import scala.tools.nsc.reporters.StoreReporter class SemanticdbReporter(underlying: Reporter) extends StoreReporter { override protected def info0( pos: Position, msg: Stri...
MasseGuillaume/scalameta
semanticdb/scalac/library/src/main/scala/scala/meta/internal/semanticdb/scalac/SemanticdbReporter.scala
Scala
bsd-3-clause
614
package com.wuyuntao.aeneas.tests.views import java.util.UUID import com.wuyuntao.aeneas.View case class UserByName(val username: String, val id: UUID) extends View
wuyuntao/Aeneas
aeneas-core/src/test/scala/com/wuyuntao/aeneas/tests/views/UserByName.scala
Scala
apache-2.0
173
package net.node3.scalabot import org.parboiled2._ object PEGParser { val special = CharPredicate('-', '^', '_', '^', '[', ']', '\\', '`') val nick = CharPredicate('{', '}') ++ special val host = CharPredicate('.') ++ special val CRLF = CharPredicate('\r', '\n') val white = CharPredicate('\t', '\f') ++ CRLF...
nadams/scalabot
src/main/scala/Parser.scala
Scala
mit
1,735
/* Copyright 2009-2016 EPFL, Lausanne */ import leon.annotation._ import leon.lang._ object Mean { def meanOverflow(x: Int, y: Int): Int = { require(x <= y && x >= 0 && y >= 0) (x + y)/2 } ensuring(m => m >= x && m <= y) }
regb/leon
src/test/resources/regression/verification/purescala/invalid/Mean.scala
Scala
gpl-3.0
239
import akka.NotUsed import akka.actor.ActorSystem import akka.stream.{ActorMaterializer, ClosedShape} import akka.stream.scaladsl.{ Broadcast, Flow, GraphDSL, Merge, MergeSorted, RunnableGraph, Sink, Source } import akka.testkit.TestKit import org.scalatest.{AsyncWordSpecLike, MustMatchers} import scal...
easel/akka-streams-intro
src/test/scala/DedupeMergeSpec.scala
Scala
mit
2,765
/* * 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...
travisbrown/scalatest
src/main/scala/org/scalatest/fixture/NoArgTestWrapper.scala
Scala
apache-2.0
770
/* * 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 ...
ConeyLiu/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala
Scala
apache-2.0
36,607
package io.cumulus.controllers import io.cumulus.models.user.User import io.cumulus.models.user.session.{AuthenticationToken, UserSession} import io.cumulus.services.SessionService import io.cumulus.validation.AppError import play.api.i18n.{I18nSupport, Lang, Messages} import play.api.libs.json.Format import play.api....
Cumulus-Cloud/cumulus
server/cumulus-core/src/main/scala/io/cumulus/controllers/UserAuthenticationSupport.scala
Scala
mit
2,412
/* * Copyright (c) 2016. Fengguo (Hugo) Wei and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Detailed co...
arguslab/argus-cit-intellij
src/main/scala/org/argus/cit/intellij/jawa/lang/psi/stubs/impl/JawaExtendsAndImplementsClausesStubImpl.scala
Scala
epl-1.0
2,320
package net.lshift.diffa.participants.web import org.springframework.stereotype.Controller import org.springframework.web.bind.annotation.{RequestBody, RequestMethod, RequestMapping} /** * Simple controller that receives and dumps reports. */ @Controller @RequestMapping(Array("/reports")) class ReportsListenerContr...
aprescott/diffa
participants-web/src/main/scala/net/lshift/diffa/participants/web/ReportsListenerController.scala
Scala
apache-2.0
509
/* * Copyright (C) 2016 Department for Business, Energy and Industrial Strategy * * 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...
UKGovernmentBEIS/rifs-business
src/main/scala/rifs/business/controllers/OpportunityController.scala
Scala
gpl-3.0
3,603
package collins.solr import java.util.Date import collins.models.Asset import collins.models.AssetMeta.ValueType.Boolean import collins.models.AssetMeta.ValueType.Double import collins.models.AssetMeta.ValueType.Integer import collins.models.AssetMeta.ValueType.String import collins.models.AssetMetaValue import coll...
funzoneq/collins
app/collins/solr/asset/AssetSerializer.scala
Scala
apache-2.0
4,433
/* sbt -- Simple Build Tool * Copyright 2010, 2011 Mark Harrah */ package object sbt extends sbt.std.TaskExtra with sbt.Types with sbt.ProcessExtra with sbt.impl.DependencyBuilders with sbt.PathExtra with sbt.ProjectExtra with sbt.DependencyFilterExtra with sbt.BuildExtra { @deprecated("Use SettingKey, which is a d...
kuochaoyi/xsbt
sbt/package.scala
Scala
bsd-3-clause
1,602
package controllers.backend import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future import scala.language.higherKinds import slick.lifted.RunnableCompiled import com.overviewdocs.database.Database import models.pagination.{Page,PageInfo,PageRequest} trait DbBackend { protected val ...
overview/overview-server
web/app/controllers/backend/DbBackend.scala
Scala
agpl-3.0
1,676
/* * 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...
sgururajshetty/carbondata
integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/TimeSeriesPreAggregateTestCase.scala
Scala
apache-2.0
7,374
package io.buoyant.linkerd.protocol import com.twitter.conversions.storage._ import com.twitter.conversions.time._ import com.twitter.finagle.{Service, ServiceFactory, Stack, param} import com.twitter.finagle.http.{param => hparam} import com.twitter.finagle.http.{Request, Response, Status, Version} import com.twitter...
hhtpcd/linkerd
linkerd/protocol/http/src/test/scala/io/buoyant/linkerd/protocol/HttpInitializerTest.scala
Scala
apache-2.0
6,113
/** * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. */ package kafka.manager import akka.actor.{ActorRef, Cancellable, ActorPath} import kafka.manager.features.KMJMXMetricsFeature import kafka.manager.utils.FiniteQueue import org.joda.time.DateTime impor...
Flipkart/kafka-manager
app/kafka/manager/BrokerViewCacheActor.scala
Scala
apache-2.0
12,236
package com.airtonjal.poc.pchr import com.fasterxml.jackson.databind.{ObjectMapper, JsonNode} import com.fasterxml.jackson.databind.node._ import com.airtonjal.poc.cell.CellsInfo import com.airtonjal.poc.geolocation.trilateration.{NonLinearLeastSquaresSolver, TrilaterationFunction} import com.airtonjal.poc.json.JsonUt...
airtonjal/Big-Data-Pipeline
commons/src/main/scala/com/airtonjal/poc/pchr/Geolocation.scala
Scala
mit
8,013
package inloopio.math.vector import java.util.Random import scala.reflect.ClassTag /** * @author Caoyuan Deng */ class InputOutputPointSet[T <: InputOutputPoint: ClassTag] protected (val inputOutputPoints: Array[T]) { private val inputDimension = inputOutputPoints(0).input.dimension private var inputMeans = Ar...
dcaoyuan/inloopio-libs
inloopio-math/src/main/scala/inloopio/math/vector/InputOutputPointSet.scala
Scala
bsd-3-clause
10,995
package com.harrys.file import java.io.File import java.nio.file.attribute.FileAttribute import java.nio.file.{Files, Path} import java.util.concurrent._ import com.typesafe.scalalogging.Logger import org.apache.commons.io.FileUtils import org.slf4j.LoggerFactory import scala.collection.mutable import scala.ref._ /...
harrystech/ingestion-utils
src/main/scala/com/harrys/file/TransientFileFactory.scala
Scala
mit
3,169
/* * 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/fset-faststream
app/model/assessmentscores/AssessmentScoresFinalFeedback.scala
Scala
apache-2.0
1,418
import sbt._ import sbt.Keys._ import com.mojolly.scalate.ScalatePlugin._ import ScalateKeys._ object build extends Build { val templateSettings = scalateSettings ++ Seq( scalateOverwrite := true, scalateTemplateConfig in Compile <<= (baseDirectory) { base => Nil } ) lazy val root = Project(...
KIZI/EasyMiner-Apriori-R
project/build.scala
Scala
bsd-3-clause
370
/* * Copyright 2014 IBM Corp. * * 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...
slowenthal/spark-kernel
kernel/src/main/scala/com/ibm/spark/magic/builtin/ShowSchema.scala
Scala
apache-2.0
2,449
import play.Project._ import sbt._ object ApplicationBuild extends Build { val appName = "first-web-scala-project" val appVersion = "1.0-SNAPSHOT" val appDependencies = Seq( // Add your project dependencies here, jdbc, anorm, "com.typesafe.slick" %% "slick" % "2.1.0", "com.h2da...
fallen-s4e/elibrary-play
project/Build.scala
Scala
bsd-2-clause
481
/* * Copyright (C) 2015 Stratio (http://stratio.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 required by app...
fjsc/sparta
serving-api/src/test/scala/com/stratio/sparta/serving/api/actor/ControllerActorTest.scala
Scala
apache-2.0
2,974
/* * 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/main/scala/org/apache/spark/sql/execution/aggregate/ObjectHashAggregateExec.scala
Scala
apache-2.0
6,290
package de.unihamburg.vsis.sddf.visualisation.logger import de.unihamburg.vsis.sddf.visualisation.model.Analysable import de.unihamburg.vsis.sddf.visualisation.model.BasicAnalysable object BasicOutputter extends Outputter { override def logCustomResults(analysable: Analysable) = { analysable match { case...
numbnut/sddf
src/main/scala/de/unihamburg/vsis/sddf/visualisation/logger/BasicOutputter.scala
Scala
gpl-3.0
558
package com.lynbrookrobotics.potassium.events import com.lynbrookrobotics.potassium.Signal import com.lynbrookrobotics.potassium.tasks.{ContinuousTask, Task} /** * An event that has a start, running, and ending phase. */ class ContinuousEvent { private val onStartSource = new ImpulseEventSource private val onEn...
Team846/potassium
core/shared/src/main/scala/com/lynbrookrobotics/potassium/events/ContinuousEvent.scala
Scala
mit
3,546
/******************************************************************************* * Copyright (c) 2014 Guillaume DUBUISSON DUPLESSIS <guillaume.dubuisson_duplessis@insa-rouen.fr>. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * ...
GuillaumeDD/scala99problems
src/main/scala/multiwayTree/P73/sol01.scala
Scala
gpl-3.0
1,829
/* * 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/t-streams
src/main/scala/com/bwsw/tstreams/common/ThreadAmountCalculationUtility.scala
Scala
apache-2.0
1,650
/* * Copyright 2000-2014 JetBrains s.r.o. * 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 ...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/macros/ScalaMacroTraits.scala
Scala
apache-2.0
1,425
/* * 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/main/scala/uk/gov/hmrc/ct/accounts/frs102/boxes/AC7600.scala
Scala
apache-2.0
859
package one.murch.bitcoin.coinselection import scala.collection.mutable.ListBuffer /** * Created by murch on 31.12.16. */ class Scenario(var startingUtxoSet: Set[Utxo], var operations: ListBuffer[Payment], var descriptor: String) { }
Xekyo/CoinSelectionSimulator
src/main/scala/one/murch/bitcoin/coinselection/Scenario.scala
Scala
mit
241
package by.pavelverk.hardwrite.core.result import by.pavelverk.hardwrite.core.{Result, SampleId} import by.pavelverk.hardwrite.utils.db.DatabaseConnector private[result] trait ResultTable { protected val databaseConnector: DatabaseConnector import databaseConnector.profile.api._ class Results(tag: Tag) extend...
VerkhovtsovPavel/BSUIR_Labs
Master/back/akka-http-rest-master/src/main/scala/by/pavelverk/hardwrite/core/result/ResultTable.scala
Scala
mit
659
package java.nio object ByteBuffer { private final val HashSeed = -547316498 // "java.nio.ByteBuffer".## def allocate(capacity: Int): ByteBuffer = wrap(new Array[Byte](capacity)) // TODO def allocateDirect(capacity: Int): ByteBuffer = ??? def wrap(array: Array[Byte], offset: Int, length: Int): ByteBuffe...
cedricviaccoz/scala-native
javalib/src/main/scala/java/nio/ByteBuffer.scala
Scala
bsd-3-clause
4,440
/* * Copyright 2015-2016 David R. Bild * * 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...
nscala-money/nscala-money
core/src/main/scala/com/github/nscala_money/money/StaticMoney.scala
Scala
apache-2.0
2,031
package org.trustedanalytics.sparktk.frame.internal.ops import org.trustedanalytics.sparktk.frame.internal.rdd.FrameRdd import org.trustedanalytics.sparktk.frame.internal.{ FrameState, FrameTransform, BaseFrame } import org.trustedanalytics.sparktk.frame.Frame trait AppendFrameTransform extends BaseFrame { /** *...
shibanis1/spark-tk
core/src/main/scala/org/trustedanalytics/sparktk/frame/internal/ops/Append.scala
Scala
apache-2.0
724
/* * Copyright (c) 2014-2016 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.apach...
haensel-ams/snowplow
3-enrich/hadoop-event-recovery/src/main/scala/com/snowplowanalytics/hadoop/scalding/JobRunner.scala
Scala
apache-2.0
1,073
/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package play.filters.csrf import org.specs2.mutable.Specification import play.api.libs.ws._ import scala.concurrent.Future import play.api.mvc.{ Handler, Session } import play.api.libs.Crypto import play.api.test.{ FakeApplication, TestServer, P...
jyotikamboj/container
pf-framework/src/play-filters-helpers/src/test/scala/play/filters/csrf/CSRFCommonSpecs.scala
Scala
mit
10,589
package ua.parser import java.util.regex.{ Matcher, Pattern } import MatcherOps._ case class UserAgent(family: String, major: Option[String] = None, minor: Option[String] = None, patch: Option[String] = None) object UserAgent { private[parser] def fromMap(m: Map[String, String]) = m.get("family").map { family =>...
yanana/uap-scala
src/main/scala/ua/parser/UserAgent.scala
Scala
mit
1,910
/* * 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 ...
kimoonkim/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningUtils.scala
Scala
apache-2.0
18,454
package xsbt.boot import java.io.{File,InputStream} import java.net.URL import java.util.Properties import xsbti._ import org.specs2._ import mutable.Specification import LaunchTest._ import sbt.IO.{createDirectory, touch,withTemporaryDirectory} object ScalaProviderTest extends Specification { "Launch" should { "p...
xeno-by/old-scalameta-sbt
launch/src/test/scala/ScalaProviderTest.scala
Scala
bsd-3-clause
4,904
package edu.indiana.ise.spidal.util /** * Created by vibhatha on 7/16/17. */ class ReadText { }
vibhatha/Spark
SparkMlibBenchmark/src/main/scala/edu/indiana/ise/spidal/util/ReadText.scala
Scala
mit
102
package com.arcusys.valamis.certificate.storage.schema import com.arcusys.valamis.certificate.model.goal.{CertificateGoal, GoalType} import com.arcusys.valamis.model.PeriodTypes import com.arcusys.valamis.persistence.common.DbNameUtils._ import com.arcusys.valamis.persistence.common.{LongKeyTableComponent, SlickProfil...
igor-borisov/valamis
valamis-certificate/src/main/scala/com/arcusys/valamis/certificate/storage/schema/CertificateGoalTableComponent.scala
Scala
gpl-3.0
1,977
/* * 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 ...
icexelloss/spark
core/src/main/scala/org/apache/spark/deploy/worker/DriverWrapper.scala
Scala
apache-2.0
4,347
package com.dt.scala.forexpression /** * @author Wang Jialin * Date 2015/8/16 * Contact Information: * WeChat: 18610086859 * QQ: 1740415547 * Email: 18610086859@126.com * Tel: 18610086859 * ΢�Ź����˺ţ�DT_Spark */ object For_Advanced { def main(args: Array[String]) {} def map[A, B](li...
slieer/scala-tutorials
src/main/scala/com/dt/scala/forexpression/For_Advanced.scala
Scala
apache-2.0
624
/* * Copyright 2019 Spotify AB. * * 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 ...
spotify/scio
scio-core/src/main/scala/com/spotify/scio/util/ParallelLimitedFn.scala
Scala
apache-2.0
1,553
/** * 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...
MykolaB/gatling
gatling-core/src/test/scala/io/gatling/core/check/extractor/jsonpath/Json1.scala
Scala
apache-2.0
2,120
package cobalt.ast import cobalt.ast.AST._ import cobalt.ast.AST2IR.convertToIR import cobalt.ast.IRNew._ import cobalt.jar_loader.JarUtility import cobalt.symbol_table.{SymbolTable, ValueEntry} import scala.tools.asm.Opcodes object IRUtils { def typeStringToTypeIR(t: String): TypeIR = { t match { case ...
Michael2109/cobalt
src/main/scala/cobalt/ast/IRUtils.scala
Scala
lgpl-3.0
5,630
/* * 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 ...
zzcclp/carbondata
integration/spark/src/main/scala/org/apache/spark/sql/secondaryindex/events/DeleteSegmentByIdListener.scala
Scala
apache-2.0
3,140
package org.openurp.edu.grade.course.domain.impl import java.text.NumberFormat import java.{ util => ju } import org.beangle.commons.lang.{ Numbers, Strings } import org.beangle.commons.script.ExpressionEvaluator import org.beangle.data.dao.{ EntityDao, OqlBuilder } import org.openurp.edu.base.code.model.ScoreMarkSty...
openurp/edu-core
grade/core/src/main/scala/org/openurp/edu/grade/course/domain/impl/DefaultGradeRateService.scala
Scala
gpl-3.0
4,528
/* * Copyright 2021 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/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600/v2/validation/RSQ7MutuallyExclusiveWithRSQ8.scala
Scala
apache-2.0
1,185
package keystoneml.nodes.stats import breeze.linalg._ import org.apache.spark.SparkContext import org.scalatest.FunSuite import keystoneml.pipelines.Logging import keystoneml.utils.Stats import keystoneml.workflow.PipelineContext class PaddedFFTSuite extends FunSuite with PipelineContext with Logging { test("Test ...
amplab/keystone
src/test/scala/keystoneml/nodes/stats/PaddedFFTSuite.scala
Scala
apache-2.0
1,091
package macrolog.auto import scala.annotation.tailrec import scala.language.experimental.macros /** * Inspired by com.lihaoyi.Sourcecode * * @author Maksim Ochenashko */ case class Position(enclosingClass: String, enclosingMethod: Option[String], fullPosition: String) object Position { implicit def genera...
iRevive/macrolog
src/main/scala/macrolog/auto/Position.scala
Scala
mit
1,580
/* * Copyright (C)2014 D. Plaindoux. * * This program 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, or (at your option) any * later version. * * This program is distributed i...
d-plaindoux/page
src/test/scala/smallibs/page/EngineGeneratorTest.scala
Scala
lgpl-2.1
3,829
package gapt.examples.tip.prod import gapt.expr._ import gapt.expr.ty.TBase import gapt.proofs.context.update.InductiveType import gapt.proofs.Sequent import gapt.proofs.gaptic._ import gapt.provers.viper.aip.AnalyticInductionProver object prop_33 extends TacticsProof { // Sorts ctx += TBase( "sk" ) // Induct...
gapt/gapt
examples/tip/prod/prop_33.scala
Scala
gpl-3.0
7,534