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
6c92d27382dba0aad5c7403248ee9b4f5c933459
85
py
Python
ABC_A/ABC143_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_A/ABC143_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_A/ABC143_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
a, b = map(int, input().split()) if b * 2 >= a: print(0) else: print(a-b*2)
12.142857
32
0.482353
6c958808bc4913c6337e5be759dac5c2df2ce99d
351
py
Python
collective/teamwork/skins/collective_teamwork/pwreset_constructURL.py
upiq/collective.teamwork
3751eeafa7f585a3ed2ff1e06f610e64145ac4d7
[ "BSD-4-Clause-UC" ]
null
null
null
collective/teamwork/skins/collective_teamwork/pwreset_constructURL.py
upiq/collective.teamwork
3751eeafa7f585a3ed2ff1e06f610e64145ac4d7
[ "BSD-4-Clause-UC" ]
null
null
null
collective/teamwork/skins/collective_teamwork/pwreset_constructURL.py
upiq/collective.teamwork
3751eeafa7f585a3ed2ff1e06f610e64145ac4d7
[ "BSD-4-Clause-UC" ]
1
2015-06-25T14:36:21.000Z
2015-06-25T14:36:21.000Z
## Script (Python) "pwreset_constructURL.py" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##title=Create the URL where passwords are reset ##parameters=randomstring host = container.absolute_url().replace('http:','https:') return "%s/passwordre...
31.909091
57
0.766382
6c966217b6d2aa15884d34a5166e0544588e8af4
1,144
py
Python
main.py
pratipo/wsd
b1322dc5372cb09e46f601fecac0394ade3d4c76
[ "MIT" ]
null
null
null
main.py
pratipo/wsd
b1322dc5372cb09e46f601fecac0394ade3d4c76
[ "MIT" ]
null
null
null
main.py
pratipo/wsd
b1322dc5372cb09e46f601fecac0394ade3d4c76
[ "MIT" ]
null
null
null
#!/usr/bin/python # wsd project main script # hardware: ws2801 led strips + raspberry pi + internet adapter # software pulls twits from an 'admin' (twits and retwits) and # displays the last result through the led strip # Written by Pratipo.org, hightly based on Adafruit's IoT Pinter. MIT license. # MUST BE RUN AS...
20.070175
78
0.678322
6c966a95b20a1ce63d9f131af2e82012975b3710
7,252
py
Python
q1/search_problem.py
dyrnade/ai_course
32ef66ba3f8a733da3ac4010266f7868bff56a7f
[ "BSD-2-Clause" ]
2
2017-02-05T20:03:29.000Z
2017-12-25T22:47:14.000Z
q1/search_problem.py
dyrnade/ai_course
32ef66ba3f8a733da3ac4010266f7868bff56a7f
[ "BSD-2-Clause" ]
null
null
null
q1/search_problem.py
dyrnade/ai_course
32ef66ba3f8a733da3ac4010266f7868bff56a7f
[ "BSD-2-Clause" ]
null
null
null
# Cem GURESCI 200201027 from __future__ import print_function from collections import deque # you will use it for breadth-first search if __name__ == '__main__': a = State('A') b = State('B') c = State('C') d = State('D') e = State('E') f = State('F') g = State('G') ...
43.42515
156
0.644926
6c96edce20f4f33056bc7d4162a68ff6c49c41f5
1,170
py
Python
signature_gen.py
srikanteswartalluri/pyutils
bf8d56ac9e9b0786861c08ef32eae49b021f20a3
[ "0BSD" ]
null
null
null
signature_gen.py
srikanteswartalluri/pyutils
bf8d56ac9e9b0786861c08ef32eae49b021f20a3
[ "0BSD" ]
null
null
null
signature_gen.py
srikanteswartalluri/pyutils
bf8d56ac9e9b0786861c08ef32eae49b021f20a3
[ "0BSD" ]
null
null
null
__author__ = 'talluri' #!/usr/bin/env python # by carlcarl import getopt import sys import hmac import hashlib import base64 import urllib if __name__ == '__main__': main()
20.172414
99
0.567521
6c972dfb7033788ac0c0ebbf3dcb12d3878b4343
511
py
Python
skytour/skytour/apps/observe/migrations/0012_alter_observinglocation_time_zone.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
skytour/skytour/apps/observe/migrations/0012_alter_observinglocation_time_zone.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
1
2022-03-17T01:19:23.000Z
2022-03-17T01:19:23.000Z
skytour/skytour/apps/observe/migrations/0012_alter_observinglocation_time_zone.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-31 22:28 from django.db import migrations, models
26.894737
154
0.626223
6c9779400ff460d7f43eb4923020d7f32bcafb52
1,304
py
Python
tests/conftest.py
ENVIRO-Module/enbios
10e93df9a168627833eca6d04e4e2b864de8e8d9
[ "BSD-3-Clause" ]
2
2022-01-28T09:38:28.000Z
2022-01-28T09:38:32.000Z
tests/conftest.py
ENVIRO-Module/enbios
10e93df9a168627833eca6d04e4e2b864de8e8d9
[ "BSD-3-Clause" ]
1
2022-01-27T21:42:42.000Z
2022-01-27T21:42:42.000Z
tests/conftest.py
ENVIRO-Module/enbios
10e93df9a168627833eca6d04e4e2b864de8e8d9
[ "BSD-3-Clause" ]
null
null
null
import os import pytest import sys import datetime import time import ctypes.util from typing import Union # scopes (broader to narrower): session, module, class, function (default)
19.176471
85
0.68865
6c9842a0e63f1e0fc07d93d96a3cc727ac82586d
15,495
py
Python
hyperformer/finetune_mt5_trainer.py
acsets/hyperformer_for_mmt
883a825f77b76a4bff292660392e8e37755c5ed6
[ "Apache-2.0" ]
null
null
null
hyperformer/finetune_mt5_trainer.py
acsets/hyperformer_for_mmt
883a825f77b76a4bff292660392e8e37755c5ed6
[ "Apache-2.0" ]
null
null
null
hyperformer/finetune_mt5_trainer.py
acsets/hyperformer_for_mmt
883a825f77b76a4bff292660392e8e37755c5ed6
[ "Apache-2.0" ]
null
null
null
import sys import torch import datasets import json import logging import os from pathlib import Path from transformers import AutoTokenizer, HfArgumentParser, set_seed from transformers.trainer_utils import EvaluationStrategy from hyperformer.third_party.models import T5Config, T5ForConditionalGeneration from hyperf...
47.824074
236
0.671765
6c985a99c0a2b41fd096b3e8f426894174fe0bd5
1,422
py
Python
src/charma/downloader/services.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-01-16T23:36:10.000Z
2020-01-16T23:36:10.000Z
src/charma/downloader/services.py
mononobi/imovie-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
24
2020-06-08T18:27:04.000Z
2021-06-06T12:01:39.000Z
src/charma/downloader/services.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-12-20T05:29:04.000Z
2020-12-20T05:29:04.000Z
# -*- coding: utf-8 -*- """ downloader services module. """ from pyrin.application.services import get_component from charma.downloader import DownloaderPackage def download(url, target, **options): """ downloads the file from given url and saves it to target path. it returns a tuple of two items. firs...
30.913043
91
0.634318
6c992faf65ce404eb87c15d05139a599ca297ab2
162
py
Python
venv/bin/django-admin.py
kouroshshafi/demo-woid-github
a3619d8f5348b7138b143e12c54539dd2b94bbb0
[ "Apache-2.0" ]
null
null
null
venv/bin/django-admin.py
kouroshshafi/demo-woid-github
a3619d8f5348b7138b143e12c54539dd2b94bbb0
[ "Apache-2.0" ]
null
null
null
venv/bin/django-admin.py
kouroshshafi/demo-woid-github
a3619d8f5348b7138b143e12c54539dd2b94bbb0
[ "Apache-2.0" ]
null
null
null
#!/Users/albalbaloo/Desktop/woid-master/venv/bin/python from django.core import management if __name__ == "__main__": management.execute_from_command_line()
27
55
0.790123
6c99f811bd8abcc5ae5f56fe91c193c7152c1b5e
286
py
Python
src/feature_detection/sift.py
jerry-le/computer-vision
bd81a0561680aa976c21c7902cf929257ffeedda
[ "MIT" ]
1
2018-10-14T02:05:58.000Z
2018-10-14T02:05:58.000Z
src/feature_detection/sift.py
jerry-le/computer-vision
bd81a0561680aa976c21c7902cf929257ffeedda
[ "MIT" ]
1
2018-10-05T01:48:48.000Z
2018-10-05T01:48:48.000Z
src/feature_detection/sift.py
jerry-le/computer-vision
bd81a0561680aa976c21c7902cf929257ffeedda
[ "MIT" ]
null
null
null
import cv2 import numpy as np from __utils__.general import show_image img = cv2.imread('../../asserts/images/zigzac.jpg') gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY) sift = cv2.xfeatures2d.SIFT_create() kp = sift.detect(gray, None) cv2.drawKeypoints(gray, kp, img) show_image(img)
22
51
0.755245
6c9b1eefd25dc21d37e4f4c876fc31060898bc73
203
py
Python
com/bigroad/python/demo/test3.py
liuyangyang2015/PythonDemo
a72c009a31ff833dd12405bb97e688ae91ceda6c
[ "MIT" ]
null
null
null
com/bigroad/python/demo/test3.py
liuyangyang2015/PythonDemo
a72c009a31ff833dd12405bb97e688ae91ceda6c
[ "MIT" ]
null
null
null
com/bigroad/python/demo/test3.py
liuyangyang2015/PythonDemo
a72c009a31ff833dd12405bb97e688ae91ceda6c
[ "MIT" ]
null
null
null
import numpy as np np.ones((3,4)) # film demo list = [(3,104),(2,100),(1,81),(101,10),(99,5),(98,2),(18,90)] print(list) for key , value in list: a = (key-18)**2+(value-90)**2 print(np.sqrt(a))
20.3
62
0.561576
6c9b3c5cc62a2d5ac5dd14196042eed862b77aa0
858
py
Python
recruitment_agency_api/agency_api/views.py
swingthrough/recruitment-agency-storage-api-task
ab388cdfb21cf5611e9fb00a0e7dfc20c125c5c3
[ "MIT" ]
null
null
null
recruitment_agency_api/agency_api/views.py
swingthrough/recruitment-agency-storage-api-task
ab388cdfb21cf5611e9fb00a0e7dfc20c125c5c3
[ "MIT" ]
null
null
null
recruitment_agency_api/agency_api/views.py
swingthrough/recruitment-agency-storage-api-task
ab388cdfb21cf5611e9fb00a0e7dfc20c125c5c3
[ "MIT" ]
null
null
null
from rest_framework import generics from rest_framework import mixins from . import models from . import serializers # Create your views here. # class JobCandidateView( # mixins.CreateModelMixin, # mixins.RetrieveModelMixin, # mixins.ListModelMixin, # mixins.UpdateModelMixin, # mixins.DestroyModel...
26.8125
59
0.719114
6c9d0cee4b66d405049e042c0811870e370692e9
841
py
Python
UserProfile/signals.py
DSM-App/Backend
384e4d219e3a6474027eb62d9a8fa1c986f09e8b
[ "MIT" ]
null
null
null
UserProfile/signals.py
DSM-App/Backend
384e4d219e3a6474027eb62d9a8fa1c986f09e8b
[ "MIT" ]
3
2021-09-22T18:50:33.000Z
2022-03-12T00:58:50.000Z
UserProfile/signals.py
DSM-App/Backend
384e4d219e3a6474027eb62d9a8fa1c986f09e8b
[ "MIT" ]
null
null
null
from django.dispatch import receiver from django.core.mail import send_mail from django.contrib.auth import get_user_model from django.conf import settings from .models import Profile from django.db.models.signals import post_save
28.033333
66
0.613555
6c9e9142e74f3b537a895131950a2b5f3457ba18
931
py
Python
home/migrations/0010_apply.py
kovoor/Crew
e6af475c7dd006b21a06ce8101d3735d483b2140
[ "MIT" ]
null
null
null
home/migrations/0010_apply.py
kovoor/Crew
e6af475c7dd006b21a06ce8101d3735d483b2140
[ "MIT" ]
null
null
null
home/migrations/0010_apply.py
kovoor/Crew
e6af475c7dd006b21a06ce8101d3735d483b2140
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-14 06:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
34.481481
123
0.633727
6c9ecfa28a220e7ab85d4b37494ab5624209e1ee
330
py
Python
data-set-without-time-with-negative_2.py
baruaranojoy/Mini-Project-3rd-Sem
8ae699f1e52764b744179d84d14ffde95d70eea7
[ "MIT" ]
null
null
null
data-set-without-time-with-negative_2.py
baruaranojoy/Mini-Project-3rd-Sem
8ae699f1e52764b744179d84d14ffde95d70eea7
[ "MIT" ]
null
null
null
data-set-without-time-with-negative_2.py
baruaranojoy/Mini-Project-3rd-Sem
8ae699f1e52764b744179d84d14ffde95d70eea7
[ "MIT" ]
null
null
null
fobj = open("mini_project_data_set_with_time_only.txt") f = open("mini_project_dynamic_graph_data_set_without_time.txt", "w") for line in fobj: a,b,c = map(int,line.rstrip().split()) e = [b,c] d1 = e[0] d2 = e[1] final = str(d1) + ' ' + str(d2) + '\n' f.write(final) #print e fobj...
25.384615
70
0.587879
6c9ed6e280c75bd9911e58f5c65043665bd54cc5
1,313
py
Python
gesso/gesso/git.py
machineeeee/builder-python
a01415ef8675e5a11afaa0fe33f794f8ab2a98dc
[ "Apache-2.0" ]
null
null
null
gesso/gesso/git.py
machineeeee/builder-python
a01415ef8675e5a11afaa0fe33f794f8ab2a98dc
[ "Apache-2.0" ]
null
null
null
gesso/gesso/git.py
machineeeee/builder-python
a01415ef8675e5a11afaa0fe33f794f8ab2a98dc
[ "Apache-2.0" ]
null
null
null
import os import sys import pygit2 import util if __name__ == "__main__": username = sys.argv[1].split('/')[0] # 'machineeeee' repository = sys.argv[1].split('/')[1] # 'raspberry-pi-3' print('Cloning %s/%s to %s/%s/%s' % (username, repository, '.packages', username, repository)) create_packages_directory() clone...
35.486486
97
0.72658
6c9f54bb218aacec1eeb0a5b1ef242f9d63757ed
5,723
py
Python
bin/make_dataset.py
htwangtw/nkicap
fa270a71d8e527560da791b18263ee8b63c8c25f
[ "MIT" ]
1
2021-05-18T09:08:00.000Z
2021-05-18T09:08:00.000Z
bin/make_dataset.py
htwangtw/nkicap
fa270a71d8e527560da791b18263ee8b63c8c25f
[ "MIT" ]
13
2021-03-12T16:21:01.000Z
2021-06-01T16:54:25.000Z
bin/make_dataset.py
htwangtw/nkicap
fa270a71d8e527560da791b18263ee8b63c8c25f
[ "MIT" ]
1
2021-05-17T18:30:59.000Z
2021-05-17T18:30:59.000Z
""" Get CAP data and MRIQ of the current sample. Only need to be ran once for tidying things up, but keep it here for book keeping. """ import json import os import numpy as np import pandas as pd from scipy import io from nkicap import get_project_path, read_tsv SOURCE_MAT = "sourcedata/CAP_results_organized_toHaoT...
33.863905
87
0.643544
6c9fe2985c452a0c234c3052c6dde474ab221968
4,770
py
Python
apps/combine-service/src/handlers/combine/validate.py
biosimulations/Biosimulations
3b55968d810110459a126deabe6d36d8d2a6e1ae
[ "MIT" ]
7
2020-09-30T16:57:55.000Z
2021-07-15T12:24:03.000Z
apps/combine-service/src/handlers/combine/validate.py
biosimulations/Biosimulations
3b55968d810110459a126deabe6d36d8d2a6e1ae
[ "MIT" ]
1,884
2020-08-23T17:40:26.000Z
2021-09-01T16:29:20.000Z
apps/combine-service/src/handlers/combine/validate.py
biosimulations/Biosimulations
3b55968d810110459a126deabe6d36d8d2a6e1ae
[ "MIT" ]
2
2020-10-07T14:20:15.000Z
2021-06-25T04:19:18.000Z
from ...exceptions import BadRequestException from ...utils import get_temp_dir, make_validation_report from biosimulators_utils.combine.data_model import CombineArchiveContentFormat from biosimulators_utils.combine.io import CombineArchiveReader from biosimulators_utils.combine.validation import validate from biosimul...
43.363636
143
0.685744
6ca0a4392aee98f70061228d3dfca357a004c16a
748
py
Python
dc17/models/food.py
lamby/dc17.dc.o
83cc79ad6f627b8c203fe62b7fcc9ff7abd84ee4
[ "0BSD" ]
null
null
null
dc17/models/food.py
lamby/dc17.dc.o
83cc79ad6f627b8c203fe62b7fcc9ff7abd84ee4
[ "0BSD" ]
null
null
null
dc17/models/food.py
lamby/dc17.dc.o
83cc79ad6f627b8c203fe62b7fcc9ff7abd84ee4
[ "0BSD" ]
null
null
null
from django.db import models from dc17.models.attendee import Attendee
24.933333
66
0.673797
6ca0c6fedfee99769e4ad267d4ff6ff792aef598
316
py
Python
app/errors/__init__.py
mauermbq/flask-blueprint
eed1c9a4ef357de4bdb20ec81856275fba75637f
[ "MIT" ]
null
null
null
app/errors/__init__.py
mauermbq/flask-blueprint
eed1c9a4ef357de4bdb20ec81856275fba75637f
[ "MIT" ]
3
2021-05-07T21:32:56.000Z
2021-05-07T21:33:01.000Z
app/errors/__init__.py
mauermbq/flask-blueprint
eed1c9a4ef357de4bdb20ec81856275fba75637f
[ "MIT" ]
null
null
null
""" Blueprint of error handler module It's possible to defie template_folder='templates' as argument to the Blueprint() constructor. Default is keeping html files in template subfolder. """ from flask import Blueprint bp = Blueprint('errors', __name__, template_folder='templates') from app.errors import handlers
28.727273
94
0.791139
6ca1d97f0fbfd4bb8f6635c24a81cb79a9e200fe
2,433
py
Python
chazhi/newton.py
Tigeraus/MA
45ff4e09e7dbf0b556922a13f4e42e928f996b80
[ "MIT" ]
null
null
null
chazhi/newton.py
Tigeraus/MA
45ff4e09e7dbf0b556922a13f4e42e928f996b80
[ "MIT" ]
null
null
null
chazhi/newton.py
Tigeraus/MA
45ff4e09e7dbf0b556922a13f4e42e928f996b80
[ "MIT" ]
null
null
null
# coding: utf-8 import matplotlib.pyplot as plt """ @brief: n f[x0, x1, x2 ... xn] @param: xi o @param: fi / \ @return: xii(ixi1) o o @...
27.965517
157
0.452117
6ca2c09182cc5e54b66ed55e21933f11d1311b83
687
py
Python
editpe.py
CyberSecLabBS/AdversarialMLMalwareSI2021
a2d9d4e6049bcf8f11d412a85c40fc68a33d8643
[ "CC0-1.0", "MIT" ]
null
null
null
editpe.py
CyberSecLabBS/AdversarialMLMalwareSI2021
a2d9d4e6049bcf8f11d412a85c40fc68a33d8643
[ "CC0-1.0", "MIT" ]
null
null
null
editpe.py
CyberSecLabBS/AdversarialMLMalwareSI2021
a2d9d4e6049bcf8f11d412a85c40fc68a33d8643
[ "CC0-1.0", "MIT" ]
null
null
null
import lief path_benign_exe = 'good.exe' path_strings_exe = 'good.txt' path_bad_exe = 'jigsaw_compress.exe' path_angel_exe = 'angel.exe' with open(path_bad_exe, 'rb') as f: bytez = f.read() # AGGIUNGI BINARIO with open(path_benign_exe, 'rb') as f: good_binary = f.read() bytez += good_binary #AGGIUNGI STRIN...
22.16129
49
0.740902
6ca3529ff35cdf5a1181dde039a07d3a4c603eca
2,657
py
Python
test.py
shaun95/variational-diffwave
b3edc2f1c3dc13fb72c068fb1dd0b24a2b9b423a
[ "Apache-2.0" ]
1
2022-01-29T15:22:41.000Z
2022-01-29T15:22:41.000Z
test.py
shaun95/variational-diffwave
b3edc2f1c3dc13fb72c068fb1dd0b24a2b9b423a
[ "Apache-2.0" ]
null
null
null
test.py
shaun95/variational-diffwave
b3edc2f1c3dc13fb72c068fb1dd0b24a2b9b423a
[ "Apache-2.0" ]
null
null
null
import argparse import json import torch import torchaudio import models as module_arch from utils.utils import get_instance from inference import * if __name__ == '__main__': parser = argparse.ArgumentParser(description='Inferencer') parser.add_argument('config', type=str, help='config file') parser.a...
35.426667
84
0.663154
6ca361412d77a53e9f88dd91d91611b188b04118
5,471
py
Python
app.py
darshil-IBI/ibi-jeopardy
dbaaf5ec3139d734a99681c95af6e14210aa98ba
[ "Apache-2.0" ]
null
null
null
app.py
darshil-IBI/ibi-jeopardy
dbaaf5ec3139d734a99681c95af6e14210aa98ba
[ "Apache-2.0" ]
null
null
null
app.py
darshil-IBI/ibi-jeopardy
dbaaf5ec3139d734a99681c95af6e14210aa98ba
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from future.standard_library import install_aliases install_aliases() from urllib.parse import urlparse, urlencode from urllib.request import urlopen, Request from urllib.error import HTTPError import json import random import os from flask import Flask from flask import request...
29.896175
243
0.634984
6ca3c3072f88c49c10e934740064094359f1f4b8
999
py
Python
kalasearch/http_client.py
oeddyo/kalasearch-python-sdk
bbb0cd44bd19d23ee4f1a3ea0aa5599e3e1fd38b
[ "MIT" ]
9
2020-08-19T06:48:25.000Z
2022-02-05T07:24:30.000Z
kalasearch/http_client.py
oeddyo/kalasearch-python-sdk
bbb0cd44bd19d23ee4f1a3ea0aa5599e3e1fd38b
[ "MIT" ]
1
2020-08-24T00:55:32.000Z
2020-08-24T00:55:32.000Z
kalasearch/http_client.py
oeddyo/kalasearch-python-sdk
bbb0cd44bd19d23ee4f1a3ea0aa5599e3e1fd38b
[ "MIT" ]
4
2021-11-09T20:41:13.000Z
2022-03-22T09:13:54.000Z
import requests
28.542857
76
0.613614
6ca7e63f09f8c91237fce98092950d3ca3cab92d
36
py
Python
pymicropel/test/__init__.py
vkorecky/pymicropel
9333ba1d691664a01d0ec63f89ae13956f37d633
[ "Apache-2.0" ]
null
null
null
pymicropel/test/__init__.py
vkorecky/pymicropel
9333ba1d691664a01d0ec63f89ae13956f37d633
[ "Apache-2.0" ]
null
null
null
pymicropel/test/__init__.py
vkorecky/pymicropel
9333ba1d691664a01d0ec63f89ae13956f37d633
[ "Apache-2.0" ]
null
null
null
"""Tests for Micropel Connector."""
18
35
0.694444
6ca86f71b1eb54a5e578ed82970ef4d7a40e87f8
2,309
py
Python
auto_mark.py
CallowBlack/sevmoodle-automark
db1dc6c45f55b8f34b539a20eef7d73b4cef2294
[ "Apache-2.0" ]
null
null
null
auto_mark.py
CallowBlack/sevmoodle-automark
db1dc6c45f55b8f34b539a20eef7d73b4cef2294
[ "Apache-2.0" ]
null
null
null
auto_mark.py
CallowBlack/sevmoodle-automark
db1dc6c45f55b8f34b539a20eef7d73b4cef2294
[ "Apache-2.0" ]
null
null
null
import asyncio from src.moodle_session import MoodleSession import src.session_manager as session_manager import src.data_manager as data_manager import aioconsole command_list = { "user_add": { "usage": "<name> <password>", "args": 2, "func": lambda args: data_manager.add_user(args[0]...
25.097826
83
0.573841
6ca8738934dc7eaf5bb06a890c1ae40dbbcbfebc
80
py
Python
wsgi.py
foozzi/cilantro
db730bd5bc91e7110187a15627904371ab99c0d9
[ "BSD-4-Clause-UC" ]
49
2020-07-10T18:27:47.000Z
2022-02-10T10:54:48.000Z
wsgi.py
foozzi/cilantro
db730bd5bc91e7110187a15627904371ab99c0d9
[ "BSD-4-Clause-UC" ]
4
2020-07-17T13:57:39.000Z
2020-08-14T12:40:42.000Z
wsgi.py
foozzi/cilantro
db730bd5bc91e7110187a15627904371ab99c0d9
[ "BSD-4-Clause-UC" ]
4
2020-07-17T16:00:20.000Z
2020-09-29T16:53:11.000Z
from cilantropy.cilantropy import app if __name__ == '__main__': app.run()
16
37
0.7125
6ca90bc02d88cb1363f2ce7f4466d8d966e749f6
228
py
Python
flask_reddit/subreddits/constants.py
bgigous/flask-labs-project4
46a62fd2b28d66acc2de7e89488f4750de8ab0df
[ "MIT" ]
null
null
null
flask_reddit/subreddits/constants.py
bgigous/flask-labs-project4
46a62fd2b28d66acc2de7e89488f4750de8ab0df
[ "MIT" ]
null
null
null
flask_reddit/subreddits/constants.py
bgigous/flask-labs-project4
46a62fd2b28d66acc2de7e89488f4750de8ab0df
[ "MIT" ]
null
null
null
# For simplicity, these values are shared among both threads and comments. MAX_THREADS = 1000 MAX_NAME = 50 MAX_DESCRIPTION = 3000 MAX_ADMINS = 2 # status DEAD = 0 ALIVE = 1 STATUS = { DEAD: 'dead', ALIVE: 'alive', }
14.25
74
0.684211
6ca943dcea2e6106828fb2f413dbeb83826f198e
171
py
Python
tests/pyb/pyb_f405.py
TG-Techie/circuitpython
390295dd218fb705fe652de77132dea472adf1ed
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
3
2020-01-09T21:50:22.000Z
2020-01-15T08:27:48.000Z
tests/pyb/pyb_f405.py
TG-Techie/circuitpython
390295dd218fb705fe652de77132dea472adf1ed
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
null
null
null
tests/pyb/pyb_f405.py
TG-Techie/circuitpython
390295dd218fb705fe652de77132dea472adf1ed
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
1
2020-01-11T12:42:41.000Z
2020-01-11T12:42:41.000Z
# test pyb module on F405 MCUs import os, pyb if not "STM32F405" in os.uname().machine: print("SKIP") raise SystemExit print(pyb.freq()) print(type(pyb.rng()))
15.545455
41
0.672515
6ca9521ccb6f1c2fb4f4b01dbc898fa8324bbc73
676
py
Python
scripts/main.py
rmanders/unlabeled-graphical-enumeration
ff9a5bdfa9e846e18308b428d24418dea5006f23
[ "MIT" ]
null
null
null
scripts/main.py
rmanders/unlabeled-graphical-enumeration
ff9a5bdfa9e846e18308b428d24418dea5006f23
[ "MIT" ]
null
null
null
scripts/main.py
rmanders/unlabeled-graphical-enumeration
ff9a5bdfa9e846e18308b428d24418dea5006f23
[ "MIT" ]
null
null
null
#!/bin/usr/env python """Primary script for testing""" from graphs.orderly import * import sys import argparse def setupArgs(): """Set up command line arguments""" parser = argparse.ArgumentParser(description='Program for generating unlabeled graphs over n vertices') parser.add_argument('--vertices', '-...
22.533333
107
0.634615
6ca986af7ca2960e93337363cd7ded1661a6a8ac
7,544
py
Python
gcn/bin/mksnpdb.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
11
2018-11-09T15:47:14.000Z
2021-08-18T18:05:11.000Z
gcn/bin/mksnpdb.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
5
2018-08-31T15:07:20.000Z
2020-03-30T18:52:04.000Z
gcn/bin/mksnpdb.py
kalon33/divine
2db92c093d98722f011224140e652c162a4f4336
[ "Intel" ]
1
2019-04-18T13:42:30.000Z
2019-04-18T13:42:30.000Z
#!/usr/bin/env python """ Script to build an sqlite database from a dbsnp or 1000 genomes vcf file. The script ignores all sample information and only processes those INFO fields that are described in the meta INFO section of the vcf file. Additionally QUAL and FILTER fields are also ignored since these tend to be sup...
33.678571
90
0.535525
6caa5053a07e5367a324d4aaa0f90ca9445678bb
2,829
py
Python
fff2_input_models_wrapper.py
jprchlik/cms2_python_helpers
8017598d6be01f9880a6f3350e5d6017212cd9c2
[ "MIT" ]
null
null
null
fff2_input_models_wrapper.py
jprchlik/cms2_python_helpers
8017598d6be01f9880a6f3350e5d6017212cd9c2
[ "MIT" ]
5
2018-01-12T22:12:25.000Z
2018-01-25T15:45:17.000Z
fff2_input_models_wrapper.py
jprchlik/cms2_python_helpers
8017598d6be01f9880a6f3350e5d6017212cd9c2
[ "MIT" ]
null
null
null
import sys, getopt import fff2_input_models as fim if __name__ == "__main__": main(sys.argv[1:])
32.147727
153
0.594203
6caa67bed589d7b7cb2df1a1cf71d7085f927d76
689
py
Python
src/web/dates/admin.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
5
2018-03-08T17:22:27.000Z
2018-03-11T14:20:53.000Z
src/web/dates/admin.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
263
2018-03-08T18:05:12.000Z
2022-03-11T23:26:20.000Z
src/web/dates/admin.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
6
2018-03-12T19:48:19.000Z
2022-01-14T04:58:52.000Z
from django.contrib import admin from dates import models
23.758621
71
0.690856
6caaa9a050f2a054c12f817e66ba775c13180ecd
470
py
Python
application/utils/ssl_required.py
xrlin/flask-personal-blog
58c8943a92a5040b80e0ec7ef098f610bdfe32aa
[ "BSD-2-Clause" ]
4
2015-11-22T07:59:32.000Z
2021-10-09T14:39:17.000Z
application/utils/ssl_required.py
xrlin/flask-personal-blog
58c8943a92a5040b80e0ec7ef098f610bdfe32aa
[ "BSD-2-Clause" ]
1
2017-02-08T02:25:39.000Z
2017-03-19T15:29:25.000Z
application/utils/ssl_required.py
xrlin/SimpleFlaskBlog
58c8943a92a5040b80e0ec7ef098f610bdfe32aa
[ "BSD-2-Clause" ]
null
null
null
#coding=utf-8 __author__ = 'archer' from functools import wraps from flask import request, redirect, current_app
23.5
75
0.606383
6cab23e29a5031e22270336c8ac40d73529295af
7,652
py
Python
generate_skeleton_try1-12.py
Luna86/tensorflow-wavenet_ssp
b0b9b55b16284f3810c7ac7f6d7eb0d637a3200d
[ "MIT" ]
null
null
null
generate_skeleton_try1-12.py
Luna86/tensorflow-wavenet_ssp
b0b9b55b16284f3810c7ac7f6d7eb0d637a3200d
[ "MIT" ]
null
null
null
generate_skeleton_try1-12.py
Luna86/tensorflow-wavenet_ssp
b0b9b55b16284f3810c7ac7f6d7eb0d637a3200d
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function import argparse from datetime import datetime import json import os import numpy as np import tensorflow as tf import scipy.io as sio from wavenet_skeleton import WaveNetModel SAMPLES = 16000 LOGDIR = './logdir' WINDOW = 25 #1 second of past samp...
36.966184
196
0.619054
6cab25a8711c049f37f9159e9bd87638f067fa1d
711
py
Python
estimate_cca.py
kshmelkov/forrestgump
da9a034854ccfc283d03bbc7d47855c2afba5c45
[ "BSD-3-Clause" ]
null
null
null
estimate_cca.py
kshmelkov/forrestgump
da9a034854ccfc283d03bbc7d47855c2afba5c45
[ "BSD-3-Clause" ]
null
null
null
estimate_cca.py
kshmelkov/forrestgump
da9a034854ccfc283d03bbc7d47855c2afba5c45
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python from fg_constants import * import cross_validation as cv import matplotlib.pyplot as plt import numpy as np from scipy.linalg import svd if __name__ == '__main__': X = load_regressor('word2vec', 0) Y = load_regressor('audio2', 0) print cca(X, Y, d=10).sum()
20.911765
67
0.627286
6cab64af28bc93b2303a0d7f1d16396512a065a5
2,475
py
Python
HTTP/HTTPserver.py
jhonatheberson/sockets
43a0a4744caf94423281db77b5f826bce489aacb
[ "MIT" ]
null
null
null
HTTP/HTTPserver.py
jhonatheberson/sockets
43a0a4744caf94423281db77b5f826bce489aacb
[ "MIT" ]
null
null
null
HTTP/HTTPserver.py
jhonatheberson/sockets
43a0a4744caf94423281db77b5f826bce489aacb
[ "MIT" ]
1
2022-03-24T14:30:53.000Z
2022-03-24T14:30:53.000Z
# AUTOR: JHONAT HEBERSON AVELINO DE SOUZA # # SCRIPT: servidor com metodo GET (python 3) # # importacao das bibliotecas import socket # definicao do host e da porta do servidor HOST = '' # ip do servidor (em branco) PORT = 8081 # porta do servidor # cria o socket com IPv4 (AF_INET) usando TCP (SOCK_STREAM) listen_so...
34.859155
100
0.637576
6cabc970a9b88e0dc2f995b14b61a394cc817f90
4,870
py
Python
baseStation/src/vision/infrastructure/cvGoalFinder.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/src/vision/infrastructure/cvGoalFinder.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/src/vision/infrastructure/cvGoalFinder.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
import logging from math import pi from typing import Tuple, List import cv2 import numpy as np from pathfinding.domain.angle import Angle from vision.domain.iGoalFinder import IGoalFinder from vision.domain.image import Image from vision.domain.rectangle import Rectangle from vision.domain.visionError import VisionE...
38.96
119
0.660986
6cacbe3591ce7a5a39f6923fe754eaa23866efc3
1,980
py
Python
Chapter25/forest_random.py
haohaoxiao/Deep-Reinforcement-Learning-Hands-On-Second-Edition
1cbdff216fdc5cec02cc0da8664b788941f025c1
[ "MIT" ]
621
2019-07-27T19:24:56.000Z
2022-03-31T14:19:52.000Z
Chapter25/forest_random.py
haohaoxiao/Deep-Reinforcement-Learning-Hands-On-Second-Edition
1cbdff216fdc5cec02cc0da8664b788941f025c1
[ "MIT" ]
40
2019-09-01T09:45:22.000Z
2022-03-24T13:13:00.000Z
Chapter25/forest_random.py
haohaoxiao/Deep-Reinforcement-Learning-Hands-On-Second-Edition
1cbdff216fdc5cec02cc0da8664b788941f025c1
[ "MIT" ]
346
2019-07-26T15:16:56.000Z
2022-03-30T15:33:20.000Z
#!/usr/bin/env python3 import os import sys sys.path.append(os.path.join(os.getcwd(), "MAgent/python")) import magent from magent.builtin.rule_model import RandomActor MAP_SIZE = 64 if __name__ == "__main__": env = magent.GridWorld("forest", map_size=MAP_SIZE) env.set_render_dir("render") # two groups ...
31.428571
66
0.612626
6cad0222fc45b37be1b4bf924700e5712a233db1
809
py
Python
sorting algorithms/quickSort.py
luizgfalqueto/algoritmosPython
a5f3d4728dbcce61c06e978f0aed7540d84eca54
[ "MIT" ]
null
null
null
sorting algorithms/quickSort.py
luizgfalqueto/algoritmosPython
a5f3d4728dbcce61c06e978f0aed7540d84eca54
[ "MIT" ]
null
null
null
sorting algorithms/quickSort.py
luizgfalqueto/algoritmosPython
a5f3d4728dbcce61c06e978f0aed7540d84eca54
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
18.386364
44
0.42398
6cae9624f9080d7829c2ab10ec2a57f9015d91e3
635
py
Python
app.py
thobiasn/steam-server-monitor
681f5d5d5b6d27ecd8623cd08929241d850f665d
[ "MIT" ]
null
null
null
app.py
thobiasn/steam-server-monitor
681f5d5d5b6d27ecd8623cd08929241d850f665d
[ "MIT" ]
null
null
null
app.py
thobiasn/steam-server-monitor
681f5d5d5b6d27ecd8623cd08929241d850f665d
[ "MIT" ]
null
null
null
import logging import sys from aiohttp import web import aiohttp_jinja2 import jinja2 import config from routes.api import routes_api from routes.ui import routes_ui web.run_app(make_app(), port=5000)
19.84375
74
0.730709
6cafeb9db3437527f31f0b9bf6699f3b1024f814
2,124
py
Python
model/layer.py
gzn00417/RandomResidualGCN
0e5c1df07657cfc02451b20fe5293aefbed655c3
[ "Apache-2.0" ]
null
null
null
model/layer.py
gzn00417/RandomResidualGCN
0e5c1df07657cfc02451b20fe5293aefbed655c3
[ "Apache-2.0" ]
null
null
null
model/layer.py
gzn00417/RandomResidualGCN
0e5c1df07657cfc02451b20fe5293aefbed655c3
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from torch.nn.parameter import Parameter import math
39.333333
129
0.64548
6cb15b5fa4c388b5d318004d7ed72dd97abb681e
3,887
py
Python
dashboard/forms.py
vulture990/Django-MangementApp
eafd2219bae7f565510d7aeefa64167329060582
[ "Apache-2.0" ]
null
null
null
dashboard/forms.py
vulture990/Django-MangementApp
eafd2219bae7f565510d7aeefa64167329060582
[ "Apache-2.0" ]
null
null
null
dashboard/forms.py
vulture990/Django-MangementApp
eafd2219bae7f565510d7aeefa64167329060582
[ "Apache-2.0" ]
null
null
null
from django import forms from django.forms import widgets from django.utils.safestring import mark_safe from decimal import Decimal from bootstrap_modal_forms.forms import BSModalForm from .models import SmartLinks, Earnings, Payments, SupportManager, Balance from profiles.models import User TYPE_CHOICES = [ ...
32.663866
117
0.605351
6cb18bde8984f3d41ba8709bb51f9df5446e4811
5,316
py
Python
alphastarmini/core/sl/sl_train_by_tensor.py
liuruoze/mini-AlphaStar
cf9de2507d526a5fb8ef67676aab2ffb92738640
[ "Apache-2.0" ]
108
2021-02-10T13:24:56.000Z
2022-03-21T09:58:28.000Z
alphastarmini/core/sl/sl_train_by_tensor.py
liuruoze/Raw-vs-Human-in-AlphaStar
99acae772eb5c93000dca87b78d6acdf7699f331
[ "Apache-2.0" ]
21
2021-04-09T18:46:05.000Z
2022-03-29T02:44:15.000Z
alphastarmini/core/sl/sl_train_by_tensor.py
liuruoze/Raw-vs-Human-in-AlphaStar
99acae772eb5c93000dca87b78d6acdf7699f331
[ "Apache-2.0" ]
19
2021-08-03T01:49:02.000Z
2022-03-30T10:21:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- " Train from the replay .pt files through pytorch tensor" import os USED_DEVICES = "7" import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"] = USED_DEVICES os.environ["CUDA_LAUNCH_BLOCKING"] = "1" import sys import time import trace...
31.455621
114
0.68924
6cb21cadafcaede98463d01a49a737848c8a0cd7
360
py
Python
quantdsl/infrastructure/event_sourced_repos/simulated_price_dependencies_repo.py
johnbywater/quantdsl
81c1c69f27e094a6ed0542b28cf1ac8fcce5494a
[ "BSD-3-Clause" ]
269
2015-01-09T00:56:41.000Z
2022-03-30T17:09:46.000Z
quantdsl/infrastructure/event_sourced_repos/simulated_price_dependencies_repo.py
johnbywater/quantdsl
81c1c69f27e094a6ed0542b28cf1ac8fcce5494a
[ "BSD-3-Clause" ]
22
2017-04-01T13:44:56.000Z
2018-09-10T11:48:56.000Z
quantdsl/infrastructure/event_sourced_repos/simulated_price_dependencies_repo.py
johnbywater/quantdsl
81c1c69f27e094a6ed0542b28cf1ac8fcce5494a
[ "BSD-3-Clause" ]
59
2015-01-09T00:56:50.000Z
2022-03-13T23:52:27.000Z
from eventsourcing.infrastructure.event_sourced_repo import EventSourcedRepository from quantdsl.domain.model.simulated_price_requirements import SimulatedPriceRequirements, SimulatedPriceRequirementsRepository
45
127
0.908333
6cb558227ac1e84bef92016016290a758a6aca30
21,544
py
Python
tests/primitives/test_repartition.py
philippwitte/distdl
e77e0c355d617def88b4acfcc12f0e92e9fb2fe5
[ "BSD-2-Clause" ]
null
null
null
tests/primitives/test_repartition.py
philippwitte/distdl
e77e0c355d617def88b4acfcc12f0e92e9fb2fe5
[ "BSD-2-Clause" ]
null
null
null
tests/primitives/test_repartition.py
philippwitte/distdl
e77e0c355d617def88b4acfcc12f0e92e9fb2fe5
[ "BSD-2-Clause" ]
null
null
null
import os import numpy as np import pytest import torch from adjoint_test import check_adjoint_test_tight use_cuda = 'USE_CUDA' in os.environ adjoint_parametrizations = [] # Main functionality adjoint_parametrizations.append( pytest.param( np.arange(4, 8), [4, 1], # P_x_ranks, P_x_shape np.aran...
32.741641
97
0.618084
6cb8388b7958b4b4de72f977446539bd94faa728
1,265
py
Python
pycroft/model/alembic/versions/ae8f4b63876a_add_confirmed_status_to_transaction.py
agdsn/pycroft
ea771141d59c88fdb8a782eafbe106240550a33a
[ "Apache-2.0" ]
18
2016-04-20T19:00:56.000Z
2021-12-19T16:43:57.000Z
pycroft/model/alembic/versions/ae8f4b63876a_add_confirmed_status_to_transaction.py
agdsn/pycroft
ea771141d59c88fdb8a782eafbe106240550a33a
[ "Apache-2.0" ]
461
2016-07-20T00:42:59.000Z
2022-03-25T17:03:07.000Z
pycroft/model/alembic/versions/ae8f4b63876a_add_confirmed_status_to_transaction.py
agdsn/pycroft
ea771141d59c88fdb8a782eafbe106240550a33a
[ "Apache-2.0" ]
15
2016-07-15T18:46:43.000Z
2021-03-17T20:08:39.000Z
"""Add confirmed status to transaction Revision ID: ae8f4b63876a Revises: 7c1927c937af Create Date: 2019-05-31 18:08:19.462983 """ from alembic import op import sqlalchemy as sa import pycroft # revision identifiers, used by Alembic. revision = 'ae8f4b63876a' down_revision = '7c1927c937af' branch_labels = None depe...
29.418605
131
0.665613
6cbad915ffd2da94701b301e5b98fdc0b1cbc5ae
4,592
py
Python
TempoFinder.py
b0nz0/TwisterTempo
fc975af4095509d8ec4fe2f84313fe152577bed2
[ "MIT" ]
null
null
null
TempoFinder.py
b0nz0/TwisterTempo
fc975af4095509d8ec4fe2f84313fe152577bed2
[ "MIT" ]
null
null
null
TempoFinder.py
b0nz0/TwisterTempo
fc975af4095509d8ec4fe2f84313fe152577bed2
[ "MIT" ]
null
null
null
""" class TempoFinder """ from time import time, perf_counter, sleep import logging import numpy import sounddevice from aubio import tempo, pitch, sink WRITE_WAV = False WAV_NAME = "out.wav" if __name__ == '__main__': # for test purposes tf = TempoFinder(samplerate=8000) tf.start() while True: ...
37.032258
100
0.624347
6cbc4c893bebb0e0fdc746c032f287d046336644
1,116
py
Python
CeaserCipher.py
suresh021/ISA
90430babd72137e98c0554657ba91284755f64fc
[ "MIT" ]
null
null
null
CeaserCipher.py
suresh021/ISA
90430babd72137e98c0554657ba91284755f64fc
[ "MIT" ]
null
null
null
CeaserCipher.py
suresh021/ISA
90430babd72137e98c0554657ba91284755f64fc
[ "MIT" ]
null
null
null
"""Ceaser Cipher Implementation""" original_text = "hellopassworld" # k is number of characters to shift i.e. If k=1, A->B k = 1 print("Original message: ", original_text) # encrypt cipher = encrypt(original_text, k) print("Encrypted message: ", ''.join(cipher)) # decrypt plaintext = decrypt(cipher, k) # join ...
22.32
88
0.640681
6cbc7e8c90e67810830495fd2b86b4fdef9cc60e
5,294
py
Python
grpc4bmi/bmi_client_docker.py
cffbots/grpc4bmi
4924f4155e78d4d1215ece36d49c88b3eccd2d58
[ "Apache-2.0" ]
4
2019-04-17T12:52:01.000Z
2021-03-25T09:22:27.000Z
grpc4bmi/bmi_client_docker.py
cffbots/grpc4bmi
4924f4155e78d4d1215ece36d49c88b3eccd2d58
[ "Apache-2.0" ]
78
2018-06-05T08:00:54.000Z
2021-11-11T08:32:38.000Z
grpc4bmi/bmi_client_docker.py
cffbots/grpc4bmi
4924f4155e78d4d1215ece36d49c88b3eccd2d58
[ "Apache-2.0" ]
2
2019-04-17T12:52:04.000Z
2022-02-03T08:56:36.000Z
import os import errno import time import docker from grpc4bmi.bmi_grpc_client import BmiClient from grpc4bmi.utils import stage_config_file
41.685039
159
0.618247
6cbdfec8b49dc333209a13496c7bf2001116ce84
13,023
py
Python
GA/Individual.py
rexzhang2014/geneticalgorithm
bd48924511c64285bb6f5ab3540ee8a0bd2e6874
[ "MIT" ]
null
null
null
GA/Individual.py
rexzhang2014/geneticalgorithm
bd48924511c64285bb6f5ab3540ee8a0bd2e6874
[ "MIT" ]
null
null
null
GA/Individual.py
rexzhang2014/geneticalgorithm
bd48924511c64285bb6f5ab3540ee8a0bd2e6874
[ "MIT" ]
null
null
null
#params aaaaa import numpy as np from copy import copy , deepcopy from collections import Iterable, Collection import pandas as pd import random DEBUG = False if __name__ == '__main__' : # np.random.seed(1) ind = IntegerIndividual([1,1,0,0,0],0,0,domain=list(range(84))) ind1 = ind.copy() ind2 =...
34.452381
121
0.574215
6cbec43cc046b63a3a8368a3e6c0c6785dde4c1c
652
py
Python
setup.py
garonfok/Scorechive
925ca50f91fa18a61f8e18425d0480d968112ee6
[ "MIT" ]
null
null
null
setup.py
garonfok/Scorechive
925ca50f91fa18a61f8e18425d0480d968112ee6
[ "MIT" ]
null
null
null
setup.py
garonfok/Scorechive
925ca50f91fa18a61f8e18425d0480d968112ee6
[ "MIT" ]
null
null
null
from scorechive._version import __version__ from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name="scorechive", version=__version__, author="Garon Fok", author_email="fokgaron@gmail.com", packages=["example_pkg"], description="Scorechive i...
28.347826
133
0.687117
6cbf411962fa4328504fcd5ad3302c946a121d0c
12,071
py
Python
volatility/framework/symbols/__init__.py
fengjixuchui/volatility3
8d3cc1dc1e6e301798aac1072b77cadecfc16091
[ "Linux-OpenIB" ]
3
2021-05-31T19:43:14.000Z
2021-08-02T00:09:26.000Z
volatility/framework/symbols/__init__.py
fengjixuchui/volatility3
8d3cc1dc1e6e301798aac1072b77cadecfc16091
[ "Linux-OpenIB" ]
null
null
null
volatility/framework/symbols/__init__.py
fengjixuchui/volatility3
8d3cc1dc1e6e301798aac1072b77cadecfc16091
[ "Linux-OpenIB" ]
1
2021-04-08T03:02:20.000Z
2021-04-08T03:02:20.000Z
# This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0 # which is available at https://www.volatilityfoundation.org/license/vsl-v1.0 # import collections import collections.abc import enum import logging from typing import Any, Dict, Iterable, Iterator, TypeVar, List...
46.072519
118
0.648993
6cbfa6bedeec652c883c19b7a0bf5801e903affa
1,962
py
Python
src/blog/models.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
4
2018-08-21T05:33:40.000Z
2019-05-06T09:03:06.000Z
src/blog/models.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
1
2020-08-09T10:33:58.000Z
2020-08-09T10:33:58.000Z
src/blog/models.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
1
2019-05-06T13:33:06.000Z
2019-05-06T13:33:06.000Z
""" Blog models """ from django.contrib.auth import get_user_model from django.db import models from django.utils.text import slugify from markdown2 import markdown
22.295455
86
0.614169
6cbfae888700fbf15186058110371fc5dde3d25e
2,578
py
Python
Notebooks/mnist_loader.py
sashakarimi/ML-Hult-Summer-2019
12d4204914760c05951314e3a8de3e1af3cf8cc8
[ "MIT" ]
2
2019-07-06T20:14:49.000Z
2019-11-21T17:50:16.000Z
Notebooks/mnist_loader.py
sashakarimi/ML-Hult-Summer-2019
12d4204914760c05951314e3a8de3e1af3cf8cc8
[ "MIT" ]
null
null
null
Notebooks/mnist_loader.py
sashakarimi/ML-Hult-Summer-2019
12d4204914760c05951314e3a8de3e1af3cf8cc8
[ "MIT" ]
4
2019-07-06T20:14:54.000Z
2019-12-10T05:25:28.000Z
# Adapted from https://github.com/sorki/python-mnist/blob/master/mnist/loader.py import os import struct from array import array import numpy as np from matplotlib import pyplot as plt
30.690476
95
0.567494
6cc1feb632fd2d7254708480eb59522de73462c8
29,678
py
Python
core/feature/phone_screen_touch_features/phone_screen_touch_features_all_app.py
MD2Korg/CerebralCortex-DataAnalysis
73f5ea2430bc7c23de422dccb7b65ef9f8917595
[ "BSD-2-Clause" ]
1
2018-04-24T18:11:24.000Z
2018-04-24T18:11:24.000Z
core/feature/phone_screen_touch_features/phone_screen_touch_features_all_app.py
Boris69bg/CerebralCortex-DataAnalysis
49565bdff348d69153bd5d3a37e73f1645f82b32
[ "BSD-2-Clause" ]
10
2018-03-13T19:04:09.000Z
2018-05-12T01:40:03.000Z
core/feature/phone_screen_touch_features/phone_screen_touch_features_all_app.py
Boris69bg/CerebralCortex-DataAnalysis
49565bdff348d69153bd5d3a37e73f1645f82b32
[ "BSD-2-Clause" ]
42
2017-12-07T17:08:14.000Z
2019-06-02T08:25:12.000Z
# Copyright (c) 2018, MD2K Center of Excellence # - Md Shiplu Hawlader <shiplu.cse.du@gmail.com; mhwlader@memphis.edu> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of sour...
46.663522
120
0.593335
6cc2380f179da03035e761cb03c466795eb19876
2,477
py
Python
src/pybedforms/new_dunes.py
RichardScottOZ/pybedfroms
4805823f0b25a27499c462be724d48866c261c03
[ "BSD-3-Clause" ]
22
2021-05-11T17:35:59.000Z
2021-07-29T13:21:07.000Z
src/pybedforms/new_dunes.py
RichardScottOZ/pybedfroms
4805823f0b25a27499c462be724d48866c261c03
[ "BSD-3-Clause" ]
4
2021-05-28T15:34:09.000Z
2021-08-06T20:25:44.000Z
src/pybedforms/new_dunes.py
RichardScottOZ/pybedfroms
4805823f0b25a27499c462be724d48866c261c03
[ "BSD-3-Clause" ]
4
2021-05-11T17:42:15.000Z
2021-05-28T22:39:42.000Z
import argparse import numpy as np import configparser from .dune_topo import DuneTopo if __name__ == '__main__': p = argparse.ArgumentParser(description='New Dune Tool') """ How many files do you want to run? Name of input parameter file? Name of input parameter file? Enter color for movies...
33.472973
115
0.616875
6cc410667aa1dc5ed4d11b72dfa40fd1bb4977db
3,854
py
Python
model/loss.py
lycantrope/SleepStage
a6c8c6c353fe281e06f642eb7da1cbccfbedc1e4
[ "MIT" ]
null
null
null
model/loss.py
lycantrope/SleepStage
a6c8c6c353fe281e06f642eb7da1cbccfbedc1e4
[ "MIT" ]
null
null
null
model/loss.py
lycantrope/SleepStage
a6c8c6c353fe281e06f642eb7da1cbccfbedc1e4
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np # mean false error by Wang+16, IJCNN. # mean squared false error by Wang+16, IJCNN.
43.303371
117
0.579398
6cc6984a118ef4825fe0b09329eb2f6b70a70968
4,155
py
Python
tableau.py
frank4466/inkscape-tableau
40ff7febcf7d5711acbafd5ae2fce5dccfb38ca5
[ "FSFAP" ]
5
2017-11-28T13:03:17.000Z
2020-04-21T10:26:15.000Z
tableau.py
frank4466/inkscape-tableau
40ff7febcf7d5711acbafd5ae2fce5dccfb38ca5
[ "FSFAP" ]
2
2020-05-16T08:13:14.000Z
2020-10-14T09:07:52.000Z
tableau.py
frank4466/inkscape-tableau
40ff7febcf7d5711acbafd5ae2fce5dccfb38ca5
[ "FSFAP" ]
2
2020-04-21T10:26:11.000Z
2021-01-13T12:49:43.000Z
#!/usr/bin/env python # coding: utf-8 # toutes les chaines sont en unicode (mme les docstrings) from __future__ import unicode_literals """ tableau.py Cration de tableau simple pour Inkscape Cod par Frank SAURET - http://www.electropol.fr - License : Public Domain """ import inkex __version__ = '2020.2' # Ve...
39.951923
116
0.699398
6cc6e2f2075b25aafd82cb80821c29d8bb2bae8b
2,196
py
Python
crop_to_train.py
watcharap0n/dlib-dc
0c6dce2618686f4ae2ee41213da9e073c8b62825
[ "MIT" ]
2
2021-06-16T07:16:15.000Z
2021-07-29T03:22:38.000Z
crop_to_train.py
watcharap0n/FaceRecognition-DC
0c6dce2618686f4ae2ee41213da9e073c8b62825
[ "MIT" ]
null
null
null
crop_to_train.py
watcharap0n/FaceRecognition-DC
0c6dce2618686f4ae2ee41213da9e073c8b62825
[ "MIT" ]
null
null
null
import cv2 from os import listdir import os import dlib import time import pickle detector = dlib.get_frontal_face_detector() sp = dlib.shape_predictor('model_image/shape_predictor_68_face_landmarks.dat') model = dlib.face_recognition_model_v1('model_image/dlib_face_recognition_resnet_model_v1.dat') path = 'datasets/...
39.927273
107
0.600638
6cc853f69acfcdf92a2864e2ae98eea2353230d2
3,614
py
Python
video_demo.py
zhreshold/mxnet-yolo
711daacecdb3ab603e1b37b86171bdac066d60b8
[ "MIT" ]
266
2017-05-22T08:07:50.000Z
2022-02-15T03:01:06.000Z
video_demo.py
liben2018/mxnet-yolov2
5f822a6022de7bc5d154174fc7dcf598ada40223
[ "MIT" ]
44
2017-05-22T06:44:30.000Z
2018-12-11T02:58:49.000Z
video_demo.py
liben2018/mxnet-yolov2
5f822a6022de7bc5d154174fc7dcf598ada40223
[ "MIT" ]
100
2017-06-24T06:23:16.000Z
2022-03-18T21:29:05.000Z
import os import cv2 import numpy as np import random from moviepy.editor import * import mxnet as mx from detect.detector import Detector main()
33.775701
103
0.565855
6cc863462beb8552be03ca2688c76f0614e388b1
3,135
py
Python
aws_quality_of_life/route53_record.py
opentokix/yolo-dangerzone
7ea5ab54e3369997c9715fb762cc5604023b3aee
[ "Unlicense" ]
2
2020-02-13T02:38:25.000Z
2022-01-24T15:02:29.000Z
aws_quality_of_life/route53_record.py
opentokix/yolo-dangerzone
7ea5ab54e3369997c9715fb762cc5604023b3aee
[ "Unlicense" ]
null
null
null
aws_quality_of_life/route53_record.py
opentokix/yolo-dangerzone
7ea5ab54e3369997c9715fb762cc5604023b3aee
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # Very simple tool to add A or AAAA records in a route53 hosted zone from the command line. import boto3 import click import os import logging import ipaddress logger = logging.getLogger('route53_tool') logger.setLevel(logging.ERROR) ch = logging.StreamHandler() ch.setLevel(logging.DEBUG) format...
34.076087
116
0.638278
6cc8b81b0bf5fb8e1755277b7ccc4e2995a908cd
860
py
Python
scripts/download_deps_linux.py
MikuAuahDark/love-fuser
042acb78bb5e1c713c4478eb29e7596b66167c4e
[ "Xnet", "X11" ]
7
2021-08-01T16:36:59.000Z
2022-03-22T21:05:34.000Z
scripts/download_deps_linux.py
MikuAuahDark/love-fuser
042acb78bb5e1c713c4478eb29e7596b66167c4e
[ "Xnet", "X11" ]
2
2021-12-06T09:22:01.000Z
2022-01-05T13:25:00.000Z
scripts/download_deps_linux.py
MikuAuahDark/love-fuser
042acb78bb5e1c713c4478eb29e7596b66167c4e
[ "Xnet", "X11" ]
2
2021-10-11T04:27:44.000Z
2022-02-04T18:02:11.000Z
import argparse import os if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("url", type=str, help="tarball url") parser.add_argument("dest", type=str, help="tarball new folder name") args = parser.parse_args() # Get filename filename: str = os.path.basename(args....
33.076923
73
0.644186
6cca1bf9bd8e3138ff009d66eb9a75fe744c9ce3
163
py
Python
description.py
firmwaremodules/iot-firmware-loader
cd46d2a8c3a8489f9bb370cd340c3ed26e6c3ad6
[ "Apache-2.0" ]
null
null
null
description.py
firmwaremodules/iot-firmware-loader
cd46d2a8c3a8489f9bb370cd340c3ed26e6c3ad6
[ "Apache-2.0" ]
1
2018-02-13T18:56:47.000Z
2018-02-13T18:56:47.000Z
description.py
firmwaremodules/iot-firmware-loader
cd46d2a8c3a8489f9bb370cd340c3ed26e6c3ad6
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': main()
23.285714
106
0.680982
6ccb1061c6f26ea1ddc8b2931ac8a8a5db981ffb
222
py
Python
src/tic/plane/admin.py
gunduzhuseyn/Tic-SPLE
d6321be0a3824c6b071e558df47f372bcf855e07
[ "MIT" ]
null
null
null
src/tic/plane/admin.py
gunduzhuseyn/Tic-SPLE
d6321be0a3824c6b071e558df47f372bcf855e07
[ "MIT" ]
null
null
null
src/tic/plane/admin.py
gunduzhuseyn/Tic-SPLE
d6321be0a3824c6b071e558df47f372bcf855e07
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import PlaneEvent, SeatingPlan, Seat, PlaneTicket admin.site.register(PlaneEvent) admin.site.register(SeatingPlan) admin.site.register(Seat) admin.site.register(PlaneTicket)
24.666667
62
0.828829
6ccb856d1e3f4a1865f3be09e3538cbf927298dd
3,130
py
Python
utils/mpl.py
dlzcn/MemoryMonitor
863ef0c82917128c94575931661c7e666d56e20c
[ "MIT" ]
null
null
null
utils/mpl.py
dlzcn/MemoryMonitor
863ef0c82917128c94575931661c7e666d56e20c
[ "MIT" ]
null
null
null
utils/mpl.py
dlzcn/MemoryMonitor
863ef0c82917128c94575931661c7e666d56e20c
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # ****************************************************** # @author: Haifeng CHEN - optical.dlz@gmail.com # @date (created): 2019-10-22 21:27 # @file: mpl.py # @brief: Matplotlib utilities # @internal: # revision: 2 # last modifie...
48.90625
120
0.563578
6ccd66394aaf44082f5f50651314b7e0684b38a8
33
py
Python
xy_agent/__init__.py
kmharrington/xy_stage_control
1aef165a2ecebf9bd7a659435ff6905ed79b1726
[ "MIT" ]
null
null
null
xy_agent/__init__.py
kmharrington/xy_stage_control
1aef165a2ecebf9bd7a659435ff6905ed79b1726
[ "MIT" ]
2
2021-04-09T15:57:41.000Z
2021-09-27T15:50:56.000Z
xy_agent/__init__.py
kmharrington/xy_stage_control
1aef165a2ecebf9bd7a659435ff6905ed79b1726
[ "MIT" ]
1
2021-04-23T18:29:43.000Z
2021-04-23T18:29:43.000Z
from .xy_connect import XY_Stage
16.5
32
0.848485
6ccd6a5a170a585da97a15eaae7284f19869a7aa
4,526
py
Python
importer/anki_importer.py
evandroforks/CrowdAnki
00a8ca39650f1eee2258d0d087f89600338238c1
[ "MIT" ]
null
null
null
importer/anki_importer.py
evandroforks/CrowdAnki
00a8ca39650f1eee2258d0d087f89600338238c1
[ "MIT" ]
null
null
null
importer/anki_importer.py
evandroforks/CrowdAnki
00a8ca39650f1eee2258d0d087f89600338238c1
[ "MIT" ]
null
null
null
import json import os import shutil from pathlib import Path from typing import Callable, Optional import aqt import aqt.utils import yaml from ..representation import deck_initializer from ..utils.constants import DECK_FILE_NAME, DECK_FILE_EXTENSION, MEDIA_SUBDIRECTORY_NAME, IMPORT_CONFIG_NAME from ..importer.import...
38.355932
110
0.670791
6ccd93a30d23fe43a26e36aa441642380e3dd346
3,501
py
Python
src/GUI/path_find_GUI.py
jonny21099/path-find
b409905e0c8c0d1615d00e22188d056dd696ba8b
[ "Apache-2.0" ]
null
null
null
src/GUI/path_find_GUI.py
jonny21099/path-find
b409905e0c8c0d1615d00e22188d056dd696ba8b
[ "Apache-2.0" ]
1
2020-04-25T05:48:45.000Z
2020-04-27T00:23:46.000Z
src/GUI/path_find_GUI.py
jonny21099/path-find
b409905e0c8c0d1615d00e22188d056dd696ba8b
[ "Apache-2.0" ]
null
null
null
import kivy kivy.require('1.11.1') import sqlite3 from kivy.config import Config from kivy.app import App from kivy.properties import ObjectProperty from kivy.uix.screenmanager import ScreenManager, Screen from kivy.lang import Builder from kivy.uix.popup import Popup from kivy.uix.floatlayout import FloatLayout fro...
36.852632
145
0.732362
6cce0038f12dcc1c0161fccaf35951d15f13f876
2,230
py
Python
ProtectionDomains/scripts/Profile_Nutanix_Action_ListVMSnapshots_Task_ListSnapshot.py
kingsleyck/NutanixCalm
35012c983a78490ee454d564ebbcbaf221055b8d
[ "MIT" ]
null
null
null
ProtectionDomains/scripts/Profile_Nutanix_Action_ListVMSnapshots_Task_ListSnapshot.py
kingsleyck/NutanixCalm
35012c983a78490ee454d564ebbcbaf221055b8d
[ "MIT" ]
null
null
null
ProtectionDomains/scripts/Profile_Nutanix_Action_ListVMSnapshots_Task_ListSnapshot.py
kingsleyck/NutanixCalm
35012c983a78490ee454d564ebbcbaf221055b8d
[ "MIT" ]
null
null
null
# REST API call to Prism Central to list all available VM snapshots # setup common variables uri = 'localhost:9440' cluster_uuid = '@@{platform.status.cluster_reference.uuid}@@' vm_uuid = '@@{id}@@' hostname = '@@{calm_application_name}@@' remote_cluster = '@@{remote_protection_domain_cluster}@@' # setup credentials ...
28.589744
113
0.589686
6cce0af4fc80f8a76f65a2e1945b84732ac968c9
2,885
py
Python
src/methods_saxs/ensemble.py
spirit01/ensemble-fit_docker_version
6396184c9bf311ac83c012f94ad293605a32798c
[ "MIT" ]
1
2018-10-23T17:12:44.000Z
2018-10-23T17:12:44.000Z
src/methods_saxs/ensemble.py
spirit01/ensemble-fit_docker_version
6396184c9bf311ac83c012f94ad293605a32798c
[ "MIT" ]
null
null
null
src/methods_saxs/ensemble.py
spirit01/ensemble-fit_docker_version
6396184c9bf311ac83c012f94ad293605a32798c
[ "MIT" ]
null
null
null
#Script must have these three parts: # prepare_data() # make_experiment() # collect_result() import logging import pathlib import shutil import subprocess import sys from saxs_experiment import Colors from saxs_experiment import LogPipe
39.520548
112
0.632582
6ccf32f517955fcbf679927cd5f7f3e4219cdd8f
6,138
py
Python
scionlab/tests/test_certificates.py
andreatulimiero/scionlab
d6063ca4fbc5cbf153287e1b4b98cdf8d507f6ba
[ "Apache-2.0" ]
null
null
null
scionlab/tests/test_certificates.py
andreatulimiero/scionlab
d6063ca4fbc5cbf153287e1b4b98cdf8d507f6ba
[ "Apache-2.0" ]
null
null
null
scionlab/tests/test_certificates.py
andreatulimiero/scionlab
d6063ca4fbc5cbf153287e1b4b98cdf8d507f6ba
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 ETH Zurich # # 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, sof...
35.275862
92
0.631313
6ccfedad79753d6e4523328c7738c36856cbbfea
475
py
Python
test.py
CraneLu/Basic_CNNs_TensorFlow2
9fe6df17899e53c82a99615703721c6e409fe489
[ "MIT" ]
null
null
null
test.py
CraneLu/Basic_CNNs_TensorFlow2
9fe6df17899e53c82a99615703721c6e409fe489
[ "MIT" ]
null
null
null
test.py
CraneLu/Basic_CNNs_TensorFlow2
9fe6df17899e53c82a99615703721c6e409fe489
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import tensorflow as tf datasets = tf.keras.datasets.fashion_mnist (train_images, train_labels), (test_images, test_labels) = datasets.load_data() print(train_images.shape) # (60000, 28, 28) print(len(train_labels)) # 60000 print(train_labels) # ([9, 0, 0, ..., 3,...
29.6875
79
0.707368
6ccfef2e1ab4ccf5e76fbf6c645bae7f3e9a2201
9,994
py
Python
python/swagger_client/models/vehicle_type.py
byung90/graphhopper
443891657e20cd1393675b1d4a1b9f38c691cdff
[ "Apache-2.0" ]
null
null
null
python/swagger_client/models/vehicle_type.py
byung90/graphhopper
443891657e20cd1393675b1d4a1b9f38c691cdff
[ "Apache-2.0" ]
null
null
null
python/swagger_client/models/vehicle_type.py
byung90/graphhopper
443891657e20cd1393675b1d4a1b9f38c691cdff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ GraphHopper Directions API You use the GraphHopper Directions API to add route planning, navigation and route optimization to your software. E.g. the Routing API has turn instructions and elevation data and the Route Optimization API solves your logistic problems and supports various const...
31.526814
420
0.61667
6cd00de5c8d59f007ac8ba764e45305035fd1e13
1,029
py
Python
python/linguagem-de-programacao/estrutura/exercicio_1.py
BrenoPremoli/Faculdade
dcf5d106b10453224e37af830a53b2214af1d2ee
[ "MIT" ]
1
2022-03-19T22:50:12.000Z
2022-03-19T22:50:12.000Z
python/linguagem-de-programacao/estrutura/exercicio_1.py
BrenoPremoli/Faculdade
dcf5d106b10453224e37af830a53b2214af1d2ee
[ "MIT" ]
null
null
null
python/linguagem-de-programacao/estrutura/exercicio_1.py
BrenoPremoli/Faculdade
dcf5d106b10453224e37af830a53b2214af1d2ee
[ "MIT" ]
null
null
null
# 1. Elabore uma estrutura para representar um produto (cdigo, nome, preo). Aplique 10% de aumento no preo do produto e apresente. main()
42.875
133
0.623907
6cd1eedeb6f3bee8fa8a7be3d35140384637a572
568
py
Python
tests/algorithms/gd/test_adamax.py
vishalbelsare/neupy
684313cdaddcad326f2169384fb15ec3aa29d991
[ "MIT" ]
null
null
null
tests/algorithms/gd/test_adamax.py
vishalbelsare/neupy
684313cdaddcad326f2169384fb15ec3aa29d991
[ "MIT" ]
null
null
null
tests/algorithms/gd/test_adamax.py
vishalbelsare/neupy
684313cdaddcad326f2169384fb15ec3aa29d991
[ "MIT" ]
null
null
null
from neupy import algorithms from data import simple_classification from base import BaseTestCase
27.047619
67
0.598592
6cd272ae05038b5a4339d86005e7b571f993e7d4
330
py
Python
services/python-images/server.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
1
2021-11-21T13:52:36.000Z
2021-11-21T13:52:36.000Z
services/python-images/server.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
3
2021-10-06T13:23:43.000Z
2022-01-07T13:48:41.000Z
services/python-images/server.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
null
null
null
from src.app import socketio, app from src.master.config import MPCI_ENVIRONMENT, PORT if __name__ == "__main__": isDevelopment = MPCI_ENVIRONMENT != 'production' and MPCI_ENVIRONMENT != 'staging' port = PORT if port is None: port = 5000 socketio.run(app, host="0.0.0.0", port=port, debug=isDev...
30
86
0.7
6cd379fefb41f2c248ad774a6765389d5cc95be5
5,363
py
Python
src/sources/house_of_tartan.py
thetartan/tartan-database
55adcebed4c68c717fbf714d7619da95da6a70db
[ "MIT" ]
7
2016-11-11T06:49:44.000Z
2021-10-13T03:45:46.000Z
src/sources/house_of_tartan.py
kravets-levko/tartan-database
55adcebed4c68c717fbf714d7619da95da6a70db
[ "MIT" ]
null
null
null
src/sources/house_of_tartan.py
kravets-levko/tartan-database
55adcebed4c68c717fbf714d7619da95da6a70db
[ "MIT" ]
1
2018-04-27T08:42:48.000Z
2018-04-27T08:42:48.000Z
from ..core import Source, log, utils import re import json import requests re_extract_ids = re.compile( 'onclick="Frm\(\'([0-9]+)\'\)"', re.IGNORECASE ) # 'a'..'z' catalogue_index = [chr(i) for i in range(ord('a'), ord('z') + 1)] re_extract_attr = re.compile( '<div class="(title|ftr-hdr|ftr-txt|ftr-cpy)...
28.833333
79
0.495059
6cd386ab342045a23e42596447462146553393d0
7,543
py
Python
valet/utils/core/communicate.py
sadmicrowave/valet
39724c3f2a49b2253e89044af2b103e3e89d4cd8
[ "MIT" ]
null
null
null
valet/utils/core/communicate.py
sadmicrowave/valet
39724c3f2a49b2253e89044af2b103e3e89d4cd8
[ "MIT" ]
null
null
null
valet/utils/core/communicate.py
sadmicrowave/valet
39724c3f2a49b2253e89044af2b103e3e89d4cd8
[ "MIT" ]
null
null
null
########################################################################### # ## @file communicate.py # ########################################################################### import os, sys, textwrap, subprocess, queue from . import communicate_pb2_grpc #from collections.abc import Iterable from ..canonical.c...
29.464844
108
0.463343
6cd432537cf723bb57e727d757ab1c0b4f8e3c03
3,335
py
Python
app/routes/dog_routes.py
Kbhlee2121/flasky
1ddf91cb5cfcc17aa082cfee0b28e30896adfea8
[ "MIT" ]
null
null
null
app/routes/dog_routes.py
Kbhlee2121/flasky
1ddf91cb5cfcc17aa082cfee0b28e30896adfea8
[ "MIT" ]
null
null
null
app/routes/dog_routes.py
Kbhlee2121/flasky
1ddf91cb5cfcc17aa082cfee0b28e30896adfea8
[ "MIT" ]
null
null
null
from app import db from app.models.dog import Dog from flask import Blueprint, jsonify, make_response, request, abort import random dog_bp = Blueprint("dog", __name__, url_prefix="/dogs") # Helper Functions # Create dog and get all dogs # Routes
27.791667
94
0.647376
6cd4566dbb8ea3de66173852554eabaa75b0fa54
145
py
Python
pomodoro_timer/configs/app_configs.py
asvatov/pomodoro-timer
d0079372850aed45021f81c2b936fecf5298b63f
[ "MIT" ]
null
null
null
pomodoro_timer/configs/app_configs.py
asvatov/pomodoro-timer
d0079372850aed45021f81c2b936fecf5298b63f
[ "MIT" ]
1
2019-06-25T16:01:47.000Z
2019-06-25T16:01:47.000Z
pomodoro_timer/configs/app_configs.py
asvatov/pomodoro-timer
d0079372850aed45021f81c2b936fecf5298b63f
[ "MIT" ]
null
null
null
APP = "pomodoro-timer" APP_NAME = "Pomodoro Timer" APP_INDICATOR_ID = "pomodoro-timer" APP_DBUS_NAME = "com.github.Pomodoro" APP_VERSION = 0.1
18.125
37
0.751724
6cd776c2f857355dcc8be1d2f3f3588c2dca0a95
519
py
Python
problems/pe2.py
tgetzoya/project-euler-python
c459dc0f853c27006db6865be731ad53ee2cd778
[ "BSD-2-Clause" ]
null
null
null
problems/pe2.py
tgetzoya/project-euler-python
c459dc0f853c27006db6865be731ad53ee2cd778
[ "BSD-2-Clause" ]
null
null
null
problems/pe2.py
tgetzoya/project-euler-python
c459dc0f853c27006db6865be731ad53ee2cd778
[ "BSD-2-Clause" ]
null
null
null
# Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: # # 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... # # By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms....
25.95
142
0.583815
6cd78c1488e93654d55446138cbdbe038987ba0a
293
py
Python
factories/PebbleConnectionFactory.py
JDVDev/TaskRelay
20213d31c90c0420e62f1e75c138ca1cb89211ee
[ "Apache-2.0" ]
null
null
null
factories/PebbleConnectionFactory.py
JDVDev/TaskRelay
20213d31c90c0420e62f1e75c138ca1cb89211ee
[ "Apache-2.0" ]
null
null
null
factories/PebbleConnectionFactory.py
JDVDev/TaskRelay
20213d31c90c0420e62f1e75c138ca1cb89211ee
[ "Apache-2.0" ]
null
null
null
from libpebble2.communication.transports.serial import SerialTransport from libpebble2.communication import PebbleConnection
41.857143
86
0.791809
6cd7906a50836e3522d33376e9729ff7ca341359
403
py
Python
sorting/bubble_sort.py
rpg711/Interview-Prep
2d12a11738d4c709bc593dcfdbf54d9f92141d61
[ "MIT" ]
null
null
null
sorting/bubble_sort.py
rpg711/Interview-Prep
2d12a11738d4c709bc593dcfdbf54d9f92141d61
[ "MIT" ]
null
null
null
sorting/bubble_sort.py
rpg711/Interview-Prep
2d12a11738d4c709bc593dcfdbf54d9f92141d61
[ "MIT" ]
null
null
null
if __name__ == '__main__': A = [5,1,4,2,8] bubble_sort(A, lambda a,b: a < b) print(A)
26.866667
43
0.503722
6cd861724dfed64644d3ee4472a173f378bc5c7a
16,863
py
Python
goblin/session.py
brean/goblin
c61177de7f0e59661fbe74531ea4cb58558a1f31
[ "Apache-2.0" ]
null
null
null
goblin/session.py
brean/goblin
c61177de7f0e59661fbe74531ea4cb58558a1f31
[ "Apache-2.0" ]
null
null
null
goblin/session.py
brean/goblin
c61177de7f0e59661fbe74531ea4cb58558a1f31
[ "Apache-2.0" ]
null
null
null
"""Main OGM API classes and constructors""" import asyncio import collections import logging import weakref import aiogremlin from aiogremlin.driver.protocol import Message from aiogremlin.driver.resultset import ResultSet from aiogremlin.process.graph_traversal import __ from gremlin_python.process.traversal import ...
36.032051
79
0.592896
6cd8d4430b71d1605ae8e8e1181821f85d3d6750
8,108
py
Python
routes/fa12_route.py
hicetnunc2000/-
11810bb682a5800b5ca079a4e803519297c9db55
[ "MIT" ]
11
2020-10-27T16:36:07.000Z
2021-07-11T15:38:03.000Z
routes/fa12_route.py
hicetnunc2000/tezos-storage-flask
11810bb682a5800b5ca079a4e803519297c9db55
[ "MIT" ]
2
2020-11-19T20:28:28.000Z
2020-12-08T20:32:43.000Z
routes/fa12_route.py
hicetnunc2000/tezos-storage-flask
11810bb682a5800b5ca079a4e803519297c9db55
[ "MIT" ]
5
2021-03-06T02:06:39.000Z
2021-11-12T21:53:32.000Z
# @crzypatchwork from flask import Blueprint, request, session from pytezos import Contract from pytezos import pytezos from pytezos.operation.result import OperationResult from flask import Flask from flask_restx import fields, Resource, Api, Namespace from controllers.validate import Validate import distutils.util...
24.947692
154
0.540824
6cd8f5cd1a456c09836d701f0fea24d3f6da7736
1,987
py
Python
extractor.py
nataMamed/webscraping
68b8c9c98e14df73855b3def11e71215e810f42b
[ "MIT" ]
2
2021-06-02T21:16:30.000Z
2021-06-15T20:27:08.000Z
extractor.py
nataMamed/email-scraping
68b8c9c98e14df73855b3def11e71215e810f42b
[ "MIT" ]
null
null
null
extractor.py
nataMamed/email-scraping
68b8c9c98e14df73855b3def11e71215e810f42b
[ "MIT" ]
null
null
null
import re from requests import get from requests.exceptions import MissingSchema, ConnectionError import pandas as pd if __name__ == '__main__': # # url = 'https://github.com/nataMamed/WebScraping/blob/main/data/emails_rgs.csv' # # reg = r'\w+@\w+\.{1}\w+' # # reg2 = r"[a-z0-9\.\-+_]+@[a-z0-9\.\-+_]+\....
29.656716
122
0.65224
6cd9f0184447f45b3373feb9a260b5d46e898c01
7,760
py
Python
tests/test_annotate.py
BookLaugh/serialization
a3ff87aa2cd5b3322daee7ebee1e025783438b46
[ "MIT" ]
12
2016-03-01T15:04:08.000Z
2020-11-23T14:49:32.000Z
tests/test_annotate.py
BookLaugh/serialization
a3ff87aa2cd5b3322daee7ebee1e025783438b46
[ "MIT" ]
1
2020-11-23T15:31:24.000Z
2020-11-23T19:46:50.000Z
tests/test_annotate.py
BookLaugh/serialization
a3ff87aa2cd5b3322daee7ebee1e025783438b46
[ "MIT" ]
2
2020-11-23T14:45:38.000Z
2020-11-23T17:03:48.000Z
# F3AT - Flumotion Asynchronous Autonomous Agent Toolkit # Copyright (C) 2010,2011 Flumotion Services, S.A. # All rights reserved. # 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...
28.955224
76
0.633763
6cdc76b7958922046e3982c5fcbc6d2ff66de635
1,376
py
Python
shakelib/correlation/boore_2003.py
ynthdhj/shakemap
2771b8aee6b22f065cc80632c894a0ba77829619
[ "CC0-1.0" ]
null
null
null
shakelib/correlation/boore_2003.py
ynthdhj/shakemap
2771b8aee6b22f065cc80632c894a0ba77829619
[ "CC0-1.0" ]
null
null
null
shakelib/correlation/boore_2003.py
ynthdhj/shakemap
2771b8aee6b22f065cc80632c894a0ba77829619
[ "CC0-1.0" ]
null
null
null
import numpy as np
36.210526
83
0.612645
6cde088d71029a4817455be15e096daa0cb13688
98,320
py
Python
GammaEyes.py
Edshree/GammaEyes
c601d78445fbe399524512df6ae56ce31f0b6cec
[ "MIT" ]
1
2021-11-13T02:35:14.000Z
2021-11-13T02:35:14.000Z
GammaEyes.py
Edshree/GammaEyes
c601d78445fbe399524512df6ae56ce31f0b6cec
[ "MIT" ]
null
null
null
GammaEyes.py
Edshree/GammaEyes
c601d78445fbe399524512df6ae56ce31f0b6cec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ========================================== GammaEyes Version 1.0.1 == Created at: 2021.07.19 == Author@Aiyun Sun == Email say@insmea.cn == ========================================== GammaEyes is an open sourc...
43.408389
186
0.495932
6cdfe4e21850718998221c09a4f2c81fea03da87
2,138
py
Python
brew_thermometer/aws_iot_reporter.py
ksletmoe/brew_thermometer
740cee8e237d401ae0f5d97bd1f4916969365b6b
[ "BSD-3-Clause" ]
null
null
null
brew_thermometer/aws_iot_reporter.py
ksletmoe/brew_thermometer
740cee8e237d401ae0f5d97bd1f4916969365b6b
[ "BSD-3-Clause" ]
null
null
null
brew_thermometer/aws_iot_reporter.py
ksletmoe/brew_thermometer
740cee8e237d401ae0f5d97bd1f4916969365b6b
[ "BSD-3-Clause" ]
null
null
null
from paho.mqtt import client as mqtt import ssl from brew_thermometer.errors import ReporterError import json
40.339623
115
0.658559
6ce2af899c72663acbd5323a33647b4be50b34f9
4,905
py
Python
tests/test_utils_hyper_params_factory.py
gcattan/pyRiemann-qiskit
a53f2f891f4d8726b97ed8f0baaf89f86b5ea731
[ "BSD-3-Clause" ]
7
2022-01-10T19:19:59.000Z
2022-02-21T20:13:24.000Z
tests/test_utils_hyper_params_factory.py
toncho11/pyRiemann-qiskit
93c11801127ef8d80c9e94ea0f31549a6b863238
[ "BSD-3-Clause" ]
28
2021-09-27T11:53:29.000Z
2022-03-29T08:39:55.000Z
tests/test_utils_hyper_params_factory.py
toncho11/pyRiemann-qiskit
93c11801127ef8d80c9e94ea0f31549a6b863238
[ "BSD-3-Clause" ]
2
2021-09-25T17:04:23.000Z
2022-02-07T16:34:20.000Z
import pytest from pyriemann_qiskit.utils.hyper_params_factory import (gen_zz_feature_map, gen_two_local, gates, get_spsa)
41.218487
79
0.651376
6ce6e8d9537188868b4c69468b964ff8533cd15f
1,409
py
Python
data_structs/RewardFuncDictClass.py
david-abel/vpsa_aistats2020
06e3c7ce1691e27d0eb1757c585623bd35bc494b
[ "MIT" ]
4
2020-02-17T21:35:22.000Z
2021-08-29T07:07:23.000Z
data_structs/RewardFuncDictClass.py
david-abel/vpsa_aistats2020
06e3c7ce1691e27d0eb1757c585623bd35bc494b
[ "MIT" ]
null
null
null
data_structs/RewardFuncDictClass.py
david-abel/vpsa_aistats2020
06e3c7ce1691e27d0eb1757c585623bd35bc494b
[ "MIT" ]
null
null
null
# Python imports. import random from collections import defaultdict def make_rew_dict_from_lambda(reward_func_lambda, state_space, action_space, sample_rate): ''' Args: transition_func_lambda (lambda : simple_rl.State x str --> simple_rl.State) state_space (list) action_space (list) ...
29.354167
112
0.624556
6ce76a463b6a97c5763ca5f9e8e9046e6b614846
13,344
py
Python
bin/kerdenSOM.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
bin/kerdenSOM.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
bin/kerdenSOM.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/bin/python """ Kernel Probability Density Estimator Self-Organizing Map """ # python import re import os import sys import glob import time import numpy import shutil import subprocess # appion from appionlib import appionScript from appionlib import apXmipp from appionlib import apDisplay from appionlib import app...
34.040816
101
0.684502
6ce79e7fd96bdac62db00f64aee93bac8d10eccd
1,941
py
Python
storagetransfer/nearline_request_test.py
InstantDomain/python-docs-samples
f8e293c722998b269da38b7fe11b98aae8932b8f
[ "Apache-2.0" ]
1
2022-01-30T07:11:54.000Z
2022-01-30T07:11:54.000Z
storagetransfer/nearline_request_test.py
InstantDomain/python-docs-samples
f8e293c722998b269da38b7fe11b98aae8932b8f
[ "Apache-2.0" ]
1
2021-12-13T05:15:00.000Z
2021-12-13T05:15:00.000Z
storagetransfer/nearline_request_test.py
FFHixio/python-docs-samples
b39441b3ca0a7b27e9c141e9b43e78e729105573
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google 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 # # Unless required by applicable law or agreed to in writing, sof...
32.35
74
0.751159
6ce7c2ce79cf658bc50b58c911a0662bac5e5baa
508
py
Python
nbviewer/nbmanager/scheduler/quartz_scheduler_provider.py
netcadlabs/nbviewer
19546e4e913b66d755a830619e404a6e704dbb30
[ "BSD-3-Clause-Clear" ]
null
null
null
nbviewer/nbmanager/scheduler/quartz_scheduler_provider.py
netcadlabs/nbviewer
19546e4e913b66d755a830619e404a6e704dbb30
[ "BSD-3-Clause-Clear" ]
null
null
null
nbviewer/nbmanager/scheduler/quartz_scheduler_provider.py
netcadlabs/nbviewer
19546e4e913b66d755a830619e404a6e704dbb30
[ "BSD-3-Clause-Clear" ]
null
null
null
from nbviewer.nbmanager.api.scheduler_provider import SchedulerProvider # TODO - https://www.quartz-scheduler.net/documentation
23.090909
71
0.692913
6ce9ce2dd0e46784853652492cb563b90869ae67
8,688
py
Python
gamestate-changes/change_statistics/other/plotChangeTypeStatistics.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
1
2020-05-18T15:55:09.000Z
2020-05-18T15:55:09.000Z
gamestate-changes/change_statistics/other/plotChangeTypeStatistics.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
null
null
null
gamestate-changes/change_statistics/other/plotChangeTypeStatistics.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from mpldatacursor import datacursor import pandas as pd
52.97561
155
0.674839
6ce9f324d55b6ae60b1dceae331b0a18c49e6cb8
606
py
Python
cpematcher/utils.py
alertot/cpematcher
3b7f1fc18988700764326e8299fffa26a0dd2cd6
[ "MIT" ]
3
2018-08-06T16:08:14.000Z
2019-12-10T17:18:21.000Z
cpematcher/utils.py
alertot/cpematcher
3b7f1fc18988700764326e8299fffa26a0dd2cd6
[ "MIT" ]
2
2019-06-26T19:23:04.000Z
2019-06-30T23:17:46.000Z
cpematcher/utils.py
alertot/cpematcher
3b7f1fc18988700764326e8299fffa26a0dd2cd6
[ "MIT" ]
3
2019-06-25T06:11:07.000Z
2021-11-02T13:13:37.000Z
# heavily inspired by https://stackoverflow.com/a/21882672
27.545455
63
0.50495