Home
last modified time | relevance | path

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

12345678910>>...61

/external/python/cpython3/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 …]
/external/python/cpython2/Lib/test/
Dtest_csv.py3 # csv package unit tests
11 import csv
19 Test the underlying C csv parser in ways that are not appropriate
29 self.assertRaises(csv.Error, ctor, arg, 'foo')
37 quoting=csv.QUOTE_ALL, quotechar='')
39 quoting=csv.QUOTE_ALL, quotechar=None)
42 self._test_arg_valid(csv.reader, [])
45 self._test_arg_valid(csv.writer, StringIO())
55 self.assertEqual(obj.dialect.quoting, csv.QUOTE_MINIMAL)
66 self._test_default_attrs(csv.reader, [])
[all …]
/external/google-cloud-java/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/
DCsv.java25 * A representation of a CSV file attachment, as a list of column headers and
29 * Protobuf type {@code google.cloud.advisorynotifications.v1.Csv}
31 public final class Csv extends com.google.protobuf.GeneratedMessageV3 class
33 // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Csv)
36 // Use Csv.newBuilder() to construct.
37 private Csv(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Csv() method in Csv
41 private Csv() { in Csv() method in Csv
49 return new Csv(); in newInstance()
68 com.google.cloud.advisorynotifications.v1.Csv.class, in internalGetFieldAccessorTable()
69 com.google.cloud.advisorynotifications.v1.Csv.Builder.class); in internalGetFieldAccessorTable()
[all …]
DAttachment.java77 CSV(2), enumConstant
97 return CSV; in forNumber()
119 * A CSV file attachment. Max size is 10 MB.
122 * <code>.google.cloud.advisorynotifications.v1.Csv csv = 2;</code>
124 * @return Whether the csv field is set.
134 * A CSV file attachment. Max size is 10 MB.
137 * <code>.google.cloud.advisorynotifications.v1.Csv csv = 2;</code>
139 * @return The csv.
142 public com.google.cloud.advisorynotifications.v1.Csv getCsv() { in getCsv()
144 return (com.google.cloud.advisorynotifications.v1.Csv) data_; in getCsv()
[all …]
DCsvOrBuilder.java23 // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Csv)
30 * The list of headers for data columns in a CSV file.
42 * The list of headers for data columns in a CSV file.
54 * The list of headers for data columns in a CSV file.
67 * The list of headers for data columns in a CSV file.
81 * The list of data rows in a CSV file, as string arrays rather than as a
85 * <code>repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;</code>
87 java.util.List<com.google.cloud.advisorynotifications.v1.Csv.CsvRow> getDataRowsList(); in getDataRowsList()
92 * The list of data rows in a CSV file, as string arrays rather than as a
96 * <code>repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;</code>
[all …]
/external/python/cpython3/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 …]
/external/python/cpython2/Doc/library/
Dcsv.rst2 :mod:`csv` --- CSV File Reading and Writing
5 .. module:: csv
13 single: csv
16 The so-called CSV (Comma Separated Values) format is the most common import and
17 export format for spreadsheets and databases. There is no "CSV standard", so
21 make it annoying to process CSV files from multiple sources. Still, while the
27 The :mod:`csv` module implements classes to read and write tabular data in CSV
30 knowing the precise details of the CSV format used by Excel. Programmers can
31 also describe the CSV formats understood by other applications or define their
32 own special-purpose CSV formats.
[all …]
/external/rust/crates/csv/
DREADME.md1 csv chapter
3 A fast and flexible CSV reader and writer for Rust, with support for Serde.
5 …status](https://github.com/BurntSushi/rust-csv/workflows/ci/badge.svg)](https://github.com/BurntSu…
6 [![crates.io](https://img.shields.io/crates/v/csv.svg)](https://crates.io/crates/csv)
13 https://docs.rs/csv
16 [tutorial](https://docs.rs/csv/1.*/csv/tutorial/index.html)
22 To bring this crate into your repository, either add `csv` to your
23 `Cargo.toml`, or run `cargo add csv`.
28 This example shows how to read CSV data from stdin and print each record to
32 [cookbook](https://docs.rs/csv/1.*/csv/cookbook/index.html).
[all …]
/external/rust/crates/csv/src/
Dcookbook.rs2 A cookbook of examples for CSV reading and writing.
8 [`rust-csv`](https://github.com/BurntSushi/rust-csv)
11 For **reading** CSV:
18 For **writing** CSV:
24 [submit a pull request](https://github.com/BurntSushi/rust-csv/pulls)
29 This example shows how to read CSV data from stdin and print each record to
37 // Build the CSV reader and iterate over each record.
38 let mut rdr = csv::Reader::from_reader(io::stdin());
59 $ git clone git://github.com/BurntSushi/rust-csv
60 $ cd rust-csv
[all …]
Dtutorial.rs2 A tutorial for handling CSV data in Rust.
4 This tutorial will cover basic CSV reading and writing, automatic
5 (de)serialization with Serde, CSV transformations and performance.
24 1. [Reading CSV](#reading-csv)
29 1. [Writing CSV](#writing-csv)
38 * [CSV parsing without the standard library](#csv-parsing-without-the-standard-library)
43 In this section, we'll get you setup with a simple program that reads CSV data
56 `csv = "1.1"` to your `[dependencies]` section. At this point, your
66 csv = "1.1"
69 Next, let's build your project. Since you added the `csv` crate as a
[all …]
Dlib.rs2 The `csv` crate provides a fast and flexible CSV reader and writer, with
9 programs that do CSV reading and writing.
21 for reading and writing CSV data respectively.
22 Correspondingly, to support CSV data with custom field or record delimiters
27 depending on whether you're reading or writing CSV data.
29 Unless you're using Serde, the standard CSV record types are
45 Run `cargo add csv` to add the latest version of the `csv` crate to your
54 This example shows how to read CSV data from stdin and print each record to
63 // Build the CSV reader and iterate over each record.
64 let mut rdr = csv::Reader::from_reader(io::stdin());
[all …]
/external/rappor/pipeline/
Dregtest.sh19 local params_path=_tmp/metadata/regtest_params.csv
22 cp --verbose ../_tmp/python/demo1/case_params.csv $params_path
25 cat >_tmp/metadata/dist-analysis.csv <<EOF
27 unif,map.csv
28 gauss,map.csv
29 exp,map.csv
30 m.domain,domain_map.csv
34 cat >_tmp/metadata/rappor-vars.csv <<EOF
48 local map_path=_tmp/maps/map.csv
51 cp --verbose ../_tmp/python/demo1/case_map.csv $map_path
[all …]
Dmetric_status.R69 overview_path <- file.path(output_dir, 'overview.csv')
70 write.csv(by_metric, file = overview_path, row.names = FALSE)
77 # Write status.csv, num_reports.csv, and mass.csv for each metric.
81 # loop over unique metrics, and write a CSV for each one
95 out_path = file.path(output_dir, m, 'status.csv')
96 write.csv(subframe, file = out_path, row.names = FALSE)
102 # pass it an array, rather than CSV text.
105 path1 <- file.path(output_dir, m, 'num_reports.csv')
108 # double quotes will be invalid CSV files. But in this case, we only have
110 write.csv(f1, file = path1, row.names = FALSE, quote = FALSE)
[all …]
Dcook.sh26 find $dir -name results.csv
47 local out=$job_dir/task-status.csv
54 # Create a single dist.csv time series for a GIVEN metric.
67 > $out_dir/dist.csv
70 # Creates a dist.csv file for EACH metric. TODO: Rename one/many
82 # Take the task-status.csv file, which has row key (metric, date). Writes
83 # num_reports.csv and status.csv per metric, and a single overview.csv for all
89 TOOLS-metric-status dist $job_dir/task-status.csv $out_dir
100 local out=$job_dir/assoc-task-status.csv
109 # Create a single assoc.csv time series for a GIVEN (var1, var2) pair.
[all …]
Dui.sh76 # Write HTML fragment based on overview.csv.
81 TOOLS-csv-to-html \
83 < $job_dir/cooked/overview.csv \
102 # Convert status.csv to status.part.html (a fragment)
107 # Link to raw CSV
108 #--col-format 'date <a href="../../raw/{metric}/{date}/results.csv">{date}</a>' \
122 TOOLS-csv-to-html \
126 < $entry/status.csv \
135 # .../raw/Settings.HomePage2/2015-03-01/results.csv ->
138 local html_out=$(echo $csv_in | sed -e 's|/raw/|/cooked/|; s|/results.csv|.part.html|')
[all …]
/external/rappor/bin/
Dtest.sh49 cp --verbose $case_dir/1/case_counts.csv $input_dir/counts.csv
50 cp --verbose $case_dir/case_map.csv $input_dir/map.csv
51 cp --verbose $case_dir/case_params.csv $input_dir/params.csv
63 --counts $input_dir/counts.csv \
64 --map $input_dir/map.csv \
65 --params $input_dir/params.csv \
69 head $output_dir/results.csv
84 cat >$build_dir/true_values.csv <<EOF
119 < $build_dir/true_values.csv \
120 > $input_dir/reports.csv
[all …]
/external/rust/crates/rusqlite/src/vtab/
Dcsvtab.rs1 //! CSV Virtual Table.
3 //! Port of [csv](http://www.sqlite.org/cgi/src/finfo?name=ext/misc/csv.c) C
4 //! extension: `https://www.sqlite.org/csv.html`
14 //! // Assume my_csv.csv
17 //! USING csv(filename = 'my_csv.csv')
38 /// Register the "csv" module.
40 /// CREATE VIRTUAL TABLE vtab USING csv(
41 /// filename=FILENAME -- Name of file containing CSV content
42 /// [, schema=SCHEMA] -- Alternative CSV schema. 'CREATE TABLE x(col1 TEXT NOT NULL, col2 INT, ..…
43 /// [, header=YES|NO] -- First row of CSV defines the names of columns if "yes". Default "no".
[all …]
/external/conscrypt/common/src/test/resources/crypto/
Dbuild_test_files.sh3 # Writes out all CSV files for crypto test data based on NIST test vectors.
15 cat "$1"/CBC*.rsp | parse_records.py > aes-cbc.csv
16 cat "$1"/CFB8*.rsp | parse_records.py > aes-cfb8.csv
17 cat "$1"/CFB128*.rsp | parse_records.py > aes-cfb128.csv
18 cat "$1"/ECB*.rsp | parse_records.py > aes-ecb.csv
19 cat "$1"/OFB*.rsp | parse_records.py > aes-ofb.csv
20 cat "$1"/TCBC*.rsp | parse_records.py > desede-cbc.csv
21 cat "$1"/TCFB8*.rsp | parse_records.py > desede-cfb8.csv
22 cat "$1"/TCFB64*.rsp | parse_records.py > desede-cfb64.csv
23 cat "$1"/TECB*.rsp | parse_records.py > desede-ecb.csv
[all …]
/external/cpu_features/src/
Dimpl_x86_freebsd.c46 StringView csv = result.line; in DetectFeaturesFromOs() local
47 int index = CpuFeatures_StringView_IndexOfChar(csv, '<'); in DetectFeaturesFromOs()
48 if (index >= 0) csv = CpuFeatures_StringView_PopFront(csv, index + 1); in DetectFeaturesFromOs()
49 if (csv.size > 0 && CpuFeatures_StringView_Back(csv) == '>') in DetectFeaturesFromOs()
50 csv = CpuFeatures_StringView_PopBack(csv, 1); in DetectFeaturesFromOs()
51 if (CpuFeatures_StringView_HasWord(csv, "SSE", ',')) features->sse = true; in DetectFeaturesFromOs()
52 if (CpuFeatures_StringView_HasWord(csv, "SSE2", ',')) in DetectFeaturesFromOs()
54 if (CpuFeatures_StringView_HasWord(csv, "SSE3", ',')) in DetectFeaturesFromOs()
56 if (CpuFeatures_StringView_HasWord(csv, "SSSE3", ',')) in DetectFeaturesFromOs()
58 if (CpuFeatures_StringView_HasWord(csv, "SSE4.1", ',')) in DetectFeaturesFromOs()
[all …]
/external/cronet/third_party/cpu_features/src/src/
Dimpl_x86_freebsd.c46 StringView csv = result.line; in DetectFeaturesFromOs() local
47 int index = CpuFeatures_StringView_IndexOfChar(csv, '<'); in DetectFeaturesFromOs()
48 if (index >= 0) csv = CpuFeatures_StringView_PopFront(csv, index + 1); in DetectFeaturesFromOs()
49 if (csv.size > 0 && CpuFeatures_StringView_Back(csv) == '>') in DetectFeaturesFromOs()
50 csv = CpuFeatures_StringView_PopBack(csv, 1); in DetectFeaturesFromOs()
51 if (CpuFeatures_StringView_HasWord(csv, "SSE", ',')) features->sse = true; in DetectFeaturesFromOs()
52 if (CpuFeatures_StringView_HasWord(csv, "SSE2", ',')) in DetectFeaturesFromOs()
54 if (CpuFeatures_StringView_HasWord(csv, "SSE3", ',')) in DetectFeaturesFromOs()
56 if (CpuFeatures_StringView_HasWord(csv, "SSSE3", ',')) in DetectFeaturesFromOs()
58 if (CpuFeatures_StringView_HasWord(csv, "SSE4.1", ',')) in DetectFeaturesFromOs()
[all …]
/external/rust/crates/csv-core/
DREADME.md1 csv-core
3 A fast CSV reader and write for use in a `no_std` context. This crate will
6 … status](https://api.travis-ci.org/BurntSushi/rust-csv.png)](https://travis-ci.org/BurntSushi/rust…
7 …api/projects/status/github/BurntSushi/rust-csv?svg=true)](https://ci.appveyor.com/project/BurntSus…
8 [![](http://meritbadge.herokuapp.com/csv-core)](https://crates.io/crates/csv-core)
14 https://docs.rs/csv-core
22 csv-core = "0.1.6"
28 Disabling this feature will drop `csv-core`'s dependency on `libc`.
31 ### Example: reading CSV
33 This example shows how to count the number of fields and records in CSV data.
[all …]
/external/ComputeLibrary/examples/gemm_tuner/
DREADME.md35 … identify the shapes that we are interested in and store them in a csv file, say *gemm_shapes.csv*.
36 2. Then we need to specify a set of good GEMMConfig candidates for each kernel in 3 separate csv fi…
39 …Say we have *gemm_configs_native.csv", "gemm_configs_reshaped.csv" and "gemm_configs_reshaped_only…
46 …shapes and configs csv files: gemm_shapes.csv, gemm_configs_native.csv, gemm_configs_reshaped_only…
54 ./cl_gemm_benchmark -s native -e ./gemm_tuner -g ./gemm_shapes.csv -c ./gemm_configs_native.csv -o …
56 … -s reshaped_rhs_only -e ./gemm_tuner -g ./gemm_shapes.csv -c ./gemm_configs_reshaped_only_rhs.csv
58 ./cl_gemm_benchmark -s reshaped -e ./gemm_tuner -g ./gemm_shapes.csv -c ./gemm_configs_reshaped.csv
67 ./cl_gemm_benchmark -s reshaped -e ./gemm_tuner -g ./gemm_shapes.csv -c ./gemm_configs_reshaped.csv
69 ./cl_gemm_benchmark -s reshaped -e ./gemm_tuner -g ./gemm_shapes.csv -c ./gemm_configs_reshaped.csv
71 ./cl_gemm_benchmark -s reshaped -e ./gemm_tuner -g ./gemm_shapes.csv -c ./gemm_configs_reshaped.csv
[all …]
/external/skia/infra/bots/analysis/
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
/external/perfetto/test/trace_processor/diff_tests/syntax/
Dfiltering_tests.py17 from python.generators.diff_tests.testing import Csv
34 out=Csv("""
48 out=Csv("""
62 out=Csv("""
76 out=Csv("""
90 out=Csv("""
104 out=Csv("""
118 out=Csv("""
132 out=Csv("""
146 out=Csv("""
[all …]
/external/rust/crates/csv-core/src/
Dreader.rs7 // This may just be one of the more complicated CSV parsers you'll come across.
22 // the configuration of the CSV parser as given by the caller, and indeed, this
53 /// A pull based CSV reader.
55 /// This reader parses CSV data using a finite state machine. Callers can
58 /// Note that this CSV reader is somewhat encoding agnostic. The source data
66 /// A reader has two different ways to read CSV data, each with their own
69 /// * `read_field` - Copies a single CSV field into an output buffer while
72 /// * `read_record` - Copies an entire CSV record into an output buffer while
81 /// is the closest thing to a specification for CSV data. Unfortunately,
82 /// CSV data that is seen in the wild can vary significantly. Often, the CSV
[all …]

12345678910>>...61