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
17553a498d4907cf69fd13bc2a596ad111d2d7ca
219
py
Python
cupcake/config/__init__.py
billyeatcookies/cupcake
2f2d1d5f8a1a454e50283547cf433cc82d1825d6
[ "MIT" ]
3
2022-03-29T12:55:24.000Z
2022-03-30T17:06:11.000Z
cupcake/config/__init__.py
billyeatcookies/Cupcake
2f2d1d5f8a1a454e50283547cf433cc82d1825d6
[ "MIT" ]
null
null
null
cupcake/config/__init__.py
billyeatcookies/Cupcake
2f2d1d5f8a1a454e50283547cf433cc82d1825d6
[ "MIT" ]
null
null
null
from tkinter import font class Config: def __init__(self, master, *args, **kwargs): self.master = master self.font = font.Font( family="Consolas", size=11, weight="normal")
21.9
48
0.579909
191
0.872146
0
0
0
0
0
0
18
0.082192
175675d7610b11f7f5a72c44eb62e7eb639038db
1,372
py
Python
plugins/operators/vivareal_operator.py
lucaspfigueiredo/elt-pipeline
71537f5c2bd2e6502ea44c8dab44cc4ba8919e7f
[ "MIT" ]
2
2022-03-29T23:48:35.000Z
2022-03-30T02:10:34.000Z
plugins/operators/vivareal_operator.py
lucaspfigueiredo/elt-pipeline
71537f5c2bd2e6502ea44c8dab44cc4ba8919e7f
[ "MIT" ]
null
null
null
plugins/operators/vivareal_operator.py
lucaspfigueiredo/elt-pipeline
71537f5c2bd2e6502ea44c8dab44cc4ba8919e7f
[ "MIT" ]
null
null
null
import json import logging from hooks.vivareal_hook import VivarealHook from airflow.utils.decorators import apply_defaults from airflow.models.baseoperator import BaseOperator from airflow.providers.amazon.aws.hooks.s3 import S3Hook logger = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) class...
31.181818
80
0.625364
945
0.688776
0
0
212
0.154519
0
0
151
0.110058
1757cb3adbb9ba3e3de2859b8f9845a3c7c5f97a
12,676
py
Python
utils/yolo.py
Cuda-Chen/fish-yolo-grabcut
359da92815d49a7d238fe8de7bd51e5de68f0d40
[ "MIT" ]
7
2020-01-20T00:33:29.000Z
2022-01-01T04:36:06.000Z
utils/yolo.py
ZurMaD/fish-yolo-grabcut
c2570691143df36d528d2b3c115bf2bc29cddfd6
[ "MIT" ]
1
2020-01-09T09:18:29.000Z
2020-01-16T13:22:43.000Z
utils/yolo.py
Cuda-Chen/fish-yolo-grabcut
359da92815d49a7d238fe8de7bd51e5de68f0d40
[ "MIT" ]
5
2020-06-20T01:50:10.000Z
2020-12-24T09:13:10.000Z
#!/usr/bin/python import numpy as np import argparse import time import cv2 as cv import os def runYOLODetection(args): # load my fish class labels that my YOLO model was trained on labelsPath = os.path.sep.join([args["yolo"], "fish.names"]) #labelsPath = os.path.sep.join([args["yolo"], "coco.names"]) ...
40.758842
77
0.620227
0
0
0
0
0
0
0
0
6,100
0.481224
1757edeb0108328d5bcd4183eaebb8af3d8998c6
1,619
py
Python
Machine Learning A-Z/Part 1 - Data Preprocessing/data_preprocessing_template.py
SenonLi/LearnPython
0d37ed625c623a79daa9c4407751050e683fa3ed
[ "Apache-2.0" ]
null
null
null
Machine Learning A-Z/Part 1 - Data Preprocessing/data_preprocessing_template.py
SenonLi/LearnPython
0d37ed625c623a79daa9c4407751050e683fa3ed
[ "Apache-2.0" ]
null
null
null
Machine Learning A-Z/Part 1 - Data Preprocessing/data_preprocessing_template.py
SenonLi/LearnPython
0d37ed625c623a79daa9c4407751050e683fa3ed
[ "Apache-2.0" ]
null
null
null
# Data Preprocessing # Importing the libraries import numpy as np # numpy is the library that contains mathematical tools import matplotlib.pyplot as plt # help plot charts import pandas as pd # import data sets and manage data sets # 1. Importing the dataset df = pd.read_csv('Dat...
43.756757
118
0.732551
0
0
0
0
0
0
0
0
1,210
0.7437
1758ea53434e4693152e9c5c19753c1eb492d79b
13,073
py
Python
Artie/internals/rl/environment.py
MaxStrange/ArtieInfant
1edbb171a5405d2971227f2d2d83acb523c70034
[ "MIT" ]
1
2018-04-28T16:55:05.000Z
2018-04-28T16:55:05.000Z
Artie/internals/rl/environment.py
MaxStrange/ArtieInfant
1edbb171a5405d2971227f2d2d83acb523c70034
[ "MIT" ]
null
null
null
Artie/internals/rl/environment.py
MaxStrange/ArtieInfant
1edbb171a5405d2971227f2d2d83acb523c70034
[ "MIT" ]
null
null
null
""" This module provides the observations and rewards for testing and for training the RL agent to vocalize. """ import collections import logging import math import numpy as np import random import output.voice.synthesizer as synth # pylint: disable=locally-disabled, import-error import warnings Step = collections.n...
47.365942
146
0.599556
12,629
0.966037
0
0
1,121
0.085749
0
0
6,990
0.53469
175a3b4d2739554618c982905727d9731a509a3f
934
py
Python
boot.py
Ca11MeE/easy_frame
c3ec3069e3f61d1c01e5bd7ebbdf28e953a8ffa8
[ "Apache-2.0" ]
null
null
null
boot.py
Ca11MeE/easy_frame
c3ec3069e3f61d1c01e5bd7ebbdf28e953a8ffa8
[ "Apache-2.0" ]
null
null
null
boot.py
Ca11MeE/easy_frame
c3ec3069e3f61d1c01e5bd7ebbdf28e953a8ffa8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from flask import Flask import mysql,os,re from mysql import Pool import properties # 定义WEB容器(同时防止json以ascii解码返回) app=Flask(__name__) app.config['JSON_AS_ASCII'] = False # 处理各模块中的自动注入以及组装各蓝图 # dir_path中为蓝图模块路径,例如需要引入的蓝图都在routes文件夹中,则传入参数'/routes' def map_apps(dir_path): path=os.getcwd()+dir_path ...
22.780488
96
0.639186
0
0
0
0
0
0
0
0
409
0.369801
175af7185594f72ab16004503b17449a4a18cdad
3,213
py
Python
chemprop/train/evaluate.py
wangdingyan/hybridUQ
c141a4bec0e716a12444f7e9ab0d7c975df93184
[ "MIT" ]
6
2021-10-01T10:17:29.000Z
2021-12-29T04:37:10.000Z
chemprop/train/evaluate.py
wangdingyan/hybridUQ
c141a4bec0e716a12444f7e9ab0d7c975df93184
[ "MIT" ]
null
null
null
chemprop/train/evaluate.py
wangdingyan/hybridUQ
c141a4bec0e716a12444f7e9ab0d7c975df93184
[ "MIT" ]
1
2021-09-21T17:39:03.000Z
2021-09-21T17:39:03.000Z
from collections import defaultdict import logging from typing import Dict, List from .predict import predict from chemprop.data import MoleculeDataLoader, StandardScaler from chemprop.utils.metrics import get_metric_func from chemprop.models import MoleculeModel, PB_MoleculeModel def evaluate_predictions(preds ...
37.360465
114
0.545907
0
0
0
0
0
0
0
0
176
0.054777
175b67f79dbb7ac7d6310e3500fdb5ac9365371c
1,326
py
Python
packages/w3af/w3af/plugins/tests/infrastructure/test_detect_transparent_proxy.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/plugins/tests/infrastructure/test_detect_transparent_proxy.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/plugins/tests/infrastructure/test_detect_transparent_proxy.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" test_detect_transparent_proxy.py Copyright 2012 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is distribute...
32.341463
86
0.717195
498
0.375566
0
0
239
0.180241
0
0
892
0.6727
175dc9a3ede195f91638565c928e9e3207f1f8ca
1,026
py
Python
python/prototype-python2/test-libchewing-contrib/userphrase_enumerate.py
samwhelp/demo-libchewing
13ce445cf1b71e42e765d1500d63234f88700835
[ "MIT" ]
null
null
null
python/prototype-python2/test-libchewing-contrib/userphrase_enumerate.py
samwhelp/demo-libchewing
13ce445cf1b71e42e765d1500d63234f88700835
[ "MIT" ]
null
null
null
python/prototype-python2/test-libchewing-contrib/userphrase_enumerate.py
samwhelp/demo-libchewing
13ce445cf1b71e42e765d1500d63234f88700835
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import chewing import ctypes chewing._libchewing.chewing_userphrase_has_next.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_uint), ctypes.POINTER(ctypes.c_uint)] chewing._libchewing.chewing_userphrase_get.argtypes = [ctypes.c_void_p, ctypes.c_char_p, ctypes.c_uint, ...
30.176471
138
0.770955
0
0
0
0
0
0
0
0
282
0.274854
17609d169bbc79d752bdaa535b186028a8ee38c2
1,752
py
Python
sports/excel.py
liliangbin/spider
05080e862f204ce139249f07787de43781e39887
[ "Apache-2.0" ]
null
null
null
sports/excel.py
liliangbin/spider
05080e862f204ce139249f07787de43781e39887
[ "Apache-2.0" ]
null
null
null
sports/excel.py
liliangbin/spider
05080e862f204ce139249f07787de43781e39887
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import xlrd import MySQLdb import datetime xlsfile = r'li.xlsx' book = xlrd.open_workbook(xlsfile) # 获取sheet的数量 count = len(book.sheets()) sheet = book.sheets()[0] # 设置连接数据库 database = MySQLdb.connect(host="yb.upc.edu.cn", port=3306, user="yibantest", passwd="yibantest", ...
23.675676
240
0.671233
0
0
0
0
0
0
0
0
501
0.278333
1761cb53f94a10c32873088a40b0c2dc8567f7e7
18,276
py
Python
lib/rule_engine/types.py
rwspielman/rule-engine
1d84d5599fe5ab34bc8d6fc00bbe00f847352428
[ "BSD-3-Clause" ]
149
2018-04-04T12:47:38.000Z
2022-03-25T07:25:55.000Z
lib/rule_engine/types.py
rwspielman/rule-engine
1d84d5599fe5ab34bc8d6fc00bbe00f847352428
[ "BSD-3-Clause" ]
26
2020-01-06T17:29:26.000Z
2022-03-25T07:01:49.000Z
lib/rule_engine/types.py
rwspielman/rule-engine
1d84d5599fe5ab34bc8d6fc00bbe00f847352428
[ "BSD-3-Clause" ]
24
2020-02-15T22:58:30.000Z
2022-03-22T02:15:26.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # rule_engine/types.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list ...
35.695313
129
0.749343
11,787
0.644944
48
0.002626
4,992
0.273145
0
0
8,964
0.490479
17620bdfb4cf67a633f129cfa555700c6171ac09
125
py
Python
number2text/main.py
rgreinho/number2text
1c32c4e0268ea05baaa5e3b1a06431e006d16d21
[ "MIT" ]
null
null
null
number2text/main.py
rgreinho/number2text
1c32c4e0268ea05baaa5e3b1a06431e006d16d21
[ "MIT" ]
null
null
null
number2text/main.py
rgreinho/number2text
1c32c4e0268ea05baaa5e3b1a06431e006d16d21
[ "MIT" ]
null
null
null
"""Convert a number to its text representation.""" from number2text.cli.cli import cli if __name__ == '__main__': cli()
20.833333
50
0.704
0
0
0
0
0
0
0
0
60
0.48
17623540444eb9269b6276c7ee4a47d541023c28
2,437
py
Python
data_pr_downloader.py
froi/data-pr
07b386457f1868573181928cc8caecc970e7b44f
[ "MIT" ]
6
2018-01-09T14:58:42.000Z
2019-09-17T19:52:03.000Z
data_pr_downloader.py
froi/data-pr
07b386457f1868573181928cc8caecc970e7b44f
[ "MIT" ]
40
2019-08-21T12:05:26.000Z
2021-07-14T10:39:27.000Z
data_pr_downloader.py
froi/data-pr
07b386457f1868573181928cc8caecc970e7b44f
[ "MIT" ]
1
2018-01-09T21:23:53.000Z
2018-01-09T21:23:53.000Z
from datetime import datetime import json import logging from mimetypes import guess_extension import os import requests from slugify import slugify FORMAT = '%(asctime)-15s - %(message)s' logging.basicConfig(format=FORMAT) logger = logging.getLogger('data_pr') BASE_DATA_DIR = 'data_files' DATA_PR_CATALOG_PATH = f'{B...
34.814286
87
0.685679
0
0
0
0
0
0
0
0
704
0.28888
1764184768f6f8663aaf405c83cd769d6fb4865b
1,735
py
Python
CodeBERT/preprocess_data.py
code-backdoor/code-backdoor
1eeb3d79aa8a54c8f08e8d0156b569de5edd974e
[ "MIT" ]
null
null
null
CodeBERT/preprocess_data.py
code-backdoor/code-backdoor
1eeb3d79aa8a54c8f08e8d0156b569de5edd974e
[ "MIT" ]
null
null
null
CodeBERT/preprocess_data.py
code-backdoor/code-backdoor
1eeb3d79aa8a54c8f08e8d0156b569de5edd974e
[ "MIT" ]
null
null
null
import gzip import glob import os import json import numpy as np from more_itertools import chunked DATA_DIR = '/mnt/wanyao/zsj/codesearchnet' DEST_DIR = '/mnt/wanyao/zsj/CodeBERT/data/codesearch/train_valid' def format_str(string): for char in ['\r\n', '\r', '\n']: string = string.replace(char, ' ') ...
33.365385
110
0.616138
0
0
0
0
0
0
0
0
348
0.200576
1767751b5d41cd4c05b86fd5734231e3fe189e78
201
py
Python
code-pool/max-min2.py
ColorOfLight/kaist-musynth
98bf12cfac0722e15db2e9a8e01275b002e7bdf3
[ "MIT" ]
1
2021-09-06T03:09:40.000Z
2021-09-06T03:09:40.000Z
code-pool/max-min2.py
ColorOfLight/kaist-musynth
98bf12cfac0722e15db2e9a8e01275b002e7bdf3
[ "MIT" ]
null
null
null
code-pool/max-min2.py
ColorOfLight/kaist-musynth
98bf12cfac0722e15db2e9a8e01275b002e7bdf3
[ "MIT" ]
null
null
null
n=int(input()) k=int(input()) a=[] m=0 for i in range(n): a.append(int(input())) a.sort(reverse=True) m=a[0]-a[k-1] for i in range(n-k+1): if a[i]-a[i+k-1] < m: m=a[i]-a[i+k-1] print(m)
16.75
26
0.527363
0
0
0
0
0
0
0
0
0
0
17690a767660c008e60f5e5fe1a87037ce7c37c2
28,559
py
Python
bruhat/huffman.py
punkdit/bruhat
3231eacc49fd3464542f7eb72684751371d9876c
[ "MIT" ]
3
2020-04-07T13:21:30.000Z
2020-07-15T02:07:20.000Z
bruhat/huffman.py
punkdit/bruhat
3231eacc49fd3464542f7eb72684751371d9876c
[ "MIT" ]
null
null
null
bruhat/huffman.py
punkdit/bruhat
3231eacc49fd3464542f7eb72684751371d9876c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ https://golem.ph.utexas.edu/category/2019/03/how_much_work_can_it_be_to_add.html#c055688 see also entropy.py """ import sys from functools import reduce from operator import add from math import log, log2 from random import shuffle, choice, randint, seed #import numpy #from matplotlib import...
26.105119
101
0.482755
13,992
0.489933
2,254
0.078924
101
0.003537
0
0
3,281
0.114885
176cfc7beca4767a39789010087bddac4d12b45d
1,759
py
Python
p384_Shuffle_an_Array.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p384_Shuffle_an_Array.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p384_Shuffle_an_Array.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
''' - Leetcode problem: 384 - Difficulty: Medium - Brief problem description: Shuffle a set of numbers without duplicates. Example: // Init an array with set 1, 2, and 3. int[] nums = {1,2,3}; Solution solution = new Solution(nums); // Shuffle the array [1,2,3] and return its result. Any permutation of [1,2,3] mu...
23.77027
114
0.533258
1,034
0.587834
0
0
0
0
0
0
866
0.492325
176fd12839e770c97951f5799e322a7e99606c06
10,613
py
Python
github_update_dara.py
9bstudios/mecco_dara
9c460a10e6bf4c3485e602ecbacdeacefaa9154f
[ "MIT" ]
10
2018-06-04T13:18:23.000Z
2020-06-14T10:09:57.000Z
github_update_dara.py
9bstudios/mecco_dara
9c460a10e6bf4c3485e602ecbacdeacefaa9154f
[ "MIT" ]
null
null
null
github_update_dara.py
9bstudios/mecco_dara
9c460a10e6bf4c3485e602ecbacdeacefaa9154f
[ "MIT" ]
1
2018-10-26T05:44:25.000Z
2018-10-26T05:44:25.000Z
# python import sys, traceback import requests, pprint, os, zipfile, shutil, glob, xml.etree.ElementTree, getpass import json from os.path import expanduser #from git import Repo BASE_URL = "https://api.github.com/repos/pixelfondue/%s/releases/latest" BASE_PATH = os.path.dirname(os.path.realpath(__file__)) print "bas...
34.016026
95
0.647508
0
0
0
0
0
0
0
0
2,027
0.190992
17710ad793bc93dd8874daa574ca41c7a810cdf1
1,210
py
Python
nestor/datasets/base.py
usnistgov/nestor-tmp
6cc35dcf4dac029f94c4bc92783b5dc37bc205ce
[ "RSA-MD" ]
16
2018-07-06T16:36:56.000Z
2021-12-13T03:02:02.000Z
nestor/datasets/base.py
usnistgov/nestor-tmp
6cc35dcf4dac029f94c4bc92783b5dc37bc205ce
[ "RSA-MD" ]
46
2018-08-06T15:51:35.000Z
2021-08-02T21:00:51.000Z
nestor/datasets/base.py
usnistgov/nestor-tmp
6cc35dcf4dac029f94c4bc92783b5dc37bc205ce
[ "RSA-MD" ]
7
2020-04-27T18:56:24.000Z
2021-08-14T02:44:40.000Z
from pathlib import Path import pandas as pd def load_excavators(cleaned=False): """ Helper function to load excavator toy dataset. Hodkiewicz, M., and Ho, M. (2016) "Cleaning historical maintenance work order data for reliability analysis" in Journal of Quality in Maintenance Engineering, Vol 22...
35.588235
175
0.676033
0
0
0
0
0
0
0
0
887
0.733058
177194c329dea268086e33e7d66d605e4b6732f1
2,094
py
Python
server/test/test_server.py
byee123/battleships
0cd527217c8727f7b3274d8a661cbf8d49aa4276
[ "MIT" ]
2
2020-11-02T08:04:06.000Z
2020-11-25T12:20:45.000Z
server/test/test_server.py
byee123/battleships
0cd527217c8727f7b3274d8a661cbf8d49aa4276
[ "MIT" ]
17
2020-11-02T04:30:17.000Z
2020-12-07T00:35:34.000Z
server/test/test_server.py
byee123/battleships
0cd527217c8727f7b3274d8a661cbf8d49aa4276
[ "MIT" ]
14
2020-10-05T08:15:59.000Z
2020-11-28T10:31:40.000Z
import unittest from game import Game import server REDIS_HOST = '192.168.20.50' class TestServer(unittest.TestCase): """Please note that the tests in this suite only work if a Redis host is available (see REDIS_HOST above). """ def test_redis_connection(self): """Test that the Battleship ser...
33.238095
70
0.617479
2,009
0.959408
0
0
0
0
0
0
528
0.252149
1772a508f28a639e2e47a3e3c85f76e1e18b4977
12,643
py
Python
src/tenants/management/commands/update_lastseen.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
1
2016-01-18T08:19:22.000Z
2016-01-18T08:19:22.000Z
src/tenants/management/commands/update_lastseen.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
src/tenants/management/commands/update_lastseen.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs) # # 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...
45.315412
91
0.536423
11,582
0.91608
0
0
0
0
0
0
2,553
0.20193
17738680820320743984fa3e2770dfc03df31cc2
83
py
Python
Chapter 05/Chap05_Example5.47.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 05/Chap05_Example5.47.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 05/Chap05_Example5.47.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
#games module from Football.goalkeeper import name_goalkeeper name_goalkeeper()
20.75
48
0.831325
0
0
0
0
0
0
0
0
14
0.168675
1773d93609383bcbb4fab691a8762940ea340e8e
1,470
py
Python
pset6/dna/dna.py
vipsum/cs50
b3aa05ae470faea657343644a4073814825ceb83
[ "MIT" ]
null
null
null
pset6/dna/dna.py
vipsum/cs50
b3aa05ae470faea657343644a4073814825ceb83
[ "MIT" ]
null
null
null
pset6/dna/dna.py
vipsum/cs50
b3aa05ae470faea657343644a4073814825ceb83
[ "MIT" ]
null
null
null
import csv import sys # error checking if len(sys.argv) != 3: print("ERROR. Usage: Usage: python dna.py data.csv sequence.txt") sys.exit(1) #opening csv file and sequence texts csvFile = open(sys.argv[1]) DNAsequence = open(sys.argv[2]).read() # reading csv file onto a dictionary csvReader = csv.DictReader(csvF...
34.186047
94
0.687075
0
0
0
0
0
0
0
0
471
0.319973
1777e634f97948573907da1787803d38c27f6c8f
311
py
Python
script_utils/read_file.py
img-caption-mania/img_caption_dl_textAnalytic
444385d928687673b5286ebb0a9b598de019916f
[ "Apache-2.0" ]
null
null
null
script_utils/read_file.py
img-caption-mania/img_caption_dl_textAnalytic
444385d928687673b5286ebb0a9b598de019916f
[ "Apache-2.0" ]
null
null
null
script_utils/read_file.py
img-caption-mania/img_caption_dl_textAnalytic
444385d928687673b5286ebb0a9b598de019916f
[ "Apache-2.0" ]
2
2020-06-30T20:53:09.000Z
2021-09-30T10:29:45.000Z
import os, sys, re, natsort ls = [this for this in os.listdir(os.getcwd() + '/' + str(sys.argv[1]))] # ls = ls.sort(key=lambda f: int(re.sub('\D', '', f))) ls = natsort.natsorted(ls,reverse=False) with open(os.getcwd() + '/' + str(sys.argv[2]), 'w') as f: for item in ls: f.write("%s\n" % item)
25.916667
72
0.569132
0
0
0
0
0
0
0
0
69
0.221865
177931d9295fee1cf93668dbfec3ca5bb4baf4e5
1,281
py
Python
utils.py
sc2h6o/DT
d1cde39c778d827efeb89c1b1d4d54d13214b51f
[ "MIT" ]
null
null
null
utils.py
sc2h6o/DT
d1cde39c778d827efeb89c1b1d4d54d13214b51f
[ "MIT" ]
null
null
null
utils.py
sc2h6o/DT
d1cde39c778d827efeb89c1b1d4d54d13214b51f
[ "MIT" ]
null
null
null
import numpy as np import cv2 import random def int_(x): if x==int(x): return int(x) else: return int(x+1) def rdint(x): return int(round(x)) def IoU(box1, box2): x1 = max(box1[0], box2[0]) y1 = max(box1[1], box2[1]) x2 = min(box1[0]+box1[2], box2[0]+box2[2]) y2 = min(box1[1]+box1[3], box2[1]+box2[3]) i...
20.333333
72
0.54879
0
0
0
0
0
0
0
0
0
0
177a3ca237d5d4bf472566aa5ce8d9bf5f80f77a
31
py
Python
SSM/evaluations/__init__.py
taufikxu/FD-ScoreMatching
9df0789bb98bb798b3de57072f63ee4b2f19947f
[ "MIT" ]
12
2020-05-23T10:02:12.000Z
2021-03-25T19:54:00.000Z
SSM/evaluations/__init__.py
taufikxu/FD-ScoreMatching
9df0789bb98bb798b3de57072f63ee4b2f19947f
[ "MIT" ]
6
2021-03-19T15:30:28.000Z
2022-03-12T00:51:16.000Z
SSM/evaluations/__init__.py
taufikxu/FD-ScoreMatching
9df0789bb98bb798b3de57072f63ee4b2f19947f
[ "MIT" ]
4
2020-11-04T03:52:45.000Z
2021-12-28T16:07:08.000Z
__all__ = ['ais', 'fid', 'hmc']
31
31
0.516129
0
0
0
0
0
0
0
0
15
0.483871
177b2b2fc328442186cfa83ce8437c5a552fcc24
1,651
py
Python
models/conv_lstm.py
i1idan/schizophrenia-diagnosis-eeg-signals
50e51c16c6df0a61b5e62223c404039d659c9d48
[ "MIT" ]
5
2021-12-24T18:20:16.000Z
2022-01-27T19:45:28.000Z
models/conv_lstm.py
i1idan/schizophrenia-diagnosis-eeg-signals
50e51c16c6df0a61b5e62223c404039d659c9d48
[ "MIT" ]
null
null
null
models/conv_lstm.py
i1idan/schizophrenia-diagnosis-eeg-signals
50e51c16c6df0a61b5e62223c404039d659c9d48
[ "MIT" ]
1
2021-12-24T18:19:23.000Z
2021-12-24T18:19:23.000Z
from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense from tensorflow.keras.layers import Flatten from tensorflow.keras.layers import Dropout from tensorflow.keras.layers import LSTM, Conv1D, GRU from tensorflow.keras.layers import TimeDistributed from tensorflow.keras.layers import M...
39.309524
89
0.643852
1,190
0.720775
0
0
0
0
0
0
80
0.048455
177c08e0f1aa8faf34025ae8c1b40c9f8d1f633f
2,112
py
Python
ST_DM/KDD2021-MSTPAC/code/MST-PAC/frame/core/gpu_predictor.py
zhangyimi/Research
866f91d9774a38d205d6e9a3b1ee6293748261b3
[ "Apache-2.0" ]
1,319
2020-02-14T10:42:07.000Z
2022-03-31T15:42:18.000Z
ST_DM/KDD2021-MSTPAC/code/MST-PAC/frame/core/gpu_predictor.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
192
2020-02-14T02:53:34.000Z
2022-03-31T02:25:48.000Z
ST_DM/KDD2021-MSTPAC/code/MST-PAC/frame/core/gpu_predictor.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
720
2020-02-14T02:12:38.000Z
2022-03-31T12:21:15.000Z
############################################################################# # # Copyright (c) 2019 Baidu.com, Inc. All Rights Reserved # ############################################################################ """ Specify the brief gpu_predictor.py Author: map(wushilei@baidu.com) Date: 2019/07/21 20:09:58...
32
85
0.650095
1,020
0.482955
0
0
0
0
0
0
913
0.432292
177e76b8a5ad62be0cc716aa96929143804c2c31
77
py
Python
src/fdk_organization_bff/sparql/__init__.py
Informasjonsforvaltning/organization-page-bffe
473dc9606649f864618f4f8bfc4a6a2a035f06d7
[ "Apache-2.0" ]
null
null
null
src/fdk_organization_bff/sparql/__init__.py
Informasjonsforvaltning/organization-page-bffe
473dc9606649f864618f4f8bfc4a6a2a035f06d7
[ "Apache-2.0" ]
47
2020-05-14T07:54:48.000Z
2022-03-29T22:17:08.000Z
src/fdk_organization_bff/sparql/__init__.py
Informasjonsforvaltning/organization-page-bffe
473dc9606649f864618f4f8bfc4a6a2a035f06d7
[ "Apache-2.0" ]
null
null
null
"""SPARQL package. Modules: dataset_queries dataservice_queries """
11
23
0.701299
0
0
0
0
0
0
0
0
76
0.987013
177e8c1d5af7739ef2b33bcff39f04682a94721f
2,368
py
Python
Python/CoviDetect/covid_detect/sub_app/views.py
Idhant-6/HAcktoberfest-2021-With-Python
ae6f8b5aadeca5a7329fe8e8d7de3f5069e687a1
[ "MIT" ]
14
2021-10-01T16:53:27.000Z
2021-10-17T13:15:44.000Z
Python/CoviDetect/covid_detect/sub_app/views.py
Idhant-6/HAcktoberfest-2021-With-Python
ae6f8b5aadeca5a7329fe8e8d7de3f5069e687a1
[ "MIT" ]
37
2021-10-01T17:14:52.000Z
2021-10-21T17:26:14.000Z
Python/CoviDetect/covid_detect/sub_app/views.py
Idhant-6/Hacktoberfest-2021
ae6f8b5aadeca5a7329fe8e8d7de3f5069e687a1
[ "MIT" ]
38
2021-10-01T16:59:16.000Z
2021-10-30T16:05:31.000Z
from django.http import request from django.shortcuts import render,HttpResponse import cv2 import numpy as np import base64 import joblib from numpy.core.defchararray import join import sklearn import pywt def w2d(img, mode='haar', level=1): imArray = img #Datatype conversions #convert to grayscale ...
27.858824
101
0.669341
0
0
0
0
0
0
0
0
428
0.180743
17801b23c209f52e4859df74018bcf887604f24c
5,060
py
Python
tube_dl/formats.py
hahv/tube_dl
4641c48d74c1881ddd6785784a3884bdea2ca674
[ "MIT" ]
17
2020-12-04T16:37:22.000Z
2022-02-26T10:19:02.000Z
tube_dl/formats.py
hahv/tube_dl
4641c48d74c1881ddd6785784a3884bdea2ca674
[ "MIT" ]
11
2020-12-13T01:41:33.000Z
2022-02-19T12:58:50.000Z
tube_dl/formats.py
hahv/tube_dl
4641c48d74c1881ddd6785784a3884bdea2ca674
[ "MIT" ]
10
2020-12-26T04:47:18.000Z
2022-02-10T09:49:19.000Z
import string import os import requests from tube_dl.extras import Output headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36', 'referer': 'https: //youtube.com'} class Format: def __init__(self, category, description, t...
37.481481
254
0.562055
4,799
0.948419
0
0
0
0
0
0
1,336
0.264032
17810377c3837f4b8580799808c6d976e9b3f30b
619
py
Python
hopperpw/hopperpw/urls.py
teddywest32/hopper.pw
ff80ded3d34a5f33a5770d5e69405a66ff649a62
[ "BSD-3-Clause" ]
81
2015-01-03T20:35:52.000Z
2021-01-05T22:33:15.000Z
hopperpw/hopperpw/urls.py
teddywest32/hopper.pw
ff80ded3d34a5f33a5770d5e69405a66ff649a62
[ "BSD-3-Clause" ]
9
2015-02-04T15:14:12.000Z
2021-09-19T22:49:27.000Z
hopperpw/hopperpw/urls.py
teddywest32/hopper.pw
ff80ded3d34a5f33a5770d5e69405a66ff649a62
[ "BSD-3-Clause" ]
34
2015-01-01T06:19:23.000Z
2021-11-23T11:35:26.000Z
# coding=utf-8 from django.conf import settings from django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^allauth/', include('allauth.urls')), url(r'^accounts/', include('accounts....
28.136364
67
0.701131
0
0
0
0
0
0
0
0
109
0.17609
1781e7376d613c7a6c0f2a03c05f305b2a11aef7
372
py
Python
Utilidades/Constantes.py
SergioCMDev/Busines-Inteligence-applied-to-tourism
61834a46fce22453e94b7bbdf8d4ecdcf128285a
[ "Apache-2.0" ]
null
null
null
Utilidades/Constantes.py
SergioCMDev/Busines-Inteligence-applied-to-tourism
61834a46fce22453e94b7bbdf8d4ecdcf128285a
[ "Apache-2.0" ]
null
null
null
Utilidades/Constantes.py
SergioCMDev/Busines-Inteligence-applied-to-tourism
61834a46fce22453e94b7bbdf8d4ecdcf128285a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jun 27 19:10:03 2017 @author: Sergio Cristauro Manzano """ class Constantes: Meses = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'] DB_Name = 'DatabaseTFG' IP_BD = '127.0.0.1' UsuarioBD =...
28.615385
131
0.642473
269
0.723118
0
0
0
0
0
0
232
0.623656
17829f70617771fbf2d26fae550ff76307f210c4
1,520
py
Python
tests/test_jwt_vc.py
BasileiosKal/py-verifier
6614bdc515f823245762c0250de429a27c39e203
[ "MIT" ]
null
null
null
tests/test_jwt_vc.py
BasileiosKal/py-verifier
6614bdc515f823245762c0250de429a27c39e203
[ "MIT" ]
null
null
null
tests/test_jwt_vc.py
BasileiosKal/py-verifier
6614bdc515f823245762c0250de429a27c39e203
[ "MIT" ]
2
2022-01-17T11:08:27.000Z
2022-01-28T09:50:10.000Z
import pytest import requests import json from issuer import Issuer class TestJWT: def test_valid_authorization_get(self): token = Issuer().issue_valid_vc() headers = {'Authorization':'Bearer ' + token, 'Accept': 'application/json'} response = requests.get("http://localhost:9000/secure...
40
119
0.657237
1,447
0.951974
0
0
0
0
0
0
384
0.252632
1782c1e0fd348b9a66a92236ad156329c06af117
695
py
Python
exercicios/ex041.py
LucasLima337/CEV_Python_Exercicios
7959fd2977a26ffca6a9adb13067d4727dc433fe
[ "MIT" ]
null
null
null
exercicios/ex041.py
LucasLima337/CEV_Python_Exercicios
7959fd2977a26ffca6a9adb13067d4727dc433fe
[ "MIT" ]
null
null
null
exercicios/ex041.py
LucasLima337/CEV_Python_Exercicios
7959fd2977a26ffca6a9adb13067d4727dc433fe
[ "MIT" ]
null
null
null
# Classificando Atletas from datetime import date from time import sleep n = str(input('\033[1;30mDigite o seu nome completo: ')).strip().title() a = int(input('Digite o seu ano de nascimento: ')) anoatual = date.today().year i = anoatual - a print('') sleep(1.75) print('ANALISANDO...') sleep(2) print('') print('=-=' *...
25.740741
72
0.638849
0
0
0
0
0
0
0
0
330
0.474138
178374b80192e344de3181d10c48f542eee0cc58
1,828
py
Python
export_name_list.py
brandyn-gilbert/DAT-281-CAPSTONE
d86dd62eab164e6845dee63954cacc0324a449bc
[ "MIT" ]
null
null
null
export_name_list.py
brandyn-gilbert/DAT-281-CAPSTONE
d86dd62eab164e6845dee63954cacc0324a449bc
[ "MIT" ]
null
null
null
export_name_list.py
brandyn-gilbert/DAT-281-CAPSTONE
d86dd62eab164e6845dee63954cacc0324a449bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 12, 2021 Developed for UIF to more easily handle the growing number of alumni they have, and to track interactions with said alumni. Final Project for CCAC DAT-281 @author: BKG """ import os import sqlite3 from sqlite3 import Error import pandas as pd def main(locat...
24.702703
83
0.609409
0
0
0
0
0
0
0
0
1,198
0.655361
1786459a46918397c8fdf54d4d007c6b15470cab
2,537
py
Python
base_app/treasurehunt/models.py
aadityajo/ecell-oth-django
8006cb0793bfdf084b78df5514852665adba5588
[ "MIT" ]
1
2021-07-07T19:44:49.000Z
2021-07-07T19:44:49.000Z
base_app/treasurehunt/models.py
aadityajo/ecell-oth-django
8006cb0793bfdf084b78df5514852665adba5588
[ "MIT" ]
null
null
null
base_app/treasurehunt/models.py
aadityajo/ecell-oth-django
8006cb0793bfdf084b78df5514852665adba5588
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager from django import forms from django.core import validators from datetime import date # Create your models here. class Us...
28.505618
71
0.698069
2,186
0.861648
0
0
0
0
0
0
518
0.204178
178891f94229c492f6f9626a23fde3974ba0c8f5
2,071
py
Python
old/Graph.py
csdevto/tradingbot
b024236f0d2801380e7f86aa1660c44060728eb1
[ "MIT" ]
null
null
null
old/Graph.py
csdevto/tradingbot
b024236f0d2801380e7f86aa1660c44060728eb1
[ "MIT" ]
null
null
null
old/Graph.py
csdevto/tradingbot
b024236f0d2801380e7f86aa1660c44060728eb1
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt #Data Source import yfinance as yf import time, datetime, math from datetime import datetime import sqlite3 #Interval required 5 minutes con = sqlite3.connect("DB/stocks.db") #con.row_factory = sqlite3.Row stock = 'UBER' data = pd.read_sql_query("...
31.861538
172
0.652342
0
0
0
0
0
0
0
0
1,083
0.522936
1788e3eb4a66dc8651ec9cedf05fde603a74872c
107
py
Python
enthought/block_canvas/class_tools/search_package.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/block_canvas/class_tools/search_package.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/block_canvas/class_tools/search_package.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from blockcanvas.class_tools.search_package import *
26.75
52
0.859813
0
0
0
0
0
0
0
0
14
0.130841
178b7dd958ef0de71b66b15ae19e8ed148d5bb53
216
py
Python
meridian/acupoints/yuji24.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
5
2015-12-14T15:14:23.000Z
2022-02-09T10:15:33.000Z
meridian/acupoints/yuji24.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
null
null
null
meridian/acupoints/yuji24.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
3
2015-11-27T05:23:49.000Z
2020-11-28T09:01:56.000Z
#!/usr/bin/python #coding=utf-8 ''' @author: sheng @license: ''' SPELL=u'yújì' CN=u'鱼际' NAME=u'yuji24' CHANNEL='lung' CHANNEL_FULLNAME='LungChannelofHand-Taiyin' SEQ='LU10' if __name__ == '__main__': pass
10.285714
43
0.671296
0
0
0
0
0
0
0
0
138
0.621622
178b8f7b8817c326e1125ab56cb91128e6dfcebb
6,044
py
Python
stable_baselines_model_based_rl/sampler/gym_sampler.py
micheltokic/stable_baselines_model_based_rl
75bac906aeba69072878ceb15d9be459b1f436c3
[ "Apache-2.0" ]
1
2022-01-08T17:08:13.000Z
2022-01-08T17:08:13.000Z
stable_baselines_model_based_rl/sampler/gym_sampler.py
micheltokic/stable_baselines_model_based_rl
75bac906aeba69072878ceb15d9be459b1f436c3
[ "Apache-2.0" ]
5
2021-09-15T18:14:48.000Z
2021-09-19T16:17:51.000Z
stable_baselines_model_based_rl/sampler/gym_sampler.py
micheltokic/stable_baselines_model_based_rl
75bac906aeba69072878ceb15d9be459b1f436c3
[ "Apache-2.0" ]
null
null
null
import csv import datetime import os import gym from gym.spaces import space from gym.spaces.box import Box from gym.spaces.discrete import Discrete from gym.spaces.multi_discrete import MultiDiscrete from definitions import ROOT_DIR from stable_baselines_model_based_rl.utils.configuration import Configuration from s...
43.797101
99
0.695069
0
0
0
0
0
0
0
0
2,081
0.344308
178e643cf3d9baf1cd9e7a3ac1ac162854128b03
3,590
py
Python
sktime/transformations/panel/tests/test_shapelet_transform.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
1
2021-12-22T02:45:39.000Z
2021-12-22T02:45:39.000Z
sktime/transformations/panel/tests/test_shapelet_transform.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/panel/tests/test_shapelet_transform.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ShapeletTransform test code.""" import numpy as np from numpy import testing from sktime.datasets import load_basic_motions, load_unit_test from sktime.transformations.panel.shapelet_transform import RandomShapeletTransform def test_st_on_unit_test(): """Test of ShapeletTransform on un...
28.267717
83
0.593593
0
0
0
0
0
0
0
0
351
0.097772
178f229ede5ac1bd538446aa4396921d04e3540f
2,830
py
Python
geom.py
suke-blog/ogr2osm
294a9f3205ad976f7884eeb0abc7bcb4ef5412df
[ "MIT" ]
null
null
null
geom.py
suke-blog/ogr2osm
294a9f3205ad976f7884eeb0abc7bcb4ef5412df
[ "MIT" ]
null
null
null
geom.py
suke-blog/ogr2osm
294a9f3205ad976f7884eeb0abc7bcb4ef5412df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2012-2013 Paul Norman # <penorman@mac.com> # Released under the MIT license: http://opensource.org/licenses/mit-license.php # Classes class Geometry(object): elementIdCounter = 0 elementIdCounterIncr = -1 geometries = [] def __init__(self): #self.id = g...
30.106383
80
0.613428
2,489
0.879505
0
0
0
0
0
0
341
0.120495
178f58c78858a2df3826b89f9dc2650177ddffc7
10,302
py
Python
appCore/apps/replica/api/views/pulse.py
jadedgamer/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
4
2017-04-22T11:03:01.000Z
2018-01-16T22:28:15.000Z
appCore/apps/replica/api/views/pulse.py
alifewellplayed/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
10
2017-04-06T19:54:42.000Z
2017-11-07T06:53:10.000Z
appCore/apps/replica/api/views/pulse.py
alifewellplayed/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
1
2017-12-14T12:49:40.000Z
2017-12-14T12:49:40.000Z
import hashlib from rest_framework import generics, permissions, mixins, status from rest_framework.permissions import IsAuthenticated from rest_framework.authentication import * from rest_framework.views import APIView from rest_framework.response import Response from django.shortcuts import render_to_response, rend...
35.770833
96
0.66259
9,418
0.914191
0
0
0
0
0
0
687
0.066686
179047197bf91d3e14c6131b31ca97cf1748cbbb
1,238
py
Python
palaverapi/decorators.py
cocodelabs/api.palaverapp.com
cb517a2cd1dea12fadf4f72147fecf0105cbd717
[ "BSD-3-Clause" ]
3
2016-07-03T21:19:18.000Z
2021-07-10T18:32:16.000Z
palaverapi/decorators.py
cocodelabs/api.palaverapp.com
cb517a2cd1dea12fadf4f72147fecf0105cbd717
[ "BSD-3-Clause" ]
66
2015-03-27T21:52:11.000Z
2021-09-06T17:56:59.000Z
palaverapi/decorators.py
cocodelabs/api.palaverapp.com
cb517a2cd1dea12fadf4f72147fecf0105cbd717
[ "BSD-3-Clause" ]
1
2021-07-28T19:45:31.000Z
2021-07-28T19:45:31.000Z
import json from functools import wraps from typing import Callable from urllib.parse import parse_qsl from rivr.http import Request, Response from palaverapi.responses import ProblemResponse def requires_body(func: Callable[..., Response]): @wraps(func) def wrapper(self, request: Request, *args, **kwargs) ...
34.388889
73
0.588853
0
0
0
0
967
0.781099
0
0
116
0.0937
1790c8c518d20fe2e7697039e44e0d23b4a62c91
9,489
py
Python
cli/medperf/utils.py
johnugeorge/medperf
5bc3f643064df14e9476bd4d4c1a4c0cce5337d5
[ "Apache-2.0" ]
1
2021-09-24T18:09:53.000Z
2021-09-24T18:09:53.000Z
cli/medperf/utils.py
johnugeorge/medperf
5bc3f643064df14e9476bd4d4c1a4c0cce5337d5
[ "Apache-2.0" ]
2
2021-09-27T16:14:04.000Z
2021-11-03T14:24:54.000Z
cli/medperf/utils.py
johnugeorge/medperf
5bc3f643064df14e9476bd4d4c1a4c0cce5337d5
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from pexpect import spawn import logging from typing import List, Tuple from datetime import datetime import hashlib import os from shutil import rmtree import tarfile import yaml from pathlib import Path from colorama import Fore, Style import re import medperf.config as config from...
30.316294
89
0.644957
0
0
0
0
0
0
0
0
3,540
0.373064
1791323b17a576d78ae9d6ff260342ba69a97bc9
919
py
Python
tests/test_half_wildcard.py
oqwa/gwh
9399a9b0fd5815e81d68a4d52215c273f9c0d49b
[ "MIT" ]
null
null
null
tests/test_half_wildcard.py
oqwa/gwh
9399a9b0fd5815e81d68a4d52215c273f9c0d49b
[ "MIT" ]
null
null
null
tests/test_half_wildcard.py
oqwa/gwh
9399a9b0fd5815e81d68a4d52215c273f9c0d49b
[ "MIT" ]
null
null
null
from gwh import * from tests.utils import * app = GitWebhook() app.add_handler(lambda: None, repository=KNOWN_REPO) app.add_handler(lambda: None, type=KNOWN_TYPE) def test_bitbucket(): check_bitbucket_webhook(app, KNOWN_TYPE, KNOWN_REPO, "master", hit_expected=True) check_bitbucket_webhook(app, UNKNOWN_T...
43.761905
90
0.771491
0
0
0
0
0
0
0
0
64
0.069641
17935aaebc6842fbcfb1d8f850ae573d75c68bf6
1,873
py
Python
analytics_pipeline-master/log_generator.py
danielvdao/etl_ideas
18062c92e6441eae5b316e9cc8f0f2d085636a42
[ "MIT" ]
null
null
null
analytics_pipeline-master/log_generator.py
danielvdao/etl_ideas
18062c92e6441eae5b316e9cc8f0f2d085636a42
[ "MIT" ]
1
2017-10-17T02:58:33.000Z
2017-10-17T02:58:33.000Z
analytics_pipeline-master/log_generator.py
danielvdao/etl_ideas
18062c92e6441eae5b316e9cc8f0f2d085636a42
[ "MIT" ]
null
null
null
from faker import Faker from datetime import datetime import random import time LINE = """\ {remote_addr} - - [{time_local} +0000] "{request_type} {request_path} HTTP/1.1" {status} {body_bytes_sent} "{http_referer}" "{http_user_agent}"\ """ LOG_FILE_A = "log_a.txt" LOG_FILE_B = "log_b.txt" LOG_MAX = 100 def generate...
24.973333
144
0.639616
0
0
0
0
0
0
0
0
236
0.126001
17952b6df72029d76f72e43b7c53730bd3ee7420
150
py
Python
vetores_matrizes/exemplo_bb.py
andersonmarques/programacao_2_ufra
94a22559eed817a429309d8da338431416608c0c
[ "MIT" ]
null
null
null
vetores_matrizes/exemplo_bb.py
andersonmarques/programacao_2_ufra
94a22559eed817a429309d8da338431416608c0c
[ "MIT" ]
null
null
null
vetores_matrizes/exemplo_bb.py
andersonmarques/programacao_2_ufra
94a22559eed817a429309d8da338431416608c0c
[ "MIT" ]
null
null
null
import numpy as np valor_aplicado = np.array([5000, 6000, 7000, 8000]) juros = np.array([1, 2, 3, 4]) saida = valor_aplicado * juros print(saida)
15
51
0.68
0
0
0
0
0
0
0
0
0
0
17952da6143d5a1227f4338f74ceef2025244a03
260
py
Python
pyamg/classical/__init__.py
rsmedleystevenson/pyamg
72c3b43e0d14223e3849cb7e5f0bc8817b342373
[ "MIT" ]
null
null
null
pyamg/classical/__init__.py
rsmedleystevenson/pyamg
72c3b43e0d14223e3849cb7e5f0bc8817b342373
[ "MIT" ]
null
null
null
pyamg/classical/__init__.py
rsmedleystevenson/pyamg
72c3b43e0d14223e3849cb7e5f0bc8817b342373
[ "MIT" ]
null
null
null
"""Classical AMG""" from __future__ import absolute_import from .classical import * from .split import * from .interpolate import * from .cr import * __all__ = [s for s in dir() if not s.startswith('_')] from numpy.testing import Tester test = Tester().test
21.666667
53
0.730769
0
0
0
0
0
0
0
0
22
0.084615
17957d92994d6b6b24057eeb1c8fb73bd1d0a786
2,027
py
Python
scripts/visualization/style.py
bo1929/basty
3ef84578e0154509346fdc2c0c56261448d78276
[ "MIT" ]
5
2021-12-10T17:43:52.000Z
2022-03-01T22:19:36.000Z
scripts/visualization/style.py
bo1929/basty
3ef84578e0154509346fdc2c0c56261448d78276
[ "MIT" ]
null
null
null
scripts/visualization/style.py
bo1929/basty
3ef84578e0154509346fdc2c0c56261448d78276
[ "MIT" ]
null
null
null
MAX_LIMIT = 9999 class StyleEmbedding: colorscheme = "tableau20" filled = True sizeDefault = 7 sizeMin = 5 sizeMax = 25 opacityDefault = 0.05 opacityMin = 0.05 opacityMax = 0.5 tickMinStep = 5 def get_embedding_style(): return { "config": { ...
29.808824
78
0.391712
2,004
0.988653
0
0
0
0
0
0
609
0.300444
179a63e2713ef678248c5a0480244a33d8023a8f
1,955
py
Python
scripts/parse_aggregated_responses.py
cagnolone/openmic-2018
154dc425a4fac7ba45fb143ef75fa21189fc4d1c
[ "MIT" ]
56
2018-08-27T15:48:37.000Z
2021-12-25T11:01:23.000Z
scripts/parse_aggregated_responses.py
cagnolone/openmic-2018
154dc425a4fac7ba45fb143ef75fa21189fc4d1c
[ "MIT" ]
37
2018-08-16T17:00:21.000Z
2022-02-09T23:55:36.000Z
scripts/parse_aggregated_responses.py
cagnolone/openmic-2018
154dc425a4fac7ba45fb143ef75fa21189fc4d1c
[ "MIT" ]
7
2018-10-09T14:48:01.000Z
2020-06-06T12:03:15.000Z
#!/usr/bin/env python # coding: utf8 '''Script to parse aggregated annotation responses into a CSV file of labels. Example ------- $ ./scripts/parse_aggregated_responses.py \ "path/to/dir/*.csv" \ openmic-2018-aggregated-labels.csv ''' from __future__ import print_function import argparse import glob import ...
29.621212
88
0.703325
0
0
0
0
0
0
0
0
602
0.307928
179adee8737327e1461212148f441c448d335da8
5,303
py
Python
tests/test_looseserver/client/test_abstract_client.py
KillAChicken/loose-server
082402f1fec94faea20343142b0c306dc5f86026
[ "MIT" ]
3
2019-04-21T13:10:34.000Z
2019-10-08T05:20:04.000Z
tests/test_looseserver/client/test_abstract_client.py
KillAChicken/loose-server
082402f1fec94faea20343142b0c306dc5f86026
[ "MIT" ]
null
null
null
tests/test_looseserver/client/test_abstract_client.py
KillAChicken/loose-server
082402f1fec94faea20343142b0c306dc5f86026
[ "MIT" ]
null
null
null
"""Test cases for abstract looseserver client.""" import uuid from urllib.parse import urljoin from looseserver.client.abstract import AbstractClient def test_create_rule(client_rule_factory, client_response_factory, registered_rule): """Check request data that client uses to create a rule. 1. Create a sub...
36.321918
100
0.686027
1,891
0.356591
0
0
0
0
0
0
1,693
0.319253
179ae6f54ba09f051bfa483edda5d5eea6d22097
5,683
py
Python
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/tests/functional/api/test_merge_requests.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
22
2021-08-24T13:43:55.000Z
2022-03-25T06:18:19.000Z
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/tests/functional/api/test_merge_requests.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
3
2021-09-09T00:40:56.000Z
2022-01-26T10:53:30.000Z
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/tests/functional/api/test_merge_requests.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
15
2021-08-19T23:53:24.000Z
2022-03-28T22:26:04.000Z
import time import pytest import gitlab import gitlab.v4.objects def test_merge_requests(project): project.files.create( { "file_path": "README.rst", "branch": "master", "content": "Initial content", "commit_message": "Initial commit", } ) ...
28.70202
86
0.682562
0
0
0
0
313
0.055077
0
0
1,505
0.264825
179d043db725bce8f3b6948c83cd4e08552dd537
687
py
Python
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/ndarray_shape_manipulation.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2022-01-08T12:30:44.000Z
2022-01-08T12:30:44.000Z
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/ndarray_shape_manipulation.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/ndarray_shape_manipulation.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2021-04-26T22:41:56.000Z
2021-04-26T22:41:56.000Z
import numpy as np nd1 = np.array([[1, 2], [3, 4]]) # reshape nd1.reshape(4) nd1.reshape(2, 2) nd1.reshape((2, 2)) nd1.reshape((2, 2), order="C") nd1.reshape(4, order="C") # resize nd1.resize() nd1.resize(4) nd1.resize(2, 2) nd1.resize((2, 2)) nd1.resize((2, 2), refcheck=True) nd1.resize(4, refc...
14.3125
34
0.576419
0
0
0
0
0
0
0
0
82
0.11936
179d9ebc77da5b1737344a934257dda6f2f13fc3
3,128
py
Python
survae/nn/layers/autoregressive/utils.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
262
2020-07-05T20:57:44.000Z
2022-03-28T02:24:43.000Z
survae/nn/layers/autoregressive/utils.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
17
2020-08-15T05:43:34.000Z
2022-01-31T12:24:21.000Z
survae/nn/layers/autoregressive/utils.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
35
2020-08-24T06:55:37.000Z
2022-02-11T05:17:58.000Z
import torch def mask_conv2d_spatial(mask_type, height, width): """ Creates a mask for Conv2d such that it becomes autoregressive in the spatial dimensions. Input: mask_type: str Either 'A' or 'B'. 'A' for first layer of network, 'B' for all others. height: int ...
34
108
0.611573
0
0
0
0
0
0
0
0
1,990
0.636189
17a08dd6f2f3775ec7b362537d3a435fcbde0fb3
2,130
py
Python
powerberry-app/src/services/config.py
Steckdoose4711/powerberry
15c722ff66f0db5c00ddfb71ccc2c75d69b78d39
[ "MIT" ]
null
null
null
powerberry-app/src/services/config.py
Steckdoose4711/powerberry
15c722ff66f0db5c00ddfb71ccc2c75d69b78d39
[ "MIT" ]
20
2022-03-11T19:44:31.000Z
2022-03-21T19:13:46.000Z
powerberry-app/src/services/config.py
Steckdoose4711/powerberry
15c722ff66f0db5c00ddfb71ccc2c75d69b78d39
[ "MIT" ]
null
null
null
import json import os import pathlib import sys from loguru import logger as log class Config: """Retrieves configuration from environment variables or files or fails fast otherwise""" def __init__(self): self.keys = {} # read configuration file first self.from_env("CONFIG_PATH", ca...
33.28125
93
0.622066
2,045
0.960094
0
0
0
0
0
0
564
0.264789
17a28a397f9005910dd939fda6263ae0e3d223e7
1,256
py
Python
tests/unit/operator/test_operator_utils.py
jjmachan/bentoctl
54ca1968a7197f658a7e9dc7ab0b46db1fc7439d
[ "Apache-2.0" ]
19
2021-12-12T13:27:54.000Z
2022-03-26T13:21:08.000Z
tests/unit/operator/test_operator_utils.py
jjmachan/bentoctl
54ca1968a7197f658a7e9dc7ab0b46db1fc7439d
[ "Apache-2.0" ]
22
2021-12-09T17:37:15.000Z
2022-03-15T20:47:43.000Z
tests/unit/operator/test_operator_utils.py
jjmachan/bentoctl
54ca1968a7197f658a7e9dc7ab0b46db1fc7439d
[ "Apache-2.0" ]
7
2021-12-13T06:48:04.000Z
2022-03-01T17:21:13.000Z
import os from pathlib import Path from types import SimpleNamespace import pytest import bentoctl.operator.utils as operator_utils # import bentoctl.operator.utils.git # from bentoctl.operator import utils as operator_utils def test_get_bentoctl_home(tmp_path): os.environ["BENTOCTL_HOME"] = str(tmp_path) ...
27.911111
81
0.735669
339
0.269904
0
0
297
0.236465
0
0
213
0.169586
17a2dcce962acf6079243f734b05c4cedd810650
3,445
py
Python
test/parser/test_tail_parser.py
BigDataBoutique/bogi
cc247df8d18ef00ebba7986a57fefbb2ad82a1e6
[ "Apache-2.0" ]
null
null
null
test/parser/test_tail_parser.py
BigDataBoutique/bogi
cc247df8d18ef00ebba7986a57fefbb2ad82a1e6
[ "Apache-2.0" ]
null
null
null
test/parser/test_tail_parser.py
BigDataBoutique/bogi
cc247df8d18ef00ebba7986a57fefbb2ad82a1e6
[ "Apache-2.0" ]
null
null
null
import unittest from test.utils import dedent from bogi.parser.tail import TailParser from bogi.parser.tail_transformer import MessageBody, ContentLine, InputFileRef, MultipartField, Header, ResponseHandler, ResponseReference class TailParserTests(unittest.TestCase): def test_content_lines(self): body = ...
31.898148
139
0.576488
3,215
0.933237
0
0
0
0
0
0
1,019
0.295791
17a30d472fcfbe0abfef5d81ffe2790797697496
3,830
py
Python
openbox-tmux-pipe-menu.py
pawel-slowik/openbox-tmux-pipe-menu
cda64994a893c76ba1af1eb1de9fe72d1ec79c04
[ "MIT" ]
null
null
null
openbox-tmux-pipe-menu.py
pawel-slowik/openbox-tmux-pipe-menu
cda64994a893c76ba1af1eb1de9fe72d1ec79c04
[ "MIT" ]
null
null
null
openbox-tmux-pipe-menu.py
pawel-slowik/openbox-tmux-pipe-menu
cda64994a893c76ba1af1eb1de9fe72d1ec79c04
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import subprocess import re import xml.etree.ElementTree as et import datetime as dt import pipes import os import configparser import sys from typing import Iterable, Optional, Dict class TmuxError(Exception): pass class TmuxCommandError(TmuxError): pass class TmuxParseError(TmuxE...
27.956204
81
0.637859
158
0.041253
0
0
0
0
0
0
771
0.201305
17a347bd5164cd6a7614cc6077d50a8c68cb0c7e
1,109
py
Python
test_lib.py
DrakenWan/deeplearninglibrary
0fb7d76f9220d1479c6ddadc2e6165590ab000eb
[ "Apache-2.0" ]
null
null
null
test_lib.py
DrakenWan/deeplearninglibrary
0fb7d76f9220d1479c6ddadc2e6165590ab000eb
[ "Apache-2.0" ]
null
null
null
test_lib.py
DrakenWan/deeplearninglibrary
0fb7d76f9220d1479c6ddadc2e6165590ab000eb
[ "Apache-2.0" ]
null
null
null
""" Tutorial reference: https://www.kdnuggets.com/2020/09/implementing-deep-learning-library-scratch-python.html Original Library: https://github.com/parmeet/dll_numpy Author: DrakenWan 2020 """ import core as DL import utilities import numpy as np if __name__ == "__main__": batch_size ...
39.607143
113
0.67899
0
0
0
0
0
0
0
0
241
0.217313
17a5d125164fb471bd39e2c070263178e5c5d91d
13,454
py
Python
spyne/decorator.py
DXist/spyne
f185e44c0cf3c71c99471133a44c17f4a47ab46e
[ "BSD-3-Clause" ]
1
2021-06-07T16:19:41.000Z
2021-06-07T16:19:41.000Z
spyne/decorator.py
lemanyk/spyne
12bea0be357ceebec1cf877270ce240424357c7b
[ "BSD-3-Clause" ]
null
null
null
spyne/decorator.py
lemanyk/spyne
12bea0be357ceebec1cf877270ce240424357c7b
[ "BSD-3-Clause" ]
null
null
null
# # spyne - Copyright (C) Spyne contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This libra...
41.143731
99
0.634235
0
0
0
0
0
0
0
0
6,160
0.457856
bd587bc3d2baa172c3072e8e32527093a3a9f149
2,547
py
Python
src/routes/dataNetwork.py
spaezsuarez/view-data-app
6482b73eb39048e5dbdf133d4ccf29cc357dcb6f
[ "MIT" ]
1
2021-05-28T17:01:17.000Z
2021-05-28T17:01:17.000Z
src/routes/dataNetwork.py
spaezsuarez/view-data-app
6482b73eb39048e5dbdf133d4ccf29cc357dcb6f
[ "MIT" ]
null
null
null
src/routes/dataNetwork.py
spaezsuarez/view-data-app
6482b73eb39048e5dbdf133d4ccf29cc357dcb6f
[ "MIT" ]
null
null
null
from . import dataRoute from flask import render_template, request from utils import dataManagment import dateutil import datetime @dataRoute.route('/head', methods=['POST']) def create_head(): number = request.form['number'] df = dataManagment.data_frame_head(number) return render_template('data.html', t...
39.796875
82
0.725167
0
0
0
0
2,397
0.941107
0
0
400
0.157048
bd594ed7d37726ea78538d30996e4d5ae12daca1
144
py
Python
blackjack/cmake/storage/file/__init__.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
1
2017-05-26T00:18:26.000Z
2017-05-26T00:18:26.000Z
blackjack/cmake/storage/file/__init__.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
null
null
null
blackjack/cmake/storage/file/__init__.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
null
null
null
# File Storage related class's from .CacheFile import CacheFile from .ScriptBlock import ScriptBlock from .ToolchainFile import ToolchainFile
24
40
0.833333
0
0
0
0
0
0
0
0
30
0.205479
bd59fe6a6c4d96a34287a8a86a0f7f63819a3a16
1,177
py
Python
python/phonenumbers/shortdata/region_MY.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
2,424
2015-01-05T05:34:45.000Z
2022-03-28T22:37:53.000Z
python/phonenumbers/shortdata/region_MY.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
166
2015-01-30T23:59:18.000Z
2022-03-14T21:08:42.000Z
python/phonenumbers/shortdata/region_MY.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
345
2015-01-02T00:33:27.000Z
2022-03-26T13:06:57.000Z
"""Auto-generated file, do not edit by hand. MY metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_MY = PhoneMetadata(id='MY', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[1369]\\d{2,4}', possible_length=(3, 4,...
98.083333
358
0.705183
0
0
0
0
0
0
0
0
416
0.353441
bd5a208ee269d3bfedf85a940f895d881be68074
1,151
py
Python
Chapter 4/05 - Real-life example - lazily evaluated attributes/lazy_class_attribute.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
Chapter 4/05 - Real-life example - lazily evaluated attributes/lazy_class_attribute.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
Chapter 4/05 - Real-life example - lazily evaluated attributes/lazy_class_attribute.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
import OpenGL.GL as gl from OpenGL.GL import shaders class lazy_class_attribute(object): def __init__(self, function): self.fget = function def __get__(self, obj, cls): value = self.fget(obj or cls) # note: 인스턴스가 아닌 클래스 객체에 저장한다. # 클래스-레벨 또는 인스턴스-레벨 접근과 관계없다. set...
26.767442
77
0.592528
1,226
0.954086
0
0
280
0.217899
0
0
601
0.467704
bd5a5f01afeebbef48ab0545bb48413999a63520
6,134
py
Python
main.py
Lulzx/gittools
b4a1a4d7169a10af10079a3903b9108843e97385
[ "MIT" ]
4
2020-10-22T03:58:56.000Z
2021-10-29T20:45:49.000Z
main.py
Lulzx/gittools
b4a1a4d7169a10af10079a3903b9108843e97385
[ "MIT" ]
null
null
null
main.py
Lulzx/gittools
b4a1a4d7169a10af10079a3903b9108843e97385
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging import os import sys import time from itertools import islice from uuid import uuid4 import emojis from github import Github from telegram import InlineKeyboardButton, InlineKeyboardMarkup from telegram import InlineQueryResultArticle, ParseMode from teleg...
31.45641
104
0.630747
0
0
0
0
0
0
0
0
1,228
0.198802
bd5a9dc0a73172358dd3bd333a0ffa43e3db9416
440
py
Python
app/app.py
tsmit58/flask-celery-microservice
b961b9b8fdffc11b7b8f7eb8883ec635aabdfb44
[ "MIT" ]
41
2021-03-10T15:35:19.000Z
2022-03-03T20:04:52.000Z
app/app.py
tsmit58/flask-celery-microservice
b961b9b8fdffc11b7b8f7eb8883ec635aabdfb44
[ "MIT" ]
1
2021-08-09T13:22:21.000Z
2021-08-10T08:36:39.000Z
app/app.py
tsmit58/flask-celery-microservice
b961b9b8fdffc11b7b8f7eb8883ec635aabdfb44
[ "MIT" ]
16
2021-03-28T23:36:22.000Z
2022-03-31T01:55:00.000Z
from flask import Flask from celery import Celery import os app = Flask(__name__) app.config['CELERY_BROKER_URL'] = os.getenv("CELERY_BROKER_URL") app.config['RESULT_BACKEND'] = os.getenv("CELERY_RESULT_BACKEND") app.config['SECRET_KEY'] = os.getenv("SECRET_KEY") celery = Celery(app.import_name, backe...
31.428571
65
0.725
0
0
0
0
0
0
0
0
136
0.309091
bd5b5440ec10bb3d894d2f6fb7dcd6426ce92c37
4,132
py
Python
SnakeGame.py
captainpolar/snakegame
018638875309f0b17a6dbbd5c3ff4f536058b844
[ "MIT" ]
1
2021-03-29T17:15:09.000Z
2021-03-29T17:15:09.000Z
SnakeGame.py
captainpolar/snakegame
018638875309f0b17a6dbbd5c3ff4f536058b844
[ "MIT" ]
null
null
null
SnakeGame.py
captainpolar/snakegame
018638875309f0b17a6dbbd5c3ff4f536058b844
[ "MIT" ]
null
null
null
import pygame import random pygame.init() white = (255, 255, 255) black = (0, 0, 0) yellow = (255, 255, 102) red = (250, 0, 0) # Other nice red color: 213, 50, 80 green = (152, 251, 152) blue = (30, 144, 255) # other nice combo: 50, 151, 213 dis_width = 800 dis_height = 600 dis = pygame.display.set...
29.304965
104
0.526864
0
0
0
0
0
0
0
0
510
0.123427
bd5c8afbbd833cee9c288bc0007055dc079f69d8
3,335
py
Python
MpSA-TRIP/BarcodeGenomeLibMain.py
wiw/pyMPFA
a72aa196859031b2194fb51f204a1ab938193aaa
[ "Unlicense" ]
null
null
null
MpSA-TRIP/BarcodeGenomeLibMain.py
wiw/pyMPFA
a72aa196859031b2194fb51f204a1ab938193aaa
[ "Unlicense" ]
null
null
null
MpSA-TRIP/BarcodeGenomeLibMain.py
wiw/pyMPFA
a72aa196859031b2194fb51f204a1ab938193aaa
[ "Unlicense" ]
null
null
null
#C:\Python27\python.exe #!/usr/bin/env python # encoding: utf-8 import os # import subprocess import SupportFunc as supp import ReadIndexesFunc as rind import CollectBcMutFunc as colb import WriteFunc as wrt import param import picks from TripMain_0_2 import Pdump def main(): supp.setup_logging() for name in ...
60.636364
261
0.661469
0
0
0
0
0
0
0
0
1,420
0.425787
bd5ce6155a750a874aeaeebfe810ee41acfd3156
589
py
Python
udb_py/udb_storage.py
akaterra/udb.py
3c04fa788e4b2fc8356c1210b9d81004aa932c0b
[ "MIT" ]
2
2020-01-04T12:04:58.000Z
2020-02-15T16:32:12.000Z
udb_py/udb_storage.py
akaterra/udb.py
3c04fa788e4b2fc8356c1210b9d81004aa932c0b
[ "MIT" ]
null
null
null
udb_py/udb_storage.py
akaterra/udb.py
3c04fa788e4b2fc8356c1210b9d81004aa932c0b
[ "MIT" ]
null
null
null
class UdbStorage(object): def is_available(self): raise NotImplementedError def is_capture_events(self): return False def drop(self): raise NotImplementedError def load(self): raise NotImplementedError def save(self, indexes, revision, data): raise NotImpl...
21.035714
45
0.650255
588
0.998302
0
0
0
0
0
0
0
0
bd5d9ea17d4a9ae541c6e6916ed6741c75882ac1
12,036
py
Python
polyart/_input.py
IsaacTFM/pygrr-polyart
7a8219cd93b5691ddca89b4fb46a4af7bc1e3456
[ "Apache-2.0" ]
4
2021-11-21T18:35:54.000Z
2021-12-14T02:02:37.000Z
polyart/_input.py
IsaacTFM/pygrr-polyart
7a8219cd93b5691ddca89b4fb46a4af7bc1e3456
[ "Apache-2.0" ]
3
2021-11-21T18:37:56.000Z
2021-11-21T19:15:21.000Z
polyart/_input.py
IsaacTFM/pygrr-polyart
7a8219cd93b5691ddca89b4fb46a4af7bc1e3456
[ "Apache-2.0" ]
1
2021-11-21T18:39:52.000Z
2021-11-21T18:39:52.000Z
""" This file handles the input of PolyArt. """ # if this is the origin file (not imported) if __name__ == "__main__": # print the documentation print(__doc__) # add sysmessages module location to path from sys import path path.append('..') # run sysmessages import common.sysmessages # im...
27.990698
149
0.534064
0
0
0
0
0
0
0
0
4,837
0.401878
bd5f550b799363cf152de68256f97f876bf2f1f2
1,486
py
Python
biodada/alphabets.py
simomarsili/biodada
642fb440d8a66a0413deb69c8623ea3b61d41678
[ "BSD-3-Clause" ]
null
null
null
biodada/alphabets.py
simomarsili/biodada
642fb440d8a66a0413deb69c8623ea3b61d41678
[ "BSD-3-Clause" ]
null
null
null
biodada/alphabets.py
simomarsili/biodada
642fb440d8a66a0413deb69c8623ea3b61d41678
[ "BSD-3-Clause" ]
null
null
null
"""Alphabet-related methods.""" import logging import numpy ALPHABETS = { 'protein': '-ACDEFGHIKLMNPQRSTVWY', 'dna': '-ACGT', 'rna': '-ACGU', 'protein_u': '-ACDEFGHIKLMNPQRSTVWYBZX', 'dna_u': '-ACGTRYMKWSBDHVN', 'rna_u': '-ACGURYMKWSBDHVN', } logger = logging.getLogger(__name__) def check_al...
28.576923
78
0.647376
0
0
0
0
0
0
0
0
410
0.275908
bd62a6bcee335bdbb5aaa3e5bf955b75d241b748
1,813
py
Python
server/app.py
osteele/tidal-memories
afcd3c8900814577374bfd847ba05c12ca88f397
[ "MIT" ]
1
2018-07-24T20:19:52.000Z
2018-07-24T20:19:52.000Z
server/app.py
osteele/tidal-memories
afcd3c8900814577374bfd847ba05c12ca88f397
[ "MIT" ]
2
2021-03-09T09:59:44.000Z
2021-05-09T17:29:22.000Z
server/app.py
osteele/tidal-memories
afcd3c8900814577374bfd847ba05c12ca88f397
[ "MIT" ]
null
null
null
import os import gevent import redis from flask import Flask, render_template, send_from_directory from flask_cors import CORS from flask_restplus import Api from flask_sockets import Sockets from geventwebsocket.exceptions import WebSocketError from .image_resource import api as images_api from .thumbnails import SM...
26.661765
77
0.629344
0
0
0
0
1,028
0.567016
0
0
292
0.161059
bd63313f347912b5d918aa4c501b628907905f8a
3,045
py
Python
batch_rl/multi_head/atari_helpers.py
alhamzah/batch_rl
7f8d9ea0ba330cc0642515dcc44c2ad687c3a927
[ "Apache-2.0" ]
null
null
null
batch_rl/multi_head/atari_helpers.py
alhamzah/batch_rl
7f8d9ea0ba330cc0642515dcc44c2ad687c3a927
[ "Apache-2.0" ]
null
null
null
batch_rl/multi_head/atari_helpers.py
alhamzah/batch_rl
7f8d9ea0ba330cc0642515dcc44c2ad687c3a927
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Google Research 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 applicab...
40.6
80
0.674877
2,369
0.777997
0
0
0
0
0
0
1,461
0.479803
bd63927a981ce679de4270308c480c8f49ea21fc
2,358
py
Python
data/gary/heart.py
isabellewei/deephealth
a226788561996e698b5f52b4b83683dcb3563ea5
[ "MIT" ]
null
null
null
data/gary/heart.py
isabellewei/deephealth
a226788561996e698b5f52b4b83683dcb3563ea5
[ "MIT" ]
null
null
null
data/gary/heart.py
isabellewei/deephealth
a226788561996e698b5f52b4b83683dcb3563ea5
[ "MIT" ]
null
null
null
from time import time from sklearn.preprocessing import StandardScaler from sklearn import model_selection from sklearn.model_selection import train_test_split, KFold, cross_val_score from sklearn.metrics import classification_report,confusion_matrix,accuracy_score from sklearn.tree import DecisionTreeClassifier ...
34.173913
109
0.787956
0
0
0
0
0
0
0
0
61
0.025869
bd65948e949b532e6c9472a99e61a788ccedd640
870
py
Python
third_party/infra_libs/ts_mon/common/test/stubs.py
sglass68/chromite
fa56d880e5970e63b8372895c5d43fe6edd8324a
[ "BSD-3-Clause" ]
null
null
null
third_party/infra_libs/ts_mon/common/test/stubs.py
sglass68/chromite
fa56d880e5970e63b8372895c5d43fe6edd8324a
[ "BSD-3-Clause" ]
null
null
null
third_party/infra_libs/ts_mon/common/test/stubs.py
sglass68/chromite
fa56d880e5970e63b8372895c5d43fe6edd8324a
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import mock from infra_libs.ts_mon.common import interface from infra_libs.ts_mon.common import metric_store from infra_libs.ts_mon.common import monitors f...
26.363636
72
0.754023
340
0.390805
0
0
0
0
0
0
213
0.244828
bd664ca13e3a2c2338580dff837587436ec24e4f
3,925
py
Python
fitsmap/utils.py
ryanhausen/fitsmap
07c1fcd44e2d2efed24607f3e866611a1be395d8
[ "MIT" ]
19
2021-06-24T13:57:59.000Z
2022-02-02T04:45:23.000Z
fitsmap/utils.py
ryanhausen/fitsmap
07c1fcd44e2d2efed24607f3e866611a1be395d8
[ "MIT" ]
38
2019-12-17T18:21:43.000Z
2022-03-12T00:16:38.000Z
fitsmap/utils.py
ryanhausen/fitsmap
07c1fcd44e2d2efed24607f3e866611a1be395d8
[ "MIT" ]
1
2021-06-24T10:53:15.000Z
2021-06-24T10:53:15.000Z
# MIT License # Copyright 2021 Ryan Hausen and contributers # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modif...
28.035714
87
0.654777
120
0.030573
0
0
0
0
0
0
1,924
0.490191
bd66ac3284bd0acf65bf00b9b9956f03b31e1d35
5,819
py
Python
bibterm2dict/tresemo.py
madskinner/bibterm2dict
93039125fb4eaf5640bf4c91d676607dd98bb974
[ "MIT" ]
null
null
null
bibterm2dict/tresemo.py
madskinner/bibterm2dict
93039125fb4eaf5640bf4c91d676607dd98bb974
[ "MIT" ]
null
null
null
bibterm2dict/tresemo.py
madskinner/bibterm2dict
93039125fb4eaf5640bf4c91d676607dd98bb974
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Dec 29 10:49:22 2017 @author: marks """ # File: tree.py # References: # http://hg.python.org/cpython/file/4e32c450f438/Lib/tkinter/ttk.py # http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_treeview.htm#M79 # http://svn.python.org/projects/python/branches/pep-0384/Demo/tkinter...
39.053691
98
0.554906
5,225
0.897921
0
0
0
0
0
0
2,016
0.346451
bd68af29a64b3d9ad5ee5bf60f1893c99d3b0c76
5,803
py
Python
test/cnnl/op_test/test_multiline_views_graph.py
Cambricon/catch
2625da389f25a67066d20fb6b0c38250ef98f8ab
[ "BSD-2-Clause" ]
20
2022-03-01T11:40:51.000Z
2022-03-30T08:17:47.000Z
test/cnnl/op_test/test_multiline_views_graph.py
Cambricon/catch
2625da389f25a67066d20fb6b0c38250ef98f8ab
[ "BSD-2-Clause" ]
null
null
null
test/cnnl/op_test/test_multiline_views_graph.py
Cambricon/catch
2625da389f25a67066d20fb6b0c38250ef98f8ab
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import sys import os import copy import unittest import logging import random # from unittest.main import main import torch from torch import nn import torch_mlu.core.mlu_model as ct cur_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(cur_dir + "/../../") from ...
33.350575
75
0.507496
5,319
0.916279
0
0
1,321
0.227562
0
0
374
0.064427
bd6b7673d05c7f722ed130c0970699fe0e657a21
180
py
Python
src/polls/polls/project/admin.py
Valeriu92/Shopping_list
3614dfc6691c28cf88db8af77ba246a9c4943794
[ "MIT" ]
null
null
null
src/polls/polls/project/admin.py
Valeriu92/Shopping_list
3614dfc6691c28cf88db8af77ba246a9c4943794
[ "MIT" ]
6
2021-03-19T08:45:06.000Z
2021-09-22T19:19:21.000Z
src/polls/polls/project/admin.py
Valeriu92/Shopping_list
3614dfc6691c28cf88db8af77ba246a9c4943794
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Users) admin.site.register(ShoppingList) admin.site.register(ShoppingItem)
22.5
33
0.811111
0
0
0
0
0
0
0
0
28
0.155556
bd6c528a553f5578be66448336398952d4309fa6
645
py
Python
easy/53.Maximum_Subarray.py
Leesoar/leetcode
e566513fc0e7055155157798f06089299bd44fd2
[ "Apache-2.0" ]
2
2018-03-04T23:29:49.000Z
2019-04-23T01:13:12.000Z
easy/53.Maximum_Subarray.py
Leesoar/leetcode
e566513fc0e7055155157798f06089299bd44fd2
[ "Apache-2.0" ]
null
null
null
easy/53.Maximum_Subarray.py
Leesoar/leetcode
e566513fc0e7055155157798f06089299bd44fd2
[ "Apache-2.0" ]
1
2018-03-05T09:58:59.000Z
2018-03-05T09:58:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Question: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. Example: given the array [-2,1,-3,4,-1,2,1,-5,4], the contiguous subarray [4,-1,2,1] has the largest sum = 6. ''' class Solution: def maxSubArra...
23.035714
105
0.56124
373
0.566009
0
0
0
0
0
0
371
0.562974
bd6d10559ed324300c492ea76a3b5dca3a2078f7
3,153
py
Python
tests/test_docstring.py
cbillingham/docconvert
2843f7446546ae90ba3f38e1246e69d208e0f053
[ "BSD-3-Clause" ]
8
2019-10-07T22:49:20.000Z
2021-12-30T22:31:28.000Z
tests/test_docstring.py
cbillingham/docconvert
2843f7446546ae90ba3f38e1246e69d208e0f053
[ "BSD-3-Clause" ]
5
2019-09-17T21:03:38.000Z
2020-07-23T04:47:21.000Z
tests/test_docstring.py
cbillingham/docconvert
2843f7446546ae90ba3f38e1246e69d208e0f053
[ "BSD-3-Clause" ]
null
null
null
"""Unit tests for Docstring.""" import docconvert class TestDocstring(object): def test_element_ordering(self): docstring = docconvert.parser.Docstring() docstring.add_element(("raw", "Docstring.")) docstring.add_return(kind="int") docstring.add_raises(kind="ValueError") d...
43.791667
75
0.631779
3,099
0.982873
0
0
0
0
0
0
593
0.188075
bd6de39ebf958030d5c9ef03e542a73527be7547
4,890
py
Python
preprocess.py
EMBEDDIA/morphological-comment-filtering
450ecbdaf2672ea09a39476db91c210657ff9c6f
[ "MIT" ]
1
2020-12-01T17:56:11.000Z
2020-12-01T17:56:11.000Z
preprocess.py
matejklemen/morphological-comment-filtering
450ecbdaf2672ea09a39476db91c210657ff9c6f
[ "MIT" ]
null
null
null
preprocess.py
matejklemen/morphological-comment-filtering
450ecbdaf2672ea09a39476db91c210657ff9c6f
[ "MIT" ]
null
null
null
""" The following script is used to preprocess text once and cache it to a csv file. Currently, this means obtaining the UPOS tags and universal features + renaming columns to a common format. This is done because it's quite a long process and we do not want to do it every time we make a change. """ import pa...
41.092437
160
0.660941
0
0
0
0
0
0
0
0
1,822
0.372597
bd6ded5eb81a42427f646f06cfec5c9cfc641f63
4,685
py
Python
util/callbacks.py
TobiasKoopmann/cobert
279fc6ce938a81afa2b8f14e4cb20b13f842ff48
[ "Apache-2.0" ]
null
null
null
util/callbacks.py
TobiasKoopmann/cobert
279fc6ce938a81afa2b8f14e4cb20b13f842ff48
[ "Apache-2.0" ]
null
null
null
util/callbacks.py
TobiasKoopmann/cobert
279fc6ce938a81afa2b8f14e4cb20b13f842ff48
[ "Apache-2.0" ]
null
null
null
import os import abc import json import numpy as np class Callback(abc.ABC): def __init__(self): pass @abc.abstractmethod def __call__(self, predictions, labels): pass class Evaluation(Callback): def __init__(self, ks=(1, 5, 10), ignore_index: int = -100, n_samples_file: str = None)...
40.387931
144
0.526147
4,624
0.98698
0
0
77
0.016435
0
0
398
0.084952
bd6e02dadbfb92bc2040067fe4f4629a0b88329a
4,436
py
Python
titanic.py
techwizAJ/Titanic-comepetition-kaggle
39a3d8d97a4401b0e12eefd7fbb07dde92147328
[ "Apache-2.0" ]
null
null
null
titanic.py
techwizAJ/Titanic-comepetition-kaggle
39a3d8d97a4401b0e12eefd7fbb07dde92147328
[ "Apache-2.0" ]
null
null
null
titanic.py
techwizAJ/Titanic-comepetition-kaggle
39a3d8d97a4401b0e12eefd7fbb07dde92147328
[ "Apache-2.0" ]
null
null
null
""" # -*- coding: utf-8 -*- @author: techwiz Created on Sun May 27 14:47:20 2018 """ import pandas as pd train_set = pd.read_csv("train.csv") test_set = pd.read_csv("test.csv") """ Exploratory Data Analysis """ train_set['Sex'].value_counts() train_set['Age'].value_counts() train_set['Embarked'].value_counts() trai...
31.685714
119
0.772543
0
0
0
0
0
0
0
0
2,801
0.631425
bd70054eb143582225de2963fca43fb0a5b2f887
1,301
py
Python
scripts/sort-files/sort_files.py
toddnguyen47/saved-games
ca30e369c72f819b2bd87f2ade450bd6aa058f41
[ "MIT" ]
null
null
null
scripts/sort-files/sort_files.py
toddnguyen47/saved-games
ca30e369c72f819b2bd87f2ade450bd6aa058f41
[ "MIT" ]
null
null
null
scripts/sort-files/sort_files.py
toddnguyen47/saved-games
ca30e369c72f819b2bd87f2ade450bd6aa058f41
[ "MIT" ]
null
null
null
import os import heapq import json class SortFiles: def __init__(self): self._spell_dir = self._read_json() self._heap = [] def execute(self): self._heap = [] with os.scandir(self._spell_dir) as iter: for entry in iter: if entry.is_dir(): ...
27.680851
79
0.487317
1,180
0.906995
0
0
0
0
0
0
226
0.173713
bd73565d0ceeda144968932421c907e81fac964f
914
py
Python
durak/migrations/0014_gamerequest_squashed_0015_auto_20200920_0353.py
maximpertsov/durak-server
0b3b2edd94f4b180bcc242e2a9b5e1b0c2766b54
[ "MIT" ]
null
null
null
durak/migrations/0014_gamerequest_squashed_0015_auto_20200920_0353.py
maximpertsov/durak-server
0b3b2edd94f4b180bcc242e2a9b5e1b0c2766b54
[ "MIT" ]
4
2021-03-30T14:34:20.000Z
2021-09-22T19:41:16.000Z
durak/migrations/0014_gamerequest_squashed_0015_auto_20200920_0353.py
maximpertsov/durak-server
0b3b2edd94f4b180bcc242e2a9b5e1b0c2766b54
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-09-20 20:04 from django.conf import settings import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER...
35.153846
116
0.655361
711
0.777899
0
0
0
0
0
0
149
0.16302
bd7412e497e9ca995fe87668255ac1e986b4ec36
4,585
py
Python
rlo/src/ray_main.py
tomjaguarpaw/knossos-ksc
8fa75e67c0db8f632b135379740051cd10ff31f2
[ "MIT" ]
31
2021-09-09T16:09:55.000Z
2022-02-20T02:15:19.000Z
rlo/src/ray_main.py
tomjaguarpaw/knossos-ksc
8fa75e67c0db8f632b135379740051cd10ff31f2
[ "MIT" ]
40
2021-08-06T14:30:08.000Z
2022-01-19T08:49:52.000Z
rlo/src/ray_main.py
tomjaguarpaw/knossos-ksc
8fa75e67c0db8f632b135379740051cd10ff31f2
[ "MIT" ]
5
2021-08-06T11:20:31.000Z
2022-01-07T19:39:40.000Z
# fmt: off import cProfile import os import ray from rlo import analytics from rlo.config_utils import config_for_repetition, kwargs_from_config from rlo.factory import seed_from_config, simul_search_curriculum_from_config, get_train_and_eval_exprs from rlo.flags import make_config_for_scenario, make_parser, check_sav...
59.545455
143
0.721047
0
0
0
0
0
0
0
0
1,987
0.43337
bd776a6674d87758862d2b05706f184ab21ca00d
3,490
py
Python
monero/wordlists/wordlist.py
massanchik/monero-python
5699c26f6ba0a64f50ac065ebe0419daf01fd993
[ "BSD-3-Clause" ]
130
2019-03-22T01:50:38.000Z
2022-03-30T11:34:12.000Z
monero/wordlists/wordlist.py
massanchik/monero-python
5699c26f6ba0a64f50ac065ebe0419daf01fd993
[ "BSD-3-Clause" ]
64
2019-03-12T10:32:36.000Z
2022-03-31T12:38:20.000Z
monero/wordlists/wordlist.py
massanchik/monero-python
5699c26f6ba0a64f50ac065ebe0419daf01fd993
[ "BSD-3-Clause" ]
55
2019-03-22T01:50:50.000Z
2022-03-28T02:38:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from binascii import crc32 from six import with_metaclass WORDLISTS = {} _log = logging.getLogger(__name__) class WordlistType(type): def __new__(cls, name, bases, attrs): if bases: if 'language_name' not in attrs: ...
31.160714
103
0.565616
2,962
0.848711
0
0
1,881
0.538968
0
0
792
0.226934
bd77eafe9931dd68ca30b83439707d22832787c1
11,174
py
Python
aliexp.py
winsonluk/Alizon
02ef84d0dbfb0e444257f57865de9a3c42af8229
[ "MIT" ]
24
2017-01-14T12:42:23.000Z
2021-11-15T15:29:48.000Z
aliexp.py
winsonluk/Alizon
02ef84d0dbfb0e444257f57865de9a3c42af8229
[ "MIT" ]
null
null
null
aliexp.py
winsonluk/Alizon
02ef84d0dbfb0e444257f57865de9a3c42af8229
[ "MIT" ]
7
2017-04-01T14:23:44.000Z
2020-04-24T18:46:36.000Z
from aliexpress_api_client import AliExpress import PIL from PIL import Image, ImageChops import urllib2 as urllib import io from itertools import izip from libImgComp import comp_imgs def comp_images(i1, i2): maxsize = (500, 500) i1.resize(maxsize) i2.resize(maxsize) i1 = i1.convert('RGB') i2 =...
27.387255
168
0.561929
0
0
1,476
0.132092
0
0
0
0
3,444
0.308216
bd785257d7f6edb7876cb221a65ea0464f85372a
224
py
Python
entreprise/views.py
Kgermando/es
d3175832604552c79eef96fabd8e1675d04cf4a1
[ "Apache-2.0" ]
null
null
null
entreprise/views.py
Kgermando/es
d3175832604552c79eef96fabd8e1675d04cf4a1
[ "Apache-2.0" ]
null
null
null
entreprise/views.py
Kgermando/es
d3175832604552c79eef96fabd8e1675d04cf4a1
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render # Create your views here. def entreprise_home(request): template_name = 'pages/entreprise/entreprise_home.html' context = None return render(request, template_name, context)
24.888889
59
0.767857
0
0
0
0
0
0
0
0
64
0.285714
bd786333da1270439f5a0534168a3541f4ceff6c
111
py
Python
virtual/Lib/site-packages/pylint/test/input/func_noerror_yield_return_mix.py
JamesKimari/pitch-one
aac9007716bf2e3b6446588a06508fac068f3d20
[ "MIT" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
virtual/lib/python3.6/site-packages/pylint/test/input/func_noerror_yield_return_mix.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
32
2018-05-01T05:24:43.000Z
2022-03-11T23:20:39.000Z
virtual/lib/python3.6/site-packages/pylint/test/input/func_noerror_yield_return_mix.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.000Z
""" module doc """ __revision__ = None def somegen(): """this kind of mix is OK""" yield 1 return
13.875
32
0.576577
0
0
70
0.630631
0
0
0
0
46
0.414414
bd78a71bbe18cc4f93cb82249b13ad78a464f21f
3,165
py
Python
BlenderScripts/process_mesh.py
razluta-unity/BlenderProcessUnity
d1d20f8b1910132c63cd73570c783a55c05fafe2
[ "MIT" ]
2
2020-11-24T06:10:44.000Z
2021-09-13T11:57:22.000Z
BlenderScripts/process_mesh.py
razluta-unity/BlenderProcessUnity
d1d20f8b1910132c63cd73570c783a55c05fafe2
[ "MIT" ]
null
null
null
BlenderScripts/process_mesh.py
razluta-unity/BlenderProcessUnity
d1d20f8b1910132c63cd73570c783a55c05fafe2
[ "MIT" ]
2
2020-12-03T07:48:48.000Z
2021-06-09T20:18:26.000Z
import os import argparse import bpy # Constants FBX_EXTENSION = ".fbx" BLENDER_ACTION_SELECT = "SELECT" BLENDER_TYPE_MESH = "MESH" BLENDER_MODIFIER_BEVEL = "BEVEL" def get_args(): """ A method to obtain the arguments that came with the triggered Python file - from the .bat file. :rtype: object :return: An objec...
29.579439
101
0.766193
0
0
0
0
0
0
0
0
1,177
0.37188
bd7b119eee1a2e5fb5a816c1b163b600e074a836
55
py
Python
django_inlinecss/tests/__init__.py
briefmnews/django-inlinecss
2d4d3cfb543147debea502598bc1fadce5ec11b1
[ "MIT" ]
null
null
null
django_inlinecss/tests/__init__.py
briefmnews/django-inlinecss
2d4d3cfb543147debea502598bc1fadce5ec11b1
[ "MIT" ]
null
null
null
django_inlinecss/tests/__init__.py
briefmnews/django-inlinecss
2d4d3cfb543147debea502598bc1fadce5ec11b1
[ "MIT" ]
null
null
null
from django_inlinecss.tests.test_templatetags import *
27.5
54
0.872727
0
0
0
0
0
0
0
0
0
0
bd7ba5bd647118022f742f767d54083d1e57c29a
12,562
py
Python
experiment_launcher.py
alekdimi/arms
f83a32caa8283789c61b59f53832149410be765b
[ "MIT" ]
2
2021-06-15T09:41:45.000Z
2021-09-08T18:30:44.000Z
experiment_launcher.py
alekdimi/arms
f83a32caa8283789c61b59f53832149410be765b
[ "MIT" ]
null
null
null
experiment_launcher.py
alekdimi/arms
f83a32caa8283789c61b59f53832149410be765b
[ "MIT" ]
null
null
null
import os from absl import app, flags import dataset import networks import tensorflow as tf import tensorflow_probability as tfp tfd = tfp.distributions layers = tf.keras.layers flags.DEFINE_enum('dataset', 'static_mnist', ['static_mnist', 'dynamic_mnist', 'fashion_mnist', 'omniglot'], 'Dataset to use.') flags.DEF...
38.891641
134
0.729979
0
0
0
0
3,521
0.28029
0
0
1,828
0.145518
bd7bd354d1693ae42a8a899d55fa9d11d8bad927
1,916
py
Python
tests/test_wikipron/test_languagecodes.py
Alireza-Sampour/wikipron
ac821c5d0a7d70e7e700f45f9d01b2dfb4ecae9d
[ "Apache-2.0" ]
null
null
null
tests/test_wikipron/test_languagecodes.py
Alireza-Sampour/wikipron
ac821c5d0a7d70e7e700f45f9d01b2dfb4ecae9d
[ "Apache-2.0" ]
null
null
null
tests/test_wikipron/test_languagecodes.py
Alireza-Sampour/wikipron
ac821c5d0a7d70e7e700f45f9d01b2dfb4ecae9d
[ "Apache-2.0" ]
null
null
null
import warnings import iso639 import pytest import wikipron from data.src.codes import _get_language_categories, _get_language_sizes from wikipron.languagecodes import LANGUAGE_CODES from . import can_connect_to_wiktionary # We handle languages with at least this number of pronunciation entries. _MIN_LANGUAGE_SIZE ...
35.481481
76
0.674322
0
0
0
0
1,405
0.733299
0
0
702
0.366388
bd7c730835fa8f5d468d87e8c955c89982fc78f9
59
py
Python
python/test.py
mkanenobu/trashbox
c691dbf9a07991fd42304020c8aac58e1e4b9644
[ "WTFPL" ]
2
2020-05-11T13:43:27.000Z
2020-07-31T11:57:19.000Z
python/test.py
mkanenobu/trashbox
c691dbf9a07991fd42304020c8aac58e1e4b9644
[ "WTFPL" ]
2
2020-09-27T02:35:38.000Z
2021-03-08T08:33:02.000Z
python/test.py
mkanenobu/trashbox
c691dbf9a07991fd42304020c8aac58e1e4b9644
[ "WTFPL" ]
1
2020-05-11T13:44:04.000Z
2020-05-11T13:44:04.000Z
import sys def plen(): print(len(sys.argv)) plen()
6.555556
24
0.59322
0
0
0
0
0
0
0
0
0
0
bd7ca3778c63b42f6055e223a59905b275b8c2fc
1,281
py
Python
ethosu/vela/test/test_model_reader.py
DemonGiggle/vela
298e383d2dbab465ddd4995a6ebc6f8bc07c8719
[ "Apache-2.0" ]
1
2021-12-01T17:16:14.000Z
2021-12-01T17:16:14.000Z
ethosu/vela/test/test_model_reader.py
DemonGiggle/vela
298e383d2dbab465ddd4995a6ebc6f8bc07c8719
[ "Apache-2.0" ]
null
null
null
ethosu/vela/test/test_model_reader.py
DemonGiggle/vela
298e383d2dbab465ddd4995a6ebc6f8bc07c8719
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Arm Limited or its affiliates. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 # # 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 # # www.apache.org/licenses/LICE...
37.676471
89
0.779859
0
0
0
0
0
0
0
0
838
0.654176
bd7e89a9c152d6c5a11c4d9af7357acb6500801c
2,947
py
Python
libs/DegradationModels.py
prasunroy/cnn-on-degraded-images
85bb4c62a024e3766da3c4d2556e01c6e12e416a
[ "MIT" ]
15
2018-10-01T20:54:13.000Z
2021-10-09T10:40:21.000Z
libs/DegradationModels.py
prasunroy/cnn-on-degraded-images
85bb4c62a024e3766da3c4d2556e01c6e12e416a
[ "MIT" ]
1
2020-04-13T23:58:23.000Z
2020-05-15T11:54:16.000Z
libs/DegradationModels.py
prasunroy/cnn-on-degraded-images
85bb4c62a024e3766da3c4d2556e01c6e12e416a
[ "MIT" ]
4
2018-11-22T09:44:29.000Z
2019-09-17T23:37:40.000Z
# -*- coding: utf-8 -*- """ Degradation models. Created on Thu May 24 11:00:00 2018 Author: Prasun Roy | CVPRU-ISICAL (http://www.isical.ac.in/~cvpr) GitHub: https://github.com/prasunroy/cnn-on-degraded-images """ # imports import cv2 import numpy import random # apply a degradation model on an image def imdegrade...
30.697917
74
0.554462
0
0
0
0
0
0
0
0
775
0.262979