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
4431cc070b5b72f9b1711e84d06659e38998a2d7
3,066
py
Python
examples/amq/rpc/rpc-client.py
JohnSitarski/gestalt
119bc0f1c1c8a9ad1919347573d25f1c502737dc
[ "MIT" ]
8
2019-07-25T08:33:18.000Z
2021-05-09T23:25:55.000Z
examples/amq/rpc/rpc-client.py
JohnSitarski/gestalt
119bc0f1c1c8a9ad1919347573d25f1c502737dc
[ "MIT" ]
1
2020-01-07T23:08:16.000Z
2020-01-08T03:20:53.000Z
examples/amq/rpc/rpc-client.py
JohnSitarski/gestalt
119bc0f1c1c8a9ad1919347573d25f1c502737dc
[ "MIT" ]
3
2019-09-17T12:00:11.000Z
2021-05-09T23:26:06.000Z
import argparse import asyncio import logging import random from aio_pika.exceptions import DeliveryError from gestalt.amq.requester import Requester from gestalt.serialization import CONTENT_TYPE_JSON from gestalt.runner import run logger = logging.getLogger(__name__) if __name__ == "__main__": parser = argpar...
33.326087
97
0.613177
4437b9810c4e7fa906b091e98a1904da452af26d
915
py
Python
api/v1/views/index.py
bdbaraban/HolbertonBnB
70812bcef485e4d57ca0f7a1d0ddc59583f4122a
[ "MIT" ]
1
2022-02-08T03:51:31.000Z
2022-02-08T03:51:31.000Z
api/v1/views/index.py
bdbaraban/HolbertonBnB
70812bcef485e4d57ca0f7a1d0ddc59583f4122a
[ "MIT" ]
null
null
null
api/v1/views/index.py
bdbaraban/HolbertonBnB
70812bcef485e4d57ca0f7a1d0ddc59583f4122a
[ "MIT" ]
8
2020-12-10T14:41:39.000Z
2022-03-10T21:35:59.000Z
#!/usr/bin/env python3 """Defines a status route for the HolbertonBnB API.""" from flask import jsonify from flasgger import swag_from from models import storage from api.v1.views import app_views
26.142857
58
0.645902
4437e9f6903630a640348af85239c86e44387d67
2,499
py
Python
helper.py
NorthwoodsDev/CircuitPython_Companion_Bot
de9283d0af8f59d1ffc2fd43f39d90baee041859
[ "MIT" ]
null
null
null
helper.py
NorthwoodsDev/CircuitPython_Companion_Bot
de9283d0af8f59d1ffc2fd43f39d90baee041859
[ "MIT" ]
null
null
null
helper.py
NorthwoodsDev/CircuitPython_Companion_Bot
de9283d0af8f59d1ffc2fd43f39d90baee041859
[ "MIT" ]
null
null
null
import os import storage import time import board import random import microcontroller
27.766667
226
0.577831
4437f26ba6c39393772f578c50974f0c3bd7647f
3,538
py
Python
data_strctures/queue.py
CodenameREBIRTH/algopy
f3894c98b7232d0f6067eb52ca68f9e6a8875884
[ "MIT" ]
4
2019-09-28T17:02:47.000Z
2020-01-15T15:51:40.000Z
data_strctures/queue.py
CodenameREBIRTH/algopy
f3894c98b7232d0f6067eb52ca68f9e6a8875884
[ "MIT" ]
1
2019-10-15T03:56:59.000Z
2019-10-15T03:56:59.000Z
data_strctures/queue.py
CodenameREBIRTH/algopy
f3894c98b7232d0f6067eb52ca68f9e6a8875884
[ "MIT" ]
3
2019-10-14T16:22:08.000Z
2020-10-07T08:32:08.000Z
import inspect # TODO -> add priority queue and circuler queue for concept purpose
18.331606
75
0.498021
4438dec493c05b8f2b45e2e4cf553dc716b064b6
4,549
py
Python
course_science.py
9999years/brandeis-classes
e43d0227bafb4562d533565f3e94cd799ce636b8
[ "MIT" ]
null
null
null
course_science.py
9999years/brandeis-classes
e43d0227bafb4562d533565f3e94cd799ce636b8
[ "MIT" ]
null
null
null
course_science.py
9999years/brandeis-classes
e43d0227bafb4562d533565f3e94cd799ce636b8
[ "MIT" ]
null
null
null
import itertools import os.path from collections import Counter from glob import glob from typing import List, Mapping import brandeis COURSES = {} def read(fname: str) -> List[brandeis.Course]: """for initializing COURSES""" with open(fname, "r") as f: return brandeis.load_courses(f) def read_al...
27.403614
93
0.573533
44399f62445aff54bdaa825b5afca3b8782554ba
1,803
py
Python
merak/utils/refs.py
Yao1993/merak
517b7a8eca82eebbf22bcd3688a79e1e76ed9d42
[ "Apache-2.0" ]
16
2021-01-22T04:09:30.000Z
2022-03-17T10:38:34.000Z
merak/utils/refs.py
Yao1993/merak
517b7a8eca82eebbf22bcd3688a79e1e76ed9d42
[ "Apache-2.0" ]
6
2021-04-12T10:09:47.000Z
2022-03-24T09:31:13.000Z
merak/utils/refs.py
Yao1993/merak
517b7a8eca82eebbf22bcd3688a79e1e76ed9d42
[ "Apache-2.0" ]
2
2021-07-14T05:39:17.000Z
2021-07-28T16:27:40.000Z
# Copyright 2021 (David) Siu-Kei Muk. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
32.781818
80
0.665003
443a6baa9c0756dd7aae2e5c5109341c173ecdeb
538
py
Python
Python/kth-largest-element-in-a-stream.py
se77enn/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
1
2020-10-27T03:22:31.000Z
2020-10-27T03:22:31.000Z
Python/kth-largest-element-in-a-stream.py
se77enn/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
null
null
null
Python/kth-largest-element-in-a-stream.py
se77enn/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
1
2021-03-22T18:58:23.000Z
2021-03-22T18:58:23.000Z
# Time: O(nlogk) # Space: O(k) import heapq
19.214286
44
0.494424
443e6327aedef6ac6c12e9616d7d14e817f67223
3,344
py
Python
youtube_series_downloader/gateways/config_gateway.py
Senth/youtube-series-downloader
fadacc16798de336e4f5a2cf7648219bffb67016
[ "MIT" ]
3
2021-02-13T12:46:11.000Z
2022-03-20T21:43:37.000Z
youtube_series_downloader/gateways/config_gateway.py
Senth/youtube-series-downloader
fadacc16798de336e4f5a2cf7648219bffb67016
[ "MIT" ]
14
2021-04-19T09:52:23.000Z
2021-11-24T20:01:50.000Z
youtube_series_downloader/gateways/config_gateway.py
Senth/youtube-series-downloader
fadacc16798de336e4f5a2cf7648219bffb67016
[ "MIT" ]
null
null
null
import os import platform from configparser import ExtendedInterpolation from pathlib import Path from subprocess import run from sys import exit from typing import List from blulib.config_parser import ConfigParser from tealprint import TealPrint from tealprint.teallevel import TealLevel from youtube_series_downloade...
34.833333
121
0.559211
443e759d16cba07de3629249873b2670919d009a
5,590
py
Python
activeClassifier/env/input_fn.py
dHonerkamp/ActiveClassifier
052675277153594db64261cd56699a057e633de2
[ "Apache-2.0" ]
null
null
null
activeClassifier/env/input_fn.py
dHonerkamp/ActiveClassifier
052675277153594db64261cd56699a057e633de2
[ "Apache-2.0" ]
null
null
null
activeClassifier/env/input_fn.py
dHonerkamp/ActiveClassifier
052675277153594db64261cd56699a057e633de2
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf def translate_function(image, label, FLAGS): ''' Not sure if translation differs every epoch or not atm. Alternative: could pass a vector with pre-sampled x1, y1 (and a counter to index) along to ensure same translation. ''' if FLAGS.translated_size: pad_height = F...
47.777778
226
0.7
443e880e410b850c486af0532ecd8869505aeb29
60
py
Python
investigateModules/compareModulePatches.py
kromerh/solarAnalytics
8d450746dcf45b5ae3933b5e2d8838a23c8b32ea
[ "MIT" ]
null
null
null
investigateModules/compareModulePatches.py
kromerh/solarAnalytics
8d450746dcf45b5ae3933b5e2d8838a23c8b32ea
[ "MIT" ]
null
null
null
investigateModules/compareModulePatches.py
kromerh/solarAnalytics
8d450746dcf45b5ae3933b5e2d8838a23c8b32ea
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os import re
10
19
0.783333
443fa902e796b93ad8d348cfbafd34b5dc71eedd
15,348
py
Python
amical/data_processing.py
anand0xff/AMICAL
703ab4ead01054240ff5d43b6fb020d7877fd6cd
[ "MIT" ]
null
null
null
amical/data_processing.py
anand0xff/AMICAL
703ab4ead01054240ff5d43b6fb020d7877fd6cd
[ "MIT" ]
null
null
null
amical/data_processing.py
anand0xff/AMICAL
703ab4ead01054240ff5d43b6fb020d7877fd6cd
[ "MIT" ]
null
null
null
""" @author: Anthony Soulain (University of Sydney) ------------------------------------------------------------------------- AMICAL: Aperture Masking Interferometry Calibration and Analysis Library ------------------------------------------------------------------------- Function related to data cleaning (ghost, bac...
36.805755
118
0.573495
4440960cf020e65d9360167e1a2a885b0c4dd7d8
5,107
py
Python
lyaf_optdepth/corrections.py
VikrantKamble/lyaf_optdepth
899048ab73e546513b3713b3818abfab3ce3ab05
[ "MIT" ]
null
null
null
lyaf_optdepth/corrections.py
VikrantKamble/lyaf_optdepth
899048ab73e546513b3713b3818abfab3ce3ab05
[ "MIT" ]
null
null
null
lyaf_optdepth/corrections.py
VikrantKamble/lyaf_optdepth
899048ab73e546513b3713b3818abfab3ce3ab05
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from scipy.stats import binned_statistic def var_correct(qso, rest_ranges=None, zq_range=[1.6, 4.], fit_model=True, savefile=False): """ Corrections to the vriance assigned to the pixels by the pipeline Notes: 1. Scaling spectra doesn...
35.465278
89
0.585079
4440ac3805231c8fe777bc392e2e8cc3c24645a4
336
py
Python
backend/common/databases/tosurnament/user.py
SpartanPlume/Tosurnament
07e6b067a6c78a589de1a461789bce02352220fb
[ "MIT" ]
7
2018-03-13T12:21:37.000Z
2021-07-10T21:47:05.000Z
backend/common/databases/tosurnament/user.py
SpartanPlume/Tosurnament
07e6b067a6c78a589de1a461789bce02352220fb
[ "MIT" ]
44
2017-12-28T15:22:27.000Z
2021-09-17T20:56:17.000Z
backend/common/databases/tosurnament/user.py
SpartanPlume/Tosurnament
07e6b067a6c78a589de1a461789bce02352220fb
[ "MIT" ]
9
2020-07-03T10:07:05.000Z
2022-02-27T15:09:11.000Z
"""User table""" from mysqldb_wrapper import Base, Id
16.8
36
0.595238
4444e7e0112d27b6a6afe52aecc7a8352ed7a487
801
py
Python
snakeswitch.py
TheRedSpy15/Snakeswitch
082a07d6994a04c6cecfaa0a0868a37bdd373b51
[ "MIT" ]
null
null
null
snakeswitch.py
TheRedSpy15/Snakeswitch
082a07d6994a04c6cecfaa0a0868a37bdd373b51
[ "MIT" ]
null
null
null
snakeswitch.py
TheRedSpy15/Snakeswitch
082a07d6994a04c6cecfaa0a0868a37bdd373b51
[ "MIT" ]
null
null
null
from requests import get import time import gi ip_starting = "" recon_command = "" rate = 60 if __name__ == '__main__': try: main() except KeyboardInterrupt: print('Interrupted') try: import sys sys.exit(0) except SystemExit: import os os._exit(0)
20.025
70
0.70412
44450985c3f99b89a21c4bb41bf9942469e1672d
3,093
py
Python
consumerui/grapher.py
AlexRogalskiy/kubeplus
eba34118cf721391abd9f97196bbfaa85c6f5079
[ "Apache-2.0" ]
396
2018-03-30T19:56:17.000Z
2022-03-23T09:35:31.000Z
grapher/connections.py
cloud-ark/kubeplus
1ee8fdd1dc53f83316883752a8ebb33708faedaf
[ "Apache-2.0" ]
182
2018-04-24T03:12:00.000Z
2022-02-28T18:27:11.000Z
grapher/connections.py
AlexRogalskiy/kubeplus
eba34118cf721391abd9f97196bbfaa85c6f5079
[ "Apache-2.0" ]
64
2018-04-25T00:02:37.000Z
2022-03-16T02:46:03.000Z
import sys import json import subprocess import sys import os from graphviz import Digraph from graphviz import Graph if __name__ == '__main__': graph = ConnectionsGraph() #print("Inside connections.py") connections_json = sys.argv[1] output_folder = sys.argv[2] if len(sys.argv) == 4: relsToHide = sys.argv[3] ...
30.029126
106
0.669253
44460ed3ad075b11814a0994ca4285eafdbb39b1
823
py
Python
scratch/interesting_cc.py
mikeboers/PyFlickr
60f258ad6a5266fa8d8e6f6dc829e90e61df9696
[ "BSD-3-Clause" ]
null
null
null
scratch/interesting_cc.py
mikeboers/PyFlickr
60f258ad6a5266fa8d8e6f6dc829e90e61df9696
[ "BSD-3-Clause" ]
null
null
null
scratch/interesting_cc.py
mikeboers/PyFlickr
60f258ad6a5266fa8d8e6f6dc829e90e61df9696
[ "BSD-3-Clause" ]
null
null
null
import os import sys import datetime from pprint import pprint import logging logging.basicConfig(file=sys.stderr, level=logging.DEBUG) from flickr import Flickr from flickr.util import * key = os.environ.get('FLICKR_KEY') secret = os.environ.get('FLICKR_SECRET') if not (key and secret): print 'please set FLICK...
21.657895
100
0.663426
44474deb5fa0c086545a3adfa369f518e9e5f9f5
2,415
py
Python
fused_biattention.py
utahnlp/layer_augmentation_qa
a3dd2d7af6f45b2aa500ff7612f77c31fb879cf0
[ "Apache-2.0" ]
6
2019-10-08T11:48:21.000Z
2021-05-28T07:00:56.000Z
fused_biattention.py
utahnlp/layer_augmentation_qa
a3dd2d7af6f45b2aa500ff7612f77c31fb879cf0
[ "Apache-2.0" ]
null
null
null
fused_biattention.py
utahnlp/layer_augmentation_qa
a3dd2d7af6f45b2aa500ff7612f77c31fb879cf0
[ "Apache-2.0" ]
1
2020-07-02T06:31:06.000Z
2020-07-02T06:31:06.000Z
import sys import torch from torch import nn from torch.autograd import Variable from view import * from holder import * from util import * from join_table import * from trilinear_prod import * from fusion import * # fused bidir attention
23.446602
107
0.719669
4447797a9aae9e4e0e21cce2510d72157327de0f
255
py
Python
neos/secrets.py
mralext20/neos.py
5e83a868969a9782ddfc7eba023108290ccda97c
[ "MIT" ]
2
2021-03-30T16:24:19.000Z
2021-04-06T08:20:55.000Z
neos/secrets.py
mralext20/neos.py
5e83a868969a9782ddfc7eba023108290ccda97c
[ "MIT" ]
null
null
null
neos/secrets.py
mralext20/neos.py
5e83a868969a9782ddfc7eba023108290ccda97c
[ "MIT" ]
null
null
null
import random import string def generate() -> str: """ direct reimpl of secretID.js from account.neosvr.com """ length = 12 valid_chars = string.ascii_letters + string.digits return "".join(random.choices(valid_chars, k=length))
21.25
57
0.678431
4449271c863f70b26b80fbfbede707ee87657d0c
5,565
py
Python
BresMaker.py
EvolveWithProseeker/Proseeker
640c54952fc9295d03a2fdb22a452a8e4f6d4611
[ "MIT" ]
3
2021-05-31T00:56:30.000Z
2022-03-23T14:24:09.000Z
BresMaker.py
EvolveWithProseeker/Proseeker
640c54952fc9295d03a2fdb22a452a8e4f6d4611
[ "MIT" ]
null
null
null
BresMaker.py
EvolveWithProseeker/Proseeker
640c54952fc9295d03a2fdb22a452a8e4f6d4611
[ "MIT" ]
1
2022-03-24T08:49:30.000Z
2022-03-24T08:49:30.000Z
# Simplified Bres Maker # Version: 1.0 #Python Version: 2.0 # IMPORTS import pandas as pd import numpy as np from sklearn.cluster import KMeans from numpy import asarray from numpy import savetxt import sys import os # DEFINITIONS # DATALOAD #user_input = str(sys.argv[1]) #ranking = str(sys.argv[2]) #working = s...
29.759358
120
0.4708
444a190a1b95aaf1953da26833ea09f6dfc98b31
10,828
py
Python
Ity/Tools/test_TestResults.py
rmomizo/Ubiqu-Ity
67bd167c248d6f9e2810df5028b2288a828bdbfc
[ "BSD-2-Clause" ]
11
2015-06-22T15:52:31.000Z
2021-09-14T18:51:26.000Z
Ity/Tools/test_TestResults.py
rmomizo/Ubiqu-Ity
67bd167c248d6f9e2810df5028b2288a828bdbfc
[ "BSD-2-Clause" ]
null
null
null
Ity/Tools/test_TestResults.py
rmomizo/Ubiqu-Ity
67bd167c248d6f9e2810df5028b2288a828bdbfc
[ "BSD-2-Clause" ]
9
2015-05-15T23:06:34.000Z
2021-09-15T16:05:51.000Z
import copy from unittest import TestCase import TestResults __author__ = 'zthomae'
40.860377
116
0.633173
444a5ccfe65d81015051a623aa67855a8610e6c7
2,105
py
Python
01-datamodeling/project02-data-modeling-with-cassandra/file_mgr.py
ultranet1/DATA-ENGINEERING-NANODEGREE-UDACITY
d04e39e7312f04307f12257157c19ea40da2f11a
[ "Apache-2.0" ]
33
2020-09-01T20:10:28.000Z
2022-02-11T06:15:55.000Z
01-datamodeling/project02-data-modeling-with-cassandra/file_mgr.py
ultranet1/DATA-ENGINEERING-NANODEGREE-UDACITY
d04e39e7312f04307f12257157c19ea40da2f11a
[ "Apache-2.0" ]
null
null
null
01-datamodeling/project02-data-modeling-with-cassandra/file_mgr.py
ultranet1/DATA-ENGINEERING-NANODEGREE-UDACITY
d04e39e7312f04307f12257157c19ea40da2f11a
[ "Apache-2.0" ]
64
2021-01-21T11:55:34.000Z
2022-03-10T08:14:11.000Z
import os import glob import pandas as pd
28.066667
92
0.59715
444d912fa3629eb0be4d59d69c09ce050796a70c
879
py
Python
Day-111/quick_sort.py
arvimal/100DaysofCode-Python
01e59f45b4dc06a3be9e9900456a6bd439752911
[ "MIT" ]
1
2020-06-15T05:59:01.000Z
2020-06-15T05:59:01.000Z
Day-111/quick_sort.py
arvimal/100DaysofCode-Python
01e59f45b4dc06a3be9e9900456a6bd439752911
[ "MIT" ]
null
null
null
Day-111/quick_sort.py
arvimal/100DaysofCode-Python
01e59f45b4dc06a3be9e9900456a6bd439752911
[ "MIT" ]
7
2020-01-24T23:03:58.000Z
2021-05-31T01:00:27.000Z
#!/usr/bin/env python3 # Algorithm: Quick sort # Referrence: https://github.com/TheAlgorithms/Python/blob/master/sorts/quick_sort.py def quick_sort(num_list): """ Quick sort in Python If length of the list is 1 or less, there is no point in sorting it. Hence, the code works on lists with sizes grea...
25.114286
85
0.606371
444e975a0c4fb13e72c462d983b88bade759c75d
141,070
py
Python
modules/sequence_generators.py
ZhaozhiQIAN/neurawkes
1a3caa837b34f77ac9d078bc9bf10ff10a3bf959
[ "MIT" ]
null
null
null
modules/sequence_generators.py
ZhaozhiQIAN/neurawkes
1a3caa837b34f77ac9d078bc9bf10ff10a3bf959
[ "MIT" ]
null
null
null
modules/sequence_generators.py
ZhaozhiQIAN/neurawkes
1a3caa837b34f77ac9d078bc9bf10ff10a3bf959
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Here are the sequence generators including LSTM generator and Hawkes generator @author: hongyuan """ import pickle import time import numpy import theano from theano import sandbox import theano.tensor as tensor import os #import scipy.io from collections import defaultdict from theano.te...
33.405162
114
0.510137
44503eada61c7c6d19634eb06fc44feea60e5c94
2,445
py
Python
SeeThru_Feeds/Library/Components/HTTP.py
SeeThru-Networks/Python-Feed
9c29fcf3462475e339f95d3e9766ed3a652ee6c0
[ "MIT" ]
3
2020-04-15T19:58:37.000Z
2020-06-24T14:08:48.000Z
SeeThru_Feeds/Library/Components/HTTP.py
SeeThru-Networks/Python-Feed
9c29fcf3462475e339f95d3e9766ed3a652ee6c0
[ "MIT" ]
null
null
null
SeeThru_Feeds/Library/Components/HTTP.py
SeeThru-Networks/Python-Feed
9c29fcf3462475e339f95d3e9766ed3a652ee6c0
[ "MIT" ]
null
null
null
from SeeThru_Feeds.Model.Components.ComponentBase import ComponentBase from SeeThru_Feeds.Model.Properties.Properties import FillableProperty, ResultProperty import requests
45.277778
141
0.737423
445366866803a78fbcbc59c0c86e7e7c1ab75d5c
425
py
Python
scrapyd_dash/operations/versions_delete.py
Dainius-P/scrapyd-dash
f769551070c919ba41616928309460a93e1b120a
[ "MIT" ]
3
2019-08-20T12:33:06.000Z
2019-12-28T17:05:30.000Z
scrapyd_dash/operations/versions_delete.py
Dainius-P/scrapyd-dash
f769551070c919ba41616928309460a93e1b120a
[ "MIT" ]
6
2020-06-05T22:31:56.000Z
2022-02-10T12:33:45.000Z
scrapyd_dash/operations/versions_delete.py
Dainius-P/scrapyd-dash
f769551070c919ba41616928309460a93e1b120a
[ "MIT" ]
1
2020-12-10T07:02:06.000Z
2020-12-10T07:02:06.000Z
import requests """ Delete a project version. If there are no more versions available for a given project, that project will be deleted too. """
19.318182
94
0.691765
4453e7148b48df800b321d8e53272108159d1a65
346
py
Python
login.py
kepler0301/test_git
22b42b627b26224fff0bef29e43937b6a08c968a
[ "MIT" ]
1
2018-12-27T12:58:46.000Z
2018-12-27T12:58:46.000Z
login.py
kepler0301/test_git
22b42b627b26224fff0bef29e43937b6a08c968a
[ "MIT" ]
null
null
null
login.py
kepler0301/test_git
22b42b627b26224fff0bef29e43937b6a08c968a
[ "MIT" ]
null
null
null
print('helo world') <<<<<<< HEAD from flask import Flask app = Flask(__name__) id __name__ == '__main__' app.run() ======= from flask import Flask app = Flask(__name__) >>>>>>> b644c89d3eb5e1fcd31fedf63470ab57d597d9dd print('bey') num1 = 40
13.307692
48
0.647399
4453ea47443b6a656e1a8c29bb3c6e06d0db3779
2,922
py
Python
tests/test_svd.py
owenl131/pylinlin
07bb226cf5506b9e0633a35e5b4ce336ab0e5ba3
[ "MIT" ]
null
null
null
tests/test_svd.py
owenl131/pylinlin
07bb226cf5506b9e0633a35e5b4ce336ab0e5ba3
[ "MIT" ]
10
2020-11-12T14:46:45.000Z
2020-11-13T05:30:36.000Z
tests/test_svd.py
owenl131/pylinlin
07bb226cf5506b9e0633a35e5b4ce336ab0e5ba3
[ "MIT" ]
null
null
null
import pytest from pylinlin.matrix import Matrix from pylinlin.matrix_view import MatrixView import pylinlin.matrix_utils as utils from pylinlin.svd import \ compute_svd, \ reduce_to_bidiagonal, \ compute_svd_bidiagonal
36.525
78
0.577687
4457c61974adf6ea23263c3521814d88592f3989
198
py
Python
translateSfw.py
tkarabela/translate-swf
4756079294de9faa55d95b320d9b8a5ae6c40104
[ "MIT" ]
1
2022-03-15T21:44:50.000Z
2022-03-15T21:44:50.000Z
translateSfw.py
tkarabela/translate-swf
4756079294de9faa55d95b320d9b8a5ae6c40104
[ "MIT" ]
null
null
null
translateSfw.py
tkarabela/translate-swf
4756079294de9faa55d95b320d9b8a5ae6c40104
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pyTranslateSwf import sys if __name__ == '__main__': sys.exit(main())
15.230769
44
0.681818
44588a8251975fab2aceaf05fcf35cad8b89e5fe
656
py
Python
GT/GT_app/models.py
10K-Linesofcode/Glowing-Tribble
be0e17ce5391b589792e4ae6b02156d7ee4ce145
[ "MIT" ]
null
null
null
GT/GT_app/models.py
10K-Linesofcode/Glowing-Tribble
be0e17ce5391b589792e4ae6b02156d7ee4ce145
[ "MIT" ]
null
null
null
GT/GT_app/models.py
10K-Linesofcode/Glowing-Tribble
be0e17ce5391b589792e4ae6b02156d7ee4ce145
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models # Create your models here.
22.62069
63
0.731707
445cac484200f11a9ce597a53a164ef8e3583569
13,084
py
Python
WaveBlocksND/IOManager.py
raoulbq/WaveBlocksND
225b5dd9b1af1998bd40b5f6467ee959292b6a83
[ "BSD-3-Clause" ]
3
2016-09-01T21:13:54.000Z
2020-03-23T15:45:32.000Z
WaveBlocksND/IOManager.py
raoulbq/WaveBlocksND
225b5dd9b1af1998bd40b5f6467ee959292b6a83
[ "BSD-3-Clause" ]
null
null
null
WaveBlocksND/IOManager.py
raoulbq/WaveBlocksND
225b5dd9b1af1998bd40b5f6467ee959292b6a83
[ "BSD-3-Clause" ]
6
2016-03-16T15:22:01.000Z
2021-03-13T14:06:54.000Z
"""The WaveBlocks Project This file contains code for serializing simulation data. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012, 2016 R. Bourquin @license: Modified BSD License """ import os import types import pickle import json import six import h5py as hdf import numpy as np __all__ = ["IOMana...
36.64986
125
0.608759
445e24e9f950050d099133d81a9287a8a72037c0
1,738
py
Python
models/evaluater.py
pfnet-research/step-wise-chemical-synthesis-prediction
a24a88f648d353c2833827715068c90615899ed4
[ "MIT" ]
13
2019-10-01T08:35:47.000Z
2022-02-07T03:24:05.000Z
models/evaluater.py
pfnet-research/step-wise-chemical-synthesis-prediction
a24a88f648d353c2833827715068c90615899ed4
[ "MIT" ]
null
null
null
models/evaluater.py
pfnet-research/step-wise-chemical-synthesis-prediction
a24a88f648d353c2833827715068c90615899ed4
[ "MIT" ]
2
2021-08-12T05:14:45.000Z
2021-11-30T07:29:31.000Z
import chainer from chainer import functions, reporter import cupy as cp
32.792453
162
0.634062
445e689615f50b3103fabda264a4d3bf138fe65a
1,968
py
Python
Scripts/domain-db-all-domain-rates.py
colinwalshbrown/CWB_utils
86675812f9398845d1994b57500830e2c3dc6cc0
[ "MIT" ]
null
null
null
Scripts/domain-db-all-domain-rates.py
colinwalshbrown/CWB_utils
86675812f9398845d1994b57500830e2c3dc6cc0
[ "MIT" ]
null
null
null
Scripts/domain-db-all-domain-rates.py
colinwalshbrown/CWB_utils
86675812f9398845d1994b57500830e2c3dc6cc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import sqlite3 import matplotlib.pyplot as plt import numpy as np if __name__ == "__main__": main(sys.argv[1:])
31.741935
121
0.552337
445f77fe93f324f67e10e55b0a43977d0e9569e3
292
py
Python
spider/conf.py
schoeu/spid
eebb21fd41799cb077938593b4ff352b51322bc4
[ "MIT" ]
1
2018-10-18T06:59:34.000Z
2018-10-18T06:59:34.000Z
spider/conf.py
schoeu/spid
eebb21fd41799cb077938593b4ff352b51322bc4
[ "MIT" ]
8
2021-03-18T21:11:03.000Z
2022-03-11T23:30:58.000Z
spider/conf.py
schoeu/spid
eebb21fd41799cb077938593b4ff352b51322bc4
[ "MIT" ]
null
null
null
import utils import os import json
22.461538
78
0.664384
4460778f6a8c643ae09c2cfcff03efe7a38ed115
2,080
py
Python
rocketbear/orderings.py
wallarelvo/rocketbear
905c24e4243f178a50907ae965de68dc119de25d
[ "Apache-2.0" ]
1
2015-04-13T09:59:21.000Z
2015-04-13T09:59:21.000Z
rocketbear/orderings.py
wallarelvo/rocketbear
905c24e4243f178a50907ae965de68dc119de25d
[ "Apache-2.0" ]
null
null
null
rocketbear/orderings.py
wallarelvo/rocketbear
905c24e4243f178a50907ae965de68dc119de25d
[ "Apache-2.0" ]
null
null
null
import graph """ This file contains multiple heuristics that can be used for static and dynamic variable orderings """ # Used for higher order functionality orders = { "dsdf": DynamicSmallestDomainFirst, "ssdf": StaticSmallestDomainFirst, "smaf": StaticMostArcsFirst, "dmaf": DynamicMostArcsFir...
24.186047
78
0.647596
4460cfce11c83223a372c1c7e7325d7b8a9b4bfa
617
py
Python
src/covid_health/transcoding/names/owid.py
ggbaro/covid-health-ita
267801c3de021078a1ca5d3b93b47515315f0300
[ "MIT" ]
3
2020-03-25T22:20:07.000Z
2020-03-29T10:01:24.000Z
src/covid_health/transcoding/names/owid.py
ggbaro/covid-health-ita
267801c3de021078a1ca5d3b93b47515315f0300
[ "MIT" ]
null
null
null
src/covid_health/transcoding/names/owid.py
ggbaro/covid-health-ita
267801c3de021078a1ca5d3b93b47515315f0300
[ "MIT" ]
null
null
null
col = { "owid": { "Notes": "notes", "Entity": "entity", "Date": "time", "Source URL": "src", "Source label": "src_lb", "Cumulative total": "tot_n_tests", "Daily change in cumulative total": "n_tests", "Cumulative total per thousand": "tot_n_tests_pthab...
28.045455
73
0.559157
4460d19513e88f49fee31e54b8a44dfa4a3f968c
2,221
py
Python
models/sentry.py
m1ojk/nicedoor
d9d6a1b56ac8ba642b726aa8fe9db1f1f8a209c7
[ "MIT" ]
null
null
null
models/sentry.py
m1ojk/nicedoor
d9d6a1b56ac8ba642b726aa8fe9db1f1f8a209c7
[ "MIT" ]
null
null
null
models/sentry.py
m1ojk/nicedoor
d9d6a1b56ac8ba642b726aa8fe9db1f1f8a209c7
[ "MIT" ]
null
null
null
import cv2 import time import logging
35.822581
102
0.719496
44612610a1b1f0eb6980ce4691cd9e86d9bc0301
5,753
py
Python
train.py
ajitrajasekharan/huggingface_finetune_wrapper
772aee569fd8ed225f340a167fd7137dc49be895
[ "MIT" ]
1
2021-06-13T05:38:54.000Z
2021-06-13T05:38:54.000Z
train.py
ajitrajasekharan/huggingface_finetune_wrapper
772aee569fd8ed225f340a167fd7137dc49be895
[ "MIT" ]
null
null
null
train.py
ajitrajasekharan/huggingface_finetune_wrapper
772aee569fd8ed225f340a167fd7137dc49be895
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score, recall_score, precision_score, f1_score import torch from transformers import TrainingArguments, Trainer from transformers import BertTokenizer, BertForSequenceClassification from tran...
34.656627
159
0.664523
44619703bad870796ed0246c1284937d5fd67724
681
py
Python
examples/caseless_example.py
kajuberdut/incase
48b281ac49e22d0b76510771bfa9de9ed94d1fc4
[ "MIT" ]
null
null
null
examples/caseless_example.py
kajuberdut/incase
48b281ac49e22d0b76510771bfa9de9ed94d1fc4
[ "MIT" ]
null
null
null
examples/caseless_example.py
kajuberdut/incase
48b281ac49e22d0b76510771bfa9de9ed94d1fc4
[ "MIT" ]
null
null
null
from incase import Case, Caseless # Instances of Caseless are strings example = Caseless("example string") print(isinstance(example, str)) # True # By property print(example.snake) # example_string # Or by subscript (string or Case) print(example["camel"]) # exampleString print(example[Case.UPPER_SNAKE]) # EXAMPLE_...
21.28125
52
0.754772
4461eff877eb304b062070484689204017151234
150
py
Python
A/A 1030 In Search of an Easy Problem.py
zielman/Codeforces-solutions
636f11a9eb10939d09d2e50ddc5ec53327d0b7ab
[ "MIT" ]
null
null
null
A/A 1030 In Search of an Easy Problem.py
zielman/Codeforces-solutions
636f11a9eb10939d09d2e50ddc5ec53327d0b7ab
[ "MIT" ]
1
2021-05-05T17:05:03.000Z
2021-05-05T17:05:03.000Z
A/A 1030 In Search of an Easy Problem.py
zielman/Codeforces-solutions
636f11a9eb10939d09d2e50ddc5ec53327d0b7ab
[ "MIT" ]
null
null
null
# https://codeforces.com/problemset/problem/1030/A n = int(input()) o = list(map(int, input().split())) print('HARD' if o.count(1) != 0 else 'EASY')
25
50
0.646667
44631cbd82bde4053d51f4b0bd82dc77e1e5e801
1,290
py
Python
diplomacy_research/models/gym/__init__.py
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
39
2019-09-06T13:42:24.000Z
2022-03-18T18:38:43.000Z
diplomacy_research/models/gym/__init__.py
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
9
2019-09-19T22:35:32.000Z
2022-02-24T18:04:57.000Z
diplomacy_research/models/gym/__init__.py
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
8
2019-10-16T21:09:14.000Z
2022-02-23T05:20:37.000Z
# ============================================================================== # Copyright 2019 - Philip Paquette # # NOTICE: 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 rest...
49.615385
112
0.684496
44635bbeca29eba01a7b5eccef6188241ac9a808
4,271
py
Python
kik_unofficial/datatypes/xmpp/history.py
TriSerpent/kik-bot-api-unofficial
9ae9dea8a4936ba628c9ac7a749aa8d6b3e94487
[ "MIT" ]
120
2017-07-07T14:07:14.000Z
2022-02-22T03:14:23.000Z
kik_unofficial/datatypes/xmpp/history.py
TheGreatCodeholio/kik-bot-api-unofficial
c1f02b735dcb3e1d1b5e29a1ca04dd2f66557248
[ "MIT" ]
173
2017-07-07T04:31:19.000Z
2021-11-20T02:59:20.000Z
kik_unofficial/datatypes/xmpp/history.py
TheGreatCodeholio/kik-bot-api-unofficial
c1f02b735dcb3e1d1b5e29a1ca04dd2f66557248
[ "MIT" ]
101
2017-07-11T19:43:17.000Z
2022-03-03T02:04:05.000Z
from bs4 import BeautifulSoup import time from kik_unofficial.datatypes.xmpp.base_elements import XMPPElement, XMPPResponse
39.546296
114
0.453055
44682de12346bdb7a5f9ddce92b3b5515a1d9846
826
py
Python
tests/test_flavor.py
cloudscale-ch/cloudscale-python-sdk
67f9509f698dbaba529f183ba50694770a0c64bd
[ "MIT" ]
2
2020-07-18T16:43:32.000Z
2020-11-14T12:51:38.000Z
tests/test_flavor.py
cloudscale-ch/cloudscale-python-sdk
67f9509f698dbaba529f183ba50694770a0c64bd
[ "MIT" ]
4
2020-08-20T08:38:06.000Z
2020-12-09T22:12:05.000Z
tests/test_flavor.py
cloudscale-ch/cloudscale-python-sdk
67f9509f698dbaba529f183ba50694770a0c64bd
[ "MIT" ]
null
null
null
import responses from cloudscale import ( CLOUDSCALE_API_URL, Cloudscale, CloudscaleApiException, CloudscaleException, ) FLAVOR_RESP = { "slug": "flex-2", "name": "Flex-2", "vcpu_count": 1, "memory_gb": 2, "zones": [{"slug": "rma1"}, {"slug": "lpg1"}], }
25.8125
86
0.644068
4468581d70ebf3e6fb721882f185cef4082b1c84
7,213
py
Python
cogs/order.py
SilentSerenityy/JDBot
cd404000f06d51757439e435b2aaedbbab233144
[ "MIT" ]
null
null
null
cogs/order.py
SilentSerenityy/JDBot
cd404000f06d51757439e435b2aaedbbab233144
[ "MIT" ]
null
null
null
cogs/order.py
SilentSerenityy/JDBot
cd404000f06d51757439e435b2aaedbbab233144
[ "MIT" ]
null
null
null
import os, discord, time, async_cse, random, TenGiphPy from discord.ext import commands from difflib import SequenceMatcher from discord.ext.commands.cooldowns import BucketType tenor_client = TenGiphPy.Tenor(token=os.environ["tenor_key"]) giphy_client = TenGiphPy.Giphy(token=os.environ["giphy_token"])
43.451807
163
0.694579
44685ac8d733d07256270373907d763751c70fec
1,567
py
Python
gui_pyside6/ejemplo_cuatro/manejo_eventos.py
JuanDuran85/ejemplos_python
47aa49c65384ab89654f362f3da6cd2b0ef386e5
[ "Apache-2.0" ]
null
null
null
gui_pyside6/ejemplo_cuatro/manejo_eventos.py
JuanDuran85/ejemplos_python
47aa49c65384ab89654f362f3da6cd2b0ef386e5
[ "Apache-2.0" ]
null
null
null
gui_pyside6/ejemplo_cuatro/manejo_eventos.py
JuanDuran85/ejemplos_python
47aa49c65384ab89654f362f3da6cd2b0ef386e5
[ "Apache-2.0" ]
null
null
null
# signals (eventos) y slots (metodos que procesan los eventos) from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QMessageBox from PySide6.QtCore import QSize import sys if __name__ == '__main__': app = QApplication(sys.argv) ven...
40.179487
135
0.67709
44689571888025e3ab953e020afce0ebacd74326
2,650
py
Python
util/format_files.py
tammam1998/PCDet
ad5b24934fb35892ff073e364dab6acadbd3f135
[ "Apache-2.0" ]
null
null
null
util/format_files.py
tammam1998/PCDet
ad5b24934fb35892ff073e364dab6acadbd3f135
[ "Apache-2.0" ]
null
null
null
util/format_files.py
tammam1998/PCDet
ad5b24934fb35892ff073e364dab6acadbd3f135
[ "Apache-2.0" ]
null
null
null
from utils import * from sys import argv import os DEFUALT_PATH = os.path.realpath(__file__).replace("/format_files.py", "") def make_image_dir(to_path, filenames): """ takes a list of filenames and makes a sample image for each to match kitti format""" image_dir = os.path.join(to_path, "image_2") os.make...
36.805556
97
0.651698
446910272f530e7a9c174ed37e4268b3d0995159
29,890
py
Python
src/rc_icons.py
lmdu/dockey
a8ae34c780c952cb26270a173de08897b34c7252
[ "MIT" ]
null
null
null
src/rc_icons.py
lmdu/dockey
a8ae34c780c952cb26270a173de08897b34c7252
[ "MIT" ]
null
null
null
src/rc_icons.py
lmdu/dockey
a8ae34c780c952cb26270a173de08897b34c7252
[ "MIT" ]
null
null
null
# Resource object code (Python 3) # Created by: object code # Created by: The Resource Compiler for Qt version 6.3.0 # WARNING! All changes made in this file will be lost! from PySide6 import QtCore qt_resource_data = b"\ \x00\x00\x02\xd8\ <\ ?xml version=\x221.\ 0\x22 encoding=\x22utf\ -8\x22?>\x0d\x0a<!-- Gene\ rat...
21.801605
96
0.636434
446b3bdff2cf45475da4bdea7030cc7a2b669e73
1,405
py
Python
procyclist/config.py
Arham-Aalam/procyclist_performance
494f86fb76472d9642ff4a283bdc91cba4770edc
[ "MIT" ]
11
2018-09-03T10:38:14.000Z
2021-04-21T23:51:32.000Z
procyclist/config.py
Arham-Aalam/procyclist_performance
494f86fb76472d9642ff4a283bdc91cba4770edc
[ "MIT" ]
10
2018-11-28T20:35:54.000Z
2021-05-24T09:01:18.000Z
procyclist/config.py
Arham-Aalam/procyclist_performance
494f86fb76472d9642ff4a283bdc91cba4770edc
[ "MIT" ]
6
2018-11-13T12:12:31.000Z
2022-01-06T19:13:01.000Z
import abc import numpy as np import tensorflow as tf
23.032787
80
0.600712
446bc24aa0d51aebb62f5751f6f5954d3e059d78
1,223
py
Python
main.py
madhavan-raja/universal-reddit-reader
fb0286eba0465f969c62d96982631fccaf0a94bb
[ "MIT" ]
null
null
null
main.py
madhavan-raja/universal-reddit-reader
fb0286eba0465f969c62d96982631fccaf0a94bb
[ "MIT" ]
null
null
null
main.py
madhavan-raja/universal-reddit-reader
fb0286eba0465f969c62d96982631fccaf0a94bb
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, url_for import praw import json import random import markdown2 creds = json.load(open("credentials.json")) subs = [ 'nosleep', 'ProRevenge', 'NuclearRevenge' ] LIMIT = 100 app = Flask(__name__) if __name__ == '__main__': app.ru...
29.829268
248
0.69583
446c2ae8c6bf8f99edbaa2c4f1abc4a583ee51c3
8,259
py
Python
app.py
snoop2head/indigo
9468491cfc18d39ff5994bb4ee2d0d891067867d
[ "MIT" ]
1
2019-08-24T14:13:20.000Z
2019-08-24T14:13:20.000Z
app.py
snoop2head/Open_Race_of_Development_Indie_Band
9468491cfc18d39ff5994bb4ee2d0d891067867d
[ "MIT" ]
2
2021-04-30T21:00:26.000Z
2021-06-02T00:59:08.000Z
app.py
snoop2head/Open_Race_of_Development_Indie_Band
9468491cfc18d39ff5994bb4ee2d0d891067867d
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify from db_user_interactions import user_respond from pymongo import MongoClient from datetime import date, datetime, timedelta import re #today's date today_int = date.today() print("test_app - Today's date:", today_int) today_str = str(today_int) #mongodb setup client = MongoC...
32.644269
116
0.403197
446f83409f2113d5e1b2ac5413dde30c7a47c64e
3,270
py
Python
sc_qiskitFilter.py
stroblme/hqsp-stqft
c2f8f8964648578755d3938bf8658e4c834548e8
[ "MIT" ]
null
null
null
sc_qiskitFilter.py
stroblme/hqsp-stqft
c2f8f8964648578755d3938bf8658e4c834548e8
[ "MIT" ]
null
null
null
sc_qiskitFilter.py
stroblme/hqsp-stqft
c2f8f8964648578755d3938bf8658e4c834548e8
[ "MIT" ]
null
null
null
from qft import get_fft_from_counts, loadBackend, qft_framework from fft import fft_framework from frontend import frontend, signal, transform from qiskit.circuit.library import QFT as qiskit_qft # --- Standard imports # Importing standard Qiskit libraries and configuring account from qiskit import QuantumCircuit, e...
23.357143
125
0.76422
4471012b0e0606129edb11e34f8104b453eec981
2,551
py
Python
resources/Presentation.py
radovankavicky/conference_scheduler
6fbb38f95051199210796d345a8781c63aff959e
[ "Apache-2.0" ]
3
2018-04-02T06:45:19.000Z
2021-06-28T13:54:29.000Z
resources/Presentation.py
Suvink/conference_scheduler
6fbb38f95051199210796d345a8781c63aff959e
[ "Apache-2.0" ]
null
null
null
resources/Presentation.py
Suvink/conference_scheduler
6fbb38f95051199210796d345a8781c63aff959e
[ "Apache-2.0" ]
1
2018-09-01T15:43:07.000Z
2018-09-01T15:43:07.000Z
import json import datetime as datetime from typing import List, Set # optional norlize talk types types = { 'h_180': 'help desk', 'h': 'help desk', # 2015 'r_180': 'training', 't': 'training', # 2015 't_30': 'talk 30 Min', 't_45': 'talk 45 Min', 't_60': 'talk 60 Min', 's': 'talk 30+45...
26.572917
117
0.540572
447112b6fa86b5ec0c006f66a69b184bd85f3270
267
py
Python
recursion/base_converter.py
Yasir323/Data-Structures-and-Algorithms-in-Python
b721d0ca0218b9665d4f6ca0bbfd4417244bcdf0
[ "MIT" ]
null
null
null
recursion/base_converter.py
Yasir323/Data-Structures-and-Algorithms-in-Python
b721d0ca0218b9665d4f6ca0bbfd4417244bcdf0
[ "MIT" ]
null
null
null
recursion/base_converter.py
Yasir323/Data-Structures-and-Algorithms-in-Python
b721d0ca0218b9665d4f6ca0bbfd4417244bcdf0
[ "MIT" ]
null
null
null
print(decimal2base(1453, 16))
24.272727
62
0.677903
4473079529dd5e75b3a6bb336fc7b57ed2937e16
3,894
py
Python
nova/db/sqlalchemy/migrate_repo/versions/115_make_user_quotas_key_and_value.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
1
2019-11-06T12:21:59.000Z
2019-11-06T12:21:59.000Z
nova/db/sqlalchemy/migrate_repo/versions/115_make_user_quotas_key_and_value.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
null
null
null
nova/db/sqlalchemy/migrate_repo/versions/115_make_user_quotas_key_and_value.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
2
2019-12-23T18:06:28.000Z
2020-07-24T08:44:28.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC. # # 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 # ...
40.989474
78
0.586543
4473dea74ad824b410db2d46eaf6858a8677dd85
857
py
Python
src/bin_print.py
wykys/MIKS-FSK
a28255a1a184fb0b9753fcb133ea12e1b75ae93d
[ "MIT" ]
null
null
null
src/bin_print.py
wykys/MIKS-FSK
a28255a1a184fb0b9753fcb133ea12e1b75ae93d
[ "MIT" ]
null
null
null
src/bin_print.py
wykys/MIKS-FSK
a28255a1a184fb0b9753fcb133ea12e1b75ae93d
[ "MIT" ]
null
null
null
# wykys 2019
26.78125
74
0.424737
44753690a6f52033d694b5d7fcc31dbb08db5c3c
1,527
py
Python
mmrotate/models/detectors/oriented_rcnn.py
liuyanyi/mmrotate
d80310aa2c4a67c877c62432cddee246d2a4dbcd
[ "Apache-2.0" ]
449
2022-02-18T08:26:58.000Z
2022-03-31T11:58:32.000Z
mmrotate/models/detectors/oriented_rcnn.py
liuyanyi/mmrotate
d80310aa2c4a67c877c62432cddee246d2a4dbcd
[ "Apache-2.0" ]
162
2022-02-18T09:54:46.000Z
2022-03-31T15:40:46.000Z
mmrotate/models/detectors/oriented_rcnn.py
liuyanyi/mmrotate
d80310aa2c4a67c877c62432cddee246d2a4dbcd
[ "Apache-2.0" ]
98
2022-02-18T08:28:48.000Z
2022-03-31T08:52:11.000Z
# Copyright (c) OpenMMLab. All rights reserved. import torch from ..builder import ROTATED_DETECTORS from .two_stage import RotatedTwoStageDetector
29.941176
141
0.585462
44755cd5a2c76db41cda5c1690ebfe260273ba7d
3,008
py
Python
beam.py
alexzhou007/VIF
ce2a97eb0cb6f056c570adb2b32c69adb1ae3c22
[ "MIT" ]
3
2018-11-08T17:45:20.000Z
2019-08-05T14:38:32.000Z
beam.py
alexzhou007/VIF
ce2a97eb0cb6f056c570adb2b32c69adb1ae3c22
[ "MIT" ]
null
null
null
beam.py
alexzhou007/VIF
ce2a97eb0cb6f056c570adb2b32c69adb1ae3c22
[ "MIT" ]
1
2018-11-05T13:01:30.000Z
2018-11-05T13:01:30.000Z
import numpy as np import cv2 import wall SAME_LINE_THRESHOLD = 100 SAME_LEVEL_THRESHOLD = 8 SHORT_LINE_LENGTH = 10 BLEED_THRESHOLD = 10
30.383838
128
0.65758
4476220506d945bb783299ab9c689b2af1b83a67
1,363
py
Python
tests/test_modifiers.py
mbillingr/friendly-iter
77e1ce72100f592b6155a2152fcc03165af22714
[ "MIT" ]
null
null
null
tests/test_modifiers.py
mbillingr/friendly-iter
77e1ce72100f592b6155a2152fcc03165af22714
[ "MIT" ]
null
null
null
tests/test_modifiers.py
mbillingr/friendly-iter
77e1ce72100f592b6155a2152fcc03165af22714
[ "MIT" ]
null
null
null
from unittest.mock import Mock import pytest from friendly_iter.iterator_modifiers import flatten, take, skip, step
21.296875
70
0.663977
44762645211964973e9a09e8d66e0bf5a566fa40
189
py
Python
mysite/documents/urls.py
JarvisDong/Project-CGD
e499e13f358629583faf2778d8ba55852cf4cecf
[ "MIT" ]
null
null
null
mysite/documents/urls.py
JarvisDong/Project-CGD
e499e13f358629583faf2778d8ba55852cf4cecf
[ "MIT" ]
null
null
null
mysite/documents/urls.py
JarvisDong/Project-CGD
e499e13f358629583faf2778d8ba55852cf4cecf
[ "MIT" ]
null
null
null
# URLconf: map the index view in view.py to a URL from django.conf.urls import url from . import views from django.views.generic import TemplateView app_name = 'documents' urlpatterns = []
27
49
0.772487
44762b0d5bcbe4b280011acbe66456167cfb82a3
7,580
py
Python
arabert_summarize_example.py
abdullah-abunada/bert-extractive-summarizer
45e69deed3dcc00c4073cb07507889ff44f1ca72
[ "MIT" ]
2
2021-10-02T08:12:35.000Z
2022-01-09T20:41:14.000Z
arabert_summarize_example.py
abdullah-abunada/bert-extractive-summarizer
45e69deed3dcc00c4073cb07507889ff44f1ca72
[ "MIT" ]
null
null
null
arabert_summarize_example.py
abdullah-abunada/bert-extractive-summarizer
45e69deed3dcc00c4073cb07507889ff44f1ca72
[ "MIT" ]
1
2021-12-29T21:53:31.000Z
2021-12-29T21:53:31.000Z
from summarizer import Summarizer from transformers import AutoTokenizer, AutoModel from rouge import Rouge body=''' 7 . . 14 . . . . ...
118.4375
346
0.812797
44776d097711791cd8a71768586b334500f83487
3,669
py
Python
samples/CSP/sco2_analysis_python/examples/examples_main.py
ozsolarwind/SAM
0967b0a4be8f8924ec1ad915a14575ac22c4ec3c
[ "MIT" ]
null
null
null
samples/CSP/sco2_analysis_python/examples/examples_main.py
ozsolarwind/SAM
0967b0a4be8f8924ec1ad915a14575ac22c4ec3c
[ "MIT" ]
null
null
null
samples/CSP/sco2_analysis_python/examples/examples_main.py
ozsolarwind/SAM
0967b0a4be8f8924ec1ad915a14575ac22c4ec3c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jun 9 10:56:12 2017 @author: tneises """ import json import matplotlib.pyplot as plt import numpy as np import matplotlib.lines as mlines import sys import os absFilePath = os.path.abspath(__file__) fileDir = os.path.dirname(os.path.abspath(__file__)) parentDir = os.pat...
34.613208
105
0.693922
4477c20c7b94d6aa48f1758a3091efc8952c26c4
11,944
py
Python
Application/StudentModule.py
nimitpatel26/Book-Fetch
1d23ff273206dd31d3c05d038468cb407cd886d1
[ "MIT" ]
null
null
null
Application/StudentModule.py
nimitpatel26/Book-Fetch
1d23ff273206dd31d3c05d038468cb407cd886d1
[ "MIT" ]
null
null
null
Application/StudentModule.py
nimitpatel26/Book-Fetch
1d23ff273206dd31d3c05d038468cb407cd886d1
[ "MIT" ]
null
null
null
from random import randint import datetime import pymysql import cgi
36.525994
123
0.48786
447b46504e3f133d3560744b576f31426d682d53
1,242
py
Python
app/main/forms.py
macymuhia/Blogspot
b1a578a4120bebb2c4c2a57201ac43eec7a161e9
[ "MIT" ]
null
null
null
app/main/forms.py
macymuhia/Blogspot
b1a578a4120bebb2c4c2a57201ac43eec7a161e9
[ "MIT" ]
6
2021-02-08T20:33:48.000Z
2022-03-11T23:56:14.000Z
app/main/forms.py
macymuhia/Blogspot
b1a578a4120bebb2c4c2a57201ac43eec7a161e9
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField, SubmitField, SelectField from wtforms.validators import Required # class DeletePost(FlaskForm): # comment_id = StringField() # delete = SubmitField('Delete')
27
79
0.650564
447c96e01f699a1d061bedede73a165b4923aa49
404
py
Python
backend/apps/role/migrations/0003_auto_20200329_1414.py
highproformas-friends/curaSWISS
cf6c1ac9c0c80026f1667a7155290c37be8dec7c
[ "MIT" ]
3
2020-03-27T20:39:31.000Z
2020-03-31T20:24:55.000Z
backend/apps/role/migrations/0003_auto_20200329_1414.py
highproformas-friends/curaSWISS
cf6c1ac9c0c80026f1667a7155290c37be8dec7c
[ "MIT" ]
21
2020-03-28T09:57:15.000Z
2020-03-31T11:38:00.000Z
backend/apps/role/migrations/0003_auto_20200329_1414.py
highproformas-friends/curaSWISS
cf6c1ac9c0c80026f1667a7155290c37be8dec7c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-29 14:14 from django.db import migrations, models
21.263158
75
0.596535
447d2c4718f328072ba8ec1b22b096da2c86ad41
2,210
py
Python
goslinks/db/models.py
RevolutionTech/goslinks
fedb91a0d4ab227ba926f4588c7feeb3af284d2b
[ "0BSD" ]
1
2020-01-22T20:49:38.000Z
2020-01-22T20:49:38.000Z
goslinks/db/models.py
RevolutionTech/goslinks
fedb91a0d4ab227ba926f4588c7feeb3af284d2b
[ "0BSD" ]
99
2019-06-04T06:12:04.000Z
2021-10-09T22:18:42.000Z
goslinks/db/models.py
RevolutionTech/goslinks
fedb91a0d4ab227ba926f4588c7feeb3af284d2b
[ "0BSD" ]
null
null
null
from pynamodb.attributes import UnicodeAttribute MODEL_REGISTRY = {"user": UserModel, "link": LinkModel}
25.697674
86
0.623529
447db70fcaa354f16105d556a4943d598b33148f
816
py
Python
scifiweb/urls.py
project-scifi/scifiweb
cc51d9ea6e7f302c503174e92029188a7e252753
[ "Apache-2.0" ]
1
2018-04-18T04:37:43.000Z
2018-04-18T04:37:43.000Z
scifiweb/urls.py
project-scifi/scifiweb
cc51d9ea6e7f302c503174e92029188a7e252753
[ "Apache-2.0" ]
12
2017-06-26T05:20:28.000Z
2022-01-13T00:48:58.000Z
scifiweb/urls.py
project-scifi/scifiweb
cc51d9ea6e7f302c503174e92029188a7e252753
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include from django.conf.urls import url from django.shortcuts import redirect from django.shortcuts import reverse import scifiweb.about.urls import scifiweb.news.urls from scifiweb.home import home from scifiweb.robots import robots_dot_txt urlpatterns = [ url(r'^$', home, name='hom...
35.478261
95
0.720588
447dd172df06dd5c29acac5e5539b2c7e9813f1e
5,234
py
Python
heltour/tournament/tests/test_login.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
41
2016-08-17T19:58:42.000Z
2021-11-08T10:52:07.000Z
heltour/tournament/tests/test_login.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
257
2016-08-17T22:29:05.000Z
2022-01-13T00:42:05.000Z
heltour/tournament/tests/test_login.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
31
2016-09-23T23:36:14.000Z
2022-01-14T17:05:08.000Z
import datetime import responses from django.test import TestCase from unittest.mock import patch from heltour.tournament import oauth from .testutils import *
47.581818
95
0.661827
447e060bfaf57ff9d2bd90b071b3844072392c17
3,912
py
Python
tests/test_file_structure.py
ChrisWellsWood/carpyt
6bdabd4924d0af5a83863dc25bec8961f321daaa
[ "MIT" ]
null
null
null
tests/test_file_structure.py
ChrisWellsWood/carpyt
6bdabd4924d0af5a83863dc25bec8961f321daaa
[ "MIT" ]
null
null
null
tests/test_file_structure.py
ChrisWellsWood/carpyt
6bdabd4924d0af5a83863dc25bec8961f321daaa
[ "MIT" ]
null
null
null
"""Tests for creating file structure.""" import os from pathlib import Path import tempfile from unittest import TestCase import carpyt TEST_TEMPLATES = Path(os.path.abspath(__file__)).parent / 'test_templates'
43.466667
74
0.650562
447ff5764e0b94f97e6c66b9deb62f15c5007620
535
py
Python
solutions/Array-02.py
mrocklin/dask-tutorial
efb87e83eefa816ef23083fc1329af1d7da452a8
[ "BSD-3-Clause" ]
2
2018-03-17T16:41:28.000Z
2019-06-19T06:38:06.000Z
solutions/Array-02.py
mrocklin/dask-tutorial
efb87e83eefa816ef23083fc1329af1d7da452a8
[ "BSD-3-Clause" ]
null
null
null
solutions/Array-02.py
mrocklin/dask-tutorial
efb87e83eefa816ef23083fc1329af1d7da452a8
[ "BSD-3-Clause" ]
3
2018-07-13T15:33:55.000Z
2020-11-29T14:27:45.000Z
import h5py from glob import glob import os filenames = sorted(glob(os.path.join('data', 'weather-big', '*.hdf5'))) dsets = [h5py.File(filename)['/t2m'] for filename in filenames] import dask.array as da arrays = [da.from_array(dset, chunks=(500, 500)) for dset in dsets] x = da.stack(arrays, axis=0) result = x.mean...
24.318182
71
0.699065
448053e30b8251f7c76cad61ff98d10c9caa5bc1
2,944
py
Python
auto-test/pytest_main.py
asterfusion/Tapplet
917020fce2aaa2678c36a91fb91f60b36142ad9e
[ "Apache-2.0" ]
1
2019-12-30T11:49:35.000Z
2019-12-30T11:49:35.000Z
auto-test/pytest_main.py
asterfusion/Tapplet
917020fce2aaa2678c36a91fb91f60b36142ad9e
[ "Apache-2.0" ]
null
null
null
auto-test/pytest_main.py
asterfusion/Tapplet
917020fce2aaa2678c36a91fb91f60b36142ad9e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import pytest import argparse import configparser from tools.rest_tools import * from tools.rest_helper import * parser = argparse.ArgumentParser(description="Single test") parser.add_argument( '-m', '--mod_name', help="exec only one directory under tapplet/") parser.add_argument( '-f', '--t...
33.078652
125
0.66712
44816770ada7ebc5eb5982830625b9550b145802
408
py
Python
Flask/server/config.py
VincentParsons/DigSig
195c97e34237dab78de40efd2d3a1e0269a82b70
[ "MIT" ]
null
null
null
Flask/server/config.py
VincentParsons/DigSig
195c97e34237dab78de40efd2d3a1e0269a82b70
[ "MIT" ]
1
2022-02-13T01:23:59.000Z
2022-02-13T01:23:59.000Z
Flask/server/config.py
VincentParsons/DigSig
195c97e34237dab78de40efd2d3a1e0269a82b70
[ "MIT" ]
null
null
null
from dotenv import load_dotenv import os load_dotenv()
20.4
54
0.732843
44817e771a2edf24c0ddc2da2aab4dd39a0fd550
3,280
py
Python
covigator/precomputations/load_top_occurrences.py
TRON-Bioinformatics/covigator
59cd5012217cb043d97c77ce5273d8930e74390d
[ "MIT" ]
7
2021-07-23T14:09:51.000Z
2022-01-26T20:26:27.000Z
covigator/precomputations/load_top_occurrences.py
TRON-Bioinformatics/covigator
59cd5012217cb043d97c77ce5273d8930e74390d
[ "MIT" ]
2
2021-07-27T08:30:22.000Z
2022-02-22T20:06:05.000Z
covigator/precomputations/load_top_occurrences.py
TRON-Bioinformatics/covigator
59cd5012217cb043d97c77ce5273d8930e74390d
[ "MIT" ]
null
null
null
from typing import List import pandas as pd from logzero import logger from sqlalchemy.orm import Session from covigator import SYNONYMOUS_VARIANT, MISSENSE_VARIANT from covigator.database.model import DataSource, PrecomputedSynonymousNonSynonymousCounts, RegionType, \ VARIANT_OBSERVATION_TABLE_NAME, SAMPLE_ENA_TA...
38.588235
109
0.670427
448311e46f0ca162a8f3845e469f641ffd0d79ff
3,029
py
Python
petrarch2/readBBN.py
Sayeedsalam/political-actor-recommender
20dbc37ac419e4ecd5436d4e5b9685846639b2bc
[ "MIT" ]
1
2018-03-15T09:48:28.000Z
2018-03-15T09:48:28.000Z
petrarch2/readBBN.py
Sayeedsalam/political-actor-recommender
20dbc37ac419e4ecd5436d4e5b9685846639b2bc
[ "MIT" ]
null
null
null
petrarch2/readBBN.py
Sayeedsalam/political-actor-recommender
20dbc37ac419e4ecd5436d4e5b9685846639b2bc
[ "MIT" ]
null
null
null
__author__ = 'root' import json from cameoxml import cameoxml from StringIO import StringIO discard_words_set = set(['THE', 'A', 'AN', 'OF', 'IN', 'AT', 'OUT', '', ' ']) # response = cameoxml.send_document('The American president Barack Obama met with Putin.', hostname='10.176.148.60', port=8001, document_da...
31.226804
183
0.638495
448425d1503d367721976154b4af5535896d4e6c
4,178
py
Python
utilis/evaluation.py
jianghan2013/NMR_clustering
9cf2285101dd0fc9a1274e102c8ea094053c4a17
[ "MIT" ]
null
null
null
utilis/evaluation.py
jianghan2013/NMR_clustering
9cf2285101dd0fc9a1274e102c8ea094053c4a17
[ "MIT" ]
null
null
null
utilis/evaluation.py
jianghan2013/NMR_clustering
9cf2285101dd0fc9a1274e102c8ea094053c4a17
[ "MIT" ]
null
null
null
### evaluation import numpy as np from sklearn.linear_model import LinearRegression def get_ratio_range(X_train, y_pred): """ Compute range ratio index """ range_ratios=[] n_components = max(y_pred)+1 for i in range(n_components): X_train_i = X_train[y_pred==i] T2_v = 10**(X_tr...
41.366337
153
0.608186
44858cf0de73a5d338b1c6ecbc4904c2ec0268d9
1,464
py
Python
userManagment/userManager.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
userManagment/userManager.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
userManagment/userManager.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
#!/usr/local/CyberCP/bin/python import os, sys sys.path.append('/usr/local/CyberCP') import django os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CyberCP.settings") django.setup() import threading as multi from plogical.acl import ACLManager from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter as logging
31.148936
102
0.619536
4485c2de2544e40db08213560e7dfbba9933c235
245
py
Python
examples/python/corepy/userandom.py
airgiser/ucb
d03e62a17f35a9183ed36662352f603f0f673194
[ "MIT" ]
1
2022-01-08T14:59:44.000Z
2022-01-08T14:59:44.000Z
examples/python/corepy/userandom.py
airgiser/just-for-fun
d03e62a17f35a9183ed36662352f603f0f673194
[ "MIT" ]
null
null
null
examples/python/corepy/userandom.py
airgiser/just-for-fun
d03e62a17f35a9183ed36662352f603f0f673194
[ "MIT" ]
null
null
null
#!/usr/bin/python from random import Random onelist = [1, 2, 3, 4, 5, 6, 7] rd = Random() for i in range(5): print(rd.randint(0, 100)) print(rd.uniform(0, 100)) print(rd.random()) print(rd.choice(onelist)) print('-' * 30)
17.5
31
0.587755
44867576f7b712888203781d9257b7fe360df819
2,763
py
Python
src/third_party/beaengine/tests/0f388c.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
1
2022-01-17T17:40:29.000Z
2022-01-17T17:40:29.000Z
src/third_party/beaengine/tests/0f388c.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
null
null
null
src/third_party/beaengine/tests/0f388c.py
CrackerCat/rp
5fe693c26d76b514efaedb4084f6e37d820db023
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This progra...
37.849315
81
0.652552
44877d856034bf8fe04f668f3d82b679a04011e9
516
py
Python
productdb/testing/unittests/products.py
tspycher/python-productdb
17970a681b32eb249b78fab7dbeaee9d63ca7c05
[ "MIT" ]
null
null
null
productdb/testing/unittests/products.py
tspycher/python-productdb
17970a681b32eb249b78fab7dbeaee9d63ca7c05
[ "MIT" ]
null
null
null
productdb/testing/unittests/products.py
tspycher/python-productdb
17970a681b32eb249b78fab7dbeaee9d63ca7c05
[ "MIT" ]
null
null
null
from . import BasicTestCase
21.5
66
0.625969
448799a4fc1952a7fcd243848401d2c0a08268d0
196
py
Python
src/main.py
Quin-Darcy/Crawler
3e0d9f0b5dce43206606b19e5fb4dd84f4614fb1
[ "MIT" ]
null
null
null
src/main.py
Quin-Darcy/Crawler
3e0d9f0b5dce43206606b19e5fb4dd84f4614fb1
[ "MIT" ]
null
null
null
src/main.py
Quin-Darcy/Crawler
3e0d9f0b5dce43206606b19e5fb4dd84f4614fb1
[ "MIT" ]
null
null
null
import crawler import os if __name__ == '__main__': main()
13.066667
32
0.617347
448833e3b59142ea7c65646061303d7a33f3c57f
538
py
Python
modulo 2/Exercicios/Ex058.1 - Palpite.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
modulo 2/Exercicios/Ex058.1 - Palpite.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
modulo 2/Exercicios/Ex058.1 - Palpite.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
from random import randint computador = randint(0, 10) print('Sou seu computador... Acabei de pensar em um numero entre 0 e 10') print('Tente adivinhar qual foi') acertou = False palpite = 0 while not acertou: jogador = int(input('Digite um numero entre 0 e 10: ')) palpite += 1 if jogador == computador: ...
25.619048
73
0.637546
448a636d024dfa5f84fbc271a201ee5abe77a7d5
2,118
py
Python
jerk_agent_for_understanding/scripts/map-paths.py
tristansokol/Bobcats
71461b5c969b24e5379a63d2bc22bf173ae76f9b
[ "MIT" ]
2
2018-06-20T13:36:54.000Z
2018-10-28T17:06:31.000Z
jerk_agent_for_understanding/scripts/map-paths.py
tristansokol/Bobcats
71461b5c969b24e5379a63d2bc22bf173ae76f9b
[ "MIT" ]
null
null
null
jerk_agent_for_understanding/scripts/map-paths.py
tristansokol/Bobcats
71461b5c969b24e5379a63d2bc22bf173ae76f9b
[ "MIT" ]
1
2019-04-30T06:24:03.000Z
2019-04-30T06:24:03.000Z
#!/usr/bin/python import sys import retro import numpy as np from os import listdir from os.path import isfile, join, isdir, dirname, realpath from PIL import Image # find level maps here: http://info.sonicretro.org/Sonic_the_Hedgehog_(16-bit)_level_maps mp = Image.open(dirname(realpath(__file__))+"/01.PNG") mp.load...
33.09375
109
0.566572
4491484c500017a7a5d3c28b0aff70d389c8e7ae
3,643
py
Python
src/TensorFlow/venv/Lab/Tutorials/Models/SaveRestore.py
KarateJB/Python.Practice
a5f00f669dc4b815601c093ce0753a0a82b4328a
[ "MIT" ]
1
2020-08-14T07:21:05.000Z
2020-08-14T07:21:05.000Z
src/TensorFlow/venv/Lab/Tutorials/Models/SaveRestore.py
KarateJB/Python.Practice
a5f00f669dc4b815601c093ce0753a0a82b4328a
[ "MIT" ]
null
null
null
src/TensorFlow/venv/Lab/Tutorials/Models/SaveRestore.py
KarateJB/Python.Practice
a5f00f669dc4b815601c093ce0753a0a82b4328a
[ "MIT" ]
3
2018-04-08T13:35:20.000Z
2019-09-01T04:59:03.000Z
"""Save and Load model sample See https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/4_Utils/save_restore_model.py """ import tensorflow as tf import numpy as np import matplotlib.pyplot as plt from tensorflow.examples.tutorials.mnist import input_data import os # Initialize random weights # De...
36.43
138
0.682954
449284bb2c40e87e204639779832368eaadcd46c
2,113
py
Python
complexity/utils.py
remiomosowon/complexity
710dc771b11c65fb65820cfb2a519dd749c65419
[ "BSD-3-Clause" ]
59
2015-02-08T19:38:03.000Z
2020-05-24T19:34:43.000Z
complexity/utils.py
remiomosowon/complexity
710dc771b11c65fb65820cfb2a519dd749c65419
[ "BSD-3-Clause" ]
11
2015-01-25T12:15:02.000Z
2020-01-01T18:53:31.000Z
complexity/utils.py
remiomosowon/complexity
710dc771b11c65fb65820cfb2a519dd749c65419
[ "BSD-3-Clause" ]
29
2015-01-13T16:53:27.000Z
2020-08-01T12:37:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ complexity.utils ---------------- Helper functions used throughout Complexity. """ import errno import os import sys PY3 = sys.version > '3' if PY3: pass else: import codecs input = raw_input def make_sure_path_exists(path): """ Ensures that a ...
24.569767
79
0.587317
4492b8f104d0fabe71c89becba245f5e4644669e
228
py
Python
src/Brain/Functions/Analyzer.py
SidisLiveYT/Discord-AI
b321856266740304b70ab63bbfcdb5285854aa7d
[ "MIT" ]
null
null
null
src/Brain/Functions/Analyzer.py
SidisLiveYT/Discord-AI
b321856266740304b70ab63bbfcdb5285854aa7d
[ "MIT" ]
null
null
null
src/Brain/Functions/Analyzer.py
SidisLiveYT/Discord-AI
b321856266740304b70ab63bbfcdb5285854aa7d
[ "MIT" ]
null
null
null
from Resources.StorageGround import Greetings print(Greetings);
25.333333
48
0.75
4494d26537d59e35ecf0654ea3fabf3cb5c426aa
2,742
py
Python
prep_scripts/labels.py
Open-Speech-EkStep/common_scripts
916f01444e028f9111d5499217abf4443bd24017
[ "MIT" ]
4
2021-07-22T15:32:13.000Z
2022-01-25T08:13:45.000Z
prep_scripts/labels.py
Open-Speech-EkStep/common_scripts
916f01444e028f9111d5499217abf4443bd24017
[ "MIT" ]
2
2021-03-31T10:58:54.000Z
2021-05-07T09:50:52.000Z
prep_scripts/labels.py
Open-Speech-EkStep/common_scripts
916f01444e028f9111d5499217abf4443bd24017
[ "MIT" ]
3
2021-04-12T05:04:55.000Z
2021-08-25T06:55:42.000Z
# Usage: python labels.py --jobs 64 --tsv <path to train.tsv>train.tsv --output-dir <destination dir> --output-name test --txt-dir import argparse import os import re from tqdm import tqdm from joblib import Parallel, delayed # def get_cleaned_text(original_text): # pattern = '[^ ---------0-9-]+' # # pattern...
31.883721
130
0.619985
4495bc5ea5d78a2ae432884f81122c1c3f6cbbb8
8,235
py
Python
df.py
denizumutdereli/dialogflow_nlp_ai_powered_chat_bot
e624927527a32f21763d23cd585c868fe9190211
[ "Apache-2.0" ]
1
2022-01-13T00:35:20.000Z
2022-01-13T00:35:20.000Z
df.py
denizumutdereli/dialogflow_nlp_ai_powered_chat_bot
e624927527a32f21763d23cd585c868fe9190211
[ "Apache-2.0" ]
null
null
null
df.py
denizumutdereli/dialogflow_nlp_ai_powered_chat_bot
e624927527a32f21763d23cd585c868fe9190211
[ "Apache-2.0" ]
null
null
null
import os import sys import settings #import google.cloud.dialogflow_v2 as dialogflow_v2 from google.cloud import dialogflow as dialogflow_v2 from google.protobuf import field_mask_pb2 from rich import print import dffunc as dff #special! #text = 'what is your name?' #detect_intent_texts('testbot-mldq', 'abc123', tex...
37.262443
158
0.769156
4497c0bd8ba875e530e105c67eb98c37b9208182
2,151
py
Python
tests/test_configManager.py
Helene/ibm-spectrum-scale-bridge-for-grafana
9ec7953071d9fbe90332cb670a3f6c00ebf3291b
[ "Apache-2.0" ]
28
2019-11-21T21:11:55.000Z
2022-03-14T16:53:12.000Z
tests/test_configManager.py
Helene/ibm-spectrum-scale-bridge-for-grafana
9ec7953071d9fbe90332cb670a3f6c00ebf3291b
[ "Apache-2.0" ]
23
2019-12-17T08:44:09.000Z
2022-01-07T11:02:01.000Z
tests/test_configManager.py
Helene/ibm-spectrum-scale-bridge-for-grafana
9ec7953071d9fbe90332cb670a3f6c00ebf3291b
[ "Apache-2.0" ]
7
2019-12-04T09:41:17.000Z
2021-12-10T15:01:08.000Z
from source.confParser import ConfigManager from source.__version__ import __version__ as version
22.882979
80
0.656439
4498797169e379e4f71ed514fe503e98825e7c72
4,897
py
Python
languageModel.py
Zgjszjggjt/DeepLearning
51889e57f8c7a0a861c356a0e3454c3c3625b0a7
[ "MIT" ]
null
null
null
languageModel.py
Zgjszjggjt/DeepLearning
51889e57f8c7a0a861c356a0e3454c3c3625b0a7
[ "MIT" ]
null
null
null
languageModel.py
Zgjszjggjt/DeepLearning
51889e57f8c7a0a861c356a0e3454c3c3625b0a7
[ "MIT" ]
null
null
null
#!/usr/bin/evn python #-*- coding: utf-8 -*- # =================================== # Filename : languageModel.py # Author : GT # Create date : 17-09-20 18:33:43 # Description: # =================================== # Script starts from here # this is for chinese characters # import sys # reload(sys) # sys.setdefault...
37.381679
129
0.604656
44994ba8d3a7a8b4c205743af6ca6a46fdb3191a
5,660
py
Python
wordle.py
andytholmes/wordle_solver
44062a60b45eea17ad5eda3a9cc37540b3c18866
[ "MIT" ]
null
null
null
wordle.py
andytholmes/wordle_solver
44062a60b45eea17ad5eda3a9cc37540b3c18866
[ "MIT" ]
null
null
null
wordle.py
andytholmes/wordle_solver
44062a60b45eea17ad5eda3a9cc37540b3c18866
[ "MIT" ]
null
null
null
from typing import List import numpy as np import wordfreq def get_wordle_from_secret(guess, secret): if len(secret) != 5: raise Exception('Secret word needs to be 5 letters') if len(guess) != 5: raise Exception('guess word needs to be 5 letters') wordle = '' g_check = '' s_che...
28.159204
78
0.563781
92209edfa3b4b39c5cb3b3ecc44a58d42206bc22
3,264
py
Python
webapp/app/routes.py
vladan-stojnic/NI4OS-RSSC
02542fc6ed59acd52cd06a3c1ab191a7da2713d8
[ "MIT" ]
null
null
null
webapp/app/routes.py
vladan-stojnic/NI4OS-RSSC
02542fc6ed59acd52cd06a3c1ab191a7da2713d8
[ "MIT" ]
null
null
null
webapp/app/routes.py
vladan-stojnic/NI4OS-RSSC
02542fc6ed59acd52cd06a3c1ab191a7da2713d8
[ "MIT" ]
null
null
null
from flask import render_template, redirect, url_for, escape, request from app import app from app.forms import URLForm, FilesForm from app.utils import perform_url_request, perform_upload_request import requests import base64 import json
34
103
0.6394
9223388ce50bc2c66a5df942c1f011a31ba0d6df
3,145
py
Python
globus_automate_client/graphviz_rendering.py
globus/globus-automate-client
ec5f21a0b1de1c2d90c3e4b4a117177e52ff74e7
[ "Apache-2.0" ]
2
2020-08-26T19:43:39.000Z
2020-09-03T20:50:07.000Z
globus_automate_client/graphviz_rendering.py
globus/globus-automate-client
ec5f21a0b1de1c2d90c3e4b4a117177e52ff74e7
[ "Apache-2.0" ]
49
2020-08-24T15:15:05.000Z
2022-03-07T18:39:44.000Z
globus_automate_client/graphviz_rendering.py
globus/globus-automate-client
ec5f21a0b1de1c2d90c3e4b4a117177e52ff74e7
[ "Apache-2.0" ]
3
2020-08-23T21:53:00.000Z
2021-09-30T23:34:01.000Z
import json from typing import Any, Dict, List, Mapping, Optional from graphviz import Digraph _SHAPE_TYPES = { "Choice": {"shape": "diamond"}, "Action": {"shape": "box"}, "Succeed": {"shape": "box", "style": "rounded"}, } _COLOR_PRECEDENCE = ["", "yellow", "orange", "green", "red"]
37.891566
86
0.573927
922347cbcb84554379a27400c108d56de27b542e
9,731
py
Python
ahio/drivers/generic_tcp_io.py
acristoffers/Loki
9d209017593fabe4bc6b39b4156101bd32a824cb
[ "MIT" ]
1
2018-05-06T18:43:40.000Z
2018-05-06T18:43:40.000Z
ahio/drivers/generic_tcp_io.py
acristoffers/Loki
9d209017593fabe4bc6b39b4156101bd32a824cb
[ "MIT" ]
null
null
null
ahio/drivers/generic_tcp_io.py
acristoffers/Loki
9d209017593fabe4bc6b39b4156101bd32a824cb
[ "MIT" ]
null
null
null
# -*- coding: utf-8; -*- # # Copyright (c) 2016 lan Crstoffer # # 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, mo...
37.863813
79
0.589867
92254e7c44b4d02b62556b08a59fb86995acbb5b
2,463
py
Python
openstack/tests/unit/network/v2/test_firewall_v1_rule.py
morganseznec/openstacksdk
7b245c16556a04497ce701d959a889eca6f26a83
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/network/v2/test_firewall_v1_rule.py
morganseznec/openstacksdk
7b245c16556a04497ce701d959a889eca6f26a83
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/network/v2/test_firewall_v1_rule.py
morganseznec/openstacksdk
7b245c16556a04497ce701d959a889eca6f26a83
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 Morgan Seznec <morgan.s134@gmail.com> # 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 # # Unles...
37.892308
75
0.686561
9225b3c1ee55f4d6994467863ce60bcc9130be6c
54,574
py
Python
src/genie/libs/parser/junos/tests/ShowChassisEnvironment/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/junos/tests/ShowChassisEnvironment/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/junos/tests/ShowChassisEnvironment/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { 'environment-information': { 'environment-item': [{ 'class': 'Temp', 'name': 'PSM 0', 'status': 'OK', 'temperature': { '#text': '25 ' 'degrees ' 'C ' '/ ' '77 '...
25.693974
41
0.234727
9225d697e78183c1ad43794ee9e4cd4755df5089
2,260
py
Python
orbit.py
srujan71/CubeSat-Mission-Planner
34030254109def0b13e82116ed5122ecf79a82f7
[ "MIT" ]
1
2021-07-26T16:17:30.000Z
2021-07-26T16:17:30.000Z
orbit.py
leizhang2020/CubeSat-Mission-Planner
62d1ad33c2dcb1a2f8fb3ff615cc5cc0e6716969
[ "MIT" ]
null
null
null
orbit.py
leizhang2020/CubeSat-Mission-Planner
62d1ad33c2dcb1a2f8fb3ff615cc5cc0e6716969
[ "MIT" ]
2
2021-09-18T08:50:44.000Z
2022-01-20T02:41:38.000Z
""" orbit.py "Frankly, a very limited and highly specific implementation of an Orbit class. If used for applications other than the original usecase, this class will either need to be bypassed or heavily expanded upon." @author: Johan Monster (https://github.com/Hans-Bananendans/) """ from numpy import log
25.111111
78
0.509735
922840c6ba1e5ffbff03318305b8047e1c57c724
804
py
Python
brownie/cli/console.py
banteg/brownie
eccd0c6ac8cf769ed3331c05189e8518e7cc2fdd
[ "MIT" ]
3
2021-05-21T06:55:28.000Z
2021-06-22T07:31:50.000Z
brownie/cli/console.py
banteg/brownie
eccd0c6ac8cf769ed3331c05189e8518e7cc2fdd
[ "MIT" ]
null
null
null
brownie/cli/console.py
banteg/brownie
eccd0c6ac8cf769ed3331c05189e8518e7cc2fdd
[ "MIT" ]
1
2021-08-02T05:50:59.000Z
2021-08-02T05:50:59.000Z
#!/usr/bin/python3 from docopt import docopt from brownie import network, project from brownie.cli.utils.console import Console from brownie._config import ARGV, CONFIG, update_argv_from_docopt __doc__ = f"""Usage: brownie console [options] Options: --network <name> Use a specific network (default {CONFIG...
25.935484
95
0.689055
92287892b36da60c9bf64d7187622768f0e41f59
2,638
py
Python
tensorflow_examples/lite/model_maker/core/compat.py
PawelFaron/examples
1a24291bb3ed617df21c6c15cdd3418ed2bf8ad3
[ "Apache-2.0" ]
1
2021-09-22T12:03:20.000Z
2021-09-22T12:03:20.000Z
tensorflow_examples/lite/model_maker/core/compat.py
godofecht/examples
5875c06c3cc76af5419986ab9d2f3d51bea43425
[ "Apache-2.0" ]
null
null
null
tensorflow_examples/lite/model_maker/core/compat.py
godofecht/examples
5875c06c3cc76af5419986ab9d2f3d51bea43425
[ "Apache-2.0" ]
1
2020-03-13T16:40:57.000Z
2020-03-13T16:40:57.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
27.479167
80
0.703942
92294ca518ccc92f5f31e84ca764f1ef9e6822eb
8,559
py
Python
mainpages/views.py
HAXF13D/carwashagrigation
638d33b0b9cfd81f47ec7cb38aff52f2608a037b
[ "MIT" ]
null
null
null
mainpages/views.py
HAXF13D/carwashagrigation
638d33b0b9cfd81f47ec7cb38aff52f2608a037b
[ "MIT" ]
null
null
null
mainpages/views.py
HAXF13D/carwashagrigation
638d33b0b9cfd81f47ec7cb38aff52f2608a037b
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.shortcuts import redirect from django.http import HttpResponseRedirect from .forms import RegisterForm, LoginForm from django.urls import reverse from .datebase_func import make_bd, check_car_wash, add_car_wash, time_by_id, update_time_by_id, get_info_about from django.co...
30.677419
111
0.538497
92294f38fd2ab1e308c335c66c51214ec37751f0
4,939
py
Python
flytekit/common/types/helpers.py
slai/flytekit
9d73d096b748d263a638e6865d15db4880845305
[ "Apache-2.0" ]
null
null
null
flytekit/common/types/helpers.py
slai/flytekit
9d73d096b748d263a638e6865d15db4880845305
[ "Apache-2.0" ]
2
2021-06-26T04:32:43.000Z
2021-07-14T04:47:52.000Z
flytekit/common/types/helpers.py
slai/flytekit
9d73d096b748d263a638e6865d15db4880845305
[ "Apache-2.0" ]
null
null
null
import importlib as _importlib import six as _six from flytekit.common.exceptions import scopes as _exception_scopes from flytekit.common.exceptions import user as _user_exceptions from flytekit.configuration import sdk as _sdk_config from flytekit.models import literals as _literal_models def python_std_to_sdk_ty...
39.512
119
0.700142
922a233c287deeb8aa6a5632fd96086e2451f966
2,356
py
Python
commands/interractions/discord_binder.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
commands/interractions/discord_binder.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
commands/interractions/discord_binder.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
import sqlite3 import discord from commands.sendable import Sendable
46.196078
106
0.628608
922a9ae4034f744c3a78c0a716a89357127aba7a
4,038
py
Python
gigfinder/gigs/tests.py
jayanwana/django-location-project
b2e728d13189e70ca25578eccd3018f15bdd7e83
[ "MIT" ]
null
null
null
gigfinder/gigs/tests.py
jayanwana/django-location-project
b2e728d13189e70ca25578eccd3018f15bdd7e83
[ "MIT" ]
3
2020-06-05T21:00:42.000Z
2021-09-22T18:33:34.000Z
gigfinder/gigs/tests.py
jayanwana/django-location-project
b2e728d13189e70ca25578eccd3018f15bdd7e83
[ "MIT" ]
null
null
null
from django.test import TestCase # Create your tests here. from gigs.models import Venue, Event from gigs.views import LookupView from factory.fuzzy import BaseFuzzyAttribute from django.contrib.gis.geos import Point from django.utils import timezone from django.test import RequestFactory from django.urls import revers...
31.546875
89
0.628777