hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
b675c834f4af3a0b82b1bf6826fca2734b7ad156
652
py
Python
app/test.py
erics1996/D5-Video
cb07e211c821e805296f24d28c80ac6fb99bfd5d
[ "Apache-2.0" ]
1
2020-09-26T14:03:48.000Z
2020-09-26T14:03:48.000Z
app/test.py
erics1996/d5_video
cb07e211c821e805296f24d28c80ac6fb99bfd5d
[ "Apache-2.0" ]
null
null
null
app/test.py
erics1996/d5_video
cb07e211c821e805296f24d28c80ac6fb99bfd5d
[ "Apache-2.0" ]
null
null
null
import redis # 测试连接redis """ if __name__ == '__main__': conn = redis.Redis(host='127.0.0.1', port=6379) if conn: print('ok') else: print('error') """ # 测试session是否保存在redis中 """ if __name__ == '__main__': conn = redis.Redis(host='127.0.0.1', port=6379, password='foobared') print(conn...
27.166667
163
0.736196
0
0
0
0
0
0
0
0
657
0.971893
b677bba2bd9632d1c8e6d24dee8f3549fac2379b
14,928
py
Python
wrapper/utils.py
DaWeSearch/backend
809e575ed730fce55d0e89a2fbc2031ba116f5e0
[ "MIT" ]
1
2021-02-15T01:05:22.000Z
2021-02-15T01:05:22.000Z
wrapper/utils.py
DaWeSearch/backend
809e575ed730fce55d0e89a2fbc2031ba116f5e0
[ "MIT" ]
null
null
null
wrapper/utils.py
DaWeSearch/backend
809e575ed730fce55d0e89a2fbc2031ba116f5e0
[ "MIT" ]
null
null
null
"""Helper functions useful for all wrapper classes.""" import re from typing import Callable, Optional, Union from urllib.parse import quote_plus from requests import exceptions, Response from .output_format import OUTPUT_FORMAT def get(nest: Union[dict, list, str], *args, default=None): """Get a value in a nes...
37.507538
97
0.579448
0
0
0
0
0
0
0
0
8,701
0.582864
b678945fdf026302149df7f84d03e9bf19062c3e
8,982
py
Python
luciferml/supervised/utils/regression_params.py
rahuljaguste/LuciferML
8ee4449f08bd07da8736be285d8dd0fd99398c28
[ "MIT" ]
null
null
null
luciferml/supervised/utils/regression_params.py
rahuljaguste/LuciferML
8ee4449f08bd07da8736be285d8dd0fd99398c28
[ "MIT" ]
null
null
null
luciferml/supervised/utils/regression_params.py
rahuljaguste/LuciferML
8ee4449f08bd07da8736be285d8dd0fd99398c28
[ "MIT" ]
null
null
null
import numpy as np parameters_svr_1 = [ {'kernel': ['rbf'], 'gamma': [0.1, 0.5, 0.9, 1], 'C': np.logspace(-4, 4, 5)}, ] parameters_svr_2 = [ {'kernel': ['rbf'], 'gamma': [1e-4, 0.1, 0.3, 0.5, 0.7, 0.9, 1], 'C': np.logspace(-4, 4, 10)}, {'kernel': ['linear'], 'gamm...
29.257329
98
0.480517
0
0
0
0
0
0
0
0
2,596
0.289022
b678cfb0be769b12f1acf94c09d18da017d53bfe
757
py
Python
ex042.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
1
2022-01-24T02:01:32.000Z
2022-01-24T02:01:32.000Z
ex042.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
null
null
null
ex042.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
null
null
null
# Refaça o DESAFIO 35 dos triângulos, acrescentando o recurso de mostrar que tipo de triângulo será formado: # # – EQUILÁTERO: todos os lados iguais # # – ISÓSCELES: dois lados iguais, um diferente # # – ESCALENO: todos os lados diferentes side1 = int(input('Primeiro lado: ')) side2 = int(input('Segundo lado: ')) side...
31.541667
108
0.65786
0
0
0
0
0
0
0
0
430
0.555556
b6795fc3685731a886d5d284ea5740aaa1d445a0
1,179
py
Python
serverdensity/proxy/runserver.py
serverdensity/sd-proxy
3726b391e0e40258a3e58004568c9737898f4b01
[ "BSD-2-Clause-FreeBSD" ]
1
2016-08-12T17:49:23.000Z
2016-08-12T17:49:23.000Z
serverdensity/proxy/runserver.py
serverdensity/sd-proxy
3726b391e0e40258a3e58004568c9737898f4b01
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
serverdensity/proxy/runserver.py
serverdensity/sd-proxy
3726b391e0e40258a3e58004568c9737898f4b01
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""Main WSGI server runner for sd-proxy """ import os import logging from sys import argv, path, stderr, exit from gevent.wsgi import WSGIServer class VersionedWSGIServer(WSGIServer): def __init__(self, server_version, *args, **kwargs): self.base_env['SERVER_SOFTWARE'] = server_version super(Ver...
24.061224
79
0.679389
221
0.187447
0
0
0
0
0
0
178
0.150975
b679e07e4853c1ac8702e21a433f7100a58636c7
1,553
py
Python
dblp/python/citations.py
DocSeven/spark
a88330f554a4afc70696dac8d00bcf4d2f512acf
[ "Apache-2.0" ]
null
null
null
dblp/python/citations.py
DocSeven/spark
a88330f554a4afc70696dac8d00bcf4d2f512acf
[ "Apache-2.0" ]
null
null
null
dblp/python/citations.py
DocSeven/spark
a88330f554a4afc70696dac8d00bcf4d2f512acf
[ "Apache-2.0" ]
1
2019-11-06T11:29:31.000Z
2019-11-06T11:29:31.000Z
import citationsCommon def countByIdAndYear(rdd): docsplit = rdd.flatMap(lambda row: [('{}.{}'.format(ref, row[2]), 1) for ref in row[1]]) return docsplit.reduceByKey(lambda c, d: c + d) def joinIdYearAge(idYearCount, ddpairs): # idYear: id, year cited idYear = idYearCount.map(lambda row: ...
41.972973
86
0.666452
0
0
0
0
0
0
0
0
423
0.272376
b67a5113b21316f83812bfead9269a89744903e8
8,727
py
Python
src/ext/cstruct.py
X-EcutiOnner/fileobj
7e4120759450bbdd1eee4ec26c8a757a8af48093
[ "BSD-2-Clause" ]
17
2015-05-23T11:09:46.000Z
2021-12-10T14:28:01.000Z
src/ext/cstruct.py
X-EcutiOnner/fileobj
7e4120759450bbdd1eee4ec26c8a757a8af48093
[ "BSD-2-Clause" ]
3
2015-03-23T04:35:25.000Z
2017-09-15T07:12:15.000Z
src/ext/cstruct.py
X-EcutiOnner/fileobj
7e4120759450bbdd1eee4ec26c8a757a8af48093
[ "BSD-2-Clause" ]
2
2016-01-07T00:38:13.000Z
2020-12-02T08:27:28.000Z
# Copyright (c) 2009, Tomohiro Kusumi # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and...
31.619565
81
0.569153
3,512
0.402429
874
0.100149
0
0
0
0
2,278
0.261029
b67b288e83765b98929b985fef59c826ad896b2c
1,532
py
Python
usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py
ststuck/usaspending-api
b13bd5bcba0369ff8512f61a34745626c3969391
[ "CC0-1.0" ]
217
2016-11-03T17:09:53.000Z
2022-03-10T04:17:54.000Z
usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py
Hk92a/usaspending-api
25daa9dbc30835b8f4b4c797c592ba9ecc78ca00
[ "CC0-1.0" ]
622
2016-09-02T19:18:23.000Z
2022-03-29T17:11:01.000Z
usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py
Hk92a/usaspending-api
25daa9dbc30835b8f4b4c797c592ba9ecc78ca00
[ "CC0-1.0" ]
93
2016-09-07T20:28:57.000Z
2022-02-25T00:25:27.000Z
# Generated by Django 2.2.19 on 2021-03-11 18:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("references", "0051_auto_20210223_1404"), ("submissions", "0015_submissionattributes_history"), ] operation...
34.044444
109
0.553525
1,405
0.917102
0
0
0
0
0
0
1,050
0.685379
b67bd574fe892b817e3e205848dedd222bd9824b
1,493
py
Python
agent/nets/GraphConvNet.py
JosepLeder/RL-Graph-Matching
5ea6b3beaf2a2f8d3739f64e7172a566d59d5468
[ "MIT" ]
null
null
null
agent/nets/GraphConvNet.py
JosepLeder/RL-Graph-Matching
5ea6b3beaf2a2f8d3739f64e7172a566d59d5468
[ "MIT" ]
null
null
null
agent/nets/GraphConvNet.py
JosepLeder/RL-Graph-Matching
5ea6b3beaf2a2f8d3739f64e7172a566d59d5468
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch_scatter import scatter_mean from torch.nn import Linear, ReLU from torch_geometric.nn import GraphConv class GraphConvNet(nn.Module): def __init__(self, n_feat, n_hid, n_out): super(GraphConvNet).__init__() self.conv1 =...
28.169811
100
0.636303
1,302
0.87207
0
0
0
0
0
0
0
0
b67d5f4f80272dd118a8a67e39a34490d5c2cb23
392
py
Python
user/migrations/0002_auto_20171228_1322.py
MirzaBaig715/learn-online
1f2e5a48e383d632933b1eca98f7a2a88a92b2db
[ "MIT" ]
null
null
null
user/migrations/0002_auto_20171228_1322.py
MirzaBaig715/learn-online
1f2e5a48e383d632933b1eca98f7a2a88a92b2db
[ "MIT" ]
null
null
null
user/migrations/0002_auto_20171228_1322.py
MirzaBaig715/learn-online
1f2e5a48e383d632933b1eca98f7a2a88a92b2db
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2017-12-28 13:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0001_initial'), ] operations = [ migrations.AlterField( model_name='tutor', name='salary', field=m...
20.631579
73
0.591837
301
0.767857
0
0
0
0
0
0
80
0.204082
b67e4db8f00b585b7a13ade5c1abf4013518f113
7,437
py
Python
skoleintra/__init__.py
jona799t/skoleintra-api
b6a73aa50b53415aba7aa2249c45771b931992a9
[ "Apache-2.0" ]
null
null
null
skoleintra/__init__.py
jona799t/skoleintra-api
b6a73aa50b53415aba7aa2249c45771b931992a9
[ "Apache-2.0" ]
null
null
null
skoleintra/__init__.py
jona799t/skoleintra-api
b6a73aa50b53415aba7aa2249c45771b931992a9
[ "Apache-2.0" ]
null
null
null
import json import httpx import requests import urllib import ssl from urllib3 import poolmanager from bs4 import BeautifulSoup from unilogin import Unilogin class TLSAdapter(requests.adapters.HTTPAdapter): #https://stackoverflow.com/questions/61631955/python-requests-ssl-error-during-requests def init_poolmanager...
67.609091
450
0.671238
7,276
0.978351
0
0
0
0
1,395
0.187576
4,088
0.549684
b67e8c2b0c5ddd808117b7d17c7cf6d08076154f
1,433
py
Python
commands/leaderboad.py
classAndrew/valor
b68a72b76c111e22d8df8d56a2923185f057fc2a
[ "MIT" ]
null
null
null
commands/leaderboad.py
classAndrew/valor
b68a72b76c111e22d8df8d56a2923185f057fc2a
[ "MIT" ]
null
null
null
commands/leaderboad.py
classAndrew/valor
b68a72b76c111e22d8df8d56a2923185f057fc2a
[ "MIT" ]
1
2021-11-28T00:45:25.000Z
2021-11-28T00:45:25.000Z
from valor import Valor from discord.ext.commands import Context from util import ErrorEmbed, LongTextEmbed, LongFieldEmbed, guild_name_from_tag import random from datetime import datetime import requests from sql import ValorSQL from commands.common import get_uuid, from_uuid async def _register_leaderboard(valor: Va...
37.710526
227
0.667132
0
0
0
0
1,038
0.724355
1,139
0.794836
289
0.201675
b67fafcf42495a4fa6560d767936e8f9b6d7796e
1,057
py
Python
tests/test_simhash.py
Marcnuth/deduplication
c407cb11e5dd7f13360639dbd55efb4ffc2bd80c
[ "Apache-2.0" ]
10
2019-08-21T01:42:44.000Z
2021-12-24T02:18:04.000Z
tests/test_simhash.py
Marcnuth/deduplication
c407cb11e5dd7f13360639dbd55efb4ffc2bd80c
[ "Apache-2.0" ]
null
null
null
tests/test_simhash.py
Marcnuth/deduplication
c407cb11e5dd7f13360639dbd55efb4ffc2bd80c
[ "Apache-2.0" ]
4
2020-02-10T08:58:20.000Z
2021-07-08T14:08:32.000Z
from deduplication import simhash, lsimhash from pathlib import Path from scipy.spatial.distance import hamming import numpy as np import textwrap def test_main(): with open(Path(__file__).resolve().parent / 'data' / 'wiki_nlp.txt', 'r') as f: content = f.read() hval = lsimhash.lsimhash(content) ...
48.045455
369
0.756859
0
0
0
0
0
0
0
0
652
0.61684
b67fc419ca923c33d18cdee4e07420f2516e020f
164
py
Python
metric.py
Nozdi/kaggle-bike-share-demand
715b61ff3560c65f1581bda7cc5baec9cf5e76dd
[ "MIT" ]
null
null
null
metric.py
Nozdi/kaggle-bike-share-demand
715b61ff3560c65f1581bda7cc5baec9cf5e76dd
[ "MIT" ]
null
null
null
metric.py
Nozdi/kaggle-bike-share-demand
715b61ff3560c65f1581bda7cc5baec9cf5e76dd
[ "MIT" ]
null
null
null
import numpy as np def rmsle(y_pred, y_true): assert len(y_pred) == len(y_true) return np.sqrt(np.mean(np.power(np.log1p(y_pred) - np.log1p(y_true), 2)))
23.428571
77
0.676829
0
0
0
0
0
0
0
0
0
0
b6803575349013e6f95b7ac55200cff1e47ba73f
11,581
py
Python
generator.py
nilankamanoj/spring-rsc-generator
8e6c303751571e84ca029f2576d3f2cc92ea7ed7
[ "Apache-2.0" ]
1
2020-04-23T12:38:07.000Z
2020-04-23T12:38:07.000Z
generator.py
nilankamanoj/spring-rsc-generator
8e6c303751571e84ca029f2576d3f2cc92ea7ed7
[ "Apache-2.0" ]
null
null
null
generator.py
nilankamanoj/spring-rsc-generator
8e6c303751571e84ca029f2576d3f2cc92ea7ed7
[ "Apache-2.0" ]
null
null
null
from os import listdir, makedirs from os.path import isfile, join, exists from __main__ import * print '\033[32m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\033[0m\n' print '\033[94m'+'||===== '+'\033[92m' + ' ====== '+'\033[93m'+' =====' print '\033[94m'+'|| \\\\ '+...
52.881279
1,231
0.571194
0
0
0
0
0
0
0
0
6,549
0.565495
b680c50a7b7c89ff2e3642335168615352eb2ef1
1,132
py
Python
twitter_clone/users/models/profile.py
ag94e/Twitter_clone
037ab41b79e7c236a85bb0e9c0e892dfa3ba407a
[ "MIT" ]
null
null
null
twitter_clone/users/models/profile.py
ag94e/Twitter_clone
037ab41b79e7c236a85bb0e9c0e892dfa3ba407a
[ "MIT" ]
null
null
null
twitter_clone/users/models/profile.py
ag94e/Twitter_clone
037ab41b79e7c236a85bb0e9c0e892dfa3ba407a
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from django.core.validators import RegexValidator class Profile(models.Model): """ Profile model. A proxy model that extends the data with data with extra information. """ user = models.OneToOneField(User, on_delete=models.CAS...
33.294118
102
0.678445
1,008
0.890459
0
0
0
0
0
0
243
0.214664
b6810fce8cb140c6eacc9841d12f9fa404ed0bac
3,388
py
Python
game/alfa_beta.py
YuseqYaseq/gry-kombinatoryczne
15e5d857cdbc6ec447c0028a90c4354ba25fc553
[ "MIT" ]
2
2020-04-26T16:57:37.000Z
2020-04-26T16:57:40.000Z
game/alfa_beta.py
YuseqYaseq/gry-kombinatoryczne
15e5d857cdbc6ec447c0028a90c4354ba25fc553
[ "MIT" ]
null
null
null
game/alfa_beta.py
YuseqYaseq/gry-kombinatoryczne
15e5d857cdbc6ec447c0028a90c4354ba25fc553
[ "MIT" ]
null
null
null
from game.sequence import Sequence max_value = 999888777666555 class AlfaBeta: def __init__(self, values, state, k, player, enemy, max_deepth = None): self.values = values self.state = state self.k = k self.player = player self.enemy = enemy if max_deepth is None:...
30.8
88
0.563164
3,322
0.980519
0
0
0
0
0
0
11
0.003247
b68116a66a4de7ee10965623e6d1922379799cea
4,620
py
Python
app.py
j33mk/randomnews
705ecde11f8097a8348a9abae384bd09031cb2ca
[ "Apache-2.0" ]
null
null
null
app.py
j33mk/randomnews
705ecde11f8097a8348a9abae384bd09031cb2ca
[ "Apache-2.0" ]
null
null
null
app.py
j33mk/randomnews
705ecde11f8097a8348a9abae384bd09031cb2ca
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------# # Imports #----------------------------------------------------------------------------# from flask import Flask, render_template, request,jsonify import random # from flask.ext.sqlalchemy import SQLAlchemy import logging from logging impor...
32.083333
88
0.5671
0
0
0
0
2,519
0.545238
0
0
2,929
0.633983
b6833905716414b7fc7d6f77dff5aa4d0c6d4d14
9,836
py
Python
scripts/dfuse-pack.py
qiuchengxuan/rs-flight
66a09afe4e24f8b49c6445f9048172e46e6a0f03
[ "MIT" ]
1
2020-09-01T08:49:24.000Z
2020-09-01T08:49:24.000Z
scripts/dfuse-pack.py
qiuchengxuan/rs-flight
66a09afe4e24f8b49c6445f9048172e46e6a0f03
[ "MIT" ]
null
null
null
scripts/dfuse-pack.py
qiuchengxuan/rs-flight
66a09afe4e24f8b49c6445f9048172e46e6a0f03
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Written by Antonio Galea - 2010/11/18 # Distributed under Gnu LGPL 3.0 # see http://www.gnu.org/licenses/lgpl-3.0.txt import binascii import os import struct import sys import zlib from optparse import OptionParser try: from intelhex import IntelHex except ImportError: IntelHex = Non...
35.25448
122
0.51281
0
0
0
0
0
0
0
0
2,470
0.251118
b6854c3fe8824d72793c01c59fac84170b474e24
636
py
Python
setup.py
bmsimang/Analyse_Function_Predict_Group2
2f4ee80860ff781493e78cff693d18dd049fdd35
[ "MIT" ]
null
null
null
setup.py
bmsimang/Analyse_Function_Predict_Group2
2f4ee80860ff781493e78cff693d18dd049fdd35
[ "MIT" ]
null
null
null
setup.py
bmsimang/Analyse_Function_Predict_Group2
2f4ee80860ff781493e78cff693d18dd049fdd35
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='predict_functions_package', version='0.1', packages=find_packages(exclude=['tests*']), license='MIT', description='A list of python Data Analysis Functions', long_description=open('README.md').read(), install_requires=['numpy', 'panda...
45.428571
144
0.745283
0
0
0
0
0
0
0
0
382
0.600629
b6857c3a9f8eac380eda21da26fac71984173300
12,313
py
Python
AI.py
alexrockhill/chess
63d6691912c14ff4c2b0bf4ad9e73a17edec2f70
[ "MIT" ]
null
null
null
AI.py
alexrockhill/chess
63d6691912c14ff4c2b0bf4ad9e73a17edec2f70
[ "MIT" ]
null
null
null
AI.py
alexrockhill/chess
63d6691912c14ff4c2b0bf4ad9e73a17edec2f70
[ "MIT" ]
null
null
null
import numpy as np import os import os.path as op import matplotlib.pyplot as plt import pickle from tqdm import tqdm from Board import Board from func import opposite_color, loc2int, int2color, is_last_rank LETTERS = [chr(i) for i in range(65, 65+26)] BOARD_DIM = 8 N_PIECES = 6 MAX_MOVES = 100 def logistic(x): ret...
34.013812
103
0.70925
11,647
0.945911
0
0
0
0
0
0
844
0.068545
b686d0afc43a520dbac2ae42822b469d33f9f3d0
4,901
py
Python
python/caffe/custom_layers/adaptive_weighting_loss_layer.py
asmorkalov/training_toolbox_caffe
08716d344da7d78cb7ede4646467c15e86852ae7
[ "Apache-2.0" ]
null
null
null
python/caffe/custom_layers/adaptive_weighting_loss_layer.py
asmorkalov/training_toolbox_caffe
08716d344da7d78cb7ede4646467c15e86852ae7
[ "Apache-2.0" ]
null
null
null
python/caffe/custom_layers/adaptive_weighting_loss_layer.py
asmorkalov/training_toolbox_caffe
08716d344da7d78cb7ede4646467c15e86852ae7
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2018 Intel Corporation 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 writin...
34.758865
106
0.598653
4,201
0.857172
0
0
0
0
0
0
1,584
0.323199
b6871d09585056a5b2254aec8a95efcb0fbeee1d
1,843
py
Python
src/cgr_gwas_qc/cluster_profiles/biowulf/status.py
Monia234/NCI-GwasQc
9e3ca52085c891e1d4d7972e5337c4a1888f992c
[ "MIT" ]
null
null
null
src/cgr_gwas_qc/cluster_profiles/biowulf/status.py
Monia234/NCI-GwasQc
9e3ca52085c891e1d4d7972e5337c4a1888f992c
[ "MIT" ]
43
2021-03-02T04:10:01.000Z
2022-03-16T20:26:55.000Z
src/cgr_gwas_qc/cluster_profiles/biowulf/status.py
Monia234/NCI-GwasQc
9e3ca52085c891e1d4d7972e5337c4a1888f992c
[ "MIT" ]
2
2021-03-02T12:27:00.000Z
2021-12-16T03:22:20.000Z
#!/usr/bin/env python3 import logging import re import shlex import subprocess as sp import sys import time from typing import Optional logger = logging.getLogger("__name__") logger.setLevel(40) MAX_STATUS_ATTEMPTS = 20 STATUS_CODES = { "BOOT_FAIL": "failed", "CANCELLED": "failed", "COMPLETED": "success"...
24.573333
98
0.62344
0
0
0
0
0
0
0
0
475
0.257732
b6871d4c00e4a99100a8cb85bdaed1478a3f212b
1,058
py
Python
minecraft/networking/packets/serverbound/play/held_item_change_packet.py
LoipesMas/pyCraft
244fbb803ca7a2752cb4ed2b88b4791241379378
[ "Apache-2.0" ]
null
null
null
minecraft/networking/packets/serverbound/play/held_item_change_packet.py
LoipesMas/pyCraft
244fbb803ca7a2752cb4ed2b88b4791241379378
[ "Apache-2.0" ]
null
null
null
minecraft/networking/packets/serverbound/play/held_item_change_packet.py
LoipesMas/pyCraft
244fbb803ca7a2752cb4ed2b88b4791241379378
[ "Apache-2.0" ]
null
null
null
from minecraft.networking.packets import Packet from minecraft.networking.types import ( Short, BitFieldEnum ) class HeldItemChangePacket(Packet, BitFieldEnum): @staticmethod def get_id(context): return 0x25 if context.protocol_version >= 738 else \ 0x24 if context.protocol_version >=...
35.266667
61
0.638941
939
0.887524
0
0
763
0.721172
0
0
24
0.022684
b687fc10ba01cb9f0419af4e607ce6c85279c90f
49,769
py
Python
editor.py
azagoruyko/rigBuilder
bd744704d3fee1ab7cd85a08c735e6bf044fd27e
[ "Apache-2.0" ]
2
2022-03-20T03:13:24.000Z
2022-03-20T03:14:11.000Z
editor.py
azagoruyko/rigBuilder
bd744704d3fee1ab7cd85a08c735e6bf044fd27e
[ "Apache-2.0" ]
null
null
null
editor.py
azagoruyko/rigBuilder
bd744704d3fee1ab7cd85a08c735e6bf044fd27e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from Qt.QtGui import * from Qt.QtCore import * from Qt.QtWidgets import * import re def clamp(mn, mx, val): if val < mn: return mn elif val > mx: return mx else: return val def highlightLine(widget, line=-1, clear=False): if line == -1: block =...
34.489951
169
0.578553
45,976
0.923751
0
0
0
0
0
0
3,188
0.064053
b68866458224b910c1e4822374a14bdc98c7fe27
5,523
py
Python
research/Issue2/purifier/text_extractor.py
johnklee/ff_crawler
53b056bd94ccf55388d12c7f70460d280964f45f
[ "MIT" ]
null
null
null
research/Issue2/purifier/text_extractor.py
johnklee/ff_crawler
53b056bd94ccf55388d12c7f70460d280964f45f
[ "MIT" ]
4
2021-04-09T02:05:42.000Z
2021-07-04T07:42:15.000Z
research/Issue2/purifier/text_extractor.py
johnklee/ff_crawler
53b056bd94ccf55388d12c7f70460d280964f45f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys import importlib import os import inspect from importlib import util as importlib_util from .logb import getLogger # from .pdf2text import simple_fact as pdf_sfact from .html2text import simple_fact as html_sfact from .plain2text import simple_fact as pln_sfact ##########################...
43.833333
162
0.570704
4,954
0.896976
0
0
0
0
0
0
1,749
0.316676
b68b69b099d27f3f50d04d0c00314efb72f42971
21,664
py
Python
tests/util.py
wayneweiqiang/GaMMA
8dcc94088e462d386e10fa7c9a2be06d646ba825
[ "MIT" ]
9
2021-11-15T10:13:05.000Z
2022-03-03T13:41:46.000Z
tests/util.py
wayneweiqiang/GaMMA
8dcc94088e462d386e10fa7c9a2be06d646ba825
[ "MIT" ]
null
null
null
tests/util.py
wayneweiqiang/GaMMA
8dcc94088e462d386e10fa7c9a2be06d646ba825
[ "MIT" ]
1
2021-11-25T05:33:11.000Z
2021-11-25T05:33:11.000Z
import os from datetime import datetime import matplotlib.pyplot as plt import numpy as np import pandas as pd import torch from tqdm import tqdm from collections import defaultdict # import fire timestamp = lambda dt: (dt - datetime(2019, 1, 1)).total_seconds() ## ridgecrest class Config: degree2km = np.pi * ...
34.332805
175
0.565962
120
0.005539
0
0
0
0
0
0
4,703
0.217088
b68be82acadc9943f2cd593b3e2f054401e95af1
2,013
py
Python
joystick.py
sergio-py2/meteor
4146259c19ed58931fc3514174a0147770500793
[ "MIT" ]
null
null
null
joystick.py
sergio-py2/meteor
4146259c19ed58931fc3514174a0147770500793
[ "MIT" ]
null
null
null
joystick.py
sergio-py2/meteor
4146259c19ed58931fc3514174a0147770500793
[ "MIT" ]
null
null
null
#!python -u import sys import pyglet import pyglet.gl as gl import pyglet.window.mouse as mouse import pyglet.window.key as key import pyglet.input #import pyglet.media import random import math #print pyglet.version show = "" # Set up window full = False if full: window = pyglet.window.Window(fullscreen=Tru...
18.135135
64
0.597119
0
0
0
0
141
0.070045
0
0
402
0.199702
b68c139c4d416b8f2d10a173958a63102486e538
133
py
Python
coupons/urls.py
ihfazhillah/myshop-django
ccfc079da073f2872a3aac0f632f581025bb4c2c
[ "MIT" ]
null
null
null
coupons/urls.py
ihfazhillah/myshop-django
ccfc079da073f2872a3aac0f632f581025bb4c2c
[ "MIT" ]
9
2020-06-05T19:01:16.000Z
2022-03-11T23:29:05.000Z
coupons/urls.py
ihfazhillah/myshop-django
ccfc079da073f2872a3aac0f632f581025bb4c2c
[ "MIT" ]
null
null
null
from django.conf.urls import url from .views import coupon_apply urlpatterns = [ url('^apply/$', coupon_apply, name='apply') ]
16.625
47
0.706767
0
0
0
0
0
0
0
0
17
0.12782
b68c42c88331b8f4284ebd3949497dbb9ed4959f
869
py
Python
datasetinsights/constants.py
86sanj/datasetinsights
8b34c434fc841ccb20f3ad06985f82dfe3829d02
[ "Apache-2.0" ]
null
null
null
datasetinsights/constants.py
86sanj/datasetinsights
8b34c434fc841ccb20f3ad06985f82dfe3829d02
[ "Apache-2.0" ]
null
null
null
datasetinsights/constants.py
86sanj/datasetinsights
8b34c434fc841ccb20f3ad06985f82dfe3829d02
[ "Apache-2.0" ]
null
null
null
import os from datetime import datetime TIMESTAMP_SUFFIX = datetime.now().strftime("%Y%m%d-%H%M%S") PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__)) GCS_BASE_STR = "gs://" HTTP_URL_BASE_STR = "http://" HTTPS_URL_BASE_STR = "https://" LOCAL_FILE_BASE_STR = "file://" NULL_STRING = "None" DEFAULT_DATA_ROOT = ...
27.15625
59
0.734177
0
0
0
0
0
0
0
0
419
0.482163
b68c8ddc9fcd55d3cc2b24d17d5af2efe3ae5c5d
559
py
Python
decaylanguage/__init__.py
ch2ohch2oh/decaylanguage
7cb01e787ea9d193b87ae0978f2dfb4e469a1276
[ "BSD-3-Clause" ]
null
null
null
decaylanguage/__init__.py
ch2ohch2oh/decaylanguage
7cb01e787ea9d193b87ae0978f2dfb4e469a1276
[ "BSD-3-Clause" ]
null
null
null
decaylanguage/__init__.py
ch2ohch2oh/decaylanguage
7cb01e787ea9d193b87ae0978f2dfb4e469a1276
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018-2019, Eduardo Rodrigues and Henry Schreiner. # # Distributed under the 3-clause BSD license, see accompanying file LICENSE # or https://github.com/scikit-hep/decaylanguage for details. # Convenient access to the version number from ._version import __version__ # Direct access to decay file parsi...
31.055556
75
0.805009
0
0
0
0
0
0
0
0
389
0.695886
b68d1dbf0c5ca4f1cf1c2b340f13d2c57fe8602c
7,829
py
Python
server.py
danielemoro/PeepsFinder
423e95526900aa6c932306a9670c06e41189e27b
[ "Apache-2.0" ]
2
2019-07-17T22:04:25.000Z
2021-03-03T17:41:07.000Z
server.py
danielemoro/PeepsFinder
423e95526900aa6c932306a9670c06e41189e27b
[ "Apache-2.0" ]
19
2019-12-26T17:23:33.000Z
2022-03-21T22:19:06.000Z
server.py
danielemoro/PeepsFinder
423e95526900aa6c932306a9670c06e41189e27b
[ "Apache-2.0" ]
null
null
null
# IMPORTANT: Change these file paths to be in the same repository as the webs server running Peeps. # You can find the Peeps web server repository here: https://github.com/danielemoro/peeps/tree/peeps_finder input_file = "D:/Google Drive/BSU/BSU 2018 Fall/CS401/website/peeps_finder_in.txt" output_file = "D:/Google Driv...
36.584112
120
0.609401
0
0
0
0
0
0
0
0
2,100
0.268233
b68d3ffb40a4006bf5b8a5543641f9a3020929bc
6,497
py
Python
python/oak/vio_record.py
SpectacularAI/sdk-examples
70840f7a68d9536ce473c4d20e224ecfa90284ce
[ "Apache-2.0" ]
18
2021-11-02T09:32:11.000Z
2022-03-29T17:04:32.000Z
python/oak/vio_record.py
SpectacularAI/sdk-examples
70840f7a68d9536ce473c4d20e224ecfa90284ce
[ "Apache-2.0" ]
4
2021-11-02T05:19:11.000Z
2022-03-28T08:53:27.000Z
python/oak/vio_record.py
SpectacularAI/sdk-examples
70840f7a68d9536ce473c4d20e224ecfa90284ce
[ "Apache-2.0" ]
2
2022-02-25T14:28:45.000Z
2022-03-05T14:14:55.000Z
""" Record data for later playback Requirements: ffmpeg must be installed. On Linux you can install it with package manager of your choise. For example with ap-get: sudo apt-get install ffmpeg yuM: sudo yum install ffmpeg On Windows, you must download and install it from https://w...
36.094444
126
0.687548
0
0
0
0
0
0
0
0
2,052
0.315838
b68d55a4f44625a425237c2968f33e5ce96a8a38
345
py
Python
ex033.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
ex033.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
ex033.py
Jordemar-D-Bousquet/Exercicios_Python
705d4c83720db033841f01aa843e4dbab08f1423
[ "MIT" ]
null
null
null
# Faça um programa que leia três números e mostre qual é o maior e qual é o menor. n1 = int(input('Digite o primeiro valor: ')) n2 = int(input('Digite o segundo valor: ')) n3 = int(input('Digite o terceiro valor: ')) nt= [n1,n2,n3] print('O maior número digitado foi {}'.format(max(nt))) print('O menor número digitado...
38.333333
82
0.686957
0
0
0
0
0
0
0
0
233
0.661932
b68e1a9a9505bdaff392741746a2cc8527c4f6b6
311
py
Python
src/fileIOTest.py
justinsmits/dlm
39281701f4512cfc34dede0141d83b7cd8e247f4
[ "MIT" ]
null
null
null
src/fileIOTest.py
justinsmits/dlm
39281701f4512cfc34dede0141d83b7cd8e247f4
[ "MIT" ]
null
null
null
src/fileIOTest.py
justinsmits/dlm
39281701f4512cfc34dede0141d83b7cd8e247f4
[ "MIT" ]
null
null
null
import os def fileTest(): dir_path = os.path.dirname(os.path.realpath(__file__)) print(dir_path) data_path = os.path.join(dir_path, '../FileTest/data.txt') print(data_path) file = open(data_path, 'r') for line in file: print(line) if __name__ == '__main__': fileTest()
20.733333
62
0.633441
0
0
0
0
0
0
0
0
35
0.11254
b6908e28349ce2d7d9f38b20eac30f1523c0d324
501
py
Python
OSGI/predictive-python/python model/test.py
davinder2385/iot-edge-samples
e6667947440f3eb0781ab4fe22281f4c1d79f376
[ "Apache-2.0" ]
7
2019-12-03T10:05:31.000Z
2021-01-21T19:05:55.000Z
OSGI/predictive-python/python model/test.py
davinder2385/iot-edge-samples
e6667947440f3eb0781ab4fe22281f4c1d79f376
[ "Apache-2.0" ]
8
2020-01-08T08:03:21.000Z
2020-09-04T18:25:56.000Z
OSGI/predictive-python/python model/test.py
davinder2385/iot-edge-samples
e6667947440f3eb0781ab4fe22281f4c1d79f376
[ "Apache-2.0" ]
11
2021-06-16T15:48:33.000Z
2022-02-13T13:05:52.000Z
import json import os.path import time # Third-party libraries import zmq context = zmq.Context() socket = context.socket(zmq.REQ) socket.connect("tcp://localhost:5555") socket.send(b"hello") message = socket.recv() print(message) while True: # Wait for next request from client jsonStr = '{"measures":{"R"...
20.875
59
0.666667
0
0
0
0
0
0
0
0
180
0.359281
b692e177fac102ebbcfa5f07692d3af8e28cb595
2,172
py
Python
source/group.py
AaronDavidSchneider/CyclingDinner
40521e7ffe4d11b91cca59733f3768ebf456b1af
[ "MIT" ]
null
null
null
source/group.py
AaronDavidSchneider/CyclingDinner
40521e7ffe4d11b91cca59733f3768ebf456b1af
[ "MIT" ]
null
null
null
source/group.py
AaronDavidSchneider/CyclingDinner
40521e7ffe4d11b91cca59733f3768ebf456b1af
[ "MIT" ]
null
null
null
from source.couple import couple import numpy as np import requests import json import source.config as c import googlemaps from geopy.distance import geodesic import itertools gd = {"H":1,"V":0, "N":2} gd_inv = {1:"H",0:"V", 2:"N"} # CONVERT TIMES TO POSIX TIME from datetime import timezone, datetime, timedelta dinne...
34.47619
160
0.587017
1,606
0.739411
0
0
0
0
0
0
228
0.104972
b69435cd91d1a650c1244efbc456a6f87305ba23
8,616
py
Python
text_importer/importers/olive/parsers.py
aflueckiger/impresso-text-acquisition
ed8f0586ed6a4f7de94b1504b292570bce1f51c5
[ "MIT" ]
null
null
null
text_importer/importers/olive/parsers.py
aflueckiger/impresso-text-acquisition
ed8f0586ed6a4f7de94b1504b292570bce1f51c5
[ "MIT" ]
null
null
null
text_importer/importers/olive/parsers.py
aflueckiger/impresso-text-acquisition
ed8f0586ed6a4f7de94b1504b292570bce1f51c5
[ "MIT" ]
null
null
null
"""Functions to parse Olive XML data.""" import codecs import copy import re from typing import List, Optional from bs4 import BeautifulSoup from impresso_commons.path.path_fs import canonical_path, IssueDir from text_importer.importers.olive.helpers import (normalize_language, ...
31.217391
102
0.515901
0
0
0
0
0
0
0
0
3,202
0.371634
b694c70150e53ff40a0cf24561577bb8a2d5de91
1,720
py
Python
addBinary.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
2
2019-05-16T03:11:44.000Z
2019-10-25T03:20:05.000Z
addBinary.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
null
null
null
addBinary.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
null
null
null
class Solution: def addBinary(self, a, b): result_reversed = "" m, n = len(a), len(b) if m > n: a, b = b, a m, n = n, m diff = n - m flag = False for i in range(m - 1, -1, -1): if a[i] == "1" and b[diff + i] == "1": ...
29.152542
61
0.348256
1,617
0.940116
0
0
0
0
0
0
129
0.075
b69613a7512da774d1b23dd4f974de878107a0bc
550
py
Python
comsetformat.py
paqs2020/paqs2020
28377f3e0aa3d3dd2885baf2b339ae3228c68192
[ "MIT" ]
1
2021-07-29T10:47:52.000Z
2021-07-29T10:47:52.000Z
comsetformat.py
paqs2020/paqs2020
28377f3e0aa3d3dd2885baf2b339ae3228c68192
[ "MIT" ]
1
2021-07-29T11:04:47.000Z
2021-07-29T11:04:47.000Z
comsetformat.py
paqs2020/paqs2020
28377f3e0aa3d3dd2885baf2b339ae3228c68192
[ "MIT" ]
2
2021-05-06T18:33:01.000Z
2021-08-01T10:21:46.000Z
import pickle databox = "/nfs/projects/paqs/qadatasetAstudy" source = pickle.load(open(databox + "/val.pkl","rb")) questions = databox + "/output/ques.val" answers = databox + "/output/ans.val" fqes = open(questions, 'w') fans = open(answers, 'w') for fid, value in source.items(): for sid, sentence in value.ite...
25
73
0.587273
0
0
0
0
0
0
0
0
141
0.256364
b69653e1f2c2a35c5240a6afe449e5f0e3532b91
1,598
py
Python
scripts/download_external.py
Wujingli/OpenWebGlobeDataProcessing
932eaa00c81fc0571122bc618ade010fa255735e
[ "MIT" ]
null
null
null
scripts/download_external.py
Wujingli/OpenWebGlobeDataProcessing
932eaa00c81fc0571122bc618ade010fa255735e
[ "MIT" ]
null
null
null
scripts/download_external.py
Wujingli/OpenWebGlobeDataProcessing
932eaa00c81fc0571122bc618ade010fa255735e
[ "MIT" ]
2
2019-06-08T15:59:26.000Z
2021-02-06T08:13:01.000Z
#!/usr/bin/python import urllib2 import sys import os import os.path import tarfile #------------------------------------------------------------------------------- # OS specific setupls if sys.platform == 'win32': print "Windows detected..." dest = "dataprocessing_external_win32.tar.gz" elif sys.platform == '...
28.035088
87
0.518773
0
0
0
0
0
0
0
0
973
0.608886
b697b0465a2f226e6e6c630a304d08f2c89fe273
194
py
Python
apps/verifications/urls.py
Jiafauser/News_blog
a3fec19c5e58c50c40268144e2f52820b24cc5d6
[ "Unlicense" ]
null
null
null
apps/verifications/urls.py
Jiafauser/News_blog
a3fec19c5e58c50c40268144e2f52820b24cc5d6
[ "Unlicense" ]
null
null
null
apps/verifications/urls.py
Jiafauser/News_blog
a3fec19c5e58c50c40268144e2f52820b24cc5d6
[ "Unlicense" ]
null
null
null
from django.urls import path from . import views app_name = 'verifications' urlpatterns = [ path('image_codes/<uuid:image_code_id>/', views.ImageCode.as_view(), name='image_codes'), ]
27.714286
94
0.716495
0
0
0
0
0
0
0
0
63
0.324742
b697d352270f4d5af09a28c0d438435fc0bb409c
15,849
py
Python
app.py
ruianfrp/Yolov3
8449b37e0ee5bffeacea555036ca52e3b4ae1531
[ "MIT" ]
2
2020-04-04T08:53:25.000Z
2020-06-14T09:13:39.000Z
app.py
ruianfrp/Yolov3
8449b37e0ee5bffeacea555036ca52e3b4ae1531
[ "MIT" ]
null
null
null
app.py
ruianfrp/Yolov3
8449b37e0ee5bffeacea555036ca52e3b4ae1531
[ "MIT" ]
null
null
null
import keras from PIL import Image from flask import Flask, request, jsonify from flask_cors import CORS from itsdangerous import Serializer from concurrent.futures import ThreadPoolExecutor from flask_apscheduler import APScheduler import token_authorization import AesCipher import mysql import functools from yolo ...
34.37961
109
0.546659
355
0.020338
0
0
15,249
0.873618
0
0
4,881
0.279633
b6980fb0608d22d689e43b123d9af449a3000f0b
1,350
py
Python
1d_unconstrained_optimization/golden_section_algorithm.py
almostdutch/numerical-optimization-algorithms
cd6c1306cb04eccce62a74420323bda83058c1d6
[ "MIT" ]
null
null
null
1d_unconstrained_optimization/golden_section_algorithm.py
almostdutch/numerical-optimization-algorithms
cd6c1306cb04eccce62a74420323bda83058c1d6
[ "MIT" ]
1
2021-06-02T10:07:26.000Z
2021-06-03T10:23:46.000Z
1d_unconstrained_optimization/golden_section_algorithm.py
almostdutch/numerical-optimization-algorithms
cd6c1306cb04eccce62a74420323bda83058c1d6
[ "MIT" ]
null
null
null
""" golden_section_algorithm.py Returns the reduced uncertainty interval containing the minimizer of the function func - anonimous function interval0 - initial uncertainty interval N_iter - number of iterations """ import math import numpy as np def golden_section_algorithm_calc_N_iter(interval0, uncertainty_range_d...
27
100
0.56963
0
0
0
0
0
0
0
0
227
0.168148
b699c359961ff4c5fe1e7486390fb0c95dd99241
1,132
py
Python
constants.py
JNPRAutomate/unicast2multicast-translator
d400d71745eec8f5ae7933be54a5505460173dea
[ "MIT" ]
3
2021-09-30T18:07:54.000Z
2021-10-03T01:48:17.000Z
constants.py
JNPRAutomate/unicast2multicast-translator
d400d71745eec8f5ae7933be54a5505460173dea
[ "MIT" ]
1
2021-09-20T21:08:51.000Z
2021-09-20T21:08:51.000Z
constants.py
JNPRAutomate/unicast2multicast-translator
d400d71745eec8f5ae7933be54a5505460173dea
[ "MIT" ]
null
null
null
import ipaddress # =============================================== DEFAULT CONFIGURATION ================================================ # Default port to bind the translator's unicast server socket to. DEFAULT_UNICAST_SRV_PORT = 9001 # Default address space to pick multicast destination addresses (groups) from for t...
62.888889
120
0.659011
0
0
0
0
0
0
0
0
913
0.806537
b69ae3c3a05b82d7c34897a18e9776d203764a57
1,710
py
Python
Intelectual systems [8th semester] /lab1/bot.py
mstrechen/labs
e86b390bf68dc708df72c7fae6a46d9ad70a4225
[ "MIT" ]
null
null
null
Intelectual systems [8th semester] /lab1/bot.py
mstrechen/labs
e86b390bf68dc708df72c7fae6a46d9ad70a4225
[ "MIT" ]
null
null
null
Intelectual systems [8th semester] /lab1/bot.py
mstrechen/labs
e86b390bf68dc708df72c7fae6a46d9ad70a4225
[ "MIT" ]
2
2019-10-23T11:54:37.000Z
2022-02-05T15:51:34.000Z
import typing as t import logging from telegram import Update from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackContext # Enable logging logging.basicConfig( format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO ) logger = logging.getLogger(__name__) ...
32.264151
97
0.711111
1,032
0.603509
0
0
0
0
0
0
149
0.087135
b69b9ca24f2fb2208c924db77c7c45f56668f4d1
19,059
py
Python
src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py
Bhaskers-Blu-Org2/FeaturizersLibrary
229ae38ea233bfb02a6ff92ec3a67c1751c58005
[ "MIT" ]
15
2019-12-14T07:54:18.000Z
2021-03-14T14:53:28.000Z
src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py
Bhaskers-Blu-Org2/FeaturizersLibrary
229ae38ea233bfb02a6ff92ec3a67c1751c58005
[ "MIT" ]
30
2019-12-03T20:58:56.000Z
2020-04-21T23:34:39.000Z
src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py
microsoft/FeaturizersLibrary
229ae38ea233bfb02a6ff92ec3a67c1751c58005
[ "MIT" ]
13
2020-01-23T00:18:47.000Z
2021-10-04T17:46:45.000Z
# ---------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License # ---------------------------------------------------------------------- """Contains the VectorTypeInfo object""" import os import re import text...
38.659229
153
0.4389
18,126
0.951047
0
0
18,152
0.952411
0
0
5,975
0.3135
b69ef294d653b88033a59117fedccaa5a2a0264b
73
py
Python
ai/algorithms/reinforcement_learning/monte_carlo/__init__.py
rbak/ai-implementations
5b773c23a5582b05b8aef55ea70e800cf4ffa376
[ "MIT" ]
null
null
null
ai/algorithms/reinforcement_learning/monte_carlo/__init__.py
rbak/ai-implementations
5b773c23a5582b05b8aef55ea70e800cf4ffa376
[ "MIT" ]
null
null
null
ai/algorithms/reinforcement_learning/monte_carlo/__init__.py
rbak/ai-implementations
5b773c23a5582b05b8aef55ea70e800cf4ffa376
[ "MIT" ]
null
null
null
from .monte_carlo_prediction import * from .monte_carlo_control import *
24.333333
37
0.835616
0
0
0
0
0
0
0
0
0
0
b69f3824da0ab5aa5a2c7170f38eadf490e1df95
1,935
py
Python
rediserver/test/server.py
r2evans/rediserver
329c24f3f57c99b00c25e89387790038c328ed1b
[ "MIT" ]
28
2018-02-13T12:45:00.000Z
2022-03-16T04:27:07.000Z
rediserver/test/server.py
r2evans/rediserver
329c24f3f57c99b00c25e89387790038c328ed1b
[ "MIT" ]
1
2018-02-16T09:56:50.000Z
2018-02-16T09:56:50.000Z
rediserver/test/server.py
r2evans/rediserver
329c24f3f57c99b00c25e89387790038c328ed1b
[ "MIT" ]
2
2018-08-12T12:50:23.000Z
2019-05-10T16:16:49.000Z
import os import inspect from copy import deepcopy from tempfile import TemporaryDirectory from functools import wraps from ..server import run_threaded class RedisServer: def __init__(self): self.stop_loop = None self.tempdir = None self.thread = None def __call__(self, func): ...
23.888889
89
0.553488
1,479
0.764341
0
0
398
0.205685
0
0
12
0.006202
b6a1c2ab8cd5b17863bf873dabf0a5085e350658
2,492
py
Python
reque.py
parserpp/ppppppppppp
a1c1ef1d252e7cf652e90465649483b728bf9839
[ "MIT" ]
null
null
null
reque.py
parserpp/ppppppppppp
a1c1ef1d252e7cf652e90465649483b728bf9839
[ "MIT" ]
null
null
null
reque.py
parserpp/ppppppppppp
a1c1ef1d252e7cf652e90465649483b728bf9839
[ "MIT" ]
null
null
null
import time import requests import urllib3 from lxml import etree from requests.models import Response from requests.packages.urllib3.exceptions import InsecureRequestWarning urllib3.disable_warnings() requests.packages.urllib3.disable_warnings() requests.packages.urllib3.disable_warnings(InsecureRequestWarning) fro...
28
97
0.532905
2,116
0.849117
0
0
543
0.217897
0
0
453
0.181782
b6a456d569704179a69c2734a46c283edcb8c45d
1,306
py
Python
spellvardetection/webapi/resources.py
fab-bar/SpellvarDetection
624f472f9eec9636650bace9c091ba1fe9cda313
[ "MIT" ]
1
2019-11-08T08:02:21.000Z
2019-11-08T08:02:21.000Z
spellvardetection/webapi/resources.py
fab-bar/SpellvarDetection
624f472f9eec9636650bace9c091ba1fe9cda313
[ "MIT" ]
null
null
null
spellvardetection/webapi/resources.py
fab-bar/SpellvarDetection
624f472f9eec9636650bace9c091ba1fe9cda313
[ "MIT" ]
null
null
null
import os import shutil import click from flask import current_app from flask.cli import AppGroup ### CLI for management of additional resources res_cli = AppGroup('resources', short_help='Manage additional resources used by SpellvarDetection.') @res_cli.command('list') def list_resources(): "List existing reso...
27.787234
102
0.683767
0
0
0
0
998
0.764165
0
0
389
0.297856
b6a965062e5afc5623bfcef05658f50d3355f266
6,919
py
Python
src/summarizeRankings.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
1
2020-11-12T06:32:26.000Z
2020-11-12T06:32:26.000Z
src/summarizeRankings.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
null
null
null
src/summarizeRankings.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ summarizeRankings.py dent earl, dearl (a) soe ucsc edu 27 April 2011 Python script to take a set of rankings files and aggregate their results. """ ############################## # Copyright (C) 2009-2011 by # Dent Earl (dearl@soe.ucsc.edu, dent.earl@gmail.com) # Benedict Paten (benedict@so...
34.944444
96
0.581298
238
0.034398
0
0
0
0
0
0
2,581
0.373031
b6a970b2171f56ad789b97a6380209b5c0b4639a
34,014
py
Python
dit_helpdesk/countries/migrations/0004_auto_20201021_1041.py
uktrade/dit-helpdesk
f5127daa46e920d33ec3f0b982136b65bba0353a
[ "MIT" ]
3
2019-10-24T10:39:38.000Z
2021-07-13T11:46:18.000Z
dit_helpdesk/countries/migrations/0004_auto_20201021_1041.py
uktrade/dit-helpdesk
f5127daa46e920d33ec3f0b982136b65bba0353a
[ "MIT" ]
20
2020-01-22T11:16:24.000Z
2022-02-02T10:38:54.000Z
dit_helpdesk/countries/migrations/0004_auto_20201021_1041.py
uktrade/dit-helpdesk
f5127daa46e920d33ec3f0b982136b65bba0353a
[ "MIT" ]
null
null
null
# Generated by Django 2.2.13 on 2020-10-21 09:41 from django.db import migrations import logging trade_data = [ { "Country code": "CO", "GOVUK FTA URL": "https://www.gov.uk/government/collections/uk-andean-countries-trade-agreement", "Mendel agreement label": "ANDEAN-COUNTRIES", "...
32.210227
147
0.539278
210
0.006174
0
0
0
0
0
0
22,825
0.671047
b6abc4c54da088d5c140905ed4814491c96271ee
719
py
Python
integrationTests/get_standup_threads_test.py
Teaminator/standup-and-prosper-sdk.py
ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617
[ "Apache-2.0" ]
1
2021-09-16T08:02:35.000Z
2021-09-16T08:02:35.000Z
integrationTests/get_standup_threads_test.py
Teaminator/standup-and-prosper-sdk.py
ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617
[ "Apache-2.0" ]
1
2021-06-14T16:45:56.000Z
2021-06-14T16:56:05.000Z
integrationTests/get_standup_threads_test.py
Teaminator/standup-and-prosper-sdk.py
ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import unittest import nose import time from standup_and_prosper_sdk import ApiClient, StandupsApi class GetStandupThreadsTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def get_standup_threads(self): # Enable test # def test_get_sta...
19.972222
65
0.720445
531
0.738526
0
0
0
0
0
0
154
0.214186
b6abe6095de15d3b6a74511316430a41cae18b7f
343
py
Python
app.py
bameda/pharmap-api
71f5353c19951a4350c3ace2855063093924f061
[ "MIT" ]
null
null
null
app.py
bameda/pharmap-api
71f5353c19951a4350c3ace2855063093924f061
[ "MIT" ]
null
null
null
app.py
bameda/pharmap-api
71f5353c19951a4350c3ace2855063093924f061
[ "MIT" ]
null
null
null
from apistar import App from apistar.commands import create_tables from pharmap.commands import sample_data from pharmap.storage.models import * # noqa from pharmap.routes import routes from pharmap.settings import settings commands = [ create_tables, sample_data, ] app = App(routes=routes, settings=settin...
20.176471
62
0.793003
0
0
0
0
0
0
0
0
6
0.017493
b6ac8fa3607de31632714669b2afbc009736258a
771
py
Python
src/encoded/tests/test_upgrade_star_qc.py
KCL-ORG/encoded
5a1904e948bfd652e8a8d52c6717d7fc0b56b681
[ "MIT" ]
4
2018-01-04T22:31:08.000Z
2021-07-15T17:39:16.000Z
src/encoded/tests/test_upgrade_star_qc.py
KCL-ORG/encoded
5a1904e948bfd652e8a8d52c6717d7fc0b56b681
[ "MIT" ]
38
2019-03-22T14:11:51.000Z
2022-03-30T23:56:09.000Z
src/encoded/tests/test_upgrade_star_qc.py
KCL-ORG/encoded
5a1904e948bfd652e8a8d52c6717d7fc0b56b681
[ "MIT" ]
10
2017-09-14T00:57:07.000Z
2021-07-27T23:41:14.000Z
import pytest @pytest.fixture def star_quality_metric(pipeline, analysis_step_run, bam_file): return { 'status': "finished", 'pipeline': pipeline['uuid'], 'step_run': analysis_step_run['uuid'], 'schema_version': '2', 'quality_metric_of': [bam_file['uuid']] } def test_...
33.521739
72
0.603113
0
0
0
0
292
0.378729
0
0
143
0.185473
b6acc8f967fad42f11b205b325094dc3299810f3
1,759
py
Python
ocr-server/ocr_server/lines.py
twerkmeister/table-annotator
11bce00f28411a1ad047ba673d3e713060076943
[ "MIT" ]
null
null
null
ocr-server/ocr_server/lines.py
twerkmeister/table-annotator
11bce00f28411a1ad047ba673d3e713060076943
[ "MIT" ]
null
null
null
ocr-server/ocr_server/lines.py
twerkmeister/table-annotator
11bce00f28411a1ad047ba673d3e713060076943
[ "MIT" ]
null
null
null
from typing import List import numpy as np import cv2 import scipy.signal def find_line(image: np.ndarray, window_size: int = 30) -> np.ndarray: """Extracts a single line from the image""" image_inverted = cv2.bitwise_not(image) image_as_column = np.sum(image_inverted, axis=1) window_values = [np.su...
36.645833
83
0.699261
0
0
0
0
0
0
0
0
99
0.056282
b6ae1b0f0d22088c98982c121eae8e4affeac754
4,406
py
Python
model.py
shaldev/java-builder-generator
22c47067a058d6708910c869e41e1cfd66da9435
[ "MIT" ]
null
null
null
model.py
shaldev/java-builder-generator
22c47067a058d6708910c869e41e1cfd66da9435
[ "MIT" ]
null
null
null
model.py
shaldev/java-builder-generator
22c47067a058d6708910c869e41e1cfd66da9435
[ "MIT" ]
null
null
null
package = 'org.bonadza.openrtb' model = { 'bidResponse' : { 'id' : 'str', 'seatbid': [{ 'bid' : [{ 'id' : 'str', 'impid' : 'str', 'price' : 'float', 'adid' : 'str', 'nurl' : 'str', 'adm' : 'str', 'adomain' : 'str[]', 'bundle' : 'str', 'iurl' : 'str', 'cid' : 'str', 'c...
19.073593
31
0.385611
0
0
0
0
0
0
0
0
2,542
0.576941
b6ae292cc8493ab3e2e2c6eb93e74e867f7a5a45
109
py
Python
Tupleusinghash.py
bjoffficial/Python
73e6fdc19a1bec18488405c4a60c30ba68581ce5
[ "Apache-2.0" ]
null
null
null
Tupleusinghash.py
bjoffficial/Python
73e6fdc19a1bec18488405c4a60c30ba68581ce5
[ "Apache-2.0" ]
null
null
null
Tupleusinghash.py
bjoffficial/Python
73e6fdc19a1bec18488405c4a60c30ba68581ce5
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': n = int(input()) qus=tuple(map(int,input().split())) print(hash(qus))
21.8
39
0.577982
0
0
0
0
0
0
0
0
10
0.091743
b6ae3b9a42fc929cb17efa0d2f10f351f17fc531
1,814
py
Python
Task/Align-columns/Python/align-columns-2.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Align-columns/Python/align-columns-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/Align-columns/Python/align-columns-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
from StringIO import StringIO textinfile = '''Given$a$text$file$of$many$lines,$where$fields$within$a$line$ are$delineated$by$a$single$'dollar'$character,$write$a$program that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$ column$are$separated$by$at$least$one$space. Further,$allow$for$each$word$in$a$colum...
39.434783
101
0.708379
0
0
0
0
0
0
0
0
887
0.488975
b6b0d58640e8ab5ad641a791c0e3af73049572b4
760
py
Python
scripts/preprocess_glsl.py
Pandinosaurus/geojs
c38b3c91a597db84bbc74c2c915bb525a82aedc1
[ "Apache-2.0" ]
365
2015-01-28T12:07:22.000Z
2022-03-27T14:17:10.000Z
scripts/preprocess_glsl.py
Pandinosaurus/geojs
c38b3c91a597db84bbc74c2c915bb525a82aedc1
[ "Apache-2.0" ]
699
2015-01-05T21:22:40.000Z
2022-03-30T15:58:55.000Z
scripts/preprocess_glsl.py
manthey/geojs
9f36165133f07c8fb08102e0b3459369a052f6a3
[ "Apache-2.0" ]
74
2015-02-23T14:08:13.000Z
2022-03-17T23:37:05.000Z
#!/usr/bin/env python3 import argparse import os import re import sys def readSource(source): data = open(source).read() parts = re.split('(\\$[-.\\w]+)', data) for idx, chunk in enumerate(parts): if chunk.startswith('$') and len(chunk) > 1: parts[idx] = readSource(os.path.join(os.pat...
29.230769
95
0.651316
0
0
0
0
0
0
0
0
208
0.273684
b6b0f5fa7387a72c8d23e89c64d1524c5f61c96b
286
py
Python
test/task_1/fixtures/__init__.py
Quinlys/-Yakymiv_Igor--tasks
4992ca5fd050ed35f060b5b22ed05133be5c1d5a
[ "MIT" ]
2
2018-06-15T08:06:09.000Z
2018-06-24T12:28:07.000Z
test/task_1/fixtures/__init__.py
Quinlys/-Yakymiv_Igor--tasks
4992ca5fd050ed35f060b5b22ed05133be5c1d5a
[ "MIT" ]
null
null
null
test/task_1/fixtures/__init__.py
Quinlys/-Yakymiv_Igor--tasks
4992ca5fd050ed35f060b5b22ed05133be5c1d5a
[ "MIT" ]
1
2018-06-15T14:41:23.000Z
2018-06-15T14:41:23.000Z
import os import json _location = os.path.realpath( os.path.join(os.getcwd(), os.path.dirname(__file__))) with open(os.path.join(_location, 'small.json')) as f: fixtures = json.load(f) with open(os.path.join(_location, '1000.json')) as f: fixtures['1000'] = json.load(f)
23.833333
57
0.681818
0
0
0
0
0
0
0
0
29
0.101399
b6b2392dc515104106ac7e7d4892cd8bdc2834dc
4,102
py
Python
views.py
rajeev/lifeflow
b1de2a7b5b8a89042c1440b3e38092ef1241b9ca
[ "MIT" ]
2
2015-11-24T08:51:46.000Z
2016-05-08T10:24:42.000Z
views.py
rajeev/lifeflow
b1de2a7b5b8a89042c1440b3e38092ef1241b9ca
[ "MIT" ]
null
null
null
views.py
rajeev/lifeflow
b1de2a7b5b8a89042c1440b3e38092ef1241b9ca
[ "MIT" ]
null
null
null
""" Views.py Author: Will Larson Contact: lethain@gmail.com Contains one custom view for displaying articles. Mostly necessary to presort the articles in order of descending size. """ import datetime, time, random, cgi, md5 from django.template import RequestContext from django.shortcuts import render_to_response f...
32.555556
114
0.638957
0
0
0
0
0
0
0
0
854
0.208191
b6b24cefc57188b709e820b0bf006c36f34376a7
20,566
py
Python
singlecelltool.py
MattiazziLab/singlecelltool
0084709448ab851010ba488e3e4cc1d95422862e
[ "MIT" ]
null
null
null
singlecelltool.py
MattiazziLab/singlecelltool
0084709448ab851010ba488e3e4cc1d95422862e
[ "MIT" ]
null
null
null
singlecelltool.py
MattiazziLab/singlecelltool
0084709448ab851010ba488e3e4cc1d95422862e
[ "MIT" ]
1
2021-06-09T23:37:03.000Z
2021-06-09T23:37:03.000Z
from PIL import ImageTk, Image from tkinter import filedialog, messagebox import tkinter as tk import pandas as pd import numpy as np import platform import math import os import traceback class Menu: def __init__(self, main): self.main = main self.main.title("Single Cell Labelling Tool") ...
51.159204
132
0.596616
20,284
0.986288
0
0
0
0
0
0
2,336
0.113586
b6b2bc0d26323630fc0b85b1c23c05a20eeee527
176
py
Python
web/04_user/sample.py
testdrivenio/docker-python-devs
e3aba3f07f1386aea041a494b9729e9135e0f01c
[ "MIT" ]
43
2018-06-14T19:33:19.000Z
2022-03-15T16:13:03.000Z
web/04_user/sample.py
Scaleframe/docker-python-devs
e3aba3f07f1386aea041a494b9729e9135e0f01c
[ "MIT" ]
1
2020-06-02T02:44:47.000Z
2020-06-02T02:44:47.000Z
web/04_user/sample.py
Scaleframe/docker-python-devs
e3aba3f07f1386aea041a494b9729e9135e0f01c
[ "MIT" ]
10
2018-06-16T22:13:27.000Z
2021-08-23T01:03:29.000Z
from flask import Flask, jsonify app = Flask(__name__) @app.route('/ping') def pong(): return jsonify('pong!') if __name__ == '__main__': app.run(host='0.0.0.0')
12.571429
32
0.630682
0
0
0
0
59
0.335227
0
0
33
0.1875
b6b326441a9a486ddfcf807ab05bc6fc1032ac9c
761
py
Python
rss_temple/api/migrations/0006_dedup_feedentries_20210401.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
rss_temple/api/migrations/0006_dedup_feedentries_20210401.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
8
2019-12-04T21:58:35.000Z
2021-12-15T02:29:49.000Z
rss_temple/api/migrations/0006_dedup_feedentries_20210401.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
from django.db import migrations def _forward_func_deduplication_feed_entries(apps, schema_editor): FeedEntry = apps.get_model('api', 'FeedEntry') unique_set = set() delete_list = [] for feed_entry in FeedEntry.objects.all(): unique_desc = (feed_entry.feed_id, feed_entry.url, ...
24.548387
71
0.660972
207
0.272011
0
0
0
0
0
0
46
0.060447
b6b345764f47a7302a2c81d9799fa2f3bd3b99c4
1,931
py
Python
backend/users/migrations/0003_auto_20220226_0851.py
crowdbotics-apps/myclub-33848
3f02f80851419194beb68f6b0caf7630ff10593f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/users/migrations/0003_auto_20220226_0851.py
crowdbotics-apps/myclub-33848
3f02f80851419194beb68f6b0caf7630ff10593f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/users/migrations/0003_auto_20220226_0851.py
crowdbotics-apps/myclub-33848
3f02f80851419194beb68f6b0caf7630ff10593f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
# Generated by Django 2.2.26 on 2022-02-26 08:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("users", "0002_auto_20220225_1606"), ] operations = [ migrations.AddField( model_name="user", name="adresse", ...
30.171875
75
0.548421
1,837
0.951321
0
0
0
0
0
0
245
0.126877
b6b4835ba5f75adf5f813973c0f5683e69a19a3d
409
py
Python
conventional/util/io.py
multimac/Conventional
c74aed7458cbba795dde373385cae0c654835cbc
[ "MIT" ]
6
2020-06-24T23:08:09.000Z
2021-12-25T00:53:10.000Z
conventional/util/io.py
multimac/Conventional
c74aed7458cbba795dde373385cae0c654835cbc
[ "MIT" ]
2
2021-07-06T20:31:55.000Z
2022-03-17T13:01:13.000Z
conventional/util/io.py
multimac/Conventional
c74aed7458cbba795dde373385cae0c654835cbc
[ "MIT" ]
1
2021-01-22T16:50:59.000Z
2021-01-22T16:50:59.000Z
import datetime from typing import Any import dateutil.tz def json_defaults(obj: Any) -> str: """JSON serializer for objects not serializable by default json code""" if isinstance(obj, datetime.datetime): return obj.astimezone(dateutil.tz.UTC).isoformat() elif isinstance(obj, datetime.date): ...
25.5625
75
0.709046
0
0
0
0
0
0
0
0
97
0.237164
b6b792498459995b89df7fac86e7a4c838ae82e7
6,200
py
Python
setup.py
bark-simulator/bark-ml
68a4244e91779667c98396c51ee713676bf1dfea
[ "MIT" ]
58
2019-10-07T12:10:27.000Z
2022-03-01T08:08:47.000Z
setup.py
bark-simulator/bark-ml
68a4244e91779667c98396c51ee713676bf1dfea
[ "MIT" ]
31
2019-09-10T15:33:20.000Z
2022-03-30T08:52:08.000Z
setup.py
bark-simulator/bark-ml
68a4244e91779667c98396c51ee713676bf1dfea
[ "MIT" ]
14
2019-10-01T08:23:37.000Z
2021-12-16T15:55:38.000Z
from setuptools import setup, find_packages, Extension import os from setuptools import setup, find_packages, Extension import os,sys import os import shlex import shutil import setuptools.command.build_ext import setuptools.command.build_py import setuptools.command.install import setuptools.command.sdist import setu...
36.904762
146
0.67629
2,686
0.433226
0
0
0
0
0
0
2,532
0.408387
fcab1ef55255f164328a1ed4e5f9679cb1a3f825
8,198
py
Python
ml_aos/david_net.py
jfcrenshaw/ml-aos
762509a77d809954749aea9b2b4e594951255c47
[ "MIT" ]
null
null
null
ml_aos/david_net.py
jfcrenshaw/ml-aos
762509a77d809954749aea9b2b4e594951255c47
[ "MIT" ]
null
null
null
ml_aos/david_net.py
jfcrenshaw/ml-aos
762509a77d809954749aea9b2b4e594951255c47
[ "MIT" ]
null
null
null
"""Pytorch neural network to predict zernike coefficients from donut images. My implementation of the network presented in David Thomas's PhD Thesis at Stanford. """ import numpy as np import torch from torch import nn class DavidNet(nn.Module): """Network to predict wavefront Zernike coefficients from donut ima...
30.475836
78
0.580385
7,963
0.971334
0
0
0
0
0
0
4,782
0.583313
fcac7fe96e0430e69411dd4b9572f3298d31e422
88
py
Python
split_schedule/errors.py
sanders41/split-schedule
bf06b3c14f035f6057e4e3aeb8d9afaec65dce85
[ "MIT" ]
null
null
null
split_schedule/errors.py
sanders41/split-schedule
bf06b3c14f035f6057e4e3aeb8d9afaec65dce85
[ "MIT" ]
90
2021-02-23T03:01:29.000Z
2022-03-28T21:10:11.000Z
split_schedule/errors.py
sanders41/split-schedule
bf06b3c14f035f6057e4e3aeb8d9afaec65dce85
[ "MIT" ]
null
null
null
class NoScheduleError(Exception): pass class SchedulingError(Exception): pass
12.571429
33
0.75
84
0.954545
0
0
0
0
0
0
0
0
fcac8a7fd254974b0cbabed36e8c59502bf09f6e
2,229
py
Python
utils.py
MattFerraro/radon
795b74fd7d12e7c4a191646e6bdf9e0386c8e95e
[ "Apache-2.0" ]
2
2018-11-08T03:30:55.000Z
2021-09-19T01:40:14.000Z
utils.py
MattFerraro/radon
795b74fd7d12e7c4a191646e6bdf9e0386c8e95e
[ "Apache-2.0" ]
null
null
null
utils.py
MattFerraro/radon
795b74fd7d12e7c4a191646e6bdf9e0386c8e95e
[ "Apache-2.0" ]
1
2018-12-30T04:07:17.000Z
2018-12-30T04:07:17.000Z
# Description: A library of common utilities # Author: Matt Ferraro import numpy as np import cv2 from scipy.signal import convolve2d import matplotlib.pyplot as plt def imagify(fft): ''' 2D ffts usually have real and imaginary components, and they also usually have way too much dynamic range to be sensib...
33.772727
79
0.696276
0
0
0
0
0
0
0
0
1,243
0.557649
fcacbde3bba335a6b61bda2101f46d6c3839fe23
26,845
py
Python
FastAutoAugment/utils/utils.py
ironluffy/fast-autoaugment
eaae5a6172afe28ba3053021c97e2cb09d170969
[ "MIT" ]
null
null
null
FastAutoAugment/utils/utils.py
ironluffy/fast-autoaugment
eaae5a6172afe28ba3053021c97e2cb09d170969
[ "MIT" ]
12
2020-11-08T16:51:28.000Z
2020-11-15T16:31:57.000Z
FastAutoAugment/utils/utils.py
ironluffy/fast-autoaugment
eaae5a6172afe28ba3053021c97e2cb09d170969
[ "MIT" ]
null
null
null
import torch import open3d import os import numpy as np import matplotlib import matplotlib.pyplot as plt import itertools import imageio from torch.autograd import Variable from src.utils import point_cloud_utils as pcu from sklearn.metrics import confusion_matrix def weights_init(m): classname = m.__class__.__n...
47.597518
119
0.620898
0
0
0
0
0
0
0
0
1,312
0.048873
fcaccf9b0138aa7d34d6785bbb98eec7ec092b2d
811
py
Python
utils/config.py
wuyue92tree/nice-you-get
5c4962d27eb23656c14992e260ba94094a9728e6
[ "MIT" ]
null
null
null
utils/config.py
wuyue92tree/nice-you-get
5c4962d27eb23656c14992e260ba94094a9728e6
[ "MIT" ]
null
null
null
utils/config.py
wuyue92tree/nice-you-get
5c4962d27eb23656c14992e260ba94094a9728e6
[ "MIT" ]
null
null
null
import os import json from conf.settings import CONFIG_PATH, HOME_DIR class Config(object): def __init__(self) -> None: super().__init__() self.default_config = { 'save_path': os.path.join(HOME_DIR, 'media'), 'insecure': 0, 'merge': 0, 'caption': 0 ...
25.34375
69
0.557337
719
0.88656
0
0
0
0
0
0
64
0.078915
fcace69d7de7f766d27633336fe279118aaefec0
1,090
py
Python
handlers/shorties.py
pythononwheels/twittercomments
b35feb0efdd40b191a7b20c6c86fe2eb9233697f
[ "MIT" ]
null
null
null
handlers/shorties.py
pythononwheels/twittercomments
b35feb0efdd40b191a7b20c6c86fe2eb9233697f
[ "MIT" ]
null
null
null
handlers/shorties.py
pythononwheels/twittercomments
b35feb0efdd40b191a7b20c6c86fe2eb9233697f
[ "MIT" ]
null
null
null
import tornado.ioloop import tornado.web from twittercomments.handlers.powhandler import PowHandler from twittercomments.application import app from twittercomments.as_dash import dispatcher from twittercomments.models.tinydb.tweet import Tweet # # you can use regex in the routes as well: # (r"/([^/]+)/(.+)", ObjectHa...
35.16129
96
0.705505
519
0.476147
0
0
602
0.552294
0
0
517
0.474312
fcad268505923f6abed1ba916aa0220d82115bca
9,807
py
Python
_modules/nexus3_privileges.py
jsandas/saltstack-nexus3-module
e090dfe18cd3b5d90d1c71b0747ff150eb96e328
[ "MIT" ]
1
2020-11-15T00:18:55.000Z
2020-11-15T00:18:55.000Z
_modules/nexus3_privileges.py
jsandas/saltstack-nexus3-module
e090dfe18cd3b5d90d1c71b0747ff150eb96e328
[ "MIT" ]
1
2020-11-21T19:08:07.000Z
2020-11-21T19:14:37.000Z
_modules/nexus3_privileges.py
jsandas/saltstack-nexus3-module
e090dfe18cd3b5d90d1c71b0747ff150eb96e328
[ "MIT" ]
null
null
null
'''' execution module for Nexus 3 security privileges :version: v0.2.1 :configuration: In order to connect to Nexus 3, certain configuration is required in /etc/salt/minion on the relevant minions. Example: nexus3: hostname: '127.0.0.1:8081' username: 'admin' password: 'admin123...
25.807895
238
0.595187
0
0
0
0
0
0
0
0
5,589
0.569899
fcaeccdb0846e01e452459cb3c95056d0b54137e
19,169
py
Python
app.py
vadim566/LARAextantion
6551429d977702e17a9e0e7ef16b373f353192b2
[ "MIT" ]
null
null
null
app.py
vadim566/LARAextantion
6551429d977702e17a9e0e7ef16b373f353192b2
[ "MIT" ]
null
null
null
app.py
vadim566/LARAextantion
6551429d977702e17a9e0e7ef16b373f353192b2
[ "MIT" ]
null
null
null
#from GoogleImageScrapper import * import random from GoogleImageScrapper import GoogleImageScraper from patch import * import os from os import listdir from os.path import join, isdir, isfile from flask import Flask, render_template, send_from_directory, redirect, Response, url_for import SVN.trunk.Code.Python.lara_u...
32.108878
243
0.699828
0
0
0
0
14,725
0.767727
0
0
6,803
0.354692
fcaf861bcc515b67dfa9fe42cad17a8ff98ba4be
1,708
py
Python
Least_Common_Ancestor.py
cjdekker/Tree_Exercises
30350626bfb146dc5affb51f6ab4f2a067832d4b
[ "MIT" ]
null
null
null
Least_Common_Ancestor.py
cjdekker/Tree_Exercises
30350626bfb146dc5affb51f6ab4f2a067832d4b
[ "MIT" ]
null
null
null
Least_Common_Ancestor.py
cjdekker/Tree_Exercises
30350626bfb146dc5affb51f6ab4f2a067832d4b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[2]: def find_LCAs(parent): LCA = dict() # This is the nested dictionary def lca(u, v): if u in list(LCA.keys()): if v in list(LCA[u].keys()): return for i in list(parent[u]): lca(i,v) ul = [u] ...
23.39726
100
0.379977
0
0
0
0
0
0
0
0
179
0.104801
fcb0aac9f660d4912d9fc1b07d9b54eabce822d8
290
py
Python
samples/takePicture.py
windriver-codecamp/alpha_drone
2845784b93296f1ff8d259418208d24202f05c5d
[ "MIT" ]
null
null
null
samples/takePicture.py
windriver-codecamp/alpha_drone
2845784b93296f1ff8d259418208d24202f05c5d
[ "MIT" ]
null
null
null
samples/takePicture.py
windriver-codecamp/alpha_drone
2845784b93296f1ff8d259418208d24202f05c5d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import cv2 import time from djitellopy import Tello tello = Tello() tello.connect() tello.streamon() frame_read = tello.get_frame_read() #tello.takeoff() time.sleep(1) cv2.imwrite("picture.png", frame_read.frame) #tello.land() tello.end()
15.263158
44
0.717241
0
0
0
0
0
0
0
0
87
0.3
fcb1cc84b208a5f7c8a0147b44b6a2cf9aac9163
1,654
py
Python
k2/python/k2/ragged/ops.py
pzelasko/k2
2dbb3e09b152fcf98354c946baa271e5b57c8321
[ "Apache-2.0" ]
null
null
null
k2/python/k2/ragged/ops.py
pzelasko/k2
2dbb3e09b152fcf98354c946baa271e5b57c8321
[ "Apache-2.0" ]
null
null
null
k2/python/k2/ragged/ops.py
pzelasko/k2
2dbb3e09b152fcf98354c946baa271e5b57c8321
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../../LICENSE for clarification regarding multiple authors from typing import Tuple, Optional from typing import Union import torch import _k2 def index(src: Union[_k2.RaggedArc, _k2.RaggedInt], indexes: torch.Tensor, ...
35.956522
76
0.613059
0
0
0
0
0
0
0
0
1,126
0.680774
fcb287f343755fad071871dc930601e1e2bb056f
3,849
py
Python
padempdi.py
efurlanm/378
d5c2ab0e80f2930867057c6c7ce9791e711c1391
[ "MIT" ]
null
null
null
padempdi.py
efurlanm/378
d5c2ab0e80f2930867057c6c7ce9791e711c1391
[ "MIT" ]
null
null
null
padempdi.py
efurlanm/378
d5c2ab0e80f2930867057c6c7ce9791e711c1391
[ "MIT" ]
null
null
null
# CAP-378 Trabalho: PAD em PDI # Uso: mpiexec -n <NTASKS> python3 padempdi.py import numpy as np from mpi4py import MPI wt = MPI.Wtime() # "wall time" para cálculo do tempo decorrido comm = MPI.COMM_WORLD # comunicador global (pode servir para definir grupos) cpu = comm.Get_size() # total de ranks que o mp...
46.939024
92
0.649519
0
0
0
0
0
0
0
0
2,163
0.557618
fcb2a18761108cac8ef931cd2742ce63d5c4b447
1,167
py
Python
terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py
ntouran/dragon-armi-plugin
c43e39891f9c99b87ff8ff82bd2424acbe6afec0
[ "Apache-2.0" ]
null
null
null
terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py
ntouran/dragon-armi-plugin
c43e39891f9c99b87ff8ff82bd2424acbe6afec0
[ "Apache-2.0" ]
9
2019-11-16T01:17:41.000Z
2021-11-22T15:47:19.000Z
terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py
ntouran/dragon-armi-plugin
c43e39891f9c99b87ff8ff82bd2424acbe6afec0
[ "Apache-2.0" ]
2
2019-11-18T15:13:46.000Z
2021-07-30T18:01:40.000Z
# Copyright 2019 TerraPower, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
30.710526
76
0.672665
531
0.455013
0
0
172
0.147386
0
0
846
0.724936
fcb2d5a562e178bc80b4b5511da52dbc782c577a
635
py
Python
DQM/HLTEvF/python/hltMonBTag_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/HLTEvF/python/hltMonBTag_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/HLTEvF/python/hltMonBTag_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms import DQM.HLTEvF.hltMonBTagIPSource_cfi import DQM.HLTEvF.hltMonBTagMuSource_cfi # definition of the Sources for 8E29 #hltMonBTagIP_Jet50U_Source = DQM.HLTEvF.hltMonBTagIPSource_cfi.hltMonBTagIPSource.clone() #hltMonBTagMu_Jet10U_Source = DQM.HLTEvF.hltMonBTagMuSource_cfi.hlt...
37.352941
90
0.848819
0
0
0
0
0
0
0
0
415
0.653543
fcb31fbe47519c56c2575ea13372b07701ee10b4
510
py
Python
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
# 4. Text Filter # Write a program that takes a text and a string of banned words. # All words included in the ban list should be replaced with asterisks "*", equal to the word's length. ' \ # 'The entries in the ban list will be separated by a comma and space ", ". # The ban list should be entered on the first...
34
107
0.692157
0
0
0
0
0
0
0
0
373
0.731373
fcb3567798e88484d6775c6425b603d48c728543
18,009
py
Python
main.py
ghurone/tamacat
70f0e4bb6d21cde993caa38ef7e047187b306d3d
[ "MIT" ]
null
null
null
main.py
ghurone/tamacat
70f0e4bb6d21cde993caa38ef7e047187b306d3d
[ "MIT" ]
null
null
null
main.py
ghurone/tamacat
70f0e4bb6d21cde993caa38ef7e047187b306d3d
[ "MIT" ]
null
null
null
import config.funcoes as cfunc import config.saveload as csave import config.janela as cjane import config.gatos_ascii as cga import objs.gatinho as ogato import objs.geladeira as ogela import objs.bau as obau from random import randint, choice from time import sleep humores = ['feliz', 'triste', 'quieto', 'brincalhã...
35.105263
133
0.470931
17,598
0.973018
0
0
8,349
0.461628
0
0
4,610
0.254893
fcb3f35344db31559c493891a3016def67e71ee1
3,837
py
Python
src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py
OmidGhotbi/LuxCore
e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a
[ "Apache-2.0" ]
826
2017-12-12T15:38:16.000Z
2022-03-28T07:12:40.000Z
src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py
OmidGhotbi/LuxCore
e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a
[ "Apache-2.0" ]
531
2017-12-03T17:21:06.000Z
2022-03-20T19:22:11.000Z
src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py
OmidGhotbi/LuxCore
e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a
[ "Apache-2.0" ]
133
2017-12-13T18:46:10.000Z
2022-03-27T16:21:00.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # Copyright 1998-2018 by authors (see AUTHORS.txt) # # This file is part of LuxCoreRender. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except i...
28.849624
99
0.691426
2,782
0.725046
0
0
0
0
0
0
1,428
0.372166
fcb43a9aaebf1ad8cae7c5ffcb6ef4a11fa19aa8
389
py
Python
api/main.py
debbie-chan/SPM
f84e62779347579287aee8a2e832f72dcc53b8dd
[ "MIT" ]
null
null
null
api/main.py
debbie-chan/SPM
f84e62779347579287aee8a2e832f72dcc53b8dd
[ "MIT" ]
null
null
null
api/main.py
debbie-chan/SPM
f84e62779347579287aee8a2e832f72dcc53b8dd
[ "MIT" ]
null
null
null
from flask import render_template from .src.app import create_app db_uri = ( "mongodb+srv://dbAdmin:Ve08ByJJOk5RNhWK@clusterlms.k10xd.mongodb.net/lms" ) app = create_app(db_uri) @app.route("/", defaults={"path": ""}) @app.route("/<path:path>") def index(path): return render_template("index.html") if __name...
21.611111
77
0.691517
0
0
0
0
123
0.316195
0
0
129
0.33162
fcb44301153a2a318071b686264e0d081c08940a
2,189
py
Python
inference.py
SolomidHero/voice-conversion-flask-heroku
2b27f1e92dcd2d06723ab39382389fbe722c843d
[ "MIT" ]
null
null
null
inference.py
SolomidHero/voice-conversion-flask-heroku
2b27f1e92dcd2d06723ab39382389fbe722c843d
[ "MIT" ]
null
null
null
inference.py
SolomidHero/voice-conversion-flask-heroku
2b27f1e92dcd2d06723ab39382389fbe722c843d
[ "MIT" ]
null
null
null
import json import torch import sys from common_utils import transform_audio from engine.data import load_wav, log_mel_spectrogram, plot_mel, plot_attn from engine.models import load_pretrained_wav2vec from vocoder.env import AttrDict sys.path.append("./vocoder") from vocoder.models import Generator device = torch....
29.581081
80
0.740978
0
0
0
0
0
0
0
0
486
0.222019
fcb486efe8ea339f4620466cdeeeb1c8db201f10
452
py
Python
redirector/main.py
dyakovri/redirector-api
cd576d9b27b4de5777dd2112e9e355e8585dc44e
[ "BSD-2-Clause" ]
1
2022-03-23T17:56:15.000Z
2022-03-23T17:56:15.000Z
redirector/main.py
dyakovri/redirector-api
cd576d9b27b4de5777dd2112e9e355e8585dc44e
[ "BSD-2-Clause" ]
null
null
null
redirector/main.py
dyakovri/redirector-api
cd576d9b27b4de5777dd2112e9e355e8585dc44e
[ "BSD-2-Clause" ]
null
null
null
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from fastapi_sqlalchemy import DBSessionMiddleware from .router import router from .settings import get_settings app = FastAPI() app.add_middleware(DBSessionMiddleware, db_url=get_settings().DB_DSN) app.add_middleware( CORSMiddleware, ...
25.111111
69
0.778761
0
0
0
0
0
0
0
0
9
0.019912
fcb56437c8a13d8cdb0778f357f19d4d66ab7b36
9,761
py
Python
openmdao.gui/src/openmdao/gui/omg.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
openmdao.gui/src/openmdao/gui/omg.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
openmdao.gui/src/openmdao/gui/omg.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
""" OpenMDAO GUI This graphical user interface for OpenMDAO is implemented as a web application. Running this file will start a tornado web server on a local port and open a browser on that port. An up-to-date version of Chrome or Firefox with support for WebSockets is required. """ import os import signal import s...
36.151852
110
0.588259
7,701
0.788956
0
0
1,008
0.103268
0
0
3,282
0.336236
fcb77d0da70d5d72ccf79ec2127cc2c4373c050d
5,412
py
Python
suica.py
hsgwa/nfcpy-suica-sample
7903ec3546c3e11fef0c82b6316b357a7a4d585d
[ "MIT" ]
null
null
null
suica.py
hsgwa/nfcpy-suica-sample
7903ec3546c3e11fef0c82b6316b357a7a4d585d
[ "MIT" ]
null
null
null
suica.py
hsgwa/nfcpy-suica-sample
7903ec3546c3e11fef0c82b6316b357a7a4d585d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import binascii import csv import datetime import os import struct import sys import nfc sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/nfcpy') num_blocks = 20 service_code = 0x090f class StationRecord(object): db = None def __init__(self, row...
29.736264
91
0.55765
4,970
0.850736
0
0
1,981
0.339096
0
0
966
0.165354
fcb7d3280cecce6265b2df4ab52529db9861f61d
1,760
py
Python
raekwon/db.py
metheoryt/raekwon
3330559a2b655436520fad3d7edf6c871d6e8460
[ "MIT" ]
null
null
null
raekwon/db.py
metheoryt/raekwon
3330559a2b655436520fad3d7edf6c871d6e8460
[ "MIT" ]
null
null
null
raekwon/db.py
metheoryt/raekwon
3330559a2b655436520fad3d7edf6c871d6e8460
[ "MIT" ]
null
null
null
from datetime import datetime import marshmallow as ma import sqlalchemy as sa from marshmallow import fields as f from sqlalchemy import MetaData from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session metadata = MetaData() Session = scoped_session(sessionmaker...
28.387097
84
0.694318
0
0
0
0
0
0
0
0
234
0.127105
fcbb97830b78a5ce1b4a5754ca7c5afd3e05b7f0
3,963
py
Python
app/FrontendMicroservice/main_frontend.py
AdavisSnakes/GrocerySaaS
1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84
[ "MIT" ]
null
null
null
app/FrontendMicroservice/main_frontend.py
AdavisSnakes/GrocerySaaS
1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84
[ "MIT" ]
null
null
null
app/FrontendMicroservice/main_frontend.py
AdavisSnakes/GrocerySaaS
1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84
[ "MIT" ]
null
null
null
#!/usr/bin/python3.7 import sys, json, os, stripe from datetime import timedelta, datetime from flask import Flask, render_template, redirect, request, escape, jsonify, flash, current_app from flask_login import LoginManager, UserMixin, login_required, login_user, logout_user, current_user from flask_wtf import CSRFPro...
36.027273
102
0.726218
0
0
0
0
3,093
0.780469
0
0
351
0.088569
fcbc22574e8ecb6bb9fb93418299a40102fc9634
483
py
Python
examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py
barbagroup/petibm-examples
794de3613967c14750c750aed386602c988cff05
[ "BSD-3-Clause" ]
2
2020-08-08T13:37:32.000Z
2021-12-01T03:22:32.000Z
examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py
barbagroup/petibm-examples
794de3613967c14750c750aed386602c988cff05
[ "BSD-3-Clause" ]
null
null
null
examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py
barbagroup/petibm-examples
794de3613967c14750c750aed386602c988cff05
[ "BSD-3-Clause" ]
2
2019-12-22T08:49:01.000Z
2021-12-01T03:22:44.000Z
"""Create a sphere.""" import pathlib import sys import petibmpy rootdir = pathlib.Path(__file__).absolute().parents[5] sys.path.insert(0, str(rootdir / 'misc')) import icosphere R = 0.5 sphere = icosphere.create_icosphere(25) sphere.vertices *= R sphere.print_info() x, y, z = sphere.vertices.T # Center the sphe...
18.576923
54
0.706004
0
0
0
0
0
0
0
0
80
0.165631
fcbc3d99f59af651cbfa762d00ff42cd63d6d739
1,129
py
Python
examples/plot_therm.py
xavigisbeg/handy_plotter
048a38dc8510b81df01348bf4e756fa846a977be
[ "MIT" ]
null
null
null
examples/plot_therm.py
xavigisbeg/handy_plotter
048a38dc8510b81df01348bf4e756fa846a977be
[ "MIT" ]
null
null
null
examples/plot_therm.py
xavigisbeg/handy_plotter
048a38dc8510b81df01348bf4e756fa846a977be
[ "MIT" ]
null
null
null
import context as HP import os OT = '2018_1101_B' if (os.name == 'nt'): pathData = '{}{}/{}'.format( '//SERVIDORSQL/Datos/Desarrollos y pruebas/', 'Automatitzacio/Dades Proves/Termoparell', OT) pathPlot = '{}{}/{}'.format( '//SERVIDORSQL/Datos/Desarrollos y pruebas/', 'Automatitzacio/Dades Proves/Termopar...
22.137255
74
0.622675
0
0
0
0
0
0
0
0
423
0.374336
fcbd2a883473757a97803fed690a067d5c7f7016
7,526
py
Python
sammba/registration/tests/test_template_registrator.py
salma1601/sammba-mri
c3c79ed806a4e5ce3524bc6053bf0c3ff1444113
[ "CECILL-B" ]
null
null
null
sammba/registration/tests/test_template_registrator.py
salma1601/sammba-mri
c3c79ed806a4e5ce3524bc6053bf0c3ff1444113
[ "CECILL-B" ]
null
null
null
sammba/registration/tests/test_template_registrator.py
salma1601/sammba-mri
c3c79ed806a4e5ce3524bc6053bf0c3ff1444113
[ "CECILL-B" ]
null
null
null
import os from nose import with_setup from nose.tools import assert_true import numpy as np import nibabel from nilearn.datasets.tests import test_utils as tst from nilearn._utils.testing import assert_raises_regex from nilearn._utils.niimg_conversions import _check_same_fov from sammba import testing_data from sammba....
44.797619
78
0.662769
0
0
0
0
6,562
0.871911
0
0
758
0.100718
fcbe57aa0aba088b6e7c1f10ce1907df3fa001fe
8,939
py
Python
main.py
RabbitFored/responseJSON-bot
45364296fe63b6db3a89003339d787d0966ae037
[ "MIT" ]
5
2021-08-11T18:24:53.000Z
2021-11-16T13:01:41.000Z
main.py
RabbitFored/responseJSON-bot
45364296fe63b6db3a89003339d787d0966ae037
[ "MIT" ]
null
null
null
main.py
RabbitFored/responseJSON-bot
45364296fe63b6db3a89003339d787d0966ae037
[ "MIT" ]
2
2021-08-10T05:42:14.000Z
2021-08-12T14:00:24.000Z
from multiprocessing import Process import botapi from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton from pyrogram.handlers import MessageHandler import json import database from pyrogram.errors import (PeerIdInvalid, UserIsBlocked, MessageTooLong) from pyrogram.t...
33.859848
119
0.571205
0
0
0
0
7,479
0.836671
7,643
0.855017
1,770
0.198009
fcc018897dfa0d7cbd2e1c6b70a4ad965a9993a5
4,566
py
Python
plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
from typing import Dict from dbnd import Config, parameter class Algorithm(object): PCA = "pca" KMEANS = "kmeans" LINEAR_LEARNER = "linear-learner" FACTORIZATION_MACHINES = "factorization-machines" NTM = "ntm" RANDOMCUTFOREST = "randomcutforest" KNN = "knn" OBJECT2VEC = "object2vec" ...
36.528
91
0.683968
4,494
0.984231
0
0
0
0
0
0
1,087
0.238064
fcc07acfd0ff24e49be1cb1b14f2f8ee025b2537
4,301
py
Python
datastax/trees/heap_tree.py
warmachine028/datastax
2898b517dee471a240a10e81bcfafee5dce615ca
[ "MIT" ]
5
2021-12-25T17:08:39.000Z
2022-03-18T16:22:57.000Z
datastax/trees/heap_tree.py
warmachine028/datastax
2898b517dee471a240a10e81bcfafee5dce615ca
[ "MIT" ]
1
2021-12-28T05:45:34.000Z
2021-12-28T21:31:50.000Z
datastax/trees/heap_tree.py
warmachine028/datastax
2898b517dee471a240a10e81bcfafee5dce615ca
[ "MIT" ]
null
null
null
# Heap Tree Implementation from __future__ import annotations import warnings from typing import Optional, Any from datastax.errors import DeletionFromEmptyTreeWarning from datastax.trees.private_trees.binary_tree import BinaryTree, TreeNode class HeapNode(TreeNode): def __init__(self, data: Any, ...
34.408
73
0.589863
4,051
0.941874
0
0
55
0.012788
0
0
554
0.128807
fcc09e2543fdf968d7d7db4fd1316f5b3e4dc932
7,443
py
Python
pretix_mpesa/payment.py
enyachoke/pretix-mpesa
615368b04226e72cea3b1a16002001e32d0435bb
[ "Apache-2.0" ]
2
2018-07-10T15:55:47.000Z
2020-11-28T20:42:53.000Z
pretix_mpesa/payment.py
enyachoke/pretix-mpesa
615368b04226e72cea3b1a16002001e32d0435bb
[ "Apache-2.0" ]
null
null
null
pretix_mpesa/payment.py
enyachoke/pretix-mpesa
615368b04226e72cea3b1a16002001e32d0435bb
[ "Apache-2.0" ]
1
2021-05-27T15:20:18.000Z
2021-05-27T15:20:18.000Z
import json import logging import urllib.parse import phonenumbers import math from pympesa import Pympesa from django import forms from django.contrib import messages from django.core import signing from django.template.loader import get_template from django.utils.translation import ugettext as __, ugettext_lazy as _...
42.775862
142
0.616015
6,278
0.843477
0
0
2,509
0.337095
0
0
2,133
0.286578