hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
933951352d761c5af3553344f6a500714b080ab0
14,107
py
Python
mne_qt_browser/tests/test_pg_specific.py
marsipu/mne-qt-browser
6b67dd5af1ef0e39590ffacfbd4dffd8bd7d273d
[ "BSD-3-Clause" ]
null
null
null
mne_qt_browser/tests/test_pg_specific.py
marsipu/mne-qt-browser
6b67dd5af1ef0e39590ffacfbd4dffd8bd7d273d
[ "BSD-3-Clause" ]
null
null
null
mne_qt_browser/tests/test_pg_specific.py
marsipu/mne-qt-browser
6b67dd5af1ef0e39590ffacfbd4dffd8bd7d273d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Author: Martin Schulz <dev@earthman-music.de> # # License: BSD-3-Clause import numpy as np from qtpy.QtTest import QTest def test_annotations_interactions(raw_orig, pg_backend): """Test interactions specific to pyqtgraph-backend.""" # Add test-annotations onsets = np.arange(2, 8...
38.755495
77
0.711633
e082048af6224e8c006a01e948ca8644c9b39495
1,146
py
Python
gr-demapping/python/__init__.py
xueyuecanfeng/C-LQI
f489c6447428d6affb2159e9d8f895caab2868c7
[ "BSD-2-Clause" ]
2
2021-11-30T02:35:48.000Z
2021-11-30T02:53:02.000Z
gr-demapping/python/__init__.py
xueyuecanfeng/C-LQI
f489c6447428d6affb2159e9d8f895caab2868c7
[ "BSD-2-Clause" ]
null
null
null
gr-demapping/python/__init__.py
xueyuecanfeng/C-LQI
f489c6447428d6affb2159e9d8f895caab2868c7
[ "BSD-2-Clause" ]
null
null
null
# # Copyright 2008,2009 Free Software Foundation, Inc. # # This application is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # This application is di...
32.742857
74
0.768761
ad8da7ead063c56db79fffe7162f730041ee4f0e
6,512
py
Python
units/Easy_Driver.py
Cap-n-Proud/Bailey_2
e3a9e19640278ba27fffeca78f39e66031aef848
[ "Apache-2.0" ]
null
null
null
units/Easy_Driver.py
Cap-n-Proud/Bailey_2
e3a9e19640278ba27fffeca78f39e66031aef848
[ "Apache-2.0" ]
null
null
null
units/Easy_Driver.py
Cap-n-Proud/Bailey_2
e3a9e19640278ba27fffeca78f39e66031aef848
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import RPi.GPIO as gpio import time, sys class ES(object): def __init__( self, name="Motor_A", simulation=False, pin_step=0, pin_direction=0, pin_enable=0, max_speed=0.002, min_speed=0.06, pin_ms1=0,...
30.429907
68
0.567875
f033a5b43b419481e4345c9c708f633987edcfae
904
py
Python
squalo_core/management/commands/setup_element.py
sirmmo/squalo
85ee785ce6af8c88f4f90a1d543709d2ff562e9f
[ "MIT" ]
1
2019-06-13T15:59:15.000Z
2019-06-13T15:59:15.000Z
squalo_core/management/commands/setup_element.py
sirmmo/squalo
85ee785ce6af8c88f4f90a1d543709d2ff562e9f
[ "MIT" ]
null
null
null
squalo_core/management/commands/setup_element.py
sirmmo/squalo
85ee785ce6af8c88f4f90a1d543709d2ff562e9f
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from squalo_core.models import * import sqlite3 import json class Command(BaseCommand): args = '<poll_id poll_id ...>' help = 'Closes the specified poll for voting' def handle(self, *args, **options): #print args for d in...
30.133333
99
0.53208
20ce5ff3d1a162647ad94851ee750f971df2eafa
28,404
py
Python
general_tools/bible_books.py
unfoldingWord-dev/uw_pdf_conversion_tools
30b77ed5bb1eb61cb33815a9801c90ae0f7fc0c3
[ "MIT" ]
null
null
null
general_tools/bible_books.py
unfoldingWord-dev/uw_pdf_conversion_tools
30b77ed5bb1eb61cb33815a9801c90ae0f7fc0c3
[ "MIT" ]
1
2021-06-08T21:52:10.000Z
2021-06-08T21:52:10.000Z
general_tools/bible_books.py
unfoldingWord-dev/uw-pdf-conversion-tools
30b77ed5bb1eb61cb33815a9801c90ae0f7fc0c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf8 -*- # # Copyright (c) 2020 unfoldingWord # http://creativecommons.org/licenses/MIT/ # See LICENSE file for details. # # Contributors: # Richard Mahn <rich.mahn@unfoldingword.org> from collections import OrderedDict BOOK_NAMES = OrderedDict({ 'gen': 'Genesis', 'ex...
19.270014
45
0.228419
1236e1abc5f025b7ac5feddb864ef28f46bac610
236
py
Python
code-everyday-challenge/n14_max_revenue.py
ved93/deliberate-practice-challenges
2fccdbb9d2baaa16f888055c081a8d04804c0045
[ "MIT" ]
null
null
null
code-everyday-challenge/n14_max_revenue.py
ved93/deliberate-practice-challenges
2fccdbb9d2baaa16f888055c081a8d04804c0045
[ "MIT" ]
null
null
null
code-everyday-challenge/n14_max_revenue.py
ved93/deliberate-practice-challenges
2fccdbb9d2baaa16f888055c081a8d04804c0045
[ "MIT" ]
null
null
null
def max_revenue(a,c): a=sorted(a,reverse=True) c=sorted(c,reverse=True) s = 0 for i in range(len(a)): s = s+a[i]*c[i] return s if __name__ == "__main__": print(max_revenue([1,3,-5,-7], [-2,4,1,8]))
14.75
47
0.533898
58cc09f1c8f6e68fe42f8347b265b76aeeab485c
89
py
Python
output/models/saxon_data/all/all005_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/saxon_data/all/all005_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/saxon_data/all/all005_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.saxon_data.all.all005_xsd.all005 import Doc __all__ = [ "Doc", ]
14.833333
62
0.719101
dc11c97407b90e4165a11fe0178258ea5e29de14
14,236
py
Python
django_webtest/__init__.py
bdauvergne/django-webtest
adbf6301ead197b8f75936a434dab187e6877b22
[ "MIT" ]
null
null
null
django_webtest/__init__.py
bdauvergne/django-webtest
adbf6301ead197b8f75936a434dab187e6877b22
[ "MIT" ]
9
2020-08-11T15:19:55.000Z
2022-03-12T00:11:12.000Z
oscar/lib/python3.6/site-packages/django_webtest/__init__.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import copy from django.conf import settings from django.test.signals import template_rendered from django.core.handlers.wsgi import WSGIHandler from django.test import TestCase, TransactionTestCase from django.test.client import store_rendered_templates from functools import partial try: ...
38.790191
85
0.65798
4eaaf7a6b35b94dd11dae3e7714a0ed9c9c4c060
3,866
py
Python
rllab/rllab/envs/mujoco/humanoid_task_env.py
LinZichuan/AdMRL
50a22d4d480e99125cc91cc65dfcc0df4a883ac6
[ "MIT" ]
27
2020-06-17T11:40:17.000Z
2021-11-16T07:39:33.000Z
rllab/rllab/envs/mujoco/humanoid_task_env.py
LinZichuan/AdMRL
50a22d4d480e99125cc91cc65dfcc0df4a883ac6
[ "MIT" ]
3
2020-06-19T07:01:48.000Z
2020-06-19T07:14:57.000Z
rllab/rllab/envs/mujoco/humanoid_task_env.py
LinZichuan/AdMRL
50a22d4d480e99125cc91cc65dfcc0df4a883ac6
[ "MIT" ]
5
2020-11-19T01:11:24.000Z
2021-12-24T09:03:56.000Z
import math import numpy as np from .simple_humanoid_env import SimpleHumanoidEnv from gym.envs.mujoco import mujoco_env from rllab.misc.overrides import overrides from rllab.envs.base import Step import tensorflow as tf from slbo.utils.flags import FLAGS from rllab.envs.mujoco.task_param import TaskNet, TaskConfig fr...
37.533981
109
0.637351
b5660e8cbca501d4e4dc44c132737b0e8b397504
17,144
py
Python
pylazybam/tests/test_bam.py
genomematt/pylazybam
0c1e27ec3c73d59377343fa5a84ddddc9261ea3a
[ "BSD-3-Clause" ]
9
2020-01-29T07:15:17.000Z
2021-04-10T13:36:15.000Z
pylazybam/tests/test_bam.py
genomematt/pylazybam
0c1e27ec3c73d59377343fa5a84ddddc9261ea3a
[ "BSD-3-Clause" ]
4
2020-01-29T08:14:19.000Z
2020-02-12T04:56:14.000Z
pylazybam/tests/test_bam.py
genomematt/pylazybam
0c1e27ec3c73d59377343fa5a84ddddc9261ea3a
[ "BSD-3-Clause" ]
1
2020-06-22T08:33:44.000Z
2020-06-22T08:33:44.000Z
#!/usr/bin/env python3 # encoding: utf-8 """ pylazybam/tests/test_bam.py Copyright (c) 2018-2020 Matthew Wakefield, The Walter and Eliza Hall Institute and The University of Melbourne. All rights reserved. """ import gzip, struct import unittest from pkg_resources import resource_stream from tempfile import NamedTem...
55.662338
860
0.631533
2cc91fcfeb6afed177f94dce083ca1e83d3a407c
1,453
py
Python
lib/osv/bug_test.py
secteria/osv
fc6cf9bce3d5d31501a54b15a5936936e0d4cd6c
[ "Apache-2.0" ]
1
2021-07-21T03:58:50.000Z
2021-07-21T03:58:50.000Z
lib/osv/bug_test.py
SeppPenner/osv
e5081bf6d1fe67ede3299a010a8e15fbde88e6c3
[ "Apache-2.0" ]
4
2021-07-16T19:33:20.000Z
2021-09-16T01:33:09.000Z
lib/osv/bug_test.py
SeppPenner/osv
e5081bf6d1fe67ede3299a010a8e15fbde88e6c3
[ "Apache-2.0" ]
1
2021-12-12T00:47:11.000Z
2021-12-12T00:47:11.000Z
# Copyright 2021 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, ...
23.819672
74
0.575361
e433ad617bcb8e82c1d7ac46020c8459540877ba
7,317
py
Python
bento/commands/hooks.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
bento/commands/hooks.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
bento/commands/hooks.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
import imp import os import re import sys import traceback from six.moves \ import \ StringIO from bento.commands.core \ import \ Command from bento.compat \ import \ inspect as compat_inspect from bento.utils.utils \ import \ extract_exception from bento.errors \ i...
26.802198
93
0.653273
0741b6a25796e25368c1e31f3901a7cf404133a0
1,275
py
Python
apps/__init__.py
yangtaoxf/yiwa
a738f961817cba5295c4264f78956a991bba93c0
[ "MIT" ]
2
2020-10-15T00:15:24.000Z
2021-03-13T00:08:50.000Z
apps/__init__.py
WZlzw/yiwa
a738f961817cba5295c4264f78956a991bba93c0
[ "MIT" ]
null
null
null
apps/__init__.py
WZlzw/yiwa
a738f961817cba5295c4264f78956a991bba93c0
[ "MIT" ]
2
2020-07-17T14:51:03.000Z
2022-03-05T11:30:39.000Z
# coding: utf8 import os from flask import Flask, Blueprint from flask_socketio import SocketIO from importlib import import_module apps_path = __path__[0] def _app_resource_path(app: str, dir: str): """app模板和静态资源路径""" return os.path.join(apps_path, app, dir) # 定义应用 app = Flask(__name__) # app.config['SECRE...
25.5
88
0.675294
2d190ed5be733bf79dccb566dcd6257042831f0b
178
py
Python
ImageProcessing/cnn.py
OrangeTien/Movie_Data_Capture
96c6b6ea96b4f16b24f673448c083c209dcd18d1
[ "MIT" ]
562
2021-12-17T17:23:38.000Z
2022-03-31T16:32:39.000Z
ImageProcessing/cnn.py
qxzg/Movie_Data_Capture
3fdcf03d8a15b44e8e6c361329ddd6132b1f7189
[ "MIT" ]
123
2021-12-18T03:37:48.000Z
2022-03-30T12:29:21.000Z
ImageProcessing/cnn.py
qxzg/Movie_Data_Capture
3fdcf03d8a15b44e8e6c361329ddd6132b1f7189
[ "MIT" ]
119
2021-12-18T03:56:24.000Z
2022-03-31T08:28:03.000Z
import sys sys.path.append('../') from ImageProcessing.hog import face_center as hog_face_center def face_center(filename, model): return hog_face_center(filename, model)
19.777778
62
0.780899
80a294778888f57f0666660e782b1bed76ab7325
12,168
py
Python
examples/poisson/single_instance/winding_immersed_background_2d.py
adityabalu/DiffNet
a21e024ad9948fa76fe73796e216a0a6601f2c7c
[ "MIT" ]
1
2021-12-02T06:42:38.000Z
2021-12-02T06:42:38.000Z
examples/poisson/single_instance/winding_immersed_background_2d.py
adityabalu/DiffNet
a21e024ad9948fa76fe73796e216a0a6601f2c7c
[ "MIT" ]
null
null
null
examples/poisson/single_instance/winding_immersed_background_2d.py
adityabalu/DiffNet
a21e024ad9948fa76fe73796e216a0a6601f2c7c
[ "MIT" ]
2
2021-12-01T20:53:24.000Z
2021-12-02T06:42:39.000Z
import os import sys import json import torch import numpy as np import math import scipy.io import matplotlib from scipy import ndimage # matplotlib.use("pgf") matplotlib.rcParams.update({ # 'font.family': 'serif', 'font.size':12, }) from matplotlib import pyplot as plt import pytorch_lightning as pl from pyt...
42.84507
182
0.611111
758a43cab2be04bdc52e4d4aca1e84104ddcac09
20,007
py
Python
server/dive_server/crud_rpc.py
maxpark/dive
5dce25822d9b53d96ff0c2c8fb02265e4b43911e
[ "Apache-2.0" ]
null
null
null
server/dive_server/crud_rpc.py
maxpark/dive
5dce25822d9b53d96ff0c2c8fb02265e4b43911e
[ "Apache-2.0" ]
null
null
null
server/dive_server/crud_rpc.py
maxpark/dive
5dce25822d9b53d96ff0c2c8fb02265e4b43911e
[ "Apache-2.0" ]
null
null
null
import json from typing import Dict, List, Optional, Tuple from girder.constants import AccessType from girder.exceptions import RestException from girder.models.file import File from girder.models.folder import Folder from girder.models.item import Item from girder.models.setting import Setting from girder.models.tok...
39.383858
98
0.617084
eff7673d3140fcdece928cdabd71260ea7e1ae56
4,046
py
Python
timelight_ai_python_api_client/models/import_days_dto.py
timelight-ai/python-api-client
7e14341a89e8b7e1b4b0730416f6ddd3ef66ef39
[ "MIT" ]
null
null
null
timelight_ai_python_api_client/models/import_days_dto.py
timelight-ai/python-api-client
7e14341a89e8b7e1b4b0730416f6ddd3ef66ef39
[ "MIT" ]
null
null
null
timelight_ai_python_api_client/models/import_days_dto.py
timelight-ai/python-api-client
7e14341a89e8b7e1b4b0730416f6ddd3ef66ef39
[ "MIT" ]
null
null
null
# coding: utf-8 """ timelight This is the timelight api. # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ImportDaysDto(object): """NOTE: This class is auto generated by th...
27.337838
95
0.557341
e9658b7972aaf3fb473d3d536fb20c8663b4aa89
9,817
py
Python
pymeta/builder.py
allbuttonspressed/pymeta2
f542f989d4edd9ad6b4a8dace9245b4df2cea453
[ "MIT" ]
2
2017-09-07T17:14:06.000Z
2018-05-22T19:53:03.000Z
pymeta/builder.py
allbuttonspressed/pymeta2
f542f989d4edd9ad6b4a8dace9245b4df2cea453
[ "MIT" ]
null
null
null
pymeta/builder.py
allbuttonspressed/pymeta2
f542f989d4edd9ad6b4a8dace9245b4df2cea453
[ "MIT" ]
null
null
null
# -*- test-case-name: pymeta.test.test_builder -*- from types import ModuleType as module import linecache, sys class TreeBuilder(object): """ Produce an abstract syntax tree of OMeta operations. """ def __init__(self, name, grammar=None, *args): self.name = name def makeGrammar(self, rul...
29.217262
87
0.567689
8ec95e2880ed1cfa2f5209c3081f8a49b943985f
2,680
py
Python
app/util/team.py
Jakuu/Contest-Server
b4ba04ba0076ae8878eb031acedd6c6a3092b614
[ "MIT" ]
null
null
null
app/util/team.py
Jakuu/Contest-Server
b4ba04ba0076ae8878eb031acedd6c6a3092b614
[ "MIT" ]
null
null
null
app/util/team.py
Jakuu/Contest-Server
b4ba04ba0076ae8878eb031acedd6c6a3092b614
[ "MIT" ]
null
null
null
# util.team from flask import flash from app import app from app.models import Team from app.util.password import make_password def create_team(account, name): """ ATTENTION: The following code is a workaround for a bug in MongoEngine. When removing the last element from a ListField and saving t...
23.928571
69
0.641791
5e010ad7a60e5c9e0db244f580e1895cd3e47b92
4,086
py
Python
tests/unit/test_models.py
sauyon/BentoML
ff702f1fc1ee7cc4cf7aab2e67d1e27512858fe4
[ "Apache-2.0" ]
null
null
null
tests/unit/test_models.py
sauyon/BentoML
ff702f1fc1ee7cc4cf7aab2e67d1e27512858fe4
[ "Apache-2.0" ]
null
null
null
tests/unit/test_models.py
sauyon/BentoML
ff702f1fc1ee7cc4cf7aab2e67d1e27512858fe4
[ "Apache-2.0" ]
null
null
null
import os import random import string from sys import version_info as pyver from typing import TYPE_CHECKING try: import importlib.metadata as importlib_metadata except ModuleNotFoundError: import importlib_metadata import pytest import bentoml from bentoml.exceptions import NotFound from bentoml._internal.m...
38.914286
87
0.737885
0afaf9d4abbd4a08caecdf3d8d710d046c17c29e
73,092
py
Python
test/jit/test_freezing.py
zhaozhixu/pytorch
c5e80d30bfe80754dc16bac0ea16add89a3fc971
[ "Intel" ]
1
2021-11-17T18:57:51.000Z
2021-11-17T18:57:51.000Z
test/jit/test_freezing.py
computerguy2030/pytorch-rocm-amd
38da53d721fcb335dedb1b52f14fd89718e90bef
[ "Intel" ]
null
null
null
test/jit/test_freezing.py
computerguy2030/pytorch-rocm-amd
38da53d721fcb335dedb1b52f14fd89718e90bef
[ "Intel" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import unittest from torch.testing._internal.jit_utils import JitTestCase from torch._C import parse_ir from torch.testing import FileCheck from torch.testing._internal.common_quantized import override_quantized_engine from torch.testing._internal.comm...
36.952477
130
0.539266
3ff505bdea1e2528940f336f22e4722230387f51
3,062
py
Python
pandaproxy/proxycore/HttpRedirector.py
PanDAWMS/panda-proxy
731bf01d6684f52798a750bf049078c6eb11ed59
[ "Apache-2.0" ]
null
null
null
pandaproxy/proxycore/HttpRedirector.py
PanDAWMS/panda-proxy
731bf01d6684f52798a750bf049078c6eb11ed59
[ "Apache-2.0" ]
null
null
null
pandaproxy/proxycore/HttpRedirector.py
PanDAWMS/panda-proxy
731bf01d6684f52798a750bf049078c6eb11ed59
[ "Apache-2.0" ]
null
null
null
# redirect request after key check import os import sys import urlparse import requests from proxyconfig import proxy_config class HttpRedirector: # constructor def __init__(self): from proxycore.ProxyCore import proxyCore self.proxyCore = proxyCore # remote host config self....
32.924731
77
0.508818
55bab14b8f39d42d6526e4b531fa914236872f5c
1,805
py
Python
day9/test_day9.py
hmcc/advent-of-code-2021
6f9a2fc713901ca03eecf90fb0c2fa183a2b323f
[ "MIT" ]
null
null
null
day9/test_day9.py
hmcc/advent-of-code-2021
6f9a2fc713901ca03eecf90fb0c2fa183a2b323f
[ "MIT" ]
null
null
null
day9/test_day9.py
hmcc/advent-of-code-2021
6f9a2fc713901ca03eecf90fb0c2fa183a2b323f
[ "MIT" ]
null
null
null
import pytest from day9 import day9 heightmap = day9.read_file('day9/input_sample') @pytest.mark.parametrize('origin_coordinates,adjacent_coordinates', [ ((0, 0), [(1, 0), (0, 1), (1, 1)]), # top left corner ((9, 4), [(8, 3), (9, 3), (8, 4)]), # bottom right corner ((...
31.666667
100
0.477008
de2de9d36c20ff8cee361c6f241de8c6b91c6b4a
11,692
py
Python
test/test_client_async_asyncio.py
sumpfralle/pymodbus
fbdc470ae3e138c50e3659ec4ec8ebf39df58936
[ "BSD-3-Clause" ]
1
2021-01-07T01:04:55.000Z
2021-01-07T01:04:55.000Z
test/test_client_async_asyncio.py
sumpfralle/pymodbus
fbdc470ae3e138c50e3659ec4ec8ebf39df58936
[ "BSD-3-Clause" ]
null
null
null
test/test_client_async_asyncio.py
sumpfralle/pymodbus
fbdc470ae3e138c50e3659ec4ec8ebf39df58936
[ "BSD-3-Clause" ]
2
2020-12-11T19:44:35.000Z
2022-03-29T02:24:32.000Z
from pymodbus.compat import IS_PYTHON3, PYTHON_VERSION import pytest if IS_PYTHON3 and PYTHON_VERSION >= (3, 4): from unittest import mock from pymodbus.client.asynchronous.asyncio import ( ReconnectingAsyncioModbusTcpClient, ModbusClientProtocol, ModbusUdpClientProtocol) from test.asyncio_t...
42.209386
128
0.710657
3ff48a4a69435a7105f4a58e034b19f804f33a4f
725
py
Python
python3/tests/test_four_sum.py
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
4
2018-03-05T02:27:16.000Z
2021-03-15T14:19:44.000Z
python3/tests/test_four_sum.py
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
null
null
null
python3/tests/test_four_sum.py
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
2
2018-07-22T10:32:10.000Z
2018-10-20T03:14:28.000Z
from unittest import TestCase from leetcodepy.four_sum import * SOLUTION1 = Solution1() SOLUTION2 = Solution2() NUMS1 = [1, 0, -1, 0, -2, 2] TARGET1 = 0 EXPECTED1 = [ [-2, -1, 1, 2], [-2, 0, 0, 2], [-1, 0, 0, 1] ] NUMS2 = [] TARGET2 = 0 EXPECTED2 = [] class TestFourSum(TestCase): def test1(self): ...
22.65625
74
0.624828
e71ae3e0411321eda98639ba967b7a16e74734ea
3,473
py
Python
src/dataloaders/text_file_loader.py
Jeevesh8/relational-pt
9a652c77265ec79f41440d5f8f8b7289fe3806e6
[ "MIT" ]
null
null
null
src/dataloaders/text_file_loader.py
Jeevesh8/relational-pt
9a652c77265ec79f41440d5f8f8b7289fe3806e6
[ "MIT" ]
null
null
null
src/dataloaders/text_file_loader.py
Jeevesh8/relational-pt
9a652c77265ec79f41440d5f8f8b7289fe3806e6
[ "MIT" ]
1
2021-06-21T13:50:32.000Z
2021-06-21T13:50:32.000Z
import re import tensorflow as tf from multiprocessing import Pool from .utils import ( convert_to_named_tuple, only_inside_links, tree_ids_to_nos, dict_to_inputs, ) from ..globals import stable_config def remove_artifacts(tree): """Removes some artifacts introduced by the preprocessing steps fr...
31.288288
99
0.600346
71c4aaad5a5fa09cc299cfa07ee6ea104bd8d8dd
1,261
py
Python
ros/src/vision/scripts/line_follow_noise.py
purduerov/X12-Repo
33574a9a07c3512d6db3a513d13a5666f60fc1f7
[ "MIT" ]
2
2020-01-13T17:28:59.000Z
2020-02-14T01:00:14.000Z
ros/src/vision/scripts/line_follow_noise.py
purduerov/X12-Repo
33574a9a07c3512d6db3a513d13a5666f60fc1f7
[ "MIT" ]
2
2019-10-23T23:16:36.000Z
2020-10-10T17:52:27.000Z
ros/src/vision/scripts/line_follow_noise.py
purduerov/X12-Repo
33574a9a07c3512d6db3a513d13a5666f60fc1f7
[ "MIT" ]
2
2020-02-15T19:00:38.000Z
2020-02-15T19:00:40.000Z
#! /usr/bin/python import rospy import cv2 # OpenCV from cv_bridge import CvBridge, CvBridgeError # converts between ROS Image messages and OpenCV images import std_msgs.msg from sensor_msgs.msg import Image import numpy as np bridge = CvBridge() def get_largest(img): pass # functions that manipulates the da...
23.792453
102
0.66138
350e446a189cbbdbc169a76d8db1a92f591aa1f3
827
py
Python
shaddock/handler.py
epheo/shaddock
b424672391dd88242a96564132f8f837ffb9ed14
[ "Apache-2.0" ]
12
2015-04-05T23:53:56.000Z
2017-06-15T10:25:33.000Z
shaddock/handler.py
epheo/shaddock
b424672391dd88242a96564132f8f837ffb9ed14
[ "Apache-2.0" ]
56
2015-04-06T22:48:25.000Z
2018-02-24T14:38:38.000Z
shaddock/handler.py
epheo/shaddock
b424672391dd88242a96564132f8f837ffb9ed14
[ "Apache-2.0" ]
5
2015-05-14T10:34:53.000Z
2017-02-17T02:03:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2014 Thibaut Lapierre <git@epheo.eu>. 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 # # ...
28.517241
78
0.680774
a7d5fa7581021130913481d08cd69e2245056f5b
1,023
py
Python
scripts/survey.py
cbshiles/AmeriWeb
eaddfff42a775e53a7f0c1568957f7fca926e264
[ "MIT" ]
null
null
null
scripts/survey.py
cbshiles/AmeriWeb
eaddfff42a775e53a7f0c1568957f7fca926e264
[ "MIT" ]
null
null
null
scripts/survey.py
cbshiles/AmeriWeb
eaddfff42a775e53a7f0c1568957f7fca926e264
[ "MIT" ]
null
null
null
class Leaf: def __init__(self, di): self.di = di self.lzt = [] self.hits = 0 def add(self, trail): self.hits += 1 if len(trail) < 1: return for x in self.lzt: if (x.di == trail[0]): x.add(trail[1:]) ...
19.673077
55
0.459433
defe51959fd6976baae29f6210f4f505ec5f8e71
694
py
Python
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/r/reimport.py
ciskoinch8/vimrc
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
[ "MIT" ]
463
2015-01-15T08:17:42.000Z
2022-03-28T15:10:20.000Z
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/r/reimport.py
ciskoinch8/vimrc
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
[ "MIT" ]
52
2015-01-06T02:43:59.000Z
2022-03-14T11:15:21.000Z
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/r/reimport.py
ciskoinch8/vimrc
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
[ "MIT" ]
249
2015-01-07T22:49:49.000Z
2022-03-18T02:32:06.000Z
"""check reimport """ from __future__ import absolute_import, print_function # pylint: disable=using-constant-test,ungrouped-imports,wrong-import-position,import-outside-toplevel import os from os.path import join, exists import os # [reimported] import re as _re __revision__ = 0 _re.match('yo', '.*') if __revision...
21.6875
101
0.691643
0c815ab22d20ce9cd5336acb109fe97009b6ffff
218
py
Python
examples/str.format/ex6.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
examples/str.format/ex6.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
examples/str.format/ex6.py
mcorne/python-by-example
15339c0909c84b51075587a6a66391100971c033
[ "MIT" ]
null
null
null
# Aligning the text and specifying a width print('{:<30}'.format('left aligned')) print('{:>30}'.format('right aligned')) print('{:^30}'.format('centered')) # use '*' as a fill char print('{:*^30}'.format('centered'))
31.142857
42
0.637615
416f5bbc564e509e6fd25329b92f92e56073a3e9
3,595
py
Python
personalgallery/settings.py
Gakur/PersonalGalApp
ddc21e438a3e78cc6e6c318aa525244a56617762
[ "MIT" ]
null
null
null
personalgallery/settings.py
Gakur/PersonalGalApp
ddc21e438a3e78cc6e6c318aa525244a56617762
[ "MIT" ]
null
null
null
personalgallery/settings.py
Gakur/PersonalGalApp
ddc21e438a3e78cc6e6c318aa525244a56617762
[ "MIT" ]
null
null
null
""" Django settings for personalgallery project. Generated by 'django-admin startproject' using Django 3.2.8. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from...
25.316901
91
0.698748
b4875963b6a1649d5aa2f3b8d01efd7a3b3f9657
41,682
py
Python
userbot/modules/admin.py
RoyalBoy69/OUB
d450fd55bbf2e292bc1a70e669217b79106edc7a
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-05-29T03:24:59.000Z
2020-05-29T03:24:59.000Z
userbot/modules/admin.py
RoyalBoy69/OUB
d450fd55bbf2e292bc1a70e669217b79106edc7a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/admin.py
RoyalBoy69/OUB
d450fd55bbf2e292bc1a70e669217b79106edc7a
[ "Naumen", "Condor-1.1", "MS-PL" ]
16
2020-07-11T17:22:36.000Z
2021-11-06T22:55:33.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # thanks to anishsk """ Userbot module to help you manage a group """ from asyncio import sleep from os import remove ...
32.538642
140
0.598244
194d7f37b38c53973ce34d5413ef388dfa913323
1,149
py
Python
sphinxcontrib/needs/directives/utils.py
hkaimio/sphinxcontrib-needs
40365c662f9c2fbe307f2db7ea1ca87572d86631
[ "MIT" ]
null
null
null
sphinxcontrib/needs/directives/utils.py
hkaimio/sphinxcontrib-needs
40365c662f9c2fbe307f2db7ea1ca87572d86631
[ "MIT" ]
null
null
null
sphinxcontrib/needs/directives/utils.py
hkaimio/sphinxcontrib-needs
40365c662f9c2fbe307f2db7ea1ca87572d86631
[ "MIT" ]
1
2021-09-29T12:44:50.000Z
2021-09-29T12:44:50.000Z
from docutils import nodes def no_needs_found_paragraph(): nothing_found = "No needs passed the filters" para = nodes.paragraph() nothing_found_node = nodes.Text(nothing_found, nothing_found) para += nothing_found_node return para def used_filter_paragraph(current_needfilter): para = nodes.p...
38.3
94
0.655352
4b44003abc942253b4312392121f7e88effe933f
1,698
py
Python
corehq/pillows/mappings/sms_mapping.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/pillows/mappings/sms_mapping.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/pillows/mappings/sms_mapping.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals from corehq.pillows.core import DATE_FORMATS_ARR, DATE_FORMATS_STRING from corehq.util.elastic import es_index from pillowtop.es_utils import ElasticsearchIndexInfo SMS_INDEX = es_index("smslogs_2017-02-09") SMS_MAPPING = { '_meta': { ...
32.037736
112
0.574794
ec3135ee8c22dde25d0b48f41c8195f544fb9394
1,890
py
Python
tests/test_switch.py
smeersma/thermiagenesis
b51d1f03410a2bba6c72bb34b04d658c148b92f5
[ "MIT" ]
7
2020-10-16T09:12:35.000Z
2022-03-01T06:52:33.000Z
tests/test_switch.py
smeersma/thermiagenesis
b51d1f03410a2bba6c72bb34b04d658c148b92f5
[ "MIT" ]
37
2021-12-07T09:01:49.000Z
2022-03-30T13:27:07.000Z
tests/test_switch.py
smeersma/thermiagenesis
b51d1f03410a2bba6c72bb34b04d658c148b92f5
[ "MIT" ]
1
2021-12-10T20:19:12.000Z
2021-12-10T20:19:12.000Z
"""Test Thermia Genesis switch.""" from unittest.mock import call from unittest.mock import patch from custom_components.thermiagenesis import ( async_setup_entry, ) from custom_components.thermiagenesis.const import ( DEFAULT_NAME, ) from custom_components.thermiagenesis.const import ( DOMAIN, ) from cust...
33.75
96
0.720635
7a215ab37ecd5aa32d8f9cacc41f0d8f55472b3b
1,203
py
Python
netgen/ml/knn.py
daniele-canavese/netgen
ba6b6ddf4348db82218b81bc6709a2db7ed98b7a
[ "Apache-2.0" ]
null
null
null
netgen/ml/knn.py
daniele-canavese/netgen
ba6b6ddf4348db82218b81bc6709a2db7ed98b7a
[ "Apache-2.0" ]
null
null
null
netgen/ml/knn.py
daniele-canavese/netgen
ba6b6ddf4348db82218b81bc6709a2db7ed98b7a
[ "Apache-2.0" ]
null
null
null
""" kNNs stuff. """ from typing import Union from optuna import Trial from optuna.trial import FrozenTrial from pandas import DataFrame from pandas import Series from sklearn.neighbors import KNeighborsClassifier # noinspection DuplicatedCode def train_knn(trial: Union[Trial, FrozenTrial], x: DataFrame, y: Series) -...
28.642857
102
0.610973
346c677a59eaca66c04f65895cdbe59c6181b25a
549
py
Python
comments/migrations/0014_auto_20200602_2323.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
comments/migrations/0014_auto_20200602_2323.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
7
2021-03-19T03:09:53.000Z
2022-01-13T02:48:44.000Z
comments/migrations/0014_auto_20200602_2323.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-02 23:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('digital_books', '0008_digital_book_rating'), ('comments', '0013_auto_20200602_2157'), ] operations = [ ...
26.142857
125
0.652095
01016ead1eed4c8e1aeeb441fdaa5a064cf145f8
69,755
py
Python
HPGe_2_restore1.py
JCCPort/HPGe
ecf12e6499dfb7dc391bb5ff908ce07af7e3ec28
[ "Apache-2.0" ]
null
null
null
HPGe_2_restore1.py
JCCPort/HPGe
ecf12e6499dfb7dc391bb5ff908ce07af7e3ec28
[ "Apache-2.0" ]
null
null
null
HPGe_2_restore1.py
JCCPort/HPGe
ecf12e6499dfb7dc391bb5ff908ce07af7e3ec28
[ "Apache-2.0" ]
null
null
null
import datetime import math import os import time import ComptonChecker as comp import HPGe_Calibration as clb import matplotlib.pyplot as plt import numpy as np import pandas as pd import uncertainties from lmfit.models import GaussianModel from mpl_toolkits.axes_grid.anchored_artists import AnchoredText from scipy.o...
54.968479
186
0.484338
2b5c7000c119f954e9331ec48e240f58550a1cd5
3,934
py
Python
avatar/templatetags/avatar_tags.py
wahuneke/django-avatar
65839b34c717d98f7e512bc4f3e433e396706f94
[ "BSD-3-Clause" ]
null
null
null
avatar/templatetags/avatar_tags.py
wahuneke/django-avatar
65839b34c717d98f7e512bc4f3e433e396706f94
[ "BSD-3-Clause" ]
null
null
null
avatar/templatetags/avatar_tags.py
wahuneke/django-avatar
65839b34c717d98f7e512bc4f3e433e396706f94
[ "BSD-3-Clause" ]
null
null
null
import hashlib try: from urllib.parse import urljoin, urlencode except ImportError: from urlparse import urljoin from urllib import urlencode from django import template from django.core.urlresolvers import reverse from django.template.loader import render_to_string from django.utils import six from djang...
31.98374
89
0.656838
c8ff52edeff42f69475c087b280197e6b52a80cc
1,613
py
Python
functions_py3/random_graph.py
marcottelab/super.complex
aa5f6463a66042fee254ed4fe2e46073304485aa
[ "MIT" ]
null
null
null
functions_py3/random_graph.py
marcottelab/super.complex
aa5f6463a66042fee254ed4fe2e46073304485aa
[ "MIT" ]
null
null
null
functions_py3/random_graph.py
marcottelab/super.complex
aa5f6463a66042fee254ed4fe2e46073304485aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 17 10:38:13 2020 @author: Meg_94 """ from numpy.random import choice as rand_choice from networkx import Graph as nx_Graph from logging import debug as logging_debug from pickle import load as pickle_load # More efficient to have a global set of random graphs, and sampl...
31.627451
185
0.636702
12eb1d9794fae65dc91ba96049addc13b233f421
2,820
py
Python
tests/test_buffer.py
kenhro/tshcal
62c800e6cc26d5f617650585b5a7506deba700f5
[ "MIT" ]
2
2019-07-16T13:57:03.000Z
2020-09-21T21:14:28.000Z
tests/test_buffer.py
kenhro/tshcal
62c800e6cc26d5f617650585b5a7506deba700f5
[ "MIT" ]
6
2019-06-18T18:48:22.000Z
2022-03-11T23:45:17.000Z
tests/test_buffer.py
kenhro/tshcal
62c800e6cc26d5f617650585b5a7506deba700f5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np from time import sleep from collections import deque from tshcal.defaults import TSH_BUFFER_SEC, TSH_SETTLE_SEC, TSH_AX from tshcal.commanding.tsh_commands import fake_query_tsh_sample_rate # # TODO notice next 2 lines are fast way to initialize array to all NaNs # a = np.em...
42.089552
118
0.719858
ed3d952b3343b0bacc8911d4e0f1743c40b32ab8
3,087
py
Python
py/flask_backend/reduce.py
rhnvrm/iot-hackerearth
fb27dea7f238189b858f11496c316a42f430abc9
[ "MIT" ]
1
2019-06-19T21:58:48.000Z
2019-06-19T21:58:48.000Z
py/flask_backend/reduce.py
rhnvrm/iot-hackerearth
fb27dea7f238189b858f11496c316a42f430abc9
[ "MIT" ]
null
null
null
py/flask_backend/reduce.py
rhnvrm/iot-hackerearth
fb27dea7f238189b858f11496c316a42f430abc9
[ "MIT" ]
1
2019-06-19T21:58:16.000Z
2019-06-19T21:58:16.000Z
""" Bluetooth Indoor Positioning - Paul George && Rohan Verma """ from __future__ import (division) import math import numpy as np import cv2 from matplotlib import pyplot as plt # hardcoded beacon data Start x1 = 0 y1 = 0 x2 = 3.4 y2 = 0 x3 = 1.7 y3 = 1.4 r1 = 2.818 r2 = 1.25 r3 = 0.6309 # Hardcoded beacon data e...
27.810811
95
0.517007
86fbe04fef57fb4cb7602b0bfcb2a26108838c4e
5,983
py
Python
tests/unittest.py
hodlwave/f469-disco
f83f3fe096d02f76452eb48ba8a955d098591531
[ "MIT" ]
4
2020-09-16T02:19:34.000Z
2021-02-07T03:10:50.000Z
tests/unittest.py
hodlwave/f469-disco
f83f3fe096d02f76452eb48ba8a955d098591531
[ "MIT" ]
33
2020-09-24T06:52:37.000Z
2021-02-25T03:29:51.000Z
tests/unittest.py
hodlwave/f469-disco
f83f3fe096d02f76452eb48ba8a955d098591531
[ "MIT" ]
2
2021-02-07T03:10:53.000Z
2022-01-07T06:06:15.000Z
import sys class SkipTest(Exception): pass class AssertRaisesContext: def __init__(self, exc): self.expected = exc def __enter__(self): return self def __exit__(self, exc_type, exc_value, tb): if exc_type is None: assert False, "%r not raised" % self.expected ...
26.591111
89
0.503761
f30b2e839e935cd690c03cb56625e3fbb31a15b9
7,310
py
Python
app/improving_agent/models/meta_attribute.py
brettasmi/EvidARA
319bbe80ddb4d7d6aa4f1db005ad5461e015a8bc
[ "MIT" ]
null
null
null
app/improving_agent/models/meta_attribute.py
brettasmi/EvidARA
319bbe80ddb4d7d6aa4f1db005ad5461e015a8bc
[ "MIT" ]
5
2020-06-25T21:47:50.000Z
2020-07-15T01:22:51.000Z
app/improving_agent/models/meta_attribute.py
suihuanglab/evidARA
cf5b8bbdb9f90136c66b58c694acf2efc18ffc22
[ "MIT" ]
1
2020-03-23T10:39:59.000Z
2020-03-23T10:39:59.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from improving_agent.models.base_model_ import Model from improving_agent import util class MetaAttribute(Model): """NOTE: This class is auto generated by OpenAPI...
37.106599
280
0.677702
110169c8c852ee101e6710a436c939b3de98f219
46
py
Python
src/Set/maxSet.py
mikeludemann/helperFunctions_Python
62b1e8279eee216f3603f55cf2d010d611e3be0e
[ "MIT" ]
null
null
null
src/Set/maxSet.py
mikeludemann/helperFunctions_Python
62b1e8279eee216f3603f55cf2d010d611e3be0e
[ "MIT" ]
null
null
null
src/Set/maxSet.py
mikeludemann/helperFunctions_Python
62b1e8279eee216f3603f55cf2d010d611e3be0e
[ "MIT" ]
null
null
null
x = set([71, 12, 3, 18, 2, 21]) print(max(x))
15.333333
31
0.5
c5fbb0866356613743613a0561e67ab3fdcfd6fc
918
py
Python
test/programytest/dynamic/maps/test_roman.py
whackur/chatbot
bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7
[ "MIT" ]
2
2018-06-16T09:32:22.000Z
2019-07-21T13:16:00.000Z
test/programytest/dynamic/maps/test_roman.py
whackur/chatbot
bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7
[ "MIT" ]
3
2020-07-16T04:00:42.000Z
2021-03-31T18:52:22.000Z
test/programytest/dynamic/maps/test_roman.py
whackur/chatbot
bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7
[ "MIT" ]
4
2018-06-29T23:50:44.000Z
2020-11-05T08:13:47.000Z
import unittest from programy.dynamic.maps.roman import MapDecimalToRoman from programy.dynamic.maps.roman import MapRomanToDecimal from programy.context import ClientContext from programytest.aiml_tests.client import TestClient class IsRomanNumeralDynamicSetTests(unittest.TestCase): def setUp(self): s...
35.307692
78
0.742919
4046ef9c60383123886aa26149618076cba5dc13
3,055
py
Python
Exec/IsentropicVortex/check_stationary_vortex_rmse.py
asalmgren/ERF
b3112b709dbc1febde0b224ea26d2ce10ff73d25
[ "BSD-3-Clause-LBNL" ]
3
2020-11-05T19:41:55.000Z
2021-04-23T01:00:17.000Z
Exec/IsentropicVortex/check_stationary_vortex_rmse.py
asalmgren/ERF
b3112b709dbc1febde0b224ea26d2ce10ff73d25
[ "BSD-3-Clause-LBNL" ]
98
2021-02-03T21:55:22.000Z
2022-03-31T05:14:42.000Z
Exec/IsentropicVortex/check_stationary_vortex_rmse.py
asalmgren/ERF
b3112b709dbc1febde0b224ea26d2ce10ff73d25
[ "BSD-3-Clause-LBNL" ]
12
2020-11-02T04:55:38.000Z
2021-11-12T22:42:57.000Z
#!/usr/bin/env python import sys import os import glob import numpy as np import pandas as pd import matplotlib.pyplot as plt import yt from isentropic_vortex_helpers import read_input, IsentropicVortex try: results_dir = sys.argv[1] except IndexError: results_dir = '.' prob_parm = read_input(os.path.join(res...
31.822917
94
0.655646
c080558251e4b1faabf379f6d1822fe1ee395995
253
py
Python
apps/cobl/fabfile.py
Bibiko/appconfig
356f8be5df2750dcc2faebe65adae17e550a3afe
[ "Apache-2.0" ]
null
null
null
apps/cobl/fabfile.py
Bibiko/appconfig
356f8be5df2750dcc2faebe65adae17e550a3afe
[ "Apache-2.0" ]
null
null
null
apps/cobl/fabfile.py
Bibiko/appconfig
356f8be5df2750dcc2faebe65adae17e550a3afe
[ "Apache-2.0" ]
null
null
null
from appconfig.tasks import * init() @task_app_from_environment def shutdown(app): stop.execute_inner(app, maintenance_hours=None) upload_db_to_cdstar(app) @task_app_from_environment def backup_to_cdstar(app): upload_db_to_cdstar(app)
15.8125
51
0.786561
f81e1d4b088707947841821392adc6e19240964e
2,016
py
Python
tests/test_resize_with_pad_or_crop.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
3
2020-06-22T20:59:14.000Z
2021-04-09T21:24:45.000Z
tests/test_resize_with_pad_or_crop.py
scf819/MONAI
2fef7ff5c064a9ff6b6d6b4f2323180afed99934
[ "Apache-2.0" ]
null
null
null
tests/test_resize_with_pad_or_crop.py
scf819/MONAI
2fef7ff5c064a9ff6b6d6b4f2323180afed99934
[ "Apache-2.0" ]
1
2020-05-27T12:53:58.000Z
2020-05-27T12:53:58.000Z
# Copyright (c) MONAI Consortium # 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, so...
39.529412
96
0.643353
91ac5b9d87db82e810a2e4ce9ad04aaf27aa851f
491
py
Python
tests/utils/test_mixins.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
1,410
2015-01-02T14:55:07.000Z
2022-03-28T17:22:06.000Z
tests/utils/test_mixins.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
194
2015-01-22T06:18:24.000Z
2020-10-20T21:21:58.000Z
tests/utils/test_mixins.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
168
2015-01-31T10:29:55.000Z
2022-03-14T10:22:24.000Z
import unittest class TestMixins(unittest.TestCase): def testLocal(self): from pulsar.utils.structures import AttributeDictionary from pulsar.utils.log import LocalMixin elem = LocalMixin() el = elem.local self.assertTrue(isinstance(el, AttributeDictionary)) self.a...
30.6875
63
0.682281
5351b6745cce4c8e3b1579c5a56e7374f31d73f1
1,168
py
Python
glottolog3/commands/mark_new_languages.py
clld/glottolog3
65d75c75bb9687482299408cf66fdbdec2901930
[ "MIT" ]
72
2015-04-18T09:01:22.000Z
2022-03-29T11:15:18.000Z
glottolog3/commands/mark_new_languages.py
AmsterdamnoordBuurtbuddyCie-ABC/glottolog3
f3a431622446603b31f63316550e82be9bf95221
[ "MIT" ]
94
2015-01-05T11:58:38.000Z
2022-02-18T16:39:55.000Z
glottolog3/commands/mark_new_languages.py
AmsterdamnoordBuurtbuddyCie-ABC/glottolog3
f3a431622446603b31f63316550e82be9bf95221
[ "MIT" ]
18
2015-12-06T21:59:03.000Z
2021-03-13T15:52:17.000Z
""" Change modification date of newly added languoids """ from datetime import datetime from sqlalchemy import create_engine from clldutils.apilib import assert_release from glottolog3.cli_util import get_releases def register(parser): # pragma: no cover parser.add_argument('--previous', help='previous version...
34.352941
101
0.677226
755ba6091663766105571c01a4acbc7368f1e6ba
4,322
py
Python
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/mypyc/transform/exceptions.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
1
2021-05-28T20:28:33.000Z
2021-05-28T20:28:33.000Z
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/mypyc/transform/exceptions.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
36
2020-07-27T23:26:53.000Z
2021-08-02T23:22:37.000Z
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/mypyc/transform/exceptions.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
1
2020-12-22T10:18:11.000Z
2020-12-22T10:18:11.000Z
"""Transform that inserts error checks after opcodes. When initially building the IR, the code doesn't perform error checks for exceptions. This module is used to insert all required error checks afterwards. Each Op describes how it indicates an error condition (if at all). We need to split basic blocks on each error...
38.589286
93
0.585146
45e392ffb7c9657b7094b759f9e764a138a8e666
17,440
py
Python
youtube_dl_gui/downloaders.py
ShalmonAnandas/youtube-dl-gui
5d520af71f74cd43e9517a7f7d4bd0fa32cdb81c
[ "Unlicense" ]
null
null
null
youtube_dl_gui/downloaders.py
ShalmonAnandas/youtube-dl-gui
5d520af71f74cd43e9517a7f7d4bd0fa32cdb81c
[ "Unlicense" ]
null
null
null
youtube_dl_gui/downloaders.py
ShalmonAnandas/youtube-dl-gui
5d520af71f74cd43e9517a7f7d4bd0fa32cdb81c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """Python module to download videos. This module contains the actual downloaders responsible for downloading the video files. """ import os import signal import subprocess from pathlib import Path from queue import Queue from threading import Thread from time import sleep from typing import...
34.466403
93
0.595011
e6cb98ef443bc6b792c6f19b20921463907acd25
3,246
py
Python
homepage/portfolio/admin.py
FabianVolkers/portfolio
b5008818b6ca7b2b10c587e2beab4265157bc694
[ "MIT" ]
null
null
null
homepage/portfolio/admin.py
FabianVolkers/portfolio
b5008818b6ca7b2b10c587e2beab4265157bc694
[ "MIT" ]
7
2021-03-30T13:55:39.000Z
2022-01-13T03:01:58.000Z
homepage/portfolio/admin.py
FabianVolkers/homepage
b5008818b6ca7b2b10c587e2beab4265157bc694
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib import admin from .forms import * from .models import * class SlugAdmin(admin.ModelAdmin): prepopulated_fiels = { "slug": ("name",) } class IconAdmin(admin.ModelAdmin): model = Icon form = IconForm class NavLinkInline(admin.TabularInlin...
22.541667
136
0.727357
d4f5cb6b81d2730d8b5f6962a3490e05e0fcbdc2
17,938
py
Python
rrl/models.py
winston-zillow/rrl
9ddf68abf1a12d79ca98bd5ee4c67daa97e4d69c
[ "MIT" ]
null
null
null
rrl/models.py
winston-zillow/rrl
9ddf68abf1a12d79ca98bd5ee4c67daa97e4d69c
[ "MIT" ]
null
null
null
rrl/models.py
winston-zillow/rrl
9ddf68abf1a12d79ca98bd5ee4c67daa97e4d69c
[ "MIT" ]
null
null
null
import sys import logging import numpy as np import torch import torch.nn as nn from torch.utils.data import DataLoader, TensorDataset from sklearn import metrics from collections import defaultdict from rrl.components import BinarizeLayer from rrl.components import UnionLayer, LRLayer TEST_CNT_MOD = 500 class MLLP...
47.834667
120
0.571357
f3d95bf55ad326b163670b60f0d45cf740b915ed
151,001
py
Python
datalad/support/annexrepo.py
ujjwalsh/datalad
3f1b12703b7da03654e468f2f7f51204c409a7e9
[ "MIT" ]
null
null
null
datalad/support/annexrepo.py
ujjwalsh/datalad
3f1b12703b7da03654e468f2f7f51204c409a7e9
[ "MIT" ]
null
null
null
datalad/support/annexrepo.py
ujjwalsh/datalad
3f1b12703b7da03654e468f2f7f51204c409a7e9
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
38.978059
167
0.558745
385ea7e287d0116f0a17d38d57535f1f2517b5e2
2,196
py
Python
rules.py
IvanBrasilico/alfbot2
6a7d12b63ad865e4e8d93f7c9280712633516543
[ "MIT" ]
null
null
null
rules.py
IvanBrasilico/alfbot2
6a7d12b63ad865e4e8d93f7c9280712633516543
[ "MIT" ]
1
2021-06-01T21:48:09.000Z
2021-06-01T21:48:09.000Z
rules.py
IvanBrasilico/alfbot2
6a7d12b63ad865e4e8d93f7c9280712633516543
[ "MIT" ]
null
null
null
'''Place your configs here. No need to code if dicttlak supports your needs. DRY principle. Just cloning bdicttalk and puting rules here can make a new application''' import json import os import botteryext.bdicttalk.localizations URL_APP = 'http://localhost:5000' URL = 'http://brasilico.pythonanywhere.com/' ...
42.230769
78
0.38388
e9d6336eae2b98e731049154f6abc8f55315cee8
3,077
py
Python
ORIGINAL Y FUNCIONAL, TOMA JSON.py
jhofeloto/situr
3be65aa59a51621cffff971145e449ce6868898b
[ "Apache-2.0" ]
null
null
null
ORIGINAL Y FUNCIONAL, TOMA JSON.py
jhofeloto/situr
3be65aa59a51621cffff971145e449ce6868898b
[ "Apache-2.0" ]
null
null
null
ORIGINAL Y FUNCIONAL, TOMA JSON.py
jhofeloto/situr
3be65aa59a51621cffff971145e449ce6868898b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from future.standard_library import install_aliases install_aliases() from urllib.parse import urlparse, urlencode from urllib.request import urlopen, Request from urllib.error import HTTPError import json import os from flask import Flask from flask impor...
26.991228
177
0.642834
d0d9933101cd98548020f7aa597fce0020365a93
89
py
Python
aula1/hello_word.py
PFadel/python-for-dummies
cddfdd8e500b945d33fa21047f6c2ffacae8acf4
[ "MIT" ]
null
null
null
aula1/hello_word.py
PFadel/python-for-dummies
cddfdd8e500b945d33fa21047f6c2ffacae8acf4
[ "MIT" ]
null
null
null
aula1/hello_word.py
PFadel/python-for-dummies
cddfdd8e500b945d33fa21047f6c2ffacae8acf4
[ "MIT" ]
null
null
null
# 'print' exibe na tela o texto que for colocado entre os parênteses print("olá mundo!")
29.666667
68
0.741573
52a94eabbd963b135992b42185a4603ea9beede2
9,936
py
Python
py/perspective_analysis.py
bptripp/grasp-conv
738b5fed1145e223b50eef45d30948aa21f64d7f
[ "MIT" ]
null
null
null
py/perspective_analysis.py
bptripp/grasp-conv
738b5fed1145e223b50eef45d30948aa21f64d7f
[ "MIT" ]
null
null
null
py/perspective_analysis.py
bptripp/grasp-conv
738b5fed1145e223b50eef45d30948aa21f64d7f
[ "MIT" ]
1
2018-02-27T07:07:37.000Z
2018-02-27T07:07:37.000Z
__author__ = 'bptripp' from os.path import join import cPickle import matplotlib.pyplot as plt import scipy.misc import numpy as np from perspective import get_rotation_matrix, get_random_points def plot_correct_point_scatter(): n_points = 200 with open('../data/neuron-points.pkl', 'rb') as f: neuron...
31.744409
100
0.61413
2d6ea70a5b0763199e4954e470389030a5f2c662
1,716
py
Python
src/config/common/discovery.py
sysbot/contrail-controller
893de3e41aa7b8e40092fba4a5da34284f5ee00f
[ "Apache-2.0" ]
1
2015-11-08T07:28:10.000Z
2015-11-08T07:28:10.000Z
src/config/common/discovery.py
sysbot/contrail-controller
893de3e41aa7b8e40092fba4a5da34284f5ee00f
[ "Apache-2.0" ]
null
null
null
src/config/common/discovery.py
sysbot/contrail-controller
893de3e41aa7b8e40092fba4a5da34284f5ee00f
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # import re import gevent import kazoo.client import kazoo.exceptions import kazoo.handlers.gevent class DiscoveryService(object): def __init__(self, server, port): self._zk_client = \ kazoo.client.KazooClient( ...
29.586207
77
0.582751
bf0606b1214c9f75b4cf9bed68528dd985e2a875
22,555
py
Python
quarkc/reflection.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
112
2015-10-02T19:51:51.000Z
2022-03-07T06:29:44.000Z
quarkc/reflection.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
181
2015-10-01T20:23:38.000Z
2016-12-07T17:21:26.000Z
quarkc/reflection.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
31
2015-10-13T22:10:00.000Z
2020-08-03T02:50:12.000Z
# Copyright 2015 datawire. 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 applicable law or agr...
44.930279
135
0.522589
5cb77b12e613949e47997652a46bcc8210ca3cf2
11,623
py
Python
airbyte-integrations/connectors/source-gitlab/source_gitlab/streams.py
koji-m/airbyte
ac2d3073a26d903e342d7fc0d4290b9ec64fc193
[ "MIT" ]
1
2021-11-04T07:55:40.000Z
2021-11-04T07:55:40.000Z
airbyte-integrations/connectors/source-gitlab/source_gitlab/streams.py
Outoftheblue-ai/airbyte
98b18fd852ec70dafe02fb3ffe45b1ac30345cd0
[ "MIT" ]
1
2021-11-01T10:44:54.000Z
2021-11-01T10:47:42.000Z
airbyte-integrations/connectors/source-gitlab/source_gitlab/streams.py
Outoftheblue-ai/airbyte
98b18fd852ec70dafe02fb3ffe45b1ac30345cd0
[ "MIT" ]
null
null
null
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import tempfile from abc import ABC from typing import Any, Dict, Iterable, List, Mapping, MutableMapping, Optional import pendulum import requests import vcr from airbyte_cdk.models import SyncMode from airbyte_cdk.sources.streams.http import HttpStream ...
35.009036
135
0.673234
cac82de425c3f9175b5a3972310926e2cca5ec20
926
py
Python
2016/d01/d01.py
KristobalJunta/aoc2018
804f396635316ec40c44b44a89f400b639347566
[ "WTFPL" ]
1
2018-12-04T23:51:59.000Z
2018-12-04T23:51:59.000Z
2016/d01/d01.py
KristobalJunta/aoc2018
804f396635316ec40c44b44a89f400b639347566
[ "WTFPL" ]
null
null
null
2016/d01/d01.py
KristobalJunta/aoc2018
804f396635316ec40c44b44a89f400b639347566
[ "WTFPL" ]
null
null
null
import math def get_input(): with open('test.txt') as f: data = f.read() data = data.strip().split(',') data = [s.strip() for s in data] return data def vec_add(v1, v2): x1, y1 = v1 x2, y2 = v2 return [x1 + x2, y1 + y2] def manh_dist(v1, v2): x1, y1 = v1 x2, y2 = v2 ...
17.471698
43
0.478402
af728fff32adabd4d3b213b32362d08618589592
11,540
py
Python
permission_sdk/model/cmdb/import_result_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
permission_sdk/model/cmdb/import_result_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
permission_sdk/model/cmdb/import_result_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: import_result.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protob...
48.691983
1,156
0.75234
7e5b6d276f9d6bc8105e04eba0f4d89e5f931ba2
1,742
py
Python
extern/skia.py
0lru/p3ui
162c6c68f4a55ec109a593c8ced66a62520b5602
[ "MIT" ]
21
2021-07-22T21:33:01.000Z
2022-02-12T15:17:46.000Z
extern/skia.py
0lru/p3ui
162c6c68f4a55ec109a593c8ced66a62520b5602
[ "MIT" ]
3
2021-07-26T19:00:39.000Z
2021-12-12T09:29:09.000Z
extern/skia.py
0lru/p3ui
162c6c68f4a55ec109a593c8ced66a62520b5602
[ "MIT" ]
2
2021-07-23T04:57:21.000Z
2021-12-15T22:51:45.000Z
import json import platform import shutil import urllib.request from pathlib import Path from zipfile import ZipFile from io import BytesIO version = '0.4' output_path = 'skia/' output_path = Path(__file__).parent.joinpath(output_path) if output_path.is_dir(): print('skipping skia download') exit(0) class R...
31.107143
97
0.726177
278ea7aa6a9b86326b5848dac80708ca45f581b3
386
py
Python
HackerRank Solutions/Mathematics/Algebra/Number Groups/Number Groups.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
null
null
null
HackerRank Solutions/Mathematics/Algebra/Number Groups/Number Groups.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
null
null
null
HackerRank Solutions/Mathematics/Algebra/Number Groups/Number Groups.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the sumOfGroup function below. def sumOfGroup(k): # Return the sum of the elements of the k'th group. return k**3 if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') k = int(input()) answer = su...
16.782609
55
0.65285
d7a0b4deac4e91bed2a2f1fc46ed8749644b2fb2
14,918
py
Python
code/poly/train.py
urkax/CollageNet
337098b40afbf0b3c8514f80a9953a797988938d
[ "MIT" ]
10
2021-07-12T14:32:16.000Z
2021-12-10T09:11:30.000Z
code/poly/train.py
urkax/CollageNet
337098b40afbf0b3c8514f80a9953a797988938d
[ "MIT" ]
null
null
null
code/poly/train.py
urkax/CollageNet
337098b40afbf0b3c8514f80a9953a797988938d
[ "MIT" ]
3
2021-11-16T12:54:19.000Z
2022-01-07T13:52:26.000Z
import os import sys import json import time import torch from torch import nn from torch.distributions import Normal from torch.optim.lr_scheduler import ExponentialLR from torch import optim from torch.utils.data import DataLoader from tensorboardX import SummaryWriter from torch.cuda.amp import GradScaler p = os.pa...
46.329193
252
0.63467
a2acb57a7fee278b0a1234a2a5d563cd9931a3ca
476
py
Python
exercises/de/test_01_09.py
rschmaelzle/rs103
a76a919e276735d932118ab06eeeace98bb1e694
[ "MIT" ]
null
null
null
exercises/de/test_01_09.py
rschmaelzle/rs103
a76a919e276735d932118ab06eeeace98bb1e694
[ "MIT" ]
null
null
null
exercises/de/test_01_09.py
rschmaelzle/rs103
a76a919e276735d932118ab06eeeace98bb1e694
[ "MIT" ]
1
2020-06-08T13:26:06.000Z
2020-06-08T13:26:06.000Z
def test(): assert "for ent in doc.ents" in __solution__, "Iterierst du über die Entitäten?" assert iphone_se.text == "iPhone SE", "Bist du dir sicher, dass iphone_se die richtigen Tokens erfasst?" __msg__.good( "Super! Natürlich musst du das hier nicht immer von Hand machen. In der " "näch...
47.6
108
0.701681
ae93c3717b64d8ba6a572887f9b8bbe4aeca3b94
1,048
py
Python
CalculoVP/ValorPresente.py
HarryZX/PythonEIngenieriaEconomica
eaa99217366e02561c2f2fd8df69d45cc591f113
[ "MIT" ]
null
null
null
CalculoVP/ValorPresente.py
HarryZX/PythonEIngenieriaEconomica
eaa99217366e02561c2f2fd8df69d45cc591f113
[ "MIT" ]
null
null
null
CalculoVP/ValorPresente.py
HarryZX/PythonEIngenieriaEconomica
eaa99217366e02561c2f2fd8df69d45cc591f113
[ "MIT" ]
null
null
null
def valorPresenteInSimp(): vFuturo = input('Ingrese la cantidad del valor futuro: ') interes = input('Ingrese la tasa de interes en decimal: ') periodo = input('Ingrese el periodo o tiempo: ') vPresente = vFuturo / (1 + interes * periodo) print("El valor presente es: ", vPresente) def valorPr...
34.933333
64
0.57729
efe26c612de1faedccc65ab728acd9d2b47869f3
3,858
py
Python
2021/10_SyntaxScoring/test_line.py
deanearlwright/AdventOfCode
ca4cf6315c0efa38bd7748fb6f4bc99e7934871d
[ "MIT" ]
1
2021-01-03T23:09:28.000Z
2021-01-03T23:09:28.000Z
2021/10_SyntaxScoring/test_line.py
deanearlwright/AdventOfCode
ca4cf6315c0efa38bd7748fb6f4bc99e7934871d
[ "MIT" ]
6
2020-12-26T21:02:42.000Z
2020-12-26T21:02:52.000Z
2021/10_SyntaxScoring/test_line.py
deanearlwright/AdventOfCode
ca4cf6315c0efa38bd7748fb6f4bc99e7934871d
[ "MIT" ]
null
null
null
# ====================================================================== # Syntax Scoring # Advent of Code 2021 Day 10 -- Eric Wastl -- https://adventofcode.com # # Python implementation by Dr. Dean Earl Wright III # ====================================================================== # ===========================...
44.860465
98
0.379471
2898a07c990822344657e94585dcd6b393292ea5
1,299
py
Python
src/myrtlespeech/run/callbacks/stop_epoch_after.py
SerailHydra/myrtlespeech
7dc6930d1d2dacefcb304d41f3de2eaf4b5207ff
[ "BSD-3-Clause" ]
11
2019-10-24T05:24:38.000Z
2020-08-13T15:05:29.000Z
src/myrtlespeech/run/callbacks/stop_epoch_after.py
SerailHydra/myrtlespeech
7dc6930d1d2dacefcb304d41f3de2eaf4b5207ff
[ "BSD-3-Clause" ]
20
2019-10-17T16:20:35.000Z
2021-03-15T10:49:04.000Z
src/myrtlespeech/run/callbacks/stop_epoch_after.py
SerailHydra/myrtlespeech
7dc6930d1d2dacefcb304d41f3de2eaf4b5207ff
[ "BSD-3-Clause" ]
1
2019-11-04T18:38:27.000Z
2019-11-04T18:38:27.000Z
from typing import Dict from typing import Optional from myrtlespeech.run.callbacks.callback import Callback class StopEpochAfter(Callback): """Stops an epoch after ``epoch_batches`` have been processed. This is a small class for convenience. Example: >>> # imports >>> from myrtlespeech...
30.928571
79
0.605851
575a21c4b5c21e43dee379b4380d7e8055943cbb
19,380
py
Python
hydrus/client/gui/ClientGUIMPV.py
thatfuckingbird/hydrus
7af404c1ac4a6e9598b4f60d2ef7ee08601a4b56
[ "WTFPL" ]
null
null
null
hydrus/client/gui/ClientGUIMPV.py
thatfuckingbird/hydrus
7af404c1ac4a6e9598b4f60d2ef7ee08601a4b56
[ "WTFPL" ]
null
null
null
hydrus/client/gui/ClientGUIMPV.py
thatfuckingbird/hydrus
7af404c1ac4a6e9598b4f60d2ef7ee08601a4b56
[ "WTFPL" ]
null
null
null
import locale import os import traceback from qtpy import QtCore as QC from qtpy import QtWidgets as QW from hydrus.core import HydrusConstants as HC from hydrus.core import HydrusData from hydrus.core import HydrusGlobals as HG from hydrus.core import HydrusImageHandling from hydrus.core import HydrusPaths from hyd...
32.139303
205
0.550619
46a2bdd6c9b9703fef127118514e680acfa449ce
1,889
py
Python
plane_main.py
liyijiadou2020/EasyQQ
e727f0347ed2adb3f4f3525f24b995d41b6859ad
[ "Apache-2.0" ]
null
null
null
plane_main.py
liyijiadou2020/EasyQQ
e727f0347ed2adb3f4f3525f24b995d41b6859ad
[ "Apache-2.0" ]
null
null
null
plane_main.py
liyijiadou2020/EasyQQ
e727f0347ed2adb3f4f3525f24b995d41b6859ad
[ "Apache-2.0" ]
null
null
null
""" 游戏主程序 1. 封装 主游戏类 2. 创建 游戏对象 3. 启动游戏 """ import sys import pygame import background # 常量区 WIDTH = 480 HEIGHT = 700 SCREEN_RECT = pygame.Rect(0, 0, WIDTH, HEIGHT) FRAME_PER_SEC = 60 # 每秒刷新帧率 class PlaneGame: """ 用于配置及初始化游戏内容 """ def __init__(self): """ 初始化 """ print("游戏初始化...")...
19.677083
65
0.536263
8b239f984195a26a37a8439f251e555461d881c9
2,095
py
Python
venv/lib/python3.7/site-packages/AccessControl/metaconfigure.py
leanhvu86/matrix-server
6e16fc53dfebaeaf222ff5a371ccffcc65de3818
[ "Apache-2.0" ]
10
2015-03-30T08:39:50.000Z
2022-02-28T21:57:51.000Z
venv/lib/python3.7/site-packages/AccessControl/metaconfigure.py
leanhvu86/matrix-server
6e16fc53dfebaeaf222ff5a371ccffcc65de3818
[ "Apache-2.0" ]
79
2015-06-18T20:21:46.000Z
2022-03-29T06:33:00.000Z
venv/lib/python3.7/site-packages/AccessControl/metaconfigure.py
leanhvu86/matrix-server
6e16fc53dfebaeaf222ff5a371ccffcc65de3818
[ "Apache-2.0" ]
14
2015-03-30T08:40:00.000Z
2022-02-09T00:48:51.000Z
############################################################################## # # Copyright (c) 2004, 2005 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
33.790323
78
0.595227
6104d426a30c16810dd1047c82d8460e4c85b89e
590
py
Python
flexudy_language_detector/language_detector.py
flexudy/flexudy-open-language-detector
bf4a849586731a733f06b93e9b4b45c7711eea36
[ "Apache-2.0" ]
1
2022-01-31T14:26:22.000Z
2022-01-31T14:26:22.000Z
flexudy_language_detector/language_detector.py
flexudy/flexudy-open-language-detector
bf4a849586731a733f06b93e9b4b45c7711eea36
[ "Apache-2.0" ]
null
null
null
flexudy_language_detector/language_detector.py
flexudy/flexudy-open-language-detector
bf4a849586731a733f06b93e9b4b45c7711eea36
[ "Apache-2.0" ]
1
2021-12-14T01:09:33.000Z
2021-12-14T01:09:33.000Z
from flexudy_language_detector.language_detector_service.language_service import LanguageService import logging logger = logging.getLogger(__name__) class LanguageDetector: def __init__(self, language_service: LanguageService): self.__language_service = language_service def get_language(self, text:...
23.6
96
0.722034
8ffbcafa02ec9897a8df683d8925238684ac54ae
2,704
py
Python
products/views.py
marcomoreschi/Milestone-4
0fe5c9b9621f3642ec33c24e4ecd916233300a08
[ "BSD-Source-Code" ]
null
null
null
products/views.py
marcomoreschi/Milestone-4
0fe5c9b9621f3642ec33c24e4ecd916233300a08
[ "BSD-Source-Code" ]
7
2021-03-30T14:17:14.000Z
2022-01-13T03:17:18.000Z
products/views.py
marcomoreschi/Milestone-4
0fe5c9b9621f3642ec33c24e4ecd916233300a08
[ "BSD-Source-Code" ]
1
2020-10-06T15:32:10.000Z
2020-10-06T15:32:10.000Z
from django.shortcuts import render, redirect, reverse, get_object_or_404 from django.contrib import messages from django.db.models import Q from .models import Product, Category, Review from django.db.models.functions import Lower # Create your views here. def all_products(request): """ A view to show all produ...
31.44186
101
0.615754
741de514122b0fdf4d53cfe8b8c99d7bf983e32f
3,888
py
Python
aries_cloudagent/storage/vc_holder/base.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/storage/vc_holder/base.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
8
2021-07-27T01:13:56.000Z
2022-03-15T01:12:40.000Z
aries_cloudagent/storage/vc_holder/base.py
rbeltranmontijo/aries-python
77f6e0dd2f98cb70c2a17a1c72b729f0766f8f61
[ "Apache-2.0" ]
1
2022-02-02T17:05:27.000Z
2022-02-02T17:05:27.000Z
"""Abstract interfaces for VC holder implementations.""" from abc import ABC, abstractmethod from typing import Mapping, Sequence from .vc_record import VCRecord class VCHolder(ABC): """Abstract base class for a verifiable credential holder.""" @abstractmethod async def store_credential(self, cred: VCR...
28.173913
81
0.61034
66efb18d12f5212f06ff808d11b0dd185c4cbb38
15,016
py
Python
detectron2/config/lazy.py
stepp1/detectron2
2a931593601f6b22eba62bff54009759ca42b95a
[ "Apache-2.0" ]
null
null
null
detectron2/config/lazy.py
stepp1/detectron2
2a931593601f6b22eba62bff54009759ca42b95a
[ "Apache-2.0" ]
null
null
null
detectron2/config/lazy.py
stepp1/detectron2
2a931593601f6b22eba62bff54009759ca42b95a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import ast import builtins import importlib import inspect import logging import os import uuid from collections import abc from contextlib import contextmanager from copy import deepcopy from typing import List, Tuple, Union import cloudpickle import yaml from omegaco...
37.260546
97
0.580781
abb7aa3cb20d5cb69f461a9c136fae3e6b26bc47
3,807
py
Python
src/twitter_nlp/hbc/python/NBC.py
LPorcaro/music_ner
af8cf9cc4552eed796d24eb25a1bd453c6eca350
[ "Apache-2.0" ]
6
2019-04-02T02:03:14.000Z
2021-09-15T00:48:15.000Z
src/twitter_nlp/hbc/python/NBC.py
MTG/music-ner
98b8b3bcd15a304337dd11dc085453aee78c112a
[ "Apache-2.0" ]
null
null
null
src/twitter_nlp/hbc/python/NBC.py
MTG/music-ner
98b8b3bcd15a304337dd11dc085453aee78c112a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python ###################################################################################### # Assumes all topics in a (test) entity in context # are drawn from the same hidden topic. Basically becomes naive bayes. ###################################################################################### imp...
28.62406
129
0.561072
6a993e3a6f2f057c005ad70569e7e1b35c3f39de
1,943
py
Python
chapter01/question_08.py
olcostafilipe/cracking_the_coding
1103409267ccfdc6887938107d6363046a5c7175
[ "MIT" ]
null
null
null
chapter01/question_08.py
olcostafilipe/cracking_the_coding
1103409267ccfdc6887938107d6363046a5c7175
[ "MIT" ]
null
null
null
chapter01/question_08.py
olcostafilipe/cracking_the_coding
1103409267ccfdc6887938107d6363046a5c7175
[ "MIT" ]
null
null
null
""" Question 08: Zero matrix Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column are set to 0 """ import numpy as np # just for visualization def zero_matrix(matrix: list) -> list: rows_to_zero = [] cols_to_zero = [] # First pass: check rows and cols indexes t...
27.366197
80
0.423057
0adadb3ac8a7c60b0f909642c8bd6220cb84e01d
1,057
py
Python
eng/views.py
almazkun/goldenroofdotorg
a4f0238d293ae4671c09f087d902e5e0d0d1f397
[ "Apache-2.0" ]
null
null
null
eng/views.py
almazkun/goldenroofdotorg
a4f0238d293ae4671c09f087d902e5e0d0d1f397
[ "Apache-2.0" ]
9
2020-06-06T00:07:59.000Z
2022-01-13T01:50:49.000Z
eng/views.py
almazkun/goldenroofdotorg
a4f0238d293ae4671c09f087d902e5e0d0d1f397
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.views import generic from .models import Keyword, Category, Article from .utils import send_email, save_email import markdown def homepage_view(request): if "email_request" in request.POST: email_request = request.POST["email_request"] save_email(e...
25.780488
72
0.684957
4bdabf289a88eb4f6595f23401d906db40b2590e
33,738
py
Python
sdk/agrifood/azure-agrifood-farming/azure/agrifood/farming/aio/operations/_fields_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/agrifood/azure-agrifood-farming/azure/agrifood/farming/aio/operations/_fields_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/agrifood/azure-agrifood-farming/azure/agrifood/farming/aio/operations/_fields_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.355224
176
0.648497
9422c994fe841270d930db061dfdcae9d29efb6a
3,230
py
Python
kaolin/graphics/dib_renderer/renderer/vcrender.py
xiangdonglai/kaolin
b1d0e2c7ff3d1e30a9f6c7e7e5d8c1ceb43c0f38
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kaolin/graphics/dib_renderer/renderer/vcrender.py
xiangdonglai/kaolin
b1d0e2c7ff3d1e30a9f6c7e7e5d8c1ceb43c0f38
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kaolin/graphics/dib_renderer/renderer/vcrender.py
xiangdonglai/kaolin
b1d0e2c7ff3d1e30a9f6c7e7e5d8c1ceb43c0f38
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # 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, mo...
36.704545
76
0.617647
cac342540cdabef7eb22b9e39d1805956fe919a0
168
py
Python
aiovk/__init__.py
typeetfunc/aiovk
869e9a382446c18263e1b6fda45ec723aa42e5c0
[ "MIT" ]
null
null
null
aiovk/__init__.py
typeetfunc/aiovk
869e9a382446c18263e1b6fda45ec723aa42e5c0
[ "MIT" ]
null
null
null
aiovk/__init__.py
typeetfunc/aiovk
869e9a382446c18263e1b6fda45ec723aa42e5c0
[ "MIT" ]
null
null
null
__version__ = '2.2.1' from aiovk.sessions import ImplicitSession, TokenSession, AuthorizationCodeSession from aiovk.api import API from aiovk.longpoll import LongPoll
28
82
0.833333
9801138ac51146a33cd27d79f4ee2efd81583601
18,197
py
Python
datalad/core/local/tests/test_run.py
bpoldrack/datalad
6d871f8e7ce033f5d79a1aee63ab4e2761028ff6
[ "MIT" ]
null
null
null
datalad/core/local/tests/test_run.py
bpoldrack/datalad
6d871f8e7ce033f5d79a1aee63ab4e2761028ff6
[ "MIT" ]
21
2015-03-12T11:48:18.000Z
2020-08-31T09:28:05.000Z
datalad/core/local/tests/test_run.py
bpoldrack/datalad
6d871f8e7ce033f5d79a1aee63ab4e2761028ff6
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-; coding: utf-8 -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license t...
38.471459
209
0.620762
fde354d2ecb4ab3314d90f10d7c35feaa3212fac
7,816
py
Python
client/audio.py
abhishekg785/hiro
950224d07797740b8840316bb412c1827eab46f0
[ "MIT" ]
7
2017-04-12T10:58:42.000Z
2021-10-03T18:07:29.000Z
client/audio.py
abhishekg785/hiro
950224d07797740b8840316bb412c1827eab46f0
[ "MIT" ]
null
null
null
client/audio.py
abhishekg785/hiro
950224d07797740b8840316bb412c1827eab46f0
[ "MIT" ]
5
2017-07-06T12:28:10.000Z
2020-01-07T19:45:25.000Z
""" author : abhishek goswami abhishekg785@gmail.com audio.py module simply handles all the i/o operations related to the audio such as user audio input and output """ import pyaudio # handles the record and play of the audio files import audioop # lib for handling math operations on the audio f...
29.383459
118
0.577277
c968c2356089c90c6e311fbd2394082d90d1f021
7,694
py
Python
calculations/Ga2O3-Graphene/2021-02-19_mobility_min-cond_analysis.py
mattgebert/pylectric-transport
9a89a5337b9a8a3f5bf7bcdf5b6844ed4f06ccba
[ "MIT" ]
1
2021-04-07T08:36:03.000Z
2021-04-07T08:36:03.000Z
calculations/Ga2O3-Graphene/2021-02-19_mobility_min-cond_analysis.py
mattgebert/pylectric-transport
9a89a5337b9a8a3f5bf7bcdf5b6844ed4f06ccba
[ "MIT" ]
null
null
null
calculations/Ga2O3-Graphene/2021-02-19_mobility_min-cond_analysis.py
mattgebert/pylectric-transport
9a89a5337b9a8a3f5bf7bcdf5b6844ed4f06ccba
[ "MIT" ]
null
null
null
%matplotlib inline import os, sys #To import pylectric package locally, specify relative path from cwd to package. PACKAGE_PARENT = 'pylectric-transport' sys.path.append(os.path.normpath(os.path.join(os.getcwd(), PACKAGE_PARENT))) import itertools from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt...
43.468927
225
0.665584
51712c2544cafe9b72e4686ada905a6df515f4f9
7,491
py
Python
akshare/futures/futures_to_spot.py
ghmole/akshare
eeeec96f90c6738bcd9ce92fcfa6b9c9176928a6
[ "MIT" ]
12
2020-12-30T02:50:01.000Z
2021-11-08T11:32:51.000Z
akshare/futures/futures_to_spot.py
ghmole/akshare
eeeec96f90c6738bcd9ce92fcfa6b9c9176928a6
[ "MIT" ]
3
2021-01-26T09:31:43.000Z
2021-12-08T08:31:54.000Z
akshare/futures/futures_to_spot.py
ghmole/akshare
eeeec96f90c6738bcd9ce92fcfa6b9c9176928a6
[ "MIT" ]
13
2020-07-08T08:48:33.000Z
2022-03-23T08:37:11.000Z
# -*- coding:utf-8 -*- # /usr/bin/env python """ Date: 2021/2/2 11:27 Desc: 期货-期转现-交割 """ import requests import pandas as pd def futures_to_spot_shfe(date: str = "202101") -> pd.DataFrame: """ 上海期货交易所-期转现 http://www.shfe.com.cn/statements/dataview.html?paramid=kx 1、铜、铜(BC)、铝、锌、铅、镍、锡、螺纹钢、线材、热轧卷板、天然橡胶、...
28.591603
110
0.611133
443def9b66e867fd169de7cfd34608ddfdcc345e
1,981
py
Python
rb/complexity/word/polysemy.py
Karlydiamond214/readerbenchpy
1a070ae678f58ccd6f358c0802bdf0b3b3dde9d3
[ "Apache-2.0" ]
1
2022-03-05T17:12:55.000Z
2022-03-05T17:12:55.000Z
rb/complexity/word/polysemy.py
rwth-acis/readerbenchpy
1a070ae678f58ccd6f358c0802bdf0b3b3dde9d3
[ "Apache-2.0" ]
null
null
null
rb/complexity/word/polysemy.py
rwth-acis/readerbenchpy
1a070ae678f58ccd6f358c0802bdf0b3b3dde9d3
[ "Apache-2.0" ]
null
null
null
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from rb.similarity...
38.843137
78
0.646138
ffe389f5a4f7d29f64c8f0d448cd455887725a64
1,004
py
Python
test_get_patternDict.py
nate-watson80/BME547Final
1a89f8469bdfdbbd74a7cb79c7a16538092d9460
[ "MIT" ]
2
2019-04-11T00:42:08.000Z
2019-04-29T06:00:36.000Z
test_get_patternDict.py
nate-watson80/BME547Final
1a89f8469bdfdbbd74a7cb79c7a16538092d9460
[ "MIT" ]
46
2019-04-10T18:20:22.000Z
2019-04-29T07:10:11.000Z
test_get_patternDict.py
nate-watson80/BME547Final
1a89f8469bdfdbbd74a7cb79c7a16538092d9460
[ "MIT" ]
1
2019-04-13T15:03:05.000Z
2019-04-13T15:03:05.000Z
import final_server as fs import pytest from pymongo import MongoClient import bson db = fs.db def test_get_patternDict(): data = { "client": "GUI-test", "image": "imageString", "user": "testUser", "img_grp": "testGroup", "batch": "leptin-1", ...
31.375
69
0.445219
775609f9d9466e29182e93f0fac129416ec64eac
58,536
py
Python
onmt/Models.py
AndrewM1998/MultimodalNMT
b66d3a40ac9bc5c11ae124f51d1a9abf7cd6a04b
[ "MIT" ]
12
2019-12-28T12:55:29.000Z
2022-02-10T00:19:41.000Z
onmt/Models.py
AndrewM1998/MultimodalNMT
b66d3a40ac9bc5c11ae124f51d1a9abf7cd6a04b
[ "MIT" ]
2
2019-12-19T10:25:02.000Z
2021-08-12T11:40:46.000Z
onmt/Models.py
AndrewM1998/MultimodalNMT
b66d3a40ac9bc5c11ae124f51d1a9abf7cd6a04b
[ "MIT" ]
null
null
null
from __future__ import division import torch import torch.nn as nn from torch.autograd import Variable from torch.nn.utils.rnn import pack_padded_sequence as pack from torch.nn.utils.rnn import pad_packed_sequence as unpack import onmt from onmt.Utils import aeq import sys class EncoderBase(nn.Module): """ B...
38.308901
90
0.575167
b7595ab1aada4240a3f1c3f5c061f5ed2b4af756
83,783
py
Python
salt/master.py
cmek/salt
bd6b4dc10b06493afb1ac9ac18cf189ba8c282af
[ "Apache-2.0" ]
null
null
null
salt/master.py
cmek/salt
bd6b4dc10b06493afb1ac9ac18cf189ba8c282af
[ "Apache-2.0" ]
null
null
null
salt/master.py
cmek/salt
bd6b4dc10b06493afb1ac9ac18cf189ba8c282af
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' This module contains all of the routines needed to set up a master server, this involves preparing the three listeners and the workers needed by the master. ''' # Import python libs from __future__ import absolute_import, with_statement import copy import ctypes import os import re import s...
37.996825
122
0.562417
925edb620d709c20c1fba8fc608924a46bc43027
1,339
py
Python
helpseeker_tsx/TSX_preprocessing.py
BYZ007/helpseeker_tsx_nbdev
de6f69891b76093a6ed74249f50ab4d461b598fc
[ "Apache-2.0" ]
null
null
null
helpseeker_tsx/TSX_preprocessing.py
BYZ007/helpseeker_tsx_nbdev
de6f69891b76093a6ed74249f50ab4d461b598fc
[ "Apache-2.0" ]
null
null
null
helpseeker_tsx/TSX_preprocessing.py
BYZ007/helpseeker_tsx_nbdev
de6f69891b76093a6ed74249f50ab4d461b598fc
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: TSX_preprocessing.ipynb (unless otherwise specified). __all__ = ['create_tsx_features'] # Comes from TSXCore.ipynb, cell import pandas as pd import numpy as np import warnings warnings.filterwarnings("ignore") def _get_tsx_features(data): tsx_features = np.array([(c i...
31.139535
97
0.674384
6c0377fa86c91d4c1696dbb033cce00b6dec3001
2,292
py
Python
auto_repair_saas/apps/utils/models.py
wangonya/auto-repair-saas
b53e7f098baea8c885daf1b3c7bf2cf1a61ab226
[ "Apache-2.0" ]
6
2020-12-24T18:19:25.000Z
2021-09-15T19:19:57.000Z
auto_repair_saas/apps/utils/models.py
wangonya/auto-repair-saas
b53e7f098baea8c885daf1b3c7bf2cf1a61ab226
[ "Apache-2.0" ]
24
2020-12-14T12:32:05.000Z
2021-09-15T19:19:53.000Z
auto_repair_saas/apps/utils/models.py
wangonya/auto-repair-saas
b53e7f098baea8c885daf1b3c7bf2cf1a61ab226
[ "Apache-2.0" ]
3
2020-12-28T03:10:41.000Z
2021-01-06T20:37:24.000Z
from datetime import datetime from django.conf import settings from django.db import models from auto_repair_saas.apps.utils.middleware import \ CurrentUserMiddleware def get_current_user(): return CurrentUserMiddleware.get_current_user() class BaseModel(models.Model): created_at = models.DateTimeFiel...
28.296296
73
0.624782
63042e5a0f0600eb00d6aedeb1a9a655faeda949
7,230
py
Python
scripts/api/send_data_to_galaxy.py
CEGRcode/pegr-ngs_pipeline
8ced7f13a3ff8807402ef23208b69f1355703761
[ "MIT" ]
null
null
null
scripts/api/send_data_to_galaxy.py
CEGRcode/pegr-ngs_pipeline
8ced7f13a3ff8807402ef23208b69f1355703761
[ "MIT" ]
null
null
null
scripts/api/send_data_to_galaxy.py
CEGRcode/pegr-ngs_pipeline
8ced7f13a3ff8807402ef23208b69f1355703761
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This script uses the Galaxy API to create and populate Galaxy data libraries with the data produced by sequencing runs. Extreme care must be taken when creating the contents of the cegr_run_info file as it is parsed and used to create data libraries and populate them with files produced by se...
51.642857
152
0.626556
063d728c50cb2bb4ee5fdb7c27e56399d2d10cba
9,181
py
Python
adversarial-robustness-toolbox/art/preprocessing/audio/l_filter/numpy.py
cleverhans-lab/model-extraction-iclr
805205287876423621baca9d5e990edfe68ea803
[ "MIT" ]
1,350
2020-07-14T08:06:55.000Z
2022-03-31T19:22:25.000Z
adversarial-robustness-toolbox/art/preprocessing/audio/l_filter/numpy.py
cleverhans-lab/model-extraction-iclr
805205287876423621baca9d5e990edfe68ea803
[ "MIT" ]
936
2020-07-14T03:33:00.000Z
2022-03-31T23:05:29.000Z
art/preprocessing/audio/l_filter/numpy.py
keykholt/adversarial-robustness-toolbox
4b2a379f9ca5271f2a496864d2e8ad424886d927
[ "MIT" ]
413
2020-07-16T16:00:16.000Z
2022-03-29T10:31:12.000Z
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2020 # # 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 # r...
44.785366
120
0.652434
d572913b8ac2d90940330f268de2e1f7c3549efd
1,957
py
Python
ptest/cases/ditl_case.py
Pathfinder-for-Pitch-Momentum-Bias/FlightSoftware
7256f52f7c5887af7fc8679b163629d1235fa1bb
[ "MIT" ]
6
2020-02-24T07:46:22.000Z
2021-09-26T22:57:05.000Z
ptest/cases/ditl_case.py
pathfinder-for-autonomous-navigation/FlightSoftware
a3c30b10e2a28d17a2de0180c996bcc5f9ada7c7
[ "MIT" ]
537
2019-05-29T04:31:30.000Z
2022-03-06T17:18:56.000Z
ptest/cases/ditl_case.py
Pathfinder-for-Pitch-Momentum-Bias/FlightSoftware
7256f52f7c5887af7fc8679b163629d1235fa1bb
[ "MIT" ]
5
2020-04-01T17:29:37.000Z
2022-02-25T22:26:14.000Z
"""Day-In-The-Life (DITL) testcase used to check battery health. The original intention here was to run the satellite actuators using realistic actuator commands to see how long the satellite can run on battery power to gain insight into battery health. However, this test has now been standardized to ensure we can co...
38.372549
85
0.698007
c375e87118c10d0ad1fa48497598c25dde47291e
812
py
Python
manage.py
jadielmwangi/Awwards-App
bc0496c65afae0a7f51f0450ae85522544ee91ac
[ "Unlicense" ]
null
null
null
manage.py
jadielmwangi/Awwards-App
bc0496c65afae0a7f51f0450ae85522544ee91ac
[ "Unlicense" ]
2
2021-06-08T21:45:32.000Z
2021-06-10T23:00:38.000Z
manage.py
jadielmwangi/Awwards-App
bc0496c65afae0a7f51f0450ae85522544ee91ac
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "awwardsproject.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure th...
35.304348
78
0.64532