hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
dcca7131726cc736db9713ef7e9fc6e4d4c07906
226
py
Python
sites/newbrandx/rankx/admin.py
jackytu/newbrandx
19569a725bef86a77e94009353e7be5fc6f1b993
[ "BSD-3-Clause" ]
null
null
null
sites/newbrandx/rankx/admin.py
jackytu/newbrandx
19569a725bef86a77e94009353e7be5fc6f1b993
[ "BSD-3-Clause" ]
null
null
null
sites/newbrandx/rankx/admin.py
jackytu/newbrandx
19569a725bef86a77e94009353e7be5fc6f1b993
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Milk from .models import Brand from .models import Company admin.site.register(Milk) admin.site.register(Brand) admin.site.register(Company)
18.833333
32
0.800885
0
0
0
0
0
0
0
0
28
0.123894
dcca9238b45a4d07ef66ddc0ab5b12946af6ccf6
24
py
Python
class.py
adadesions/python_class
f593cdf3887bff17de05958751e1b080a0a8162e
[ "MIT" ]
null
null
null
class.py
adadesions/python_class
f593cdf3887bff17de05958751e1b080a0a8162e
[ "MIT" ]
null
null
null
class.py
adadesions/python_class
f593cdf3887bff17de05958751e1b080a0a8162e
[ "MIT" ]
null
null
null
""" class lesson """
8
16
0.458333
0
0
0
0
0
0
0
0
24
1
dccc2de6c78a75b6d941a646536abd681d5266d8
9,797
py
Python
Paddle_ChineseBert/PaddleNLP/paddlenlp/transformers/chinesebert/tokenizer.py
jiaqianjing/ChineseBERT-Paddle
c4a1a7d08eb8e4b3de1b8e0fb9cefeb7dc0451be
[ "MIT" ]
1
2022-02-25T11:28:31.000Z
2022-02-25T11:28:31.000Z
Paddle_ChineseBert/PaddleNLP/paddlenlp/transformers/chinesebert/tokenizer.py
jiaqianjing/ChineseBERT-Paddle
c4a1a7d08eb8e4b3de1b8e0fb9cefeb7dc0451be
[ "MIT" ]
null
null
null
Paddle_ChineseBert/PaddleNLP/paddlenlp/transformers/chinesebert/tokenizer.py
jiaqianjing/ChineseBERT-Paddle
c4a1a7d08eb8e4b3de1b8e0fb9cefeb7dc0451be
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : tokenzier.py @Time : 2021/09/11 16:00:04 @Author : Jia Qianjing @Version : 1.0 @Contact : jiaqianjing@gmail.com @Desc : None ''' import json import os from typing import List import numpy as np from pypinyin import Style, pinyin from .....
39.031873
104
0.526488
9,472
0.957251
0
0
189
0.019101
0
0
1,892
0.191208
dccc3770539a345be610b7f21997fe1acd9b086e
9,949
py
Python
train.py
w86763777/pytorch-simple-yolov3
fb08b7c83493bdad3c0d60f8446a2018827b53a1
[ "WTFPL" ]
null
null
null
train.py
w86763777/pytorch-simple-yolov3
fb08b7c83493bdad3c0d60f8446a2018827b53a1
[ "WTFPL" ]
null
null
null
train.py
w86763777/pytorch-simple-yolov3
fb08b7c83493bdad3c0d60f8446a2018827b53a1
[ "WTFPL" ]
null
null
null
import os import argparse from collections import defaultdict import torch import torch.distributed as dist from torch.nn.parallel import DistributedDataParallel as DDP from torch.multiprocessing import Process from tqdm import trange from tensorboardX import SummaryWriter from pycocotools.coco import COCO from yolov...
37.123134
82
0.609911
0
0
250
0.025128
0
0
0
0
1,878
0.188763
dcccd3460841aa56fdd3f12e2c4b74b5af2f3969
1,708
py
Python
progress.py
zzeleznick/config
f7d519004573968aa47fff850480618fd57dc0d1
[ "MIT" ]
null
null
null
progress.py
zzeleznick/config
f7d519004573968aa47fff850480618fd57dc0d1
[ "MIT" ]
null
null
null
progress.py
zzeleznick/config
f7d519004573968aa47fff850480618fd57dc0d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=UTF-8 import sys from blessings import Terminal import time import numpy as np import argparse # import subprocess; # subprocess.call(["printf", "\033c"]); def process_input(): out = None args = sys.argv[1:] if args: out = args[0] return out def main(): sys.s...
25.878788
72
0.522834
0
0
0
0
0
0
0
0
225
0.131733
dccdd28cc039a3a5144b0d2df2b3d0fb83817707
3,359
py
Python
misc/jarvis-dsc-bot/challenge/bot.py
PWrWhiteHats/BtS-CTF-Challenges-03-2021
545880c414a6c55fe216d71f9eee2f54f64bb070
[ "MIT" ]
7
2021-03-14T16:34:56.000Z
2022-01-18T16:46:25.000Z
misc/jarvis-dsc-bot/challenge/bot.py
PWrWhiteHats/BtS-CTF-Challenges-03-2021
545880c414a6c55fe216d71f9eee2f54f64bb070
[ "MIT" ]
4
2021-03-19T16:09:12.000Z
2022-03-12T00:55:12.000Z
misc/jarvis-dsc-bot/challenge/bot.py
PWrWhiteHats/BtS-CTF-Challenges-03-2021
545880c414a6c55fe216d71f9eee2f54f64bb070
[ "MIT" ]
null
null
null
# bot.py import os import discord from discord.ext import commands from dotenv import load_dotenv from time import sleep load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') try: with open('/app/flag.txt', 'r') as r: FLAG = r.read().strip() except FileNotFoundError: FLAG = os.getenv('FLAG', 'bts{tmpflag}...
31.990476
134
0.677583
0
0
0
0
2,865
0.852932
2,577
0.767193
1,396
0.4156
dccfb668a1df9c3316a2a14e3756a083e3ab3839
3,734
py
Python
google/ads/google_ads/v4/proto/services/campaign_bid_modifier_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v4/proto/services/campaign_bid_modifier_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v4/proto/services/campaign_bid_modifier_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.ads.google_ads.v4.proto.resources import campaign_bid_modifier_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2 from google.ads.google_ads.v4.proto.services import campaign_bid_...
53.342857
186
0.831012
2,043
0.547134
0
0
0
0
0
0
911
0.243974
dccfcf5fe340584cacae04463285d5b6a560f3d3
4,369
py
Python
readthedocs/oauth/models.py
adrianmugnoz/Documentacion-universidades
0e088718cdfdb2c9c52118c181def8086c821b1e
[ "MIT" ]
1
2019-05-07T15:08:53.000Z
2019-05-07T15:08:53.000Z
readthedocs/oauth/models.py
mba811/readthedocs.org
b882cec8c0e7d741d3c58af2f6d0f48d1a123f8d
[ "MIT" ]
null
null
null
readthedocs/oauth/models.py
mba811/readthedocs.org
b882cec8c0e7d741d3c58af2f6d0f48d1a123f8d
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ class GithubOrganization(models.Model): # Auto fields pub_date = models.DateTimeField(_('Publication date'), auto_now_add=True) modified_date = models.DateTimeField(_('Modified ...
46.978495
98
0.673838
4,228
0.967727
0
0
0
0
0
0
767
0.175555
dcd1979ad4bab59c6389ed6cdcd41efd03611f23
8,840
py
Python
hg_agent_forwarder/forwarder.py
hostedgraphite/hg-agent-forwarder
b5bc9a69f1cbd49ba925dd33fa4f28617f1e33dc
[ "MIT" ]
null
null
null
hg_agent_forwarder/forwarder.py
hostedgraphite/hg-agent-forwarder
b5bc9a69f1cbd49ba925dd33fa4f28617f1e33dc
[ "MIT" ]
null
null
null
hg_agent_forwarder/forwarder.py
hostedgraphite/hg-agent-forwarder
b5bc9a69f1cbd49ba925dd33fa4f28617f1e33dc
[ "MIT" ]
2
2018-07-17T15:11:38.000Z
2018-08-19T12:16:55.000Z
import threading import Queue import os import logging import json import time import random import requests import multitail2 import errno import tempfile from requests.auth import HTTPBasicAuth from utils import Datapoint class MetricForwarder(threading.Thread): ''' Simple metric data forwarder. Forward...
36.378601
81
0.541176
8,607
0.973643
493
0.055769
0
0
0
0
2,171
0.245588
dcd1af861d1db0434de55a20de85ed1a197219cd
27
py
Python
kutana/__main__.py
ekonda/kutana
902f9d521c10c6c7ccabb1387ee3d87db5e2eba6
[ "MIT" ]
69
2018-10-05T21:42:51.000Z
2022-03-16T17:22:21.000Z
kutana/__main__.py
ekonda/kutana
902f9d521c10c6c7ccabb1387ee3d87db5e2eba6
[ "MIT" ]
41
2018-10-20T09:18:43.000Z
2021-11-22T12:19:44.000Z
kutana/__main__.py
ekonda/kutana
902f9d521c10c6c7ccabb1387ee3d87db5e2eba6
[ "MIT" ]
26
2018-10-20T09:13:42.000Z
2021-12-24T17:01:02.000Z
from .cli import run run()
9
20
0.703704
0
0
0
0
0
0
0
0
0
0
dcd27c7511190004659b9e60ba4a4a26b905d6d5
2,119
py
Python
Chapter9_FormatDetection/pr9_3_1.py
SeventeenChen/Python_Speech_SZY
0074ad1d519387a75d5eca42c77f4d6966eb0a0e
[ "MIT" ]
7
2020-11-23T11:03:43.000Z
2021-10-24T01:26:21.000Z
Chapter9_FormatDetection/pr9_3_1.py
SeventeenChen/Python_Speech_SZY
0074ad1d519387a75d5eca42c77f4d6966eb0a0e
[ "MIT" ]
null
null
null
Chapter9_FormatDetection/pr9_3_1.py
SeventeenChen/Python_Speech_SZY
0074ad1d519387a75d5eca42c77f4d6966eb0a0e
[ "MIT" ]
2
2021-06-23T14:26:13.000Z
2021-06-30T10:39:08.000Z
# # pr9_3_1 from audiolazy import lazy_lpc from scipy.signal import lfilter, find_peaks from LPC import LPC from Universal import * if __name__ == '__main__': filename = 'snn27.wav' speech = Speech() x, fs = speech.audioread(filename, None) # read one frame data u = lfilter(b=np.array([1, -0.99]), a=1, x=x) # ...
30.710145
108
0.601699
0
0
0
0
0
0
0
0
589
0.277961
dcd3f42d79247d516e91a944ac5320d42c096f12
8,356
py
Python
FP - Fundamentals Of Programming/bank-accounts-manager/tests.py
p0licat/university
4c86fd2e7aafb830f7d9cb2d38f96a145b7e7f7b
[ "MIT" ]
2
2018-03-05T14:07:37.000Z
2021-01-24T22:44:24.000Z
FP - Fundamentals Of Programming/bank-accounts-manager/tests.py
p0licat/university
4c86fd2e7aafb830f7d9cb2d38f96a145b7e7f7b
[ "MIT" ]
1
2017-03-08T09:08:29.000Z
2017-03-10T08:23:58.000Z
FP - Fundamentals Of Programming/bank-accounts-manager/tests.py
p0licat/university
4c86fd2e7aafb830f7d9cb2d38f96a145b7e7f7b
[ "MIT" ]
1
2017-03-08T12:25:11.000Z
2017-03-08T12:25:11.000Z
from methods import * ''' This file contains the test functions of every function defined in methods.py, which is imported. This file is imported by the main file ( application.py ) ''' def sort_transactions_test(list_of_transactions): list_of_transactions = [['7', '120', 'out', 'first'], ['7', '105', 'out', 'seco...
43.072165
155
0.602202
0
0
0
0
0
0
0
0
2,285
0.273456
dcd42f2daa76bc524d4c8ee909709be681a4b7f0
679
py
Python
darshan-util/pydarshan/darshan/error.py
gaocegege/darshan
2d54cd8ec96d26db23e9ca421df48d2031a4c55e
[ "mpich2" ]
null
null
null
darshan-util/pydarshan/darshan/error.py
gaocegege/darshan
2d54cd8ec96d26db23e9ca421df48d2031a4c55e
[ "mpich2" ]
null
null
null
darshan-util/pydarshan/darshan/error.py
gaocegege/darshan
2d54cd8ec96d26db23e9ca421df48d2031a4c55e
[ "mpich2" ]
null
null
null
""" Darshan Error classes and functions. """ class DarshanBaseError(Exception): """ Base exception class for Darshan errors in Python. """ pass class DarshanVersionError(NotImplementedError): """ Raised when using a feature which is not provided by libdarshanutil. """ min_version = ...
24.25
103
0.645066
627
0.923417
0
0
0
0
0
0
280
0.412371
dcd4c65a2576a728fe423b160c1c1d7a8fc3fb51
6,618
py
Python
etl_e2e/census_etl/dfxml/python/dfxml/fiwalk.py
thinkmoore/das
d9faabf3de987b890a5079b914f5aba597215b14
[ "CC0-1.0" ]
35
2019-04-16T19:37:01.000Z
2022-02-14T20:33:41.000Z
etl_e2e/census_etl/dfxml/python/dfxml/fiwalk.py
thinkmoore/das
d9faabf3de987b890a5079b914f5aba597215b14
[ "CC0-1.0" ]
17
2021-07-02T21:19:52.000Z
2022-01-27T22:30:19.000Z
etl_e2e/census_etl/dfxml/python/dfxml/fiwalk.py
thinkmoore/das
d9faabf3de987b890a5079b914f5aba597215b14
[ "CC0-1.0" ]
12
2019-05-02T19:38:06.000Z
2021-09-11T22:02:03.000Z
#!/usr/bin/env python # This software was developed in whole or in part by employees of the # Federal Government in the course of their official duties, and with # other Federal assistance. Pursuant to title 17 Section 105 of the # United States Code portions of this software authored by Federal # employees are not su...
37.389831
111
0.653974
1,398
0.211242
0
0
0
0
0
0
2,141
0.323512
dcd4e905ad3640b7680d21aba4cf6c5615e3a1ee
17,684
py
Python
backend/tests/test_response.py
PolyCortex/polydodo
473d5a8b89e9bdb68ba9592241e45d30b86b471c
[ "MIT" ]
13
2020-06-02T03:17:10.000Z
2022-03-23T04:06:52.000Z
backend/tests/test_response.py
PolyCortex/polydodo
473d5a8b89e9bdb68ba9592241e45d30b86b471c
[ "MIT" ]
43
2020-07-15T04:21:06.000Z
2022-03-06T00:32:19.000Z
backend/tests/test_response.py
PolyCortex/polydodo
473d5a8b89e9bdb68ba9592241e45d30b86b471c
[ "MIT" ]
2
2020-12-27T07:21:18.000Z
2021-09-16T20:06:47.000Z
""" Not tested as they seemed obvious: - "SleepTime": 31045, // Total amount of time sleeping including nocturnal awakenings (sleepOffset - sleepOnset) - "WASO": 3932, // Total amount of time passed in nocturnal awakenings. It is the total time passed in non-wake stage // from sleep Onset to sleep offse...
42.30622
117
0.604558
16,837
0.952104
0
0
504
0.0285
0
0
3,740
0.211491
dcd4fad7ef29868c6597c0320970ff225d173cc6
602
py
Python
ver_colores.py
maltenzo/surrendeador
a3a0acbcaafa1ddec451cfaa6a75d850904a01e4
[ "MIT" ]
null
null
null
ver_colores.py
maltenzo/surrendeador
a3a0acbcaafa1ddec451cfaa6a75d850904a01e4
[ "MIT" ]
null
null
null
ver_colores.py
maltenzo/surrendeador
a3a0acbcaafa1ddec451cfaa6a75d850904a01e4
[ "MIT" ]
null
null
null
import mouse import keyboard from PIL import Image import pyscreenshot from time import sleep import os def ver(): while True: img = pyscreenshot.grab() width, height = img.size pixel_values = list(img.getdata()) print (pixel_values[width*mouse.get_position()[1]+mouse.get_position()[0]]) ...
25.083333
81
0.679402
0
0
0
0
0
0
0
0
31
0.051495
dcd6208add7287d2ee89286c6cb5068024c9c289
8,124
py
Python
src/train.py
2212221352/Multimodal-Transformer
7e57e93f75119082ed923a33259f873824c7b300
[ "MIT" ]
null
null
null
src/train.py
2212221352/Multimodal-Transformer
7e57e93f75119082ed923a33259f873824c7b300
[ "MIT" ]
null
null
null
src/train.py
2212221352/Multimodal-Transformer
7e57e93f75119082ed923a33259f873824c7b300
[ "MIT" ]
null
null
null
import torch from torch import nn import sys from src import models from src import ctc from src.utils import * import torch.optim as optim import numpy as np import time from torch.optim.lr_scheduler import ReduceLROnPlateau import os import pickle from sklearn.metrics import classification_report from sklearn.metric...
40.62
133
0.590103
0
0
0
0
0
0
0
0
1,097
0.135032
dcd91413a4ee5c2dc186ccc8e249ed33ec01e5cc
4,145
py
Python
datawin-parse.py
BlackLotus/ogme
c163d51d495e61b96d8123cbb0efe8eae0e4fb66
[ "MIT" ]
null
null
null
datawin-parse.py
BlackLotus/ogme
c163d51d495e61b96d8123cbb0efe8eae0e4fb66
[ "MIT" ]
null
null
null
datawin-parse.py
BlackLotus/ogme
c163d51d495e61b96d8123cbb0efe8eae0e4fb66
[ "MIT" ]
null
null
null
#!/usr/bin/python2 # -*- coding: utf-8 -*- import os, sys import binascii import struct import StringIO # chunk names are 4 bytes long # not quite sure how long the header is but I guess 8 bytes for now :> # actually it's not really a header but the first chunk # 4 bytes for the name (FORM) and 4 bytes for the length ...
30.255474
174
0.587696
0
0
0
0
0
0
0
0
1,674
0.403763
dcd99c7731f5c8f42cf05cb204ee8f7516acc652
413
py
Python
Diena_1_4_thonny/d2_u2_d11.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
8
2020-08-31T16:10:54.000Z
2021-11-24T06:37:37.000Z
Diena_1_4_thonny/d2_u2_d11.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
8
2021-06-08T22:30:29.000Z
2022-03-12T00:48:55.000Z
Diena_1_4_thonny/d2_u2_d11.py
edzya/Python_RTU_08_20
d2921d998c611c18328dd523daf976a27ce858c1
[ "MIT" ]
12
2020-09-28T17:06:52.000Z
2022-02-17T12:12:46.000Z
try: width=float(input("Ieraksti savas istabas platumu (metros): ")) height=float(input("Ieraksti savas istabas augstumu (metros): ")) length=float(input("Ieraksti savas istabas garumu (metros): ")) capacity=round(width*height*length, 2) print(f"Tavas istabas tilpums ir {capacity} m\u00b3.") except ...
45.888889
69
0.714286
0
0
0
0
0
0
0
0
239
0.573141
dcdafaad8c8fc0f7203bbde1fef43d4a96e917bd
1,381
py
Python
javaStringHashCollision.py
VivekYadav7272/hash_code_collisions
98eed61a4a4d69f1c6985ed43f01a18feb2f9605
[ "MIT" ]
null
null
null
javaStringHashCollision.py
VivekYadav7272/hash_code_collisions
98eed61a4a4d69f1c6985ed43f01a18feb2f9605
[ "MIT" ]
null
null
null
javaStringHashCollision.py
VivekYadav7272/hash_code_collisions
98eed61a4a4d69f1c6985ed43f01a18feb2f9605
[ "MIT" ]
null
null
null
# Program to check how effective is Java's String's Hash Collision # for generating hash codes for Indian Phone No.s import random from pprint import pprint SAMPLE_SPACE = 10000 def genJavaHashCode(phone: str) -> int: """ s[0]*31^(n-1) + s[1]*31^(n-2) + … + s[n-1] where : s[i] – is the it...
30.688889
92
0.627806
0
0
0
0
0
0
0
0
655
0.471562
dcdb3ea3ab1893474827b46227655af67fd0f6e0
1,701
py
Python
arrhenuis/termodyn.py
xtotdam/leipzig-report
fe4146f9201a8453683ef1221fc768f135677153
[ "MIT" ]
null
null
null
arrhenuis/termodyn.py
xtotdam/leipzig-report
fe4146f9201a8453683ef1221fc768f135677153
[ "MIT" ]
null
null
null
arrhenuis/termodyn.py
xtotdam/leipzig-report
fe4146f9201a8453683ef1221fc768f135677153
[ "MIT" ]
null
null
null
from arrhenius import stringify """ This script generates cool table with termodynamic parameters, taken from 'termodyn-acid.data.txt' and 'termodyn-anion.data.txt' """ head = ''' \\begin{center} \\begin{tabular}{ x{1cm} x{2cm} x{2cm} x{2cm} x{2cm} x{2cm} } \\hline Acid & E$_A$ \\newline kJ/mol & A \\ne...
36.191489
167
0.542034
0
0
0
0
0
0
0
0
910
0.534979
dcdc34ed85ff8e76e296804c80c837bca03715e7
9,930
py
Python
functree/tree.py
yutayamate/functree-ng
0eeb59c7117c4271125871929f680f660e4a413a
[ "MIT" ]
17
2019-01-17T09:20:50.000Z
2022-02-08T05:49:35.000Z
functree/tree.py
yutayamate/functree-ng
0eeb59c7117c4271125871929f680f660e4a413a
[ "MIT" ]
17
2019-03-26T10:16:10.000Z
2022-03-11T23:38:33.000Z
functree/tree.py
yutayamate/functree-ng
0eeb59c7117c4271125871929f680f660e4a413a
[ "MIT" ]
7
2019-04-30T02:57:58.000Z
2021-09-01T18:53:20.000Z
#!/usr/bin/env python3 import re, copy, urllib.request, urllib.parse, argparse, json import networkx as nx KEGG_DOWNLOAD_HTEXT_ENDPOINT = 'http://www.genome.jp/kegg-bin/download_htext?' EXCLUDES = ['Global and overview maps', 'Drug Development', 'Chemical structure transformation maps'] class Node(dict): def __i...
38.941176
135
0.544411
493
0.049648
0
0
0
0
0
0
1,774
0.178651
dcdd023a81feca70c98120ea168d3604a0c94976
416
py
Python
app/config.py
dogukangungordi/cinetify-Movie
85946010f4471cef0fb42873d50d59493372d060
[ "MIT" ]
null
null
null
app/config.py
dogukangungordi/cinetify-Movie
85946010f4471cef0fb42873d50d59493372d060
[ "MIT" ]
null
null
null
app/config.py
dogukangungordi/cinetify-Movie
85946010f4471cef0fb42873d50d59493372d060
[ "MIT" ]
null
null
null
import os TWO_WEEKS = 1209600 SECRET_KEY = os.getenv('SECRET_KEY', None) assert SECRET_KEY TOKEN_EXPIRES = TWO_WEEKS DATABASE_URL = os.getenv( 'DATABASE_URL', 'postgres://postgres@{0}:5432/postgres'.format(os.getenv('DB_PORT_5432_TCP_ADDR', None))) assert DATABASE_URL REDIS_HOST = os.getenv('REDIS_HOST', ...
23.111111
93
0.759615
0
0
0
0
0
0
0
0
142
0.341346
dcdd6e685bb422c18bab7a2d6e2b60a9ba328309
597
py
Python
2020/day02/password_philosopy.py
rycmak/advent-of-code
2a3289516f4c1d0bc1d24a38d495a93edcb19e29
[ "MIT" ]
1
2021-03-03T01:40:09.000Z
2021-03-03T01:40:09.000Z
2020/day02/password_philosopy.py
rycmak/advent-of-code
2a3289516f4c1d0bc1d24a38d495a93edcb19e29
[ "MIT" ]
null
null
null
2020/day02/password_philosopy.py
rycmak/advent-of-code
2a3289516f4c1d0bc1d24a38d495a93edcb19e29
[ "MIT" ]
null
null
null
file = open("input.txt", "r") num_valid = 0 for line in file: # policy = part before colon policy = line.strip().split(":")[0] # get min/max number allowed for given letter min_max = policy.split(" ")[0] letter = policy.split(" ")[1] min = int(min_max.split("-")[0]) max = int(min_max.split("-")[1]) ...
28.428571
69
0.644891
0
0
0
0
0
0
0
0
228
0.38191
dcddcfee3d5454fe6a00d6247e9174457baf2d21
4,209
py
Python
tools/config_setting.py
JBoRu/IMN-Pytorch-implement
2e605353a2f9aac2c151b72c40a19eb2a9eb9967
[ "MIT" ]
1
2020-05-08T02:03:20.000Z
2020-05-08T02:03:20.000Z
tools/config_setting.py
JBoRu/IMN-Pytorch-implement
2e605353a2f9aac2c151b72c40a19eb2a9eb9967
[ "MIT" ]
1
2021-07-21T07:33:23.000Z
2021-07-22T02:09:55.000Z
tools/config_setting.py
JBoRu/IMN-Pytorch-implement
2e605353a2f9aac2c151b72c40a19eb2a9eb9967
[ "MIT" ]
null
null
null
import argparse import logging import numpy as np def Parse_Arguments(): parser = argparse.ArgumentParser() # argument related to datasets and data preprocessing parser.add_argument("--domain", dest="domain", type=str, metavar='<str>', default='res', help="domain of the corpus {res, lt, res_15}") ...
89.553191
195
0.703968
0
0
0
0
0
0
0
0
2,216
0.526491
dcde4bcab3184fcfb3d10a1de327eba5c84c244b
3,503
py
Python
data_loader.py
franpena-kth/learning-deep-learning
9cd287b602dee1358672c4189445721a9c24f107
[ "MIT" ]
null
null
null
data_loader.py
franpena-kth/learning-deep-learning
9cd287b602dee1358672c4189445721a9c24f107
[ "MIT" ]
null
null
null
data_loader.py
franpena-kth/learning-deep-learning
9cd287b602dee1358672c4189445721a9c24f107
[ "MIT" ]
null
null
null
import h5py import numpy import sklearn import sklearn.datasets from matplotlib import pyplot def load_dataset(): data_dir = '/Users/fpena/Courses/Coursera-Deep-Learning/Assignments/datasets/' train_dataset = h5py.File(data_dir + 'train_catvnoncat.h5', "r") train_set_x_orig = numpy.array(train_dataset["t...
40.264368
112
0.666572
0
0
0
0
0
0
0
0
708
0.202112
dce163daae46473015d3b2a1132e2c0325c306ae
669
py
Python
landmarkrest/field_predictor/field_models/TwoDigitYear.py
inferlink/landmark-rest
5bda40424bd1d62c64c9f4931855b4e341742b95
[ "BSD-4-Clause" ]
null
null
null
landmarkrest/field_predictor/field_models/TwoDigitYear.py
inferlink/landmark-rest
5bda40424bd1d62c64c9f4931855b4e341742b95
[ "BSD-4-Clause" ]
null
null
null
landmarkrest/field_predictor/field_models/TwoDigitYear.py
inferlink/landmark-rest
5bda40424bd1d62c64c9f4931855b4e341742b95
[ "BSD-4-Clause" ]
null
null
null
from BaseModel import BaseModel class TwoDigitYear(BaseModel): def __init__(self): super(TwoDigitYear, self).__init__() def generate_confidence(self, preceding_stripes, slot_values, following_stripes): # only care about ints for this model, so strip out anything that isn't valid_valu...
33.45
87
0.630792
634
0.947683
0
0
0
0
0
0
89
0.133034
dce57c487095cb71ffd506dd3c16e7691af00444
5,078
py
Python
compressor.py
kunliu7/compress_2RDM
29ffa35ae5172d897fefb431b7894cdaf38b91ae
[ "MIT" ]
null
null
null
compressor.py
kunliu7/compress_2RDM
29ffa35ae5172d897fefb431b7894cdaf38b91ae
[ "MIT" ]
null
null
null
compressor.py
kunliu7/compress_2RDM
29ffa35ae5172d897fefb431b7894cdaf38b91ae
[ "MIT" ]
null
null
null
import numpy as np class Compressor(): def __init__(self, num_particles: int, num_spin_orbitals: int, rdm_ideal=None) -> None: self.num_particles = num_particles self.num_spin_orbitals = num_spin_orbitals self.rdm_ideal = rdm_ideal pass def compress(self, rdm): ...
31.153374
99
0.541355
5,056
0.995668
0
0
1,495
0.294407
0
0
1,412
0.278062
dce5e9ef143c58e970f4648e4aa54bd55e17fa5f
5,285
py
Python
Lib/site-packages/node/tests/test_lifecycle.py
Dr8Ninja/ShareSpace
7b445783a313cbdebb1938e824e98370a42def5f
[ "MIT" ]
11
2015-04-02T17:47:44.000Z
2020-10-26T20:27:43.000Z
Lib/site-packages/node/tests/test_lifecycle.py
Dr8Ninja/ShareSpace
7b445783a313cbdebb1938e824e98370a42def5f
[ "MIT" ]
5
2017-01-18T11:05:42.000Z
2019-03-30T06:19:21.000Z
Lib/site-packages/node/tests/test_lifecycle.py
Dr8Ninja/ShareSpace
7b445783a313cbdebb1938e824e98370a42def5f
[ "MIT" ]
2
2015-09-15T06:50:22.000Z
2016-12-01T11:12:01.000Z
from node.behaviors import Attributes from node.behaviors import AttributesLifecycle from node.behaviors import DefaultInit from node.behaviors import DictStorage from node.behaviors import Lifecycle from node.behaviors import NodeAttributes from node.behaviors import Nodespaces from node.behaviors import Nodify from n...
30.373563
79
0.652602
3,863
0.730937
0
0
363
0.068685
0
0
782
0.147966
dce61460a569ea1c684c33c8c9a8695d6d330978
547
py
Python
sources/t08/t08ej02.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t08/t08ej02.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t08/t08ej02.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
class Empleado(object): "Clase para definir a un empleado" def __init__(self, nombre, email): self.nombre = nombre self.email = email def getNombre(self): return self.nombre jorge = Empleado("Jorge", "jorge@mail.com") jorge.guapo = "Por supuesto" # Probando hasattr, getattr, seta...
27.35
51
0.670932
210
0.383212
0
0
0
0
0
0
208
0.379562
dce6dd052404f932eea34b3955c8909dbf822ff0
852
py
Python
utils/label_smoothing.py
wdjose/keyword-transformer
ded7ee4dae3e0a164f6f2ebb46c105431aadc9d1
[ "MIT" ]
9
2021-05-15T17:57:50.000Z
2022-03-28T14:39:43.000Z
utils/label_smoothing.py
wdjose/kws-transformer
ded7ee4dae3e0a164f6f2ebb46c105431aadc9d1
[ "MIT" ]
null
null
null
utils/label_smoothing.py
wdjose/kws-transformer
ded7ee4dae3e0a164f6f2ebb46c105431aadc9d1
[ "MIT" ]
2
2021-05-15T18:01:36.000Z
2021-06-02T06:22:43.000Z
import torch from torch import nn # LabelSmoothingLoss from: https://github.com/dreamgonfly/transformer-pytorch/blob/master/losses.py # License: https://github.com/dreamgonfly/transformer-pytorch/blob/master/LICENSE class LabelSmoothingLoss(nn.Module): def __init__(self, classes, smoothing=0.0): super(Labe...
42.6
99
0.67723
634
0.744131
0
0
0
0
0
0
180
0.211268
dce816b69b0582baaf4d9c46666864b3035d5fab
931
py
Python
lib/west_tools/westpa/reweight/__init__.py
ajoshpratt/westpa
545a42a5ae4cfa77de0e125a38a5b1ec2b9ab218
[ "MIT" ]
1
2019-12-21T09:11:54.000Z
2019-12-21T09:11:54.000Z
lib/west_tools/westpa/reweight/__init__.py
astatide/westpa
545a42a5ae4cfa77de0e125a38a5b1ec2b9ab218
[ "MIT" ]
1
2020-04-14T20:49:38.000Z
2020-04-14T20:49:38.000Z
lib/west_tools/westpa/reweight/__init__.py
ajoshpratt/westpa
545a42a5ae4cfa77de0e125a38a5b1ec2b9ab218
[ "MIT" ]
1
2020-04-14T20:42:11.000Z
2020-04-14T20:42:11.000Z
# Copyright (C) 2017 Matthew C. Zwier and Lillian T. Chong # # This file is part of WESTPA. # # WESTPA is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any...
33.25
72
0.765843
0
0
0
0
0
0
0
0
760
0.816327
dce9049b9ad5800c270533fc62b259d65fd6b5da
3,044
py
Python
platforms/m3/programming/mbus_message.py
lab11/M-ulator
95b49c6194678c74accca4a20af71380efbcac5f
[ "Apache-2.0", "MIT" ]
19
2015-01-26T10:47:23.000Z
2021-08-13T11:07:54.000Z
platforms/m3/programming/mbus_message.py
lab11/M-ulator
95b49c6194678c74accca4a20af71380efbcac5f
[ "Apache-2.0", "MIT" ]
14
2015-08-24T02:35:46.000Z
2021-05-05T03:53:44.000Z
platforms/m3/programming/mbus_message.py
lab11/M-ulator
95b49c6194678c74accca4a20af71380efbcac5f
[ "Apache-2.0", "MIT" ]
9
2015-05-27T23:27:35.000Z
2020-10-05T22:02:43.000Z
#!/usr/bin/python import sys import logging from m3_common import m3_common #m3_common.configure_root_logger() #logger = logging.getLogger(__name__) from m3_logging import get_logger logger = get_logger(__name__) class mbus_message_generator(m3_common): TITLE = "MBus Message Generator" def add_parse_args(...
33.450549
96
0.654402
895
0.294021
0
0
0
0
0
0
966
0.317346
dce928dcf018f001f3c1247ee7dfb3079e1b064c
1,172
py
Python
test/test_nn/test_distribution/test_gaussian.py
brunomaga/PRML
47d9830b39e91690cedb27003934df85cfb8c5c7
[ "MIT" ]
11,017
2017-07-03T03:06:25.000Z
2022-03-30T18:47:20.000Z
test/test_nn/test_distribution/test_gaussian.py
brunomaga/PRML
47d9830b39e91690cedb27003934df85cfb8c5c7
[ "MIT" ]
21
2017-08-13T01:35:41.000Z
2022-03-21T06:25:09.000Z
test/test_nn/test_distribution/test_gaussian.py
brunomaga/PRML
47d9830b39e91690cedb27003934df85cfb8c5c7
[ "MIT" ]
3,417
2017-07-05T12:55:52.000Z
2022-03-30T18:47:27.000Z
import unittest import numpy as np import prml.nn as nn class TestGaussian(unittest.TestCase): def test_gaussian_draw_forward(self): mu = nn.array(0) sigma = nn.softplus(nn.array(-1)) gaussian = nn.Gaussian(mu, sigma) sample = [] for _ in range(1000): sample.ap...
32.555556
93
0.598123
1,064
0.90785
0
0
0
0
0
0
10
0.008532
dce9859de967085bbcf63975cb47a3c6a5bf26ec
1,087
py
Python
monsterapi/migrations/0023_check.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
1
2018-11-05T13:08:48.000Z
2018-11-05T13:08:48.000Z
monsterapi/migrations/0023_check.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
null
null
null
monsterapi/migrations/0023_check.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-24 13:52 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('monsterapi', '0022_auto_20181123_2339'), ] operations = [ migrations.CreateMod...
40.259259
140
0.643054
932
0.857406
0
0
0
0
0
0
200
0.183993
dcea49ac83707e392c87416d55d53e97a16ca5a5
49
py
Python
pypy/interpreter/pyparser/test/samples/snippet_generator.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/interpreter/pyparser/test/samples/snippet_generator.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
pypy/interpreter/pyparser/test/samples/snippet_generator.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
def f(n): for i in range(n): yield n
12.25
22
0.469388
0
0
48
0.979592
0
0
0
0
0
0
dceac604206c3804e988356a36e1c21687d75def
50
py
Python
api_module/___init__.py
miscdec/tk-auto-study
2c5c716ab652dfc04796c335d2fb2bc01c494ccd
[ "MIT" ]
null
null
null
api_module/___init__.py
miscdec/tk-auto-study
2c5c716ab652dfc04796c335d2fb2bc01c494ccd
[ "MIT" ]
null
null
null
api_module/___init__.py
miscdec/tk-auto-study
2c5c716ab652dfc04796c335d2fb2bc01c494ccd
[ "MIT" ]
null
null
null
from . import main_api __all__=[ "main_api" ]
10
22
0.66
0
0
0
0
0
0
0
0
10
0.2
dcec0a27d90cdc4a82ce90945f1522764fe59ffb
5,852
py
Python
result/fig1_opt/plot.py
HongdaWu1226/FedPNS
9045da7c925bee006ae8ea5432abbc44bc84376c
[ "MIT" ]
null
null
null
result/fig1_opt/plot.py
HongdaWu1226/FedPNS
9045da7c925bee006ae8ea5432abbc44bc84376c
[ "MIT" ]
null
null
null
result/fig1_opt/plot.py
HongdaWu1226/FedPNS
9045da7c925bee006ae8ea5432abbc44bc84376c
[ "MIT" ]
null
null
null
import sys import argparse import matplotlib.pyplot as plt import numpy as np import pickle def load_obj(name): pkl_path = "" with open(pkl_path + name + ".pkl", 'rb') as f: return pickle.load(f) def load_prun_obj(name): pkl_path = "" with open(pkl_path + name + ".pkl", 'rb') as f: r...
28.827586
122
0.572454
0
0
0
0
0
0
0
0
1,523
0.258486
dcec0a932b384751e223e69c5f0bacbab7b74478
2,502
py
Python
tools/solViewer.py
afkummer/gecco2020-brkga
a76438483528da54a0406925ffb8ae26a029c2eb
[ "MIT" ]
null
null
null
tools/solViewer.py
afkummer/gecco2020-brkga
a76438483528da54a0406925ffb8ae26a029c2eb
[ "MIT" ]
null
null
null
tools/solViewer.py
afkummer/gecco2020-brkga
a76438483528da54a0406925ffb8ae26a029c2eb
[ "MIT" ]
2
2020-04-11T07:39:15.000Z
2020-10-19T16:58:13.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # # The MIT License (MIT) # # Copyright (c) 2020 # Alberto Francisco Kummer Neto (afkneto@inf.ufrgs.br), # Luciana Salete Buriol (buriol@inf.ufrgs.br) and # Olinto César Bassi de Araújo (olinto@ctism.ufsm.br) # # Permission is hereby granted, free of charge, to any person ...
29.093023
82
0.673861
0
0
0
0
0
0
0
0
1,513
0.604233
dcec3b942ff3cfa0abdd8f17276dd930a550b6c9
936
py
Python
test cases/unittest_homophone_module.py
johnbumgarner/wordhoard
c71ad970505801ffe6d5c640c63f073c434b9a47
[ "MIT" ]
40
2020-10-21T19:49:51.000Z
2022-03-05T20:46:58.000Z
test cases/unittest_homophone_module.py
johnbumgarner/wordhoard
c71ad970505801ffe6d5c640c63f073c434b9a47
[ "MIT" ]
10
2021-08-15T13:56:03.000Z
2022-03-03T14:15:26.000Z
test cases/unittest_homophone_module.py
johnbumgarner/wordhoard
c71ad970505801ffe6d5c640c63f073c434b9a47
[ "MIT" ]
4
2020-12-30T15:22:07.000Z
2022-02-01T21:05:49.000Z
#!/usr/bin/env python3 """ This Python script is designed to perform unit testing of Wordhoard's Homophones module. """ __author__ = 'John Bumgarner' __date__ = 'September 20, 2020' __status__ = 'Quality Assurance' __license__ = 'MIT' __copyright__ = "Copyright (C) 2021 John Bumgarner" import unittest from wordhoard...
25.297297
86
0.690171
576
0.615385
0
0
0
0
0
0
512
0.547009
dcec6ff0d9def2fe9c68c69ed39626402f66ee06
3,492
py
Python
resist/types/models/message.py
an-dyy/Resist
db4526e2db78bbd8d16567ae3e3880cf2c64eda1
[ "MIT" ]
4
2022-03-05T21:54:14.000Z
2022-03-13T07:51:07.000Z
resist/types/models/message.py
an-dyy/Resist
db4526e2db78bbd8d16567ae3e3880cf2c64eda1
[ "MIT" ]
1
2022-03-09T20:15:09.000Z
2022-03-10T10:39:25.000Z
resist/types/models/message.py
an-dyy/Resist
db4526e2db78bbd8d16567ae3e3880cf2c64eda1
[ "MIT" ]
1
2022-03-09T10:58:54.000Z
2022-03-09T10:58:54.000Z
from __future__ import annotations from typing import Literal, TypedDict, Union, final from typing_extensions import NotRequired from .asset import AssetData class YoutubeLinkEmbedMetadata(TypedDict): type: Literal["YouTube"] id: str timestamp: NotRequired[str] class TwitchLinkEmbedMetadata(TypedDict...
23.436242
80
0.70189
2,943
0.842784
0
0
622
0.178121
0
0
691
0.197881
dceca6923a77f2914c413d91ca752154c85edfb7
2,933
py
Python
baseline/DRL/rpm.py
sugam45/CS771_project
0361fd71fa65981614bc14bff8dceb763cb7c152
[ "MIT" ]
null
null
null
baseline/DRL/rpm.py
sugam45/CS771_project
0361fd71fa65981614bc14bff8dceb763cb7c152
[ "MIT" ]
null
null
null
baseline/DRL/rpm.py
sugam45/CS771_project
0361fd71fa65981614bc14bff8dceb763cb7c152
[ "MIT" ]
2
2020-12-09T05:00:24.000Z
2021-12-05T12:00:12.000Z
# from collections import deque import numpy as np import random import torch import pickle as pickle from torch.autograd import Variable class rpm(object): # replay memory def __init__(self, buffer_size): self.buffer_size = buffer_size self.buffer = [] self.priorities = [] ...
38.592105
116
0.617797
2,794
0.952608
0
0
0
0
0
0
282
0.096147
dcedf5797dbbe753e782f1e510c2e2eadacb0ae4
1,519
py
Python
Line bot/app/models_for_line.py
FatTtyLoser/LINE-Bot
32c5ffaabbf9c84b161ae720333b1405887be10a
[ "MIT" ]
null
null
null
Line bot/app/models_for_line.py
FatTtyLoser/LINE-Bot
32c5ffaabbf9c84b161ae720333b1405887be10a
[ "MIT" ]
null
null
null
Line bot/app/models_for_line.py
FatTtyLoser/LINE-Bot
32c5ffaabbf9c84b161ae720333b1405887be10a
[ "MIT" ]
null
null
null
from app import handler from app import line_bot_api, handler from linebot.models import ( MessageEvent, TextMessage, TextSendMessage, ImageSendMessage ) import random import re import urllib def google_isch(q_string): q_string= {'tbm': 'isch' , 'q' : q_string} url = f"http://www.google.com/search?{urllib...
29.784314
135
0.622778
0
0
0
0
695
0.453952
0
0
316
0.206401
dcee0aabb64225f7e08fe67c3434070100bac04e
5,885
py
Python
misc/m2g_script.py
PSSF23/neurodata.io
81ae10cc5082136db2d654026737a0a64f65cd88
[ "Apache-2.0" ]
9
2018-11-23T15:21:23.000Z
2022-03-27T22:41:29.000Z
misc/m2g_script.py
PSSF23/neurodata.io
81ae10cc5082136db2d654026737a0a64f65cd88
[ "Apache-2.0" ]
515
2016-02-17T19:58:15.000Z
2022-03-31T20:57:48.000Z
misc/m2g_script.py
PSSF23/neurodata.io
81ae10cc5082136db2d654026737a0a64f65cd88
[ "Apache-2.0" ]
19
2016-03-25T19:52:57.000Z
2022-01-11T01:17:19.000Z
import boto3 import botocore from ruamel.yaml import YAML yaml = YAML() CLIENT = boto3.client('s3', # region_name='us-east-1', config=botocore.client.Config(signature_version=botocore.UNSIGNED)) RESOURCE = boto3.resource('s3') REF_DIFF = {'SWU4': 'http://fcon_1000.projects.nitrc.org/indi/CoRR/h...
38.214286
89
0.581648
0
0
0
0
0
0
0
0
2,425
0.412065
dcf22457d7a59600a3e671d892fcbc97a92f684c
207
py
Python
pip_services3_prometheus/count/__init__.py
pip-services-python/pip-services-prometheus-python
062be3bad4548c4733f0ed398d7b6069018eaffa
[ "MIT" ]
null
null
null
pip_services3_prometheus/count/__init__.py
pip-services-python/pip-services-prometheus-python
062be3bad4548c4733f0ed398d7b6069018eaffa
[ "MIT" ]
null
null
null
pip_services3_prometheus/count/__init__.py
pip-services-python/pip-services-prometheus-python
062be3bad4548c4733f0ed398d7b6069018eaffa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __all__ = ['PrometheusCounterConverter', 'PrometheusCounters'] from .PrometheusCounterConverter import PrometheusCounterConverter from .PrometheusCounters import PrometheusCounters
29.571429
66
0.816425
0
0
0
0
0
0
0
0
71
0.342995
dcf39fbfef9164b52a639bb7ce9ec336fdfee6b7
635
py
Python
datenight/urls.py
SarahJaine/date-night
fb63b68cfb115f52c5d3ec39f2e73454c5d63bb6
[ "MIT" ]
null
null
null
datenight/urls.py
SarahJaine/date-night
fb63b68cfb115f52c5d3ec39f2e73454c5d63bb6
[ "MIT" ]
null
null
null
datenight/urls.py
SarahJaine/date-night
fb63b68cfb115f52c5d3ec39f2e73454c5d63bb6
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url from django.contrib import admin from datenight.views import HomePageView urlpatterns = [ # Examples: url(r'^$', HomePageView.as_view(), name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/rq/', include('django...
27.608696
83
0.696063
0
0
0
0
0
0
0
0
114
0.179528
dcf431fc5aea71e31c30dbdd5ee59dfa4598f2c6
8,337
py
Python
plugins/view/tightening_controller_views.py
masami10/airflow
3df5353d7a31ec890925dc4fd7c2a82fd349a483
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
plugins/view/tightening_controller_views.py
masami10/airflow
3df5353d7a31ec890925dc4fd7c2a82fd349a483
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
plugins/view/tightening_controller_views.py
masami10/airflow
3df5353d7a31ec890925dc4fd7c2a82fd349a483
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14:08.000Z
# -*- coding: utf-8 -*- from flask import flash, make_response, request import json from flask_babel import lazy_gettext, gettext from datetime import datetime from flask_login import current_user from flask_appbuilder.actions import action from flask_appbuilder import expose from flask import redirect from plugins.com...
36.247826
119
0.689816
6,516
0.775068
0
0
3,070
0.365172
0
0
1,592
0.189366
dcf4b8560b916ceca9700c2e7bf16bb6a53c4588
3,601
py
Python
src/python/nimbusml/internal/entrypoints/models_ovamodelcombiner.py
GalOshri/NimbusML
a2ba6f51b7c8cdd3c3316d5ecf4605621be3bd8d
[ "MIT" ]
2
2019-03-01T01:22:54.000Z
2019-07-10T19:57:38.000Z
src/python/nimbusml/internal/entrypoints/models_ovamodelcombiner.py
GalOshri/NimbusML
a2ba6f51b7c8cdd3c3316d5ecf4605621be3bd8d
[ "MIT" ]
null
null
null
src/python/nimbusml/internal/entrypoints/models_ovamodelcombiner.py
GalOshri/NimbusML
a2ba6f51b7c8cdd3c3316d5ecf4605621be3bd8d
[ "MIT" ]
null
null
null
# - Generated by tools/entrypoint_compiler.py: do not edit by hand """ Models.OvaModelCombiner """ from ..utils.entrypoints import EntryPoint from ..utils.utils import try_set, unlist def models_ovamodelcombiner( training_data, predictor_model=None, model_array=None, use_probabilitie...
31.867257
71
0.599833
0
0
0
0
0
0
0
0
1,076
0.298806
dcf50395b719a7f5d100f42a4c173a03d2453dfa
2,496
py
Python
kraken/public/views.py
peterdemartini/KrakenMaster
2b3ed18f6dcc720e66e1ac397a3b5ee902914e58
[ "BSD-3-Clause" ]
1
2016-12-22T22:25:05.000Z
2016-12-22T22:25:05.000Z
kraken/public/views.py
peterdemartini/KrakenMaster
2b3ed18f6dcc720e66e1ac397a3b5ee902914e58
[ "BSD-3-Clause" ]
null
null
null
kraken/public/views.py
peterdemartini/KrakenMaster
2b3ed18f6dcc720e66e1ac397a3b5ee902914e58
[ "BSD-3-Clause" ]
1
2022-03-28T00:28:07.000Z
2022-03-28T00:28:07.000Z
# -*- coding: utf-8 -*- '''Public section, including homepage and signup.''' from flask import (Blueprint, request, render_template, flash, url_for, redirect, session) from flask.ext.login import login_user, login_required, logout_user from kraken.extensions import login_manager from kraken.user.mo...
34.666667
93
0.659054
0
0
0
0
1,844
0.738782
0
0
469
0.187901
dcf7760ee0ea08cc59fe587411f1de19eb0c37fe
374
py
Python
web/game/migrations/0002_message_visible.py
ihsgnef/kuiperbowl
a0c3e346bc05ed149fdb34f12b872c983a40613e
[ "MIT" ]
null
null
null
web/game/migrations/0002_message_visible.py
ihsgnef/kuiperbowl
a0c3e346bc05ed149fdb34f12b872c983a40613e
[ "MIT" ]
5
2019-10-01T03:34:43.000Z
2020-05-26T14:28:40.000Z
web/game/migrations/0002_message_visible.py
jasmaa/quizbowl
282fe17217891266da96bcf1a9da4af5eff80fcc
[ "MIT" ]
1
2021-05-10T01:46:45.000Z
2021-05-10T01:46:45.000Z
# Generated by Django 2.2.7 on 2020-05-29 19:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('game', '0001_initial'), ] operations = [ migrations.AddField( model_name='message', name='visible', fiel...
19.684211
52
0.585561
281
0.751337
0
0
0
0
0
0
85
0.227273
dcf7946f10ce6e7e4b323d54039dd26ab7fa02da
271
py
Python
problem_49/test_prime_permutations.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
problem_49/test_prime_permutations.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
problem_49/test_prime_permutations.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
import unittest from prime_permutations import * class PrimePermutationsTest(unittest.TestCase): def test_prime_permutations(self): self.assertEqual(sorted(prime_permutations()), sorted([2969, 6299, 9629])) if __name__ == '__main__': unittest.main()
20.846154
82
0.741697
169
0.623616
0
0
0
0
0
0
10
0.0369
dcf7baef1e6706bbb04fa4359be5af5f09500ebe
1,495
py
Python
lecture10/inventory_hitting_time.py
BenGravell/optimal-control-course
ae8ab619b5c138f79d466d9c6dfc7af46b2a23b6
[ "MIT" ]
null
null
null
lecture10/inventory_hitting_time.py
BenGravell/optimal-control-course
ae8ab619b5c138f79d466d9c6dfc7af46b2a23b6
[ "MIT" ]
null
null
null
lecture10/inventory_hitting_time.py
BenGravell/optimal-control-course
ae8ab619b5c138f79d466d9c6dfc7af46b2a23b6
[ "MIT" ]
null
null
null
import numpy as np import numpy.linalg as la import matplotlib.pyplot as plt capacity = 6 prob_demand_mass = np.array([0.7, 0.2, 0.1]) prob_demand_supp = np.array([0, 1, 2]) T = 50 P = np.array([[0, 0, 0, 0, prob_demand_mass[0], prob_demand_mass[1], prob_demand_mass[2]], [0, 0, 0, 0, prob_demand_mass[0...
36.463415
102
0.656856
0
0
0
0
0
0
0
0
104
0.069565
dcfa4eb39a27cde22f1cd1ef58378d755009e643
1,177
py
Python
mongoproj/First_Q_City/Paris.py
OuassimAKEBLI/MongoDB
d224a8d7e2a2bd8451b2b46e39602e085994c6b8
[ "Apache-2.0" ]
null
null
null
mongoproj/First_Q_City/Paris.py
OuassimAKEBLI/MongoDB
d224a8d7e2a2bd8451b2b46e39602e085994c6b8
[ "Apache-2.0" ]
null
null
null
mongoproj/First_Q_City/Paris.py
OuassimAKEBLI/MongoDB
d224a8d7e2a2bd8451b2b46e39602e085994c6b8
[ "Apache-2.0" ]
null
null
null
import requests import json from pprint import pprint from pymongo import MongoClient def get_vparis(): url = "https://opendata.paris.fr/api/records/1.0/search/?dataset=velib-disponibilite-en-temps-reel&q=&rows" \ "=251&facet=name&facet=is_installed&facet=is_renting&facet=is_returning&facet=nom_arrondis...
30.179487
119
0.641461
0
0
0
0
0
0
0
0
481
0.408666
dcfc51bcf5d6a13b28a3e162e544af447ae8e347
681
py
Python
Youcheng/twitter_REST.py
xiaoli-chen/Godel
181b347aa88220b0e3e9ae628089f5acd1e6f170
[ "Apache-2.0" ]
null
null
null
Youcheng/twitter_REST.py
xiaoli-chen/Godel
181b347aa88220b0e3e9ae628089f5acd1e6f170
[ "Apache-2.0" ]
null
null
null
Youcheng/twitter_REST.py
xiaoli-chen/Godel
181b347aa88220b0e3e9ae628089f5acd1e6f170
[ "Apache-2.0" ]
null
null
null
#from twython import Twython from twitter import Twitter, OAuth, TwitterHTTPError, TwitterStream import json CONSUMER_KEY = 'pxeqo0ylpUayIIl5Nlc2kBmkb' CONSUMER_SECRET = 'JUAAG5ilMS9TxZN1Y0ZKwPhsamtE3gFoIYTnKfwWTGqGmF6zXL' ACCESS_TOKEN = '395150986-GiB9RbBtrjjiEetZ977wtQwYGVWCuhiPMir0962F' ACCESS_SECRET = 'DUk5aVVGGy...
32.428571
78
0.806167
0
0
0
0
0
0
0
0
380
0.558003
dcfe313a4570b1136b9927ba85fb05f98e2c3f09
2,903
py
Python
app/risk/RiskEngine.py
OuissalTAIM/jenkins
7ea5bcdeb6c0bb3cc14c2826a68e4f521de163c1
[ "BSD-1-Clause" ]
null
null
null
app/risk/RiskEngine.py
OuissalTAIM/jenkins
7ea5bcdeb6c0bb3cc14c2826a68e4f521de163c1
[ "BSD-1-Clause" ]
6
2021-02-02T22:52:41.000Z
2022-03-12T00:37:30.000Z
app/risk/RiskEngine.py
OuissalTAIM/jenkins
7ea5bcdeb6c0bb3cc14c2826a68e4f521de163c1
[ "BSD-1-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from app.data.DataManager import DataManager from app.model.Simulator import Simulator from app.data.Client import Driver from app.tools.Logger import logger_sensitivity as logger from app.model.ScenarioGenerator import ScenarioGeneratorFactory as SGF from app.config.env import ScenarioGenerat...
42.072464
122
0.619015
2,558
0.881157
0
0
0
0
0
0
234
0.080606
0d00ee6cb81689f5aa3f9ed7df94760a8859265c
2,129
py
Python
upf/python/upf.py
aiplan4eu/upf-poc
616c4044a4d0f26dc00aa3d371f61329b173bf8f
[ "Apache-2.0" ]
null
null
null
upf/python/upf.py
aiplan4eu/upf-poc
616c4044a4d0f26dc00aa3d371f61329b173bf8f
[ "Apache-2.0" ]
null
null
null
upf/python/upf.py
aiplan4eu/upf-poc
616c4044a4d0f26dc00aa3d371f61329b173bf8f
[ "Apache-2.0" ]
null
null
null
import importlib from dataclasses import dataclass from typing import FrozenSet, Callable, List @dataclass class Action: name: str precondition: FrozenSet[str] positive_effect: FrozenSet[str] negative_effect: FrozenSet[str] @dataclass class Problem: actions: List[Action] init: FrozenSet[str]...
25.963415
104
0.610146
924
0.434007
117
0.054955
377
0.177078
0
0
153
0.071865
0d034550164c2e8133c022210ebe779bc78107db
1,547
py
Python
rnnparser/RecursiveNN/tests/test_code_gen.py
uphere-co/nlp-prototype
c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3
[ "BSD-3-Clause" ]
null
null
null
rnnparser/RecursiveNN/tests/test_code_gen.py
uphere-co/nlp-prototype
c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3
[ "BSD-3-Clause" ]
null
null
null
rnnparser/RecursiveNN/tests/test_code_gen.py
uphere-co/nlp-prototype
c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import pytest from recursiveNN.nodes import Val,Var,VSF, Add,Mul,Dot,CTimes,Transpose, Node def test_variables_of_expressions(): ran=lambda x : np.random.random(x)-0.5 x=Var('x',ran((1,4))) y=Var('y',ran((1,4))) z=Var('z',ran((1,4))) expr=Add(Add(Add(x,y)...
38.675
100
0.553975
0
0
0
0
0
0
0
0
332
0.214609
0d05520e82655910896021870c67e33da2f6dc74
569
py
Python
tests/api/schemas/test_product_schema.py
igor822/product-categorization
e9c64834bf60cd9d51ab9b696b1b3ea49e702c9d
[ "MIT" ]
19
2018-11-13T15:12:12.000Z
2022-01-31T20:43:26.000Z
tests/api/schemas/test_product_schema.py
igor822/product-categorization
e9c64834bf60cd9d51ab9b696b1b3ea49e702c9d
[ "MIT" ]
null
null
null
tests/api/schemas/test_product_schema.py
igor822/product-categorization
e9c64834bf60cd9d51ab9b696b1b3ea49e702c9d
[ "MIT" ]
8
2019-03-07T03:32:43.000Z
2020-11-13T01:51:03.000Z
import unittest import pytest from src.api.schemas.product_schema import ProductSchema class ProductSchemaTests(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_validate_valid_product(self): product = {"name": "Produt name", "description": "Some descrip...
27.095238
76
0.683656
479
0.841828
0
0
0
0
0
0
82
0.144112
0d058e1ee4a48662be58d98c65151d8e58a92c4b
430
py
Python
InterAutoTest_W/testcase/t_pytest/pytest_class.py
xuguoyan/pytest_api3
c83d8b1fbd2b061db9d6dee40068ac84ae81c708
[ "MIT" ]
7
2019-11-28T07:17:37.000Z
2020-10-28T08:24:09.000Z
InterAutoTest_W/testcase/t_pytest/pytest_class.py
xuguoyan/pytest_api3
c83d8b1fbd2b061db9d6dee40068ac84ae81c708
[ "MIT" ]
null
null
null
InterAutoTest_W/testcase/t_pytest/pytest_class.py
xuguoyan/pytest_api3
c83d8b1fbd2b061db9d6dee40068ac84ae81c708
[ "MIT" ]
7
2021-01-10T14:11:10.000Z
2022-02-28T12:41:04.000Z
#coding=utf-8 """ 1.定义类; 2.创建测试方法test开头 3.创建setup_class, teardown_class 4.运行查看结果 """ import pytest class TestClass(): def test_a(self): print('test_a') def test_b(self): print('test_b') def setup_class(self): print('------setup_class------') def teardown_class(self): ...
17.2
43
0.588372
255
0.544872
0
0
0
0
0
0
221
0.472222
0d094d21102a554dd26ab1f57fd940c5c211f30e
1,469
py
Python
tests/test_cmd.py
mick88/poeditor-sync
2326b0ff6c0537b3d4ff729fd45b079e0789d2c7
[ "MIT" ]
6
2021-07-16T14:19:44.000Z
2022-03-10T10:27:39.000Z
tests/test_cmd.py
mick88/poeditor-sync
2326b0ff6c0537b3d4ff729fd45b079e0789d2c7
[ "MIT" ]
9
2021-07-10T15:57:52.000Z
2021-10-17T11:44:24.000Z
tests/test_cmd.py
mick88/poeditor-sync
2326b0ff6c0537b3d4ff729fd45b079e0789d2c7
[ "MIT" ]
null
null
null
from unittest import TestCase from click.testing import CliRunner, Result from poeditor_sync.cmd import poeditor class CmdReadOnlyTokenTest(TestCase): def setUp(self) -> None: super().setUp() self.runner = CliRunner(env={ 'POEDITOR_CONFIG_FILE': 'tests/test.yml', 'POEDITO...
36.725
122
0.684139
1,351
0.919673
0
0
0
0
0
0
219
0.149081
0d09b1f3b7cd0f00460955d0c6f059dbe658e86b
3,472
py
Python
cats/cats_simus/vortex.py
brunellacarlomagno/CATS
2fb85366dbca81736d75a982156674523632414f
[ "MIT" ]
null
null
null
cats/cats_simus/vortex.py
brunellacarlomagno/CATS
2fb85366dbca81736d75a982156674523632414f
[ "MIT" ]
null
null
null
cats/cats_simus/vortex.py
brunellacarlomagno/CATS
2fb85366dbca81736d75a982156674523632414f
[ "MIT" ]
null
null
null
import numpy as np import cv2 import proper from cats.cats_simus import * def vortex(wfo, CAL, charge, f_lens, path, Debug_print): n = int(proper.prop_get_gridsize(wfo)) ofst = 0 # no offset ramp_sign = 1 #sign of charge is positive #sampling = n ramp_oversamp = 11. # vortex is oversampled for a ...
51.058824
191
0.615495
0
0
0
0
0
0
0
0
1,029
0.296371
0d0a48c167ff778fcf72beb6012207a10ec69a12
1,119
py
Python
Search/rotated/Solution.py
Voley/AlgorithmicProblemsV2
0c70e4fe61b66ae3f648ee6dada4dd75a4234edd
[ "MIT" ]
null
null
null
Search/rotated/Solution.py
Voley/AlgorithmicProblemsV2
0c70e4fe61b66ae3f648ee6dada4dd75a4234edd
[ "MIT" ]
null
null
null
Search/rotated/Solution.py
Voley/AlgorithmicProblemsV2
0c70e4fe61b66ae3f648ee6dada4dd75a4234edd
[ "MIT" ]
null
null
null
# Problem code def search(nums, target): return search_helper(nums, target, 0, len(nums) - 1) def search_helper(nums, target, left, right): if left > right: return -1 mid = (left + right) // 2 # right part is good if nums[mid] <= nums[right]: # we fall for it if target >= ...
27.292683
62
0.544236
0
0
0
0
0
0
0
0
128
0.114388
0d0ada3c223ce67e0153b8f576b9926c738f9141
21,631
py
Python
pysnmp/CISCO-EMBEDDED-EVENT-MGR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-EMBEDDED-EVENT-MGR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-EMBEDDED-EVENT-MGR-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 CISCO-EMBEDDED-EVENT-MGR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-EMBEDDED-EVENT-MGR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:39:13 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
142.309211
3,183
0.773473
220
0.010171
0
0
0
0
0
0
5,734
0.265083
0d0b5671587550eca8af9d7486e1e9c27446306c
277
py
Python
src/util_walk_sftp.py
Chrisebell24/walk_sftp
65dcb4e4231fabe8f8d9f2a6b595371c31ddc0d6
[ "MIT" ]
null
null
null
src/util_walk_sftp.py
Chrisebell24/walk_sftp
65dcb4e4231fabe8f8d9f2a6b595371c31ddc0d6
[ "MIT" ]
null
null
null
src/util_walk_sftp.py
Chrisebell24/walk_sftp
65dcb4e4231fabe8f8d9f2a6b595371c31ddc0d6
[ "MIT" ]
null
null
null
import paramiko class _FastTransport(paramiko.Transport): def __init__(self, sock): super(_FastTransport, self).__init__(sock) self.window_size = 2147483647 self.packetizer.REKEY_BYTES = pow(2, 40) self.packetizer.REKEY_PACKETS = pow(2, 40)
34.625
50
0.696751
260
0.938628
0
0
0
0
0
0
0
0
0d0cfb3214f9d822574bd483b912ab38da359e78
13,211
py
Python
Project_2/source/project_2.py
larsjbro/FYS4150
95ac4e09b5aad133b29c9aabb5be1302abdd8e65
[ "BSD-2-Clause" ]
null
null
null
Project_2/source/project_2.py
larsjbro/FYS4150
95ac4e09b5aad133b29c9aabb5be1302abdd8e65
[ "BSD-2-Clause" ]
null
null
null
Project_2/source/project_2.py
larsjbro/FYS4150
95ac4e09b5aad133b29c9aabb5be1302abdd8e65
[ "BSD-2-Clause" ]
null
null
null
''' Created on 14. sep. 2017 v2 @author: LJB ''' from __future__ import division, absolute_import from numba import jit, float64, int64, void import numpy as np import matplotlib.pyplot as plt import timeit _DPI = 250 _SIZE = 0.7 def figure_set_default_size(): F = plt.gcf() DefaultSize = [8 * _SIZE, 6 * _S...
32.379902
119
0.594202
185
0.014003
0
0
1,677
0.12694
0
0
4,401
0.333131
0d0d282cf5109854c1ac67b2906a8fd2bb27e9ac
266
py
Python
L.py
tomerl20-meet/meet2018y1mini-proj
5c66652b900c50d0b30326170c21e1b1224c649a
[ "MIT" ]
null
null
null
L.py
tomerl20-meet/meet2018y1mini-proj
5c66652b900c50d0b30326170c21e1b1224c649a
[ "MIT" ]
null
null
null
L.py
tomerl20-meet/meet2018y1mini-proj
5c66652b900c50d0b30326170c21e1b1224c649a
[ "MIT" ]
null
null
null
import turtle screen = turtle.Screen() # this assures that the size of the screen will always be 400x400 ... screen.setup(400, 400) # ... which is the same size as our image # now set the background to our space image screen.bgpic("game.over") turtle.mainloop()
20.461538
69
0.729323
0
0
0
0
0
0
0
0
164
0.616541
0d0dad0715867923a463d0648e569bd453764be1
844
py
Python
demo.py
PAV-Laboratory/cryptoblotter
f573592a3638fbc6cae24d76305de36b932949c6
[ "MIT" ]
1
2021-08-01T19:16:02.000Z
2021-08-01T19:16:02.000Z
demo.py
PAV-Laboratory/cryptoblotter
f573592a3638fbc6cae24d76305de36b932949c6
[ "MIT" ]
null
null
null
demo.py
PAV-Laboratory/cryptoblotter
f573592a3638fbc6cae24d76305de36b932949c6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from cryptofeed import FeedHandler from cryptofeed.defines import TRADES from cryptoblotter.exchanges import CoinbaseBlotter from cryptoblotter.trades import SequentialIntegerTradeCallback, ThreshCallback from cryptoblotter.trades.constants import VOLUME async def trades(trade): print(tra...
24.823529
79
0.562796
0
0
0
0
0
0
41
0.048578
41
0.048578
0d0e450b602d94ac05485326e1145ffc9479645d
29,665
py
Python
mars/tensor/datasource/tests/test_datasource.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/datasource/tests/test_datasource.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
mars/tensor/datasource/tests/test_datasource.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding 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 a...
38.228093
103
0.607821
27,945
0.942019
0
0
3,639
0.12267
0
0
1,295
0.043654
0d0f8d40c6da19e8a82a8164266b4e9bf0bbd18d
1,259
py
Python
setup.py
n1k0r/tplink-wr-api
7f4e29b4b08cf6564b06d9bc3381ab5682afd83f
[ "MIT" ]
5
2021-11-02T13:13:10.000Z
2021-12-14T14:13:28.000Z
setup.py
n1k0r/tplink-wr-api
7f4e29b4b08cf6564b06d9bc3381ab5682afd83f
[ "MIT" ]
null
null
null
setup.py
n1k0r/tplink-wr-api
7f4e29b4b08cf6564b06d9bc3381ab5682afd83f
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import find_packages, setup with open("README.md", "r", encoding="utf-8") as f: long_description = f.read() setup( name="tplink-wr-api", version="0.2.1", url="https://github.com/n1k0r/tplink-wr-api", author="n1k0r", author_email="me@n1k0r.me", descript...
32.282051
59
0.619539
0
0
0
0
0
0
0
0
706
0.560763
0d10a5908b7fb6316071dd7f27f26e87d1e2419d
5,835
py
Python
examples/qp2q/preprocessing/session_data_processing.py
xeisberg/pecos
c9cf209676205dd000479861667351e724f0ba1c
[ "Apache-2.0" ]
288
2021-04-26T21:34:12.000Z
2022-03-29T19:50:06.000Z
examples/qp2q/preprocessing/session_data_processing.py
xeisberg/pecos
c9cf209676205dd000479861667351e724f0ba1c
[ "Apache-2.0" ]
32
2021-04-29T23:58:23.000Z
2022-03-28T17:23:04.000Z
examples/qp2q/preprocessing/session_data_processing.py
xeisberg/pecos
c9cf209676205dd000479861667351e724f0ba1c
[ "Apache-2.0" ]
63
2021-04-28T20:12:59.000Z
2022-03-29T14:10:36.000Z
"""The module contains functions to preprocess input datasets into usable format.""" import gc import gzip import json import logging import multiprocessing as mp import pathlib import sys from itertools import repeat import numpy as np import scipy.sparse as smat logging.basicConfig( stream=sys.stdout, format...
28.188406
100
0.605484
0
0
0
0
0
0
0
0
2,181
0.373779
0d10c86dafeed929c1872fcc51e0ca638cea38e6
1,585
py
Python
tests/test_policyengine_deviceManager.py
Brewgarten/c4-policy-engine
4f39f21448952a994d0cbb24f2d02e622fbaa320
[ "MIT" ]
null
null
null
tests/test_policyengine_deviceManager.py
Brewgarten/c4-policy-engine
4f39f21448952a994d0cbb24f2d02e622fbaa320
[ "MIT" ]
1
2017-10-16T16:04:07.000Z
2017-10-16T16:04:07.000Z
tests/test_policyengine_deviceManager.py
Brewgarten/c4-policy-engine
4f39f21448952a994d0cbb24f2d02e622fbaa320
[ "MIT" ]
null
null
null
import logging import pytest from c4.devices.policyengine import PolicyEngineManager from c4.messaging import Router, RouterClient from c4.system.configuration import States, Roles from c4.system.deviceManager import DeviceManager from c4.system.messages import (LocalStartDeviceManager, LocalStopDeviceManager, ...
33.020833
104
0.719874
974
0.614511
0
0
159
0.100315
0
0
221
0.139432
0d13f252a44ac30eabb61fd5ab7b47904eed9525
3,113
py
Python
astropy/wcs/tests/test_tabprm.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
4
2021-03-25T15:49:56.000Z
2021-12-15T09:10:04.000Z
astropy/wcs/tests/test_tabprm.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
astropy/wcs/tests/test_tabprm.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
3
2021-03-28T16:13:00.000Z
2021-07-16T10:27:25.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst from copy import deepcopy import pytest import numpy as np from astropy import wcs from . helper import SimModelTAB def test_wcsprm_tab_basic(tab_wcs_2di): assert len(tab_wcs_2di.wcs.tab) == 1 t = tab_wcs_2di.wcs.tab[0] assert tab_wcs_2d...
22.395683
63
0.641182
0
0
0
0
0
0
0
0
101
0.032445
0d150ae27d6a08f38d400e708a1891dd25859e78
11,560
py
Python
services/dts/tests/unit/test_physical_appliance.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
services/dts/tests/unit/test_physical_appliance.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
services/dts/tests/unit/test_physical_appliance.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. import os import random import shutil import string import tempfile import unittest try: import unittest.mock as mock except ImportError: import mock from OpenSSL import crypto from services.dts.src.oci_cli_dts.a...
48.368201
121
0.716696
10,729
0.928114
0
0
1,799
0.155623
0
0
945
0.081747
0d168a4c61af1ef7a21e7295eab4769153682c76
7,544
py
Python
collect.py
peitur/colag
7ffefaa1a622a12718e94439f77b6e47db7c4452
[ "MIT" ]
1
2019-09-02T18:28:07.000Z
2019-09-02T18:28:07.000Z
collect.py
peitur/colag
7ffefaa1a622a12718e94439f77b6e47db7c4452
[ "MIT" ]
5
2019-01-05T12:51:37.000Z
2021-11-12T10:53:13.000Z
collect.py
peitur/colag
7ffefaa1a622a12718e94439f77b6e47db7c4452
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys,re,os,re, datetime import requests import json import hashlib import getopt from pprint import pprint from pathlib import Path ################################################################################ ## Hashing large files ####################################################...
32.943231
139
0.4943
0
0
0
0
0
0
0
0
1,908
0.252916
0d19256930f4495b8add0763a8be0add5773382d
151
py
Python
common.py
camillescott/explotiv
649285c73cdbb85cd55285e4c3920051efd7f89d
[ "BSD-3-Clause" ]
1
2016-08-25T02:46:25.000Z
2016-08-25T02:46:25.000Z
common.py
camillescott/explotiv
649285c73cdbb85cd55285e4c3920051efd7f89d
[ "BSD-3-Clause" ]
null
null
null
common.py
camillescott/explotiv
649285c73cdbb85cd55285e4c3920051efd7f89d
[ "BSD-3-Clause" ]
null
null
null
import os pkg_path = os.path.dirname(__file__) static_folder = os.path.join(pkg_path, 'static') template_folder = os.path.join(pkg_path, 'templates')
25.166667
53
0.768212
0
0
0
0
0
0
0
0
19
0.125828
0d1974a13ecd52da41d57fd5cb8316c87eb40657
2,421
py
Python
ALDS/ALDS1_12_C.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
1
2020-01-08T16:33:46.000Z
2020-01-08T16:33:46.000Z
ALDS/ALDS1_12_C.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
ALDS/ALDS1_12_C.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
import sys import io import time import pprint input_txt = """ 10 0 2 1 1 2 3 1 2 3 3 2 1 2 2 3 1 6 10 3 1 4 1 4 1 7 1 5 2 3 1 6 1 6 2 3 1 8 1 7 2 5 1 8 4 8 1 9 100000 9 0 """ #sys.stdin = open("ALDS1_11_D_in11.txt","r")#io.StringIO(input_txt) #sys.stdin = io.StringIO(input_txt) sys.stdin = ope...
27.202247
102
0.576621
0
0
0
0
0
0
0
0
442
0.182569
0d19939c79927199a00a6644497c9b26cbcdaa17
1,103
py
Python
ejercicios/mayores_de_edad.py
carlosviveros/Soluciones
115f4fa929c7854ca497e4c994352adc64565456
[ "MIT" ]
4
2021-12-14T23:51:25.000Z
2022-03-24T11:14:00.000Z
ejercicios/mayores_de_edad.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
ejercicios/mayores_de_edad.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
5
2021-11-10T06:49:50.000Z
2022-03-24T01:42:28.000Z
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython # ------------------------ REDACCION ORIGINAL ------------------------ 1. Crear un programa que pida un número entero e imprimirlo, si no se ingresa deberá preguntar otra vez por el número entero hasta que ingrese un número positivo. 2. Crear una lista que...
33.424242
77
0.574796
0
0
0
0
0
0
0
0
786
0.706835
0d1a17352a3f05296cc6555c34672a19c51dc19a
2,523
py
Python
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py
Polidea/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
427
2018-05-29T14:21:02.000Z
2022-03-16T03:17:54.000Z
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
25
2018-07-23T08:34:15.000Z
2021-11-05T07:13:36.000Z
SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/expression_command/options/TestExprOptions.py
PolideaPlayground/SiriusObfuscator
b0e590d8130e97856afe578869b83a209e2b19be
[ "Apache-2.0" ]
52
2018-07-19T19:57:32.000Z
2022-03-11T16:05:38.000Z
""" Test expression command options. Test cases: o test_expr_options: Test expression command options. """ from __future__ import print_function import os import time import lldb import lldbsuite.test.lldbutil as lldbutil from lldbsuite.test.lldbtest import * class ExprOptionsTestCase(TestBase): mydir = T...
31.148148
71
0.664685
2,253
0.892985
0
0
0
0
0
0
675
0.267539
0d1a377e75b203d7f18a99dc9d5d200921019cc3
1,724
py
Python
lib_bgp_data/collectors/mrt/mrt_base/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
16
2018-09-24T05:10:03.000Z
2021-11-29T19:18:59.000Z
lib_bgp_data/collectors/mrt/mrt_base/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
4
2019-10-09T18:54:17.000Z
2021-03-05T14:02:50.000Z
lib_bgp_data/collectors/mrt/mrt_base/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
3
2018-09-17T17:35:18.000Z
2020-03-24T16:03:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """This module contains class MRT_Announcements_Table Announcements_Table inherits from the Generic_Table class. The Generic_Table class allows for the conection to a database upon initialization. Also upon initialization the _create_tables function is called to initiali...
32.528302
76
0.707077
647
0.37529
0
0
0
0
0
0
1,390
0.806265
0d1a4439199c9ef84e882067c41f55f763548eaa
4,138
py
Python
src/permission/backends.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
234
2015-01-05T17:09:08.000Z
2021-11-15T09:52:43.000Z
src/permission/backends.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
54
2015-02-13T08:06:32.000Z
2021-05-19T14:07:03.000Z
src/permission/backends.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
35
2015-04-13T09:10:38.000Z
2022-02-15T01:43:03.000Z
# coding=utf-8 """ Logical permission backends module """ from permission.conf import settings from permission.utils.handlers import registry from permission.utils.permissions import perm_to_permission __all__ = ('PermissionBackend',) class PermissionBackend(object): """ A handler based permission backen...
33.918033
80
0.61479
3,895
0.941276
0
0
0
0
0
0
2,486
0.600773
0d1b4daa79d88bc89d8bb4d70a65c117aac274ea
50,782
py
Python
watex/core/erp.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
3
2021-06-19T02:16:46.000Z
2021-07-16T15:56:49.000Z
watex/core/erp.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
watex/core/erp.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021 Kouadio K. Laurent, zju-ufhb # This module is part of the WATex core package, which is released under a # MIT- licence. """ =============================================================================== Copyright (c) 2021 Kouadio K. Laurent Permission is hereby granted, f...
38.413011
100
0.490666
41,181
0.810905
0
0
10,553
0.207802
0
0
23,199
0.456817
0d1b7c2182554a8a0f1a06812e62cc4dae4383a2
122
py
Python
py_tdlib/constructors/location.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/location.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/location.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Type class location(Type): latitude = None # type: "double" longitude = None # type: "double"
17.428571
35
0.680328
92
0.754098
0
0
0
0
0
0
32
0.262295
0d1d498ac11ac88aa3a027d6cc2474196fa5251f
1,816
py
Python
Task2G.py
caizicharles/IA-Floodwarning
2f4931d000ca98b6c304507a422aabb49b4bd231
[ "MIT" ]
null
null
null
Task2G.py
caizicharles/IA-Floodwarning
2f4931d000ca98b6c304507a422aabb49b4bd231
[ "MIT" ]
null
null
null
Task2G.py
caizicharles/IA-Floodwarning
2f4931d000ca98b6c304507a422aabb49b4bd231
[ "MIT" ]
null
null
null
from floodsystem.flood import stations_level_over_threshold from floodsystem.stationdata import build_station_list, update_water_levels from floodsystem.analysis import polyfit from floodsystem.datafetcher import fetch_measure_levels from floodsystem.utils import sorted_by_key import numpy as np from datetime import ti...
31.310345
110
0.639317
0
0
0
0
0
0
0
0
117
0.064427
0d1d8f3ba1cb047658f3bd978f75518c9dd50942
3,514
py
Python
simplecoin_rpc_client/scheduler.py
uingei/simplecoin_rpc_client_20171208
10ebea80b70db15944c8200923b41f78480d7f68
[ "0BSD" ]
2
2015-01-02T21:34:59.000Z
2018-10-17T15:54:47.000Z
simplecoin_rpc_client/scheduler.py
uingei/simplecoin_rpc_client_20171208
10ebea80b70db15944c8200923b41f78480d7f68
[ "0BSD" ]
2
2015-03-26T00:08:55.000Z
2015-06-06T21:31:17.000Z
simplecoin_rpc_client/scheduler.py
uingei/simplecoin_rpc_client_20171208
10ebea80b70db15944c8200923b41f78480d7f68
[ "0BSD" ]
6
2015-01-03T08:20:17.000Z
2019-06-23T15:55:12.000Z
import logging import os import sqlalchemy import setproctitle import argparse import yaml from apscheduler.scheduler import Scheduler from cryptokit.rpc_wrapper import CoinRPC from simplecoin_rpc_client.sc_rpc import SCRPCClient logger = logging.getLogger('apscheduler.scheduler') os_root = os.path.abspath(os.path.di...
30.293103
87
0.628913
1,345
0.382755
0
0
0
0
0
0
639
0.181844
0d1e5454f292c59dd72eec135f4dab6607754ce9
716
py
Python
SpeakyTo/interfaces/irc2.py
SpeakyTo/SCORE
244f7e732a40a0d29e796f38823aab57d31ce786
[ "Apache-2.0" ]
null
null
null
SpeakyTo/interfaces/irc2.py
SpeakyTo/SCORE
244f7e732a40a0d29e796f38823aab57d31ce786
[ "Apache-2.0" ]
null
null
null
SpeakyTo/interfaces/irc2.py
SpeakyTo/SCORE
244f7e732a40a0d29e796f38823aab57d31ce786
[ "Apache-2.0" ]
null
null
null
from iconservice import * class IRC2Interface(InterfaceScore): """ An interface of ICON Token Standard, IRC-2""" @interface def name(self) -> str: pass @interface def symbol(self) -> str: pass @interface def decimals(self) -> int: pass @interface def to...
18.358974
71
0.597765
685
0.956704
0
0
548
0.765363
0
0
49
0.068436
0d20b57c8cffa9b2d57ee77c2abe05ad04d2a179
8,686
py
Python
io_import_planar_code.py
tsurutana/planer_code-importer-blender
409423277adc56f7d7dda9429de4d5ae807226e4
[ "MIT" ]
null
null
null
io_import_planar_code.py
tsurutana/planer_code-importer-blender
409423277adc56f7d7dda9429de4d5ae807226e4
[ "MIT" ]
null
null
null
io_import_planar_code.py
tsurutana/planer_code-importer-blender
409423277adc56f7d7dda9429de4d5ae807226e4
[ "MIT" ]
null
null
null
bl_info = { "name": "Import Planar Code", "author": "Naoya Tsuruta", "version": (1, 0), "blender": (2, 80, 0), "location": "File > Import > Planar Code", "description": "Import planar code and construct mesh by assigning vertex positions.", "warning": "", "support": "TESTING", ...
31.70073
91
0.489523
7,587
0.873475
0
0
0
0
0
0
1,361
0.156689
0d2173d31093a043314df76aaf701045b2fe730c
1,233
py
Python
webtool/server/models/equipment.py
wodo/WebTool3
1582a03d619434d8a6139f705a1b5860e9b5b8b8
[ "BSD-2-Clause" ]
13
2018-12-16T21:01:24.000Z
2019-07-03T06:23:41.000Z
webtool/server/models/equipment.py
dav-kempten/WebTool3
859f39df67cb0f853c7fe33cb5d08b999d8692fc
[ "BSD-2-Clause" ]
26
2019-07-07T06:44:06.000Z
2021-09-07T07:28:34.000Z
webtool/server/models/equipment.py
dav-kempten/WebTool3
859f39df67cb0f853c7fe33cb5d08b999d8692fc
[ "BSD-2-Clause" ]
3
2017-06-18T06:22:52.000Z
2019-07-03T06:21:05.000Z
# -*- coding: utf-8 -*- from django.db import models from .mixins import SeasonsMixin from .time_base import TimeMixin from . import fields class EquipmentManager(models.Manager): def get_by_natural_key(self, code): return self.get(code=code) class Equipment(SeasonsMixin, TimeMixin, models.Model): ...
22.833333
55
0.634225
1,094
0.882258
0
0
0
0
0
0
261
0.210484
0d22a9dd7d5f467850b8900e066974665ef38818
2,394
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/NV/draw_vulkan_image.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/NV/draw_vulkan_image.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/NV/draw_vulkan_image.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''OpenGL extension NV.draw_vulkan_image This module customises the behaviour of the OpenGL.raw.GL.NV.draw_vulkan_image to provide a more Python-friendly API Overview (from the spec) This extension provides a new function, DrawVkImageNV(), allowing applications to draw a screen-aligned rectangle displa...
45.169811
77
0.789474
0
0
0
0
0
0
0
0
1,910
0.797828
0d246003e8c49782d663db0652fc20c6c7b5ad5f
426
py
Python
orders/urls.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
4
2021-11-25T15:45:31.000Z
2022-01-11T21:31:56.000Z
orders/urls.py
KwabenaYeboah/kobbyshop
850a04b24fafa8aa538fdbf039a0e8fafc3ebfc2
[ "MIT" ]
1
2021-12-30T08:18:28.000Z
2021-12-30T08:18:28.000Z
orders/urls.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
2
2021-12-26T05:11:00.000Z
2021-12-30T08:18:13.000Z
from django.urls import path from django.utils.translation import gettext_lazy as _ from .views import create_order_view, order_detail_view, generate_order_pdf_view urlpatterns = [ path('admin/order/<int:order_id>/', order_detail_view, name='admin_order_detail'), path('admin/order/<int:order_id>/pdf/', genera...
38.727273
96
0.7723
0
0
0
0
0
0
0
0
118
0.276995
0d264d356130367d822124ae49b5e060a6d3d6dd
21,781
py
Python
ncov_ism/_visualization.py
z2e2/ncov_ism
14e3dcd7c568e21b437dfdb7d74353ed8bd93c8f
[ "BSD-3-Clause" ]
null
null
null
ncov_ism/_visualization.py
z2e2/ncov_ism
14e3dcd7c568e21b437dfdb7d74353ed8bd93c8f
[ "BSD-3-Clause" ]
null
null
null
ncov_ism/_visualization.py
z2e2/ncov_ism
14e3dcd7c568e21b437dfdb7d74353ed8bd93c8f
[ "BSD-3-Clause" ]
1
2020-08-04T23:59:26.000Z
2020-08-04T23:59:26.000Z
import logging import matplotlib import pickle matplotlib.use('Agg') import matplotlib.colors as mcolors import numpy as np import matplotlib.pyplot as plt plt.ioff() font = {# 'family' : 'serif', # Times (source: https://matplotlib.org/tutorials/introductory/customizing.html) 'family': 'sans-serif', # Helvetic...
36.301667
169
0.618567
0
0
0
0
0
0
0
0
4,471
0.205271
0d26782c58b3c4b8dcb10b8b861fb7a599e50c84
2,272
py
Python
gsh/plugins/executors/ssh.py
varunl/gsh
f0b4eb404afead35195d72a1abe4250c693b1e7c
[ "MIT" ]
23
2015-01-30T04:16:58.000Z
2021-07-28T22:31:01.000Z
gsh/plugins/executors/ssh.py
varunl/gsh
f0b4eb404afead35195d72a1abe4250c693b1e7c
[ "MIT" ]
2
2015-04-21T06:55:44.000Z
2016-03-29T22:29:15.000Z
gsh/plugins/executors/ssh.py
varunl/gsh
f0b4eb404afead35195d72a1abe4250c693b1e7c
[ "MIT" ]
5
2015-04-21T06:43:58.000Z
2018-11-03T10:14:35.000Z
import gevent from gevent.queue import Queue, Empty from gevent_subprocess import Popen, PIPE from gsh.plugin import BaseExecutor, BaseInnerExecutor class SshExecutor(BaseExecutor): def __init__(self, args, kwargs): self.ssh_opts = kwargs.get("ssh_opts", []) super(SshExecutor, self).__init__(args,...
33.910448
116
0.556778
2,120
0.933099
0
0
141
0.06206
0
0
235
0.103433
0d269caf9870407b800e22ac3a36faa1d6165a79
656
py
Python
algDev/visualization/plot_indicators.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
null
null
null
algDev/visualization/plot_indicators.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
7
2021-03-10T10:08:30.000Z
2022-03-02T07:38:13.000Z
algDev/visualization/plot_indicators.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
1
2020-04-17T19:15:06.000Z
2020-04-17T19:15:06.000Z
from models.indicators import Indicators import numpy as np import matplotlib.pyplot as plt def plot_prices(ax, prices, line_style): i = np.arange(len(prices)) ax.plot(ax, prices, line_style) return ax def plot_macd(ax, prices, slow_period, fast_period, line_style='k-'): macd = Indicators.macd(price...
26.24
78
0.692073
0
0
0
0
0
0
0
0
8
0.012195
0d26a577889f50bd86268acdd8f4b35667d26c74
4,318
py
Python
app/db_worker.py
ryan-rushton/Basement
69e1ee78b430a98069d1039f7e833151704fba86
[ "Unlicense" ]
5
2016-11-14T18:05:49.000Z
2018-07-17T11:40:44.000Z
app/db_worker.py
ryan-rushton/Basement
69e1ee78b430a98069d1039f7e833151704fba86
[ "Unlicense" ]
null
null
null
app/db_worker.py
ryan-rushton/Basement
69e1ee78b430a98069d1039f7e833151704fba86
[ "Unlicense" ]
4
2016-12-21T12:42:23.000Z
2018-12-14T17:39:30.000Z
from multiprocessing import Process, Queue from app.es_search import add_to_es, delete_all_es, reindex_es, delete_from_es from logging import getLogger from flask_sqlalchemy import SQLAlchemy import sys from app import app from .models import Paste logger = getLogger(__name__) def delete_by_date_paste(date): """...
32.223881
118
0.583372
3,151
0.729736
0
0
0
0
0
0
1,689
0.391153
0d273c1d1f4925a594d10dc698fbd7f793d46ab3
449
py
Python
tests/strings/test_basic.py
jaebradley/python_problems
24b8ecd49e3095f5c607906cb36019b9e865a20f
[ "MIT" ]
null
null
null
tests/strings/test_basic.py
jaebradley/python_problems
24b8ecd49e3095f5c607906cb36019b9e865a20f
[ "MIT" ]
5
2017-08-25T20:43:16.000Z
2019-10-18T16:49:43.000Z
tests/strings/test_basic.py
jaebradley/python_problems
24b8ecd49e3095f5c607906cb36019b9e865a20f
[ "MIT" ]
null
null
null
""" Unit Test for strings.basic problems """ from unittest import TestCase from strings.basic import alphabetize class TestAlphabetize(TestCase): """ Unit Test for alphabetize method """ def test_should_return_alphabet(self): """ Test alphabetize method using every uppercase and low...
22.45
99
0.714922
331
0.737194
0
0
0
0
0
0
243
0.541203
0d281e7eb3d40eae3e191f01e52cfee3344410ff
6,162
py
Python
Python3/HayStack_API.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
1
2019-11-28T08:50:26.000Z
2019-11-28T08:50:26.000Z
Python3/HayStack_API.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
3
2019-11-22T04:23:47.000Z
2019-11-30T07:11:24.000Z
Python3/HayStack_API.py
ConsensusGroup/Haystack
c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d
[ "MIT" ]
3
2018-03-19T05:20:44.000Z
2019-11-22T00:56:31.000Z
#This script is going to be used API calls but first it will serve as a testing script. from IOTA_Module import * from Configuration_Module import * from Tools_Module import * from UserProfile_Module import * from Cryptography_Module import * from NodeFinder_Module import * from DynamicPublicLedger_Module import * imp...
35.618497
152
0.648815
3,645
0.591529
0
0
0
0
0
0
1,521
0.246835
0d2a081f35a5539acf6a7c3973e88ead36b9c6c5
2,230
py
Python
clickctl/cli.py
ciscochina/click-demo
ed26c34dc14a761b3eb94c0f0896bd22dd81079e
[ "Apache-2.0" ]
7
2017-03-06T08:23:29.000Z
2021-12-15T12:12:31.000Z
clickctl/cli.py
ciscochina/click-demo
ed26c34dc14a761b3eb94c0f0896bd22dd81079e
[ "Apache-2.0" ]
null
null
null
clickctl/cli.py
ciscochina/click-demo
ed26c34dc14a761b3eb94c0f0896bd22dd81079e
[ "Apache-2.0" ]
3
2018-04-02T15:36:08.000Z
2021-12-15T06:06:51.000Z
# Copyright 2017 Cisco Systems, Inc. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
28.227848
81
0.625561
1,053
0.472197
0
0
260
0.116592
0
0
866
0.388341
0d2a6256b8a5f3ec748bace05b5caa68782cdbfb
653
py
Python
database/Database.py
TADebastiani/SistemasEspecialistas
09b925ca44d9d8a1145b9cb253ce8879bf8400f0
[ "MIT" ]
null
null
null
database/Database.py
TADebastiani/SistemasEspecialistas
09b925ca44d9d8a1145b9cb253ce8879bf8400f0
[ "MIT" ]
null
null
null
database/Database.py
TADebastiani/SistemasEspecialistas
09b925ca44d9d8a1145b9cb253ce8879bf8400f0
[ "MIT" ]
null
null
null
import sqlite3 from pathlib import Path class Database: def _cursor(self): root = Path(__file__).parent self._conn = sqlite3.connect(f'{root}/knowledge.sqlite') return self._conn.cursor() def _commit(self): self._conn.commit() def _close(self): self._conn.close()...
24.185185
77
0.600306
610
0.93415
0
0
0
0
0
0
120
0.183767
0d2eef0e6b41c739ce4208807368ff89025b240e
358
py
Python
setup.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
setup.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
setup.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
#!/usr/bin/env python from distutils.core import setup setup( name="python-tdlib", version="1.4.0", author="andrew-ld", license="MIT", url="https://github.com/andrew-ld/python-tdlib", packages=["py_tdlib", "py_tdlib.constructors", "py_tdlib.factory"], install_requires=["werkzeug", "simplej...
23.866667
71
0.656425
0
0
0
0
0
0
0
0
181
0.505587
0d2f27a4418e1470048e931eb3e58013861b8b5e
30,937
py
Python
viz_funcs.py
cjsmith015/phytochemical-diversity-cannabis
4f71fec4e6c662dbb6aaafad23f01cef9b9aa8b5
[ "CC0-1.0" ]
null
null
null
viz_funcs.py
cjsmith015/phytochemical-diversity-cannabis
4f71fec4e6c662dbb6aaafad23f01cef9b9aa8b5
[ "CC0-1.0" ]
null
null
null
viz_funcs.py
cjsmith015/phytochemical-diversity-cannabis
4f71fec4e6c662dbb6aaafad23f01cef9b9aa8b5
[ "CC0-1.0" ]
null
null
null
import numpy as np import pandas as pd import scipy.stats as scs import itertools from collections import defaultdict import textwrap import pingouin as pg from statsmodels.stats.multicomp import pairwise_tukeyhsd from sklearn.neighbors import NearestNeighbors from sklearn.decomposition import PCA from sklearn.cluster...
33.922149
155
0.56809
0
0
0
0
0
0
0
0
7,300
0.235963
0d2f4d0205d878f2318704a83c9245cfde3dc957
39,442
py
Python
app.py
yumei86/iRamen_linebot
5b9f2653076faa04118f281970edf639288d79fd
[ "MIT" ]
16
2020-12-29T11:23:01.000Z
2022-01-01T01:55:42.000Z
app.py
yumei86/iRamen_linebot
5b9f2653076faa04118f281970edf639288d79fd
[ "MIT" ]
null
null
null
app.py
yumei86/iRamen_linebot
5b9f2653076faa04118f281970edf639288d79fd
[ "MIT" ]
4
2020-12-27T14:43:35.000Z
2021-02-26T09:35:03.000Z
from flask import Flask, request, abort from linebot import (LineBotApi, WebhookHandler) from linebot.exceptions import (InvalidSignatureError) from linebot.models import * import json import os from linebot.exceptions import LineBotApiError from flask_sqlalchemy import SQLAlchemy from sqlalchemy.exc import IntegrityE...
48.514145
299
0.571168
2,797
0.067788
0
0
27,564
0.66804
0
0
8,631
0.209181