code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
/* Copyright (C) 2008-2014 University of Massachusetts Amherst. This file is part of "FACTORIE" (Factor graphs, Imperative, Extensible) http://factorie.cs.umass.edu, http://github.com/factorie Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
hlin117/factorie
src/main/scala/cc/factorie/variable/DiscreteVariable.scala
Scala
apache-2.0
7,191
/* * 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 ...
ConeyLiu/spark
core/src/test/scala/org/apache/spark/deploy/client/AppClientSuite.scala
Scala
apache-2.0
9,470
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
witgo/spark
sql/core/src/main/scala/org/apache/spark/sql/streaming/DataStreamReader.scala
Scala
apache-2.0
28,297
package mr.merc.politics import mr.merc.army.Warrior import mr.merc.economics.Culture import mr.merc.economics._ import mr.merc.economics.message.DomesticMailBox import mr.merc.players.Player import mr.merc.politics.IssuePosition.MinMax import mr.merc.technology.TechnologyLevel import scalafx.scene.paint.Color class ...
RenualdMarch/merc
src/main/scala/mr/merc/politics/State.scala
Scala
gpl-3.0
1,901
/* * MnoClassifier learns MSISDN-Operator combinations to afterwards predict Operators. * Copyright (C) 2013 MACH Connectivity GmbH * * 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...
mkroli/mnoclassifier
project/Build.scala
Scala
gpl-2.0
4,962
package com.sksamuel.elastic4s.mappings abstract class FieldType(val elastic: String) object FieldType { case object BinaryType extends FieldType("binary") case object BooleanType extends FieldType("boolean") case object ByteType extends FieldType("byte") case object CompletionType extends FieldType("completi...
FabienPennequin/elastic4s
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/mappings/FieldType.scala
Scala
apache-2.0
1,271
//package de.fosd.typechef // //package object featureexpr{ // // type FeatureExprValue = FeatureExprTree[Long] // //}
mbeddr/TypeChef
FeatureExprLib/src/main/scala/de/fosd/typechef/featureexpr/Util.scala
Scala
lgpl-3.0
129
package com.arcusys.valamis.web.servlet.base import javax.servlet.http.HttpServletRequest import com.arcusys.learn.liferay.LiferayClasses._ import com.arcusys.learn.liferay.services._ import com.arcusys.learn.liferay.util.{PortalUtilHelper, PortletName} import com.arcusys.valamis.web.portlet.base.{Permission, Permiss...
igor-borisov/JSCORM
valamis-portlets/src/main/scala/com/arcusys/valamis/web/servlet/base/PermissionUtil.scala
Scala
gpl-3.0
7,884
package io.cumulus.persistence.query import java.sql.Connection /** * An SQL query monad. Behave like a regular reader monad, and will accumulate transformation based on an SQLConnection. * <br/><br/> * The Query itself does not handle the running of the query, which is handled by a class implementing the * ...
Cumulus-Cloud/cumulus
server/cumulus-core/src/main/scala/io/cumulus/persistence/query/Query.scala
Scala
mit
1,236
/* * Created on 2010/11/25 * Copyright (c) 2010-2014, Wei-ju Wu. * 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, ...
weiju/zmpp2
zmpp-tads3/src/test/scala/org/zmpp/tads3/TadsListTest.scala
Scala
bsd-3-clause
5,786
package com.pwootage.metroidprime.formats.scly import java.io.{ByteArrayInputStream, ByteArrayOutputStream, DataInputStream, DataOutputStream} import com.pwootage.metroidprime.formats.BinarySerializable import com.pwootage.metroidprime.formats.io.PrimeDataFile class ScriptObjectInstance extends BinarySerializable { ...
Pwootage/prime-patcher
src/main/scala/com/pwootage/metroidprime/formats/scly/ScriptObjectInstance.scala
Scala
gpl-3.0
1,859
package net.spals.appbuilder.app.finatra.modules import com.google.inject.matcher.Matchers.subclassesOf import com.google.inject.spi.{InjectionListener, TypeEncounter, TypeListener} import com.google.inject.{Key, TypeLiteral} import com.twitter.finagle.{Filter, http => finaglehttp} import com.twitter.finatra.http.Cont...
spals/appbuilder
app-finatra/src/main/scala/net/spals/appbuilder/app/finatra/modules/FinatraWebServerModule.scala
Scala
bsd-3-clause
4,394
package edu.rice.habanero.benchmarks.concdict import java.util import edu.rice.habanero.actors.{JetlangActor, JetlangActorState, JetlangPool} import edu.rice.habanero.benchmarks.concdict.DictionaryConfig.{DoWorkMessage, EndWorkMessage, ReadMessage, WriteMessage} import edu.rice.habanero.benchmarks.{Benchmark, Benchma...
shamsmahmood/savina
src/main/scala/edu/rice/habanero/benchmarks/concdict/DictionaryJetlangActorBenchmark.scala
Scala
gpl-2.0
3,989
/* * 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/ct600/v2/B140.scala
Scala
apache-2.0
858
/** ***************************************************************************** * This file is part of tiscaf. * * tiscaf 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 3 of t...
gnieh/tiscaf
core/src/main/scala/tiscaf/sync/SyncQuExecutionContext.scala
Scala
lgpl-3.0
2,711
/* * 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.nscplugin.test.util impor...
scala-js/scala-js
compiler/src/test/scala/org/scalajs/nscplugin/test/util/DirectTest.scala
Scala
apache-2.0
3,588
package euler package til100 object Euler93 extends EulerProblem { val Operations = List[(Double, Double) => Double](_ + _, _ - _, _ * _, (x, y) => if (y != 0) x / y else Double.MinValue) override def result = { val longestConsecutives = for { a <- (0 to 9).view b <- a + 1 to 9 c <- b + 1 t...
TrustNoOne/Euler
scala/src/main/scala/euler/til100/Euler93.scala
Scala
mit
1,108
/* * Copyright (C) 13/11/12 Romain Reuillon * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This pr...
openmole/openmole
openmole/plugins/org.openmole.plugin.environment.batch/src/main/scala/org/openmole/plugin/environment/batch/storage/QualityControl.scala
Scala
agpl-3.0
1,541
package com.typesafe.slick.testkit.tests import org.junit.Assert._ import scala.slick.jdbc.StaticQuery._ import scala.slick.ast._ import com.typesafe.slick.testkit.util.{TestkitTest, TestDB} class NewQuerySemanticsTest(val tdb: TestDB) extends TestkitTest { import tdb.profile.simple._ val doRun = true def tes...
boldradius/slick
slick-testkit/src/main/scala/com/typesafe/slick/testkit/tests/NewQuerySemanticsTest.scala
Scala
bsd-2-clause
13,417
/* * 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/ct600/v3/B8.scala
Scala
apache-2.0
788
package katas.scala.hackerrank import org.junit.Test import org.scalatest.Matchers import scala.collection.mutable.ArrayBuffer import scala.io.Source class DynamicArray extends Matchers { @Test def `the silly task`(): Unit = { val input = """ |2 5 |1 0 5 |1 1 7 |1 0 3 |2 1 0 |2 1 1 """.tr...
dkandalov/katas
scala/src/katas/scala/hackerrank/DynamicArray.scala
Scala
unlicense
1,221
package com.gilazaria.subsearch.output import java.util.concurrent.Executors import com.gilazaria.subsearch.model.Record import com.gilazaria.subsearch.utils.File import com.gilazaria.subsearch.utils.MathUtils.percentage import scala.concurrent.{ExecutionContext, Future} import scala.collection.SortedSet class Logg...
gavia/subsearch
src/main/scala/com/gilazaria/subsearch/output/LoggerImpl.scala
Scala
gpl-2.0
6,135
/* Copyright 2014 UniCredit S.p.A. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing...
unicredit/ReactiveAerospike
src/test/scala/eu/unicredit/reactive_aerospike/TwitterFactory.scala
Scala
apache-2.0
2,438
/* * 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/logical/LogicalCorrelateToJoinFromTemporalTableRule.scala
Scala
apache-2.0
2,436
package im.actor.concurrent import java.security.MessageDigest object ThreadLocalSHA256 { private val local: ThreadLocal[MessageDigest] = new ThreadLocal[MessageDigest]() { override protected def initialValue(): MessageDigest = MessageDigest.getInstance("SHA-256") } def current(): MessageDigest = loc...
EaglesoftZJ/actor-platform
actor-server/actor-runtime/src/main/scala/im/actor/concurrent/ThreadLocalSHA256.scala
Scala
agpl-3.0
330
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
camunda/feel-scala
src/test/scala/org/camunda/feel/impl/script/ScriptEngineFactoryTest.scala
Scala
apache-2.0
1,792
package au.gov.dva.sopapi.sopref.parsing.traits import au.gov.dva.sopapi.exceptions.SopParserRuntimeException import au.gov.dva.sopapi.interfaces.model.ICDCode import au.gov.dva.sopapi.sopref.data.sops.BasicICDCode import au.gov.dva.sopapi.sopref.parsing.SoPExtractorUtilities.{getSections, parseSectionBlock} import s...
govlawtech/dva-sop-api
app/src/main/scala/au/gov/dva/sopapi/sopref/parsing/traits/OldSoPStyleExtractor.scala
Scala
apache-2.0
4,139
/* * 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/test/scala/com/intel/analytics/bigdl/utils/SpatialShareConvolutionSpec.scala
Scala
apache-2.0
7,140
package org.vitrivr.adampro.utils import scala.util.Try trait IOUtils { def autoClose[A <: AutoCloseable, B](resource: A)(fun: A ⇒ B): Try[B] = { val tryResult = Try {fun(resource)} if (resource != null) {resource.close()} tryResult } }
dbisUnibas/ADAMpro
src/main/scala/org/vitrivr/adampro/utils/IOUtils.scala
Scala
mit
258
package com.cloudray.scalapress.account.controller.admin import org.springframework.stereotype.Controller import org.springframework.web.bind.annotation.{RequestParam, PathVariable, ModelAttribute, RequestMapping} import org.springframework.beans.factory.annotation.Autowired import scala.collection.JavaConverters._ im...
vidyacraghav/scalapress
src/main/scala/com/cloudray/scalapress/account/controller/admin/AccountTypeListController.scala
Scala
apache-2.0
1,308
/* * Copyright (c) 2011-2017 Interfaculty Department of Geoinformatics, University of * Salzburg (Z_GIS) & Institute of Geological and Nuclear Sciences Limited (GNS Science) * in the SMART Aquifer Characterisation (SAC) programme funded by the New Zealand * Ministry of Business, Innovation and Employment (MBIE) * ...
ZGIS/smart-owc-geojson
src/main/scala/info/smart/models/owc100/OwcProfile.scala
Scala
apache-2.0
1,518
package com.imaginea.activegrid.core.models /** * Created by nagulmeeras on 25/10/16. */ import com.amazonaws.auth.AWSCredentials import com.amazonaws.regions.{Region, RegionUtils} import com.amazonaws.services.autoscaling.AmazonAutoScalingClient import com.amazonaws.services.autoscaling.model.AutoScalingGroup im...
nagulmeeras/activeGrid
src/main/scala/com/imaginea/activegrid/core/models/AWSComputeAPI.scala
Scala
apache-2.0
16,673
package com.atomist.source.git import com.atomist.source.CloudRepoId import com.atomist.source.git.GitArtifactSourceLocator.MasterBranch case class DefaultGitHubArtifactSourceLocator(repo: String, owner: String, path: String =...
atomist/artifact-source
src/main/scala/com/atomist/source/git/DefaultGitHubArtifactSourceLocator.scala
Scala
gpl-3.0
1,008
/* * 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 ...
wgpshashank/spark
mllib/src/main/scala/spark/mllib/regression/RidgeRegression.scala
Scala
apache-2.0
7,455
/* * 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 ...
ueshin/apache-flink
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/api/batch/sql/JoinTest.scala
Scala
apache-2.0
8,772
/* * 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/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/ApproximatePercentile.scala
Scala
apache-2.0
12,882
/*********************************************************************** * Copyright (c) 2013-2015 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 which * accompanies this distribution and is ...
drackaer/geomesa
geomesa-utils/src/main/scala/org/locationtech/geomesa/utils/index/QuadTreeFeatureStore.scala
Scala
apache-2.0
1,759
/* * The Bluejelly project, Copyright 2012. * * This source code is distributed under the terms of * the BSD license, see the LICENSE file for details. */ package bluejelly.l4 import java.io.File import java.io.FileOutputStream import java.io.FileReader import java.io.IOException import java.io.PrintWriter impor...
ppedemon/Bluejelly
bluejelly-l4/src/main/scala/bluejelly/l4/L4C.scala
Scala
bsd-3-clause
8,233
/* * 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 ...
mike0sv/spark
core/src/main/scala/org/apache/spark/partial/CountEvaluator.scala
Scala
apache-2.0
2,487
/* * 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
mllib-local/src/test/scala/org/apache/spark/ml/stat/distribution/MultivariateGaussianSuite.scala
Scala
apache-2.0
3,266
package org.jetbrains.plugins.hocon.lexer import org.jetbrains.plugins.hocon.{HoconFileSetTestCase, TestSuiteCompanion} import org.junit.runner.RunWith import org.junit.runners.AllTests object HoconLexerTest extends TestSuiteCompanion[HoconLexerTest] @RunWith(classOf[AllTests]) class HoconLexerTest extends HoconFile...
ilinum/intellij-scala
test/org/jetbrains/plugins/hocon/lexer/HoconLexerTest.scala
Scala
apache-2.0
842
package com.nutomic.ensichat.core.messages.body import java.nio.ByteBuffer import com.nutomic.ensichat.core.messages.Message import com.nutomic.ensichat.core.util.BufferUtils object Text { val Type = 6 /** * Constructs [[Text]] instance from byte array. */ def read(array: Array[Byte]): Text = { val...
Nutomic/ensichat
core/src/main/scala/com/nutomic/ensichat/core/messages/body/Text.scala
Scala
mpl-2.0
1,085
package pl.bigpicture.wikipv.job import java.io.File import java.util.Calendar import _root_.pl.bigpicture.wikipv.download.StatsFile import org.apache.log4j.Logger import org.apache.spark.{SparkConf, SparkContext} import pl.bigpicture.wikipv.write.JsonWriter import pl.bigpicture.wikipv.{HourlyStats, PageCountRow, Set...
jpieprzyk/wikipv
src/main/scala/pl/bigpicture/wikipv/job/OneHourJob.scala
Scala
apache-2.0
1,601
/* * 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 ...
mwkang/zeppelin
flink/src/main/scala/org/apache/zeppelin/flink/FlinkZeppelinContext.scala
Scala
apache-2.0
8,183
package org.atnos.eff.addon.fs2 import cats.implicits._ import org.atnos.eff.all._ import org.atnos.eff.syntax.all._ import org.specs2._ import org.specs2.concurrent.ExecutionEnv import scala.collection.mutable.ListBuffer import org.atnos.eff._ import org.atnos.eff.addon.fs2.task._ import org.atnos.eff.syntax.addon.f...
etorreborre/eff
fs2/jvm/src/test/scala/org/atnos/eff/addon/fs2/TaskEffectSpec.scala
Scala
mit
5,762
package io.keen.client.scala import scala.concurrent.Future import com.typesafe.config.{ Config, ConfigFactory } import grizzled.slf4j.Logging // XXX Remaining: Funnel, Saved Queries List, Saved Queries Row, Saved Queries Row Result // Event deletion /** * A keen.io API client. A plain `Client` instance doesn't do...
keenlabs/KeenClient-Scala
src/main/scala/io/keen/client/scala/Client.scala
Scala
mit
24,559
/*********************************************************************** * 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-convert/geomesa-convert-common/src/main/scala/org/locationtech/geomesa/convert/ConverterConfigLoader.scala
Scala
apache-2.0
4,071
/** * Created by adixith on 5/12/15. */ object Boot{ def main(args: Array[String]) { println("Welcome to the Smart Bitcoin Trader") } }
anoopdixith/SmartBCT
src/main/scala/Boot.scala
Scala
mit
147
package nexus.typelevel import nexus._ import shapeless._ import shapeless.ops.hlist._ /** * Typelevel function that transforms HLists to tuples / single types. * @author Tongfei Chen */ trait FromHList[A <: HList] { type Out def apply(x: A): Out def invert(x: Out): A def inverse: ToHList.Aux[Out, A] }...
ctongfei/nexus
tensor/src/main/scala/nexus/typelevel/FromHList.scala
Scala
mit
1,171
package io.scalajs.nodejs import scala.scalajs.js /** * os package object * @author lawrence.daniels@gmail.com */ package object os { /** * CPU Info Enrichment * @param cpuInfo the given [[CPUInfo CPU Info]] */ final implicit class CPUInfoEnrichment(val cpuInfo: CPUInfo) extends AnyVal { @...
scalajs-io/nodejs
app/common/src/main/scala/io/scalajs/nodejs/os/package.scala
Scala
apache-2.0
422
/* * Copyright 2017 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
pncampbell/ct-calculations
src/main/scala/uk/gov/hmrc/ct/ct600a/v2/A11.scala
Scala
apache-2.0
1,290
package vexriscv.plugin import spinal.core._ import spinal.lib._ object RvcDecompressor{ def main(args: Array[String]): Unit = { SpinalVerilog(new Component{ out(Delay((apply(Delay(in Bits(16 bits),2), false, false)),2)) }.setDefinitionName("Decompressor")) } def apply(i : Bits, rvf : Boolean, r...
SpinalHDL/VexRiscv
src/main/scala/vexriscv/plugin/Misc.scala
Scala
mit
8,272
package org.jetbrains.plugins.scala package lang import scala.collection.immutable import com.intellij.psi.codeStyle.arrangement.std.StdArrangementTokenType import com.intellij.psi.codeStyle.arrangement.std.StdArrangementTokens import com.intellij.psi.codeStyle.arrangement.std.ArrangementSettingsToken import com.inte...
consulo/consulo-scala
src/org/jetbrains/plugins/scala/lang/rearranger/package.scala
Scala
apache-2.0
6,760
package com.github.gdefacci.di.runtime trait ModulesContainer
gdefacci/di
runtime/src/main/scala/com/github/gdefacci/di/runtime/ModulesContainer.scala
Scala
mit
62
/* ************************************************************************** * * * Copyright (C) 2011-2012 Peter Kossek, Nils Foken, Christian Krause * * * * Pete...
wookietreiber/scalomator
client-swing/src/main/scala/RunSimulatior.scala
Scala
gpl-3.0
2,906
/* * Copyright (c) 2014. * * This file is part of picture-classifier. * * picture-classifier 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 ...
meisam/photo-classifier
core/src/test/scala/edu/osu/cse/ai/photoclassifier/TestReadRawData.scala
Scala
gpl-3.0
1,915
package uk.gov.gds.ier.test import org.joda.time.DateTime import uk.gov.gds.ier.model._ import uk.gov.gds.ier.transaction.overseas.InprogressOverseas trait OverseasApplications { lazy val completeOverseasApplication = InprogressOverseas( name = Some(Name("John", None, "Smith")), previousName = Some(Previou...
alphagov/ier-frontend
test/uk/gov/gds/ier/test/OverseasApplications.scala
Scala
mit
3,027
/* * 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 ...
mashin-io/rich-spark
streaming/src/main/scala/org/apache/spark/streaming/dstream/FilteredDStream.scala
Scala
apache-2.0
1,492
package poly.collection /** * Contains containers that serve as the implementation of the poly-collection library. * @author Tongfei Chen */ package object impl { }
ctongfei/poly-collection
core/src/main/scala/poly/collection/impl/package.scala
Scala
mit
171
/** Copyright 2015 TappingStone, 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 ...
alex9311/PredictionIO
data/src/test/scala/org/apache/predictionio/data/webhooks/exampleform/ExampleFormConnectorSpec.scala
Scala
apache-2.0
4,843
/* * 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/help-to-save-frontend
app/uk/gov/hmrc/helptosavefrontend/config/AllowListFilter.scala
Scala
apache-2.0
2,211
package com.nvrun import java.nio.file.{Files, Path, StandardOpenOption} import scala.language.postfixOps import scala.util.matching.Regex import org.apache.poi.hssf.usermodel.HSSFWorkbook import org.apache.poi.poifs.filesystem.POIFSFileSystem import org.apache.poi.ss.usermodel.CellType import resource._ import sca...
aeffrig/scalaries
src/main/scala/com/nvrun/MembershipList.scala
Scala
lgpl-3.0
4,411
/* * Copyright 2016 Nicolas Rinaudo * * 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...
nrinaudo/kantan.codecs
core/shared/src/main/scala-2.12/kantan/codecs/VersionSpecificResultCompanion.scala
Scala
apache-2.0
1,242
package com.metl.model import com.metl.external.{GroupStoreData, GroupStoreProvider, GroupsProvider, LiftAuthStateData, OrgUnit} import org.scalatest._ import org.scalatest.FunSuite import org.scalatest.BeforeAndAfter import org.scalatest.matchers.{HavePropertyMatchResult, HavePropertyMatcher, ShouldMatchers} import o...
StackableRegiments/analyticalmetlx
src/test/scala/com/metl/model/GroupsProviderConfiguratorSuite.scala
Scala
apache-2.0
9,364
/** * 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...
WillCh/cs286A
dataMover/kafka/core/src/main/scala/kafka/log/LogSegment.scala
Scala
bsd-2-clause
11,686
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
slothspot/scala
src/library/scala/Product4.scala
Scala
bsd-3-clause
1,969
package com.wavesplatform.it import java.io.{FileOutputStream, IOException} import java.net.{InetAddress, InetSocketAddress, URL} import java.nio.file.{Files, Path, Paths} import java.time.LocalDateTime import java.time.format.DateTimeFormatter import java.util.{Properties, List => JList, Map => JMap} import java.util...
wavesplatform/Waves
node-it/src/test/scala/com/wavesplatform/it/Docker.scala
Scala
mit
23,257
/* * 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 ...
practice-vishnoi/dev-spark-1
core/src/main/scala/org/apache/spark/mapred/SparkHadoopMapRedUtil.scala
Scala
apache-2.0
5,812
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j 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 Foundatio...
HuangLS/neo4j
community/cypher/acceptance/src/test/scala/org/neo4j/internal/cypher/acceptance/TernaryLogicAcceptanceTest.scala
Scala
apache-2.0
1,895
package org.jetbrains.sbt import java.io.File import com.intellij.openapi.module.Module import com.intellij.openapi.roots.ModuleRootModificationUtil import com.intellij.openapi.vfs.VfsUtil import com.intellij.openapi.vfs.impl.VirtualFilePointerManagerImpl import com.intellij.openapi.vfs.pointers.VirtualFilePointerMan...
whorbowicz/intellij-scala
test/org/jetbrains/sbt/MockSbt.scala
Scala
apache-2.0
1,469
package es.tid.cosmos.api.usage trait MachineUsageComponent { def machineUsage: MachineUsage }
telefonicaid/fiware-cosmos-platform
cosmos-api/app/es/tid/cosmos/api/usage/MachineUsageComponent.scala
Scala
apache-2.0
98
package mesosphere.chaos import mesosphere.chaos.http.{ HttpConf, HttpModule } import mesosphere.chaos.metrics.MetricsModule /** * Wraps up the metrics and http modules. * @param conf configuration used to set up the http server. */ class ChaosModule(conf: HttpConf) { lazy val metricsModule = new MetricsModul...
mesosphere/chaos
src/main/scala/mesosphere/chaos/ChaosModule.scala
Scala
apache-2.0
393
package lower_tir import byteR.JVMLabel import scala.collection.mutable.HashMap object LabelGenerator { var id: Int = 0 var loopLabelMap = new HashMap[Int, (JVMLabel, JVMLabel)]() def newLabel(): JVMLabel = { id += 1 new JVMLabel("L" + id.toString) } def labelFor(loopID: Int) = { if (!loopLabe...
j-c-w/mlc
src/main/scala/lower_tir/LabelGenerator.scala
Scala
gpl-3.0
433
/* * 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 ...
cbickel/openwhisk
tests/performance/gatling_tests/src/gatling/scala/org/apache/openwhisk/extension/whisk/OpenWhiskProtocolBuilder.scala
Scala
apache-2.0
2,957
package cpup.mc.oldenMagic.api.oldenLanguage.textParsing trait TParsingContext { def transform(name: String): TTransform def subContext(name: String): TParsingContext }
CoderPuppy/oldenmagic-mc
src/main/scala/cpup/mc/oldenMagic/api/oldenLanguage/textParsing/TParsingContext.scala
Scala
mit
171
package turkey package tasks import turkey.util._ import java.util.Date import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration._ import scala.language.postfixOps import akka.actor.ActorSystem import akka.stream.stage._ import akka.stream.Materializ...
julianmichael/turkey
turkey/jvm/src/main/scala/turkey/tasks/Webservice.scala
Scala
mit
5,377
package hello import org.springframework.boot._ import org.springframework.boot.autoconfigure._ import org.springframework.stereotype._ import org.springframework.web.bind.annotation._ object HelloWebApplication { def main(args: Array[String]) { SpringApplication.run(classOf[HelloWebApplication]) } } @Controller @Enabl...
shreedhar22/SpringScala
src/main/scala/hello/HelloWebApplication.scala
Scala
mit
448
package org.backuity.puppet import java.io.FileNotFoundException import java.nio.file.{Files, Path} import org.junit.Test class GitTest extends GitTestSupport { @Test def latestVersion_vPrefix(): Unit = { val gitOutput = """3616c5b452d63bf45ee3485f6c4632175960a5e6 refs/tags/v1.0 |15d87...
backuity/puppet-module-installer
src/test/scala/org/backuity/puppet/GitTest.scala
Scala
apache-2.0
7,648
package com.twitter.finagle.http import org.scalatest.funsuite.AnyFunSuite class MethodTest extends AnyFunSuite { val knownMethods = Set( Method.Get, Method.Post, Method.Put, Method.Head, Method.Patch, Method.Delete, Method.Trace, Method.Connect, Method.Options ) test("basi...
twitter/finagle
finagle-base-http/src/test/scala/com/twitter/finagle/http/MethodTest.scala
Scala
apache-2.0
1,481
import sbt._ class Plugins(info: ProjectInfo) extends PluginDefinition(info) { val databinder_net = "databinder.net repository" at "http://databinder.net/repo" val archetect = "net.databinder" % "archetect-plugin" % "0.1.3" val posterous = "net.databinder" % "posterous-sbt" % "0.1.7" val sxr_publish = "net.d...
cmc333333/Databinder-Dispatch
project/plugins/Plugins.scala
Scala
lgpl-2.1
678
package com.olvind.crud package frontend import chandu0101.scalajs.react.components.materialui.MuiCheckBox import japgolly.scalajs.react._ import japgolly.scalajs.react.extra.router.RouterCtl import japgolly.scalajs.react.vdom.prefix_<^._ import org.scalajs.dom.ext.KeyCode import scalacss.ScalaCssReact._ object Tabl...
skytteren/slick-crud
crud/js/src/main/scala/com/olvind/crud/frontend/TableCell.scala
Scala
apache-2.0
6,205
package org.photon.protocol.dofus.basics import org.photon.protocol.dofus.{DofusMessage, DofusDeserializer, DofusStaticMessage} import com.twitter.util.{Try, TimeFormat, Time} case object CurrentDateRequestMessage extends DofusStaticMessage { val opcode = "BD" val data = "" } case class CurrentDateMessage(current:...
Emudofus/Photon
protocol/main/src/org/photon/protocol/dofus/basics/Messages.scala
Scala
mit
689
// scalac: -Xasync import scala.concurrent._ import ExecutionContext.Implicits.global import scala.tools.testkit.async.Async._ import scala.concurrent.duration.Duration object Test extends App { test() def foo(foo: Any, bar: Any) = () def getValue = async {4.2} def func(f: Any) = async { foo(f match { case...
scala/scala
test/async/jvm/concurrent_NegativeArraySizeException.scala
Scala
apache-2.0
455
/* * Copyright (C) 2005, The Beangle Software. * * 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 3 of the License, or * (at your option) any later version. * * This...
beangle/data
jdbc/src/test/scala/org/beangle/data/jdbc/ds/DataSourceFactoryTest.scala
Scala
lgpl-3.0
1,262
/*********************************************************************** * 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/VisibilityLevel.scala
Scala
apache-2.0
661
package com.fulldeep.modeles; import com.fulldeep.indexation._ import scala.util.Random abstract class RandomWalk(){ def walk(succ:Map[Int,Seq[Int]],pred:Map[Int,Seq[Int]]):Map[Int,Float] } class pageRank(val d:Float, val it:Int=100) extends RandomWalk { def walk(succ:Map[Int,Seq[Int]],pred:Map[I...
ToqueWillot/M2DAC
RI/RI_searchEngine/RI_Project/modeles/src/main/scala/com/fulldeep/modeles/RandomWalk.scala
Scala
gpl-2.0
2,463
package mesosphere.marathon package core.readiness import mesosphere.marathon.raml.HttpScheme import scala.concurrent.duration._ object ReadinessCheckTestHelper { val defaultHttp = ReadinessCheck() val alternativeHttps = ReadinessCheck( name = "dcosMigrationApi", protocol = ReadinessCheck.Protocol.HTTPS...
meln1k/marathon
src/test/scala/mesosphere/marathon/core/readiness/ReadinessCheckTestHelper.scala
Scala
apache-2.0
821
package models.user import scalaz._ import Scalaz._ import scalaz.effect.IO import scalaz.EitherT._ import scalaz.Validation import scalaz.Validation.FlatMap._ import scalaz.NonEmptyList._ import scalaz.syntax.SemigroupOps import scala.collection.mutable.ListBuffer import cache._ import db._ import models.Constants._...
megamsys/verticegateway
app/models/user/LaunchPtr.scala
Scala
mit
4,763
package lila import lila.socket.WithSocket package object setup extends PackageObject with WithPlay with WithSocket { object tube { private[setup] implicit lazy val userConfigTube = UserConfig.tube inColl Env.current.userConfigColl private[setup] implicit lazy val anonConfigTube = UserConfig....
Happy0/lila
modules/setup/src/main/package.scala
Scala
mit
365
/*********************************************************************** * Copyright (c) 2013-2017 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...
ronq/geomesa
geomesa-tools/src/main/scala/org/locationtech/geomesa/tools/stats/StatsBoundsCommand.scala
Scala
apache-2.0
2,858
import sbt._ object LiftModule { val liftVersion = SettingKey[String]("liftVersion", "Full version number of the Lift Web Framework") val liftEdition = SettingKey[String]("liftEdition", "Lift Edition (short version number to append to artifact name)") }
limansky/lift-salatauth
project/LiftModule.scala
Scala
apache-2.0
259
package uk.gov.gds.ier.transaction.overseas.previousName import uk.gov.gds.ier.test.FormTestSuite class OverseasPreviousNameFormTests extends FormTestSuite with PreviousNameForms { it should "accept an empty json" in { val js = JsNull previousNameForm.bind(js).fold( hasErrors => { fail(seri...
alphagov/ier-frontend
test/uk/gov/gds/ier/transaction/overseas/previousName/OverseasPreviousNameFormTests.scala
Scala
mit
4,466
package com.github.j5ik2o.chatwork.domain.room import com.github.j5ik2o.chatwork.domain.{Organization, AccountId} import com.github.j5ik2o.chatwork.infrastructure.api.room.{MemberApiService, RoomApiService} import com.github.j5ik2o.chatwork.infrastructure.api.room.{Room => InfraRoom} import com.github.j5ik2o.chatwork....
j5ik2o/chatwork-client
src/main/scala/com/github/j5ik2o/chatwork/domain/room/AsyncRoomRepositoryImpl.scala
Scala
apache-2.0
3,894
package io.youi.stream.delta import io.youi.stream.{HTMLStream, Selector, Tag} trait Delta { def selector: Selector def apply(streamer: HTMLStream, tag: Tag.Open): Unit } object Delta { def Replace(selector: Selector, content: => String): Replace = new Replace(selector, () => content) def Process(selector: S...
outr/youi
stream/src/main/scala/io/youi/stream/delta/Delta.scala
Scala
mit
1,743
package linkchecker.distribution import akka.actor.Actor import akka.actor.ActorRef import akka.actor.Props import akka.actor.Terminated import akka.actor.ActorLogging import akka.actor.SupervisorStrategy import akka.actor.Terminated import akka.cluster.Cluster import akka.cluster.ClusterEvent import scala.util.Random ...
fabiofumarola/akka-tutorial
src/main/scala/linkchecker/distribution/Receptionist.scala
Scala
cc0-1.0
4,619
/* * Happy Melly Teller * Copyright (C) 2013, Happy Melly http://www.happymelly.com * * This file is part of the Happy Melly Teller. * * Happy Melly Teller 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 Foundatio...
cvogt/teller
app/models/database/Addresses.scala
Scala
gpl-3.0
1,768
package ru.maizy.ambient7.core.data /** * Copyright (c) Nikita Kovaliov, maizy.ru, 2016-2017 * See LICENSE.txt for details. */ import java.time.ZonedDateTime case class Co2AggregatedLevels( lowLevel: Int, mediumLevel: Int, highLevel: Int, unknownLevel: Int, from: ZonedDateTime, to: ZonedDa...
maizy/ambient7
core/src/main/scala/ru/maizy/ambient7/core/data/Co2AggregatedLevels.scala
Scala
apache-2.0
1,045
package nl.bridgeworks.learn import scala.util.{Failure, Success, Try} object Coffee { type CoffeeBeans = String type GroundCoffee = String case class Water(temperature: Int) type Milk = String type FrothedMilk = String type Espresso = String type Cappuccino = String def grind(beans: CoffeeBeans): G...
bridgeworks-nl/scala-rete
src/main/scala/nl/bridgeworks/learn/Coffee.scala
Scala
mit
1,090
/* * The MIT License (MIT) * * Copyright (c) 2020 Ángel Cervera Claudio * * 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 ...
angelcervera/osm4scala
spark/src/main/scala/com/acervera/osm4scala/spark/OSMDataFinder.scala
Scala
mit
2,836
//TME1 Scala DF //~/Spark/spark-1.5.2-bin-hadoop2.4/bin/spark-shell val utils = sc.textFile("data/users.dat",10) val note = sc.textFile("data/ratings.dat",20) val films = sc.textFile("data/movies.dat") val n= note.map(_.split("::")).map(x=> (x(0),(x(1),x(2).toInt,x(3)))) val u=utils.map(_.split("::")).map(x=> (x(0)...
ToqueWillot/M2DAC
BDLE/TME1_DF/tme1_df.scala
Scala
gpl-2.0
1,129