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
/* * 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 ...
BryanCutler/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/sources/ForeachWriterTable.scala
Scala
apache-2.0
5,859
package org.hqjpa import scala.collection.JavaConverters.asJavaCollectionConverter import javax.persistence.criteria.Expression import javax.persistence.criteria.Order import javax.persistence.criteria.Selection import scala.runtime.ScalaWholeNumberProxy /** * Companion object for related class.<br/> * <br/> * St...
vejobrolis/hqjpa
hqjpa/src/org/hqjpa/ExpressionProxy.scala
Scala
lgpl-3.0
11,253
/* * Copyright 2020 David Edwards * * 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...
davidledwards/zookeeper
zookeeper-cli/src/main/scala/com/loopfor/zookeeper/cli/command/Get.scala
Scala
apache-2.0
4,191
package equellatests.tests import cats.instances.vector._ import cats.syntax.all._ import equellatests.domain.{ItemId, RandomWords, TestLogon, Uniqueify} import equellatests.instgen.workflow import equellatests.pages.search.ManageResourcesPage import equellatests.restapi._ import equellatests.sections.search.{BulkOpCo...
equella/Equella
autotest/Tests/src/test/scala/equellatests/tests/BulkItemProperties.scala
Scala
apache-2.0
5,351
package com.norbitltd.spoiwo.model.enums object CellFill { lazy val None = CellFill("None") lazy val Solid = CellFill("Solid") object Pattern { lazy val AltBars = CellFill("AltBars") lazy val BigSpots = CellFill("BigSpots") lazy val Bricks = CellFill("Bricks") lazy val Diamonds = CellFill("Dia...
intracer/spoiwo
src/main/scala/com/norbitltd/spoiwo/model/enums/CellFill.scala
Scala
mit
1,155
/* * 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 n...
noslowerdna/kafka
core/src/main/scala/kafka/zookeeper/ZooKeeperClient.scala
Scala
apache-2.0
24,257
/* * 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...
dduvnjak/zipkin
zipkin-web/src/main/scala/com/twitter/zipkin/common/json/JsonEndpoint.scala
Scala
apache-2.0
1,105
package eu.gruchala.trampolines import eu.gruchala.BaseSpec class TrampolinedStateSpecs extends BaseSpec { //Seem to be working randomly on Scala 2.12 "Trampolined State implementation" ignore { "safely finish execution" when { "combined with zipIndex function" in { TStateOps.zipIndex(List.fill...
leszekgruchala/scala-exercises
src/test/scala/eu/gruchala/trampolines/TrampolinedStateSpecs.scala
Scala
apache-2.0
374
package org.neold import TestingTools._ import org.scalatest._ import org.neold.adapters.Adapters._ import org.neold.adapters.Adapters.BatchAdapter._ class BatchTest extends FlatSpec with Matchers { "[BATCH ENDPOINT] Neold" can "buffer and execute statements" in { def countOpt(results : String, id : Int...
elbywan/neold
src/test/scala/org/neold/BatchTest.scala
Scala
gpl-3.0
1,184
package org.jetbrains.plugins.scala.codeInspection.typeChecking import com.intellij.codeInspection.{ProblemHighlightType, ProblemsHolder} import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.annotator.PatternAnnotator import org.jetbrains.plugins.scala.codeInspection.typeChecking.PatternMayNeverMatchI...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/codeInspection/typeChecking/PatternMayNeverMatchInspection.scala
Scala
apache-2.0
2,127
package gapt.testing import ammonite.ops.FilePath import gapt.expr.Const import gapt.expr.formula.Atom import gapt.logic.hol.CNFn import gapt.proofs.context.Context import gapt.proofs.context.mutable.MutableContext import gapt.proofs.expansion.{ eliminateCutsET, eliminateDefsET } import gapt.proofs.lk.transformations....
gapt/gapt
testing/src/main/scala/testResolutionToExpansion.scala
Scala
gpl-3.0
3,286
/*********************************************************************** * Copyright (c) 2013-2016 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 ...
mdzimmerman/geomesa
geomesa-accumulo/geomesa-accumulo-datastore/src/test/scala/org/locationtech/geomesa/accumulo/process/knn/KNearestNeighborSearchProcessTest.scala
Scala
apache-2.0
9,593
package com.googlecode.kanbanik.builders import org.bson.types.ObjectId import com.googlecode.kanbanik.model.Board import com.googlecode.kanbanik.model.Workflowitem import com.googlecode.kanbanik.model.Workflow import com.googlecode.kanbanik.dtos.{WorkflowitemDto, WorkflowDto} class WorkflowitemBuilder extends BaseB...
mortenpoulsen/kanbanik
kanbanik-server/src/main/scala/com/googlecode/kanbanik/builders/WorkflowitemBuilder.scala
Scala
apache-2.0
2,333
/* * Copyright (c) 2014 Pascal Voitot * * 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...
mandubian/scaledn
macros/src/test/scala/MacrosSpec.scala
Scala
apache-2.0
4,327
package controllers import javax.inject.Inject import models.BidHelper import models.dao._ import models.images.Images import play.api.Configuration import play.api.cache.Cached import play.api.data.Forms._ import play.api.data._ import play.api.i18n.I18nSupport import play.api.mvc._ import play.twirl.api.HtmlFormat i...
jcranky/lojinha
app/controllers/Items.scala
Scala
gpl-3.0
3,479
package formacion.example /** * Simple interfaz */ trait Asesino { def asesina() : String; }
anavidad3/PoC-spark-scala-maven
src/test/scala/formacion/example/Asesino.scala
Scala
apache-2.0
101
/* * Copyright 2008-present MongoDB, 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 ag...
rozza/mongo-scala-driver
examples/src/test/scala/tour/QuickTourCaseClass.scala
Scala
apache-2.0
3,634
package org.jetbrains.plugins.scala.decompiler.scalasig import scala.collection.immutable.ArraySeq import scala.collection.mutable import scala.collection.mutable.ArrayBuffer /** * Nikolay.Tropin * 19-Jul-17 */ class ScalaSig(val entries: Array[Entry]) { private var initialized: Boolean = false def get(idx...
JetBrains/intellij-scala
scala/decompiler/src/org/jetbrains/plugins/scala/decompiler/scalasig/ScalaSig.scala
Scala
apache-2.0
2,701
/* * The MIT License * * Copyright (c) 2019 Fulcrum Genomics LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
fulcrumgenomics/fgbio
src/main/scala/com/fulcrumgenomics/vcf/api/VcfWriter.scala
Scala
mit
3,313
/* * 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 ...
Intel-bigdata/CRF-Spark
src/main/scala/com/intel/ssg/bdt/nlp/Graph.scala
Scala
apache-2.0
3,217
/* * Copyright 2012 Pellucid and Zenexity * * 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...
Enalmada/datomisca
macros/src/main/scala_2.10/datomisca/macros/Helper.scala
Scala
apache-2.0
6,213
/** * Copyright 2013 Gianluca Amato * * This file is part of JANDOM: JVM-based Analyzer for Numerical DOMains * JANDOM 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 ...
francescaScozzari/Jandom
core/src/main/ppl/it/unich/jandom/domains/numerical/ppl/PPLUtils.scala
Scala
lgpl-3.0
4,926
/* * Copyright 2014-2021 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
brharrington/atlas
atlas-core/src/main/scala/com/netflix/atlas/core/db/StaticDatabase.scala
Scala
apache-2.0
2,096
object Test { implicit class Foo(sc: StringContext) { object q { def apply(arg: Any*): Int = 3 } } def f = { val _parent = 3 q"val hello = $_parent" q"class $_" // error // error } }
dotty-staging/dotty
tests/neg/i1779.scala
Scala
apache-2.0
218
package scala.meta.eden import org.scalatest.FunSuite import scala.{meta => m} import dotty.tools.dotc._ import ast.{tpd, untpd} import parsing.Parsers.Parser import util.SourceFile import core.Contexts.ContextBase import scala.meta.dialects.Dotty trait EdenSuite extends FunSuite { implicit val ctx = (new ContextBa...
liufengyun/eden
src/test/scala/dotty/eden/EdenSuite.scala
Scala
bsd-3-clause
1,592
package katas.scala.classic_katas.datamunging import org.scalatest.FunSuite import scala.io.Source /** * User: dima * Date: 24/06/2012 */ class DataMunging2 extends FunSuite { test("should find rows with min temperature spread and min different between for and against goals") { assert(findMinRow("/Users/dima...
dkandalov/katas
scala/src/katas/scala/classic_katas/datamunging/DataMunging2.scala
Scala
unlicense
828
package org.openapitools.models import io.circe._ import io.finch.circe._ import io.circe.generic.semiauto._ import io.circe.java8.time._ import org.openapitools._ import org.openapitools.models.PipelineRunNodeedges import scala.collection.immutable.Seq /** * * @param Underscoreclass * @param displayName * @pa...
cliffano/swaggy-jenkins
clients/scala-finch/generated/src/main/scala/org/openapitools/models/PipelineRunNode.scala
Scala
mit
1,076
package com.karasiq.bootstrap.alert import com.karasiq.bootstrap.context.RenderingContext import com.karasiq.bootstrap.utils.Utils trait UniversalAlerts { self: RenderingContext with Alerts with Utils ⇒ import scalaTags.all._ import BootstrapAttrs._ type Alert = UniversalAlert object Alert extends AlertFact...
Karasiq/scalajs-bootstrap
library/shared/src/main/scala/com/karasiq/bootstrap/alert/UniversalAlerts.scala
Scala
mit
994
/* * * __________ ______ __ ________ _ __ ______ * /_ __/ __ \\/ _/ / / / / _/ __ \\/ | / / / ____/ * / / / /_/ // // / / / / // / / / |/ / / / __ * / / / _, _// // /___/ /____/ // /_/ / /| / / /_/ / * /_/ /_/ |_/___/_____/_____/___/\\____/_/ |_/ \\____/ *...
chan150/TrillionG
src/main/scala/kr/acon/io/BaseOutputFormat.scala
Scala
apache-2.0
2,446
package spgui.widgets.abilityhandler import java.util.UUID import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.html_<^._ import spgui.communication._ import sp.domain._ import Logic._ object AbilityHandlerWidget { import sp.devicehandler.{APIVirtualDevice => vdapi} import sp.abilityhandler.{APIAbil...
kristoferB/SP
spcontrol/frontend/src/main/scala/spgui/widgets/abilityhandler/AbilityHandler.scala
Scala
mit
4,953
package spark.bagel.examples import spark._ import spark.SparkContext._ import spark.bagel._ import spark.bagel.Bagel._ import scala.xml.{XML,NodeSeq} /** * Run PageRank on XML Wikipedia dumps from http://wiki.freebase.com/wiki/WEX. Uses the "articles" * files from there, which contains one line per wiki article ...
joeywen/spark_cpp_api
bagel/src/main/scala/spark/bagel/examples/WikipediaPageRank.scala
Scala
bsd-3-clause
2,777
package synthesis object Extractors // // import scala.tools.nsc._ // // /** Contains extractors to pull-out interesting parts of the Scala ASTs. */ // trait Extractors { // val global: Global // val pluginInstance: FunCheckPlugin // // import global._ // import global.definitions._ // // object Structu...
epfl-lara/comfusy
src/main/scala/Extractors.scala
Scala
bsd-2-clause
4,046
/* * Copyright (c) 2014 Paul Bernard * * 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...
pmularien/spectrum-old
financial/src/main/scala/org/quantintel/ql/indexes/Index.scala
Scala
apache-2.0
4,217
package org.buttercoin.engine import java.util.UUID import org.buttercoin.common.util._ import org.buttercoin.common.models.core.AccountID import org.buttercoin.common.models.money._ import org.buttercoin.common.models.order import order.{ TradeCompletionType, LiquidityMaker, LiquidityTaker } import org.buttercoin.com...
buttercoin/engine
core/src/main/scala/datastore/book.scala
Scala
mit
8,586
package org.jetbrains.plugins.scala.editor.enterHandler import com.intellij.application.options.CodeStyle import com.intellij.codeInsight.CodeInsightSettings import com.intellij.codeInsight.editorActions.enter.EnterHandlerDelegate.Result import com.intellij.codeInsight.editorActions.enter.EnterHandlerDelegateAdapter i...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/editor/enterHandler/Scala3IndentationBasedSyntaxEnterHandler.scala
Scala
apache-2.0
22,177
package 四法 trait Result case class ResultS(tail: Result) extends Result case object ResultT extends Result
djx314/ubw
a60-四/src/main/scala/四法/Result.scala
Scala
bsd-3-clause
125
package info.hupel.isabelle.sbt import sbt._ import sbtassembly.AssemblyPlugin import sbtassembly.AssemblyPlugin.autoImport._ object LibisabelleAssemblyPlugin extends AutoPlugin { override def requires = LibisabellePlugin && AssemblyPlugin override def trigger = allRequirements override def projectSettings: ...
larsrh/sbt-libisabelle
src/main/scala/LibisabelleAssemblyPlugin.scala
Scala
apache-2.0
536
package rx.lang.scala.schedulers import rx.lang.scala.Scheduler object ComputationScheduler { /** * [[rx.lang.scala.Scheduler]] intended for computational work. * <p> * This can be used for event-loops, processing callbacks and other computational work. * <p> * Do not perform IO-bound work on this s...
zjrstar/RxScala
src/main/scala/rx/lang/scala/schedulers/ComputationScheduler.scala
Scala
apache-2.0
680
package com.arcusys.valamis.lesson.scorm.service.sequencing import com.arcusys.valamis.lesson.scorm.model.sequencing._ import com.arcusys.valamis.lesson.scorm.model.tracking.ActivityStateTree import com.escalatesoft.subcut.inject.{ Injectable, BindingModule } /** * Termination Request Process [TB.2.3] * Ends the cu...
ViLPy/Valamis
valamis-scorm-lesson/src/main/scala/com/arcusys/valamis/lesson/scorm/service/sequencing/TerminationRequestService.scala
Scala
lgpl-3.0
6,624
package tryp package core import org.log4s.getLogger trait Logging { x => protected def loggerName: List[String] = Nil protected val moduleName = "tryp" protected implicit val log = { val parts = if (loggerName.isEmpty) List(this.className) else loggerName getLogger(parts.foldLeft(moduleName) { case (...
tek/pulsar
core/src/log.scala
Scala
mit
818
package org.zalando.jsonapi import org.zalando.jsonapi.model.Links.Link import org.zalando.jsonapi.model.RootObject.ResourceObjects import scala.collection.immutable.{Seq ⇒ ImmutableSeq} /** * The model package, containing partially covered Jsonapi specification. */ package object model { /** * A root, to...
texvex/scala-jsonapi
src/main/scala/org/zalando/jsonapi/model/package.scala
Scala
mit
7,007
/* * Copyright 2011-2017 Chris de Vreeze * * 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 agree...
dvreeze/yaidom
shared/src/main/scala/eu/cdevreeze/yaidom/resolved/package.scala
Scala
apache-2.0
2,157
/* * Copyright (c) 2018. Fengguo Wei and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License v2.0 * which accompanies this distribution, and is available at * https://www.apache.org/licenses/LICENSE-2.0 * * Detailed contributors ar...
arguslab/Argus-SAF
jnsaf/src/test/scala/org/argus/jnsaf/secret/Data.scala
Scala
apache-2.0
542
// Copyright (c) 2013, Johns Hopkins University. All rights reserved. // This software is released under the 2-clause BSD license. // See /LICENSE.txt // Travis Wolfe, twolfe18@gmail.com, 30 July 2013 package edu.jhu.hlt.parma.diagnostics import edu.jhu.hlt.parma.inference._ import edu.jhu.hlt.parma.types._ import e...
hltcoe/parma
src/main/scala/edu/jhu/hlt/parma/diagnostics/CanonicalMentionDiagnostics.scala
Scala
bsd-2-clause
2,735
package de.tu_berlin.impro3.spark import de.tu_berlin.impro3.core.{Algorithm => CoreAlgorithm} import net.sourceforge.argparse4j.inf.{Namespace, Subparser} object Algorithm { object Command { // argument names val KEY_MASTER = "master" } abstract class Command[A <: Algorithm](implicit m: scala.reflect...
joroKr21/spatio-temporal-dynamics
impro3-ws14-spark/src/main/scala/de/tu_berlin/impro3/spark/Algorithm.scala
Scala
apache-2.0
873
package com.twitter.finagle private object ThriftMuxUtil { val role = Stack.Role("ProtocolRecorder") def classForName(name: String) = try Class.forName(name) catch { case cause: ClassNotFoundException => throw new IllegalArgumentException("Iface is not a valid thrift iface", cause) } val ...
sveinnfannar/finagle
finagle-thriftmux/src/main/scala/com/twitter/finagle/ThriftMuxUtil.scala
Scala
apache-2.0
786
package com.eevolution.context.dictionary.infrastructure.service import java.util.UUID import akka.NotUsed import com.eevolution.context.dictionary.domain._ import com.eevolution.context.dictionary.domain.model.Chart import com.eevolution.utils.PaginatedSequence import com.lightbend.lagom.scaladsl.api.{Service, Servi...
adempiere/ADReactiveSystem
dictionary-impl/src/main/scala/com/eevolution/context/dictionary/infrastructure/service/ChartService.scala
Scala
gpl-3.0
1,981
/* * Copyright 2017 helloscala.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
helloscala/helloscala
hs-akka-http-session/src/main/scala/helloscala/http/session/converters/MapConverters.scala
Scala
apache-2.0
874
package io.buoyant.router.h2 import com.twitter.concurrent.AsyncQueue import com.twitter.conversions.time._ import com.twitter.finagle.Service import com.twitter.finagle.buoyant.h2.service.{H2Classifier, H2ReqRep, H2ReqRepFrame} import com.twitter.finagle.buoyant.h2.{Frame, Headers, Request, Response, Status, Stream} ...
denverwilliams/linkerd
router/h2/src/test/scala/io/buoyant/router/h2/ClassifiedRetryFilterTest.scala
Scala
apache-2.0
9,311
/* * 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 ...
starpit/openwhisk
core/invoker/src/main/scala/org/apache/openwhisk/core/invoker/NamespaceBlacklist.scala
Scala
apache-2.0
2,741
/** * Copyright (C) 2010-2011 LShift Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
lshift/diffa
client-support/src/main/scala/net/lshift/diffa/client/ContentParticipantRestClient.scala
Scala
apache-2.0
2,333
/* * Copyright 1998-2016 Linux.org.ru * 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...
fat0troll/lorsource
src/main/scala/ru/org/linux/topic/TopicTagDao.scala
Scala
apache-2.0
5,704
package stdlib import byteR.JVMInstruction import frontend._ abstract class LibraryPackage { def apply(name: List[String]): Option[ASTType] /* This should list all the prefixes with which to * refer to a certain package. e.g. for Real.fromInt, * 'Real' would be the package, and 'fromInt' the name. */ val...
j-c-w/mlc
src/main/scala/stdlib/LibraryPackage.scala
Scala
gpl-3.0
360
/* * 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 ...
michalsenkyr/spark
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveTableScanExec.scala
Scala
apache-2.0
8,709
class InvalidCommandException extends MemcacheClientException
dallasgutauckis/xsltd
src/InvalidCommandException.scala
Scala
bsd-3-clause
61
/*********************************************************************** * Copyright (c) 2013-2019 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...
elahrvivaz/geomesa
geomesa-utils/src/test/scala/org/locationtech/geomesa/utils/bin/BinaryEncodeCallbackTest.scala
Scala
apache-2.0
5,080
package spark.deploy private[spark] class ApplicationDescription( val name: String, val cores: Int, val memoryPerSlave: Int, val command: Command, val sparkHome: String) extends Serializable { val user = System.getProperty("user.name", "<unknown>") override def toString: String = "Applicati...
koeninger/spark
core/src/main/scala/spark/deploy/ApplicationDescription.scala
Scala
bsd-3-clause
351
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
icexelloss/spark
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/unresolved.scala
Scala
apache-2.0
20,818
import org.scalatest.FunSuite import scala.annotation.StaticAnnotation // TODO: DavidDudson: simplify with argument macros class Expansion extends FunSuite { test("Nested macro should expand with identity") { @identity object Foo { @helloWorld def bar() = "test" } assert(Foo.bar() === "hello ...
xeno-by/paradise
tests/meta/src/test/scala/compile/Expansion.scala
Scala
bsd-3-clause
4,652
/* * Copyright 2016 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
andywhardy/address-reputation-ingester
test/unit/fetch/WebDavTreeTest.scala
Scala
apache-2.0
14,519
/* * Copyright (c) 2014-2018 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...
Wogan/monix
monix-reactive/shared/src/test/scala/monix/reactive/internal/operators/DoOnSubscribeSuite.scala
Scala
apache-2.0
2,600
package webserviceclients.audit2 import scala.concurrent.Future import uk.gov.dvla.vehicles.presentation.common.clientsidesession.TrackingId trait AuditService { def send(auditRequest: AuditRequest, trackingId: TrackingId): Future[Unit] }
dvla/vrm-retention-online
app/webserviceclients/audit2/AuditService.scala
Scala
mit
243
package models.slick import bay.driver.CustomizedPgDriver import java.time._ import io.circe._ import shared.models.slick.default._ object Default extends { val profile = bay.driver.CustomizedPgDriver } with Default trait Default { val profile: bay.driver.CustomizedPgDriver import profile.api._ import sli...
Daxten/BayTemplate-ScalaJs
dbschema/src/main/scala/models/slick/Default.scala
Scala
apache-2.0
5,830
/* * 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
core/src/test/scala/org/apache/spark/deploy/DeployTestUtils.scala
Scala
apache-2.0
4,217
// Automatically-generated code // === Init === // Transfo time: 0ms Stringifying time: 124ms { val xs_0 = scala.collection.Seq.apply[scala.Int](1, 2, 3, 4, 5, 6, 7, 8, 9, 10); val x_1 = xs_0.toIndexedSeq; val sch_2 = ((x_1): scala.collection.IndexedSeq[scala.Int]); val x_3 = sch_2.size; val x_4 = new sfu...
epfldata/squid
example_gen/test/sfusion/Basics.scala
Scala
apache-2.0
7,927
package com.tritondigital.consul.http.client import com.ning.http.client.{AsyncHttpClient, Response} import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future class ConsulRequestBuilder(requestBuilder: AsyncHttpClient#BoundRequestBuilder, host: String = "localhost", port: Int = 8500, c...
tritondigital/ConsulHttpClient
src/main/scala/com/tritondigital/consul/http/client/ConsulRequestBuilder.scala
Scala
mit
943
package capitulo02 import org.junit.Test import org.junit.runner.RunWith import org.junit.internal.runners.JUnit4ClassRunner @RunWith(classOf[JUnit4ClassRunner]) class ProdutoHelloJUnit { def prod(s: String) = { var res: Long = 1; for (ch <- s) res *= ch.toLong res } @Test def test(){ as...
celioeduardo/scala-impatient
src/test/scala/capitulo02/ProdutoHelloJUnit.scala
Scala
mit
363
/* * SpreadsheetViewImpl.scala * (SysSon) * * Copyright (c) 2013-2017 Institute of Electronic Music and Acoustics, Graz. * Copyright (c) 2014-2019 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU General Public License v3+ * * * For further information, please contact H...
iem-projects/sysson
src/main/scala/at/iem/sysson/gui/impl/SpreadsheetViewImpl.scala
Scala
gpl-3.0
6,920
/* * 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 ...
dbtsai/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DescribeNamespaceExec.scala
Scala
apache-2.0
2,381
package momijikawa.p2pscalaproto import akka.actor._ import scala.concurrent.duration._ class ActorFinder(path: String) { }
windymelt/p2pScalaProto
src/main/scala/momijikawa/p2pscalaproto/ActorFinder.scala
Scala
bsd-3-clause
127
package com.shocktrade.server.dao package securities import com.shocktrade.common.forms.ResearchOptions import com.shocktrade.common.models.quote._ import com.shocktrade.server.common.LoggerFactory import io.scalajs.npm.mongodb._ import io.scalajs.util.JsUnderOrHelper._ import scala.concurrent.{ExecutionContext, Futu...
ldaniels528/shocktrade.js
app/server/dao/src/main/scala/com/shocktrade/server/dao/securities/SecuritiesDAO.scala
Scala
apache-2.0
6,252
object project extends ProjectSettings { def scalaVersion = "2.10.4" def version = "1.1.0" def name = "json-lift" def description = "Rapture JSON/Lift provides support the Lift parser in Rapture JSON" def dependencies = Seq( "json" -> "1.1.0" ) def thirdPartyDependencies = Seq( ("net.liftweb...
joescii/rapture-json-lift
project/project.scala
Scala
apache-2.0
450
package org.apache.spot.proxy import org.apache.spark.SparkContext import org.apache.spark.rdd.RDD import org.apache.spark.sql._ import org.apache.spark.sql.types.{StructType, StructField, StringType} import scala.io.Source import org.apache.spot.proxy.ProxySchema._ object ProxyFeedback { /** * Load the feed...
kpeiruza/incubator-spot
spot-ml/src/main/scala/org/apache/spot/proxy/ProxyFeedback.scala
Scala
apache-2.0
2,556
/* * 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 ...
aokolnychyi/spark
streaming/src/test/scala/org/apache/spark/streaming/StreamingContextSuite.scala
Scala
apache-2.0
36,515
/* * Copyright (C) 2012 Romain Reuillon * * 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 is di...
openmole/openmole
openmole/plugins/org.openmole.plugin.environment.batch/src/main/scala/org/openmole/plugin/environment/batch/authentication/CypheredPassword.scala
Scala
agpl-3.0
1,005
/* * 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.testsuite.library import ...
scala-js/scala-js
test-suite/js/src/test/scala/org/scalajs/testsuite/library/FinalizationRegistryTest.scala
Scala
apache-2.0
1,175
package org.orbroker /** * Broker execution callback. */ package object callback { }
nilskp/orbroker
src/main/scala/org/orbroker/callback/package.scala
Scala
mit
95
package filodb.jmh import java.util.concurrent.TimeUnit import org.openjdk.jmh.annotations.{Mode, Scope, State} import org.openjdk.jmh.annotations.Benchmark import org.openjdk.jmh.annotations.BenchmarkMode import org.openjdk.jmh.annotations.OutputTimeUnit import spire.syntax.cfor._ import filodb.memory.NativeMemoryM...
tuplejump/FiloDB
jmh/src/main/scala/filodb.jmh/EncodingBenchmark.scala
Scala
apache-2.0
3,841
import com.typesafe.config.ConfigFactory import com.typesafe.config.ConfigRenderOptions import akka.actor._ //import java.io.File import java.io.PrintWriter import Task._ object Workflow extends RunCommand with WhoAmI { var realtime = false var tasks = scala.collection.mutable.Map[String,Task]() def run():Un...
christopherwharrop/chiltepin
src/main/scala/workflow.scala
Scala
apache-2.0
2,316
package ee.cone.c4gate.deep_session import ee.cone.c4gate.FilterPredicateBuilderApp trait DeepFilterPredicateBuilderApp extends FilterPredicateBuilderApp
conecenter/c4proto
extra_lib/src/main/scala/ee/cone/c4gate/deep_session/DeepFilterPredicateBuilderApp.scala
Scala
apache-2.0
156
package go.echo import io.gatling.core.Predef._; import io.gatling.http.Predef._; /** * Created by fox on 8/15/16. */ class EchoPingPongSimulation extends Simulation { val httpProtocol = http .baseURL("http://192.168.10.66:9700") .inferHtmlResources() .acceptHeader("*/*") val users = 20000 val s...
foxundermoon/gatling-test
src/gatling/scala/go/echo/EcchoPingPongSimulation.scala
Scala
mit
481
/* * 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.testsuite.javalib.util.con...
SebsLittleHelpers/scala-js
test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/util/concurrent/ConcurrentLinkedQueueTest.scala
Scala
apache-2.0
5,094
/* * 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/vat-registration-frontend
app/forms/PaymentFrequencyForm.scala
Scala
apache-2.0
1,770
object funcionalSideEffect{ def main(args: Array[String]): Unit ={ sideEffect(args) } //funcional xa que non usa var pero ten o side effect do print def sideEffect(args: Array[String]): Unit = args.foreach(println) }
jmlb23/scala
libro_odersky/scripts_CH3/funcional/funcionalSideEffect.scala
Scala
gpl-3.0
229
package com.criteo.dev.cluster.config import java.time.Instant /** * Checkpoint for data copy * @param created * @param updated * @param todo Tables to be copied * @param finished Tables copied with success * @param failed Tables failed to copy * @param invalid Invalid tables */ case class Checkpoint(...
criteo/berilia
src/main/scala/com/criteo/dev/cluster/config/Checkpoint.scala
Scala
apache-2.0
650
package com.yiguang.perf /** * Created by yigli on 14-12-22. */ object TestFor extends App{ val start = System.currentTimeMillis() fibonacci(35) val end = System.currentTimeMillis() println(end-start) private def fibonacci(n:Int):Int = { if(n <= 2){ return 1; }else{ return (fib...
liyiguang/perftool
src/test/scala/com/yiguang/perf/TestFor.scala
Scala
apache-2.0
362
package com.softwaremill.bootzooka.test import com.typesafe.scalalogging.LazyLogging /** * @param shellCommand Command to run the process. * @param processGrepStrings Strings which will be used when grepping the process list to determine the process's pid. */ class KillableProcess(shellCommand: String, processGrep...
umitunal/bootzooka
backend/src/test/scala/com/softwaremill/bootzooka/test/KillableProcess.scala
Scala
apache-2.0
951
/* * Copyright 2014 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
yeghishe/spark-kernel
client/src/main/scala/com/ibm/spark/kernel/protocol/v5/client/socket/SocketFactory.scala
Scala
apache-2.0
4,544
object Test extends App { println(Macros.foo_with_implicits_enabled) println(Macros.foo_with_implicits_disabled) }
scala/scala
test/files/run/macro-typecheck-implicitsdisabled/Test_2.scala
Scala
apache-2.0
119
package de.htwg.zeta.common.format.project.gdsl.diagram import de.htwg.zeta.common.models.project.gdsl.diagram.Palette import de.htwg.zeta.common.models.project.gdsl.shape.Edge import de.htwg.zeta.common.models.project.gdsl.shape.Node import de.htwg.zeta.common.models.project.gdsl.shape.Resizing import de.htwg.zeta.co...
Zeta-Project/zeta
api/common/src/test/scala/de/htwg/zeta/common/format/project/gdsl/diagram/PaletteFormatTest.scala
Scala
bsd-2-clause
1,821
package tadp_grupo5 import scala.collection.mutable.Buffer class Sucursal (volumenDeposito : Int, val pais : String) { var paquetesEnSalir : Buffer[Paquete] = Buffer() var paquetesEnEntrar : Buffer[Paquete] = Buffer() var transportes : Buffer[Transporte] = Buffer() def capacidad : Int = volumenDeposito - p...
JonaC22/TADP_2C2014_GRUPO_5
TP2_Scala/Objeto-Puro/src/tadp_grupo5/Sucursal.scala
Scala
mit
1,862
package com.avsystem.commons package mongo.core.ops import com.avsystem.commons.mongo.DocKey import org.bson.BsonValue trait DocKeyKeyHandling[T] extends Any with KeyHandling { protected def docKey: DocKey[T, _ <: BsonValue] override protected def key: String = docKey.key }
AVSystem/scala-commons
commons-mongo/jvm/src/main/scala/com/avsystem/commons/mongo/core/ops/DocKeyKeyHandling.scala
Scala
mit
282
/* // Copyright 2012/2013 de Gustavo Steinberg, Flavio Soares, Pierre Andrews, Gustavo Salazar Torres, Thomaz Abramo // // Este arquivo é parte do programa Vigia Político. O projeto Vigia // Político é um software livre; você pode redistribuí-lo e/ou // modificá-lo dentro dos termos da GNU Affero General Public License...
cidadao-automatico/cidadao-server
app/models/Comission.scala
Scala
agpl-3.0
2,985
package settings.membership import java.util.UUID import scala.annotation.implicitNotFound import auth.models.User import log.OrgaEvent import log.EventsSource import log.events.joinRequest.JoinResponseEventDto import play.api.libs.json.JsString import play.api.libs.json.Json import play.api.libs.json.Writes import se...
readren/coc-war-organizer
app/settings/membership/MembershipSrv.scala
Scala
apache-2.0
5,950
/* * 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 ...
techaddict/spark
streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobGenerator.scala
Scala
apache-2.0
12,964
/* * Copyright (c) 2010 Sony Pictures Imageworks Inc. * * 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, thi...
imageworks/scala-migrations
src/main/scala/com/imageworks/migration/Migration.scala
Scala
bsd-3-clause
32,987
package org.jetbrains.plugins.scala package lang.refactoring.changeSignature import javax.swing.table.TableCellEditor import com.intellij.codeInsight.daemon.impl.analysis.{FileHighlightingSetting, HighlightLevelUtil} import com.intellij.openapi.project.Project import com.intellij.psi._ import com.intellij.refactoring...
LPTK/intellij-scala
src/org/jetbrains/plugins/scala/lang/refactoring/changeSignature/ScalaParameterTableModel.scala
Scala
apache-2.0
3,816
package com.evojam.mongodb.client.util import scala.collection.JavaConversions._ import com.mongodb.async.{ AsyncBatchCursor, SingleResultCallback } import rx.lang.scala.Observable import rx.lang.scala.Subscriber trait AsyncEnriched { implicit class AsyncBatchCursorEnriched[T](wrapped: AsyncBatchCursor[T]) { ...
evojam/mongodb-driver-scala
src/main/scala/com/evojam/mongodb/client/util/AsyncEnriched.scala
Scala
apache-2.0
1,511
package org.leialearns.crystallize.util import java.io.{StringWriter, Writer} import scala.language.implicitConversions trait Describable { def description: String def descriptionLength: Long def writeDescription(writer: Writer): Unit = writer.write(description) } trait CompositeDescribable extends Describabl...
jeroenvanmaanen/crystallize
src/main/scala/org/leialearns/crystallize/util/Describable.scala
Scala
lgpl-2.1
1,516
package blended.security.ssl.internal import java.io.File import java.util.{Calendar, Date, GregorianCalendar} import blended.testsupport.BlendedTestSupport import blended.testsupport.pojosr.PojoSrTestHelper import org.scalatest.FreeSpec class CertificateRefresherSpec extends FreeSpec with PojoSrTestHelper { over...
lefou/blended
blended.security.ssl/src/test/scala/blended/security/ssl/internal/CertificateRefresherSpec.scala
Scala
apache-2.0
2,829