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
7986084e352ff66aecead91a74c71d8618433e8b
1,494
py
Python
lib/exabgp/bgp/message/update/attribute/origin.py
PowerDNS/exabgp
bbf69f25853e10432fbe588b5bc2f8d9f1e5dda2
[ "BSD-3-Clause" ]
8
2015-01-11T09:57:26.000Z
2019-07-05T05:57:02.000Z
lib/exabgp/bgp/message/update/attribute/origin.py
Acidburn0zzz/exabgp
bbf69f25853e10432fbe588b5bc2f8d9f1e5dda2
[ "BSD-3-Clause" ]
1
2018-11-15T22:10:09.000Z
2018-11-15T22:20:31.000Z
lib/exabgp/bgp/message/update/attribute/origin.py
Acidburn0zzz/exabgp
bbf69f25853e10432fbe588b5bc2f8d9f1e5dda2
[ "BSD-3-Clause" ]
6
2015-09-11T01:51:06.000Z
2020-03-10T19:16:18.000Z
# encoding: utf-8 """ attributes.py Created by Thomas Mangin on 2009-11-05. Copyright (c) 2009-2013 Exa Networks. All rights reserved. """ from exabgp.bgp.message.update.attribute.attribute import Attribute # =================================================================== Origin (1) class Origin (Attribute): I...
22.984615
80
0.669344
79860900b0306fae8d160f71f4a49756938b5523
252
py
Python
poop/hfdp/decorator/starbuzz/beverage.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
37
2020-12-27T00:13:07.000Z
2022-01-31T19:30:18.000Z
poop/hfdp/decorator/starbuzz/beverage.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
null
null
null
poop/hfdp/decorator/starbuzz/beverage.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
7
2020-12-26T22:33:47.000Z
2021-11-07T01:29:59.000Z
from abc import ABC, abstractmethod class Beverage(ABC): description = "Unknown Beverage" def get_description(self) -> str: return self.description @abstractmethod def cost(self) -> float: raise NotImplementedError
18
37
0.68254
798609bb4fd75d31b1351ece129ee161e532405b
976
bzl
Python
language/go/def.bzl
tanyabouman/bazel-gazelle
c97d7e3be2db1ec88cd6437f5026e7a95e284a29
[ "Apache-2.0" ]
741
2017-12-08T14:43:28.000Z
2022-03-31T07:15:43.000Z
language/go/def.bzl
tanyabouman/bazel-gazelle
c97d7e3be2db1ec88cd6437f5026e7a95e284a29
[ "Apache-2.0" ]
816
2017-12-06T21:45:29.000Z
2022-03-30T20:47:34.000Z
language/go/def.bzl
tanyabouman/bazel-gazelle
c97d7e3be2db1ec88cd6437f5026e7a95e284a29
[ "Apache-2.0" ]
260
2017-11-30T20:59:53.000Z
2022-03-30T11:42:34.000Z
load("@io_bazel_rules_go//go:def.bzl", "go_context") def _std_package_list_impl(ctx): go = go_context(ctx) args = ctx.actions.args() args.add_all([go.package_list, ctx.outputs.out]) ctx.actions.run( inputs = [go.package_list], outputs = [ctx.outputs.out], executable = ctx.execut...
31.483871
73
0.617828
79860adab7baab08c44a6897a5860b69dc54ea68
494
py
Python
assignements/test_S3.py
LucasEncrenaz/BachelorDIM-Lectures-Algorithms-2020
768cbf8788ab5b2f20edd10009d1e33ac76f8c8d
[ "MIT" ]
null
null
null
assignements/test_S3.py
LucasEncrenaz/BachelorDIM-Lectures-Algorithms-2020
768cbf8788ab5b2f20edd10009d1e33ac76f8c8d
[ "MIT" ]
null
null
null
assignements/test_S3.py
LucasEncrenaz/BachelorDIM-Lectures-Algorithms-2020
768cbf8788ab5b2f20edd10009d1e33ac76f8c8d
[ "MIT" ]
null
null
null
import S3_imgproc_tools as tobetested import pytest def test_innv_gray_levels_tuNone(): with pytest.raises(AttributeError): innv_gray_levels(None) def test_innv_gray_levels_tuArray(): with pytest.raises(AttributeError): innv_gray_levels(1) def test_innv_gray_levels_tuuint8(): with pytest....
24.7
59
0.757085
79860d69bbe78c6aa79323ed7829a087b8de514f
41
py
Python
smktest/__init__.py
cecilio-cannav/smktest
4839fcf2cb127fea56a62591833500540b49b9bc
[ "MIT" ]
null
null
null
smktest/__init__.py
cecilio-cannav/smktest
4839fcf2cb127fea56a62591833500540b49b9bc
[ "MIT" ]
null
null
null
smktest/__init__.py
cecilio-cannav/smktest
4839fcf2cb127fea56a62591833500540b49b9bc
[ "MIT" ]
null
null
null
import smktest.check __all__=["smktest"]
13.666667
20
0.780488
79860da18a533d57dc511f83cfa7e5e75543e6c1
3,779
py
Python
scripts/poll_ads.py
usdevs/laundro
3295c7705cd66560e6d322e7c0ef25a17c6fe2cf
[ "MIT" ]
null
null
null
scripts/poll_ads.py
usdevs/laundro
3295c7705cd66560e6d322e7c0ef25a17c6fe2cf
[ "MIT" ]
4
2021-12-09T17:10:32.000Z
2021-12-30T17:04:20.000Z
scripts/poll_ads.py
usdevs/laundro
3295c7705cd66560e6d322e7c0ef25a17c6fe2cf
[ "MIT" ]
2
2021-12-08T14:54:16.000Z
2021-12-09T05:37:34.000Z
# ADS deps from adafruit_ads1x15.ads1015 import ADS1015 from adafruit_ads1x15.ads1115 import ADS1115 from adafruit_ads1x15.ads1x15 import Mode from adafruit_ads1x15.analog_in import AnalogIn # rpi deps import board import busio # cli and plot deps import time import argparse import plotext as plt from enum import Enum ...
31.491667
118
0.643027
79860e88d49b3097344e872a6a9a81745571518f
4,488
py
Python
scripts/prepro_feats.py
Samrat2803/self-critical.pytorch
b540cb508b63881e451ad436660cf656aa4abeac
[ "MIT" ]
null
null
null
scripts/prepro_feats.py
Samrat2803/self-critical.pytorch
b540cb508b63881e451ad436660cf656aa4abeac
[ "MIT" ]
null
null
null
scripts/prepro_feats.py
Samrat2803/self-critical.pytorch
b540cb508b63881e451ad436660cf656aa4abeac
[ "MIT" ]
null
null
null
""" Preprocess a raw json dataset into hdf5/json files for use in data_loader.lua Input: json file that has the form [{ file_path: 'path/img.jpg', captions: ['a caption', ...] }, ...] example element in this list would look like {'captions': [u'A man with a red helmet on a small moped on a dirt road. ', u'Man riding a...
39.026087
483
0.71123
79860ee540953ef9545f0aa53833b0cda8143e21
2,542
py
Python
doctor/_schema.py
noonat/doctor
19f143fe65f515d3e446222811f1e994c672f055
[ "MIT" ]
1
2016-01-22T22:56:10.000Z
2016-01-22T22:56:10.000Z
doctor/_schema.py
noonat/doctor
19f143fe65f515d3e446222811f1e994c672f055
[ "MIT" ]
null
null
null
doctor/_schema.py
noonat/doctor
19f143fe65f515d3e446222811f1e994c672f055
[ "MIT" ]
null
null
null
import jsonschema from jsonschema.validators import validator_for class Schema(object): """A wrapper around a JSON schema dict. This wrapper provides a resolver and a validator for the given schema, so they don't need to be created elsewhere. It can be useful for cases where a schema uses a custom r...
43.827586
79
0.681353
79860f46da22f4c58ec4caee6e8f4639377a4a49
116
py
Python
2 semester/PW/Coursera/Python/2 Week/4.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
1
2022-02-06T17:50:25.000Z
2022-02-06T17:50:25.000Z
2 semester/PW/Coursera/Python/2 Week/4.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
null
null
null
2 semester/PW/Coursera/Python/2 Week/4.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
1
2022-03-02T06:45:06.000Z
2022-03-02T06:45:06.000Z
year = int(input()) if (not (year % 4) and year % 100) or not (year % 400): print("YES") else: print("NO")
16.571429
55
0.543103
798610d7b4e27e85e7b1dde4ab21238701f138b3
2,897
py
Python
outlook.py
JJgar2725/OutlookAuto
3dc67b4dabb8accfd1ea4a5df70cca884ba65239
[ "MIT" ]
null
null
null
outlook.py
JJgar2725/OutlookAuto
3dc67b4dabb8accfd1ea4a5df70cca884ba65239
[ "MIT" ]
null
null
null
outlook.py
JJgar2725/OutlookAuto
3dc67b4dabb8accfd1ea4a5df70cca884ba65239
[ "MIT" ]
null
null
null
# imported modules import sys import os import time from dotenv import load_dotenv from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver...
27.590476
116
0.749396
79861156ddbd5a28b680feb0f95ec37a6889a96d
1,970
py
Python
tests/unit/states/test_chef.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
5
2017-02-07T05:39:29.000Z
2020-06-13T02:07:33.000Z
tests/unit/states/test_chef.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
tests/unit/states/test_chef.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
11
2017-01-26T19:36:29.000Z
2021-12-11T07:54:16.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> ''' # Import Python libs from __future__ import absolute_import, print_function, unicode_literals # Import Salt Testing Libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import skipIf, TestCase from tes...
28.142857
72
0.536548
79861159364805fc15ae0e6d7728ba346025cb3b
1,167
py
Python
tables/language.py
PooyaFekri/LinkedIn
96d63dac49114660ced32b5df12dfbf072c82683
[ "MIT" ]
null
null
null
tables/language.py
PooyaFekri/LinkedIn
96d63dac49114660ced32b5df12dfbf072c82683
[ "MIT" ]
null
null
null
tables/language.py
PooyaFekri/LinkedIn
96d63dac49114660ced32b5df12dfbf072c82683
[ "MIT" ]
null
null
null
from .table import Table class Language(Table): _table_pk = 'id' _table_name = 'Language' def __init__(self, data): self.id = data[0] self.user_id = data[1] self.language = data[2] @classmethod def add(cls, *args, **kwargs): try: super().insert(kwargs)...
26.522727
59
0.522708
798611f2d911f0545e4b0e4509553ecde92f2c10
1,271
py
Python
setup.py
pahpa/django-sort-order-field
8d8c011df7c3260d70e0f8711160b3b3ca024323
[ "BSD-3-Clause" ]
null
null
null
setup.py
pahpa/django-sort-order-field
8d8c011df7c3260d70e0f8711160b3b3ca024323
[ "BSD-3-Clause" ]
null
null
null
setup.py
pahpa/django-sort-order-field
8d8c011df7c3260d70e0f8711160b3b3ca024323
[ "BSD-3-Clause" ]
null
null
null
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README_RST = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-sort-order-f...
34.351351
78
0.652242
798612e25034b90be1d0b93fa179f16dbf5d91e6
16,583
py
Python
backend/dvadmin/system/models.py
hojongss3ch8j/heysupratim
cca2ec4bc6d0cfeb6a87b4be28d434be9546280f
[ "Apache-2.0" ]
null
null
null
backend/dvadmin/system/models.py
hojongss3ch8j/heysupratim
cca2ec4bc6d0cfeb6a87b4be28d434be9546280f
[ "Apache-2.0" ]
null
null
null
backend/dvadmin/system/models.py
hojongss3ch8j/heysupratim
cca2ec4bc6d0cfeb6a87b4be28d434be9546280f
[ "Apache-2.0" ]
null
null
null
import hashlib import os from django.contrib.auth.models import AbstractUser from django.db import models from dvadmin.utils.models import CoreModel, table_prefix STATUS_CHOICES = ( (0, "禁用"), (1, "启用"), ) class Users(AbstractUser, CoreModel): username = models.CharField(max_length=150, unique=True, db...
49.06213
119
0.671531
798612ef2aaf417e7fc9ff05ed5a3d9ee87d892b
22,352
py
Python
theano/tensor/blas_c.py
goodfeli/Theano
0494f6891a326b02d4e135ac7ed9ccf639560212
[ "BSD-3-Clause" ]
11
2016-12-01T19:49:28.000Z
2021-11-08T11:12:08.000Z
theano/tensor/blas_c.py
goodfeli/Theano
0494f6891a326b02d4e135ac7ed9ccf639560212
[ "BSD-3-Clause" ]
null
null
null
theano/tensor/blas_c.py
goodfeli/Theano
0494f6891a326b02d4e135ac7ed9ccf639560212
[ "BSD-3-Clause" ]
6
2015-06-21T20:55:55.000Z
2019-04-24T20:03:25.000Z
from theano import config from theano.tensor.blas import ldflags, blas_header_text, blas_header_version from theano.tensor.blas import blas_optdb, optdb, local_optimizer, EquilibriumOptimizer from theano.tensor.blas import Ger, ger, ger_destructive from theano.tensor.blas import Gemv, gemv_inplace, gemv_no_inplace ...
35.70607
87
0.465283
798614b678630fa35f029c01a5b94b6ae2758fdd
1,372
py
Python
venv/Lib/site-packages/sklearn/neighbors/__init__.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
2
2021-05-02T07:59:56.000Z
2021-12-14T19:53:13.000Z
venv/Lib/site-packages/sklearn/neighbors/__init__.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
7
2021-06-08T21:46:24.000Z
2022-03-12T00:35:31.000Z
my_env/Lib/site-packages/sklearn/neighbors/__init__.py
obulrdy6881/Drowsinss
61cb9281d7dd22aee282b517e2fbf500f0ff9935
[ "MIT" ]
1
2021-05-02T07:59:59.000Z
2021-05-02T07:59:59.000Z
""" The :mod:`sklearn.neighbors` module implements the k-nearest neighbors algorithm. """ from ._ball_tree import BallTree from ._kd_tree import KDTree from ._dist_metrics import DistanceMetric from ._graph import kneighbors_graph, radius_neighbors_graph from ._graph import KNeighborsTransformer, RadiusNeighb...
36.105263
77
0.708455
7986155ee11db48ee14ab3abf7add62256aaf0c1
94
py
Python
noether/unit/catalogue/systems.py
yunruse/Noether
7421a14000488819e52c1aeffa45833c27b8e3ef
[ "CC-BY-4.0" ]
3
2020-01-27T07:44:29.000Z
2021-07-23T22:30:43.000Z
noether/unit/catalogue/systems.py
yunruse/Noether
7421a14000488819e52c1aeffa45833c27b8e3ef
[ "CC-BY-4.0" ]
null
null
null
noether/unit/catalogue/systems.py
yunruse/Noether
7421a14000488819e52c1aeffa45833c27b8e3ef
[ "CC-BY-4.0" ]
null
null
null
from ..unit_system import UnitSystem from .imperial import inch imperial = UnitSystem(inch)
15.666667
36
0.797872
798615e248a2310a988710815e79aaa406663477
5,282
py
Python
tensorflow_decision_forests/tensorflow/ops/inference/tf2_test.py
Saduf2019/decision-forests
62dd6e9de9a577df115c2c7553ca4ed42dd074de
[ "Apache-2.0" ]
null
null
null
tensorflow_decision_forests/tensorflow/ops/inference/tf2_test.py
Saduf2019/decision-forests
62dd6e9de9a577df115c2c7553ca4ed42dd074de
[ "Apache-2.0" ]
null
null
null
tensorflow_decision_forests/tensorflow/ops/inference/tf2_test.py
Saduf2019/decision-forests
62dd6e9de9a577df115c2c7553ca4ed42dd074de
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
34.077419
82
0.725672
798616687c6fe7d5af9b90c7c034da107636683f
7,758
py
Python
docs/conf.py
pmc2010/django_one
09de348705109a90b2c04296b03524731036b68e
[ "MIT" ]
null
null
null
docs/conf.py
pmc2010/django_one
09de348705109a90b2c04296b03524731036b68e
[ "MIT" ]
null
null
null
docs/conf.py
pmc2010/django_one
09de348705109a90b2c04296b03524731036b68e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # django_one documentation build configuration file, created by # sphinx-quickstart on Sun Feb 17 11:46:20 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
31.925926
80
0.715648
798616895cef3b7e9f1789d54484fbfed6f8544e
10,179
py
Python
keras_text_to_image/library/dcgan_v3.py
kashik0i/keras-text-to-image-illustrations
6f37f818511bb12bc950b9e6c5703f05bb8e155f
[ "MIT" ]
null
null
null
keras_text_to_image/library/dcgan_v3.py
kashik0i/keras-text-to-image-illustrations
6f37f818511bb12bc950b9e6c5703f05bb8e155f
[ "MIT" ]
null
null
null
keras_text_to_image/library/dcgan_v3.py
kashik0i/keras-text-to-image-illustrations
6f37f818511bb12bc950b9e6c5703f05bb8e155f
[ "MIT" ]
null
null
null
from keras.models import Model, Sequential from keras.layers import Input, Dense, Reshape, concatenate from keras.layers.core import Activation, Flatten from keras.layers.normalization import BatchNormalization from keras.layers.convolutional import UpSampling2D, Conv2D, MaxPooling2D from keras.optimizers import SGD fr...
47.788732
120
0.669319
798616ab3f3eaf1550fbf21d0a50d67ad7ce7d15
6,117
py
Python
critical_numbers/views/routes.py
GIScience/hot-tm-critical-numbers
07132fe4aee565aa8fdc76b92e215b02c08ddfee
[ "MIT" ]
1
2018-04-04T17:47:30.000Z
2018-04-04T17:47:30.000Z
critical_numbers/views/routes.py
GIScience/hot-tm-critical-numbers
07132fe4aee565aa8fdc76b92e215b02c08ddfee
[ "MIT" ]
8
2018-03-29T12:07:53.000Z
2021-12-13T19:47:22.000Z
critical_numbers/views/routes.py
GIScience/hot-tm-critical-numbers
07132fe4aee565aa8fdc76b92e215b02c08ddfee
[ "MIT" ]
1
2018-06-20T11:50:17.000Z
2018-06-20T11:50:17.000Z
from critical_numbers import app from flask import ( render_template, redirect, url_for, jsonify, send_file, ) from critical_numbers.views import forms from critical_numbers.logic import ( api_requests, visualizer, analysis, converter, )...
33.60989
90
0.601112
79861805a4741d8f2fbc5041b61f449a68c55809
3,138
py
Python
client-example/client.py
uamrws/bitforex-aio
0865224b175a75bc9a021c816239e4c82704904a
[ "MIT" ]
null
null
null
client-example/client.py
uamrws/bitforex-aio
0865224b175a75bc9a021c816239e4c82704904a
[ "MIT" ]
2
2022-02-07T03:03:14.000Z
2022-02-07T19:19:21.000Z
client-example/client.py
uamrws/bitforex-aio
0865224b175a75bc9a021c816239e4c82704904a
[ "MIT" ]
2
2021-11-02T11:58:14.000Z
2022-02-07T03:05:39.000Z
import asyncio import logging import os from datetime import datetime from bitforex import enums from bitforex.BitforexClient import BitforexClient from bitforex.Pair import Pair from bitforex.subscriptions import OrderBookSubscription, TradeSubscription, Ticker24hSubscription, TickerSubscription LOG = logging.getLog...
31.069307
118
0.708413
79861a462f3d128cb58fdd0ceac7fbaa0e3ac781
99
py
Python
src/pycaenhv/version.py
vasoto/pycaenhv
387da8b95182a56cf3f26bf60fc499841d3b368b
[ "MIT" ]
null
null
null
src/pycaenhv/version.py
vasoto/pycaenhv
387da8b95182a56cf3f26bf60fc499841d3b368b
[ "MIT" ]
2
2021-08-03T13:48:54.000Z
2021-08-04T16:42:38.000Z
src/pycaenhv/version.py
vasoto/pycaenhv
387da8b95182a56cf3f26bf60fc499841d3b368b
[ "MIT" ]
1
2021-06-29T13:52:23.000Z
2021-06-29T13:52:23.000Z
__version__ = '0.0.2' __libversion__ = '6.1' # Latest lib version that the package is working with
49.5
77
0.737374
79861ab914c45dad27825c16725b987af798b4fc
4,454
py
Python
main.py
qwe2508/StarGAN-Tensorflow
34597ac8573463fd1c7400664f988b213ecf3e57
[ "MIT" ]
1
2020-06-11T08:05:03.000Z
2020-06-11T08:05:03.000Z
main.py
sikeryu/StarGAN-Tensorflow
34597ac8573463fd1c7400664f988b213ecf3e57
[ "MIT" ]
null
null
null
main.py
sikeryu/StarGAN-Tensorflow
34597ac8573463fd1c7400664f988b213ecf3e57
[ "MIT" ]
null
null
null
from StarGAN import StarGAN import argparse from utils import * """parsing and configuration""" def parse_args(): desc = "Tensorflow implementation of StarGAN" parser = argparse.ArgumentParser(description=desc) parser.add_argument('--phase', type=str, default='train', help='train or test ?') parser.add...
41.626168
123
0.659856
79861ba855a772bbeaf3460e13f7185919fea7a7
3,474
py
Python
api/ver2/utils/validators.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-22T19:34:32.000Z
2019-02-22T19:34:32.000Z
api/ver2/utils/validators.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
null
null
null
api/ver2/utils/validators.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-07T22:12:25.000Z
2019-02-07T22:12:25.000Z
import datetime import re from api.ver2.utils.strings import evidence_types from api.strings import status_400 from api.ver2.utils.strings import password_1, password_2 def invalid_passwords(pass1, pass2): if not len(pass1): message = "Please Input a password for {}".format(password_1) code = stat...
25.357664
81
0.583477
79861befb2f50db667f81789ccc051aca6f5d324
17,926
py
Python
code/scanpy_gpu_funcs.py
Intron7/rapids_singlecell
1904a7709b599d60cc9a4424edc70fc160f032ff
[ "MIT" ]
1
2021-12-14T14:18:16.000Z
2021-12-14T14:18:16.000Z
code/scanpy_gpu_funcs.py
Intron7/rapids_singlecell
1904a7709b599d60cc9a4424edc70fc160f032ff
[ "MIT" ]
null
null
null
code/scanpy_gpu_funcs.py
Intron7/rapids_singlecell
1904a7709b599d60cc9a4424edc70fc160f032ff
[ "MIT" ]
2
2021-05-25T11:42:21.000Z
2021-08-05T23:40:21.000Z
# # created by Severin Dicks (IBSM, Freiburg) # # import cupy as cp import cudf import cugraph import anndata import os import numpy as np import pandas as pd import scipy import math from scipy import sparse import seaborn as sns import matplotlib.pyplot as plt from cuml.manifold import TSNE from cuml.cluster impo...
34.473077
412
0.642475
79861c1222b3eff74d5bd230525b56b946ac14f0
677
py
Python
Python/fizzbuzz_InternetRequired.py
RDxR10/Hacktoberfest-2020-FizzBuzz
c9a8e3a0ac1ff9886c013a6b5628b7f64eb0d342
[ "Unlicense" ]
80
2020-10-01T00:32:34.000Z
2021-01-08T21:56:09.000Z
Python/fizzbuzz_InternetRequired.py
RDxR10/Hacktoberfest-2020-FizzBuzz
c9a8e3a0ac1ff9886c013a6b5628b7f64eb0d342
[ "Unlicense" ]
672
2020-09-30T22:53:47.000Z
2020-11-01T12:39:59.000Z
Python/fizzbuzz_InternetRequired.py
RDxR10/Hacktoberfest-2020-FizzBuzz
c9a8e3a0ac1ff9886c013a6b5628b7f64eb0d342
[ "Unlicense" ]
618
2020-09-30T22:21:12.000Z
2020-10-31T21:28:06.000Z
import requests import re response = requests.get('https://raw.githubusercontent.com/NLDev/Hacktoberfest-2020-FizzBuzz/master/README.md').text response = re.sub('[!,*)@#%(&$_?.]', '', response).split() def fizzBuzz(): for i in range(1,101): if i%3==0 and i%5==0: getStrings('FB') elif i...
26.038462
116
0.543575
79861c8f52a2683b9a31b1a85e144923af25b8ce
5,462
py
Python
demos/democommon.py
chromia/pyspk
b13f2b4f3c651376747003761ea88590a6014eda
[ "Zlib" ]
null
null
null
demos/democommon.py
chromia/pyspk
b13f2b4f3c651376747003761ea88590a6014eda
[ "Zlib" ]
null
null
null
demos/democommon.py
chromia/pyspk
b13f2b4f3c651376747003761ea88590a6014eda
[ "Zlib" ]
null
null
null
#!/usr/bin/env python # SPARK(pyspk) Demo Common Routines script # original source code is by Julien Fryer # # //////////////////////////////////////////////////////////////////////////////// # // SPARK particle engine // # // Copyright (C) 2008-2009 - Julien...
40.161765
83
0.564811
79861c96b523c5137d9c2abbde2108ffc15ee757
3,076
py
Python
warchest/board.py
pprablanc/warchest
a109eff720f4a120edb27387b07e282123eaee0f
[ "MIT" ]
null
null
null
warchest/board.py
pprablanc/warchest
a109eff720f4a120edb27387b07e282123eaee0f
[ "MIT" ]
null
null
null
warchest/board.py
pprablanc/warchest
a109eff720f4a120edb27387b07e282123eaee0f
[ "MIT" ]
null
null
null
''' Board class ''' import logging as log import json class Board(object): def __init__(self): self.board = {} self.units_deployed = {} self.hexagons = {} self.bases = {} self.base_count = [0, 0] self._load_bases() self._load_board() def _load_bases(sel...
30.455446
94
0.56827
79861d5c7640b97a9d16f7c1fc03b44018278f68
5,688
py
Python
s3helper.py
DropFan/py-s3helper
971f1f1fa40663680a68e2024f638306666b9d42
[ "MIT" ]
2
2016-06-23T16:26:29.000Z
2016-06-24T03:26:00.000Z
s3helper.py
DropFan/py-s3helper
971f1f1fa40663680a68e2024f638306666b9d42
[ "MIT" ]
null
null
null
s3helper.py
DropFan/py-s3helper
971f1f1fa40663680a68e2024f638306666b9d42
[ "MIT" ]
null
null
null
#! /usr/bin/env python2 # -*- coding:utf-8 -*- # author: Tiger <DropFan@Gmail.com> import boto from boto.s3.key import Key class S3_helper(object): """docstring for S3_helper Attributes: aws_access_key (string): aws_access_key aws_secret_key (string): aws_secret_key region (string): ...
25.972603
76
0.52391
79861e03cacc5c7119832875ae30f6ddaccf711b
1,061
py
Python
src/add_win.py
akoul1/alfred-notion
2e05a10401ba3e1e63776a3c1520f57db07e139c
[ "MIT" ]
48
2020-02-06T03:07:27.000Z
2021-07-01T09:52:41.000Z
src/add_win.py
akoul1/alfred-notion
2e05a10401ba3e1e63776a3c1520f57db07e139c
[ "MIT" ]
null
null
null
src/add_win.py
akoul1/alfred-notion
2e05a10401ba3e1e63776a3c1520f57db07e139c
[ "MIT" ]
2
2020-11-27T04:41:11.000Z
2021-01-06T18:34:13.000Z
#!/usr/bin/env -S PATH="${PATH}:/usr/local/bin" python3 import sys import json import argparse from notion_api import notion_api from utils import app_url try: collection = notion_api.wins_database().collection parser = argparse.ArgumentParser(description='Add win') parser.add_argument('--tags', nargs=...
27.205128
88
0.64279
79861edee1dfa8c42be5acf619d3aefdcaa25dbe
1,322
py
Python
ch08/list.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2020-10-12T13:33:29.000Z
2020-10-12T13:33:29.000Z
ch08/list.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
null
null
null
ch08/list.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2016-11-09T07:28:45.000Z
2016-11-09T07:28:45.000Z
#!/usr/local/bin/python3.3 L = [1, 2, 3] print(L) print("Then length of L is %d" % len(L)) L = [1, 2, 3] + [4, 5, 6] print("Now L is %s" % L) L = ["Ni!"] * 4 print(L) L = [1, 2] L = str(L) + "34" print(L) L = [1, 2] L = L + list("34") print(L) print(3 in [1, 2, 3]) for x in [1, 2, 3]: print(x, end=" ") print(); ...
14.853933
71
0.512859
79861fedabad159bb63a13f06c15acee391c7bcb
241
py
Python
jp.atcoder/abc219/abc219_a/28329902.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc219/abc219_a/28329902.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc219/abc219_a/28329902.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import typing def main() -> typing.NoReturn: x = int(input()) if x < 40: print(40 - x) elif x < 70: print(70 - x) elif x < 90: print(90 - x) else: print('expert') main()
14.176471
31
0.431535
798620e2af7c48a390f956b854e18b47db137c8a
9,503
py
Python
tests/components/seventeentrack/test_sensor.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
2
2021-05-19T19:05:08.000Z
2021-06-06T06:51:05.000Z
tests/components/seventeentrack/test_sensor.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
56
2020-08-03T07:30:54.000Z
2022-03-31T06:02:04.000Z
tests/components/seventeentrack/test_sensor.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
2
2017-10-13T21:54:28.000Z
2018-02-24T23:48:21.000Z
"""Tests for the seventeentrack sensor.""" import datetime from typing import Union from py17track.package import Package import pytest from homeassistant.components.seventeentrack.sensor import ( CONF_SHOW_ARCHIVED, CONF_SHOW_DELIVERED, ) from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from home...
30.458333
86
0.687888
798621d85abf1c5352651a7ccda28730d851b752
360
py
Python
other/dingding/dingtalk/api/rest/OapiProcessListbyuseridRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiProcessListbyuseridRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiProcessListbyuseridRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2019.07.03 ''' from dingtalk.api.base import RestApi class OapiProcessListbyuseridRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.offset = None self.size = None self.userid = None def getHttpMethod(self): return 'POST' def getapiname(self): retu...
21.176471
46
0.747222
79862269795d3cac2531dbec7b15ee8726761ff1
1,135
py
Python
tests/python/unittest/test_init.py
axbaretto/mxnet
5f593885356ff6d14f5519fa18e79b944beb51cd
[ "Apache-2.0" ]
36
2018-02-10T07:14:27.000Z
2021-09-03T09:11:59.000Z
tests/python/unittest/test_init.py
yanghaojin/BMXNet
102f8d0ed59529bbd162c37bf07ae58ad6c4caa1
[ "Apache-2.0" ]
3
2017-07-10T21:49:18.000Z
2017-07-12T22:40:06.000Z
tests/python/unittest/test_init.py
yanghaojin/BMXNet
102f8d0ed59529bbd162c37bf07ae58ad6c4caa1
[ "Apache-2.0" ]
15
2017-09-20T15:24:53.000Z
2018-01-11T11:14:03.000Z
import mxnet as mx import numpy as np def test_default_init(): data = mx.sym.Variable('data') sym = mx.sym.LeakyReLU(data=data, act_type='prelu') mod = mx.mod.Module(sym) mod.bind(data_shapes=[('data', (10,10))]) mod.init_params() assert (list(mod.get_params()[0].values())[0].asnumpy() == 0.25)...
32.428571
74
0.631718
79862357680b82bb1448bcf7c1ceedcc29317391
941
py
Python
zerver/management/commands/send_stats.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
6
2019-05-09T20:43:20.000Z
2022-03-29T05:53:50.000Z
zerver/management/commands/send_stats.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
2
2016-10-18T04:01:56.000Z
2016-10-20T18:19:09.000Z
zerver/management/commands/send_stats.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
7
2016-08-10T02:24:32.000Z
2022-03-28T15:14:18.000Z
from argparse import ArgumentParser from typing import Any from django.conf import settings from django.core.management.base import BaseCommand class Command(BaseCommand): help = """Send some stats to statsd.""" def add_arguments(self, parser: ArgumentParser) -> None: parser.add_argument('operation'...
33.607143
81
0.605739
7986236d58c6077a11fbfd2b5ab381c8b22d395c
2,638
py
Python
pypy/module/_hpy_universal/test/test_ztranslation.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
1
2021-06-02T23:02:09.000Z
2021-06-02T23:02:09.000Z
pypy/module/_hpy_universal/test/test_ztranslation.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
1
2021-03-30T18:08:41.000Z
2021-03-30T18:08:41.000Z
pypy/module/_hpy_universal/test/test_ztranslation.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
null
null
null
import pytest from rpython.rtyper.lltypesystem import rffi, lltype from rpython.translator.c.test.test_standalone import StandaloneTests from rpython.config.translationoption import get_combined_translation_config from pypy.config.pypyoption import get_pypy_config from pypy.objspace.std.typeobject import W_TypeObject f...
43.245902
82
0.723654
798623ea596d36ab3467e82f29fb5461519b428a
5,741
py
Python
strax/processing/peak_merging.py
zhut19/strax
a9ec08003a9193113c65910602d8b1b0ed4eb4e6
[ "BSD-3-Clause" ]
17
2018-05-06T17:46:42.000Z
2021-11-16T18:20:27.000Z
strax/processing/peak_merging.py
AxFoundation/strax
621e3027cd25d705dd473ec378164f4b4c1a5c50
[ "BSD-3-Clause" ]
420
2018-05-04T13:56:34.000Z
2022-03-09T16:50:19.000Z
strax/processing/peak_merging.py
zhut19/strax
a9ec08003a9193113c65910602d8b1b0ed4eb4e6
[ "BSD-3-Clause" ]
38
2018-05-04T13:55:22.000Z
2022-01-13T17:42:13.000Z
import strax import numba import numpy as np export, __all__ = strax.exporter() @export def merge_peaks(peaks, start_merge_at, end_merge_at, max_buffer=int(1e5)): """Merge specified peaks with their neighbors, return merged peaks :param peaks: Record array of strax peak dtype. :param sta...
34.584337
98
0.612959
798624274fab4b3d946592eb8facedb31a299eae
6,843
py
Python
roles/ceph-iscsi-gw/library/igw_purge.py
astrodb/euclid-ceph-ansible
64659d2c8292ca429e1939e5a54df155a0493065
[ "Apache-2.0" ]
null
null
null
roles/ceph-iscsi-gw/library/igw_purge.py
astrodb/euclid-ceph-ansible
64659d2c8292ca429e1939e5a54df155a0493065
[ "Apache-2.0" ]
1
2019-05-14T11:21:01.000Z
2019-05-14T11:21:01.000Z
roles/ceph-iscsi-gw/library/igw_purge.py
astrodb/euclid-ceph-ansible
64659d2c8292ca429e1939e5a54df155a0493065
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python DOCUMENTATION = """ --- module: igw_purge short_description: Provide a purge capability to remove an iSCSI gateway environment description: - This module handles the removal of a gateway configuration from a ceph environment. The playbook that calls this module prompts the user for the ...
31.534562
81
0.614497
798624495cfa209a7670690c3a17c58304725197
3,856
py
Python
facebook/delphiFacebook/python/delphi_facebook/qualtrics.py
sgsmob/covidcast-indicators
424ef5fd5361c4ed7b3ed88cf31813349d35240e
[ "MIT" ]
null
null
null
facebook/delphiFacebook/python/delphi_facebook/qualtrics.py
sgsmob/covidcast-indicators
424ef5fd5361c4ed7b3ed88cf31813349d35240e
[ "MIT" ]
null
null
null
facebook/delphiFacebook/python/delphi_facebook/qualtrics.py
sgsmob/covidcast-indicators
424ef5fd5361c4ed7b3ed88cf31813349d35240e
[ "MIT" ]
null
null
null
#!/bin/python3 import requests import json from time import sleep import zipfile import io from datetime import * from dateutil import tz import sys import os from .dryrun import _make_fake_fetchers BASE_URL="https://ca1.qualtrics.com/API" TIMEZONE = "America/Los_Angeles" TZ = tz.gettz(TIMEZONE) def progress(t): ...
34.123894
124
0.573392
7986250458aefe7cb4c8eec53d6f3ba0b20d070b
5,073
py
Python
ultimate-utils-proj-src/uutils/torch_uu/models/l2l_models.py
patricks-lab/ultimate-utils
e32922d79eddba8cbe9f954a96ef2205491d8a4a
[ "MIT" ]
null
null
null
ultimate-utils-proj-src/uutils/torch_uu/models/l2l_models.py
patricks-lab/ultimate-utils
e32922d79eddba8cbe9f954a96ef2205491d8a4a
[ "MIT" ]
null
null
null
ultimate-utils-proj-src/uutils/torch_uu/models/l2l_models.py
patricks-lab/ultimate-utils
e32922d79eddba8cbe9f954a96ef2205491d8a4a
[ "MIT" ]
null
null
null
""" learn2learn examples: https://github.com/learnables/learn2learn/tree/master/examples/vision 4CNN l2l hack: - since SL needs to have 64 output units, I unfortuantely, hardcoded mdl.cls = nn.Linear(...,64). doing the setter does change the .classifier to point to the right thing (see the setter decorator, also, I as...
35.978723
131
0.670018
798625475caaa9d79433e57d212ed90855f7f6ef
368
py
Python
Web_App/files/mlp.py
amirdy/dogbreed
c607155c88ebb31e934a267e757cc71f4a73f454
[ "MIT" ]
2
2020-08-30T19:25:51.000Z
2021-09-25T17:11:42.000Z
Web_App/files/mlp.py
amirdy/dogbreed
c607155c88ebb31e934a267e757cc71f4a73f454
[ "MIT" ]
6
2021-04-10T13:15:11.000Z
2022-03-12T00:46:36.000Z
Web_App/files/mlp.py
amirdy/dog-breed-classification
42fe73bcfb9a54a0bf9f72399334b6f315062eb7
[ "MIT" ]
null
null
null
import torch import os class mlp(torch.nn.Module): def __init__(self,input_size, output_num): super(mlp,self).__init__() self.fc1=torch.nn.Linear(input_size,output_num) self.relu=torch.nn.ReLU() self.drop4= torch.nn.Dropout(p=0.8) def forward(self,x): #out=self.relu(x) out=self....
18.4
51
0.657609
798625623d3816def380ac33b90da665d75c120c
2,540
py
Python
src/search_engine/relja_retrival/v2/evaluation/tests/draw_ranked_SF.py
kaloyan13/vise2
833a8510c7cbac3cbb8ac4569fd51448906e62f3
[ "BSD-2-Clause" ]
43
2017-07-06T23:44:39.000Z
2022-03-25T06:53:29.000Z
src/search_engine/relja_retrival/v2/evaluation/tests/draw_ranked_SF.py
kaloyan13/vise2
833a8510c7cbac3cbb8ac4569fd51448906e62f3
[ "BSD-2-Clause" ]
2
2018-11-09T03:52:14.000Z
2020-03-25T14:08:33.000Z
src/search_engine/relja_retrival/v2/evaluation/tests/draw_ranked_SF.py
kaloyan13/vise2
833a8510c7cbac3cbb8ac4569fd51448906e62f3
[ "BSD-2-Clause" ]
9
2017-07-27T10:55:55.000Z
2020-12-15T13:42:43.000Z
# # ==== Author: # # Relja Arandjelovic (relja@robots.ox.ac.uk) # Visual Geometry Group, # Department of Engineering Science # University of Oxford # # ==== Copyright: # # The library belongs to Relja Arandjelovic and the University of Oxford. # No usage or redistribution is allowed without explicit permission. # imp...
30.238095
203
0.582283
798626a8216e33a109601a048613e4364de8c266
683
py
Python
mayan/apps/documents/migrations/0042_auto_20180403_0702.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2021-06-17T18:24:25.000Z
2021-06-17T18:24:25.000Z
mayan/apps/documents/migrations/0042_auto_20180403_0702.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
7
2020-06-06T00:01:04.000Z
2022-01-13T01:47:17.000Z
mayan/apps/documents/migrations/0042_auto_20180403_0702.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import unicode_literals import uuid import django.core.files.storage from django.db import migrations, models from django.utils.encoding import force_text class Migration(migrations.Migration): dependencies = [ ('documents', '0041_auto_20170823_1855'), ] operations = [ ...
25.296296
74
0.632504
7986280cdc0fe81428c2f8f4bc69209b05ce0d37
5,579
py
Python
docs/source/code_example/hl_vs_cli/cli_script.py
xenadevel/xena-open-automation-python-api
b17e512aa14eee7c51677004b4c91712005edcd0
[ "Apache-2.0" ]
1
2022-03-18T17:17:59.000Z
2022-03-18T17:17:59.000Z
docs/source/code_example/hl_vs_cli/cli_script.py
xenadevel/xena-open-automation-python-api
b17e512aa14eee7c51677004b4c91712005edcd0
[ "Apache-2.0" ]
null
null
null
docs/source/code_example/hl_vs_cli/cli_script.py
xenadevel/xena-open-automation-python-api
b17e512aa14eee7c51677004b4c91712005edcd0
[ "Apache-2.0" ]
null
null
null
# coding=UTF-8 import time, json, random, queue, types, sys, socket, math, os from binascii import hexlify from TestUtilsL23 import XenaScriptTools # Download from https://github.com/xenadevel/xenascriptlibs/tree/master/layer23/python3/testutils def runtest(xm, ports, rate, size, duration): print("Start the scripting...
37.952381
192
0.618749
798629609e7faeb6fdfd12a12eb7fa5922e525f3
2,907
py
Python
densetorch/nn/mobilenetv2.py
DrSleep/DenseTorch
f90bef075429d763fc08338dea8222d28b0a4516
[ "MIT" ]
69
2019-05-04T04:37:28.000Z
2021-12-25T13:41:04.000Z
densetorch/nn/mobilenetv2.py
DrSleep/DenseTorch
f90bef075429d763fc08338dea8222d28b0a4516
[ "MIT" ]
13
2019-09-28T06:19:00.000Z
2021-03-06T15:21:22.000Z
densetorch/nn/mobilenetv2.py
DrSleep/DenseTorch
f90bef075429d763fc08338dea8222d28b0a4516
[ "MIT" ]
9
2019-07-03T07:03:30.000Z
2021-07-16T02:05:42.000Z
import numpy as np import torch.nn as nn from .inventory import model_urls from .layer_factory import convbnrelu, InvertedResidualBlock, conv1x1 from .model_zoo import load_url from ..misc.utils import make_list __all__ = ["mobilenetv2"] class MobileNetv2(nn.Module): """MobileNet-v2 definition. More inform...
31.597826
82
0.557964
79862a3bdd4a42821fe85f476aba23a3e5f6d94d
10,174
py
Python
lib/jose/backends/rsa_backend.py
GaryFlynn/vro-jwt-python
2aa6213212ba37e39abe022c76350d08b1a8fb65
[ "MIT" ]
3
2020-08-04T20:29:41.000Z
2020-11-09T09:28:19.000Z
lib/jose/backends/rsa_backend.py
GaryFlynn/vro-jwt-python
2aa6213212ba37e39abe022c76350d08b1a8fb65
[ "MIT" ]
null
null
null
lib/jose/backends/rsa_backend.py
GaryFlynn/vro-jwt-python
2aa6213212ba37e39abe022c76350d08b1a8fb65
[ "MIT" ]
2
2021-03-16T12:41:29.000Z
2021-03-16T14:50:08.000Z
import binascii import six import warnings from pyasn1.error import PyAsn1Error import rsa as pyrsa import rsa.pem as pyrsa_pem from jose.backends.base import Key from jose.backends._asn1 import ( rsa_private_key_pkcs1_to_pkcs8, rsa_private_key_pkcs8_to_pkcs1, rsa_public_key_pkcs1_to_pkcs8, ) from jose....
37.821561
111
0.596619
79862a6444c2940871498f24add02017c4b2db18
3,097
py
Python
bcbio/bam/cram.py
rdocking/bcbio-nextgen
858c4e02dbf0b03418a51741d62f7ab2dbcc8431
[ "MIT" ]
1
2019-08-21T11:40:00.000Z
2019-08-21T11:40:00.000Z
bcbio/bam/cram.py
Bpar1/bcbio-nextgen
5e1c280d9ec9a63e1f9268ae44eb49102920d9af
[ "MIT" ]
null
null
null
bcbio/bam/cram.py
Bpar1/bcbio-nextgen
5e1c280d9ec9a63e1f9268ae44eb49102920d9af
[ "MIT" ]
null
null
null
"""Handle conversions to/from CRAM reference based compression. http://www.ebi.ac.uk/ena/about/cram_toolkit """ import os import subprocess from bcbio import bam, utils from bcbio.provenance import do from bcbio.pipeline import datadict as dd from bcbio.pipeline import config_utils from bcbio.distributed.transaction ...
41.293333
97
0.621569
79862b3919b021e17853a3dded4e2a8073088e02
2,442
py
Python
rest_framework_include_mixin/mixins.py
art1415926535/django-rest-framework-include-mixin
edc6d910512e16fdc7103ec85680424471325b75
[ "MIT" ]
null
null
null
rest_framework_include_mixin/mixins.py
art1415926535/django-rest-framework-include-mixin
edc6d910512e16fdc7103ec85680424471325b75
[ "MIT" ]
null
null
null
rest_framework_include_mixin/mixins.py
art1415926535/django-rest-framework-include-mixin
edc6d910512e16fdc7103ec85680424471325b75
[ "MIT" ]
null
null
null
# Rest Framework from rest_framework.exceptions import ValidationError class IncludeMixin(object): @staticmethod def include_fields(request): if request is None: return [] return request.GET.getlist('include[]') class SerializerIncludeMixin(IncludeMixin): @property def fi...
28.729412
78
0.585586
79862b6cf2bcfd0e73a9c43b95f6893d0f9e9ea7
686
py
Python
common/jenkins_helper.py
SigalHu/jenkins-pipeline
332e76cf53cd8d8f3d64d5cc5e60a2435961b513
[ "Apache-2.0" ]
null
null
null
common/jenkins_helper.py
SigalHu/jenkins-pipeline
332e76cf53cd8d8f3d64d5cc5e60a2435961b513
[ "Apache-2.0" ]
null
null
null
common/jenkins_helper.py
SigalHu/jenkins-pipeline
332e76cf53cd8d8f3d64d5cc5e60a2435961b513
[ "Apache-2.0" ]
null
null
null
# encoding=utf-8 """ @author huxujun @date 2019-05-24 """ import os def get_build_dir() -> str: build_dir = os.path.join(os.getenv('JENKINS_HOME'), 'jobs', os.getenv('JOB_NAME').replace('/', '/branches/'), 'builds', os.getenv('BUILD_NUMBER')) if not os...
25.407407
113
0.607872
79862c46febd54c9058788fc9e2b7c594bb91a05
292
py
Python
My/test3.py
wxxmy/ItChat-xinwen
6da2138d6bd611cdb7a4781e78d9d45876a66f86
[ "MIT" ]
null
null
null
My/test3.py
wxxmy/ItChat-xinwen
6da2138d6bd611cdb7a4781e78d9d45876a66f86
[ "MIT" ]
null
null
null
My/test3.py
wxxmy/ItChat-xinwen
6da2138d6bd611cdb7a4781e78d9d45876a66f86
[ "MIT" ]
null
null
null
# coding-utf-8 import itchat itchat.auto_login(hotReload=True) friends = itchat.get_friends('Scrapy') chatroom = itchat.get_chatrooms() print(friends) print(chatroom) #'Uin': 1855486016 itchat.send('你好xmyasdf',toUserName='@535d9f708c3cc4b39639545bd293388ae11d5b64ba2a6691e20b6b3b25110e7c')
24.333333
103
0.818493
79862c4b09d0064e31ed647576ef98c49f63014c
490
py
Python
Desafios/Desafio 011 (Pintando parede).py
Kimberly07-Ernane/Pythondesafios
d5bdf9ad412f73c66d0fda558740923925a78a7b
[ "MIT" ]
null
null
null
Desafios/Desafio 011 (Pintando parede).py
Kimberly07-Ernane/Pythondesafios
d5bdf9ad412f73c66d0fda558740923925a78a7b
[ "MIT" ]
null
null
null
Desafios/Desafio 011 (Pintando parede).py
Kimberly07-Ernane/Pythondesafios
d5bdf9ad412f73c66d0fda558740923925a78a7b
[ "MIT" ]
null
null
null
#Desafio11 #Faça um programa que leia a largura e a altura de uma parede #em metros , calcule a sua área e a quantidade de tinta necessária #para pintá-la, sabendo que cada litro de tinta, pinta uma área de 2m². larg=float(input('Largura da aparede: ')) alt=float(input('Alutra da parede: ')) area = larg*alt print('Su...
40.833333
84
0.728571
79862c927a460df035b3d7ad061b71c5d4378d1a
24,532
py
Python
python/GafferArnoldUI/ArnoldOptionsUI.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
python/GafferArnoldUI/ArnoldOptionsUI.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
python/GafferArnoldUI/ArnoldOptionsUI.py
sebaDesmet/gaffer
47b2d093c40452bd77947e3b5bd0722a366c8d59
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2012, John Haddon. All rights reserved. # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that ...
23.957031
183
0.650946
79862d12100fb44e819c86d19421b08810e5cf57
367
py
Python
setup.py
wessle/costaware
151502308411528eaa703d353d138fc809e59d8e
[ "MIT" ]
null
null
null
setup.py
wessle/costaware
151502308411528eaa703d353d138fc809e59d8e
[ "MIT" ]
null
null
null
setup.py
wessle/costaware
151502308411528eaa703d353d138fc809e59d8e
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='costaware', version='0.1', packages=find_packages(), python_requires='>=3.6', install_requires=[ 'matplotlib', 'pandas', 'seaborn', 'ray', 'numpy', 'torch', 'pyyaml', 'gym', ...
17.47619
43
0.490463
798630cac2474ae1702554ded16872ac17768b4a
392
py
Python
urlschecker/migrations/0002_auto_20200911_1628.py
nitinraturi/url_status_checker
561a8b13517b85ebf611b1fb79c0eea1c47db66c
[ "MIT" ]
null
null
null
urlschecker/migrations/0002_auto_20200911_1628.py
nitinraturi/url_status_checker
561a8b13517b85ebf611b1fb79c0eea1c47db66c
[ "MIT" ]
null
null
null
urlschecker/migrations/0002_auto_20200911_1628.py
nitinraturi/url_status_checker
561a8b13517b85ebf611b1fb79c0eea1c47db66c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-11 16:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('urlschecker', '0001_initial'), ] operations = [ migrations.AlterField( model_name='url', name='status_code', ...
20.631579
61
0.596939
798630e71500a3030e04c69cdf028f65c9a1f63f
229
py
Python
couch/cython/read/setup.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
3
2015-05-12T16:44:27.000Z
2021-02-09T00:39:24.000Z
couch/cython/read/setup.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
null
null
null
couch/cython/read/setup.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
null
null
null
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext setup( cmdclass = {'build_ext': build_ext}, ext_modules = [Extension("couch_read", ["couch_read.pyx"])] )
25.444444
63
0.755459
798631b0c78da0618797fc70574d5bbff1e008b2
4,041
py
Python
source/deepsecurity/models/update_suspicious_objects_list_task_parameters.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-10-30T16:40:09.000Z
2021-10-30T16:40:09.000Z
source/deepsecurity/models/update_suspicious_objects_list_task_parameters.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-07-28T20:19:03.000Z
2021-07-28T20:19:03.000Z
source/deepsecurity/models/update_suspicious_objects_list_task_parameters.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-10-30T16:40:02.000Z
2021-10-30T16:40:02.000Z
# coding: utf-8 """ Trend Micro Deep Security API Copyright 2018 - 2020 Trend Micro Incorporated.<br/>Get protected, stay secured, and keep informed with Trend Micro Deep Security's new RESTful API. Access system data and manage security configurations to automate your security workflows and integrate De...
33.396694
311
0.606286
79863264cc382dce2baf9220cb0fb62bd7831402
8,907
py
Python
tests/test_ignore.py
cbenhagen/mhl
679942fc87b47e095fc1e2734901cb1cd405f75c
[ "MIT" ]
null
null
null
tests/test_ignore.py
cbenhagen/mhl
679942fc87b47e095fc1e2734901cb1cd405f75c
[ "MIT" ]
null
null
null
tests/test_ignore.py
cbenhagen/mhl
679942fc87b47e095fc1e2734901cb1cd405f75c
[ "MIT" ]
null
null
null
""" __author__ = "Jon Waggoner" __copyright__ = "Copyright 2020, Pomfort GmbH" __license__ = "MIT" __maintainer__ = "Patrick Renner, Alexander Sahm" __email__ = "opensource@pomfort.com" """ import os import pytest import shutil from click.testing import CliRunner from lxml import etree from testfixtures import TempDir...
40.671233
119
0.700011
7986340a232ef3cc57e1dd56366a33b1366683ea
578
py
Python
pluralru/pluralru.py
Blazzerrr/plural
20d726ae78037ebabc908fd50f437f6ad1a4fd52
[ "MIT" ]
1
2020-06-17T15:05:34.000Z
2020-06-17T15:05:34.000Z
pluralru/pluralru.py
Blazzerrr/plural
20d726ae78037ebabc908fd50f437f6ad1a4fd52
[ "MIT" ]
null
null
null
pluralru/pluralru.py
Blazzerrr/plural
20d726ae78037ebabc908fd50f437f6ad1a4fd52
[ "MIT" ]
null
null
null
class Plural: def __init__(self, firstValue, secondValue, thirdValue): self.firstValue = firstValue self.secondValue = secondValue self.thirdValue = thirdValue def plural_result(self, n): values = [self.firstValue, self.secondValue, self.thirdValue] n = float(n) ...
27.52381
69
0.49481
7986361806ba2db5fea467eb729527a0ca1481ec
1,402
py
Python
sdk/media/azure-mgmt-media/azure/mgmt/media/models/output_file_py3.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/media/azure-mgmt-media/azure/mgmt/media/models/output_file_py3.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-media/azure/mgmt/media/models/output_file_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
35.05
79
0.613409
798636bf1a9aa2e72ed6669834da49d90438feb6
525
py
Python
nicelka/exceptions/exceptions.py
konrad-kocik/nicelka
a174fce9b8c6d4414312120e89e10bb1e10629df
[ "MIT" ]
null
null
null
nicelka/exceptions/exceptions.py
konrad-kocik/nicelka
a174fce9b8c6d4414312120e89e10bb1e10629df
[ "MIT" ]
null
null
null
nicelka/exceptions/exceptions.py
konrad-kocik/nicelka
a174fce9b8c6d4414312120e89e10bb1e10629df
[ "MIT" ]
null
null
null
class NicelkaException(Exception): pass class EngineException(NicelkaException): pass class WebPageException(EngineException): pass class GooglePageException(WebPageException): pass class KrkgwPageException(WebPageException): pass class MapPageException(WebPageException): pass class ...
13.461538
44
0.775238
798636db280be3f393d7a5a0372220123aebd63e
257
py
Python
entity_resolution/__init__.py
Orbifold/entity-resolution
781bc0b8b7ed6553eba8e029f6d77ee94c4b9e52
[ "MIT" ]
null
null
null
entity_resolution/__init__.py
Orbifold/entity-resolution
781bc0b8b7ed6553eba8e029f6d77ee94c4b9e52
[ "MIT" ]
null
null
null
entity_resolution/__init__.py
Orbifold/entity-resolution
781bc0b8b7ed6553eba8e029f6d77ee94c4b9e52
[ "MIT" ]
null
null
null
__author__ = """Francois Vanderseypen""" __email__ = 'swa@orbifold.net' __version__ = '1.3.0' from .data import * from .visualization import draw from .inference import infer_identity_edges, infer_jaccard_identity, infer_identities from .solutions import *
32.125
85
0.793774
798636ef90e4abe8bd4d3b790007c738913b6ddd
9,607
py
Python
products/pytorch-hyperlight/pytorch_hyperlight/tasks/classification.py
pgagarinov/pytorch-hyperlight
dd0e291b4ebe0cb1538ac39d7f2046f9ec0fd3a1
[ "Apache-2.0" ]
10
2020-12-20T15:44:06.000Z
2021-09-30T05:41:45.000Z
products/pytorch-hyperlight/pytorch_hyperlight/tasks/classification.py
pgagarinov/pytorch-hyperlight
dd0e291b4ebe0cb1538ac39d7f2046f9ec0fd3a1
[ "Apache-2.0" ]
6
2021-01-21T12:34:39.000Z
2021-03-21T21:40:32.000Z
products/pytorch-hyperlight/pytorch_hyperlight/tasks/classification.py
pgagarinov/pytorch-hyperlight
dd0e291b4ebe0cb1538ac39d7f2046f9ec0fd3a1
[ "Apache-2.0" ]
null
null
null
# Copyright Peter Gagarinov. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.590909
87
0.647757
79863712b740dff8c6cd666ae11ac294d4d51bf0
3,663
py
Python
cinder/tests/test_iser.py
jiyeonjoo/cdms-cinder
d79b282159a75f57c04801648b981d924f453fdd
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_iser.py
jiyeonjoo/cdms-cinder
d79b282159a75f57c04801648b981d924f453fdd
[ "Apache-2.0" ]
null
null
null
cinder/tests/test_iser.py
jiyeonjoo/cdms-cinder
d79b282159a75f57c04801648b981d924f453fdd
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2013 Mellanox Technologies. 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.a...
31.042373
78
0.626809
798637be871389748f30a7a91d907c86601d0900
2,438
py
Python
Data Analyst in Python/Step 1 - Introduction to Python/1. Python for Data Science Fundamentals/7. Functions Intermediate.py
MyArist/Dataquest
d0ee0a2a5e9d1f69f09bf0f6c32f382b6fa46b18
[ "MIT" ]
8
2020-07-27T12:04:54.000Z
2021-03-01T04:39:33.000Z
Data Scientist In Python/Step 1 - Python Introduction/1. Python for Data Science Fundamentals/7. Functions Intermediate.py
myarist/Dataquest
d0ee0a2a5e9d1f69f09bf0f6c32f382b6fa46b18
[ "MIT" ]
null
null
null
Data Scientist In Python/Step 1 - Python Introduction/1. Python for Data Science Fundamentals/7. Functions Intermediate.py
myarist/Dataquest
d0ee0a2a5e9d1f69f09bf0f6c32f382b6fa46b18
[ "MIT" ]
15
2021-03-30T06:45:19.000Z
2022-03-17T03:55:02.000Z
## 1. Interfering with the Built-in Functions ## a_list = [1, 8, 10, 9, 7] print(max(a_list)) def max(a_list): return "No max value returned" max_val_test_0 = max(a_list) print(max_val_test_0) del max ## 3. Default Arguments ## # INITIAL CODE def open_dataset(file_name): opened_file = open(file_name) ...
22.785047
66
0.664479
798639b6eeee65efd737dfab59cb46fe37abb424
5,288
py
Python
src/python/unittests/write-flush.py
saugeorg/kosmosfs
d7002141b9a89c0bcba6bd10854fa4f0364766f6
[ "Apache-2.0" ]
2
2015-10-03T16:05:43.000Z
2018-03-06T15:14:20.000Z
src/python/unittests/write-flush.py
saugeorg/kosmosfs
d7002141b9a89c0bcba6bd10854fa4f0364766f6
[ "Apache-2.0" ]
null
null
null
src/python/unittests/write-flush.py
saugeorg/kosmosfs
d7002141b9a89c0bcba6bd10854fa4f0364766f6
[ "Apache-2.0" ]
4
2015-08-30T11:02:56.000Z
2019-05-28T14:27:25.000Z
#!/usr/bin/env python # # $Id$ # # Created 2008/07/28 # # Copyright 2008 Quantcast Corporation. # # Author: Sriram Rao (Quantcast Corp.) # # This file is part of Kosmos File System (KFS). # # Licensed under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the Lice...
32.441718
80
0.636157
798639f712ee8273b6105b8b58dc33f61df76036
5,067
py
Python
build/lib/astro_ghost/NEDQueryFunctions.py
awe2/astro_ghost
c3ec86594a621633ec5f0fb1b364458cc98aefcf
[ "MIT" ]
null
null
null
build/lib/astro_ghost/NEDQueryFunctions.py
awe2/astro_ghost
c3ec86594a621633ec5f0fb1b364458cc98aefcf
[ "MIT" ]
null
null
null
build/lib/astro_ghost/NEDQueryFunctions.py
awe2/astro_ghost
c3ec86594a621633ec5f0fb1b364458cc98aefcf
[ "MIT" ]
null
null
null
import matplotlib from astropy import units as u from astropy.coordinates import SkyCoord from astroquery.ned import Ned import re import os import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from astro_ghost.PS1QueryFunctions import find_all def getNEDSpectra(df, path, verbos...
41.876033
198
0.531478
79863ac19bc7fb1251053b0cbe9c77b0422698ee
27,907
py
Python
google/cloud/dialogflowcx_v3beta1/types/page.py
galz10/python-dialogflow-cx
e24bdfd499952199dfbdaa5634061653da8ae1db
[ "Apache-2.0" ]
null
null
null
google/cloud/dialogflowcx_v3beta1/types/page.py
galz10/python-dialogflow-cx
e24bdfd499952199dfbdaa5634061653da8ae1db
[ "Apache-2.0" ]
null
null
null
google/cloud/dialogflowcx_v3beta1/types/page.py
galz10/python-dialogflow-cx
e24bdfd499952199dfbdaa5634061653da8ae1db
[ "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.938808
153
0.647078
79863b42d6f58ef8d0d493b1c507fce3a430d73a
17,481
py
Python
tests/query/v1/test_set.py
nevermore3/nebula-graph
6f24438289c2b20575bc6acdf607cd2a3648d30d
[ "Apache-2.0" ]
null
null
null
tests/query/v1/test_set.py
nevermore3/nebula-graph
6f24438289c2b20575bc6acdf607cd2a3648d30d
[ "Apache-2.0" ]
null
null
null
tests/query/v1/test_set.py
nevermore3/nebula-graph
6f24438289c2b20575bc6acdf607cd2a3648d30d
[ "Apache-2.0" ]
null
null
null
# --coding:utf-8-- # # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, # attached with Common Clause Condition 1.0, found in the LICENSES directory. from nebula2.graph import ttypes from tests.common.nebula_test_suite import NebulaTestSuite class TestSe...
52.495495
112
0.591557
79863c17ba4fd93750fe9ad1b0f112fb11f015e9
3,385
py
Python
VGG16_TL/VGG16_dogs-vs-cats.py
WajeehAhmed/Deep-Learning
4e21dd88c3dcd39e9e2cea8705814cc765ef2148
[ "MIT" ]
null
null
null
VGG16_TL/VGG16_dogs-vs-cats.py
WajeehAhmed/Deep-Learning
4e21dd88c3dcd39e9e2cea8705814cc765ef2148
[ "MIT" ]
6
2020-09-24T09:13:49.000Z
2020-09-24T10:21:32.000Z
VGG16_TL/VGG16_dogs-vs-cats.py
WajeehAhmed/Deep-Learning
4e21dd88c3dcd39e9e2cea8705814cc765ef2148
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Activation, Dense, Flatten,BatchNormalization,Conv2D,MaxPool2D from tensorflow.keras.optimizers import Adam from tensorflow.keras.metrics import categorical_crossen...
41.280488
217
0.727031
79863c95bfed5a498f4e67b0ef9aa4187df87d23
927
py
Python
scripts/remove_old_terms.py
SuLab/WikiGenomesBase
ad18eca6e298423fe662030829d87a5fb8c51445
[ "MIT" ]
4
2018-09-12T20:17:31.000Z
2020-09-21T19:09:59.000Z
scripts/remove_old_terms.py
sabahzero/WikiGenomesBase
ad18eca6e298423fe662030829d87a5fb8c51445
[ "MIT" ]
112
2017-06-19T20:00:14.000Z
2018-07-27T17:09:06.000Z
scripts/remove_old_terms.py
putmantime/wikigenomes2
ad18eca6e298423fe662030829d87a5fb8c51445
[ "MIT" ]
2
2017-09-11T17:13:51.000Z
2018-05-02T22:38:08.000Z
import WD_Utils from wikidataintegrator import wdi_core, wdi_login import json import getpass username = input("Username: ") password = getpass.getpass("Password: ") login = wdi_login.WDLogin(user=username, pwd=password) map = { "Q2996394": "P682", "Q5058355": "P681", "Q14860489": "P680" } sparql = WD_U...
25.054054
66
0.668824
79863cc61ed5feafd292e99aaff0fd979af7c41e
1,237
py
Python
src/arago/hiro/model/storage.py
166MMX/hiro-python-library
fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5
[ "MIT" ]
null
null
null
src/arago/hiro/model/storage.py
166MMX/hiro-python-library
fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5
[ "MIT" ]
null
null
null
src/arago/hiro/model/storage.py
166MMX/hiro-python-library
fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5
[ "MIT" ]
null
null
null
from datetime import datetime from typing import NamedTuple, Optional, Union, TypeVar from arago.hiro.model.graph.vertex import VertexId, Vertex class BlobId(VertexId): pass BLOB_ID_T_co = TypeVar('BLOB_ID_T_co', bound=BlobId, covariant=True) BLOB_ID_T = Union[ BLOB_ID_T_co, str ] class TimeSeriesId(...
18.742424
100
0.738076
79863d3613c9e826d74a5f3d8a768ebaf092ae1b
5,443
py
Python
gpdb/contrib/postgis/raster/scripts/python/rtrowdump.py
vitessedata/gpdb.4.3.99.x
9462aad5df1bf120a2a87456b1f9574712227da4
[ "PostgreSQL", "Apache-2.0" ]
3
2017-12-10T16:41:21.000Z
2020-07-08T12:59:12.000Z
gpdb/contrib/postgis/raster/scripts/python/rtrowdump.py
vitessedata/gpdb.4.3.99.x
9462aad5df1bf120a2a87456b1f9574712227da4
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpdb/contrib/postgis/raster/scripts/python/rtrowdump.py
vitessedata/gpdb.4.3.99.x
9462aad5df1bf120a2a87456b1f9574712227da4
[ "PostgreSQL", "Apache-2.0" ]
4
2017-12-10T16:41:35.000Z
2020-11-28T12:20:30.000Z
#! /usr/bin/env python # # $Id$ # # Brute-force dump of single row from WKT Raster table as GeoTIFF. # This utility is handy for debugging purposes. # # WARNING: Tha main purpose of this program is to test and # debug WKT Raster implementation. It is NOT supposed to be an # efficient performance killer, by no means. # ...
39.729927
130
0.615469
79863d7e6a537836bff17a6b1d034940fd9ad849
11,728
py
Python
itemadapter/adapter.py
elacuesta/scrapy-itemadapter
927ee25399cbc0d64dab5596e1fb6b9c740c8b0d
[ "BSD-3-Clause" ]
null
null
null
itemadapter/adapter.py
elacuesta/scrapy-itemadapter
927ee25399cbc0d64dab5596e1fb6b9c740c8b0d
[ "BSD-3-Clause" ]
1
2020-04-22T02:10:47.000Z
2020-04-22T11:55:23.000Z
itemadapter/adapter.py
elacuesta/scrapy-itemadapter
927ee25399cbc0d64dab5596e1fb6b9c740c8b0d
[ "BSD-3-Clause" ]
null
null
null
from abc import abstractmethod, ABCMeta from collections import deque from collections.abc import KeysView, MutableMapping from types import MappingProxyType from typing import Any, Deque, Iterator, Type from itemadapter.utils import ( _get_pydantic_model_metadata, _is_attrs_class, _is_dataclass, _is_p...
34.292398
98
0.666098
79863e30630ed6b5fb3395c8b431e4197d4a26ec
9,512
py
Python
src/lib/gdata/apps/audit/service.py
Eforcers/inbox-cleaner
bbb516606cff4142ef355691d137e9ac4d2192e3
[ "BSD-2-Clause", "MIT", "MIT-0", "CC-BY-3.0", "BSD-3-Clause" ]
1
2016-01-22T08:21:15.000Z
2016-01-22T08:21:15.000Z
src/lib/gdata/apps/audit/service.py
Eforcers/inbox-cleaner
bbb516606cff4142ef355691d137e9ac4d2192e3
[ "BSD-2-Clause", "MIT", "MIT-0", "CC-BY-3.0", "BSD-3-Clause" ]
null
null
null
src/lib/gdata/apps/audit/service.py
Eforcers/inbox-cleaner
bbb516606cff4142ef355691d137e9ac4d2192e3
[ "BSD-2-Clause", "MIT", "MIT-0", "CC-BY-3.0", "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2008 Google, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
33.971429
139
0.69344
79863ebace83c94d47bf2c773094b4b66eb7ee62
57,019
py
Python
scripts/build_db_create_ignf_from_xml.py
fangyuzhong2016/proj.4
637bd2f449c4980ada35e19eab5d6574f0b212a4
[ "MIT" ]
null
null
null
scripts/build_db_create_ignf_from_xml.py
fangyuzhong2016/proj.4
637bd2f449c4980ada35e19eab5d6574f0b212a4
[ "MIT" ]
null
null
null
scripts/build_db_create_ignf_from_xml.py
fangyuzhong2016/proj.4
637bd2f449c4980ada35e19eab5d6574f0b212a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: PROJ # Purpose: Build SRS and coordinate transform database from IGNF registry # Author: Even Rouault <even.rouault at spatialys.com> # #######################################################...
49.711421
619
0.624687
79863f9414bae3fc05c23ba0c5f2ae7f42967c7a
404
py
Python
testproject/testproject/wsgi_no_channels.py
motius/channels
f46ed6ec9865c5e995d4e4de1dee4b097b855ee3
[ "BSD-3-Clause" ]
3
2019-02-07T09:43:03.000Z
2020-01-18T08:44:47.000Z
testproject/testproject/wsgi_no_channels.py
motius/channels
f46ed6ec9865c5e995d4e4de1dee4b097b855ee3
[ "BSD-3-Clause" ]
1
2022-02-11T03:46:32.000Z
2022-02-11T03:46:32.000Z
testproject/testproject/wsgi_no_channels.py
zsjohny/channels
6d71106c3c6a8924f75e5058cd6c54e765af3b94
[ "BSD-3-Clause" ]
1
2022-03-04T22:00:32.000Z
2022-03-04T22:00:32.000Z
""" WSGI config for testproject project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
23.764706
78
0.792079
7986408fba74fdbda1daf3083beee5142380b082
21,459
py
Python
docs/gdscript-docs-maker/src/gdscript_docs_maker/gdscript/gdscript_class.py
3ddelano/mongo-driver-godot
3afb693df19f103d7146f7944d6dfaf0b0a0148b
[ "MIT" ]
6
2022-03-09T17:13:18.000Z
2022-03-21T13:18:05.000Z
docs/gdscript-docs-maker/src/gdscript_docs_maker/gdscript/gdscript_class.py
3ddelano/mongo-driver-godot
3afb693df19f103d7146f7944d6dfaf0b0a0148b
[ "MIT" ]
null
null
null
docs/gdscript-docs-maker/src/gdscript_docs_maker/gdscript/gdscript_class.py
3ddelano/mongo-driver-godot
3afb693df19f103d7146f7944d6dfaf0b0a0148b
[ "MIT" ]
1
2022-03-09T19:36:50.000Z
2022-03-09T19:36:50.000Z
from dataclasses import dataclass from typing import List from operator import itemgetter from .element import Element from .function import Function from .constant import Constant from .signal import Signal from .member import Member from .enumeration import Enumeration @dataclass class GDScriptClass(Element): ...
24.412969
87
0.637308
79864094be7130ddbf67fdb440fcfb538c272502
12,245
py
Python
rookie/mysite/runtest.py
chen1932390299/drf-backend-platform
80c2fb56c5c3c1456196d2415e3173600d190457
[ "Apache-2.0" ]
1
2021-07-02T09:05:51.000Z
2021-07-02T09:05:51.000Z
rookie/mysite/runtest.py
chen1932390299/drf-backend-platform
80c2fb56c5c3c1456196d2415e3173600d190457
[ "Apache-2.0" ]
null
null
null
rookie/mysite/runtest.py
chen1932390299/drf-backend-platform
80c2fb56c5c3c1456196d2415e3173600d190457
[ "Apache-2.0" ]
null
null
null
import requests import urllib3 import json from .models import TestSuite, TestCase, VariablesGlobal,TaskExcuteRecord,RunSuiteRecord from .serializers import SerialTestSuite, SerializerTestCase,TaskExcuteSerializer,RunTestSuiteSerializer from .request_util import RequestUtil from django.forms.models import model_to_dict...
38.75
107
0.578685
79864095b512114abc6cee738b6b4c19f5644187
4,210
py
Python
tests/test_ext_viewcode.py
jessetan/sphinx
4cae0ecf8641551028b1a54168e49d52cb6bc7f3
[ "BSD-2-Clause" ]
1
2021-04-10T18:14:50.000Z
2021-04-10T18:14:50.000Z
tests/test_ext_viewcode.py
jezdez/sphinx
2d53b7cd6638a579fea23186762b1a561dadeb14
[ "BSD-2-Clause" ]
null
null
null
tests/test_ext_viewcode.py
jezdez/sphinx
2d53b7cd6638a579fea23186762b1a561dadeb14
[ "BSD-2-Clause" ]
null
null
null
""" test_ext_viewcode ~~~~~~~~~~~~~~~~~ Test sphinx.ext.viewcode extension. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import pytest @pytest.mark.sphinx(testroot='ext-viewcode') def test_viewcode(app, status, warning):...
40.095238
118
0.615202
798640b69dbf59efd26b6ce1cddd932b6f26e2c4
3,268
py
Python
app502/template_project/template_project/settings.py
facusato/ModulosSoap
249af3c992c9f1fe16e6ce0859e59526aff004ab
[ "Apache-2.0" ]
null
null
null
app502/template_project/template_project/settings.py
facusato/ModulosSoap
249af3c992c9f1fe16e6ce0859e59526aff004ab
[ "Apache-2.0" ]
null
null
null
app502/template_project/template_project/settings.py
facusato/ModulosSoap
249af3c992c9f1fe16e6ce0859e59526aff004ab
[ "Apache-2.0" ]
null
null
null
""" Django settings for template_project project. Generated by 'django-admin startproject' using Django 3.1.7. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ fro...
25.333333
91
0.69645
798641fd0b4ffcd7806397acd56b81899703ff68
8,507
py
Python
testcuda.py
sihwa-park/DCNv2
51d18873ed1b5ee8cc71f316a63ec1ca7bd67aea
[ "BSD-3-Clause" ]
1
2022-02-06T05:11:24.000Z
2022-02-06T05:11:24.000Z
testcuda.py
sihwa-park/DCNv2
51d18873ed1b5ee8cc71f316a63ec1ca7bd67aea
[ "BSD-3-Clause" ]
null
null
null
testcuda.py
sihwa-park/DCNv2
51d18873ed1b5ee8cc71f316a63ec1ca7bd67aea
[ "BSD-3-Clause" ]
1
2022-02-06T05:11:26.000Z
2022-02-06T05:11:26.000Z
#!/usr/bin/env python3 from __future__ import absolute_import from __future__ import print_function from __future__ import division import time import torch import torch.nn as nn from torch.autograd import gradcheck from dcn_v2 import dcn_v2_conv, DCNv2, DCN from dcn_v2 import dcn_v2_pooling, DCNv2Pooling, DCNPooling...
31.391144
81
0.523216
7986426834d098ed50c7fa19519afb20609e1641
650
py
Python
src/sphinxcontrib/towncrier/_towncrier.py
s0undt3ch/sphinxcontrib-towncrier
620bdb97e2de38757654c188063c5c238cddaf19
[ "BSD-3-Clause" ]
8
2020-08-10T23:08:56.000Z
2021-06-21T23:06:33.000Z
src/sphinxcontrib/towncrier/_towncrier.py
s0undt3ch/sphinxcontrib-towncrier
620bdb97e2de38757654c188063c5c238cddaf19
[ "BSD-3-Clause" ]
33
2020-08-05T21:08:54.000Z
2022-02-11T15:25:48.000Z
src/sphinxcontrib/towncrier/_towncrier.py
s0undt3ch/sphinxcontrib-towncrier
620bdb97e2de38757654c188063c5c238cddaf19
[ "BSD-3-Clause" ]
10
2020-08-06T07:18:26.000Z
2021-04-13T04:54:49.000Z
"""Towncrier related shims.""" from pathlib import Path from typing import Any, Dict # pylint: disable=import-error,no-name-in-module from towncrier._settings import load_config_from_file # noqa: WPS436 def get_towncrier_config( project_path: Path, final_config_path: Path, ) -> Dict[str, Any]: # F...
30.952381
79
0.701538
7986432d69b45732af3a64227f15b73b92c7b578
8,499
py
Python
sdk/python/pulumi_aws/codecommit/trigger.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/codecommit/trigger.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/codecommit/trigger.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
40.471429
134
0.637369
798643a6533231318e98e3a503894f9bc61386a4
6,259
py
Python
RankSystem.py
SeaWakeYT/SeaWake-Bot-FIXED-
995d8a9ad9a045d42aca8fec78e04946f442db32
[ "MIT" ]
null
null
null
RankSystem.py
SeaWakeYT/SeaWake-Bot-FIXED-
995d8a9ad9a045d42aca8fec78e04946f442db32
[ "MIT" ]
null
null
null
RankSystem.py
SeaWakeYT/SeaWake-Bot-FIXED-
995d8a9ad9a045d42aca8fec78e04946f442db32
[ "MIT" ]
null
null
null
import DatabaseConfig import datetime import math import discord from bson import ObjectId import BotConfig client = BotConfig.bot def GetNextLevelUp(level): return math.floor(((level/1.5)*(level/1.5)*(level/1.5))+150) def CheckIfExisting(user): exists = 0 try: now = datetime.datetime.now() doc = {"u...
31.933673
125
0.655696
798645b461de7dd0b0a40bceb94a10b13433fa77
12,347
py
Python
sphinx/util/docfields.py
xuhdev/sphinx
fadec6e7192a8a9849c1c6f0670a489e7c3806da
[ "BSD-2-Clause" ]
1
2020-07-10T03:38:08.000Z
2020-07-10T03:38:08.000Z
sphinx/util/docfields.py
xuhdev/sphinx
fadec6e7192a8a9849c1c6f0670a489e7c3806da
[ "BSD-2-Clause" ]
null
null
null
sphinx/util/docfields.py
xuhdev/sphinx
fadec6e7192a8a9849c1c6f0670a489e7c3806da
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinx.util.docfields ~~~~~~~~~~~~~~~~~~~~~ "Doc fields" are reST field lists in object descriptions that will be domain-specifically transformed to a more appealing presentation. :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. :license: BSD, see LI...
39.321656
83
0.583057
798646324b43ee92493016d92a3a3fd360b9b317
1,423
py
Python
piechart.py
manavnanwani/trackerdesktop
f50f35e929d322914fe3a7dea13ce94ced41f37f
[ "MIT" ]
1
2021-08-19T14:51:17.000Z
2021-08-19T14:51:17.000Z
piechart.py
manavnanwani/trackerdesktop
f50f35e929d322914fe3a7dea13ce94ced41f37f
[ "MIT" ]
null
null
null
piechart.py
manavnanwani/trackerdesktop
f50f35e929d322914fe3a7dea13ce94ced41f37f
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QApplication, QMainWindow import sys from PyQt5.QtChart import QChart, QChartView, QPieSeries, QPieSlice from PyQt5.QtGui import QPainter, QPen from PyQt5.QtCore import Qt class Window(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("PyQtChart Pi...
29.645833
67
0.6409
79864896d791be08e18d6fe7451c36c6923ab8b1
534
py
Python
python/echoc.py
Ericsson/xcm
d66ed58e7ec8d15581f3ba2eb125e29dabf164ff
[ "BSD-3-Clause" ]
24
2020-07-16T17:40:33.000Z
2022-03-13T16:14:56.000Z
python/echoc.py
abiaog/xcm
e4f3c67b871f374497f53118cbd2355e6184f34d
[ "BSD-3-Clause" ]
58
2020-06-22T11:46:12.000Z
2022-03-21T10:08:37.000Z
python/echoc.py
abiaog/xcm
e4f3c67b871f374497f53118cbd2355e6184f34d
[ "BSD-3-Clause" ]
1
2021-04-07T02:28:02.000Z
2021-04-07T02:28:02.000Z
#!/usr/bin/python3 import xcm import sys if len(sys.argv) == 3: raddr = sys.argv[1] msg = sys.argv[2] n = 1 elif len(sys.argv) == 4: raddr = sys.argv[1] msg = sys.argv[2] n = int(sys.argv[3]) if n < 1: print("Number of iterations needs to be > 0") sys.exit(1) else: prin...
19.071429
64
0.561798
798648b8526f7a3520e1412b8abdf0aeee932a02
1,154
py
Python
packages/micropython-official/v1.11/esp8266/stubs/builtins.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
18
2019-07-11T13:31:09.000Z
2022-01-27T06:38:40.000Z
packages/micropython-official/v1.11/esp8266/stubs/builtins.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
9
2019-09-01T21:44:49.000Z
2022-02-04T20:55:08.000Z
packages/micropython-official/v1.11/esp8266/stubs/builtins.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
6
2019-10-08T05:31:21.000Z
2021-04-22T10:21:01.000Z
""" Module: 'builtins' on esp8266 v1.11 """ # MCU: (sysname='esp8266', nodename='esp8266', release='2.2.0-dev(9422289)', version='v1.11-8-g48dcbbe60 on 2019-05-29', machine='ESP module with ESP8266') # Stubber: 1.2.0 class ArithmeticError: '' class AssertionError: '' class AttributeError: '' class BaseE...
10.587156
155
0.612652
79864a33a488b699bdbf18de630c3e4de40d7d24
3,437
py
Python
tests/conftest.py
gdherbert/arcutils
84b1f86d8a6a55788e06afc31b1642baf07604be
[ "MIT" ]
6
2018-01-13T18:02:34.000Z
2018-09-15T01:58:52.000Z
tests/conftest.py
gdherbert/arcutils
84b1f86d8a6a55788e06afc31b1642baf07604be
[ "MIT" ]
1
2018-03-05T02:34:37.000Z
2021-06-26T01:38:16.000Z
tests/conftest.py
gdherbert/arcutils
84b1f86d8a6a55788e06afc31b1642baf07604be
[ "MIT" ]
1
2018-09-15T02:04:03.000Z
2018-09-15T02:04:03.000Z
"""module wide test fixtures""" import pytest import arcpy import os import random import collections testfolder = 'tests' @pytest.fixture(scope='module') def testgdb(pytestconfig): gdb_name = "arc_utils_test_tmp.gdb" return str(pytestconfig.rootdir.join(testfolder).join(gdb_name)) @pytest.fixture(scope='mod...
42.432099
167
0.635438
79864a5c67819492011e1f3b2dcbe50bcca82ac0
38,429
py
Python
tensorflow/python/keras/_impl/keras/callbacks.py
siju-samuel/tensorflow
0ac663d9a78ab2c630173fd7b0cc63fedf1526e2
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/_impl/keras/callbacks.py
siju-samuel/tensorflow
0ac663d9a78ab2c630173fd7b0cc63fedf1526e2
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/_impl/keras/callbacks.py
siju-samuel/tensorflow
0ac663d9a78ab2c630173fd7b0cc63fedf1526e2
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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...
34.34227
88
0.640063
79864bcfedf55a9838369d682949db971c3e3451
19,936
py
Python
code/pyorg/scripts/arp23/arp_uni_2nd_W.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
12
2020-01-08T01:33:02.000Z
2022-03-16T00:25:34.000Z
code/pyorg/scripts/arp23/arp_uni_2nd_W.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
8
2019-12-19T19:34:56.000Z
2022-03-10T10:11:28.000Z
code/pyorg/scripts/arp23/arp_uni_2nd_W.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
2
2022-03-30T13:12:22.000Z
2022-03-30T18:12:10.000Z
""" Performs Univariate 2nd order analysis from a STAR file with a set of ListTomoParticles entries Input: - A STAR file with a set of ListTomoParticles pickles Output: - Plots with the analysis - Matrix with the analysis for further post-processing """ ################# Package import im...
36.512821
204
0.633728
79864be11bf6bb68b0a3397cb6fbec9eef5aa8c0
2,970
py
Python
agent/app/balena/operator.py
pcorbel/scitizen
f43ffc4b805510f0a4602efc5546ae9cfaf8de7f
[ "Apache-2.0" ]
20
2021-08-04T21:48:51.000Z
2022-03-08T00:47:56.000Z
agent/app/balena/operator.py
pcorbel/scitizen
f43ffc4b805510f0a4602efc5546ae9cfaf8de7f
[ "Apache-2.0" ]
50
2021-08-05T10:01:02.000Z
2022-03-28T06:18:20.000Z
agent/app/balena/operator.py
pcorbel/scitizen
f43ffc4b805510f0a4602efc5546ae9cfaf8de7f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from dataclasses import dataclass from typing import Optional import requests @dataclass class Operator: """The Operator is used to interact with the Balena Supervisor API. The operator is connected to the Supervisor API via REST, and is used to fetch and send data to ...
34.534884
111
0.649832
79864bf073484d30378ed9aa1141740ecb8561b7
19,779
py
Python
a_other/algorithms/shor_reference.py
ogorodnikov/m1
06aee1963471897d8c05986e2782e3ca3a107c93
[ "MIT" ]
null
null
null
a_other/algorithms/shor_reference.py
ogorodnikov/m1
06aee1963471897d8c05986e2782e3ca3a107c93
[ "MIT" ]
null
null
null
a_other/algorithms/shor_reference.py
ogorodnikov/m1
06aee1963471897d8c05986e2782e3ca3a107c93
[ "MIT" ]
null
null
null
import math import numpy as np from qiskit import Aer from qiskit.utils import QuantumInstance # from qiskit.algorithms import Shor """ https://github.com/Qiskit/qiskit-tutorials/blob/0994a317891cf688f55ebed5a06f8a227c8440ac/tutorials/algorithms/08_factorizers.ipynb """ """ https://github.com/Qiskit/qiskit-terr...
35.831522
142
0.603367
79864d0f06efb4dae80d1a66ad18b113b8bb67d3
1,426
py
Python
package/scripts/params.py
shigechuanqi/ambari-trino-service
7aa7f1e6659a3eb513147c5bc72f633ee3332479
[ "Apache-2.0" ]
null
null
null
package/scripts/params.py
shigechuanqi/ambari-trino-service
7aa7f1e6659a3eb513147c5bc72f633ee3332479
[ "Apache-2.0" ]
null
null
null
package/scripts/params.py
shigechuanqi/ambari-trino-service
7aa7f1e6659a3eb513147c5bc72f633ee3332479
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # 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...
38.540541
96
0.770687
79864db7ec28e7ccd20e797d2fe1d49ca12a6b7d
1,952
py
Python
tests/test_utilities.py
MarconiS/DeepForest
ad4b139e212b82ab2a94e385ec7806ca19746158
[ "MIT" ]
1
2020-02-28T14:09:29.000Z
2020-02-28T14:09:29.000Z
tests/test_utilities.py
ethanwhite/DeepForest
d6c937f29863edba8b447df9e6bfdab702298815
[ "MIT" ]
null
null
null
tests/test_utilities.py
ethanwhite/DeepForest
d6c937f29863edba8b447df9e6bfdab702298815
[ "MIT" ]
null
null
null
# test_utilities from deepforest import utilities from deepforest import get_data import pytest import os import pandas as pd import numpy as np from deepforest import deepforest @pytest.fixture() def annotations(): annotations = utilities.xml_to_annotations(get_data("OSBS_029.xml")) annotations_file = "tests/...
35.490909
90
0.752049
79864ec9271c1900b1b3e3b01c13489697148b7d
16,781
py
Python
multimedia/south_migrations/0012_auto__del_field_mediabase_profile__del_field_mediabase_file_type__del_.py
jbittel/django-multimedia
4ddd5e6d9f4f680e2f4f68cc3616ced8f0fc2a43
[ "BSD-3-Clause" ]
19
2015-01-28T08:40:20.000Z
2021-12-18T11:55:58.000Z
multimedia/south_migrations/0012_auto__del_field_mediabase_profile__del_field_mediabase_file_type__del_.py
jbittel/django-multimedia
4ddd5e6d9f4f680e2f4f68cc3616ced8f0fc2a43
[ "BSD-3-Clause" ]
2
2015-02-09T17:03:24.000Z
2015-04-22T17:57:45.000Z
multimedia/south_migrations/0012_auto__del_field_mediabase_profile__del_field_mediabase_file_type__del_.py
jbittel/django-multimedia
4ddd5e6d9f4f680e2f4f68cc3616ced8f0fc2a43
[ "BSD-3-Clause" ]
4
2015-02-02T14:05:08.000Z
2016-09-14T00:44:55.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'MediaBase.profile' db.delete_column(u'multimedia_mediabase', 'profile') # Deletin...
65.042636
192
0.595972
79864fd29a7fbf6b5f84c2fa6e7bb5ed41efe4bc
5,077
py
Python
tests/settings.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
139
2015-01-08T22:27:06.000Z
2021-08-19T03:36:58.000Z
tests/settings.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
286
2015-01-02T14:15:14.000Z
2022-03-22T11:00:12.000Z
tests/settings.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
91
2015-01-16T15:06:23.000Z
2022-03-23T23:36:54.000Z
from django.utils.text import format_lazy from django.urls import reverse_lazy from cmsplugin_cascade.extra_fields.config import PluginExtraFieldsConfig MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.Common...
27.743169
94
0.646445
79865132ceff9be1ed35989b69cefcdf81a9965c
13,183
py
Python
v1/processes/adaptivekskipmrr.py
5enxia/parallel-krylov
2d75e220b9b0cc6df924111cfb57f917f2100925
[ "MIT" ]
1
2022-02-25T14:17:55.000Z
2022-02-25T14:17:55.000Z
v1/processes/adaptivekskipmrr.py
5enxia/parallel-krylov
2d75e220b9b0cc6df924111cfb57f917f2100925
[ "MIT" ]
null
null
null
v1/processes/adaptivekskipmrr.py
5enxia/parallel-krylov
2d75e220b9b0cc6df924111cfb57f917f2100925
[ "MIT" ]
1
2022-02-20T02:57:10.000Z
2022-02-20T02:57:10.000Z
import numpy as np from .common import start, end as finish, init, init_mpi, krylov_base_start, krylov_base_finish from .pyx.scalar_iteration import scalar_iteration def _adaptivekskipmrr_cpu(A, b, epsilon, k, T, pu): from numpy.linalg import norm # 共通初期化 comm, rank, num_of_process = init_mpi() A, ...
33.544529
132
0.500948