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
1d1ac581b59a0c2d9ffa10dc5dad9768f58e2cab
3,376
py
Python
packages/grid/apps/domain/src/main/core/infrastructure/providers/azure/utils.py
exityan/PySyft
35166c487a5be57f9ad28929ed88a8ba6bdd5aeb
[ "Apache-2.0" ]
425
2019-09-22T06:14:53.000Z
2022-03-30T02:17:34.000Z
packages/grid/apps/domain/src/main/core/infrastructure/providers/azure/utils.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
352
2019-09-17T15:32:51.000Z
2022-03-12T01:07:35.000Z
packages/grid/apps/domain/src/main/core/infrastructure/providers/azure/utils.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
208
2019-09-18T18:32:10.000Z
2022-03-24T01:10:11.000Z
# stdlib import json import subprocess # third party from PyInquirer import prompt import click # grid relative from ...utils import Config from ...utils import styles class AZ: def locations_list(self): proc = subprocess.Popen( "az account list-locations", shell=True, ...
25.575758
115
0.512737
331
0.098045
0
0
0
0
0
0
1,100
0.325829
1d1ad5700c7e709bb9104f588aba454d223ca272
8,930
py
Python
sparv/core/preload.py
spraakbanken/sparv-pipeline
7293d42c577afdaf01ce8a936743f8b83d6eb962
[ "MIT" ]
17
2018-09-21T07:01:45.000Z
2022-02-24T23:26:49.000Z
sparv/core/preload.py
spraakbanken/sparv-pipeline
7293d42c577afdaf01ce8a936743f8b83d6eb962
[ "MIT" ]
146
2018-11-13T19:13:25.000Z
2022-03-31T09:57:56.000Z
sparv/core/preload.py
spraakbanken/sparv-pipeline
7293d42c577afdaf01ce8a936743f8b83d6eb962
[ "MIT" ]
5
2019-02-14T00:50:38.000Z
2021-03-29T15:37:41.000Z
"""Sparv preloader.""" import logging import multiprocessing import pickle import socket import struct import time from contextlib import contextmanager from pathlib import Path from typing import Dict, Iterator from rich.logging import RichHandler from sparv.core import config, log_handler from sparv.core.console im...
30.168919
119
0.643673
352
0.039418
242
0.0271
258
0.028891
0
0
2,182
0.244345
1d1c5756061b18bbb1b7b5e25656572631739d00
1,273
py
Python
setup.py
gawainguo/Flask-AC
6b7c7ebe7721b1208d7596999ce29852a7e1879c
[ "MIT" ]
3
2018-11-09T09:06:01.000Z
2018-11-11T15:38:45.000Z
setup.py
gawainguo/Flask-AC
6b7c7ebe7721b1208d7596999ce29852a7e1879c
[ "MIT" ]
1
2018-11-11T15:39:04.000Z
2018-11-15T02:31:32.000Z
setup.py
gawainguo/Flask-AC
6b7c7ebe7721b1208d7596999ce29852a7e1879c
[ "MIT" ]
null
null
null
""" Flask-ac -------- Flask-ac provide role based access control(rbac) for Flask. This plugin implement tree-like permission structure for access control. Flask-ac is not implement persistent storage of user, roles and permissions, instead using self-defined loaders to load data from anywhere you want. """ from se...
25.979592
76
0.666143
0
0
0
0
0
0
0
0
737
0.578947
1d2070f0787262f30a6d4117b7ff46c3f54c3405
887
py
Python
release/stubs.min/System/Net/__init___parts/TransportContext.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Net/__init___parts/TransportContext.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Net/__init___parts/TransportContext.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
class TransportContext(object): """ The System.Net.TransportContext class provides additional context about the underlying transport layer. """ def ZZZ(self): """hardcoded/mock instance of the class""" return TransportContext() instance=ZZZ() """hardcoded/returns an instance of the class""" def GetChann...
40.318182
186
0.740699
885
0.997745
0
0
0
0
0
0
688
0.775648
1d223111cfbe4ff9cf61540962d513bd338f369e
269
py
Python
Desafios/Desafio 14.py
VictorFBX/Python
cf2c5fcb86b161a25bae14eb9925af9b3852f4a5
[ "MIT" ]
null
null
null
Desafios/Desafio 14.py
VictorFBX/Python
cf2c5fcb86b161a25bae14eb9925af9b3852f4a5
[ "MIT" ]
null
null
null
Desafios/Desafio 14.py
VictorFBX/Python
cf2c5fcb86b161a25bae14eb9925af9b3852f4a5
[ "MIT" ]
null
null
null
print('=== Desafio 15 ===') print('Aluguel de carro') d = int(input('Por quantos dias o carro foi alugado? ')) k = float(input('Qual a quantidade de quilometros percorridos?')) rd = float(d*60) rk = float(k*0,15) r = float(rd + rk) print(f'Você tem a pagar R${r}')
20.692308
65
0.64684
0
0
0
0
0
0
0
0
151
0.559259
1d22a169803d6261276634a269c2a3746b0505a5
3,387
py
Python
lib/utils/views/tables.py
arkanister/minitickets
e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd
[ "Apache-2.0" ]
null
null
null
lib/utils/views/tables.py
arkanister/minitickets
e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd
[ "Apache-2.0" ]
2
2015-03-13T19:37:21.000Z
2018-06-20T23:06:41.000Z
lib/utils/views/tables.py
arkanister/minitickets
e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.core.exceptions import ImproperlyConfigured from django.utils.translation import ugettext as _ from django_tables2.views import SingleTableMixin as BaseSingleTableMixin from .list import ListView from .utils import TableActions from ..html.icons.base import Icon from ..tables.util...
33.87
88
0.588131
3,039
0.897254
0
0
0
0
0
0
511
0.150871
1d23c85ef9eae66890a2576e320e829e63ded9b4
1,825
py
Python
brainfuck.py
pfav/brainfuck
093e4dc095b16b5409ef786a03faef6070db3b4c
[ "MIT" ]
null
null
null
brainfuck.py
pfav/brainfuck
093e4dc095b16b5409ef786a03faef6070db3b4c
[ "MIT" ]
null
null
null
brainfuck.py
pfav/brainfuck
093e4dc095b16b5409ef786a03faef6070db3b4c
[ "MIT" ]
null
null
null
import os import sys def usage(): print "%s script.b" % sys.argv[0] sys.exit(127) class Machine: def __init__(self, filename): self.filename = filename self.code = [] self.codePos = 0 self.tape = [] self.tapePos = 0 try: with open(filename, ...
28.515625
81
0.465205
1,575
0.863014
0
0
0
0
0
0
50
0.027397
1d2415810e07270813c6afdcc29d272aef24020d
668
py
Python
ITcoach/DataAnalysis-master/day01/code/page30.py
ww35133634/chenxusheng
666e0eb3aedde46342faf0d4030f5c72b10c9732
[ "AFL-3.0" ]
null
null
null
ITcoach/DataAnalysis-master/day01/code/page30.py
ww35133634/chenxusheng
666e0eb3aedde46342faf0d4030f5c72b10c9732
[ "AFL-3.0" ]
null
null
null
ITcoach/DataAnalysis-master/day01/code/page30.py
ww35133634/chenxusheng
666e0eb3aedde46342faf0d4030f5c72b10c9732
[ "AFL-3.0" ]
null
null
null
# coding=utf-8 from matplotlib import pyplot as plt from matplotlib import font_manager my_font = font_manager.FontProperties(fname="/System/Library/Fonts/PingFang.ttc") y_1 = [1,0,1,1,2,4,3,2,3,4,4,5,6,5,4,3,3,1,1,1] y_2 = [1,0,3,1,2,2,3,3,2,1 ,2,1,1,1,1,1,1,1,1,1] x = range(11,31) #设置图形大小 plt.figure(figsize=(20,8...
21.548387
81
0.687126
0
0
0
0
0
0
0
0
203
0.281944
1d25121bf6642b18ea19ea2d54bd4ec3807ae0af
3,830
py
Python
AutomatedTesting/Gem/PythonTests/largeworlds/dyn_veg/EditorScripts/MeshSurfaceTagEmitter_DependentOnMeshComponent.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-09-13T00:01:12.000Z
2021-09-13T00:01:12.000Z
AutomatedTesting/Gem/PythonTests/largeworlds/dyn_veg/EditorScripts/MeshSurfaceTagEmitter_DependentOnMeshComponent.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/largeworlds/dyn_veg/EditorScripts/MeshSurfaceTagEmitter_DependentOnMeshComponent.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ import os import sys sys.path.append(os.path.dirname(os.path.abspath(__file__))) import azlmbr.bus as bus impo...
39.484536
155
0.692689
3,124
0.815666
0
0
0
0
0
0
1,776
0.463708
1d2637ad7aaffc1418a08aa5a97b02603673de42
554
py
Python
blog/qiniu.py
yqh231/heroku_site
0d50b27a384901b5315f99f339a5e0dfb6df2b76
[ "Apache-2.0" ]
2
2017-05-02T10:18:16.000Z
2019-04-19T10:07:45.000Z
blog/qiniu.py
yqh231/heroku_site
0d50b27a384901b5315f99f339a5e0dfb6df2b76
[ "Apache-2.0" ]
null
null
null
blog/qiniu.py
yqh231/heroku_site
0d50b27a384901b5315f99f339a5e0dfb6df2b76
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from hashlib import sha1 import hmac import base64 import datetime import time import os def getToken(): AK = os.environ.get('AK') or ''#七牛Access Key,推荐写入环境变量 SK = os.environ.get('SK') or '' #七牛Secret Key,推荐写入环境变量 dl=int(time.mktime(datetime.datetime.now().timetuple()))+21600 s=...
27.7
70
0.66065
0
0
0
0
0
0
0
0
205
0.331715
1d26647d4723f5235618279993d3fbddff95048d
2,600
py
Python
autohoot/einsum_ops/basic_ops.py
LinjianMa/AutoHOOT
5f9b790afb15cf4ae97cd0929a1db65d7c0347b3
[ "Apache-2.0" ]
13
2020-11-16T03:35:50.000Z
2022-03-02T05:20:16.000Z
autohoot/einsum_ops/basic_ops.py
LinjianMa/AutoHOOT
5f9b790afb15cf4ae97cd0929a1db65d7c0347b3
[ "Apache-2.0" ]
19
2020-10-02T00:52:08.000Z
2021-09-10T19:34:29.000Z
autohoot/einsum_ops/basic_ops.py
LinjianMa/AutoHOOT
5f9b790afb15cf4ae97cd0929a1db65d7c0347b3
[ "Apache-2.0" ]
1
2020-10-10T18:26:00.000Z
2020-10-10T18:26:00.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.666667
97
0.657692
0
0
0
0
0
0
0
0
1,071
0.41129
1d267fee47b590f18e86beb01585b978947578b2
1,992
py
Python
pyconde/accounts/urls.py
EuroPython/djep
afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21
[ "BSD-3-Clause" ]
5
2015-01-02T14:33:14.000Z
2021-08-03T10:19:07.000Z
pyconde/accounts/urls.py
EuroPython/djep
afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21
[ "BSD-3-Clause" ]
null
null
null
pyconde/accounts/urls.py
EuroPython/djep
afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21
[ "BSD-3-Clause" ]
3
2015-08-30T09:45:03.000Z
2017-04-08T12:15:22.000Z
from django.conf.urls import patterns, url from . import forms from . import views urlpatterns = patterns('django.contrib.auth.views', url(r'^login/$', 'login', {'template_name': 'userprofiles/login.html', 'authentication_form': forms.AuthenticationForm}, name='auth_login'), url(r'^p...
46.325581
102
0.678213
0
0
0
0
0
0
0
0
1,067
0.535643
1d273c127b987c5a9a4f09849a747810b4fba7f6
456
py
Python
sync/apps.py
Semprini/reference-hub
d203bfc07c3f6a7a68a0af577dae438500dca920
[ "Apache-2.0" ]
null
null
null
sync/apps.py
Semprini/reference-hub
d203bfc07c3f6a7a68a0af577dae438500dca920
[ "Apache-2.0" ]
null
null
null
sync/apps.py
Semprini/reference-hub
d203bfc07c3f6a7a68a0af577dae438500dca920
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig from django.db.models.signals import post_save, post_delete from django.conf import settings class SyncConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'sync' def ready(self): try: from .signals import init_signals ...
26.823529
59
0.671053
326
0.714912
0
0
0
0
0
0
84
0.184211
1d27e0ec2cfcb3d79fec0c7c0ef9ea9efb7b7eba
1,816
py
Python
resistorCor.py
EduFreit4s/Python
fcefb055467f2ef1d8a2ce97d2da78ed9052f982
[ "MIT" ]
null
null
null
resistorCor.py
EduFreit4s/Python
fcefb055467f2ef1d8a2ce97d2da78ed9052f982
[ "MIT" ]
null
null
null
resistorCor.py
EduFreit4s/Python
fcefb055467f2ef1d8a2ce97d2da78ed9052f982
[ "MIT" ]
null
null
null
# =================================== # = https://github.com/EduFreit4s = # =================================== # TRADUZ CÓDIGO DE CORES DE RESISTORES DE QUATRO BANDAS # OBS : SAÍDA STRING def resistorCor(cor1, cor2, cor3, cor4): def corToNumber(cor): # CONVERTE COR DO PARAMETRO PARA ...
36.32
97
0.47467
0
0
0
0
0
0
0
0
658
0.359759
1d290cbaf08552e34dffc797e9f3c2b29932eb60
7,018
py
Python
lib/execution_engine2/cruft.py
MrCreosote/execution_engine2
6017c7d3fb49d53428c51da5ef51a0bf788266cf
[ "MIT" ]
null
null
null
lib/execution_engine2/cruft.py
MrCreosote/execution_engine2
6017c7d3fb49d53428c51da5ef51a0bf788266cf
[ "MIT" ]
null
null
null
lib/execution_engine2/cruft.py
MrCreosote/execution_engine2
6017c7d3fb49d53428c51da5ef51a0bf788266cf
[ "MIT" ]
null
null
null
# # def _run_admin_command(self, command, params): # # available_commands = ["cancel_job", "view_job_logs"] # # if command not in available_commands: # # raise ValueError(f"{command} not an admin command. See {available_commands} ") # # commands = {"cancel_job": self.cancel_job, "view_job_logs": sel...
38.773481
109
0.596894
0
0
0
0
0
0
0
0
6,838
0.974352
1d29be1a771cd9e0590fc73466c60e3543600577
1,705
py
Python
notifications/consumers.py
utkarsh23/endorsity-club
7b3684856f9e14284d9998931b7124505376ca5a
[ "MIT" ]
null
null
null
notifications/consumers.py
utkarsh23/endorsity-club
7b3684856f9e14284d9998931b7124505376ca5a
[ "MIT" ]
null
null
null
notifications/consumers.py
utkarsh23/endorsity-club
7b3684856f9e14284d9998931b7124505376ca5a
[ "MIT" ]
null
null
null
import json from asgiref.sync import async_to_sync from channels.layers import get_channel_layer from channels.generic.websocket import WebsocketConsumer from notifications.models import Notification class NotificationConsumer(WebsocketConsumer): def connect(self): """Authenticate the user and accept ...
29.396552
81
0.619355
1,499
0.879179
0
0
0
0
0
0
510
0.29912
1d2a1731e6b6041175df26b900dc8590efbb797a
1,737
py
Python
qutipy/protocols/apply_teleportation_channel.py
sumeetkhatri/QuTIPy
ca2a3344c1caa818504425496ea37278d80b1c44
[ "Apache-2.0" ]
19
2020-11-11T13:00:22.000Z
2022-03-14T11:18:04.000Z
qutipy/protocols/apply_teleportation_channel.py
sumeetkhatri/QuTIPy
ca2a3344c1caa818504425496ea37278d80b1c44
[ "Apache-2.0" ]
null
null
null
qutipy/protocols/apply_teleportation_channel.py
sumeetkhatri/QuTIPy
ca2a3344c1caa818504425496ea37278d80b1c44
[ "Apache-2.0" ]
1
2022-03-03T15:20:15.000Z
2022-03-03T15:20:15.000Z
''' This code is part of QuTIpy. (c) Copyright Sumeet Khatri, 2021 This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license in the LICENSE.txt file in the root directory of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. Any modifications or derivative wor...
33.403846
172
0.723086
0
0
0
0
0
0
0
0
1,141
0.65537
1d2aa89261445c754be61bf1b35f8ba6bb1c3e45
3,061
py
Python
ecg_client.py
jtorniainen/ecgnode
9b03025b43417d126df2829e8ee16efdafb09c10
[ "MIT" ]
null
null
null
ecg_client.py
jtorniainen/ecgnode
9b03025b43417d126df2829e8ee16efdafb09c10
[ "MIT" ]
null
null
null
ecg_client.py
jtorniainen/ecgnode
9b03025b43417d126df2829e8ee16efdafb09c10
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # Jari Torniainen <jari.torniainen@ttl.fi> # Finnish Institute of Occupational Health # Copyright 2015 # # This code is released under the MIT license # http://opensource.org/licenses/mit-license.php # # Please see the file LICENSE for details import pygame import reque...
27.827273
108
0.644561
0
0
0
0
0
0
0
0
827
0.270173
1d2bea8c6a7f20c4476edadefe36e9e239e2343f
1,339
py
Python
tests/test_models/test_utils/test_corrblock.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
481
2021-11-16T07:04:23.000Z
2022-03-31T22:21:21.000Z
tests/test_models/test_utils/test_corrblock.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
72
2021-11-16T12:25:55.000Z
2022-03-28T13:10:45.000Z
tests/test_models/test_utils/test_corrblock.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
48
2021-11-16T06:48:46.000Z
2022-03-30T12:46:40.000Z
# Copyright (c) OpenMMLab. All rights reserved. from math import sqrt import pytest import torch from mmflow.models.utils import CorrBlock @pytest.mark.skipif(not torch.cuda.is_available(), reason='CUDA not available') @pytest.mark.parametrize('scaled', [True, False]) def test_corr_block(scaled): feat1 = torch....
34.333333
79
0.651979
0
0
0
0
1,195
0.892457
0
0
166
0.123973
1d2cb6f583df1d724a5c905324ae339fd9c8521c
2,154
py
Python
defaultMetafileParser.py
gaybro8777/habitat
8b42074c8897f58cbcc09886b7258a68a4ddf090
[ "Apache-2.0" ]
8
2016-04-30T15:28:12.000Z
2021-12-30T20:54:47.000Z
defaultMetafileParser.py
gaybro8777/habitat
8b42074c8897f58cbcc09886b7258a68a4ddf090
[ "Apache-2.0" ]
1
2021-12-30T21:09:56.000Z
2021-12-30T21:09:56.000Z
defaultMetafileParser.py
sitedata/habitat
8b42074c8897f58cbcc09886b7258a68a4ddf090
[ "Apache-2.0" ]
5
2016-06-09T16:41:09.000Z
2022-02-18T04:51:49.000Z
''' File: defaultMetafileParser.py Copy this file as a starting point for a custom metadata file parser and replace with customer version of parsebody (maintain signature). Author: Ken Robbins, March 2016 Copyright 2016 Novartis Institutes for BioMedical Research Licensed under the Apache License, Version 2.0...
26.925
92
0.655989
426
0.197772
0
0
0
0
0
0
1,429
0.663417
1d2d1707eb4e6d8f44377b65afc47847232dfecf
30,952
py
Python
jsrows.py
codeforamerica/sheltraustin
a07ffd4b328a9d961347a85b49c95d8bf5ec1046
[ "BSD-3-Clause" ]
null
null
null
jsrows.py
codeforamerica/sheltraustin
a07ffd4b328a9d961347a85b49c95d8bf5ec1046
[ "BSD-3-Clause" ]
1
2015-08-03T21:27:36.000Z
2015-08-03T21:27:36.000Z
jsrows.py
codeforamerica/sheltraustin
a07ffd4b328a9d961347a85b49c95d8bf5ec1046
[ "BSD-3-Clause" ]
1
2021-04-17T10:13:29.000Z
2021-04-17T10:13:29.000Z
location = {loc : [ -97.732517999999999, 30.259606000000002 ], 'mental_health': 'N', 'med_service': 'Y', 'food': 'Y', 'private': 'N', 'shelter': 'N', 'subst_abuse_service': 'N', 'med_facility': 'Y', 'title': 'Manos De Cristo: Dental Clinic', 'address': '1201 E Cesar Chavez St, Austin, TX 78702, USA'} db.austindb.inser...
162.052356
374
0.655111
0
0
0
0
0
0
0
0
19,037
0.615049
1d30f23c6727904b652bf46b8809b6b193789095
22,080
py
Python
senlin/tests/apiv1/test_policies.py
tengqm/senlin
aa59c55c098abb13590bc4308c753338ce4a70f4
[ "Apache-2.0" ]
2
2015-02-11T23:02:13.000Z
2021-03-26T06:39:58.000Z
senlin/tests/apiv1/test_policies.py
tengqm/senlin
aa59c55c098abb13590bc4308c753338ce4a70f4
[ "Apache-2.0" ]
2
2015-01-19T13:40:47.000Z
2015-03-04T07:06:07.000Z
senlin/tests/apiv1/test_policies.py
tengqm/senlin
aa59c55c098abb13590bc4308c753338ce4a70f4
[ "Apache-2.0" ]
5
2015-01-13T14:53:04.000Z
2015-03-13T02:54:06.000Z
# 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 unde...
39.148936
79
0.546467
21,088
0.955072
0
0
20,087
0.909737
0
0
4,131
0.187092
1d31b977564dc71e7940278a32776b4137bb4071
870
py
Python
src/riotwatcher/_apis/valorant/ContentApi.py
acgandhi/Riot-Watcher
f8a7ea144a00fc62f9ffaee5bad3158f41251589
[ "MIT" ]
null
null
null
src/riotwatcher/_apis/valorant/ContentApi.py
acgandhi/Riot-Watcher
f8a7ea144a00fc62f9ffaee5bad3158f41251589
[ "MIT" ]
null
null
null
src/riotwatcher/_apis/valorant/ContentApi.py
acgandhi/Riot-Watcher
f8a7ea144a00fc62f9ffaee5bad3158f41251589
[ "MIT" ]
null
null
null
from .. import BaseApi, NamedEndpoint from .urls import ContentApiUrls class ContentApi(NamedEndpoint): """ This class wraps the Val-Content-v1 Api calls provided by the Riot API. See https://developer.riotgames.com/apis#val-content-v1 for more detailed information """ def __init__(self, bas...
29
84
0.662069
796
0.914943
0
0
0
0
0
0
447
0.513793
1d3309bc274656018de222a60894266542029c04
230
py
Python
setup.py
web-sys1/SeismicSonify
9c0c3880bb403a94bb4f8ca937976e4fef849cbe
[ "MIT" ]
26
2020-06-03T17:46:16.000Z
2022-03-20T09:39:12.000Z
setup.py
web-sys1/SeismicSonify
9c0c3880bb403a94bb4f8ca937976e4fef849cbe
[ "MIT" ]
6
2021-12-01T19:32:56.000Z
2022-02-23T22:25:14.000Z
setup.py
liamtoney/sonify
28e03900fe75dfe7f93a5f0ae91fc5ad0ed1cc4e
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup from sonify import __version__ setup( name='sonify', version=__version__, packages=find_packages(), entry_points=dict(console_scripts='sonify = sonify.sonify:main'), )
20.909091
69
0.747826
0
0
0
0
0
0
0
0
37
0.16087
1d34590963f5f38d99527dbc1562cdf57a07186c
2,811
py
Python
ve/unit/test_in.py
cmarqu/pyvsc
c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa
[ "Apache-2.0" ]
null
null
null
ve/unit/test_in.py
cmarqu/pyvsc
c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa
[ "Apache-2.0" ]
null
null
null
ve/unit/test_in.py
cmarqu/pyvsc
c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
30.89011
99
0.506581
1,865
0.663465
0
0
1,374
0.488794
0
0
1,000
0.355745
1d35816f874492c596c0c80e5339e40d5d0c398d
5,284
py
Python
build/lib/fab_addon_turbowidgets/widgets.py
lemeur/fab_addon_turbowidgets
9ae89cb06b236af9ec2e81e86fcc3d5ccde040fb
[ "MIT" ]
null
null
null
build/lib/fab_addon_turbowidgets/widgets.py
lemeur/fab_addon_turbowidgets
9ae89cb06b236af9ec2e81e86fcc3d5ccde040fb
[ "MIT" ]
null
null
null
build/lib/fab_addon_turbowidgets/widgets.py
lemeur/fab_addon_turbowidgets
9ae89cb06b236af9ec2e81e86fcc3d5ccde040fb
[ "MIT" ]
null
null
null
import json import logging from flask_babel import lazy_gettext as _ from markupsafe import Markup #from wtforms import widgets from wtforms.widgets import html_params, HTMLString from wtforms import SelectField from wtforms.compat import izip, text_type log = logging.getLogger(__name__) DEFAULT_JSEDITOR_CONFIG = { ...
31.640719
143
0.575511
4,201
0.795042
162
0.030659
0
0
0
0
1,251
0.236752
1d36e906a5b1061cbbd34d130e802c023af6d395
3,780
py
Python
wsgi_lineprof/formatter.py
ymyzk/wsgi_lineprof
7aca9899f7d6c08747b17893b47ee8e92347ab9a
[ "MIT" ]
48
2016-10-03T14:04:38.000Z
2021-12-22T04:02:37.000Z
wsgi_lineprof/formatter.py
ymyzk/wsgi_lineprof
7aca9899f7d6c08747b17893b47ee8e92347ab9a
[ "MIT" ]
52
2016-11-30T16:13:24.000Z
2021-10-16T15:56:53.000Z
wsgi_lineprof/formatter.py
ymyzk/wsgi_lineprof
7aca9899f7d6c08747b17893b47ee8e92347ab9a
[ "MIT" ]
3
2017-05-30T03:36:44.000Z
2021-07-13T13:10:08.000Z
from abc import ABCMeta, abstractmethod import inspect import itertools import linecache from os import path from typing import Any, cast, Dict, Sequence import colorama from wsgi_lineprof.stats import LineProfilerStat, LineProfilerStats from wsgi_lineprof.types import Stream class BaseFormatter(metaclass=ABCMeta):...
35.327103
87
0.533333
3,495
0.924603
0
0
108
0.028571
0
0
550
0.145503
1d370ce200f5d51b82bfad5cfc999bc9dd17a50f
4,611
py
Python
backup.py
0xfadead/soundcloud-backup
2132d6d21707577486d5632eca6b6194f02b7fa5
[ "MIT" ]
null
null
null
backup.py
0xfadead/soundcloud-backup
2132d6d21707577486d5632eca6b6194f02b7fa5
[ "MIT" ]
null
null
null
backup.py
0xfadead/soundcloud-backup
2132d6d21707577486d5632eca6b6194f02b7fa5
[ "MIT" ]
null
null
null
import requests import zipfile import tempfile import sys import argparse import time CLIENT_ID = 'JlZIsxg2hY5WnBgtn3jfS0UYCl0K8DOg' INFO_BASE_URL = 'https://api.soundcloud.com/resolve.json' TRACKS_BASE_URL = 'https://api.soundcloud.com/users/{:d}/tracks' LIMIT = 50 # the max track data SoundCloud will return ARCHIV...
31.367347
88
0.585556
0
0
0
0
0
0
0
0
1,368
0.296682
1d3ab01e36180285711e2ffbcad7ba2b517d7211
5,564
py
Python
distpy/workers/strainrate2summary.py
billmcchesney1/distpy
fa49d2a910b164514057ee75fa570397b7004159
[ "MIT" ]
23
2020-02-12T13:25:22.000Z
2022-01-19T07:09:39.000Z
distpy/workers/strainrate2summary.py
billmcchesney1/distpy
fa49d2a910b164514057ee75fa570397b7004159
[ "MIT" ]
2
2020-03-09T11:24:00.000Z
2020-09-14T10:50:51.000Z
distpy/workers/strainrate2summary.py
billmcchesney1/distpy
fa49d2a910b164514057ee75fa570397b7004159
[ "MIT" ]
11
2020-03-28T16:40:39.000Z
2021-07-30T16:02:12.000Z
# (C) 2020, Schlumberger. Refer to LICENSE import numpy import datetime import scipy.signal import os import distpy.io_help.io_helpers as io_helpers import distpy.io_help.directory_services as directory_services import distpy.calc.pub_command_set as pub_command_set import distpy.calc.extra_numpy as extra_numpy import...
38.909091
143
0.640546
0
0
0
0
0
0
0
0
1,689
0.303559
1d3b37227fa67f63b24e1ab4a3e9bca2332dd99a
542
py
Python
backend.py
LRAbbade/postal-validator
4f705fdb766eee8e16f61a82cfef1b25f78a42a6
[ "MIT" ]
1
2019-08-13T20:48:03.000Z
2019-08-13T20:48:03.000Z
backend.py
LRAbbade/postal-validator
4f705fdb766eee8e16f61a82cfef1b25f78a42a6
[ "MIT" ]
null
null
null
backend.py
LRAbbade/postal-validator
4f705fdb766eee8e16f61a82cfef1b25f78a42a6
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, jsonify from main import Validate app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/validate') def validate_cep(): cep = str(request.args.get('cep')) try: res = Validate(cep) error = None...
19.357143
58
0.586716
0
0
0
0
374
0.690037
0
0
70
0.129151
1d3e82a670bdb1776ae183cbe465aaa5f1d7f137
1,537
py
Python
supports/pyload/src/pyload/plugins/downloaders/ShareplaceCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
1
2020-04-02T17:03:39.000Z
2020-04-02T17:03:39.000Z
supports/pyload/src/pyload/plugins/downloaders/ShareplaceCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
supports/pyload/src/pyload/plugins/downloaders/ShareplaceCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re import urllib.parse from ..base.simple_downloader import SimpleDownloader class ShareplaceCom(SimpleDownloader): __name__ = "ShareplaceCom" __type__ = "downloader" __version__ = "0.19" __status__ = "testing" __pyload_version__ = "0.5" __pattern__ = r"http:...
31.367347
82
0.594665
1,424
0.92648
0
0
0
0
0
0
560
0.364346
1d3f37cd6bdd6993696e9d21e1416800284f7f74
145
py
Python
examples/subscriber.py
i2y/h2pubsub
0d98b24b79fb932a3d832781ce4f950e32d20181
[ "MIT" ]
1
2016-06-14T21:54:34.000Z
2016-06-14T21:54:34.000Z
examples/subscriber.py
i2y/h2pubsub
0d98b24b79fb932a3d832781ce4f950e32d20181
[ "MIT" ]
null
null
null
examples/subscriber.py
i2y/h2pubsub
0d98b24b79fb932a3d832781ce4f950e32d20181
[ "MIT" ]
null
null
null
from h2pubsub import Client client = Client(address='localhost', port=443) client.subscribe('/test') while True: print(client.receive())
14.5
46
0.724138
0
0
0
0
0
0
0
0
18
0.124138
1d3fc716405a553729bd9e96eb9a365b1dce30fd
87
py
Python
python/01_Saying_Hello/saying_hello.py
lucifer1004/EFP
3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9
[ "MIT" ]
1
2021-11-04T11:49:46.000Z
2021-11-04T11:49:46.000Z
python/01_Saying_Hello/saying_hello.py
lucifer1004/EFP
3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9
[ "MIT" ]
8
2019-12-16T09:37:36.000Z
2020-07-02T06:00:30.000Z
python/01_Saying_Hello/saying_hello.py
lucifer1004/EFP
3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9
[ "MIT" ]
null
null
null
name = input('What is your name? ') print('Hello, {}, nice to meet you!'.format(name))
29
50
0.643678
0
0
0
0
0
0
0
0
51
0.586207
1d4048ca3098d4827db9662975d9206ac1e37948
3,152
py
Python
app/perm_app.py
StatML-dAI/dnn-inference
f17b6945dfff80118e25f1b39b56c3e4027b3b92
[ "MIT" ]
4
2020-12-08T18:53:31.000Z
2021-11-23T11:29:17.000Z
app/perm_app.py
statmlben/dnn-inference
fef1cbe9382141dfe5c81e84a6bd39f7a17cd736
[ "MIT" ]
null
null
null
app/perm_app.py
statmlben/dnn-inference
fef1cbe9382141dfe5c81e84a6bd39f7a17cd736
[ "MIT" ]
2
2022-02-17T15:57:42.000Z
2022-02-20T11:50:45.000Z
from __future__ import print_function import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from tensorflow.python.keras import backend as K import numpy as np import time from numpy import linalg ...
30.901961
115
0.695431
0
0
0
0
0
0
0
0
931
0.295368
1d44201cc80a01ee7dce6e56338d1f7b7bb103f3
3,144
py
Python
preprocess.py
Mblakey/MOLVAE-Tensorflow-2
55d37b9560450c1f3d83c3b0c852301bd7271659
[ "MIT" ]
null
null
null
preprocess.py
Mblakey/MOLVAE-Tensorflow-2
55d37b9560450c1f3d83c3b0c852301bd7271659
[ "MIT" ]
null
null
null
preprocess.py
Mblakey/MOLVAE-Tensorflow-2
55d37b9560450c1f3d83c3b0c852301bd7271659
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import tensorflow as tf from tensorflow import keras from tensorflow.keras.utils import to_categorical from sklearn.model_selection import train_test_split def Smiles_Tokeniser(smiles): toke_smiles = list(smiles) return toke_smiles def max_length_list(input_list): ...
34.933333
104
0.672074
0
0
0
0
0
0
0
0
720
0.229008
1d45f187ba9cc2962a4c50c91b9b536fbe900389
300
py
Python
log_sample_normal/views.py
exexute/django_sample
7608af6c9d52a3837dd714a878e8a3a298b17560
[ "Apache-2.0" ]
null
null
null
log_sample_normal/views.py
exexute/django_sample
7608af6c9d52a3837dd714a878e8a3a298b17560
[ "Apache-2.0" ]
1
2021-05-26T03:18:01.000Z
2021-05-26T03:18:01.000Z
log_sample_normal/views.py
exexute/django_sample
7608af6c9d52a3837dd714a878e8a3a298b17560
[ "Apache-2.0" ]
null
null
null
from django.http import JsonResponse from django.views import View import logging logger = logging.getLogger('sample_log') class SampleLogEndPoint(View): def get(self, request): logger.info('access to SampleLogEndPoint') return JsonResponse({'status': 201, 'msg': 'success'})
23.076923
62
0.723333
172
0.573333
0
0
0
0
0
0
63
0.21
1d4678ad04ea0836fb25388266d9121d37ee740d
2,196
py
Python
src/merge.py
mgarriott/PDFMerger
ae1167bf832cae947ac13b4625b7c50e1704da67
[ "BSD-2-Clause" ]
2
2019-05-31T17:04:33.000Z
2021-05-16T17:29:04.000Z
src/merge.py
mgarriott/PDFMerger
ae1167bf832cae947ac13b4625b7c50e1704da67
[ "BSD-2-Clause" ]
null
null
null
src/merge.py
mgarriott/PDFMerger
ae1167bf832cae947ac13b4625b7c50e1704da67
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python ''' Merge together a pdf document containing only front pages with a separate document containing only back pages and save the result into a new document. @author: Matt Garriott ''' import argparse import os from pyPdf import PdfFileReader, PdfFileWriter def merge(fppath, bppath, outputpath, no...
38.526316
115
0.674408
0
0
0
0
0
0
0
0
767
0.349271
1d4760116a8feed0c99ce2b394d2997de58d3e57
935
py
Python
src/MainAPP/migrations/0005_thermostats.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
null
null
null
src/MainAPP/migrations/0005_thermostats.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
9
2017-11-21T15:45:18.000Z
2022-02-11T03:37:54.000Z
src/MainAPP/migrations/0005_thermostats.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
1
2020-07-22T02:24:17.000Z
2020-07-22T02:24:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-04-26 10:40 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('MainAPP', '0004_auto_20180418_1544'), ] ...
33.392857
214
0.60107
735
0.786096
0
0
0
0
0
0
283
0.302674
1d492fa174915f915fc8c814aa3a7b4fc924cfe1
3,722
py
Python
neurovault/apps/statmaps/tests/test_counter.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
68
2015-02-07T06:09:49.000Z
2022-03-03T22:58:33.000Z
neurovault/apps/statmaps/tests/test_counter.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
436
2015-01-01T01:01:13.000Z
2021-11-07T18:24:00.000Z
neurovault/apps/statmaps/tests/test_counter.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
60
2015-01-10T23:31:26.000Z
2021-08-10T06:39:57.000Z
import os.path from django.contrib.auth.models import User from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase, Client from neurovault.apps.statmaps.forms import NIDMResultsForm from neurovault.apps.statmaps.models import Collection, StatisticMap, Comparison from neurovault....
57.261538
143
0.68834
3,289
0.883665
0
0
0
0
0
0
1,482
0.398173
1d498e78b566a14f91a958cfce1f1978c77ba59a
32,045
py
Python
tests/test_ls.py
jain-aayush1123/here-location-services-python
11ad5ef8273b4f243c43bc00ebd470f725b980bc
[ "Apache-2.0" ]
16
2021-02-15T13:49:29.000Z
2022-03-29T10:34:43.000Z
tests/test_ls.py
jain-aayush1123/here-location-services-python
11ad5ef8273b4f243c43bc00ebd470f725b980bc
[ "Apache-2.0" ]
8
2021-02-27T18:40:46.000Z
2021-10-03T15:49:27.000Z
tests/test_ls.py
jain-aayush1123/here-location-services-python
11ad5ef8273b4f243c43bc00ebd470f725b980bc
[ "Apache-2.0" ]
11
2021-02-16T04:58:08.000Z
2022-02-21T20:51:55.000Z
# Copyright (C) 2019-2021 HERE Europe B.V. # SPDX-License-Identifier: Apache-2.0 import json from datetime import datetime, timedelta import pandas as pd import pytest import pytz from geojson import FeatureCollection, Point from geojson.geometry import LineString from here_location_services import LS from here_loca...
32.077077
98
0.610298
0
0
0
0
29,308
0.914589
0
0
4,108
0.128195
1d4a7092fa4de80605dd946265c14ef7be1cd1c6
521
py
Python
03_estruturas_compostas/ex075.py
eltonrp/curso_python3_curso_em_video
483e6a41262e09e539de3c1fc907d0fd9b1592b2
[ "MIT" ]
null
null
null
03_estruturas_compostas/ex075.py
eltonrp/curso_python3_curso_em_video
483e6a41262e09e539de3c1fc907d0fd9b1592b2
[ "MIT" ]
null
null
null
03_estruturas_compostas/ex075.py
eltonrp/curso_python3_curso_em_video
483e6a41262e09e539de3c1fc907d0fd9b1592b2
[ "MIT" ]
null
null
null
lista = (int(input('Digite um número: ')), int(input('Digite outro número: ')), int(input('Digite mais um número: ')), int(input('Digite o último número: '))) print(f'Você digitou os valores {lista}') print(f'O número 9 apareceu {lista.count(9)} vez(es)') if 3 in lista: print(f'O número 3...
34.733333
64
0.610365
0
0
0
0
0
0
0
0
308
0.577861
1d4aaaedaed33648bb853e2714233c79fd50b6e3
2,890
py
Python
cmsplugin_filer_video/models.py
Zeerooth/cmsplugin-filer
e1083b3abbeeaa1e09a95548936ad70432a2cf31
[ "BSD-3-Clause" ]
5
2019-12-13T10:55:36.000Z
2020-09-21T06:37:28.000Z
cmsplugin_filer_video/models.py
Zeerooth/cmsplugin-filer
e1083b3abbeeaa1e09a95548936ad70432a2cf31
[ "BSD-3-Clause" ]
1
2021-03-01T14:46:54.000Z
2021-03-01T14:46:54.000Z
cmsplugin_filer_video/models.py
Zeerooth/cmsplugin-filer
e1083b3abbeeaa1e09a95548936ad70432a2cf31
[ "BSD-3-Clause" ]
8
2020-02-25T12:40:13.000Z
2021-11-20T17:16:40.000Z
from __future__ import unicode_literals from cms.models import CMSPlugin from cmsplugin_filer_video import settings from django.db import models from django.utils.translation import ugettext_lazy as _ from filer.fields.file import FilerFileField from filer.fields.image import FilerImageField from os.path import basena...
34.404762
196
0.651211
2,565
0.887543
0
0
0
0
0
0
467
0.161592
1d4ada56e05db3d12c957fcb29e86567d6fe7e9d
341
py
Python
api/seq/urls.py
antonybholmes/edbw-django-app
2268fa7f983347742ee55145269ef1222776a838
[ "MIT" ]
null
null
null
api/seq/urls.py
antonybholmes/edbw-django-app
2268fa7f983347742ee55145269ef1222776a838
[ "MIT" ]
null
null
null
api/seq/urls.py
antonybholmes/edbw-django-app
2268fa7f983347742ee55145269ef1222776a838
[ "MIT" ]
null
null
null
from django.urls import path from django.conf.urls import url from django.urls import include from api.seq import views urlpatterns = [ path('chipseq/', include('api.seq.chipseq.urls')), path('counts', views.counts, name='counts'), path('mapped', views.mapped, name='mapped'), path('type', views.data_t...
26.230769
54
0.695015
0
0
0
0
0
0
0
0
76
0.222874
1d4ae17041f29d8b2b01fbaeb51039292f4a9347
6,159
py
Python
tests/tags_tests.py
yoursantu/indiannewsplus
252f0367b43ec2edea636157bcf2d8a92dda6f3f
[ "MIT" ]
null
null
null
tests/tags_tests.py
yoursantu/indiannewsplus
252f0367b43ec2edea636157bcf2d8a92dda6f3f
[ "MIT" ]
null
null
null
tests/tags_tests.py
yoursantu/indiannewsplus
252f0367b43ec2edea636157bcf2d8a92dda6f3f
[ "MIT" ]
null
null
null
"""Tests for tags of the ``multilingual_news``` application.""" from django.test import TestCase from django.test.client import RequestFactory from django.utils.translation import activate from cms.api import add_plugin from mixer.backend.django import mixer from ..templatetags.multilingual_news_tags import ( get...
38.018519
79
0.639552
5,718
0.928397
0
0
0
0
0
0
1,679
0.272609
1d4b3704523e5ede209ca40a8ab2c453344b2984
3,590
py
Python
dwave_networkx/drawing/tests/test_chimera_layout.py
mstechly/dwave_networkx
c319222ba47c83d86bd9d0de045c497d37ffd8ad
[ "Apache-2.0" ]
null
null
null
dwave_networkx/drawing/tests/test_chimera_layout.py
mstechly/dwave_networkx
c319222ba47c83d86bd9d0de045c497d37ffd8ad
[ "Apache-2.0" ]
null
null
null
dwave_networkx/drawing/tests/test_chimera_layout.py
mstechly/dwave_networkx
c319222ba47c83d86bd9d0de045c497d37ffd8ad
[ "Apache-2.0" ]
null
null
null
from __future__ import division import unittest import networkx as nx import dwave_networkx as dnx try: import matplotlib.pyplot as plt _plt = True except ImportError: _plt = False try: import numpy as np _numpy = True except ImportError: _numpy = False class TestDrawing(unittest.TestCase)...
35.544554
77
0.614763
3,305
0.920613
0
0
3,202
0.891922
0
0
272
0.075766
1d4eb77e993ae5d7ecbe885fa52cf0468a55034f
6,634
py
Python
priorgen/accuracy_utils.py
joshjchayes/PriorGen
228be0b06dca29ad2ad33ae216f494eaead6161f
[ "MIT" ]
1
2021-12-09T10:29:20.000Z
2021-12-09T10:29:20.000Z
priorgen/accuracy_utils.py
joshjchayes/PriorGen
228be0b06dca29ad2ad33ae216f494eaead6161f
[ "MIT" ]
null
null
null
priorgen/accuracy_utils.py
joshjchayes/PriorGen
228be0b06dca29ad2ad33ae216f494eaead6161f
[ "MIT" ]
null
null
null
''' accuracy_utils Module for checking accuracy of retrieval ''' from scipy.optimize import fsolve from scipy.spatial import distance import numpy as np from ._scaler import Scaler class RetrievalMetricCalculator: def __init__(self, parameter_limits): ''' The RetrievalMetricCalculator generate...
39.023529
110
0.679379
5,119
0.771515
0
0
0
0
0
0
4,027
0.606933
1d4f74536ff6515a48d3969048610b4404195d0e
715
py
Python
dumpsec.py
fengjixuchui/Diff
5a5fc56add03d9d21fad746d5f24584c5a1807a8
[ "MIT" ]
23
2018-09-19T11:46:18.000Z
2022-02-09T01:15:07.000Z
dumpsec.py
fengjixuchui/Diff
5a5fc56add03d9d21fad746d5f24584c5a1807a8
[ "MIT" ]
1
2020-05-06T01:31:06.000Z
2020-05-06T15:07:12.000Z
dumpsec.py
fengjixuchui/Diff
5a5fc56add03d9d21fad746d5f24584c5a1807a8
[ "MIT" ]
9
2018-09-19T16:07:45.000Z
2021-02-27T17:51:33.000Z
import sys try: import pefile except ImportError: print 'You have to install pefile (pip install pefile)' sys.exit() def main(): if len(sys.argv) < 2: print 'usage: dumpsec.py program.exe' return pe = pefile.PE(sys.argv[1], fast_load=True) data = pe.get_memory_mapped_image() i = 0 for secti...
28.6
107
0.67972
0
0
0
0
0
0
0
0
127
0.177622
1d518bb241852d7660d529d7b5b0b7f7be5c652f
1,708
py
Python
djangocms_responsive_image/forms.py
febsn/djangocms-responsive-image
e7ab02a8ab4119d1a60aa21e50380072b53755ff
[ "MIT" ]
2
2016-05-03T15:53:56.000Z
2017-05-19T12:05:40.000Z
djangocms_responsive_image/forms.py
febsn/djangocms-responsive-image
e7ab02a8ab4119d1a60aa21e50380072b53755ff
[ "MIT" ]
null
null
null
djangocms_responsive_image/forms.py
febsn/djangocms-responsive-image
e7ab02a8ab4119d1a60aa21e50380072b53755ff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from .models import ImagePlugin from .conf import settings class GlossaryFormBase(forms.ModelForm): glossary_fields = tuple() def __init__(self, data=None, files=None, **kwargs): # set values for glossary form ...
34.16
89
0.649297
1,553
0.909251
0
0
0
0
0
0
176
0.103044
1d51a3a76cc8e751c6626a8d0cc5f4bfc08027a7
1,898
py
Python
6_API/resources/DbModels.py
misoA/DeepCalendar
50cafc1e70f125f3b6b42cd88e1e9dd071676b49
[ "MIT" ]
null
null
null
6_API/resources/DbModels.py
misoA/DeepCalendar
50cafc1e70f125f3b6b42cd88e1e9dd071676b49
[ "MIT" ]
3
2019-01-14T06:59:24.000Z
2019-01-14T07:48:38.000Z
6_API/resources/DbModels.py
misoA/DeepCalendar
50cafc1e70f125f3b6b42cd88e1e9dd071676b49
[ "MIT" ]
5
2019-01-08T05:01:26.000Z
2021-05-17T23:34:51.000Z
# -*- coding: utf-8 -*- from sqlalchemy import MetaData, Table from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() # DB Model Auto Generate engine = create_engine('mysql://{USER_NAME}:{PASSWORD}@{DB_END_POINT}:{DB_PORT}/{DB_NAME}?charset=utf8', echo=F...
35.148148
116
0.742887
1,468
0.773446
0
0
0
0
0
0
291
0.153319
1d52719ed2516a3f8bd34a155778582c73bc5fcd
1,898
py
Python
python/arrays/first_non_repeating_integers.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
null
null
null
python/arrays/first_non_repeating_integers.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
11
2020-01-09T06:53:45.000Z
2022-02-11T01:34:44.000Z
python/arrays/first_non_repeating_integers.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
1
2017-03-18T17:19:43.000Z
2017-03-18T17:19:43.000Z
def solution(A): # O(N) """ Given an array find the first non-repeating integers in the array >>> solution([3, 2, 3, 2, 5, 4, 3, 4]) 5 >>> solution([3, 2, 3, 2, '%', 5, 4, 'd', 3, 4]) 5 >>> solution([3, 2, 3, 2, 5, 4, 3, 4, 8]) 5 >>...
47.45
74
0.301897
0
0
0
0
0
0
0
0
478
0.251844
1d52b010fc72c96e98bed9f723780c67116e3f6a
2,741
py
Python
db/db.py
kovalev-vxx/A-Q_teleBot
2184237cc7811aa44caa31281d932a78f682aa9e
[ "MIT" ]
null
null
null
db/db.py
kovalev-vxx/A-Q_teleBot
2184237cc7811aa44caa31281d932a78f682aa9e
[ "MIT" ]
null
null
null
db/db.py
kovalev-vxx/A-Q_teleBot
2184237cc7811aa44caa31281d932a78f682aa9e
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, Boolean, create_engine from sqlalchemy.engine.base import Engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from sqlalchemy.orm.session import Session from config import config Base = declarative_base() engine = creat...
32.630952
90
0.630427
517
0.188617
0
0
0
0
0
0
137
0.049982
1d52dba3286ff40b1b601b6c256425c0907c82ca
5,760
py
Python
github_poster/loader/multiple_loader.py
Likenttt/GitHubPoster
cd1226de8ebcc0e7b1a9b9a9082ff4e8807d6710
[ "MIT" ]
null
null
null
github_poster/loader/multiple_loader.py
Likenttt/GitHubPoster
cd1226de8ebcc0e7b1a9b9a9082ff4e8807d6710
[ "MIT" ]
null
null
null
github_poster/loader/multiple_loader.py
Likenttt/GitHubPoster
cd1226de8ebcc0e7b1a9b9a9082ff4e8807d6710
[ "MIT" ]
1
2021-10-13T06:31:36.000Z
2021-10-13T06:31:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import defaultdict from github_poster.loader.base_loader import BaseLoader class MutipleLoader(BaseLoader): def __init__(self, from_year, to_year, _type, **kwargs): super().__init__(from_year, to_year, _type) self.types = kwargs.get(...
27.042254
68
0.483333
5,617
0.975174
0
0
4,749
0.824479
0
0
1,684
0.292361
1d533ac704007e352566535daa013459de87cb75
2,284
py
Python
P2_image_captioning/model.py
arroqc/udacity
d531f99ac6379954ade3cb1c3b4ded1533ef6512
[ "MIT" ]
null
null
null
P2_image_captioning/model.py
arroqc/udacity
d531f99ac6379954ade3cb1c3b4ded1533ef6512
[ "MIT" ]
null
null
null
P2_image_captioning/model.py
arroqc/udacity
d531f99ac6379954ade3cb1c3b4ded1533ef6512
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torchvision.models as models class EncoderCNN(nn.Module): def __init__(self, embed_size): super(EncoderCNN, self).__init__() resnet = models.resnet50(pretrained=True) for param in resnet.parameters(): param.requires_grad_(False) ...
39.37931
125
0.580998
2,204
0.964974
0
0
0
0
0
0
275
0.120403
1d55ec0c123c6896d300cdeb5803b622b9e097e9
3,070
py
Python
Labs/LinearRegression/plots.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
10
2016-10-18T19:54:25.000Z
2021-10-09T20:12:38.000Z
Labs/LinearRegression/plots.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
null
null
null
Labs/LinearRegression/plots.py
jessicaleete/numerical_computing
cc71f51f35ca74d00e617af3d1a0223e19fb9a68
[ "CC-BY-3.0" ]
2
2017-05-14T16:07:59.000Z
2020-06-20T09:05:06.000Z
import matplotlib matplotlib.rcParams = matplotlib.rc_params_from_file('../../matplotlibrc') import numpy as np from matplotlib import pyplot as plt from sklearn import linear_model housing = np.load('housingprices.npy') challenger = np.load('challenger.npy') def raw(): plt.plot(housing[:,1], housing[:,0], 'o'...
27.909091
83
0.594137
0
0
0
0
0
0
0
0
560
0.18241
1d5998826a48a0c705799b042d89f7c86bfa0a68
2,983
py
Python
tests/corpora/test_dbl_bundle_text.py
johnml1135/machine.py
7bfb668b81d6af476f7ee797900e111c3027d542
[ "MIT" ]
null
null
null
tests/corpora/test_dbl_bundle_text.py
johnml1135/machine.py
7bfb668b81d6af476f7ee797900e111c3027d542
[ "MIT" ]
null
null
null
tests/corpora/test_dbl_bundle_text.py
johnml1135/machine.py
7bfb668b81d6af476f7ee797900e111c3027d542
[ "MIT" ]
null
null
null
from machine.scripture import VerseRef from tests.corpora.dbl_bundle_test_environment import DblBundleTestEnvironment def test_get_segments_nonempty_text() -> None: with DblBundleTestEnvironment() as env: text = env.corpus.get_text("MAT") segments = list(text.get_segments()) assert len(se...
43.867647
100
0.681193
0
0
0
0
0
0
0
0
406
0.136105
1d5c64559255b57af22709eadd89e57c13a09bc1
3,210
py
Python
funcs.py
iw4p/NimiPA
3833b38416c6603955b972a8d9524330f1a739b0
[ "MIT" ]
null
null
null
funcs.py
iw4p/NimiPA
3833b38416c6603955b972a8d9524330f1a739b0
[ "MIT" ]
null
null
null
funcs.py
iw4p/NimiPA
3833b38416c6603955b972a8d9524330f1a739b0
[ "MIT" ]
null
null
null
import zipfile import os import shutil import plistlib ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) RootDir1 = ROOT_DIR + '/Extract' # RootIcon = ROOT_DIR + '/Data/PNGs/AppIcon60x60@3x.png' appName = "" bundleID = "" version = "" buildNumber = "" # ROOT_DIR = "" # RootDir1 = ROOT_DIR + '/Extract' # def ...
30.865385
98
0.693769
0
0
0
0
0
0
0
0
1,486
0.462928
1d5cac5d4783cdfd5fbf54c092cbac91dd82e976
2,565
py
Python
task_mail.py
Noel-git/OSS_final
1199c5c7ce054da01c9dfb33c2035540a7693550
[ "BSD-3-Clause" ]
null
null
null
task_mail.py
Noel-git/OSS_final
1199c5c7ce054da01c9dfb33c2035540a7693550
[ "BSD-3-Clause" ]
null
null
null
task_mail.py
Noel-git/OSS_final
1199c5c7ce054da01c9dfb33c2035540a7693550
[ "BSD-3-Clause" ]
1
2022-02-13T00:46:27.000Z
2022-02-13T00:46:27.000Z
import urllib.request import re import numpy as np import os, sys, time import datetime from bs4 import BeautifulSoup import smtplib from email.mime.text import MIMEText from time import sleep import random from urllib.request import HTTPError from urllib.request import URLError def mailfunc(year,semester...
27.580645
242
0.557115
0
0
0
0
0
0
0
0
496
0.188521
1d5e45170b1659e845321f052e99691ec4fa47d1
94,637
py
Python
gameserver/tests.py
hammertoe/didactic-spork
8d02836f9d3a0d707eea22d480553a8fdc35a0df
[ "Apache-2.0" ]
null
null
null
gameserver/tests.py
hammertoe/didactic-spork
8d02836f9d3a0d707eea22d480553a8fdc35a0df
[ "Apache-2.0" ]
1
2017-02-14T12:00:14.000Z
2017-02-14T12:00:14.000Z
gameserver/tests.py
hammertoe/didactic-spork
8d02836f9d3a0d707eea22d480553a8fdc35a0df
[ "Apache-2.0" ]
null
null
null
import unittest from datetime import datetime, timedelta import time import dateutil import mock import transaction import flask_testing from models import Base, Edge, Node, Player, Goal, Policy, Funding, Budget from network import Network from game import Game, get_game from utils import random from wallet import Wa...
35.969973
136
0.595613
93,397
0.986897
0
0
2,993
0.031626
0
0
8,675
0.091666
1d5ed91a6c42e6d6c4605027a657c48bce3dbbe1
10,954
py
Python
ariadne/point_net/processor.py
t3hseus/ariadne
b4471a37741000e22281c4d6ff647d65ab9e1914
[ "MIT" ]
6
2020-08-28T22:44:07.000Z
2022-01-24T20:53:00.000Z
ariadne/point_net/processor.py
t3hseus/ariadne
b4471a37741000e22281c4d6ff647d65ab9e1914
[ "MIT" ]
1
2021-02-20T09:38:46.000Z
2021-02-20T09:38:46.000Z
ariadne/point_net/processor.py
t3hseus/ariadne
b4471a37741000e22281c4d6ff647d65ab9e1914
[ "MIT" ]
2
2021-10-04T09:25:06.000Z
2022-02-09T09:09:09.000Z
import logging import os from typing import Tuple, Iterable, Optional, List import gin import pandas as pd import numpy as np from ariadne.point_net.point.points import Points, save_points_new from ariadne.preprocessing import ( BaseTransformer, DataProcessor, DataChunk, ProcessedDataChunk, Proces...
37.006757
100
0.595855
10,306
0.940844
0
0
10,015
0.914278
0
0
1,533
0.139949
1d630971cba9f6e65624ec37bc4a69988cc209f0
2,972
py
Python
setup.py
zydmayday/pamda
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
[ "MIT" ]
1
2022-03-14T07:35:13.000Z
2022-03-14T07:35:13.000Z
setup.py
zydmayday/pamda
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
[ "MIT" ]
3
2022-03-24T02:30:18.000Z
2022-03-31T07:46:04.000Z
setup.py
zydmayday/pamda
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
[ "MIT" ]
null
null
null
from os.path import abspath, dirname, join from setuptools import find_packages, setup # Fetches the content from README.md # This will be used for the "long_description" field. with open(join(dirname(abspath(__file__)), "README.md"), encoding='utf-8') as f: README_MD = f.read() setup( # The name of your proje...
37.15
92
0.693136
0
0
0
0
0
0
0
0
2,295
0.772207
1d669e385798d178181fbbd3e80e0e9a94ed8b03
10,595
py
Python
swagger_client/models/test_merge.py
ike709/tgs4-api-pyclient
97918cfe614cc4ef06ef2485efff163417a8cd44
[ "MIT" ]
null
null
null
swagger_client/models/test_merge.py
ike709/tgs4-api-pyclient
97918cfe614cc4ef06ef2485efff163417a8cd44
[ "MIT" ]
null
null
null
swagger_client/models/test_merge.py
ike709/tgs4-api-pyclient
97918cfe614cc4ef06ef2485efff163417a8cd44
[ "MIT" ]
null
null
null
# coding: utf-8 """ TGS API A production scale tool for BYOND server management # noqa: E501 OpenAPI spec version: 9.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class TestMerge(object): """NOTE: This class is a...
29.027397
193
0.587164
10,327
0.974705
0
0
6,298
0.594431
0
0
5,903
0.55715
1d66cedab3a666243728b609aaec1e14208ec61e
2,987
py
Python
tests/test_parsvd_serial.py
mengaldo/PyParSVD
773e885355076375d596083ee3ab52c2779eef01
[ "MIT" ]
30
2021-02-25T19:25:21.000Z
2022-03-07T01:43:54.000Z
tests/test_parsvd_serial.py
mengaldo/PyParSVD
773e885355076375d596083ee3ab52c2779eef01
[ "MIT" ]
1
2021-09-12T21:26:03.000Z
2021-09-29T14:00:31.000Z
tests/test_parsvd_serial.py
mengaldo/PyParSVD
773e885355076375d596083ee3ab52c2779eef01
[ "MIT" ]
10
2021-02-25T21:33:15.000Z
2022-03-06T13:08:30.000Z
import os import sys import shutil import pytest import subprocess import xarray as xr import numpy as np # Current, parent and file paths CWD = os.getcwd() CF = os.path.realpath(__file__) CFD = os.path.dirname(CF) # Import library specific modules sys.path.append(os.path.join(CFD, "../")) sys.path.append(os.path.j...
34.732558
70
0.688316
0
0
0
0
0
0
0
0
328
0.109809
1d6899acaef28c3d3178f6885bc65bff3f550f05
26,957
py
Python
sarcastic_comments.py
nagi1995/sarcastic-news-headlines-classification
2fbc2c936cec946896161552fcffbe0cb71116c0
[ "Apache-2.0" ]
null
null
null
sarcastic_comments.py
nagi1995/sarcastic-news-headlines-classification
2fbc2c936cec946896161552fcffbe0cb71116c0
[ "Apache-2.0" ]
null
null
null
sarcastic_comments.py
nagi1995/sarcastic-news-headlines-classification
2fbc2c936cec946896161552fcffbe0cb71116c0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # <a href="https://colab.research.google.com/github/nagi1995/sarcastic-comment-detection/blob/main/Sarcastic_Comments.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # In[1]: from google.colab import drive dr...
23.198795
371
0.669659
0
0
0
0
0
0
0
0
7,365
0.273213
1d699bede1bd0de3d82711a3efc8b955f53e785d
14,098
py
Python
motifscan/motif/__init__.py
shao-lab/Motifscan
eb5efbc9e450ba8e9c0e5b64a8c9c4340b765d02
[ "BSD-3-Clause" ]
14
2017-12-27T06:45:56.000Z
2021-11-05T13:13:34.000Z
motifscan/motif/__init__.py
shao-lab/Motifscan
eb5efbc9e450ba8e9c0e5b64a8c9c4340b765d02
[ "BSD-3-Clause" ]
3
2020-05-22T05:53:35.000Z
2021-01-22T07:58:27.000Z
motifscan/motif/__init__.py
shao-lab/Motifscan
eb5efbc9e450ba8e9c0e5b64a8c9c4340b765d02
[ "BSD-3-Clause" ]
1
2020-09-09T21:55:59.000Z
2020-09-09T21:55:59.000Z
""" motifscan.motif --------------- Module for motif related classes and functions. """ import logging import os import re from motifscan.config import Config from motifscan.exceptions import PfmsFileNotFoundError, \ PwmsFileNotFoundError, PfmsJasparFormatError, PwmsMotifScanFormatError from motifscan.genome imp...
35.069652
79
0.53348
11,131
0.789545
53
0.003759
2,930
0.207831
0
0
5,142
0.364733
1d6a58181fb6c8b3fec6f2ed10b70a2a998af8c6
387
py
Python
ex6.py
SandarSoe/python1_exercise
17cddea4d742c10fe3bb2bc2b4429977db357a61
[ "MIT" ]
null
null
null
ex6.py
SandarSoe/python1_exercise
17cddea4d742c10fe3bb2bc2b4429977db357a61
[ "MIT" ]
null
null
null
ex6.py
SandarSoe/python1_exercise
17cddea4d742c10fe3bb2bc2b4429977db357a61
[ "MIT" ]
null
null
null
x="There are %d types of people." % 10 binary="binary" do_not="don't " y="Those who know %s and those who %s." % (binary, do_not) print (x) print (y) print ("I said: %r." %x) print ("I also said: '%s'." %y) hilarious =False joke_evaluation="Isn't that joke so funny?! %r" print (joke_evaluation % hilarious) w="This is t...
22.764706
58
0.651163
0
0
0
0
0
0
0
0
207
0.534884
1d6a78c132cd00cba80ae58b28faea8af5729dee
821
py
Python
TestBoaHarness/src/TestResource/Test8/Test8Case.py
stanislawbartkowski/boatester
40f852c9715d7d6f3e9be583e16d398fa29ec69b
[ "Apache-2.0" ]
1
2018-02-09T01:26:33.000Z
2018-02-09T01:26:33.000Z
TestBoaHarness/src/TestResource/Test8/Test8Case.py
stanislawbartkowski/boatester
40f852c9715d7d6f3e9be583e16d398fa29ec69b
[ "Apache-2.0" ]
null
null
null
TestBoaHarness/src/TestResource/Test8/Test8Case.py
stanislawbartkowski/boatester
40f852c9715d7d6f3e9be583e16d398fa29ec69b
[ "Apache-2.0" ]
null
null
null
import os import sys import unittest import Test8Case import ODBCHelper def setHe(he): Test8Case.helper = he def injectParam(param,tepar) : Test8Case.param = param Test8Case.teparam = tepar class TestSuite(unittest.TestCase): def setUp(self): self.param = Test8Case.param s...
24.878788
81
0.61754
597
0.727162
0
0
0
0
0
0
237
0.288672
1d6b77d7ffda23d35dcf570e0f37a02bba8cb003
6,742
py
Python
tests/custom.py
vsoch/django-river-ml
67bea67770809e75323a68cac660f528e673f5d2
[ "Apache-2.0" ]
6
2022-02-24T10:26:06.000Z
2022-03-07T02:44:37.000Z
tests/custom.py
vsoch/django-river-ml
67bea67770809e75323a68cac660f528e673f5d2
[ "Apache-2.0" ]
null
null
null
tests/custom.py
vsoch/django-river-ml
67bea67770809e75323a68cac660f528e673f5d2
[ "Apache-2.0" ]
null
null
null
import collections import functools import random from typing import Dict, List from river import base, utils def iter_counts(X: List[List[str]]): """ Given lists of words, return vocabularies with counts. This is useful for the VariableVocabKMeans model that expects this input. Parameters -----...
31.504673
95
0.577573
5,627
0.834619
59
0.008751
76
0.011273
0
0
4,150
0.615544
1d6b85556904e23be368445d1a45aa9c9e365db6
12,956
py
Python
doc/examples/multi_taper_spectral_estimation.py
slnovak/nitime
8182d032caf5ad9ca2f46fc428c87cb8d5dde133
[ "BSD-3-Clause" ]
1
2017-02-02T23:52:23.000Z
2017-02-02T23:52:23.000Z
doc/examples/multi_taper_spectral_estimation.py
slnovak/nitime
8182d032caf5ad9ca2f46fc428c87cb8d5dde133
[ "BSD-3-Clause" ]
null
null
null
doc/examples/multi_taper_spectral_estimation.py
slnovak/nitime
8182d032caf5ad9ca2f46fc428c87cb8d5dde133
[ "BSD-3-Clause" ]
null
null
null
""" .. _multi-taper-psd: =============================== Multi-taper spectral estimation =============================== The distribution of power in a signal, as a function of frequency, known as the power spectrum (or PSD, for power spectral density) can be estimated using variants of the discrete Fourier transfor...
31.754902
165
0.737651
0
0
0
0
0
0
0
0
10,131
0.781954
1d6ba565cf85ab39807e15a90e796ac2aba9b48f
16,253
py
Python
python/fixrgraph/musedev/test/test_api.py
LesleyLai/biggroum
e26de363e4bf4645dd5d90121742d3f3533f5a00
[ "Apache-2.0" ]
7
2019-02-14T17:28:29.000Z
2021-01-11T07:12:34.000Z
python/fixrgraph/musedev/test/test_api.py
LesleyLai/biggroum
e26de363e4bf4645dd5d90121742d3f3533f5a00
[ "Apache-2.0" ]
23
2018-08-19T23:06:54.000Z
2020-04-14T08:21:05.000Z
python/fixrgraph/musedev/test/test_api.py
LesleyLai/biggroum
e26de363e4bf4645dd5d90121742d3f3533f5a00
[ "Apache-2.0" ]
4
2018-06-28T18:22:55.000Z
2019-03-21T06:36:56.000Z
""" Test the creation of the index """ import sys import logging import os import json import copy import subprocess import tempfile import shutil from flask import Flask, Response from multiprocessing import Process from cStringIO import StringIO try: import unittest2 as unittest except ImportError: import...
42.883905
952
0.559035
14,678
0.903095
0
0
2,672
0.1644
0
0
4,893
0.301052
1d6c97ab775b3924a519a3875bbacd8525d4d56d
4,074
py
Python
camkes/parser/tests/teststage6.py
aisamanra/camkes-tool
4bcf3f22ef7e73f8755ca1b5e7165dd6a23e89f3
[ "BSD-2-Clause" ]
null
null
null
camkes/parser/tests/teststage6.py
aisamanra/camkes-tool
4bcf3f22ef7e73f8755ca1b5e7165dd6a23e89f3
[ "BSD-2-Clause" ]
null
null
null
camkes/parser/tests/teststage6.py
aisamanra/camkes-tool
4bcf3f22ef7e73f8755ca1b5e7165dd6a23e89f3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2017, Data61 # Commonwealth Scientific and Industrial Research Organisation (CSIRO) # ABN 41 687 119 230. # # This software may be distributed and modified according to the terms of # the BSD 2-Clause license. Note that NO WARRANTY is provided. # See "LICENSE...
26.802632
73
0.556946
3,025
0.742514
0
0
0
0
0
0
1,508
0.370152
1d6cb2fb072b36fb24704252a550de48cd21f375
551
py
Python
buttercup/main.py
GrafeasGroup/buttercup
77eef4cb7f34723b246b6b2f11af92a8d7c06cae
[ "MIT" ]
6
2020-12-03T20:29:30.000Z
2022-02-08T06:07:44.000Z
buttercup/main.py
GrafeasGroup/buttercup
77eef4cb7f34723b246b6b2f11af92a8d7c06cae
[ "MIT" ]
110
2020-07-29T07:58:28.000Z
2022-02-08T14:54:23.000Z
buttercup/main.py
GrafeasGroup/buttercup
77eef4cb7f34723b246b6b2f11af92a8d7c06cae
[ "MIT" ]
2
2021-12-07T16:22:19.000Z
2021-12-07T16:40:33.000Z
import sys from buttercup import logger from buttercup.bot import ButtercupBot EXTENSIONS = [ # The config cog has to be first! "config", "admin", "handlers", "welcome", "name_validator", "find", "search", "stats", "heatmap", "history", "ping", "rules", "leaderb...
19.678571
86
0.649728
0
0
0
0
0
0
0
0
180
0.326679
1d6e1945cc59f4a6cbe5c9f8035ff97b4f932f73
6,245
py
Python
posts_apis/tests/tests.py
islam-kamel/CODERUSH_APIS
ac9b21ab81da65b3e2a84549a9b6ea6665afe047
[ "MIT" ]
2
2021-12-13T05:11:22.000Z
2021-12-15T04:39:34.000Z
posts_apis/tests/tests.py
islam-kamel/CODERUSH_APIS
ac9b21ab81da65b3e2a84549a9b6ea6665afe047
[ "MIT" ]
1
2021-12-15T03:04:11.000Z
2021-12-16T04:08:57.000Z
posts_apis/tests/tests.py
islam-kamel/CODERUSH_APIS
ac9b21ab81da65b3e2a84549a9b6ea6665afe047
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2021 islam kamel # # 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, m...
38.549383
80
0.63731
4,948
0.792314
0
0
0
0
0
0
2,091
0.334828
1d6e5306af7ec10787ad04ff1c709c25e136dd97
1,750
py
Python
bench2csv/bench2csv_sat.py
jansemat/verifire
5e178cc87d634e6b495ad77d34d05592379f624e
[ "MIT" ]
null
null
null
bench2csv/bench2csv_sat.py
jansemat/verifire
5e178cc87d634e6b495ad77d34d05592379f624e
[ "MIT" ]
null
null
null
bench2csv/bench2csv_sat.py
jansemat/verifire
5e178cc87d634e6b495ad77d34d05592379f624e
[ "MIT" ]
null
null
null
import sys import math import random # Function: main() # --- Arguments: none; takes slice.csv as command line argument # --- Return: none # --- Purpose: takes slice.csv discard slice as argument, prints out SAT firewall policy (default-deny format) # def main(): # ensure proper arguments if len(sys.argv) != 2: p...
29.661017
117
0.670286
0
0
0
0
0
0
0
0
656
0.374857
1d6ee31d662f0f169c3224b1cd7e60481b985d34
765
py
Python
demo/models.py
mas3od/Arabic_char_recognizer
33c4c38c6c3776b2889c46bb0077abc0518d9099
[ "MIT" ]
null
null
null
demo/models.py
mas3od/Arabic_char_recognizer
33c4c38c6c3776b2889c46bb0077abc0518d9099
[ "MIT" ]
null
null
null
demo/models.py
mas3od/Arabic_char_recognizer
33c4c38c6c3776b2889c46bb0077abc0518d9099
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class image(models.Model): image = models.BinaryField(blank = True) target = models.IntegerField('target') class meta: ordering = ['target'] def __str__(self,): return 'an image' class Author(models.Model): """Model represen...
27.321429
67
0.667974
703
0.918954
0
0
0
0
0
0
201
0.262745
1d70a1af99e208123df9b6b1c5b50f5689c85198
1,079
py
Python
Python/python-tutorials/algo/hailstone.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
Python/python-tutorials/algo/hailstone.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
Python/python-tutorials/algo/hailstone.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # inst.eecs.berkeley.edu/~cs61a/sp12/hw/hw1.html # Q4. Douglas Hofstadter’s Pulitzer-prize-winning book, Gödel, Escher, Bach, poses the following mathematical puzzle. # # Pick a positive number n # If n is even, divide it by 2. # If n is odd, multipy it by 3 and add 1. # Continue this process unt...
34.806452
327
0.721038
0
0
0
0
0
0
0
0
862
0.796673
1d71d0d9ea9a6a26f4c379575e424de0468d5cd5
70
py
Python
core/outfits/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
core/outfits/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
core/outfits/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from core.outfits import listing from core.outfits.base import Outfit
23.333333
36
0.842857
0
0
0
0
0
0
0
0
0
0
1d7466097245fe0f589e9cc748e16317321ada97
48
py
Python
tests/conftest.py
jonra1993/rasa-sdk
2fe9e16a54e709166c7a1eba1d46bd6228e5ea6b
[ "Apache-2.0" ]
172
2019-05-14T19:34:55.000Z
2022-03-25T04:34:20.000Z
tests/conftest.py
jonra1993/rasa-sdk
2fe9e16a54e709166c7a1eba1d46bd6228e5ea6b
[ "Apache-2.0" ]
451
2019-05-13T15:29:38.000Z
2022-03-28T09:00:52.000Z
tests/conftest.py
jonra1993/rasa-sdk
2fe9e16a54e709166c7a1eba1d46bd6228e5ea6b
[ "Apache-2.0" ]
160
2019-05-16T05:05:48.000Z
2022-03-25T04:34:24.000Z
from sanic import Sanic Sanic.test_mode = True
12
23
0.791667
0
0
0
0
0
0
0
0
0
0
1d7699d2066786cd54e3533e9c740d66887674d7
5,818
py
Python
qiskit/wrapper/_wrapper.py
biryani/qiskit-terra
7e2204c7f046ad324e1726ad320f0323bdd26e87
[ "Apache-2.0" ]
null
null
null
qiskit/wrapper/_wrapper.py
biryani/qiskit-terra
7e2204c7f046ad324e1726ad320f0323bdd26e87
[ "Apache-2.0" ]
null
null
null
qiskit/wrapper/_wrapper.py
biryani/qiskit-terra
7e2204c7f046ad324e1726ad320f0323bdd26e87
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """Helper module for simplified QISKit usage.""" import logging from qiskit import transpiler from qiskit.transpiler._passm...
39.310811
94
0.664146
0
0
0
0
0
0
0
0
3,860
0.663458
1d7c7f7bfd4d9dc9e55cdc2091cf0b436100b69f
43,323
py
Python
train.py
xlDownxl/SfmLearner-Pytorch
e04becc8f16725d15cb603f4cf438a6059aa8adf
[ "MIT" ]
null
null
null
train.py
xlDownxl/SfmLearner-Pytorch
e04becc8f16725d15cb603f4cf438a6059aa8adf
[ "MIT" ]
null
null
null
train.py
xlDownxl/SfmLearner-Pytorch
e04becc8f16725d15cb603f4cf438a6059aa8adf
[ "MIT" ]
null
null
null
import argparse import time import csv from collections import OrderedDict import os import numpy as np import torch import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import custom_transforms import models from utils import tensor2array, save_checkpoint, save_path_formatter, log_output_ten...
48.083241
206
0.616116
0
0
0
0
18,087
0.417482
0
0
8,278
0.191072
1d7c8351f2e5f82917fe01cfc0e7ffa0119aecd0
13,038
py
Python
discrete_opt/optimization.py
claudiofahey/discrete_opt
0bd794e1f3d8552653e49df748fc90f97e6f2af8
[ "MIT" ]
null
null
null
discrete_opt/optimization.py
claudiofahey/discrete_opt
0bd794e1f3d8552653e49df748fc90f97e6f2af8
[ "MIT" ]
null
null
null
discrete_opt/optimization.py
claudiofahey/discrete_opt
0bd794e1f3d8552653e49df748fc90f97e6f2af8
[ "MIT" ]
null
null
null
import logging import itertools import numpy as np from scipy.optimize import OptimizeResult, minimize_scalar import scipy.constants from .util import find_vertex_x_of_positive_parabola def scalar_discrete_gap_filling_minimizer( fun, bracket, args=(), tol=1.0, maxfev=None, maxiter=100, callback=None, verbos...
37.465517
119
0.60224
0
0
0
0
0
0
0
0
5,387
0.413177
1d7c86c05e29731b9fa25dcc67b50bb76637fb2b
600
py
Python
hello.py
Amos-lii/cgi-lab
05cc19ceb4d775e40f37f8f60e12740c35193f25
[ "Apache-2.0" ]
null
null
null
hello.py
Amos-lii/cgi-lab
05cc19ceb4d775e40f37f8f60e12740c35193f25
[ "Apache-2.0" ]
null
null
null
hello.py
Amos-lii/cgi-lab
05cc19ceb4d775e40f37f8f60e12740c35193f25
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os,json print("Content-Type: text/html\r\n\r\n") print print("<title>Test CGI</title>") print("<p>Hello World cmput404 class!</p>") #Q1 print(os.environ) json_object = json.dumps(dict(os.environ), indent = 4) #print(json_object) #Q2 for param in os.environ.keys(): if (param=="QUERY_...
24
65
0.618333
0
0
0
0
0
0
0
0
271
0.451667
1d7cc036eb1f4cee4d2d9c1c57594177d76ea02b
344
py
Python
tests/__init__.py
pompiduskus/pybox2d
4393bc93df4828267d2143327abd76de6f146750
[ "Zlib" ]
null
null
null
tests/__init__.py
pompiduskus/pybox2d
4393bc93df4828267d2143327abd76de6f146750
[ "Zlib" ]
null
null
null
tests/__init__.py
pompiduskus/pybox2d
4393bc93df4828267d2143327abd76de6f146750
[ "Zlib" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys from glob import glob tests=glob(os.path.join(os.path.dirname(__file__),"*.py")) #__all__ = [os.path.basename(file)[:-3] for file in files # if file!='__init__.py'] for test in tests: __import__(os.path.basename(test)[:-3], global...
26.461538
73
0.607558
0
0
0
0
0
0
0
0
147
0.427326
1d7e74a1b9166e627ccdb832e0e9c0dbaf7e1c61
5,240
py
Python
firm/forms.py
mstgnz/WMS
64aaa43fdd8fb682dedb792831b13d64046b385f
[ "Apache-2.0" ]
null
null
null
firm/forms.py
mstgnz/WMS
64aaa43fdd8fb682dedb792831b13d64046b385f
[ "Apache-2.0" ]
null
null
null
firm/forms.py
mstgnz/WMS
64aaa43fdd8fb682dedb792831b13d64046b385f
[ "Apache-2.0" ]
null
null
null
from django import forms from .models import Firm, Worksite, Subcontractor, Contract, Specification, Project class DateInput(forms.DateInput): input_type = 'date' # FİRMA FORM class FirmForm(forms.ModelForm): class Meta: model = Firm fields = ['tax','name','full_name','phone','fax','web',...
37.971014
183
0.579389
4,958
0.944201
0
0
0
0
0
0
1,195
0.227576
1d7e9a503c69ca7ba81589b022f35d6d7e07580d
2,566
py
Python
dash_vtk/PolyData.py
rodrigomologni/dash-vtk
f036ee9e709e4367efcb86367b696c20199029a6
[ "MIT" ]
80
2021-01-15T21:55:22.000Z
2022-03-30T07:23:54.000Z
dash_vtk/PolyData.py
rodrigomologni/dash-vtk
f036ee9e709e4367efcb86367b696c20199029a6
[ "MIT" ]
51
2021-01-04T22:50:58.000Z
2022-03-13T17:45:25.000Z
dash_vtk/PolyData.py
rodrigomologni/dash-vtk
f036ee9e709e4367efcb86367b696c20199029a6
[ "MIT" ]
12
2021-01-04T22:28:48.000Z
2022-03-29T13:20:32.000Z
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class PolyData(Component): """A PolyData component. PolyData is exposing a vtkPolyData to a downstream filter It takes the following set of properties: - points: [x, y, z, x, y, z, ...], - verts: [cel...
40.730159
269
0.664069
2,453
0.955963
0
0
1,145
0.44622
0
0
1,558
0.607171
1d7fac852950bdea4eeed4896c20818406f39dcc
2,976
py
Python
No_0188_Best Time to Buy and Sell Stock IV/by_dynamic_programming.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
32
2020-01-05T13:37:16.000Z
2022-03-26T07:27:09.000Z
No_0188_Best Time to Buy and Sell Stock IV/by_dynamic_programming.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
null
null
null
No_0188_Best Time to Buy and Sell Stock IV/by_dynamic_programming.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
8
2020-06-18T16:17:27.000Z
2022-03-15T23:58:18.000Z
''' Description: Say you have an array for which the i-th element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most k transactions. Note: You may not engage in multiple transactions at the same time (ie, you must sell the stock before you buy again). E...
26.810811
112
0.510753
1,907
0.639933
0
0
0
0
0
0
1,311
0.439933
1d80dd5bf8e6424636bc2fdacb0ba1747263cfe9
974
py
Python
WaveArray.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
14
2020-10-15T21:47:18.000Z
2021-12-01T06:06:51.000Z
WaveArray.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
null
null
null
WaveArray.py
vanigupta20024/Programming-Challenges
578dba33e9f6b04052a503bcb5de9b32f33494a5
[ "MIT" ]
4
2020-06-15T14:40:45.000Z
2021-06-15T06:22:03.000Z
''' Problem Description Given an array of integers A, sort the array into a wave like array and return it, In other words, arrange the elements into a sequence such that a1 >= a2 <= a3 >= a4 <= a5..... NOTE : If there are multiple answers possible, return the one that's lexicographically smallest. Input Format Fir...
22.136364
146
0.63039
248
0.25462
0
0
0
0
0
0
780
0.800821
1d819dab8c685dabdccb98751766a90ed31bcfec
1,004
py
Python
examples/timer.py
thomasantony/flybywire
6feadf6a96ac6a7b7a32f04d475c8a59915fd6f0
[ "MIT" ]
136
2016-09-04T06:24:55.000Z
2021-08-25T07:49:42.000Z
examples/timer.py
thomasantony/flybywire
6feadf6a96ac6a7b7a32f04d475c8a59915fd6f0
[ "MIT" ]
2
2016-09-08T17:18:24.000Z
2017-06-23T17:01:44.000Z
examples/timer.py
thomasantony/flybywire
6feadf6a96ac6a7b7a32f04d475c8a59915fd6f0
[ "MIT" ]
9
2016-09-05T00:46:25.000Z
2021-04-09T16:52:06.000Z
from flybywire.ui import Application, Component from flybywire.dom import h from flybywire.misc import set_interval, clear_interval @Application class TimerApp(Component): def __init__(self): """Initialize the application.""" super().__init__() self.set_initial_state({'secondsElapsed': 0})...
26.421053
64
0.624502
827
0.823705
0
0
840
0.836653
0
0
339
0.337649
1d81a396174df861ce3d129dfba4a5169ad7c8bc
3,491
py
Python
src/screen.py
JushBJJ/crapindow
0774c7149d3246b713c94f4d1f4252a2b47e9f84
[ "MIT" ]
null
null
null
src/screen.py
JushBJJ/crapindow
0774c7149d3246b713c94f4d1f4252a2b47e9f84
[ "MIT" ]
null
null
null
src/screen.py
JushBJJ/crapindow
0774c7149d3246b713c94f4d1f4252a2b47e9f84
[ "MIT" ]
null
null
null
""" Basically the whole terminal screen itself. """ import sys import os import colorama import cursor foreground_colours = { "BLACK": "\x1b[30m", "RED": "\x1b[31m", "GREEN": "\x1b[32m", "YELLOW": "\x1b[33m", "BLUE": "\x1b[34m", "MAGENTA": "\x1b[35m", "CYAN": "\x1b[36m", "WHITE": "\x...
27.928
79
0.599542
2,884
0.826124
0
0
0
0
0
0
1,684
0.482383
1d8319cb25c16d92efd3edb9186ca3c5ae307547
2,763
py
Python
DeepFilterNet/df/logger.py
cookcodes/DeepFilterNet
d36e70c8f09b0707c6718b74c25c3edaf4dce0e2
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2021-12-23T09:57:29.000Z
2022-01-17T07:01:53.000Z
DeepFilterNet/df/logger.py
Andong-Li-speech/DeepFilterNet
e651b79e48d5d25fd22a55514534c6c1e65f72fa
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
DeepFilterNet/df/logger.py
Andong-Li-speech/DeepFilterNet
e651b79e48d5d25fd22a55514534c6c1e65f72fa
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
import os import sys from typing import Dict, Optional import torch from loguru import logger from torch.types import Number from df.utils import get_branch_name, get_commit_hash, get_device, get_host _logger_initialized = False def init_logger(file: Optional[str] = None, level: str = "INFO"): global _logger_i...
31.397727
97
0.596453
0
0
0
0
0
0
0
0
799
0.289178
1d8415a63afc2d8e1652325187f2c3c67556dad6
3,205
py
Python
twitch_log_renderer/cachers.py
Bloodb0ne/twitch_log_renderer
39d812b5fe5fbbd61d19218636b9e335bd1725eb
[ "Apache-2.0" ]
2
2020-10-11T03:23:37.000Z
2020-11-13T18:58:58.000Z
twitch_log_renderer/cachers.py
Bloodb0ne/twitch_log_renderer
39d812b5fe5fbbd61d19218636b9e335bd1725eb
[ "Apache-2.0" ]
2
2021-01-30T08:59:09.000Z
2021-06-26T18:04:57.000Z
twitch_log_renderer/cachers.py
Bloodb0ne/twitch_log_renderer
39d812b5fe5fbbd61d19218636b9e335bd1725eb
[ "Apache-2.0" ]
null
null
null
import re from .database import emote_database from .node_types import EmoteNode,TextNode,CheermoteNode from .providers.badges import Badges from .providers.cheermotes import Cheermotes class CheermoteCache: """Cheermote cache""" matcher = re.compile("^$") cheermotes = {} databasePath = '' def getCheermote(prefix...
29.953271
124
0.702964
3,009
0.938846
0
0
0
0
0
0
848
0.264587
1d8530c0d1846c03825ab65f90bae48db4ebfd24
8,232
py
Python
src/svtk/svtk/baf/BAFpysam.py
talkowski-lab/gnomad-sv-v3-qc
db23760af7bc21a776e14f6ca1fbc213ff0ff9a1
[ "BSD-3-Clause" ]
null
null
null
src/svtk/svtk/baf/BAFpysam.py
talkowski-lab/gnomad-sv-v3-qc
db23760af7bc21a776e14f6ca1fbc213ff0ff9a1
[ "BSD-3-Clause" ]
null
null
null
src/svtk/svtk/baf/BAFpysam.py
talkowski-lab/gnomad-sv-v3-qc
db23760af7bc21a776e14f6ca1fbc213ff0ff9a1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from scipy import stats import numpy as np import os import os.path from sklearn import mixture def Deltest(F,M,E,length,crit=0.01,thres1=0.0005): # calculate the Del statistic given a FME combo in het files # if True: thres1=min(50/length,thres1) if F/length<thres1 and M/length<thres...
39.014218
145
0.539237
6,649
0.807702
0
0
0
0
0
0
3,691
0.448372
1d857b7a050e752f38249ab3964c756e0e4c6ecd
41
py
Python
accounts/admin.py
sahilr05/sitechecker
9c5d99109cfe2cbf46eb9f3cb397fc0f3505f039
[ "MIT" ]
2
2021-02-21T09:24:54.000Z
2021-05-12T18:42:37.000Z
accounts/admin.py
sahilr05/sitechecker
9c5d99109cfe2cbf46eb9f3cb397fc0f3505f039
[ "MIT" ]
null
null
null
accounts/admin.py
sahilr05/sitechecker
9c5d99109cfe2cbf46eb9f3cb397fc0f3505f039
[ "MIT" ]
null
null
null
from django.contrib import admin # NOQA
20.5
40
0.780488
0
0
0
0
0
0
0
0
6
0.146341
1d85aab94ef7a4bb481f21a9288199c706287edd
2,955
py
Python
paddlescience/geometry/geometry_discrete.py
Liu-xiandong/PaddleScience
5e667a4fe6138c22e0ff54af81d83a0b7cae4572
[ "Apache-2.0" ]
43
2021-12-12T08:53:19.000Z
2022-03-30T07:07:18.000Z
paddlescience/geometry/geometry_discrete.py
Liu-xiandong/PaddleScience
5e667a4fe6138c22e0ff54af81d83a0b7cae4572
[ "Apache-2.0" ]
13
2021-12-15T08:04:50.000Z
2022-03-25T03:39:15.000Z
paddlescience/geometry/geometry_discrete.py
Liu-xiandong/PaddleScience
5e667a4fe6138c22e0ff54af81d83a0b7cae4572
[ "Apache-2.0" ]
20
2021-12-10T06:52:31.000Z
2022-03-28T10:23:53.000Z
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
28.142857
75
0.574619
2,308
0.781049
0
0
0
0
0
0
1,062
0.359391
1d86bc38917264012599c7189b3e1f9a968ddcaa
46
py
Python
scripts/example.py
fernandascovino/FGV_Criptography
9fbc9bb5f1bd4099538be112565e4ac3fffc62c1
[ "MIT" ]
1
2018-10-03T16:17:14.000Z
2018-10-03T16:17:14.000Z
scripts/example.py
JoaoCarabetta/cities-science
ee430d75bd0abb04485926a6f30fb23992b3f598
[ "MIT" ]
null
null
null
scripts/example.py
JoaoCarabetta/cities-science
ee430d75bd0abb04485926a6f30fb23992b3f598
[ "MIT" ]
null
null
null
import scripts.other_module as om om.get_me()
15.333333
33
0.804348
0
0
0
0
0
0
0
0
0
0
1d87394aa03f1901f2b10c5dd1230fa13966fdb3
602
py
Python
collapsible_garden/water_level_sensor.py
katienaha/collapsible_garden
b3f52e9083d1d9584e5da7289c1ce560f793ef18
[ "MIT" ]
null
null
null
collapsible_garden/water_level_sensor.py
katienaha/collapsible_garden
b3f52e9083d1d9584e5da7289c1ce560f793ef18
[ "MIT" ]
null
null
null
collapsible_garden/water_level_sensor.py
katienaha/collapsible_garden
b3f52e9083d1d9584e5da7289c1ce560f793ef18
[ "MIT" ]
null
null
null
# External module imports import RPi.GPIO as GPIO # Sensor that checks whether water levels have gone too low class WaterLevelSensor: # Store which pin receives info from the water level sensor def __init__(self, pin): self.pin = pin self.is_too_low = False # Check to see if the water le...
25.083333
68
0.642857
486
0.807309
0
0
0
0
0
0
201
0.333887
1d882e613aec8852e2007e1e358a346706de1051
782
py
Python
swap/__init__.py
afourmy/SWAPON
9dfc980ff4b5096f42e9fe5891873b465a98e88d
[ "MIT" ]
7
2018-03-28T10:21:22.000Z
2018-07-03T18:37:30.000Z
swap/__init__.py
afourmy/SWAPON
9dfc980ff4b5096f42e9fe5891873b465a98e88d
[ "MIT" ]
1
2018-03-28T13:32:45.000Z
2018-03-28T13:32:45.000Z
swap/__init__.py
afourmy/SWAPON
9dfc980ff4b5096f42e9fe5891873b465a98e88d
[ "MIT" ]
1
2018-03-28T13:30:23.000Z
2018-03-28T13:30:23.000Z
"""Application and database initialization.""" from flask import Flask from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() from swap.routes import swap def configure_database(app): """Handle database initialization and shutdown.""" @app.before_first_request def initialize_database(): db.c...
24.4375
67
0.712276
0
0
0
0
171
0.21867
0
0
236
0.30179
1d8877106d1619c09d6a3b5167c9ba5af60e927b
1,917
py
Python
engines/vecm.py
BBVA/timecop
0ff5c679ecf62c943e0bb31f561d4f601822a781
[ "Apache-2.0" ]
79
2018-08-13T08:36:33.000Z
2022-03-27T05:20:07.000Z
engines/vecm.py
BBVA/timecop
0ff5c679ecf62c943e0bb31f561d4f601822a781
[ "Apache-2.0" ]
14
2018-10-11T10:06:55.000Z
2020-09-02T23:50:49.000Z
engines/vecm.py
BBVA/timecop
0ff5c679ecf62c943e0bb31f561d4f601822a781
[ "Apache-2.0" ]
22
2018-08-08T08:17:47.000Z
2021-08-03T11:47:03.000Z
import numpy as np from matplotlib import pyplot as plt import statsmodels.tsa.vector_ar.vecm as vecm import pandas as pd from . engine_output_creation import engine_output_creation def anomaly_vecm(list_var,num_fut=5,desv_mse=2,train=True,name='model-name'): df_var = pd.DataFrame() for i in range(len(list_var)):...
30.919355
93
0.715702
0
0
0
0
0
0
0
0
241
0.125717
1d88ff2f19c547b52af367b081354284bd65b5d4
1,104
py
Python
tests/playlist/test_playlist_init.py
fdenivac/python-qobuz
7a70d12b80d022541af5e210f75d8943c8bd54a1
[ "MIT" ]
11
2020-04-19T00:47:47.000Z
2022-02-04T15:39:08.000Z
tests/playlist/test_playlist_init.py
fdenivac/python-qobuz
7a70d12b80d022541af5e210f75d8943c8bd54a1
[ "MIT" ]
1
2020-05-02T17:11:32.000Z
2020-05-02T17:11:32.000Z
tests/playlist/test_playlist_init.py
netsuso/python-qobuz
13a9bfeca2a23b5819f6bdaaad9edf7309ab9443
[ "MIT" ]
4
2020-04-20T16:36:21.000Z
2021-03-20T01:56:48.000Z
import pytest import qobuz import responses from tests.resources.responses import playlist_create_json from tests.resources.fixtures import playlist @pytest.fixture def app(): qobuz.api.register_app(app_id="request_from_api@qobuz.com") def get_url(playlist_id): return ( qobuz.api.API_URL + ...
25.090909
70
0.689312
0
0
0
0
90
0.081522
0
0
94
0.085145
1d8d6459cd4f63985e93d0cea74844705e5db732
1,684
py
Python
src/matches/utils.py
marlingod/djangopro
4a0b9025e622e1bbc83c4146f7ee54db46f24e8b
[ "MIT" ]
null
null
null
src/matches/utils.py
marlingod/djangopro
4a0b9025e622e1bbc83c4146f7ee54db46f24e8b
[ "MIT" ]
4
2020-06-05T17:51:24.000Z
2021-06-10T19:59:29.000Z
src/matches/utils.py
marlingod/djangopro
4a0b9025e622e1bbc83c4146f7ee54db46f24e8b
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from questions.models import UserAnswer User = get_user_model() users = User.objects.all() all_user_answers = UserAnswer.objects.all() yemalin =users[0] caden =users[1] def get_points(user_a, user_b): a_answers = UserAnswer.objects.filter(user = user_a) b_answers =...
30.071429
95
0.73753
0
0
0
0
0
0
0
0
854
0.507126
1d8ed043ae4252f0d1547399b9aa09ae4c55b2e4
82
py
Python
meinheld/__init__.py
IPetrik/meinheld
1253ad7edf2febaa0b644db3953650c70bc6c234
[ "BSD-3-Clause" ]
null
null
null
meinheld/__init__.py
IPetrik/meinheld
1253ad7edf2febaa0b644db3953650c70bc6c234
[ "BSD-3-Clause" ]
null
null
null
meinheld/__init__.py
IPetrik/meinheld
1253ad7edf2febaa0b644db3953650c70bc6c234
[ "BSD-3-Clause" ]
null
null
null
from meinheld.server import * from meinheld import mlogging __version__ = '1.0.1'
20.5
29
0.780488
0
0
0
0
0
0
0
0
7
0.085366