- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for wholeLine (0.23 sec)
-
src/os/user/lookup_unix.go
// Simple common case: line is short enough to fit in a // single reader's buffer. if !isPrefix && len(wholeLine) == 0 { wholeLine = line break } wholeLine = append(wholeLine, line...) // Check if we read the whole line (or enough columns) // already. if !isPrefix || bytes.Count(wholeLine, []byte{':'}) >= readCols { break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 6K bytes - Viewed (0) -
src/mime/quotedprintable/reader.go
// Does the line end in CRLF instead of just LF? hasLF := bytes.HasSuffix(r.line, lf) hasCR := bytes.HasSuffix(r.line, crlf) wholeLine := r.line r.line = bytes.TrimRightFunc(wholeLine, isQPDiscardWhitespace) if bytes.HasSuffix(r.line, softSuffix) { rightStripped := wholeLine[len(r.line):] r.line = r.line[:len(r.line)-1] if !bytes.HasPrefix(rightStripped, lf) && !bytes.HasPrefix(rightStripped, crlf) &&
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 27 17:00:08 UTC 2018 - 3.6K bytes - Viewed (0) -
testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/fixtures/CompilationCache.kt
stage1 = CachedScript.CompilationStage(Settings, ScriptPlugin, "stage1", Descriptions.script, file), stage2 = CachedScript.CompilationStage(Settings, ScriptPlugin, "stage2", Descriptions.script, file, hasBuildscriptBlock && hasBody) ) fun cachedBuildFile(file: File, hasBody: Boolean = false) = CachedScript.WholeFile( stage1 = CachedScript.CompilationStage(Project, TopLevel, "stage1", Descriptions.buildFile, file),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.3K bytes - Viewed (0) -
testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/fixtures/ClassLoadingCache.kt
cachedScripts.forEach { assertClassLoads(it, 0) } private fun assertClassLoads(cachedScript: CachedScript, count: Int) = when (cachedScript) { is CachedScript.WholeFile -> cachedScript.stages.forEach { assertClassLoads(it, count) } is CachedScript.CompilationStage -> assertClassLoads(cachedScript, count) } private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.6K bytes - Viewed (0) -
testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/fixtures/KotlinDslCacheFixtures.kt
internal interface KotlinDslCacheFixture { fun misses(vararg cachedScripts: CachedScript) fun hits(vararg cachedScripts: CachedScript) } sealed class CachedScript { class WholeFile( val stage1: CompilationStage, val stage2: CompilationStage ) : CachedScript() { val stages = listOf(stage1, stage2) } class CompilationStage(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/hash_table_asset_v1.py
def test(): vocabulary_file = write_vocabulary_file(['cat', 'is', 'on', 'the', 'mat']) table_initializer = tf.lookup.TextFileInitializer( vocabulary_file, tf.string, tf.lookup.TextFileIndex.WHOLE_LINE, tf.int64, tf.lookup.TextFileIndex.LINE_NUMBER) # Incur another bound_input on the asset, but with a different sym_name, i.e., # __tf_saved_model_asset1_tokens.txt vs. __tf_saved_model_asset0_tokens.txt.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 08:49:35 UTC 2023 - 3.2K bytes - Viewed (0) -
tensorflow/cc/saved_model/testdata/generate_saved_models.py
self.table = lookup_ops.StaticHashTable( lookup_ops.TextFileInitializer(self.asset, dtypes.string, lookup_ops.TextFileIndex.WHOLE_LINE, dtypes.int64, lookup_ops.TextFileIndex.LINE_NUMBER), -1) @def_function.function(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 18 18:06:18 UTC 2023 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import.cc
// Now, this pattern matching only supports the following case, which is // commonly used among inference use cases: // // tf.lookup.TextFileInitializer( // "test.txt", tf.string, tf.lookup.TextFileIndex.WHOLE_LINE, // tf.int64, tf.lookup.TextFileIndex.LINE_NUMBER, delimiter=" ") // // In the above case, the delimiter will be not used since the key is just a // whole line and value is a line number.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 6.1K bytes - Viewed (0)