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
a22d14123c5934e462a7334c1d55b574adf6c9be
3,403
py
Python
10-19/14. normalize_sentences/test_normalize_sentences.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
1
2021-11-30T05:03:24.000Z
2021-11-30T05:03:24.000Z
10-19/14. normalize_sentences/test_normalize_sentences.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
null
null
null
10-19/14. normalize_sentences/test_normalize_sentences.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
2
2021-04-18T05:26:43.000Z
2021-11-28T18:46:43.000Z
import unittest from textwrap import dedent from normalize_sentences import normalize_sentences if __name__ == "__main__": unittest.main(verbosity=2)
33.362745
78
0.601234
a22d9fe19ea5e2d8a40235675b25713b84b3f165
2,673
py
Python
graph/renkolib.py
kUNWAR-DIVYANSHU/stockui
f85a26b461512fefd33a4f2acfa30d178de3d118
[ "MIT" ]
2
2021-08-28T20:37:01.000Z
2021-08-30T12:01:33.000Z
graph/renkolib.py
kUNWAR-DIVYANSHU/stockui
f85a26b461512fefd33a4f2acfa30d178de3d118
[ "MIT" ]
null
null
null
graph/renkolib.py
kUNWAR-DIVYANSHU/stockui
f85a26b461512fefd33a4f2acfa30d178de3d118
[ "MIT" ]
null
null
null
import atrlib import pandas as pd # module for calculation of data for renko graph
37.647887
63
0.412645
a22ef44872867d8b0cd94176f76c246bfbaa7a25
2,846
py
Python
utils/utils.py
SoliareofAstora/Metagenomic-DeepFRI
7ee12c5bc34f9103f113e93f570719686f856372
[ "BSD-3-Clause" ]
null
null
null
utils/utils.py
SoliareofAstora/Metagenomic-DeepFRI
7ee12c5bc34f9103f113e93f570719686f856372
[ "BSD-3-Clause" ]
null
null
null
utils/utils.py
SoliareofAstora/Metagenomic-DeepFRI
7ee12c5bc34f9103f113e93f570719686f856372
[ "BSD-3-Clause" ]
1
2022-01-12T10:41:51.000Z
2022-01-12T10:41:51.000Z
import os import pathlib import requests import shutil import subprocess import time ENV_PATHS = set()
28.747475
132
0.627899
a22fe2112341437f4d8c36db1b3319ad00230552
2,274
py
Python
fuzzinator/tracker/github_tracker.py
akosthekiss/fuzzinator
194e199bb0efea26b857ad05f381f72e7a9b8f66
[ "BSD-3-Clause" ]
null
null
null
fuzzinator/tracker/github_tracker.py
akosthekiss/fuzzinator
194e199bb0efea26b857ad05f381f72e7a9b8f66
[ "BSD-3-Clause" ]
null
null
null
fuzzinator/tracker/github_tracker.py
akosthekiss/fuzzinator
194e199bb0efea26b857ad05f381f72e7a9b8f66
[ "BSD-3-Clause" ]
1
2018-06-28T05:21:21.000Z
2018-06-28T05:21:21.000Z
# Copyright (c) 2016-2022 Renata Hodovan, Akos Kiss. # # Licensed under the BSD 3-Clause License # <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>. # This file may not be copied, modified, or distributed except # according to those terms. try: # FIXME: very nasty, but a recent PyGithub version began ...
34.454545
145
0.670624
a2315dd43508aee4e316bc2ccbff15322163a590
2,624
py
Python
qmdz_const.py
cygnushan/measurement
644e8b698faf50dcc86d88834675d6adf1281b10
[ "MIT" ]
1
2022-03-18T18:38:02.000Z
2022-03-18T18:38:02.000Z
qmdz_const.py
cygnushan/measurement
644e8b698faf50dcc86d88834675d6adf1281b10
[ "MIT" ]
null
null
null
qmdz_const.py
cygnushan/measurement
644e8b698faf50dcc86d88834675d6adf1281b10
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os from init_op import read_config # ROOT_PATH = os.path.split(os.path.realpath(__file__))[0] if getattr(sys, 'frozen', None): ROOT_DIR = os.path.dirname(sys.executable) else: ROOT_DIR = os.path.dirname(__file__) VI_CONF_PATH = ROOT_DIR + "\conf\VI_CONF.ini" ST_CON...
24.523364
92
0.596418
a231a6c5e1e9bfd374c54640c8a12d24c01e3857
93
py
Python
lattedb/linksmear/apps.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
1
2019-12-11T02:33:23.000Z
2019-12-11T02:33:23.000Z
lattedb/linksmear/apps.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
10
2020-01-29T17:06:01.000Z
2021-05-31T14:41:19.000Z
lattedb/linksmear/apps.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig
15.5
33
0.763441
a232ee55bbdd0227f3c92c01f62af655cba96907
2,088
py
Python
project/repository/user.py
tobiasaditya/fastapi-blog
0f50f4261755f926ce9e951db8237a5f38384dcb
[ "MIT" ]
null
null
null
project/repository/user.py
tobiasaditya/fastapi-blog
0f50f4261755f926ce9e951db8237a5f38384dcb
[ "MIT" ]
null
null
null
project/repository/user.py
tobiasaditya/fastapi-blog
0f50f4261755f926ce9e951db8237a5f38384dcb
[ "MIT" ]
null
null
null
from typing import List from fastapi import APIRouter from fastapi.params import Depends from fastapi import HTTPException, status from sqlalchemy.orm.session import Session from project import schema, models, database, hashing router = APIRouter( prefix="/user", tags=['Users'] ) # @router.put('/{id}') # def ...
33.142857
102
0.724617
a23471f40d09455ca7a0123fbc08ae7b2e5ada89
17,643
py
Python
milking_cowmask/data_sources/imagenet_data_source.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
milking_cowmask/data_sources/imagenet_data_source.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
milking_cowmask/data_sources/imagenet_data_source.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # 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 applicab...
36.75625
100
0.677719
a2397ee156e882b19d6dbf902268121905eaf802
4,293
py
Python
utils/image.py
ariel415el/Efficient-GPNN
05f6588c3cc920e810d71fc9ed001f8915d7fc8a
[ "Apache-2.0" ]
7
2021-11-11T22:57:14.000Z
2022-03-23T08:47:00.000Z
utils/image.py
ariel415el/Efficient-GPNN
05f6588c3cc920e810d71fc9ed001f8915d7fc8a
[ "Apache-2.0" ]
null
null
null
utils/image.py
ariel415el/Efficient-GPNN
05f6588c3cc920e810d71fc9ed001f8915d7fc8a
[ "Apache-2.0" ]
4
2021-11-18T07:24:09.000Z
2022-03-26T22:35:05.000Z
import os import cv2 import torch from torch.nn import functional as F from torchvision import transforms import torchvision.utils def blur(img, pyr_factor): """Blur image by downscaling and then upscaling it back to original size""" if pyr_factor < 1: d_img = downscale(img, pyr_factor) img...
35.775
133
0.663406
a23daef3bb54fa9c84f160a660ef817f0e87362d
499
py
Python
docs/user/visualization/matplotlib/pythonstyle.py
joelfrederico/mytools
7bf57c49c7dde0a8b0aa337fbd2fbd527ce7a67f
[ "MIT" ]
1
2021-03-31T23:27:09.000Z
2021-03-31T23:27:09.000Z
docs/user/visualization/matplotlib/pythonstyle.py
joelfrederico/mytools
7bf57c49c7dde0a8b0aa337fbd2fbd527ce7a67f
[ "MIT" ]
null
null
null
docs/user/visualization/matplotlib/pythonstyle.py
joelfrederico/mytools
7bf57c49c7dde0a8b0aa337fbd2fbd527ce7a67f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt import numpy as np # Create data to plot x = np.linspace(0, 10, 100) y1 = np.sin(x) y2 = np.cos(x) # Create a grid gs = gridspec.GridSpec(1, 2) # Create a figure fig = plt.figure(figsize=(16, 6)) # Create axes ax1 = fig.ad...
16.633333
38
0.695391
a23e0e43898b8301125178c7c69d4cccc505d6ca
21,583
py
Python
StockAnalysisSystem/ui/Extension/recycled/announcement_downloader.py
SleepySoft/StockAnalysisSystem
75f95738831614f7946f85d09118e447f7ac6dc7
[ "Apache-2.0" ]
138
2018-01-03T03:32:49.000Z
2022-03-12T02:57:46.000Z
StockAnalysisSystem/ui/Extension/recycled/announcement_downloader.py
SleepySoft/StockAnalysisSystem
75f95738831614f7946f85d09118e447f7ac6dc7
[ "Apache-2.0" ]
9
2018-01-01T03:16:24.000Z
2021-05-27T09:57:24.000Z
StockAnalysisSystem/ui/Extension/recycled/announcement_downloader.py
SleepySoft/StockAnalysisSystem
75f95738831614f7946f85d09118e447f7ac6dc7
[ "Apache-2.0" ]
50
2019-08-05T01:02:30.000Z
2022-03-07T00:52:14.000Z
import time import urllib import random import logging import requests import datetime from os import sys, path, makedirs from PyQt5.QtCore import Qt, QTimer, QDateTime from PyQt5.QtWidgets import QWidget, QPushButton, QVBoxLayout, QLabel, QComboBox, QDateTimeEdit, QCheckBox, QLineEdit, \ QRadioButton root_path =...
39.099638
195
0.580874
a23e80a2bc9c75ffcdcaee541fdcd296843ceb25
1,109
py
Python
tests/routes/generators/test_random.py
pedrofreitascampospro/locintel
eb9c56cdc308660c31d90abe9fe62bd3634ba273
[ "MIT" ]
null
null
null
tests/routes/generators/test_random.py
pedrofreitascampospro/locintel
eb9c56cdc308660c31d90abe9fe62bd3634ba273
[ "MIT" ]
null
null
null
tests/routes/generators/test_random.py
pedrofreitascampospro/locintel
eb9c56cdc308660c31d90abe9fe62bd3634ba273
[ "MIT" ]
null
null
null
import random import shapely.geometry as sg from locintel.quality.generators.random import RandomRoutePlanGenerator, polygons random.seed(10)
35.774194
85
0.733093
a23ebe170e2650bcc75fd785f5c11d3fba8249e1
3,878
py
Python
curtin-rci/local_utils.py
Curtin-Open-Knowledge-Initiative/mag_coverage_report
a75dd1273c44895b5c857ebd498407aa95bd45e5
[ "Apache-2.0" ]
null
null
null
curtin-rci/local_utils.py
Curtin-Open-Knowledge-Initiative/mag_coverage_report
a75dd1273c44895b5c857ebd498407aa95bd45e5
[ "Apache-2.0" ]
2
2021-08-30T11:52:25.000Z
2021-09-02T12:11:05.000Z
curtin-rci/local_utils.py
Curtin-Open-Knowledge-Initiative/mag_coverage_report
a75dd1273c44895b5c857ebd498407aa95bd45e5
[ "Apache-2.0" ]
3
2021-07-04T07:39:01.000Z
2021-08-24T15:24:29.000Z
import pandas as pd import plotly.graph_objects as go from typing import Union, Optional from pathlib import Path DATA_FOLDER = Path('data_files') MAIN_SCHOOLS = [ 'Curtin Law School', 'Curtin Medical School', 'School of Accounting, Economics and Finance', 'School of Allied Health', 'School of Civ...
33.721739
95
0.57968
a23fbcb063477231d30f7934e898ac5453872dde
2,492
py
Python
scripts/pa-loaddata.py
kbase/probabilistic_annotation
2454925ca98c80c73bda327a0eff8aed94c5a48d
[ "MIT" ]
null
null
null
scripts/pa-loaddata.py
kbase/probabilistic_annotation
2454925ca98c80c73bda327a0eff8aed94c5a48d
[ "MIT" ]
null
null
null
scripts/pa-loaddata.py
kbase/probabilistic_annotation
2454925ca98c80c73bda327a0eff8aed94c5a48d
[ "MIT" ]
null
null
null
#! /usr/bin/python import argparse import os from biokbase.probabilistic_annotation.DataParser import DataParser from biokbase.probabilistic_annotation.Helpers import get_config from biokbase import log desc1 = ''' NAME pa-loaddata -- load static database of gene annotations SYNOPSIS ''' desc2 = ''' DES...
34.611111
124
0.726726
a2408683ebb50640f78f65bb066c73360bbad5e1
21,441
py
Python
pippin.py
harlowja/pippin
e101ad867ea9982457374281a2050c30020b10f4
[ "Apache-2.0" ]
null
null
null
pippin.py
harlowja/pippin
e101ad867ea9982457374281a2050c30020b10f4
[ "Apache-2.0" ]
null
null
null
pippin.py
harlowja/pippin
e101ad867ea9982457374281a2050c30020b10f4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2015 Yahoo! Inc. 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...
37.223958
79
0.54671
a2431b76a7fd7273de98b3d8241bb7216ee7d296
2,182
py
Python
python/src/main/python/pygw/query/aggregation_query_builder.py
radiant-maxar/geowave
2d9f39d32e4621c8f5965a4dffff0623c1c03231
[ "Apache-2.0" ]
280
2017-06-14T01:26:19.000Z
2022-03-28T15:45:23.000Z
python/src/main/python/pygw/query/aggregation_query_builder.py
radiant-maxar/geowave
2d9f39d32e4621c8f5965a4dffff0623c1c03231
[ "Apache-2.0" ]
458
2017-06-12T20:00:59.000Z
2022-03-31T04:41:59.000Z
python/src/main/python/pygw/query/aggregation_query_builder.py
radiant-maxar/geowave
2d9f39d32e4621c8f5965a4dffff0623c1c03231
[ "Apache-2.0" ]
135
2017-06-12T20:39:34.000Z
2022-03-15T13:42:30.000Z
# # Copyright (c) 2013-2020 Contributors to the Eclipse Foundation # # See the NOTICE file distributed with this work for additional information regarding copyright # ownership. All rights reserved. This program and the accompanying materials are made available # under the terms of the Apache License, Version 2.0 whic...
35.193548
120
0.651696
a243a526c6890fd80b3908d73d1ec8bf0226c2b2
6,059
py
Python
tests/test_cells.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
null
null
null
tests/test_cells.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
null
null
null
tests/test_cells.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
null
null
null
from pyg_base import acell, cell, cell_func, dictattr, dt, getargspec, passthru, add_, get_cache from pyg_base._cell import cell_output, cell_item, cell_inputs, _updated import pytest from pyg_base import *
29.70098
126
0.523519
a244d716297448851950a6f197be289befd9e237
4,379
py
Python
uwsgi/unacc/poc.py
nobgr/vulhub
b24a89459fbd98ba76881adb6d4e2fb376792863
[ "MIT" ]
9,681
2017-09-16T12:31:59.000Z
2022-03-31T23:49:31.000Z
uwsgi/unacc/poc.py
dingafter/vulhub
67547c4ca153980004ccaeab94f77bcc9952d764
[ "MIT" ]
180
2017-11-01T08:05:07.000Z
2022-03-31T05:26:33.000Z
uwsgi/unacc/poc.py
dingafter/vulhub
67547c4ca153980004ccaeab94f77bcc9952d764
[ "MIT" ]
3,399
2017-09-16T12:21:54.000Z
2022-03-31T12:28:48.000Z
#!/usr/bin/python # coding: utf-8 ###################### # Uwsgi RCE Exploit ###################### # Author: wofeiwo@80sec.com # Created: 2017-7-18 # Last modified: 2018-1-30 # Note: Just for research purpose import sys import socket import argparse import requests if __name__ == '__main__': main()
30.2
106
0.570222
a2453fb1d06de4864cf98c020579a6af505d8bfa
4,169
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/dark_lang/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/dark_lang/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/dark_lang/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Views file for the Darklang Django App """ from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import redirect from django.template.loader import render_to_string from django.utils.decorators import method_decorator from django.utils.translation import L...
36.893805
135
0.688894
a2455b7d1f4c59b3f3fc10bc30bcb0f313e3156b
13,480
py
Python
pipenv/vendor/vistir/spin.py
erikkemperman/pipenv
8707fe52571422ff5aa2905a2063fdf5ce14840b
[ "MIT" ]
3
2020-06-04T05:22:33.000Z
2020-09-23T19:44:02.000Z
pipenv/vendor/vistir/spin.py
erikkemperman/pipenv
8707fe52571422ff5aa2905a2063fdf5ce14840b
[ "MIT" ]
9
2019-12-05T00:49:12.000Z
2021-09-08T01:31:25.000Z
pipenv/vendor/vistir/spin.py
erikkemperman/pipenv
8707fe52571422ff5aa2905a2063fdf5ce14840b
[ "MIT" ]
1
2019-06-04T10:25:26.000Z
2019-06-04T10:25:26.000Z
# -*- coding=utf-8 -*- import functools import os import signal import sys import threading import time import colorama import cursor import six from .compat import to_native_string from .termcolors import COLOR_MAP, COLORS, colored, DISABLE_COLORS from io import StringIO try: import yaspin except ImportError: ...
33.120393
105
0.602819
a24661a46dbbfae17cce472d5d44c7bd7360c84c
621
py
Python
book/book/settings.py
ChaosSoong/ScrapyDouban
e6a018a09e76f5f5506934e90b104091dfffe693
[ "MIT" ]
1
2021-04-12T13:37:48.000Z
2021-04-12T13:37:48.000Z
book/book/settings.py
ChaosSoong/ScrapyDouban
e6a018a09e76f5f5506934e90b104091dfffe693
[ "MIT" ]
null
null
null
book/book/settings.py
ChaosSoong/ScrapyDouban
e6a018a09e76f5f5506934e90b104091dfffe693
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- BOT_NAME = 'book' SPIDER_MODULES = ['book.spiders'] NEWSPIDER_MODULE = 'book.spiders' IMAGES_STORE = '../storage/book/' COOKIES_ENABLED = True COOKIE_DEBUG = True LOG_LEVEL = 'INFO' # LOG_LEVEL = 'DEBUG' CONCURRENT_REQUESTS = 100 CONCURRENT_REQUESTS_PER_DOMAIN = 1000 U...
20.7
79
0.705314
a246d1c2c2b92da01d8058201ebb138463ac4efe
105
py
Python
tests/pyxl_original/test_eof.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
27
2018-06-04T19:11:42.000Z
2022-02-23T22:46:39.000Z
tests/pyxl_original/test_eof.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
7
2018-06-09T15:27:51.000Z
2021-03-11T20:00:35.000Z
tests/pyxl_original/test_eof.py
adrienbrunet/mixt
d725ec752ce430d135e993bc988bfdf2b8457c4b
[ "MIT" ]
3
2018-07-29T10:20:02.000Z
2021-11-18T19:55:07.000Z
# coding: mixt from mixt import html
15
53
0.571429
a247922adf11769c636098f78e98f1b9b8df3ed1
6,325
py
Python
text_analysis/analysis_classify/a01_basic_statistics.py
yongzhuo/Text-Analysis
6f9f79fdb1e6ea1c5559b59558cee641940f85d2
[ "Apache-2.0" ]
3
2021-11-19T07:02:53.000Z
2021-12-15T03:15:15.000Z
text_analysis/analysis_classify/a01_basic_statistics.py
yongzhuo/Text-Analysis
6f9f79fdb1e6ea1c5559b59558cee641940f85d2
[ "Apache-2.0" ]
null
null
null
text_analysis/analysis_classify/a01_basic_statistics.py
yongzhuo/Text-Analysis
6f9f79fdb1e6ea1c5559b59558cee641940f85d2
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/python # -*- coding: utf-8 -*- # @time : 2020/5/27 21:18 # @author : Mo # @function: from text_analysis.utils.text_common import txt_read, txt_write, load_json, save_json, get_all_dirs_files from text_analysis.conf.path_log import logger from collections import Counter from typing import List, Dict i...
33.115183
105
0.61502
a2480500111770e0985c6d623537477de897c591
1,689
py
Python
components/workstation.py
cqzhao/FooProxy
5953bcd46388135e0c951ffbcd63dc782ff8bfad
[ "MIT" ]
null
null
null
components/workstation.py
cqzhao/FooProxy
5953bcd46388135e0c951ffbcd63dc782ff8bfad
[ "MIT" ]
null
null
null
components/workstation.py
cqzhao/FooProxy
5953bcd46388135e0c951ffbcd63dc782ff8bfad
[ "MIT" ]
null
null
null
#coding:utf-8 """ @author : linkin @email : yooleak@outlook.com @date : 2018-10-04 """ import logging from APIserver.apiserver import app from components.collector import Collector from components.validator import Validator from components.detector import Detector from components.scanner ...
24.838235
70
0.625222
a2482ec97e97d9e65a4d8d49711236d2566859ca
30,410
py
Python
ml/rbms/core.py
torfjelde/ml
6ae3a5543663a7adfe3b6f1c596093c123fa2b88
[ "MIT" ]
null
null
null
ml/rbms/core.py
torfjelde/ml
6ae3a5543663a7adfe3b6f1c596093c123fa2b88
[ "MIT" ]
null
null
null
ml/rbms/core.py
torfjelde/ml
6ae3a5543663a7adfe3b6f1c596093c123fa2b88
[ "MIT" ]
null
null
null
import abc import logging from enum import Enum from tqdm import tqdm from ml import np from ml.functions import sigmoid, dot_batch, bernoulli_from_probas _log = logging.getLogger("ml") def mean_visible(self, h, beta=1.0): r""" Computes :math:`\mathbb{E}[\mathbf{v} \mid \mathbf{h}]`. ...
36.638554
135
0.529037
a248fa91871a4d64d360baf9357e2574f6ec13d4
218
py
Python
Ports.py
bullgom/pysnn2
dad5ae26b029afd5c5bf76fe141249b0f7b7a36c
[ "MIT" ]
null
null
null
Ports.py
bullgom/pysnn2
dad5ae26b029afd5c5bf76fe141249b0f7b7a36c
[ "MIT" ]
null
null
null
Ports.py
bullgom/pysnn2
dad5ae26b029afd5c5bf76fe141249b0f7b7a36c
[ "MIT" ]
null
null
null
AP = "AP" BP = "BP" ARRIVE = "ARRIVE" NEUROMODULATORS = "NEUROMODULATORS" TARGET = "TARGET" OBSERVE = "OBSERVE" SET_FREQUENCY = "SET_FREQUENCY" DEACTIVATE = "DEACTIVATE" ENCODE_INFORMATION = "ENCODE_INFORMATION"
13.625
41
0.724771
a2490cedb898fffcdd522f5198f098b39d8227c4
2,798
py
Python
src/oolongt/cli/cli.py
schmamps/textteaser
e948ac6c0a4a4a44c7011206d7df236529d7813d
[ "MIT" ]
2
2020-02-18T09:13:13.000Z
2021-06-12T13:16:13.000Z
src/oolongt/cli/cli.py
schmamps/textteaser
e948ac6c0a4a4a44c7011206d7df236529d7813d
[ "MIT" ]
null
null
null
src/oolongt/cli/cli.py
schmamps/textteaser
e948ac6c0a4a4a44c7011206d7df236529d7813d
[ "MIT" ]
1
2019-05-05T14:43:53.000Z
2019-05-05T14:43:53.000Z
"""Command line interface for OolongT""" import argparse import os import sys import typing from textwrap import wrap as wrap_text from ..constants import DEFAULT_LENGTH from ..content import Document from ..files import get_document from ..string import simplify from ..typings import OptionalString, StringList DEFAU...
27.98
76
0.641172
a249698e484130d9327ab696efff125ba53413ba
15,123
py
Python
chotgun.py
hmatsuya/chotgun
0cee1b4ae385c57cf094376dee0ad450e308aa0a
[ "MIT" ]
1
2021-11-04T14:26:10.000Z
2021-11-04T14:26:10.000Z
chotgun.py
hmatsuya/chotgun
0cee1b4ae385c57cf094376dee0ad450e308aa0a
[ "MIT" ]
1
2020-08-07T06:58:09.000Z
2020-08-13T06:23:20.000Z
chotgun.py
hmatsuya/chotgun
0cee1b4ae385c57cf094376dee0ad450e308aa0a
[ "MIT" ]
null
null
null
import sys import os.path import threading import queue import logging import random import copy from paramiko.client import SSHClient import paramiko import re import time import os def infostr(s): print(f'info string {s}', flush=True) def main(): chotgun = Chotgun(n_jobs=5) chotgun.start() sys.exi...
35.251748
101
0.511803
a2497a32646aebe6dad4bb729f7554cf9a01a99e
9,051
py
Python
source/base/utils.py
phygitalism/points2surf
c8e6d47062fc068802e179a37427981c8e10b128
[ "MIT" ]
4
2021-11-25T19:28:16.000Z
2022-02-27T19:13:59.000Z
source/base/utils.py
phygitalism/points2surf
c8e6d47062fc068802e179a37427981c8e10b128
[ "MIT" ]
null
null
null
source/base/utils.py
phygitalism/points2surf
c8e6d47062fc068802e179a37427981c8e10b128
[ "MIT" ]
1
2020-09-10T01:05:03.000Z
2020-09-10T01:05:03.000Z
import numpy as np import os from source.base import utils_mp from source.base import file_utils def batch_quat_to_rotmat(q, out=None): """ quaternion a + bi + cj + dk should be given in the form [a,b,c,d] :param q: :param out: :return: """ import torch batchsize = q.size(0) i...
40.226667
108
0.667772
a24a44290243b8973c58ac83bd9c32d62a1b7331
194
py
Python
contact/views.py
rsHalford/xhalford-django
970875bbcd23782af15f24361ec3bbda0230ee81
[ "MIT" ]
2
2020-11-02T22:04:01.000Z
2020-11-14T14:45:45.000Z
contact/views.py
rsHalford/xhalford-django
970875bbcd23782af15f24361ec3bbda0230ee81
[ "MIT" ]
null
null
null
contact/views.py
rsHalford/xhalford-django
970875bbcd23782af15f24361ec3bbda0230ee81
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.generic import ListView from contact.models import Profile
24.25
41
0.78866
a24b77db8e7a819628a9ae74f4884a124de6d7df
24,382
py
Python
xbbo/surrogate/gaussian_process.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
2
2021-09-06T02:06:22.000Z
2021-12-09T10:46:56.000Z
xbbo/surrogate/gaussian_process.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
xbbo/surrogate/gaussian_process.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
from typing import List import typing from scipy import optimize import sklearn # from sklearn.gaussian_process import kernels from sklearn.gaussian_process.kernels import Kernel, KernelOperator # import torch # from scipy.linalg import solve_triangular, cholesky # from scipy import optimize, stats import numpy as np #...
36.014771
103
0.56029
a24baed065a08f05a3618b4b5c209c85239d1882
10,112
py
Python
lib/training/tpu.py
learning-at-home/dalle
acf688eac206a6bcd543d56ddbb9dcf6bb72012b
[ "MIT" ]
null
null
null
lib/training/tpu.py
learning-at-home/dalle
acf688eac206a6bcd543d56ddbb9dcf6bb72012b
[ "MIT" ]
null
null
null
lib/training/tpu.py
learning-at-home/dalle
acf688eac206a6bcd543d56ddbb9dcf6bb72012b
[ "MIT" ]
null
null
null
import ctypes import threading from functools import partial from contextlib import nullcontext from copy import deepcopy import multiprocessing as mp from itertools import zip_longest from typing import Iterable import torch import torch.nn as nn import torch.utils.data import torch_xla.core.xla_model as xm import to...
43.586207
128
0.65714
a24d8145f2c40687cee72c78a8cd67399721ce08
1,819
py
Python
code/evaluate.py
xuyangcao/SegWithDistMap
9638aaacf15dba6c2f907e5e82f8ed37a786bc96
[ "Apache-2.0" ]
3
2021-01-29T16:03:39.000Z
2021-12-16T04:40:28.000Z
code/evaluate.py
xuyangcao/SegWithDistMap
9638aaacf15dba6c2f907e5e82f8ed37a786bc96
[ "Apache-2.0" ]
null
null
null
code/evaluate.py
xuyangcao/SegWithDistMap
9638aaacf15dba6c2f907e5e82f8ed37a786bc96
[ "Apache-2.0" ]
2
2019-12-20T13:15:08.000Z
2020-01-02T15:49:16.000Z
import numpy as np import os import argparse import tqdm import pandas as pd import SimpleITK as sitk from medpy import metric if __name__ == '__main__': main()
29.33871
91
0.630566
a2513b451ec5004528a7e01bf0d9f3485e85254c
64
py
Python
integraph/core/__init__.py
nleguillarme/inteGraph
65faae4b7c16977094c387f6359980a4e99f94cb
[ "Apache-2.0" ]
null
null
null
integraph/core/__init__.py
nleguillarme/inteGraph
65faae4b7c16977094c387f6359980a4e99f94cb
[ "Apache-2.0" ]
null
null
null
integraph/core/__init__.py
nleguillarme/inteGraph
65faae4b7c16977094c387f6359980a4e99f94cb
[ "Apache-2.0" ]
null
null
null
from .taxid import TaxId from .uri import URIManager, URIMapper
21.333333
38
0.8125
a253f668fac9338a8b6bc1ab3d03ebaeb0518c82
4,170
py
Python
unit_tests/test_swift_storage_context.py
coreycb/charm-swift-storage
c31991ab198d7b51b9a4f5744a1fcc1fef0bc1ef
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
unit_tests/test_swift_storage_context.py
coreycb/charm-swift-storage
c31991ab198d7b51b9a4f5744a1fcc1fef0bc1ef
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
unit_tests/test_swift_storage_context.py
coreycb/charm-swift-storage
c31991ab198d7b51b9a4f5744a1fcc1fef0bc1ef
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2016 Canonical Ltd # # 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, s...
38.971963
76
0.664508
a2567fe63fe79e43c35228a0d120b319e330a8d1
5,956
py
Python
spiketoolkit/validation/quality_metric_classes/noise_overlap.py
ferchaure/spiketoolkit
0b1deea724f742797181bb4fe57270fdd84951c1
[ "MIT" ]
null
null
null
spiketoolkit/validation/quality_metric_classes/noise_overlap.py
ferchaure/spiketoolkit
0b1deea724f742797181bb4fe57270fdd84951c1
[ "MIT" ]
null
null
null
spiketoolkit/validation/quality_metric_classes/noise_overlap.py
ferchaure/spiketoolkit
0b1deea724f742797181bb4fe57270fdd84951c1
[ "MIT" ]
null
null
null
import numpy as np from copy import copy from .utils.thresholdcurator import ThresholdCurator from .quality_metric import QualityMetric import spiketoolkit as st import spikemetrics.metrics as metrics from spikemetrics.utils import printProgressBar from collections import OrderedDict from sklearn.neighbors import Neare...
45.121212
121
0.631632
a256bf58e2a1c3f65c6795ace24758ddfe629807
1,397
py
Python
lib/spider/NewsSpider1.py
ardegra/standard.api
36856acf3820cfc33def26f9737d6a682fba94ee
[ "MIT" ]
null
null
null
lib/spider/NewsSpider1.py
ardegra/standard.api
36856acf3820cfc33def26f9737d6a682fba94ee
[ "MIT" ]
null
null
null
lib/spider/NewsSpider1.py
ardegra/standard.api
36856acf3820cfc33def26f9737d6a682fba94ee
[ "MIT" ]
null
null
null
import json import pymongo import falcon from bson import json_util
32.488372
68
0.680029
a2575cc36e877edd1ee71f8adfedc976cf489a26
4,152
py
Python
core/global_registration.py
MichaelArbel/OT-sync
0b8308375b0064a9ada3f8741f04551a3ba29b63
[ "BSD-3-Clause" ]
2
2021-04-04T22:49:06.000Z
2021-08-09T12:19:30.000Z
core/global_registration.py
hrheydarian/OT-sync
0b8308375b0064a9ada3f8741f04551a3ba29b63
[ "BSD-3-Clause" ]
null
null
null
core/global_registration.py
hrheydarian/OT-sync
0b8308375b0064a9ada3f8741f04551a3ba29b63
[ "BSD-3-Clause" ]
1
2021-08-09T12:19:03.000Z
2021-08-09T12:19:03.000Z
# Open3D: www.open3d.org # The MIT License (MIT) # See license file or visit www.open3d.org for details # examples/Python/Advanced/global_registration.py import open3d as o3d import numpy as np import copy if __name__ == "__main__": voxel_size = 0.05 # means 5cm for the dataset source, target, source_...
44.170213
80
0.701108
a257f947f9d83091dd668f62bb9fa0c75a8eafcd
2,698
py
Python
src/get_test_results.py
williamdjones/deep_protein_binding
10b00835024702b6d0e73092c777fed267215ca7
[ "MIT" ]
null
null
null
src/get_test_results.py
williamdjones/deep_protein_binding
10b00835024702b6d0e73092c777fed267215ca7
[ "MIT" ]
null
null
null
src/get_test_results.py
williamdjones/deep_protein_binding
10b00835024702b6d0e73092c777fed267215ca7
[ "MIT" ]
null
null
null
import os import argparse import pandas as pd import numpy as np from sklearn.metrics import f1_score, r2_score from tqdm import tqdm parser = argparse.ArgumentParser() parser.add_argument("--exp_dir", type=str, help="path to directory containing test results", default="/scratch/wdjo224/deep_protei...
46.517241
118
0.636027
a2595f5495569bfb18a30651ccf4bc3e61dec9b6
35
py
Python
analysis/Leo/scripts/__init__.py
data301-2020-winter2/course-project-group_1039
26d661a543ce9dcea61f579f9edbcde88543e7c3
[ "MIT" ]
1
2021-02-09T02:13:23.000Z
2021-02-09T02:13:23.000Z
analysis/Leo/scripts/__init__.py
data301-2020-winter2/course-project-group_1039
26d661a543ce9dcea61f579f9edbcde88543e7c3
[ "MIT" ]
31
2021-02-02T17:03:39.000Z
2021-04-13T03:22:16.000Z
analysis/Leo/scripts/__init__.py
data301-2020-winter2/course-project-group_1039
26d661a543ce9dcea61f579f9edbcde88543e7c3
[ "MIT" ]
1
2021-03-14T05:56:16.000Z
2021-03-14T05:56:16.000Z
import scripts.project_functions
8.75
32
0.857143
a25a29dc91019ce3281b5fcc6f7a268059eba344
8,278
py
Python
align/pnr/write_constraint.py
ALIGN-analoglayout/ALIGN-public
80c25a2ac282cbfa199bd21ad85277e9376aa45d
[ "BSD-3-Clause" ]
119
2019-05-14T18:44:34.000Z
2022-03-17T01:01:02.000Z
align/pnr/write_constraint.py
ALIGN-analoglayout/ALIGN-public
80c25a2ac282cbfa199bd21ad85277e9376aa45d
[ "BSD-3-Clause" ]
717
2019-04-03T15:36:35.000Z
2022-03-31T21:56:47.000Z
align/pnr/write_constraint.py
ALIGN-analoglayout/ALIGN-public
80c25a2ac282cbfa199bd21ad85277e9376aa45d
[ "BSD-3-Clause" ]
34
2019-04-01T21:21:27.000Z
2022-03-21T09:46:57.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jan 13 14:50:24 2021 @author: kunal001 """ import pathlib import pprint import json import logging from ..schema import constraint logger = logging.getLogger(__name__) pp = pprint.PrettyPrinter(indent=4)
42.451282
105
0.439841
a25a329785c9f77e159427cefe14e85a15f3128c
157
py
Python
ch02/number_eight.py
joy-joy/pcc
6c7d166a1694a2c3f371307aea6c4bdf340c4c42
[ "MIT" ]
null
null
null
ch02/number_eight.py
joy-joy/pcc
6c7d166a1694a2c3f371307aea6c4bdf340c4c42
[ "MIT" ]
null
null
null
ch02/number_eight.py
joy-joy/pcc
6c7d166a1694a2c3f371307aea6c4bdf340c4c42
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jan 9 00:00:43 2018 @author: joy """ print(5 + 3) print(9 - 1) print(2 * 4) print(16//2)
13.083333
35
0.573248
a25a47c51ab943aef82605acc3a660cf6ca5f070
7,042
py
Python
tests/test_git_factory.py
kostya0shift/SyncToGit
b3f2ec7e1167a0b032d4d40726de625d31a02354
[ "MIT" ]
1
2015-03-14T15:33:12.000Z
2015-03-14T15:33:12.000Z
tests/test_git_factory.py
kostya0shift/SyncToGit
b3f2ec7e1167a0b032d4d40726de625d31a02354
[ "MIT" ]
null
null
null
tests/test_git_factory.py
kostya0shift/SyncToGit
b3f2ec7e1167a0b032d4d40726de625d31a02354
[ "MIT" ]
null
null
null
import os from contextlib import ExitStack from pathlib import Path import pytest from synctogit.git_factory import GitError, git_factory
29.965957
86
0.626527
a25ad39526f4933af2df581028f2688cffce6933
2,117
py
Python
pychron/fractional_loss_calculator.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/fractional_loss_calculator.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/fractional_loss_calculator.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2019 ross # # 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/LICE...
34.145161
82
0.616911
a25bd49134a1f86571250e2c3fa2596b40823392
1,043
py
Python
chatrooms/mixer/thread.py
Dogeek/ChatAggregator
c1cf700e2529d6bb78ce7e4850c532ef55841d85
[ "MIT" ]
3
2019-11-17T19:31:08.000Z
2020-12-07T00:47:22.000Z
chatrooms/mixer/thread.py
Dogeek/ChatAggregator
c1cf700e2529d6bb78ce7e4850c532ef55841d85
[ "MIT" ]
16
2019-11-17T19:48:02.000Z
2019-11-24T02:49:44.000Z
chatrooms/mixer/thread.py
Dogeek/ChatAggregator
c1cf700e2529d6bb78ce7e4850c532ef55841d85
[ "MIT" ]
3
2019-11-17T19:31:13.000Z
2019-11-21T11:59:18.000Z
import asyncio import threading from .connection import MixerConnection from .utils import get_channel_id from chatrooms import lock
30.676471
84
0.628955
a25bec9b2e01804b38b6f619f80dd7f9ad6e8b87
44
py
Python
test/py.py
PhilipDeegan/mkn
399dd01990e130c4deeb0c2800204836d3875ae9
[ "BSD-3-Clause" ]
61
2015-02-05T07:43:13.000Z
2020-05-19T13:26:50.000Z
test/py.py
mkn/mkn
a05b542497270def02200df6620804b89429259b
[ "BSD-3-Clause" ]
29
2016-11-21T03:37:42.000Z
2020-10-18T12:04:53.000Z
test/py.py
mkn/mkn
a05b542497270def02200df6620804b89429259b
[ "BSD-3-Clause" ]
12
2016-01-05T05:35:29.000Z
2020-03-15T11:03:37.000Z
#! /usr/bin/python3 print("HELLO PYTHON")
8.8
21
0.659091
a25c1f80b839438c40bc8b1ec20e3dcbcc9d3fa1
181
py
Python
proxy_config.py
Nou4r/YandexMail-Account-Creator
b65f24630d23c59dfb8d196f3efe5a222aa3e11a
[ "MIT" ]
1
2021-11-23T05:28:16.000Z
2021-11-23T05:28:16.000Z
proxy_config.py
Nou4r/YandexMail-Account-Creator
b65f24630d23c59dfb8d196f3efe5a222aa3e11a
[ "MIT" ]
null
null
null
proxy_config.py
Nou4r/YandexMail-Account-Creator
b65f24630d23c59dfb8d196f3efe5a222aa3e11a
[ "MIT" ]
null
null
null
try: with open('proxies.txt', 'r') as file: proxy = [ line.rstrip() for line in file.readlines()] except FileNotFoundError: raise Exception('Proxies.txt not found.')
36.2
61
0.662983
a25c2ec82a6c0af9fd73752dd6ceae9477f697d3
1,577
py
Python
src/notifications/middleware.py
MAE776569/project-manager
986a1a8b84950da81e98125d70ae3ef380e96e54
[ "Apache-2.0" ]
null
null
null
src/notifications/middleware.py
MAE776569/project-manager
986a1a8b84950da81e98125d70ae3ef380e96e54
[ "Apache-2.0" ]
7
2020-03-24T17:08:34.000Z
2022-02-10T09:50:00.000Z
src/notifications/middleware.py
MAE776569/project-manager
986a1a8b84950da81e98125d70ae3ef380e96e54
[ "Apache-2.0" ]
null
null
null
from .models import NotificationManager from django.utils.deprecation import MiddlewareMixin
41.5
83
0.616994
a25c6100f9d37d3d232cbc72e44c946c286a4444
5,167
py
Python
tests/test_prns.py
mfkiwl/laika-gnss
dc38f251dbc7ebb535a3c220de8424634d297248
[ "MIT" ]
365
2018-12-17T07:43:34.000Z
2022-03-29T22:23:39.000Z
tests/test_prns.py
mfkiwl/laika-gnss
dc38f251dbc7ebb535a3c220de8424634d297248
[ "MIT" ]
36
2019-07-24T10:20:45.000Z
2022-02-14T22:11:24.000Z
tests/test_prns.py
mfkiwl/laika-gnss
dc38f251dbc7ebb535a3c220de8424634d297248
[ "MIT" ]
156
2018-12-17T05:06:23.000Z
2022-03-31T12:06:07.000Z
import unittest from laika.helpers import get_constellation, get_prn_from_nmea_id, \ get_nmea_id_from_prn, NMEA_ID_RANGES SBAS_DATA = [ ['S01', 33], ['S02', 34], ['S10', 42], ['S22', 54], ['S23', 55], ['S32', 64], ['S33', 120], ['S64', 151], ['S65', 152...
31.895062
75
0.587962
a25d0281cfcfe0d0eb9dbdd381ee04036b26239e
29,969
py
Python
amt_tools/transcribe.py
cwitkowitz/transcription-models
e8697d6969b074926ac55986bc02fa1aad04b471
[ "MIT" ]
4
2021-06-15T19:45:26.000Z
2022-03-31T20:42:26.000Z
amt_tools/transcribe.py
cwitkowitz/transcription-models
e8697d6969b074926ac55986bc02fa1aad04b471
[ "MIT" ]
null
null
null
amt_tools/transcribe.py
cwitkowitz/transcription-models
e8697d6969b074926ac55986bc02fa1aad04b471
[ "MIT" ]
1
2021-11-08T02:13:02.000Z
2021-11-08T02:13:02.000Z
# Author: Frank Cwitkowitz <fcwitkow@ur.rochester.edu> # My imports from . import tools # Regular imports from abc import abstractmethod from copy import deepcopy import numpy as np import os def filter_notes_by_duration(pitches, intervals, threshold=0.): """ Remove notes from a collection which have a dur...
31.088174
118
0.622076
a25d09e67ac4aff5540ba2b0f11ec21250507d36
121
py
Python
ToDoApp/admin.py
aishabazylzhanova/ToDo
a787e57bf8ace5719d847d8fc4949d05a5d117c5
[ "MIT" ]
null
null
null
ToDoApp/admin.py
aishabazylzhanova/ToDo
a787e57bf8ace5719d847d8fc4949d05a5d117c5
[ "MIT" ]
null
null
null
ToDoApp/admin.py
aishabazylzhanova/ToDo
a787e57bf8ace5719d847d8fc4949d05a5d117c5
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Tasks admin.site.register(Tasks) # Register your models here.
20.166667
33
0.768595
a25efb76b91de6c5a6535d8621723808a44381dd
8,046
py
Python
dilami_calendar/constants.py
Jangal/python-deylami-calendar
65b4a36ea6d9cba71b7086b3c488fd6842ead687
[ "MIT" ]
12
2019-08-05T19:11:24.000Z
2021-11-17T03:52:12.000Z
dilami_calendar/constants.py
Jangal/python-dilami-calendar
65b4a36ea6d9cba71b7086b3c488fd6842ead687
[ "MIT" ]
2
2019-08-03T05:42:02.000Z
2021-12-01T07:34:26.000Z
dilami_calendar/constants.py
Jangal/python-dilami-calendar
65b4a36ea6d9cba71b7086b3c488fd6842ead687
[ "MIT" ]
null
null
null
DILAMI_WEEKDAY_NAMES = { 0: "", 1: "", 2: "", 3: "", 4: "", 5: "", 6: "", } DILAMI_MONTH_NAMES = { 0: "", 1: " ", 2: " ", 3: " ", 4: " ", 5: " ", 6: "", 7: " ", 8: " ", 9: " ", 10: " ", 11: " ", 12: " ", } DILAMI_LEAP_YEARS = ( 199,...
10.007463
41
0.393239
a25fceaa81b9a2397bbf59a5c9765ebd1d84a0d6
324
py
Python
inputs/sineClock.py
hongaar/ringctl
9e2adbdf16e85852019466e42be9d88a9e63cde5
[ "MIT" ]
null
null
null
inputs/sineClock.py
hongaar/ringctl
9e2adbdf16e85852019466e42be9d88a9e63cde5
[ "MIT" ]
null
null
null
inputs/sineClock.py
hongaar/ringctl
9e2adbdf16e85852019466e42be9d88a9e63cde5
[ "MIT" ]
null
null
null
import math from inputs.sine import Sine from inputs.timeElapsed import TimeElapsed from utils.number import Number
20.25
56
0.70679
a26034218c90d245fe24941c0da299f8ed7dd85c
667
py
Python
config/urls.py
erik-sn/tagmap
8131fac833cf4edd20ac3497377ec2145fa75bcc
[ "MIT" ]
null
null
null
config/urls.py
erik-sn/tagmap
8131fac833cf4edd20ac3497377ec2145fa75bcc
[ "MIT" ]
null
null
null
config/urls.py
erik-sn/tagmap
8131fac833cf4edd20ac3497377ec2145fa75bcc
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import url, include from django.contrib import admin from api.views import index urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^api/', include('api.urls')), ] # troubleshooting tool if settings.TOOLBAR: import debug_toolbar urlpatterns ...
25.653846
57
0.706147
a26076e09d7b45380034f14f9bab4f75147d9786
86
py
Python
run.py
tdavislab/mapper-stitching
09cb6949cea57ebece640b58ef5c449fb177db38
[ "MIT" ]
10
2019-06-12T01:18:44.000Z
2021-12-19T16:12:08.000Z
run.py
tdavislab/mapper-stitching
09cb6949cea57ebece640b58ef5c449fb177db38
[ "MIT" ]
7
2019-03-20T23:47:49.000Z
2019-04-10T19:23:41.000Z
run.py
tdavislab/mapper-stitching
09cb6949cea57ebece640b58ef5c449fb177db38
[ "MIT" ]
3
2020-10-16T04:30:09.000Z
2021-03-16T18:45:33.000Z
#!flask/bin/python from app import app app.run(host='127.0.0.1',port=8080,debug=True)
21.5
46
0.732558
a26126e8b013a4ee9583aa03f98292063e236062
2,572
py
Python
middleware.py
jaylett/django_audited_model
b7d45b2e325512861a0ef23e756a81bfdf3adaf7
[ "MIT" ]
1
2016-05-06T07:07:18.000Z
2016-05-06T07:07:18.000Z
middleware.py
jaylett/django_audited_model
b7d45b2e325512861a0ef23e756a81bfdf3adaf7
[ "MIT" ]
null
null
null
middleware.py
jaylett/django_audited_model
b7d45b2e325512861a0ef23e756a81bfdf3adaf7
[ "MIT" ]
null
null
null
# Copyright (c) 2009 James Aylett <http://tartarus.org/james/computers/django/> # # 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...
42.866667
104
0.734059
a261c4073b37f990b45a6d0c9e5cc17d54ee8a8f
24,440
py
Python
data_attributes.py
prise-3d/Thesis-NoiseDetection-metrics
b37b2a3e0601e8a879df12c9d88289b1ea43bbb1
[ "MIT" ]
null
null
null
data_attributes.py
prise-3d/Thesis-NoiseDetection-metrics
b37b2a3e0601e8a879df12c9d88289b1ea43bbb1
[ "MIT" ]
null
null
null
data_attributes.py
prise-3d/Thesis-NoiseDetection-metrics
b37b2a3e0601e8a879df12c9d88289b1ea43bbb1
[ "MIT" ]
null
null
null
# main imports import numpy as np import sys # image transform imports from PIL import Image from skimage import color from sklearn.decomposition import FastICA from sklearn.decomposition import IncrementalPCA from sklearn.decomposition import TruncatedSVD from numpy.linalg import svd as lin_svd from scipy.signal impo...
32.849462
103
0.627169
a26266a4fdcfcd0c96232392fec99b6244059514
2,008
py
Python
pythonVersion/interpolateMetm.py
oradules/Deconvolution_short_long
730a55a257a376e2b347c0d2453347c2c463ab17
[ "BSD-3-Clause" ]
1
2021-05-26T12:41:45.000Z
2021-05-26T12:41:45.000Z
pythonVersion/interpolateMetm.py
oradules/Deconvolution_short_long
730a55a257a376e2b347c0d2453347c2c463ab17
[ "BSD-3-Clause" ]
null
null
null
pythonVersion/interpolateMetm.py
oradules/Deconvolution_short_long
730a55a257a376e2b347c0d2453347c2c463ab17
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Oct 11 21:36:32 2021 @author: rachel """ import numpy as np from scipy import interpolate import matplotlib.pyplot as plt
28.685714
63
0.564741
a263c93196bd64932fb6ed1c2feb12221c53c151
3,036
py
Python
mad_scientist_lab/histogram.py
wusui/squidly_dorkle
45992db8b2a9f6fa1264549ad88c25a8989af5c0
[ "MIT" ]
null
null
null
mad_scientist_lab/histogram.py
wusui/squidly_dorkle
45992db8b2a9f6fa1264549ad88c25a8989af5c0
[ "MIT" ]
null
null
null
mad_scientist_lab/histogram.py
wusui/squidly_dorkle
45992db8b2a9f6fa1264549ad88c25a8989af5c0
[ "MIT" ]
null
null
null
import os import sys import codecs import itertools sys.stdout = codecs.getwriter('utf=8')(sys.stdout.buffer) sys.stderr = codecs.getwriter('utf=8')(sys.stderr.buffer) fname = os.sep.join(["D:", "Users", "Warren", "python3", "squirrels_on_caffeine", "src", "sedecordle", "answ...
26.867257
73
0.54249
a265970c825b69a6bcc7be605b442dbeced8128f
9,491
py
Python
app/jobHistory/migrations/0003_auto_20190804_1403.py
stephengtuggy/job-history
5c4931ff7b594494a687da0253262c7fc46f8b13
[ "MIT" ]
2
2020-01-18T00:39:35.000Z
2020-01-18T02:03:26.000Z
app/jobHistory/migrations/0003_auto_20190804_1403.py
stephengtuggy/job-history
5c4931ff7b594494a687da0253262c7fc46f8b13
[ "MIT" ]
18
2020-08-07T23:22:37.000Z
2021-06-10T18:38:42.000Z
app/jobHistory/migrations/0003_auto_20190804_1403.py
stephengtuggy/job-history
5c4931ff7b594494a687da0253262c7fc46f8b13
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-04 21:03 from django.db import migrations, models import django.db.models.deletion
40.387234
132
0.603624
a265a038ab356fbb6e17091c1ee11fb5ec910fe6
518
py
Python
Messaging/Packets/Server/Home/LobbyInfoMessage.py
Kuler2006/BSDS-V40
9e9a6e5b36cd5082fe428ebb0279df23d5d9c7b7
[ "Apache-2.0" ]
4
2021-11-27T16:49:30.000Z
2021-12-21T13:50:00.000Z
Messaging/Packets/Server/Home/LobbyInfoMessage.py
Kuler2006/BSDS-V40
9e9a6e5b36cd5082fe428ebb0279df23d5d9c7b7
[ "Apache-2.0" ]
null
null
null
Messaging/Packets/Server/Home/LobbyInfoMessage.py
Kuler2006/BSDS-V40
9e9a6e5b36cd5082fe428ebb0279df23d5d9c7b7
[ "Apache-2.0" ]
1
2021-12-21T13:38:20.000Z
2021-12-21T13:38:20.000Z
from Logic.Data.DataManager import Writer from Logic.Client.ClientsManager import ClientsManager
34.533333
133
0.694981
a265d646f255b96ee6cd63611d22fe0c03ffcd24
1,560
py
Python
article/views.py
TianyongWang/TyBlog
2d3543a314beafe55762b58ab23d4ef4dc2cbfe9
[ "MIT" ]
null
null
null
article/views.py
TianyongWang/TyBlog
2d3543a314beafe55762b58ab23d4ef4dc2cbfe9
[ "MIT" ]
null
null
null
article/views.py
TianyongWang/TyBlog
2d3543a314beafe55762b58ab23d4ef4dc2cbfe9
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from article.models import Article from datetime import datetime # Create your views here. # def home(request): # return HttpResponse("Hello World, Django,Blog") # def detail(request, my_args): # # return HttpResponse("You're look...
32.5
125
0.663462
a26749689fb404e888e2125613c846cdef380811
405
py
Python
PythonExercicios/ex067.py
Luis-Emanuel/Python
92936dfb005b9755a53425d16c3ff54119eebe78
[ "MIT" ]
null
null
null
PythonExercicios/ex067.py
Luis-Emanuel/Python
92936dfb005b9755a53425d16c3ff54119eebe78
[ "MIT" ]
null
null
null
PythonExercicios/ex067.py
Luis-Emanuel/Python
92936dfb005b9755a53425d16c3ff54119eebe78
[ "MIT" ]
null
null
null
#Faa um programa que mostre a tabuada de vrios nmeros, um de cada vez, para cada valor digitado pelo usurio. #O programa ser interronpido quando o nmero solicitado for negativo. c = 0 while True: print(30*'-') num = int(input('Quer ver a tabuada de qual valor ?')) print(30*'-') if num < 0: break...
33.75
112
0.637037
a26af4c2704297b324a8b326cbf17e3cd4d232f6
1,251
py
Python
examples/src/python/bolt/half_ack_bolt.py
takeratta/heron
7b7c38594186f009741c62d379364b9b45d82b61
[ "Apache-2.0" ]
1
2021-06-29T07:00:10.000Z
2021-06-29T07:00:10.000Z
examples/src/python/bolt/half_ack_bolt.py
kalimfaria/heron
d59bd016b826006e2af22c7a6452342f5e7d637c
[ "Apache-2.0" ]
null
null
null
examples/src/python/bolt/half_ack_bolt.py
kalimfaria/heron
d59bd016b826006e2af22c7a6452342f5e7d637c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # copyright 2016 twitter. 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...
32.921053
75
0.694644
a26b73d904e11aae41e76e1fb93f09e8f345dc84
534
py
Python
projects/cassava-leaf-disease/code/src/config.py
dric2018/coding-room
ff538ed16d09ab4918d1b0d55aef09fe95b1078a
[ "MIT" ]
1
2021-02-02T08:30:50.000Z
2021-02-02T08:30:50.000Z
projects/cassava-leaf-disease/code/src/.ipynb_checkpoints/config-checkpoint.py
dric2018/coding-room
ff538ed16d09ab4918d1b0d55aef09fe95b1078a
[ "MIT" ]
null
null
null
projects/cassava-leaf-disease/code/src/.ipynb_checkpoints/config-checkpoint.py
dric2018/coding-room
ff538ed16d09ab4918d1b0d55aef09fe95b1078a
[ "MIT" ]
1
2021-03-09T14:27:00.000Z
2021-03-09T14:27:00.000Z
import os
25.428571
66
0.629213
a26c405342f3cf01116c7589d07a48162ad6f4f5
1,265
py
Python
midburn/migrations/0007_auto_20160116_0902.py
mtr574/projectMidbrunFirstReg
2569c3f07e1af746bfc1f213632708c76d8fc829
[ "Apache-2.0" ]
null
null
null
midburn/migrations/0007_auto_20160116_0902.py
mtr574/projectMidbrunFirstReg
2569c3f07e1af746bfc1f213632708c76d8fc829
[ "Apache-2.0" ]
1
2016-01-22T09:32:04.000Z
2016-01-22T12:14:12.000Z
midburn/migrations/0007_auto_20160116_0902.py
mtr574/projectMidbrunFirstReg
2569c3f07e1af746bfc1f213632708c76d8fc829
[ "Apache-2.0" ]
3
2016-11-04T12:10:03.000Z
2017-02-23T08:52:53.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models
29.418605
88
0.575494
a26ce5cbff56541c401d259eb84396d16a623b3d
329
py
Python
win/test_ddg.py
janakhpon/PersonalAssistant
bacd6743d23d139af1199df12c7bf99d092764b1
[ "MIT" ]
null
null
null
win/test_ddg.py
janakhpon/PersonalAssistant
bacd6743d23d139af1199df12c7bf99d092764b1
[ "MIT" ]
null
null
null
win/test_ddg.py
janakhpon/PersonalAssistant
bacd6743d23d139af1199df12c7bf99d092764b1
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests text = input("text : ") text.replace(" ", "+") params = {"q": text} content = requests.get("https://duckduckgo.com/?q=", params=params) soup = BeautifulSoup(content.text, 'html.parser') res = soup.find_all('div', class_="result__snippet js-result-snippet") for r in res: ...
25.307692
70
0.702128
a26e63d9279b0f8a80c97662c0a07a697eeb4cdf
2,771
py
Python
experiments/scripts/third_party/roll_q/roll_q.py
AnonymousALifer/primordium
0c37d387f2cc5b343c6cbd038ae197fd9a502d76
[ "MIT" ]
null
null
null
experiments/scripts/third_party/roll_q/roll_q.py
AnonymousALifer/primordium
0c37d387f2cc5b343c6cbd038ae197fd9a502d76
[ "MIT" ]
null
null
null
experiments/scripts/third_party/roll_q/roll_q.py
AnonymousALifer/primordium
0c37d387f2cc5b343c6cbd038ae197fd9a502d76
[ "MIT" ]
null
null
null
import sys #### CONFIG OPTIONS # replicates = 50 #Will be dynamically determined roll_q_dir = './' if len(sys.argv) < 2: print('Must pass one argument, the number of jobs in the queue!') exit(-1) jobs_in_queue = int(sys.argv[1]) if len(sys.argv) >= 3: roll_q_dir = sys.argv[2] do_resub = True if le...
32.6
94
0.583544
a275677a628b972b4fd284b9ad40ccf51d3ac9ae
390
py
Python
prplatform/exercises/migrations/0002_auto_20180508_1200.py
piehei/prplatform
f3248b66019f207bb06a4681a62057e175408b3e
[ "MIT" ]
3
2018-10-07T18:50:01.000Z
2020-07-29T14:43:51.000Z
prplatform/exercises/migrations/0002_auto_20180508_1200.py
piehei/prplatform
f3248b66019f207bb06a4681a62057e175408b3e
[ "MIT" ]
9
2019-08-26T11:55:00.000Z
2020-05-04T13:56:06.000Z
prplatform/exercises/migrations/0002_auto_20180508_1200.py
piehei/prplatform
f3248b66019f207bb06a4681a62057e175408b3e
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-05-08 12:00 from django.db import migrations
20.526316
47
0.610256
a277d99ca9d564507caf9cea939d843c77111614
777
py
Python
spirit/utils/paginator/infinite_paginator.py
rterehov/Spirit
515894001da9d499852b7ebde25892d290e26c38
[ "MIT" ]
null
null
null
spirit/utils/paginator/infinite_paginator.py
rterehov/Spirit
515894001da9d499852b7ebde25892d290e26c38
[ "MIT" ]
null
null
null
spirit/utils/paginator/infinite_paginator.py
rterehov/Spirit
515894001da9d499852b7ebde25892d290e26c38
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.http import Http404 from infinite_scroll_pagination.paginator import SeekPaginator, EmptyPage
24.28125
86
0.700129
a27856f4617a1105202515667ba0f2cfc6adb560
10,172
py
Python
lib/exaproxy/configuration.py
oriolarcas/exaproxy
5dc732760d811fd4986f83e6dd78d29228927aec
[ "BSD-2-Clause" ]
124
2015-01-03T10:42:17.000Z
2021-12-24T05:30:25.000Z
lib/exaproxy/configuration.py
oriolarcas/exaproxy
5dc732760d811fd4986f83e6dd78d29228927aec
[ "BSD-2-Clause" ]
14
2015-02-06T02:21:16.000Z
2019-01-10T18:22:18.000Z
lib/exaproxy/configuration.py
oriolarcas/exaproxy
5dc732760d811fd4986f83e6dd78d29228927aec
[ "BSD-2-Clause" ]
25
2015-04-11T04:01:57.000Z
2021-07-21T07:46:31.000Z
# encoding: utf-8 """ configuration.py Created by Thomas Mangin on 2011-11-29. Copyright (c) 2011-2013 Exa Networks. All rights reserved. """ # NOTE: reloading mid-program not possible import os import sys import logging import pwd import math import socket import struct _application = None _config = None _defaul...
27.197861
128
0.665946
a278b6850520063ea039b2fa761bcc89b24ae7fc
1,009
py
Python
timo/exception.py
Minsoo-web/TIMO
79051cdce4539bc62d01b19e98b4fce6a3f02fae
[ "MIT" ]
null
null
null
timo/exception.py
Minsoo-web/TIMO
79051cdce4539bc62d01b19e98b4fce6a3f02fae
[ "MIT" ]
null
null
null
timo/exception.py
Minsoo-web/TIMO
79051cdce4539bc62d01b19e98b4fce6a3f02fae
[ "MIT" ]
2
2020-07-13T00:55:52.000Z
2020-07-27T04:23:41.000Z
from typing import AnyStr from typing import NoReturn
22.931818
83
0.654113
a27af76ac557d5a5a06d9803200c94099e5080e2
301
py
Python
scikit/Adaboost/example.py
JayMiao/MLAction
fec1c08fa33ed1f5d9b0befecc6dac551cc02302
[ "MIT" ]
1
2017-02-13T10:25:11.000Z
2017-02-13T10:25:11.000Z
scikit/Adaboost/example.py
JayMiao/MLAction
fec1c08fa33ed1f5d9b0befecc6dac551cc02302
[ "MIT" ]
null
null
null
scikit/Adaboost/example.py
JayMiao/MLAction
fec1c08fa33ed1f5d9b0befecc6dac551cc02302
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sklearn.datasets import load_iris from sklearn.model_selection import cross_val_score from sklearn.ensemble import AdaBoostClassifier iris = load_iris() clf = AdaBoostClassifier(n_estimators=1000) scores = cross_val_score(clf, iris.data, iris.target) print scores.mean()
30.1
53
0.800664
a27d6ad41df2cef9c59436191968c1e6444af6da
4,720
py
Python
main.py
jg-fisher/indeed-bot
601720c3f20f62a99e02ef2f017cfb225a3f770e
[ "MIT" ]
9
2019-11-28T08:54:50.000Z
2022-02-23T05:12:53.000Z
main.py
jg-fisher/indeed-bot
601720c3f20f62a99e02ef2f017cfb225a3f770e
[ "MIT" ]
null
null
null
main.py
jg-fisher/indeed-bot
601720c3f20f62a99e02ef2f017cfb225a3f770e
[ "MIT" ]
9
2019-12-07T08:32:10.000Z
2022-03-28T17:47:30.000Z
import os import sys import time from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys if __name__ == '__main__': profile = { 'name': "John Fisher", 'email': "jfishersolutions@gmail.com", ...
27.764706
88
0.561017
a27f8d0583f96864cbfcef5f30b901f38868d920
1,266
py
Python
biobb_adapters/pycompss/biobb_md/gromacs_extra/append_ligand_pc.py
jfennick/biobb_adapters
a37c1c696476c93225e7d3c661b0d4393af9dfe1
[ "Apache-2.0" ]
null
null
null
biobb_adapters/pycompss/biobb_md/gromacs_extra/append_ligand_pc.py
jfennick/biobb_adapters
a37c1c696476c93225e7d3c661b0d4393af9dfe1
[ "Apache-2.0" ]
4
2019-03-04T15:22:06.000Z
2021-09-24T14:43:48.000Z
biobb_adapters/pycompss/biobb_md/gromacs_extra/append_ligand_pc.py
jfennick/biobb_adapters
a37c1c696476c93225e7d3c661b0d4393af9dfe1
[ "Apache-2.0" ]
2
2020-09-08T05:26:23.000Z
2022-03-28T07:09:20.000Z
import traceback from pycompss.api.task import task from pycompss.api.constraint import constraint from pycompss.api.parameter import FILE_IN, FILE_OUT from biobb_common.tools import file_utils as fu from biobb_md.gromacs_extra import append_ligand import os import sys
42.2
120
0.704581
a27fb79cf4664c162660d09fef51a46e76ed5c1e
3,277
py
Python
sellalert.py
sjmiller609/cvs_scraper
f6a1e5673869a7031c028d38a6bb4b37a3ba5473
[ "MIT" ]
null
null
null
sellalert.py
sjmiller609/cvs_scraper
f6a1e5673869a7031c028d38a6bb4b37a3ba5473
[ "MIT" ]
null
null
null
sellalert.py
sjmiller609/cvs_scraper
f6a1e5673869a7031c028d38a6bb4b37a3ba5473
[ "MIT" ]
null
null
null
import requests import json from pprint import pprint import re import time import sys #getdata = requests.get(geturl) #pprint (vars(getdata)) from bs4 import BeautifulSoup from geopy.geocoders import Nominatim if len(sys.argv) != 4: print(sys.argv[0]+" <item> <location> <num items>") exit() #get list of prod...
29.522523
159
0.648764
a27fd6c4631670b333af8985d1aba8f26af3183c
5,670
py
Python
neucom/utils.py
jacobver/diag_context
ca8d008b745743bf20c4bedcf6faa412a5ad8080
[ "MIT" ]
null
null
null
neucom/utils.py
jacobver/diag_context
ca8d008b745743bf20c4bedcf6faa412a5ad8080
[ "MIT" ]
null
null
null
neucom/utils.py
jacobver/diag_context
ca8d008b745743bf20c4bedcf6faa412a5ad8080
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np from copy import copy import torch import torch.nn.functional as F from torch.autograd import Variable import torch.nn as nn def pairwise_add(u, v=None, is_batch=False): """ performs a pairwise summation between vectors (possibly the same) can a...
28.069307
134
0.603351
a27ff6238bdd6adda0370578acda1918aca05e2f
776
py
Python
school/lecture1/isi_cv_02_task.py
kubekbreha/ML-Python-Algorithms
8058b68a2d98a79a6debcc69abdd188c97420d75
[ "MIT" ]
null
null
null
school/lecture1/isi_cv_02_task.py
kubekbreha/ML-Python-Algorithms
8058b68a2d98a79a6debcc69abdd188c97420d75
[ "MIT" ]
null
null
null
school/lecture1/isi_cv_02_task.py
kubekbreha/ML-Python-Algorithms
8058b68a2d98a79a6debcc69abdd188c97420d75
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sun Feb 19 20:41:09 2017 @author: pd """ #from IPython import get_ipython #get_ipython().magic('reset -sf') import matplotlib.pyplot as plt from sklearn import datasets from sklearn.tree import DecisionTreeClassifier X, Y = datasets.make_classification(n...
20.972973
67
0.640464
a280eaab2887649d537621914d70995f7a90e0ab
327
py
Python
rotary/rotary/doctype/monthly_report/monthly_report.py
neilLasrado/rotary
66659b41c6fbd04d22aa368573c786dabe1102e5
[ "MIT" ]
null
null
null
rotary/rotary/doctype/monthly_report/monthly_report.py
neilLasrado/rotary
66659b41c6fbd04d22aa368573c786dabe1102e5
[ "MIT" ]
null
null
null
rotary/rotary/doctype/monthly_report/monthly_report.py
neilLasrado/rotary
66659b41c6fbd04d22aa368573c786dabe1102e5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Neil Lasrado and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.utils import now
25.153846
51
0.770642
a281068a96d517af66fbb0b7cc8c9a41a817af13
109
py
Python
kili/mutations/project_version/fragments.py
ASonay/kili-playground
9624073703b5e6151cf496f44f17f531576875b7
[ "Apache-2.0" ]
214
2019-08-05T14:55:01.000Z
2022-03-28T21:02:22.000Z
kili/mutations/project_version/fragments.py
x213212/kili-playground
dfb94c2d54bedfd7fec452b91f811587a2156c13
[ "Apache-2.0" ]
10
2020-05-14T10:44:16.000Z
2022-03-08T09:39:24.000Z
kili/mutations/project_version/fragments.py
x213212/kili-playground
dfb94c2d54bedfd7fec452b91f811587a2156c13
[ "Apache-2.0" ]
19
2019-11-26T22:41:09.000Z
2022-01-16T19:17:38.000Z
""" Fragments of project version mutations """ PROJECT_VERSION_FRAGMENT = ''' content id name projectId '''
9.909091
38
0.733945
a281c8f1cacd2892e9e276b0c28506e1a7b6dc79
6,037
py
Python
metrics/fid/fid_score.py
vfcosta/coegan-trained
44174e68909d9c03bf2e4b7e4c7a48237a560183
[ "MIT" ]
null
null
null
metrics/fid/fid_score.py
vfcosta/coegan-trained
44174e68909d9c03bf2e4b7e4c7a48237a560183
[ "MIT" ]
null
null
null
metrics/fid/fid_score.py
vfcosta/coegan-trained
44174e68909d9c03bf2e4b7e4c7a48237a560183
[ "MIT" ]
1
2021-06-11T16:52:55.000Z
2021-06-11T16:52:55.000Z
# Code apapted from https://github.com/mseitzer/pytorch-fid """Calculates the Frechet Inception Distance (FID) to evalulate GANs The FID metric calculates the distance between two distributions of images. Typically, we have summary statistics (mean & covariance matrix) of one of these distributions, while the 2nd dist...
42.514085
108
0.68047
a281d5a3c0cadb9b0e4f53931b714575ab5662a4
169
py
Python
test/test.py
ttkltll/fisher
8889705c7bde10304cfde7972b805226ac59d735
[ "MIT" ]
null
null
null
test/test.py
ttkltll/fisher
8889705c7bde10304cfde7972b805226ac59d735
[ "MIT" ]
3
2020-09-15T23:37:18.000Z
2020-09-16T00:36:55.000Z
test/test.py
ttkltll/fisher
8889705c7bde10304cfde7972b805226ac59d735
[ "MIT" ]
1
2020-09-15T02:55:54.000Z
2020-09-15T02:55:54.000Z
from flask import Flask, current_app, request, Request app = Flask(__name__) ctx = app.app_context() ctx.push() current_app.static_floder = 'static' ctx.pop() app.run
16.9
54
0.751479
a28375161ebc70272c07037bc6d8933c4916ada9
4,108
py
Python
augmentation.py
Pandoro/tools
631c6036cb74dc845668fd912588fd31aae46f8b
[ "MIT" ]
1
2019-04-22T16:38:03.000Z
2019-04-22T16:38:03.000Z
augmentation.py
afcarl/tools-Pandoro
631c6036cb74dc845668fd912588fd31aae46f8b
[ "MIT" ]
2
2018-03-13T10:49:48.000Z
2018-03-13T10:54:01.000Z
augmentation.py
afcarl/tools-Pandoro
631c6036cb74dc845668fd912588fd31aae46f8b
[ "MIT" ]
2
2018-03-08T19:40:10.000Z
2018-06-11T14:43:49.000Z
import scipy.ndimage import cv2 import numpy as np
42.791667
140
0.657741
a2840316fe01ccb59fbb68f41487073e6d6d5fcd
9,653
py
Python
src/config/utils/db-loader/contrail_db_loader/resources/security_group.py
hamzazafar/contrail-controller
67df90fa2d9d10263cf507c2751171c4e52f10dd
[ "Apache-2.0" ]
1
2020-04-16T20:34:55.000Z
2020-04-16T20:34:55.000Z
src/config/utils/db-loader/contrail_db_loader/resources/security_group.py
hamzazafar/contrail-controller
67df90fa2d9d10263cf507c2751171c4e52f10dd
[ "Apache-2.0" ]
null
null
null
src/config/utils/db-loader/contrail_db_loader/resources/security_group.py
hamzazafar/contrail-controller
67df90fa2d9d10263cf507c2751171c4e52f10dd
[ "Apache-2.0" ]
1
2020-11-20T06:49:58.000Z
2020-11-20T06:49:58.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. # from __future__ import unicode_literals from builtins import str from builtins import range import logging from netaddr import IPNetwork from random import randint, choice import uuid from .resource import Resource from ..util...
40.389121
79
0.443489
a28511d4313faddcec24e963d4aea4b50f61ce85
135
py
Python
sopy/admin/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
81
2015-02-17T17:07:27.000Z
2021-08-15T17:46:13.000Z
sopy/admin/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
81
2015-02-17T17:04:16.000Z
2021-02-21T03:52:55.000Z
sopy/admin/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
29
2015-01-18T18:28:06.000Z
2022-02-05T03:11:04.000Z
from flask import Blueprint bp = Blueprint('admin', __name__)
15
33
0.748148
a2856ec06ce72f7e0f5fc2a98ea631945b111855
1,790
py
Python
onmt/modules/extensions/fused_layer_norm/setup.py
quanpn90/NMTGMinor
0e5f989c8bc01c6c8dc3a8c1ce7c05bfd884b796
[ "MIT" ]
75
2019-05-02T10:37:39.000Z
2022-02-13T17:53:24.000Z
onmt/modules/extensions/fused_layer_norm/setup.py
quanpn90/NMTGMinor
0e5f989c8bc01c6c8dc3a8c1ce7c05bfd884b796
[ "MIT" ]
11
2018-11-08T16:52:51.000Z
2021-09-23T15:01:14.000Z
onmt/modules/extensions/fused_layer_norm/setup.py
quanpn90/NMTGMinor
0e5f989c8bc01c6c8dc3a8c1ce7c05bfd884b796
[ "MIT" ]
34
2018-06-04T14:20:01.000Z
2022-01-26T08:10:05.000Z
import os import torch from torch.utils import cpp_extension from setuptools import setup from torch.utils.cpp_extension import BuildExtension, CUDAExtension # ninja build does not work unless include_dirs are abs path this_dir = os.path.dirname(os.path.abspath(__file__)) cc_flag = [] ext_modules = [] cc_flag.append(...
37.291667
102
0.640782
a285b6ae623657a020499a2ec4ea9b0765d78e0b
5,708
py
Python
expenses/migrations/0001_initial.py
inducer/expensely
b88b830e466db63cce5acfcdb0269411c7b39358
[ "MIT", "Unlicense" ]
1
2021-07-02T02:03:09.000Z
2021-07-02T02:03:09.000Z
expenses/migrations/0001_initial.py
inducer/expensely
b88b830e466db63cce5acfcdb0269411c7b39358
[ "MIT", "Unlicense" ]
null
null
null
expenses/migrations/0001_initial.py
inducer/expensely
b88b830e466db63cce5acfcdb0269411c7b39358
[ "MIT", "Unlicense" ]
2
2016-08-24T05:25:57.000Z
2018-12-31T01:06:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-24 23:01 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone
43.572519
148
0.576384
a285bdaafcb56b79447200be9f8737064e66fac5
800
py
Python
pages/themes/ParallelProgramming-Lecture4/examples/processQueue/TASK_sharing_variable_by_processes.py
WWWCourses/PythonCourseNetIT-Slides
78dbb5eb7695cc64042b71a1911d4ef3feddb074
[ "MIT" ]
null
null
null
pages/themes/ParallelProgramming-Lecture4/examples/processQueue/TASK_sharing_variable_by_processes.py
WWWCourses/PythonCourseNetIT-Slides
78dbb5eb7695cc64042b71a1911d4ef3feddb074
[ "MIT" ]
null
null
null
pages/themes/ParallelProgramming-Lecture4/examples/processQueue/TASK_sharing_variable_by_processes.py
WWWCourses/PythonCourseNetIT-Slides
78dbb5eb7695cc64042b71a1911d4ef3feddb074
[ "MIT" ]
null
null
null
""": - , x 20. multiprocessing.Queue() x . """ import multiprocessing as mp if __name__ == "__main__": x = 0 incr_count = 10 # create and start 2 process which should increment a variable: pr1 = mp.Process(target=increment, args=(range(incr_count),)) pr2 = mp.Process(target=increme...
23.529412
91
0.71625
a28631f9170fbf0128fb181d7e9585c79cf0e573
241
py
Python
pythonProject/02al28pass_elipsis_placeholders/exercicio_num_int.py
D-Wolter/PycharmProjects
c8d6144efa30261bff72a3e0414a0d80f6730f9b
[ "MIT" ]
null
null
null
pythonProject/02al28pass_elipsis_placeholders/exercicio_num_int.py
D-Wolter/PycharmProjects
c8d6144efa30261bff72a3e0414a0d80f6730f9b
[ "MIT" ]
null
null
null
pythonProject/02al28pass_elipsis_placeholders/exercicio_num_int.py
D-Wolter/PycharmProjects
c8d6144efa30261bff72a3e0414a0d80f6730f9b
[ "MIT" ]
null
null
null
numero_int = input('Digite um numero inteiro') if numero_int.isdigit(): numero_int = int(numero_int) if numero_int % 2 == 0: print('o numero e par') elif numero_int % 1 == 0: print('o numero e impar') else:
21.909091
46
0.605809
a286ecdd87da9c3a2db9af7dec80faeeeab6de6c
327
py
Python
Ejercicio_DecimalBinario.py
Sofia1306/Python_Clases
60bfab6425269b572ec738abcb5f96d74fc56f95
[ "MIT" ]
null
null
null
Ejercicio_DecimalBinario.py
Sofia1306/Python_Clases
60bfab6425269b572ec738abcb5f96d74fc56f95
[ "MIT" ]
null
null
null
Ejercicio_DecimalBinario.py
Sofia1306/Python_Clases
60bfab6425269b572ec738abcb5f96d74fc56f95
[ "MIT" ]
null
null
null
"""Ejercicio Decimal a Binario """ import math numero = int(input('Ingresa un nmero: \n')) binario = '' while (numero > 0): if (numero%2 == 0): binario = '0' + binario else: binario = '1' + binario numero = int(math.floor(numero/2)) print(f'El nmero en binario es {binario}'...
19.235294
45
0.562691
a288d8b6411de0a207c959a000823b29df69e32d
743
py
Python
src/server.py
awsassets/superfish
77d93ec864de22b592bc4b69aa5ab7580aa383ab
[ "MIT" ]
null
null
null
src/server.py
awsassets/superfish
77d93ec864de22b592bc4b69aa5ab7580aa383ab
[ "MIT" ]
null
null
null
src/server.py
awsassets/superfish
77d93ec864de22b592bc4b69aa5ab7580aa383ab
[ "MIT" ]
null
null
null
import flask ; from flask import *
24.766667
75
0.561238
a28a52e59294caa6c7f0ce984c5ca19e80db8e8f
152
py
Python
block/admin.py
amirkh75/user_block_chain
f9bdba11c1d8b724787151480cd52155ad8718e4
[ "MIT" ]
null
null
null
block/admin.py
amirkh75/user_block_chain
f9bdba11c1d8b724787151480cd52155ad8718e4
[ "MIT" ]
null
null
null
block/admin.py
amirkh75/user_block_chain
f9bdba11c1d8b724787151480cd52155ad8718e4
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Block
19
36
0.763158
a28aac04289f6912a4237acfbf9626f8b5f787ef
593
py
Python
SOURCE/test_ex01.py
PinkPhayate/Information_Access_Design
a6ae3b055e971708d67fda7129e51cd0d9b16d2f
[ "MIT" ]
null
null
null
SOURCE/test_ex01.py
PinkPhayate/Information_Access_Design
a6ae3b055e971708d67fda7129e51cd0d9b16d2f
[ "MIT" ]
null
null
null
SOURCE/test_ex01.py
PinkPhayate/Information_Access_Design
a6ae3b055e971708d67fda7129e51cd0d9b16d2f
[ "MIT" ]
null
null
null
import re,io,os.path,os for line in open('./../text_list', "r"): filename = './../TXT/tragedies/'+line.rstrip() print filename f = open("./../TXT/test_"+line.rstrip(),"w") for line in io.open(filename,"r",encoding="utf-16"): if remove_tag(line): # remove signiture lin...
25.782609
75
0.53457
a28c65ff15ac6df969c2d1a4bd260f0f3974490e
1,736
py
Python
lumiml/examples/test_install.py
ovra-peers/lumiml
8df5f591edacb36c473b6e09f35da8098754b2e8
[ "BSD-3-Clause" ]
4
2019-01-29T12:02:02.000Z
2019-12-26T11:12:32.000Z
lumiml/examples/test_install.py
ovra-peers/lumiml
8df5f591edacb36c473b6e09f35da8098754b2e8
[ "BSD-3-Clause" ]
null
null
null
lumiml/examples/test_install.py
ovra-peers/lumiml
8df5f591edacb36c473b6e09f35da8098754b2e8
[ "BSD-3-Clause" ]
4
2019-12-26T08:22:38.000Z
2020-10-07T09:37:12.000Z
if __name__ == '__main__': try: TestInstall() except Exception as e: print(e); print('Something is wrong with installation! Please read the error message carefuly to try and resolve it.')
24.450704
116
0.663594
a28d85267ddf700f8793d60f25330f1799660aba
422
py
Python
urllib/Cookie/CookieServer.py
pengchenyu111/SpiderLearning
d1fca1c7f46bfb22ad23f9396d0f2e2301ec4534
[ "Apache-2.0" ]
3
2020-11-21T13:13:46.000Z
2020-12-03T05:43:32.000Z
urllib/Cookie/CookieServer.py
pengchenyu111/SpiderLearning
d1fca1c7f46bfb22ad23f9396d0f2e2301ec4534
[ "Apache-2.0" ]
null
null
null
urllib/Cookie/CookieServer.py
pengchenyu111/SpiderLearning
d1fca1c7f46bfb22ad23f9396d0f2e2301ec4534
[ "Apache-2.0" ]
1
2020-12-03T05:43:53.000Z
2020-12-03T05:43:53.000Z
from flask import Flask from flask import request app = Flask(__name__) if __name__ == '__main__': app.run()
18.347826
48
0.694313
a28eb678ba5f89d1bb90f58b1a3981298261532f
3,691
py
Python
Aihan-Liu-Individual-project/Code/demo.py
laihanel/Final-Project-Group3
e58cd526d8e26ee6b13b5a77af6ebcc1ff7e77ca
[ "MIT" ]
null
null
null
Aihan-Liu-Individual-project/Code/demo.py
laihanel/Final-Project-Group3
e58cd526d8e26ee6b13b5a77af6ebcc1ff7e77ca
[ "MIT" ]
8
2021-11-11T02:52:41.000Z
2021-12-05T23:01:05.000Z
Code/demo.py
laihanel/Final-Project-Group3
e58cd526d8e26ee6b13b5a77af6ebcc1ff7e77ca
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np import cv2 import os import shutil from matplotlib import pyplot as plt from Model_Definition import VC3D from mypath import NICKNAME, DATA_DIR, PATH # TODO: Now can display images with plt.show(), need to solve display on cloud instance OUT_DIR = PATH + os.path....
32.955357
117
0.544568
a28f7b4918b94b07856ae26b2413470f943cc99a
123
py
Python
remove_punctuations.py
sparemeyoursoliloquy/Python-Exercises
18f2075327dec0dbc55edd4f50fa3f71258777e1
[ "MIT" ]
3
2020-07-28T03:31:27.000Z
2020-07-28T03:31:32.000Z
remove_punctuations.py
sparemeyoursoliloquy/Python-Exercises
18f2075327dec0dbc55edd4f50fa3f71258777e1
[ "MIT" ]
null
null
null
remove_punctuations.py
sparemeyoursoliloquy/Python-Exercises
18f2075327dec0dbc55edd4f50fa3f71258777e1
[ "MIT" ]
null
null
null
text = input() punc_remove = [",", ".", "!", "?"] for i in punc_remove: text = text.replace(i, "") print(text.lower())
20.5
34
0.544715
a29166d0430486b39f985f973d6999d2da3a0aae
5,519
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/multisalesforce/views.py
oddbird/sfdo-template
ac128ca5b2db18d3069a1535cb6ac23f83aa987f
[ "BSD-3-Clause" ]
3
2018-08-23T18:59:59.000Z
2021-05-25T00:05:52.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/multisalesforce/views.py
oddbird/sfdo-template
ac128ca5b2db18d3069a1535cb6ac23f83aa987f
[ "BSD-3-Clause" ]
9
2018-09-28T21:30:35.000Z
2020-08-10T20:42:34.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/multisalesforce/views.py
oddbird/sfdo-template
ac128ca5b2db18d3069a1535cb6ac23f83aa987f
[ "BSD-3-Clause" ]
2
2019-03-28T05:03:08.000Z
2019-05-05T18:10:30.000Z
import logging import re import requests from allauth.socialaccount.providers.oauth2.views import ( OAuth2CallbackView, OAuth2LoginView, ) from allauth.socialaccount.providers.salesforce.views import ( SalesforceOAuth2Adapter as SalesforceOAuth2BaseAdapter, ) from allauth.utils import get_request_param fro...
34.067901
88
0.694872
a29207dc0a5cb4e063b1e7adbc8c0acc0f001bf3
475
py
Python
7_testing/autotest/student.py
ProGabe/teals
7ebf0b6e6f81d8a4c44baa7b5d3a9d95267ec1e3
[ "MIT" ]
null
null
null
7_testing/autotest/student.py
ProGabe/teals
7ebf0b6e6f81d8a4c44baa7b5d3a9d95267ec1e3
[ "MIT" ]
9
2019-11-21T13:12:47.000Z
2021-02-02T14:52:52.000Z
7_testing/autotest/student.py
ProGabe/teals
7ebf0b6e6f81d8a4c44baa7b5d3a9d95267ec1e3
[ "MIT" ]
2
2021-01-25T03:38:30.000Z
2021-03-07T23:54:53.000Z
''' Student: Dan Grecoe Assignment: Homework 1 Submission of the first homework assignment. The assignment was to create a python file with 2 functions multiply - Takes two parameters x and y and returns the product of the values provided. noop - Takes 0 parameters and returns...
22.619048
67
0.669474
a292f32feefb9582465a4d958817a596211378a8
31,533
py
Python
nova/tests/unit/virt/ec2/test_ec2.py
platform9/omni-devstack-fixes
bc94150974fe181840ab3c5d618fa5ce3db44805
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/ec2/test_ec2.py
platform9/omni-devstack-fixes
bc94150974fe181840ab3c5d618fa5ce3db44805
[ "Apache-2.0" ]
1
2020-03-03T13:53:23.000Z
2020-03-03T13:53:23.000Z
nova/tests/unit/virt/ec2/test_ec2.py
platform9/omni-devstack-fixes
bc94150974fe181840ab3c5d618fa5ce3db44805
[ "Apache-2.0" ]
1
2020-09-03T20:54:21.000Z
2020-09-03T20:54:21.000Z
""" Copyright 2016 Platform9 Systems Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
43.979079
79
0.603114