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
b8cbfca6de86ee3ef9fe472b32eb107264c928c8
1,671
py
Python
EDA/src/utils/main_flask.py
paleomau/MGOL_BOOTCAMP
8c2b018f49fd12a255ea6f323141260d04d4421d
[ "MIT" ]
null
null
null
EDA/src/utils/main_flask.py
paleomau/MGOL_BOOTCAMP
8c2b018f49fd12a255ea6f323141260d04d4421d
[ "MIT" ]
null
null
null
EDA/src/utils/main_flask.py
paleomau/MGOL_BOOTCAMP
8c2b018f49fd12a255ea6f323141260d04d4421d
[ "MIT" ]
null
null
null
from flask import Flask, request, render_template from functions import read_json import os # Mandatory app = Flask(__name__) # __name__ --> __main__ # ---------- Flask functions ---------- @app.route("/") # @ --> esto representa el decorador de la función def home(): """ Default path """ #return app.sen...
25.318182
72
0.625972
0
0
0
0
708
0.423192
0
0
703
0.420203
b8ccc7bb85dc9dad61097e465ec52bcbf128cb34
1,473
py
Python
opta/core/secrets.py
pecigonzalo/opta
0259f128ad3cfc4a96fe1f578833de28b2f19602
[ "Apache-2.0" ]
null
null
null
opta/core/secrets.py
pecigonzalo/opta
0259f128ad3cfc4a96fe1f578833de28b2f19602
[ "Apache-2.0" ]
null
null
null
opta/core/secrets.py
pecigonzalo/opta
0259f128ad3cfc4a96fe1f578833de28b2f19602
[ "Apache-2.0" ]
null
null
null
import os from dotenv import dotenv_values from opta.core.kubernetes import get_namespaced_secrets, update_secrets from opta.exceptions import UserErrors from opta.utils import deep_merge, logger MANUAL_SECRET_NAME = "manual-secrets" # nosec LINKED_SECRET_NAME = "secret" # nosec def get_secrets(namespace: str, m...
35.071429
97
0.728445
0
0
0
0
0
0
0
0
466
0.316361
b8cdf4dde7f1aa6655db7010276c1247756180f9
5,114
py
Python
venv/Lib/site-packages/mpl_toolkits/axes_grid1/axes_rgb.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
603
2020-12-23T13:49:32.000Z
2022-03-31T23:38:03.000Z
venv/Lib/site-packages/mpl_toolkits/axes_grid1/axes_rgb.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
387
2020-12-15T14:54:04.000Z
2022-03-31T07:00:21.000Z
venv/Lib/site-packages/mpl_toolkits/axes_grid1/axes_rgb.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
35
2021-03-26T03:12:04.000Z
2022-03-23T10:15:10.000Z
import numpy as np from matplotlib import _api from .axes_divider import make_axes_locatable, Size from .mpl_axes import Axes @_api.delete_parameter("3.3", "add_all") def make_rgb_axes(ax, pad=0.01, axes_class=None, add_all=True, **kwargs): """ Parameters ---------- pad : float Fraction of th...
30.260355
79
0.550841
3,372
0.659366
0
0
3,102
0.60657
0
0
2,088
0.408291
b8ce37a154e212778f695fcf9135c3e96507ff09
88
py
Python
app/admin/controllers/__init__.py
aries-zhang/flask-template
369d77f2910f653f46668dd9bda735954b6c145e
[ "MIT" ]
null
null
null
app/admin/controllers/__init__.py
aries-zhang/flask-template
369d77f2910f653f46668dd9bda735954b6c145e
[ "MIT" ]
null
null
null
app/admin/controllers/__init__.py
aries-zhang/flask-template
369d77f2910f653f46668dd9bda735954b6c145e
[ "MIT" ]
null
null
null
from flask import Blueprint admin = Blueprint('admin', __name__, url_prefix='/manage')
22
58
0.761364
0
0
0
0
0
0
0
0
16
0.181818
b8d03933a76fe421eb780621a4114e528f2cddbc
535
py
Python
first.py
wmoulin/chatterbot
075a4651227ad159e58a36fca5ea7456d9153653
[ "MIT" ]
null
null
null
first.py
wmoulin/chatterbot
075a4651227ad159e58a36fca5ea7456d9153653
[ "MIT" ]
null
null
null
first.py
wmoulin/chatterbot
075a4651227ad159e58a36fca5ea7456d9153653
[ "MIT" ]
null
null
null
from chatterbot import ChatBot from chatterbot.trainers import ListTrainer # The only required parameter for the ChatBot is a name. This can be anything you want. chatbot = ChatBot("My First Chatbot") # Training your ChatBot conversation = [ "Hello", "Hi there!", "How are you doing?", "I'm doing great....
24.318182
87
0.708411
0
0
0
0
0
0
0
0
266
0.497196
b8d0ad22e9f860e320dd54fc175dce04ecd1af3d
7,405
py
Python
runpandas/types/summary.py
pnposch/runpandas
25388c18b52dfcc168e81922b8ba20ca93adad20
[ "MIT" ]
11
2020-12-04T20:43:23.000Z
2022-03-16T19:19:12.000Z
runpandas/types/summary.py
pnposch/runpandas
25388c18b52dfcc168e81922b8ba20ca93adad20
[ "MIT" ]
45
2020-06-23T02:50:31.000Z
2022-02-15T16:56:00.000Z
runpandas/types/summary.py
pnposch/runpandas
25388c18b52dfcc168e81922b8ba20ca93adad20
[ "MIT" ]
4
2021-11-11T15:23:04.000Z
2022-02-02T13:02:12.000Z
""" Helper module for evaluation and display of the summary of training sessions. """ import numpy as np import pandas as pd from runpandas._utils import convert_pace_secmeters2minkms def _build_summary_statistics(obj): """ Generate session statistics from a given DataFrame. Parameters -------...
28.480769
89
0.637677
0
0
0
0
0
0
0
0
4,037
0.545172
b8d180754d7fc90d954cb1d916a92cd2b5b1aea1
589
py
Python
dribdat/decorators.py
gonzalocasas/dribdat
f8c326c96e851be199eb9f61daed6c8780e3bc27
[ "MIT" ]
21
2015-10-25T23:22:04.000Z
2019-04-01T06:42:54.000Z
dribdat/decorators.py
gonzalocasas/dribdat
f8c326c96e851be199eb9f61daed6c8780e3bc27
[ "MIT" ]
108
2020-02-11T10:07:53.000Z
2021-06-19T20:30:03.000Z
dribdat/decorators.py
OpendataCH/dribdat
90d95a12c782dea7d284a4c454a06481e67c1e37
[ "MIT" ]
12
2016-09-02T03:12:28.000Z
2021-06-02T07:58:48.000Z
# -*- coding: utf-8 -*- from functools import wraps from flask import abort, jsonify from flask_login import current_user def admin_required(f): @wraps(f) def decorated_function(*args, **kwargs): if not current_user.active or not current_user.is_admin: abort(403) return f(*args, *...
25.608696
64
0.657046
0
0
0
0
357
0.606112
0
0
45
0.076401
b8d3d6eef9923c53e2c72ef3ffa4d51959b6e188
263
py
Python
run_perf_benchmarks.py
alirezajahani60/FabFlee
e2cfdb6efc758281e123f6acc1b06f93176dd756
[ "BSD-3-Clause" ]
null
null
null
run_perf_benchmarks.py
alirezajahani60/FabFlee
e2cfdb6efc758281e123f6acc1b06f93176dd756
[ "BSD-3-Clause" ]
null
null
null
run_perf_benchmarks.py
alirezajahani60/FabFlee
e2cfdb6efc758281e123f6acc1b06f93176dd756
[ "BSD-3-Clause" ]
null
null
null
from base.fab import * from plugins.FabFlee.FabFlee import * @task def flee_get_perf(results_dir): print("{}/{}".format(env.local_results,results_dir)) my_file = open("{}/{}/perf.log".format(env.local_results,results_dir), 'r') print(my_file.read())
29.222222
79
0.703422
0
0
0
0
200
0.760456
0
0
26
0.098859
b8d3d895be119a8b71cde792e94daf1fc8fa955b
479
py
Python
vwgconnect/account.py
Farfar/vwgbroker
9acc9f1a259e26aa830a9534a6dea3cee21c09ff
[ "Apache-2.0" ]
null
null
null
vwgconnect/account.py
Farfar/vwgbroker
9acc9f1a259e26aa830a9534a6dea3cee21c09ff
[ "Apache-2.0" ]
null
null
null
vwgconnect/account.py
Farfar/vwgbroker
9acc9f1a259e26aa830a9534a6dea3cee21c09ff
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re import time import logging import asyncio import hashlib import jwt class Account: def __init__(self, username, password, spin=None, brand): self._username = username self._password = password self._spin = spin self._brand =...
18.423077
61
0.611691
349
0.728601
0
0
0
0
144
0.300626
48
0.100209
b8d7cf7888021a157102a64b5a55477b57bc5fa9
3,263
py
Python
src/project_02/project2_b.py
group7BSE1/BSE-2021
2553b12e5fd5d1015af4746bcf84a8ee7c1cb8e0
[ "MIT" ]
null
null
null
src/project_02/project2_b.py
group7BSE1/BSE-2021
2553b12e5fd5d1015af4746bcf84a8ee7c1cb8e0
[ "MIT" ]
null
null
null
src/project_02/project2_b.py
group7BSE1/BSE-2021
2553b12e5fd5d1015af4746bcf84a8ee7c1cb8e0
[ "MIT" ]
1
2021-04-07T14:49:04.000Z
2021-04-07T14:49:04.000Z
def open_file(): while True: file_name = input("Enter input file: ") try: measles = open(file_name, "r") break except: print("File unable to open. Invalid name or file doesn't exist!") continue # name it re-prompts for a write name return ...
37.079545
131
0.599142
0
0
0
0
0
0
0
0
1,295
0.396874
b8d7d6b700479d42df11c33ef276f3c562f44f38
159
py
Python
basic_algorithms/primeiro_ultimo_nome.py
Yta-ux/python_algorithms
62dd2d897e2f2de8783e68df3022170a86e9132e
[ "MIT" ]
1
2022-01-26T22:15:17.000Z
2022-01-26T22:15:17.000Z
basic_algorithms/primeiro_ultimo_nome.py
Yta-ux/python_algorithms
62dd2d897e2f2de8783e68df3022170a86e9132e
[ "MIT" ]
null
null
null
basic_algorithms/primeiro_ultimo_nome.py
Yta-ux/python_algorithms
62dd2d897e2f2de8783e68df3022170a86e9132e
[ "MIT" ]
null
null
null
nome = input('Nome Completo:').title().strip().split() print(f"""Prazer em Conhece-lo Seu Primeiro Nome e: {nome[0]} Seu Ultimo Nome e: {nome[len(nome)-1]}""")
39.75
54
0.666667
0
0
0
0
0
0
0
0
113
0.710692
b8d7f25bc4dac9b169ae8981214f8ae8040f25ce
3,193
py
Python
magnum/conductor/k8s_api.py
vivian-rook/magnum
7acc6eeda44ce6ffcca8b7fc2e682f80403ac4b7
[ "Apache-2.0" ]
null
null
null
magnum/conductor/k8s_api.py
vivian-rook/magnum
7acc6eeda44ce6ffcca8b7fc2e682f80403ac4b7
[ "Apache-2.0" ]
null
null
null
magnum/conductor/k8s_api.py
vivian-rook/magnum
7acc6eeda44ce6ffcca8b7fc2e682f80403ac4b7
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Huawei Technologies Co.,LTD. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
31
77
0.630442
2,502
0.783589
0
0
0
0
0
0
1,878
0.588162
b8d95b42f671a377b5da5f2e5ac42f949f5f6c0c
1,865
py
Python
secret/secret.py
futurice/vault
6da5341804509b7984d0a5817bbd13d3477fe0bc
[ "Apache-2.0" ]
9
2015-10-16T12:06:35.000Z
2020-04-03T09:05:06.000Z
secret/secret.py
futurice/vault
6da5341804509b7984d0a5817bbd13d3477fe0bc
[ "Apache-2.0" ]
null
null
null
secret/secret.py
futurice/vault
6da5341804509b7984d0a5817bbd13d3477fe0bc
[ "Apache-2.0" ]
3
2015-10-20T09:36:53.000Z
2021-01-18T20:49:41.000Z
#!/usr/bin/env python from __future__ import absolute_import from __future__ import print_function import logging, os, sys from pprint import pprint as pp from secret.project import get_project from secret.cli import prepare def trollius_log(level=logging.CRITICAL): os.environ['TROLLIUSDEBUG'] = "1" # more inform...
27.028986
69
0.676139
0
0
906
0.485791
925
0.495979
0
0
220
0.117962
b8da34c95a45838a0718da8340a3212acd784270
3,947
py
Python
tests/test_data.py
SaiKrishna1207/aos
a55a1eed80dc9b21f7e295b265228c0d54072a66
[ "Apache-2.0" ]
3
2020-03-03T08:35:42.000Z
2020-09-03T09:30:37.000Z
tests/test_data.py
SaiKrishna1207/aos
a55a1eed80dc9b21f7e295b265228c0d54072a66
[ "Apache-2.0" ]
4
2020-02-21T12:48:58.000Z
2020-04-30T11:12:52.000Z
tests/test_data.py
SaiKrishna1207/aos
a55a1eed80dc9b21f7e295b265228c0d54072a66
[ "Apache-2.0" ]
5
2020-03-01T04:14:32.000Z
2021-12-11T15:20:42.000Z
def get_obj1(): obj = \ { "sha": "d25341478381063d1c76e81b3a52e0592a7c997f", "commit": { "author": { "name": "Stephen Dolan", "email": "[email protected]", "date": "2013-06-22T16:30:59Z" }, "committer": { "name": "Stephen Dolan", ...
49.962025
123
0.633392
0
0
0
0
0
0
0
0
3,014
0.763618
b8dcb2e38617c441c3331cf21108a3eb3fba7a49
3,094
py
Python
test_main.py
zenranda/proj10-gcalfinal
ee32beb3ef570b23883d41f84394b28818e5a07c
[ "Artistic-2.0" ]
null
null
null
test_main.py
zenranda/proj10-gcalfinal
ee32beb3ef570b23883d41f84394b28818e5a07c
[ "Artistic-2.0" ]
2
2021-02-08T20:17:57.000Z
2021-04-30T20:38:59.000Z
test_main.py
zenranda/proj10-gcalfinal
ee32beb3ef570b23883d41f84394b28818e5a07c
[ "Artistic-2.0" ]
null
null
null
### #Various nose tests. If you want to adapt this for your own use, be aware that the start/end block list has a very specific formatting. ### import get_freebusy import arrow from operator import itemgetter from pymongo import MongoClient import secrets.admin_secrets import secrets.client_secrets MONGO_CLI...
55.25
624
0.649968
0
0
0
0
0
0
0
0
1,811
0.585326
b8dd4a9a3b779200a138616573ee9d9a08756937
2,664
py
Python
examples/scripts/ct_abel_tv_admm.py
lanl/scico
976c9e5833f8f67eed2eaa43460d89fb09bb9f78
[ "BSD-3-Clause" ]
18
2021-09-21T18:55:11.000Z
2022-03-21T20:13:05.000Z
examples/scripts/ct_abel_tv_admm.py
lanl/scico
976c9e5833f8f67eed2eaa43460d89fb09bb9f78
[ "BSD-3-Clause" ]
218
2021-09-21T21:45:08.000Z
2022-03-30T18:45:27.000Z
examples/scripts/ct_abel_tv_admm.py
lanl/scico
976c9e5833f8f67eed2eaa43460d89fb09bb9f78
[ "BSD-3-Clause" ]
2
2021-09-23T22:44:47.000Z
2021-12-18T16:01:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the SCICO package. Details of the copyright # and user license can be found in the 'LICENSE.txt' file distributed # with the package. r""" Regularized Abel Inversion ========================== This example demonstrates a TV-regularized Abel inversio...
24.897196
95
0.682432
0
0
0
0
0
0
0
0
996
0.373313
b8ddae5f1b6f6079138cdb43e8d72e2e1ca77817
1,760
py
Python
pyblas/level1/csrot.py
timleslie/pyblas
9109f2cc24e674cf59a3b39f95c2d7b8116ae884
[ "BSD-3-Clause" ]
null
null
null
pyblas/level1/csrot.py
timleslie/pyblas
9109f2cc24e674cf59a3b39f95c2d7b8116ae884
[ "BSD-3-Clause" ]
1
2020-10-10T23:23:06.000Z
2020-10-10T23:23:06.000Z
pyblas/level1/csrot.py
timleslie/pyblas
9109f2cc24e674cf59a3b39f95c2d7b8116ae884
[ "BSD-3-Clause" ]
null
null
null
from ..util import slice_ def csrot(N, CX, INCX, CY, INCY, C, S): """Applies a Givens rotation to a pair of vectors x and y Parameters ---------- N : int Number of elements in input vector CX : numpy.ndarray A single precision complex array, dimension (1 + (`N` - 1)*abs(`INCX`)) ...
29.333333
112
0.580682
0
0
0
0
0
0
0
0
1,472
0.836364
b8de8fb9e2f63a96dbca5bb30f4841f157b6ed7b
160
py
Python
items.py
yarnoiser/PyDungeon
c37ad314605065194732202539db50eef94ea3da
[ "BSD-3-Clause" ]
1
2018-05-15T01:26:04.000Z
2018-05-15T01:26:04.000Z
items.py
yarnoiser/PyDungeon
c37ad314605065194732202539db50eef94ea3da
[ "BSD-3-Clause" ]
null
null
null
items.py
yarnoiser/PyDungeon
c37ad314605065194732202539db50eef94ea3da
[ "BSD-3-Clause" ]
null
null
null
from dice import * class Item(): def __init__(self, weight): self.weight = weight class Weapon(item): def __init__(self, weight, damage_die, reach)
14.545455
47
0.69375
135
0.84375
0
0
0
0
0
0
0
0
b8df7da99167063e92023aa153878ad215a2e8ff
2,476
py
Python
leet.py
blackcow/pytorch-cifar-master
c571c8fd7fe521907755ca2eacb6aa877abe3493
[ "MIT" ]
null
null
null
leet.py
blackcow/pytorch-cifar-master
c571c8fd7fe521907755ca2eacb6aa877abe3493
[ "MIT" ]
null
null
null
leet.py
blackcow/pytorch-cifar-master
c571c8fd7fe521907755ca2eacb6aa877abe3493
[ "MIT" ]
null
null
null
第一题: import io import sys sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf-8') #str = input() #print(str) class Solution(object): def findMedium(l): length = len(l) l.sort() # 如果为奇数,输出中间的值 if length % 2 != 0: print(l[length//2]) # 如果为偶数,中心两位均值 ...
23.358491
79
0.468094
2,130
0.796559
0
0
0
0
0
0
415
0.155198
b8df9843139746c1adbc8ed57ae326c83672e193
1,091
py
Python
shop_website/users/views.py
omar00070/django-shopping-website
af2741b900b60631349ea2e6de17586994e31680
[ "MIT" ]
null
null
null
shop_website/users/views.py
omar00070/django-shopping-website
af2741b900b60631349ea2e6de17586994e31680
[ "MIT" ]
null
null
null
shop_website/users/views.py
omar00070/django-shopping-website
af2741b900b60631349ea2e6de17586994e31680
[ "MIT" ]
null
null
null
from django.shortcuts import render from .forms import RegistrationForm, UserUpdateForm, ProfileUpdateForm from django.shortcuts import redirect from .models import Profile from django.contrib.auth.decorators import login_required def registration(request): if request.method == 'POST': form = RegistrationForm(reque...
34.09375
88
0.75802
0
0
0
0
548
0.502291
0
0
101
0.092576
b8e0455d33253902aeabce67886870561b85812f
2,685
py
Python
quantumcat/gates/custom_gates/cirq/__init__.py
Artificial-Brain/quantumcat
eff99cac7674b3a1b7e1f752e7ebed2b960f85b3
[ "Apache-2.0" ]
20
2021-05-10T07:04:41.000Z
2021-12-13T17:12:05.000Z
quantumcat/gates/custom_gates/cirq/__init__.py
Artificial-Brain/quantumcat
eff99cac7674b3a1b7e1f752e7ebed2b960f85b3
[ "Apache-2.0" ]
2
2021-04-26T05:34:52.000Z
2021-05-16T13:46:22.000Z
quantumcat/gates/custom_gates/cirq/__init__.py
Artificial-Brain/quantumcat
eff99cac7674b3a1b7e1f752e7ebed2b960f85b3
[ "Apache-2.0" ]
17
2021-04-02T18:09:33.000Z
2022-02-10T16:38:57.000Z
# (C) Copyright Artificial Brain 2021. # # 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 ...
55.9375
75
0.84581
0
0
0
0
0
0
0
0
581
0.216387
b8e06a6109f1d799db4201a71cba9cf898507598
1,045
py
Python
CL_Net/Referential_Game/Number_Set/info.py
MarkFzp/ToM-Pragmatics
3de1956c36ea40f29a41e4c153c4b8cdc73afc15
[ "MIT" ]
null
null
null
CL_Net/Referential_Game/Number_Set/info.py
MarkFzp/ToM-Pragmatics
3de1956c36ea40f29a41e4c153c4b8cdc73afc15
[ "MIT" ]
null
null
null
CL_Net/Referential_Game/Number_Set/info.py
MarkFzp/ToM-Pragmatics
3de1956c36ea40f29a41e4c153c4b8cdc73afc15
[ "MIT" ]
null
null
null
import numpy as np import scipy.stats as sp from concept import Concept def info_gain(prev_dist, new_dist): return sp.entropy(prev_dist) - sp.entropy(new_dist) def main(): attributes = range(10) num_concepts = 5 concept_size = 4 concept_space = Concept(attributes, num_concepts, concept_size) problem1 = [(1, 2,...
30.735294
82
0.67177
0
0
0
0
0
0
0
0
34
0.032536
b8e0a7c86db8162077913d429a8e44b03bb440ed
1,695
py
Python
commands/misc/github.py
typhonshambo/TY-BOT-v3
eb192d495bf32ae3a56d4a60ec2aa4e1e6a7ef2c
[ "MIT" ]
null
null
null
commands/misc/github.py
typhonshambo/TY-BOT-v3
eb192d495bf32ae3a56d4a60ec2aa4e1e6a7ef2c
[ "MIT" ]
null
null
null
commands/misc/github.py
typhonshambo/TY-BOT-v3
eb192d495bf32ae3a56d4a60ec2aa4e1e6a7ef2c
[ "MIT" ]
null
null
null
import aiohttp import discord from discord.ext import commands from discord.commands import Option, slash_command, SlashCommandGroup import json with open ('././config/guilds.json', 'r') as f: data = json.load(f) guilds = data['guilds'] with open ('././config/api.json', 'r') as f: ApiData = json.load(f) githubApi...
23.219178
86
0.629499
1,302
0.766333
0
0
1,224
0.720424
1,143
0.672749
535
0.314891
b8e177cd51c2b5569754fe0293a60b5835aa4a05
1,126
py
Python
raspbeeryPi/smart-home-hubs/gy30.py
zibuyu1995/Hardware
8461ebf9b04a603b397d8396ae14b359bd89a8cf
[ "MIT" ]
2
2020-05-20T03:02:01.000Z
2020-06-14T15:38:31.000Z
raspbeeryPi/smart-home-hubs/gy30.py
zibuyu1995/Hardware
8461ebf9b04a603b397d8396ae14b359bd89a8cf
[ "MIT" ]
3
2018-08-05T04:38:56.000Z
2019-11-25T07:02:15.000Z
raspbeeryPi/smart-home-hubs/gy30.py
zibuyu1995/Hardware
8461ebf9b04a603b397d8396ae14b359bd89a8cf
[ "MIT" ]
1
2020-07-29T03:56:41.000Z
2020-07-29T03:56:41.000Z
import json import time import smbus from paho.mqtt import client as mqtt # BH1750FVI config DEVICE = 0x23 # Default device I2C address POWER_DOWN = 0x00 POWER_ON = 0x01 RESET = 0x07 CONTINUOUS_LOW_RES_MODE = 0x13 CONTINUOUS_HIGH_RES_MODE_1 = 0x10 CONTINUOUS_HIGH_RES_MODE_2 = 0x11 ONE_TIME_HIGH_RES_MODE_1 = 0x20 ON...
20.851852
68
0.694494
0
0
0
0
0
0
0
0
130
0.115453
b8e1956c9e02704f82448e09bd95db729640c5f1
18,721
py
Python
python/temp/yolo_main.py
plasticanne/unity-object-detection-zoo
a436aec8fd6b9b4067aafc20706e7d1896223d64
[ "MIT" ]
null
null
null
python/temp/yolo_main.py
plasticanne/unity-object-detection-zoo
a436aec8fd6b9b4067aafc20706e7d1896223d64
[ "MIT" ]
null
null
null
python/temp/yolo_main.py
plasticanne/unity-object-detection-zoo
a436aec8fd6b9b4067aafc20706e7d1896223d64
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Class definition of YOLO_v3 style detection model on image and video """ import os import numpy as np import tensorflow as tf from PIL import Image, ImageDraw, ImageFont import cv2 from keras import backend as K from keras.layers import Input, Lambda from keras.models import Model, Sequent...
41.418142
116
0.633834
8,307
0.443726
0
0
0
0
0
0
3,130
0.167192
b8e2aaafc2b4702776593b03b7fea1abb7e1b4d0
3,262
py
Python
src/extractor-lib/tests/csv_generation/test_normalized_directory_template.py
stephenfuqua/Ed-Fi-X-Fizz
94597eda585d4f62f69c12e2a58fa8e8846db11b
[ "Apache-2.0" ]
3
2020-10-15T10:29:59.000Z
2020-12-01T21:40:55.000Z
src/extractor-lib/tests/csv_generation/test_normalized_directory_template.py
stephenfuqua/Ed-Fi-X-Fizz
94597eda585d4f62f69c12e2a58fa8e8846db11b
[ "Apache-2.0" ]
40
2020-08-17T21:08:33.000Z
2021-02-02T19:56:09.000Z
src/extractor-lib/tests/csv_generation/test_normalized_directory_template.py
stephenfuqua/Ed-Fi-X-Fizz
94597eda585d4f62f69c12e2a58fa8e8846db11b
[ "Apache-2.0" ]
10
2021-06-10T16:27:27.000Z
2021-12-27T12:31:57.000Z
# SPDX-License-Identifier: Apache-2.0 # Licensed to the Ed-Fi Alliance under one or more agreements. # The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. # See the LICENSE and NOTICES files in the project root for more information. from os import path from sys import platform from ed...
30.773585
87
0.701104
0
0
0
0
0
0
0
0
857
0.262722
b8e2f0eed3c941ac36abbbe75adbed48e0a9d358
425
py
Python
python3-tutorial/02 Advanced/1216 UpdateMany.py
CoderDream/python-best-practice
40e6b5315daefb37c59daa1a1990ac1ae10f8cca
[ "MIT" ]
null
null
null
python3-tutorial/02 Advanced/1216 UpdateMany.py
CoderDream/python-best-practice
40e6b5315daefb37c59daa1a1990ac1ae10f8cca
[ "MIT" ]
null
null
null
python3-tutorial/02 Advanced/1216 UpdateMany.py
CoderDream/python-best-practice
40e6b5315daefb37c59daa1a1990ac1ae10f8cca
[ "MIT" ]
null
null
null
# update_one() 方法只能修匹配到的第一条记录,如果要修改所有匹配到的记录,可以使用 update_many()。 # 以下实例将查找所有以 F 开头的 name 字段,并将匹配到所有记录的 alexa 字段修改为 123: import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["runoobdb"] mycol = mydb["sites"] myquery = {"name": {"$regex": "^F"}} newvalues = {"$set": {"alexa": "12...
20.238095
63
0.694118
0
0
0
0
0
0
0
0
388
0.658744
b8e31fa93df9ea85fa09d4f2fd6acdf91de443e9
789
py
Python
search/linear/linear_search.py
alfiejsmith/algorithms
c1d816aba932a1ae0664ff2a5b7784e2a01e1de2
[ "MIT" ]
null
null
null
search/linear/linear_search.py
alfiejsmith/algorithms
c1d816aba932a1ae0664ff2a5b7784e2a01e1de2
[ "MIT" ]
null
null
null
search/linear/linear_search.py
alfiejsmith/algorithms
c1d816aba932a1ae0664ff2a5b7784e2a01e1de2
[ "MIT" ]
null
null
null
from random import shuffle """ Will search a list of integers for a value using a linear search algorithm. Does not require a sorted list to be passed in. Returns -1 if item is not found Linear Search: Best - O(1) Worst - O(n) Average - O(n) Space Complexity - O(1) """ def search(data: list, value: int) -> int: ...
22.542857
86
0.636248
0
0
0
0
0
0
0
0
373
0.47275
b8e38e1d075d3a7559a30980f5c79e4ab5617467
3,657
py
Python
gitScrabber/scrabTasks/git/projectDates.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
gitScrabber/scrabTasks/git/projectDates.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
gitScrabber/scrabTasks/git/projectDates.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2017 Roland Jaeger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
37.316327
80
0.623462
2,477
0.677331
0
0
0
0
0
0
2,787
0.7621
b8e396ee442faafcbc18f8f10aa0618271fca39e
3,526
py
Python
demo_maecce_for_pls.py
hkaneko1985/dcek
13d9228b2dc2fd87c2e08a01721e1b1b220f2e19
[ "MIT" ]
25
2019-08-23T12:39:14.000Z
2022-03-30T08:58:15.000Z
demo_maecce_for_pls.py
hkaneko1985/dcek
13d9228b2dc2fd87c2e08a01721e1b1b220f2e19
[ "MIT" ]
2
2022-01-06T11:21:21.000Z
2022-01-18T22:11:12.000Z
demo_maecce_for_pls.py
hkaneko1985/dcek
13d9228b2dc2fd87c2e08a01721e1b1b220f2e19
[ "MIT" ]
16
2019-12-12T08:20:48.000Z
2022-01-26T00:34:31.000Z
# -*- coding: utf-8 -*- # %reset -f """ @author: Hiromasa Kaneko """ # Demonstration of MAEcce in PLS modeling import matplotlib.figure as figure import matplotlib.pyplot as plt import numpy as np from dcekit.validation import mae_cce from sklearn import datasets from sklearn.cross_decomposition import PL...
44.632911
142
0.723199
0
0
0
0
0
0
0
0
544
0.154282
b8e5c7f7a18f5689f0dfad89a71f45469022396b
151,828
py
Python
bot.py
admica/evediscobot
3ece4cd65718ba5d62ef0beab80f1793ac96aa3a
[ "MIT" ]
null
null
null
bot.py
admica/evediscobot
3ece4cd65718ba5d62ef0beab80f1793ac96aa3a
[ "MIT" ]
null
null
null
bot.py
admica/evediscobot
3ece4cd65718ba5d62ef0beab80f1793ac96aa3a
[ "MIT" ]
null
null
null
#!/home/admica/python3/bin/python3 #Discord eve bot by admica import asyncio, discord, time, threading, websocket, json from discord.ext import commands from discord.ext.commands import Bot import aiohttp import re from queue import Queue from datetime import timedelta from datetime import datetime import os, sys impo...
44.892963
671
0.42726
149,139
0.982289
0
0
114,897
0.756758
113,859
0.749921
43,301
0.285198
b8e66118386395c82079c492edb8b95513d242cf
18,796
py
Python
tests/help_text_test.py
equinor/osdu-cli
579922556925ea7ad759a6230498378cf724b445
[ "MIT" ]
3
2021-08-19T05:59:39.000Z
2021-11-10T08:02:58.000Z
tests/help_text_test.py
equinor/osdu-cli
579922556925ea7ad759a6230498378cf724b445
[ "MIT" ]
2
2021-09-13T11:10:15.000Z
2021-11-25T13:21:54.000Z
tests/help_text_test.py
equinor/osdu-cli
579922556925ea7ad759a6230498378cf724b445
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) Equinor ASA. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ----------------------------------------------------------------------------- """Tests tha...
40.508621
114
0.546606
18,170
0.966695
0
0
1,023
0.054426
0
0
10,583
0.563045
b8e81060803693ffd42ace6d2aecd7a9dd90f046
417
py
Python
testing/resources/test_g.py
tongni1975/processing.py
0b9ad68a1dc289d5042d1d3b132c13cc157d3f88
[ "Apache-2.0" ]
null
null
null
testing/resources/test_g.py
tongni1975/processing.py
0b9ad68a1dc289d5042d1d3b132c13cc157d3f88
[ "Apache-2.0" ]
1
2021-06-25T15:36:38.000Z
2021-06-25T15:36:38.000Z
testing/resources/test_g.py
tongni1975/processing.py
0b9ad68a1dc289d5042d1d3b132c13cc157d3f88
[ "Apache-2.0" ]
null
null
null
import processing.opengl.PGraphics3D def setup(): size(100, 100, P3D) def draw(): # check that "g" is defined and is the expected type assert(isinstance(g, processing.opengl.PGraphics3D)) # check that the alias cameraMatrix->camera is working as expected g.camera(0, 0, -10, 0, 0, 0, 0, 1, 0) ...
26.0625
70
0.654676
0
0
0
0
0
0
0
0
122
0.292566
b8e9a8b69a6237c573c52a972df1c7ef664eba25
4,811
py
Python
scripts/experiments/intrinsic_evaluations/exbert/server/data/processing/create_faiss.py
antoilouis/netbert
ccd37ef8a1727557de74498132eea24db2135940
[ "MIT" ]
2
2021-01-29T01:30:51.000Z
2021-07-14T16:47:15.000Z
server/data/processing/create_faiss.py
CharlotteSean/exbert
75e6bb146ab799e3652a887562490d5f31357223
[ "Apache-2.0" ]
null
null
null
server/data/processing/create_faiss.py
CharlotteSean/exbert
75e6bb146ab799e3652a887562490d5f31357223
[ "Apache-2.0" ]
1
2020-03-04T14:02:28.000Z
2020-03-04T14:02:28.000Z
import faiss import numpy as np import utils.path_fixes as pf from pathlib import Path from data.processing.corpus_embeddings import CorpusEmbeddings from functools import partial import argparse FAISS_LAYER_PATTERN = 'layer_*.faiss' LAYER_TEMPLATE = 'layer_{:02d}.faiss' NLAYERS = 12 NHEADS = 12 def parse_args(): ...
33.17931
134
0.672833
1,623
0.337352
0
0
0
0
0
0
1,537
0.319476
b8e9db6f289a79604e54db518d87b8a53a1a0672
504
py
Python
weasyl/test/test_http.py
hyena/weasyl
a43ad885eb07ae89d6639f289a5b95f3a177439c
[ "Apache-2.0" ]
111
2016-05-18T04:18:18.000Z
2021-11-03T02:05:19.000Z
weasyl/test/test_http.py
hyena/weasyl
a43ad885eb07ae89d6639f289a5b95f3a177439c
[ "Apache-2.0" ]
1,103
2016-05-29T05:17:53.000Z
2022-03-31T18:12:40.000Z
weasyl/test/test_http.py
TheWug/weasyl
a568a542cc58c11e30621fb672c701531d4306a8
[ "Apache-2.0" ]
47
2016-05-29T20:48:37.000Z
2021-11-12T09:40:40.000Z
import pytest from weasyl import http @pytest.mark.parametrize(('wsgi_env', 'expected'), [ ({}, {}), ({'PATH_INFO': '/search', 'QUERY_STRING': 'q=example'}, {}), ({'HTTP_ACCEPT': '*/*'}, {'Accept': '*/*'}), ( {'CONTENT_LENGTH': '', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_UPGRADE_INSECURE_REQUES...
29.647059
102
0.603175
0
0
0
0
462
0.916667
0
0
230
0.456349
b8ea0aefe02a0ac8e734a613a8836ee2fbeec6cf
421
py
Python
chords/neural_network/classifier.py
fernando-figueredo/ChordsWebApp
9bf983ab5579c36c75447c74eec0400d78ab49f9
[ "MIT" ]
2
2021-03-30T01:09:51.000Z
2022-03-10T21:17:15.000Z
chords/neural_network/classifier.py
fernando-figueredo/ChordsWebApp
9bf983ab5579c36c75447c74eec0400d78ab49f9
[ "MIT" ]
null
null
null
chords/neural_network/classifier.py
fernando-figueredo/ChordsWebApp
9bf983ab5579c36c75447c74eec0400d78ab49f9
[ "MIT" ]
null
null
null
from neural_network.train import Trainer class Classifier(): def __init__(self, train=False): self.train = train self.trainer = Trainer() if not self.train: self.trainer.load() else: self.trainer.train() def classify(self, audio_file_path): #pre...
28.066667
59
0.643705
379
0.900238
0
0
0
0
0
0
51
0.12114
b8ea2be5c0eee4133b1b628fc992cd2fbe84768f
556
py
Python
cybox/common/metadata.py
tirkarthi/python-cybox
a378deb68b3ac56360c5cc35ff5aad1cd3dcab83
[ "BSD-3-Clause" ]
40
2015-03-05T18:22:51.000Z
2022-03-06T07:29:25.000Z
cybox/common/metadata.py
tirkarthi/python-cybox
a378deb68b3ac56360c5cc35ff5aad1cd3dcab83
[ "BSD-3-Clause" ]
106
2015-01-12T18:52:20.000Z
2021-04-25T22:57:52.000Z
cybox/common/metadata.py
tirkarthi/python-cybox
a378deb68b3ac56360c5cc35ff5aad1cd3dcab83
[ "BSD-3-Clause" ]
30
2015-03-25T07:24:40.000Z
2021-07-23T17:10:11.000Z
# Copyright (c) 2020, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. from mixbox import entities, fields import cybox.bindings.cybox_common as common_binding class Metadata(entities.Entity): _binding = common_binding _binding_class = common_binding.MetadataType _namesp...
32.705882
99
0.753597
358
0.643885
0
0
0
0
0
0
197
0.354317
b8ecff777a101fecf5e77b7561d2d3b4b1ad0ea3
972
py
Python
src/app/main/routes.py
Abh4git/PythonMongoService
f64fcb7c4db0db41adb8b74736c82e8de5f6dbec
[ "MIT" ]
null
null
null
src/app/main/routes.py
Abh4git/PythonMongoService
f64fcb7c4db0db41adb8b74736c82e8de5f6dbec
[ "MIT" ]
null
null
null
src/app/main/routes.py
Abh4git/PythonMongoService
f64fcb7c4db0db41adb8b74736c82e8de5f6dbec
[ "MIT" ]
null
null
null
#All Routes are defined here from flask_cors import CORS, cross_origin from app.main.controller.products import ProductController from flask import request, jsonify import json #Test route without any connections def test(): return "{testroutesuccess:'Test Route Success!'}" api_v2_cors_config = { "origins": [ ...
29.454545
92
0.737654
0
0
0
0
420
0.432099
0
0
345
0.354938
b8ed5ea88b3e1f4c3f96f668efbaca32325efa0f
6,850
py
Python
tests/test_user.py
ccfiel/fbchat-asyncio
4ba39a835c7374c2cbf2a34e4e4fbf5c60ce6891
[ "BSD-3-Clause" ]
1
2019-11-02T14:44:05.000Z
2019-11-02T14:44:05.000Z
tests/test_user.py
ccfiel/fbchat-asyncio
4ba39a835c7374c2cbf2a34e4e4fbf5c60ce6891
[ "BSD-3-Clause" ]
null
null
null
tests/test_user.py
ccfiel/fbchat-asyncio
4ba39a835c7374c2cbf2a34e4e4fbf5c60ce6891
[ "BSD-3-Clause" ]
null
null
null
import pytest import datetime from fbchat._user import User, ActiveStatus def test_user_from_graphql(): data = { "id": "1234", "name": "Abc Def Ghi", "first_name": "Abc", "last_name": "Ghi", "profile_picture": {"uri": "https://scontent-arn2-1.xx.fbcdn.net/v/..."}, "...
35.128205
88
0.489927
0
0
0
0
390
0.056934
0
0
2,967
0.433139
b8ed8469a90e01bd0b314d93c23d97aa1b93965d
143
py
Python
(3)Algorithms/operator_boolean.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(3)Algorithms/operator_boolean.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(3)Algorithms/operator_boolean.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
from operator import* a = -1 b = 5 print('a= ',a) print('b= ',b) print() print(not_(a)) print(truth(a)) print(is_(a,b)) print(is_not(a,b))
9.533333
21
0.594406
0
0
0
0
0
0
0
0
10
0.06993
b8edaac684aec68ed9d6e7241e67d70248284354
1,903
py
Python
nicos_mlz/erwin/setups/system.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/erwin/setups/system.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-08-18T10:55:42.000Z
2021-08-18T10:55:42.000Z
nicos_mlz/erwin/setups/system.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
description = 'system setup' group = 'lowlevel' sysconfig = dict( cache = 'localhost', instrument = 'ErWIN', experiment = 'Exp', datasinks = ['conssink', 'dmnsink'], notifiers = [], ) modules = ['nicos.commands.standard'] devices = dict( ErWIN = device('nicos.devices.instrument.Instrument', ...
29.734375
67
0.575933
0
0
0
0
0
0
0
0
697
0.366264
b8eeeede3579cb2a1baac69df57edebe5d6b3dd1
1,771
py
Python
clustering_normalized_cuts/run.py
kiss2u/google-research
2cd66234656f9e2f4218ed90a2d8aa9cf3139093
[ "Apache-2.0" ]
7
2020-03-15T12:14:07.000Z
2021-12-01T07:01:09.000Z
clustering_normalized_cuts/run.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
25
2020-07-25T08:53:09.000Z
2022-03-12T00:43:02.000Z
clustering_normalized_cuts/run.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
4
2021-02-08T10:25:45.000Z
2021-04-17T14:46:26.000Z
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
29.032787
79
0.749294
0
0
0
0
0
0
0
0
973
0.549407
b8ef33ed1947340aa880647a993de9c30d1767e8
4,029
py
Python
remps/policy/gaussian.py
albertometelli/remps
d243d4f23c4b8de5220788853c8e2dd5852e593e
[ "MIT" ]
6
2019-06-17T15:13:45.000Z
2020-08-27T10:09:16.000Z
remps/policy/gaussian.py
albertometelli/remps
d243d4f23c4b8de5220788853c8e2dd5852e593e
[ "MIT" ]
13
2020-01-28T22:43:36.000Z
2022-03-11T23:46:19.000Z
remps/policy/gaussian.py
albertometelli/remps
d243d4f23c4b8de5220788853c8e2dd5852e593e
[ "MIT" ]
1
2019-08-11T22:41:59.000Z
2019-08-11T22:41:59.000Z
import tensorflow as tf from remps.policy.policy import Policy from remps.utils.utils import get_default_tf_dtype class Gaussian(Policy): """ Used for torcs MultiLayerPerceptron Discrete policy. Parametrized by the input space, the action space and the hidden layer size. Basic policy network with...
35.034783
99
0.516505
3,911
0.970712
0
0
0
0
0
0
633
0.157111
b8f05419337e887d574b7c6ff46bba2da204e4eb
921
py
Python
rrr.py
tutacat/beep-play
41b50ebb0250289616cf3a4839fd0097d524ebd7
[ "BSD-2-Clause" ]
null
null
null
rrr.py
tutacat/beep-play
41b50ebb0250289616cf3a4839fd0097d524ebd7
[ "BSD-2-Clause" ]
null
null
null
rrr.py
tutacat/beep-play
41b50ebb0250289616cf3a4839fd0097d524ebd7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import math, random, subprocess, time sin=math.sin commands=["/usr/bin/setterm","/usr/bin/xset"] fname = "" file = None type = None _test = "" cmd = None class SystemError(BaseException): pass for c in commands: _test = subprocess.getoutput("setterm --blength 256") if not _test: ...
28.78125
141
0.624321
42
0.045603
0
0
0
0
0
0
203
0.220413
b8f101cbd2a4876f4d335fd3cc77c990454b6aca
26,558
py
Python
pygamma_agreement/continuum.py
faroit/pygamma-agreement
fcfcfe7332be15bd97e71b9987aa5c6104be299e
[ "MIT" ]
null
null
null
pygamma_agreement/continuum.py
faroit/pygamma-agreement
fcfcfe7332be15bd97e71b9987aa5c6104be299e
[ "MIT" ]
null
null
null
pygamma_agreement/continuum.py
faroit/pygamma-agreement
fcfcfe7332be15bd97e71b9987aa5c6104be299e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # The MIT License (MIT) # Copyright (c) 2020 CoML # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation ...
37.300562
114
0.613224
24,328
0.916033
195
0.007342
8,020
0.301981
0
0
9,989
0.37612
b8f295ce12bf7401ea1d40884fb3f417f25a7bfd
6,907
py
Python
stomasimulator/febio/xplt/xplt_calcs.py
woolfeh/stomasimulator
ead78b78809f35c17e2d784259bdeb56589a9d1c
[ "MIT" ]
2
2017-07-27T12:57:26.000Z
2017-07-28T13:55:15.000Z
stomasimulator/febio/xplt/xplt_calcs.py
woolfeh/stomasimulator
ead78b78809f35c17e2d784259bdeb56589a9d1c
[ "MIT" ]
null
null
null
stomasimulator/febio/xplt/xplt_calcs.py
woolfeh/stomasimulator
ead78b78809f35c17e2d784259bdeb56589a9d1c
[ "MIT" ]
1
2020-06-02T15:31:04.000Z
2020-06-02T15:31:04.000Z
import stomasimulator.geom.geom_utils as geom class AttributeCalculator(object): """ Abstraction for calculations performed on XPLT state data """ def __init__(self, prefix, reference_data, dimensionality, lambda_fn=None): self.prefix = '' if prefix is None else prefix self.reference_data = r...
37.538043
106
0.624005
6,691
0.968727
0
0
205
0.02968
0
0
1,936
0.280295
b8f30a5084a67468fea8c7e34b0fb7344b7f99fe
801
py
Python
ifplus/vfs/__init__.py
hitakaken/ifplus
8354eeceea8abcbcaeb5dcd1c11eef69cbef6557
[ "MIT" ]
null
null
null
ifplus/vfs/__init__.py
hitakaken/ifplus
8354eeceea8abcbcaeb5dcd1c11eef69cbef6557
[ "MIT" ]
null
null
null
ifplus/vfs/__init__.py
hitakaken/ifplus
8354eeceea8abcbcaeb5dcd1c11eef69cbef6557
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .helpers.vfs import VirtualFileSystem from .views.files import ns class VFS(object): def __init__(self, app=None, mongo=None, **kwargs): self.app = app self.mongo = mongo self.vfs = None if app is not None: self.app = app self.in...
33.375
84
0.516854
703
0.877653
0
0
0
0
0
0
78
0.097378
b8f325c7a53b048ae96a1a8dd82c6640cb732eac
51,954
py
Python
fordclassifier/evaluator/evaluatorClass.py
Orieus/one_def_classification
3269290e1fa06ec104a38810c5dffa5401f34ef1
[ "MIT" ]
null
null
null
fordclassifier/evaluator/evaluatorClass.py
Orieus/one_def_classification
3269290e1fa06ec104a38810c5dffa5401f34ef1
[ "MIT" ]
null
null
null
fordclassifier/evaluator/evaluatorClass.py
Orieus/one_def_classification
3269290e1fa06ec104a38810c5dffa5401f34ef1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' @author: Angel Navia Vázquez May 2018 ''' # import code # code.interact(local=locals()) import os import pickle # from fordclassifier.classifier.classifier import Classifier import numpy as np import pandas as pd from sklearn.metrics import roc_curve, auc import json i...
37.484848
100
0.508527
51,324
0.987817
0
0
0
0
0
0
15,467
0.297688
b8f4752d0093b3381dd899cada064a8f50a481ea
16
py
Python
cdn/__init__.py
Kingjmk/mlfaati
12c0dcbe0389c2c1da0bde80509fb3374955e293
[ "MIT" ]
1
2021-01-04T07:34:34.000Z
2021-01-04T07:34:34.000Z
cdn/__init__.py
Kingjmk/mlfaati
12c0dcbe0389c2c1da0bde80509fb3374955e293
[ "MIT" ]
null
null
null
cdn/__init__.py
Kingjmk/mlfaati
12c0dcbe0389c2c1da0bde80509fb3374955e293
[ "MIT" ]
null
null
null
""" CDN App """
4
7
0.375
0
0
0
0
0
0
0
0
16
1
b8f6634f75893c98121099a51543c4b0b9463dc6
2,722
py
Python
data/r_outletsdata.py
ljunhui/Koufu_SG_Map
8d440605cc90c49c6635f4d5202bd262e30b0efb
[ "MIT" ]
1
2021-04-01T13:57:15.000Z
2021-04-01T13:57:15.000Z
data/r_outletsdata.py
ljunhui/Koufu_SG_Map
8d440605cc90c49c6635f4d5202bd262e30b0efb
[ "MIT" ]
null
null
null
data/r_outletsdata.py
ljunhui/Koufu_SG_Map
8d440605cc90c49c6635f4d5202bd262e30b0efb
[ "MIT" ]
null
null
null
# %% Import import numpy as np import pandas as pd import requests import os from bs4 import BeautifulSoup """ Takes a dictionary of relevant brands and their URLs and returns a raw csv file """ # %% Functions def outlets_crawl(brand, url): """ Returns a raw, unformatted df of outlets with it's brand from t...
33.604938
134
0.653564
0
0
0
0
0
0
0
0
1,459
0.536003
b8f7dac938dacb0d70352e73d7ee85999cfcb966
5,918
py
Python
ue4docker/setup_cmd.py
Wadimich/ue4-docker
01ef4af09cf8e7b9e845203031b2bed3db06034b
[ "MIT" ]
1
2021-05-19T16:41:04.000Z
2021-05-19T16:41:04.000Z
ue4docker/setup_cmd.py
Wadimich/ue4-docker
01ef4af09cf8e7b9e845203031b2bed3db06034b
[ "MIT" ]
null
null
null
ue4docker/setup_cmd.py
Wadimich/ue4-docker
01ef4af09cf8e7b9e845203031b2bed3db06034b
[ "MIT" ]
null
null
null
import docker, os, platform, requests, shutil, subprocess, sys from .infrastructure import * # Runs a command without displaying its output and returns the exit code def _runSilent(command): result = SubprocessUtils.capture(command, check=False) return result.returncode # Performs setup for Linux hosts def _setupLi...
38.679739
126
0.70784
0
0
0
0
0
0
0
0
3,260
0.550862
b8f9dd022646dc722a37cd9325b2748aca492315
180
py
Python
src/lesson_developer_tools/unittest_truth.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
3
2018-08-14T09:33:52.000Z
2022-03-21T12:31:58.000Z
src/lesson_developer_tools/unittest_truth.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
src/lesson_developer_tools/unittest_truth.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
import unittest class TruthTest(unittest.TestCase): def testAssertTrue(self): self.assertTrue(True) def testAssertFalse(self): self.assertFalse(False)
15
35
0.694444
160
0.888889
0
0
0
0
0
0
0
0
b8f9fb55632e48828f82b3c4a79b4f130acc6705
6,570
py
Python
tia/trad/monitor_mainTr.py
jmakov/market_tia
0804fd82b4fb3ea52c171ea0759f0e10fc659bb2
[ "MIT" ]
1
2020-07-24T04:18:57.000Z
2020-07-24T04:18:57.000Z
tia/trad/monitor_mainTr.py
jmakov/market_tia
0804fd82b4fb3ea52c171ea0759f0e10fc659bb2
[ "MIT" ]
null
null
null
tia/trad/monitor_mainTr.py
jmakov/market_tia
0804fd82b4fb3ea52c171ea0759f0e10fc659bb2
[ "MIT" ]
1
2020-07-24T04:22:14.000Z
2020-07-24T04:22:14.000Z
import sys import time from tia.trad.tools.io.follow import followMonitor import tia.configuration as conf from tia.trad.tools.errf import eReport import ujson as json import matplotlib.pyplot as plt import math import collections import logging from tia.trad.tools.ipc.processLogger import PROCESS_NAME LOGGER_NAME = P...
37.118644
120
0.555403
0
0
0
0
0
0
0
0
933
0.142009
b8faedfafe51cef8b7826a43e9c04a44b4437054
1,975
py
Python
irocr/config.py
guidj/ir-orc
46476a847605d7d36deda5eb27d282eaa9e04d9a
[ "Apache-2.0" ]
1
2016-04-05T15:46:28.000Z
2016-04-05T15:46:28.000Z
irocr/config.py
guidj/ir-orc
46476a847605d7d36deda5eb27d282eaa9e04d9a
[ "Apache-2.0" ]
null
null
null
irocr/config.py
guidj/ir-orc
46476a847605d7d36deda5eb27d282eaa9e04d9a
[ "Apache-2.0" ]
null
null
null
import os import os.path import ConfigParser PROJECT_BASE = ''.join([os.path.dirname(os.path.abspath(__file__)), "/../"]) CONFIG_FILE = ''.join([PROJECT_BASE, 'config.ini']) _UNSET = object() class ConfigurationError(Exception): pass def get(section, option=None, type=None, fallback=_UNSET): config = Conf...
25.320513
93
0.515443
45
0.022785
0
0
0
0
0
0
130
0.065823
b8fc2913caa7185f3d28c952db02652d27ed5b76
8,940
py
Python
mmtbx/ions/tst_environment.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/ions/tst_environment.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/ions/tst_environment.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
# -*- coding: utf-8; py-indent-offset: 2 -*- from __future__ import division from mmtbx.ions.environment import ChemicalEnvironment import mmtbx.ions.identify from mmtbx import ions import mmtbx.monomer_library.pdb_interpretation from mmtbx import monomer_library from mmtbx.ions.environment import chem_carboxy, chem_...
41.581395
80
0.631767
0
0
0
0
0
0
0
0
302
0.033781
b8fde4b07b6cd3c768fcd79e7fc1ef7c9a747340
600
py
Python
extinfo/extractors/fileinfo_com.py
rpdelaney/extinfo
35463afe295b1bc83478960e67762ffb10915175
[ "Apache-2.0" ]
null
null
null
extinfo/extractors/fileinfo_com.py
rpdelaney/extinfo
35463afe295b1bc83478960e67762ffb10915175
[ "Apache-2.0" ]
null
null
null
extinfo/extractors/fileinfo_com.py
rpdelaney/extinfo
35463afe295b1bc83478960e67762ffb10915175
[ "Apache-2.0" ]
null
null
null
import re from ..utils import Report, fetch SITE = "fileinfo.com" PATH = "/extension" def extract(extension: str) -> list[Report]: soup = fetch(site=SITE, path=PATH, extension=extension) description_short = soup.find_all("h2")[0].text.strip() infoboxes = soup.find_all(attrs={"class": "infoBox"}) de...
26.086957
67
0.67
0
0
0
0
0
0
0
0
58
0.096667
b8fdf6d347c186c16105c41f259ca397f53533cf
801
py
Python
style/api/routers/prediction.py
imagination-ai/kerem-side-projects-monorepo
3d9da9d57f305ac2d6a03bab3787acfbee7269ee
[ "MIT" ]
null
null
null
style/api/routers/prediction.py
imagination-ai/kerem-side-projects-monorepo
3d9da9d57f305ac2d6a03bab3787acfbee7269ee
[ "MIT" ]
2
2022-01-20T15:46:39.000Z
2022-02-16T20:51:47.000Z
style/api/routers/prediction.py
imagination-ai/kerem-side-projects-monorepo
3d9da9d57f305ac2d6a03bab3787acfbee7269ee
[ "MIT" ]
null
null
null
from fastapi import APIRouter from pydantic import BaseModel from style.predict.servable.serve import get_servable router = APIRouter() class PredictionRequest(BaseModel): text: str model_name: str @router.get("/") async def index(): return {"success": True, "message": "Predictions Router is working!...
25.03125
73
0.746567
69
0.086142
0
0
581
0.725343
513
0.640449
117
0.146067
b8fe991a0b450794e796f906cb32a0c3c5911676
77
py
Python
pyrepl/iconsole.py
thinkle/snippets
a19fd709fc618cee9d76b7481b834c3e0d4ed397
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyrepl/iconsole.py
thinkle/snippets
a19fd709fc618cee9d76b7481b834c3e0d4ed397
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyrepl/iconsole.py
thinkle/snippets
a19fd709fc618cee9d76b7481b834c3e0d4ed397
[ "BSD-2-Clause-FreeBSD" ]
1
2019-08-28T22:06:53.000Z
2019-08-28T22:06:53.000Z
from IPython.Shell import IPShellEmbed ipshell = IPShellEmbed() ipshell()
11
38
0.779221
0
0
0
0
0
0
0
0
0
0
b8feb9d082e79ca3a8c079efe501a2cd98406b92
2,623
py
Python
src/tests/ftest/pool/create_capacity_test.py
berserk-fury/daos
e0a3249aa886962cef2345135b907b45f7109cae
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/pool/create_capacity_test.py
berserk-fury/daos
e0a3249aa886962cef2345135b907b45f7109cae
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/pool/create_capacity_test.py
berserk-fury/daos
e0a3249aa886962cef2345135b907b45f7109cae
[ "BSD-2-Clause-Patent" ]
1
2021-11-03T05:00:42.000Z
2021-11-03T05:00:42.000Z
#!/usr/bin/python3 """ (C) Copyright 2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ import time from pool_test_base import PoolTestBase from server_utils import ServerFailed class PoolCreateTests(PoolTestBase): # pylint: disable=too-many-ancestors,too-few-public-methods """Pool cre...
34.973333
80
0.626382
2,418
0.921845
0
0
0
0
0
0
1,336
0.50934
b8fecc2152a699d192482875bb377312659faf77
577
py
Python
async-utils/setup.py
goc9000/python-library
0a4a09278df6e84061baedda8997071e2201103f
[ "MIT" ]
null
null
null
async-utils/setup.py
goc9000/python-library
0a4a09278df6e84061baedda8997071e2201103f
[ "MIT" ]
null
null
null
async-utils/setup.py
goc9000/python-library
0a4a09278df6e84061baedda8997071e2201103f
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='atmfjstc-async-utils', version='0.1.0', author_email='[email protected]', package_dir={'': 'src'}, packages=find_packages(where='src'), install_requires=[ ], zip_safe=True, description="Utilities for async code", ...
20.607143
49
0.60312
0
0
0
0
0
0
0
0
251
0.435009
b8fef77cc6fd6e6d00ddf3b311025b4035166678
5,865
py
Python
msg_scheduler/analyzer.py
buaales/tt_offline_scheduler
257d8e2c94fc896c891e7d2a014bb2eebde996ce
[ "MIT" ]
5
2021-05-18T11:34:42.000Z
2022-02-24T03:33:43.000Z
msg_scheduler/analyzer.py
buaales/tt_offline_scheduler
257d8e2c94fc896c891e7d2a014bb2eebde996ce
[ "MIT" ]
null
null
null
msg_scheduler/analyzer.py
buaales/tt_offline_scheduler
257d8e2c94fc896c891e7d2a014bb2eebde996ce
[ "MIT" ]
3
2020-09-10T05:58:59.000Z
2022-02-25T01:50:25.000Z
import subprocess import sys from collections import defaultdict import pandas as pd import networkx import random import functools import matplotlib import matplotlib.pyplot as plt import matplotlib.animation as animation from .model import Network, Link, Frame, Node import io if sys.platform == 'darwin': matplo...
38.333333
119
0.554135
5,598
0.942583
0
0
0
0
0
0
682
0.114834
b8ff8b94d402dcdb466c2d51a4b1cfbb02411cf0
3,286
py
Python
endpoints/cotect-endpoints/cotect_endpoints/security.py
JNKielmann/cotect
1b213459b41ef18119948633385ebad2cc16e9e2
[ "MIT" ]
19
2020-03-18T15:49:58.000Z
2021-02-11T12:07:22.000Z
endpoints/cotect-endpoints/cotect_endpoints/security.py
JNKielmann/cotect
1b213459b41ef18119948633385ebad2cc16e9e2
[ "MIT" ]
6
2020-03-21T18:50:29.000Z
2022-02-27T01:38:20.000Z
endpoints/cotect-endpoints/cotect_endpoints/security.py
JNKielmann/cotect
1b213459b41ef18119948633385ebad2cc16e9e2
[ "MIT" ]
7
2020-03-24T14:42:35.000Z
2020-04-06T13:22:29.000Z
import logging import os import firebase_admin from fastapi import HTTPException, Security, status from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer from fastapi.security.api_key import APIKeyCookie, APIKeyHeader, APIKeyQuery from firebase_admin import auth from cotect_endpoints.utils import id_ut...
33.530612
114
0.693244
0
0
0
0
0
0
0
0
857
0.260803
77009347b5bee01d461e0bc59d8b6aa0208dc523
7,201
py
Python
ui/Pytest/test_Range.py
MoisesHenr/OCEAN
e99c853893adc89652794ace62fcc8ffa78aa7ac
[ "MIT" ]
15
2021-06-15T13:48:03.000Z
2022-01-26T13:51:46.000Z
ui/Pytest/test_Range.py
MoisesHenr/OCEAN
e99c853893adc89652794ace62fcc8ffa78aa7ac
[ "MIT" ]
1
2021-07-04T02:58:29.000Z
2021-07-04T02:58:29.000Z
ui/Pytest/test_Range.py
MoisesHenr/OCEAN
e99c853893adc89652794ace62fcc8ffa78aa7ac
[ "MIT" ]
2
2021-06-21T20:44:01.000Z
2021-06-23T11:10:56.000Z
# Author: Moises Henrique Pereira # this class handle the functions tests of controller of the component of the numerical features import pytest import sys from PyQt5 import QtWidgets from ui.mainTest import StaticObjects @pytest.mark.parametrize('slider', [1, 2.9, False, ('t1', 't2'), None]) def test_CIR_setSli...
56.257813
113
0.805583
0
0
0
0
520
0.072212
0
0
147
0.020414
770214b97687e419b49ca7614e24a42a26a9954c
2,092
py
Python
tools/clean_autogen_protos.py
embeddery/stackrox
d653406651df4331a714839ec2c0a23a93425c64
[ "Apache-2.0" ]
22
2022-03-31T14:32:18.000Z
2022-03-31T22:11:30.000Z
tools/clean_autogen_protos.py
embeddery/stackrox
d653406651df4331a714839ec2c0a23a93425c64
[ "Apache-2.0" ]
5
2022-03-31T14:35:28.000Z
2022-03-31T22:40:13.000Z
tools/clean_autogen_protos.py
embeddery/stackrox
d653406651df4331a714839ec2c0a23a93425c64
[ "Apache-2.0" ]
4
2022-03-31T16:33:58.000Z
2022-03-31T22:19:26.000Z
#!/usr/bin/env python3 import argparse import pathlib GENERATED_EXTENSIONS = ["pb.go", "pb.gw.go", "swagger.json"] def find_files(path, fileglob): files_full = list(path.glob(fileglob)) return files_full def strip_path_extension(filelist): # We cannot use Path.stem directly as it doesn't handle doubl...
31.223881
112
0.707935
0
0
0
0
0
0
0
0
329
0.157266
7702c9e7da503201d8308cee20a4f5351db96b01
21,848
py
Python
skbl/helpers.py
spraakbanken/skblportalen
05d0113c9ca73f8092765a08597d23091ba3bc1f
[ "MIT" ]
2
2018-03-15T16:19:36.000Z
2019-03-18T10:25:38.000Z
skbl/helpers.py
spraakbanken/skblportalen
05d0113c9ca73f8092765a08597d23091ba3bc1f
[ "MIT" ]
3
2018-06-05T19:35:11.000Z
2019-03-18T10:26:50.000Z
skbl/helpers.py
spraakbanken/skblportalen
05d0113c9ca73f8092765a08597d23091ba3bc1f
[ "MIT" ]
1
2018-06-05T19:07:56.000Z
2018-06-05T19:07:56.000Z
"""Define different helper functions.""" import datetime import json import re import sys import urllib.parse from urllib.request import Request, urlopen import icu import markdown from flask import current_app, g, make_response, render_template, request, url_for from flask_babel import gettext from . import static_...
34.244514
123
0.592045
0
0
0
0
0
0
0
0
7,173
0.328149
77054d9b1fb16933bc175b8744bb05cb5f7182d5
5,037
py
Python
boundaries/migrations/0001_initial.py
MinnPost/represent-boundaries
17f65d34a6ed761e72dbdf13ea78b64fdeaa356d
[ "MIT" ]
20
2015-03-17T09:10:39.000Z
2020-06-30T06:08:08.000Z
boundaries/migrations/0001_initial.py
MinnPost/represent-boundaries
17f65d34a6ed761e72dbdf13ea78b64fdeaa356d
[ "MIT" ]
14
2015-04-24T17:22:00.000Z
2021-06-22T16:50:24.000Z
boundaries/migrations/0001_initial.py
MinnPost/represent-boundaries
17f65d34a6ed761e72dbdf13ea78b64fdeaa356d
[ "MIT" ]
16
2015-04-27T23:32:46.000Z
2020-07-05T11:18:04.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.contrib.gis.db.models.fields class JSONField(models.TextField): """Mocks jsonfield 0.92's column-type behaviour""" def db_type(self, connection): if connection.vendor == 'postgresql' ...
65.415584
239
0.6351
4,884
0.969625
0
0
0
0
0
0
1,949
0.386937
7706515165e3817a767c32b6ac93a3b7c85f245e
1,267
py
Python
gitz/git/reference_branch.py
rec/gitz
cbb07f99dd002c85b5ca95896b33d03150bf9282
[ "MIT" ]
24
2019-07-26T03:57:16.000Z
2021-11-22T22:39:13.000Z
gitz/git/reference_branch.py
rec/gitz
cbb07f99dd002c85b5ca95896b33d03150bf9282
[ "MIT" ]
212
2019-06-13T13:44:26.000Z
2020-06-02T17:59:51.000Z
gitz/git/reference_branch.py
rec/gitz
cbb07f99dd002c85b5ca95896b33d03150bf9282
[ "MIT" ]
2
2019-08-09T13:55:38.000Z
2019-09-07T11:17:59.000Z
from . import functions from ..program import ARGS from ..program import ENV from ..program import PROGRAM def reference_branch(remote_branches=None): remote_branches = remote_branches or functions.remote_branches() remote, *rest = ARGS.reference_branch.split('/', maxsplit=1) if rest: if remote n...
28.155556
75
0.651144
0
0
0
0
0
0
0
0
184
0.145225
7707130bae4f273be796d5022abf873f7542914d
89
py
Python
cookies/apps.py
hamishwillee/http_tester_site
5c9fa6840c7931f4a7dbd669616cb7b06e29c068
[ "MIT" ]
null
null
null
cookies/apps.py
hamishwillee/http_tester_site
5c9fa6840c7931f4a7dbd669616cb7b06e29c068
[ "MIT" ]
8
2021-03-19T10:14:39.000Z
2022-03-12T00:24:41.000Z
cookies/apps.py
ADpDinamo/site
d7313cd6c151a381ccc803b81768673587cb8d45
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class CookiesConfig(AppConfig): name = 'cookies'
14.833333
33
0.752809
52
0.58427
0
0
0
0
0
0
9
0.101124
77076be0aee637dc1db01b51cb1e1bf652954a05
7,016
py
Python
src/single_pendulum.py
dpopchev/Computation_python
790bfc451b003ecbc626867035dc03a7b55d1fb9
[ "MIT" ]
null
null
null
src/single_pendulum.py
dpopchev/Computation_python
790bfc451b003ecbc626867035dc03a7b55d1fb9
[ "MIT" ]
null
null
null
src/single_pendulum.py
dpopchev/Computation_python
790bfc451b003ecbc626867035dc03a7b55d1fb9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # do not hesitate to debug import pdb # python computation modules and visualization import numpy as np import sympy as sy import scipy as sp import matplotlib.pyplot as plt from sympy import Q as syQ sy.init_printing(use_latex=True,forecolor="White") def Lyapunov_stability_test_linear(ev): ...
34.392157
83
0.651511
0
0
0
0
0
0
0
0
3,837
0.546893
770880f1a07d4982b42b16b52ebec66b0adb1c55
1,690
py
Python
web/accounts/views.py
drejkim/reading-quantified-server
54cf83629ae0139cbf4b9dc82b27a54056afef36
[ "MIT" ]
2
2020-10-30T23:46:44.000Z
2021-02-17T09:11:52.000Z
web/accounts/views.py
estherjk/reading-quantified-server
54cf83629ae0139cbf4b9dc82b27a54056afef36
[ "MIT" ]
7
2020-05-09T17:15:51.000Z
2021-09-22T18:16:55.000Z
web/accounts/views.py
drejkim/reading-quantified-server
54cf83629ae0139cbf4b9dc82b27a54056afef36
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import mixins from rest_framework import permissions from rest_framework import viewsets from rest_framework.decorators import action from .models import User from .serializers import UserSerializer # Create your views here. class UserViewSet(mixins.ListModelMi...
32.5
68
0.63432
1,406
0.831953
0
0
590
0.349112
0
0
364
0.215385
77089cdd70ca47f3aa10526e20e9f8906eab1767
2,197
py
Python
fixit/common/pseudo_rule.py
sk-/Fixit
ee0c2c9699f3cf5557b7f1210447c68be1542024
[ "Apache-2.0" ]
313
2020-09-02T20:35:57.000Z
2022-03-29T07:55:37.000Z
fixit/common/pseudo_rule.py
sk-/Fixit
ee0c2c9699f3cf5557b7f1210447c68be1542024
[ "Apache-2.0" ]
93
2020-09-02T19:51:22.000Z
2022-01-19T18:29:46.000Z
fixit/common/pseudo_rule.py
sk-/Fixit
ee0c2c9699f3cf5557b7f1210447c68be1542024
[ "Apache-2.0" ]
46
2020-09-02T21:16:57.000Z
2022-03-16T18:49:37.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import abc import ast import io import tokenize from pathlib import Path from typing import Iterable, Optional from fixit.common.report impor...
30.513889
88
0.680018
1,850
0.842057
0
0
608
0.276741
0
0
825
0.375512
770a2f395758f1a8fbdf72af2cefdb909802a41f
356
py
Python
homeschool/referrals/tests/test_models.py
chriswedgwood/homeschool
d5267b13154aaa52c9c3edbf06b251f123583ae8
[ "MIT" ]
154
2019-12-24T17:45:44.000Z
2022-03-30T23:03:06.000Z
homeschool/referrals/tests/test_models.py
chriswedgwood/homeschool
d5267b13154aaa52c9c3edbf06b251f123583ae8
[ "MIT" ]
397
2019-11-05T03:23:45.000Z
2022-03-31T04:51:55.000Z
homeschool/referrals/tests/test_models.py
chriswedgwood/homeschool
d5267b13154aaa52c9c3edbf06b251f123583ae8
[ "MIT" ]
44
2020-02-24T13:08:52.000Z
2022-02-24T05:03:13.000Z
from homeschool.referrals.tests.factories import ReferralFactory from homeschool.test import TestCase class TestReferral(TestCase): def test_factory(self): referral = ReferralFactory() assert referral.referring_user is not None assert referral.created_at is not None assert referra...
29.666667
64
0.752809
251
0.705056
0
0
0
0
0
0
0
0
770aad7e1ff56e67c95983849d2bf6bbbc1649fe
284
py
Python
slackwebhook/__init__.py
FoundryGroup/Slack-Webhook
1a71f68eec876684ffaa7ba936bbc099f55dfb81
[ "MIT" ]
null
null
null
slackwebhook/__init__.py
FoundryGroup/Slack-Webhook
1a71f68eec876684ffaa7ba936bbc099f55dfb81
[ "MIT" ]
null
null
null
slackwebhook/__init__.py
FoundryGroup/Slack-Webhook
1a71f68eec876684ffaa7ba936bbc099f55dfb81
[ "MIT" ]
null
null
null
################################################################################ # Python package __init__.py file. # # Author: Carl Cortright # Date: 12/20/2016 # ################################################################################ from slackwebhook import slackwebhook
28.4
80
0.323944
0
0
0
0
0
0
0
0
238
0.838028
770b052dd7eccaa42dd94c9096322a70a4b8491d
229
py
Python
scripts/fasta2vcf.py
jodyphelan/pathogenseq
2e04190f25063d722ef653e819b94eb66407ea8d
[ "MIT" ]
null
null
null
scripts/fasta2vcf.py
jodyphelan/pathogenseq
2e04190f25063d722ef653e819b94eb66407ea8d
[ "MIT" ]
null
null
null
scripts/fasta2vcf.py
jodyphelan/pathogenseq
2e04190f25063d722ef653e819b94eb66407ea8d
[ "MIT" ]
1
2018-05-11T14:54:51.000Z
2018-05-11T14:54:51.000Z
#! /usr/bin/env python import sys import pathogenseq as ps ref_file = sys.argv[1] query_file = sys.argv[2] prefix = sys.argv[3] ps.mauve_call_variants(ref_file,query_file,prefix) cmd = "bgzip -f %s.vcf" % prefix ps.run_cmd(cmd)
20.818182
50
0.737991
0
0
0
0
0
0
0
0
39
0.170306
770b263fbdf34c06e41fa87b5529ee3e705b5a07
20
py
Python
test/__init__.py
miguelcarrasco/anothercryptosolver
57ac6be024574a46492d1e84782ff02763e57010
[ "MIT" ]
null
null
null
test/__init__.py
miguelcarrasco/anothercryptosolver
57ac6be024574a46492d1e84782ff02763e57010
[ "MIT" ]
null
null
null
test/__init__.py
miguelcarrasco/anothercryptosolver
57ac6be024574a46492d1e84782ff02763e57010
[ "MIT" ]
null
null
null
__author__ = 'deon'
10
19
0.7
0
0
0
0
0
0
0
0
6
0.3
770c52f41e079a4cb403bba6dcadc3852fc8a850
231
py
Python
job_scheduler/cache/__init__.py
konkolorado/job-scheduler
e76b24d0592d9d1f62b5a1525b6a152b9983b2fa
[ "MIT" ]
null
null
null
job_scheduler/cache/__init__.py
konkolorado/job-scheduler
e76b24d0592d9d1f62b5a1525b6a152b9983b2fa
[ "MIT" ]
null
null
null
job_scheduler/cache/__init__.py
konkolorado/job-scheduler
e76b24d0592d9d1f62b5a1525b6a152b9983b2fa
[ "MIT" ]
1
2021-08-09T15:28:49.000Z
2021-08-09T15:28:49.000Z
from job_scheduler.cache.base import ScheduleCache from job_scheduler.cache.fake import FakeScheduleCache from job_scheduler.cache.redis import RedisScheduleCache all = ["ScheduleCache", "RedisScheduleCache", "FakeScheduleCache"]
38.5
66
0.848485
0
0
0
0
0
0
0
0
54
0.233766
770c61ce8220d1f9ab5e398ccfbfd93f6911fe13
317
py
Python
programming/python/ex004.py
Vinicius-Moraes20/personal-projects
c041909ab1c66eeca11768f8f7944eb351c8b8e7
[ "MIT" ]
null
null
null
programming/python/ex004.py
Vinicius-Moraes20/personal-projects
c041909ab1c66eeca11768f8f7944eb351c8b8e7
[ "MIT" ]
null
null
null
programming/python/ex004.py
Vinicius-Moraes20/personal-projects
c041909ab1c66eeca11768f8f7944eb351c8b8e7
[ "MIT" ]
null
null
null
valor = input("Digite algo: ") print("É do tipo", type(valor)) print("Valor numérico:", valor.isnumeric()) print("Valor Alfa:", valor.isalpha()) print("Valor Alfanumérico:", valor.isalnum()) print("Valor ASCII:", valor.isascii()) print("Valor Decimal", valor.isdecimal()) print("Valor Printavel", valor.isprintable())
39.625
45
0.712934
0
0
0
0
0
0
0
0
126
0.39375
770d1178d917aa0b3ade69999920d0f07b37f63c
447
py
Python
backend/src/util/observable.py
r2binx/heimboard
42059d367e5b15c4910e61f4be0e3b462da8d5f7
[ "MIT" ]
6
2021-12-20T21:36:03.000Z
2022-03-30T16:04:54.000Z
backend/src/util/observable.py
r2binx/heimboard
42059d367e5b15c4910e61f4be0e3b462da8d5f7
[ "MIT" ]
16
2021-12-20T20:14:43.000Z
2022-01-26T12:43:59.000Z
backend/src/util/observable.py
r2binx/heimboard
42059d367e5b15c4910e61f4be0e3b462da8d5f7
[ "MIT" ]
1
2022-01-25T20:59:35.000Z
2022-01-25T20:59:35.000Z
from typing import List class Observable: _observers: List = [] def __init__(self): self._observers = [] def subscribe(self, observer): self._observers.append(observer) def notify_observers(self, *args, **kwargs): for obs in self._observers: obs.notify(self, *arg...
20.318182
48
0.621924
420
0.939597
0
0
0
0
0
0
0
0
770d8aff527e695d052230658f4cc6a96df88def
26,579
py
Python
ae-tpcc-polyjuice-rl/training/PG.py
derFischer/Polyjuice
3ce467807822b5659efdd5759cae4563a9152b00
[ "Apache-2.0" ]
23
2021-05-11T13:14:36.000Z
2022-03-23T05:59:07.000Z
ae-tpcc-polyjuice-rl/training/PG.py
derFischer/Polyjuice
3ce467807822b5659efdd5759cae4563a9152b00
[ "Apache-2.0" ]
1
2021-08-16T07:37:18.000Z
2021-08-16T07:37:18.000Z
ae-tpcc-polyjuice-rl/training/PG.py
derFischer/Polyjuice
3ce467807822b5659efdd5759cae4563a9152b00
[ "Apache-2.0" ]
1
2021-07-01T15:33:25.000Z
2021-07-01T15:33:25.000Z
#coding=utf-8 import numpy as np import tensorflow as tf import os import sys import time import shutil import re import signal import subprocess import numpy as np import math from Policy import * np.set_printoptions(threshold=np.inf) BASELINES = 1 class MultiBaseline: def __init__(self, baseline_number): ...
53.051896
177
0.637533
26,309
0.989842
0
0
0
0
0
0
3,265
0.122841
770d8f29602f5abced8ace8b5ba5e47df2e792c0
335
py
Python
src/data/preprocessors/__init__.py
paulwarkentin/tf-ssd-vgg
f48e3ccbb8eb092d3cb82a9d90164c7328880477
[ "MIT" ]
5
2021-09-26T07:19:42.000Z
2022-03-11T23:25:36.000Z
ssd/src/data/preprocessors/__init__.py
bharatmahaur/ComparativeStudy
2e3b6de882acc2a465e1b7c8bcd23cc9c8181d3d
[ "Apache-2.0" ]
null
null
null
ssd/src/data/preprocessors/__init__.py
bharatmahaur/ComparativeStudy
2e3b6de882acc2a465e1b7c8bcd23cc9c8181d3d
[ "Apache-2.0" ]
null
null
null
## ## /src/data/preprocessors/__init__.py ## ## Created by Paul Warkentin <[email protected]> on 15/07/2018. ## Updated by Paul Warkentin <[email protected]> on 15/07/2018. ## from .bbox_preprocessor import BBoxPreprocessor from .default_preprocessor import DefaultPreprocessor from .image_preprocessor import Ima...
30.454545
66
0.797015
0
0
0
0
0
0
0
0
176
0.525373
770e96f574a33ca2bee58218e94c93fab61c4349
4,775
py
Python
camera.py
chenhsuanlin/signed-distance-SRN
d47ecca9d048e29adfa7f5b0170d1daba897e740
[ "MIT" ]
94
2020-10-26T17:32:32.000Z
2022-03-06T12:22:31.000Z
camera.py
albertotono/signed-distance-SRN
2e750d3fb71cf7570cf9be9f4a39040b5173795d
[ "MIT" ]
15
2020-10-27T12:48:31.000Z
2022-01-22T02:29:48.000Z
camera.py
albertotono/signed-distance-SRN
2e750d3fb71cf7570cf9be9f4a39040b5173795d
[ "MIT" ]
12
2020-10-26T20:26:07.000Z
2021-12-31T08:13:01.000Z
import numpy as np import os,sys,time import torch import torch.nn.functional as torch_F import collections from easydict import EasyDict as edict import util class Pose(): def __call__(self,R=None,t=None): assert(R is not None or t is not None) if R is None: if not isinstance(t,torch...
37.598425
97
0.604188
1,577
0.330262
0
0
0
0
0
0
512
0.107225
7710dc16a8fbe11c81dbff2a20f74da32953814d
1,550
py
Python
solutions/python3/problem1265.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
solutions/python3/problem1265.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
solutions/python3/problem1265.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 1265. Print Immutable Linked List in Reverse You are given an immutable linked list, print out all values of each node in reverse with the help of the following interface: ImmutableListNode: An interface of immutable linked list, you are given the head of the list. You need to use the foll...
29.245283
116
0.74129
403
0.26
0
0
0
0
0
0
1,228
0.792258
771202ad53d30186bb1f539c888cffb5dbe12c2c
3,403
py
Python
standard.py
futureisatyourhand/self-supervised-learning
af8b18639c89d138dbc3490827f7fe867d38387b
[ "Apache-2.0" ]
1
2022-02-09T10:14:12.000Z
2022-02-09T10:14:12.000Z
standard.py
futureisatyourhand/self-supervised-learning
af8b18639c89d138dbc3490827f7fe867d38387b
[ "Apache-2.0" ]
null
null
null
standard.py
futureisatyourhand/self-supervised-learning
af8b18639c89d138dbc3490827f7fe867d38387b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # -------------------------------------- # @Time : 2021/5/12$ 12:12$ # @Author : Qian Li # @Email : [email protected] # @File : network.py # Description : details(i.e., online network,online projector network, online predictor,classifier, target network, target projector,) for self-supe...
41
163
0.569498
2,577
0.757273
0
0
0
0
0
0
428
0.125771
771328ea922df3260ea4280307fa28df861e95c9
789
py
Python
aqualogic/frames.py
mj-sakellaropoulos/aqualogic
75a4803d36730eb634d4bb31de564e647ed40624
[ "MIT" ]
null
null
null
aqualogic/frames.py
mj-sakellaropoulos/aqualogic
75a4803d36730eb634d4bb31de564e647ed40624
[ "MIT" ]
null
null
null
aqualogic/frames.py
mj-sakellaropoulos/aqualogic
75a4803d36730eb634d4bb31de564e647ed40624
[ "MIT" ]
null
null
null
from enum import Enum, unique class Frames(Enum): FRAME_DLE = 0x10 FRAME_STX = 0x02 FRAME_ETX = 0x03 # Local wired panel (black face with service button) FRAME_TYPE_LOCAL_WIRED_KEY_EVENT = b'\x00\x02' # Remote wired panel (white face) FRAME_TYPE_REMOTE_WIRED_KEY_EVENT = b'\x00\x03' # ...
30.346154
78
0.712294
756
0.958175
0
0
0
0
0
0
273
0.346008
77135615dccca76a8c5274c97ffda5de511d3e32
87
py
Python
Python/Sum/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
5
2020-08-29T15:15:31.000Z
2022-03-01T18:22:34.000Z
Python/Sum/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
null
null
null
Python/Sum/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
1
2020-12-02T11:13:14.000Z
2020-12-02T11:13:14.000Z
num1 = input() num2 = input() num3 = input() print(int(num1) + int(num2) + int(num3))
14.5
40
0.609195
0
0
0
0
0
0
0
0
0
0
77139d03885bd7af5b622aa37432a424a7f5a2fe
5,525
py
Python
Python/scheduledEventsInteractiveTool.py
Azure-Samples/virtual-machines-python-scheduled-events-central-logging
d9028f296e4b78eb449e295b4e72a9204da84dcf
[ "MIT" ]
7
2017-04-20T03:09:10.000Z
2021-02-08T17:07:54.000Z
Python/scheduledEventsInteractiveTool.py
Azure-Samples/virtual-machines-python-scheduled-events-central-logging
d9028f296e4b78eb449e295b4e72a9204da84dcf
[ "MIT" ]
8
2017-04-19T17:57:48.000Z
2017-04-21T18:31:44.000Z
Python/scheduledEventsInteractiveTool.py
Azure-Samples/virtual-machines-python-scheduled-events-central-logging
d9028f296e4b78eb449e295b4e72a9204da84dcf
[ "MIT" ]
4
2017-04-19T17:33:50.000Z
2021-02-10T11:21:01.000Z
#!/usr/bin/python import json import socket import sys import getopt import logging from enum import Enum from datetime import datetime import base64 import hmac import hashlib import time import urllib.request import urllib.parse import configparser metadata_url = 'http://169.254.169.254/metadata/scheduledevents?api...
36.833333
97
0.673122
1,991
0.360362
0
0
0
0
0
0
1,146
0.207421
7714068c84e56c46ce9cbe59a4ed57f2565d3970
1,750
py
Python
E2E_TOD/config.py
kingb12/pptod
4cc920494b663c5352a507ed1e32f1e2509a8c93
[ "Apache-2.0" ]
54
2021-10-02T13:31:09.000Z
2022-03-25T03:44:54.000Z
E2E_TOD/config.py
programmeddeath1/pptod
52d26ddc7b917c86af721e810a202db7c7d3b398
[ "Apache-2.0" ]
8
2021-11-10T06:05:20.000Z
2022-03-25T03:27:29.000Z
E2E_TOD/config.py
programmeddeath1/pptod
52d26ddc7b917c86af721e810a202db7c7d3b398
[ "Apache-2.0" ]
14
2021-10-02T13:31:01.000Z
2022-03-27T15:49:33.000Z
import logging, time, os class Config: def __init__(self, data_prefix): # data_prefix = r'../data/' self.data_prefix = data_prefix self._multiwoz_damd_init() def _multiwoz_damd_init(self): self.vocab_path_train = self.data_prefix + '/multi-woz-processed/vocab' self.data...
42.682927
91
0.645714
1,722
0.984
0
0
0
0
0
0
634
0.362286
77147ffa79f630a4609f9a112ce607e6646e1ea3
6,438
py
Python
advanced_functionality/inference_pipeline_sparkml_xgboost_car_evaluation/preprocessor.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
5
2019-01-19T23:53:35.000Z
2022-01-29T14:04:31.000Z
advanced_functionality/inference_pipeline_sparkml_xgboost_car_evaluation/preprocessor.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
6
2020-01-28T22:54:35.000Z
2022-02-10T00:44:46.000Z
advanced_functionality/inference_pipeline_sparkml_xgboost_car_evaluation/preprocessor.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
8
2020-12-14T15:49:24.000Z
2022-03-23T18:38:36.000Z
from __future__ import print_function import time import sys import os import shutil import csv import boto3 from awsglue.utils import getResolvedOptions import pyspark from pyspark.sql import SparkSession from pyspark.ml import Pipeline from pyspark.ml.feature import StringIndexer, VectorIndexer, OneHotEncoder, Vec...
42.92
225
0.694626
0
0
0
0
0
0
0
0
2,314
0.359428
7714bae382cfe5335e914024d6f5ee9028364bc3
1,350
py
Python
response/response.py
benyamin-7/simple-snmp-collector
f21dc75bc2a28af0ce1c881837166d0034cac213
[ "MIT" ]
null
null
null
response/response.py
benyamin-7/simple-snmp-collector
f21dc75bc2a28af0ce1c881837166d0034cac213
[ "MIT" ]
null
null
null
response/response.py
benyamin-7/simple-snmp-collector
f21dc75bc2a28af0ce1c881837166d0034cac213
[ "MIT" ]
null
null
null
from datetime import datetime __author__ = 'aGn' __copyright__ = "Copyright 2018, Planet Earth" class Response(object): """Response Class""" def __init__(self): self.socket = None @staticmethod def publisher( module, meta_data, **kwargs ): """ Pack...
24.107143
86
0.474074
1,250
0.925926
0
0
764
0.565926
0
0
518
0.383704
77174314400427e0f14a7aea762b47ab497d31f3
1,399
py
Python
properjpg/filesmanager.py
vitorrloureiro/properjpg
4d68e4b9dc930f829d6f67b1d68e1018bdf6f87e
[ "MIT" ]
3
2022-02-16T14:38:25.000Z
2022-02-18T12:20:19.000Z
properjpg/filesmanager.py
vitorrloureiro/properjpg
4d68e4b9dc930f829d6f67b1d68e1018bdf6f87e
[ "MIT" ]
2
2022-02-21T05:54:14.000Z
2022-02-23T14:14:29.000Z
properjpg/filesmanager.py
vitorrloureiro/properjpg
4d68e4b9dc930f829d6f67b1d68e1018bdf6f87e
[ "MIT" ]
null
null
null
import mimetypes import os from pathlib import Path def ignore_files(dir: str, files: list[str]): """ Returns a list of files to ignore. To be used by shutil.copytree() """ return [f for f in files if Path(dir, f).is_file()] def get_input_images(input_folder: Path, output_path: Path): """ ...
27.98
86
0.623302
0
0
738
0.52752
0
0
0
0
411
0.293781
77176f91a315883bc70d79d05e8925871389967c
3,117
py
Python
mcoc/cdt_core/fetch_data.py
sumitb/mcoc-v3
93fa5d9d9b28541d19969765b6186072f0d747e7
[ "MIT" ]
null
null
null
mcoc/cdt_core/fetch_data.py
sumitb/mcoc-v3
93fa5d9d9b28541d19969765b6186072f0d747e7
[ "MIT" ]
null
null
null
mcoc/cdt_core/fetch_data.py
sumitb/mcoc-v3
93fa5d9d9b28541d19969765b6186072f0d747e7
[ "MIT" ]
null
null
null
from ..abc import MixinMeta import json import re class FetchData(MixinMeta): """CDT FetchData functions""" ## No cog dependencies## # def __init__(self, bot: Red): # """init""" # self.bot = bot async def aiohttp_http_to_text(ctx, url): """pull text from url, ret...
35.827586
85
0.5624
3,060
0.981713
0
0
0
0
2,237
0.717677
742
0.238049
77196d4e2e1432027536633a3f1233790aa78b63
7,175
py
Python
evaluate_network_example.py
VU-BEAM-Lab/DNNBeamforming
e8ee8c1e57188a795816b119279ac2e60e5c5236
[ "Apache-2.0" ]
1
2021-04-12T19:52:43.000Z
2021-04-12T19:52:43.000Z
evaluate_network_example.py
VU-BEAM-Lab/DNNBeamforming
e8ee8c1e57188a795816b119279ac2e60e5c5236
[ "Apache-2.0" ]
null
null
null
evaluate_network_example.py
VU-BEAM-Lab/DNNBeamforming
e8ee8c1e57188a795816b119279ac2e60e5c5236
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Jaime Tierney, Adam Luchies, and Brett Byram # 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...
28.137255
90
0.683902
0
0
0
0
0
0
0
0
2,570
0.358188
771ab20147dc0551086f34101e79824ead557fa2
4,392
py
Python
nexus_constructor/geometry/slit/slit_geometry.py
ess-dmsc/nexus-geometry-constructor
c4d869b01d988629a7864357b8fc2f49a0325111
[ "BSD-2-Clause" ]
null
null
null
nexus_constructor/geometry/slit/slit_geometry.py
ess-dmsc/nexus-geometry-constructor
c4d869b01d988629a7864357b8fc2f49a0325111
[ "BSD-2-Clause" ]
62
2018-09-18T14:50:34.000Z
2019-02-05T15:43:02.000Z
nexus_constructor/geometry/slit/slit_geometry.py
ess-dmsc/nexus-geometry-constructor
c4d869b01d988629a7864357b8fc2f49a0325111
[ "BSD-2-Clause" ]
null
null
null
from typing import List from PySide2.QtGui import QVector3D from nexus_constructor.common_attrs import SHAPE_GROUP_NAME, CommonAttrs from nexus_constructor.model.component import Component from nexus_constructor.model.geometry import OFFGeometryNoNexus class SlitGeometry: def __init__(self, component: Component...
33.784615
87
0.523452
4,134
0.941257
0
0
0
0
0
0
113
0.025729
771bb5f41967c5159144e1d6ef84a2f513ef5409
5,029
py
Python
part4/test.py
willogy-team/insights--tensorflow
2d4885c99e7b550e94d679bed1f192f62f7e4139
[ "MIT" ]
null
null
null
part4/test.py
willogy-team/insights--tensorflow
2d4885c99e7b550e94d679bed1f192f62f7e4139
[ "MIT" ]
null
null
null
part4/test.py
willogy-team/insights--tensorflow
2d4885c99e7b550e94d679bed1f192f62f7e4139
[ "MIT" ]
null
null
null
import os import argparse import numpy as np import tensorflow as tf from tensorflow.keras.optimizers import Adam from tensorflow.keras.models import Model from tensorflow.keras.preprocessing.image import load_img, img_to_array import matplotlib.pyplot as plt from visualizations.manual_plot_by_matplotlib import plot_...
39.912698
162
0.766156
0
0
0
0
0
0
0
0
1,193
0.237224
771d0991f9537430f57ccbbc794e519d04ca435c
5,149
py
Python
tlg_bot.py
macrergate/PIK_monitor
06f337d9b07c63619f3d6bbed0bbac03a6db87b3
[ "MIT" ]
null
null
null
tlg_bot.py
macrergate/PIK_monitor
06f337d9b07c63619f3d6bbed0bbac03a6db87b3
[ "MIT" ]
null
null
null
tlg_bot.py
macrergate/PIK_monitor
06f337d9b07c63619f3d6bbed0bbac03a6db87b3
[ "MIT" ]
null
null
null
import telegram from flatten_dict import flatten import os import time import datetime from pik import PIKData from helpers import hash_vals, dump_data, load_data, compare class Credentials(object): def __init__(self, credentials_json): self.__credentials = load_data(credentials_json) self.auth_t...
34.557047
105
0.571373
4,686
0.866494
0
0
0
0
0
0
1,209
0.223558
771d3fa0c3bd43d72d1bdf5d1c6f1888cb0021be
15,025
py
Python
CopyrightHeaderChecker.py
medazzo/CopyRitghHeaderChecker-
320642ebd9216338820b6876519e9fae69252dd7
[ "MIT" ]
2
2019-01-07T14:42:44.000Z
2019-01-07T14:42:46.000Z
CopyrightHeaderChecker.py
medazzo/CopyRightHeaderChecker
320642ebd9216338820b6876519e9fae69252dd7
[ "MIT" ]
null
null
null
CopyrightHeaderChecker.py
medazzo/CopyRightHeaderChecker
320642ebd9216338820b6876519e9fae69252dd7
[ "MIT" ]
null
null
null
#!/usr/bin/python # @author Mohamed Azzouni , Paris, France # import os import time import ntpath import sys import json import argparse from os.path import join, getsize from shutil import copyfile behaviour = """{ "reporting": true , "updatefiles": true , "excludeDirs" :[".git",".repo"], "shebang": { ...
43.175287
122
0.493178
0
0
0
0
0
0
0
0
8,916
0.593411
771d6750899b13f63733f55154de5c6a095ec756
2,132
py
Python
PYTHON/singly_linked_list.py
ceccs17d55/open-source-contribution
63d95a990cdcc1e31c5fca3cb61f2fa34dae9e1f
[ "MIT" ]
2
2022-03-10T17:37:24.000Z
2022-03-10T17:40:05.000Z
PYTHON/singly_linked_list.py
ceccs17d55/open-source-contribution
63d95a990cdcc1e31c5fca3cb61f2fa34dae9e1f
[ "MIT" ]
1
2021-10-03T19:52:07.000Z
2021-10-03T19:52:07.000Z
PYTHON/singly_linked_list.py
ceccs17d55/open-source-contribution
63d95a990cdcc1e31c5fca3cb61f2fa34dae9e1f
[ "MIT" ]
1
2021-10-04T17:22:09.000Z
2021-10-04T17:22:09.000Z
class Node: def __init__(self, data): self.data = data self.next = None class LinkedList: def __init__(self): self.head = None def print_list(self): temp = self.head linked_list = '' while temp: linked_list += str(temp.data) + " -> " ...
20.304762
61
0.533771
1,656
0.776735
0
0
0
0
0
0
463
0.217167
771de5725155e6d31fa7d7b90220c29436ed35b2
22,048
py
Python
addons/odoo_marketplace/models/res_config.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/odoo_marketplace/models/res_config.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/odoo_marketplace/models/res_config.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
1
2021-05-05T07:59:08.000Z
2021-05-05T07:59:08.000Z
# -*- coding: utf-8 -*- ################################################################################# # Author : Webkul Software Pvt. Ltd. (<https://webkul.com/>) # Copyright(c): 2015-Present Webkul Software Pvt. Ltd. # License URL : https://store.webkul.com/license.html/ # All Rights Reserved. # # # # This pr...
73.249169
186
0.73408
21,235
0.963126
0
0
12,739
0.577785
0
0
9,232
0.418723
771e1c4b8e1935e576368e845f369c110a609b20
18,274
py
Python
igf_data/utils/tools/picard_util.py
imperial-genomics-facility/data-management-python
7b867d8d4562a49173d0b823bdc4bf374a3688f0
[ "Apache-2.0" ]
7
2018-05-08T07:28:08.000Z
2022-02-21T14:56:49.000Z
igf_data/utils/tools/picard_util.py
imperial-genomics-facility/data-management-python
7b867d8d4562a49173d0b823bdc4bf374a3688f0
[ "Apache-2.0" ]
15
2021-08-19T12:32:20.000Z
2022-02-09T19:52:51.000Z
igf_data/utils/tools/picard_util.py
imperial-genomics-facility/data-management-python
7b867d8d4562a49173d0b823bdc4bf374a3688f0
[ "Apache-2.0" ]
2
2017-05-12T15:20:10.000Z
2020-05-07T16:25:11.000Z
import os,subprocess from shlex import quote import pandas as pd from igf_data.utils.singularity_run_wrapper import execute_singuarity_cmd from igf_data.utils.fileutils import check_file_path,get_temp_dir class Picard_tools: ''' A class for running picard tool :param java_exe: Java executable path ...
43.927885
140
0.525172
18,062
0.988399
0
0
4,294
0.234979
0
0
5,026
0.275036
771f7ee9bb91bc23000b0e85deecce770eb956d7
8,348
py
Python
app/utils/NetworkingUtils.py
DiegoSilva776/linkehub_insigth_api
1909a9c1b28901ab6dc0be6815741aed848b4363
[ "MIT" ]
2
2018-06-25T03:07:28.000Z
2018-06-26T13:52:23.000Z
app/utils/NetworkingUtils.py
DiegoSilva776/linkehub_insigth_api
1909a9c1b28901ab6dc0be6815741aed848b4363
[ "MIT" ]
null
null
null
app/utils/NetworkingUtils.py
DiegoSilva776/linkehub_insigth_api
1909a9c1b28901ab6dc0be6815741aed848b4363
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os import json import http.client import urllib import time sys.path.append("../") from models.ApiInstance import ApiInstance from utils.ConstantUtils import ConstantUtils ''' NetworkingUtils is responsible for holding the external URLs and the default parameters o...
36.295652
157
0.574868
7,995
0.957714
0
0
0
0
0
0
2,660
0.318639