hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
14dbbcca53098750ba46cd125e6701543cbb7914
35
py
Python
src/Cosmos/Security/__init__.py
cosmos-cms/cosmos-python
32f5fab1f503b2ab57176a82b3428e78f9ab591a
[ "MIT" ]
null
null
null
src/Cosmos/Security/__init__.py
cosmos-cms/cosmos-python
32f5fab1f503b2ab57176a82b3428e78f9ab591a
[ "MIT" ]
null
null
null
src/Cosmos/Security/__init__.py
cosmos-cms/cosmos-python
32f5fab1f503b2ab57176a82b3428e78f9ab591a
[ "MIT" ]
null
null
null
from .Encryption import Encryption
17.5
34
0.857143
5bda47598f84e671e0ca8c98c9e7cbea8cd1cb65
676
py
Python
env/bin/django-admin.py
Shaurov05/t5-transformer-paraphraser
001dc7be903a408965639dce93c24600533d1ed4
[ "MIT" ]
null
null
null
env/bin/django-admin.py
Shaurov05/t5-transformer-paraphraser
001dc7be903a408965639dce93c24600533d1ed4
[ "MIT" ]
1
2020-11-28T18:41:02.000Z
2020-11-28T18:41:02.000Z
env/bin/django-admin.py
Shaurov05/t5-transformer-paraphraser
001dc7be903a408965639dce93c24600533d1ed4
[ "MIT" ]
null
null
null
#!/home/parvez/paraphraser/env/bin/python # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'django-admin.py was deprecated in Dja...
30.727273
80
0.724852
de6d83dca7e8eddc6628cfe3a663a991d7b622c1
2,232
py
Python
backend/wispy_mode_30092/urls.py
crowdbotics-apps/rocket-pocket-30092
fc5ebcd5d3100745d62ad915b970132b68d903ce
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/wispy_mode_30092/urls.py
crowdbotics-apps/rocket-pocket-30092
fc5ebcd5d3100745d62ad915b970132b68d903ce
[ "FTL", "AML", "RSA-MD" ]
10
2021-09-07T13:22:01.000Z
2022-01-02T15:32:25.000Z
backend/wispy_mode_30092/urls.py
crowdbotics-apps/wispy-mode-30092
fc5ebcd5d3100745d62ad915b970132b68d903ce
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""wispy_mode_30092 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
35.428571
87
0.712814
7186459583288ce8dee50cbeeca578962ba7c568
13,692
py
Python
trikit/tests/test_triangle_ut.py
trikit/trikit
f77e9333a9d1c886f58aaf271d55b176c8f53262
[ "MIT" ]
4
2021-01-15T15:53:10.000Z
2021-10-01T17:28:59.000Z
trikit/tests/test_triangle_ut.py
trikit/trikit
f77e9333a9d1c886f58aaf271d55b176c8f53262
[ "MIT" ]
null
null
null
trikit/tests/test_triangle_ut.py
trikit/trikit
f77e9333a9d1c886f58aaf271d55b176c8f53262
[ "MIT" ]
4
2021-02-14T01:55:51.000Z
2021-09-08T18:17:41.000Z
""" trikit.triangle tests. """ import unittest import pandas as pd import numpy as np import trikit # IncrTriangle unit tests. class IncrTriangleTestCase(unittest.TestCase): def setUp(self): data = trikit.load(dataset="raa") self.tri = trikit.totri(data=data, tri_type="incremental") self...
37.927978
110
0.588446
ba1e84293f8d71a1b0be848d40a9656c24325b7b
712
py
Python
project_cl/tools/stats.py
zhyever/SimIPU
5b346e392c161a5e9fdde09b1692656bc7cd3faf
[ "Apache-2.0" ]
29
2021-09-29T13:31:12.000Z
2022-03-15T13:31:25.000Z
project_cl/tools/stats.py
zhyever/SimIPU
5b346e392c161a5e9fdde09b1692656bc7cd3faf
[ "Apache-2.0" ]
3
2021-12-13T01:21:12.000Z
2022-02-24T01:46:14.000Z
project_cl/tools/stats.py
zhyever/SimIPU
5b346e392c161a5e9fdde09b1692656bc7cd3faf
[ "Apache-2.0" ]
1
2021-12-03T08:39:18.000Z
2021-12-03T08:39:18.000Z
import mmcv import pickle import os root = '/mnt/share_data/waymo_dataset/kitti_format' # f3 = open(os.path.join(root,'two_percentage.pkl'),'rb') # 1% -> 1580, full_data->158081 f3 = open(os.path.join(root,'one_percentage_val.pkl'),'rb') train = pickle.load(f3) counts = {"Car": 0, "Ped":0, "Cyc":0} for item in tra...
20.941176
89
0.585674
08dfe29687727f638ecd865ba6d2042260ae82ba
23,521
py
Python
ckan/tests/legacy/lib/test_dictization.py
larrycameron80/ckan
fbab8f51b36a293206fdd998d71ece27d2565951
[ "Apache-2.0" ]
1
2022-02-14T20:25:34.000Z
2022-02-14T20:25:34.000Z
ckan/tests/legacy/lib/test_dictization.py
larrycameron80/ckan
fbab8f51b36a293206fdd998d71ece27d2565951
[ "Apache-2.0" ]
4
2020-03-24T17:53:23.000Z
2021-03-31T19:19:03.000Z
ckan/tests/legacy/lib/test_dictization.py
larrycameron80/ckan
fbab8f51b36a293206fdd998d71ece27d2565951
[ "Apache-2.0" ]
3
2020-01-02T10:32:37.000Z
2021-12-22T07:20:21.000Z
# encoding: utf-8 from __future__ import print_function from nose.tools import assert_equal, assert_not_in, assert_in from pprint import pprint, pformat from difflib import unified_diff import ckan.lib.search as search from ckan.lib.create_test_data import CreateTestData from ckan import model from ckan.lib.dictizat...
37.937097
269
0.516007
61748b7483ec3e27b01e7d1624edfa6db25f8bd2
18,012
py
Python
tests/test_order.py
mmmcorpsvit/saleor
09e40a2af549109fbc2f8e82c68a195053e8224e
[ "BSD-3-Clause" ]
null
null
null
tests/test_order.py
mmmcorpsvit/saleor
09e40a2af549109fbc2f8e82c68a195053e8224e
[ "BSD-3-Clause" ]
null
null
null
tests/test_order.py
mmmcorpsvit/saleor
09e40a2af549109fbc2f8e82c68a195053e8224e
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal import pytest from django.urls import reverse from django_countries.fields import Country from payments import FraudStatus, PaymentStatus from prices import Money, TaxedMoney from tests.utils import get_redirect_location from saleor.account.models import User from saleor.checkout.utils imp...
35.952096
79
0.744726
0e9120311fef52459a8719b5fb1e7b29f990801d
95,936
py
Python
elastalert/alerts.py
Nclose-ZA/elastalert
7016ce1aa0ea4cfa9cbd624f9eb4df3de39d2fd7
[ "Apache-2.0" ]
null
null
null
elastalert/alerts.py
Nclose-ZA/elastalert
7016ce1aa0ea4cfa9cbd624f9eb4df3de39d2fd7
[ "Apache-2.0" ]
null
null
null
elastalert/alerts.py
Nclose-ZA/elastalert
7016ce1aa0ea4cfa9cbd624f9eb4df3de39d2fd7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import copy import datetime import json import logging import os import re import subprocess import sys import time import uuid import warnings from email.mime.text import MIMEText from email.utils import formatdate from HTMLParser import HTMLParser from smtplib import SMTP from smtplib import S...
44.210138
138
0.607926
b7b56c7729b8239a18a6d2e3c06b6868a4ef482d
23,028
py
Python
autoarray/inversion/pixelizations/delaunay.py
caoxiaoyue/PyAutoArray
e10d3d6a5b8dd031f2ad277486bd539bd5858b2a
[ "MIT" ]
null
null
null
autoarray/inversion/pixelizations/delaunay.py
caoxiaoyue/PyAutoArray
e10d3d6a5b8dd031f2ad277486bd539bd5858b2a
[ "MIT" ]
null
null
null
autoarray/inversion/pixelizations/delaunay.py
caoxiaoyue/PyAutoArray
e10d3d6a5b8dd031f2ad277486bd539bd5858b2a
[ "MIT" ]
null
null
null
import copy import numpy as np from typing import Dict, Optional from autoarray.structures.grids.two_d.grid_2d import Grid2D from autoarray.structures.grids.two_d.grid_2d import Grid2DSparse from autoarray.structures.grids.two_d.grid_2d_pixelization import Grid2DDelaunay from autoarray.preloads import Preloads ...
52.816514
121
0.6823
bf528c84dcdaf227e43c27f0073e4ebbb28d13d8
1,157
py
Python
src/jetbot_sdf/scripts/move.py
Tao-wecorp/jetbot_sdf
6b5b873b36eca068404ee5477ffc477dccd76c7f
[ "MIT" ]
null
null
null
src/jetbot_sdf/scripts/move.py
Tao-wecorp/jetbot_sdf
6b5b873b36eca068404ee5477ffc477dccd76c7f
[ "MIT" ]
null
null
null
src/jetbot_sdf/scripts/move.py
Tao-wecorp/jetbot_sdf
6b5b873b36eca068404ee5477ffc477dccd76c7f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import rospkg from math import pi from geometry_msgs.msg import Pose, Quaternion from gazebo_msgs.msg import ModelState from gazebo_msgs.srv import SetModelState from tf.transformations import quaternion_from_euler def main(): rospy.init_node('set_pose') state_msg = ModelSt...
30.447368
88
0.709594
783633bd3478c828fc71a31369c20594787fb448
523
py
Python
tests/flaky_tests_check.py
fracting/ml-recsys-tools
b49ef6f8aa53ab929418ab71e1898c1a67f82f63
[ "MIT" ]
16
2018-04-12T06:57:51.000Z
2021-02-01T14:35:23.000Z
tests/flaky_tests_check.py
fracting/ml-recsys-tools
b49ef6f8aa53ab929418ab71e1898c1a67f82f63
[ "MIT" ]
null
null
null
tests/flaky_tests_check.py
fracting/ml-recsys-tools
b49ef6f8aa53ab929418ab71e1898c1a67f82f63
[ "MIT" ]
4
2018-11-08T02:56:20.000Z
2020-08-11T07:24:20.000Z
import os import unittest from collections import Counter root_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..') n_flakes = 0 flakes = Counter() for i in range(50): # run tests suite = unittest.TestLoader().discover(root_dir) result = unittest.TextTestRunner().run(suite) fails = re...
26.15
73
0.667304
f29177c3e1b275e64040855f2436499cd183cc61
1,271
py
Python
test.py
thisisdevanshu/Landmark-Detection-CNN
6d25ba39119eece29cf8eead8e35003c58e5b06e
[ "Apache-2.0" ]
null
null
null
test.py
thisisdevanshu/Landmark-Detection-CNN
6d25ba39119eece29cf8eead8e35003c58e5b06e
[ "Apache-2.0" ]
null
null
null
test.py
thisisdevanshu/Landmark-Detection-CNN
6d25ba39119eece29cf8eead8e35003c58e5b06e
[ "Apache-2.0" ]
null
null
null
from keras.models import load_model from keras.preprocessing import image import keras import numpy as np import argparse classifier = load_model('model') test_image = image.load_img('LD_Test/phy.jpg', target_size = (300, 300)) parser = argparse.ArgumentParser() parser.add_argument( '--image', type=str, default='', ...
24.442308
72
0.717545
34c579ffd9ed04034a61ff09ea5d03d3aa2d06cc
1,725
py
Python
simulation/logging/run.py
christo4ferris/spacetech-kubesat
e558153781a82b146f83d5ef9121830c2d12920c
[ "Apache-2.0" ]
null
null
null
simulation/logging/run.py
christo4ferris/spacetech-kubesat
e558153781a82b146f83d5ef9121830c2d12920c
[ "Apache-2.0" ]
null
null
null
simulation/logging/run.py
christo4ferris/spacetech-kubesat
e558153781a82b146f83d5ef9121830c2d12920c
[ "Apache-2.0" ]
null
null
null
import argparse from logging_service import simulation def clean(stri): stri = stri.strip(" ") stri = stri.strip("\n") stri = stri.strip("\r") stri = stri.strip("\t") return stri if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('-u', '--nats_user', help='Us...
38.333333
91
0.666087
9d8c4c5012283ca0772b05661f315a08ae526236
527
py
Python
plotly/validators/scatter3d/line/_cmax.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/scatter3d/line/_cmax.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/scatter3d/line/_cmax.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name='cmax', parent_name='scatter3d.line', **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_nam...
31
72
0.626186
c44ccf6d80bbcb59e2a0aa122e351a457720e906
2,549
py
Python
app/tests/api/alert_tool/test_create.py
hollyfoxx/ace2-ams-api
08ecf3f3dc8ac9abd224465731458950d4f78b7d
[ "Apache-2.0" ]
null
null
null
app/tests/api/alert_tool/test_create.py
hollyfoxx/ace2-ams-api
08ecf3f3dc8ac9abd224465731458950d4f78b7d
[ "Apache-2.0" ]
null
null
null
app/tests/api/alert_tool/test_create.py
hollyfoxx/ace2-ams-api
08ecf3f3dc8ac9abd224465731458950d4f78b7d
[ "Apache-2.0" ]
null
null
null
import pytest import uuid from fastapi import status # # INVALID TESTS # @pytest.mark.parametrize( "key,value", [ ("description", 123), ("description", ""), ("uuid", None), ("uuid", 1), ("uuid", "abc"), ("uuid", ""), ("value", 123), ("value", ...
27.706522
99
0.66889
2a7391a9aec80fed83d3bb1cfd12b885693155f5
2,368
py
Python
lightautoml/ml_algo/utils.py
PhySci/LightAutoML
e860991ba36361629fe9e11e034c5e976fe4219b
[ "Apache-2.0" ]
1
2021-10-02T05:28:16.000Z
2021-10-02T05:28:16.000Z
lightautoml/ml_algo/utils.py
DESimakov/LightAutoML
2eaa05b27c63c613965d50cdb7d52da5d245d9af
[ "Apache-2.0" ]
null
null
null
lightautoml/ml_algo/utils.py
DESimakov/LightAutoML
2eaa05b27c63c613965d50cdb7d52da5d245d9af
[ "Apache-2.0" ]
null
null
null
"""Tools for model training.""" import logging from typing import Optional from typing import Tuple from ..dataset.base import LAMLDataset from ..validation.base import TrainValidIterator from .base import MLAlgo from .tuning.base import ParamsTuner logger = logging.getLogger(__name__) def tune_and_fit_predict( ...
28.878049
91
0.649916
14a8a0a4e8d1fbe1422e4931181a0cd948d167c7
4,064
py
Python
spatialtis/_plotting/base/expression_map.py
Mr-Milk/SpatialTis
bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6
[ "Apache-2.0" ]
10
2020-07-14T13:27:35.000Z
2021-11-24T21:41:30.000Z
spatialtis/_plotting/base/expression_map.py
Mr-Milk/SpatialTis
bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6
[ "Apache-2.0" ]
21
2021-01-10T09:39:25.000Z
2022-03-12T01:04:52.000Z
spatialtis/_plotting/base/expression_map.py
Mr-Milk/SpatialTis
bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6
[ "Apache-2.0" ]
null
null
null
from typing import List, Tuple import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import pyecharts.options as opts from mpl_toolkits.axes_grid1.inset_locator import inset_axes from pyecharts.charts import Bar3D from spatialtis._plotting.abc import MatplotlibMixin, PyechartsMixin from spatialt...
30.787879
77
0.559055
2c2ff08622f924a25c56ae4cd8a8a6378b30bdc7
5,058
py
Python
CB/jogodavelha.py
SkiNgK/cb.2.16
060c83413e3374613d93b82eaea3f73af6818ea9
[ "MIT" ]
null
null
null
CB/jogodavelha.py
SkiNgK/cb.2.16
060c83413e3374613d93b82eaea3f73af6818ea9
[ "MIT" ]
null
null
null
CB/jogodavelha.py
SkiNgK/cb.2.16
060c83413e3374613d93b82eaea3f73af6818ea9
[ "MIT" ]
null
null
null
# encoding: utf -8 matriz = [['-','-','-'], ['-','-','-'], ['-','-','-']] print'\n' print'\t 0 1 2' print'\t0 %s | %s | %s ' % (matriz[0][0], matriz[0][1], matriz[0][2]) print'\t ---------- ' print'\t1 %s | %s | %s ' % (matriz[1][0], matriz[1][1], matriz[1][2]) print'\t ----------' print'\t2 %s | ...
26.761905
73
0.457098
4867a0a7718d72d382b3e6d5c77d88fcfab8732d
1,519
py
Python
airflow_tutorial/serve.py
thejungwon/machine_learning_serving
1d1e003c65588dbe1383619e21dfe4b22afc713e
[ "MIT" ]
null
null
null
airflow_tutorial/serve.py
thejungwon/machine_learning_serving
1d1e003c65588dbe1383619e21dfe4b22afc713e
[ "MIT" ]
null
null
null
airflow_tutorial/serve.py
thejungwon/machine_learning_serving
1d1e003c65588dbe1383619e21dfe4b22afc713e
[ "MIT" ]
null
null
null
from flask import Flask from flask import request from flask import render_template,url_for from PIL import Image import io import base64 import cv2 import numpy as np import urllib from joblib import dump, load from binascii import a2b_base64 import tensorflow as tf try: model = tf.keras.models.load_model('my_m...
22.014493
60
0.633311
0b31367605da909e976f86d44dbba95e1b46e957
3,289
py
Python
tools/taxonomy/poisson2test.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
2
2016-02-23T00:09:14.000Z
2019-02-11T07:48:44.000Z
tools/taxonomy/poisson2test.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
tools/taxonomy/poisson2test.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
6
2015-05-27T13:09:50.000Z
2019-02-11T07:48:46.000Z
#!/usr/local/bin/python import sys from math import * from rpy import * if ((len(sys.argv)-1) != 6): print 'too few parameters' print 'usage: inputfile, col1, col2, d-value(not 0), p-val correction method(0 or 1)' sys.exit() try: lines_arr = open(sys.argv[1]).readlines() except IOError: pri...
26.312
138
0.528732
e89544a81ee25b417c7a0746e18d235fee5a1837
3,072
py
Python
python/GafferSceneUI/ExternalProceduralUI.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUI/ExternalProceduralUI.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneUI/ExternalProceduralUI.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2014, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
37.925926
142
0.644857
96418f6991c0afdd700d76c2156de1c3ac151154
833
py
Python
src/python/gen_keyphrase/drop_paper_keywords.py
gaybro8777/CiteSeerX
49ecb503fb1ced8e2c2e94c3e100e5d4dc410ea6
[ "Apache-2.0" ]
108
2015-01-05T09:22:50.000Z
2022-03-15T23:59:53.000Z
src/python/gen_keyphrase/drop_paper_keywords.py
gaybro8777/CiteSeerX
49ecb503fb1ced8e2c2e94c3e100e5d4dc410ea6
[ "Apache-2.0" ]
26
2015-01-04T10:35:53.000Z
2021-11-01T04:41:19.000Z
src/python/gen_keyphrase/drop_paper_keywords.py
gaybro8777/CiteSeerX
49ecb503fb1ced8e2c2e94c3e100e5d4dc410ea6
[ "Apache-2.0" ]
48
2015-01-16T02:03:48.000Z
2022-03-15T23:59:55.000Z
#!/usr/bin/env python import gflags import sys from mysql_util import init_db, close_db FLAGS = gflags.FLAGS gflags.DEFINE_string('drop_keyword', '', '') def usage(cmd): print 'Usage:', cmd, \ '--drop_keyword="the term to be dropped"' def check_args(argv): try: argv = FLAGS(argv) except gflags.Flag...
20.317073
105
0.67587
8da63acbdad5e341cbdfa6d83e176c4f62410379
26,542
py
Python
soft-filter/pruning_cifar10_resnet.py
lehduong/NPTM
e1b8ec333db35e0e32e360151956b0f48f102735
[ "MIT" ]
15
2021-09-20T09:39:52.000Z
2022-03-31T05:39:39.000Z
soft-filter/pruning_cifar10_resnet.py
lehduong/NPTM
e1b8ec333db35e0e32e360151956b0f48f102735
[ "MIT" ]
null
null
null
soft-filter/pruning_cifar10_resnet.py
lehduong/NPTM
e1b8ec333db35e0e32e360151956b0f48f102735
[ "MIT" ]
null
null
null
from __future__ import division import os import sys import shutil import time import random import argparse import torch import torch.backends.cudnn as cudnn import torchvision.datasets as dset import torchvision.transforms as transforms from utils import AverageMeter, RecorderMeter, time_string, convert_secs2time im...
40.033183
170
0.602178
b4df69b25526776c01b0eda9fd7f618f5e1f9893
3,565
py
Python
time_sequence_models/stackabuse/time_series_prediction_lstm.py
franpena-kth/learning-deep-learning
9cd287b602dee1358672c4189445721a9c24f107
[ "MIT" ]
null
null
null
time_sequence_models/stackabuse/time_series_prediction_lstm.py
franpena-kth/learning-deep-learning
9cd287b602dee1358672c4189445721a9c24f107
[ "MIT" ]
null
null
null
time_sequence_models/stackabuse/time_series_prediction_lstm.py
franpena-kth/learning-deep-learning
9cd287b602dee1358672c4189445721a9c24f107
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import seaborn as sns import numpy as np import pandas as pd import matplotlib.pyplot as plt flight_data = sns.load_dataset("flights") flight_data.head() fig_size = plt.rcParams["figure.figsize"] fig_size[0] = 15 fig_size[1] = 5 plt.rcParams["figure.figsize"] = fig_size plt.title(...
27.21374
103
0.702384
6799e5f52c48c801bcc1b710dcf055c275a993b6
1,989
py
Python
308-Range-Sum-Query-2D---Mutable/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
308-Range-Sum-Query-2D---Mutable/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
308-Range-Sum-Query-2D---Mutable/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
class NumMatrix(object): def __init__(self, matrix): """ initialize your data structure here. :type matrix: List[List[int]] """ self.row=len(matrix) if self.row==0: return self.col=len(matrix[0]) self.bintree2d=[[0 for _ in xrange(self.col+1)] for _ in...
29.686567
84
0.501257
fc1cae9b62361384f80235ed39539aadfa8000db
16,857
py
Python
tests/validators.py
BabisK/microk8s
c43ce5c961a3b577aca6f8cf76fada964c2334c9
[ "Apache-2.0" ]
6,286
2018-07-20T15:55:22.000Z
2022-02-22T06:59:26.000Z
tests/validators.py
BabisK/microk8s
c43ce5c961a3b577aca6f8cf76fada964c2334c9
[ "Apache-2.0" ]
2,230
2018-07-20T14:14:33.000Z
2022-02-22T08:22:21.000Z
tests/validators.py
BabisK/microk8s
c43ce5c961a3b577aca6f8cf76fada964c2334c9
[ "Apache-2.0" ]
706
2018-07-22T16:35:32.000Z
2022-02-17T06:32:10.000Z
import time import os import re import requests import platform import yaml import subprocess from utils import ( kubectl, wait_for_pod_state, kubectl_get, wait_for_installation, docker, update_yaml_with_arch, run_until_success, ) def validate_dns_dashboard(): """ Validate the das...
30.209677
100
0.63137
9e94e78acfe56507014f2d730e88c83acef8b6eb
362
py
Python
analysis/templatetags/karyomapping_tags.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
analysis/templatetags/karyomapping_tags.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
analysis/templatetags/karyomapping_tags.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
from django.template import Library register = Library() @register.inclusion_tag("analysis/tags/genome_karyomapping_counts_summary.html") def genome_karyomapping_counts_summary(genome_karyomapping_counts): return {'genome_karyomapping_counts': genome_karyomapping_counts, 'collapsed_counts': genome_ka...
36.2
82
0.828729
d0ebe9965ff7454ce51ae4d792033c911b34debe
4,151
py
Python
Simple Media Player using python/Tools/DisplayPanel.py
nexsct/simple-media-player
7e6d1df3024d6b9d594468ee31fee1515b52d2ce
[ "Apache-2.0" ]
54
2017-01-14T07:18:23.000Z
2022-03-03T05:58:10.000Z
Simple Media Player using python/Tools/DisplayPanel.py
nexsct/simple-media-player
7e6d1df3024d6b9d594468ee31fee1515b52d2ce
[ "Apache-2.0" ]
1
2018-05-14T01:26:32.000Z
2018-05-14T01:26:32.000Z
Simple Media Player using python/Tools/DisplayPanel.py
nexsct/simple-media-player
7e6d1df3024d6b9d594468ee31fee1515b52d2ce
[ "Apache-2.0" ]
56
2017-04-18T18:25:58.000Z
2022-03-20T18:54:53.000Z
#!/usr/bin/python # ---------------- READ ME --------------------------------------------- # This Script is Created Only For Practise And Educational Purpose Only # This is an Example Of Tkinter Canvas Graphics # This Script Is Created For http://bitforestinfo.blogspot.in # This Script is Written By # # ##############...
34.591667
148
0.569742
93be7d1470bbc481053e354ab71e0b8175fcd4d0
1,922
py
Python
bot.py
Tharun1828/Sk-Droplink-bot
a046330d9a4daec106da822e686b9ec33dddb680
[ "MIT" ]
1
2021-12-05T15:55:27.000Z
2021-12-05T15:55:27.000Z
bot.py
Tharun1828/Sk-Droplink-bot
a046330d9a4daec106da822e686b9ec33dddb680
[ "MIT" ]
null
null
null
bot.py
Tharun1828/Sk-Droplink-bot
a046330d9a4daec106da822e686b9ec33dddb680
[ "MIT" ]
5
2021-12-06T03:19:00.000Z
2022-03-16T06:44:56.000Z
from os import environ import aiohttp from pyrogram import Client, filters API_ID = environ.get('API_ID') API_HASH = environ.get('API_HASH') BOT_TOKEN = environ.get('BOT_TOKEN') API_KEY = environ.get('API_KEY', 'deca8552d6bfa7f9e86bc34290214c116036d5de') bot = Client('pdiskshortner bot', api_id=API_ID, ...
36.264151
220
0.675338
53a1ea4c94c697d6ce341a3366b48ba9b14e0361
9,356
py
Python
nova/virt/fake.py
russellb/nova
99c2e02b44a1012c8e26fc7658dc40ec4620a1ee
[ "Apache-2.0" ]
null
null
null
nova/virt/fake.py
russellb/nova
99c2e02b44a1012c8e26fc7658dc40ec4620a1ee
[ "Apache-2.0" ]
null
null
null
nova/virt/fake.py
russellb/nova
99c2e02b44a1012c8e26fc7658dc40ec4620a1ee
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you m...
30.67541
78
0.644506
776f796b655397efe6c9a768e1ad81d2fe19a84d
3,207
py
Python
server/utils/Signature_no_timestamp.py
y4096/flask-apiSign-demo
2138fb93e88f0f2b51f9bbe89f20f7c00acabc78
[ "MIT" ]
null
null
null
server/utils/Signature_no_timestamp.py
y4096/flask-apiSign-demo
2138fb93e88f0f2b51f9bbe89f20f7c00acabc78
[ "MIT" ]
null
null
null
server/utils/Signature_no_timestamp.py
y4096/flask-apiSign-demo
2138fb93e88f0f2b51f9bbe89f20f7c00acabc78
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from hashlib import sha256 from functools import wraps from flask import request, jsonify class Signature(object): """ 接口签名认证 """ def __init__(self): self._accessKeys = [ {"accesskey_id": "demo_id", "accesskey_secret": "demo_secret"} ] def _check_req_...
36.443182
108
0.590271
8e01e7c54856ee9c9939f76fa66d7528f355821f
799
py
Python
tests/test_timestamper.py
kierdavis/structlog-overtime
bfc7698ae0ef5b6321a21479af72f52e14b047b5
[ "Unlicense" ]
1
2021-02-19T16:04:51.000Z
2021-02-19T16:04:51.000Z
tests/test_timestamper.py
kierdavis/structlog-overtime
bfc7698ae0ef5b6321a21479af72f52e14b047b5
[ "Unlicense" ]
null
null
null
tests/test_timestamper.py
kierdavis/structlog-overtime
bfc7698ae0ef5b6321a21479af72f52e14b047b5
[ "Unlicense" ]
null
null
null
import datetime import structlog from testfixtures import compare # type: ignore import structlog_overtime def mock_now() -> datetime.datetime: return datetime.datetime( 2020, 11, 9, 12, 34, 56, tzinfo=datetime.timezone(datetime.timedelta(hours=3)) ) def test_timestamper() -> None: dest = str...
25.774194
88
0.642053
38ca791f0416c794ab93cce76ea133a4e862a988
305
py
Python
setup.py
mdn/webalyzer
0b897d5df4a2c8d6881b5acefba707369b2f2b8c
[ "BSD-3-Clause" ]
10
2015-04-28T17:27:19.000Z
2019-08-16T08:30:30.000Z
setup.py
mdn/webalyzer
0b897d5df4a2c8d6881b5acefba707369b2f2b8c
[ "BSD-3-Clause" ]
27
2015-04-03T15:59:34.000Z
2017-07-25T16:43:58.000Z
setup.py
mdn/webalyzer
0b897d5df4a2c8d6881b5acefba707369b2f2b8c
[ "BSD-3-Clause" ]
8
2015-04-06T17:37:15.000Z
2022-02-19T01:33:42.000Z
#!/usr/bin/env python from distutils.core import setup setup( name='webalyzer', version='0.1', license='BSD', description='This is https://github.com/mozilla/webalyzer', author='Peter Bengtsson', author_email='mail@peterbe.com', url='https://github.com/mozilla/webalyzer', )
21.785714
63
0.67541
3a91b794e2cb62b1faca31c62032139ffa0d4c55
443
py
Python
backend/items/models.py
ferizoozoo/todo-app
fee2eb4a4d9fde36e9060a4bac7f971a58ef9a21
[ "MIT" ]
null
null
null
backend/items/models.py
ferizoozoo/todo-app
fee2eb4a4d9fde36e9060a4bac7f971a58ef9a21
[ "MIT" ]
3
2022-02-13T07:59:24.000Z
2022-02-27T00:58:57.000Z
backend/items/models.py
ferizoozoo/todo-app
fee2eb4a4d9fde36e9060a4bac7f971a58ef9a21
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # Create your models here. class TodoItem(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) task = models.CharField(max_length=500) created_at = models.DateTimeField(auto_now_add=True) deadline_at = models.Da...
36.916667
60
0.756208
5d602c153100ec251f7af9d802c6355b1550daf5
3,404
py
Python
tests/handlers/test_directory.py
mweinelt/synapse
42a9ea37e4c6ff9d91b530c40d366446b9fc2234
[ "Apache-2.0" ]
1
2017-02-03T18:58:29.000Z
2017-02-03T18:58:29.000Z
tests/handlers/test_directory.py
mweinelt/synapse
42a9ea37e4c6ff9d91b530c40d366446b9fc2234
[ "Apache-2.0" ]
null
null
null
tests/handlers/test_directory.py
mweinelt/synapse
42a9ea37e4c6ff9d91b530c40d366446b9fc2234
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
30.666667
76
0.64718
41453c88d540dc3a6250ded095a81c3f8d8393b8
1,553
py
Python
tests/test_auth.py
ISBITX/isbit-client-python
6943b69cb15d12a8c524461467e3806ab5b1ba19
[ "MIT" ]
1
2018-04-22T01:30:21.000Z
2018-04-22T01:30:21.000Z
tests/test_auth.py
ISBITX/isbit-client-python
6943b69cb15d12a8c524461467e3806ab5b1ba19
[ "MIT" ]
1
2018-04-26T05:30:41.000Z
2018-04-26T05:30:41.000Z
tests/test_auth.py
ISBITX/isbit-client-python
6943b69cb15d12a8c524461467e3806ab5b1ba19
[ "MIT" ]
1
2018-04-26T01:54:42.000Z
2018-04-26T01:54:42.000Z
# coding:utf-8 import unittest2 from isbit_client import auth class AuthTestCase(unittest2.TestCase): def setUp(self): self.auth = auth.Auth( access_key = "accesskey", secret_key = "secretkey") def test_signed_challenge(self): access_key = "abc" challenge = "def" secret_key = "ghi" ...
28.759259
94
0.645203
eb55aa86d76cf44206ec70f2c6a65f0d9ffc1b6a
7,657
py
Python
model.py
devsisters/TCML-tensorflow
7c8057431d06a28276a7f4a04782a1f857006fbe
[ "MIT" ]
115
2017-10-16T05:47:12.000Z
2021-11-09T22:52:21.000Z
model.py
devsisters/TCML-tensorflow
7c8057431d06a28276a7f4a04782a1f857006fbe
[ "MIT" ]
1
2017-11-30T07:05:44.000Z
2017-12-01T05:14:37.000Z
model.py
devsisters/TCML-tensorflow
7c8057431d06a28276a7f4a04782a1f857006fbe
[ "MIT" ]
22
2017-10-16T06:41:21.000Z
2021-11-09T22:52:24.000Z
import tensorflow as tf import numpy as np class TCML: def __init__(self, hparams, input_tensor, label_tensor, is_train): assert hparams.dilation is not None self.num_classes = hparams.n self.batch_size = hparams.batch_size self.seq_len = hparams.seq_len self.input_dim = hp...
44.005747
118
0.599451
c91772b7dc1c4c07630efb84eae664dfe4a91cbf
570
py
Python
proxylist/proxies/proxydb.py
phenobarbital/proxylist
b412c71d47f848dd297fed5d2c2609d05d433692
[ "Apache-2.0" ]
null
null
null
proxylist/proxies/proxydb.py
phenobarbital/proxylist
b412c71d47f848dd297fed5d2c2609d05d433692
[ "Apache-2.0" ]
null
null
null
proxylist/proxies/proxydb.py
phenobarbital/proxylist
b412c71d47f848dd297fed5d2c2609d05d433692
[ "Apache-2.0" ]
2
2021-05-17T23:01:43.000Z
2021-10-20T22:32:16.000Z
from .server import ProxyServer import logging class ProxyDB(ProxyServer): url = "http://proxydb.net/?protocol=https&country=" async def get_proxies(self): proxies = [] try: table = self.parser.xpath("//table")[0] except Exception as err: logging.exception(err) ...
30
61
0.540351
b4ec7b8544e3fd6e0c9eb6ed65075e7e7d932e29
30
py
Python
Aulas de Python Mundo 3/Curso Python - #17 - Tuplas - Part 1.py
ErikDMCosta/CEV-Praticas_Python-Mundo_3
9669fe1647ec5effd0b1c4a576aa670107657a77
[ "MIT" ]
null
null
null
Aulas de Python Mundo 3/Curso Python - #17 - Tuplas - Part 1.py
ErikDMCosta/CEV-Praticas_Python-Mundo_3
9669fe1647ec5effd0b1c4a576aa670107657a77
[ "MIT" ]
null
null
null
Aulas de Python Mundo 3/Curso Python - #17 - Tuplas - Part 1.py
ErikDMCosta/CEV-Praticas_Python-Mundo_3
9669fe1647ec5effd0b1c4a576aa670107657a77
[ "MIT" ]
null
null
null
num = (2, 5, 9, 7) print(num)
10
18
0.5
c37f18257fde2b655491c6ed53c440c3e4f025da
18,276
py
Python
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/mglutil/TestUtil/tester.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
null
null
null
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/mglutil/TestUtil/tester.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
21
2021-10-02T00:07:05.000Z
2022-03-30T00:02:10.000Z
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/mglutil/TestUtil/tester.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
null
null
null
# # # $Id: tester.py,v 1.9 2004/08/27 17:48:00 sophiec Exp $ # ######################################################################### # # Date: July 2003 Author: Sophie Coon, William Lindstrom # # sophiec@scripps.edu # lindy@scripps.edu # # Copyright: Michel Sanner, Sophie Coon, William Lindstrom and ...
40.255507
124
0.518494
cacb5b3deb573c655a68adf26060c970b7cea280
5,266
py
Python
utils.py
Henjoyy/-
4fe5bb1c505f792226b2f99c0ab0615d74827aca
[ "MIT" ]
46
2021-12-01T02:05:06.000Z
2022-03-17T07:24:40.000Z
utils.py
Henjoyy/-
4fe5bb1c505f792226b2f99c0ab0615d74827aca
[ "MIT" ]
14
2021-12-07T08:27:13.000Z
2022-03-31T08:43:13.000Z
utils.py
Henjoyy/-
4fe5bb1c505f792226b2f99c0ab0615d74827aca
[ "MIT" ]
20
2021-12-07T08:14:33.000Z
2022-03-28T10:52:06.000Z
import os import torch from torch.utils.data import DataLoader from torchvision import datasets, transforms from torchvision.transforms.functional import rotate import config as c from multi_transform_loader import ImageFolderMultiTransform def get_random_transforms(): augmentative_transforms = [] if c.transf...
42.467742
118
0.663502
ae02ff6ce2bcdf03a70dbe26ea3101f36f09f9a3
256
py
Python
mlrose_hiive/algorithms/decay/__init__.py
sridatta/mlrose
d9fe33df157bd801a33b13a803d737c4f8e48ebb
[ "BSD-3-Clause" ]
63
2019-09-24T14:09:51.000Z
2022-03-09T02:36:25.000Z
mlrose_hiive/algorithms/decay/__init__.py
kunla/mlrose
306c96b156182a847f5c9e6ffb62eb805d266fef
[ "BSD-3-Clause" ]
6
2019-10-04T01:04:21.000Z
2021-08-31T19:06:13.000Z
mlrose_hiive/algorithms/decay/__init__.py
kunla/mlrose
306c96b156182a847f5c9e6ffb62eb805d266fef
[ "BSD-3-Clause" ]
104
2019-09-23T22:44:43.000Z
2022-03-13T18:50:53.000Z
""" Classes for defining optimization problem objects.""" # Author: Genevieve Hayes # License: BSD 3 clause from .arith_decay import ArithDecay from .geom_decay import GeomDecay from .exp_decay import ExpDecay from .custom_schedule import CustomSchedule
25.6
57
0.808594
b5d518a9f50305ad6de3444bfc54bc53d25fbb6a
8,660
py
Python
ghoma2mqtt.py
poldy79/ghoma2mqtt
fa0ed8efb1010b595800f630d56662b67e0787c9
[ "MIT" ]
null
null
null
ghoma2mqtt.py
poldy79/ghoma2mqtt
fa0ed8efb1010b595800f630d56662b67e0787c9
[ "MIT" ]
1
2019-09-25T10:00:44.000Z
2019-10-03T15:08:21.000Z
ghoma2mqtt.py
poldy79/ghoma2mqtt
fa0ed8efb1010b595800f630d56662b67e0787c9
[ "MIT" ]
null
null
null
#!/usr/bin/python import SocketServer import time import socket import mosquitto def printHex(my_hex): if type(my_hex)==str: print " ".join(hex(ord(n)) for n in my_hex) if type(my_hex)==list: result = [] for i in my_hex: result.append("0x%1x"%(i)) print ",".join(resu...
42.038835
263
0.55127
d5e5c98bb4da6aaaa7a2890e7f62db39fd383898
17,631
py
Python
clients/common/rocsparse_gentest.py
cgmb/rocSPARSE
9a56ca84a4d0091875e25c5c1e1c0b15f3147c83
[ "MIT" ]
null
null
null
clients/common/rocsparse_gentest.py
cgmb/rocSPARSE
9a56ca84a4d0091875e25c5c1e1c0b15f3147c83
[ "MIT" ]
null
null
null
clients/common/rocsparse_gentest.py
cgmb/rocSPARSE
9a56ca84a4d0091875e25c5c1e1c0b15f3147c83
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # ######################################################################## # Copyright (c) 2019-2020 Advanced Micro Devices, Inc. # # 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 ...
38.162338
107
0.528217
756a93b65a33e9d880e0c8c63a6bc5e5b79f873d
936
py
Python
bookmeister/__main__.py
ethru/bookmejster
b0708c8cd50450a978270c24eee2d4f980cefea6
[ "MIT" ]
1
2021-09-22T22:58:33.000Z
2021-09-22T22:58:33.000Z
bookmeister/__main__.py
ethru/bookmejster
b0708c8cd50450a978270c24eee2d4f980cefea6
[ "MIT" ]
4
2021-06-08T21:05:07.000Z
2022-03-12T00:19:25.000Z
bookmeister/__main__.py
ethru/bookmejster
b0708c8cd50450a978270c24eee2d4f980cefea6
[ "MIT" ]
null
null
null
"""#### Main Contain `main` function which create application GUI and set its size. Module `sys` is needed to specify which platform is used and adjust application width. #### License THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ME...
31.2
79
0.74359
d5624551b2797fe719d7af5273f22221cbc485ba
12,207
py
Python
homeassistant/components/zwave_js/__init__.py
AdmiralStipe/core
e9334347eb8354795cdb17f1401a80ef3abfb269
[ "Apache-2.0" ]
4
2016-06-22T12:00:41.000Z
2018-06-11T20:31:25.000Z
homeassistant/components/zwave_js/__init__.py
AdmiralStipe/core
e9334347eb8354795cdb17f1401a80ef3abfb269
[ "Apache-2.0" ]
54
2016-06-15T04:52:32.000Z
2022-03-22T06:02:16.000Z
homeassistant/components/zwave_js/__init__.py
AdmiralStipe/core
e9334347eb8354795cdb17f1401a80ef3abfb269
[ "Apache-2.0" ]
6
2019-07-06T00:43:13.000Z
2021-01-16T13:27:06.000Z
"""The Z-Wave JS integration.""" import asyncio import logging from typing import Callable, List from async_timeout import timeout from zwave_js_server.client import Client as ZwaveClient from zwave_js_server.exceptions import BaseZwaveJSServerError from zwave_js_server.model.node import Node as ZwaveNode from zwave_j...
35.485465
101
0.673958
4db2e3fd03d40bd3f29ef705d3d60d13fede18ec
1,771
py
Python
game/hangman.py
MayankShrivastava17/mini-project
c6fa2c95caba792ec4641eaeafaa5ab18f9e7abd
[ "MIT" ]
1
2021-05-25T13:30:05.000Z
2021-05-25T13:30:05.000Z
game/hangman.py
MayankShrivastava17/mini-project
c6fa2c95caba792ec4641eaeafaa5ab18f9e7abd
[ "MIT" ]
null
null
null
game/hangman.py
MayankShrivastava17/mini-project
c6fa2c95caba792ec4641eaeafaa5ab18f9e7abd
[ "MIT" ]
null
null
null
#importing the time module import time #welcoming the user name = input("What is your name? ") print ("Hello, " + name, "Time to play hangman!") #wait for 1 second time.sleep(1) print ("Start guessing...") time.sleep(0.5) #here we set the secret word = "secret" #creates an variable with an empt...
21.083333
58
0.524562
922bfa84515e9079548c4f7fd0e8d704405f4a64
3,196
py
Python
homeassistant/components/surepetcare/sensor.py
kauzu/core
6eadc0c3033473381cb70babf9f7c813e183d2df
[ "Apache-2.0" ]
2
2021-01-29T02:52:01.000Z
2021-05-15T04:23:18.000Z
homeassistant/components/surepetcare/sensor.py
kauzu/core
6eadc0c3033473381cb70babf9f7c813e183d2df
[ "Apache-2.0" ]
68
2020-07-23T07:13:53.000Z
2022-03-31T06:01:48.000Z
homeassistant/components/surepetcare/sensor.py
kauzu/core
6eadc0c3033473381cb70babf9f7c813e183d2df
[ "Apache-2.0" ]
7
2021-03-20T12:34:01.000Z
2021-12-02T10:13:52.000Z
"""Support for Sure PetCare Flaps/Pets sensors.""" from __future__ import annotations import logging from surepy.entities import SurepyEntity from surepy.enums import EntityType from homeassistant.components.sensor import SensorEntity from homeassistant.const import ATTR_VOLTAGE, DEVICE_CLASS_BATTERY, PERCENTAGE fro...
31.643564
115
0.664894
3a99eada8bc892c61a3e79525966450957cdd4bb
18,321
py
Python
src/ralph/data_center/models/physical.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
src/ralph/data_center/models/physical.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
src/ralph/data_center/models/physical.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re from collections import namedtuple from itertools import chain from django import forms from django.core.exceptions import ValidationError from django.core.validators import RegexValidator from django.db import models, transaction from django.db.models import Q from django.utils.trans...
32.657754
79
0.603843
4edb8120c31792ef0be7b5a7140410caa61e44e0
12,653
py
Python
irlco/routing/train_kool.py
joerosenberg/copt-irl
8e79dd8ace16b8aaff32bb13662be6f3185b568a
[ "MIT" ]
2
2021-06-05T15:26:19.000Z
2022-02-23T21:10:24.000Z
irlco/routing/train_kool.py
joerosenberg/copt-irl
8e79dd8ace16b8aaff32bb13662be6f3185b568a
[ "MIT" ]
null
null
null
irlco/routing/train_kool.py
joerosenberg/copt-irl
8e79dd8ace16b8aaff32bb13662be6f3185b568a
[ "MIT" ]
1
2021-07-19T08:41:10.000Z
2021-07-19T08:41:10.000Z
import torch import wandb import irlco.pointer_transformer as pt from irlco.routing.baselines import greedy_rollout_baselines from irlco.routing.data import CircuitSolutionDataset from irlco.routing.env import BatchCircuitRoutingEnv, measures_to_terminal_rewards from irlco.routing.policy import sample_best_of_n_traject...
48.853282
120
0.688295
5248e45a249101740e088181b73afc7711b3bdb5
5,135
py
Python
utils.py
singhb2020/sit-straight
73b28366269305b4b4ff91d216fbeb41d2190b8d
[ "MIT" ]
null
null
null
utils.py
singhb2020/sit-straight
73b28366269305b4b4ff91d216fbeb41d2190b8d
[ "MIT" ]
null
null
null
utils.py
singhb2020/sit-straight
73b28366269305b4b4ff91d216fbeb41d2190b8d
[ "MIT" ]
null
null
null
# Utility Functions # ------------------ Importing Libraries ------------------ # import json import numpy as np import math import tensorflow as tf import os import random import playsound # ------------------ Utility Functions ------------------ # def open_thresholds(): """ open_thresholds: Retur...
27.169312
144
0.66037
03cb69795335fd20c693abd8cf755776841c5b35
16,950
py
Python
code/client/munkilib/updatecheck/compare.py
dderusha/munki
ad3dd1673fc6544770e561b52000371113cd5294
[ "Apache-2.0" ]
1
2019-01-13T22:36:59.000Z
2019-01-13T22:36:59.000Z
code/client/munkilib/updatecheck/compare.py
MarcelRaschke/munki
5ab55e81934cf081d369ab11df70d2ee215df33e
[ "Apache-2.0" ]
null
null
null
code/client/munkilib/updatecheck/compare.py
MarcelRaschke/munki
5ab55e81934cf081d369ab11df70d2ee215df33e
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # # Copyright 2009-2018 Greg Neagle. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
38.965517
78
0.620059
1cdf9f361b05d1e7332400c288524328d77efbe5
3,477
py
Python
google_play_scraper/features/reviews.py
haideralipunjabi/google-play-scraper
fe98e0d029e35f1e09d720c78a999ee5aca4b7b0
[ "MIT" ]
null
null
null
google_play_scraper/features/reviews.py
haideralipunjabi/google-play-scraper
fe98e0d029e35f1e09d720c78a999ee5aca4b7b0
[ "MIT" ]
null
null
null
google_play_scraper/features/reviews.py
haideralipunjabi/google-play-scraper
fe98e0d029e35f1e09d720c78a999ee5aca4b7b0
[ "MIT" ]
null
null
null
import json from typing import Optional, Tuple from google_play_scraper import Sort from google_play_scraper.constants.element import ElementSpecs from google_play_scraper.constants.regex import Regex from google_play_scraper.constants.url import Formats from google_play_scraper.utils.request import post LANG_DEFAUL...
26.340909
116
0.634167
ad46e09f89af5d91d30ec300a8df817ada36f93f
4,643
py
Python
ippon/group/group_permissions_test.py
morynicz/ippon_back
dce901bfc649c6f8efbbf0907654e0860606b3e3
[ "MIT" ]
null
null
null
ippon/group/group_permissions_test.py
morynicz/ippon_back
dce901bfc649c6f8efbbf0907654e0860606b3e3
[ "MIT" ]
13
2018-12-22T15:30:56.000Z
2022-03-12T00:22:31.000Z
ippon/group/group_permissions_test.py
morynicz/ippon_back
dce901bfc649c6f8efbbf0907654e0860606b3e3
[ "MIT" ]
2
2019-06-01T11:28:23.000Z
2020-03-27T15:19:11.000Z
import datetime import unittest import django.test from django.contrib.auth.models import User import ippon.group.permissions as gp import ippon.group.serializers as gs import ippon.models.tournament as tm class TestGroupPermissions(django.test.TestCase): def setUp(self): self.admin = User.objects.creat...
41.455357
115
0.69524
619e8a015532b50f73b1a204cfb3698c03c7fda0
7,438
py
Python
python_modules/libraries/dagster-dbt/dagster_dbt/dbt_resource.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-dbt/dagster_dbt/dbt_resource.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-dbt/dagster_dbt/dbt_resource.py
asamoal/dagster
08fad28e4b608608ce090ce2e8a52c2cf9dd1b64
[ "Apache-2.0" ]
null
null
null
import logging from abc import abstractmethod from typing import Any, Dict, List, Optional from dagster import get_dagster_logger from .types import DbtOutput class DbtResource: """Base class for a resource allowing users to interface with dbt""" def __init__( self, logger: Optional[logging...
33.656109
106
0.594111
f6018de08cfe2aa928b825b005738309a4df4e16
5,884
py
Python
collatz/collatz.py
ale93111/Fractals
3a4b8c1102e531ce33b21b16ecfe26ed52712886
[ "MIT" ]
null
null
null
collatz/collatz.py
ale93111/Fractals
3a4b8c1102e531ce33b21b16ecfe26ed52712886
[ "MIT" ]
null
null
null
collatz/collatz.py
ale93111/Fractals
3a4b8c1102e531ce33b21b16ecfe26ed52712886
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ import numpy as np import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt def collatz_even(n): return n*2 def collatz_odd(n): temp = int((n*2-1)/3) if( temp % 2 and not (n*2-1)% 3...
28.288462
133
0.566111
8422fd91fbedccedb29bdd544e9b9b67abf6d46a
4,124
py
Python
bin/rename-file-backup.py
richardzilincikPantheon/sdo_analysis
18c2c89d0dd41e30c3f4b34ee92febb4373f0bb4
[ "Apache-2.0" ]
null
null
null
bin/rename-file-backup.py
richardzilincikPantheon/sdo_analysis
18c2c89d0dd41e30c3f4b34ee92febb4373f0bb4
[ "Apache-2.0" ]
null
null
null
bin/rename-file-backup.py
richardzilincikPantheon/sdo_analysis
18c2c89d0dd41e30c3f4b34ee92febb4373f0bb4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright The IETF Trust 2019, All Rights Reserved # Copyright (c) 2018 Cisco and/or its affiliates. # This software is licensed to you under the terms of the Apache License, Version 2.0 (the "License"). # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 # The ...
49.686747
144
0.646945
8986b7038979974eec223c4eea91646cb89bf024
10,771
py
Python
pyasn1/type/char.py
keyrrjperino/google-spreadsheet-get
e00769d7fb715ff6e86c5404b97407d36ca3c786
[ "MIT" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
pyasn1/type/char.py
keyrrjperino/google-spreadsheet-get
e00769d7fb715ff6e86c5404b97407d36ca3c786
[ "MIT" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
pyasn1/type/char.py
keyrrjperino/google-spreadsheet-get
e00769d7fb715ff6e86c5404b97407d36ca3c786
[ "MIT" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# # This file is part of pyasn1 software. # # Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pyasn1/license.html # import sys from pyasn1 import error from pyasn1.type import tag from pyasn1.type import univ __all__ = ['NumericString', 'PrintableString', 'TeletexString', 'T61...
33.450311
99
0.655464
1d3c68d048ff20e52276fa0470499092f91791bc
4,590
py
Python
shapeworld/datasets/nlvr_agreement/nlvr.py
shgoren/ShapeWorld
a6633bddbf195d0dc4cbdbe07564a98149337bcf
[ "MIT" ]
1
2021-04-08T16:14:25.000Z
2021-04-08T16:14:25.000Z
shapeworld/datasets/nlvr_agreement/nlvr.py
shgoren/ShapeWorld
a6633bddbf195d0dc4cbdbe07564a98149337bcf
[ "MIT" ]
null
null
null
shapeworld/datasets/nlvr_agreement/nlvr.py
shgoren/ShapeWorld
a6633bddbf195d0dc4cbdbe07564a98149337bcf
[ "MIT" ]
1
2021-02-23T17:10:46.000Z
2021-02-23T17:10:46.000Z
from shapeworld import util from shapeworld.dataset import Dataset from shapeworld.datasets import nlvr_util class NLVR(Dataset): def __init__(self, directory): world_size = tuple(next(nlvr_util.images_iter(directory=directory, mode='train'))[1][0].shape[:2]) self.description_size = 0 voc...
55.301205
732
0.632026
3dc115a890720210897bc1d4ef7106ddb77a2be6
715
py
Python
py/268. Missing Number.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
3
2021-08-07T07:01:34.000Z
2021-08-07T07:03:02.000Z
py/268. Missing Number.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
py/268. Missing Number.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/missing-number/ # Given an array nums containing n distinct numbers in the range [0, n], return # the only number in the range that is missing from the array. # Follow up: Could you implement a solution using only O(1) extra space complexity # and O(n) runtime complexity? ############...
27.5
82
0.521678
b0244d7d7108bc762ddc7c8d277d87f1296374e2
1,367
py
Python
src/main/java/org/incoder/thrift/py/service.py
RootCluster/rc_netty
7de0fe9f5df452fbcbfcd658fc8046ad3ff2b429
[ "Apache-2.0" ]
null
null
null
src/main/java/org/incoder/thrift/py/service.py
RootCluster/rc_netty
7de0fe9f5df452fbcbfcd658fc8046ad3ff2b429
[ "Apache-2.0" ]
null
null
null
src/main/java/org/incoder/thrift/py/service.py
RootCluster/rc_netty
7de0fe9f5df452fbcbfcd658fc8046ad3ff2b429
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 The Jerry xu Open Source 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 applicab...
34.175
94
0.773226
dac1fe357fb76a2953a3188c8e852dbb9bec95b2
181
py
Python
archive/2016/week10/tasks/sum.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
6
2017-11-08T14:04:39.000Z
2019-03-24T22:11:04.000Z
archive/2016/week10/tasks/sum.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
null
null
null
archive/2016/week10/tasks/sum.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
7
2015-10-27T09:04:58.000Z
2019-03-03T14:18:26.000Z
""" Дефинирайте фунцкия, която пресмята сумата на числата от 1 до N. Използвайте while цикъл. """ def sum_1_to_n(n): pass print(sum_1_to_n(3)) # 6 assert sum_1_to_n(3) == 6
15.083333
64
0.696133
dd1832145122e3a436cdbdbfa119ca1255e68ad5
920
py
Python
webapp/webapp/urls.py
harshul1610/deeplearningdemos.ai
7c1491f5ea02a31b7fbcbd1223438f825ef1cbcc
[ "MIT" ]
2
2019-01-11T06:46:24.000Z
2019-01-17T04:45:49.000Z
webapp/webapp/urls.py
harshul1610/deeplearningdemos.ai
7c1491f5ea02a31b7fbcbd1223438f825ef1cbcc
[ "MIT" ]
15
2019-04-02T03:47:22.000Z
2022-02-09T23:45:03.000Z
webapp/webapp/urls.py
harshul1610/deeplearningdemos.ai
7c1491f5ea02a31b7fbcbd1223438f825ef1cbcc
[ "MIT" ]
null
null
null
"""webapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
35.384615
79
0.684783
3d4e766c39931c2aee7d42205ca62ccadd8c644b
17,335
py
Python
airflow/gcp/hooks/cloud_storage_transfer_service.py
mgasner/airflow
3bc3521756b8b8be027df05c476e727d86b63b7b
[ "Apache-2.0" ]
1
2019-09-06T09:55:18.000Z
2019-09-06T09:55:18.000Z
airflow/gcp/hooks/cloud_storage_transfer_service.py
mgasner/airflow
3bc3521756b8b8be027df05c476e727d86b63b7b
[ "Apache-2.0" ]
null
null
null
airflow/gcp/hooks/cloud_storage_transfer_service.py
mgasner/airflow
3bc3521756b8b8be027df05c476e727d86b63b7b
[ "Apache-2.0" ]
null
null
null
# -*- 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 #...
37.849345
123
0.657629
1ff37139b14f59955ddb403732ffd18164cae9aa
64,171
py
Python
src/genie/libs/parser/nxos/tests/test_show_fdb.py
svautour/genieparser
7416c9a4b44582be835a0646fb7fad92a5181c7d
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/nxos/tests/test_show_fdb.py
svautour/genieparser
7416c9a4b44582be835a0646fb7fad92a5181c7d
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/nxos/tests/test_show_fdb.py
svautour/genieparser
7416c9a4b44582be835a0646fb7fad92a5181c7d
[ "Apache-2.0" ]
null
null
null
#!/bin/env python import unittest from unittest.mock import Mock from pyats.topology import Device from genie.metaparser.util.exceptions import SchemaEmptyParserError from genie.libs.parser.nxos.show_fdb import ShowMacAddressTableVni, \ ShowMacAddressTable, ShowMacAddressTableAgingTime, \ ShowMacAddressTableLi...
40.384519
92
0.279846
061aab78c993b6f562a4d7b03bbff6bd4bb6cb41
2,220
py
Python
vgg/vgg.py
TheRiddance/dcgan
c414696a38a48c3ff471e6ef56f04f9aef52e5c5
[ "BSD-3-Clause" ]
null
null
null
vgg/vgg.py
TheRiddance/dcgan
c414696a38a48c3ff471e6ef56f04f9aef52e5c5
[ "BSD-3-Clause" ]
null
null
null
vgg/vgg.py
TheRiddance/dcgan
c414696a38a48c3ff471e6ef56f04f9aef52e5c5
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2015-2017 Anish Athalye. Released under GPLv3. # https://github.com/anishathalye/neural-style/ import tensorflow as tf import numpy as np import scipy.io VGG19_LAYERS = ( 'conv1_1', 'relu1_1', 'conv1_2', 'relu1_2', 'pool1', 'conv2_1', 'relu2_1', 'conv2_2', 'relu2_2', 'pool2', 'conv3_1', ...
31.267606
80
0.603604
108ec807e3b0fd9d951472180469d564c0ae0992
348
py
Python
caldera/models/__init__.py
jvrana/caldera
a346324e77f20739e00a82f97530dda4906f59dd
[ "MIT" ]
2
2021-12-13T17:52:17.000Z
2021-12-13T17:52:18.000Z
caldera/models/__init__.py
jvrana/caldera
a346324e77f20739e00a82f97530dda4906f59dd
[ "MIT" ]
4
2020-10-06T21:06:15.000Z
2020-10-10T01:18:23.000Z
caldera/models/__init__.py
jvrana/caldera
a346324e77f20739e00a82f97530dda4906f59dd
[ "MIT" ]
null
null
null
r""" Caldera models .. autosummary:: :toctree: generated/ GraphEncoder GraphCore EncodeCoreDecode """ from caldera.models.encoder_core_decoder import EncodeCoreDecode from caldera.models.graph_core import GraphCore from caldera.models.graph_encoder import GraphEncoder __all__ = ["EncodeCoreDecode", "...
21.75
64
0.778736
25392393ab81b731301a38825bf2967e7e3be196
235
py
Python
src/aijack/attack/poison/__init__.py
Koukyosyumei/AIJack
9545d3828907b54965ede85e0e12cb32eef54294
[ "MIT" ]
24
2021-11-17T02:16:47.000Z
2022-03-27T01:04:08.000Z
src/aijack/attack/poison/__init__.py
Koukyosyumei/AIJack
9545d3828907b54965ede85e0e12cb32eef54294
[ "MIT" ]
9
2021-12-03T06:09:27.000Z
2022-03-29T06:33:53.000Z
src/aijack/attack/poison/__init__.py
Koukyosyumei/AIJack
9545d3828907b54965ede85e0e12cb32eef54294
[ "MIT" ]
5
2022-01-12T09:58:04.000Z
2022-03-17T09:29:04.000Z
"""Subpackage for poisoning attack, which inserts malicious data to the training dataset, so that the performance of the trained machine learning model will degregate. """ from .poison_attack import Poison_attack_sklearn # noqa: F401
47
89
0.808511
38d5cfd2a85869afbe7db7303c339df12c6c8fb1
684
py
Python
examples/src/Text/ReplacingText.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
examples/src/Text/ReplacingText.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
examples/src/Text/ReplacingText.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
import aspose.slides as slides #ExStart:ReplacingText # The path to the documents directory. dataDir = "./examples/data/" outDir = "./examples/out/" # Instantiate Presentation class that represents PPTX with slides.Presentation(dataDir + "text_default_fonts.pptx") as pres: # Access first slide sld = pres.sli...
31.090909
80
0.71345
9c11fe7c5ac6eae4987d777d0e3eab52defc683b
889
py
Python
the_good_dollar/main/migrations/0001_initial.py
fouadsan/the_good_dollar
f68d2c0a54302d1bec2d8ae86ef180fc5e7f076a
[ "MIT" ]
null
null
null
the_good_dollar/main/migrations/0001_initial.py
fouadsan/the_good_dollar
f68d2c0a54302d1bec2d8ae86ef180fc5e7f076a
[ "MIT" ]
null
null
null
the_good_dollar/main/migrations/0001_initial.py
fouadsan/the_good_dollar
f68d2c0a54302d1bec2d8ae86ef180fc5e7f076a
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-10-07 16:55 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='SmallPub', fields=[ ('id', models.BigAutoFi...
29.633333
117
0.565804
aa1986c75bb2b0121a117043e4f3fc8dfb6d2502
51,327
py
Python
Tests/test_seq.py
cbrueffer/biopython
1ffb1d92d4735166089e28ac07ee614d5ec80070
[ "PostgreSQL" ]
null
null
null
Tests/test_seq.py
cbrueffer/biopython
1ffb1d92d4735166089e28ac07ee614d5ec80070
[ "PostgreSQL" ]
null
null
null
Tests/test_seq.py
cbrueffer/biopython
1ffb1d92d4735166089e28ac07ee614d5ec80070
[ "PostgreSQL" ]
null
null
null
# This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. from __future__ import print_function import array import copy import sys import warnings # Remove unittest2 import after dropping support for Python2...
43.608326
117
0.63867
9f5c6fe68cb147919d090a7501e0ff0b439c7d77
1,669
py
Python
cogs/utils.py
ricky-davis/AstroServer
a0902a7b552cf5b909d06cc298c04225bdb67352
[ "MIT" ]
null
null
null
cogs/utils.py
ricky-davis/AstroServer
a0902a7b552cf5b909d06cc298c04225bdb67352
[ "MIT" ]
null
null
null
cogs/utils.py
ricky-davis/AstroServer
a0902a7b552cf5b909d06cc298c04225bdb67352
[ "MIT" ]
null
null
null
#import requests import json import urllib import urllib.error from urllib import request import ssl # pylint: disable=no-member ALVERSION = "v1.8.2.3" class AstroRequests(): @classmethod def get(cls, url, timeout=5): proxies = request.getproxies() proxy_handler = request.ProxyHandler(proxie...
30.345455
77
0.603355
9816396722966fc80af25e743fb50588699b2d65
4,198
py
Python
recipes/se_windnoise/test.py
wangwei2009/speechbrain
ebbac4561a9c9101786e0ab0b1105017eb655fc8
[ "Apache-2.0" ]
null
null
null
recipes/se_windnoise/test.py
wangwei2009/speechbrain
ebbac4561a9c9101786e0ab0b1105017eb655fc8
[ "Apache-2.0" ]
null
null
null
recipes/se_windnoise/test.py
wangwei2009/speechbrain
ebbac4561a9c9101786e0ab0b1105017eb655fc8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env/python3 """Recipe for training a speech enhancement system with spectral masking. To run this recipe, do the following: > python train.py train.yaml --data_folder /path/to/save/mini_librispeech To read the code, first scroll to the bottom to see the "main" code. This gives a high-level overview of what...
33.31746
88
0.718676
bb2ee642ecd4eba759208c336f08cf0f20c62b99
302
py
Python
packages/pyright-internal/src/tests/samples/paramSpec6.py
lipovsek/pytea
c536515a5e5947fac8871784323ba7eddc58956d
[ "MIT" ]
null
null
null
packages/pyright-internal/src/tests/samples/paramSpec6.py
lipovsek/pytea
c536515a5e5947fac8871784323ba7eddc58956d
[ "MIT" ]
null
null
null
packages/pyright-internal/src/tests/samples/paramSpec6.py
lipovsek/pytea
c536515a5e5947fac8871784323ba7eddc58956d
[ "MIT" ]
null
null
null
# This sample tests that ParamSpecs support parameters with default values. from typing import Callable, ParamSpec, TypeVar V = TypeVar("V") P = ParamSpec("P") def foo(fn: Callable[P, V]) -> Callable[P, V]: ... def bar(baz: str, qux: str = "") -> str: ... foo(bar)("")
16.777778
76
0.589404
96c3e0f9d2fec71d73a40bd85991d3ee41ed9183
5,309
py
Python
xls.py
tordable/XlsxReports
d3786f862a32038b97c632e8f6c5624229ed8f9b
[ "Apache-2.0" ]
null
null
null
xls.py
tordable/XlsxReports
d3786f862a32038b97c632e8f6c5624229ed8f9b
[ "Apache-2.0" ]
null
null
null
xls.py
tordable/XlsxReports
d3786f862a32038b97c632e8f6c5624229ed8f9b
[ "Apache-2.0" ]
1
2020-03-22T13:04:34.000Z
2020-03-22T13:04:34.000Z
"""Proxy interfaces and mocks for the XLS library. This module contains interfaces to the XLS library and mocks, which will allow switching the underlying implementation if necessary. """ __author__ = 'jt@javiertordable.com' __copyright__ = "Copyright (C) 2014 Javier Tordable" import xlsxwriter def new_workbook(f...
24.808411
78
0.680166
5ed1e27881fe2110ad8f8ad5a9067f50aedf8670
19,776
py
Python
flax/nn/attention.py
skye/flax
23a91dbc27dd182e26f196546468d33238ca5735
[ "Apache-2.0" ]
null
null
null
flax/nn/attention.py
skye/flax
23a91dbc27dd182e26f196546468d33238ca5735
[ "Apache-2.0" ]
null
null
null
flax/nn/attention.py
skye/flax
23a91dbc27dd182e26f196546468d33238ca5735
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Flax 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 agreed to in wri...
37.525617
80
0.662116
714903a5968c727361c7896d254c80865e586c8c
4,242
py
Python
dialogue-engine/src/programy/config/writer.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
104
2020-03-30T09:40:00.000Z
2022-03-06T22:34:25.000Z
dialogue-engine/src/programy/config/writer.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
25
2020-06-12T01:36:35.000Z
2022-02-19T07:30:44.000Z
dialogue-engine/src/programy/config/writer.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
10
2020-04-02T23:43:56.000Z
2021-05-14T13:47:01.000Z
""" Copyright (c) 2020 COTOBA DESIGN, Inc. 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 rights to use, copy, modify, merge, publish, distri...
39.64486
126
0.710985
955a75155d98c7dc24e38b214babdb42f66d4ceb
1,509
py
Python
snakemake/configs/hg38_template.py
saketkc/re-ribo-smk
c9326cbafdfa060e22e9af692d9146c37f5035ba
[ "BSD-2-Clause" ]
1
2019-09-11T17:09:48.000Z
2019-09-11T17:09:48.000Z
snakemake/configs/hg38_template.py
saketkc/re-ribo-smk
c9326cbafdfa060e22e9af692d9146c37f5035ba
[ "BSD-2-Clause" ]
null
null
null
snakemake/configs/hg38_template.py
saketkc/re-ribo-smk
c9326cbafdfa060e22e9af692d9146c37f5035ba
[ "BSD-2-Clause" ]
null
null
null
RAWDATA_DIR = '/staging/as/skchoudh/re-ribo-datasets/hg38/' OUT_DIR = '/staging/as/skchoudh/re-ribo-analysis/hg38/' GENOME_FASTA = '/home/cmb-06/as/skchoudh/genomes/hg38/fasta/Homo_sapiens.GRCh38.dna_sm.primary_assembly.fa' CHROM_SIZES = '/home/cmb-06/as/skchoudh/genomes/hg38/fasta/Homo_sapiens.GRCh38.dna_sm.primary_as...
79.421053
120
0.804506
ac6c0a3f63e05b517cefeb8ec8d0477c0ee1fb5c
1,231
py
Python
proxySTAR_V3/certbot/venv/lib/python2.7/site-packages/pylint/test/functional/useless_else_on_loop.py
mami-project/lurk
98c293251e9b1e9c9a4b02789486c5ddaf46ba3c
[ "Apache-2.0" ]
2
2017-07-05T09:57:33.000Z
2017-11-14T23:05:53.000Z
Libraries/Python/pylint/v1.4.4/pylint/test/functional/useless_else_on_loop.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2019-01-17T14:26:22.000Z
2019-01-17T22:56:26.000Z
Libraries/Python/pylint/v1.4.4/pylint/test/functional/useless_else_on_loop.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2017-08-31T14:33:03.000Z
2017-08-31T14:33:03.000Z
"""Check for else branches on loops with break an return only.""" __revision__ = 0 def test_return_for(): """else + return is not accetable.""" for i in range(10): if i % 2: return i else: # [useless-else-on-loop] print('math is broken') def test_return_while(): ...
21.982143
88
0.5329
71a4b596d622e2b3fc75847a5b62e8a0a1e48ddd
17,896
py
Python
src/crunch.py
kawarimidoll/Crunch
3f1e8eee97c2e3cba34d95c05213513b5328291c
[ "Apache-2.0" ]
3,047
2016-04-11T16:58:28.000Z
2022-03-29T19:51:25.000Z
src/crunch.py
Warlockk/Crunch
dee3cba5f1bfcf73263333c078373c298c3bba31
[ "Apache-2.0" ]
79
2016-04-11T17:05:22.000Z
2022-03-21T07:46:41.000Z
src/crunch.py
Warlockk/Crunch
dee3cba5f1bfcf73263333c078373c298c3bba31
[ "Apache-2.0" ]
143
2016-08-06T03:03:10.000Z
2022-03-18T00:27:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ================================================================== # crunch # A PNG file optimization tool built on pngquant and zopflipng # # Copyright 2019 Christopher Simpkins # MIT License # # Source Repository: https://github.com/chrissimpkins/Crunch # ===...
32.18705
128
0.563925
8e3d6255f6c94abca48649d730309b0307ac7ef7
1,345
py
Python
scripts/artifacts/aggDictpasscode.py
xperylabhub/iLEAPP
fd1b301bf2094387f51ccdbd10ed233ce9abd687
[ "MIT" ]
null
null
null
scripts/artifacts/aggDictpasscode.py
xperylabhub/iLEAPP
fd1b301bf2094387f51ccdbd10ed233ce9abd687
[ "MIT" ]
1
2021-01-16T05:32:40.000Z
2021-01-16T05:32:40.000Z
scripts/artifacts/aggDictpasscode.py
xperylabhub/iLEAPP
fd1b301bf2094387f51ccdbd10ed233ce9abd687
[ "MIT" ]
null
null
null
import glob import os import pathlib import plistlib import sqlite3 import json from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows, open_sqlite_db_readonly def get_aggDictpasscode(files_found, report_folder, seeker): file_found = str(file...
26.9
98
0.762082
3f407d49b66279492130f5976db4929a4ef6459b
786
py
Python
problems/328.Odd_Even_Linked_List/AC_double_n.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/328.Odd_Even_Linked_List/AC_double_n.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/328.Odd_Even_Linked_List/AC_double_n.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Author: illuz <iilluzen[at]gmail.com> # File: AC_double_n.py # Create Date: 2016-02-23 19:16:07 # Usage: AC_simulation_n.py # Descripton: # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x ...
24.5625
44
0.55598
083d51c9cc420296deab3d711ae81b139f65138e
568
py
Python
randomId.py
koolshare/ngrok-1.7
09b64b9551940fd1ec26b387a21342802f4ec845
[ "Apache-2.0" ]
87
2016-01-09T00:43:47.000Z
2021-06-22T06:06:21.000Z
randomId.py
koolshare/ngrok-1.7
09b64b9551940fd1ec26b387a21342802f4ec845
[ "Apache-2.0" ]
2
2016-01-23T08:42:49.000Z
2018-10-02T13:18:43.000Z
randomId.py
koolshare/ngrok-1.7
09b64b9551940fd1ec26b387a21342802f4ec845
[ "Apache-2.0" ]
70
2016-02-22T14:16:42.000Z
2021-09-23T09:47:50.000Z
#!/bin/python env # -*- coding: UTF-8 -*- import random import string N=16 s = ''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(N)) txt = ''' 服务器:etunnel.net 端口: 4443 用户名: %s 密码: %s 可使用的子域名:%s 访问方式: http://子域名.etunnel.net:8080 https://子域名.etunnel.net 访问比如使用 http://%s.etunne...
21.037037
99
0.609155
c3bf866fc15755d8e8d96722717dca6487fa9505
25,423
py
Python
src/GUI/tk.py
shmilee/gdpy3
2e007851fc87793c0038f7b1dacba729271e17a3
[ "MIT" ]
4
2018-08-07T13:28:06.000Z
2021-03-08T04:31:20.000Z
src/GUI/tk.py
shmilee/gdpy3
2e007851fc87793c0038f7b1dacba729271e17a3
[ "MIT" ]
null
null
null
src/GUI/tk.py
shmilee/gdpy3
2e007851fc87793c0038f7b1dacba729271e17a3
[ "MIT" ]
3
2018-05-05T01:34:33.000Z
2022-03-07T15:57:10.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2021 shmilee import os import time import numpy import tempfile import getpass import tkinter from tkinter import ttk, simpledialog, filedialog, messagebox from tkinter.constants import * from distutils.version import LooseVersion from ..__about__ import __data_path__, __...
41.13754
79
0.570389
80e77fc91f76e9514dd55f3228aa001a494990b7
969
py
Python
pygame_template.py
johneastman/pygame-template
bf87e1514cfb9d6aba39c341823605fd8d7b04aa
[ "MIT" ]
null
null
null
pygame_template.py
johneastman/pygame-template
bf87e1514cfb9d6aba39c341823605fd8d7b04aa
[ "MIT" ]
null
null
null
pygame_template.py
johneastman/pygame-template
bf87e1514cfb9d6aba39c341823605fd8d7b04aa
[ "MIT" ]
null
null
null
# Pygame template - skeleton for a new pygame project import pygame import random WIDTH = 360 HEIGHT = 480 FPS = 30 # define colors WHITE = (255, 255, 255) BLACK = (0, 0, 0) RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) # initialize pygame and create window pygame.init() pygame.mixer.init() pygame.font.in...
19.38
53
0.657379
975edf3b89633df244ec76d7154bcb38fb990213
20,191
py
Python
binary/util.py
alexb5dh/hazelcast-client-protocol
e3bb7920cb62707d701b382ac3859c2cb7d8ef21
[ "Apache-2.0" ]
null
null
null
binary/util.py
alexb5dh/hazelcast-client-protocol
e3bb7920cb62707d701b382ac3859c2cb7d8ef21
[ "Apache-2.0" ]
null
null
null
binary/util.py
alexb5dh/hazelcast-client-protocol
e3bb7920cb62707d701b382ac3859c2cb7d8ef21
[ "Apache-2.0" ]
null
null
null
import struct from os.path import exists, join from binary import * from binary.constants import * from functools import partial from util import * from . import reference_objects formats = { 'boolean': '<?', 'byte': '<B', 'int': '<I', 'long': '<q', 'short': '<H', } sizes = { 'boolean': BOOLE...
41.803313
119
0.695706
3274152719814b53020602fee540527b2afc4a45
481
py
Python
intervention_herd/intervention_herd/make_rand_pop.py
molkjar/bachelor
a0591691b820c6c8a45d16f8d55f3a7e80ea384b
[ "MIT" ]
null
null
null
intervention_herd/intervention_herd/make_rand_pop.py
molkjar/bachelor
a0591691b820c6c8a45d16f8d55f3a7e80ea384b
[ "MIT" ]
null
null
null
intervention_herd/intervention_herd/make_rand_pop.py
molkjar/bachelor
a0591691b820c6c8a45d16f8d55f3a7e80ea384b
[ "MIT" ]
null
null
null
import covasim as cv import pandas as pd import sciris as sc import numpy as np import population_random as pr if __name__ == '__main__': #Without dispersion cv.set_seed(1) people = pr.generate_people(n_people=200e3, n_contacts=20, dispersion=None) sc.saveobj('randppl.pop', people) # With disper...
21.863636
82
0.721414
b701c4e350bdb8afea11e79c30b30a4a7776cfc8
1,072
py
Python
flaskr/models/Review.py
RemineralizedWater/E-Commerce_Platform_Backend_354thestars
649787cbbb88655f8424067ecac87e994d6feff2
[ "Zlib" ]
null
null
null
flaskr/models/Review.py
RemineralizedWater/E-Commerce_Platform_Backend_354thestars
649787cbbb88655f8424067ecac87e994d6feff2
[ "Zlib" ]
null
null
null
flaskr/models/Review.py
RemineralizedWater/E-Commerce_Platform_Backend_354thestars
649787cbbb88655f8424067ecac87e994d6feff2
[ "Zlib" ]
null
null
null
from datetime import date from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import update from sqlalchemy import Column, Integer, String, ForeignKey, Date, Sequence, Float from sqlalchemy.dialects.postgresql import JSONB from sqlalchemy.orm import relationship from flaskr.db import Base from flas...
30.628571
81
0.682836
4b286a302d7a5a660d475493c91fcf11934900c9
645
py
Python
presidio-analyzer/tests/test_us_bank_recognizer.py
gitcarbs/presidio
b547eb154212aea43e398bf533b2f9ef435cc6bb
[ "MIT" ]
null
null
null
presidio-analyzer/tests/test_us_bank_recognizer.py
gitcarbs/presidio
b547eb154212aea43e398bf533b2f9ef435cc6bb
[ "MIT" ]
1
2018-07-31T08:26:23.000Z
2018-07-31T08:26:23.000Z
presidio-analyzer/tests/test_us_bank_recognizer.py
gitcarbs/presidio
b547eb154212aea43e398bf533b2f9ef435cc6bb
[ "MIT" ]
null
null
null
from unittest import TestCase from tests import assert_result from presidio_analyzer.predefined_recognizers import UsBankRecognizer us_bank_recognizer = UsBankRecognizer() entities = ["US_BANK_NUMBER"] class TestUsBankRecognizer(TestCase): def test_us_bank_account_invalid_number(self): num = '1234567' ...
26.875
69
0.727132
765c2c742defd07a20d902622a760796afbb7c5c
172
py
Python
chipy_org/apps/profiles/forms.py
smandekar1/chipy.org
d70c6936a389d3e8b7c3530360f08d01aa4fa7f3
[ "MIT" ]
null
null
null
chipy_org/apps/profiles/forms.py
smandekar1/chipy.org
d70c6936a389d3e8b7c3530360f08d01aa4fa7f3
[ "MIT" ]
null
null
null
chipy_org/apps/profiles/forms.py
smandekar1/chipy.org
d70c6936a389d3e8b7c3530360f08d01aa4fa7f3
[ "MIT" ]
null
null
null
from django.forms import ModelForm from .models import UserProfile class ProfileForm(ModelForm): class Meta: model = UserProfile exclude = ('user',)
17.2
34
0.686047
f8bff3898521b5c6d738582e51074bc5ff32a577
1,749
py
Python
setup.py
Learn-code-strategies/DEXBot
ed85b12d8ad8d6ec373fd216a98e55b72f90b860
[ "MIT" ]
null
null
null
setup.py
Learn-code-strategies/DEXBot
ed85b12d8ad8d6ec373fd216a98e55b72f90b860
[ "MIT" ]
null
null
null
setup.py
Learn-code-strategies/DEXBot
ed85b12d8ad8d6ec373fd216a98e55b72f90b860
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from dexbot import VERSION, APP_NAME from setuptools import setup, find_packages from distutils.command import build as build_module cmd_class = {} console_scripts = ['dexbot-cli = dexbot.cli:main'] install_requires = [ 'bitshares==0.2.1', 'uptick==0.2.0', 'click', 'sqlalchemy',...
26.5
60
0.652373
dd54076f9feac354131ed27a6a15682987386005
13,628
py
Python
miricoord/mrs/toolversions/mrs_pipetools_cdp8b.py
mengesser/miricoord
e4f7bef16f8a2e6f1d46c97a2b3d78cd50de7bec
[ "BSD-3-Clause" ]
null
null
null
miricoord/mrs/toolversions/mrs_pipetools_cdp8b.py
mengesser/miricoord
e4f7bef16f8a2e6f1d46c97a2b3d78cd50de7bec
[ "BSD-3-Clause" ]
null
null
null
miricoord/mrs/toolversions/mrs_pipetools_cdp8b.py
mengesser/miricoord
e4f7bef16f8a2e6f1d46c97a2b3d78cd50de7bec
[ "BSD-3-Clause" ]
null
null
null
# """ Useful python tools for working with the MIRI MRS. This contains cdp8b specific code. This version of the tools uses the JWST pipeline implementation of the distortion solution to do the transformations, and hooks into offline versions of the CRDS reference files contained within this github repository. Convert...
39.387283
105
0.613663
d38b46ee92bc099a5b7e8558a7ef63a9015bb028
678
py
Python
confrontiv/core.py
correctiv/confrontiv
ddb34004c32bf20ff49dcb6fba7852593820d921
[ "MIT" ]
2
2017-09-25T20:41:54.000Z
2017-10-04T07:34:44.000Z
confrontiv/core.py
correctiv/confrontiv
ddb34004c32bf20ff49dcb6fba7852593820d921
[ "MIT" ]
null
null
null
confrontiv/core.py
correctiv/confrontiv
ddb34004c32bf20ff49dcb6fba7852593820d921
[ "MIT" ]
null
null
null
import json import unicodecsv from .models import Recipient, InquiryRequest def make_inquiry_requests_from_file(inquiry, file): reader = unicodecsv.DictReader(file) for lineno, line in enumerate(reader, 1): try: recipient = Recipient.objects.get(slug=line['recipient']) except Rec...
35.684211
77
0.696165
8171ac5f0b589b09a50b4eb378795e05ca8e1a21
641
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Intro_to_Python/assignments/A08_callable_objects.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Intro_to_Python/assignments/A08_callable_objects.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Intro_to_Python/assignments/A08_callable_objects.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
""" Assignment 8 1. Write a function that will return True if the passed-in number is even, and False if it is odd. 2. Write a second function that will call the first with values 0-6 and print each result on a new line. 3. Invoke the second function. The signature of the first function should be: `is_even(num: int) ...
23.740741
77
0.687988
f83de2996a98d75efcbaa66480b7cd210869a886
4,124
py
Python
tools/wptrunner/wptrunner/browsers/webkit.py
jimmywarting/wpt
75d80fa43c763935dff59b3c6b21f4dffa9b03b7
[ "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
tools/wptrunner/wptrunner/browsers/webkit.py
jimmywarting/wpt
75d80fa43c763935dff59b3c6b21f4dffa9b03b7
[ "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
tools/wptrunner/wptrunner/browsers/webkit.py
almajlis/wpt
a1d4dd189a5bdca857845b374946b8002c41d199
[ "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
from .base import Browser, ExecutorBrowser, require_arg from .base import get_timeout_multiplier, certificate_domain_list # noqa: F401 from ..executors import executor_kwargs as base_executor_kwargs from ..executors.executorwebdriver import (WebDriverTestharnessExecutor, # noqa: F401 ...
37.153153
110
0.619059
09fd755d6235f35f80d394d4f6057dcd57280768
4,146
py
Python
awx/main/models/schedules.py
whitelighter18/ansible_awx
77a4f1dd86c0e63ea2040156d63d69e78bd4e8e5
[ "Apache-2.0" ]
null
null
null
awx/main/models/schedules.py
whitelighter18/ansible_awx
77a4f1dd86c0e63ea2040156d63d69e78bd4e8e5
[ "Apache-2.0" ]
null
null
null
awx/main/models/schedules.py
whitelighter18/ansible_awx
77a4f1dd86c0e63ea2040156d63d69e78bd4e8e5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. import re import logging import datetime import dateutil.rrule # Django from django.db import models from django.db.models.query import QuerySet from django.utils.timezone import now, make_aware, get_default_timezone from django.utils.translation import ugette...
31.409091
117
0.676556
4c1dbbabecfb71eee93ce7498e203e9de3b66353
3,521
py
Python
mirage/libs/wireless_utils/packetQueue.py
Cabalist/mirage
22553d22da4e87ffb99da8d19f8b552986df0965
[ "MIT" ]
null
null
null
mirage/libs/wireless_utils/packetQueue.py
Cabalist/mirage
22553d22da4e87ffb99da8d19f8b552986df0965
[ "MIT" ]
null
null
null
mirage/libs/wireless_utils/packetQueue.py
Cabalist/mirage
22553d22da4e87ffb99da8d19f8b552986df0965
[ "MIT" ]
null
null
null
import threading import time from queue import Queue class StoppableThread(threading.Thread): ''' This class is just a simplistic implementation of a stoppable thread. The target parameter allows to provide a specific function to run continuously in background. If the stop method is called, the thread is interrup...
28.168
246
0.719966
f62dd0cf30aa7d06251f0d35b712d555c8aed514
1,024
py
Python
tests/modeltests/get_object_or_404/models.py
yarko/django
90b6240c8753ece3e52cafc37e1088b0646b843f
[ "BSD-3-Clause" ]
1
2015-05-14T11:23:36.000Z
2015-05-14T11:23:36.000Z
tests/modeltests/get_object_or_404/models.py
yarko/django
90b6240c8753ece3e52cafc37e1088b0646b843f
[ "BSD-3-Clause" ]
null
null
null
tests/modeltests/get_object_or_404/models.py
yarko/django
90b6240c8753ece3e52cafc37e1088b0646b843f
[ "BSD-3-Clause" ]
null
null
null
""" 35. DB-API Shortcuts ``get_object_or_404()`` is a shortcut function to be used in view functions for performing a ``get()`` lookup and raising a ``Http404`` exception if a ``DoesNotExist`` exception was raised during the ``get()`` call. ``get_list_or_404()`` is a shortcut function to be used in view functions for...
31.030303
97
0.71875
feb2c972773a701c92b537d4004e0e97c1be5203
1,363
py
Python
pipelines/rss.py
d3vzer0/vulnerabilities-pipeline
a6df7a233eaf66a8cb7c81aed69b377274ca3cf7
[ "MIT" ]
1
2021-11-22T09:57:20.000Z
2021-11-22T09:57:20.000Z
pipelines/rss.py
d3vzer0/vulnerabilities-pipeline
a6df7a233eaf66a8cb7c81aed69b377274ca3cf7
[ "MIT" ]
1
2021-08-03T21:56:03.000Z
2021-08-09T15:05:40.000Z
pipelines/rss.py
d3vzer0/vulnerabilities-pipeline
a6df7a233eaf66a8cb7c81aed69b377274ca3cf7
[ "MIT" ]
null
null
null
from dagster import pipeline, composite_solid, PresetDefinition, ModeDefinition from dagster.utils import file_relative_path from solids.rss.main import (get_latest_entries, format_entries, update_entries, get_all_entries) from solids.summarize.main import summarize_feeds from solids.elastic.main import elastic_ups...
27.816327
79
0.694057
2567caae7253284a9a344b99ea33a15dbcca05d6
39,803
py
Python
ozpcenter/api/listing/views.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2018-10-05T17:03:01.000Z
2018-10-05T17:03:01.000Z
ozpcenter/api/listing/views.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2017-01-06T19:20:32.000Z
2017-01-06T19:20:32.000Z
ozpcenter/api/listing/views.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
7
2016-12-16T15:42:05.000Z
2020-09-05T01:11:27.000Z
""" Listing Views """ import logging import operator from django.shortcuts import get_object_or_404 from django.db.models import Min from django.db.models.functions import Lower from rest_framework import filters from rest_framework import status from rest_framework import viewsets from rest_framework.response import ...
33.447899
141
0.634726