hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
7999485ec51d2f7bb8175588fb675f238d46f4ae
1,452
py
Python
tests/test_cdn.py
datalogics-cgreen/server_core
4459314cd2cdb92b7cabeed8fd1125d8c5cb7941
[ "Apache-2.0" ]
null
null
null
tests/test_cdn.py
datalogics-cgreen/server_core
4459314cd2cdb92b7cabeed8fd1125d8c5cb7941
[ "Apache-2.0" ]
1
2017-05-12T22:14:16.000Z
2017-05-12T22:14:16.000Z
tests/test_cdn.py
datalogics-cgreen/server_core
4459314cd2cdb92b7cabeed8fd1125d8c5cb7941
[ "Apache-2.0" ]
2
2017-05-12T21:27:53.000Z
2021-08-04T12:27:25.000Z
# encoding: utf-8 from nose.tools import ( eq_, set_trace, ) from util.cdn import cdnify
29.632653
69
0.552342
79997662056929b0e35dbe058d0908cdde7a5c68
3,081
py
Python
test/test_helpers.py
hegga/act-api-python
8a7fe79c89e0e718c8ab3c6fade33161ed7cc9d6
[ "ISC" ]
null
null
null
test/test_helpers.py
hegga/act-api-python
8a7fe79c89e0e718c8ab3c6fade33161ed7cc9d6
[ "ISC" ]
null
null
null
test/test_helpers.py
hegga/act-api-python
8a7fe79c89e0e718c8ab3c6fade33161ed7cc9d6
[ "ISC" ]
null
null
null
""" Test for act helpers """ import pytest import act.api def test_add_uri_fqdn() -> None: # type: ignore """ Test for extraction of facts from uri with fqdn """ api = act.api.Act("", None, "error") uri = "http://www.mnemonic.no/home" facts = act.api.helpers.uri_facts(api, uri) assert len(fac...
37.120482
96
0.63778
7999b738aee282227050179b4f5276d0dca8cfd8
411
py
Python
03.Pins/PinsBasicOutput.py
gesaleh/MicroPython-Examples
28f0503e00f73f1132ec4719238fdb1edb3aad48
[ "MIT" ]
60
2015-01-15T23:23:52.000Z
2022-02-02T04:06:20.000Z
03.Pins/PinsBasicOutput.py
Anthlis/MicroPython-Quickstart-Scripts
1fd23ff4376e0405c084fd12867c30382d8b35a9
[ "MIT" ]
null
null
null
03.Pins/PinsBasicOutput.py
Anthlis/MicroPython-Quickstart-Scripts
1fd23ff4376e0405c084fd12867c30382d8b35a9
[ "MIT" ]
22
2016-08-13T18:46:32.000Z
2022-02-20T11:13:14.000Z
import pyb # USR button is controlled using a Switch object # This is the one closer to the center of the pyboard sw = pyb.Switch() # connect an LED (with resistor) to pin X1 (the corner) # a ground pin is two pins away. pin = pyb.Pin('X1', pyb.Pin.OUT_PP) # configuring X1 to Push/Pull output # LED is on only when th...
25.6875
72
0.703163
799a32f641dd939095011e0ef627b43b64e4cd1e
56
py
Python
insta_share/__init__.py
softcoder24/insta_share
955ea1052b739b029608a379ad7f2208a03f68ce
[ "Apache-2.0" ]
22
2020-11-17T19:16:58.000Z
2022-02-07T17:15:54.000Z
insta_share/__init__.py
softcoder24/insta_share
955ea1052b739b029608a379ad7f2208a03f68ce
[ "Apache-2.0" ]
8
2020-11-17T16:15:32.000Z
2022-01-18T19:09:00.000Z
insta_share/__init__.py
softcoder24/insta_share
955ea1052b739b029608a379ad7f2208a03f68ce
[ "Apache-2.0" ]
6
2020-11-17T15:31:16.000Z
2021-12-04T22:40:50.000Z
from .instagram import Instagram __version__ = "0.0.1"
14
32
0.75
799c9c751af49b9bc31c2336e9208c611ef09562
21,682
pyt
Python
python-loader/ServiceNow.pyt
sop11216/indoors-servicenow-feature-service
ba65d1f94e8477b3ec96589dd2b26d5e8216908c
[ "Apache-2.0" ]
5
2019-07-16T19:50:29.000Z
2021-01-22T19:09:11.000Z
python-loader/ServiceNow.pyt
riyue625/indoors-servicenow-feature-service
7d9d199b07f0e99aa5952933651767bad935f88f
[ "Apache-2.0" ]
null
null
null
python-loader/ServiceNow.pyt
riyue625/indoors-servicenow-feature-service
7d9d199b07f0e99aa5952933651767bad935f88f
[ "Apache-2.0" ]
4
2020-02-04T16:02:12.000Z
2022-01-04T22:26:47.000Z
# -*- coding: utf-8 -*- # Copyright 2019 Esri. # # 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 applica...
45.359833
197
0.555345
799d1f003f4411bfae3d21a7133897db1e94f10f
441
py
Python
src/pyprerender/BaseEventHandler.py
thingiesmm/pyprerender
b990e2916977fe7281b97d505e3c3e7b7777fa96
[ "MIT" ]
3
2020-07-28T17:19:09.000Z
2020-09-11T01:56:42.000Z
src/pyprerender/BaseEventHandler.py
thingiesmm/pyprerender
b990e2916977fe7281b97d505e3c3e7b7777fa96
[ "MIT" ]
null
null
null
src/pyprerender/BaseEventHandler.py
thingiesmm/pyprerender
b990e2916977fe7281b97d505e3c3e7b7777fa96
[ "MIT" ]
null
null
null
import threading
23.210526
53
0.646259
799ece88d9f735d80c34f7d2ea657a38b9c603a1
3,008
py
Python
baseStrategy.py
Fadope1/alpaca-SDK
17a8eae0b261f88ed5700d6e828e746e2ae879b3
[ "MIT" ]
2
2020-07-31T23:34:59.000Z
2020-08-19T08:33:49.000Z
baseStrategy.py
Fadope1/TradingBot
17a8eae0b261f88ed5700d6e828e746e2ae879b3
[ "MIT" ]
null
null
null
baseStrategy.py
Fadope1/TradingBot
17a8eae0b261f88ed5700d6e828e746e2ae879b3
[ "MIT" ]
1
2021-09-06T02:36:33.000Z
2021-09-06T02:36:33.000Z
import numpy as np import requests import talib if __name__ == "__main__": # test run, if everything is working import config import time import market stocks = ["DB", "TSLA", "MSFT"] interval = 60 # interval time in seconds: minute data=60 save_len = 200 # length of saved prices Key =...
34.574713
145
0.583777
799f02b13d26f742b0afea123e7c0c48233aa0a0
724
py
Python
scripts/injection_studies/create_population.py
MoritzThomasHuebner/memestr
acac0af27272304000007ead581333bf91ea4dbc
[ "MIT" ]
null
null
null
scripts/injection_studies/create_population.py
MoritzThomasHuebner/memestr
acac0af27272304000007ead581333bf91ea4dbc
[ "MIT" ]
null
null
null
scripts/injection_studies/create_population.py
MoritzThomasHuebner/memestr
acac0af27272304000007ead581333bf91ea4dbc
[ "MIT" ]
null
null
null
import json import warnings from pathlib import Path import sys from bilby.core.utils import logger from bilby.core.result import BilbyJsonEncoder from memestr.injection import create_injection warnings.filterwarnings("ignore") if len(sys.argv) > 1: minimum_id = int(sys.argv[1]) maximum_id = int(sys.argv[2]...
26.814815
76
0.720994
799fa44324270206fda8d6650cb0e3bb285d52bc
9,498
py
Python
src/estimagic/decorators.py
janosg/estimagic
58e17ff94339076f4b7688b1dbef5685f48157e2
[ "BSD-3-Clause" ]
7
2019-05-11T07:19:46.000Z
2019-05-31T07:03:13.000Z
src/estimagic/decorators.py
janosg/estimagic
58e17ff94339076f4b7688b1dbef5685f48157e2
[ "BSD-3-Clause" ]
14
2019-05-04T14:15:52.000Z
2019-06-10T11:45:27.000Z
src/estimagic/decorators.py
janosg/estimagic
58e17ff94339076f4b7688b1dbef5685f48157e2
[ "BSD-3-Clause" ]
1
2019-05-21T08:44:37.000Z
2019-05-21T08:44:37.000Z
"""This module contains various decorators. There are two kinds of decorators defined in this module which consists of either two or three nested functions. The former are decorators without and the latter with arguments. For more information on decorators, see this `guide`_ on https://realpython.com which provides a...
32.087838
88
0.626553
79a02b0fca8125acb8727a4f6b22e909b538ce44
4,751
py
Python
gallery/models.py
hzdg/feincms_gallery
60f7df8c3fbb03c5019ff95df07dbc39c25a1601
[ "BSD-3-Clause" ]
null
null
null
gallery/models.py
hzdg/feincms_gallery
60f7df8c3fbb03c5019ff95df07dbc39c25a1601
[ "BSD-3-Clause" ]
null
null
null
gallery/models.py
hzdg/feincms_gallery
60f7df8c3fbb03c5019ff95df07dbc39c25a1601
[ "BSD-3-Clause" ]
null
null
null
#coding=utf-8 from django import forms from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.paginator import Paginator, InvalidPage, EmptyPage from django.db import models from django.http import HttpResponse from django.template.context import RequestContext from dj...
35.192593
79
0.609556
79a36831476c1a05ba52a6399aedf81e7280cf7d
1,055
py
Python
grandt_etl.py
Racana/grandtdata
08995b0e6ee12d89c704f753c1ba9a2d7f929fa8
[ "Apache-2.0" ]
null
null
null
grandt_etl.py
Racana/grandtdata
08995b0e6ee12d89c704f753c1ba9a2d7f929fa8
[ "Apache-2.0" ]
null
null
null
grandt_etl.py
Racana/grandtdata
08995b0e6ee12d89c704f753c1ba9a2d7f929fa8
[ "Apache-2.0" ]
null
null
null
import pandas as pd df = pd.DataFrame() files = pd.read_csv('grandtlinks.csv') try: files['status'] = files['status'].astype(str) header=False except KeyError: files['status'] = '' header=True for index, row in files.iterrows(): if row['status'] == 'parsed': continue filename = row['f...
29.305556
137
0.614218
79a42503d848ad168cd3495c0dcbda82414eb6fd
2,092
py
Python
hydeengine/path_util.py
rahuldave/hyde
348dbcaefb8dfd04089f19673763cb6988914733
[ "MIT" ]
1
2016-05-09T11:03:07.000Z
2016-05-09T11:03:07.000Z
hydeengine/path_util.py
kailoa/hyde
ef385c20dbc21647e6b1515302dcc29f83c1411f
[ "MIT" ]
null
null
null
hydeengine/path_util.py
kailoa/hyde
ef385c20dbc21647e6b1515302dcc29f83c1411f
[ "MIT" ]
null
null
null
import os
31.69697
95
0.539675
79a5d7ff8e39d7196921d9ac2d3ba6bdf39b6d80
2,286
py
Python
deal/_cli/_decorate.py
orsinium/condition
4cb8208a6aefe50a86669d3cdded810244cba597
[ "MIT" ]
40
2018-01-27T09:49:18.000Z
2019-05-07T08:02:20.000Z
deal/_cli/_decorate.py
orsinium/condition
4cb8208a6aefe50a86669d3cdded810244cba597
[ "MIT" ]
6
2018-09-05T10:44:36.000Z
2019-07-06T07:12:19.000Z
deal/_cli/_decorate.py
rpdelaney/deal
ebf4244605bb5cc5da5a910010238437d372d5d0
[ "MIT" ]
4
2018-03-22T11:28:05.000Z
2019-08-01T07:43:23.000Z
from __future__ import annotations from argparse import ArgumentParser from pathlib import Path from .._colors import get_colors from ..linter import TransformationType, Transformer from ._base import Command from ._common import get_paths
34.636364
86
0.580927
79a654bb026603656ead47f71ad80fe2b3457b33
2,023
py
Python
python/challenges/queue_with_stacks/queue_with_stacks.py
marvincolgin/data-structures-and-algorythms
967eaa61d8e80355e1bde653c349e64ec849d794
[ "MIT" ]
5
2019-07-16T22:05:49.000Z
2022-02-07T15:41:59.000Z
python/challenges/queue_with_stacks/queue_with_stacks.py
Leary-x/data-structures-and-algorithms
4f1133455ddd7a0093fa88726a693b58401f0485
[ "MIT" ]
4
2019-08-13T16:36:30.000Z
2021-06-02T00:40:48.000Z
python/challenges/queue_with_stacks/queue_with_stacks.py
Leary-x/data-structures-and-algorithms
4f1133455ddd7a0093fa88726a693b58401f0485
[ "MIT" ]
3
2019-10-18T12:08:54.000Z
2021-07-19T15:24:24.000Z
import os,sys,inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, currentdir+'/../../data-structures/stacks_and_queues') p = currentdir+'/../../data-structures/linked_list' sys.path.insert(0,p) from stack...
28.492958
91
0.56352
79a77941553e1cb7fa59ab32bd50d5b5bf0f48ca
2,724
py
Python
shallow_backup/git_wrapper.py
nunomdc/shallow-backup
a1b59a2b898ae9ea2c582ce1514308a0e769b34f
[ "MIT" ]
null
null
null
shallow_backup/git_wrapper.py
nunomdc/shallow-backup
a1b59a2b898ae9ea2c582ce1514308a0e769b34f
[ "MIT" ]
null
null
null
shallow_backup/git_wrapper.py
nunomdc/shallow-backup
a1b59a2b898ae9ea2c582ce1514308a0e769b34f
[ "MIT" ]
null
null
null
import os import git from shutil import move from printing import * from config import get_config ######### # GLOBALS ######### COMMIT_MSG = { "fonts": "Back up fonts.", "packages": "Back up packages.", "configs": "Back up configs.", "all": "Full back up.", "dotfiles": "Back up dotfiles." } ########### # FUNCTI...
26.192308
83
0.709618
79a7ce90a3cd5f8186b3e426fe9213381b97384e
885
py
Python
demos/remote-demo/client.py
duguyue100/pyaer-demo
5d72c80cf0cb8c2e8d784981c09961b04bca1e76
[ "MIT" ]
null
null
null
demos/remote-demo/client.py
duguyue100/pyaer-demo
5d72c80cf0cb8c2e8d784981c09961b04bca1e76
[ "MIT" ]
null
null
null
demos/remote-demo/client.py
duguyue100/pyaer-demo
5d72c80cf0cb8c2e8d784981c09961b04bca1e76
[ "MIT" ]
null
null
null
"""Client software that receives the data. Author: Yuhuang Hu Email : duguyue100@gmail.com """ from __future__ import print_function, absolute_import import socket try: import cPickle as pickle except: import pickle import zlib import cv2 buffer_size = 2**17 IP_address = "172.19.11.178" port = 8080 address...
21.585366
68
0.677966
79ae9a40818aa2d1c5227bb932c10ebe1099d2e8
2,214
py
Python
3 Facebook scraping.py
SajawalChopra/Facebook-Scraping
089dfd84a7caa255de75b3733deed5a1e3f10543
[ "MIT" ]
1
2021-07-02T20:52:31.000Z
2021-07-02T20:52:31.000Z
3 Facebook scraping.py
SajawalChopra/Facebook-Scraping
089dfd84a7caa255de75b3733deed5a1e3f10543
[ "MIT" ]
null
null
null
3 Facebook scraping.py
SajawalChopra/Facebook-Scraping
089dfd84a7caa255de75b3733deed5a1e3f10543
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup as Bs4 from time import sleep from selenium import webdriver from selenium.webdriver.common.keys import Keys import pandas as pd driver = webdriver.Chrome(executable_path='C:/WebDrivers/chromedriver.exe') url = 'https://www.facebook.com/login' driver.get(url) driver.implici...
28.384615
276
0.719512
79b1521f2c96172275c767bb838446410cf9cd69
426
py
Python
app/mybot.py
arudmin/rocketgram-template
5360e4a71ae2ba3c83d87a6278f7f46c04317665
[ "WTFPL" ]
null
null
null
app/mybot.py
arudmin/rocketgram-template
5360e4a71ae2ba3c83d87a6278f7f46c04317665
[ "WTFPL" ]
null
null
null
app/mybot.py
arudmin/rocketgram-template
5360e4a71ae2ba3c83d87a6278f7f46c04317665
[ "WTFPL" ]
null
null
null
import logging import pickle from datetime import datetime import munch from rocketgram import Bot, Dispatcher, DefaultValuesMiddleware, ParseModeType logger = logging.getLogger('mybot') router = Dispatcher()
22.421053
94
0.793427
79b1ad5c60eb1d0ecc8ff6daaddcc644f4d0ba0f
2,183
py
Python
meiduo_mall/meiduo_mall/apps/users/views.py
yy12950906/meiduo_project
e49f9a784cfb2f35ff0cae6b947ce2eb178d7c29
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/views.py
yy12950906/meiduo_project
e49f9a784cfb2f35ff0cae6b947ce2eb178d7c29
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/views.py
yy12950906/meiduo_project
e49f9a784cfb2f35ff0cae6b947ce2eb178d7c29
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.views import View from django import http import re from .models import User from django.contrib.auth import login from meiduo_mall.utils.response_code import RETCODE
29.106667
92
0.628035
79b206ba2bda4a51ecdd46bef66e1c848691ce3b
1,377
py
Python
lists/longestMatchingParentheses.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
lists/longestMatchingParentheses.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
lists/longestMatchingParentheses.py
santoshmano/pybricks
bcb3ab80417e8e896280062494ce6c046329b7e8
[ "MIT" ]
null
null
null
print("length of - ()(())", longestSubstring("()(())")) #print("length of - ((((", longestSubstring("((((")) #print("length of - ()()()", longestSubstring("()()()")) #print("length of -", longestSubstring(""))
21.857143
56
0.480755
79b2113eada800efa20a5923fcf77c964fcabe4c
244
py
Python
src/tests/hoplalib/cast/test_classmodels.py
rickie/hopla
24a422194e42c03d5877dc167b2b07147326a595
[ "Apache-2.0" ]
null
null
null
src/tests/hoplalib/cast/test_classmodels.py
rickie/hopla
24a422194e42c03d5877dc167b2b07147326a595
[ "Apache-2.0" ]
null
null
null
src/tests/hoplalib/cast/test_classmodels.py
rickie/hopla
24a422194e42c03d5877dc167b2b07147326a595
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from typing import List
22.181818
69
0.659836
79b32d80e3c6b68c801d73e0efea4e999e21009c
474
py
Python
Lectures/dirk_drone_code/gravity.py
donnel2-cooper/drone_control
3bb3a1c1f768916ac41d4b78692e2edab0776c07
[ "MIT" ]
null
null
null
Lectures/dirk_drone_code/gravity.py
donnel2-cooper/drone_control
3bb3a1c1f768916ac41d4b78692e2edab0776c07
[ "MIT" ]
null
null
null
Lectures/dirk_drone_code/gravity.py
donnel2-cooper/drone_control
3bb3a1c1f768916ac41d4b78692e2edab0776c07
[ "MIT" ]
null
null
null
import numpy as np from rotations import rot2, rot3 import mavsim_python_parameters_aerosonde_parameters as P
23.7
57
0.590717
79b4d31199bdc16d826620986d00e58c587dae35
5,552
py
Python
notification/migrations/0001_initial.py
Petro-Viron/django-notification
fadc2b8041dd4563858d7956063ecbfde9b7203b
[ "MIT" ]
null
null
null
notification/migrations/0001_initial.py
Petro-Viron/django-notification
fadc2b8041dd4563858d7956063ecbfde9b7203b
[ "MIT" ]
null
null
null
notification/migrations/0001_initial.py
Petro-Viron/django-notification
fadc2b8041dd4563858d7956063ecbfde9b7203b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings from django.db import migrations, models import django.utils.timezone
40.823529
120
0.534222
79b6843811bd25d004b1717cb15e8a62f49800f8
6,291
py
Python
classifier/classifier.py
naveenrc/YelpChallenge
f56e979db235faf703b70533b7253b66c182e90e
[ "MIT" ]
4
2017-10-25T17:55:30.000Z
2021-08-07T21:58:35.000Z
classifier/classifier.py
naveenrc/YelpChallenge
f56e979db235faf703b70533b7253b66c182e90e
[ "MIT" ]
1
2017-10-29T00:16:56.000Z
2017-11-01T02:51:30.000Z
classifier/classifier.py
naveenrc/YelpChallenge
f56e979db235faf703b70533b7253b66c182e90e
[ "MIT" ]
null
null
null
from tensorflow.python.framework import ops import tensorflow as tf from utilities import model as md import matplotlib.pyplot as plt import numpy as np from sklearn.model_selection import train_test_split import os import time import cv2 def model(photos_train, Y_train, photos_test, Y_test, learning_rate=0.0005, ...
40.850649
119
0.596725
79bab640ef78d6d748ead6092fc52437a88c17eb
1,246
py
Python
quordle.py
tipa16384/wordle
33d9b6f55b71713237224b6dca4433a304e5d540
[ "CC0-1.0" ]
null
null
null
quordle.py
tipa16384/wordle
33d9b6f55b71713237224b6dca4433a304e5d540
[ "CC0-1.0" ]
null
null
null
quordle.py
tipa16384/wordle
33d9b6f55b71713237224b6dca4433a304e5d540
[ "CC0-1.0" ]
null
null
null
from itertools import combinations from collections import defaultdict vowels = 'aeiouy' # read a list of words from wordle.txt def get_letter_score(word_list: list) -> dict: """ Get the letter score for each letter. """ letter_score = defaultdict(int) for word in word_list: for letter in...
27.688889
110
0.651685
79bb54d1c73ed42e9937c7dae02a21034f777844
2,523
py
Python
stataLogObject/Supports/supports.py
sbaker-dev/stataLogObject
f72b80e4c69827f556d181dbfec66237c8464636
[ "MIT" ]
null
null
null
stataLogObject/Supports/supports.py
sbaker-dev/stataLogObject
f72b80e4c69827f556d181dbfec66237c8464636
[ "MIT" ]
null
null
null
stataLogObject/Supports/supports.py
sbaker-dev/stataLogObject
f72b80e4c69827f556d181dbfec66237c8464636
[ "MIT" ]
null
null
null
from string import ascii_letters import re forest_attr = ['var_name', 'coefficient', 'lb_95', 'ub_95'] forest_header = ["Phenotype", "Coefficient", "Lower Bound", "Upper Bound"] FOREST_DICT = {attr: header for attr, header in zip(forest_attr, forest_header)} def clean_line(line): """ Strip line of new line ...
30.035714
112
0.631391
79bbae2a38720d662113f41bb83440427bee15a0
7,346
py
Python
FPSimRotaryPotentiometer.py
dliess/FreeCADFrontPanelSimulation
f1ae7dc2b57e19202b479621077e515a59e1beec
[ "MIT" ]
8
2018-08-07T06:36:12.000Z
2022-02-22T21:48:47.000Z
FPSimRotaryPotentiometer.py
dliess/FreeCADFrontPanelSimulation
f1ae7dc2b57e19202b479621077e515a59e1beec
[ "MIT" ]
6
2018-03-07T23:52:16.000Z
2020-10-31T10:27:45.000Z
FPSimRotaryPotentiometer.py
dliess/FreeCADFrontPanelSimulation
f1ae7dc2b57e19202b479621077e515a59e1beec
[ "MIT" ]
1
2019-05-19T22:50:42.000Z
2019-05-19T22:50:42.000Z
import FreeCAD import FPEventDispatcher from FPInitialPlacement import InitialPlacements import FPSimServer import FPUtils pressEventLocationXY = dict() rotationAngleAtPress = dict() def createFPSimRotaryPotentiometer(): obj = FreeCAD.ActiveDocument.addObject('App::DocumentObjectGroupPython', 'FPSimRota...
50.662069
145
0.680234
79bbba38cafa68598c91dc9748366f0e4982f2f7
253
py
Python
solved/mq003.py
zao95/codingdojang-zao95-solving
409d1696700b453b183947d7bda8abcbbfe95bc5
[ "WTFPL" ]
2
2021-01-06T14:02:14.000Z
2022-02-19T17:38:16.000Z
solved/mq003.py
zao95/codingdojang-zao95-solving
409d1696700b453b183947d7bda8abcbbfe95bc5
[ "WTFPL" ]
null
null
null
solved/mq003.py
zao95/codingdojang-zao95-solving
409d1696700b453b183947d7bda8abcbbfe95bc5
[ "WTFPL" ]
null
null
null
# # Question number. 003 # Author: Lee Jeongwoo # Github name: zao95 # ========== Question ========== # python-packer # ============================== abc() print(hex(id(abc()))) print(hex(id("abc")))
14.882353
32
0.501976
79bf9d28c559e1ed8a8b25f4bea8d5157d9c0baa
1,082
py
Python
selenium_python/5/5.6_visibility_of.py
small99/DevAuto
9c269fedbcb9e5bff5143d4823963abab6a1d5a9
[ "Apache-2.0" ]
11
2019-02-19T07:48:18.000Z
2020-11-10T07:14:51.000Z
selenium_python/5/5.6_visibility_of.py
small99/DevAuto
9c269fedbcb9e5bff5143d4823963abab6a1d5a9
[ "Apache-2.0" ]
null
null
null
selenium_python/5/5.6_visibility_of.py
small99/DevAuto
9c269fedbcb9e5bff5143d4823963abab6a1d5a9
[ "Apache-2.0" ]
14
2019-03-15T06:17:25.000Z
2021-01-23T14:30:48.000Z
# -*- coding: utf-8 -*- __author__ = "" from selenium import webdriver # WebDriverWait from selenium.webdriver.support.ui import WebDriverWait # from selenium.webdriver.common.by import By # from selenium.webdriver.support.expected_conditions import presence_of_element_located,visibility_of if __name__ == "__m...
22.081633
100
0.710721
79c030f9209dc922a8506680c3d71338df012fb2
436
py
Python
tagger.py
medric49/NLTK_POS_tagging
401971dec4316985f81a2cb2191379d7f0104116
[ "MIT" ]
null
null
null
tagger.py
medric49/NLTK_POS_tagging
401971dec4316985f81a2cb2191379d7f0104116
[ "MIT" ]
null
null
null
tagger.py
medric49/NLTK_POS_tagging
401971dec4316985f81a2cb2191379d7f0104116
[ "MIT" ]
null
null
null
from nltk.tag import TaggerI import spacy.tokens
22.947368
74
0.623853
79c0a3e2f36669a55f29c5710d3a1429b5bf727b
1,885
py
Python
exercises/exercise4_test_driven_development/tests/test_dna/test_dna.py
stijn-arends/programming2
b5ae59afdee80843ee8f893367beb1b794c45437
[ "MIT" ]
null
null
null
exercises/exercise4_test_driven_development/tests/test_dna/test_dna.py
stijn-arends/programming2
b5ae59afdee80843ee8f893367beb1b794c45437
[ "MIT" ]
null
null
null
exercises/exercise4_test_driven_development/tests/test_dna/test_dna.py
stijn-arends/programming2
b5ae59afdee80843ee8f893367beb1b794c45437
[ "MIT" ]
null
null
null
# from pytest import capfd import pytest from bin.dna import DNA from bin.dna import NotDNAError
22.710843
100
0.645093
79c1c0555b332b47e07fa7472fd7b784836a29df
5,514
py
Python
tests/env_up/env_tests/script_up_test.py
aoxiangflysky/onedata
5fe5783f4fb23e90e6567d638a165a0bfcc2f663
[ "Apache-2.0" ]
61
2016-04-19T23:51:37.000Z
2022-01-02T22:28:53.000Z
tests/env_up/env_tests/script_up_test.py
aoxiangflysky/onedata
5fe5783f4fb23e90e6567d638a165a0bfcc2f663
[ "Apache-2.0" ]
57
2016-08-23T13:36:47.000Z
2022-02-08T14:30:30.000Z
tests/env_up/env_tests/script_up_test.py
aoxiangflysky/onedata
5fe5783f4fb23e90e6567d638a165a0bfcc2f663
[ "Apache-2.0" ]
7
2016-08-26T06:08:58.000Z
2019-11-16T19:22:28.000Z
"""This module contains acceptance tests of scripts that bring up dockerized test environment. """ __author__ = "Jakub Kudzia" __copyright__ = "Copyright (C) 2016 ACK CYFRONET AGH" __license__ = "This software is released under the MIT license cited in " \ "LICENSE.txt" from tests import * from tests.uti...
29.645161
95
0.61498
79c3319474af89217d81f0fbd14fa9bb82b3394d
3,100
py
Python
XiaoAi-Music-Bridge.py
lwl12/XiaoAi-Music-Bridge
220c82d62e8f6ad4fe09fedbf06abd984b7f4bc9
[ "Apache-2.0" ]
13
2018-08-12T11:56:07.000Z
2021-12-24T08:37:19.000Z
XiaoAi-Music-Bridge.py
liwanglin12/XiaoAi-Music-Bridge
220c82d62e8f6ad4fe09fedbf06abd984b7f4bc9
[ "Apache-2.0" ]
null
null
null
XiaoAi-Music-Bridge.py
liwanglin12/XiaoAi-Music-Bridge
220c82d62e8f6ad4fe09fedbf06abd984b7f4bc9
[ "Apache-2.0" ]
3
2018-08-12T11:56:09.000Z
2020-04-30T06:20:32.000Z
from xiaoai import * import json import requests
54.385965
137
0.546129
79c4ad5431fc01ca8847cda94d203de141747e2e
3,863
py
Python
decuen/actors/strats/epsilon.py
ziyadedher/decuen
bc3bd42857308d7b189f576a3404abb3f9152531
[ "MIT" ]
2
2019-03-21T20:15:22.000Z
2019-11-06T21:18:52.000Z
decuen/actors/strats/epsilon.py
ziyadedher/decuen
bc3bd42857308d7b189f576a3404abb3f9152531
[ "MIT" ]
10
2019-11-17T14:41:31.000Z
2019-11-26T18:52:27.000Z
decuen/actors/strats/epsilon.py
ziyadedher/decuen
bc3bd42857308d7b189f576a3404abb3f9152531
[ "MIT" ]
null
null
null
"""Implementation of an epsilon-greedy action selection strategy.""" from abc import ABC, abstractmethod from typing import Callable, ClassVar, Optional from decuen.actors.strats._strategy import Strategy from decuen.actors.strats.greedy import GreedyStrategy from decuen.actors.strats.uniform import UniformStrategy f...
32.191667
115
0.6803
79c4b8efab13e728a2f4053348681270fa4235ff
81
py
Python
src/common/timestamp.py
vkhaydarov/PlantEye
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
[ "MIT" ]
1
2022-01-25T08:03:27.000Z
2022-01-25T08:03:27.000Z
src/common/timestamp.py
vkhaydarov/PlantEye
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
[ "MIT" ]
null
null
null
src/common/timestamp.py
vkhaydarov/PlantEye
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
[ "MIT" ]
1
2021-12-03T09:17:35.000Z
2021-12-03T09:17:35.000Z
from time import time
16.2
36
0.691358
79c93e8eab89e16818be0a38ecec45dc93c2d489
3,449
py
Python
Game.py
KingJMS1/MathIA
aae37766424f06aa1c0cbb50d8d221ccb664bb9a
[ "MIT" ]
null
null
null
Game.py
KingJMS1/MathIA
aae37766424f06aa1c0cbb50d8d221ccb664bb9a
[ "MIT" ]
null
null
null
Game.py
KingJMS1/MathIA
aae37766424f06aa1c0cbb50d8d221ccb664bb9a
[ "MIT" ]
null
null
null
import os import scipy import numpy as np from ImageStatistics import UsefulImDirectory import scipy as sp import ast from bokeh.charts import Histogram, show import pandas as pd
41.554217
183
0.582488
79c9e1dd38133f0e6bc64cf7c56aa5e1d462deb4
14,767
py
Python
src/python/judger.py
pj1031999/nemesis-worker
0a50fe6fd3347c15c4662015ad6de2427817853a
[ "BSD-3-Clause" ]
null
null
null
src/python/judger.py
pj1031999/nemesis-worker
0a50fe6fd3347c15c4662015ad6de2427817853a
[ "BSD-3-Clause" ]
null
null
null
src/python/judger.py
pj1031999/nemesis-worker
0a50fe6fd3347c15c4662015ad6de2427817853a
[ "BSD-3-Clause" ]
null
null
null
import argparse import compile_sandbox import default_nemesis_proto import logging import nemesis_pb2 import os import runner import shutil import tempfile if __name__ == "__main__": main()
37.010025
103
0.595652
79ca0b37b9a48d6ddae9d9700364c147f1488354
2,717
py
Python
plugins/fakeaction.py
FastmoreCrak/Fantasmas
1ce7a55b956ccf84660ceb91fdc39fedd0384c2a
[ "CC0-1.0" ]
1
2021-10-04T08:02:29.000Z
2021-10-04T08:02:29.000Z
plugins/fakeaction.py
FastmoreCrak/Fantasmas
1ce7a55b956ccf84660ceb91fdc39fedd0384c2a
[ "CC0-1.0" ]
null
null
null
plugins/fakeaction.py
FastmoreCrak/Fantasmas
1ce7a55b956ccf84660ceb91fdc39fedd0384c2a
[ "CC0-1.0" ]
null
null
null
# Ultroid - UserBot # Copyright (C) 2020 TeamUltroid # # This file is a part of < https://github.com/TeamUltroid/Ultroid/ > # PLease read the GNU Affero General Public License in # <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>. """ Commands Available - `{i}ftyping <time/in secs>` `Show Fake Ty...
27.17
72
0.565329
79cc1c3df6706b1c798c332d2a91bcea3ae91c3c
565
py
Python
whatthefood/train/sgd.py
lychanl/WhatTheFood
94b6eec2c306e7e55b19395cde207d6e6beec7fe
[ "MIT" ]
null
null
null
whatthefood/train/sgd.py
lychanl/WhatTheFood
94b6eec2c306e7e55b19395cde207d6e6beec7fe
[ "MIT" ]
null
null
null
whatthefood/train/sgd.py
lychanl/WhatTheFood
94b6eec2c306e7e55b19395cde207d6e6beec7fe
[ "MIT" ]
null
null
null
from whatthefood.train import Minimizer
29.736842
65
0.59823
79cdbfcbdc744b4416d7b9ab9e6397371400f31c
8,456
py
Python
QuakeAnssComCatRequester.py
KheprySoftware/PyQuakeAnssComCat
3ad75be649fbc5e376cbf5e4686dc792e0906dfc
[ "Apache-2.0" ]
null
null
null
QuakeAnssComCatRequester.py
KheprySoftware/PyQuakeAnssComCat
3ad75be649fbc5e376cbf5e4686dc792e0906dfc
[ "Apache-2.0" ]
null
null
null
QuakeAnssComCatRequester.py
KheprySoftware/PyQuakeAnssComCat
3ad75be649fbc5e376cbf5e4686dc792e0906dfc
[ "Apache-2.0" ]
1
2021-01-02T08:51:45.000Z
2021-01-02T08:51:45.000Z
# -*- coding: utf-8 -*- # ======================================================================== # # Copyright Khepry Quixote # # 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:...
40.45933
201
0.5285
79ce38ae147db0b5c836a8f1082b61c583fb8029
7,584
py
Python
interleaving/optimized.py
mpkato/interleaving
7907f7dd61bfcad57ad602b5c93e601677025da7
[ "MIT" ]
107
2016-10-01T12:49:24.000Z
2022-02-23T23:48:26.000Z
interleaving/optimized.py
mpkato/interleaving
7907f7dd61bfcad57ad602b5c93e601677025da7
[ "MIT" ]
39
2016-09-25T01:41:25.000Z
2018-10-15T04:38:18.000Z
interleaving/optimized.py
mpkato/interleaving
7907f7dd61bfcad57ad602b5c93e601677025da7
[ "MIT" ]
20
2017-03-13T21:36:11.000Z
2022-03-24T17:57:46.000Z
from .ranking import CreditRanking from .interleaving_method import InterleavingMethod import numpy as np from scipy.optimize import linprog
38.30303
80
0.568565
79cf1c1aa8ad6c972f631e15eb984a86636a6137
594
py
Python
Python/Single-Number/HashTable.py
Quananhle/Data-Structure-and-Algorithms
304d8b6f70b483901afef31f9952fb83c7c29c49
[ "MIT" ]
5
2021-01-09T20:14:17.000Z
2021-12-26T13:15:15.000Z
Python/Single-Number/HashTable.py
hmboyd/Data-Structure-and-Algorithms
304d8b6f70b483901afef31f9952fb83c7c29c49
[ "MIT" ]
null
null
null
Python/Single-Number/HashTable.py
hmboyd/Data-Structure-and-Algorithms
304d8b6f70b483901afef31f9952fb83c7c29c49
[ "MIT" ]
3
2021-07-19T17:44:43.000Z
2022-03-27T03:50:54.000Z
from collections import defaultdict
28.285714
49
0.521886
79cf99d1fc1e21ceaecfd1eaade790f686337633
177
py
Python
static/test.py
phongchara/thesis
250e06fde3085d2aad50b32123cceb606a38e726
[ "MIT" ]
null
null
null
static/test.py
phongchara/thesis
250e06fde3085d2aad50b32123cceb606a38e726
[ "MIT" ]
null
null
null
static/test.py
phongchara/thesis
250e06fde3085d2aad50b32123cceb606a38e726
[ "MIT" ]
null
null
null
import cv2 import numpy as np cap = cv2.VideoCapture(0) while True: ret, frame = cap.read() cv2.imshow('frame', frame) cap.release() cv2.destroyAllWindows()
16.090909
31
0.655367
79d0afadbe020d28093b7580365a4366bdc8b51c
6,984
py
Python
StockSentimentAnalysis.py
udaydatar7/SSA
66d03de027206badd9317d1086bfecbd85edd94f
[ "MIT" ]
null
null
null
StockSentimentAnalysis.py
udaydatar7/SSA
66d03de027206badd9317d1086bfecbd85edd94f
[ "MIT" ]
null
null
null
StockSentimentAnalysis.py
udaydatar7/SSA
66d03de027206badd9317d1086bfecbd85edd94f
[ "MIT" ]
null
null
null
# import key libraries import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from wordcloud import WordCloud, STOPWORDS import nltk import re from nltk.stem import PorterStemmer, WordNetLemmatizer from nltk.corpus import stopwords from nltk.tokenize import word_tokenize,...
39.235955
160
0.738259
79d15c441f7f287325eeb9b83a5485a9f428544c
21,527
py
Python
FixedEffectModel/OLSHighDCategory.py
ksecology/FixedEffectModel
c2371c34350d95e6c308159e1a9c00e56bcb104c
[ "BSD-3-Clause" ]
28
2020-09-29T08:41:05.000Z
2022-03-31T08:52:28.000Z
FixedEffectModel/OLSHighDCategory.py
ksecology/FixedEffectModel
c2371c34350d95e6c308159e1a9c00e56bcb104c
[ "BSD-3-Clause" ]
2
2021-05-28T14:49:15.000Z
2022-03-29T21:27:37.000Z
FixedEffectModel/OLSHighDCategory.py
ksecology/FixedEffectModel
c2371c34350d95e6c308159e1a9c00e56bcb104c
[ "BSD-3-Clause" ]
7
2020-10-09T15:29:42.000Z
2022-03-18T03:52:39.000Z
from statsmodels.compat import lrange from statsmodels.iolib import SimpleTable from .DemeanDataframe import demean_dataframe,demeanonex from .FormTransfer import form_transfer from .OLSFixed import OLSFixed from .RobustErr import robust_err from .ClusterErr import * from .CalDf import cal_df from .CalFullModel import ...
40.162313
133
0.568542
79d1ab1f3e2b42240f48dadfbe6aaf96cdb03f47
1,927
py
Python
demo_python.py
PoseAI/PoseCameraAPI
6abdb5e3b38e9cd4b6da4779cdd6ed6b70315bd7
[ "Apache-2.0" ]
37
2021-07-10T08:01:37.000Z
2022-03-22T20:52:20.000Z
demo_python.py
PoseAI/PoseCameraAPI
6abdb5e3b38e9cd4b6da4779cdd6ed6b70315bd7
[ "Apache-2.0" ]
10
2021-07-01T21:47:29.000Z
2022-03-21T15:57:39.000Z
demo_python.py
PoseAI/PoseCameraAPI
6abdb5e3b38e9cd4b6da4779cdd6ed6b70315bd7
[ "Apache-2.0" ]
7
2021-07-10T08:05:42.000Z
2022-02-18T10:14:50.000Z
''' Authored by Pose AI Ltd, 2021 Simple demo of a UDP server for Pose Camera in python. Once connected will receive stream of poses from the app Apache License 2.0 ''' import socket import json PORT_NUM = 8080 ''' Prints your local IP address. Configure this in the App. Make sure your router and firewall do ...
29.646154
144
0.645044
79d1cf9b574832e9c569200cf822faf4cf31a3d6
3,100
py
Python
flask_maple/log.py
honmaple/flask-maple
1ba9b301ca2ed70ab05fa6860f01468400a7fa15
[ "BSD-3-Clause" ]
9
2016-11-01T09:00:38.000Z
2020-05-09T16:24:07.000Z
flask_maple/log.py
honmaple/flask-maple
1ba9b301ca2ed70ab05fa6860f01468400a7fa15
[ "BSD-3-Clause" ]
1
2016-11-01T09:01:25.000Z
2016-11-05T12:39:14.000Z
flask_maple/log.py
honmaple/flask-maple
1ba9b301ca2ed70ab05fa6860f01468400a7fa15
[ "BSD-3-Clause" ]
3
2016-10-08T13:43:27.000Z
2019-12-31T09:52:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ************************************************************************** # Copyright 2016, 2017 jianglin # File Name: log.py # Author: jianglin # Email: mail@honmaple.com # Created: 2016-11-19 10:32:05 (CST) # Last Update: Wednesday 2018-09-26 10:52:52 (CST) # ...
33.333333
76
0.566774
79d2775d1dc81d0b1ef4fbbd416603637dc6172e
28,930
py
Python
tensorflow/lite/python/util.py
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
3
2020-08-11T13:13:52.000Z
2020-11-09T12:59:16.000Z
tensorflow/lite/python/util.py
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
3
2021-08-25T16:13:38.000Z
2022-02-10T02:04:06.000Z
tensorflow/lite/python/util.py
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
2
2019-03-07T05:54:18.000Z
2019-05-16T20:31:25.000Z
# Lint as: python2, python3 # Copyright 2018 The TensorFlow Authors. 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 # ...
36.994885
102
0.717594
79d385c26dc715609cce9924b659b88d9150f7ad
779
py
Python
helpers/banner.py
Aayush9029/Authomator
d96ae1828ebc36576a6103d06a44c102dc9ec4ee
[ "MIT" ]
null
null
null
helpers/banner.py
Aayush9029/Authomator
d96ae1828ebc36576a6103d06a44c102dc9ec4ee
[ "MIT" ]
1
2021-11-18T03:12:57.000Z
2021-11-18T03:12:57.000Z
helpers/banner.py
Aayush9029/Authomator
d96ae1828ebc36576a6103d06a44c102dc9ec4ee
[ "MIT" ]
null
null
null
# pylint: skip-file ''' Contains banner for the application. ''' banner = f""" {COLORS.GREEN} ___ __ ___ __ __ /\ | | | / \ |\/| /\ | / \ |__) /~~\ \__/ | \__/ | | /~~\ | \__/ | \ {COLORS.PINK} - Made with <3 {COLORS.SECONDARY}Fin...
19.475
93
0.486521
79d4894aebfcbab878602eae1f62eeb71a5eb0fe
613
py
Python
robustbench/model_zoo/models.py
flymin/robustbench
c51d44e5c9f9425d0a2146dbfd5c54d86ea11609
[ "Apache-2.0" ]
2
2021-06-21T18:57:53.000Z
2021-06-21T19:14:08.000Z
robustbench/model_zoo/models.py
flymin/robustbench
c51d44e5c9f9425d0a2146dbfd5c54d86ea11609
[ "Apache-2.0" ]
null
null
null
robustbench/model_zoo/models.py
flymin/robustbench
c51d44e5c9f9425d0a2146dbfd5c54d86ea11609
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from typing import Any, Dict, OrderedDict as OrderedDictType from robustbench.model_zoo.cifar10 import cifar_10_models from robustbench.model_zoo.cifar100 import cifar_100_models from robustbench.model_zoo.enums import BenchmarkDataset, ThreatModel ModelsDict = OrderedDictType[str,...
38.3125
69
0.841762
79d4f00dfb2c0e4d751db7bce7ae43b8a50205a1
367
py
Python
07/part2.py
adityachandak287/aoc-2021
51fdf994b2464b6dde26bc18fbc2dd2b4c9f4daa
[ "MIT" ]
null
null
null
07/part2.py
adityachandak287/aoc-2021
51fdf994b2464b6dde26bc18fbc2dd2b4c9f4daa
[ "MIT" ]
null
null
null
07/part2.py
adityachandak287/aoc-2021
51fdf994b2464b6dde26bc18fbc2dd2b4c9f4daa
[ "MIT" ]
null
null
null
import sys import math positions = [int(x) for x in sys.stdin.readline().strip().split(",")] mean = sum(positions) / len(positions) mUpper = math.ceil(mean) mLower = math.floor(mean) cost = {mUpper: 0, mLower: 0} for pos in positions: for m in [mUpper, mLower]: diff = abs(pos - m) cost[m] += (dif...
21.588235
69
0.615804
79d64e8adf51aea098382e7f4fd33f66d54fa20b
366
py
Python
humfrey/update/templatetags/humfrey_update.py
ox-it/humfrey
c92e46a24a9bf28aa9638a612f166d209315e76b
[ "BSD-3-Clause" ]
6
2015-01-09T15:53:07.000Z
2020-02-13T14:00:53.000Z
humfrey/update/templatetags/humfrey_update.py
ox-it/humfrey
c92e46a24a9bf28aa9638a612f166d209315e76b
[ "BSD-3-Clause" ]
null
null
null
humfrey/update/templatetags/humfrey_update.py
ox-it/humfrey
c92e46a24a9bf28aa9638a612f166d209315e76b
[ "BSD-3-Clause" ]
1
2017-05-12T20:46:15.000Z
2017-05-12T20:46:15.000Z
from django import template register = template.Library()
17.428571
32
0.745902
79d6a844f0a97566c860753b867042dc06bee90a
95
py
Python
paleosites/apps.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
1
2021-02-05T19:50:13.000Z
2021-02-05T19:50:13.000Z
paleosites/apps.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
59
2020-06-17T22:21:51.000Z
2022-02-10T05:00:01.000Z
paleosites/apps.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
2
2020-07-01T14:11:09.000Z
2020-08-10T17:27:26.000Z
from django.apps import AppConfig
15.833333
34
0.768421
79d6e83ac128c66234e3ec305f364613fe7a0ee6
763
py
Python
701-800/771.JewelsAndStones.py
Arrackisarookie/leetcode
2e98c81d50a6b4ae0373908fbf9fe2e2c89f43a3
[ "MIT" ]
null
null
null
701-800/771.JewelsAndStones.py
Arrackisarookie/leetcode
2e98c81d50a6b4ae0373908fbf9fe2e2c89f43a3
[ "MIT" ]
null
null
null
701-800/771.JewelsAndStones.py
Arrackisarookie/leetcode
2e98c81d50a6b4ae0373908fbf9fe2e2c89f43a3
[ "MIT" ]
null
null
null
# # 771. Jewels and Stone # # You're given strings J representing the types of stones that are jewels, and # S representing the stones you have. # # Each character in S is a type of stone you have. You want to know how many of # the stones you have are also jewels. # # The letters in J are guaranteed distinct, and all ...
29.346154
79
0.669725
79d841149fbc6a2c2f51ed4638a8d2a7b18e0ae3
625
py
Python
neo/api/utils.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
neo/api/utils.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
neo/api/utils.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
from aiohttp import web from aiohttp.web_response import ContentCoding from functools import wraps COMPRESS_FASTEST = 1 BASE_STRING_SIZE = 49 MTU_TCP_PACKET_SIZE = 1500 COMPRESS_THRESHOLD = MTU_TCP_PACKET_SIZE + BASE_STRING_SIZE def json_response(func): """ @json_response decorator adds header and dumps response objec...
36.764706
71
0.7952
79d87f5f40b89e3cab855d94f84613002fc5749e
400
py
Python
poll/forms.py
vishalpandeyvip/GURU--an-online-class-portal
de6e129f2fd70f80393e273abd0f63a1a30cda72
[ "Apache-2.0" ]
1
2020-10-20T08:46:27.000Z
2020-10-20T08:46:27.000Z
poll/forms.py
vishalpandeyvip/GURU
de6e129f2fd70f80393e273abd0f63a1a30cda72
[ "Apache-2.0" ]
null
null
null
poll/forms.py
vishalpandeyvip/GURU
de6e129f2fd70f80393e273abd0f63a1a30cda72
[ "Apache-2.0" ]
1
2020-08-31T08:06:21.000Z
2020-08-31T08:06:21.000Z
from django import forms from .models import Poll, Choice
22.222222
64
0.7325
79d9f0030f029fb618d36a4a45c0e6d7834b9e51
2,670
py
Python
utils/models/erfnet_encoder.py
voldemortX/DeeplabV3_PyTorch1.3_Codebase
d22d23e74800fafb58eeb61d6649008745c1a287
[ "BSD-3-Clause" ]
1
2020-09-17T06:21:39.000Z
2020-09-17T06:21:39.000Z
utils/models/erfnet_encoder.py
voldemortX/pytorch-segmentation
9c62c0a721d11c8ea6bf312ecf1c7b238a54dcda
[ "BSD-3-Clause" ]
null
null
null
utils/models/erfnet_encoder.py
voldemortX/pytorch-segmentation
9c62c0a721d11c8ea6bf312ecf1c7b238a54dcda
[ "BSD-3-Clause" ]
null
null
null
# modified from utils/models/segmentation/erfnet.py # load pretrained weights during initialization of encoder import torch import torch.nn as nn import torch.nn.functional as F from .common_models import non_bottleneck_1d from .builder import MODELS
37.605634
98
0.653933
79dc83aeb3665f7d385fa53d8c9b9dd50f151d5c
514
py
Python
bilireq/utils/av_bv.py
SK-415/bilireq
ce4dfa2ae05a88291162907b86caf29ab868bedc
[ "MIT" ]
2
2021-10-20T06:32:35.000Z
2022-03-26T11:40:07.000Z
bilireq/utils/av_bv.py
SK-415/bilireq
ce4dfa2ae05a88291162907b86caf29ab868bedc
[ "MIT" ]
1
2021-12-06T01:37:08.000Z
2021-12-06T01:37:08.000Z
bilireq/utils/av_bv.py
SK-415/bilireq
ce4dfa2ae05a88291162907b86caf29ab868bedc
[ "MIT" ]
null
null
null
from typing import Union table = "fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF" tr = {} for i in range(58): tr[table[i]] = i s = [11, 10, 3, 8, 4, 6] xor = 177451812 add = 8728348608
20.56
68
0.552529
79dcc934efbfd242b006bddf2a0ee81a25fcdfe9
1,713
py
Python
mdssdk/parsers/vsan/show_vsan.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
4
2020-12-13T20:02:43.000Z
2022-02-27T23:36:58.000Z
mdssdk/parsers/vsan/show_vsan.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
13
2020-09-23T07:30:15.000Z
2022-03-30T01:12:25.000Z
mdssdk/parsers/vsan/show_vsan.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
12
2020-05-11T09:33:21.000Z
2022-03-18T11:11:28.000Z
import logging import re log = logging.getLogger(__name__)
30.052632
238
0.618214
79dd1956eda2bbd3df8995bb81479005690d4a42
301
py
Python
magicmirror/tools/es/__init__.py
memirror/magicMirror
05ee16b44aef22c30da2bc3323c5ba593b3e53fa
[ "MIT" ]
5
2021-09-03T03:06:51.000Z
2022-03-22T07:48:22.000Z
magicmirror/tools/es/__init__.py
xiaodongxiexie/magicMirror
05ee16b44aef22c30da2bc3323c5ba593b3e53fa
[ "MIT" ]
null
null
null
magicmirror/tools/es/__init__.py
xiaodongxiexie/magicMirror
05ee16b44aef22c30da2bc3323c5ba593b3e53fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: xiaodong # @Date : 2021/5/27 from elasticsearch import Elasticsearch from .question import ElasticSearchQuestion from ...setting import ELASTICSEARCH_HOST ElasticSearchQuestion.es = Elasticsearch(ELASTICSEARCH_HOST) esq = ElasticSearchQuestion("mm_question")
21.5
60
0.777409
79dd85c9b8b517ba0743961b5cc367485fe5d8a0
554
py
Python
DSA/Python/src/dsa/lib/algo/sort/counting_sort/tests/test_counting_sort.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
null
null
null
DSA/Python/src/dsa/lib/algo/sort/counting_sort/tests/test_counting_sort.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
1
2020-10-23T04:06:56.000Z
2020-10-23T04:06:56.000Z
DSA/Python/src/dsa/lib/algo/sort/counting_sort/tests/test_counting_sort.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase from dsa.lib.algo.sort.counting_sort import counting_sort
26.380952
57
0.611913
79ddb105ac755f4279b7ea5fbb3e4ad1e1be660a
265
py
Python
mirari/TCS/migrations/0051_merge_20200210_1930.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
mirari/TCS/migrations/0051_merge_20200210_1930.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
18
2019-12-27T19:58:20.000Z
2022-02-27T08:17:49.000Z
mirari/TCS/migrations/0051_merge_20200210_1930.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2020-02-11 01:30 from django.db import migrations
17.666667
47
0.637736
79e0555ac90dbd19cbb8156f73d726f47b43fd38
1,364
py
Python
sdk/python/pulumi_aws/elasticbeanstalk/get_solution_stack.py
lemonade-hq/pulumi-aws
9ee22c65c7bad42d38b16879ccd56526d856a01a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/elasticbeanstalk/get_solution_stack.py
lemonade-hq/pulumi-aws
9ee22c65c7bad42d38b16879ccd56526d856a01a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/elasticbeanstalk/get_solution_stack.py
lemonade-hq/pulumi-aws
9ee22c65c7bad42d38b16879ccd56526d856a01a
[ "ECL-2.0", "Apache-2.0" ]
1
2021-03-08T15:05:29.000Z
2021-03-08T15:05:29.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from .. import utilities, tables
32.47619
120
0.662757
79e06c6e6e266e08b0e9a24d4ac7fd1554a521c5
6,484
py
Python
Tavan/old_04.py
vedgar/ip
5ed0773eea4243077f5defb77fb1839661308c83
[ "Unlicense" ]
5
2017-03-15T11:34:55.000Z
2021-03-10T13:05:02.000Z
Tavan/old_04.py
vedgar/ip
5ed0773eea4243077f5defb77fb1839661308c83
[ "Unlicense" ]
null
null
null
Tavan/old_04.py
vedgar/ip
5ed0773eea4243077f5defb77fb1839661308c83
[ "Unlicense" ]
14
2017-01-11T19:11:01.000Z
2021-05-09T18:42:19.000Z
"""Jednostavni SQL parser, samo za nizove CREATE i SELECT naredbi. Ovaj fragment SQLa je zapravo regularan -- nigdje nema ugnjeivanja! Semantiki analizator u obliku name resolvera: provjerava jesu li svi selektirani stupci prisutni, te broji pristupe. Na dnu je lista ideja za dalji razvoj. """ from pj import * f...
37.479769
79
0.625848
8daeeb998fcc047c3c8326c959dd97aac46bcc95
3,291
py
Python
bsddb3/bsddb3-6.2.6/make3.py
mpwillson/spambayes3
b51d7bb9016066234ce88dad65faabed85f63d78
[ "PSF-2.0" ]
1
2020-03-21T15:17:22.000Z
2020-03-21T15:17:22.000Z
bsddb3/bsddb3-6.2.6/make3.py
mpwillson/spambayes3
b51d7bb9016066234ce88dad65faabed85f63d78
[ "PSF-2.0" ]
1
2022-02-22T22:23:55.000Z
2022-02-22T22:23:55.000Z
bsddb3/bsddb3-6.2.6/make3.py
mpwillson/spambayes3
b51d7bb9016066234ce88dad65faabed85f63d78
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2008-2018, Jesus Cea Avion <jcea@jcea.es> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notic...
32.264706
82
0.681252
8daf09209bbe1d2fb9edf2af06691d887d15ca15
2,035
py
Python
pyTD/tests/unit/test_cache.py
kevmartian/pyTD
ea8f374a0c9eddf5a46233f5946e68a67c181009
[ "MIT" ]
16
2018-10-25T06:03:56.000Z
2021-06-14T03:53:01.000Z
pyTD/tests/unit/test_cache.py
td-ameritrade/pyTD
28099664c8a3b6b7e60f62f5e5c120f01e3530af
[ "MIT" ]
5
2018-11-11T19:34:25.000Z
2021-01-16T03:39:45.000Z
pyTD/tests/unit/test_cache.py
td-ameritrade/pyTD
28099664c8a3b6b7e60f62f5e5c120f01e3530af
[ "MIT" ]
14
2019-03-12T04:16:40.000Z
2021-04-15T20:26:04.000Z
# MIT License # Copyright (c) 2018 Addison Lynch # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, ...
35.701754
79
0.744963
8dafeef9b1315dcf1a385861d1a2b35927ccbd53
514
py
Python
tests/test_tree.py
Schoyen/arbitrary-woodland
927fe791bcbde733ea283b15de7921a3115b8578
[ "MIT" ]
null
null
null
tests/test_tree.py
Schoyen/arbitrary-woodland
927fe791bcbde733ea283b15de7921a3115b8578
[ "MIT" ]
null
null
null
tests/test_tree.py
Schoyen/arbitrary-woodland
927fe791bcbde733ea283b15de7921a3115b8578
[ "MIT" ]
null
null
null
import numpy as np import sklearn.datasets as skd import sklearn.model_selection as skms import sklearn.metrics as skm import sklearn.tree as skt from arbitrary_woodland.tree import DecisionTree
22.347826
61
0.731518
8db181ed61c9a3ae541faef9c9148c3595083f7c
2,600
py
Python
TestModel/migrations/0001_initial.py
WenGeYJ/Mail-Master-in-School
040585569e5fe0bea9b6f93d6e4f5ed14e78da62
[ "MIT" ]
null
null
null
TestModel/migrations/0001_initial.py
WenGeYJ/Mail-Master-in-School
040585569e5fe0bea9b6f93d6e4f5ed14e78da62
[ "MIT" ]
null
null
null
TestModel/migrations/0001_initial.py
WenGeYJ/Mail-Master-in-School
040585569e5fe0bea9b6f93d6e4f5ed14e78da62
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11a1 on 2017-05-11 08:37 from __future__ import unicode_literals from django.db import migrations, models
37.142857
114
0.536538
8db22bddd1a7d85992cce67a92f1c7d93bd40095
6,564
py
Python
world_creator/objects.py
lilSpeedwagon/zaWRka-project
e40c6520183c802e9c61faabeaa079bced4e8b00
[ "MIT" ]
1
2019-12-11T17:18:42.000Z
2019-12-11T17:18:42.000Z
world_creator/objects.py
lilSpeedwagon/zaWRka-project
e40c6520183c802e9c61faabeaa079bced4e8b00
[ "MIT" ]
null
null
null
world_creator/objects.py
lilSpeedwagon/zaWRka-project
e40c6520183c802e9c61faabeaa079bced4e8b00
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from data_structures import * import copy import logging as log import converter import math as m from enum import Enum import os APP_VERSION = 1.0 def sign_path_to_sign_type(img_path): if img_path is ImagesPaths.STOP: return SignsTypes.STOP.value elif img_path is ImagesPaths.ON...
29.044248
110
0.593693
8db2a42c81a6be04ff526dac7fe7fcca39a3412e
1,968
py
Python
theano/tensor/io.py
jsalvatier/Theano-1
457bae18a0d3284841b9bcae5ce4ceee22f33132
[ "BSD-3-Clause" ]
null
null
null
theano/tensor/io.py
jsalvatier/Theano-1
457bae18a0d3284841b9bcae5ce4ceee22f33132
[ "BSD-3-Clause" ]
null
null
null
theano/tensor/io.py
jsalvatier/Theano-1
457bae18a0d3284841b9bcae5ce4ceee22f33132
[ "BSD-3-Clause" ]
null
null
null
import numpy import theano from theano import gof from theano.gof import Apply, Constant, Generic, Op, Type, Value, Variable from basic import tensor ########################## # Disk Access ########################## def load(path, dtype, broadcastable, mmap_mode=None): """ Load an array from an .npy file ...
30.276923
75
0.582317
8db437824923c990b00f74bf7f3680118a40bc03
4,619
py
Python
mediasurvey/views_edit.py
shagun30/djambala-2
06f14e3dd237d7ebf535c62172cfe238c3934f4d
[ "BSD-3-Clause" ]
null
null
null
mediasurvey/views_edit.py
shagun30/djambala-2
06f14e3dd237d7ebf535c62172cfe238c3934f4d
[ "BSD-3-Clause" ]
null
null
null
mediasurvey/views_edit.py
shagun30/djambala-2
06f14e3dd237d7ebf535c62172cfe238c3934f4d
[ "BSD-3-Clause" ]
null
null
null
#-*-coding: utf-8 -*- """ /dms/mediasurvey/views_edit.py .. enthaelt den View zum Aendern der Eigenschaften eines Medien-Fragebogens Django content Management System Hans Rauch hans.rauch@gmx.net Die Programme des dms-Systems koennen frei genutzt und den spezifischen Beduerfnissen entsprechend angepasst wer...
41.990909
99
0.648192
8db47e9494f2e9c57b0c17311001fa23717393a2
1,982
py
Python
file_path/proc_dup_files.py
daineseh/python_code
1c2c45a62329fbc87ed9a486b3382b112948ba73
[ "MIT" ]
null
null
null
file_path/proc_dup_files.py
daineseh/python_code
1c2c45a62329fbc87ed9a486b3382b112948ba73
[ "MIT" ]
null
null
null
file_path/proc_dup_files.py
daineseh/python_code
1c2c45a62329fbc87ed9a486b3382b112948ba73
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import os import sys if __name__ == '__main__': main()
27.915493
101
0.553481
8db4e746dbcb2bab9ffd91b5a325f8c96eb5fa0a
1,296
py
Python
test/features/util.py
shivam00/thrift
d81e9e3d22c130ef5ddba7b06fb9802267d9d1d7
[ "Apache-2.0" ]
2
2018-09-30T09:37:22.000Z
2020-05-07T01:53:04.000Z
test/features/util.py
shivam00/thrift
d81e9e3d22c130ef5ddba7b06fb9802267d9d1d7
[ "Apache-2.0" ]
null
null
null
test/features/util.py
shivam00/thrift
d81e9e3d22c130ef5ddba7b06fb9802267d9d1d7
[ "Apache-2.0" ]
null
null
null
import argparse import socket from local_thrift import thrift # noqa from thrift.transport.TSocket import TSocket from thrift.transport.TTransport import TBufferedTransport, TFramedTransport from thrift.transport.THttpClient import THttpClient from thrift.protocol.TBinaryProtocol import TBinaryProtocol from t...
31.609756
77
0.706019
8db6147436c0b6b4669ca38bc881f7d85d39b8de
3,050
py
Python
nova/scheduler/weights/__init__.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/scheduler/weights/__init__.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/scheduler/weights/__init__.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright (c) 2011 OpenStack Foundation' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n...
15.482234
88
0.632787
8db775c0cc59f4c1a94f8619d4ddee6b13af06fa
2,459
py
Python
nomad/api/allocations.py
shinespb/python-nomad
d5dd6f89dc82a1a2ccc33858ace1257a1df0d29c
[ "MIT" ]
null
null
null
nomad/api/allocations.py
shinespb/python-nomad
d5dd6f89dc82a1a2ccc33858ace1257a1df0d29c
[ "MIT" ]
null
null
null
nomad/api/allocations.py
shinespb/python-nomad
d5dd6f89dc82a1a2ccc33858ace1257a1df0d29c
[ "MIT" ]
null
null
null
from nomad.api.base import Requester
34.633803
103
0.620171
8db79184af1250d107a11638d5af897354f0c82a
4,486
py
Python
src/training/run_training_pipeline.py
IINemo/isanlp_srl_framebank
0c7978083911e0e539e9cf7f79e3f863c3876ee8
[ "MIT" ]
20
2018-04-17T19:46:39.000Z
2022-02-10T11:38:09.000Z
src/training/run_training_pipeline.py
IINemo/isanlp_srl_framebank
0c7978083911e0e539e9cf7f79e3f863c3876ee8
[ "MIT" ]
null
null
null
src/training/run_training_pipeline.py
IINemo/isanlp_srl_framebank
0c7978083911e0e539e9cf7f79e3f863c3876ee8
[ "MIT" ]
10
2018-06-04T22:15:56.000Z
2020-08-27T13:27:49.000Z
import os import sys sys.path.append('../') import fire import pickle import json if __name__ == "__main__": fire.Fire(main)
42.72381
111
0.561748
8dba6df40271f493e222a50eeabc7aca8d53155d
752
py
Python
rvpvp/isa/rvv/vwmxxxx_vv.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
5
2021-05-10T09:57:00.000Z
2021-10-05T14:39:20.000Z
rvpvp/isa/rvv/vwmxxxx_vv.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
null
null
null
rvpvp/isa/rvv/vwmxxxx_vv.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
1
2021-05-14T20:24:11.000Z
2021-05-14T20:24:11.000Z
from ...isa.inst import * import numpy as np
32.695652
109
0.56516
8dba79d39c18f46b669087098e07b5b8e9a3e067
2,195
py
Python
example/tester/migrations/0001_initial.py
WenminZhao/django-reactive
a579a96b6f0af6ed4affc3561cc0bc82e0fba59f
[ "MIT" ]
null
null
null
example/tester/migrations/0001_initial.py
WenminZhao/django-reactive
a579a96b6f0af6ed4affc3561cc0bc82e0fba59f
[ "MIT" ]
null
null
null
example/tester/migrations/0001_initial.py
WenminZhao/django-reactive
a579a96b6f0af6ed4affc3561cc0bc82e0fba59f
[ "MIT" ]
null
null
null
# Generated by Django 2.0.9 on 2018-12-08 12:25 from django.db import migrations, models import django_reactive.fields
56.282051
118
0.660592
8dbd46d1ac00ab6d41e5be8b24f85f3d76541844
423
py
Python
support/cross/aio/atexit.py
pmp-p/python-wasm-plus
ccd34cf46fc00924e256a0ad1d8cf5061b9520ac
[ "MIT" ]
3
2022-03-11T22:02:39.000Z
2022-03-16T08:04:33.000Z
support/cross/aio/atexit.py
pmp-p/python-wasm-plus
ccd34cf46fc00924e256a0ad1d8cf5061b9520ac
[ "MIT" ]
null
null
null
support/cross/aio/atexit.py
pmp-p/python-wasm-plus
ccd34cf46fc00924e256a0ad1d8cf5061b9520ac
[ "MIT" ]
null
null
null
plan = [] # replace stock one import sys sys.modules['atexit'] = sys.modules['aio.atexit']
16.92
50
0.593381
8dbed713eba3310cf7ae7a996a13a06aef76728a
1,930
py
Python
tracpro/orgs_ext/utils.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
5
2015-07-21T15:58:31.000Z
2019-09-14T22:34:00.000Z
tracpro/orgs_ext/utils.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
197
2015-03-24T15:26:04.000Z
2017-11-28T19:24:37.000Z
tracpro/orgs_ext/utils.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
10
2015-03-24T12:26:36.000Z
2017-02-21T13:08:57.000Z
from __future__ import unicode_literals def is_supervisor(org, user): """ Return True if user is a supervisor for org. (In TracPro's endless quest to confuse and obfuscate by using different names for the same things, a "supervisor" is another name for an org "editor".) """ if org and us...
33.859649
77
0.663212
8dc0455393c09deb7fec8d707856281119f0d40f
8,631
py
Python
amla/common/schedule.py
tremblerz/amla
6ab000d6e7703cc5591451e324c9882408943816
[ "Apache-2.0" ]
118
2018-06-25T05:01:22.000Z
2022-03-07T05:46:08.000Z
amla/common/schedule.py
tremblerz/amla
6ab000d6e7703cc5591451e324c9882408943816
[ "Apache-2.0" ]
22
2018-06-12T21:22:37.000Z
2020-04-08T07:59:49.000Z
amla/common/schedule.py
tremblerz/amla
6ab000d6e7703cc5591451e324c9882408943816
[ "Apache-2.0" ]
21
2018-07-20T22:01:30.000Z
2021-05-30T08:57:50.000Z
#Copyright 2018 Cisco Systems 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 required by applicable law or agreed to ...
34.25
103
0.526011
8dc046a4a743c959cf89d63fdbe7ae777ee22bc9
360
py
Python
tests/core_test.py
soft-r-evolution/lib.s_utils
3559faaf1af0ccd62b762024b12548213c552e06
[ "MIT" ]
1
2020-04-10T22:36:56.000Z
2020-04-10T22:36:56.000Z
tests/core_test.py
soft-r-evolution/lib.s_utils
3559faaf1af0ccd62b762024b12548213c552e06
[ "MIT" ]
4
2020-04-10T22:02:15.000Z
2020-04-11T23:38:02.000Z
tests/core_test.py
soft-r-evolution/lib.s_utils
3559faaf1af0ccd62b762024b12548213c552e06
[ "MIT" ]
1
2020-04-10T22:37:18.000Z
2020-04-10T22:37:18.000Z
from s_utils.dict import get_key
24
48
0.697222
8dc0d31cc862238ebad23feea60a8fa6b2d0de8f
1,300
py
Python
oslc_api/rest_api/representations.py
koneksys/aras-oslc
92adb87b884014df5b82a1c5402592aabc916bc0
[ "MIT" ]
3
2021-03-19T22:25:51.000Z
2021-03-20T19:34:28.000Z
oslc_api/rest_api/representations.py
koneksys/aras-oslc
92adb87b884014df5b82a1c5402592aabc916bc0
[ "MIT" ]
null
null
null
oslc_api/rest_api/representations.py
koneksys/aras-oslc
92adb87b884014df5b82a1c5402592aabc916bc0
[ "MIT" ]
null
null
null
from http.client import OK from flask import make_response, request from rdflib import Graph, Literal, URIRef, RDF from rdflib.resource import Resource from oslc_api.aras.namespaces import OSLC representations = { 'json-ld': ['application/json', 'application/json+ld'], 'turtle': ['text/turtle'], 'pretty-...
25.490196
67
0.645385
8dc12441a5e7249e908d2c2dfcd39c2193640172
6,680
py
Python
jinfo/sequence.py
JBwdn/jinfo
b5933edd3ea3d27f4f7c1e0153e16750de0d1726
[ "MIT" ]
null
null
null
jinfo/sequence.py
JBwdn/jinfo
b5933edd3ea3d27f4f7c1e0153e16750de0d1726
[ "MIT" ]
1
2020-12-07T14:07:14.000Z
2020-12-07T14:07:14.000Z
jinfo/sequence.py
JBwdn/jinfo
b5933edd3ea3d27f4f7c1e0153e16750de0d1726
[ "MIT" ]
null
null
null
from jinfo.tables import ( DNA_VOCAB, RNA_VOCAB, AA_VOCAB, CODON_TABLE, RC_TABLE, NT_MW_TABLE, AA_MW_TABLE, ) if __name__ == "__main__": pass
25.39924
88
0.577994
8dc1ded1febc92ebc919ca6da13fa73e6dadcd7b
3,093
py
Python
pygame/platform-moving-up-down/main-2-class.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
pygame/platform-moving-up-down/main-2-class.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
pygame/platform-moving-up-down/main-2-class.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
#!/usr/bin/env python3 # date: 2020.01.23 # https://stackoverflow.com/questions/59870590/collision-detection-ball-landing-on-platform # Press SPACE to change player_gravity when it falls import pygame # --- constants --- (UPPER_CASE_NAMES) SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 FPS = 25 # for more than 220 it has...
22.742647
91
0.557388
8dc3441aa92017412470a1748b4a4a47bc237d9a
1,783
py
Python
Exercise 7: More Printing.py
EarthBeLost/Learning.Python
a3d5e662082d5cb17502ca87a748e1940a4b6a6c
[ "CC-BY-4.0" ]
null
null
null
Exercise 7: More Printing.py
EarthBeLost/Learning.Python
a3d5e662082d5cb17502ca87a748e1940a4b6a6c
[ "CC-BY-4.0" ]
null
null
null
Exercise 7: More Printing.py
EarthBeLost/Learning.Python
a3d5e662082d5cb17502ca87a748e1940a4b6a6c
[ "CC-BY-4.0" ]
null
null
null
print "Mary had a little lamb." # Prints "Mary had a little lamb." print "It's fleece was white as %s." % 'snow' # Prints "It's fleece was white as snow." print "And everywhere that Mary went." # Prints "And everywhere that Mary went." print "." * 10 # What'd that do? I'm sure it prints full stop 10 times. end1 = "C" ...
55.71875
194
0.693775
8dc368a1afac94cd8daf10a5a2d880bfab5d58ef
1,173
py
Python
engine/manual_flappy_engine.py
OscarGarciaPeinado/flappy_bird
ceb254392e37ccc5ab24d888712f3dde8add1315
[ "Apache-2.0" ]
5
2019-01-27T00:05:03.000Z
2022-01-24T11:55:51.000Z
engine/manual_flappy_engine.py
JoanMartin/flappy_bird
ceb254392e37ccc5ab24d888712f3dde8add1315
[ "Apache-2.0" ]
null
null
null
engine/manual_flappy_engine.py
JoanMartin/flappy_bird
ceb254392e37ccc5ab24d888712f3dde8add1315
[ "Apache-2.0" ]
1
2019-01-27T19:39:31.000Z
2019-01-27T19:39:31.000Z
# coding: utf-8 import pygame from engine.flappy_engine import FlappyEngine from entities.bird import Bird
27.27907
102
0.617221
8dc450bb2f971a7611d5c49f88bbbeeeab33d3ee
3,901
py
Python
app/services/models/time_series.py
samelamin/kylinmonitorbot
00a38ca9513dceadf23bfdb19b6daab77a368e76
[ "MIT" ]
null
null
null
app/services/models/time_series.py
samelamin/kylinmonitorbot
00a38ca9513dceadf23bfdb19b6daab77a368e76
[ "MIT" ]
null
null
null
app/services/models/time_series.py
samelamin/kylinmonitorbot
00a38ca9513dceadf23bfdb19b6daab77a368e76
[ "MIT" ]
null
null
null
import json import time from services.lib.db import DB BNB_SYMBOL = 'BNB.BNB' BUSD_SYMBOL = 'BNB.BUSD-BD1' USDT_SYMBOL = 'BNB.USDT-6D8' RUNE_SYMBOL = 'BNB.RUNE-B1A' BTCB_SYMBOL = 'BNB.BTCB-1DE' ETHB_SYMBOL = 'BNB.ETH-1C9' RUNE_SYMBOL_DET = 'RUNE-DET'
33.921739
117
0.627788
8dc4eb52b3d526ae13b6a8e6bdc0f0ad9f1453b2
4,285
py
Python
holobot/extensions/todo_lists/repositories/todo_item_repository.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
1
2021-05-24T00:17:46.000Z
2021-05-24T00:17:46.000Z
holobot/extensions/todo_lists/repositories/todo_item_repository.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
41
2021-03-24T22:50:09.000Z
2021-12-17T12:15:13.000Z
holobot/extensions/todo_lists/repositories/todo_item_repository.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
null
null
null
from .todo_item_repository_interface import TodoItemRepositoryInterface from ..models import TodoItem from asyncpg.connection import Connection from holobot.sdk.database import DatabaseManagerInterface from holobot.sdk.database.queries import Query from holobot.sdk.database.queries.enums import Equality from holobot.sd...
50.411765
128
0.632905
8dc560445f5cf6918ae2859a13d5ea87d0b72542
4,057
py
Python
examples/id_pools_ipv4_ranges.py
LaudateCorpus1/oneview-python
8373b144f0774f6b2193fe5bafdd099d1d21796a
[ "Apache-2.0" ]
18
2019-12-13T16:55:14.000Z
2022-03-24T15:37:32.000Z
examples/id_pools_ipv4_ranges.py
LaudateCorpus1/oneview-python
8373b144f0774f6b2193fe5bafdd099d1d21796a
[ "Apache-2.0" ]
55
2019-12-20T09:56:18.000Z
2022-01-28T06:42:04.000Z
examples/id_pools_ipv4_ranges.py
LaudateCorpus1/oneview-python
8373b144f0774f6b2193fe5bafdd099d1d21796a
[ "Apache-2.0" ]
33
2019-11-12T08:53:22.000Z
2022-03-07T11:20:14.000Z
# -*- coding: utf-8 -*- ### # (C) Copyright [2021] Hewlett Packard Enterprise Development LP # # 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 #...
27.97931
74
0.719497
8dc66bddfa66fadc0b4d769c980f9102881c7113
1,436
py
Python
pikos/monitors/api.py
enthought/pikos
21255028103a85a0b2761e6b54c74f9d066c2c4a
[ "PSF-2.0", "BSD-3-Clause" ]
3
2015-01-31T18:08:45.000Z
2017-05-20T18:19:59.000Z
pikos/monitors/api.py
enthought/pikos
21255028103a85a0b2761e6b54c74f9d066c2c4a
[ "PSF-2.0", "BSD-3-Clause" ]
7
2015-01-21T11:20:08.000Z
2015-03-20T14:20:46.000Z
pikos/monitors/api.py
enthought/pikos
21255028103a85a0b2761e6b54c74f9d066c2c4a
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- #---------------------------------------------------------------------------- # Package: Pikos toolkit # File: monitors/api.py # License: LICENSE.TXT # # Copyright (c) 2014, Enthought, Inc. # All rights reserved. #---------------------------------------------------------------------------- ...
34.190476
79
0.696379
8dc7befaa49316d0886f315fa79c6810c5a1e04e
1,175
py
Python
deeppages/admin.py
ricardofalasca/deep-pages
d1b2a48f62c31e20d767df5c6345e07e4d05290d
[ "MIT" ]
null
null
null
deeppages/admin.py
ricardofalasca/deep-pages
d1b2a48f62c31e20d767df5c6345e07e4d05290d
[ "MIT" ]
null
null
null
deeppages/admin.py
ricardofalasca/deep-pages
d1b2a48f62c31e20d767df5c6345e07e4d05290d
[ "MIT" ]
null
null
null
from django.contrib import admin from django.forms import Textarea from django.db import models from deeppages.models import Template, Page
24.479167
79
0.526809
8dc90da53696f03e6f2e28513a06b7edee8dc279
2,359
py
Python
lists/main.py
olepunchy/hacker-rank-python-track
0dd9fbc0f09fb1212e8813ec2782854734c870a8
[ "BSD-3-Clause" ]
null
null
null
lists/main.py
olepunchy/hacker-rank-python-track
0dd9fbc0f09fb1212e8813ec2782854734c870a8
[ "BSD-3-Clause" ]
null
null
null
lists/main.py
olepunchy/hacker-rank-python-track
0dd9fbc0f09fb1212e8813ec2782854734c870a8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Consider a list (list = []). You can perform the following commands: insert i e: Insert integer e at position i. print: Print the list. remove e: Delete the first occurrence of integer e. append e: Insert integer e at the end of the list. sort: Sort the list. pop: Pop the last element from ...
20.513043
83
0.643493
8dc9d4a24fcd5779bfcc0dce2b7599c6899d8ef2
399
py
Python
day01/part2.py
BaderSZ/adventofcode2020
dae705fd093bbd176021118f0898947cb4b02f84
[ "MIT" ]
null
null
null
day01/part2.py
BaderSZ/adventofcode2020
dae705fd093bbd176021118f0898947cb4b02f84
[ "MIT" ]
null
null
null
day01/part2.py
BaderSZ/adventofcode2020
dae705fd093bbd176021118f0898947cb4b02f84
[ "MIT" ]
null
null
null
arr = [] b = False with open("input","r") as f: for i in f.readlines(): arr = arr + [int(i.rstrip("\n"))] length = len(arr) for i in range(0,length): for j in range(0,length): for k in range(0,length): if (arr[i]+arr[j]+arr[k] == 2020): print("Result = ", arr...
19
56
0.448622
8dcc191251e9bb591b28f0c72e65d435581689d5
1,062
py
Python
General.py
AllVides/DB_EDD_G9
2ad5805ac1a2e37a09466cc4e30026ea90c6ad03
[ "MIT" ]
null
null
null
General.py
AllVides/DB_EDD_G9
2ad5805ac1a2e37a09466cc4e30026ea90c6ad03
[ "MIT" ]
null
null
null
General.py
AllVides/DB_EDD_G9
2ad5805ac1a2e37a09466cc4e30026ea90c6ad03
[ "MIT" ]
null
null
null
import MainG as j # LLAMADA DE METODOS COMO EL EJEMPLO DEL INGE print(j.createDatabase('db1')) # 0 print(j.createDatabase('db1')) # 2 print(j.createDatabase('db4')) # 0 print(j.createDatabase('db5')) # 0 print(j.alterDatabase('db5','db1')) # 3 print(j.alterDatabase('db5','db2')) # 0 print(j.dropD...
36.62069
65
0.56403
8dccf8354ae71c5e56e1bb77b34bc4e485651bdb
4,862
py
Python
nidaqmx/tests/test_write_exceptions.py
hboshnak/nidaqmx-python
b756fbd7f0c0f7deadb468d77ceacb03ed467885
[ "MIT" ]
null
null
null
nidaqmx/tests/test_write_exceptions.py
hboshnak/nidaqmx-python
b756fbd7f0c0f7deadb468d77ceacb03ed467885
[ "MIT" ]
null
null
null
nidaqmx/tests/test_write_exceptions.py
hboshnak/nidaqmx-python
b756fbd7f0c0f7deadb468d77ceacb03ed467885
[ "MIT" ]
null
null
null
import collections import re import numpy import pytest import random import time import nidaqmx from nidaqmx.constants import ( AcquisitionType, BusType, RegenerationMode) from nidaqmx.error_codes import DAQmxErrors from nidaqmx.utils import flatten_channel_string from nidaqmx.tests.fixtures import x_series_devi...
44.605505
105
0.693747
8dcdc79d68031ef6f71e208e23bc970ea8a6a950
1,102
py
Python
example_contests/fk_2014_beta/problems/rod/data/secret/gen.py
ForritunarkeppniFramhaldsskolanna/epsilon
a31260ad33aba3d1846cda585840d7e7d2f2349c
[ "MIT" ]
6
2016-03-28T13:57:54.000Z
2017-07-25T06:04:05.000Z
example_contests/fk_2014_beta/problems/rod/data/secret/gen.py
ForritunarkeppniFramhaldsskolanna/epsilon
a31260ad33aba3d1846cda585840d7e7d2f2349c
[ "MIT" ]
25
2015-01-23T18:02:35.000Z
2015-03-17T01:40:27.000Z
example_contests/fk_2014_beta/problems/rod/data/secret/gen.py
ForritunarkeppniFramhaldsskolanna/epsilon
a31260ad33aba3d1846cda585840d7e7d2f2349c
[ "MIT" ]
3
2016-06-28T00:48:38.000Z
2017-05-25T05:29:25.000Z
import random ts = [ (-1,-1), (-1,-1), (-1,-1), (3,3), (3,3), (3,3), (4,1), (4,5), (4,20), (10,100), (10,100), (10,100), (20,100), (26,100), (26,100), (26,100), (10, 'rev'), (26, 'rev'), ] for i, (n,k) in enumerate(ts): if n == -1: c...
19.678571
97
0.354809
8dcf5116369d46ca233cfa14fb7fe1e12f94c967
2,525
py
Python
convert.py
spookyahell/aax-to-audio-python
fe68c2d96e7550453f94b39c354e05b846fe2ce0
[ "MIT" ]
null
null
null
convert.py
spookyahell/aax-to-audio-python
fe68c2d96e7550453f94b39c354e05b846fe2ce0
[ "MIT" ]
null
null
null
convert.py
spookyahell/aax-to-audio-python
fe68c2d96e7550453f94b39c354e05b846fe2ce0
[ "MIT" ]
null
null
null
import argparse import json import os import re import shutil import subprocess from pathlib import Path """ See https://wphelp365.com/blog/ultimate-guide-downloading-converting-aax-mp3/ on how to use. Step 3 + 4 will get activation bytes. Example: python convert.py -i "The Tower of the Swallow.aax" -a xxxxxx where...
30.792683
85
0.608713
8dd05a0d491e4b246ec3227dbeb967e20dd2dced
832
py
Python
sponge-integration-tests/examples/core/unordered_rules_instances.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
9
2017-12-16T21:48:57.000Z
2022-01-06T12:22:24.000Z
sponge-integration-tests/examples/core/unordered_rules_instances.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
3
2020-12-18T11:56:46.000Z
2022-03-31T18:37:10.000Z
sponge-integration-tests/examples/core/unordered_rules_instances.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
2
2019-12-29T16:08:32.000Z
2020-06-15T14:05:34.000Z
""" Sponge Knowledge Base Unordered rules - instances """ from java.util.concurrent.atomic import AtomicInteger def onStartup(): for i in range(sponge.getVariable("max")): sponge.event("a").send() sponge.event("b").send()
27.733333
61
0.640625
8dd0f361bfe1930b80f5a05ebb1ad72470a7a813
657
py
Python
django/AIST_survey/tests/test_choice_model.py
aistairc/voteclustering_aist
f1ee7409698a05a99ce40cdccbe4c2b1f8f81b4c
[ "MIT" ]
null
null
null
django/AIST_survey/tests/test_choice_model.py
aistairc/voteclustering_aist
f1ee7409698a05a99ce40cdccbe4c2b1f8f81b4c
[ "MIT" ]
null
null
null
django/AIST_survey/tests/test_choice_model.py
aistairc/voteclustering_aist
f1ee7409698a05a99ce40cdccbe4c2b1f8f81b4c
[ "MIT" ]
null
null
null
from django.test import TestCase from AIST_survey.models import Choice from .test_question_model import QuestionModelTests
25.269231
64
0.687976