hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
0d6c53671cbbb117ed649f7fa65fd1ba932a052e
2,506
py
Python
examples/django_app/sample/views.py
toonarmycaptain/pyflot
f2dde10709aeed39074fcce8172184b5cd8bfd66
[ "MIT" ]
3
2016-01-29T21:51:42.000Z
2021-05-17T02:43:17.000Z
examples/django_app/sample/views.py
toonarmycaptain/pyflot
f2dde10709aeed39074fcce8172184b5cd8bfd66
[ "MIT" ]
2
2015-12-09T17:58:08.000Z
2018-03-04T20:14:09.000Z
examples/django_app/sample/views.py
toonarmycaptain/pyflot
f2dde10709aeed39074fcce8172184b5cd8bfd66
[ "MIT" ]
5
2015-07-22T20:23:32.000Z
2021-05-17T02:45:28.000Z
import flot import math import datetime from django.views.generic import TemplateView
48.192308
80
0.475658
0d6c93e9529dba1be9084932e1bd1a732f244d8b
1,097
py
Python
wolfbot/sensors/avg_color.py
sunil3590/TIM
5c8de80d631a4dea0f604091467dba7a7201de48
[ "MIT" ]
1
2019-01-12T14:35:54.000Z
2019-01-12T14:35:54.000Z
wolfbot/sensors/avg_color.py
sunil3590/TIM
5c8de80d631a4dea0f604091467dba7a7201de48
[ "MIT" ]
null
null
null
wolfbot/sensors/avg_color.py
sunil3590/TIM
5c8de80d631a4dea0f604091467dba7a7201de48
[ "MIT" ]
null
null
null
import color_sensor_ISL29125 from time import time cs = color_sensor_ISL29125.color_senser(1) if cs.valid_init: print "Valid color sensor" else : print "Color Sensor invalid" t0 = time() red_list = [] green_list = [] blue_list = [] for x in range(100): stat = cs.readStatus() if "" in stat: #"FLA...
27.425
66
0.649043
0d6cfdc31d74171c37475fd7569d74d50b976420
24
py
Python
test.py
JohnnyBruh/Repository
f8bfb14737eee78fa8da400c7f6ddb21efda4baf
[ "CC0-1.0" ]
null
null
null
test.py
JohnnyBruh/Repository
f8bfb14737eee78fa8da400c7f6ddb21efda4baf
[ "CC0-1.0" ]
null
null
null
test.py
JohnnyBruh/Repository
f8bfb14737eee78fa8da400c7f6ddb21efda4baf
[ "CC0-1.0" ]
null
null
null
print("yaaaay") input()
12
16
0.666667
0d6d890fdcce2be6554d36ca0ba885f23e87f40b
879
py
Python
getdata.py
krantirk/dash-120million-taxi-app
7c807b12ecb2e4a0fdf48bb7a627fadabbc0d6cc
[ "MIT" ]
103
2020-06-05T19:36:24.000Z
2022-03-26T21:07:22.000Z
getdata.py
krantirk/dash-120million-taxi-app
7c807b12ecb2e4a0fdf48bb7a627fadabbc0d6cc
[ "MIT" ]
4
2020-08-03T10:01:37.000Z
2021-07-10T21:06:17.000Z
getdata.py
krantirk/dash-120million-taxi-app
7c807b12ecb2e4a0fdf48bb7a627fadabbc0d6cc
[ "MIT" ]
38
2020-06-26T02:29:28.000Z
2022-03-25T03:42:47.000Z
import vaex import os # Open the main data taxi_path = 's3://vaex/taxi/yellow_taxi_2012_zones.hdf5?anon=true' # override the path, e.g. $ export TAXI_PATH=/data/taxi/yellow_taxi_2012_zones.hdf5 taxi_path = os.environ.get('TAXI_PATH', taxi_path) df_original = vaex.open(taxi_path) # Make sure the data is cached locally ...
33.807692
83
0.594994
0d6e8c3d883e48ab73c44b0b33f085bbe1e9c3de
493
py
Python
commitsan/util.py
abusalimov/commitsan
5ff6ff970ed643bee52a132a8c4b84c1a0c80b7e
[ "MIT" ]
null
null
null
commitsan/util.py
abusalimov/commitsan
5ff6ff970ed643bee52a132a8c4b84c1a0c80b7e
[ "MIT" ]
null
null
null
commitsan/util.py
abusalimov/commitsan
5ff6ff970ed643bee52a132a8c4b84c1a0c80b7e
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * def unique(iterable, key=id): """ List unique elements, preserving order. Remember all elements ever seen. """ return unique_values((key(element), element) for element in...
24.65
76
0.630832
0d700c7bc2b0f82c98abdf77a46fc878ff69dcbb
1,540
py
Python
topicextractor/__init__.py
kjchung495/topicextractor
6b2f2d9f122b6888d551275113c94126128dcef2
[ "Apache-2.0" ]
null
null
null
topicextractor/__init__.py
kjchung495/topicextractor
6b2f2d9f122b6888d551275113c94126128dcef2
[ "Apache-2.0" ]
null
null
null
topicextractor/__init__.py
kjchung495/topicextractor
6b2f2d9f122b6888d551275113c94126128dcef2
[ "Apache-2.0" ]
null
null
null
import nltk from nltk.tokenize import word_tokenize #nltk.download('punkt') #nltk.download('averaged_perceptron_tagger') from collections import Counter
24.444444
87
0.562987
0d709297a9132b15b51435b7ab4b51ce55c7e9f3
14,315
py
Python
src/finn/transformation/streamline/absorb.py
SpontaneousDuck/finn
7cdfd6271159c6cc4636bd33047a7f2e175a7390
[ "BSD-3-Clause" ]
null
null
null
src/finn/transformation/streamline/absorb.py
SpontaneousDuck/finn
7cdfd6271159c6cc4636bd33047a7f2e175a7390
[ "BSD-3-Clause" ]
null
null
null
src/finn/transformation/streamline/absorb.py
SpontaneousDuck/finn
7cdfd6271159c6cc4636bd33047a7f2e175a7390
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Xilinx # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the follow...
50.22807
88
0.542927
0d71379845c71ad7524a31d7ceaa01d4a691d64e
822
py
Python
examples/static_content.py
kjosib/kale
ced67fa7a335fbe9524c86a0a805cfdd56f6d560
[ "MIT" ]
null
null
null
examples/static_content.py
kjosib/kale
ced67fa7a335fbe9524c86a0a805cfdd56f6d560
[ "MIT" ]
3
2020-03-04T03:16:52.000Z
2020-04-25T06:22:48.000Z
examples/static_content.py
kjosib/kale
ced67fa7a335fbe9524c86a0a805cfdd56f6d560
[ "MIT" ]
2
2020-05-22T16:29:33.000Z
2022-01-10T19:36:51.000Z
""" <html><body> <p> You'll probably want to supply a stylesheet. Perhaps some javascript library. Maybe even some images. One way or another, it's handy to be able to point at a directory full of static content and let the framework do its job. </p> <p> This example exercises that facility by presenting the examples ...
22.833333
77
0.723844
0d71f71fc61d06bd9b1713ddabe63d768527680c
1,266
py
Python
Hello_world/hello_world2.py
elsuizo/Kivy_work
90da07721257a5e2ebf9eafacfb5a632f91cfbdd
[ "MIT" ]
null
null
null
Hello_world/hello_world2.py
elsuizo/Kivy_work
90da07721257a5e2ebf9eafacfb5a632f91cfbdd
[ "MIT" ]
null
null
null
Hello_world/hello_world2.py
elsuizo/Kivy_work
90da07721257a5e2ebf9eafacfb5a632f91cfbdd
[ "MIT" ]
null
null
null
#= ------------------------------------------------------------------------- # @file hello_world2.py # # @date 02/14/16 13:29:22 # @author Martin Noblia # @email martin.noblia@openmailbox.org # # @brief # # @detail # # Licence: # This program is free software: you can redistribute it and/or modify # it under the terms...
28.772727
78
0.627172
0d72db2c734fbc6f87d4e7544c59946f28af4c13
1,167
py
Python
libs/validators/iban.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
674
2015-11-06T04:22:47.000Z
2022-02-26T17:31:43.000Z
libs/validators/iban.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
713
2015-11-06T10:48:58.000Z
2018-11-27T16:32:18.000Z
libs/validators/iban.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
106
2015-12-07T11:21:06.000Z
2022-03-11T10:58:41.000Z
import re from .utils import validator regex = ( r'^[A-Z]{2}[0-9]{2}[A-Z0-9]{13,30}$' ) pattern = re.compile(regex) def char_value(char): """A=10, B=11, ..., Z=35 """ if char.isdigit(): return int(char) else: return 10 + ord(char) - ord('A') def modcheck(value): """Check if...
22.018868
74
0.610111
0d736e7e49cff33ae106086347e250953188ade6
249
py
Python
Multiples of 3 and 5.py
ahmedharbi197/Project-Euler
596fa7622233868a08200f2d7fe3b7e83d0af41f
[ "MIT" ]
1
2019-06-10T23:10:38.000Z
2019-06-10T23:10:38.000Z
Multiples of 3 and 5.py
ahmedharbi197/Project-Euler
596fa7622233868a08200f2d7fe3b7e83d0af41f
[ "MIT" ]
null
null
null
Multiples of 3 and 5.py
ahmedharbi197/Project-Euler
596fa7622233868a08200f2d7fe3b7e83d0af41f
[ "MIT" ]
null
null
null
import sys t = int(input().strip()) for a0 in range(t): n = int(input().strip()) result = 3*preSum(int((n-1)//3)) + 5*preSum(int((n-1)//5)) - 15*preSum(int((n-1)//15)) print(int(result))
24.9
90
0.526104
0d74ec72c3d16df3ed04de198a0c999287ff6316
1,303
py
Python
home/models.py
davidkiama/Foto-Moto-
97f5cafb3580152c3672834dcbbbf5cfa961ff15
[ "Unlicense" ]
null
null
null
home/models.py
davidkiama/Foto-Moto-
97f5cafb3580152c3672834dcbbbf5cfa961ff15
[ "Unlicense" ]
null
null
null
home/models.py
davidkiama/Foto-Moto-
97f5cafb3580152c3672834dcbbbf5cfa961ff15
[ "Unlicense" ]
null
null
null
from statistics import mode from django.db import models from cloudinary.models import CloudinaryField # Create your models here.
25.057692
74
0.697621
0d751410403aebe0b04f4d2c6ba497f74d25e18a
2,396
py
Python
mozillians/users/tests/__init__.py
justinpotts/mozillians
efa5cbdfe4992d2ba1c1d85bfbb5b09b2215cc44
[ "BSD-3-Clause" ]
1
2016-07-24T07:20:19.000Z
2016-07-24T07:20:19.000Z
mozillians/users/tests/__init__.py
Acidburn0zzz/mozillians
991d51b8dc6d7b8265d20a33e83597a1f4500761
[ "BSD-3-Clause" ]
null
null
null
mozillians/users/tests/__init__.py
Acidburn0zzz/mozillians
991d51b8dc6d7b8265d20a33e83597a1f4500761
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import Group, User from django.utils import timezone import factory from factory import fuzzy from mozillians.geo.models import City, Country, Region from mozillians.users.models import Language
35.761194
82
0.647746
0d779f79a6ff4f979c6a546d7fdf9c7fcb571967
1,248
py
Python
tests/_utils.py
tsuyukimakoto/physaliidae
e55416e8b84c4a4ed2a31290f16ccd42350853d2
[ "MIT" ]
2
2017-04-26T01:10:24.000Z
2019-05-04T03:29:24.000Z
tests/_utils.py
tsuyukimakoto/physaliidae
e55416e8b84c4a4ed2a31290f16ccd42350853d2
[ "MIT" ]
220
2019-01-01T03:18:11.000Z
2022-03-28T20:29:49.000Z
tests/_utils.py
tsuyukimakoto/biisan
8e55d73c582fcbba918595c2e741ffce7c88aaa9
[ "MIT" ]
null
null
null
import os import shutil from contextlib import ( contextmanager, ) from pathlib import Path import pytest def _copy_blog(entry_file): src = Path('.') / 'test_data' / entry_file dest = Path('.') / 'biisan_data' / 'data' / 'blog' / entry_file shutil.copyfile(src, dest) def copy_first_blog(): _...
22.285714
89
0.677885
0d78168c5d6eacac481b47c1f58e174237b91fe4
1,866
py
Python
christmasflix/tests.py
jbettenh/last_christmas
2f861afbdf67ca69df0e7ed815a870c5bb4feb19
[ "MIT" ]
null
null
null
christmasflix/tests.py
jbettenh/last_christmas
2f861afbdf67ca69df0e7ed815a870c5bb4feb19
[ "MIT" ]
1
2021-11-03T20:16:50.000Z
2021-12-22T16:05:44.000Z
christmasflix/tests.py
jbettenh/last_christmas
2f861afbdf67ca69df0e7ed815a870c5bb4feb19
[ "MIT" ]
null
null
null
from django.test import TestCase from django.shortcuts import reverse from .models import MovieList from christmasflix import omdbmovies
33.927273
100
0.721329
0d78acb4113c1695f1ed8f46e6ee86a7f8ade1aa
430
py
Python
errors.py
zofy/crawler
3db2a214b4ca86022c49670a204e04fc1208f53a
[ "MIT" ]
null
null
null
errors.py
zofy/crawler
3db2a214b4ca86022c49670a204e04fc1208f53a
[ "MIT" ]
null
null
null
errors.py
zofy/crawler
3db2a214b4ca86022c49670a204e04fc1208f53a
[ "MIT" ]
null
null
null
from asyncio import CancelledError, TimeoutError from requests.exceptions import Timeout, ConnectionError from aiohttp.client_exceptions import ClientHttpProxyError, ClientProxyConnectionError, ClientOSError ProxyErrors = (CaptchaError, ClientOSError, ClientProxyConnectionError, ClientHttpProxyError) TimeoutE...
35.833333
102
0.834884
0d7972a9afb83ed1ccb7a5d48d6c3bd4bfcc326f
4,493
py
Python
holdingsparser/scrape.py
mhadam/holdingsparser
c2f58acf6414e417ff435bb01ecbb8c37be50d77
[ "MIT" ]
9
2018-04-23T23:35:21.000Z
2021-11-03T04:34:09.000Z
holdingsparser/scrape.py
mhadam/holdingsparser
c2f58acf6414e417ff435bb01ecbb8c37be50d77
[ "MIT" ]
2
2021-05-06T14:38:14.000Z
2021-05-08T01:17:33.000Z
holdingsparser/scrape.py
mhadam/holdingsparser
c2f58acf6414e417ff435bb01ecbb8c37be50d77
[ "MIT" ]
4
2018-08-18T18:09:06.000Z
2021-06-21T02:02:07.000Z
import json import logging import re from itertools import chain from json import JSONDecodeError from typing import Iterable, Optional, Mapping import requests import untangle from bs4 import BeautifulSoup, PageElement, Tag from holdingsparser.file import Holding, VotingAuthority, ShrsOrPrnAmt logger = logging.getL...
35.65873
116
0.676163
0d7ab5a4ed73da20e4b8a1aaf38e3c5f297e7d62
4,757
py
Python
scripts/settings.py
jugoodma/reu-2018
e6133b556216e8a7a91b23dd37dc043408cbab82
[ "MIT" ]
5
2018-07-16T02:56:31.000Z
2020-04-05T21:24:24.000Z
scripts/settings.py
jugoodma/reu-2018
e6133b556216e8a7a91b23dd37dc043408cbab82
[ "MIT" ]
null
null
null
scripts/settings.py
jugoodma/reu-2018
e6133b556216e8a7a91b23dd37dc043408cbab82
[ "MIT" ]
2
2018-07-16T18:38:20.000Z
2018-08-03T18:54:00.000Z
# DEFAULT SETTINGS FILE import json import requests mturk_type = "sandbox" data_type = "temporal" data_path = "../data/" input_path = "../input/" template_path = "../templates/" result_path = "../results/" max_results = 10 approve_all = False # you must have a YouTube API v3 key # your key must be in a json file titl...
38.056
165
0.61194
0d7b441950e43399337a0b17c73f11ba2c3bafd4
10,790
py
Python
synapse-prometheus-connector/src/main.py
microsoft/azure-synapse-spark-metrics
a32ca9426973b34d0d7a9092a9c608fae6d7b0ff
[ "MIT" ]
8
2021-02-26T11:26:55.000Z
2022-03-31T16:16:17.000Z
synapse-prometheus-connector/src/main.py
microsoft/azure-synapse-spark-metrics
a32ca9426973b34d0d7a9092a9c608fae6d7b0ff
[ "MIT" ]
2
2021-11-11T08:43:19.000Z
2021-11-30T09:11:31.000Z
synapse-prometheus-connector/src/main.py
microsoft/azure-synapse-spark-metrics
a32ca9426973b34d0d7a9092a9c608fae6d7b0ff
[ "MIT" ]
4
2021-09-13T12:34:56.000Z
2022-02-15T03:57:13.000Z
# coding=utf-8 # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import json import os import signal import time import traceback import requests import access_token import config import metrics import model import spark_pools if __name__ == "__main__": main()
46.508621
159
0.668397
0d7c6c0d4a76f2eeb76fb63de618f9a0da93b8d7
5,465
py
Python
stanCode_projects/pedestrian_removing/stanCodoshop.py
shihjames/sc-projects
3c09ae12489edb2ba55335ea192a8206e9a45e84
[ "MIT" ]
null
null
null
stanCode_projects/pedestrian_removing/stanCodoshop.py
shihjames/sc-projects
3c09ae12489edb2ba55335ea192a8206e9a45e84
[ "MIT" ]
null
null
null
stanCode_projects/pedestrian_removing/stanCodoshop.py
shihjames/sc-projects
3c09ae12489edb2ba55335ea192a8206e9a45e84
[ "MIT" ]
null
null
null
""" File: stanCodoshop.py Name: James Shih ---------------------------------------------- SC101_Assignment3 Adapted from Nick Parlante's Ghost assignment by Jerry Liao. ----------------------------------------------- Remove people or abnormal objects in a certain photo. """ import os import sys import time from simpl...
29.224599
106
0.6086
0d7c9dd39ea4011bea154b13be9de5e46cbc2b5f
1,254
py
Python
src/search/views/author.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
18
2021-05-20T13:20:16.000Z
2022-02-11T02:40:18.000Z
src/search/views/author.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
109
2021-05-21T20:14:23.000Z
2022-03-31T20:56:10.000Z
src/search/views/author.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
4
2021-05-17T13:47:53.000Z
2022-02-12T10:48:21.000Z
from rest_framework import viewsets from elasticsearch_dsl import Search from elasticsearch_dsl.connections import connections from search.filters import ElasticsearchFuzzyFilter from search.documents import AuthorDocument from search.serializers import AuthorDocumentSerializer from utils.permissions import ReadOnly
32.153846
70
0.720893
0d7e76df168940114e6ba8aba86bf80b7241eafe
4,329
py
Python
MPNet/data_loader.py
sbaktha/MPNet
7780a00bb5bca2fc5fdfcc5d50b8dcc7c0120b20
[ "MIT" ]
null
null
null
MPNet/data_loader.py
sbaktha/MPNet
7780a00bb5bca2fc5fdfcc5d50b8dcc7c0120b20
[ "MIT" ]
null
null
null
MPNet/data_loader.py
sbaktha/MPNet
7780a00bb5bca2fc5fdfcc5d50b8dcc7c0120b20
[ "MIT" ]
null
null
null
import torch import torch.utils.data as data import os import pickle import numpy as np import nltk from PIL import Image import os.path import random from torch.autograd import Variable import torch.nn as nn import math # Environment Encoder #N=number of environments; NP=Number of Paths def load_dataset(N=100,NP=400...
26.078313
144
0.662509
0d7f5efa7e68562621936b11080cd338789bdad4
1,584
py
Python
qclib/backend/state.py
dylanljones/qclib
91e63b642f57fee6eff0b3ff1d696880a66509c3
[ "MIT" ]
2
2021-10-31T11:14:51.000Z
2021-11-17T13:39:50.000Z
qclib/backend/state.py
dylanljones/qclib
91e63b642f57fee6eff0b3ff1d696880a66509c3
[ "MIT" ]
null
null
null
qclib/backend/state.py
dylanljones/qclib
91e63b642f57fee6eff0b3ff1d696880a66509c3
[ "MIT" ]
1
2021-10-31T11:15:00.000Z
2021-10-31T11:15:00.000Z
# coding: utf-8 # # This code is part of qclib. # # Copyright (c) 2021, Dylan Jones import numpy as np from ..math import apply_statevec, apply_density, density_matrix from .measure import measure_qubit, measure_qubit_rho
22.956522
80
0.65404
0d7fab914540aa7a0c18cf59c2ed8e272d40f98a
3,981
py
Python
Upwelling_project_noCFM.py
gmarmin10/Theoretical_Coastal_Model
c045fd16b44ec4fa3e1a641a323f45b2daeef433
[ "MIT" ]
null
null
null
Upwelling_project_noCFM.py
gmarmin10/Theoretical_Coastal_Model
c045fd16b44ec4fa3e1a641a323f45b2daeef433
[ "MIT" ]
null
null
null
Upwelling_project_noCFM.py
gmarmin10/Theoretical_Coastal_Model
c045fd16b44ec4fa3e1a641a323f45b2daeef433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # #### Modeling the elemental stoichiometry of phytoplankton and surrounding surface waters in and upwelling or estuarine system # >Steps to complete project: # >1. Translate matlab physical model into python # >2. Substitute Dynamic CFM into model for eco component # >3. Analyze ...
23.838323
128
0.678222
0d802fca09e29a84af3006203d6210a4292b4238
2,534
py
Python
run.py
UNIFUZZ/getcvss
360de42ef09d7e21ef7c539d48ac083d10e8e215
[ "MIT" ]
2
2020-08-16T12:06:17.000Z
2021-01-05T05:35:54.000Z
run.py
UNIFUZZ/getcvss
360de42ef09d7e21ef7c539d48ac083d10e8e215
[ "MIT" ]
null
null
null
run.py
UNIFUZZ/getcvss
360de42ef09d7e21ef7c539d48ac083d10e8e215
[ "MIT" ]
2
2020-08-16T11:07:29.000Z
2022-01-04T02:18:50.000Z
import requests sess = requests.session() import gzip import json import time import os if __name__ == "__main__": #print(getdata("recent")) #print(os.path.getmtime("/tmp/cvssdata/cvss.csv"), time.time()-os.path.getmtime("/tmp/cvssdata/cvss.csv")) data = fullupdate() writetofile("/tmp/cvssda...
40.870968
150
0.598658
0d8131562321f737bfe94d6f5f98ee26c890434c
2,974
py
Python
src/enumerator.py
darkarnium/perimeterator
8c694267d92ca1d28fc1494cd9394af34271ed39
[ "MIT" ]
56
2019-03-20T01:44:04.000Z
2022-02-16T13:36:39.000Z
src/enumerator.py
darkarnium/perimeterator
8c694267d92ca1d28fc1494cd9394af34271ed39
[ "MIT" ]
1
2020-07-08T20:30:23.000Z
2020-11-07T15:41:25.000Z
src/enumerator.py
darkarnium/perimeterator
8c694267d92ca1d28fc1494cd9394af34271ed39
[ "MIT" ]
9
2019-10-09T18:54:52.000Z
2021-12-28T15:27:58.000Z
#!/usr/bin/env python3 ''' Perimeterator Enumerator. This wrapper is intended to allow for simplified AWS based deployment of the Perimeterator enumerator. This allows for a cost effective method of execution, as the Perimeterator poller component only needs to execute on a defined schedule in order to detect changes....
33.41573
77
0.631137
0d819476af5932130a9089599a42a757e9fa6fab
3,991
py
Python
script/diffsel_script_utils.py
vlanore/COPTR
babe25070ddfa67dd04e0f96a143ce539cc27fbb
[ "CECILL-B" ]
null
null
null
script/diffsel_script_utils.py
vlanore/COPTR
babe25070ddfa67dd04e0f96a143ce539cc27fbb
[ "CECILL-B" ]
null
null
null
script/diffsel_script_utils.py
vlanore/COPTR
babe25070ddfa67dd04e0f96a143ce539cc27fbb
[ "CECILL-B" ]
null
null
null
# Copyright or Copr. Centre National de la Recherche Scientifique (CNRS) (2017/11/27) # Contributors: # - Vincent Lanore <vincent.lanore@gmail.com> # This software is a computer program whose purpose is to provide small tools and scripts related to phylogeny and bayesian # inference. # This software is governed by th...
32.983471
127
0.687798
0d81c066a40ec6d9a8fc2da5c8835fbc0f207108
6,871
py
Python
test/test_PointSource/test_point_source.py
guoxiaowhu/lenstronomy
dcdfc61ce5351ac94565228c822f1c94392c1ad6
[ "MIT" ]
1
2018-11-08T12:33:26.000Z
2018-11-08T12:33:26.000Z
test/test_PointSource/test_point_source.py
guoxiaowhu/lenstronomy
dcdfc61ce5351ac94565228c822f1c94392c1ad6
[ "MIT" ]
null
null
null
test/test_PointSource/test_point_source.py
guoxiaowhu/lenstronomy
dcdfc61ce5351ac94565228c822f1c94392c1ad6
[ "MIT" ]
null
null
null
import pytest import numpy as np import numpy.testing as npt from lenstronomy.PointSource.point_source import PointSource from lenstronomy.LensModel.lens_model import LensModel from lenstronomy.LensModel.Solver.lens_equation_solver import LensEquationSolver import lenstronomy.Util.param_util as param_util if __nam...
54.531746
140
0.679377
0d81f1dd86c97fac6a68af0051fa814935517691
3,493
py
Python
invenio_rdm_pure/utils.py
utnapischtim/invenio-rdm-pure
895addfb374dca640adc42ce68ab54ddfc8d412a
[ "MIT" ]
null
null
null
invenio_rdm_pure/utils.py
utnapischtim/invenio-rdm-pure
895addfb374dca640adc42ce68ab54ddfc8d412a
[ "MIT" ]
19
2020-10-20T09:38:09.000Z
2021-04-01T09:13:59.000Z
invenio_rdm_pure/utils.py
utnapischtim/invenio-rdm-pure
895addfb374dca640adc42ce68ab54ddfc8d412a
[ "MIT" ]
2
2020-09-18T06:45:15.000Z
2021-03-21T20:15:37.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2021 Technische Universitt Graz # # invenio-rdm-pure is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Utility methods.""" import smtplib from datetime import datetime from os.path import dir...
28.398374
99
0.634412
0d8360504869ccd639eced6db8d480f95abb8776
37
py
Python
examples/project-sourcecode/c.py
wheatdog/guildai
817cf179d0b6910d3d4fca522045a8139aef6c9e
[ "Apache-2.0" ]
694
2018-11-30T01:06:30.000Z
2022-03-31T14:46:26.000Z
examples/project-sourcecode/c.py
wheatdog/guildai
817cf179d0b6910d3d4fca522045a8139aef6c9e
[ "Apache-2.0" ]
323
2018-11-05T17:44:34.000Z
2022-03-31T16:56:41.000Z
examples/project-sourcecode/c.py
wheatdog/guildai
817cf179d0b6910d3d4fca522045a8139aef6c9e
[ "Apache-2.0" ]
68
2019-04-01T04:24:47.000Z
2022-02-24T17:22:04.000Z
from subproject import d print("c")
9.25
24
0.72973
0d836b79c1c35926c2be545a9cfa96aaad92778b
1,992
py
Python
cookiecutterassert/rules/run_script.py
yangzii0920/cookiecutterassert
d690bb06844821334e7b2b0e6361fb30556d718b
[ "Apache-2.0" ]
3
2020-09-24T12:43:42.000Z
2022-02-10T13:04:28.000Z
cookiecutterassert/rules/run_script.py
yangzii0920/cookiecutterassert
d690bb06844821334e7b2b0e6361fb30556d718b
[ "Apache-2.0" ]
5
2020-11-05T22:04:07.000Z
2021-07-07T15:45:38.000Z
cookiecutterassert/rules/run_script.py
cookiecutterassert/cooiecutterassert
87a2b05c45c0cb30abfc11f944a6cb12a2863a09
[ "Apache-2.0" ]
4
2020-10-06T13:55:39.000Z
2021-11-23T15:38:00.000Z
# Copyright 2020 Ford Motor Company # 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...
31.125
166
0.674197
0d861b47d79b6a499c086d94f4c974f6d7dabf56
37,790
py
Python
neutron/services/loadbalancer/plugin.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
null
null
null
neutron/services/loadbalancer/plugin.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
null
null
null
neutron/services/loadbalancer/plugin.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Radware LTD. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
45.917375
114
0.611723
0d8654ebd4587d1b86f646674bd4260a04af5395
1,219
py
Python
awsFunctions.py
jmontoyac/disk-space
6a3556a98103a6565756824208251240ed540412
[ "MIT" ]
null
null
null
awsFunctions.py
jmontoyac/disk-space
6a3556a98103a6565756824208251240ed540412
[ "MIT" ]
null
null
null
awsFunctions.py
jmontoyac/disk-space
6a3556a98103a6565756824208251240ed540412
[ "MIT" ]
null
null
null
import boto3 from botocore.exceptions import NoCredentialsError ACCESS_KEY = '' SECRET_KEY = '' # Main localFile = '/images/gotIt.jpg' s3File = 'imagesTest/gotIt.jpg' bucketName = 'voti-public' #uploaded = upload_to_aws(localFile, bucketName, s3File) usedSpace = getUsedSpace(bucketName)
26.5
59
0.64397
0d88e0637e9a9379159eee4585d2567b071fb965
2,176
py
Python
src/db_writer.py
lofmat/kafka_project
1b3a6ac8d898d1ff5a4f303605a1b9f33b30085b
[ "Apache-2.0" ]
null
null
null
src/db_writer.py
lofmat/kafka_project
1b3a6ac8d898d1ff5a4f303605a1b9f33b30085b
[ "Apache-2.0" ]
null
null
null
src/db_writer.py
lofmat/kafka_project
1b3a6ac8d898d1ff5a4f303605a1b9f33b30085b
[ "Apache-2.0" ]
null
null
null
from psycopg2 import connect, DatabaseError, OperationalError, ProgrammingError import logging import sys logging.getLogger().setLevel(logging.INFO)
32
98
0.566636
0d8a394c7608f83db8f19c2b8dbe58f33ccd689a
2,365
py
Python
sample/metropolis_sampler.py
shuiruge/little_mcmc
b9372fc65c59b16067832de08b0dcb9fc285052e
[ "MIT" ]
null
null
null
sample/metropolis_sampler.py
shuiruge/little_mcmc
b9372fc65c59b16067832de08b0dcb9fc285052e
[ "MIT" ]
null
null
null
sample/metropolis_sampler.py
shuiruge/little_mcmc
b9372fc65c59b16067832de08b0dcb9fc285052e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Description --------- Class of sampler by Metropolis algorithm. Documentation --------- C.f. `../doc/metropolis_sampler.tm`. """ import random from math import log from copy import deepcopy as copy
20.213675
72
0.556448
0d8b44c6cdb28214bde2bc0db794be64cdb76647
319
py
Python
Desafios/Desafio048.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
Desafios/Desafio048.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
Desafios/Desafio048.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
#Faa um programa que calcule a soma entre todos os nmeros mpares que so mltiplos de 3 e que se encontram # no intervalo de 1 at 500. soma = 0 cont = 0 for c in range(1,501,2): if c % 3 == 0: cont = cont + 1 soma = soma + c print('A soma dos nmeros solicitados {} so {}'.format(cont, soma))
29
109
0.642633
0d8d0b013e67c45f113c70d966f6a14dd4760296
10,532
py
Python
main.py
JiahongChen/FRAN
58dd5c4a6162d0d76cd3a2b562319ca761397aac
[ "Apache-2.0" ]
6
2021-02-07T21:53:52.000Z
2022-03-25T09:14:30.000Z
main.py
JiahongChen/FRAN
58dd5c4a6162d0d76cd3a2b562319ca761397aac
[ "Apache-2.0" ]
null
null
null
main.py
JiahongChen/FRAN
58dd5c4a6162d0d76cd3a2b562319ca761397aac
[ "Apache-2.0" ]
3
2021-09-23T06:04:34.000Z
2022-03-25T09:15:08.000Z
import os import argparse import tqdm import os import argparse import numpy as np import tqdm from itertools import chain from collections import OrderedDict import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import transforms from torch.autograd import Vari...
38.15942
236
0.654766
0d8d5718379dda93fd6474b84b7d6a14a112142a
529
py
Python
sums-of-numbers-game/prepare_sum_objects.py
babyrobot-eu/core-modules
7e8c006c40153fb649208c9a78fc71aa70243f69
[ "MIT" ]
1
2019-02-07T15:32:06.000Z
2019-02-07T15:32:06.000Z
sums-of-numbers-game/prepare_sum_objects.py
babyrobot-eu/core-modules
7e8c006c40153fb649208c9a78fc71aa70243f69
[ "MIT" ]
9
2020-01-28T22:09:41.000Z
2022-03-11T23:39:17.000Z
sums-of-numbers-game/prepare_sum_objects.py
babyrobot-eu/core-modules
7e8c006c40153fb649208c9a78fc71aa70243f69
[ "MIT" ]
null
null
null
import pickle from random import shuffle sums = [(5, 105) , (205, 305), (405, 1005), (1105, 1205), (1305, 1405)] shuffle(sums) a = {'sums': sums, 'current_sum': 0} with open('child_data/child1.pkl', 'wb') as f: pickle.dump(obj=a, file=f) print(a) shuffle(sums) b = {'sums': sums, 'current_sum': 0} with open('child...
25.190476
71
0.640832
0d8d86db0a3258002cf5655c5b82a27e00d11ef7
10,736
py
Python
tests/weighted/test_pathcensus.py
sztal/pathcensus
0246b1450e5d7fa0421e283f980c367100fcdd6a
[ "MIT" ]
null
null
null
tests/weighted/test_pathcensus.py
sztal/pathcensus
0246b1450e5d7fa0421e283f980c367100fcdd6a
[ "MIT" ]
null
null
null
tests/weighted/test_pathcensus.py
sztal/pathcensus
0246b1450e5d7fa0421e283f980c367100fcdd6a
[ "MIT" ]
null
null
null
"""Test weighted path counting methods.""" # pylint: disable=redefined-outer-name,too-few-public-methods # pylint: disable=too-many-branches import pytest from pytest import approx import numpy as np import pandas as pd from pathcensus.definitions import PathDefinitionsWeighted from pathcensus import PathCensus clas...
38.758123
85
0.57256
0d8dedee8a01cdd537a2a3df042a8dfbd8ef5e42
5,781
py
Python
menuparser.py
tomjaspers/vubresto-server
96b441c76d8219505742eb5d08793bfb454ff9c8
[ "MIT" ]
2
2015-03-09T14:26:57.000Z
2015-03-30T17:30:56.000Z
menuparser.py
tomjaspers/vubresto-server
96b441c76d8219505742eb5d08793bfb454ff9c8
[ "MIT" ]
null
null
null
menuparser.py
tomjaspers/vubresto-server
96b441c76d8219505742eb5d08793bfb454ff9c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python27 import io import os import json import logging import datetime import requests import lxml.html from lxml.cssselect import CSSSelector from multiprocessing.dummy import Pool as ThreadPool # Path where the JSONs will get written. Permissions are your job. SAVE_PATH = '.' # Urls of the pages t...
35.036364
80
0.572219
0d8e965e118133f5b1bd1e62eb10836c7d536a8f
1,715
py
Python
server/recommendation_system.py
Igor-SeVeR/Recommendation-system-for-offering-related-products
faa719a86a0d811da63e7a6ac8e3db84510041e6
[ "Apache-2.0" ]
null
null
null
server/recommendation_system.py
Igor-SeVeR/Recommendation-system-for-offering-related-products
faa719a86a0d811da63e7a6ac8e3db84510041e6
[ "Apache-2.0" ]
null
null
null
server/recommendation_system.py
Igor-SeVeR/Recommendation-system-for-offering-related-products
faa719a86a0d811da63e7a6ac8e3db84510041e6
[ "Apache-2.0" ]
null
null
null
import numpy as np from utils import check_integer_values from gensim.models import KeyedVectors from config import PATH_TO_SAVE_DATA, WORD2VEC_FILE_NAME, STOCKCODE_FILE_NAME # =========== TECHNICAL FUNCTIONS =========== # ============ MAIN PART ============
24.5
79
0.630904
0d8f583a5022eb2ed6a681ddfd9fb9b1e0561dc7
5,531
py
Python
src/wav2vec2/spec_augment.py
janlight/gsoc-wav2vec2
4d241553137ba0c3ac5acb4670c5653512b17854
[ "Apache-2.0" ]
40
2021-06-15T10:01:13.000Z
2022-03-29T22:48:05.000Z
src/wav2vec2/spec_augment.py
janlight/gsoc-wav2vec2
4d241553137ba0c3ac5acb4670c5653512b17854
[ "Apache-2.0" ]
29
2021-06-15T12:26:26.000Z
2022-01-11T21:20:27.000Z
src/wav2vec2/spec_augment.py
janlight/gsoc-wav2vec2
4d241553137ba0c3ac5acb4670c5653512b17854
[ "Apache-2.0" ]
14
2021-07-22T07:48:42.000Z
2022-03-19T07:53:08.000Z
# following code is largly adapted from `here <https://github.com/huggingface/transformers/blob/f2c4ce7e339f4a2f8aaacb392496bc1a5743881f/src/transformers/models/wav2vec2/modeling_tf_wav2vec2.py#L206>__` import tensorflow as tf import numpy as np def tf_multinomial_no_replacement(distribution, num_samples): """ ...
42.875969
202
0.711445
0d8fe58183417cd3a2d532a22447986b76e404bf
195
py
Python
livereload/__init__.py
Fantomas42/django-livereload
1170b6729667a6164e5e47776781b2a7f6b2c0d3
[ "BSD-3-Clause" ]
63
2015-01-02T03:07:50.000Z
2022-01-06T13:53:07.000Z
livereload/__init__.py
Fantomas42/django-livereload
1170b6729667a6164e5e47776781b2a7f6b2c0d3
[ "BSD-3-Clause" ]
12
2015-02-26T20:04:17.000Z
2021-08-25T05:24:04.000Z
livereload/__init__.py
Fantomas42/django-livereload
1170b6729667a6164e5e47776781b2a7f6b2c0d3
[ "BSD-3-Clause" ]
18
2015-02-24T22:23:51.000Z
2017-01-22T16:00:25.000Z
"""django-livereload""" __version__ = '1.7' __license__ = 'BSD License' __author__ = 'Fantomas42' __email__ = 'fantomas42@gmail.com' __url__ = 'https://github.com/Fantomas42/django-livereload'
21.666667
59
0.738462
0d902f3628cad0645f5a28226144694853af64ef
1,673
py
Python
utils_data.py
vkola/peds2019
232ee1400e5220a8f928c1bab0bfbd9d20552308
[ "MIT" ]
13
2019-09-03T09:42:12.000Z
2022-03-23T02:14:46.000Z
utils_data.py
vkola/peds2019
232ee1400e5220a8f928c1bab0bfbd9d20552308
[ "MIT" ]
5
2020-12-17T09:38:22.000Z
2021-04-30T00:29:54.000Z
utils_data.py
vkola/peds2019
232ee1400e5220a8f928c1bab0bfbd9d20552308
[ "MIT" ]
7
2019-07-08T19:04:00.000Z
2022-02-19T09:04:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 8 16:05:54 2019 @author: Chonghua Xue (Kolachalama's Lab, BU) """ from torch.utils.data import Dataset # true if gapped else false vocab_o = { True: ['-'] + ['A', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'V'...
38.906977
127
0.548117
0d92dd46b5c6cda3a158d46142ec944eda28a213
7,986
py
Python
fairmlhealth/__fairness_metrics.py
masino-lab/fairMLHealth
943ffed5f57997401823bd2afc257f34f76ea157
[ "MIT" ]
19
2020-10-29T10:14:59.000Z
2022-03-20T06:27:35.000Z
fairmlhealth/__fairness_metrics.py
masino-lab/fairMLHealth
943ffed5f57997401823bd2afc257f34f76ea157
[ "MIT" ]
52
2020-10-14T19:21:27.000Z
2021-09-15T19:01:52.000Z
fairmlhealth/__fairness_metrics.py
masino-lab/fairMLHealth
943ffed5f57997401823bd2afc257f34f76ea157
[ "MIT" ]
9
2020-12-02T21:40:27.000Z
2021-11-01T18:09:10.000Z
""" Custom Fairness Metrics Note that ratio and difference computation is handled by AIF360's sklearn.metrics module. As of the V 0.4.0 release, these are calculated as [unprivileged/privileged] and [unprivileged - privileged], respectively """ from typing import Callable from aif360.sklearn.metrics import...
29.577778
88
0.660155
0d93c4592d73e829b821284fa1eb81e23780c084
6,815
py
Python
tests/portstat/test_portstat.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
2
2021-11-24T09:33:41.000Z
2021-12-03T09:08:29.000Z
tests/portstat/test_portstat.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
null
null
null
tests/portstat/test_portstat.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
null
null
null
import logging import pytest from tests.common.helpers.assertions import pytest_assert from tests.common.portstat_utilities import parse_portstat from tests.common.utilities import wait logger = logging.getLogger('__name__') pytestmark = [ pytest.mark.topology('any') ]
45.738255
116
0.699486
0d94ba5e46412f0822ea3dc209d00e080804ba7d
597
py
Python
src/bxcommon/utils/crypto.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
12
2019-11-06T17:39:10.000Z
2022-03-01T11:26:19.000Z
src/bxcommon/utils/crypto.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
8
2019-11-06T21:31:11.000Z
2021-06-02T00:46:50.000Z
src/bxcommon/utils/crypto.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
5
2019-11-14T18:08:11.000Z
2022-02-08T09:36:22.000Z
from hashlib import sha256 from nacl.secret import SecretBox from nacl.utils import random # Length of a SHA256 double hash SHA256_HASH_LEN = 32 KEY_SIZE = SecretBox.KEY_SIZE
21.321429
52
0.745394
0d966087cea0a7295db776cecd1d057649f3d673
829
py
Python
src/PyMIPS/tests/memory_test.py
shenganzhang/Py-MI-PS
2d22327c75bac1b58a4804a61e7a703ecc5ba978
[ "MIT" ]
3
2019-05-14T21:24:59.000Z
2021-08-04T01:43:22.000Z
src/PyMIPS/tests/memory_test.py
shenganzhang/Py-MI-PS
2d22327c75bac1b58a4804a61e7a703ecc5ba978
[ "MIT" ]
null
null
null
src/PyMIPS/tests/memory_test.py
shenganzhang/Py-MI-PS
2d22327c75bac1b58a4804a61e7a703ecc5ba978
[ "MIT" ]
2
2021-08-04T01:43:25.000Z
2021-11-23T06:54:17.000Z
try: from src.PyMIPS.Datastructure.memory import Memory except: from PyMIPS.Datastructure.memory import Memory import unittest
25.121212
54
0.671894
0d97e6e62284344f9f71b3d49de7c9c09fe6e5dd
4,122
py
Python
experimentum/Storage/Migrations/Schema.py
PascalKleindienst/experimentum
5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b
[ "Apache-2.0" ]
null
null
null
experimentum/Storage/Migrations/Schema.py
PascalKleindienst/experimentum
5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b
[ "Apache-2.0" ]
3
2019-04-17T08:07:12.000Z
2019-04-28T15:24:18.000Z
experimentum/Storage/Migrations/Schema.py
PascalKleindienst/experimentum
5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b
[ "Apache-2.0" ]
null
null
null
"""The :py:class:`.Schema` class provides a database agnostic way of manipulating tables. Tables ====== Creating Tables --------------- To create a new database table, the :py:meth:`~.Schema.create` method is used. The :py:meth:`~.Schema.create` method accepts a table name as its argument and returns a :py:class:`.Bl...
26.423077
89
0.586608
0d982ecf9da92c8bdff12bac020ce7bfc1ac4155
6,024
py
Python
custom_components/kostal/sensor.py
zittix/kostalpiko-sensor-homeassistant
3fd3531985cede3764992d1f380bf77608c0e79a
[ "MIT" ]
null
null
null
custom_components/kostal/sensor.py
zittix/kostalpiko-sensor-homeassistant
3fd3531985cede3764992d1f380bf77608c0e79a
[ "MIT" ]
null
null
null
custom_components/kostal/sensor.py
zittix/kostalpiko-sensor-homeassistant
3fd3531985cede3764992d1f380bf77608c0e79a
[ "MIT" ]
1
2021-09-17T09:29:22.000Z
2021-09-17T09:29:22.000Z
"""The Kostal piko integration.""" import logging import xmltodict from datetime import timedelta from homeassistant.const import ( CONF_USERNAME, CONF_PASSWORD, CONF_HOST, CONF_MONITORED_CONDITIONS, ) from homeassistant.components.sensor import SensorEntity from homeassistant.helpers...
39.116883
103
0.569555
0d98cd3509f57f05513feadf15808accb6f7add9
601
py
Python
kaskopy/items.py
aspirin1988/KASKO
924278f67a303a861e2367412bbc1dc3df59c742
[ "MIT" ]
null
null
null
kaskopy/items.py
aspirin1988/KASKO
924278f67a303a861e2367412bbc1dc3df59c742
[ "MIT" ]
null
null
null
kaskopy/items.py
aspirin1988/KASKO
924278f67a303a861e2367412bbc1dc3df59c742
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy from kaskopy.models import Car, RawData
23.115385
52
0.592346
0d991e73f8352c51439f70b45abdfecc3e0a81fe
26
py
Python
6 - Python/Introduction/2 - Raw Input.py
Terence-Guan/Python.HackerRank
165a5f0e739c7678dfac7eae95443018e2167c3d
[ "MIT" ]
88
2016-10-23T16:41:14.000Z
2019-12-30T23:51:47.000Z
HackerRank/6 - Python/Introduction/2 - Raw Input.py
natalie-o-perret/coding-challenges
9a242e0ec54488f59be82592822b31ff51af1633
[ "MIT" ]
1
2018-10-13T14:31:54.000Z
2018-10-13T14:31:54.000Z
HackerRank/6 - Python/Introduction/2 - Raw Input.py
natalie-o-perret/coding-challenges
9a242e0ec54488f59be82592822b31ff51af1633
[ "MIT" ]
82
2017-02-01T17:02:56.000Z
2020-02-01T11:45:58.000Z
line = input() print(line)
13
14
0.692308
0d9aee5955af9ee204ebd39cc82058caf26d7cbf
2,466
py
Python
GameLogServer/GameLogServer/log_reader.py
Frankity/IW4M-Admin
515443c84a574944e946d3691a4682d916fd582e
[ "MIT" ]
null
null
null
GameLogServer/GameLogServer/log_reader.py
Frankity/IW4M-Admin
515443c84a574944e946d3691a4682d916fd582e
[ "MIT" ]
null
null
null
GameLogServer/GameLogServer/log_reader.py
Frankity/IW4M-Admin
515443c84a574944e946d3691a4682d916fd582e
[ "MIT" ]
null
null
null
import re import os import time reader = LogReader()
32.447368
108
0.576642
0d9ef0b73b31da3c8aa84b2d46d763a801003401
1,121
py
Python
python/defaultdict-tutorial/main.py
shollingsworth/HackerRank
2f0e048044e643d6aa9d07c1898f3b00adf489b0
[ "Apache-2.0" ]
null
null
null
python/defaultdict-tutorial/main.py
shollingsworth/HackerRank
2f0e048044e643d6aa9d07c1898f3b00adf489b0
[ "Apache-2.0" ]
null
null
null
python/defaultdict-tutorial/main.py
shollingsworth/HackerRank
2f0e048044e643d6aa9d07c1898f3b00adf489b0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import __future__ import sys import json cnt = -1 ip = "./challenge_sample_input" op = "./challenge_sample_output" ip = "./input01.txt" op = "./output01.txt" output_arr = map(str,open(op,'r').read().split('\n')) banner() # https://www.hackerrank.com/challenges/defaultdi...
25.477273
109
0.609277
0d9efb97f4ca82cd321aeee3291d3a4197c0e6af
10,934
py
Python
EpikCord/interactions.py
Conchbot-Development/EpikCord.py
d81f4075ee9621edec05c8ab0ccbb4a6c4ec46c6
[ "MIT" ]
null
null
null
EpikCord/interactions.py
Conchbot-Development/EpikCord.py
d81f4075ee9621edec05c8ab0ccbb4a6c4ec46c6
[ "MIT" ]
null
null
null
EpikCord/interactions.py
Conchbot-Development/EpikCord.py
d81f4075ee9621edec05c8ab0ccbb4a6c4ec46c6
[ "MIT" ]
null
null
null
from .embed import Embed from .file import Attachment from .member import GuildMember, User from .slash import SlashCommandOptionChoice, AnyOption from .commands import MessageButton, MessageSelectMenu, MessageTextInput, MessageSelectMenuOption from typing import Optional, List, Union
44.628571
321
0.657856
0da232f99858da8e8ab6976dc3b106393438ba8a
3,571
py
Python
satchmo/contact/views.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
1
2016-05-09T12:21:04.000Z
2016-05-09T12:21:04.000Z
satchmo/contact/views.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
null
null
null
satchmo/contact/views.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
null
null
null
from django import http from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.decorators import login_required from django.core import urlresolvers from django.shortcuts import render_to_response from django.template import RequestContext from django.utils.translation import ugettext_lazy as _ fr...
36.814433
101
0.679362
0da2968bb359986875b9af1a418b84d7e635b431
480
py
Python
slackbuilder/blocks.py
kbeauregard/slackbuilder
866ec0ad737a2277bd043081dc08c6ebc182b2e3
[ "MIT" ]
null
null
null
slackbuilder/blocks.py
kbeauregard/slackbuilder
866ec0ad737a2277bd043081dc08c6ebc182b2e3
[ "MIT" ]
null
null
null
slackbuilder/blocks.py
kbeauregard/slackbuilder
866ec0ad737a2277bd043081dc08c6ebc182b2e3
[ "MIT" ]
1
2021-02-01T13:26:57.000Z
2021-02-01T13:26:57.000Z
DEFAULT_TEXT_TYPE = "mrkdwn"
25.263158
84
0.65625
0da30113756629b303663abfe1005ea53d21c7f3
551
py
Python
lopy_gateway/config.py
haroal/choco-lora
d72cce0bb3e090463fafb993fb1f51db2c634416
[ "MIT" ]
null
null
null
lopy_gateway/config.py
haroal/choco-lora
d72cce0bb3e090463fafb993fb1f51db2c634416
[ "MIT" ]
null
null
null
lopy_gateway/config.py
haroal/choco-lora
d72cce0bb3e090463fafb993fb1f51db2c634416
[ "MIT" ]
null
null
null
""" LoPy LoRaWAN Nano Gateway configuration options """ import machine import ubinascii WIFI_MAC = ubinascii.hexlify(machine.unique_id()).upper() # Set the Gateway ID to be the first 3 bytes of MAC address + 'FFFE' + last 3 bytes of MAC address GATEWAY_ID = '30aea4fffe4e5638' #WIFI_MAC[:6] + "FFFE" + WIFI_MAC[6:12]...
23.956522
99
0.731397
0da6aee5954b956052c8a6ffe1cd4bb993643d75
1,560
py
Python
1-python-basico (Logica de programacao)/desafio-validador-cpf/desafio-cpf.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
1-python-basico (Logica de programacao)/desafio-validador-cpf/desafio-cpf.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
1-python-basico (Logica de programacao)/desafio-validador-cpf/desafio-cpf.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
""" CPF = 079.004.419-64 ---------------------- 0 * 10 = 0 # 0 * 11 = 0 7 * 9 = 63 # 7 * 10 = 70 9 * 8 = 72 # 9 * 9 = 81 0 * 7 = 0 # 0 * 8 = 0 0 * 6 = 0 # 0 * 7 = 0 4 * 5 = 20 # 4 * 6 = 24 4 * 4 = 16 # 4 * 5 =...
21.666667
70
0.442949
0da6ec5d34b8304770452661b5f8b2646b4f55b0
1,414
py
Python
HW6/mashavskih/2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW6/mashavskih/2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW6/mashavskih/2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
import math if __name__ == "__main__" : print('Calculate square of area shape:\n 1 -> Rectangle;\n 2 -> Triangle;\n 3 -> Circle') choice= int(input('Enter the number of shape whose area you want to find: ')) calc_area(choice)
44.1875
93
0.662659
0da7e379e2b733a5f37fb8dcb2fa4d62be4fbe82
1,204
py
Python
examples/constraints.py
jbarberia/PFNET.py
a2f327d84401acc63fd4ce91c99086770ce72a6b
[ "BSD-2-Clause" ]
3
2018-03-21T11:54:38.000Z
2020-12-29T16:46:14.000Z
examples/constraints.py
jbarberia/PFNET.py
a2f327d84401acc63fd4ce91c99086770ce72a6b
[ "BSD-2-Clause" ]
23
2018-03-29T00:42:06.000Z
2021-01-05T19:15:05.000Z
examples/constraints.py
ttinoco/PFNET.py
3a6845d132ddba6053fc84b1099597d99c0ac5e2
[ "BSD-2-Clause" ]
5
2018-10-01T19:05:11.000Z
2020-05-27T06:19:11.000Z
#***************************************************# # This file is part of PFNET. # # # # Copyright (c) 2015, Tomas Tinoco De Rubira. # # # # PFNET is released under the BSD 2-clause license...
19.419355
53
0.538206
0da93efc72f90b6e00eddc17e58f0b6bc35a1911
11,343
py
Python
src/transbigdata/getbusdata.py
anitagraser/transbigdata
0eb972c78f9154c0a3f780f197ef9af406b2bb71
[ "BSD-3-Clause" ]
1
2022-03-06T00:15:19.000Z
2022-03-06T00:15:19.000Z
src/transbigdata/getbusdata.py
anitagraser/transbigdata
0eb972c78f9154c0a3f780f197ef9af406b2bb71
[ "BSD-3-Clause" ]
null
null
null
src/transbigdata/getbusdata.py
anitagraser/transbigdata
0eb972c78f9154c0a3f780f197ef9af406b2bb71
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import numpy as np import geopandas as gpd from shapely.geometry import Polygon,LineString import urllib.request import json from .CoordinatesConverter import gcj02towgs84,bd09towgs84,bd09mctobd09 from urllib import parse def getadmin(keyword,ak,subdistricts = False): ''' Input the keyword ...
35.782334
179
0.587234
0da9e74b8a89d0e0f298b79e792dfb00d17cb34f
83
py
Python
user/apps.py
salimking/movepass
e03fa519f41974f25a70d23179722654b292ef11
[ "MIT" ]
null
null
null
user/apps.py
salimking/movepass
e03fa519f41974f25a70d23179722654b292ef11
[ "MIT" ]
null
null
null
user/apps.py
salimking/movepass
e03fa519f41974f25a70d23179722654b292ef11
[ "MIT" ]
null
null
null
from django.apps import AppConfig
13.833333
33
0.73494
0dac47ce9c74512652d2d18d61755c2ace5c01fc
819
py
Python
banner4.py
KingNasirul/BHBVirus
219c28ace488e9e47d94f82911c86a1d5974f941
[ "Unlicense" ]
null
null
null
banner4.py
KingNasirul/BHBVirus
219c28ace488e9e47d94f82911c86a1d5974f941
[ "Unlicense" ]
null
null
null
banner4.py
KingNasirul/BHBVirus
219c28ace488e9e47d94f82911c86a1d5974f941
[ "Unlicense" ]
null
null
null
import time import sys # Set color R = '\033[31m' # Red N = '\033[1;37m' # White G = '\033[32m' # Green O = '\033[0;33m' # Orange B = '\033[1;34m' #Blue delay_print delay_print (""+R+" db db d888888b d8888b. db db .d8888. \n") delay_print (""+R+" 88 88 `88' 88 `8D 88 88 88' YP \n") delay_print (""+R+...
32.76
82
0.467643
0dadea50da63c33394e8442bed79c49670d3fd33
1,864
py
Python
flod_facilities_backend/app.py
Trondheim-kommune/Bookingbasen
58235a5a1fd6ad291cb237e6ec9a67bfe8c463c6
[ "BSD-2-Clause-FreeBSD" ]
1
2017-10-17T12:15:28.000Z
2017-10-17T12:15:28.000Z
flod_facilities_backend/app.py
Trondheim-kommune/Bookingbasen
58235a5a1fd6ad291cb237e6ec9a67bfe8c463c6
[ "BSD-2-Clause-FreeBSD" ]
6
2021-03-22T17:15:52.000Z
2022-01-13T00:39:58.000Z
flod_facilities_backend/app.py
Trondheim-kommune/Bookingbasen
58235a5a1fd6ad291cb237e6ec9a67bfe8c463c6
[ "BSD-2-Clause-FreeBSD" ]
1
2019-09-09T13:35:03.000Z
2019-09-09T13:35:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from logging import StreamHandler, INFO from flask import Flask from flask.ext.mail import Message, Mail from api import create_api from database import init_db API_VERSION = "v1" if __name__ == "__main__": port = int(os.environ.get('PORT', 5000)) ap...
31.066667
75
0.647532
0dae67493e4ce5dba398f2d0ee4a34110cbc91fc
1,463
py
Python
aioneo4j4/client.py
zhangmoon/aioneo4j4
94b4544d2764eba5eea740959f194e289a581fd2
[ "MIT" ]
null
null
null
aioneo4j4/client.py
zhangmoon/aioneo4j4
94b4544d2764eba5eea740959f194e289a581fd2
[ "MIT" ]
null
null
null
aioneo4j4/client.py
zhangmoon/aioneo4j4
94b4544d2764eba5eea740959f194e289a581fd2
[ "MIT" ]
null
null
null
import asyncio import collections from yarl import URL from .transport import Transport
20.041096
55
0.500342
0dae8fa388ad674d62363a2f970444080cf8a34c
125
py
Python
a.5.4.py
AmanMishra148/python-repo
5b07fe19f2058fc2c909b96ae173f4346ac8d3da
[ "bzip2-1.0.6" ]
null
null
null
a.5.4.py
AmanMishra148/python-repo
5b07fe19f2058fc2c909b96ae173f4346ac8d3da
[ "bzip2-1.0.6" ]
1
2021-10-18T09:59:45.000Z
2021-10-18T09:59:45.000Z
a.5.4.py
AmanMishra148/python-repo
5b07fe19f2058fc2c909b96ae173f4346ac8d3da
[ "bzip2-1.0.6" ]
4
2021-10-18T09:40:54.000Z
2021-10-19T14:14:28.000Z
#Script to calc. area of circle. print("enter the radius") r= float(input()) area= 3.14*r**2 print("area of circle is",area)
20.833333
32
0.688
0db1ad1545f9291e0a6a356a3b76f6cf63cf27eb
2,132
py
Python
examples/jet_substructure/syn.py
juliovicenzi/logicnets
ce4ca89e3b11702bade591c320177f17b7d8d187
[ "Apache-2.0" ]
null
null
null
examples/jet_substructure/syn.py
juliovicenzi/logicnets
ce4ca89e3b11702bade591c320177f17b7d8d187
[ "Apache-2.0" ]
null
null
null
examples/jet_substructure/syn.py
juliovicenzi/logicnets
ce4ca89e3b11702bade591c320177f17b7d8d187
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2021 Xilinx, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
39.481481
130
0.720919
0db4cdbd4df856ae4ab6fd19cf45e6fa8d7272ae
348
py
Python
Test.py
ashmoreinc/IP-Scanner
55bbf45b43c4f8dd4d15066c0bebf2dbf8ed689e
[ "MIT" ]
4
2018-11-08T15:37:18.000Z
2022-03-18T01:59:20.000Z
Test.py
ashmoreinc/IP-Scanner
55bbf45b43c4f8dd4d15066c0bebf2dbf8ed689e
[ "MIT" ]
null
null
null
Test.py
ashmoreinc/IP-Scanner
55bbf45b43c4f8dd4d15066c0bebf2dbf8ed689e
[ "MIT" ]
1
2020-12-11T13:35:43.000Z
2020-12-11T13:35:43.000Z
from Scanner import * from threading import Thread Scanner = Scan_Handler(verbose=False, verbosity="high", threads=50, ports=[80, 443]) Scanner.Start_Scanner("192.168.0.1", "192.168.0.5") bg = Thread(target=Background) #bg.daemon = True bg.start()
26.769231
85
0.704023
0db528e74438080829d841b6eb4aaef15ebfc109
325
py
Python
tests/views/test_ping.py
Eldies/image_storage
6bdf55b426813da2e45407418a09cc585b245a22
[ "MIT" ]
null
null
null
tests/views/test_ping.py
Eldies/image_storage
6bdf55b426813da2e45407418a09cc585b245a22
[ "MIT" ]
null
null
null
tests/views/test_ping.py
Eldies/image_storage
6bdf55b426813da2e45407418a09cc585b245a22
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from app import app
21.666667
54
0.621538
0db65eebf31a3d9c1ea003346b7e0a6a218692e0
527
py
Python
DailyAssingments/Week1/Day2Assignments2.py
smooth-dasilva/Smoothstack-Workload
165ac6df72c7765a594fa472131def1ab2e44c78
[ "MIT" ]
null
null
null
DailyAssingments/Week1/Day2Assignments2.py
smooth-dasilva/Smoothstack-Workload
165ac6df72c7765a594fa472131def1ab2e44c78
[ "MIT" ]
null
null
null
DailyAssingments/Week1/Day2Assignments2.py
smooth-dasilva/Smoothstack-Workload
165ac6df72c7765a594fa472131def1ab2e44c78
[ "MIT" ]
null
null
null
#doc4 #1. print([1, 'Hello', 1.0]) #2 print([1, 1, [1,2]][2][1]) #3. out: 'b', 'c' print(['a','b', 'c'][1:]) #4. weekDict= {'Sunday':0,'Monday':1,'Tuesday':2,'Wednesday':3,'Thursday':4,'Friday':5,'Saturday':6, } #5. out: 2 if you replace D[k1][1] with D['k1][1] D={'k1':[1,2,3]} print(D['k1'][1]) #6. tup = ( ...
13.175
98
0.489564
0db66f59bd69f7523d8edb86aebc42ecb9136011
4,609
py
Python
10/14/solve.py
juancroldan/tuenti-challenge
4b0b233f457366dd78e80c011ade138cd162e297
[ "Unlicense" ]
null
null
null
10/14/solve.py
juancroldan/tuenti-challenge
4b0b233f457366dd78e80c011ade138cd162e297
[ "Unlicense" ]
null
null
null
10/14/solve.py
juancroldan/tuenti-challenge
4b0b233f457366dd78e80c011ade138cd162e297
[ "Unlicense" ]
null
null
null
from threading import Thread from time import sleep from socket import socket, AF_INET, SOCK_STREAM from re import compile HOST = ('52.49.91.111', 2092) MAX_BUFFER = 2**15 MSGS = compile(r'^ROUND (\d+): (\d+) -> (\w+) \{(.+?)\}( no_proposal)?( \(ROUND FINISHED\))?$').search LEARN_ARGS = compile(r'servers: \[(.+?)\], s...
35.183206
128
0.605988
0db68207e367ebc14875e48b897fec665fce2710
7,600
py
Python
tests/test_packages/test_skills/test_registration_aw1/test_behaviours.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
tests/test_packages/test_skills/test_registration_aw1/test_behaviours.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
tests/test_packages/test_skills/test_registration_aw1/test_behaviours.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
35.185185
132
0.656579
0db95169c1f29d45bb1b316d97dd3b1f2a0218c5
5,971
py
Python
anopool/pool.py
willtrnr/anopool
0e3f882ae216e1897bdff1cbb311f3c2960908db
[ "MIT" ]
null
null
null
anopool/pool.py
willtrnr/anopool
0e3f882ae216e1897bdff1cbb311f3c2960908db
[ "MIT" ]
null
null
null
anopool/pool.py
willtrnr/anopool
0e3f882ae216e1897bdff1cbb311f3c2960908db
[ "MIT" ]
null
null
null
"""Generic object pool""" from __future__ import annotations __all__ = [ "Manager", "Pool", ] import contextlib import dataclasses import logging import queue import threading from abc import ABCMeta from typing import Generator, Generic, Optional, TypeVar from ._common import DEFAULT_SIZE from .exceptions ...
28.032864
86
0.567577
0dbad2c362c6766c5ba6dfdc508d36777761cdeb
1,090
py
Python
deepab/util/get_bins.py
antonkulaga/DeepAb
51a32d06d19815705bdbfb35a8a9518c17ec313a
[ "RSA-MD" ]
67
2021-07-02T08:31:10.000Z
2022-03-30T01:25:11.000Z
deepab/util/get_bins.py
antonkulaga/DeepAb
51a32d06d19815705bdbfb35a8a9518c17ec313a
[ "RSA-MD" ]
9
2021-08-18T10:32:27.000Z
2022-03-30T06:40:05.000Z
deepab/util/get_bins.py
antonkulaga/DeepAb
51a32d06d19815705bdbfb35a8a9518c17ec313a
[ "RSA-MD" ]
16
2021-07-17T08:33:30.000Z
2022-03-29T07:36:34.000Z
import math
24.772727
76
0.617431
0dbc3d65f08a855cd3326a6dfe34ef3f6203d093
8,155
py
Python
tests/test_manifest.py
markfinger/python-webpack
41ed0a3afac0dc96cb22093bd2da1dcbd31cfc42
[ "MIT" ]
66
2015-05-06T17:20:20.000Z
2021-07-08T02:56:21.000Z
tests/test_manifest.py
markfinger/python-webpack
41ed0a3afac0dc96cb22093bd2da1dcbd31cfc42
[ "MIT" ]
26
2015-05-03T11:38:24.000Z
2016-01-01T22:32:45.000Z
tests/test_manifest.py
markfinger/python-webpack
41ed0a3afac0dc96cb22093bd2da1dcbd31cfc42
[ "MIT" ]
15
2015-05-11T19:02:15.000Z
2020-11-29T20:23:17.000Z
import unittest import os import json import mock import hashlib from webpack.conf import Conf from webpack.manifest import generate_manifest, generate_key, write_manifest, read_manifest, populate_manifest_file from webpack.compiler import webpack from .settings import ConfigFiles, OUTPUT_ROOT, WEBPACK from .utils impo...
33.016194
115
0.614102
0dbe7e52a6fcd5026bcaa13575dd6d512f98dd47
1,368
py
Python
commonware/response/middleware.py
Osmose/commonware
e2e02ad47b553362929bfb741105f10c56a1bdc8
[ "BSD-3-Clause" ]
null
null
null
commonware/response/middleware.py
Osmose/commonware
e2e02ad47b553362929bfb741105f10c56a1bdc8
[ "BSD-3-Clause" ]
null
null
null
commonware/response/middleware.py
Osmose/commonware
e2e02ad47b553362929bfb741105f10c56a1bdc8
[ "BSD-3-Clause" ]
null
null
null
import inspect import time from django.conf import settings try: from statsd import statsd except ImportError: statsd = _statsd()
24.872727
73
0.625731
0dbee3b7f12c94c66b785df1beab2df77b47d739
22,992
py
Python
tests/test_btc_rawtx_zcash.py
VDamas/app-cryptoescudo
9e53ccdd836f7b5c787927c74eba3b0ac5d079b6
[ "Apache-2.0" ]
null
null
null
tests/test_btc_rawtx_zcash.py
VDamas/app-cryptoescudo
9e53ccdd836f7b5c787927c74eba3b0ac5d079b6
[ "Apache-2.0" ]
null
null
null
tests/test_btc_rawtx_zcash.py
VDamas/app-cryptoescudo
9e53ccdd836f7b5c787927c74eba3b0ac5d079b6
[ "Apache-2.0" ]
1
2022-02-08T22:42:41.000Z
2022-02-08T22:42:41.000Z
import pytest from dataclasses import dataclass, field from functools import reduce from typing import List, Optional from helpers.basetest import BaseTestBtc, LedgerjsApdu, TxData, CONSENSUS_BRANCH_ID from helpers.deviceappbtc import DeviceAppBtc, CommException # Test data below is from a Zcash test log from Live te...
42.10989
155
0.62674
0dbf20f53fd144327ad5c51a40da0f81c05f9283
1,776
py
Python
test.py
sguzman/duo-service-ready
c6dd88ccddfa2db13e1bed9787f77ca804bf48d9
[ "Unlicense" ]
null
null
null
test.py
sguzman/duo-service-ready
c6dd88ccddfa2db13e1bed9787f77ca804bf48d9
[ "Unlicense" ]
null
null
null
test.py
sguzman/duo-service-ready
c6dd88ccddfa2db13e1bed9787f77ca804bf48d9
[ "Unlicense" ]
null
null
null
import atexit import grpc import logging import os import server_pb2 import server_pb2_grpc port: str = None if __name__ == '__main__': main()
21.39759
75
0.644144
0dbf61d6373ec9f78a1ff9c0baa721ae32809835
394
py
Python
tests/dummy_project/spiders/dummy_spider.py
zack-wilson/scrapy-statsd
cfa2f40e243da30c7b1078cda16730f95bb79fda
[ "BSD-3-Clause" ]
null
null
null
tests/dummy_project/spiders/dummy_spider.py
zack-wilson/scrapy-statsd
cfa2f40e243da30c7b1078cda16730f95bb79fda
[ "BSD-3-Clause" ]
null
null
null
tests/dummy_project/spiders/dummy_spider.py
zack-wilson/scrapy-statsd
cfa2f40e243da30c7b1078cda16730f95bb79fda
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime as dt import uuid import scrapy
20.736842
43
0.573604
0dc14be135ed1c10113f4ab5fbd2759629e41d4e
192
py
Python
library_management/library_management/doctype/customer_account/customer_account.py
jcgurango/library_management
f9859499eb12414889277fbdadfcd60290c320dd
[ "MIT" ]
null
null
null
library_management/library_management/doctype/customer_account/customer_account.py
jcgurango/library_management
f9859499eb12414889277fbdadfcd60290c320dd
[ "MIT" ]
null
null
null
library_management/library_management/doctype/customer_account/customer_account.py
jcgurango/library_management
f9859499eb12414889277fbdadfcd60290c320dd
[ "MIT" ]
null
null
null
# Copyright (c) 2021, JC and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document
21.333333
49
0.791667
0dc28d03cd9039a35f49c8a676fc07ba9b6b1471
4,839
py
Python
neural_compressor/experimental/common/optimizer.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
100
2020-12-01T02:40:12.000Z
2021-09-09T08:14:22.000Z
neural_compressor/experimental/common/optimizer.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
25
2021-01-05T00:16:17.000Z
2021-09-10T03:24:01.000Z
neural_compressor/experimental/common/optimizer.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
25
2020-12-01T19:07:08.000Z
2021-08-30T14:20:07.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2021 Intel Corporation # # 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 # # Unl...
35.844444
98
0.656127
0dc50a62229b8147dc2f55f4c1c6f9f415fa5d6c
20,561
py
Python
curation_validator.py
FlashpointProject/Curation-Validation-Bot
826bd86a4093c4a7fde16d9e511364f203c2266b
[ "MIT" ]
5
2021-02-15T19:05:52.000Z
2021-05-12T03:12:05.000Z
curation_validator.py
FlashpointProject/Curation-Validation-Bot
826bd86a4093c4a7fde16d9e511364f203c2266b
[ "MIT" ]
12
2021-02-13T02:12:04.000Z
2022-01-29T23:46:03.000Z
curation_validator.py
FlashpointProject/Curation-Validation-Bot
826bd86a4093c4a7fde16d9e511364f203c2266b
[ "MIT" ]
4
2021-02-11T20:49:05.000Z
2021-03-13T12:25:16.000Z
import base64 import shutil import json import re from enum import Enum, auto from typing import Optional import py7zr from cachetools import TTLCache, cached from ruamel.yaml import YAML, YAMLError from logger import getLogger import os import tempfile import zipfile import requests from bs4 import BeautifulSoup l ...
46.100897
139
0.581684
0dc54bb903b475f38621941bf098cb9e92be0daf
548
py
Python
authentication/urls.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
authentication/urls.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
authentication/urls.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from django.urls import path from .views import login_view, register_user, reset_password from django.contrib.auth.views import LogoutView from .views import * urlpatterns = [ path('login/', login_view, name="login"), path(...
28.842105
75
0.695255
0dc66aaede643e68b9fbae98bc7c2375fba4fa0b
2,835
py
Python
examples/get_tiles.py
cytomine/Cytomine-python-client
afd46c1a6bf88914610e961531979597f8efaf22
[ "Apache-2.0" ]
23
2015-04-28T07:58:25.000Z
2021-05-21T09:37:29.000Z
examples/get_tiles.py
cytomine/Cytomine-python-client
afd46c1a6bf88914610e961531979597f8efaf22
[ "Apache-2.0" ]
27
2017-01-12T15:11:39.000Z
2022-03-29T07:06:46.000Z
examples/get_tiles.py
cytomine/Cytomine-python-client
afd46c1a6bf88914610e961531979597f8efaf22
[ "Apache-2.0" ]
14
2016-09-02T19:51:54.000Z
2022-02-02T14:35:19.000Z
# -*- coding: utf-8 -*- # * Copyright (c) 2009-2018. Authors: see NOTICE file. # * # * 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...
38.310811
110
0.701587
0dc682785b15f15c903947600de17c5139a1bca3
490
py
Python
info/modules/admin/__init__.py
gxz987/Dynamic_movie
ceb266dcb123cc2e51bda29a1da436e58b220be4
[ "MIT" ]
null
null
null
info/modules/admin/__init__.py
gxz987/Dynamic_movie
ceb266dcb123cc2e51bda29a1da436e58b220be4
[ "MIT" ]
6
2021-03-19T01:24:17.000Z
2022-03-11T23:50:23.000Z
info/modules/admin/__init__.py
bzg287288182/my-News
01e581ec53e44a9ed7ab8be1bcd9ddf84795acff
[ "MIT" ]
null
null
null
from flask import Blueprint admin_blu = Blueprint("admin", __name__, url_prefix="/admin") from .views import *
22.272727
74
0.691837
0dc75b65a9507820b7a1135f0816c7e8f573fa2d
654
py
Python
mitmproxy/contentviews/auto.py
KarlParkinson/mitmproxy
fd5caf40c75ca73c4b767170497abf6a5bf016a0
[ "MIT" ]
24,939
2015-01-01T17:13:21.000Z
2022-03-31T17:50:04.000Z
mitmproxy/contentviews/auto.py
PeterDaveHello/mitmproxy
4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb
[ "MIT" ]
3,655
2015-01-02T12:31:43.000Z
2022-03-31T20:24:57.000Z
mitmproxy/contentviews/auto.py
PeterDaveHello/mitmproxy
4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb
[ "MIT" ]
3,712
2015-01-06T06:47:06.000Z
2022-03-31T10:33:27.000Z
from mitmproxy import contentviews from . import base
31.142857
96
0.616208
0dc892c0ef85acbf71fdb47d9850dae8da0e6d7a
10,355
py
Python
code/services/synergy_services.py
EdsonECM17/DS_Proyecto_02_Synergy_Logistics
a6c347f99e69b926d337db82653dd16850668f4b
[ "MIT" ]
null
null
null
code/services/synergy_services.py
EdsonECM17/DS_Proyecto_02_Synergy_Logistics
a6c347f99e69b926d337db82653dd16850668f4b
[ "MIT" ]
null
null
null
code/services/synergy_services.py
EdsonECM17/DS_Proyecto_02_Synergy_Logistics
a6c347f99e69b926d337db82653dd16850668f4b
[ "MIT" ]
null
null
null
from typing import List from processing.sl_filters import SynergyLogisticsFilters
45.416667
156
0.630324
0dc9078dabe0f46493d9055058389898b1c4669b
467
py
Python
src/bspline-insert.py
kaykayehnn/geometric_design
206977275abb2bc195665175b504dca13e4792bd
[ "MIT" ]
2
2022-03-17T13:35:13.000Z
2022-03-27T07:45:12.000Z
src/bspline-insert.py
kaykayehnn/geometric_design
206977275abb2bc195665175b504dca13e4792bd
[ "MIT" ]
null
null
null
src/bspline-insert.py
kaykayehnn/geometric_design
206977275abb2bc195665175b504dca13e4792bd
[ "MIT" ]
null
null
null
from sympy import init_printing, Rational from classes.BSpline import BSpline init_printing() # INPUT DATA HERE knots = [ 0, 0, 0, Rational(2, 5), Rational(1, 2), Rational(3, 5), 1, 1, 1, ] # fmt: off control_points = [ [2,2], [0,2], [0,0], [-2,0], [0,-2], [2,-2], ] # f...
12.972222
48
0.5803
0dca40621184466cd9ce1c9762d5d83692b16fb4
2,765
py
Python
app/recipe/tests/test_tag_apis.py
NhatHox23/nhat-recipe-backend
9a6bb84f43ceea94671b9a5a6318f7df648d597f
[ "MIT" ]
null
null
null
app/recipe/tests/test_tag_apis.py
NhatHox23/nhat-recipe-backend
9a6bb84f43ceea94671b9a5a6318f7df648d597f
[ "MIT" ]
null
null
null
app/recipe/tests/test_tag_apis.py
NhatHox23/nhat-recipe-backend
9a6bb84f43ceea94671b9a5a6318f7df648d597f
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from recipe.models import Tag from recipe.serializers import TagSerializer from core.tests.utils import sample_tag, sample_user ...
35.448718
78
0.679928
0dcacc77536f475e69d67672d4386a6d8109dc9e
1,029
py
Python
tests/test_toolkit.py
eng-tools/sfsidb
5260d64e5ab78db7bab209ac4b34617ebafe9762
[ "MIT" ]
1
2020-07-03T09:33:49.000Z
2020-07-03T09:33:49.000Z
tests/test_toolkit.py
eng-tools/sfsidb
5260d64e5ab78db7bab209ac4b34617ebafe9762
[ "MIT" ]
1
2020-07-03T09:40:16.000Z
2020-07-06T01:23:40.000Z
tests/test_toolkit.py
eng-tools/sfsidb
5260d64e5ab78db7bab209ac4b34617ebafe9762
[ "MIT" ]
null
null
null
from sfsidb import load as sload from sfsidb import toolkit from sfsidb import checking_tools as ct from sfsidb import sensor_file_reader as sfr from tests.conftest import TEST_DATA_DIR if __name__ == '__main__': test_old_style_sensor_code_file()
30.264706
68
0.730807
0dcbb2c8e1a6f536fd7f94e8770c33962e2f268b
1,699
py
Python
nhoods/setup.py
MSLADevServGIS/NhoodProfiles
aa35d2a4d4be177dc8df79a34915eefb31a20634
[ "MIT" ]
null
null
null
nhoods/setup.py
MSLADevServGIS/NhoodProfiles
aa35d2a4d4be177dc8df79a34915eefb31a20634
[ "MIT" ]
null
null
null
nhoods/setup.py
MSLADevServGIS/NhoodProfiles
aa35d2a4d4be177dc8df79a34915eefb31a20634
[ "MIT" ]
null
null
null
# Setup procedures -- WIP import os import re import arcpy arcpy.env.workspace = "in_memory" # TODO: out_gdb = "//cityfiles/DEVServices/WallyG/projects/NhoodProfiles/nhoods/data/NhoodAmenities.gdb/MtStatePlane" # DATA PROCESSING # Nhood_buffers: arcpy.Buffer_analysis("Nhoods", "nhood_buffers", ...
32.673077
246
0.723955
0dcc982e8e10f4b504acced8db3b8e7638f722fe
2,085
py
Python
Gathered CTF writeups/ptr-yudai-writeups/2019/Facebook_CTF_2019/babylist/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/ptr-yudai-writeups/2019/Facebook_CTF_2019/babylist/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/ptr-yudai-writeups/2019/Facebook_CTF_2019/babylist/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
from ptrlib import * import re import time libc = ELF("./libc-2.27.so") sock = Process("./babylist")#Socket("localhost", 4001) #sock = Socket("challenges3.fbctf.com", 1343) main_arena = 0x3ebc40 + 0x60 one_gadget = 0x10a38c create("0") # 0 for i in range(0x50 // 4): add(0, 0x1111) dup(0, "1") # 1 for i in range(0...
21.27551
55
0.607674
0dce3b2e494bf63f350d54551978be23a2419c37
43,142
py
Python
container_service_extension/lib/pksclient/api/profile_api.py
arunmk/container-service-extension
5e67df64fd5ed7fbb664d449356cb983cecbca12
[ "BSD-3-Clause" ]
81
2017-07-05T19:42:41.000Z
2022-03-09T22:04:05.000Z
container_service_extension/lib/pksclient/api/profile_api.py
arunmk/container-service-extension
5e67df64fd5ed7fbb664d449356cb983cecbca12
[ "BSD-3-Clause" ]
670
2017-07-05T16:48:02.000Z
2022-03-31T13:40:53.000Z
container_service_extension/lib/pksclient/api/profile_api.py
arunmk/container-service-extension
5e67df64fd5ed7fbb664d449356cb983cecbca12
[ "BSD-3-Clause" ]
64
2017-07-05T16:32:55.000Z
2022-03-23T09:36:03.000Z
# coding: utf-8 """ PKS PKS API # noqa: E501 OpenAPI spec version: 1.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import # python 2 and python 3 compatibility library import six from container_service_extension.lib.pksclient.api_cl...
37.744532
129
0.606138
0dcf49a2d7b38e623e09fc3e02b34c991f5df237
2,334
py
Python
tests/test_utils.py
tesera/shclassify
150a8ccfe0bd02a1510fa3bf9436b717ec427aff
[ "MIT" ]
null
null
null
tests/test_utils.py
tesera/shclassify
150a8ccfe0bd02a1510fa3bf9436b717ec427aff
[ "MIT" ]
null
null
null
tests/test_utils.py
tesera/shclassify
150a8ccfe0bd02a1510fa3bf9436b717ec427aff
[ "MIT" ]
null
null
null
import os import pytest import pandas as pd import numpy as np from shclassify.utils import (inverse_logit, choose_from_multinomial_probs, choose_from_binary_probs)
28.120482
79
0.657241
0dd00d6b1371d82e5dba287fb1ab84b4b728cdc5
2,111
py
Python
dbdaora/hash/query.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
21
2019-10-14T14:33:33.000Z
2022-02-11T04:43:07.000Z
dbdaora/hash/query.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
null
null
null
dbdaora/hash/query.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
1
2019-09-29T23:51:44.000Z
2019-09-29T23:51:44.000Z
import dataclasses from typing import Any, ClassVar, List, Optional, Sequence, Tuple, Type, Union from dbdaora.keys import FallbackKey from dbdaora.query import BaseQuery, Query, QueryMany from .repositories import HashData, HashEntity, HashRepository def make( *args: Any, **kwargs: Any ) -> BaseQuery[HashEnt...
30.157143
78
0.639981
0dd0d2e19f18724ff736d3e77f451b5b939ad9d4
20,104
py
Python
pattoo_agents/snmp/snmp.py
palisadoes/pattoo-agents
d73453ceac1747573dfbcad4da724325e86b208d
[ "Apache-2.0" ]
null
null
null
pattoo_agents/snmp/snmp.py
palisadoes/pattoo-agents
d73453ceac1747573dfbcad4da724325e86b208d
[ "Apache-2.0" ]
null
null
null
pattoo_agents/snmp/snmp.py
palisadoes/pattoo-agents
d73453ceac1747573dfbcad4da724325e86b208d
[ "Apache-2.0" ]
null
null
null
"""Module used polling SNMP enabled targets.""" import sys # PIP3 imports import easysnmp from easysnmp import exceptions # Import Pattoo libraries from pattoo_shared import log from pattoo_shared.variables import DataPoint from pattoo_shared.constants import ( DATA_INT, DATA_COUNT64, DATA_COUNT, DATA_STRING, DA...
31.314642
78
0.569389
0dd15e9fbd8b5095490c20bbe408b720a1df4284
76
py
Python
nicos_mlz/resi/setups/resi.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/resi/setups/resi.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/resi/setups/resi.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Resi instrument setup' group = 'basic' includes = ['base']
12.666667
37
0.684211
0dd1930770aea04bae379563241478aca2d4c7fe
643
py
Python
flexget/plugins/metainfo/torrent_size.py
Crupuk/Flexget
0ede246fd4b90e3cd75120ba13746187e11968d2
[ "MIT" ]
null
null
null
flexget/plugins/metainfo/torrent_size.py
Crupuk/Flexget
0ede246fd4b90e3cd75120ba13746187e11968d2
[ "MIT" ]
null
null
null
flexget/plugins/metainfo/torrent_size.py
Crupuk/Flexget
0ede246fd4b90e3cd75120ba13746187e11968d2
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import import logging from flexget.plugin import priority, register_plugin log = logging.getLogger('torrent_size') register_plugin(TorrentSize, 'torrent_size', builtin=True)
27.956522
68
0.656299
0dd2555afdd3a6cef51e80f367899168ecaad20e
724
py
Python
day23.py
ednl/aoc2015
0cce9ca34c4218f063b1c6eed92477b47558cf5b
[ "MIT" ]
null
null
null
day23.py
ednl/aoc2015
0cce9ca34c4218f063b1c6eed92477b47558cf5b
[ "MIT" ]
null
null
null
day23.py
ednl/aoc2015
0cce9ca34c4218f063b1c6eed92477b47558cf5b
[ "MIT" ]
null
null
null
import re cmd = re.compile(r'^(\w+) (\w)?(?:, )?((?:\+|-)\d+)?$') with open('input23.txt') as f: # Subtract 1 from jump (offset) to enable ip++ for every instruction mem = [(i, r, j if j is None else int(j) - 1) for s in f for i, r, j in [cmd.match(s.strip()).groups()]] print(run(0), run(1))
28.96
108
0.426796