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 spark import org.apache.log4j.{Level, Logger} import org.apache.spark.{SparkConf, SparkContext} /** * Created by Ondra Fiedler on 21.7.14. */ object sparkEnvironment { Logger.getLogger("org.apache.spark").setLevel(Level.WARN) Logger.getLogger("org.eclipse.jetty.server").setLevel(Level.OFF) val conf ...
OndraFiedler/spark-recommender
src/main/scala/spark/sparkEnvironment.scala
Scala
mit
404
package com.github.karlhigley.spark.neighbors.lsh import org.apache.spark.mllib.linalg.SparseVector /** * Abstract base class for locality-sensitive hash functions. */ private[neighbors] abstract class LSHFunction[+T <: Signature[_]] { /** * Compute the hash signature of the supplied vector */ def signat...
L2V/like2vec
src/prediction/src/main/scala/com/github/karlhigley/spark/neighbors/lsh/LSHFunction.scala
Scala
apache-2.0
492
/* * Copyright 2014–2018 SlamData Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
jedesah/Quasar
connector/src/main/scala/quasar/qscript/QScriptCore.scala
Scala
apache-2.0
12,388
/* * 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 ...
style95/openwhisk
tests/src/test/scala/org/apache/openwhisk/core/entity/test/WhiskEntityTests.scala
Scala
apache-2.0
8,673
import scala.language.experimental.macros import scala.reflect.macros.blackbox.Context class TC[T](val subclasses: List[String]) object TC { implicit def instance[T]: TC[T] = macro instanceImpl[T] def instanceImpl[T](c: Context)(implicit tT: c.WeakTypeTag[T]): c.Tree = { import c.universe._ val subclas...
scala/scala
test/files/run/t10454-2/Macros_1.scala
Scala
apache-2.0
500
/* * 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-rethink/src/main/scala/com/datamountaineer/streamreactor/connect/rethink/config/ReThinkSinkConfig.scala
Scala
apache-2.0
2,170
package dagr.tasks.bwa import dagr.core.execsystem.{Cores, Memory, ResourceSet} import dagr.core.tasksystem.{FixedResources, Pipeline, ProcessTask, VariableResources} import com.fulcrumgenomics.commons.io.{Io, PathUtil} import dagr.tasks.DagrDef import DagrDef._ import dagr.tasks.misc.DeleteFiles import dagr.tasks.pic...
fulcrumgenomics/dagr
tasks/src/main/scala/dagr/tasks/bwa/BwaBacktrack.scala
Scala
mit
5,484
import sbt._ object Version { val scala = "2.12.3" val scalaBinary = scala.substring(0,4) val akka = "2.5.6" val akkaHttp = "10.0.10" val akkaClusterManager = "0.5" val akkaKryo = "0.5.2" val kryo = "4.0.0" val scalatest = "3.0.4" val ...
speedcom/JustinDB
project/Dependencies.scala
Scala
apache-2.0
4,159
/** * Copyright (C) 2011 Orbeon, Inc. * * 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.1 of the License, or (at your option) any later version. * * This program i...
martinluther/orbeon-forms
src/main/scala/org/orbeon/oxf/xforms/analysis/SimpleElementAnalysis.scala
Scala
lgpl-2.1
7,559
/* * 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 ...
pgandhi999/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala
Scala
apache-2.0
15,692
/* * Copyright (c) 2018 by Andrew Charneski. * * The author licenses this file 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 copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
acharneski/ImageLabs
src/test/scala/report/WhiteboardWorkflow.scala
Scala
apache-2.0
24,055
/* * 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/http-verbs
http-verbs-common/src/main/scala/uk/gov/hmrc/http/Request.scala
Scala
apache-2.0
645
import sbt._ import Keys._ import play.Project._ object ApplicationBuild extends Build { val appName = "gobo-fetcher" val appVersion = "1.0-SNAPSHOT" val appDependencies = Seq( // Add your project dependencies here, jdbc, anorm ) val main = play.Project(appName, appVersion, appDe...
neowinx/mbusu-i
gobo-fetcher/project/Build.scala
Scala
lgpl-3.0
397
package at.logic.gapt.examples.tip.isaplanner import at.logic.gapt.expr._ import at.logic.gapt.formats.ClasspathInputFile import at.logic.gapt.formats.tip.TipSmtParser import at.logic.gapt.proofs.Ant import at.logic.gapt.proofs.gaptic._ object prop_15 extends TacticsProof { val bench = TipSmtParser.fixupAndParse( C...
gebner/gapt
examples/tip/isaplanner/prop_15.scala
Scala
gpl-3.0
1,386
/** * Copyright 2017 RiskSense, Inc. * This file is part of ipaddr library. * * Ipaddr is free software 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.apac...
risksense/ipaddr
src/test/scala/com/risksense/ipaddr/BaseIpTest.scala
Scala
apache-2.0
6,200
package controllers import play.api._ import play.api.mvc._ import play.api.libs._ import play.api.libs.iteratee._ import Play.current import java.io._ import java.net.{ URI, JarURLConnection } import org.joda.time.format.{ DateTimeFormatter, DateTimeFormat } import org.joda.time.DateTimeZone import collection.JavaCon...
michaelahlers/team-awesome-wedding
vendor/play-2.2.1/framework/src/play/src/main/scala/play/api/controllers/Assets.scala
Scala
mit
8,913
package component import akka.actor.{Actor, ActorLogging, ActorRef, ActorSystem, Props} import akka.http.scaladsl.server.Directives._ import akka.pattern.ask import akka.util.Timeout import scala.concurrent.duration._ import core._ class SupervisorActor(val config: Config) extends Actor with ActorLogging { import ...
enpassant/jeeves
src/main/scala/component/Supervisor.scala
Scala
apache-2.0
1,446
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.collection.mutab...
scala/scala
test/junit/scala/collection/mutable/MutationTrackerTest.scala
Scala
apache-2.0
815
/* * 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/spark
core/src/main/scala/org/apache/spark/ui/storage/RDDPage.scala
Scala
apache-2.0
10,470
import com.weiglewilczek.slf4s.Logger import scalaandroid._ package be.ellefant { package object cloudr extends Imports with Constants with ViewImplicits with AdapterViewImplicits { implicit def string2cloudrString(s: String) = new CloudrString(s) } package cloudr { import android.webkit.Mi...
sdb/cloudr
app/src/be/ellefant/cloudr/package.scala
Scala
gpl-3.0
1,875
package org.openurp.edu.eams.teach.program.util import org.beangle.commons.lang.Strings import org.openurp.edu.teach.plan.MajorPlanCourse import org.openurp.edu.teach.plan.MajorPlan import org.openurp.edu.base.Course import org.openurp.edu.teach.plan.PlanCourse import org.openurp.edu.teach.plan.CourseGroup import org....
openurp/edu-eams-webapp
core/src/main/scala/org/openurp/edu/eams/teach/program/util/PlanUtils.scala
Scala
gpl-3.0
3,723
package com.blinkbox.books.creditoffer import java.util.concurrent.Executors import akka.actor.{ActorSystem, Props} import akka.util.Timeout import com.blinkbox.books.config._ import com.blinkbox.books.creditoffer.clients._ import com.blinkbox.books.creditoffer.persistence._ import com.blinkbox.books.logging.Loggers ...
blinkboxbooks/credit-offer-service
src/main/scala/com/blinkbox/books/creditoffer/CreditOfferService.scala
Scala
mit
4,140
package org.scalameta.paradise package parser import scala.tools.nsc.{Global => NscGlobal, Phase, SubComponent, Settings => NscSettings} import scala.tools.nsc.plugins.{Plugin => NscPlugin, PluginComponent => NscPluginComponent} import scala.collection.mutable import org.scalameta.paradise.parser.{ SyntaxAnalyzer =>...
xeno-by/paradise
plugin/src/main/scala/org/scalameta/paradise/parser/HijackSyntaxAnalyzer.scala
Scala
bsd-3-clause
3,000
package com.sksamuel.elastic4s.searches.queries.term import com.sksamuel.elastic4s.searches.queries.QueryDefinition import com.sksamuel.exts.OptionImplicits._ case class TermQueryDefinition(field: String, value: Any, boost: Option[Double] = None, ...
FabienPennequin/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/searches/queries/term/TermQueryDefinition.scala
Scala
apache-2.0
571
package org.tagsharp.reporter import org.scalatest.FlatSpec import org.scalatest.matchers.ShouldMatchers import org.tagsharp.util.TestingUtil._ import org.tagsharp.test.TestRunner import org.tagsharp.checkpoint.BasicCheckpointSuite import org.jsoup.Jsoup class TestTextErrorHighlighter extends FlatSpec with ShouldMat...
reggoodwin/tagsharp
src/test/scala/org/tagsharp/reporter/TestTextErrorHighlighter.scala
Scala
mit
1,224
package controllers import play.api._ import play.api.mvc._ import java.io._ import scala.collection.mutable.HashMap import scala.collection.mutable.ArrayBuffer import scala.collection.JavaConversions._ import scala.util.Sorting import play.api.libs.json._ case class IntHistogram(xvalues: Array[Int], yvalues: Array[I...
jashworth-isb/cmonkey-python
cluster_viewer/app/controllers/Application.scala
Scala
lgpl-3.0
9,254
import leon.lang._ import leon.lang.synthesis._ import leon.annotation._ object Delete { sealed abstract class List case class Cons(head: BigInt, tail: List) extends List case object Nil extends List def size(l: List) : BigInt = (l match { case Nil => BigInt(0) case Cons(_, t) => 1 + size(t) }) ensu...
epfl-lara/leon
testcases/web/synthesis/16_StrictSortedList_Delete.scala
Scala
gpl-3.0
844
/* * Copyright 2015 Matt Massie * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
massie/avrotuples
src/main/scala/com/github/massie/avrotuples/AvroTuple11.scala
Scala
apache-2.0
6,318
/* * Copyright 2014 Adam Rosenberger * * 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...
arosenberger/nalloc_2.10
optional/src/test/scala/org/nalloc/bitb/kcits/optional/OptionalSpec.scala
Scala
apache-2.0
5,812
package org.rebeam.tree.view.list import japgolly.scalajs.react._ import scala.scalajs.js object SortableElement { case class Props(key: Key, index: Int, collection: Int = 0, disabled: Boolean = false) /** * Wrap another component * @param wrappe...
trepidacious/tree-material-ui
js/src/main/scala/org/rebeam/tree/view/list/SortableElement.scala
Scala
gpl-3.0
1,325
/** * 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...
dchenbecker/kafka-sbt
core/src/main/scala/kafka/admin/CreateTopicCommand.scala
Scala
apache-2.0
5,527
/* * 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/ct600a/LP02Spec.scala
Scala
apache-2.0
1,138
package scodec.protocols.pcap import scalaz.\\/.{ left, right } import scodec.Err import scodec.bits.{ BitVector, ByteOrdering } import scodec.{ Attempt, Codec, DecodeResult, SizeBound } import scodec.codecs._ case class GlobalHeader( ordering: ByteOrdering, versionMajor: Int, versionMinor: Int, thiszone: Int...
jrudnick/scodec-protocols
src/main/scala/scodec/protocols/pcap/GlobalHeader.scala
Scala
bsd-3-clause
1,612
/* * Copyright 2012 Twitter Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
jkdcdlly/zipkin
zipkin-query-service/config/query-cassandra.scala
Scala
apache-2.0
1,631
package com.typesafe.sbt package packager package universal import sbt._ trait UniversalKeys { val packageZipTarball = TaskKey[File]("package-zip-tarball", "Creates a tgz package.") val packageXzTarball = TaskKey[File]("package-xz-tarball", "Creates a txz package.") val packageOsxDmg = TaskKey[File]("pa...
kodemaniak/sbt-native-packager
src/main/scala/com/typesafe/sbt/packager/universal/Keys.scala
Scala
bsd-2-clause
985
package mesosphere.marathon import java.lang.Thread.UncaughtExceptionHandler import com.google.inject.Module import mesosphere.chaos.App import mesosphere.chaos.http.{ HttpModule, HttpService } import mesosphere.chaos.metrics.MetricsModule import mesosphere.marathon.api.MarathonRestModule import mesosphere.marathon.c...
timcharper/marathon
src/main/scala/mesosphere/marathon/Main.scala
Scala
apache-2.0
4,002
// Copyright: 2010 - 2016 https://github.com/ensime/ensime-server/graphs // License: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime.swanky import java.io.File import org.ensime.sexp._ import org.ensime.api._ import org.ensime.util.{ EnsimeSpec, EscapingStringInterpolation } import org.scalactic.source....
espinhogr/ensime-server
protocol-swanky/src/test/scala/org/ensime/swanky/SwankyFormatsSpec.scala
Scala
gpl-3.0
24,853
/* * Copyright (c) 2014-2020 by The Monix Project Developers. * See the project homepage at: https://monix.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
alexandru/monifu
monix-reactive/shared/src/main/scala/monix/reactive/internal/operators/DropFirstOperator.scala
Scala
apache-2.0
1,369
package eu.phisikus.plotka.conf trait NodeConfigurationProvider { def loadConfiguration: NodeConfiguration }
phisikus/plotka
config/src/main/scala/eu/phisikus/plotka/conf/NodeConfigurationProvider.scala
Scala
bsd-3-clause
112
package org.scalatra package servlet import test.scalatest.ScalatraFunSuite class RequestAttributesTest extends ScalatraFunSuite with AttributesTest { addServlet(new AttributesServlet { def attributesMap = request }, "/*") }
louk/scalatra
core/src/test/scala/org/scalatra/servlet/RequestAttributesTest.scala
Scala
bsd-2-clause
236
package sylvestris.example.model import cats.data.XorT import cats.implicits._ import spray.json._, DefaultJsonProtocol._ import sylvestris.core._, Graph._ case class CustomData(orgName: String, customerName: String) object CustomData { implicit val jsonFormat = jsonFormat2(apply) } object CustomDataView extends ...
janrain/sylvestris
example/src/main/scala/sylvestris/example/model/CustomView.scala
Scala
mit
1,139
package com.danielasfregola.twitter4s.http.clients.rest.v2.tweets.paramaters import com.danielasfregola.twitter4s.entities.v2.enums.expansions.TweetExpansions.TweetExpansions import com.danielasfregola.twitter4s.entities.v2.enums.fields.MediaFields.MediaFields import com.danielasfregola.twitter4s.entities.v2.enums.fie...
DanielaSfregola/twitter4s
src/main/scala/com/danielasfregola/twitter4s/http/clients/rest/v2/tweets/paramaters/SearchTweetsParameters.scala
Scala
apache-2.0
1,399
package ru.reajames import java.util.function.BiFunction import java.util.concurrent.Executor import scala.concurrent.ExecutionContext import javax.jms.{ConnectionFactory, Message, Session, TextMessage, Destination => JmsDest} /** * Provides methods to create objects. * @author Dmitry Dobrynin <dobrynya@inbox.ru>...
dobrynya/reajames
src/main/scala/ru/reajames/JavaFactories.scala
Scala
apache-2.0
6,567
package spinoco.protocol.http.header.value import scodec.{Attempt, Codec, Err} import spinoco.protocol.common.Terminator import spinoco.protocol.common.codec.terminated import spinoco.protocol.common.util._ import spinoco.protocol.http.codec.helper._ import scala.concurrent.duration._ sealed case class KeepAlivePar...
Spinoco/protocol
http/src/main/scala/spinoco/protocol/http/header/value/KeepAliveParams.scala
Scala
mit
1,480
package io.github.mandar2812.PlasmaML.dynamics.diffusion import breeze.linalg.{DenseMatrix, DenseVector, sum, trace} import io.github.mandar2812.dynaml.algebra.square import io.github.mandar2812.dynaml.models.neuralnets._ import io.github.mandar2812.dynaml.pipes.{DataPipe, DataPipe3} import org.apache.log4j.Logger /*...
mandar2812/PlasmaML
mag-core/src/main/scala/io/github/mandar2812/PlasmaML/dynamics/diffusion/RadialDiffusion.scala
Scala
lgpl-2.1
11,675
/* * Copyright (c) 2014, Brook 'redattack34' Heisler * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, t...
Redattack34/ModularRayguns
src/main/scala/com/castlebravostudios/rayguns/items/misc/RayGun.scala
Scala
bsd-3-clause
9,995
/* * 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 ...
WindCanDie/spark
sql/core/src/test/scala/org/apache/spark/sql/streaming/FlatMapGroupsWithStateSuite.scala
Scala
apache-2.0
52,885
package com.twitter.finagle.buoyant.h2 import com.twitter.util.{Future, Promise} /** * A generic HTTP2 message. * * The message itself includes the Headers that initiated the message * (comprising all HEADERS frames sent to initiate the message). * * Furthermore, messages have an (optional) Stream of data and t...
linkerd/linkerd
finagle/h2/src/main/scala/com/twitter/finagle/buoyant/h2/Message.scala
Scala
apache-2.0
4,795
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribute...
wvlet/airframe
examples/src/main/scala/wvlet/airframe/examples/di/DI_21_BindConfig.scala
Scala
apache-2.0
1,605
package scala.meta package internal.hosts.scalac package converters import org.scalameta.collections._ import org.scalameta.invariants._ import org.scalameta.unreachable import scala.{Seq => _} import scala.collection.immutable.Seq import scala.tools.nsc.{Global => ScalaGlobal} import scala.reflect.internal.Flags._ im...
beni55/scalameta
scalahost/src/main/scala/scala/meta/internal/hosts/scalac/converters/ToMmember.scala
Scala
bsd-3-clause
21,878
/* Encoded.scala Copyright 2012 Tommy Skodje (http://www.antares.no) 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 require...
2my/test-data-control
src/main/scala/no/antares/util/Encoded.scala
Scala
apache-2.0
1,166
package org.jetbrains.plugins.scala.util.reporter import com.intellij.openapi.progress.ProgressIndicator import com.intellij.openapi.progress.util.ProgressIndicatorBase import com.intellij.openapi.util.TextRange import org.jetbrains.plugins.scala.util.reporter.KnownErrors._ import scala.collection.mutable /** * @a...
jastice/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/util/reporter/ProgressReporter.scala
Scala
apache-2.0
3,560
package io.flow.play.util class SecureIdGeneratorSpec extends LibPlaySpec { "prefix must be between 3 - 6 characters" in { intercept[AssertionError] { SecureIdGenerator("FO") }.getMessage must be("assertion failed: prefix[FO] must be between 3 and 6 characters") intercept[AssertionError] { ...
flowcommerce/lib-play
test/io/flow/play/util/SecureIdGeneratorSpec.scala
Scala
mit
1,471
package org.openurp.edu.eams.teach.service trait SqlDao { def executeUpdate(sql: String, params: Map[_,_]): Unit def batchUpdate(sqls: Iterable[String]): Unit }
openurp/edu-eams-webapp
core/src/main/scala/org/openurp/edu/eams/teach/service/SqlDao.scala
Scala
gpl-3.0
173
package com.mooveit.moonitor.collector.strategies class FreeSwapStrategy extends HostMetricCollectionStrategy { override def collectValue = sigar.getSwap.getFree } class TotalSwapStrategy extends HostMetricCollectionStrategy { override def collectValue = sigar.getSwap.getTotal } class FreeSwapPercStrategy exte...
enriquerodbe/moonitor
collector/src/main/scala/com/mooveit/moonitor/collector/strategies/SwapMetricCollectionStrategy.scala
Scala
mit
447
/* * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distri...
flaminem/flamy
src/main/scala/com/flaminem/flamy/parsing/hive/ast/SQLFormatter.scala
Scala
apache-2.0
22,819
package com.eharmony.aloha.dataset.vw.unlabeled import java.text.DecimalFormat import com.eharmony.aloha.dataset._ import com.eharmony.aloha.dataset.density.Sparse import com.eharmony.aloha.dataset.vw.VwCovariateProducer import com.eharmony.aloha.dataset.vw.unlabeled.json.VwUnlabeledJson import com.eharmony.aloha.sem...
eHarmony/aloha
aloha-core/src/main/scala/com/eharmony/aloha/dataset/vw/unlabeled/VwRowCreator.scala
Scala
mit
8,930
/* * Copyright 2014 Alan Rodas Bonjour * * 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 ...
alanrodas/scaland
vcs/git/src/main/scala/com/alanrodas/scaland/vcs/git/package.scala
Scala
apache-2.0
646
package org.edma.hbasetools.repl case class HBaseToolsCommand(name: String, code: String, syntax: String, shelp: String, lhelp: String) { def getName: String = name def getCode: String = code def getSyntax: String = syntax def getLine: String = f"""$name\\t$shelp""" def getHelp: String = f"""$name\\n$synt...
lsarrazin/HTools
src/main/scala/org/edma/hbasetools/repl/HBaseToolsCommand.scala
Scala
apache-2.0
418
package lila.forum import lila.user.User import org.joda.time.DateTime import ornicar.scalalib.Random import scala.concurrent.duration._ case class OldVersion(text: String, createdAt: DateTime) case class Post( _id: String, topicId: String, categId: String, author: Option[String], userId: Option[...
clarkerubber/lila
modules/forum/src/main/Post.scala
Scala
agpl-3.0
2,267
/*********************************************************************** * Copyright (c) 2013-2022 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
locationtech/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/test/scala/org/locationtech/geomesa/accumulo/data/AccumuloDataStoreStatsTest.scala
Scala
apache-2.0
20,603
/* * P02.scala * Copyright (C) 2017 n3xtchen <echenwen@gmail.com> * * Distributed under terms of the GPL-2.0 license. */ package nextchen object P02 { // scala> penultimate(List(1, 1, 2, 3, 5, 8)) // res0: Int = 5 def penultimate[A](list: List[A]): A = list match { case l :: _ :: Nil => l case _ :...
n3xtchen/s-99
src/main/scala/nextchen/P02.scala
Scala
mit
488
/* * 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 ...
GJL/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/rules/logical/SplitAggregateRule.scala
Scala
apache-2.0
18,153
/*import Bool._ import TList._ sealed trait Tree { tree => type Key type Value type Root <: Node type Ord[a <: Key, b <: Key] <: Comparison type Contains[K <: Key] = Root#Contains[K] type Get[K <: Key] = Root#Get[K] type New[NewRoot <: Node] = Tree { type Key = tree.Key type Value = tree.Value type Root ...
harrah/up
Tree.scala
Scala
bsd-3-clause
3,854
package breeze.stats.distributions /* 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...
wavelets/breeze
src/test/scala/breeze/stats/distributions/MultivariateGaussianTest.scala
Scala
apache-2.0
2,864
package com.twitter.finagle.netty3.channel import com.twitter.finagle.WriteTimedOutException import com.twitter.finagle.netty3.Conversions._ import com.twitter.util.{Time, Duration, Timer} import org.jboss.netty.channel.{ ChannelHandlerContext, Channels, MessageEvent, SimpleChannelDownstreamHandler } /** * A simpl...
travisbrown/finagle
finagle-core/src/main/scala/com/twitter/finagle/netty3/channel/WriteCompletionTimeoutHandler.scala
Scala
apache-2.0
1,063
package com.atomist.rug.rugdoc import com.atomist.param.SimpleParameterValues import com.atomist.rug.spi.{SimpleTypeRegistry, TypeRegistry} import com.atomist.rug.ts.CortexTypeGenerator._ import com.atomist.rug.ts.DefaultTypeGeneratorConfig.CortexJson import com.atomist.rug.ts._ import com.atomist.source.{ArtifactSour...
atomist/rug
src/test/scala/com/atomist/rug/rugdoc/TypeScriptStubClassGeneratorTest.scala
Scala
gpl-3.0
2,835
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.async package ne...
scala/async
src/test/scala/scala/async/neg/NakedAwait.scala
Scala
bsd-3-clause
4,674
package unicredit import scala.tools.nsc.{ Global, Phase } import scala.tools.nsc.plugins.{ Plugin, PluginComponent } import scala.tools.nsc.transform.{ Transform, TypingTransformers } import scala.tools.nsc.symtab.Flags import scala.tools.nsc.plugins.Plugin import scala.tools.nsc.ast.TreeDSL import java.nio.file.Fil...
jmnarloch/akka.js
method-eraser-plugin/src/main/scala/unicredit/MethodEraserPlugin.scala
Scala
bsd-3-clause
3,710
package com.sfxcode.sapphire.core.control import com.sfxcode.sapphire.core.value.FXBean import javafx.scene.control._ import javafx.util.Callback import scala.beans.BeanProperty class FXListCellFactory[S <: AnyRef] extends Callback[ListView[FXBean[S]], ListCell[FXBean[S]]] { @BeanProperty var property = "" de...
sfxcode/sapphire-core
src/main/scala/com/sfxcode/sapphire/core/control/FXListCellFactory.scala
Scala
apache-2.0
1,097
/* * Copyright (c) 2014 Contributor. All rights reserved. */ package dotty.tools.dotc.classpath import java.io.File import java.net.URL import java.nio.file.Files import java.nio.file.attribute.{BasicFileAttributes, FileTime} import scala.annotation.tailrec import dotty.tools.io.{AbstractFile, ClassPath, ClassRepre...
som-snytt/dotty
compiler/src/dotty/tools/dotc/classpath/ZipAndJarFileLookupFactory.scala
Scala
apache-2.0
9,044
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @builder scalation.linalgebra.mem_mapped.bld.BldMatrix * @version 1.2 * @date Mon Sep 28 11:18:16 EDT 2015 * @see LICENSE (MIT style license file). */ package scalation.linalgebra.mem_mapped im...
mvnural/scalation
src/main/scala/scalation/linalgebra/mem_mapped/MatrixR.scala
Scala
mit
64,363
/* * Licensed to Intel Corporation under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Intel Corporation licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use t...
dding3/BigDL
dl/src/main/scala/com/intel/analytics/bigdl/nn/abstractnn/AbstractModule.scala
Scala
apache-2.0
9,485
package cgta.oscala package util ////////////////////////////////////////////////////////////// // Copyright (c) 2014 Ben Jackman // All Rights Reserved // please contact ben@jackman.biz // for licensing inquiries // Created by bjackman @ 10/3/14 6:21 PM ////////////////////////////////////////////////////////////// ...
cgta/open
oscala/shared/src/main/scala/cgta/oscala/util/IteratorHelp.scala
Scala
mit
1,010
package skuber.examples.podlogs import akka.NotUsed import skuber._ import skuber.json.format._ import akka.actor.ActorSystem import akka.stream.scaladsl._ import akka.util.ByteString import skuber.api.client import scala.concurrent.Await import scala.concurrent.duration._ /** * @author David O'Riordan * * Dem...
doriordan/skuber
examples/src/main/scala/skuber/examples/podlogs/PodLogsExample.scala
Scala
apache-2.0
2,327
package outputs import models.Schedule import outputs.base.Output /** Print all the schedules to stdout. */ class ConsoleOutput extends Output { def execute(args: Array[String], schedules: Array[Schedule]) = { for (schedule <- schedules) { System.out.println(schedule) } } }
maxmouchet/vamk-timetables
parsers/src/main/scala/outputs/ConsoleOutput.scala
Scala
mit
297
package org.jetbrains.plugins.scala package format import com.intellij.openapi.util.text.StringUtil import com.intellij.psi.{PsiClass, PsiElement, PsiMethod} import org.jetbrains.plugins.scala.extensions._ import org.jetbrains.plugins.scala.lang.psi.api.base.ScLiteral import org.jetbrains.plugins.scala.lang.psi.api.ex...
ilinum/intellij-scala
src/org/jetbrains/plugins/scala/format/FormattedStringParser.scala
Scala
apache-2.0
5,112
package me.m1key.audioliciousmigration trait AudioliciousImporter { def importLibrary(libraryUuid: String): Unit }
m1key/audiolicious-migration
src/main/scala/me/m1key/audioliciousmigration/AudioliciousImporter.scala
Scala
gpl-3.0
121
/* * Copyright 2016 The BigDL Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
intel-analytics/BigDL
scala/dllib/src/test/scala/com/intel/analytics/bigdl/dllib/dataset/segmentation/COCODatasetSpec.scala
Scala
apache-2.0
4,759
package com.github.suzuki0keiichi.nomorescript.trees case class NoMoreScriptDef(name: String, paramss: List[Map[String, String]], body: NoMoreScriptTree, className: Option[String]) extends NoMoreScriptTree { override def toJs(terminate: Boolean) = { val first = className match { case Some(className) => cla...
suzuki0keiichi/nomorescript
nomorescript-plugin/src/main/scala/com/github/suzuki0keiichi/nomorescript/trees/NoMoreScriptDef.scala
Scala
mit
1,364
/* Copyright 2013 Lance Gatlin Author: lance.gatlin@gmail.com This file is part of org.s_mach library. org.s_mach library 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...
lancegatlin/s_mach.fsm
src/main/scala/org/s_mach/StepMachine/package.scala
Scala
gpl-3.0
2,785
package stronghold.combinatorics /** * problem description: http://rosalind.info/problems/cat/ */ object CatalanNumbers { object SampleData { val sample: List[String] = List( ">Rosalind_57", "AUAU" ) } import scala.collection.mutable.{Map => MutableMap} import SampleData....
ghostrider77/Bioinformatics
Bioinformatics/src/main/scala-2.11/stronghold/combinatorics/CatalanNumbers.scala
Scala
mit
2,119
/* * Licensed to the Apache Software Foundation (ASF) under onassemblye * 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...
jackylk/incubator-carbondata
integration/spark/src/test/scala/org/apache/spark/sql/common/util/Tags.scala
Scala
apache-2.0
962
/* * 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...
vmanoria/bluemix-hue-filebrowser
hue-3.8.1-bluemix/apps/spark/java/livy-server/src/test/scala/com/cloudera/hue/livy/server/interactive/InteractiveSessionProcessSpec.scala
Scala
gpl-2.0
1,321
package com.anchortab.model import net.liftweb._ import common._ import mongodb._ import util.Helpers._ import json._ import ext._ import JsonDSL._ import Extraction._ import org.joda.time.DateTime import org.bson.types.ObjectId case class Event( eventType:String, ip:Option[String] = None, ...
farmdawgnation/anchortab
src/main/scala/com/anchortab/model/Event.scala
Scala
apache-2.0
979
package com.jayway.textmining import org.specs2.mutable.Specification /** * Copyright 2012 Amir Moulavi (amir.moulavi@gmail.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 * * h...
amir343/grape
src/test/scala/com/jayway/textmining/BuckshotSpec.scala
Scala
apache-2.0
1,236
package is.hail.io import org.apache.spark import org.elasticsearch.spark.sql._ import scala.collection.JavaConverters._ import scala.collection.Map object ElasticsearchConnector { def export( df: spark.sql.DataFrame, host: String, port: Int, index: String, indexType: String, blockSize: In...
cseed/hail
hail/src/main/scala/is/hail/io/ElasticsearchConnector.scala
Scala
mit
1,263
package wordpressworkshop import org.apache.spark.rdd.RDD import org.apache.spark.rdd.RDD._ import scalaz.Scalaz._ object MAP { def apply(n: Int = 100)(recommendations: RDD[(Long, List[Long])], evaluation: RDD[(Long, Set[Long])]): Double = recommendations.join(evaluation).values.map { case (recommendedLi...
gm-spacagna/wordpress-posts-recommender
src/main/scala/wordpressworkshop/MAP.scala
Scala
apache-2.0
1,373
package com.krux.hyperion.aws /** * Defines the AWS Data Pipeline Resources * * ref: http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-object-resources.html */ trait AdpResource extends AdpDataPipelineObject { /** * The amount of time to wait before terminating the resource. */ def termina...
hoangelos/hyperion
core/src/main/scala/com/krux/hyperion/aws/AdpResources.scala
Scala
apache-2.0
8,023
/* * Copyright 2015 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
keithhall/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600a/v3/A55Inverse.scala
Scala
apache-2.0
1,417
/* * 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 ...
andrwng/kudu
java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/TestContext.scala
Scala
apache-2.0
5,788
package lib import io.apibuilder.api.json.v0.models.ApiJson import io.apibuilder.api.json.v0.models.json._ import io.apibuilder.api.v0.models.{Original, OriginalForm, OriginalType} import io.apibuilder.spec.v0.models.Service import io.apibuilder.spec.v0.models.json._ import play.api.libs.json.{JsArray, JsObject, JsStr...
apicollective/apibuilder
api/app/lib/OriginalUtil.scala
Scala
mit
2,008
/* * Copyright 2015 Heiko Seeberger * * 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...
jawp/wicked-playground
modules/server/src/main/scala/de/heikoseeberger/akkahttpupickle/UpickleSupport.scala
Scala
mit
2,514
/* * 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
core/src/main/scala/org/apache/spark/ui/jobs/JobDataUtil.scala
Scala
apache-2.0
1,496
package ch3 import scala.annotation.tailrec import List._ object Exercise23 { def zipWith[A, B](a: List[A], b: List[A])(f: (A, A) => B): List[B] = (a, b) match { case (Nil, _) => Nil case (_, Nil) => Nil case (Cons(h1, t1), Cons(h2, t2)) => Cons(f(h1, h2), zipWith(t1, t2)(f)) } } import Exercise23._ ...
rucka/fpinscala
src/main/scala/fpinscala/ch3/Exercise23.scala
Scala
gpl-2.0
502
import sbt._ object Dependencies { val dbDeps = Seq( "com.typesafe.slick" %% "slick" % "3.0.0", "com.h2database" % "h2" % "1.3.175" ) val testDeps = Seq( "org.scalatest" %% "scalatest" % "2.2.1" % "test" ) val slickDirect = dbDeps ++ testDeps ++ Seq( ) }
olafurpg/slick-direct
project/Dependencies.scala
Scala
bsd-3-clause
278
package functional import play.api.test._ import play.api.test.Helpers._ import play.api.i18n.MessagesApi import play.api.i18n.{Lang, Messages, MessagesImpl, MessagesProvider} import java.time.Instant import play.api.{Application => PlayApp} import play.api.inject.guice.GuiceApplicationBuilder import helpers.InjectorS...
ruimo/store2
test/functional/QaSiteSpec.scala
Scala
apache-2.0
10,960
/* * 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...
pncampbell/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600/v2/B35.scala
Scala
apache-2.0
949
/* * Copyright 2013 Julian Peeters * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
julianpeeters/artisanal-pickle-maker
src/main/scala/tags/METHODtpe.scala
Scala
apache-2.0
1,134
import com.typesafe.sbt.SbtAspectj.AspectjKeys._ import com.typesafe.sbt.SbtAspectj._ import com.typesafe.sbt.SbtScalariform import sbt.Keys._ import sbt._ import sbtavro.SbtAvro._ import scoverage.ScoverageSbtPlugin._ import de.heikoseeberger.sbtheader.HeaderPlugin import de.heikoseeberger.sbtheader.AutomateHeaderPlug...
derjust/money
project/MoneyBuild.scala
Scala
apache-2.0
12,758