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
0da06da4a9f43226acb2912e15cb685099ae3f01
1,075
py
Python
h2o-bindings/bin/custom/R/gen_rulefit.py
subhash0x/h2o-3
b9e46003d5d546ab231b215beab08cec75be86b0
[ "Apache-2.0" ]
null
null
null
h2o-bindings/bin/custom/R/gen_rulefit.py
subhash0x/h2o-3
b9e46003d5d546ab231b215beab08cec75be86b0
[ "Apache-2.0" ]
null
null
null
h2o-bindings/bin/custom/R/gen_rulefit.py
subhash0x/h2o-3
b9e46003d5d546ab231b215beab08cec75be86b0
[ "Apache-2.0" ]
null
null
null
extensions = dict( extensions = dict( validate_params=""" # Required maps for different names params, including deprecated params .gbm.map <- c("x" = "ignored_columns", "y" = "response_column") """ ), set_required_params=""" parms$training_frame <- training_frame args <- .verify_dataxy...
28.289474
93
0.688372
0da15f409411673cc5bb5b14dc4de318260a890e
1,788
py
Python
torchimage/random.py
miaotianyi/torchimage
8b209c7da087bc18fd78dc0013c671e21a338f38
[ "MIT" ]
10
2021-04-22T08:15:49.000Z
2022-03-19T01:28:06.000Z
torchimage/random.py
miaotianyi/torchimage
8b209c7da087bc18fd78dc0013c671e21a338f38
[ "MIT" ]
null
null
null
torchimage/random.py
miaotianyi/torchimage
8b209c7da087bc18fd78dc0013c671e21a338f38
[ "MIT" ]
null
null
null
import torch from .utils import NdSpec from .utils.validation import check_axes def add_poisson_gauss_noise(x: torch.Tensor, k, sigma, *, generator: torch.Generator = None) -> torch.Tensor: """ Add Poisson-Gaussian noise to a tensor. Parameters ---------- x : torch.Tensor Input tensor. ...
29.311475
109
0.644295
0da1f2772727d2da5ec5d537da5d7526f0a0bfca
523
py
Python
tests/test_core.py
bofm/libextract
9cf9d55c7f8cd622eab0a50f009385f0a39b1200
[ "MIT" ]
502
2015-04-18T18:11:07.000Z
2022-03-04T20:10:11.000Z
tests/test_core.py
bofm/libextract
9cf9d55c7f8cd622eab0a50f009385f0a39b1200
[ "MIT" ]
18
2015-04-06T12:21:14.000Z
2015-04-14T03:53:39.000Z
tests/test_core.py
bofm/libextract
9cf9d55c7f8cd622eab0a50f009385f0a39b1200
[ "MIT" ]
45
2015-04-15T13:31:38.000Z
2021-05-19T09:37:23.000Z
from .fixtures import foo_file from libextract.core import parse_html, pipeline
21.791667
50
0.59847
0da491b9962ecdc77815ce0f838f8cd5faab7f6a
5,868
py
Python
retrieve_by_jersey_number_app.py
shivaprasadm26/JerseyNumberDetectionTF20
64f8bd63fafb37c1bf2a6054ffba44670b44bb79
[ "MIT" ]
1
2022-01-02T02:33:54.000Z
2022-01-02T02:33:54.000Z
retrieve_by_jersey_number_app.py
shivaprasadm26/JerseyNumberDetectionTF20
64f8bd63fafb37c1bf2a6054ffba44670b44bb79
[ "MIT" ]
null
null
null
retrieve_by_jersey_number_app.py
shivaprasadm26/JerseyNumberDetectionTF20
64f8bd63fafb37c1bf2a6054ffba44670b44bb79
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jun 21 14:36:56 2020 @author: user """ import glob import os import pickle import shutil import time from flask import request from flask import Flask import argparse import os import glob from predict_jersey_number import detect_person_jersey_no, load_objdetection, load_n...
38.860927
171
0.676721
0da6996eb6527e0c2b453ab7c5236849422a1e74
224
py
Python
test/BeautifulSoupTest/BeautifulSoupTest.py
upa8/Stock-Market-Analyser
bfd8661de343d053d1a772cc375d7227963b9c66
[ "Apache-2.0" ]
1
2016-12-06T08:27:08.000Z
2016-12-06T08:27:08.000Z
test/BeautifulSoupTest/BeautifulSoupTest.py
upa8/Stock-Market-Analyser
bfd8661de343d053d1a772cc375d7227963b9c66
[ "Apache-2.0" ]
null
null
null
test/BeautifulSoupTest/BeautifulSoupTest.py
upa8/Stock-Market-Analyser
bfd8661de343d053d1a772cc375d7227963b9c66
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup import requests url = "https://www.nseindia.com/live_market/dynaContent/live_analysis/gainers/niftyGainers1.json" r = requests.get(url) data = r.text soup = BeautifulSoup(data) print soup
17.230769
97
0.78125
0da6f261d225a4fe131215b85716b0dbdbf69ac9
382
py
Python
aether-ui/aether/ui/api/migrations/0002_remove_usertokens_odk_token.py
lordmallam/aether
7ceb71d2ef8b09d704d94dfcb243dbbdf8356135
[ "Apache-2.0" ]
14
2018-08-09T20:57:16.000Z
2020-10-11T12:22:18.000Z
aether-ui/aether/ui/api/migrations/0002_remove_usertokens_odk_token.py
lordmallam/aether
7ceb71d2ef8b09d704d94dfcb243dbbdf8356135
[ "Apache-2.0" ]
148
2018-07-24T10:52:29.000Z
2022-02-10T09:06:44.000Z
aether-ui/aether/ui/api/migrations/0002_remove_usertokens_odk_token.py
lordmallam/aether
7ceb71d2ef8b09d704d94dfcb243dbbdf8356135
[ "Apache-2.0" ]
6
2018-07-25T13:33:10.000Z
2019-09-23T03:02:09.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-04-05 15:46 from __future__ import unicode_literals from django.db import migrations
19.1
46
0.604712
0da876d446bc61ffb3488ca44081d936ae371044
422
py
Python
home/models.py
sapiendraft/superburguerDEMO
a2bfd8bc2e0c8025750ff428782165751684faab
[ "Apache-2.0" ]
null
null
null
home/models.py
sapiendraft/superburguerDEMO
a2bfd8bc2e0c8025750ff428782165751684faab
[ "Apache-2.0" ]
1
2022-01-21T22:40:44.000Z
2022-01-21T22:40:44.000Z
home/models.py
sapiendraft/superburguerDEMO
a2bfd8bc2e0c8025750ff428782165751684faab
[ "Apache-2.0" ]
null
null
null
from django.db import models # main page posts
30.142857
53
0.739336
0da8d51887cededd42699ffaa6e25ac8a8fcd250
1,929
py
Python
pyembroidery/EmbThreadHus.py
mrjohnmain/pyembroidery
3acaa543e3ffaad67f83092ab3151fce87c76ec4
[ "MIT" ]
null
null
null
pyembroidery/EmbThreadHus.py
mrjohnmain/pyembroidery
3acaa543e3ffaad67f83092ab3151fce87c76ec4
[ "MIT" ]
null
null
null
pyembroidery/EmbThreadHus.py
mrjohnmain/pyembroidery
3acaa543e3ffaad67f83092ab3151fce87c76ec4
[ "MIT" ]
null
null
null
from .EmbThread import EmbThread
41.042553
65
0.554692
0dab71e44d19e1a5e77798e515a3353c6d5c4b65
25,479
py
Python
sdk/python/pulumi_sumologic/scheduled_view.py
pulumi/pulumi-sumologic
962fa056ee4b96e61a200e7bf2308bfad723c3af
[ "ECL-2.0", "Apache-2.0" ]
1
2021-10-13T03:50:41.000Z
2021-10-13T03:50:41.000Z
sdk/python/pulumi_sumologic/scheduled_view.py
pulumi/pulumi-sumologic
962fa056ee4b96e61a200e7bf2308bfad723c3af
[ "ECL-2.0", "Apache-2.0" ]
28
2021-05-21T11:00:45.000Z
2022-03-31T15:47:13.000Z
sdk/python/pulumi_sumologic/scheduled_view.py
pulumi/pulumi-sumologic
962fa056ee4b96e61a200e7bf2308bfad723c3af
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
56.245033
514
0.692296
0dad414d72c7d15d58e68ccf54a951a9d79b23c9
1,140
py
Python
scylla/worker.py
gillbates/scylla
88b999eb60504c23041a56b343c6a021d778538d
[ "Apache-2.0" ]
null
null
null
scylla/worker.py
gillbates/scylla
88b999eb60504c23041a56b343c6a021d778538d
[ "Apache-2.0" ]
null
null
null
scylla/worker.py
gillbates/scylla
88b999eb60504c23041a56b343c6a021d778538d
[ "Apache-2.0" ]
null
null
null
from typing import Union import requests from requests_html import HTMLSession, HTMLResponse, HTML from scylla.loggings import logger
26.511628
78
0.581579
0dae84818582972a573cb9582067de8c07197bac
852
py
Python
tests/setup_scripts/rerun_prep.py
yardencsGitHub/vak
04da97b02ded5acccab437c2538d0a1ded3bef80
[ "BSD-3-Clause" ]
1
2021-04-27T01:22:38.000Z
2021-04-27T01:22:38.000Z
tests/setup_scripts/rerun_prep.py
yardencsGitHub/vak
04da97b02ded5acccab437c2538d0a1ded3bef80
[ "BSD-3-Clause" ]
null
null
null
tests/setup_scripts/rerun_prep.py
yardencsGitHub/vak
04da97b02ded5acccab437c2538d0a1ded3bef80
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path import shutil import vak HERE = Path(__file__).parent # convention is that all the config.ini files in setup_scripts/ that should be # run when setting up for development have filenames of the form `setup_*_config.ini' # e.g., 'setup_learncurve_config.ini' PREP_CONFIGS_TO_RUN = HERE.glob('set...
29.37931
85
0.700704
0daf09f9bf36528566ecad4f419efb5d2a980b42
1,810
py
Python
fic_modules/GITMethods.py
Mozilla-GitHub-Standards/4b07a4dfd4387a472231fb57efcde670c9dbb490fb838c59ecfdd33a55e01e42
d891077a9218444d3948d3c8290e59924d578f99
[ "MIT" ]
null
null
null
fic_modules/GITMethods.py
Mozilla-GitHub-Standards/4b07a4dfd4387a472231fb57efcde670c9dbb490fb838c59ecfdd33a55e01e42
d891077a9218444d3948d3c8290e59924d578f99
[ "MIT" ]
null
null
null
fic_modules/GITMethods.py
Mozilla-GitHub-Standards/4b07a4dfd4387a472231fb57efcde670c9dbb490fb838c59ecfdd33a55e01e42
d891077a9218444d3948d3c8290e59924d578f99
[ "MIT" ]
null
null
null
from git import Repo
36.938776
97
0.587293
0db00d04dd0863321e2100daed1c947150d4bdc1
614
py
Python
utils.py
shehryar37/mod-activity-bot
a35f0d94ce198d1191cda4437c8400e1fbfeafdf
[ "Apache-2.0" ]
null
null
null
utils.py
shehryar37/mod-activity-bot
a35f0d94ce198d1191cda4437c8400e1fbfeafdf
[ "Apache-2.0" ]
null
null
null
utils.py
shehryar37/mod-activity-bot
a35f0d94ce198d1191cda4437c8400e1fbfeafdf
[ "Apache-2.0" ]
null
null
null
import praw import os channel_ids = [742799267294609448] # add 743486931836338267
25.583333
71
0.52443
0db27a58d33995cf4b7f72d8f930a14784bafea3
1,172
py
Python
code/emojify.py
namaannn/Emoji-with-Deep-Learning
a40c78361663245194c043b485b0f20561559f99
[ "Apache-2.0" ]
null
null
null
code/emojify.py
namaannn/Emoji-with-Deep-Learning
a40c78361663245194c043b485b0f20561559f99
[ "Apache-2.0" ]
null
null
null
code/emojify.py
namaannn/Emoji-with-Deep-Learning
a40c78361663245194c043b485b0f20561559f99
[ "Apache-2.0" ]
null
null
null
import cv2 as cv import numpy as np from tensorflow.keras.models import load_model model=load_model('facial.h5') cv.ocl.setUseOpenCL(False) dic={0:"Angry",1:"Disgusted",2:"Fearful",3:"Happy",4:"Neutral",5:"Sad",6:"Surprised"} cap=cv.VideoCapture(0) while True: ret,frame=cap.read() if not ret: ...
45.076923
130
0.673208
0db309f3af7765ae96862762b146d97c7d0b4df5
24,060
py
Python
mmdet/models/heads/ppyoloe_head.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
65
2021-12-30T03:30:52.000Z
2022-03-25T01:44:32.000Z
mmdet/models/heads/ppyoloe_head.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
1
2021-12-31T01:51:35.000Z
2022-01-01T14:42:37.000Z
mmdet/models/heads/ppyoloe_head.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
7
2021-12-31T09:25:06.000Z
2022-03-10T01:25:09.000Z
# Copyright (c) 2022 PaddlePaddle 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 # # Unless required by appli...
44.555556
98
0.602037
0db35958e78ad7e7170322d7f64f1fbd5c07a1be
10,800
py
Python
guipyg/gui.py
neccarus/Gui-Pyg
e69eb9e7f75b67b0cb70f211e5b3e602a920502b
[ "BSD-3-Clause" ]
null
null
null
guipyg/gui.py
neccarus/Gui-Pyg
e69eb9e7f75b67b0cb70f211e5b3e602a920502b
[ "BSD-3-Clause" ]
null
null
null
guipyg/gui.py
neccarus/Gui-Pyg
e69eb9e7f75b67b0cb70f211e5b3e602a920502b
[ "BSD-3-Clause" ]
null
null
null
import pygame import json from json import JSONEncoder from .gui_element.button import Button from .gui_element.element import Element from .gui_element.toggleable_element import ToggleableElement from .gui_element.popup import Popup from .gui_element.element_group import ElementGroup from .gui_element.text_ele...
39.130435
147
0.604074
0db43653000af9adcec19e6e0656f6027aeb666c
333
py
Python
tests/stores.py
meghabhoj/NEWBAZAAR
cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/stores.py
meghabhoj/NEWBAZAAR
cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/stores.py
meghabhoj/NEWBAZAAR
cb1405dcb2c8b4812ddf724d5a3c07b2f77c1b34
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals from bazaar.listings.stores.strategies import DefaultStoreStrategy
22.2
66
0.777778
0db5195b0ce02f6398c37148c78ebf844f6bb86f
2,918
py
Python
src/stratis_cli/_errors.py
mulkieran/stratis-cli
c5731f98f9b427ccecb16ba8866636ab5c5d847d
[ "Apache-2.0" ]
null
null
null
src/stratis_cli/_errors.py
mulkieran/stratis-cli
c5731f98f9b427ccecb16ba8866636ab5c5d847d
[ "Apache-2.0" ]
null
null
null
src/stratis_cli/_errors.py
mulkieran/stratis-cli
c5731f98f9b427ccecb16ba8866636ab5c5d847d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
29.474747
77
0.6573
0db5b2837cd73476280980cdc40f9d974e4b24bd
1,645
py
Python
bin/interactive.py
dianaspencer/multiagent-particle-envs
3e0dc8c525c4a2f898e89b87b0a036c4a96bc8cb
[ "MIT" ]
null
null
null
bin/interactive.py
dianaspencer/multiagent-particle-envs
3e0dc8c525c4a2f898e89b87b0a036c4a96bc8cb
[ "MIT" ]
null
null
null
bin/interactive.py
dianaspencer/multiagent-particle-envs
3e0dc8c525c4a2f898e89b87b0a036c4a96bc8cb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import os import sys sys.path.insert(1, os.path.join(sys.path[0], '..')) import multiagent.scenarios as scenarios from multiagent.environment import MultiAgentEnv from multiagent.policy import InteractivePolicy if __name__ == '__main__': parser = argparse.ArgumentParser(des...
29.909091
108
0.672948
0db74252debf6e64e108a23cdf2eb6b8ae993a41
2,456
py
Python
meteortracker/serverside/triangulate_events.py
heidtn/MeteorTracker
d0cfe5c34568c9d5ce42f0d9d6e3d63cf96b02a2
[ "MIT" ]
11
2016-06-24T23:31:57.000Z
2021-09-08T14:23:00.000Z
meteortracker/serverside/triangulate_events.py
heidtn/MeteorTracker
d0cfe5c34568c9d5ce42f0d9d6e3d63cf96b02a2
[ "MIT" ]
1
2016-06-25T18:53:55.000Z
2016-06-26T00:23:43.000Z
meteortracker/serverside/triangulate_events.py
heidtn/MeteorTracker
d0cfe5c34568c9d5ce42f0d9d6e3d63cf96b02a2
[ "MIT" ]
1
2016-06-25T08:26:31.000Z
2016-06-25T08:26:31.000Z
import numpy as np import sys sys.path.append('../') import events import vector_calcs import find_events from itertools import combinations """ @author(s): Nathan Heidt This handles single and multiview triangulation of events TODO: - CHANGELOG: - """ def average_ray(evts1, evts2): """ Giv...
26.695652
99
0.631515
0db8e367adf74db3975b54efc018e7078d8335d1
21,311
py
Python
src/systemtest/op-monitoring/xrd-opmon-tests/testcases/test_simple_store_and_query.py
digitaliceland/X-Road
3f4ec6ebd09681629d375a43edfa2f7ea0500ed2
[ "MIT" ]
436
2018-06-02T12:42:25.000Z
2022-03-31T13:51:16.000Z
src/systemtest/op-monitoring/xrd-opmon-tests/testcases/test_simple_store_and_query.py
digitaliceland/X-Road
3f4ec6ebd09681629d375a43edfa2f7ea0500ed2
[ "MIT" ]
355
2018-06-28T13:59:46.000Z
2022-03-09T12:47:14.000Z
src/systemtest/op-monitoring/xrd-opmon-tests/testcases/test_simple_store_and_query.py
digitaliceland/X-Road
3f4ec6ebd09681629d375a43edfa2f7ea0500ed2
[ "MIT" ]
155
2018-06-24T17:58:23.000Z
2022-03-22T01:25:14.000Z
#!/usr/bin/env python3 # The MIT License # Copyright (c) 2016 Estonian Information System Authority (RIA), Population Register Centre (VRK) # # 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 ...
45.246285
98
0.733283
0dbac5a99ba857cadb23977c772610258d8a683e
452
py
Python
djangocms_rest_api/urls.py
wearehoods/djangocms-rest-api
7ac95b683e24bfdb61a2a2d73c9d018a190d51f8
[ "MIT" ]
55
2016-08-04T19:08:01.000Z
2020-07-27T06:43:35.000Z
djangocms_rest_api/urls.py
wearehoods/djangocms-rest-api
7ac95b683e24bfdb61a2a2d73c9d018a190d51f8
[ "MIT" ]
14
2016-10-03T19:44:19.000Z
2019-01-17T13:18:24.000Z
djangocms_rest_api/urls.py
wearehoods/djangocms-rest-api
7ac95b683e24bfdb61a2a2d73c9d018a190d51f8
[ "MIT" ]
18
2016-09-30T03:20:43.000Z
2021-03-03T07:20:01.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals from rest_framework.routers import DefaultRouter from djangocms_rest_api.views import PageViewSet, PlaceHolderViewSet, PluginViewSet router = DefaultRouter() router.register(r'pages', PageViewSet, 'page') router.register...
34.769231
83
0.809735
0dbb5ba21f168ccee678474be80bf54efdfe9cda
1,130
py
Python
tasks.py
WasabiFan/pyright-ui-test-poc
2c9b5220f6fb469d35383a99b692074a4d58ca6c
[ "MIT" ]
1
2021-08-24T03:36:25.000Z
2021-08-24T03:36:25.000Z
tasks.py
WasabiFan/pyright-ui-test-poc
2c9b5220f6fb469d35383a99b692074a4d58ca6c
[ "MIT" ]
null
null
null
tasks.py
WasabiFan/pyright-ui-test-poc
2c9b5220f6fb469d35383a99b692074a4d58ca6c
[ "MIT" ]
null
null
null
""" Tasks to be invoked via "poetry run". Any task added here must also be specified as a "script" in pyproject.toml. """ import os import subprocess import sys from typing import List, Union repo_root = os.path.dirname(__file__) # alternately, separate "test" tasks for "ui tests" and "non ui tests" # def test()...
20.178571
96
0.641593
0dbc3224340c0d1375e8b28e1e9819ae6bd24084
731
py
Python
scripts/old/filter_by_filter_presence.py
tomarovsky/MACE
eccc050820f4bb9e483d2592e485ee372ac9453b
[ "Apache-2.0" ]
null
null
null
scripts/old/filter_by_filter_presence.py
tomarovsky/MACE
eccc050820f4bb9e483d2592e485ee372ac9453b
[ "Apache-2.0" ]
null
null
null
scripts/old/filter_by_filter_presence.py
tomarovsky/MACE
eccc050820f4bb9e483d2592e485ee372ac9453b
[ "Apache-2.0" ]
8
2018-05-17T05:00:11.000Z
2022-03-06T04:08:24.000Z
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import argparse from MACE.Parsers.VCF import CollectionVCF parser = argparse.ArgumentParser() parser.add_argument("-i", "--input", action="store", dest="input", required=True, help="Input vcf file with variants") parser.add_argument("-o", "--o...
34.809524
97
0.72777
0dbd78b43d77e2f637add4aadedc2dd45ad3b56e
1,227
py
Python
tests/test_analyzer.py
skantar-modoolar/githubrepo
7a5954dc6383a3c3219bc75c009dde1b2422ec29
[ "MIT" ]
31
2018-02-23T20:14:40.000Z
2022-02-13T09:39:41.000Z
tests/test_analyzer.py
skantar-modoolar/githubrepo
7a5954dc6383a3c3219bc75c009dde1b2422ec29
[ "MIT" ]
null
null
null
tests/test_analyzer.py
skantar-modoolar/githubrepo
7a5954dc6383a3c3219bc75c009dde1b2422ec29
[ "MIT" ]
12
2017-12-24T22:31:16.000Z
2022-01-27T13:49:43.000Z
import unittest
25.5625
75
0.416463
0dbf5574312608332f8313f03b50dab922a2211e
2,176
py
Python
pdxpython/ast/php2python.py
dcolish/Presentations
50697a3f26405a916eab481b8749cfef2fa23d4b
[ "BSD-3-Clause" ]
2
2016-02-28T09:24:58.000Z
2019-10-22T03:38:18.000Z
pdxpython/ast/php2python.py
dcolish/Presentations
50697a3f26405a916eab481b8749cfef2fa23d4b
[ "BSD-3-Clause" ]
null
null
null
pdxpython/ast/php2python.py
dcolish/Presentations
50697a3f26405a916eab481b8749cfef2fa23d4b
[ "BSD-3-Clause" ]
1
2018-08-17T01:28:58.000Z
2018-08-17T01:28:58.000Z
import ast from ast import Assign, Load, Module, Name, Print, Store node_map = { 'Assignment': dict(pynode='Assign', mappers={'targets': 'node', 'value': 'expr'}, types={'left': 'list'}, args={'ctx': ast.Store(lineno=0, col_offset=0)}), 'Ech...
31.085714
77
0.517463
0dc0056efdee9b1d1bd0f350e44c040b3529806f
8,178
py
Python
ali1688shopeehtmlparse.py
zdlgithub/Ali1688Scraper
0dc183eca536417bf970a7126d7fc03e90890e16
[ "Apache-2.0" ]
null
null
null
ali1688shopeehtmlparse.py
zdlgithub/Ali1688Scraper
0dc183eca536417bf970a7126d7fc03e90890e16
[ "Apache-2.0" ]
null
null
null
ali1688shopeehtmlparse.py
zdlgithub/Ali1688Scraper
0dc183eca536417bf970a7126d7fc03e90890e16
[ "Apache-2.0" ]
null
null
null
import settings from ali1688scraperbrowser import ScraperBrowser from bs4 import BeautifulSoup import datetime from functools import reduce import re
37.172727
112
0.514796
0dc06fc3dbe0b9ac91b605cf4ba54edd77f86c7d
2,454
py
Python
misc_utils/scripts/combined/combine_datasets.py
shiningsunnyday/ssd_keras
3a2ea0ceaa676f59b1787ad5f5e8337520c7c056
[ "Apache-2.0" ]
null
null
null
misc_utils/scripts/combined/combine_datasets.py
shiningsunnyday/ssd_keras
3a2ea0ceaa676f59b1787ad5f5e8337520c7c056
[ "Apache-2.0" ]
null
null
null
misc_utils/scripts/combined/combine_datasets.py
shiningsunnyday/ssd_keras
3a2ea0ceaa676f59b1787ad5f5e8337520c7c056
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np belga_train_path = '../../../../datasets/belgas/belgas_relabelled.csv' logos_train_path = '../../../../datasets/LogosInTheWild-v2/LogosClean/commonformat/ImageSets/logos_top_train.csv' flickr_train_path = '../../../../datasets/FlickrLogos_47/flickr_train_labels.csv' belga_t...
70.114286
137
0.757539
0dc0ab3941d2a0577ef9dd19f4ae678cbe8b2aa3
7,327
py
Python
package/cudamat/cudamat_conv.py
Corvalius/deepnet
5ff6726ae64c248283b9038a0023983bd209a7b0
[ "BSD-3-Clause" ]
1
2018-04-02T08:59:56.000Z
2018-04-02T08:59:56.000Z
package/cudamat/cudamat_conv.py
Corvalius/deepnet
5ff6726ae64c248283b9038a0023983bd209a7b0
[ "BSD-3-Clause" ]
null
null
null
package/cudamat/cudamat_conv.py
Corvalius/deepnet
5ff6726ae64c248283b9038a0023983bd209a7b0
[ "BSD-3-Clause" ]
null
null
null
import ctypes as ct import math import pdb import platform if platform.system() == 'Windows': _ConvNet = ct.cdll.LoadLibrary('libcudamat_conv.dll') else: _ConvNet = ct.cdll.LoadLibrary('libcudamat_conv.so') def convUp(images, filters, targets, numModulesX, paddingStart, moduleStride, numImgColors, numGroups=1...
39.181818
184
0.711888
0dc3b4808b6cd53b143bd55fb5ab0282f1755cf6
292
py
Python
web/django/users/views.py
codpro880/heartspeed
8027216fe3c3bb0bd702c823b876dfa42c91ce7a
[ "MIT" ]
3
2019-04-28T16:01:38.000Z
2020-12-06T02:39:03.000Z
web/django/users/views.py
codpro880/heartspeed
8027216fe3c3bb0bd702c823b876dfa42c91ce7a
[ "MIT" ]
12
2020-12-06T05:30:02.000Z
2021-04-27T00:18:13.000Z
web/django/users/views.py
codpro880/heartspeed
8027216fe3c3bb0bd702c823b876dfa42c91ce7a
[ "MIT" ]
null
null
null
from django.http import HttpRequest, HttpResponse from django.shortcuts import render
32.444444
67
0.746575
0dc3ca7f4bf0bc9234f64614f8a96483cdf2160f
10,579
py
Python
patchy/core.py
arogazinsky/django-more
2eb309b383b1c5b001a0596f0f3ecf2c6910a821
[ "BSD-3-Clause" ]
32
2017-10-19T10:38:14.000Z
2021-11-30T22:31:39.000Z
patchy/core.py
OakNorthAI/django-more
627448bb280674370d088ceb26bcbb0994665d79
[ "BSD-3-Clause" ]
6
2017-10-25T14:21:53.000Z
2020-09-17T07:02:34.000Z
patchy/core.py
OakNorthAI/django-more
627448bb280674370d088ceb26bcbb0994665d79
[ "BSD-3-Clause" ]
7
2017-12-29T03:18:59.000Z
2020-09-16T11:52:38.000Z
""" Generic monkey patching functions for doing it (mostly) safely """ import logging import inspect from types import MethodType, ModuleType from collections import abc from importlib import import_module from importlib.util import resolve_name from contextlib import suppress __all__ = ['patchy', 'super_patchy'] lo...
37.647687
112
0.614519
0dc4f9d36773ff6ca62f3b1a523b2733e0acae36
569
py
Python
loop-nests/graph-processing/bfs-pull/util/stats_parser.py
NVlabs/data-orchestration
ad86e65fbd99bb7670700cab7c7031bf232c831f
[ "BSD-3-Clause" ]
5
2019-04-13T02:00:35.000Z
2019-07-22T18:23:25.000Z
loop-nests/graph-processing/bfs-pull/util/stats_parser.py
NVlabs/data-orchestration
ad86e65fbd99bb7670700cab7c7031bf232c831f
[ "BSD-3-Clause" ]
null
null
null
loop-nests/graph-processing/bfs-pull/util/stats_parser.py
NVlabs/data-orchestration
ad86e65fbd99bb7670700cab7c7031bf232c831f
[ "BSD-3-Clause" ]
2
2019-06-23T18:14:21.000Z
2019-12-29T02:34:33.000Z
import sys import os import numpy as np import helper fname = sys.argv[1] stats = ['parent', 'frontier', 'TileInOffsets', 'TileSources', 'Totals'] stypes = ['Tensor', 'Offchip'] data = {} # collect data for stat in stats: data[stat] = {} for stype in stypes: data[stat][stype] = helper.getData(fname...
19.62069
73
0.525483
0dc665111b39744549e1fb53ae5f7e841e340385
369
py
Python
siswa/urls.py
nelsonpythondev/crud-using-widget-tweaks
eb9722e890540a2703068a101546527c7c667db5
[ "MIT" ]
null
null
null
siswa/urls.py
nelsonpythondev/crud-using-widget-tweaks
eb9722e890540a2703068a101546527c7c667db5
[ "MIT" ]
null
null
null
siswa/urls.py
nelsonpythondev/crud-using-widget-tweaks
eb9722e890540a2703068a101546527c7c667db5
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name="home"), path('listsiswa', views.siswa_view, name="list-siswa"), path('addsiswa', views.add_siswa, name="add-siswa"), path('editsiswa/<int:id>', views.edit_siswa, name="edit-siswa"), path('deletesiswa/<int:i...
33.545455
74
0.674797
0dc67cec6d004a4498776bf6383786b9d8123e1d
3,909
py
Python
name_sub.py
user2589/10707-project
adf1b05e15a3bbc2e7dd8940a2a2bba9e72b5ada
[ "Apache-2.0" ]
null
null
null
name_sub.py
user2589/10707-project
adf1b05e15a3bbc2e7dd8940a2a2bba9e72b5ada
[ "Apache-2.0" ]
null
null
null
name_sub.py
user2589/10707-project
adf1b05e15a3bbc2e7dd8940a2a2bba9e72b5ada
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 import argparse import logging import os import numpy as np import pandas as pd import string PRONOUN2GENDER = { 'he': 'male', 'him': 'male', 'his': 'male', 'she': 'female', 'her': 'female', 'hers': 'female'} GENDER2NAME = { 'female': ( ('Mary', 'Alice'), ...
31.02381
91
0.507291
0dc6e7bdb0da5bb1eda25e86d04aeac07af2edc1
185
py
Python
examples/rampup.py
druck13/blinkt
4370a64cbd4cf7d6177967b902f16793a4c5fa60
[ "MIT" ]
null
null
null
examples/rampup.py
druck13/blinkt
4370a64cbd4cf7d6177967b902f16793a4c5fa60
[ "MIT" ]
null
null
null
examples/rampup.py
druck13/blinkt
4370a64cbd4cf7d6177967b902f16793a4c5fa60
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from time import sleep import blinkt for i in range(256): blinkt.set_all(i, i, i) sys.stdout.write("%3d" % i) blinkt.show() sleep(0.1)
16.818182
31
0.643243
0dc81185812bd2a578f8d6217d7f878061f816f2
732
py
Python
django_fixtures/decorators.py
retxxxirt/django-fixtures
8a8d3c1ac49291716c02efe56ed0b9697b93370c
[ "MIT" ]
null
null
null
django_fixtures/decorators.py
retxxxirt/django-fixtures
8a8d3c1ac49291716c02efe56ed0b9697b93370c
[ "MIT" ]
null
null
null
django_fixtures/decorators.py
retxxxirt/django-fixtures
8a8d3c1ac49291716c02efe56ed0b9697b93370c
[ "MIT" ]
null
null
null
from typing import Callable from .utilities import get_fixture
31.826087
93
0.654372
0dce53a767ed3bfb1d9e58bb58279706fd6813fa
378
py
Python
bot/config.py
famaxth/Russian-Bot-Shop
0fc1f55878b867e20489bfd115ed0148bd6238e8
[ "MIT" ]
13
2021-06-02T09:48:23.000Z
2022-03-28T22:13:02.000Z
bot/config.py
famaxth/Russian-Bot-Shop
0fc1f55878b867e20489bfd115ed0148bd6238e8
[ "MIT" ]
1
2020-12-12T00:31:33.000Z
2020-12-12T00:31:33.000Z
bot/config.py
famaxth/Russian-Bot-Shop
0fc1f55878b867e20489bfd115ed0148bd6238e8
[ "MIT" ]
5
2021-06-23T07:00:46.000Z
2021-12-20T11:25:49.000Z
name = "text" # token = "text" # admin_id = 777777777 # ID channel = "@text" # op = "@text" # token_qiwi = "text" qiwi = "number" # Qiwi bitcoin = "text" # logo_stick = "text" # secret_code = "text" # buyer1 = 777777777
31.5
46
0.674603
0dcfc9d940cb87b3c927e8703caf4aa8cf22b376
725
py
Python
SparkPythonCourse/word-count-dataframe.py
leodias-datascience/apache-spark
faecd0e5910b4e780abb7db4e94f83a409e03e34
[ "Apache-2.0" ]
null
null
null
SparkPythonCourse/word-count-dataframe.py
leodias-datascience/apache-spark
faecd0e5910b4e780abb7db4e94f83a409e03e34
[ "Apache-2.0" ]
null
null
null
SparkPythonCourse/word-count-dataframe.py
leodias-datascience/apache-spark
faecd0e5910b4e780abb7db4e94f83a409e03e34
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 27 10:13:22 2021 @author: LeonardoDiasdaRosa """ from pyspark.sql import SparkSession from pyspark.sql import functions as func ## Data DATA_PATH = '../data/' FILE = "book.txt" data = DATA_PATH + FILE # Create a SparkSession spark = SparkSession.builder.appName("WordC...
23.387097
85
0.726897
0dd0991a96f1b462421439b00656979004b9d577
2,606
py
Python
app/tableScraper.py
nyatla/PdfExtractKit
541cf5a381f5ff0c96e386e1d1cc0fc552ac6845
[ "MIT" ]
null
null
null
app/tableScraper.py
nyatla/PdfExtractKit
541cf5a381f5ff0c96e386e1d1cc0fc552ac6845
[ "MIT" ]
null
null
null
app/tableScraper.py
nyatla/PdfExtractKit
541cf5a381f5ff0c96e386e1d1cc0fc552ac6845
[ "MIT" ]
null
null
null
#!/bin/python3 """ pdfjson # python3 table.pdf -o out.json json [ {page:int,data:[parsed tables]},... ] 1 """ #%% from datetime import date from tqdm import tqdm from logging import addLevelName import os,sys sys.path.append(os.path.join(os.path.dirname("__file__"), '..')) from ty...
35.216216
164
0.693784
0dd18628c57f70a1b34391c7c3b1e07d45c77aea
1,795
py
Python
sqlite.py
Ben-Ning/webhook_demo
4a07f83df7e4d7788656582f68358aab4e30e3a1
[ "Apache-2.0" ]
null
null
null
sqlite.py
Ben-Ning/webhook_demo
4a07f83df7e4d7788656582f68358aab4e30e3a1
[ "Apache-2.0" ]
null
null
null
sqlite.py
Ben-Ning/webhook_demo
4a07f83df7e4d7788656582f68358aab4e30e3a1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2016-2020 # Chenglin Ning, chenglinning@gmain.com import logging from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import scoped_session from sqlalchemy import create_engine from sqlalchemy import exc from sqlalchemy import event from sqlalchemy.pool import Pool from s...
28.951613
75
0.69415
0dd2369e794daf26a5b02e83b43c9d84e97be11a
2,909
py
Python
calibrate_cam.py
EsbernTK/first-order-model
35117e1bb8ad72f9de134e0167defd6c381dcc5d
[ "MIT" ]
null
null
null
calibrate_cam.py
EsbernTK/first-order-model
35117e1bb8ad72f9de134e0167defd6c381dcc5d
[ "MIT" ]
null
null
null
calibrate_cam.py
EsbernTK/first-order-model
35117e1bb8ad72f9de134e0167defd6c381dcc5d
[ "MIT" ]
null
null
null
import cv2 from skimage.transform import resize import os from demo import key_pressed if __name__ == '__main__': frame_dim = 256 vid = cv2.VideoCapture(0) width = 1920 height = 1080 vid.set(cv2.CAP_PROP_FRAME_WIDTH, width) vid.set(cv2.CAP_PROP_FRAME_HEIGHT, height) capname = "cap" # cv...
35.048193
113
0.564799
0dd3d5da7a826b786172c44a1312296d48423f6a
2,824
py
Python
fallball/fallballapp/fixtures/load_data.py
jazz-jack/fallball-service
12c91bc0162a8d3d2d103acd66df6e72cdf6a8d2
[ "Apache-2.0" ]
null
null
null
fallball/fallballapp/fixtures/load_data.py
jazz-jack/fallball-service
12c91bc0162a8d3d2d103acd66df6e72cdf6a8d2
[ "Apache-2.0" ]
null
null
null
fallball/fallballapp/fixtures/load_data.py
jazz-jack/fallball-service
12c91bc0162a8d3d2d103acd66df6e72cdf6a8d2
[ "Apache-2.0" ]
1
2020-06-19T05:00:43.000Z
2020-06-19T05:00:43.000Z
import binascii import os from django.conf import settings from fallballapp.meta_data import data from fallballapp.utils import get_app_username
40.342857
97
0.589235
0dd55b3492d17351fe309ec42664f2d185906465
1,417
py
Python
pymc3/step_methods/compound.py
bishax/pymc3
7cd66b7ff35659bf6dc7ae100794925e18708781
[ "Apache-2.0" ]
4
2019-04-03T08:49:07.000Z
2022-01-05T00:36:29.000Z
pymc3/step_methods/compound.py
bishax/pymc3
7cd66b7ff35659bf6dc7ae100794925e18708781
[ "Apache-2.0" ]
null
null
null
pymc3/step_methods/compound.py
bishax/pymc3
7cd66b7ff35659bf6dc7ae100794925e18708781
[ "Apache-2.0" ]
1
2017-06-12T14:59:34.000Z
2017-06-12T14:59:34.000Z
''' Created on Mar 7, 2011 @author: johnsalvatier '''
28.34
91
0.579393
0dd6275a25b6feb105a3fe19758151a3ee6b6e20
2,221
py
Python
book4/s4_teorico.py
Felipe-Tommaselli/Python4everbody_Michigan
f4f940c15a4b165b144d14ead79d583bf31b805b
[ "MIT" ]
null
null
null
book4/s4_teorico.py
Felipe-Tommaselli/Python4everbody_Michigan
f4f940c15a4b165b144d14ead79d583bf31b805b
[ "MIT" ]
null
null
null
book4/s4_teorico.py
Felipe-Tommaselli/Python4everbody_Michigan
f4f940c15a4b165b144d14ead79d583bf31b805b
[ "MIT" ]
null
null
null
# MANY-TO-MANY RELATIONSHIPS IN SQL #! MANY-TO-MANY # at agr s vimos one-to-many ou many-to-one relationships #* um exemplo so diferentes livros que so escritos por diferentes autores #* -------- ---------- #* | BOOKS | <==> | AUTHORS | #* -------- ---------- #* Nesse caso adicionamos um ...
29.613333
78
0.558757
0dd648a1b0a3c6380cf52b3fe1adf783f9259752
426
py
Python
english/migrations/0006_alter_english_tag.py
xgxofdream/Notebook_by_Tag
226b304a37564ad68092864266f1c769dcba7473
[ "MIT" ]
null
null
null
english/migrations/0006_alter_english_tag.py
xgxofdream/Notebook_by_Tag
226b304a37564ad68092864266f1c769dcba7473
[ "MIT" ]
null
null
null
english/migrations/0006_alter_english_tag.py
xgxofdream/Notebook_by_Tag
226b304a37564ad68092864266f1c769dcba7473
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2022-02-02 00:32 from django.db import migrations, models
22.421053
92
0.610329
0dd7a9eb3782838d1e9f740e275a10773c24ba31
247
py
Python
categorization/animal_categories.py
techmango-org/python-import-resolution
d41e394399370aebb8862cdfd10daa2de9bc71ab
[ "Apache-2.0" ]
1
2019-07-12T15:58:10.000Z
2019-07-12T15:58:10.000Z
categorization/animal_categories.py
techmango-org/python-import-resolution
d41e394399370aebb8862cdfd10daa2de9bc71ab
[ "Apache-2.0" ]
null
null
null
categorization/animal_categories.py
techmango-org/python-import-resolution
d41e394399370aebb8862cdfd10daa2de9bc71ab
[ "Apache-2.0" ]
1
2019-06-07T01:23:12.000Z
2019-06-07T01:23:12.000Z
import utils.constants as const animal_scores = { const.DOG: 100, const.CAT: 300 }
17.642857
41
0.732794
0dda6198b29e6336d0c0d4ba19bec65d52b9c7a2
674
py
Python
Assignment13_2JSONdataextraction.py
AnkurDesai11/PY4E
bfd185ef89d4b054a2286ca8a6eae476c086b782
[ "BSD-3-Clause" ]
null
null
null
Assignment13_2JSONdataextraction.py
AnkurDesai11/PY4E
bfd185ef89d4b054a2286ca8a6eae476c086b782
[ "BSD-3-Clause" ]
null
null
null
Assignment13_2JSONdataextraction.py
AnkurDesai11/PY4E
bfd185ef89d4b054a2286ca8a6eae476c086b782
[ "BSD-3-Clause" ]
null
null
null
''' Created on 25 Aug, 2020 @author: ABD Sample data: http://py4e-data.dr-chuck.net/comments_42.json (Sum=2553) Actual data: http://py4e-data.dr-chuck.net/comments_896976.json (Sum ends with 62) ''' import urllib.request, urllib.parse, urllib.error import ssl import json ctx = ssl.create_default_context() ...
28.083333
83
0.688427
0ddaedacd3a784847edbad802242ae23fdc0a158
2,027
py
Python
strands_tweets/scripts/image_tweeter_node.py
LuAPi/strands_social
488e2d3450df6d5d0dd26994d19077b8259c285e
[ "MIT" ]
null
null
null
strands_tweets/scripts/image_tweeter_node.py
LuAPi/strands_social
488e2d3450df6d5d0dd26994d19077b8259c285e
[ "MIT" ]
8
2015-02-10T11:07:21.000Z
2019-10-17T09:41:10.000Z
strands_tweets/scripts/image_tweeter_node.py
LuAPi/strands_social
488e2d3450df6d5d0dd26994d19077b8259c285e
[ "MIT" ]
4
2015-02-09T16:15:58.000Z
2019-01-23T14:15:44.000Z
#! /usr/bin/env python import rospy import actionlib from strands_tweets.msg import SendTweetAction, SendTweetGoal, GrabImageThenTweetAction, GrabImageThenTweetResult from sensor_msgs.msg import Image if __name__ == '__main__': rospy.init_node('image_tweeter_node') it = ImageTweeter() rospy.spin()
34.948276
144
0.674396
0ddb9f14ed80c3814d00d8cedd70dbfbb0e10be6
1,876
py
Python
3.py
Abhilash2015mca/Flask-Restful
308f7e3887e465361cd7c399c684d70b375752fa
[ "MIT" ]
null
null
null
3.py
Abhilash2015mca/Flask-Restful
308f7e3887e465361cd7c399c684d70b375752fa
[ "MIT" ]
null
null
null
3.py
Abhilash2015mca/Flask-Restful
308f7e3887e465361cd7c399c684d70b375752fa
[ "MIT" ]
null
null
null
# Avoided iterarion using filter function and added put and delete operation from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) items = [] api.add_resource(Item, '/item/<string:name>/') api.add_resource(addItem, '/add/') api.add_resource(itemList, '/ite...
30.258065
77
0.579424
0ddd0c2f299cd8c68206ef4fe9197b0a0b2718d4
3,287
py
Python
tests/integration_tests/test_node_starts_in_reset_and_converges.py
sspbft/BFTList
d73aee5bd0ab05995509f0fcfaf3c0a5944e617a
[ "MIT" ]
6
2019-11-12T01:45:55.000Z
2022-03-18T10:57:21.000Z
tests/integration_tests/test_node_starts_in_reset_and_converges.py
practicalbft/BFTList
d73aee5bd0ab05995509f0fcfaf3c0a5944e617a
[ "MIT" ]
4
2019-02-14T10:57:09.000Z
2019-03-21T15:22:08.000Z
tests/integration_tests/test_node_starts_in_reset_and_converges.py
sspbft/BFTList
d73aee5bd0ab05995509f0fcfaf3c0a5944e617a
[ "MIT" ]
1
2019-04-04T15:09:33.000Z
2019-04-04T15:09:33.000Z
""" Testing functionality of reseting when no other node is resetting. Node 0 has gone through a reset without needing it and ended up in phase 1 with RST_PAIR. Node 0 shall catch up with the other nodes in view (2,2) """ # standard import asyncio import logging from copy import deepcopy # local from . import helper...
31.304762
89
0.56404
0ddd68a108546a0adfbfa6089b444f8271d6dbbc
4,723
py
Python
test_attack.py
leeyegy/pytorch-cifar
a8a39891c7f7a86b636cfc615a431a761dfd74c6
[ "MIT" ]
null
null
null
test_attack.py
leeyegy/pytorch-cifar
a8a39891c7f7a86b636cfc615a431a761dfd74c6
[ "MIT" ]
null
null
null
test_attack.py
leeyegy/pytorch-cifar
a8a39891c7f7a86b636cfc615a431a761dfd74c6
[ "MIT" ]
null
null
null
'''Train CIFAR10 with PyTorch.''' import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import os import argparse from models import * from utils import progress_bar from loss ...
33.978417
126
0.680076
0ddda64a86be49c713d7995b9f5330b5684cded0
2,327
py
Python
src/megrok/rdb/tests/initialization.py
prsephton/megrok.rdb
5e1f5493704159869eac24518b77fc0a06c62c14
[ "ZPL-2.1" ]
null
null
null
src/megrok/rdb/tests/initialization.py
prsephton/megrok.rdb
5e1f5493704159869eac24518b77fc0a06c62c14
[ "ZPL-2.1" ]
null
null
null
src/megrok/rdb/tests/initialization.py
prsephton/megrok.rdb
5e1f5493704159869eac24518b77fc0a06c62c14
[ "ZPL-2.1" ]
null
null
null
""" We test an initialization pattern for z3c.saconfig where the metadata is set up in an event handler. Let's first grok things:: >>> grok.testing.grok('megrok.rdb.meta') >>> grok.testing.grok(__name__) We start using the database now:: >>> session = rdb.Session() Let's start using the database now:: >>>...
27.376471
69
0.700473
0ddf70bf8e1bbf5bc20b4ce995028fd8820e67d8
841
py
Python
auctioning_platform/main/main/redis.py
nhdinh/smp-modulith
84c31b36e9b449fe3135f3802c1bbc362e7fb459
[ "MIT" ]
299
2019-09-13T23:03:29.000Z
2022-03-24T09:20:43.000Z
auctioning_platform/main/main/redis.py
winston-won/clean-architecture
95546b29c9a5ff0e16c7f67b9ab736749e87f8ae
[ "MIT" ]
109
2019-11-03T12:16:16.000Z
2021-07-26T08:32:28.000Z
auctioning_platform/main/main/redis.py
winston-won/clean-architecture
95546b29c9a5ff0e16c7f67b9ab736749e87f8ae
[ "MIT" ]
38
2019-09-13T23:03:34.000Z
2022-03-24T09:21:10.000Z
from types import TracebackType from typing import Optional, Type from redis import StrictRedis from typing_extensions import Literal from foundation.locks import AlreadyLocked, Lock
30.035714
120
0.690844
0ddfc1680e0087c9a160e4d4f6fa41fc5828a2ba
7,124
py
Python
python/bitwarden/crypto.py
rjc/bitwarden-cli
770c2af962d696b3aaaf16a77eefc0c3187b7b11
[ "MIT" ]
48
2018-04-08T02:54:23.000Z
2022-02-21T10:13:47.000Z
python/bitwarden/crypto.py
rjc/bitwarden-cli
770c2af962d696b3aaaf16a77eefc0c3187b7b11
[ "MIT" ]
13
2018-04-08T22:31:44.000Z
2021-05-08T20:42:39.000Z
python/bitwarden/crypto.py
rjc/bitwarden-cli
770c2af962d696b3aaaf16a77eefc0c3187b7b11
[ "MIT" ]
15
2018-04-09T18:39:16.000Z
2021-04-23T07:12:27.000Z
""" Bitwarden crypto functions. Yes, this code is UGLY, The bitwarden documentation is either missing, inconsistent or confusing. This needs a refactor, but unknown if I will get to it before I move back to rust where this code probably should live for reals. See tests/test_bitwarden.py if you want to make sense of...
34.086124
158
0.669989
0de0c7aff912812a7b1cf3cab0a2153ee44f170a
12,624
py
Python
genproto.py
eruffaldi/protosim
921ef9f8c174809e2937a44daa2595c11426f7cd
[ "MIT" ]
null
null
null
genproto.py
eruffaldi/protosim
921ef9f8c174809e2937a44daa2595c11426f7cd
[ "MIT" ]
null
null
null
genproto.py
eruffaldi/protosim
921ef9f8c174809e2937a44daa2595c11426f7cd
[ "MIT" ]
null
null
null
# # GenPROTO by Emanuele Ruffaldi 2009 # v1 2009/12/05 # # TODO: # - nicer Simulink layout # - hash as annotation or as output # - encoder id > 256 in particular using extended encoding (lsb+msb) # - Alternative: XVR encoding of an array # - Support for new types import hashlib typesizes = dict(double=8,sing...
41.526316
165
0.506099
0de1f940fc4bc7f5faadcf0b88c3569a16720129
44,776
py
Python
rlkit/launchers/rl_exp_launcher_util_old.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/launchers/rl_exp_launcher_util_old.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/launchers/rl_exp_launcher_util_old.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
from rlkit.samplers.data_collector import VAEWrappedEnvPathCollector from rlkit.visualization.video import VideoSaveFunction from rlkit.torch.her.her import HERTrainer from rlkit.torch.sac.policies import MakeDeterministic from rlkit.torch.sac.sac import SACTrainer from rlkit.torch.vae.online_vae_algorithm import Onlin...
32.778917
90
0.655664
0de2dcd6a923e5ccc38202d45bae32bf1315f3b6
2,200
py
Python
python/helper/QTPAD_DataPrep.py
noxtoby/dem
13fcd39194eeab91b276d5f616270c3e132b9070
[ "MIT" ]
null
null
null
python/helper/QTPAD_DataPrep.py
noxtoby/dem
13fcd39194eeab91b276d5f616270c3e132b9070
[ "MIT" ]
null
null
null
python/helper/QTPAD_DataPrep.py
noxtoby/dem
13fcd39194eeab91b276d5f616270c3e132b9070
[ "MIT" ]
null
null
null
# Simple wrapper for data preparation # # Input: ADNI data as pandas dataframe # Output: Modified dataframe # * handle missing data: remove individuals with missing demographics? # * stables and progressors (clinical diagnosis) # # Author: Neil Oxtoby, UCL, January 2018 # Translated and modified from earlier MAT...
48.888889
208
0.704091
0de3841159183190f269892a6f7cb86c1c65bd8f
5,237
py
Python
scripts/automation/trex_control_plane/common/trex_exceptions.py
timgates42/trex-core
efe94752fcb2d0734c83d4877afe92a3dbf8eccd
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/automation/trex_control_plane/common/trex_exceptions.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/automation/trex_control_plane/common/trex_exceptions.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
#!/router/bin/python #from rpc_exceptions import RPCExceptionHandler, WrappedRPCError from jsonrpclib import Fault, ProtocolError, AppError EXCEPTIONS = [TRexException, TRexError, TRexWarning, TRexInUseError, TRexRequestDenied, TRexRunFailedError, TRexIncompleteRunError] exception_handler = CExceptionHandler( EXCE...
37.141844
162
0.674814
0de5270e48f9bb8140229ad87f702d9f9395b7a9
1,319
py
Python
functions/benchmarks/utils.py
xyclin/fluent
f1dcede5d4b7d6eab722180129dbb5aff4241621
[ "Apache-2.0" ]
1,164
2018-07-25T23:17:07.000Z
2019-07-11T20:33:52.000Z
functions/benchmarks/utils.py
longwutianya/fluent
c8fc9f2dd781e5ed91c34351adc6a101cc383083
[ "Apache-2.0" ]
126
2018-07-25T22:41:53.000Z
2019-07-10T21:49:19.000Z
functions/benchmarks/utils.py
longwutianya/fluent
c8fc9f2dd781e5ed91c34351adc6a101cc383083
[ "Apache-2.0" ]
178
2018-07-25T23:17:11.000Z
2019-07-10T02:45:27.000Z
import logging import numpy as np import scipy.stats
30.674419
76
0.501137
0de9954b30086eb49e586c15ab6996930b07db5e
2,038
py
Python
pyxll_jupyter/qtimports.py
masariello/pyxll-jupyter
ae6f4416efda7329a5d67664ab957bad4fc431f1
[ "MIT" ]
132
2020-11-12T02:09:52.000Z
2022-02-11T13:21:14.000Z
pyxll_jupyter/qtimports.py
masariello/pyxll-jupyter
ae6f4416efda7329a5d67664ab957bad4fc431f1
[ "MIT" ]
17
2020-12-25T03:12:18.000Z
2022-01-12T15:35:26.000Z
pyxll_jupyter/qtimports.py
masariello/pyxll-jupyter
ae6f4416efda7329a5d67664ab957bad4fc431f1
[ "MIT" ]
26
2020-12-28T10:18:46.000Z
2021-11-25T10:15:13.000Z
"""Common imports used by other modules in this package. They are collected here so we can switch between PySide6, PySide2 and PyQt5 depending on what's installed. A specific Qt package can be specified in the pyxll.cfg file by setting 'qt' in the JUPYTER section, eg:: [JUPYTER] qt = PyQt5 """ import logging...
34.542373
121
0.670265
0de9ec4631263c9362f00069530b9cb00707225b
2,852
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/_patch.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/_patch.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/_patch.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ...
46
137
0.717742
0dea26bd304d66b97401c4279b06adff6552c050
2,160
py
Python
setup.py
collective/collective.recipe.beanstalkd
e19d8046f0adabfddf8c030a5eeacf66bca1e5cc
[ "MIT" ]
null
null
null
setup.py
collective/collective.recipe.beanstalkd
e19d8046f0adabfddf8c030a5eeacf66bca1e5cc
[ "MIT" ]
null
null
null
setup.py
collective/collective.recipe.beanstalkd
e19d8046f0adabfddf8c030a5eeacf66bca1e5cc
[ "MIT" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/collective/collective.recipe.beanstalkd """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import pa...
34.285714
89
0.658796
0dea59d213130e261db2bc8cf3da1b67cff5451e
5,187
py
Python
model/LGNN.py
FeiGSSS/LGNN
d91107dcb2e94622b57afab1bcef90817545d729
[ "MIT" ]
2
2021-04-02T03:36:26.000Z
2022-02-22T13:33:05.000Z
model/LGNN.py
FeiGSSS/LGNN
d91107dcb2e94622b57afab1bcef90817545d729
[ "MIT" ]
null
null
null
model/LGNN.py
FeiGSSS/LGNN
d91107dcb2e94622b57afab1bcef90817545d729
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @File : LGNN.py @Time : 2021/03/26 16:55:20 @Author : Fei gao @Contact : feig@mail.bnu.edu.cn BNU, Beijing, China ''' import torch import torch.nn as nn import torch.nn.functional as F
38.139706
81
0.555427
0deb78bf2abfa3eb4f5da9d512c50b99330acc10
1,682
py
Python
Cloud/seeder.py
faramarzQ/Cloud_assisted_resource_allocation_using_machine_learning
1aa8d8e63dcd6053f69e17bf90595a0aa2a7d317
[ "Apache-2.0" ]
1
2022-03-14T01:44:28.000Z
2022-03-14T01:44:28.000Z
Cloud/seeder.py
faramarzQ/Cloud_assisted_resource_allocation_using_machine_learning
1aa8d8e63dcd6053f69e17bf90595a0aa2a7d317
[ "Apache-2.0" ]
null
null
null
Cloud/seeder.py
faramarzQ/Cloud_assisted_resource_allocation_using_machine_learning
1aa8d8e63dcd6053f69e17bf90595a0aa2a7d317
[ "Apache-2.0" ]
1
2021-08-04T08:30:58.000Z
2021-08-04T08:30:58.000Z
import random if __name__ == '__main__': """ the seeder module creates sample data using the given template the template is in the seeder_data file, it specifies the attributes and values our data has output: data.csv """ # read template with open("Cloud/storage/data/seeder_da...
32.346154
81
0.548157
0debd1322ec02fba09f8ff27e8077a2edc7b8e18
485
py
Python
Difficulty/Medium/78.subsets.py
ryderfang/LeetCode
be9470dee6175bab321f0549f173c0c682dddd77
[ "MIT" ]
1
2021-05-06T02:27:30.000Z
2021-05-06T02:27:30.000Z
Difficulty/Medium/78.subsets.py
ryderfang/LeetCode
be9470dee6175bab321f0549f173c0c682dddd77
[ "MIT" ]
null
null
null
Difficulty/Medium/78.subsets.py
ryderfang/LeetCode
be9470dee6175bab321f0549f173c0c682dddd77
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=78 lang=python3 # # [78] Subsets # # @lc code=start from typing import List import itertools # @lc code=end
20.208333
62
0.519588
0decd297da4d380687e304aaf258a5a2ae51da22
220
py
Python
BOJ_Solved/BOJ-1546.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
7
2021-11-19T14:50:59.000Z
2022-02-25T20:00:20.000Z
BOJ_Solved/BOJ-1546.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
null
null
null
BOJ_Solved/BOJ-1546.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
null
null
null
""" 1546 : """ number = int(input( )) scores = list(map(int, input( ).split( ))) temp = -1 for score in scores: if score > temp: temp = score whole = sum(scores) print((whole * 100 / temp) / number)
15.714286
42
0.577273
0dee8b182c9c00b957334b937616b3f61730f89a
1,406
py
Python
selfdrive/car/tesla/teslacan.py
Basketkase/openpilot
769e1cf7a8322ca83d1a86a2f547acf5e3a5a52e
[ "MIT" ]
251
2019-07-12T05:14:20.000Z
2022-03-30T21:05:22.000Z
selfdrive/car/tesla/teslacan.py
Basketkase/openpilot
769e1cf7a8322ca83d1a86a2f547acf5e3a5a52e
[ "MIT" ]
31
2020-03-06T01:50:25.000Z
2022-03-11T19:09:08.000Z
selfdrive/car/tesla/teslacan.py
Basketkase/openpilot
769e1cf7a8322ca83d1a86a2f547acf5e3a5a52e
[ "MIT" ]
284
2019-07-29T13:14:19.000Z
2022-03-30T17:26:47.000Z
import copy import crcmod from opendbc.can.can_define import CANDefine from selfdrive.car.tesla.values import CANBUS
33.47619
85
0.706259
0deea45a7c967ea82b3e38ab6a70977f2a533c4a
888
py
Python
af_scripts/uv/uvSetTgl.py
aaronfang/small-Scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
1
2018-03-08T16:34:00.000Z
2018-03-08T16:34:00.000Z
af_scripts/uv/uvSetTgl.py
aaronfang/personal_scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
null
null
null
af_scripts/uv/uvSetTgl.py
aaronfang/personal_scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
null
null
null
# This script will switch UV Set between "map1" and "atlasmap". # Useage: # Select meshes and run this script import maya.cmds as cmds uvsetTgl()
42.285714
75
0.634009
0def1562e19ad9a5b2327c246d0c89c271c956ce
2,480
py
Python
acceptance_test.py
pgrabiec/Interpreter
427786be63b35decc0af0bba602d84b5ab7d02bd
[ "MIT" ]
null
null
null
acceptance_test.py
pgrabiec/Interpreter
427786be63b35decc0af0bba602d84b5ab7d02bd
[ "MIT" ]
null
null
null
acceptance_test.py
pgrabiec/Interpreter
427786be63b35decc0af0bba602d84b5ab7d02bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python import filecmp import os import sys import unittest if __name__ == '__main__': test_dir = sys.argv[1] if len(sys.argv) > 1 else "test_interpreter" sys.argv = [sys.argv[0]] AcceptanceTests.add_tests(test_dir) unittest.main()
43.508772
125
0.381048
0df1fb92821d42f2413092da69023b3c603ae978
2,902
py
Python
utils/text_width_check.py
boamaod/frogatto
21eca0e87af51a57298cb7392fcedda2367614aa
[ "CC-BY-3.0" ]
326
2015-01-02T10:15:14.000Z
2022-03-28T11:53:57.000Z
utils/text_width_check.py
boamaod/frogatto
21eca0e87af51a57298cb7392fcedda2367614aa
[ "CC-BY-3.0" ]
418
2015-06-01T22:35:46.000Z
2022-03-28T08:55:48.000Z
utils/text_width_check.py
boamaod/frogatto
21eca0e87af51a57298cb7392fcedda2367614aa
[ "CC-BY-3.0" ]
88
2015-01-19T20:03:22.000Z
2022-03-15T17:36:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys, codecs #usage: from frogatto's base folder, run: #utils/text_width_check.py po/(desired file, with a "po" or "pot" extension) [optional:max width] #e.g.: #utils/text_width_check.py po/frogatto.pot 360 global MAXWIDTH MAXWIDTH = 360 if __name__ == "__main__...
30.547368
97
0.60062
0df217f11454e76bb3aeb5e62d8886ef5b46e27b
1,228
py
Python
xclib/utils/dense.py
iksteen/pyxclib
2948162dd780f8230a785abfd2ee57e8ab5cc156
[ "MIT" ]
1
2021-04-20T13:52:55.000Z
2021-04-20T13:52:55.000Z
xclib/utils/dense.py
iksteen/pyxclib
2948162dd780f8230a785abfd2ee57e8ab5cc156
[ "MIT" ]
null
null
null
xclib/utils/dense.py
iksteen/pyxclib
2948162dd780f8230a785abfd2ee57e8ab5cc156
[ "MIT" ]
null
null
null
import numpy as np from .sparse import normalize as _normalize from .sparse import binarize as _binarize def compute_dense_features(features, word_embeddings, method='wt_sum', normalize=True, binarize=False): """ Compute dense features as per given sparse features and word embedding...
29.238095
75
0.672638
0df3219c9c394d735e2efe83d97bfc2dd7b7f56a
2,381
py
Python
examples/sim2real/utils.py
gujralsanyam22/pyrobot
a0448714857b684d8b280f710e9304988524d2e0
[ "MIT" ]
2,150
2019-06-12T20:55:41.000Z
2022-03-21T07:14:51.000Z
examples/sim2real/utils.py
gujralsanyam22/pyrobot
a0448714857b684d8b280f710e9304988524d2e0
[ "MIT" ]
124
2019-06-22T17:12:27.000Z
2022-02-26T11:43:13.000Z
examples/sim2real/utils.py
gujralsanyam22/pyrobot
a0448714857b684d8b280f710e9304988524d2e0
[ "MIT" ]
329
2019-06-13T03:03:54.000Z
2022-03-30T07:04:55.000Z
# The MIT License # Copyright (c) 2017 OpenAI (http://openai.com) # 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 us...
38.403226
81
0.635867
0df48fd0e8c11edab2963cf38a4e2ecdaddb235d
115
py
Python
EdX/Python/PSET_1_2.py
mayankjobanputra/Programing
eed62661ee9a745c7ea81dde317d83a40ea489f4
[ "MIT" ]
null
null
null
EdX/Python/PSET_1_2.py
mayankjobanputra/Programing
eed62661ee9a745c7ea81dde317d83a40ea489f4
[ "MIT" ]
null
null
null
EdX/Python/PSET_1_2.py
mayankjobanputra/Programing
eed62661ee9a745c7ea81dde317d83a40ea489f4
[ "MIT" ]
null
null
null
num=0 for i in range(len(s)-2): if(s[i:i+3]=='bob'): num+=1 print "Number of times bob occurs is:",num
19.166667
42
0.565217
0df4ba5067412628c67412b6dede1e6a1974fd73
1,451
py
Python
pygmentize/floorplan.py
RedlineResearch/floorplan
dbaa7e6649eed18707ff8a27ee3c33fa83b47fcf
[ "BSD-3-Clause", "MIT" ]
17
2019-10-21T13:09:49.000Z
2022-01-26T03:06:35.000Z
pygmentize/floorplan.py
RedlineResearch/floorplan
dbaa7e6649eed18707ff8a27ee3c33fa83b47fcf
[ "BSD-3-Clause", "MIT" ]
5
2019-10-24T23:02:34.000Z
2020-01-28T02:01:30.000Z
pygmentize/floorplan.py
RedlineResearch/floorplan
dbaa7e6649eed18707ff8a27ee3c33fa83b47fcf
[ "BSD-3-Clause", "MIT" ]
null
null
null
from pygments.lexer import RegexLexer from pygments.token import * import re __all__ = ['FloorplanLexer']
27.377358
74
0.456926
0df53ba43d95a0153001bd438b6726acb358cb36
1,266
py
Python
status/models.py
RyanBalfanz/Django-Bingo
0ba9f893c78fae1a5fb5eb45e43b36783d930e25
[ "BSD-3-Clause" ]
9
2015-11-04T16:22:05.000Z
2021-01-27T11:02:19.000Z
status/models.py
osundiranayoade/Django-Bingo_builder
9ca7098c28fa0a4d77c3ea62877d44230940618d
[ "BSD-3-Clause" ]
1
2021-06-10T23:18:27.000Z
2021-06-10T23:18:27.000Z
status/models.py
RyanBalfanz/Django-Bingo
0ba9f893c78fae1a5fb5eb45e43b36783d930e25
[ "BSD-3-Clause" ]
4
2015-07-13T19:22:09.000Z
2020-11-24T11:25:27.000Z
from django.db import models global_max_length = 200
36.171429
71
0.725908
0df593c1def415d2eed2a9f746ea18cf01424f0d
8,816
py
Python
blotter/server.py
antequant/blotter
2c4bbee069fec199d97728a22d0b9263d5a145d9
[ "MIT" ]
1
2021-05-09T10:49:41.000Z
2021-05-09T10:49:41.000Z
blotter/server.py
webclinic017/blotter
2c4bbee069fec199d97728a22d0b9263d5a145d9
[ "MIT" ]
null
null
null
blotter/server.py
webclinic017/blotter
2c4bbee069fec199d97728a22d0b9263d5a145d9
[ "MIT" ]
3
2021-01-26T13:44:15.000Z
2021-09-11T16:55:23.000Z
import asyncio import concurrent.futures from datetime import datetime, timedelta, timezone from logging import getLogger from typing import Awaitable, Callable, Iterator, Optional, Tuple, TypeVar import grpc from google.cloud import bigquery import ib_insync from blotter import blotter_pb2, blotter_pb2_grpc, request...
37.514894
137
0.681715
0df5af911e3f3139f8bc98bc1ee4ef005bead7ae
5,859
py
Python
src/ralph/dashboards/renderers.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/dashboards/renderers.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/dashboards/renderers.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
import calendar import json import logging from urllib.parse import urlencode from django.core.urlresolvers import NoReverseMatch, reverse from django.template.loader import render_to_string from django.utils.safestring import mark_safe from ralph.dashboards.helpers import encode_params, normalize_value logger = lo...
29.00495
78
0.522103
0df659907ce974dd2868e7904a1d5d37e351ed0f
2,094
py
Python
UI/ui_aliasAndNotes.py
ShowingCloud/Capricorn
cfe521975ca23f7502509595f1fd3f8c6c5e1c55
[ "MIT" ]
null
null
null
UI/ui_aliasAndNotes.py
ShowingCloud/Capricorn
cfe521975ca23f7502509595f1fd3f8c6c5e1c55
[ "MIT" ]
null
null
null
UI/ui_aliasAndNotes.py
ShowingCloud/Capricorn
cfe521975ca23f7502509595f1fd3f8c6c5e1c55
[ "MIT" ]
null
null
null
#coding=utf-8 ''' Created on 2013-3-8 @author: pyroshow ''' from PySide.QtGui import * from Models.LocalDB import * from datetime import datetime
24.635294
88
0.550143
0df79d19d0d5139b0f49f4ce3430b3e3555f7c4c
496
py
Python
sync.py
bathelomeo/asynchronous_operations
587fed98810ec54d5eec6359e703dd3d4ed5b029
[ "MIT" ]
null
null
null
sync.py
bathelomeo/asynchronous_operations
587fed98810ec54d5eec6359e703dd3d4ed5b029
[ "MIT" ]
null
null
null
sync.py
bathelomeo/asynchronous_operations
587fed98810ec54d5eec6359e703dd3d4ed5b029
[ "MIT" ]
null
null
null
from timeit import default_timer import requests main()
21.565217
67
0.693548
0df81411a14b3a4796c7dba69369570d42e38320
511
py
Python
setup.py
cdgriffith/pyctf
55ef40fc784b38afbf377ec0688afa181b74d714
[ "MIT" ]
1
2020-04-10T00:09:57.000Z
2020-04-10T00:09:57.000Z
setup.py
cdgriffith/pyctf
55ef40fc784b38afbf377ec0688afa181b74d714
[ "MIT" ]
1
2015-07-13T20:04:07.000Z
2015-07-13T20:04:07.000Z
setup.py
cdgriffith/pyctf
55ef40fc784b38afbf377ec0688afa181b74d714
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'requirements.txt')) as f: requirements = f.readlines() setup( name="pyctf", version="0.0", packages=['pyctf'], package_dir={'pyctf'...
22.217391
55
0.639922
0df8c6c3e4e25589092f6e714c1d72a9fe4db8d5
664
py
Python
scripts/npc/pipe3.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
scripts/npc/pipe3.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
scripts/npc/pipe3.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
# 3rd Pipe Handle (2111019) | Home of the Missing Alchemist (261000001) undergroundStudy = 3339 if sm.hasQuest(undergroundStudy) or sm.hasQuestCompleted(undergroundStudy): # The dummy quest ID 7063 will be used to determine if the pipes are being activated in the right order # This needs to be activated after...
44.266667
107
0.707831
0df977d7b93c280609b83f8c7407e780209f5280
3,501
py
Python
backend/ibutsu_server/test/test_importers.py
RonnyPfannschmidt/ibutsu-server
eb4a6dfcbdd33ccc6dbf10f35978e092376679d1
[ "MIT" ]
null
null
null
backend/ibutsu_server/test/test_importers.py
RonnyPfannschmidt/ibutsu-server
eb4a6dfcbdd33ccc6dbf10f35978e092376679d1
[ "MIT" ]
null
null
null
backend/ibutsu_server/test/test_importers.py
RonnyPfannschmidt/ibutsu-server
eb4a6dfcbdd33ccc6dbf10f35978e092376679d1
[ "MIT" ]
null
null
null
from pathlib import Path from unittest.mock import call from unittest.mock import MagicMock from unittest.mock import patch from ibutsu_server.test import BaseTestCase XML_FILE = Path(__file__).parent / "res" / "empty-testsuite.xml" XML_FILE_COMBINED = Path(__file__).parent / "res" / "combined.xml"
43.222222
97
0.720366
0dfa57d99c628dfc879e102d39f2b537d771fbed
3,078
py
Python
scripts/import-politique-de-contribution-open-source.py
pajachiet/numerique.gouv.fr
0c4b9c0978da0320a7875c3bd54a1d241e3bba71
[ "MIT" ]
17
2018-10-05T09:17:41.000Z
2022-01-14T10:19:31.000Z
scripts/import-politique-de-contribution-open-source.py
Indianajaune/numerique.gouv.fr
0c4b9c0978da0320a7875c3bd54a1d241e3bba71
[ "MIT" ]
10
2018-10-15T07:50:38.000Z
2022-02-26T04:18:49.000Z
scripts/import-politique-de-contribution-open-source.py
Indianajaune/numerique.gouv.fr
0c4b9c0978da0320a7875c3bd54a1d241e3bba71
[ "MIT" ]
9
2018-10-12T12:43:01.000Z
2021-11-12T20:34:08.000Z
# -*- coding: UTF-8 -*- from git import Repo import shutil import os import glob import re import yaml rw_dir = './repo' dirpath = os.path.join(rw_dir) if os.path.exists(dirpath) and os.path.isdir(dirpath): shutil.rmtree(dirpath) repo = Repo.clone_from("https://github.com/DISIC/politique-de-contribution-open-s...
30.475248
154
0.594217
0dfa5e71db2afe7ed5775f869de18eda648f4a6e
8,741
py
Python
tools/test_idf_py/test_idf_py.py
dreamcmi/esp-idf
2024ae943466a967f48607c3bd9c258526f08b10
[ "Apache-2.0" ]
null
null
null
tools/test_idf_py/test_idf_py.py
dreamcmi/esp-idf
2024ae943466a967f48607c3bd9c258526f08b10
[ "Apache-2.0" ]
null
null
null
tools/test_idf_py/test_idf_py.py
dreamcmi/esp-idf
2024ae943466a967f48607c3bd9c258526f08b10
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 import os import subprocess import sys from unittest import TestCase, main, mock try: from StringIO import StringIO except ImportError: from io import StringIO try: import...
37.676724
120
0.588491
0dfaabfbc39ee5e2ac22e5d50e4fe456ac3ceac3
481
py
Python
api/urls.py
Luanlpg/favorites_list
593bc8eab89382cbf62f6efa0e8a4769f0dc3a0a
[ "MIT" ]
null
null
null
api/urls.py
Luanlpg/favorites_list
593bc8eab89382cbf62f6efa0e8a4769f0dc3a0a
[ "MIT" ]
null
null
null
api/urls.py
Luanlpg/favorites_list
593bc8eab89382cbf62f6efa0e8a4769f0dc3a0a
[ "MIT" ]
null
null
null
from django.urls import path from django.urls import include from rest_framework import routers from . import views router = routers.DefaultRouter() urlpatterns = [ path('', include(router.urls)), path('user/', views.UserView.as_view()), path('<str:token>/client/', views.ClientListView.as_view()), p...
28.294118
84
0.706861
216ddf3f3bee18f9ef70cbc6eb7c66408981e493
938
py
Python
more_exercises/21.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
more_exercises/21.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
more_exercises/21.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
# 21. rewrite the program from steps 18 to 20 so that it works for reverse complement (i.e. the user types the strings ATTCGT and AAGGAT and she gets the previous example as result) #18. print 3 rows: the first and the third for the sequences, #the second one should contain | if the bases are complementary, X if not. ...
37.52
185
0.634328
216e193708479aa189d55d4a217d2cdf85446483
494
py
Python
src/schema/client.py
gabrielroot/pedidosDelivery
52315d6e5db6dc2c8be9e523f7491d798ed07c5b
[ "MIT" ]
null
null
null
src/schema/client.py
gabrielroot/pedidosDelivery
52315d6e5db6dc2c8be9e523f7491d798ed07c5b
[ "MIT" ]
null
null
null
src/schema/client.py
gabrielroot/pedidosDelivery
52315d6e5db6dc2c8be9e523f7491d798ed07c5b
[ "MIT" ]
null
null
null
from src import ma from src.models import Client from src.models import FlavorItems from marshmallow import fields
23.52381
110
0.659919
216e3d46e49817b7dcacb2056f0d736770221c67
5,059
py
Python
nugis/nugis/settings.py
luismorenolopera/nugis-backend
39abe9959ad74a995817b0e8939ee2b52849a63d
[ "MIT" ]
1
2021-04-15T15:29:36.000Z
2021-04-15T15:29:36.000Z
nugis/nugis/settings.py
luismorenolopera/Nugis-Backend
39abe9959ad74a995817b0e8939ee2b52849a63d
[ "MIT" ]
5
2020-06-05T19:01:29.000Z
2022-03-11T23:29:14.000Z
nugis/nugis/settings.py
luismorenolopera/Nugis-Backend
39abe9959ad74a995817b0e8939ee2b52849a63d
[ "MIT" ]
3
2018-12-31T09:13:01.000Z
2021-02-20T08:22:24.000Z
""" Django settings for nugis project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os impo...
26.07732
92
0.691243
216fa0157d7ec2be565bf762ad39114041c00593
929
py
Python
examples/conjunctive_graphs.py
Letractively/rdflib
b92e162efd61506d19ed25a12960cd32f0c7432e
[ "BSD-3-Clause" ]
null
null
null
examples/conjunctive_graphs.py
Letractively/rdflib
b92e162efd61506d19ed25a12960cd32f0c7432e
[ "BSD-3-Clause" ]
null
null
null
examples/conjunctive_graphs.py
Letractively/rdflib
b92e162efd61506d19ed25a12960cd32f0c7432e
[ "BSD-3-Clause" ]
null
null
null
from rdflib import Namespace, BNode, Literal, URIRef from rdflib.graph import Graph, ConjunctiveGraph from rdflib.plugins.memory import IOMemory ns = Namespace("http://love.com#") mary = URIRef("http://love.com/lovers/mary#") john = URIRef("http://love.com/lovers/john#") cmary=URIRef("http://love.com/lovers/mary#") ...
24.447368
52
0.674919
216fccd5371afe7b93e013de42d1f279a6bf954f
297
py
Python
bitcoin/blocksci-server/app-server.py
joequant/sto
3bd45ef296b0d567c3f74a990580c745fe2114c0
[ "BSD-2-Clause" ]
null
null
null
bitcoin/blocksci-server/app-server.py
joequant/sto
3bd45ef296b0d567c3f74a990580c745fe2114c0
[ "BSD-2-Clause" ]
null
null
null
bitcoin/blocksci-server/app-server.py
joequant/sto
3bd45ef296b0d567c3f74a990580c745fe2114c0
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask app = Flask(__name__) if __name__ == "__main__": from gevent.pywsgi import WSGIServer http_server = WSGIServer(('0.0.0.0', 5000), app) http_server.serve_forever()
18.5625
52
0.673401
21706cb4bd6e902ccc7617a54c669f011eefffb2
8,158
py
Python
pyflocker/ciphers/backends/symmetric.py
fossabot/pyflocker
293df31e32fb796df5c7fba803846c9872e67485
[ "MIT" ]
null
null
null
pyflocker/ciphers/backends/symmetric.py
fossabot/pyflocker
293df31e32fb796df5c7fba803846c9872e67485
[ "MIT" ]
null
null
null
pyflocker/ciphers/backends/symmetric.py
fossabot/pyflocker
293df31e32fb796df5c7fba803846c9872e67485
[ "MIT" ]
null
null
null
"""Tools for Symmetric ciphers common to all the backends.""" from __future__ import annotations import hmac import typing from functools import partial from .. import base, exc StreamCipherWrapper = FileCipherWrapper
30.554307
79
0.599779
2170b45e278994aee2150395fd274fdfc4ab4f3e
380
py
Python
taller control de selectivas/ejercicio_3.py
MiguelUrmo/Talleres-logaritmos
ed711241b8225a39f5107515e8d967575a5c0af6
[ "MIT" ]
null
null
null
taller control de selectivas/ejercicio_3.py
MiguelUrmo/Talleres-logaritmos
ed711241b8225a39f5107515e8d967575a5c0af6
[ "MIT" ]
null
null
null
taller control de selectivas/ejercicio_3.py
MiguelUrmo/Talleres-logaritmos
ed711241b8225a39f5107515e8d967575a5c0af6
[ "MIT" ]
null
null
null
""" datos de entrada variable 1--->a--->int variable 2--->b--->int variable 3--->c--->int variable 4--->d--->int """ #entrada a=int(input("ingrese variable 1: " )) b=int(input("ingrese variable 2: ")) c=int(input("ingrese variable 3: ")) d=int(input("ingrese variable 4: ")) #caja negra if (d==0): re=(a-c)**2 elif(d...
19
37
0.576316
217199741c69648150fbd523fc6f07a21de56382
1,852
py
Python
backend/app.py
KakoozaJerry/sera
eee127ce8c73772f5f980e4f5e9b1887a790c465
[ "MIT" ]
null
null
null
backend/app.py
KakoozaJerry/sera
eee127ce8c73772f5f980e4f5e9b1887a790c465
[ "MIT" ]
2
2020-04-13T18:33:36.000Z
2021-05-11T10:26:06.000Z
backend/app.py
KakoozaJerry/sera
eee127ce8c73772f5f980e4f5e9b1887a790c465
[ "MIT" ]
null
null
null
from flask import Flask ,jsonify ,abort ,make_response ,request from flask_restful import Resource, Api #from ./estimator import * app = Flask(__name__) api = Api(app) api.add_resource(HelloWorld, '/api/v1/on-covid-19') todos = {} api.add_resource(TodoSimple, '/<string:todo_id>') """ @app.route('/') def index(): ...
25.027027
74
0.598812
21725365dcbb684cdebea331fa52515d4fc66d02
314
py
Python
python/JournalDirective.Values.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
26
2017-11-23T19:30:03.000Z
2022-02-09T10:35:10.000Z
python/JournalDirective.Values.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
51
2017-11-16T15:02:32.000Z
2022-03-01T13:51:58.000Z
python/JournalDirective.Values.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
9
2017-11-20T09:20:01.000Z
2021-09-15T13:08:30.000Z
import clr OUT = process_input(journalDirectiveValues,IN[0])
28.545455
73
0.764331
2175488fbd9eeb9626a7072d7fe8708e8f6e0714
2,350
py
Python
reactome_gnn/dataset.py
reactome/reactome_gnn
5e5c0000a971743d8e4aa2f865fde4dd3aa5fa93
[ "Apache-2.0" ]
1
2021-11-05T19:40:10.000Z
2021-11-05T19:40:10.000Z
reactome_gnn/dataset.py
reactome/reactome_gnn
5e5c0000a971743d8e4aa2f865fde4dd3aa5fa93
[ "Apache-2.0" ]
12
2021-06-20T21:25:35.000Z
2021-08-11T08:19:02.000Z
reactome_gnn/dataset.py
reactome/reactome_gnn
5e5c0000a971743d8e4aa2f865fde4dd3aa5fa93
[ "Apache-2.0" ]
null
null
null
import os import pickle import subprocess import dgl from dgl.data import DGLDataset
35.606061
90
0.614043
2175b95524f253410e49446b559a80dfe1d3dbb8
124
py
Python
Basic syntax Lab/word reverse.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
Basic syntax Lab/word reverse.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
Basic syntax Lab/word reverse.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
word = input() reversed_word = "" for i in range(len(word) - 1, - 1, -1): reversed_word += word[i] print(reversed_word)
20.666667
39
0.637097
21761ae262f482184353d2351a50a9342cd20302
1,024
py
Python
Binomial/Binomial.py
DakotaKry/algorithims
16eba338df768a0468f7a4788998faae382500e4
[ "MIT" ]
null
null
null
Binomial/Binomial.py
DakotaKry/algorithims
16eba338df768a0468f7a4788998faae382500e4
[ "MIT" ]
null
null
null
Binomial/Binomial.py
DakotaKry/algorithims
16eba338df768a0468f7a4788998faae382500e4
[ "MIT" ]
null
null
null
binom = Binomial(20,20) binom.setTrace(True) binom.fastRoute(1, 1, 8, 4)
17.355932
49
0.508789
2176987fdbd61dbebc421fba3bb535bdc9787060
957
py
Python
userlib/utils/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
1
2022-01-17T00:51:15.000Z
2022-01-17T00:51:15.000Z
userlib/utils/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
null
null
null
userlib/utils/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
null
null
null
import ctypes import os import re import subprocess QalcExchangeRatesUpdater = ctypes.cdll.LoadLibrary( os.path.join("/".join(__name__.split(".")) if __name__ != "__main__" else ".", "qalc-update-exchange-rates.so") ) qalc_update_exchange_rates = QalcExchangeRatesUpdater._Z20upda...
25.184211
79
0.617555
2176bd40b94b346745b8e60c8cd96eee5c6444d3
2,538
py
Python
project_test/tests/test_005_resolver.py
MtzwOsk/autobreadcrumbs
75e2fd1cc74db790c5fdc924d6fa9410ee7caa45
[ "MIT" ]
null
null
null
project_test/tests/test_005_resolver.py
MtzwOsk/autobreadcrumbs
75e2fd1cc74db790c5fdc924d6fa9410ee7caa45
[ "MIT" ]
null
null
null
project_test/tests/test_005_resolver.py
MtzwOsk/autobreadcrumbs
75e2fd1cc74db790c5fdc924d6fa9410ee7caa45
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from django.core.urlresolvers import reverse from autobreadcrumbs.resolver import PathBreadcrumbResolver # Autodiscovering is disabled since it allready have be executed # previously, see warning from "test_004_autodiscover.py" # from autobreadcrumbs.discover import autodiscover...
22.069565
66
0.509062
21773447f02a33a437fe0c12beffe1d346edd743
7,480
py
Python
mixer/api.py
ooojustin/mixer.py
9195ecb3f30772c0e982cd92a27f7f56ac05a2a8
[ "MIT" ]
3
2019-08-28T00:51:23.000Z
2020-03-26T01:19:19.000Z
mixer/api.py
ooojustin/mixer.py
9195ecb3f30772c0e982cd92a27f7f56ac05a2a8
[ "MIT" ]
null
null
null
mixer/api.py
ooojustin/mixer.py
9195ecb3f30772c0e982cd92a27f7f56ac05a2a8
[ "MIT" ]
null
null
null
import aiohttp import dateutil.parser import json from datetime import datetime, timezone, timedelta from enum import Enum from . import exceptions as MixerExceptions from .objects import MixerUser, MixerChannel
34.62963
104
0.61123