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
bd2b00658135ad8aa66f2bfcbcf0323a23ede4c1
1,415
py
Python
sdk/python/go_build.py
mdrijwan123/feast
eff8747062b1544da95424e53ccc377d97e18e79
[ "Apache-2.0" ]
null
null
null
sdk/python/go_build.py
mdrijwan123/feast
eff8747062b1544da95424e53ccc377d97e18e79
[ "Apache-2.0" ]
null
null
null
sdk/python/go_build.py
mdrijwan123/feast
eff8747062b1544da95424e53ccc377d97e18e79
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Feast Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
37.236842
83
0.695406
2948ac305ce4f8d4e6e34cf3d1ed43360365cc8d
320
py
Python
src/python/pants/version.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
src/python/pants/version.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
src/python/pants/version.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) VERSION = '0.0.44'
32
93
0.728125
69fef71eaf7e12a229423e447bded6cef14da3b8
2,526
py
Python
sanzharsblog/venv/bin/explode.py
DSanzh/the-ultimate-beginners-guide-to-django
2117db3b53334677ea3cf308a94f830cfc223633
[ "MIT" ]
null
null
null
sanzharsblog/venv/bin/explode.py
DSanzh/the-ultimate-beginners-guide-to-django
2117db3b53334677ea3cf308a94f830cfc223633
[ "MIT" ]
null
null
null
sanzharsblog/venv/bin/explode.py
DSanzh/the-ultimate-beginners-guide-to-django
2117db3b53334677ea3cf308a94f830cfc223633
[ "MIT" ]
null
null
null
#!/Users/admin/Desktop/Projects/EDU/the-ultimate-beginners-guide-to-django/sanzharsblog/venv/bin/python3.6 # # The Python Imaging Library # $Id$ # # split an animation into a number of frame files # from __future__ import print_function from PIL import Image import os import sys class Interval(object): def __i...
22.353982
106
0.546318
61581626170003408b9b0e30455ee1775c6fc1c3
372
py
Python
projects/migrations/0009_auto_20200918_1743.py
zanedma/portfolio-site
4ba2bb17906c20c9c22a5bc8271d3854ef97c607
[ "MIT" ]
1
2021-05-21T09:17:58.000Z
2021-05-21T09:17:58.000Z
projects/migrations/0009_auto_20200918_1743.py
zanedma/portfolio-site
4ba2bb17906c20c9c22a5bc8271d3854ef97c607
[ "MIT" ]
null
null
null
projects/migrations/0009_auto_20200918_1743.py
zanedma/portfolio-site
4ba2bb17906c20c9c22a5bc8271d3854ef97c607
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-09-18 17:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0008_auto_20200918_1742'), ] operations = [ migrations.AlterField( model_name='project', name='link', ...
19.578947
48
0.586022
08738ed3e520596a1c58714b04d3788cc529fd11
7,378
py
Python
qe_tools/converters/_structure.py
asle85/qe-tools
359579ee4a88fb6920270de39f49524e9365fda2
[ "MIT" ]
17
2017-11-29T01:59:59.000Z
2022-03-03T18:57:21.000Z
qe_tools/converters/_structure.py
asle85/qe-tools
359579ee4a88fb6920270de39f49524e9365fda2
[ "MIT" ]
36
2017-11-16T11:29:54.000Z
2021-03-12T15:07:39.000Z
qe_tools/converters/_structure.py
asle85/qe-tools
359579ee4a88fb6920270de39f49524e9365fda2
[ "MIT" ]
7
2017-11-25T09:30:50.000Z
2021-03-08T14:15:09.000Z
# -*- coding: utf-8 -*- __all__ = ('get_parameters_from_cell', ) from typing import Iterable, Union, Dict, Optional import numpy as np import scipy.linalg as la from .. import CONSTANTS from ..parsers._input_base import _get_cell_from_parameters CellT = Iterable[Iterable[float]] ParametersT = Dict[str, float] de...
37.835897
101
0.583898
014610eed5a47103f8e021bfab2531a11a870f01
1,360
py
Python
roiCLS/roi_cls_comp_fusion.py
PingjunChen/ThyroidInteractive
31fa2f1b83acd8633862e714bed441cef6061100
[ "MIT" ]
6
2020-12-27T09:41:50.000Z
2022-01-06T15:00:07.000Z
roiCLS/roi_cls_comp_fusion.py
codingPingjun/SuspiciousRegionWSI
91473d842e1a21268440eb330eb146739b556cdc
[ "MIT" ]
3
2021-07-06T07:02:19.000Z
2022-03-11T23:57:35.000Z
roiCLS/roi_cls_comp_fusion.py
codingPingjun/SuspiciousRegionWSI
91473d842e1a21268440eb330eb146739b556cdc
[ "MIT" ]
1
2020-07-23T02:24:49.000Z
2020-07-23T02:24:49.000Z
# -*- coding: utf-8 -*- import os, sys import numpy as np import matplotlib.pyplot as plt if __name__ == "__main__": save_pdf_str = "cls_power_exponent_cmp.pdf" feature_methods = ["vgg16bn", "inceptionv3", "resnet50", "GIST"] fig, axes = plt.subplots(nrows=1, ncols=4, figsize=(18, 4)) cls_methods = ...
37.777778
78
0.580882
69ef064815b8807e3a6aa84e045b37eb7124ebc4
598
py
Python
utils/copy_codebase.py
yigitozgumus/Polimi_Thesis
711c1edcf1fdb92fc6c15bf5ab1be141c13995c3
[ "MIT" ]
3
2019-07-27T14:00:42.000Z
2020-01-17T17:07:51.000Z
utils/copy_codebase.py
yigitozgumus/Polimi_Thesis
711c1edcf1fdb92fc6c15bf5ab1be141c13995c3
[ "MIT" ]
null
null
null
utils/copy_codebase.py
yigitozgumus/Polimi_Thesis
711c1edcf1fdb92fc6c15bf5ab1be141c13995c3
[ "MIT" ]
4
2019-10-22T02:58:26.000Z
2020-10-06T09:59:26.000Z
from shutil import copy def copy_codebase(config): # Get class name model_name = config.model.name.split(".")[0] image_size = config.data_loader.image_size model_src_file = "models/{}/{}.py".format(image_size, model_name) trainer_name = config.trainer.name.split(".")[0] trainer_src_file = "tra...
37.375
69
0.720736
429729e2f4656184448392f4688ce5d1ef566cd9
817
py
Python
django/pdfsync/urls.py
sherylynn/pdf-all
da0ede4e520151261b65a03124d311ce390a4c2a
[ "MIT" ]
4
2019-04-11T07:35:02.000Z
2022-03-31T09:07:19.000Z
django/pdfsync/urls.py
sherylynn/pdf-all
da0ede4e520151261b65a03124d311ce390a4c2a
[ "MIT" ]
1
2022-03-31T09:09:23.000Z
2022-03-31T09:09:23.000Z
django/pdfsync/urls.py
sherylynn/pdf-all
da0ede4e520151261b65a03124d311ce390a4c2a
[ "MIT" ]
null
null
null
"""pdfsync URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
35.521739
78
0.686659
d96764f58582b407b645b567494447f563d37c60
462
py
Python
education_pathways/models/users.py
ECE444-2021Fall/project1-education-pathways-group-11-sigmalab
47ea5268fa374fdbfa707746b7d350a64a8a319b
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
education_pathways/models/users.py
ECE444-2021Fall/project1-education-pathways-group-11-sigmalab
47ea5268fa374fdbfa707746b7d350a64a8a319b
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
education_pathways/models/users.py
ECE444-2021Fall/project1-education-pathways-group-11-sigmalab
47ea5268fa374fdbfa707746b7d350a64a8a319b
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
# from .profiles import ProfileSchema from .. import db class User(db.Model): __searchable__ = ['username'] id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True, nullable=False) password = db.Column(db.String(80), unique=False, nullable=False) default_profile = db.Colu...
38.5
73
0.727273
b7e5e50872c6f57bb80068cc343e9c5f20b35ff2
234
py
Python
testfuncpkg/testfunc.py
td2014/pkg_project
58778613ceb818e09bdd09764fb918dd132edebe
[ "MIT" ]
null
null
null
testfuncpkg/testfunc.py
td2014/pkg_project
58778613ceb818e09bdd09764fb918dd132edebe
[ "MIT" ]
null
null
null
testfuncpkg/testfunc.py
td2014/pkg_project
58778613ceb818e09bdd09764fb918dd132edebe
[ "MIT" ]
null
null
null
# # Test function for pip install in Python 3.X environments # def testfunc_one(): print('Running testfunc_one: Python 3.X function for pip install testing.') return 'Python 3.X test function result' # # End of function #
19.5
80
0.713675
6bc582222f1df11ea7a27d5b57bc0ab37fe7d310
3,110
py
Python
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy147.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy147.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy147.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=9 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from q...
28.272727
82
0.628939
33f65cc60dca7cfa7a1d55069df90307f8b355e9
249
py
Python
SeriesFun.py
poojadhoble32/python-projects
4c094dd0072d4213344e26476e4e99a4a12246e7
[ "bzip2-1.0.6" ]
null
null
null
SeriesFun.py
poojadhoble32/python-projects
4c094dd0072d4213344e26476e4e99a4a12246e7
[ "bzip2-1.0.6" ]
null
null
null
SeriesFun.py
poojadhoble32/python-projects
4c094dd0072d4213344e26476e4e99a4a12246e7
[ "bzip2-1.0.6" ]
null
null
null
import numpy as np import pandas as pd a=pd.Series(data=[1,2,3,np.NaN]) b=pd.Series(data=[4.9,8.2,5.6],index=['x','y','z']) c=pd.Series(data=[1,1,1,9,9,3,None]) def func(d,f): return d + f print(pd.Series.value_counts(c))
24.9
52
0.582329
47ba5760bb171c196ee66aeba4ebf386589deac2
877
py
Python
src/fdk_organization_bff/resources/org_catalogs.py
Informasjonsforvaltning/organization-page-bffe
473dc9606649f864618f4f8bfc4a6a2a035f06d7
[ "Apache-2.0" ]
null
null
null
src/fdk_organization_bff/resources/org_catalogs.py
Informasjonsforvaltning/organization-page-bffe
473dc9606649f864618f4f8bfc4a6a2a035f06d7
[ "Apache-2.0" ]
47
2020-05-14T07:54:48.000Z
2022-03-29T22:17:08.000Z
src/fdk_organization_bff/resources/org_catalogs.py
Informasjonsforvaltning/organization-page-bffe
473dc9606649f864618f4f8bfc4a6a2a035f06d7
[ "Apache-2.0" ]
null
null
null
"""Resource module for specific organization catalog.""" from dataclasses import asdict from aiohttp.web import json_response, Response, View from fdk_organization_bff.classes import FilterEnum from fdk_organization_bff.service.org_catalog_service import get_organization_catalogs from fdk_organization_bff.utils.utils...
38.130435
86
0.758267
20623e0a220409990ca4c45ac6d272e2efb0d3ba
332
py
Python
molssi_devops/__init__.py
ocmadin/molssi_devops
f8a3691dfacf8da67e9ea06e78ab1c77dda1315d
[ "BSD-3-Clause" ]
null
null
null
molssi_devops/__init__.py
ocmadin/molssi_devops
f8a3691dfacf8da67e9ea06e78ab1c77dda1315d
[ "BSD-3-Clause" ]
2
2019-05-13T20:06:50.000Z
2019-05-13T20:29:14.000Z
molssi_devops/__init__.py
ocmadin/molssi_devops
f8a3691dfacf8da67e9ea06e78ab1c77dda1315d
[ "BSD-3-Clause" ]
1
2019-05-13T19:38:27.000Z
2019-05-13T19:38:27.000Z
""" molssi_devops A sample repo for the molssi workshop """ # Add imports here from .molssi_math import canvas from .utils import title_case # Handle versioneer from ._version import get_versions versions = get_versions() __version__ = versions['version'] __git_revision__ = versions['full-revisionid'] del get_version...
20.75
46
0.792169
6e7e10b1937703fa4187465fdc0cd9e7c77efb9a
2,214
py
Python
notepad.py
ArkOfReis/Python-Beginner-Notepad
1806b2c4ccc07170baf78aab5aa962b15c2fe116
[ "MIT" ]
1
2021-02-19T08:27:44.000Z
2021-02-19T08:27:44.000Z
notepad.py
ArkOfReis/Python-Beginner-Notepad
1806b2c4ccc07170baf78aab5aa962b15c2fe116
[ "MIT" ]
null
null
null
notepad.py
ArkOfReis/Python-Beginner-Notepad
1806b2c4ccc07170baf78aab5aa962b15c2fe116
[ "MIT" ]
1
2021-02-19T08:27:46.000Z
2021-02-19T08:27:46.000Z
import PySimpleGUI as sg import pathlib sg.ChangeLookAndFeel('BrownBlue') WIN_W = 90 WIN_H = 25 file = None menu_layout = [['File', ['New (Ctrl+N)', 'Open (Ctrl+O)', 'Save (Ctrl+S)', 'Save As', '---', 'Exit']], ['Tools', ['Word Count']], ['Help', ['About']]] layout = [[sg.Menu(menu_layou...
29.918919
127
0.600723
a4f397c569be8f68595ed54fe2a2d29ca739d19a
87,139
py
Python
parser/fase2/team23/analizer/abstract/expression.py
Gabriel-15/tytus
fb00718bf3fcc5211a3604fba1a551f44bdc6deb
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/fase2/team23/analizer/abstract/expression.py
Gabriel-15/tytus
fb00718bf3fcc5211a3604fba1a551f44bdc6deb
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/fase2/team23/analizer/abstract/expression.py
Gabriel-15/tytus
fb00718bf3fcc5211a3604fba1a551f44bdc6deb
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from abc import abstractmethod from enum import Enum import pandas as pd from datetime import datetime from analizer.functions import MathFunctions as mf from analizer.functions import TrigonometricFunctions as trf from analizer.functions import StringFunctions as strf from analizer.reports import Nodo from analizer.re...
37.398712
151
0.462296
84894779bc90268c356e61aad877a7916276f5f4
2,085
py
Python
make_primer_candidates.py
makki547/PCRPrimeDesigner
b5ac9cfb5b81a1c64ca2490d5f98403bca32d05d
[ "CC0-1.0" ]
1
2022-02-17T14:39:09.000Z
2022-02-17T14:39:09.000Z
make_primer_candidates.py
makki547/PCRPrimeDesigner
b5ac9cfb5b81a1c64ca2490d5f98403bca32d05d
[ "CC0-1.0" ]
null
null
null
make_primer_candidates.py
makki547/PCRPrimeDesigner
b5ac9cfb5b81a1c64ca2490d5f98403bca32d05d
[ "CC0-1.0" ]
null
null
null
import genomics_tools import argparse import pandas as pd def parse_args(): parser = argparse.ArgumentParser(description = 'Make primer candidates from DNA sequence and start position') parser.add_argument('target_sequence_file', type = argparse.FileType('r')) parser.add_argument('position', type = int)...
27.8
113
0.638849
45db633aa6a9b8cf4e506caa42a081804b9e8d32
1,424
py
Python
analyzeapp/forms.py
topdeveloper424/DataAnalyzer-Flask-
94724d77d993617d362a9c0cfc3f6be458089723
[ "BSD-2-Clause" ]
1
2019-05-11T16:34:51.000Z
2019-05-11T16:34:51.000Z
analyzeapp/forms.py
AShark1001/DataAnalyze
2e1e28d4ef3802693617c557d9c573dd4c8cf0e0
[ "BSD-2-Clause" ]
2
2019-07-05T14:59:22.000Z
2019-07-05T15:26:52.000Z
analyzeapp/forms.py
AShark1001/DataAnalyze
2e1e28d4ef3802693617c557d9c573dd4c8cf0e0
[ "BSD-2-Clause" ]
null
null
null
from flask_wtf import Form, FlaskForm from flask_wtf.file import FileField, FileAllowed, FileRequired from wtforms import TextField, PasswordField, FileField, MultipleFileField from wtforms import validators class SelectForm(FlaskForm): data_file = MultipleFileField('Data Files') # FileField('Data Files', va...
28.48
77
0.664326
b07d8660f65b79c0f68ae5f7ce24489636ffabd9
1,174
py
Python
vpv/ui/controllers/log_viewer.py
Dorky-Lever/vpv
0f156b2ad79cbb7060140434e34b5841ab5b1a26
[ "Apache-2.0" ]
2
2016-08-15T22:06:28.000Z
2016-11-15T14:23:37.000Z
vpv/ui/controllers/log_viewer.py
Dorky-Lever/vpv
0f156b2ad79cbb7060140434e34b5841ab5b1a26
[ "Apache-2.0" ]
1
2018-07-30T22:47:37.000Z
2018-07-30T22:47:37.000Z
vpv/ui/controllers/log_viewer.py
Dorky-Lever/vpv
0f156b2ad79cbb7060140434e34b5841ab5b1a26
[ "Apache-2.0" ]
1
2020-08-05T03:54:02.000Z
2020-08-05T03:54:02.000Z
from PyQt5 import QtCore, QtGui from PyQt5.QtWidgets import QDialog from vpv.ui.views.ui_log_viewer import Ui_Dialog from vpv.common import error_dialog class Logview(QDialog): def __init__(self, parent, log_file): super(Logview, self).__init__(parent) self.ui = Ui_Dialog() self.ui.setupUi...
31.72973
66
0.653322
a42f6dd19d88d5ec2163c6be06d1b7b989c1e21e
3,356
py
Python
examples/dfp/v201805/proposal_line_item_service/create_programmatic_proposal_line_items.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:22.000Z
2019-10-21T04:10:22.000Z
examples/dfp/v201805/proposal_line_item_service/create_programmatic_proposal_line_items.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201805/proposal_line_item_service/create_programmatic_proposal_line_items.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:51.000Z
2019-10-21T04:10:51.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. 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 requir...
31.961905
80
0.687723
73b3927e63454944058e8df6b448bcd4b67ac87e
3,377
py
Python
src/syft/core/io/location/location.py
dnabanita7/PySyft
ce2510e65f5bad382e88806bcde30fa38c3c76c4
[ "Apache-2.0" ]
2
2020-10-19T19:18:46.000Z
2020-12-07T12:06:30.000Z
packages/syft/src/syft/core/io/location/location.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
5
2020-09-11T05:47:12.000Z
2020-10-13T08:36:17.000Z
packages/syft/src/syft/core/io/location/location.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
1
2021-05-22T17:11:42.000Z
2021-05-22T17:11:42.000Z
# stdlib from typing import Optional # third party from google.protobuf.message import Message from google.protobuf.reflection import GeneratedProtocolMessageType # syft relative from ....logger import traceback_and_raise from ...common.serde.serializable import Serializable from ...common.uid import UID class Loca...
38.816092
102
0.706248
754e36fa9371836c3e59894bf9a48041fee255db
79
py
Python
python/python_backup/PRAC_PYTHON/sw.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/sw.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/sw.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
a=input("enter a no") if a%2==0: print "a is even" else: print "a is odd"
15.8
22
0.582278
54ab852405bc9f9f623e9041f45eb340b4c73bcf
4,162
py
Python
setup.py
WillIWas123/mitmproxy
9c05c8ca5468e7797e0f492386bb17984271353f
[ "MIT" ]
null
null
null
setup.py
WillIWas123/mitmproxy
9c05c8ca5468e7797e0f492386bb17984271353f
[ "MIT" ]
null
null
null
setup.py
WillIWas123/mitmproxy
9c05c8ca5468e7797e0f492386bb17984271353f
[ "MIT" ]
null
null
null
import os import re from codecs import open from setuptools import find_packages, setup # Based on https://github.com/pypa/sampleproject/blob/main/setup.py # and https://python-packaging-user-guide.readthedocs.org/ here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, "README.md"), encoding...
34.683333
135
0.561989
618d052db9ad43f4c4cc8b5c4b835bc52b5cd4d2
797
py
Python
lesson 4/p1-prime number.py
hamburgcodingschool/L2C-1903
759c273edb4b2e1685c28f932694f7a5a1e2b0a1
[ "MIT" ]
null
null
null
lesson 4/p1-prime number.py
hamburgcodingschool/L2C-1903
759c273edb4b2e1685c28f932694f7a5a1e2b0a1
[ "MIT" ]
null
null
null
lesson 4/p1-prime number.py
hamburgcodingschool/L2C-1903
759c273edb4b2e1685c28f932694f7a5a1e2b0a1
[ "MIT" ]
null
null
null
import math # ask the user for a number # tell the user if that number is prime or not number = 10 # print(number % 2) # print(number % 3) # print(number % 4) # print(number % 5) # print(number % 6) # print(number % 7) # print(number % 8) # print(number % 9) # zeroModulusCounter = 0 # for i in range(2, number): # ...
19.925
90
0.614806
62c50879e28980b7739d26354b8ad4e8690f0285
802
py
Python
mspray/apps/main/management/commands/update_spraydays.py
onaio/mspray
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
[ "Apache-2.0" ]
null
null
null
mspray/apps/main/management/commands/update_spraydays.py
onaio/mspray
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
[ "Apache-2.0" ]
76
2018-03-15T09:37:56.000Z
2019-05-15T12:45:51.000Z
mspray/apps/main/management/commands/update_spraydays.py
onaio/mspray
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
[ "Apache-2.0" ]
1
2020-10-31T07:15:22.000Z
2020-10-31T07:15:22.000Z
from django.utils.dateparse import parse_datetime from django.core.management.base import BaseCommand from django.utils.translation import gettext as _ from mspray.apps.main.models import SprayDay class Command(BaseCommand): help = _('Create unique spraypoint data points') def handle(self, *args, **options)...
32.08
55
0.644638
46ffe5f23936c652fe5d6346371318e7e260d3d3
5,424
py
Python
pymc3/theanof.py
ds7788/hello-world
f16466f4d4de8cd412771415a361738ba020e568
[ "Apache-2.0" ]
1
2018-08-16T22:03:21.000Z
2018-08-16T22:03:21.000Z
pymc3/theanof.py
ds7788/hello-world
f16466f4d4de8cd412771415a361738ba020e568
[ "Apache-2.0" ]
null
null
null
pymc3/theanof.py
ds7788/hello-world
f16466f4d4de8cd412771415a361738ba020e568
[ "Apache-2.0" ]
null
null
null
from .vartypes import typefilter, continuous_types from theano import theano, scalar, tensor as t from theano.gof.graph import inputs from .memoize import memoize from .blocking import ArrayOrdering __all__ = ['gradient', 'hessian', 'hessian_diag', 'inputvars', 'cont_inputs', 'jacobian', 'CallableTensor', 'join_nonsh...
24.880734
160
0.629978
d980929ddec91fd73b83525f62d2dc19333315b7
14,256
py
Python
unipolarDirect.py
pootle/piCameraWeb
3422a21ed62d0a231d6d26bd5c59914f57ebe1a6
[ "Unlicense" ]
1
2019-05-04T10:34:23.000Z
2019-05-04T10:34:23.000Z
unipolarDirect.py
pootle/piCameraWeb
3422a21ed62d0a231d6d26bd5c59914f57ebe1a6
[ "Unlicense" ]
1
2019-04-01T08:16:05.000Z
2019-04-01T08:16:05.000Z
unipolarDirect.py
pootle/piCameraWeb
3422a21ed62d0a231d6d26bd5c59914f57ebe1a6
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 """ basic module for driving unipolar stepper via simple darlington drivers. For example the el cheapo box of 10 28BYJ-48 steppers with ULN2003A based driver boards """ import pigpio import threading, math, logging, pathlib, time, json from pootlestuff import watchables as wv # steptables is ...
57.716599
161
0.57709
21ca4b038107d5ad223d6eccdab5d8cbcc6812be
6,611
py
Python
mslib/msui/socket_control.py
Throwaway-Tester/MSS-1
733ab0ab69d52c73b80ff005051ca5ae289da59b
[ "Apache-2.0" ]
null
null
null
mslib/msui/socket_control.py
Throwaway-Tester/MSS-1
733ab0ab69d52c73b80ff005051ca5ae289da59b
[ "Apache-2.0" ]
null
null
null
mslib/msui/socket_control.py
Throwaway-Tester/MSS-1
733ab0ab69d52c73b80ff005051ca5ae289da59b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ mslib.msui.socket_control ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client socket connection handler This file is part of mss. :copyright: Copyright 2019 Shivashis Padhi :copyright: Copyright 2019-2021 by the mss team, see AUTHORS. Licensed under the Apache License, ...
38.213873
110
0.656784
c4484baae2bf5fe51a15504af7146b17982a8b9e
2,505
py
Python
smqtk_iqr/utils/url.py
bardkw/SMQTK-IQR
8971020055a38354e217a8dcd63978b668aa98e6
[ "BSD-3-Clause" ]
82
2015-01-07T15:33:29.000Z
2021-08-11T18:34:05.000Z
smqtk_iqr/utils/url.py
bardkw/SMQTK-IQR
8971020055a38354e217a8dcd63978b668aa98e6
[ "BSD-3-Clause" ]
230
2015-04-08T14:36:51.000Z
2022-03-14T17:55:30.000Z
smqtk_iqr/utils/url.py
bardkw/SMQTK-IQR
8971020055a38354e217a8dcd63978b668aa98e6
[ "BSD-3-Clause" ]
65
2015-01-04T15:00:16.000Z
2021-11-19T18:09:11.000Z
""" Utilities for URLs """ import re PROTOCOL_HEADER = re.compile(r'\w+://') URL_SEP = '/' def url_join(url, *urls): r""" Join one or more URL components intelligently. The return is the concatenation of ``url`` and any members of ``*urls`` with exactly one slash ("/") following each non-empty part...
28.793103
80
0.565269
b662bfac0858b403814c5fbc8872f3960da63332
1,156
py
Python
gapipy/resources/booking/agency.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
gapipy/resources/booking/agency.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
gapipy/resources/booking/agency.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
# Python 2 and 3 from __future__ import unicode_literals from ...models import Address from ...models import AgencyDocument from ...models.base import BaseModel from .agency_chain import AgencyChain from ..base import Resource from ..tour import Promotion class AgencyEmail(BaseModel): _as_is_fields = ['type', '...
24.595745
54
0.642734
a0c77010043ce71204b87c104e4d7ab0a085d64e
333
py
Python
config/default.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
null
null
null
config/default.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
21
2019-01-26T20:39:34.000Z
2019-06-20T10:09:57.000Z
config/default.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
null
null
null
"""Default configuration """ import os class Config: """Default configuration settings """ APP_NAME = 'resourceidea' DEBUG = False SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI') SQLALCHEMY_TRACK_MODIFICATIONS = False ENV = ...
22.2
71
0.705706
080b0ba2fcf48a454ba740e3005308e787c72339
24,578
py
Python
zopkio/test_runner.py
asifurrouf/Framework_Zopkio
a06e35a884cd26eedca0aac8ba6b9b40c417a01c
[ "Apache-2.0" ]
138
2015-01-01T15:03:35.000Z
2020-07-31T12:34:05.000Z
zopkio/test_runner.py
LinkedInAttic/Zopkio
a06e35a884cd26eedca0aac8ba6b9b40c417a01c
[ "Apache-2.0" ]
47
2015-01-05T17:41:01.000Z
2016-07-01T19:51:33.000Z
zopkio/test_runner.py
LinkedInAttic/Zopkio
a06e35a884cd26eedca0aac8ba6b9b40c417a01c
[ "Apache-2.0" ]
41
2015-01-31T19:50:18.000Z
2020-08-07T19:53:29.000Z
# Copyright 2015 LinkedIn Corp. # # 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....
39.451043
130
0.67654
9181a87d82cd0079fcbcc48dfa3c4cfa9eb57582
11,966
py
Python
faucet/transactions/tests.py
melotools/faucet
403a5c4b7074ff5c461bfc5493d3a01b2b0c8358
[ "Apache-2.0" ]
1
2021-07-06T21:09:20.000Z
2021-07-06T21:09:20.000Z
faucet/transactions/tests.py
melotools/faucet
403a5c4b7074ff5c461bfc5493d3a01b2b0c8358
[ "Apache-2.0" ]
1
2021-07-05T18:58:00.000Z
2021-07-05T18:58:00.000Z
faucet/transactions/tests.py
melotools/faucet
403a5c4b7074ff5c461bfc5493d3a01b2b0c8358
[ "Apache-2.0" ]
null
null
null
from django.test import TestCase from django.test.utils import override_settings from django.conf import settings from rest_framework.test import APITestCase from .exceptions import MakeTransactionError from .models import Transaction from unittest import mock import logging from decimal import Decimal from .utils i...
35.613095
128
0.670399
c25203daf2e256a436b42ef223e7976db0de8de6
99
py
Python
templatetags/apps.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
14
2019-09-30T12:44:17.000Z
2022-02-04T14:45:16.000Z
templatetags/apps.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
244
2021-03-26T15:13:15.000Z
2022-03-31T15:48:04.000Z
templatetags/apps.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
8
2020-05-19T21:55:13.000Z
2022-03-31T07:02:58.000Z
from django.apps import AppConfig class TemplatetagsConfig(AppConfig): name = "templatetags"
16.5
36
0.777778
01533fe3ce1cb1191a4d1ce57db83d44655a6f6f
1,662
py
Python
pages.py
slaclab/psdm-ws-template
6d7f373167336df629bc5b85f0084cc6a3f85910
[ "Apache-2.0" ]
null
null
null
pages.py
slaclab/psdm-ws-template
6d7f373167336df629bc5b85f0084cc6a3f85910
[ "Apache-2.0" ]
null
null
null
pages.py
slaclab/psdm-ws-template
6d7f373167336df629bc5b85f0084cc6a3f85910
[ "Apache-2.0" ]
1
2020-12-13T00:36:55.000Z
2020-12-13T00:36:55.000Z
import os import json import logging import pkg_resources import context from flask import Blueprint, render_template, send_file, abort pages_blueprint = Blueprint('pages_api', __name__) logger = logging.getLogger(__name__) @pages_blueprint.route("/") def index(): return render_template("index.html") @pages_b...
33.24
119
0.711793
14b13649521220680f19bb68b1bb8a8d69dfe1c9
4,679
py
Python
adjust_results4_isadog.py
josedab/udacity-dog-breed-classifier
68cb366254c9ba1669f5406f4193140c7b5b5884
[ "MIT" ]
1
2019-01-14T10:22:53.000Z
2019-01-14T10:22:53.000Z
adjust_results4_isadog.py
josedab/udacity-dog-breed-classifier
68cb366254c9ba1669f5406f4193140c7b5b5884
[ "MIT" ]
null
null
null
adjust_results4_isadog.py
josedab/udacity-dog-breed-classifier
68cb366254c9ba1669f5406f4193140c7b5b5884
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # */AIPND-revision/intropyproject-classify-pet-images/adjust_results4_isadog.py # # PROGRAMMER: # DATE CREATED: # REVISED DATE: # PURPOSE: Create a function adjust_results4_isadog that adjusts the results # dictionary to indicate whether or not the pet image label...
50.858696
85
0.636675
223bd7b310ac7c51d4121a15085696dc4de90f10
15,425
py
Python
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/PyTorch/pt_ENet_cityscapes_512_1024_8.6G_1.3/code/models/enet_xilinx.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
1
2020-12-18T14:49:19.000Z
2020-12-18T14:49:19.000Z
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/PyTorch/pt_ENet_cityscapes_512_1024_8.6G_1.3/code/models/enet_xilinx.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
null
null
null
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/PyTorch/pt_ENet_cityscapes_512_1024_8.6G_1.3/code/models/enet_xilinx.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Xilinx Inc. # # 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, ...
39.050633
124
0.66483
62b3c476afd6cbd593834985d815974eb0558d3c
2,656
py
Python
Randomize.py
allanedgard/pdss
9874dfb9faa57db79e8072bfd35e79c5c16eea67
[ "Apache-2.0" ]
null
null
null
Randomize.py
allanedgard/pdss
9874dfb9faa57db79e8072bfd35e79c5c16eea67
[ "Apache-2.0" ]
null
null
null
Randomize.py
allanedgard/pdss
9874dfb9faa57db79e8072bfd35e79c5c16eea67
[ "Apache-2.0" ]
null
null
null
import random import math import rpy2.robjects as robjects # That class implements probabilistic distribution functions from SMPL # and allows for integration to all functions available from R environment # tracing and reflection support (to be used in PDSS) are still missing class Randomize: def __init__(self,seed...
22.133333
74
0.612575
f9cb3cf623c1b0af892e0f31787249bcaae6c5cc
4,085
py
Python
pytorch_lightning/callbacks/device_stats_monitor.py
mythravarun/pytorch-lightning
5d2a3eab69f80b3c2b7d4f7c40b40a83b0200c39
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/callbacks/device_stats_monitor.py
mythravarun/pytorch-lightning
5d2a3eab69f80b3c2b7d4f7c40b40a83b0200c39
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/callbacks/device_stats_monitor.py
mythravarun/pytorch-lightning
5d2a3eab69f80b3c2b7d4f7c40b40a83b0200c39
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
38.904762
118
0.702081
edd3c077548fafdc08634c813bfc4324bf68f156
8,524
py
Python
rpython/rlib/rstruct/test/test_ieee.py
microvm/pypy-mu
6b03fbe93052d0eb3a4c67152c987c16837b3484
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/rlib/rstruct/test/test_ieee.py
microvm/pypy-mu
6b03fbe93052d0eb3a4c67152c987c16837b3484
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/rlib/rstruct/test/test_ieee.py
microvm/pypy-mu
6b03fbe93052d0eb3a4c67152c987c16837b3484
[ "Apache-2.0", "OpenSSL" ]
null
null
null
import py import sys import random import struct from rpython.rlib.rstruct import ieee from rpython.rlib.rfloat import isnan, NAN, INFINITY from rpython.translator.c.test.test_genc import compile class TestFloatSpecific: def test_halffloat_exact(self): #testcases generated from numpy.float16(x).view('uin...
36.900433
103
0.548921
77f15ac36fb03754723066b2c9f5c57827885cbd
360
py
Python
home/migrations/0002_auto_20190704_0050.py
AkinWilderman/myPort
3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c
[ "Apache-2.0" ]
null
null
null
home/migrations/0002_auto_20190704_0050.py
AkinWilderman/myPort
3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c
[ "Apache-2.0" ]
null
null
null
home/migrations/0002_auto_20190704_0050.py
AkinWilderman/myPort
3ddeea04ccffe3ed7b66d6dba2c1f2dc00c9eb6c
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.7 on 2019-07-03 23:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0001_initial'), ] operations = [ migrations.AlterField( model_name='home', name='postal', field=...
18.947368
47
0.572222
cda8e56eb84bfac4e0b1cf0e2ab1286ba5cd40e7
2,558
py
Python
exporter/organisation/sites/services.py
code-review-doctor/lite-frontend-1
cb3b885bb389ea33ef003c916bea7b03a36d86bb
[ "MIT" ]
null
null
null
exporter/organisation/sites/services.py
code-review-doctor/lite-frontend-1
cb3b885bb389ea33ef003c916bea7b03a36d86bb
[ "MIT" ]
null
null
null
exporter/organisation/sites/services.py
code-review-doctor/lite-frontend-1
cb3b885bb389ea33ef003c916bea7b03a36d86bb
[ "MIT" ]
null
null
null
from urllib.parse import urlencode from core import client from lite_content.lite_exporter_frontend import strings from lite_forms.components import Option def get_sites(request, organisation_id, convert_to_options=False, get_total_users=False, exclude="", postcode=""): querystring = urlencode( [ ...
29.402299
114
0.594605
e4ec688c0d9caa43dd9b7cf0f725f796e4e9be15
3,741
py
Python
comment/mixins.py
clevergrowth/Comment
afab99864eadf0c7f34d4c807f6abf68a238f918
[ "MIT" ]
1
2020-12-14T00:54:50.000Z
2020-12-14T00:54:50.000Z
comment/mixins.py
clevergrowth/Comment
afab99864eadf0c7f34d4c807f6abf68a238f918
[ "MIT" ]
null
null
null
comment/mixins.py
clevergrowth/Comment
afab99864eadf0c7f34d4c807f6abf68a238f918
[ "MIT" ]
null
null
null
import abc from django.contrib.auth.mixins import LoginRequiredMixin, AccessMixin from django.core.exceptions import ImproperlyConfigured from django.http import HttpResponseBadRequest, HttpResponseForbidden from comment.conf import settings from comment.utils import is_comment_admin, is_comment_moderator from commen...
36.320388
118
0.713446
618672782656034f4a446c438231f950e6556bf4
2,617
py
Python
deepecg/training/train/memory/summaries.py
Seb-Good/deepecg
c99fbe80718ee9969936154ae2c1a04d81c9b246
[ "MIT" ]
56
2019-02-20T04:47:25.000Z
2022-03-23T01:12:43.000Z
train/summaries.py
xfunture/deep_ecg
12593bde3d92eeee069cf96ece3edfbd72be146c
[ "MIT" ]
7
2019-12-16T20:59:36.000Z
2022-02-09T23:48:59.000Z
train/summaries.py
xfunture/deep_ecg
12593bde3d92eeee069cf96ece3edfbd72be146c
[ "MIT" ]
22
2019-02-24T02:57:20.000Z
2022-03-23T01:12:49.000Z
""" summaries.py ------------ This module provides a class and methods for writing training and validation summaries. By: Sebastian D. Goodfellow, Ph.D., 2018 """ # Compatibility imports from __future__ import absolute_import, division, print_function # 3rd party imports import os import tensorflow as tf class Summ...
36.859155
112
0.709209
e6e4c9bcde138749fcf1edfd23238bce8c43e221
2,416
py
Python
locustfile.py
beandrad/grpc_perf_test
ed4cfeef3aa27dd2fe77755abdfbbaebc95b378e
[ "MIT" ]
1
2021-05-21T16:41:48.000Z
2021-05-21T16:41:48.000Z
locustfile.py
beandrad/grpc_perf_test
ed4cfeef3aa27dd2fe77755abdfbbaebc95b378e
[ "MIT" ]
null
null
null
locustfile.py
beandrad/grpc_perf_test
ed4cfeef3aa27dd2fe77755abdfbbaebc95b378e
[ "MIT" ]
null
null
null
import grpc import hello_pb2_grpc import hello_pb2 from locust import events, User, task from locust.exception import LocustError from locust.user.task import LOCUST_STATE_STOPPING from hello_server import start_server import gevent import time # patch grpc so that it uses gevent instead of asyncio import grpc.experim...
29.463415
92
0.632036
bdbfeb1992bafafbd7d2c6edc0be9ef3ac366b36
12,020
py
Python
tests/callbacks/imaging/test_imaging.py
NunoEdgarGFlowHub/torchbearer
d2b21b8ffcabde5b505cb1c736e05af6ee4276ca
[ "MIT" ]
1
2020-01-27T06:17:21.000Z
2020-01-27T06:17:21.000Z
tests/callbacks/imaging/test_imaging.py
Jayaudaykmar26589/torchbearer
940e75ec88acd59d5a97aa8c721f7cfa30a5c4d0
[ "MIT" ]
null
null
null
tests/callbacks/imaging/test_imaging.py
Jayaudaykmar26589/torchbearer
940e75ec88acd59d5a97aa8c721f7cfa30a5c4d0
[ "MIT" ]
null
null
null
from unittest import TestCase from mock import MagicMock, patch, ANY import torch import torchbearer import torchbearer.callbacks.imaging as imaging import matplotlib.pyplot as plt # Import so that it can be mocked plt.ioff() class TestHandlers(TestCase): @patch('PIL.Image.fromarray') def test_to_file(se...
42.928571
137
0.668719
57bc69085b019eee7ff4de4082d8ffc94cbbb3ab
88,991
py
Python
demisto_sdk/tests/test_files/content_repo_example/Packs/FeedAzureValid/Integrations/FeedAzureValid/CommonServerPython.py
nericksen/demisto-sdk
27c870997597209f196a36358e30e896ca69fbb9
[ "MIT" ]
null
null
null
demisto_sdk/tests/test_files/content_repo_example/Packs/FeedAzureValid/Integrations/FeedAzureValid/CommonServerPython.py
nericksen/demisto-sdk
27c870997597209f196a36358e30e896ca69fbb9
[ "MIT" ]
null
null
null
demisto_sdk/tests/test_files/content_repo_example/Packs/FeedAzureValid/Integrations/FeedAzureValid/CommonServerPython.py
nericksen/demisto-sdk
27c870997597209f196a36358e30e896ca69fbb9
[ "MIT" ]
null
null
null
"""Common functions script This script will be appended to each server script before being executed. Please notice that to add custom common code, add it to the CommonServerUserPython script. Note that adding code to CommonServerUserPython can override functions in CommonServerPython """ from __future__ import print_fu...
35.370032
120
0.586239
18f8810939c509f29bb661cc122349e456a54287
7,664
py
Python
electrum_audax/gui/qt/utxo_list.py
theaudaxproject/electrum-audax
614845e536a21cb593376bdde7df6163b651ab21
[ "MIT" ]
null
null
null
electrum_audax/gui/qt/utxo_list.py
theaudaxproject/electrum-audax
614845e536a21cb593376bdde7df6163b651ab21
[ "MIT" ]
null
null
null
electrum_audax/gui/qt/utxo_list.py
theaudaxproject/electrum-audax
614845e536a21cb593376bdde7df6163b651ab21
[ "MIT" ]
2
2019-10-08T06:52:54.000Z
2019-10-24T03:33:20.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # 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...
46.448485
132
0.649269
0101bbf134904f7099baa7b80b7684445d48b31d
7,223
py
Python
pytdx_best_ip.py
nanomiter/stock-analysis
3b2abd48e6419733c0508f7a974c559d734d31e8
[ "Apache-2.0" ]
25
2021-01-27T14:45:11.000Z
2022-03-30T06:10:42.000Z
pytdx_best_ip.py
nanomiter/stock-analysis
3b2abd48e6419733c0508f7a974c559d734d31e8
[ "Apache-2.0" ]
3
2021-05-17T14:12:55.000Z
2021-05-18T08:43:40.000Z
pytdx_best_ip.py
wkingnet/stock-analysis
74dc99a3acd871b558607078a1ee7787a73a9c85
[ "Apache-2.0" ]
16
2021-03-26T03:51:43.000Z
2022-03-28T03:05:19.000Z
# coding: utf-8 # see https://github.com/rainx/pytdx/issues/38 IP寻优的简单办法 # by yutianst import os import sys import datetime import pandas as pd from pytdx.hq import TdxHq_API from pytdx.exhq import TdxExHq_API from rich import print import user_config as ucfg stock_ip = [ {'ip': '114.80.149.19', 'port': 7709}, ...
38.420213
94
0.499792
30e36de9b8ab1fab12430b1951caee4fb4642b45
1,826
py
Python
uptick/main.py
chainsquad/uptick
ac16d783585d2aec03c991fbf9e54de5dcbcfa4e
[ "MIT" ]
35
2017-01-04T16:56:35.000Z
2018-06-02T20:27:37.000Z
uptick/main.py
chainsquad/uptick
ac16d783585d2aec03c991fbf9e54de5dcbcfa4e
[ "MIT" ]
34
2018-03-22T12:51:45.000Z
2021-06-11T17:44:31.000Z
uptick/main.py
chainsquad/uptick
ac16d783585d2aec03c991fbf9e54de5dcbcfa4e
[ "MIT" ]
20
2017-03-02T17:14:19.000Z
2018-07-03T09:47:09.000Z
import click from bitshares.storage import get_default_config_store from .ui import print_version config = get_default_config_store() @click.group() @click.option( "--debug/--no-debug", default=False, help="Enable/Disable Debugging (no-broadcasting mode)", ) @click.option( "--node", type=str, ...
24.675676
88
0.659365
f4d88e3259b53df3b73bfc15b72c69f0d98ee4b0
234
py
Python
frappe/website/doctype/website_sidebar_item/website_sidebar_item.py
ssuda777/frappe
d3f3df2ce15154aecc1d9d6d07d947e72c2e8c6e
[ "MIT" ]
1
2021-06-03T07:04:48.000Z
2021-06-03T07:04:48.000Z
frappe/website/doctype/website_sidebar_item/website_sidebar_item.py
JMBodz/frappe
eb218a06d1cbfc3a8f1cc00ba8dac2c927d2f71d
[ "MIT" ]
3
2021-02-27T11:50:14.000Z
2021-05-03T06:48:49.000Z
frappe/website/doctype/website_sidebar_item/website_sidebar_item.py
JMBodz/frappe
eb218a06d1cbfc3a8f1cc00ba8dac2c927d2f71d
[ "MIT" ]
2
2021-09-02T09:51:55.000Z
2021-09-07T04:55:42.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies and contributors # For license information, please see license.txt import frappe from frappe.model.document import Document class WebsiteSidebarItem(Document): pass
23.4
58
0.773504
eb3f7d4cf1c0c4d4a3325bf53bfe8f7a5353c251
2,198
py
Python
aliyun-python-sdk-dyvmsapi/aliyunsdkdyvmsapi/request/v20170525/StartRobotTaskRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-dyvmsapi/aliyunsdkdyvmsapi/request/v20170525/StartRobotTaskRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-dyvmsapi/aliyunsdkdyvmsapi/request/v20170525/StartRobotTaskRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# 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...
35.451613
80
0.771611
f6f8274f65a0a805dfd117bc994db453788da028
15,391
py
Python
ncsnv3/models/ncsnv3.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-19T04:26:12.000Z
2022-03-19T04:26:12.000Z
ncsnv3/models/ncsnv3.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
ncsnv3/models/ncsnv3.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.678337
81
0.62595
94c31eb8a6b7a12872c6bdb99d677367b90564a7
25,741
py
Python
premailer/premailer.py
gabn88/premailer
2a564257eb8850d1f07e2638e8306d739448b1c8
[ "BSD-3-Clause" ]
null
null
null
premailer/premailer.py
gabn88/premailer
2a564257eb8850d1f07e2638e8306d739448b1c8
[ "BSD-3-Clause" ]
null
null
null
premailer/premailer.py
gabn88/premailer
2a564257eb8850d1f07e2638e8306d739448b1c8
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals import codecs import operator import os import re import sys import warnings import cssutils import requests from lxml import etree from lxml.cssselect import CSSSelector from premailer.cache import function_cache from premailer.merge_style imp...
37.090778
101
0.563343
0ddd4da53656ac45805474e8ed96152a7c34cb03
557
py
Python
app/src/model/newmealmodel.py
JMazurkiewicz/BD2-catering
281b38f91dcc9b233d17a8fd0b668a2e9ae4ad69
[ "MIT" ]
null
null
null
app/src/model/newmealmodel.py
JMazurkiewicz/BD2-catering
281b38f91dcc9b233d17a8fd0b668a2e9ae4ad69
[ "MIT" ]
20
2021-05-27T13:05:55.000Z
2021-06-17T16:45:11.000Z
app/src/model/newmealmodel.py
JMazurkiewicz/BD2-Catering
281b38f91dcc9b233d17a8fd0b668a2e9ae4ad69
[ "MIT" ]
1
2022-01-22T22:44:00.000Z
2022-01-22T22:44:00.000Z
#!/usr/bin/env python # @author Konrad / Damian from model import Model from tkcalendar import DateEntry import datetime class NewMealModel(Model): def __init__(self): Model.__init__(self) def insert_new_meal(self, name, weight, ingridient): try: sql = 'INSERT INTO meals VALUES ...
23.208333
66
0.610413
7edbc1eb9c82c2317ef8224f0b81a8ef2ea387e3
386
py
Python
catkin_ws/build/beginner_tutorials/catkin_generated/pkg.installspace.context.pc.py
ggrabuskie/ros
8124ad3c6e6bc76977bef154c3cedd0a251409d0
[ "MIT" ]
null
null
null
catkin_ws/build/beginner_tutorials/catkin_generated/pkg.installspace.context.pc.py
ggrabuskie/ros
8124ad3c6e6bc76977bef154c3cedd0a251409d0
[ "MIT" ]
null
null
null
catkin_ws/build/beginner_tutorials/catkin_generated/pkg.installspace.context.pc.py
ggrabuskie/ros
8124ad3c6e6bc76977bef154c3cedd0a251409d0
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "beginner_tutorials" PROJECT_SPACE_DIR...
42.888889
68
0.715026
623895d5d3fb86b0d40ce96770b94ccf530eaeeb
2,405
py
Python
jina/types/document/mixins/video.py
nasangwoon/jina
14e433425f74669520cff41a99da01dc1ef5d8e0
[ "Apache-2.0" ]
3
2021-12-06T08:10:02.000Z
2021-12-06T14:50:11.000Z
jina/types/document/mixins/video.py
nasangwoon/jina
14e433425f74669520cff41a99da01dc1ef5d8e0
[ "Apache-2.0" ]
null
null
null
jina/types/document/mixins/video.py
nasangwoon/jina
14e433425f74669520cff41a99da01dc1ef5d8e0
[ "Apache-2.0" ]
null
null
null
from typing import Union, BinaryIO import numpy as np from .helper import T, _deprecate_by class VideoDataMixin: """Provide helper functions for :class:`Document` to support video data. """ def load_uri_to_video_blob(self: T, only_keyframes: bool = False) -> T: """Convert a :attr:`.uri` to a video ...
33.402778
92
0.579626
32a595f0973859fd4c0053fd31e60d495c0853cb
602
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/hrobot/plugins/doc_fragments/robot.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
5
2020-12-16T21:42:09.000Z
2022-03-28T16:04:32.000Z
.ansible/collections/ansible_collections/community/general/plugins/doc_fragments/hetzner.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
.ansible/collections/ansible_collections/community/general/plugins/doc_fragments/hetzner.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright: (c) 2019 Felix Fontein <felix@fontein.de> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type class ModuleDocFragment(object): # Standard files d...
25.083333
92
0.719269
c6452047e2c2d19a9a7e3056423c8ae130c0f3cd
1,491
py
Python
ticketflix/cart/models.py
DSW-2018-2/Arquitetura-Desenho-2018-2
d417895904c1a12ba2a9d761d7e60be77b7bcac2
[ "MIT" ]
3
2018-12-12T09:56:36.000Z
2021-11-24T00:03:07.000Z
ticketflix/cart/models.py
DSW-2018-2/Ticketflix
d417895904c1a12ba2a9d761d7e60be77b7bcac2
[ "MIT" ]
20
2018-08-23T11:31:11.000Z
2018-11-22T20:44:09.000Z
ticketflix/cart/models.py
DSW-2018-2/Arquitetura-Desenho-2018-2
d417895904c1a12ba2a9d761d7e60be77b7bcac2
[ "MIT" ]
2
2018-12-14T09:11:05.000Z
2020-08-06T22:45:12.000Z
from django.db import models from django.utils.translation import gettext as _ from django.core import validators from django.urls import reverse from ticketflix.ticket.models import Ticket from ticketflix.bomboniere.models import Product, Combo from ticketflix.room.models import Seat class Cart(models.Model): p...
25.706897
61
0.637156
7446ea2299bc3fd69ffe3db2e712a2b0849ea723
1,896
py
Python
differ/main.py
MadRussian/differ
1fbd622da3e08dd0180728f879c879f809a3cfe4
[ "Apache-2.0" ]
1
2017-02-27T16:37:17.000Z
2017-02-27T16:37:17.000Z
differ/main.py
MadRussian/differ
1fbd622da3e08dd0180728f879c879f809a3cfe4
[ "Apache-2.0" ]
1
2017-02-27T16:36:46.000Z
2017-03-01T04:20:24.000Z
differ/main.py
MadRussian/differ
1fbd622da3e08dd0180728f879c879f809a3cfe4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """Diff compresed directories This is primarily created to see the difference between 2 compressed directories. """ from __future__ import print_function import os, sys, argparse, textwrap import uuid import re import utils utils.setup_logging() import logging logger = logging.getLogger("differ.ma...
27.085714
74
0.658755
3d6b278e6bd255fcdcc7dfcd5f7cd27d3e6f49f5
1,495
py
Python
sphinx/source/docs/user_guide/examples/tools_hover_custom_tooltip.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
12
2020-07-20T14:58:31.000Z
2021-09-04T22:15:14.000Z
sphinx/source/docs/user_guide/examples/tools_hover_custom_tooltip.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2021-05-09T02:45:17.000Z
2021-05-09T02:45:17.000Z
sphinx/source/docs/user_guide/examples/tools_hover_custom_tooltip.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
3
2019-03-27T23:27:05.000Z
2020-08-05T19:03:19.000Z
from bokeh.plotting import figure, output_file, show, ColumnDataSource output_file("toolbar.html") source = ColumnDataSource(data=dict( x=[1, 2, 3, 4, 5], y=[2, 5, 8, 2, 7], desc=['A', 'b', 'C', 'd', 'E'], imgs=[ 'https://bokeh.pydata.org/static/snake.jpg', 'https://bokeh.pydata.org/st...
27.685185
74
0.506355
7bcf68e36adf80a6ceb82a6a461eddeab1e0043c
2,194
py
Python
rplugin/python3/deoplete/source/base.py
kevinushey/deoplete.nvim
57d3f0c3cdfcfc1d91901a6d59d08f9008abd166
[ "MIT" ]
null
null
null
rplugin/python3/deoplete/source/base.py
kevinushey/deoplete.nvim
57d3f0c3cdfcfc1d91901a6d59d08f9008abd166
[ "MIT" ]
null
null
null
rplugin/python3/deoplete/source/base.py
kevinushey/deoplete.nvim
57d3f0c3cdfcfc1d91901a6d59d08f9008abd166
[ "MIT" ]
null
null
null
# ============================================================================ # FILE: base.py # AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com> # License: MIT license # ============================================================================ import re from abc import abstractmethod from deoplete.logger impo...
30.054795
78
0.562443
55d51289fa47c092aa7a2b5585181d3cc30cc094
859
py
Python
parsers/horizparser.py
rigdenlab/conkit-web
bf50d28a73f43b9eb0e0c397ec1d0fd32547fdf1
[ "BSD-3-Clause" ]
1
2020-04-16T16:52:53.000Z
2020-04-16T16:52:53.000Z
parsers/horizparser.py
rigdenlab/conplot
9b3129d9e1b7ed93da63c6fd31f9b50e63f2d4d9
[ "BSD-3-Clause" ]
47
2020-05-11T13:59:11.000Z
2022-01-21T09:37:18.000Z
parsers/horizparser.py
rigdenlab/conkit-web
bf50d28a73f43b9eb0e0c397ec1d0fd32547fdf1
[ "BSD-3-Clause" ]
5
2020-04-24T11:19:21.000Z
2020-05-06T08:01:36.000Z
from parsers import SecondaryStructureStates from utils.exceptions import InvalidFormat def HorizParser(contents): output = [] for line in contents: if 'Pred: ' in line and line[0] != '#': prediction = line.split()[-1] for residue in prediction: if residue == '...
34.36
97
0.587893
809c3a2c9ab451e29be1c43bee8391d3114c4518
31,337
py
Python
core/controllers/question_editor_test.py
yash10019coder/oppia
8c349c61ac723a2fd507046b20957934cba70e3a
[ "Apache-2.0" ]
2
2022-03-27T23:15:17.000Z
2022-03-27T23:15:32.000Z
core/controllers/question_editor_test.py
yash10019coder/oppia
8c349c61ac723a2fd507046b20957934cba70e3a
[ "Apache-2.0" ]
null
null
null
core/controllers/question_editor_test.py
yash10019coder/oppia
8c349c61ac723a2fd507046b20957934cba70e3a
[ "Apache-2.0" ]
2
2022-03-22T16:57:32.000Z
2022-03-24T17:38:42.000Z
# Copyright 2018 The Oppia 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 applicable ...
40.175641
80
0.622619
869f1ca322240e8440021d22e54c74d1ba624cc7
3,489
py
Python
stubs.min/Autodesk/Revit/DB/__init___parts/PartType.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/Autodesk/Revit/DB/__init___parts/PartType.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Autodesk/Revit/DB/__init___parts/PartType.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class PartType(Enum,IComparable,IFormattable,IConvertible): """ An enumerated type listing all MEP family part types. A part type typically provides one unique set of type parameters that defines this part. enum PartType,values: AttachesTo (3),BreaksInto (4),Cap (9),ChannelCableTrayCross (37),ChannelCableTra...
37.516129
1,213
0.767842
3c5921daa0f4e3b396db9946a5d0bc515fb6c0ed
6,216
py
Python
test/geometry/transform/test_pyramid.py
ChristophReich1996/kornia
35f955b46e8015da1cb9faa28c6943ec2b09cc2a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/geometry/transform/test_pyramid.py
ChristophReich1996/kornia
35f955b46e8015da1cb9faa28c6943ec2b09cc2a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/geometry/transform/test_pyramid.py
ChristophReich1996/kornia
35f955b46e8015da1cb9faa28c6943ec2b09cc2a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import pytest import torch from torch.autograd import gradcheck from torch.testing import assert_allclose import kornia as kornia import kornia.testing as utils # test utils class TestPyrUp: def test_shape(self, device, dtype): inp = torch.zeros(1, 2, 4, 4, device=device, dtype=dtype) pyr = kor...
38.37037
91
0.605856
2923953a398c7cc940bc2a3da24f1d72c130c831
4,853
py
Python
esrally/utils/git.py
breml/rally
ea43beb6b60481ee77508da84605add571fc021d
[ "Apache-2.0" ]
null
null
null
esrally/utils/git.py
breml/rally
ea43beb6b60481ee77508da84605add571fc021d
[ "Apache-2.0" ]
null
null
null
esrally/utils/git.py
breml/rally
ea43beb6b60481ee77508da84605add571fc021d
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
38.212598
139
0.678343
b6d2aa5e883977a100e9249d677aba7b40c2be9f
34,409
py
Python
onmt/opts.py
johbrob/MolecularTransformer
0319fbdac11dc1d90f68a2e53b953bc822d1e215
[ "BSD-3-Clause" ]
null
null
null
onmt/opts.py
johbrob/MolecularTransformer
0319fbdac11dc1d90f68a2e53b953bc822d1e215
[ "BSD-3-Clause" ]
null
null
null
onmt/opts.py
johbrob/MolecularTransformer
0319fbdac11dc1d90f68a2e53b953bc822d1e215
[ "BSD-3-Clause" ]
null
null
null
""" Implementation of all available options """ from __future__ import print_function import argparse from pathlib import Path from onmt.models.sru import CheckSRU def model_opts(parser): """ These options are passed to the construction of the model. Be careful with these as they will be used during tra...
52.293313
89
0.578686
5c8dfcd2d782fb76f48c5e15f2cf62bb4730bf68
511
py
Python
SimG4Core/Application/test/runSimHitCaloHitDumper_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
13
2015-11-30T15:49:45.000Z
2022-02-08T16:11:30.000Z
SimG4Core/Application/test/runSimHitCaloHitDumper_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
640
2015-02-11T18:55:47.000Z
2022-03-31T14:12:23.000Z
SimG4Core/Application/test/runSimHitCaloHitDumper_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
51
2015-08-11T21:01:40.000Z
2022-03-30T07:31:34.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("SimCaloHitDump") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.source = cms.Source("PoolSource", f...
23.227273
57
0.759295
ab36b8bddd028cc25e3013bf2cc10c1da65599e0
39,806
py
Python
python/tvm/relay/op/contrib/tensorrt.py
JackYoustra/tvm
f85cab20521de7c58f8ed05a3f8e858ced3656f4
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
python/tvm/relay/op/contrib/tensorrt.py
JackYoustra/tvm
f85cab20521de7c58f8ed05a3f8e858ced3656f4
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
python/tvm/relay/op/contrib/tensorrt.py
JackYoustra/tvm
f85cab20521de7c58f8ed05a3f8e858ced3656f4
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-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...
39.179134
100
0.650254
cf4b51a04bf1b1a27933fa3bec0a64f9e237f5f3
1,088
py
Python
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_32_bit/thumb_data_processing_modified_immediate/eor_immediate_t1.py
matan1008/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
16
2018-01-22T14:36:49.000Z
2021-12-17T15:39:52.000Z
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_32_bit/thumb_data_processing_modified_immediate/eor_immediate_t1.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
3
2019-02-19T17:51:47.000Z
2022-03-31T20:45:21.000Z
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_32_bit/thumb_data_processing_modified_immediate/eor_immediate_t1.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
4
2020-06-18T23:51:03.000Z
2022-02-09T17:43:13.000Z
from armulator.armv6.opcodes.abstract_opcodes.eor_immediate import EorImmediate from armulator.armv6.opcodes.opcode import Opcode from armulator.armv6.shift import thumb_expand_imm_c class EorImmediateT1(EorImmediate, Opcode): def __init__(self, instruction, setflags, d, n, imm32, carry): Opcode.__init__(...
38.857143
109
0.625919
ece50043476a8c11fab65dca8f7019b500da15b7
3,911
py
Python
molecule/python/molecule_api/models/document_verify_response.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
molecule/python/molecule_api/models/document_verify_response.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
molecule/python/molecule_api/models/document_verify_response.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Molecule API Documentation The Hydrogen Molecule API # noqa: E501 OpenAPI spec version: 1.3.0 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class DocumentVerifyResp...
27.542254
93
0.579136
13b3fb701099d4fb122d622e27a91b560281fff2
322
py
Python
app.py
vasyanch/stepik_flask-volunteers
6cd98cd7a1977deeead005fac6b20938206d309d
[ "MIT" ]
null
null
null
app.py
vasyanch/stepik_flask-volunteers
6cd98cd7a1977deeead005fac6b20938206d309d
[ "MIT" ]
null
null
null
app.py
vasyanch/stepik_flask-volunteers
6cd98cd7a1977deeead005fac6b20938206d309d
[ "MIT" ]
null
null
null
from flask import Flask from flask_migrate import Migrate from config import Config from models import db app = Flask(__name__) app.config.from_object(Config) db.init_app(app) migrate = Migrate(app, db) from views import post_help, get_streets, get_districts, get_volunteers if __name__ == '__main__': app.run(...
17.888889
71
0.776398
11e3148102694aae00a13b3c9e0b9d610ec98bd4
1,924
py
Python
esphomeyaml/helpers.py
sherbang/esphomeyaml
eb7db04d08fd8c1e6fd81934c6ab89959b5678ed
[ "MIT" ]
null
null
null
esphomeyaml/helpers.py
sherbang/esphomeyaml
eb7db04d08fd8c1e6fd81934c6ab89959b5678ed
[ "MIT" ]
null
null
null
esphomeyaml/helpers.py
sherbang/esphomeyaml
eb7db04d08fd8c1e6fd81934c6ab89959b5678ed
[ "MIT" ]
null
null
null
from __future__ import print_function import errno import logging import os import subprocess _LOGGER = logging.getLogger(__name__) def ensure_unique_string(preferred_string, current_strings): test_string = preferred_string current_strings_set = set(current_strings) tries = 1 while test_string in ...
24.666667
82
0.653326
11e26ba4dc48bd69d85aa277d62b1abc1ea4b511
22,450
py
Python
test/functional/feature_rbf.py
sqoin/xdisk
7f93d461b0168f11512a9dcfd9cf133122157544
[ "MIT" ]
null
null
null
test/functional/feature_rbf.py
sqoin/xdisk
7f93d461b0168f11512a9dcfd9cf133122157544
[ "MIT" ]
null
null
null
test/functional/feature_rbf.py
sqoin/xdisk
7f93d461b0168f11512a9dcfd9cf133122157544
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the RBF code.""" from test_framework.test_framework import BitcoinTestFramework from test_framewo...
39.664311
127
0.628107
36cf7c5b562e4b2b781e594c9fa663162552ec5c
3,144
py
Python
przepisy/forms.py
gluwer/przepisymm
dc83fdc4068fb0102a87081bd519807fd66397c2
[ "BSD-3-Clause" ]
null
null
null
przepisy/forms.py
gluwer/przepisymm
dc83fdc4068fb0102a87081bd519807fd66397c2
[ "BSD-3-Clause" ]
null
null
null
przepisy/forms.py
gluwer/przepisymm
dc83fdc4068fb0102a87081bd519807fd66397c2
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from google.appengine.ext import db from kay.utils import forms, get_request, validators from kutils import slugify from przepisy import * from przepisy import models class RecipeForm(forms.Form): title = forms.TextField(required=True, label=u'Nazwa', max_length=60, min_length=4, ...
51.540984
222
0.708333
35c8854b0cbaa03cfd2a84d97d21a68c7e426b12
5,036
py
Python
tencentcloud/tat/v20201028/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
tencentcloud/tat/v20201028/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
tencentcloud/tat/v20201028/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
32.701299
125
0.851668
3ded02598963c827159d390f7233671f3afb2647
141,710
py
Python
pandas/core/series.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-03-23T08:51:08.000Z
2020-03-23T08:51:08.000Z
pandas/core/series.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/series.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2020-04-15T06:43:37.000Z
2020-04-15T06:49:48.000Z
""" Data structure for 1-dimensional cross-sectional and time series data """ from io import StringIO from shutil import get_terminal_size from textwrap import dedent from typing import ( IO, TYPE_CHECKING, Any, Callable, Hashable, Iterable, List, Optional, Tuple, Type, ) import ...
31.124533
88
0.533004
6e871c2ee3a20fb06501f45f3188e6df037d4b46
979
py
Python
clueless/server/app.py
arthurtucker/Clue-Less
cf082f5c3b1baf2e93a94984100b6ca58e761383
[ "Apache-2.0" ]
4
2016-09-21T04:59:05.000Z
2020-09-23T03:12:52.000Z
clueless/server/app.py
arthurtucker/Clue-Less
cf082f5c3b1baf2e93a94984100b6ca58e761383
[ "Apache-2.0" ]
null
null
null
clueless/server/app.py
arthurtucker/Clue-Less
cf082f5c3b1baf2e93a94984100b6ca58e761383
[ "Apache-2.0" ]
1
2020-04-01T23:27:44.000Z
2020-04-01T23:27:44.000Z
from flask import Flask from flask.ext import restful from clueless import log from clueless.server.api import resources _LOG = log.get_logger(__name__) def start_server(): _LOG.info('Clueless server starting..') app = Flask(__name__) api = restful.Api(app) api.add_resource(resources.PlayersResou...
29.666667
76
0.743616
1f9f7a64308be232beaaf6636bb82ea864ee9fb3
10,706
py
Python
yolox/data/data_augment_obb.py
buzhidaoshenme/YOLOX-OBB
df5211cab0571232c0f7c4827b89a4b14947a5b0
[ "Apache-2.0" ]
36
2021-11-02T12:11:44.000Z
2022-03-28T13:43:31.000Z
yolox/data/data_augment_obb.py
Miki-lin/YOLOXR
16eb48c76e97c36e4f53e40ee74115799238eea9
[ "Apache-2.0" ]
5
2021-10-05T03:33:24.000Z
2022-02-22T06:13:46.000Z
yolox/data/data_augment_obb.py
Miki-lin/YOLOXR
16eb48c76e97c36e4f53e40ee74115799238eea9
[ "Apache-2.0" ]
10
2021-10-17T08:52:49.000Z
2022-03-24T03:26:16.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright (c) Megvii, Inc. and its affiliates. """ Data augmentation functionality. Passed as callable transformations to Dataset classes. The data augmentation procedures were interpreted from @weiliu89's SSD paper http://arxiv.org/abs/1512.02325 """ import math import...
33.145511
111
0.568279
6606a2e843eeeb1f1af4611e7b3599aa188c286b
734
py
Python
ank/components/zmq_producer.py
sunary/ank
f5c783aa51227aea9d8860c649533deed3149852
[ "MIT" ]
61
2016-06-21T23:43:38.000Z
2021-11-21T14:23:46.000Z
ank/components/zmq_producer.py
sunary/ank
f5c783aa51227aea9d8860c649533deed3149852
[ "MIT" ]
3
2018-10-01T23:48:00.000Z
2018-10-01T23:56:58.000Z
ank/components/zmq_producer.py
sunary/ank
f5c783aa51227aea9d8860c649533deed3149852
[ "MIT" ]
4
2016-06-27T12:36:15.000Z
2019-12-27T08:05:32.000Z
__author__ = 'sunary' from ank.components.pipe_app import PipeApp try: import zmq except ImportError: raise ImportError('pyzmq not found') class ZeroMqProducer(PipeApp): """ Push message to queue """ def init_app(self, uri='', topic=''): """ Args: uri (st...
20.971429
68
0.585831
c5d3edd916354ed8eeea564c781636ccea1e03f0
341
py
Python
swd/tools/address.py
rrgodhorus/swd_django
96058a72a151299e8ebadb04a82460ccca8864b4
[ "MIT" ]
null
null
null
swd/tools/address.py
rrgodhorus/swd_django
96058a72a151299e8ebadb04a82460ccca8864b4
[ "MIT" ]
1
2018-04-25T00:10:51.000Z
2018-04-25T00:10:51.000Z
swd/tools/address.py
rrgodhorus/swd_django
96058a72a151299e8ebadb04a82460ccca8864b4
[ "MIT" ]
null
null
null
from .dev_info import address def index(request): from main.models import Student for bitsId, addr in address: print(bitsId) try: student = Student.objects.get(bitsId=bitsId) student.address = addr student.save() print('pass') except: ...
26.230769
56
0.56305
353d49fb2aa341e74610eef072c9aede1a4b9a62
3,553
py
Python
examples/M4_competition/evaluate_prophet.py
LeoTafti/darts
210605fafb730de564e3d723ab3919ed94da42b9
[ "Apache-2.0" ]
1
2021-07-15T11:12:05.000Z
2021-07-15T11:12:05.000Z
examples/M4_competition/evaluate_prophet.py
LeoTafti/darts
210605fafb730de564e3d723ab3919ed94da42b9
[ "Apache-2.0" ]
1
2021-02-02T11:22:36.000Z
2021-02-02T11:22:36.000Z
examples/M4_competition/evaluate_prophet.py
LeoTafti/darts
210605fafb730de564e3d723ab3919ed94da42b9
[ "Apache-2.0" ]
null
null
null
"""Evaluating Prophet model on M4 timeseries """ from darts.models import Prophet from darts.utils.statistics import check_seasonality from darts.utils import _build_tqdm_iterator import numpy as np import pandas as pd import pickle as pkl from M4_metrics import owa_m4, mase_m4, smape_m4 if __name__ == "__main__"...
41.313953
97
0.504363
8ef70ee40a372503d391aa8a50542b3325a78d56
3,006
py
Python
tests/_main.py
brsynth/brs-libs
32622ec98d9233bb0a05ca014c86ff2d623c8b04
[ "MIT" ]
null
null
null
tests/_main.py
brsynth/brs-libs
32622ec98d9233bb0a05ca014c86ff2d623c8b04
[ "MIT" ]
null
null
null
tests/_main.py
brsynth/brs-libs
32622ec98d9233bb0a05ca014c86ff2d623c8b04
[ "MIT" ]
null
null
null
""" Created on Jul 15 2020 @author: Joan Hérisson """ from unittest import TestCase from pathlib import Path from os import stat as os_stat class Main(TestCase): __test__ = False # def test(self): # # print(self.__class__.__name__) # if self.__class__.__name__ == 'Main': # self...
27.327273
102
0.564538
9fe8c69c730a715d3b1614d37b99119c7ebce93f
2,274
py
Python
experiments/syn_sampleE/run_inference.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
null
null
null
experiments/syn_sampleE/run_inference.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
null
null
null
experiments/syn_sampleE/run_inference.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
null
null
null
import os import sys import time import json from simpleference.inference.inference import run_inference_n5 from simpleference.backends.gunpowder.tensorflow.backend import TensorflowPredict from simpleference.backends.gunpowder.preprocess import preprocess def single_gpu_inference(path, gpu, iteration): assert o...
39.894737
111
0.632806
6fea58f619da98f9bb30d5bb21faffbf24685f76
2,407
py
Python
data/p4VQE/R4/benchmark/startQiskit201.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit201.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit201.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=10 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.044944
118
0.632738
3652e940968a1794dabcad46c178f8e248054028
1,091
py
Python
templating/tutorial/tests.py
chenmich/pyramid_quick_tutorial
2fc52c55178e385026b30785bf9b53559b2b4c5f
[ "MIT" ]
null
null
null
templating/tutorial/tests.py
chenmich/pyramid_quick_tutorial
2fc52c55178e385026b30785bf9b53559b2b4c5f
[ "MIT" ]
null
null
null
templating/tutorial/tests.py
chenmich/pyramid_quick_tutorial
2fc52c55178e385026b30785bf9b53559b2b4c5f
[ "MIT" ]
null
null
null
import unittest from pyramid import testing class TutorialViewTests(unittest.TestCase): def setUp(self): self.config = testing.setUp() def tearDown(self): testing.tearDown() def test_home(self): from .views import home request = testing.DummyRequest() response...
27.275
56
0.623281
edfb5ec904c7696c2bfea82d2fd396639e6b3ada
792
py
Python
Problem Solving Strategy/Dynamic Programming/pebble.py
homveloper/Algorithm
ae2e063d75a3ecc2537f97ede002450b45da4aa5
[ "Apache-2.0" ]
null
null
null
Problem Solving Strategy/Dynamic Programming/pebble.py
homveloper/Algorithm
ae2e063d75a3ecc2537f97ede002450b45da4aa5
[ "Apache-2.0" ]
null
null
null
Problem Solving Strategy/Dynamic Programming/pebble.py
homveloper/Algorithm
ae2e063d75a3ecc2537f97ede002450b45da4aa5
[ "Apache-2.0" ]
null
null
null
import random as rand from pprint import pprint import sys sys.setrecursionlimit(100000) w = [[rand.randint(0,10) for j in range(20)] for i in range(3)] pattern = [ [0,1,1,0], [1,0,1,1], [1,1,0,0], [0,1,0,0] ] def pebble(i,p): if i == 0: if(p<3): return w[p][1] else:...
17.6
63
0.483586
87f2cd825db719b1fca0bc5a6b11e6afd1aa42b1
221
py
Python
rebrandly_integration/rebrandly_integration/doctype/rebrandly_link/test_rebrandly_link.py
iRaySpace/rebrandly-integration
b3cdfd8ccdf25bd12921fe1d7b110c4fff7f0541
[ "MIT" ]
3
2019-01-26T02:03:41.000Z
2020-12-07T22:12:42.000Z
rebrandly_integration/rebrandly_integration/doctype/rebrandly_link/test_rebrandly_link.py
iRaySpace/rebrandly-integration
b3cdfd8ccdf25bd12921fe1d7b110c4fff7f0541
[ "MIT" ]
null
null
null
rebrandly_integration/rebrandly_integration/doctype/rebrandly_link/test_rebrandly_link.py
iRaySpace/rebrandly-integration
b3cdfd8ccdf25bd12921fe1d7b110c4fff7f0541
[ "MIT" ]
2
2019-01-26T02:03:46.000Z
2022-03-07T15:23:05.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, Ivan Ray Altomera and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestRebrandlyLink(unittest.TestCase): pass
20.090909
56
0.773756
de01d8fa799d91775a75015b44b0a2391736023c
8,700
bzl
Python
bazel/repositories.bzl
ddelnano/pixie
5210a1e992152f6ed1ef87756913cbcfd29912c2
[ "Apache-2.0" ]
null
null
null
bazel/repositories.bzl
ddelnano/pixie
5210a1e992152f6ed1ef87756913cbcfd29912c2
[ "Apache-2.0" ]
null
null
null
bazel/repositories.bzl
ddelnano/pixie
5210a1e992152f6ed1ef87756913cbcfd29912c2
[ "Apache-2.0" ]
null
null
null
# Copyright 2018- The Pixie Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
45.789474
181
0.712529
960668324d0407327fcf4402ebf01a3dd5fb9757
150
py
Python
Lib/Scripts/glyphs/transform/scale.py
gferreira/hTools2
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
[ "BSD-3-Clause" ]
11
2015-01-06T15:43:56.000Z
2019-07-27T00:35:20.000Z
hTools2.roboFontExt/lib/Scripts/selected glyphs/transform/scale.py
gferreira/hTools2_extension
9e5150082a0a39847c1078aac3dc38d914a44f83
[ "BSD-3-Clause" ]
2
2017-08-08T21:02:17.000Z
2019-12-18T15:55:48.000Z
Lib/Scripts/glyphs/transform/scale.py
gferreira/hTools2
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
[ "BSD-3-Clause" ]
4
2015-01-10T13:58:50.000Z
2019-12-18T15:40:14.000Z
# [h] scale glyphs dialog import hTools2.dialogs.glyphs.scale reload(hTools2.dialogs.glyphs.scale) hTools2.dialogs.glyphs.scale.scaleGlyphsDialog()
21.428571
48
0.813333
80bb790c38194880399506add8e06933ed4b0cb3
1,024
py
Python
backend/common/management/commands/celery.py
arineto/home_expenses
6120f86aca360d2aed71285c2073da905ce5e91d
[ "MIT" ]
null
null
null
backend/common/management/commands/celery.py
arineto/home_expenses
6120f86aca360d2aed71285c2073da905ce5e91d
[ "MIT" ]
null
null
null
backend/common/management/commands/celery.py
arineto/home_expenses
6120f86aca360d2aed71285c2073da905ce5e91d
[ "MIT" ]
null
null
null
# pylint: skip-file import getpass import shlex from subprocess import PIPE # nosec from django.core.management.base import BaseCommand from django.utils.autoreload import run_with_reloader import psutil def restart_celery(): for proc in psutil.process_iter(): if proc.username() != getpass.getuser(): ...
31.030303
84
0.681641
0c1bb34f09629dd8bde2612e6cb899d7afbb6b83
17,198
py
Python
metadata_sync/metadata/_metadata.py
alex-ip/metadata_sync
a6b9de7e1fe1d3bae8669ec41cd09407e3e0afbc
[ "Apache-2.0" ]
null
null
null
metadata_sync/metadata/_metadata.py
alex-ip/metadata_sync
a6b9de7e1fe1d3bae8669ec41cd09407e3e0afbc
[ "Apache-2.0" ]
null
null
null
metadata_sync/metadata/_metadata.py
alex-ip/metadata_sync
a6b9de7e1fe1d3bae8669ec41cd09407e3e0afbc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Metadata module Author: Alex Ip (alex.ip@ga.gov.au) """ import pickle import logging import os logger = logging.getLogger(__name__) class MetadataException(Exception): pass class Metadata(object): """Superclass of all metadata types Manages master dict containing all metadata...
44.097436
119
0.603559
84574f9e2750e4bc2baf1f093d9a1a65a5875db7
1,944
py
Python
pico/PICO_requirements/bno055.py
albioninnovate/sensors_telescope
0f84c6b41cdf7b80d774b4d2656b766fef23b104
[ "CC-BY-4.0" ]
null
null
null
pico/PICO_requirements/bno055.py
albioninnovate/sensors_telescope
0f84c6b41cdf7b80d774b4d2656b766fef23b104
[ "CC-BY-4.0" ]
null
null
null
pico/PICO_requirements/bno055.py
albioninnovate/sensors_telescope
0f84c6b41cdf7b80d774b4d2656b766fef23b104
[ "CC-BY-4.0" ]
null
null
null
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board # for the bno055 import busio # import bitbangio import adafruit_bno055 # fr the LCD import lcd_rgb # Use these lines for I2C bno_SDA = board.GP18 bno_SCL = board.GP19 i2c = busi...
21.842697
104
0.586934
dc3a72f16f31bc5be57737383ca9310a2b704dbd
1,216
py
Python
kaleidoscope/qiskit/overload/statevector.py
QuSTaR/kaleidoscope
42e3c1fac30e1c1248cfa6e011615e3c9c636d16
[ "Apache-2.0" ]
9
2020-04-22T15:59:56.000Z
2021-01-25T16:27:18.000Z
kaleidoscope/qiskit/overload/statevector.py
JanLahmann/kaleidoscope
5806c8de312caa7ce8e35f338190bd7a34183dbe
[ "Apache-2.0" ]
51
2020-06-04T19:13:14.000Z
2021-01-25T13:01:55.000Z
kaleidoscope/qiskit/overload/statevector.py
JanLahmann/kaleidoscope
5806c8de312caa7ce8e35f338190bd7a34183dbe
[ "Apache-2.0" ]
4
2020-04-22T15:59:58.000Z
2021-01-25T14:32:21.000Z
# -*- coding: utf-8 -*- # This file is part of Kaleidoscope. # # (C) Copyright IBM 2020. # # 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...
27.636364
77
0.690789
0b652d58974a96ab77945bb3683ff3dd15577d0e
988
py
Python
TrendEngine/calculations/routes.py
OlaMag/TrendEngine
296b41c7b24dda754bced7e44d362b0f90b36bd4
[ "MIT" ]
7
2020-01-20T07:10:34.000Z
2021-06-15T08:00:31.000Z
TrendEngine/calculations/routes.py
magdziarek/TrendEngine
296b41c7b24dda754bced7e44d362b0f90b36bd4
[ "MIT" ]
3
2020-03-31T07:35:21.000Z
2021-10-06T06:26:55.000Z
TrendEngine/calculations/routes.py
OlaMag/TrendEngine
296b41c7b24dda754bced7e44d362b0f90b36bd4
[ "MIT" ]
1
2020-05-07T06:32:41.000Z
2020-05-07T06:32:41.000Z
from flask import Flask, render_template, url_for, request, flash, Blueprint import jinja2 # for running R packages from rpy2.robjects.packages import importr # local imports from .dbest import do_dbest from .polytrend import do_polytrend ### import R's utility package ## only has to be done the first time the appli...
29.058824
76
0.719636
1d249aa526e613fe0b5c4192dfea5d75c97d2bb7
1,205
py
Python
Elements/FeedPost.py
ReQezeR/laragram-automated-tests
0d273023783f9c3c64c08e1b7b9141ad20131e0a
[ "MIT" ]
null
null
null
Elements/FeedPost.py
ReQezeR/laragram-automated-tests
0d273023783f9c3c64c08e1b7b9141ad20131e0a
[ "MIT" ]
null
null
null
Elements/FeedPost.py
ReQezeR/laragram-automated-tests
0d273023783f9c3c64c08e1b7b9141ad20131e0a
[ "MIT" ]
null
null
null
from selenium.webdriver.common.by import By from Elements.BasicElement import BasicElement class FeedPostLocators: POST_HEADER = (By.CLASS_NAME, "card-body.p-3") POST_HEADER_USER_IMAGE = (By.TAG_NAME, "img") POST_HEADER_USER_NAME = (By.TAG_NAME, "a") POST_IMAGE = (By.XPATH, "//*[@alt='Post image']") ...
40.166667
104
0.7361
e62b55eb4b110c24ed5ab68733c6928b1156e33c
523
py
Python
smol/load.py
umitkaanusta/smol-elt
95a616b8171eef5074c0b3eb7a63264854797334
[ "MIT" ]
2
2020-10-02T00:21:01.000Z
2020-10-08T17:07:43.000Z
smol/load.py
umitkaanusta/smol-elt
95a616b8171eef5074c0b3eb7a63264854797334
[ "MIT" ]
null
null
null
smol/load.py
umitkaanusta/smol-elt
95a616b8171eef5074c0b3eb7a63264854797334
[ "MIT" ]
null
null
null
from sqlalchemy.orm import Session from typing import List from smol import db_models def load_record(db: Session, posting: dict): record = db_models.Record(**posting) # If the record already exists, just pass # Each job posting's timestamp is unique if db.query(db_models.Record).filter_by(date_poste...
26.15
84
0.713193
83dde405ed6e53290da5357815e7765f2bae3b74
619
py
Python
dataset/fine3dmatch.py
VinAIResearch/PointSWD
ea676926e21286185e836ab355fee7937540ce69
[ "Apache-2.0" ]
4
2021-11-06T10:24:21.000Z
2022-02-23T10:12:38.000Z
dataset/fine3dmatch.py
VinAIResearch/PointSWD
ea676926e21286185e836ab355fee7937540ce69
[ "Apache-2.0" ]
null
null
null
dataset/fine3dmatch.py
VinAIResearch/PointSWD
ea676926e21286185e836ab355fee7937540ce69
[ "Apache-2.0" ]
null
null
null
import glob import os import numpy as np import torch.utils.data as data class Fine3dMatchDataset(data.Dataset): def __init__(self, root): super().__init__() self.root = root flistname = os.path.join(root, "*.npz") self.flistname = sorted(glob.glob(flistname), key=lambda fname: in...
29.47619
115
0.644588
51fd81dc1852b516a1dbb7d2eaeb1ebbf5f7d664
525
py
Python
python/perfect-numbers/perfect_numbers.py
christine-court/exercism
0e8fbac1c75ee09003d470352e82b076e2816c44
[ "MIT" ]
null
null
null
python/perfect-numbers/perfect_numbers.py
christine-court/exercism
0e8fbac1c75ee09003d470352e82b076e2816c44
[ "MIT" ]
null
null
null
python/perfect-numbers/perfect_numbers.py
christine-court/exercism
0e8fbac1c75ee09003d470352e82b076e2816c44
[ "MIT" ]
null
null
null
def classify(number): if not number > 0: raise ValueError("Number must be greater than zero") elif number == 1: return "deficient" import math factors = {1} for i in range(2, int(math.sqrt(number)) + 1): if number % i == 0: factors = factors.union([i, number // ...
25
60
0.56