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
518ab9154fba09ef3df412ee902f6d9802099c49
675
py
Python
bumps/dream/__init__.py
cyankaet/bumps
427d077fd95f2d9a09eeb8677d045547061cff42
[ "MIT" ]
44
2015-03-28T06:48:43.000Z
2022-01-09T11:29:00.000Z
bumps/dream/__init__.py
cyankaet/bumps
427d077fd95f2d9a09eeb8677d045547061cff42
[ "MIT" ]
68
2015-08-21T11:28:54.000Z
2022-03-30T22:14:13.000Z
bumps/dream/__init__.py
cyankaet/bumps
427d077fd95f2d9a09eeb8677d045547061cff42
[ "MIT" ]
27
2015-06-22T19:25:27.000Z
2021-06-15T18:20:06.000Z
""" Notes on random numbers ======================= Uses dream.util.rng as the random number generator. You can set the seed using:: dream.util.rng = numpy.random.RandomState(seed) This interface doesn't feel right, since one instance of DREAM may influence another if they are running within one another. Putt...
25.961538
66
0.712593
48ffc30deab76747754a516f9dcf31d07e5f540f
6,952
py
Python
generated-libraries/python/netapp/options/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/options/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/options/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.connection import NaConnection from options_modify_iter_info import OptionsModifyIterInfo # 3 properties from option_info import OptionInfo # 8 properties from options_modify_iter_key_td import OptionsModifyIterKeyTd # 2 properties from options_get_iter_key_td import OptionsGetIterKeyTd # 2 properties clas...
46.657718
183
0.587169
4115bd180d7eaaec50fd43055816726e06576ee6
8,790
py
Python
mitmproxy/tools/console/options.py
ravitejavalluri/mproxy
ccd8e1e617cdbf3b34ec01ac130093396197101f
[ "MIT" ]
null
null
null
mitmproxy/tools/console/options.py
ravitejavalluri/mproxy
ccd8e1e617cdbf3b34ec01ac130093396197101f
[ "MIT" ]
1
2021-05-09T11:18:14.000Z
2021-05-09T11:18:14.000Z
mitmproxy/tools/console/options.py
ravitejavalluri/mproxy
ccd8e1e617cdbf3b34ec01ac130093396197101f
[ "MIT" ]
1
2020-11-07T08:54:29.000Z
2020-11-07T08:54:29.000Z
import urwid from mitmproxy import contentviews from mitmproxy.tools.console import common from mitmproxy.tools.console import grideditor from mitmproxy.tools.console import select from mitmproxy.tools.console import signals from mitmproxy.addons import replace from mitmproxy.addons import setheaders footer = [ ...
31.281139
78
0.487144
959ea78f8a73d45b9b610b743b68bb90db61ed65
6,697
py
Python
tests/test_examples.py
SimeonSimjanovski/RP2018-19
10d548a28ab5883666b9fdf9f838665c384d86a4
[ "MIT" ]
3
2018-05-03T05:08:56.000Z
2021-09-29T12:54:07.000Z
tests/test_examples.py
SimeonSimjanovski/RP2018-19
10d548a28ab5883666b9fdf9f838665c384d86a4
[ "MIT" ]
null
null
null
tests/test_examples.py
SimeonSimjanovski/RP2018-19
10d548a28ab5883666b9fdf9f838665c384d86a4
[ "MIT" ]
null
null
null
''' Unit test for all of the example scripts provided in the examples folder. ''' from __future__ import absolute_import, division, print_function import os import unittest import mloop.testing as mlt import mloop.launchers as mll import mloop.utilities as mlu import logging import numpy as np import multiprocessing a...
48.528986
119
0.537405
71b9ca6d5a1f706e6ed3ff7bf70684f9f67d137e
289
py
Python
razorpay_integration/razorpay_integration/doctype/razorpay_log/test_razorpay_log.py
frappe/rajorpay_integration
d6a2efb84f7b5f3914816e8b66bc24f92dafbc97
[ "MIT" ]
10
2016-05-03T13:22:40.000Z
2022-03-11T17:01:52.000Z
razorpay_integration/razorpay_integration/doctype/razorpay_log/test_razorpay_log.py
frappe/rajorpay_integration
d6a2efb84f7b5f3914816e8b66bc24f92dafbc97
[ "MIT" ]
2
2020-12-28T07:01:37.000Z
2021-06-30T06:54:24.000Z
razorpay_integration/razorpay_integration/doctype/razorpay_log/test_razorpay_log.py
frappe/razorpay_integration
d6a2efb84f7b5f3914816e8b66bc24f92dafbc97
[ "MIT" ]
17
2016-04-20T06:23:16.000Z
2022-03-15T07:23:18.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest # test_records = frappe.get_test_records('Razorpay Log') class TestRazorpayLog(unittest.TestCase): pass
22.230769
68
0.771626
f69909d05bf8a375abb7622bbc544ce532c0168c
7,665
py
Python
dataset/container.py
rubenve95/Deep-Cuboid-Detection
c4984ccf1edf5c01bd3538ca49ba863cbfa9b7d0
[ "MIT" ]
5
2020-12-16T03:00:16.000Z
2022-01-14T07:41:58.000Z
dataset/container.py
rubenve95/Deep-Cuboid-Detection
c4984ccf1edf5c01bd3538ca49ba863cbfa9b7d0
[ "MIT" ]
1
2021-08-12T09:18:30.000Z
2021-08-12T09:18:30.000Z
dataset/container.py
rubenve95/Deep-Cuboid-Detection
c4984ccf1edf5c01bd3538ca49ba863cbfa9b7d0
[ "MIT" ]
1
2021-09-28T02:51:39.000Z
2021-09-28T02:51:39.000Z
import json import os import pickle import random from typing import List, Tuple, Dict import torch import torch.utils.data.dataset from PIL import Image, ImageOps from torch import Tensor from torchvision.datasets import CocoDetection from tqdm import tqdm from torch.nn import functional as F import numpy as np from ...
39.715026
136
0.56908
c116db8a51b7b84a83c19d3c965b3dd9040062fa
1,920
py
Python
src/archive/LSTM/LSTMAE30width.py
RiceD2KLab/TCH_CardiacSignals_F20
ea6e84703086ddb7bfc5ba164aa67acdc9e78b7d
[ "BSD-2-Clause" ]
1
2022-01-27T07:03:20.000Z
2022-01-27T07:03:20.000Z
src/archive/LSTM/LSTMAE30width.py
RiceD2KLab/TCH_CardiacSignals_F20
ea6e84703086ddb7bfc5ba164aa67acdc9e78b7d
[ "BSD-2-Clause" ]
null
null
null
src/archive/LSTM/LSTMAE30width.py
RiceD2KLab/TCH_CardiacSignals_F20
ea6e84703086ddb7bfc5ba164aa67acdc9e78b7d
[ "BSD-2-Clause" ]
null
null
null
import tensorflow from tensorflow import keras from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, LSTM, Dropout, RepeatVector, TimeDistributed import numpy as np import os import matplotlib.pyplot as plt import sys def create_model(X): model = Sequential() model.add(LSTM...
29.538462
106
0.666146
73168c4e742c1777947956a2023dd14a1ff4d5f3
57,104
py
Python
nova/virt/vmwareapi/vm_util.py
nkrinner/nova
1372397d4f5f8c155af6f1f4ab5dc68be00c9c01
[ "Apache-2.0" ]
null
null
null
nova/virt/vmwareapi/vm_util.py
nkrinner/nova
1372397d4f5f8c155af6f1f4ab5dc68be00c9c01
[ "Apache-2.0" ]
null
null
null
nova/virt/vmwareapi/vm_util.py
nkrinner/nova
1372397d4f5f8c155af6f1f4ab5dc68be00c9c01
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 VMware, Inc. # Copyright (c) 2011 Citrix Systems, Inc. # Copyright 2011 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. Yo...
38.767142
79
0.645699
319033164b8adf69fbe1ba15193979ad9b3813e4
324
py
Python
borough_map/__main__.py
timhunderwood/house-price-london
6345e374fd363e27e5c0708557f680c1305905ac
[ "MIT" ]
null
null
null
borough_map/__main__.py
timhunderwood/house-price-london
6345e374fd363e27e5c0708557f680c1305905ac
[ "MIT" ]
null
null
null
borough_map/__main__.py
timhunderwood/house-price-london
6345e374fd363e27e5c0708557f680c1305905ac
[ "MIT" ]
null
null
null
import borough_map.controller if __name__ == "__main__": controller = borough_map.controller.Controller( raw_price_paid_file_name="pp-complete.csv.gz", shp_file_name="London_Borough_Excluding_MHW.shp", start_year=1995, end_year=2019, end_month=11, ) controller.animat...
27
57
0.688272
37b962b173d0cd4f1a2ad02f122176fff4860577
33,973
py
Python
utils/util.py
PointCloudYC/se-pseudogrid
65005d82fda1a31b8c945e02e378df102ba0fee0
[ "MIT" ]
2
2021-11-30T06:38:23.000Z
2021-12-17T01:38:32.000Z
utils/util.py
PointCloudYC/se-pseudogrid
65005d82fda1a31b8c945e02e378df102ba0fee0
[ "MIT" ]
null
null
null
utils/util.py
PointCloudYC/se-pseudogrid
65005d82fda1a31b8c945e02e378df102ba0fee0
[ "MIT" ]
null
null
null
import sys import os import itertools from string import ascii_uppercase import numpy as np import torch import torch.distributed as dist from sklearn.metrics import confusion_matrix, classification_report import matplotlib.pyplot as plt import matplotlib.patheffects as PathEffects # from sklearn.manifold import TSNE #...
35.388542
176
0.606629
45d2581e2070bc898ddbbdf51ee7d0ff3c14922d
7,617
py
Python
occo/plugins/infraprocessor/node_resolution/basic.py
zfarkas/infra-processor
86b0d80925bf5cf97148a8d0f468cfa22b079957
[ "Apache-2.0" ]
null
null
null
occo/plugins/infraprocessor/node_resolution/basic.py
zfarkas/infra-processor
86b0d80925bf5cf97148a8d0f468cfa22b079957
[ "Apache-2.0" ]
null
null
null
occo/plugins/infraprocessor/node_resolution/basic.py
zfarkas/infra-processor
86b0d80925bf5cf97148a8d0f468cfa22b079957
[ "Apache-2.0" ]
null
null
null
### Copyright 2014, MTA SZTAKI, www.sztaki.hu ### ### 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...
38.276382
89
0.623211
15517541f35ed25032a1fdf6a893a3a2b212a4e5
1,215
py
Python
src/networks.py
NaHenn/gclc
5159c28688d179fa4031ef101d9a31556b71acc0
[ "MIT" ]
null
null
null
src/networks.py
NaHenn/gclc
5159c28688d179fa4031ef101d9a31556b71acc0
[ "MIT" ]
null
null
null
src/networks.py
NaHenn/gclc
5159c28688d179fa4031ef101d9a31556b71acc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ networks for experiments """ import torch import torch.nn as nn class LayerNet(nn.Module): def __init__(self, nx, nh, ny, act = torch.sigmoid, d = 2): ''' neural network with d hidden layers with the same size Parameters -------- n...
26.413043
102
0.497119
34f5effd4f0944b833d1ec4e0405ad920ec0a3b7
655
py
Python
examples/python/jrecdbc.py
pewo/jrecdb
1e49efcff78036ffe2f2236003749f221d92ef71
[ "MIT" ]
null
null
null
examples/python/jrecdbc.py
pewo/jrecdb
1e49efcff78036ffe2f2236003749f221d92ef71
[ "MIT" ]
null
null
null
examples/python/jrecdbc.py
pewo/jrecdb
1e49efcff78036ffe2f2236003749f221d92ef71
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests import json from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) try: r = requests.get('https://127.0.0.1:4443/dbread?jobtype=autopostinstall&remove=0', verify=False, timeout=3) r.raise_for_...
19.848485
109
0.728244
caefa7b7a77d6b73ada1f5689624eccb597e0196
553
py
Python
cohesity_management_sdk/models/object_class_search_principals_enum.py
anoopbhat/management-sdk-python
423d9079fd4b3a773f43882d1272181f5ec84f96
[ "Apache-2.0" ]
1
2021-01-07T20:36:22.000Z
2021-01-07T20:36:22.000Z
cohesity_management_sdk/models/object_class_search_principals_enum.py
vloiseau/management-sdk-python
56e80399691245e351692abc4c366fac84a82f96
[ "Apache-2.0" ]
null
null
null
cohesity_management_sdk/models/object_class_search_principals_enum.py
vloiseau/management-sdk-python
56e80399691245e351692abc4c366fac84a82f96
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class ObjectClassSearchPrincipalsEnum(object): """Implementation of the 'objectClass_SearchPrincipals' enum. TODO: type enum description here. Attributes: KUSER: TODO: type description here. KGROUP: TODO: type description here. ...
21.269231
65
0.674503
4267fd7c545bb4b865df98ac1a687e763623ba4b
818
py
Python
interface/migrations/0002_result.py
matteocao/django-project
55ec084a622a696f3ec95e49e8f59357964c7d80
[ "MIT" ]
2
2021-01-25T10:48:28.000Z
2021-01-25T12:05:21.000Z
interface/migrations/0002_result.py
lgaborini/django-project
927395d41f48a50704fbaf36ba9729a8cfbccfd4
[ "MIT" ]
null
null
null
interface/migrations/0002_result.py
lgaborini/django-project
927395d41f48a50704fbaf36ba9729a8cfbccfd4
[ "MIT" ]
1
2021-01-25T10:48:20.000Z
2021-01-25T10:48:20.000Z
# Generated by Django 3.1.5 on 2021-01-20 09:37 import django.core.files.storage from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('interface', '0001_initial'), ] operations = [ migrations.CreateModel( ...
32.72
134
0.625917
45855aacf8c05cb01d1bef1659c2fd836b33e0dd
3,643
py
Python
eridanusstd/weather.py
mithrandi/eridanus
11c80c7024548ce7c41800b077d3d0a738a04875
[ "MIT" ]
null
null
null
eridanusstd/weather.py
mithrandi/eridanus
11c80c7024548ce7c41800b077d3d0a738a04875
[ "MIT" ]
5
2021-03-18T20:19:01.000Z
2022-03-11T23:14:44.000Z
eridanusstd/weather.py
mithrandi/eridanus
11c80c7024548ce7c41800b077d3d0a738a04875
[ "MIT" ]
1
2018-01-10T15:15:15.000Z
2018-01-10T15:15:15.000Z
import dateutil.parser from lxml import etree from epsilon.structlike import record from nevow.url import URL from eridanus import util class WundergroundConditions( record('displayLocation observationLocation observationTime condition ' 'temperature humidity pressure windSpeed windDirection windC...
35.715686
89
0.59182
effc39b979004798b737ea70bdada7b1f04a98ac
14,225
py
Python
ee/tasks/test/test_calculate_cohort.py
ld-rale/posthog
0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810
[ "MIT" ]
null
null
null
ee/tasks/test/test_calculate_cohort.py
ld-rale/posthog
0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810
[ "MIT" ]
null
null
null
ee/tasks/test/test_calculate_cohort.py
ld-rale/posthog
0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810
[ "MIT" ]
null
null
null
import json import urllib.parse from unittest.mock import patch from uuid import uuid4 from freezegun import freeze_time from ee.clickhouse.client import sync_execute from ee.clickhouse.models.event import create_event from ee.clickhouse.util import ClickhouseTestMixin from posthog.models.cohort import Cohort from po...
39.29558
373
0.486819
f8102ae8c7b534b234d0665fa86a743e2aeb4975
214,262
py
Python
src/config/api-server/vnc_cfg_api_server/vnc_cfg_api_server.py
pawelzny/contrail-controller
4950d3144cb8c422264ddb2a926cf4fe9e40b14d
[ "Apache-2.0" ]
null
null
null
src/config/api-server/vnc_cfg_api_server/vnc_cfg_api_server.py
pawelzny/contrail-controller
4950d3144cb8c422264ddb2a926cf4fe9e40b14d
[ "Apache-2.0" ]
null
null
null
src/config/api-server/vnc_cfg_api_server/vnc_cfg_api_server.py
pawelzny/contrail-controller
4950d3144cb8c422264ddb2a926cf4fe9e40b14d
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # """ This is the main module in vnc_cfg_api_server package. It manages interaction between http/rest, address management, authentication and database interfaces. """ from gevent import monkey monkey.patch_all() from gevent import hub # from neutron p...
42.826704
136
0.569308
80bbbb2a4425b6b72a69d6fe8cf0dc0ec3398b1c
111
py
Python
argotools/forecastlib/__init__.py
LeonardoClemente/argotools-pkg
cf261bd823dfc7eb808f1561b2052b5f000cac10
[ "MIT" ]
null
null
null
argotools/forecastlib/__init__.py
LeonardoClemente/argotools-pkg
cf261bd823dfc7eb808f1561b2052b5f000cac10
[ "MIT" ]
null
null
null
argotools/forecastlib/__init__.py
LeonardoClemente/argotools-pkg
cf261bd823dfc7eb808f1561b2052b5f000cac10
[ "MIT" ]
null
null
null
# from models import * # required file in processing directory for regional CDC_REGIONS = './Regions.csv'
22.2
53
0.72973
e185c1a3e01c46e1fde00d46d7be19cebe9bfc07
6,792
py
Python
training/training.py
SimonBartels/Variations_of_VAE
89eec430eb3ec4483a47f345cc83b86051a81be7
[ "MIT" ]
1
2021-11-07T22:52:14.000Z
2021-11-07T22:52:14.000Z
training/training.py
SimonBartels/Variations_of_VAE
89eec430eb3ec4483a47f345cc83b86051a81be7
[ "MIT" ]
null
null
null
training/training.py
SimonBartels/Variations_of_VAE
89eec430eb3ec4483a47f345cc83b86051a81be7
[ "MIT" ]
1
2021-08-05T13:32:29.000Z
2021-08-05T13:32:29.000Z
import math import time from collections import defaultdict from collections.abc import Iterable import torch from torch import Tensor from torch.nn.utils import clip_grad_norm_, clip_grad_value_ def train_epoch(epoch, model, optimizer, scheduler, train_loader): """ epoch: Index of the epoch to run ...
41.414634
145
0.593198
a8cbef8bdb4de5c1216b138f0cb9fc99e2051dec
130
py
Python
bslparloursite/videolibrary/admin.py
natfarleydev/thebslparlour
ebb2588282cdb2a977ec6c5f8d82cec4e8fd1f99
[ "CC0-1.0" ]
1
2016-01-06T23:13:11.000Z
2016-01-06T23:13:11.000Z
bslparloursite/videolibrary/admin.py
natfarleydev/thebslparlour
ebb2588282cdb2a977ec6c5f8d82cec4e8fd1f99
[ "CC0-1.0" ]
4
2021-03-18T20:15:04.000Z
2021-06-10T17:52:31.000Z
bslparloursite/videolibrary/admin.py
natfarleydev/thebslparlour
ebb2588282cdb2a977ec6c5f8d82cec4e8fd1f99
[ "CC0-1.0" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import SourceVideo admin.site.register(SourceVideo)
16.25
32
0.807692
9db5d94997baad62af729aa8850efbcddfeeaad8
7,712
py
Python
openml/lit_regressor.py
cmonserr/Why_Difficulty
7b34cc3556a1b99ac67cb155fba8d0837c9b7b10
[ "MIT" ]
1
2022-02-04T11:33:41.000Z
2022-02-04T11:33:41.000Z
openml/lit_regressor.py
dcastf01/creating_adversarial_images
01564f7b4ff9f19021986e57f5bfad827213c8a6
[ "MIT" ]
null
null
null
openml/lit_regressor.py
dcastf01/creating_adversarial_images
01564f7b4ff9f19021986e57f5bfad827213c8a6
[ "MIT" ]
null
null
null
from typing import Optional import timm import torch import torch.nn as nn from timm.models.factory import create_model from torch.nn import functional as F from torch.nn.modules import linear from torchvision import models from openml.config import CONFIG, ModelsAvailable from openml.custom_models import AlexNet, G...
37.803922
91
0.561981
46daeee910ed3f8a26e74078712afe3d0ecf557b
17,156
py
Python
Source/Analytics/TransmissionLineImpedanceCalculator/Source/Step_1_VI Acquisition/PowerSystemPsseLibrary.py
GridProtectionAlliance/openECA
d91f435844a6c3eb9f22a593aabeffef98d2525c
[ "MIT" ]
13
2016-11-07T10:53:52.000Z
2021-05-30T22:05:48.000Z
Source/Analytics/TransmissionLineImpedanceCalculator/Source/Step_1_VI Acquisition/PowerSystemPsseLibrary.py
GridProtectionAlliance/openECA
d91f435844a6c3eb9f22a593aabeffef98d2525c
[ "MIT" ]
48
2016-06-11T16:36:03.000Z
2021-01-15T15:33:57.000Z
Source/Analytics/TransmissionLineImpedanceCalculator/Source/Step_1_VI Acquisition/PowerSystemPsseLibrary.py
GridProtectionAlliance/openECA
d91f435844a6c3eb9f22a593aabeffef98d2525c
[ "MIT" ]
6
2016-05-23T17:06:17.000Z
2018-12-21T02:59:02.000Z
# File:"C:\Users\Duotong\Documents\DuotongYang\PSSE_simulation\ICSEG Power Case 1 - IEEE 14 Bus Systems\20150917_simulation.py", generated on THU, SEP 17 2015 10:10, release 32.00.03 from __future__ import with_statement from __future__ import division from contextlib import contextmanager import os,sys import csv ...
42.57072
227
0.668279
4d0127e36c4a6538ebc978b15c4b330ae05ef3cc
2,816
py
Python
src/python/datasets/train_valid_test_split.py
PeterJackNaylor/NucSeg
9eaa72d536e61e1ea2e396a47bb5d0a224134790
[ "MIT" ]
null
null
null
src/python/datasets/train_valid_test_split.py
PeterJackNaylor/NucSeg
9eaa72d536e61e1ea2e396a47bb5d0a224134790
[ "MIT" ]
null
null
null
src/python/datasets/train_valid_test_split.py
PeterJackNaylor/NucSeg
9eaa72d536e61e1ea2e396a47bb5d0a224134790
[ "MIT" ]
1
2022-02-14T18:45:33.000Z
2022-02-14T18:45:33.000Z
import numpy as np import sys from glob import glob from sklearn.model_selection import train_test_split from scipy.ndimage import distance_transform_edt from multiprocessing import Pool def distance_transform_array(bin_image): res = np.zeros_like(bin_image, dtype=np.float64) for j in range(1, int(bin_image....
25.6
78
0.604403
ad859f2a559454a18b8b882cc6f9c10c24d8cc2a
27,630
py
Python
glycan_profiling/database/builder/glycopeptide/common.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
null
null
null
glycan_profiling/database/builder/glycopeptide/common.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
null
null
null
glycan_profiling/database/builder/glycopeptide/common.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
null
null
null
import itertools from uuid import uuid4 from collections import defaultdict, Counter from multiprocessing import Process, Queue, Event, RLock from threading import Thread from itertools import product try: from Queue import Empty as QueueEmptyException except ImportError: from queue import Empty as QueueEmptyE...
41.177347
118
0.632067
34b2fe971b149908d1363bfe2b6ee4b2c3f78dfc
1,778
py
Python
test/python/robotlib_tests/test_robot.py
austin-bowen/robotlib
44bfdaad493235dc8385ce1a0c80789e5c65f62d
[ "MIT" ]
null
null
null
test/python/robotlib_tests/test_robot.py
austin-bowen/robotlib
44bfdaad493235dc8385ce1a0c80789e5c65f62d
[ "MIT" ]
null
null
null
test/python/robotlib_tests/test_robot.py
austin-bowen/robotlib
44bfdaad493235dc8385ce1a0c80789e5c65f62d
[ "MIT" ]
null
null
null
import unittest from typing import Dict from unittest import TestCase from robotlib.robot import Robot, InputSample, Input, Device, Output class TestRobot(TestCase): def test_enable(self): self.fail() def test_disable(self): self.fail() class UltrasonicInput(Input): def sample(self): ...
23.090909
70
0.650169
9f1e9c87408113143209090467c56a53955d7f11
6,711
py
Python
randommer.py
GauravKK08/python-randommer-api-wrapper
967bf2811ba1f6a077bc8ca1f6c6d0857f8b1157
[ "Apache-2.0" ]
1
2021-05-26T13:07:00.000Z
2021-05-26T13:07:00.000Z
randommer.py
GauravKK08/python-randommer-api-wrapper
967bf2811ba1f6a077bc8ca1f6c6d0857f8b1157
[ "Apache-2.0" ]
null
null
null
randommer.py
GauravKK08/python-randommer-api-wrapper
967bf2811ba1f6a077bc8ca1f6c6d0857f8b1157
[ "Apache-2.0" ]
null
null
null
import requests import time import json class Randommer(): def __init__(self, api_key=None, json_response=True, prefetch_cultures=True): with open('config.json') as fp: self.config = json.load(fp) if api_key is None: self.api_key = self.config.get('api_key') ...
45.965753
144
0.656087
3204f393fd435e711eee2a6e947ab43dcb47525e
15,686
py
Python
venv/lib/python3.7/site-packages/ccxt/async_support/__init__.py
balibou/ccxt-ohlcv-fetcher
a64cd43cbfd3fe09de34d8a66416ecc6c10d3b2f
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/ccxt/async_support/__init__.py
balibou/ccxt-ohlcv-fetcher
a64cd43cbfd3fe09de34d8a66416ecc6c10d3b2f
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/ccxt/async_support/__init__.py
balibou/ccxt-ohlcv-fetcher
a64cd43cbfd3fe09de34d8a66416ecc6c10d3b2f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """CCXT: CryptoCurrency eXchange Trading Library (Async)""" # ----------------------------------------------------------------------------- __version__ = '1.18.1270' # ----------------------------------------------------------------------------- from ccxt.async_support.base.exchange import ...
50.928571
86
0.556547
8197cf053906f5eda02c9b8ebff8d7767be65c49
252
py
Python
tempdir/login.py
lamendoza-tip/design_app
a8db05985954618fdd73077452cf844c32954694
[ "MIT" ]
null
null
null
tempdir/login.py
lamendoza-tip/design_app
a8db05985954618fdd73077452cf844c32954694
[ "MIT" ]
null
null
null
tempdir/login.py
lamendoza-tip/design_app
a8db05985954618fdd73077452cf844c32954694
[ "MIT" ]
null
null
null
from flask import Flask from flask import request from flask import render_template sample = Flask(__name__) @sample.route("/") def main(): return render_template("login.html") if __name__ == "__main__": sample.run(host="0.0.0.0", port=5050)
21
41
0.722222
2628003524fd59cf7ac932202dec9c597d0f275f
3,975
py
Python
tensorflow_examples/lite/model_customization/core/data_util/dataloader.py
windmaple/examples
09d7cd780226679b133fc7cb93b5a8342e9d5c2f
[ "Apache-2.0" ]
1
2021-09-22T12:03:20.000Z
2021-09-22T12:03:20.000Z
tensorflow_examples/lite/model_maker/core/data_util/dataloader.py
godofecht/examples
5875c06c3cc76af5419986ab9d2f3d51bea43425
[ "Apache-2.0" ]
5
2021-06-08T20:55:10.000Z
2022-02-10T00:45:10.000Z
tensorflow_examples/lite/model_maker/core/data_util/dataloader.py
godofecht/examples
5875c06c3cc76af5419986ab9d2f3d51bea43425
[ "Apache-2.0" ]
1
2020-04-21T01:27:17.000Z
2020-04-21T01:27:17.000Z
# Copyright 2019 The TensorFlow 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 applica...
35.176991
122
0.736101
d1dd9116e913d2b42a2b1a3342af04f188a0645d
2,669
py
Python
grammaranalyzer/core.py
mas-student/web-python-2018-04-ht03
d853dee86e6271e132f8d79d24b52aafbe7d3779
[ "MIT" ]
null
null
null
grammaranalyzer/core.py
mas-student/web-python-2018-04-ht03
d853dee86e6271e132f8d79d24b52aafbe7d3779
[ "MIT" ]
null
null
null
grammaranalyzer/core.py
mas-student/web-python-2018-04-ht03
d853dee86e6271e132f8d79d24b52aafbe7d3779
[ "MIT" ]
null
null
null
import os import git import collections from operator import itemgetter from .helpers import is_python, get_filenames_from_path from .parse import get_nodes_from_filenames, get_node_name, get_words_from_names, is_function_node, is_name_node from .analysis import is_verb from .output import to_fuzzy, to_csv, to_json, t...
32.156627
112
0.698764
2dbd4bcec6881b72b6a35c5cef28f61c6bf6bb4e
950
py
Python
api/src/opentrons/protocols/__init__.py
SebastianEggert/opentrons
c377d6a4c10c742f9ca4dba746af903e4ea4f079
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/protocols/__init__.py
SebastianEggert/opentrons
c377d6a4c10c742f9ca4dba746af903e4ea4f079
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/protocols/__init__.py
SebastianEggert/opentrons
c377d6a4c10c742f9ca4dba746af903e4ea4f079
[ "Apache-2.0" ]
null
null
null
from . import execute_v1, execute_v3 from opentrons.protocol_api.execute import ( get_protocol_schema_version, validate_protocol) def execute_protocol(protocol_json): protocol_version = get_protocol_schema_version(protocol_json) if protocol_version > 3: raise RuntimeError( f'JSON Proto...
29.6875
69
0.664211
7814b03c29b830f5191eb2b227943f042c98d159
4,052
py
Python
sensorflow/sensorflow.py
maxpowel/sensorflow-python
7c6f23087fbff085c43dd6d3bc00ce8dae884484
[ "MIT" ]
null
null
null
sensorflow/sensorflow.py
maxpowel/sensorflow-python
7c6f23087fbff085c43dd6d3bc00ce8dae884484
[ "MIT" ]
null
null
null
sensorflow/sensorflow.py
maxpowel/sensorflow-python
7c6f23087fbff085c43dd6d3bc00ce8dae884484
[ "MIT" ]
null
null
null
import serial import json import struct from abc import ABCMeta, abstractmethod class SensorflowSource(metaclass=ABCMeta): def __iter__(self): return self def __next__(self): while True: yield self.receive() @abstractmethod def receive(self): pass @abstractm...
25.325
120
0.611303
6fa92b7eb700d354e8dad2be544af30b36f3a89b
8,135
py
Python
configs/cascade_mask_rcnn_x101_64x4d_fpn_1x.py
marinarierav-uab/foveabox
1f313fd14aaf018aadb0c6b3de163eb0a3b1fbd5
[ "Apache-2.0" ]
1
2021-01-14T12:04:34.000Z
2021-01-14T12:04:34.000Z
configs/cascade_mask_rcnn_x101_64x4d_fpn_1x.py
marinarierav-uab/foveabox
1f313fd14aaf018aadb0c6b3de163eb0a3b1fbd5
[ "Apache-2.0" ]
null
null
null
configs/cascade_mask_rcnn_x101_64x4d_fpn_1x.py
marinarierav-uab/foveabox
1f313fd14aaf018aadb0c6b3de163eb0a3b1fbd5
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='CascadeRCNN', num_stages=3, pretrained='open-mmlab://resnext101_64x4d', backbone=dict( type='ResNeXt', depth=101, groups=64, base_width=4, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='...
30.698113
155
0.528826
b784921e52c677af8bb48dc0ed200af95fa93262
638
py
Python
manage.py
Johnnyevans32/Spentech-Sales-Management
6ed077bd8a23b332ea1a893228a695a0ec039d8e
[ "MIT" ]
null
null
null
manage.py
Johnnyevans32/Spentech-Sales-Management
6ed077bd8a23b332ea1a893228a695a0ec039d8e
[ "MIT" ]
null
null
null
manage.py
Johnnyevans32/Spentech-Sales-Management
6ed077bd8a23b332ea1a893228a695a0ec039d8e
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'spentech_dashboard.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: r...
29
82
0.688088
c23d6791bdfa1f545a03a5fec0a8d1715c4c95e5
556
py
Python
tests/frontends/test_frontend.py
fosterrath-mila/myia
b4382bd6eb53c709136a6142ee517e0b92d7baed
[ "MIT" ]
null
null
null
tests/frontends/test_frontend.py
fosterrath-mila/myia
b4382bd6eb53c709136a6142ee517e0b92d7baed
[ "MIT" ]
null
null
null
tests/frontends/test_frontend.py
fosterrath-mila/myia
b4382bd6eb53c709136a6142ee517e0b92d7baed
[ "MIT" ]
null
null
null
import pytest from myia.frontends import ( FrontendLoadingError, UnknownFrontend, activate_frontend, ) def test_load_frontend_unknown(): with pytest.raises(UnknownFrontend): activate_frontend('_made_up_frontend') def test_frontend_error(): from myia.frontends import _frontends name...
18.533333
46
0.710432
e2da90df87cbd5e8f93ecf2141731a3fc5b48443
474
py
Python
src/mayaToCorona/mtco_devmodule/scripts/Corona/passes.py
haggi/OpenMaya
746e0740f480d9ef8d2173f31b3c99b9b0ea0d24
[ "MIT" ]
42
2015-01-03T15:07:25.000Z
2021-12-09T03:56:59.000Z
src/mayaToCorona/mtco_devmodule/scripts/Corona/passes.py
haggi/OpenMaya
746e0740f480d9ef8d2173f31b3c99b9b0ea0d24
[ "MIT" ]
66
2015-01-02T13:28:44.000Z
2022-03-16T14:00:57.000Z
src/mayaToCorona/mtco_devmodule/scripts/Corona/passes.py
haggi/OpenMaya
746e0740f480d9ef8d2173f31b3c99b9b0ea0d24
[ "MIT" ]
12
2015-02-07T05:02:17.000Z
2020-07-10T17:21:44.000Z
def getAOVs(): return [ "Alpha", "SourceColor", "Components", "Shadows", "Albedo", "RawComponent", "Normals", "NormalsDotProduct", "NormalsDiscrepancy", "PrimitiveCoords"...
22.571429
33
0.35443
930a15cbda1de39b378f6dab278074311c782310
1,218
py
Python
tests/integration/network/convex/test_convex_network.py
datacraft-dsc/starfish-py
95ff24410f056e8e2d313c3af97439fe003e294a
[ "Apache-2.0" ]
null
null
null
tests/integration/network/convex/test_convex_network.py
datacraft-dsc/starfish-py
95ff24410f056e8e2d313c3af97439fe003e294a
[ "Apache-2.0" ]
null
null
null
tests/integration/network/convex/test_convex_network.py
datacraft-dsc/starfish-py
95ff24410f056e8e2d313c3af97439fe003e294a
[ "Apache-2.0" ]
1
2021-01-28T12:14:03.000Z
2021-01-28T12:14:03.000Z
""" Test Convex Network class """ import pytest import secrets from starfish.network.did import did_generate_random from tests.integration.network.convex.helpers import auto_topup_account TEST_AMOUNT = 5 def test_convex_network_setup(convex_network, config): assert(convex_network.url == config['convex'][...
27.681818
75
0.762726
c1ce926145b6f359e6d89541236208353e53b8ab
1,604
py
Python
tests/conftest.py
nicfit/Parcyl
2c5bdd472f570b2e6e25e2b687b8a2a9f006a225
[ "MIT" ]
2
2019-01-29T20:59:26.000Z
2020-07-16T07:12:37.000Z
tests/conftest.py
nicfit/Parcyl
2c5bdd472f570b2e6e25e2b687b8a2a9f006a225
[ "MIT" ]
6
2019-02-09T18:48:22.000Z
2020-03-20T04:41:58.000Z
tests/conftest.py
nicfit/Parcyl
2c5bdd472f570b2e6e25e2b687b8a2a9f006a225
[ "MIT" ]
1
2019-09-21T03:38:05.000Z
2019-09-21T03:38:05.000Z
import sys import textwrap import subprocess from pathlib import Path import pytest @pytest.fixture() def parcyl_d(tmpdir): return ParcylDir(tmpdir) class ParcylDir: _PARCYL_PY = Path(__file__).parent.parent.absolute() / "parcyl.py" _SETUP_PY_FORMAT = textwrap.dedent("""\ import parcyl assert p...
28.140351
79
0.587905
07f6c1da8c2edae137f308089eeb016f66d5656f
1,640
py
Python
Recursion2/Conclusion/theskyline.py
mamoudmatook/Leetcode
59fb1612ee648a9b99ff7cc779ada5656c01ecd2
[ "MIT" ]
null
null
null
Recursion2/Conclusion/theskyline.py
mamoudmatook/Leetcode
59fb1612ee648a9b99ff7cc779ada5656c01ecd2
[ "MIT" ]
null
null
null
Recursion2/Conclusion/theskyline.py
mamoudmatook/Leetcode
59fb1612ee648a9b99ff7cc779ada5656c01ecd2
[ "MIT" ]
null
null
null
import builtins class Solution: def getSkyline(self, buildings): n = len(buildings) if n == 0: return [] if n == 1: xs, xe, y = buildings[0] return [[xs, y], [xe, 0]] lef_skyline = self.getSkyline(buildings[:n//2]) right_skylin...
29.285714
62
0.445122
6761bcff3c703235b22cc7461d1fe3a13f8278a7
258
py
Python
reckonanalytics/keywordGen/views.py
01dkg/googleAdsAutomations
036acaa7d3146b0132a767085c37653d8e75712d
[ "Apache-2.0" ]
9
2018-04-19T02:53:52.000Z
2022-03-14T08:49:59.000Z
reckonanalytics/keywordGen/views.py
joaquinmorenoa/Marketing-Tech-Ads-Automation
1f99d7b3b71ee546b70ddfe14b1b03d08d2ea877
[ "Apache-2.0" ]
null
null
null
reckonanalytics/keywordGen/views.py
joaquinmorenoa/Marketing-Tech-Ads-Automation
1f99d7b3b71ee546b70ddfe14b1b03d08d2ea877
[ "Apache-2.0" ]
8
2018-03-06T21:33:22.000Z
2022-01-27T14:49:02.000Z
# howdy/views.py from django.shortcuts import render from django.views.generic import TemplateView # Create your views here. class HomePageView(TemplateView): def get(self, request, **kwargs): return render(request, 'index.html', context=None)
28.666667
58
0.748062
a6ff2d42d31f829a9e21197ef6de2a70448c61ac
6,021
py
Python
common/gen.py
lisiynos/lisiynos.github.io
5900ee6ab0055a8047dd2b54b8667d05f3a145c2
[ "MIT" ]
1
2019-03-02T17:20:25.000Z
2019-03-02T17:20:25.000Z
common/gen.py
lisiynos/lisiynos.github.io
5900ee6ab0055a8047dd2b54b8667d05f3a145c2
[ "MIT" ]
null
null
null
common/gen.py
lisiynos/lisiynos.github.io
5900ee6ab0055a8047dd2b54b8667d05f3a145c2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from string import Template from os import listdir from os.path import isfile, join, dirname, realpath # from BeautifulSoup import BeautifulSoup from bs4 import BeautifulSoup import sys if sys.version < '3': reload(sys) # Reload does the trick! sys.setdefaultencoding('UTF-8...
28.947115
105
0.612523
ac9a4386100322b1ea27092936f369aedbffcbbb
12,697
py
Python
main/auth/auth.py
daspots/dasapp
15b113f86842fb8dcef71780a8bda23618427ab3
[ "MIT" ]
null
null
null
main/auth/auth.py
daspots/dasapp
15b113f86842fb8dcef71780a8bda23618427ab3
[ "MIT" ]
null
null
null
main/auth/auth.py
daspots/dasapp
15b113f86842fb8dcef71780a8bda23618427ab3
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import import functools import re from flask_oauthlib import client as oauth from google.appengine.ext import ndb import flask import flask_login import flask_wtf import unidecode import wtforms import cache import config import model import task import util from mai...
28.791383
91
0.646058
f82019600db734a8c0670042e2c3da8eddfa4729
23,245
py
Python
test/functional/test_runner.py
buntheun/kh69coin-core
f92fd594ab1493292b5dd12ef4d3c9e9597cfee9
[ "MIT" ]
null
null
null
test/functional/test_runner.py
buntheun/kh69coin-core
f92fd594ab1493292b5dd12ef4d3c9e9597cfee9
[ "MIT" ]
null
null
null
test/functional/test_runner.py
buntheun/kh69coin-core
f92fd594ab1493292b5dd12ef4d3c9e9597cfee9
[ "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. """Run regression test suite. This module calls down into individual test cases via subprocess. It will f...
40.355903
195
0.634588
431674f95c4ced0b4eb87d741f4a939e7631b653
2,750
py
Python
generic_cache/decorator.py
pantuza/generic_cache
6db5d178b81a85031ebb3c0d093cc3e3aba0d08b
[ "MIT" ]
9
2018-08-22T18:52:49.000Z
2020-04-21T23:38:43.000Z
generic_cache/decorator.py
pantuza/generic_cache
6db5d178b81a85031ebb3c0d093cc3e3aba0d08b
[ "MIT" ]
null
null
null
generic_cache/decorator.py
pantuza/generic_cache
6db5d178b81a85031ebb3c0d093cc3e3aba0d08b
[ "MIT" ]
2
2018-08-23T14:44:52.000Z
2018-09-05T12:43:16.000Z
# Copyright (c) 2018, Globo.com (https://github.com/globocom) # # License: MIT class CacheDecorator(object): def __init__(self, key_prefix, cache_backend, key_builder, default_timeout=None): self._key_prefix = key_prefix self._cache_backend = cache_backend self._key_builder = key_builder ...
38.732394
96
0.639273
2f1d202afacb6d19329611afcd48d3234c3a89aa
438
py
Python
backend/app/api/data_routes.py
shaunmulligan/hypecycle
aa368193934cbd9c73ab1cc541c6cc193469849c
[ "MIT" ]
1
2022-03-18T01:14:09.000Z
2022-03-18T01:14:09.000Z
backend/app/api/data_routes.py
shaunmulligan/hypecycle
aa368193934cbd9c73ab1cc541c6cc193469849c
[ "MIT" ]
25
2022-01-16T15:30:06.000Z
2022-01-19T18:41:50.000Z
backend/app/api/data_routes.py
shaunmulligan/hypecycle
aa368193934cbd9c73ab1cc541c6cc193469849c
[ "MIT" ]
null
null
null
from typing import List from fastapi import APIRouter, HTTPException, Path from app.api import gps_crud from app.api.models import GpsReadingDB router = APIRouter() @router.get("/location/") async def get_location(): """ Get the last location from DB """ location = await gps_crud.get_last_location()...
24.333333
76
0.726027
866d1d82859f0707ea87617d522768095d8d9417
9,262
py
Python
tools/test_check_kconfigs.py
thomasonw/esp-idf
abea9e4c02bb17e86298aec4e299780399e4789f
[ "Apache-2.0" ]
1
2021-04-18T15:44:42.000Z
2021-04-18T15:44:42.000Z
tools/test_check_kconfigs.py
Wangrenai/esp-idf
abea9e4c02bb17e86298aec4e299780399e4789f
[ "Apache-2.0" ]
1
2019-02-15T06:43:13.000Z
2019-02-15T06:43:13.000Z
tools/test_check_kconfigs.py
Wangrenai/esp-idf
abea9e4c02bb17e86298aec4e299780399e4789f
[ "Apache-2.0" ]
1
2019-02-14T22:29:30.000Z
2019-02-14T22:29:30.000Z
#!/usr/bin/env python # # Copyright 2018 Espressif Systems (Shanghai) PTE 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 req...
39.080169
97
0.604297
5c9cfbde3b7090ad3536985b2d3cc87d91476e41
10,861
py
Python
simapi.py
RichieBrady/SimAPI-Python
9bd07e9fd0b3b4f37c968b061791ef9c1c6d213c
[ "MIT" ]
1
2020-04-08T19:40:10.000Z
2020-04-08T19:40:10.000Z
simapi.py
RichieBrady/SimAPI-Python
9bd07e9fd0b3b4f37c968b061791ef9c1c6d213c
[ "MIT" ]
8
2020-04-12T08:52:21.000Z
2021-09-22T18:34:19.000Z
simapi.py
RichieBrady/SimAPI-Python
9bd07e9fd0b3b4f37c968b061791ef9c1c6d213c
[ "MIT" ]
2
2020-04-08T08:52:15.000Z
2021-04-24T12:44:39.000Z
import csv import json import logging import polling2 import requests import pandas as pd user_url = 'http://127.0.0.1:8000/user/' login_url = 'http://127.0.0.1:8000/login/' init_url = 'http://127.0.0.1:8000/init_model/' input_url = 'http://127.0.0.1:8000/input/' output_url = 'http://127.0.0.1:8000/output/' graphql_ur...
38.514184
126
0.564129
deed3ce45bb05f06e51243af3cb0be75e5da73f8
247
py
Python
tests/data/expected/main/main_nested_directory/definitions/drink/coffee.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/main/main_nested_directory/definitions/drink/coffee.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/main/main_nested_directory/definitions/drink/coffee.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
# generated by datamodel-codegen: # filename: definitions/drink/coffee.json # timestamp: 2019-07-26T00:00:00+00:00 from __future__ import annotations from enum import Enum class Coffee(Enum): Black = 'Black' Espresso = 'Espresso'
19
44
0.724696
21a00a4ace3376c64a4370e05fd7b9812b08b62f
5,483
py
Python
tools/sync_mediawiki.py
CHChang810716/libsimdpp
669bbffb9a94660f83c1c2e46af6098a8e993caa
[ "BSL-1.0" ]
975
2015-01-08T08:30:17.000Z
2022-03-30T02:57:58.000Z
tools/sync_mediawiki.py
abique/libsimdpp
a42deb7e3ca75c5ebaca0a334f18f1ab9822db02
[ "BSL-1.0" ]
125
2015-05-06T09:25:14.000Z
2022-03-23T01:07:07.000Z
tools/sync_mediawiki.py
abique/libsimdpp
a42deb7e3ca75c5ebaca0a334f18f1ab9822db02
[ "BSL-1.0" ]
140
2015-05-03T18:56:00.000Z
2022-03-22T07:14:46.000Z
#!/usr/bin/env python3 # Copyright (C) 2016-2017 Povilas Kanapickas <povilas@radix.lt> # # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # This script depends on pywikibot framework. Install using # ...
34.055901
79
0.668794
ae57a5fe6833a418c20a7352671eb54b5849065e
10,911
py
Python
manila_tempest_tests/tests/api/test_shares_negative.py
redhat-openstack/manila
bef43561b303a36d99849952ba8c408b19bafd02
[ "Apache-2.0" ]
1
2015-05-28T22:28:08.000Z
2015-05-28T22:28:08.000Z
manila_tempest_tests/tests/api/test_shares_negative.py
redhat-openstack/manila
bef43561b303a36d99849952ba8c408b19bafd02
[ "Apache-2.0" ]
5
2015-08-13T15:17:28.000Z
2016-08-02T02:55:01.000Z
manila_tempest_tests/tests/api/test_shares_negative.py
redhat-openstack/manila
bef43561b303a36d99849952ba8c408b19bafd02
[ "Apache-2.0" ]
2
2015-08-29T08:19:58.000Z
2016-08-02T02:46:10.000Z
# Copyright 2014 Mirantis 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...
41.965385
79
0.620841
2787105eab5a75f5ab728a66c204ceedeaf4f3ea
2,041
py
Python
src/libraries/enet.py
kirirowy/mai-bot
f6b50083d5fa335d01b831f23c5b2d20bb2a8446
[ "MIT" ]
1
2022-02-27T06:56:39.000Z
2022-02-27T06:56:39.000Z
src/libraries/enet.py
kiritowy/mai-bot
f6b50083d5fa335d01b831f23c5b2d20bb2a8446
[ "MIT" ]
null
null
null
src/libraries/enet.py
kiritowy/mai-bot
f6b50083d5fa335d01b831f23c5b2d20bb2a8446
[ "MIT" ]
null
null
null
# 列举文件 from asyncio.log import logger import asyncio from fileinput import filename from sqlite3 import Timestamp from unittest import result import oss2 import time from itertools import islice AccessKeyId = "" AccessKeySecret = "" oss_url="oss-cn-guangzhou.aliyuncs.com" BuckerName="mai2photo" auth = oss2.Auth(Ac...
30.462687
84
0.650171
493818e2c58b7a73cfe18d4f8e9b968fc4f3c5f1
3,286
py
Python
dataset.py
m-zayan/ml_utils
c93dcca6362b22d3b9e4652593695b38a8e73763
[ "MIT" ]
null
null
null
dataset.py
m-zayan/ml_utils
c93dcca6362b22d3b9e4652593695b38a8e73763
[ "MIT" ]
null
null
null
dataset.py
m-zayan/ml_utils
c93dcca6362b22d3b9e4652593695b38a8e73763
[ "MIT" ]
null
null
null
from typing import Union import numpy as np import pandas as pd from sklearn.datasets import load_boston, load_diabetes, load_breast_cancer, load_iris, load_digits from sklearn.model_selection import train_test_split class Load: """ Parameters -------- dtype (str): pandas or numpy, if numpy the retu...
30.425926
117
0.557212
e4d562b130891e09c88c8758ebf2092ba37e498e
2,964
py
Python
2017/day_22/solution_p2.py
rvaughan/AdventOfCode2017
fb9199282c0083cd0b3072c27e63ea83d866efc2
[ "MIT" ]
null
null
null
2017/day_22/solution_p2.py
rvaughan/AdventOfCode2017
fb9199282c0083cd0b3072c27e63ea83d866efc2
[ "MIT" ]
null
null
null
2017/day_22/solution_p2.py
rvaughan/AdventOfCode2017
fb9199282c0083cd0b3072c27e63ea83d866efc2
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This code holds the solution for part 2 of day 22 of the Advent of Code for 2017. """ from collections import defaultdict import sys UP = (-1, 0) DOWN = (1, 0) LEFT = (0, -1) RIGHT = (0, 1) def default_factory(): return "." def turn_left(direction): if direction == UP: r...
21.955556
81
0.58502
e40ea824239535adecf3f32b2f927f7beeb1c86f
243
py
Python
examples/delivery/market/basis.py
AlfonsoAgAr/binance-futures-connector-python
f0bd2c7b0576503bf526ce6be329ca2dae90fefe
[ "MIT" ]
58
2021-11-22T11:46:27.000Z
2022-03-30T06:58:53.000Z
examples/delivery/market/basis.py
sanjeevan121/binance-futures-connector-python
d820b73a15e9f64c80891a13694ca0c5d1693b90
[ "MIT" ]
15
2021-12-15T22:40:52.000Z
2022-03-29T22:08:31.000Z
examples/delivery/market/basis.py
sanjeevan121/binance-futures-connector-python
d820b73a15e9f64c80891a13694ca0c5d1693b90
[ "MIT" ]
28
2021-12-10T03:56:13.000Z
2022-03-25T22:23:44.000Z
#!/usr/bin/env python import logging from binance.delivery import Delivery as Client from binance.lib.utils import config_logging config_logging(logging, logging.DEBUG) client = Client() logging.info(client.basis("BTCUSD","PERPETUAL","1d"))
24.3
53
0.790123
0b2c2f48f8e80fe98b69f07277955aa582859635
1,233
py
Python
candlestick/patterns/piercing_pattern.py
michalk21/candlestick-patterns
8b44f405491b9f128a5e42a9c363893c2f93a12a
[ "MIT" ]
212
2020-07-02T01:54:09.000Z
2022-03-22T20:22:07.000Z
candlestick/patterns/piercing_pattern.py
dewmal/candlestick-patterns
29cda62f42869def811a19ceb57118d2a4b5d68f
[ "MIT" ]
2
2021-06-02T00:50:58.000Z
2021-12-13T20:30:18.000Z
candlestick/patterns/piercing_pattern.py
dewmal/candlestick-patterns
29cda62f42869def811a19ceb57118d2a4b5d68f
[ "MIT" ]
74
2020-07-01T02:27:19.000Z
2022-03-30T05:37:16.000Z
from candlestick.patterns.candlestick_finder import CandlestickFinder class PiercingPattern(CandlestickFinder): def __init__(self, target=None): super().__init__(self.get_class_name(), 2, target=target) def logic(self, idx): candle = self.data.iloc[idx] prev_candle = self.data.iloc[id...
37.363636
81
0.601784
b619d4d7f9264bac16318a6e76942433ceb1ebe4
1,447
py
Python
scantron/models/paper.py
suhelhammoud/scantron
fcf64d973342cd63acf5235ce621fed02aeae47d
[ "MIT" ]
null
null
null
scantron/models/paper.py
suhelhammoud/scantron
fcf64d973342cd63acf5235ce621fed02aeae47d
[ "MIT" ]
null
null
null
scantron/models/paper.py
suhelhammoud/scantron
fcf64d973342cd63acf5235ce621fed02aeae47d
[ "MIT" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator class Paper(models.Model): name = models.CharField(max_length=200, null=True, blank=True, default="Add name to paper here") id_number = models.PositiveSmallIntegerField(default=0) num_questions = m...
26.796296
86
0.569454
3b835eda7f7a420283851b07426b0b14e84f2b8c
3,344
py
Python
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy283.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy283.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy283.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=19 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 ...
28.827586
82
0.629785
b84f7936d2c19a51356cf7cdd17b99e96117feea
1,708
py
Python
aiida/cmdline/commands/__init__.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
1
2019-07-31T04:08:13.000Z
2019-07-31T04:08:13.000Z
aiida/cmdline/commands/__init__.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
aiida/cmdline/commands/__init__.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
58.896552
120
0.582553
bfc3968306d1a5636e7709232678ffa62ef23a9e
30,866
py
Python
python/payloads_pb2.py
mrrabbitte/pooly
7f3c8b0b3deda18d0dc8fb9284e5164abe9b3b1a
[ "Unlicense" ]
1
2022-03-18T20:06:48.000Z
2022-03-18T20:06:48.000Z
python/payloads_pb2.py
mrrabbitte/pooly
7f3c8b0b3deda18d0dc8fb9284e5164abe9b3b1a
[ "Unlicense" ]
null
null
null
python/payloads_pb2.py
mrrabbitte/pooly
7f3c8b0b3deda18d0dc8fb9284e5164abe9b3b1a
[ "Unlicense" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: src/payloads.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _...
37.458738
2,737
0.754973
e1244482855b66e4407148ea3a69a1d97f797d4c
1,312
py
Python
waitlist/blueprints/settings/inserts.py
kimnnmadsen/eve-inc-waitlist
c3e4853c5563a95edbf105c11e73d481595fb3ab
[ "MIT" ]
null
null
null
waitlist/blueprints/settings/inserts.py
kimnnmadsen/eve-inc-waitlist
c3e4853c5563a95edbf105c11e73d481595fb3ab
[ "MIT" ]
1
2020-02-18T05:11:20.000Z
2020-02-18T05:29:10.000Z
waitlist/blueprints/settings/inserts.py
kimnnmadsen/eve-inc-waitlist
c3e4853c5563a95edbf105c11e73d481595fb3ab
[ "MIT" ]
null
null
null
from flask import Response from flask_login import login_required from flask.templating import render_template from waitlist.blueprints.settings import add_menu_entry from waitlist.utility.settings import sget_insert, sset_insert from flask.blueprints import Blueprint import logging from flask.globals import request f...
32
119
0.778201
11990ceec5931b40947115186bac88fcb5da9ecb
12,299
py
Python
corehq/apps/app_manager/tests/test_form_workflow.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/app_manager/tests/test_form_workflow.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
corehq/apps/app_manager/tests/test_form_workflow.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
from django.test import SimpleTestCase from corehq.apps.app_manager.models import ( FormLink, WORKFLOW_FORM, WORKFLOW_MODULE, WORKFLOW_PREVIOUS, WORKFLOW_ROOT, WORKFLOW_PARENT_MODULE, FormDatum) from corehq.apps.app_manager.const import AUTO_SELECT_RAW from corehq.apps.app_manager.tests.app_...
40.860465
125
0.66168
36091adbd8c5d3a8daf9ebe56234161778b43267
86
py
Python
redis_h3_client/__init__.py
clarkcb/redis-h3-client-py
a338f345cd660674542f7ee438ba36cadbd2126b
[ "MIT" ]
null
null
null
redis_h3_client/__init__.py
clarkcb/redis-h3-client-py
a338f345cd660674542f7ee438ba36cadbd2126b
[ "MIT" ]
null
null
null
redis_h3_client/__init__.py
clarkcb/redis-h3-client-py
a338f345cd660674542f7ee438ba36cadbd2126b
[ "MIT" ]
null
null
null
from .redis_h3_client import RedisH3 __version__ = '0.1.0' __author__ = 'Cary Clark'
17.2
36
0.755814
a943c5a526b0270b3c6d4ccb840e6c437c257558
13,465
py
Python
aimsbackend/StaffViews.py
AhsanJoyia/Academic-Institute-Management-System
51c43e8914abd193fe848b8b7550c5d75d97c922
[ "MIT" ]
1
2021-08-25T07:28:59.000Z
2021-08-25T07:28:59.000Z
aimsbackend/StaffViews.py
AhsanJoyia/Academic-Institute-Management-System
51c43e8914abd193fe848b8b7550c5d75d97c922
[ "MIT" ]
null
null
null
aimsbackend/StaffViews.py
AhsanJoyia/Academic-Institute-Management-System
51c43e8914abd193fe848b8b7550c5d75d97c922
[ "MIT" ]
null
null
null
import json from datetime import datetime from uuid import uuid4 from django.contrib import messages from django.core import serializers from django.forms import model_to_dict from django.http import HttpResponse, JsonResponse, HttpResponseRedirect from django.shortcuts import render from django.urls import reverse fr...
40.19403
395
0.709543
9c0d64e056599b531f932429c611bf51c65b4412
1,511
py
Python
Library_Management/library_management/requestbook/views.py
pankesh18/web_dev_for_info_system
e46faf4113e219eb3caad5fa494f2c5506df2689
[ "Unlicense" ]
null
null
null
Library_Management/library_management/requestbook/views.py
pankesh18/web_dev_for_info_system
e46faf4113e219eb3caad5fa494f2c5506df2689
[ "Unlicense" ]
null
null
null
Library_Management/library_management/requestbook/views.py
pankesh18/web_dev_for_info_system
e46faf4113e219eb3caad5fa494f2c5506df2689
[ "Unlicense" ]
null
null
null
import json from telnetlib import STATUS from django.shortcuts import render from django.contrib.auth.decorators import login_required import requests from django.http import HttpResponse from Library.models import Book, MyBook from library_management.settings import MEDIA_URL,MEDIA_ROOT @login_required def reqbook(r...
26.982143
182
0.711449
05fe2bd262d5349ea149357bad05abc7f18634ff
3,663
py
Python
backend/app/bug_killer_app/api/project.py
SeanFitzpatrick0/BugKiller
c7dd328ac539aa75e8a1d908dd35722df4e78ab4
[ "Apache-2.0" ]
null
null
null
backend/app/bug_killer_app/api/project.py
SeanFitzpatrick0/BugKiller
c7dd328ac539aa75e8a1d908dd35722df4e78ab4
[ "Apache-2.0" ]
null
null
null
backend/app/bug_killer_app/api/project.py
SeanFitzpatrick0/BugKiller
c7dd328ac539aa75e8a1d908dd35722df4e78ab4
[ "Apache-2.0" ]
null
null
null
from aws_lambda_powertools.utilities.typing import LambdaContext from bug_killer_api_interface.domain.endpoint.endpoint import EndpointDetails from bug_killer_api_interface.interface.endpoint.project import DELETE_PROJECT, UPDATE_PROJECT, CREATE_PROJECT, \ GET_PROJECT, GET_USER_PROJECTS from bug_killer_app.access....
33.916667
120
0.780235
0d0fc4ff56dc9a9111f30055e879bc72999d6a0e
6,436
py
Python
tests/workflows/test_skymodel_serial.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
null
null
null
tests/workflows/test_skymodel_serial.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
null
null
null
tests/workflows/test_skymodel_serial.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
null
null
null
""" Unit tests for pipelines expressed via arlexecute """ import logging import sys import unittest import numpy from astropy import units as u from astropy.coordinates import SkyCoord from workflows.serial.skymodel.skymodel_serial import predict_skymodel_list_serial_workflow from data_models.memory_data_models impo...
45.006993
116
0.586389
e6190d839bbf80c64dd850df1c6ef8368ca0d356
938
py
Python
setup.py
Mouse-Imaging-Centre/fastCell
1d1c39d9953ee83e2c56b284f5b1f57052e490a8
[ "MIT" ]
1
2021-02-03T14:41:02.000Z
2021-02-03T14:41:02.000Z
setup.py
Mouse-Imaging-Centre/fastCell
1d1c39d9953ee83e2c56b284f5b1f57052e490a8
[ "MIT" ]
2
2019-11-11T19:09:59.000Z
2021-03-12T17:36:55.000Z
setup.py
Mouse-Imaging-Centre/fastCell
1d1c39d9953ee83e2c56b284f5b1f57052e490a8
[ "MIT" ]
1
2020-01-16T21:09:41.000Z
2020-01-16T21:09:41.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="fastCell", version="1.0.0", author="Nick Wang", author_email="nick.wang@mail.mcgill.ca", description="Fast Deep Neural Networks for Cell Image Analysis", long_description=long_descript...
28.424242
68
0.619403
d8ec70bb6ba855abcd44e4c50f90952219f2a9a8
2,385
py
Python
scripts/devSetup/which.py
flauta/codecombat
8b0a0c4e516fb3d01815082f7c7650312b7cd8e5
[ "MIT" ]
1
2021-01-09T23:57:54.000Z
2021-01-09T23:57:54.000Z
scripts/devSetup/which.py
flauta/codecombat
8b0a0c4e516fb3d01815082f7c7650312b7cd8e5
[ "MIT" ]
4
2016-04-19T00:06:28.000Z
2016-04-19T02:25:22.000Z
scripts/devSetup/which.py
flauta/codecombat
8b0a0c4e516fb3d01815082f7c7650312b7cd8e5
[ "MIT" ]
2
2020-10-28T14:50:54.000Z
2020-11-05T12:39:19.000Z
__author__ = 'root' #copied from python3 import os import sys def which(cmd, mode=os.F_OK | os.X_OK, path=None): """Given a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file. `mode` defaults to os.F_OK | os.X_OK. `path` def...
36.136364
80
0.615933
db9fb536f9fdfc4c02cd4b31a45246f17c3d6175
184
py
Python
app/gws/ext/layer/wms/__init__.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
app/gws/ext/layer/wms/__init__.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
app/gws/ext/layer/wms/__init__.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
import gws.ext.ows.provider.wms.layer class Config(gws.ext.ows.provider.wms.layer.Config): """WMS layer""" pass class Object(gws.ext.ows.provider.wms.layer.Object): pass
20.444444
52
0.711957
48dc21938399fe0d175e81d93c789f9b283372fd
1,022
py
Python
samples/secure_file_share/coreservices/get_list_of_files.py
ssethumavisa/cybersource-rest-samples-python
1da9dfb943df0e6be3c4fd591a69e2f8f20ac18e
[ "MIT" ]
null
null
null
samples/secure_file_share/coreservices/get_list_of_files.py
ssethumavisa/cybersource-rest-samples-python
1da9dfb943df0e6be3c4fd591a69e2f8f20ac18e
[ "MIT" ]
null
null
null
samples/secure_file_share/coreservices/get_list_of_files.py
ssethumavisa/cybersource-rest-samples-python
1da9dfb943df0e6be3c4fd591a69e2f8f20ac18e
[ "MIT" ]
null
null
null
from CyberSource import * import os from importlib.machinery import SourceFileLoader config_file = os.path.join(os.getcwd(), "data", "Configuration.py") configuration = SourceFileLoader("module.name", config_file).load_module() def get_list_of_files(): try: start_date = "2018-10-20" end_date = "2...
37.851852
103
0.661448
5fe41b9ce3ada1b3f39a4b2de935be0240807d90
1,043
py
Python
tests/test_deepred_pytorch.py
dileep-kishore/DEEPred-pytorch
17f5189ebce41b9f0b959a2c7e797545b93f762c
[ "MIT" ]
null
null
null
tests/test_deepred_pytorch.py
dileep-kishore/DEEPred-pytorch
17f5189ebce41b9f0b959a2c7e797545b93f762c
[ "MIT" ]
null
null
null
tests/test_deepred_pytorch.py
dileep-kishore/DEEPred-pytorch
17f5189ebce41b9f0b959a2c7e797545b93f762c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `deepred_pytorch` package.""" import pytest from click.testing import CliRunner from deepred_pytorch import deepred_pytorch from deepred_pytorch import cli @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.o...
26.74359
78
0.709492
026e151d40fe1039f8a2e468d7fd7a54e7d0a1de
13,918
py
Python
mindspore/parallel/_utils.py
mindspore-ai/mindspore
a9fbb25530a2874166ff0045ddcdfc73207bf5eb
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
mindspore/parallel/_utils.py
Ascend/mindspore
1509d3f848e6685660194d9f58646fc73ae0f0f0
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
mindspore/parallel/_utils.py
mindspore-ai/mindspore
a9fbb25530a2874166ff0045ddcdfc73207bf5eb
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# 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 agreed to...
39.205634
119
0.663457
949308df3ba02e18d367a526f74f367e13a9ca66
3,174
py
Python
var/spack/repos/builtin/packages/siesta/package.py
RemoteConnectionManager/spack
f2967b6c16effd26ce007cf86cadbb645c574f50
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/siesta/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/siesta/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 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 * import os class Siesta(Package): """SIESTA performs electronic structure calculations and ab in...
40.692308
142
0.521109
aaf60553093ad8ac04cb5b60198381daabe3138a
410
py
Python
examples/commandsbot.py
spacedev-official/disformers
31800466741be5ddcdfb531e021638f6ee112e23
[ "Apache-2.0" ]
null
null
null
examples/commandsbot.py
spacedev-official/disformers
31800466741be5ddcdfb531e021638f6ee112e23
[ "Apache-2.0" ]
14
2021-11-01T08:23:06.000Z
2022-03-31T08:32:24.000Z
examples/commandsbot.py
spacedev-official/disformers
31800466741be5ddcdfb531e021638f6ee112e23
[ "Apache-2.0" ]
null
null
null
import discord from discord.ext import commands from DisFormers import DisFormersBot class MyBot(commands.Bot): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) async def on_ready(self): print("Bot is ready.") my_bot = MyBot(command_prefix="!", intents=discord.Intents.a...
24.117647
65
0.692683
e54873121d886c5f8072ba1cebd840d16c8e65f7
10,842
py
Python
DASH/DASH/DashBoard/App.py
changsoooo/kisra-1
dce2132df97d2b20d9019fa3421540895a097183
[ "FTL" ]
null
null
null
DASH/DASH/DashBoard/App.py
changsoooo/kisra-1
dce2132df97d2b20d9019fa3421540895a097183
[ "FTL" ]
null
null
null
DASH/DASH/DashBoard/App.py
changsoooo/kisra-1
dce2132df97d2b20d9019fa3421540895a097183
[ "FTL" ]
null
null
null
import dash import dash_html_components as html import Character from dash.dependencies import Input, Output, State import plotly.express as px import dash_core_components as dcc import dash_bootstrap_components as dbc import layout import User import numpy as np from datetime import timedelta import plotly.graph_objec...
42.685039
130
0.501752
41a0032a19d24a072da7c168b458a1fd7d4d07a1
983
py
Python
core/urls.py
Wanderer2436/django_pharmacy
2e12c41e30f2f2e2c0f3abdaded98a917420f5b8
[ "MIT" ]
null
null
null
core/urls.py
Wanderer2436/django_pharmacy
2e12c41e30f2f2e2c0f3abdaded98a917420f5b8
[ "MIT" ]
2
2022-03-31T14:34:44.000Z
2022-03-31T14:35:17.000Z
core/urls.py
Wanderer2436/django_pharmacy
2e12c41e30f2f2e2c0f3abdaded98a917420f5b8
[ "MIT" ]
null
null
null
from django.urls import path import core.views app_name = 'core' urlpatterns = [ path('', core.views.IndexView.as_view(), name='home'), path('catalog/', core.views.ProductList.as_view(), name='catalog'), path('catalog/category/<int:category_id>/', core.views.ProductList.as_view(), name='category'), pa...
54.611111
108
0.711089
ae2a59502bc1362b9bc6e318befc7dbc54d3d5cb
4,085
py
Python
python_module/megengine/functional/graph.py
WestCityInstitute/MegEngine
f91881ffdc051ab49314b1bd12c4a07a862dc9c6
[ "Apache-2.0" ]
2
2020-03-26T08:26:29.000Z
2020-06-01T14:41:38.000Z
python_module/megengine/functional/graph.py
ted51/MegEngine
f91881ffdc051ab49314b1bd12c4a07a862dc9c6
[ "Apache-2.0" ]
null
null
null
python_module/megengine/functional/graph.py
ted51/MegEngine
f91881ffdc051ab49314b1bd12c4a07a862dc9c6
[ "Apache-2.0" ]
1
2020-11-09T06:29:51.000Z
2020-11-09T06:29:51.000Z
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2020 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
33.760331
97
0.667564
920c890613ee43ed59316e8a2b2afa228a993883
3,077
py
Python
setup.py
pedromanrique/tensorflow-tts
62796295284c7cc19f3224df1116a82ce3b1c1d7
[ "Apache-2.0" ]
2
2020-07-03T05:47:47.000Z
2020-07-03T19:59:09.000Z
setup.py
RakaMaru/TensorflowTTS
473eb717503454fa2eabadefd7bcd2459673f6f2
[ "Apache-2.0" ]
null
null
null
setup.py
RakaMaru/TensorflowTTS
473eb717503454fa2eabadefd7bcd2459673f6f2
[ "Apache-2.0" ]
4
2021-02-23T13:05:59.000Z
2021-04-23T05:15:32.000Z
"""Setup Tensorflow TTS libarary.""" import os import pip import sys from distutils.version import LooseVersion from setuptools import find_packages from setuptools import setup if LooseVersion(sys.version) < LooseVersion("3.6"): raise RuntimeError( "Tensorflow TTS requires python >= 3.6, " "but ...
33.086022
137
0.646409
06fe407f1f6f723cec43df0d963083e621f45f62
861
py
Python
DQM/SiStripMonitorClient/python/RecoForDQM_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/SiStripMonitorClient/python/RecoForDQM_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/SiStripMonitorClient/python/RecoForDQM_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # Digitiser #### # SiStrip from EventFilter.SiStripRawToDigi.SiStripDigis_cfi import * siStripDigis.ProductLabel = 'source' # SiPixel from EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi import * siPixelDigis.InputLabel = 'source' # Local Reco #### from RecoLocalTrack...
27.774194
123
0.806039
a591ab7b8d29ee727f7c71954a20eaf617bf9155
5,585
py
Python
notifications.py
labscript-suite-temp-archive/blacs-fork--mearnshaw-blacs--forked-from--labscript_suite-blacs
c3243ad3c9d846138172a08ece58c67ea9e263d6
[ "BSD-2-Clause" ]
null
null
null
notifications.py
labscript-suite-temp-archive/blacs-fork--mearnshaw-blacs--forked-from--labscript_suite-blacs
c3243ad3c9d846138172a08ece58c67ea9e263d6
[ "BSD-2-Clause" ]
null
null
null
notifications.py
labscript-suite-temp-archive/blacs-fork--mearnshaw-blacs--forked-from--labscript_suite-blacs
c3243ad3c9d846138172a08ece58c67ea9e263d6
[ "BSD-2-Clause" ]
null
null
null
##################################################################### # # # /notifications.py # # # # Copyright 2013, Monash University ...
46.932773
130
0.570636
3c37006f6562bfc236f1574fe153291362470c05
2,146
py
Python
src/handlers.py
lareira-digital/octodon
1131bf4ae3b215f1d8021e3ffd5769c5a9a5e9e4
[ "MIT" ]
null
null
null
src/handlers.py
lareira-digital/octodon
1131bf4ae3b215f1d8021e3ffd5769c5a9a5e9e4
[ "MIT" ]
null
null
null
src/handlers.py
lareira-digital/octodon
1131bf4ae3b215f1d8021e3ffd5769c5a9a5e9e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Oscar Carballal Prego # @Date: 2017-04-18 23:25:07 # @Last Modified by: Oscar Carballal Prego # @Last Modified time: 2017-04-20 22:54:12 import gi from gi.repository import Gtk from .parser import SSHConfigParser class Handler(): def __init__(self, builder): self.s...
32.515152
70
0.609972
c6702b3ca275ec56af022a44f608dc739744132e
4,719
py
Python
chapter_07/grid_world_sarsa.py
linklab/link_rl_book_codes
b272b46d5ecd2802f34648440ff53641c68cbbf0
[ "MIT" ]
null
null
null
chapter_07/grid_world_sarsa.py
linklab/link_rl_book_codes
b272b46d5ecd2802f34648440ff53641c68cbbf0
[ "MIT" ]
7
2020-11-13T18:57:32.000Z
2022-02-10T01:52:44.000Z
chapter_07/grid_world_sarsa.py
linklab/link_rl_book_codes
b272b46d5ecd2802f34648440ff53641c68cbbf0
[ "MIT" ]
1
2021-09-07T12:41:33.000Z
2021-09-07T12:41:33.000Z
import numpy as np import random import matplotlib.pyplot as plt import matplotlib as mpl import pickle from environments.gridworld import GridWorld plt.rcParams["font.family"] = 'AppleGothic' plt.rcParams["font.size"] = 12 mpl.rcParams['axes.unicode_minus'] = False GRID_HEIGHT = 4 GRID_WIDTH = 4 TERMINAL_STATES = [...
28.77439
122
0.571307
7fde633e76b92579f73735cbf88f93b628787a41
297
py
Python
src/model_training.py
nworb95/clean-code-ml
59812fb507ae82212f119ea4a8ab831cae09ef0d
[ "Apache-2.0" ]
1
2020-11-06T21:43:59.000Z
2020-11-06T21:43:59.000Z
src/model_training.py
nworb95/clean-code-ml
59812fb507ae82212f119ea4a8ab831cae09ef0d
[ "Apache-2.0" ]
null
null
null
src/model_training.py
nworb95/clean-code-ml
59812fb507ae82212f119ea4a8ab831cae09ef0d
[ "Apache-2.0" ]
null
null
null
def train_model(ModelClass, X_train, Y_train, **kwargs): model = ModelClass(**kwargs) model.fit(X_train, Y_train) accuracy_score = round(model.score(X_train, Y_train) * 100, 2) print(f'accuracy ({ModelClass.__name__}): {accuracy_score}') return model, accuracy_score
33
66
0.690236
cb07cce486ca8c4aa8d8c3cf706b163d06ec3bcb
777
py
Python
mycroft/utils.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
mycroft/utils.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
mycroft/utils.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
import daphne_context import random def generate_unique_mycroft_session(): current_sessions = get_current_mycroft_sessions() session = generate_mycroft_session() tries = 0 while session in current_sessions: session = generate_mycroft_session() tries += 1 if tries > 100: ...
22.2
65
0.679537
b28f38d9699bfd534d57eb70be43900c2c335772
7,098
py
Python
h/routes.py
rickyhan/h
d13cbc3ec5cf92fbfb40ad360c7a5e0d937fbd14
[ "MIT" ]
2
2021-11-07T23:14:54.000Z
2021-11-17T10:11:55.000Z
h/routes.py
0b01/h
d13cbc3ec5cf92fbfb40ad360c7a5e0d937fbd14
[ "MIT" ]
null
null
null
h/routes.py
0b01/h
d13cbc3ec5cf92fbfb40ad360c7a5e0d937fbd14
[ "MIT" ]
1
2017-03-12T00:18:33.000Z
2017-03-12T00:18:33.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals def includeme(config): # Core config.add_route('index', '/') config.add_route('robots', '/robots.txt') config.add_route('via_redirect', '/via') # Accounts config.add_route('login', '/login') config.add_route('logout', '/logo...
43.546012
85
0.625247
2cbd5e920eadb7e396362d39cb3b4ac5f4a09ecc
4,557
py
Python
gem_metrics/local_recall.py
ndaheim/GEM-metrics
cfa7a3223d94a7f7ef5fda1d2928e2510b0cbede
[ "MIT" ]
30
2021-02-06T04:58:14.000Z
2022-03-04T11:26:14.000Z
gem_metrics/local_recall.py
ndaheim/GEM-metrics
cfa7a3223d94a7f7ef5fda1d2928e2510b0cbede
[ "MIT" ]
70
2021-01-12T17:55:15.000Z
2022-03-30T17:37:02.000Z
gem_metrics/local_recall.py
ndaheim/GEM-metrics
cfa7a3223d94a7f7ef5fda1d2928e2510b0cbede
[ "MIT" ]
14
2021-01-30T20:55:17.000Z
2022-03-24T02:31:21.000Z
from .metric import ReferencedMetric from collections import Counter, defaultdict class LocalRecall(ReferencedMetric): """ LocalRecall checks the extent to which a model produces the same tokens as the reference data. For each item, tokens receive an importance score. If all N annotators use a particular...
39.973684
112
0.639456
aaae183ca161b218fd96145d3845cbef47321f95
4,602
py
Python
Scweet/user.py
pydxflwb/Scweet
4d6892edf3b76ff9ec50cda5ee570b80b064b46a
[ "MIT" ]
null
null
null
Scweet/user.py
pydxflwb/Scweet
4d6892edf3b76ff9ec50cda5ee570b80b064b46a
[ "MIT" ]
null
null
null
Scweet/user.py
pydxflwb/Scweet
4d6892edf3b76ff9ec50cda5ee570b80b064b46a
[ "MIT" ]
null
null
null
import csv import os import datetime import argparse import pandas as pd import utils from time import sleep import random def get_user_information(users, driver=None, headless=True): """ get user information if the "from_account" argument is specified """ driver = utils.init_driver(headless=headless) u...
35.674419
123
0.524989
c9fcb4b818587b93cc9dc9d2d41947bbac4169a7
3,018
py
Python
ngraph_onnx/onnx_importer/utils/types.py
cliveseldon/ngraph-onnx
a2d20afdc7acd5064e4717612ad372d864d03d3d
[ "Apache-2.0" ]
null
null
null
ngraph_onnx/onnx_importer/utils/types.py
cliveseldon/ngraph-onnx
a2d20afdc7acd5064e4717612ad372d864d03d3d
[ "Apache-2.0" ]
null
null
null
ngraph_onnx/onnx_importer/utils/types.py
cliveseldon/ngraph-onnx
a2d20afdc7acd5064e4717612ad372d864d03d3d
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2018 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://www.apache.o...
36.361446
92
0.69218
0b520b3e583daba06e0646d1725c1194802bc87c
1,202
py
Python
Day 7/HangMan.py
anti-batman/100-Days-of-Code
2ba087a8eacd86f23104349f3044baf9965d5073
[ "MIT" ]
72
2021-02-20T06:00:46.000Z
2022-03-29T21:54:01.000Z
Day 7/HangMan.py
anti-batman/100-Days-of-Code
2ba087a8eacd86f23104349f3044baf9965d5073
[ "MIT" ]
2
2021-06-05T17:39:16.000Z
2022-01-30T08:58:14.000Z
Day 7/HangMan.py
anti-batman/100-Days-of-Code
2ba087a8eacd86f23104349f3044baf9965d5073
[ "MIT" ]
21
2021-04-03T09:59:48.000Z
2022-01-30T20:24:43.000Z
import random from replit import clear from hangman_words import word_list from hangman_art import stages, logo print(logo) display = [] end_of_game = False lives = 6 chosen_word = random.choice(word_list) #testing code #print(f"The choosen word is: {chosen_word}") length = len(chosen_word) for _ in range(length):...
22.679245
83
0.634775
1058761793e05fec48d546880e2a626054cb0e05
39,080
py
Python
build/plugins/ytest.py
dmitrySorokin/catboost
7a12febbc181eb977bca1f0dceba8f046795be11
[ "Apache-2.0" ]
null
null
null
build/plugins/ytest.py
dmitrySorokin/catboost
7a12febbc181eb977bca1f0dceba8f046795be11
[ "Apache-2.0" ]
null
null
null
build/plugins/ytest.py
dmitrySorokin/catboost
7a12febbc181eb977bca1f0dceba8f046795be11
[ "Apache-2.0" ]
null
null
null
import os import re import sys import json import copy import base64 import shlex import _common import _metric_resolvers as mr import _test_const as consts import _requirements as reqs import StringIO import subprocess import collections import ymake MDS_URI_PREFIX = 'https://storage.yandex-team.ru/get-devtools/' M...
41.886388
251
0.630194
c387f4c87437ea80642e635aea154bef93230d48
993
py
Python
ML_Lecture5_SelfStudy5/gradient_example.py
Jbarata98/ML_AAU1920
090b8cbae9d6adba4ab30e7d4fd68eb24e04c5f4
[ "MIT" ]
2
2021-05-16T11:21:23.000Z
2021-05-16T11:21:23.000Z
ML_Lecture5_SelfStudy5/gradient_example.py
Jbarata98/ML_AAU1920
090b8cbae9d6adba4ab30e7d4fd68eb24e04c5f4
[ "MIT" ]
null
null
null
ML_Lecture5_SelfStudy5/gradient_example.py
Jbarata98/ML_AAU1920
090b8cbae9d6adba4ab30e7d4fd68eb24e04c5f4
[ "MIT" ]
null
null
null
import torch sigmoid = torch.nn.Sigmoid() relu = torch.nn.ReLU() x1 = torch.tensor(1.0, requires_grad=True) w1 = torch.tensor(2.0, requires_grad=True) x2 = torch.tensor(3.0, requires_grad=True) w2 = torch.tensor(0.5, requires_grad=True) y1 = x1*w1 y1.register_hook(lambda grad: print("Grad y1 = {}".format(grad))) y...
23.093023
65
0.668681
c82ace0bb5321d8a7f051f7f5d47d20833ab9d15
2,466
py
Python
pythonCore/ch10/myexc.py
Furzoom/learnpython
a3034584e481d4e7c55912d9da06439688aa67ea
[ "MIT" ]
null
null
null
pythonCore/ch10/myexc.py
Furzoom/learnpython
a3034584e481d4e7c55912d9da06439688aa67ea
[ "MIT" ]
null
null
null
pythonCore/ch10/myexc.py
Furzoom/learnpython
a3034584e481d4e7c55912d9da06439688aa67ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import errno import os import socket import tempfile import types class NetworkError(IOError): pass class FileError(IOError): pass def updArgs(args, newarg=None): if isinstance(args, IOError): myargs = [] myargs.extend([arg for arg in args...
21.631579
70
0.528792
37daf05f40d93c7f491b6b78cd4613f5dfeeb157
21,305
py
Python
es_distributed/policies.py
TrevorCMorton/deep-neuroevolution
d6e5c5b41202e9c2e50c986fc822809b507ede64
[ "MIT" ]
null
null
null
es_distributed/policies.py
TrevorCMorton/deep-neuroevolution
d6e5c5b41202e9c2e50c986fc822809b507ede64
[ "MIT" ]
null
null
null
es_distributed/policies.py
TrevorCMorton/deep-neuroevolution
d6e5c5b41202e9c2e50c986fc822809b507ede64
[ "MIT" ]
null
null
null
import logging import pickle import time import h5py import numpy as np import tensorflow as tf import tensorflow.contrib.layers as layers from . import tf_util as U logger = logging.getLogger(__name__) class Policy: def __init__(self, *args, **kwargs): self.args, self.kwargs = args, kwargs sel...
39.163603
140
0.588266
abe10bb02948764540930e6f8d51e6608042a259
3,390
py
Python
neptune/new/internal/backends/offline_neptune_backend.py
janbolle/neptune-client
33b1876b361d9a7184f557d7bd6e016cb08bd59f
[ "Apache-2.0" ]
null
null
null
neptune/new/internal/backends/offline_neptune_backend.py
janbolle/neptune-client
33b1876b361d9a7184f557d7bd6e016cb08bd59f
[ "Apache-2.0" ]
null
null
null
neptune/new/internal/backends/offline_neptune_backend.py
janbolle/neptune-client
33b1876b361d9a7184f557d7bd6e016cb08bd59f
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019, Neptune Labs Sp. z o.o. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
39.418605
105
0.729499
825459f00b9a264b51f473fde15599f86f6419ea
1,016
py
Python
lib/utils/save_model.py
CharlesTousignant/Deep-Feature-Flow
b89678d5957d5d1ecafd4ca0d540d001b3b4cbbf
[ "MIT" ]
1,378
2017-05-11T15:23:44.000Z
2022-03-30T01:50:34.000Z
lib/utils/save_model.py
CharlesTousignant/Deep-Feature-Flow
b89678d5957d5d1ecafd4ca0d540d001b3b4cbbf
[ "MIT" ]
91
2017-05-12T11:44:43.000Z
2022-02-01T07:33:52.000Z
lib/utils/save_model.py
CharlesTousignant/Deep-Feature-Flow
b89678d5957d5d1ecafd4ca0d540d001b3b4cbbf
[ "MIT" ]
348
2017-05-11T15:27:37.000Z
2022-01-19T13:33:01.000Z
# -------------------------------------------------------- # Deep Feature Flow # Copyright (c) 2017 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Yuwen Xiong # -------------------------------------------------------- import mxnet as mx def save_checkpoint(prefix, epoch, arg_params...
39.076923
75
0.604331
b8737528e4704852ec4efda75b8b8d983885f78c
91
py
Python
wire/typings.py
cheetahbyte/wire
f34a41804770968313a8a16a1d9794b7a0abc7dc
[ "MIT" ]
5
2021-09-01T17:34:03.000Z
2021-12-26T09:41:18.000Z
wire/typings.py
cheetahbyte/wire
f34a41804770968313a8a16a1d9794b7a0abc7dc
[ "MIT" ]
4
2021-12-26T14:53:09.000Z
2022-01-02T12:50:43.000Z
wire/typings.py
cheetahbyte/wire
f34a41804770968313a8a16a1d9794b7a0abc7dc
[ "MIT" ]
null
null
null
from typing import Callable, Any, Awaitable CoroutineFunction = Callable[[Any], Awaitable]
30.333333
46
0.802198
1c3a0fc8179469d205422ebdf25455570f2a5fae
18,384
py
Python
Coloring/mayuyu.py
MuAuan/llightning-pytorch
38dc9ed75dd8e6f4a2a05e5a10072a549dcbf4d6
[ "MIT" ]
null
null
null
Coloring/mayuyu.py
MuAuan/llightning-pytorch
38dc9ed75dd8e6f4a2a05e5a10072a549dcbf4d6
[ "MIT" ]
null
null
null
Coloring/mayuyu.py
MuAuan/llightning-pytorch
38dc9ed75dd8e6f4a2a05e5a10072a549dcbf4d6
[ "MIT" ]
null
null
null
import numpy as np import torch import torchvision from torch.utils.data import DataLoader, random_split from torchvision import transforms import cv2 import matplotlib.pyplot as plt import glob import os from PIL import Image ts = transforms.ToPILImage() ts2 = transforms.ToTensor() ts3 = transforms.Grayscale() mean...
27.812405
179
0.652034
fee1148c4467d8fd9ac79e6e27f7c4340b300485
363
py
Python
auth_service/src/AuthService/AuthService/database.py
newgene/biothings_oauth
363a30e43537b38988363d02e9fa7c9016064a72
[ "Apache-2.0" ]
null
null
null
auth_service/src/AuthService/AuthService/database.py
newgene/biothings_oauth
363a30e43537b38988363d02e9fa7c9016064a72
[ "Apache-2.0" ]
null
null
null
auth_service/src/AuthService/AuthService/database.py
newgene/biothings_oauth
363a30e43537b38988363d02e9fa7c9016064a72
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from AuthService import settings engine = create_engine( settings.SQLALCHEMY_DB_URL, echo=True if settings.DEBUG else False ) Session = sessionmaker(autocommit=False, autoflush=Fal...
27.923077
70
0.829201
fb431788154c4944b6f205727d4b06363962c896
4,211
py
Python
tests/terraform/checks/resource/aws/test_ELBUsesSSL.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/terraform/checks/resource/aws/test_ELBUsesSSL.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/terraform/checks/resource/aws/test_ELBUsesSSL.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import unittest import hcl2 from checkov.terraform.checks.resource.aws.ELBUsesSSL import check from checkov.common.models.enums import CheckResult class TestELBUsesSSL(unittest.TestCase): def test_failure_elb_one_listener(self): hcl_res = hcl2.loads(""" resource "aws_elb" "test" { ...
35.991453
92
0.478509