Home
last modified time | relevance | path

Searched full:csv (Results 1 – 25 of 258) sorted by relevance

1234567891011

/third_party/python/Lib/test/
Dtest_csv.py2 # csv package unit tests
9 import csv
26 Test the underlying C csv parser in ways that are not appropriate
36 self.assertRaises(csv.Error, ctor, arg, 'foo')
44 quoting=csv.QUOTE_ALL, quotechar='')
46 quoting=csv.QUOTE_ALL, quotechar=None)
48 quoting=csv.QUOTE_NONE, quotechar='')
51 self._test_arg_valid(csv.reader, [])
52 self.assertRaises(OSError, csv.reader, BadIterable())
55 self._test_arg_valid(csv.writer, StringIO())
[all …]
/third_party/python/Doc/library/
Dcsv.rst1 :mod:`csv` --- CSV File Reading and Writing
4 .. module:: csv
9 **Source code:** :source:`Lib/csv.py`
12 single: csv
17 The so-called CSV (Comma Separated Values) format is the most common import and
18 export format for spreadsheets and databases. CSV format was used for many
22 differences can make it annoying to process CSV files from multiple sources.
28 The :mod:`csv` module implements classes to read and write tabular data in CSV
31 knowing the precise details of the CSV format used by Excel. Programmers can
32 also describe the CSV formats understood by other applications or define their
[all …]
/third_party/littlefs/
DMakefile43 TEST_CSV := $(TEST_RUNNER:%=%.csv)
60 BENCH_CSV := $(BENCH_RUNNER:%=%.csv)
203 code: $(OBJ) $(BUILDDIR)/lfs.code.csv
209 ./scripts/code.py $^ $(CODEFLAGS) -d $(BUILDDIR)/lfs.code.csv
214 data: $(OBJ) $(BUILDDIR)/lfs.data.csv
220 ./scripts/data.py $^ $(DATAFLAGS) -d $(BUILDDIR)/lfs.data.csv
225 stack: $(CI) $(BUILDDIR)/lfs.stack.csv
231 ./scripts/stack.py $^ $(STACKFLAGS) -d $(BUILDDIR)/lfs.stack.csv
237 $(BUILDDIR)/lfs.code.csv \
238 $(BUILDDIR)/lfs.data.csv \
[all …]
D.gitignore6 *.csv
18 lfs.code.csv
19 lfs.data.csv
20 lfs.stack.csv
21 lfs.structs.csv
22 lfs.cov.csv
23 lfs.perf.csv
24 lfs.perfbd.csv
25 lfs.test.csv
26 lfs.bench.csv
/third_party/skia/infra/bots/analysis/
Dcreate-alljobs.sh7 # Create a file /tmp/alljobs.csv by parsing jobs.json.
12 …,compiler,model,cpu_or_gpu,cpu_or_gpu_value,arch,configuration,test_filter,extra > /tmp/alljobs.csv
14 # Extract the CSV values from the jobs.json file.
16 …on | jq .[] -r | grep "^[Perf|Test]" | sed "s#-#,#g" | sed "s#All\$#All,none#g" >> /tmp/alljobs.csv
19 mlr --csv -I put '$vulkan=$extra =~ "Vulkan"' /tmp/alljobs.csv
22 mlr --csv -I put '$metal=$extra =~ "Metal"' /tmp/alljobs.csv
25 mlr --csv -I put '$skpbench=$extra =~ "Skpbench"' /tmp/alljobs.csv
27 # Validate the output file is a valid CSV file.
28 mlr --icsv check /tmp/alljobs.csv
Dmissing.sh10 # against columns in /tmp/alljobs.csv, such as '$vulkan == "true"'.
21 # Ensure /tmp/alljobs.csv has been created.
29 # all the rows in /tmp/cpu_or_gpu_value,model.csv that don't match that list.
33 # /tmp/cpu_or_gpu_value,model.csv file.
34 mlr --csv filter "${FILTER}" /tmp/alljobs.csv | \
35 mlr --csv cut -f cpu_or_gpu_value,model | \
36 mlr --csv sort -f cpu_or_gpu_value | \
37 mlr --csv uniq -f cpu_or_gpu_value | \
38 mlr --csv join -f /tmp/cpu_or_gpu_value,model.csv -j cpu_or_gpu_value --ul --np
Daxis.sh7 # Creates a CSV file with all the unique values from one or more columns from
8 # /tmp/alljobs.csv.
13 mlr --csv uniq -f $1 /tmp/alljobs.csv | mlr --csv sort -f $1 > /tmp/$1.csv
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/table/
DCsvTableTest.java80 CsvTable<RangeKey> csv = toCsv(table); in testRangeTableExport() local
81 assertCsv(csv, in testRangeTableExport()
87 assertThat(toRangeTable(csv)).isEqualTo(table); in testRangeTableExport()
96 // Ordering is well defined in the CSV output. in testExampleNumberExport()
97 CsvTable<ExampleNumberKey> csv = ExamplesTableSchema.toCsv(table); in testExampleNumberExport() local
98 assertCsv(csv, in testExampleNumberExport()
103 assertThat(ExamplesTableSchema.toExampleTable(csv)).isEqualTo(table); in testExampleNumberExport()
172 CsvTable<RangeKey> csv = toCsv(table); in testOrdering() local
174 csv, in testOrdering()
180 assertThat(toRangeTable(csv)).isEqualTo(table); in testOrdering()
[all …]
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/table/
DCsvSchema.java33 * A CSV schema is a combination of a key marshaller and table columns. A CSV schema defines a
34 * CSV table with key columns, followed by non-key columns.
39 * Returns a schema for a CSV file using the given marshaller to define key columns, and a table
46 /** The marshaller defining table keys and how they are serialized in CSV. */
52 /** Returns the ordering for keys in the CSV table, as defined by the key marshaller. */
58 * Returns the ordering for additional non-key columns in the CSV table as defined by the table
67 * contain the names of all columns (including key columns) in the CSV table and this method
73 checkArgument(header.size() >= hsize, "CSV header too short: %s", header); in parseHeader()
75 "Invalid CSV header: %s", header); in parseHeader()
81 /** Parses a row from a CSV table containing unescaped values. */
[all …]
DCsvTable.java71 // Trim whitespace (since CSV files may be textually aligned) but don't allow multiline values
93 /** A simple builder for programmatic generation of CSV tables. */
204 /** Builds the immutable CSV table. */
215 /** Returns a builder for a CSV table with the expected key and column semantics. */
220 /** Returns a CSV table based on the given table with the expected key and column semantics. */
233 * Imports a semicolon separated CSV file. The CSV file needs to have the following layout:
248 public static <K> CsvTable<K> importCsv(CsvSchema<K> schema, Reader csv) throws IOException { in importCsv() argument
249 return importCsv(schema, csv, CSV_PARSER); in importCsv()
252 /** Imports a CSV file using a specified parser. */
253 public static <K> CsvTable<K> importCsv(CsvSchema<K> schema, Reader csv, CsvParser csvParser) in importCsv() argument
[all …]
/third_party/typescript/tests/baselines/reference/
DdeclarationEmitWithInvalidPackageJsonTypings.types1 === /p1/node_modules/csv-parse/lib/index.d.ts ===
19 >useCsvParser : () => MutableRefObject<typeof import("/p1/node_modules/csv-parse/lib/index")>
20 … = useRef<typeof import("csv-parse")>(null); return parserRef;} : () => MutableRefObject<typeof…
22 const parserRef = useRef<typeof import("csv-parse")>(null);
23 >parserRef : MutableRefObject<typeof import("/p1/node_modules/csv-parse/lib/index")>
24 >useRef<typeof import("csv-parse")>(null) : MutableRefObject<typeof import("/p1/node_modules/csv-pa…
29 >parserRef : MutableRefObject<typeof import("/p1/node_modules/csv-parse/lib/index")>
/third_party/littlefs/.github/workflows/
Drelease.yml82 [ -e results/code-thumb.csv ] && ( \
87 ./scripts/code.py -u results/code-thumb.csv -s | awk '
92 >> results.csv)
93 [ -e results/code-thumb-readonly.csv ] && ( \
98 ./scripts/code.py -u results/code-thumb-readonly.csv -s | awk '
103 >> results.csv)
104 [ -e results/code-thumb-threadsafe.csv ] && ( \
109 ./scripts/code.py -u results/code-thumb-threadsafe.csv -s | awk '
114 >> results.csv)
115 [ -e results/code-thumb-migrate.csv ] && ( \
[all …]
/third_party/node/deps/v8/tools/
Deval_gc_time.sh17 echo " -c|--csv provide csv output"
27 CSV=""
58 -c|--csv)
59 CSV=" --csv "
146 $CSV \
155 $CSV \
/third_party/python/Doc/tools/extensions/
Dsuspicious.py6 ``suspicious.csv``, located in the output directory.
16 again and again, they may be added to the ``ignored.csv`` file
18 format as ``suspicious.csv`` with a few differences:
36 The simplest way to create the ignored.csv file is by copying
37 undesired entries from suspicious.csv (possibly trimming the last
46 import csv
76 class dialect(csv.excel):
90 self.log_file_name = os.path.join(self.outdir, 'suspicious.csv')
94 'susp-ignored.csv'))
158 writer = csv.writer(f, dialect)
[all …]
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/
DCsvData.java48 * All CSV based tables and legacy XML for a single calling code. This is the data from which all
56 /** CSV data loading API. */
60 /** Loads the CSV data for a single calling code. */
89 private static void checkNoOverlappingRows(CsvTable<RangeKey> csv) { in checkNoOverlappingRows() argument
91 for (RangeKey key : csv.getKeys()) { in checkNoOverlappingRows()
93 checkMetadata(allRanges.intersect(ranges).isEmpty(), "overlapping row in CSV: %s", key); in checkNoOverlappingRows()
98 private static void checkNoOverlappingShortcodeRows(CsvTable<ShortcodeKey> csv) { in checkNoOverlappingShortcodeRows() argument
100 for (ShortcodeKey key : csv.getKeys()) { in checkNoOverlappingShortcodeRows()
103 checkMetadata(allRegionRanges.intersect(ranges).isEmpty(), "overlapping row in CSV: %s", key); in checkNoOverlappingShortcodeRows()
140 /** The difference between two CSV snapshots captured as a set of CVS tables. */
[all …]
DCommentsSchema.java49 * multiple times in the CSV file (so there's no unique key). This is not an issue since the
70 try (Reader csv = Files.newBufferedReader(path)) { in loadComments() argument
71 return importComments(csv); in loadComments()
78 static ImmutableList<Comment> importComments(Reader csv) throws IOException { in importComments() argument
81 try (BufferedReader r = new BufferedReader(csv)) { in importComments()
111 /** Exports alternate formats to a collector (potentially escaping fields for CSV). */
122 /** Helper method to write comments in same CSV format as CsvTable. */
123 public static boolean exportCsv(Writer csv, List<Comment> comments) {
129 collector.writeCsv(csv);
DAltFormatsSchema.java76 try (Reader csv = Files.newBufferedReader(path)) { in loadAltFormats() argument
77 return importAltFormats(csv); in loadAltFormats()
84 static ImmutableList<AltFormatSpec> importAltFormats(Reader csv) throws IOException { in importAltFormats() argument
87 try (BufferedReader r = new BufferedReader(csv)) { in importAltFormats()
124 /** Exports alternate formats to a collector (potentially escaping fields for CSV). */
134 /** Helper method to write alternate formats in same CSV format as CsvTable. */
135 public static boolean exportCsv(Writer csv, List<AltFormatSpec> altFormats) { in exportCsv() argument
141 collector.writeCsv(csv); in exportCsv()
DFileBasedCsvLoader.java27 * A CSV provider which reads files rooted in a given directory. The file layout should match that
28 * in the CSV metadata directory ({@code third_party/libphonenumber_metadata/metadata}).
31 /** Returns a CSV loader which reads files from the given base directory. */
41 this.metadata = MetadataTableSchema.SCHEMA.load(root.resolve("metadata.csv")); in FileBasedCsvLoader()
66 return dir.resolve(name + ".csv"); in csvFile()
/third_party/libphonenumber/metadata/
DREADME.md4 the CSV packaged metadata for libphonenumber client library. The initial release
5 of these libraries is purely concerned with processing the CSV files, and does
6 not yet contain the classes needed to convert the CSV data in the XML and other
9 Eventually it is expected that all the tooling for manipulating CSV metadata and
10 generating the XML files will be released here, at which time the CSV files will
17 by libphonenumber tools. CSV schemas are not promised to be stable.
/third_party/skia/tools/skottie-wasm-perf/
Dparse_perf_csvs.py9 # outputs a CSV with test_name, avg_value1 (from CSV1), avg_value2 (from CSV2),
15 import csv
28 csv_reader = csv.reader(f, delimiter=',')
83 writer = csv.DictWriter(f, fieldnames=fieldnames)
102 help='The first CSV to parse.')
105 help='The second CSV to parse.')
108 help='The file to write the output CSV to.')
/third_party/astc-encoder/Test/testlib/
Dresultset.py22 ResultSets are often backed by a CSV file on disk, and a ResultSet can be
27 import csv
294 Save this result set to a CSV file.
304 writer = csv.writer(csvfile)
312 Write the header to the CSV file.
315 writer (csv.writer): The CSV writer.
323 Write a record to the CSV file.
326 writer (csv.writer): The CSV writer.
340 Load a reference result set from a CSV file on disk.
346 reader = csv.reader(csvfile)
/third_party/node/benchmark/
Drun.js16 --format [simple|csv] optional value that specifies the output format
29 const validFormats = ['csv', 'simple'];
37 if (format === 'csv') {
48 if (format !== 'csv') {
64 if (format === 'csv') {
65 // Escape quotes (") for correct csv formatting
/third_party/mesa3d/src/intel/isl/
Dgen_format_layout.py25 import csv
129 Converts the csv encoded data into the format that the template (and thus
133 # If the csv file grew very large this class could be put behind a factory
196 # some formats have an empty 'order' field in the CSV (such as
231 """Wrapper around csv.reader that skips comments and blanks."""
232 # csv.reader actually reads the file one line at a time (it was designed to
236 for line in csv.reader(f):
272 parser.add_argument('--csv', action='store', help='The CSV file to parse.')
283 formats = [Format(l) for l in reader(args.csv)]
/third_party/typescript/tests/cases/compiler/
DdeclarationEmitWithInvalidPackageJsonTypings.ts2 // @filename: /p1/node_modules/csv-parse/lib/index.d.ts
4 // @filename: /p1/node_modules/csv-parse/package.json
7 "name": "csv-parse",
22 const parserRef = useRef<typeof import("csv-parse")>(null);
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DFontInfoMain.java66 if (fonts.length > 1 && !options.csv) { in main()
72 if (options.csv) { in main()
97 if (options.csv) { in main()
111 if (options.csv) { in main()
125 if (options.csv) { in main()
139 if (options.csv) { in main()
153 if (options.csv) { in main()
178 if (options.csv) { in main()
196 if (options.csv) { in main()

1234567891011