Corpus

scala.meta.testkit.Corpus
See theCorpus companion class
object Corpus

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Corpus.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def files(corpus: Corpus): Iterator[CorpusFile]

Downloads the zip file, extracts it and parses into a list of CorpusFile.

Downloads the zip file, extracts it and parses into a list of CorpusFile.

Value parameters

corpus

See Corpus.

Attributes

Returns

An iterator of CorpusFile. Use Iterator.take to limit the size of your experiment and Generator.toBuffer.par to run analysis using all available cores on the machine.

Concrete fields

Corpus of ~3 million lines of code, 22 mb compressed. The list of repos is originally taken from fastparse: https://github.com/lihaoyi/fastparse/blob/6cf2cb23cd5f628c4e956d5846228ee4ca988f5c/scalaparse/jvm/src/test/scala/scalaparse/ProjectTests.scala#L63-L115

Corpus of ~3 million lines of code, 22 mb compressed. The list of repos is originally taken from fastparse: https://github.com/lihaoyi/fastparse/blob/6cf2cb23cd5f628c4e956d5846228ee4ca988f5c/scalaparse/jvm/src/test/scala/scalaparse/ProjectTests.scala#L63-L115

Attributes