repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
kornelrabczak/scalac-simple-profiling
build.sbt
<gh_stars>0 scalaVersion := "2.13.2" version := "0.1.0-SNAPSHOT" organization := "com.thecookiezen" organizationName := "thecookiezen" scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings") lazy val root = (project in file(".")) .settings( name := "scalac-simple-profiler", libraryDependencies...
kornelrabczak/scalac-simple-profiling
src/main/scala/com/thecookiezen/tools/Logger.scala
package com.thecookiezen.tools import scala.reflect.internal.util.NoPosition final class Logger[G <: scala.tools.nsc.Global](val global: G) { def info[T: pprint.TPrint](header: String, value: T): Unit = { val tokens = pprint.tokenize(value, height = 100000000).mkString info(s"$header:\n$tokens") } def ...
kornelrabczak/scalac-simple-profiling
src/main/scala/com/thecookiezen/metrics/Timer.scala
<reponame>kornelrabczak/scalac-simple-profiling package com.thecookiezen.metrics import java.util.concurrent.atomic.AtomicLong import com.thecookiezen.metrics.Timer.TimerSnapshot import scala.runtime.LongRef class Timer(val prefix: String) { private[this] val threadNanos = new ThreadLocal[LongRef] { override ...
kornelrabczak/scalac-simple-profiling
project/plugins.sbt
<filename>project/plugins.sbt addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.1") addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.10")
nesstest/onslocal_bo
build.sbt
<reponame>nesstest/onslocal_bo<gh_stars>0 name := """onslocal-bo""" version := "1.0-SNAPSHOT" lazy val root = (project in file(".")).enablePlugins(PlayJava) scalaVersion := "2.11.7" libraryDependencies ++= Seq( javaJdbc, cache, javaWs, javaJpa, "org.eclipse.persistence" % "eclipselink" % "2.6.2", "org.p...
jfalkner/file_backed_logs
src/test/scala/jfalkner/logs/LogsSpec.scala
package jfalkner.logs import java.nio.file.Files import java.time.Instant import org.apache.commons.io.FileUtils import org.specs2.matcher.MatchResult import org.specs2.mutable.Specification class LogsSpec extends Specification { val (a, b, c) = (Foo("A"), Foo("B"), Foo("C")) val suffix = ".example.csv" "Lo...
jfalkner/file_backed_logs
src/main/scala/jfalkner/logs/Logs.scala
package jfalkner.logs import java.io.File import java.nio.file.{Files, Path, Paths} import java.time.Instant import jfalkner.cc2csv.Csv.{marshall, unmarshall} import scala.collection.JavaConverters._ import scala.reflect.ClassTag // Logic related to marshall/unmarshall-ing log entries trait Logs { val logsPath:...
mosypov/future
future-scala/src/main/scala/io/trane/future/scala/Promise.scala
package io.trane.future.scala import io.trane.future.{ Promise => JPromise, Future => JFuture } import scala.util.{ Try, Success, Failure } import scala.annotation.unchecked.uncheckedVariance class Promise[T](private[trane] val underlying: JPromise[T @uncheckedVariance]) extends AnyVal { def toJava[B >: T]: JPro...
mosypov/future
future-scala/src/main/scala/io/trane/future/scala/Await.scala
package io.trane.future.scala import scala.concurrent.duration.Duration object Await { def ready[T](awaitable: Future[T], atMost: Duration) = { awaitable.underlying.join(toJavaDuration(atMost)) this } def result[T](awaitable: Future[T], atMost: Duration): T = awaitable.underlying.get(toJavaDuratio...
mosypov/future
future-scala/src/main/scala/io/trane/future/scala/package.scala
<filename>future-scala/src/main/scala/io/trane/future/scala/package.scala<gh_stars>100-1000 package io.trane.future import io.trane.future.{ Future => JFuture, Promise => JPromise } package object scala { implicit class toScalaPromise[T](val p: JPromise[T]) extends AnyVal { def toScala: Promise[T] = new Promise...
mosypov/future
future-scala/src/main/scala/io/trane/future/scala/Future.scala
<gh_stars>100-1000 package io.trane.future.scala import io.trane.future.{ Future => JFuture, Promise => JPromise } import scala.util.Try import scala.util.Failure import scala.util.Success import java.util.concurrent.TimeUnit import java.util.function.Consumer import java.util.function.{ Function => JavaFunction } imp...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/TransactionalWrite.scala
<gh_stars>10-100 /* * Copyright [2021] [EnginePlus Team] * * 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 app...
engine-plus/StarLake
src/test/scala/org/apache/spark/sql/star/commands/UpdateSuiteBase.scala
<reponame>engine-plus/StarLake<filename>src/test/scala/org/apache/spark/sql/star/commands/UpdateSuiteBase.scala /* * Copyright [2021] [EnginePlus Team] * * 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 t...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/commands/Command.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/com/engineplus/star/livy/ExecuteWithLivy.scala
<gh_stars>10-100 /* * Copyright [2021] [EnginePlus Team] * * 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 app...
engine-plus/StarLake
src/test/scala/org/apache/spark/sql/star/DataFrameWriterV2Suite.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/StarLakePartFileMerge.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/rules/PreprocessTableDelete.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/test/scala/org/apache/spark/sql/star/commands/UpdateScalaSuite.scala
<filename>src/test/scala/org/apache/spark/sql/star/commands/UpdateScalaSuite.scala /* * Copyright [2021] [EnginePlus Team] * * 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:...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/sources/StarLakeSQLConf.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/com/engineplus/star/meta/DataOperation.scala
<gh_stars>10-100 /* * Copyright [2021] [EnginePlus Team] * * 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 app...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/exception/MetaRetryErrors.scala
<reponame>engine-plus/StarLake /* * Copyright [2021] [EnginePlus Team] * * 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 r...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/commands/CompactionCommand.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/test/scala/org/apache/spark/sql/star/NotSupportedDDLSuite.scala
<reponame>engine-plus/StarLake /* * Copyright [2021] [EnginePlus Team] * * 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 r...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/schema/InvariantCheckerExec.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/test/scala/org/apache/spark/sql/star/StarSinkSuite.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/com/engineplus/star/meta/CustomConnectionFactory.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/test/scala/com/engineplus/star/meta/MetaCommitSuite.scala
<reponame>engine-plus/StarLake /* * Copyright [2021] [EnginePlus Team] * * 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 r...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/StarLakeConfig.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/StarLakeOptions.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/utils/MetaData.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/test/scala/com/engineplus/star/tables/StarTableSuite.scala
<reponame>engine-plus/StarLake<gh_stars>10-100 /* * Copyright [2021] [EnginePlus Team] * * 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....
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/StarLakeFileIndex.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/Snapshot.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/execution/datasources/v2/merge/parquet/batch/merge_operator/MergeParquetFileWithOperatorPartitionByBatchFile.scala
<reponame>engine-plus/StarLake /* * Copyright [2021] [EnginePlus Team] * * 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 r...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/commands/CreateMaterialViewCommand.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/execution/datasources/v2/merge/parquet/batch/MergeParquetSingletonFilePartitionByBatchFile.scala
<filename>src/main/scala/org/apache/spark/sql/execution/datasources/v2/merge/parquet/batch/MergeParquetSingletonFilePartitionByBatchFile.scala /* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/commands/CleanupCommand.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/com/engineplus/star/meta/MaterialView.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/material_view/RangeInfo.scala
<reponame>engine-plus/StarLake /* * Copyright [2021] [EnginePlus Team] * * 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 r...
engine-plus/StarLake
src/main/scala/com/engineplus/star/meta/StreamingRecord.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/storage/HDFSLogStore.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/execution/datasources/v2/merge/parquet/MergeFilePartitionReaderFactory.scala
<reponame>engine-plus/StarLake /* * Copyright [2021] [EnginePlus Team] * * 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 r...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/commands/DropTableCommand.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/test/scala/org/apache/spark/sql/star/StarLakePartFileMergeSuite.scala
<reponame>engine-plus/StarLake /* * Copyright [2021] [EnginePlus Team] * * 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 r...
engine-plus/StarLake
src/main/scala/com/engineplus/star/meta/Redo.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/utils/FileOperation.scala
package org.apache.spark.sql.star.utils import java.io.{FileNotFoundException, IOException} import java.net.URI import java.util.Locale import org.apache.hadoop.fs.{FileSystem, Path} import org.apache.spark.SparkEnv import org.apache.spark.broadcast.Broadcast import org.apache.spark.internal.Logging import org.apache...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/SnapshotManagement.scala
<filename>src/main/scala/org/apache/spark/sql/star/SnapshotManagement.scala /* * Copyright [2021] [EnginePlus Team] * * 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.a...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/sources/StarLakeDataSource.scala
<filename>src/main/scala/org/apache/spark/sql/star/sources/StarLakeDataSource.scala /* * Copyright [2021] [EnginePlus Team] * * 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...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/StarLakeUtils.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/test/scala/org/apache/spark/sql/star/commands/DropTableSuite.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/execution/datasources/v2/parquet/BucketParquetScan.scala
<gh_stars>10-100 /* * Copyright [2021] [EnginePlus Team] * * 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 app...
engine-plus/StarLake
src/test/scala/org/apache/spark/sql/star/schema/SchemaEnforcementSuite.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/execution/datasources/v2/merge/parquet/batch/MergeLogic.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/test/scala/org/apache/spark/sql/star/commands/CleanupSuite.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/catalog/StarLakeTableV2.scala
<filename>src/main/scala/org/apache/spark/sql/star/catalog/StarLakeTableV2.scala /* * Copyright [2021] [EnginePlus Team] * * 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://...
engine-plus/StarLake
src/test/scala/org/apache/spark/sql/star/commands/DeleteScalaSuite.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/exception/MetaRerunErrors.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/execution/datasources/v2/merge/parquet/MergeParquetPartitionReaderFactory.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/material_view/AggregateInfo.scala
<reponame>engine-plus/StarLake /* * Copyright [2021] [EnginePlus Team] * * 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 r...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/execution/datasources/v2/merge/parquet/batch/MergeOperatorColumnarBatchRow.scala
<filename>src/main/scala/org/apache/spark/sql/execution/datasources/v2/merge/parquet/batch/MergeOperatorColumnarBatchRow.scala /* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
engine-plus/StarLake
src/test/scala/org/apache/spark/sql/star/rules/RewriteQueryByMaterialViewBase.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/rules/StarLakePostHocAnalysis.scala
/* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/execution/datasources/v2/merge/parquet/batch/merge_operator/MergeColumnarBatchNew.scala
<filename>src/main/scala/org/apache/spark/sql/execution/datasources/v2/merge/parquet/batch/merge_operator/MergeColumnarBatchNew.scala /* * Copyright [2021] [EnginePlus Team] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ...
engine-plus/StarLake
src/main/scala/org/apache/spark/sql/star/commands/alterTableCommands.scala
<reponame>engine-plus/StarLake<gh_stars>10-100 /* * Copyright [2021] [EnginePlus Team] * * 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....
engine-plus/StarLake
src/main/scala/com/engineplus/star/meta/MetaLock.scala
<filename>src/main/scala/com/engineplus/star/meta/MetaLock.scala /* * Copyright [2021] [EnginePlus Team] * * 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/l...
chdmwu/CaffeOnSpark
caffe-grid/src/main/scala/com/yahoo/ml/caffe/CaffeOnSpark.scala
<filename>caffe-grid/src/main/scala/com/yahoo/ml/caffe/CaffeOnSpark.scala // Copyright 2016 Yahoo Inc. // Licensed under the terms of the Apache 2.0 license. // Please see LICENSE file in the project root for terms. package com.yahoo.ml.caffe import java.io.{FileReader, PrintWriter} import java.net.InetAddress import...
chdmwu/CaffeOnSpark
caffe-grid/src/main/scala/com/yahoo/ml/caffe/ImageDataFrame.scala
<reponame>chdmwu/CaffeOnSpark // Copyright 2016 Yahoo Inc. // Licensed under the terms of the Apache 2.0 license. // Please see LICENSE file in the project root for terms. package com.yahoo.ml.caffe import org.apache.spark.SparkContext import org.apache.spark.rdd.RDD import org.apache.spark.sql.{DataFrame, SQLContext}...
jmategk0/enron_email_parser
spark_enron_parser.scala
<filename>spark_enron_parser.scala //import stuff for tests import org.apache.spark.sql.SparkSession val ss = SparkSession. builder(). master("local"). appName("Spark in Motion Example"). config("spark.config.option", "some-value"). enableHiveSupport(). getOrCreate() import ss.implicits._ import org.apache.spark.sql.f...
borissmidt/slick-mysql
core/src/main/scala/com/foerstertechnologies/slickmysql/money/MySQLMoneyExtension.scala
<filename>core/src/main/scala/com/foerstertechnologies/slickmysql/money/MySQLMoneyExtension.scala<gh_stars>1-10 package com.foerstertechnologies.slickmysql.money import slick.jdbc.{JdbcType, JdbcTypesComponent, MySQLProfile} import slick.ast.{Library, LiteralNode, TypedType} import slick.ast.Library.{SqlFunction, SqlO...
borissmidt/slick-mysql
addons/circe-json/src/main/scala/com/foerstertechnologies/slickmysql/MySQLCirceJsonSupport.scala
package com.foerstertechnologies.slickmysql import slick.jdbc.{JdbcProfile, JdbcType, MySQLProfile, PositionedResult} import scala.reflect.classTag import java.sql.{PreparedStatement, ResultSet, SQLData, SQLInput, SQLOutput} import io.circe.Json import io.circe.parser._ import slick.jdbc.{GetResult, JdbcType, MySQLP...
borissmidt/slick-mysql
addons/jts/src/main/scala/com/foerstertechnologies/slickmysql/MySQLSpatialSupport.scala
package com.foerstertechnologies.slickmysql import java.sql.{PreparedStatement, ResultSet} import com.foerstertechnologies.slickmysql.spatial._ import org.locationtech.jts.geom._ import slick.ast.FieldSymbol import slick.jdbc._ import scala.reflect.{ClassTag, classTag} trait MySQLSpatialSupport extends MySQLSpatial...
borissmidt/slick-mysql
src/main/scala/com/foerstertechnologies/slickmysql/MySQLJsonSupport.scala
<gh_stars>1-10 package com.foerstertechnologies.slickmysql import slick.jdbc.{JdbcProfile, JdbcType, MySQLProfile, PositionedResult} import scala.reflect.classTag /** simple json string wrapper */ case class JsonString(value: String) /** * simple json support; if all you want is just getting from / saving to db, a...
borissmidt/slick-mysql
addons/circe-json/src/test/scala/com/foerstertechnologies/slickmysql/MySQLCircleJsonSupportSuite.scala
package com.foerstertechnologies.slickmysql import org.scalatest.FunSuite import slick.jdbc.{GetResult, MySQLProfile, PostgresProfile} import scala.concurrent.{Await, ExecutionContext} import java.util.concurrent.Executors class MySQLCircleJsonSupportSuite extends FunSuite { implicit val testExecContext = Executio...
borissmidt/slick-mysql
addons/joda-money/src/main/scala/com/foerstertechnologies/slickmysql/MySQLJodaMoneySupport.scala
package com.foerstertechnologies.slickmysql import java.math.RoundingMode import java.sql.{PreparedStatement, ResultSet} import org.joda.money.{CurrencyUnit, Money} import slick.ast.NumericTypedType import slick.jdbc._ import scala.reflect.classTag trait MySQLJodaMoneySupport extends money.MySQLMoneyExtension with ...
borissmidt/slick-mysql
core/src/test/scala/com/foerstertechnologies/slickmysql/ExMySQLProfileSpec.scala
package com.foerstertechnologies.slickmysql import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers import slick.lifted.{ProvenShape, TableQuery, Tag} import ExMySQLProfile.api._ class ExMySQLProfileSpec extends AnyFlatSpec with Matchers { "the native upsert builder" should "create a ...
borissmidt/slick-mysql
core/src/main/scala/com/foerstertechnologies/slickmysql/utils/MySQLTokenHelper.scala
<filename>core/src/main/scala/com/foerstertechnologies/slickmysql/utils/MySQLTokenHelper.scala package com.foerstertechnologies.slickmysql.utils import scala.util.parsing.combinator.RegexParsers import scala.util.parsing.input.CharSequenceReader import scala.collection.mutable import slick.SlickException object MySQL...
borissmidt/slick-mysql
build.sbt
<reponame>borissmidt/slick-mysql lazy val scala212 = "2.12.8" lazy val scala213 = "2.13.3" lazy val commonSettings = Seq( organizationName := "foerster technologies", organization := "com.foerster-technologies", name := "slick-mysql", version := "1.1.0", scalaVersion := scala213, crossScalaVersions := Lis...
borissmidt/slick-mysql
addons/jts/src/main/scala/com/foerstertechnologies/slickmysql/MySQLSpatialSupportUtils.scala
<filename>addons/jts/src/main/scala/com/foerstertechnologies/slickmysql/MySQLSpatialSupportUtils.scala package com.foerstertechnologies.slickmysql import java.nio.ByteBuffer import org.locationtech.jts.geom.{Geometry, GeometryFactory, Point, PrecisionModel} import org.locationtech.jts.io.{ByteOrderValues, WKBReader, ...
borissmidt/slick-mysql
src/main/scala/com/foerstertechnologies/slickmysql/PatchActionExtensionMethodsSupport.scala
package com.foerstertechnologies.slickmysql import slick.ast.{CompiledStatement, Node, ResultSetMapping} import slick.dbio.{Effect, NoStream} import slick.jdbc._ import slick.lifted.Query import slick.relational.{CompiledMapping, ProductResultConverter, ResultConverter, TypeMappingResultConverter} import slick.util.{P...
borissmidt/slick-mysql
addons/play-json/src/main/scala/com/foerstertechnologies/slickmysql/MySQLPlayJsonSupport.scala
<gh_stars>1-10 package com.foerstertechnologies.slickmysql import slick.jdbc.{JdbcProfile, JdbcType, MySQLProfile, PositionedResult} import scala.reflect.classTag trait MySQLPlayJsonSupport extends json.MySQLJsonExtension with utils.MySQLCommonJdbcTypes { self: MySQLProfile => import self.api._ import play.api....
borissmidt/slick-mysql
addons/jts/src/test/scala/com/foerstertechnologies/slickmysql/MySQLSpatialSupportSuite.scala
<reponame>borissmidt/slick-mysql package com.foerstertechnologies.slickmysql import org.scalatest.FunSuite import slick.jdbc.{GetResult, MySQLProfile, PostgresProfile} import scala.concurrent.{Await, ExecutionContext} import java.util.concurrent.Executors class MySQLSpatialSupportSuite extends FunSuite { implicit ...
borissmidt/slick-mysql
project/plugins.sbt
// Comment to get more information during initialization logLevel := Level.Warn // The Typesafe repository resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/" // Add sbt PGP Plugin addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8.1") addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0...
mysoreanoop/chipyard
generators/redefine/src/main/scala/core/System.scala
<gh_stars>0 package redefine import chisel3._ import freechips.rocketchip.config.{Parameters} import freechips.rocketchip.subsystem._ import freechips.rocketchip.tilelink._ import freechips.rocketchip.devices.tilelink._ import freechips.rocketchip.diplomacy._ import freechips.rocketchip.util.{DontTouch} class REDEFI...
mysoreanoop/chipyard
generators/redefine/src/test/scala/dma/DMAUnitTest.scala
<reponame>mysoreanoop/chipyard<gh_stars>0 // See README.md for license details. package dma import chisel3.iotesters import chisel3.iotesters._ import chisel3._ import freechips.rocketchip.config.Parameters import freechips.rocketchip.diplomacy.LazyModule class TBDMATop(c:ChiselTopWrapper) extends PeekPokeTester(c) ...
mysoreanoop/chipyard
generators/redefine/src/main/scala/dma/Config.scala
package dma import chisel3._ import freechips.rocketchip.config.{Parameters, Field, Config} class BaseConfig extends Config( new WithDMA(true) ++ new WithDSM(true))
mysoreanoop/chipyard
generators/redefine/src/main/scala/core/Subsystem.scala
package redefine import chisel3._ import chisel3.internal.sourceinfo.{SourceInfo} import freechips.rocketchip.config.{Field, Parameters} import freechips.rocketchip.devices.tilelink._ import freechips.rocketchip.devices.debug.{HasPeripheryDebug, HasPeripheryDebugModuleImp} import freechips.rocketchip.diplomacy._ impo...
mysoreanoop/chipyard
generators/redefine/src/main/scala/dma/DummyDMA.scala
<filename>generators/redefine/src/main/scala/dma/DummyDMA.scala package dma import chisel3._ import chisel3.util._ import freechips.rocketchip.config.{Parameters, Field, Config} import freechips.rocketchip.diplomacy._ import freechips.rocketchip.tilelink._ import freechips.rocketchip.devices.tilelink._ import freechi...
mysoreanoop/chipyard
generators/redefine/src/main/scala/core/Config.scala
<reponame>mysoreanoop/chipyard package redefine import freechips.rocketchip.config.{Config} // -------------- // Rocket Configs // -------------- class REDEFINEConfig extends Config( // has RocketChip configs only for now; can append our configs later! new testchipip.WithTSI ++ ...
mysoreanoop/chipyard
generators/redefine/src/test/scala/dma/DMAMain.scala
<filename>generators/redefine/src/test/scala/dma/DMAMain.scala // See README.md for license details. package dma import chisel3._ import freechips.rocketchip.config.{Parameters, Config} object DMAMain extends App { implicit val p: Parameters = new BaseConfig//Parameters.empty iotesters.Driver.execute(args, () =...
mysoreanoop/chipyard
generators/redefine/src/main/scala/core/stage/Stage.scala
<gh_stars>0 package redefine.stage import chisel3.stage.{ChiselCli, ChiselStage} import firrtl.options.PhaseManager.PhaseDependency import firrtl.options.{Phase, PreservesAll, Shell} import firrtl.stage.FirrtlCli import freechips.rocketchip.stage.RocketChipCli import freechips.rocketchip.system.RocketChipStage import...
mysoreanoop/chipyard
generators/redefine/src/main/scala/dma/SimpleMem.scala
package dma import chisel3._ import chisel3.util._ import chisel3.util.random._ import chisel3.experimental.chiselName import freechips.rocketchip.config.{Parameters, Field, Config} import freechips.rocketchip.diplomacy._ import freechips.rocketchip.tilelink._ import freechips.rocketchip.devices.tilelink._ import fre...
mysoreanoop/chipyard
generators/redefine/src/main/scala/core/stage/ChipyardAnnotations.scala
// See LICENSE for license details. // Based on Rocket Chip's stage implementation package redefine.stage import freechips.rocketchip.stage.ConfigsAnnotation import firrtl.options.{HasShellOptions, ShellOption} /** This hijacks the existing ConfigAnnotation to accept the legacy _-delimited format */ private[stage] ...
mysoreanoop/chipyard
generators/redefine/src/main/scala/dma/DMA.scala
<filename>generators/redefine/src/main/scala/dma/DMA.scala package dma import chisel3._ import chisel3.util._ import chisel3.util.random._ import chisel3.experimental.chiselName import freechips.rocketchip.config.{Parameters, Field, Config} import freechips.rocketchip.diplomacy._ import freechips.rocketchip.tilelink....
mysoreanoop/chipyard
generators/redefine/src/main/scala/dma/AddrGen.scala
package dma import chisel3._ import chisel3.util._ import chisel3.util.Reverse import freechips.rocketchip.config.{Parameters, Field, Config} class ProcBun(addrCtrlWidth: Int, addrWidth: Int) extends Bundle { val xCnt = UInt(addrCtrlWidth.W) val yCnt = UInt(addrCtrlWidth.W) val addr = UInt(addrWidth.W) ove...
mysoreanoop/chipyard
generators/redefine/src/main/scala/core/Generator.scala
package redefine import firrtl.options.{StageMain} import redefine.stage.REDEFINEStage object Generator extends StageMain(new REDEFINEStage)
sehirsig/malefiz
src/main/scala/de/htwg/se/malefiz/controller/controllerComponent/controllerStubImpl/Controller.scala
<gh_stars>1-10 package de.htwg.se.malefiz.controller.controllerComponent.controllerStubImpl import de.htwg.se.malefiz.controller.controllerComponent._ import de.htwg.se.malefiz.controller.controllerComponent.GameStatus._ import de.htwg.se.malefiz.model.cellComponent._ import de.htwg.se.malefiz.model.gameComponent...
sehirsig/malefiz
src/test/scala/de/htwg/se/malefiz/model/gameComponent/GameSpec.scala
<gh_stars>1-10 package de.htwg.se.malefiz.model.gameComponent import de.htwg.se.malefiz.model.playerComponent.Player import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpec /** Test class for the Game class. * * @author sehirsig & franzgajewski */ class GameSpec extends A...
sehirsig/malefiz
src/test/scala/de/htwg/se/malefiz/controller/controllerComponent/PlayerStateSpec.scala
package de.htwg.se.malefiz.controller.controllerComponent import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpec /** Test class for the PlayerState class. * * @author sehirsig & franzgajewski */ class PlayerStateSpec extends AnyWordSpec with Matchers { "A PlayerState" ...
sehirsig/malefiz
src/main/scala/de/htwg/se/malefiz/model/gameboardComponent/GameboardInterface.scala
<reponame>sehirsig/malefiz package de.htwg.se.malefiz.model.gameboardComponent import de.htwg.se.malefiz.model.cellComponent.Cell import de.htwg.se.malefiz.model.playerComponent.Player import scala.util.Try /** Interface for the game board implementation. * * @author sehirsig & franzgajewski */ trait Ga...