code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
/* * Copyright 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...
mjwall/zipkin
zipkin-common/src/main/scala/com/twitter/zipkin/storage/RealtimeAggregates.scala
Scala
apache-2.0
1,376
/* ************************************************************************************* * Copyright 2011 Normation SAS ************************************************************************************* * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero Ge...
Kegeruneku/rudder
rudder-core/src/main/scala/com/normation/rudder/repository/NodeGroupRepository.scala
Scala
agpl-3.0
15,175
/* * MIT License * * Copyright (c) 2017 Enrique González Rodrigo * 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 use,...
enriquegrodrigo/spark-crowd
spark-crowd/src/main/scala/com/enriquegrodrigo/spark/crowd/types/GladModel.scala
Scala
mit
2,503
/* * 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/model/DsType.scala
Scala
apache-2.0
1,037
/* Copyright 2017-19, Emmanouil Antonios Platanios. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
eaplatanios/tensorflow_scala
modules/api/src/main/scala/org/platanios/tensorflow/api/implicits/helpers/TensorStructure.scala
Scala
apache-2.0
5,138
package TAPL2.FullEquiRec import TAPL2.FullSimple.FullSimple import TAPL2.Util._ import TAPL2.{Term, Ty} case class TyVar(i: String) extends Ty case class TyRecord(els: List[(String, Ty)]) extends Ty case class TyArr(t1: Ty, t2: Ty) extends Ty case object TyNat extends Ty case class TyVariant(els: List[(String, T...
hy-zhang/parser
Scala/Old/TAPL2/FullEquiRec/FullEquiRec.scala
Scala
bsd-3-clause
2,622
package at.logic.gapt.proofs.lk.algorithms import at.logic.gapt.expr._ import at.logic.gapt.expr.TA import at.logic.gapt.proofs.lk._ import at.logic.gapt.proofs.lk.base.{ LKProof, Sequent } import at.logic.gapt.proofs.lksk.UnaryLKskProof import at.logic.gapt.proofs.shlk._ import scala.collection.mutable object getSt...
gisellemnr/gapt
src/main/scala/at/logic/gapt/proofs/lk/algorithms/statistics.scala
Scala
gpl-3.0
11,834
/******************************************************************************* Copyright (c) 2013, S-Core, KAIST. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. **************************************************************...
daejunpark/jsaf
src/kr/ac/kaist/jsaf/analysis/typing/models/DOMCore/DOMConfiguration.scala
Scala
bsd-3-clause
6,749
package mesosphere.marathon import java.util.concurrent.TimeUnit import javax.inject.Named import akka.actor.SupervisorStrategy.Restart import akka.actor._ import akka.event.EventStream import akka.routing.RoundRobinPool import akka.stream.Materializer import com.google.inject._ import com.google.inject.name.Names im...
janisz/marathon
src/main/scala/mesosphere/marathon/MarathonModule.scala
Scala
apache-2.0
4,643
package io.kaitai.struct.translators import io.kaitai.struct.datatype.DataType import io.kaitai.struct.exprlang.Ast import io.kaitai.struct.format.{ClassSpec, EnumSpec} /** * Common interface of a "type provider", i.e. a class that answers * queries on resolving particular user types / attributes by given * nam...
kaitai-io/kaitai_struct_compiler
shared/src/main/scala/io/kaitai/struct/translators/TypeProvider.scala
Scala
gpl-3.0
751
/* * Copyright (c) 2017 Magomed Abdurakhmanov, Hypertino * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ package com.hypertino.hyperbus.util import monix.ev...
hypertino/hyperbus
hyperbus/src/main/scala/com/hypertino/hyperbus/util/TaskUtils.scala
Scala
mpl-2.0
798
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
hmrc/ct-calculations
src/main/scala/uk/gov/hmrc/ct/box/SelfValidatableBox.scala
Scala
apache-2.0
7,995
package ircd_conformance.test import akka.actor.{Actor, ActorRef, ActorSystem, PoisonPill, Props, Terminated} import akka.io.Tcp.Connected import akka.pattern.ask import akka.testkit.{EventFilter, TestKit, TestProbe, TestEventListener} import akka.util.{ByteString, Timeout} import com.typesafe.config.{Config, ConfigFa...
jerith/ircd-conformance
src/test/scala/ircd_conformance/client/TestIrcClient.scala
Scala
mit
7,525
package com.twitter.finagle.loadbalancer import com.twitter.conversions.time._ import com.twitter.finagle.stats.{StatsReceiver, NullStatsReceiver} import com.twitter.finagle.util.{Rng, DefaultTimer} import com.twitter.finagle.{ServiceFactory, NoBrokersAvailableException} import com.twitter.util.{Activity, Duration, Ti...
kingtang/finagle
finagle-core/src/main/scala/com/twitter/finagle/loadbalancer/Balancers.scala
Scala
apache-2.0
5,317
/* * Copyright 2012-2015 Pellucid Analytics * Copyright 2015 Daniel W. H. James * * 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 * * ...
liruqi/aws-wrap
src/main/scala/sns/sns.scala
Scala
apache-2.0
5,638
package com.shorrockin.cascal.model import java.nio.ByteBuffer /** * categorization of a cassandra path component. * * @author Chris Shorrock * @param ValueType all path components contain a value, this * defines the type of value. */ trait PathComponent[ValueType] { val value:ValueType } /** * ca...
Shimi/cascal
src/main/scala/com/shorrockin/cascal/model/PathComponent.scala
Scala
apache-2.0
608
package io.github.mandar2812.dynaml.examples import java.io.File import breeze.linalg.{DenseMatrix, DenseVector} import com.github.tototoshi.csv.CSVWriter import io.github.mandar2812.dynaml.evaluation.RegressionMetrics import io.github.mandar2812.dynaml.kernels._ import io.github.mandar2812.dynaml.models.gp.{GPNarMod...
sisirkoppaka/bayeslearn
src/main/scala/io/github/mandar2812/dynaml/examples/TestOmniAR.scala
Scala
apache-2.0
10,546
package Yosemite.framework.master import akka.actor.ActorRef import java.util.Date import scala.collection.mutable.{HashSet} private[Yosemite] class ClientInfo( val startTime: Long, val id: String, val host: String, ...
zhanghan1990/Yosemite
core/src/main/scala/Yosemite/framework/master/ClientInfo.scala
Scala
apache-2.0
973
/* * 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 ...
ksimar/incubator-carbondata
integration/spark-common/src/main/scala/org/apache/carbondata/spark/KeyVal.scala
Scala
apache-2.0
3,821
package molt package syntax package agenda import ordered._ import shapeless._ object Examples { // EXAMPLE USAGE import SyncCFGProductionSyntax._ // example of how to make productions case class ExpStr(x: String) case class ExpInt(i: Int) val StrSymb = new ParseSymbol[ExpStr]("Str") val StrSymb2 = ...
julianmichael/molt
molt/shared/src/main/scala/molt/syntax/agenda/Examples.scala
Scala
mit
3,401
package pl.combosolutions.backup.psm.elevation import pl.combosolutions.backup.ReportException import pl.combosolutions.backup.psm.PlatformSpecificSpecification import pl.combosolutions.backup.psm.programs.{ GenericProgram, ProgramResultTestHelper } import pl.combosolutions.backup.psm.systems.{ PosixSystem, WindowsSys...
MateuszKubuszok/BackupDSL
modules/psm/src/test/scala/pl/combosolutions/backup/psm/elevation/PlatformSpecificAdvisedTest.scala
Scala
mit
1,483
package com.github.gdefacci.raz object PathRenderer { private lazy val paramEscape: String => String = java.net.URLEncoder.encode(_: String, "UTF-8") private lazy val segmentEscape: String => String = UriPartEncode.encode(UriPartEncode.pathUnescaped) def render(p: Path): String = { lazy val params: String ...
gdefacci/raz
raz/src/main/scala/com/github/gdefacci/raz/PathRenderer.scala
Scala
mit
2,350
// 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...
EvilMcJerkface/kudu
java/kudu-backup/src/test/scala/org/apache/kudu/backup/TestKuduBackup.scala
Scala
apache-2.0
14,140
package dotty.tools package dotc package core import Types._, Contexts._, Symbols._, Denotations._, SymDenotations._, StdNames._, Names._ import Flags._, Scopes._, Decorators._, NameOps._, util.Positions._, Periods._ import unpickleScala2.Scala2Unpickler.ensureConstructor import scala.annotation.{ switch, meta } impor...
densh/dotty
src/dotty/tools/dotc/core/Definitions.scala
Scala
bsd-3-clause
43,098
package io.github.vigoo.bash.language import cats.data.State import cats.implicits._ import io.github.vigoo.bash.language.BashConditions.StringEquals import io.github.vigoo.bash.language.BashExpressions._ import io.github.vigoo.bash.language.BashStatements._ import io.github.vigoo.bash.language.BashVariables.{Position...
vigoo/barlang
src/main/scala/io/github/vigoo/bash/language/BashPrettyPrint.scala
Scala
apache-2.0
19,032
/* * Copyright 2014 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 l...
joychugh/storehaus
storehaus-elasticsearch/src/main/scala/com/twitter/storehaus/elasticsearch/ElasticSearchStringStore.scala
Scala
apache-2.0
4,921
package io.flow.play.util /** * Class designed to help generate URL friendly keys, with methods to * create unique tokens. * * adapted drom https://github.com/mbryzek/apidoc * * @param minKeyLength Minimum length of key used for validation * @param reservedKeys Optionally validate that key cannot be on...
flowcommerce/lib-play
app/io/flow/play/util/UrlKey.scala
Scala
mit
3,910
object Traits { trait OuterClass[V <: OuterClass[V]#InnerClass] { trait InnerClass {self: V => def method = () } } trait SubOuterClass[T <: SubOuterClass[T]#SubInnerClass] extends OuterClass[T] { trait SubInnerClass extends super.InnerClass {self: T => } } trait SubOuterClass2[T <: SubOuter...
yusuke2255/dotty
tests/pending/pos/t4970b.scala
Scala
bsd-3-clause
956
package org.clulab.odin trait Attachment
sistanlp/processors
main/src/main/scala/org/clulab/odin/Attachment.scala
Scala
apache-2.0
42
package de.mineformers.core.util.world.snapshot import java.util import de.mineformers.core.util.Implicits.VBlockPos import de.mineformers.core.util.world.{BlockCuboid, BlockPos} import net.minecraft.entity.EnumCreatureType import net.minecraft.nbt.NBTTagCompound import net.minecraft.util.IProgressUpdate import net.m...
MineFormers/MFCore
src/main/scala/de/mineformers/core/util/world/snapshot/WorldSnapshot.scala
Scala
mit
4,217
package org.gtri.util.scala.xsdbuilder.elements import org.gtri.util.scala.statemachine._ import org.gtri.util.xsddatatypes._ import org.gtri.util.xsddatatypes.XsdConstants._ import org.gtri.util.scala.xsdbuilder.XmlParser._ import org.gtri.util.scala.xmlbuilder.{XmlNamespaceContext, XmlElement} final case class XsdS...
gtri-iead/org.gtri.util.scala
xsdbuilder/src/main/scala/org/gtri/util/scala/xsdbuilder/elements/XsdSimpleTypeRestriction.scala
Scala
gpl-3.0
1,723
import java.io.File import java.nio.file.Paths import Benchmarks.benchOutput import com.typesafe.config.{Config, ConfigFactory, ConfigObject} import sbt._ import sbt.Keys._ import scala.util.Try import scala.sys.process._ import collection.JavaConverters._ case class Configuration( reference:...
rorygraves/perf_tester
light/project/Runner.scala
Scala
apache-2.0
4,007
/* * 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/catalyst/src/main/scala/org/apache/spark/sql/types/ArrayType.scala
Scala
apache-2.0
4,955
package com.mz.training.common.mappers import java.sql.ResultSet import com.mz.training.domains.EntityId /** * Created by zemo on 11/10/15. */ trait SqlDomainMapper[E <: EntityId] { val ID_COL = "id" def sqlProjection: String def tableName: String def columns: String def setValues(implicit entity: E...
michalzeman/angular2-training
akka-http-server/src/main/scala/com/mz/training/common/mappers/SqlDomainMapper.scala
Scala
mit
1,265
// // Copyright 2013, Martin Pokorny <martin@truffulatree.org> // // This Source Code Form is subject to the terms of the Mozilla Public License, // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. // package org.truffulatree.scampi2 import org.brid...
mpokorny/scampi
src/main/scala/org/truffulatree/scampi2/NamedComponent.scala
Scala
mpl-2.0
770
abstract class Coll[E] extends java.util.Collection[E] { override def toArray[T](a: Array[T with Object]): Array[T with Object] = ??? }
som-snytt/dotty
tests/pos/i1747.scala
Scala
apache-2.0
138
/* * 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...
yiheng/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/utils/Engine.scala
Scala
apache-2.0
19,406
/* * 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...
slamdata/slamengine
impl/src/test/scala/quasar/impl/schema/SstSchemaSpec.scala
Scala
apache-2.0
3,200
/* * Copyright (C) 2011 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...
ISCPIF/PSEExperiments
openmole-src/openmole/core/org.openmole.core.batch/src/main/scala/org/openmole/core/batch/storage/VolatileStorageService.scala
Scala
agpl-3.0
1,353
/* * Copyright (c) 2013-2014 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, and * you may not use this file except in compliance with the Apache License * Version 2.0. You may obtain a copy of the Apache License Version 2.0 at * http://www....
artsy/snowplow
2-collectors/scala-stream-collector/project/ScalaCollectorBuild.scala
Scala
apache-2.0
1,732
/** * The MIT License (MIT) * * Copyright (c) 2018 Israel Freitas(israel.araujo.freitas@gmail.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including with...
ifreitas/AimlToXml
src/main/scala/ifreitas/scalaaiml/elements/Name.scala
Scala
mit
1,348
/* * Copyright 2014–2017 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...
drostron/quasar
connector/src/test/scala/quasar/qscript/QScript.scala
Scala
apache-2.0
40,954
package org.planteome.samara trait TermFinderTaxonCachePO extends TermFinderTaxonCache { override def taxonMapCacheConfig: TaxonMapCache = { val prefix = "PO:" val lineFilter: (String) => Boolean = { (s: String) => s.contains(prefix) } val prefixFilter: (TaxonMap) => Boolean = { (map: TaxonMap) => map.re...
jhpoelen/samara
src/main/scala/org/planteome/samara/TermFinderTaxonCachePO.scala
Scala
mit
771
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package javaguide.http import java.util.concurrent.CompletableFuture import akka.stream.ActorMaterializer import org.specs2.mutable.Specification import play.api.mvc.{EssentialAction, RequestHeader} import play.api.routing.Router import java...
wsargent/playframework
documentation/manual/working/javaGuide/main/http/code/javaguide/http/JavaRouting.scala
Scala
apache-2.0
4,855
package de.zalando.play.controllers /** * An abstraction over parameters of type Array * * Needed for parsing as there are many possibilities to encode an array * as query parameter or a header * * @author slasch * @since 03.01.2016. */ trait ArrayWrapper[+T] { def items: Seq[T] def separator: Cha...
zalando/play-swagger
api/src/main/scala/de/zalando/play/controllers/ArrayWrappers.scala
Scala
mit
1,914
import com.google.inject.{Inject, Singleton} import play.api._ import play.api.http.HttpFilters import play.filters.cors.CORSFilter @Singleton class Filters @Inject()( env: Environment, corsFilter: CORSFilter) extends HttpFilters { override val filters = { // Use the e...
aholland/autowire-circe
server/app/Filters.scala
Scala
unlicense
522
package org.genericConfig.admin.models.ConfigGraph import org.genericConfig.admin.controllers.websocket.WebClient import org.genericConfig.admin.models.CommonFunction import org.genericConfig.admin.shared.Actions import org.genericConfig.admin.shared.configGraph.{ConfigGraphDTO, ConfigGraphParamsDTO} import org.specs2...
gennadij/admin
server/test/org/genericConfig/admin/models/ConfigGraph/ConfigGraph.scala
Scala
apache-2.0
3,645
package ru.pavkin.todoist.api.core.model import java.util.UUID sealed trait TodoistCommandResult { val uuid: UUID def isSuccess: Boolean } case class CommandResult(uuid: UUID, status: CommandStatus) extends TodoistCommandResult { def isSuccess = status.isSuccess } case class TempIdCommandResult(uuid: UUID, stat...
vpavkin/todoist-api-scala
core/src/main/scala/ru/pavkin/todoist/api/core/model/CommandResult.scala
Scala
mit
1,163
package com.twitter.service.cachet import org.mortbay.jetty import org.mortbay.jetty.Connector import org.mortbay.jetty.bio.SocketConnector import org.mortbay.jetty.handler.ErrorHandler import org.mortbay.jetty.nio.SelectChannelConnector import org.mortbay.jetty.security.SslSelectChannelConnector import org.mortbay.je...
nkallen/cachet
src/main/scala/com/twitter/service/cachet/Server.scala
Scala
mit
12,393
package io.hydrosphere.mist.master.store import io.hydrosphere.mist.jobs.JobDetails import scala.concurrent.Future trait JobRepository { def remove(jobId: String): Future[Unit] def get(jobId: String): Future[Option[JobDetails]] def getByEndpointId(id: String, limit: Int, offset: Int): Future[Seq[JobDetails]...
KineticCookie/mist
src/main/scala/io/hydrosphere/mist/master/store/JobRepository.scala
Scala
apache-2.0
556
package akka.persistence.hbase.journal import org.hbase.async.HBaseClient import akka.persistence.PersistenceSettings import java.util.concurrent.atomic.AtomicReference object HBaseClientFactory { /** based on the docs, there should always be only one instance, reused even if we had more tables */ private val cl...
ktoso/akka-persistence-hbase
src/main/scala/akka/persistence/hbase/journal/HBaseClientFactory.scala
Scala
apache-2.0
1,381
package com.distribuit.datos.reporter import com.distribuit.datos.common.DatosSettings import org.apache.commons.mail.SimpleEmail import scala.collection.JavaConverters._ /** * Copyright (c) 2016 Distribuit Inc. * * @author paulson.vincent on 08/12/16. */ class EmailReporter extends Reporter { private val hos...
distribuitech/datos
datos/src/main/scala/com/distribuit/datos/reporter/EmailReporter.scala
Scala
apache-2.0
1,757
package es.upm.oeg.epnoi.matching.metrics.similarity import es.upm.oeg.epnoi.matching.metrics.corpus._ import es.upm.oeg.epnoi.matching.metrics.domain.entity.ConceptualResource import es.upm.oeg.epnoi.matching.metrics.domain.space.{ConceptsSpace, TopicsSpace} /** * Created by cbadenes on 20/04/15. */ object Authors...
cbadenes/epnoi-matching-metrics
src/test/scala/es/upm/oeg/epnoi/matching/metrics/similarity/AuthorsProfileExample.scala
Scala
apache-2.0
1,058
/** * Copyright (C) 2010 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 pr...
orbeon/orbeon-forms
core-cross-platform/shared/src/main/scala/org/orbeon/oxf/xml/ElementHandler.scala
Scala
lgpl-2.1
2,877
package com.socrata.datacoordinator.secondary import com.rojoma.simplearm.v2._ import java.io.OutputStream import java.sql.Connection import java.util.concurrent.{Executors, TimeUnit} import java.util.UUID import com.socrata.datacoordinator.secondary.messaging.NoOpMessageProducer import org.h2.jdbcx.JdbcDataSource im...
socrata-platform/data-coordinator
secondarylib/src/test/scala/com/socrata/datacoordinator/secondary/SecondaryWatcherTest.scala
Scala
apache-2.0
4,910
/** * ***************************************************************************** * Copyright 2010 Olaf Sebelin * * This file is part of Verdandi. * * Verdandi 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 Fou...
osebelin/verdandi
src/main/scala/verdandi/ui/WidthStoringTable.scala
Scala
gpl-3.0
1,895
package db_test import scala.collection.mutable.Stack import com.datastax.driver.core.{PreparedStatement, Session} import collection.mutable /** * Represents a piece of work to be performed by a thread. */ abstract class WorkSlice extends Runnable /** * Class that represents a piece of work to be done by a thread...
pjpmarques/CassandraBenchmark
src/main/scala/db_test/WorkSlice.scala
Scala
mit
4,975
package org.apache.spark.ml.bundle.ops.regression import ml.combust.bundle.BundleContext import ml.combust.bundle.op.{OpModel, OpNode} import ml.combust.bundle.serializer.ModelSerializer import ml.combust.bundle.dsl._ import org.apache.spark.ml.bundle.{ParamSpec, SimpleParamSpec, SimpleSparkOp, SparkBundleContext} imp...
combust/mleap
mleap-spark/src/main/scala/org/apache/spark/ml/bundle/ops/regression/RandomForestRegressionOp.scala
Scala
apache-2.0
2,862
package org.http4s package headers object Trailer extends HeaderKey.Default
reactormonk/http4s
core/src/main/scala/org/http4s/headers/Trailer.scala
Scala
apache-2.0
77
/* * 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 ...
bOOm-X/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/SortExec.scala
Scala
apache-2.0
7,667
package godot.imperative import godot.imperative.Flow._ import junit.framework.TestCase import org.junit.Assert._ import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future import scala.language.implicitConversions class MonadicOperations extends TestCase{ val FLOW_INNER_VALUE: Int = ...
kikofernandez/kikofernandez.github.io
files/godot/godot/src/test/scala/godot/imperative/MonadicOperations.scala
Scala
mit
2,309
/* * IntFieldLikeValueExpandedPlatform.scala * (LucreSwing) * * Copyright (c) 2014-2021 Hanns Holger Rutz. All rights reserved. * * This software is published under the GNU Affero General Public License v3+ * * * For further information, please contact Hanns Holger Rutz at * contact@sciss.de */ package d...
Sciss/LucreSwing
js/src/main/scala/de/sciss/lucre/swing/graph/impl/IntFieldLikeValueExpandedPlatform.scala
Scala
agpl-3.0
932
package tastytest object Exports { class BitMap class InkJet class Printer { type PrinterType def print(bits: String): String = s"printed($bits)" def status: List[String] = "printing" :: Nil } class Scanner { def scan(): String = "scanned(foo)" def status: List[String] = "scanning" :: ...
lrytz/scala
test/tasty/run/src-3/tastytest/Exports.scala
Scala
apache-2.0
593
/* * 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-tail/shared/src/test/scala/monix/tail/IterantFoldWhileLeftSuite.scala
Scala
apache-2.0
15,760
package serializers import java.util import io.scalac.newspaper.events.{ObservePage} import org.apache.kafka.common.serialization.Serializer class ObservePagePBSerializer extends Serializer[ObservePage] { override def serialize(topic: String, data: ObservePage): Array[Byte] = { ObservePage.messageCompanion.toB...
ScalaConsultants/newspaper
newspaper-api-gateway/app/serializers/ObservePagePBSerializer.scala
Scala
agpl-3.0
458
package org.wartremover package contrib.test import org.scalatest.funsuite.AnyFunSuite import org.wartremover.contrib.warts.DiscardedFuture import org.wartremover.test.WartTestTraverser import scala.concurrent.Future import scala.util.Try class DiscardedFutureTest extends AnyFunSuite with ResultAssertions { implic...
wartremover/wartremover-contrib
core/src/test/scala/wartremover/contrib/warts/DiscardedFutureTest.scala
Scala
apache-2.0
1,568
package metamorphic.generator.slick import metamorphic.dsl.model._ import metamorphic.dsl.util.StringImplicits._ import scala.reflect.macros.blackbox.Context class SlickComponentGenerator(entity: Entity) { def generate(implicit c: Context): List[c.Tree] = { import c.universe._ entityComponent :...
frroliveira/metamorphic
metamorphic-slick/src/main/scala/metamorphic/generator/slick/SlickComponentGenerator.scala
Scala
mit
4,003
/* * Copyright 2016 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...
hseeberger/gabbler
gabbler-chat/src/test/scala/de/heikoseeberger/gabbler/chat/UserRepositorySpec.scala
Scala
apache-2.0
6,652
package edu.berkeley.cs.amplab.mlmatrix import java.util.concurrent.ThreadLocalRandom import scala.collection.mutable.ArrayBuffer import breeze.linalg._ import org.apache.spark.rdd.RDD import org.apache.spark.SparkConf import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import edu.berkeley.c...
amplab/ml-matrix
src/main/scala/edu/berkeley/cs/amplab/mlmatrix/BlockQR.scala
Scala
apache-2.0
8,932
package scommons.client.ui.table case class TableColumnData(title: String)
viktor-podzigun/scommons
ui/src/main/scala/scommons/client/ui/table/TableColumnData.scala
Scala
apache-2.0
76
package im.actor import sbt._ object Dependencies { object V { val actorCommons = "0.0.6" val akka = "2.3.13" val akkaExperimental = "1.0" val cats = "0.2.0" val scalaz = "7.1.1" val slick = "3.0.3" val scalatest = "2.2.4" val shardakka = "0.1.8" } object Compile { val actor...
lzpfmh/actor-platform
actor-server/project/Dependencies.scala
Scala
mit
8,741
package io.github.tailhq.dynaml.algebra import breeze.generic.UFunc import io.github.tailhq.dynaml.algebra.PartitionedMatrixOps._ import breeze.linalg.{DenseMatrix, LU, inv, lowerTriangular, upperTriangular} /** * @author tailhq date: 20/10/2016. * * Blocked version of LU decomposition. * Works on square part...
mandar2812/DynaML
dynaml-core/src/main/scala/io/github/tailhq/dynaml/algebra/bLU.scala
Scala
apache-2.0
2,704
/** * Copyright 2013 Robert Welin * * 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 ...
nilewapp/BokBytarAppenServer
src/main/scala/com/mooo/nilewapps/bokbytarappen/server/data/Session.scala
Scala
apache-2.0
747
package com.datascience.education.tutorial.lecture4a import scala.Option import scala.Some import scala.None import cats.Applicative import cats.std.list._ /* `traverse` and `sequence` from Chapter 4, implemented on Scala Collections' `Option` */ object TraverseOption { /* `traverse2` and `sequence2` are...
DS12/scala-class
tutorial/src/main/scala/com/datascience/education/tutorial/lecture4a/TraverseOption.scala
Scala
cc0-1.0
2,835
package gh.test.gh2011.event import gh2011.events.{MemberEventParser, PublicEventParser} import net.liftweb.json._ import org.scalatest.{FlatSpec, Matchers} class MemberEventTest extends FlatSpec with Matchers { "A valid MemberEvent" must "be correctly parsed" in { val json = parse( """...
mgoeminne/github_etl
src/test/scala/gh/test/gh2011/event/MemberEventTest.scala
Scala
mit
1,689
// // Copyright 2016 Commonwealth Bank of Australia // // 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 ...
CommBank/coppersmith
tools/src/test/scala/commbank/coppersmith/tools/CoppersmithBootstrapTest.scala
Scala
apache-2.0
2,581
/* * 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...
wangyixiaohuihui/spark2-annotation
core/src/test/scala/org/apache/spark/scheduler/TaskContextSuite.scala
Scala
apache-2.0
12,576
/* * Copyright 2001-2009 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
yyuu/scalatest
src/main/scala/org/scalatest/verb/MustVerb.scala
Scala
apache-2.0
8,660
package edu.neu.coe.csye._7200 package object trial { import scala.util._ /** * alias for a X=>Try[Y] */ type Trial[-X,+Y] = (X) => Try[Y] /** * Trait ComposableTrial which is a function X=>Try[Y] which can be composed with other X=>Try[Y] functions. * The order of trials in each case is the left-m...
rchillyard/Scalaprof
FunctionalProgramming/src/main/scala/edu/neu/coe/csye/_7200/Trial.scala
Scala
gpl-2.0
4,973
/* * Copyright 2020 Lenses.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
datamountaineer/stream-reactor
kafka-connect-aws-s3/src/main/scala/io/lenses/streamreactor/connect/aws/s3/sink/conversion/ValueToSinkDataConverter.scala
Scala
apache-2.0
2,563
/* * 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 ...
darionyaphet/spark
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ResourceRequestHelper.scala
Scala
apache-2.0
10,551
package com.datastax.spark.connector.sql import java.sql.Date import java.util.TimeZone import org.apache.spark.sql.types.{DataTypes, StructField, StructType} import org.apache.spark.sql.{Row, SQLContext} import org.joda.time.DateTimeZone import org.scalatest.FlatSpec import com.datastax.driver.core.LocalDate import...
ponkin/spark-cassandra-connector
spark-cassandra-connector/src/it/scala/com/datastax/spark/connector/sql/CassandraDataFrameDateBehaviors.scala
Scala
apache-2.0
2,875
package org.openurp.edu.eams.core.web.action import java.util.Date import org.beangle.commons.collection.Order import org.beangle.data.jpa.dao.OqlBuilder import org.beangle.commons.lang.Strings import org.openurp.edu.base.Major import org.openurp.edu.eams.core.code.ministry.DisciplineCatalog import org.openurp.edu.ea...
openurp/edu-eams-webapp
web/src/main/scala/org/openurp/edu/eams/core/web/action/MajorSearchAction.scala
Scala
gpl-3.0
2,366
/* * 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 ...
pferrel/PredictionIO
examples/scala-parallel-ecommercerecommendation/train-with-rate-event/src/main/scala/Preparator.scala
Scala
apache-2.0
1,469
/* * Copyright 2015 - 2016 Red Bull Media House GmbH <http://www.redbullmediahouse.com> - all rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
ianclegg/eventuate
eventuate-log-cassandra/src/it/scala/com/rbmhtechnology/eventuate/log/EventLogSpecCassandra.scala
Scala
apache-2.0
8,617
/* * 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/quantized/QuantSerializer.scala
Scala
apache-2.0
4,012
package net.dinkla.lbnn.kd import net.dinkla.lbnn.geom.{Point2, Range} import net.dinkla.lbnn.utils.Order import scala.collection.mutable.ListBuffer /** * A k-dimensional tree. * * See for example ... * * Created by dinkla on 19/06/15. */ sealed trait KdTree[+T] { /** * * @return the size of the KdTre...
jdinkla/location-based-nearest-neighbours
src/main/scala/net/dinkla/lbnn/kd/KdTree.scala
Scala
apache-2.0
3,897
package com.enkidu.lignum.parsers.ast.expression.types.annotations case class MarkerAnnotation(name: Seq[String]) extends Annotation
marek1840/java-parser
src/main/scala/com/enkidu/lignum/parsers/ast/expression/types/annotations/MarkerAnnotation.scala
Scala
mit
134
/** * Created by chanjinpark on 2016. 9. 8.. */ import org.apache.spark.mllib.linalg.{SparseVector, Vector} import org.apache.spark.rdd.RDD val dir = "/Users/chanjinpark/GitHub/NRFAnalysis/" val docs = sc.textFile(dir + "data/docs") case class MetaData(title: String, mainArea: Array[String], nationArea: Array[St...
chanjin/NRFAnalysis
scalascript/ldacrb.scala
Scala
apache-2.0
1,939
// Copyright 2015-2016 Ricardo Gladwell. // Licensed under the GNU Affero General Public License. // See the LICENSE file for more information. package com.is_hosted_by.api trait EnvironmentVariables { def environmentVariables: Map[String, String] }
is-hosted-by/is-hosted-by-api
src/main/scala/com/is_hosted_by/api/EnvironmentVariables.scala
Scala
agpl-3.0
257
/* * Copyright 2015 cookie.ai * * 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...
cookieai/cookie-datasets
src/main/scala/ai/cookie/spark/sql/sources/mnist/MnistInputFormat.scala
Scala
apache-2.0
3,402
import _root_.io.gatling.core.scenario.Simulation import ch.qos.logback.classic.{Level, LoggerContext} import io.gatling.core.Predef._ import io.gatling.http.Predef._ import org.slf4j.LoggerFactory import scala.concurrent.duration._ /** * Performance test for the Topic entity. */ class TopicGatlingTest extends Simu...
Raysmond/expper
src/test/gatling/simulations/TopicGatlingTest.scala
Scala
gpl-3.0
3,375
package mesosphere.marathon.api.v2.json import mesosphere.marathon.Protos.MarathonTask import mesosphere.marathon.health.Health import mesosphere.marathon.state.PathId case class EnrichedTask(appId: PathId, task: MarathonTask, healthCheckResults: Seq[Option[Health]])
tnachen/marathon
src/main/scala/mesosphere/marathon/api/v2/json/EnrichedTask.scala
Scala
apache-2.0
270
package yiris.objects.pretreatment.primaryclarifiers import yiris.core.{fluent, ratios, removals} /** * An object to represents primary clarifiers units. */ object Unit extends fluent.Units with ratios.Units with removals.Units
kasonchan/yiris
objects/src/main/scala/yiris/objects/pretreatment/primaryclarifiers/Unit.scala
Scala
apache-2.0
231
import scala.reflect.runtime.universe._ import scala.tools.reflect.ToolBox import scala.tools.reflect.Eval object Test extends dotty.runtime.LegacyApp { { val code = reify { var x = 2 def y = x // forcibly captures x reify{x}.eval } println(code.eval) } }
folone/dotty
tests/disabled/macro/run/reify_newimpl_05.scala
Scala
bsd-3-clause
291
package im.actor.server.api.rpc.service.llectro.interceptors import scala.concurrent.Future import scala.concurrent.duration._ import scala.concurrent.forkjoin.ThreadLocalRandom import scala.util.{ Failure, Success } import akka.actor._ import akka.contrib.pattern.DistributedPubSubMediator import akka.pattern.pipe im...
voidException/actor-platform
actor-server/actor-rpc-api/src/main/scala/im/actor/server/api/rpc/service/llectro/interceptors/PrivatePeerInterceptor.scala
Scala
mit
5,420
package com.shocktrade.daycycle.daemons import com.shocktrade.common.util.ExchangeHelper import com.shocktrade.daycycle.daemons.SecuritiesUpdateDaemon._ import com.shocktrade.server.common.{LoggerFactory, TradingClock} import com.shocktrade.server.concurrent.bulk.BulkUpdateOutcome._ import com.shocktrade.server.concur...
ldaniels528/shocktrade.js
app/server/daycycle/src/main/scala/com/shocktrade/daycycle/daemons/SecuritiesUpdateDaemon.scala
Scala
apache-2.0
8,060
package dundertext.server import com.sksamuel.diffpatch.DiffMatchPatch import com.sksamuel.diffpatch.DiffMatchPatch.Patch import dundertext.data._ import dundertext.editor._ import scala.collection.mutable class SyncedDocument { val entries: mutable.Buffer[Entry] = mutable.Buffer(Document.empty.entries:_*) def ...
dundertext/dundertext
server/src/main/scala/dundertext/server/MasterDocument.scala
Scala
gpl-3.0
2,743
package org.jetbrains.plugins.scala.lang.imports.unused import org.jetbrains.plugins.scala.base.AssertMatches /** * Created by Svyatoslav Ilinskiy on 24.07.16. */ class UnusedImportTest extends UnusedImportTestBase with AssertMatches { def testTwoUnusedSelectorsOnSameLine(): Unit = { val text = """ ...
loskutov/intellij-scala
test/org/jetbrains/plugins/scala/lang/imports/unused/UnusedImportTest.scala
Scala
apache-2.0
1,823
/* * 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 ...
manuzhang/incubator-gearpump
integrationtest/core/src/main/scala/org/apache/gearpump/integrationtest/kafka/NumericalDataProducer.scala
Scala
apache-2.0
2,566