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 org.infinispan.spark.examples.twitter import java.util.Properties import org.apache.log4j.{Level, Logger} import org.apache.spark.SparkContext import org.apache.spark.storage.StorageLevel import org.apache.spark.streaming.twitter.TwitterUtils import org.apache.spark.streaming.{Seconds, StreamingContext} impor...
vjuranek/infinispan-spark
examples/twitter/src/main/scala/org/infinispan/spark/examples/twitter/StreamProducerScala.scala
Scala
apache-2.0
2,016
import scala.scalajs.js import scala.scalajs.js.annotation.* @js.native @JSGlobal class NativeJSClass extends js.Object @js.native trait NativeJSTrait extends js.Object @js.native @JSGlobal object NativeJSObject extends js.Object class JSClass extends js.Object trait JSTrait extends js.Object object JSObject extends ...
dotty-staging/dotty
tests/neg-scalajs/jsconstructortag-error-in-prepjsinterop.scala
Scala
apache-2.0
952
package com.twitter.finagle.thriftmux import com.twitter.finagle.mux.{BadMessageException, Message} import com.twitter.finagle.thrift.thrift.{ResponseHeader, RequestHeader, UpgradeReply} import com.twitter.finagle.thrift.{OutputBuffer, ThriftTracing, InputBuffer} import com.twitter.finagle.tracing.{Flags, SpanId, Trac...
firebase/finagle
finagle-thriftmux/src/main/scala/com/twitter/finagle/thriftmux/Netty3.scala
Scala
apache-2.0
7,282
/** * Copyright 2015 Thomson Reuters * * 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...
TRnonodename/CM-Well
server/cmwell-sparql-agent/src/main/scala/cmwell/tools/data/sparql/StpUtil.scala
Scala
apache-2.0
2,613
package logging import org.slf4j.LoggerFactory import org.slf4j.Logger trait Logging { lazy val log = LoggerFactory.getLogger(getClass) def trace(msg: => String) = { if(log.isTraceEnabled) log.trace(msg) } def trace(msg: => String, e: Throwable) = { if(log.isTraceEnabled) log.trace(msg,...
Calavoow/scala-graph
misc/src/main/scala/logging/Logging.scala
Scala
bsd-3-clause
1,788
package au.com.dius.pact.provider.scalatest import java.io.File import java.net.URL import java.util.concurrent.Executors import au.com.dius.pact.model import au.com.dius.pact.model.{FullResponseMatch, RequestResponseInteraction, ResponseMatching, Pact => PactForConsumer} import au.com.dius.pact.provider.sbtsupport.H...
algra/pact-jvm
pact-jvm-provider-scalatest/src/main/scala/au/com/dius/pact/provider/scalatest/ProviderSpec.scala
Scala
apache-2.0
4,404
/* * Copyright 2016 The BigDL Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
intel-analytics/BigDL
scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/nn/MultiRNNCell.scala
Scala
apache-2.0
6,818
package dotty.tools.dotc package core import Names._, Types._, Contexts._, StdNames._ import TypeErasure.sigName /** The signature of a denotation. * Overloaded denotations with the same name are distinguished by * their signatures. A signature of a method (of type PolyType,MethodType, or ExprType) is * compose...
VladimirNik/dotty
src/dotty/tools/dotc/core/Signature.scala
Scala
bsd-3-clause
2,940
/* * Copyright 2015 Databricks 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 ...
josiahsams/spark-sql-perf-spark2.0.0
src/main/scala/com/databricks/spark/sql/perf/RunTPCBenchmark.scala
Scala
apache-2.0
7,205
package es.weso.shex import scala.util._ case class SchemaVocabulary(name: String) { override def toString = s"$name" } object SchemaVocabulary { object SHEX extends SchemaVocabulary("SHEX") object SHACL extends SchemaVocabulary("SHACL") val availableVocabularies : List[SchemaVocabulary] = List(SHACL, SHEX...
labra/ShExcala
src/main/scala/es/weso/shex/SchemaVocabulary.scala
Scala
mit
792
package argonaut.example import argonaut._, Argonaut._ import scalaz._, Scalaz._ import org.specs2._ import org.specs2.specification._ object JsonExample extends Specification { val json = Json( "name" := "fred", "age" := 23, "wallet" := List( Json { "value" := 100 }, Json { "v...
julien-truffaut/argonaut
src/test/scala/argonaut/example/JsonExample.scala
Scala
bsd-3-clause
912
package scala.meta.internal package semanticdb import scala.{meta => m} import scala.meta.internal.inputs._ trait SymbolOps { self: DatabaseOps => implicit class XtensionGSymbolMSymbol(sym: g.Symbol) { def toSemantic: m.Symbol = { if (sym == null || sym == g.NoSymbol) return m.Symbol.None if (sym.i...
DavidDudson/scalameta
scalameta/semanticdb-scalac-core/src/main/scala/scala/meta/internal/semanticdb/SymbolOps.scala
Scala
bsd-3-clause
4,055
package play.api.mvc /** * Generic type representing content to be sent over an HTTP response. */ trait Content { /** * The content String. */ def body: String /** * The default Content type to use for this content. */ def contentType: String }
michaelahlers/team-awesome-wedding
vendor/play-2.2.1/framework/src/play/src/main/scala/play/api/mvc/Content.scala
Scala
mit
270
/*********************************************************************** * Copyright (c) 2013-2018 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...
ddseapy/geomesa
geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/index/WrappedQuadtree.scala
Scala
apache-2.0
2,092
/** * Copyright 2015 Thomson Reuters * * 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...
nruppin/CM-Well
server/cmwell-data-tools/src/main/scala/cmwell/tools/data/downloader/consumer/ConsumerStatsActor.scala
Scala
apache-2.0
7,014
/* * 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 ...
shaoxuan-wang/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/plan/rules/physical/batch/BatchExecHashAggRule.scala
Scala
apache-2.0
7,225
/* * Copyright 2010 Michael Fortin <mike@brzy.org> * * 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 la...
m410/calista
src/main/scala/org/brzy/calista/results/RowType.scala
Scala
apache-2.0
1,562
val a = Seq(1.0, 2, 3); /*start*/a(0).isNaN/*end*/ //Boolean
ilinum/intellij-scala
testdata/typeInference/bugs5/SCL7521.scala
Scala
apache-2.0
61
package org.judal.storage.scala /* * © Copyright 2016 the original author. * This file is licensed under the Apache License version 2.0. * 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 requ...
sergiomt/judal
scala-adaptor/src/main/scala/org/judal/storage/scala/ArrayRecord.scala
Scala
apache-2.0
10,856
package service import dao._ import dao.helper.TableFilter import database.ReportCardEntryTable import database.helper.LdapUserStatus import models._ import slick.jdbc.JdbcBackend.Database import slick.jdbc.JdbcProfile import utils.Ops.unwrap import java.util.UUID import javax.inject.Inject import scala.concurrent.{E...
THK-ADV/lwm-reloaded
app/service/StudentSearchService.scala
Scala
mit
5,085
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2010, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
cran/rkafkajars
java/scala/annotation/elidable.scala
Scala
apache-2.0
2,584
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
matthewfranglen/spark
project/SparkBuild.scala
Scala
mit
43,534
package com.github.jlprat.ninetynine.p20 /** * Created by @jlprat on 14/05/2016. * P20: Remove the Kth element from a list * Difficulty: * */ object P20 { /** * removes the nth element of a list * @param list the list to get an element removed * @param pos the position of the element that must b...
jlprat/99-scala-problems
src/main/scala/com/github/jlprat/ninetynine/p20/P20.scala
Scala
apache-2.0
543
package com.biosimilarity.mdp4tw import ru.circumflex._, core._, web._ import org.scalatest._ import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner import org.scalatest.matchers.MustMatchers @RunWith(classOf[JUnitRunner]) class MySpec extends FreeSpec with BeforeAndAfter with MustMatchers { ...
leithaus/strategies
src/test/scala/specs.scala
Scala
cc0-1.0
561
/* * 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 ...
mosharaf/varys
core/src/main/scala/varys/ui/JettyUtils.scala
Scala
apache-2.0
5,210
/* * 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 ...
rahul003/mxnet
scala-package/infer/src/main/scala/org/apache/mxnet/infer/Classifier.scala
Scala
apache-2.0
6,769
package ru.org.codingteam.horta.protocol.jabber import org.jivesoftware.smackx.muc.{MultiUserChat, DefaultParticipantStatusListener} import akka.actor.ActorRef import ru.org.codingteam.horta.messages._ class MucParticipantStatusListener(muc: MultiUserChat, room: ActorRef) extends DefaultParticipantStatusListener { ...
codingteam/horta-hell
src/main/scala/ru/org/codingteam/horta/protocol/jabber/MucParticipantStatusListener.scala
Scala
mit
1,903
package mypipe import com.typesafe.config.ConfigFactory import mypipe.api.consumer.{ BinaryLogConsumer, BinaryLogConsumerListener } import mypipe.api.event.{ Mutation, InsertMutation } import mypipe.mysql._ import scala.concurrent.{ Future, Await } import scala.concurrent.duration._ import mypipe.producer.QueueProduce...
tramchamploo/mypipe
mypipe-api/src/test/scala/mypipe/LatencySpec.scala
Scala
apache-2.0
4,802
package org.apache.mesos.chronos.notification import java.io.{DataOutputStream, StringWriter} import java.net.{HttpURLConnection, URL} import java.util.logging.Logger import org.apache.mesos.chronos.scheduler.jobs.BaseJob import com.fasterxml.jackson.core.JsonFactory class MattermostClient(val webhookUrl: String) ex...
erSitzt/chronos
src/main/scala/org/apache/mesos/chronos/notification/MattermostClient.scala
Scala
apache-2.0
1,878
/* The correctness of this implementation requires only that the `ExecutorService` begins executing tasks in the order they are submitted. This enables us to safely call `innerF.get`. (You may want to try proving to yourself that this cannot deadlock) */ def fork[A](p: => Par[A]): Par[A] = { es => { val latch = ...
ryo-murai/fpinscala-exercises
answerkey/parallelism/12.answer.scala
Scala
mit
1,155
/* * Copyright (c) 2013-15 Miles Sabin * * 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...
japgolly/shapeless
core/src/main/scala/shapeless/singletons.scala
Scala
apache-2.0
8,626
/* * Copyright 2015 Webtrends (http://www.webtrends.com) * * See the LICENCE.txt 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. * Yo...
Webtrends/wookiee-zookeeper
src/main/scala/com/webtrends/harness/component/zookeeper/config/ZookeeperSettings.scala
Scala
apache-2.0
3,426
package com.sunway.util import com.github.dunnololda.scage.ScageLib.Vec /** * Created by Mr_RexZ on 11/17/2016. */ trait Message { def getMessage: String def getVectorPos: Vec } case class ImmutableMessage(val message: String, val vectorPos: Vec) extends Message { override def getMessage: String = messag...
MrRexZ/DistributedSystemAssignment2
src/main/scala/com/sunway/util/Message.scala
Scala
mit
885
/////////////////////////////////////////////////////////////////////////////// // CreateBalancedCorpus.scala // // Copyright (C) 2013-2014 Ben Wing, The University of Texas at Austin // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lic...
utcompling/textgrounder
src/main/scala/opennlp/textgrounder/geolocate/CreateBalancedCorpus.scala
Scala
apache-2.0
5,564
package org.broadinstitute.dsde.vault.services.uBAM import akka.actor.{Props, Actor, ActorRef} import akka.event.Logging import akka.util.Timeout import org.broadinstitute.dsde.vault.BossClientService.BossObjectResolved import org.broadinstitute.dsde.vault.DmClientService.DMUBamResolved import org.broadinstitute.dsde....
broadinstitute/vault-api
src/main/scala/org/broadinstitute/dsde/vault/services/uBAM/RedirectServiceHandler.scala
Scala
bsd-3-clause
2,402
/** ***************************************************************************** * This is part of ltlfo2mon (https://github.com/jckuester/ltlfo2mon). * * Copyright (c) 2013 by Jan-Christoph Kuester <kuester@sdf.org> * * Ltlfo2mon is free software: you can redistribute it and/or modify * it under the terms...
jckuester/ltlfo2mon
src/main/scala/ltlfo2mon/monitor/optimised/Transition.scala
Scala
gpl-3.0
1,826
/* * 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...
qiuxin2012/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/utils/serializer/Types.scala
Scala
apache-2.0
3,672
/* * 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/core/src/main/scala/org/apache/spark/sql/util/QueryExecutionListener.scala
Scala
apache-2.0
4,540
object Main { val allVars: List[Variable] = Color.values ++ Pet.values ++ Drink.values ++ Person.values ++ Cigarette.values // Create a list of all variables that are going to be used val within = (diff: Int) => (value: Int, value2: Int) => Math.abs(value - value2) == diff //Helper for doing within(2) => within 2 h...
kumpelblase2/is
praktikum/praktikum_4/src/Main.scala
Scala
mit
3,434
package core.algorithms.barns import core.models.Body private[barns] class BHTree(q: Quad) { private val THETA: Double = 0.5 private var bodyOpt: Option[Body] = None private var northWestTree: Option[BHTree] = None private var northEastTree: Option[BHTree] = None private var southWestTree: Option[BHTree] =...
sumanyu/n-body-akka
src/main/scala/core/algorithms/barns/BHTree.scala
Scala
apache-2.0
2,015
/* * Copyright 2016 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/big-data-rosetta-code
src/main/scala/com/spotify/bdrc/pipeline/PageRank.scala
Scala
apache-2.0
2,712
/* * 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...
Myllyenko/incubator-toree
communication/src/main/scala/org/apache/toree/communication/actors/RouterSocketActor.scala
Scala
apache-2.0
1,859
class AnnotNotFound { def foo(a: Any) = () foo { @inargument def foo = 0 foo } () => { @infunction def foo = 0 () } () => { val bar: Int = { @nested val bar2: Int = 2 2 } () } def func(@param x: Int): Int = 0 abstract class A { @typealias ...
AlexSikia/dotty
tests/untried/neg/t6758.scala
Scala
bsd-3-clause
450
/* * 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/self-assessment-api
app/router/connectors/PropertyConnector.scala
Scala
apache-2.0
1,181
/* * 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/execution/metric/SQLMetricsTestUtils.scala
Scala
apache-2.0
12,243
package org.higherstate.jameson.parsers import org.higherstate.jameson.Path import org.higherstate.jameson.tokenizers._ import org.higherstate.jameson.failures._ case object NullParser extends Parser[Null] { def parse(tokenizer:Tokenizer, path: Path) = tokenizer.head match { case NullToken => Succ...
HigherState/jameson
src/main/scala/org/higherstate/jameson/parsers/NullParser.scala
Scala
apache-2.0
479
import sbt._ import Keys._ object Dependencies { lazy val jodaTime = Seq( "joda-time" % "joda-time" % "2.6", "org.joda" % "joda-convert" % "1.7" ) lazy val jackson = Seq( "com.fasterxml.jackson.core" % "jackson-databind" % "2.5.3" ) lazy val jacksonScala = "com.fasterxml.jackson.mod...
ponkotuy/json4s
project/Dependencies.scala
Scala
apache-2.0
1,202
package com.twitter.finagle.exp import com.twitter.conversions.time._ import com.twitter.finagle.stats.InMemoryStatsReceiver import com.twitter.finagle.{Service, BackupRequestLost} import com.twitter.util._ import org.junit.runner.RunWith import org.mockito.Matchers._ import org.mockito.Mockito._ import org.scalatest....
mkhq/finagle
finagle-exp/src/test/scala/com/twitter/finagle/exp/BackupRequestFilterTest.scala
Scala
apache-2.0
8,376
/* * 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
examples/spark/src/main/scala/org/apache/carbondata/examples/StreamingWithRowParserExample.scala
Scala
apache-2.0
7,386
/* * 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/computations/CP1.scala
Scala
apache-2.0
855
import org.apache.spark.SparkConf import org.apache.spark.examples.streaming.StreamingExamples import org.apache.spark.sql.SparkSession import org.apache.spark.storage.StorageLevel import org.apache.spark.streaming.{Seconds, StreamingContext} import uk.gov.ipt.mi.stream.RDDHelper._ object SocketStreamTest { def main...
paterake/spark_etl
src/test/java/SocketStreamTest.scala
Scala
apache-2.0
1,105
/* * Copyright 2016 The BigDL Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
intel-analytics/BigDL
scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/nn/Reshape.scala
Scala
apache-2.0
7,080
package scala.slick.lifted import scala.language.existentials import scala.slick.SlickException import scala.slick.driver.JdbcDriver import scala.slick.jdbc.{PositionedParameters, PositionedResult} import scala.slick.ast._ import scala.slick.util._ /** Common base trait for all lifted values. */ trait Rep[T] extend...
boldradius/slick
src/main/scala/scala/slick/lifted/ColumnBase.scala
Scala
bsd-2-clause
3,215
// See the LICENCE.txt 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 the License at // // http://www.apache...
scray/scray
scray-hdfs/modules/scray-hdfs-service-adapter/src/test/scala/scray/hdfs/index/format/IndexFileSpecs.scala
Scala
apache-2.0
2,551
package mesosphere.marathon.storage.migration.legacy.legacy import com.codahale.metrics.MetricRegistry import mesosphere.marathon.metrics.Metrics import mesosphere.marathon.state.{ AppDefinition, Group, PathId, Timestamp } import mesosphere.marathon.storage.LegacyInMemConfig import mesosphere.marathon.storage.reposito...
timcharper/marathon
src/test/scala/mesosphere/marathon/storage/migration/legacy/legacy/MigrationTo0_11Test.scala
Scala
apache-2.0
7,704
package models.quiz.question.table import com.artclod.mathml.scalar._ import com.artclod.slick.JodaUTC._ import models.quiz.question.{Question2Quiz, DerivativeQuestion} import models.quiz.table._ import models.support._ import org.joda.time.DateTime import play.api.db.slick.Config.driver.simple._ import service.table....
kristiankime/web-education-games
app/models/quiz/question/table/DerivativeQuestionsTable.scala
Scala
mit
1,748
package com.sksamuel.avro4s import org.apache.avro.Schema import org.apache.avro.generic.IndexedRecord /** * Converts from an Avro [[IndexedRecord]] into instances of T. */ trait FromRecord[T] extends Serializable { def from(record: IndexedRecord): T } object FromRecord { def apply[T](schema: Schema)(using d...
sksamuel/avro4s
avro4s-core/src/main/scala/com/sksamuel/avro4s/FromRecord.scala
Scala
apache-2.0
469
package edu.illinois.wala.ipa.callgraph.propagation import com.ibm.wala.ssa.SSAPutInstruction import scala.collection.JavaConversions._ import com.ibm.wala.ipa.callgraph.propagation.InstanceFieldKey import com.ibm.wala.ipa.callgraph.propagation.ArrayContentsKey import com.ibm.wala.ipa.modref.ArrayLengthKey import com.i...
cos/WALAFacade
src/main/scala/edu/illinois/wala/ipa/callgraph/propagation/P.scala
Scala
epl-1.0
1,969
package org.scalaide.refactoring.internal import scala.tools.refactoring.implementations import org.scalaide.core.internal.jdt.model.ScalaSourceFile /** * A refactoring that expands bindings to case-classes in pattern matches with * the corresponding extractor. The refactoring is only accessible through a * quicka...
romanowski/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/refactoring/internal/ExpandCaseClassBinding.scala
Scala
bsd-3-clause
1,084
/* * 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/test/scala/org/apache/spark/carbondata/query/ReusedExchangeTestSuite.scala
Scala
apache-2.0
1,623
package de.qualitune.config import java.io.File import de.qualitune.util.IOUtils /** * Configuration classes representing a config for CPSText transformation and execution phase. * * @author Max Leuthaeuser * @since 11.03.2012 */ object Configuration { def apply(debugging: Debugging, interpretati...
max-leuthaeuser/CPSTextInterpreter
src/main/scala/de/qualitune/config/Configuration.scala
Scala
gpl-3.0
1,744
/* * 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 ...
publicRoman/spark
resource-managers/kubernetes/integration-tests-spark-jobs/src/main/scala/org/apache/spark/deploy/k8s/integrationtest/jobs/JavaOptionsTest.scala
Scala
apache-2.0
3,623
package utils import play.api.libs.json._ import java.util.Date import org.joda.time._ import java.text.SimpleDateFormat /** * date to json * @author of729 */ object DateFormatter { implicit object JsonDateFormatter extends Format[DateTime] { val dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss") ...
sdgdsffdsfff/bugatti
app/utils/DateFormat.scala
Scala
bsd-2-clause
645
package processors.api // // Used for "annotate" and "sentiment" requests // trait Text { val text: String } trait Message case class TextMessage(text: String) extends Message with Text /** * Container for text that has already been split into sentences. * `segments` is used instead of `sentences` to avoid a...
myedibleenso/processors-server
src/main/scala/processors/api/Message.scala
Scala
apache-2.0
450
package com.seanshubin.builder.prototype import com.seanshubin.builder.prototype.Event.{Found, Processed, Ready} sealed trait State { def update(name: String, status: Int): State = ??? def results: Map[String, Int] = ??? def handle(event: Event): (State, Seq[Effect]) = { val stateName: String = getClass.g...
SeanShubin/builder
prototype/src/main/scala/com/seanshubin/builder/prototype/State.scala
Scala
unlicense
1,613
/* * Part of NDLA learningpath-api. * Copyright (C) 2016 NDLA * * See LICENSE * */ package no.ndla.learningpathapi.model.api import org.scalatra.swagger.annotations._ import org.scalatra.swagger.runtime.annotations.ApiModelProperty import scala.annotation.meta.field @ApiModel(description = "Status information...
NDLANO/learningpath-api
src/main/scala/no/ndla/learningpathapi/model/api/LearningStepStatus.scala
Scala
gpl-3.0
558
/* * 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 ...
akopich/spark
sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/HiveMetastoreLazyInitializationSuite.scala
Scala
apache-2.0
2,168
/* * 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 ...
aljoscha/flink
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/nodes/physical/batch/BatchExecPythonOverAggregate.scala
Scala
apache-2.0
8,546
/* * This file is part of EasyForger which is released under GPLv3 License. * See file LICENSE.txt or go to http://www.gnu.org/licenses/gpl-3.0.en.html for full license details. */ package com.easyforger.items import net.minecraft.item.Item.ToolMaterial import net.minecraft.item.ItemSword class EFItemSword(val mod...
easyforger/easyforger
src/main/scala/com/easyforger/items/EFItemSword.scala
Scala
gpl-3.0
459
package ctlmc.bddgraph import net.sf.javabdd._ class StateSet(val factory: GraphFactory, val bdd: BDD) extends FactoryElement { def this(factory: GraphFactory, state: State) = this(factory, state.bdd) def this(factory: GraphFactory, states: Iterable[State]) = this(factory, { var set = factory.bddFactory.zero() ...
fpoli/ctlmc
src/main/scala/bddgraph/StateSet.scala
Scala
gpl-3.0
1,184
/* * GNU GENERAL PUBLIC LICENSE * Version 2, June 1991 * * Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/> * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Everyone is permitted to copy and distribute verbatim copies * of this license document, ...
P1tt187/fhs-schedule-generator
app/logic/generator/schedulerater/rater/UnpopularDocentWishTimeAllocation.scala
Scala
gpl-2.0
20,665
/* * StillmanSubsumptionAlgorithmTest.scala * */ package gapt.expr import gapt.expr.formula.Atom import gapt.expr.formula.fol.FOLAtom import gapt.expr.formula.fol.FOLConst import gapt.expr.formula.fol.FOLFunction import gapt.expr.formula.fol.FOLVar import gapt.expr.formula.hol.HOLFunction import gapt.expr.ty.Ti im...
gapt/gapt
tests/src/test/scala/gapt/expr/StillmanSubsumptionAlgorithmTest.scala
Scala
gpl-3.0
6,508
package rumms import scjson.ast.* trait RummsCallbacks { /** a new Conversation has been opened */ def conversationAdded(conversationId:ConversationId):Unit /** an existing Conversation has been closed */ def conversationRemoved(conversationId:ConversationId):Unit /** a conversation is still fully alive */ d...
ritschwumm/rumms
src/main/scala/rumms/RummsCallbacks.scala
Scala
bsd-2-clause
497
package org.jetbrains.plugins.scala package lang package psi package api package toplevel package imports import com.intellij.psi.PsiElement /** * @author Alexander Podkhalyuzin * Date: 20.02.2008 */ trait ScImportSelectors extends ScalaPsiElement { def selectors: Array[ScImportSelector] def hasWildcard : Bool...
triggerNZ/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/api/toplevel/imports/ScImportSelectors.scala
Scala
apache-2.0
368
package x7c1.linen.database.struct import android.content.ContentValues import android.database.Cursor import android.database.sqlite.SQLiteDatabase import x7c1.linen.repository.date.Date import x7c1.wheat.macros.database.TypedFields.toArgs import x7c1.wheat.macros.database.{Query, TypedCursor, TypedFields} import x7c...
x7c1/Linen
linen-repository/src/main/scala/x7c1/linen/database/struct/LoaderScheduleTimeRecord.scala
Scala
mit
3,473
package com.sksamuel.elastic4s.http.search.aggs import com.sksamuel.elastic4s.searches.aggs._ import org.elasticsearch.common.xcontent.XContentBuilder object AggregationBuilderFn { def apply(agg: AggregationDefinition): XContentBuilder = { val builder = agg match { case agg: AvgAggregationDefinition => Av...
tyth/elastic4s
elastic4s-http/src/main/scala/com/sksamuel/elastic4s/http/search/aggs/AggregationBuilderFn.scala
Scala
apache-2.0
1,535
package EntityStore.Interface import EntityInterface.OrderByType.OderByType import EntityInterface._ class StoreOperation() case class EntityQuery(queryStatement:String,args:Array[Object],select:String,alias:String,appSpace:String, entitySetName:String,schema:IEntitySchema,tenantId:Int=0,reqID:I...
Mevolutrix/MevoFramework
Interface.EntityStore/src/main/scala/EntityStore/Interface/AccessorInterface.scala
Scala
apache-2.0
2,491
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); yo...
guozhangwang/kafka
core/src/main/scala/kafka/server/ReplicaFetcherBlockingSend.scala
Scala
apache-2.0
4,482
/* * Copyright 2020 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/vat-registration-frontend
it/connectors/PersonalDetailsValidationConnectorISpec.scala
Scala
apache-2.0
3,611
/* * Artificial Intelligence for Humans * Volume 1: Fundamental Algorithms * Scala Version * http://www.aifh.org * http://www.jeffheaton.com * * Code repository: * https://github.com/jeffheaton/aifh * Copyright 2013 by Jeff Heaton * * Licensed under the Apache License, Version 2.0 (the "License"); * you ma...
PeterLauris/aifh
vol1/scala-examples/src/main/scala/com/heatonresearch/aifh/error/AbstractErrorCalculation.scala
Scala
apache-2.0
1,799
/** * Copyright (C) Emiliyan Todorov. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program i...
emodemo/Popi
src/org/popi/tools/DataNormalizer.scala
Scala
gpl-3.0
2,518
/** * 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-commons/src/main/scala/io/gatling/commons/util/ThreadLocalRandoms.scala
Scala
apache-2.0
1,436
package com.aesireanempire.eplus.inventory import net.minecraft.inventory.{Container, InventoryBasic} class TableInventory(container: Container, name: String, hasName: Boolean, length: Int) extends InventoryBasic(name, hasName, length) { override def markDirty(): Unit = { super.markDirty() co...
darkhax/EnchantingPlus-Scala
src/main/scala/com/aesireanempire/eplus/inventory/TableInventory.scala
Scala
lgpl-3.0
363
/* * 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 ...
kevinyu98/spark
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkExecuteStatementOperation.scala
Scala
apache-2.0
15,060
/* * 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 ...
cloudera/spark
core/src/main/scala/org/apache/spark/scheduler/InputFormatInfo.scala
Scala
apache-2.0
6,538
/* * 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 ...
hengyicai/OnlineAggregationUCAS
sql/core/src/main/scala/org/apache/spark/sql/columnar/InMemoryColumnarTableScan.scala
Scala
apache-2.0
11,891
package es.weso.schema case class SchemaInfo(schemaName: String, schemaEngine: String, isWellFormed: Boolean, errors: List[String] )
labra/shaclex
modules/schema/src/main/scala/es/weso/schema/SchemaInfo.scala
Scala
mit
226
package org.soic.eac import org.apache.spark.SparkConf import org.apache.spark.SparkContext import org.apache.spark.ml.Pipeline import org.apache.spark.ml.classification.RandomForestClassifier import org.apache.spark.ml.feature.{VectorAssembler, StringIndexer} import org.apache.spark.ml.tuning.{TrainValidationSplit, P...
vahidj/eac
src/main/scala/org/soic/eac/BalanceReader.scala
Scala
apache-2.0
3,318
package latis.time import java.text.SimpleDateFormat import java.util.Date import java.util.TimeZone import java.text.ParseException /** * TimeFormat support that is thread safe and assumes GMT time zone. */ class TimeFormat(format: String) { private val sdf: SimpleDateFormat = { val sdf = try new SimpleDate...
dlindhol/LaTiS
src/main/scala/latis/time/TimeFormat.scala
Scala
epl-1.0
3,437
//Reduce the number of moodIDs from 132 to 14 emotions categories + 1 non labeled category import utils._ // utility methods import scala.io.Source import scala.math import BIDMat.{CMat, CSMat, DMat, Dict, FMat, FND, GMat, GDMat, GIMat, GLMat, GSMat, GSDMat, HMat, IDict, Image, IMat, LMat, Mat, SMat, SBMat, SDMat} ...
BIDS-collaborative/destress
process_data/moodidsTurk.scala
Scala
isc
1,538
/* * 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 ...
minixalpha/spark
examples/src/main/scala/org/apache/spark/examples/ml/ALSExample.scala
Scala
apache-2.0
2,918
import java.io.FileWriter import scala.actors.Actor import scala.actors.Actor._ import scala.util.parsing.json.JSONObject import sun.reflect.annotation.ExceptionProxy /** * User: sugar * Date: 11/5/13 * Time: 10:47 PM * To change this template use File | Settings | File Templates. */ @serializable final case cla...
striges/cop5615fa13
project4/actorlog.scala
Scala
gpl-3.0
3,777
package models.messages.client /** * Created by basso on 22/04/15. * Messages to clientManager to include this */ trait ClientManagerMessage
ChetanBhasin/Veracious
app/models/messages/client/ClientManagerMessage.scala
Scala
apache-2.0
145
/*********************************************************************** * 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-index-api/src/main/scala/org/locationtech/geomesa/index/index/z2/legacy/Z2IndexV3.scala
Scala
apache-2.0
2,159
import stainless.lang._ object ArrayOfPairs { case class A(var x: Int) def insert(array: Array[(Int, A)], time: Int, elem: A): Unit = { require(array.length > 0) swap(array, 0, Array((time, elem)), 0) } }
epfl-lara/stainless
frontends/benchmarks/imperative/valid/ArrayOfPairs.scala
Scala
apache-2.0
220
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package play.api.mvc.request import javax.inject.Inject import play.api.http.{ HttpConfiguration, SecretConfiguration } import play.api.libs.crypto.CookieSignerProvider import play.api.libs.typedmap.TypedMap import play.api.mvc._ import play...
wsargent/playframework
framework/src/play/src/main/scala/play/api/mvc/request/RequestFactory.scala
Scala
apache-2.0
4,209
/* * 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 ...
mrchristine/spark-examples-dbc
src/main/scala/org/apache/spark/examples/mllib/LDAExample.scala
Scala
apache-2.0
9,513
/* * 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 ...
Panos-Bletsos/spark-cost-model-optimizer
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/plans/SameResultSuite.scala
Scala
apache-2.0
2,655
package spgui.widgets import java.time._ //ARTO: Använder wrappern https://github.com/scala-js/scala-js-java-time import java.text.SimpleDateFormat import java.util.UUID import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.html_<^._ import japgolly.scalajs.react.ReactDOM import spgui.SPWidget import sp...
kristoferB/SP
gui/src/main/scala/spgui/widgets/StatusWidget.scala
Scala
mit
9,487
package com.airbnb.aerosolve.training import java.io.{StringReader, BufferedWriter, BufferedReader, StringWriter} import com.airbnb.aerosolve.core.models.ModelFactory import com.airbnb.aerosolve.core.{Example, FeatureVector} import com.typesafe.config.ConfigFactory import org.apache.spark.SparkContext import org.juni...
muspelheim/aerosolve
training/src/test/scala/com/airbnb/aerosolve/training/DecisionTreeModelTest.scala
Scala
apache-2.0
4,447