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
9167d4a09e7eba2887f4d0c8e816b3578650dea1
339
py
Python
gamedex/main.py
deepspaceghost/deme
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
null
null
null
gamedex/main.py
deepspaceghost/deme
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
6
2021-07-09T16:56:28.000Z
2022-03-12T00:58:06.000Z
gamedex/main.py
deepspaceghost/demeter.py
324741ee8e6ef30de5116f6018966829302796ed
[ "MIT" ]
1
2021-06-01T23:49:44.000Z
2021-06-01T23:49:44.000Z
import random import os dir_path = os.path.dirname(os.path.realpath(__file__)) with open(os.path.join(dir_path, "class_a_games.txt")) as f: class_a_games = [game.rstrip('\r\n ') for game in f.readlines() if game != ""] all_games = class_a_games def get_game(): """ """ return random....
19.941176
83
0.643068
9167dfc7cd5392e5583f09065820be108292b4ec
7,750
py
Python
duhportinf/main_portinf.py
sifive/duhportinf
f7c02b62b594a69a324f44000801754cb50abb42
[ "Apache-2.0" ]
3
2019-12-06T04:22:19.000Z
2020-12-03T21:44:53.000Z
duhportinf/main_portinf.py
sifive/duhportinf
f7c02b62b594a69a324f44000801754cb50abb42
[ "Apache-2.0" ]
14
2019-05-07T16:16:21.000Z
2020-11-24T19:26:04.000Z
duhportinf/main_portinf.py
sifive/duhportinf
f7c02b62b594a69a324f44000801754cb50abb42
[ "Apache-2.0" ]
4
2019-06-13T19:57:55.000Z
2021-05-19T05:20:28.000Z
#! /usr/bin/env python3 import os import sys import numpy as np import shutil import json5 from jsonref import JsonRef import argparse import subprocess import logging from .busdef import BusDef from ._optimize import ( map_ports_to_bus, get_mapping_fcost_global, get_mapping_fcost_local, MatchCost, ) f...
34.753363
147
0.648645
9167e274d6acfaae788ef68b8ed4f35c7fb35951
11,826
py
Python
datasets/utils/continual_dataset.py
wutong8023/Continual-MM
0e39b1f4791f0444ed3ee4e8c6fc55bfcc2d001c
[ "MIT" ]
1
2021-06-30T04:27:57.000Z
2021-06-30T04:27:57.000Z
datasets/utils/continual_dataset.py
wutong8023/Continual-MM
0e39b1f4791f0444ed3ee4e8c6fc55bfcc2d001c
[ "MIT" ]
null
null
null
datasets/utils/continual_dataset.py
wutong8023/Continual-MM
0e39b1f4791f0444ed3ee4e8c6fc55bfcc2d001c
[ "MIT" ]
null
null
null
# Copyright 2020-present, Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, Simone Calderara. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from abc import abstractmethod from argparse import Namespace from t...
39.289037
119
0.642567
9167f65885ed40e602181a07c937a6542640507f
3,109
py
Python
custom_qt_classes.py
Jongerr/vendor_receiving
f69f09a5b41d38b45e9ea0bf82590bb27ce913f6
[ "MIT" ]
null
null
null
custom_qt_classes.py
Jongerr/vendor_receiving
f69f09a5b41d38b45e9ea0bf82590bb27ce913f6
[ "MIT" ]
null
null
null
custom_qt_classes.py
Jongerr/vendor_receiving
f69f09a5b41d38b45e9ea0bf82590bb27ce913f6
[ "MIT" ]
null
null
null
from passlib.hash import pbkdf2_sha256 as pbk from PyQt5.QtWidgets import * from PyQt5.QtGui import QValidator, QIntValidator, QRegExpValidator from PyQt5.QtCore import QRegExp from PyQt5.QtSql import QSqlDatabase, QSqlQuery class Login(QDialog): def __init__(self): super().__init__() self.initD...
33.430108
114
0.642972
916810d36a26e390c0ec01ab6a6e0e8493418e4d
2,337
py
Python
backend/Drive/upload_page.py
DuMoH112/cloud_strorage
f995f9a71c9317493e3092a7ec31108afbdc8e05
[ "MIT" ]
null
null
null
backend/Drive/upload_page.py
DuMoH112/cloud_strorage
f995f9a71c9317493e3092a7ec31108afbdc8e05
[ "MIT" ]
null
null
null
backend/Drive/upload_page.py
DuMoH112/cloud_strorage
f995f9a71c9317493e3092a7ec31108afbdc8e05
[ "MIT" ]
null
null
null
import os from time import time import zipfile from flask import Blueprint, request, jsonify from werkzeug.utils import secure_filename from psycopg2 import sql from app.config import config from app.auth_utils import auth_user from Database.postgres import Postgres_db cloud_drive_bp = Blueprint('cloud_drive', __nam...
30.75
91
0.643988
916829da2a3da666350da79e86ed70380fb1dc63
1,291
py
Python
battleforcastile/cli/account.py
battleforcastile/battleforcastile
65223fcb56ecc550f1a7c7b70beadff22c866d85
[ "MIT" ]
null
null
null
battleforcastile/cli/account.py
battleforcastile/battleforcastile
65223fcb56ecc550f1a7c7b70beadff22c866d85
[ "MIT" ]
1
2021-08-21T10:16:03.000Z
2021-08-21T10:16:03.000Z
battleforcastile/cli/account.py
battleforcastile/battleforcastile
65223fcb56ecc550f1a7c7b70beadff22c866d85
[ "MIT" ]
null
null
null
import os import click from click import pass_obj from battleforcastile.constants import BATTLEFORCASTILE_CONFIG_FILEPATH from battleforcastile.utils.create_account import create_account from battleforcastile.utils.delete_account import delete_account @click.group(help='List and modify your account details') @pass_...
26.346939
71
0.720372
9168369ad61959ffc1104bd0664e5920020acd91
2,053
py
Python
modules/dbnd-airflow-monitor/src/airflow_monitor/fixer/runtime_fixer.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow-monitor/src/airflow_monitor/fixer/runtime_fixer.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow-monitor/src/airflow_monitor/fixer/runtime_fixer.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
import logging from typing import List from airflow_monitor.common import capture_monitor_exception from airflow_monitor.common.base_component import BaseMonitorSyncer, start_syncer from airflow_monitor.common.config_data import AirflowServerConfig from airflow_monitor.data_fetcher import AirflowDataFetcher from airf...
33.112903
81
0.726254
91684dc61e40efe3f2408c3d5f1f4eb2764bc558
5,046
py
Python
tensorflow/contrib/layers/python/ops/sparse_feature_cross_op.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/contrib/layers/python/ops/sparse_feature_cross_op.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/layers/python/ops/sparse_feature_cross_op.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2016 The TensorFlow 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 applica...
39.116279
80
0.719184
91687d3cbc8a764c4d04df6cab35972a37b34fee
2,541
py
Python
marqeta/response_models/transaction_controls.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/transaction_controls.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/transaction_controls.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models.avs_controls import AvsControls from marqeta.response_models import datetime_object import json import re class TransactionControls(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): ...
31.7625
101
0.738686
91687f9d201f1c42deb21711246bf9ab478011ca
2,804
py
Python
example/test.py
nathants/py-webkit
7909a6dba99b43ec427b8bba88b9cc3384c3b202
[ "MIT" ]
null
null
null
example/test.py
nathants/py-webkit
7909a6dba99b43ec427b8bba88b9cc3384c3b202
[ "MIT" ]
null
null
null
example/test.py
nathants/py-webkit
7909a6dba99b43ec427b8bba88b9cc3384c3b202
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # type: ignore import sys import os import pytest import time import webengine import subprocess host = 'http://localhost:8000' class Main(webengine.Thread): action_delay_seconds = .025 def location(self): return self.js('document.location.href.split("/#")[1]') def main(s...
29.515789
114
0.560984
916885aff01bb7e8d8a81dc2a779e148d5293cfd
1,107
py
Python
gaffer/node/commands/process_running.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
gaffer/node/commands/process_running.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
gaffer/node/commands/process_running.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
1
2018-10-28T00:59:17.000Z
2018-10-28T00:59:17.000Z
# -*- coding: utf-8 - # # This file is part of gaffer. See the NOTICE for more information. from .base import Command class ProcessRunning(Command): """\ Number of running processes for this process description ======================================================== This command return t...
18.147541
70
0.459801
91688ff72bbea16e01ff254f8382ec62fa1d93dc
46,909
py
Python
Lib/test/test_traceback.py
Pixmew/cpython
aa01011003bb855cd52abfd49f2443446590d913
[ "0BSD" ]
5
2019-04-28T05:24:54.000Z
2021-05-08T02:04:27.000Z
Lib/test/test_traceback.py
Pixmew/cpython
aa01011003bb855cd52abfd49f2443446590d913
[ "0BSD" ]
13
2020-11-22T20:53:27.000Z
2022-03-01T18:01:06.000Z
Lib/test/test_traceback.py
Pixmew/cpython
aa01011003bb855cd52abfd49f2443446590d913
[ "0BSD" ]
1
2020-10-30T14:25:00.000Z
2020-10-30T14:25:00.000Z
"""Test cases for traceback module""" from collections import namedtuple from io import StringIO import linecache import sys import unittest import re from test import support from test.support import Error, captured_output, cpython_only, ALWAYS_EQ from test.support.os_helper import TESTFN, unlink from test.support.sc...
38.261827
97
0.57765
91689dd395bc94f51b3807ad7685ffa0d74b8573
5,483
py
Python
impbot/core/base.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
impbot/core/base.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
impbot/core/base.py
rlazarus/impbot
9c9b0e0d84c7badd1786813bc5e19b20175f5d5b
[ "MIT" ]
null
null
null
import abc import inspect from typing import (Optional, Callable, ClassVar, List, Generic, TypeVar, TYPE_CHECKING, Type) import attr from impbot.core import data from impbot.util import types if TYPE_CHECKING: from impbot.core import web @attr.s(auto_attribs=True, frozen=True) class User: ...
31.693642
80
0.674631
9168baa8d989e17875f1f5a55f3cc62ea6be62f2
1,110
py
Python
python/ctakes/scripts/renameXMI.py
drgriffis/ctakes-utils
d5da557ee68918fc33326a029f37a24d39acb10a
[ "Apache-2.0" ]
1
2018-10-31T02:31:37.000Z
2018-10-31T02:31:37.000Z
python/ctakes/scripts/renameXMI.py
drgriffis/ctakes-utils
d5da557ee68918fc33326a029f37a24d39acb10a
[ "Apache-2.0" ]
1
2018-02-04T19:24:52.000Z
2021-08-25T08:16:36.000Z
python/ctakes/scripts/renameXMI.py
drgriffis/ctakes-utils
d5da557ee68918fc33326a029f37a24d39acb10a
[ "Apache-2.0" ]
null
null
null
''' Renames cTAKES XMI output files (named like doc%d.xmi) to use the original document name. E.g. Plaintext abc.txt -> cTAKES doc0.xmi -> renamed abc.xmi ''' import os from ctakes.format import XMI if __name__ == '__main__': def _cli(): import optparse parser = optparse.OptionParser(usage='Usage...
32.647059
97
0.567568
9168bb451df2f21f0563fe8f2aaa55e077dc8b17
586
py
Python
m2ext/SSL.py
abbot/m2ext
f56394240240fcda0b2abc14d69916d357c1c36e
[ "BSD-2-Clause" ]
1
2015-11-03T19:58:18.000Z
2015-11-03T19:58:18.000Z
m2ext/SSL.py
abbot/m2ext
f56394240240fcda0b2abc14d69916d357c1c36e
[ "BSD-2-Clause" ]
null
null
null
m2ext/SSL.py
abbot/m2ext
f56394240240fcda0b2abc14d69916d357c1c36e
[ "BSD-2-Clause" ]
null
null
null
from M2Crypto import SSL, X509 import _m2ext class Context(SSL.Context): def validate_certificate(self, cert): """ Validate a certificate using this SSL Context """ store_ctx = X509.X509_Store_Context(_m2ext.x509_store_ctx_new(), _pyfree=1) _m2ext.x509_store_ctx_init(store_c...
34.470588
83
0.583618
9168da3075d1b89e4fd9786436be67df3dd02e76
1,875
py
Python
src/calendar_cli/operation/summary_operation.py
mogproject/calendar-cli
095fe4cfe76bc1890742d22accef48a5f9f6ca45
[ "Apache-2.0" ]
12
2015-10-14T09:05:48.000Z
2021-06-27T11:32:48.000Z
src/calendar_cli/operation/summary_operation.py
mogproject/calendar-cli
095fe4cfe76bc1890742d22accef48a5f9f6ca45
[ "Apache-2.0" ]
18
2015-10-14T06:20:26.000Z
2017-01-23T23:33:01.000Z
src/calendar_cli/operation/summary_operation.py
mogproject/calendar-cli
095fe4cfe76bc1890742d22accef48a5f9f6ca45
[ "Apache-2.0" ]
4
2016-10-12T18:35:24.000Z
2019-12-31T17:13:02.000Z
from __future__ import division, print_function, absolute_import, unicode_literals import itertools from calendar_cli.operation.operation import Operation from calendar_cli.service import GoogleCalendarService from mog_commons.functional import omap from mog_commons.io import print_safe class SummaryOperation(Operat...
35.377358
104
0.6528
9168e5cd56211d28aebfaaccbaf0c1972814e8eb
5,250
py
Python
aiida_siesta/examples/plugins/siesta/example_neb_SiH.py
albgar/legacy_aiida_plugin
a375d357c88b30209bee9b341064f84a8ef244d6
[ "MIT" ]
null
null
null
aiida_siesta/examples/plugins/siesta/example_neb_SiH.py
albgar/legacy_aiida_plugin
a375d357c88b30209bee9b341064f84a8ef244d6
[ "MIT" ]
null
null
null
aiida_siesta/examples/plugins/siesta/example_neb_SiH.py
albgar/legacy_aiida_plugin
a375d357c88b30209bee9b341064f84a8ef244d6
[ "MIT" ]
null
null
null
#!/usr/bin/env runaiida #Not required by AiiDA import os.path as op import sys #AiiDA classes and functions from aiida.engine import submit from aiida.orm import load_code from aiida.orm import (Dict, StructureData, KpointsData) from aiida.orm import TrajectoryData, SinglefileData from aiida_siesta.calculations.siest...
27.925532
85
0.675429
916963f5901c8e06209c3482ba1e8fa64a9ffe57
7,739
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_led_animation/group.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_led_animation/group.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_led_animation/group.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# The MIT License (MIT) # # Copyright (c) 2020 Kattni Rembor for Adafruit Industries # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the ri...
35.177273
99
0.617651
916966ae83e9b664126f4faaf8186f0422b189cc
5,638
py
Python
tests/frontend/test_ops_metaoperation.py
SubhashishQPIT/strawberryfields
dae6ae8b1b3eb188fc2c874bd6c943bebf697ab9
[ "Apache-2.0" ]
646
2018-03-26T15:12:35.000Z
2022-03-21T18:52:42.000Z
tests/frontend/test_ops_metaoperation.py
tonybruguier/strawberryfields
298601e409528f22c6717c2d816ab68ae8bda1fa
[ "Apache-2.0" ]
666
2018-03-27T20:21:27.000Z
2022-03-25T18:35:33.000Z
tests/frontend/test_ops_metaoperation.py
tonybruguier/strawberryfields
298601e409528f22c6717c2d816ab68ae8bda1fa
[ "Apache-2.0" ]
182
2018-04-11T17:09:39.000Z
2022-03-29T15:38:43.000Z
# Copyright 2019 Xanadu Quantum Technologies 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 applicable law or agre...
33.559524
95
0.627527
91697ca11603803de6bbc1c096caa4eb65eedbc1
1,460
py
Python
src/entities.py
ebreton/flaskbootstrap
6909577585cc80a1d3be1848c92b96d09ed5fb29
[ "MIT" ]
null
null
null
src/entities.py
ebreton/flaskbootstrap
6909577585cc80a1d3be1848c92b96d09ed5fb29
[ "MIT" ]
1
2021-06-01T21:34:23.000Z
2021-06-01T21:34:23.000Z
src/entities.py
ebreton/flaskbootstrap
6909577585cc80a1d3be1848c92b96d09ed5fb29
[ "MIT" ]
null
null
null
""" Wraps data into python objects """ from datetime import datetime from collections import deque from itertools import islice class Greeting: def __init__(self, name, timestamp=None): self.name = name self.timestamp = timestamp or datetime.now() def __repr__(self): return f"<{self....
22.121212
85
0.608219
91699175012a7b66e02ad013b30805117195000a
2,209
py
Python
obsolete/reports/pipeline_capseq/trackers/predicted_cgis.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
11
2018-09-07T11:33:23.000Z
2022-01-07T12:16:11.000Z
obsolete/reports/pipeline_capseq/trackers/predicted_cgis.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
102
2018-03-22T15:35:26.000Z
2022-03-23T17:46:16.000Z
obsolete/reports/pipeline_capseq/trackers/predicted_cgis.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
7
2018-06-11T15:01:41.000Z
2020-03-31T09:29:33.000Z
import os import sys import re import types import itertools import matplotlib.pyplot as plt import numpy import numpy.ma import Stats import Histogram from cgatReport.Tracker import * from cpgReport import * from cgatReport.odict import OrderedDict as odict ###########################################################...
27.271605
78
0.570847
9169b48279f9de15288fab552dfb1e77fd3fcc11
1,881
py
Python
alipay/aop/api/response/AlipayDataBillSellQueryResponse.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/response/AlipayDataBillSellQueryResponse.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/response/AlipayDataBillSellQueryResponse.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.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.TradeItemResult import TradeItemResult class AlipayDataBillSellQueryResponse(AlipayResponse): def __init__(self): super(AlipayDataBillSellQueryResponse, ...
29.857143
104
0.646465
916a3cf72779ac81af2f2839f855bfefcc5e8683
2,470
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/messages/mark_dialog_unread.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/mark_dialog_unread.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/messages/mark_dialog_unread.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...
32.077922
103
0.617814
916a60ec4741e3e03241e721975829acb98a4f6a
10,646
py
Python
genrl/agents/deep/base/offpolicy.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
1
2020-06-20T21:20:14.000Z
2020-06-20T21:20:14.000Z
genrl/agents/deep/base/offpolicy.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
null
null
null
genrl/agents/deep/base/offpolicy.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
null
null
null
import collections from typing import List import numpy as np import torch from torch.nn import functional as F from genrl.agents.deep.base import BaseAgent from genrl.core import ( PrioritizedBuffer, PrioritizedReplayBufferSamples, PushReplayBuffer, ReplayBufferSamples, ) class OffPolicyAgent(BaseA...
37.618375
97
0.628593
916a6233309cb7919c695b9b94013b1f76a10768
3,197
py
Python
skynet/types/weight_proof.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
7
2021-09-07T02:14:15.000Z
2022-03-27T06:42:35.000Z
skynet/types/weight_proof.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
1
2021-10-21T16:38:56.000Z
2021-11-15T13:03:15.000Z
skynet/types/weight_proof.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
3
2021-10-21T07:17:40.000Z
2022-03-16T12:57:09.000Z
from dataclasses import dataclass from typing import List, Optional from skynet.types.blockchain_format.proof_of_space import ProofOfSpace from skynet.types.blockchain_format.reward_chain_block import RewardChainBlock from skynet.types.blockchain_format.sized_bytes import bytes32 from skynet.types.blockchain_format.vd...
31.038835
95
0.736628
916a82d6f73159b69264c513f87dbbf338087941
436
py
Python
test_mezzanine_advanced_admin/test_mezzanine_advanced_admin/wsgi.py
askinteractive/mezzanine-advanced-admin
4c2f80ca209d2f549e50de69eb95ef1243c04c48
[ "Apache-2.0" ]
null
null
null
test_mezzanine_advanced_admin/test_mezzanine_advanced_admin/wsgi.py
askinteractive/mezzanine-advanced-admin
4c2f80ca209d2f549e50de69eb95ef1243c04c48
[ "Apache-2.0" ]
null
null
null
test_mezzanine_advanced_admin/test_mezzanine_advanced_admin/wsgi.py
askinteractive/mezzanine-advanced-admin
4c2f80ca209d2f549e50de69eb95ef1243c04c48
[ "Apache-2.0" ]
null
null
null
""" WSGI config for test_mezzanine_advanced_admin_p3 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_mezzanin...
29.066667
89
0.811927
916a88b885f1b6ba9823753e3b75d6fa47323176
4,366
py
Python
src/claimer.py
humanbt/Packt-Publishing-Free-Learning
6bb1bf5b8b26041ee8b341fa0e42b1fda44bbee9
[ "MIT" ]
null
null
null
src/claimer.py
humanbt/Packt-Publishing-Free-Learning
6bb1bf5b8b26041ee8b341fa0e42b1fda44bbee9
[ "MIT" ]
null
null
null
src/claimer.py
humanbt/Packt-Publishing-Free-Learning
6bb1bf5b8b26041ee8b341fa0e42b1fda44bbee9
[ "MIT" ]
2
2021-12-20T20:22:13.000Z
2021-12-20T20:23:22.000Z
import datetime as dt from itertools import chain from math import ceil from operator import itemgetter from api import ( DEFAULT_PAGINATION_SIZE, PACKT_API_FREE_LEARNING_CLAIM_URL, PACKT_API_FREE_LEARNING_OFFERS_URL, PACKT_API_PRODUCTS_URL, PACKT_API_USER_URL, PACKT_PRODUCT_SUMMARY_URL ) from ...
38.298246
111
0.675905
916abab11fc14e9d689fea9b1187dd94887d5a81
2,709
py
Python
core/actions/put.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
core/actions/put.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
core/actions/put.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from core.actions.base import Action from services import selection from services.selection import filters from core.messaging import StringBuilder, Verb, Actor, Target from core import contexts class Put(Action): name = "put" target_selection = selection.TargetSelectionChain( selection.TargetSelectio...
34.730769
113
0.625323
916ac51e60ee995c0ae100024b98816a318a4a9f
48,233
py
Python
cgatcore/pipeline/execution.py
cgat-developers/cgat-core
f5ab6baf4e61f20ac4fc98b8596e328dfaff1e31
[ "MIT" ]
34
2018-05-25T16:00:20.000Z
2022-03-29T10:29:00.000Z
cgatcore/pipeline/execution.py
cgat-developers/cgat-core
f5ab6baf4e61f20ac4fc98b8596e328dfaff1e31
[ "MIT" ]
80
2018-02-21T15:02:38.000Z
2022-03-22T21:31:41.000Z
cgatcore/pipeline/execution.py
cgat-developers/cgat-core
f5ab6baf4e61f20ac4fc98b8596e328dfaff1e31
[ "MIT" ]
11
2018-02-11T20:05:22.000Z
2020-10-16T12:24:28.000Z
"""execution.py - Job control for ruffus pipelines ========================================================= Session ------- This module manages a DRMAA session. :func:`start_session` starts a session and :func:`close_session` closes it. Reference --------- """ import collections import importlib import os import ...
34.427552
97
0.575685
916ad8134c7bb583413a212d56f37438f004b4e2
540
py
Python
test/test_getpetab.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_getpetab.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_getpetab.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
import vnmrjpy as vj import unittest import numpy as np import glob class Test_getpetab(unittest.TestCase): def test_getpetab_fromtabfile(self): infile = vj.config['tablib_dir']+'/fse128_64_2' petab = vj.util.getpetab(infile,is_petab=True) self.assertEqual(len(petab.shape),2) def tes...
28.421053
78
0.694444
916aecbea88b10bbef316ffb89d4c4d89667cb29
6,867
py
Python
tensorflow/contrib/learn/python/learn/utils/gc.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/learn/python/learn/utils/gc.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/learn/python/learn/utils/gc.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
36
2017-07-27T21:12:40.000Z
2022-02-03T16:45:56.000Z
# Copyright 2016 The TensorFlow 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 applica...
31.072398
93
0.677588
916af4b11137ffc4ef8fa81d3504fa5036c5a738
50
py
Python
google-cloud-sdk/.install/.backup/lib/third_party/containerregistry/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/third_party/containerregistry/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/third_party/containerregistry/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
import sys x=sys.modules['containerregistry']
10
34
0.74
916b2068c1c259e10e38c3addb408d062503e94f
910
py
Python
smore/cpp_sampler/test_query.py
isabella232/smore
02e5a89e84a805eed632eefbdecd957d95e202d4
[ "Apache-2.0" ]
78
2021-10-31T23:20:26.000Z
2022-03-21T01:07:01.000Z
smore/cpp_sampler/test_query.py
google-research/smore
e4ba95a7466ef7d018987bce7688b77bf2ea7e4f
[ "Apache-2.0" ]
4
2021-11-02T13:45:38.000Z
2022-02-17T04:18:32.000Z
smore/cpp_sampler/test_query.py
pyg-team/smore
02e5a89e84a805eed632eefbdecd957d95e202d4
[ "Apache-2.0" ]
15
2021-11-02T23:55:29.000Z
2022-03-19T10:30:51.000Z
# Copyright 2021 Google LLC # # 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...
31.37931
78
0.759341
916b3df1b63e075e28fa511b8b8ca19625617c2c
744
py
Python
chatterbot/conversation/utils.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
1
2016-05-21T21:26:15.000Z
2016-05-21T21:26:15.000Z
chatterbot/conversation/utils.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
null
null
null
chatterbot/conversation/utils.py
ttracx/ChatterBot
ec6cb0ae09304ddac7bef9c3dcf9b148b7568d76
[ "BSD-3-Clause" ]
null
null
null
def get_response_statements(statement_list): """ Filter out all statements that are not in response to another statement. A statement must exist which lists the closest matching statement in the in_response_to field. Otherwise, the logic adapter may find a closest matching statement that does not ha...
35.428571
76
0.71371
916b4733516e8f188221a34528abba16755dbe6b
8,663
py
Python
hrl_dynamic_mpc/src/darci_sim_client.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
1
2017-07-13T14:58:35.000Z
2017-07-13T14:58:35.000Z
hrl_dynamic_mpc/src/darci_sim_client.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
null
null
null
hrl_dynamic_mpc/src/darci_sim_client.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
2
2017-03-08T14:44:22.000Z
2019-07-15T23:46:35.000Z
#!/usr/bin/python # # # Copyright (c) 2013, Georgia Tech Research Corporation # 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 copyrigh...
40.106481
145
0.678749
916b84b81ebfa01b9b93958cefbe49038efdeff2
4,928
py
Python
src/lib/atlas_utils/presenteragent/presenter_channel.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
1
2021-09-21T23:23:59.000Z
2021-09-21T23:23:59.000Z
src/lib/atlas_utils/presenteragent/presenter_channel.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
8
2021-07-05T21:41:53.000Z
2022-02-15T19:46:13.000Z
src/lib/atlas_utils/presenteragent/presenter_channel.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
4
2021-06-11T22:47:04.000Z
2021-07-29T19:57:13.000Z
# !/usr/bin/env python # -*- coding:utf-8 -*- import time import configparser from multiprocessing import Process, Queue, Manager import queue import numpy as np import sys # sys.path.append("..") import acl import atlas_utils.constants as const from atlas_utils.acl_logger import log_error, log_info from atlas_utils.a...
33.986207
78
0.637175
916b9a2c8a181b21bbbad39c5f6fc02bb9d2d715
4,636
py
Python
modules/player_actions/Open.py
sadmicrowave/despoina
a9791feaa0c035fb4134282b750a11be57132e07
[ "MIT" ]
1
2017-11-17T15:42:35.000Z
2017-11-17T15:42:35.000Z
modules/player_actions/Open.py
sadmicrowave/despoina
a9791feaa0c035fb4134282b750a11be57132e07
[ "MIT" ]
7
2018-09-25T21:27:57.000Z
2018-09-25T21:40:50.000Z
modules/player_actions/Open.py
sadmicrowave/despoina
a9791feaa0c035fb4134282b750a11be57132e07
[ "MIT" ]
1
2019-10-13T23:23:16.000Z
2019-10-13T23:23:16.000Z
#!/usr/local/bin/python3 import textwrap, re from modules.bgcolors import BgColors from modules import items from modules import armor from modules import weapons class aOpen(object): @classmethod def __act__(cls, item=None, **kwargs): player = kwargs['player'] # check if an item has been passed to the meth...
54.541176
222
0.686583
916bae18a78b4553938fc2f58131f9fdc731c637
11,955
py
Python
alipay/aop/api/domain/OutputInvoiceReceiptOpenApiResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/OutputInvoiceReceiptOpenApiResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/OutputInvoiceReceiptOpenApiResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi from alipay.aop.api.domain.MultiCurr...
34.552023
99
0.615307
916bc6dea79feb140b6e73eccad58a756516bfb1
1,450
py
Python
terrascript/linode/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/linode/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/linode/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/linode/d.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class linode_account(terrascript.Data): pass class linode_domain(terrascript.Data): pass class l...
14.215686
79
0.761379
916bf46214e6e57ca549c95d5e89726e60d3e9b9
1,179
py
Python
backend/metagrid/users/admin.py
tomvothecoder/metagrid
a38f3f78fbaf78f909c74a263c03a3f6d376b75c
[ "MIT" ]
5
2020-06-08T23:20:33.000Z
2021-11-29T15:25:27.000Z
backend/metagrid/users/admin.py
aims-group/metagrid
32bd76638d80c3da7529a73ab8509eb53264c8dc
[ "MIT" ]
359
2020-04-24T19:45:56.000Z
2022-03-31T18:04:12.000Z
backend/metagrid/users/admin.py
tomvothecoder/metagrid
a38f3f78fbaf78f909c74a263c03a3f6d376b75c
[ "MIT" ]
1
2021-03-01T17:27:43.000Z
2021-03-01T17:27:43.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin from django.utils.translation import ugettext_lazy as _ from .models import User @admin.register(User) class UserAdmin(DjangoUserAdmin): """Define admin model for custom User model with no email field.""" fie...
28.756098
74
0.493639
916bff96bceb71e43bda99e014592f0476f8f596
20,421
py
Python
models/graphflow/model.py
princeton-nlp/cqa-evaluation
5784d6830b7907b11ae1e3110ccd920187bee533
[ "MIT" ]
18
2022-01-10T14:37:27.000Z
2022-01-29T01:27:28.000Z
models/graphflow/model.py
princeton-nlp/cqa-evaluation
5784d6830b7907b11ae1e3110ccd920187bee533
[ "MIT" ]
1
2022-03-21T01:51:17.000Z
2022-03-21T01:51:17.000Z
models/graphflow/model.py
princeton-nlp/EvalConvQA
c3b6c57ebf8432d2bf5cf2b068d478d94ac14977
[ "MIT" ]
1
2022-01-11T01:59:16.000Z
2022-01-11T01:59:16.000Z
import os import numpy as np from collections import Counter import abc import torch import torch.nn as nn import torch.optim as optim from torch.optim.lr_scheduler import ReduceLROnPlateau import torch.nn.functional as F from .utils.coqa import compute_eval_metric from .utils.quac import eval_fn as quac_eval_fn fro...
45.993243
219
0.588267
916c37244a46a0d38e05eb1b84fb18ca802611cc
13,309
py
Python
website/specimens/management/commands/import_specimens.py
BelgianBiodiversityPlatform/Astapor
b54f6b8595e90250575e1220802720ab4ac0229d
[ "BSD-2-Clause" ]
1
2017-06-20T08:09:29.000Z
2017-06-20T08:09:29.000Z
website/specimens/management/commands/import_specimens.py
BelgianBiodiversityPlatform/Astapor
b54f6b8595e90250575e1220802720ab4ac0229d
[ "BSD-2-Clause" ]
31
2017-06-20T11:11:29.000Z
2018-01-11T15:03:24.000Z
website/specimens/management/commands/import_specimens.py
BelgianBiodiversityPlatform/Astapor
b54f6b8595e90250575e1220802720ab4ac0229d
[ "BSD-2-Clause" ]
null
null
null
import csv import calendar import datetime import dateparser from psycopg2.extras import NumericRange from django.core.exceptions import ObjectDoesNotExist from django.core.management.base import CommandError from django.contrib.gis.geos import Point from django.conf import settings from specimens.models import (Pe...
45.423208
128
0.533549
916c541c6fbd21d28aea1caf460bf94e82e304e5
3,407
py
Python
workers/tests/test_max.py
Open-EO/openeo-sentinelhub-python-driver
92f990f098065ffb658eba6dca291dd1d5fc70f2
[ "Apache-2.0" ]
2
2019-12-03T12:49:47.000Z
2020-10-25T20:14:39.000Z
workers/tests/test_max.py
Open-EO/openeo-sentinelhub-python-driver
92f990f098065ffb658eba6dca291dd1d5fc70f2
[ "Apache-2.0" ]
5
2019-12-03T10:32:48.000Z
2020-10-09T13:07:39.000Z
workers/tests/test_max.py
Open-EO/openeo-sentinelhub-python-driver
92f990f098065ffb658eba6dca291dd1d5fc70f2
[ "Apache-2.0" ]
4
2020-03-06T14:51:52.000Z
2020-11-24T10:30:18.000Z
import pytest import sys, os import xarray as xr import numpy as np sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import process from process._common import ProcessArgumentInvalid, ProcessArgumentRequired @pytest.fixture def generate_data(): def _construct( data = [[[[0...
39.16092
151
0.596713
916ccce0ee990286313e31cee8015e747db7113a
3,623
py
Python
setup.py
joshfp/fastai
eb455070adaea072b4771e340d48a371c6c0c4e2
[ "Apache-2.0" ]
1
2019-01-29T22:13:29.000Z
2019-01-29T22:13:29.000Z
setup.py
jamesrequa/fastai
794365cd7f734b5e1027d7e19c99e648fbb9a12b
[ "Apache-2.0" ]
null
null
null
setup.py
jamesrequa/fastai
794365cd7f734b5e1027d7e19c99e648fbb9a12b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" import sys from pathlib import Path from setuptools import setup, find_packages # note: version is maintained inside fastai/version.py exec(open('fastai/version.py').read()) with open('README.md') as readme_file: readme = readme_file.read() de...
26.837037
145
0.684792
916cd6dd5cf39500d3192473a47aa31224878a88
285
py
Python
archive/nexus-api-v2/Database/Utilities/Validation/Error.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/Utilities/Validation/Error.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/Utilities/Validation/Error.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
1
2022-01-03T05:33:15.000Z
2022-01-03T05:33:15.000Z
""" ... """ from . import * class Schema(Base): """ ... """ Message: Optional[String] Type: String = "Validation-Error" Traceback: String = "N/A" Response: Integer = 422 class Config: orm_mode = True __all__ = [ "Schema" ]
11.875
37
0.498246
916cdc568b8260c20a3f2c7f680a0a3a9424c7bd
1,125
py
Python
databuddy/utils/__init__.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
databuddy/utils/__init__.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
databuddy/utils/__init__.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
import pandas as pd from .datetime_utils import * from .formatters import * from .function_utils import * from sqlalchemy import asc, desc, func import sqlalchemy from sqlalchemy.orm import class_mapper, query def get_queried_field_labels(q): if len(q._entities) == 0 and isinstance( q._entities[0], q...
26.785714
78
0.722667
916ce0284cd602926dff32f12cd17b32c52eaa93
25,830
py
Python
idlib/streams.py
tgbugs/idlib
4760322b023cc38a8f6800141fe8735d10fa014a
[ "MIT" ]
2
2021-11-28T23:52:48.000Z
2022-02-17T18:12:32.000Z
idlib/streams.py
tgbugs/idlib
4760322b023cc38a8f6800141fe8735d10fa014a
[ "MIT" ]
2
2020-05-22T10:40:58.000Z
2022-01-05T22:38:06.000Z
idlib/streams.py
tgbugs/idlib
4760322b023cc38a8f6800141fe8735d10fa014a
[ "MIT" ]
null
null
null
"""While the name of the class is Stream, the reality is much closer to "a random block of data/code that may or may not be executable" in the current runtime. The implication is mostly that it is possible to serialize, save-lisp-and-die, etc. something and, given the right receiving environment, recover it back to som...
38.097345
120
0.628765
916ce1734d17dde0431f67c6035ba7c969b71062
2,484
py
Python
mocu/graphical_model/mocu/dakota_runs/post_proc_dakota.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
mocu/graphical_model/mocu/dakota_runs/post_proc_dakota.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
mocu/graphical_model/mocu/dakota_runs/post_proc_dakota.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
import sys import numpy as np import matplotlib.pyplot as plt def read_dakota_dat_file( dat_file ): f = open( dat_file , "r" ) data = f.readlines() data = [ di.split() for di in data ] header = data[0] data = data[1:] xyz = [ di[2:] for di in data ] xyz = [ [ float(di...
25.875
94
0.535829
916ceaacb13ae887901d108080b103e8a27290b9
2,583
py
Python
backend/apps/volontulo/tests/views/api/offers/test_delete.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
backend/apps/volontulo/tests/views/api/offers/test_delete.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
backend/apps/volontulo/tests/views/api/offers/test_delete.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ .. module:: test_delete """ from rest_framework import status from rest_framework.test import APITestCase from apps.volontulo.tests.views.offers.commons import TestOffersCommons class TestAdminUserOffersDeleteAPIView(TestOffersCommons, APITestCase): """Tests for REST API's delete o...
29.352273
78
0.67441
916d54a5cb71f7520da269c9dcb2ee2791691eb8
3,839
py
Python
trax/layers/__init__.py
GeorgeDittmar/trax
a0483a12cb7ebece40b5e302e8e81fd9249c6ef6
[ "Apache-2.0" ]
1
2020-11-26T08:19:22.000Z
2020-11-26T08:19:22.000Z
trax/layers/__init__.py
GeorgeDittmar/trax
a0483a12cb7ebece40b5e302e8e81fd9249c6ef6
[ "Apache-2.0" ]
null
null
null
trax/layers/__init__.py
GeorgeDittmar/trax
a0483a12cb7ebece40b5e302e8e81fd9249c6ef6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax Authors. # # 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 a...
39.989583
78
0.780412
916d73dba08f915e770e87297f9f6a212d1f370e
232
py
Python
api/__init__.py
AlexeyProskuryakov/vknotifier
be58008dec0c967718fdbd70da615c1d4966d5b5
[ "MIT" ]
null
null
null
api/__init__.py
AlexeyProskuryakov/vknotifier
be58008dec0c967718fdbd70da615c1d4966d5b5
[ "MIT" ]
null
null
null
api/__init__.py
AlexeyProskuryakov/vknotifier
be58008dec0c967718fdbd70da615c1d4966d5b5
[ "MIT" ]
null
null
null
from api.vk import VK_API __author__ = '4ikist' api = None apis = { 'vk': VK_API } def get_api(api_name, login, pwd): global api if not api: api = apis[api_name](login, pwd) return api
12.888889
41
0.564655
916dcf50fb56b357b2437011da7095fa26f583de
538
py
Python
build/tests/luci-auth.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
build/tests/luci-auth.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
build/tests/luci-auth.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 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. """Test luci-auth cipd package by running 'luci-auth help'.""" import subprocess import sys import os # .exe on Windows. EXE_SUFFIX = '.exe' if sys.platfo...
23.391304
72
0.710037
916df208b078621ca1c231c8872b3e92cd1518e6
2,536
py
Python
modules/dbnd/src/dbnd/_core/tracking/backends/channels/abstract_channel.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/tracking/backends/channels/abstract_channel.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/tracking/backends/channels/abstract_channel.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
import logging from abc import ABCMeta import six logger = logging.getLogger(__name__) @six.add_metaclass(ABCMeta) class TrackingChannel(object): def _handle(self, name, data): logger.info("Tracking %s.%s is not implemented", self.__class__.__name__, name) def init_scheduled_job(self, data): ...
32.512821
87
0.738565
916e083ffabdd2758bef601276937644ee5e46dd
537
py
Python
goods/migrations/0021_auto_20171214_1318.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
3
2018-10-16T09:36:12.000Z
2019-04-15T03:12:49.000Z
goods/migrations/0021_auto_20171214_1318.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
goods/migrations/0021_auto_20171214_1318.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-12-14 13:18 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('goods', '0020_stoptrainaction'), ] operations = [ migrations.AlterField( ...
25.571429
136
0.603352
916e17d811ab293ecc358f7b801d2b9ac90796d5
4,504
py
Python
transcript.py
jpritt/boiler
c6f5d79dccddc9e662a648631bf3067ad907ed7a
[ "MIT" ]
13
2016-02-22T23:18:03.000Z
2020-05-28T11:38:09.000Z
transcript.py
jpritt/boiler
c6f5d79dccddc9e662a648631bf3067ad907ed7a
[ "MIT" ]
null
null
null
transcript.py
jpritt/boiler
c6f5d79dccddc9e662a648631bf3067ad907ed7a
[ "MIT" ]
3
2016-06-02T13:08:05.000Z
2018-08-15T18:38:16.000Z
class Transcript: ''' ''' def __init__(self, chrom, start, end, cov, name): self.chrom = chrom self.start = start self.end = end self.cov = cov self.exons = [] self.name = name def scoreTranscript(self, transcript, threshold): ''' Compare this tra...
33.362963
124
0.520204
916e2a415cf3fc04aacf940eb7f206fcff27e2de
2,815
py
Python
image_features_extraction.py
SereneQI/text-image-similarity
696f28ac9fa6dfe19cbd4e890fe3975ad3fff92e
[ "BSD-3-Clause-Clear" ]
4
2019-11-22T12:46:42.000Z
2021-03-10T00:20:58.000Z
image_features_extraction.py
Sereene/text-image-similarity
696f28ac9fa6dfe19cbd4e890fe3975ad3fff92e
[ "BSD-3-Clause-Clear" ]
null
null
null
image_features_extraction.py
Sereene/text-image-similarity
696f28ac9fa6dfe19cbd4e890fe3975ad3fff92e
[ "BSD-3-Clause-Clear" ]
1
2019-11-22T12:46:45.000Z
2019-11-22T12:46:45.000Z
import argparse import time import numpy as np import torch from dataset.dataset import FileDataset from models.model import joint_embedding from utils.utils import save_obj from torch.utils.data import DataLoader from torchvision import transforms device = torch.device("cuda") # device = torch.device...
34.753086
148
0.660746
916e5b898815ba80b965bc5bc673f3b86cc1a652
404
py
Python
algorithms/frog_jumps/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
algorithms/frog_jumps/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
algorithms/frog_jumps/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
def frog_jumps(x: int, y: int, d: int) -> int: jumps = 0 # no need to jump, we are already there if y == x: return jumps distance_to_cover = y - x # it will only take us 1 jump if distance_to_cover < d: return 1 if distance_to_cover % d == 0: jumps = distance_to_c...
19.238095
46
0.564356
916e8fea0bf7ba996f23ed4115bbcbc9222970d1
30
py
Python
src/clusto/drivers/devices/powerstrips/__init__.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
216
2015-01-10T17:03:25.000Z
2022-03-24T07:23:41.000Z
src/clusto/drivers/devices/powerstrips/__init__.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
23
2015-01-08T16:51:22.000Z
2021-03-13T12:56:04.000Z
src/clusto/drivers/devices/powerstrips/__init__.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
49
2015-01-08T00:13:17.000Z
2021-09-22T02:01:20.000Z
from basicpowerstrip import *
15
29
0.833333
916ea1de2efa32babe160d8131dcaaf27589c9dc
8,004
py
Python
statistics/plots.py
TeamJumpstart/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
10
2021-04-18T17:54:02.000Z
2021-07-26T19:58:41.000Z
statistics/plots.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-21T15:13:41.000Z
2021-04-21T15:13:41.000Z
statistics/plots.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-20T09:42:50.000Z
2021-04-20T09:42:50.000Z
from pathlib import Path from statistics.stats import fetch_statistics, get_win_rate, normalize_winrate import matplotlib.dates as mdates import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from visualization import WinRateAx def plot_win_rate_over_time(output_fi...
32.938272
119
0.6503
916eb8326d4721a01d69c41980244e34418842a0
610
py
Python
dgpy/boundary_conditions/Robin.py
nilsleiffischer/dgpy
85d0b85cddb0cf030f35d5043a959b5d23424bc8
[ "MIT" ]
1
2021-04-12T16:38:58.000Z
2021-04-12T16:38:58.000Z
dgpy/boundary_conditions/Robin.py
nilsleiffischer/dgpy
85d0b85cddb0cf030f35d5043a959b5d23424bc8
[ "MIT" ]
null
null
null
dgpy/boundary_conditions/Robin.py
nilsleiffischer/dgpy
85d0b85cddb0cf030f35d5043a959b5d23424bc8
[ "MIT" ]
1
2019-09-24T09:40:33.000Z
2019-09-24T09:40:33.000Z
import numpy as np from dgpy.domain import BoundaryCondition class Robin: def __init__(self, dirichlet_weight, neumann_weight, constant): self.dirichlet_weight = dirichlet_weight self.neumann_weight = neumann_weight self.constant = constant def nonlinear(self, u, n_dot_flux, face): ...
33.888889
76
0.672131
916f02932b750aa581a0de802511e94ec1a18ae7
710
py
Python
1041.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
1041.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
1041.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
''' @author: l4zyc0d3r People who are happy makes other happy. I am gonna finish it slowly but definitely.cdt ''' "GLGLGGLGL" class Solution: def isRobotBounded(self, i: str) -> bool: ax = [[1,0], [1,1], [-1,0], [-1, -1]] se = [] d = 0 cx, cy = 0,0 for x in i: ...
26.296296
86
0.408451
916f19e85b725749435535cdf5f4bf9fb58de890
151
py
Python
master/tutorials/30-days-of-code/30-recursion/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
master/tutorials/30-days-of-code/30-recursion/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
master/tutorials/30-days-of-code/30-recursion/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
#!/bin/python3 import sys def factorial(n): if n <=1: return 1 return n * factorial(n-1) n = int(input().strip()) print(factorial(n))
15.1
29
0.596026
916f58d3d5a451775674fa3de742bd82a5a4c57c
3,411
py
Python
CadVlan/User/forms.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
17
2015-05-19T20:03:45.000Z
2022-03-24T06:19:47.000Z
CadVlan/User/forms.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
41
2015-01-27T18:36:07.000Z
2021-06-10T20:34:03.000Z
CadVlan/User/forms.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
19
2016-09-12T07:35:42.000Z
2022-01-28T23:46:11.000Z
# -*- coding:utf-8 -*- # 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 "Lic...
45.48
131
0.661976
916f640f6fd076a7fb1e8bd342ac889a3db51e7f
13,752
py
Python
game.py
JordanLeich/Zombie-Survival-Game
3b47b1f077f52207982897cb6cd199443dbae292
[ "MIT" ]
10
2021-08-14T06:39:43.000Z
2021-12-12T11:53:10.000Z
game.py
JordanLeich/Alpha-Zombie-Survival-Game
3b47b1f077f52207982897cb6cd199443dbae292
[ "MIT" ]
1
2021-05-13T22:47:50.000Z
2021-05-14T01:21:58.000Z
game.py
JordanLeich/Alpha-Zombie-Survival-Game
3b47b1f077f52207982897cb6cd199443dbae292
[ "MIT" ]
10
2021-05-14T00:59:32.000Z
2021-11-10T01:56:33.000Z
#!/usr/bin/python3 """ This file holds all the main menus of the game and starts the game. """ # Created on 5/11/2021 import sys import time import webbrowser from PIL import Image from classes import Player, Difficulty from gamedata import GameData from other.colors import print_blue, print_green, print_sle...
44.21865
152
0.610893
916fbafdee1a6b74ff260cfc28b2bc36c0aaa9e5
247
py
Python
imbi/endpoints/default.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
1
2021-06-23T18:34:47.000Z
2021-06-23T18:34:47.000Z
imbi/endpoints/default.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
null
null
null
imbi/endpoints/default.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
2
2022-02-11T22:06:18.000Z
2022-02-21T19:35:06.000Z
""" Request Handler used for rendering errors """ from tornado import web from imbi.endpoints import base class RequestHandler(base.RequestHandler): NAME = 'not-found' def get(self, *args, **kwargs): raise web.HTTPError(404)
15.4375
42
0.696356
916fd8d67dbac0ff8afb310b6eda69b09ea0f847
3,335
py
Python
src/python/grapl-tests-common/grapl_tests_common/clients/grapl_web_client.py
grapl-security/grapl
24caa7fb4424645495d99fb338e2231fc4f66712
[ "Apache-2.0" ]
291
2020-04-24T03:40:06.000Z
2022-03-29T02:47:16.000Z
src/python/grapl-tests-common/grapl_tests_common/clients/grapl_web_client.py
silocityit/grapl
3ec918cc4c0ce18fafff0a2917c726fa0fd0f1d0
[ "Apache-2.0" ]
848
2020-04-26T19:23:37.000Z
2022-03-31T16:57:39.000Z
src/python/grapl-tests-common/grapl_tests_common/clients/grapl_web_client.py
silocityit/grapl
3ec918cc4c0ce18fafff0a2917c726fa0fd0f1d0
[ "Apache-2.0" ]
43
2020-04-27T20:59:18.000Z
2022-03-29T21:56:09.000Z
import os from http import HTTPStatus from typing import Optional import boto3 import requests from grapl_common.env_helpers import SecretsManagerClientFactory from grapl_common.grapl_logger import get_module_grapl_logger from grapl_tests_common.clients.common import endpoint_url _JSON_CONTENT_TYPE_HEADERS = {"Conten...
31.168224
77
0.607196
916ff700e7142fff15be00e663afaa70b9733ea0
17,451
py
Python
rlkit/torch/sets/debug.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/sets/debug.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/sets/debug.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import time from collections import OrderedDict, namedtuple from os import path as osp from typing import MutableMapping import typing import cv2 import gym import numpy as np from torch import optim from rlkit import pythonplusplus as ppp from rlkit.core import logger from rlkit.envs.encoder_wrappers import Encoder,...
32.079044
88
0.608275
91700b85bd9e0878c8a72ee9d5a78a67b1bf95e9
873
py
Python
src/olympia/blocklist/migrations/0002_auto_20191107_1302.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/blocklist/migrations/0002_auto_20191107_1302.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/blocklist/migrations/0002_auto_20191107_1302.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
# Generated by Django 2.2.6 on 2019-11-07 13:02 from django.db import migrations, models def set_guid_from_addon(apps, schema_editor): Block = apps.get_model('blocklist', 'Block') for block in Block.objects.filter(guid=None): block.update(guid=block.addon.guid) class Migration(migrations.Migration)...
28.16129
121
0.633448
917026e0b0c7e452c017c9b1fa879e316120d173
1,873
py
Python
CBDGUI/GUI/utils/WebDataUpdater.py
ODeinsN/ChatDuelBot
a7ab2435926eba6be5139cfe54aaa415c3f588bc
[ "Unlicense" ]
null
null
null
CBDGUI/GUI/utils/WebDataUpdater.py
ODeinsN/ChatDuelBot
a7ab2435926eba6be5139cfe54aaa415c3f588bc
[ "Unlicense" ]
null
null
null
CBDGUI/GUI/utils/WebDataUpdater.py
ODeinsN/ChatDuelBot
a7ab2435926eba6be5139cfe54aaa415c3f588bc
[ "Unlicense" ]
null
null
null
import pickle from pathlib import Path from threading import Lock from typing import Any from ..models import WebData def write_data_into_file(comment_rate: list[float], comment_counter: list[int], top_words: list[dict[str, Any]], current_question: str): lock = Lock() with lock: ...
37.46
112
0.648692
917051693b6142f76c874a24a50b9fff7c855b2f
336
py
Python
02-principles/magic-numbers.py
johnehunt/PythonCleanCode
b0ade446cc98cdc1379f06ad20cc3c6de772a2bb
[ "Apache-2.0" ]
1
2020-05-11T13:58:29.000Z
2020-05-11T13:58:29.000Z
02-principles/magic-numbers.py
johnehunt/PythonCleanCode
b0ade446cc98cdc1379f06ad20cc3c6de772a2bb
[ "Apache-2.0" ]
null
null
null
02-principles/magic-numbers.py
johnehunt/PythonCleanCode
b0ade446cc98cdc1379f06ad20cc3c6de772a2bb
[ "Apache-2.0" ]
null
null
null
from random import randint a = [] cards = [] def swap_entries(array, x, y): pass # What does this mean? for i in range(1, 52): j = (i + randint(1, 52) - 1) - 1 swap_entries(a, i, j) # More meangful? DECK_SIZE = 52 for i in range(1, DECK_SIZE): j = (i + randint(1, DECK_SIZE) - 1) - 1 swap_entri...
16
43
0.589286
9170673c3a21d7145f3acb7353ee031282da8511
141,403
py
Python
research/object_detection/core/preprocessor.py
barvins/models
3e1dde77f8d4f833ca972230b9cb2ca48dee4f5d
[ "Apache-2.0" ]
null
null
null
research/object_detection/core/preprocessor.py
barvins/models
3e1dde77f8d4f833ca972230b9cb2ca48dee4f5d
[ "Apache-2.0" ]
null
null
null
research/object_detection/core/preprocessor.py
barvins/models
3e1dde77f8d4f833ca972230b9cb2ca48dee4f5d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow 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 applica...
41.20134
172
0.670156
9170722c848189087f38d1c296c8f6252d1a4083
3,165
py
Python
bandwidth/voice/voice_client.py
roverdotcom/python-sdk
c6947fb3331b77f0064aeec2dcf0c4ff178de34c
[ "MIT" ]
5
2020-11-04T14:29:37.000Z
2022-02-23T20:33:07.000Z
bandwidth/voice/voice_client.py
roverdotcom/python-sdk
c6947fb3331b77f0064aeec2dcf0c4ff178de34c
[ "MIT" ]
3
2021-07-23T18:48:48.000Z
2022-03-15T14:59:07.000Z
bandwidth/voice/voice_client.py
roverdotcom/python-sdk
c6947fb3331b77f0064aeec2dcf0c4ff178de34c
[ "MIT" ]
8
2020-04-14T09:22:53.000Z
2022-03-11T10:46:06.000Z
# -*- coding: utf-8 -*- """ bandwidth This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). """ from bandwidth.decorators import lazy_property from bandwidth.configuration import Configuration from bandwidth.configuration import Environment from bandwidth.voice.controllers....
55.526316
134
0.584518
917099c660f2e1c0f55f27f1d484523fdb175de3
18,563
py
Python
lingvo/tasks/asr/model.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
4
2019-06-08T00:19:06.000Z
2020-08-03T16:28:53.000Z
lingvo/tasks/asr/model.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
null
null
null
lingvo/tasks/asr/model.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
5
2018-12-11T08:05:16.000Z
2020-05-30T03:40:13.000Z
# Copyright 2018 The TensorFlow 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 applica...
39.749465
80
0.689921
9170aa1948c5b69664f29edf8fdafd334fda3aae
12,247
py
Python
tests/test_cli/test_arguments.py
muggenhor/sphinxcontrib-versioning
d1e3a2cd33b7b91bfe0950d6318812e260f0ede0
[ "MIT" ]
null
null
null
tests/test_cli/test_arguments.py
muggenhor/sphinxcontrib-versioning
d1e3a2cd33b7b91bfe0950d6318812e260f0ede0
[ "MIT" ]
null
null
null
tests/test_cli/test_arguments.py
muggenhor/sphinxcontrib-versioning
d1e3a2cd33b7b91bfe0950d6318812e260f0ede0
[ "MIT" ]
null
null
null
"""Test mixing sources of arguments/settings.""" from os.path import join import pytest from click.testing import CliRunner from sphinxcontrib.versioning.cli import cli from sphinxcontrib.versioning.git import IS_WINDOWS @pytest.fixture(autouse=True) def setup(monkeypatch, local_empty): """Set cli.NO_EXECUTE t...
37.224924
110
0.6186
9170ae07b67e64bda810e2c22cf40ad92961f17e
21,294
py
Python
code/datasets.py
JosephKJ/DistillGAN
a9f4386670fcf2379bc4705b3e261ec5e35419a9
[ "MIT" ]
4
2019-04-22T01:56:01.000Z
2021-02-25T11:05:06.000Z
code/datasets.py
JosephKJ/DistillGAN
a9f4386670fcf2379bc4705b3e261ec5e35419a9
[ "MIT" ]
null
null
null
code/datasets.py
JosephKJ/DistillGAN
a9f4386670fcf2379bc4705b3e261ec5e35419a9
[ "MIT" ]
2
2020-04-23T18:48:04.000Z
2021-09-25T11:32:31.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import torch.utils.data as data import torchvision.transforms as transforms from PIL import Image import PIL import os import re import os.path import pickle import rand...
36.524871
109
0.592233
9170ccf0113476cb764bd6cfb34c5680b6694d27
30
py
Python
btd6_memory_info/generated/UnityEngine/ParticleSystemJobs/NativeParticleData/native_particle_data.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/ParticleSystemJobs/NativeParticleData/native_particle_data.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/ParticleSystemJobs/NativeParticleData/native_particle_data.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class NativeParticleData: pass
30
30
0.9
91711c2b48aea4e4f70b659b721ea89712a1c45c
5,285
py
Python
platon/exceptions.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/exceptions.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/exceptions.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
import datetime import time from platon.types import ( BlockData, ) class BadFunctionCallOutput(Exception): """ We failed to decode ABI output. Most likely ABI mismatch. """ pass class BlockNumberOutofRange(Exception): """ block_identifier passed does not match known block. """...
21.838843
97
0.667928
91712dee558ff9b7f7fc0251043014a38d28fd6a
74
py
Python
watex/viewer/__init__.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
3
2021-06-19T02:16:46.000Z
2021-07-16T15:56:49.000Z
watex/viewer/__init__.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
watex/viewer/__init__.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
if __package__ is None or __name__=='__main__': __package__= 'watex'
24.666667
48
0.716216
9171382bc1484d6f8ee8f2a9990ec4caa0cf3866
1,741
py
Python
src/animation_export.py
hsoju/Cally
0383a7d6a6df8f94314b9260f9905cf38f301e14
[ "MIT" ]
null
null
null
src/animation_export.py
hsoju/Cally
0383a7d6a6df8f94314b9260f9905cf38f301e14
[ "MIT" ]
null
null
null
src/animation_export.py
hsoju/Cally
0383a7d6a6df8f94314b9260f9905cf38f301e14
[ "MIT" ]
null
null
null
from typing import Set from bpy.props import BoolProperty, EnumProperty, StringProperty from bpy.types import Context, Operator from bpy_extras.io_utils import ExportHelper from .xfile.xaf import export_xaf class CalAnimationExporter(Operator, ExportHelper): """Exports selected armature as a Cal3D XAF file""" ...
28.080645
115
0.634693
91715d8bcbecf15871aabf34306c414ea20ec628
1,147
py
Python
clients/client/python/test/test_submit_self_service_registration_flow_with_oidc_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/test/test_submit_self_service_registration_flow_with_oidc_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/test/test_submit_self_service_registration_flow_with_oidc_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.71 Contact: support@ory.sh Generated by: htt...
31
194
0.768091
91717733c8918340ebcdeced26e7ed5d3fea635d
2,229
py
Python
server/songhelper/mood_from_words.py
mezidia/song-helper
059d02f4e5e4758bef04322ee53d1f1e815ba08b
[ "MIT" ]
6
2021-02-10T10:50:18.000Z
2021-08-21T10:44:37.000Z
server/songhelper/mood_from_words.py
mezgoodle/song-helper
059d02f4e5e4758bef04322ee53d1f1e815ba08b
[ "MIT" ]
116
2021-02-10T08:09:03.000Z
2022-03-30T01:50:02.000Z
server/songhelper/mood_from_words.py
mezgoodle/song-helper
059d02f4e5e4758bef04322ee53d1f1e815ba08b
[ "MIT" ]
1
2021-08-16T14:31:13.000Z
2021-08-16T14:31:13.000Z
# Load Exploratory Data Analysis (EDA) packages import pandas as pd # Load NLP and Lemmanization packages import spacy # Machine Learning (ML) packages from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.pipeline import Pipeline from sklearn.svm import LinearSVC # Splitting Data Set from sklearn.mo...
35.380952
161
0.686406
9171819e3e65a02595051a08449808615d7778f2
2,807
py
Python
apollo/common/decorators.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
apollo/common/decorators.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
apollo/common/decorators.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
from functools import wraps from flask import make_response, jsonify def get_object(model=None): """ get_object easily assign self.object with an model instance :param model: :return: """ def decorator(func): @wraps(func) def func_wrapper(*args, **kwargs): id = kwa...
31.897727
136
0.620948
917186faf71c02f25d7a7cf1e1ed1b0d74d03687
1,443
py
Python
superset/migrations/versions/960c69cb1f5b_.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
108
2018-01-22T11:09:59.000Z
2021-01-15T10:53:04.000Z
superset/migrations/versions/960c69cb1f5b_.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
112
2018-01-25T22:57:21.000Z
2019-08-22T20:08:48.000Z
superset/migrations/versions/960c69cb1f5b_.py
zhwXF/Superset
14c3488c79f8f3cdbd1123e8f7a92f8746c2db09
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
24
2018-01-19T22:54:39.000Z
2020-11-12T13:04:25.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...
35.195122
106
0.767845
9171d3f9da5ef0aa417d101371261fddbed2de2c
250
py
Python
example/hello_world.py
lilac/WeRobot
29fd70631b736a0c339f16f7729ea89f986c8bae
[ "MIT" ]
1,904
2018-04-26T02:05:13.000Z
2022-03-31T11:38:46.000Z
example/hello_world.py
Milleree/WeRoBot
f9777f792d55ae70e7262f13e6e3f3667a167036
[ "MIT" ]
422
2018-05-02T14:56:00.000Z
2022-03-29T00:20:01.000Z
example/hello_world.py
Milleree/WeRoBot
f9777f792d55ae70e7262f13e6e3f3667a167036
[ "MIT" ]
393
2018-04-28T15:02:09.000Z
2022-03-25T16:24:16.000Z
# -*- coding: utf-8 -*- import werobot robot = werobot.WeRoBot(token='tokenhere') @robot.filter("帮助") def show_help(message): return """ 帮助 XXXXX """ @robot.text def hello_world(message): return 'Hello World!' robot.run()
11.363636
42
0.62
91721186fcb545132a55a234a7b307b550a42463
1,551
py
Python
carla/recourse_methods/catalog/causal_recourse/cost.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/recourse_methods/catalog/causal_recourse/cost.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/recourse_methods/catalog/causal_recourse/cost.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
import numpy as np import pandas as pd import torch def action_set_cost( factual_instance: pd.Series, action_set: dict, ranges: pd.Series, norm_type=2, ) -> float: """ Compute cost of action Parameters ---------- factual_instance: pd.Series Contains a single factual instan...
25.85
88
0.649259
91722ef90dd1e4973807fbf0390a22ddd0f5532a
21,711
py
Python
lib/knn_defense.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
15
2019-06-30T12:30:17.000Z
2021-12-07T20:20:36.000Z
lib/knn_defense.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
2
2020-06-11T10:10:52.000Z
2021-12-21T08:50:33.000Z
lib/knn_defense.py
chawins/entangle-rep
3e9e0d6e7536b0de0e35d7f8717f2ccc8e887759
[ "MIT" ]
9
2019-07-09T14:52:30.000Z
2020-10-27T19:18:34.000Z
''' Implement CVPR 2019 Paper: "Defense Against Adversarial Images using Web-Scale Nearest-Neighbor Search" ''' import logging import numpy as np import torch import torch.nn.functional as F import torch.optim as optim import faiss from lib.faiss_utils import * from sklearn.decomposition import PCA INFTY = 1e20 cl...
38.838998
81
0.535397
917230262d56903b41a3fb8e2618de605ae78a45
2,522
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_15/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_15/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_15/operations/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
50.44
100
0.810864
9172fd9f2462e43f8b7d25684c2106279d22faa1
77,710
py
Python
oscar/lib/python2.7/site-packages/django/db/models/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/db/models/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/db/models/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import copy import inspect import warnings from itertools import chain from django.apps import apps from django.conf import settings from django.core import checks from django.core.exceptions import ( NON_FIELD_ERRORS, FieldDoesNotExist, FieldError, MultipleObjec...
42.697802
115
0.551499
91730bb8fbc93004a4c1ef2ade32b222e1a5688f
631
py
Python
dojango/urls.py
william-gr/dojango
29873cd6fcf6b039aafbef126577415148e6319b
[ "BSD-3-Clause" ]
null
null
null
dojango/urls.py
william-gr/dojango
29873cd6fcf6b039aafbef126577415148e6319b
[ "BSD-3-Clause" ]
null
null
null
dojango/urls.py
william-gr/dojango
29873cd6fcf6b039aafbef126577415148e6319b
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.conf.urls import url from dojango.util import media from django.views import test, test_countries, test_states, datagrid_list urlpatterns = [ url(r'^test/$', test, name='dojango-test'), url(r'^test/countries/$', test_countries), url(r'^test/states/$', test_stat...
35.055556
110
0.714739
9173777c327cf11b6369c8e18d23a434c7bdfc19
14,186
py
Python
sync/PRESUBMIT.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
sync/PRESUBMIT.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
sync/PRESUBMIT.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (c) 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. """Presubmit script for sync This checks that ModelTypeInfo entries in model_type.cc follow conventions. See CheckModelTypeInfoMap or model_type.cc for m...
39.405556
80
0.74926
91738c1e549e23a5c867a68eb6588abf8652e467
2,289
py
Python
src/nitpick/style/fetchers/base.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
251
2019-08-06T08:50:01.000Z
2022-03-26T13:49:19.000Z
src/nitpick/style/fetchers/base.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
429
2019-06-07T09:12:52.000Z
2022-03-31T23:29:26.000Z
src/nitpick/style/fetchers/base.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
18
2019-08-12T14:16:28.000Z
2022-03-15T13:54:26.000Z
"""Base class for fetchers that wrap inner fetchers with caching ability.""" from dataclasses import dataclass from datetime import datetime from pathlib import Path from typing import Dict, Tuple from cachy import CacheManager from loguru import logger from slugify import slugify from nitpick.enums import CachingEnu...
30.52
80
0.669725
91738efeef065a95a83691df29aaf7c414ebca48
4,445
py
Python
tests/test_augmentation.py
Zozman/mindmeld
d86cc823c9b36dbafc8fc8f8ea04085ca1ffdeb5
[ "Apache-2.0" ]
580
2019-03-24T20:59:09.000Z
2022-03-23T17:06:43.000Z
tests/test_augmentation.py
Zozman/mindmeld
d86cc823c9b36dbafc8fc8f8ea04085ca1ffdeb5
[ "Apache-2.0" ]
199
2019-04-30T18:15:46.000Z
2022-03-22T17:11:33.000Z
tests/test_augmentation.py
Zozman/mindmeld
d86cc823c9b36dbafc8fc8f8ea04085ca1ffdeb5
[ "Apache-2.0" ]
164
2019-04-25T08:27:28.000Z
2022-03-23T12:44:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_augmentation ---------------------------------- Tests the ``augmentation`` module. """ import pytest from mindmeld.augmentation import AugmentorFactory, UnsupportedLanguageError from mindmeld.components._config import get_augmentation_config from mindmeld.resou...
33.171642
113
0.693813
917395479d8a58235a04feaf607f2ad53d246a43
16,121
py
Python
appengine/predator/app/frontend/handlers/test/crash_config_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/predator/app/frontend/handlers/test/crash_config_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/predator/app/frontend/handlers/test/crash_config_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 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. import copy import json import re import webapp2 import webtest from google.appengine.api import users from common.model.crash_config import CrashConfig as...
38.292162
80
0.703058
917398989c0dee1003522d5bc84d33e38f61dd0c
3,464
py
Python
tests/fixtures.py
selwin/rq
801b3b7293517adefb8b13c7c3aa9f7032b474fe
[ "BSD-2-Clause-FreeBSD" ]
1
2021-05-17T13:35:21.000Z
2021-05-17T13:35:21.000Z
tests/fixtures.py
selwin/rq
801b3b7293517adefb8b13c7c3aa9f7032b474fe
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/fixtures.py
selwin/rq
801b3b7293517adefb8b13c7c3aa9f7032b474fe
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- """ This file contains all jobs that are used in tests. Each of these test fixtures has a slighty different characteristics. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import os import time import sys from rq import Connect...
23.248322
78
0.656755
9173afb8556b5559c7a57bc76dd136bc5e6079da
57,766
py
Python
lib/gdata/youtube/service.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
5
2016-05-08T23:51:38.000Z
2021-05-02T10:09:29.000Z
lib/gdata/youtube/service.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
null
null
null
lib/gdata/youtube/service.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
1
2018-01-16T16:03:44.000Z
2018-01-16T16:03:44.000Z
#!/usr/bin/python # # Copyright (C) 2008 Google 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 applicable law ...
37.077022
94
0.688138
9173cd86d962b7b60523a9b9fccb9a65e9be0b9a
70
py
Python
django/contrib/formtools/wizard/tests/wizardtests/__init__.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
4
2015-08-27T22:03:47.000Z
2017-09-04T08:13:44.000Z
django/contrib/formtools/wizard/tests/wizardtests/__init__.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
django/contrib/formtools/wizard/tests/wizardtests/__init__.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
1
2020-01-04T14:51:18.000Z
2020-01-04T14:51:18.000Z
from django.contrib.formtools.wizard.tests.wizardtests.tests import *
70
70
0.842857
917417db1939f22bbffb0ba82549f6ee9a987494
3,342
py
Python
Assignment_3/Assignment3/src/Task2.py
thealphadollar/ML-Assignments
547c115d0d62c770aa673bf98fd56ff184bcfbd6
[ "MIT" ]
null
null
null
Assignment_3/Assignment3/src/Task2.py
thealphadollar/ML-Assignments
547c115d0d62c770aa673bf98fd56ff184bcfbd6
[ "MIT" ]
1
2021-02-02T23:14:05.000Z
2021-02-02T23:14:05.000Z
Assignment_3/Assignment3/src/Task2.py
thealphadollar/CS60050-ML-Assignments
547c115d0d62c770aa673bf98fd56ff184bcfbd6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 25 22:11:58 2020 @author: praveshj """ import numpy as np import math #Loading the data from saved text file. print("Data Loading. May Take Time....") X = np.genfromtxt('../data/tfidf.csv',delimiter = ' ') #Defining a class cluster, which stor...
27.393443
123
0.632855
91741eb3c37593a40f089d2ec2901274f9c160a4
3,855
py
Python
vb_suite/stat_ops.py
ssalonen/pandas
1929563fdb5358a41420d103a388aa2bd494d543
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2017-03-10T04:16:05.000Z
2019-04-19T23:02:48.000Z
vb_suite/stat_ops.py
pierre-haessig/pandas
f9e0b7df8ca8a92133d3cea0a26181140f991e2d
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
vb_suite/stat_ops.py
pierre-haessig/pandas
f9e0b7df8ca8a92133d3cea0a26181140f991e2d
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from vbench.benchmark import Benchmark from datetime import datetime common_setup = """from pandas_vb_common import * """ #---------------------------------------------------------------------- # nanops setup = common_setup + """ s = Series(np.random.randn(100000), index=np.arange(100000)) s[::2] = np.nan """ stat_...
31.341463
74
0.603372
917451e4817f71ac258b53955b04d9feeb4e8a5b
9,474
py
Python
download.py
Space-Eye/planet-com-api
133f48909952455ab2f5683356ff904ef39c4269
[ "MIT" ]
null
null
null
download.py
Space-Eye/planet-com-api
133f48909952455ab2f5683356ff904ef39c4269
[ "MIT" ]
null
null
null
download.py
Space-Eye/planet-com-api
133f48909952455ab2f5683356ff904ef39c4269
[ "MIT" ]
null
null
null
""" Download images from planet.com API """ import configparser import json import queue import time import multiprocessing as mp import os import requests from requests.auth import HTTPBasicAuth import progressbar # pylint: disable=E0401 CONFIG = configparser.ConfigParser() CONFIG.read('config.ini') ITEM_TYPE = "P...
33.359155
79
0.587608
9174738fbf81ee7132302521f93fb3cfa07ea347
1,538
py
Python
python/phonenumbers/data/region_DJ.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
2
2019-03-30T02:12:54.000Z
2021-03-08T18:59:40.000Z
python/phonenumbers/data/region_DJ.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/region_DJ.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
1
2018-11-10T03:47:34.000Z
2018-11-10T03:47:34.000Z
"""Auto-generated file, do not edit by hand. DJ metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_DJ = PhoneMetadata(id='DJ', country_code=253, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[27]\\d{7}', possible_number_pattern='\\...
85.444444
143
0.770481