hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
acfb37e7e0a118d496771fd2c7339b134f96c119
971
py
Python
Bugscan_exploits-master/exp_list/exp-747.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
Bugscan_exploits-master/exp_list/exp-747.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
Bugscan_exploits-master/exp_list/exp-747.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ POC Name: 用友 country 和 language字段任意文件下载 Author : a mail : a@lcx.cc Referer :http://www.wooyun.org/bugs/wooyun-2015-096676 """ def assign(service, arg): if service == "yongyou_nc": return True, arg def audit(arg): payloads = [ ...
31.322581
164
0.526262
acfb3a44eafc3a4b9b0827259f7b2ba8ccbfa0fc
10,347
py
Python
src/run_transformer_ner.py
uf-hobi-informatics-lab/UF_HOBI_NER_LIB
8ab97f5889222337a3b61060a203de4fc3cdb5be
[ "MIT" ]
null
null
null
src/run_transformer_ner.py
uf-hobi-informatics-lab/UF_HOBI_NER_LIB
8ab97f5889222337a3b61060a203de4fc3cdb5be
[ "MIT" ]
null
null
null
src/run_transformer_ner.py
uf-hobi-informatics-lab/UF_HOBI_NER_LIB
8ab97f5889222337a3b61060a203de4fc3cdb5be
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import argparse import warnings import traceback import torch import transformers from packaging import version from transformer_ner.task import run_task from transformer_biaffine_ner.task import run_task as run_biaffine_task from transformer_ner.transfomer_log import Transf...
58.457627
118
0.653523
acfb3ac3fa6d7cf52851f72132016ac552f0f64e
15,507
py
Python
webapp/app/elster_client/elster_client.py
digitalservice4germany/steuerlotse
ef3e094e4d7d4768431a50ac4be60672cd03221d
[ "MIT" ]
20
2021-07-02T07:49:08.000Z
2022-03-18T22:26:10.000Z
webapp/app/elster_client/elster_client.py
digitalservice4germany/steuerlotse
ef3e094e4d7d4768431a50ac4be60672cd03221d
[ "MIT" ]
555
2021-06-28T15:35:15.000Z
2022-03-31T11:51:55.000Z
webapp/app/elster_client/elster_client.py
digitalservice4germany/steuerlotse
ef3e094e4d7d4768431a50ac4be60672cd03221d
[ "MIT" ]
1
2021-07-04T20:34:12.000Z
2021-07-04T20:34:12.000Z
import logging import json from datetime import datetime from decimal import Decimal import requests from flask_login import current_user, logout_user from markupsafe import escape from app.config import Config from app.data_access.audit_log_controller import create_audit_log_entry, create_audit_log_address_entry fro...
48.459375
134
0.710195
acfb3c73dc0bcd9072f1f1ca8622a9f69b51ade0
652
py
Python
django_saas_email/utils.py
leotrubach/django-saas-email
f410c9dd69d96f47ef19af88d266092a3bd60d4d
[ "MIT" ]
null
null
null
django_saas_email/utils.py
leotrubach/django-saas-email
f410c9dd69d96f47ef19af88d266092a3bd60d4d
[ "MIT" ]
null
null
null
django_saas_email/utils.py
leotrubach/django-saas-email
f410c9dd69d96f47ef19af88d266092a3bd60d4d
[ "MIT" ]
null
null
null
from .models import Mail from .tasks import send_asynchronous_mail from django.conf import settings def create_and_send_mail(**kwargs): from .models import Mail from .tasks import send_asynchronous_mail """Helper method to create and send a mail. create_and_send_mail(template_name="hello", context={...
28.347826
105
0.711656
acfb3cdf8ee8fb90af27bf8d82e1f9e03e0072a3
12,074
py
Python
pyglet/libs/win32/__init__.py
elosine/pythonfunwedy
a587f4db5da6c48849753e423e28ddb680963af2
[ "MIT" ]
null
null
null
pyglet/libs/win32/__init__.py
elosine/pythonfunwedy
a587f4db5da6c48849753e423e28ddb680963af2
[ "MIT" ]
null
null
null
pyglet/libs/win32/__init__.py
elosine/pythonfunwedy
a587f4db5da6c48849753e423e28ddb680963af2
[ "MIT" ]
null
null
null
#!/usr/bin/python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # Copyright (c) 2008-2019 pyglet contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provi...
42.967972
131
0.764618
acfb3d6414beb649815643e690ffc9e3f91790d6
147
py
Python
4444.py
JoshChand/10IST
1ed0c45bd6c41fb8fe825591826f08cb5a801012
[ "MIT" ]
null
null
null
4444.py
JoshChand/10IST
1ed0c45bd6c41fb8fe825591826f08cb5a801012
[ "MIT" ]
null
null
null
4444.py
JoshChand/10IST
1ed0c45bd6c41fb8fe825591826f08cb5a801012
[ "MIT" ]
null
null
null
import math def areaofcircle(r) : area = math.pi * r * r print("Returning area to main program. ") return(area) radius =float(
18.375
46
0.612245
acfb3ecac9304995b670706d6f54097a16b77746
322
py
Python
tests/test_base.py
StevenKangWei/learning-algorithm
fa2a32c3a650f1a95c75f82750b07de444c4bbfa
[ "MIT" ]
null
null
null
tests/test_base.py
StevenKangWei/learning-algorithm
fa2a32c3a650f1a95c75f82750b07de444c4bbfa
[ "MIT" ]
null
null
null
tests/test_base.py
StevenKangWei/learning-algorithm
fa2a32c3a650f1a95c75f82750b07de444c4bbfa
[ "MIT" ]
null
null
null
# coding=utf-8 import os import sys import unittest dirname = os.path.dirname(os.path.abspath(__file__)) project = os.path.dirname(dirname) if project not in sys.path: sys.path.insert(0, project) class BaseTestCase(unittest.TestCase): @staticmethod def main(): return unittest.main(failfast=True...
17.888889
52
0.723602
acfb3eeb927f6d2d30e8fb49d00183fc53de8770
1,272
py
Python
src/transformers/commands/download.py
ari-holtzman/transformers
8725c545e8feeecdcee0ad92ca1d80cee8f0c6e4
[ "Apache-2.0" ]
5,129
2019-09-30T11:21:03.000Z
2022-03-31T22:35:12.000Z
src/transformers/commands/download.py
hmason/transformers
ab90353f1abfd15f8d21f99395658d060679a08c
[ "Apache-2.0" ]
604
2019-10-05T00:39:46.000Z
2022-03-31T11:12:07.000Z
src/transformers/commands/download.py
hmason/transformers
ab90353f1abfd15f8d21f99395658d060679a08c
[ "Apache-2.0" ]
1,034
2019-09-30T15:01:32.000Z
2022-03-31T06:14:50.000Z
from argparse import ArgumentParser from transformers.commands import BaseTransformersCLICommand def download_command_factory(args): return DownloadCommand(args.model, args.cache_dir, args.force) class DownloadCommand(BaseTransformersCLICommand): @staticmethod def register_subcommand(parser: ArgumentPa...
38.545455
110
0.720126
acfb3f3555575b81f5d5c8f1dbe8497ad058d625
615
py
Python
pastry_shop/shop/forms.py
Raekker/pastry-shop
27e4e98594c57cbe5825a6571c6f93ad97dc1eb3
[ "MIT" ]
null
null
null
pastry_shop/shop/forms.py
Raekker/pastry-shop
27e4e98594c57cbe5825a6571c6f93ad97dc1eb3
[ "MIT" ]
null
null
null
pastry_shop/shop/forms.py
Raekker/pastry-shop
27e4e98594c57cbe5825a6571c6f93ad97dc1eb3
[ "MIT" ]
null
null
null
from django import forms from pastry_shop.shop.models import Product, ProductCart class ProductForm(forms.ModelForm): amount = forms.IntegerField(min_value=1) price = forms.DecimalField(min_value=0.01, max_digits=7, decimal_places=2) class Meta: model = Product fields = "__all__" ...
26.73913
78
0.738211
acfb3fbd4fce83b48b3bec2d780d619d94ff63ca
5,418
py
Python
wxPython/wxGlade-0.9.1/widgets/button/button.py
DarkShadow4/python
4cd94e0cf53ee06c9c31e9272572ca9656697c30
[ "MIT" ]
null
null
null
wxPython/wxGlade-0.9.1/widgets/button/button.py
DarkShadow4/python
4cd94e0cf53ee06c9c31e9272572ca9656697c30
[ "MIT" ]
null
null
null
wxPython/wxGlade-0.9.1/widgets/button/button.py
DarkShadow4/python
4cd94e0cf53ee06c9c31e9272572ca9656697c30
[ "MIT" ]
1
2020-08-19T17:25:22.000Z
2020-08-19T17:25:22.000Z
""" wxButton objects @copyright: 2002-2007 Alberto Griggio @copyright: 2014-2016 Carsten Grohmann @copyright: 2016 Dietmar Schwertberger @license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY """ import wx import config, common, compat from edit_windows import ManagedBase, EditStylesMixin from tree imp...
40.133333
131
0.665559
acfb401fe27b05b2b4cfcfcf221d80b566442b9c
3,843
py
Python
sql-cli/src/odfe_sql_cli/formatter.py
pakio/sql
cc9cc58d2aaca7ff7deda9d339ca8e2f769e022f
[ "Apache-2.0" ]
12
2020-05-14T19:01:55.000Z
2021-01-23T21:00:07.000Z
sql-cli/src/odfe_sql_cli/formatter.py
pakio/sql
cc9cc58d2aaca7ff7deda9d339ca8e2f769e022f
[ "Apache-2.0" ]
62
2020-10-05T17:30:17.000Z
2021-04-03T01:07:07.000Z
sql-cli/src/odfe_sql_cli/formatter.py
pakio/sql
cc9cc58d2aaca7ff7deda9d339ca8e2f769e022f
[ "Apache-2.0" ]
6
2020-05-09T22:12:52.000Z
2020-11-16T10:03:56.000Z
""" Copyright 2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at http://www.apache.org/licenses/LICENSE-2.0 or in the "license" file acco...
38.43
112
0.64611
acfb4109f206ba41df71b1c919f58c2f14e16a12
3,070
py
Python
discordbot/stocks/options/vol.py
greggorrell/GamestonkTerminal
caa2c88c1259967b55a7565c7ce5fb1014f39e68
[ "MIT" ]
1
2021-12-31T04:10:42.000Z
2021-12-31T04:10:42.000Z
discordbot/stocks/options/vol.py
greggorrell/GamestonkTerminal
caa2c88c1259967b55a7565c7ce5fb1014f39e68
[ "MIT" ]
null
null
null
discordbot/stocks/options/vol.py
greggorrell/GamestonkTerminal
caa2c88c1259967b55a7565c7ce5fb1014f39e68
[ "MIT" ]
null
null
null
import os import discord import matplotlib.pyplot as plt import discordbot.config_discordbot as cfg from gamestonk_terminal import config_plot as cfp from gamestonk_terminal.helper_funcs import plot_autoscale from gamestonk_terminal.stocks.options import yfinance_model async def vol_command( ctx, ticker: str...
26.929825
81
0.55342
acfb416aae0fb7f8b804942f1a8cb4c7b6facb07
10,500
py
Python
scripts/docstrings_checker.py
gurungrahul2/oppia
d4a4df42befee6b95a2d23df841a429bf433de2e
[ "Apache-2.0" ]
null
null
null
scripts/docstrings_checker.py
gurungrahul2/oppia
d4a4df42befee6b95a2d23df841a429bf433de2e
[ "Apache-2.0" ]
null
null
null
scripts/docstrings_checker.py
gurungrahul2/oppia
d4a4df42befee6b95a2d23df841a429bf433de2e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2018 The Oppia 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 requi...
34.313725
80
0.626571
acfb41d344fb5bcc68ad5555fa52080e1e7e7358
108
py
Python
wp/modules/wrapper/sparse_gaussian_process.py
ExLeonem/master-thesis-code
559ad55f15c99772358384146bd30dd517b1dfe8
[ "MIT" ]
null
null
null
wp/modules/wrapper/sparse_gaussian_process.py
ExLeonem/master-thesis-code
559ad55f15c99772358384146bd30dd517b1dfe8
[ "MIT" ]
null
null
null
wp/modules/wrapper/sparse_gaussian_process.py
ExLeonem/master-thesis-code
559ad55f15c99772358384146bd30dd517b1dfe8
[ "MIT" ]
null
null
null
from tf_al.wrapper import Model class SparseGaussianProcess(Model): def __init__(self): pass
13.5
35
0.712963
acfb41fbfe95681e90b0720c2afc365a34e55d67
4,987
py
Python
tools/devshell/contrib/run-zbi-test.py
EnderNightLord-ChromeBook/zircon-rpi
b09b1eb3aa7a127c65568229fe10edd251869283
[ "BSD-2-Clause" ]
14
2020-10-25T05:48:36.000Z
2021-09-20T02:46:20.000Z
tools/devshell/contrib/run-zbi-test.py
DamieFC/fuchsia
f78a4a1326f4a4bb5834500918756173c01bab4f
[ "BSD-2-Clause" ]
null
null
null
tools/devshell/contrib/run-zbi-test.py
DamieFC/fuchsia
f78a4a1326f4a4bb5834500918756173c01bab4f
[ "BSD-2-Clause" ]
2
2020-10-25T01:13:49.000Z
2020-10-26T02:32:13.000Z
#!/usr/bin/env python3 # Copyright 2020 The Fuchsia 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 argparse import json import os import platform import shlex import subprocess import sys def find_bootserver(build_dir): h...
29.508876
76
0.54602
acfb425e2dbfc4e4f7756e17ffc6bd01747f4862
1,220
py
Python
utils/hpatches_extract_descriptors.py
vohoaiviet/wlrn-weak-learning
4c72f9c8bb968c4d067769e3b8f433f35cd04d6b
[ "MIT" ]
null
null
null
utils/hpatches_extract_descriptors.py
vohoaiviet/wlrn-weak-learning
4c72f9c8bb968c4d067769e3b8f433f35cd04d6b
[ "MIT" ]
null
null
null
utils/hpatches_extract_descriptors.py
vohoaiviet/wlrn-weak-learning
4c72f9c8bb968c4d067769e3b8f433f35cd04d6b
[ "MIT" ]
null
null
null
import torch import torchvision import sys import os import cv2 import numpy assert len(sys.argv)==6, "* python extract.py <net definition> <net params> <patch size> <HPatches folder> <output folder>" # MODELFILE = sys.argv[1] exec(open(MODELFILE).read()) MODEL = init() MODEL.load_state_dict( torch.load(sys.argv[2]) ...
28.372093
123
0.67541
acfb43747a117199bff696d3d79199523cd4eaf4
23,410
py
Python
code/ClimateRegime.py
slibby/PyAEZ
fffba1028586c9d14a8c3a1377a12a05868b8403
[ "MIT" ]
17
2020-09-10T16:10:59.000Z
2022-03-28T13:35:53.000Z
code/ClimateRegime.py
sbaber1/PyAEZ
fffba1028586c9d14a8c3a1377a12a05868b8403
[ "MIT" ]
1
2021-07-25T14:21:08.000Z
2021-08-04T15:59:18.000Z
code/ClimateRegime.py
sbaber1/PyAEZ
fffba1028586c9d14a8c3a1377a12a05868b8403
[ "MIT" ]
22
2020-09-10T16:10:39.000Z
2022-03-21T04:00:16.000Z
""" PyAEZ Written by N. Lakmal Deshapriya and Thaileng Thol """ import numpy as np np.seterr(divide='ignore', invalid='ignore') # ignore "divide by zero" or "divide by NaN" warning import UtilitiesCalc import ETOCalc class ClimateRegime(object): # set mask of study area, this is optional def set...
50.780911
177
0.559334
acfb43dfb3dc6ef74eabdbdfe48a723aa37410b3
17,042
py
Python
dataloading/dataloading.py
tranphong1991/unisurf
8e4755c7526a8e7a964a59d1cc307976b1ba6d78
[ "MIT" ]
165
2021-09-08T07:25:00.000Z
2022-03-30T15:49:42.000Z
dataloading/dataloading.py
tranphong1991/unisurf
8e4755c7526a8e7a964a59d1cc307976b1ba6d78
[ "MIT" ]
12
2021-10-14T13:37:43.000Z
2022-03-25T05:08:48.000Z
dataloading/dataloading.py
tranphong1991/unisurf
8e4755c7526a8e7a964a59d1cc307976b1ba6d78
[ "MIT" ]
10
2021-10-21T02:36:46.000Z
2022-03-30T08:06:15.000Z
import os import glob import random import logging import torch from torch.utils import data from PIL import Image import numpy as np import yaml from torchvision import transforms from multiprocessing import Manager logger = logging.getLogger(__name__) ## Adapted from DVR def get_dataloader(cfg, mode='train', spilt...
33.415686
116
0.556801
acfb4451601142ef1d3625aad811ee21a9d386f3
6,028
py
Python
vnpy/app/pytdx_loader/engine.py
zskycode/vnpy
441de3ede2e3001661dfc030c8cbe1c860257f56
[ "MIT" ]
null
null
null
vnpy/app/pytdx_loader/engine.py
zskycode/vnpy
441de3ede2e3001661dfc030c8cbe1c860257f56
[ "MIT" ]
null
null
null
vnpy/app/pytdx_loader/engine.py
zskycode/vnpy
441de3ede2e3001661dfc030c8cbe1c860257f56
[ "MIT" ]
null
null
null
import time import pandas as pd from datetime import datetime from vnpy.app.pytdx_loader.my_pytdx.constant import KBarType, FutureMarketCode from vnpy.app.pytdx_loader.my_pytdx.extension_api import ExhqAPI from vnpy.app.pytdx_loader.my_pytdx.ips import IPsSource from vnpy.event import EventEngine from vnpy.trader.con...
32.408602
114
0.532349
acfb4467bf15ad794b3109752cb411ab3fe44815
145
py
Python
Cryptography/GenerateKey.py
DEV-UNT/Advanced-Keylogger
f17023bf139a81fa49f12528cc5b080d40b1775d
[ "Apache-2.0" ]
1
2021-06-07T13:15:51.000Z
2021-06-07T13:15:51.000Z
Cryptography/GenerateKey.py
DEV-UNT/Advanced-Keylogger
f17023bf139a81fa49f12528cc5b080d40b1775d
[ "Apache-2.0" ]
null
null
null
Cryptography/GenerateKey.py
DEV-UNT/Advanced-Keylogger
f17023bf139a81fa49f12528cc5b080d40b1775d
[ "Apache-2.0" ]
2
2021-06-07T13:15:53.000Z
2021-06-25T22:15:15.000Z
from cryptography.fernet import Fernet key = Fernet.generate_key() file = open("encryption_key.txt", 'wb') file.write(key) file.close()
18.125
40
0.710345
acfb44954393481a12e54cdc363ea4ef0d1bb13f
1,841
py
Python
scripts/upload/add_gm_snow_off.py
SnowEx/snowexsql
77b89c617ecbd6433c25a7c6eb11f1df25766f0d
[ "BSD-3-Clause" ]
5
2021-05-06T20:57:13.000Z
2021-11-15T18:04:33.000Z
scripts/upload/add_gm_snow_off.py
SnowEx/snowexsql
77b89c617ecbd6433c25a7c6eb11f1df25766f0d
[ "BSD-3-Clause" ]
28
2021-05-15T12:30:23.000Z
2022-02-25T00:07:28.000Z
scripts/upload/add_gm_snow_off.py
hpmarshall/SnowEx2020_SQLcode
77b89c617ecbd6433c25a7c6eb11f1df25766f0d
[ "BSD-3-Clause" ]
2
2021-05-02T00:46:26.000Z
2021-05-03T16:35:39.000Z
""" 1. To download the data, run sh download_snow_off.sh 2. Run this script. Usage: # To run with all the scripts python run.py # To run individually python add_gm_snow_off.py Spatial Reference Original: * EPSG:26912 (No reprojection needed) * Vertical Datum is NAVD 88 (No reprojection needed) * ...
25.219178
169
0.660511
acfb4547e92379f6e9ad545cb4b8aa2ff0dcaea5
26,448
py
Python
joy.py
anandology/joy
c0618691c0fd682875ab4f621659a9531149f81d
[ "MIT" ]
null
null
null
joy.py
anandology/joy
c0618691c0fd682875ab4f621659a9531149f81d
[ "MIT" ]
null
null
null
joy.py
anandology/joy
c0618691c0fd682875ab4f621659a9531149f81d
[ "MIT" ]
null
null
null
""" Joy === Joy is a tiny creative coding library in Python. BASIC USAGE An example of using joy: >>> from joy import * >>> >>> c = circle(x=100, y=100, r=50) >>> show(c) The `circle` function creates a new circle and the `show` function displays it. PRINCIPLES Joy follows functional programming ...
25.980354
132
0.573805
acfb457f7974a440bf82a60533ea55e6ee7c4f11
576
py
Python
src/dicom_parser/data_elements/messages.py
GalBenZvi/dicom_parser
fc3e892ebf99c4e5d62cb5e7de7df341baf445fe
[ "MIT" ]
11
2020-08-08T21:41:54.000Z
2021-07-27T12:48:31.000Z
src/dicom_parser/data_elements/messages.py
GalBenZvi/dicom_parser
fc3e892ebf99c4e5d62cb5e7de7df341baf445fe
[ "MIT" ]
45
2020-03-03T14:32:16.000Z
2021-07-30T16:42:17.000Z
src/dicom_parser/data_elements/messages.py
GalBenZvi/dicom_parser
fc3e892ebf99c4e5d62cb5e7de7df341baf445fe
[ "MIT" ]
6
2021-10-19T09:19:22.000Z
2022-03-13T19:26:10.000Z
""" Strings and string formatting templates used in this module. """ #: Message displayed when a failure occurs to parse a "DA" data element's raw #: value. DATE_PARSING_FAILURE = "Failed to parse '{value}' into a valid date object" #: Message displayed when trying to parse an "SQ" data element directly. INVALID_SEQUE...
36
77
0.751736
acfb464f768ae2bfb391d2f97910a4514bed016c
9,442
py
Python
data-processing/common/normalize_tex.py
alexkreidler/scholarphi
86d26d0bfa5ded00760fba1a9c6891a94a3dd6d2
[ "Apache-2.0" ]
null
null
null
data-processing/common/normalize_tex.py
alexkreidler/scholarphi
86d26d0bfa5ded00760fba1a9c6891a94a3dd6d2
[ "Apache-2.0" ]
null
null
null
data-processing/common/normalize_tex.py
alexkreidler/scholarphi
86d26d0bfa5ded00760fba1a9c6891a94a3dd6d2
[ "Apache-2.0" ]
null
null
null
import logging import os.path import posixpath import re from dataclasses import dataclass from enum import Enum, auto from typing import List, Optional, Union from common.scan_tex import Pattern, scan_tex from common.types import CharacterRange, Path @dataclass(frozen=True) class Expansion(CharacterRange): tex:...
42.151786
102
0.643508
acfb487fedc316e608be6c216e137a7eddf6576f
42
py
Python
api/src/function/control/deskFunction.py
SamuelJansen/Application
6ab3202fb7de12782510f477a3e74d8800ea2927
[ "MIT" ]
null
null
null
api/src/function/control/deskFunction.py
SamuelJansen/Application
6ab3202fb7de12782510f477a3e74d8800ea2927
[ "MIT" ]
null
null
null
api/src/function/control/deskFunction.py
SamuelJansen/Application
6ab3202fb7de12782510f477a3e74d8800ea2927
[ "MIT" ]
null
null
null
class Attribute: FIRST_NAME = 'Desk'
10.5
23
0.666667
acfb49ec164c07b830fba34a2f18493bf6ef1945
2,171
py
Python
species.py
polowis/neatevo
165bbf81b2f55a85c945aed9cc6a817ee51ad476
[ "MIT" ]
null
null
null
species.py
polowis/neatevo
165bbf81b2f55a85c945aed9cc6a817ee51ad476
[ "MIT" ]
null
null
null
species.py
polowis/neatevo
165bbf81b2f55a85c945aed9cc6a817ee51ad476
[ "MIT" ]
null
null
null
from network import Network import math class Species: def __init__(self, model): self.model = model self.nn = self.generate_network() #//a list of the this.nodes in the order that they need to be considered in the NN self.fitness = 0 self.score = 0 def generate_network(self...
35.016129
124
0.543068
acfb4b03540aac233bff61ae4d054967b985175f
8,520
py
Python
tests/test_bit.py
nisaruj/algorithms
1e03cd259c2d7ada113eb99843dcada9f20adf54
[ "MIT" ]
6
2018-12-12T09:14:05.000Z
2019-04-29T22:07:28.000Z
tests/test_bit.py
nisaruj/algorithms
1e03cd259c2d7ada113eb99843dcada9f20adf54
[ "MIT" ]
null
null
null
tests/test_bit.py
nisaruj/algorithms
1e03cd259c2d7ada113eb99843dcada9f20adf54
[ "MIT" ]
7
2019-03-21T10:18:22.000Z
2021-09-22T07:34:10.000Z
from algorithms.bit import ( add_bitwise_operator, count_ones_iter, count_ones_recur, count_flips_to_convert, find_missing_number, find_missing_number2, flip_bit_longest_seq, is_power_of_two, reverse_bits, single_number, single_number2, single_number3, subsets, get_bit, s...
33.411765
87
0.608803
acfb4dedc660f50cb731ffe15046d0f8ba4f571b
905
py
Python
app/controllers.py
overclock07/info3180-Project2
44c28ccd6d006aa488daf718953f44c64c444f4d
[ "MIT" ]
null
null
null
app/controllers.py
overclock07/info3180-Project2
44c28ccd6d006aa488daf718953f44c64c444f4d
[ "MIT" ]
null
null
null
app/controllers.py
overclock07/info3180-Project2
44c28ccd6d006aa488daf718953f44c64c444f4d
[ "MIT" ]
null
null
null
from .models import Users import os from .forms import ALLOWED_EXTENSIONS # Here we define a function to collect form errors from Flask-WTF # which we can later use def form_errors(form): error_messages = [] """Collects form errors""" for field, errors in form.errors.items(): for error in errors: ...
31.206897
67
0.614365
acfb4e239156aa6e995d2359883ac12e19c2704b
3,366
py
Python
HalloWing/main.py
Dthurow/CyberpunkCostumeCode
881d064ca005ef708d82c07cc1395e196294139c
[ "MIT" ]
null
null
null
HalloWing/main.py
Dthurow/CyberpunkCostumeCode
881d064ca005ef708d82c07cc1395e196294139c
[ "MIT" ]
null
null
null
HalloWing/main.py
Dthurow/CyberpunkCostumeCode
881d064ca005ef708d82c07cc1395e196294139c
[ "MIT" ]
null
null
null
import time import board import neopixel import audioio import touchio # On CircuitPlayground Express, and boards with built in status NeoPixel -> board.NEOPIXEL # Otherwise choose an open pin connected to the Data In of the NeoPixel strip, i.e. board.D1 pixel_pin = board.EXTERNAL_NEOPIXEL #color standards RED = 0x1...
24.215827
92
0.601604
acfb4f0b6868d280dc35e8062ef53c204d6534b7
13,142
py
Python
contrib/unaccent/generate_unaccent_rules.py
g0djan/postgres
741b1aaf61a3da10250555f827c0a7a2f9bc2822
[ "PostgreSQL" ]
3
2020-12-31T10:40:25.000Z
2021-06-04T09:12:05.000Z
contrib/unaccent/generate_unaccent_rules.py
g0djan/postgres
741b1aaf61a3da10250555f827c0a7a2f9bc2822
[ "PostgreSQL" ]
1
2019-11-19T03:46:25.000Z
2019-11-19T04:56:17.000Z
contrib/unaccent/generate_unaccent_rules.py
g0djan/postgres
741b1aaf61a3da10250555f827c0a7a2f9bc2822
[ "PostgreSQL" ]
1
2020-07-27T07:31:27.000Z
2020-07-27T07:31:27.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # This script builds unaccent.rules on standard output when given the # contents of UnicodeData.txt [1] and Latin-ASCII.xml [2] given as # arguments. Optionally includes ligature expansion and Unicode CLDR # Latin-ASCII transliterator, enabled by default, this can be disabled...
44.70068
361
0.68574
acfb4f689d5a1ec718d1e7d4ad0ac3cf648b3a28
8,981
py
Python
sync_tester/postgres/postgres_adapter.py
MapColonies/automation-sync-test
bf1fcf1022a671af6b737d67706ba20af045e764
[ "MIT" ]
null
null
null
sync_tester/postgres/postgres_adapter.py
MapColonies/automation-sync-test
bf1fcf1022a671af6b737d67706ba20af045e764
[ "MIT" ]
null
null
null
sync_tester/postgres/postgres_adapter.py
MapColonies/automation-sync-test
bf1fcf1022a671af6b737d67706ba20af045e764
[ "MIT" ]
null
null
null
""" This module wrapping and provide easy access client for ingestion-sync functionality on postgres """ import logging from sync_tester.configuration import config from mc_automation_tools import postgres _log = logging.getLogger('sync_tester.postgres.postgres_adapter') class PostgresHandler: def __init__(self...
45.588832
120
0.619419
acfb4f68d6f7cb6e3f93d3b65d68a2b6a603ae28
42,775
py
Python
src/anyio/_backends/_asyncio.py
sobolevn/anyio
6b37d4112f71d5eb83dfec9c9758af392b37e1e6
[ "MIT" ]
null
null
null
src/anyio/_backends/_asyncio.py
sobolevn/anyio
6b37d4112f71d5eb83dfec9c9758af392b37e1e6
[ "MIT" ]
null
null
null
src/anyio/_backends/_asyncio.py
sobolevn/anyio
6b37d4112f71d5eb83dfec9c9758af392b37e1e6
[ "MIT" ]
null
null
null
import asyncio import concurrent.futures import math import socket import sys from collections import OrderedDict, deque from concurrent.futures import Future from dataclasses import dataclass from functools import wraps from inspect import isgenerator from socket import AddressFamily, SocketKind, SocketType from threa...
32.454476
99
0.627002
acfb4ff0785bdc8c4f903862652ff0f70232ad27
4,277
py
Python
python/services/apigee/environment_group_attachment.py
trodge/declarative-resource-client-library
2cb7718a5074776b3113cc18a7483b54022238f3
[ "Apache-2.0" ]
null
null
null
python/services/apigee/environment_group_attachment.py
trodge/declarative-resource-client-library
2cb7718a5074776b3113cc18a7483b54022238f3
[ "Apache-2.0" ]
null
null
null
python/services/apigee/environment_group_attachment.py
trodge/declarative-resource-client-library
2cb7718a5074776b3113cc18a7483b54022238f3
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.245763
97
0.702361
acfb5027851f6eaa4d61c01bd692b7d372ecabf0
574
py
Python
image/boot.py
ssube/redesigned-barnacle
314ea415b6f725c798cc97d6e619fbedc7f8bd21
[ "MIT" ]
null
null
null
image/boot.py
ssube/redesigned-barnacle
314ea415b6f725c798cc97d6e619fbedc7f8bd21
[ "MIT" ]
1
2021-11-04T16:00:15.000Z
2021-11-04T16:00:15.000Z
image/boot.py
ssube/redesigned-barnacle
314ea415b6f725c798cc97d6e619fbedc7f8bd21
[ "MIT" ]
null
null
null
import machine import os import sys def boot_main(): # load config card = machine.SDCard() os.mount(card, '/card') sys.path.append('/card/lib') from redesigned_barnacle.config import load_config from redesigned_barnacle.ota import chain_load config = load_config('/card', 'config.yml') ...
19.793103
54
0.651568
acfb515a201beda76370bff8c92f8eb47738f999
6,165
py
Python
conanfile.py
sdmg15/conan-grpc
ccf66a286f9f577638c0e95525f6a302ca1114ec
[ "MIT" ]
2
2020-02-28T01:10:58.000Z
2020-04-07T08:13:35.000Z
conanfile.py
sdmg15/conan-grpc
ccf66a286f9f577638c0e95525f6a302ca1114ec
[ "MIT" ]
null
null
null
conanfile.py
sdmg15/conan-grpc
ccf66a286f9f577638c0e95525f6a302ca1114ec
[ "MIT" ]
4
2020-02-16T14:08:33.000Z
2020-07-13T03:39:20.000Z
from conans import ConanFile, CMake, tools from conans.errors import ConanInvalidConfiguration import os class grpcConan(ConanFile): name = "grpc" version = "1.26.0" description = "Google's RPC library and framework." topics = ("conan", "grpc", "rpc") url = "https://github.com/inexorgame/conan-grp...
39.267516
130
0.626926
acfb51f522062460a7ee3669171eb1d2de895e57
4,510
py
Python
thrift/lib/py3lite/client/test/async_client_test.py
nathanawmk/fbthrift
557cab1738eac15a00075a62389b50a3b6d900fc
[ "Apache-2.0" ]
null
null
null
thrift/lib/py3lite/client/test/async_client_test.py
nathanawmk/fbthrift
557cab1738eac15a00075a62389b50a3b6d900fc
[ "Apache-2.0" ]
null
null
null
thrift/lib/py3lite/client/test/async_client_test.py
nathanawmk/fbthrift
557cab1738eac15a00075a62389b50a3b6d900fc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # 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 ...
45.555556
87
0.647228
acfb520fe3b10e5d15ca06875db3f3919145d3bb
2,785
py
Python
dipper/utils/romanplus.py
monarch-ci/dipper
abcd4843ec051a47cef3b592fadc1cd7d1616b45
[ "BSD-3-Clause" ]
52
2015-01-28T21:22:19.000Z
2022-03-15T09:21:07.000Z
dipper/utils/romanplus.py
monarch-ci/dipper
abcd4843ec051a47cef3b592fadc1cd7d1616b45
[ "BSD-3-Clause" ]
742
2015-01-06T00:21:30.000Z
2021-08-02T20:57:17.000Z
dipper/utils/romanplus.py
monarch-ci/dipper
abcd4843ec051a47cef3b592fadc1cd7d1616b45
[ "BSD-3-Clause" ]
24
2015-07-28T17:06:30.000Z
2021-08-18T21:28:53.000Z
""" Convert to and from Roman numerals This program is part of "Dive Into Python", a free Python tutorial for experienced programmers. Visit http://diveintopython.org/ for the latest version. This program is free software; you can redistribute it and/or modify it under the terms of the Python 2.1.1 license, available...
33.154762
76
0.521724
acfb52c4c6c61e2388b978c549354c91b695aeab
15,572
py
Python
py/2DSlice.py
StevenGuo42/vtk_paraview_visualization
8bb10db6b2f0bede85b5770f3c956b980cc36557
[ "Apache-2.0" ]
null
null
null
py/2DSlice.py
StevenGuo42/vtk_paraview_visualization
8bb10db6b2f0bede85b5770f3c956b980cc36557
[ "Apache-2.0" ]
null
null
null
py/2DSlice.py
StevenGuo42/vtk_paraview_visualization
8bb10db6b2f0bede85b5770f3c956b980cc36557
[ "Apache-2.0" ]
null
null
null
######################################################## ## ## Test for high-dimensional visualization ## COSC 3307 WI 2021 ## ## NIST cost functions: MGH17, ENSO, Rat43 ## Other cost functions: Styblinski-Tang, Rastrigin, Sphere, ## Rosenbrock, Qing, Michalewicz, Salomon, Deb3 ## ## See (e.g. for MGH17): ## ...
21.331507
241
0.439571
acfb52d6aeeea4f10cbb0c326aaf70f03e91f45d
1,099
py
Python
hc/api/tests/test_admin.py
opsct/healthchecks
069bc9b735c0473aed9946104ab85238d065bea1
[ "BSD-3-Clause" ]
null
null
null
hc/api/tests/test_admin.py
opsct/healthchecks
069bc9b735c0473aed9946104ab85238d065bea1
[ "BSD-3-Clause" ]
1
2021-06-10T23:14:00.000Z
2021-06-10T23:14:00.000Z
hc/api/tests/test_admin.py
opsct/healthchecks
069bc9b735c0473aed9946104ab85238d065bea1
[ "BSD-3-Clause" ]
null
null
null
from hc.api.models import Channel, Check from hc.test import BaseTestCase class ApiAdminTestCase(BaseTestCase): def setUp(self): super(ApiAdminTestCase, self).setUp() self.check = Check.objects.create(project=self.project, tags="foo bar") self.alice.is_staff = True self.alice.is_...
34.34375
79
0.652411
acfb52e0e74ebdf8389e7f9ab1eee1ddfa6455c3
1,648
py
Python
AdventofCode_2021/day8.py
jacagi/freetime
67dd1cd46489ada554e7c34559826812e5a55916
[ "MIT" ]
1
2021-12-08T19:01:56.000Z
2021-12-08T19:01:56.000Z
AdventofCode_2021/day8.py
jacagi/freetime
67dd1cd46489ada554e7c34559826812e5a55916
[ "MIT" ]
null
null
null
AdventofCode_2021/day8.py
jacagi/freetime
67dd1cd46489ada554e7c34559826812e5a55916
[ "MIT" ]
null
null
null
import itertools check_1478 = lambda x: 1 if len(x) in [2,3,4,7] else 0 split_signals = lambda x: x.split(" | ")[1].split(" ") file = open("input8.txt", "r").read().splitlines() def calculate_result(line): complete_line = line.split(" | ") codes = sorted(complete_line[0].split(" "), key=len) result = com...
41.2
106
0.538835
acfb5456dabf5e0bdf1d679bdb0b210575124acb
294
py
Python
110_extract_signatures-vanilla.py
stefanthaler/2017-fnlm-experiments-supervised
813fd941900c6f3bd0943ec9856258421f71fcb6
[ "Apache-2.0" ]
4
2017-10-12T04:40:33.000Z
2022-01-28T09:32:47.000Z
110_extract_signatures-vanilla.py
stefanthaler/2017-fnlm-experiments-supervised
813fd941900c6f3bd0943ec9856258421f71fcb6
[ "Apache-2.0" ]
1
2017-12-27T06:07:02.000Z
2018-01-23T15:37:58.000Z
110_extract_signatures-vanilla.py
stefanthaler/2017-fnlm-experiments-supervised
813fd941900c6f3bd0943ec9856258421f71fcb6
[ "Apache-2.0" ]
2
2017-11-22T09:19:06.000Z
2020-02-29T15:36:21.000Z
# -*- coding: utf-8 -*- from c110.hyperparameters import * variable_char = "º" from approaches.signatures import extract_signatures_vanilla extract_signatures_vanilla(test_logsfile_name,result_tags_filename,assigned_signatures_filename,found_signatures_filename,combined_signatures_filename)
42
151
0.863946
acfb54995e19b90bc6dbb9e385f84b21230cb799
164
py
Python
Implementations/drygasconv1_python3/drysponge/drygascon128_aead.py
sebastien-riou/DryGASCON
406b51914b4e8df752769feac48643c0fd1bd74b
[ "BSD-3-Clause" ]
2
2019-11-11T08:12:16.000Z
2021-04-13T07:00:53.000Z
Implementations/drygasconv1_python3/drysponge/drygascon128_aead.py
sebastien-riou/DryGASCON
406b51914b4e8df752769feac48643c0fd1bd74b
[ "BSD-3-Clause" ]
null
null
null
Implementations/drygasconv1_python3/drysponge/drygascon128_aead.py
sebastien-riou/DryGASCON
406b51914b4e8df752769feac48643c0fd1bd74b
[ "BSD-3-Clause" ]
1
2019-08-10T13:26:11.000Z
2019-08-10T13:26:11.000Z
from drysponge.drygascon import DryGascon from drysponge.aead import aead if __name__ == "__main__": impl = DryGascon.DryGascon128().instance() aead(impl)
23.428571
46
0.75
acfb5553927e7d1828dd295db9cb6590e20120f7
5,770
py
Python
examples/nlp/question_answering/question_answering_squad.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
1
2021-04-13T20:34:16.000Z
2021-04-13T20:34:16.000Z
examples/nlp/question_answering/question_answering_squad.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
examples/nlp/question_answering/question_answering_squad.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. 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 appli...
42.740741
210
0.752686
acfb570294f296e674721ddfa712c945e190ea5e
4,173
py
Python
python/parserDev/test_BroHttpPyParser.py
jzadeh/aktaion
485488908e88212e615cd8bde04c6b1b63403cd0
[ "Apache-2.0" ]
112
2017-07-26T00:30:29.000Z
2021-11-09T14:02:12.000Z
python/parserDev/test_BroHttpPyParser.py
jzadeh/aktaion
485488908e88212e615cd8bde04c6b1b63403cd0
[ "Apache-2.0" ]
null
null
null
python/parserDev/test_BroHttpPyParser.py
jzadeh/aktaion
485488908e88212e615cd8bde04c6b1b63403cd0
[ "Apache-2.0" ]
38
2017-07-28T03:09:01.000Z
2021-05-07T03:21:32.000Z
import BroHttpPyParser import ParsingNormalizationPyLogic import unittest import os import inspect #the scala test unit defines the following tests: #1)Basic Bro Normalized Parser #intakes a raw log line #parser the raw log line through BroHttpParser #Feed the parsed line through normalizedBroLog #chec...
99.357143
2,585
0.798706
acfb5740e9b1d01242955fabb8273e34bc013293
11,116
py
Python
tests/labs/paulking/test_profile.py
pymedphys/pymedphys-archive-2019
6bb7c8d0da2e93ff56469bb47e65b15ece2ea25e
[ "Apache-2.0" ]
1
2020-12-20T14:13:56.000Z
2020-12-20T14:13:56.000Z
tests/labs/paulking/test_profile.py
pymedphys/pymedphys-archive-2019
6bb7c8d0da2e93ff56469bb47e65b15ece2ea25e
[ "Apache-2.0" ]
null
null
null
tests/labs/paulking/test_profile.py
pymedphys/pymedphys-archive-2019
6bb7c8d0da2e93ff56469bb47e65b15ece2ea25e
[ "Apache-2.0" ]
1
2020-12-20T14:14:00.000Z
2020-12-20T14:14:00.000Z
# Copyright (C) 2019 Paul King, Simon Biggs # 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...
26.529833
86
0.572058
acfb576a9916634d62edf7a1256c2a1ee7e87576
1,173
py
Python
ava/common/migrations/0003_auto_20180504_0511.py
patrickporto/elearning
b746fcfa5dadc77eaa0b3e20ff006f386b9dae67
[ "MIT" ]
null
null
null
ava/common/migrations/0003_auto_20180504_0511.py
patrickporto/elearning
b746fcfa5dadc77eaa0b3e20ff006f386b9dae67
[ "MIT" ]
null
null
null
ava/common/migrations/0003_auto_20180504_0511.py
patrickporto/elearning
b746fcfa5dadc77eaa0b3e20ff006f386b9dae67
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-04 05:11 import common.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('common', '0002_auto_20180504_0458'), ] operations = [ ...
30.868421
141
0.59335
acfb589f51b5ead619bc8bfc086a4764d73c111c
12,680
py
Python
tensorflow/python/keras/utils/vis_utils.py
jonah-kohn/tensorflow
8f278b5c183b485f038b0504308929b4e3bde5a7
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/utils/vis_utils.py
jonah-kohn/tensorflow
8f278b5c183b485f038b0504308929b4e3bde5a7
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/utils/vis_utils.py
jonah-kohn/tensorflow
8f278b5c183b485f038b0504308929b4e3bde5a7
[ "Apache-2.0" ]
null
null
null
# 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...
36.541787
80
0.623738
acfb5a226c165aedfabf52744be6be9368740a0d
19,460
py
Python
tests/tracer/test_writer.py
KDWSS/dd-trace-py
6d859bec403347f7c1e7efd039210908b562741e
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/tracer/test_writer.py
KDWSS/dd-trace-py
6d859bec403347f7c1e7efd039210908b562741e
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/tracer/test_writer.py
KDWSS/dd-trace-py
6d859bec403347f7c1e7efd039210908b562741e
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import os import socket import tempfile import threading import time import mock import msgpack import pytest from six.moves import BaseHTTPServer from six.moves import socketserver from ddtrace.constants import KEEP_SPANS_RATE_KEY from ddtrace.internal.compat import PY3 from ddtrace.internal.compat import get_connec...
35
120
0.634943
acfb5b09345a7e7e63d26c77aa093c06e7492606
220
py
Python
pyroll/core/transport/hookspecs/out_profile.py
pyroll-project/pyroll-core
f59094d58c2f7493ddc6345b3afc4700ca259681
[ "BSD-3-Clause" ]
null
null
null
pyroll/core/transport/hookspecs/out_profile.py
pyroll-project/pyroll-core
f59094d58c2f7493ddc6345b3afc4700ca259681
[ "BSD-3-Clause" ]
null
null
null
pyroll/core/transport/hookspecs/out_profile.py
pyroll-project/pyroll-core
f59094d58c2f7493ddc6345b3afc4700ca259681
[ "BSD-3-Clause" ]
null
null
null
from ..transport import Transport @Transport.OutProfile.hookspec def strain(transport: Transport, profile: Transport.OutProfile) -> float: """The equivalent strain of the outgoing profile of the transport unit."""
31.428571
78
0.772727
acfb5d67247fa0a6061e2a912753d57cc0e6846f
5,813
py
Python
mayan/apps/sources/apps.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
mayan/apps/sources/apps.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
mayan/apps/sources/apps.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from kombu import Exchange, Queue from common import ( MayanAppConfig, MissingItem, menu_object, menu_secondary, menu_sidebar, menu_setup ) from common.signals import post_initial_setup, post_upgr...
34.808383
79
0.623086
acfb5dd7cc8d8ef97ebf34b1bb575b1f1438f091
11,149
py
Python
pybliometrics/scopus/scopus_search.py
raffaem/pybliometrics
aaa84885c2770ee29b23e1d1a41448d42f6db15e
[ "MIT" ]
null
null
null
pybliometrics/scopus/scopus_search.py
raffaem/pybliometrics
aaa84885c2770ee29b23e1d1a41448d42f6db15e
[ "MIT" ]
null
null
null
pybliometrics/scopus/scopus_search.py
raffaem/pybliometrics
aaa84885c2770ee29b23e1d1a41448d42f6db15e
[ "MIT" ]
null
null
null
from collections import namedtuple from typing import List, NamedTuple, Optional, Tuple, Union from pybliometrics.scopus.superclasses import Search from pybliometrics.scopus.utils import check_integrity, chained_get,\ check_parameter_value, check_field_consistency, listify, make_search_summary class ScopusSearch...
47.042194
87
0.564445
acfb5e81f02d1e690c8f73df5337d5ec57054af3
2,096
py
Python
platypush/plugins/gpio/sensor/accelerometer/__init__.py
BlackLight/platypush
6c0a8bf2599eb4ab41a6122dbd988075d8b1a63a
[ "MIT" ]
228
2018-01-30T11:17:09.000Z
2022-03-24T11:22:26.000Z
platypush/plugins/gpio/sensor/accelerometer/__init__.py
BlackLight/platypush
6c0a8bf2599eb4ab41a6122dbd988075d8b1a63a
[ "MIT" ]
167
2017-12-11T19:35:38.000Z
2022-03-27T14:45:30.000Z
platypush/plugins/gpio/sensor/accelerometer/__init__.py
BlackLight/runbullet
8d26c8634d2677b4402f0a21b9ab8244b44640db
[ "MIT" ]
16
2018-05-03T07:31:56.000Z
2021-12-05T19:27:37.000Z
from platypush.plugins import action from platypush.plugins.gpio.sensor import GpioSensorPlugin class GpioSensorAccelerometerPlugin(GpioSensorPlugin): """ Plugin to interact with an accelerometer sensor and get X,Y,Z position. Tested with Adafruit LIS3DH accelerometer (https://www.adafruit.com/product/280...
30.376812
114
0.591603
acfb5f157530fd1d544e4a420cd2b3864566d344
13,430
py
Python
test/functional/dbcrash.py
wolfoxonly/dk
090c9862a1a14c187eefcb8285e43601db5ed35b
[ "MIT" ]
null
null
null
test/functional/dbcrash.py
wolfoxonly/dk
090c9862a1a14c187eefcb8285e43601db5ed35b
[ "MIT" ]
null
null
null
test/functional/dbcrash.py
wolfoxonly/dk
090c9862a1a14c187eefcb8285e43601db5ed35b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Dealtoken Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test recovery from a crash during chainstate writing. - 4 nodes * node0, node1, and node2 will have dif...
47.45583
120
0.640134
acfb5f48e736892880cd8c54c5945fbb613ac159
20,049
py
Python
theano/tests/test_gradient.py
ynd/Theano
5c89596df9e5d8ecafa7d4c0aa8f0f4eb393cd57
[ "BSD-3-Clause" ]
1
2019-02-27T18:45:20.000Z
2019-02-27T18:45:20.000Z
theano/tests/test_gradient.py
ynd/Theano
5c89596df9e5d8ecafa7d4c0aa8f0f4eb393cd57
[ "BSD-3-Clause" ]
null
null
null
theano/tests/test_gradient.py
ynd/Theano
5c89596df9e5d8ecafa7d4c0aa8f0f4eb393cd57
[ "BSD-3-Clause" ]
null
null
null
# # UNIT TEST # import unittest import theano from theano import gof from theano.tests import unittest_tools as utt from theano import gradient from theano.tensor.nnet.Conv3D import conv3D from theano import config import numpy as np from theano.gof.null_type import NullType one = theano.tensor.as_tensor_variable(1....
33.415
106
0.590004
acfb5f9769ed8611f2c83a6c225d2c804f6199b2
2,055
py
Python
charting.py
ryuen/Cryptocurrrency-Prices
ee77ac6e9faa3f5844b43490d904d3176e5c92b4
[ "MIT" ]
null
null
null
charting.py
ryuen/Cryptocurrrency-Prices
ee77ac6e9faa3f5844b43490d904d3176e5c92b4
[ "MIT" ]
null
null
null
charting.py
ryuen/Cryptocurrrency-Prices
ee77ac6e9faa3f5844b43490d904d3176e5c92b4
[ "MIT" ]
null
null
null
import time import datetime import numpy as np import matplotlib import matplotlib.pyplot as plt import matplotlib.dates as mdates import matplotlib.cbook as cbook import pandas as pd howFarBack = 10000 def rsiFunc(prices, n=14): deltas = np.diff(prices) seed = deltas[:n+1] ...
25.6875
123
0.508516
acfb60105810d1f9ff756b76ea01f49fae8c156e
11,512
py
Python
src/ui_elements/handadds.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
1
2022-03-06T23:50:34.000Z
2022-03-06T23:50:34.000Z
src/ui_elements/handadds.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
4
2022-03-03T11:16:17.000Z
2022-03-20T15:53:37.000Z
src/ui_elements/handadds.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\handadds.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, Q...
46.419355
105
0.691105
acfb6118c412a1d00d79c1f65100746a99557f3a
40
py
Python
singlebar/__init__.py
ericedem/singlebar
81d5f517284b64e838706d7ac168f8a700afe57c
[ "MIT" ]
null
null
null
singlebar/__init__.py
ericedem/singlebar
81d5f517284b64e838706d7ac168f8a700afe57c
[ "MIT" ]
1
2016-05-11T17:06:39.000Z
2016-05-11T17:06:39.000Z
singlebar/__init__.py
ericedem/singlebar
81d5f517284b64e838706d7ac168f8a700afe57c
[ "MIT" ]
null
null
null
from .core import start, update, finish
20
39
0.775
acfb6184ac74931b91a80ca7228caf530de28307
4,835
py
Python
app.py
vikasGhildiyal/apiai-python-webhook
a29f7b795c3c60dd5eef7a951b9b7c5b0b1b3667
[ "Apache-2.0" ]
null
null
null
app.py
vikasGhildiyal/apiai-python-webhook
a29f7b795c3c60dd5eef7a951b9b7c5b0b1b3667
[ "Apache-2.0" ]
null
null
null
app.py
vikasGhildiyal/apiai-python-webhook
a29f7b795c3c60dd5eef7a951b9b7c5b0b1b3667
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import urllib import json import os from flask import Flask from flask import request from flask import make_response # Flask app should start in global layout app = Flask(__name__) @app.route('/webhook', methods=['POST']) def webhook(): req = request.get_json(silent=True, force=True) ...
28.110465
118
0.479421
acfb61bc40d5431471069c61ee3172c95da75dde
6,637
py
Python
tests/seahub/profile/models/test_profile_manager.py
xiez/seahub
8dfaa726e804afdf27e0b530de3e127b1654a7e3
[ "Apache-2.0" ]
null
null
null
tests/seahub/profile/models/test_profile_manager.py
xiez/seahub
8dfaa726e804afdf27e0b530de3e127b1654a7e3
[ "Apache-2.0" ]
null
null
null
tests/seahub/profile/models/test_profile_manager.py
xiez/seahub
8dfaa726e804afdf27e0b530de3e127b1654a7e3
[ "Apache-2.0" ]
null
null
null
from seahub.profile.models import Profile from seahub.test_utils import BaseTestCase class ProfileManagerTest(BaseTestCase): def setUp(self): pass def test_get_username_by_contact_email(self): assert Profile.objects.get_username_by_contact_email('a@a.com') is None user1 = self.user.u...
43.097403
91
0.627091
acfb620e4861cbb29c105c8b90402f1b27f6843e
707
py
Python
model/3-after-feature-selection/main.py
fortyTwo102/bioinformatics
e7a4d9753ae446a45d5a293aa28396fd5e798789
[ "Apache-2.0" ]
null
null
null
model/3-after-feature-selection/main.py
fortyTwo102/bioinformatics
e7a4d9753ae446a45d5a293aa28396fd5e798789
[ "Apache-2.0" ]
null
null
null
model/3-after-feature-selection/main.py
fortyTwo102/bioinformatics
e7a4d9753ae446a45d5a293aa28396fd5e798789
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np from sklearn.metrics import accuracy_score, f1_score from sklearn.model_selection import train_test_split from itertools import combinations from sklearn import preprocessing from sklearn.linear_model import LogisticRegression X_train = pd.read_csv('X_train_best.csv') X_test =...
22.806452
62
0.779349
acfb624af6b576f5e08c44b60c99a52d82d66fef
62,806
py
Python
edb/schema/schema.py
jamilabreu/edgedb
6d3f222e4c5d3300f483b4e06e8f747c6381f313
[ "Apache-2.0" ]
null
null
null
edb/schema/schema.py
jamilabreu/edgedb
6d3f222e4c5d3300f483b4e06e8f747c6381f313
[ "Apache-2.0" ]
null
null
null
edb/schema/schema.py
jamilabreu/edgedb
6d3f222e4c5d3300f483b4e06e8f747c6381f313
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
31.513297
79
0.548037
acfb624b375782818ff5c331dc9d4d1183e8c4e5
744
py
Python
tests/test_brine.py
pdxjohnny/rpyc
bc8f0223be8436fa77c71cda94cc6610d621a364
[ "MIT" ]
238
2020-09-02T22:26:44.000Z
2022-03-31T17:49:55.000Z
tests/test_brine.py
pdxjohnny/rpyc
bc8f0223be8436fa77c71cda94cc6610d621a364
[ "MIT" ]
87
2020-09-02T20:10:35.000Z
2022-03-16T16:49:47.000Z
tests/test_brine.py
pdxjohnny/rpyc
bc8f0223be8436fa77c71cda94cc6610d621a364
[ "MIT" ]
40
2020-09-13T19:53:51.000Z
2022-03-21T09:17:48.000Z
from rpyc.core import brine from rpyc.lib.compat import is_py_3k import unittest class BrineTest(unittest.TestCase): def test_brine_2(self): if is_py_3k: exec('''x = (b"he", 7, "llo", 8, (), 900, None, True, Ellipsis, 18.2, 18.2j + 13, slice(1, 2, 3), frozenset([5, 6, 7]), Not...
33.818182
93
0.538978
acfb62a76012c8378b25a733f7f816be43217d2d
2,071
py
Python
inspector.py
rukeba/img-link-inspector
963fda0688f3de3e030f34cec50a12dbd2440d1c
[ "MIT" ]
null
null
null
inspector.py
rukeba/img-link-inspector
963fda0688f3de3e030f34cec50a12dbd2440d1c
[ "MIT" ]
null
null
null
inspector.py
rukeba/img-link-inspector
963fda0688f3de3e030f34cec50a12dbd2440d1c
[ "MIT" ]
null
null
null
import re import urllib.parse import requests import bs4 class ImgLinkInspector(object): def __init__(self, page_url, **kwargs): self.page_url = page_url self.src_attr = kwargs.get('src_attr', 'src') self.verbose = bool(kwargs.get('verbose', False)) parsed_url = urllib.parse....
33.403226
79
0.618059
acfb635bae902e2363e208b21027803f569b2e98
243
py
Python
python/easy/remove-element.py
anidever/leetcode
fd8ac6d9c5e80d03ea6a5e4988502dcffff0ddc7
[ "WTFPL" ]
null
null
null
python/easy/remove-element.py
anidever/leetcode
fd8ac6d9c5e80d03ea6a5e4988502dcffff0ddc7
[ "WTFPL" ]
null
null
null
python/easy/remove-element.py
anidever/leetcode
fd8ac6d9c5e80d03ea6a5e4988502dcffff0ddc7
[ "WTFPL" ]
1
2020-12-20T00:52:26.000Z
2020-12-20T00:52:26.000Z
# question can be found at leetcode.com/problems/remove-element/ from Typing import List class Solution: def removeElement(self, nums: List[int], val: int) -> int: nums[:] = [i for i in nums if i != val] return len(nums)
27
64
0.654321
acfb639e33977f4b2d4c51a91994115d2051f54f
4,758
py
Python
pyjobweb/jobInfo/getStatus.py
vvaradarajan/pyJobWeb
eb83ce09f9a9f9185e31e53b2fda8b56981e26af
[ "Apache-2.0" ]
1
2019-03-19T12:23:53.000Z
2019-03-19T12:23:53.000Z
pyjobweb/jobInfo/getStatus.py
vvaradarajan/pyJobWeb
eb83ce09f9a9f9185e31e53b2fda8b56981e26af
[ "Apache-2.0" ]
null
null
null
pyjobweb/jobInfo/getStatus.py
vvaradarajan/pyJobWeb
eb83ce09f9a9f9185e31e53b2fda8b56981e26af
[ "Apache-2.0" ]
null
null
null
''' Created on Oct 15, 2016 @author: vasan ''' import os import errno import json import inspect import csv from jobInfo.commandHandler import cmdOutputParser from jobInfo.dbUtils import job class jobStatus: '''Reads the status file and returns a json ''' flags = os.O_CREAT | os.O_EXCL | os.O_WRONLY ##...
34.478261
304
0.567886
acfb644c980291eeeaaa0b69a7774ebb862eeeeb
7,766
py
Python
pysnmp-with-texts/GENLIC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/GENLIC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/GENLIC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module GENLIC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/GENLIC-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:19:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:...
141.2
560
0.785475
acfb6455a59a589ef56a9ed570859bf7e08e34c6
14,604
py
Python
tests/test_client.py
raybellwaves/dask-gateway
b86e3066839c44801c11a51564091f59b705f342
[ "BSD-3-Clause" ]
69
2019-09-19T06:19:48.000Z
2022-02-04T23:01:15.000Z
tests/test_client.py
raybellwaves/dask-gateway
b86e3066839c44801c11a51564091f59b705f342
[ "BSD-3-Clause" ]
318
2019-09-18T18:42:57.000Z
2022-03-31T11:05:38.000Z
tests/test_client.py
raybellwaves/dask-gateway
b86e3066839c44801c11a51564091f59b705f342
[ "BSD-3-Clause" ]
61
2019-09-18T18:09:56.000Z
2022-03-25T20:35:11.000Z
import time import aiohttp import yarl import pytest import dask from dask_gateway.auth import get_auth, BasicAuth, KerberosAuth, JupyterHubAuth from dask_gateway.client import Gateway, GatewayCluster, cleanup_lingering_clusters from dask_gateway_server.compat import get_running_loop from .utils_test import temp_gate...
33.266515
86
0.617913
acfb64747dd03001396595009b4a83b4bbd986fa
1,293
py
Python
src/ui/main_ui.py
PeachyPrinter/tkpeachyprinter
d88dcb4891d19c4b81a7f4f072e120d05c02124c
[ "Apache-2.0" ]
1
2017-03-08T02:48:19.000Z
2017-03-08T02:48:19.000Z
src/ui/main_ui.py
PeachyPrinter/tkpeachyprinter
d88dcb4891d19c4b81a7f4f072e120d05c02124c
[ "Apache-2.0" ]
null
null
null
src/ui/main_ui.py
PeachyPrinter/tkpeachyprinter
d88dcb4891d19c4b81a7f4f072e120d05c02124c
[ "Apache-2.0" ]
6
2016-05-12T04:10:18.000Z
2020-02-15T09:55:00.000Z
from Tkinter import * from ui_tools import * import sys class MainUI(PeachyFrame): def initialize(self): self.grid() try: from VERSION import version version = "Peachy Printer Tools (version: %s)" % version except: version = "Peachy Printer Tools (versi...
33.153846
110
0.634184
acfb64a4542bc9444977fad53b7dc43e3e936bb8
3,218
py
Python
lib/tool_shed/tools/tool_version_manager.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
lib/tool_shed/tools/tool_version_manager.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
lib/tool_shed/tools/tool_version_manager.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
import logging from sqlalchemy import and_ from tool_shed.util import hg_util from tool_shed.util import metadata_util from tool_shed.util import repository_util log = logging.getLogger(__name__) class ToolVersionManager: def __init__(self, app): self.app = app def get_tool_version(self, tool_id)...
46.637681
125
0.635177
acfb65f8f8e26ed3f5597cded45cd7675599d5c7
348
py
Python
prepare.py
lolloberga/Capsian-Engine
086e0fee9392df1642c8199e61e2e24fb6b81e77
[ "Apache-2.0" ]
10
2020-09-26T15:10:48.000Z
2022-02-03T19:13:56.000Z
prepare.py
lolloberga/Capsian-Engine
086e0fee9392df1642c8199e61e2e24fb6b81e77
[ "Apache-2.0" ]
2
2020-09-29T19:13:50.000Z
2021-12-24T12:04:29.000Z
prepare.py
lolloberga/Capsian-Engine
086e0fee9392df1642c8199e61e2e24fb6b81e77
[ "Apache-2.0" ]
3
2021-03-05T20:14:38.000Z
2022-01-26T21:34:36.000Z
from os import system print("Starting Capsian Preparation Tool...") print("This script will install all the dependencies you need") input("Press enter to continue or lcose to terminate ") system("pip install pyglet==1.5.6") system("pip install PyOpenGL") system("pip install pyinstaller") input("Installation complet...
26.769231
63
0.764368
acfb668ec545d6bb031bdd72fccf3275f8580f81
9,685
py
Python
src/rezplugins/build_system/custom.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rezplugins/build_system/custom.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rezplugins/build_system/custom.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
1
2020-09-24T08:33:43.000Z
2020-09-24T08:33:43.000Z
# Copyright Contributors to the Rez project # # 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 ...
34.466192
95
0.601859
acfb66d8094d0eba35d6b8abdb68fdfce658c1cf
5,993
py
Python
kubernetes/client/models/v1_endpoint_address.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
1
2018-10-20T19:37:57.000Z
2018-10-20T19:37:57.000Z
kubernetes/client/models/v1_endpoint_address.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_endpoint_address.py
reymont/python
02a3a31c630c305527b328af49724f348fbdae15
[ "Apache-2.0" ]
2
2018-07-27T19:39:34.000Z
2020-12-25T02:48:27.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.11.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
28.268868
275
0.579843
acfb6758d861a7bacaa582d530693ee1f07ca52a
7,381
py
Python
test/runner/lib/cloud/openshift.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
test/runner/lib/cloud/openshift.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
test/runner/lib/cloud/openshift.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
"""OpenShift plugin for integration tests.""" from __future__ import absolute_import, print_function import json import os import re import time from lib.cloud import ( CloudProvider, CloudEnvironment, ) from lib.util import ( find_executable, ApplicationError, display, SubprocessError, ) fr...
32.804444
141
0.615364
acfb68f7be8fd4e69f5359bf73ddfdc4d4750494
665
py
Python
manage.py
awhigham9/GatorWiki
382bdacb86fccb1a365ffaed2cb5a86441e819e6
[ "MIT" ]
6
2021-09-09T20:38:24.000Z
2021-10-06T03:51:40.000Z
manage.py
awhigham9/GatorWiki
382bdacb86fccb1a365ffaed2cb5a86441e819e6
[ "MIT" ]
16
2021-09-17T17:02:27.000Z
2021-11-07T17:46:41.000Z
manage.py
awhigham9/GatorWiki
382bdacb86fccb1a365ffaed2cb5a86441e819e6
[ "MIT" ]
5
2021-09-09T20:38:27.000Z
2021-09-24T17:33:23.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gatorwiki.settings') try: from django.core.management import execute_from_command_line except Im...
28.913043
73
0.679699
acfb693e5623104b21716be98a85348a928a8a0f
447
py
Python
portal/users/migrations/0007_auto_20210223_1901.py
LDSSA/portal
9561da1e262678fe68dcf51c66007c0fb13eb51a
[ "MIT" ]
2
2020-11-09T03:48:36.000Z
2021-07-02T14:30:09.000Z
portal/users/migrations/0007_auto_20210223_1901.py
LDSSA/portal
9561da1e262678fe68dcf51c66007c0fb13eb51a
[ "MIT" ]
132
2020-04-25T15:57:56.000Z
2022-03-10T19:15:51.000Z
portal/users/migrations/0007_auto_20210223_1901.py
LDSSA/portal
9561da1e262678fe68dcf51c66007c0fb13eb51a
[ "MIT" ]
1
2020-10-24T16:15:57.000Z
2020-10-24T16:15:57.000Z
# Generated by Django 3.1.7 on 2021-02-23 19:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("users", "0006_user_logo"), ] operations = [ migrations.AlterField( model_name="user", name="first_name", ...
21.285714
69
0.565996
acfb69f3995d23c43850a5277464921d788fd5c5
578
py
Python
common/validators.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
null
null
null
common/validators.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
8
2020-03-24T17:11:49.000Z
2022-01-13T01:18:11.000Z
common/validators.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers import resolve, Resolver404 def validate_reserved_url(value, resp=False): try: view, args, kwargs = resolve('/%s/' % value) except R...
30.421053
97
0.698962
acfb6a0f1d891e3ccc31cfd1f9d0cb9dcaa303c5
1,086
py
Python
11_display/eg_11_10_display_draw_string_align.py
byrobot-python/e_drone_examples
fca3ef69f45299f0e80df52ac303e2a1388b2b61
[ "MIT" ]
null
null
null
11_display/eg_11_10_display_draw_string_align.py
byrobot-python/e_drone_examples
fca3ef69f45299f0e80df52ac303e2a1388b2b61
[ "MIT" ]
null
null
null
11_display/eg_11_10_display_draw_string_align.py
byrobot-python/e_drone_examples
fca3ef69f45299f0e80df52ac303e2a1388b2b61
[ "MIT" ]
null
null
null
import random from time import sleep from e_drone.drone import * from e_drone.protocol import * if __name__ == '__main__': drone = Drone() drone.open() header = Header() header.data_type = DataType.DISPLAY_DRAW_STRING_ALIGN header.length = DisplayDrawStringAlign.get_size() ...
27.846154
80
0.598527
acfb6afc5d78a3e4ea07b92db60d93bf5c04aef6
6,742
py
Python
bindings/python/ensmallen_graph/datasets/string/prevotellastercorea.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/prevotellastercorea.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/prevotellastercorea.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Prevotella stercorea. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-0...
35.298429
223
0.706022
acfb6b340bc5088de9a020fcf907f83beb45e702
4,347
py
Python
codes/preprocess/create_bicubic_dataset.py
YamSquirrel/realsr_test
60c52cfc7091eeeff0b8d25c4fd3819584517212
[ "Apache-2.0" ]
1
2022-03-15T07:42:53.000Z
2022-03-15T07:42:53.000Z
codes/preprocess/create_bicubic_dataset.py
openmynet/realsr_test
60c52cfc7091eeeff0b8d25c4fd3819584517212
[ "Apache-2.0" ]
null
null
null
codes/preprocess/create_bicubic_dataset.py
openmynet/realsr_test
60c52cfc7091eeeff0b8d25c4fd3819584517212
[ "Apache-2.0" ]
1
2022-03-15T07:42:47.000Z
2022-03-15T07:42:47.000Z
import argparse import os import torch.utils.data import yaml import utils from PIL import Image import torchvision.transforms.functional as TF from tqdm import tqdm parser = argparse.ArgumentParser(description='Apply the trained model to create a dataset') parser.add_argument('--checkpoint', default=None, type=str, ...
45.28125
118
0.703474
acfb6b48a9b1a181d731d5fa486e67d3048a28f8
20,420
py
Python
tensorflow/contrib/learn/python/learn/io/data_feeder.py
cedias/tensorflow
ede4b4c111ebd2b96703dce42f0f7c5f2173f0e7
[ "Apache-2.0" ]
2
2017-06-29T11:50:27.000Z
2019-10-15T18:55:28.000Z
tensorflow/contrib/learn/python/learn/io/data_feeder.py
cedias/tensorflow
ede4b4c111ebd2b96703dce42f0f7c5f2173f0e7
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/learn/python/learn/io/data_feeder.py
cedias/tensorflow
ede4b4c111ebd2b96703dce42f0f7c5f2173f0e7
[ "Apache-2.0" ]
8
2017-04-17T23:39:12.000Z
2019-05-11T14:06:31.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...
34.493243
100
0.673506
acfb6b6d893b6c7d222c49925ba14cae9c546cea
1,566
py
Python
packages/OpenCV/nodes/OpenCV___ThresholdAdaptiveMean0/OpenCV___ThresholdAdaptiveMean0___METACODE.py
lidong1266/Ryven-Switch
68d1f71e81d6564196f44ca49d5903f06db6a4d9
[ "MIT" ]
18
2021-01-18T09:52:41.000Z
2022-03-22T10:48:44.000Z
packages/OpenCV/nodes/OpenCV___ThresholdAdaptiveMean0/OpenCV___ThresholdAdaptiveMean0___METACODE.py
xamofb-xsk/Ryven
8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1
[ "MIT" ]
null
null
null
packages/OpenCV/nodes/OpenCV___ThresholdAdaptiveMean0/OpenCV___ThresholdAdaptiveMean0___METACODE.py
xamofb-xsk/Ryven
8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1
[ "MIT" ]
3
2021-01-18T09:49:42.000Z
2022-03-22T10:48:47.000Z
from NIENV import * # API METHODS # self.main_widget <- access to main widget # Ports # self.input(index) <- access to input data # set_output_val(self, index, val) <- set output data port value # self.exec_output(index) <- executes an execution output # self.create_new_inp...
27.964286
118
0.61175
acfb6b81d1729596ded9d2af9fdd52e2be8482b5
1,255
py
Python
src/stk/molecular/key_makers/smiles.py
andrewtarzia/stk
1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a
[ "MIT" ]
21
2018-04-12T16:25:24.000Z
2022-02-14T23:05:43.000Z
src/stk/molecular/key_makers/smiles.py
JelfsMaterialsGroup/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
8
2019-03-19T12:36:36.000Z
2020-11-11T12:46:00.000Z
src/stk/molecular/key_makers/smiles.py
supramolecular-toolkit/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
5
2018-08-07T13:00:16.000Z
2021-11-01T00:55:10.000Z
""" SMILES ====== """ from .molecule import MoleculeKeyMaker from .utilities import get_smiles __all__ = ( 'Smiles', ) class Smiles(MoleculeKeyMaker): """ Used to get the SMILES of molecules. Examples: *Adding SMILES to a Molecule's JSON* You want to use the isomeric, canonical ...
20.241935
68
0.555378
acfb6bd89e2bf0508499b4010e890971ec5a8907
483
py
Python
tests/function.py
btalebali/pysphere
cda8bbc480f9942911fb8f9c7f3c5c9a4da8bd43
[ "Unlicense" ]
null
null
null
tests/function.py
btalebali/pysphere
cda8bbc480f9942911fb8f9c7f3c5c9a4da8bd43
[ "Unlicense" ]
null
null
null
tests/function.py
btalebali/pysphere
cda8bbc480f9942911fb8f9c7f3c5c9a4da8bd43
[ "Unlicense" ]
null
null
null
import time import threading import os import urllib2 import mmap import sys, re, getpass, argparse, subprocess from urlparse import urlparse from time import sleep from pysphere import VIServer, MORTypes from pysphere import VIProperty, VITask,VIException, FaultTypes from pysphere.vi_virtual_machine import VIVirtual...
24.15
64
0.84472
acfb6bea34e4f21d414dc262f6f49c3c957210d9
5,840
py
Python
src/skill_algorithms/trueskill_data_processing.py
EllAchE/nba_tipoff
f3820e391d4a6ddb611efeb6c709f16876771684
[ "MIT" ]
null
null
null
src/skill_algorithms/trueskill_data_processing.py
EllAchE/nba_tipoff
f3820e391d4a6ddb611efeb6c709f16876771684
[ "MIT" ]
null
null
null
src/skill_algorithms/trueskill_data_processing.py
EllAchE/nba_tipoff
f3820e391d4a6ddb611efeb6c709f16876771684
[ "MIT" ]
null
null
null
import ENVIRONMENT from src.database.database_creation import createPlayerTrueSkillDictionary from src.skill_algorithms.algorithms import trueSkillMatchWithRawNums, trueSkillTipWinProb from src.skill_algorithms.common_data_processing import beforeMatchPredictions, runAlgoForSeason, runAlgoForAllSeasons # backlogtodo...
62.12766
291
0.738356
acfb6c07e38ad8fa6aaccccaa3f8fba6e7b62444
319
py
Python
requests_testing.py
ingxfm/python-web-modules-testing
a6eaeb6a6f77924784ba6f74c1e9c3df313d07e4
[ "MIT" ]
null
null
null
requests_testing.py
ingxfm/python-web-modules-testing
a6eaeb6a6f77924784ba6f74c1e9c3df313d07e4
[ "MIT" ]
null
null
null
requests_testing.py
ingxfm/python-web-modules-testing
a6eaeb6a6f77924784ba6f74c1e9c3df313d07e4
[ "MIT" ]
null
null
null
# Python Standard libraries # 3rd-party libraries import requests # Local libraries res = requests.get('https://automatetheboringstuff.com/files/rj.txt') #print(type(res)) try: res.raise_for_status() except Exception as exc: print('There was a problem: %s' % (exc)) print(res.text[:262])
17.722222
70
0.677116
acfb6c10f8763b2c87ee071985b9858465a1eadb
814
py
Python
active_user_service.py
srtsignin/ActiveUserService-Spike
8f6248d48ea4a71b3c60983e9c72b3feb8d62754
[ "MIT" ]
null
null
null
active_user_service.py
srtsignin/ActiveUserService-Spike
8f6248d48ea4a71b3c60983e9c72b3feb8d62754
[ "MIT" ]
null
null
null
active_user_service.py
srtsignin/ActiveUserService-Spike
8f6248d48ea4a71b3c60983e9c72b3feb8d62754
[ "MIT" ]
null
null
null
from flask import Flask from flask import request import json app = Flask(__name__) active_users = list() @app.route('/', methods=['GET', 'POST', 'DELETE']) def handle_request(): global active_users if request.method == 'GET': response = { 'activeUsers': active_users } ret...
24.666667
51
0.595823
acfb6c55207feb3626e3f1317df307629ad0a149
787
py
Python
src/meltano/core/setting.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
122
2021-06-21T17:30:29.000Z
2022-03-25T06:21:38.000Z
src/meltano/core/setting.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
null
null
null
src/meltano/core/setting.py
siilats/meltano
404605c83f441c3fc2b729e26416c6caa8b0ed0b
[ "MIT" ]
21
2021-06-22T10:08:15.000Z
2022-03-18T08:57:02.000Z
import logging import os import sqlalchemy.types as types from sqlalchemy import Column, UniqueConstraint from .models import SystemModel from .utils import nest class Setting(SystemModel): __tablename__ = "plugin_settings" # represent the mapping to the ENV label = Column(types.String) description...
28.107143
80
0.721728
acfb6d2964366ced89e8e844ee4902b958558c91
1,448
py
Python
Secao9_ComprehensionEmPython/ListasAninhadas.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Secao9_ComprehensionEmPython/ListasAninhadas.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Secao9_ComprehensionEmPython/ListasAninhadas.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
""" Listas aninhadas - (nested list) Em algumas linguagens, tem-se arrays (C, Java) - Unidimensional (arrays/vetores) - Multidimensionais (matrizes) Em python, se tem as listas aninhadas Exemplo: lista = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] Obs.: Cada sublista é uma linha Cada numero é uma coluna Acesso aos d...
22.625
114
0.446823
acfb6d37e5d7640cd27cbcbef5206d7fb74d502f
3,072
py
Python
salt/modules/opsgenie.py
yuanbaopapa/salt
c46490c18394799b5ea5d115c4500080cf41ef91
[ "Apache-2.0" ]
1
2021-08-14T13:48:38.000Z
2021-08-14T13:48:38.000Z
salt/modules/opsgenie.py
yuanbaopapa/salt
c46490c18394799b5ea5d115c4500080cf41ef91
[ "Apache-2.0" ]
3
2015-03-31T14:44:05.000Z
2015-06-18T19:02:24.000Z
salt/modules/opsgenie.py
yuanbaopapa/salt
c46490c18394799b5ea5d115c4500080cf41ef91
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Module for sending data to OpsGenie .. versionadded:: Oxygen :configuration: This module can be used in Reactor System for posting data to OpsGenie as a remote-execution function. For example: .. code-block:: yaml opsgenie_event_poster: local.opsgenie.post_...
31.030303
79
0.651693
acfb6db560befd2a280702d409f8b889bcdc981a
12,263
py
Python
tests/python/test_basic.py
sanchitanand/xgboost
b3193052b31e3e984f0f3d9c2c67ae3c2e114f9b
[ "Apache-2.0" ]
2
2021-03-07T15:27:46.000Z
2021-03-07T15:32:28.000Z
tests/python/test_basic.py
sanchitanand/xgboost
b3193052b31e3e984f0f3d9c2c67ae3c2e114f9b
[ "Apache-2.0" ]
1
2020-07-20T17:18:36.000Z
2020-07-20T17:18:36.000Z
tests/python/test_basic.py
sanchitanand/xgboost
b3193052b31e3e984f0f3d9c2c67ae3c2e114f9b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys from contextlib import contextmanager from io import StringIO import numpy as np import os import xgboost as xgb import unittest import json from pathlib import Path import tempfile dpath = 'demo/data/' rng = np.random.RandomState(1994) @contextmanager def captured_output(): ""...
36.497024
101
0.577346
acfb6e045addb33ebadcc4064c8f36a0f4f33f3b
4,843
py
Python
users/migrations/0001_initial.py
almazkun/TWS
c4c52e9f96a0638e395e39a17186e43cfefd5093
[ "MIT" ]
1
2020-06-12T05:50:59.000Z
2020-06-12T05:50:59.000Z
users/migrations/0001_initial.py
almazkun/TWS
c4c52e9f96a0638e395e39a17186e43cfefd5093
[ "MIT" ]
6
2020-06-09T09:54:16.000Z
2021-09-22T19:16:11.000Z
users/migrations/0001_initial.py
almazkun/TWS
c4c52e9f96a0638e395e39a17186e43cfefd5093
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-06-09 02:25 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [("auth", "0011_update_proxy_permissions")] ...
37.253846
138
0.400991
acfb6f35e3a1ba65761121fd690e7e2767f862d9
101
py
Python
Aula 07/Ex4.py
diegorafaelvieira/Programacao-1
657a974f1215cec4aed68603e738d9a135131545
[ "MIT" ]
null
null
null
Aula 07/Ex4.py
diegorafaelvieira/Programacao-1
657a974f1215cec4aed68603e738d9a135131545
[ "MIT" ]
null
null
null
Aula 07/Ex4.py
diegorafaelvieira/Programacao-1
657a974f1215cec4aed68603e738d9a135131545
[ "MIT" ]
null
null
null
produto = 1 for i in range (1,16): if i%2!=0: produto = produto*i print(produto)
16.833333
27
0.534653
acfb6f4c22a2b205e26993f1482180711acd9b81
4,059
py
Python
astropy/coordinates/builtin_frames/galactic.py
Olek-Donaldson/astropy
ed9ec69007bd540bcf476def57c5231e5e7c1240
[ "BSD-3-Clause" ]
4
2021-03-25T15:49:56.000Z
2021-12-15T09:10:04.000Z
astropy/coordinates/builtin_frames/galactic.py
Olek-Donaldson/astropy
ed9ec69007bd540bcf476def57c5231e5e7c1240
[ "BSD-3-Clause" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
astropy/coordinates/builtin_frames/galactic.py
Olek-Donaldson/astropy
ed9ec69007bd540bcf476def57c5231e5e7c1240
[ "BSD-3-Clause" ]
3
2021-03-28T16:13:00.000Z
2021-07-16T10:27:25.000Z
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from astropy import units as u from astropy.utils.decorators import format_doc from astropy.coordinates.angles import Angle from astropy.coordinates import representation as r from astropy.coordinates.baseframe import BaseCoordinat...
41.418367
94
0.68071
acfb706e6f53ca1796ce2c207354028a9d427f9c
2,839
py
Python
max_likelihood.py
SnetkovR/mmpe
3aabd85dc487b4d9a3ba69d1cfbdfe107e318a91
[ "Apache-2.0" ]
null
null
null
max_likelihood.py
SnetkovR/mmpe
3aabd85dc487b4d9a3ba69d1cfbdfe107e318a91
[ "Apache-2.0" ]
null
null
null
max_likelihood.py
SnetkovR/mmpe
3aabd85dc487b4d9a3ba69d1cfbdfe107e318a91
[ "Apache-2.0" ]
null
null
null
import numpy as np import copy from scipy.integrate import odeint from collections import namedtuple class MaxLikelihood: def __init__(self, Q, R, H, x_0, P, t, F, Gamma, nu, u, N, phi, update_dict): self._Q = Q self._R = R self.x_0 = x_0 ...
25.576577
88
0.512504
acfb70de1b2b25998c73f9f7ede1661ceea63f2f
27,009
py
Python
src/dbdiff/main.py
andyreagan/dbdiff
6fccc6cd7c88e1e91def7bfc89057b0c0fd73883
[ "MIT" ]
null
null
null
src/dbdiff/main.py
andyreagan/dbdiff
6fccc6cd7c88e1e91def7bfc89057b0c0fd73883
[ "MIT" ]
null
null
null
src/dbdiff/main.py
andyreagan/dbdiff
6fccc6cd7c88e1e91def7bfc89057b0c0fd73883
[ "MIT" ]
null
null
null
import logging import logging.config from pathlib import Path from typing import Any, Dict, Tuple import pandas as pd from jinja2 import Environment, PackageLoader from vertica_python.vertica.cursor import Cursor from dbdiff.vertica import get_column_info_lookup, implicit_dtype_comparison JINJA_ENV = Environment(loa...
46.248288
214
0.614758
acfb71dacff93654acba672b65d01246085593d3
1,263
py
Python
src/pymortests/core/logger.py
hvhue/pymor
0815d74514fa5c4e0ad6f379f29abdd7d067cedd
[ "Unlicense" ]
null
null
null
src/pymortests/core/logger.py
hvhue/pymor
0815d74514fa5c4e0ad6f379f29abdd7d067cedd
[ "Unlicense" ]
null
null
null
src/pymortests/core/logger.py
hvhue/pymor
0815d74514fa5c4e0ad6f379f29abdd7d067cedd
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2020 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import logging import pymor.core as core from pymor.core.logger import log_levels from pymor.oper...
31.575
85
0.706255
acfb71ebebe0bdd5c0601073409a77ddae1e1b1e
371
py
Python
detection/scrfd/mmdet/models/roi_heads/bbox_heads/__init__.py
qaz734913414/insightface
4101fe608ca1d38604a23d53f32314ce8a28fe79
[ "MIT" ]
12,377
2017-12-04T02:46:57.000Z
2022-03-31T16:48:31.000Z
mmdet/models/roi_heads/bbox_heads/__init__.py
Oz-art/mmdetection
d3cf38d91c454b1a6881e8c36c1e4a66dc5521b8
[ "Apache-2.0" ]
1,851
2017-12-05T05:41:23.000Z
2022-03-30T13:06:22.000Z
mmdet/models/roi_heads/bbox_heads/__init__.py
Oz-art/mmdetection
d3cf38d91c454b1a6881e8c36c1e4a66dc5521b8
[ "Apache-2.0" ]
4,198
2017-12-05T02:57:19.000Z
2022-03-30T10:29:37.000Z
from .bbox_head import BBoxHead from .convfc_bbox_head import (ConvFCBBoxHead, Shared2FCBBoxHead, Shared4Conv1FCBBoxHead) from .double_bbox_head import DoubleConvFCBBoxHead from .sabl_head import SABLHead __all__ = [ 'BBoxHead', 'ConvFCBBoxHead', 'Shared2FCBBoxHead', 'Shared4Conv...
33.727273
65
0.74124
acfb72d7600e44ba1ef4a2bdd59722f5cb1b861d
265
py
Python
hyer/__init__.py
pyx/hyer
cd3a27f2194a7f02eb9a14788f599fe3efe85f10
[ "BSD-3-Clause" ]
17
2015-02-27T04:48:08.000Z
2021-09-23T09:01:07.000Z
hyer/__init__.py
pyx/hyer
cd3a27f2194a7f02eb9a14788f599fe3efe85f10
[ "BSD-3-Clause" ]
null
null
null
hyer/__init__.py
pyx/hyer
cd3a27f2194a7f02eb9a14788f599fe3efe85f10
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014-2016, Philip Xu <pyx@xrefactor.com> # License: BSD New, see LICENSE for details. """Hyer - Hy enhanced routing""" __version__ = (0, 1) __release__ = '.dev0' VERSION = '%d.%d' % __version__ + __release__ __all__ = [ ]
20.384615
56
0.645283
acfb72e9ab30e5c24bd73a64b884921ef73e3cc9
2,735
py
Python
lib/surface/compute/backend_buckets/edit.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/backend_buckets/edit.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/backend_buckets/edit.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
2
2020-11-04T03:08:21.000Z
2020-11-05T08:14:41.000Z
# Copyright 2015 Google 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 applicable law or ag...
30.730337
74
0.690676
acfb738f8c8a6c5697ae1387d06ca5cfc7cab8ba
304
py
Python
jigna/api.py
David-Baddeley/jigna
00192450515099d8abc74866ffe1e4f743fe2279
[ "BSD-3-Clause" ]
17
2015-02-19T15:35:09.000Z
2021-06-21T09:50:00.000Z
jigna/api.py
David-Baddeley/jigna
00192450515099d8abc74866ffe1e4f743fe2279
[ "BSD-3-Clause" ]
41
2015-02-12T13:15:01.000Z
2019-07-22T21:06:23.000Z
jigna/api.py
David-Baddeley/jigna
00192450515099d8abc74866ffe1e4f743fe2279
[ "BSD-3-Clause" ]
14
2015-02-26T06:19:27.000Z
2020-11-03T07:10:11.000Z
from .template import Template from .vue_template import VueTemplate from .core.concurrent import Future from .html_widget import HTMLWidget # Wrapping the WebApp import so that you can use jigna even if you don't have # tornado install try: from .web_app import WebApp except ImportError: pass
25.333333
77
0.792763