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
21fb838910b387e036debc06377ddbb19aef7d2e
15,484
py
Python
custom_components/aarlo/alarm_control_panel.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
custom_components/aarlo/alarm_control_panel.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
null
null
null
custom_components/aarlo/alarm_control_panel.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
""" Support for Arlo Alarm Control Panels. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/alarm_control_panel.arlo/ """ import logging import re import time from datetime import timedelta import homeassistant.helpers.config_validation as cv import homea...
33.95614
87
0.681155
21fba4d62f07b23fc946133203ad7818bc55d966
682
py
Python
examples/script/run_hook.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
null
null
null
examples/script/run_hook.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
null
null
null
examples/script/run_hook.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
1
2021-12-26T12:57:01.000Z
2021-12-26T12:57:01.000Z
#!/usr/bin/env python import sys from manticore import Manticore ''' Demonstrates the ability to set a basic hook on a specific program counter and the ability to read from memory. ''' if __name__ == '__main__': path = sys.argv[1] pc = int(sys.argv[2], 0) m = Manticore(path) # Trigger an event when...
21.3125
78
0.646628
21fbcb929911a995b3f6095877a796a92d8d46dc
2,193
py
Python
src/dsa/misc/utils/class_generator.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
src/dsa/misc/utils/class_generator.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
src/dsa/misc/utils/class_generator.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
import re from os import path def preprocess_file(class_name='MyClass', file_name=None, property_name=None): if file_name is None: file_name = class_name.lower() + '.py' found = [False] * 3 class_info = { 'name': class_name, 'definition': 'class {}:'.format(class_name) } if path.exists(fil...
27.074074
78
0.679891
21fbd2ea77823c82c10ff735188fb13215d1ff13
2,614
py
Python
wmtmetadata/tests/test_metadata.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
null
null
null
wmtmetadata/tests/test_metadata.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
10
2016-09-27T21:13:22.000Z
2018-10-31T19:42:32.000Z
wmtmetadata/tests/test_metadata.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
null
null
null
"""Tests for classes in the metadata module.""" import os import filecmp from wmtmetadata.config import ConfigFromFile from wmtmetadata.metadata import (Files, Info, Uses, Provides, Parameters) from . import data_dir host = 'siwenna.colorado.edu' known_config_file = os.path.join(dat...
24.429907
71
0.679419
21fc0c39181852cb2f34401041ff0bbd2582b89c
2,761
py
Python
modules/virustotal.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
modules/virustotal.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
modules/virustotal.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
import json import requests import os import hashlib import modules.vars as horsy_vars from rich import print def add_to_cfg(key): with open(horsy_vars.horsypath + 'config.cfg') as f: config = json.load(f) config['vt-key'] = key with open(horsy_vars.horsypath + 'config.cfg', 'w') as f: j...
32.869048
99
0.60268
21fc134f239c3d66d1090182d56ed3f663474549
3,285
py
Python
lian/redis.py
catroll/lian
405fd0c8c4ce8557609bf595431284a07e7b443e
[ "Apache-2.0" ]
null
null
null
lian/redis.py
catroll/lian
405fd0c8c4ce8557609bf595431284a07e7b443e
[ "Apache-2.0" ]
null
null
null
lian/redis.py
catroll/lian
405fd0c8c4ce8557609bf595431284a07e7b443e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import logging import threading import time import redis REDIS_HOST = 'localhost' REDIS_PORT = 6379 REDIS_DB = '0' REDIS_CACHE_PERIOD = 60 * 5 __all__ = 'Redis', LOG = logging.getLogger(__name__) class StrictRedisWrapper(redis.StrictR...
28.318966
103
0.590868
21fc167ca66e0fa51470941773b00fc8c7639d78
11,669
py
Python
tests/parsers/test_cell_parsers.py
s-weigand/flake8-nb
39c6cf6158cc231c420ff783a550b09ee5f7e4c7
[ "Apache-2.0" ]
23
2019-12-05T06:02:43.000Z
2022-03-11T18:17:19.000Z
tests/parsers/test_cell_parsers.py
s-weigand/flake8-nb
39c6cf6158cc231c420ff783a550b09ee5f7e4c7
[ "Apache-2.0" ]
191
2019-10-04T06:22:14.000Z
2022-03-29T04:02:28.000Z
tests/parsers/test_cell_parsers.py
s-weigand/flake8-nb
39c6cf6158cc231c420ff783a550b09ee5f7e4c7
[ "Apache-2.0" ]
6
2020-06-13T13:35:15.000Z
2021-11-28T19:50:12.000Z
import warnings from typing import Dict from typing import List import pytest from flake8_nb.parsers import CellId from flake8_nb.parsers.cell_parsers import InvalidFlake8TagWarning from flake8_nb.parsers.cell_parsers import extract_flake8_inline_tags from flake8_nb.parsers.cell_parsers import extract_flake8_tags fro...
35.685015
98
0.497215
21fc1a8eb440e4bf4a7ae6c3b64bddd01fa01f08
148,720
py
Python
SCRAPE/Lib/site-packages/twisted/internet/test/test_endpoints.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/internet/test/test_endpoints.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/internet/test/test_endpoints.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test the C{I...Endpoint} implementations that wrap the L{IReactorTCP}, L{IReactorSSL}, and L{IReactorUNIX} interfaces found in L{twisted.internet.endpoints}. """ from errno import EPERM from socket import AF_INET, AF_INET6, IPPROTO_TCP, SOCK_...
34.658588
88
0.637829
21fc1d165f8b4ed4738f51672495286f41715014
1,721
py
Python
src/utils/Logger.py
kikei/asin-jan-converter
311f9a4660d3a3da6aa8114094b15d1114223bc1
[ "MIT" ]
null
null
null
src/utils/Logger.py
kikei/asin-jan-converter
311f9a4660d3a3da6aa8114094b15d1114223bc1
[ "MIT" ]
null
null
null
src/utils/Logger.py
kikei/asin-jan-converter
311f9a4660d3a3da6aa8114094b15d1114223bc1
[ "MIT" ]
null
null
null
import logging import os #logging.getLogger('requests').setLevel(logging.ERROR) LOG_FORMAT_DEFAULT = '%(asctime)s [%(levelname)s] %(message)s' def get_logger(base_level=logging.WARN, stream_level=None, file_level=logging.INFO, file_path=None, format=None): ...
29.672414
78
0.704823
21fc2195af6a1113e1ff43ce0326e3bf94524232
3,992
py
Python
alipay/aop/api/request/AntMerchantExpandSavingPassQueryRequest.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/AntMerchantExpandSavingPassQueryRequest.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/AntMerchantExpandSavingPassQueryRequest.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.AntMerchantExpandSavingPassQueryModel import AntMerchantExpandSavingPassQueryModel class AntMerchantExpandSavingPassQueryRequest(obj...
27.531034
148
0.646293
21fc2ac14204ee5c333680fde5255523b7350872
2,897
py
Python
chapter-4/social-network_step_4/app/website/consumers.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-4/social-network_step_4/app/website/consumers.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-4/social-network_step_4/app/website/consumers.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
# app/website/consumers.py from channels.generic.websocket import JsonWebsocketConsumer from django.template.loader import render_to_string from .models import Message from asgiref.sync import async_to_sync import math class SocialNetworkConsumer(JsonWebsocketConsumer): room_name = 'broadcast' max_messages_p...
35.765432
90
0.593718
21fc56540b6a36e2c88e8b0ffce6bff119ef585d
2,701
py
Python
bouser_ezekiel/interfaces.py
MarsStirner/bouser.ezekiel
e03a647100451e27453babba0839aa35a2cbbb37
[ "0BSD" ]
null
null
null
bouser_ezekiel/interfaces.py
MarsStirner/bouser.ezekiel
e03a647100451e27453babba0839aa35a2cbbb37
[ "0BSD" ]
null
null
null
bouser_ezekiel/interfaces.py
MarsStirner/bouser.ezekiel
e03a647100451e27453babba0839aa35a2cbbb37
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from zope.interface import Interface from zope.interface.interface import Attribute __author__ = 'viruzzz-kun' __created__ = '13.09.2014' class ILockService(Interface): def acquire_lock(self, object_id, locker): """ Acquire Lock until it is explicitly...
23.284483
65
0.604221
21fc81f745e48213f997acb1d20314cc0c495911
19,039
py
Python
gaia_project/move_action.py
yogurt-company/gaia_ai
1885059e99a96f45e6cc082b87c189829c4eaed9
[ "MIT" ]
null
null
null
gaia_project/move_action.py
yogurt-company/gaia_ai
1885059e99a96f45e6cc082b87c189829c4eaed9
[ "MIT" ]
null
null
null
gaia_project/move_action.py
yogurt-company/gaia_ai
1885059e99a96f45e6cc082b87c189829c4eaed9
[ "MIT" ]
null
null
null
from traits.api import (HasPrivateTraits, Property, Enum, Int, Tuple, List, Instance, Dict, Str, Bool, Either) from .tile import BonusTile, FederationTile, TechTile, AdvancedTechTile from .effect import Effect class Interaction(HasPrivateTraits): action_id = Either(Str, None) desc = Prope...
30.26868
79
0.602343
21fc91d60b7cfaec1a1c0c3c621c88b47e613859
1,012
py
Python
dotmatrix/visualization/color.py
alvinlao/dot-matrix-map
32925d5ede38c634ab53b966d779786366a1855c
[ "MIT" ]
null
null
null
dotmatrix/visualization/color.py
alvinlao/dot-matrix-map
32925d5ede38c634ab53b966d779786366a1855c
[ "MIT" ]
null
null
null
dotmatrix/visualization/color.py
alvinlao/dot-matrix-map
32925d5ede38c634ab53b966d779786366a1855c
[ "MIT" ]
null
null
null
import random def background_color(config): return _normalize_rgb(config['background_color']) def dot_color(config, value, max_value): if value is None: return _color_noise( _normalize_rgb(_choose(config['water'])), 0) scale = value / max_value quantiles = config['qu...
19.843137
69
0.624506
21fca79fa02c480b6cc7b86c2987d4f09efa8a4b
1,551
py
Python
tests/integration/customer/test_notification.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
tests/integration/customer/test_notification.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
tests/integration/customer/test_notification.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from oscar.apps.customer.models import Notification from oscar.apps.customer.notifications import services from oscar.core.compat import get_user_model from oscar.test.factories import UserFactory User = get_user_model() class TestANewNotification(TestCase): def set...
30.411765
75
0.673759
21fcb4798db38725d82bbc174c1a79e019be3c43
3,111
py
Python
tests/components/flunearyou/test_config_flow.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
tests/components/flunearyou/test_config_flow.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
tests/components/flunearyou/test_config_flow.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Define tests for the flunearyou config flow.""" from asynctest import patch from pyflunearyou.errors import FluNearYouError from homeassistant import data_entry_flow from homeassistant.components.flunearyou import DOMAIN from homeassistant.config_entries import SOURCE_IMPORT, SOURCE_USER from homeassistant.const im...
35.352273
88
0.68306
21fcc15cd40d8302f1dffdb659da4db528febd08
1,243
py
Python
src/transform/__init__.py
mondrasovic/homography_ranking
c36a7b621d386f4a31d2926d4f5a9707e13d7847
[ "MIT" ]
1
2022-03-16T10:56:41.000Z
2022-03-16T10:56:41.000Z
src/transform/__init__.py
mondrasovic/homography_ranking
c36a7b621d386f4a31d2926d4f5a9707e13d7847
[ "MIT" ]
null
null
null
src/transform/__init__.py
mondrasovic/homography_ranking
c36a7b621d386f4a31d2926d4f5a9707e13d7847
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Milan Ondrasovic <milan.ondrasovic@gmail.com> # # MIT License # # Copyright (c) 2021 Milan Ondrašovič # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"...
46.037037
81
0.751408
21fcc274310018d020005605c94b834c4d6814d2
717
py
Python
data/transcoder_evaluation_gfg/python/SUM_SEQUENCE_2_22_222.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/SUM_SEQUENCE_2_22_222.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/SUM_SEQUENCE_2_22_222.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import math def f_gold ( n ) : return 0.0246 * ( math.pow ( 10 , n ) - 1 - ( 9 * n ) ) #TOFILL if __name__ == '__main__'...
22.40625
118
0.548117
21fcc65e59175dbc7110f05f6e843c7f50152a01
667
py
Python
migrations/versions/75b32f2bcd87_.py
MohmedH/OpulentGroupDashboard
a071196da0146125b627894178125c1739dfbd7d
[ "MIT" ]
1
2020-12-10T21:11:44.000Z
2020-12-10T21:11:44.000Z
migrations/versions/75b32f2bcd87_.py
MohmedH/OpulentGroupDashboard
a071196da0146125b627894178125c1739dfbd7d
[ "MIT" ]
null
null
null
migrations/versions/75b32f2bcd87_.py
MohmedH/OpulentGroupDashboard
a071196da0146125b627894178125c1739dfbd7d
[ "MIT" ]
null
null
null
"""empty message Revision ID: 75b32f2bcd87 Revises: 98118f485a60 Create Date: 2020-07-13 00:05:26.156797 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '75b32f2bcd87' down_revision = '98118f485a60' branch_labels = None depends_on = None def upgrade(): # ...
23
83
0.697151
21fcf05d47214ad0e612915f8db484573693b8a6
372
py
Python
thgsp/utils/__init__.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
22
2021-01-13T05:15:38.000Z
2022-01-17T01:37:29.000Z
thgsp/utils/__init__.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
2
2021-03-26T04:36:39.000Z
2022-01-11T16:17:56.000Z
thgsp/utils/__init__.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
2
2021-01-13T05:15:43.000Z
2022-01-01T12:51:32.000Z
from .metrics import snr, mse from .sparse_utils import consecutive_spmv, eye, matrix_power, absv, absv_, multivariate_normal from .sparse_utils import img2graph __all__ = ['snr', 'mse', 'img2graph', 'consecutive_spmv', 'eye', 'matrix_power', 'absv', ...
26.571429
95
0.580645
21fcff47f01fa23b46a263c9d21c05e4c589cfa3
3,102
py
Python
conans/client/rest/uploader_downloader.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
conans/client/rest/uploader_downloader.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
conans/client/rest/uploader_downloader.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
from conans.errors import ConanException class Uploader(object): def __init__(self, requester, output, verify, chunk_size=1000): self.chunk_size = chunk_size self.output = output self.requester = requester self.verify = verify def post(self, url, content): self.output...
30.712871
94
0.618956
21fd0b6044bc6f9beb447e8bef0e29de3d4578ef
2,493
py
Python
office365/sharepoint/listitems/caml/camlQuery.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/sharepoint/listitems/caml/camlQuery.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
office365/sharepoint/listitems/caml/camlQuery.py
domdinicola/Office365-REST-Python-Client
c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0
[ "MIT" ]
null
null
null
from office365.runtime.client_value import ClientValue from office365.sharepoint.views.viewScope import ViewScope class CamlQuery(ClientValue): def __init__(self, datesInUtc=True, viewXml=None, listItemCollectionPosition=None, folderServerRelativeUrl=None, allowIncrementalResults=True): ...
40.868852
117
0.691937
21fd1bd1c6c17e50b60514275a902cfbe95e49b5
13,625
py
Python
utils/tracker_basic.py
mwesleyj/geo-deep-learning
9bb8942156fc1a19f8f5ac911e237daa30740ca9
[ "MIT" ]
null
null
null
utils/tracker_basic.py
mwesleyj/geo-deep-learning
9bb8942156fc1a19f8f5ac911e237daa30740ca9
[ "MIT" ]
null
null
null
utils/tracker_basic.py
mwesleyj/geo-deep-learning
9bb8942156fc1a19f8f5ac911e237daa30740ca9
[ "MIT" ]
null
null
null
import time import shutil from datetime import datetime from pathlib import Path try: import ashjdfioastkjl from rich.table import Table, Column from rich.progress import Task, _TrackThread, Progress, BarColumn, TextColumn, TimeElapsedColumn, \ TimeRemainingColumn, SpinnerColumn from rich.panel ...
41.666667
170
0.480807
21fd6af8eb74787df7d5a499667c4d2675abcd00
1,250
py
Python
Basics/E05_Drawing/E03_Marker.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
Basics/E05_Drawing/E03_Marker.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
Basics/E05_Drawing/E03_Marker.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # www.pagebot.io # Licensed under MIT conditions # # ----------------------------------------------------------------------------- # # E03_Marke...
29.069767
79
0.612
21fd726106abe5ea6518c8b908f9d8dbbac9132b
27,149
py
Python
salt/utils/process.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
null
null
null
salt/utils/process.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
null
null
null
salt/utils/process.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import python libs from __future__ import absolute_import, with_statement import copy import os import sys import time import errno import types import signal import logging import threading import contextlib import subprocess import multiprocessing import multiprocessing.util # Import salt...
38.400283
106
0.570481
21fdb26e26a1c5198d948f8299e9b447bb1549ca
1,297
py
Python
checkout/models.py
Legaeldan/siobhan-mcgowan-photography
76ad93baf9792f194a48b7e3d42d274f35152fc0
[ "W3C" ]
null
null
null
checkout/models.py
Legaeldan/siobhan-mcgowan-photography
76ad93baf9792f194a48b7e3d42d274f35152fc0
[ "W3C" ]
4
2021-06-08T21:02:03.000Z
2022-01-13T02:21:06.000Z
checkout/models.py
Legaeldan/siobhan-mcgowan-photography
76ad93baf9792f194a48b7e3d42d274f35152fc0
[ "W3C" ]
1
2020-03-31T14:39:06.000Z
2020-03-31T14:39:06.000Z
from django.db import models from photos.models import Photo # Create your models here. class Order(models.Model): """ Defines data for the order table, including billing details. """ full_name = models.CharField(max_length=50, blank=False) phone_number = models.CharField(max_length=20, blank=False...
36.027778
93
0.697764
21fdbb50dcafd675d3bf64d2af9ac288f09f331c
3,884
py
Python
tests/test_util.py
ModelEngineering/controlSBML
64587a7b22961a52aaf2b4e4a04fd1a0e3bc7a6b
[ "MIT" ]
null
null
null
tests/test_util.py
ModelEngineering/controlSBML
64587a7b22961a52aaf2b4e4a04fd1a0e3bc7a6b
[ "MIT" ]
null
null
null
tests/test_util.py
ModelEngineering/controlSBML
64587a7b22961a52aaf2b4e4a04fd1a0e3bc7a6b
[ "MIT" ]
null
null
null
from controlSBML import util from controlSBML.timeseries import Timeseries import controlSBML.constants as cn import controlSBML as ctl import control import pandas as pd import numpy as np import tellurium as te import unittest IGNORE_TEST = False IS_PLOT = False SIZE = 10 if IS_PLOT: import matplotlib matp...
30.108527
76
0.604531
21fe2fc0d7145bd8c15170b59c1944d896e56f40
25,538
py
Python
openapi_client/api_client.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/api_client.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/api_client.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import atexit import...
39.349769
97
0.550239
21fe352a6cfb4fd777459313f97adf7155a06ae2
4,025
py
Python
laplacian_variational_autoencoder.py
epierson9/multiphenotype_methods
0cd350628c5e7a5dec9d50d160003a4db9062e6e
[ "MIT" ]
4
2017-11-09T23:00:07.000Z
2021-03-30T13:37:37.000Z
laplacian_variational_autoencoder.py
epierson9/multiphenotype_methods
0cd350628c5e7a5dec9d50d160003a4db9062e6e
[ "MIT" ]
1
2018-03-21T23:53:41.000Z
2018-03-21T23:53:41.000Z
laplacian_variational_autoencoder.py
epierson9/multiphenotype_methods
0cd350628c5e7a5dec9d50d160003a4db9062e6e
[ "MIT" ]
4
2017-11-21T21:05:07.000Z
2020-06-06T00:29:37.000Z
import numpy as np from multiphenotype_utils import (get_continuous_features_as_matrix, add_id, remove_id_and_get_mat, partition_dataframe_into_binary_and_continuous, divide_idxs_into_batches) import pandas as pd import tensorflow as tf from dimreducer import DimReducer from general_autoencoder import GeneralAuto...
49.691358
169
0.605217
21fe87f00b3b9cfc900acc3df55dde648f193b34
319
py
Python
xos/synchronizers/ec2/deleters/network_instance_deleter.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/ec2/deleters/network_instance_deleter.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
5
2020-06-05T17:47:15.000Z
2021-09-23T23:21:27.000Z
xos/synchronizers/ec2/deleters/network_instance_deleter.py
pan2za/xos
c2a4da2ccaa12360b2718be303b247866aefdfe6
[ "Apache-2.0" ]
null
null
null
from core.models import NetworkInstance from synchronizers.base.deleter import Deleter class NetworkInstanceDeleter(Deleter): model='NetworkInstance' def call(self, pk): network_instance = NetworkInstances.objects.get(pk=pk) # handle openstack delete network_instance.delete()
22.785714
62
0.727273
21fe8bcc02566bd2f7978509900cb979e95d9976
1,040
py
Python
srfnef/data/image.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/data/image.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/data/image.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ''' @author: Minghao Guo @contact: mh.guo0111@gmail.com @software: srf_ct @file: image.py @date: 3/20/2019 @desc: ''' from srfnef import nef_class, List, Any from srfnef.ops.common.property_mixins import ShapePropertyMixin, UnitSizePropertyMixin, \ CentralSlicesPropertyMixin, CentralProfilesPrope...
27.368421
90
0.716346
21fe9f0d00a3538d8d694fd437cdc0ef1d4fe655
3,385
py
Python
test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_auto_rest_paging_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_auto_rest_paging_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_auto_rest_paging_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# 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 may ...
38.033708
102
0.659084
21fec81cb4751f6de0ef0ae00ec182d70d79e44a
24,864
py
Python
data/hollibot.py
hackersoares/hsconsulta_bot
5c3e5a619301969bdd5e8324d4296e70aae176ea
[ "MIT" ]
1
2021-03-26T00:22:51.000Z
2021-03-26T00:22:51.000Z
data/hollibot.py
hackersoares/hsconsulta_bot
5c3e5a619301969bdd5e8324d4296e70aae176ea
[ "MIT" ]
null
null
null
data/hollibot.py
hackersoares/hsconsulta_bot
5c3e5a619301969bdd5e8324d4296e70aae176ea
[ "MIT" ]
1
2021-05-22T03:55:20.000Z
2021-05-22T03:55:20.000Z
import requests #&key=122345 def consultar(message,bot,mode): not_found=0 if mode == '1': try: print('Consulta por CPF requisitada por {} {}'.format(message.chat.first_name,message.chat.last_name)) cmd = (message.text).replace('/cpf','').replace('/CPF','') api = requests.get('https://hollibot.com/0006hacke...
46.38806
217
0.599019
21fed3af1a0b1fc3de67fb73bdf40a1aac4ad28d
5,050
py
Python
experiments/ashvin/icml2020/point/offpolicy/mc_noisy_expert_fixed1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/point/offpolicy/mc_noisy_expert_fixed1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/point/offpolicy/mc_noisy_expert_fixed1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies im...
31.761006
89
0.536238
21fefd32ad28a04585a5986764189c2643f01374
20,456
py
Python
ibllib/tests/test_io.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
38
2018-08-07T21:55:29.000Z
2022-03-21T14:49:03.000Z
ibllib/tests/test_io.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
207
2018-07-25T15:10:48.000Z
2022-03-08T13:23:08.000Z
ibllib/tests/test_io.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
35
2018-09-04T14:49:56.000Z
2022-01-06T21:17:51.000Z
import unittest from unittest.mock import patch import os import uuid import tempfile from pathlib import Path import sys import numpy as np from one.api import ONE from iblutil.io import params from ibllib.tests import TEST_DB from ibllib.io import flags, misc, globus, video import ibllib.io.raw_data_loaders as raw ...
44.373102
99
0.627542
21ff44097ec66ecc708ab3f5ec8206d946858200
3,187
py
Python
DBFace/main.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
DBFace/main.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
DBFace/main.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import common import numpy as np import torch import torch.nn.functional as F import torch.nn as nn import cv2 from model.DBFace import DBFace HAS_CUDA = torch.cuda.is_available() print(f"HAS_CUDA = {HAS_CUDA}") def nms(objs, iou=0.5): if objs is None or len(objs) <= 1: return objs objs = sorted(o...
23.962406
92
0.589583
21ff6adcad80272c666ecbed6cc1985d201db62a
5,111
py
Python
tests/test_dbcb.py
stat4jason/DBCV
db7345c45ab7d33ea500778e5c9048fd9f7d3156
[ "MIT" ]
73
2017-03-19T21:19:09.000Z
2022-02-06T12:00:01.000Z
tests/test_dbcb.py
stat4jason/DBCV
db7345c45ab7d33ea500778e5c9048fd9f7d3156
[ "MIT" ]
15
2017-03-20T11:35:24.000Z
2022-03-25T12:11:08.000Z
tests/test_dbcb.py
stat4jason/DBCV
db7345c45ab7d33ea500778e5c9048fd9f7d3156
[ "MIT" ]
33
2017-05-04T00:25:41.000Z
2022-03-23T09:41:00.000Z
from DBCV import DBCV from sklearn import datasets import pytest from sklearn.cluster import KMeans import hdbscan from scipy.spatial.distance import euclidean import numpy as np @pytest.fixture def data(): n_samples = 60 noisy_moons = datasets.make_moons(n_samples=n_samples, noise=.05, ...
36.248227
76
0.461554
21ff74517d54af667b1305521330b8c377f0692d
702
py
Python
test/base.py
jgoldfar/bibserver
ccf0e60f1983bb5db4c2594bbd8187139556be90
[ "MIT" ]
47
2015-01-07T06:53:22.000Z
2021-02-27T08:48:43.000Z
test/base.py
dartar/bibserver
0640592200476bd97dfe9678173d30759bdbce30
[ "OML" ]
10
2015-02-08T12:48:27.000Z
2018-11-08T02:47:19.000Z
test/base.py
dartar/bibserver
0640592200476bd97dfe9678173d30759bdbce30
[ "OML" ]
21
2015-01-16T06:31:43.000Z
2021-02-27T08:49:18.000Z
import os import json from bibserver import dao from bibserver.config import config TESTDB = 'bibserver-test' here = os.path.dirname(__file__) fixtures_path = os.path.join(here, 'fixtures.json') fixtures = json.load(open(fixtures_path)) config["ELASTIC_SEARCH_DB"] = TESTDB dao.init_db() class Fixtures(object): ...
22.645161
69
0.685185
21ffa2f401932cb7f8afd4463d8cb0d38fa37c05
3,204
py
Python
tests/test_project/settings.py
schulmenueplaner-de/django-autotranslate
5556eacd063cc3a2a1822a4a4e00a56e04c45c3f
[ "MIT" ]
62
2015-03-09T05:56:57.000Z
2022-02-20T12:49:28.000Z
tests/test_project/settings.py
schulmenueplaner-de/django-autotranslate
5556eacd063cc3a2a1822a4a4e00a56e04c45c3f
[ "MIT" ]
32
2015-06-09T17:38:40.000Z
2021-11-22T04:41:26.000Z
tests/test_project/settings.py
schulmenueplaner-de/django-autotranslate
5556eacd063cc3a2a1822a4a4e00a56e04c45c3f
[ "MIT" ]
38
2015-03-09T11:53:43.000Z
2022-03-01T00:40:35.000Z
""" Django settings for test_project project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os...
25.83871
91
0.700687
21ffa5dade4f84eb7b20b76c5ffd67385901eb63
10,770
py
Python
analysis/optimus5/pytorch-saliency/sal/utils/resnet_sequence_dna.py
willshi88/scrambler
fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3
[ "MIT" ]
19
2021-04-30T04:12:58.000Z
2022-03-07T19:09:32.000Z
analysis/optimus5/pytorch-saliency/sal/utils/resnet_sequence_dna.py
willshi88/scrambler
fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3
[ "MIT" ]
4
2021-07-02T15:07:27.000Z
2021-08-01T12:41:28.000Z
analysis/optimus5/pytorch-saliency/sal/utils/resnet_sequence_dna.py
willshi88/scrambler
fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3
[ "MIT" ]
4
2021-06-28T09:41:01.000Z
2022-02-28T09:13:29.000Z
import torch import torch.nn as nn import os __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', 'resnext50_32x4d', 'resnext101_32x8d'] def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1): """3x3 convolution with padding""" return nn.Conv2d(in_planes, o...
37.395833
111
0.607985
1d00229f35d8a7a9cf44820f92353bdcc9f38311
1,819
py
Python
PriceCutdown/dmiddlewares/rotate_useragent.py
fioan89/Price-Cutdown
eca90719f8b7016011cd2c7cdcb3dec4701adbc5
[ "MIT" ]
null
null
null
PriceCutdown/dmiddlewares/rotate_useragent.py
fioan89/Price-Cutdown
eca90719f8b7016011cd2c7cdcb3dec4701adbc5
[ "MIT" ]
null
null
null
PriceCutdown/dmiddlewares/rotate_useragent.py
fioan89/Price-Cutdown
eca90719f8b7016011cd2c7cdcb3dec4701adbc5
[ "MIT" ]
null
null
null
__author__ = 'fauri' import random from scrapy.downloadermiddlewares.useragent import UserAgentMiddleware # http://www.useragentstring.com/pages/useragentstring.php USER_AGENTS = [ 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1', 'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101...
58.677419
133
0.713029
1d003da27c26ed2536609d176135f13781bfa96a
7,923
py
Python
pyhdx/web/transforms.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
15
2020-10-14T14:15:54.000Z
2022-03-31T17:55:36.000Z
pyhdx/web/transforms.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
145
2020-10-01T13:32:20.000Z
2022-03-31T08:31:47.000Z
pyhdx/web/transforms.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
3
2021-03-03T10:57:05.000Z
2021-05-24T09:11:49.000Z
from lumen.transforms import Transform import param from matplotlib.colors import Colormap, Normalize from pyhdx.support import rgb_to_hex, autowrap import itertools import pandas as pd import numpy as np import panel as pn class WebAppTransform(param.Parameterized): #todo subclass from Transform? updated = par...
37.372642
125
0.670327
1d003f0f57d459ed2d23bf79e68a94ee06469a99
1,159
py
Python
compress.py
panmari/seeing3d
0a73576c70392276065094c96185e5ef53d6c2c1
[ "MIT" ]
56
2015-05-28T17:30:30.000Z
2022-01-25T07:15:40.000Z
compress.py
panmari/seeing3d
0a73576c70392276065094c96185e5ef53d6c2c1
[ "MIT" ]
4
2015-02-25T17:36:01.000Z
2019-10-16T07:43:36.000Z
compress.py
dimatura/seeing3d
0a73576c70392276065094c96185e5ef53d6c2c1
[ "MIT" ]
14
2015-02-20T19:48:14.000Z
2020-07-10T06:41:12.000Z
#!/usr/bin/env python """ compress models. alternative: use gzip `find -iname *.dae` """ import os import sys import subprocess import pprint import argparse import path parser = argparse.ArgumentParser() parser.add_argument('model_dir', nargs='+', action='store') parser.add_argument('--dae', action='store_true') pa...
24.659574
59
0.658326
1d006b2d39900b01aa4eefe2e05fb77c756fd0ca
896
py
Python
drawing/drawer/plane/utils/vertice.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
drawing/drawer/plane/utils/vertice.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
drawing/drawer/plane/utils/vertice.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
""" Module for vertice methods relative to plane drawing """ import bmesh from mathutils import Vector import utils from model import CartographyGroup, CartographyCategory from ..model import CartographyPlaneContext # METHODS ===================================================================== def create( ...
28
88
0.678571
1d0072d1074d5a988f39e4834744d8cab6ef5b3e
18,216
py
Python
pyquil/quilatom.py
ecpeterson/pyquil
b0548d5c5f4ee75d4bcd301202a872a9152d212a
[ "Apache-2.0" ]
2
2019-08-02T16:10:20.000Z
2019-08-02T16:10:30.000Z
pyquil/quilatom.py
ecpeterson/pyquil
b0548d5c5f4ee75d4bcd301202a872a9152d212a
[ "Apache-2.0" ]
2
2019-06-02T03:16:24.000Z
2019-06-04T05:16:06.000Z
pyquil/quilatom.py
ecpeterson/pyquil
b0548d5c5f4ee75d4bcd301202a872a9152d212a
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright 2017-2018 Rigetti Computing # # 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...
28.822785
115
0.618522
1d007a8002cc0a7e09f71953ab167c780c7bcddd
4,205
py
Python
rally/plugins/openstack/context/vm/image_command_customizer.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2018-01-01T00:43:41.000Z
2018-01-01T00:43:41.000Z
rally/plugins/openstack/context/vm/image_command_customizer.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/vm/image_command_customizer.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2020-06-05T10:06:37.000Z
2020-06-05T10:06:37.000Z
# Copyright 2015: Mirantis Inc. # 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 applicab...
38.227273
77
0.550535
1d0087e2180b5b82ed3bdb108ca7130bebecaec1
9,689
py
Python
tests/unit/fake_data_root/rabbitmq/var/lib/juju/agents/unit-rabbitmq-server-0/charm/hooks/rabbitmq_context.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
6
2021-10-01T19:46:14.000Z
2022-03-31T17:05:08.000Z
tests/unit/fake_data_root/rabbitmq/var/lib/juju/agents/unit-rabbitmq-server-0/charm/hooks/rabbitmq_context.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
111
2021-10-01T18:18:17.000Z
2022-03-29T12:23:20.000Z
tests/unit/fake_data_root/rabbitmq/var/lib/juju/agents/unit-rabbitmq-server-0/charm/hooks/rabbitmq_context.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
10
2021-09-29T14:47:54.000Z
2022-03-18T14:52:16.000Z
# Copyright 2016 Canonical Ltd # # 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 agreed to in writing, s...
33.068259
78
0.592631
1d00902c505a246deb918d840a0bb3f047f00139
2,037
py
Python
HW2/q3.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
HW2/q3.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
HW2/q3.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt class RandomSierpinskiTriangle: def __init__(self, num_points, time=0): n = max(num_points, np.power(3, time)) self.num_points = num_points self.width = np.sqrt(n * 4 / np.sqrt(3)) self.height = np.sqrt(3) / 2 * self.width ...
36.375
123
0.619539
1d00bc945ed7ae70cbd4696b7811a913f5d15769
1,870
py
Python
sunpy/image/util.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/image/util.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/image/util.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
""" Helper functions for image manipulation """ from __future__ import absolute_import, division import numpy as np from skimage.util import img_as_float __all__ = ['to_norm', 'un_norm'] def to_norm(arr): """ Helper function to normalise/scale an array. This is needed for example for scikit-image which...
24.933333
79
0.586096
1d00c24c0bedb1aa56536508258ecf81c5627f2c
11,467
py
Python
tests/test_typeinfer_with_real_libs.py
StarWatch27/Scalpel
8853e6e84f318f3cfeda0e03d274748b2fbe30fa
[ "Apache-2.0" ]
1
2022-01-12T06:00:32.000Z
2022-01-12T06:00:32.000Z
tests/test_typeinfer_with_real_libs.py
StarWatch27/Scalpel
8853e6e84f318f3cfeda0e03d274748b2fbe30fa
[ "Apache-2.0" ]
null
null
null
tests/test_typeinfer_with_real_libs.py
StarWatch27/Scalpel
8853e6e84f318f3cfeda0e03d274748b2fbe30fa
[ "Apache-2.0" ]
null
null
null
import ast import tokenize import os from scalpel.typeinfer.typeinfer import TypeInference path_to_current_file = os.path.realpath(__file__) current_directory = os.path.split(path_to_current_file)[0] def parse_file(filename): with tokenize.open(filename) as f: return ast.parse(f.read(), filename=filenam...
42.947566
96
0.710212
1d0100559977a088ee01d8cf2f1a6b205cfa2151
16,316
py
Python
wumpus/wumpus_planners.py
siddharthjoshi01/Wumpus-Propositional-Logic-Agent-Project
5067fe01f395f777d0ba7ac93fb7a290fcacb29e
[ "MIT" ]
null
null
null
wumpus/wumpus_planners.py
siddharthjoshi01/Wumpus-Propositional-Logic-Agent-Project
5067fe01f395f777d0ba7ac93fb7a290fcacb29e
[ "MIT" ]
null
null
null
wumpus/wumpus_planners.py
siddharthjoshi01/Wumpus-Propositional-Logic-Agent-Project
5067fe01f395f777d0ba7ac93fb7a290fcacb29e
[ "MIT" ]
null
null
null
# wumpus_planners.py # ------------------ # Licensing Information: # Please DO NOT DISTRIBUTE OR PUBLISH solutions to this project. # You are free to use and extend these projects for EDUCATIONAL PURPOSES ONLY. # The Hunt The Wumpus AI project was developed at University of Arizona # by Clay Morrison (clayton@sista.ari...
38.755344
95
0.5095
1d0102c3c9ded0d43ebdc183ca8103b0567b30c4
1,102
py
Python
Datasets/__meta__/state_abbrs.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
Datasets/__meta__/state_abbrs.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
Datasets/__meta__/state_abbrs.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
state_abbrs = {'Alaska': 'AK', 'Alabama': 'AL', 'Arkansas': 'AR', 'American Samoa': 'AS', 'Arizona': 'AZ', 'California': 'CA', 'Colorado': 'CO', 'Connecticut': 'CT', 'District of Columbia': 'DC', 'Delaware': 'DE', 'Florida': 'FL', 'Georgia': 'GA', 'Guam': 'GU', 'Hawaii': 'HI', 'Iowa': 'IA', 'Idaho': 'ID', 'Illinois': '...
551
1,101
0.567151
1d0134169152489532122dec4649afafe7e318d5
117,691
py
Python
koku/masu/database/ocp_report_db_accessor.py
pavanyadavalli/koku
88e2d679148d0e4735c5018faada638f73d4dc5c
[ "Apache-2.0" ]
2
2022-01-12T03:42:39.000Z
2022-01-12T03:42:40.000Z
koku/masu/database/ocp_report_db_accessor.py
pavanyadavalli/koku
88e2d679148d0e4735c5018faada638f73d4dc5c
[ "Apache-2.0" ]
null
null
null
koku/masu/database/ocp_report_db_accessor.py
pavanyadavalli/koku
88e2d679148d0e4735c5018faada638f73d4dc5c
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """Database accessor for OCP report data.""" import copy import datetime import json import logging import pkgutil import uuid from decimal import Decimal import pytz from dateutil.parser import parse from dateutil.rrule import MONTHLY from dateut...
51.709578
119
0.582313
1d0146cfe5bc4a42c0b50fa932ba826408646e29
21,779
py
Python
appengine/monorail/framework/test/framework_helpers_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/framework/test/framework_helpers_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
appengine/monorail/framework/test/framework_helpers_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Unit tests for the framework_helpers module.""" from __future__ import print_function from _...
38.615248
80
0.675926
1d0182fffb45f3df3b7e87800fca98b13434dbe6
570
py
Python
tests/constants.py
Syncleus/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
13
2016-03-23T09:35:13.000Z
2019-09-23T09:39:37.000Z
tests/constants.py
freemo/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
31
2016-09-21T10:29:36.000Z
2016-09-30T12:11:28.000Z
tests/constants.py
freemo/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
5
2016-03-27T21:32:09.000Z
2022-01-13T17:04:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Constants for APEX Module Tests.""" # These imports are for python3 compatibility inside python2 from __future__ import absolute_import from __future__ import division from __future__ import print_function __author__ = 'Jeffrey Phillips Freeman (WI2ARD)' __maintainer_...
28.5
65
0.77193
1d01b2bc2894a85c777801b55adb4addce3eb62d
1,491
py
Python
src/shiv/pip.py
pfmoore/shiv
b9acf244f1c8af1f54618655ca824b5a631761d5
[ "BSD-2-Clause" ]
2
2018-10-13T10:30:22.000Z
2018-10-14T06:51:33.000Z
src/shiv/pip.py
pfmoore/shiv
b9acf244f1c8af1f54618655ca824b5a631761d5
[ "BSD-2-Clause" ]
null
null
null
src/shiv/pip.py
pfmoore/shiv
b9acf244f1c8af1f54618655ca824b5a631761d5
[ "BSD-2-Clause" ]
null
null
null
import contextlib import os import subprocess import sys from typing import Generator, List from .constants import PIP_REQUIRE_VIRTUALENV, PIP_INSTALL_ERROR @contextlib.contextmanager def clean_pip_env() -> Generator[None, None, None]: """A context manager for temporarily removing 'PIP_REQUIRE_VIRTUALENV' from ...
26.157895
96
0.639168
1d01e9f6a7a27f7879c0cae89f36b39d7a5803c1
1,847
py
Python
18-4sum/18-4sum.py
Nitin-Diwakar/75DaysCodingChallenge-TechMaestro
69a355edd6f3a331b9c303ab622b1fbf49b4744a
[ "MIT" ]
null
null
null
18-4sum/18-4sum.py
Nitin-Diwakar/75DaysCodingChallenge-TechMaestro
69a355edd6f3a331b9c303ab622b1fbf49b4744a
[ "MIT" ]
null
null
null
18-4sum/18-4sum.py
Nitin-Diwakar/75DaysCodingChallenge-TechMaestro
69a355edd6f3a331b9c303ab622b1fbf49b4744a
[ "MIT" ]
null
null
null
class Solution: def fourSum(self, nums: List[int], target: int) -> List[List[int]]: def kSum(nums: List[int], target: int, k: int) -> List[List[int]]: res = [] # If we have run out of numbers to add, return res. if not nums: return res ...
37.693878
92
0.425014
1d023606da46b8395ee81279851ba9c9ddf2cbe7
5,318
py
Python
test/test_joint_factories.py
rgaensler/gcode
c6a6b617a04490dedefb2bae7b596a2e12ab4ab1
[ "MIT" ]
null
null
null
test/test_joint_factories.py
rgaensler/gcode
c6a6b617a04490dedefb2bae7b596a2e12ab4ab1
[ "MIT" ]
314
2020-02-26T12:37:17.000Z
2021-08-02T00:32:32.000Z
test/test_joint_factories.py
rgaensler/gcode
c6a6b617a04490dedefb2bae7b596a2e12ab4ab1
[ "MIT" ]
2
2020-11-12T16:07:48.000Z
2020-11-16T09:14:48.000Z
from math import cos, sin, pi import numpy as np import pytest from src.kinematics.joint_factories import BaseJointFactory, BASE_TOLERANCE from src.kinematics.joints import JointType # Factor schemes (1 = field should be calculated upon init, 0 = field needs to be determined at runtime/multiplication) translational_...
43.950413
119
0.577097
1d02407d3ad5114988c6d9da240633833604749e
1,137
py
Python
sdks/apigw-manager/src/apigw_manager/apigw/management/commands/sync_apigw_stage.py
IMBlues/bkpaas-python-sdk
a87bee3d26f0ddeac124c7a4679cd3eff4abb8fc
[ "MIT" ]
17
2021-08-03T03:15:35.000Z
2022-03-18T06:10:04.000Z
sdks/apigw-manager/src/apigw_manager/apigw/management/commands/sync_apigw_stage.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
7
2021-08-03T07:10:12.000Z
2022-03-23T04:47:22.000Z
sdks/apigw-manager/src/apigw_manager/apigw/management/commands/sync_apigw_stage.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
9
2021-08-03T03:20:36.000Z
2022-03-08T13:47:50.000Z
# -*- coding: utf-8 -*- """ * TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-蓝鲸 PaaS 平台(BlueKing-PaaS) available. * Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in co...
51.681818
118
0.742304
1d0240fcc5b92d0e17450860b6d8bb71f9e47f22
7,607
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_spec.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_spec.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_spec.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 V2bet...
38.226131
501
0.660576
1d02c6a842ea909e8733afa34fa8e5bcdab346a0
26,290
py
Python
models/gpt_for_ner.py
20000607-lxc/BERT-NER-Pytorch-master
47f2e1291ab53674986eb91abdb72693eafe9b61
[ "MIT" ]
null
null
null
models/gpt_for_ner.py
20000607-lxc/BERT-NER-Pytorch-master
47f2e1291ab53674986eb91abdb72693eafe9b61
[ "MIT" ]
null
null
null
models/gpt_for_ner.py
20000607-lxc/BERT-NER-Pytorch-master
47f2e1291ab53674986eb91abdb72693eafe9b61
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn import CrossEntropyLoss from losses.focal_loss import FocalLoss from losses.label_smoothing import LabelSmoothingCrossEntropy from .transformers_master.models.gpt2.modeling_gpt2 import GPT2Model as New_GPT2 from models.p_tuning.prompt_encoder import PromptEncoder from to...
44.333895
181
0.606847
1d02e40c186cdb609f1624f4bd6a7216bd9e7cfe
1,903
py
Python
src/ggrc_basic_permissions/migrations/versions/20130903124635_5325f2b93af8_programeditor_cannot.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-30T11:28:48.000Z
2018-03-30T11:28:48.000Z
src/ggrc_basic_permissions/migrations/versions/20130903124635_5325f2b93af8_programeditor_cannot.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_basic_permissions/migrations/versions/20130903124635_5325f2b93af8_programeditor_cannot.py
zidarsk8/ggrc-core
2509c989eddf434249d3bef50c21e08dbf56c1a4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ProgramEditor cannot delete program. Also, update list of all mappings that ProgramEditor can edit. Revision ID: 5325f2b93af8 Revises: 3909ea856bc9 Create Date: 2013-09-03 12:46:35.653904 """ # revisio...
27.185714
78
0.672097
1d031dc59794bcd98b116d9eef4e1097f165c467
24,270
py
Python
IPython/core/magics/namespace.py
damianavila/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
2
2020-11-30T14:04:30.000Z
2021-11-08T11:29:05.000Z
IPython/core/magics/namespace.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/core/magics/namespace.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
1
2020-11-19T05:18:41.000Z
2020-11-19T05:18:41.000Z
"""Implementation of namespace-related magic functions. """ #----------------------------------------------------------------------------- # Copyright (c) 2012 The IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with ...
34.425532
96
0.547425
1d032c7c307629903dd8dedaa60864ed3e0eb536
3,263
py
Python
tests/NormBase/t08_calculate_position_demo.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/NormBase/t08_calculate_position_demo.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/NormBase/t08_calculate_position_demo.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
""" This script demonstrates the extraction of positions in utils.calculate_position.py """ import numpy as np import matplotlib.pyplot as plt import os from utils.load_config import load_config from utils.load_data import load_data from utils.calculate_position import calculate_position from models.NormBase import N...
39.792683
143
0.747778
1d033c08e0c2a575d43e939ba0dd396923c25123
1,606
py
Python
src/tasks/get_training_data.py
alleriali/medical-relation-extraction-from-pdf
c10f2b57a8c65c7ef9af054241cc715576d56229
[ "Apache-2.0" ]
null
null
null
src/tasks/get_training_data.py
alleriali/medical-relation-extraction-from-pdf
c10f2b57a8c65c7ef9af054241cc715576d56229
[ "Apache-2.0" ]
null
null
null
src/tasks/get_training_data.py
alleriali/medical-relation-extraction-from-pdf
c10f2b57a8c65c7ef9af054241cc715576d56229
[ "Apache-2.0" ]
1
2021-01-24T18:45:24.000Z
2021-01-24T18:45:24.000Z
from src.tasks.pdf_to_txt import PdfToTxt from nltk.tokenize import word_tokenize from nltk.stem import WordNetLemmatizer import pandas as pd def get_candidates_for_train(text_path): #lemmatizer = WordNetLemmatizer() candidate_sents =[] key_words = [] contraindication_key_words=['advice','should not be ...
50.1875
132
0.665006
1d0373681d1a81b6fe1fd3e6a572d9c95e079145
3,026
py
Python
samples/basic/crud/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf/nc-create-xe-native-router-ospf-20-ydk.py
rodrigmgg/ydk-py-samples
ebea5ab56d8e37e0523d37f0aa5529766528eea2
[ "Apache-2.0" ]
null
null
null
samples/basic/crud/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf/nc-create-xe-native-router-ospf-20-ydk.py
rodrigmgg/ydk-py-samples
ebea5ab56d8e37e0523d37f0aa5529766528eea2
[ "Apache-2.0" ]
null
null
null
samples/basic/crud/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf/nc-create-xe-native-router-ospf-20-ydk.py
rodrigmgg/ydk-py-samples
ebea5ab56d8e37e0523d37f0aa5529766528eea2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 Cisco Systems, Inc. # # 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 applicab...
31.520833
78
0.655321
1d038797e6a9b4902efe3e33d7ab4465ae44edf5
803
py
Python
Scraping/rithm_scraper.py
erikhayton/Portfolio
ee1e649fe6340911968f27207ad7253d3ddc2cde
[ "MIT" ]
null
null
null
Scraping/rithm_scraper.py
erikhayton/Portfolio
ee1e649fe6340911968f27207ad7253d3ddc2cde
[ "MIT" ]
null
null
null
Scraping/rithm_scraper.py
erikhayton/Portfolio
ee1e649fe6340911968f27207ad7253d3ddc2cde
[ "MIT" ]
null
null
null
# https://www.rithmschool.com/blog import requests # makes a request to URL from csv import writer # allows you to write to a file using csv from bs4 import BeautifulSoup # allows you to use Beautiful Soup for scraping response = requests.get("https://www.rithmschool.com/blog") soup = BeautifulSoup(response.text, "htm...
38.238095
83
0.691158
1d03a637d6ea0605fc1d459f9aef0c352e6eb042
737
py
Python
esl/simulation/entity.py
fagan2888/ESL
24ffa903e8c5b9e725eed9861623d4b6a4a205a2
[ "Apache-2.0" ]
1
2020-04-17T18:18:08.000Z
2020-04-17T18:18:08.000Z
esl/simulation/entity.py
fagan2888/ESL
24ffa903e8c5b9e725eed9861623d4b6a4a205a2
[ "Apache-2.0" ]
null
null
null
esl/simulation/entity.py
fagan2888/ESL
24ffa903e8c5b9e725eed9861623d4b6a4a205a2
[ "Apache-2.0" ]
null
null
null
from typing import List, TypeVar, Generic from esl.simulation.identity import Identity class Entity():#Generic[E]): __slots__ = ["identifier", "children"] identifier: Identity#[E] children: Identity.Digit#[E].Digit def __init__(self, identifier: Identity = Identity()): self.identifier = iden...
26.321429
58
0.666214
1d03aa6e03f3df7933522f704656e26626c3a920
1,388
py
Python
tests/test_ipware.py
vltr/sanic-boom
68369792764764352fa201ad9be867b6eb20c49f
[ "MIT" ]
6
2018-10-12T20:54:49.000Z
2019-05-30T16:57:24.000Z
tests/test_ipware.py
vltr/sanic-boom
68369792764764352fa201ad9be867b6eb20c49f
[ "MIT" ]
1
2018-10-17T18:48:24.000Z
2018-10-17T18:48:24.000Z
tests/test_ipware.py
vltr/sanic-boom
68369792764764352fa201ad9be867b6eb20c49f
[ "MIT" ]
1
2018-11-06T10:22:11.000Z
2018-11-06T10:22:11.000Z
from sanic.response import text def test_headers(app): # app.config.IPWARE_REQUEST_HEADER_ORDER @app.route("/") async def handler(request): assert request.remote_addr == "177.139.233.139" return text(request.remote_addr) # test 1 headers = { "X-Forwarded-For": "177.139.2...
27.215686
77
0.635447
1d03c46251659d52bda01e0081f2cdda6d025db9
2,535
py
Python
tests/demo/run_demo_scans.py
fbertsch/soda-sql
112fd2efad64795b03dc55143fbf6a8385c93c8c
[ "Apache-2.0" ]
null
null
null
tests/demo/run_demo_scans.py
fbertsch/soda-sql
112fd2efad64795b03dc55143fbf6a8385c93c8c
[ "Apache-2.0" ]
null
null
null
tests/demo/run_demo_scans.py
fbertsch/soda-sql
112fd2efad64795b03dc55143fbf6a8385c93c8c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Soda # 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 agreed to in writing, software #...
32.922078
108
0.673373
1d03cdeceaa8e48e7e2a5c60e919893492588079
388
py
Python
Seeder/harvests/translation.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/harvests/translation.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/harvests/translation.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
from modeltranslation.translator import translator, TranslationOptions, register from . import models @register(models.TopicCollection) class TopicCollectionTranslationOptions(TranslationOptions): fields = ('title', 'annotation',) @register(models.ExternalTopicCollection) class ExternalTopicCollectionTranslation...
29.846154
80
0.814433
1d03dfc29401404bf4bd79f8f8a625c62341b600
15,618
py
Python
sparkquantum/dtqw/observer/position.py
alfabr90/sparkquantum
e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a
[ "MIT" ]
2
2020-04-07T18:25:03.000Z
2020-04-07T18:25:21.000Z
sparkquantum/dtqw/observer/position.py
alfabr90/sparkquantum
e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a
[ "MIT" ]
null
null
null
sparkquantum/dtqw/observer/position.py
alfabr90/sparkquantum
e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a
[ "MIT" ]
null
null
null
from datetime import datetime from pyspark import StorageLevel from sparkquantum import conf, constants, util from sparkquantum.dtqw.state import is_state from sparkquantum.dtqw.observer.observer import Observer from sparkquantum.dtqw.particle import is_particle from sparkquantum.math import util as mathutil from spa...
36.236659
126
0.543668
1d03f833f0ff98e00c13463e530c335453734f5a
1,171
py
Python
src/rolca/backup/signals.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
null
null
null
src/rolca/backup/signals.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
12
2016-11-27T18:38:23.000Z
2017-09-09T16:18:17.000Z
src/rolca/backup/signals.py
dblenkus/rolca
033492d9b573b1dc65cb836579dff27c6e06c7a7
[ "Apache-2.0" ]
null
null
null
""".. Ignore pydocstyle D400. =============== Signal Handlers =============== """ import logging from asgiref.sync import async_to_sync from channels.layers import ChannelFull, get_channel_layer from django.db import transaction from django.db.models.signals import post_save from django.dispatch import receiver fr...
28.560976
82
0.730999
1d040057091dc8c5525a41bd3e8c03a18d46475f
4,933
py
Python
tests/providers/test_providers_tvdb.py
jkwill87/mapi
5c0f0ef91095fed2048de9869dc674e1c2d6c566
[ "MIT" ]
6
2017-11-25T07:24:17.000Z
2021-11-15T11:29:28.000Z
tests/providers/test_providers_tvdb.py
jkwill87/mapi
5c0f0ef91095fed2048de9869dc674e1c2d6c566
[ "MIT" ]
26
2017-06-08T23:59:33.000Z
2019-10-15T03:12:50.000Z
tests/providers/test_providers_tvdb.py
jkwill87/mapi
5c0f0ef91095fed2048de9869dc674e1c2d6c566
[ "MIT" ]
1
2020-07-28T17:02:04.000Z
2020-07-28T17:02:04.000Z
# coding=utf-8 """Unit tests for mapi/providers/tvdb.py.""" import pytest from mapi.exceptions import MapiProviderException from tests import TELEVISION_META @pytest.mark.usefixtures("tmdb_provider") @pytest.mark.parametrize("meta", TELEVISION_META) def test_tvdb_provider__search__id_tvdb(tvdb_provider, meta): ...
35.235714
78
0.738699
1d04071c0d01318f88e9a97c8ca7e8c901495924
3,211
py
Python
credentialdigger/models/base_model.py
fabiosangregorio/credential-digger
213fb3684e8dc62f630a3ed718082790c5da4f4a
[ "Apache-2.0" ]
null
null
null
credentialdigger/models/base_model.py
fabiosangregorio/credential-digger
213fb3684e8dc62f630a3ed718082790c5da4f4a
[ "Apache-2.0" ]
null
null
null
credentialdigger/models/base_model.py
fabiosangregorio/credential-digger
213fb3684e8dc62f630a3ed718082790c5da4f4a
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from pathlib import Path import fasttext import pkg_resources import srsly class BaseModel(ABC): def __init__(self, model): self.model = fasttext.load_model(model) @abstractmethod def analyze(self, **kwargs): pass def get_model_meta(self, model_p...
33.103093
78
0.572719
1d040c4664eec78b02cf8ca4fefabb3ec5201f71
432
py
Python
rooms/migrations/0003_auto_20190410_1536.py
brianseidl/koda
b6e2e703afd6f3b8ccb16740824eac222c28be6e
[ "MIT" ]
null
null
null
rooms/migrations/0003_auto_20190410_1536.py
brianseidl/koda
b6e2e703afd6f3b8ccb16740824eac222c28be6e
[ "MIT" ]
null
null
null
rooms/migrations/0003_auto_20190410_1536.py
brianseidl/koda
b6e2e703afd6f3b8ccb16740824eac222c28be6e
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-04-10 15:36 from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('rooms', '0002_message_timestamp'), ] operations = [ ...
21.6
66
0.645833
1d0417c7695dd0940d26b0ce3e4d2860c765ef3f
2,546
py
Python
stonesoup/updater/particle.py
SohSalari/Stone-Soup
e073d4145df18facad43e4ab7b0a34e8d65f67ee
[ "MIT" ]
1
2020-07-21T15:20:20.000Z
2020-07-21T15:20:20.000Z
stonesoup/updater/particle.py
mgomesborges/Stone-Soup
39c7f02ce11e10c9b3c612ad359f6d8bca495266
[ "MIT" ]
null
null
null
stonesoup/updater/particle.py
mgomesborges/Stone-Soup
39c7f02ce11e10c9b3c612ad359f6d8bca495266
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from functools import lru_cache from .base import Updater from ..base import Property from ..resampler import Resampler from ..types.numeric import Probability from ..types.particle import Particle from ..types.prediction import ParticleMeasurementPrediction from ..types.update import ParticleS...
33.064935
78
0.625687
1d043c8cf8e12db1b81cf9d2cd26e7f2b21ee520
81
py
Python
tests/indy/conftest.py
SOFIE-project/interledger-asset-transfer
d1c2e5ff7af564b1ac1775772132b48a46c71280
[ "Apache-2.0" ]
4
2020-12-11T18:46:35.000Z
2022-01-07T16:58:43.000Z
tests/indy/conftest.py
SOFIE-project/interledger-asset-transfer
d1c2e5ff7af564b1ac1775772132b48a46c71280
[ "Apache-2.0" ]
3
2021-05-11T23:45:18.000Z
2021-09-02T18:45:25.000Z
tests/indy/conftest.py
SOFIE-project/Interledger
d1c2e5ff7af564b1ac1775772132b48a46c71280
[ "Apache-2.0" ]
4
2020-11-04T15:36:35.000Z
2021-08-05T12:38:08.000Z
import pytest @pytest.fixture def config(): return "local-config-indy.cfg"
11.571429
34
0.716049
1d0446253ceb7649bf8d88f227f2a9fc9cfa93cf
164
py
Python
py/cidoc_crm_types/properties/p49i_is_former_or_current_keeper_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p49i_is_former_or_current_keeper_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p49i_is_former_or_current_keeper_of.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass @dataclass class P49iIsFormerOrCurrentKeeperOf: URI = "http://erlangen-crm.org/current/P49i_is_former_or_current_keeper_of"
23.428571
79
0.829268
1d047b300641c6c13cfa56fe8478b5a9f56f46ab
4,744
py
Python
src/familyapi.py
iamApalive/Family
f5dadd6e7ad350f7131dae18c1312e56ccf6decc
[ "MIT" ]
null
null
null
src/familyapi.py
iamApalive/Family
f5dadd6e7ad350f7131dae18c1312e56ccf6decc
[ "MIT" ]
null
null
null
src/familyapi.py
iamApalive/Family
f5dadd6e7ad350f7131dae18c1312e56ccf6decc
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # /** # * Software Name : family # * Version : 0.1.0 # * # * Copyright 2020. PUNDIR ASHISH. # * # *-------------------------------------------------------- # * File Name : familyapi.py # * Created : 2020-06-28 # * Authors : PUNDIR ASHISH # *-------------------------------------------------------...
38.258065
99
0.619519
1d04a4a271603b5bd6fa7d9ee52798c178607fd6
8,313
py
Python
python/paddle/fluid/tests/unittests/test_softmax_op.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
1
2020-05-27T05:21:42.000Z
2020-05-27T05:21:42.000Z
python/paddle/fluid/tests/unittests/test_softmax_op.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_softmax_op.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle 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 app...
31.25188
80
0.632142
1d04a68b2a3fc6df4a434ca1f640dcd6d207f7d9
3,874
py
Python
sdk/python/pulumi_consul/get_network_segments.py
pulumi/pulumi-consul
5b66c5b97fda6b5433bfb4d4173c999e468c82e8
[ "ECL-2.0", "Apache-2.0" ]
3
2019-11-12T12:21:18.000Z
2021-07-31T08:17:22.000Z
sdk/python/pulumi_consul/get_network_segments.py
pulumi/pulumi-consul
5b66c5b97fda6b5433bfb4d4173c999e468c82e8
[ "ECL-2.0", "Apache-2.0" ]
38
2019-11-21T15:19:33.000Z
2022-03-31T15:24:11.000Z
sdk/python/pulumi_consul/get_network_segments.py
pulumi/pulumi-consul
5b66c5b97fda6b5433bfb4d4173c999e468c82e8
[ "ECL-2.0", "Apache-2.0" ]
2
2020-11-24T12:23:13.000Z
2021-12-06T17:33:31.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
33.111111
146
0.658751
1d04e0a25c514ff09ecaf581cd9f6526135cd6f7
9,026
py
Python
test/test_environmentpreparation.py
SvenMarcus/ssh-slurm-runner
91ea1a052a0362b5b8676b6e429aa3c890359e73
[ "MIT" ]
2
2021-04-16T15:53:38.000Z
2021-04-16T20:36:05.000Z
test/test_environmentpreparation.py
SvenMarcus/ssh-slurm-runner
91ea1a052a0362b5b8676b6e429aa3c890359e73
[ "MIT" ]
18
2021-04-16T15:53:55.000Z
2021-09-13T17:38:44.000Z
test/test_environmentpreparation.py
SvenMarcus/ssh-slurm-runner
91ea1a052a0362b5b8676b6e429aa3c890359e73
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock, call import pytest from hpcrocket.core.environmentpreparation import (CopyInstruction, EnvironmentPreparation) from hpcrocket.core.filesystem import Filesystem def new_mock_filesystem() -> Filesystem: return MagicMock( ...
29.593443
130
0.727897
1d04e505ff4d7a1c63a47e6585c87c0110e0061d
12,040
py
Python
experimental/plugins/Imexam.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
1
2019-04-27T01:34:27.000Z
2019-04-27T01:34:27.000Z
experimental/plugins/Imexam.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
experimental/plugins/Imexam.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
# # Imexam.py -- Imexam plugin for Ginga reference viewer # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import sys import inspect import traceback import logging from io import StringIO from ginga import GingaPlugin from ginga.gw import Widgets from gin...
30.636132
85
0.605399
1d050fc232fc3081a9745e3ce1f79a36047685a8
110,955
py
Python
active_projects/eop/independence.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:31.000Z
2020-07-05T12:56:31.000Z
active_projects/eop/independence.py
smithea3/manim
1d23a01a3ab8a5aab14163ec5c38e7b30e536e54
[ "MIT" ]
3
2021-09-08T02:19:38.000Z
2022-03-12T00:41:00.000Z
active_projects/eop/independence.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:33.000Z
2020-07-05T12:56:33.000Z
from big_ol_pile_of_manim_imports import * from scene.scene import ProgressDisplay import scipy #revert_to_original_skipping_status def get_binomial_distribution(n, p): return lambda k : choose(n, k)*(p**(k))*((1-p)**(n-k)) def get_quiz(*questions): q_mobs = VGroup(*map(TextMobject, [ "%d. %s"%(i+1,...
30.967067
97
0.545284
1d0511b44c9f23658e26ba58ffd7032cf82965a3
886
py
Python
examples/dirichletHistogramDemo.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
examples/dirichletHistogramDemo.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
examples/dirichletHistogramDemo.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import os from utils.util import save_fig np.random.seed(0) NSamples = 5 X = np.arange(1, 6) # This function generators a few bar graphs showing samples generated from a # Dirichlet distribution with a param vector with elements = alpha. def MakeDirSampleFig(alpha):...
26.058824
76
0.655756
1d053a65ecd47fa7c678a28c4369d41fe2c1855f
5,091
py
Python
options/base_options.py
IvanHahan/MeshCNN
d99b7fc62b632151a7e4c51c9f65c53dbbc91469
[ "MIT" ]
null
null
null
options/base_options.py
IvanHahan/MeshCNN
d99b7fc62b632151a7e4c51c9f65c53dbbc91469
[ "MIT" ]
1
2021-11-23T11:18:28.000Z
2021-11-23T11:18:28.000Z
options/base_options.py
IvanHahan/MeshCNN
d99b7fc62b632151a7e4c51c9f65c53dbbc91469
[ "MIT" ]
null
null
null
import argparse import os from util import util import torch class BaseOptions: def __init__(self): self.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) self.initialized = False def initialize(self): # data params self.parser.add_argume...
55.336957
146
0.616971
1d055e1caaa89dca76d29950dfc710c518d116ac
627
py
Python
tests/cli/test_configure.py
ladislas/mbed-tools
2ab99a15a38704574cd1e379ad4e09dd994db49c
[ "Apache-2.0" ]
null
null
null
tests/cli/test_configure.py
ladislas/mbed-tools
2ab99a15a38704574cd1e379ad4e09dd994db49c
[ "Apache-2.0" ]
null
null
null
tests/cli/test_configure.py
ladislas/mbed-tools
2ab99a15a38704574cd1e379ad4e09dd994db49c
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2020 Arm Mbed. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # from unittest import TestCase, mock from click.testing import CliRunner from mbed_tools.cli.configure import configure class TestConfigureCommand(TestCase): @mock.patch("mbed_tools.cli.configure.generate_config") @...
33
91
0.757576
1d059b6b0d9ff0e85a93db13e1003463ddbb9dc2
3,175
py
Python
alipay/aop/api/request/AlipaySecurityProdAaaQueryRequest.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/AlipaySecurityProdAaaQueryRequest.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/AlipaySecurityProdAaaQueryRequest.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 * class AlipaySecurityProdAaaQueryRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._version = "1.0" ...
24.804688
142
0.634961
1d05a3cb5dc4004fe5708bbc54ae7c627d6dc9fa
520
py
Python
photoshop/api/_measurement_log.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
17
2019-03-01T12:09:37.000Z
2020-04-09T14:14:59.000Z
photoshop/api/_measurement_log.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
7
2019-04-28T15:20:27.000Z
2020-04-07T19:14:47.000Z
photoshop/api/_measurement_log.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
3
2020-02-28T14:27:11.000Z
2020-04-01T16:12:40.000Z
# Import local modules from photoshop.api._core import Photoshop class MeasurementLog(Photoshop): """The log of measurements taken.""" def __init__(self, parent): super().__init__(parent=parent) def exportMeasurements(self, file_path: str, range_: int = None, data_point=None): if data_po...
28.888889
86
0.692308
1d05d549464c27a6c67179680deac6933cbac7fd
5,099
py
Python
server/lib/dataone/provider.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
server/lib/dataone/provider.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
server/lib/dataone/provider.py
eliasmarkc/girder_wholetale
7e6f117309c97c24756d5663e89d2c213a4a9978
[ "BSD-3-Clause" ]
null
null
null
from girder import logger from girder.api.rest import RestException from girder.constants import AccessType from girder.models.folder import Folder from . import DataONELocations from ..import_providers import ImportProvider from ..data_map import DataMap from ..file_map import FileMap from ..import_item import Import...
40.149606
97
0.649931
1d05e137c8e932893de9f86db9d1dd1e6a4e1e10
9,452
py
Python
test/mitmproxy/addons/test_proxyauth.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
4
2018-03-14T03:47:22.000Z
2018-06-28T08:00:39.000Z
test/mitmproxy/addons/test_proxyauth.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
test/mitmproxy/addons/test_proxyauth.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
1
2018-04-22T15:43:46.000Z
2018-04-22T15:43:46.000Z
import binascii import pytest from unittest import mock from mitmproxy import exceptions from mitmproxy.addons import proxyauth from mitmproxy.test import taddons from mitmproxy.test import tflow from mitmproxy.test import tutils class TestMkauth: def test_mkauth_scheme(self): assert proxyauth.mkauth('u...
37.507937
133
0.563479
1d05fd1baa5ffdaf1967037a53fd559686806a31
5,249
py
Python
impacket/testcases/dot11/test_WEPDecoder.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/dot11/test_WEPDecoder.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/dot11/test_WEPDecoder.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
#!/usr/bin/env python # sorry, this is very ugly, but I'm in python 2.5 import sys sys.path.insert(0,"../..") from dot11 import Dot11,Dot11Types,Dot11DataFrame,Dot11WEP,Dot11WEPData from ImpactPacket import IP,ICMP from Dot11KeyManager import KeyManager from ImpactDecoder import Dot11Decoder from binascii import hexl...
41.65873
428
0.691941
1d06126eaa420e6f275ae28f0a2cf4277ca07262
6,422
py
Python
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/boto/s3/files/virtual_event_best_sector_time.py
larsll/deepracer-simapp
9251c32ff33d49955b63ccca4f38d01a0c721d4f
[ "MIT" ]
1
2022-02-23T20:34:00.000Z
2022-02-23T20:34:00.000Z
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/boto/s3/files/virtual_event_best_sector_time.py
Bandwidth/deepracer-simapp
9bf0a5f9c55e37ecef8e72b1b6dc15ecb0370bc1
[ "MIT" ]
null
null
null
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/boto/s3/files/virtual_event_best_sector_time.py
Bandwidth/deepracer-simapp
9bf0a5f9c55e37ecef8e72b1b6dc15ecb0370bc1
[ "MIT" ]
null
null
null
'''This module implements s3 client for virtual event best sector time''' import os import sys import json import logging import botocore from markov.log_handler.logger import Logger from markov.log_handler.exception_handler import log_and_exit from markov.log_handler.constants import (SIMAPP_SIMULATION_WORKER_EXCEPT...
43.687075
116
0.58938
1d065118a277ade8b3bd67a75dd3a1db63299567
6,699
py
Python
laserAtomTrap/scripts/calculateFields.py
statisdisc/modellingAndSimulation
1458e7b7a527a4835c5a545f5899b6f1e4d80f92
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
laserAtomTrap/scripts/calculateFields.py
statisdisc/modellingAndSimulation
1458e7b7a527a4835c5a545f5899b6f1e4d80f92
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
laserAtomTrap/scripts/calculateFields.py
statisdisc/modellingAndSimulation
1458e7b7a527a4835c5a545f5899b6f1e4d80f92
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
''' Script for modelling the forces on neutral Rb-87 atoms in a magneto optical trap with a single laser and reflection gratings. WARNING 300MB of RAM recommended for resolution=100 10GB of RAM recommended for resolution=300 Resources scales as resolution^3 ''' import os import sys import time import numpy...
35.632979
105
0.61024
1d0690c5e0477d30d6f7fc5c768a8af9a1487c65
2,080
py
Python
superset/migrations/versions/78ee127d0d1d_reconvert_legacy_filters_into_adhoc.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
18,621
2017-06-19T09:57:44.000Z
2021-01-05T06:28:21.000Z
superset/migrations/versions/78ee127d0d1d_reconvert_legacy_filters_into_adhoc.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
9,043
2017-07-05T16:10:48.000Z
2021-01-05T17:58:01.000Z
superset/migrations/versions/78ee127d0d1d_reconvert_legacy_filters_into_adhoc.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
5,527
2017-07-06T01:39:43.000Z
2021-01-05T06:01:11.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...
27.012987
67
0.713462
1d06949cda5c5ce7877cee6399e8482e4a2a93c2
71,419
py
Python
estimationpy/fmu_utils/model.py
alexlib/EstimationPy
de0db040661ae6a8ae68c9571a71bbb16127fe60
[ "BSD-3-Clause-LBNL" ]
null
null
null
estimationpy/fmu_utils/model.py
alexlib/EstimationPy
de0db040661ae6a8ae68c9571a71bbb16127fe60
[ "BSD-3-Clause-LBNL" ]
null
null
null
estimationpy/fmu_utils/model.py
alexlib/EstimationPy
de0db040661ae6a8ae68c9571a71bbb16127fe60
[ "BSD-3-Clause-LBNL" ]
null
null
null
''' @author: marco ''' import pyfmi import numpy import pandas as pd import datetime from estimationpy.fmu_utils.in_out_var import InOutVar from estimationpy.fmu_utils.estimation_variable import EstimationVariable import estimationpy.fmu_utils.strings as fmu_util_strings import logging logger = logging.getLogger(__...
40.834191
152
0.598258
1d06e5d1ef2899e7b1cb266b00f07fb9bdb0d844
2,967
py
Python
scripts/simulation/Match_halos_twosims.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
scripts/simulation/Match_halos_twosims.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
scripts/simulation/Match_halos_twosims.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
# -*- coding: utf-8 -*- """ Match halos in two different simulations Created on Thu Jun 25 19:32:19 2015 @author: hoseung """ import tree import zoom.utils as zt wdir = '/home/hoseung/Work/data/DMO/' nout = 80 hrs_all = tree.halomodule.Halo(nout=nout, halofinder="RS", base=wdir) htm_all = tree.halomodule.Halo(n...
27.472222
81
0.603977
1d06f421d64e500dcaa2a9e853022740a2174f28
1,789
py
Python
tools/check_ai_images.py
djzager/assisted-installer-deployment
0c1d54c3af84dab0f061ed49595311918ce0768e
[ "Apache-2.0" ]
null
null
null
tools/check_ai_images.py
djzager/assisted-installer-deployment
0c1d54c3af84dab0f061ed49595311918ce0768e
[ "Apache-2.0" ]
null
null
null
tools/check_ai_images.py
djzager/assisted-installer-deployment
0c1d54c3af84dab0f061ed49595311918ce0768e
[ "Apache-2.0" ]
null
null
null
import os import yaml import time import argparse import logging import subprocess parser = argparse.ArgumentParser() parser.add_argument("--deployment", help="deployment yaml file to update", type=str, default=os.path.join(os.path.dirname(__file__), "../assisted-installer.yaml")) args = parser.parse_args() logging....
33.12963
102
0.675797
1d06f87717447b9200a1fcd13e0a587fcd46fdea
1,387
py
Python
dataset.py
johnruth96/privacy-justifiable-fairness
3f5ae92d791df1827cbc8720cf5e7aa33ceed7aa
[ "MIT" ]
null
null
null
dataset.py
johnruth96/privacy-justifiable-fairness
3f5ae92d791df1827cbc8720cf5e7aa33ceed7aa
[ "MIT" ]
null
null
null
dataset.py
johnruth96/privacy-justifiable-fairness
3f5ae92d791df1827cbc8720cf5e7aa33ceed7aa
[ "MIT" ]
null
null
null
import pandas import pandas as pd from config import ADULT_DATA ADULT_HEADER = ( 'age', # Continuous 'workclass', 'fnlwgt', # Continuous 'education', 'education-num', # Continuous 'maritalStatus', 'occupation', 'relationship', 'race', 'sex', 'capital-gain', # Continuous...
24.333333
117
0.638068