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
02cb5d97e788824e9b10f579335958cc5debfb94
11,389
py
Python
data/external/repositories/282756/dsb_caffe-master/scripts/calcEF_3c.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/282756/dsb_caffe-master/scripts/calcEF_3c.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/282756/dsb_caffe-master/scripts/calcEF_3c.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
import dicom, lmdb, cv2, re, sys import os, fnmatch, shutil, subprocess from IPython.utils import io import numpy as np np.random.seed(1234) import matplotlib.pyplot as plt import warnings import pickle import operator import json with open('SETTINGS.json', 'r') as f: settings = json.load(f) if len(sys.argv)>1: ...
34.617021
120
0.574941
7750931cc3eed281e6ef05f5a8b6aa7947e0e2ff
2,987
py
Python
hard/154_find_minimum_in_rotated_sorted_array_ii.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
hard/154_find_minimum_in_rotated_sorted_array_ii.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
hard/154_find_minimum_in_rotated_sorted_array_ii.py
niki4/leetcode_py3
794f560a09a8950da21bd58ea222e0c74449ffa6
[ "MIT" ]
null
null
null
""" Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). Find the minimum element. The array may contain duplicates. Example 1: Input: [1,3,5] Output: 1 Example 2: Input: [2,2,2,0,1] Output: 0 Note: This is a follow ...
27.657407
120
0.56545
0c106193ad724c70453c03d0f65faa31bf382da6
1,466
py
Python
saefportal/datasets/views/note_views.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datasets/views/note_views.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datasets/views/note_views.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
1
2020-12-16T15:02:52.000Z
2020-12-16T15:02:52.000Z
from django.contrib.auth.decorators import login_required from django.shortcuts import render from django.views.decorators.csrf import csrf_exempt from datasets.models import Dataset, Note @login_required def create_note(request): dataset_id = request.POST.get("dataset_id", None) note_text = request.POST.get...
40.722222
118
0.773533
1df5d6f72dbad576034f052e560eb0a298155242
35,397
py
Python
src/sage/interfaces/giac.py
sloebrich/sage
b8f53f72e817e78722ad1b40d70aa9071426700b
[ "BSL-1.0" ]
1
2020-03-29T18:28:05.000Z
2020-03-29T18:28:05.000Z
src/sage/interfaces/giac.py
sbt4104/sage
2cbd93e0b78dec701f4b7ad9271d3b1e967bcd6c
[ "BSL-1.0" ]
null
null
null
src/sage/interfaces/giac.py
sbt4104/sage
2cbd93e0b78dec701f4b7ad9271d3b1e967bcd6c
[ "BSL-1.0" ]
null
null
null
r""" Pexpect Interface to Giac (You should prefer the cython interface: giacpy_sage and its libgiac command) (adapted by F. Han from William Stein and Gregg Musiker maple's interface) You must have the Giac interpreter installed and available as the command ``giac`` in your PATH in order to use this interface. You n...
28.801465
371
0.534706
94aefdf257220dea915e23d5cf1916992c3eff34
10,024
py
Python
sdk/python/pulumi_azure_native/devtestlab/v20160515/get_lab.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/devtestlab/v20160515/get_lab.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/devtestlab/v20160515/get_lab.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
39.620553
357
0.672187
bc66bdf83323bc3f67dd616bce77dfeebb6ef677
19,191
py
Python
autogl/module/train/sampling/sampler/layer_dependent_importance_sampler.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
824
2020-11-30T14:38:07.000Z
2022-03-19T10:14:04.000Z
autogl/module/train/sampling/sampler/layer_dependent_importance_sampler.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
38
2020-12-21T12:32:57.000Z
2022-01-31T02:32:05.000Z
autogl/module/train/sampling/sampler/layer_dependent_importance_sampler.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
85
2020-12-21T05:16:09.000Z
2022-03-28T08:44:22.000Z
import numpy as np import scipy.sparse as sp import torch import torch.utils.data import typing as _typing import torch_geometric from . import target_dependant_sampler class _LayerDependentImportanceSampler( target_dependant_sampler.BasicLayerWiseTargetDependantSampler ): """ Obsolete implementation, unu...
39.98125
114
0.605284
37908ea83895ab0cbf7891dd417bfe1533276d32
9,858
py
Python
wofrysrw/storage_ring/srw_electron_beam.py
PaNOSC-ViNYL/wofrysrw
0b69374d1820b13f553dc53cd957f8727c127f41
[ "MIT" ]
null
null
null
wofrysrw/storage_ring/srw_electron_beam.py
PaNOSC-ViNYL/wofrysrw
0b69374d1820b13f553dc53cd957f8727c127f41
[ "MIT" ]
1
2019-02-14T09:48:08.000Z
2019-02-14T15:37:49.000Z
wofrysrw/storage_ring/srw_electron_beam.py
PaNOSC-ViNYL/wofrysrw
0b69374d1820b13f553dc53cd957f8727c127f41
[ "MIT" ]
null
null
null
import numpy from vinyl_srw.srwlib import SRWLPartBeam from syned.storage_ring.electron_beam import ElectronBeam from wofrysrw.srw_object import SRWObject class SRWElectronBeamDecorator(): def to_SRWLPartBeam(self): pass @classmethod def from_SRWLPartBeam(cls, srw_part_beam, number_of_bunches ...
52.43617
156
0.549807
facddd4e9646aec70ca2ab035a9e4863da5b9802
68
py
Python
Topsis_Yashmin_101903272/__init__.py
yashmin-singla/Topsis_Yashmin_101903272
fc33b50ac88f8fd48f3b326004cd1e7b6ebfa158
[ "MIT" ]
null
null
null
Topsis_Yashmin_101903272/__init__.py
yashmin-singla/Topsis_Yashmin_101903272
fc33b50ac88f8fd48f3b326004cd1e7b6ebfa158
[ "MIT" ]
null
null
null
Topsis_Yashmin_101903272/__init__.py
yashmin-singla/Topsis_Yashmin_101903272
fc33b50ac88f8fd48f3b326004cd1e7b6ebfa158
[ "MIT" ]
null
null
null
from Topsis_Yashmin_101903272.topsis import rank __version__='v1.2'
22.666667
48
0.852941
5a9b3dc7a0cbebb68f43682dff2ee75333fc3beb
6,063
py
Python
pepper_variant/modules/python/models/hyperband.py
Samteymoori/pepper
734d226de47a855952e3b58145c1fcfbe221d3b4
[ "MIT" ]
155
2019-11-08T09:55:24.000Z
2022-03-30T08:38:34.000Z
pepper_variant/modules/python/models/hyperband.py
Samteymoori/pepper
734d226de47a855952e3b58145c1fcfbe221d3b4
[ "MIT" ]
131
2020-04-06T05:02:42.000Z
2022-03-31T07:33:45.000Z
pepper_variant/modules/python/models/hyperband.py
Samteymoori/pepper
734d226de47a855952e3b58145c1fcfbe221d3b4
[ "MIT" ]
24
2019-07-09T18:49:58.000Z
2022-02-21T09:09:38.000Z
from __future__ import print_function import numpy as np from math import log, ceil from time import time, ctime import sys import logging from datetime import datetime """ The Hyperband class used for hyper-parameter optimization. Optimized from: https://github.com/zygmuntz/hyperband """ class Hyperband: """ ...
43
131
0.567871
a67f61d9500715ed9784c6c89e40f80f8154803d
2,187
py
Python
exonum_launcher/launch_state.py
Parfyonator/exonum-launcher
6e5ab8a9c2812619bc16edfd8bb2a7257d9f818c
[ "Apache-2.0" ]
null
null
null
exonum_launcher/launch_state.py
Parfyonator/exonum-launcher
6e5ab8a9c2812619bc16edfd8bb2a7257d9f818c
[ "Apache-2.0" ]
null
null
null
exonum_launcher/launch_state.py
Parfyonator/exonum-launcher
6e5ab8a9c2812619bc16edfd8bb2a7257d9f818c
[ "Apache-2.0" ]
null
null
null
"""Launch process state module""" from typing import Dict, List from .action_result import ActionResult from .configuration import Artifact, Instance class LaunchState: """State of the deploy&init process.""" def __init__(self) -> None: self._pending_deployments: Dict[Artifact, List[str]] = dict() ...
42.882353
88
0.704161
c8962fb63b68b8fc0bfbe5a9d4cba2491529b268
2,235
py
Python
hrapp/hrapp/doctype/hr_appraisal_phase/hr_appraisal_phase.py
flexcomng/hrappe-frappe
14f13b59f0cb8c4629f2e2a094396b38afa8390b
[ "MIT" ]
1
2021-08-16T04:17:22.000Z
2021-08-16T04:17:22.000Z
hrapp/hrapp/doctype/hr_appraisal_phase/hr_appraisal_phase.py
flexcomng/hrappe-frappe
14f13b59f0cb8c4629f2e2a094396b38afa8390b
[ "MIT" ]
null
null
null
hrapp/hrapp/doctype/hr_appraisal_phase/hr_appraisal_phase.py
flexcomng/hrappe-frappe
14f13b59f0cb8c4629f2e2a094396b38afa8390b
[ "MIT" ]
1
2021-08-16T04:17:23.000Z
2021-08-16T04:17:23.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, Youssef Restom and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from frappe.utils import date_diff, nowdate class HRAppraisalPhase(Docu...
38.534483
98
0.60179
a67025add533ea63f0ea9d082599f7f52d66681a
10,262
py
Python
trainbm.py
KongBOy/analyze_11_code
1baef56ba0da74b67e653bbea013e3843034c3f0
[ "MIT" ]
null
null
null
trainbm.py
KongBOy/analyze_11_code
1baef56ba0da74b67e653bbea013e3843034c3f0
[ "MIT" ]
null
null
null
trainbm.py
KongBOy/analyze_11_code
1baef56ba0da74b67e653bbea013e3843034c3f0
[ "MIT" ]
null
null
null
# code to train backward mapping regression from GT world coordinates # models are saved in checkpoints-bm/ import pytorch_ssim import recon_lossc from utils import show_unwarp_tnsboard, get_lr from loaders import get_loader from models import get_model from tqdm import tqdm from torchvision import utils from torch.ut...
41.379032
232
0.593549
a71405a0674a8389c503a730d510ffa4a1bd798b
244
py
Python
src/parsagon/server/server/permissions.py
Sand1929/parsagon-local-server
353891eb40c4c307151295755139e6d55cea290f
[ "MIT" ]
null
null
null
src/parsagon/server/server/permissions.py
Sand1929/parsagon-local-server
353891eb40c4c307151295755139e6d55cea290f
[ "MIT" ]
null
null
null
src/parsagon/server/server/permissions.py
Sand1929/parsagon-local-server
353891eb40c4c307151295755139e6d55cea290f
[ "MIT" ]
null
null
null
from rest_framework import permissions from django.conf import settings class HasAuthToken(permissions.BasePermission): def has_permission(self, request, view): return request.META.get('HTTP_PARSAGON_API_KEY') == settings.API_KEY
30.5
76
0.790984
5a71c24fb6ae9ae838bb60229f3ffabca40fa182
811
py
Python
magenta/version.py
Rancerle/Clarkson_Magenta
38fe21582d43efa1441f82f4c271682f1e33869e
[ "Apache-2.0" ]
null
null
null
magenta/version.py
Rancerle/Clarkson_Magenta
38fe21582d43efa1441f82f4c271682f1e33869e
[ "Apache-2.0" ]
null
null
null
magenta/version.py
Rancerle/Clarkson_Magenta
38fe21582d43efa1441f82f4c271682f1e33869e
[ "Apache-2.0" ]
null
null
null
# 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 required by applicable law or ag...
38.619048
76
0.765721
fe3cc1865f245e2fa34a998dd7475e3083dfce28
2,807
py
Python
test.py
sintrb/pmongo
07778f2cd54395723696e139d2ed189ec46bd529
[ "MIT" ]
null
null
null
test.py
sintrb/pmongo
07778f2cd54395723696e139d2ed189ec46bd529
[ "MIT" ]
null
null
null
test.py
sintrb/pmongo
07778f2cd54395723696e139d2ed189ec46bd529
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -* ''' Created on 2018-06-15 @author: trb ''' # base use # import from pmongo.document import Document from pmongo.utils import get_mongo_db db = get_mongo_db(dbname='test') # define document class class Data(Document): db = db class Meta: ordering = ['age'] # new a instance...
20.947761
143
0.64161
81175ca0fac9197456ef7abaf8168f4c13626600
1,370
py
Python
tests/terraform/checks/resource/gcp/test_GoogleCloudPostgreSqlLogConnection.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
1
2022-02-20T21:20:39.000Z
2022-02-20T21:20:39.000Z
tests/terraform/checks/resource/gcp/test_GoogleCloudPostgreSqlLogConnection.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
3
2022-03-07T20:37:31.000Z
2022-03-21T20:20:14.000Z
tests/terraform/checks/resource/gcp/test_GoogleCloudPostgreSqlLogConnection.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
null
null
null
import unittest from pathlib import Path from checkov.runner_filter import RunnerFilter from checkov.terraform.checks.resource.gcp.GoogleCloudPostgreSqlLogConnection import check from checkov.terraform.runner import Runner class TestGoogleCloudPostgreSqlLogConnection(unittest.TestCase): def test(self): #...
31.136364
109
0.70438
cb2113a566031f8fd02a2d3a8eaf24fc404d9383
852
py
Python
neurokit2/signal/signal_sanitize.py
BelleJohn/neuropsychology-NeuroKit
d01111b9b82364d28da01c002e6cbfc45d9493d9
[ "MIT" ]
1
2020-12-31T17:48:11.000Z
2020-12-31T17:48:11.000Z
neurokit2/signal/signal_sanitize.py
BelleJohn/neuropsychology-NeuroKit
d01111b9b82364d28da01c002e6cbfc45d9493d9
[ "MIT" ]
null
null
null
neurokit2/signal/signal_sanitize.py
BelleJohn/neuropsychology-NeuroKit
d01111b9b82364d28da01c002e6cbfc45d9493d9
[ "MIT" ]
2
2021-12-25T15:39:49.000Z
2021-12-25T15:44:16.000Z
# -*- coding: utf-8 -*- import pandas as pd def signal_sanitize(signal): """Reset indexing for Pandas Series Parameters ---------- signal : Series The indexed input signal (pandas set_index()) Returns ------- Series The default indexed signal Examples -------- ...
23.027027
86
0.596244
9415ef12c9660495e51c4430f0c5cd7464ac271e
584
py
Python
elle/urls.py
lydiah2015/Egram
aaa2d6927c6364791157396365940efa5b07c6a4
[ "MIT" ]
null
null
null
elle/urls.py
lydiah2015/Egram
aaa2d6927c6364791157396365940efa5b07c6a4
[ "MIT" ]
5
2021-03-19T00:51:12.000Z
2021-09-08T01:00:13.000Z
elle/urls.py
lydiah2015/Egram
aaa2d6927c6364791157396365940efa5b07c6a4
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import url from django.conf.urls.static import static from . import views urlpatterns=[ url('^$',views.today_photos,name='today_photos'), url(r"^add/image/$", views.add_image, name = "add_image"), url(r"^accounts/profile/$", views.my_profile, name =...
36.5
81
0.700342
683c26003e4ed83739111ca5a8baf917773b2229
900
py
Python
xcal3d/testload.py
eruffaldi/pyxcal3d
443fb7c0c9168dbd2dc39816198933172682bde2
[ "Apache-2.0" ]
2
2017-09-10T13:31:04.000Z
2017-12-31T03:48:53.000Z
xcal3d/testload.py
eruffaldi/pyxcal3d
443fb7c0c9168dbd2dc39816198933172682bde2
[ "Apache-2.0" ]
null
null
null
xcal3d/testload.py
eruffaldi/pyxcal3d
443fb7c0c9168dbd2dc39816198933172682bde2
[ "Apache-2.0" ]
null
null
null
from xcal3d import * if __name__ == "__main__": import sys import os f = sys.argv[1] ext = os.path.splitext(f)[1] if ext == ".xaf": source = open(f,"rb") pa = AnimationParser() a = pa.load(source) allbones = set([t.boneid for t in a.tracks]) if len(sys.argv) > 2 and sys.argv[2].endswith("xsf"): pa ...
22.5
55
0.608889
1751b963515c7d7b24b46e4278a7b1e1d6f23a00
3,187
py
Python
dataactbroker/helpers/sam_wsdl_helper.py
dael-victoria-reyes/data-act-broker-backend
f83c7cad29cac24d95f45a262710dc1564de7dc1
[ "CC0-1.0" ]
1
2019-06-22T21:53:16.000Z
2019-06-22T21:53:16.000Z
dataactbroker/helpers/sam_wsdl_helper.py
dael-victoria-reyes/data-act-broker-backend
f83c7cad29cac24d95f45a262710dc1564de7dc1
[ "CC0-1.0" ]
null
null
null
dataactbroker/helpers/sam_wsdl_helper.py
dael-victoria-reyes/data-act-broker-backend
f83c7cad29cac24d95f45a262710dc1564de7dc1
[ "CC0-1.0" ]
null
null
null
import logging import urllib.error from dataactcore.utils.responseException import ResponseException from dataactcore.utils.statusCode import StatusCode from dataactcore.config import CONFIG_BROKER logger = logging.getLogger(__name__) def config_valid(): """ Does the config have the necessary bits for talkin...
33.547368
116
0.680264
92c127af67b4b8b8e61a1f05ad0493c75c8e263f
313
py
Python
saas/migrations/0010_0_4_0.py
gikoluo/djaodjin-saas
badd7894ac327191008a1b3a0ebd0d07b55908c3
[ "BSD-2-Clause" ]
383
2015-03-07T06:19:39.000Z
2022-03-12T20:53:37.000Z
saas/migrations/0010_0_4_0.py
gikoluo/djaodjin-saas
badd7894ac327191008a1b3a0ebd0d07b55908c3
[ "BSD-2-Clause" ]
146
2015-03-25T22:45:44.000Z
2022-02-22T08:49:35.000Z
saas/migrations/0010_0_4_0.py
gikoluo/djaodjin-saas
badd7894ac327191008a1b3a0ebd0d07b55908c3
[ "BSD-2-Clause" ]
111
2015-02-12T22:13:07.000Z
2022-03-11T05:45:53.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-03-22 01:11 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('saas', '0009_0_3_5'), ] operations = [ ]
18.411765
49
0.674121
24ca01d37eb9465d128ba94de9795430e0dfc675
1,130
py
Python
contest/migrations/0002_entry.py
RevolutionTech/flamingo
d66f8c7c754de0fcc6ccc9fd5f0d0d44eea3891e
[ "0BSD" ]
1
2015-12-25T12:25:41.000Z
2015-12-25T12:25:41.000Z
contest/migrations/0002_entry.py
RevolutionTech/flamingo
d66f8c7c754de0fcc6ccc9fd5f0d0d44eea3891e
[ "0BSD" ]
150
2017-11-02T04:49:05.000Z
2022-03-12T01:02:40.000Z
contest/migrations/0002_entry.py
RevolutionTech/flamingo
d66f8c7c754de0fcc6ccc9fd5f0d0d44eea3891e
[ "0BSD" ]
null
null
null
import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("photo", "0001_initial"), ("contest", "0001_initial")] operations = [ migrations.CreateModel( name="Entry", fields=[ ( ...
28.974359
85
0.39469
7fe1438d178ea3e599e424cec6f0aa1fe2864c74
1,208
py
Python
examples/pre_answers.py
SteinRobert/python-inquirer
2bb4a308beb03868295ea68edb7702bbb515a12c
[ "MIT" ]
640
2015-01-05T11:57:21.000Z
2022-03-31T17:56:48.000Z
examples/pre_answers.py
SteinRobert/python-inquirer
2bb4a308beb03868295ea68edb7702bbb515a12c
[ "MIT" ]
130
2015-01-11T13:09:52.000Z
2022-03-30T19:15:10.000Z
examples/pre_answers.py
SteinRobert/python-inquirer
2bb4a308beb03868295ea68edb7702bbb515a12c
[ "MIT" ]
99
2015-02-14T04:01:08.000Z
2022-03-27T06:25:41.000Z
import os import sys from pprint import pprint sys.path.append(os.path.realpath(".")) import inquirer # noqa if __name__ == "__main__": questions = [ inquirer.Text("user", message="Please enter your github username", validate=lambda _, x: x != "."), inquirer.Password("password", message="Please ...
30.2
107
0.593543
b1e92f39211d9e49463fd74613bcbf862e3b39b9
186
py
Python
architecture_tool_django/nodes/apps.py
goldginkgo/architecture_tool_django
e4229c5938a4dd01d0877afa7b93daf68e09283b
[ "MIT" ]
1
2021-08-13T01:37:29.000Z
2021-08-13T01:37:29.000Z
architecture_tool_django/nodes/apps.py
goldginkgo/architecture_tool_django
e4229c5938a4dd01d0877afa7b93daf68e09283b
[ "MIT" ]
null
null
null
architecture_tool_django/nodes/apps.py
goldginkgo/architecture_tool_django
e4229c5938a4dd01d0877afa7b93daf68e09283b
[ "MIT" ]
1
2021-07-19T07:57:54.000Z
2021-07-19T07:57:54.000Z
from django.apps import AppConfig class NodesConfig(AppConfig): name = "architecture_tool_django.nodes" def ready(self): import architecture_tool_django.nodes.signals
20.666667
53
0.758065
d9a0cd6365ccab2a213a58b3f8e767f9f08f69bd
34,486
py
Python
src/csnContext.py
msteghofer/CSnake
8663a0ddeea99363dbcf6654aadfabbecd01f22f
[ "BSD-4-Clause" ]
null
null
null
src/csnContext.py
msteghofer/CSnake
8663a0ddeea99363dbcf6654aadfabbecd01f22f
[ "BSD-4-Clause" ]
null
null
null
src/csnContext.py
msteghofer/CSnake
8663a0ddeea99363dbcf6654aadfabbecd01f22f
[ "BSD-4-Clause" ]
null
null
null
## @package csnContext # Definition of the Context and ContextData class. import ConfigParser import OrderedSet import re import csnProject import csnUtility import csnKDevelop import csnVisualStudio2003 import csnVisualStudio2005 import csnVisualStudio2008 import csnVisualStudio2010 import csnVisualStudio2012 import ...
38.835586
189
0.62869
7a4ee7192ef668c37cae108ece47ab3c0beadfc1
51
py
Python
pybamm/models/submodels/electrolyte/stefan_maxwell/__init__.py
jedgedrudd/PyBaMM
79c9d34978382d50e09adaf8bf74c8fa4723f759
[ "BSD-3-Clause" ]
1
2019-10-29T19:06:04.000Z
2019-10-29T19:06:04.000Z
pybamm/models/submodels/electrolyte/stefan_maxwell/__init__.py
jedgedrudd/PyBaMM
79c9d34978382d50e09adaf8bf74c8fa4723f759
[ "BSD-3-Clause" ]
null
null
null
pybamm/models/submodels/electrolyte/stefan_maxwell/__init__.py
jedgedrudd/PyBaMM
79c9d34978382d50e09adaf8bf74c8fa4723f759
[ "BSD-3-Clause" ]
null
null
null
from . import conductivity from . import diffusion
17
26
0.803922
0bde67e8c80f56c468b0dc031018917d4ef02c92
10,112
py
Python
extractor/extractor.py
jennis0/pdf2vtt
4aad37ef3dfce4d83f3a2744856879598cd4446f
[ "MIT" ]
null
null
null
extractor/extractor.py
jennis0/pdf2vtt
4aad37ef3dfce4d83f3a2744856879598cd4446f
[ "MIT" ]
null
null
null
extractor/extractor.py
jennis0/pdf2vtt
4aad37ef3dfce4d83f3a2744856879598cd4446f
[ "MIT" ]
null
null
null
from ast import parse import os from data_loaders.cached_loader_wrapper import CachedLoaderWrapper from extractor.creature_schema import CreatureSchema from preprocessing.columniser import Columniser from data_loaders.data_loader_interface import DataLoaderInterface from configparser import ConfigParser from logging ...
39.346304
174
0.579608
97695e9b80c63dbabbe46a588da1d4f25036317b
7,106
py
Python
tools/release/release.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
tools/release/release.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
tools/release/release.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging import os import re import shutil from dataclasses import dataclass from enum import Enum from functools import lru_cache from pathlib import Path from typing import Dict, List, Tuple import hydra import requests from hydra.core.conf...
32.009009
112
0.636645
fa79c6c9e0322b7353d3fefa9c8e50e6869518e7
4,816
py
Python
decode.py
AdrianDrechsel/nvidia-jasper-german
b6f0dd5d74b8f1961573034d99a7278322babd3f
[ "Apache-2.0" ]
11
2020-01-29T23:17:55.000Z
2022-02-09T10:40:16.000Z
decode.py
AdrianDrechsel/nvidia-jasper-german
b6f0dd5d74b8f1961573034d99a7278322babd3f
[ "Apache-2.0" ]
null
null
null
decode.py
AdrianDrechsel/nvidia-jasper-german
b6f0dd5d74b8f1961573034d99a7278322babd3f
[ "Apache-2.0" ]
1
2021-05-04T16:10:10.000Z
2021-05-04T16:10:10.000Z
import os import json import pickle import time import numpy as np import toml import click import ctcdecode from audiomate import annotations import evalmate from evalmate import evaluator from ctc_decoders import Scorer from ctc_decoders import ctc_beam_search_decoder_batch, ctc_beam_search_decoder def get_logit...
34.156028
85
0.610673
fcbfa71ee562326750abaf7f57fe80d06e958eb5
26,230
py
Python
tidings/events.py
Mozilla-GitHub-Standards/4a4749ba7d28fec451e80ed9de9947acce774a0b4c7db797dc32439740ac770d
818465d581145ce740b8bc18f1148093a857ed79
[ "BSD-3-Clause" ]
null
null
null
tidings/events.py
Mozilla-GitHub-Standards/4a4749ba7d28fec451e80ed9de9947acce774a0b4c7db797dc32439740ac770d
818465d581145ce740b8bc18f1148093a857ed79
[ "BSD-3-Clause" ]
null
null
null
tidings/events.py
Mozilla-GitHub-Standards/4a4749ba7d28fec451e80ed9de9947acce774a0b4c7db797dc32439740ac770d
818465d581145ce740b8bc18f1148093a857ed79
[ "BSD-3-Clause" ]
null
null
null
from collections import Sequence from smtplib import SMTPException import random from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.contenttypes.models import ContentType from django.core import mail from django.db.models import Q from django.utils.six import iteritems,...
43.212521
79
0.630538
453ae08d66cdb16a25420735d8c5d4559fad9ff7
10,131
py
Python
qa/rpc-tests/listtransactions.py
fasterpool/Reden
642742bbf12ea202753b3fe0f8d6a965485eb9db
[ "MIT" ]
7
2018-05-16T03:02:19.000Z
2019-11-04T22:46:07.000Z
qa/rpc-tests/listtransactions.py
fasterpool/Reden
642742bbf12ea202753b3fe0f8d6a965485eb9db
[ "MIT" ]
16
2018-04-12T03:25:51.000Z
2018-05-12T18:01:23.000Z
qa/rpc-tests/listtransactions.py
fasterpool/Reden
642742bbf12ea202753b3fe0f8d6a965485eb9db
[ "MIT" ]
16
2018-05-27T19:48:16.000Z
2019-03-27T18:01:05.000Z
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the listtransactions API from test_framework.test_framework import BitcoinTestFramework from ...
50.153465
113
0.59846
8c73cbdc98e3de32b3463aabc471b9956d9c02ad
2,468
py
Python
irc/util.py
leandropls/tornadoirc
d7051e090db59f8183e4262af5e8437fdc6bf404
[ "BSD-3-Clause" ]
3
2015-09-07T12:48:56.000Z
2016-01-15T16:42:39.000Z
irc/util.py
leandropls/tornadoirc
d7051e090db59f8183e4262af5e8437fdc6bf404
[ "BSD-3-Clause" ]
null
null
null
irc/util.py
leandropls/tornadoirc
d7051e090db59f8183e4262af5e8437fdc6bf404
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from .exceptions import CommandError from inspect import signature import functools, sys, os import logging logger = logging.getLogger('tornado.general') def log_exceptions(f): '''Catch exception in method, format message and log it.''' @functools.wraps(f) def wrapper(*args, **kwargs): ...
32.473684
96
0.56564
9cc8c0dfe2a90c154a7c7f9cf5d6a727a9a1adb6
149,693
py
Python
pandas/core/indexes/base.py
nocibambi/pandas
b85f6c18906cb69edfa883d9bc83ed29b416d0d2
[ "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/base.py
nocibambi/pandas
b85f6c18906cb69edfa883d9bc83ed29b416d0d2
[ "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/base.py
nocibambi/pandas
b85f6c18906cb69edfa883d9bc83ed29b416d0d2
[ "BSD-3-Clause" ]
1
2020-08-09T13:31:07.000Z
2020-08-09T13:31:07.000Z
from datetime import datetime, timedelta import warnings import operator import numpy as np from pandas._libs import (lib, index as libindex, tslib as libts, algos as libalgos, join as libjoin, Timedelta) from pandas._libs.lib import is_datetime_array from pandas.co...
34.231191
79
0.558483
b81166d7ba05b81f06878f7115f3bb98c0686f2a
630
py
Python
plynx/utils/executor.py
plynx-team/plynx
4b53ca3500c629f1c0201cc8f4910a1f2a276a32
[ "Apache-2.0" ]
100
2020-03-12T05:14:48.000Z
2022-03-30T09:26:53.000Z
plynx/utils/executor.py
plynx-team/plynx
4b53ca3500c629f1c0201cc8f4910a1f2a276a32
[ "Apache-2.0" ]
48
2020-03-12T00:54:51.000Z
2022-03-15T02:52:14.000Z
plynx/utils/executor.py
plynx-team/plynx
4b53ca3500c629f1c0201cc8f4910a1f2a276a32
[ "Apache-2.0" ]
24
2020-04-23T03:14:37.000Z
2022-03-27T12:10:49.000Z
import plynx.db.node import plynx.utils.exceptions import plynx.utils.plugin_manager def materialize_executor(node_dict): """ Create a Node object from a dictionary Parameters: node_dict (dict): dictionary representation of a Node Returns: Node: Derived from plynx.nodes.base.Node class "...
27.391304
92
0.701587
5584eb3bf10704b29bad1b9548d156a76ede9398
692
py
Python
multidimensional_optimization/stochastic/adaptive_method.py
avdosev/optimization_methods
fc65a983b6a925a6b2a3285ed87a277f03db2bba
[ "MIT" ]
13
2019-10-17T07:46:38.000Z
2022-03-14T20:11:03.000Z
multidimensional_optimization/stochastic/adaptive_method.py
avdosev/optimization_methods
fc65a983b6a925a6b2a3285ed87a277f03db2bba
[ "MIT" ]
null
null
null
multidimensional_optimization/stochastic/adaptive_method.py
avdosev/optimization_methods
fc65a983b6a925a6b2a3285ed87a277f03db2bba
[ "MIT" ]
9
2019-10-04T09:12:31.000Z
2021-12-07T17:03:50.000Z
import numpy as np from typing import Callable, List def adaptive_method(func: Callable[[np.array], float], x0, M: int, N: int, a: float = 1.5, b: float = 0.5, eps: float = 0.0001): x = x0 t = 1 k = 0 j = 1 while k < N: e = np.random.uniform(-1, 1, len(x)) y = x + t * e / np.linalg...
20.969697
128
0.369942
cec33ee01060106c4481392dbc8b889a2667b30d
1,262
py
Python
output/models/ms_data/model_groups/mg_i009_xsd/mg_i009.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/model_groups/mg_i009_xsd/mg_i009.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/model_groups/mg_i009_xsd/mg_i009.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List, Optional @dataclass class Foo: class Meta: name = "foo" choice: List[object] = field( default_factory=list, metadata={ "type": "Elements", "choices": ( { "name...
22.535714
64
0.313788
96262fbdb4cb72c31591b30bb2c47728bea0552e
1,246
py
Python
python-algorithm/leetcode/problem_85.py
isudox/nerd-algorithm
c1fbe153953cf3fc24395f75d102016fdf9ea0fa
[ "MIT" ]
5
2017-06-11T09:19:34.000Z
2019-01-16T16:58:31.000Z
python-algorithm/leetcode/problem_85.py
isudox/leetcode-solution
60085e64deaf396a171367affc94b18114565c43
[ "MIT" ]
5
2020-03-22T13:53:54.000Z
2020-03-23T08:49:35.000Z
python-algorithm/leetcode/problem_85.py
isudox/nerd-algorithm
c1fbe153953cf3fc24395f75d102016fdf9ea0fa
[ "MIT" ]
1
2019-03-02T15:50:43.000Z
2019-03-02T15:50:43.000Z
"""85. Maximal Rectangle https://leetcode.com/problems/maximal-rectangle/ Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example: Input: [ ["1","0","1","0","0"], ["1","0","1","1","1"], ["1","1","1","1","1"], ["1","0","0","1","0"] ] Output: 6 ...
27.688889
76
0.491974
4f238f8882689e3c82dbcba58a3e1e54d841fd9d
579
py
Python
migrations/versions/2016_11_24_fb7167c99f57_rename_mollie_transaction_to_transcation.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
11
2015-04-23T21:57:56.000Z
2019-04-28T12:48:58.000Z
migrations/versions/2016_11_24_fb7167c99f57_rename_mollie_transaction_to_transcation.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
1
2016-10-05T14:10:58.000Z
2016-10-05T14:12:23.000Z
migrations/versions/2016_11_24_fb7167c99f57_rename_mollie_transaction_to_transcation.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
3
2016-10-05T14:00:42.000Z
2019-01-16T14:33:43.000Z
"""Rename mollie transaction to transcation. Revision ID: fb7167c99f57 Revises: 4c55d2bbbe3 Create Date: 2016-11-24 15:59:58.994689 """ from alembic import op # revision identifiers, used by Alembic. revision = 'fb7167c99f57' down_revision = '4c55d2bbbe3' def upgrade(): # commands auto generated by Alembic - p...
23.16
57
0.740933
740a7ff0c07debc398dd415d39046ad7e5af605c
23,098
py
Python
test.py
xmhbbovru/one-pair-shortest
b2f56323ed43aea97e3a8dbe2ab6b93dd4787832
[ "BSL-1.0" ]
1
2015-12-05T00:59:07.000Z
2015-12-05T00:59:07.000Z
test.py
xmhbbovru/one-pair-shortest
b2f56323ed43aea97e3a8dbe2ab6b93dd4787832
[ "BSL-1.0" ]
null
null
null
test.py
xmhbbovru/one-pair-shortest
b2f56323ed43aea97e3a8dbe2ab6b93dd4787832
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/env python # test.py rev 28 Jan 2014 Stuart Ambler # Tests and times breadth first search algorithms bfs1,2 using graphs # generated and read in by gendata functions. # Copyright (c) 2014 Stuart Ambler. # Distributed under the Boost License in the accompanying file LICENSE. from __future__ import print_func...
43.417293
80
0.545891
ebca43a2c8e74c095a4b686d9aa4ac9702e934c1
7,342
py
Python
build.py
jabbalaci/nimpykot
195cc673f3d3fa40fe717ea5a24915b21372eaaa
[ "MIT" ]
4
2018-10-10T06:18:02.000Z
2019-04-18T20:36:55.000Z
build.py
jabbalaci/nimpykot
195cc673f3d3fa40fe717ea5a24915b21372eaaa
[ "MIT" ]
null
null
null
build.py
jabbalaci/nimpykot
195cc673f3d3fa40fe717ea5a24915b21372eaaa
[ "MIT" ]
3
2019-03-01T13:33:01.000Z
2021-11-01T17:21:52.000Z
#!/usr/bin/env python3 """ pynt's build file https://github.com/rags/pynt pynt is a minimalistic build tool, which is * easy to learn / easy to use * build tasks are just Python funtions * automatically generates a command line interface Installation: $ sudo pip3 install pynt Usage: $ pynt """ import os import s...
25.143836
100
0.60188
01eb6a3623a0f5676f988c61906ed4eb2560548f
263
py
Python
lib/schema/__init__.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
12
2018-01-24T20:58:10.000Z
2021-12-21T15:02:10.000Z
lib/schema/__init__.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
4
2018-01-13T14:39:45.000Z
2020-11-25T00:05:27.000Z
lib/schema/__init__.py
mrmansano/sublime-ycmd
fece62f0ce4e9cbf96ed8ba07f5cecb24b21427e
[ "MIT" ]
2
2018-10-23T17:13:44.000Z
2019-05-12T04:10:17.000Z
#!/usr/bin/env python3 ''' lib/schema sublime-ycmd json schema definitions. ''' from .request import RequestParameters # noqa from .completions import ( # noqa Completions, CompletionOption, Diagnostics, DiagnosticError, )
17.533333
50
0.657795
7f08a486e4313f60217d53ea9ee8424991061a76
8,639
py
Python
tests/test_datatype.py
clohr/model-service
dca436188e062fd07dfe589ee61e8bb97aa3ea98
[ "Apache-2.0" ]
null
null
null
tests/test_datatype.py
clohr/model-service
dca436188e062fd07dfe589ee61e8bb97aa3ea98
[ "Apache-2.0" ]
null
null
null
tests/test_datatype.py
clohr/model-service
dca436188e062fd07dfe589ee61e8bb97aa3ea98
[ "Apache-2.0" ]
1
2021-03-18T14:17:10.000Z
2021-03-18T14:17:10.000Z
from datetime import datetime, timezone import pytest from server.models import datatypes as dt def test_simple_type_decoding(): assert dt.deserialize('"Boolean"') == dt.Boolean() assert dt.deserialize('"Double"') == dt.Double() assert dt.deserialize('"Long"') == dt.Long() assert dt.deserialize('"St...
35.995833
130
0.573446
4ff3d99e09d92d54fc2db120fd4875a1e549d48a
4,039
py
Python
nova/db/sqlalchemy/migrate_repo/versions/075_convert_bw_usage_to_store_network_id.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
null
null
null
nova/db/sqlalchemy/migrate_repo/versions/075_convert_bw_usage_to_store_network_id.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
null
null
null
nova/db/sqlalchemy/migrate_repo/versions/075_convert_bw_usage_to_store_network_id.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
1
2020-07-24T10:43:58.000Z
2020-07-24T10:43:58.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # 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/...
41.214286
78
0.620451
b5f0f28bdc3fcf2195fc6bcb13cd11b673db9c04
1,251
py
Python
tests/test_sentiment.py
eads/twittersentiment
03615b2219b61bc5c0efa959b38d4b05b509fd8e
[ "MIT" ]
7
2017-11-29T15:05:41.000Z
2020-05-30T00:02:53.000Z
tests/test_sentiment.py
eads/twittersentiment
03615b2219b61bc5c0efa959b38d4b05b509fd8e
[ "MIT" ]
null
null
null
tests/test_sentiment.py
eads/twittersentiment
03615b2219b61bc5c0efa959b38d4b05b509fd8e
[ "MIT" ]
1
2018-06-04T00:50:37.000Z
2018-06-04T00:50:37.000Z
""" Unit tests for `sentiment.py`, our wrapper for the Twitter API and utilities for working with the data. """ import pytest from sentiment import search, search_flat, summarize def test_simplified_download(): results = search_flat({ 'q': 'rosemary', 'count': 100 }) assert 100 == len(res...
21.947368
76
0.615508
68bae69fd3b9c7591aae448a5e186cfb5cbef890
3,870
py
Python
foreman/data_refinery_foreman/foreman/management/commands/run_tximport.py
erflynn/refinebio
4ead4082a6b98f7fc8cffdc62c4394338a577f3d
[ "BSD-3-Clause" ]
null
null
null
foreman/data_refinery_foreman/foreman/management/commands/run_tximport.py
erflynn/refinebio
4ead4082a6b98f7fc8cffdc62c4394338a577f3d
[ "BSD-3-Clause" ]
null
null
null
foreman/data_refinery_foreman/foreman/management/commands/run_tximport.py
erflynn/refinebio
4ead4082a6b98f7fc8cffdc62c4394338a577f3d
[ "BSD-3-Clause" ]
null
null
null
"""This management command will queue tximport jobs for experiments which haven't been completely processed yet. It will only do so for experiments which are over the minimum thresholds for running tximport and which haven't had tximport run yet. It also will only run for experiments with a single organism since we don...
37.211538
100
0.68863
35feffea2ffc54bbd931389086658133af15a60b
920
py
Python
EarlyStopping.py
atlan-antillia/EfficientDet-USA-RoadSigns
7fba0c355bf6aec8ae7d191873ce5c860738ff72
[ "Apache-2.0" ]
null
null
null
EarlyStopping.py
atlan-antillia/EfficientDet-USA-RoadSigns
7fba0c355bf6aec8ae7d191873ce5c860738ff72
[ "Apache-2.0" ]
null
null
null
EarlyStopping.py
atlan-antillia/EfficientDet-USA-RoadSigns
7fba0c355bf6aec8ae7d191873ce5c860738ff72
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
28.75
74
0.709783
b21c7a100429d77be308b8123d23332eb3421b5c
11,624
py
Python
mergify_engine/branch_updater.py
HarshCasper/mergify-engine
02d0a682c14db1c3fefeef4895645161cbb40f4f
[ "Apache-2.0" ]
null
null
null
mergify_engine/branch_updater.py
HarshCasper/mergify-engine
02d0a682c14db1c3fefeef4895645161cbb40f4f
[ "Apache-2.0" ]
null
null
null
mergify_engine/branch_updater.py
HarshCasper/mergify-engine
02d0a682c14db1c3fefeef4895645161cbb40f4f
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2018–2021 Mergify SAS # # 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 appl...
37.986928
113
0.598159
a9f791a791e590f6f9f84a7f62e098088f8b0176
1,125
py
Python
ServerStatus/urls.py
TN-1/ServerStatus
fcb9a2bddf06cc83edfb7fcf7b7535d22ff6f6bf
[ "MIT" ]
null
null
null
ServerStatus/urls.py
TN-1/ServerStatus
fcb9a2bddf06cc83edfb7fcf7b7535d22ff6f6bf
[ "MIT" ]
null
null
null
ServerStatus/urls.py
TN-1/ServerStatus
fcb9a2bddf06cc83edfb7fcf7b7535d22ff6f6bf
[ "MIT" ]
null
null
null
"""ServerStatus URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
40.178571
79
0.690667
2b1a2cd5df2f4578af3e3e1e0d463725a045dfa1
1,096
py
Python
service-1/app.py
PhilipL1/project-2
e59890708585f5c99dfcdd15080c2411db935cbb
[ "Unlicense" ]
null
null
null
service-1/app.py
PhilipL1/project-2
e59890708585f5c99dfcdd15080c2411db935cbb
[ "Unlicense" ]
null
null
null
service-1/app.py
PhilipL1/project-2
e59890708585f5c99dfcdd15080c2411db935cbb
[ "Unlicense" ]
null
null
null
from flask import Flask, render_template from flask_sqlalchemy import SQLAlchemy import requests from os import getenv #from SQLAlchemy import desc app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URI') db = SQLAlchemy(app) class Fortunes(db.Model): id = db.Column(db.Integer, pr...
27.4
87
0.687956
c6f72da7cb32a0cde45b6ab20c892710d02598fd
2,443
py
Python
checkov/common/checks_infra/solvers/attribute_solvers/__init__.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/common/checks_infra/solvers/attribute_solvers/__init__.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/common/checks_infra/solvers/attribute_solvers/__init__.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
from checkov.common.checks_infra.solvers.attribute_solvers.any_attribute_solver import AnyResourceSolver from checkov.common.checks_infra.solvers.attribute_solvers.contains_attribute_solver import ContainsAttributeSolver from checkov.common.checks_infra.solvers.attribute_solvers.not_contains_attribute_solver import Not...
116.333333
138
0.92632
e296d527aa20286f3ddd1a7d56bd69f8e4d775f4
28,718
py
Python
model_zoo/official/recommend/wide_and_deep_multitable/src/wide_and_deep.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
null
null
null
model_zoo/official/recommend/wide_and_deep_multitable/src/wide_and_deep.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
null
null
null
model_zoo/official/recommend/wide_and_deep_multitable/src/wide_and_deep.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
44.942097
120
0.594993
acb540467c71d2e65c32effe01036296b08c2ae6
294
py
Python
samples/LuceneInAction/ScoreTest.py
romanchyla/pylucene-trunk
990079ff0c76b972ce5ef2bac9b85334a0a1f27a
[ "Apache-2.0" ]
15
2015-05-21T09:28:01.000Z
2022-03-18T23:41:49.000Z
samples/LuceneInAction/ScoreTest.py
fnp/pylucene
fb16ac375de5479dec3919a5559cda02c899e387
[ "Apache-2.0" ]
1
2021-09-30T03:59:43.000Z
2021-09-30T03:59:43.000Z
samples/LuceneInAction/ScoreTest.py
romanchyla/pylucene-trunk
990079ff0c76b972ce5ef2bac9b85334a0a1f27a
[ "Apache-2.0" ]
13
2015-04-18T23:05:11.000Z
2021-11-29T21:23:26.000Z
import os, sys, unittest, lucene lucene.initVM() baseDir = os.path.dirname(os.path.abspath(sys.argv[0])) sys.path.append(baseDir) import lia.searching.ScoreTest from lucene import System System.setProperty("index.dir", os.path.join(baseDir, 'index')) unittest.main(lia.searching.ScoreTest)
22.615385
63
0.772109
ee20355eddb610aef4f365a92b99f259ad2c05ef
2,479
py
Python
src/viz.py
CloudRenderVR/human-motion-prediction-pytorch-uncertainty
cb96f3b2d8a2b54916b2f3f76c1c9b982af5b46b
[ "MIT" ]
null
null
null
src/viz.py
CloudRenderVR/human-motion-prediction-pytorch-uncertainty
cb96f3b2d8a2b54916b2f3f76c1c9b982af5b46b
[ "MIT" ]
null
null
null
src/viz.py
CloudRenderVR/human-motion-prediction-pytorch-uncertainty
cb96f3b2d8a2b54916b2f3f76c1c9b982af5b46b
[ "MIT" ]
null
null
null
"""Functions to visualize human poses""" import matplotlib.pyplot as plt import data_utils import numpy as np import h5py import os from mpl_toolkits.mplot3d import Axes3D class Ax3DPose(object): def __init__(self, ax, lcolor="#3498db", rcolor="#e74c3c"): """ Create a 3d pose visualizer that can be updated ...
33.958904
100
0.60831
13ccc34ce5cd3c8ebb0298fbd65684648eccf8ce
2,617
py
Python
app/api_1_0/student.py
youhaowei/ifriends-api
4f4483d91ec7e726a5c301a0c3cc1db1b6592f8f
[ "MIT" ]
null
null
null
app/api_1_0/student.py
youhaowei/ifriends-api
4f4483d91ec7e726a5c301a0c3cc1db1b6592f8f
[ "MIT" ]
null
null
null
app/api_1_0/student.py
youhaowei/ifriends-api
4f4483d91ec7e726a5c301a0c3cc1db1b6592f8f
[ "MIT" ]
null
null
null
from flask_restful import reqparse, Resource from ..helpers import token_required, auth_required, role_required from ..models import Role, User from .. import mongo class StudentsAPI(Resource): def __init__(self): self.postParser = reqparse.RequestParser() self.postParser.add_argument('first_name...
40.890625
66
0.669469
da18d991829ef9231db0135c9a4056f4eb0f3184
15,100
py
Python
keystone/api/os_oauth1.py
rajivmucheli/keystone
d55099d4a17e3672d478aae8c367bcdf9af15fb9
[ "Apache-2.0" ]
null
null
null
keystone/api/os_oauth1.py
rajivmucheli/keystone
d55099d4a17e3672d478aae8c367bcdf9af15fb9
[ "Apache-2.0" ]
4
2020-02-10T12:02:37.000Z
2021-07-14T15:16:57.000Z
keystone/api/os_oauth1.py
rajivmucheli/keystone
d55099d4a17e3672d478aae8c367bcdf9af15fb9
[ "Apache-2.0" ]
5
2019-06-06T15:11:37.000Z
2021-06-07T08:23:23.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
39.94709
79
0.665629
5a8a3cbd36c69804dcd869345fe0b058f662d94f
11,737
py
Python
tests/manifolds/test_hyperbolic.py
navigator8972/pymanopt
b9f53fa2d187c22ae75f65c71aeeb2bfa8b9c37f
[ "BSD-3-Clause" ]
null
null
null
tests/manifolds/test_hyperbolic.py
navigator8972/pymanopt
b9f53fa2d187c22ae75f65c71aeeb2bfa8b9c37f
[ "BSD-3-Clause" ]
null
null
null
tests/manifolds/test_hyperbolic.py
navigator8972/pymanopt
b9f53fa2d187c22ae75f65c71aeeb2bfa8b9c37f
[ "BSD-3-Clause" ]
null
null
null
import autograd.numpy as np from numpy import testing as np_testing from pymanopt.manifolds import PoincareBall from ._manifold_tests import ManifoldTestCase class TestSinglePoincareBallManifold(ManifoldTestCase): def setUp(self): self.n = 50 self.manifold = PoincareBall(self.n) super()...
37.378981
79
0.623584
f5fc4bf48221386e3d0c850e5b846127435f6c35
1,925
py
Python
src/login.py
xStellacy/YouTubeUploader
163e6a0e7d1cc158232f9fb82666891774efebf3
[ "MIT" ]
102
2021-04-16T13:52:23.000Z
2022-03-23T14:33:44.000Z
src/login.py
xStellacy/YouTubeUploader
163e6a0e7d1cc158232f9fb82666891774efebf3
[ "MIT" ]
11
2021-04-28T09:36:23.000Z
2022-03-08T18:40:26.000Z
src/login.py
xStellacy/YouTubeUploader
163e6a0e7d1cc158232f9fb82666891774efebf3
[ "MIT" ]
25
2021-04-17T17:11:18.000Z
2022-02-28T18:35:13.000Z
import json from typing import Dict, List from selenium.webdriver.common.by import By from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait """ Login module """ def domain_to_url(domain: str)...
38.5
100
0.662338
b11f20ff47bae0241899f4a0b23169871687afec
1,969
py
Python
qark/plugins/manifest/debuggable.py
op01/qark
0acf116ece6d62ecb4a310b6dea402b8ac884160
[ "Apache-2.0", "OpenSSL" ]
2,943
2015-08-14T22:05:40.000Z
2022-03-29T09:17:43.000Z
qark/plugins/manifest/debuggable.py
op01/qark
0acf116ece6d62ecb4a310b6dea402b8ac884160
[ "Apache-2.0", "OpenSSL" ]
254
2015-08-16T06:38:35.000Z
2022-02-11T14:02:23.000Z
qark/plugins/manifest/debuggable.py
op01/qark
0acf116ece6d62ecb4a310b6dea402b8ac884160
[ "Apache-2.0", "OpenSSL" ]
672
2015-08-17T03:27:13.000Z
2022-03-28T05:08:04.000Z
from qark.scanner.plugin import ManifestPlugin from qark.issue import Severity, Issue import logging log = logging.getLogger(__name__) class DebuggableManifest(ManifestPlugin): def __init__(self): super(DebuggableManifest, self).__init__(category="manifest", name="Manifest is manually set to debug", ...
53.216216
138
0.540884
cb167940d057db34ac14c43c48ae896c27dada94
1,368
py
Python
setup.py
bubenkoff/django-auth-fogbugz
71c621a2483d504eeb45448a67bee37504ebcf32
[ "BSD-3-Clause" ]
null
null
null
setup.py
bubenkoff/django-auth-fogbugz
71c621a2483d504eeb45448a67bee37504ebcf32
[ "BSD-3-Clause" ]
3
2015-04-24T20:48:19.000Z
2021-06-10T20:34:07.000Z
setup.py
bubenkoff/django-auth-fogbugz
71c621a2483d504eeb45448a67bee37504ebcf32
[ "BSD-3-Clause" ]
2
2015-02-25T16:40:00.000Z
2015-05-01T09:15:16.000Z
#!/usr/bin/env python from setuptools import setup, find_packages import django_auth_fogbugz setup( name="django-auth-fogbugz", version=django_auth_fogbugz.version_string, description="Django FogBugz authentication backend", long_description=open('README.rst').read(), url="https://github.com/dougn/...
41.454545
92
0.652778
5bd2eab47e46f15b6bd99a10c3db6f6f00c9879a
881
py
Python
cepan/_time_period.py
kanga333/cepan
73f2cc58c0482e9548a5f0684fcbe88f3eadce2e
[ "MIT" ]
1
2021-04-08T12:18:08.000Z
2021-04-08T12:18:08.000Z
cepan/_time_period.py
kanga333/cepan
73f2cc58c0482e9548a5f0684fcbe88f3eadce2e
[ "MIT" ]
null
null
null
cepan/_time_period.py
kanga333/cepan
73f2cc58c0482e9548a5f0684fcbe88f3eadce2e
[ "MIT" ]
null
null
null
import datetime from dataclasses import dataclass from typing import Dict, Union _date_format = "%Y-%m-%d" _time_format = "%Y-%m-%dT%H:%M:%SZ" @dataclass class TimePeriod: """The time period of the request. See also: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_DateInterval.htm...
26.69697
93
0.668558
8148818a6aedd8d37375be92a8a3e7e7126aa2ce
2,881
py
Python
tests/test_vis.py
ys7yoo/eyekit
3a5a40ab26ef253a5d7456424c2cb142669fe635
[ "MIT" ]
null
null
null
tests/test_vis.py
ys7yoo/eyekit
3a5a40ab26ef253a5d7456424c2cb142669fe635
[ "MIT" ]
null
null
null
tests/test_vis.py
ys7yoo/eyekit
3a5a40ab26ef253a5d7456424c2cb142669fe635
[ "MIT" ]
null
null
null
from tempfile import TemporaryDirectory from pathlib import Path import eyekit sentence = "The quick brown fox [jump]{stem_1}[ed]{suffix_1} over the lazy dog." txt = eyekit.TextBlock( sentence, position=(100, 500), font_face="Times New Roman", font_size=36 ) seq = eyekit.FixationSequence( [ [106, 490, ...
37.415584
83
0.593197
c1d818b37e30248c35c5051a0a185f457adcb1d8
8,539
py
Python
pymc4/scopes.py
jdehning/pymc4
6b4e7af81083af271704aff9c74300161d783b23
[ "Apache-2.0" ]
1
2021-01-13T15:20:20.000Z
2021-01-13T15:20:20.000Z
pymc4/scopes.py
jdehning/pymc4
6b4e7af81083af271704aff9c74300161d783b23
[ "Apache-2.0" ]
null
null
null
pymc4/scopes.py
jdehning/pymc4
6b4e7af81083af271704aff9c74300161d783b23
[ "Apache-2.0" ]
null
null
null
"""Module that defines scope classes to easily create name scopes or any other kind of scope.""" from typing import Optional, List, Any, Callable, Generator, Union import threading class Scope(object): """ General purpose variable scoping. PyMC4 scopes intended to store useful information during forward ...
35.139918
110
0.579459
940970491065471e9c3c016e3aa3fd4fb66295b1
2,107
py
Python
tests/unittests/modules/test_pacmanpkg.py
buddwm/hubble
b384ee48556ca144ae6f09dd0b45db29288e5293
[ "Apache-2.0" ]
363
2017-01-10T22:02:47.000Z
2022-03-21T10:44:40.000Z
tests/unittests/modules/test_pacmanpkg.py
buddwm/hubble
b384ee48556ca144ae6f09dd0b45db29288e5293
[ "Apache-2.0" ]
439
2017-01-12T22:39:42.000Z
2021-10-11T18:43:28.000Z
tests/unittests/modules/test_pacmanpkg.py
buddwm/hubble
b384ee48556ca144ae6f09dd0b45db29288e5293
[ "Apache-2.0" ]
138
2017-01-05T22:10:59.000Z
2021-09-01T14:35:00.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: Eric Vz <eric@base10.org> ''' from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import TestCase, skipIf from tests.support.mock import ( MagicMock, patch, NO_MOCK, NO_MOCK_REASON ) import hubblestack.modules.pacmanpkg as pacman ...
32.415385
110
0.612245
6603eda8099ce74eb09793b4dccbf98a8c50de9e
1,545
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_11_Webscraping/13_uebung_conrad_suche_selenium.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_11_Webscraping/13_uebung_conrad_suche_selenium.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_11_Webscraping/13_uebung_conrad_suche_selenium.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 13_uebung_digitec_suche.py # Dieses Übungsscript soll auf Dicitec nach einem Produkt suchen und # die Suche direkt auf die vorgegebenen Eigenschaften beschränken import os from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from time import...
30.294118
80
0.753398
f1687cd0e5d5d934582acc56de091d1dfb64fece
2,216
py
Python
openapy/commands/generate.py
edge-minato/openapy
c156fad5e64599e17cc1cd64e27daa824fdf98b0
[ "MIT" ]
null
null
null
openapy/commands/generate.py
edge-minato/openapy
c156fad5e64599e17cc1cd64e27daa824fdf98b0
[ "MIT" ]
31
2021-11-18T23:22:01.000Z
2022-03-28T23:33:59.000Z
openapy/commands/generate.py
edge-minato/openapy
c156fad5e64599e17cc1cd64e27daa824fdf98b0
[ "MIT" ]
null
null
null
from argparse import Namespace from pathlib import Path from typing import List from openapy.config import Config, DestinationConfig from openapy.diff import compare_as_function from openapy.io import read_file, write_file from openapy.parser import parse from openapy.render import FilePerFunction from openapy.templat...
40.290909
103
0.695848
dde9338d6dafde93abe8641b486c70889a5b24f2
559
py
Python
modernrpc/tests/testsite/urls.py
germancollado/django-modern-rpc
afba94712b34dc3ab767166adb00f2cef8650365
[ "MIT" ]
89
2016-10-03T15:42:30.000Z
2022-03-05T20:41:34.000Z
modernrpc/tests/testsite/urls.py
germancollado/django-modern-rpc
afba94712b34dc3ab767166adb00f2cef8650365
[ "MIT" ]
39
2017-02-10T16:44:38.000Z
2022-03-10T09:38:16.000Z
modernrpc/tests/testsite/urls.py
germancollado/django-modern-rpc
afba94712b34dc3ab767166adb00f2cef8650365
[ "MIT" ]
17
2017-06-28T17:06:45.000Z
2022-02-13T17:03:25.000Z
from django.conf.urls import url from modernrpc.core import JSONRPC_PROTOCOL, XMLRPC_PROTOCOL from modernrpc.views import RPCEntryPoint urlpatterns = [ url(r'^all-rpc/', RPCEntryPoint.as_view(), name="generic_rpc_entry_point"), url(r'^all-rpc-doc/', RPCEntryPoint.as_view(enable_doc=True, enable_rpc=False), na...
43
116
0.772809
d00c325476451fb1476703ddd6153bafb42469fa
532
py
Python
code/gate_initial.py
Chao-0813/license-plate-recognition
18e95fc80abfd65a429029e23214f70fa5b5ae30
[ "MIT" ]
null
null
null
code/gate_initial.py
Chao-0813/license-plate-recognition
18e95fc80abfd65a429029e23214f70fa5b5ae30
[ "MIT" ]
null
null
null
code/gate_initial.py
Chao-0813/license-plate-recognition
18e95fc80abfd65a429029e23214f70fa5b5ae30
[ "MIT" ]
null
null
null
import time import RPi.GPIO as GPIO CONTROL_PIN = 12 PWM_FREQ = 50 STEP=15 GPIO.setmode(GPIO.BCM) GPIO.setup(CONTROL_PIN, GPIO.OUT) pwm = GPIO.PWM(CONTROL_PIN, PWM_FREQ) pwm.start(0) def angle_to_duty_cycle(angle=0): duty_cycle = (0.05 * PWM_FREQ) + (0.27 * PWM_FREQ * angle / 180) return duty_cycle def swit...
17.733333
68
0.684211
1ee9dbf86c6d8b163847cdcbb04869ba743dd2af
44,272
py
Python
nova/conf/compute.py
mikalstill/nova
99ca7d60b41f63446f86ed9be86440a2b250f330
[ "Apache-2.0" ]
null
null
null
nova/conf/compute.py
mikalstill/nova
99ca7d60b41f63446f86ed9be86440a2b250f330
[ "Apache-2.0" ]
null
null
null
nova/conf/compute.py
mikalstill/nova
99ca7d60b41f63446f86ed9be86440a2b250f330
[ "Apache-2.0" ]
null
null
null
# needs:check_deprecation_status # Copyright 2015 Huawei Technology corp. # Copyright 2015 OpenStack Foundation # 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 a...
34.239753
79
0.738909
6861178eab5ddd8c8c3f5e0ac5cfbff8a5f754df
1,968
py
Python
plantstuff/scraping/scrapers/spiders/plantlust.py
christabor/plantstuff
8515fcc4c86ef0a96f34278d90419e5fad2b48d3
[ "MIT" ]
6
2018-02-08T06:02:40.000Z
2022-03-02T11:29:30.000Z
plantstuff/scraping/scrapers/spiders/plantlust.py
christabor/plantstuff
8515fcc4c86ef0a96f34278d90419e5fad2b48d3
[ "MIT" ]
13
2018-03-07T16:15:22.000Z
2020-03-03T04:50:26.000Z
plantstuff/scraping/scrapers/spiders/plantlust.py
christabor/plantstuff
8515fcc4c86ef0a96f34278d90419e5fad2b48d3
[ "MIT" ]
null
null
null
import scrapy # TODO: THIS SITE USES JS TO RENDER EVERYTHING; # https://blog.scrapinghub.com/2015/03/02/handling-javascript-in-scrapy-with-splash class PlantLustTypeCategoryScraper(scrapy.Spider): """Scrapes any plant 'type' category page.""" def parse_single_page(self, response): """Parse a single ...
33.931034
83
0.618902
784b7c57c7053af719b02adcc21a3ae10be3c009
1,088
py
Python
blogflask/users/utils.py
mlomovic/blogFlask
baa4375634409bf0da91bbfc1838f4ff7ad302be
[ "MIT" ]
null
null
null
blogflask/users/utils.py
mlomovic/blogFlask
baa4375634409bf0da91bbfc1838f4ff7ad302be
[ "MIT" ]
null
null
null
blogflask/users/utils.py
mlomovic/blogFlask
baa4375634409bf0da91bbfc1838f4ff7ad302be
[ "MIT" ]
null
null
null
import os import secrets from PIL import Image from flask import url_for, current_app from flask_mail import Message from blogflask import mail def save_picture(form_picture): # savin picture to file system random_hex = secrets.token_hex(8) _, f_ext = os.path.splitext(form_picture.filename) picture_fn = ...
32
95
0.703125
925ba64101e03b9b7351e4343ead2eb9efe7df71
11,178
py
Python
python/pyfunc-server/pyfuncserver/test_model.py
karzuo/merlin
bdbdac35071d81beb1b8b5b807697bf2eac69a40
[ "Apache-2.0" ]
97
2020-10-15T08:03:56.000Z
2022-03-31T22:30:59.000Z
python/pyfunc-server/pyfuncserver/test_model.py
ibnummuhammad/merlin
acf10a350bcacfdfe67f7020d535467b71ff1d89
[ "Apache-2.0" ]
91
2020-10-26T03:15:27.000Z
2022-03-31T10:19:55.000Z
python/pyfunc-server/pyfuncserver/test_model.py
ibnummuhammad/merlin
acf10a350bcacfdfe67f7020d535467b71ff1d89
[ "Apache-2.0" ]
26
2020-10-21T03:53:36.000Z
2022-03-16T06:43:15.000Z
# Copyright 2020 The Merlin 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...
34.288344
100
0.635981
0e0a73f7fed8f1a2504b04d45fc04b30f5609d4e
2,115
py
Python
docs/conf.py
nikosavola/circuitq
01631988afdd7c1ed979bb06ad94fcf1b68a56f2
[ "MIT" ]
26
2021-04-20T08:51:20.000Z
2022-03-26T22:50:52.000Z
docs/conf.py
nikosavola/circuitq
01631988afdd7c1ed979bb06ad94fcf1b68a56f2
[ "MIT" ]
6
2021-08-02T12:31:30.000Z
2021-09-27T06:44:50.000Z
docs/conf.py
nikosavola/circuitq
01631988afdd7c1ed979bb06ad94fcf1b68a56f2
[ "MIT" ]
7
2021-06-23T02:34:49.000Z
2022-03-18T08:04:46.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
38.454545
79
0.674232
e5a2777a5d246e8e5d9cc4e23cecde470d7d6918
735
py
Python
django_core_models_libs/validation_utils.py
ajaniv/django-core-models
7fde3792de745b5df875e8dc760096f5b10d46ce
[ "MIT" ]
null
null
null
django_core_models_libs/validation_utils.py
ajaniv/django-core-models
7fde3792de745b5df875e8dc760096f5b10d46ce
[ "MIT" ]
15
2016-04-23T17:18:42.000Z
2018-09-06T16:32:48.000Z
django_core_models_libs/validation_utils.py
ajaniv/django-core-models
7fde3792de745b5df875e8dc760096f5b10d46ce
[ "MIT" ]
null
null
null
""" .. module:: django_core_models_libs.validation_utils :synopsis: django_core_models validation utilities module. django_core_models validation utilities module. """ from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ def invalid_iso(entity): """Ge...
27.222222
63
0.703401
c321434455ff23e69a8d4aea07127477987a576f
1,892
py
Python
newston/apps/services/templatetags/calendar_helpers.py
royalharsh/newston
a6690ae913360b9920de615e3a226b92949976b4
[ "Apache-2.0" ]
null
null
null
newston/apps/services/templatetags/calendar_helpers.py
royalharsh/newston
a6690ae913360b9920de615e3a226b92949976b4
[ "Apache-2.0" ]
null
null
null
newston/apps/services/templatetags/calendar_helpers.py
royalharsh/newston
a6690ae913360b9920de615e3a226b92949976b4
[ "Apache-2.0" ]
null
null
null
import calendar from django import template from django.core.urlresolvers import reverse register = template.Library() def get_calendar(year, month): blank_week = [0, 0, 0, 0, 0, 0, 0] calendar.setfirstweekday(calendar.SUNDAY) c = calendar.monthcalendar(year, month) if len(c) == 4: c.append(...
29.5625
96
0.541226
8174a206d13ce54b0f8652bf2d75d15fb6077fa3
1,864
py
Python
nat/daemon_nat_win.py
wanghuafeng/auth_login_tools
b8b8c87d8d9b92c29c1eca6625cf1040d83ecdd0
[ "MIT" ]
3
2017-08-11T20:59:00.000Z
2017-10-04T01:23:24.000Z
nat/daemon_nat_win.py
wanghuafeng/auth_login_tools
b8b8c87d8d9b92c29c1eca6625cf1040d83ecdd0
[ "MIT" ]
null
null
null
nat/daemon_nat_win.py
wanghuafeng/auth_login_tools
b8b8c87d8d9b92c29c1eca6625cf1040d83ecdd0
[ "MIT" ]
1
2018-07-26T02:49:41.000Z
2018-07-26T02:49:41.000Z
# -*- coding: utf-8 -*- import os import re import sys import json import time import codecs import urllib2 import logging kill_ssh_command = 'taskkill /F /IM ssh.exe' ssh_nat_command = r'ssh -f -NR %(server_port)s:127.0.0.1:%(proxy_port)s %(server_login_name)s@%(server_name)s' PATH = os.path.dirname(sys.argv[0]) ...
29.587302
156
0.651288
6571cb88d5a77aa5b3e8fc5382c57cc6e8a0d039
2,350
py
Python
subjects.py
wolfniey/school-diary-telegram-bot
7a50a4649c2cd9f8052f47dbf9ef697bcfa151bd
[ "MIT" ]
2
2020-04-27T10:45:31.000Z
2020-07-28T08:55:55.000Z
subjects.py
wolfniey/school-diary-telegram-bot
7a50a4649c2cd9f8052f47dbf9ef697bcfa151bd
[ "MIT" ]
null
null
null
subjects.py
wolfniey/school-diary-telegram-bot
7a50a4649c2cd9f8052f47dbf9ef697bcfa151bd
[ "MIT" ]
null
null
null
subject = { 1: "Математика", 2: "Алгебра", 3: "Алгебра и начало анализа", 4: "Геометрия", 5: "Русский язык", 6: "Литература", 8: "Иностранный язык", 9: "РТС", 11: "Информатика и ИКТ", 12: "Обществознание", 13: "История", 14: "География", 15: "Природоведение", 16: ...
30.921053
60
0.63617
52262f866b60d480e5f9f7028ca59ba83273c0c8
98
py
Python
background/Estore/User/__init__.py
skypeee/Flask-Estore
5f9f4a4508680cec44dc4beee308859ee274e23e
[ "MIT" ]
null
null
null
background/Estore/User/__init__.py
skypeee/Flask-Estore
5f9f4a4508680cec44dc4beee308859ee274e23e
[ "MIT" ]
null
null
null
background/Estore/User/__init__.py
skypeee/Flask-Estore
5f9f4a4508680cec44dc4beee308859ee274e23e
[ "MIT" ]
null
null
null
from flask.blueprints import Blueprint user = Blueprint('User', __name__) from User import views
19.6
38
0.795918
187982d2f55c97bcaa7ebaf3cf78bfda15efae37
2,985
py
Python
src/hardware_indep/multi/actions.stage.c.py
VPetyaa/t4p4s
ea7e6701e862ce212016ddb7ae002d2246bec79e
[ "Apache-2.0" ]
85
2017-06-17T04:13:52.000Z
2022-03-25T08:28:23.000Z
src/hardware_indep/multi/actions.stage.c.py
VPetyaa/t4p4s
ea7e6701e862ce212016ddb7ae002d2246bec79e
[ "Apache-2.0" ]
31
2017-05-29T17:51:20.000Z
2022-03-16T19:36:12.000Z
src/hardware_indep/multi/actions.stage.c.py
VPetyaa/t4p4s
ea7e6701e862ce212016ddb7ae002d2246bec79e
[ "Apache-2.0" ]
42
2017-03-07T12:17:25.000Z
2021-12-13T09:20:15.000Z
# SPDX-License-Identifier: Apache-2.0 # Copyright 2016 Eotvos Lorand University, Budapest, Hungary from utils.codegen import format_expr, format_type from compiler_common import get_hdrfld_name, generate_var_name, SugarStyle, make_const compiler_common.current_compilation['is_multicompiled'] = True part_count = comp...
42.042254
157
0.644891
4afaaf940b2f705c65fa2ebb97055712fcc5ff6b
5,789
py
Python
tests/test_settings.py
arnavkapoor/dateparser
f884c353863aafca48d35a38ed9a23ddab90bd6a
[ "BSD-3-Clause" ]
1
2021-04-07T09:00:57.000Z
2021-04-07T09:00:57.000Z
tests/test_settings.py
arnavkapoor/dateparser
f884c353863aafca48d35a38ed9a23ddab90bd6a
[ "BSD-3-Clause" ]
null
null
null
tests/test_settings.py
arnavkapoor/dateparser
f884c353863aafca48d35a38ed9a23ddab90bd6a
[ "BSD-3-Clause" ]
null
null
null
from parameterized import parameterized, param from datetime import datetime, tzinfo from tests import BaseTestCase from dateparser.conf import settings from dateparser.conf import apply_settings from dateparser import parse def test_function(settings=None): return settings class TimeZoneSettingsTest(BaseTes...
37.836601
167
0.679392
e87634530d926af507ed77ea26fc69060507edb2
3,100
py
Python
ITM/model.py
rungjoo/dstc10
4a554c88aaea997ecfeda5ee0a8d79e5df34a5f2
[ "MIT" ]
2
2022-01-02T13:04:00.000Z
2022-03-06T05:33:07.000Z
ITM/model.py
rungjoo/dstc10
4a554c88aaea997ecfeda5ee0a8d79e5df34a5f2
[ "MIT" ]
null
null
null
ITM/model.py
rungjoo/dstc10
4a554c88aaea997ecfeda5ee0a8d79e5df34a5f2
[ "MIT" ]
null
null
null
from transformers import RobertaTokenizer, RobertaModel from transformers import DeiTFeatureExtractor, DeiTModel import torch import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import os, sys import pdb class BaseModel(nn.Module): def __init__(self,): super(BaseModel, se...
43.661972
143
0.661935
b57d029c7877bf0db3d63184e19b0eae85158e1e
498
py
Python
memory_analyzer/tests/__init__.py
manjeetbhatia/memory-analyzer
c1761eec8322b4eb978b0cebdf9df1a36a9b67d7
[ "MIT" ]
129
2019-08-15T23:26:24.000Z
2022-02-17T22:02:42.000Z
memory_analyzer/tests/__init__.py
manjeetbhatia/memory-analyzer
c1761eec8322b4eb978b0cebdf9df1a36a9b67d7
[ "MIT" ]
16
2019-10-30T19:35:32.000Z
2022-01-19T08:57:03.000Z
memory_analyzer/tests/__init__.py
manjeetbhatia/memory-analyzer
c1761eec8322b4eb978b0cebdf9df1a36a9b67d7
[ "MIT" ]
12
2019-08-17T22:13:47.000Z
2022-03-08T18:25:12.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from .test_analysis_template import ObjGraphTemplateTests from .test_analysis_utils import AnalysisUtilsTest from .test...
38.307692
65
0.833333
a9e13bb77e456efe584f66c55165a680b882abfa
3,011
py
Python
tests/test_view_functions.py
fareclock/functions-framework-python
b0290550f4596c69c8ba4024826b371d0be7c058
[ "Apache-2.0" ]
1
2022-01-31T06:11:42.000Z
2022-01-31T06:11:42.000Z
tests/test_view_functions.py
fareclock/functions-framework-python
b0290550f4596c69c8ba4024826b371d0be7c058
[ "Apache-2.0" ]
null
null
null
tests/test_view_functions.py
fareclock/functions-framework-python
b0290550f4596c69c8ba4024826b371d0be7c058
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.087912
82
0.675191
855e353e4f1e57b8f265273e86b1eadb37e26601
5,234
py
Python
KERAS_ATT.py
Alanapiereid/Streamlit_KERAS_LSTM_Fake_News
4e2b88eb7b9f13ccf95d87a70afb946211db0059
[ "MIT" ]
null
null
null
KERAS_ATT.py
Alanapiereid/Streamlit_KERAS_LSTM_Fake_News
4e2b88eb7b9f13ccf95d87a70afb946211db0059
[ "MIT" ]
null
null
null
KERAS_ATT.py
Alanapiereid/Streamlit_KERAS_LSTM_Fake_News
4e2b88eb7b9f13ccf95d87a70afb946211db0059
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.datasets import imdb from tensorflow.keras.layers import Embedding, Dense, LSTM, Bidirectional from tensorflow.keras.losses import BinaryCrossentropy from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import Adam from tensorflow.keras.preprocess...
38.20438
182
0.715514
444fadd3a948553f1fea484e6a7788dbaef0e9f0
2,066
py
Python
detect_secrets/plugins/private_key.py
digjanaik/detect-secrets
624024ad5fd8a608e09ed719e5edab6ca95ef47e
[ "Apache-2.0" ]
null
null
null
detect_secrets/plugins/private_key.py
digjanaik/detect-secrets
624024ad5fd8a608e09ed719e5edab6ca95ef47e
[ "Apache-2.0" ]
1
2020-08-12T21:57:16.000Z
2020-08-12T21:57:16.000Z
detect_secrets/plugins/private_key.py
digjanaik/detect-secrets
624024ad5fd8a608e09ed719e5edab6ca95ef47e
[ "Apache-2.0" ]
null
null
null
""" This code was extracted in part from https://github.com/pre-commit/pre-commit-hooks. Using similar heuristic logic, we adapted it to fit our plugin infrastructure, to create an organized, concerted effort in detecting all type of secrets in code. Copyright (c) 2014 pre-commit dev team: Anthony Sottile, Ken Struys ...
37.563636
78
0.731365
1e45f08901d1683d9c150d53035aa8c1597e0c01
1,587
py
Python
examples/legacy/simple_cv/run.py
ParikhKadam/zenml
867e4d4c982a50447bd182b30af37f2141dac5a4
[ "Apache-2.0" ]
1,275
2020-11-19T14:18:25.000Z
2021-08-13T07:31:39.000Z
examples/legacy/simple_cv/run.py
ParikhKadam/zenml
867e4d4c982a50447bd182b30af37f2141dac5a4
[ "Apache-2.0" ]
62
2020-11-30T16:06:14.000Z
2021-08-10T08:34:52.000Z
examples/legacy/simple_cv/run.py
ParikhKadam/zenml
867e4d4c982a50447bd182b30af37f2141dac5a4
[ "Apache-2.0" ]
75
2020-12-22T19:15:08.000Z
2021-08-13T03:07:50.000Z
from preprocessing.preprocessor import ImagePreprocessor from trainer.trainer_step import ImageTensorflowTrainer from zenml.datasources.tfds_datasource import TFDSDatasource from zenml.exceptions import AlreadyExistsException from zenml.pipelines import TrainingPipeline from zenml.repo import Repository from zenml.ste...
28.339286
77
0.752993
5694db651e890f3a6808dc23dd69ab044d502e86
4,071
py
Python
tests/integration/ip_messaging/v1/service/user/test_user_channel.py
BrimmingDev/twilio-python
3226b5fed92b3c2ce64f03e6b19fc4792ef7647f
[ "MIT" ]
1,362
2015-01-04T10:25:18.000Z
2022-03-24T10:07:08.000Z
tests/integration/ip_messaging/v1/service/user/test_user_channel.py
BrimmingDev/twilio-python
3226b5fed92b3c2ce64f03e6b19fc4792ef7647f
[ "MIT" ]
299
2015-01-30T09:52:39.000Z
2022-03-31T23:03:02.000Z
tests/integration/ip_messaging/v1/service/user/test_user_channel.py
BrimmingDev/twilio-python
3226b5fed92b3c2ce64f03e6b19fc4792ef7647f
[ "MIT" ]
622
2015-01-03T04:43:09.000Z
2022-03-29T14:11:00.000Z
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class UserChannelTestCase(Integ...
43.774194
205
0.553427
34a429b563d202ae35990c6e69e3e27be65eaf60
1,306
py
Python
plot_ipeak.py
aashish-jain/BLUED-events
a6148972323c12d747b6f6fe45729ee1151ef3b7
[ "Unlicense" ]
1
2017-04-17T15:21:08.000Z
2017-04-17T15:21:08.000Z
plot_ipeak.py
aashish-jain/BLUED-events
a6148972323c12d747b6f6fe45729ee1151ef3b7
[ "Unlicense" ]
null
null
null
plot_ipeak.py
aashish-jain/BLUED-events
a6148972323c12d747b6f6fe45729ee1151ef3b7
[ "Unlicense" ]
null
null
null
import csv import matplotlib.pyplot as plt import numpy as np from os import listdir directory='/media/aashish/0C0091CC0091BCE0/BLUED-D1-1/events' files=listdir(directory) count=0 completed=False while(completed==False): try: for f in files: plt.close('all') print(count,f) ...
31.853659
97
0.49464
294775594d12b002737fe0304581472614ba0e1d
398
py
Python
accounts/migrations/0002_auto_20200703_1935.py
jerryarciaga/TheHRClerk
329407e924bdcf5d3780f108d665d933ac490569
[ "MIT" ]
null
null
null
accounts/migrations/0002_auto_20200703_1935.py
jerryarciaga/TheHRClerk
329407e924bdcf5d3780f108d665d933ac490569
[ "MIT" ]
1
2021-04-08T21:05:18.000Z
2021-04-08T21:05:18.000Z
accounts/migrations/0002_auto_20200703_1935.py
jerryarciaga/TheHRClerk
329407e924bdcf5d3780f108d665d933ac490569
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-04 01:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AlterField( model_name='profile', name='unit', f...
20.947368
73
0.595477
846e5d3d211e327c94df3f13c65d2934b1da7231
4,713
py
Python
wikidata_tree_generator/configuration/reader/yaml_configuration_reader.py
lmallez/wikidata-tree-generator
4fe6b8af6615083e670bdd9495624f4292fd53c0
[ "MIT" ]
4
2020-07-06T09:48:30.000Z
2020-10-27T06:56:44.000Z
wikidata_tree_generator/configuration/reader/yaml_configuration_reader.py
lmallez/wikidata-tree-generator
4fe6b8af6615083e670bdd9495624f4292fd53c0
[ "MIT" ]
2
2020-10-10T13:59:19.000Z
2021-06-25T15:44:46.000Z
wikidata_tree_generator/configuration/reader/yaml_configuration_reader.py
lmallez/wikidata-tree-generator
4fe6b8af6615083e670bdd9495624f4292fd53c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import yaml from wikidata_tree_generator.configuration import Configuration from wikidata_tree_generator.macros.configuration.yaml import yaml_tree_method, yaml_export_format, yaml_property_tag class YamlConfigurationReaderException(Exception): pass class YamlConfigurationReader: def ...
56.107143
189
0.711436
984c0a8b5e2ff5200951977046c1c4db1e9fa86d
3,840
py
Python
query311.py
zippycup/311_service_request_cityofnewyork
f74797e70e67b541dc6dbb749dae65254fe06209
[ "Apache-2.0" ]
null
null
null
query311.py
zippycup/311_service_request_cityofnewyork
f74797e70e67b541dc6dbb749dae65254fe06209
[ "Apache-2.0" ]
null
null
null
query311.py
zippycup/311_service_request_cityofnewyork
f74797e70e67b541dc6dbb749dae65254fe06209
[ "Apache-2.0" ]
null
null
null
#!/bin/python import datetime as dt import os import pandas as pd from config import * def main(): tp = pd.read_csv(csv_url, iterator=True, chunksize=1000) df = pd.concat(tp, ignore_index=True) df_populate_by_zipcode = pd.read_csv(census_population_by_zipcode) df_unique_zipcode = df['Incident Zip']...
41.73913
109
0.571354
53bce3cc9f26d4d358369919af3a9b3050cbeadb
8,080
py
Python
contrib/devtools/update-translations.py
blockarraygroup/bitcoinarray
4f7c01f5baeb8278538d0da3eb6c796022c97fd6
[ "MIT" ]
null
null
null
contrib/devtools/update-translations.py
blockarraygroup/bitcoinarray
4f7c01f5baeb8278538d0da3eb6c796022c97fd6
[ "MIT" ]
null
null
null
contrib/devtools/update-translations.py
blockarraygroup/bitcoinarray
4f7c01f5baeb8278538d0da3eb6c796022c97fd6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the follo...
38.660287
124
0.636015
bad823adb738877cd19ef19314f09dabee4271c6
8,468
py
Python
ai_economist/foundation/components/ubi.py
sarahlc888/ai-economist
48b0376d8d262a8e6dcbbcb21eef34af4baa5643
[ "BSD-3-Clause" ]
null
null
null
ai_economist/foundation/components/ubi.py
sarahlc888/ai-economist
48b0376d8d262a8e6dcbbcb21eef34af4baa5643
[ "BSD-3-Clause" ]
null
null
null
ai_economist/foundation/components/ubi.py
sarahlc888/ai-economist
48b0376d8d262a8e6dcbbcb21eef34af4baa5643
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from ai_economist.foundation.base.base_component import ( BaseComponent, component_registry, ) @component_registry.add class UBI(BaseComponent): """Gives each mobile agent a constant amount of coin. Args: amt_min (float): Minimum UBI payment amount. Must be >= 0 (default)....
34.283401
84
0.604393
305a32cddcb58bc1369354dbebf0e01c6eea5935
2,410
py
Python
assets/vertical_mvt_pendulum.py
JiazhengChai/spinningup_pytorch
8961f47aba3c8047e94d8d7949d0a247dc40c1dc
[ "Apache-2.0" ]
1
2022-03-18T11:15:24.000Z
2022-03-18T11:15:24.000Z
assets/vertical_mvt_pendulum.py
JiazhengChai/spinningup_pytorch
8961f47aba3c8047e94d8d7949d0a247dc40c1dc
[ "Apache-2.0" ]
null
null
null
assets/vertical_mvt_pendulum.py
JiazhengChai/spinningup_pytorch
8961f47aba3c8047e94d8d7949d0a247dc40c1dc
[ "Apache-2.0" ]
null
null
null
import numpy as np from gym import utils from gym.envs.mujoco import mujoco_env import os TARGET_ENERGY=3 class VerticalMvtPendulumEnv(mujoco_env.MujocoEnv, utils.EzPickle): def __init__(self,type='vertical_mvt_pendulum.xml',path=None,target_energy=TARGET_ENERGY): self.target_energy=target_energy ...
32.567568
155
0.596266
561e89407c050b68ed4fb3ed680b8093886eac84
3,301
py
Python
cifar_10/test_quantized.py
cadurosar/laplacian_networks
27f6f2d7145426b38f578e9c1beecae3e7392f1b
[ "MIT" ]
1
2020-03-03T18:18:12.000Z
2020-03-03T18:18:12.000Z
cifar_10/test_quantized.py
cadurosar/laplacian_networks
27f6f2d7145426b38f578e9c1beecae3e7392f1b
[ "MIT" ]
null
null
null
cifar_10/test_quantized.py
cadurosar/laplacian_networks
27f6f2d7145426b38f578e9c1beecae3e7392f1b
[ "MIT" ]
null
null
null
import torch import pandas as pd import torchvision import utils import tqdm import numpy as np import models def maxWeight(net): liste_max = [] index = 0 for m in net.modules(): local_max = 0 if type(m) in [torch.nn.Conv2d, torch.nn.Linear, models.Parseval_Conv2d]: ...
28.95614
74
0.520448
b456b9953cebad43fb64c559ded730a934871198
5,178
py
Python
models/examples/e_05_contract.py
mostarz93/credmark-models-py
8e6127983f9d13548740845e9aca8c43f12b1c6d
[ "MIT" ]
1
2022-03-29T14:50:47.000Z
2022-03-29T14:50:47.000Z
models/examples/e_05_contract.py
mostarz93/credmark-models-py
8e6127983f9d13548740845e9aca8c43f12b1c6d
[ "MIT" ]
null
null
null
models/examples/e_05_contract.py
mostarz93/credmark-models-py
8e6127983f9d13548740845e9aca8c43f12b1c6d
[ "MIT" ]
null
null
null
from credmark.cmf.model import Model, EmptyInput from credmark.cmf.types import Contract from credmark.cmf.model.errors import ModelRunError from models.dtos.example import ExampleModelOutput from web3._utils.filters import construct_event_filter_params from web3._utils.events import get_event_data import socket fro...
48.849057
125
0.673233
5d7249a079f3712210f38a273effb77b821c1428
2,278
py
Python
var/spack/repos/builtin/packages/py-requests/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
var/spack/repos/builtin/packages/py-requests/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
var/spack/repos/builtin/packages/py-requests/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-10-29T09:08:17.000Z
2019-10-29T09:08:17.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyRequests(PythonPackage): """Python HTTP for Humans.""" homepage = "http://python-re...
48.468085
96
0.693152
fd8a2224b89ee743d86706dede32c557a708de7e
1,954
py
Python
Instamsg.py
akpythonyt/Mystuffs
9a7d4198ea0d3907af510e118ea8fa9ecdc5f4db
[ "MIT" ]
47
2020-11-12T10:52:17.000Z
2022-03-05T22:44:48.000Z
Instamsg.py
SahityaRoy/AKpythoncodes
331428e9b157f3a8e6f35987417fa022956047d5
[ "MIT" ]
1
2022-02-24T16:24:26.000Z
2022-02-24T16:24:26.000Z
Instamsg.py
SahityaRoy/AKpythoncodes
331428e9b157f3a8e6f35987417fa022956047d5
[ "MIT" ]
45
2020-10-26T09:58:12.000Z
2022-03-20T05:42:29.000Z
from selenium import webdriver import time browser = webdriver.Chrome('chromedriver.exe') browser.get('https://instagram.com/') time.sleep(4) #Automating the login def login():#/html/body/div[1]/section/main/article/div[2]/div[1]/div/form/div/div[1]/div/label/input Username=browser.find_element_by_xpath("/h...
39.877551
142
0.69652
f89163fec746c31664f7c9b38130298e5be7a2e5
1,524
py
Python
Handlers/LEDHandler.py
stuntguy3000/PiLED
b425334ccd0fb188e36d6dbbddf40d2c012a8713
[ "MIT" ]
1
2021-03-08T13:46:04.000Z
2021-03-08T13:46:04.000Z
Handlers/LEDHandler.py
stuntguy3000/PiLED
b425334ccd0fb188e36d6dbbddf40d2c012a8713
[ "MIT" ]
2
2020-10-05T00:58:16.000Z
2020-10-05T01:06:57.000Z
Handlers/LEDHandler.py
stuntguy3000/PiLED
b425334ccd0fb188e36d6dbbddf40d2c012a8713
[ "MIT" ]
1
2020-10-04T17:08:42.000Z
2020-10-04T17:08:42.000Z
# The MIT License # # Copyright (c) 2021 Luke Anderson (stuntguy3000) # # 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...
37.170732
111
0.750656
f6b09f20c88d713fbf8ac62f1051b42f2edee9ac
1,208
py
Python
__Enteries__/particles.py
gchinmayvarma/C-Python-Batch-OldProjects
3b0fda35789f67a919752bf83928ae18e559fb8f
[ "MIT" ]
null
null
null
__Enteries__/particles.py
gchinmayvarma/C-Python-Batch-OldProjects
3b0fda35789f67a919752bf83928ae18e559fb8f
[ "MIT" ]
null
null
null
__Enteries__/particles.py
gchinmayvarma/C-Python-Batch-OldProjects
3b0fda35789f67a919752bf83928ae18e559fb8f
[ "MIT" ]
1
2021-11-17T09:21:38.000Z
2021-11-17T09:21:38.000Z
from turtle import * from random import * w = Screen() w.tracer(0) w.bgcolor("black") xwall = 500 ywall = xwall safe = xwall/10 parti = [] def make_parti(max_parti = 50) : for _ in range(max_parti) : parti.append(Turtle()) for _ in parti : _.color("white") _.shape("circle")...
29.463415
60
0.503311
86babf3c991a30aa9c46852347043263c9569a36
118,492
py
Python
thirdparty/xed/pysrc/read-encfile.py
anonymouscode1/djxperf
b6073a761753aa7a6247f2618977ca3a2633e78a
[ "MIT" ]
50
2019-08-30T13:20:19.000Z
2022-02-12T16:25:38.000Z
thirdparty/xed/pysrc/read-encfile.py
anonymouscode1/djxperf
b6073a761753aa7a6247f2618977ca3a2633e78a
[ "MIT" ]
5
2019-09-02T17:42:07.000Z
2020-07-17T09:30:47.000Z
thirdparty/xed/pysrc/read-encfile.py
anonymouscode1/djxperf
b6073a761753aa7a6247f2618977ca3a2633e78a
[ "MIT" ]
4
2020-03-30T02:57:51.000Z
2021-08-24T09:20:51.000Z
#!/usr/bin/env python # Read the encode format files # -*- python -*- #BEGIN_LEGAL # #Copyright (c) 2019 Intel Corporation # # 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://...
38.446463
109
0.540737