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
5a2a33ed323999913f0d3da3c440981176e3bcd7
159
py
Python
Dashboard with Django/updates/forms.py
reddyprasade/Data-Analysis-with-Python-
2440e23486856eea5556c8262467b3a618032bc2
[ "MIT" ]
1
2021-06-29T23:15:05.000Z
2021-06-29T23:15:05.000Z
Dashboard with Django/updates/forms.py
reddyprasade/Data-Analysis-with-Python-
2440e23486856eea5556c8262467b3a618032bc2
[ "MIT" ]
null
null
null
Dashboard with Django/updates/forms.py
reddyprasade/Data-Analysis-with-Python-
2440e23486856eea5556c8262467b3a618032bc2
[ "MIT" ]
1
2021-12-20T10:04:53.000Z
2021-12-20T10:04:53.000Z
from django.forms import ModelForm from updates.models import Post class Postform(ModelForm): class Meta: model = Post fields = ['title','body','date']
17.666667
34
0.72956
89
0.559748
0
0
0
0
0
0
19
0.119497
5a2a74b028d05464645069f119b32c24c0d83261
1,965
py
Python
main.py
neuroidss/eeglstm
693d39347afb3c7fa8272e813ce1f841b892a212
[ "MIT" ]
21
2018-11-17T11:46:46.000Z
2021-12-15T01:54:31.000Z
main.py
neuroidss/eeglstm
693d39347afb3c7fa8272e813ce1f841b892a212
[ "MIT" ]
1
2018-05-15T14:04:49.000Z
2018-05-15T14:04:49.000Z
main.py
neuroidss/eeglstm
693d39347afb3c7fa8272e813ce1f841b892a212
[ "MIT" ]
4
2018-12-21T03:16:20.000Z
2020-05-02T09:37:39.000Z
#%% [markdown] # # We will load EEG data from the lab and attemp to build a classifier that distinguishes between learners and non-learners #%% import mne import numpy as np import os.path import glob import re import pandas as pd # try to enable cuda support to speed up filtering, make sure the MNE_USE_C...
31.190476
156
0.707379
0
0
0
0
0
0
0
0
919
0.467684
5a2a96f1206233db3ee9862dbb3187153e48e3d9
241
py
Python
ex066.py
dsjocimar/python
5716f46a9fa7f64aa78a39df9c262c5392571340
[ "MIT" ]
null
null
null
ex066.py
dsjocimar/python
5716f46a9fa7f64aa78a39df9c262c5392571340
[ "MIT" ]
null
null
null
ex066.py
dsjocimar/python
5716f46a9fa7f64aa78a39df9c262c5392571340
[ "MIT" ]
null
null
null
# Exercício 066 soma = total = 0 while True: n = int(input('Digite um valor [999 para parar]: ')) if n == 999: break soma += n total += 1 print(f'O total de números digitados foi {total} e a soma deles vale {soma}')
24.1
78
0.59751
0
0
0
0
0
0
0
0
123
0.506173
5a2aef76ad354c4dafd74c644c7cdf56a923d14d
749
py
Python
test/test_api_data_utils.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
3
2019-04-15T13:33:57.000Z
2019-10-21T17:19:19.000Z
test/test_api_data_utils.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
null
null
null
test/test_api_data_utils.py
onap/optf-osdf
2b9e7f4fca3d510a201283a8561f6ff3424f5fd6
[ "Apache-2.0" ]
null
null
null
import json import os from osdf.utils import api_data_utils from collections import defaultdict BASE_DIR = os.path.dirname(__file__) with open(os.path.join(BASE_DIR, "placement-tests/request.json")) as json_data: req_json = json.load(json_data) class TestVersioninfo(): # # Tests for api_data_utils.py # d...
34.045455
147
0.750334
495
0.660881
0
0
0
0
0
0
311
0.41522
5a2b70864ff65608d3a0ed95eba0ce2781b1326a
10,396
py
Python
Model_SIR/no.py
AP-2020-1S/covid-19-guaya-kilera
f307d17b6540e881a93596ecd4b7857f5d7d9a18
[ "CC-BY-3.0", "MIT" ]
null
null
null
Model_SIR/no.py
AP-2020-1S/covid-19-guaya-kilera
f307d17b6540e881a93596ecd4b7857f5d7d9a18
[ "CC-BY-3.0", "MIT" ]
null
null
null
Model_SIR/no.py
AP-2020-1S/covid-19-guaya-kilera
f307d17b6540e881a93596ecd4b7857f5d7d9a18
[ "CC-BY-3.0", "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy import integrate, optimize from scipy.signal import savgol_filter from dane import population as popu dias_restar = 4 # Los últimos días de información que no se tienen en cuenta dias_pred = 31 # Días sobre los cuáles se hará la predic...
47.907834
194
0.60379
0
0
0
0
0
0
0
0
3,940
0.378083
5a2c7e2ea60e80d086779df6d65e7f9d20374ff7
733
py
Python
backend/cw_backend/views/admin_courses.py
veronikks/pyladies-courseware
e1151a704159141e0b1cb649c17cfdd5ca5f689b
[ "MIT" ]
null
null
null
backend/cw_backend/views/admin_courses.py
veronikks/pyladies-courseware
e1151a704159141e0b1cb649c17cfdd5ca5f689b
[ "MIT" ]
null
null
null
backend/cw_backend/views/admin_courses.py
veronikks/pyladies-courseware
e1151a704159141e0b1cb649c17cfdd5ca5f689b
[ "MIT" ]
null
null
null
import aiohttp from aiohttp import web from aiohttp_session import get_session import asyncio import logging from pathlib import Path logger = logging.getLogger(__name__) routes = web.RouteTableDef() @routes.get('/api/admin/course/{course_id}/reload_course') async def reload_course(req): session = await get_se...
28.192308
76
0.721692
0
0
0
0
527
0.718963
468
0.638472
96
0.130969
5a2e4a10cc2ee782907da20e988df75437125628
751
py
Python
duplicate_csv.py
AronFreyr/de1-project
9e95346db9a6955ee017d59c73c83251d529d8ff
[ "Apache-2.0" ]
null
null
null
duplicate_csv.py
AronFreyr/de1-project
9e95346db9a6955ee017d59c73c83251d529d8ff
[ "Apache-2.0" ]
null
null
null
duplicate_csv.py
AronFreyr/de1-project
9e95346db9a6955ee017d59c73c83251d529d8ff
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[7]: import os write_to_csv_file = 'million_song_subset.csv' csv_file_read = open(write_to_csv_file,'r') csv_file_write = open(write_to_csv_file,'a') while True: next_line = csv_file_read.readline() if not next_line: break csv_file_size = os.pat...
17.465116
64
0.660453
0
0
0
0
0
0
0
0
181
0.241012
5a2e5a469bcfb11fd51f01901cb6f4cfecb26b08
4,444
py
Python
src/main/python/graphing-scripts/utils.py
DistributedSystemsGroup/cluster-scheduler-simulator
9733dc644736dd0f8c2e1baff09efeb680d6a4d8
[ "BSD-3-Clause" ]
2
2018-06-28T04:31:55.000Z
2019-06-24T02:18:24.000Z
src/main/python/graphing-scripts/utils.py
DistributedSystemsGroup/cluster-scheduler-simulator
9733dc644736dd0f8c2e1baff09efeb680d6a4d8
[ "BSD-3-Clause" ]
null
null
null
src/main/python/graphing-scripts/utils.py
DistributedSystemsGroup/cluster-scheduler-simulator
9733dc644736dd0f8c2e1baff09efeb680d6a4d8
[ "BSD-3-Clause" ]
3
2017-06-22T11:32:41.000Z
2019-10-28T01:22:26.000Z
# Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, this # list o...
33.666667
84
0.645815
0
0
0
0
0
0
0
0
2,815
0.633438
5a2f26092de22be2a78e6f158531b00a44283d31
4,351
py
Python
ror/CopelandVoter.py
jakub-tomczak/ror
cf9ab38a2d66f4816a1289b9726911960059fce7
[ "MIT" ]
null
null
null
ror/CopelandVoter.py
jakub-tomczak/ror
cf9ab38a2d66f4816a1289b9726911960059fce7
[ "MIT" ]
null
null
null
ror/CopelandVoter.py
jakub-tomczak/ror
cf9ab38a2d66f4816a1289b9726911960059fce7
[ "MIT" ]
null
null
null
from typing import List, Tuple import numpy as np import pandas as pd import os import logging class CopelandVoter(): def __init__(self) -> None: self.__voting_matrix: np.ndarray = None self.__voting_sum: List[Tuple[str, float]] = [] @property def voting_matrix(self) -> np.ndarray: ...
54.3875
154
0.652264
4,255
0.977936
0
0
183
0.042059
0
0
1,053
0.242013
5a2fba5afd104e89bb7c06d80b25ac575e16cde2
2,528
py
Python
app/auth/forms/__init__.py
jg-725/IS219-FlaskAppProject
316aa298eda1bcda766ed085bb6f26ca7da7dfee
[ "BSD-3-Clause" ]
null
null
null
app/auth/forms/__init__.py
jg-725/IS219-FlaskAppProject
316aa298eda1bcda766ed085bb6f26ca7da7dfee
[ "BSD-3-Clause" ]
null
null
null
app/auth/forms/__init__.py
jg-725/IS219-FlaskAppProject
316aa298eda1bcda766ed085bb6f26ca7da7dfee
[ "BSD-3-Clause" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import validators from wtforms.fields import * class login_form(FlaskForm): email = EmailField('Email Address', [ validators.DataRequired(), ]) password = PasswordField('Password', [ validators.DataRequired(), validators.length(min=6, m...
32.410256
120
0.679589
2,419
0.956883
0
0
0
0
0
0
728
0.287975
5a31ca41c47a23fa18c352e7e70fee2a9750f1a1
11,220
py
Python
tern/analyze/default/dockerfile/lock.py
mzachar/tern
ac9dea4c907f27c9a3b7d85d79806c8fdab1d7e7
[ "BSD-2-Clause" ]
2
2020-05-21T00:00:36.000Z
2020-12-28T20:43:25.000Z
tern/analyze/default/dockerfile/lock.py
mzachar/tern
ac9dea4c907f27c9a3b7d85d79806c8fdab1d7e7
[ "BSD-2-Clause" ]
null
null
null
tern/analyze/default/dockerfile/lock.py
mzachar/tern
ac9dea4c907f27c9a3b7d85d79806c8fdab1d7e7
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2017-2020 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause """ Docker specific functions - used when trying to retrieve packages when given a Dockerfile """ import logging import os import re import sys from tern.classes.docker_image import DockerImag...
41.555556
79
0.668717
0
0
0
0
0
0
0
0
4,234
0.377362
5a3209a99cbad4e38fb7649cdcdb53c050ccbf17
2,003
py
Python
utils/firebase.py
YangWanjun/sales-encrypt
dcf0975164f60dd53385661029c4a270abdfd30e
[ "Apache-2.0" ]
null
null
null
utils/firebase.py
YangWanjun/sales-encrypt
dcf0975164f60dd53385661029c4a270abdfd30e
[ "Apache-2.0" ]
null
null
null
utils/firebase.py
YangWanjun/sales-encrypt
dcf0975164f60dd53385661029c4a270abdfd30e
[ "Apache-2.0" ]
null
null
null
import os import firebase_admin from firebase_admin import credentials, messaging from django.conf import settings from utils import common, constants logger = common.get_system_logger() cred = credentials.Certificate(os.path.join( settings.BASE_DIR, 'data', 'sales-yang-firebase-adminsdk-2ga7e-17745491...
29.028986
79
0.724413
0
0
0
0
0
0
0
0
1,377
0.571132
5a3220a6933b741f74449b702618162293bca339
1,944
py
Python
tests/settings.py
matrixorz/firefly
fb8082ccc525bf7b266960ae49fc0b15e522fd92
[ "MIT" ]
247
2015-04-13T05:58:10.000Z
2021-01-21T07:31:58.000Z
tests/settings.py
qiluosheng/firefly
fb8082ccc525bf7b266960ae49fc0b15e522fd92
[ "MIT" ]
57
2015-04-13T15:10:50.000Z
2016-04-08T09:15:27.000Z
tests/settings.py
qiluosheng/firefly
fb8082ccc525bf7b266960ae49fc0b15e522fd92
[ "MIT" ]
94
2015-04-12T06:03:30.000Z
2020-05-11T14:26:56.000Z
# coding=utf-8 DEBUG = True TESTING = True SECRET_KEY = 'secret_key for test' # mongodb MONGODB_SETTINGS = { 'db': 'firefly_test', 'username': '', 'password': '', 'host': '127.0.0.1', 'port': 27017 } # redis cache CACHE_TYPE = 'redis' CACHE_REDIS_HOST = '127.0.0.1' CACHE_REDIS_PORT = 6379 CACHE_R...
25.578947
67
0.679012
0
0
0
0
0
0
0
0
1,169
0.596429
5a3481b2ed60e03ed802eb9ef17136804b5ee7a0
981
py
Python
pyhack/boris_stag.py
Krissmedt/runko
073306de9284f1502d0538d33545bc14c80e8b93
[ "MIT" ]
null
null
null
pyhack/boris_stag.py
Krissmedt/runko
073306de9284f1502d0538d33545bc14c80e8b93
[ "MIT" ]
null
null
null
pyhack/boris_stag.py
Krissmedt/runko
073306de9284f1502d0538d33545bc14c80e8b93
[ "MIT" ]
null
null
null
import numpy as np from pyhack.py_runko_aux import * from pyhack.boris import * def boris_staggered(tile,dtf=1): c = tile.cfl cont = tile.get_container(0) pos = py_pos(cont) vel = py_vel(cont) E,B = py_em(cont) nq = pos.shape[0] dims = pos.shape[1] vel = boris_rp(vel,E,B,c,cont.q,dtf...
18.509434
48
0.579001
0
0
0
0
0
0
0
0
0
0
5a36eda2f990b0b613ca5b9070e7a670400461bc
1,806
py
Python
mbed_connector_api/tests/mock_data.py
ARMmbed/mbed-connector-python
a5024a01dc67cc192c8bf7a70b251fcf0a3f279b
[ "Apache-2.0" ]
2
2017-01-05T07:16:03.000Z
2018-09-04T02:26:19.000Z
mbed_connector_api/tests/mock_data.py
ARMmbed/mbed-connector-python
a5024a01dc67cc192c8bf7a70b251fcf0a3f279b
[ "Apache-2.0" ]
13
2016-02-29T17:31:56.000Z
2017-02-07T22:46:17.000Z
mbed_connector_api/tests/mock_data.py
ARMmbed/mbed-connector-python
a5024a01dc67cc192c8bf7a70b251fcf0a3f279b
[ "Apache-2.0" ]
2
2017-02-07T22:10:41.000Z
2017-03-06T06:38:58.000Z
# Copyright 2014-2015 ARM Limited # # Licensed under the Apache License, Version 2.0 # See LICENSE file for details. class mockData: """dictionary of mocking data for the mocking tests""" # dictionary to hold the mock data _data={} # function to add mock data to the _mock_data dictionary def _add(se...
42
448
0.613511
1,682
0.93134
0
0
0
0
0
0
1,244
0.688815
5a37802b395a4a964c1285e03e992f8b1712b575
2,134
py
Python
examples/demo/eager_demo/src/demo_1_pybullet.py
eager-dev/eager
f10ccbd7452acb3a29881ecd95c759f632c91da9
[ "Apache-2.0" ]
16
2021-07-02T14:48:53.000Z
2022-02-23T02:53:01.000Z
examples/demo/eager_demo/src/demo_1_pybullet.py
eager-dev/eager
f10ccbd7452acb3a29881ecd95c759f632c91da9
[ "Apache-2.0" ]
37
2021-06-30T12:10:29.000Z
2022-02-02T09:46:34.000Z
examples/demo/eager_demo/src/demo_1_pybullet.py
eager-dev/eager
f10ccbd7452acb3a29881ecd95c759f632c91da9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import rospy # Import eager packages from eager_core.utils.file_utils import launch_roscore, load_yaml from eager_core.eager_env import EagerEnv from eager_core.objects import Object from eager_core.wrappers.flatten import Flatten from eager_bridge_pybullet.pybullet_engine import PyBulletEngine...
33.873016
110
0.627929
0
0
0
0
0
0
0
0
580
0.27179
5a3924093bca8ec08e3a6779656c4151c0bb55bf
3,811
py
Python
kerastuner/engine/tuner_utils.py
DL-2020-Shakespeare/keras-tuner
5f35f101883a7884e9521de7db4eb632ab659775
[ "Apache-2.0" ]
1
2021-06-08T01:19:58.000Z
2021-06-08T01:19:58.000Z
kerastuner/engine/tuner_utils.py
DL-2020-Shakespeare/keras-tuner
5f35f101883a7884e9521de7db4eb632ab659775
[ "Apache-2.0" ]
null
null
null
kerastuner/engine/tuner_utils.py
DL-2020-Shakespeare/keras-tuner
5f35f101883a7884e9521de7db4eb632ab659775
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Keras Tuner 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
31.758333
78
0.680399
1,890
0.495933
0
0
289
0.075833
0
0
1,087
0.285227
5a395024f625042332e48560226cfb73aaa1b4a7
14,129
py
Python
angr/procedures/definitions/win32_d3dcompiler_47.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_d3dcompiler_47.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_d3dcompiler_47.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
190.932432
1,222
0.737561
0
0
0
0
0
0
0
0
3,881
0.274683
5a3bb304d53c998d16ff4c3d532be4b3380720b2
16,392
py
Python
explorer/explorer.py
holarchy/Holon
2a557b300bce10fb2c2ab85a1db4bdfd5df470aa
[ "MIT" ]
null
null
null
explorer/explorer.py
holarchy/Holon
2a557b300bce10fb2c2ab85a1db4bdfd5df470aa
[ "MIT" ]
null
null
null
explorer/explorer.py
holarchy/Holon
2a557b300bce10fb2c2ab85a1db4bdfd5df470aa
[ "MIT" ]
null
null
null
from flask import Flask, render_template, flash, abort, redirect, url_for, request import os import common import json import numbers import urllib.parse import pandas as pd from datetime import datetime from math import log10, floor base_dir = '/home/nick/Data/_ensembles' app = Flask(__name__) app.config['ENV'] = 'de...
37.944444
135
0.586872
7,791
0.475293
0
0
9,512
0.580283
0
0
2,766
0.168741
5a3c1f4058904f112a823d0ce1fa4d2ba743c174
6,151
py
Python
models/grammateus.py
monotasker/Online-Critical-Pseudepigrapha
456ef828834aeaedda8204a6107729f277063b9f
[ "W3C" ]
1
2017-09-03T12:59:19.000Z
2017-09-03T12:59:19.000Z
models/grammateus.py
OnlineCriticalPseudepigrapha/Online-Critical-Pseudepigrapha
456ef828834aeaedda8204a6107729f277063b9f
[ "W3C" ]
18
2018-05-11T17:08:48.000Z
2018-06-29T20:15:37.000Z
models/grammateus.py
monotasker/Online-Critical-Pseudepigrapha
456ef828834aeaedda8204a6107729f277063b9f
[ "W3C" ]
1
2017-09-17T16:13:45.000Z
2017-09-17T16:13:45.000Z
#! /usr/bin/python2.7 # -*- coding: utf8 -*- import datetime # from plugin_ajaxselect import AjaxSelect if 0: from gluon import db, Field, auth, IS_EMPTY_OR, IS_IN_DB, current, URL response = current.response response.files.insert(5, URL('static', 'plugin_ajaxselect/plugin_ajaxselect.js...
44.572464
105
0.662656
0
0
0
0
0
0
0
0
1,835
0.298325
5a3ccdb8281af1ea0b8a669045afc2025efc659b
12,559
py
Python
interface.py
Kryptagora/pysum
5281d47b7fa4d5500230b6b30797ab1a3adabcc2
[ "MIT" ]
3
2021-01-08T21:07:37.000Z
2021-11-29T19:26:56.000Z
interface.py
Kryptagora/pysum
5281d47b7fa4d5500230b6b30797ab1a3adabcc2
[ "MIT" ]
null
null
null
interface.py
Kryptagora/pysum
5281d47b7fa4d5500230b6b30797ab1a3adabcc2
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import filedialog from urllib.request import urlopen from pathlib import Path from tkinter import ttk import numpy as np import base64 import io import re from src.theme import theme from src.algorithm import blosum from src.utils import RichText def qopen(path:str): '''Opens and...
40.124601
155
0.597022
12,132
0.966
0
0
0
0
0
0
1,897
0.151047
5a3d662e5f34dbe67eeb69437b64718da7a2b8ce
4,050
py
Python
view/python_core/movies/colorizer/aux_funcs.py
galizia-lab/pyview
07bef637b0c60fae8830c1b3947e4a7bcd14bb2c
[ "BSD-3-Clause" ]
2
2021-11-07T10:17:16.000Z
2021-11-07T10:17:19.000Z
view/python_core/movies/colorizer/aux_funcs.py
galizia-lab/pyview
07bef637b0c60fae8830c1b3947e4a7bcd14bb2c
[ "BSD-3-Clause" ]
5
2021-11-03T12:43:03.000Z
2021-12-16T10:34:52.000Z
view/python_core/movies/colorizer/aux_funcs.py
galizia-lab/pyview
07bef637b0c60fae8830c1b3947e4a7bcd14bb2c
[ "BSD-3-Clause" ]
1
2021-09-23T15:46:26.000Z
2021-09-23T15:46:26.000Z
import numpy as np import re def apply_colormaps_based_on_mask(mask, data_for_inside_mask, data_for_outside_mask, colormap_inside_mask, colormap_outside_mask): """ Returns the combination of applying two colormaps to two datasets on two mutually exclusive sets of pixels a...
46.551724
123
0.604691
0
0
0
0
0
0
0
0
2,072
0.511605
5a3e53b2797ea32423806b35230113ec63c34d58
4,242
py
Python
bigml/tests/create_cluster_steps.py
javinp/python
bdec1e206ed028990503ed4bebcbc7023d3ff606
[ "Apache-2.0" ]
1
2021-06-20T11:51:22.000Z
2021-06-20T11:51:22.000Z
bigml/tests/create_cluster_steps.py
javinp/python
bdec1e206ed028990503ed4bebcbc7023d3ff606
[ "Apache-2.0" ]
null
null
null
bigml/tests/create_cluster_steps.py
javinp/python
bdec1e206ed028990503ed4bebcbc7023d3ff606
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2012-2015 BigML # # 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 requi...
37.539823
87
0.698963
0
0
0
0
0
0
0
0
1,453
0.342527
5a3f02391584923bfc3115e774e687008ccfb69b
3,649
py
Python
tests/ptp_clock_sim_time/test_ptp_clock_sim_time.py
psumesh/cocotbext-eth
39c585a8dd8dcdcfd56822a4f879ef059653757b
[ "MIT" ]
15
2020-11-26T14:40:54.000Z
2022-03-25T06:42:30.000Z
tests/ptp_clock_sim_time/test_ptp_clock_sim_time.py
psumesh/cocotbext-eth
39c585a8dd8dcdcfd56822a4f879ef059653757b
[ "MIT" ]
1
2021-03-24T06:28:20.000Z
2021-03-25T06:10:02.000Z
tests/ptp_clock_sim_time/test_ptp_clock_sim_time.py
psumesh/cocotbext-eth
39c585a8dd8dcdcfd56822a4f879ef059653757b
[ "MIT" ]
7
2020-12-06T09:59:39.000Z
2021-08-25T04:15:37.000Z
#!/usr/bin/env python """ Copyright (c) 2021 Alex Forencich 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, merg...
28.960317
107
0.693615
377
0.103316
0
0
1,216
0.333242
1,201
0.329131
1,314
0.360099
5a3f1fd52edcbc6a770d3bea9dab8192d49a92e5
1,838
py
Python
dex/section/section.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
7
2018-06-14T10:40:47.000Z
2021-05-18T08:55:34.000Z
dex/section/section.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
1
2020-05-28T08:59:50.000Z
2020-05-28T08:59:50.000Z
dex/section/section.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
3
2018-02-28T02:08:06.000Z
2018-09-12T03:09:18.000Z
# -- coding: utf-8 -- from section_base import * from section_map_item import * from section_header import * from section_string_id import * from section_type_id import * from section_proto_id import * from section_field_id import * from section_method_id import * from section_class_def import * from section_type_list...
39.106383
69
0.699674
0
0
0
0
0
0
0
0
74
0.039871
5a408ec9d28877bdb362b94265d0d74be34141c1
91
py
Python
Code coach problems/Easy/Python/Skee-Ball.py
Djivs/sololearn-code-solutions
7727dd97f79863a88841548770481f6f2abdc7bf
[ "MIT" ]
1
2020-07-27T07:32:57.000Z
2020-07-27T07:32:57.000Z
Code coach problems/Easy/Python/Skee-Ball.py
Djivs/sololearn-code-solutions
7727dd97f79863a88841548770481f6f2abdc7bf
[ "MIT" ]
null
null
null
Code coach problems/Easy/Python/Skee-Ball.py
Djivs/sololearn-code-solutions
7727dd97f79863a88841548770481f6f2abdc7bf
[ "MIT" ]
1
2020-11-07T12:45:21.000Z
2020-11-07T12:45:21.000Z
a = int(input()) b = int(input()) if a >=b*12: print("Buy it!") else: print("Try again")
13
19
0.56044
0
0
0
0
0
0
0
0
20
0.21978
5a41217fc99d7ef188d90f55041a7803b426c258
22
py
Python
gsb/rest/__init__.py
pfrancois/grisbi_django
4e27149522847c78ab9c0f0a06f0b1d371f7c205
[ "BSD-3-Clause" ]
null
null
null
gsb/rest/__init__.py
pfrancois/grisbi_django
4e27149522847c78ab9c0f0a06f0b1d371f7c205
[ "BSD-3-Clause" ]
null
null
null
gsb/rest/__init__.py
pfrancois/grisbi_django
4e27149522847c78ab9c0f0a06f0b1d371f7c205
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # init
7.333333
14
0.636364
0
0
0
0
0
0
0
0
20
0.909091
5a4164758499f35ed2ad174d38480235b72e03a1
4,416
py
Python
chris_turtlebot_dashboard/src/chris_turtlebot_dashboard/dashboard.py
xabigarde/chris_ros_turtlebot
ca26db3eafcb8aba7a322cca8fd44443f015e125
[ "BSD-3-Clause" ]
null
null
null
chris_turtlebot_dashboard/src/chris_turtlebot_dashboard/dashboard.py
xabigarde/chris_ros_turtlebot
ca26db3eafcb8aba7a322cca8fd44443f015e125
[ "BSD-3-Clause" ]
null
null
null
chris_turtlebot_dashboard/src/chris_turtlebot_dashboard/dashboard.py
xabigarde/chris_ros_turtlebot
ca26db3eafcb8aba7a322cca8fd44443f015e125
[ "BSD-3-Clause" ]
1
2021-07-23T14:09:18.000Z
2021-07-23T14:09:18.000Z
import roslib;roslib.load_manifest('kobuki_dashboard') import rospy import diagnostic_msgs from rqt_robot_dashboard.dashboard import Dashboard from rqt_robot_dashboard.widgets import ConsoleDashWidget, MenuDashWidget, IconToolButton from python_qt_binding.QtWidgets import QMessageBox, QAction from python_qt_binding.Q...
47.483871
147
0.673234
3,902
0.883605
0
0
0
0
0
0
581
0.131567
5a421a3520f2cd9636eea2d36b206d6735096aca
3,339
py
Python
msgpack_lz4block/__init__.py
AlsidOfficial/python-msgpack-lz4block
4cfa6fc69799530c72b73c660d0beabb4ebd5a81
[ "MIT" ]
1
2021-07-01T12:41:41.000Z
2021-07-01T12:41:41.000Z
msgpack_lz4block/__init__.py
AlsidOfficial/python-msgpack-lz4block
4cfa6fc69799530c72b73c660d0beabb4ebd5a81
[ "MIT" ]
null
null
null
msgpack_lz4block/__init__.py
AlsidOfficial/python-msgpack-lz4block
4cfa6fc69799530c72b73c660d0beabb4ebd5a81
[ "MIT" ]
null
null
null
import msgpack import lz4.block from msgpack.ext import Timestamp, ExtType import re def __map_obj(obj, key_map): if not isinstance(key_map, list): raise Exception('The key_map should be a list') elif len(obj) != len(key_map): raise Exception( 'The key_map list has length {} wherea...
42.265823
150
0.634921
0
0
0
0
0
0
0
0
1,362
0.407907
5a42367cb5c3c6ae30a847d5d4575149e7bc2d38
2,169
py
Python
scilpy/version.py
fullbat/scilpy
8f5b95a0b298ac95268c94d04a162b14fe2773ad
[ "MIT" ]
null
null
null
scilpy/version.py
fullbat/scilpy
8f5b95a0b298ac95268c94d04a162b14fe2773ad
[ "MIT" ]
null
null
null
scilpy/version.py
fullbat/scilpy
8f5b95a0b298ac95268c94d04a162b14fe2773ad
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import glob # Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z" _version_major = 0 _version_minor = 1 _version_micro = '' # use '' for first of series, number for 1 and above _version_extra = 'dev' # _version_extra = '' # Uncom...
30.985714
77
0.720609
0
0
0
0
0
0
0
0
1,370
0.631336
5a448e7214b3790abd510a4b2f97d52ddcfd5d87
3,765
py
Python
fireflies.py
dvsd/Firefly-Synchronization
89aec8513a386cf274f333ba8b4fa64555766619
[ "MIT" ]
1
2021-04-22T14:04:19.000Z
2021-04-22T14:04:19.000Z
fireflies.py
dvsd/Firefly-Synchronization
89aec8513a386cf274f333ba8b4fa64555766619
[ "MIT" ]
null
null
null
fireflies.py
dvsd/Firefly-Synchronization
89aec8513a386cf274f333ba8b4fa64555766619
[ "MIT" ]
null
null
null
from graphics import * import math import random windowWidth = 400 windowHeight = 400 fireflyRadius = 3 win = GraphWin("Fireflies",windowWidth,windowHeight,autoflush=False) win.setBackground('black') closeWindow = False fireflies = [] flashedFliesOpenSet = [] # flies that need to reset urge of neighbors flashedFliesC...
34.227273
140
0.712882
1,195
0.317397
0
0
0
0
0
0
739
0.196282
5a44e929a11797422604acb7129e5a00747b908f
2,350
py
Python
gb/tests/test_gibbs_sampler.py
myozka/granger-busca
e6922f85aa58ab0809951ec4d60b5df43d6c74e8
[ "BSD-3-Clause" ]
5
2018-09-06T13:37:04.000Z
2019-12-16T13:53:26.000Z
gb/tests/test_gibbs_sampler.py
myozka/granger-busca
e6922f85aa58ab0809951ec4d60b5df43d6c74e8
[ "BSD-3-Clause" ]
1
2021-06-09T06:08:25.000Z
2021-07-13T18:10:09.000Z
gb/tests/test_gibbs_sampler.py
myozka/granger-busca
e6922f85aa58ab0809951ec4d60b5df43d6c74e8
[ "BSD-3-Clause" ]
4
2020-03-30T14:54:27.000Z
2021-09-23T18:48:14.000Z
# -*- coding: utf8 from gb.randomkit.random import RNG from gb.samplers import BaseSampler from gb.samplers import CollapsedGibbsSampler from gb.stamps import Timestamps from gb.sloppy import SloppyCounter from numpy.testing import assert_equal import numpy as np def test_get_probability(): d = {} d[0] = ...
28.313253
73
0.631064
0
0
0
0
0
0
0
0
50
0.021277
5a44f541b7846b979545c92ddcc2e62d26b600d3
9,163
py
Python
python/tHome/sma/Link.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
18
2016-04-17T19:39:28.000Z
2020-11-19T06:55:20.000Z
python/tHome/sma/Link.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
6
2016-10-31T13:53:45.000Z
2019-03-20T20:47:03.000Z
python/tHome/sma/Link.py
ZigmundRat/T-Home
5dc8689f52d87dac890051e540b338b009293ced
[ "BSD-2-Clause" ]
12
2016-10-31T12:29:08.000Z
2021-12-28T12:18:28.000Z
#=========================================================================== # # Primary SMA API. # #=========================================================================== import socket from .. import util from . import Auth from . import Reply from . import Request #=============================================...
38.020747
79
0.460984
8,724
0.95209
0
0
0
0
0
0
2,705
0.295209
5a453d50864469ccb2ceb29c181778bf81f77b45
1,988
py
Python
src/tinerator/visualize/qt_app.py
lanl/tinerator
b34112f01d64801b6539650af2e40edff33f9f9b
[ "BSD-3-Clause" ]
2
2021-09-13T17:10:25.000Z
2021-09-17T18:36:21.000Z
src/tinerator/visualize/qt_app.py
lanl/tinerator
b34112f01d64801b6539650af2e40edff33f9f9b
[ "BSD-3-Clause" ]
15
2021-08-16T18:23:58.000Z
2022-02-03T04:38:24.000Z
src/tinerator/visualize/qt_app.py
lanl/tinerator
b34112f01d64801b6539650af2e40edff33f9f9b
[ "BSD-3-Clause" ]
null
null
null
import sys from PyQt5 import QtWidgets from PyQt5.QtWidgets import QApplication from PyQt5.QtWidgets import QMainWindow from PyQt5.QtCore import QCoreApplication, QUrl from PyQt5.QtWebEngineWidgets import QWebEngineView from PyQt5.QtWebEngineWidgets import QWebEngineProfile class MainWindowWeb(QMainWindow): def _...
26.864865
86
0.65493
1,165
0.586016
0
0
0
0
0
0
107
0.053823
5a46d6b1d5ad18765586dcbd1b433a5a6d49394a
2,487
py
Python
openstack/tests/unit/clustering/v1/test_receiver.py
anton-sidelnikov/openstacksdk
98f0c67120b65814c3bd1663415e302551a14536
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/clustering/v1/test_receiver.py
anton-sidelnikov/openstacksdk
98f0c67120b65814c3bd1663415e302551a14536
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/clustering/v1/test_receiver.py
anton-sidelnikov/openstacksdk
98f0c67120b65814c3bd1663415e302551a14536
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
34.541667
75
0.668275
1,258
0.50583
0
0
0
0
0
0
1,054
0.423804
5a48e8486f10a1984a1d5c43962af125191eae02
4,137
py
Python
gan/kdd_utilities.py
mesarcik/Efficient-GAN-Anomaly-Detection
15568abb57d2965ce70d4fd0dc70f3fe00c68d1b
[ "MIT" ]
408
2018-02-27T05:10:49.000Z
2022-03-24T10:32:07.000Z
gan/kdd_utilities.py
phuccuongngo99/Efficient-GAN-Anomaly-Detection
849ffd91436f4ab8908e0d0ae9e6eadff5f67110
[ "MIT" ]
21
2018-05-21T09:18:02.000Z
2021-08-30T21:51:38.000Z
gan/kdd_utilities.py
phuccuongngo99/Efficient-GAN-Anomaly-Detection
849ffd91436f4ab8908e0d0ae9e6eadff5f67110
[ "MIT" ]
139
2018-03-05T13:42:11.000Z
2022-03-20T09:02:41.000Z
import tensorflow as tf """Class for KDD10 percent GAN architecture. Generator and discriminator. """ learning_rate = 0.00001 batch_size = 50 layer = 1 latent_dim = 32 dis_inter_layer_dim = 128 init_kernel = tf.contrib.layers.xavier_initializer() def generator(z_inp, is_training=False, getter=None, reuse=False): ...
32.833333
79
0.513899
0
0
0
0
0
0
0
0
896
0.216582
5a48f16367b8db551ede0ba75c39ecf9f879f676
646
py
Python
setup.py
jhakonen/wotdisttools
2194761baaf1f6ade5fa740d134553b77300211b
[ "MIT" ]
9
2019-08-15T14:59:39.000Z
2021-06-24T22:03:31.000Z
setup.py
jhakonen/wotdisttools
2194761baaf1f6ade5fa740d134553b77300211b
[ "MIT" ]
1
2019-08-06T19:22:44.000Z
2019-08-11T09:23:31.000Z
setup.py
jhakonen/setuptools-wotmod
2194761baaf1f6ade5fa740d134553b77300211b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='setuptools-wotmod', version='0.2', packages=find_packages(), description='setuptools integration for creating World of Tanks mods', long_description=open('README.md').read(), author='jhakonen', url='https://gith...
24.846154
74
0.630031
0
0
0
0
0
0
0
0
301
0.465944
5a492602297201d4f7e69fbf52b8fafe45beb71d
2,264
py
Python
services/prepare_snps_data.py
eliorav/Population-Genotype-Frequency
11780b182bf417ac10ae86919ee313e39158267d
[ "Apache-2.0" ]
null
null
null
services/prepare_snps_data.py
eliorav/Population-Genotype-Frequency
11780b182bf417ac10ae86919ee313e39158267d
[ "Apache-2.0" ]
null
null
null
services/prepare_snps_data.py
eliorav/Population-Genotype-Frequency
11780b182bf417ac10ae86919ee313e39158267d
[ "Apache-2.0" ]
null
null
null
import os from glob import glob import pandas as pd from tqdm import tqdm from constants import SNPS_DATA_PATH, SNPS_DATA_FOLDER, SNPS_DATA_FILE_NAME from services.docker_runner import Hg38dbDockerRunner def fetch_snps_data(snps_file_path): """ Fetch SNPs data from hg38 db :param snps_file_path: the path ...
39.034483
105
0.659452
0
0
0
0
0
0
0
0
719
0.31758
5a4bcf1b59efc03b155e47a1a800ec05299ddea9
258
py
Python
lab1/lab1/views/home.py
ZerocksX/Service-Oriented-Computing-2019
eac6b0e9a40eed76b452f6524fd899e7107b0f69
[ "Apache-2.0" ]
null
null
null
lab1/lab1/views/home.py
ZerocksX/Service-Oriented-Computing-2019
eac6b0e9a40eed76b452f6524fd899e7107b0f69
[ "Apache-2.0" ]
null
null
null
lab1/lab1/views/home.py
ZerocksX/Service-Oriented-Computing-2019
eac6b0e9a40eed76b452f6524fd899e7107b0f69
[ "Apache-2.0" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render, redirect from lab1.views import login def docs(request): if not request.user.is_authenticated: return redirect(login.login_view) return render(request, 'docs.html')
23.454545
45
0.763566
0
0
0
0
0
0
0
0
11
0.042636
5a4c04b5d165286adafed51f08e73b407e82dac3
2,154
py
Python
ssdp/socketserver.py
vintozver/ssdp
ab3199068e3af93d95b00dcd79fbb444aa4ba13b
[ "MIT" ]
null
null
null
ssdp/socketserver.py
vintozver/ssdp
ab3199068e3af93d95b00dcd79fbb444aa4ba13b
[ "MIT" ]
null
null
null
ssdp/socketserver.py
vintozver/ssdp
ab3199068e3af93d95b00dcd79fbb444aa4ba13b
[ "MIT" ]
null
null
null
import logging import socket import socketserver import struct import typing from ssdp.entity import * from ssdp.network import * logger = logging.getLogger("ssdp.socketserver") class RequestHandler(socketserver.BaseRequestHandler): def handle(self): packet_bytes = self.request[0] try: ...
31.217391
87
0.606778
1,968
0.913649
0
0
0
0
0
0
216
0.100279
5a4c53204a1b7bd48e50214561ae151641713f7f
1,040
py
Python
giggleliu/tba/hgen/multithreading.py
Lynn-015/Test_01
88be712b2d17603f7a3c38836dabe8dbdee2aba3
[ "MIT" ]
2
2015-11-12T01:11:20.000Z
2015-11-12T23:32:28.000Z
giggleliu/tba/hgen/multithreading.py
Lynn-015/Test_01
88be712b2d17603f7a3c38836dabe8dbdee2aba3
[ "MIT" ]
3
2015-10-28T02:25:48.000Z
2015-11-25T18:21:22.000Z
giggleliu/tba/hgen/multithreading.py
Lynn-015/NJU_DMRG
88be712b2d17603f7a3c38836dabe8dbdee2aba3
[ "MIT" ]
null
null
null
#!/usr/bin/python from numpy import * from mpi4py import MPI from matplotlib.pyplot import * #MPI setting try: COMM=MPI.COMM_WORLD SIZE=COMM.Get_size() RANK=COMM.Get_rank() except: COMM=None SIZE=1 RANK=0 __all__=['mpido'] def mpido(func,inputlist,bcastouputmesh=True): ''' MPI for list...
19.622642
46
0.6
0
0
0
0
0
0
0
0
248
0.238462
5a4c57677f4df8cc0dad6ecf21973ff01725bd89
1,480
py
Python
manage.py
forestmonster/flask-microservices-users
84b6edb1d57bd5882a48346bba5ff67a2ce44d9c
[ "MIT" ]
null
null
null
manage.py
forestmonster/flask-microservices-users
84b6edb1d57bd5882a48346bba5ff67a2ce44d9c
[ "MIT" ]
null
null
null
manage.py
forestmonster/flask-microservices-users
84b6edb1d57bd5882a48346bba5ff67a2ce44d9c
[ "MIT" ]
null
null
null
import unittest import coverage from flask_script import Manager from project import create_app, db from project.api.models import User COV = coverage.coverage( branch=True, include='project/*', omit=[ 'project/tests/*', 'project/server/config.py', 'project/server/*/__init__.py' ...
21.449275
79
0.646622
0
0
0
0
1,038
0.701351
0
0
352
0.237838
5a4d72f7295e946813a914b8b8596cf8a6802ccb
2,691
py
Python
cocotb/_py_compat.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
350
2015-01-09T12:50:13.000Z
2019-07-12T09:08:17.000Z
cocotb/_py_compat.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
710
2015-01-05T16:42:29.000Z
2019-07-16T13:40:00.000Z
cocotb/_py_compat.py
lavanyajagan/cocotb
2f98612016e68510e264a2b4963303d3588d8404
[ "BSD-3-Clause" ]
182
2015-01-08T09:35:20.000Z
2019-07-12T18:41:37.000Z
# Copyright (c) cocotb contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions a...
42.046875
81
0.751394
555
0.206243
0
0
0
0
0
0
2,279
0.846897
5a4dfb65c9293913510af1677af7923d5236e918
8,259
py
Python
tomopal/crtomopy/demo/pjt_demo.py
robinthibaut/TomoPal
bb3d1f9d56afc53c641a72b47e4419ee0cfd587b
[ "BSD-3-Clause" ]
2
2021-03-01T11:06:17.000Z
2021-09-24T11:49:31.000Z
tomopal/crtomopy/demo/pjt_demo.py
robinthibaut/TomoPal
bb3d1f9d56afc53c641a72b47e4419ee0cfd587b
[ "BSD-3-Clause" ]
53
2021-03-30T14:05:17.000Z
2022-03-31T09:55:14.000Z
tomopal/crtomopy/demo/pjt_demo.py
robinthibaut/TomoPal
bb3d1f9d56afc53c641a72b47e4419ee0cfd587b
[ "BSD-3-Clause" ]
1
2020-06-16T11:16:39.000Z
2020-06-16T11:16:39.000Z
# Copyright (c) 2020. Robin Thibaut, Ghent University from os.path import join as jp import numpy as np from tomopal.crtomopy.crtomo.crc import ( Crtomo, datread, import_res, mesh_geometry, mtophase, ) from ..parent import inventory from ...geoview.diavatly import model_map # To plot results #...
27.808081
120
0.698632
0
0
0
0
0
0
0
0
5,010
0.606611
5a4e07f2b94ab476e5ae09d4fd2d5f84fb6f63e2
72
py
Python
__init__.py
VASemenov/Genetica
5f51159e182a628c2d33c8a401719924b3611df5
[ "MIT" ]
null
null
null
__init__.py
VASemenov/Genetica
5f51159e182a628c2d33c8a401719924b3611df5
[ "MIT" ]
null
null
null
__init__.py
VASemenov/Genetica
5f51159e182a628c2d33c8a401719924b3611df5
[ "MIT" ]
null
null
null
from genetica.dna import DNA, genify from genetica.model import Genetica
36
36
0.847222
0
0
0
0
0
0
0
0
0
0
5a4ed98e41bcfbfb4f87bc36a45fc26e1aa68177
1,015
py
Python
client_code/utils/__init__.py
daviesian/anvil-extras
84fd5ca5144808d4ce2b333995e801a4ddff60e6
[ "MIT" ]
null
null
null
client_code/utils/__init__.py
daviesian/anvil-extras
84fd5ca5144808d4ce2b333995e801a4ddff60e6
[ "MIT" ]
null
null
null
client_code/utils/__init__.py
daviesian/anvil-extras
84fd5ca5144808d4ce2b333995e801a4ddff60e6
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # # Copyright (c) 2021 The Anvil Extras project team members listed at # https://github.com/anvilistas/anvil-extras/graphs/contributors # # This software is published at https://github.com/anvilistas/anvil-extras from functools import cache __version__ = "1.4.0" def __dir__(): ret...
26.710526
83
0.715271
0
0
0
0
615
0.605911
0
0
444
0.437438
5a50502deca1083175f893a1ac12f341ff7d78ec
13,984
py
Python
evaluate/evaluate_debug.py
goodgodgd/vode-2020
98e34120d642780576ac51d57c2f0597e7e1e524
[ "BSD-2-Clause" ]
4
2020-08-15T02:14:03.000Z
2021-01-30T08:18:18.000Z
evaluate/evaluate_debug.py
goodgodgd/vode-2020
98e34120d642780576ac51d57c2f0597e7e1e524
[ "BSD-2-Clause" ]
23
2020-01-24T07:25:40.000Z
2021-06-02T00:50:32.000Z
evaluate/evaluate_debug.py
goodgodgd/vode-2020
98e34120d642780576ac51d57c2f0597e7e1e524
[ "BSD-2-Clause" ]
1
2020-07-02T12:26:45.000Z
2020-07-02T12:26:45.000Z
import os import os.path as op import numpy as np import pandas as pd import cv2 import tensorflow as tf import settings from config import opts from tfrecords.tfrecord_reader import TfrecordReader import utils.util_funcs as uf import utils.convert_pose as cp from model.synthesize.synthesize_base import SynthesizeMult...
43.974843
112
0.693292
2,214
0.15711
0
0
0
0
0
0
2,932
0.208061
5a50e3662524ec61048e74d97bc09d7305717136
7,018
py
Python
tests/test_utils.py
h4ck3rm1k3/requests
46184236dc177fb68c7863445609149d0ac243ea
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
h4ck3rm1k3/requests
46184236dc177fb68c7863445609149d0ac243ea
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
h4ck3rm1k3/requests
46184236dc177fb68c7863445609149d0ac243ea
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import os from io import BytesIO import pytest from requests import compat from requests.utils import ( address_in_network, dotted_netmask, get_auth_from_url, get_encodings_from_content, get_environ_proxies, guess_filename, is_ipv4_address, is_valid_cidr, requote_uri, select_proxy, ...
30.25
95
0.58008
4,266
0.607865
176
0.025078
5,154
0.734397
0
0
2,506
0.357082
5a5102204d83caa3f795bc8eb2cf30cd51108dd9
37,008
py
Python
clorm/orm/factbase.py
florianfischer91/clorm
3569a91daa1d691f0a7f5a9534db925e027cdbf9
[ "MIT" ]
10
2019-01-11T03:31:17.000Z
2019-12-18T08:18:44.000Z
clorm/orm/factbase.py
florianfischer91/clorm
3569a91daa1d691f0a7f5a9534db925e027cdbf9
[ "MIT" ]
21
2018-12-06T04:06:53.000Z
2019-12-17T00:04:56.000Z
clorm/orm/factbase.py
florianfischer91/clorm
3569a91daa1d691f0a7f5a9534db925e027cdbf9
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # Clorm ORM FactBase implementation. FactBase provides a set-like container # specifically for storing facts (Predicate instances). # ------------------------------------------------------------------------------ import abc import io impor...
37.879222
114
0.568769
31,491
0.850924
179
0.004837
3,238
0.087495
0
0
15,264
0.412451
5a53a6326b7c2b2399d98404ebe43ef902465e91
13,470
py
Python
blender/2.79/scripts/addons/modules/extensions_framework/__init__.py
uzairakbar/bpy2.79
3a3e0004ac6783c4e4b89d939e4432de99026a85
[ "MIT" ]
2
2019-11-27T09:05:42.000Z
2020-02-20T01:25:23.000Z
blender/2.79/scripts/addons/modules/extensions_framework/__init__.py
uzairakbar/bpy2.79
3a3e0004ac6783c4e4b89d939e4432de99026a85
[ "MIT" ]
null
null
null
blender/2.79/scripts/addons/modules/extensions_framework/__init__.py
uzairakbar/bpy2.79
3a3e0004ac6783c4e4b89d939e4432de99026a85
[ "MIT" ]
4
2020-02-19T20:02:26.000Z
2022-02-11T18:47:56.000Z
# -*- coding: utf-8 -*- # # ***** BEGIN GPL LICENSE BLOCK ***** # # -------------------------------------------------------------------------- # Blender 2.5 Extensions Framework # -------------------------------------------------------------------------- # # Authors: # Doug Hammond # # This program is free software; yo...
36.209677
89
0.587231
8,320
0.617669
0
0
2,823
0.209577
0
0
7,261
0.53905
5a54a96d2f3cc1d14a3c5a24eab90fe8dfc58c84
16,305
py
Python
tests/test_common.py
NOAA-GSL/adb_graphics
b9a3d567efa0de5a175be8404f351b901a8f382f
[ "MIT" ]
2
2020-11-06T16:30:50.000Z
2021-01-15T19:42:13.000Z
tests/test_common.py
NOAA-GSL/adb_graphics
b9a3d567efa0de5a175be8404f351b901a8f382f
[ "MIT" ]
10
2020-11-20T16:02:57.000Z
2021-03-31T23:35:56.000Z
tests/test_common.py
NOAA-GSL/adb_graphics
b9a3d567efa0de5a175be8404f351b901a8f382f
[ "MIT" ]
1
2021-04-09T20:55:06.000Z
2021-04-09T20:55:06.000Z
# pylint: disable=invalid-name ''' Pytests for the common utilities included in this package. Includes: - conversions.py - specs.py - utils.py To run the tests, type the following in the top level repo directory: python -m pytest --nat-file [path/to/gribfile] --prs-file [path/to/gribfile] ''' from...
30.138632
100
0.557068
13,231
0.811469
0
0
5,261
0.322662
0
0
5,369
0.329285
5a54ab45f8f150e828680b7baff870b193da03be
6,448
py
Python
ggpy/cruft/grammar.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
1
2015-01-26T19:07:45.000Z
2015-01-26T19:07:45.000Z
ggpy/cruft/grammar.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
null
null
null
ggpy/cruft/grammar.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
null
null
null
#!/usr/bin/env python # package: org.ggp.base.util.symbol.grammar import threading class SymbolFormatException(Exception): source = '' def __init__(self, message, source): super(SymbolFormatException, self).__init__(message) self.source = source def getSource(self): return self.s...
32.079602
100
0.622519
6,346
0.984181
0
0
3,503
0.543269
0
0
3,163
0.49054
5a57e614d9b55b36163878bad041ba8ed0614d30
948
py
Python
cortical/models/context.py
npd15393/ResumeMiner
9644ae97aaad869c3739b2b7b92e4e5a6f857206
[ "BSD-2-Clause" ]
null
null
null
cortical/models/context.py
npd15393/ResumeMiner
9644ae97aaad869c3739b2b7b92e4e5a6f857206
[ "BSD-2-Clause" ]
null
null
null
cortical/models/context.py
npd15393/ResumeMiner
9644ae97aaad869c3739b2b7b92e4e5a6f857206
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ /******************************************************************************* * Copyright (c) cortical.io GmbH. All rights reserved. * * This software is confidential and proprietary information. * You shall use it only in accordance with the terms of the * license agreement you ente...
43.090909
117
0.597046
448
0.472574
0
0
0
0
0
0
568
0.599156
5a58135dc9e13b466cba75e814598ea999f2751b
705
py
Python
COMP-2080/Week-11/knapRecursive.py
kbrezinski/Candidacy-Prep
f4610fb611e6300a7d657af124728d46a8659ba5
[ "BSD-3-Clause" ]
null
null
null
COMP-2080/Week-11/knapRecursive.py
kbrezinski/Candidacy-Prep
f4610fb611e6300a7d657af124728d46a8659ba5
[ "BSD-3-Clause" ]
null
null
null
COMP-2080/Week-11/knapRecursive.py
kbrezinski/Candidacy-Prep
f4610fb611e6300a7d657af124728d46a8659ba5
[ "BSD-3-Clause" ]
null
null
null
# [weight, value] I = [[4, 8], [4, 7], [6, 14]] k = 8 def knapRecursive(I, k): return knapRecursiveAux(I, k, len(I) - 1) def knapRecursiveAux(I, k, hi): # final element if hi == 0: # too big for sack if I[hi][0] > k: return 0 # fits else: retur...
22.03125
69
0.455319
0
0
0
0
0
0
0
0
114
0.161702
5a59bbf41d09d9b1b99e57b30f3e8db2c9734a9d
232
py
Python
digits/inference/__init__.py
PhysicsTeacher13/Digits-NVIDIA
80c08ed2b84d5d4eb4f1721ab30f3db2ce67690a
[ "BSD-3-Clause" ]
111
2017-04-21T06:03:04.000Z
2021-04-26T06:36:54.000Z
digits/inference/__init__.py
PhysicsTeacher13/Digits-NVIDIA
80c08ed2b84d5d4eb4f1721ab30f3db2ce67690a
[ "BSD-3-Clause" ]
6
2017-05-15T22:02:49.000Z
2018-03-16T10:25:26.000Z
digits/inference/__init__.py
PhysicsTeacher13/Digits-NVIDIA
80c08ed2b84d5d4eb4f1721ab30f3db2ce67690a
[ "BSD-3-Clause" ]
40
2017-04-21T07:04:16.000Z
2019-11-14T14:20:32.000Z
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .images import ImageInferenceJob from .job import InferenceJob __all__ = [ 'InferenceJob', 'ImageInferenceJob', ]
21.090909
63
0.762931
0
0
0
0
0
0
0
0
96
0.413793
5a5a27414d864ca463175f98377b3d5b7fff1510
3,592
py
Python
homework/homework 21.py
CoderLoveMath/Jeju-IOSEFTGS-python
0efe26e3840817197c1584ac4cf90d35c3699988
[ "FSFAP" ]
null
null
null
homework/homework 21.py
CoderLoveMath/Jeju-IOSEFTGS-python
0efe26e3840817197c1584ac4cf90d35c3699988
[ "FSFAP" ]
null
null
null
homework/homework 21.py
CoderLoveMath/Jeju-IOSEFTGS-python
0efe26e3840817197c1584ac4cf90d35c3699988
[ "FSFAP" ]
null
null
null
# Import a library of functions called 'pygame' import pygame # Initialize the game engine pygame.init() # Define the colors we will use in RGB format BLACK = (0, 0, 0) WHITE = (255, 255, 255) BLUE = (0, 0, 255) GREEN = (0, 255, 0) RED = (255, 0, 0) # Set the height and width of the screen size = [491, 700] screen =...
35.92
84
0.578786
0
0
0
0
0
0
0
0
1,069
0.277518
5a5bfad53218db468fff1b6bf7d577e4b9d5e32d
2,929
py
Python
pyte/ops/for_.py
Fuyukai/Pyte
7ef04938d80f8b646bd73d976ac9787a5b88edd9
[ "MIT" ]
2
2020-01-10T22:08:38.000Z
2021-06-21T15:34:47.000Z
pyte/ops/for_.py
Fuyukai/Pyte
7ef04938d80f8b646bd73d976ac9787a5b88edd9
[ "MIT" ]
6
2016-04-17T21:28:14.000Z
2016-08-24T02:14:01.000Z
pyte/ops/for_.py
SunDwarf/Pyte
7ef04938d80f8b646bd73d976ac9787a5b88edd9
[ "MIT" ]
null
null
null
from pyte import tokens, util from pyte.superclasses import _PyteAugmentedValidator, _PyteOp from pyte.util import PY36 class FOR_LOOP(_PyteOp): """ Represents a for loop. """ def __init__(self, iterator: _PyteAugmentedValidator, body: list): """ Represents a for operator. :p...
31.494624
101
0.609082
2,805
0.957665
0
0
0
0
0
0
1,170
0.399454
5a5cd7e8aa4acb388f0ef7bcdc817349add0a810
1,212
py
Python
web/hottubapi.py
pwschuurman/hottub_controller
be9faeabcaf9f5bb7aba3ec03eba60276b27cf80
[ "MIT" ]
1
2020-06-03T18:32:50.000Z
2020-06-03T18:32:50.000Z
web/hottubapi.py
pwschuurman/hottub_controller
be9faeabcaf9f5bb7aba3ec03eba60276b27cf80
[ "MIT" ]
null
null
null
web/hottubapi.py
pwschuurman/hottub_controller
be9faeabcaf9f5bb7aba3ec03eba60276b27cf80
[ "MIT" ]
null
null
null
from gpioapi import GpioAPI import rx MAX_TEMP = 38 COOL_TEMP = 30 class HotTubAPI: def __init__(self): self.gpioapi = GpioAPI(None) def transmissions(self): return self.gpioapi.transmission_subject def heat_up(self): reached_max_temp = self.gpioapi.transmission_subject.pipe( op.filter(lamb...
24.734694
82
0.710396
1,141
0.941419
0
0
0
0
0
0
99
0.081683
5a5e3e187f9834c9b5e31410232316fcaa6ec9f3
7,711
py
Python
src/biocluster_pipeline.py
zocean/Norma
4c45c1540f7d7d13f9b71a6772044d3772a451f8
[ "MIT" ]
1
2020-02-17T22:59:46.000Z
2020-02-17T22:59:46.000Z
src/biocluster_pipeline.py
zocean/Norma
4c45c1540f7d7d13f9b71a6772044d3772a451f8
[ "MIT" ]
null
null
null
src/biocluster_pipeline.py
zocean/Norma
4c45c1540f7d7d13f9b71a6772044d3772a451f8
[ "MIT" ]
2
2020-02-24T02:54:04.000Z
2020-07-07T22:16:35.000Z
#!/usr/bin/python # Programmer : Yang Zhang # Contact: [email protected] # Last-modified: 24 Jan 2019 15:20:08 import os,sys,argparse def parse_arg(): ''' This Function Parse the Argument ''' p=argparse.ArgumentParser( description = 'Example: %(prog)s -h', epilog='Library dependency :') p.add_argument(...
46.451807
191
0.625989
6,299
0.816885
0
0
0
0
0
0
1,865
0.241862
5a5e3edccfdfe1e9cbd18ca904e258b6b8bd5b04
5,404
py
Python
env/lib/python3.5/site-packages/cartopy/tests/test_shapereader.py
project-pantheon/pantheon_glob_planner
c0d50a53b36c4678192ec75ad7a4cd68c570daef
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.5/site-packages/cartopy/tests/test_shapereader.py
project-pantheon/pantheon_glob_planner
c0d50a53b36c4678192ec75ad7a4cd68c570daef
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.5/site-packages/cartopy/tests/test_shapereader.py
project-pantheon/pantheon_glob_planner
c0d50a53b36c4678192ec75ad7a4cd68c570daef
[ "BSD-3-Clause" ]
null
null
null
# (C) British Crown Copyright 2011 - 2018, Met Office # # This file is part of cartopy. # # cartopy is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option)...
42.21875
79
0.622687
4,405
0.815137
0
0
4,459
0.82513
0
0
1,298
0.240192
5a5f41145e46fd5342cd880863fcd045e36493b6
268
py
Python
inmembrane/plugins/__init__.py
pansapiens/inmembrane
382eee3b2bacc9c567f65d7c48f1ddf9a86c253c
[ "BSD-2-Clause" ]
4
2015-03-09T02:08:34.000Z
2021-02-06T13:52:21.000Z
inmembrane/plugins/__init__.py
pansapiens/inmembrane
382eee3b2bacc9c567f65d7c48f1ddf9a86c253c
[ "BSD-2-Clause" ]
5
2015-01-29T03:36:04.000Z
2021-12-08T07:20:42.000Z
inmembrane/plugins/__init__.py
pansapiens/inmembrane
382eee3b2bacc9c567f65d7c48f1ddf9a86c253c
[ "BSD-2-Clause" ]
6
2015-03-09T02:08:43.000Z
2021-06-07T17:33:16.000Z
# This little bit of magic fills the __all__ list # with every plugin name, and means that calling: # from plugins import * # within inmembrane.py will import every plugin import pkgutil __all__ = [] for p in pkgutil.iter_modules(__path__): __all__.append(p[1])
26.8
50
0.75
0
0
0
0
0
0
0
0
169
0.630597
5a6488350ce9cd310eada5196eabccb1e9f79524
1,984
py
Python
dvc/output/__init__.py
amjadsaadeh/dvc
f405168619c2bb85430c4ded2585b57ebfd01bd7
[ "Apache-2.0" ]
null
null
null
dvc/output/__init__.py
amjadsaadeh/dvc
f405168619c2bb85430c4ded2585b57ebfd01bd7
[ "Apache-2.0" ]
null
null
null
dvc/output/__init__.py
amjadsaadeh/dvc
f405168619c2bb85430c4ded2585b57ebfd01bd7
[ "Apache-2.0" ]
null
null
null
import schema from dvc.exceptions import DvcException from dvc.config import Config from dvc.dependency import SCHEMA, urlparse from dvc.dependency.base import DependencyBase from dvc.output.s3 import OutputS3 from dvc.output.gs import OutputGS from dvc.output.local import OutputLOCAL from dvc.output.hdfs import Outp...
31.492063
77
0.621472
0
0
0
0
0
0
0
0
61
0.030746
5a65af496e71e8ad9c61c888ed0b5d903da6928e
343
py
Python
company_logo.py
DomirScire/HackerRank_answers
0432185a472aeae7062cf4e406d0e7a5ed2cc979
[ "MIT" ]
1
2021-03-19T13:05:16.000Z
2021-03-19T13:05:16.000Z
company_logo.py
DomirScire/HackerRank_answers
0432185a472aeae7062cf4e406d0e7a5ed2cc979
[ "MIT" ]
null
null
null
company_logo.py
DomirScire/HackerRank_answers
0432185a472aeae7062cf4e406d0e7a5ed2cc979
[ "MIT" ]
null
null
null
# DomirScire import math import os import random import re import sys import collections if __name__ == '__main__': s = sorted(input().strip()) s_counter = collections.Counter(s).most_common() s_counter = sorted(s_counter, key=lambda x: (x[1] * -1, x[0])) for i in range(0, 3): print(s_counter[i...
22.866667
66
0.661808
0
0
0
0
0
0
0
0
22
0.06414
5a65da8fa8ec5fbb64d2b18d96b4bb40c2a9a8c1
2,600
py
Python
ltr/models/loss/kl_regression.py
Jee-King/ICCV2021_Event_Frame_Tracking
ea86cdd331748864ffaba35f5efbb3f2a02cdb03
[ "MIT" ]
15
2021-08-31T13:32:12.000Z
2022-03-24T01:55:41.000Z
ltr/models/loss/kl_regression.py
Jee-King/ICCV2021_Event_Frame_Tracking
ea86cdd331748864ffaba35f5efbb3f2a02cdb03
[ "MIT" ]
2
2022-01-13T12:53:29.000Z
2022-03-31T08:14:42.000Z
ltr/models/loss/kl_regression.py
Jee-King/ICCV2021_Event_Frame_Tracking
ea86cdd331748864ffaba35f5efbb3f2a02cdb03
[ "MIT" ]
2
2021-11-08T16:27:16.000Z
2021-12-08T14:24:27.000Z
import math import torch import torch.nn as nn from torch.nn import functional as F class KLRegression(nn.Module): """KL-divergence loss for probabilistic regression. It is computed using Monte Carlo (MC) samples from an arbitrary distribution.""" def __init__(self, eps=0.0): super()._...
36.619718
106
0.627308
2,494
0.959231
0
0
0
0
0
0
1,150
0.442308
5a6600ba347d74c16e50529d4d48201c7ed9b11e
2,478
py
Python
custom/mixins.py
luoyangC/django_template
e2fec854e2ba028b1d1981053b5398c21b9f9a25
[ "Apache-2.0" ]
null
null
null
custom/mixins.py
luoyangC/django_template
e2fec854e2ba028b1d1981053b5398c21b9f9a25
[ "Apache-2.0" ]
8
2020-06-05T22:21:55.000Z
2021-09-22T18:50:27.000Z
custom/mixins.py
luoyangC/django_template
e2fec854e2ba028b1d1981053b5398c21b9f9a25
[ "Apache-2.0" ]
null
null
null
""" Basic building blocks for generic class based views. We don't bind behaviour to http method handlers yet, which allows mixin classes to be composed in interesting ways. """ from rest_framework import status from rest_framework import mixins from custom.response import JsonResponse class CreateModelMixin(mixins....
33.04
93
0.700565
2,175
0.877724
0
0
0
0
0
0
408
0.164649
5a66649d8c1a6d7c9c60e1d964b3f1eb9d459b10
893
py
Python
rl_trainer/algo/network.py
jidiai/Competition_Olympics-Curling
a3f1e1316a9e9a060bcca623aff2004878c50c78
[ "MIT" ]
7
2022-02-01T14:45:03.000Z
2022-02-28T08:21:13.000Z
rl_trainer/algo/network.py
jidiai/Competition_Olympics-Curling
a3f1e1316a9e9a060bcca623aff2004878c50c78
[ "MIT" ]
1
2022-02-19T15:03:56.000Z
2022-02-25T08:59:22.000Z
rl_trainer/algo/network.py
jidiai/Competition_Olympics-Curling
a3f1e1316a9e9a060bcca623aff2004878c50c78
[ "MIT" ]
5
2022-02-08T14:16:12.000Z
2022-03-08T01:56:37.000Z
import torch.cuda import torch.nn as nn import torch.nn.functional as F device = 'cuda' if torch.cuda.is_available() else 'cpu' class Actor(nn.Module): def __init__(self, state_space, action_space, hidden_size=64): super(Actor, self).__init__() self.linear_in = nn.Linear(state_space, hidden_size...
28.806452
66
0.666293
757
0.847704
0
0
0
0
0
0
11
0.012318
5a6742060ae0c9724845b125a09501149114e4ca
7,284
py
Python
digesters/hipchat/hipchat_notification_digester.py
paul-hammant/imapdigester
7d2d9525d39b1f3f839a219061180971404e4bb8
[ "MIT" ]
25
2016-04-04T17:32:47.000Z
2022-03-08T02:18:07.000Z
digesters/hipchat/hipchat_notification_digester.py
paul-hammant/imapslurper
7d2d9525d39b1f3f839a219061180971404e4bb8
[ "MIT" ]
null
null
null
digesters/hipchat/hipchat_notification_digester.py
paul-hammant/imapslurper
7d2d9525d39b1f3f839a219061180971404e4bb8
[ "MIT" ]
4
2017-01-02T21:03:28.000Z
2022-02-22T18:38:44.000Z
# coding=utf-8 import arrow from bs4 import BeautifulSoup from digesters.base_digester import BaseDigester TEMPLATE = """<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> <title>Atlassian HipChat</title> </head> <body style="box-sizing: border-box; height: 100%; width: 100%;...
42.596491
195
0.623009
5,750
0.789401
0
0
0
0
0
0
2,706
0.371499
5a6831d8ec7d93dd05d620a6d41fce88e4531158
138
py
Python
FB2/__init__.py
Ae-Mc/FB2
2c29f774ab08bdad5bd6144b1be71b93146ce8fe
[ "MIT" ]
3
2020-11-15T10:55:22.000Z
2022-02-09T19:45:52.000Z
FB2/__init__.py
Ae-Mc/FB2
2c29f774ab08bdad5bd6144b1be71b93146ce8fe
[ "MIT" ]
1
2020-11-15T11:04:59.000Z
2020-11-19T22:12:52.000Z
FB2/__init__.py
Ae-Mc/FB2
2c29f774ab08bdad5bd6144b1be71b93146ce8fe
[ "MIT" ]
null
null
null
from .FictionBook2 import FictionBook2 from .Author import Author from .TitleInfo import TitleInfo from .DocumentInfo import DocumentInfo
27.6
38
0.855072
0
0
0
0
0
0
0
0
0
0
5a683a89ea393148d4edd0bc84134016995c858d
374
py
Python
runserver.py
chintal/tendril-monitor-vendor
af7577bd88b3d35e09a733607555d5d10e1cd9c7
[ "MIT" ]
null
null
null
runserver.py
chintal/tendril-monitor-vendor
af7577bd88b3d35e09a733607555d5d10e1cd9c7
[ "MIT" ]
null
null
null
runserver.py
chintal/tendril-monitor-vendor
af7577bd88b3d35e09a733607555d5d10e1cd9c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # Copyright (C) 2015 Chintalagiri Shashank # Released under the MIT license. """ Simple Deployment Example ------------------------- """ from vendor_monitor import worker from twisted.internet import reactor import logging logging.basicConfig(level=logging.INFO) if __name_...
16.26087
42
0.68984
0
0
0
0
0
0
0
0
184
0.491979
5a697644fbf259cd8f3bc1346fab09736144290b
3,746
py
Python
yt/frontends/ytdata/tests/test_unit.py
tukss/yt
8bf6fce609cad3d4b291ebd94667019ab2e18377
[ "BSD-3-Clause-Clear" ]
1
2021-09-15T08:17:43.000Z
2021-09-15T08:17:43.000Z
yt/frontends/ytdata/tests/test_unit.py
tukss/yt
8bf6fce609cad3d4b291ebd94667019ab2e18377
[ "BSD-3-Clause-Clear" ]
8
2020-04-02T16:51:49.000Z
2022-01-11T14:12:44.000Z
yt/frontends/ytdata/tests/test_unit.py
stonnes/yt
aad3cfa3b4ebab7838352ab467275a27c26ff363
[ "BSD-3-Clause-Clear" ]
2
2020-08-12T15:46:11.000Z
2021-02-09T13:09:17.000Z
import os import shutil import tempfile import numpy as np from yt.loaders import load, load_uniform_grid from yt.testing import ( assert_array_equal, assert_fname, fake_random_ds, requires_file, requires_module, ) from yt.utilities.answer_testing.framework import data_dir_load from yt.visualizati...
28.815385
88
0.644688
0
0
0
0
3,341
0.891885
0
0
542
0.144688
5a6985ea52c126cdfc4394e0251917377b3471a6
10,580
py
Python
openmdao.lib/src/openmdao/lib/drivers/test/test_opt_genetic.py
mjfwest/OpenMDAO-Framework
a5521f47ad7686c25b203de74e1c7dff5fd7a52b
[ "Apache-2.0" ]
69
2015-01-02T19:10:08.000Z
2021-11-14T04:42:28.000Z
openmdao.lib/src/openmdao/lib/drivers/test/test_opt_genetic.py
jcchin/OpenMDAO-Framework
038e89b06da1c74f00918f4c6fbd8bd365e25657
[ "Apache-2.0" ]
3
2015-01-15T23:08:18.000Z
2015-03-11T16:57:35.000Z
openmdao.lib/src/openmdao/lib/drivers/test/test_opt_genetic.py
jcchin/OpenMDAO-Framework
038e89b06da1c74f00918f4c6fbd8bd365e25657
[ "Apache-2.0" ]
31
2015-09-16T00:37:35.000Z
2022-01-10T06:27:55.000Z
""" Test the genetic optimizer driver """ import unittest import random from openmdao.main.datatypes.api import Float, Array, Enum, Int, Str from pyevolve import Selectors from openmdao.main.api import Assembly, Component, set_as_top, Driver from openmdao.lib.drivers.genetic import Genetic # pylint: disable-msg=E1...
33.587302
80
0.58913
10,195
0.963611
0
0
180
0.017013
0
0
1,938
0.183176
5a69dfb1498fd1737edb8cb80ef069c5d681ed1f
2,974
py
Python
src/db/ohlc_to_db.py
canl/algo-trading
288f43a54d6594f79c79dc21f5534ad9aa785b29
[ "MIT" ]
11
2020-04-04T08:59:37.000Z
2020-12-25T20:21:05.000Z
src/db/ohlc_to_db.py
canl/algo-trading
288f43a54d6594f79c79dc21f5534ad9aa785b29
[ "MIT" ]
1
2021-12-13T20:35:20.000Z
2021-12-13T20:35:20.000Z
src/db/ohlc_to_db.py
canl/algo-trading
288f43a54d6594f79c79dc21f5534ad9aa785b29
[ "MIT" ]
3
2020-06-21T16:29:56.000Z
2020-07-18T15:15:01.000Z
import sqlite3 from datetime import datetime from sqlite3 import Error import pandas as pd from src.pricer import read_price_df DB_FILE_PATH = 'db.sqlite' def connect_to_db(db_file): """ Connect to an SQlite database, if db file does not exist it will be created :param db_file: absolute or relative path ...
30.979167
117
0.66308
0
0
0
0
0
0
0
0
1,156
0.388702
5a6ab1cd0cde51b96b0f8b27b7f207dcb0b63462
2,793
py
Python
morphs/data/localize.py
MarvinT/morphs
c8b204debcb23ba79c3112933af9e6ca4b05b7a1
[ "MIT" ]
2
2019-01-25T17:36:33.000Z
2019-04-03T14:25:05.000Z
morphs/data/localize.py
MarvinT/morphs
c8b204debcb23ba79c3112933af9e6ca4b05b7a1
[ "MIT" ]
17
2018-09-21T00:07:10.000Z
2019-05-23T17:07:35.000Z
morphs/data/localize.py
MarvinT/morphs
c8b204debcb23ba79c3112933af9e6ca4b05b7a1
[ "MIT" ]
3
2018-09-20T18:47:07.000Z
2021-09-15T20:43:31.000Z
import pandas as pd import numpy as np import morphs from six import exec_ from pathlib2 import Path from joblib import Parallel, delayed # adapted from klustakwik # NEVER POINT THIS AT SOMETHING YOU DONT TRUST def _read_python(path): assert path.exists() with open(path.as_posix(), "r") as f: contents...
33.25
85
0.649481
0
0
0
0
312
0.111708
0
0
379
0.135696
5a6c3376aee63cfa4176eec2e2221796087f1da4
55
py
Python
app/cli/plugin/__init__.py
lonless0/flask_project
f5d6c5c7655e54d95069b469e3d470eda7a05cb7
[ "MIT" ]
786
2019-01-15T14:30:37.000Z
2022-03-28T08:53:39.000Z
app/cli/plugin/__init__.py
lonless0/flask_project
f5d6c5c7655e54d95069b469e3d470eda7a05cb7
[ "MIT" ]
107
2019-01-18T05:15:16.000Z
2022-03-16T07:13:05.000Z
app/cli/plugin/__init__.py
lonless0/flask_project
f5d6c5c7655e54d95069b469e3d470eda7a05cb7
[ "MIT" ]
222
2019-01-16T14:44:23.000Z
2022-03-23T11:33:00.000Z
from .generator import generate from .init import init
18.333333
31
0.818182
0
0
0
0
0
0
0
0
0
0
5a6c7805cdb06035d72a4db4a8f024fac0e49f51
2,512
py
Python
labelocr/verify_ocr_app.py
tienthienhd/labelocr
65297c12af9fa15f30d1457164d5cda7bebe70c1
[ "Apache-2.0" ]
2
2020-10-01T02:39:48.000Z
2020-10-01T04:27:13.000Z
labelocr/verify_ocr_app.py
tienthienhd/labelocr
65297c12af9fa15f30d1457164d5cda7bebe70c1
[ "Apache-2.0" ]
null
null
null
labelocr/verify_ocr_app.py
tienthienhd/labelocr
65297c12af9fa15f30d1457164d5cda7bebe70c1
[ "Apache-2.0" ]
null
null
null
import atexit import glob import json import logging import os import shutil import sys import tkinter as tk import threading from tkinter import filedialog, messagebox import cv2 import numpy as np import pandas as pd import pygubu from PIL import Image, ImageTk from deprecated import deprecated PROJECT_PATH = os.pa...
35.885714
139
0.667994
1,892
0.753185
0
0
0
0
0
0
364
0.144904
5a6ebd896d0065716f83ceee55fedb02e43d2b47
17,814
py
Python
cosmic-core/systemvm/patches/centos7/opt/cosmic/router/bin/cs/firewall.py
sanderv32/cosmic
9a9d86500b67255a1c743a9438a05c0d969fd210
[ "Apache-2.0" ]
64
2016-01-30T13:31:00.000Z
2022-02-21T02:13:25.000Z
cosmic-core/systemvm/patches/centos7/opt/cosmic/router/bin/cs/firewall.py
sanderv32/cosmic
9a9d86500b67255a1c743a9438a05c0d969fd210
[ "Apache-2.0" ]
525
2016-01-22T10:46:31.000Z
2022-02-23T11:08:01.000Z
cosmic-core/systemvm/patches/centos7/opt/cosmic/router/bin/cs/firewall.py
sanderv32/cosmic
9a9d86500b67255a1c743a9438a05c0d969fd210
[ "Apache-2.0" ]
25
2016-01-13T16:46:46.000Z
2021-07-23T15:22:27.000Z
import logging from jinja2 import Environment, FileSystemLoader import utils class Firewall: def __init__(self, config): self.config = config self.jinja_env = Environment( loader=FileSystemLoader('/opt/cosmic/router/bin/cs/templates'), trim_blocks=True, lstr...
57.650485
140
0.544179
17,732
0.995397
0
0
0
0
0
0
8,077
0.453407
5a6f4d014d86fed26640b0dae06b65517e18a73d
2,875
py
Python
MachineLearning/knn/knn.py
z8g/pettern
abf6b9c09597bb2badec97d51112681e46dde760
[ "Apache-2.0" ]
72
2019-09-26T09:12:14.000Z
2020-09-05T11:59:25.000Z
MachineLearning/knn/knn.py
z8g/common
abf6b9c09597bb2badec97d51112681e46dde760
[ "Apache-2.0" ]
null
null
null
MachineLearning/knn/knn.py
z8g/common
abf6b9c09597bb2badec97d51112681e46dde760
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import numpy import operator """ ================================================================================ kNN算法的步骤: 1. 计算已知类别数据集中的点与当前点之间的距离(欧式距离公式) 2. 按照距离递增次序排序 3. 选取与当前距离最小的k个点 4. 确定前k个点所在类别的出现频率 5. 返回前k个点出现频率最高的类别作为当前点的预测分类 ============================================================...
26.136364
80
0.606957
0
0
0
0
0
0
0
0
1,731
0.493022
5a6f7399d0e46958326d190fed0176f8bf1bbfef
468
py
Python
core/migrations/0012_alter_preco_categoria.py
thiagofreitascarneiro/Projeto_Fusion
4bf9d1c69ddf83fbc957e9ccdc41112d71bbffa9
[ "MIT" ]
null
null
null
core/migrations/0012_alter_preco_categoria.py
thiagofreitascarneiro/Projeto_Fusion
4bf9d1c69ddf83fbc957e9ccdc41112d71bbffa9
[ "MIT" ]
null
null
null
core/migrations/0012_alter_preco_categoria.py
thiagofreitascarneiro/Projeto_Fusion
4bf9d1c69ddf83fbc957e9ccdc41112d71bbffa9
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-05 19:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0011_auto_20210905_1619'), ] operations = [ migrations.AlterField( model_name='preco', name='categoria', ...
24.631579
133
0.587607
375
0.801282
0
0
0
0
0
0
136
0.290598
5a6fc90d5c1328218d16b60badb1e9edda81f0c8
2,394
py
Python
Source/State/Main_Menu.py
LesterYHZ/Super-Mario-Bro-Python-Project
2cbcb7ba713a81d37bd1ea16311f15e982a00774
[ "MIT" ]
null
null
null
Source/State/Main_Menu.py
LesterYHZ/Super-Mario-Bro-Python-Project
2cbcb7ba713a81d37bd1ea16311f15e982a00774
[ "MIT" ]
null
null
null
Source/State/Main_Menu.py
LesterYHZ/Super-Mario-Bro-Python-Project
2cbcb7ba713a81d37bd1ea16311f15e982a00774
[ "MIT" ]
null
null
null
""" Main menu set up """ import pygame from .. import Setup from .. import Tools from .. import Constant as Con from ..Components import Info class MainMenu: def __init__(self): self.setup_background() self.setup_player() self.setup_cursor() self.info = Info.Info...
36.830769
99
0.552632
2,238
0.934837
0
0
0
0
0
0
136
0.056809
5a7057c32e096dcc96fd46f2913322b29562d86b
634
py
Python
user/models.py
ThePokerFaCcCe/teamwork
e6d3cfa7821ddba7a122b740e7f5dabb2b1eb316
[ "MIT" ]
null
null
null
user/models.py
ThePokerFaCcCe/teamwork
e6d3cfa7821ddba7a122b740e7f5dabb2b1eb316
[ "MIT" ]
null
null
null
user/models.py
ThePokerFaCcCe/teamwork
e6d3cfa7821ddba7a122b740e7f5dabb2b1eb316
[ "MIT" ]
null
null
null
from django.utils.translation import gettext_lazy as _ from django.contrib.auth.models import AbstractUser from django.db import models from user.validators import UsernameValidator class User(AbstractUser): username = models.CharField( _("username"), max_length=36, unique=True, h...
27.565217
69
0.637224
448
0.706625
0
0
0
0
0
0
149
0.235016
5a71f92e7f88851d5919ffc0e563e6147877d1d6
812
py
Python
Advent2016/6.py
SSteve/AdventOfCode
aed16209381ccd292fc02008f1f2da5d16ff1a05
[ "MIT" ]
null
null
null
Advent2016/6.py
SSteve/AdventOfCode
aed16209381ccd292fc02008f1f2da5d16ff1a05
[ "MIT" ]
null
null
null
Advent2016/6.py
SSteve/AdventOfCode
aed16209381ccd292fc02008f1f2da5d16ff1a05
[ "MIT" ]
null
null
null
from collections import Counter TEST = """eedadn drvtee eandsr raavrd atevrs tsrnev sdttsa rasrtv nssdts ntnada svetve tesnvt vntsnd vrdear dvrsen enarar""" def decode(lines: list[str], wantLeast=False): result = '' for i in range(len(lines[0])): count = Counter(line[i] for line in lines) if ...
18.044444
52
0.64532
0
0
0
0
0
0
0
0
191
0.235222
5a7517c33209b1b32f8a9e56da76245b5b0b9793
6,246
py
Python
profile_api/views.py
csalaman/profiles-rest-api
936d2a23fb78144c8e50a8d3de2b94051add49b9
[ "MIT" ]
null
null
null
profile_api/views.py
csalaman/profiles-rest-api
936d2a23fb78144c8e50a8d3de2b94051add49b9
[ "MIT" ]
null
null
null
profile_api/views.py
csalaman/profiles-rest-api
936d2a23fb78144c8e50a8d3de2b94051add49b9
[ "MIT" ]
null
null
null
# DRF Views types (APIView & ViewSet) # APIViews allows to write standard HTTP Methods as functions & give most control over the logic # Benefits: Perfect for implementing complex logic, calling other APIs, working with local files # Viewsets -> uses model operations for functions kist, create, retrieve, update, parti...
39.0375
148
0.693724
4,731
0.757445
0
0
0
0
0
0
2,882
0.461415
5a75c828e876ed3a1b7b9389dd4545aaaf2d9462
466
py
Python
examples/panflute/myemph.py
jacobwhall/panflute
281ddeaebd2c2c94f457f3da785037cadf69389e
[ "BSD-3-Clause" ]
361
2016-04-26T18:23:30.000Z
2022-03-24T20:58:18.000Z
examples/panflute/myemph.py
jacobwhall/panflute
281ddeaebd2c2c94f457f3da785037cadf69389e
[ "BSD-3-Clause" ]
164
2016-04-27T18:42:55.000Z
2022-02-13T23:34:17.000Z
examples/panflute/myemph.py
jacobwhall/panflute
281ddeaebd2c2c94f457f3da785037cadf69389e
[ "BSD-3-Clause" ]
62
2016-06-15T13:33:54.000Z
2021-11-20T07:33:07.000Z
#!/usr/bin/env python import panflute as pf """ Pandoc filter that causes emphasis to be rendered using the custom macro '\myemph{...}' rather than '\emph{...}' in latex. Other output formats are unaffected. """ def latex(s): return pf.RawInline(s, format='latex') def myemph(e, doc): if type(e)==pf.Emph a...
21.181818
64
0.654506
0
0
0
0
0
0
0
0
227
0.487124
5a78040379a605d417a65ff4123fa8c2e73e5ad9
3,393
py
Python
src/financial_statements/old/balance_sheet.py
LeanderLXZ/intelligent-analysis-of-financial-statements
38bab5bea3c2f22f71020020c8325f6b6b014853
[ "Apache-2.0" ]
null
null
null
src/financial_statements/old/balance_sheet.py
LeanderLXZ/intelligent-analysis-of-financial-statements
38bab5bea3c2f22f71020020c8325f6b6b014853
[ "Apache-2.0" ]
null
null
null
src/financial_statements/old/balance_sheet.py
LeanderLXZ/intelligent-analysis-of-financial-statements
38bab5bea3c2f22f71020020c8325f6b6b014853
[ "Apache-2.0" ]
1
2021-12-15T02:09:16.000Z
2021-12-15T02:09:16.000Z
import time import threading import argparse import tushare as ts import numpy as np import pandas as pd from pandas import datetime as dt from tqdm import tqdm from utils import * with open('../../tushare_token.txt', 'r') as f: token = f.readline() ts.set_token(token) tushare_api = ts.pro_api() # 股票列表 df_list ...
44.644737
80
0.72178
0
0
0
0
0
0
0
0
2,258
0.661976
5a79960fc035f3d47bd3d6b6b9332c5bd900eee5
1,208
py
Python
examples/wsgi/test.py
gelnior/couchdbkit
8277d6ffd00553ae0b0b2368636460d40f8d8225
[ "MIT" ]
51
2015-04-01T14:53:46.000Z
2022-03-16T09:16:10.000Z
examples/wsgi/test.py
gelnior/couchdbkit
8277d6ffd00553ae0b0b2368636460d40f8d8225
[ "MIT" ]
17
2015-02-04T11:25:02.000Z
2021-07-10T10:17:53.000Z
examples/wsgi/test.py
gelnior/couchdbkit
8277d6ffd00553ae0b0b2368636460d40f8d8225
[ "MIT" ]
40
2015-01-13T23:38:01.000Z
2022-02-26T22:08:01.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2008,2009 Benoit Chesneau <[email protected]> # # 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.or...
30.974359
83
0.693709
0
0
0
0
0
0
0
0
799
0.661424
5a7ade7264494768c161fd0f8d10b792225101d5
2,480
py
Python
src/comments/api/views/DetailAPIView.py
samrika25/TRAVIS_HEROKU_GIT
bcae6d0422d9a0369810944a91dd03db7df0d058
[ "MIT" ]
null
null
null
src/comments/api/views/DetailAPIView.py
samrika25/TRAVIS_HEROKU_GIT
bcae6d0422d9a0369810944a91dd03db7df0d058
[ "MIT" ]
4
2021-03-30T12:35:36.000Z
2021-06-10T18:11:24.000Z
src/comments/api/views/DetailAPIView.py
samrika25/TRAVIS_HEROKU_GIT
bcae6d0422d9a0369810944a91dd03db7df0d058
[ "MIT" ]
2
2021-02-07T16:16:36.000Z
2021-07-13T05:26:51.000Z
from django.views import View from comments.models import Comment from django.http import JsonResponse from utils.decorators import fail_safe_api from utils.models import nested_model_to_dict from utils.request import parse_body, set_user from django.contrib.contenttypes.models import ContentType class DetailAPIView(...
26.666667
114
0.604435
2,178
0.878226
0
0
1,875
0.756048
0
0
181
0.072984
5a7b8772eb3240b031d703bd91a985fdc85cecd0
2,857
py
Python
src/router.py
mix2zeta/social-d
923cc2b224470e940ae6ac9cc712adb685c1b216
[ "MIT" ]
null
null
null
src/router.py
mix2zeta/social-d
923cc2b224470e940ae6ac9cc712adb685c1b216
[ "MIT" ]
null
null
null
src/router.py
mix2zeta/social-d
923cc2b224470e940ae6ac9cc712adb685c1b216
[ "MIT" ]
1
2021-03-11T09:07:11.000Z
2021-03-11T09:07:11.000Z
from aiohttp import web import urllib.parse from conf import settings ROUTER = { "poke_task": { "url": "/poke", "GET": "request_handle.poke_task", "POST": "request_handle.poke_task", }, "task": { "url": "/task/{task_id}", "GET": "request_handle.get_task", }, ...
28.287129
88
0.533427
0
0
0
0
0
0
0
0
921
0.322366
5a7f094b28c04c830704df3edc53f45db870422e
3,668
py
Python
golly_python/manager.py
golly-splorts/golly-python
54bc277cc2aed9f35b67a6f8de1d468d9893440c
[ "MIT" ]
null
null
null
golly_python/manager.py
golly-splorts/golly-python
54bc277cc2aed9f35b67a6f8de1d468d9893440c
[ "MIT" ]
null
null
null
golly_python/manager.py
golly-splorts/golly-python
54bc277cc2aed9f35b67a6f8de1d468d9893440c
[ "MIT" ]
null
null
null
import json from .life import BinaryLife class GOL(object): team_names: list = [] columns = 0 rows = 0 def __init__(self, **kwargs): self.load_config(**kwargs) self.create_life() def __repr__(self): s = [] s.append("+" + "-" * (self.columns) + "+") for i i...
30.823529
88
0.507361
3,624
0.988004
0
0
136
0.037077
0
0
848
0.231189
5a7f42aae312bdb1dfd1e806bfb1013a4638beeb
48
py
Python
surge_multiplier_mdp/__init__.py
mbattifarano/surge-multiplier-mdp
8a8477662a2a9b7daa7acb8b8cf486bef0ec8c05
[ "MIT" ]
null
null
null
surge_multiplier_mdp/__init__.py
mbattifarano/surge-multiplier-mdp
8a8477662a2a9b7daa7acb8b8cf486bef0ec8c05
[ "MIT" ]
null
null
null
surge_multiplier_mdp/__init__.py
mbattifarano/surge-multiplier-mdp
8a8477662a2a9b7daa7acb8b8cf486bef0ec8c05
[ "MIT" ]
null
null
null
from .mdp_value_iteration import value_iteration
48
48
0.916667
0
0
0
0
0
0
0
0
0
0
5a7f6cebc7d1d5a0a12a5527001bd5fbb8d22d54
568
py
Python
DiplomaProject/office/admin.py
iamgo100/diploma
fc7314468631bf43774b4678890d2a315658713c
[ "MIT" ]
null
null
null
DiplomaProject/office/admin.py
iamgo100/diploma
fc7314468631bf43774b4678890d2a315658713c
[ "MIT" ]
null
null
null
DiplomaProject/office/admin.py
iamgo100/diploma
fc7314468631bf43774b4678890d2a315658713c
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Shift, Service, Appointment class ShiftAdmin(admin.ModelAdmin): fields = ['date', 'master', 'room'] list_display = ('date', 'master', 'status') class ServicetAdmin(admin.ModelAdmin): list_display = ('service_name', 'cost', 'duration', 'room') ...
35.5
66
0.713028
336
0.591549
0
0
0
0
0
0
114
0.200704
5a7fe776654c20e1290bc4e948072b1dcc063b7e
2,007
py
Python
util/query_jmx.py
perfsonar/esmond
391939087321c1438d54cdadee3eb936b95f3e92
[ "BSD-3-Clause-LBNL" ]
3
2019-10-23T01:10:19.000Z
2022-03-26T18:40:44.000Z
util/query_jmx.py
perfsonar/esmond
391939087321c1438d54cdadee3eb936b95f3e92
[ "BSD-3-Clause-LBNL" ]
23
2018-12-05T20:30:04.000Z
2020-11-11T19:20:57.000Z
util/query_jmx.py
perfsonar/esmond
391939087321c1438d54cdadee3eb936b95f3e92
[ "BSD-3-Clause-LBNL" ]
3
2019-02-11T20:40:41.000Z
2022-03-26T18:40:50.000Z
#!/usr/bin/env python3 """ Code to issue calls to the cassandra MX4J http server and get stats. """ import os import sys from optparse import OptionParser from esmond.api.client.jmx import CassandraJMX def main(): usage = '%prog [ -U ]' parser = OptionParser(usage=usage) parser.add_option('-U', '--url',...
38.596154
78
0.678127
0
0
0
0
0
0
0
0
695
0.346288
5a8074c85da0b1531e270b6b0eaa82126e705010
1,294
py
Python
apps/accounts/management/commands/amend_hostingproviders_stats.py
BR0kEN-/admin-portal
0c38dc0d790031f45bf07660bce690e972fe2858
[ "Apache-2.0" ]
null
null
null
apps/accounts/management/commands/amend_hostingproviders_stats.py
BR0kEN-/admin-portal
0c38dc0d790031f45bf07660bce690e972fe2858
[ "Apache-2.0" ]
null
null
null
apps/accounts/management/commands/amend_hostingproviders_stats.py
BR0kEN-/admin-portal
0c38dc0d790031f45bf07660bce690e972fe2858
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand from django.db import connection class Command(BaseCommand): help = "Add missing id column for hostingstats." def handle(self, *args, **options): with connection.cursor() as cursor: self.cursor = cursor self.cursor.execute( ...
38.058824
91
0.532457
1,206
0.931994
0
0
0
0
0
0
985
0.761206
5a80b2e184b51cbc11327bc99c0e1506a3d4bc1b
2,493
py
Python
src/brain_atlas/diff_exp.py
MacoskoLab/brain-atlas
6db385435ea1a6e96fd019963b4f7e23148a7b9a
[ "MIT" ]
2
2022-01-21T19:13:35.000Z
2022-03-24T07:46:57.000Z
src/brain_atlas/diff_exp.py
MacoskoLab/brain-atlas
6db385435ea1a6e96fd019963b4f7e23148a7b9a
[ "MIT" ]
null
null
null
src/brain_atlas/diff_exp.py
MacoskoLab/brain-atlas
6db385435ea1a6e96fd019963b4f7e23148a7b9a
[ "MIT" ]
null
null
null
import numba as nb import numpy as np import scipy.stats @nb.njit(parallel=True) def tiecorrect(rankvals): """ parallelized version of scipy.stats.tiecorrect :param rankvals: p x n array of ranked data (output of rankdata function) """ tc = np.ones(rankvals.shape[1], dtype=np.float64) for j i...
29.329412
85
0.584436
0
0
0
0
1,378
0.552748
0
0
630
0.252708
5a81a24952b6eed80c202bd9ff7db7e295855534
2,088
py
Python
piece.py
brouxco/quarto-solver
12ae87f43d4a80137cb4394de9c399d8f9894da3
[ "0BSD" ]
null
null
null
piece.py
brouxco/quarto-solver
12ae87f43d4a80137cb4394de9c399d8f9894da3
[ "0BSD" ]
null
null
null
piece.py
brouxco/quarto-solver
12ae87f43d4a80137cb4394de9c399d8f9894da3
[ "0BSD" ]
null
null
null
class Piece(object): def __init__(self, is_tall: bool = True, is_dark: bool = True, is_square: bool = True, is_solid: bool = True, string: str = None): if string: self.is_tall = (string[0] == "1") se...
32.625
56
0.531609
2,049
0.981322
0
0
0
0
0
0
60
0.028736
5a81e0954b1a9e5e3552a3af4e53c8b36b9c007f
21,061
py
Python
tests/test_build_docs.py
simon-ritchie/action-py-script
f502ede320089562d77d13231e85e65b9de64938
[ "MIT" ]
null
null
null
tests/test_build_docs.py
simon-ritchie/action-py-script
f502ede320089562d77d13231e85e65b9de64938
[ "MIT" ]
16
2021-02-13T05:19:16.000Z
2021-02-23T11:40:18.000Z
tests/test_build_docs.py
simon-ritchie/action-py-script
f502ede320089562d77d13231e85e65b9de64938
[ "MIT" ]
null
null
null
import hashlib import os import shutil from random import randint from typing import List from retrying import retry import build_docs from apysc._file import file_util from build_docs import _CodeBlock from build_docs import _CodeBlockFlake8Error from build_docs import _CodeBlockMypyError from build_doc...
35.160267
78
0.651346
451
0.0214
0
0
19,330
0.9172
0
0
4,387
0.208161
5a8286acf837a481397e002bada53024ba40d6ed
15,551
py
Python
Generator/views.py
SmilingTornado/sfia_generator
f675a3fe55e3b56267cafade44ebd069bac185d7
[ "Apache-2.0" ]
2
2020-08-19T08:43:51.000Z
2021-11-18T09:05:55.000Z
Generator/views.py
SmilingTornado/sfia_generator
f675a3fe55e3b56267cafade44ebd069bac185d7
[ "Apache-2.0" ]
5
2020-06-06T14:15:30.000Z
2021-09-22T18:47:36.000Z
Generator/views.py
SmilingTornado/sfia_generator
f675a3fe55e3b56267cafade44ebd069bac185d7
[ "Apache-2.0" ]
null
null
null
# Create your views here. import docx import gensim import numpy as np from django.conf import settings from django.http import HttpResponse from django.shortcuts import render from docx.shared import RGBColor, Inches, Pt from nltk.tokenize import sent_tokenize, word_tokenize from .models import Skill, Level # View ...
42.02973
118
0.641952
0
0
0
0
0
0
0
0
5,130
0.32984
5a83d552df37fe7fdd13e1e5236c56ad3f9e80ab
3,076
py
Python
flask_pancake/extension.py
arthurio/flask-pancake
5fc752d6e917bbe8e06be7d7a802cdeb10cca591
[ "MIT" ]
4
2020-01-21T04:33:01.000Z
2021-04-27T22:56:23.000Z
flask_pancake/extension.py
arthurio/flask-pancake
5fc752d6e917bbe8e06be7d7a802cdeb10cca591
[ "MIT" ]
16
2020-01-25T19:27:11.000Z
2020-10-13T20:09:18.000Z
flask_pancake/extension.py
arthurio/flask-pancake
5fc752d6e917bbe8e06be7d7a802cdeb10cca591
[ "MIT" ]
2
2020-06-18T08:38:28.000Z
2021-04-28T02:53:39.000Z
from __future__ import annotations import abc from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Type, Union from cached_property import cached_property from .constants import EXTENSION_NAME from .registry import registry from .utils import GroupFuncType, import_from_string, load_cookies, store_c...
29.295238
85
0.624187
2,620
0.851756
0
0
1,161
0.377438
0
0
149
0.04844
5a857abf3570c3df69b81be2e28f99b2e77798fb
1,563
py
Python
tests/pygithub/test_targettag.py
ktlim/sqre-codekit
98122404cd9065d4d1d570867fe518042669126c
[ "MIT" ]
null
null
null
tests/pygithub/test_targettag.py
ktlim/sqre-codekit
98122404cd9065d4d1d570867fe518042669126c
[ "MIT" ]
23
2015-12-04T16:54:15.000Z
2019-03-15T01:14:26.000Z
tests/pygithub/test_targettag.py
ktlim/sqre-codekit
98122404cd9065d4d1d570867fe518042669126c
[ "MIT" ]
3
2016-08-08T16:44:04.000Z
2020-04-29T00:58:00.000Z
#!/usr/bin/env python3 import codekit.pygithub import github import itertools import pytest @pytest.fixture def git_author(): return github.InputGitAuthor(name='foo', email='[email protected]') def test_init(git_author): """Test TargetTag object instantiation""" t_tag = codekit.pygithub.TargetTag( ...
22.328571
78
0.614203
0
0
0
0
103
0.065899
0
0
313
0.200256
5a898eeb8ca1914311a3bfe38f233e0ef651e459
497
py
Python
src/test/model/test_node.py
AstrorEnales/GenCoNet
c596d31a889f14499883fcdf74fdc67f927a806e
[ "MIT" ]
2
2019-12-05T11:46:48.000Z
2022-03-09T00:11:06.000Z
src/test/model/test_node.py
AstrorEnales/GenCoNet
c596d31a889f14499883fcdf74fdc67f927a806e
[ "MIT" ]
null
null
null
src/test/model/test_node.py
AstrorEnales/GenCoNet
c596d31a889f14499883fcdf74fdc67f927a806e
[ "MIT" ]
null
null
null
import unittest from model import node class DummyNode(node.Node): def __init__(self, ids: [str], names: [str]): super().__init__(ids, names) self.primary_id_prefix = 'TEST' class TestMethods(unittest.TestCase): def test_label(self): n = DummyNode([], []) self.assertEqual(n.l...
26.157895
83
0.615694
452
0.909457
0
0
0
0
0
0
85
0.171026
5a8acbff39d71356c0bdbbffc0011959d6b7ec58
1,109
py
Python
2020/Python/day06.py
kamoshi/Advent-of-Code
5b78fa467409e8b8c5a16efe31684b8ce493bcee
[ "MIT" ]
1
2020-12-21T13:27:52.000Z
2020-12-21T13:27:52.000Z
2020/Python/day06.py
kamoshi/advent-of-code
5b78fa467409e8b8c5a16efe31684b8ce493bcee
[ "MIT" ]
null
null
null
2020/Python/day06.py
kamoshi/advent-of-code
5b78fa467409e8b8c5a16efe31684b8ce493bcee
[ "MIT" ]
null
null
null
import functools def parse_input() -> list[list[str]]: groups = [[]] with open("input.txt") as file: for line in file: line_ = line.rstrip() if len(line_) > 0: groups[-1].append(line_) else: if not groups[-1] == []: ...
22.632653
61
0.537421
0
0
0
0
0
0
0
0
11
0.009919