/external/zopfli/src/zopfli/ |
D | util.c | 28 int ZopfliGetDistExtraBits(int dist) { in ZopfliGetDistExtraBits() argument 30 if (dist < 5) return 0; in ZopfliGetDistExtraBits() 31 return (31 ^ __builtin_clz(dist - 1)) - 1; /* log2(dist - 1) - 1 */ in ZopfliGetDistExtraBits() 33 if (dist < 5) return 0; in ZopfliGetDistExtraBits() 34 else if (dist < 9) return 1; in ZopfliGetDistExtraBits() 35 else if (dist < 17) return 2; in ZopfliGetDistExtraBits() 36 else if (dist < 33) return 3; in ZopfliGetDistExtraBits() 37 else if (dist < 65) return 4; in ZopfliGetDistExtraBits() 38 else if (dist < 129) return 5; in ZopfliGetDistExtraBits() 39 else if (dist < 257) return 6; in ZopfliGetDistExtraBits() [all …]
|
/external/python/setuptools/setuptools/tests/ |
D | test_setuptools.py | 15 import setuptools.dist 128 self.dist = makeSetup( 136 assert isinstance(self.dist, setuptools.dist.Distribution) 139 self.dist.exclude_package('a') 140 assert self.dist.packages == ['b', 'c'] 142 self.dist.exclude_package('b') 143 assert self.dist.packages == ['c'] 144 assert self.dist.py_modules == ['x'] 145 assert self.dist.ext_modules == [self.e1, self.e2] 147 self.dist.exclude_package('c') [all …]
|
D | test_config.py | 4 from setuptools.dist import Distribution 50 dist = Distribution(kwargs_initial) 51 dist.script_name = 'setup.py' 52 parse and dist.parse_config_files() 54 yield dist 130 with get_dist(tmpdir, meta_initial) as dist: 131 metadata = dist.metadata 156 with get_dist(tmpdir) as dist: 157 assert dist.metadata.long_description == ( 170 with get_dist(tmpdir, parse=False) as dist: [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/distributions/ |
D | bernoulli_test.py | 64 dist = bernoulli.Bernoulli(probs=p) 65 self.assertAllClose(p, self.evaluate(dist.probs)) 70 dist = bernoulli.Bernoulli(logits=logits) 71 self.assertAllClose(logits, self.evaluate(dist.logits)) 76 self.assertAllClose(special.expit(logits), self.evaluate(dist.probs)) 79 dist = bernoulli.Bernoulli(probs=p) 80 self.assertAllClose(special.logit(p), self.evaluate(dist.logits)) 87 dist = bernoulli.Bernoulli(probs=p, validate_args=True) 88 self.evaluate(dist.probs) 93 dist = bernoulli.Bernoulli(probs=p, validate_args=True) [all …]
|
D | categorical_test.py | 51 dist = categorical.Categorical(probs=p) 53 self.assertAllClose(p, dist.probs.eval()) 54 self.assertAllEqual([2], dist.logits.get_shape()) 60 dist = categorical.Categorical(logits=logits) 62 self.assertAllEqual([2], dist.probs.get_shape()) 63 self.assertAllEqual([2], dist.logits.get_shape()) 64 self.assertAllClose(dist.probs.eval(), p) 65 self.assertAllClose(dist.logits.eval(), logits) 71 dist = make_categorical(batch_shape, 10) 72 self.assertAllEqual(batch_shape, dist.batch_shape) [all …]
|
D | dirichlet_multinomial_test.py | 44 dist = ds.DirichletMultinomial(1., alpha) 45 self.assertEqual(3, dist.event_shape_tensor().eval()) 46 self.assertAllEqual([], dist.batch_shape_tensor().eval()) 47 self.assertEqual(tensor_shape.TensorShape([3]), dist.event_shape) 48 self.assertEqual(tensor_shape.TensorShape([]), dist.batch_shape) 55 dist = ds.DirichletMultinomial(n, alpha) 56 self.assertEqual(2, dist.event_shape_tensor().eval()) 57 self.assertAllEqual([3, 2], dist.batch_shape_tensor().eval()) 58 self.assertEqual(tensor_shape.TensorShape([2]), dist.event_shape) 59 self.assertEqual(tensor_shape.TensorShape([3, 2]), dist.batch_shape) [all …]
|
D | beta_test.py | 55 dist = beta_lib.Beta(a, b) 56 self.assertAllEqual([], self.evaluate(dist.event_shape_tensor())) 57 self.assertAllEqual([3], self.evaluate(dist.batch_shape_tensor())) 58 self.assertEqual(tensor_shape.TensorShape([]), dist.event_shape) 59 self.assertEqual(tensor_shape.TensorShape([3]), dist.batch_shape) 64 dist = beta_lib.Beta(a, b) 65 self.assertAllEqual([], self.evaluate(dist.event_shape_tensor())) 66 self.assertAllEqual([3, 2, 2], self.evaluate(dist.batch_shape_tensor())) 67 self.assertEqual(tensor_shape.TensorShape([]), dist.event_shape) 68 self.assertEqual(tensor_shape.TensorShape([3, 2, 2]), dist.batch_shape) [all …]
|
D | multinomial_test.py | 41 dist = multinomial.Multinomial(total_count=1., probs=p) 42 self.assertEqual(3, dist.event_shape_tensor().eval()) 43 self.assertAllEqual([], dist.batch_shape_tensor().eval()) 44 self.assertEqual(tensor_shape.TensorShape([3]), dist.event_shape) 45 self.assertEqual(tensor_shape.TensorShape([]), dist.batch_shape) 52 dist = multinomial.Multinomial(total_count=n, probs=p) 53 self.assertEqual(2, dist.event_shape_tensor().eval()) 54 self.assertAllEqual([3, 2], dist.batch_shape_tensor().eval()) 55 self.assertEqual(tensor_shape.TensorShape([2]), dist.event_shape) 56 self.assertEqual(tensor_shape.TensorShape([3, 2]), dist.batch_shape) [all …]
|
D | dirichlet_test.py | 53 dist = dirichlet_lib.Dirichlet(alpha) 54 self.assertEqual(3, self.evaluate(dist.event_shape_tensor())) 55 self.assertAllEqual([], self.evaluate(dist.batch_shape_tensor())) 56 self.assertEqual(tensor_shape.TensorShape([3]), dist.event_shape) 57 self.assertEqual(tensor_shape.TensorShape([]), dist.batch_shape) 61 dist = dirichlet_lib.Dirichlet(alpha) 62 self.assertEqual(2, self.evaluate(dist.event_shape_tensor())) 63 self.assertAllEqual([3, 2], self.evaluate(dist.batch_shape_tensor())) 64 self.assertEqual(tensor_shape.TensorShape([2]), dist.event_shape) 65 self.assertEqual(tensor_shape.TensorShape([3, 2]), dist.batch_shape) [all …]
|
/external/cldr/tools/ |
D | build.xml | 5 <property name="dist.dir" value="dist"/> 6 <property name="dist.conf.dir" value="dist.conf"/> 7 <property name="excludes.file" value="${dist.conf.dir}/distExcludes.txt"/> 8 <property name="includes.common.file" value="${dist.conf.dir}/includes-common.txt"/> 9 <property name="includes.tools.file" value="${dist.conf.dir}/includes-tools.txt"/> 10 <property name="includes.keyboards.file" value="${dist.conf.dir}/includes-keyboards.txt"/> 13 <target name="all" depends="dist-common,dist-tools,dist-keyboards"/> 16 <delete dir="${dist.dir}"/> 19 <target name="dist-excludes" depends="init"> 25 <target name="dist-dir"> [all …]
|
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/ |
D | onehot_categorical_test.py | 46 dist = onehot_categorical.OneHotCategorical(probs=p) 48 self.assertAllClose(p, dist.probs.eval()) 49 self.assertAllEqual([2], dist.logits.get_shape()) 54 dist = onehot_categorical.OneHotCategorical(logits=logits) 56 self.assertAllEqual([2], dist.probs.get_shape()) 57 self.assertAllEqual([2], dist.logits.get_shape()) 58 self.assertAllClose(dist.probs.eval(), p) 59 self.assertAllClose(dist.logits.eval(), logits) 64 dist = make_onehot_categorical(batch_shape, 10) 65 self.assertAllEqual(batch_shape, dist.batch_shape.as_list()) [all …]
|
D | logistic_test.py | 37 dist = logistic.Logistic(loc, scale) 39 dist.reparameterization_type == distribution.FULLY_REPARAMETERIZED) 48 dist = logistic.Logistic(loc, scale) 51 log_prob = dist.log_prob(x) 55 prob = dist.prob(x) 66 dist = logistic.Logistic(loc, scale) 68 cdf = dist.cdf(x) 81 dist = logistic.Logistic(loc, scale) 83 logcdf = dist.log_cdf(x) 96 dist = logistic.Logistic(loc, scale) [all …]
|
D | relaxed_bernoulli_test.py | 33 """Tests that parameter P is set correctly. Note that dist.p != dist.pdf.""" 36 dist = relaxed_bernoulli.RelaxedBernoulli(temperature, probs=p) 38 self.assertAllClose(p, dist.probs.eval()) 43 dist = relaxed_bernoulli.RelaxedBernoulli(temperature, logits=logits) 45 self.assertAllClose(logits, dist.logits.eval()) 48 self.assertAllClose(scipy.special.expit(logits), dist.probs.eval()) 51 dist = relaxed_bernoulli.RelaxedBernoulli(temperature, probs=p) 53 self.assertAllClose(scipy.special.logit(p), dist.logits.eval()) 61 dist = relaxed_bernoulli.RelaxedBernoulli(temperature, 64 dist.probs.eval() [all …]
|
D | relaxed_onehot_categorical_test.py | 46 dist = relaxed_onehot_categorical.ExpRelaxedOneHotCategorical(temperature, 50 self.assertAllClose(expected_p, dist.probs.eval()) 51 self.assertAllEqual([3], dist.probs.get_shape()) 58 dist = relaxed_onehot_categorical.ExpRelaxedOneHotCategorical(temperature, 61 x = dist.sample().eval() 66 pdf = dist.prob(x).eval() 75 dist = relaxed_onehot_categorical.RelaxedOneHotCategorical(temperature, 79 self.assertAllClose(logits, dist._distribution.logits.eval()) 80 self.assertAllEqual([3], dist._distribution.logits.get_shape()) 87 dist = relaxed_onehot_categorical.RelaxedOneHotCategorical(temperature, [all …]
|
D | kumaraswamy_test.py | 83 dist = kumaraswamy_lib.Kumaraswamy(a, b) 84 self.assertAllEqual([], dist.event_shape_tensor().eval()) 85 self.assertAllEqual([3], dist.batch_shape_tensor().eval()) 86 self.assertEqual(tensor_shape.TensorShape([]), dist.event_shape) 87 self.assertEqual(tensor_shape.TensorShape([3]), dist.batch_shape) 93 dist = kumaraswamy_lib.Kumaraswamy(a, b) 94 self.assertAllEqual([], dist.event_shape_tensor().eval()) 95 self.assertAllEqual([3, 2, 2], dist.batch_shape_tensor().eval()) 96 self.assertEqual(tensor_shape.TensorShape([]), dist.event_shape) 97 self.assertEqual(tensor_shape.TensorShape([3, 2, 2]), dist.batch_shape) [all …]
|
/external/python/cpython2/Lib/distutils/tests/ |
D | test_dist.py | 3 """Tests for distutils.dist.""" 11 from distutils.dist import Distribution, fix_help_options 13 import distutils.dist 77 distutils.dist.DEBUG = True 84 distutils.dist.DEBUG = False 138 dist = klass(attrs={'author': u'Mister Café', 147 dist.metadata.write_pkg_file(open(my_file, 'w')) 150 dist = klass(attrs={'author': 'Mister Cafe', 157 dist.metadata.write_pkg_file(open(my_file2, 'w')) 171 dist = Distribution(attrs={'author': 'xxx', 'name': 'xxx', [all …]
|
D | test_build_py.py | 35 dist = Distribution({"packages": ["pkg"], 38 dist.script_name = os.path.join(sources, "setup.py") 39 dist.command_obj["build"] = support.DummyCommand( 42 dist.packages = ["pkg"] 43 dist.package_data = {"pkg": ["README.txt"]} 44 dist.package_dir = {"pkg": sources} 46 cmd = build_py(dist) 49 self.assertEqual(cmd.package_data, dist.package_data) 85 dist = Distribution({"packages": ["pkg"], 89 dist.script_name = os.path.join(sources, "setup.py") [all …]
|
/external/python/cpython3/Lib/distutils/tests/ |
D | test_dist.py | 1 """Tests for distutils.dist.""" 11 from distutils.dist import Distribution, fix_help_options, DistributionMetadata 182 dist = Distribution(attrs={'author': 'xxx', 'name': 'xxx', 187 self.assertNotIn('options', dir(dist)) 193 dist = Distribution(attrs=attrs) 194 dist.finalize_options() 197 self.assertEqual(dist.metadata.platforms, ['one', 'two']) 198 self.assertEqual(dist.metadata.keywords, ['one', 'two']) 202 dist = Distribution(attrs=attrs) 203 dist.finalize_options() [all …]
|
D | test_build_py.py | 34 dist = Distribution({"packages": ["pkg"], 37 dist.script_name = os.path.join(sources, "setup.py") 38 dist.command_obj["build"] = support.DummyCommand( 41 dist.packages = ["pkg"] 42 dist.package_data = {"pkg": ["README.txt"]} 43 dist.package_dir = {"pkg": sources} 45 cmd = build_py(dist) 48 self.assertEqual(cmd.package_data, dist.package_data) 78 dist = Distribution({"packages": ["pkg"], 82 dist.script_name = os.path.join(sources, "setup.py") [all …]
|
/external/python/setuptools/setuptools.egg-info/ |
D | entry_points.txt | 31 convert_2to3_doctests = setuptools.dist:assert_string_list 32 dependency_links = setuptools.dist:assert_string_list 33 eager_resources = setuptools.dist:assert_string_list 34 entry_points = setuptools.dist:check_entry_points 35 exclude_package_data = setuptools.dist:check_package_data 36 extras_require = setuptools.dist:check_extras 37 include_package_data = setuptools.dist:assert_bool 38 install_requires = setuptools.dist:check_requirements 39 namespace_packages = setuptools.dist:check_nsp 40 package_data = setuptools.dist:check_package_data [all …]
|
/external/selinux/python/sepolgen/src/sepolgen/ |
D | matching.py | 32 def __init__(self, interface=None, dist=0): argument 34 self.dist = dist 42 a = (self.dist, self.info_dir_change) 43 b = (other.dist, other.info_dir_change) 80 if match.dist <= self.threshold: 163 dist = 0 167 dist += self.type_distance(req.src_type, prov.src_type) 168 dist += self.type_distance(req.tgt_type, prov.tgt_type) 172 dist -= self.obj_penalty 179 if dist < 0: [all …]
|
/external/python/cpython3/Doc/library/ |
D | tkinter.tix.rst | 40 `Tix Man Pages <http://tix.sourceforge.net/dist/current/man/>`_ 43 `Tix Programming Guide <http://tix.sourceforge.net/dist/current/docs/tix-book/tix.book.html>`_ 83 `Tix <http://tix.sourceforge.net/dist/current/man/html/TixCmd/TixIntro.htm>`_ 94 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixBalloon.htm>`_ that 100 .. \ulink{Balloon}{http://tix.sourceforge.net/dist/current/demos/samples/Balloon.tcl} 106 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixButtonBox.htm>`_ 110 .. \ulink{ButtonBox}{http://tix.sourceforge.net/dist/current/demos/samples/BtnBox.tcl} 116 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixComboBox.htm>`_ 122 .. \ulink{ComboBox}{http://tix.sourceforge.net/dist/current/demos/samples/ComboBox.tcl} 128 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixControl.htm>`_ [all …]
|
/external/python/cpython2/Doc/library/ |
D | tix.rst | 37 `Tix Man Pages <http://tix.sourceforge.net/dist/current/man/>`_ 40 `Tix Programming Guide <http://tix.sourceforge.net/dist/current/docs/tix-book/tix.book.html>`_ 91 `Tix <http://tix.sourceforge.net/dist/current/man/html/TixCmd/TixIntro.htm>`_ 106 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixBalloon.htm>`_ that 112 .. \ulink{Balloon}{http://tix.sourceforge.net/dist/current/demos/samples/Balloon.tcl} 118 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixButtonBox.htm>`_ 122 .. \ulink{ButtonBox}{http://tix.sourceforge.net/dist/current/demos/samples/BtnBox.tcl} 128 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixComboBox.htm>`_ 134 .. \ulink{ComboBox}{http://tix.sourceforge.net/dist/current/demos/samples/ComboBox.tcl} 140 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixControl.htm>`_ [all …]
|
/external/python/cpython2/Doc/ |
D | Makefile | 17 suspicious coverage doctest pydoc-topics htmlview clean dist check serve \ 34 @echo " dist to create a \"dist\" directory with archived docs for download" 107 dist: target 108 rm -rf dist 109 mkdir -p dist 113 cp -pPR build/html dist/python-$(DISTVERSION)-docs-html 114 tar -C dist -cf dist/python-$(DISTVERSION)-docs-html.tar python-$(DISTVERSION)-docs-html 115 bzip2 -9 -k dist/python-$(DISTVERSION)-docs-html.tar 116 (cd dist; zip -q -r -9 python-$(DISTVERSION)-docs-html.zip python-$(DISTVERSION)-docs-html) 117 rm -r dist/python-$(DISTVERSION)-docs-html [all …]
|
/external/python/setuptools/ |
D | setup.py | 117 "eager_resources = setuptools.dist:assert_string_list", 118 "namespace_packages = setuptools.dist:check_nsp", 119 "extras_require = setuptools.dist:check_extras", 120 "install_requires = setuptools.dist:check_requirements", 121 "tests_require = setuptools.dist:check_requirements", 122 "setup_requires = setuptools.dist:check_requirements", 123 "python_requires = setuptools.dist:check_specifier", 124 "entry_points = setuptools.dist:check_entry_points", 125 "test_suite = setuptools.dist:check_test_suite", 126 "zip_safe = setuptools.dist:assert_bool", [all …]
|