text
stringlengths
0
1.05M
meta
dict
'''A class to store estimators once retrieved from the database. ''' import numpy as np import pickle import os from itertools import izip from dmrg_helpers.core.dmrg_exceptions import DMRGException from dmrg_helpers.core.dmrg_logging import logger class XYData(object): """An auxiliary class to hold the numerical ...
{ "repo_name": "iglpdc/dmrg_helpers", "path": "dmrg_helpers/view/xy_data.py", "copies": "1", "size": "8265", "license": "mit", "hash": -6900633658405344000, "line_mean": 34.3205128205, "line_max": 80, "alpha_frac": 0.6047186933, "autogenerated": false, "ratio": 4.203967446592065, "config_test": ...
"""A class to store named variables and a scope operator to manage sharing.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import contextlib import six from tensorflow.python.framework import ops from tensorflow.python.framework import tensor_shape fro...
{ "repo_name": "arunhotra/tensorflow", "path": "tensorflow/python/ops/variable_scope.py", "copies": "3", "size": "13415", "license": "apache-2.0", "hash": 3964003397921540600, "line_mean": 38.6893491124, "line_max": 80, "alpha_frac": 0.6661200149, "autogenerated": false, "ratio": 4.15968992248062,...
"""A class to store named variables and a scope operator to manage sharing.""" import contextlib from tensorflow.python.framework import ops from tensorflow.python.framework import tensor_shape from tensorflow.python.framework import types from tensorflow.python.ops import init_ops from tensorflow.python.ops import v...
{ "repo_name": "brendandburns/tensorflow", "path": "tensorflow/python/ops/variable_scope.py", "copies": "3", "size": "13307", "license": "apache-2.0", "hash": -1038153803816615200, "line_mean": 38.960960961, "line_max": 80, "alpha_frac": 0.6651386488, "autogenerated": false, "ratio": 4.16103814884...
"""A class to store tables. Sample Usage: table = SgTable() table.Append([1, 2, 3]) table.Append([2, 4, 6]) table.Append([3, 6, 9]) for row in table: print(row) print(table[1]) table[1] = [2, 2, 2] print(table[1]) table.SetFields(["a", "b", "c"]) print(table.GetVals("a")...
{ "repo_name": "lnishan/SQLGitHub", "path": "components/table.py", "copies": "1", "size": "4814", "license": "mit", "hash": -5761484324779521000, "line_mean": 27.4852071006, "line_max": 107, "alpha_frac": 0.4914831741, "autogenerated": false, "ratio": 3.669207317073171, "config_test": false, "...
"""A class used for isotherm interpolation.""" from scipy.interpolate import interp1d class IsothermInterpolator(): """ Class used to interpolate between isotherm points. Call directly to use. It is mainly a wrapper around scipy.interpolate.interp1d. Parameters ---------- interp_type :...
{ "repo_name": "pauliacomi/pyGAPS", "path": "src/pygaps/utilities/isotherm_interpolator.py", "copies": "1", "size": "2112", "license": "mit", "hash": 5408119305508866000, "line_mean": 29.6086956522, "line_max": 73, "alpha_frac": 0.6051136364, "autogenerated": false, "ratio": 4.641758241758242, "...
""" A class which handles communication with the Imgur API """ import json import requests class ImgurAPI: def __init__(self, config): self.config = config self.file_extensions = { 'image/jpeg': 'jpg', 'image/jpg': 'jpg', 'image/png': 'png' } def ...
{ "repo_name": "xaroth8088/tournament-of-lulz", "path": "image_populators/imgur/imgur_api.py", "copies": "1", "size": "3241", "license": "mit", "hash": -3371939071418490400, "line_mean": 28.1981981982, "line_max": 115, "alpha_frac": 0.5057081148, "autogenerated": false, "ratio": 4.192755498059508,...
# A class which presents the reverse of a sequence without duplicating it. # From: "Steven D. Majewski" <sdm7g@elvis.med.virginia.edu> # It works on mutable or inmutable sequences. # # >>> for c in Rev( 'Hello World!' ) : sys.stdout.write( c ) # ... else: sys.stdout.write( '\n' ) # ... # !dlroW olleH # # The .forw is ...
{ "repo_name": "OS2World/APP-INTERNET-torpak_2", "path": "Demo/classes/Rev.py", "copies": "1", "size": "2196", "license": "mit", "hash": -5882985264392080000, "line_mean": 23.6741573034, "line_max": 74, "alpha_frac": 0.5250455373, "autogenerated": false, "ratio": 2.931909212283044, "config_test"...
""" A clean, no_frills character-level generative language model. Based on Andrej Karpathy's blog: http://karpathy.github.io/2015/05/21/rnn-effectiveness/ """ from __future__ import print_function import os import time import tensorflow as tf DATA_PATH = 'data/arvix_abstracts.txt' HIDDEN_SIZE = 200 BATCH_SIZE = 64 N...
{ "repo_name": "infilect/ml-course1", "path": "week3/rnn-lstm/scripts/simple-lstm-on-ptb/char_rnn_gist.py", "copies": "2", "size": "4623", "license": "mit", "hash": -6780708157374466000, "line_mean": 39.5526315789, "line_max": 107, "alpha_frac": 0.6355180619, "autogenerated": false, "ratio": 3.416...
""" A clean, no_frills character-level generative language model. Created by Danijar Hafner (danijar.com), edited by Chip Huyen for the class CS 20SI: "TensorFlow for Deep Learning Research" Based on Andrej Karpathy's blog: http://karpathy.github.io/2015/05/21/rnn-effectiveness/ """ import os os.environ['TF_CPP_MIN_L...
{ "repo_name": "YeEmrick/learning", "path": "stanford-tensorflow/2017/examples/11_char_rnn_gist.py", "copies": "1", "size": "4833", "license": "apache-2.0", "hash": -3619107956642548700, "line_mean": 38.3008130081, "line_max": 107, "alpha_frac": 0.6405959032, "autogenerated": false, "ratio": 3.391...
""" A clean, no_frills character-level generative language model. Created by Danijar Hafner, edited by Chip Huyen for the class CS 20SI: "TensorFlow for Deep Learning Research" Based on Andrej Karpathy's blog: http://karpathy.github.io/2015/05/21/rnn-effectiveness/ """ from __future__ import print_function import os ...
{ "repo_name": "kabrapratik28/Stanford_courses", "path": "cs20si/tf-stanford-tutorials/examples/11_char_rnn_gist.py", "copies": "2", "size": "4684", "license": "apache-2.0", "hash": -3947805301999071000, "line_mean": 39.3879310345, "line_max": 107, "alpha_frac": 0.6387702818, "autogenerated": false,...
""" A clean, no_frills character-level generative language model. CS 20: "TensorFlow for Deep Learning Research" cs20.stanford.edu Danijar Hafner (mail@danijar.com) & Chip Huyen (chiphuyen@cs.stanford.edu) Lecture 11 """ import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import random import sys sys.path.append('..') im...
{ "repo_name": "YeEmrick/learning", "path": "stanford-tensorflow/examples/11_char_rnn.py", "copies": "1", "size": "6017", "license": "apache-2.0", "hash": 3652099170834995000, "line_mean": 39.0866666667, "line_max": 111, "alpha_frac": 0.5595475715, "autogenerated": false, "ratio": 3.72490706319702...
"""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...
{ "repo_name": "azureplus/hue", "path": "desktop/core/ext-py/lxml/src/lxml/html/clean.py", "copies": "36", "size": "25017", "license": "apache-2.0", "hash": 6664657198664457000, "line_mean": 34.2849083216, "line_max": 133, "alpha_frac": 0.5513850582, "autogenerated": false, "ratio": 4.041518578352...
"""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 from urllib import unquote_plus except ImportError: # Python 3 from urllib.parse import urlsplit, unquote_plus from lxml import etree from l...
{ "repo_name": "bjornlevi/5thpower", "path": "nefndaralit/env/lib/python3.6/site-packages/lxml/html/clean.py", "copies": "3", "size": "26427", "license": "mit", "hash": -4239597225224439000, "line_mean": 34.615902965, "line_max": 133, "alpha_frac": 0.5509516782, "autogenerated": false, "ratio": 4....
"""A cleanup tool for HTML. Removes unwanted tags and content. See the `HtmlCleaner` class for details. """ import re import copy import threading try: from urlparse import urlsplit except ImportError: # Python 3 from urllib.parse import urlsplit from lxml import etree from lxml.html import defs from lxm...
{ "repo_name": "listen-lavender/webcrawl", "path": "webcrawl/lxmlclean.py", "copies": "1", "size": "18630", "license": "mit", "hash": -8119910387736401000, "line_mean": 35.5294117647, "line_max": 133, "alpha_frac": 0.5575952764, "autogenerated": false, "ratio": 4.0972069496371235, "config_test":...
"""ACL evaluation result and ACL abstractions.""" from weakref import proxy from itertools import chain log = __import__('logging').getLogger(__name__) class ACLResult(object): __slots__ = ('result', 'predicate', 'path', 'source') def __init__(self, result, predicate, path=None, source=None): self.result = r...
{ "repo_name": "marrow/web.security", "path": "web/security/acl.py", "copies": "1", "size": "1609", "license": "mit", "hash": 8469196829159036000, "line_mean": 24.5396825397, "line_max": 85, "alpha_frac": 0.6308266004, "autogenerated": false, "ratio": 3.3106995884773665, "config_test": false, ...
"""A client for accessing reader output from the DART system.""" import os import tqdm import json import logging import requests import itertools from datetime import datetime from collections import defaultdict from indra.config import get_config logger = logging.getLogger(__name__) dart_uname = get_config('DART_...
{ "repo_name": "johnbachman/belpy", "path": "indra/literature/dart_client.py", "copies": "1", "size": "11428", "license": "mit", "hash": 2017978166958637000, "line_mean": 33.0119047619, "line_max": 80, "alpha_frac": 0.5878543927, "autogenerated": false, "ratio": 4.062566654816921, "config_test":...
"""A client for a CoreNLP Server.""" import json import os import requests from server import CoreNLPServer class CoreNLPClient(object): """A client that interacts with the CoreNLPServer.""" def __init__(self, hostname='http://localhost', port=7000, start_server=False, server_flags=None, server_log...
{ "repo_name": "robinjia/nectar", "path": "nectar/corenlp/client.py", "copies": "1", "size": "4810", "license": "mit", "hash": 8843661790949195000, "line_mean": 31.9452054795, "line_max": 89, "alpha_frac": 0.6367983368, "autogenerated": false, "ratio": 3.621987951807229, "config_test": false, ...
"""A client for Bazaar.""" from __future__ import unicode_literals import logging import os import re from rbtools.clients import SCMClient, RepositoryInfo from rbtools.clients.errors import TooManyRevisionsError from rbtools.utils.checks import check_install from rbtools.utils.diffs import filter_diff, normalize_pa...
{ "repo_name": "reviewboard/rbtools", "path": "rbtools/clients/bazaar.py", "copies": "1", "size": "12107", "license": "mit", "hash": -7357028615447200000, "line_mean": 34.0927536232, "line_max": 79, "alpha_frac": 0.5591806393, "autogenerated": false, "ratio": 4.489061920652577, "config_test": fa...
"""A client for CVS.""" from __future__ import unicode_literals import logging import os import re import socket from rbtools.clients import SCMClient, RepositoryInfo from rbtools.clients.errors import (InvalidRevisionSpecError, TooManyRevisionsError) from rbtools.utils.checks imp...
{ "repo_name": "reviewboard/rbtools", "path": "rbtools/clients/cvs.py", "copies": "1", "size": "7763", "license": "mit", "hash": -4038863485027534300, "line_mean": 33.65625, "line_max": 79, "alpha_frac": 0.5661471081, "autogenerated": false, "ratio": 4.753827311696265, "config_test": false, "h...
"""A client for Git.""" from __future__ import unicode_literals import logging import os import re import sys import six from six.moves import zip from rbtools.clients import PatchResult, SCMClient, RepositoryInfo from rbtools.clients.errors import (AmendError, CreateCommitError,...
{ "repo_name": "reviewboard/rbtools", "path": "rbtools/clients/git.py", "copies": "1", "size": "56637", "license": "mit", "hash": 6173783049855218000, "line_mean": 36.3348714568, "line_max": 79, "alpha_frac": 0.5115560499, "autogenerated": false, "ratio": 4.650763672195763, "config_test": false,...
"""A client for in-process kernels.""" #----------------------------------------------------------------------------- # Copyright (C) 2012 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #------------...
{ "repo_name": "sserrot/champion_relationships", "path": "venv/Lib/site-packages/ipykernel/inprocess/client.py", "copies": "1", "size": "6831", "license": "mit", "hash": -3935698435814211000, "line_mean": 35.5294117647, "line_max": 80, "alpha_frac": 0.5656565657, "autogenerated": false, "ratio": 4...
"""A client for Mercurial.""" from __future__ import unicode_literals import logging import os import re import uuid import six from six.moves.urllib.parse import urlsplit, urlunparse from rbtools.clients import PatchResult, SCMClient, RepositoryInfo from rbtools.clients.errors import (CreateCommitError, ...
{ "repo_name": "reviewboard/rbtools", "path": "rbtools/clients/mercurial.py", "copies": "1", "size": "47524", "license": "mit", "hash": 4241743377227547000, "line_mean": 34.8131122833, "line_max": 82, "alpha_frac": 0.5303636058, "autogenerated": false, "ratio": 4.698368759268413, "config_test": ...
"""A client for Modoboa's public API.""" from __future__ import unicode_literals import os import pkg_resources import requests from requests.exceptions import RequestException class ModoAPIClient(object): """A simple client for the public API.""" def __init__(self, api_url=None): """Constructor....
{ "repo_name": "bearstech/modoboa", "path": "modoboa/lib/api_client.py", "copies": "1", "size": "2401", "license": "isc", "hash": -7250981990038853000, "line_mean": 30.5921052632, "line_max": 79, "alpha_frac": 0.5751770096, "autogenerated": false, "ratio": 4.264653641207815, "config_test": false...
"""A client for Modoboa's public API.""" import logging import os import pkg_resources import requests from requests.exceptions import RequestException from django.utils.translation import ugettext as _ logger = logging.getLogger("modoboa.admin") class ModoAPIClient(object): """A simple client for the public...
{ "repo_name": "modoboa/modoboa", "path": "modoboa/lib/api_client.py", "copies": "1", "size": "3198", "license": "isc", "hash": 91308827253780300, "line_mean": 31.9690721649, "line_max": 79, "alpha_frac": 0.5562851782, "autogenerated": false, "ratio": 4.460251046025105, "config_test": false, "...
"""A client for Modoboa's public API.""" import os import pkg_resources import requests from requests.exceptions import RequestException class ModoAPIClient(object): """A simple client for the public API.""" def __init__(self, api_url=None): """Constructor.""" if api_url is None: ...
{ "repo_name": "carragom/modoboa", "path": "modoboa/lib/api_client.py", "copies": "1", "size": "2360", "license": "isc", "hash": -2110103579833443300, "line_mean": 30.8918918919, "line_max": 79, "alpha_frac": 0.5720338983, "autogenerated": false, "ratio": 4.267631103074141, "config_test": false,...
"""A client for OBO-sourced identifier mappings.""" import json import logging import os import pathlib import pickle import re from collections import Counter, defaultdict from typing import List, Mapping, Optional import obonet from indra.resources import get_resource_path, load_resource_json __all__ = [ 'Ont...
{ "repo_name": "sorgerlab/indra", "path": "indra/databases/obo_client.py", "copies": "1", "size": "10958", "license": "bsd-2-clause", "hash": -7906763245769618000, "line_mean": 34.0095846645, "line_max": 80, "alpha_frac": 0.5075743749, "autogenerated": false, "ratio": 4.234157650695518, "config_...
"""A client for OBO-sourced identifier mappings.""" import json import logging import os import pickle import re from collections import Counter, defaultdict import obonet __all__ = [ 'OboClient', 'RESOURCES', ] HERE = os.path.dirname(os.path.abspath(__file__)) RESOURCES = os.path.join(HERE, os.pardir, 'res...
{ "repo_name": "johnbachman/belpy", "path": "indra/databases/obo_client.py", "copies": "1", "size": "10232", "license": "mit", "hash": 4897701888870146000, "line_mean": 33.5709459459, "line_max": 80, "alpha_frac": 0.5153440188, "autogenerated": false, "ratio": 4.127470754336426, "config_test": f...
"""A client for OWL-sourced identifier mappings.""" import json import os import pickle from collections import defaultdict from operator import itemgetter from typing import Any, Collection, Mapping, TYPE_CHECKING from tqdm import tqdm from indra.databases.obo_client import OntologyClient, prune_empty_entries from ...
{ "repo_name": "sorgerlab/indra", "path": "indra/databases/owl_client.py", "copies": "1", "size": "5166", "license": "bsd-2-clause", "hash": -4605458429948141600, "line_mean": 30.8888888889, "line_max": 78, "alpha_frac": 0.5481997677, "autogenerated": false, "ratio": 3.964696853415196, "config_t...
'''A client for talking to NSQ''' from . import connection from . import logger from . import exceptions from .constants import HEARTBEAT from .response import Response, Error from .http import nsqlookupd, ClientException from .checker import ConnectionChecker from contextlib import contextmanager import random impor...
{ "repo_name": "dlecocq/nsq-py", "path": "nsq/client.py", "copies": "1", "size": "11834", "license": "mit", "hash": 6286099481519049000, "line_mean": 38.0561056106, "line_max": 100, "alpha_frac": 0.5652357614, "autogenerated": false, "ratio": 4.7891541885876165, "config_test": false, "has_no_k...
"""A client for the ClassyFire API which enables efficient querying with chemical database files""" import csv import io import json import os import time import requests url = "http://classyfire.wishartlab.com" chunk_size = 1000 sleep_interval = 60 def structure_query(compound, label='pyclassyfire'): """Subm...
{ "repo_name": "JamesJeffryes/pyclassyfire", "path": "pyclassyfire/client.py", "copies": "1", "size": "8963", "license": "mit", "hash": -5847511594425249000, "line_mean": 35.1411290323, "line_max": 108, "alpha_frac": 0.5838446949, "autogenerated": false, "ratio": 3.780261493040911, "config_test"...
"""A client for the HackerSchool OAuth API. The script aims to do stuff without having a web-server as the "middle man" """ from __future__ import absolute_import, print_function import getpass import re from requests import get, post, Session HS_ID = '' HS_SECRET = '' # The redirect url should match exactly with ...
{ "repo_name": "punchagan/hs-twitter-lists", "path": "hs_oauth.py", "copies": "1", "size": "5631", "license": "unlicense", "hash": -2975960183592166400, "line_mean": 27.155, "line_max": 88, "alpha_frac": 0.6515716569, "autogenerated": false, "ratio": 3.754, "config_test": false, "has_no_keywor...
"""A client for the REST API of cdstar instances.""" import logging import json import requests from pycdstar import resource from pycdstar.config import Config from pycdstar.exception import CdstarError log = logging.getLogger(__name__) class Cdstar(object): """The API client. >>> api = Cdstar(service_u...
{ "repo_name": "clld/pycdstar", "path": "src/pycdstar/api.py", "copies": "1", "size": "4290", "license": "apache-2.0", "hash": 2074182113276864500, "line_mean": 34.1639344262, "line_max": 88, "alpha_frac": 0.5878787879, "autogenerated": false, "ratio": 4.128970163618864, "config_test": false, ...
"""A client for the REST API of imeji instances.""" import logging from collections import OrderedDict import requests from six import string_types from pyimeji import resource from pyimeji.config import Config log = logging.getLogger(__name__) class ImejiError(Exception): def __init__(self, message, error): ...
{ "repo_name": "xrotwang/pyimeji", "path": "pyimeji/api.py", "copies": "1", "size": "4739", "license": "apache-2.0", "hash": 1911871962174483200, "line_mean": 35.4538461538, "line_max": 90, "alpha_frac": 0.5986495041, "autogenerated": false, "ratio": 4.016101694915254, "config_test": false, "h...
"""A client implementation for the Spotnet slave server.""" import asyncio import datetime import uuid from ..utils import WebSocketWrapper DELAY = 0.1 class SpotnetSlaveClient(WebSocketWrapper): """A client for interacting with a Spotnet slave server. Attributes: name (str): The user friendly n...
{ "repo_name": "welchbj/spotnet", "path": "backend/master/slave_client.py", "copies": "1", "size": "7663", "license": "mit", "hash": 8670089353673154000, "line_mean": 32.7577092511, "line_max": 78, "alpha_frac": 0.5289051285, "autogenerated": false, "ratio": 4.424364896073903, "config_test": fal...
"""A client library for interacting with Apache Knox for Hadoop REST services See: https://github.com/alexmilowski/python-hadoop-rest-api """ # Always prefer setuptools over distutils from setuptools import setup, find_packages long_description = """ A client library for interacting with Apache Knox for Hadoop REST...
{ "repo_name": "alexmilowski/python-hadoop-rest-api", "path": "setup.py", "copies": "1", "size": "4118", "license": "apache-2.0", "hash": 7308491691477549000, "line_mean": 33.8898305085, "line_max": 94, "alpha_frac": 0.663832888, "autogenerated": false, "ratio": 3.9172216936251187, "config_test"...
# A client that abstracts shard placement. import os import time from net import gorpc from vtdb import cursor from vtdb import dbapi from vtdb import dbexceptions from vtdb import keyspace from vtdb import tablet3 from zk import zkns_query from zk import zkocc # zkocc_addrs - bootstrap addresses for resolving other...
{ "repo_name": "CERN-Stage-3/vitess", "path": "py/vtdb/sharded.py", "copies": "4", "size": "10824", "license": "bsd-3-clause", "hash": -7660292144189499000, "line_mean": 36.7142857143, "line_max": 122, "alpha_frac": 0.6571507761, "autogenerated": false, "ratio": 3.7375690607734806, "config_test"...
"""A client that uses the local file system pretending to be Swift. """ """ Copyright 2014 Gregory Holt Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2....
{ "repo_name": "rackerlabs/swiftly", "path": "swiftly/client/localclient.py", "copies": "1", "size": "22573", "license": "apache-2.0", "hash": -5081114475536469000, "line_mean": 37.3894557823, "line_max": 79, "alpha_frac": 0.4662650069, "autogenerated": false, "ratio": 4.729310706054892, "config...
"""A client to miRBase.""" import os __all__ = [ 'get_mirbase_id_from_mirbase_name', 'get_mirbase_name_from_mirbase_id', 'get_hgnc_id_from_mirbase_id', 'get_mirbase_id_from_hgnc_id', 'get_mirbase_id_from_hgnc_symbol', ] HERE = os.path.dirname(os.path.abspath(__file__)) MIRBASE_FILE = os.path.join...
{ "repo_name": "sorgerlab/indra", "path": "indra/databases/mirbase_client.py", "copies": "4", "size": "3837", "license": "bsd-2-clause", "hash": -509254575096445500, "line_mean": 25.8321678322, "line_max": 77, "alpha_frac": 0.5962991921, "autogenerated": false, "ratio": 2.9024205748865355, "conf...
"""A client to obtain metadata and text content from bioRxiv (and to some extent medRxiv) preprints.""" import re import logging import requests import datetime logger = logging.getLogger(__name__) # Browser link at https://connect.biorxiv.org/relate/content/181 collection_url = 'https://connect.biorxiv.org/relate/...
{ "repo_name": "johnbachman/indra", "path": "indra/literature/biorxiv_client.py", "copies": "4", "size": "9287", "license": "bsd-2-clause", "hash": 6989662450983254000, "line_mean": 31.2465277778, "line_max": 78, "alpha_frac": 0.6043932379, "autogenerated": false, "ratio": 3.945199660152931, "co...
"""A client to the Disease Ontology.""" from indra.databases.obo_client import OboClient _client = OboClient(prefix='doid') def get_doid_name_from_doid_id(doid_id): """Return the name corresponding to the given Disease Ontology ID. Parameters ---------- doid_id : str The Disease Ontology id...
{ "repo_name": "johnbachman/belpy", "path": "indra/databases/doid_client.py", "copies": "3", "size": "1479", "license": "mit", "hash": 4226422043502236000, "line_mean": 24.5, "line_max": 80, "alpha_frac": 0.6355645707, "autogenerated": false, "ratio": 3.3922018348623855, "config_test": false, ...
"""A client to the Gene Ontology.""" import re import logging from indra.databases.obo_client import OboClient logger = logging.getLogger(__name__) _client = OboClient(prefix='go') def get_go_label(go_id): """Get label corresponding to a given GO identifier. Parameters ---------- go_id : str ...
{ "repo_name": "bgyori/indra", "path": "indra/databases/go_client.py", "copies": "4", "size": "2989", "license": "bsd-2-clause", "hash": -5191195348355407000, "line_mean": 24.547008547, "line_max": 78, "alpha_frac": 0.6078956173, "autogenerated": false, "ratio": 3.7787610619469025, "config_test"...
"""A cli for interacting with the models. The CLI can be used to publish issues to perform inference on to pubsub to be picked up by the backends. """ import logging import json import fire from code_intelligence import graphql from code_intelligence import github_util from code_intelligence import util from google.cl...
{ "repo_name": "kubeflow/code-intelligence", "path": "py/label_microservice/cli.py", "copies": "1", "size": "2503", "license": "mit", "hash": 3982820385656636000, "line_mean": 30.2875, "line_max": 75, "alpha_frac": 0.599280863, "autogenerated": false, "ratio": 3.992025518341308, "config_test": f...
"""A clone of threading module (version 2.7.2) that always targets real OS threads. (Unlike 'threading' which flips between green and OS threads based on whether the monkey patching is in effect or not). This module is missing 'Thread' class, but includes 'Queue'. """ from __future__ import absolute_import try: fr...
{ "repo_name": "burzillibus/RobHome", "path": "venv/lib/python2.7/site-packages/gevent/_threading.py", "copies": "1", "size": "16584", "license": "mit", "hash": 9124254306715468000, "line_mean": 31.2019417476, "line_max": 89, "alpha_frac": 0.5552339604, "autogenerated": false, "ratio": 4.410638297...
"""ACL operations and objects.""" import copy import json import logging import requests from objectrocket import bases from objectrocket import util from objectrocket import errors logger = logging.getLogger(__name__) class Acls(bases.BaseOperationsLayer): """ACL operations. :param objectrocket.client.Cl...
{ "repo_name": "objectrocket/python-client", "path": "objectrocket/acls.py", "copies": "1", "size": "9531", "license": "mit", "hash": 8794813385424433000, "line_mean": 33.5326086957, "line_max": 97, "alpha_frac": 0.5943762459, "autogenerated": false, "ratio": 4.297114517583409, "config_test": fa...
""" ACL parsing stuff """ from kazoo.security import ( ACL, Id, make_acl, make_digest_acl, Permissions ) class ACLReader(object): """ Helper class to parse/unparse ACLs """ class BadACL(Exception): """ Couldn't parse the ACL """ pass valid_schemes = [ "world",...
{ "repo_name": "rgs1/zk_shell", "path": "zk_shell/acl.py", "copies": "1", "size": "2744", "license": "apache-2.0", "hash": -5711195425886257000, "line_mean": 29.1538461538, "line_max": 82, "alpha_frac": 0.4548104956, "autogenerated": false, "ratio": 4.274143302180685, "config_test": false, "ha...
# acl.py: An acl daemon import time from hooks import Hook botlist = [ "artemis", "botss", "ca", "ChanStat", "doge" , "falco", "gnat", "Infobot", "Kuko", "NightBot" , "peer", "Sharpie", "shoko", "simbot", "tacobot" , "|" ] throttle = 0 @Hook('PRIVMSG') def acl_priv(bot, ev): if bo...
{ "repo_name": "tonyolag/sadaharu", "path": "plugins/acl.py", "copies": "1", "size": "2128", "license": "mpl-2.0", "hash": -1879810512932046800, "line_mean": 25.6, "line_max": 95, "alpha_frac": 0.5385338346, "autogenerated": false, "ratio": 3.1020408163265305, "config_test": false, "has_no_key...
""" a clumsy attempt at a macro language to let the programmer execute code on the server (ex: determine 64bit)""" from . import is64bit as is64bit def macro_call(macro_name, args, kwargs): """ allow the programmer to perform limited processing on the server by passing macro names and args :new_key - the key ...
{ "repo_name": "sserrot/champion_relationships", "path": "venv/Lib/site-packages/adodbapi/process_connect_string.py", "copies": "1", "size": "5376", "license": "mit", "hash": -8932927102207937000, "line_mean": 44.5593220339, "line_max": 114, "alpha_frac": 0.6047247024, "autogenerated": false, "rat...
"""ACME AuthHandler.""" import itertools import logging import time from acme import challenges from acme import messages2 from letsencrypt import achallenges from letsencrypt import constants from letsencrypt import errors class AuthHandler(object): """ACME Authorization Handler for a client. :ivar dv_aut...
{ "repo_name": "felixrieseberg/lets-encrypt-preview", "path": "letsencrypt/auth_handler.py", "copies": "1", "size": "17081", "license": "apache-2.0", "hash": 2228964295367667200, "line_mean": 34.4377593361, "line_max": 79, "alpha_frac": 0.6211580118, "autogenerated": false, "ratio": 4.080506450071...
"""ACME AuthHandler.""" import itertools import logging import time from acme import challenges from acme import messages from letsencrypt import achallenges from letsencrypt import constants from letsencrypt import errors class AuthHandler(object): """ACME Authorization Handler for a client. :ivar dv_auth...
{ "repo_name": "digideskio/lets-encrypt-preview", "path": "letsencrypt/auth_handler.py", "copies": "1", "size": "16783", "license": "apache-2.0", "hash": 1634707812265737200, "line_mean": 34.1108786611, "line_max": 79, "alpha_frac": 0.6196746708, "autogenerated": false, "ratio": 4.096412008786917,...
"""ACME AuthHandler.""" import itertools import logging import time from letsencrypt.acme import challenges from letsencrypt.acme import messages2 from letsencrypt.client import achallenges from letsencrypt.client import constants from letsencrypt.client import errors class AuthHandler(object): """ACME Authoriz...
{ "repo_name": "diracdeltas/lets-encrypt-preview", "path": "letsencrypt/client/auth_handler.py", "copies": "1", "size": "17318", "license": "apache-2.0", "hash": -7784753445113174000, "line_mean": 34.9294605809, "line_max": 80, "alpha_frac": 0.6248412057, "autogenerated": false, "ratio": 4.0757825...
"""ACME AuthHandler.""" import itertools import logging import time import zope.component from acme import challenges from acme import messages from certbot import achallenges from certbot import errors from certbot import error_handler from certbot import interfaces logger = logging.getLogger(__name__) class Au...
{ "repo_name": "DavidGarciaCat/letsencrypt", "path": "certbot/auth_handler.py", "copies": "4", "size": "17250", "license": "apache-2.0", "hash": -1599481313973257500, "line_mean": 33.2261904762, "line_max": 83, "alpha_frac": 0.6227246377, "autogenerated": false, "ratio": 4.212454212454213, "conf...
"""ACME AuthHandler.""" import itertools import logging import time import zope.component from acme import challenges from acme import messages from letsencrypt import achallenges from letsencrypt import constants from letsencrypt import errors from letsencrypt import error_handler from letsencrypt import interfaces...
{ "repo_name": "thanatos/lets-encrypt-preview", "path": "letsencrypt/auth_handler.py", "copies": "2", "size": "19863", "license": "apache-2.0", "hash": 5705601742751394000, "line_mean": 34.4696428571, "line_max": 83, "alpha_frac": 0.6238735337, "autogenerated": false, "ratio": 4.081158824738032, ...
"""ACME AuthHandler.""" import logging import time import datetime import zope.component from acme import challenges from acme import messages # pylint: disable=unused-import, no-name-in-module from acme.magic_typing import Dict, List # pylint: enable=unused-import, no-name-in-module from certbot import achallenges f...
{ "repo_name": "letsencrypt/letsencrypt", "path": "certbot/auth_handler.py", "copies": "1", "size": "17915", "license": "apache-2.0", "hash": 1835269979975303400, "line_mean": 38.9888392857, "line_max": 100, "alpha_frac": 0.6444320402, "autogenerated": false, "ratio": 4.207374354156881, "config_...
"""ACME AuthHandler.""" import logging import time import six import zope.component from acme import challenges from acme import messages from certbot import achallenges from certbot import errors from certbot import error_handler from certbot import interfaces logger = logging.getLogger(__name__) class AuthHand...
{ "repo_name": "bsmr-misc-forks/letsencrypt", "path": "certbot/auth_handler.py", "copies": "3", "size": "17866", "license": "apache-2.0", "hash": -5732272474727994000, "line_mean": 33.6912621359, "line_max": 83, "alpha_frac": 0.6220194783, "autogenerated": false, "ratio": 4.232646292347785, "con...
"""ACME client API.""" import base64 import collections import datetime from email.utils import parsedate_tz import heapq import logging import time import six from six.moves import http_client # pylint: disable=import-error import josepy as jose import OpenSSL import re from requests_toolbelt.adapters.source import ...
{ "repo_name": "letsencrypt/letsencrypt", "path": "acme/acme/client.py", "copies": "1", "size": "47067", "license": "apache-2.0", "hash": -4193641931481446000, "line_mean": 37.674609696, "line_max": 111, "alpha_frac": 0.6171415217, "autogenerated": false, "ratio": 4.288955713504647, "config_test...
"""ACME client API.""" import collections import datetime from email.utils import parsedate_tz import heapq import logging import time import six from six.moves import http_client # pylint: disable=import-error import OpenSSL import requests import sys from acme import errors from acme import jose from acme import ...
{ "repo_name": "bsmr-misc-forks/letsencrypt", "path": "acme/acme/client.py", "copies": "2", "size": "24586", "license": "apache-2.0", "hash": -8286883210775513000, "line_mean": 36.7665130568, "line_max": 81, "alpha_frac": 0.6128284389, "autogenerated": false, "ratio": 4.276569838232736, "config_...
"""ACME client API.""" import collections import datetime import heapq import logging import time import six from six.moves import http_client # pylint: disable=import-error import OpenSSL import requests import sys import werkzeug from acme import errors from acme import jose from acme import jws from acme import ...
{ "repo_name": "TheBoegl/letsencrypt", "path": "acme/acme/client.py", "copies": "1", "size": "24151", "license": "apache-2.0", "hash": 8504688011325509000, "line_mean": 36.4434108527, "line_max": 81, "alpha_frac": 0.612355596, "autogenerated": false, "ratio": 4.282851569427203, "config_test": fa...
"""ACME client API.""" import datetime import heapq import httplib import logging import time import M2Crypto import requests import werkzeug from acme import errors from acme import jose from acme import jws from acme import messages # https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning...
{ "repo_name": "digideskio/lets-encrypt-preview", "path": "acme/client.py", "copies": "1", "size": "19923", "license": "apache-2.0", "hash": -3140902676937840600, "line_mean": 34.8327338129, "line_max": 81, "alpha_frac": 0.6090950158, "autogenerated": false, "ratio": 4.2362321922177335, "config_...
"""ACME client API.""" import datetime import heapq import json import logging import time from six.moves import http_client # pylint: disable=import-error import OpenSSL import requests import six import werkzeug from acme import errors from acme import jose from acme import jws from acme import messages logger ...
{ "repo_name": "Jonadabe/letsencrypt", "path": "acme/acme/client.py", "copies": "1", "size": "21072", "license": "apache-2.0", "hash": 4524162679454449000, "line_mean": 35.0821917808, "line_max": 81, "alpha_frac": 0.6124715262, "autogenerated": false, "ratio": 4.1992825827022715, "config_test": ...
"""ACME client API.""" import datetime import heapq import logging import time from six.moves import http_client # pylint: disable=import-error import OpenSSL import requests import six import werkzeug from acme import errors from acme import jose from acme import jws from acme import messages logger = logging.ge...
{ "repo_name": "rugk/letsencrypt", "path": "acme/acme/client.py", "copies": "1", "size": "21572", "license": "apache-2.0", "hash": 3680922643416733700, "line_mean": 35.1946308725, "line_max": 81, "alpha_frac": 0.6134340812, "autogenerated": false, "ratio": 4.207528769260776, "config_test": false...
"""ACME client API.""" import datetime import heapq import logging import time import six from six.moves import http_client # pylint: disable=import-error import OpenSSL import requests import sys import werkzeug from acme import errors from acme import jose from acme import jws from acme import messages logger =...
{ "repo_name": "kuba/letsencrypt", "path": "acme/acme/client.py", "copies": "4", "size": "23680", "license": "apache-2.0", "hash": -8956500801101237000, "line_mean": 36.2327044025, "line_max": 81, "alpha_frac": 0.613597973, "autogenerated": false, "ratio": 4.272825694695056, "config_test": false...
"""ACME errors.""" from acme.jose import errors as jose_errors class Error(Exception): """Generic ACME error.""" class DependencyError(Error): """Dependency error""" class SchemaValidationError(jose_errors.DeserializationError): """JSON schema ACME object validation error.""" class ClientError(Error...
{ "repo_name": "bsmr-misc-forks/letsencrypt", "path": "acme/acme/errors.py", "copies": "7", "size": "2357", "license": "apache-2.0", "hash": -457312797930660100, "line_mean": 27.0595238095, "line_max": 76, "alpha_frac": 0.6414934238, "autogenerated": false, "ratio": 4.208928571428571, "config_te...
"""ACME errors.""" from acme.jose import errors as jose_errors class Error(Exception): """Generic ACME error.""" class SchemaValidationError(jose_errors.DeserializationError): """JSON schema ACME object validation error.""" class ClientError(Error): """Network error.""" class UnexpectedUpdate(Client...
{ "repo_name": "goofwear/letsencrypt", "path": "acme/acme/errors.py", "copies": "10", "size": "2302", "license": "apache-2.0", "hash": 4331217052093213000, "line_mean": 27.4197530864, "line_max": 74, "alpha_frac": 0.6350999131, "autogenerated": false, "ratio": 4.239410681399631, "config_test": f...
"""ACME errors.""" from josepy import errors as jose_errors class Error(Exception): """Generic ACME error.""" class DependencyError(Error): """Dependency error""" class SchemaValidationError(jose_errors.DeserializationError): """JSON schema ACME object validation error.""" class ClientError(Error): ...
{ "repo_name": "letsencrypt/letsencrypt", "path": "acme/acme/errors.py", "copies": "2", "size": "3657", "license": "apache-2.0", "hash": 253334883678068600, "line_mean": 28.9754098361, "line_max": 79, "alpha_frac": 0.6529942576, "autogenerated": false, "ratio": 4.252325581395349, "config_test": ...
"""ACME Identifier Validation Challenges.""" import abc import functools import hashlib import logging import socket import sys from cryptography.hazmat.primitives import hashes # type: ignore import josepy as jose import OpenSSL import requests import six from acme import errors from acme import crypto_util from ac...
{ "repo_name": "letsencrypt/letsencrypt", "path": "acme/acme/challenges.py", "copies": "1", "size": "20341", "license": "apache-2.0", "hash": -8530197909797558000, "line_mean": 30.4876160991, "line_max": 95, "alpha_frac": 0.632958065, "autogenerated": false, "ratio": 4.231537341377158, "config_t...
"""ACME Identifier Validation Challenges.""" import abc import functools import hashlib import logging import socket from cryptography.hazmat.primitives import hashes import OpenSSL import requests from acme import dns_resolver from acme import errors from acme import crypto_util from acme import fields from acme imp...
{ "repo_name": "bsmr-misc-forks/letsencrypt", "path": "acme/acme/challenges.py", "copies": "3", "size": "18834", "license": "apache-2.0", "hash": -9173462830768785000, "line_mean": 30.2857142857, "line_max": 80, "alpha_frac": 0.6233407667, "autogenerated": false, "ratio": 4.2678450033990485, "co...
"""ACME Identifier Validation Challenges.""" import abc import functools import hashlib import logging import socket from cryptography.hazmat.primitives import hashes # type: ignore import OpenSSL import requests from acme import errors from acme import crypto_util from acme import fields from acme import jose logg...
{ "repo_name": "jsha/letsencrypt", "path": "acme/acme/challenges.py", "copies": "2", "size": "18234", "license": "apache-2.0", "hash": 5472439461718068000, "line_mean": 29.9575551783, "line_max": 80, "alpha_frac": 0.6258089284, "autogenerated": false, "ratio": 4.256302521008403, "config_test": f...
"""ACME Identifier Validation Challenges.""" import binascii import functools import hashlib import logging import os import socket from cryptography.hazmat.backends import default_backend from cryptography import x509 import OpenSSL import requests from acme import errors from acme import crypto_util from acme impor...
{ "repo_name": "tdfischer/lets-encrypt-preview", "path": "acme/acme/challenges.py", "copies": "3", "size": "13959", "license": "apache-2.0", "hash": 4274274505383522300, "line_mean": 29.7466960352, "line_max": 84, "alpha_frac": 0.6373665735, "autogenerated": false, "ratio": 3.83489010989011, "co...
"""ACME Identifier Validation Challenges.""" import binascii import functools import hashlib import logging import os import requests from acme import interfaces from acme import jose from acme import other logger = logging.getLogger(__name__) # pylint: disable=too-few-public-methods class Challenge(jose.TypedJ...
{ "repo_name": "Jonadabe/letsencrypt", "path": "acme/acme/challenges.py", "copies": "1", "size": "11254", "license": "apache-2.0", "hash": -9103298142820307000, "line_mean": 29.0106666667, "line_max": 84, "alpha_frac": 0.6392393816, "autogenerated": false, "ratio": 3.802027027027027, "config_tes...
"""ACME Identifier Validation Challenges.""" import binascii import functools import hashlib import Crypto.Random from acme import jose from acme import other # pylint: disable=too-few-public-methods class Challenge(jose.TypedJSONObjectWithFields): # _fields_to_partial_json | pylint: disable=abstract-method ...
{ "repo_name": "digideskio/lets-encrypt-preview", "path": "acme/challenges.py", "copies": "1", "size": "8279", "license": "apache-2.0", "hash": -3924780379372150000, "line_mean": 29.1054545455, "line_max": 80, "alpha_frac": 0.6518903249, "autogenerated": false, "ratio": 3.700938757264193, "confi...
"""ACME Identifier Validation Challenges.""" import binascii import functools import hashlib import Crypto.Random from letsencrypt.acme import jose from letsencrypt.acme import other # pylint: disable=too-few-public-methods class Challenge(jose.TypedJSONObjectWithFields): # _fields_to_partial_json | pylint: d...
{ "repo_name": "diracdeltas/lets-encrypt-preview", "path": "letsencrypt/acme/challenges.py", "copies": "1", "size": "7721", "license": "apache-2.0", "hash": 8905233111028043000, "line_mean": 29.6388888889, "line_max": 80, "alpha_frac": 0.6610542676, "autogenerated": false, "ratio": 3.6854415274463...
"""ACME Identifier Validation Challenges.""" import functools import hashlib import logging import socket import OpenSSL import requests from acme import errors from acme import crypto_util from acme import fields from acme import jose from acme import other logger = logging.getLogger(__name__) # pylint: disable=...
{ "repo_name": "hsduk/lets-encrypt-preview", "path": "acme/acme/challenges.py", "copies": "2", "size": "20820", "license": "apache-2.0", "hash": 7212515072836097000, "line_mean": 30.786259542, "line_max": 82, "alpha_frac": 0.6280979827, "autogenerated": false, "ratio": 3.946171341925701, "config...
"""ACME JOSE JWS.""" from acme import errors from acme import jose class Header(jose.Header): """ACME JOSE Header. .. todo:: Implement ``acmePath``. """ nonce = jose.Field('nonce', omitempty=True) @classmethod def validate_nonce(cls, nonce): """Validate nonce. :returns: ``N...
{ "repo_name": "digideskio/lets-encrypt-preview", "path": "acme/jws.py", "copies": "1", "size": "1679", "license": "apache-2.0", "hash": -4647342334307890000, "line_mean": 27.4576271186, "line_max": 80, "alpha_frac": 0.6098868374, "autogenerated": false, "ratio": 3.8955916473317864, "config_test...
"""ACME JOSE JWS.""" from acme import jose class Header(jose.Header): """ACME JOSE Header. .. todo:: Implement ``acmePath``. """ nonce = jose.Field('nonce', omitempty=True, encoder=jose.encode_b64jose) @nonce.decoder def nonce(value): # pylint: disable=missing-docstring,no-self-argument ...
{ "repo_name": "sjerdo/letsencrypt", "path": "acme/acme/jws.py", "copies": "64", "size": "1380", "license": "apache-2.0", "hash": -33666575031580732, "line_mean": 30.3636363636, "line_max": 80, "alpha_frac": 0.6369565217, "autogenerated": false, "ratio": 3.6507936507936507, "config_test": false,...
"""ACME JSON fields.""" import logging import josepy as jose import pyrfc3339 logger = logging.getLogger(__name__) class Fixed(jose.Field): """Fixed field.""" def __init__(self, json_name, value): self.value = value super(Fixed, self).__init__( json_name=json_name, default=valu...
{ "repo_name": "letsencrypt/letsencrypt", "path": "acme/acme/fields.py", "copies": "2", "size": "1744", "license": "apache-2.0", "hash": 4220739702821247500, "line_mean": 25.8307692308, "line_max": 80, "alpha_frac": 0.6072247706, "autogenerated": false, "ratio": 3.990846681922197, "config_test":...
"""ACME JSON fields.""" import logging import pyrfc3339 from acme import jose logger = logging.getLogger(__name__) class Fixed(jose.Field): """Fixed field.""" def __init__(self, json_name, value): self.value = value super(Fixed, self).__init__( json_name=json_name, default=val...
{ "repo_name": "jsha/letsencrypt", "path": "acme/acme/fields.py", "copies": "9", "size": "1745", "license": "apache-2.0", "hash": 8316138989773572000, "line_mean": 25.4393939394, "line_max": 80, "alpha_frac": 0.6068767908, "autogenerated": false, "ratio": 4.002293577981652, "config_test": false,...
"""ACME protocol client class and helper functions.""" import logging import os import pkg_resources import M2Crypto import zope.component from acme import jose from acme.jose import jwk from letsencrypt import account from letsencrypt import auth_handler from letsencrypt import continuity_auth from letsencrypt impo...
{ "repo_name": "digideskio/lets-encrypt-preview", "path": "letsencrypt/client.py", "copies": "1", "size": "18743", "license": "apache-2.0", "hash": 3064397763512932000, "line_mean": 36.7122736419, "line_max": 93, "alpha_frac": 0.6327695673, "autogenerated": false, "ratio": 4.326638965835642, "co...
"""ACME protocol implementation. This module is an implementation of the `ACME protocol`_. .. _`ACME protocol`: https://ietf-wg-acme.github.io/acme """ import sys import warnings # This code exists to keep backwards compatibility with people using acme.jose # before it became the standalone josepy package. # # It i...
{ "repo_name": "letsencrypt/letsencrypt", "path": "acme/acme/__init__.py", "copies": "2", "size": "1820", "license": "apache-2.0", "hash": 2913773559539316700, "line_mean": 35.4, "line_max": 115, "alpha_frac": 0.689010989, "autogenerated": false, "ratio": 3.5756385068762278, "config_test": false...
"""ACME protocol messages.""" from acme import challenges from acme import fields from acme import jose class Error(jose.JSONObjectWithFields, Exception): """ACME error. https://tools.ietf.org/html/draft-ietf-appsawg-http-problem-00 """ ERROR_TYPE_NAMESPACE = 'urn:acme:error:' ERROR_TYPE_DESCRIP...
{ "repo_name": "felixrieseberg/lets-encrypt-preview", "path": "acme/messages2.py", "copies": "1", "size": "9440", "license": "apache-2.0", "hash": -5438037687231989000, "line_mean": 30.7845117845, "line_max": 80, "alpha_frac": 0.6629237288, "autogenerated": false, "ratio": 3.759458383114297, "co...
"""ACME protocol messages.""" from letsencrypt.acme import challenges from letsencrypt.acme import fields from letsencrypt.acme import jose class Error(jose.JSONObjectWithFields, Exception): """ACME error. https://tools.ietf.org/html/draft-ietf-appsawg-http-problem-00 """ ERROR_TYPE_NAMESPACE = 'urn...
{ "repo_name": "diracdeltas/lets-encrypt-preview", "path": "letsencrypt/acme/messages2.py", "copies": "1", "size": "9894", "license": "apache-2.0", "hash": -7658667820793373000, "line_mean": 31.6534653465, "line_max": 80, "alpha_frac": 0.6680816657, "autogenerated": false, "ratio": 3.7519908987485...
"""ACME protocol messages.""" import collections import six from acme import challenges from acme import errors from acme import fields from acme import jose from acme import util OLD_ERROR_PREFIX = "urn:acme:error:" ERROR_PREFIX = "urn:ietf:params:acme:error:" ERROR_CODES = { 'badCSR': 'The CSR is unacceptable ...
{ "repo_name": "jsha/letsencrypt", "path": "acme/acme/messages.py", "copies": "1", "size": "14264", "license": "apache-2.0", "hash": -799563591542973000, "line_mean": 30.2807017544, "line_max": 80, "alpha_frac": 0.6517807067, "autogenerated": false, "ratio": 3.7805459846276173, "config_test": fa...
"""ACME protocol messages.""" import collections from acme import challenges from acme import errors from acme import fields from acme import jose from acme import util class Error(jose.JSONObjectWithFields, errors.Error): """ACME error. https://tools.ietf.org/html/draft-ietf-appsawg-http-problem-00 :i...
{ "repo_name": "piru/letsencrypt", "path": "acme/acme/messages.py", "copies": "3", "size": "13501", "license": "apache-2.0", "hash": -7834323424986547000, "line_mean": 30.6182669789, "line_max": 82, "alpha_frac": 0.6527664617, "autogenerated": false, "ratio": 3.8986427952642217, "config_test": f...
"""ACME protocol messages.""" import collections from acme import challenges from acme import errors from acme import fields from acme import jose from acme import util OLD_ERROR_PREFIX = "urn:acme:error:" ERROR_PREFIX = "urn:ietf:params:acme:error:" ERROR_CODES = { 'badCSR': 'The CSR is unacceptable (e.g., due ...
{ "repo_name": "bsmr-misc-forks/letsencrypt", "path": "acme/acme/messages.py", "copies": "2", "size": "14786", "license": "apache-2.0", "hash": 6368198455206582000, "line_mean": 30.3927813163, "line_max": 80, "alpha_frac": 0.6547409712, "autogenerated": false, "ratio": 3.8405194805194807, "confi...
"""ACME protocol messages.""" import collections from acme import challenges from acme import fields from acme import jose from acme import util class Error(jose.JSONObjectWithFields, Exception): """ACME error. https://tools.ietf.org/html/draft-ietf-appsawg-http-problem-00 :ivar unicode typ: :ivar ...
{ "repo_name": "ghyde/letsencrypt", "path": "acme/acme/messages.py", "copies": "4", "size": "14016", "license": "apache-2.0", "hash": 5908525603681151000, "line_mean": 30.7823129252, "line_max": 82, "alpha_frac": 0.6577482877, "autogenerated": false, "ratio": 3.8890122086570478, "config_test": f...
"""ACME protocol messages.""" import collections from six.moves.urllib import parse as urllib_parse # pylint: disable=import-error from acme import challenges from acme import fields from acme import interfaces from acme import jose class Error(jose.JSONObjectWithFields, Exception): """ACME error. https:/...
{ "repo_name": "Jonadabe/letsencrypt", "path": "acme/acme/messages.py", "copies": "1", "size": "11999", "license": "apache-2.0", "hash": 8189312234952371000, "line_mean": 31.2553763441, "line_max": 82, "alpha_frac": 0.658388199, "autogenerated": false, "ratio": 3.8433696348494553, "config_test":...
"""ACME protocol messages.""" import six import json try: from collections.abc import Hashable # pylint: disable=no-name-in-module except ImportError: # pragma: no cover from collections import Hashable import josepy as jose from acme import challenges from acme import errors from acme import fields from ac...
{ "repo_name": "letsencrypt/letsencrypt", "path": "acme/acme/messages.py", "copies": "1", "size": "19593", "license": "apache-2.0", "hash": -4691894942386358000, "line_mean": 32.4923076923, "line_max": 93, "alpha_frac": 0.6534986985, "autogenerated": false, "ratio": 3.7882830626450117, "config_t...
"""ACME protocol messages.""" import urlparse from acme import challenges from acme import fields from acme import jose class Error(jose.JSONObjectWithFields, Exception): """ACME error. https://tools.ietf.org/html/draft-ietf-appsawg-http-problem-00 """ ERROR_TYPE_NAMESPACE = 'urn:acme:error:' E...
{ "repo_name": "digideskio/lets-encrypt-preview", "path": "acme/messages.py", "copies": "1", "size": "10928", "license": "apache-2.0", "hash": -1158059670026365700, "line_mean": 30.2228571429, "line_max": 80, "alpha_frac": 0.6575768668, "autogenerated": false, "ratio": 3.7579092159559835, "confi...
"""ACME protocol v00 messages. .. warning:: This module is an implementation of the draft `ACME protocol version 00`_, and not the "RESTified" `ACME protocol version 01`_ or later. It should work with `older Node.js implementation`_, but will definitely not work with Boulder_. It is kept for reference purposes...
{ "repo_name": "felixrieseberg/lets-encrypt-preview", "path": "acme/messages.py", "copies": "1", "size": "12199", "license": "apache-2.0", "hash": 2642605497927141400, "line_mean": 32.2397820163, "line_max": 90, "alpha_frac": 0.659808181, "autogenerated": false, "ratio": 3.858001265022138, "conf...
"""ACME-specific JWS. The JWS implementation in josepy only implements the base JOSE standard. In order to support the new header fields defined in ACME, this module defines some ACME-specific classes that layer on top of josepy. """ import josepy as jose class Header(jose.Header): """ACME-specific JOSE Header. ...
{ "repo_name": "letsencrypt/letsencrypt", "path": "acme/acme/jws.py", "copies": "2", "size": "2139", "license": "apache-2.0", "hash": 9201598451566115000, "line_mean": 38.6111111111, "line_max": 93, "alpha_frac": 0.6479663394, "autogenerated": false, "ratio": 3.6192893401015227, "config_test": f...
"""ACME utilities for testing.""" import datetime import itertools import os import pkg_resources import Crypto.PublicKey.RSA from acme import challenges from acme import jose from acme import messages KEY = jose.HashableRSAKey(Crypto.PublicKey.RSA.importKey( pkg_resources.resource_string( "acme.jose", ...
{ "repo_name": "digideskio/lets-encrypt-preview", "path": "letsencrypt/tests/acme_util.py", "copies": "1", "size": "5112", "license": "apache-2.0", "hash": 141404234350382600, "line_mean": 35, "line_max": 80, "alpha_frac": 0.6752738654, "autogenerated": false, "ratio": 3.015929203539823, "config...
"""ACME utilities for testing.""" import datetime import itertools from acme import challenges from acme import jose from acme import messages from certbot.tests import test_util KEY = test_util.load_rsa_private_key('rsa512_key.pem') # Challenges HTTP01 = challenges.HTTP01( token="evaGxfADs6pSRb2LAv9IZf17Dt3ju...
{ "repo_name": "DavidGarciaCat/letsencrypt", "path": "certbot/tests/acme_util.py", "copies": "4", "size": "2714", "license": "apache-2.0", "hash": -9097599617326374000, "line_mean": 29.4943820225, "line_max": 77, "alpha_frac": 0.6805453206, "autogenerated": false, "ratio": 3.230952380952381, "co...
"""ACME utilities for testing.""" import datetime import itertools from acme import challenges from acme import jose from acme import messages from letsencrypt.tests import test_util KEY = test_util.load_rsa_private_key('rsa512_key.pem') # Challenges HTTP01 = challenges.HTTP01( token="evaGxfADs6pSRb2LAv9IZf17D...
{ "repo_name": "BillKeenan/lets-encrypt-preview", "path": "letsencrypt/tests/acme_util.py", "copies": "1", "size": "4711", "license": "apache-2.0", "hash": 4094822574345121300, "line_mean": 34.1567164179, "line_max": 80, "alpha_frac": 0.6754404585, "autogenerated": false, "ratio": 3.05512321660181...
"""ACME utilities for testing.""" import datetime import josepy as jose import six from acme import challenges from acme import messages from certbot import auth_handler from certbot.tests import util JWK = jose.JWK.load(util.load_vector('rsa512_key.pem')) KEY = util.load_rsa_private_key('rsa512_key.pem') # Chal...
{ "repo_name": "letsencrypt/letsencrypt", "path": "certbot/tests/acme_util.py", "copies": "1", "size": "3258", "license": "apache-2.0", "hash": 8556647702328403000, "line_mean": 30.6310679612, "line_max": 82, "alpha_frac": 0.6952117864, "autogenerated": false, "ratio": 2.9484162895927604, "confi...
"""ACME utilities for testing.""" import datetime import six from acme import challenges from acme import jose from acme import messages from certbot.tests import test_util KEY = test_util.load_rsa_private_key('rsa512_key.pem') # Challenges HTTP01 = challenges.HTTP01( token=b"evaGxfADs6pSRb2LAv9IZf17Dt3juxGJ+...
{ "repo_name": "jtl999/certbot", "path": "certbot/tests/acme_util.py", "copies": "2", "size": "2722", "license": "apache-2.0", "hash": 605440515213098000, "line_mean": 29.2444444444, "line_max": 77, "alpha_frac": 0.6807494489, "autogenerated": false, "ratio": 3.1948356807511735, "config_test": f...
# acm spider from scrapy.spider import BaseSpider from scrapy.selector import Selector from codechef_scrape.items import CodechefScrapeItem class ACMSpider(BaseSpider): name = "acm" allowed_domains = ["codechef.com"] CONCURRENT_REQUESTS = 1 start_urls = [ "http://www.codechef.com/teams/list/ACM...
{ "repo_name": "supercr7/ranklist_scrape", "path": "codechef_scrape_amrita/amritapuri/spiders/acm_spider.py", "copies": "1", "size": "1168", "license": "mit", "hash": -8879266066904678000, "line_mean": 26.8095238095, "line_max": 86, "alpha_frac": 0.6275684932, "autogenerated": false, "ratio": 2.95...
# acodec.py import encodings, codecs # Our StreamReader class aStreamReader(codecs.StreamReader): def outputFromInput(self, input): output = input return output def readline(self, size = None, keepends = True): if getattr(self, "pysrc", None) == None: input = self...
{ "repo_name": "jamesthiele/acodec", "path": "acodec.py", "copies": "1", "size": "1146", "license": "bsd-2-clause", "hash": 4858196904928144000, "line_mean": 37.2, "line_max": 87, "alpha_frac": 0.5619546248, "autogenerated": false, "ratio": 4.5476190476190474, "config_test": false, "has_no_key...
a# -*- coding: utf-8 -*- """ Created on Sat Aug 19 21:40:35 2017 @author: michael Simple script that draws the graph of a function I was figuring this out as I went along, just to see if I can do it. """ import matplotlib.pyplot as plt import numpy as np import math #Constants a = 1 b = 8 c = 5#10 d = 6 #plt.plot(...
{ "repo_name": "phoexer/Kelly", "path": "scripts/Maths/plotting_functions.py", "copies": "1", "size": "1139", "license": "mit", "hash": 568217566805803650, "line_mean": 15.5217391304, "line_max": 68, "alpha_frac": 0.5820895522, "autogenerated": false, "ratio": 2.237721021611002, "config_test": f...
#a -*- coding: utf-8 -*- import numpy as np from numpy.random import choice, seed import sys import time import codecs if len(sys.argv) < 2: seed(int(time.time())) else: seed(int(sys.argv[1])) CODEC = "ISO-8859-1" filepath = "__wordsFR.txt" outfile = "output.txt" probafile = "count2D_EN.bin" dico = [] with c...
{ "repo_name": "tomMoulard/python-projetcs", "path": "worldGen/mots_2D_2.py", "copies": "1", "size": "1294", "license": "apache-2.0", "hash": -3533516344559282700, "line_mean": 22.5454545455, "line_max": 74, "alpha_frac": 0.4590417311, "autogenerated": false, "ratio": 2.9815668202764978, "config...
"""A cog allowing users to steal credits from each other.""" import os import asyncio import copy import random import time import datetime import discord from discord.ext import commands from __main__ import send_cmd_help from .utils import checks from .utils.dataIO import dataIO SAVE_FILEPATH = "data/KeaneCogs/stea...
{ "repo_name": "keanemind/Keane-Cogs", "path": "steal/steal.py", "copies": "1", "size": "34786", "license": "mit", "hash": 7638766245869105000, "line_mean": 41.5256723716, "line_max": 108, "alpha_frac": 0.5463117346, "autogenerated": false, "ratio": 4.208832425892317, "config_test": false, "ha...
"""A cog that requires server users to feed the bot in return for benefits.""" import os import random import asyncio import copy import datetime import discord from discord.ext import commands from __main__ import send_cmd_help from .utils import checks from .utils.dataIO import dataIO SAVE_FILEPATH = "data/KeaneCo...
{ "repo_name": "keanemind/Keane-Cogs", "path": "parrot/parrot.py", "copies": "1", "size": "38270", "license": "mit", "hash": -723571083212629400, "line_mean": 45.6138855055, "line_max": 114, "alpha_frac": 0.5722759342, "autogenerated": false, "ratio": 4.007329842931937, "config_test": false, "...