hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79740f083efea18abfbb2eca0616efc679ff1d29
4,182
py
Python
limonado/contrib/health.py
ferretgo/limonado
c3b1cff69028f5c3f9cec9a7abebbc143637b422
[ "MIT" ]
1
2017-08-08T16:29:45.000Z
2017-08-08T16:29:45.000Z
limonado/contrib/health.py
gakhov/limonado
c3b1cff69028f5c3f9cec9a7abebbc143637b422
[ "MIT" ]
3
2018-04-18T09:35:39.000Z
2018-06-16T12:07:33.000Z
limonado/contrib/health.py
ferretgo/limonado
c3b1cff69028f5c3f9cec9a7abebbc143637b422
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import functools import time from tornado.gen import coroutine from ..core.endpoint import Endpoint from ..core.endpoint import EndpointAddon from ..core.endpoint import EndpointHandler _HEALTH_PARAMS = { "additionalProperties": False, "type": "object", "properties": { "c...
25.345455
78
0.562889
79740faf9fc3a4e491c391496368f9dff8b20577
88
py
Python
sktime/utils/estimators/tests/__init__.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
1
2021-12-22T02:45:39.000Z
2021-12-22T02:45:39.000Z
sktime/utils/estimators/tests/__init__.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
null
null
null
sktime/utils/estimators/tests/__init__.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for Mock Estimnators.""" __author__ = ["ltsaprounis"]
17.6
33
0.613636
79740fce2be961b691b008c034a316ac38947e65
391
py
Python
exams/migrations/0006_auto_20180419_0952.py
PetHospital/PetHospitalBackend
b5f15293a7aea46b78a554146878ef00c4a55a17
[ "MIT" ]
null
null
null
exams/migrations/0006_auto_20180419_0952.py
PetHospital/PetHospitalBackend
b5f15293a7aea46b78a554146878ef00c4a55a17
[ "MIT" ]
null
null
null
exams/migrations/0006_auto_20180419_0952.py
PetHospital/PetHospitalBackend
b5f15293a7aea46b78a554146878ef00c4a55a17
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-04-19 09:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('exams', '0005_exam_duration'), ] operations = [ migrations.AlterField( model_name='submission', name='date', ...
20.578947
60
0.598465
797410251f4b0fd2a780cd721c16e768494b1834
575
py
Python
mongo-to-sql/mongo_to_sql/process/import.py
wgarlock/mongo-to-sql
b421d48b822c9d8443f76492230987886de34a9d
[ "MIT" ]
null
null
null
mongo-to-sql/mongo_to_sql/process/import.py
wgarlock/mongo-to-sql
b421d48b822c9d8443f76492230987886de34a9d
[ "MIT" ]
1
2021-01-24T21:07:52.000Z
2021-01-24T21:07:52.000Z
mongo-to-sql/mongo_to_sql/process/import.py
wgarlock/mongo-to-sql
b421d48b822c9d8443f76492230987886de34a9d
[ "MIT" ]
null
null
null
import environ import os from mongo_to_sql.databases import mongo, postgres directory = '/Users/wgarlock/Documents/all_collections' root = environ.Path(__file__) - 4 BASE_DIR = root() env = environ.Env(DEBUG=(bool, False)) env.read_env(os.path.join(BASE_DIR, '.migrate_config')) mongo_database = mongo.MongoDatabase()...
30.263158
98
0.78087
797410c26664df97556782b93d6ae18554f9aa79
13,772
py
Python
twilio/rest/proxy/v1/service/short_code.py
scotta/twilio-python
93cf463f914f55c4c4bd1c259b834953dd81609d
[ "MIT" ]
1
2021-02-24T04:59:03.000Z
2021-02-24T04:59:03.000Z
twilio/rest/proxy/v1/service/short_code.py
scotta/twilio-python
93cf463f914f55c4c4bd1c259b834953dd81609d
[ "MIT" ]
null
null
null
twilio/rest/proxy/v1/service/short_code.py
scotta/twilio-python
93cf463f914f55c4c4bd1c259b834953dd81609d
[ "MIT" ]
1
2018-12-09T00:53:21.000Z
2018-12-09T00:53:21.000Z
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base....
32.868735
99
0.622568
797410c8c1166899b836eda616d4452c72984158
377
py
Python
05.Static_and_class_methods/Exe/movie_world/project/customer.py
nmoskova/Python-OOP
07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864
[ "MIT" ]
null
null
null
05.Static_and_class_methods/Exe/movie_world/project/customer.py
nmoskova/Python-OOP
07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864
[ "MIT" ]
null
null
null
05.Static_and_class_methods/Exe/movie_world/project/customer.py
nmoskova/Python-OOP
07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864
[ "MIT" ]
null
null
null
class Customer: def __init__(self, name, age, id): self.name = name self.age = age self.id = id self.rented_dvds = [] def __repr__(self): result = f"{self.id}: {self.name} of age {self.age}" \ f" has {len(self.rented_dvds)} rented DVD's ({', '.join([x.na...
29
111
0.541114
797415b9dce8b7a525282f10663bfe348c7028d1
21,775
py
Python
lib/python3.8/site-packages/ansible_collections/azure/azcollection/plugins/modules/azure_rm_cosmosdbaccount.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/azure/azcollection/plugins/modules/azure_rm_cosmosdbaccount.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/azure/azcollection/plugins/modules/azure_rm_cosmosdbaccount.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2018 Zim Kalinowski, <zikalino@microsoft.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
37.032313
157
0.561929
79741643358c842bbf24b49294322fdcce941f31
245
py
Python
configure-make-example/subprocessTest.py
renweizhukov/LinuxProgramming
e4610709cf8cb3410d4e37d4ff87b0788b0cb4ca
[ "MIT" ]
null
null
null
configure-make-example/subprocessTest.py
renweizhukov/LinuxProgramming
e4610709cf8cb3410d4e37d4ff87b0788b0cb4ca
[ "MIT" ]
null
null
null
configure-make-example/subprocessTest.py
renweizhukov/LinuxProgramming
e4610709cf8cb3410d4e37d4ff87b0788b0cb4ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import subprocess proc = subprocess.Popen(['./helloworld'], stdout=subprocess.PIPE) #works in python 3.0+ #for line in proc.stdout: for line in iter(proc.stdout.readline,''): print line.rstrip()
24.5
65
0.693878
79741663478b0065415e781fa167755b65f314ae
5,201
py
Python
share/lib/python/neuron/rxdtests/run_all.py
niltonlk/nrn
464541abbf72fe58de77b16bf0e1df425a280b89
[ "BSD-3-Clause" ]
203
2018-05-03T11:02:11.000Z
2022-03-31T14:18:31.000Z
share/lib/python/neuron/rxdtests/run_all.py
niltonlk/nrn
464541abbf72fe58de77b16bf0e1df425a280b89
[ "BSD-3-Clause" ]
1,228
2018-04-25T09:00:48.000Z
2022-03-31T21:42:21.000Z
share/lib/python/neuron/rxdtests/run_all.py
niltonlk/nrn
464541abbf72fe58de77b16bf0e1df425a280b89
[ "BSD-3-Clause" ]
134
2018-04-23T09:14:13.000Z
2022-03-16T08:57:11.000Z
def test(files, correct_data): import os import sys import filecmp import subprocess import re, array, numpy tol = 1e-10 dt_eps = 1e-20 for dr in ["wave1d", "ecs", "3d", "hybrid"]: try: os.makedirs(os.path.join("test_data", dr)) except OSError: pa...
33.993464
107
0.506633
797416b35b3ff935d48a2d47ea1adbd9bcd9e7af
2,900
py
Python
k_fold_cross_validation.py
manuelmusngi/machine_learning_algorithms_for_development
f344634f84d8f3a60fbb93892bdaed877855b710
[ "MIT" ]
1
2021-05-17T15:28:03.000Z
2021-05-17T15:28:03.000Z
k_fold_cross_validation.py
manuelmusngi/machine_learning_development_algorithms
f344634f84d8f3a60fbb93892bdaed877855b710
[ "MIT" ]
null
null
null
k_fold_cross_validation.py
manuelmusngi/machine_learning_development_algorithms
f344634f84d8f3a60fbb93892bdaed877855b710
[ "MIT" ]
null
null
null
# k-Fold Cross Validation # Import libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Import dataset dataset = pd.read_ ('') X = dataset.iloc[:, :-1].values y = dataset.iloc[:, -1].values # Split dataset into the Training set and Test set from sklearn.model_selection import train_test...
38.157895
105
0.674828
7974176cfd4918b03c2c348f81769aee30454f63
4,156
py
Python
VolMoeSeacher/SearchVolmoe.py
HappyAny/Scripts
2ac9aee530bd497feaa5454d1c1d8654cc322faf
[ "MIT" ]
null
null
null
VolMoeSeacher/SearchVolmoe.py
HappyAny/Scripts
2ac9aee530bd497feaa5454d1c1d8654cc322faf
[ "MIT" ]
null
null
null
VolMoeSeacher/SearchVolmoe.py
HappyAny/Scripts
2ac9aee530bd497feaa5454d1c1d8654cc322faf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[13]: #coding=utf-8 import urllib.request as request import xml from bs4 import BeautifulSoup import os from urllib.request import urlretrieve import json import progressbar import time #id_new='518044'/'504560' def urllib_download(pic_url, file_path): urlretrieve(pic_u...
27.523179
132
0.600096
79741804271032c369d4a0d4b5f52ffb6dacfadd
1,488
py
Python
NN-HMM/network/network_mixup.py
mispchallenge/MISP2021-AVSR
e26ab87bd3134d08d9571632bbffb0b5e731a830
[ "Apache-2.0" ]
null
null
null
NN-HMM/network/network_mixup.py
mispchallenge/MISP2021-AVSR
e26ab87bd3134d08d9571632bbffb0b5e731a830
[ "Apache-2.0" ]
null
null
null
NN-HMM/network/network_mixup.py
mispchallenge/MISP2021-AVSR
e26ab87bd3134d08d9571632bbffb0b5e731a830
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # _*_ coding: UTF-8 _*_ import random import torch import numpy as np import torch.nn as nn class MixUp(nn.Module): def __init__(self, mix_probability, alpha, mix_types): super(MixUp, self).__init__() self.mix_probability = mix_probability self.alpha = alpha s...
39.157895
100
0.525538
79741a770d46279fd2a3209e5225f0c97adc9add
1,917
py
Python
skip/models.py
LCOGT/skip
2524ba71c39876aae8a31fff3de55e6cb7aa1f83
[ "BSD-3-Clause" ]
null
null
null
skip/models.py
LCOGT/skip
2524ba71c39876aae8a31fff3de55e6cb7aa1f83
[ "BSD-3-Clause" ]
4
2020-09-10T20:31:54.000Z
2022-02-27T18:40:23.000Z
skip/models.py
scimma/skip
aa9437d8c4f7d5edbffaec20e6651339241bbb95
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.gis.db import models as gis_models from django.db import models # Create your models here. class Target(models.Model): name = models.CharField(max_length=200) right_ascension = models.FloatField(null=True, blank=True) declination = models.FloatField(null=True, blank=True) created ...
34.854545
107
0.738654
79741ac8d55a64de05611410a806cae47d640e19
6,681
py
Python
src/_build/website.py
sl-lang/sll
05205c32e9c263c2a41ed96147a8677b2cd54a2d
[ "MIT" ]
14
2021-08-21T10:26:03.000Z
2022-03-23T14:44:24.000Z
src/_build/website.py
sl-lang/sll
05205c32e9c263c2a41ed96147a8677b2cd54a2d
[ "MIT" ]
247
2021-08-19T08:35:24.000Z
2022-03-28T09:56:29.000Z
src/_build/website.py
sl-lang/sll
05205c32e9c263c2a41ed96147a8677b2cd54a2d
[ "MIT" ]
1
2021-10-10T00:30:41.000Z
2021-10-10T00:30:41.000Z
import docs import hashlib import json import os import sys import util FLAG_NAME_MAP={"check_output":"Check Output","optimizable":"Optimizable"} IGNORE_FLAG_NAME=["func","var","var_arg"] def _add_data(nm,dt): nm=nm.replace("\\","/")[:255].encode("ascii","ignore") dt=dt[:16777215] if (nm[-5:]==b".html"): dt=...
36.508197
214
0.580302
79741b1b50e3f941342a96e75441c9fb3f1ae682
2,963
py
Python
voila/treehandler.py
astrojuanlu/voila
7613e813a0a421ebe0d0c318fb0e2f92b5dc36ca
[ "BSD-3-Clause" ]
null
null
null
voila/treehandler.py
astrojuanlu/voila
7613e813a0a421ebe0d0c318fb0e2f92b5dc36ca
[ "BSD-3-Clause" ]
null
null
null
voila/treehandler.py
astrojuanlu/voila
7613e813a0a421ebe0d0c318fb0e2f92b5dc36ca
[ "BSD-3-Clause" ]
null
null
null
############################################################################# # Copyright (c) 2018, Voila Contributors # # # # Distributed under the terms of the BSD 3-Clause License. # # ...
41.732394
82
0.519406
79741bb58a6f10373d8b264c43b90a69ddda7441
3,313
py
Python
ilsplayground/cli.py
ntarocco/cds-ils-playground
4bd92448b7c1c2600d61fbb867d391e3c4e33385
[ "MIT" ]
null
null
null
ilsplayground/cli.py
ntarocco/cds-ils-playground
4bd92448b7c1c2600d61fbb867d391e3c4e33385
[ "MIT" ]
null
null
null
ilsplayground/cli.py
ntarocco/cds-ils-playground
4bd92448b7c1c2600d61fbb867d391e3c4e33385
[ "MIT" ]
1
2018-08-29T11:26:24.000Z
2018-08-29T11:26:24.000Z
import click from flask.cli import with_appcontext from invenio_db import db from invenio_indexer.api import RecordIndexer from invenio_pidstore.models import PersistentIdentifier from invenio_records.api import Record from ilsplayground.api import BookRecord, ItemRecord, LocationRecord from ilsplayground.pid.minters...
23.330986
78
0.543314
79741be585ebe40785ce8b47588727f3f00f66c2
1,580
py
Python
pythonx/ncm2_matcher/substr.py
ssmithstone/ncm2
bbb6fe7b7ab05a93627755ccc1dc134be99681c7
[ "MIT" ]
1,448
2018-06-29T02:29:20.000Z
2022-03-29T04:16:43.000Z
pythonx/ncm2_matcher/substr.py
ssmithstone/ncm2
bbb6fe7b7ab05a93627755ccc1dc134be99681c7
[ "MIT" ]
188
2018-06-29T06:30:58.000Z
2022-03-17T11:00:57.000Z
pythonx/ncm2_matcher/substr.py
ssmithstone/ncm2
bbb6fe7b7ab05a93627755ccc1dc134be99681c7
[ "MIT" ]
55
2018-07-11T13:54:21.000Z
2022-03-16T23:32:11.000Z
# -*- coding: utf-8 -*- def Matcher(case='smartcase', key='abbr', **kargs): def match_smart_case(b, e): w = e[key] lw = len(w) lb = len(b) if lb > lw: return False if not lb: e['user_data']['match_highlight'] = [] return True ...
24.307692
65
0.417089
79741c19ad95d80d40446833cb62b8dbe6c746f3
424
py
Python
server/core/admin.py
uofutahcapstoneahjregistryteam/ahj-registry
257cdfaf6e24510497cb1db7e89f2c889066fe07
[ "MIT" ]
null
null
null
server/core/admin.py
uofutahcapstoneahjregistryteam/ahj-registry
257cdfaf6e24510497cb1db7e89f2c889066fe07
[ "MIT" ]
null
null
null
server/core/admin.py
uofutahcapstoneahjregistryteam/ahj-registry
257cdfaf6e24510497cb1db7e89f2c889066fe07
[ "MIT" ]
null
null
null
from django.contrib import admin from simple_history.admin import SimpleHistoryAdmin from .models import * admin.site.register(Edit) admin.site.register(AHJ, SimpleHistoryAdmin) admin.site.register(Address, SimpleHistoryAdmin) admin.site.register(Location, SimpleHistoryAdmin) admin.site.register(Contact, SimpleHistor...
32.615385
69
0.851415
79741d7d225fd176df980ed9418265fca675358d
416
py
Python
flaskshop/plugin/spec.py
maquinuz/flask-shop
78fc86ec5e9ebcd61f3eb69e8b1df33c82c6fe30
[ "BSD-3-Clause" ]
141
2018-08-14T09:38:30.000Z
2022-03-24T14:17:14.000Z
flaskshop/plugin/spec.py
maquinuz/flask-shop
78fc86ec5e9ebcd61f3eb69e8b1df33c82c6fe30
[ "BSD-3-Clause" ]
65
2019-06-20T06:10:04.000Z
2022-01-29T07:10:06.000Z
flaskshop/plugin/spec.py
maquinuz/flask-shop
78fc86ec5e9ebcd61f3eb69e8b1df33c82c6fe30
[ "BSD-3-Clause" ]
65
2019-03-18T13:55:34.000Z
2022-03-23T05:55:27.000Z
from pluggy import HookspecMarker spec = HookspecMarker("flaskshop") @spec def flaskshop_load_blueprints(app): """Hook for registering blueprints. :param app: The application object. """ @spec def flaskbb_tpl_user_nav_loggedin_before(): """Hook for registering additional user navigational items ...
19.809524
62
0.723558
79741e3a3a22ab3a139777e39efb717140fd3a07
6,174
py
Python
clearml/binding/click.py
Hollowfier/clearml
cf9671c2539c05dac40c00ef707193b1ca6b9cab
[ "Apache-2.0" ]
null
null
null
clearml/binding/click.py
Hollowfier/clearml
cf9671c2539c05dac40c00ef707193b1ca6b9cab
[ "Apache-2.0" ]
null
null
null
clearml/binding/click.py
Hollowfier/clearml
cf9671c2539c05dac40c00ef707193b1ca6b9cab
[ "Apache-2.0" ]
null
null
null
try: from click.core import Command, Option, Argument, OptionParser, Group, Context from click.types import BoolParamType except ImportError: Command = None from .frameworks import _patched_call from ..config import running_remotely, get_remote_task_id from ..utilities.dicts import cast_str_to_bool class...
39.075949
113
0.580013
79741e5bdb1907b35cec514976436f348644d031
9,850
py
Python
mesonbuild/minit.py
blobfish/meson
d0c7b5169303fb0a394201d90be1e74426d7b2d9
[ "Apache-2.0" ]
1
2020-01-21T21:57:32.000Z
2020-01-21T21:57:32.000Z
mesonbuild/minit.py
blobfish/meson
d0c7b5169303fb0a394201d90be1e74426d7b2d9
[ "Apache-2.0" ]
1
2020-02-05T12:55:06.000Z
2020-02-05T12:55:06.000Z
mesonbuild/minit.py
blobfish/meson
d0c7b5169303fb0a394201d90be1e74426d7b2d9
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to ...
45.391705
104
0.615533
79741eb9bfd538ffb4d1902a64518834ea9886f9
2,497
py
Python
chembase/models/w2v.py
kongjy/BETO_NLP
69b00e9638fae00301c2babbe378836dee061d04
[ "MIT" ]
3
2020-08-07T16:59:04.000Z
2021-02-18T20:19:44.000Z
chembase/models/w2v.py
kongjy/BETO_NLP
69b00e9638fae00301c2babbe378836dee061d04
[ "MIT" ]
2
2020-08-05T21:38:24.000Z
2021-02-17T18:23:21.000Z
chembase/models/w2v.py
kongjy/BETO_NLP
69b00e9638fae00301c2babbe378836dee061d04
[ "MIT" ]
2
2020-11-15T23:32:25.000Z
2021-01-19T22:47:01.000Z
import os import sys import numpy as np import pandas as pd import gensim from gensim.models import Word2Vec class W2V(): """ This class provides an interface between the normalized and tokenized texts from the SciTextProcessor object and a Word2Vec model trained from the extracted entities, phrases a...
34.680556
86
0.545455
79741ff41142270249283c6bc14e61bcdc878004
1,122
py
Python
h/views/home.py
g0vggv/h
dae2dfa8ab064ddb696e5657d48459114b2642d2
[ "MIT" ]
null
null
null
h/views/home.py
g0vggv/h
dae2dfa8ab064ddb696e5657d48459114b2642d2
[ "MIT" ]
5
2017-12-26T14:22:20.000Z
2018-04-02T02:56:38.000Z
h/views/home.py
SenseTW/h
dae2dfa8ab064ddb696e5657d48459114b2642d2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Views serving the homepage and related endpoints.""" from __future__ import unicode_literals from pyramid import httpexceptions from pyramid.view import view_config @view_config(route_name='via_redirect', request_method='GET') def via_redirect(context, request): url = request.params....
30.324324
78
0.693405
797420d74a86e12c6d450c1565230eb378b5df16
50,357
py
Python
google/cloud/aiplatform_v1beta1/services/job_service/transports/grpc.py
geraint0923/python-aiplatform
f40f32289e1fbeb93b35e4b66f65d15528a6481c
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1beta1/services/job_service/transports/grpc.py
geraint0923/python-aiplatform
f40f32289e1fbeb93b35e4b66f65d15528a6481c
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1beta1/services/job_service/transports/grpc.py
geraint0923/python-aiplatform
f40f32289e1fbeb93b35e4b66f65d15528a6481c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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...
44.603189
118
0.660385
79742159685b138626139ec17f0dd1f22c8b1981
338
py
Python
rial_old/stages/post_parsing/infinite_loop_detector.py
L3tum/RIAL
fba25f37434ff51e0de8e22ce834af589aba24e8
[ "BSD-3-Clause" ]
2
2020-06-02T20:00:28.000Z
2020-06-06T02:15:49.000Z
rial_old/stages/post_parsing/infinite_loop_detector.py
L3tum/RIAL
fba25f37434ff51e0de8e22ce834af589aba24e8
[ "BSD-3-Clause" ]
51
2020-04-13T13:27:10.000Z
2020-06-12T11:38:36.000Z
rial_old/stages/post_parsing/infinite_loop_detector.py
L3tum/RIAL
fba25f37434ff51e0de8e22ce834af589aba24e8
[ "BSD-3-Clause" ]
2
2020-06-24T14:44:01.000Z
2020-11-29T04:08:54.000Z
from rial.concept.parser import Tree from rial.stages.post_parsing.PostParsingInterface import PostParsingInterface class InfiniteLoopDetector(PostParsingInterface): def execute(self, ast: Tree): while ast is not None: self.visit_tree(ast) ast = None def visit_tree(self, ast: ...
28.166667
78
0.704142
797421af9b2a047824e4210202d2f7ba96d52d6b
7,694
py
Python
beast/tools/setup_batch_beast_trim.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
beast/tools/setup_batch_beast_trim.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
beast/tools/setup_batch_beast_trim.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Code to setup the batch files for BEAST trim grid runs """ from __future__ import print_function import os import glob import argparse import numpy as np def setup_batch_beast_trim(project, datafile, astfile, ...
30.172549
81
0.573304
797422cc64feffabc643fe68f4c08d1eb71909e0
2,084
py
Python
computer_network/UDP_ping_client.py
WhiteHyun/Network
e8e3c04731ef884790aec8df586fa9a280da8af3
[ "MIT" ]
1
2020-10-28T03:54:55.000Z
2020-10-28T03:54:55.000Z
computer_network/UDP_ping_client.py
WhiteHyun/Network
e8e3c04731ef884790aec8df586fa9a280da8af3
[ "MIT" ]
null
null
null
computer_network/UDP_ping_client.py
WhiteHyun/Network
e8e3c04731ef884790aec8df586fa9a280da8af3
[ "MIT" ]
null
null
null
from socket import * import time IP_ADD = 0 # 클라이언트 주소의 주소와 포트 중 주소 인덱스를 가리킴 if __name__ == "__main__": server_name = '10.101.3.27' # Desktop 내부주소 언제든 변경 가능 server_port = 12000 data_length = 1000 # 데이터 길이 많은 데이터를 보내고 싶을 경우 이를 수정하면 됨 server_address = 0 # 서버 주소 미리 선언(unbound를 피하기 위함) client_socke...
35.322034
114
0.602207
7974232816d6bb7e84bf59cca8d490eddbfd5276
12,554
py
Python
neo/Network/NeoNode.py
neo-goo/neo-python
82082b624a417a6631ef9effe40556e876f4ea9e
[ "MIT" ]
12
2017-12-20T14:13:10.000Z
2020-07-16T12:59:55.000Z
neo/Network/NeoNode.py
kjhdigit/neo-project
82082b624a417a6631ef9effe40556e876f4ea9e
[ "MIT" ]
1
2022-03-17T00:01:50.000Z
2022-03-17T00:01:50.000Z
neo/Network/NeoNode.py
kjhdigit/neo-project
82082b624a417a6631ef9effe40556e876f4ea9e
[ "MIT" ]
2
2017-11-29T13:21:41.000Z
2018-10-23T03:31:49.000Z
import json import time import binascii import pprint import random from logzero import logger from twisted.internet.protocol import Protocol from twisted.internet import reactor, task from neo.Core.Block import Block from neo.Core.Blockchain import Blockchain as BC from neo.Network.Message import Message, ChecksumE...
34.584022
193
0.627768
79742335cdf824c7386e5fd15139b2d0d365107d
10,012
py
Python
rlkit/torch/conv_networks.py
brandontrabucco/rlkit
ac0bb660d6baa9c36fceb688cb147066f5ddc722
[ "MIT" ]
74
2019-12-29T03:48:11.000Z
2022-02-09T13:07:24.000Z
rlkit/torch/conv_networks.py
brandontrabucco/rlkit
ac0bb660d6baa9c36fceb688cb147066f5ddc722
[ "MIT" ]
13
2020-03-20T13:17:03.000Z
2022-01-13T01:49:34.000Z
rlkit/torch/conv_networks.py
brandontrabucco/rlkit
ac0bb660d6baa9c36fceb688cb147066f5ddc722
[ "MIT" ]
10
2019-12-30T01:55:53.000Z
2022-03-24T16:59:49.000Z
import torch from torch import nn as nn from rlkit.pythonplusplus import identity from rlkit.torch.core import PyTorchModule import numpy as np class CNN(PyTorchModule): def __init__( self, input_width, input_height, input_channels, output_size, ...
37.924242
127
0.597083
797423b218b1f42391c09b0942ea5d455462703c
8,863
py
Python
contrib/seeds/makeseeds.py
vmta/umkoin
ac2a1f5903444d0b39706119d6ab757afb8b856f
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
vmta/umkoin
ac2a1f5903444d0b39706119d6ab757afb8b856f
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
vmta/umkoin
ac2a1f5903444d0b39706119d6ab757afb8b856f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # import re import sys import dns.resolver import collect...
36.17551
116
0.565271
797423cff9c68150c7e1b84d11f7e1f60f5a04fe
5,594
py
Python
src/server/textprocess/sentencesgenerator.py
Vnicius/fact-check
3dc428e5e31a7c887291006e25058c01e6f23f06
[ "MIT" ]
null
null
null
src/server/textprocess/sentencesgenerator.py
Vnicius/fact-check
3dc428e5e31a7c887291006e25058c01e6f23f06
[ "MIT" ]
null
null
null
src/server/textprocess/sentencesgenerator.py
Vnicius/fact-check
3dc428e5e31a7c887291006e25058c01e6f23f06
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding:utf-8 -*- import os from textprocess.tagger import Tagger from textprocess.word import Word from textprocess.verb import Verb from textprocess.querywords import QueryWords from textprocess.syntacticanalyser import SyntacticAnalyser from textprocess.modifiers import Modifiers class Sen...
29.442105
100
0.571326
797425b9b7e6759f70d9f4648aede7adf575a543
7,098
py
Python
browser/browser.py
cyrussinc/15-minute-apps
8796f72b20c63f1e96fc4f434edfee29d353a234
[ "MIT" ]
2,087
2018-02-20T17:08:10.000Z
2020-01-08T15:14:21.000Z
browser/browser.py
nicknickyu/15-minute-apps
dfc4bbf4b9804d3314b02fcfada0b573a85fc08b
[ "MIT" ]
15
2020-02-06T14:54:16.000Z
2021-07-10T19:40:50.000Z
browser/browser.py
nicknickyu/15-minute-apps
dfc4bbf4b9804d3314b02fcfada0b573a85fc08b
[ "MIT" ]
523
2018-02-21T03:15:40.000Z
2020-01-06T18:26:33.000Z
from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtWebEngineWidgets import * from PyQt5.QtPrintSupport import * import os import sys class AboutDialog(QDialog): def __init__(self, *args, **kwargs): super(AboutDialog, self).__init__(*args, **kwargs) QB...
34.965517
118
0.6306
7974262a38be71503cab408993429e168a942514
4,061
py
Python
libs/configs/DOTA1.0/cfgs_res50_dota_v8.py
Mrqianduoduo/RSDet-8P-4R
b6d3963ed4b76d88dce3bf8c234229536f383c19
[ "Apache-2.0" ]
23
2020-12-03T01:25:24.000Z
2022-03-09T05:02:06.000Z
libs/configs/cfgs.py
cherish24/RetinaNet_Tensorflow_Rotation
56e1c1ccb619975b515ecf7d1537f15282edcdd8
[ "MIT" ]
3
2021-01-14T13:36:41.000Z
2021-11-11T11:42:26.000Z
libs/configs/cfgs.py
cherish24/RetinaNet_Tensorflow_Rotation
56e1c1ccb619975b515ecf7d1537f15282edcdd8
[ "MIT" ]
3
2021-01-22T13:17:33.000Z
2022-03-09T08:22:10.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import os import tensorflow as tf import math """ v3 + 2x multi-gpu + REG_WEIGHT=1.0 This is your evaluation result for task 1: mAP: 0.627914092842082 ap of each class: plane:0.8858093578644306, baseball-diamond:0...
31.238462
105
0.678651
797426e2f51c200ccf3a7d3adc0faf4065584c42
8,098
py
Python
detectron/utils/train.py
ForrestHeiYing/Detectron
787f5a9bf80b4149adb4913e86b2edd8a441bf09
[ "Apache-2.0" ]
null
null
null
detectron/utils/train.py
ForrestHeiYing/Detectron
787f5a9bf80b4149adb4913e86b2edd8a441bf09
[ "Apache-2.0" ]
null
null
null
detectron/utils/train.py
ForrestHeiYing/Detectron
787f5a9bf80b4149adb4913e86b2edd8a441bf09
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
38.746411
84
0.677698
79742a6f3c5bd017b26d822577e6211f2e1c3920
1,426
py
Python
labs/7/01.02-getReportData.py
G00364778/52957_dataRepresentation
de5127573a5b717aa67105c3dbe5e1d98f601fca
[ "MIT" ]
null
null
null
labs/7/01.02-getReportData.py
G00364778/52957_dataRepresentation
de5127573a5b717aa67105c3dbe5e1d98f601fca
[ "MIT" ]
null
null
null
labs/7/01.02-getReportData.py
G00364778/52957_dataRepresentation
de5127573a5b717aa67105c3dbe5e1d98f601fca
[ "MIT" ]
null
null
null
import requests import json from xlwt import * #url = "https://reports.sem-o.com/api/v1/documents/static-reports" url= "https://reports.sem-o.com/api/v1/documents/static-reports?ReportName=Balancing%20and%20Imbalance%20Market%20Cost%20View&Date=>2019-11-10" response = requests.get(url) data = response.json() listOfR...
29.102041
143
0.699158
79742ce504d734589f5864a52953bbb8946122e2
13,340
py
Python
tests/test_binder_file_field.py
nstylo/django-binder
96ab97404d0c804e74d4042ae7986d1e515e9e64
[ "MIT" ]
14
2016-08-15T13:08:55.000Z
2021-11-17T11:43:20.000Z
tests/test_binder_file_field.py
nstylo/django-binder
96ab97404d0c804e74d4042ae7986d1e515e9e64
[ "MIT" ]
141
2016-08-14T15:36:35.000Z
2022-02-17T08:53:52.000Z
tests/test_binder_file_field.py
nstylo/django-binder
96ab97404d0c804e74d4042ae7986d1e515e9e64
[ "MIT" ]
18
2016-10-01T21:30:22.000Z
2022-03-28T10:51:41.000Z
from os.path import basename from io import BytesIO from PIL import Image from tempfile import NamedTemporaryFile from django.test import TestCase, Client from django.core.files.base import ContentFile from django.core.files.uploadedfile import SimpleUploadedFile from django.contrib.auth.models import User from django...
41.818182
1,876
0.732159
79742db71989bf3820d6c122bd65622eed5190cb
4,736
py
Python
tests/archives/grid_archive_test.py
icaros-usc/pyribs
ef289a930e7a8a51286cf657f7e4b29551277350
[ "MIT" ]
108
2021-01-30T10:54:07.000Z
2022-03-20T20:49:31.000Z
tests/archives/grid_archive_test.py
icaros-usc/pyribs
ef289a930e7a8a51286cf657f7e4b29551277350
[ "MIT" ]
70
2021-01-29T10:12:36.000Z
2022-03-26T22:22:05.000Z
tests/archives/grid_archive_test.py
icaros-usc/pyribs
ef289a930e7a8a51286cf657f7e4b29551277350
[ "MIT" ]
15
2021-01-30T18:48:59.000Z
2022-03-31T16:28:41.000Z
"""Tests for the GridArchive.""" import numpy as np import pytest from ribs.archives import AddStatus, GridArchive from .conftest import get_archive_data # pylint: disable = redefined-outer-name @pytest.fixture def data(): """Data for grid archive tests.""" return get_archive_data("GridArchive") def asse...
39.466667
77
0.619088
79742ddcbfa6a23a9bbab75349d3ccab8e5a93a6
341
py
Python
asr_deepspeech/data/loaders/audio_data_loader.py
shangdibufashi/ASRDeepSpeech
f11134abb79e98062fbc25fab99ca4cf675e538b
[ "MIT" ]
44
2020-03-03T13:05:57.000Z
2022-03-24T03:42:31.000Z
asr_deepspeech/data/loaders/audio_data_loader.py
shangdibufashi/ASRDeepSpeech
f11134abb79e98062fbc25fab99ca4cf675e538b
[ "MIT" ]
6
2020-12-15T10:58:19.000Z
2021-10-12T01:59:17.000Z
asr_deepspeech/data/loaders/audio_data_loader.py
shangdibufashi/ASRDeepSpeech
f11134abb79e98062fbc25fab99ca4cf675e538b
[ "MIT" ]
13
2020-05-20T06:42:20.000Z
2022-03-24T03:42:31.000Z
from torch.utils.data import DataLoader from asr_deepspeech.functional import _collate_fn class AudioDataLoader(DataLoader): def __init__(self, *args, **kwargs): """ Creates a data loader for AudioDatasets. """ super(AudioDataLoader, self).__init__(*args, **kwargs) self.coll...
31
62
0.68915
79742e8d72593742f6c4368a3d3b3f85f1273a53
1,411
py
Python
dvc/command/lock.py
0xflotus/dvc
940731941d834138019d77d8300e2e3aea8c78aa
[ "Apache-2.0" ]
2
2021-09-22T15:31:46.000Z
2021-11-17T10:40:07.000Z
dvc/command/lock.py
tdeboissiere/dvc
99ef6081c119336d83473a7cdffc2e780bbcdd68
[ "Apache-2.0" ]
null
null
null
dvc/command/lock.py
tdeboissiere/dvc
99ef6081c119336d83473a7cdffc2e780bbcdd68
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import dvc.logger as logger from dvc.exceptions import DvcException from dvc.command.base import CmdBase class CmdLockBase(CmdBase): def run(self, unlock=False): for target in self.args.targets: try: self.project.lock_stage(target, unloc...
27.666667
78
0.622962
79742ec6b15b3f5fd52e282beea0fe0ff54427e9
194
py
Python
bin/cubes/non-convex-pentacubes-diagonal-wall-5.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/cubes/non-convex-pentacubes-diagonal-wall-5.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/cubes/non-convex-pentacubes-diagonal-wall-5.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """many solutions""" import puzzler.puzzles from puzzler.puzzles.pentacubes import NonConvexPentacubesDiagonalWall5 puzzler.run(NonConvexPentacubesDiagonalWall5)
19.4
71
0.814433
797430804be9f7920ac21c905d202449fc11eeb5
5,713
py
Python
group_defender/defend/file.py
zeshuaro/telegram_group_guardian
6edb315e36ffd7bbf5865b99c99e1a4b925c1704
[ "MIT" ]
3
2019-09-08T09:27:46.000Z
2019-09-20T22:15:30.000Z
group_defender/defend/file.py
zeshuaro/telegram_group_guardian
6edb315e36ffd7bbf5865b99c99e1a4b925c1704
[ "MIT" ]
1
2019-09-20T22:15:22.000Z
2019-09-29T23:49:27.000Z
group_defender/defend/file.py
zeshuaro/telegram-group-defender
6edb315e36ffd7bbf5865b99c99e1a4b925c1704
[ "MIT" ]
null
null
null
import os import requests import tempfile from dotenv import load_dotenv from logbook import Logger from moviepy.editor import VideoFileClip from telegram import Chat, ChatMember, ChatAction from telegram.constants import MAX_FILESIZE_DOWNLOAD from telegram.ext.dispatcher import run_async from group_defender.constant...
30.388298
91
0.62349
797430c89ae5bbf85748e226dfe245d34b30fa42
221,674
py
Python
impacket/smbserver.py
vbersier/impacket
f2af5a2699fddaace217dab204985895e9b7084d
[ "Apache-1.1" ]
1
2021-03-15T20:05:05.000Z
2021-03-15T20:05:05.000Z
impacket/smbserver.py
vbersier/impacket
f2af5a2699fddaace217dab204985895e9b7084d
[ "Apache-1.1" ]
null
null
null
impacket/smbserver.py
vbersier/impacket
f2af5a2699fddaace217dab204985895e9b7084d
[ "Apache-1.1" ]
1
2020-12-29T14:00:13.000Z
2020-12-29T14:00:13.000Z
# SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved. # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Author: Alberto Solino (@agsolino) # # TODO: # [-] Functions should return ...
47.235031
223
0.582288
797430e0780ad10ee40c3a63e3d57423121ee30e
8,802
py
Python
tests/unit/pubsub_v1/subscriber/test_messages_on_hold.py
deckikwok/python-pubsub
7e02bd8bc87676b0f38c90bc218dd4714f09f3a4
[ "Apache-2.0" ]
197
2020-02-05T10:31:11.000Z
2022-03-30T07:42:05.000Z
tests/unit/pubsub_v1/subscriber/test_messages_on_hold.py
deckikwok/python-pubsub
7e02bd8bc87676b0f38c90bc218dd4714f09f3a4
[ "Apache-2.0" ]
447
2020-01-31T13:26:45.000Z
2022-03-31T01:12:32.000Z
tests/unit/pubsub_v1/subscriber/test_messages_on_hold.py
deckikwok/python-pubsub
7e02bd8bc87676b0f38c90bc218dd4714f09f3a4
[ "Apache-2.0" ]
135
2020-02-03T20:51:40.000Z
2022-03-22T08:37:16.000Z
# Copyright 2020, Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
32.007273
80
0.696433
7974317168309285cbd9ca3062d53698908fdd59
470
py
Python
tests/test_utils.py
mimiyangc/www
7de5246debe30a44b6a995e7b0e92f8404c36c7c
[ "MIT" ]
27
2019-10-13T19:59:22.000Z
2021-12-11T23:04:01.000Z
tests/test_utils.py
mimiyangc/www
7de5246debe30a44b6a995e7b0e92f8404c36c7c
[ "MIT" ]
230
2019-11-15T12:51:40.000Z
2022-03-23T06:04:30.000Z
tests/test_utils.py
mimiyangc/www
7de5246debe30a44b6a995e7b0e92f8404c36c7c
[ "MIT" ]
21
2019-10-22T12:55:15.000Z
2022-02-01T20:19:08.000Z
import pytest from server.utils import is_static_asset @pytest.mark.parametrize( "url, is_static", [ ("/", False), ("/blog/", False), ("/static-typing/", False), ("/feed.rss", True), ("/feed.rss/", True), ("/static", True), ("/static/", True), (...
22.380952
60
0.546809
79743179202e871cdaefbbf03bc4ef427c32b449
611
py
Python
src/devs/trevp-tlslite-cac0c81/tests/httpsclient.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
1
2020-02-17T08:18:29.000Z
2020-02-17T08:18:29.000Z
src/devs/trevp-tlslite-cac0c81/tests/httpsclient.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/devs/trevp-tlslite-cac0c81/tests/httpsclient.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from tlslite import HTTPTLSConnection, tackpyLoaded if tackpyLoaded: tackID = "BE1W1.AHUDE.GQIUT.TF9YC.3XVME" else: tackID = None # GOOD TACK ID h = HTTPTLSConnection("localhost", 4443, tackID=tackID, hardTack=True) h.request("GET", "/index.html") r = h.getresponse() print r.read() # ...
25.458333
97
0.716858
79743188a586deef76d63a20ad423ed6dccf98b3
11,493
py
Python
tensorboard/plugins/audio/audio_plugin_test.py
Digitaltransform/tensorboard
75a3c4a8edaa64860951b5fec830accf53993510
[ "Apache-2.0" ]
6,139
2017-06-13T02:43:20.000Z
2022-03-30T23:56:28.000Z
tensorboard/plugins/audio/audio_plugin_test.py
Digitaltransform/tensorboard
75a3c4a8edaa64860951b5fec830accf53993510
[ "Apache-2.0" ]
3,239
2017-06-14T15:49:50.000Z
2022-03-31T23:43:15.000Z
tensorboard/plugins/audio/audio_plugin_test.py
admariner/tensorboard
931fdb84ed125efe5ef6cb0bad869c52da73e18f
[ "Apache-2.0" ]
1,882
2017-06-15T01:33:54.000Z
2022-03-30T15:27:25.000Z
# Copyright 2017 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...
39.768166
83
0.564344
7974323eecfa6d69ec0a7b37bfd4edd8f7a49d2e
7,826
py
Python
SalishSeaTools/salishsea_tools/bio_tools.py
SalishSeaCast/tools
4be9170bbe7ab700ab1b3afc3138e669053d43f8
[ "ECL-2.0", "Apache-2.0" ]
2
2020-06-23T16:09:00.000Z
2022-01-11T17:37:37.000Z
SalishSeaTools/salishsea_tools/bio_tools.py
SalishSeaCast/tools
4be9170bbe7ab700ab1b3afc3138e669053d43f8
[ "ECL-2.0", "Apache-2.0" ]
2
2020-11-19T17:51:25.000Z
2021-04-07T21:36:07.000Z
SalishSeaTools/salishsea_tools/bio_tools.py
SalishSeaCast/tools
4be9170bbe7ab700ab1b3afc3138e669053d43f8
[ "ECL-2.0", "Apache-2.0" ]
4
2020-05-15T03:34:47.000Z
2021-11-24T22:39:16.000Z
# Copyright 2013-2021 The Salish Sea NEMO Project and # The University of British Columbia # 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 # U...
43.72067
121
0.673013
7974331af278d1109d8b90888e81a5c80251a74d
8,305
py
Python
source/common/HandAndFoot.py
slwoodward/Remote-Card-Games
e4befc301a183d8dcb0fce30527a7a35e240e9ae
[ "MIT" ]
2
2018-10-25T23:50:29.000Z
2018-10-27T16:55:55.000Z
source/common/HandAndFoot.py
hwoodward/Remote-Card-Games
decee70c583ad1b856ff90639b35cb2e1862a1e8
[ "MIT" ]
84
2018-10-25T23:43:26.000Z
2021-04-21T19:35:33.000Z
source/common/HandAndFoot.py
slwoodward/Remote-Card-Games
e4befc301a183d8dcb0fce30527a7a35e240e9ae
[ "MIT" ]
2
2019-06-19T23:58:55.000Z
2020-10-01T19:49:18.000Z
"""This is the ruleset reference for HandAndFoot (hand and foot) It defines: - all the constants needed to set up and render the game for the server and client - all the rule checking methods necessary for the client to play the game """ from common.Card import Card import math Game_Name = "Hand and Foot" Shared_Bo...
34.460581
120
0.645756
797433b56cdce790cfe87e84f97a08f51416ef80
3,955
py
Python
pylearn2/models/tests/test_autoencoder.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
1
2017-10-29T06:18:35.000Z
2017-10-29T06:18:35.000Z
pylearn2/models/tests/test_autoencoder.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
null
null
null
pylearn2/models/tests/test_autoencoder.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
1
2015-03-30T00:40:28.000Z
2015-03-30T00:40:28.000Z
""" Tests for the pylearn2 autoencoder module. """ import os.path import numpy as np import theano import theano.tensor as tensor from theano import config from pylearn2.models.autoencoder import Autoencoder, \ HigherOrderContractiveAutoencoder, DeepComposedAutoencoder, \ UntiedAutoencoder from pylearn2.corrup...
31.895161
78
0.672566
7974357361c583db1f36efc6376b386f5ee59744
228
py
Python
PolyglotEn/__init__.py
EvgenSk/PolyglotEn
77b989c7a3c44da0d552cd45759bc25865ec101b
[ "MIT" ]
null
null
null
PolyglotEn/__init__.py
EvgenSk/PolyglotEn
77b989c7a3c44da0d552cd45759bc25865ec101b
[ "MIT" ]
null
null
null
PolyglotEn/__init__.py
EvgenSk/PolyglotEn
77b989c7a3c44da0d552cd45759bc25865ec101b
[ "MIT" ]
null
null
null
import os import sys import azure.functions as func dir_path = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, dir_path) from functions import run async def main(msg: func.ServiceBusMessage): await run(msg)
20.727273
54
0.776316
7974359d1d0ad25602f0eb8f99beed1245263264
603
py
Python
ponio/ponio/__init__.py
Kivvix/miMaS
ad3894522e64f21827ba3b8f8d1a48c3dc9216e3
[ "MIT" ]
3
2019-01-03T22:31:03.000Z
2020-02-29T06:12:07.000Z
ponio/ponio/__init__.py
Kivvix/miMaS
ad3894522e64f21827ba3b8f8d1a48c3dc9216e3
[ "MIT" ]
null
null
null
ponio/ponio/__init__.py
Kivvix/miMaS
ad3894522e64f21827ba3b8f8d1a48c3dc9216e3
[ "MIT" ]
2
2019-11-20T12:36:44.000Z
2020-02-29T06:17:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module to estimate numericlally CFL number of transport equation. The most classical example of this library is estimate of CFL number with varius RK(s,n) -- WENO5 couples. In fact the CFL number in that case is an estimation with the linear case. Some expor...
28.714286
71
0.731343
797436238b0a7d893a8755e0bdd826f1fd0aaa96
3,840
py
Python
models/seg/nets/pspnet.py
youansheng/PyTorchCV
3a51b2f209639e58620676bf19b3564ef8c92a75
[ "Apache-2.0" ]
68
2019-01-10T09:16:39.000Z
2022-03-20T18:23:52.000Z
models/seg/nets/pspnet.py
youdonny/torchcv
c7e717fe301ba338b3e9dbea70b51f3e2cd5dabe
[ "Apache-2.0" ]
4
2019-01-10T11:47:09.000Z
2019-01-21T15:04:52.000Z
models/seg/nets/pspnet.py
youdonny/torchcv
c7e717fe301ba338b3e9dbea70b51f3e2cd5dabe
[ "Apache-2.0" ]
13
2019-01-11T06:13:40.000Z
2021-05-22T03:09:52.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You(youansheng@gmail.com) # Pytorch implementation of PSP net Synchronized Batch Normalization # this is pytorch implementation of PSP resnet101 (syn-bn) version import torch import torch.nn as nn import torch.nn.functional as F from models.backbones.backb...
37.281553
107
0.620573
797438685680f221ea46ccc143a60aa74239057a
1,768
py
Python
examples/camera/basic/main.py
wasimafser/plyer
4b07158828dc50ca095de3156e43d9b4369de7b0
[ "MIT" ]
null
null
null
examples/camera/basic/main.py
wasimafser/plyer
4b07158828dc50ca095de3156e43d9b4369de7b0
[ "MIT" ]
null
null
null
examples/camera/basic/main.py
wasimafser/plyer
4b07158828dc50ca095de3156e43d9b4369de7b0
[ "MIT" ]
null
null
null
""" Basic camera example Default picture is saved as /sdcard/org.test.cameraexample/enter_file_name_here.jpg """ from os import getcwd from os.path import exists from kivy.app import App from kivy.uix.floatlayout import FloatLayout from kivy.uix.popup import Popup import kivy from plyer import camera kivy.require('...
23.573333
79
0.61595
797439676b598946cdef604f2ba84cbba3233754
9,423
py
Python
Day 2/workshop/selected-downloads (26)/ML_Classifiers.py
heyudao/ISS
d076fca9b8783825ffe688fbbddb7ef45eae7cd1
[ "MIT" ]
null
null
null
Day 2/workshop/selected-downloads (26)/ML_Classifiers.py
heyudao/ISS
d076fca9b8783825ffe688fbbddb7ef45eae7cd1
[ "MIT" ]
null
null
null
Day 2/workshop/selected-downloads (26)/ML_Classifiers.py
heyudao/ISS
d076fca9b8783825ffe688fbbddb7ef45eae7cd1
[ "MIT" ]
1
2021-01-25T10:06:19.000Z
2021-01-25T10:06:19.000Z
# -*- coding: utf-8 -*- """ Created on Fri Aug 23 17:03:52 2019 @author: isswan """ import sklearn import nltk import re import pandas as pd import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.model_selection import train_test_split from sklearn.svm import SVC ...
32.71875
378
0.707312
797439ddb8b8661bd44268436b88988a0b397683
2,414
py
Python
infra_macros/macro_lib/convert/container_image/compiler/tests/sample_items.py
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
infra_macros/macro_lib/convert/container_image/compiler/tests/sample_items.py
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
infra_macros/macro_lib/convert/container_image/compiler/tests/sample_items.py
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import os from ..items import CopyFileItem, MakeDirsItem, TarballItem, FilesystemRootItem # Our target names are too long :( T_BASE = ( '//tools/build/buck/infra_macros/macro_lib/convert/container_image/' 'compiler/tests' ) # Use the "debug", human-readable forms of the image_feature t...
31.350649
79
0.689312
79743a68a6ecc3b49e0986f4cab9ddbd1cf60b39
1,365
py
Python
blog/urls.py
MarkdenToom/NASA-blog
1b6a1e54b581fadaa09be9411f928d9ca9328b07
[ "MIT" ]
null
null
null
blog/urls.py
MarkdenToom/NASA-blog
1b6a1e54b581fadaa09be9411f928d9ca9328b07
[ "MIT" ]
null
null
null
blog/urls.py
MarkdenToom/NASA-blog
1b6a1e54b581fadaa09be9411f928d9ca9328b07
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('',views.PostListView.as_view(),name='post_list'), path('archive_space_station/',views.ArchiveSpaceStationView.as_view(),name='archive_space_station'), path('archive_hurricane_and_typhoon_updates/',views.ArchiveHurricaneAndTyphoonUpdates...
62.045455
150
0.737729
79743a73ed959584b88334026820c367c3a7bfda
6,992
py
Python
mmdet/iounet/roi_generator.py
thisisi3/OpenMMLab-IoUNet
23a9931627aa2bc15298d0379a81c2efde5e0297
[ "Apache-2.0" ]
20
2021-08-10T08:48:44.000Z
2022-02-24T06:45:38.000Z
mmdet/iounet/roi_generator.py
thisisi3/OpenMMLab-IoUNet
23a9931627aa2bc15298d0379a81c2efde5e0297
[ "Apache-2.0" ]
1
2021-12-07T08:43:35.000Z
2021-12-09T04:28:38.000Z
mmdet/iounet/roi_generator.py
thisisi3/OpenMMLab-IoUNet
23a9931627aa2bc15298d0379a81c2efde5e0297
[ "Apache-2.0" ]
2
2021-08-10T10:02:00.000Z
2021-09-23T03:05:03.000Z
from mmdet.core import bbox_overlaps, bbox_xyxy_to_cxcywh, bbox_cxcywh_to_xyxy from .utils import clip_bboxes_to_image import math, torch class RoIGenerator(torch.nn.Module): """It generates IoU balanced rois from a given set of GT bboxes. We use delta since it is scale-invariant. A large amount of del...
43.160494
100
0.59282
79743ac5590ed024ede8da444a2fd936778e4efb
7,384
py
Python
Lib/site-packages/isapi/threaded_extension.py
egorcompany/telegram-chat-members
19a7c2bffe2fb832b79a4475ca324c438d5f548d
[ "MIT" ]
3
2016-11-24T03:57:22.000Z
2019-02-27T15:19:50.000Z
Lib/site-packages/isapi/threaded_extension.py
egorcompany/telegram-chat-members
19a7c2bffe2fb832b79a4475ca324c438d5f548d
[ "MIT" ]
67
2016-10-19T01:23:47.000Z
2016-12-14T04:30:38.000Z
Lib/site-packages/isapi/threaded_extension.py
egorcompany/telegram-chat-members
19a7c2bffe2fb832b79a4475ca324c438d5f548d
[ "MIT" ]
1
2019-04-07T08:33:09.000Z
2019-04-07T08:33:09.000Z
"""An ISAPI extension base class implemented using a thread-pool.""" # $Id$ import sys import time from isapi import isapicon, ExtensionError import isapi.simple from win32file import GetQueuedCompletionStatus, CreateIoCompletionPort, \ PostQueuedCompletionStatus, CloseHandle from win32s...
42.930233
86
0.619989
79743b967b9641a77463cf71a94b90c2fe99c513
723
py
Python
src/main/python/plugin_html.py
infotexture/ofexport
644c63c6769c7da1db8ab9fce84a94d2be3dddc9
[ "Apache-2.0" ]
17
2015-04-02T08:25:45.000Z
2021-03-21T08:10:21.000Z
src/main/python/plugin_html.py
infotexture/ofexport
644c63c6769c7da1db8ab9fce84a94d2be3dddc9
[ "Apache-2.0" ]
null
null
null
src/main/python/plugin_html.py
infotexture/ofexport
644c63c6769c7da1db8ab9fce84a94d2be3dddc9
[ "Apache-2.0" ]
10
2015-01-05T16:11:45.000Z
2021-07-20T20:57:29.000Z
from fmt_template import Formatter, format_document from ofexport import load_template def escape (val): return val.replace('"','&quot;').replace('&','&amp;').replace('<','&lt;').replace('>','&gt;') def generate (out, root_project, root_context, project_mode, template_dir, type_config): subject = root_project...
48.2
120
0.719225
79743caf7fecddd4bf4ae3ef27fc9f07de1b7e60
3,423
py
Python
graphgallery/datasets/in_memory_dataset.py
kisekizzz/GraphGallery
fd4a1f474c244f774397460ae95935638ef48f5b
[ "MIT" ]
null
null
null
graphgallery/datasets/in_memory_dataset.py
kisekizzz/GraphGallery
fd4a1f474c244f774397460ae95935638ef48f5b
[ "MIT" ]
null
null
null
graphgallery/datasets/in_memory_dataset.py
kisekizzz/GraphGallery
fd4a1f474c244f774397460ae95935638ef48f5b
[ "MIT" ]
null
null
null
import os import json import os.path as osp import numpy as np import networkx as nx import pickle as pkl from typing import Optional, List, Tuple, Callable, Union from .dataset import Dataset from ..data.io import makedirs, files_exist, download_file, extract_zip, clean Transform = Union[List, Tuple, st...
29.508621
136
0.581654
79743d420befdc72285519e1a70c0a5d689ec4ab
5,873
py
Python
.nox/tests/lib/python3.7/site-packages/tensorflow_probability/python/bijectors/__init__.py
antonevenepoel/open_spiel
f2f0c786410018675fc40e9a5b82c40814555fa8
[ "Apache-2.0" ]
null
null
null
.nox/tests/lib/python3.7/site-packages/tensorflow_probability/python/bijectors/__init__.py
antonevenepoel/open_spiel
f2f0c786410018675fc40e9a5b82c40814555fa8
[ "Apache-2.0" ]
null
null
null
.nox/tests/lib/python3.7/site-packages/tensorflow_probability/python/bijectors/__init__.py
antonevenepoel/open_spiel
f2f0c786410018675fc40e9a5b82c40814555fa8
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
46.611111
112
0.825813
79743db47a7f6fe6389cedb1e6cedc95e7a3fbac
153
py
Python
blobtest/blobs/admin.py
falinwang/dj4e-samples
f55f021a2901195975a7375000e9f2b7564f82ad
[ "MIT" ]
null
null
null
blobtest/blobs/admin.py
falinwang/dj4e-samples
f55f021a2901195975a7375000e9f2b7564f82ad
[ "MIT" ]
null
null
null
blobtest/blobs/admin.py
falinwang/dj4e-samples
f55f021a2901195975a7375000e9f2b7564f82ad
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from blobs.models import Blob, File admin.site.register(Blob) admin.site.register(File)
17
35
0.79085
79743e861104635c6781a009a9e90798f5f2393a
78
py
Python
settings_model/__init__.py
gregschmit/django-settings-model
ba8e3302291f367247624dbf47a9d70ceaa4ef8f
[ "MIT" ]
1
2021-09-23T09:43:33.000Z
2021-09-23T09:43:33.000Z
settings_model/__init__.py
gregschmit/django-settings-model
ba8e3302291f367247624dbf47a9d70ceaa4ef8f
[ "MIT" ]
null
null
null
settings_model/__init__.py
gregschmit/django-settings-model
ba8e3302291f367247624dbf47a9d70ceaa4ef8f
[ "MIT" ]
2
2021-02-22T11:20:42.000Z
2021-02-25T05:11:29.000Z
__version__ = "0.6.0" default_app_config = "settings_model.apps.CustomConfig"
26
55
0.794872
79743ecc8b73016add09bc396e4ce15e9c6d277b
1,433
py
Python
accounts/migrations/0002_order_product.py
julesc00/crm
ee2264ec2065fed67119eda4a08ab5b985912fcf
[ "MIT" ]
null
null
null
accounts/migrations/0002_order_product.py
julesc00/crm
ee2264ec2065fed67119eda4a08ab5b985912fcf
[ "MIT" ]
null
null
null
accounts/migrations/0002_order_product.py
julesc00/crm
ee2264ec2065fed67119eda4a08ab5b985912fcf
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-07-31 11:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.CreateModel( name='Order', fields=[ ('id', m...
42.147059
175
0.579902
79743f491f0b993a1db4cd3baa6c22a327f5e3a0
353,172
py
Python
openapi_client/api/settings_api.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
openapi_client/api/settings_api.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
openapi_client/api/settings_api.py
hi-artem/twistlock-py
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ Prisma Cloud Compute API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 21.04.439 Generated by: https://openapi-generator.tech """ from __future__ import absolute_impor...
42.684554
182
0.597151
79743f848f12e55b91e1c4a9351cae4d98766cc2
4,030
py
Python
redmapper/calibration/selectspecseeds.py
jacobic/redmapper
bda5bd6f486fd5f18d35aa9ae4b875628e905604
[ "Apache-2.0" ]
17
2016-03-06T07:51:02.000Z
2022-02-03T15:17:26.000Z
redmapper/calibration/selectspecseeds.py
jacobic/redmapper
bda5bd6f486fd5f18d35aa9ae4b875628e905604
[ "Apache-2.0" ]
42
2016-07-27T20:48:20.000Z
2022-01-31T20:47:51.000Z
redmapper/calibration/selectspecseeds.py
jacobic/redmapper
bda5bd6f486fd5f18d35aa9ae4b875628e905604
[ "Apache-2.0" ]
8
2017-01-26T01:38:41.000Z
2020-11-14T07:41:53.000Z
"""Select seed galaxies """ import os import numpy as np import fitsio import esutil from ..configuration import Configuration from ..galaxy import GalaxyCatalog from ..catalog import Catalog class SelectSpecSeeds(object): """ Class to match a galaxy catalog to a spectroscopic catalog to create seeds for ...
34.152542
93
0.480645
79744008b5b6a88b62093342d0542b31746853ee
9,001
py
Python
graphlca.py
BlueSmiley/Least-Common-Ancestor
d97759299629c9f90c0732e33765dea3dd5589a3
[ "MIT" ]
null
null
null
graphlca.py
BlueSmiley/Least-Common-Ancestor
d97759299629c9f90c0732e33765dea3dd5589a3
[ "MIT" ]
null
null
null
graphlca.py
BlueSmiley/Least-Common-Ancestor
d97759299629c9f90c0732e33765dea3dd5589a3
[ "MIT" ]
null
null
null
class LCAGraph(object): """ Create graphs with which the lowest common ancestor of nodes can be found Offers functionality to add nodes and edges between nodes to an instance of the class which represents a directed acyclic graph. Allows keys of any type for nodes as long as __eq__ and __hash__ is...
42.658768
80
0.630708
7974408d76f22078aade477a5995e12c312e11aa
104
py
Python
torchpq/index/__init__.py
DeMoriarty/TorchPQ
16e3b3c3c3c701f3772de46075d2fc78ce80a153
[ "MIT" ]
103
2021-02-10T18:01:56.000Z
2022-03-30T21:35:05.000Z
torchpq/index/__init__.py
DeMoriarty/TorchPQ
16e3b3c3c3c701f3772de46075d2fc78ce80a153
[ "MIT" ]
9
2021-05-28T14:52:33.000Z
2022-03-03T13:09:25.000Z
torchpq/index/__init__.py
DeMoriarty/TorchPQ
16e3b3c3c3c701f3772de46075d2fc78ce80a153
[ "MIT" ]
10
2021-04-24T04:25:24.000Z
2022-02-24T07:30:42.000Z
from .FlatIndex import FlatIndex from .IVFPQIndex import IVFPQIndex from .IVFPQRIndex import IVFPQRIndex
34.666667
36
0.865385
7974423b651cde6f5932dcc1f6ec1d7f610836b5
5,527
py
Python
pre_commit/commands/install_uninstall.py
themr0c/pre-commit
a737d5fe2f083150b31425777eed0803a0ca23e0
[ "MIT" ]
1
2021-12-02T06:45:37.000Z
2021-12-02T06:45:37.000Z
pre_commit/commands/install_uninstall.py
macoMarv86/pre-commit
1c3a51bff7246f0922ede78ea12ed21d4183379c
[ "MIT" ]
null
null
null
pre_commit/commands/install_uninstall.py
macoMarv86/pre-commit
1c3a51bff7246f0922ede78ea12ed21d4183379c
[ "MIT" ]
null
null
null
import itertools import logging import os.path import shlex import shutil import sys from typing import Optional from typing import Sequence from typing import Tuple from pre_commit import git from pre_commit import output from pre_commit.clientlib import load_config from pre_commit.repository import all_hooks from pr...
31.582857
79
0.671069
797442930841b2a051e89d711d537da83ec6d66a
2,682
py
Python
docs/pyqt/todopw/todopw_z5.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
44
2015-02-11T19:10:37.000Z
2021-11-11T09:45:43.000Z
docs/pyqt/todopw/todopw_z5.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
9
2015-02-06T21:26:25.000Z
2022-03-31T10:44:22.000Z
docs/pyqt/todopw/todopw_z5.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
172
2015-06-13T07:16:24.000Z
2022-03-30T20:41:11.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import unicode_literals from PyQt5.QtWidgets import QApplication, QWidget from PyQt5.QtWidgets import QMessageBox, QInputDialog from gui_z5 import Ui_Widget, LoginDialog import baza_z5 as baza from tabmodel_z5 import TabModel class Zadania(QWidget, Ui_Widget)...
33.111111
79
0.596943
797442b28b688aa69587f15196a83a2c2cfbef31
1,111
py
Python
tests/unittests/models/layers/test_multi_head_attention_with_lrp.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "Apache-2.0" ]
null
null
null
tests/unittests/models/layers/test_multi_head_attention_with_lrp.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "Apache-2.0" ]
null
null
null
tests/unittests/models/layers/test_multi_head_attention_with_lrp.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Zilliz. 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 agree...
33.666667
74
0.70477
797443f8b1ab92b24c2eeec33b1cda92c5e5ce53
4,213
py
Python
recipes/gtest/all/conanfile.py
Psy-Kai/conan-center-index
90425585faa2619cda946f779db6d33db7c66323
[ "MIT" ]
null
null
null
recipes/gtest/all/conanfile.py
Psy-Kai/conan-center-index
90425585faa2619cda946f779db6d33db7c66323
[ "MIT" ]
null
null
null
recipes/gtest/all/conanfile.py
Psy-Kai/conan-center-index
90425585faa2619cda946f779db6d33db7c66323
[ "MIT" ]
null
null
null
import glob import os from conans import ConanFile, CMake, tools from conans.model.version import Version from conans.errors import ConanInvalidConfiguration class GTestConan(ConanFile): name = "gtest" description = "Google's C++ test framework" url = "https://github.com/conan-io/conan-center-index" h...
45.301075
173
0.648469
7974455b0df897fb8952b1de5814c0c8cf3d6bad
2,929
py
Python
fashion_MNIST.py
tanmay7270/Playing-with-PyTorch
9ace9c93823010a91cdf9206c2d57d3dc10d821f
[ "MIT" ]
null
null
null
fashion_MNIST.py
tanmay7270/Playing-with-PyTorch
9ace9c93823010a91cdf9206c2d57d3dc10d821f
[ "MIT" ]
null
null
null
fashion_MNIST.py
tanmay7270/Playing-with-PyTorch
9ace9c93823010a91cdf9206c2d57d3dc10d821f
[ "MIT" ]
null
null
null
import torch from torchvision import datasets, transforms from torch import nn, optim import torch.nn.functional as F # Define a transform to normalize the data transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]) # Download and...
29.585859
108
0.624445
7974455eee0cea70ed9e538d39f7bc52333f6beb
5,626
py
Python
quotesbot/pipelines.py
cankaya07/Window
22ddbdf2c9ceb90584627ccc1e62eb44a4586945
[ "MIT" ]
null
null
null
quotesbot/pipelines.py
cankaya07/Window
22ddbdf2c9ceb90584627ccc1e62eb44a4586945
[ "MIT" ]
1
2018-06-29T11:05:56.000Z
2018-06-29T11:05:56.000Z
quotesbot/pipelines.py
cankaya07/Window
22ddbdf2c9ceb90584627ccc1e62eb44a4586945
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import json import os import re import requests import pymongo from urllib.parse import urljoin from scrapy.exceptions impor...
31.255556
82
0.573409
7974488b10a095f71328688b20997cf971031663
1,225
py
Python
drina/packages.py
KTH-dESA/UNECE-Capacity-building
5163cf6c7c86aa2774c7f6072ada0e4b90cc8e9a
[ "MIT" ]
null
null
null
drina/packages.py
KTH-dESA/UNECE-Capacity-building
5163cf6c7c86aa2774c7f6072ada0e4b90cc8e9a
[ "MIT" ]
2
2021-07-03T08:33:21.000Z
2021-07-06T07:58:42.000Z
drina/packages.py
KTH-dESA/UNECE-Capacity-building
5163cf6c7c86aa2774c7f6072ada0e4b90cc8e9a
[ "MIT" ]
1
2021-07-06T14:40:15.000Z
2021-07-06T14:40:15.000Z
# This file imports all the packages import pandas as pd pd.set_option('mode.chained_assignment', None) import numpy as np from IPython.display import HTML import IPython.core.display as di import plotly as py import cufflinks import plotly.offline as pyo from plotly.offline import plot, iplot, init_notebook_mode pyo.i...
29.166667
92
0.826122
797448d2f8a7a59f3e7024a20c794dbb7174dc91
25,761
py
Python
detectron2/data/datasets/coco.py
chaoso/Detectron2-deepfashion2
50e585f65a553f52400fc22b55746e52c39ec06f
[ "Apache-2.0" ]
3
2019-11-28T01:48:12.000Z
2020-03-20T11:45:10.000Z
detectron2/data/datasets/coco.py
chaoso/Detectron2-deepfashion2
50e585f65a553f52400fc22b55746e52c39ec06f
[ "Apache-2.0" ]
null
null
null
detectron2/data/datasets/coco.py
chaoso/Detectron2-deepfashion2
50e585f65a553f52400fc22b55746e52c39ec06f
[ "Apache-2.0" ]
2
2020-09-29T03:16:39.000Z
2021-09-09T03:56:55.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import contextlib import io import logging import os from PIL import Image from fvcore.common.file_io import PathManager from fvcore.common.timer import Timer from detectron2.structures import BoxMode from .. import MetadataCatalog, DatasetCatalog...
60.900709
208
0.514188
7974498f55e694da2deb80f3338eac69227295ed
8,207
py
Python
encoder.py
Anpopaicoconat/Poly-Encoder
779a6ec19bd6477947fcf44199fa06fc6353e18a
[ "MIT" ]
null
null
null
encoder.py
Anpopaicoconat/Poly-Encoder
779a6ec19bd6477947fcf44199fa06fc6353e18a
[ "MIT" ]
null
null
null
encoder.py
Anpopaicoconat/Poly-Encoder
779a6ec19bd6477947fcf44199fa06fc6353e18a
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from transformers import BertPreTrainedModel, BertModel class BiEncoder(BertPreTrainedModel): def __init__(self, config, *inputs, **kwargs): super().__init__(config, *inputs, **kwargs) self.bert = kwargs['bert'] ...
50.660494
122
0.630559
79744ab1469f1a16fe4602c2e34007589608d96f
72
py
Python
inference-engine/ie_bridges/python/src/openvino/inference_engine/dnn_builder/__init__.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
2
2021-04-19T06:08:35.000Z
2021-08-25T02:43:43.000Z
inference-engine/ie_bridges/python/src/openvino/inference_engine/dnn_builder/__init__.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
6
2022-01-11T18:56:22.000Z
2022-02-21T13:20:20.000Z
inference-engine/ie_bridges/python/src/openvino/inference_engine/dnn_builder/__init__.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
3
2021-02-05T17:11:17.000Z
2021-04-19T08:33:31.000Z
from .dnn_builder import * __all__ = ["NetworkBuilder", "LayerBuilder"]
24
44
0.75
79744ad7e9e479d5f780171a3ecbcbb707d778b5
895
py
Python
pype/hosts/blender/plugins/create/create_animation.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/hosts/blender/plugins/create/create_animation.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/hosts/blender/plugins/create/create_animation.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
"""Create an animation asset.""" import bpy from avalon import api, blender import pype.hosts.blender.api.plugin class CreateAnimation(pype.hosts.blender.api.plugin.Creator): """Animation output for character rigs""" name = "animationMain" label = "Animation" family = "animation" icon = "male" ...
28.870968
70
0.653631
79744b5c200c1de296afe11d2938cd550d69fd21
1,110
py
Python
agents/plastic/model/LearningPLASTICModel.py
jmribeiro/PLASTIC-Algorithms
c59ad567a906f320220a09caff64c4a6273151f8
[ "Apache-2.0" ]
5
2020-10-20T17:00:07.000Z
2022-03-11T06:23:09.000Z
agents/plastic/model/LearningPLASTICModel.py
jmribeiro/PLASTIC-Algorithms
c59ad567a906f320220a09caff64c4a6273151f8
[ "Apache-2.0" ]
2
2020-12-05T05:56:57.000Z
2021-06-05T08:11:35.000Z
agents/plastic/model/LearningPLASTICModel.py
jmribeiro/PLASTIC-Algorithms
c59ad567a906f320220a09caff64c4a6273151f8
[ "Apache-2.0" ]
null
null
null
from agents.networks.TeamModel import TeamModel from agents.plastic.PLASTICPrior import PLASTICPrior from yaaf import mkdir class LearningPLASTICModel(PLASTICPrior): def __init__(self, num_teammates): self.teammates_model = TeamModel(num_teammates, trainable=True) super().__init__("new", num_team...
30
76
0.625225
79744e04f22e038d8b70fbef845d1bd2656af51b
6,202
py
Python
nifti/tests/test_analyze.py
cburns/pynifti
12c0314994a1061b573990dbd46ea8e35cec8e60
[ "MIT" ]
1
2017-12-11T11:47:00.000Z
2017-12-11T11:47:00.000Z
nifti/tests/test_analyze.py
cburns/pynifti
12c0314994a1061b573990dbd46ea8e35cec8e60
[ "MIT" ]
null
null
null
nifti/tests/test_analyze.py
cburns/pynifti
12c0314994a1061b573990dbd46ea8e35cec8e60
[ "MIT" ]
null
null
null
''' Test analyze headers See test_binary.py for general binary header tests This - basic - analyze header cannot encode full affines (only diagonal affines), and cannot do integer scaling. The inability to do affines raises the problem of whether the image is neurological (left is left), or radiological (left is rig...
35.643678
98
0.657691
797450189fee869f5a69aae8b2484a56e6d0f78b
4,419
py
Python
ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
#!/usr/bin/python # coding: utf-8 -*- # (c) 2017, Wayne Witzel III <wayne@riotousliving.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1...
26.945122
115
0.656483
797450cc829e146e4073d8729311f8b44c257cee
661
py
Python
build/hector_gazebo_thermal_camera/catkin_generated/pkg.develspace.context.pc.py
arijitnoobstar/UAVProjectileCatcher
3c1bed80df167192cb4b971b58c891187628142e
[ "Apache-2.0" ]
10
2021-03-15T03:58:06.000Z
2021-12-30T15:33:38.000Z
build/hector_gazebo_thermal_camera/catkin_generated/pkg.develspace.context.pc.py
arijitnoobstar/UAVProjectileCatcher
3c1bed80df167192cb4b971b58c891187628142e
[ "Apache-2.0" ]
1
2021-09-09T15:29:31.000Z
2021-09-09T15:29:31.000Z
build/hector_gazebo_thermal_camera/catkin_generated/pkg.develspace.context.pc.py
arijitnoobstar/UAVProjectileCatcher
3c1bed80df167192cb4b971b58c891187628142e
[ "Apache-2.0" ]
4
2021-03-06T09:35:58.000Z
2021-05-24T14:34:11.000Z
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/arijitnoobstar/UAVProjectileCatcher/src/src/hector_gazebo/hector_gazebo_thermal_camera/include".split(';') if "/home/arijitnoobstar/UAVProjectileCatcher/src/src/hector_gazebo/hector_gazebo_therma...
73.444444
267
0.804841
797451aa239fbc5eb948a8d281a6bc85238e8320
1,544
py
Python
tests/test_cfn.py
serverless/serverless-helpers-py
d14bdef5c471d4352ffa703aca42b4250be1cbbf
[ "MIT" ]
12
2016-03-15T17:39:41.000Z
2020-05-08T09:05:31.000Z
tests/test_cfn.py
serverless/serverless-helpers-py
d14bdef5c471d4352ffa703aca42b4250be1cbbf
[ "MIT" ]
2
2016-10-04T23:45:17.000Z
2018-07-20T16:36:23.000Z
tests/test_cfn.py
serverless/serverless-helpers-py
d14bdef5c471d4352ffa703aca42b4250be1cbbf
[ "MIT" ]
3
2016-03-29T17:53:14.000Z
2020-11-28T14:50:04.000Z
# -*- coding: utf-8 -*- # MIT Licensed, Copyright (c) 2016 Ryan Scott Brown <sb@ryansb.com> import os from placebo.utils import placebo_session import serverless_helpers def test_unset_environment(): os.environ.pop('SERVERLESS_PROJECT_NAME', None) os.environ.pop('SERVERLESS_STAGE', None) stack_name = ser...
36.761905
98
0.689119
797451ec696c361dfe5500a8ac9d795fdb671d51
1,093
py
Python
setup.py
goodarzilab/ciberatac
58c150813cfdf1cea160b9b2c464c382cb0f7395
[ "BSD-3-Clause" ]
3
2022-02-25T19:24:52.000Z
2022-03-22T16:48:07.000Z
setup.py
goodarzilab/ciberatac
58c150813cfdf1cea160b9b2c464c382cb0f7395
[ "BSD-3-Clause" ]
null
null
null
setup.py
goodarzilab/ciberatac
58c150813cfdf1cea160b9b2c464c382cb0f7395
[ "BSD-3-Clause" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="CiberATAC", version="0.0.1", author="Mehran Karimzadeh", author_email="mehran.karimzadeh@uhnresearch.ca", description="Deep learning model for deconvolving chromatin acce...
29.540541
79
0.604758
79745327f712e7b9d695d58b4d44a695c0d7a7cc
700
py
Python
Leetcode/0358. Rearrange String k Distance Apart/0358.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0358. Rearrange String k Distance Apart/0358.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0358. Rearrange String k Distance Apart/0358.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def rearrangeString(self, s: str, k: int) -> str: n = len(s) ans = [] count = Counter(s) valid = Counter() # valid[i] := the leftmost index i can appear # return the letter that has most count and also valid def getBestLetter(index: int) -> chr: maxCount = -1 best...
24.137931
70
0.545714
79745337ddb2f3c2d397866d0940ff9b415de322
85
py
Python
naplib/utils/__init__.py
gavinmischler/naplib-python
8cd7a0fc700f1c07243169ec42fc087955885adc
[ "MIT" ]
1
2022-03-02T20:54:23.000Z
2022-03-02T20:54:23.000Z
naplib/utils/__init__.py
gavinmischler/gavlib
cacf9180b1442e4aed98b6182d586747a6d6ef90
[ "MIT" ]
null
null
null
naplib/utils/__init__.py
gavinmischler/gavlib
cacf9180b1442e4aed98b6182d586747a6d6ef90
[ "MIT" ]
null
null
null
from .argchecking import _parse_outstruct_args __all__ = ['_parse_outstruct_args']
17
46
0.823529
7974542530d3b117e4dc2cf392cc299d27f818dc
1,409
py
Python
app/routes.py
ender18g/ew370
a4a8af973adc37a02eb9148fed67e857a614faaf
[ "MIT" ]
null
null
null
app/routes.py
ender18g/ew370
a4a8af973adc37a02eb9148fed67e857a614faaf
[ "MIT" ]
null
null
null
app/routes.py
ender18g/ew370
a4a8af973adc37a02eb9148fed67e857a614faaf
[ "MIT" ]
null
null
null
from app import app from app import db from flask import render_template, url_for, request, jsonify, redirect import json from app.models import Comment # def get_mlData(): # with open ('app/static/brain-examples/ml_data.json','r') as f: # return json.load(f) # def save_mlData(ml_data): # with open ('app/sta...
30.630435
95
0.672818
79745440690912d1c90fb8a059081b6c48dfe2f4
7,859
py
Python
skcriteria/core/methods.py
leliel12/scikitcriteria
f13a75b5a39cd2d3db30a37b69e61a2814a5cea4
[ "BSD-3-Clause" ]
7
2021-12-01T02:52:23.000Z
2022-03-13T11:12:52.000Z
skcriteria/core/methods.py
leliel12/scikitcriteria
f13a75b5a39cd2d3db30a37b69e61a2814a5cea4
[ "BSD-3-Clause" ]
16
2021-11-06T21:31:36.000Z
2022-02-21T22:43:38.000Z
skcriteria/core/methods.py
leliel12/scikitcriteria
f13a75b5a39cd2d3db30a37b69e61a2814a5cea4
[ "BSD-3-Clause" ]
3
2021-12-24T04:33:07.000Z
2022-01-20T15:03:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # License: BSD-3 (https://tldrlegal.com/license/bsd-3-clause-license-(revised)) # Copyright (c) 2016-2021, Cabral, Juan; Luczywo, Nadia # Copyright (c) 2022, QuatroPe # All rights reserved. # ============================================================================= # D...
29.656604
80
0.572083
79745461c91f50067b29ab271eb29441b774c5bf
24,105
py
Python
ot/gromov.py
dmelis/POT
7471b7a16577d66e907e10e08bf3bbcded19551c
[ "MIT" ]
null
null
null
ot/gromov.py
dmelis/POT
7471b7a16577d66e907e10e08bf3bbcded19551c
[ "MIT" ]
null
null
null
ot/gromov.py
dmelis/POT
7471b7a16577d66e907e10e08bf3bbcded19551c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Gromov-Wasserstein transport method """ # Author: Erwan Vautier <erwan.vautier@gmail.com> # Nicolas Courty <ncourty@irisa.fr> # Rémi Flamary <remi.flamary@unice.fr> # # License: MIT License import numpy as np from .bregman import sinkhorn from .utils im...
29.468215
112
0.555569
7974546a6d4f55bebba05927f4904267797149dd
3,776
py
Python
databasic/logic/oauth.py
schoolofdata-ch/DataBasic
9faba7a2d583653aab6d36c01bc878d3cc328b1a
[ "MIT" ]
4
2021-04-12T22:30:26.000Z
2022-03-09T14:07:36.000Z
databasic/logic/oauth.py
schoolofdata-ch/DataBasic
9faba7a2d583653aab6d36c01bc878d3cc328b1a
[ "MIT" ]
4
2020-10-08T10:53:54.000Z
2021-01-24T18:54:49.000Z
databasic/logic/oauth.py
rahulbot/DataBasic
bf643b1c640bfdf1fb8619024a38c8b802d1576c
[ "MIT" ]
null
null
null
import os, sys, json, gspread, logging import gdata.docs.service from oauth2client.client import SignedJwtAssertionCredentials, OAuth2WebServerFlow _oauth = None # singleton instance logger = logging.getLogger(__name__) ''' Public API ''' def init(client_id,client_secret,redirect_uri): global _oauth logger...
35.28972
97
0.642479
797455bbde961edba21d1be762330303066d0c2a
11,558
py
Python
python/getdist/densities.py
Ji-Ping-Dai/CosmoCl
36f80fdac0bc6ca8d6483feaa2d48589f1015b85
[ "MIT" ]
1
2020-06-04T15:29:37.000Z
2020-06-04T15:29:37.000Z
python/getdist/densities.py
Ji-Ping-Dai/GeneralPPF
5c6ca73c1a37d3b0de8751c772ad38eb60f89840
[ "MIT" ]
null
null
null
python/getdist/densities.py
Ji-Ping-Dai/GeneralPPF
5c6ca73c1a37d3b0de8751c772ad38eb60f89840
[ "MIT" ]
null
null
null
import numpy as np from scipy.interpolate import splrep, splev, RectBivariateSpline, LinearNDInterpolator class DensitiesError(Exception): pass defaultContours = [0.68, 0.95] def getContourLevels(inbins, contours=defaultContours, missing_norm=0, half_edge=True): """ Get contour levels enclosing "cont...
32.835227
137
0.556584
79745676868c2cb4adbf9a639775d9953433acac
364
py
Python
cursoemvideo/exercicios/ex083.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
cursoemvideo/exercicios/ex083.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
cursoemvideo/exercicios/ex083.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
lista = list() exp = str(input('Digite uma expressão: ')) for simb in exp: if simb == '(': lista.append(simb) elif simb == ')': if len(lista) > 0: lista.pop() else: lista.append(simb) break if len(lista) == 0: print('Sua expressão é válida!') else:...
24.266667
43
0.524725
797457347d81f1cf31c81cd5e66e45177866728e
875
py
Python
{{cookiecutter.github_repository_name}}/manage.py
joshua-s/cookiecutter-django-rest
df97b673441242ecf8a4d00cde95516244605047
[ "MIT" ]
null
null
null
{{cookiecutter.github_repository_name}}/manage.py
joshua-s/cookiecutter-django-rest
df97b673441242ecf8a4d00cde95516244605047
[ "MIT" ]
null
null
null
{{cookiecutter.github_repository_name}}/manage.py
joshua-s/cookiecutter-django-rest
df97b673441242ecf8a4d00cde95516244605047
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings") os.environ.setdefault("DJANGO_CONFIGURATION", "Local") try: from configurations.management import execute_from_command_line except ImportError: # The...
35
77
0.649143
7974591b3e698add695f051f6266a060a9590378
2,363
py
Python
planning_python/data_structures/priority_queue.py
yonetaniryo/planning_python
3d7d3c06cc577445a9b5b423f2907f5efa830a0f
[ "BSD-3-Clause" ]
12
2017-10-18T21:39:20.000Z
2021-11-28T06:36:37.000Z
planning_python/data_structures/priority_queue.py
yonetaniryo/planning_python
3d7d3c06cc577445a9b5b423f2907f5efa830a0f
[ "BSD-3-Clause" ]
null
null
null
planning_python/data_structures/priority_queue.py
yonetaniryo/planning_python
3d7d3c06cc577445a9b5b423f2907f5efa830a0f
[ "BSD-3-Clause" ]
6
2017-10-29T05:23:16.000Z
2020-11-17T10:53:41.000Z
#!/usr/bin/env python """A priority queue that uses heaps and lazy deletes if required. We don't update the priority of an element already in the queue, but keep a duplicate. Lazy deletes help in taking random actions.""" import copy import heapq REMOVED = '<removed-node>' #Placeholder for removed node class Priorit...
31.932432
108
0.703766
7974593c88764644e0ff9db4a6c40f2a605e5cc0
9,422
py
Python
NEST-14.0-FPGA/pynest/nest/tests/test_stdp_multiplicity.py
OpenHEC/SNN-simulator-on-PYNQcluster
14f86a76edf4e8763b58f84960876e95d4efc43a
[ "MIT" ]
45
2019-12-09T06:45:53.000Z
2022-01-29T12:16:41.000Z
NEST-14.0-FPGA/pynest/nest/tests/test_stdp_multiplicity.py
zlchai/SNN-simulator-on-PYNQcluster
14f86a76edf4e8763b58f84960876e95d4efc43a
[ "MIT" ]
2
2020-05-23T05:34:21.000Z
2021-09-08T02:33:46.000Z
NEST-14.0-FPGA/pynest/nest/tests/test_stdp_multiplicity.py
OpenHEC/SNN-simulator-on-PYNQcluster
14f86a76edf4e8763b58f84960876e95d4efc43a
[ "MIT" ]
10
2019-12-09T06:45:59.000Z
2021-03-25T09:32:56.000Z
# -*- coding: utf-8 -*- # # test_stdp_multiplicity.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the ...
38.933884
79
0.608788
79745959dc4e0a7305553e06618243c083ceee8d
13,038
py
Python
riam_api_client/models/inline_response20034_message_valorizacion.py
RiskAmerica/api-client-python
468c554a0440bef5086828631e25d99d41e28571
[ "MIT" ]
null
null
null
riam_api_client/models/inline_response20034_message_valorizacion.py
RiskAmerica/api-client-python
468c554a0440bef5086828631e25d99d41e28571
[ "MIT" ]
null
null
null
riam_api_client/models/inline_response20034_message_valorizacion.py
RiskAmerica/api-client-python
468c554a0440bef5086828631e25d99d41e28571
[ "MIT" ]
1
2021-04-14T15:52:03.000Z
2021-04-14T15:52:03.000Z
# coding: utf-8 """ APIs RISKAMERICA A continuación les presentamos la documentación las **APIs** **de** **RiskAmerica**, el cual es un servicio pagado ofrecido por RiskAmerica que se contrata por separado a nuestras otras ofertas de software. Algunas consideraciones que debe tener al momento de usar las API...
33.777202
1,070
0.631539
79745a00ea8170f3aa46bff3b3ccfb63f2f17104
7,444
py
Python
pennylane/tracker.py
therooler/pennylane
88a8a5960a2ffd218a12f85ace632021eef2abf5
[ "Apache-2.0" ]
null
null
null
pennylane/tracker.py
therooler/pennylane
88a8a5960a2ffd218a12f85ace632021eef2abf5
[ "Apache-2.0" ]
null
null
null
pennylane/tracker.py
therooler/pennylane
88a8a5960a2ffd218a12f85ace632021eef2abf5
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2021 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or...
37.786802
101
0.631918
79745a625711b583824072e971c43d58ea128a77
4,115
py
Python
extension/src/xdevice_extension/_core/environment/device_state.py
openharmony-gitee-mirror/test_xdevice
1d24201649d4f6a3e5aa381989f794bb8cfe15b9
[ "Apache-2.0" ]
2
2021-12-20T03:22:21.000Z
2022-02-10T07:26:38.000Z
extension/src/xdevice_extension/_core/environment/device_state.py
openharmony-gitee-mirror/test_xdevice
1d24201649d4f6a3e5aa381989f794bb8cfe15b9
[ "Apache-2.0" ]
null
null
null
extension/src/xdevice_extension/_core/environment/device_state.py
openharmony-gitee-mirror/test_xdevice
1d24201649d4f6a3e5aa381989f794bb8cfe15b9
[ "Apache-2.0" ]
2
2021-09-13T11:13:53.000Z
2022-02-28T21:54:23.000Z
#!/usr/bin/env python3 # coding=utf-8 # # Copyright (c) 2021 Huawei Device 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...
34.008264
75
0.691373
79745aca600b2632b5432c8a3994e241a03e1143
1,938
py
Python
data/p2DJ/New/R2/benchmark/startCirq176.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startCirq176.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startCirq176.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=2 # total number=15 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
29.363636
77
0.692982