Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: ArrowInvalid
Message: JSON parse error: Missing a closing quotation mark in string. in row 715
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 145, in _generate_tables
dataset = json.load(f)
File "/usr/local/lib/python3.9/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 2211)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1995, in _prepare_split_single
for _, table in generator:
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 148, in _generate_tables
raise e
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 122, in _generate_tables
pa_table = paj.read_json(
File "pyarrow/_json.pyx", line 308, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: JSON parse error: Missing a closing quotation mark in string. in row 715
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1529, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1154, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2038, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
text
string | meta
dict |
|---|---|
<?php
namespace Magento\Bundle\Model;
class Link extends \Magento\Framework\Model\AbstractExtensibleModel implements
\Magento\Bundle\Api\Data\LinkInterface
{
/**
* {@inheritdoc}
*/
public function getSku()
{
return $this->getData('sku');
}
/**
* {@inheritdoc}
*/
public function getOptionId()
{
return $this->getData('option_id');
}
/**
* {@inheritdoc}
*/
public function getQty()
{
return $this->getData('qty');
}
/**
* {@inheritdoc}
*/
public function getPosition()
{
return $this->getData('position');
}
/**
* {@inheritdoc}
*/
public function getIsDefined()
{
return $this->getData('is_defined');
}
/**
* {@inheritdoc}
*/
public function getIsDefault()
{
return $this->getData('is_default');
}
/**
* {@inheritdoc}
*/
public function getPrice()
{
return $this->getData('price');
}
/**
* {@inheritdoc}
*/
public function getPriceType()
{
return $this->getData('price_type');
}
/**
* {@inheritdoc}
*/
public function getCanChangeQuantity()
{
return $this->getData('can_change_quantity');
}
}
|
{
"content_hash": "9d245476eed859022f4985c7e803bb3a",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 78,
"avg_line_length": 16.60759493670886,
"alnum_prop": 0.5114329268292683,
"repo_name": "webadvancedservicescom/magento",
"id": "cfe1219e56b362ce72e64840479246da298811fb",
"size": "1405",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/code/Magento/Bundle/Model/Link.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ApacheConf",
"bytes": "16380"
},
{
"name": "CSS",
"bytes": "2592299"
},
{
"name": "HTML",
"bytes": "9192193"
},
{
"name": "JavaScript",
"bytes": "2874762"
},
{
"name": "PHP",
"bytes": "41399372"
},
{
"name": "Shell",
"bytes": "3084"
},
{
"name": "VCL",
"bytes": "3547"
},
{
"name": "XSLT",
"bytes": "19817"
}
]
}
|
package is.hail.io.bgen
import is.hail.annotations.Region
import is.hail.asm4s._
import is.hail.backend.{BroadcastValue, ExecuteContext}
import is.hail.expr.ir.{EmitCode, EmitFunctionBuilder, IEmitCode, ParamType, TableReader}
import is.hail.io.fs.FS
import is.hail.io.index.IndexReaderBuilder
import is.hail.io.{ByteArrayReader, HadoopFSDataBinaryReader}
import is.hail.types._
import is.hail.types.physical._
import is.hail.types.physical.stypes.concrete.{SCanonicalCallValue, SStackStruct, SStringPointer}
import is.hail.types.physical.stypes.interfaces._
import is.hail.types.virtual.{TInterval, Type}
import is.hail.utils._
import is.hail.variant.{Call2, ReferenceGenome}
import org.apache.spark.Partition
trait BgenPartition extends Partition {
def path: String
def compressed: Boolean
def skipInvalidLoci: Boolean
def contigRecoding: Map[String, String]
def fsBc: BroadcastValue[FS]
def makeInputStream: HadoopFSDataBinaryReader = {
new HadoopFSDataBinaryReader(fsBc.value.openNoCompression(path))
}
def recodeContig(contig: String): String = contigRecoding.getOrElse(contig, contig)
}
private case class LoadBgenPartition(
path: String,
indexPath: String,
filterPartition: Partition,
compressed: Boolean,
skipInvalidLoci: Boolean,
contigRecoding: Map[String, String],
partitionIndex: Int,
startIndex: Long,
endIndex: Long,
fsBc: BroadcastValue[FS]
) extends BgenPartition {
assert(startIndex <= endIndex)
def index = partitionIndex
}
object BgenRDDPartitions extends Logging {
def checkFilesDisjoint(fs: FS, fileMetadata: Seq[BgenFileMetadata], keyType: Type): Array[Interval] = {
assert(fileMetadata.nonEmpty)
val pord = keyType.ordering
val bounds = fileMetadata.map(md => (md.path, md.rangeBounds))
val overlappingBounds = new BoxedArrayBuilder[(String, Interval, String, Interval)]
var i = 0
while (i < bounds.length) {
var j = 0
while (j < i) {
val b1 = bounds(i)
val b2 = bounds(j)
if (!b1._2.isDisjointFrom(pord, b2._2))
overlappingBounds += ((b1._1, b1._2, b2._1, b2._2))
j += 1
}
i += 1
}
if (!overlappingBounds.isEmpty)
fatal(
s"""Each BGEN file must contain a region of the genome disjoint from other files. Found the following overlapping files:
| ${
overlappingBounds.result().map { case (f1, i1, f2, i2) =>
s"file1: $f1\trangeBounds1: $i1\tfile2: $f2\trangeBounds2: $i2"
}.mkString("\n ")
})""".stripMargin)
bounds.map(_._2).toArray
}
def apply(
ctx: ExecuteContext,
rg: Option[ReferenceGenome],
files: Seq[BgenFileMetadata],
blockSizeInMB: Option[Int],
nPartitions: Option[Int],
keyType: Type
): (Array[Partition], Array[Interval]) = {
val fs = ctx.fs
val fsBc = fs.broadcast
val fileRangeBounds = checkFilesDisjoint(fs, files, keyType)
val intervalOrdering = TInterval(keyType).ordering
val sortedFiles = files.zip(fileRangeBounds)
.sortWith { case ((_, i1), (_, i2)) => intervalOrdering.lt(i1, i2) }
.map(_._1)
val totalSize = sortedFiles.map(_.header.fileByteSize).sum
val fileNPartitions = (blockSizeInMB, nPartitions) match {
case (Some(blockSizeInMB), _) =>
val blockSizeInB = blockSizeInMB * 1024 * 1024
sortedFiles.map { md =>
val size = md.header.fileByteSize
((size + blockSizeInB - 1) / blockSizeInB).toInt
}
case (_, Some(nParts)) =>
sortedFiles.map { md =>
val size = md.header.fileByteSize
((size * nParts + totalSize - 1) / totalSize).toInt
}
case (None, None) => fatal(s"Must specify either of 'blockSizeInMB' or 'nPartitions'.")
}
val nonEmptyFilesAfterFilter = sortedFiles.filter(_.nVariants > 0)
val indexReaderBuilder = {
val (leafCodec, internalNodeCodec) = BgenSettings.indexCodecSpecs(rg)
val (leafPType: PStruct, leafDec) = leafCodec.buildDecoder(ctx, leafCodec.encodedVirtualType)
val (intPType: PStruct, intDec) = internalNodeCodec.buildDecoder(ctx, internalNodeCodec.encodedVirtualType)
IndexReaderBuilder.withDecoders(leafDec, intDec, BgenSettings.indexKeyType(rg), BgenSettings.indexAnnotationType, leafPType, intPType)
}
if (nonEmptyFilesAfterFilter.isEmpty) {
(Array.empty, Array.empty)
} else {
val partitions = new BoxedArrayBuilder[Partition]()
val rangeBounds = new BoxedArrayBuilder[Interval]()
var fileIndex = 0
while (fileIndex < nonEmptyFilesAfterFilter.length) {
val file = nonEmptyFilesAfterFilter(fileIndex)
// TODO Not sure I should be using ctx's pool here.
using(indexReaderBuilder(ctx.theHailClassLoader, fs, file.indexPath, 8, ctx.r.pool)) { index =>
val nPartitions = math.min(fileNPartitions(fileIndex), file.nVariants.toInt)
val partNVariants = partition(file.nVariants.toInt, nPartitions)
val partFirstVariantIndex = partNVariants.scan(0)(_ + _).init
var i = 0
while (i < nPartitions) {
val firstVariantIndex = partFirstVariantIndex(i)
val lastVariantIndex = firstVariantIndex + partNVariants(i)
val partitionIndex = partitions.length
partitions += LoadBgenPartition(
file.path,
file.indexPath,
filterPartition = null,
file.header.compressed,
file.skipInvalidLoci,
file.contigRecoding,
partitionIndex,
firstVariantIndex,
lastVariantIndex,
fsBc
)
rangeBounds += Interval(
index.queryByIndex(firstVariantIndex).key,
index.queryByIndex(lastVariantIndex - 1).key,
includesStart = true,
includesEnd = true) // this must be true -- otherwise boundaries with duplicates will have the wrong range bounds
i += 1
}
}
fileIndex += 1
}
(partitions.result(), rangeBounds.result())
}
}
}
object CompileDecoder {
def apply(
ctx: ExecuteContext,
settings: BgenSettings
): (HailClassLoader, FS, Int, Region) => AsmFunction4[Region, BgenPartition, HadoopFSDataBinaryReader, BgenSettings, Long] = {
val fb = EmitFunctionBuilder[Region, BgenPartition, HadoopFSDataBinaryReader, BgenSettings, Long](ctx, "bgen_rdd_decoder")
val mb = fb.apply_method
val rowType = settings.rowPType
mb.emitWithBuilder[Long] { cb =>
val region = mb.getCodeParam[Region](1)
val cp = mb.getCodeParam[BgenPartition](2)
val cbfis = mb.getCodeParam[HadoopFSDataBinaryReader](3)
val csettings = mb.getCodeParam[BgenSettings](4)
val offset = cb.newLocal[Long]("offset")
val fileIdx = cb.newLocal[Int]("fileIdx")
val varid = cb.newLocal[String]("varid")
val rsid = cb.newLocal[String]("rsid")
val contig = cb.newLocal[String]("contig")
val contigRecoded = cb.newLocal[String]("contigRecoded")
val position = cb.newLocal[Int]("position")
val nAlleles = cb.newLocal[Int]("nAlleles")
val i = cb.newLocal[Int]("i")
val dataSize = cb.newLocal[Int]("dataSize")
val invalidLocus = cb.newLocal[Boolean]("invalidLocus")
val data = cb.newLocal[Array[Byte]]("data")
val uncompressedSize = cb.newLocal[Int]("uncompressedSize")
val input = cb.newLocal[Array[Byte]]("input")
val reader = cb.newLocal[ByteArrayReader]("reader")
val nRow = cb.newLocal[Int]("nRow")
val nAlleles2 = cb.newLocal[Int]("nAlleles2")
val minPloidy = cb.newLocal[Int]("minPloidy")
val maxPloidy = cb.newLocal[Int]("maxPloidy")
val longPloidy = cb.newLocal[Long]("longPloidy")
val ploidy = cb.newLocal[Int]("ploidy")
val phase = cb.newLocal[Int]("phase")
val nBitsPerProb = cb.newLocal[Int]("nBitsPerProb")
val nExpectedBytesProbs = cb.newLocal[Int]("nExpectedBytesProbs")
val c0 = mb.genFieldThisRef[Int]("c0")
val c1 = mb.genFieldThisRef[Int]("c1")
val c2 = mb.genFieldThisRef[Int]("c2")
cb.assign(c0, Call2.fromUnphasedDiploidGtIndex(0))
cb.assign(c1, Call2.fromUnphasedDiploidGtIndex(1))
cb.assign(c2, Call2.fromUnphasedDiploidGtIndex(2))
cb.assign(offset, cbfis.invoke[Long]("getPosition"))
cb.assign(fileIdx, cp.invoke[Int]("index"))
if (settings.hasField("varid"))
cb.assign(varid, cbfis.invoke[Int, String]("readLengthAndString", 2))
else
cb += cbfis.invoke[Int, Unit]("readLengthAndSkipString", 2)
if (settings.hasField("rsid"))
cb.assign(rsid, cbfis.invoke[Int, String]("readLengthAndString", 2))
else
cb += cbfis.invoke[Int, Unit]("readLengthAndSkipString", 2)
cb.assign(contig, cbfis.invoke[Int, String]("readLengthAndString", 2))
cb.assign(contigRecoded, cp.invoke[String, String]("recodeContig", contig))
cb.assign(position, cbfis.invoke[Int]("readInt"))
cb.ifx(cp.invoke[Boolean]("skipInvalidLoci"),
{
if (settings.rgBc.nonEmpty) {
cb.assign(invalidLocus, !csettings.invoke[Option[ReferenceGenome]]("rg")
.invoke[ReferenceGenome]("get")
.invoke[String, Int, Boolean]("isValidLocus", contigRecoded, position))
}
cb.ifx(invalidLocus,
{
cb.assign(nAlleles, cbfis.invoke[Int]("readShort"))
cb.assign(i, 0)
cb.whileLoop(i < nAlleles,
{
cb += cbfis.invoke[Int, Unit]("readLengthAndSkipString", 4)
cb.assign(i, i + 1)
})
cb.assign(dataSize, cbfis.invoke[Int]("readInt"))
cb += Code.toUnit(cbfis.invoke[Long, Long]("skipBytes", dataSize.toL))
cb += Code._return(-1L)
}
)
},
{
if (settings.rgBc.nonEmpty)
cb += csettings.invoke[Option[ReferenceGenome]]("rg")
.invoke[ReferenceGenome]("get")
.invoke[String, Int, Unit]("checkLocus", contigRecoded, position)
})
val structFieldCodes = new BoxedArrayBuilder[EmitCode]()
if (settings.hasField("locus")) {
// double-allocates the locus struct, but this is a very minor performance regression
// and will be removed soon
val pc = settings.rowPType.field("locus").typ match {
case t: PCanonicalLocus =>
t.constructFromPositionAndString(cb, region, contigRecoded, position)
case t: PCanonicalStruct =>
val strT = t.field("contig").typ.asInstanceOf[PCanonicalString]
val contigPC = strT.sType.constructFromString(cb, region, contigRecoded)
t.constructFromFields(cb, region,
FastIndexedSeq(EmitCode.present(cb.emb, contigPC), EmitCode.present(cb.emb, primitive(position))),
deepCopy = false)
}
structFieldCodes += EmitCode.present(cb.emb, pc)
}
cb.assign(nAlleles, cbfis.invoke[Int]("readShort"))
cb.ifx(nAlleles.cne(2),
cb._fatal("Only biallelic variants supported, found variant with ", nAlleles.toS, " alleles: ",
contigRecoded, ":", position.toS))
if (settings.hasField("alleles")) {
val allelesType = settings.rowPType.field("alleles").typ.asInstanceOf[PCanonicalArray]
val alleleStringType = allelesType.elementType.asInstanceOf[PCanonicalString]
val (pushElement, finish) = allelesType.constructFromFunctions(cb, region, nAlleles, deepCopy = false)
cb.whileLoop(i < nAlleles, {
val st = SStringPointer(alleleStringType)
val strCode = st.constructFromString(cb, region, cbfis.invoke[Int, String]("readLengthAndString", 4))
pushElement(cb, IEmitCode.present(cb, strCode))
cb.assign(i, i + 1)
})
val allelesArr = finish(cb)
structFieldCodes += EmitCode.present(cb.emb, allelesArr)
}
if (settings.hasField("rsid"))
structFieldCodes += EmitCode.present(cb.emb, SStringPointer(PCanonicalString(false)).constructFromString(cb, region, rsid))
if (settings.hasField("varid"))
structFieldCodes += EmitCode.present(cb.emb, SStringPointer(PCanonicalString(false)).constructFromString(cb, region, varid))
if (settings.hasField("offset"))
structFieldCodes += EmitCode.present(cb.emb, primitive(offset))
if (settings.hasField("file_idx"))
structFieldCodes += EmitCode.present(cb.emb, primitive(fileIdx))
cb.assign(dataSize, cbfis.invoke[Int]("readInt"))
settings.entryType match {
case None =>
cb += Code.toUnit(cbfis.invoke[Long, Long]("skipBytes", dataSize.toL))
case Some(t) =>
val entriesArrayType = settings.rowPType.field(MatrixType.entriesIdentifier).typ.asInstanceOf[PCanonicalArray]
val entryType = entriesArrayType.elementType.asInstanceOf[PCanonicalStruct]
val includeGT = t.hasField("GT")
val includeGP = t.hasField("GP")
val includeDosage = t.hasField("dosage")
val alreadyMemoized = mb.genFieldThisRef[Boolean]("alreadyMemoized")
val memoizedEntryData = mb.genFieldThisRef[Long]("memoizedEntryData")
val memoTyp = PCanonicalArray(entryType.setRequired(true), required = true)
val memoMB = mb.genEmitMethod("memoizeEntries", FastIndexedSeq[ParamType](), UnitInfo)
memoMB.voidWithBuilder { cb =>
val partRegion = mb.partitionRegion
val LnoOp = CodeLabel()
cb.ifx(alreadyMemoized, cb.goto(LnoOp))
val (push, finish) = memoTyp.constructFromFunctions(cb, partRegion, 1 << 16, false)
val d0 = cb.newLocal[Int]("memoize_entries_d0", 0)
cb.whileLoop(d0 < 256, {
val d1 = cb.newLocal[Int]("memoize_entries_d1", 0)
cb.whileLoop(d1 < 256, {
val d2 = cb.newLocal[Int]("memoize_entries_d2", const(255) - d0 - d1)
val entryFieldCodes = new BoxedArrayBuilder[EmitCode]()
if (includeGT)
entryFieldCodes += EmitCode.fromI(cb.emb) { cb =>
val Lmissing = CodeLabel()
val Lpresent = CodeLabel()
val value = cb.newLocal[Int]("bgen_gt_value")
cb.ifx(d0 > d1,
cb.ifx(d0 > d2,
{
cb.assign(value, c0)
cb.goto(Lpresent)
},
cb.ifx(d2 > d0,
{
cb.assign(value, c2)
cb.goto(Lpresent)
},
// d0 == d2
cb.goto(Lmissing))),
// d0 <= d1
cb.ifx(d2 > d1,
{
cb.assign(value, c2)
cb.goto(Lpresent)
},
// d2 <= d1
cb.ifx(d1.ceq(d0) || d1.ceq(d2),
cb.goto(Lmissing),
{
cb.assign(value, c1)
cb.goto(Lpresent)
})))
IEmitCode(Lmissing, Lpresent, new SCanonicalCallValue(value), false)
}
if (includeGP)
entryFieldCodes += EmitCode.fromI(cb.emb) { cb =>
val divisor = cb.newLocal[Double]("divisor", 255.0)
val gpType = entryType.field("GP").typ.asInstanceOf[PCanonicalArray]
val (pushElement, finish) = gpType.constructFromFunctions(cb, partRegion, 3, deepCopy = false)
pushElement(cb, IEmitCode.present(cb, primitive(cb.memoize(d0.toD / divisor))))
pushElement(cb, IEmitCode.present(cb, primitive(cb.memoize(d1.toD / divisor))))
pushElement(cb, IEmitCode.present(cb, primitive(cb.memoize(d2.toD / divisor))))
IEmitCode.present(cb, finish(cb))
}
if (includeDosage)
entryFieldCodes += EmitCode.fromI(cb.emb) { cb =>
IEmitCode.present(cb, primitive(cb.memoize((d1 + (d2 << 1)).toD / 255.0)))
}
push(cb, IEmitCode.present(cb,
SStackStruct.constructFromArgs(cb, partRegion, entryType.virtualType, entryFieldCodes.result(): _*)))
cb.assign(d1, d1 + 1)
})
cb.assign(d0, d0 + 1)
})
cb.assign(memoizedEntryData, finish(cb).a)
cb.assign(alreadyMemoized, true)
cb.define(LnoOp)
}
cb.ifx(cp.invoke[Boolean]("compressed"), {
cb.assign(uncompressedSize, cbfis.invoke[Int]("readInt"))
cb.assign(input, cbfis.invoke[Int, Array[Byte]]("readBytes", dataSize - 4))
cb.assign(data, Code.invokeScalaObject2[Array[Byte], Int, Array[Byte]](
BgenRDD.getClass, "decompress", input, uncompressedSize))
}, {
cb.assign(data, cbfis.invoke[Int, Array[Byte]]("readBytes", dataSize))
})
cb.assign(reader, Code.newInstance[ByteArrayReader, Array[Byte]](data))
cb.assign(nRow, reader.invoke[Int]("readInt"))
cb.ifx(nRow.cne(settings.nSamples), cb._fatal(
const("Row nSamples is not equal to header nSamples: ")
.concat(nRow.toS)
.concat(", ")
.concat(settings.nSamples.toString)
))
cb.assign(nAlleles2, reader.invoke[Int]("readShort"))
cb.ifx(nAlleles.cne(nAlleles2),
cb._fatal(const(
"""Value for 'nAlleles' in genotype probability data storage is
|not equal to value in variant identifying data. Expected""".stripMargin)
.concat(nAlleles.toS)
.concat(" but found ")
.concat(nAlleles2.toS)
.concat(" at ")
.concat(contig)
.concat(":")
.concat(position.toS)
.concat(".")))
cb.assign(minPloidy, reader.invoke[Int]("read"))
cb.assign(maxPloidy, reader.invoke[Int]("read"))
cb.ifx(minPloidy.cne(2) || maxPloidy.cne(2),
cb._fatal(const("Hail only supports diploid genotypes. Found min ploidy '")
.concat(minPloidy.toS)
.concat("' and max ploidy '")
.concat(maxPloidy.toS)
.concat("'.")))
cb.assign(i, 0)
cb.whileLoop(i < settings.nSamples, {
cb.assign(ploidy, reader.invoke[Int]("read"))
cb.ifx((ploidy & 0x3f).cne(2),
cb._fatal(const("Ploidy value must equal to 2. Found ")
.concat(ploidy.toS)
.concat(".")))
cb.assign(i, i + 1)
})
cb.assign(phase, reader.invoke[Int]("read"))
cb.ifx(phase.cne(0) && (phase.cne(1)),
cb._fatal(const("Phase value must be 0 or 1. Found ")
.concat(phase.toS)
.concat(".")))
cb.ifx(phase.ceq(1), cb._fatal("Hail does not support phased genotypes in 'import_bgen'."))
cb.assign(nBitsPerProb, reader.invoke[Int]("read"))
cb.ifx(nBitsPerProb < 1 || nBitsPerProb > 32,
cb._fatal(const("nBits value must be between 1 and 32 inclusive. Found ")
.concat(nBitsPerProb.toS)
.concat(".")))
cb.ifx(nBitsPerProb.cne(8),
cb._fatal(const("Hail only supports 8-bit probabilities, found ")
.concat(nBitsPerProb.toS)
.concat(".")))
cb.assign(nExpectedBytesProbs, settings.nSamples * 2)
cb.ifx(reader.invoke[Int]("length").cne(nExpectedBytesProbs + settings.nSamples + 10),
cb._fatal(const("Number of uncompressed bytes '")
.concat(reader.invoke[Int]("length").toS)
.concat("' does not match the expected size '")
.concat(nExpectedBytesProbs.toS)
.concat("'.")))
cb.invokeVoid(memoMB)
val (pushElement, finish) = entriesArrayType.constructFromFunctions(cb, region, settings.nSamples, deepCopy = false)
cb.assign(i, 0)
cb.whileLoop(i < settings.nSamples, {
val Lmissing = CodeLabel()
val Lpresent = CodeLabel()
cb.ifx((data(i + 8) & 0x80).cne(0), cb.goto(Lmissing))
val dataOffset = cb.newLocal[Int]("bgen_add_entries_offset", const(settings.nSamples + 10) + i * 2)
val d0 = data(dataOffset) & 0xff
val d1 = data(dataOffset + 1) & 0xff
val pc = entryType.loadCheapSCode(cb, memoTyp.loadElement(memoizedEntryData, settings.nSamples, (d0 << 8) | d1))
cb.goto(Lpresent)
val iec = IEmitCode(Lmissing, Lpresent, pc, false)
pushElement(cb, iec)
cb.assign(i, i + 1)
})
val pc = finish(cb)
structFieldCodes += EmitCode.fromI(cb.emb)(cb => IEmitCode.present(cb, pc))
}
if (settings.hasField(TableReader.uidFieldName))
structFieldCodes += EmitCode.present(cb.emb, primitive(offset))
rowType.constructFromFields(cb, region, structFieldCodes.result(), deepCopy = false).a
}
fb.resultWithIndex()
}
}
|
{
"content_hash": "d38e882a34911ef7eeec595657d5d759",
"timestamp": "",
"source": "github",
"line_count": 542,
"max_line_length": 140,
"avg_line_length": 39.928044280442805,
"alnum_prop": 0.5950741647798161,
"repo_name": "hail-is/hail",
"id": "1dbb9b4ed87db9713300461fe3d9b04365455988",
"size": "21641",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "hail/src/main/scala/is/hail/io/bgen/BgenRDDPartitions.scala",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "7729"
},
{
"name": "C",
"bytes": "779"
},
{
"name": "C++",
"bytes": "171899"
},
{
"name": "CMake",
"bytes": "3045"
},
{
"name": "CSS",
"bytes": "666"
},
{
"name": "Dockerfile",
"bytes": "10056"
},
{
"name": "Emacs Lisp",
"bytes": "377"
},
{
"name": "HCL",
"bytes": "54923"
},
{
"name": "HTML",
"bytes": "155946"
},
{
"name": "Java",
"bytes": "38401"
},
{
"name": "JavaScript",
"bytes": "877"
},
{
"name": "Jupyter Notebook",
"bytes": "305748"
},
{
"name": "MLIR",
"bytes": "20"
},
{
"name": "Makefile",
"bytes": "61284"
},
{
"name": "Python",
"bytes": "5635857"
},
{
"name": "R",
"bytes": "3038"
},
{
"name": "SCSS",
"bytes": "33487"
},
{
"name": "Scala",
"bytes": "5050997"
},
{
"name": "Shell",
"bytes": "75539"
},
{
"name": "XSLT",
"bytes": "5748"
}
]
}
|
package org.neo4j.kernel.impl.traversal;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.TraversalPosition;
import org.neo4j.graphdb.Traverser;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Iterator;
/**
* This class is used for traversers that has been sorted. A normal traverser
* will return a <CODE>SortedTraverser</CODE> when the <CODE>sort</CODE>
* method is invoked. Since a sorting operation requires one to go throu all
* elements that should be sorted the <CODE>SortedTraverser</CODE> just
* encapsulates an iterator to the sorted list of nodes.
*/
class SortedTraverser implements Traverser
{
private Iterator<Node> nodesIterator = null;
/**
* Creates a sorted traverser from the sorted list of <CODE>nodes</CODE>
*
* @param nodes
* the list of sorted nodes
*/
SortedTraverser( List<Node> nodes )
{
this.nodesIterator = nodes.iterator();
}
// javadoc: see java.util.Iterator
public Object next()
{
return nextNode();
}
// javadoc: see java.util.Iterator
public boolean hasNext()
{
return nodesIterator.hasNext();
}
// javadoc: see java.util.Iterator
public void remove()
{
throw new UnsupportedOperationException();
}
// javadoc: see Traverser
public Node nextNode()
{
return nodesIterator.next();
}
// javadoc: see Traverser
public Collection<Node> getAllNodes()
{
// Temp storage
List<Node> tempList = new ArrayList<Node>();
// Traverse until the end, my beautiful friend
while ( this.hasNext() )
{
tempList.add( this.nextNode() );
}
// Return nodes
return tempList;
}
// javadoc: see Traverser
public Traverser sort( NodeSortInfo<Node> nsi )
{
ArrayList<Node> tempList = new ArrayList<Node>();
// Traverse and get all remaining nodes
while ( this.hasNext() )
{
tempList.add( this.nextNode() );
}
Collections.sort( tempList, nsi );
return new SortedTraverser( tempList );
}
public TraversalPosition currentPosition()
{
// TODO Auto-generated method stub
return null;
}
public Iterator<Node> iterator()
{
// TODO Auto-generated method stub
return null;
}
}
|
{
"content_hash": "4dc099a5e51dcb79c7e16a8f8ccd735a",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 77,
"avg_line_length": 24.245098039215687,
"alnum_prop": 0.6271734735139507,
"repo_name": "alexmsmartins/GraphDHT",
"id": "c2aca16145b479de64fc8572dd0445f9c513d29d",
"size": "3295",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "neo4j/kernel-1.0/src/main/java/org/neo4j/kernel/impl/traversal/SortedTraverser.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "2669323"
},
{
"name": "Shell",
"bytes": "1901"
}
]
}
|
module Shop
class ApplicationController < ActionController::Base
end
end
|
{
"content_hash": "cc12f31f5e621889d8a210854928985f",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 54,
"avg_line_length": 19.25,
"alnum_prop": 0.8051948051948052,
"repo_name": "wangfuhai2013/shop-rails",
"id": "2ca812dadbcff1d4ac0f5505f54babcce46fac45",
"size": "77",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/controllers/shop/application_controller.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3606"
},
{
"name": "HTML",
"bytes": "114276"
},
{
"name": "JavaScript",
"bytes": "2998"
},
{
"name": "Ruby",
"bytes": "367847"
}
]
}
|
<?php
/*\
| ------------------------------------------------------
| @file : MissingModelException.php
| @author : Fabien Beaujean
| @description : overriding of php exceptions
| @version : 3.0 Bêta
| ------------------------------------------------------
\*/
namespace Gcs\Framework\Core\Exception;
/**
* Class MissingModelException
* @package Gcs\Framework\Core\Exception
*/
class MissingModelException extends Exception {
public function getType() {
return 'MissingModelException';
}
}
|
{
"content_hash": "c5f4590976e38b9e7545f56faa81ef02",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 57,
"avg_line_length": 23.454545454545453,
"alnum_prop": 0.5465116279069767,
"repo_name": "fabsgc/framework",
"id": "011d0694406f9fa5a1d8f13f24c4a40511d7fb73",
"size": "517",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Core/Exception/MissingModelException.php",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "561548"
}
]
}
|
package programmer_8051.client;
import java.io.IOException;
public class Programmer_8051 {
public static void main(String[] args) {
Programmer_8051_Terminal test = new Programmer_8051_Terminal();
test.exec();
}
}
|
{
"content_hash": "10444b938bad49e03db20e6729aa16a3",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 65,
"avg_line_length": 18.833333333333332,
"alnum_prop": 0.7256637168141593,
"repo_name": "ma-anjum95/Programmer-8051",
"id": "f998ad44332fb8a77ea6d416e341778d6b95992b",
"size": "226",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Programmer_8051_Client/src/programmer_8051/client/Programmer_8051.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Arduino",
"bytes": "4154"
},
{
"name": "C++",
"bytes": "15354"
},
{
"name": "Java",
"bytes": "15321"
}
]
}
|
<Type Name="ITemplatePage" FullName="Manos.Templates.ITemplatePage">
<TypeSignature Language="C#" Value="public interface ITemplatePage" />
<AssemblyInfo>
<AssemblyName>Manos</AssemblyName>
<AssemblyVersion>0.0.4.0</AssemblyVersion>
<AssemblyVersion>0.1.0.0</AssemblyVersion>
<AssemblyVersion>0.1.1.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="Render">
<MemberSignature Language="C#" Value="public void Render (Manos.IManosContext context, System.IO.Stream stream, object the_arg);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.4.0</AssemblyVersion>
<AssemblyVersion>0.1.0.0</AssemblyVersion>
<AssemblyVersion>0.1.1.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="context" Type="Manos.IManosContext" />
<Parameter Name="stream" Type="System.IO.Stream" />
<Parameter Name="the_arg" Type="System.Object" />
</Parameters>
<Docs>
<param name="context">To be added.</param>
<param name="stream">To be added.</param>
<param name="the_arg">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>
|
{
"content_hash": "9270a4753d8c2901c308af0879bca65d",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 138,
"avg_line_length": 37.1,
"alnum_prop": 0.6455525606469003,
"repo_name": "jacksonh/manos",
"id": "9519989d6a0b6409deb7451aeb72e844ecb7a1dc",
"size": "1484",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "docs/api/en/Manos.Templates/ITemplatePage.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "84"
},
{
"name": "C",
"bytes": "277639"
},
{
"name": "C#",
"bytes": "860154"
},
{
"name": "C++",
"bytes": "21096"
},
{
"name": "CSS",
"bytes": "7697"
},
{
"name": "Groff",
"bytes": "406198"
},
{
"name": "HTML",
"bytes": "3395"
},
{
"name": "JavaScript",
"bytes": "13637"
},
{
"name": "Makefile",
"bytes": "1599"
},
{
"name": "Objective-C",
"bytes": "403"
},
{
"name": "Perl",
"bytes": "214405"
},
{
"name": "Ruby",
"bytes": "673"
},
{
"name": "Shell",
"bytes": "21533"
}
]
}
|
"""Support for Verisure binary sensors."""
from __future__ import annotations
from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass,
BinarySensorEntity,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import DeviceInfo, Entity, EntityCategory
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from .const import CONF_GIID, DOMAIN
from .coordinator import VerisureDataUpdateCoordinator
async def async_setup_entry(
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: AddEntitiesCallback,
) -> None:
"""Set up Verisure binary sensors based on a config entry."""
coordinator: VerisureDataUpdateCoordinator = hass.data[DOMAIN][entry.entry_id]
sensors: list[Entity] = [VerisureEthernetStatus(coordinator)]
sensors.extend(
VerisureDoorWindowSensor(coordinator, serial_number)
for serial_number in coordinator.data["door_window"]
)
async_add_entities(sensors)
class VerisureDoorWindowSensor(
CoordinatorEntity[VerisureDataUpdateCoordinator], BinarySensorEntity
):
"""Representation of a Verisure door window sensor."""
_attr_device_class = BinarySensorDeviceClass.OPENING
_attr_has_entity_name = True
def __init__(
self, coordinator: VerisureDataUpdateCoordinator, serial_number: str
) -> None:
"""Initialize the Verisure door window sensor."""
super().__init__(coordinator)
self._attr_unique_id = f"{serial_number}_door_window"
self.serial_number = serial_number
@property
def device_info(self) -> DeviceInfo:
"""Return device information about this entity."""
area = self.coordinator.data["door_window"][self.serial_number]["area"]
return DeviceInfo(
name=area,
suggested_area=area,
manufacturer="Verisure",
model="Shock Sensor Detector",
identifiers={(DOMAIN, self.serial_number)},
via_device=(DOMAIN, self.coordinator.entry.data[CONF_GIID]),
configuration_url="https://mypages.verisure.com",
)
@property
def is_on(self) -> bool:
"""Return the state of the sensor."""
return (
self.coordinator.data["door_window"][self.serial_number]["state"] == "OPEN"
)
@property
def available(self) -> bool:
"""Return True if entity is available."""
return (
super().available
and self.serial_number in self.coordinator.data["door_window"]
)
class VerisureEthernetStatus(
CoordinatorEntity[VerisureDataUpdateCoordinator], BinarySensorEntity
):
"""Representation of a Verisure VBOX internet status."""
_attr_device_class = BinarySensorDeviceClass.CONNECTIVITY
_attr_entity_category = EntityCategory.DIAGNOSTIC
_attr_has_entity_name = True
_attr_name = "Ethernet status"
@property
def unique_id(self) -> str:
"""Return the unique ID for this entity."""
return f"{self.coordinator.entry.data[CONF_GIID]}_ethernet"
@property
def device_info(self) -> DeviceInfo:
"""Return device information about this entity."""
return DeviceInfo(
name="Verisure Alarm",
manufacturer="Verisure",
model="VBox",
identifiers={(DOMAIN, self.coordinator.entry.data[CONF_GIID])},
configuration_url="https://mypages.verisure.com",
)
@property
def is_on(self) -> bool:
"""Return the state of the sensor."""
return self.coordinator.data["ethernet"]
@property
def available(self) -> bool:
"""Return True if entity is available."""
return super().available and self.coordinator.data["ethernet"] is not None
|
{
"content_hash": "dac136abb65fcde64ca650ddb68fb40b",
"timestamp": "",
"source": "github",
"line_count": 116,
"max_line_length": 87,
"avg_line_length": 33.827586206896555,
"alnum_prop": 0.6715086646279307,
"repo_name": "nkgilley/home-assistant",
"id": "45e29cfa5f1e731dd0025252314d06991643603e",
"size": "3924",
"binary": false,
"copies": "3",
"ref": "refs/heads/dev",
"path": "homeassistant/components/verisure/binary_sensor.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "2963"
},
{
"name": "PLSQL",
"bytes": "840"
},
{
"name": "Python",
"bytes": "51597279"
},
{
"name": "Shell",
"bytes": "6252"
}
]
}
|
<?php
class WPML_ST_MO_Scan_Db_Table_List {
/** @var wpdb */
private $wpdb;
/**
* @param wpdb $wpdb
*/
public function __construct( wpdb $wpdb ) {
$this->wpdb = $wpdb;
}
/**
* @return array
*/
public function get_tables() {
$tables = $this->wpdb->get_col( "SHOW TABLES LIKE '{$this->wpdb->prefix}%'" );
if ( is_multisite() ) {
if ( is_main_site() ) {
$tables = array_values( array_filter( $tables, array( $this, 'is_table_from_main_site' ) ) );
} else {
$tables = array_merge( $tables, $this->get_global_tables() );
}
}
return $tables;
}
private function is_table_from_main_site( $table ) {
$pattern = "/^{$this->wpdb->prefix}\d+_.*/";
return 0 === preg_match( $pattern, $table );
}
private function get_global_tables() {
$global_tables = $this->wpdb->global_tables;
foreach ( $this->users_tables() as $original => $custom_table ) {
if ( $original !== $custom_table ) {
$pos = array_search( $original, $global_tables, true );
if ( false !== $pos ) {
$global_tables[ $pos ] = $custom_table;
}
}
}
return array_map( array( $this, 'prepend_base_prefix' ), $global_tables );
}
private function prepend_base_prefix( $table ) {
return $this->wpdb->base_prefix . $table;
}
/**
* @return array
*/
private function users_tables() {
return array(
'users' => $this->get_custom_users_table(),
'usermeta' => $this->get_custom_usermeta_table(),
);
}
protected function get_custom_users_table() {
return defined( 'CUSTOM_USER_TABLE' ) ? CUSTOM_USER_TABLE : 'users';
}
protected function get_custom_usermeta_table() {
return defined( 'CUSTOM_USER_META_TABLE' ) ? CUSTOM_USER_META_TABLE : 'usermeta';
}
}
|
{
"content_hash": "dbf8107aa7f2c8e924cc7f01b79ffa76",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 97,
"avg_line_length": 23.805555555555557,
"alnum_prop": 0.6009334889148191,
"repo_name": "root-tongue/root-tongue",
"id": "14ee758a2e184d2ac6367f52500c7de1416241ce",
"size": "1714",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "vvv/www/root-tongue/content/plugins/wpml-string-translation/classes/mo-scan/charset-validation/wpml-st-mo-scan-db-table-list.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "531725"
},
{
"name": "HTML",
"bytes": "185962"
},
{
"name": "JavaScript",
"bytes": "1227696"
},
{
"name": "PHP",
"bytes": "7101003"
},
{
"name": "Ruby",
"bytes": "15060"
},
{
"name": "Shell",
"bytes": "37414"
},
{
"name": "Vim script",
"bytes": "1016"
}
]
}
|
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media="all"/>
<link rel="stylesheet" href="../../../../../aui/css/aui-experimental.min.css" media="all"/>
<!--[if IE 9]><link rel="stylesheet" href="../../../../../aui/css/aui-ie9.min.css" media="all"/><![endif]-->
<style type="text/css" media="all">
@import url('../../../../../style.css');
@import url('../../../../../tree.css');
</style>
<script src="../../../../../jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui-experimental.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui-soy.min.js" type="text/javascript"></script>
<script src="../../../../../package-nodes-tree.js" type="text/javascript"></script>
<script src="../../../../../clover-tree.js" type="text/javascript"></script>
<script src="../../../../../clover.js" type="text/javascript"></script>
<script src="../../../../../clover-descriptions.js" type="text/javascript"></script>
<script src="../../../../../cloud.js" type="text/javascript"></script>
<title>ABA Route Transit Number Validator 1.0.1-SNAPSHOT</title>
</head>
<body>
<div id="page">
<header id="header" role="banner">
<nav class="aui-header aui-dropdown2-trigger-group" role="navigation">
<div class="aui-header-inner">
<div class="aui-header-primary">
<h1 id="logo" class="aui-header-logo aui-header-logo-clover">
<a href="http://openclover.org" title="Visit OpenClover home page"><span class="aui-header-logo-device">OpenClover</span></a>
</h1>
</div>
<div class="aui-header-secondary">
<ul class="aui-nav">
<li id="system-help-menu">
<a class="aui-nav-link" title="Open online documentation" target="_blank"
href="http://openclover.org/documentation">
<span class="aui-icon aui-icon-small aui-iconfont-help"> Help</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="aui-page-panel">
<div class="aui-page-panel-inner">
<div class="aui-page-panel-nav aui-page-panel-nav-clover">
<div class="aui-page-header-inner" style="margin-bottom: 20px;">
<div class="aui-page-header-image">
<a href="http://cardatechnologies.com" target="_top">
<div class="aui-avatar aui-avatar-large aui-avatar-project">
<div class="aui-avatar-inner">
<img src="../../../../../img/clover_logo_large.png" alt="Clover icon"/>
</div>
</div>
</a>
</div>
<div class="aui-page-header-main" >
<h1>
<a href="http://cardatechnologies.com" target="_top">
ABA Route Transit Number Validator 1.0.1-SNAPSHOT
</a>
</h1>
</div>
</div>
<nav class="aui-navgroup aui-navgroup-vertical">
<div class="aui-navgroup-inner">
<ul class="aui-nav">
<li class="">
<a href="../../../../../dashboard.html">Project overview</a>
</li>
</ul>
<div class="aui-nav-heading packages-nav-heading">
<strong>Packages</strong>
</div>
<div class="aui-nav project-packages">
<form method="get" action="#" class="aui package-filter-container">
<input type="text" autocomplete="off" class="package-filter text"
placeholder="Type to filter packages..." name="package-filter" id="package-filter"
title="Start typing package name (or part of the name) to search through the tree. Use arrow keys and the Enter key to navigate."/>
</form>
<p class="package-filter-no-results-message hidden">
<small>No results found.</small>
</p>
<div class="packages-tree-wrapper" data-root-relative="../../../../../" data-package-name="com.cardatechnologies.utils.validators.abaroutevalidator">
<div class="packages-tree-container"></div>
<div class="clover-packages-lozenges"></div>
</div>
</div>
</div>
</nav> </div>
<section class="aui-page-panel-content">
<div class="aui-page-panel-content-clover">
<div class="aui-page-header-main"><ol class="aui-nav aui-nav-breadcrumbs">
<li><a href="../../../../../dashboard.html"> Project Clover database Sat Aug 7 2021 12:29:33 MDT</a></li>
<li><a href="test-pkg-summary.html">Package com.cardatechnologies.utils.validators.abaroutevalidator</a></li>
<li><a href="test-Test_AbaRouteValidator_02.html">Class Test_AbaRouteValidator_02</a></li>
</ol></div>
<h1 class="aui-h2-clover">
Test testAbaNumberCheck_1408_bad
</h1>
<table class="aui">
<thead>
<tr>
<th>Test</th>
<th><label title="The test result. Either a Pass, Fail or Error.">Status</label></th>
<th><label title="When the test execution was started">Start time</label></th>
<th><label title="The total time in seconds taken to run this test.">Time (seconds)</label></th>
<th><label title="A failure or error message if the test is not successful.">Message</label></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/Test_AbaRouteValidator_02.html?line=10912#src-10912" >testAbaNumberCheck_1408_bad</a>
</td>
<td>
<span class="sortValue">1</span><span class="aui-lozenge aui-lozenge-success">PASS</span>
</td>
<td>
7 Aug 12:32:24
</td>
<td>
0.0 </td>
<td>
<div></div>
<div class="errorMessage"></div>
</td>
</tr>
</tbody>
</table>
<div> </div>
<table class="aui aui-table-sortable">
<thead>
<tr>
<th style="white-space:nowrap;"><label title="A class that was directly hit by this test.">Target Class</label></th>
<th colspan="4"><label title="The percentage of coverage contributed by each single test.">Coverage contributed by</label> testAbaNumberCheck_1408_bad</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.exceptions.AbaRouteValidationException</span>
  <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/exceptions/AbaRouteValidationException.html?id=20476#AbaRouteValidationException" title="AbaRouteValidationException" name="sl-43">com.cardatechnologies.utils.validators.abaroutevalidator.exceptions.AbaRouteValidationException</a>
