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
2e4c314862be76fd6a5e4ccb10c67ae77671cff4
1,770
py
Python
evaluation/experiment/sentence_classification/training.py
UKPLab/arxiv2018-xling-sentence-embeddings
95305c1a3d6d3e8c5f5365db463ba11cc9bd33b1
[ "Apache-2.0" ]
196
2018-02-21T09:26:49.000Z
2021-10-05T12:20:11.000Z
evaluation/experiment/sentence_classification/training.py
UKPLab/arxiv2018-xling-sentence-embeddings
95305c1a3d6d3e8c5f5365db463ba11cc9bd33b1
[ "Apache-2.0" ]
3
2018-06-28T15:17:31.000Z
2019-07-22T17:09:45.000Z
evaluation/experiment/sentence_classification/training.py
UKPLab/arxiv2018-xling-sentence-embeddings
95305c1a3d6d3e8c5f5365db463ba11cc9bd33b1
[ "Apache-2.0" ]
24
2018-03-05T19:01:32.000Z
2022-02-25T03:01:51.000Z
import math import numpy as np from experiment.utils.training import BatchedTraining component = SentenceClassificationBatchedTraining
32.777778
112
0.672316
2e4c5aa2e4e0404fffa88a1c14672d6de337f9d8
5,096
py
Python
spec/explainers/random_attention.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
2
2020-11-26T07:46:48.000Z
2021-07-28T08:06:58.000Z
spec/explainers/random_attention.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
null
null
null
spec/explainers/random_attention.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
null
null
null
import torch from spec import constants from spec.explainers.explainer import Explainer from spec.explainers.utils import filter_word_ids_with_non_zero_probability
43.186441
80
0.61617
2e4ce02ba83abe7b1d661489dcf0a33228a2cf30
8,373
py
Python
game_jam/Source/main.py
AustinLittle2020/CS-Hangout-Game_Jam
44216ad0166023e1b45b4b00c83098fce1cb8264
[ "MIT" ]
null
null
null
game_jam/Source/main.py
AustinLittle2020/CS-Hangout-Game_Jam
44216ad0166023e1b45b4b00c83098fce1cb8264
[ "MIT" ]
1
2021-12-20T07:19:45.000Z
2021-12-20T07:19:45.000Z
game_jam/Source/main.py
AustinLittle2020/CS-Hangout-Game_Jam
44216ad0166023e1b45b4b00c83098fce1cb8264
[ "MIT" ]
1
2021-12-20T07:15:15.000Z
2021-12-20T07:15:15.000Z
import pygame import os import time from spaceship import * from pygame.locals import * # constants WIDTH, HEIGHT = 700, 800 WINDOW = pygame.display.set_mode((WIDTH, HEIGHT)) pygame.display.set_caption("Failure is Inevitable") BLACK = (0, 0, 0) FPS = 60 VEL = 4 p_x = 330 p_y = 650 width = 50 height = 50 movement = Fa...
30.227437
105
0.54413
2e4e5a5c9c0e1e8ff2e56cee306ac39096e94fd8
6,529
py
Python
shotmanager/vectorPathHandler.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
68
2019-09-23T03:27:05.000Z
2022-03-12T03:00:41.000Z
shotmanager/vectorPathHandler.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
22
2019-10-26T20:15:56.000Z
2022-02-12T05:41:56.000Z
shotmanager/vectorPathHandler.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
33
2019-09-29T19:52:19.000Z
2022-03-12T03:00:43.000Z
# # Code common across shots to handle movement on paths # from pymavlink import mavutil import location_helpers import shotLogger from pathHandler import PathHandler from shotManagerConstants import * import math from vector3 import Vector3 logger = shotLogger.logger #Path accel/decel constants WPNAV_ACCEL = 200 WP...
35.483696
137
0.627202
2e4e6cf733e54eca65a602d7e3bfa467d83a46b3
98
py
Python
transfer_app/apps.py
qbrc-cnap/cnap
624683e91a64c3b4934b578c59db850242d2f94c
[ "MIT" ]
1
2021-07-08T14:06:04.000Z
2021-07-08T14:06:04.000Z
transfer_app/apps.py
qbrc-cnap/cnap
624683e91a64c3b4934b578c59db850242d2f94c
[ "MIT" ]
12
2020-02-12T00:10:53.000Z
2021-06-10T21:24:45.000Z
transfer_app/apps.py
qbrc-cnap/cnap
624683e91a64c3b4934b578c59db850242d2f94c
[ "MIT" ]
null
null
null
from django.apps import AppConfig
16.333333
35
0.77551
2e4f90dd590f96bab2de9aa670fa47169809eee6
375
py
Python
python/imjoy_rpc/__main__.py
thewtex/imjoy-rpc
cc62c3881051b2fd9257b15cf460bc6f23f29208
[ "MIT" ]
null
null
null
python/imjoy_rpc/__main__.py
thewtex/imjoy-rpc
cc62c3881051b2fd9257b15cf460bc6f23f29208
[ "MIT" ]
null
null
null
python/imjoy_rpc/__main__.py
thewtex/imjoy-rpc
cc62c3881051b2fd9257b15cf460bc6f23f29208
[ "MIT" ]
null
null
null
import asyncio from imjoy_rpc import api if __name__ == "__main__": api.export(ImJoyPlugin(), {"debug": True, "url": "http://localhost:9988"})
23.4375
78
0.650667
2e50d32fa06f70e5e135d222e062d8b6f5dbc18d
1,877
py
Python
more_or_less/more_plugin.py
jeroen-dhollander/python-paginator
8c60ae6dd64a7440feda4561440117d9bebc3ae7
[ "CC0-1.0" ]
3
2018-09-26T20:07:51.000Z
2021-07-10T11:59:44.000Z
more_or_less/more_plugin.py
jeroen-dhollander/python-paginator
8c60ae6dd64a7440feda4561440117d9bebc3ae7
[ "CC0-1.0" ]
1
2020-02-19T10:15:38.000Z
2020-03-14T21:48:55.000Z
more_or_less/more_plugin.py
jeroen-dhollander/python-more-or-less
8c60ae6dd64a7440feda4561440117d9bebc3ae7
[ "CC0-1.0" ]
null
null
null
from abc import ABC, abstractmethod
31.813559
93
0.574853
2e51536d35690c069b3289446524366923e72f15
8,183
py
Python
IntensivregisterUpdate.py
fe-lix-werner/covid19de_monitor
3867676756a36f06c10b348e53afba125d244525
[ "MIT" ]
2
2021-05-06T21:00:09.000Z
2021-06-26T11:51:19.000Z
IntensivregisterUpdate.py
fe-lix-werner/covid19de_monitor
3867676756a36f06c10b348e53afba125d244525
[ "MIT" ]
3
2020-10-29T06:20:06.000Z
2021-01-16T16:17:08.000Z
IntensivregisterUpdate.py
fe-lix-werner/covid19de_monitor
3867676756a36f06c10b348e53afba125d244525
[ "MIT" ]
3
2020-10-28T16:45:23.000Z
2020-12-09T13:35:09.000Z
#!/usr/bin/env python3 import requests import json import argparse import datetime import io import threading BL_API = 'https://www.intensivregister.de/api/public/reporting/laendertabelle' LK_API = 'https://diviexchange.blob.core.windows.net/%24web/DIVI_Intensivregister_Auszug_pro_Landkreis.csv' BL_DICT = {'BW': 'BAD...
39.723301
342
0.630331
2e526a16cee44513824483cfa4aeb95d48a88e2e
4,316
py
Python
pyhanko/pdf_utils/crypt/filter_mixins.py
MatthiasValvekens/pdf-stamp
08fc0fc8cd5f82845e72a1c0efde1a12d64970ce
[ "MIT" ]
5
2020-08-06T15:25:21.000Z
2020-11-28T04:40:02.000Z
pyhanko/pdf_utils/crypt/filter_mixins.py
MatthiasValvekens/pdf-stamp
08fc0fc8cd5f82845e72a1c0efde1a12d64970ce
[ "MIT" ]
1
2020-11-11T10:46:08.000Z
2020-11-11T10:46:08.000Z
pyhanko/pdf_utils/crypt/filter_mixins.py
MatthiasValvekens/pdf-stamp
08fc0fc8cd5f82845e72a1c0efde1a12d64970ce
[ "MIT" ]
3
2020-10-15T20:48:40.000Z
2020-11-21T13:28:18.000Z
import abc import secrets from pyhanko.pdf_utils import generic from pyhanko.pdf_utils.crypt._util import ( aes_cbc_decrypt, aes_cbc_encrypt, rc4_encrypt, ) from pyhanko.pdf_utils.crypt.api import CryptFilter, SecurityHandlerVersion from ._legacy import legacy_derive_object_key
29.162162
79
0.589435
2e527faed8095c3ea58150eacca0a778dfb4545f
2,693
py
Python
pyscrubber.py
sanketsaurav/nlm-scrubber-docker
dbd2529b8b2e453f0800e1b2a4126df026e45190
[ "MIT" ]
8
2019-04-11T17:37:38.000Z
2021-07-26T17:03:30.000Z
pyscrubber.py
sanketsaurav/nlm-scrubber-docker
dbd2529b8b2e453f0800e1b2a4126df026e45190
[ "MIT" ]
null
null
null
pyscrubber.py
sanketsaurav/nlm-scrubber-docker
dbd2529b8b2e453f0800e1b2a4126df026e45190
[ "MIT" ]
2
2020-01-29T00:37:25.000Z
2020-09-26T06:27:04.000Z
#!/usr/bin/env python import uuid import os import subprocess import shutil DOC_DELIMITER = '\n##### DOCUMENT #############################################################' if __name__ == "__main__": print(scrub(['testing', 'My name is Robert Hafner.', 'This string is also a test. 1/19/1998']))
33.246914
167
0.57928
2e528039973bc6fa5f650d3dd268fb60bdd771de
2,569
py
Python
src/galaxy_crawler/models/helper.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
2
2019-12-24T10:45:37.000Z
2022-03-04T00:47:14.000Z
src/galaxy_crawler/models/helper.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
2
2019-10-31T17:42:36.000Z
2020-03-24T18:20:41.000Z
src/galaxy_crawler/models/helper.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING import pandas as pd from galaxy_crawler.models import utils from galaxy_crawler.models import v1 as models if TYPE_CHECKING: from datetime import datetime from typing import List, Optional from sqlalchemy.engine import Engine def get_roles_df(engine: 'Engine', except_ro...
40.777778
116
0.679253
2e52978a04dbb6b314c47e801d5498f9f38d6a4e
2,065
py
Python
frameworks/tc_scikit/features/dependency_distribution_spacy.py
Asteur/textclassification
80222e99e1a195031cf8e98bc294a09e498c29a3
[ "MIT" ]
5
2018-08-12T19:30:30.000Z
2022-03-04T15:27:31.000Z
frameworks/tc_scikit/features/dependency_distribution_spacy.py
Asteur/textclassification
80222e99e1a195031cf8e98bc294a09e498c29a3
[ "MIT" ]
null
null
null
frameworks/tc_scikit/features/dependency_distribution_spacy.py
Asteur/textclassification
80222e99e1a195031cf8e98bc294a09e498c29a3
[ "MIT" ]
2
2018-07-13T02:06:48.000Z
2020-12-10T13:35:17.000Z
import logging from collections import OrderedDict import numpy as np from sklearn.base import BaseEstimator from sklearn.feature_selection import SelectKBest, chi2 from sklearn.pipeline import Pipeline from sklearn.preprocessing import Normalizer from frameworks.tc_scikit.models.tiger import TIGER_TAGSET_SPACY d...
32.777778
88
0.659564
2e52f62008c27b479273629366f87f8875845031
4,728
py
Python
structsolve/arc_length_riks.py
saullocastro/structsolve
3c325068ca13e8632f506fb18c2ea5de495c581e
[ "BSD-2-Clause" ]
1
2022-03-24T16:15:04.000Z
2022-03-24T16:15:04.000Z
structsolve/arc_length_riks.py
saullocastro/structsolve
3c325068ca13e8632f506fb18c2ea5de495c581e
[ "BSD-2-Clause" ]
null
null
null
structsolve/arc_length_riks.py
saullocastro/structsolve
3c325068ca13e8632f506fb18c2ea5de495c581e
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from numpy import dot from scipy.sparse import csr_matrix, vstack as spvstack, hstack as sphstack from .static import solve from .logger import msg, warn def _solver_arc_length_riks(an, silent=False): r"""Arc-Length solver using the Riks method """ msg('_______________________________...
34.014388
116
0.544628
2e53c5028305c2f695ef7f89ee5abdf87898de3d
173
py
Python
torchsynth/__init__.py
Doddox-UV/torchsynth
574bdd5988d7802a42d9e9ec70dc515605c6aded
[ "Apache-2.0" ]
184
2021-04-11T19:56:25.000Z
2022-03-31T15:30:44.000Z
torchsynth/__init__.py
Doddox-UV/torchsynth
574bdd5988d7802a42d9e9ec70dc515605c6aded
[ "Apache-2.0" ]
207
2021-03-04T02:58:43.000Z
2021-04-10T20:20:54.000Z
torchsynth/__init__.py
Doddox-UV/torchsynth
574bdd5988d7802a42d9e9ec70dc515605c6aded
[ "Apache-2.0" ]
5
2021-04-25T00:38:06.000Z
2021-10-01T11:08:13.000Z
from torchsynth.__info__ import ( # noqa: F401 __author__, __author_email__, __copyright__, __docs__, __homepage__, __license__, __version__, )
17.3
47
0.676301
2e53c6858211b2819fa897c860639a3bd48a5cee
3,245
py
Python
interactive_map_tester/interactive_map_tester/visualizeInteractiveMap.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-06-27T02:01:22.000Z
2021-06-27T02:01:22.000Z
interactive_map_tester/interactive_map_tester/visualizeInteractiveMap.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-09-30T01:56:04.000Z
2021-09-30T10:26:13.000Z
interactive_map_tester/interactive_map_tester/visualizeInteractiveMap.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-09-30T01:52:28.000Z
2021-09-30T01:52:28.000Z
# Import ROS2 libraries import rclpy from rclpy.node import Node from cv_bridge import CvBridge, CvBridgeError from rclpy.qos import QoSProfile from rclpy.callback_groups import ReentrantCallbackGroup from rclpy.executors import MultiThreadedExecutor # Import message files from sensor_msgs.msg import Image from autono...
32.45
105
0.646533
2e53f2b6759936a175fbb3e4afe7b5be958c9128
79
py
Python
rest_framework_captcha/__init__.py
leonardoarroyo/restframework-catpcha
c1acf5904ba8c48bb58e104195380b0bbce1ed8e
[ "MIT" ]
null
null
null
rest_framework_captcha/__init__.py
leonardoarroyo/restframework-catpcha
c1acf5904ba8c48bb58e104195380b0bbce1ed8e
[ "MIT" ]
null
null
null
rest_framework_captcha/__init__.py
leonardoarroyo/restframework-catpcha
c1acf5904ba8c48bb58e104195380b0bbce1ed8e
[ "MIT" ]
1
2020-12-11T21:38:09.000Z
2020-12-11T21:38:09.000Z
default_app_config = 'rest_framework_captcha.apps.RestFrameworkCaptchaConfig'
26.333333
77
0.886076
2e5512d26ff378d4e8524182eb1fa3deb226d67e
1,027
py
Python
b64.py
Orphan-Crippler/b64
a93ab8bc96ae0b443911cb28a57ec94f4eab29bb
[ "BSD-3-Clause" ]
null
null
null
b64.py
Orphan-Crippler/b64
a93ab8bc96ae0b443911cb28a57ec94f4eab29bb
[ "BSD-3-Clause" ]
null
null
null
b64.py
Orphan-Crippler/b64
a93ab8bc96ae0b443911cb28a57ec94f4eab29bb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Libraries from base64 import b64encode, b64decode # Messages warn = '!!!!!!!!!!!!!!!!!!!!!!!! WARNING: ' valid = '\nPlease Enter a Valid Entry!\n' # Menu/Encode/Decode Logic #Main Menu Loop while True: try: app(input('\nEnter 1 to Encode\n\nEnter 2 to Decode\n\nEnter q ...
23.883721
78
0.487829
2e55f7470f71ff63d2fb4072b25056d9e57a9772
491
py
Python
scripts/preprocessing/popoolationTE_ref_fasta.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
62
2015-01-18T15:30:48.000Z
2022-03-06T08:23:40.000Z
scripts/preprocessing/popoolationTE_ref_fasta.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
49
2015-01-20T12:57:45.000Z
2022-03-22T15:05:46.000Z
scripts/preprocessing/popoolationTE_ref_fasta.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
28
2015-01-21T21:14:46.000Z
2022-02-20T21:43:31.000Z
import os import sys import subprocess sys.path.append(snakemake.config['args']['mcc_path']) import scripts.mccutils as mccutils if __name__ == "__main__": main()
30.6875
81
0.704684
2e56257d1dcde4b6d5d35bb6f662c1c19842ef6e
325
py
Python
code/examples/04-adc/adc_pot_servo.py
yuanyanhui/intro-upy-esp32
5f066ca8b1804dc6032e8f0a5957acd6e36baffb
[ "MIT" ]
null
null
null
code/examples/04-adc/adc_pot_servo.py
yuanyanhui/intro-upy-esp32
5f066ca8b1804dc6032e8f0a5957acd6e36baffb
[ "MIT" ]
null
null
null
code/examples/04-adc/adc_pot_servo.py
yuanyanhui/intro-upy-esp32
5f066ca8b1804dc6032e8f0a5957acd6e36baffb
[ "MIT" ]
1
2022-03-09T08:40:41.000Z
2022-03-09T08:40:41.000Z
""" Control servo using potentiometer """ from machine import Pin, ADC, PWM pot = ADC(Pin(32), atten = ADC.ATTN_11DB) # - ADC servo = PWM(Pin(33), freq = 50) # while True: adc_value = pot.read() pulse_width_value = (125 - 25)/4095 * adc_value + 25 servo.duty(int(pulse_width_value))
23.214286
56
0.621538
2e56e1fd3a0ac1e94ebfe17d566b249e1081cc8e
3,720
py
Python
project7/project7-lp-single.py
karulont/combopt
98ad05f574d1ce355fc653df60bedde8a3bb838b
[ "MIT" ]
1
2016-12-23T08:38:57.000Z
2016-12-23T08:38:57.000Z
project7/project7-lp-single.py
karulont/combopt
98ad05f574d1ce355fc653df60bedde8a3bb838b
[ "MIT" ]
null
null
null
project7/project7-lp-single.py
karulont/combopt
98ad05f574d1ce355fc653df60bedde8a3bb838b
[ "MIT" ]
null
null
null
from gurobipy import * from sys import argv import json import math import drawful if __name__ == '__main__': import time start = time.clock() (orig_frames, solution1, solution2) = main() end = time.clock() print("time: {0:.3f} s".format(end - start)) drawful.drawW...
27.555556
89
0.508065
2e5744a9bed19f5bada449acfd9d1b91549e0594
601
py
Python
exam_001/q004_verb_post.py
a1852rw/system_propraming
795ce06e9c1b48552577de472194646bab240541
[ "MIT" ]
2
2018-07-02T09:48:28.000Z
2018-07-04T10:17:40.000Z
exam_001/q004_verb_post.py
a1852rw/aiit_system_programing
795ce06e9c1b48552577de472194646bab240541
[ "MIT" ]
null
null
null
exam_001/q004_verb_post.py
a1852rw/aiit_system_programing
795ce06e9c1b48552577de472194646bab240541
[ "MIT" ]
null
null
null
print(verb_post("play")) print(verb_post("like")) print(verb_post("try")) print(verb_post("picnic")) print(verb_post("write")) print(verb_post("go")) print(verb_post("read"))
22.259259
63
0.47421
2e59427f48e64e36035d7a96d2e7bfa4cb4b20f1
4,515
py
Python
src/main.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
src/main.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
src/main.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
import select import socket import struct import traceback import logging import time import numpy as np import queue import random,threading,time from translate import pose_predict import csv import time if __name__=="__main__": # create model model = pose_predict() # create socket ...
31.137931
95
0.534219
2e600fb2c6c670b82e80a94ddaed1f08bcc6b44f
2,049
py
Python
plot_breakdown.py
akashlevy/ENGR241-Q1
e8bf8aa1cac0671ec32d95d729568087d0cb2b5f
[ "MIT" ]
null
null
null
plot_breakdown.py
akashlevy/ENGR241-Q1
e8bf8aa1cac0671ec32d95d729568087d0cb2b5f
[ "MIT" ]
null
null
null
plot_breakdown.py
akashlevy/ENGR241-Q1
e8bf8aa1cac0671ec32d95d729568087d0cb2b5f
[ "MIT" ]
null
null
null
import csv, glob, re import matplotlib.pyplot as plt import numpy as np from intersection import intersection devre = re.compile(r'\[(.*)\(') # Read in data devices = ["Al_%.1f_%d" % (t1, t2) for t1 in np.arange(0.5, 2.5, 0.5) for t2 in np.arange(5, 15, 5)] devices += ["Al2O3_%.1f_%d" % (t1, t2) for t1 in np.arange(0...
44.543478
131
0.490483
2e61401fb8829929663164716c5983c2dde332cf
2,421
py
Python
lib/models/model_factory.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
21
2020-01-22T05:18:52.000Z
2021-09-28T15:55:10.000Z
lib/models/model_factory.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
null
null
null
lib/models/model_factory.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
10
2020-01-30T14:25:50.000Z
2020-08-25T02:03:50.000Z
import torch.nn as nn import torch.nn.functional as F from torchvision import models import pretrainedmodels from . import resnet_fpn from . import dla
37.246154
80
0.576208
2e6176c680d77466ad6487a42cee8d747475bd69
5,564
py
Python
unpackai/interp/latent.py
vtecftwy/unpackai
5c6ff1ff141b15430ccf02cab34e9690ec168fda
[ "MIT" ]
18
2021-08-30T00:15:06.000Z
2022-01-28T01:41:16.000Z
unpackai/interp/latent.py
vtecftwy/unpackai
5c6ff1ff141b15430ccf02cab34e9690ec168fda
[ "MIT" ]
75
2021-09-01T08:13:25.000Z
2022-02-07T13:18:55.000Z
unpackai/interp/latent.py
vtecftwy/unpackai
5c6ff1ff141b15430ccf02cab34e9690ec168fda
[ "MIT" ]
4
2021-08-30T03:22:28.000Z
2021-11-13T12:48:06.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/15_interp_latent.ipynb (unless otherwise specified). __all__ = ['CosineSearch', 'InterpEmbeddings'] # Cell import numpy as np import pandas as pd from typing import Dict, List, Any from forgebox.html import DOM # Cell # Cell
33.926829
100
0.592739
2e6262da82cf152dfcab69d6e93ee5086457a9ff
153
py
Python
bin/trigs/tritrigs-triangle-4.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/trigs/tritrigs-triangle-4.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/trigs/tritrigs-triangle-4.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """ 1 solution. """ import puzzler from puzzler.puzzles.tritrigs import TritrigsTriangle4 puzzler.run(TritrigsTriangle4)
12.75
54
0.751634
2e63134eca33ec86bdf84b7c00c96006e7888c50
16,775
py
Python
src/moderations/slack.py
definitelysecure/shipwrecked
3b79c6df63ed3c271ccb1b8a21081c76bcd9f08a
[ "MIT" ]
null
null
null
src/moderations/slack.py
definitelysecure/shipwrecked
3b79c6df63ed3c271ccb1b8a21081c76bcd9f08a
[ "MIT" ]
null
null
null
src/moderations/slack.py
definitelysecure/shipwrecked
3b79c6df63ed3c271ccb1b8a21081c76bcd9f08a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime import json import re import requests from django.http import HttpResponse from accounts.models import AuthToken from moderations.models import Moderation, ModerationAction from moderations.utils import timedelta_to_str def moderate(data): """ ""...
33.086785
102
0.497466
2e64787156e8693fdf0a33b208148208557d314e
1,790
py
Python
flags/ctf/views.py
fredericoricco-debug/groupproject
bf22303cff7a2a4bc097f568f0df0b5d72000c3b
[ "MIT" ]
null
null
null
flags/ctf/views.py
fredericoricco-debug/groupproject
bf22303cff7a2a4bc097f568f0df0b5d72000c3b
[ "MIT" ]
null
null
null
flags/ctf/views.py
fredericoricco-debug/groupproject
bf22303cff7a2a4bc097f568f0df0b5d72000c3b
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect from django.template import loader from django.http import HttpResponse from django.contrib import messages from django.contrib.auth.models import User ...
27.121212
74
0.681006
2e64c50e5e3b01bee5233b429195480822031b6d
1,407
py
Python
examples/dopamine/train.py
jurgisp/xmanager
7c59aed661b93817589bb1904e7d099d26afa62f
[ "Apache-2.0" ]
392
2021-10-07T00:12:17.000Z
2022-03-30T11:06:35.000Z
examples/dopamine/train.py
jurgisp/xmanager
7c59aed661b93817589bb1904e7d099d26afa62f
[ "Apache-2.0" ]
8
2021-10-20T14:59:07.000Z
2022-03-31T10:52:47.000Z
examples/dopamine/train.py
jurgisp/xmanager
7c59aed661b93817589bb1904e7d099d26afa62f
[ "Apache-2.0" ]
11
2021-11-16T13:54:18.000Z
2022-03-30T03:13:50.000Z
# Copyright 2021 DeepMind Technologies Limited # # 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 agr...
31.977273
74
0.766169
2e651a2fe83d07fb048afcf923ef6a66a310e429
2,814
py
Python
APS.py
PabloGramos/APS
a7825628f8ce7ef46da413948c40d03c8118717e
[ "MIT" ]
null
null
null
APS.py
PabloGramos/APS
a7825628f8ce7ef46da413948c40d03c8118717e
[ "MIT" ]
null
null
null
APS.py
PabloGramos/APS
a7825628f8ce7ef46da413948c40d03c8118717e
[ "MIT" ]
null
null
null
print(""" -------------CALCULADORA-------------- -----------Pablo--Vincius------------ """) corpo=True while corpo == True: print(""" MENU 1 - Soma 2 - Subtrao 3 - Multiplicao 4 - Diviso 5 - Raiz Quadrada 6 - Seno, Cosseno, Tangente 0 - Sair """) op = int(input(...
26.299065
121
0.429638
2e673f4da5b6854fbcd837a5389934a4ea9a7719
1,452
py
Python
day_2.py
kurtrm/advent_of_code_2018
a3db9df31de730479c8c2b3f2869b274a0e024e9
[ "MIT" ]
null
null
null
day_2.py
kurtrm/advent_of_code_2018
a3db9df31de730479c8c2b3f2869b274a0e024e9
[ "MIT" ]
null
null
null
day_2.py
kurtrm/advent_of_code_2018
a3db9df31de730479c8c2b3f2869b274a0e024e9
[ "MIT" ]
null
null
null
""" """ from collections import Counter from read_file import read_input def checksum(filename): """ """ threes = 0 twos = 0 ids = read_input(filename) for label_id in ids: counts = {value: key for key, value in Counter(label_id).items()} try: count...
23.419355
76
0.472452
2e675938f3d093c0365d3aa398c262cefa7433e0
3,357
py
Python
home-assistant-backup.py
scaarup/home-assistant-backup
1310054ebd41550292d45329411500cb08b369a1
[ "MIT" ]
null
null
null
home-assistant-backup.py
scaarup/home-assistant-backup
1310054ebd41550292d45329411500cb08b369a1
[ "MIT" ]
null
null
null
home-assistant-backup.py
scaarup/home-assistant-backup
1310054ebd41550292d45329411500cb08b369a1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Created by Sren Christian Aarup, sc@aarup.org # https://github.com/scaarup/home-assistant-backup # api ref.: https://developers.home-assistant.io/docs/api/supervisor/endpoints import requests,json,datetime,gzip,sys,datetime from datetime import timedelta, date token = 'Bearer <token>' host = '<...
34.96875
105
0.670539
2e6cd67c9f0d05ca91537b7f522e588f70c9a9c4
1,319
py
Python
src/features/build_features.py
mikolajsacha/tweetsclassification
33756cf6877f9cec328f08a3c728b26bf123bc8f
[ "MIT" ]
4
2016-11-22T11:26:06.000Z
2017-02-22T12:56:45.000Z
src/features/build_features.py
mikolajsacha/tweetsclassification
33756cf6877f9cec328f08a3c728b26bf123bc8f
[ "MIT" ]
26
2016-11-08T20:04:37.000Z
2017-02-18T13:51:39.000Z
src/features/build_features.py
mikolajsacha/tweetsclassification
33756cf6877f9cec328f08a3c728b26bf123bc8f
[ "MIT" ]
null
null
null
""" Contains class FeatureBuilder for building feature set from given data set and word embedding """ import numpy as np
36.638889
113
0.690675
2e6d28bc002be9af0e517b72024d00a394efa949
1,624
py
Python
json/conanfile.py
kapilsh/conan-scripts
31c55397a2d721c80da5dbd6a6c738accfdbb241
[ "MIT" ]
null
null
null
json/conanfile.py
kapilsh/conan-scripts
31c55397a2d721c80da5dbd6a6c738accfdbb241
[ "MIT" ]
null
null
null
json/conanfile.py
kapilsh/conan-scripts
31c55397a2d721c80da5dbd6a6c738accfdbb241
[ "MIT" ]
null
null
null
import os from conans import ConanFile from conans.tools import download, check_sha256
33.142857
79
0.633621
2e6d68261b931f6d3c99896fa9c575feee129b51
5,958
py
Python
projects/seeker/tasks/dialogue.py
DrMatters/ParlAI
755b9dcb778deb5a82029d69ae3260579c6450f1
[ "MIT" ]
null
null
null
projects/seeker/tasks/dialogue.py
DrMatters/ParlAI
755b9dcb778deb5a82029d69ae3260579c6450f1
[ "MIT" ]
null
null
null
projects/seeker/tasks/dialogue.py
DrMatters/ParlAI
755b9dcb778deb5a82029d69ae3260579c6450f1
[ "MIT" ]
1
2022-01-24T13:22:18.000Z
2022-01-24T13:22:18.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ SeeKeR Dialogue Tasks. """ from typing import Optional from parlai.core.opt import Opt from parlai.core.params impor...
34.241379
88
0.643337
2e6d9f56ad67c28ab101dfa720b2f55910ca38c7
350
py
Python
chrispile/util.py
FNNDSC/chrispile
9eb688b17bd3392c23b5cc2a1e11470d78d6029a
[ "MIT" ]
null
null
null
chrispile/util.py
FNNDSC/chrispile
9eb688b17bd3392c23b5cc2a1e11470d78d6029a
[ "MIT" ]
null
null
null
chrispile/util.py
FNNDSC/chrispile
9eb688b17bd3392c23b5cc2a1e11470d78d6029a
[ "MIT" ]
null
null
null
import abc from argparse import ArgumentParser, Namespace from .config import get_config
25
47
0.728571
2e6f1afc0f744ac9404e2211aba6de066e7ef17c
297
py
Python
Part_1_beginner/07_type_dictionary/rozwiazania/exercise_1.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_1_beginner/07_type_dictionary/rozwiazania/exercise_1.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_1_beginner/07_type_dictionary/rozwiazania/exercise_1.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
1
2021-02-20T08:30:56.000Z
2021-02-20T08:30:56.000Z
# Stwrz sownik, w ktrym kluczami bd rne przedmioty szkolne # a wartociami oceny uzyskane z tych przedmiotw grades = { "Matematyka": [4, 2, 6, 5, 3], "Fizyka": [5, 5, 2, 4, 3], "Chemia": [4, 1, 4, 5, 4], "Biologia": [3, 5, 5, 2, 5], } print("Przedmioty i oceny", grades)
24.75
65
0.599327
2e7040e11ae9ee1dfa29a9acc88975d2a9c16bff
703
py
Python
paper2/figures/calibration_default.py
dfm/mapping_stellar_surfaces
52d4ba1a726c65868e4a1290a801fe046fb2155f
[ "MIT" ]
10
2021-01-21T17:03:26.000Z
2021-12-19T17:49:28.000Z
paper2/figures/calibration_default.py
dfm/mapping_stellar_surfaces
52d4ba1a726c65868e4a1290a801fe046fb2155f
[ "MIT" ]
10
2021-01-21T15:55:53.000Z
2021-03-30T14:35:16.000Z
paper2/figures/calibration_default.py
dfm/mapping_stellar_surfaces
52d4ba1a726c65868e4a1290a801fe046fb2155f
[ "MIT" ]
2
2021-01-21T15:41:58.000Z
2021-01-25T16:26:15.000Z
from starry_process import calibrate import numpy as np import os import shutil # Utility funcs to move figures to this directory abspath = lambda *args: os.path.join( os.path.dirname(os.path.abspath(__file__)), *args ) copy = lambda name, src, dest: shutil.copyfile( abspath("data", name, src), abspath(dest) )...
31.954545
75
0.755334
2e7169ec55a244a64b91496630b7d2210f0c8139
5,922
py
Python
python/ad/spectral_outlier.py
rislam/ad_examples
20e6dd2dbfd111ed5f69a9018180f7ef5ab627f6
[ "MIT" ]
1
2019-02-21T02:28:34.000Z
2019-02-21T02:28:34.000Z
python/ad/spectral_outlier.py
kinect59/ad_examples
bf0bb75faa3f713a2efef04b6b093e6a313825af
[ "MIT" ]
null
null
null
python/ad/spectral_outlier.py
kinect59/ad_examples
bf0bb75faa3f713a2efef04b6b093e6a313825af
[ "MIT" ]
null
null
null
import numpy.random as rnd from sklearn import manifold from sklearn.ensemble import IsolationForest from common.gen_samples import * """ pythonw -m ad.spectral_outlier """ if __name__ == "__main__": logger = logging.getLogger(__name__) args = get_command_args(debug=True, debug_args=["--debug", ...
33.647727
99
0.577676
2e71e3d05682a0aebe1f4b9f321ce88d5da677b1
5,042
py
Python
simchain/vm.py
Frank-gh/simchain
4dec42b6039730e4dcc0068209dd90200ee6b3d3
[ "Unlicense" ]
74
2018-11-14T02:36:13.000Z
2022-03-11T08:24:17.000Z
simchain/vm.py
Frank-gh/simchain
4dec42b6039730e4dcc0068209dd90200ee6b3d3
[ "Unlicense" ]
null
null
null
simchain/vm.py
Frank-gh/simchain
4dec42b6039730e4dcc0068209dd90200ee6b3d3
[ "Unlicense" ]
35
2019-01-16T04:18:24.000Z
2022-03-21T09:05:12.000Z
from .logger import logger from .ecc import convert_pubkey_to_addr,VerifyingKey,sha256d if __name__ == "__main__": from datatype import Vin,Vout from ecc import SigningKey,convert_pubkey_to_addr ## k = 12356 ## k1 = 23464 ## sk = SigningKey.from_number(k) ## pk = sk.get_verifying_key() ## ## ...
24.837438
76
0.527172
2e735a5e613348bc55e8ad80f97e09fd450063e0
442
py
Python
ceol/player/migrations/0003_auto_20200722_1728.py
pythify/backend-pithify
ac845bd96769d3cda1e32ea5c141598f0529db19
[ "MIT" ]
null
null
null
ceol/player/migrations/0003_auto_20200722_1728.py
pythify/backend-pithify
ac845bd96769d3cda1e32ea5c141598f0529db19
[ "MIT" ]
null
null
null
ceol/player/migrations/0003_auto_20200722_1728.py
pythify/backend-pithify
ac845bd96769d3cda1e32ea5c141598f0529db19
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-22 17:28 from django.db import migrations, models
23.263158
103
0.628959
2e73ac16adb060cc06fc6f0d2d05cbe18736f6a0
5,556
py
Python
bgx/validator-bgx/sawtooth_validator/journal/consensus/consensus_factory.py
sparsov/DGT-Kawartha-demo
edfbc18f2c70e813805ec23c28fbc35bf7866ffc
[ "Apache-2.0" ]
null
null
null
bgx/validator-bgx/sawtooth_validator/journal/consensus/consensus_factory.py
sparsov/DGT-Kawartha-demo
edfbc18f2c70e813805ec23c28fbc35bf7866ffc
[ "Apache-2.0" ]
10
2020-05-12T06:58:15.000Z
2022-02-26T23:59:35.000Z
bgx/validator-bgx/sawtooth_validator/journal/consensus/consensus_factory.py
DGT-Network/DGT-Mississauga
52b5f1f4015db2aa7196e727a25b399de5fbf3c3
[ "Apache-2.0" ]
1
2021-01-12T21:38:01.000Z
2021-01-12T21:38:01.000Z
# Copyright 2017 NTRLab # # 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, softw...
42.090909
145
0.667207
2e7700fe88b3734cb3e81c07b67868f5b2c4220d
19,554
py
Python
bin/ensemble_aws_accounts_eai_handler.py
nvonkorff/grand_central
ef8630bb1e717ff542903fd1e067e428fafafc2f
[ "MIT" ]
null
null
null
bin/ensemble_aws_accounts_eai_handler.py
nvonkorff/grand_central
ef8630bb1e717ff542903fd1e067e428fafafc2f
[ "MIT" ]
null
null
null
bin/ensemble_aws_accounts_eai_handler.py
nvonkorff/grand_central
ef8630bb1e717ff542903fd1e067e428fafafc2f
[ "MIT" ]
null
null
null
import logging import os import sys import uuid import splunk.admin as admin import ensemble_aws_accounts_schema import urllib import hashlib import base_eai_handler import log_helper import boto3 import json if sys.platform == 'win32': import msvcrt # Binary mode is required for persistent mode on Windows. ...
51.730159
270
0.668763
2e7726a4553ba265dc7d5e2d5a2ffbce3ef26f43
480
py
Python
tests/invertible_test_case.py
gregunz/invertransforms
3b0621c567d309ee054115cc90cb188808bd63b2
[ "BSD-3-Clause" ]
5
2019-10-14T18:56:08.000Z
2019-10-17T13:50:11.000Z
tests/invertible_test_case.py
gregunz/invertransforms
3b0621c567d309ee054115cc90cb188808bd63b2
[ "BSD-3-Clause" ]
1
2021-04-06T18:05:19.000Z
2021-04-06T18:05:19.000Z
tests/invertible_test_case.py
gregunz/invertransforms
3b0621c567d309ee054115cc90cb188808bd63b2
[ "BSD-3-Clause" ]
null
null
null
import random import unittest import torch import invertransforms as T
24
71
0.645833
2e7810efd3616472cfac0aa367ce42b73363d1b5
4,162
py
Python
nicos_sinq/zebra/setups/monochromator.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-03-26T10:30:45.000Z
2021-03-26T10:30:45.000Z
nicos_sinq/zebra/setups/monochromator.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_sinq/zebra/setups/monochromator.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
3
2020-08-04T18:35:05.000Z
2021-04-16T11:22:08.000Z
description = 'Devices for the ZEBRA monochromator' mota = 'SQ:ZEBRA:mota:' motb = 'SQ:ZEBRA:motb:' motd = 'SQ:ZEBRA:motd:' devices = dict( mtvl = device('nicos_ess.devices.epics.motor.EpicsMotor', epicstimeout = 3.0, description = 'Lower monochromator vertical translation', motorpv = mota...
34.97479
75
0.592023
2e79db4019af9551976d2be7470794d639b1bb48
15,886
py
Python
scripts/loading/ontology/psimi.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
5
2015-11-24T23:09:46.000Z
2019-11-06T17:48:13.000Z
scripts/loading/ontology/psimi.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
188
2017-08-28T22:39:03.000Z
2022-03-02T14:53:46.000Z
scripts/loading/ontology/psimi.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
7
2018-05-13T01:58:07.000Z
2021-06-25T19:08:33.000Z
import urllib.request, urllib.parse, urllib.error import logging import os from datetime import datetime import sys import importlib importlib.reload(sys) # Reload does the trick! from src.helpers import upload_file from scripts.loading.database_session import get_session from scripts.loading.ontology import read_owl ...
39.715
165
0.585295
2e79f7ea432b2b3d219bca9a079a2d06945e6b96
5,312
py
Python
clac_module/listcalc.py
yourback/OfflineDataConversionAndDrawingSoftware
b50cbcf0fba22e536baaf77464c7aab289afc24f
[ "Apache-2.0" ]
null
null
null
clac_module/listcalc.py
yourback/OfflineDataConversionAndDrawingSoftware
b50cbcf0fba22e536baaf77464c7aab289afc24f
[ "Apache-2.0" ]
null
null
null
clac_module/listcalc.py
yourback/OfflineDataConversionAndDrawingSoftware
b50cbcf0fba22e536baaf77464c7aab289afc24f
[ "Apache-2.0" ]
null
null
null
from data_module.get_source_file import * import numpy as np if __name__ == '__main__': dc = DataCleaner() m = dc.get_chart_data("1") for key in m: print(key + ':' + m[key].__str__())
32.193939
79
0.515625
2e7ad10848efe85c68fbc9621bee7802f36c7718
100
py
Python
saleor/request_order/apps.py
AkioSky/FishMart
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
[ "BSD-3-Clause" ]
null
null
null
saleor/request_order/apps.py
AkioSky/FishMart
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
[ "BSD-3-Clause" ]
null
null
null
saleor/request_order/apps.py
AkioSky/FishMart
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig
16.666667
36
0.78
2e7b7593dba3a850dbee118f9ad9b5841c88cc75
293
py
Python
py3_cookbook/_1_data_structure/find_common_keys_in_two_dicts.py
yellowb/ml-sample
2f283c39d0d7ed4bafc324632100a17da0088237
[ "MIT" ]
null
null
null
py3_cookbook/_1_data_structure/find_common_keys_in_two_dicts.py
yellowb/ml-sample
2f283c39d0d7ed4bafc324632100a17da0088237
[ "MIT" ]
null
null
null
py3_cookbook/_1_data_structure/find_common_keys_in_two_dicts.py
yellowb/ml-sample
2f283c39d0d7ed4bafc324632100a17da0088237
[ "MIT" ]
null
null
null
""" Sample to find common keys between 2 dictionaries """ d1 = { 'a': 1, 'b': 2, 'c': 3, 'd': 4 } d2 = { 'b': 2, 'c': 3, 'd': 4, 'e': 5 } print(d1.keys() & d2.keys()) # intersection print(d1.keys() | d2.keys()) # union print(d1.keys() - d2.keys()) # diff
14.65
57
0.457338
2e7dc647373335b503a34a2d4a35865fb0a8ce24
372
py
Python
testserver/manage.py
akubera/batavia
b56f2a3f54242f81aea3a5a048356a03f0d49494
[ "BSD-3-Clause" ]
1
2018-05-17T08:46:16.000Z
2018-05-17T08:46:16.000Z
testserver/manage.py
akubera/batavia
b56f2a3f54242f81aea3a5a048356a03f0d49494
[ "BSD-3-Clause" ]
1
2021-06-10T23:39:56.000Z
2021-06-10T23:39:56.000Z
testserver/manage.py
akubera/batavia
b56f2a3f54242f81aea3a5a048356a03f0d49494
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": if sys.version_info[0] != 3: sys.stderr.write('Batavia requires Python 3' + os.linesep) sys.exit(1) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") from django.core.management import execute_from_co...
23.25
66
0.693548
2e7ddad188be683aa53d4150da78432b51cf923a
120
py
Python
week-6/flask-api-small/scripts/prediction.py
cgsanders/stat418-tools-in-datascience
4a86fd15386f47d0a59422226b13834bae5a1387
[ "MIT" ]
4
2019-04-21T08:49:52.000Z
2019-09-22T14:07:26.000Z
week-6/flask-api-small/scripts/prediction.py
cgsanders/stat418-tools-in-datascience
4a86fd15386f47d0a59422226b13834bae5a1387
[ "MIT" ]
58
2019-04-22T15:44:14.000Z
2019-06-04T19:50:54.000Z
week-6/flask-api-small/scripts/prediction.py
cgsanders/stat418-tools-in-datascience
4a86fd15386f47d0a59422226b13834bae5a1387
[ "MIT" ]
33
2019-04-03T01:48:34.000Z
2021-04-30T06:36:29.000Z
#!/usr/bin/env python3
17.142857
32
0.641667
2e7e0d9b1faef47626882f56fd831cc608dec063
118
py
Python
src/constants.py
masterbluecompact/boardroom-bot
b903038ee5a9183c81f03e45547642a5f4a757cf
[ "MIT" ]
null
null
null
src/constants.py
masterbluecompact/boardroom-bot
b903038ee5a9183c81f03e45547642a5f4a757cf
[ "MIT" ]
null
null
null
src/constants.py
masterbluecompact/boardroom-bot
b903038ee5a9183c81f03e45547642a5f4a757cf
[ "MIT" ]
null
null
null
TELEGRAM_API_TOKEN = '1978689233:AAGsYEAvbN3ZkrA5a77VTO9yc30VSNZs8lQ' BOT_USERNAME = 'boardroomv1bot' WEBHOOK_URL = ''
39.333333
69
0.847458
2e7e9c74fb34d9d539ee2c2a737c83639c165ce7
1,765
py
Python
aito/utils/_file_utils.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
6
2019-10-16T02:35:06.000Z
2021-02-03T13:39:43.000Z
aito/utils/_file_utils.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
23
2020-03-17T13:16:02.000Z
2021-04-23T15:09:51.000Z
aito/utils/_file_utils.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
null
null
null
import gzip import json import os import shutil from os import PathLike from pathlib import Path from typing import Dict, List import ndjson
30.964912
99
0.689518
2e80dd7978a3db15732cccc6a8f417efe3965c4c
946
py
Python
vol4/156.py
EdisonAlgorithms/ProjectEuler
95025ede2c92dbd3ed2dccc0f8a97e9a3db95ef0
[ "MIT" ]
null
null
null
vol4/156.py
EdisonAlgorithms/ProjectEuler
95025ede2c92dbd3ed2dccc0f8a97e9a3db95ef0
[ "MIT" ]
null
null
null
vol4/156.py
EdisonAlgorithms/ProjectEuler
95025ede2c92dbd3ed2dccc0f8a97e9a3db95ef0
[ "MIT" ]
null
null
null
import itertools import time def f(n, d): return sum(itertools.starmap(g, itertools.izip(digits(n), pows(10)))) def solve(L, d): n = 1 ret = 0 while True: m = f(n, d) if m == n: ret += n n += 1 elif m < n: n += max(1, (n - m) / (sum(1 for _ ...
20.12766
73
0.403805
2e82064a46395a03f52d064607c7f8ac759527bc
5,770
py
Python
codelibproj/codelibapp/migrations/0001_initial.py
ahegashira/CodeLibrary
4dca1eb8ec0c274e8dfb1db62a97920703df3240
[ "Apache-2.0" ]
null
null
null
codelibproj/codelibapp/migrations/0001_initial.py
ahegashira/CodeLibrary
4dca1eb8ec0c274e8dfb1db62a97920703df3240
[ "Apache-2.0" ]
null
null
null
codelibproj/codelibapp/migrations/0001_initial.py
ahegashira/CodeLibrary
4dca1eb8ec0c274e8dfb1db62a97920703df3240
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2 on 2019-06-04 18:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
49.741379
132
0.564991
2e84df5100eb34e590dde3692727724451d660e6
186
py
Python
congregation/codegen/python/libs/external/__init__.py
CCD-HRI/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
3
2020-10-05T16:30:15.000Z
2021-01-22T13:38:02.000Z
congregation/codegen/python/libs/external/__init__.py
multiparty/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
null
null
null
congregation/codegen/python/libs/external/__init__.py
multiparty/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
1
2021-08-13T07:28:30.000Z
2021-08-13T07:28:30.000Z
from congregation.codegen.python.libs.external.unary import * from congregation.codegen.python.libs.external.binary import * from congregation.codegen.python.libs.external.nary import *
46.5
62
0.83871
2e894c57c3b59c59676e670168876de12735924c
9,107
py
Python
libs/configs/DOTA1.0/dota_train/cfgs_res50_dotatrain_dcl_v7.py
Thinklab-SJTU/DCL_RetinaNet_Tensorflow
1d14c9800c3eb1975e8832978f7a263783d171ec
[ "Apache-2.0" ]
36
2020-11-19T07:23:42.000Z
2022-03-30T03:35:57.000Z
libs/configs/DOTA1.0/dota_train/cfgs_res50_dotatrain_dcl_v7.py
Thinklab-SJTU/DCL_RetinaNet_Tensorflow
1d14c9800c3eb1975e8832978f7a263783d171ec
[ "Apache-2.0" ]
4
2021-01-30T09:49:10.000Z
2021-12-05T12:49:11.000Z
libs/configs/DOTA1.0/dota_train/cfgs_res50_dotatrain_dcl_v7.py
Thinklab-SJTU/DCL_RetinaNet_Tensorflow
1d14c9800c3eb1975e8832978f7a263783d171ec
[ "Apache-2.0" ]
6
2020-11-23T07:54:47.000Z
2021-07-09T07:20:15.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import os import tensorflow as tf import math """ BCL + OMEGA = 180 / 8. {'0.7': {'tennis-court': 0.9030146006529745, 'ship': 0.5247147197113373, 'basketball-court': 0.5197288166873728, 'small-vehicle': 0.3876947548806594, 'harbo...
70.596899
581
0.726694
2e8a31039b719e32fd9540d0b31a493f407bf660
3,081
py
Python
src/korth_spirit/configuration/input_configuration.py
Korth-Spirit/Korth-Spirit
1bdaf6f46a4665f4d2a312e61e57d853b9dd5d84
[ "MIT" ]
null
null
null
src/korth_spirit/configuration/input_configuration.py
Korth-Spirit/Korth-Spirit
1bdaf6f46a4665f4d2a312e61e57d853b9dd5d84
[ "MIT" ]
null
null
null
src/korth_spirit/configuration/input_configuration.py
Korth-Spirit/Korth-Spirit
1bdaf6f46a4665f4d2a312e61e57d853b9dd5d84
[ "MIT" ]
null
null
null
# Copyright (c) 2021-2022 Johnathan P. Irvin # # 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, publ...
31.762887
72
0.612788
2e8a599c94ab88b6f514655190020c0bde169a1f
586
py
Python
data/data.py
owrior/snakeMach
1af8ca51badd3e23201ef5cc873e9179ee01c058
[ "MIT" ]
null
null
null
data/data.py
owrior/snakeMach
1af8ca51badd3e23201ef5cc873e9179ee01c058
[ "MIT" ]
null
null
null
data/data.py
owrior/snakeMach
1af8ca51badd3e23201ef5cc873e9179ee01c058
[ "MIT" ]
null
null
null
import numpy as np from sklearn.datasets import make_blobs from sklearn.preprocessing import normalize
25.478261
70
0.583618
2e8d37dec89478528db6577f4a7c15427ede6234
7,013
py
Python
sahara/tests/unit/plugins/mapr/utils/test_func_utils.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
null
null
null
sahara/tests/unit/plugins/mapr/utils/test_func_utils.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
null
null
null
sahara/tests/unit/plugins/mapr/utils/test_func_utils.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014, MapR Technologies # # 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 agree...
34.546798
76
0.592756
2e8e0133f4cc67b5978f48ca2c017cf170b948d8
609
py
Python
astronat/phot/MegaCam_PanSTARRS/MCgen2_PS1/Mixed_MegaCamGen2_PS1.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
1
2020-11-20T18:25:26.000Z
2020-11-20T18:25:26.000Z
astronat/phot/MegaCam_PanSTARRS/MCgen2_PS1/Mixed_MegaCamGen2_PS1.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
3
2020-09-09T06:10:20.000Z
2020-09-16T05:56:10.000Z
astronat/phot/MegaCam_PanSTARRS/MCgen2_PS1/Mixed_MegaCamGen2_PS1.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Mega-Cam gen2 band and PanSTARRS 1 band Mixed Functions.""" __author__ = "Nathaniel Starkman" __copyright__ = "Copyright 2018, " __credits__ = [ "http://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/en/megapipe/docs/filt.html" ] __all__ = [] ##################################################...
23.423077
77
0.320197
2e8e056676584d6baf6b9485f76064371025e1cf
8,405
py
Python
docs/rips/tests/test_cases.py
OPM/ResInsight-UserDocumentation
2af2c3a5ef297c0061d842944360a83bf8e49c36
[ "MIT" ]
1
2020-04-25T21:24:45.000Z
2020-04-25T21:24:45.000Z
docs/rips/tests/test_cases.py
OPM/ResInsight-UserDocumentation
2af2c3a5ef297c0061d842944360a83bf8e49c36
[ "MIT" ]
7
2020-02-11T07:42:10.000Z
2020-09-28T17:18:01.000Z
docs/rips/tests/test_cases.py
OPM/ResInsight-UserDocumentation
2af2c3a5ef297c0061d842944360a83bf8e49c36
[ "MIT" ]
2
2020-04-02T09:33:45.000Z
2020-04-09T19:44:53.000Z
import sys import os import math import pytest import grpc import tempfile sys.path.insert(1, os.path.join(sys.path[0], "../../")) import rips import dataroot def test_loadNonExistingCase(rips_instance, initialize_test): case_path = "Nonsense/Nonsense/Nonsense" with pytest.raises(grpc.RpcError): ...
37.690583
87
0.723974
2e8e45f33735173ba981879373ba6646052dcfb9
104
py
Python
fantasyanalyzer/main/main.py
dmowen2/FantasyAnalyzer
b113615ac711560718c595eeef3e771a2a4e2a69
[ "MIT" ]
null
null
null
fantasyanalyzer/main/main.py
dmowen2/FantasyAnalyzer
b113615ac711560718c595eeef3e771a2a4e2a69
[ "MIT" ]
null
null
null
fantasyanalyzer/main/main.py
dmowen2/FantasyAnalyzer
b113615ac711560718c595eeef3e771a2a4e2a69
[ "MIT" ]
null
null
null
#basic file to run the program import mainApp startprogram = mainApp.commandLine() startprogram.run()
14.857143
36
0.788462
2e8e8e12d320aec8142afc42dd8fc9a16e93586d
6,103
py
Python
iamim_gt_planner.py
cernodile/py-deltaparser
a1767e0429d8bf4e12364c4dcce41e7433065049
[ "MIT" ]
2
2021-04-21T22:05:50.000Z
2021-08-14T21:45:03.000Z
iamim_gt_planner.py
cernodile/py-deltaparser
a1767e0429d8bf4e12364c4dcce41e7433065049
[ "MIT" ]
1
2021-06-11T14:18:23.000Z
2021-06-11T15:16:02.000Z
iamim_gt_planner.py
cernodile/py-deltaparser
a1767e0429d8bf4e12364c4dcce41e7433065049
[ "MIT" ]
null
null
null
#!/usr/bin/python """ @cernodile/py-deltaparser A Python script to convert Growtopia's items.dat to human-readable indexable format. File: iamim_gt_planner.py Purpose: To generate data file for Iamim's GT Planner License: See LICENSE.txt in project root directory. """ import csv import item_parser def filter(item): "...
35.690058
203
0.636081
2e8f0b81bbd9561984ac38ea8dfc729ccec17dd2
236
py
Python
organizerui/model.py
angusmacdonald/gopro-organizer
6fc77fab231d016186b4bb4df5e24ecf039b72d9
[ "MIT" ]
6
2016-04-23T23:44:10.000Z
2020-10-30T07:35:19.000Z
organizerui/model.py
angusmacdonald/gopro-organizer
6fc77fab231d016186b4bb4df5e24ecf039b72d9
[ "MIT" ]
null
null
null
organizerui/model.py
angusmacdonald/gopro-organizer
6fc77fab231d016186b4bb4df5e24ecf039b72d9
[ "MIT" ]
null
null
null
import sys sys.path.append('') from organizercore import organizer
23.6
78
0.783898
2e903b0c067785052b3d3529823e93eb770c9d80
2,959
py
Python
tests/test_to_human.py
AleCandido/human_dates
56bb10587b69e84b27a27117b2ecb3b1df09a028
[ "MIT" ]
1
2020-05-11T12:47:23.000Z
2020-05-11T12:47:23.000Z
tests/test_to_human.py
AleCandido/human_dates
56bb10587b69e84b27a27117b2ecb3b1df09a028
[ "MIT" ]
9
2020-04-30T13:43:30.000Z
2020-10-19T15:32:54.000Z
tests/test_to_human.py
AleCandido/human_dates
56bb10587b69e84b27a27117b2ecb3b1df09a028
[ "MIT" ]
null
null
null
import datetime as dt import pytest import human_dates
30.505155
82
0.559649
2e9074bb1cba53266c6974290d0d2403b768e6ea
3,124
py
Python
network_anomaly/code/Basic_features/test.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
1
2022-01-18T01:53:34.000Z
2022-01-18T01:53:34.000Z
network_anomaly/code/Basic_features/test.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
null
null
null
network_anomaly/code/Basic_features/test.py
kidrabit/Data-Visualization-Lab-RND
baa19ee4e9f3422a052794e50791495632290b36
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pandas as pd import csv import collections from pandas import DataFrame as df # data['TIME'] = data['TIME'].astype('float') # data['TIME'] = data['TIME'].astype('int') # # # IP, PORT, IP_PORT -> new_data # new_data = data['dstip'] # new_data = pd.DataFrame(new_data)...
28.925926
88
0.572983
5ce8437b0fec0991f67a078f2016c53fe445b831
24,331
py
Python
security_monkey/auditor.py
bungoume/security_monkey
90c02638a315c78535869ab71a8859d17e011a6a
[ "Apache-2.0" ]
null
null
null
security_monkey/auditor.py
bungoume/security_monkey
90c02638a315c78535869ab71a8859d17e011a6a
[ "Apache-2.0" ]
null
null
null
security_monkey/auditor.py
bungoume/security_monkey
90c02638a315c78535869ab71a8859d17e011a6a
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Netflix, 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...
43.063717
211
0.586371
5ce9c84ffdd6672839d34427b02aa2894b9eec7a
16,473
py
Python
rst2reveal/Parser.py
rartino/rst2reveal
c31a0939275f26219aaa19ce4e55c3c08491aac8
[ "MIT" ]
null
null
null
rst2reveal/Parser.py
rartino/rst2reveal
c31a0939275f26219aaa19ce4e55c3c08491aac8
[ "MIT" ]
null
null
null
rst2reveal/Parser.py
rartino/rst2reveal
c31a0939275f26219aaa19ce4e55c3c08491aac8
[ "MIT" ]
null
null
null
try: import locale locale.setlocale(locale.LC_ALL, '') except: pass import os, sys, codecs import docutils.core from .RevealTranslator import RST2RevealTranslator, RST2RevealWriter # Import custom directives from .TwoColumnsDirective import * from .PygmentsDirective import * from .VideoDirective import *...
40.375
169
0.541249
5cea000fbf7f6010b16ca5c88addb7c29ae330a8
25
py
Python
src/__init__.py
dmitrijbozhkov/cloudcourseproject
3e62a5fafef418c1c058587abc5615b03fc2325a
[ "Apache-2.0" ]
null
null
null
src/__init__.py
dmitrijbozhkov/cloudcourseproject
3e62a5fafef418c1c058587abc5615b03fc2325a
[ "Apache-2.0" ]
7
2021-02-08T20:41:23.000Z
2022-03-12T00:21:37.000Z
src/__init__.py
dmitrijbozhkov/cloudcourseproject
3e62a5fafef418c1c058587abc5615b03fc2325a
[ "Apache-2.0" ]
null
null
null
""" Application files """
25
25
0.64
5cecc676be7c87ec7a461eb8220ca39b7ad15690
235
py
Python
PyMOTW/source/webbrowser/webbrowser_get.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
PyMOTW/source/webbrowser/webbrowser_get.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2020-07-18T03:52:03.000Z
2020-07-18T04:18:01.000Z
PyMOTW/source/webbrowser/webbrowser_get.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
2
2021-03-06T04:28:32.000Z
2021-03-06T04:59:17.000Z
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ #end_pymotw_header import webbrowser b = webbrowser.get('lynx') b.open('https://docs.python.org/3/library/webbrowser.html')
16.785714
59
0.710638
5ced01ac9ef8ae3d7716b3b971d1835e202f6024
385
py
Python
notebooks/solutions/01-ex04-solutions.py
tramposh-olo/ml-workshop-intermediate-2-of-2
a9d81d760f875ff67796190f95818a0f4f0f5d6b
[ "MIT" ]
null
null
null
notebooks/solutions/01-ex04-solutions.py
tramposh-olo/ml-workshop-intermediate-2-of-2
a9d81d760f875ff67796190f95818a0f4f0f5d6b
[ "MIT" ]
null
null
null
notebooks/solutions/01-ex04-solutions.py
tramposh-olo/ml-workshop-intermediate-2-of-2
a9d81d760f875ff67796190f95818a0f4f0f5d6b
[ "MIT" ]
null
null
null
from sklearn.ensemble import RandomForestRegressor from sklearn.metrics import r2_score from sklearn.metrics import mean_squared_error from sklearn.metrics import mean_absolute_error rf = RandomForestRegressor(random_state=42) rf.fit(X_train, y_train) rf_pred = rf.predict(X_test) r2_score(y_test, rf_pred) mean_squa...
24.0625
50
0.844156
5cedb3c2eba19bceedfcaed437eaaaba8aec1a1e
400
py
Python
app/api/atleta/migrations/0008_atleta_senha.py
gahhhenrikk/gerenciador-de-equipes
1418a9ebae6e9b636b4597af9596206aa6cf75c2
[ "MIT" ]
1
2020-08-13T20:59:33.000Z
2020-08-13T20:59:33.000Z
app/api/atleta/migrations/0008_atleta_senha.py
AlbericoD/gerenciador-de-equipes
e6e7d084e5980c4ef05a46e0bfa4b70b13fcca4e
[ "MIT" ]
19
2019-09-03T22:49:45.000Z
2022-02-26T20:06:12.000Z
app/api/atleta/migrations/0008_atleta_senha.py
gahhhenrikk/gerenciador-de-equipes
1418a9ebae6e9b636b4597af9596206aa6cf75c2
[ "MIT" ]
2
2019-09-03T20:16:34.000Z
2019-09-09T12:35:14.000Z
# Generated by Django 2.2.7 on 2019-11-11 23:04 from django.db import migrations, models
21.052632
63
0.6
5cee76e061dea1eed3dca0e1ad8fc1077c7c5235
214
py
Python
rameniaapp/forms/create_list.py
awlane/ramenia
6bf8e75a1f279ac584daa4ee19927ffccaa67551
[ "MIT" ]
null
null
null
rameniaapp/forms/create_list.py
awlane/ramenia
6bf8e75a1f279ac584daa4ee19927ffccaa67551
[ "MIT" ]
null
null
null
rameniaapp/forms/create_list.py
awlane/ramenia
6bf8e75a1f279ac584daa4ee19927ffccaa67551
[ "MIT" ]
null
null
null
from django import forms from django.forms.widgets import TextInput
35.666667
110
0.775701
5cee8d9dc6ecef33153612d1cf40e03aa8fb60af
10,656
py
Python
toqnets/nn/nltl/functional.py
C-SUNSHINE/TOQ-Nets-PyTorch-Release
05e06bf633fb3c6b610dda9a5126ecd7af1db02f
[ "MIT" ]
6
2021-08-24T21:46:01.000Z
2022-03-09T14:34:05.000Z
toqnets/nn/nltl/functional.py
vacancy/TOQ-Nets-PyTorch-Release
53a712be28e2ecf8d2e04a9f71a2d7e8db5430e1
[ "MIT" ]
null
null
null
toqnets/nn/nltl/functional.py
vacancy/TOQ-Nets-PyTorch-Release
53a712be28e2ecf8d2e04a9f71a2d7e8db5430e1
[ "MIT" ]
2
2021-08-23T03:06:20.000Z
2021-09-30T14:17:14.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : functional.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 04/15/2020 # # This file is part of TOQ-Nets-PyTorch. # Distributed under terms of the MIT license. from typing import List import jactorch import torch from jacinle.utils.enum im...
41.142857
152
0.62866
5cef3a3627a98fccd21ed376ae079a30c30f5f8d
194
py
Python
curso em video/python/mundo 3/aula 21/aula 21.py
KenzoDezotti/cursoemvideo
6eba03e67192f7384092192ed2cc1a8e59efd9b9
[ "MIT" ]
null
null
null
curso em video/python/mundo 3/aula 21/aula 21.py
KenzoDezotti/cursoemvideo
6eba03e67192f7384092192ed2cc1a8e59efd9b9
[ "MIT" ]
null
null
null
curso em video/python/mundo 3/aula 21/aula 21.py
KenzoDezotti/cursoemvideo
6eba03e67192f7384092192ed2cc1a8e59efd9b9
[ "MIT" ]
null
null
null
#------------------------------------ #funcionamento do comando global a=5 print(a) teste(6) print(a)
13.857143
37
0.453608
5cf060a195dbf7d7e608526fbe61c86808f684c4
598
py
Python
etcdb/execute/dml/use.py
box/etcdb
0f27846a0ca13efff9750b97a38939f66172debc
[ "Apache-2.0" ]
12
2016-10-25T18:03:49.000Z
2019-06-27T13:20:22.000Z
etcdb/execute/dml/use.py
box/etcdb
0f27846a0ca13efff9750b97a38939f66172debc
[ "Apache-2.0" ]
30
2016-10-20T23:27:09.000Z
2018-12-06T17:23:59.000Z
etcdb/execute/dml/use.py
box/etcdb
0f27846a0ca13efff9750b97a38939f66172debc
[ "Apache-2.0" ]
4
2016-10-20T23:24:48.000Z
2022-03-01T09:59:29.000Z
"""Implement USE query.""" from pyetcd import EtcdKeyNotFound from etcdb import OperationalError def use_database(etcd_client, tree): """ Return database name if it exists or raise exception. :param etcd_client: etcd client :type etcd_client: pyetcd.client.Client :param tree: Parsing tree. :...
26
65
0.682274
5cf0ea4689aa7bc6979159d92505dd9ac4c6f33a
598
py
Python
main.py
dminglv/covid19
4753f1574c9035c5780c6669e5a9bd3812a4bc10
[ "MIT" ]
null
null
null
main.py
dminglv/covid19
4753f1574c9035c5780c6669e5a9bd3812a4bc10
[ "MIT" ]
null
null
null
main.py
dminglv/covid19
4753f1574c9035c5780c6669e5a9bd3812a4bc10
[ "MIT" ]
null
null
null
from libs.apis import getCountryInfo, getCountries, getCountriesNames from libs.charts import visualize if __name__ == "__main__": main()
19.290323
69
0.623746
5cf19f197631f63c8d9513d8b9abb97666915389
1,230
py
Python
authkit/authenticate/sso/__init__.py
bobrock/AuthKit
ba82501d9dff699be9eef33266aecd03d016cec2
[ "MIT" ]
null
null
null
authkit/authenticate/sso/__init__.py
bobrock/AuthKit
ba82501d9dff699be9eef33266aecd03d016cec2
[ "MIT" ]
null
null
null
authkit/authenticate/sso/__init__.py
bobrock/AuthKit
ba82501d9dff699be9eef33266aecd03d016cec2
[ "MIT" ]
1
2020-06-24T19:20:13.000Z
2020-06-24T19:20:13.000Z
"""Authenticate Single Sign-On Middleware ============== Single-Sign On ============== About SSO --------- Single sign on is a session/user authentication process that allows a user to provide his or her credentials once in order to access multiple applications. The single sign on authenticates the user to access a...
34.166667
81
0.756911
5cf285d186a6317622d28fa8ce936054a9456a47
4,158
py
Python
app/server.py
DavidRalph/search-mendeley
64cb3aa353d4a5571db0fb46a5b46b928af1c6b0
[ "Apache-2.0" ]
2
2020-05-15T02:06:46.000Z
2020-05-15T02:14:52.000Z
app/server.py
DavidRalph/search-mendeley
64cb3aa353d4a5571db0fb46a5b46b928af1c6b0
[ "Apache-2.0" ]
1
2018-05-16T12:55:14.000Z
2018-05-18T14:29:14.000Z
app/server.py
DavidRalph/search-mendeley
64cb3aa353d4a5571db0fb46a5b46b928af1c6b0
[ "Apache-2.0" ]
1
2020-05-15T02:14:55.000Z
2020-05-15T02:14:55.000Z
from flask import Flask, redirect, render_template, request, session import yaml from mendeley import Mendeley from mendeley.session import MendeleySession with open('config.yml') as f: config = yaml.load(f) REDIRECT_URI = 'http://localhost:5000/oauth' app = Flask(__name__) app.debug = True app.secret_key = co...
26.316456
86
0.664262
5cf2cde51e543e36e937cb094f4bc31af4b0de5a
3,429
py
Python
lib/googlecloudsdk/command_lib/container/gkemulticloud/endpoint_util.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/command_lib/container/gkemulticloud/endpoint_util.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/container/gkemulticloud/endpoint_util.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. 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 requir...
34.989796
156
0.748031
5cf2e08da44d6148a770dc0050be540bbf3f5a61
3,025
py
Python
util/mathUtil.py
herougan/TradeHunter
1270a1d9807d1f2107db6bc78b98b584431840cc
[ "MIT" ]
null
null
null
util/mathUtil.py
herougan/TradeHunter
1270a1d9807d1f2107db6bc78b98b584431840cc
[ "MIT" ]
null
null
null
util/mathUtil.py
herougan/TradeHunter
1270a1d9807d1f2107db6bc78b98b584431840cc
[ "MIT" ]
1
2022-02-09T08:45:05.000Z
2022-02-09T08:45:05.000Z
from math import floor import talib from util.dataRetrievalUtil import try_stdev from util.langUtil import try_mean, try_int def quartile_out(quartile, data): """Takes out extremities""" pass def index_arr_to_date(date_index, index): """Given an index, return date from date_index.""" if index <...
23.632813
97
0.597686
5cf5f3ec8ad78eb84a1e2c101567b1b3b4dc3a79
5,057
py
Python
09-gui/terremoto_antiguo.py
Agc96/matplotlib-examples
bc2db2d14c1822b05f99356ebf538ebcd14f262a
[ "MIT" ]
null
null
null
09-gui/terremoto_antiguo.py
Agc96/matplotlib-examples
bc2db2d14c1822b05f99356ebf538ebcd14f262a
[ "MIT" ]
null
null
null
09-gui/terremoto_antiguo.py
Agc96/matplotlib-examples
bc2db2d14c1822b05f99356ebf538ebcd14f262a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Oct 25 18:38:21 2019 @author: Agutierrez """ # -*- coding: utf-8 -*- """ Interfaz grfica para el movimiento armnico de un edificio, de forma similar a un terremoto. """ import numpy as np import tkinter as tk from matplotlib.animation import FuncAnimation from matplotlib.ba...
36.381295
87
0.693692
5cf67afad445851293cf259134cd16fdc9dcfa88
1,914
py
Python
app/tests/test_questions.py
Gichia/questioner-v2
b93ffdc521e364c191b770bf1bcb93964e7fa1f3
[ "MIT" ]
null
null
null
app/tests/test_questions.py
Gichia/questioner-v2
b93ffdc521e364c191b770bf1bcb93964e7fa1f3
[ "MIT" ]
6
2019-01-22T17:35:28.000Z
2022-01-13T01:01:48.000Z
app/tests/test_questions.py
Gichia/questioner-v2
b93ffdc521e364c191b770bf1bcb93964e7fa1f3
[ "MIT" ]
null
null
null
"""File to test all meetup endpoints""" import os import psycopg2 as pg2 import json from app.tests.basetest import BaseTest data = { "title": "Test Title", "body": "body" } comment = { "comment": "Comment 1" }
28.147059
67
0.636886
5cf7844c0843b1293636cf8069df2f14c752925e
392
py
Python
coinbase_commerce/aio/api_resources/base/create_api_resource.py
nkoshell/coinbase-commerce-python
94dc57951ac897ffbc7861dc909f413028d6a0b9
[ "Apache-2.0" ]
null
null
null
coinbase_commerce/aio/api_resources/base/create_api_resource.py
nkoshell/coinbase-commerce-python
94dc57951ac897ffbc7861dc909f413028d6a0b9
[ "Apache-2.0" ]
null
null
null
coinbase_commerce/aio/api_resources/base/create_api_resource.py
nkoshell/coinbase-commerce-python
94dc57951ac897ffbc7861dc909f413028d6a0b9
[ "Apache-2.0" ]
null
null
null
from coinbase_commerce import util from . import APIResource __all__ = ( 'CreateAPIResource', )
21.777778
77
0.706633
5cf7956415ed6ed6ed0b04f303733e9e61d8fd09
3,139
py
Python
src/torspray/modules/node.py
gergelykalman/torspray
a84c903b71da8c87e9e22d9bce123aaf6797abe8
[ "MIT" ]
11
2022-02-27T22:19:52.000Z
2022-03-18T19:57:06.000Z
src/torspray/modules/node.py
gergelykalman/torspray
a84c903b71da8c87e9e22d9bce123aaf6797abe8
[ "MIT" ]
null
null
null
src/torspray/modules/node.py
gergelykalman/torspray
a84c903b71da8c87e9e22d9bce123aaf6797abe8
[ "MIT" ]
null
null
null
import paramiko from .config import CONFIG # TODO: # - connection management should be improved, particularly unused connections # - what happens if connection is lost? this should be handled gracefully
29.895238
114
0.638738
5cf85cc05d2e35117fbd77e06d0033570013d07b
1,676
py
Python
tests/test_texture.py
alTeska/ratcave
954d638544330970c74532339b6696f7ec6376db
[ "MIT" ]
null
null
null
tests/test_texture.py
alTeska/ratcave
954d638544330970c74532339b6696f7ec6376db
[ "MIT" ]
null
null
null
tests/test_texture.py
alTeska/ratcave
954d638544330970c74532339b6696f7ec6376db
[ "MIT" ]
null
null
null
from ratcave import texture import pytest def test_texture_attributes_created(): old_id = 0 for idx, (w, h) in enumerate([(1024, 1024), (256, 128), (200, 301)]): tex = texture.Texture(width=w, height=h) assert tex.width == w assert tex.height == h assert tex.id != old_id ...
29.403509
73
0.701074
5cf90931f0e1b598361245b75fb7cb9889936a8b
1,829
py
Python
kaggle_environments/envs/identity/identity.py
hubcity/kaggle-environments
7fe29d7ed96f9d910cbf367f26663a9a8440bfd9
[ "Apache-2.0" ]
null
null
null
kaggle_environments/envs/identity/identity.py
hubcity/kaggle-environments
7fe29d7ed96f9d910cbf367f26663a9a8440bfd9
[ "Apache-2.0" ]
null
null
null
kaggle_environments/envs/identity/identity.py
hubcity/kaggle-environments
7fe29d7ed96f9d910cbf367f26663a9a8440bfd9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Kaggle 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, ...
25.760563
80
0.669218
5cfa55d58decf3e1c5433b4c930ab763da369af0
392
py
Python
api/app.py
loudest/vision_zero
91b094d864fabedbaa56cb9d1639aa75aa19bb00
[ "MIT" ]
2
2015-03-25T00:51:45.000Z
2015-06-18T10:54:24.000Z
api/app.py
loudest/vision_zero
91b094d864fabedbaa56cb9d1639aa75aa19bb00
[ "MIT" ]
null
null
null
api/app.py
loudest/vision_zero
91b094d864fabedbaa56cb9d1639aa75aa19bb00
[ "MIT" ]
null
null
null
#!flask/bin/python from flask import Flask, jsonify import requests app = Flask(__name__) if __name__ == '__main__': app.run(debug=True)
18.666667
69
0.683673
5cfb44436bfafdbb15a5fdebd26adcefad3628c4
1,809
py
Python
Ago-Dic-2021/valera-rangel-pablo/Practica 3/test_calculator_pytest.py
AnhellO/DAS_Sistemas
07b4eca78357d02d225d570033d05748d91383e3
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2021/valera-rangel-pablo/Practica 3/test_calculator_pytest.py
AnhellO/DAS_Sistemas
07b4eca78357d02d225d570033d05748d91383e3
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2021/valera-rangel-pablo/Practica 3/test_calculator_pytest.py
AnhellO/DAS_Sistemas
07b4eca78357d02d225d570033d05748d91383e3
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
import pytest from calculator import *
30.661017
75
0.739635
5cfc0222b944d024264d6196a63452889c5cce0e
5,482
py
Python
Modules/scan.py
mafiamasterhere/EvilNet
5b93d69ff9b6b16edfd3053f1f56857173b59eb1
[ "MIT" ]
91
2020-06-19T22:08:32.000Z
2022-03-28T08:27:10.000Z
scan.py
lunnar211/CRACK_WIFI
654af29306dd6582bf3ece38e9dd2de196f09aab
[ "MIT" ]
null
null
null
scan.py
lunnar211/CRACK_WIFI
654af29306dd6582bf3ece38e9dd2de196f09aab
[ "MIT" ]
22
2020-06-29T13:19:40.000Z
2021-11-26T11:22:40.000Z
import nmap3 from colored import fg, bg, attr import colored import socket as sock from Modules import intro
42.169231
91
0.506202
5cfea876092666973d9916499f12af7785c199a1
1,524
py
Python
api/serializers.py
Wholefolio/marketmanager
5a8314707806a6790c507e1bd817891e8dc88811
[ "Apache-2.0" ]
null
null
null
api/serializers.py
Wholefolio/marketmanager
5a8314707806a6790c507e1bd817891e8dc88811
[ "Apache-2.0" ]
null
null
null
api/serializers.py
Wholefolio/marketmanager
5a8314707806a6790c507e1bd817891e8dc88811
[ "Apache-2.0" ]
null
null
null
"""Serializers module.""" from rest_framework import serializers from django_celery_results.models import TaskResult from api import models
31.75
75
0.631234
5cfff87f1a992e437041fea9fa36fffc753143d6
3,228
py
Python
invenio_oaiserver/views/server.py
ParthS007/invenio-oaiserver
6fa5d2e2a770377ffe34a44bc60b0a817853da95
[ "MIT" ]
null
null
null
invenio_oaiserver/views/server.py
ParthS007/invenio-oaiserver
6fa5d2e2a770377ffe34a44bc60b0a817853da95
[ "MIT" ]
null
null
null
invenio_oaiserver/views/server.py
ParthS007/invenio-oaiserver
6fa5d2e2a770377ffe34a44bc60b0a817853da95
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015-2018 CERN. # Copyright (C) 2022 Graz University of Technology. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """OAI-PMH 2.0 server.""" from f...
31.339806
77
0.629492
cf01e9ecb22b1e70b4470ec1161d194bd76c4e67
6,847
py
Python
searching/models.py
netvigator/auctions
f88bcce800b60083a5d1a6f272c51bb540b8342a
[ "MIT" ]
null
null
null
searching/models.py
netvigator/auctions
f88bcce800b60083a5d1a6f272c51bb540b8342a
[ "MIT" ]
13
2019-12-12T03:07:55.000Z
2022-03-07T12:59:27.000Z
searching/models.py
netvigator/auctions
f88bcce800b60083a5d1a6f272c51bb540b8342a
[ "MIT" ]
null
null
null
from django.db import models from core.utils import getReverseWithUpdatedQuery from ebayinfo.models import EbayCategory from categories.models import Category from core.dj_import import get_user_model User = get_user_model() from searching import ALL_PRIORITIES from pyPks.Time.Ou...
47.548611
91
0.535417
cf025b07d576f1c46ac2887dea5c3dde0c945bf5
367
py
Python
Maths/fibonacciSeries.py
baiyongzhen/python
a8f367d2136f1aaeab63345e160e59fe16d62a11
[ "MIT" ]
1
2018-10-16T13:41:06.000Z
2018-10-16T13:41:06.000Z
Maths/fibonacciSeries.py
baiyongzhen/python
a8f367d2136f1aaeab63345e160e59fe16d62a11
[ "MIT" ]
null
null
null
Maths/fibonacciSeries.py
baiyongzhen/python
a8f367d2136f1aaeab63345e160e59fe16d62a11
[ "MIT" ]
2
2018-10-03T15:47:30.000Z
2019-10-23T16:35:48.000Z
# Fibonacci Sequence Using Recursion limit = int(input("How many terms to include in fionacci series:")) if limit <= 0: print("Plese enter a positive integer") else: print("Fibonacci series:") for i in range(limit): print(recur_fibo(i))
21.588235
67
0.640327
cf02f2ac21df464b0428c1c4c3f886070ec8055f
6,319
py
Python
extract_tokens.py
anuprulez/similar_galaxy_tools
19eefa567fdb56781dc5f42a0bea8af0969f5978
[ "MIT" ]
2
2018-02-02T18:52:12.000Z
2018-02-03T08:36:44.000Z
extract_tokens.py
anuprulez/similar_galaxy_tools
19eefa567fdb56781dc5f42a0bea8af0969f5978
[ "MIT" ]
null
null
null
extract_tokens.py
anuprulez/similar_galaxy_tools
19eefa567fdb56781dc5f42a0bea8af0969f5978
[ "MIT" ]
1
2018-02-03T08:36:57.000Z
2018-02-03T08:36:57.000Z
""" Extract useful tokens from multiple attributes of Galaxy tools """ import os import numpy as np import pandas as pd import operator import json import utils
42.126667
110
0.549929
cf064ee4360718e1bf827036501177dcef34c6bd
2,209
py
Python
server/gestion/models/product.py
JetLightStudio/Jet-Gest-stock-management
333cbc3dd1b379f53f67250fbd581cbce8e20ca8
[ "MIT" ]
1
2021-08-18T18:53:02.000Z
2021-08-18T18:53:02.000Z
server/gestion/models/product.py
JetLightStudio/Jet-Gest-stock-management
333cbc3dd1b379f53f67250fbd581cbce8e20ca8
[ "MIT" ]
null
null
null
server/gestion/models/product.py
JetLightStudio/Jet-Gest-stock-management
333cbc3dd1b379f53f67250fbd581cbce8e20ca8
[ "MIT" ]
1
2021-08-04T23:53:52.000Z
2021-08-04T23:53:52.000Z
from django.core.files import storage from django.db import models from gestion.utils import products_path_and_rename from gestion.models.category import Category from gestion.models.subCategory import SubCategory
37.440678
104
0.673155
cf07119cf6e3bdb2abce6a77371ad7da0041ab09
2,260
py
Python
muk_utils/tests/test_search_parents.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
muk_utils/tests/test_search_parents.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
muk_utils/tests/test_search_parents.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
########################################################################## # # Copyright (C) 2017 MuK IT GmbH # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either ve...
36.451613
78
0.620354
cf07d61453467fdaf7a52e8c01b18b42bfc7226e
4,514
py
Python
daal4py/df_regr.py
PivovarA/scikit-learn_bench
52e96f28eda3ca25d0f51594041fd06ee3f8d4c2
[ "MIT" ]
null
null
null
daal4py/df_regr.py
PivovarA/scikit-learn_bench
52e96f28eda3ca25d0f51594041fd06ee3f8d4c2
[ "MIT" ]
null
null
null
daal4py/df_regr.py
PivovarA/scikit-learn_bench
52e96f28eda3ca25d0f51594041fd06ee3f8d4c2
[ "MIT" ]
2
2020-08-07T16:19:32.000Z
2020-08-07T16:22:12.000Z
# Copyright (C) 2018-2020 Intel Corporation # # SPDX-License-Identifier: MIT import argparse from bench import ( parse_args, measure_function_time, load_data, print_output, rmse_score, float_or_int, getFPType ) from daal4py import ( decision_forest_regression_training, decision_forest_regression_predi...
36.699187
83
0.636907
cf0923f79d25f11e0f15404bd9b6b8cdac76eb86
8,658
py
Python
src/feature/eme_data_loader.py
0shimax/Pytorch-DRN
a5e70784d0097069e9e1cf958a446f819dbdb7f1
[ "MIT" ]
null
null
null
src/feature/eme_data_loader.py
0shimax/Pytorch-DRN
a5e70784d0097069e9e1cf958a446f819dbdb7f1
[ "MIT" ]
null
null
null
src/feature/eme_data_loader.py
0shimax/Pytorch-DRN
a5e70784d0097069e9e1cf958a446f819dbdb7f1
[ "MIT" ]
null
null
null
from pathlib import Path import pandas as pd import numpy as np import random import torch from torch.utils.data import Dataset from sklearn.model_selection import train_test_split
39.176471
109
0.661354