repo_name
stringlengths
7
65
path
stringlengths
5
185
copies
stringlengths
1
4
size
stringlengths
4
6
content
stringlengths
977
990k
license
stringclasses
14 values
hash
stringlengths
32
32
line_mean
float64
7.18
99.4
line_max
int64
31
999
alpha_frac
float64
0.25
0.95
ratio
float64
1.5
7.84
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
chainer/chainer
chainer/functions/pooling/roi_max_align_2d.py
4
22686
# Modified work: # ----------------------------------------------------------------------------- # Copyright (c) 2018 Preferred Infrastructure, Inc. # Copyright (c) 2018 Preferred Networks, Inc. # ----------------------------------------------------------------------------- # Original work: # -------------------------...
mit
a50e9b10b14f97b6b999d5d336fd5aca
41.642857
79
0.486335
3.534746
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/pip/_internal/vcs/subversion.py
8
8863
from __future__ import absolute_import import logging import os import re from pip._vendor.six.moves.urllib import parse as urllib_parse from pip._internal.index import Link from pip._internal.utils.logging import indent_log from pip._internal.utils.misc import display_path, remove_auth_from_url, rmtree from pip._in...
mit
26c3a7031b92af977614effc0ada4f54
33.893701
79
0.537967
3.933866
false
false
false
false
chainer/chainer
chainer/training/extensions/parameter_statistics.py
6
7507
import numpy import six import chainer from chainer import backend from chainer import reporter from chainer.training import extension from chainer.training import trigger as trigger_module _default_statistics = { 'mean': lambda x: backend.get_array_module(x).mean(x), 'std': lambda x: backend.get_array_modul...
mit
4e35ae70e4cdd59b96a03cf0ceba139d
41.412429
79
0.577994
4.745259
false
false
false
false
stopstalk/stopstalk-deployment
languages/nl.py
159
16825
# coding: utf8 { '!langcode!': 'nl', '!langname!': 'Nederlands', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN', '%(nrows)s records foun...
mit
d4d22ed8ab396b3a74513ef262498a0b
43.734043
281
0.702438
2.854718
false
false
false
false
chainer/chainer
examples/chainermn/dcgan/visualize.py
10
1078
#!/usr/bin/env python import os import numpy as np from PIL import Image import chainer import chainer.cuda from chainer import Variable def out_generated_image(gen, dis, rows, cols, seed, dst): @chainer.training.make_extension() def make_image(trainer): np.random.seed(seed) n_images = rows...
mit
80b3ed0ff461b7a6282fb3a759a9a6ae
28.135135
68
0.581633
3.237237
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/pip/_internal/req/__init__.py
16
2093
from __future__ import absolute_import import logging from .req_install import InstallRequirement from .req_set import RequirementSet from .req_file import parse_requirements from pip._internal.utils.logging import indent_log __all__ = [ "RequirementSet", "InstallRequirement", "parse_requirements", "install...
mit
e0fe9fb778113b333ed0b87bdad299c4
29.333333
73
0.520784
5.366667
false
false
false
false
chainer/chainer
examples/mnist/train_mnist_data_parallel.py
5
4284
#!/usr/bin/env python import argparse import chainer import chainer.links as L from chainer import training from chainer.training import extensions import chainerx import train_mnist def main(): # This script is almost identical to train_mnist.py. The only difference is # that this script uses data-parallel...
mit
38469e5d70e88c9b82340aaa3c43243b
42.714286
79
0.609477
4.159223
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/pip/_vendor/chardet/escprober.py
292
3950
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is mozilla.org code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights Reserved. # # Con...
mit
518e7cb78dc9762e260485a1c9b491ab
38.108911
81
0.629367
4.307525
false
false
false
false
chainer/chainer
onnx_chainer/replace_func.py
3
9133
import inspect import chainer class WrappedFunctionNode(chainer.FunctionNode): """Wrap the target function and operate as ``FunctionNode`` Arguments: name (str): name of the function node func (func): the target function args (list): args for the function kwargs (dict): kwarg...
mit
9d6b5913f4040fc75073d5ab8154d6a6
35.532
79
0.580423
4.285781
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/pip/_vendor/urllib3/connectionpool.py
23
35464
from __future__ import absolute_import import errno import logging import sys import warnings from socket import error as SocketError, timeout as SocketTimeout import socket from .exceptions import ( ClosedPoolError, ProtocolError, EmptyPoolError, HeaderParsingError, HostChangedError, Locatio...
mit
5c1a72eaf82f2184e89ddbee13ce5a18
38.143488
99
0.595646
4.56246
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/pip/_vendor/chardet/universaldetector.py
241
12485
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 2001 # the Initial Developer. All R...
mit
0d88036d358a78aab9a5a4678eac810a
42.653846
80
0.547938
4.481335
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/pip/_internal/utils/hashes.py
24
2900
from __future__ import absolute_import import hashlib from pip._vendor.six import iteritems, iterkeys, itervalues from pip._internal.exceptions import ( HashMismatch, HashMissing, InstallationError, ) from pip._internal.utils.misc import read_chunks # The recommended hash algo of the moment. Change this wheneve...
mit
b065f4336248836239beca12acb20d8c
29.851064
78
0.633103
4.178674
false
false
false
false
chainer/chainer
chainer/training/extensions/variable_statistics_plot.py
6
13511
from __future__ import division import os import warnings import numpy import six import chainer from chainer import backend from chainer.backends import cuda from chainer.training import extension from chainer.training import trigger as trigger_module from chainer.utils import argument _available = None def _try...
mit
56c4a104c8b4e591b780fdc40df4031b
35.714674
79
0.549626
4.154674
false
false
false
false
chainer/chainer
tests/chainer_tests/functions_tests/rnn_tests/test_function_tree_lstm.py
4
2970
import numpy import six from chainer import functions from chainer import testing from chainer.testing import backend def _sigmoid(x): half = x.dtype.type(0.5) return numpy.tanh(x * half) * half + half def _shaped_random_array(shape, dtype): return numpy.random.uniform(-1, 1, shape).astype(dtype) @te...
mit
16fcf20762404e2b839b02275e4b8948
27.557692
75
0.522559
3.267327
false
true
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/lxml/html/clean.py
12
26084
"""A cleanup tool for HTML. Removes unwanted tags and content. See the `Cleaner` class for details. """ import re import copy try: from urlparse import urlsplit except ImportError: # Python 3 from urllib.parse import urlsplit from lxml import etree from lxml.html import defs from lxml.html import fromstr...
mit
5a864c5e04b910e1315a70aff21a7bf3
34.63388
133
0.549801
4.051569
false
false
false
false
chainer/chainer
chainer/iterators/_statemachine.py
10
1564
import collections import numpy IteratorState = collections.namedtuple('IteratorState', ( 'current_position', 'epoch', 'is_new_epoch', 'order')) def iterator_statemachine(state, batch_size, repeat, order_sampler, dataset_len): i, epoch, _, order = state if not repeat and epoc...
mit
063515916fe98fe769f6b86d72b1b88b
26.928571
71
0.555627
3.989796
false
false
false
false
chainer/chainer
examples/pix2pix/train_facade.py
6
5144
#!/usr/bin/env python from __future__ import print_function import argparse import sys import warnings import numpy import chainer from chainer import training from chainer.training import extensions import chainerx from facade_dataset import FacadeDataset from facade_visualizer import out_image from net import D...
mit
5161f5fcbb9853ccbdf2890ce39575d0
36.007194
78
0.628694
3.864763
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/setuptools/_vendor/pyparsing.py
122
232055
# module pyparsing.py # # Copyright (c) 2003-2018 Paul T. McGuire # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to u...
mit
5e20e8236dadcae2f6d8605c87422754
38.413619
195
0.560173
4.302254
false
false
false
false
stopstalk/stopstalk-deployment
gcp_cloud_functions/spoj_retrieval_function/function-source/main.py
1
3699
import bs4 import time import datetime import json import requests def get_problem_wise_submissions(spoj_handle, problem_slug, last_retrieved): """ Given the spoj handle and the problem, get the spoj submissions made after the timestamp represented by last_retrieved @params spoj_handle (Str...
mit
49daf3e13923dab8266055f85e4e816a
36.363636
89
0.498243
4.561036
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/wheel/cli/__init__.py
8
2461
""" Wheel command-line utility. """ from __future__ import print_function import argparse import os import sys def require_pkgresources(name): try: import pkg_resources # noqa: F401 except ImportError: raise RuntimeError("'{0}' needs pkg_resources (part of setuptools).".format(name)) clas...
mit
e40dfcdfcb854fe59c344a5fd39b4d14
27.287356
90
0.634701
3.684132
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/pip/_vendor/html5lib/filters/whitespace.py
169
1214
from __future__ import absolute_import, division, unicode_literals import re from . import base from ..constants import rcdataElements, spaceCharacters spaceCharacters = "".join(spaceCharacters) SPACES_REGEX = re.compile("[%s]+" % spaceCharacters) class Filter(base.Filter): """Collapses whitespace except in pr...
mit
2f53e7d7e64a385e83d99ccda27e3f81
30.947368
90
0.600494
4.479705
false
false
false
false
chainer/chainer
chainer/backends/cuda.py
1
26329
"""Device, context and memory management on CuPy. .. note:: The package ``chainer.cuda`` has been renamed to :mod:`chainer.backends.cuda` as of v4.0.0, but the previous module path ``chainer.cuda`` is also available. Chainer uses `CuPy <https://cupy.chainer.org/>`_ (with very thin wrapper) to exploit the spe...
mit
399b486a7bc6f14bd2e4635727a062cc
30.95267
80
0.596149
4.115836
false
false
false
false
chainer/chainer
chainer/links/activation/maxout.py
8
4114
import numpy import chainer from chainer.functions.activation import maxout from chainer import initializer from chainer import link from chainer.links.connection import linear class Maxout(link.Chain): """Fully-connected maxout layer. Let ``M``, ``P`` and ``N`` be an input dimension, a pool size, and a...
mit
57edc5c60cdfad362354ada83c5b9aed
35.087719
74
0.592854
3.963391
false
false
false
false
chainer/chainer
chainer/graph_optimizations/static_graph.py
4
67103
import sys import weakref import numpy as np import chainer from chainer.backends import cuda import chainer.function_node def _is_xp(x): return isinstance(x, np.ndarray) or isinstance(x, cuda.ndarray) class ScheduleInfo(object): """A callable wrapper for a function in the static schedule. Args: ...
mit
a9c6a7b14c049bc59dc394a34e643862
44.648299
79
0.591822
4.516592
false
false
false
false
chainer/chainer
examples/imagenet/dataset_util.py
5
1459
import random import chainer from chainer import dataset from chainer import datasets class PreprocessedDataset(dataset.DatasetMixin): def __init__(self, path, root, mean, crop_size, random=True): self.base = datasets.LabeledImageDataset(path, root) self.mean = mean.astype(chainer.get_dtype()) ...
mit
67baf9c53546bf9f2be010b2539227e2
30.717391
77
0.55586
3.799479
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/pip/_vendor/html5lib/filters/lint.py
87
3643
from __future__ import absolute_import, division, unicode_literals from pip._vendor.six import text_type from . import base from ..constants import namespaces, voidElements from ..constants import spaceCharacters spaceCharacters = "".join(spaceCharacters) class Filter(base.Filter): """Lints the token stream fo...
mit
6ea23fdcb253d52eac4cc140d49e8b78
38.172043
98
0.536097
5.087989
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/pip/_vendor/webencodings/mklabels.py
520
1305
""" webencodings.mklabels ~~~~~~~~~~~~~~~~~~~~~ Regenarate the webencodings.labels module. :copyright: Copyright 2012 by Simon Sapin :license: BSD, see LICENSE for details. """ import json try: from urllib import urlopen except ImportError: from urllib.request import urlopen def asser...
mit
3be0ad7993fdefc65cf012ab6ad552d4
21.118644
71
0.604598
3.782609
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/lxml/builder.py
53
8152
# # Element generator factory by Fredrik Lundh. # # Source: # http://online.effbot.org/2006_11_01_archive.htm#et-builder # http://effbot.python-hosting.com/file/stuff/sandbox/elementlib/builder.py # # -------------------------------------------------------------------- # The ElementTree toolkit is # # Copyright (...
mit
67d447ddb55fd8ca3d5816fbba8f35bf
32.138211
108
0.549558
4.135972
false
false
false
false
chainer/chainer
tests/chainer_tests/functions_tests/loss_tests/test_ctc.py
8
9219
import math import unittest import numpy import chainer from chainer import backend from chainer.backends import cuda from chainer import functions from chainer import gradient_check from chainer import testing from chainer.testing import attr from chainer.testing import condition class CTCTestBase(object): de...
mit
15648abc669752a4cd19df0d53ebac5d
34.187023
79
0.555592
3.376923
false
true
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/requests/packages/chardet/euctwfreq.py
3123
34872
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...
mit
08bc69f6f832b77ecffb3d9cc37d85b0
80.476636
87
0.737382
1.767282
false
false
false
false
chainer/chainer
chainer/training/triggers/early_stopping_trigger.py
8
5200
import operator import warnings from chainer import reporter from chainer.training import util from chainer.utils import argument class EarlyStoppingTrigger(object): """__init__(\ self, check_trigger=(1, 'epoch'), monitor='main/loss', \ patience=3, mode='auto', verbose=False, \ max_trigge...
mit
0a84bc0748c518e55de9efd0824cc6f1
32.333333
79
0.580962
4.506066
false
false
false
false
chainer/chainer
chainer/gradient_check.py
4
43693
from __future__ import absolute_import import warnings import numpy import six import chainer from chainer import backend from chainer.backends import _cpu from chainer.backends import cuda from chainer import configuration from chainer import testing from chainer import utils from chainer import variable import chai...
mit
e1540b9f413f946a0bfd886201dac9b8
38.975297
79
0.556954
3.95376
false
false
false
false
chainer/chainer
chainer/functions/math/lgamma.py
8
1562
import chainer from chainer.backends import cuda from chainer import function_node from chainer import utils from chainer.utils import type_check _lgamma_cpu = None class LGamma(function_node.FunctionNode): @property def label(self): return 'lgamma' def check_type_forward(self, in_types): ...
mit
3b172f0163dd09589b5fb6ce02d14f75
27.4
79
0.597311
3.745803
false
false
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/pip/_vendor/html5lib/treeadapters/sax.py
169
1776
from __future__ import absolute_import, division, unicode_literals from xml.sax.xmlreader import AttributesNSImpl from ..constants import adjustForeignAttributes, unadjustForeignAttributes prefix_mapping = {} for prefix, localName, namespace in adjustForeignAttributes.values(): if prefix is not None: pre...
mit
21726138a9415a04b818da0f1d7caf52
34.52
74
0.58277
4.919668
false
false
false
false
chainer/chainer
chainer/functions/math/bias.py
8
1607
import chainer from chainer.functions.array import broadcast from chainer.functions.array import reshape def bias(x, y, axis=1): """Elementwise summation with broadcasting. Computes a elementwise summation of two input variables, with the shape of the latter variable broadcasted to match the shape of the...
mit
44f2f36b86cadf14320fe665363e6fe0
32.479167
78
0.618544
3.7723
false
false
false
false
chainer/chainer
chainer/functions/evaluation/r2_score.py
8
2745
from chainer import backend from chainer import function from chainer.utils import type_check class R2_score(function.Function): def __init__(self, sample_weight, multioutput): if sample_weight is not None: raise NotImplementedError() if multioutput in ['uniform_average', 'raw_values'...
mit
6b9f6ff77916295fc6955e8a8a5bf79d
37.661972
79
0.6051
4.036765
false
false
false
false
stopstalk/stopstalk-deployment
languages/tr.py
121
7256
# coding: utf-8 { '!langcode!': 'tr', '!langname!': 'Türkçe', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"güncelle" ("update") "field1=\'yenideğer\'" gibi isteğe bağlı bir ifadedir. JON sonucu güncelleyemez veya silemzsiniz.', '%s %%(shop)': '%s ...
mit
0e919e66ed8997ff531a335562c4ef73
41.204819
293
0.680131
2.294792
false
false
false
false
chainer/chainer
chainer/functions/pooling/average_pooling_2d.py
10
8383
import numpy import chainer from chainer import backend from chainer.backends import cuda from chainer.backends import intel64 from chainer import function_node from chainer.functions.pooling import average_pooling_nd from chainer.functions.pooling import pooling_2d from chainer.utils import conv import chainerx cla...
mit
2008a9523d327e44552641298a66a250
35.929515
79
0.521174
3.133832
false
false
false
false
chainer/chainer
chainer/distributions/beta.py
6
3139
import chainer from chainer import backend from chainer import distribution from chainer.functions.array import where from chainer.functions.math import digamma from chainer.functions.math import exponential from chainer.functions.math import lgamma from chainer import utils from chainer.utils import cache def _lbeta...
mit
35fbade7d62d5b14fa6559e8993bccdd
26.535088
78
0.572794
3.212897
false
false
false
false
chainer/chainer
chainer/functions/array/stack.py
9
3888
import chainer from chainer import backend from chainer import function_node from chainer.utils import type_check import chainerx class Stack(function_node.FunctionNode): """Concatenate variables along a new axis.""" def __init__(self, axis): self.axis = axis def check_type_forward(self, in_typ...
mit
e2e2561c16e7a59baacd83b9c8635129
29.139535
78
0.425154
3.553931
false
false
false
false
chainer/chainer
tests/chainerx_tests/unit_tests/routines_tests/test_pooling.py
4
7499
import functools from operator import mul import unittest import chainer import numpy import pytest import chainerx from chainerx_tests import op_utils @op_utils.op_test(['native:0', 'cuda:0']) @chainer.testing.parameterize_pytest('x_shape,ksize,stride,pad', [ ((2, 3, 4), (1,), 1, 0), ((1, 3, 4), (2, ), 3,...
mit
05294cccaabc970b7f758956702b5f61
35.759804
79
0.552874
3.038493
false
true
false
false
chainer/chainer
chainer/functions/pooling/roi_pooling_2d.py
4
16408
# Modified work: # ----------------------------------------------------------------------------- # Copyright (c) 2015 Preferred Infrastructure, Inc. # Copyright (c) 2015 Preferred Networks, Inc. # ----------------------------------------------------------------------------- # Original work of _roi_pooling_slice, forwa...
mit
c0704496aea754afeb86a434259132db
43.226415
79
0.507862
3.802549
false
false
false
false
chainer/chainer
chainer/functions/connection/deconvolution_2d.py
1
18105
import numpy import chainer from chainer.backends import cuda from chainer.backends import intel64 from chainer import configuration from chainer import function_node import chainer.functions from chainer.functions.connection import convolution_2d from chainer import memory_layouts from chainer.utils import argument f...
mit
ef08632daeddc58069b819f109083acb
36.329897
79
0.538801
3.307453
false
false
false
false
chainer/chainer
examples/imagenet/compute_mean.py
33
1037
#!/usr/bin/env python import argparse import sys import numpy as np import chainer def compute_mean(dataset): print('compute mean image') sum_image = 0 N = len(dataset) for i, (image, _) in enumerate(dataset): sum_image += image sys.stderr.write('{} / {}\r'.format(i, N)) sys....
mit
2fe268db3c155095dd97b48490ff08c5
26.289474
77
0.600771
3.913208
false
false
false
false
chainer/chainer
chainer/graph_optimizations/static_graph_utilities.py
6
10620
import inspect import chainer def static_code(*dec_args, **dec_kwargs): """Decorator to mark a function for inclusion in the static schedule. This decorator is used to mark a function or method to be included in a static schedule. There are multiple types of static schedules, such as "forward pass s...
mit
6d8ce52ad1df55a33456b598de1a53b3
43.621849
77
0.684181
4.822888
false
false
false
false
chainer/chainer
tests/chainer_tests/functions_tests/math_tests/test_exponential.py
8
2992
import numpy from chainer import functions from chainer import testing from chainer import utils @testing.parameterize(*testing.product({ 'shape': [(3, 2), ()], 'dtype': [numpy.float16, numpy.float32, numpy.float64], })) @testing.fix_random() @testing.inject_backend_tests( None, # CPU tests [ ...
mit
72fe5dbdfb525b685e3c02728e050908
26.962617
77
0.568516
3.335563
false
true
false
false
stopstalk/stopstalk-deployment
aws_lambda/spoj_aws_lambda_function/lambda_code/pip/_internal/build_env.py
8
4209
"""Build Environment used for isolation during sdist building """ import logging import os import sys from distutils.sysconfig import get_python_lib from sysconfig import get_paths from pip._internal.utils.misc import call_subprocess from pip._internal.utils.temp_dir import TempDirectory from pip._internal.utils.ui i...
mit
01db8b76df598a90fc5a89ec84ee7837
32.404762
76
0.591114
3.993359
false
false
false
false
chainer/chainer
chainer/distributions/gamma.py
6
2914
import chainer from chainer.backends import cuda from chainer import distribution from chainer.functions.array import broadcast from chainer.functions.array import where from chainer.functions.math import digamma from chainer.functions.math import exponential from chainer.functions.math import lgamma from chainer.utils...
mit
68b4ff3d3d09b442f3776a8a3be2559a
27.291262
79
0.59094
3.615385
false
false
false
false
klen/pylama
pylama/lint/pylama_mypy.py
1
1606
"""MyPy support. TODO: Error codes """ from __future__ import annotations from mypy import api from pylama.context import RunContext from pylama.lint import LinterV2 as Abstract class Linter(Abstract): """MyPy runner.""" name = "mypy" def run_check(self, ctx: RunContext): """Check code with m...
mit
313493f575920b70f3ebda0153455ef0
24.492063
85
0.529265
4.025063
false
false
false
false
klen/pylama
pylama/libs/inirama.py
1
9229
""" Inirama is a python module that parses INI files. .. _badges: .. include:: ../README.rst :start-after: .. _badges: :end-before: .. _contents: .. _description: .. include:: ../README.rst :start-after: .. _description: :end-before: .. _badges: :copyright: 201...
mit
70d1d2871ab5e8c0f2593d3b997ea67c
24.565097
78
0.514357
4.14228
false
false
false
false
mono/bockbuild
bockbuild/package.py
1
39744
import hashlib import os import sys import shutil import tempfile import filecmp import datetime import stat import time import urllib from util.util import * import functools class Package: def __init__(self, name, version=None, organization=None, configure_flags=None, sources=None, revision=None, git_branch=No...
mit
5de3fd99647d7663d0c3fc70b056d258
36.565217
194
0.533389
4.163855
false
false
false
false
mono/bockbuild
packages/glib.py
1
3639
class GlibPackage (GnomeXzPackage): def __init__(self): GnomeXzPackage.__init__(self, 'glib', version_major='2.36', version_minor='4') self.darwin = Package.profile.name == 'darwin' if self.dar...
mit
c9c7e963d3ba149fd2675a407bd085c7
44.4875
120
0.546029
3.664653
false
true
false
false
frappe/frappe
frappe/core/doctype/sms_settings/sms_settings.py
3
3618
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE import frappe from frappe import _, msgprint, throw from frappe.model.document import Document from frappe.utils import nowdate class SMSSettings(Document): pass def validate_receiver_nos(receiver_list): validated_re...
mit
547108a979450ff296be43f5a9214d5a
24.300699
98
0.676341
3.009983
false
false
false
false
simpeg/discretize
tests/docs/test_docs.py
1
1473
import unittest import os from sphinx.application import Sphinx import multiprocessing n_cpu = multiprocessing.cpu_count() class Doc_Test(unittest.TestCase): @property def path_to_docs(self): dirname, file_name = os.path.split(os.path.abspath(__file__)) return os.path.sep.join(dirname.split(o...
mit
6c5fafaa2fe56f3a09a3ecfd673b02c5
29.061224
75
0.558724
3.601467
false
true
false
false
sqlalchemy/mako
mako/cache.py
9
7680
# mako/cache.py # Copyright 2006-2022 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from mako import util _cache_plugins = util.PluginLoader("mako.cache") register_plugin = _cache_plugin...
mit
9f2fb513464a2ed9bd1e3431c3f7b523
31.133891
79
0.627995
4.245439
false
false
false
false
sqlalchemy/mako
test/test_lexer.py
2
35767
import re import pytest from mako import compat from mako import exceptions from mako import parsetree from mako import util from mako.lexer import Lexer from mako.template import Template from mako.testing.assertions import assert_raises from mako.testing.assertions import assert_raises_message from mako.testing.ass...
mit
43fbfa1c5ee2fb9836d810f551cb190a
28.031656
79
0.316828
4.727333
false
false
false
false
simpeg/discretize
tutorials/operators/1_averaging.py
1
5799
""" Averaging Matricies =================== Averaging matricies are used when a discrete variable living on some part of the mesh (e.g. nodes, centers, edges or faces) must be approximated at other locations. Averaging matricies are sparse and exist for 1D, 2D and 3D meshes. For each mesh class (*Tensor mesh*, *Tree m...
mit
692836f4a67e4fdeb65af80a1d70d0c2
28.436548
79
0.659769
2.960184
false
false
false
false
frappe/frappe
frappe/database/postgres/database.py
2
13431
import re import psycopg2 import psycopg2.extensions from psycopg2.errorcodes import ( CLASS_INTEGRITY_CONSTRAINT_VIOLATION, DEADLOCK_DETECTED, DUPLICATE_COLUMN, INSUFFICIENT_PRIVILEGE, STRING_DATA_RIGHT_TRUNCATION, UNDEFINED_COLUMN, UNDEFINED_TABLE, UNIQUE_VIOLATION, ) from psycopg2.errors import ReadOnlySqlT...
mit
3a3b59e20ef94aff3e91d1c38999d8bd
28.780488
118
0.669719
3.025
false
false
false
false
richardkiss/pycoin
pycoin/vm/annotate.py
1
5773
import collections import itertools from pycoin.encoding.hash import hash160 from pycoin.encoding.hexbytes import b2h from pycoin.encoding.sec import is_sec_compressed, public_pair_to_hash160_sec from pycoin.intbytes import byte2int from pycoin.satoshi.flags import SIGHASH_ALL, SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_AN...
mit
13c0dfd3fe9fbb44d54f79985aad1a51
39.65493
112
0.590508
3.463107
false
false
false
false
frappe/frappe
frappe/database/schema.py
3
10804
import re import frappe from frappe import _ from frappe.utils import cint, cstr, flt SPECIAL_CHAR_PATTERN = re.compile(r"[\W]", flags=re.UNICODE) VARCHAR_CAST_PATTERN = re.compile(r"varchar\(([\d]+)\)") class InvalidColumnName(frappe.ValidationError): pass class DBTable: def __init__(self, doctype, meta=None):...
mit
58606905d45ca1e54ab86f15764e7bcd
27.431579
109
0.664846
3.156296
false
false
false
false
sqlalchemy/mako
test/test_ast.py
9
10452
from mako import ast from mako import exceptions from mako import pyparser from mako.testing.assertions import assert_raises from mako.testing.assertions import eq_ exception_kwargs = {"source": "", "lineno": 0, "pos": 0, "filename": ""} class AstParseTest: def test_locate_identifiers(self): """test the ...
mit
0af450142fafb449ac0f99ae11437c91
28.862857
77
0.533486
3.44723
false
true
false
false
richardkiss/pycoin
tests/ecdsa/secp256r1_test.py
1
10967
import unittest from pycoin.ecdsa.secp256r1 import secp256r1_generator VECTORS = """ k = 1 x = 6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296 y = 4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5 k = 2 x = 7CF27B188D034F7E8A52380304B51AC3C08969E277F21B35A60B48FC47669978 y = 07775510...
mit
0e41fddd2153bf0c06fbff4484e98266
43.581301
97
0.891219
1.866406
false
false
false
false
frappe/frappe
frappe/query_builder/utils.py
2
3630
from enum import Enum from importlib import import_module from typing import Any, Callable, get_type_hints from pypika import Query from pypika.queries import Column from pypika.terms import PseudoColumn import frappe from frappe.query_builder.terms import NamedParameterWrapper from .builder import MariaDB, Postgres...
mit
b44c70bc55410251a2751fde0b808ccd
26.293233
80
0.70551
3.178634
false
false
false
false
simpeg/discretize
tutorials/mesh_generation/2_tensor_mesh.py
1
5305
""" Tensor meshes ============= Tensor meshes are the most basic class of meshes that can be created with discretize. They belong to the class (:class:`~discretize.TensorMesh`). Tensor meshes can be defined in 1, 2 or 3 dimensions. Here we demonstrate: - How to create basic tensor meshes - How to include padd...
mit
ab533281fa476f0fb64cacc7cda03ecf
28.636872
79
0.648068
3.062933
false
false
false
false
frappe/frappe
frappe/tests/test_child_table.py
2
1847
from typing import Callable import frappe from frappe.model import child_table_fields from frappe.tests.utils import FrappeTestCase class TestChildTable(FrappeTestCase): def tearDown(self) -> None: try: frappe.delete_doc("DocType", self.doctype_name, force=1) except Exception: pass def test_child_table_...
mit
12fbba9344dc17c36eb504f34180096d
28.31746
92
0.712507
3.388991
false
true
false
false
frappe/frappe
frappe/desk/page/user_profile/user_profile.py
2
2455
from datetime import datetime import frappe from frappe.utils import getdate @frappe.whitelist() def get_energy_points_heatmap_data(user, date): try: date = getdate(date) except Exception: date = getdate() return dict( frappe.db.sql( """select unix_timestamp(date(creation)), sum(points) from `tabEnerg...
mit
aca27c2b568b1e4cfc88d8dde366b1df
20.725664
80
0.629328
2.792947
false
false
false
false
richardkiss/pycoin
recipes/multisig/1_create_address.py
1
1652
#!/usr/bin/env python # This script shows you how to create a "2-of-3" multisig address. # It requires BIP32 private key file. import os import sys from pycoin.encoding.hexbytes import b2h from pycoin.symbols.btc import network def main(): if len(sys.argv) != 2: print("usage: %s bip32_key_file" % sys.a...
mit
5b346984a351f444b4ef2ee18bd79a5c
30.769231
82
0.637409
2.75793
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/isosurface/_colorbar.py
1
12733
import _plotly_utils.basevalidators class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="colorbar", parent_name="isosurface", **kwargs): super(ColorbarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
mit
b770cf8a9e91ac10db3d2e8044f3d198
47.785441
83
0.52682
4.845129
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/io/_renderers.py
1
16640
from __future__ import absolute_import, division import textwrap from copy import copy import os from distutils.version import LooseVersion from plotly import optional_imports from plotly.io._base_renderers import ( MimetypeRenderer, ExternalRenderer, PlotlyRenderer, NotebookRenderer, KaggleRend...
mit
120d70ab5916a9096f8d19cd194b76a4
29.929368
88
0.61887
4.370896
false
true
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/icicle/_leaf.py
1
2803
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Leaf(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "icicle" _path_str = "icicle.leaf" _valid_props = {"opacity"} # opacity # ------- ...
mit
3e74d42b693405638116f10ca37b0a5e
26.752475
82
0.512665
4.470494
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/carpet/_baxis.py
1
11548
import _plotly_utils.basevalidators class BaxisValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="baxis", parent_name="carpet", **kwargs): super(BaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, dat...
mit
38cdcf1473ec2b15a172e68e92898729
45.192
76
0.536716
5.194782
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_repr.py
2
2282
from __future__ import absolute_import, division from unittest import TestCase, SkipTest import plotly.graph_objs as go class TestGraphObjRepr(TestCase): def test_trace_repr(self): N = 100 scatt = go.Scatter( y=list(range(N)), marker={"color": "green", "opacity": [e / N for...
mit
9be91797b257098cf459d0d4bc2f62b0
43.745098
81
0.421122
2.544036
false
true
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/scattersmith/_textfont.py
1
1870
import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="textfont", parent_name="scattersmith", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
mit
ef00a024795d9a4444580057c13359b0
39.652174
85
0.535294
4.734177
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/splom/_dimension.py
1
11352
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Dimension(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "splom" _path_str = "splom.dimension" _valid_props = { "axis", "label", ...
mit
cce642e3aad0cf979e441bd3d7a4d063
30.709497
82
0.554528
4.808132
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/volume/slices/_z.py
1
6143
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Z(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "volume.slices" _path_str = "volume.slices.z" _valid_props = {"fill", "locations", "locationssrc",...
mit
db2dea32c7ca2cc54c6fbfb801460f5b
27.705607
82
0.532639
4.675038
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/parcats/_tickfont.py
1
1523
import _plotly_utils.basevalidators class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="tickfont", parent_name="parcats", **kwargs): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
mit
55f4bfa2474e01c492a1bf0d8581fcb6
40.162162
80
0.543664
4.479412
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/layout/smith/_domain.py
1
5838
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Domain(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.smith" _path_str = "layout.smith.domain" _valid_props = {"column", "row", "x", "y"...
mit
dca17f2005e292db3f4f29f31ceb1f56
27.202899
84
0.503083
4.334076
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_font.py
1
1541
import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="font", parent_name="splom.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_n...
mit
57d678ee0c1ad61e6bb86793c99265ab
38.512821
85
0.537962
4.466667
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/densitymapbox/_colorbar.py
1
78199
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "densitymapbox" _path_str = "densitymapbox.colorbar" _valid_props = { "bgcolor", ...
mit
839468f5637c518efc035a1314478363
35.102955
99
0.558895
4.199055
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/scattercarpet/_marker.py
1
67230
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattercarpet" _path_str = "scattercarpet.marker" _valid_props = { "angle", ...
mit
9a664a15162eadcb89c6eaec8c8b5e41
38.922803
87
0.530775
4.295298
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/histogram/marker/_line.py
1
5145
import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="line", parent_name="histogram.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
mit
cb6b4cbddd55f7ea1ef309d6c7abb090
48
85
0.543829
4.664551
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformatstops.py
1
2329
import _plotly_utils.basevalidators class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, plotly_name="tickformatstops", parent_name="scattercarpet.marker.colorbar", **kwargs, ): super(TickformatstopsValidator, self).__...
mit
8d7ff6d4e907b44f28fa3be7aa8779ba
42.12963
84
0.549592
5.074074
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/choropleth/_colorbar.py
1
12733
import _plotly_utils.basevalidators class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="colorbar", parent_name="choropleth", **kwargs): super(ColorbarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
mit
f7877203c2c4e43acab6f29fc502cf6c
47.785441
83
0.52682
4.854365
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/barpolar/_marker.py
1
49118
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "barpolar" _path_str = "barpolar.marker" _valid_props = { "autocolorscale", "...
mit
1742c560bf5808ee454cbae66afff442
40.83816
87
0.533674
4.540396
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/layout/geo/_center.py
1
4113
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Center(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.geo" _path_str = "layout.geo.center" _valid_props = {"lat", "lon"} # lat ...
mit
e8861d96a52bf9254de3127e0af3093d
27.964789
84
0.526137
4.621348
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/choroplethmapbox/marker/_line.py
1
1222
import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="line", parent_name="choroplethmapbox.marker", **kwargs ): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=...
mit
96f09d70186f52c298bb00e0740960c0
34.941176
81
0.525368
4.811024
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_tickfont.py
1
8484
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "parcats.line.colorbar" _path_str = "parcats.line.colorbar.tickfont" _valid_props = {"color...
mit
f17bb3335a18f616e8d556a32a64c26f
36.374449
82
0.560702
3.99435
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/violin/box/_line.py
1
5670
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "violin.box" _path_str = "violin.box.line" _valid_props = {"color", "width"} # color #...
mit
60c01661687c3f248ac88542a377d37f
33.156627
82
0.537743
3.940236
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformatstops.py
1
2323
import _plotly_utils.basevalidators class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, plotly_name="tickformatstops", parent_name="scatter3d.line.colorbar", **kwargs, ): super(TickformatstopsValidator, self).__init__...
mit
c7a0c77ff0027def2204538c5d7563dd
42.018519
84
0.548429
5.061002
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/histogram/_error_y.py
1
18691
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorY(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "histogram" _path_str = "histogram.error_y" _valid_props = { "array", "arraym...
mit
0b8ac8821ec9cfda383fd94a91845edc
30.048173
82
0.545824
4.37421
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/scatter3d/_error_z.py
1
2986
import _plotly_utils.basevalidators class Error_ZValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="error_z", parent_name="scatter3d", **kwargs): super(Error_ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
mit
c218d0bc1bc07cbb59e0b735be73e1e3
41.056338
81
0.535834
5.399638
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/barpolar/_stream.py
1
4125
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "barpolar" _path_str = "barpolar.stream" _valid_props = {"maxpoints", "token"} # maxpoin...
mit
473a05ce8dfbbdf9c785d07235afa953
28.255319
82
0.528485
4.563053
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/sankey/hoverlabel/_font.py
1
1859
import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="font", parent_name="sankey.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
mit
f0b64a3a8177292e9d179a0e188ba8ac
39.413043
86
0.532006
4.754476
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/volume/caps/_z.py
1
4591
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Z(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "volume.caps" _path_str = "volume.caps.z" _valid_props = {"fill", "show"} # fill # ---- ...
mit
3b8f2c5ed2508b2f85bb0d35ac82c2d8
30.02027
82
0.534742
4.523153
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/funnel/_textfont.py
1
11161
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "funnel" _path_str = "funnel.textfont" _valid_props = {"color", "colorsrc", "family", "fami...
mit
633136e8bf316b306e54acc8f98512b1
32.821212
82
0.551115
4.058545
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/scattergl/selected/_textfont.py
1
5031
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattergl.selected" _path_str = "scattergl.selected.textfont" _valid_props = {"color"} ...
mit
8141fa57b6b07c83e3886efd2c873f5c
35.456522
82
0.548996
3.933542
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/_font.py
1
11221
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattermapbox.hoverlabel" _path_str = "scattermapbox.hoverlabel.font" _valid_props = {"color",...
mit
192ed89c559340477fcd375419d12d80
33.00303
82
0.55307
4.061165
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_to_ordered_dict.py
2
4664
from __future__ import absolute_import import plotly.graph_objs as go from collections import OrderedDict from plotly.tests.utils import TestCaseNoTemplate class FigureTest(TestCaseNoTemplate): def test_to_ordered_dict(self): fig = go.Figure( layout={ "yaxis": {"range": [1, 2...
mit
b670fca3d7ef74ac12d4c4c57064f178
33.043796
85
0.253431
6.02584
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/validators/violin/legendgrouptitle/_font.py
1
1537
import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="font", parent_name="violin.legendgrouptitle", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=...
mit
662b22026e996170dac223eed4a80027
38.410256
81
0.538061
4.48105
false
false
false
false
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/_cone.py
1
103779
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Cone(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "cone" _valid_props = { "anchor", "autocolorscale", "cauto", "cmax", ...
mit
e5a04f1daf859bc239adcb46c6190dd4
35.147335
112
0.55172
4.353329
false
false
false
false