code
stringlengths
5
1M
repo_name
stringlengths
5
109
path
stringlengths
6
208
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
5
1M
package dao import javax.inject.{Inject, Singleton} import models.AttributeEntity import play.api.db.slick.{DatabaseConfigProvider, HasDatabaseConfigProvider} import slick.driver.JdbcProfile import scala.concurrent.Future trait AttributesComponent extends InstancesComponent { self: HasDatabaseConfigProvider[JdbcP...
vuminhkh/tosca-runtime
deployer/app/dao/AttributeDAO.scala
Scala
mit
1,604
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distrib...
fusepoolP3/p3-silk
silk-core/src/main/scala/de/fuberlin/wiwiss/silk/config/LinkingConfig.scala
Scala
apache-2.0
3,641
/* * 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...
wzhongyuan/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/tensor/ArrayStorage.scala
Scala
apache-2.0
2,806
package com.example.http4s package jetty import com.example.http4s.ssl.SslExample import org.http4s.server.jetty.JettyBuilder object JettySslExample extends SslExample { def builder = JettyBuilder }
ZizhengTai/http4s
examples/jetty/src/main/scala/com/example/http4s/jetty/JettySslExample.scala
Scala
apache-2.0
204
package io.github.ptitjes.scott.nl.lang.fr import java.io.File import io.github.ptitjes.scott.api.HiddenMarkovModel._ import io.github.ptitjes.scott.api._ import io.github.ptitjes.scott.decoders.BeamDecoder import io.github.ptitjes.scott.nl.analysis.Checking import io.github.ptitjes.scott.nl.corpora.Corpora._ import ...
ptitjes/scott
scott-nl/src/main/scala/io/github/ptitjes/scott/nl/lang/fr/trainFTBFineLE.scala
Scala
gpl-3.0
1,817
package models /** * Created by Jörg Amelunxen on 14.01.15. */ case class HistoryModel( uID : String, content : String, editor : String, topicID : String, versionNumber : String, timeStam...
HiP-App/HiPBackend
app/models/HistoryModel.scala
Scala
apache-2.0
333
package tifmo package dcstree { sealed abstract class Quantifier object QuantifierALL extends Quantifier with Serializable object QuantifierNO extends Quantifier with Serializable }
tianran/tifmo
src/tifmo/dcstree/Quantifier.scala
Scala
bsd-2-clause
195
package se.gigurra.leavu3.app import java.awt.Desktop import java.net.URI import com.twitter.util.{Duration, JavaTimer, Time} import se.gigurra.leavu3.util.Resource2String import com.github.gigurra.serviceutils.twitter.logging.Logging import scala.language.implicitConversions import scala.util.Try /** * Created b...
GiGurra/leavu3
src/main/scala/se/gigurra/leavu3/app/Version.scala
Scala
mit
1,184
/* * 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/B1571.scala
Scala
apache-2.0
823
package models.hubnet import java.util.concurrent.TimeoutException import scala.concurrent.{ Await, duration }, duration._ import akka.{ actor, pattern, util => util_akka }, actor._, pattern.ask, util_akka.Timeout import play.{ api, libs }, api.Logger, libs.Akka import play.api.libs...
NetLogo/SimServer
app/models/hubnet/ExpiryManager.scala
Scala
gpl-2.0
2,284
/* * 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 ...
tzulitai/flink
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/planner/runtime/batch/table/LegacyTableSinkITCase.scala
Scala
apache-2.0
6,801
import scala.tools.partest.ReplTest // Check that the fragments of code generated in // in the REPL correctly escape values added to // literal strings. // // Before, we saw: // scala> m("").x = 77 // <console>:10: error: ')' expected but string literal found. // + "m("").x: Int = " + `$ires8` + "\\n" object Test ext...
yusuke2255/dotty
tests/pending/run/t6549.scala
Scala
bsd-3-clause
578
/* * 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
mllib/src/test/scala/org/apache/spark/ml/regression/LinearRegressionSuite.scala
Scala
apache-2.0
19,572
package keehive object AppController: val welcomeBanner = raw""" |******************************************** | _ _ _ | | | | | (_) | | | _____ ___| |__ ___ _____ | | |/ / _ \\/ _ \\ '_ \\| \\ \\ / / _ \\ | | < __/ __/ | | | |\\ V / _...
bjornregnell/keehive
src/main/scala/keehive/AppController.scala
Scala
gpl-3.0
18,069
package latis.ops import latis.dm._ import latis.dm.Scalar import latis.dm.Text import latis.util.iterator.MappingIterator import latis.util.LatisServiceException class TextAppender(name: String, suffix: String) extends Operation() { /** * Append 'suffix' to any Text Variable named 'name'. */ override de...
dlindhol/LaTiS
src/main/scala/latis/ops/TextAppender.scala
Scala
epl-1.0
1,285
/** * Copyright (c) 2016 Intel Corporation  * * 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 applicabl...
ashaarunkumar/spark-tk
sparktk-core/src/test/scala/org/trustedanalytics/sparktk/frame/internal/ops/statistics/descriptives/ColumnStatisticsITest.scala
Scala
apache-2.0
4,130
/* * Copyright (c) 2012. Alexandre Martins. All rights reserved. */ package pt.cnbc.wikimodels.client.snippet import net.liftweb.common._ import net.liftweb.http._ import S._ import net.liftweb.util._ import Helpers._ import scala.xml._ import pt.cnbc.wikimodels.client.record._ import alexmsmartins.log.LoggerWra...
alexmsmartins/WikiModels
wm_web_client/src/main/scala/pt/cnbc/wikimodels/client/snippet/SBMLScreens.scala
Scala
mit
23,428
package adawg.minecraftbot.util object CodeGenerators { val ControlInputPrinterStrings = { val labels = Seq("back", "forward", "left", "right", "jump", "sneak", "mouse1", "mouse2", "mouse3") val toggleNames = labels map {_ + "Toggle"} val output1 = for (label <- labels) yield "val " + label + "T...
yanich/BTBot
forge/mcp/src/minecraft/adawg/minecraftbot/util/CodeGenerators.scala
Scala
bsd-3-clause
724
package edu.gemini.pit.ui.util import java.awt.event.ActionEvent import javax.swing.{AbstractAction, Action, KeyStroke} import edu.gemini.shared.Platform import edu.gemini.ui.workspace.scala._ abstract class ShellAction[A](shell: RichShell[A], caption: String, key: Option[Int] = None, mask: Int = 0) extends Abstract...
spakzad/ocs
bundle/edu.gemini.pit/src/main/scala/edu/gemini/pit/ui/util/ShellAction.scala
Scala
bsd-3-clause
702
/*********************************************************************** * Copyright (c) 2013-2022 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...
locationtech/geomesa
geomesa-hbase/geomesa-hbase-tools/src/main/scala/org/locationtech/geomesa/hbase/tools/status/HBaseGetTypeNamesCommand.scala
Scala
apache-2.0
1,294
package com.dt.scala.forexpression /** * @author Wang Jialin * Date 015/8/15 * Contact Information: * WeChat: 18610086859 * QQ: 1740415547 * Email: 18610086859@126.com * Tel: 18610086859 */ object ForInAction { def main(args: Array[String]) { val lauren = Person("Lauren", false) val ro...
slieer/scala-tutorials
src/main/scala/com/dt/scala/forexpression/ForInAction.scala
Scala
apache-2.0
756
/* * Copyright (c) 2014 Oculus Info Inc. * http://www.oculusinfo.com/ * * Released under the MIT License. * * 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, includ...
unchartedsoftware/aperture-tiles
tile-generation/src/main/scala/com/oculusinfo/tilegen/datasets/DeferredTilePyramid.scala
Scala
mit
3,150
/* * 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 ...
LantaoJin/spark
core/src/main/scala/org/apache/spark/storage/BlockManagerMessages.scala
Scala
apache-2.0
4,872
import org.specs2.matcher.ShouldMatchers import play.api.Application import play.api.http.HeaderNames import play.api.inject.bind import play.api.inject.guice.GuiceApplicationBuilder import play.api.mvc.{ AnyContent, Cookies, Request } import play.api.test.{ FakeRequest, Injecting, PlaySpecification, WithApplication } ...
jaliss/securesocial
samples/scala/demo/test/ApplicationSpec.scala
Scala
apache-2.0
1,194
package sample.blog.monix import java.net.InetAddress import com.datastax.driver.core._ import java.lang.{ Long ⇒ JLong } import java.time._ import java.util.{ TimeZone, UUID } import java.util.concurrent.CountDownLatch import akka.persistence.query.Offset import com.datastax.driver.core.utils.UUIDs import com.datas...
haghard/akka-pq
src/main/scala/sample/blog/monix/PsJournal.scala
Scala
apache-2.0
7,421
/** * 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...
YMCoding/kafka-0.11.0.0-src-with-comment
core/src/main/scala/kafka/server/KafkaServer.scala
Scala
apache-2.0
30,128
package com.nelly.core.datastructures import scala.collection.mutable.{ArrayBuffer, HashMap} /** * * :Problem: PriorityQueue implementation does not reorder or maintain priority when the items stored within them * are mutated. * * This data structure, is a hash map backed max heap. * The hash map enable ...
ezinelony/http-log-monitor
core/src/main/scala/com/nelly/core/datastructures/HashMapPriorityQueue.scala
Scala
mit
6,385
package org.jetbrains.plugins.scala package debugger.evaluation import com.intellij.debugger.codeinsight.RuntimeTypeEvaluator import com.intellij.debugger.engine.ContextUtil import com.intellij.debugger.engine.evaluation.expression.ExpressionEvaluator import com.intellij.debugger.engine.evaluation.{CodeFragmentKind, E...
whorbowicz/intellij-scala
src/org/jetbrains/plugins/scala/debugger/evaluation/ScalaRuntimeTypeEvaluator.scala
Scala
apache-2.0
4,673
package com.github.gdefacci.briscola.presentation.player import com.github.gdefacci.briscola.service.player.PlayerService import com.github.gdefacci.briscola.web.util.ToPresentation import com.github.gdefacci.briscola.player._ import com.github.gdefacci.briscola.presentation import com.github.gdefacci.briscola.web.uti...
gdefacci/briscola
ddd-briscola-web/src/main/scala/com/github/gdefacci/briscola/presentation/player/PlayersModule.scala
Scala
bsd-3-clause
1,286
/* * 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 ...
ron8hu/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisSuite.scala
Scala
apache-2.0
21,431
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
maropu/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/statefulOperators.scala
Scala
apache-2.0
20,261
package org.scalacheck.time /** Stub trait since ScalaJs does not have native support for java.time types. */ private[scalacheck] trait JavaTimeShrink
rickynils/scalacheck
js/src/main/scala/org/scalacheck/time/JavaTimeShrink.scala
Scala
bsd-3-clause
152
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
thenetcircle/event-bus
core/src/test/scala/com/thenetcircle/event_bus/story/builder/FilterOperatorBuilderTest.scala
Scala
apache-2.0
2,630
package mr.merc.map.generator import mr.merc.map.hex.TerrainHexField import scala.util.Random trait MapGenerator { def generateMap(width: Int, height: Int, seed: Int = Random.nextInt()): TerrainHexField }
RenualdMarch/merc
src/main/scala/mr/merc/map/generator/MapGenerator.scala
Scala
gpl-3.0
208
/* Copyright (C) 2008-2010 Univ of Massachusetts Amherst, Computer Science Dept This file is part of "FACTORIE" (Factor graphs, Imperative, Extensible) http://factorie.cs.umass.edu, http://code.google.com/p/factorie/ This software is provided under the terms of the Eclipse Public License 1.0 as published by...
andrewmilkowski/factorie
src/main/scala/cc/factorie/util/Hooks.scala
Scala
epl-1.0
2,113
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distrib...
fusepoolP3/p3-silk
silk-core/src/test/scala/de/fuberlin/wiwiss/silk/plugins/distance/numeric/GeographicDistanceMetricTest.scala
Scala
apache-2.0
1,828
/* __ *\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2006-2013, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | http://www.scala-lang.org/ ** ** /____/\___/_/ |_/...
felixmulder/scala
src/library/scala/collection/convert/Wrappers.scala
Scala
bsd-3-clause
16,097
package org.openapitools.server.model /** * @param `class` for example: ''null'' * @param href for example: ''null'' */ final case class Link ( `class`: Option[String], href: Option[String] )
cliffano/swaggy-jenkins
clients/scala-akka-http-server/generated/src/main/scala/org/openapitools/server/model/Link.scala
Scala
mit
203
/* * 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 ...
jeremiaswerner/openwhisk
tests/src/test/scala/org/apache/openwhisk/core/controller/test/WebActionsApiTests.scala
Scala
apache-2.0
82,272
/* * Copyright 2015 LG CNS. * * 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...
jahnaviancha/scouter
scouter.server/src/scouter/server/netio/service/handle/LoginService.scala
Scala
apache-2.0
3,829
package common.graphql import akka.actor.{ActorRef, ActorSystem} import akka.stream.ActorMaterializer import common.actors.{ActorMessageDelivering, Dispatcher} import common.ActorNamed import common.actors.Dispatcher.DispatcherMessage import core.guice.injection.GuiceActorRefProvider import scala.concurrent.Future o...
sysgears/apollo-universal-starter-kit
modules/core/server-scala/src/main/scala/common/graphql/DispatcherResolver.scala
Scala
mit
949
/* * @author Philip Stutz * @author Mihaela Verman * * Copyright 2013 University of Zurich * * 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.apa...
elaverman/dcop-algorithms-old
src/main/scala/com/signalcollect/dcop/graph/RankedDcopVertex.scala
Scala
apache-2.0
4,297
package uk.co.morleydev.zander.client.controller.impl import uk.co.morleydev.zander.client.model.OperationArguments import uk.co.morleydev.zander.client.service.PurgeProjectArtefacts import uk.co.morleydev.zander.client.validator.ValidateArtefactDetailsExistence import uk.co.morleydev.zander.client.controller.Controll...
MorleyDev/zander.client
src/main/scala/uk/co/morleydev/zander/client/controller/impl/PurgeController.scala
Scala
mit
674
package memnets.core.impl import memnets.core._ import memnets.linalg.WMatrix import memnets.ml._ import memnets.model._ import memnets.ui._ import scala.collection.mutable._ private[core] class ModelImpl(val builder: ModelBuilder, val config: ModelConfig) extends BuiltModel with Logging { // hints override config...
MemoryNetworks/memnets
api/src/main/scala/memnets/core/impl/ModelImpl.scala
Scala
apache-2.0
3,041
package org.jetbrains.plugins.scala package lang package psi package impl package expr import com.intellij.lang.ASTNode import org.jetbrains.plugins.scala.lang.psi.api.expr._ import org.jetbrains.plugins.scala.lang.psi.types.api.Nothing import org.jetbrains.plugins.scala.lang.psi.types.result._ /** * @author Alexan...
JetBrains/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/impl/expr/ScThrowImpl.scala
Scala
apache-2.0
549
package com.shocktrade.common.models.post import com.shocktrade.common.models.user.UserLike import scala.scalajs.js import scala.scalajs.js.annotation.ScalaJSDefined /** * Represents a reply * @author lawrence.daniels@gmail.com * @see [[ReplyLikes]] */ class Reply extends js.Object { var _id: js.UndefOr[St...
ldaniels528/shocktrade.js
app/shared/common/src/main/scala/com/shocktrade/common/models/post/Reply.scala
Scala
apache-2.0
913
class A { def m() { var x = new 0; } } object Main { def main(args: Array[String]) { } }
tobast/compil-petitscala
tests/syntax/bad/testfile-expr8-1.scala
Scala
gpl-3.0
89
package features.implicits // Example 1: TypeClass object TypeClass{ def lessThan[A: Ordering](a: A, b: A): Boolean = implicitly[Ordering[A]].lt(a, b) implicit val intOrdering = new Ordering[Int]{ def compare(a: Int, b:Int): Int = a - b } val a = 10 val b = 12 val lesser = if(lessThan(a, b)) a else...
adilakhter/scalaznoob
src/main/scala/features/implicits/Implicits.scala
Scala
apache-2.0
963
/* * @author Francisco de Freitas * * Copyright 2011 University of Zurich * * 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 ...
mageru/signal-collect
src/main/scala/com/signalcollect/examples/Hamiltonian.scala
Scala
apache-2.0
4,320
package org.ai4fm.proofprocess.core.analysis import org.ai4fm.proofprocess.Term /** * A trait to signal that the term can be matched using `==`. * * This is a type-based solution to ensure that terms are matched correctly. * * Note that EMF does not use structural equality itself, so this trait requires * br...
andriusvelykis/proofprocess
org.ai4fm.proofprocess.core/src/org/ai4fm/proofprocess/core/analysis/EqTerm.scala
Scala
epl-1.0
444
/** * ScaBa - A Scala implementation for Discrete Baysian (Belief) Networks * * (c) 2015 Jan Charles Lenk * * Licensed under LGPL * * * @author jan.charles.lenk@gmail.com */ package scaba.example import scaba._ import scaba.inference._ object Test extends App { test() def profile[T]( f: => T):(T,Long)...
jachalen/scaba
src/main/scala-2.11/scaba/example/Test.scala
Scala
lgpl-2.1
4,214
package squants.energy import squants.mass.{ChemicalAmount, Moles} import squants.{AbstractQuantityNumeric, Dimension, PrimaryUnit, Quantity, SiUnit, UnitConverter, UnitOfMeasure} /** * * @author Nicolas Vinuesa * @since 1.4 * * @param value Double */ final class MolarEnergy private (val value: Double, va...
garyKeorkunian/squants
shared/src/main/scala/squants/energy/MolarEnergy.scala
Scala
apache-2.0
1,473
/** * Copyright 2011-2017 GatlingCorp (http://gatling.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
timve/gatling
gatling-http/src/main/scala/io/gatling/http/check/checksum/ChecksumCheck.scala
Scala
apache-2.0
939
/** This file is part of Nexus, which is Copyright 2012 Johannes Åman Pohjola * Nexus 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, version 3. * * Nexus is distributed in the hope that it will be us...
Sen045/nexus
src/nexus/move.scala
Scala
gpl-3.0
745
/* * 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...
wzhongyuan/BigDL
spark/dl/src/main/scala/com/intel/analytics/bigdl/utils/tf/loaders/TruncateDiv.scala
Scala
apache-2.0
1,444
package fpinscala.iomonad object IO0 { /* Our first attempt at data type for representing computations that may perform I/O. Has a simple 'interpreter' baked in--the `run` function, which just returns `Unit`. */ trait IO { self => def run: Unit ...
ardlema/fpinscala
exercises/src/main/scala/fpinscala/iomonad/IO.scala
Scala
mit
18,850
/* * Copyright (c) 2021, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ package com.krux.hyperion.activity import com.krux.hyperion.HyperionContext import com.kru...
realstraw/hyperion
contrib/activity/definition/src/main/scala/com/krux/hyperion/activity/SendFlowdockMessageActivity.scala
Scala
bsd-3-clause
2,647
import sbt._ import Keys._ import sbtassembly.AssemblyKeys._ object Deploy { val deployPackTask = TaskKey[Unit]("deploy-pack") val deployPack = deployPackTask <<= (assembly, jarName in assembly, target, baseDirectory) map { (_, jarName, target, base) => IO.delete(target / "deploy") IO.createDirectory(targe...
circlespainter/FrameworkBenchmarks
frameworks/Scala/lift-stateless/project/Deploy.scala
Scala
bsd-3-clause
2,042
package com.lucidchart.open.cashy.config import play.api.Play.{configuration, current} case class UploadFeatures( krakenEnabled: Boolean, compressJsEnabled: Boolean, compressCssEnabled: Boolean ) trait UploadFeatureConfig { private val krakenEnabled = configuration.getBoolean("kraken.enabled").getOrElse(false) ...
lucidsoftware/cashy
app/com/lucidchart/open/cashy/config/UploadFeatureConfig.scala
Scala
apache-2.0
649
package org.jetbrains.plugins.scala.worksheet.ammonite.runconfiguration import com.intellij.execution.configurations.{ConfigurationFactory, ConfigurationType, RunConfiguration} import com.intellij.openapi.project.Project /** * User: Dmitry.Naydanov * Date: 13.09.17. */ class AmmoniteRunConfigurationFactory(tpe:...
jastice/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/worksheet/ammonite/runconfiguration/AmmoniteRunConfigurationFactory.scala
Scala
apache-2.0
508
package com.getjenny.starchat.services.esclient /** * Created by Angelo Leto <angelo@getjenny.com> on 01/07/16. */ object BayesOperatorCacheElasticClient extends SystemElasticClient { override val indexSuffix: String = "bayes_operator_cache" override val mappingPath = "/index_management/json_index_spec/syste...
GetJenny/starchat
src/main/scala/com/getjenny/starchat/services/esclient/BayesOperatorCacheElasticClient.scala
Scala
gpl-2.0
462
package opencl.generator import ir._ import ir.ast._ import lift.arithmetic.SizeVar import opencl.executor.{Compile, TestWithExecutor, Utils} import opencl.ir._ import opencl.ir.pattern._ import org.junit.Assert._ import org.junit.Test object TestInject extends TestWithExecutor class TestInject { @Test def inject...
lift-project/lift
src/test/opencl/generator/TestInject.scala
Scala
mit
4,838
package clients import io.flow.token.v0.interfaces.{Client => TokenClient} import play.api.{Environment, Configuration, Mode} import play.api.inject.Module class TokenClientModule extends Module { def bindings(env: Environment, conf: Configuration) = { env.mode match { case Mode.Prod | Mode.Dev => Seq( ...
flowvault/proxy
app/clients/Bindings.scala
Scala
mit
501
/* * 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/main/scala/monix/reactive/observables/RefCountObservable.scala
Scala
apache-2.0
3,609
package bynull.hackerrank.swap_nodes /** * Created by null on 7/17/16. */ object SwapNodesApp extends App { val oldIn = System.in val dataUrl = ClassLoader.getSystemResource("swap_nodes.txt") try { System.setIn(dataUrl.openStream()) Solution.main(Array()) } finally { System.setIn(oldIn) } }...
xnull/programming
scala/src/main/scala/bynull/hackerrank/swap_nodes/Solution.scala
Scala
apache-2.0
2,486
package todo import com.github.plokhotnyuk.jsoniter_scala.core.{JsonReader, JsonValueCodec, JsonWriter} import com.github.plokhotnyuk.jsoniter_scala.macros.JsonCodecMaker import loci.transmitter.IdenticallyTransmittable import rescala.extra.lattices.delta.JsoniterCodecs._ import rescala.extra.lattices.delta.crdt.react...
guidosalva/REScala
Code/Examples/Todolist/src/main/scala/todo/Codecs.scala
Scala
apache-2.0
2,117
package stronghold.massSpectrometry /** * problem description: http://rosalind.info/problems/conv/ */ object SpectralConvolution { object SampleData { val sample: List[String] = List( "186.07931 287.12699 548.20532 580.18077 681.22845 706.27446 782.27613 968.35544 968.35544", "101.047...
ghostrider77/Bioinformatics
Bioinformatics/src/main/scala-2.11/stronghold/massSpectrometry/SpectralConvolution.scala
Scala
mit
1,547
/** * Copyright 2009 Robey Pointer <robeypointer@gmail.com> * Copyright 2012-2013 Alexey Aksenov <ezh@ezh.msk.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.ap...
ezh/digi-configgy
src/main/scala/org/digimead/configgy/EnvironmentAttributes.scala
Scala
apache-2.0
3,434
package com.gu.pandomainauth import java.util.concurrent.atomic.AtomicReference import java.util.concurrent.{Executors, ScheduledExecutorService, TimeUnit} import com.amazonaws.services.s3.AmazonS3 import com.gu.pandomainauth.model.PanDomainAuthSettings import org.slf4j.LoggerFactory import scala.language.postfixOps...
guardian/pan-domain-authentication
pan-domain-auth-core/src/main/scala/com/gu/pandomainauth/PanDomainAuthSettingsRefresher.scala
Scala
apache-2.0
2,354
package models.oauth2 import play.api.libs.ws.WS import play.api.libs.concurrent.Execution.Implicits.defaultContext import play.api.libs.json.Json import play.api.libs.json.JsObject import scala.concurrent.Future object GoogleOAuth2 extends OAuth2 { // definido em: // https://developers.google.com/ ...
w2srobinho/ine5646
origem_destino/app/models/oauth2/GoogleOAuth2.scala
Scala
mit
2,610
/*********************************************************************** * 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...
jahhulbert-ccri/geomesa
geomesa-security/src/main/scala/org/locationtech/geomesa/security/FilteringAuthorizationsProvider.scala
Scala
apache-2.0
1,288
class A object A
sbt/sbt
sbt-app/src/sbt-test/tests/bak/p1/src/config-9/scala/A.scala
Scala
apache-2.0
17
package com.github.bruneli.scalaopt.core.discrete import com.github.bruneli.scalaopt.core.constraint.{CP, Constraint} import com.github.bruneli.scalaopt.core.function.ObjectiveFunction import com.github.bruneli.scalaopt.core.linalg.DenseVectorLike import com.github.bruneli.scalaopt.core.variable.{ContinuousVariable, D...
bruneli/scalaopt
core/src/main/scala/com/github/bruneli/scalaopt/core/discrete/MIP.scala
Scala
apache-2.0
1,744
package com.nulabinc.backlog.r2b.exporter.core import java.io.PrintStream import com.google.inject.Guice import com.nulabinc.backlog.migration.common.conf.ExcludeOption import com.nulabinc.backlog.migration.common.domain.{BacklogProjectKey, BacklogTextFormattingRule} import com.nulabinc.backlog.migration.common.dsl.C...
nulab/BacklogMigration-Redmine
src/main/scala/com/nulabinc/backlog/r2b/exporter/core/Boot.scala
Scala
mit
2,071
/** * A simple text based RPG * * @package simplerpg * @copyright 2015 */ package simplerpg case class NPC(name: String, health: Long, damage: Long) extends Character { def isPlayerControlled(): Boolean = false def askForCommands(): Array[String] = Array.empty[String] }
mcross1882/SimpleRPG
src/main/scala/simplerpg/player/NPC.scala
Scala
mit
289
package cgta.otest package runner import sbt.testing.{Task, SubclassFingerprint, TaskDef, Logger, EventHandler} import cgta.otest.runner.TestResults.{FailedFatalException, Ignored, FailedBad, Passed, FailedAssertion, FailedUnexpectedException} import org.scalajs.testinterface.TestUtils //////////////////////////////...
cgta/otest
otest/shared/src/main/scala/cgta/otest/runner/OtestTask.scala
Scala
mit
3,112
/* * Copyright 2014 Frugal Mechanic (http://frugalmechanic.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...
frugalmechanic/fm-lazyseq
src/main/scala/fm/lazyseq/AppendedLazySeq.scala
Scala
apache-2.0
872
package tutorial.webapp import org.scalajs.dom import dom.document import org.scalajs.jquery.jQuery import scala.scalajs.js.annotation.JSExportTopLevel object TutorialApp { /*def main(args: Array[String]): Unit = { appendPar(document.body, "Hello, World") }*/ def appendPar(targetNode: dom.Node, text: Strin...
abdheshkumar/scalajs-practices
client/src/main/scala/tutorial/webapp/TutorialApp.scala
Scala
apache-2.0
690
package io.scalajs.npm.mongodb import scala.scalajs.js import scala.scalajs.js.annotation.JSGlobal /** * Unordered Bulk Operation * @author lawrence.daniels@gmail.com */ @js.native @JSGlobal("UnorderedBulkOperation") class UnorderedBulkOperation() extends js.Object { /** * Execute the ordered bulk operat...
scalajs-io/mongodb
src/main/scala/io/scalajs/npm/mongodb/UnorderedBulkOperation.scala
Scala
apache-2.0
1,011
/* __ *\\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2013, LAMP/EPFL ** ** __\\ \\/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\\___/_/...
som-snytt/scala-xml
src/main/scala/scala/xml/factory/Binder.scala
Scala
bsd-3-clause
1,832
package actor.actor_mes import scala.actors.Actor /** * Created by fqc on 2016/7/27. */ object Server extends Actor { override def act(): Unit = { loop(react { case Person(name, age) => { println(s"name = $name ,age = $age") sender ! "copy that" //通过发送者的句柄发送消息 } case _ => p...
fqc/Scala_sidepro
src/actor/actor_mes/Server.scala
Scala
mit
478
/* * Copyright (C) 2005, The OpenURP 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...
openurp/api
std/src/main/scala/org/openurp/std/register/model/Register.scala
Scala
lgpl-3.0
1,574
package dsmoq.exceptions /** * 入力チェックに違反した場合に送出する例外 * * @param errors エラーメッセージのリスト */ class InputValidationException(errors: Iterable[(String, String)]) extends RuntimeException { val validationErrors = errors /** * エラーメッセージを取得する */ def getErrorMessage(): Iterable[InputValidationError] = { validat...
nkawa/dsmoq
server/apiServer/src/main/scala/dsmoq/exceptions/InputValidationException.scala
Scala
apache-2.0
788
package org.scalaide.refactoring.internal import org.eclipse.ltk.ui.refactoring.RefactoringWizard /** * Wraps the `ScalaIdeRefactoring` instance in a wizard and adds * the pages from the refactoring to the wizard. */ class ScalaRefactoringWizard( refactoring: ScalaIdeRefactoring, flags: Int = Refactoring...
Kwestor/scala-ide
org.scala-ide.sdt.core/src/org/scalaide/refactoring/internal/ScalaRefactoringWizard.scala
Scala
bsd-3-clause
494
package org.mitlware import scalaz._ import scalaz.MonadState._ // TODO: replace parametric views with proper lenses trait OrderView[T] { def getOrder : OrderImpl[T] def setOrder( order : OrderImpl[T] ) : this.type } trait OrderImpl[T] { def better( x : T, y : T ) : T } object Order { def better[T,Env <: ...
MitLware/MitLware-scala
src/org/mitlware/Order.scala
Scala
bsd-3-clause
411
// Copyright: 2010 - 2016 https://github.com/ensime/ensime-server/graphs // Licence: http://www.gnu.org/licenses/gpl-3.0.en.html package org.ensime import java.io.File import Predef.{ any2stringadd => _, _ => _ } import org.ensime.api._ import org.ensime.util.file._ package object config { implicit class RichEnsim...
d6y/ensime-server
core/src/main/scala/org/ensime/config/package.scala
Scala
gpl-3.0
600
package qidong.statics import org.scalatest.FunSuite import scala.concurrent.Future import util.Try class AutoFlattenEffectTest extends FunSuite { import qidong.pipeline.ops._ test("") { } }
chenharryhua/qidong
src/test/scala/qidong/statics/AutoFlattenEffectTest.scala
Scala
apache-2.0
202
package org.jetbrains.plugins.scala package lang package psi package types import com.intellij.ide.highlighter.JavaFileType import com.intellij.psi._ import com.intellij.psi.util.MethodSignatureUtil import org.jetbrains.plugins.scala.extensions._ import org.jetbrains.plugins.scala.lang.psi.api.statements.params.ScPara...
katejim/intellij-scala
src/org/jetbrains/plugins/scala/lang/psi/types/Signature.scala
Scala
apache-2.0
11,036
package fpinscala package monads import parsing._ import testing._ import parallelism._ import state._ import parallelism.Par._ trait Functor[F[_]] { def map[A,B](fa: F[A])(f: A => B): F[B] def distribute[A,B](fab: F[(A, B)]): (F[A], F[B]) = (map(fab)(_._1), map(fab)(_._2)) def codistribute[A,B](e: Either...
fpinscala-muc/fpinscala-abo64
exercises/src/main/scala/fpinscala/monads/Monad.scala
Scala
mit
5,251
/* ************************************************************************************* * Copyright 2016 Normation SAS ************************************************************************************* * * This file is part of Rudder. * * Rudder is free software: you can redistribute it and/or modify * it under the...
armeniaca/rudder
rudder-core/src/test/scala/com/normation/rudder/repository/jdbc/HistorizationRepositoryTest.scala
Scala
gpl-3.0
6,117
package com.scalaAsm.x86 package Instructions package x87 // Description: Load Constant +1.0 // Category: general/ldconst trait FLD1 extends InstructionDefinition { val mnemonic = "FLD1" } object FLD1 extends ZeroOperands[FLD1] with FLD1Impl trait FLD1Impl extends FLD1 { implicit object _0 extends NoOp{ val...
bdwashbu/scala-x86-inst
src/main/scala/com/scalaAsm/x86/Instructions/x87/FLD1.scala
Scala
apache-2.0
404
package uk.gov.gds.ier.transaction.ordinary.address import com.google.inject.{Inject, Singleton} import uk.gov.gds.ier.config.Config import uk.gov.gds.ier.model.{ Addresses, PossibleAddress} import uk.gov.gds.ier.security.EncryptionService import uk.gov.gds.ier.serialiser.JsonSerialiser import uk.gov.gds.ier.servi...
alphagov/ier-frontend
app/uk/gov/gds/ier/transaction/ordinary/address/AddressSelectStep.scala
Scala
mit
2,352
package org.broadinstitute.dsde.vault.datamanagement.controller case class EntityType(databaseKey: String, endpoint: String) object EntityType { val UNMAPPED_BAM = EntityType("unmappedBAM", "ubam") val ANALYSIS = EntityType("analysis", "analyses") val UBAM_COLLECTION = EntityType("uBAMCollection", "ubamcollecti...
broadinstitute/vault-datamanagement
src/main/scala/org/broadinstitute/dsde/vault/datamanagement/controller/EntityType.scala
Scala
bsd-3-clause
386
/* * 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
experiments/cgroup/src/main/scala/org/apache/gearpump/cluster/worker/CGroupProcessLauncher.scala
Scala
apache-2.0
2,796
/* * 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 ...
hvanhovell/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala
Scala
apache-2.0
26,226
package org.ucombinator.jaam.tools.missingreturns import java.io.FileInputStream import scala.collection.mutable import soot.{SootMethod => RealSootMethod} // TODO: fix class name collision import soot.jimple.{Stmt => SootStmt, _} import org.ucombinator.jaam.serializer._ object MissingReturns { def missingReturns...
Ucombinator/jaam
src/main/scala/org/ucombinator/jaam/tools/MissingReturn.scala
Scala
bsd-2-clause
1,844
/*********************************************************************** * 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-utils/src/main/scala/org/locationtech/geomesa/utils/geotools/SimpleFeatureSpecConfig.scala
Scala
apache-2.0
5,877
package org.hammerlab.guacamole.pileup import htsjdk.samtools.{CigarElement, CigarOperator} import org.bdgenomics.adam.util.PhredUtils.phredToSuccessProbability import org.hammerlab.genomics.reference.{ContigSequence, Locus} import org.hammerlab.guacamole.reads.MappedRead import org.hammerlab.guacamole.util.CigarUtils...
hammerlab/guacamole
src/main/scala/org/hammerlab/guacamole/pileup/PileupElement.scala
Scala
apache-2.0
11,813
/* * 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 ...
chgm1006/spark-app
src/main/scala/org/apache/spark/examples/mllib/FPGrowthExample.scala
Scala
apache-2.0
3,193
package com.lynbrookrobotics.potassium.commons.drivetrain.twoSided import com.lynbrookrobotics.potassium.commons.drivetrain.ForwardVelocityGains import com.lynbrookrobotics.potassium.commons.drivetrain.unicycle.UnicycleProperties import com.lynbrookrobotics.potassium.control.PIDConfig import com.lynbrookrobotics.potas...
Team846/potassium
commons/src/main/scala/com/lynbrookrobotics/potassium/commons/drivetrain/twoSided/TwoSidedDriveProperties.scala
Scala
mit
1,241