hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
73283dedb69752292c47170f372e47e62b154f2e
335
py
Python
djstripe/migrations/0005_auto_20190710_1023.py
trag-stripe/dj-stripe
31fac752ab6540a917a554907d799e41ac3eba9c
[ "MIT" ]
null
null
null
djstripe/migrations/0005_auto_20190710_1023.py
trag-stripe/dj-stripe
31fac752ab6540a917a554907d799e41ac3eba9c
[ "MIT" ]
null
null
null
djstripe/migrations/0005_auto_20190710_1023.py
trag-stripe/dj-stripe
31fac752ab6540a917a554907d799e41ac3eba9c
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-07-10 10:23 from django.db import migrations class Migration(migrations.Migration): dependencies = [("djstripe", "0004_auto_20190612_0850")] operations = [ migrations.RenameField( model_name="customer", old_name="account_balance", new_name="balance" ...
22.333333
81
0.671642
73283e2f5b43c7f745f4db4724277a864561d4cd
1,337
py
Python
LC/415.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/415.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/415.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
from sets import Set class Solution(object): def addStrings(self, num1, num2): """ :type num1: str :type num2: str :rtype: str """ # Bit way, TLE # if len(num1)>len(num2): # num1, num2 = num2, num1 # num1, num2 = map(lambda x: int(...
31.093023
91
0.435303
73285111738fc3c63958fa5183003a699ba26a8b
1,073
py
Python
utils/trghltmap.py
xiezhen/brilws
e3652dd4506dff9d713184ff623b59bc11fbe2c7
[ "MIT" ]
1
2017-03-23T16:26:06.000Z
2017-03-23T16:26:06.000Z
utils/trghltmap.py
xiezhen/brilws
e3652dd4506dff9d713184ff623b59bc11fbe2c7
[ "MIT" ]
1
2017-03-24T15:02:20.000Z
2017-10-02T13:43:26.000Z
utils/trghltmap.py
xiezhen/brilws
e3652dd4506dff9d713184ff623b59bc11fbe2c7
[ "MIT" ]
1
2019-12-06T09:23:01.000Z
2019-12-06T09:23:01.000Z
import sys,logging,base64 from sqlalchemy import * from sqlalchemy import exc from ConfigParser import SafeConfigParser import pandas as pd from brilws import api if __name__=='__main__': logging.basicConfig(level=logging.INFO,format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') connectstr = sys...
33.53125
105
0.71575
73287efc487029066d71fd8365b5b4ae4e8a6c35
1,001
py
Python
utils.py
timball/over_engineered_porch_light
f87d784ebc1b99d192e5a0b18f2f57324178934a
[ "MIT" ]
null
null
null
utils.py
timball/over_engineered_porch_light
f87d784ebc1b99d192e5a0b18f2f57324178934a
[ "MIT" ]
null
null
null
utils.py
timball/over_engineered_porch_light
f87d784ebc1b99d192e5a0b18f2f57324178934a
[ "MIT" ]
null
null
null
import logging import yaml from datetime import datetime, timedelta """ def set_log_level(level): logger = logging.getLogger() logger.setLevel(level) """ def set_log_level(log_level): """ the purpose of this function is to do nothing bc setting log_level is causing confusion sa I debug """ retu...
25.666667
65
0.654346
7328cd336babff43a7d431ae1e9910dff206ad00
233,477
py
Python
pandas/core/frame.py
stevenvandenberghe/pandas
8cbee356da1161c56c64f6f89cb5548bcadc3e44
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/frame.py
stevenvandenberghe/pandas
8cbee356da1161c56c64f6f89cb5548bcadc3e44
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/frame.py
stevenvandenberghe/pandas
8cbee356da1161c56c64f6f89cb5548bcadc3e44
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
36.733323
85
0.536006
7328e6124f1fc4ce8448164400aadb74e546fb4a
2,569
py
Python
AN-24_Nizhneangarsk/cmn/polynomial.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
1
2020-10-24T15:46:18.000Z
2020-10-24T15:46:18.000Z
AN-24_Nizhneangarsk/cmn/polynomial.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
null
null
null
AN-24_Nizhneangarsk/cmn/polynomial.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
null
null
null
import typing def polynomial(x: float, *args: typing.List[float]) -> float: """Returns the evaluation of the polynomial factors for the value x.""" ret = 0.0 for i in range(-1, -len(args) - 1, -1): ret += args[i] if i == -len(args): break ret *= x return ret def p...
28.544444
85
0.536006
7329060718779a4597b1ea946258ed3b6fd87088
1,740
py
Python
celery/bin/celeryev.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
celery/bin/celeryev.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
celery/bin/celeryev.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
import logging import optparse import sys from celery.events.cursesmon import evtop from celery.events.dumper import evdump from celery.events.snapshot import evcam OPTION_LIST = ( optparse.make_option('-d', '--dump', action="store_true", dest="dump", help="Dump events to stdout."), optparse....
31.636364
70
0.646552
73291b1e4679b03c7d6abd1e504dd8cd0fe9d45c
10,337
py
Python
inktime/transparent.py
g-patin/inktime
ac9758a28eb1f97d403bce2ceaaac2a8b9a89954
[ "Apache-2.0" ]
null
null
null
inktime/transparent.py
g-patin/inktime
ac9758a28eb1f97d403bce2ceaaac2a8b9a89954
[ "Apache-2.0" ]
null
null
null
inktime/transparent.py
g-patin/inktime
ac9758a28eb1f97d403bce2ceaaac2a8b9a89954
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: notebooks/02_transparent-thinking.ipynb (unless otherwise specified). __all__ = ['Stratigraphy', 'transmission', 'kaleidoscope', 'optical_density', 'primaries', 'palette_plot'] # Cell import numpy as np import matplotlib.pyplot as plt import skimage.transform as skt from s...
27.713137
113
0.635678
732944d0ca2db7169396491698bc74807306b351
4,452
py
Python
orgparse/tests/test_misc.py
j3soon-pr/orgparse
8943bdcfb2c1028b17588b390e24a1e1594a97c9
[ "BSD-2-Clause" ]
233
2019-07-26T20:18:27.000Z
2022-03-29T19:19:30.000Z
orgparse/tests/test_misc.py
j3soon-pr/orgparse
8943bdcfb2c1028b17588b390e24a1e1594a97c9
[ "BSD-2-Clause" ]
37
2019-06-29T20:27:20.000Z
2022-03-25T13:16:55.000Z
orgparse/tests/test_misc.py
j3soon-pr/orgparse
8943bdcfb2c1028b17588b390e24a1e1594a97c9
[ "BSD-2-Clause" ]
28
2019-09-24T04:29:20.000Z
2022-03-06T16:04:54.000Z
from .. import load, loads from ..node import OrgEnv def test_empty_heading() -> None: root = loads(''' * TODO :sometag: has no heading but still a todo? it's a bit unclear, but seems to be highligted by emacs.. ''') [h] = root.children assert h.todo == 'TODO' assert h.heading == '' assert h.t...
25.883721
79
0.637691
7329573e45f73125b6bacbd57e9262762daf6f59
1,289
py
Python
backend/backend/models.py
LawrenceXie/ProjectTemplate
df471751262b9981ca68d90735850f6723e9ba87
[ "CC0-1.0" ]
null
null
null
backend/backend/models.py
LawrenceXie/ProjectTemplate
df471751262b9981ca68d90735850f6723e9ba87
[ "CC0-1.0" ]
null
null
null
backend/backend/models.py
LawrenceXie/ProjectTemplate
df471751262b9981ca68d90735850f6723e9ba87
[ "CC0-1.0" ]
null
null
null
from flask import url_for from backend import db class Admin(db.Model): __tablename__ = 'admin' id = db.Column(db.Integer, primary_key=True) key = db.Column(db.Text, unique=True, nullable=False) value = db.Column(db.Text, nullable=False) format = db.Column(db.Text, nullable=False) def __init_...
30.690476
92
0.648565
73297dae466ed8af4246346bd70c733b24475608
18,018
py
Python
testsuite/driver/runtests.py
haskellformac/ghc
6e96aa2d503ddeeef1fa1f37b45d5c744522b64d
[ "BSD-3-Clause" ]
null
null
null
testsuite/driver/runtests.py
haskellformac/ghc
6e96aa2d503ddeeef1fa1f37b45d5c744522b64d
[ "BSD-3-Clause" ]
null
null
null
testsuite/driver/runtests.py
haskellformac/ghc
6e96aa2d503ddeeef1fa1f37b45d5c744522b64d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # (c) Simon Marlow 2002 # import argparse import signal import sys import os import io import shutil import tempfile import time import re import traceback # We don't actually need subprocess in runtests.py, but: # * We do need it in testlibs.py # * We can't import testlibs.py until after we...
37.381743
153
0.641137
732984ed62e6cfdddcedcd3af65d7a588b948858
2,610
py
Python
__init__.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
2
2018-08-15T21:27:59.000Z
2018-08-21T17:56:12.000Z
__init__.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
null
null
null
__init__.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
null
null
null
import itertools import logging import os from populus.utils.compile import ( validate_compiled_contracts, post_process_compiled_contracts, ) from populus.utils.functional import ( get_duplicates, ) def _get_contract_key(contract_data): return ( contract_data['source_path'], contrac...
30.705882
90
0.705747
732996ace6fdf972fbdb9150c4841c1a28efbed2
3,102
py
Python
tests/data/primitives/test_primitives/primitive_hyperparam.py
tods-doc/axolotl
6fc87bedb514677db09c039d492d1d3c7864913d
[ "Apache-2.0" ]
null
null
null
tests/data/primitives/test_primitives/primitive_hyperparam.py
tods-doc/axolotl
6fc87bedb514677db09c039d492d1d3c7864913d
[ "Apache-2.0" ]
null
null
null
tests/data/primitives/test_primitives/primitive_hyperparam.py
tods-doc/axolotl
6fc87bedb514677db09c039d492d1d3c7864913d
[ "Apache-2.0" ]
null
null
null
import os.path import typing import pandas as pd # type: ignore from d3m import container, utils from d3m.metadata import hyperparams, base as metadata_base from d3m.primitive_interfaces import base, transformer from test_primitives.increment import IncrementPrimitive, Hyperparams as IncrementPrimitiveHyperparams f...
40.285714
151
0.686009
7329a6553c1d534de7857ec6b3b9822c54f2e0ba
3,279
py
Python
python/oneflow/nn/__init__.py
Warmchay/oneflow
5a333ff065bb89990318de2f1bd650e314d49301
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/__init__.py
Warmchay/oneflow
5a333ff065bb89990318de2f1bd650e314d49301
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/__init__.py
Warmchay/oneflow
5a333ff065bb89990318de2f1bd650e314d49301
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. 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.0 Unless required by applicable law or agr...
25.617188
78
0.761208
7329afb05b8bfb9bc61e80744e9e79986229ae26
10,177
py
Python
document_library/south_migrations/0006_auto__chg_field_documentcategory_slug.py
bitlabstudio/django-document-library
0427687bf601f188e55e6a311af8d8ce34c08432
[ "MIT" ]
6
2016-11-27T13:16:08.000Z
2021-07-14T02:38:00.000Z
document_library/south_migrations/0006_auto__chg_field_documentcategory_slug.py
bitlabstudio/django-document-library
0427687bf601f188e55e6a311af8d8ce34c08432
[ "MIT" ]
1
2017-09-20T22:31:24.000Z
2020-12-08T17:00:58.000Z
document_library/south_migrations/0006_auto__chg_field_documentcategory_slug.py
bitlabstudio/django-document-library
0427687bf601f188e55e6a311af8d8ce34c08432
[ "MIT" ]
3
2017-01-11T05:37:40.000Z
2021-01-09T12:12:23.000Z
# flake8: noqa # -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models try: from django.contrib.auth import get_user_model except ImportError: # Django < 1.5 from django.contrib.auth.models import User else: User = get_user_model() ...
72.177305
193
0.579837
7329beec375c25d7e901b5ee7cfb6ed0ee5c0db9
1,076
py
Python
portal/apps/core/migrations/0006_auto_20210128_0118.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/apps/core/migrations/0006_auto_20210128_0118.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/apps/core/migrations/0006_auto_20210128_0118.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-01-28 01:18 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0005_auto_20201228_2034'), ] operations = [ migrations.AlterUniqueTogether...
25.619048
57
0.576208
7329bf3a8fe57ab9b28dc2d0914328428ed2cdf6
1,736
py
Python
db_multitenant/cache/helper.py
appsembler/django-db-multitenant
dee2541110c2fafae982b405db5ddd77753aeeac
[ "Apache-2.0" ]
null
null
null
db_multitenant/cache/helper.py
appsembler/django-db-multitenant
dee2541110c2fafae982b405db5ddd77753aeeac
[ "Apache-2.0" ]
null
null
null
db_multitenant/cache/helper.py
appsembler/django-db-multitenant
dee2541110c2fafae982b405db5ddd77753aeeac
[ "Apache-2.0" ]
1
2019-02-03T03:31:55.000Z
2019-02-03T03:31:55.000Z
# Copyright (c) 2013, mike wakerly <opensource@hoho.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list of c...
54.25
80
0.787442
7329d4b7dabf81e1e60eb836e9aa4b3cb9dc91d5
14,642
py
Python
oscar/lib/python2.7/site-packages/webob/multidict.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/webob/multidict.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/webob/multidict.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# (c) 2005 Ian Bicking and contributors; written for Paste # (http://pythonpaste.org) Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license.php """ Gives a multi-value dictionary object (MultiDict) plus several wrappers """ from collections import MutableMapping import binascii impo...
28.822835
85
0.513045
732a4aaeb8d67c252b5b5226289411399a099e71
6,941
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta1_stateful_set.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta1_stateful_set.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta1_stateful_set.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1bet...
31.40724
295
0.613888
732a568e0c8dc1d0a6185c6bf4d0f1f03bcead63
12,777
py
Python
trainer/layers/merge_layer.py
maosi-chen/sapc2
fe57581f759fb3ccecd22779dd79f84401a9033e
[ "MIT" ]
1
2021-09-09T13:49:28.000Z
2021-09-09T13:49:28.000Z
trainer/layers/merge_layer.py
maosi-chen/sapc2
fe57581f759fb3ccecd22779dd79f84401a9033e
[ "MIT" ]
null
null
null
trainer/layers/merge_layer.py
maosi-chen/sapc2
fe57581f759fb3ccecd22779dd79f84401a9033e
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import os, sys import tensorflow as tf #import tensorflow.keras as K from tensorflow.keras.layers import BatchNormalization class MergeLayer(tf.keras.layers.Layer): #Constructor def __init__(self, # filters, kernel_si...
35.991549
118
0.690146
732a61df804bad9bfa5c57242eb5f6f40aa2677c
1,006
py
Python
src/10-async-web/acityscape_api/services/location_service.py
johnnymetz/async-techniques-python-course
ac3a56c0e480d21bda3f60bac9351102b6d36744
[ "MIT" ]
null
null
null
src/10-async-web/acityscape_api/services/location_service.py
johnnymetz/async-techniques-python-course
ac3a56c0e480d21bda3f60bac9351102b6d36744
[ "MIT" ]
null
null
null
src/10-async-web/acityscape_api/services/location_service.py
johnnymetz/async-techniques-python-course
ac3a56c0e480d21bda3f60bac9351102b6d36744
[ "MIT" ]
null
null
null
import asyncio import random from typing import Tuple import aiohttp use_cached_data = False measured_latency_in_sec = [ 0.28844, 0.334_694, 0.33468, 0.343_911, 0.339_515, 0.344_329, 0.341_594, 0.352_366, 0.535_646, 0.527_148, 0.533_472, 0.53351, 0.523_462, ] asy...
22.863636
87
0.619284
732a8045e2be2785784268650388814b127511a0
8,770
py
Python
zerver/webhooks/beanstalk/tests.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/webhooks/beanstalk/tests.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
6
2020-09-05T21:07:41.000Z
2021-12-02T17:56:37.000Z
zerver/webhooks/beanstalk/tests.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
1
2021-01-07T23:27:52.000Z
2021-01-07T23:27:52.000Z
# -*- coding: utf-8 -*- from typing import Dict, Text from mock import MagicMock, patch from zerver.lib.test_classes import WebhookTestCase from zerver.lib.webhooks.git import COMMITS_LIMIT class BeanstalkHookTests(WebhookTestCase): STREAM_NAME = 'commits' URL_TEMPLATE = u"/api/v1/external/beanstalk?stream={...
60.902778
175
0.71927
732ab37cc2a94bf5c33bda84610dc6a898fbc818
144
py
Python
webapp/crawl/__init__.py
n3k0fi5t/ClonePttWeb
f2a5abb523c244389113b653ed20252fbcec5251
[ "MIT" ]
null
null
null
webapp/crawl/__init__.py
n3k0fi5t/ClonePttWeb
f2a5abb523c244389113b653ed20252fbcec5251
[ "MIT" ]
null
null
null
webapp/crawl/__init__.py
n3k0fi5t/ClonePttWeb
f2a5abb523c244389113b653ed20252fbcec5251
[ "MIT" ]
null
null
null
from .PttSpider.PttSpider import ptt_spider as Spider class CrawlerStatus: NORMAL = 0 ERROR = 1 __all__ = ['CrawlerStatus', 'Spider']
18
53
0.715278
732ac8773945f7da0b8c28d909e7cbaae107c206
540
py
Python
terrascript/provider/cloudflare/cloudflare.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/provider/cloudflare/cloudflare.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/provider/cloudflare/cloudflare.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/provider/cloudflare/cloudflare.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:14:07 UTC) import terrascript class cloudflare(terrascript.Provider): """Cloudflare Terraform Provider""" __description__ = "Cloudflare Terraform Provider" __namespace__ = "cloudflare" __na...
27
78
0.731481
732afb77e57b57ff7ec19d819eba5996aee79d5e
6,088
py
Python
QUANTAXIS_Monitor_GUI/MyQtWidgets/MyDrawImgs/QStockKLine.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
2
2018-10-29T12:01:55.000Z
2021-03-05T10:28:59.000Z
QUANTAXIS_Monitor_GUI/MyQtWidgets/MyDrawImgs/QStockKLine.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
null
null
null
QUANTAXIS_Monitor_GUI/MyQtWidgets/MyDrawImgs/QStockKLine.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
1
2021-01-19T06:13:44.000Z
2021-01-19T06:13:44.000Z
from PyQt5.Qt import QLabel from PyQt5.Qt import QDialog from PyQt5.Qt import QMessageBox from PyQt5.Qt import QHBoxLayout from PyQt5.Qt import * from PyQt5.QtGui import * from PyQt5.QtCore import * from typing import List import math import numpy as np from QUANTAXIS.QAUtil.QADate import * from QUANTAXIS.QAUtil.Q...
33.086957
117
0.626807
732b033a380b264201b3d76bf64a06282eb072d4
3,161
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/messages/update_pinned_message.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/messages/update_pinned_message.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/messages/update_pinned_message.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
34.736264
176
0.602974
732b15d798aeafaaf440b3f930a776de2c3eb1b7
1,869
py
Python
venv/lib/python3.8/site-packages/fido2/ctap2/__init__.py
Nitrokey/nitrokey-app2
ab66bbceb854e1f18987b0331528e86e3e7ff702
[ "Apache-2.0" ]
1
2021-11-23T12:54:35.000Z
2021-11-23T12:54:35.000Z
venv/lib/python3.8/site-packages/fido2/ctap2/__init__.py
Nitrokey/nitrokey-app2
ab66bbceb854e1f18987b0331528e86e3e7ff702
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/fido2/ctap2/__init__.py
Nitrokey/nitrokey-app2
ab66bbceb854e1f18987b0331528e86e3e7ff702
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
39.765957
71
0.76351
732b1659759764e7a1d44231a78eb7b844e074a0
927
py
Python
test/arthash/util/check_test.py
arthash/arthash
8d59700308cedf3b62118ed021064b677408edeb
[ "Artistic-2.0" ]
2
2016-05-26T19:57:40.000Z
2018-09-18T04:10:08.000Z
test/arthash/util/check_test.py
arthash/arthash
8d59700308cedf3b62118ed021064b677408edeb
[ "Artistic-2.0" ]
12
2018-06-23T12:07:42.000Z
2018-07-21T14:44:42.000Z
test/arthash/util/check_test.py
arthash/arthash
8d59700308cedf3b62118ed021064b677408edeb
[ "Artistic-2.0" ]
1
2016-05-26T21:08:08.000Z
2016-05-26T21:08:08.000Z
import hashlib, unittest from arthash.util import check, crypto class CheckTest(unittest.TestCase): def test_SHA256(self): h = hashlib.sha256() for i in range(100): check.SHA256(h.hexdigest()) h.update(b'x') def check_repetitive(size): # Make a string...
28.090909
61
0.583603
732b3acf26e965684823e8545c8a418d0504ae97
11,009
py
Python
atropos/commands/stats.py
plijnzaad/atropos
dcc79d0aa89b5d2b87f02ee841525fa154898ae6
[ "CC0-1.0" ]
null
null
null
atropos/commands/stats.py
plijnzaad/atropos
dcc79d0aa89b5d2b87f02ee841525fa154898ae6
[ "CC0-1.0" ]
1
2020-09-23T07:37:32.000Z
2020-09-23T07:37:32.000Z
atropos/commands/stats.py
plijnzaad/atropos
dcc79d0aa89b5d2b87f02ee841525fa154898ae6
[ "CC0-1.0" ]
null
null
null
# coding: utf-8 """Collect statistics to use in the QC report. """ import re from atropos.util import ( CountingDict, NestedDict, Histogram, Mergeable, Summarizable, ordered_dict, qual2int) DEFAULT_TILE_KEY_REGEXP = r"^(?:[^\:]+\:){4}([^\:]+)" """Regexp for the default Illumina read name format.""" class Pos...
35.285256
81
0.576256
732b43ed6e47b3e7dcfdf1f8d1591181be8dac95
312
py
Python
abc/125/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/125/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/125/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N = int(input()) V = list(map(int, input().split())) C = list(map(int, input().split())) ans = 0 def dfs(n, costV, costC): global ans, V, C if n == N: ans = max(ans, costV - costC) return dfs(n + 1, costV, costC) dfs(n + 1, costV + V[n], costC + C[n]) dfs(0, 0, 0) print(ans)
17.333333
42
0.512821
732b56b140448df3894c935bc094d99f2a4ac277
10,904
py
Python
sdks/python/appcenter_sdk/models/TestRunStatistics.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/TestRunStatistics.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/TestRunStatistics.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class TestRunStatist...
30.038567
218
0.612619
732b615c1e9f137948377e33e69c56107d49bbe7
4,052
py
Python
alipay/aop/api/request/AlipayCommerceOperationPromoterTaskReceiveRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayCommerceOperationPromoterTaskReceiveRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayCommerceOperationPromoterTaskReceiveRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceOperationPromoterTaskReceiveModel import AlipayCommerceOperationPromoterTaskReceiveModel class AlipayCommerceOperation...
27.944828
148
0.65153
732b67fa953cbe9895d69d3a33992568a167cc49
3,054
py
Python
downunder/test/python/run_magnetic_app.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
downunder/test/python/run_magnetic_app.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
downunder/test/python/run_magnetic_app.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 by University of Queensland http://www.uq.edu.au" __license__ = "Licensed under the Apache License, version 2.0 http://www.apache.org/licenses/LICENSE-2.0" __credits__ = "Andrea Codd" import esys.escriptcore.utestselect as unittest from esys.escriptcore.testing import * import s...
30.237624
107
0.630976
732b800e3d7a2e1710b0064dbad2a8b4ec2e43a6
39
py
Python
picco/__init__.py
mateuszz0000/picco
6bd8c86981306b2aef20a50a8921e2e42752fc1e
[ "MIT" ]
1
2020-05-11T04:44:41.000Z
2020-05-11T04:44:41.000Z
picco/__init__.py
mateuszz0000/picco
6bd8c86981306b2aef20a50a8921e2e42752fc1e
[ "MIT" ]
3
2018-09-04T10:50:13.000Z
2020-04-26T11:00:32.000Z
picco/__init__.py
mateuszz0000/picco
6bd8c86981306b2aef20a50a8921e2e42752fc1e
[ "MIT" ]
null
null
null
__name__ = 'picco' __version__ = '0.1'
13
19
0.666667
732b86c2881930ccb1f021b17c68401de0925dae
17,873
py
Python
contrib/tools/python/src/Lib/ctypes/__init__.py
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
1
2021-01-19T17:18:38.000Z
2021-01-19T17:18:38.000Z
contrib/tools/python/src/Lib/ctypes/__init__.py
dsferz/machinelearning_yandex
8fde8314c5c70299ece8b8f00075ddfcd5e07ddf
[ "Apache-2.0" ]
null
null
null
contrib/tools/python/src/Lib/ctypes/__init__.py
dsferz/machinelearning_yandex
8fde8314c5c70299ece8b8f00075ddfcd5e07ddf
[ "Apache-2.0" ]
1
2019-02-01T12:17:04.000Z
2019-02-01T12:17:04.000Z
###################################################################### # This file should be kept compatible with Python 2.3, see PEP 291. # ###################################################################### """create and manipulate C data types in Python""" import os as _os, sys as _sys __version__ = "1.1.0" f...
31.802491
127
0.655962
732b8e884059fc059120824e4cb69e48f244c8e4
4,082
py
Python
geosoft/gxapi/GXEXP.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
geosoft/gxapi/GXEXP.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
geosoft/gxapi/GXEXP.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
### extends 'class_empty.py' ### block ClassImports # NOTICE: Do not edit anything here, it is generated code from . import gxapi_cy from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref ### endblock ClassImports ### block Header # NOTICE: The code generator will not replace the code in this block ### end...
29.366906
143
0.614405
732bab88074dcd20f87c2c3a07ee15cbd5ab68c0
4,806
py
Python
physiossl/datasets/amigos.py
larryshaw0079/PhysioLearn
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
2
2021-12-11T15:17:47.000Z
2021-12-27T07:39:31.000Z
physiossl/datasets/amigos.py
larryshaw0079/PhysioSSL
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
null
null
null
physiossl/datasets/amigos.py
larryshaw0079/PhysioSSL
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
null
null
null
""" @Time : 2021/6/23 16:46 @File : amigos.py @Software: PyCharm @Desc : """ import os import warnings from pathlib import Path from typing import Union, List import numpy as np import scipy.io as sio import torch import torch.nn as nn from torch.utils.data import Dataset from tqdm.std import tqdm from .uti...
36.135338
153
0.555347
732bb18b77e7e1222a9eaf03fa82abb9623d33eb
1,558
py
Python
pylateral/timeout.py
boxysean/pylateral
efa8df0cd4da14c5a1f25dda3bf39687a66deccd
[ "MIT" ]
2
2020-11-23T14:16:24.000Z
2020-11-23T14:59:37.000Z
pylateral/timeout.py
boxysean/pylateral
efa8df0cd4da14c5a1f25dda3bf39687a66deccd
[ "MIT" ]
null
null
null
pylateral/timeout.py
boxysean/pylateral
efa8df0cd4da14c5a1f25dda3bf39687a66deccd
[ "MIT" ]
1
2020-12-09T05:45:53.000Z
2020-12-09T05:45:53.000Z
""" From: https://gist.github.com/TySkby/143190ad1b88c6115597c45f996b030c Easily put time restrictions on things Note: Requires Python 3.x Usage as a context manager: ``` with timeout(10): something_that_should_not_exceed_ten_seconds() ``` Usage as a decorator: ``` @timeout(10) def something_that_should_not_exceed...
26.40678
75
0.733633
732bc663155fd72b808a282db32b6516e671fde0
16,350
py
Python
TWLight/emails/tasks.py
Ammarpad/TWLight
9ebdf6a4f36f23a6a8fc6fac6efb40c24c03d976
[ "MIT" ]
1
2019-10-24T04:49:52.000Z
2019-10-24T04:49:52.000Z
TWLight/emails/tasks.py
Ammarpad/TWLight
9ebdf6a4f36f23a6a8fc6fac6efb40c24c03d976
[ "MIT" ]
1
2019-03-29T15:29:45.000Z
2019-03-29T15:57:20.000Z
TWLight/emails/tasks.py
Ammarpad/TWLight
9ebdf6a4f36f23a6a8fc6fac6efb40c24c03d976
[ "MIT" ]
1
2019-09-26T14:40:27.000Z
2019-09-26T14:40:27.000Z
""" TWLight email sending. TWLight generates and sends emails using https://bameda.github.io/djmail/ . Any view that wishes to send an email should do so using a task defined here. Templates for these emails are available in emails/templates/emails. djmail will look for files named {{ name }}-body-html.html, {{ name ...
39.114833
160
0.680795
732bcbd7ca3f0379c3084ecad238a3861d0b483a
27,953
py
Python
server/src/components/upload/reaction.py
CollinStark/metamdb
6df29f0b0ab1362904f3efb42a651ee433f517df
[ "MIT" ]
1
2021-05-27T13:43:08.000Z
2021-05-27T13:43:08.000Z
server/src/components/upload/reaction.py
metamdb/metamdb
f884cfb604007ed0bbebbd76ee353fa14797b5fb
[ "MIT" ]
1
2021-06-11T09:35:24.000Z
2021-06-11T09:35:24.000Z
server/src/components/upload/reaction.py
metamdb/metamdb
f884cfb604007ed0bbebbd76ee353fa14797b5fb
[ "MIT" ]
null
null
null
"""This module implements functionality for reaction models""" import csv import logging import re from typing import Any, List, Optional, Tuple, Union, TYPE_CHECKING from src.models.casm import Reaction as CasmReaction if TYPE_CHECKING: from typings.casm.reaction import AtomBlockTyping, AtomTransitionTyping, Mappi...
41.720896
150
0.498408
732bcf418ed99d0820870f9177d763e7a00c31f7
9,933
py
Python
legal-api/tests/unit/api/test_business_tasks.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
legal-api/tests/unit/api/test_business_tasks.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
legal-api/tests/unit/api/test_business_tasks.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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.0 # # Unless required by applicable law or agr...
41.045455
120
0.681869
732bd78b16b6ac671a50b7c28b340ad0f014b96c
10,215
py
Python
tests/test_nonderivatives_extraction.py
rs-kellogg/edgar2data
1c382e4ae36fa2ed7f240aa5b7d16dd154cbfb2b
[ "MIT" ]
null
null
null
tests/test_nonderivatives_extraction.py
rs-kellogg/edgar2data
1c382e4ae36fa2ed7f240aa5b7d16dd154cbfb2b
[ "MIT" ]
null
null
null
tests/test_nonderivatives_extraction.py
rs-kellogg/edgar2data
1c382e4ae36fa2ed7f240aa5b7d16dd154cbfb2b
[ "MIT" ]
1
2021-02-16T13:43:18.000Z
2021-02-16T13:43:18.000Z
""" Copyright (c) 2021 Northwestern University. All rights reserved. This work is licensed under the terms of the MIT license. For a copy, see <https://opensource.org/licenses/MIT>. """ import os from conftest import validate from edgar.forms.form3 import Form3 from edgar.forms.form4 import Form4 from edgar.forms.for...
44.030172
88
0.651982
732c062a321370c9d582c654258b7639d3d86d62
14,504
py
Python
qnarre/doc/header.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/doc/header.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/doc/header.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2019 Quantapix Authors. All Rights Reserved. # # 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.0 # # Unless required by applicable l...
31.668122
79
0.443395
732c762713976dd20352e8fc446194d03df04489
2,207
py
Python
test/unittests/test_AvStreamBankEros.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
test/unittests/test_AvStreamBankEros.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
test/unittests/test_AvStreamBankEros.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
import numpy as np from VariableUnittest import VariableUnitTest from gwlfe.MultiUse_Fxns.Erosion import AvStreamBankEros class TestAvStreamBankEros(VariableUnitTest): def test_AvStreamBankEros(self): z = self.z np.testing.assert_array_almost_equal( AvStreamBankEros.AvStreamBankEros_...
73.566667
120
0.503398
732c901b64a4d64f04ab3d177ed93ef52e049bee
3,700
py
Python
Challenges/05/linked_list/linked_list.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
Challenges/05/linked_list/linked_list.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
Challenges/05/linked_list/linked_list.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
class Node: def __init__(self, value=None, next=None): self.value = value self.next = next class linked_list: def __init__(self): self.header = None def insert(self, value): """ Add a node to linked list Input: Value of node to be created ...
20
75
0.477568
732c9a442c145cad003b6f4048fe440370fd2a56
4,041
py
Python
influxdb_client/domain/run_links.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
influxdb_client/domain/run_links.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
influxdb_client/domain/run_links.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class RunL...
24.490909
124
0.535758
732cd8783939c09bb99af0803b3af0efb904365f
1,013
py
Python
shopkit/contrib/payment/authorizenet_provider/models.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
shopkit/contrib/payment/authorizenet_provider/models.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
shopkit/contrib/payment/authorizenet_provider/models.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
import authorizenet from django.db import models from django.utils.translation import ugettext_lazy as _ #from ....utils.models import DeferredOneToOneField class AuthorizeNetPaymentBase(models.Model): cc_name = models.CharField(_('Name on Credit Card'), max_length=128) cc_number = models.CharField(_('Card Nu...
42.208333
85
0.683119
732cf1eaaf6d91dfc2bec3e8a079a3bc96841db3
5,217
py
Python
Test06_wifi_autodecoder/test06_wifi.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
3
2018-07-29T17:31:58.000Z
2019-06-27T10:36:34.000Z
Test06_wifi_autodecoder/test06_wifi.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
null
null
null
Test06_wifi_autodecoder/test06_wifi.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
1
2019-02-18T02:27:39.000Z
2019-02-18T02:27:39.000Z
import tensorflow as tf # http://blog.topspeedsnail.com/archives/10399 from sklearn.preprocessing import scale # 使用scikit-learn进行数据预处理 import pandas as pd import numpy as np training_data = pd.read_csv("trainingData.csv", header=0) # print(training_data.head()) train_x = scale(np.asarray(training_data.ix[:, 0:520]))...
50.163462
111
0.621813
732d1567c5c0bd84851c42cde290b6b46bc9c349
1,303
py
Python
dipy/io/pickles.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/io/pickles.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/io/pickles.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
""" Load and save pickles """ # Python 3 merged cPickle into pickle from ..utils.six.moves import cPickle def save_pickle(fname, dix): ''' Save `dix` to `fname` as pickle Parameters ------------ fname : str filename to save object e.g. a dictionary dix : str dictionary or other obje...
21.360656
76
0.5802
732d28805900916bb059ba61539a56cf3293b5f8
1,331
py
Python
src/visitpy/pyavt/examples/py_query.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/pyavt/examples/py_query.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/pyavt/examples/py_query.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Example VisIt Python Expression # # Example embedded python query that calcultes the average cell value. # (currently serial only) # # # Usage: # Load in the Query window or run with provided driver: # visit -o path/to/rect2d.silo -nowin -cli -s visit_py_query_test.py # # simple cell average query class CellAvgQue...
35.026316
76
0.680691
732d3e1feb08ae8c9eecef22968f1dbd2a554e4c
2,955
py
Python
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_properties_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_properties_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_mi_sync_task_properties_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
42.826087
103
0.648393
732d4479c78c8646db371d049d7c46b1e61ee92a
2,660
py
Python
leetcode_python/Depth-First-Search/count-univalue-subtrees.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Depth-First-Search/count-univalue-subtrees.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Depth-First-Search/count-univalue-subtrees.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # V1 # https://xingxingpark.com/Leetcode-250-Count-Univalue-Subtrees/ # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def countUnivalSubtrees(self, root): self.count = 0 ...
30.574713
90
0.6
732d4aa9e735eb639732773656516da45da91408
2,571
py
Python
Recursion/maxPalindrome.py
QiLinXue/ICS4U
95d40efb2bac818b696b9eb039554642cd9ab9ec
[ "MIT" ]
1
2018-09-27T22:44:24.000Z
2018-09-27T22:44:24.000Z
Recursion/maxPalindrome.py
QiLinXue/ICS4U
95d40efb2bac818b696b9eb039554642cd9ab9ec
[ "MIT" ]
4
2018-09-29T17:30:58.000Z
2018-11-20T00:32:34.000Z
Recursion/maxPalindrome.py
QiLinXue/ICS4U
95d40efb2bac818b696b9eb039554642cd9ab9ec
[ "MIT" ]
null
null
null
#----------------------------------------------------------------------------- # Name: Max Palindrome # Purpose: To calculate the total number of palindromes within a given # string recursively # # Author: QiLin # Created: 6-Nov-2018 # Updated: 15-Nov-2018 #------------------------...
29.895349
217
0.605601
732d50f41637164b16804e8fde1bc3964d5b3fca
8,278
py
Python
google/appengine/ext/ndb/polymodel.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/ndb/polymodel.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/ndb/polymodel.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
"""Polymorphic models and queries. The standard NDB Model class only supports 'functional polymorphism'. That is, you can create a subclass of Model, and then subclass that class, as many generations as necessary, and those classes will share all the same properties and behaviors of their base classes. However, subcl...
34.348548
76
0.668157
732d5accbc56e1b510705ece188993416041d3ec
17,746
py
Python
airflow/kubernetes/worker_configuration.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
3
2015-08-25T13:56:44.000Z
2020-03-21T10:26:58.000Z
airflow/kubernetes/worker_configuration.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
37
2020-07-21T07:50:02.000Z
2022-03-29T22:31:28.000Z
airflow/kubernetes/worker_configuration.py
santecapital/airflow
7f02e56c9cb8b548624d13e9c2c2b89d753f996b
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2018-07-24T08:54:45.000Z
2018-08-31T13:41:50.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.968468
103
0.624873
732d655b9e031634a1f8cdffcd24bb7834d204ea
584
py
Python
tests/conftest.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
5
2022-01-07T13:34:37.000Z
2022-03-17T06:40:28.000Z
tests/conftest.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
5
2022-03-22T13:42:22.000Z
2022-03-31T16:20:44.000Z
tests/conftest.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
1
2021-12-17T22:41:11.000Z
2021-12-17T22:41:11.000Z
import pytest import pandas as pd from sklearn.datasets import make_classification from sklearn.datasets import make_regression from tests import rmtree @pytest.fixture(autouse=True) def rmtree_automl(): folder = 'AutoML' rmtree(folder, must_exist=False) yield folder rmtree(folder, must_exist=False)...
21.62963
48
0.702055
732d7237c2364811cdc1b45e8bbdaf3471858195
6,417
py
Python
tests/manage/z_cluster/nodes/test_node_replacement_reactive_aws_ipi.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/manage/z_cluster/nodes/test_node_replacement_reactive_aws_ipi.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/manage/z_cluster/nodes/test_node_replacement_reactive_aws_ipi.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import logging import pytest from ocs_ci.framework.testlib import ( tier4, tier4b, ManageTest, aws_platform_required, ipi_deployment_required, ignore_leftovers, ) from ocs_ci.ocs import machine, constants, ocp from ocs_ci.ocs.resources import pod from ocs_ci.framework import config from ocs_ci....
35.65
88
0.660589
732d76d566ffb4141e2684249681f46271311fa0
2,462
py
Python
reclab/recommenders/baseline.py
lematt1991/RecLab
7ba212ac2ae346fb6dfeec232eef652d7f26e193
[ "MIT" ]
51
2020-09-17T08:51:42.000Z
2022-03-26T20:44:48.000Z
reclab/recommenders/baseline.py
kiminh/RecLab
7fd29d1c780e91910008a322b04e1b1149a203c8
[ "MIT" ]
25
2020-09-04T00:12:44.000Z
2021-10-05T02:21:58.000Z
reclab/recommenders/baseline.py
kiminh/RecLab
7fd29d1c780e91910008a322b04e1b1149a203c8
[ "MIT" ]
6
2020-11-30T03:34:25.000Z
2022-02-08T18:27:48.000Z
"""An implementation of baseline perfect and random recommenders.""" import numpy as np from . import recommender class RandomRec(recommender.PredictRecommender): """A random recommendation model. Parameters ---------- range : tuple Upper and lower bounds for the uniformly random predictions...
30.775
84
0.621852
732d7f7b1df3600943b02d2c5e7bc8fe6edcdeb8
622
py
Python
used/counties.py
NathanDai5287/covid
7ab183c4b3617e4e1db03e0a0c42acc8ffadacd2
[ "MIT" ]
null
null
null
used/counties.py
NathanDai5287/covid
7ab183c4b3617e4e1db03e0a0c42acc8ffadacd2
[ "MIT" ]
null
null
null
used/counties.py
NathanDai5287/covid
7ab183c4b3617e4e1db03e0a0c42acc8ffadacd2
[ "MIT" ]
null
null
null
import pandas as pd import requests df = pd.read_csv('docs/07-01-2021.csv') df = df[df['Country_Region'] == 'US'] df.sort_values(by='Confirmed', ascending=False, inplace=True) index_names = df['Out of' in df['Admin2'] or df['Admin2'] == 'Unassigned'].index df.drop(index_names, inplace=True) df = df[~df.A...
28.272727
81
0.675241
732dabd01da70617b8adb81ffc2ccda49b9d539b
2,676
py
Python
tests/models/validators/v2_1_2/jsd_948ea8194348bc0b.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_2/jsd_948ea8194348bc0b.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v2_1_2/jsd_948ea8194348bc0b.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Create CLI credentials data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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, ...
31.857143
78
0.585575
732db675edf7646329fe23e889c530099569dca4
1,200
py
Python
python/app/plugins/port/Mongodb/Mongodb_Unauthorized.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/plugins/port/Mongodb/Mongodb_Unauthorized.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/plugins/port/Mongodb/Mongodb_Unauthorized.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
#!/usr/bin/env python3 from pymongo import MongoClient from urllib.parse import urlparse class Mongodb_Unauthorized_BaseVerify: def __init__(self, url): self.info = { 'name': 'Mongodb 未授权访问漏洞', 'description': 'Mongodb 未授权访问漏洞', 'date': '', 'exptype': 'check'...
26.086957
85
0.55
732dbde973f295cd9dd0ed9e1dfa3bd5daeeac44
1,644
py
Python
spider/ratsql/resources/corenlp.py
taoyds/grappa
42d7655eeab5b9c0ed0918d0c39d3ddcccffa52a
[ "Apache-2.0", "CC-BY-4.0" ]
17
2021-08-24T20:36:49.000Z
2022-02-21T08:02:58.000Z
spider/ratsql/resources/corenlp.py
taoyds/grappa
42d7655eeab5b9c0ed0918d0c39d3ddcccffa52a
[ "Apache-2.0", "CC-BY-4.0" ]
5
2021-08-24T23:43:44.000Z
2022-01-14T08:55:54.000Z
spider/ratsql/resources/corenlp.py
taoyds/grappa
42d7655eeab5b9c0ed0918d0c39d3ddcccffa52a
[ "Apache-2.0", "CC-BY-4.0" ]
4
2021-08-24T18:39:32.000Z
2022-02-01T18:36:16.000Z
import os import sys import corenlp import requests class CoreNLP: def __init__(self): if not os.environ.get('CORENLP_HOME'): os.environ['CORENLP_HOME'] = os.path.abspath( os.path.join( os.path.dirname(__file__), '../../third_party/stanf...
34.25
101
0.636861
732e0d60092d2043808e00f26e0a1a53237f3d77
7,426
py
Python
OmniPingTestClass.py
treehouse-networks-uk/OmniPing
8674d18fb3909165a539ba48cc3c2a8d25ddb3cb
[ "MIT" ]
2
2021-01-20T09:36:41.000Z
2021-01-20T09:36:53.000Z
OmniPingTestClass.py
treehouse-networks-uk/OmniPing
8674d18fb3909165a539ba48cc3c2a8d25ddb3cb
[ "MIT" ]
null
null
null
OmniPingTestClass.py
treehouse-networks-uk/OmniPing
8674d18fb3909165a539ba48cc3c2a8d25ddb3cb
[ "MIT" ]
null
null
null
from datetime import datetime import time import socket import re import asyncio import http3 import cherrypy def sucPer(total_trys, successes): ''' This is just a function to work out pecentage success and cope with the Zero division ''' try: totp = "{0:.2f} %".format(successes/total_trys...
36.581281
94
0.524374
732e2537ce25e0fc3b707b23dbfd50457f7cc65c
3,743
py
Python
buildpack/bin/python/lambda_runtime_client.py
evankanderson/klr-buildpack
a963ec72572ae598820a59cc2435aae88d6dec9b
[ "Apache-2.0" ]
239
2019-01-08T08:37:33.000Z
2022-03-25T21:58:54.000Z
buildpack/bin/python/lambda_runtime_client.py
evankanderson/klr-buildpack
a963ec72572ae598820a59cc2435aae88d6dec9b
[ "Apache-2.0" ]
54
2019-01-07T17:42:14.000Z
2021-12-20T01:26:53.000Z
buildpack/bin/python/lambda_runtime_client.py
evankanderson/klr-buildpack
a963ec72572ae598820a59cc2435aae88d6dec9b
[ "Apache-2.0" ]
19
2019-01-05T12:06:39.000Z
2021-10-11T00:19:35.000Z
""" Copyright (c) 2018 Amazon. All rights reserved. """ import http.client import http from collections import defaultdict class InvocationRequest(object): def __init__(self, **kwds): self.__dict__.update(kwds) def __eq__(self, other): return self.__dict__ == other.__dict__ class LambdaRun...
42.534091
144
0.714667
732e2fb2c0c3d1cdcbf8e303aa0590bcf2ce08cb
6,388
py
Python
cumulusci/tasks/bulkdata/tests/test_utils.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
1
2020-08-08T03:55:21.000Z
2020-08-08T03:55:21.000Z
cumulusci/tasks/bulkdata/tests/test_utils.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
cumulusci/tasks/bulkdata/tests/test_utils.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime import os import unittest from unittest import mock import yaml import responses from sqlalchemy import create_engine, MetaData, Integer, types, Unicode, Column, Table from sqlalchemy.orm import create_session, mapper from cumulusci.tasks import bulkdata from cumulusci.utils import tempo...
36.712644
86
0.647151
732e46d6619ab04d2497b38bb2a98d329910f555
6,211
py
Python
experiments/shikhar/offline/pointmass_rig2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/shikhar/offline/pointmass_rig2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/shikhar/offline/pointmass_rig2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in from rlkit.launchers.launcher_util import run_experiment # from rlkit.torch.grill.launcher...
36.110465
117
0.571245
732e543153f7cbc40498ad669f88c84e252de27e
775
py
Python
schema_matching/feature_classes/__init__.py
JordyBottelier/arpsas
1d10f18d082b71ad2931852b8d88ad963add8fbe
[ "MIT" ]
4
2021-02-23T01:11:24.000Z
2022-01-14T13:29:42.000Z
schema_matching/feature_classes/__init__.py
JordyBottelier/arpsas
1d10f18d082b71ad2931852b8d88ad963add8fbe
[ "MIT" ]
4
2021-03-18T20:36:03.000Z
2022-01-13T00:47:32.000Z
schema_matching/feature_classes/__init__.py
JordyBottelier/arpsas
1d10f18d082b71ad2931852b8d88ad963add8fbe
[ "MIT" ]
2
2021-02-23T01:12:12.000Z
2021-06-27T17:48:30.000Z
from os.path import dirname, basename, isfile import glob import re modules = glob.glob(dirname(__file__)+"/*.py") all_classes = [] __all__ = [] for f in modules: if isfile(f) and not f.endswith('__init__.py'): filename = basename(f)[:-3] __all__.append(basename(f)[:-3]) # Extract the class itself and add it to...
29.807692
60
0.64
732e7b0e3f04ca99a57157bc6415f89a63b4b788
735
py
Python
applications/hw5_1/controllers/default.py
ayeh9/ecommerce_site
0010dbc2f0d378c449772eb3ed2dfe0cce8b932e
[ "BSD-3-Clause" ]
null
null
null
applications/hw5_1/controllers/default.py
ayeh9/ecommerce_site
0010dbc2f0d378c449772eb3ed2dfe0cce8b932e
[ "BSD-3-Clause" ]
null
null
null
applications/hw5_1/controllers/default.py
ayeh9/ecommerce_site
0010dbc2f0d378c449772eb3ed2dfe0cce8b932e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations # ------------------------------------------------------------------------- # This is a sample controller # - index is the default action of any application # - user is required for authentication and authorization ...
26.25
79
0.559184
732e94481af6f04b2d75e5ca5b0d06069fe0c8ed
1,016
py
Python
setup.py
rs-kellogg/edgar2data
1c382e4ae36fa2ed7f240aa5b7d16dd154cbfb2b
[ "MIT" ]
null
null
null
setup.py
rs-kellogg/edgar2data
1c382e4ae36fa2ed7f240aa5b7d16dd154cbfb2b
[ "MIT" ]
null
null
null
setup.py
rs-kellogg/edgar2data
1c382e4ae36fa2ed7f240aa5b7d16dd154cbfb2b
[ "MIT" ]
1
2021-02-16T13:43:18.000Z
2021-02-16T13:43:18.000Z
from setuptools import setup, find_packages setup( name="edgar2data", version="0.2.0", author="Will Thompson", author_email="wkt@northwestern.edu", maintainer="Will Thompson", maintainer_email="wkt@northwestern.edu", description="Code for parsing EDGAR filings", url="https://github.com/...
26.736842
67
0.57874
732e94eff7fc5c5fde511a4e10247e0dae0376bf
19,128
py
Python
tests/app/dao/test_templates_dao.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
tests/app/dao/test_templates_dao.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
tests/app/dao/test_templates_dao.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
import json from datetime import datetime from uuid import UUID import pytest from freezegun import freeze_time from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.orm.exc import NoResultFound from app import redis_store from app.dao.templates_dao import ( dao_create_template, dao_get_all_templates_for...
36.926641
126
0.734839
732ea1e453b3546f2369d4a327af8a368089823f
3,537
py
Python
control/controller.py
nyucan/can-selfdriving
2a0c68eb1e5ce01bf8fe1c408fbb256184376694
[ "MIT" ]
3
2019-02-19T22:22:07.000Z
2019-03-16T04:58:58.000Z
control/controller.py
nyucan/can-selfdriving
2a0c68eb1e5ce01bf8fe1c408fbb256184376694
[ "MIT" ]
null
null
null
control/controller.py
nyucan/can-selfdriving
2a0c68eb1e5ce01bf8fe1c408fbb256184376694
[ "MIT" ]
null
null
null
# python 2.7 from __future__ import absolute_import, division, print_function import io from math import floor import numpy as np from time import sleep, time from os.path import join from control.motor import Motor from control import policy class Controller(object): def __init__(self): self.motor = Mot...
36.463918
144
0.583828
732eb787282c7fd5dff61adf57f13ea7621a734e
21,691
py
Python
PTG/3Size/NN_All_Encoded.py
Bogeluno/GNN_Thesis
b1a3e60d9b9a189b1c97ea7479d6606e45d32538
[ "MIT" ]
null
null
null
PTG/3Size/NN_All_Encoded.py
Bogeluno/GNN_Thesis
b1a3e60d9b9a189b1c97ea7479d6606e45d32538
[ "MIT" ]
null
null
null
PTG/3Size/NN_All_Encoded.py
Bogeluno/GNN_Thesis
b1a3e60d9b9a189b1c97ea7479d6606e45d32538
[ "MIT" ]
null
null
null
import sys import pandas as pd import numpy as np from tqdm import tqdm import pickle from scipy import sparse import torch import torch.nn.functional as F from datetime import date, timedelta import torch.optim as optim import torch.nn as nn from torch_geometric.nn import Sequential, MessagePassing, Linear from torch_...
33.892188
234
0.609008
732ede63e115ac0f0aae2bf670b5a0e9c745bf68
10,964
py
Python
galaxy2galaxy/data_generators/cosmos.py
EiffL/Galaxy2Galaxy
6d8b20722a5545c8c79a19cb67c6131c061763ed
[ "MIT" ]
22
2019-08-22T02:52:57.000Z
2022-01-06T15:40:35.000Z
galaxy2galaxy/data_generators/cosmos.py
EiffL/Galaxy2Galaxy
6d8b20722a5545c8c79a19cb67c6131c061763ed
[ "MIT" ]
14
2019-07-26T22:29:32.000Z
2021-07-27T10:05:26.000Z
galaxy2galaxy/data_generators/cosmos.py
EiffL/Galaxy2Galaxy
6d8b20722a5545c8c79a19cb67c6131c061763ed
[ "MIT" ]
5
2019-08-16T03:32:27.000Z
2021-05-26T16:27:49.000Z
"""HST/ACS Cosmos generator.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from . import galsim_utils from . import astroimage_utils from tensor2tensor.data_generators import generator_utils from tensor2tensor.data_generators import image_u...
35.028754
168
0.659796
732ef298f3072260639f42561c21894c084dae0e
1,108
py
Python
detector/get_transactions.py
RightMesh/payment-channel-performance
3abde2d4d32353e212a49c946cb8222f297379e7
[ "MIT" ]
null
null
null
detector/get_transactions.py
RightMesh/payment-channel-performance
3abde2d4d32353e212a49c946cb8222f297379e7
[ "MIT" ]
43
2019-01-25T23:54:27.000Z
2019-04-09T02:36:52.000Z
detector/get_transactions.py
RightMesh/payment-channel-performance
3abde2d4d32353e212a49c946cb8222f297379e7
[ "MIT" ]
1
2019-04-27T00:17:44.000Z
2019-04-27T00:17:44.000Z
import requests import json from lxml import html import re from datetime import datetime import dateutil.parser # get the details of a transaction def get_transactions(content): results = [] try: parser = html.fromstring(content) XPATH_PAGEINFO = '//*[@id="transfers"]/div[2]/table/tbody/...
29.157895
84
0.545126
732efd26124077068d20ad20c2a484d5e57a8318
92,856
py
Python
sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from collections import defaultdict import datetime import os import pytest import platform import functools import itertools import json import time import sys import a...
47.423902
353
0.609783
732f1a14e344d5dcb7c4ee577d475e97c8217165
3,205
py
Python
musicxml_toolbox/musicxml/note.py
Kanma/musicxml_toolbox
0a3e70d70c4731cfd6eb8456b5d68497ebfd2922
[ "MIT" ]
2
2018-05-03T19:06:26.000Z
2021-04-13T11:21:57.000Z
musicxml_toolbox/musicxml/note.py
Kanma/musicxml_toolbox
0a3e70d70c4731cfd6eb8456b5d68497ebfd2922
[ "MIT" ]
null
null
null
musicxml_toolbox/musicxml/note.py
Kanma/musicxml_toolbox
0a3e70d70c4731cfd6eb8456b5d68497ebfd2922
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET from copy import deepcopy from .. import xml from .xmlelementwrapper import XMLElementWrapper from .fingering import Fingering class Note(XMLElementWrapper): NATURAL = 'natural' SHARP = 'sharp' FLAT = 'flat' NONE = None WHOLE = 'whole' HALF = 'half' QU...
24.653846
66
0.599688
732f43250b6a3742827dcc84f3ee6b7a265bb8bd
1,631
py
Python
examples/nlp/lstm_generator_cityname.py
lfwin/tflearn
06015c73a4d9ad9edafeb9b61ee9004fd715f69e
[ "MIT" ]
20
2016-04-04T06:15:43.000Z
2021-04-18T18:40:30.000Z
examples/nlp/lstm_generator_cityname.py
Acidburn0zzz/tflearn
768c38a8b9a2ee646cd298e3ae9dd46818970447
[ "MIT" ]
null
null
null
examples/nlp/lstm_generator_cityname.py
Acidburn0zzz/tflearn
768c38a8b9a2ee646cd298e3ae9dd46818970447
[ "MIT" ]
9
2016-04-26T05:31:47.000Z
2019-08-24T18:12:21.000Z
from __future__ import absolute_import, division, print_function import os from six import moves import ssl import tflearn from tflearn.data_utils import * path = "US_Cities.txt" if not os.path.isfile(path): context = ssl._create_unverified_context() moves.urllib.request.urlretrieve("https://raw.githubuserco...
36.244444
153
0.679338
732f7a8659797c2e33b9fa3ae23e882e14ba06a9
126
py
Python
terrascript/resource/poseidon/ct.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/poseidon/ct.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/poseidon/ct.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/poseidon/ct.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:14:51 UTC) __all__ = []
25.2
73
0.753968
732f86e3c8610ba97fbe150ed15b62e6a835c03e
1,869
py
Python
examples/RDS_with_DBParameterGroup.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
1
2021-04-03T22:24:36.000Z
2021-04-03T22:24:36.000Z
examples/RDS_with_DBParameterGroup.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
null
null
null
examples/RDS_with_DBParameterGroup.py
jpvowen/troposphere
6a9efa7717db75905b846a9f3aafd092f55c7925
[ "BSD-2-Clause" ]
5
2020-05-10T13:50:32.000Z
2021-09-09T09:06:54.000Z
# Converted from RDS_with_DBParameterGroup.template located at: # http://aws.amazon.com/cloudformation/aws-cloudformation-templates/ from troposphere import Parameter, Ref, Template from troposphere.rds import DBInstance, DBParameterGroup t = Template() t.set_description( "AWS CloudFormation Sample Template RDS...
29.203125
76
0.698769
732f8ac443419a6e188bd35d30319bf122c89044
2,930
py
Python
msticpy/datamodel/entities/ip_address.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
null
null
null
msticpy/datamodel/entities/ip_address.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
null
null
null
msticpy/datamodel/entities/ip_address.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """IpAddre...
29.897959
76
0.61058
732fc0ce714ac9606bd613b7584b5d1a34e3597c
3,003
py
Python
simple_mediapipe/stream.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
5
2021-01-01T11:02:41.000Z
2022-03-11T19:44:29.000Z
simple_mediapipe/stream.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
null
null
null
simple_mediapipe/stream.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
1
2021-04-12T05:59:46.000Z
2021-04-12T05:59:46.000Z
from .list import List from types import MethodType, FunctionType from logzero import logger import sys from .tool import parse_tag_index_name from .packet import Packet from typing import Union class StreamType: INPUT_STREAM = "INPUT_STREAM" OUTPUT_STREAM = "OUTPUT_STREAM" GRAPH_INPUT_STREAM = "GRAPH_INP...
36.621951
107
0.659008
732fe21a95571c172e99c16189d605a0e9577acc
3,742
py
Python
venv/Lib/site-packages/nbdime/tests/test_hg_differ.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
2
2021-02-16T16:17:07.000Z
2021-11-08T20:27:13.000Z
venv/Lib/site-packages/nbdime/tests/test_hg_differ.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/nbdime/tests/test_hg_differ.py
PeerHerholz/guideline_jupyter_book
ce445e4be0d53370b67708a22550565b90d71ac6
[ "BSD-3-Clause" ]
4
2020-11-14T17:05:36.000Z
2020-11-16T18:44:54.000Z
# -*- coding: utf-8 -*- # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from __future__ import unicode_literals import os from os.path import join as pjoin import mock import pytest from tornado import ioloop from nbdime.vcs.hg.diff import main as hgd_main from ...
24.618421
98
0.628274
732fe4004453b0f5a67c119afa7df37f83f91403
132
py
Python
cinema/imdb_config.py
ChiPowers/cinema_game
83c59c954b0735eb2a0ec0d9195487303c659dee
[ "MIT" ]
1
2022-02-18T06:08:27.000Z
2022-02-18T06:08:27.000Z
cinema/imdb_config.py
ChiPowers/cinema_game
83c59c954b0735eb2a0ec0d9195487303c659dee
[ "MIT" ]
6
2020-06-06T01:18:01.000Z
2022-02-15T05:39:14.000Z
cinema/imdb_config.py
ChiPowers/cinema_game
83c59c954b0735eb2a0ec0d9195487303c659dee
[ "MIT" ]
1
2021-01-11T17:54:18.000Z
2021-01-11T17:54:18.000Z
from imdb import IMDb ia = IMDb() try: from .secrets import get_ia ia_s3 = get_ia() except ImportError: ia_s3 = None
12
31
0.659091
732fe557723e08653d85ea1709ba0f06014a00d7
3,168
py
Python
alipay/aop/api/domain/AlipayEbppInspectNotifyModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayEbppInspectNotifyModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayEbppInspectNotifyModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayEbppInspectNotifyModel(object): def __init__(self): self._function_name = None self._job_id = None self._log_url = None self._result = None self._sta...
27.310345
77
0.557449
732ff55912054149df88d104f28ca3e85e78db7a
4,525
py
Python
vdb/variables.py
vaporlang/vyper-debug
8eab74be91dd3e4d57a566a2ab520b5000543875
[ "MIT" ]
21
2018-07-28T12:21:32.000Z
2021-10-10T12:08:57.000Z
vdb/variables.py
vaporlang/vyper-debug
8eab74be91dd3e4d57a566a2ab520b5000543875
[ "MIT" ]
15
2018-07-16T09:58:05.000Z
2019-05-16T09:40:47.000Z
vdb/variables.py
vaporlang/vyper-debug
8eab74be91dd3e4d57a566a2ab520b5000543875
[ "MIT" ]
8
2018-07-13T16:00:35.000Z
2021-05-12T17:38:37.000Z
from eth_hash.auto import keccak from eth_abi import decode_single from eth_utils import ( to_hex, big_endian_to_int, int_to_big_endian, ) from vyper.utils import ceil32 base_types = ( 'int128', 'uint256', 'address', 'bytes32' ) def print_var(stdout, value, var_typ): if isinstance(v...
32.321429
97
0.595359
732ff70d22bf8a0ed1db195f0570f595bac4166b
1,114
py
Python
tests/test_rules_model.py
ss-lab-cancerunit/pangaea
1d186db6aba76674edc3826797decbf487b4f337
[ "Unlicense" ]
null
null
null
tests/test_rules_model.py
ss-lab-cancerunit/pangaea
1d186db6aba76674edc3826797decbf487b4f337
[ "Unlicense" ]
1
2020-03-31T18:21:47.000Z
2020-03-31T18:21:47.000Z
tests/test_rules_model.py
ss-lab-cancerunit/pangaea
1d186db6aba76674edc3826797decbf487b4f337
[ "Unlicense" ]
null
null
null
from pangaea import parser from pangaea import models GENES_FILE = 'pangaea/data/test/genes_test.txt' STEMS_FILE = 'pangaea/data/test/stems_test.csv' SYNONYMS_FILE = 'pangaea/data/test/gene_to_synonyms_test.json' def test_one_interaction(): model = models.RulesExtractor(GENES_FILE, STEMS_FILE) results = model...
38.413793
113
0.745063
73300274ee6a3881db6e6c2fd8cb8257b3bfe35b
73,962
py
Python
sample_mods/bfb/bfb_abs7momdt_nmpcbak2.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
2
2019-09-26T20:56:06.000Z
2019-11-18T21:03:27.000Z
sample_mods/bfb/bfb_abs7momdt_nmpcbak2.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
6
2018-03-19T20:36:49.000Z
2018-04-13T15:27:29.000Z
sample_mods/bfb/bfb_abs7momdt_nmpcbak2.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
5
2018-10-04T18:51:02.000Z
2020-07-02T15:31:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from __future__ import division from pyomo.environ import * from pyomo.core.base import Param, ConcreteModel, Var, Constraint, Set, exp, sqrt, Suffix, value from pyomo.opt import ProblemFormat from nmpc_mhe.aux.cpoinsc import collptsge...
59.502816
440
0.570144
733015e039bbc7f57d2b93ffc6dd4732f875b8be
1,438
py
Python
Chapter 06/postgis_test.py
PacktPublishing/Python-Geospatial-Development-Third-Edition
e1e1f52da8509876e8576e081de9d5f251a21f77
[ "MIT" ]
44
2016-06-14T05:36:10.000Z
2022-01-30T18:29:44.000Z
Chapter 06/postgis_test.py
KonstantinKlepikov/Python-Geospatial-Development-Third-Edition
ca3545dbab75dac63080582538de40d4d1c15dab
[ "MIT" ]
null
null
null
Chapter 06/postgis_test.py
KonstantinKlepikov/Python-Geospatial-Development-Third-Edition
ca3545dbab75dac63080582538de40d4d1c15dab
[ "MIT" ]
48
2016-12-11T08:53:46.000Z
2022-02-10T12:10:34.000Z
import psycopg2 from osgeo import ogr # Connect to the database. connection = psycopg2.connect(database="...", user="...", password="...") cursor = connection.cursor() # Create the database table. cursor.execute("DROP TABLE IF EXISTS borders") cursor.execute("CREATE TABLE borders (" + ...
28.196078
74
0.628651
7330228ef7e23fc94befd9600442e69b91ecfa5b
873
py
Python
exercicio_07.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
exercicio_07.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
exercicio_07.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 16 15:46:48 2021 @author: alef Implementar um programa que receba um nome de arquivo e gere estatísticas sobre o arquivo (número de caracteres, número de linhas e número de palavras) """ def statistic_of_file(file): n_linhas = 0 n_caract...
24.25
70
0.633448
733050388760ada2e6a6a2da5877d62a6c6d9ba5
869
py
Python
setup.py
jamescarruthers/vpype
def98780f2b14c00d7bdbbb7035374282f696a7f
[ "MIT" ]
1
2019-12-20T18:32:10.000Z
2019-12-20T18:32:10.000Z
setup.py
jamescarruthers/vpype
def98780f2b14c00d7bdbbb7035374282f696a7f
[ "MIT" ]
null
null
null
setup.py
jamescarruthers/vpype
def98780f2b14c00d7bdbbb7035374282f696a7f
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md") as f: readme = f.read() with open("LICENSE") as f: license = f.read() setup( name="vpype", version="0.1.0", description="Vector pipeline for generative art", long_description=readme, long_description_content_type="text/ma...
24.828571
80
0.620253
733064e56b8024dab64eb89ed9538fc0659fc145
17,470
py
Python
src/tfgarden/applications/nasnet.py
Shakshi3104/TensorFlow_CNN_Collections_for_HASC
5678ad6c6922880230ae0c1e7ec39f32e8012279
[ "MIT" ]
2
2021-12-09T13:03:20.000Z
2022-03-19T11:14:31.000Z
src/tfgarden/applications/nasnet.py
Shakshi3104/TensorFlow_CNN_Collections_for_HASC
5678ad6c6922880230ae0c1e7ec39f32e8012279
[ "MIT" ]
6
2021-06-05T08:42:28.000Z
2022-03-22T05:51:24.000Z
src/tfgarden/applications/nasnet.py
Shakshi3104/tfgarden
5678ad6c6922880230ae0c1e7ec39f32e8012279
[ "MIT" ]
null
null
null
import os from tensorflow.python.keras import backend from tensorflow.keras import layers from tensorflow.keras.models import Model class SeparableConvBlock: def __init__(self, filters, kernel_size=3, strides=1, block_id=None): self.filters = filters self.kernel_size = kernel_size self.st...
40.533643
118
0.510246
733065cdad6ea7ff67e239db2ed813d77acdd44c
1,028
py
Python
dev/tasks/pypi.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
12
2021-12-27T14:40:17.000Z
2022-03-22T20:14:42.000Z
dev/tasks/pypi.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
null
null
null
dev/tasks/pypi.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
null
null
null
import os from typing import Any, Optional from schema import Schema from dev.exceptions import TaskError from dev.helpers import run_command from dev.task import Task class Pypi(Task): __schema__ = Schema(str) __description__ = 'Manage packages on PyPi' def up(self, command: Optional[Any], extra_args:...
28.555556
76
0.638132
73306e285a6133829edf2a7c50214e79455560e3
765
py
Python
ros2_ws/src/sensors/oakd/setup.py
FastSense/rosbot-ros2
c2d274ce179534fec5b2786a6f96b6d638019ac4
[ "MIT" ]
null
null
null
ros2_ws/src/sensors/oakd/setup.py
FastSense/rosbot-ros2
c2d274ce179534fec5b2786a6f96b6d638019ac4
[ "MIT" ]
2
2021-07-05T14:50:09.000Z
2021-09-14T15:21:11.000Z
ros2_ws/src/sensors/oakd/setup.py
FastSense/metalbot
063c897a16129d9aa88c2c7c52bdf6547af894e4
[ "MIT" ]
null
null
null
from setuptools import setup package_name = 'oakd' setup( name=package_name, version='0.0.0', packages=[package_name], data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name, ['package.xml']), ], install_re...
26.37931
60
0.613072
7330c651d185a1e1c7e6080ecf47555b4acdd868
1,867
py
Python
test/dom/html/test_section.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
2
2018-05-28T23:01:20.000Z
2018-05-29T03:59:38.000Z
test/dom/html/test_section.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
test/dom/html/test_section.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
from util import testAttribute from util import error def test(): print 'testing source code syntax' from xml.dom.html import HTMLTableSectionElement from xml.dom import implementation doc = implementation.createHTMLDocument('Title') s = doc.createElement('TFOOT') #Row index and section row in...
23.935897
77
0.613283
7330c891e5e4dac6522d30bb4e4df32505099e8e
27,074
py
Python
tanker/context.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-12T08:35:10.000Z
2019-11-12T08:35:10.000Z
tanker/context.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-20T09:00:33.000Z
2019-11-20T09:00:33.000Z
tanker/context.py
bertrandchenal/tanker
b955311dc8f05f8bb3c0b391e169974e5c6a11b2
[ "0BSD" ]
1
2019-11-19T21:53:16.000Z
2019-11-19T21:53:16.000Z
from collections import defaultdict, OrderedDict from contextlib import contextmanager from itertools import groupby, chain from urllib.parse import urlparse, urlunparse import json import logging import os import re import sqlite3 import textwrap import threading try: import psycopg2 from psycopg2.pool import...
31.926887
80
0.545874
7330cb0c001ff626a21701f93f2c4bcd45fb910f
2,124
py
Python
twitchbot/util/task_util.py
max-susi/PythonTwitchBotFramework
09f9a8dbb56978550e61855c9809f6d7af0c3031
[ "MIT" ]
87
2018-05-22T18:30:42.000Z
2022-03-12T19:31:52.000Z
twitchbot/util/task_util.py
max-susi/PythonTwitchBotFramework
09f9a8dbb56978550e61855c9809f6d7af0c3031
[ "MIT" ]
32
2019-04-01T20:07:33.000Z
2022-01-14T03:00:58.000Z
twitchbot/util/task_util.py
max-susi/PythonTwitchBotFramework
09f9a8dbb56978550e61855c9809f6d7af0c3031
[ "MIT" ]
43
2018-08-29T04:59:47.000Z
2022-03-09T16:47:14.000Z
from asyncio import ensure_future, Task, sleep, get_event_loop, Future from typing import Dict, Coroutine, Optional, Tuple __all__ = ('active_tasks', 'add_task', 'get_task', 'task_running', 'stop_task', 'task_exist', 'stop_all_tasks', 'add_nameless_task') active_tasks: Dict[str, Task] = {} def add_task(name: str, c...
26.222222
132
0.682203
7330cbef691dad0515a2c8670d8caa84b597e83f
12,014
py
Python
sushichef.py
learningequality/sushi-chef-lets-read-asia
90b3deec7ec41c67317d6b669ca5b23ca6aeb656
[ "MIT" ]
null
null
null
sushichef.py
learningequality/sushi-chef-lets-read-asia
90b3deec7ec41c67317d6b669ca5b23ca6aeb656
[ "MIT" ]
null
null
null
sushichef.py
learningequality/sushi-chef-lets-read-asia
90b3deec7ec41c67317d6b669ca5b23ca6aeb656
[ "MIT" ]
1
2021-02-04T15:22:39.000Z
2021-02-04T15:22:39.000Z
#!/usr/bin/env python import csv import os import sys import json from urllib.parse import urlencode from requests.exceptions import HTTPError from ricecooker.utils import downloader, html_writer from ricecooker.chefs import SushiChef from ricecooker.classes import nodes, files, questions from ricecooker.config import ...
35.97006
126
0.665224
7330d7ec8ef76a6746ab7d00b4ac0c28f09d709a
1,068
py
Python
scripts/mockstreamgrid.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
1
2015-09-25T10:12:52.000Z
2015-09-25T10:12:52.000Z
scripts/mockstreamgrid.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
null
null
null
scripts/mockstreamgrid.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import os import sys # project from ophiuchus import RESULTSPATH from ophiuchus.experiments import MockStreamGrid, ExperimentRunner ExperimentRunner.parser.add_argument("--potential", de...
28.864865
90
0.745318
7330ee4a16a9e9f7d57f21b1a689c08240d86c56
3,529
py
Python
bluegraph/core/utils.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
25
2021-04-09T09:57:10.000Z
2022-02-09T14:26:55.000Z
bluegraph/core/utils.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
39
2021-04-09T08:23:28.000Z
2021-11-10T08:35:59.000Z
bluegraph/core/utils.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
3
2021-07-30T19:00:24.000Z
2022-03-16T21:01:48.000Z
# BlueGraph: unifying Python framework for graph analytics and co-occurrence analysis. # Copyright 2020-2021 Blue Brain Project / EPFL # 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 a...
28.232
87
0.603854
7330fb36e34ffaeb87feccb9130ce7befedb5ddd
3,559
py
Python
mmf/models/cnn_lstm.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
mmf/models/cnn_lstm.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
mmf/models/cnn_lstm.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
from copy import deepcopy import torch from torch import nn from mmf.common.registry import registry from mmf.models.base_model import BaseModel from mmf.modules.layers import ClassifierLayer, ConvNet, Flatten _TEMPLATES = { "question_vocab_size": "{}_text_vocab_size", "number_of_answers": "{}_num_final_outp...
35.59
99
0.650464