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
7777e8520a12559d29d6241cbcb36e71e0940302
7,056
py
Python
simple_estimator.py
carlos9310/models
d5038337a42544b95d6bf97e40099ef140399b89
[ "Apache-2.0" ]
2
2020-09-14T02:15:17.000Z
2021-09-28T07:08:32.000Z
simple_estimator.py
carlos9310/models
d5038337a42544b95d6bf97e40099ef140399b89
[ "Apache-2.0" ]
null
null
null
simple_estimator.py
carlos9310/models
d5038337a42544b95d6bf97e40099ef140399b89
[ "Apache-2.0" ]
1
2022-01-04T06:55:54.000Z
2022-01-04T06:55:54.000Z
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import os import tensorflow as tf tf.logging.set_verbosity(tf.logging.INFO) ROOT_PATH = '/tmp/census_data' TRAIN_PATH = '/tmp/census_data/adult.data' EVAL_PATH =...
40.090909
118
0.639172
7777fe549507b7986267faec6ed4cc83a2313604
288
py
Python
Python/Mundo1/TratandoDados/ex008.py
ysabelah/Estudos
aa587f1981324640c93978b3b80fdf3abde10e80
[ "MIT" ]
null
null
null
Python/Mundo1/TratandoDados/ex008.py
ysabelah/Estudos
aa587f1981324640c93978b3b80fdf3abde10e80
[ "MIT" ]
null
null
null
Python/Mundo1/TratandoDados/ex008.py
ysabelah/Estudos
aa587f1981324640c93978b3b80fdf3abde10e80
[ "MIT" ]
null
null
null
#Escreva um programa que leia um valor em metros e o exiba convertido em centimetros e milimetros numero = float(input('Digite o nmero: ')) print('O valor de {} em centmetros : {}'.format(numero, numero * 100)) print('O valor de {} em milmetros : {}'.format(numero, numero * 1000))
48
97
0.711806
7778e854b1769ba9428d3a4d3170d1002d65dedd
2,385
py
Python
examples/run_multi_functions_parallel.py
rishavpramanik/mealpy
d4a4d5810f15837764e4ee61517350fef3dc92b3
[ "MIT" ]
null
null
null
examples/run_multi_functions_parallel.py
rishavpramanik/mealpy
d4a4d5810f15837764e4ee61517350fef3dc92b3
[ "MIT" ]
null
null
null
examples/run_multi_functions_parallel.py
rishavpramanik/mealpy
d4a4d5810f15837764e4ee61517350fef3dc92b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Created by "Thieu" at 10:26, 02/03/2022 ----------% # Email: nguyenthieu2102@gmail.com % # Github: https://github.com/thieu1995 % ...
36.692308
137
0.6
77798b6704167fd268a08dbc9c3f502cb2811a76
9,876
py
Python
table_sorter.py
manawesome326/table-sorter
53c6b0cdcf6b70216e1bf0a69bdd6b193cf64604
[ "Unlicense" ]
null
null
null
table_sorter.py
manawesome326/table-sorter
53c6b0cdcf6b70216e1bf0a69bdd6b193cf64604
[ "Unlicense" ]
null
null
null
table_sorter.py
manawesome326/table-sorter
53c6b0cdcf6b70216e1bf0a69bdd6b193cf64604
[ "Unlicense" ]
null
null
null
import random import math import time import copy allstudents = [] ################################################################ #ignore anything above this line #example students #add new ones by pasting more below here with this exact syntax #make sure to get the names right! #the first name is the person's na...
37.984615
163
0.714662
777b5e5839004ea6dfd6b25eec2bff8b3f5e00ac
1,045
py
Python
unit_test/test_obj_avoidance.py
riven314/capstone_dash_interface
5eab25f4c15ad09aa889554820231175b0a3ed28
[ "CC0-1.0" ]
1
2019-12-10T14:59:12.000Z
2019-12-10T14:59:12.000Z
unit_test/test_obj_avoidance.py
riven314/capstone_dash_interface
5eab25f4c15ad09aa889554820231175b0a3ed28
[ "CC0-1.0" ]
null
null
null
unit_test/test_obj_avoidance.py
riven314/capstone_dash_interface
5eab25f4c15ad09aa889554820231175b0a3ed28
[ "CC0-1.0" ]
1
2020-01-01T12:24:51.000Z
2020-01-01T12:24:51.000Z
import os import sys import time PATH = os.path.join(os.getcwd(), '..') sys.path.append(PATH) import cv2 import numpy as np import matplotlib.pyplot as plt from obj_avoidance import run_avoidance # for the reference label_dict = {1: 'wall', 2: 'floor', 3: 'plant', 4: 'ceiling', 5: 'furniture', 6: 'person'...
30.735294
117
0.683254
777c099bcd6dbabf7bd899cf4da7520acddaee95
1,060
py
Python
tests/core/test_security.py
congdh/fastapi-async-realworld
608dc6f090f8a02e0a880cef33dca90df78cbfb5
[ "MIT" ]
null
null
null
tests/core/test_security.py
congdh/fastapi-async-realworld
608dc6f090f8a02e0a880cef33dca90df78cbfb5
[ "MIT" ]
null
null
null
tests/core/test_security.py
congdh/fastapi-async-realworld
608dc6f090f8a02e0a880cef33dca90df78cbfb5
[ "MIT" ]
3
2020-10-04T09:37:21.000Z
2022-02-13T08:57:35.000Z
from datetime import timedelta import pytest from fastapi import HTTPException from pydantic import SecretStr from app.core.security import ( create_access_token, get_password_hash, get_user_id_from_token, verify_password, ) pytestmark = pytest.mark.asyncio
23.555556
66
0.737736
777c87854da8e0921a6611366e0397f0b9cee628
5,199
py
Python
rmexp/schedule.py
junjuew/scalable-edge-native-applications
1ace9ce71bef267880049633160e7cb74c57bddb
[ "Apache-2.0" ]
1
2021-05-12T12:49:15.000Z
2021-05-12T12:49:15.000Z
rmexp/schedule.py
junjuew/scalable-edge-native-applications
1ace9ce71bef267880049633160e7cb74c57bddb
[ "Apache-2.0" ]
null
null
null
rmexp/schedule.py
junjuew/scalable-edge-native-applications
1ace9ce71bef267880049633160e7cb74c57bddb
[ "Apache-2.0" ]
1
2021-11-21T08:12:19.000Z
2021-11-21T08:12:19.000Z
from __future__ import absolute_import, division, print_function import logging import select import subprocess import fire import logzero import numpy as np from logzero import logger import itertools import scipy import scipy.optimize import cPickle as pickle logzero.loglevel(logging.DEBUG) def group(lst, n): ...
32.698113
146
0.553568
777d83516dc3cad54a0ce07bf96a195097e68974
1,519
py
Python
demoapp/cabinet_structure/settings.py
pythoninner/myfistpython
c1f52d8a3a284a89c0f1e33615067e8845aa1617
[ "MIT" ]
17
2015-12-10T02:09:07.000Z
2018-06-25T06:46:59.000Z
demoapp/cabinet_structure/settings.py
pythoninner/myfistpython
c1f52d8a3a284a89c0f1e33615067e8845aa1617
[ "MIT" ]
6
2015-12-09T08:09:52.000Z
2016-01-11T06:53:10.000Z
demoapp/cabinet_structure/settings.py
pythoninner/myfistpython
c1f52d8a3a284a89c0f1e33615067e8845aa1617
[ "MIT" ]
9
2015-12-10T09:04:00.000Z
2019-07-12T13:33:25.000Z
import logging from django.conf import settings logger = logging.getLogger(__name__)
33.755556
92
0.631995
777dd8bf196474b662d087b28f11dea01ef85e30
756
py
Python
l_04_list_and_dictionaries/dictionaries/ex_08_filter_base.py
VasAtanasov/SoftUni-Python-Fundamentals
471d0537dd6e5c8b61ede92b7673c0d67e2964fd
[ "MIT" ]
1
2019-06-05T11:16:08.000Z
2019-06-05T11:16:08.000Z
l_04_list_and_dictionaries/dictionaries/ex_08_filter_base.py
VasAtanasov/SoftUni-Python-Fundamentals
471d0537dd6e5c8b61ede92b7673c0d67e2964fd
[ "MIT" ]
null
null
null
l_04_list_and_dictionaries/dictionaries/ex_08_filter_base.py
VasAtanasov/SoftUni-Python-Fundamentals
471d0537dd6e5c8b61ede92b7673c0d67e2964fd
[ "MIT" ]
null
null
null
employees_data = [] while True: in_line = input() if 'filter base' == in_line: break [name, value] = filter(None, in_line.split(" -> ")) employees_data.append({name: check_type(value)}) criteria = input() separator = '=' * 20 result = '' for entry in range(len(employees_data)): for n...
23.625
82
0.589947
777ef7869d9e99660684cbd42f3a06660212884f
905
py
Python
install_release.py
NunoEdgarGFlowHub/poptorch
2e69b81c7c94b522d9f57cc53d31be562f5e3749
[ "MIT" ]
null
null
null
install_release.py
NunoEdgarGFlowHub/poptorch
2e69b81c7c94b522d9f57cc53d31be562f5e3749
[ "MIT" ]
null
null
null
install_release.py
NunoEdgarGFlowHub/poptorch
2e69b81c7c94b522d9f57cc53d31be562f5e3749
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Graphcore Ltd. All rights reserved. # This script is run by the release agent to create a release of PopTorch
34.807692
73
0.707182
778181d3874c190067f24ee03aa82a2d0d031e77
1,667
py
Python
ciscosparkapi/tests/conftest.py
Futuramistic/Bot
e22672e9d627faf3d9393feb04d214cb62dec98d
[ "MIT" ]
null
null
null
ciscosparkapi/tests/conftest.py
Futuramistic/Bot
e22672e9d627faf3d9393feb04d214cb62dec98d
[ "MIT" ]
1
2021-06-01T21:52:12.000Z
2021-06-01T21:52:12.000Z
ciscosparkapi/tests/conftest.py
Futuramistic/Bot
e22672e9d627faf3d9393feb04d214cb62dec98d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """pytest configuration and top-level fixtures.""" __author__ = "Chris Lunsford" __author_email__ = "chrlunsf@cisco.com" __copyright__ = "Copyright (c) 2016-2018 Cisco and/or its affiliates." __license__ = "MIT" import os import string import tempfile import pytest from tes...
21.101266
80
0.675465
77823bcef33f848f86c9133fcce12df4adef4d86
27
py
Python
__init__.py
GRV96/hm_duration
89de54a114cab42862dbe6b6dd5b2180adf2ee0d
[ "MIT" ]
null
null
null
__init__.py
GRV96/hm_duration
89de54a114cab42862dbe6b6dd5b2180adf2ee0d
[ "MIT" ]
null
null
null
__init__.py
GRV96/hm_duration
89de54a114cab42862dbe6b6dd5b2180adf2ee0d
[ "MIT" ]
null
null
null
from .hm_duration import *
13.5
26
0.777778
778378ad2cae07b1eae7fe45253c50b387c8c03b
256
py
Python
animations/color/list.py
LeLuxNet/GridPy
5f4d02d2b254be1f0682b724a96a99009a415308
[ "MIT" ]
null
null
null
animations/color/list.py
LeLuxNet/GridPy
5f4d02d2b254be1f0682b724a96a99009a415308
[ "MIT" ]
1
2020-05-09T15:48:41.000Z
2020-05-21T20:14:21.000Z
animations/color/list.py
LeLuxNet/GridPy
5f4d02d2b254be1f0682b724a96a99009a415308
[ "MIT" ]
null
null
null
from animations.color import base
21.333333
47
0.691406
77842d9f499b49e55088705f1121160416001ae6
1,550
py
Python
nalu.py
chauhanjatin10/NeuralArithmeticLogicUnits
c8a71e4bb99b7f5bdb5c1b85a75376b0322d6853
[ "MIT" ]
null
null
null
nalu.py
chauhanjatin10/NeuralArithmeticLogicUnits
c8a71e4bb99b7f5bdb5c1b85a75376b0322d6853
[ "MIT" ]
null
null
null
nalu.py
chauhanjatin10/NeuralArithmeticLogicUnits
c8a71e4bb99b7f5bdb5c1b85a75376b0322d6853
[ "MIT" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.functional as Func import torch.nn.init as init from nac import NeuralAccumulatorCell from torch.nn.parameter import Parameter
28.703704
63
0.740645
7784ba485cef29826c9b6771e291504192862a3d
746
py
Python
servers/python/coweb/bot/__init__.py
opencoweb/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
83
2015-01-05T19:02:57.000Z
2021-11-19T02:48:09.000Z
servers/python/coweb/bot/__init__.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
3
2015-12-16T13:49:33.000Z
2019-06-17T13:38:50.000Z
servers/python/coweb/bot/__init__.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
14
2015-04-29T22:36:53.000Z
2021-11-18T03:24:29.000Z
''' Defines classes for coweb service bots. Copyright (c) The Dojo Foundation 2011. All Rights Reserved. Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved. ''' # std lib import json import sys # coweb from .reqack import ReqAckDelegate def run(botClass): ''' Looks on the command line for informati...
26.642857
79
0.676944
778a30afec7647b6e7e9030506f3d19a33890f34
4,097
py
Python
bin/exps/batch_clone.py
akrishna1995/emuedge
d33845107be3c9bbfcaf030df0a989e9d4972743
[ "MIT" ]
8
2018-06-21T03:20:26.000Z
2021-10-15T03:53:49.000Z
bin/exps/batch_clone.py
akrishna1995/emuedge
d33845107be3c9bbfcaf030df0a989e9d4972743
[ "MIT" ]
12
2018-05-21T17:26:59.000Z
2018-06-14T02:48:21.000Z
bin/exps/batch_clone.py
akrishna1995/emuedge
d33845107be3c9bbfcaf030df0a989e9d4972743
[ "MIT" ]
3
2018-08-30T22:37:20.000Z
2019-03-31T18:29:52.000Z
import logging, sys, XenAPI, os, time sys.path.insert(0, '../../') # ssid: snapshot id # number: how many instances to create main()
25.93038
77
0.705882
778afd4b3ea9feac924d9ce4230a66a795531f22
682
py
Python
backend_drf_views_example.py
sunilparajuli/DRF-Vue-numbering-Pagination-Snippet
5a6b3796656d74b65ad4b8e1d3144afe54dcb0f6
[ "Apache-2.0" ]
2
2021-06-02T16:29:16.000Z
2021-06-02T16:29:18.000Z
backend_drf_views_example.py
sunilparajuli/DRF-Vue-numbering-Pagination-Snippet
5a6b3796656d74b65ad4b8e1d3144afe54dcb0f6
[ "Apache-2.0" ]
null
null
null
backend_drf_views_example.py
sunilparajuli/DRF-Vue-numbering-Pagination-Snippet
5a6b3796656d74b65ad4b8e1d3144afe54dcb0f6
[ "Apache-2.0" ]
null
null
null
#example pagination parameter having total_pages from backend #example list api view #example url urlspattern = [ re_path(r'^api/v2/visits/', VisitAPIView.as_view(), name="visits_api"), ]
26.230769
90
0.774194
778cfa1ba927b0196782d749a97b1b4c8af54073
5,170
py
Python
src/vivarium/examples/disease_model/population.py
ihmeuw/vivarium
77393d2e84ff2351c926f65b33272b7225cf9628
[ "BSD-3-Clause" ]
41
2017-07-14T03:39:06.000Z
2022-03-20T05:36:33.000Z
src/vivarium/examples/disease_model/population.py
ihmeuw/vivarium
77393d2e84ff2351c926f65b33272b7225cf9628
[ "BSD-3-Clause" ]
26
2017-08-08T22:13:44.000Z
2021-08-18T00:14:54.000Z
src/vivarium/examples/disease_model/population.py
ihmeuw/vivarium
77393d2e84ff2351c926f65b33272b7225cf9628
[ "BSD-3-Clause" ]
8
2017-08-03T17:15:39.000Z
2021-09-30T21:57:50.000Z
import pandas as pd from vivarium.framework.engine import Builder from vivarium.framework.population import SimulantData from vivarium.framework.event import Event
39.769231
111
0.623985
778df52cd98d358aeeaa3cd2f864bdb6647f52ff
5,390
py
Python
python3/ssm/requester.py
renardbebe/ssm-rotation-sdk-python
cffe573f5462d0b93be9b5fb110970ade98f1642
[ "Apache-2.0" ]
null
null
null
python3/ssm/requester.py
renardbebe/ssm-rotation-sdk-python
cffe573f5462d0b93be9b5fb110970ade98f1642
[ "Apache-2.0" ]
null
null
null
python3/ssm/requester.py
renardbebe/ssm-rotation-sdk-python
cffe573f5462d0b93be9b5fb110970ade98f1642
[ "Apache-2.0" ]
1
2021-07-21T02:46:58.000Z
2021-07-21T02:46:58.000Z
import logging from threading import Timer from tencentcloud.ssm.v20190923 import models, ssm_client from tencentcloud.common.profile import client_profile from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException def __get_client(sec...
29.779006
101
0.625974
778e86e22df74cae729a35ebbd9cf3422b98571c
5,159
py
Python
bdd100k/eval/lane_test.py
siyliepfl/bdd100k
f38e9b5cd4e21f7a47822734ffa4d397f64bf04a
[ "BSD-3-Clause" ]
null
null
null
bdd100k/eval/lane_test.py
siyliepfl/bdd100k
f38e9b5cd4e21f7a47822734ffa4d397f64bf04a
[ "BSD-3-Clause" ]
null
null
null
bdd100k/eval/lane_test.py
siyliepfl/bdd100k
f38e9b5cd4e21f7a47822734ffa4d397f64bf04a
[ "BSD-3-Clause" ]
null
null
null
"""Test cases for lane.py.""" import os import unittest from typing import Dict import numpy as np from .lane import ( eval_lane_per_threshold, evaluate_lane_marking, get_foreground, get_lane_class, sub_task_funcs, ) if __name__ == "__main__": unittest.main()
39.381679
78
0.611165
778eae6f766166711785d06fe1c129980226b180
6,178
py
Python
draw.py
squeezeday/raspberry-pi-e-ink-display
97a16f7bd58ba6d6c800864c945a961870e823ed
[ "MIT" ]
5
2019-09-10T09:57:59.000Z
2021-08-17T18:10:21.000Z
draw.py
squeezeday/raspberry-pi-e-ink-display
97a16f7bd58ba6d6c800864c945a961870e823ed
[ "MIT" ]
5
2021-03-19T03:32:34.000Z
2022-03-11T23:58:49.000Z
draw.py
squeezeday/raspberry-pi-e-ink-display
97a16f7bd58ba6d6c800864c945a961870e823ed
[ "MIT" ]
null
null
null
from PIL import Image, ImageDraw, ImageFont from urllib.request import Request, urlopen from urllib.parse import quote, unquote import json import pytz import os from calendarhelper import getCaldavEvents, calendarEvent from datetime import datetime, date, timedelta, tzinfo, timezone from tzlocal import get_localzone f...
37.442424
148
0.683555
778f222399a540e39a58b6e8b7d53a1fe0cdcdb2
139,019
py
Python
pysnmp-with-texts/ZXR10-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ZXR10-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ZXR10-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ZXR10-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZXR10-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:48:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
131.896584
12,577
0.780598
778f781ff9cc65cbd0f42226b7afbf7f0c69cc2b
75
py
Python
oj/custom_settings.example.py
gogiluv/testrepo
55e4a905b70a460e74b8116a130b720821eaf2ce
[ "MIT" ]
1
2018-01-28T07:48:13.000Z
2018-01-28T07:48:13.000Z
oj/custom_settings.example.py
OnlineJudgeNextGeneration/qduoj2
c4889d70850bd91ae7f662c02524d0555b6a3ce7
[ "MIT" ]
null
null
null
oj/custom_settings.example.py
OnlineJudgeNextGeneration/qduoj2
c4889d70850bd91ae7f662c02524d0555b6a3ce7
[ "MIT" ]
1
2020-09-29T14:21:27.000Z
2020-09-29T14:21:27.000Z
# please set your own SECRET_KEY to a long random string # SECRET_KEY = ""
25
56
0.733333
778fbcef49997f0ef563feb1bdf7e1bde1261eac
62,860
py
Python
sdk/python/pulumi_gcp/compute/route.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/compute/route.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/compute/route.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
46.59748
134
0.64071
77918e9deea502e2876228cdb462978e97466087
2,570
py
Python
bingads/v13/bulk/entities/audiences/bulk_remarketing_list.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
86
2016-02-29T03:24:28.000Z
2022-03-29T09:30:21.000Z
bingads/v13/bulk/entities/audiences/bulk_remarketing_list.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
135
2016-04-12T13:31:28.000Z
2022-03-29T02:18:51.000Z
bingads/v13/bulk/entities/audiences/bulk_remarketing_list.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
154
2016-04-08T04:11:27.000Z
2022-03-29T21:21:07.000Z
from bingads.v13.bulk.entities import * from bingads.service_client import _CAMPAIGN_OBJECT_FACTORY_V13 from bingads.v13.internal.bulk.entities.single_record_bulk_entity import _SingleRecordBulkEntity from bingads.v13.internal.bulk.mappings import _SimpleBulkMapping from bingads.v13.internal.bulk.string_table import _S...
39.538462
106
0.731518
77936e8ca10f6e684602ec0fcab350ddfe22ac60
24,154
py
Python
src/daft_exprt/extract_features.py
ishine/ubisoft-laforge-daft-exprt
a576691c8c42988f813183efcea43c1677abe17a
[ "Apache-2.0" ]
33
2021-09-17T18:32:23.000Z
2022-03-01T21:05:08.000Z
src/daft_exprt/extract_features.py
ishine/ubisoft-laforge-daft-exprt
a576691c8c42988f813183efcea43c1677abe17a
[ "Apache-2.0" ]
5
2021-12-07T04:23:04.000Z
2022-03-15T07:37:13.000Z
src/daft_exprt/extract_features.py
ishine/ubisoft-laforge-daft-exprt
a576691c8c42988f813183efcea43c1677abe17a
[ "Apache-2.0" ]
7
2021-09-16T02:24:02.000Z
2022-01-11T07:48:19.000Z
import json import logging import logging.handlers import os import re import subprocess import types import uuid import librosa import numpy as np import torch from shutil import rmtree from librosa.filters import mel as librosa_mel_fn from scipy.io import wavfile from daft_exprt.symbols import ascii, eos, punctua...
43.599278
139
0.620187
7794c9a15b5585aa2606eff1839893cdafad353f
4,076
py
Python
python/cuspatial/cuspatial/geometry/geoseries.py
AyodeAwe/cuspatial
77971ac91a24228bc46cf461c0ac7b6f2ed78e44
[ "Apache-2.0" ]
347
2019-08-29T12:39:02.000Z
2022-03-28T14:55:34.000Z
python/cuspatial/cuspatial/geometry/geoseries.py
AyodeAwe/cuspatial
77971ac91a24228bc46cf461c0ac7b6f2ed78e44
[ "Apache-2.0" ]
425
2019-08-24T23:27:46.000Z
2022-03-31T20:07:18.000Z
python/cuspatial/cuspatial/geometry/geoseries.py
AyodeAwe/cuspatial
77971ac91a24228bc46cf461c0ac7b6f2ed78e44
[ "Apache-2.0" ]
109
2019-08-14T22:49:56.000Z
2022-02-24T19:54:42.000Z
# Copyright (c) 2020-2021, NVIDIA CORPORATION from typing import TypeVar, Union import geopandas as gpd import pandas as pd from geopandas.geoseries import GeoSeries as gpGeoSeries import cudf from cuspatial.geometry.geoarrowbuffers import GeoArrowBuffers from cuspatial.geometry.geocolumn import GeoColumn, GeoMeta ...
31.114504
79
0.629539
7795432cd6d3090d060937e876a441cb4cc29351
29,824
py
Python
src/itol_pfamtree.py
ElofssonLab/TMplot
6a19cd1cb792733fb5db067e333c4ab3d5e238b7
[ "MIT" ]
null
null
null
src/itol_pfamtree.py
ElofssonLab/TMplot
6a19cd1cb792733fb5db067e333c4ab3d5e238b7
[ "MIT" ]
5
2020-07-10T10:10:06.000Z
2022-03-11T23:41:28.000Z
src/itol_pfamtree.py
ElofssonLab/TMplot
6a19cd1cb792733fb5db067e333c4ab3d5e238b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from ete3 import Tree import shutil import math import myfunc from colour import Color blue = Color("blue") red = Color("red") from itolapi import Itol from itolapi import ItolExport rundir = os.path.dirname(os.path.realpath(__file__)) usage=""" USAGE: itol_pfamtree.py [-...
37.992357
138
0.638345
779695a6c206665b577fbc40ca7b7a3eb86e2492
1,665
py
Python
scripts/howorka/interpolation_points.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
8
2016-09-07T01:59:31.000Z
2021-03-06T12:14:31.000Z
scripts/howorka/interpolation_points.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
scripts/howorka/interpolation_points.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
4
2017-12-06T17:43:01.000Z
2020-05-01T05:41:14.000Z
"create 2D point set for Howorka model where force shall be evaluated." import numpy as np from itertools import product import math import matplotlib.pyplot as plt import nanopores gauss = np.polynomial.legendre.leggauss nanopores.add_params( h = 0.5, hout = 1., Ry = 10., Rx = 3., ) # load parame...
25.227273
75
0.596997
77a0fbf28b7a82846992531063e6db757b73b21f
961
py
Python
dk/topdanmark/pythonsampleapplication/calculator.py
ManishGandhiDodda/pythontest
0b803eba8a0f78d63fea92471f0360b9458e258b
[ "MIT" ]
null
null
null
dk/topdanmark/pythonsampleapplication/calculator.py
ManishGandhiDodda/pythontest
0b803eba8a0f78d63fea92471f0360b9458e258b
[ "MIT" ]
null
null
null
dk/topdanmark/pythonsampleapplication/calculator.py
ManishGandhiDodda/pythontest
0b803eba8a0f78d63fea92471f0360b9458e258b
[ "MIT" ]
null
null
null
import math """ Class Calculator This class does some simple mathematic operations. """
16.568966
66
0.5359
77a214f5777df7a0c6f55cff48bff29b3f5f4ff6
1,961
py
Python
capture/command_scripts/stream_handler.py
CenturyLink/ExpertDHCP
4dbcd36da7468b9a95a7869df19172fe890cefd2
[ "MIT" ]
1
2022-03-08T00:38:33.000Z
2022-03-08T00:38:33.000Z
capture/command_scripts/stream_handler.py
aaronlumen/ExpertDHCP
4dbcd36da7468b9a95a7869df19172fe890cefd2
[ "MIT" ]
null
null
null
capture/command_scripts/stream_handler.py
aaronlumen/ExpertDHCP
4dbcd36da7468b9a95a7869df19172fe890cefd2
[ "MIT" ]
2
2022-02-11T17:13:48.000Z
2022-03-08T00:36:03.000Z
import subprocess import shlex import re import json
36.314815
92
0.562978
77a2496f709dc36f20017daf8f44f502922f1145
4,389
py
Python
pypdnsrest/parsers.py
raspi/pypdnsrest
d45f89721108d0718c791de91c2cdf31ab7cee9b
[ "Apache-2.0" ]
2
2017-05-16T14:45:27.000Z
2018-03-02T08:50:00.000Z
pypdnsrest/parsers.py
raspi/pypdnsrest
d45f89721108d0718c791de91c2cdf31ab7cee9b
[ "Apache-2.0" ]
4
2017-08-19T03:46:25.000Z
2019-04-04T14:13:51.000Z
pypdnsrest/parsers.py
raspi/pypdnsrest
d45f89721108d0718c791de91c2cdf31ab7cee9b
[ "Apache-2.0" ]
1
2020-02-09T17:17:33.000Z
2020-02-09T17:17:33.000Z
# -*- coding: utf8 -*- """ Convert REST JSON dict to DNSRecordBase classes """ import logging log = logging.getLogger(__name__) from datetime import timedelta from .dnsrecords import DNSRecordBase
33
105
0.621326
77a4ff6d26d09b8ed1fd64033110e651fd78bc73
16,460
py
Python
sudoku_solve2.py
alfille/sudoku_count
871794378c866f024acfc495d20f45478f3a0b99
[ "MIT" ]
null
null
null
sudoku_solve2.py
alfille/sudoku_count
871794378c866f024acfc495d20f45478f3a0b99
[ "MIT" ]
null
null
null
sudoku_solve2.py
alfille/sudoku_count
871794378c866f024acfc495d20f45478f3a0b99
[ "MIT" ]
null
null
null
import sys import tkinter as tk import tkinter.font as tkfont import tkinter.filedialog as tkfile import tkinter.messagebox as tkmessage import argparse import ctypes import platform import signal def Libs(): # returns a dict s_lib={} for ss in range(2,7): # Shared C library lib_base = "./" #location lib_b...
30.881801
207
0.646355
77a51fcecb6daeb1528498330dad731bde24172c
1,549
py
Python
Text_to_speech_GAN/waveFiles.py
scotty110/ANN-code
05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a
[ "MIT" ]
null
null
null
Text_to_speech_GAN/waveFiles.py
scotty110/ANN-code
05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a
[ "MIT" ]
null
null
null
Text_to_speech_GAN/waveFiles.py
scotty110/ANN-code
05ae6094dfe98c1c9fd0feb87ffb0c0c5206502a
[ "MIT" ]
null
null
null
import scipy.io.wavfile as siow import scipy.signal as ssr import matplotlib.pyplot as plt import numpy as np import math def groupNumpy(to_group_array, interval, debug=True): ''' Breaks numpy array into an array of arrays. Where each array is <interval> long. Inputs: to_group_array - array we wish to brea...
28.163636
120
0.712718
77a564e8a33b0b8bdb5861341a41f636b8f577fb
389
py
Python
test/test_nesting.py
zauberzeug/binding
8b09b15e3675c68850b81d7253f1eb24245ee76b
[ "MIT" ]
1
2022-01-07T03:22:19.000Z
2022-01-07T03:22:19.000Z
test/test_nesting.py
zauberzeug/binding
8b09b15e3675c68850b81d7253f1eb24245ee76b
[ "MIT" ]
null
null
null
test/test_nesting.py
zauberzeug/binding
8b09b15e3675c68850b81d7253f1eb24245ee76b
[ "MIT" ]
null
null
null
from binding import BindableProperty def test_nesting(): a = A(1) b = B(2) a.bind_x_to(b.y) assert a.x == 1 and b.y == 1
12.966667
41
0.562982
77a746913532d4c25ca26f69e46343bc6271ae0e
790
py
Python
Tools/Individual Tools/Big Build Calculator.py
TheUncannyScrub/PythonMinecraftTools
1ff5cf53f195cff41c33dc39a461ee94c6edf510
[ "MIT" ]
null
null
null
Tools/Individual Tools/Big Build Calculator.py
TheUncannyScrub/PythonMinecraftTools
1ff5cf53f195cff41c33dc39a461ee94c6edf510
[ "MIT" ]
null
null
null
Tools/Individual Tools/Big Build Calculator.py
TheUncannyScrub/PythonMinecraftTools
1ff5cf53f195cff41c33dc39a461ee94c6edf510
[ "MIT" ]
null
null
null
import os import sys import random import math from time import * import decimal print('Minecraft Resource Calculator') print('Enter the individual items and the calculator will') print('tell you how many chest or stacks it is!') print('*Only works for items that stack up to 64*') sleep(1) while True: ...
25.483871
60
0.616456
77abe08317bc71eea3c52df6cb5e00aa0db46e67
8,183
py
Python
venv/lib/python3.8/site-packages/spaceone/api/identity/v1/domain_owner_pb2_grpc.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/identity/v1/domain_owner_pb2_grpc.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/identity/v1/domain_owner_pb2_grpc.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from spaceone.api.identity.v1 import domain_owner_pb2 as spaceone_dot_api_dot_identit...
49
135
0.70121
77ac836929fce76c6241d61d0546b8b5bdacebd5
10,283
py
Python
data/GoogleTrans/preprocess.py
wasiahmad/GATE
1e48504a3641f00265a271a19eb6b6449fdc33bd
[ "MIT" ]
24
2020-12-07T10:22:40.000Z
2022-03-31T09:24:13.000Z
data/GoogleTrans/preprocess.py
wasiahmad/GATE
1e48504a3641f00265a271a19eb6b6449fdc33bd
[ "MIT" ]
15
2021-03-22T04:52:57.000Z
2022-01-01T18:32:31.000Z
data/GoogleTrans/preprocess.py
wasiahmad/GATE
1e48504a3641f00265a271a19eb6b6449fdc33bd
[ "MIT" ]
8
2021-03-04T05:09:42.000Z
2022-01-25T12:59:19.000Z
import json import os from udpipe import Model from conllu import parse from collections import OrderedDict model_map = { 'en': 'udpipe/english-ewt-ud-2.5-191206.udpipe', 'zh': 'udpipe/chinese-gsd-ud-2.5-191206.udpipe', 'ar': 'udpipe/arabic-padt-ud-2.5-191206.udpipe' } def find_span(offsets, begin_offset...
36.207746
99
0.550812
77ae2c52823c3ed666b8da7d385a9528b00e5196
4,034
py
Python
bricklayer/util/parallel_fetch.py
loganwang007/bricklayer
531dd4acaf20574a9d2f7f0adf68789888288157
[ "Apache-2.0" ]
null
null
null
bricklayer/util/parallel_fetch.py
loganwang007/bricklayer
531dd4acaf20574a9d2f7f0adf68789888288157
[ "Apache-2.0" ]
null
null
null
bricklayer/util/parallel_fetch.py
loganwang007/bricklayer
531dd4acaf20574a9d2f7f0adf68789888288157
[ "Apache-2.0" ]
null
null
null
""" Module to distribute the S3 download over a spark cluster Useful when the data is highly partitioned and unable to be loaded by standard methods Results end up in a table Usage: ``` from parallel_fetch import DbricksParallelFetch # define the aws_bucket and output_dir for the s3_fetch to...
42.020833
112
0.595439
77af594f90cdfff28c32483019a29f1ca17a171f
621
py
Python
algorithms/mergesort.py
MatheusRV/Analysis-of-Algorithms-Course
4c1f4ccb8349b894653128be7e38d3045b0f5c13
[ "MIT" ]
null
null
null
algorithms/mergesort.py
MatheusRV/Analysis-of-Algorithms-Course
4c1f4ccb8349b894653128be7e38d3045b0f5c13
[ "MIT" ]
null
null
null
algorithms/mergesort.py
MatheusRV/Analysis-of-Algorithms-Course
4c1f4ccb8349b894653128be7e38d3045b0f5c13
[ "MIT" ]
null
null
null
def merge(left, right): """Merge sort merging function.""" merged_array=[] while left or right: if not left: merged_array.append(right.pop()) elif (not right) or left[-1] > right[-1]: merged_array.append(left.pop()) else: merged_array.append(right.pop()) merged_array.reverse() return merged_array d...
25.875
51
0.690821
77af69141958979d91a8946a1f5ae3a3eb8f9bf0
2,874
py
Python
SyracuseNews.py
islubee/Discord-Bots
c504adf6af09e68809038e7c4f0720cb8022f982
[ "MIT" ]
null
null
null
SyracuseNews.py
islubee/Discord-Bots
c504adf6af09e68809038e7c4f0720cb8022f982
[ "MIT" ]
null
null
null
SyracuseNews.py
islubee/Discord-Bots
c504adf6af09e68809038e7c4f0720cb8022f982
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup import urllib.request as urllib2 import re import pickle import logging import ssl import urllib.parse import base64 from datetime import datetime,timedelta from time import sleep import time import os import discord from dotenv import load_dotenv import requests #i...
33.418605
199
0.707376
77b07935b55d5c70675838e025530126172cd7e9
114
py
Python
aula01/aula01.py
fabiolealsc/estudandoPython
be0e9211ba3d596a15a9427b612c537a102b858e
[ "MIT" ]
3
2021-09-05T16:50:06.000Z
2021-11-08T08:56:51.000Z
aula01/aula01.py
fabiolealsc/estudandoPython
be0e9211ba3d596a15a9427b612c537a102b858e
[ "MIT" ]
null
null
null
aula01/aula01.py
fabiolealsc/estudandoPython
be0e9211ba3d596a15a9427b612c537a102b858e
[ "MIT" ]
null
null
null
print("Hello, world") while True: txt = input('Digite um valor: ') print(eval(txt))
14.25
36
0.596491
77b13a9d54ea4e9754f97111a15aac0fd3b8b54f
1,467
py
Python
accounts/views.py
samaras/bytestore
8e2f8dfc40af9cf2b387ef17820927e439bbbe33
[ "MIT" ]
null
null
null
accounts/views.py
samaras/bytestore
8e2f8dfc40af9cf2b387ef17820927e439bbbe33
[ "MIT" ]
null
null
null
accounts/views.py
samaras/bytestore
8e2f8dfc40af9cf2b387ef17820927e439bbbe33
[ "MIT" ]
null
null
null
from django.shortcuts import render_to_response from .forms import * from django.contrib.auth.decorators import login_required from django.contrib.auth import logout from django.views.decorators.csrf import csrf_protect from django.http import HttpResponseRedirect from django.template import RequestContext
28.211538
110
0.759373
77b28772f0ad4a9c4563ad6fa4f14122fc956e8e
618
py
Python
py_tasc.py
hcpss-banderson/py-tasc
7a7b4b3743a1375707647574a3a40c374b18c73a
[ "MIT" ]
1
2017-07-19T12:37:31.000Z
2017-07-19T12:37:31.000Z
py_tasc.py
HCPSS/py-tasc
7a7b4b3743a1375707647574a3a40c374b18c73a
[ "MIT" ]
1
2016-06-09T18:40:05.000Z
2016-06-09T18:40:05.000Z
py_tasc.py
hcpss-banderson/py-tasc
7a7b4b3743a1375707647574a3a40c374b18c73a
[ "MIT" ]
1
2021-05-25T12:24:33.000Z
2021-05-25T12:24:33.000Z
#!/usr/bin/env python import os from assembler import Assembler from optionresolver import OptionResolver from patchers import PatchManager, PatchPatcher # Get the user supplied options options = OptionResolver() # Assemble the source code assembler = Assembler(options.manifest()["projects"], options.destination(), o...
32.526316
104
0.800971
77b37d9171a1365ad576494257206d89ba25adf1
111
py
Python
session_05/dictionaries.py
dravate/spark_python_course
519389fdb21d78cd6d19e1ad2f7c782bc1449a83
[ "MIT" ]
null
null
null
session_05/dictionaries.py
dravate/spark_python_course
519389fdb21d78cd6d19e1ad2f7c782bc1449a83
[ "MIT" ]
null
null
null
session_05/dictionaries.py
dravate/spark_python_course
519389fdb21d78cd6d19e1ad2f7c782bc1449a83
[ "MIT" ]
1
2021-07-27T14:16:39.000Z
2021-07-27T14:16:39.000Z
d1 = {} d2 = {'one': 1, 'two': 2 } d3 = dict(one=1, two=2) d4 = dict((1, 2), (3, 4)) d5 = dict({1:2, 3:4})
11.1
26
0.414414
77b62d71a2e2a81d7bb14aa77dd472363e132b1c
593
py
Python
deploy/env_var.py
john850512/TranslatedPudding
64e5f2b5fe389c598daa15ff78dbc5ede3e0799e
[ "MIT" ]
3
2019-05-20T06:36:14.000Z
2020-05-15T03:58:16.000Z
deploy/env_var.py
john850512/TranslatedPudding
64e5f2b5fe389c598daa15ff78dbc5ede3e0799e
[ "MIT" ]
null
null
null
deploy/env_var.py
john850512/TranslatedPudding
64e5f2b5fe389c598daa15ff78dbc5ede3e0799e
[ "MIT" ]
null
null
null
CHANNEL_ACCESS_TOKEN = r'YOUR CHANNEL ACCESS TOKEN' CHANNEL_SECRET = r'YOUR CHANNEL SECRET' STR_CURRENT_STATUS_RESPOND = ("{current_status}\n" + "1.\n" + "2." ) STR_CURRENT_STATUS = r'' STR_ACTIVATE_BOT = r'' STR_DEACTIVATE_BOT = ...
45.615385
59
0.686341
77b773bb110aacc218f4ca773acae2c751ddf7a7
691
py
Python
src/duet/sv_calling.py
yekaizhou/duet
ab49323992d3a5f6c21a10bd7114525a31fb0b8b
[ "BSD-3-Clause" ]
7
2021-08-12T08:26:18.000Z
2022-02-23T18:13:53.000Z
src/duet/sv_calling.py
yekaizhou/duet
ab49323992d3a5f6c21a10bd7114525a31fb0b8b
[ "BSD-3-Clause" ]
null
null
null
src/duet/sv_calling.py
yekaizhou/duet
ab49323992d3a5f6c21a10bd7114525a31fb0b8b
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 import logging import os import time
43.1875
112
0.615051
77b834ef3b47095a3ef4e2276e9ea11ba4bc2b31
622
py
Python
python/08/a4988.py
matsujirushi/raspi_parts_kouryaku
35cd6f34d21c5e3160636671175fa8d5aff2d4dc
[ "Apache-2.0" ]
6
2022-03-05T02:36:57.000Z
2022-03-12T12:31:27.000Z
python/08/a4988.py
matsujirushi/raspi_parts_kouryaku
35cd6f34d21c5e3160636671175fa8d5aff2d4dc
[ "Apache-2.0" ]
null
null
null
python/08/a4988.py
matsujirushi/raspi_parts_kouryaku
35cd6f34d21c5e3160636671175fa8d5aff2d4dc
[ "Apache-2.0" ]
null
null
null
import pigpio import time ROTATION = 2 STEP_PER_ROTATE = 200 MICROSTEP = 16 ENABLE = 10 MS1 = 9 MS2 = 11 MS3 = 5 RESET = 6 SLEEP = 13 STEP = 19 DIR = 26 WAIT = 0.005 pi = pigpio.pi() for pin in [ENABLE, MS1, MS2, MS3, RESET, SLEEP, STEP, DIR]: pi.set_mode(pin, pigpio.OUTPUT) pi.write(RESET, 0) pi.write(SLEEP...
14.136364
60
0.651125
77b89c8c2551fa8fcc0927345358401aa9bd99ab
191
py
Python
Merlin_Motion_Control.py
TomQD-94/merlin-motion-control
506ef612812be04074a9c01793c86c951578c67c
[ "MIT" ]
1
2022-02-21T11:12:49.000Z
2022-02-21T11:12:49.000Z
Merlin_Motion_Control.py
TomQD-94/merlin-motion-control
506ef612812be04074a9c01793c86c951578c67c
[ "MIT" ]
null
null
null
Merlin_Motion_Control.py
TomQD-94/merlin-motion-control
506ef612812be04074a9c01793c86c951578c67c
[ "MIT" ]
1
2021-04-27T08:35:41.000Z
2021-04-27T08:35:41.000Z
#!/Users/richard/anaconda3/bin/python3 """Launch app using Anaconda 3.""" from views.interface import MerlinMotionControlApp if __name__ == "__main__": MerlinMotionControlApp().run()
19.1
50
0.748691
77b8deb8a471712792ddcd411f464a17a0cb2bf4
1,917
py
Python
tools/c7n_gcp/c7n_gcp/resources/dataflow.py
vkubyshko/cloud-custodian
e5e3a0f8b5c85adcbec212d780b453047fb6f4d1
[ "Apache-2.0" ]
2,415
2018-12-04T00:37:58.000Z
2022-03-31T12:28:56.000Z
tools/c7n_gcp/c7n_gcp/resources/dataflow.py
vkubyshko/cloud-custodian
e5e3a0f8b5c85adcbec212d780b453047fb6f4d1
[ "Apache-2.0" ]
3,272
2018-12-03T23:58:17.000Z
2022-03-31T21:15:32.000Z
tools/c7n_gcp/c7n_gcp/resources/dataflow.py
staxio/cloud-custodian
24ed5d8f09bc37ff76184aae97a1ef577a69a41b
[ "Apache-2.0" ]
773
2018-12-06T09:43:23.000Z
2022-03-30T20:44:43.000Z
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import jmespath from googleapiclient.errors import HttpError from c7n_gcp.provider import resources from c7n_gcp.query import QueryResourceManager, TypeInfo
32.491525
93
0.571205
77b987eaf14f75d36f539722f833433781e4d25e
12,777
py
Python
evolution/robot.py
gpatsiaouras/Robot-Simulator
4676bb342ca2a1ebcabfb4834f42da61610bacdf
[ "MIT" ]
null
null
null
evolution/robot.py
gpatsiaouras/Robot-Simulator
4676bb342ca2a1ebcabfb4834f42da61610bacdf
[ "MIT" ]
1
2022-03-12T00:58:01.000Z
2022-03-12T00:58:01.000Z
evolution/robot.py
gpatsiaouras/Robot-Simulator
4676bb342ca2a1ebcabfb4834f42da61610bacdf
[ "MIT" ]
null
null
null
import numpy as np from math import hypot as hyp
46.126354
122
0.591688
77b9b6901e4cb4106030a4e8cd51ce978af0e6bd
2,613
py
Python
backblaze/tests/blocking/test_file.py
WardPearce/aiob2
3dcff9c3aa7612ce7b43375fca379c1358121a4a
[ "MIT" ]
null
null
null
backblaze/tests/blocking/test_file.py
WardPearce/aiob2
3dcff9c3aa7612ce7b43375fca379c1358121a4a
[ "MIT" ]
null
null
null
backblaze/tests/blocking/test_file.py
WardPearce/aiob2
3dcff9c3aa7612ce7b43375fca379c1358121a4a
[ "MIT" ]
1
2019-07-16T03:38:49.000Z
2019-07-16T03:38:49.000Z
import unittest from uuid import uuid4 from os import path from .client import CLIENT from ...settings import ( BucketSettings, UploadSettings, PartSettings, CopyFileSettings ) from ...models.file import FileModel, PartModel from ...bucket.blocking import BlockingFile
22.921053
58
0.565251
77bb0202fbcb60692c326fef16e93e7f15657559
616
py
Python
tests/test_dataset.py
kilsenp/triplet-reid-pytorch
0cd2c2ac638d22745483b3d12ccb5c160f0bf3c3
[ "MIT" ]
41
2018-06-21T09:36:23.000Z
2021-05-07T22:06:25.000Z
tests/test_dataset.py
kilsen512/triplet-reid-pytorch
0cd2c2ac638d22745483b3d12ccb5c160f0bf3c3
[ "MIT" ]
3
2018-06-20T10:35:32.000Z
2020-11-17T20:16:03.000Z
tests/test_dataset.py
kilsen512/triplet-reid-pytorch
0cd2c2ac638d22745483b3d12ccb5c160f0bf3c3
[ "MIT" ]
10
2018-05-18T07:34:56.000Z
2021-01-16T00:02:12.000Z
import sys from os import path sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) ) import unittest from csv_dataset import * if __name__ == "__main__": unittest.main()
30.8
97
0.600649
77bb5640e0e164a57f7b3d1cb8fe5afab8675900
3,695
py
Python
help/forms.py
pincoin/rakmai
d9daa399aff50712a86b2dec9d94e622237b25b0
[ "MIT" ]
11
2018-04-02T16:36:19.000Z
2019-07-10T05:54:58.000Z
help/forms.py
pincoin/rakmai
d9daa399aff50712a86b2dec9d94e622237b25b0
[ "MIT" ]
22
2019-01-01T20:40:21.000Z
2022-02-10T08:06:39.000Z
help/forms.py
pincoin/rakmai
d9daa399aff50712a86b2dec9d94e622237b25b0
[ "MIT" ]
4
2019-03-12T14:24:37.000Z
2022-01-07T16:20:22.000Z
from crispy_forms.helper import ( FormHelper, Layout ) from crispy_forms.layout import ( HTML, Fieldset, Submit ) from django import forms from django.urls import reverse from django.utils.translation import gettext_lazy as _ from shop import models
31.853448
118
0.568065
77bc14e7c032c836a4310a414a8a832122f26169
642
py
Python
json2csv.py
bdunnette/derby_name_generator
51690025d7c4e1a0dba8da71fbb85570baaeeeca
[ "MIT" ]
null
null
null
json2csv.py
bdunnette/derby_name_generator
51690025d7c4e1a0dba8da71fbb85570baaeeeca
[ "MIT" ]
4
2020-01-28T22:57:49.000Z
2020-11-13T18:22:23.000Z
json2csv.py
bdunnette/derby_name_generator
51690025d7c4e1a0dba8da71fbb85570baaeeeca
[ "MIT" ]
null
null
null
import csv import json json_files = ['generated_names', 'registered_names', 'used_names'] for jf in json_files: infile = open('data/{}.json'.format(jf), 'r') outfile = open('data/{}.csv'.format(jf), 'w') print('{} > {}'.format(infile, outfile)) writer = csv.DictWriter(outfile, fieldnames=['na...
32.1
72
0.582555
77bdb223eed0186fb8d9de25b3c3b87e0f4d5217
4,013
py
Python
file_manager/migrations/0059_auto_20220208_1641.py
xiaofengxie128/Proteomic-Data-Manager
79756c7021b1d5e4cc4cdb26d741f6ea18846a02
[ "Apache-2.0" ]
null
null
null
file_manager/migrations/0059_auto_20220208_1641.py
xiaofengxie128/Proteomic-Data-Manager
79756c7021b1d5e4cc4cdb26d741f6ea18846a02
[ "Apache-2.0" ]
null
null
null
file_manager/migrations/0059_auto_20220208_1641.py
xiaofengxie128/Proteomic-Data-Manager
79756c7021b1d5e4cc4cdb26d741f6ea18846a02
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.7 on 2022-02-08 23:41 from django.db import migrations, models
38.586538
108
0.592574
77be2f55131b3349b56faffc31d3bd578f487785
9,334
py
Python
tests/tests_user_demo_orders_add.py
Bitsgap/Bitsgap-api-py
4102e578c7958dfabb945eb17fdff4ef6cab8fdd
[ "MIT" ]
2
2021-05-12T01:14:24.000Z
2021-12-08T14:36:00.000Z
tests/tests_user_demo_orders_add.py
Bitsgap/Bitsgap-rest-api-py
4102e578c7958dfabb945eb17fdff4ef6cab8fdd
[ "MIT" ]
null
null
null
tests/tests_user_demo_orders_add.py
Bitsgap/Bitsgap-rest-api-py
4102e578c7958dfabb945eb17fdff4ef6cab8fdd
[ "MIT" ]
null
null
null
import asyncio import logging from unittest import TestCase from rest_api_py_lib import BitsgapClient from tests.keys import public_key,private_key
29.352201
85
0.561174
77be68f59af465d19126dafee090ea62f5ef4125
2,176
py
Python
runway/hooks/cleanup_s3.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
runway/hooks/cleanup_s3.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
runway/hooks/cleanup_s3.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
"""CFNgin hook for cleaning up resources prior to CFN stack deletion.""" # TODO move to runway.cfngin.hooks on next major release import logging from botocore.exceptions import ClientError from ..cfngin.lookups.handlers.output import OutputLookup from ..cfngin.lookups.handlers.rxref import RxrefLookup from ..cfngin.l...
35.096774
83
0.634191
77bf2ecef9748586b6a2dac8896799069e53843d
5,800
py
Python
mediapub_extensions/ApiWrappers/Snowflake.py
seattletimes/mediapub_extensions
5b3dd3862f2ef59d494efe57bee679f0787952f4
[ "Apache-2.0" ]
null
null
null
mediapub_extensions/ApiWrappers/Snowflake.py
seattletimes/mediapub_extensions
5b3dd3862f2ef59d494efe57bee679f0787952f4
[ "Apache-2.0" ]
1
2019-08-21T21:53:30.000Z
2019-08-21T21:53:30.000Z
mediapub_extensions/ApiWrappers/Snowflake.py
seattletimes/mediapub_extensions
5b3dd3862f2ef59d494efe57bee679f0787952f4
[ "Apache-2.0" ]
null
null
null
import snowflake.connector as snowcon import json import getpass import sys if __name__=='__main__': print("Don't call directly. Install package and import as a class.") sf = Snowflake() sf.set_environment_settings("ETL_PULL", "ST_WEB", "ST_WEB_WH_PROD_ETL", "WEB_PROD") print(sf.get_snowflake_versio...
34.52381
165
0.58
77c1415a212d5d1d022140adadcb11fdbf2724c0
653
py
Python
UVa Online Judge/v129/12916.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
UVa Online Judge/v129/12916.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
UVa Online Judge/v129/12916.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
# ============================================================================= # Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/ # FileName: 12916.py # Description: UVa Online Judge - 12916 # ============================================================================= N = int(inpu...
27.208333
79
0.355283
77c2a84ba94b9959e2b284142d43e8fadfa6f26f
268
py
Python
test.py
adamrehn/docker-script
440b2a119ff304cff3c698a5b9d1e679154ba5a5
[ "MIT" ]
5
2018-08-28T15:09:13.000Z
2020-08-05T13:20:26.000Z
test.py
adamrehn/docker-script
440b2a119ff304cff3c698a5b9d1e679154ba5a5
[ "MIT" ]
null
null
null
test.py
adamrehn/docker-script
440b2a119ff304cff3c698a5b9d1e679154ba5a5
[ "MIT" ]
3
2019-06-17T18:14:49.000Z
2019-11-07T10:23:33.000Z
#!/usr/bin/env docker-script #!python:latest python import os, sys details = os.uname() print('Uname: ', details.sysname, details.release, details.machine) print('Guest CWD:', os.getcwd()) print('Host CWD: ', os.environ['HOST_CWD']) print('argv: ', sys.argv)
24.363636
70
0.679104
77c4906ed898f5765c5f91376752902605a14837
9,340
py
Python
mathscup v2.py
bosscoder88/maths-cup
c3d1d4755286c6fa14a877579cdbdc11402f5c72
[ "CC0-1.0" ]
1
2020-12-13T19:28:32.000Z
2020-12-13T19:28:32.000Z
mathscup v2.py
bosscoder88/maths-cup
c3d1d4755286c6fa14a877579cdbdc11402f5c72
[ "CC0-1.0" ]
null
null
null
mathscup v2.py
bosscoder88/maths-cup
c3d1d4755286c6fa14a877579cdbdc11402f5c72
[ "CC0-1.0" ]
null
null
null
#### Startup ## import random from time import sleep as s names = [] thirdPlace = [] for x in range(1, 33): print("Name", x) name = input("Please enter a name: ") names.append(name) #print(names) ## This line is for bug fixing, uncomments if you want to check all the names are in the list. p...
35.245283
109
0.509957
77c4ac6e0829dc7178a6b601892640733f30e784
2,736
py
Python
hmrc_sdes/tests/test_client.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
14
2020-03-25T11:11:29.000Z
2022-03-08T20:41:33.000Z
hmrc_sdes/tests/test_client.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
352
2020-03-25T10:42:09.000Z
2022-03-30T15:32:26.000Z
hmrc_sdes/tests/test_client.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
3
2020-08-06T12:22:41.000Z
2022-01-16T11:51:12.000Z
import json import os from hashlib import md5 from unittest.mock import Mock import pytest from common.tests import factories from hmrc_sdes.api_client import HmrcSdesClient pytestmark = pytest.mark.django_db
30.065934
108
0.666667
77c4b823daa25924e42b9613fee9df7dab7601e4
6,301
py
Python
model/train/AdvancedEAST.py
JinGyeSetBirdsFree/FudanOCR
e6b18b0eefaf832b2eb7198f5df79e00bd4cee36
[ "MIT" ]
25
2020-02-29T12:14:10.000Z
2020-04-24T07:56:06.000Z
model/train/AdvancedEAST.py
dun933/FudanOCR
fd79b679044ea23fd9eb30691453ed0805d2e98b
[ "MIT" ]
33
2020-12-10T19:15:39.000Z
2022-03-12T00:17:30.000Z
model/train/AdvancedEAST.py
dun933/FudanOCR
fd79b679044ea23fd9eb30691453ed0805d2e98b
[ "MIT" ]
4
2020-02-29T12:14:18.000Z
2020-04-12T12:26:50.000Z
# -*- coding: utf-8 -*-
40.651613
123
0.577845
77c6181206707ee1bccc346554b686167d34ae86
1,282
py
Python
Python3/Books/Douson/chapter04/hero's_inventory2.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter04/hero's_inventory2.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter04/hero's_inventory2.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
# Hero's Inventory 2.0 # Demonstrates tuples # create a tuple with some items and display with a for loop inventory = ("sword", "armor", "shield", "healing potion") print("Your items:") for item in inventory: print(item) input("\nPress the enter key to continue.") # get the...
27.869565
73
0.682527
77c66ea30fa9ef6d5f9730bf0414d7cdb56d8682
3,579
py
Python
jax_influence/selection.py
google-research/jax-influence
74bd321156b5445bb35b9594568e4eaaec1a76a3
[ "Apache-2.0" ]
8
2022-02-17T10:19:27.000Z
2022-03-28T12:33:57.000Z
jax_influence/selection.py
google-research/jax-influence
74bd321156b5445bb35b9594568e4eaaec1a76a3
[ "Apache-2.0" ]
null
null
null
jax_influence/selection.py
google-research/jax-influence
74bd321156b5445bb35b9594568e4eaaec1a76a3
[ "Apache-2.0" ]
1
2022-03-02T14:32:56.000Z
2022-03-02T14:32:56.000Z
# Copyright 2021 The Jax Influence 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 ...
33.448598
79
0.740151
77c6869548be7b262a6b24e861485690a9a1e3b0
20,327
py
Python
CureIAM/processors/gcpcloudiam.py
gojek/CureIAM
83cdf6ef4d61b563ae8ac69fbf008f8338f6361f
[ "Apache-2.0" ]
17
2021-11-10T08:32:31.000Z
2022-03-03T12:20:38.000Z
CureIAM/processors/gcpcloudiam.py
gojekfarm/CureIAM
83cdf6ef4d61b563ae8ac69fbf008f8338f6361f
[ "Apache-2.0" ]
null
null
null
CureIAM/processors/gcpcloudiam.py
gojekfarm/CureIAM
83cdf6ef4d61b563ae8ac69fbf008f8338f6361f
[ "Apache-2.0" ]
3
2021-11-11T17:20:16.000Z
2021-12-02T20:00:34.000Z
"""Plugin to process the data retrieved from `gcpcloud.CureIAM` plugin """ import json import logging import datetime from CureIAM.models.iamriskscore import IAMRiskScoreModel from CureIAM.models.applyrecommendationmodel import IAMApplyRecommendationModel from CureIAM import util _log = logging.getLogger(__name__)
46.197727
166
0.509421
77c73cfb980dddd0f00259fb140949459a2b3bcc
4,994
py
Python
Stream Ciphers/grain-128.py
PitCoder/Cryptography
42735dc2375b1794b4c4a5b0d029c3b99b91538c
[ "MIT" ]
null
null
null
Stream Ciphers/grain-128.py
PitCoder/Cryptography
42735dc2375b1794b4c4a5b0d029c3b99b91538c
[ "MIT" ]
null
null
null
Stream Ciphers/grain-128.py
PitCoder/Cryptography
42735dc2375b1794b4c4a5b0d029c3b99b91538c
[ "MIT" ]
null
null
null
from bitstring import BitArray, BitStream # Definition of constants KEY_SIZE = 128 REGISTER_SIZE = 128 LAST_INDEX = 127 INITIALIZATION_CLOCKS = 256 if __name__ == '__main__': # Define number of rounds NO_ROUNDS = 25 ONES_PADDING = BitArray('0xFFFFFFFF') # Test vector of GRAIN(128 bit key) # ...
46.240741
114
0.623148
77c7afef5c74a339ce18ec675fedbac6397faeca
2,111
py
Python
microanalyst/model/filenames.py
bzaczynski/microanalyst
915d8b3111b98a5e369dbcfe0b88c84ade9faec8
[ "MIT" ]
3
2017-06-06T18:54:28.000Z
2021-06-11T13:06:40.000Z
microanalyst/model/filenames.py
bzaczynski/microanalyst
915d8b3111b98a5e369dbcfe0b88c84ade9faec8
[ "MIT" ]
null
null
null
microanalyst/model/filenames.py
bzaczynski/microanalyst
915d8b3111b98a5e369dbcfe0b88c84ade9faec8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # The MIT License (MIT) # # Copyright (c) 2013 Bartosz Zaczynski # # 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...
36.396552
79
0.720512
77c83499cfbfd5ad6ff4654b86b77b358a42fede
7,864
py
Python
models/abstract_model.py
kkangshen/bayesian-deep-rul
449038571097cfccee5e128623a16a963a4dca63
[ "MIT" ]
6
2020-02-28T14:56:46.000Z
2022-03-24T02:44:56.000Z
models/abstract_model.py
kkangshen/bayesian-deep-rul
449038571097cfccee5e128623a16a963a4dca63
[ "MIT" ]
null
null
null
models/abstract_model.py
kkangshen/bayesian-deep-rul
449038571097cfccee5e128623a16a963a4dca63
[ "MIT" ]
4
2020-01-02T15:03:02.000Z
2022-03-10T12:46:35.000Z
# -*- coding: utf-8 -*- """Abstract model definition.""" from collections import OrderedDict import numpy as np import torch import torch.nn as nn
33.042017
131
0.517294
77c8d398ac338ba0bf2a0226bf85b373294388f7
394
py
Python
weiboCrawler/migrations/0020_auto_20210501_0731.py
SongYuQiu/Social-Network-Portrait-Analysis-System-BackCode
392764ec4944f4df2b9a2cdc9901f9cf32918988
[ "MIT" ]
null
null
null
weiboCrawler/migrations/0020_auto_20210501_0731.py
SongYuQiu/Social-Network-Portrait-Analysis-System-BackCode
392764ec4944f4df2b9a2cdc9901f9cf32918988
[ "MIT" ]
null
null
null
weiboCrawler/migrations/0020_auto_20210501_0731.py
SongYuQiu/Social-Network-Portrait-Analysis-System-BackCode
392764ec4944f4df2b9a2cdc9901f9cf32918988
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2021-05-01 07:31 from django.db import migrations
20.736842
61
0.619289
77c9573c06e85833053d03d6dbce3da891ac8dbe
4,316
py
Python
ezql.py
Dimwest/MyEzQL
866c7e853cf605d475e8204a7465f6e596bcf2d8
[ "MIT" ]
10
2019-01-18T15:54:35.000Z
2019-02-21T16:18:41.000Z
ezql.py
Dimwest/MyEzQL
866c7e853cf605d475e8204a7465f6e596bcf2d8
[ "MIT" ]
1
2020-08-08T20:50:00.000Z
2020-08-08T20:50:00.000Z
ezql.py
Dimwest/MyEzQL
866c7e853cf605d475e8204a7465f6e596bcf2d8
[ "MIT" ]
null
null
null
import fire from configparser import ConfigParser from utils.processing import str_to_sql_dict from utils.validation import * from utils.logging import * from parse.worker import Worker from output.cmd import beautify from output.mermaid import Mermaid from output.json import to_json from typing import Optional, List f...
37.530435
95
0.630908
77ca100659083b3c68df3e832abc6d77f7424c6b
254
py
Python
tests/pygetwindow/pygetwindow.py
JakubAndrysek/pyspacenavigator-app
97e8049b646cd734f37b50fb2a60169a3b0d34f8
[ "MIT" ]
null
null
null
tests/pygetwindow/pygetwindow.py
JakubAndrysek/pyspacenavigator-app
97e8049b646cd734f37b50fb2a60169a3b0d34f8
[ "MIT" ]
null
null
null
tests/pygetwindow/pygetwindow.py
JakubAndrysek/pyspacenavigator-app
97e8049b646cd734f37b50fb2a60169a3b0d34f8
[ "MIT" ]
null
null
null
from win32gui import GetWindowText, GetForegroundWindow old = "" while True: new =GetWindowText(GetForegroundWindow()) if old != new: # print(new) if new.lower().find("inkscape")>0: print("OK") old = new
15.875
55
0.586614
77cdd4cfa1ba951c628b06ba3c433937e7e39f69
2,017
py
Python
web/posts/tests.py
arturgafizov/webtron_social_network
38dc166ea8d099ca3a0967f378d751f758eae649
[ "MIT" ]
null
null
null
web/posts/tests.py
arturgafizov/webtron_social_network
38dc166ea8d099ca3a0967f378d751f758eae649
[ "MIT" ]
null
null
null
web/posts/tests.py
arturgafizov/webtron_social_network
38dc166ea8d099ca3a0967f378d751f758eae649
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from rest_framework.reverse import reverse_lazy from rest_framework.test import APITestCase from rest_framework import status from django.contrib.auth.hashers import make_password User = get_user_model()
35.385965
91
0.646505
77ce28391d9e87410ba9c6fe9f7e9101b1ee66d1
16,521
py
Python
04-data-lake/etl.py
Ceridan/data-engineering-projects
c608ea76e6db0069f1b8dc24b16c367cf243f657
[ "MIT" ]
null
null
null
04-data-lake/etl.py
Ceridan/data-engineering-projects
c608ea76e6db0069f1b8dc24b16c367cf243f657
[ "MIT" ]
null
null
null
04-data-lake/etl.py
Ceridan/data-engineering-projects
c608ea76e6db0069f1b8dc24b16c367cf243f657
[ "MIT" ]
null
null
null
import configparser import os from pyspark.sql import SparkSession, Window from pyspark.sql.functions import col, asc, desc from pyspark.sql.functions import date_format, row_number, monotonically_increasing_id from pyspark.sql.functions import year, month, dayofmonth, hour, weekofyear, date_format from pyspark.sql.typ...
44.056
120
0.685794
77ced5789b62f0ec5d0ecee1f28883d50d318adb
882
py
Python
SystemProgramming/models/parsers.py
Savital/BMSTU
30b6b1f3e79e1286a8cf5b3da7a4199a215aebe1
[ "MIT" ]
null
null
null
SystemProgramming/models/parsers.py
Savital/BMSTU
30b6b1f3e79e1286a8cf5b3da7a4199a215aebe1
[ "MIT" ]
null
null
null
SystemProgramming/models/parsers.py
Savital/BMSTU
30b6b1f3e79e1286a8cf5b3da7a4199a215aebe1
[ "MIT" ]
null
null
null
# Savital https://github.com/Savital # Reads data from proc import os
22.05
44
0.422902
77d0551b120b7e247faec73e3785aed4c6572d10
1,575
py
Python
blog/tests.py
kkampardi/DjangoTesting
1092c41d9d4930f0512fac79b4d95836c70e5f3a
[ "MIT" ]
null
null
null
blog/tests.py
kkampardi/DjangoTesting
1092c41d9d4930f0512fac79b4d95836c70e5f3a
[ "MIT" ]
3
2017-05-05T09:47:40.000Z
2017-05-09T07:28:36.000Z
blog/tests.py
kkampardi/DjangoTesting
1092c41d9d4930f0512fac79b4d95836c70e5f3a
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from .models import Entry
37.5
83
0.68254
77d27a48425b7756b0ea323bb46686f3b1ceed5d
1,196
py
Python
DataStructure and algorithms/Overallfibnocci.py
Rajatkhatri7/Project-Milap
0bb5dfc05064a8727760755fa55e53fd7bb8d8d3
[ "Apache-2.0" ]
null
null
null
DataStructure and algorithms/Overallfibnocci.py
Rajatkhatri7/Project-Milap
0bb5dfc05064a8727760755fa55e53fd7bb8d8d3
[ "Apache-2.0" ]
null
null
null
DataStructure and algorithms/Overallfibnocci.py
Rajatkhatri7/Project-Milap
0bb5dfc05064a8727760755fa55e53fd7bb8d8d3
[ "Apache-2.0" ]
null
null
null
# grows via 2^n/2 # fn= { 0 ; n=0 # 1 ; n=1 # f(n-1)+f(n-2) ; n>1} # for f(n)>n it will take very long time to compute # bad algo """ F(n) / \ f(n-1) f(n-2) / \ / \ f(n-2) f(n...
23.92
93
0.405518
77d4c896f4135bf9076e4a4fc25159dd59f2bc8a
5,765
py
Python
unit-2/tower.py
GalvinGao/2019-ProgrammingCourse
b668bc9bab902959a574aa3db73ae481131c0c27
[ "MIT" ]
null
null
null
unit-2/tower.py
GalvinGao/2019-ProgrammingCourse
b668bc9bab902959a574aa3db73ae481131c0c27
[ "MIT" ]
null
null
null
unit-2/tower.py
GalvinGao/2019-ProgrammingCourse
b668bc9bab902959a574aa3db73ae481131c0c27
[ "MIT" ]
null
null
null
import time import turtle as t t.mode('standard') t.speed(8) DISTANCE = 8 RESIZE_RATIO = 6 t.pensize(RESIZE_RATIO) def function(self, _function, trace_size: float = 0.1, x_range: tuple = (), y_range: tuple = ()): restorer = Restorer() for index in range(trace_size, trace_size): y = ...
27.716346
112
0.580399
77d4f48663c89f32c4be3c6b61e022e849edb12a
1,304
py
Python
build_user_list.py
BennettDixon/sql_to_contact_list
23497119628622b4bf9e660ec2c4b12efba8b081
[ "MIT" ]
null
null
null
build_user_list.py
BennettDixon/sql_to_contact_list
23497119628622b4bf9e660ec2c4b12efba8b081
[ "MIT" ]
null
null
null
build_user_list.py
BennettDixon/sql_to_contact_list
23497119628622b4bf9e660ec2c4b12efba8b081
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """script for testing connection to database""" import pyodbc import sys import os from models.user import User import models driver = os.environ.get('CONTACT_SQL_DRIVER') server = os.environ.get('CONTACT_SQL_SERVER') database = os.environ.get('CONTACT_SQL_DB') username = os.environ.get('CONTACT...
28.977778
127
0.68635
77d58ca19b534449cc89976ecbaf5bc5474e985e
14,960
py
Python
Project_03_Books/src/game.py
moniqklimek/training
51504ab839ed4b5ccc5731662a5077d5db334b93
[ "MIT" ]
null
null
null
Project_03_Books/src/game.py
moniqklimek/training
51504ab839ed4b5ccc5731662a5077d5db334b93
[ "MIT" ]
null
null
null
Project_03_Books/src/game.py
moniqklimek/training
51504ab839ed4b5ccc5731662a5077d5db334b93
[ "MIT" ]
null
null
null
import json import pprint """ TITLE: imagine buy in bookshoop - interaktive fun with User :) ISSUE : help you choose the right item, get to know the User's preferences, i.e. - the thematic category that interests him, the results improved for him, a detailed description of the selected item assumptions: no method h...
43.74269
281
0.657754
77d754abc0dd2b42226712db869734718758f2ec
1,592
py
Python
books_and_chapters/urls.py
assulthoni/Django-Bookworm
d816c099b1eaceff05958ed3bf9e7dd611e9b5fd
[ "MIT" ]
null
null
null
books_and_chapters/urls.py
assulthoni/Django-Bookworm
d816c099b1eaceff05958ed3bf9e7dd611e9b5fd
[ "MIT" ]
null
null
null
books_and_chapters/urls.py
assulthoni/Django-Bookworm
d816c099b1eaceff05958ed3bf9e7dd611e9b5fd
[ "MIT" ]
null
null
null
"""django_bookworm.books_and_chapters URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.hom...
49.75
100
0.723618
77d8b870eb29ec01acb07c7f782c1ca8e13356c3
573
py
Python
manage.py
mwaiyusuf/news_highlight
dfae21f67c3bbe20521a5c3c96a0a6a759fbd8fb
[ "MIT" ]
null
null
null
manage.py
mwaiyusuf/news_highlight
dfae21f67c3bbe20521a5c3c96a0a6a759fbd8fb
[ "MIT" ]
null
null
null
manage.py
mwaiyusuf/news_highlight
dfae21f67c3bbe20521a5c3c96a0a6a759fbd8fb
[ "MIT" ]
null
null
null
from app import create_app from flask_script import Manager,Server #initialise our extensions and server class that aid in launching of our server # Creating app instance app = create_app('development') manager = Manager(app) manager.add_command('server',Server) #launch app server if __name__ == '__main__': #checks i...
30.157895
119
0.743455
77d998bd3b17f3da023e7ce99e510488aaf3a564
9,384
py
Python
src/robotrunner.py
bbokser/hopper-mpc-simple
51fd3c0cb515d32b2a9cce93a0db45dddf95174c
[ "MIT" ]
null
null
null
src/robotrunner.py
bbokser/hopper-mpc-simple
51fd3c0cb515d32b2a9cce93a0db45dddf95174c
[ "MIT" ]
null
null
null
src/robotrunner.py
bbokser/hopper-mpc-simple
51fd3c0cb515d32b2a9cce93a0db45dddf95174c
[ "MIT" ]
null
null
null
""" Copyright (C) 2020-2022 Benjamin Bokser """ import plots import mpc_cvx # import time # import sys import numpy as np import copy from scipy.linalg import expm import itertools np.set_printoptions(suppress=True, linewidth=np.nan)
43.646512
120
0.494991
77ddff0fe98781dd316cac4d51b90e21e33f27de
6,122
py
Python
toy_example.py
chuchienshu/Pytorch-color-work
d4a6d052bd39e815f2303bc1583e2bc9bdb6cce3
[ "MIT" ]
null
null
null
toy_example.py
chuchienshu/Pytorch-color-work
d4a6d052bd39e815f2303bc1583e2bc9bdb6cce3
[ "MIT" ]
null
null
null
toy_example.py
chuchienshu/Pytorch-color-work
d4a6d052bd39e815f2303bc1583e2bc9bdb6cce3
[ "MIT" ]
null
null
null
from sklearn.neighbors import NearestNeighbors import numpy as np import torch import torch.nn as nn from torch.autograd import Variable def check_value(inds, val): ''' Check to see if an array is a single element equaling a particular value for pre-processing inputs in a function ''' if(np.array(inds).siz...
32.913978
128
0.611728
77de70d6830250aef1c075b8acbbc068d1dc4029
348
py
Python
setup.py
SimonLarsen/python-endktheme
2c942a682eb258f1d8b5fee80b93b9565a7ebde7
[ "MIT" ]
null
null
null
setup.py
SimonLarsen/python-endktheme
2c942a682eb258f1d8b5fee80b93b9565a7ebde7
[ "MIT" ]
null
null
null
setup.py
SimonLarsen/python-endktheme
2c942a682eb258f1d8b5fee80b93b9565a7ebde7
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import endktheme setup( name="endktheme", description="Visualization themes following Energinet's design guide.", version=endktheme.__version__, author="Simon J. Larsen", author_email="simonhffh@gmail.com", license="MIT", packages=find_packages(),...
24.857143
75
0.724138
77e1bd1a557254805b1a9b3ba5eb391f9c2baece
1,630
py
Python
async_downloads/views.py
QuickRelease/django-async-downloads
7a0090e94fe8b5ee78f6175ed877a9b04aa475d7
[ "MIT" ]
1
2021-08-19T23:56:23.000Z
2021-08-19T23:56:23.000Z
async_downloads/views.py
QuickRelease/django-async-downloads
7a0090e94fe8b5ee78f6175ed877a9b04aa475d7
[ "MIT" ]
11
2020-07-22T15:21:14.000Z
2022-03-22T13:02:37.000Z
async_downloads/views.py
QuickRelease/django-async-downloads
7a0090e94fe8b5ee78f6175ed877a9b04aa475d7
[ "MIT" ]
1
2022-01-05T07:45:42.000Z
2022-01-05T07:45:42.000Z
import os from django.contrib.auth.decorators import login_required from django.core.cache import cache from django.core.files.storage import default_storage from django.http import JsonResponse, HttpResponse from django.template.loader import render_to_string from async_downloads.cache import get_collection_key from...
32.6
82
0.698773
77e1cf7fad88dd83f35688487683b7260d719151
517
py
Python
dltranz/data_load/augmentations/drop_day.py
KirillVladimirov/pytorch-lifestream
83005b950d41de8afc11711fc955ffafb5ff7a9e
[ "Apache-2.0" ]
null
null
null
dltranz/data_load/augmentations/drop_day.py
KirillVladimirov/pytorch-lifestream
83005b950d41de8afc11711fc955ffafb5ff7a9e
[ "Apache-2.0" ]
null
null
null
dltranz/data_load/augmentations/drop_day.py
KirillVladimirov/pytorch-lifestream
83005b950d41de8afc11711fc955ffafb5ff7a9e
[ "Apache-2.0" ]
1
2022-02-05T15:06:48.000Z
2022-02-05T15:06:48.000Z
import numpy as np import torch
25.85
56
0.634429
77e1ec7bc5d891f1b7dd17ef8b326f42e0381896
371
py
Python
app/api_1_0/books.py
zheng-zy/flask_app
f9a720d76906bfbd48e2b28cf10c0923b9314649
[ "Apache-2.0" ]
null
null
null
app/api_1_0/books.py
zheng-zy/flask_app
f9a720d76906bfbd48e2b28cf10c0923b9314649
[ "Apache-2.0" ]
null
null
null
app/api_1_0/books.py
zheng-zy/flask_app
f9a720d76906bfbd48e2b28cf10c0923b9314649
[ "Apache-2.0" ]
null
null
null
#!usr/bin/env python # coding=utf-8 # Created by zhezhiyong@163.com on 2016/11/17. from flask import jsonify from . import api from .. import mongodb
18.55
46
0.619946
77e475b891c5acd960168cb4f57e50fe78d26b08
270
py
Python
distrib/tests_platane.py
BonJovi1/Bullet-the-Blue-Sky
9ebf41fc85ccf9f8e2880acdafc6dfffd8a0268f
[ "WTFPL" ]
2
2019-10-13T02:56:35.000Z
2020-04-04T08:57:13.000Z
distrib/tests_platane.py
BonJovi1/Bullet-the-Blue-Sky
9ebf41fc85ccf9f8e2880acdafc6dfffd8a0268f
[ "WTFPL" ]
null
null
null
distrib/tests_platane.py
BonJovi1/Bullet-the-Blue-Sky
9ebf41fc85ccf9f8e2880acdafc6dfffd8a0268f
[ "WTFPL" ]
null
null
null
from utils import * Clean() HgUpdate21() PatchAll() Build_VC11Express_64() OptimusForceIntel() RunAll() OptimusForceNVIDIA() RunAll() Clean() HgUpdate33() PatchAll() Build_VC11Express_64() OptimusForceNVIDIA() RunAll() Clean() HgUpdate33()
11.25
23
0.692593
77e5180d6ab5330f71187b669f22ec6397e5429c
514
py
Python
custom/_legacy/pact/reports/admin_reports.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
custom/_legacy/pact/reports/admin_reports.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
custom/_legacy/pact/reports/admin_reports.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
from corehq.apps.reports.generic import GenericTabularReport from corehq.apps.reports.standard import CustomProjectReport
24.47619
65
0.725681
77e99bc3b885eac60af8099d66d105d9eea0d121
4,807
py
Python
tests/test_helper.py
INM-6/correlation-toolbox
26b9e999069990a8b756d8a4d880bd152f95149f
[ "MIT" ]
1
2018-10-12T22:54:16.000Z
2018-10-12T22:54:16.000Z
tests/test_helper.py
INM-6/correlation-toolbox
26b9e999069990a8b756d8a4d880bd152f95149f
[ "MIT" ]
6
2017-04-03T07:44:17.000Z
2018-06-08T08:37:47.000Z
tests/test_helper.py
INM-6/correlation-toolbox
26b9e999069990a8b756d8a4d880bd152f95149f
[ "MIT" ]
2
2017-04-05T04:42:12.000Z
2018-07-17T11:43:24.000Z
# global imports import unittest import numpy as np from future.builtins import range # local imports import correlation_toolbox.helper as cthlp if __name__ == '__main__': unittest.main()
44.100917
78
0.607239
77ea483e2f5d12c57ce4e04b7312ab2402473ea4
47
py
Python
input.py
rooch001/RaspberryPi-DTU
baea2ad7a2eb8bdc45b56d6bde5d5bd3e3c30cfd
[ "MIT" ]
null
null
null
input.py
rooch001/RaspberryPi-DTU
baea2ad7a2eb8bdc45b56d6bde5d5bd3e3c30cfd
[ "MIT" ]
null
null
null
input.py
rooch001/RaspberryPi-DTU
baea2ad7a2eb8bdc45b56d6bde5d5bd3e3c30cfd
[ "MIT" ]
null
null
null
import os import shutil print(os.listdir('/'))
11.75
22
0.723404
77eb25a04371bec64faee1671d09a1d02f6b7e59
3,783
py
Python
Tareas/Tarea_4.py
JESUS-2120/Python_2
b1854b4118215684eb1adb5acdbc3313c2a15f20
[ "Apache-2.0" ]
null
null
null
Tareas/Tarea_4.py
JESUS-2120/Python_2
b1854b4118215684eb1adb5acdbc3313c2a15f20
[ "Apache-2.0" ]
null
null
null
Tareas/Tarea_4.py
JESUS-2120/Python_2
b1854b4118215684eb1adb5acdbc3313c2a15f20
[ "Apache-2.0" ]
null
null
null
''' NAME Tarea_4.py VERSION 1.0 AUTHOR Victor Jesus Enriquez Castro <victorec@lcg.unam.mx> DESCRIPTION Empleando Entrez.einfo y ENtrez.read el programa imprime la descripcion de los campos FieldList y LinkList en la base de datos protein, de la misma ...
32.333333
168
0.68755
77ebdf9ca9d4616e429b8e92977f8018b29b5675
3,464
py
Python
HDPython/v_enum.py
HardwareDesignWithPython/HDPython
aade03aaa092b1684fa12bffd17674cf1c45f5ac
[ "MIT" ]
null
null
null
HDPython/v_enum.py
HardwareDesignWithPython/HDPython
aade03aaa092b1684fa12bffd17674cf1c45f5ac
[ "MIT" ]
null
null
null
HDPython/v_enum.py
HardwareDesignWithPython/HDPython
aade03aaa092b1684fa12bffd17674cf1c45f5ac
[ "MIT" ]
1
2021-10-20T20:08:16.000Z
2021-10-20T20:08:16.000Z
import os,sys,inspect from HDPython.base import * from HDPython.v_symbol import v_symbol from HDPython.primitive_type_converter import get_primitive_hdl_converter from HDPython.lib_enums import varSig, InOut_t
28.162602
134
0.602483
77ecf310ae779764d67ed3eb67a498968e7015a3
2,146
py
Python
setup.py
Frojd/Fabrik
9f2edbba97a7fd236b72a9b3010f6e912ab5c001
[ "MIT" ]
12
2015-11-03T20:41:29.000Z
2019-02-15T17:13:27.000Z
setup.py
Frojd/Fabrik
9f2edbba97a7fd236b72a9b3010f6e912ab5c001
[ "MIT" ]
35
2015-08-23T17:10:00.000Z
2017-05-10T12:08:57.000Z
setup.py
Frojd/Fabrik
9f2edbba97a7fd236b72a9b3010f6e912ab5c001
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import pip from setuptools import setup, find_packages import fabrik if sys.argv[-1] == "publish": os.system("python setup.py sdist upload") sys.exit() package_exclude = ("tests*", "examples*") packages = find_packages(exclude=package_exclu...
26.825
76
0.596925
77ed35b54ba191d21237cd5df4a01654fd2c195e
14
py
Python
utokenize/testdata/comment_intra.py
MaxTurchin/pycopy-lib
d7a69fc2a28031e2ca475c29239f715c1809d8cc
[ "PSF-2.0" ]
126
2019-07-19T14:42:41.000Z
2022-03-21T22:22:19.000Z
utokenize/testdata/comment_intra.py
MaxTurchin/pycopy-lib
d7a69fc2a28031e2ca475c29239f715c1809d8cc
[ "PSF-2.0" ]
38
2019-08-28T01:46:31.000Z
2022-03-17T05:46:51.000Z
utokenize/testdata/comment_intra.py
MaxTurchin/pycopy-lib
d7a69fc2a28031e2ca475c29239f715c1809d8cc
[ "PSF-2.0" ]
55
2019-08-02T09:32:33.000Z
2021-12-22T11:25:51.000Z
foo # comment
7
13
0.714286
77efdc6a298f42286268601e0029f556def6374b
12,607
py
Python
tool.py
Illidanz/MonoPriTranslation
2cff8fe3133d76e1311273ef3b54dde428151390
[ "MIT" ]
3
2021-10-31T04:20:16.000Z
2022-02-16T04:12:57.000Z
tool.py
Illidanz/MonoPriTranslation
2cff8fe3133d76e1311273ef3b54dde428151390
[ "MIT" ]
1
2021-11-01T10:27:59.000Z
2021-11-01T10:27:59.000Z
tool.py
Illidanz/MonoPriTranslation
2cff8fe3133d76e1311273ef3b54dde428151390
[ "MIT" ]
null
null
null
import codecs import csv import filecmp import os import time import click import pyimgur import requests from zipfile import ZipFile, ZIP_DEFLATED from hacktools import common, wii version = "1.5.5" isofile = "data/disc.iso" infolder = "data/extract/" outfolder = "data/repack/" replacefolder = "data/replace/" fontin ...
43.622837
129
0.560482
77f166eca841bd7df6212b114048257be00c424b
50,437
py
Python
sequana/bedtools.py
brwnj/sequana
58f6ca47815bf7253f27e4631d971a0a479c3a63
[ "BSD-3-Clause" ]
null
null
null
sequana/bedtools.py
brwnj/sequana
58f6ca47815bf7253f27e4631d971a0a479c3a63
[ "BSD-3-Clause" ]
null
null
null
sequana/bedtools.py
brwnj/sequana
58f6ca47815bf7253f27e4631d971a0a479c3a63
[ "BSD-3-Clause" ]
1
2019-10-11T18:21:05.000Z
2019-10-11T18:21:05.000Z
# -*- coding: utf-8 -*- # # This file is part of Sequana software # # Copyright (c) 2016 - Sequana Development Team # # File author(s): # Thomas Cokelaer <thomas.cokelaer@pasteur.fr> # Dimitri Desvillechabrol <dimitri.desvillechabrol@pasteur.fr>, # <d.desvillechabrol@gmail.com> # # Distributed un...
36.761662
97
0.5606
77f172359238ee4f9aa64dd9f0ca2c3d158a0bf1
1,989
py
Python
tests/feed/test_refresh_user_feeds.py
sslavov93/rss_scraper
4621e01b295de341d0921cade026b406f2b389e3
[ "MIT" ]
1
2020-09-17T12:40:34.000Z
2020-09-17T12:40:34.000Z
tests/feed/test_refresh_user_feeds.py
sslavov93/rss_scraper
4621e01b295de341d0921cade026b406f2b389e3
[ "MIT" ]
null
null
null
tests/feed/test_refresh_user_feeds.py
sslavov93/rss_scraper
4621e01b295de341d0921cade026b406f2b389e3
[ "MIT" ]
null
null
null
from unittest.mock import patch from feed.models import FeedItem from tests import BaseTestFixture, basic_auth_headers
38.25
86
0.691302