</td>
<td>
<span class="sortValue">0.5714286</span>57.1%
</td>
<td class="align-middle" style="width: 100%" colspan="3">
<div>
<div title="57.1% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:57.1%"></div></div></div> </td>
</tr>
<tr>
<td>
<span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.ErrorCodes</span>
  <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/ErrorCodes.html?id=20476#ErrorCodes" title="ErrorCodes" name="sl-42">com.cardatechnologies.utils.validators.abaroutevalidator.ErrorCodes</a>
</td>
<td>
<span class="sortValue">0.5714286</span>57.1%
</td>
<td class="align-middle" style="width: 100%" colspan="3">
<div>
<div title="57.1% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:57.1%"></div></div></div> </td>
</tr>
<tr>
<td>
<span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</span>
  <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/AbaRouteValidator.html?id=20476#AbaRouteValidator" title="AbaRouteValidator" name="sl-47">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</a>
</td>
<td>
<span class="sortValue">0.29411766</span>29.4%
</td>
<td class="align-middle" style="width: 100%" colspan="3">
<div>
<div title="29.4% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:29.4%"></div></div></div> </td>
</tr>
</tbody>
</table>
</div> <!-- class="aui-page-panel-content-clover" -->
<footer id="footer" role="contentinfo">
<section class="footer-body">
<ul>
<li>
Report generated by <a target="_new" href="http://openclover.org">OpenClover</a> v 4.4.1
on Sat Aug 7 2021 12:49:26 MDT using coverage data from Sat Aug 7 2021 12:47:23 MDT.
</li>
</ul>
<ul>
<li>OpenClover is free and open-source software. </li>
</ul>
</section>
</footer> </section> <!-- class="aui-page-panel-content" -->
</div> <!-- class="aui-page-panel-inner" -->
</div> <!-- class="aui-page-panel" -->
</div> <!-- id="page" -->
</body>
</html>
|
{
"content_hash": "f3b01b36941b79efbead6b112857cc6b",
"timestamp": "",
"source": "github",
"line_count": 235,
"max_line_length": 359,
"avg_line_length": 46.740425531914894,
"alnum_prop": 0.5302257829570284,
"repo_name": "dcarda/aba.route.validator",
"id": "3965958d66956d03c3eb4b3951f974abe5de65fd",
"size": "10984",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "target13/site/clover/com/cardatechnologies/utils/validators/abaroutevalidator/Test_AbaRouteValidator_02_testAbaNumberCheck_1408_bad_fss.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "18715254"
}
]
}
|
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>net.lemonmodel.patterns.pos.irreflexivePersonalPronoun</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link type="text/css" media="screen" rel="stylesheet" href="../../../../lib/template.css" />
<script type="text/javascript" src="../../../../lib/jquery.js"></script>
<script type="text/javascript" src="../../../../lib/jquery-ui.js"></script>
<script type="text/javascript" src="../../../../lib/template.js"></script>
<script type="text/javascript" src="../../../../lib/tools.tooltip.js"></script>
</head>
<body class="value">
<div id="definition">
<img src="../../../../lib/object_big.png" />
<p id="owner"><a name="net" class="extype" href="../../../package.html">net</a>.<a name="net.lemonmodel" class="extype" href="../../package.html">lemonmodel</a>.<a name="net.lemonmodel.patterns" class="extype" href="../package.html">patterns</a>.<a name="net.lemonmodel.patterns.pos" class="extype" href="package.html">pos</a></p>
<h1>irreflexivePersonalPronoun</h1>
</div>
<h4 class="signature" id="signature">
<span class="kind">object</span>
<span class="symbol">
<span class="name">irreflexivePersonalPronoun</span>
<span class="result"> extends <a name="net.lemonmodel.patterns.POS" class="extype" href="../POS.html">POS</a></span>
</span>
</h4>
<div class="fullcommenttop" id="comment"><div class="toggleContainer block">
<span class="toggle">Linear Supertypes</span>
<div class="superTypes hiddenContent"><a name="net.lemonmodel.patterns.POS" class="extype" href="../POS.html">POS</a>, AnyRef, <span name="scala.Any" class="extype">Any</span></div>
</div></div>
<div id="template">
<div id="mbrsel">
<div id="textfilter"><span class="pre"></span><span class="input"><input accesskey="/" type="text" /></span><span class="post"></span></div>
<div id="order">
<span class="filtertype">Ordering</span>
<ol><li class="alpha in"><span>Alphabetic</span></li><li class="inherit out"><span>By inheritance</span></li></ol>
</div>
<div id="ancestors">
<span class="filtertype">Inherited</span>
<ol><li class="hideall out"><span>Hide All</span></li>
<li class="showall in"><span>Show all</span></li></ol>
<ol id="linearization"><li name="net.lemonmodel.patterns.pos.irreflexivePersonalPronoun" class="in"><span>irreflexivePersonalPronoun</span></li><li name="net.lemonmodel.patterns.POS" class="in"><span>POS</span></li><li name="scala.AnyRef" class="in"><span>AnyRef</span></li><li name="scala.Any" class="in"><span>Any</span></li></ol>
</div>
<div id="visbl">
<span class="filtertype">Visibility</span>
<ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
</div>
</div>
<div class="values members" id="values">
<h3>Value Members</h3>
<ol><li visbl="pub" name="scala.AnyRef#!=" data-isabs="false">
<a id="!=(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">!=</span>
<span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li visbl="pub" name="scala.Any#!=" data-isabs="false">
<a id="!=(Any):Boolean"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">!=</span>
<span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef###" data-isabs="false">
<a id="##():Int"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">##</span>
<span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#==" data-isabs="false">
<a id="==(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">==</span>
<span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li visbl="pub" name="scala.Any#==" data-isabs="false">
<a id="==(Any):Boolean"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">==</span>
<span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li visbl="pub" name="scala.Any#asInstanceOf" data-isabs="false">
<a id="asInstanceOf[T0]:T0"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">asInstanceOf</span>
<span class="tparams">[<span name="T0">T0</span>]</span>
<span class="result">: T0</span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li visbl="prt" name="scala.AnyRef#clone" data-isabs="false">
<a id="clone():AnyRef"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">clone</span>
<span class="params">()</span><span class="result">: AnyRef</span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#eq" data-isabs="false">
<a id="eq(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">eq</span>
<span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#equals" data-isabs="false">
<a id="equals(Any):Boolean"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">equals</span>
<span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li visbl="prt" name="scala.AnyRef#finalize" data-isabs="false">
<a id="finalize():Unit"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">finalize</span>
<span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#getClass" data-isabs="false">
<a id="getClass():java.lang.Class[_]"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">getClass</span>
<span class="params">()</span><span class="result">: java.lang.Class[_]</span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#hashCode" data-isabs="false">
<a id="hashCode():Int"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">hashCode</span>
<span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li visbl="pub" name="scala.Any#isInstanceOf" data-isabs="false">
<a id="isInstanceOf[T0]:Boolean"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">isInstanceOf</span>
<span class="tparams">[<span name="T0">T0</span>]</span>
<span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#ne" data-isabs="false">
<a id="ne(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">ne</span>
<span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#notify" data-isabs="false">
<a id="notify():Unit"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">notify</span>
<span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#notifyAll" data-isabs="false">
<a id="notifyAll():Unit"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">notifyAll</span>
<span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#synchronized" data-isabs="false">
<a id="synchronized[T0](⇒ T0):T0"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">synchronized</span>
<span class="tparams">[<span name="T0">T0</span>]</span>
<span class="params">(<span name="arg0">arg0: ⇒ T0</span>)</span><span class="result">: T0</span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li visbl="pub" name="net.lemonmodel.patterns.POS#toString" data-isabs="false">
<a id="toString():String"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">toString</span>
<span class="params">()</span><span class="result">: String</span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="net.lemonmodel.patterns.POS" class="extype" href="../POS.html">POS</a> → AnyRef → Any</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
<a id="wait():Unit"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">wait</span>
<span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
<a id="wait(Long,Int):Unit"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">wait</span>
<span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>, <span name="arg1">arg1: <span name="scala.Int" class="extype">Int</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
<a id="wait(Long):Unit"></a>
<h4 class="signature">
<span class="kind">def</span>
<span class="symbol">
<span class="name">wait</span>
<span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li></ol>
</div>
<div name="net.lemonmodel.patterns.POS" class="parent">
<h3>Inherited from <a name="net.lemonmodel.patterns.POS" class="extype" href="../POS.html">POS</a></h3>
</div><div name="scala.AnyRef" class="parent">
<h3>Inherited from AnyRef</h3>
</div><div name="scala.Any" class="parent">
<h3>Inherited from <span name="scala.Any" class="extype">Any</span></h3>
</div>
</div>
<div id="tooltip"></div>
</body>
</html>
|
{
"content_hash": "dbe432f5fc96aa240abeb186a08c89a6",
"timestamp": "",
"source": "github",
"line_count": 329,
"max_line_length": 348,
"avg_line_length": 51.328267477203646,
"alnum_prop": 0.5736365251376798,
"repo_name": "jmccrae/lemon.patterns",
"id": "40890ee04959cc89eb200a7e81eccc3709034ca7",
"size": "16903",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/api/net/lemonmodel/patterns/pos/irreflexivePersonalPronoun$.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "884229"
},
{
"name": "Scala",
"bytes": "220936"
},
{
"name": "Shell",
"bytes": "2023"
},
{
"name": "TeX",
"bytes": "22473"
}
]
}
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>geowave-extension-parent</artifactId>
<groupId>org.locationtech.geowave</groupId>
<relativePath>../../../</relativePath>
<version>2.0.2-SNAPSHOT</version>
</parent>
<artifactId>geowave-datastore-hbase-coprocessors</artifactId>
<name>GeoWave HBase Coprocessors</name>
<description>Coprocessors for GeoWave Data Store on Apache HBase</description>
<dependencies>
<dependency>
<groupId>org.locationtech.geowave</groupId>
<artifactId>geowave-datastore-hbase</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-shaded-client</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-protocol</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-server</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>build-installer-plugin</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<outputDirectory>${project.build.directory}/installer-plugin</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
|
{
"content_hash": "1a3eafdfdd35fa277b642e55317502fd",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 204,
"avg_line_length": 31.673076923076923,
"alnum_prop": 0.7000607164541591,
"repo_name": "locationtech/geowave",
"id": "df5460dd1c7a3f87054e7b411cee8bad54d9cf5d",
"size": "1647",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "extensions/datastores/hbase/coprocessors/pom.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ANTLR",
"bytes": "10168"
},
{
"name": "Dockerfile",
"bytes": "3268"
},
{
"name": "FreeMarker",
"bytes": "2879"
},
{
"name": "Gnuplot",
"bytes": "57750"
},
{
"name": "Java",
"bytes": "11564564"
},
{
"name": "Puppet",
"bytes": "8849"
},
{
"name": "Python",
"bytes": "418256"
},
{
"name": "Scheme",
"bytes": "20491"
},
{
"name": "Shell",
"bytes": "100172"
}
]
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
namespace AD.PartialEquilibriumApi.Optimization
{
/// <summary>
/// Represents the solution to an objective function.
/// </summary>
[PublicAPI]
public struct Solution : IEquatable<Solution>, IComparable<Solution>
{
private const double Tolerance = 1e-15;
/// <summary>
/// The function result.
/// </summary>
public double Value { get; }
/// <summary>
/// Returns the argument vector. An indexer is provided for set operations.
/// </summary>
public double[] Vector { get; }
/// <summary>
/// Indexed access to the solution vector.
/// </summary>
/// <param name="index">The vector element index.</param>
public double this[int index]
{
get { return Vector[index]; }
}
/// <summary>
/// Creates a <see cref="Solution"/> given an argument vector and value.
/// </summary>
/// <param name="value">The value of this solution.</param>
/// <param name="vector">A vector of arguments to be passed to the function.</param>
public Solution(double value, IReadOnlyList<double> vector)
{
Vector = new double[vector.Count];
for (int i = 0; i < vector.Count; i++)
{
Vector[i] = vector[i];
}
Value = value;
}
/// <summary>
/// Creates a <see cref="Solution"/> given an existing <see cref="Solution"/>.
/// </summary>
/// <param name="other">An existing <see cref="Solution"/> to be copied.</param>
public Solution(Solution other) : this(other.Value, other.Vector)
{
}
/// <summary>
/// Returns a string representation of the <see cref="Solution"/>.
/// </summary>
public override string ToString()
{
return $"[ {string.Join(", ", Vector.Select(x => $"{x:0.0000e00}"))} ] = {Value:0.0000e00}";
}
/// <summary>
/// True if both <see cref="Solution"/> objects have the same value.
/// </summary>
public static bool operator ==(Solution left, Solution right)
{
return Math.Abs(left.Value - right.Value) < Tolerance;
}
/// <summary>
/// True if both <see cref="Solution"/> objects do not have the same value.
/// </summary>
public static bool operator !=(Solution left, Solution right)
{
return Math.Abs(left.Value - right.Value) > Tolerance;
}
/// <summary>
/// True if the left value is less than the right value.
/// </summary>
public static bool operator <(Solution left, Solution right)
{
return left.Value - right.Value < Tolerance;
}
/// <summary>
/// True if the left value is greater than the right value.
/// </summary>
public static bool operator >(Solution left, Solution right)
{
return left.Value - right.Value > Tolerance;
}
/// <summary>
/// True if the left value is less than or equal to the right value.
/// </summary>
public static bool operator <=(Solution left, Solution right)
{
return left.Value - right.Value <= Tolerance;
}
/// <summary>
/// True if the left value is greater than or equal to the right value.
/// </summary>
public static bool operator >=(Solution left, Solution right)
{
return left.Value - right.Value >= Tolerance;
}
/// <summary>
/// Compares <see cref="Solution"/> objects based on the values.
/// </summary>
public int CompareTo(Solution other)
{
return Value.CompareTo(other.Value);
}
/// <summary>
/// Compares <see cref="Solution"/> objects based on the values.
/// </summary>
int IComparable<Solution>.CompareTo(Solution other)
{
return CompareTo(other);
}
/// <summary>
/// True if two <see cref="Solution"/> objects have the same Vector and Value.
/// </summary>
public bool Equals(Solution other)
{
if (Vector.Length != other.Vector.Length)
{
return false;
}
bool vectorsEqual = true;
for (int i = 0; i < Vector.Length; i++)
{
if (Math.Abs(Vector[i] - other.Vector[i]) > Tolerance)
{
vectorsEqual = false;
}
}
return vectorsEqual && Value.Equals(other.Value);
}
/// <summary>
/// True if two <see cref="Solution"/> objects have the same Vector and Value.
/// </summary>
public override bool Equals(object obj)
{
return obj is Solution && Equals((Solution) obj);
}
/// <summary>
/// True if two <see cref="Solution"/> objects have the same Vector and Value.
/// </summary>
bool IEquatable<Solution>.Equals(Solution other)
{
return Equals(other);
}
/// <summary>
/// Returns the hash code for this instance.
/// </summary>
/// <returns>A 32-bit signed integer that is the hash code for this instance.</returns>
public override int GetHashCode()
{
unchecked
{
return ((Vector?.GetHashCode() ?? 0) * 397) ^ Value.GetHashCode();
}
}
}
}
|
{
"content_hash": "ca8cb89297d1b6b35ee7906edb4c6955",
"timestamp": "",
"source": "github",
"line_count": 178,
"max_line_length": 104,
"avg_line_length": 32.28651685393258,
"alnum_prop": 0.5254915608143379,
"repo_name": "austindrenski/AD.PartialEquilibriumApi",
"id": "4d4a39537fd435684ee9f21893d93e42f3269c44",
"size": "5749",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "AD.PartialEquilibriumApi/Optimization/Solution.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "127098"
}
]
}
|
<?php
namespace Oro\Bundle\SyncBundle\EventListener;
use Oro\Bundle\SecurityBundle\Authentication\TokenAccessorInterface;
use Oro\Bundle\SyncBundle\Client\ConnectionChecker;
use Oro\Bundle\SyncBundle\Client\WebsocketClientInterface;
class MaintenanceListener
{
/**
* @var WebsocketClientInterface
*/
private $client;
/**
* @var ConnectionChecker
*/
private $connectionChecker;
/**
* @var TokenAccessorInterface
*/
private $tokenAccessor;
/**
* @param WebsocketClientInterface $client
* @param ConnectionChecker $connectionChecker
* @param TokenAccessorInterface $tokenAccessor
*/
public function __construct(
WebsocketClientInterface $client,
ConnectionChecker $connectionChecker,
TokenAccessorInterface $tokenAccessor
) {
$this->client = $client;
$this->connectionChecker = $connectionChecker;
$this->tokenAccessor = $tokenAccessor;
}
public function onModeOn()
{
$this->onMode(true);
}
public function onModeOff()
{
$this->onMode(false);
}
/**
* @param bool $isOn
*/
private function onMode(bool $isOn)
{
if (!$this->connectionChecker->checkConnection()) {
return;
}
$userId = $this->tokenAccessor->getUserId();
$this->client->publish('oro/maintenance', ['isOn' => $isOn, 'userId' => $userId]);
}
}
|
{
"content_hash": "9a83b37b6fa035e3e6e1d26720df40bd",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 90,
"avg_line_length": 22.8125,
"alnum_prop": 0.6294520547945206,
"repo_name": "orocrm/platform",
"id": "e6a029eb24ad08178692945442bdd14ee58a53c9",
"size": "1460",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Oro/Bundle/SyncBundle/EventListener/MaintenanceListener.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "618485"
},
{
"name": "Gherkin",
"bytes": "158217"
},
{
"name": "HTML",
"bytes": "1648915"
},
{
"name": "JavaScript",
"bytes": "3326127"
},
{
"name": "PHP",
"bytes": "37828618"
}
]
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_55) on Tue Aug 12 22:12:20 PDT 2014 -->
<title>org.apache.nutch.util Class Hierarchy (apache-nutch 1.9 API)</title>
<meta name="date" content="2014-08-12">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.apache.nutch.util Class Hierarchy (apache-nutch 1.9 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li>Use</li>
<li class="navBarCell1Rev">Tree</li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/nutch/urlfilter/validator/package-tree.html">Prev</a></li>
<li><a href="../../../../org/apache/nutch/util/domain/package-tree.html">Next</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/nutch/util/package-tree.html" target="_top">Frames</a></li>
<li><a href="package-tree.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 class="title">Hierarchy For Package org.apache.nutch.util</h1>
<span class="strong">Package Hierarchies:</span>
<ul class="horizontal">
<li><a href="../../../../overview-tree.html">All Packages</a></li>
</ul>
</div>
<div class="contentContainer">
<h2 title="Class Hierarchy">Class Hierarchy</h2>
<ul>
<li type="circle">java.lang.<a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><span class="strong">Object</span></a>
<ul>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/CommandRunner.html" title="class in org.apache.nutch.util"><span class="strong">CommandRunner</span></a></li>
<li type="circle">org.apache.hadoop.conf.Configuration (implements java.lang.<a href="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><T>, org.apache.hadoop.io.Writable)
<ul>
<li type="circle">org.apache.hadoop.mapred.JobConf
<ul>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/NutchJob.html" title="class in org.apache.nutch.util"><span class="strong">NutchJob</span></a></li>
</ul>
</li>
</ul>
</li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/DeflateUtils.html" title="class in org.apache.nutch.util"><span class="strong">DeflateUtils</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/DomUtil.html" title="class in org.apache.nutch.util"><span class="strong">DomUtil</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/EncodingDetector.html" title="class in org.apache.nutch.util"><span class="strong">EncodingDetector</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/FSUtils.html" title="class in org.apache.nutch.util"><span class="strong">FSUtils</span></a></li>
<li type="circle">org.apache.hadoop.io.GenericWritable (implements org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.Writable)
<ul>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/GenericWritableConfigurable.html" title="class in org.apache.nutch.util"><span class="strong">GenericWritableConfigurable</span></a> (implements org.apache.hadoop.conf.Configurable)</li>
</ul>
</li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/GZIPUtils.html" title="class in org.apache.nutch.util"><span class="strong">GZIPUtils</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/HadoopFSUtil.html" title="class in org.apache.nutch.util"><span class="strong">HadoopFSUtil</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/LockUtil.html" title="class in org.apache.nutch.util"><span class="strong">LockUtil</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/MimeUtil.html" title="class in org.apache.nutch.util"><span class="strong">MimeUtil</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/NodeWalker.html" title="class in org.apache.nutch.util"><span class="strong">NodeWalker</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/NutchConfiguration.html" title="class in org.apache.nutch.util"><span class="strong">NutchConfiguration</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/ObjectCache.html" title="class in org.apache.nutch.util"><span class="strong">ObjectCache</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/StringUtil.html" title="class in org.apache.nutch.util"><span class="strong">StringUtil</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/TimingUtil.html" title="class in org.apache.nutch.util"><span class="strong">TimingUtil</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/TrieStringMatcher.html" title="class in org.apache.nutch.util"><span class="strong">TrieStringMatcher</span></a>
<ul>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/PrefixStringMatcher.html" title="class in org.apache.nutch.util"><span class="strong">PrefixStringMatcher</span></a></li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/SuffixStringMatcher.html" title="class in org.apache.nutch.util"><span class="strong">SuffixStringMatcher</span></a></li>
</ul>
</li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/TrieStringMatcher.TrieNode.html" title="class in org.apache.nutch.util"><span class="strong">TrieStringMatcher.TrieNode</span></a> (implements java.lang.<a href="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>)</li>
<li type="circle">org.apache.nutch.util.<a href="../../../../org/apache/nutch/util/URLUtil.html" title="class in org.apache.nutch.util"><span class="strong">URLUtil</span></a></li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li>Use</li>
<li class="navBarCell1Rev">Tree</li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/nutch/urlfilter/validator/package-tree.html">Prev</a></li>
<li><a href="../../../../org/apache/nutch/util/domain/package-tree.html">Next</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/nutch/util/package-tree.html" target="_top">Frames</a></li>
<li><a href="package-tree.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2014 The Apache Software Foundation</small></p>
</body>
</html>
|
{
"content_hash": "85720596c27569131c469042b179f420",
"timestamp": "",
"source": "github",
"line_count": 164,
"max_line_length": 396,
"avg_line_length": 56.52439024390244,
"alnum_prop": 0.6627831715210356,
"repo_name": "Ramzi-Alqrainy/SELK",
"id": "26f3a2e2c474d7c9871aca405707d1726d383857",
"size": "9270",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "apache-nutch-1.9.0/docs/api/org/apache/nutch/util/package-tree.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "666490"
},
{
"name": "Erlang",
"bytes": "5309"
},
{
"name": "JavaScript",
"bytes": "1831427"
},
{
"name": "Ruby",
"bytes": "987996"
},
{
"name": "Shell",
"bytes": "78761"
},
{
"name": "XSLT",
"bytes": "126437"
}
]
}
|
exopy.measurement.monitors.text_monitor.rules.std_views module
=========================================================
.. automodule:: exopy.measurement.monitors.text_monitor.rules.std_views
:members:
:undoc-members:
:show-inheritance:
|
{
"content_hash": "1bc4ea304259c2eced79f1eb8d2e9e56",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 71,
"avg_line_length": 35.857142857142854,
"alnum_prop": 0.5816733067729084,
"repo_name": "Ecpy/ecpy",
"id": "9c6031f30545d3daed8eabcf3b2b682d26c8b7df",
"size": "251",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/source/api_docs/measure/monitors/text_monitor/rules/std_views.rst",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Batchfile",
"bytes": "162"
},
{
"name": "Python",
"bytes": "1344669"
},
{
"name": "Shell",
"bytes": "420"
}
]
}
|
@interface FirstViewController : YPTabBarController
@end
|
{
"content_hash": "f86f77f030b810d8f173452cd767d074",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 51,
"avg_line_length": 19.333333333333332,
"alnum_prop": 0.8448275862068966,
"repo_name": "JLDemo/Frame_USE",
"id": "1c6dc746ba3405a1a37709ec4d4bfae6c7ee1de4",
"size": "223",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Demo_FrameWork/Demo_FrameWork/Class/SubPage/DefTabBar/FirstViewController.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "68"
},
{
"name": "Objective-C",
"bytes": "2607662"
},
{
"name": "Ruby",
"bytes": "173"
},
{
"name": "Shell",
"bytes": "8511"
}
]
}
|
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new AppBundle\AppBundle(),
new FOS\UserBundle\FOSUserBundle(),
new Blog\BlogBundle\BlogBlogBundle(),
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
);
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}
return $bundles;
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
}
}
|
{
"content_hash": "2dd7044ad8da4c9d7cdc5ea548357c25",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 92,
"avg_line_length": 39.45238095238095,
"alnum_prop": 0.668074834037417,
"repo_name": "Dren-x/MobiTech",
"id": "c0bb83b5fd9127c5603cf167987c8dc23b766239",
"size": "1657",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/AppKernel.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "3606"
},
{
"name": "CSS",
"bytes": "3302"
},
{
"name": "HTML",
"bytes": "19288"
},
{
"name": "PHP",
"bytes": "85949"
}
]
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
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
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
<!--
Automatically created by Apache Jakarta Tomcat JspC.
Place this fragment in the web.xml before all icon, display-name,
description, distributable, and context-param elements.
-->
<servlet>
<servlet-name>org.apache.hadoop.hdfs.server.datanode.browseBlock_jsp</servlet-name>
<servlet-class>org.apache.hadoop.hdfs.server.datanode.browseBlock_jsp</servlet-class>
</servlet>
<servlet>
<servlet-name>org.apache.hadoop.hdfs.server.datanode.browseDirectory_jsp</servlet-name>
<servlet-class>org.apache.hadoop.hdfs.server.datanode.browseDirectory_jsp</servlet-class>
</servlet>
<servlet>
<servlet-name>org.apache.hadoop.hdfs.server.datanode.tail_jsp</servlet-name>
<servlet-class>org.apache.hadoop.hdfs.server.datanode.tail_jsp</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>org.apache.hadoop.hdfs.server.datanode.browseBlock_jsp</servlet-name>
<url-pattern>/browseBlock.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>org.apache.hadoop.hdfs.server.datanode.browseDirectory_jsp</servlet-name>
<url-pattern>/browseDirectory.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>org.apache.hadoop.hdfs.server.datanode.tail_jsp</servlet-name>
<url-pattern>/tail.jsp</url-pattern>
</servlet-mapping>
<!--
All session-config, mime-mapping, welcome-file-list, error-page, taglib,
resource-ref, security-constraint, login-config, security-role,
env-entry, and ejb-ref elements should follow this fragment.
-->
</web-app>
|
{
"content_hash": "7342411b167a030349d54d34ab3b30cb",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 97,
"avg_line_length": 38.88135593220339,
"alnum_prop": 0.7236268526591108,
"repo_name": "ashish-17/drift",
"id": "ae368ef0ec684253e816c8df89d9e8de6790dbe9",
"size": "2294",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "hadoop-2.2.0/share/hadoop/hdfs/webapps/datanode/WEB-INF/web.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "85328"
},
{
"name": "C",
"bytes": "24796"
},
{
"name": "C++",
"bytes": "16604"
},
{
"name": "CSS",
"bytes": "394460"
},
{
"name": "Groff",
"bytes": "25822"
},
{
"name": "HTML",
"bytes": "58267561"
},
{
"name": "Java",
"bytes": "78980"
},
{
"name": "JavaScript",
"bytes": "13300"
},
{
"name": "Python",
"bytes": "1038"
},
{
"name": "Shell",
"bytes": "135543"
},
{
"name": "TeX",
"bytes": "27734"
},
{
"name": "XSLT",
"bytes": "20437"
}
]
}
|
package com.sequenceiq.cloudbreak.api.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.sequenceiq.cloudbreak.doc.ModelDescriptions;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel
@JsonIgnoreProperties(ignoreUnknown = true)
public class NetworkResponse extends NetworkBase {
@ApiModelProperty(value = ModelDescriptions.ID)
private Long id;
@ApiModelProperty(value = ModelDescriptions.PUBLIC_IN_ACCOUNT)
private boolean publicInAccount;
@JsonProperty("publicInAccount")
public boolean isPublicInAccount() {
return publicInAccount;
}
@JsonIgnore
public void setPublicInAccount(boolean publicInAccount) {
this.publicInAccount = publicInAccount;
}
@JsonProperty("id")
public Long getId() {
return id;
}
@JsonIgnore
public void setId(Long id) {
this.id = id;
}
}
|
{
"content_hash": "b9dd4ca5c585e3a8727f60f38c338e17",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 66,
"avg_line_length": 26.25,
"alnum_prop": 0.7447619047619047,
"repo_name": "sequenceiq/cloudbreak",
"id": "355dc59728e27d099b84eca7921a7893b9ed9ac9",
"size": "1050",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "core-api/src/main/java/com/sequenceiq/cloudbreak/api/model/NetworkResponse.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "API Blueprint",
"bytes": "40278"
},
{
"name": "CSS",
"bytes": "132538"
},
{
"name": "FreeMarker",
"bytes": "69464"
},
{
"name": "Groovy",
"bytes": "608"
},
{
"name": "HTML",
"bytes": "105908"
},
{
"name": "Java",
"bytes": "5970961"
},
{
"name": "JavaScript",
"bytes": "574164"
},
{
"name": "Makefile",
"bytes": "4465"
},
{
"name": "PLSQL",
"bytes": "1683"
},
{
"name": "Python",
"bytes": "1270"
},
{
"name": "SQLPL",
"bytes": "3334871"
},
{
"name": "SaltStack",
"bytes": "44424"
},
{
"name": "Shell",
"bytes": "74688"
}
]
}
|
package com.fit2cloud.aliyun.rds.model;
public class PayType {
public static final String POST_PAID = "Postpaid";
}
|
{
"content_hash": "4ea244832aedfbb1e6c5683143a24d06",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 51,
"avg_line_length": 23.6,
"alnum_prop": 0.7627118644067796,
"repo_name": "fit2cloud/aliyun-api-java-wrapper",
"id": "62826e002ff03f0a2111209f3dc258c00f35353c",
"size": "118",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/fit2cloud/aliyun/rds/model/PayType.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "444033"
}
]
}
|
<?php
return [
'toggle_navigation' => 'Toggle navigation',
'home' => 'Home',
'menu_header' => 'Navigation',
'add_new' => 'Add new',
'edit' => 'Edit',
'save' => 'Save',
'delete' => 'Delete',
'close' => 'Close',
'search' => 'Search',
'show' => 'Show',
'play' => 'Play',
'approve' => 'Approve',
'spam' => 'SPAM',
'delete_row' => 'Delete the row #',
'delete_row_confirmation' => 'Are you sure you want to delete row #',
'select_image' => 'Select image',
'total_rows' => 'total rows',
'of' => 'of',
'showing_page' => 'showing page',
'actions' => 'Actions',
'copyright' => 'Copyright',
'all_rights_reserved' => 'All rights reserved',
'developed_on' => 'Developed on',
'menu_group_publishing' => 'Publishing',
'menu_group_components' => 'Components',
'menu_group_media' => 'Media',
'menu_group_advertising' => 'Advertising',
'menu_group_administration' => 'Administration',
'menu_group_ecommerce' => 'E-commerce',
];
|
{
"content_hash": "27e15c2f1a1f329ba83a40ad552046b1",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 73,
"avg_line_length": 28.833333333333332,
"alnum_prop": 0.5443159922928709,
"repo_name": "jdrda/olapus",
"id": "cc6f91594d1816e5749e0d3fa5b7052ecf8f845f",
"size": "1356",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "resources/lang/en/admin.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Blade",
"bytes": "280789"
},
{
"name": "HTML",
"bytes": "2254"
},
{
"name": "JavaScript",
"bytes": "2304283"
},
{
"name": "PHP",
"bytes": "311082"
},
{
"name": "Shell",
"bytes": "1439"
}
]
}
|
namespace ObjectsComparer.Tests.TestClasses
{
internal enum TestEnum
{
Value1,
Value2
}
}
|
{
"content_hash": "9f16be2e2815da22278f21deb62ffd17",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 44,
"avg_line_length": 14.875,
"alnum_prop": 0.6050420168067226,
"repo_name": "ValeraT1982/ObjectsComparer",
"id": "a99bc89ce453b88653acd4824d5ab6f6c03c7b29",
"size": "121",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ObjectsComparer/ObjectsComparer.Tests/TestClasses/TestEnum.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "328249"
}
]
}
|
import '../../lib/zone-spec/task-tracking';
declare const global: any;
describe('TaskTrackingZone', function() {
let _TaskTrackingZoneSpec: typeof TaskTrackingZoneSpec = (Zone as any)['TaskTrackingZoneSpec'];
let taskTrackingZoneSpec: TaskTrackingZoneSpec = null;
let taskTrackingZone: Zone;
beforeEach(() => {
taskTrackingZoneSpec = new _TaskTrackingZoneSpec();
taskTrackingZone = Zone.current.fork(taskTrackingZoneSpec);
});
it('should track tasks', (done: Function) => {
taskTrackingZone.run(() => {
const microTask = taskTrackingZone.scheduleMicroTask('test1', () => {});
expect(taskTrackingZoneSpec.microTasks.length).toBe(1);
expect(taskTrackingZoneSpec.microTasks[0].source).toBe('test1');
const macroTask = setTimeout(() => {}) as any as Task;
expect(taskTrackingZoneSpec.macroTasks.length).toBe(1);
expect(taskTrackingZoneSpec.macroTasks[0].source).toBe('setTimeout');
taskTrackingZone.cancelTask(macroTask);
expect(taskTrackingZoneSpec.macroTasks.length).toBe(0);
setTimeout(() => {
// assert on execution it is null
expect(taskTrackingZoneSpec.macroTasks.length).toBe(0);
expect(taskTrackingZoneSpec.microTasks.length).toBe(0);
// If a browser does not have XMLHttpRequest, then end test here.
if (typeof global['XMLHttpRequest'] == 'undefined') return done();
const xhr = new XMLHttpRequest();
xhr.open('get', '/', true);
xhr.onreadystatechange = () => {
if (xhr.readyState == 4) {
// clear current event tasks using setTimeout
setTimeout(() => {
expect(taskTrackingZoneSpec.macroTasks.length).toBe(0);
expect(taskTrackingZoneSpec.microTasks.length).toBe(0);
expect(taskTrackingZoneSpec.eventTasks.length).not.toBe(0);
taskTrackingZoneSpec.clearEvents();
expect(taskTrackingZoneSpec.eventTasks.length).toBe(0);
done();
});
}
};
xhr.send();
expect(taskTrackingZoneSpec.macroTasks.length).toBe(1);
expect(taskTrackingZoneSpec.macroTasks[0].source).toBe('XMLHttpRequest.send');
expect(taskTrackingZoneSpec.eventTasks[0].source)
.toMatch(/\.addEventListener:readystatechange/);
});
});
});
it('should capture task creation stacktrace', (done) => {
taskTrackingZone.run(() => {
const task: any = setTimeout(() => {
done();
}) as any as Task;
expect(task['creationLocation']).toBeTruthy();
});
});
});
|
{
"content_hash": "d723ac3017fe04434cf7e677cf3b0beb",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 97,
"avg_line_length": 37.72463768115942,
"alnum_prop": 0.6392623895505186,
"repo_name": "mhevery/zone.js",
"id": "27c1d6c5c0daa9acca562ce54ef04960ed2c6f5e",
"size": "2805",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/zone-spec/task-tracking.spec.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "111"
},
{
"name": "HTML",
"bytes": "10249"
},
{
"name": "JavaScript",
"bytes": "24070"
},
{
"name": "Shell",
"bytes": "2573"
},
{
"name": "TypeScript",
"bytes": "413815"
}
]
}
|
@interface ZSearchBar : UITextField
+ (instancetype)searchBar;
@end
|
{
"content_hash": "b3b476a10cf025126ee20621813f4fab",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 35,
"avg_line_length": 14,
"alnum_prop": 0.7714285714285715,
"repo_name": "zhangzhex/WeiBo",
"id": "a05bffce968769e11ce5fbf339b1d05a80acf07f",
"size": "215",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "WB/WB/Class/Main/View/ZSearchBar.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Objective-C",
"bytes": "1193788"
},
{
"name": "Ruby",
"bytes": "173"
},
{
"name": "Shell",
"bytes": "8163"
}
]
}
|
<?php
namespace So\LogboardBundle\Controller;
use So\LogboardBundle\Exception\BadQueryHttpException;
use So\LogboardBundle\Exception\NotFoundHttpException;
use Symfony\Bundle\WebProfilerBundle\Profiler\TemplateManager;
use Symfony\Component\DependencyInjection\ContainerAware;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\PropertyAccess\PropertyAccess;
/**
* Class ProfilerController
*
* @package So\LogboardBundle\Controller
* @author Sofiane HADDAG <sofiane.haddag@yahoo.fr>
*/
class ProfilerController extends ContainerAware
{
/**
* The Profiler
* @var \Symfony\Component\HttpKernel\Profiler\Profiler
*/
private $profiler;
/**
* Twig
* @var \Twig_Environment
*/
private $twig;
/**
* The template manager
* @var \Symfony\Bundle\WebProfilerBundle\Profiler\TemplateManager
*/
private $templateManager = null;
/**
* Templates
* @var Array
*/
private $templates;
/**
* Property accessor component
* @var \Symfony\Component\PropertyAccess\PropertyAccessor
*/
private $accessor;
/**
* The profiler manager
* @var \So\LogboardBundle\Profiler\ProfilerManagerInterface
*/
private $profilerManager;
/**
* Query manager
* @var \So\LogboardBundle\Profiler\QueryManagerInterface
*/
private $queryManager;
/**
* Engine
* @var string
*/
private $engine;
/**
* The Logboard controller
*
* @param string $token The profiler token
* @param Request $request The Request
*
* @return Response A Response instance
*
* @throws NotFoundHttpException if the profiler is null or the service does not exist
*/
public function logboardAction($token, Request $request)
{
$this->loadServices($token, $request);
if ($this->queryManager->isPreview())
return new Response($this->twig->render("LogboardBundle:Collector:viewer.html.twig", array('logs_stack' => $this->profilerManager->getPreviewData(), 'preview' => $this->queryManager->getPreview())), 200, array('Content-Type' => 'text/html'));
if (null === $this->profiler = $this->profilerManager->getProfiler())
throw new NotFoundHttpException('The profiler must be enabled.');
if (!$profile = $this->profilerManager->getProfile())
return new Response($this->twig->render('WebProfilerBundle:Profiler:info.html.twig', array('about' => 'no_token', 'token' => $token)), 200, array('Content-Type' => 'text/html'));
return new Response( $this->twig->render("LogboardBundle:Collector:logger.html.twig", array(
'profile' => $profile,
'profiler_manager' => $this->profilerManager,
'templates' => $this->getTemplateManager()->getTemplates($profile),
'is_ajax' => $request->isXmlHttpRequest(),
'query_manager' => $this->queryManager)
), 200, array('Content-Type' => 'text/html'));
}
/**
* Loading the services
*
* @param string $token The profiler token
* @param Request $request The Request
*
* @return void
*/
protected function loadServices($token, Request $request)
{
$this->templates = $this->container->getParameter('data_collector.templates');
$this->twig = $this->container->get("twig");
$this->accessor = PropertyAccess::createPropertyAccessor();
$this->profilerManager = $this->container->get("logboard.profiler_manager");
$this->queryManager = $this->container->get('logboard.query_manager');
$this->queryManager->handleQueries($request, $token);
$this->engine = $this->queryManager->getEngineServiceId();
$this->setEngine();
$this->profilerManager->loadProfiles($this->queryManager);
}
/**
* Set the engine for queryManager
*
* @throws BadQueryHttpException if The engine does not exist
*/
protected function setEngine()
{
if (null !== $this->engine) {
$service = sprintf('logboard.%s', $this->engine);
if ($this->container->has($service)) {
$this->queryManager->setEngine($this->container->get($service));
} else {
throw new BadQueryHttpException(sprintf('The specified Logboard engine "%s" does not exist or is not configured correctly', $service));
}
}
}
/**
* Gets the Template Manager.
*
* @return TemplateManager The Template Manager
*/
protected function getTemplateManager()
{
if (null === $this->templateManager) {
$this->templateManager = new TemplateManager($this->profiler, $this->twig, $this->templates);
}
return $this->templateManager;
}
}
|
{
"content_hash": "d64e0662b62f3c6f0ded51662685f992",
"timestamp": "",
"source": "github",
"line_count": 157,
"max_line_length": 254,
"avg_line_length": 31.37579617834395,
"alnum_prop": 0.6276898091758019,
"repo_name": "SofHad/LogboardBundle",
"id": "ee7fa86c12a4eddfccdbe5a96030f61c2dc11b83",
"size": "5158",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Controller/ProfilerController.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "99314"
}
]
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>charge-core: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1 / charge-core - 1.0.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
charge-core
<small>
1.0.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-02-19 06:39:30 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-02-19 06:39:30 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.11 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.7.1 Formal proof management system.
num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.09.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.09.0 Official release 4.09.0
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "gmalecha@gmail.com"
homepage: "https://github.com/jesper-bengtson/ChargeCore"
dev-repo: "git+https://github.com/jesper-bengtson/ChargeCore.git"
bug-reports: "https://github.com/jesper-bengtson/ChargeCore/issues"
authors: ["Jesper Bengtson" "Gregory Malecha"]
license: "APACHE 2.0"
build: [
[make "-j%{jobs}%" "-C" "ChargeCore"]
]
install: [
[make "-C" "ChargeCore" "install"]
]
depends: [
"ocaml"
"coq" {>= "8.5.0" & < "8.5.1"}
"coq-ext-lib" {>= "0.9.2" & < "0.9.3"}
]
synopsis: "A framework for embedded logics"
url {
src: "https://github.com/jesper-bengtson/ChargeCore/archive/v1.0.0.tar.gz"
checksum: "md5=6000cef8464b8f67cf1033002d231002"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-charge-core.1.0.0 coq.8.7.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1).
The following dependencies couldn't be met:
- coq-charge-core -> coq < 8.5.1 -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-charge-core.1.0.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
{
"content_hash": "52654c7417cbeac1c78343b527b9d8a0",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 157,
"avg_line_length": 40.68711656441718,
"alnum_prop": 0.5294028950542823,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "84e1372eeb652c9636abb16b6ccc8abc6423ba67",
"size": "6634",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.09.0-2.0.5/released/8.7.1/charge-core/1.0.0.html",
"mode": "33188",
"license": "mit",
"language": []
}
|
// SSKSunsetParser.m
//
// Copyright (c) 2015 Shintaro Kaneko
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import "SSKSunsetParser.h"
#include "markdown.h"
#include "html.h"
#include "buffer.h"
#define OUTPUT_UNIT 64
@interface SSKSunsetParser ()
- (uint32_t)markdownExtensions;
@end
@implementation SSKSunsetParser {
struct sd_callbacks callbacks;
struct html_renderopt options;
struct sd_markdown *markdown;
}
- (instancetype)init {
self = [super init];
if (self) {
self.extensions = SSKSunsetMarkdown_None;
sdhtml_renderer(&callbacks, &options, 0);
}
return self;
}
- (instancetype)initWithText:(NSString *)text {
self = [self init];
if (self) {
self.text = text;
}
return self;
}
- (void)dealloc {
}
- (NSString *)toHTML {
const uint8_t *data = (uint8_t *)[self.text.copy UTF8String];
uint32_t size = (uint32_t)[self.text lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
struct buf *ob;
ob = bufnew(OUTPUT_UNIT);
/* performing markdown parsing */
markdown = sd_markdown_new(self.markdownExtensions, 16, &callbacks, &options);
sd_markdown_render(ob, data, size, markdown);
sd_markdown_free(markdown);
NSString *html = [[NSString alloc] initWithBytes:ob->data length:ob->size encoding:NSUTF8StringEncoding];
/* cleanup */
bufrelease(ob);
if (html == nil) {
html = @"";
}
return html;
}
- (uint32_t)markdownExtensions {
uint32_t ext = 0;
if (self.extensions & SSKSunsetMarkdown_NO_INTRA_EMPHASIS) {
ext |= MKDEXT_NO_INTRA_EMPHASIS;
}
if (self.extensions & SSKSunsetMarkdown_TABLES) {
ext |= MKDEXT_TABLES;
}
if (self.extensions & SSKSunsetMarkdown_FENCED_CODE) {
ext |= MKDEXT_FENCED_CODE;
}
if (self.extensions & SSKSunsetMarkdown_AUTOLINK) {
ext |= MKDEXT_AUTOLINK;
}
if (self.extensions & SSKSunsetMarkdown_STRIKETHROUGH) {
ext |= MKDEXT_STRIKETHROUGH;
}
if (self.extensions & SSKSunsetMarkdown_UNDERLINE) {
ext |= MKDEXT_UNDERLINE;
}
if (self.extensions & SSKSunsetMarkdown_SPACE_HEADERS) {
ext |= MKDEXT_SPACE_HEADERS;
}
if (self.extensions & SSKSunsetMarkdown_SUPERSCRIPT) {
ext |= MKDEXT_SUPERSCRIPT;
}
if (self.extensions & SSKSunsetMarkdown_LAX_SPACING) {
ext |= MKDEXT_LAX_SPACING;
}
if (self.extensions & SSKSunsetMarkdown_DISABLE_INDENTED_CODE) {
ext |= MKDEXT_DISABLE_INDENTED_CODE;
}
if (self.extensions & SSKSunsetMarkdown_HIGHLIGHT) {
ext |= MKDEXT_HIGHLIGHT;
}
if (self.extensions & SSKSunsetMarkdown_FOOTNOTES) {
ext |= MKDEXT_FOOTNOTES;
}
if (self.extensions & SSKSunsetMarkdown_QUOTE) {
ext |= MKDEXT_QUOTE;
}
return ext;
}
@end
|
{
"content_hash": "2d28e9ae45747c23fdb9c4a93850eada",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 109,
"avg_line_length": 30.046875,
"alnum_prop": 0.6757670306812272,
"repo_name": "kaneshin/SSKSunset",
"id": "a66fcb4068155fd96ef337028632e256d2ce2171",
"size": "3846",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "SSKSunset/SSKSunsetParser.m",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "9400"
}
]
}
|
import enum
import logging
from ...interfaces import ISnapshotable
from ...errors import RegisterAccessError
from . import Coprocessor
from ...util import Flags
class ControlRegisters(enum.IntEnum):
CR0 = 0 # CPUID
CR1 = 1 # Interrupt Vector Table address
CR2 = 2 # Page Table address
CR3 = 3 # Flags
CONTROL_FLAG_PT_ENABLED = 0x00000001
CONTROL_FLAG_JIT = 0x00000002
CONTROL_FLAG_VMDEBUG = 0x00000004
class CoreFlags(Flags):
_flags = ['pt_enabled', 'jit', 'vmdebug']
_labels = 'PJV'
class ControlCoprocessor(ISnapshotable, Coprocessor):
def read_cr0(self):
return ((self.core.cpu.id << 16) | self.core.id) & 0xFFFFFFFF
def read_cr1(self):
return self.core.evt_address & 0xFFFFFFFF
def write_cr1(self, address):
self.core.evt_address = address
def read_cr2(self):
return self.core.mmu.pt_address & 0xFFFFFFFF
def write_cr2(self, address):
self.core.mmu.pt_address = address
def read_cr3(self):
return CoreFlags.create(pt_enabled = self.core.mmu.pt_enabled,
jit = self.core.cpu.machine.config.getbool('machine', 'jit', False),
vmdebug = self.core.LOGGER.getEffectiveLevel() == logging.DEBUG).to_int()
def write_cr3(self, value):
flags = CoreFlags.from_int(value)
self.core.mmu.pt_enabled = flags.pt_enabled
if flags.vmdebug is True:
self.core.LOGGER.setLevel(logging.DEBUG)
else:
self.core.LOGGER.setLevel(logging.INFO)
def read(self, r):
if not self.core.privileged:
raise RegisterAccessError('read', r)
handler = 'read_cr%i' % (r.value if isinstance(r, ControlRegisters) else r)
if not hasattr(self, handler):
raise RegisterAccessError('read', r)
return getattr(self, handler)()
def write(self, r, value):
if not self.core.privileged:
raise RegisterAccessError('write', r)
handler = 'write_cr%i' % (r.value if isinstance(r, ControlRegisters) else r)
if not hasattr(self, handler):
raise RegisterAccessError('write', r)
return getattr(self, handler)(value)
|
{
"content_hash": "26905ec9d26d74b0da0101bbd7fea25f",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 101,
"avg_line_length": 27.826666666666668,
"alnum_prop": 0.6722568279827503,
"repo_name": "happz/ducky",
"id": "7ae4c5b971d46418fc1478d5a765124626465484",
"size": "2087",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ducky/cpu/coprocessor/control.py",
"mode": "33188",
"license": "mit",
"language": []
}
|
A [Blockly](https://www.npmjs.com/package/blockly) date picker field that uses the Google Closure date picker ([goog.ui.DatePicker](https://google.github.io/closure-library/source/closure/goog/demos/)).
## Installation
### Yarn
```
yarn add @blockly/field-date
```
### npm
```
npm install @blockly/field-date --save
```
## Usage
### JavaScript
```js
import * as Blockly from 'blockly';
import FieldDate from '@blockly/field-date';
Blockly.Blocks["test_fields_date"] = {
init: function () {
this.appendDummyInput()
.appendField("date: ")
.appendField(new FieldDate("2020-02-20"), "FIELDNAME");
}
};
```
### JSON
```js
import * as Blockly from 'blockly';
import '@blockly/field-date';
Blockly.defineBlocksWithJsonArray([
{
"type": "test_fields_date",
"message0": "date: %1",
"args0": [
{
"type": "field_date",
"name": "FIELDNAME",
"date": "2020-02-20"
}
]
}]);
```
[View the developer documentation](https://developers.google.com/blockly/guides/create-custom-blocks/fields/built-in-fields/date) for further usage examples.
## License
Apache 2.0
|
{
"content_hash": "acad157c9814560f43642c2f4a697cee",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 202,
"avg_line_length": 21.962962962962962,
"alnum_prop": 0.6129848229342327,
"repo_name": "google/blockly-samples",
"id": "20c07f0a65171c6e4b88512652a4baa853cdef49",
"size": "1304",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "plugins/field-date/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "25484"
},
{
"name": "JavaScript",
"bytes": "1044163"
},
{
"name": "Ruby",
"bytes": "144"
},
{
"name": "SCSS",
"bytes": "6352"
},
{
"name": "TypeScript",
"bytes": "25813"
}
]
}
|
@interface Setting : NSObject{
NSUserDefaults *defaults;
}
-(id)init;
//getter
-(int)getOpacity;
-(bool)isAllwaysOnTop;
-(bool)isShowWindow;
-(bool)isIgnoreMouse;
-(bool)isNotificationCenterEnabled;
-(bool)isGrowlEnabled;
//setter
-(void)setOpacity:(int)opacity;
-(void)setIsAllowOnTop:(bool)enable;
-(void)setIsShowWindow:(bool)enable;
-(void)setIsIgnoreMouse:(bool)enable;
-(void)setIsNotificationCenterEnabled:(bool)enable;
-(void)setIsGrowlEnabled:(bool)enable;
-(void)setBool:(_Bool)enable forKey:(NSString*)key;
@end
|
{
"content_hash": "35c9ce6f9494dc9f52247ae563c6f203",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 51,
"avg_line_length": 23.043478260869566,
"alnum_prop": 0.7641509433962265,
"repo_name": "yushi/PBNotify",
"id": "684dfb710453936bfb3438e98a66f21d23645bb5",
"size": "702",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "pbgrowl/Setting.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "15807"
},
{
"name": "C++",
"bytes": "702"
},
{
"name": "Objective-C",
"bytes": "60163"
},
{
"name": "Ruby",
"bytes": "760"
},
{
"name": "Shell",
"bytes": "723"
}
]
}
|
An emulator for the Nintendo GameBoy written in Python.
|
{
"content_hash": "b98b6101822643adc832030ae97d5bbf",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 55,
"avg_line_length": 56,
"alnum_prop": 0.8214285714285714,
"repo_name": "ciaran2/pyGB",
"id": "ff240d2210ee52965f0196ed6c016329d2b97d49",
"size": "63",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "7539"
}
]
}
|
require 'soap/wsdlDriver'
class RegonlineConnector
class Client
# This class provides RegOnline's
# getEventRegistrations.asmx[http://www.regonline.com/webservices/geteventregistrations.asmx]
# service.
class GetEventRegistrations
def initialize(event_id, username, password )
@event_id = event_id
@username = username
@password = password
@wsdl = 'http://www.regonline.com/webservices/getEventRegistrations.asmx?WSDL'
@registrant_getter = SOAP::WSDLDriverFactory.new(@wsdl).create_rpc_driver
end
def RetrieveRegistrationInfo
response = @registrant_getter.RetrieveRegistrationInfo(
{"login" => @username,
"password" => @password,
"eventID" => @event_id})
response.retrieveRegistrationInfoResult
end
end
end
end
|
{
"content_hash": "b4f5b113d43c46cc120a14decf6d53d2",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 97,
"avg_line_length": 34.758620689655174,
"alnum_prop": 0.5654761904761905,
"repo_name": "disciplemakers/RO-Connector",
"id": "c5fa4763fa791278993f163f0b188a16265ba070",
"size": "1008",
"binary": false,
"copies": "1",
"ref": "refs/heads/roc_tests",
"path": "lib/regonlineconnector/client/geteventregistrations.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "127386"
}
]
}
|
@implementation TLSettingHelper
- (id) init
{
if (self = [super init]) {
self.mineSettingData = [[NSMutableArray alloc] init];
[self p_initTestData];
}
return self;
}
- (void) p_initTestData
{
TLSettingItem *item1 = TLCreateSettingItem(@"账号与安全");
// if () {
item1.subTitle = @"已保护";
item1.rightImagePath = @"setting_lockon";
// }
// else {
// item1.subTitle = @"为保护";
// item1.rightImagePath = @"setting_lockoff";
// }
TLSettingGroup *group1 = TLCreateSettingGroup(nil, nil, @[item1]);
TLSettingItem *item2 = TLCreateSettingItem(@"新消息通知");
TLSettingItem *item3 = TLCreateSettingItem(@"隐私");
TLSettingItem *item4 = TLCreateSettingItem(@"通用");
TLSettingGroup *group2 = TLCreateSettingGroup(nil, nil, (@[item2, item3, item4]));
TLSettingItem *item5 = TLCreateSettingItem(@"帮助与反馈");
TLSettingItem *item6 = TLCreateSettingItem(@"关于微信");
TLSettingGroup *group3 = TLCreateSettingGroup(nil, nil, (@[item5, item6]));
TLSettingItem *item7 = TLCreateSettingItem(@"退出登录");
item7.type = TLSettingItemTypeTitleButton;
TLSettingGroup *group4 = TLCreateSettingGroup(nil, nil, @[item7]);
[self.mineSettingData addObjectsFromArray:@[group1, group2, group3, group4]];
}
@end
|
{
"content_hash": "ccc51e2d22e66946c24cd6a247dd3451",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 86,
"avg_line_length": 31.73170731707317,
"alnum_prop": 0.6502690238278247,
"repo_name": "dwjdwj1216/xiaoYouBang",
"id": "d3facbe3b138695a45bcbef467f0e9d0b652b62a",
"size": "1532",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "TLChat/Business/Setting/TLSettingHelper.m",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "276"
},
{
"name": "JavaScript",
"bytes": "1052"
},
{
"name": "Objective-C",
"bytes": "1167285"
},
{
"name": "Ruby",
"bytes": "434"
}
]
}
|
"""
Use nose
`$ pip install nose`
`$ nosetests`
"""
from hyde.model import Config, Expando
from hyde.fs import *
def test_expando_one_level():
d = {"a": 123, "b": "abc"}
x = Expando(d)
assert x.a == d['a']
assert x.b == d['b']
def test_expando_two_levels():
d = {"a": 123, "b": {"c": 456}}
x = Expando(d)
assert x.a == d['a']
assert x.b.c == d['b']['c']
def test_expando_three_levels():
d = {"a": 123, "b": {"c": 456, "d": {"e": "abc"}}}
x = Expando(d)
assert x.a == d['a']
assert x.b.c == d['b']['c']
assert x.b.d.e == d['b']['d']['e']
def test_expando_update():
d1 = {"a": 123, "b": "abc"}
x = Expando(d1)
assert x.a == d1['a']
assert x.b == d1['b']
d = {"b": {"c": 456, "d": {"e": "abc"}}, "f": "lmn"}
x.update(d)
assert x.a == d1['a']
assert x.b.c == d['b']['c']
assert x.b.d.e == d['b']['d']['e']
assert x.f == d["f"]
d2 = {"a": 789, "f": "opq"}
y = Expando(d2)
x.update(y)
assert x.a == 789
assert x.f == "opq"
def test_expando_to_dict():
d = {"a": 123, "b": {"c": 456, "d": {"e": "abc"}}}
x = Expando(d)
assert d == x.to_dict()
def test_expando_to_dict_with_update():
d1 = {"a": 123, "b": "abc"}
x = Expando(d1)
d = {"b": {"c": 456, "d": {"e": "abc"}}, "f": "lmn"}
x.update(d)
expected = {}
expected.update(d1)
expected.update(d)
assert expected == x.to_dict()
d2 = {"a": 789, "f": "opq"}
y = Expando(d2)
x.update(y)
expected.update(d2)
assert expected == x.to_dict()
TEST_SITE = File(__file__).parent.child_folder('_test')
import yaml
class TestConfig(object):
@classmethod
def setup_class(cls):
cls.conf1 = """
mode: development
content_root: stuff # Relative path from site root
media_root: media # Relative path from site root
media_url: /media
widgets:
plugins:
aggregators:
"""
cls.conf2 = """
mode: development
deploy_root: ~/deploy_site
content_root: site/stuff # Relative path from site root
media_root: mmm # Relative path from site root
media_url: /media
widgets:
plugins:
aggregators:
"""
def setUp(self):
TEST_SITE.make()
TEST_SITE.parent.child_folder('sites/test_jinja').copy_contents_to(TEST_SITE)
def tearDown(self):
TEST_SITE.delete()
def test_default_configuration(self):
c = Config(sitepath=TEST_SITE, config_dict={})
for root in ['content', 'layout']:
name = root + '_root'
path = name + '_path'
assert hasattr(c, name)
assert getattr(c, name) == root
assert hasattr(c, path)
assert getattr(c, path) == TEST_SITE.child_folder(root)
assert c.media_root_path == c.content_root_path.child_folder('media')
assert hasattr(c, 'plugins')
assert len(c.plugins) == 0
assert hasattr(c, 'ignore')
assert c.ignore == ["*~", "*.bak", ".hg", ".git", ".svn"]
assert c.deploy_root_path == TEST_SITE.child_folder('deploy')
assert c.not_found == '404.html'
assert c.meta.nodemeta == 'meta.yaml'
def test_conf1(self):
c = Config(sitepath=TEST_SITE, config_dict=yaml.load(self.conf1))
assert c.content_root_path == TEST_SITE.child_folder('stuff')
def test_conf2(self):
c = Config(sitepath=TEST_SITE, config_dict=yaml.load(self.conf2))
assert c.content_root_path == TEST_SITE.child_folder('site/stuff')
assert c.media_root_path == c.content_root_path.child_folder('mmm')
assert c.media_url == TEST_SITE.child_folder('/media')
assert c.deploy_root_path == Folder('~/deploy_site')
def test_read_from_file_by_default(self):
File(TEST_SITE.child('site.yaml')).write(self.conf2)
c = Config(sitepath=TEST_SITE)
assert c.content_root_path == TEST_SITE.child_folder('site/stuff')
assert c.media_root_path == c.content_root_path.child_folder('mmm')
assert c.media_url == TEST_SITE.child_folder('/media')
assert c.deploy_root_path == Folder('~/deploy_site')
def test_read_from_specified_file(self):
File(TEST_SITE.child('another.yaml')).write(self.conf2)
c = Config(sitepath=TEST_SITE, config_file='another.yaml')
assert c.content_root_path == TEST_SITE.child_folder('site/stuff')
assert c.media_root_path == c.content_root_path.child_folder('mmm')
assert c.media_url == TEST_SITE.child_folder('/media')
assert c.deploy_root_path == Folder('~/deploy_site')
def test_extends(self):
another = """
extends: site.yaml
mode: production
media_root: xxx
"""
File(TEST_SITE.child('site.yaml')).write(self.conf2)
File(TEST_SITE.child('another.yaml')).write(another)
c = Config(sitepath=TEST_SITE, config_file='another.yaml')
assert c.mode == 'production'
assert c.content_root_path == TEST_SITE.child_folder('site/stuff')
assert c.media_root_path == c.content_root_path.child_folder('xxx')
assert c.media_url == TEST_SITE.child_folder('/media')
assert c.deploy_root_path == Folder('~/deploy_site')
|
{
"content_hash": "e3a8731a70f3f793e60de334384a34f1",
"timestamp": "",
"source": "github",
"line_count": 158,
"max_line_length": 85,
"avg_line_length": 33.56962025316456,
"alnum_prop": 0.5612745098039216,
"repo_name": "Valloric/hyde",
"id": "22c58457cce371ed3619e60438bc636d8efc2748",
"size": "5328",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "hyde/tests/test_model.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "73"
},
{
"name": "Python",
"bytes": "389945"
}
]
}
|
@class CALayer;
#else
typedef void* CALayer;
#endif
namespace gl {
class GL_EXPORT GLImageIOSurface : public GLImage {
public:
static GLImageIOSurface* Create(const gfx::Size& size,
unsigned internalformat);
GLImageIOSurface(const GLImageIOSurface&) = delete;
GLImageIOSurface& operator=(const GLImageIOSurface&) = delete;
// Initialize to wrap of |io_surface|. The format of the plane to wrap is
// specified in |format|. The index of the plane to wrap is
// |io_surface_plane|. If |format| is a multi-planar format (e.g,
// YUV_420_BIPLANAR or P010), then this will automatically convert from YUV
// to RGB, and |io_surface_plane| is ignored.
bool Initialize(IOSurfaceRef io_surface,
uint32_t io_surface_plane,
gfx::GenericSharedMemoryId io_surface_id,
gfx::BufferFormat format);
// IOSurfaces coming from video decode are wrapped in a CVPixelBuffer
// and may be discarded if the owning CVPixelBuffer is destroyed. This
// initialization will ensure that the CVPixelBuffer be retained for the
// lifetime of the GLImage.
bool InitializeWithCVPixelBuffer(CVPixelBufferRef cv_pixel_buffer,
uint32_t io_surface_plane,
gfx::GenericSharedMemoryId io_surface_id,
gfx::BufferFormat format);
// Overridden from GLImage:
gfx::Size GetSize() override;
unsigned GetInternalFormat() override;
unsigned GetDataType() override;
BindOrCopy ShouldBindOrCopy() override;
bool BindTexImage(unsigned target) override;
bool BindTexImageWithInternalformat(unsigned target,
unsigned internalformat) override;
void ReleaseTexImage(unsigned target) override {}
bool CopyTexImage(unsigned target) override;
bool CopyTexSubImage(unsigned target,
const gfx::Point& offset,
const gfx::Rect& rect) override;
void SetColorSpace(const gfx::ColorSpace& color_space) override;
void Flush() override {}
void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
uint64_t process_tracing_id,
const std::string& dump_name) override;
bool EmulatingRGB() const override;
bool IsInUseByWindowServer() const override;
void DisableInUseByWindowServer() override;
gfx::GenericSharedMemoryId io_surface_id() const { return io_surface_id_; }
base::ScopedCFTypeRef<IOSurfaceRef> io_surface();
base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer();
// For IOSurfaces that need manual conversion to a GL texture before being
// sampled from, specify the color space in which to do the required YUV to
// RGB transformation.
void SetColorSpaceForYUVToRGBConversion(const gfx::ColorSpace& color_space);
// Sets the color space of the GLImage without modifying the underlying
// IOSurface. Callers should ensure the color spaces match.
void SetColorSpaceShallow(const gfx::ColorSpace& color_space);
static unsigned GetInternalFormatForTesting(gfx::BufferFormat format);
// Downcasts from |image|. Returns |nullptr| on failure.
static GLImageIOSurface* FromGLImage(GLImage* image);
protected:
GLImageIOSurface(const gfx::Size& size, unsigned internalformat);
~GLImageIOSurface() override;
virtual bool BindTexImageImpl(unsigned target, unsigned internalformat);
static bool ValidFormat(gfx::BufferFormat format);
Type GetType() const override;
class RGBConverter;
const gfx::Size size_;
// The "internalformat" exposed to the command buffer, which may not be
// "internalformat" requested by the client.
const unsigned internalformat_;
// The "internalformat" requested by the client.
const unsigned client_internalformat_;
gfx::BufferFormat format_;
base::ScopedCFTypeRef<IOSurfaceRef> io_surface_;
base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer_;
gfx::GenericSharedMemoryId io_surface_id_;
// The plane that is bound for this image. If the plane is invalid, then
// this is a multi-planar IOSurface, which will be copied instead of bound.
static constexpr uint32_t kInvalidIOSurfacePlane = -1;
uint32_t io_surface_plane_ = kInvalidIOSurfacePlane;
base::ThreadChecker thread_checker_;
// The default value of Rec. 601 is based on historical shader code.
gfx::ColorSpace color_space_for_yuv_to_rgb_ = gfx::ColorSpace::CreateREC601();
bool disable_in_use_by_window_server_ = false;
};
} // namespace gl
#endif // UI_GL_GL_IMAGE_IO_SURFACE_H_
|
{
"content_hash": "d86857984d8f033b4720e315f0c6d90e",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 80,
"avg_line_length": 40.9375,
"alnum_prop": 0.7110141766630316,
"repo_name": "scheib/chromium",
"id": "ed1194cbc00586c74462b4cab1a4b8abf0d65593",
"size": "5189",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "ui/gl/gl_image_io_surface.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": []
}
|
redirect_from: /docs/1.0.0-alpha.5/classes/state.statebuilder.html
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>StateBuilder | UI-Router</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="stylesheet" href="../assets/css/typedoctheme.css">
<script src="../assets/js/modernizr.js"></script>
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">UI-Router</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../globals.html">Globals</a>
</li>
<li>
<a href="../modules/state.html">state</a>
</li>
<li>
<a href="state.statebuilder.html">StateBuilder</a>
</li>
</ul>
<h1>Class StateBuilder</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<dl class="tsd-comment-tags">
<dt>internalapi</dt>
<dd><p>A internal global service</p>
<p>StateBuilder is a factory for the internal <a href="state.state-1.html">State</a> objects.</p>
<p>When you register a state with the <a href="state.stateregistry.html">StateRegistry</a>, you register a plain old javascript object which
conforms to the <a href="../interfaces/state.statedeclaration.html">StateDeclaration</a> interface. This factory takes that object and builds the corresponding
<a href="state.state-1.html">State</a> object, which has an API and is used internally.</p>
<p>Custom properties or API may be added to the internal <a href="state.state-1.html">State</a> object by registering a decorator function
using the <a href="state.statebuilder.html#builder">builder</a> method.</p>
</dd>
</dl>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">StateBuilder</span>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section ">
<h3>Constructors</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="state.statebuilder.html#constructor" class="tsd-kind-icon">constructor</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-private tsd-is-private-protected">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="state.statebuilder.html#builders" class="tsd-kind-icon">builders</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="state.statebuilder.html#matcher" class="tsd-kind-icon">matcher</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class"><a href="state.statebuilder.html#build" class="tsd-kind-icon">build</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="state.statebuilder.html#builder" class="tsd-kind-icon">builder</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="state.statebuilder.html#name" class="tsd-kind-icon">name</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="state.statebuilder.html#parentname" class="tsd-kind-icon">parent<wbr>Name</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Constructors</h2>
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
<a name="constructor" class="tsd-anchor"></a>
<!---->
<!--<h3>constructor</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">new <wbr>State<wbr>Builder<span class="tsd-signature-symbol">(</span>matcher<span class="tsd-signature-symbol">: </span><a href="state.statematcher.html" class="tsd-signature-type">StateMatcher</a>, $urlMatcherFactoryProvider<span class="tsd-signature-symbol">: </span><a href="url.urlmatcherfactory.html" class="tsd-signature-type">UrlMatcherFactory</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="state.statebuilder.html" class="tsd-signature-type">StateBuilder</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>matcher: <a href="state.statematcher.html" class="tsd-signature-type">StateMatcher</a></h5>
</li>
<li>
<h5>$urlMatcherFactoryProvider: <a href="url.urlmatcherfactory.html" class="tsd-signature-type">UrlMatcherFactory</a></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="state.statebuilder.html" class="tsd-signature-type">StateBuilder</a></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/HEAD/src/state/stateBuilder.ts#L47">state/stateBuilder.ts:47</a></li>
</ul>
</aside> </li>
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-private tsd-is-private-protected">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="builders" class="tsd-anchor"></a>
<!---->
<!--<h3><span class="tsd-flag ts-flagPrivate">Private</span> builders</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">builders<span class="tsd-signature-symbol">:</span> <a href="../interfaces/state.builders.html" class="tsd-signature-type">Builders</a> <div class="tsd-header">
<p> An object that contains all the BuilderFunctions registered, key'd by the name of the State property they build </p>
</div>
</div>
<div class="tsd-declaration">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>An object that contains all the BuilderFunctions registered, key'd by the name of the State property they build</p>
</div>
</div>
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/HEAD/src/state/stateBuilder.ts#L47">state/stateBuilder.ts:47</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="matcher" class="tsd-anchor"></a>
<!---->
<!--<h3><span class="tsd-flag ts-flagPrivate">Private</span> matcher</h3>-->
<!---->
<div class="tsd-signature tsd-kind-icon">matcher<span class="tsd-signature-symbol">:</span> <a href="state.statematcher.html" class="tsd-signature-type">StateMatcher</a></div>
<div class="tsd-declaration">
</div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/HEAD/src/state/stateBuilder.ts#L49">state/stateBuilder.ts:49</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="build" class="tsd-anchor"></a>
<!---->
<!--<h3>build</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">build<span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><a href="state.state-1.html" class="tsd-signature-type">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="state.state-1.html" class="tsd-signature-type">State</a></li>
<li class="tsd-header">
<p> Builds all of the properties on an essentially blank State object, returning a State object which has all its
properties and API built. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Builds all of the properties on an essentially blank State object, returning a State object which has all its
properties and API built.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>state: <a href="state.state-1.html" class="tsd-signature-type">State</a></h5>
: <div class="tsd-comment tsd-typography">
<p>an uninitialized State object</p>
</div>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <a href="state.state-1.html" class="tsd-signature-type">State</a></h4>
: <p>the built State object</p>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/HEAD/src/state/stateBuilder.ts#L149">state/stateBuilder.ts:149</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="builder" class="tsd-anchor"></a>
<!---->
<!--<h3>builder</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">builder<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, fn<span class="tsd-signature-symbol">: </span><a href="../modules/state.html#builderfunction" class="tsd-signature-type">BuilderFunction</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">function</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">function</span></li>
<li class="tsd-header">
<p> Registers a <a href="../modules/state.html#builderfunction">BuilderFunction</a> for a specific <a href="state.state-1.html">State</a> property (e.g., <code>parent</code>, <code>url</code>, or <code>path</code>).
More than one BuilderFunction can be registered for a given property. </p>
</li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Registers a <a href="../modules/state.html#builderfunction">BuilderFunction</a> for a specific <a href="state.state-1.html">State</a> property (e.g., <code>parent</code>, <code>url</code>, or <code>path</code>).
More than one BuilderFunction can be registered for a given property.</p>
</div>
<p>The BuilderFunction(s) will be used to define the property on any subsequently built <a href="state.state-1.html">State</a> objects.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>name: <span class="tsd-signature-type">string</span></h5>
: <div class="tsd-comment tsd-typography">
<p>The name of the State property being registered for.</p>
</div>
</li>
<li>
<h5>fn: <a href="../modules/state.html#builderfunction" class="tsd-signature-type">BuilderFunction</a></h5>
: <div class="tsd-comment tsd-typography">
<p>The BuilderFunction which will be used to build the State property</p>
</div>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">function</span><span class="tsd-signature-symbol">></span>
<span class="tsd-signature-symbol"> | </span>
<span class="tsd-signature-type">function</span>
</h4>
: <p>a function which deregisters the BuilderFunction</p>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/HEAD/src/state/stateBuilder.ts#L130">state/stateBuilder.ts:130</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="name" class="tsd-anchor"></a>
<!---->
<!--<h3>name</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>state: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/HEAD/src/state/stateBuilder.ts#L169">state/stateBuilder.ts:169</a></li>
</ul>
</aside> </li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="parentname" class="tsd-anchor"></a>
<!---->
<!--<h3>parent<wbr>Name</h3>-->
<!---->
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">parent<wbr>Name<span class="tsd-signature-symbol">(</span>state<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>state: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<div class="tsd-returns">
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</div>
<hr>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/angular-ui/ui-router/blob/HEAD/src/state/stateBuilder.ts#L162">state/stateBuilder.ts:162</a></li>
</ul>
</aside> </li>
</ul>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../globals.html"><em>Globals</em></a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_ng2_componentutil_.html">"ng2/component<wbr>Util"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_ng2_location_.html">"ng2/location"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/common.html">common</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/common_hof.html">common_<wbr>hof</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/common_predicates.html">common_<wbr>predicates</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/common_strings.html">common_<wbr>strings</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/core.html">core</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/justjs.html">justjs</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/ng1.html">ng1</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/ng1_directives.html">ng1_<wbr>directives</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/ng1_state_events.html">ng1_<wbr>state_<wbr>events</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/ng2.html">ng2</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/ng2_directives.html">ng2_<wbr>directives</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/params.html">params</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/path.html">path</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/resolve.html">resolve</a>
</li>
<li class="current tsd-kind-external-module">
<a href="../modules/state.html">state</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/trace.html">trace</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/transition.html">transition</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/url.html">url</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/view.html">view</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.enterexithooks.html" class="tsd-kind-icon">Enter<wbr>Exit<wbr>Hooks</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.glob.html" class="tsd-kind-icon">Glob</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.resolvehooks.html" class="tsd-kind-icon">Resolve<wbr>Hooks</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.state-1.html" class="tsd-kind-icon">State</a>
</li>
</ul>
<ul class="current">
<li class="current tsd-kind-class tsd-parent-kind-external-module">
<a href="state.statebuilder.html" class="tsd-kind-icon">State<wbr>Builder</a>
<ul>
<li class=" tsd-kind-constructor tsd-parent-kind-class">
<a href="state.statebuilder.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="state.statebuilder.html#builders" class="tsd-kind-icon">builders</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="state.statebuilder.html#matcher" class="tsd-kind-icon">matcher</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="state.statebuilder.html#build" class="tsd-kind-icon">build</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="state.statebuilder.html#builder" class="tsd-kind-icon">builder</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="state.statebuilder.html#name" class="tsd-kind-icon">name</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="state.statebuilder.html#parentname" class="tsd-kind-icon">parent<wbr>Name</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.statematcher.html" class="tsd-kind-icon">State<wbr>Matcher</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.stateprovider.html" class="tsd-kind-icon">State<wbr>Provider</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.statequeuemanager.html" class="tsd-kind-icon">State<wbr>Queue<wbr>Manager</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.stateregistry.html" class="tsd-kind-icon">State<wbr>Registry</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.stateservice.html" class="tsd-kind-icon">State<wbr>Service</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.targetstate.html" class="tsd-kind-icon">Target<wbr>State</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.transitionmanager.html" class="tsd-kind-icon">Transition<wbr>Manager</a>
</li>
<li class=" tsd-kind-class tsd-parent-kind-external-module">
<a href="state.viewhooks.html" class="tsd-kind-icon">View<wbr>Hooks</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../interfaces/state.builders.html" class="tsd-kind-icon">Builders</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="../interfaces/state.hrefoptions.html" class="tsd-kind-icon">Href<wbr>Options</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="../interfaces/state.statedeclaration.html" class="tsd-kind-icon">State<wbr>Declaration</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-external-module">
<a href="../interfaces/state.transitionpromise.html" class="tsd-kind-icon">Transition<wbr>Promise</a>
</li>
<li class=" tsd-kind-type-alias tsd-parent-kind-external-module">
<a href="../modules/state.html#builderfunction" class="tsd-kind-icon">Builder<wbr>Function</a>
</li>
<li class=" tsd-kind-type-alias tsd-parent-kind-external-module">
<a href="../modules/state.html#stateorname" class="tsd-kind-icon">State<wbr>OrName</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/state.html#eager" class="tsd-kind-icon">EAGER</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/state.html#lazy" class="tsd-kind-icon">LAZY</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module">
<a href="../modules/state.html#_includedbystatefilter" class="tsd-kind-icon">$<wbr>Included<wbr>ByState<wbr>Filter</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module">
<a href="../modules/state.html#_isstatefilter" class="tsd-kind-icon">$<wbr>IsState<wbr>Filter</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/state.html#parseurl" class="tsd-kind-icon">parse<wbr>Url</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="http://typedoc.io" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>
|
{
"content_hash": "73beefb55254a2aae28a09056ec4e829",
"timestamp": "",
"source": "github",
"line_count": 593,
"max_line_length": 702,
"avg_line_length": 50.98482293423272,
"alnum_prop": 0.636270424025931,
"repo_name": "ui-router/ui-router.github.io",
"id": "da9d2df6f143224f6c07e94e45a07ff4694e18e0",
"size": "30238",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "_ng1_docs/1.0.0-alpha.5/classes/state.statebuilder.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "4640890"
},
{
"name": "HTML",
"bytes": "276915023"
},
{
"name": "JavaScript",
"bytes": "831953"
},
{
"name": "Ruby",
"bytes": "140"
},
{
"name": "SCSS",
"bytes": "66332"
},
{
"name": "Shell",
"bytes": "5090"
}
]
}
|
import json
import os
import urllib2
def num_active_mesos_tasks():
"""
An example metric used by the relay.mesos demo to query mesos master
for the number of currently running tasks.
"""
while True:
data = json.load(urllib2.urlopen(
os.environ['RELAY_MESOS_MASTER_STATE_FOR_DEMO']))
yield data['started_tasks'] + data['staged_tasks'] - (
data['failed_tasks'] + data['killed_tasks'] +
data['lost_tasks'] + data['finished_tasks'])
def target_value():
"""
An example target used by the relay.mesos demo to set the target number of
currently running tasks at a given point in time
"""
while True:
yield 40 # you could have any arbitrary logic you wish here...
|
{
"content_hash": "730e0bf8f5160c0599dcd287b021369b",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 78,
"avg_line_length": 30.44,
"alnum_prop": 0.633377135348226,
"repo_name": "sailthru/relay.mesos",
"id": "accace4f4ad450d4504150b0f00b480700330d93",
"size": "761",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "relay_mesos/for_demo.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Python",
"bytes": "32704"
},
{
"name": "Shell",
"bytes": "1419"
}
]
}
|
NS_ASSUME_NONNULL_BEGIN
@interface CategoriesOfBlockViewController : UIViewController
@end
NS_ASSUME_NONNULL_END
|
{
"content_hash": "4dd7e08fed79e8f508fbe11b98974e4d",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 61,
"avg_line_length": 16.571428571428573,
"alnum_prop": 0.8362068965517241,
"repo_name": "chinesemanbobo/PPDemo",
"id": "fd2198d3d94c5f91a2fff1b71d0192553727fd6b",
"size": "237",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "PPDemo/Summary「总览」/Code Verification「实践是检验真理的唯一标准」/UnderlyingInquiry「底层探究」/Block/Block的分类/CategoriesOfBlockViewController.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "26702"
},
{
"name": "HTML",
"bytes": "12378"
},
{
"name": "Objective-C",
"bytes": "1232486"
},
{
"name": "Objective-C++",
"bytes": "734"
},
{
"name": "Ruby",
"bytes": "662"
}
]
}
|
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "0bb9d4861e4573dfafbd024accbeb280",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "957810f9922d145f15807de3706cee048cf1e0e9",
"size": "209",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Chlorophyta/Chlorophyceae/Oedogoniales/Oedogoniaceae/Bulbochaete/Bulbochaete obliqua/Bulbochaete obliqua subreticulata/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": []
}
|
<?php
namespace DTS\eBaySDK\Finding\Types\Test;
use DTS\eBaySDK\Finding\Types\CategoryHistogramContainer;
class CategoryHistogramContainerTest extends \PHPUnit_Framework_TestCase
{
private $obj;
protected function setUp()
{
$this->obj = new CategoryHistogramContainer();
}
public function testCanBeCreated()
{
$this->assertInstanceOf('\DTS\eBaySDK\Finding\Types\CategoryHistogramContainer', $this->obj);
}
public function testExtendsBaseType()
{
$this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj);
}
}
|
{
"content_hash": "5b537ac5d75b72d7e81259354b1db478",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 101,
"avg_line_length": 22.653846153846153,
"alnum_prop": 0.6977928692699491,
"repo_name": "emullaraj/ebay-sdk-php",
"id": "ef594a69b428767808850e59c750ddc85c710f22",
"size": "1319",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/DTS/eBaySDK/Finding/Types/CategoryHistogramContainerTest.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Makefile",
"bytes": "1933"
},
{
"name": "PHP",
"bytes": "8374034"
}
]
}
|
import Ember from 'ember';
import { SafeString } from '@ember/template/-private/handlebars';
const { dasherize, camelize, capitalize, classify, decamelize, htmlSafe, loc, underscore, w } = Ember.String;
dasherize(); // $ExpectError
dasherize('blue man group'); // $ExpectType string
dasherize('', ''); // $ExpectError
camelize(); // $ExpectError
camelize('blue man group'); // $ExpectType string
camelize('', ''); // $ExpectError
decamelize(); // $ExpectError
decamelize('blue man group'); // $ExpectType string
decamelize('', ''); // $ExpectError
underscore(); // $ExpectError
underscore('blue man group'); // $ExpectType string
underscore('', ''); // $ExpectError
w(); // $ExpectError
w('blue man group'); // $ExpectType string[]
w('', ''); // $ExpectError
classify(); // $ExpectError
classify('blue man group'); // $ExpectType string
classify('', ''); // $ExpectError
capitalize(); // $ExpectError
capitalize('blue man group'); // $ExpectType string
capitalize('', ''); // $ExpectError
loc(); // $ExpectError
loc("_Hello World"); // $ExpectType string
// TODO - fix this case upstream in @types/ember https://github.com/typed-ember/ember-cli-typescript/issues/281
loc("_Hello %@ %@", ["John", "Smith"]); // $ExpectType string
const handlebarsSafeString: SafeString = Ember.String.htmlSafe('lorem ipsum...');
Ember.String.htmlSafe('lorem ipsum...'); // $ExpectType SafeString
const regularString: string = Ember.String.htmlSafe('lorem ipsum...'); // $ExpectError
|
{
"content_hash": "18f57bea76ab3437fb5aac25d81acfff",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 111,
"avg_line_length": 36.02439024390244,
"alnum_prop": 0.6838185511171293,
"repo_name": "dsebastien/DefinitelyTyped",
"id": "ec79b98db33753ddbfbd7cdfe95e3266dcd5137a",
"size": "1477",
"binary": false,
"copies": "17",
"ref": "refs/heads/master",
"path": "types/ember/test/string.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CoffeeScript",
"bytes": "15"
},
{
"name": "HTML",
"bytes": "308"
},
{
"name": "Protocol Buffer",
"bytes": "678"
},
{
"name": "TypeScript",
"bytes": "20293816"
}
]
}
|
End of preview.
No dataset card yet
- Downloads last month
- 5