Home
last modified time | relevance | path

Searched +full:bom +full:- +full:path (Results 1 – 25 of 279) sorted by relevance

12345678910>>...12

/external/apache-commons-io/src/test/java/org/apache/commons/io/input/
DXmlStreamReaderTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
36 import java.nio.file.Path;
59 private static final String UTF_32 = "UTF-32";
60 private static final String UTF_32LE = "UTF-32LE";
61 private static final String UTF_32BE = "UTF-32BE";
63 private static final String XML5 = "xml-prolog-encoding-spaced-single-quotes";
64 private static final String XML4 = "xml-prolog-encoding-single-quotes";
65 private static final String XML3 = "xml-prolog-encoding-double-quotes";
66 private static final String XML2 = "xml-prolog";
91 BOMs.put("no-bom", NO_BOM_BYTES);
[all …]
/external/angle/build/autoroll/
Dfetch_util.py2 # Use of this source code is governed by a BSD-style license that can be
13 _SRC_PATH = pathlib.Path(__file__).resolve().parents[2]
29 bom_path: Path to bill_of_materials.json to parse.
30 with_hash: Whether to also return a hash of all the packages in the BoM.
32 bom = []
36 bom = json.load(f)
37 bom.sort(key=lambda x: (x['group'], x['name']))
38 for dep in bom:
56 template_path: Path to <file>.template.
57 output_path: Path to <file>.
[all …]
/external/google-cloud-java/.github/workflows/
Dci.yaml7 # http://www.apache.org/licenses/LICENSE-2.0
19 - main
24 runs-on: ubuntu-latest
26 fail-fast: false
30 - name: Get current week within the year
32 run: echo "::set-output name=week_of_year::$(date +'%W' --utc)"
33 - uses: actions/checkout@v3
34 - uses: actions/setup-java@v3
37 java-version: ${{matrix.java}}
38 - run: java -version
[all …]
Dnewclient.yaml4 - cron: '0 2 * * *' # nightly at 2 am UTC
8 - generation/**
12 - generation/**
18 runs-on: ubuntu-latest
23 - uses: actions/checkout@v3
24 - uses: actions/setup-python@v4
26 python-version: '3.9'
28 - name: Get current week within the year
30 run: echo "::set-output name=week_of_year::$(date +'%W' --utc)"
31 - uses: actions/setup-java@v3
[all …]
/external/sdk-platform-java/.github/workflows/
Dci.yaml4 - main
11 runs-on: ubuntu-22.04
16 - uses: actions/checkout@v3
17 - uses: actions/setup-java@v3
19 java-version: ${{ matrix.java }}
22 - run: java -version
23 - name: Unit Tests
25 mvn test --batch-mode --no-transfer-progress -Dcheckstyle.skip \
26 -Dfmt.skip -DenableTestCoverage
27 - run: bazelisk version
[all …]
/external/python/cpython3/PCbuild/
Dfix_encoding.py3 # Fixes encoding of the project files to add UTF-8 BOM.
5 # Visual Studio insists on having the BOM in project files, and will
7 # files and ensure the BOM is included, which should prevent too many
11 from pathlib import Path
17 with open(p, 'r', encoding='utf-8-sig') as f:
19 with open(p, 'w', encoding='utf-8-sig') as f:
22 ROOT_DIR = Path(__file__).resolve().parent
28 print(f' - {f.name}')
32 print(f' - {f.name}')
/external/icu/icu4c/as_is/
Dbomlist.py1 #!/usr/bin/python -B
11 # ( python as_is/bomlist.py > as_is/bomlist.txt ) || rm -f as_is/bomlist.txt
26 bom=codecs.BOM_UTF8 variable
30 (path,dirs,files) = ent
31 if(path.find("/.svn") != -1):
35 fp = (path + "/" + file)
36 if not os.path.isfile(fp):
40 if bytes and (bytes == bom):
/external/python/cpython3/Lib/test/
Dtest_source_encoding.py1 # -*- coding: utf-8 -*-
26 c = compile(b"\n# coding: utf-8\nu = '\xc3\xb3'\n", "dummy", "exec")
40 c = compile("# coding=latin-1\n\u00c6 = '\u00c6'", "dummy", "exec")
56 # byte of a valid BOM, but next bytes are different
58 # one byte in common with the UTF-16-LE BOM
61 # one byte in common with the UTF-8 BOM
64 # two bytes in common with the UTF-8 BOM
70 os.path.join(os.path.dirname(__file__),
79 compile(b'# -*- coding: iso-8859-15 -*-\n', 'dummy', 'exec')
81 compile(b'\xef\xbb\xbf# -*- coding: utf-8 -*-\n', 'dummy', 'exec')
[all …]
/external/mbedtls/tests/scripts/
Dcheck_files.py4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
8 including incorrect file permissions, presence of tabs, non-Unix line endings,
9 trailing whitespace, and presence of UTF-8 BOM.
21 from typing import FrozenSet, Optional, Pattern # pylint: disable=unused-import
25 import scripts_path # pylint: disable=unused-import
30 """Base class for file-wide issue tracking.
38 ``path_exemptions``: files whose path (relative to the root of the source
40 ``None`` to match no path. Paths are normalized and converted to ``/``
43 ``heading``: human-readable description of the issue
49 # pylint: disable=no-member
[all …]
/external/deqp/scripts/src_util/
Dcheck_boms.py1 # -*- coding: utf-8 -*-
3 #-------------------------------------------------------------------------
5 # --------------------------------------
13 # http://www.apache.org/licenses/LICENSE-2.0
21 #-------------------------------------------------------------------------
55 f.truncate(readpos-3)
57 def getFileList (path): argument
58 if os.path.isfile(path):
59 yield path
60 elif os.path.isdir(path):
[all …]
/external/python/cpython3/PC/
Dlauncher.c2 * Copyright (C) 2011-2013 Vinay Sajip.
38 * which builds the setuptools-style launcher.
45 * one-level-higher pyvenv.cfg, and uses its "home" property to locate and
53 /* Just for now - static definition */
101 _snwprintf_s(&message[len], MSGSIZE - len, _TRUNCATE, L": %ls", in error()
121 /* This is not thread-safe, just like getenv */ in get_env()
217 find_existing_python(const wchar_t * path) in find_existing_python() argument
224 if (_wcsicmp(path, ip->executable) == 0) { in find_existing_python()
240 if (bits == ip->bits && _wcsicmp(version, ip->version) == 0) { in find_existing_python2()
283 wcsncpy_s(ip->version, MAX_VERSION_SIZE, ip_version, in _locate_pythons_for_key()
[all …]
/external/cronet/tot/third_party/icu/source/samples/ugrep/
Dreadme.txt4 Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserve…
9 --help Output a brief help message
10 -n, --line-number Prefix each line of output with the line number within its input file.
11 -V, --version Output the program version number
18 begin with a BOM, in which case they are assumed to be in the UTF encoding
19 specified by the BOM. Program output is always in the system's default
25 ./ugrep.sln Windows MSVC workspace. Double-click this to get started.
38 2. Add ICU's bin directory to the path, e.g.
39 set PATH=c:\icu\bin;%PATH%
40 (Use the path to where ever ICU is on your system.)
[all …]
/external/cronet/stable/third_party/icu/source/samples/ugrep/
Dreadme.txt4 Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserve…
9 --help Output a brief help message
10 -n, --line-number Prefix each line of output with the line number within its input file.
11 -V, --version Output the program version number
18 begin with a BOM, in which case they are assumed to be in the UTF encoding
19 specified by the BOM. Program output is always in the system's default
25 ./ugrep.sln Windows MSVC workspace. Double-click this to get started.
38 2. Add ICU's bin directory to the path, e.g.
39 set PATH=c:\icu\bin;%PATH%
40 (Use the path to where ever ICU is on your system.)
[all …]
/external/icu/icu4c/source/samples/ugrep/
Dreadme.txt4 Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserve…
9 --help Output a brief help message
10 -n, --line-number Prefix each line of output with the line number within its input file.
11 -V, --version Output the program version number
18 begin with a BOM, in which case they are assumed to be in the UTF encoding
19 specified by the BOM. Program output is always in the system's default
25 ./ugrep.sln Windows MSVC workspace. Double-click this to get started.
38 2. Add ICU's bin directory to the path, e.g.
39 set PATH=c:\icu\bin;%PATH%
40 (Use the path to where ever ICU is on your system.)
[all …]
/external/openthread/third_party/mbedtls/repo/tests/scripts/
Dcheck_files.py4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
8 including incorrect file permissions, presence of tabs, non-Unix line endings,
9 trailing whitespace, and presence of UTF-8 BOM.
22 from typing import FrozenSet, Optional, Pattern # pylint: disable=unused-import
26 import scripts_path # pylint: disable=unused-import
31 """Base class for file-wide issue tracking.
39 ``path_exemptions``: files whose path (relative to the root of the source
41 ``None`` to match no path. Paths are normalized and converted to ``/``
44 ``heading``: human-readable description of the issue
50 # pylint: disable=no-member
[all …]
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_source_encoding.py9 # Because sys.path gets essentially blanked, need to have unicodedata already
16 CODING_RE = re.compile(r'^[ \t\f]*#.*?coding[:=][ \t]*([-\w.]+)', re.ASCII)
21 """PEP 3120 makes UTF-8 the default encoding for source code
24 PEP 263 specifies how that can change on a per-file basis. Either the first
26 [encoding second line]. If the file has the BOM marker it is considered UTF-8
27 implicitly [BOM]. If any encoding is specified it must be UTF-8, else it is
28 an error [BOM and utf-8][BOM conflict].
48 source_lines = [encoding_line.encode('utf-8')]
55 encoding_line = "# coding=koi8-r"
57 source = "{0}\na=42\n".format(encoding_line).encode("koi8-r")
[all …]
/external/google-cloud-java/generation/
Dmerge_repository.sh3 # Merging repository to google-cloud-java using git-filter-repo.
4 # https://stackoverflow.com/questions/1425892/how-do-you-merge-two-git-repositories
7 # cd google-cloud-java
15 # cd generation/monorepo/google-cloud-java-merged
16 # git checkout -b merge_repositories
17 # gh pr create --title 'chore: merge new repository into google-cloud-java' --body ''
19 set -xe
21 [ -z "`git config user.email`" ] && git config --global user.email "${USERNAME:-script}@google.com"
22 [ -z "`git config user.name`" ] && git config --global user.name "${USERNAME:-script}"
26 rm -rf monorepo
[all …]
/external/angle/build/toolchain/win/rc/
Drc.py3 # Use of this source code is governed by a BSD-style license that can be
10 -h, --help Print this message.
11 -Werror Treat warnings as errors.
12 -I<dir> Add include path, used for both headers and resources.
13 -imsvc<dir> Add system include path, used for preprocessing only.
15 -D<sym> Define a macro for the preprocessor.
16 /fo<out> Set path of output .res file.
29 THIS_DIR = os.path.abspath(os.path.dirname(__file__))
31 os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(THIS_DIR))))
36 # Can't use optparse / argparse because of /fo flag :-/
[all …]
/external/cronet/tot/build/toolchain/win/rc/
Drc.py3 # Use of this source code is governed by a BSD-style license that can be
10 -h, --help Print this message.
11 -I<dir> Add include path, used for both headers and resources.
12 -imsvc<dir> Add system include path, used for preprocessing only.
14 -D<sym> Define a macro for the preprocessor.
15 /fo<out> Set path of output .res file.
28 THIS_DIR = os.path.abspath(os.path.dirname(__file__))
30 os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(THIS_DIR))))
35 # Can't use optparse / argparse because of /fo flag :-/
45 if flag == '-h' or flag == '--help':
[all …]
/external/cronet/stable/build/toolchain/win/rc/
Drc.py3 # Use of this source code is governed by a BSD-style license that can be
10 -h, --help Print this message.
11 -I<dir> Add include path, used for both headers and resources.
12 -imsvc<dir> Add system include path, used for preprocessing only.
14 -D<sym> Define a macro for the preprocessor.
15 /fo<out> Set path of output .res file.
28 THIS_DIR = os.path.abspath(os.path.dirname(__file__))
30 os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(THIS_DIR))))
35 # Can't use optparse / argparse because of /fo flag :-/
45 if flag == '-h' or flag == '--help':
[all …]
/external/apache-commons-io/src/main/java/org/apache/commons/io/input/
DXmlStreamReader.java9 * http://www.apache.org/licenses/LICENSE-2.0
33 import java.nio.file.Path;
54 …* true, but it's close enough (UTF-8 BOM is not handled by all parsers right now, XmlStreamReader …
61 …rim in his blog, <a href="http://diveintomark.org/archives/2004/02/13/xml-media-types"> Determining
79 …* Constructs a Reader using an InputStream and the associated content-type header. This constructo…
81 … First it checks if the stream has BOM. If there is not BOM checks the content-type encoding. If t…
82 … there is not XML prolog encoding uses the default encoding mandated by the content-type MIME type.
97 * Else 'UTF-8' is used.
108 * .setPath(path)
192 private static final String UTF_32BE = "UTF-32BE";
[all …]
/external/pytorch/test/
Dtest_serialization.py94 b = [a[i % 2] for i in range(4)] # 0-3
96 b += [a[0].reshape(-1)[1:4].storage()] # 5
98 t1 = torch.FloatTensor().set_(a[0].reshape(-1)[1:4].clone().storage(), 0, (3,), (1,))
99 t2 = torch.FloatTensor().set_(a[0].reshape(-1)[1:4].clone().storage(), 0, (3,), (1,))
101 b += [a[0].reshape(-1)[0:2].storage()] # 8
173 # test non-ascii encoding of bytes arrays/strings
177 # bytes of some utf-8 characters (i.e., `utf8_str.encode('utf-8')`).
192 utf8_str = utf8_bytes.decode('utf-8')
193 loaded_utf8 = torch.load(buf, weights_only=weights_only, encoding='utf-8')
261 x2 = torch.load(f, pickle_module=dill, encoding='utf-8')
[all …]
/external/sdk-platform-java/gax-java/
Dpom.xml1 <?xml version='1.0' encoding='UTF-8'?>
2 …//www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http:/…
5 <artifactId>gax-parent</artifactId>
7 <version>2.27.0</version><!-- {x-version-update:gax:current} -->
13 <artifactId>gapic-generator-java-pom-parent</artifactId>
14 <version>2.19.0</version><!-- {x-version-update:gapic-generator-java:current} -->
15 <relativePath>../gapic-generator-java-pom-parent</relativePath>
30 <name>BSD-3-Clause</name>
31 <url>https://github.com/googleapis/gax-java/blob/master/LICENSE</url>
36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
[all …]
/external/python/cpython3/Lib/test/test_importlib/resources/
Dtest_functional.py12 # filesystem resources here -- not zip files, namespace packages etc.
49 Used to ignore an architecture-specific UTF-16 byte-order mark."""
50 self.assertEqual(string[-len(suffix) :], suffix)
54 resources.read_text(self.anchor01, 'utf-8.file'),
55 'Hello, UTF-8 world!\n',
63 encoding='utf-8',
72 encoding='utf-8',
81 resources.read_text(self.anchor01, 'no-such-file')
83 resources.read_text(self.anchor01, 'utf-16.file')
92 self.assertEndsWith( # ignore the BOM
[all …]
/external/yapf/yapf/
D__init__.py7 # http://www.apache.org/licenses/LICENSE-2.0
16 YAPF uses the algorithm in clang-format to figure out the "best" formatting for
17 Python code. It looks at the program as a series of "unwrappable lines" ---
20 is --- i.e., the formatting with the least penalty.
44 wrapper = io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8')
45 return wrapper.buffer.raw.readall().decode('utf-8')
49 """Remove any Byte-order-Mark bytes from the beginning of a file."""
50 bom = codecs.BOM_UTF8
51 bom = bom.decode('utf-8')
52 if source.startswith(bom):
[all …]

12345678910>>...12