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
641eff21d70370ab332090e7949322ad7a153190
13,743
py
Python
flash/data/data_module.py
edgarriba/lightning-flash
62472d7615d95990df92a8a2f92f80af1ab737ac
[ "Apache-2.0" ]
1
2021-05-03T06:42:34.000Z
2021-05-03T06:42:34.000Z
flash/data/data_module.py
edgarriba/lightning-flash
62472d7615d95990df92a8a2f92f80af1ab737ac
[ "Apache-2.0" ]
null
null
null
flash/data/data_module.py
edgarriba/lightning-flash
62472d7615d95990df92a8a2f92f80af1ab737ac
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
39.950581
119
0.663974
641f16f4dbc51fe04590691db0086960375589f4
4,118
py
Python
image_generation/data/testing.py
BScarleth/clevr-dataset-generation-mask
efa11d69b2fc21a2007205cac6a4b0122149af7d
[ "BSD-3-Clause" ]
null
null
null
image_generation/data/testing.py
BScarleth/clevr-dataset-generation-mask
efa11d69b2fc21a2007205cac6a4b0122149af7d
[ "BSD-3-Clause" ]
null
null
null
image_generation/data/testing.py
BScarleth/clevr-dataset-generation-mask
efa11d69b2fc21a2007205cac6a4b0122149af7d
[ "BSD-3-Clause" ]
null
null
null
import cv2 #image = cv2.imread('/home/brenda/Documentos/independent_study/clevr-dataset-gen/output/images/CLEVR_new_000000.png') #image = cv2.imread('/home/brenda/Escritorio/tmpps5tswcu.png') image = cv2.imread('/home/brenda/Escritorio/tmp47s462az.png') print("imagen: ", image.shape, " ", image.shape[0]* image.sha...
26.915033
120
0.573337
642258fc8f2651e821a5bcb66a823371ffdb8d3d
213
py
Python
C1.py
dpocheng/SIMPLESEM-Compiler-Semantic
9725968a4d8a78ed95e617ad3dbcdb4fc41bd53d
[ "Apache-2.0" ]
null
null
null
C1.py
dpocheng/SIMPLESEM-Compiler-Semantic
9725968a4d8a78ed95e617ad3dbcdb4fc41bd53d
[ "Apache-2.0" ]
null
null
null
C1.py
dpocheng/SIMPLESEM-Compiler-Semantic
9725968a4d8a78ed95e617ad3dbcdb4fc41bd53d
[ "Apache-2.0" ]
null
null
null
a, b, c = 3, 1, -1 main()
15.214286
22
0.328638
6423b272fd3f08098ebf8d314748cf75a6207bb0
1,157
py
Python
accounts/accounts/doctype/purchase_invoice/purchase_invoice.py
sumaiya2908/Accounting-App
4de21b6a5d69ab422483303c4a743f3e323783a3
[ "MIT" ]
null
null
null
accounts/accounts/doctype/purchase_invoice/purchase_invoice.py
sumaiya2908/Accounting-App
4de21b6a5d69ab422483303c4a743f3e323783a3
[ "MIT" ]
null
null
null
accounts/accounts/doctype/purchase_invoice/purchase_invoice.py
sumaiya2908/Accounting-App
4de21b6a5d69ab422483303c4a743f3e323783a3
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Summayya and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document from ..gl_entry.gl_entry import create_gl_entry
26.906977
70
0.611063
6425b9d5a46f13b1d3e986f11cbc61c7dd984f83
499
py
Python
setup.py
dgaston/kvasir
5e938193a936944c765b8dd78600acc258fedbab
[ "MIT" ]
null
null
null
setup.py
dgaston/kvasir
5e938193a936944c765b8dd78600acc258fedbab
[ "MIT" ]
null
null
null
setup.py
dgaston/kvasir
5e938193a936944c765b8dd78600acc258fedbab
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='Kvasir', version='0.9', description='Kvasir OpenShift App', author='Dan Gaston', author_email='admin@deaddriftbio.com', url='https://www.python.org/community/sigs/current/distutils-sig', install_requires=['Flask', 'MarkupSafe', 'Flask-MongoEn...
38.384615
87
0.593186
6426477b8ed07962bc5bc2e8ce0ab2a16b7c39da
1,151
py
Python
stoich.py
jonasoh/thermosampler
013e55cef255b89b05c4f0e76bec9512d900f516
[ "MIT" ]
2
2021-06-11T20:35:20.000Z
2021-08-19T09:51:17.000Z
stoich.py
jonasoh/thermosampler
013e55cef255b89b05c4f0e76bec9512d900f516
[ "MIT" ]
8
2021-07-02T08:14:52.000Z
2021-11-19T15:56:48.000Z
stoich.py
jonasoh/thermosampler
013e55cef255b89b05c4f0e76bec9512d900f516
[ "MIT" ]
1
2021-11-19T09:45:03.000Z
2021-11-19T09:45:03.000Z
#!/usr/bin/env python3 # Import modules import sys, os import pandas as pd import collections import itertools import argparse import re # Import functions from mdf import parse_equation, read_reactions # Define functions # Main code block if __name__ == "__main__": parser = argparse.ArgumentParser() pars...
24.489362
71
0.682884
6427067cb0803864cbac859e6090f9b18cef3bcf
1,090
py
Python
engine/vector.py
dbrizov/PyTetris
f783526a37944452607d86c5def28dbaf3cd4481
[ "MIT" ]
3
2018-07-19T11:59:02.000Z
2021-12-19T15:05:02.000Z
engine/vector.py
dbrizov/PyTetris
f783526a37944452607d86c5def28dbaf3cd4481
[ "MIT" ]
null
null
null
engine/vector.py
dbrizov/PyTetris
f783526a37944452607d86c5def28dbaf3cd4481
[ "MIT" ]
null
null
null
import math Vector2.ZERO = Vector2(0, 0)
22.708333
72
0.590826
64286b89fc025e5e539006ca29420f5163f9fba7
19,894
py
Python
cytomine-applications/landmark_model_builder/validation.py
Cytomine-ULiege/Cytomine-python-datamining
16db995f175e8972b8731a8df9391625e1920288
[ "Apache-2.0" ]
null
null
null
cytomine-applications/landmark_model_builder/validation.py
Cytomine-ULiege/Cytomine-python-datamining
16db995f175e8972b8731a8df9391625e1920288
[ "Apache-2.0" ]
null
null
null
cytomine-applications/landmark_model_builder/validation.py
Cytomine-ULiege/Cytomine-python-datamining
16db995f175e8972b8731a8df9391625e1920288
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # * Copyright (c) 2009-2015. Authors: see NOTICE file. # * # * 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...
38.111111
120
0.595255
642b0395e141004aacfb61ba31176a5747e34b7b
8,235
py
Python
simulador de credito 1.py
Argenta47/talleres_de_algoritmos
cfca1984c69702d48fb165070eb0c60b16977e51
[ "MIT" ]
null
null
null
simulador de credito 1.py
Argenta47/talleres_de_algoritmos
cfca1984c69702d48fb165070eb0c60b16977e51
[ "MIT" ]
null
null
null
simulador de credito 1.py
Argenta47/talleres_de_algoritmos
cfca1984c69702d48fb165070eb0c60b16977e51
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Simulador de credito - Monto del prestamo del carro - Ingresa tu cuota inicial - Ingresos mensuales - Numero de meses del prestamo - Datos personales ---------------------------------------- Ingresos mensuales - 908.526 - 1.000.000 >>>>>>>>>>>>>> 20.000.000 - 1.000.000 -...
37.60274
155
0.609107
642bbc4b4f8e24532cb2b27107b10dda9e845b52
1,527
py
Python
py/g1/operations/databases/subscribers/g1/operations/databases/subscribers/parts.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
py/g1/operations/databases/subscribers/g1/operations/databases/subscribers/parts.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
py/g1/operations/databases/subscribers/g1/operations/databases/subscribers/parts.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
import g1.asyncs.agents.parts import g1.messaging.parts.subscribers from g1.apps import parameters from g1.apps import utils from g1.asyncs.bases import queues from g1.bases import labels # For now these are just aliases. from g1.messaging.parts.subscribers import make_subscriber_params from .. import subscribers # p...
26.789474
77
0.703995
642d1130e6fc3e78e4f3c772b4be2992b13429c7
9,247
py
Python
mhd/python/plot_over_time_CVS_smart.py
FinMacDov/AMR_code
36e25fab72cd86cdda25e4e70ea3afd584b7dbfd
[ "MIT" ]
null
null
null
mhd/python/plot_over_time_CVS_smart.py
FinMacDov/AMR_code
36e25fab72cd86cdda25e4e70ea3afd584b7dbfd
[ "MIT" ]
1
2018-08-14T12:29:07.000Z
2018-08-14T12:29:07.000Z
mhd/python/plot_over_time_CVS_smart.py
FinMacDov/AMR_code
36e25fab72cd86cdda25e4e70ea3afd584b7dbfd
[ "MIT" ]
null
null
null
import csv import matplotlib.pyplot as plt from matplotlib import interactive from matplotlib import rcParams, cycler from scipy.interpolate import interp1d from matplotlib.colors import BoundaryNorm from matplotlib.ticker import MaxNLocator import img2vid as i2v import glob import numpy as np import os """ Created on...
32.332168
122
0.627339
642d2bd6b0ba6f29debf7f63d005d6f4745e8609
2,349
py
Python
python_tools/power.py
HowieWang1/myown-tools
6ad1fba6d97300c6d15c26d89d5a0c1dc5f9d79d
[ "MIT" ]
2
2021-06-13T13:15:25.000Z
2021-07-29T00:26:38.000Z
python_tools/power.py
HowieWang1/myown-tools
6ad1fba6d97300c6d15c26d89d5a0c1dc5f9d79d
[ "MIT" ]
6
2021-06-04T08:05:03.000Z
2021-07-04T03:50:00.000Z
python_tools/power.py
HowieWang1/myown-tools
6ad1fba6d97300c6d15c26d89d5a0c1dc5f9d79d
[ "MIT" ]
null
null
null
import os import tkinter as tk from telnetlib import Telnet import ctp.pdu.apc as apc if __name__ == '__main__': easyCommand = PDUPower() easyCommand.PowerControl()
39.813559
121
0.573436
642d2e7d44ed6fcd127074d651ed9e62d6aa3d5f
450
py
Python
33-inheritance.py
MKen212/pymosh
6db31f181081baf3e4cc3d7228a3480b16bd3cda
[ "MIT" ]
null
null
null
33-inheritance.py
MKen212/pymosh
6db31f181081baf3e4cc3d7228a3480b16bd3cda
[ "MIT" ]
null
null
null
33-inheritance.py
MKen212/pymosh
6db31f181081baf3e4cc3d7228a3480b16bd3cda
[ "MIT" ]
null
null
null
# class Dog: # def walk(self): # print("Walking") # class Cat: # def walk(self): # print("Walking") rover = Dog() print(rover.x) rover.bark() fluffy = Cat() fluffy.walk()
13.636364
85
0.575556
643115619018886865b6c08a6d8862db0370f968
103
py
Python
pluribus/poker/evaluation/__init__.py
keithlee96/pluribus-poker-AI
15e52fe73dd09570e782dd0e7b9069865eb5823d
[ "MIT" ]
113
2020-08-06T15:03:18.000Z
2022-03-31T01:56:34.000Z
poker_ai/poker/evaluation/__init__.py
fedden/pluribus
73fb394b26623c897459ffa3e66d7a5cb47e9962
[ "MIT" ]
null
null
null
poker_ai/poker/evaluation/__init__.py
fedden/pluribus
73fb394b26623c897459ffa3e66d7a5cb47e9962
[ "MIT" ]
42
2020-08-17T15:51:30.000Z
2022-03-31T17:10:44.000Z
from .eval_card import EvaluationCard from .evaluator import Evaluator from .lookup import LookupTable
25.75
37
0.854369
643158e261dedfd6f790d1bd79a39f44e68fc5d7
844
py
Python
dynamicgem/graph_generation/getAS_nx.py
Sujit-O/dyngem
a879bf362d1e9409faa4e1186c345337ad6d0189
[ "MIT" ]
null
null
null
dynamicgem/graph_generation/getAS_nx.py
Sujit-O/dyngem
a879bf362d1e9409faa4e1186c345337ad6d0189
[ "MIT" ]
null
null
null
dynamicgem/graph_generation/getAS_nx.py
Sujit-O/dyngem
a879bf362d1e9409faa4e1186c345337ad6d0189
[ "MIT" ]
null
null
null
import networkx as nx import numpy as np import os DATA_DIR = 'as-733' fnames = sorted(os.listdir(DATA_DIR)) routersD = {} routerId = 0 file_sno = 1 for curr_file in fnames: with open(DATA_DIR+ '/' + curr_file) as f: G = nx.DiGraph() G.add_nodes_from(range(7716)) for line in f: line = line.stri...
24.823529
66
0.626777
6431a7d544c46cfb92483bf64ab03075de332a4d
2,477
py
Python
virtool/validators.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
39
2016-10-31T23:28:59.000Z
2022-01-15T00:00:42.000Z
virtool/validators.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
1,690
2017-02-07T23:39:48.000Z
2022-03-31T22:30:44.000Z
virtool/validators.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
25
2017-02-08T18:25:31.000Z
2021-09-20T22:55:25.000Z
import re from email_validator import validate_email, EmailSyntaxError from virtool.users.utils import PERMISSIONS RE_HEX_COLOR = re.compile("^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$") def strip(value: str) -> str: """ Strip flanking whitespace from the passed string. Used to coerce values in Cerberus validators...
32.168831
113
0.705289
643356b0b42e24450c9db6f057bc342c9400746c
116
py
Python
guildwars2/guild/__init__.py
n1tr0-5urf3r/GW2Bot
788e94926766ac16661211cb528be47629b0ad07
[ "MIT" ]
75
2017-05-06T18:53:34.000Z
2022-01-10T08:02:48.000Z
guildwars2/guild/__init__.py
n1tr0-5urf3r/GW2Bot
788e94926766ac16661211cb528be47629b0ad07
[ "MIT" ]
81
2017-05-07T18:04:06.000Z
2021-12-13T13:34:45.000Z
guildwars2/guild/__init__.py
n1tr0-5urf3r/GW2Bot
788e94926766ac16661211cb528be47629b0ad07
[ "MIT" ]
56
2017-05-07T06:58:29.000Z
2022-03-28T23:23:42.000Z
from .general import GeneralGuild from .sync import GuildSync
16.571429
42
0.793103
6434145fe0d9785478a829e3cad733f76a24c2f5
4,780
py
Python
noisyopt/tests/test_noisyopt.py
42Numeric/noisyopt
0574f3e031f4f08a398f905ccf056e92a4982788
[ "MIT" ]
null
null
null
noisyopt/tests/test_noisyopt.py
42Numeric/noisyopt
0574f3e031f4f08a398f905ccf056e92a4982788
[ "MIT" ]
null
null
null
noisyopt/tests/test_noisyopt.py
42Numeric/noisyopt
0574f3e031f4f08a398f905ccf056e92a4982788
[ "MIT" ]
null
null
null
import numpy as np import numpy.testing as npt import noisyopt if __name__ == '__main__': npt.run_module_suite()
37.34375
83
0.624477
6435690f9d571d32e57eed857a4c0b70172bd30d
318
py
Python
spielberg/admin.py
carlmjohnson/spielberg
438dcc869e8dddb4fb3efc1d3f3816cdcf8529df
[ "MIT" ]
null
null
null
spielberg/admin.py
carlmjohnson/spielberg
438dcc869e8dddb4fb3efc1d3f3816cdcf8529df
[ "MIT" ]
null
null
null
spielberg/admin.py
carlmjohnson/spielberg
438dcc869e8dddb4fb3efc1d3f3816cdcf8529df
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import SimpleRedirect
19.875
44
0.650943
6436ac8ba5b8954f205ea6a742afb28c7e206a5a
799
py
Python
oo/pessoa.py
thaila52/pythonbirds
55101aaf319361dae7f3d927c3a8d2777b0f8a8b
[ "MIT" ]
null
null
null
oo/pessoa.py
thaila52/pythonbirds
55101aaf319361dae7f3d927c3a8d2777b0f8a8b
[ "MIT" ]
null
null
null
oo/pessoa.py
thaila52/pythonbirds
55101aaf319361dae7f3d927c3a8d2777b0f8a8b
[ "MIT" ]
null
null
null
if __name__ == '__main__': thaila = Pessoa(nome='Thaila') junior = Pessoa(thaila, nome='Junior') print(Pessoa.cumprimentar(junior)) print(id(junior)) print(junior.cumprimentar()) print(junior.nome) print(junior.idade) for filho in junior.filhos: print(filho.nome) junior.sobr...
25.774194
63
0.638298
6437ba4c34e60695d6c3884bb0f45f29bc524188
2,286
py
Python
tools/pytest/extra/get_issues.py
servo-wpt-sync/web-platform-tests
56e2df852354bc2b89e6d17a9dbafd280d24203c
[ "BSD-3-Clause" ]
4
2020-09-09T15:28:01.000Z
2021-12-01T00:59:56.000Z
tools/pytest/extra/get_issues.py
063095/web-platform-tests
255d54144a82ce76d8e50a4aa8de284151119f8b
[ "BSD-3-Clause" ]
1
2018-09-05T02:45:25.000Z
2018-09-05T02:45:38.000Z
tools/pytest/extra/get_issues.py
063095/web-platform-tests
255d54144a82ce76d8e50a4aa8de284151119f8b
[ "BSD-3-Clause" ]
1
2021-03-21T21:43:20.000Z
2021-03-21T21:43:20.000Z
import json import py import textwrap issues_url = "http://bitbucket.org/api/1.0/repositories/pytest-dev/pytest/issues" import requests kind2num = "bug enhancement task proposal".split() status2num = "new open resolved duplicate invalid wontfix".split() if __name__ == "__main__": import argparse parser = a...
30.48
81
0.575678
6437dee025675578c882a4948fef3abdfcfa15bf
1,214
py
Python
tests/bdd/test_environment_loader.py
necromuralist/Machine-Learning-From-Scratch
6a1fe6264948dbd361e426fea9c9ed4c567e7079
[ "MIT" ]
null
null
null
tests/bdd/test_environment_loader.py
necromuralist/Machine-Learning-From-Scratch
6a1fe6264948dbd361e426fea9c9ed4c567e7079
[ "MIT" ]
null
null
null
tests/bdd/test_environment_loader.py
necromuralist/Machine-Learning-From-Scratch
6a1fe6264948dbd361e426fea9c9ed4c567e7079
[ "MIT" ]
null
null
null
# coding=utf-8 """Environment Loader feature tests.""" # from pypi from expects import ( be_true, expect ) from pytest_bdd import ( given, scenarios, then, when, ) # for testing from .fixtures import katamari # software under test from cse_575.data.common import Environment # Setup scenarios...
23.803922
85
0.728171
6438cc3d752def2341c27211310e7e6e164ba110
1,242
py
Python
travel_blog/blog/models.py
kennethlove/travel_blog_livestream
a6bc74e99b4922b5ac0d3a8ed0f2d5dbebde6fd2
[ "MIT" ]
2
2016-12-17T02:56:22.000Z
2017-07-19T05:13:59.000Z
travel_blog/blog/models.py
kennethlove/travel_blog_livestream
a6bc74e99b4922b5ac0d3a8ed0f2d5dbebde6fd2
[ "MIT" ]
null
null
null
travel_blog/blog/models.py
kennethlove/travel_blog_livestream
a6bc74e99b4922b5ac0d3a8ed0f2d5dbebde6fd2
[ "MIT" ]
1
2018-12-19T06:34:37.000Z
2018-12-19T06:34:37.000Z
from django.contrib.gis.db import models from django.core.urlresolvers import reverse from django.utils import timezone import markdown
28.883721
65
0.694042
64397ff100127d4d36ea57304ccc643da9e22b51
5,723
py
Python
pycaishen/user_programs/PycaishenBasicUsage/tickers_and_fields.py
spyamine/pycaishen3
33f756fd0ad2bd05eb0d21fd4e7e8573e317a6a9
[ "Apache-2.0" ]
1
2019-06-17T10:17:30.000Z
2019-06-17T10:17:30.000Z
pycaishen/user_programs/PycaishenBasicUsage/tickers_and_fields.py
spyamine/pycaishen3
33f756fd0ad2bd05eb0d21fd4e7e8573e317a6a9
[ "Apache-2.0" ]
null
null
null
pycaishen/user_programs/PycaishenBasicUsage/tickers_and_fields.py
spyamine/pycaishen3
33f756fd0ad2bd05eb0d21fd4e7e8573e317a6a9
[ "Apache-2.0" ]
null
null
null
import pandas from pycaishen.util.loggermanager import LoggerManager if __name__ == '__main__': from pycaishen.util.settings import configurer as setting root = setting.ROOT_FOLDER current_folder = root + "reference/" print(current_folder) ticker = Tickers() # datasource_ticker=["ADH MC ...
30.935135
105
0.616984
643a1eeb03835780f3eb1f23a8745fefb60702f4
477
py
Python
Lectures/PythonClass/P15_python_wordcloud.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
2
2020-12-05T07:42:55.000Z
2021-01-06T23:23:18.000Z
Lectures/PythonClass/P15_python_wordcloud.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
Lectures/PythonClass/P15_python_wordcloud.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
from collections import Counter from konlpy.tag import Hannanum import pytagcloud f = open('D:\\KYH\\02.PYTHON\\crawled_data\\cbs2.txt', 'r', encoding='UTF-8') data = f.read() nlp = Hannanum() nouns = nlp.nouns(data) count = Counter(nouns) tags2 = count.most_common(200) taglist = pytagcloud.make_tags(tags2, maxsize=...
29.8125
142
0.740042
643efcc62ffee5b784b925d11c6e4e3f66d82564
2,613
py
Python
scripts/pi_scripts/runner.py
No-SF-Work/ayame
6fb79b9897e75fdcf2a81083d462224226a0e4fa
[ "WTFPL" ]
46
2021-08-19T11:24:32.000Z
2022-02-04T13:17:29.000Z
scripts/pi_scripts/runner.py
GeneraluseAI/ayame
6fb79b9897e75fdcf2a81083d462224226a0e4fa
[ "WTFPL" ]
null
null
null
scripts/pi_scripts/runner.py
GeneraluseAI/ayame
6fb79b9897e75fdcf2a81083d462224226a0e4fa
[ "WTFPL" ]
3
2021-09-20T01:44:10.000Z
2022-01-14T04:19:00.000Z
import os import subprocess from pretty_print import Print_C
37.328571
117
0.615385
644138068d0aa242e34e9494e5392a407d2e6756
4,694
py
Python
src/fognode/app.py
hehaichi/dist-fog-c
1d09134c4059718d3f67021f574a85e51754ed8b
[ "MIT" ]
null
null
null
src/fognode/app.py
hehaichi/dist-fog-c
1d09134c4059718d3f67021f574a85e51754ed8b
[ "MIT" ]
null
null
null
src/fognode/app.py
hehaichi/dist-fog-c
1d09134c4059718d3f67021f574a85e51754ed8b
[ "MIT" ]
null
null
null
from flask import Flask from flask import request app = Flask(__name__) # Imports import psutil from flask import jsonify import redis import json from os import urandom import hashlib import docker from docker import APIClient import requests import zipfile from celery import Celery from celery.utils.log import get_t...
28.621951
110
0.659139
6441c2d5103ee3c27b662443bb780f5d7c5a8064
132
py
Python
ppgr/__init__.py
PolarPayne/ppgr
a3ce482999bbd0c71042f18880553ebba60074c5
[ "MIT" ]
null
null
null
ppgr/__init__.py
PolarPayne/ppgr
a3ce482999bbd0c71042f18880553ebba60074c5
[ "MIT" ]
null
null
null
ppgr/__init__.py
PolarPayne/ppgr
a3ce482999bbd0c71042f18880553ebba60074c5
[ "MIT" ]
null
null
null
from .terminal import write, no_cursor from .screen import Screen __all__ = ["write", "no_cursor", "Screen"] __version__ = "0.5.0"
22
42
0.719697
64428d8d713a83be8c76fc25d74c248dd372769d
13,566
py
Python
tarot_deck.py
Soren98/tarot
648f543034ef0e660b2f7f1f876052398286d227
[ "Unlicense" ]
null
null
null
tarot_deck.py
Soren98/tarot
648f543034ef0e660b2f7f1f876052398286d227
[ "Unlicense" ]
null
null
null
tarot_deck.py
Soren98/tarot
648f543034ef0e660b2f7f1f876052398286d227
[ "Unlicense" ]
null
null
null
import json from copy import deepcopy from random import shuffle cards = ['magician', 'high priestess', 'empress', 'emperor', 'hierophant', 'lovers', 'chariot', 'justice', 'hermit', 'wheel of fortune', 'strength', 'hanged man', 'death', 'temperance', 'devil', 'tower', 'star', 'moon', 'sun', 'judgem...
65.221154
120
0.618605
644292c4d61839088d132ddd059480c729616e9c
2,604
py
Python
RL.py
apurva-rai/Reinforcement_Learning
9b979b9dd1f63cb966be3230f1aab494d0d477cb
[ "MIT" ]
null
null
null
RL.py
apurva-rai/Reinforcement_Learning
9b979b9dd1f63cb966be3230f1aab494d0d477cb
[ "MIT" ]
null
null
null
RL.py
apurva-rai/Reinforcement_Learning
9b979b9dd1f63cb966be3230f1aab494d0d477cb
[ "MIT" ]
null
null
null
import numpy as np #SARSA class that has function to train and test simple treasure finding path #Q-Learning class that has functions to train and test simple treasure finding path
27.702128
136
0.519585
6442d0f58b9da08f14b0b72fb7a653476fb790c0
15,068
py
Python
pyfda/libs/pyfda_fft_windows_lib.py
cedricboudinet/pyFDA
fd75970486d931c2b58e03683f2617eefb75d1d3
[ "MIT" ]
null
null
null
pyfda/libs/pyfda_fft_windows_lib.py
cedricboudinet/pyFDA
fd75970486d931c2b58e03683f2617eefb75d1d3
[ "MIT" ]
null
null
null
pyfda/libs/pyfda_fft_windows_lib.py
cedricboudinet/pyFDA
fd75970486d931c2b58e03683f2617eefb75d1d3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of the pyFDA project hosted at https://github.com/chipmuenk/pyfda # # Copyright pyFDA Project Contributors # Licensed under the terms of the MIT License # (see file LICENSE in root directory for details) """ Store the available fft windows and their properties """ import ...
37.29703
140
0.554685
6442f3e788a9a60ebaf60333e7bbf4b6be2a9475
30,541
py
Python
src/data/argoverse/dataset.py
ybarancan/STSU
0b9efa88739c517a7ca00e61faefa4b45714d312
[ "Apache-2.0" ]
67
2021-10-06T13:48:44.000Z
2022-03-31T04:00:20.000Z
src/data/argoverse/dataset.py
w23215/STSU
0b9efa88739c517a7ca00e61faefa4b45714d312
[ "Apache-2.0" ]
6
2021-11-03T08:37:31.000Z
2022-03-19T10:13:10.000Z
src/data/argoverse/dataset.py
w23215/STSU
0b9efa88739c517a7ca00e61faefa4b45714d312
[ "Apache-2.0" ]
10
2021-12-08T10:54:45.000Z
2022-03-22T06:44:14.000Z
import os from PIL import Image import torch from torch.utils.data import Dataset from torchvision.transforms.functional import to_tensor from src.utils import bezier from .utils import IMAGE_WIDTH, IMAGE_HEIGHT, ARGOVERSE_CLASS_NAMES from ..utils import decode_binary_labels import numpy as np import logging import s...
39.104994
240
0.500638
ff235d7055fe081642d3b159d6f17203a8645409
3,782
py
Python
src/textcode/markup.py
pombredanne/scancode-toolkit
0d90a0498148997de94f92b00adf7e33079a41a8
[ "Apache-2.0", "CC0-1.0" ]
3
2015-07-01T15:08:33.000Z
2015-11-05T03:15:36.000Z
src/textcode/markup.py
pombredanne/scancode-toolkit
0d90a0498148997de94f92b00adf7e33079a41a8
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/textcode/markup.py
pombredanne/scancode-toolkit
0d90a0498148997de94f92b00adf7e33079a41a8
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB ...
36.718447
82
0.702538
ff23e35f84a4695ae6e12845521a5ceb13bc1d71
7,689
py
Python
novajoin_tempest_plugin/ipa/ipa_client.py
vakwetu/novajoin_tempest_plugin
cde1888238fdd4f10b9d593e5f94da3ad9522d23
[ "Apache-2.0" ]
null
null
null
novajoin_tempest_plugin/ipa/ipa_client.py
vakwetu/novajoin_tempest_plugin
cde1888238fdd4f10b9d593e5f94da3ad9522d23
[ "Apache-2.0" ]
null
null
null
novajoin_tempest_plugin/ipa/ipa_client.py
vakwetu/novajoin_tempest_plugin
cde1888238fdd4f10b9d593e5f94da3ad9522d23
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Red Hat # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.43318
78
0.588503
ff244389ab03819a221d71c11f19a99f1ecbe7db
4,085
py
Python
old/ctest.py
ostapstephan/SeniorProject
f0d3f8067dec98474641c6ec3696dbd86f066a51
[ "MIT" ]
1
2018-10-03T00:30:34.000Z
2018-10-03T00:30:34.000Z
old/ctest.py
ostapstephan/SeniorProject
f0d3f8067dec98474641c6ec3696dbd86f066a51
[ "MIT" ]
null
null
null
old/ctest.py
ostapstephan/SeniorProject
f0d3f8067dec98474641c6ec3696dbd86f066a51
[ "MIT" ]
null
null
null
# import lib.pbcvt as pbcvt import cv2 import numpy as np import sys from time import time cv2.namedWindow("preview") cv2.namedWindow("preview2") cv2.namedWindow("preview3") vc = cv2.VideoCapture(int(sys.argv[1])) vc.set(3,int(sys.argv[2])) vc.set(4,int(sys.argv[3])) print(vc.get(3)) print(vc.get(4)) # vout = None # ...
33.483607
118
0.60563
ff24c50a953f9de8e5c507018c8a393f88c6968a
3,394
py
Python
src/library/blas/AutoGemm/KernelsToPreCompile.py
tingxingdong/clean
9cdaed4c755b825b0c10a99f9974224993aa39a9
[ "Apache-2.0" ]
1
2021-07-07T11:28:56.000Z
2021-07-07T11:28:56.000Z
src/library/blas/AutoGemm/KernelsToPreCompile.py
tingxingdong/clean
9cdaed4c755b825b0c10a99f9974224993aa39a9
[ "Apache-2.0" ]
null
null
null
src/library/blas/AutoGemm/KernelsToPreCompile.py
tingxingdong/clean
9cdaed4c755b825b0c10a99f9974224993aa39a9
[ "Apache-2.0" ]
null
null
null
import os import argparse import AutoGemmParameters import Common ################################################################################ # Auto-Gemm ################################################################################ ############################################################################...
36.891304
130
0.570418
ff2566df6543c6c812f059453757e928f1cb03ba
604
py
Python
scrap/main.py
talesconrado/SpotPer
682d1f087337980ce7126b8dc5877f4a2a1aad83
[ "MIT" ]
1
2021-04-13T01:28:49.000Z
2021-04-13T01:28:49.000Z
scrap/main.py
talesconrado/SpotPer
682d1f087337980ce7126b8dc5877f4a2a1aad83
[ "MIT" ]
null
null
null
scrap/main.py
talesconrado/SpotPer
682d1f087337980ce7126b8dc5877f4a2a1aad83
[ "MIT" ]
null
null
null
import musics import sys main()
28.761905
79
0.682119
ff26356a8a3d9408da1d439502b5bdb9bed76c96
8,285
py
Python
cct/core2/config.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
1
2015-11-04T16:37:39.000Z
2015-11-04T16:37:39.000Z
cct/core2/config.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
null
null
null
cct/core2/config.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
1
2020-03-05T02:50:43.000Z
2020-03-05T02:50:43.000Z
import logging import os import pathlib import pickle from typing import Dict, Any, Union, Tuple, KeysView, ValuesView, ItemsView, Optional from PyQt5 import QtCore PathLike = Union[os.PathLike, str, pathlib.Path] logger = logging.getLogger(__name__) logger.setLevel(logging.INFO)
35.711207
117
0.569584
ff27a929c9309575aaca50c911b92ee2c9b0e9b2
844
py
Python
bench-scripts/bench_strawman_jl_varying_num_dim.py
holmes-anonymous-submission/holmes-library
35d01400c6694681ed61b2b3e1f6c7eb6b660e90
[ "MIT" ]
null
null
null
bench-scripts/bench_strawman_jl_varying_num_dim.py
holmes-anonymous-submission/holmes-library
35d01400c6694681ed61b2b3e1f6c7eb6b660e90
[ "MIT" ]
null
null
null
bench-scripts/bench_strawman_jl_varying_num_dim.py
holmes-anonymous-submission/holmes-library
35d01400c6694681ed61b2b3e1f6c7eb6b660e90
[ "MIT" ]
null
null
null
#!/usr/bin/env python from common import * configure_network() subprocess.run(["cmake", "."]) subprocess.run(["make"]) print("running the bench_strawman_jl_varying_num_dim") k = 41 # 41 for 100(k), 44 for 200(k) num_records = 100 size_of_each_dimension = 10 print("running the case for " + str(num_records) + " entrie...
40.190476
160
0.694313
ff2a2e9042dfa861f9dd3f86cd1a00194ad688f3
5,184
py
Python
python/iperf_mar1.py
ttlequals0/misc
95ce083312bc241b196afcf675f93480ca6866b0
[ "MIT" ]
null
null
null
python/iperf_mar1.py
ttlequals0/misc
95ce083312bc241b196afcf675f93480ca6866b0
[ "MIT" ]
null
null
null
python/iperf_mar1.py
ttlequals0/misc
95ce083312bc241b196afcf675f93480ca6866b0
[ "MIT" ]
null
null
null
#!/usr/local/apps/networking/bin/python2.7 # script will test all server clinet pairs with iperf ### this is the prd script # pmw 2/18/16 import os import re import sys import datetime #from subprocess import Popen, PIP import subprocess import logging from pprint import pprint import argparse import socket import Queu...
29.622857
104
0.565586
ff2a3163d6bee3ccd183a8a62b54b56207c9096b
1,142
py
Python
Python/audio_to_text.py
udbhavdave/Major
e6e3f3ec27d5294661e9634496a8d5c9ebbf4c1a
[ "MIT" ]
3
2020-12-13T12:21:10.000Z
2021-12-17T10:03:58.000Z
Python/audio_to_text.py
udbhavdave/Major
e6e3f3ec27d5294661e9634496a8d5c9ebbf4c1a
[ "MIT" ]
null
null
null
Python/audio_to_text.py
udbhavdave/Major
e6e3f3ec27d5294661e9634496a8d5c9ebbf4c1a
[ "MIT" ]
null
null
null
# import speech_recognition as sr # import sys # # # read filename from arguments # filename = ("C:\\Users\\utkar\\Downloads\\crowd.mp3") # # # initialize the recognizer # r = sr.Recognizer() # # # open the file # with sr.AudioFile(filename) as source: # # listen for the data (load audio to memory) # audio_data...
26.55814
65
0.722417
ff2cc3e4fa0010425f995d6994abc80dcad5bb40
92
py
Python
codes_auto/1203.print-in-order.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/1203.print-in-order.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/1203.print-in-order.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=1203 lang=python3 # # [1203] print-in-order # None # @lc code=end
13.142857
42
0.663043
ff2f9459306ff0dcba3c3e1ea4e1631dc6e77890
1,777
py
Python
Toolkits/Discovery/meta/searx/searx/engines/digbt.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
Toolkits/Discovery/meta/searx/searx/engines/digbt.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
searx/engines/digbt.py
xu1991/open
5398dab4ba669b3ca87d9fe26eb24431c45f153e
[ "CC0-1.0" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
""" DigBT (Videos, Music, Files) @website https://digbt.org @provide-api no @using-api no @results HTML (using search portal) @stable no (HTML can change) @parse url, title, content, magnetlink """ from sys import version_info from lxml import html from searx.engines.xpath import extract_...
28.206349
90
0.591446
ff3079fc8a9e3d739eb7e1706631d0a9711499a3
7,769
py
Python
calvin_models/calvin_agent/datasets/npz_dataset.py
nikepupu/calvin
23ce311bb14a07d284b87589842f0a542ab0a6fa
[ "MIT" ]
null
null
null
calvin_models/calvin_agent/datasets/npz_dataset.py
nikepupu/calvin
23ce311bb14a07d284b87589842f0a542ab0a6fa
[ "MIT" ]
null
null
null
calvin_models/calvin_agent/datasets/npz_dataset.py
nikepupu/calvin
23ce311bb14a07d284b87589842f0a542ab0a6fa
[ "MIT" ]
null
null
null
import logging import os from pathlib import Path import re from typing import Dict, List, Optional, Tuple from calvin_agent.datasets.base_dataset import BaseDataset from calvin_agent.datasets.utils.episode_utils import ( get_state_info_dict, process_actions, process_depth, process_rgb, process_sta...
41.324468
118
0.644098
ff34739569bdf334a928ceaa661e604b98814f9f
7,537
py
Python
Recommender system/web_scraper.py
ab5163/STEM-Away
a1f3fbe34c88d1c255075796c542493444544d36
[ "MIT" ]
null
null
null
Recommender system/web_scraper.py
ab5163/STEM-Away
a1f3fbe34c88d1c255075796c542493444544d36
[ "MIT" ]
null
null
null
Recommender system/web_scraper.py
ab5163/STEM-Away
a1f3fbe34c88d1c255075796c542493444544d36
[ "MIT" ]
null
null
null
import urllib import json import requests from bs4 import BeautifulSoup import pandas as pd import re import string from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer from nltk.stem.porter import PorterStemmer dflist = [] for i in range(23): df = getpage(i) dflist.append(df...
40.961957
122
0.580337
ff34d2054883cf24cbc01749ebf6d106ab82c808
1,778
py
Python
NeuralNetworks/Layers/dense.py
hiandersson/deep-dream-networks
e6b3d527a723cd67fc6863f838a57096563466fa
[ "MIT" ]
1
2022-01-01T12:11:04.000Z
2022-01-01T12:11:04.000Z
NeuralNetworks/Layers/dense.py
hiandersson/deep-dream-networks
e6b3d527a723cd67fc6863f838a57096563466fa
[ "MIT" ]
null
null
null
NeuralNetworks/Layers/dense.py
hiandersson/deep-dream-networks
e6b3d527a723cd67fc6863f838a57096563466fa
[ "MIT" ]
null
null
null
import numpy from NeuralNetworks.Layers.activations import lambda_from_function
33.54717
147
0.674916
ff35be0655f2594bf8b249c16444cb716e81aff8
2,068
py
Python
src/static/widget/autocomplete/js/minify.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
78
2017-05-26T08:38:25.000Z
2022-02-25T08:55:31.000Z
src/static/widget/autocomplete/js/minify.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
105
2017-05-18T21:57:13.000Z
2022-03-18T21:41:47.000Z
src/static/widget/autocomplete/js/minify.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
19
2017-06-12T18:31:54.000Z
2021-11-10T00:04:43.000Z
#!/usr/bin/python import sys if sys.version > '3': PY3 = True else: PY3 = False if PY3: import http.client, urllib.request, urllib.parse, urllib.error, sys, json,pprint, os.path else: import httplib, urllib, sys, json,pprint, os.path infile = sys.argv[1] if len(sys.argv)>1 else 'mygene_query.js' outfil...
31.333333
93
0.576886
ff3706c2486945d76ad59f2792a976df3fa7f5b3
464
py
Python
multimenus/migrations/0006_auto_20200715_1100.py
arck1/djangocms-multimenus
45accefcb280b96373121331f3294ffffe3e36af
[ "MIT" ]
null
null
null
multimenus/migrations/0006_auto_20200715_1100.py
arck1/djangocms-multimenus
45accefcb280b96373121331f3294ffffe3e36af
[ "MIT" ]
null
null
null
multimenus/migrations/0006_auto_20200715_1100.py
arck1/djangocms-multimenus
45accefcb280b96373121331f3294ffffe3e36af
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-07-15 11:00 from django.db import migrations, models
24.421053
125
0.625
ff390f1c78c4b2350ac89e8b55df3651f99bb7d5
36
py
Python
vnpy/gateway/sec/__init__.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
19,529
2015-03-02T12:17:35.000Z
2022-03-31T17:18:27.000Z
vnpy/gateway/sec/__init__.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
2,186
2015-03-04T23:16:33.000Z
2022-03-31T03:44:01.000Z
vnpy/gateway/sec/__init__.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
8,276
2015-03-02T05:21:04.000Z
2022-03-31T13:13:13.000Z
from .sec_gateway import SecGateway
18
35
0.861111
ff3972f77730df133aea4a5e788e02702aea2856
2,449
py
Python
Vertical Order Traversal of a Binary Tree.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Vertical Order Traversal of a Binary Tree.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Vertical Order Traversal of a Binary Tree.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
''' Given a binary tree, return the vertical order traversal of its nodes values. For each node at position (X, Y), its left and right children respectively will be at positions (X-1, Y-1) and (X+1, Y-1). Running a vertical line from X = -infinity to X = +infinity, whenever the vertical line touches some nodes, we re...
31
197
0.597387
ff39d54b3433a471a6702b5c30caf7429b0f87ae
2,404
py
Python
scripts/distribution.py
Qi-max/amlearn
88189519bc1079ab5085d5871169c223e0d03057
[ "BSD-3-Clause-LBNL" ]
12
2019-02-07T16:45:29.000Z
2021-03-15T12:44:07.000Z
scripts/distribution.py
Qi-max/amlearn
88189519bc1079ab5085d5871169c223e0d03057
[ "BSD-3-Clause-LBNL" ]
2
2018-11-22T04:59:10.000Z
2019-12-05T14:22:29.000Z
scripts/distribution.py
Qi-max/amlearn
88189519bc1079ab5085d5871169c223e0d03057
[ "BSD-3-Clause-LBNL" ]
5
2020-12-03T07:18:50.000Z
2022-01-20T09:17:47.000Z
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt __author__ = "Qi Wang" __email__ = "qiwang.mse@gmail.com" if __name__ == "__main__": system = ["Cu65Zr35", "qr_5plus10^10"] prediction_file = "xx" output_path = "xxx" output_file_header = r'{}_{}_QS'.format(*system) ...
38.15873
123
0.61772
ff3ba356b3b950b1ffa30b4e137a88a175b8f034
1,700
py
Python
mauna_loa.py
ellisbrown/BNN-Uncertainty
71271c2a9387baf57a1007303b989e71f85e2abe
[ "MIT" ]
null
null
null
mauna_loa.py
ellisbrown/BNN-Uncertainty
71271c2a9387baf57a1007303b989e71f85e2abe
[ "MIT" ]
null
null
null
mauna_loa.py
ellisbrown/BNN-Uncertainty
71271c2a9387baf57a1007303b989e71f85e2abe
[ "MIT" ]
null
null
null
import tensorflow as tf import matplotlib.pyplot as plt import argparse from keras.models import load_model from data import load_from_H5 from bnn import bnn from viz import plot_predictions parser = argparse.ArgumentParser(description='Mauna Loa runner') parser.add_argument('--trained_model', default='models/mauna_...
27.419355
103
0.724118
ff3c1fbbadea09a6b0eb293f80eec2bc2157f2ee
692
py
Python
guest/models.py
TylerBackman/chemminetools
1896c2dd7362f44193528aef028390543a125921
[ "BSD-4-Clause-UC" ]
16
2015-03-24T18:34:18.000Z
2018-04-11T06:02:52.000Z
guest/models.py
zagrosman/chemminetools
1896c2dd7362f44193528aef028390543a125921
[ "BSD-4-Clause-UC" ]
60
2019-01-03T18:15:55.000Z
2022-03-12T00:14:59.000Z
guest/models.py
zagrosman/chemminetools
1896c2dd7362f44193528aef028390543a125921
[ "BSD-4-Clause-UC" ]
13
2018-04-25T18:25:09.000Z
2022-02-14T08:15:03.000Z
import datetime from django.db import models from django.contrib.auth.models import User from django.contrib.sessions.models import Session
24.714286
69
0.693642
ff3d3ed279a1850ba4785d212475832f6102bcfe
288
py
Python
test/unit/metrics/utils.py
alliesaizan/fairlearn
846ce6cdaf188e32a545d3f90197515a4a5bc471
[ "MIT" ]
1,142
2019-10-14T18:05:46.000Z
2022-03-30T06:56:54.000Z
test/unit/metrics/utils.py
alliesaizan/fairlearn
846ce6cdaf188e32a545d3f90197515a4a5bc471
[ "MIT" ]
623
2019-10-14T17:11:25.000Z
2022-03-31T17:46:54.000Z
test/unit/metrics/utils.py
alliesaizan/fairlearn
846ce6cdaf188e32a545d3f90197515a4a5bc471
[ "MIT" ]
299
2019-10-15T00:09:53.000Z
2022-03-30T12:35:27.000Z
# Copyright (c) Microsoft Corporation and Fairlearn contributors. # Licensed under the MIT License. import fairlearn.metrics as metrics
28.8
65
0.802083
ff3d57b7a5ef287c60851d0bb59634ded80f741c
1,584
py
Python
day4/day4.py
areddish/aoc2020
9d609e8147e370e31ffe92e4170c5ca7c463186c
[ "MIT" ]
1
2020-12-08T03:02:00.000Z
2020-12-08T03:02:00.000Z
day4/day4.py
areddish/aoc2020
9d609e8147e370e31ffe92e4170c5ca7c463186c
[ "MIT" ]
null
null
null
day4/day4.py
areddish/aoc2020
9d609e8147e370e31ffe92e4170c5ca7c463186c
[ "MIT" ]
null
null
null
validation = { "hgt": check_hgt, "hcl": check_hcl, "pid": lambda x: len(x) == 9, "byr": lambda x: check_range(x, 1920, 2002), "iyr": lambda x: check_range(x, 2010, 2020), "eyr": lambda x: check_range(x, 2020, 2030), "ecl": lambda x: x in ["amb","blu","brn","gry", "grn", "hzl", "oth"], "...
27.310345
73
0.508207
ff3f7bfba4752a7df9e45892c6e150e45e34b651
29,763
py
Python
core/dataflow/nodes/volatility_models.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
core/dataflow/nodes/volatility_models.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
core/dataflow/nodes/volatility_models.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
import collections import datetime import logging from typing import Any, Callable, Dict, List, Optional, Tuple, Union import numpy as np import pandas as pd import scipy as sp import sklearn as sklear import core.config as cconfig import core.data_adapters as cdataa import core.dataflow.utils as cdu import core.fina...
37.818297
84
0.606659
ff3fa16f112510d5cb03e41854b90f0444d90f6d
3,228
py
Python
tempgres/service.py
ClockworkConsulting/django-tempgres
ba9a061f5f61730784522f4b0f75a90c19826fa6
[ "Apache-2.0" ]
null
null
null
tempgres/service.py
ClockworkConsulting/django-tempgres
ba9a061f5f61730784522f4b0f75a90c19826fa6
[ "Apache-2.0" ]
null
null
null
tempgres/service.py
ClockworkConsulting/django-tempgres
ba9a061f5f61730784522f4b0f75a90c19826fa6
[ "Apache-2.0" ]
null
null
null
import logging import requests logger = logging.getLogger(__name__) # Main method for rudimentary testing if __name__ == "__main__": print("Test run of TempgresDatabaseService") print("") db_info = { 'USER': 'tempgres-client', 'PASSWORD': 'tempgres-cpass', 'HOST': 'localhost', ...
28.315789
78
0.589839
ff4088986ff98e499e58a08879fd7b5b158a61fc
893
py
Python
marmot/features/google_translate_feature_extractor.py
qe-team/marmot
38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff
[ "0BSD" ]
19
2015-08-21T13:06:37.000Z
2021-07-26T09:56:29.000Z
marmot/features/google_translate_feature_extractor.py
qe-team/marmot
38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff
[ "0BSD" ]
36
2015-01-13T13:01:07.000Z
2016-06-22T06:59:59.000Z
marmot/features/google_translate_feature_extractor.py
qe-team/marmot
38e09ff1d0a3025a6b7edeaaf6086ed047ec45ff
[ "0BSD" ]
8
2015-12-11T16:41:47.000Z
2019-04-08T16:28:40.000Z
from goslate import Goslate from nltk import word_tokenize import ipdb from marmot.features.feature_extractor import FeatureExtractor from marmot.exceptions.no_data_error import NoDataError
30.793103
97
0.677492
ff40b32664a84e5bb2c3ecaa367f1779b82a8367
235
py
Python
hackerrank/built_ins/zipped.py
alex-d-bondarev/learn-python
b119cb1e09a57e93abc73383c014cc8ceba18acf
[ "MIT" ]
null
null
null
hackerrank/built_ins/zipped.py
alex-d-bondarev/learn-python
b119cb1e09a57e93abc73383c014cc8ceba18acf
[ "MIT" ]
null
null
null
hackerrank/built_ins/zipped.py
alex-d-bondarev/learn-python
b119cb1e09a57e93abc73383c014cc8ceba18acf
[ "MIT" ]
null
null
null
if __name__ == '__main__': _, X = input().split() subjects = list() for _ in range(int(X)): subjects.append(map(float, input().split())) for i in zip(*subjects): print("{0:.1f}".format(sum(i)/len(i)))
23.5
52
0.544681
ff45f44cc60ac4208193a70ca5502f0bb47aa1a1
9,110
py
Python
scripts/dspace_dsa_maker.py
masonpublishing/dspace_simple_archives_import
02b90aca955dc34019e4efd77d823dbe91a9812e
[ "Apache-2.0" ]
1
2019-06-04T15:36:39.000Z
2019-06-04T15:36:39.000Z
scripts/dspace_dsa_maker.py
masonpublishing/dspace_simple_archives_import
02b90aca955dc34019e4efd77d823dbe91a9812e
[ "Apache-2.0" ]
null
null
null
scripts/dspace_dsa_maker.py
masonpublishing/dspace_simple_archives_import
02b90aca955dc34019e4efd77d823dbe91a9812e
[ "Apache-2.0" ]
1
2019-06-04T15:42:39.000Z
2019-06-04T15:42:39.000Z
""" dspace_dsa_maker.py - prepare DSpace Simple Archives for import. Copyright 2018 University of Toronto Libraries 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...
42.570093
97
0.597475
ff46471a452e693a79e98c3a031f0fa30bba73ed
533
py
Python
tests/test_notes_append_header.py
fujiawei-dev/tookit-py
5ab3a18a41885f6166150cc27183621b96f8f991
[ "BSD-3-Clause" ]
null
null
null
tests/test_notes_append_header.py
fujiawei-dev/tookit-py
5ab3a18a41885f6166150cc27183621b96f8f991
[ "BSD-3-Clause" ]
null
null
null
tests/test_notes_append_header.py
fujiawei-dev/tookit-py
5ab3a18a41885f6166150cc27183621b96f8f991
[ "BSD-3-Clause" ]
null
null
null
""" Date: 2022.04.13 10:28 Description: Omit LastEditors: Rustle Karl LastEditTime: 2022.04.13 10:28 """ import tempfile from pathlib import Path from create_config_file.notes import notes_append_header
20.5
56
0.718574
ff46c04244d1b8d9066db29c8d66cfe8df3315a5
11,620
py
Python
src/seirsplus/models/compartment_model_builder.py
SEIRS-Plus/v2
3adc155400deaa4093e523ae81d2a25989888654
[ "MIT" ]
1
2022-03-04T08:05:58.000Z
2022-03-04T08:05:58.000Z
src/seirsplus/models/compartment_model_builder.py
SEIRS-Plus/v2
3adc155400deaa4093e523ae81d2a25989888654
[ "MIT" ]
null
null
null
src/seirsplus/models/compartment_model_builder.py
SEIRS-Plus/v2
3adc155400deaa4093e523ae81d2a25989888654
[ "MIT" ]
null
null
null
""" Programmatically building up compartment models """ # Standard Libraries import json # External Libraries import numpy as np
39.124579
93
0.569535
ff46c556255a2b8fc5d5a10506e048de2e0a70b8
959
py
Python
examples/multifig.py
ianhi/mpl-playback
2c0896205b94e2c3c1ee9e8582291cc2e94aab99
[ "BSD-3-Clause" ]
1
2021-05-06T22:38:23.000Z
2021-05-06T22:38:23.000Z
examples/multifig.py
ianhi/mpl-playback
2c0896205b94e2c3c1ee9e8582291cc2e94aab99
[ "BSD-3-Clause" ]
4
2021-01-12T02:15:00.000Z
2021-06-30T21:14:43.000Z
examples/multifig.py
ianhi/mpl-playback
2c0896205b94e2c3c1ee9e8582291cc2e94aab99
[ "BSD-3-Clause" ]
null
null
null
""" ================ Multiple Figures ================ Test case for putting multiple figures into sphinx gallery. The playback file was generated using: ``record_file("multifig.py", ["slider_fig", "fig"])`` """ import numpy as np import matplotlib.pyplot as plt from matplotlib.widgets import Slider # The parametri...
22.833333
65
0.694473
ff46cfaed4a3b5bf3770ac15e877c7b30e1c87cf
2,085
py
Python
Chapter7 - whileandinput.py
Gmentesh2/Chapter7-input-whileloop-exerciseHM
42b96227fa3262c30d5872d425cb7e1581f08e14
[ "MIT" ]
null
null
null
Chapter7 - whileandinput.py
Gmentesh2/Chapter7-input-whileloop-exerciseHM
42b96227fa3262c30d5872d425cb7e1581f08e14
[ "MIT" ]
null
null
null
Chapter7 - whileandinput.py
Gmentesh2/Chapter7-input-whileloop-exerciseHM
42b96227fa3262c30d5872d425cb7e1581f08e14
[ "MIT" ]
null
null
null
promt = "Here you can enter" promt += "a series of toppings>>>" message = True while message: message = input(promt) if message == "Quit": print(" I'll add " + message + " to your pizza.") else: break promt = "How old are you?" promt += "\nEnter 'quit' when you a...
26.0625
105
0.615348
ff46d17ceffbb94fbdc105066b86962459c8d03e
3,380
py
Python
scrape_mars.py
Jessica-Xia/web-scraping-challenge
43fc16862cc20e9ac9f93e5e1a960c354fc5a964
[ "ADSL" ]
null
null
null
scrape_mars.py
Jessica-Xia/web-scraping-challenge
43fc16862cc20e9ac9f93e5e1a960c354fc5a964
[ "ADSL" ]
null
null
null
scrape_mars.py
Jessica-Xia/web-scraping-challenge
43fc16862cc20e9ac9f93e5e1a960c354fc5a964
[ "ADSL" ]
null
null
null
from splinter import Browser from bs4 import BeautifulSoup import pandas as pd import time
23.636364
114
0.65
ff473bea0ab54b3db0252443c6401db2224d1f9b
272
py
Python
test2.py
edwkar/marrow
8138b44eff2cbcb8f7139cab27f57e6dc263df85
[ "MIT" ]
null
null
null
test2.py
edwkar/marrow
8138b44eff2cbcb8f7139cab27f57e6dc263df85
[ "MIT" ]
null
null
null
test2.py
edwkar/marrow
8138b44eff2cbcb8f7139cab27f57e6dc263df85
[ "MIT" ]
null
null
null
foo(3, 2) report_call(0, 3, foo, (report_eval(3), report_eval(2),))
18.133333
57
0.566176
ff47954bcddeb6c75bb020c08155072c7830f063
6,572
py
Python
.ipynb_checkpoints/utils_discrete-checkpoint.py
hsharsh/pinn-torch
fa563b324c286ec4425529f5ea1db03e68bec2f3
[ "MIT" ]
1
2022-01-25T04:27:33.000Z
2022-01-25T04:27:33.000Z
utils_discrete.py
hsharsh/pinn-torch
fa563b324c286ec4425529f5ea1db03e68bec2f3
[ "MIT" ]
null
null
null
utils_discrete.py
hsharsh/pinn-torch
fa563b324c286ec4425529f5ea1db03e68bec2f3
[ "MIT" ]
null
null
null
# Data processing imports import scipy.io as io import numpy as np from pyDOE import lhs # Plotting imports import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_locatable from scipy.interpolate import griddata import matplotlib.gridspec as gridspec # Inference # Identification
36.715084
138
0.580037
ff47ce89d7e6d1cfd4bc00b15dbb096b0f355329
3,896
py
Python
scripts/gpipe/gene2gene.py
CGATOxford/Optic
2df92e953b5139ff4e5c383cb4383e6367cd47f1
[ "MIT" ]
null
null
null
scripts/gpipe/gene2gene.py
CGATOxford/Optic
2df92e953b5139ff4e5c383cb4383e6367cd47f1
[ "MIT" ]
null
null
null
scripts/gpipe/gene2gene.py
CGATOxford/Optic
2df92e953b5139ff4e5c383cb4383e6367cd47f1
[ "MIT" ]
1
2020-03-31T22:55:50.000Z
2020-03-31T22:55:50.000Z
########################################################################## # # MRC FGU Computational Genomics Group # # $Id$ # # Copyright (C) 2009 Andreas Heger # # 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 ...
26.324324
121
0.587782
ff48fb4c7680811b739fa3fcf4eebb4da830d50b
9,053
py
Python
pyneval/cli/pyneval.py
CSDLLab/PyMets
24e02dba5615c781ea0215467a4b89b9625ca519
[ "BSD-3-Clause" ]
12
2020-07-18T16:55:23.000Z
2022-03-14T12:26:08.000Z
pyneval/cli/pyneval.py
CSDLLab/PyMets
24e02dba5615c781ea0215467a4b89b9625ca519
[ "BSD-3-Clause" ]
5
2021-05-31T22:08:51.000Z
2021-08-31T15:42:44.000Z
pyneval/cli/pyneval.py
CSDLLab/PyMets
24e02dba5615c781ea0215467a4b89b9625ca519
[ "BSD-3-Clause" ]
2
2021-09-24T03:02:27.000Z
2021-11-09T06:21:00.000Z
import argparse import importlib import os import sys import jsonschema import pkg_resources from multiprocessing import Pool, cpu_count from pyneval.errors.exceptions import InvalidMetricError, PyNevalError from pyneval.pyneval_io import json_io from pyneval.pyneval_io import swc_io from pyneval.metric.utils import a...
32.564748
157
0.642218
ff4a89c35219dc2f2732b8374cd3ee1ff05ce0d0
572
py
Python
src/tratamientos/migrations/0006_auto_20170201_1554.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
src/tratamientos/migrations/0006_auto_20170201_1554.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
32
2016-05-09T19:37:08.000Z
2022-01-13T01:00:52.000Z
src/tratamientos/migrations/0006_auto_20170201_1554.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2017-02-01 18:54 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
26
129
0.662587
ff4a945a55cd1faab9edb57d2954c239971d2727
3,749
py
Python
src/alembic/versions/89944f8b35b3_db_games_model_migrations.py
green2cerberuz/db_vgames
d6d71f6b40c7e0c28c307bc314f46675ac0bf5e9
[ "MIT" ]
null
null
null
src/alembic/versions/89944f8b35b3_db_games_model_migrations.py
green2cerberuz/db_vgames
d6d71f6b40c7e0c28c307bc314f46675ac0bf5e9
[ "MIT" ]
null
null
null
src/alembic/versions/89944f8b35b3_db_games_model_migrations.py
green2cerberuz/db_vgames
d6d71f6b40c7e0c28c307bc314f46675ac0bf5e9
[ "MIT" ]
null
null
null
"""DB Games model migrations Revision ID: 89944f8b35b3 Revises: Create Date: 2020-11-14 03:49:03.255055 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "89944f8b35b3" down_revision = None branch_labels = None depends_on = None
37.868687
88
0.623099
ff4bc07be12dc2426e91dab41e8aaf03e6096812
468
py
Python
way/python/first_steps/basics/testgui.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
way/python/first_steps/basics/testgui.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
way/python/first_steps/basics/testgui.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
from tkinter import * clicks = 0 root = Tk() root.title("GUI Python") root.geometry("300x250") buttonText = StringVar() buttonText.set("Clicks {}".format(clicks)) btn = Button(textvariable=buttonText, background="#555", foreground="#ccc", padx="20", pady="8", font="16", command=click_b...
19.5
76
0.632479
ff4c909fa06f90aff02e38a609573a49afbaf2e0
4,679
py
Python
genomic_data_service/region_indexer_elastic_search.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
3
2020-10-26T02:15:55.000Z
2022-01-26T18:39:09.000Z
genomic_data_service/region_indexer_elastic_search.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
3
2021-08-17T02:01:54.000Z
2022-03-30T17:14:02.000Z
genomic_data_service/region_indexer_elastic_search.py
ENCODE-DCC/genomic-data-service
954017a5bcc5f448fbe2867768186df5e066c67c
[ "MIT" ]
1
2022-03-24T21:15:34.000Z
2022-03-24T21:15:34.000Z
from elasticsearch import Elasticsearch from elasticsearch.exceptions import NotFoundError from elasticsearch.helpers import bulk RESIDENTS_INDEX = 'resident_regionsets' REGION_INDEXER_SHARDS = 2 SEARCH_MAX = 99999 FOR_REGULOME_DB = 'regulomedb' INDEX_SETTINGS = { 'index': { 'number_of_shards': REGION_IND...
32.047945
126
0.516777
ff4e9e63d1e23b29bf168baa8208ef736d094895
4,160
py
Python
genda/formats/dosages.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
5
2016-01-12T15:12:18.000Z
2022-02-10T21:57:39.000Z
genda/formats/dosages.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
5
2015-01-20T04:22:50.000Z
2018-10-02T19:39:12.000Z
genda/formats/dosages.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
1
2022-03-04T06:49:39.000Z
2022-03-04T06:49:39.000Z
""" Functions for working with tabix dosages in pandas dataframes """ import gzip import numpy as np import pandas as pd import pysam import statsmodels.api as sm def get_dosages_by_range(chrm, start, end, gene_name, annotation_file, dosage_df, mapping=None): """ Fuzzy mapping between annotation and...
28.888889
85
0.566827
ff4eece822bfb55c7cca08af69a260d962fcf85b
406
py
Python
string/Python/0067-add-binary-1.py
ljyljy/LeetCode-Solution-in-Good-Style
0998211d21796868061eb22e2cbb9bcd112cedce
[ "Apache-2.0" ]
1
2021-01-10T17:03:21.000Z
2021-01-10T17:03:21.000Z
string/Python/0067-add-binary-1.py
lemonnader/LeetCode-Solution-Well-Formed
baabdb1990fd49ab82a712e121f49c4f68b29459
[ "Apache-2.0" ]
null
null
null
string/Python/0067-add-binary-1.py
lemonnader/LeetCode-Solution-Well-Formed
baabdb1990fd49ab82a712e121f49c4f68b29459
[ "Apache-2.0" ]
1
2021-07-25T07:53:14.000Z
2021-07-25T07:53:14.000Z
if __name__ == '__main__': a = "11" b = "1" solution = Solution() result = solution.addBinary(a, b) print(result) result1 = int(a, 2) result2 = int(b, 2) print(result1) print(result2) print(bin(result1 + result2)) print(bin(result1 + result2)[2:])
20.3
47
0.561576
ff51372a814f4b42e447cbc94944724fd9e86cc6
3,017
py
Python
envergo/evaluations/migrations/0007_auto_20210816_1212.py
MTES-MCT/envergo
8bb6e4ffa15a39edda51b39401db6cc12e73ad0a
[ "MIT" ]
null
null
null
envergo/evaluations/migrations/0007_auto_20210816_1212.py
MTES-MCT/envergo
8bb6e4ffa15a39edda51b39401db6cc12e73ad0a
[ "MIT" ]
6
2021-07-12T14:33:18.000Z
2022-02-14T10:36:09.000Z
envergo/evaluations/migrations/0007_auto_20210816_1212.py
MTES-MCT/envergo
8bb6e4ffa15a39edda51b39401db6cc12e73ad0a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.12 on 2021-08-16 12:12 from django.db import migrations, models
41.328767
173
0.598608
ff51b99a9a8c88b5a89d588144d9adb2147e11eb
4,943
py
Python
app/knowledgecard.py
thaithimyduyen/German-Study-TelegramBot
8dbcfe1f28dad7a4b012d0d94a19cb17ae7baebd
[ "MIT" ]
2
2020-05-15T17:55:01.000Z
2020-05-22T15:31:40.000Z
app/knowledgecard.py
thaithimyduyen/German-Study-TelegramBot
8dbcfe1f28dad7a4b012d0d94a19cb17ae7baebd
[ "MIT" ]
1
2022-01-20T18:33:10.000Z
2022-01-20T18:38:44.000Z
app/knowledgecard.py
thaithimyduyen/German-Study-TelegramBot
8dbcfe1f28dad7a4b012d0d94a19cb17ae7baebd
[ "MIT" ]
null
null
null
import logging import enum import copy import telegram.error from telegram import ( InlineKeyboardButton, InlineKeyboardMarkup, ParseMode ) from app.entities import KnowledgeStatus from app.card import Card logging.basicConfig( format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level...
27.926554
77
0.600647
ff5309da667685d4448f0288ca00089d68c14df3
316
py
Python
learn_pyblish/myplugins/myplugin2.py
kingmax/py
4cbc20d21c249e22e8f6b68d3c761a66a981e38f
[ "MIT" ]
null
null
null
learn_pyblish/myplugins/myplugin2.py
kingmax/py
4cbc20d21c249e22e8f6b68d3c761a66a981e38f
[ "MIT" ]
null
null
null
learn_pyblish/myplugins/myplugin2.py
kingmax/py
4cbc20d21c249e22e8f6b68d3c761a66a981e38f
[ "MIT" ]
null
null
null
import pyblish.api ########################################################################
24.307692
75
0.300633
ff54be97770be18ceff808d68e4d32c92c411113
2,411
py
Python
tests/saliency_tests/visualizer_tests/test_mol_visualizer.py
k-ishiguro/chainer-chemistry
aec33496def16e76bdfbefa508ba01ab9f79a592
[ "MIT" ]
1
2019-06-19T00:05:59.000Z
2019-06-19T00:05:59.000Z
tests/saliency_tests/visualizer_tests/test_mol_visualizer.py
k-ishiguro/chainer-chemistry
aec33496def16e76bdfbefa508ba01ab9f79a592
[ "MIT" ]
null
null
null
tests/saliency_tests/visualizer_tests/test_mol_visualizer.py
k-ishiguro/chainer-chemistry
aec33496def16e76bdfbefa508ba01ab9f79a592
[ "MIT" ]
1
2020-10-12T07:23:44.000Z
2020-10-12T07:23:44.000Z
import os import numpy import pytest from rdkit import Chem from chainer_chemistry.saliency.visualizer.mol_visualizer import MolVisualier # NOQA from chainer_chemistry.saliency.visualizer.mol_visualizer import SmilesVisualizer # NOQA if __name__ == '__main__': pytest.main([__file__, '-v', '-s'])
33.957746
89
0.686022
ff55f7f2f426e01eb001fb5f6005e1a8245f5527
716
py
Python
src/driver.py
01mu/gamefaqs-scraper
1c3ddd7b234937c1f2a5ab0ee2a9cedc33ad3d74
[ "MIT" ]
1
2022-01-08T18:13:24.000Z
2022-01-08T18:13:24.000Z
src/driver.py
01mu/gamefaqs-scraper
1c3ddd7b234937c1f2a5ab0ee2a9cedc33ad3d74
[ "MIT" ]
null
null
null
src/driver.py
01mu/gamefaqs-scraper
1c3ddd7b234937c1f2a5ab0ee2a9cedc33ad3d74
[ "MIT" ]
null
null
null
# # gamefaqs-scraper # github.com/01mu # from gamefaqs_scraper import GFSBoard from gamefaqs_scraper import GFSThread board = GFSBoard() board.get_site('234547-super-smash-bros-ultimate', 0) threads = board.find() print("Pages: " + str(board.max_page) + "\n") for i in range(len(threads)): print(threads[i].title...
23.866667
79
0.642458
ff56d4da695b936f27e4f59c482e9fc6e6d38fb1
1,202
py
Python
ServerPackage/Game.py
PaulieC/rls
fbff3a303a981a65069c9dc679c15d61056b88f1
[ "Apache-2.0" ]
null
null
null
ServerPackage/Game.py
PaulieC/rls
fbff3a303a981a65069c9dc679c15d61056b88f1
[ "Apache-2.0" ]
null
null
null
ServerPackage/Game.py
PaulieC/rls
fbff3a303a981a65069c9dc679c15d61056b88f1
[ "Apache-2.0" ]
null
null
null
__author__ = "Paul Council, Joseph Gonzoph, Anand Patel" __version__ = "sprint1" __credits__ = ["Matt Martorana, Justin Read"] # imports from ServerPackage import Observer
26.711111
72
0.616473
ff586db231494de039c35a8707572150023a7b03
971
py
Python
crawlers/news/items.py
Ceruleanacg/rena
eb651b7e4d8d8db0ca87e1415a5c9190abb346d2
[ "MIT" ]
7
2018-04-01T16:07:31.000Z
2018-07-01T10:33:26.000Z
crawlers/news/items.py
Ceruleanacg/rena
eb651b7e4d8d8db0ca87e1415a5c9190abb346d2
[ "MIT" ]
null
null
null
crawlers/news/items.py
Ceruleanacg/rena
eb651b7e4d8d8db0ca87e1415a5c9190abb346d2
[ "MIT" ]
1
2016-02-04T20:33:06.000Z
2016-02-04T20:33:06.000Z
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html from scrapy import Item, Field from scrapy.loader.processors import TakeFirst, Join
16.741379
52
0.625129
ff58f5c94b3ba90cd9f6fdc7fcbabd019709a353
611
py
Python
intermediate/5/5-intermediate.py
KindaExists/daily-programmer
e52519708cac3dbd2cabfbf63024646108b45372
[ "MIT" ]
null
null
null
intermediate/5/5-intermediate.py
KindaExists/daily-programmer
e52519708cac3dbd2cabfbf63024646108b45372
[ "MIT" ]
null
null
null
intermediate/5/5-intermediate.py
KindaExists/daily-programmer
e52519708cac3dbd2cabfbf63024646108b45372
[ "MIT" ]
null
null
null
""" [intermediate] challenge #5 Source / Reddit Post - https://www.reddit.com/r/dailyprogrammer/comments/pnhtj/2132012_challenge_5_intermediate/ """ words = [] sorted_words = [] with open('intermediate/5/words.txt', 'r') as fp: words = fp.read().split() sorted_words = [''.join(sorted(word)) for word in word...
25.458333
112
0.662848
ff5986eb7d80707f56a8beab2a20415bc7fe42b3
23,051
py
Python
Kevin/4.py
kevin-ci/advent-of-code-2020
697dd3d2639e30e59b228fa417ca5a76cd94f9e5
[ "MIT" ]
null
null
null
Kevin/4.py
kevin-ci/advent-of-code-2020
697dd3d2639e30e59b228fa417ca5a76cd94f9e5
[ "MIT" ]
null
null
null
Kevin/4.py
kevin-ci/advent-of-code-2020
697dd3d2639e30e59b228fa417ca5a76cd94f9e5
[ "MIT" ]
null
null
null
import re input = """iyr:2010 ecl:gry hgt:181cm pid:591597745 byr:1920 hcl:#6b5442 eyr:2029 cid:123 cid:223 byr:1927 hgt:177cm hcl:#602927 iyr:2016 pid:404183620 ecl:amb eyr:2020 byr:1998 ecl:hzl cid:178 hcl:#a97842 iyr:2014 hgt:166cm pid:594143498 eyr:2030 ecl:hzl pid:795349208 iyr:2018 eyr:2024 hcl:#de745c hgt:15...
18.817143
80
0.753633
ff59e3ae0336b603d2a05d8f243ce3a51a93e303
802
py
Python
brdashsite/batchrecords/migrations/0003_auto_20190226_2017.py
JNDib/brdashproject
f9a7cb543024bfb6bb3556b9affdcddb46add2e1
[ "MIT" ]
null
null
null
brdashsite/batchrecords/migrations/0003_auto_20190226_2017.py
JNDib/brdashproject
f9a7cb543024bfb6bb3556b9affdcddb46add2e1
[ "MIT" ]
null
null
null
brdashsite/batchrecords/migrations/0003_auto_20190226_2017.py
JNDib/brdashproject
f9a7cb543024bfb6bb3556b9affdcddb46add2e1
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-02-27 02:17 from django.db import migrations
24.30303
52
0.574813
ff5afc2fece69197315667ad84fe46cb018812aa
3,325
py
Python
precipy/identifiers.py
ananelson/precipy
dfa87de23229903e5d26aeab82de5fa56e2a1ac5
[ "Apache-2.0" ]
null
null
null
precipy/identifiers.py
ananelson/precipy
dfa87de23229903e5d26aeab82de5fa56e2a1ac5
[ "Apache-2.0" ]
2
2020-06-26T13:06:31.000Z
2022-03-31T04:27:58.000Z
precipy/identifiers.py
ananelson/precipy
dfa87de23229903e5d26aeab82de5fa56e2a1ac5
[ "Apache-2.0" ]
3
2020-05-27T07:14:16.000Z
2020-06-03T04:15:07.000Z
from enum import Enum import hashlib import inspect import logging import os logger = logging.getLogger(name="precipy.identifiers") metadata_filename = "metadata.pkl" def hash_for_dict(info_dict): logger.debug("") logger.debug("computing hash for dict from:") for k in sorted(info_dict): v = info...
29.954955
97
0.642406
ff5c4a6294ba492144ae065014c970ada8bfb064
1,802
py
Python
src/python/marbles/ie/test/passive_test.py
marbles-ai/ie
b3fef462d3418580c827c94bc206bd2991500c1f
[ "MIT" ]
null
null
null
src/python/marbles/ie/test/passive_test.py
marbles-ai/ie
b3fef462d3418580c827c94bc206bd2991500c1f
[ "MIT" ]
null
null
null
src/python/marbles/ie/test/passive_test.py
marbles-ai/ie
b3fef462d3418580c827c94bc206bd2991500c1f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import unittest from marbles.ie import grpc from marbles.ie.ccg import parse_ccg_derivation2 as parse_ccg_derivation from marbles.ie.drt.drs import Rel from marbles.ie.semantics.ccg import process_ccg_pt, pt_to_ccg_derivation from marbles.i...
35.333333
76
0.669256
ff5d7939ba961dd0adaed7bb04d2952b658dec7e
33,088
py
Python
lib/devops/supervisor.py
jpotter/angel
66e98f73621a735c7e5a7f3a70926ad99dd39f3e
[ "Apache-2.0" ]
null
null
null
lib/devops/supervisor.py
jpotter/angel
66e98f73621a735c7e5a7f3a70926ad99dd39f3e
[ "Apache-2.0" ]
null
null
null
lib/devops/supervisor.py
jpotter/angel
66e98f73621a735c7e5a7f3a70926ad99dd39f3e
[ "Apache-2.0" ]
null
null
null
import fcntl import os import random import select import signal import sys import time import traceback from devops.file_and_dir_helpers import * from angel.util.pidfile import * from devops.unix_helpers import set_proc_title from angel.stats.disk_stats import disk_stats_get_usage_for_path from devops.process_helpers...
53.977162
242
0.634913
ff615d487c1dcefa0094156fbe9268c588f51e48
10,752
py
Python
muspinsim/experiment.py
muon-spectroscopy-computational-project/muspinsim
d9e971edd840ab0c33b143f9b5694bc1b09011d2
[ "MIT" ]
null
null
null
muspinsim/experiment.py
muon-spectroscopy-computational-project/muspinsim
d9e971edd840ab0c33b143f9b5694bc1b09011d2
[ "MIT" ]
null
null
null
muspinsim/experiment.py
muon-spectroscopy-computational-project/muspinsim
d9e971edd840ab0c33b143f9b5694bc1b09011d2
[ "MIT" ]
null
null
null
"""experiment.py Classes and functions to perform actual experiments""" import logging import numpy as np import scipy.constants as cnst from muspinsim.constants import MU_TAU from muspinsim.utils import get_xy from muspinsim.mpi import mpi_controller as mpi from muspinsim.simconfig import MuSpinConfig, ConfigSnapsh...
31.623529
88
0.530599
ff617cfb1a089c6b6e48e0e320406fd3e6b05484
5,456
py
Python
obtain_rms_frequency_domain.py
antonyvm1102/Redbox
8aa7feeaa6513275e7e78ed6cc049bed50bf1ec2
[ "MIT" ]
null
null
null
obtain_rms_frequency_domain.py
antonyvm1102/Redbox
8aa7feeaa6513275e7e78ed6cc049bed50bf1ec2
[ "MIT" ]
null
null
null
obtain_rms_frequency_domain.py
antonyvm1102/Redbox
8aa7feeaa6513275e7e78ed6cc049bed50bf1ec2
[ "MIT" ]
null
null
null
import signal_processing as sp import numpy as np import sys import time """ Get RMS in frequency domain per 1/3 octave band for all signals and translate to min/mean/max per band. TODO: add option to exclude zeros from the minimum as in 'capture_min_max_mean_stdev.py'. """ def largest_power_of_base(n, base...
43.648
104
0.65011
ff618e7f05dc5906031406a71845d508dc1f772b
6,515
py
Python
addons/calendar/tests/test_event_notifications.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/calendar/tests/test_event_notifications.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/calendar/tests/test_event_notifications.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from unittest.mock import patch from datetime import datetime, date from dateutil.relativedelta import relativedelta from odoo import fields from odoo.tests.common import SavepointCase, new_test_user from odoo.addons.ma...
39.72561
142
0.576362
ff61a35da70ce96da4dbed1626f69b49464f0702
1,393
py
Python
transformers/configuration_classifier.py
Rohit--Sharma/transformers
837b33e31546b0064208770ba37b88a5d93ec826
[ "Apache-2.0" ]
null
null
null
transformers/configuration_classifier.py
Rohit--Sharma/transformers
837b33e31546b0064208770ba37b88a5d93ec826
[ "Apache-2.0" ]
null
null
null
transformers/configuration_classifier.py
Rohit--Sharma/transformers
837b33e31546b0064208770ba37b88a5d93ec826
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
33.97561
83
0.712132
ff645fb0b531eb78c5209f67de47acd24606ce15
407
py
Python
teeport/__init__.py
SPEAR3-ML/teeport-client-python
cb0a81e9a8e111bf4116484bbe496252aa8d9edc
[ "MIT" ]
null
null
null
teeport/__init__.py
SPEAR3-ML/teeport-client-python
cb0a81e9a8e111bf4116484bbe496252aa8d9edc
[ "MIT" ]
null
null
null
teeport/__init__.py
SPEAR3-ML/teeport-client-python
cb0a81e9a8e111bf4116484bbe496252aa8d9edc
[ "MIT" ]
null
null
null
# Copyright (c) 2019-2020, SPEAR3 authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) # The reason we need nest_asyncio is that we run multiple event loops in a # single thread, that's not allowed. The future work should be create a new # thread for each event loop so we can get rid ...
37
75
0.773956
ff65c0e6971ce7212c2e0454417283a2f36e752e
1,886
py
Python
Eval/model.py
gabbar-08/Coupon-Redemption-Prediction
98a65f1ca2c14bf9d6430aeebcb1594b20211bcf
[ "MIT" ]
null
null
null
Eval/model.py
gabbar-08/Coupon-Redemption-Prediction
98a65f1ca2c14bf9d6430aeebcb1594b20211bcf
[ "MIT" ]
null
null
null
Eval/model.py
gabbar-08/Coupon-Redemption-Prediction
98a65f1ca2c14bf9d6430aeebcb1594b20211bcf
[ "MIT" ]
null
null
null
#Step 1 :- Importing dependancies and train test data generated from config import * train_data = pd.read_csv("data/train_data/train_feature.csv") test_data = pd.read_csv("data/test_data/test_feature.csv") #Step 2 :- Getting train data insights and drop unnecessary columns, Splitting data into input and target ...
41.911111
181
0.742842
ff66410bdbe1205af5c60fa1d3952254cdea2bbe
1,078
py
Python
docs/_ext/django_models.py
bhrutledge/jahhills.com
74fe94a214f1ed5681bd45159315f0b68daf5a33
[ "MIT" ]
1
2016-04-12T17:38:26.000Z
2016-04-12T17:38:26.000Z
docs/_ext/django_models.py
bhrutledge/jahhills.com
74fe94a214f1ed5681bd45159315f0b68daf5a33
[ "MIT" ]
92
2015-04-03T10:04:55.000Z
2021-07-17T11:13:52.000Z
docs/_ext/django_models.py
bhrutledge/jahhills.com
74fe94a214f1ed5681bd45159315f0b68daf5a33
[ "MIT" ]
1
2021-01-26T18:02:49.000Z
2021-01-26T18:02:49.000Z
# Auto-document Django models # Copied and adapted from https://djangosnippets.org/snippets/2533/ import inspect from django.utils.html import strip_tags from django.utils.encoding import force_text from django.db import models
31.705882
77
0.669759
ff67664ebb9e9ff9a5a17938e52f47a51c7667d5
75
py
Python
Hacker_Rank/Python: Division.py
Jai-kishan/Practice-Questions
cf3a3eb5c2e930fcfcb762d822430060bb5deb2d
[ "Apache-2.0" ]
1
2019-05-04T09:21:00.000Z
2019-05-04T09:21:00.000Z
Hacker_Rank/Python: Division.py
Jai-kishan/Practice-Questions
cf3a3eb5c2e930fcfcb762d822430060bb5deb2d
[ "Apache-2.0" ]
null
null
null
Hacker_Rank/Python: Division.py
Jai-kishan/Practice-Questions
cf3a3eb5c2e930fcfcb762d822430060bb5deb2d
[ "Apache-2.0" ]
null
null
null
a=int(input()) b=int(input()) print (a/b) a=float(a) b=float(b) print (a/b)
12.5
14
0.613333
ff687b565ac41fe08f64ade140dd3095099140f5
30,770
py
Python
math/tests/testcases.py
fuz-woo/gpython
06dadad26f41e35b57c144ffdac01fb3f23977e9
[ "BSD-3-Clause" ]
520
2018-08-21T19:28:23.000Z
2022-03-30T21:26:10.000Z
math/tests/testcases.py
fuz-woo/gpython
06dadad26f41e35b57c144ffdac01fb3f23977e9
[ "BSD-3-Clause" ]
165
2018-08-22T07:54:29.000Z
2022-03-31T20:34:21.000Z
math/tests/testcases.py
fuz-woo/gpython
06dadad26f41e35b57c144ffdac01fb3f23977e9
[ "BSD-3-Clause" ]
84
2018-08-27T03:29:09.000Z
2022-03-15T23:19:13.000Z
# Copyright 2018 The go-python Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Testcases for functions in math. # # Each line takes the form: # # <testid> <function> <input_value> -> <output_value> <flags> # # where: # # <testid> ...
43.034965
125
0.70819
ff6a1f66860f729064e1d9b6a13de4fb71f5b15a
3,535
py
Python
db_query/middleware/complex_bundles_parse.py
hbolzan/django-sql-to-rest
008f2d726fc7b758e45d24eb2e32ae605f194947
[ "BSD-2-Clause" ]
1
2019-03-06T19:46:18.000Z
2019-03-06T19:46:18.000Z
db_query/middleware/complex_bundles_parse.py
hbolzan/django-sql-to-rest
008f2d726fc7b758e45d24eb2e32ae605f194947
[ "BSD-2-Clause" ]
2
2020-06-05T19:41:06.000Z
2021-06-10T21:05:53.000Z
db_query/middleware/complex_bundles_parse.py
hbolzan/django-sql-to-rest
008f2d726fc7b758e45d24eb2e32ae605f194947
[ "BSD-2-Clause" ]
null
null
null
import requests import functools from django.shortcuts import get_object_or_404 from db_query.models import PersistentQuery def parse_bundle_action(raw_action): """ Parse action attributes such as caption:Recalcular;type:primary;action:reglass_cotacoes.recalcular;enabled-states:@view,pending """ ...
30.73913
99
0.657709
ff6d9a9eb43a919d390d165fa0fb6535151149e1
5,160
py
Python
template/template/scripts/launcher.py
chrismear/renios
8eed53054fb4361eecb09e3c0eb3e26fd76d0cf0
[ "CC-BY-3.0" ]
15
2015-02-01T12:31:41.000Z
2021-08-07T01:17:10.000Z
template/template/scripts/launcher.py
chrismear/renios
8eed53054fb4361eecb09e3c0eb3e26fd76d0cf0
[ "CC-BY-3.0" ]
null
null
null
template/template/scripts/launcher.py
chrismear/renios
8eed53054fb4361eecb09e3c0eb3e26fd76d0cf0
[ "CC-BY-3.0" ]
4
2015-01-23T00:00:14.000Z
2019-12-02T15:15:28.000Z
#!/usr/bin/env python #@PydevCodeAnalysisIgnore # Copyright 2004-2012 Tom Rothamel <pytom@bishoujo.us> # # 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 witho...
31.463415
101
0.673256
ff6fcc0a58ed321ca99604158b2cf643d6bc1d63
1,462
py
Python
do_aramco_sz.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
null
null
null
do_aramco_sz.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
null
null
null
do_aramco_sz.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
1
2022-02-11T23:22:41.000Z
2022-02-11T23:22:41.000Z
import os import numpy as np datafolder="/home/jliu447/lossycompression/aramco" ebs=[i*1e-4 for i in range(1,10)]+[i*1e-3 for i in range(1,10)]+[i*1e-2 for i in range(1,11)] cr=np.zeros((29,51),dtype=np.float32) psnr=np.zeros((29,51),dtype=np.float32) filelist=os.listdir(datafolder) filelist=[x for x in filelist if...
31.782609
93
0.55472