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
/* * Copyright (C) 2017 Michael Dippery <[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 requi...
mdippery/jupiter
src/main/scala/com/mipadi/jupiter/io/files/package.scala
Scala
apache-2.0
4,331
package com.socrata.datacoordinator.util.collection import scala.collection.JavaConverters._ import scala.annotation.unchecked.uncheckedVariance import com.socrata.datacoordinator.id.UserColumnId object UserColumnIdMap { def apply[V](kvs: (UserColumnId, V)*): UserColumnIdMap[V] = { val tmp = new MutableUserColu...
socrata-platform/data-coordinator
coordinatorlib/src/main/scala/com/socrata/datacoordinator/util/collection/UserColumnIdMap.scala
Scala
apache-2.0
5,345
package com.acework.js.components.bootstrap import japgolly.scalajs.react._ /** * Created by weiyin on 10/03/15. */ object Accordion { val Accordion = ReactComponentB[Unit]("Accordion") .stateless .render { (P, C, _) => // TODO spread props PanelGroup(PanelGroup.PanelGroup(accordion = true), C) ...
weiyinteo/scalajs-react-bootstrap
core/src/main/scala/com/acework/js/components/bootstrap/Accordion.scala
Scala
mit
389
/******************************************************************************* * Copyright 2017 Capital One Services, LLC and Bitwise, 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...
capitalone/Hydrograph
hydrograph.engine/hydrograph.engine.spark/src/test/scala/hydrograph/engine/spark/components/CumulateComponentTest.scala
Scala
apache-2.0
14,786
/* * Copyright (c) 2019 Georgios Andreadakis * * 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...
GeorgiosAndreadakis/TextAnalyzerPlatform
framework/src/main/scala/org/tap/framework/persistence/elastic/ReadSingleDocOperation.scala
Scala
apache-2.0
1,635
/* ___ _ ___ _ _ *\\ ** / __| |/ (_) | | The SKilL Generator ** ** \\__ \\ ' <| | | |__ (c) 2013 University of Stuttgart ** ** |___/_|\\_\\_|_|____| see LICENSE ...
XyzNobody/skill
src/main/scala/de/ust/skill/generator/ada/PackageBodyMaker.scala
Scala
bsd-3-clause
2,887
package com.twitter.finagle.memcached.unit import com.twitter.finagle.memcached.MockClient import com.twitter.finagle.memcached.protocol.ClientError import com.twitter.util.Await import org.junit.runner.RunWith import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class M...
Krasnyanskiy/finagle
finagle-memcached/src/test/scala/com/twitter/finagle/memcached/unit/MockClientTest.scala
Scala
apache-2.0
4,234
package com.twitter.scalding.parquet.scrooge import cascading.scheme.Scheme import com.twitter.scalding._ import com.twitter.scalding.parquet.thrift.ParquetThriftBase import com.twitter.scalding.source.{ DailySuffixSource, HourlySuffixSource } import com.twitter.scrooge.ThriftStruct trait ParquetScrooge[T <: ThriftSt...
tglstory/scalding
scalding-parquet-scrooge/src/main/scala/com/twitter/scalding/parquet/scrooge/ParquetScrooge.scala
Scala
apache-2.0
1,135
/* * Licensed to Cloudera, Inc. under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Cloudera, Inc. licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use thi...
epssy/hue
apps/spark/java/livy-server/src/main/scala/com/cloudera/hue/livy/server/interactive/InteractiveSessionFactory.scala
Scala
apache-2.0
1,434
package org.jetbrains.plugins.scala.debugger.smartStepInto import java.util.{Collections, List => JList} import com.intellij.debugger.SourcePosition import com.intellij.debugger.actions.{JvmSmartStepIntoHandler, MethodSmartStepTarget, SmartStepTarget} import com.intellij.openapi.fileEditor.FileDocumentManager import ...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/debugger/smartStepInto/ScalaSmartStepIntoHandler.scala
Scala
apache-2.0
8,792
package com.lambtors.poker_api.module.poker.application.win import cats.implicits._ import com.lambtors.poker_api.module.poker.domain.{PlayerRepository, PokerGameRepository} import com.lambtors.poker_api.module.poker.domain.error.{GameCannotEndWhenRiverIsNotDealt, PokerGameNotFound} import com.lambtors.poker_api.modul...
lambtors/poker-api
src/main/scala/com/lambtors/poker_api/module/poker/application/win/GameWinnersFinder.scala
Scala
mit
2,447
/** * Copyright 2016 Martin Snyder * * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ */ package com.martinsnyder.logger case class SimpleWriter[T](log: List[String], value: T) { def map[B](f: T => B): SimpleWriter[B] = SimpleWriter(log, f(value)) def flatMap[B](f: T ...
MartinSnyder/monadic-logging
src/main/scala/com/martinsnyder/logger/SimpleWriter.scala
Scala
apache-2.0
456
package com.github.aselab.activerecord.experimental import com.github.aselab.activerecord._ import com.github.aselab.activerecord.dsl._ class VersionsSpec extends DatabaseSpecification { "Versions" should { val modelName = "com.github.aselab.activerecord.models.VersionModel" "doUpdateでVersionに保存されること" in {...
aselab/scala-activerecord
activerecord/src/test/scala/experimemtal/VersionsSpec.scala
Scala
mit
760
package io.coral.api import akka.actor.ActorSystem import akka.actor.Props import akka.io.IO import akka.util.Timeout import io.coral.actors.RuntimeActor import spray.can.Http import scala.concurrent.duration._ import akka.pattern.ask import scala.concurrent.Await import scala.concurrent.ExecutionContext.Implicits.gl...
daishichao/coral
runtime-api/src/main/scala/io/coral/api/Boot.scala
Scala
apache-2.0
1,159
/* * 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 ...
litao-buptsse/spark-startup
src/main/scala/com/sogou/spark/Settings.scala
Scala
apache-2.0
1,424
package afronski.playground.akka.actors import akka.actor.Props import akka.actor.Actor import akka.actor.ActorSystem case class DoWork(factor: Int) class RestartException(val message: String) extends Exception(message) class OneTimeWorker extends Actor { override def postRestart(reason: Throwable) = { System.ou...
afronski/playground-jvm
scala/akka/actor-patterns/src/main/scala/actors/OneTimeWorker.scala
Scala
mit
1,246
package com.lucaswilkins.newtonfractals /** * Trait that allows conversion between pixels and values in [0,1] */ trait PixelValueMapping { def xSize: Int def ySize: Int /** * Converts a pixel coordinate to [0,1] * * @param i pixel x * @param j pixel y * @return a tuple of doubles in [0,1]x[0,1...
drlucaswilkins/newtonfractal
NewtonFractal/src/main/scala/com/lucaswilkins/newtonfractals/PixelValueMapping.scala
Scala
gpl-2.0
775
/* * This file is part of CoAnSys project. * Copyright (c) 2012-2015 ICM-UW * * CoAnSys 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 option) any...
acz-icm/coansys
citation-matching/citation-matching-core-code/src/main/scala/pl/edu/icm/coansys/citations/util/ngrams.scala
Scala
agpl-3.0
1,742
package sp.labkit { import sp.domain._ import sp.domain.Logic._ object APILabkit { val service = "Labkit" val topicRequest = "labkitRequests" val topicResponse = "labkitResponse" sealed trait Request sealed trait Response sealed trait API case class OPEvent(name: String, time: Stri...
kristoferB/SP
spcontrol/api/src/main/scala/sp/APILabkit.scala
Scala
mit
2,528
/* * Copyright 2018 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/worldpay-downloader
test/support/steps/BaseSteps.scala
Scala
apache-2.0
927
package com.mindcandy.data.jobs.trends import argonaut._ import com.datastax.spark.connector._ import com.datastax.spark.connector.types.TypeConverter import com.mindcandy.data.cassandra.converters._ import com.mindcandy.data.jobs.BaseJob import com.mindcandy.data.jobs.trends.model.EventForTrends import com.mindcandy....
lvicentesanchez/fast-gt-perfect
src/main/scala/com/mindcandy/data/jobs/trends/TrendsJob.scala
Scala
mit
2,597
import java.io.File class FileMatcher { private def filesHere = new File(".").listFiles def filesEnding(query: String) = filesMatching(_.endsWith(query)) def filesContaining(query: String) = filesMatching(_.contains(query)) def filesRegex(query: String) = filesMatching(_.matches(query)) def filesMatching(m...
mhotchen/programming-in-scala
src/FileMatcher.scala
Scala
apache-2.0
417
/** * Copyright 2016, deepsense.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
deepsense-io/seahorse-workflow-executor
commons/src/main/scala/io/deepsense/commons/resources/ManagedResource.scala
Scala
apache-2.0
832
package jp.scaleout.dw.category.models import java.sql.Timestamp import scala.slick.driver.H2Driver.simple.Table case class Page( clFrom: Int, clTo: String, clSortkey: String, clTimestamp: Timestamp, clSortkeyPrefix: String, clCollation: String, clType: String) object Pages extends Table[CategoryLink]("page...
mwsoft/wikipedia_categorizer
src/main/scala/jp/mwsoft/wikipedia/categorizer/models/Pages.scala
Scala
mit
794
package org.bitcoins.script.control import org.bitcoins.marshallers.script.ScriptParser import org.bitcoins.script.result.{ScriptErrorInvalidStackOperation, ScriptErrorOpReturn} import org.bitcoins.script.{ScriptProgram} import org.bitcoins.script.arithmetic.OP_ADD import org.bitcoins.script.bitwise.OP_EQUAL import or...
Christewart/scalacoin
src/test/scala/org/bitcoins/script/control/ControlOperationsInterpreterTest.scala
Scala
mit
20,412
package inloopio.math.random /** * Deterministic random number generators are repeatable, which can prove * useful for testing and validation. This interface defines an operation * to return the seed data from a repeatable RNG. This seed value can then * be reused to create a random source with identical output....
dcaoyuan/inloopio-libs
inloopio-math/src/main/scala/inloopio/math/random/RepeatableRNG.scala
Scala
bsd-3-clause
499
/** * Licensed to Big Data Genomics (BDG) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The BDG licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
VinACE/adam
adam-core/src/test/scala/org/bdgenomics/adam/rdd/read/realignment/IndelRealignmentTargetSuite.scala
Scala
apache-2.0
9,356
package poly.collection.search import poly.collection._ /** * Represents a simple state space that is specified by a state transition function. * @author Tongfei Chen * @author Yuhuan Jiang * @since 0.1.0 */ trait StateSpace[S] { self => /** Returns the successive states of the specified state under this stat...
ctongfei/poly-collection
core/src/main/scala/poly/collection/search/StateSpace.scala
Scala
mit
1,555
package models import java.util.UUID case class Prediction(imageId: UUID, category: String, probability: Double, left: Int, top: Int, right: Int, bottom: Int, predictionId: Int = -1)
SwaggerTagger/octo-tagger-backend
app/models/Prediction.scala
Scala
mit
184
//package io.eels.component.avro // //import org.scalatest.{Matchers, WordSpec} // //class AvroSourceParserTest extends WordSpec with Matchers { // // "AvroSourceParser" should { // "parse avro url" in { // val url = "avro:some/path" // AvroSourceParser(url).get shouldBe AvroSourceBuilder("some/path", Ma...
eel-lib/eel
eel-core/src/test/scala/io/eels/component/avro/AvroSourceParserTest.scala
Scala
mit
1,065
package scrupal.admin import org.specs2.execute.AsResult import play.api.libs.json.{JsArray, JsNull} import play.api.test.FakeRequest import scrupal.core._ import scrupal.test.{ControllerSpecification, SharedTestScrupal} /** Test Cases For AdminController */ class AdminProviderSpec extends ControllerSpecification("A...
scrupal/scrupal-core
scrupal-server/src/test/scala/scrupal/admin/AdminProviderSpec.scala
Scala
apache-2.0
6,611
/* * Copyright 2001-2008 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...
kevinwright/scalatest
src/test/scala/org/scalatest/matchers/ShouldBeMatcherSpec.scala
Scala
apache-2.0
13,114
/** * Copyright 2011-2016 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...
ryez/gatling
gatling-charts/src/main/scala/io/gatling/charts/stats/buffers/RunTimes.scala
Scala
apache-2.0
745
package com.arcusys.valamis.gradebook.service.impl import com.arcusys.learn.liferay.services.MessageBusHelper import com.arcusys.valamis.gradebook.model.{CourseActivityType, CourseGrade} import com.arcusys.valamis.gradebook.service._ import com.arcusys.valamis.gradebook.storage.CourseGradeTableComponent import com.arc...
arcusys/Valamis
valamis-gradebook/src/main/scala/com/arcusys/valamis/gradebook/service/impl/TeacherCourseGradeServiceImpl.scala
Scala
gpl-3.0
3,684
package org.jetbrains.sbt.project import java.io.File import com.intellij.openapi.diagnostic.Logger import com.intellij.openapi.externalSystem.model.ProjectSystemId import com.intellij.openapi.externalSystem.settings.ExternalProjectSettings import com.intellij.openapi.externalSystem.test.ExternalSystemImportingTestCas...
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/sbt/project/ImportingTestCase.scala
Scala
apache-2.0
2,542
package com.microsoft.partnercatalyst.fortis.spark.transforms.language import org.scalatest.FlatSpec class LocalLanguageDetectorSpec extends FlatSpec { "The language detector" should "detect English" in { val detector = new LocalLanguageDetector() assert(detector.detectLanguage("And I in going, madam, weep ...
CatalystCode/project-fortis-spark
src/test/scala/com/microsoft/partnercatalyst/fortis/spark/transforms/language/LocalLanguageDetectorSpec.scala
Scala
mit
1,763
import scala.scalajs.js import scala.scalajs.js.annotation.* class A { @JSExport("value") // error def hello: String = "foo" @JSExport("value") def world: String = "bar" } class B { class Box[T](val x: T) @JSExport // error def ub(x: Box[String]): String = x.x @JSExport def ub(x: Box[Int]): Int = ...
dotty-staging/dotty
tests/neg-scalajs/jsexport-double-definition.scala
Scala
apache-2.0
326
package jsky.app.ot.gemini.editor.auxfile import edu.gemini.auxfile.api.AuxFile import edu.gemini.spModel.core.SPProgramID import jsky.app.ot.gemini.editor.ProgramForm import jsky.app.ot.vcs.VcsOtClient import java.text.SimpleDateFormat import java.util.{Collections, Date, TimeZone} import jsky.util.gui.Resources im...
spakzad/ocs
bundle/jsky.app.ot/src/main/scala/jsky/app/ot/gemini/editor/auxfile/AuxFileEditor.scala
Scala
bsd-3-clause
6,217
package lila.api import play.api.libs.json._ import lila.common.PimpedJson._ import lila.db.api._ import lila.db.Implicits._ import lila.game.GameRepo import lila.hub.actorApi.{ router => R } import lila.rating.Perf import lila.user.tube.userTube import lila.user.{ UserRepo, User, Perfs, Profile } import makeTimeout....
pavelo65/lila
modules/api/src/main/UserApi.scala
Scala
mit
3,523
package com.campudus.tableaux.database.domain import com.campudus.tableaux.RequestContext import com.campudus.tableaux.database.model.FolderModel.FolderId import com.campudus.tableaux.router.auth.permission.{RoleModel, ScopeMedia} import io.vertx.core.json.JsonObject import org.joda.time.DateTime import org.vertx.scal...
campudus/tableaux
src/main/scala/com/campudus/tableaux/database/domain/folder.scala
Scala
apache-2.0
1,457
package org.jetbrains.plugins.scala package lang package psi package impl package toplevel package typedef import com.intellij.lang.ASTNode import com.intellij.openapi.progress.ProgressManager import com.intellij.openapi.project.DumbService import com.intellij.psi._ import com.intellij.psi.impl.light.LightField import...
JetBrains/intellij-scala-historical
src/org/jetbrains/plugins/scala/lang/psi/impl/toplevel/typedef/ScClassImpl.scala
Scala
apache-2.0
11,823
package dnd5_dm_db package lang import dnd5_dm_db.model._ object Fr extends Lang with fr.AlignmentText with fr.UnitsText with fr.SpellText with fr.MonsterText with fr.SkillAndLanguageText{ val id: String = "fr" val or : String = "ou" val seeBelow : String = "voir ci-dessous" val monsters : St...
lorilan/dnd5_dm_db
src/main/scala/dnd5_dm_db/lang/Fr.scala
Scala
gpl-3.0
5,749
package org.scalawiki.wlx.stat import org.scalawiki.dto.markup.Table import org.scalawiki.wlx.{ImageDB, MonumentDB} class MostPopularMonuments(val stat: ContestStat) extends Reporter { def this(imageDbs: Seq[ImageDB], totalImageDb: Option[ImageDB], monumentDb: MonumentDB) = { this(ContestStat( monumentDb...
intracer/scalawiki
scalawiki-wlx/src/main/scala/org/scalawiki/wlx/stat/MostPopularMonuments.scala
Scala
apache-2.0
2,388
package demo object RingBuffer { def nextPowerOfTwo(value: Int): Int = 1 << (32 - Integer.numberOfLeadingZeros(value - 1)) } class RingBuffer[T: scala.reflect.ClassTag] private (capacity: Int, mask: Int, buffer: Array[T]) { private var tail: Long = 0L private var head: Long = 0L def this(capacity: Int) {...
haghard/docker-compose-akka-cluster
src/main/scala/demo/RingBuffer.scala
Scala
apache-2.0
1,615
package com.ytsebro.beans /** * Created by yegor on 8/21/16. */ case class Node(id: Int, text: String, pos: String, sent: Int)
egorsz/textview
src/main/scala/com/ytsebro/beans/Node.scala
Scala
gpl-3.0
131
/* * Copyright 2015 PagerDuty, Inc. * * Author: Jesse Haber-Kucharsky <[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/...
PagerDuty/fun-http-client
library/src/main/scala/com/pagerduty/funhttpclient/HttpContext.scala
Scala
apache-2.0
1,415
package tests.rescala.testtools import rescala.interface.RescalaInterface class SetAndExtractTransactionHandle[Api <: RescalaInterface](val api: Api) { import api._ def SetAndExtractTransactionHandle[A, N](source: Source[A], value: A)(implicit engine: Scheduler): Initializer = { engine.forceNewTransaction(sou...
guidosalva/REScala
Code/Main/shared/src/test/scala-2/tests/rescala/testtools/SetAndExtractTransactionHandle.scala
Scala
apache-2.0
402
/* * Copyright (C) 2017 LREN CHUV for Human Brain Project * * This program 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 option) any later version...
LREN-CHUV/workflow
src/main/scala/ch/chuv/lren/woken/backends/faas/chronos/ChronosJob.scala
Scala
apache-2.0
8,000
package com.karasiq.shadowcloud.webapp.components.region import akka.util.ByteString import com.karasiq.bootstrap.Bootstrap.default._ import com.karasiq.shadowcloud.config.SerializedProps import com.karasiq.shadowcloud.model.RegionId import com.karasiq.shadowcloud.webapp.components.common.{AppComponents, AppIcons} imp...
Karasiq/shadowcloud
server/webapp/src/main/scala/com/karasiq/shadowcloud/webapp/components/region/RegionsView.scala
Scala
apache-2.0
4,567
package util import java.net.URLDecoder import java.io.IOException import net.sourceforge.plantuml.code.TranscoderUtil object PlantUmlHelper { /** * Build the complete UML source from the compressed source extracted from the HTTP URI. * * @param source * the last part of the URI containing the compre...
grahamar/Giles
app/util/PlantUmlHelper.scala
Scala
apache-2.0
1,004
package org.openapitools.client.model case class GithubRespositoryContainer ( _class: Option[String], _links: Option[GithubRespositoryContainerlinks], _repositories: Option[GithubRepositories] ) object GithubRespositoryContainer { def toStringBody(var_class: Object, var_links: Object, var_repositorie...
cliffano/swaggy-jenkins
clients/scala-gatling/generated/src/gatling/scala/org/openapitools/client/model/GithubRespositoryContainer.scala
Scala
mit
477
package alwsk object AlwskBuildSharedConst { val prop_alrauneJsCdnUrl = "alrauneJsCdnUrl" }
vovagrechka/fucking-everything
alraune/alraune-wsk/src/sharedWithBuildMetaProject/scala/alwsk/AlwskBuildSharedConst.scala
Scala
apache-2.0
95
/** * Copyright (C) 2019 Inera AB (http://www.inera.se) * * This file is part of statistik (https://github.com/sklintyg/statistik). * * statistik 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 v...
sklintyg/statistik
gatling/src/test/scala/se/inera/statistics/gatling/InloggadSjukskrivningslangd.scala
Scala
lgpl-3.0
1,069
package xyztr import org.scalatest.{FlatSpec, Matchers} class UserToUserChannelTest extends FlatSpec with Matchers { "FriendRequest" can "be sent to someone" in { val mats = User("Mats Henricson") // Mats sends a friend request to Bengt val friendRequestToBengt = FriendRequest(mats) UserToUserChann...
matshenricson/xyztr
src/test/scala/xyztr/UserToUserChannelTest.scala
Scala
gpl-3.0
2,520
package com.bowlingx import java.io.ByteArrayInputStream import java.nio.charset.StandardCharsets import akka.actor.ActorSystem import com.bowlingx.actors.{Answer, Render} import com.bowlingx.providers.ScriptResources import play.api.inject.ApplicationLifecycle import scala.concurrent.{ExecutionContext, Future} impo...
BowlingX/play-webpack
src/play-module/src/main/scala/com/bowlingx/JavascriptEngine.scala
Scala
mit
2,688
package de.htwg.zeta.server.model.modelValidator.validator.rules.validatorDsl import de.htwg.zeta.server.model.modelValidator.validator.rules.metaModelDependent.NodeAttributes /** * This file was created by Tobias Droth as part of his master thesis at HTWG Konstanz (03/2017 - 09/2017). */ class AttributesInNodes(no...
Zeta-Project/zeta
api/server/app/de/htwg/zeta/server/model/modelValidator/validator/rules/validatorDsl/AttributesInNodes.scala
Scala
bsd-2-clause
449
package io.prediction.controller import io.prediction.workflow.PersistentModelManifest import io.prediction.workflow.SharedSparkContext import io.prediction.workflow.StopAfterPrepareInterruption import io.prediction.workflow.StopAfterReadInterruption import grizzled.slf4j.Logger import io.prediction.workflow.Workflow...
ch33hau/PredictionIO
core/src/test/scala/io/prediction/controller/EngineTest.scala
Scala
apache-2.0
17,440
package org.clulab.serialization.json import java.io.File import org.clulab.processors.DocumentAttachmentBuilderFromJson import org.clulab.processors.{Document, Sentence} import org.clulab.struct.Edge import org.clulab.struct.{DirectedGraph, GraphMap} import org.clulab.utils.FileUtils import org.json4s import org.json...
sistanlp/processors
main/src/main/scala/org/clulab/serialization/json/JSONSerializer.scala
Scala
apache-2.0
3,763
/** * (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-modeling
kiji-modeling-examples/src/main/scala/org/kiji/modeling/examples/ItemItemCF/MovieImporter.scala
Scala
apache-2.0
2,021
/* * Copyright 2017 PayPal * * 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 ...
SarathChandran/squbs
squbs-unicomplex/src/test/scala/org/squbs/stream/PerpetualStreamSpec.scala
Scala
apache-2.0
7,104
/* * Copyright (c) 2013-2015 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 which * accompanies this distribution and is available at * http://www.opensource.org/licenses/apache2.0.php. ...
mcharles/geomesa
geomesa-filter/src/main/scala/org/locationtech/geomesa/filter/expression/FastPropertyName.scala
Scala
apache-2.0
2,006
package controllers import play.api.mvc.Action import lila.app._ import lila.common.HTTPRequest import lila.game.{ Game => GameModel, GameRepo } import play.api.http.ContentTypes import play.api.libs.iteratee.{ Iteratee, Enumerator } import play.api.mvc.Result import views._ object Export extends LilaController { ...
r0k3/lila
app/controllers/Export.scala
Scala
mit
2,605
package com.github.pirita import akka.actor.ActorSystem import akka.stream.ActorFlowMaterializer import akka.stream.scaladsl.{Flow, RunnableFlow, Sink, Source} import scala.concurrent.Future import scala.util.Random /** * Basic example of Linear Flow * @author Ignacio Navarro Martín */ object BasicLinearFlow exte...
pirita/streams
src/main/scala/com/github/pirita/BasicLinearFlow.scala
Scala
mit
795
package scaffvis.client.components import scaffvis.client.AppMain.{ScaffoldLoc, Loc} import scaffvis.client.components.common.{Svg, SvgProvider} import scaffvis.client.store.model.Scaffolds import scaffvis.layout.Rect import scaffvis.shared.model.{HierarchyLevels, Scaffold, ScaffoldId} import diode.react.ModelProxy im...
velkoborsky/scaffvis
client/src/main/scala/scaffvis/client/components/Breadcrumb.scala
Scala
gpl-3.0
4,129
/* * Copyright (C) 2015 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.org/li...
linearregression/eventuate-chaos
src/main/scala/com/rbmhtechnology/eventuate/chaos/ChaosSettings.scala
Scala
apache-2.0
1,410
/* * 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 ...
tejasapatil/spark
core/src/main/scala/org/apache/spark/TaskContextImpl.scala
Scala
apache-2.0
6,437
package hasheq package mutable import scala.language.higherKinds /** Witness that for all types `V`, `M[K, V]` represents a mutable map * with keys of type `K` and values of type `V`. */ trait MapRepr[M[_, _], K] { def empty[V]: M[K, V] def fromIterable[V](col: Iterable[(K, V)])(implicit E: Equal[K]): M[K, V]...
TomasMikula/hasheq
src/main/scala/hasheq/mutable/MapRepr.scala
Scala
bsd-3-clause
1,260
package models.jnlp /** * Created by IntelliJ IDEA. * User: Jason * Date: 5/24/12 * Time: 4:43 PM */ abstract class AbstractJar(val jarName: String, val isMain: Boolean, val isLazy: Boolean) class Jar(name: String, iAmLazy: Boolean) extends AbstractJar(name, false, iAmLazy) class MainJar(name: String) extends A...
NetLogo/SimServer
app/models/jnlp/Jar.scala
Scala
gpl-2.0
350
package sw.pairrdds import org.apache.spark.{SparkConf, SparkContext} object ThisWillNotCompile extends App { val sparkConf = new SparkConf() .setAppName(this.getClass.getName) .setMaster("local[*]") val sc = new SparkContext(sparkConf) val allShakespeare = sc.textFile("src/main/resources/all-shakespe...
rabbitonweb/spark-workshop
src/main/scala/sw/pairrdds/CompilationError.scala
Scala
apache-2.0
484
package cassandra.implicits import cassandra.cql.CqlTuple import cassandra.format.CqlFormat import scala.language.implicitConversions trait TupleImplicits { self: LowPriorityImplicits => type CF[T] = CqlFormat[T] implicit def tuple1[T1](implicit tf: CF[T1]): CF[(T1)] = makeFormat(t1 => CqlTuple(tf(t1))) i...
fabianmurariu/cassandra-scala-nuveau-driver
cql/lib/src/main/scala/cassandra/implicits/TupleImplicits.scala
Scala
apache-2.0
1,339
// @SOURCE:/home/eva/PlayResponsiveKamanu/conf/routes // @HASH:191b1e11d2641e11fc2fa287beb6243a788da730 // @DATE:Tue Oct 08 01:09:16 HST 2013 import play.core._ import play.core.Router._ import play.core.j._ import play.api.mvc._ import play.libs.F import Router.queryString object Routes extends Router.Routes { p...
evashek/PlayResponsiveKamanu
target/scala-2.10/src_managed/main/routes_routing.scala
Scala
apache-2.0
2,748
/* * Scala.js (https://www.scala-js.org/) * * Copyright EPFL. * * Licensed under Apache License 2.0 * (https://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package org.scalajs.testing.common import sbt...
gzm0/scala-js
test-common/src/main/scala/org/scalajs/testing/common/JSEndpoints.scala
Scala
apache-2.0
1,277
package controllers.pages import models.Associations import models.core.{ Annotations, AnnotatedThings, Datasets } import play.api.db.slick._ import play.api.mvc.Controller import controllers.AbstractController object DatasetPagesController extends AbstractController { def listAll = loggingAction { implicit sessio...
pelagios/peripleo
app/controllers/pages/DatasetPagesController.scala
Scala
gpl-3.0
1,156
package org.embulk.parser.firebase_avro.json import io.circe.{Encoder, Json} object CustomEncoder { implicit val mapEncoder: Encoder[Map[String, Any]] = new Encoder[Map[String, Any]] { final def apply(a: Map[String, Any]): Json = { val jsonValues = a.keys.map { key => a(key) match { ...
smdmts/embulk-parser-firebase_avro
src/main/scala/org/embulk/parser/firebase_avro/json/CustomEncoder.scala
Scala
mit
652
/** * * CRC16 * Ledger wallet * * Created by Pierre Pollastri on 27/10/15. * * The MIT License (MIT) * * Copyright (c) 2015 Ledger * * 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 Softwa...
LedgerHQ/ledger-wallet-android
app/src/main/scala/co/ledger/wallet/core/utils/CRC16.scala
Scala
mit
1,592
package cat.alex.dominoes import org.scalatest.{Matchers, FlatSpec} class PlayerSpec extends FlatSpec with Matchers { behavior of "A player" def tile1 = Tile(1, 2) it should "calculate points as the sum of all tiles values" in { Player("", List()).points shouldBe 0 Player("", List(tile1, tile1)).point...
alxgarcia/dominoes
src/test/scala/cat/alex/dominoes/PlayerSpec.scala
Scala
lgpl-3.0
340
package scalax.chart package event import scala.swing.event.Event import org.jfree.chart.plot.Plot import org.jfree.chart.title.Title /** Event on a chart. * * @see [[Chart]] */ sealed abstract class ChartEvent protected () extends Event { /** Returns the chart on which the event occurred. */ def chart: C...
wookietreiber/scala-chart
src/main/scala/scalax/chart/event/ChartEvent.scala
Scala
lgpl-3.0
1,021
package io.iohk.ethereum.db.storage import io.iohk.ethereum.db.dataSource.RocksDbDataSource.IterationError import io.iohk.ethereum.db.dataSource.{DataSource, DataSourceBatchUpdate, DataSourceUpdate} import monix.reactive.Observable /** * Represents transactional key value storage mapping keys of type K to values of...
input-output-hk/etc-client
src/main/scala/io/iohk/ethereum/db/storage/TransactionalKeyValueStorage.scala
Scala
mit
2,224
/* * 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 ...
witgo/spark
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamSuite.scala
Scala
apache-2.0
51,538
/* ************************************************************************************* * Copyright 2011 Normation SAS ************************************************************************************* * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero Ge...
Kegeruneku/rudder
rudder-core/src/main/scala/com/normation/rudder/services/queries/DynGroupUpdaterService.scala
Scala
agpl-3.0
4,705
package org.fuckboi import org.scalatest._ abstract class FuckboiGeneratorTest extends FlatSpec with Matchers { val fuckboiGenerator = new FuckboiGenerator val byteCodeExecutor = new ByteCodeExecutor var className = "Hello" def getOutput(fuckboiCode: String): String = { val (bytecode, root) = fuckboiGe...
VirenMohindra/Fuckboi
src/test/scala/org/fuckboi/FuckboiGeneratorTest.scala
Scala
mit
419
/* * 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 ...
nchammas/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala
Scala
apache-2.0
38,833
/* * 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/amls-frontend
app/controllers/responsiblepeople/address/NewHomeAddressNonUKController.scala
Scala
apache-2.0
3,464
package pl.newicom.dddd.messaging import akka.contrib.pattern.ReceivePipeline import akka.contrib.pattern.ReceivePipeline.{Inner, HandledCompletely} import scala.collection.mutable /** * Designed to be used by persistent actors. Allows detecting duplicated messages sent to the actor. * Keeps a set of message IDs ...
pawelkaczor/akka-ddd
akka-ddd-core/src/main/scala/pl/newicom/dddd/messaging/Deduplication.scala
Scala
mit
1,369
/* * Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
zoo/src/main/scala/com/intel/analytics/zoo/feature/python/PythonTextFeature.scala
Scala
apache-2.0
12,298
package com.github.jlprat.ninetynine.p07 import org.scalatest.WordSpec import com.github.jlprat.ninetynine.p07.P07._ /** * Created by @jlprat on 02/03/2016. * Specs for problem P07: Flatten a nested list structure */ class P07Spec extends WordSpec { "flatten" when { val intList = List(1, 2, 3) "calle...
jlprat/99-scala-problems
src/test/scala/com/github/jlprat/ninetynine/p07/P07Spec.scala
Scala
apache-2.0
3,194
package controllers import play.api._ import play.api.mvc._ import play.api.cache._ import play.api.libs.json._ import play.api.templates._ import scala.concurrent._ import ExecutionContext.Implicits.global import play.api.Play.current import scala.io.Source import services._ import lib.html.HtmlStream import lib.ht...
radiantgeek/spending_map
app/controllers/Application.scala
Scala
apache-2.0
5,078
package controllers package actions package resources import forms._ import models.Truthy import util.IpmiCommand import util.concurrent.BackgroundProcessor import util.plugins.{IpmiPowerCommand, PowerManagement} import util.security.SecuritySpecification import collins.power.Identify import collins.power.management...
Shopify/collins
app/controllers/actions/resources/IntakeStage1Action.scala
Scala
apache-2.0
2,718
package org.jetbrains.plugins.scala package lang package parser package parsing package statements import com.intellij.lang.PsiBuilder import expressions.SelfInvocation import lexer.ScalaTokenTypes import builder.ScalaPsiBuilder /** * @author Alexander Podkhalyuzin * Date: 13.02.2008 */ /* * ConstrExpr ::= SelfInvo...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/parser/parsing/statements/ConstrExpr.scala
Scala
apache-2.0
861
/* Copyright 2016-17, Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH 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...
bpn1/ingestion
src/test/scala/de/hpi/ingestion/dataimport/wikidata/TagEntitiesTest.scala
Scala
apache-2.0
2,836
/* Copyright (c) 2010 Richard Searle * * 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...
searler/ScalaXML
src/main/scala/cognitiveentity/xml/sax/interop/XMLLoader.scala
Scala
apache-2.0
1,675
package filodb.http import scala.concurrent.duration.FiniteDuration import com.typesafe.config.Config import net.ceedubs.ficus.Ficus._ import filodb.coordinator.FilodbSettings class HttpSettings(config: Config, val filoSettings: FilodbSettings) { lazy val httpServerBindHost = config.getString("filodb.http.bind-ho...
tuplejump/FiloDB
http/src/main/scala/filodb/http/HttpSettings.scala
Scala
apache-2.0
893
object DrugTest { import probability.probdsl._ sealed abstract class Status object User extends Status { override def toString = "User" } object Clean extends Status { override def toString = "Clean" } sealed abstract class TestResult object Positive extends TestResult { override def toString = "Positive...
urso/scala_prob
examples/DrugTest.scala
Scala
bsd-3-clause
867
package com.asto.dop.api import com.asto.dop.api.processor.MessageProcessor import com.typesafe.scalalogging.slf4j.LazyLogging import io.vertx.core._ import io.vertx.core.http.{HttpServer, HttpServerOptions} import io.vertx.core.json.JsonObject class Startup extends AbstractVerticle with LazyLogging{ override def ...
zj-lingxin/dop
source/api/src/main/scala/com/asto/dop/api/Startup.scala
Scala
mit
1,279
/* * Accio is a platform to launch computer science experiments. * Copyright (C) 2016-2018 Vincent Primault <[email protected]> * * Accio 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, eith...
privamov/accio
accio/java/fr/cnrs/liris/lumos/transport/EventTransport.scala
Scala
gpl-3.0
1,428
package org.fuckboi import org.fuckboi.ast.RootNode class FuckboiGenerator extends ClassLoader { def generate(fuckboiCode: String, filename: String): (Array[Byte], RootNode) = { val parser = new FuckboiParser val rootNode = parser.parse(fuckboiCode) (rootNode.generateByteCode(filename), rootNode) } ...
VirenMohindra/Fuckboi
src/main/scala/org/fuckboi/FuckboiGenerator.scala
Scala
mit
322
package breeze.util /* Copyright 2009 David Hall, Daniel Ramage Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
scalanlp/breeze
math/src/main/scala/breeze/util/Index.scala
Scala
apache-2.0
11,536
/* * Copyright 2019 ACINQ SAS * * 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...
btcontract/wallet
app/src/main/java/fr/acinq/eclair/crypto/Generators.scala
Scala
apache-2.0
2,332
/* * Copyright 2011-2021 Asakusa Framework 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 ...
asakusafw/asakusafw-spark
extensions/iterativebatch/compiler/core/src/test/scala/com/asakusafw/spark/extensions/iterativebatch/compiler/graph/DirectOutputSetupForIterativeClassBuilderSpec.scala
Scala
apache-2.0
7,989
package demo import org.apache.log4j.Logger import org.apache.spark.{SparkContext, SparkConf} /** * Sparkアプリケーション起動用トレイト */ trait SparkBatchApplication { /** ロガー */ @transient lazy val log = Logger.getLogger(getClass.getName) /** 処理の最長時間(ms)(無制限の場合は 0, デフォルト : 0 ms) */ def lifetime(): Long = 0L /** 処理前の...
h-mochizuki/rts-sample
spark-sample/src/main/scala/demo/SparkBatchApplication.scala
Scala
apache-2.0
1,124