hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
a34cc94dfdfbe3f0f594e2fc8742ae64049ed0d6
1,547
py
Python
05-containers/lists.py
johnehunt/Python3Intro
2a41ce488aac11bb3928ea81e57be1c2c8acdac2
[ "Apache-2.0" ]
1
2020-11-03T19:46:25.000Z
2020-11-03T19:46:25.000Z
05-containers/lists.py
johnehunt/Python3Intro
2a41ce488aac11bb3928ea81e57be1c2c8acdac2
[ "Apache-2.0" ]
null
null
null
05-containers/lists.py
johnehunt/Python3Intro
2a41ce488aac11bb3928ea81e57be1c2c8acdac2
[ "Apache-2.0" ]
null
null
null
list1 = ['John', 'Paul', 'George', 'Ringo'] list2 = [4] list3 = [] # empty list list4 = [1, "two", 3, 'four'] list5 = [[2, 3], [6, 8]] print(type(list5)) print(list1, ': ', len(list1)) print(list2, ': ', len(list2)) print(list3, ': ', len(list3)) print(list4, ': ', len(list4)) print(list5, ': ', len(list5)) print('l...
20.626667
60
0.597285
5e54e2692d5eeeb017fafa18c2cd34bed03e07c6
153,144
py
Python
tensorflow/python/ops/variable_scope.py
ShaunHeNJU/DeepRec-1
e280fb19de179f03dc05e1d8e3f4f7459796d96e
[ "Apache-2.0" ]
1
2021-12-24T06:04:16.000Z
2021-12-24T06:04:16.000Z
tensorflow/python/ops/variable_scope.py
ShaunHeNJU/DeepRec-1
e280fb19de179f03dc05e1d8e3f4f7459796d96e
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/variable_scope.py
ShaunHeNJU/DeepRec-1
e280fb19de179f03dc05e1d8e3f4f7459796d96e
[ "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...
42.909498
177
0.659582
580902766cbf7d8ac2f362e282dff41ab0349173
1,480
py
Python
tests/test_images_conversion.py
Mcalewaert/arcus.ml
bb94bd18687eb65599a34bd276bb96dd460611d8
[ "MIT" ]
2
2020-06-01T22:21:51.000Z
2021-11-23T08:27:46.000Z
tests/test_images_conversion.py
Mcalewaert/arcus.ml
bb94bd18687eb65599a34bd276bb96dd460611d8
[ "MIT" ]
90
2020-04-20T06:54:35.000Z
2022-03-22T05:48:02.000Z
tests/test_images_conversion.py
Mcalewaert/arcus.ml
bb94bd18687eb65599a34bd276bb96dd460611d8
[ "MIT" ]
4
2020-05-15T09:00:51.000Z
2022-02-16T07:53:29.000Z
import sys import os import pytest import pandas as pd import arcus.ml.images.io as ami import arcus.ml.images.conversion as conv import logging import numpy as np image_path = 'tests/resources/images/lungs' def test_black_white_conversion(): image_list = ami.load_images(image_path) ls = conv.to_blackwhite(...
33.636364
100
0.711486
3f7652e3fcceda67fb3f4b0a52207b5f1059d49e
262
py
Python
sample/src/app/app.py
nmrony/k3d-demo
3b107dcf196bcdbcc16d311ad629a261e4488f40
[ "MIT" ]
164
2020-05-12T08:24:31.000Z
2022-02-11T15:32:25.000Z
sample/src/app/app.py
nmrony/k3d-demo
3b107dcf196bcdbcc16d311ad629a261e4488f40
[ "MIT" ]
11
2020-05-14T19:33:23.000Z
2022-02-04T21:44:40.000Z
sample/src/app/app.py
nmrony/k3d-demo
3b107dcf196bcdbcc16d311ad629a261e4488f40
[ "MIT" ]
58
2020-05-13T15:48:38.000Z
2022-02-01T17:46:56.000Z
from flask import Flask from . import settings # create app app = Flask(__name__, template_folder="web/templates", static_folder="web/static") app.config.from_object("app.settings") # register blueprints from .web import bp as web app.register_blueprint(web)
21.833333
82
0.782443
db257477b7c9d692b8a09b1c7302a1242617179d
380
py
Python
helpers/ip_checker.py
bilginfurkan/Anonimce
7d73c13ae8d5c873b6863878370ad83ec9ee5acc
[ "Apache-2.0" ]
2
2021-02-15T12:56:58.000Z
2021-02-21T12:38:47.000Z
helpers/ip_checker.py
bilginfurkan/Anonimce
7d73c13ae8d5c873b6863878370ad83ec9ee5acc
[ "Apache-2.0" ]
null
null
null
helpers/ip_checker.py
bilginfurkan/Anonimce
7d73c13ae8d5c873b6863878370ad83ec9ee5acc
[ "Apache-2.0" ]
null
null
null
import pydnsbl from pydnsbl.providers import Provider, BASE_PROVIDERS from main import event_loop _provides = [ "dnsbl.dronebl.org", "dnsbl.spfbl.net" ] _ip_checker = pydnsbl.DNSBLIpChecker(loop=event_loop, timeout=.3, tries=1, concurrency=50, providers=[ Provider(x) for x in _provides ]) async def is_ip_ad...
27.142857
136
0.763158
911146b389fa878fefbe7004bd40b8dc817f8e93
16,011
py
Python
log_casp_act/model_220.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_act/model_220.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_act/model_220.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('BaxM', ['BidM', 'BaxA']) Monomer('Apop', ['C...
84.268421
614
0.812254
645418062ba70bcf5174ad049a470d757b06e4ac
89
py
Python
flask-cognito-serveryes/config/flask.py
ScriptonBasestar-samples/sb-samples-python
870da87b98b3b77a2b0520adfa10bdfd67a8e8e1
[ "MIT" ]
null
null
null
flask-cognito-serveryes/config/flask.py
ScriptonBasestar-samples/sb-samples-python
870da87b98b3b77a2b0520adfa10bdfd67a8e8e1
[ "MIT" ]
null
null
null
flask-cognito-serveryes/config/flask.py
ScriptonBasestar-samples/sb-samples-python
870da87b98b3b77a2b0520adfa10bdfd67a8e8e1
[ "MIT" ]
null
null
null
from flask_api import FlaskAPI app = FlaskAPI(__name__, template_folder='../templates')
22.25
56
0.786517
7d55ffad08ef0acef238ce0f2eb44f5f4c03bc7a
997
py
Python
bookmarks/account/forms.py
victorvf/django-3-by-example
fe8a459b4318912abfdbe115cde528a1b192ccc3
[ "MIT" ]
null
null
null
bookmarks/account/forms.py
victorvf/django-3-by-example
fe8a459b4318912abfdbe115cde528a1b192ccc3
[ "MIT" ]
null
null
null
bookmarks/account/forms.py
victorvf/django-3-by-example
fe8a459b4318912abfdbe115cde528a1b192ccc3
[ "MIT" ]
1
2021-01-05T12:48:39.000Z
2021-01-05T12:48:39.000Z
from django import forms from django.contrib.auth.models import User from .models import Profile class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) class UserRegistrationForm(forms.ModelForm): password = forms.CharField(label='Password', wid...
25.564103
76
0.665998
ed2c2e4430d0dd1ceacf9f7bcfa6ecd6b50c7d74
3,994
py
Python
hcb/extract_feature1.py
ycd2016/DCIC2020-IOC
0b05c9bdf94eb931947e3110a7883ab05cb38d17
[ "WTFPL" ]
36
2020-05-27T06:08:24.000Z
2022-03-16T01:50:29.000Z
hcb/extract_feature1.py
hjh1693316274/DCIC2020-IOC
61da2db927f0702e89b4464b3bb2e3ecc76710cc
[ "WTFPL" ]
1
2020-09-18T03:58:26.000Z
2020-09-18T03:58:26.000Z
hcb/extract_feature1.py
LeBronHe/DCIC2020-IOC
0b05c9bdf94eb931947e3110a7883ab05cb38d17
[ "WTFPL" ]
14
2020-05-28T00:26:05.000Z
2021-11-16T14:04:08.000Z
# -*- coding: utf-8 -*- """ Created on Tue Feb 25 18:36:40 2020 @author: hcb """ import pandas as pd import numpy as np import lightgbm as lgb import os from tqdm import tqdm from sklearn.model_selection import KFold from sklearn.metrics import f1_score from config import config from scipy import stats trn_path = co...
38.038095
82
0.530796
fd5768cac17b86b1fab6bcca5059e793353889a1
2,517
py
Python
blaze/expr/viz.py
davidfischer/blaze-core
19b55ed469aec742fd871b959115a3d87a89acb9
[ "BSD-2-Clause" ]
1
2015-01-02T18:16:07.000Z
2015-01-02T18:16:07.000Z
blaze/expr/viz.py
davidfischer/blaze-core
19b55ed469aec742fd871b959115a3d87a89acb9
[ "BSD-2-Clause" ]
null
null
null
blaze/expr/viz.py
davidfischer/blaze-core
19b55ed469aec742fd871b959115a3d87a89acb9
[ "BSD-2-Clause" ]
null
null
null
""" Visualize expression graphs using graphviz. """ try: import pydot have_pydot = True except ImportError: have_pydot = False from cStringIO import StringIO from collections import Counter from subprocess import Popen, PIPE from tempfile import NamedTemporaryFile def dump(node, ipython=True, filename=No...
24.920792
69
0.589193
58323a45ff18ab2e86790ac662d00593e4ac095a
2,295
py
Python
rovers/fastdownward/experiments/issue693/v4-sat.py
mehrdadzakershahrak/Online-Explanation-Generation
e41ad9b5a390abdaf271562a56105c191e33b74d
[ "MIT" ]
1
2021-09-09T13:03:02.000Z
2021-09-09T13:03:02.000Z
rovers/fastdownward/experiments/issue693/v4-sat.py
mehrdadzakershahrak/Online-Explanation-Generation
e41ad9b5a390abdaf271562a56105c191e33b74d
[ "MIT" ]
null
null
null
rovers/fastdownward/experiments/issue693/v4-sat.py
mehrdadzakershahrak/Online-Explanation-Generation
e41ad9b5a390abdaf271562a56105c191e33b74d
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import itertools import os from lab.environments import LocalEnvironment, MaiaEnvironment from downward.reports.compare import ComparativeReport import common_setup from common_setup import IssueConfig, IssueExperiment, RelativeScatterPlotReport DIR = os.path.dirname...
31.875
88
0.666667
be5a1c8b404707e87c91bcce0be30df7ea8c8e3b
1,180
py
Python
funowl/terminals/TypingHelper.py
clin113jhu/funowl
805963c9d2718598c85a1213106161b59f5a8dd3
[ "CC0-1.0" ]
null
null
null
funowl/terminals/TypingHelper.py
clin113jhu/funowl
805963c9d2718598c85a1213106161b59f5a8dd3
[ "CC0-1.0" ]
null
null
null
funowl/terminals/TypingHelper.py
clin113jhu/funowl
805963c9d2718598c85a1213106161b59f5a8dd3
[ "CC0-1.0" ]
null
null
null
""" Helper functions for typing library. Variation on the version in pyjsg library """ import sys from typing import Union, Any, Iterable if sys.version_info < (3, 8): def get_origin(typ): return getattr(typ, '__origin__', None) def get_args(typ): return getattr(typ, '__args__', None) else: ...
26.818182
79
0.674576
3b1e1a7d7637d6f1b45aef0459df9b0d9febf688
26,800
py
Python
text_extensions_for_pandas/cleaning/test_preprocess.py
ZachEichen/text-extensions-for-pandas
b3132c26806d57ec168818e43138e55e2583acdf
[ "Apache-2.0" ]
null
null
null
text_extensions_for_pandas/cleaning/test_preprocess.py
ZachEichen/text-extensions-for-pandas
b3132c26806d57ec168818e43138e55e2583acdf
[ "Apache-2.0" ]
null
null
null
text_extensions_for_pandas/cleaning/test_preprocess.py
ZachEichen/text-extensions-for-pandas
b3132c26806d57ec168818e43138e55e2583acdf
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020 IBM Corp. # 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 writi...
69.430052
122
0.351045
5f7af661e73c3a8bad3ae871147db397425bbf9f
73,373
py
Python
salt/modules/yumpkg.py
JensRantil/salt
c390e812d8ce19595b0a78b5f8918f4f464055a5
[ "Apache-2.0" ]
null
null
null
salt/modules/yumpkg.py
JensRantil/salt
c390e812d8ce19595b0a78b5f8918f4f464055a5
[ "Apache-2.0" ]
null
null
null
salt/modules/yumpkg.py
JensRantil/salt
c390e812d8ce19595b0a78b5f8918f4f464055a5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Support for YUM .. note:: This module makes heavy use of the **repoquery** utility, from the yum-utils_ package. This package will be installed as a dependency if salt is installed via EPEL. However, if salt has been installed using pip, or a host is being managed using salt...
32.167032
131
0.587123
b040dda8892df2993c2e5db531459082c30cd071
2,519
py
Python
plugins/Quote/config.py
rostob/Limnoria
068488c546612ee0198cecf1a4a46e2667551bcf
[ "BSD-3-Clause" ]
22
2021-09-01T20:51:10.000Z
2022-03-23T05:51:58.000Z
plugins/Quote/config.py
rostob/Limnoria
068488c546612ee0198cecf1a4a46e2667551bcf
[ "BSD-3-Clause" ]
16
2021-09-02T08:33:29.000Z
2022-03-28T18:21:09.000Z
plugins/Quote/config.py
rostob/Limnoria
068488c546612ee0198cecf1a4a46e2667551bcf
[ "BSD-3-Clause" ]
9
2021-09-02T09:07:53.000Z
2022-03-28T17:34:59.000Z
### # Copyright (c) 2005, Daniel DiPaolo # Copyright (c) 2010-2021, Valentin Lorentz # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above co...
48.442308
79
0.772132
dfcd5c673ffa8ffbb485ace8466b57e52d3dc37d
632
py
Python
histograma_basico.py
Furion1995/little_projects
5373da016e8f7141a6984f7bc42b7b4ce002cbf1
[ "MIT" ]
null
null
null
histograma_basico.py
Furion1995/little_projects
5373da016e8f7141a6984f7bc42b7b4ce002cbf1
[ "MIT" ]
null
null
null
histograma_basico.py
Furion1995/little_projects
5373da016e8f7141a6984f7bc42b7b4ce002cbf1
[ "MIT" ]
null
null
null
"""Práctica de histograma usando sólo sentencias puras de Python. Sin librerías de visualización gráfica. """ from collections import Counter edades = [12, 15, 20, 18, 12, 19, 19, 20, 13, 16, 17, 13, 12, 18, 20, 19, 20, 13, 12, 13, 17, 15, 16, 13, 14, 13, 17, 19] intervalos = [(10, 13), (13, 16), (16, 19), (19,...
35.111111
122
0.643987
9d6ab311ea932f0179e60c0584275d3937698fee
1,088
py
Python
tests/system/libraries/helperLib.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
tests/system/libraries/helperLib.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
tests/system/libraries/helperLib.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2018 NV Access Limited # This file may be used under the terms of the GNU General Public License, version 2 or later. # For more details see: https://www.gnu.org/licenses/gpl-2.0.html """This file provides general robot library functions for system tests. Thi...
32
115
0.749081
7cc690ac97691fe7904313c5ec9c7592cd6e0d6d
4,583
py
Python
Game14/Levels_kor.py
Chomin21/Games
52b1bf9fbb6c70b41ea3b6e99f76642b48cc1142
[ "MIT" ]
null
null
null
Game14/Levels_kor.py
Chomin21/Games
52b1bf9fbb6c70b41ea3b6e99f76642b48cc1142
[ "MIT" ]
null
null
null
Game14/Levels_kor.py
Chomin21/Games
52b1bf9fbb6c70b41ea3b6e99f76642b48cc1142
[ "MIT" ]
3
2019-05-22T10:22:00.000Z
2019-05-22T10:27:17.000Z
''' Function: 정의 관문 Author: Charles 닉네임: Charles의 피카츄 ''' import pygame from Sprites import * NUMLEVELS = 1 '''세키가오카이치''' class Level1(): def __init__(self): self.info = 'level1' '''벽 만들기''' def setupWalls(self, wall_color): self.wall_sprites = pygame.sprite.Group() wall_positions = [[0, 0, 6, ...
34.984733
115
0.483744
3ef43792fb79bf2ce2a4b6ac61fbf64f98ce13cd
1,412
py
Python
src/blog/models.py
shopeyin/sportyblog
23037713e28c34043bdcc0c46fb5223540c514ed
[ "bzip2-1.0.6" ]
null
null
null
src/blog/models.py
shopeyin/sportyblog
23037713e28c34043bdcc0c46fb5223540c514ed
[ "bzip2-1.0.6" ]
13
2019-11-02T15:37:36.000Z
2022-02-10T12:19:16.000Z
src/blog/models.py
shopeyin/sportyblog
23037713e28c34043bdcc0c46fb5223540c514ed
[ "bzip2-1.0.6" ]
null
null
null
from django.db import models from django.db.models.signals import pre_save from django.utils.text import slugify from django.conf import settings from django.db.models.signals import post_delete from django.dispatch import receiver def upload_location(instance, filename): file_path = 'blog/{author_id}/{title}-{filena...
36.205128
91
0.775496
46e94f8c19a5cc9942d7baffcea393099783f3d4
1,106
py
Python
userbot/modules/me/username.py
ZJRDroid/PaperplaneRemix
b41dffad17cce076f174a3fb36f0aeba1177cefa
[ "MIT" ]
null
null
null
userbot/modules/me/username.py
ZJRDroid/PaperplaneRemix
b41dffad17cce076f174a3fb36f0aeba1177cefa
[ "MIT" ]
null
null
null
userbot/modules/me/username.py
ZJRDroid/PaperplaneRemix
b41dffad17cce076f174a3fb36f0aeba1177cefa
[ "MIT" ]
1
2019-12-21T03:44:42.000Z
2019-12-21T03:44:42.000Z
from telethon.errors import UsernameOccupiedError, UsernameInvalidError from telethon.tl.functions.account import UpdateUsernameRequest from ..help import add_help_item from userbot import bot from userbot.events import register USERNAME_SUCCESS = "```Your username was successfully changed.```" USERNAME_TAKEN = "```T...
32.529412
155
0.716998
c0569f5f558e3e6c99f7f38ef9d959e6cf049c88
5,430
py
Python
lib/spack/spack/util/pattern.py
genric/spack
e35a99e5d6da729f197954802d697d75e02aefe0
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
lib/spack/spack/util/pattern.py
BlueBrain/spack
047fa4b21b90abfd227dd70a77689bb473cd1a57
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
lib/spack/spack/util/pattern.py
genric/spack
e35a99e5d6da729f197954802d697d75e02aefe0
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import inspect import functools import sys if sys.version_info >= (3, 3): from collections.abc import MutableSequenc...
37.972028
79
0.648066
117bf867cb9e31841478f4116910c411b9b1cc40
12,093
py
Python
Data/Code/quantity_theory_data.py
t-hdd/econ126
17029937bd6c40e606d145f8d530728585c30a1d
[ "MIT" ]
2
2020-12-12T16:28:44.000Z
2021-02-24T12:11:04.000Z
Data/Code/quantity_theory_data.py
t-hdd/econ126
17029937bd6c40e606d145f8d530728585c30a1d
[ "MIT" ]
1
2019-04-29T08:50:41.000Z
2019-04-29T08:51:05.000Z
Data/Code/quantity_theory_data.py
t-hdd/econ126
17029937bd6c40e606d145f8d530728585c30a1d
[ "MIT" ]
19
2019-03-08T18:49:19.000Z
2022-03-07T23:27:16.000Z
#!/usr/bin/env python # coding: utf-8 import numpy as np import pandas as pd import quandl as Quandl import wbdata as wb # 0. Export path: Set to empty string '' if you want to export data to current directory export_path = '../Csv/' # 1. Import country codes and organize # 1.1 Import country codes and names from...
27.736239
164
0.627801
689114f2f2f620868b065ecc925308296baac6a8
45
py
Python
order/__init__.py
guillercp93/tpaga_test
f2236e9c27ec1d6d17af6c798b46e2fab1c45960
[ "MIT" ]
null
null
null
order/__init__.py
guillercp93/tpaga_test
f2236e9c27ec1d6d17af6c798b46e2fab1c45960
[ "MIT" ]
7
2020-02-11T23:27:04.000Z
2022-02-10T07:09:38.000Z
order/__init__.py
guillercp93/tpaga_test
f2236e9c27ec1d6d17af6c798b46e2fab1c45960
[ "MIT" ]
null
null
null
default_app_config = "order.apps.OrderConfig"
45
45
0.844444
4ac9a0d1e3be235a115cefe7fde726c06b78bdf4
1,000
py
Python
example/margin/post_cross_margin_loan_order_repay.py
xujunhuii/huobi_Python
958df8b22ce774329c7e15a1ecf2f52eea5f6af8
[ "Apache-2.0" ]
null
null
null
example/margin/post_cross_margin_loan_order_repay.py
xujunhuii/huobi_Python
958df8b22ce774329c7e15a1ecf2f52eea5f6af8
[ "Apache-2.0" ]
null
null
null
example/margin/post_cross_margin_loan_order_repay.py
xujunhuii/huobi_Python
958df8b22ce774329c7e15a1ecf2f52eea5f6af8
[ "Apache-2.0" ]
null
null
null
from huobi.client.margin import MarginClient from huobi.constant import * from huobi.utils import * margin_client = MarginClient(api_key=g_api_key, secret_key=g_secret_key) # to check not clearing loan orders list_obj = margin_client.get_cross_margin_loan_orders( currency="usdt", state=LoanOrderState.ACCRUAL ) Lo...
31.25
72
0.719
3fa6e1272bcf69c0625b6e53f9576a250f2f229f
21,145
py
Python
experiment/Ours/train.py
CityU-AIM-Group/L2uDT
1af5e34868b97cadc1ef4b51d494e4d91c793edb
[ "MIT" ]
7
2021-09-19T05:11:34.000Z
2022-03-30T05:41:38.000Z
experiment/Ours/train.py
Guo-Xiaoqing/L2uDT
1af5e34868b97cadc1ef4b51d494e4d91c793edb
[ "MIT" ]
null
null
null
experiment/Ours/train.py
Guo-Xiaoqing/L2uDT
1af5e34868b97cadc1ef4b51d494e4d91c793edb
[ "MIT" ]
2
2021-05-31T16:11:30.000Z
2021-09-20T02:45:21.000Z
# ---------------------------------------- # Written by Xiaoqing Guo # ---------------------------------------- import torch import torch.nn as nn import torchvision import torchvision.transforms as transforms import os import sys import numpy as np import torch.nn.functional as F import cv2 import math from config i...
43.869295
226
0.66446
680140fd7d4e86f81d094405fcd780fc9ba4c381
38,693
py
Python
gnocchi/tests/test_carbonara.py
Dmitry-Eremeev/gnocchi
1bfef1c3436778cf816370a94aa5589a93892bc2
[ "Apache-2.0" ]
299
2017-05-18T17:48:09.000Z
2022-03-31T09:22:27.000Z
gnocchi/tests/test_carbonara.py
Dmitry-Eremeev/gnocchi
1bfef1c3436778cf816370a94aa5589a93892bc2
[ "Apache-2.0" ]
981
2017-05-18T16:36:49.000Z
2022-03-31T20:29:12.000Z
gnocchi/tests/test_carbonara.py
Dmitry-Eremeev/gnocchi
1bfef1c3436778cf816370a94aa5589a93892bc2
[ "Apache-2.0" ]
89
2017-05-19T16:20:09.000Z
2022-03-30T20:58:52.000Z
# -*- encoding: utf-8 -*- # # Copyright © 2014-2016 eNovance # # 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...
42.241266
79
0.539116
efef0f3ff62a7488ed4fee32a2cd3f2f26c3fcf6
15,427
py
Python
custom_components/alexa_media/config_flow.py
aldesantis/hassio
9a85ecc94769f576887c1781d0343582a9dbe76a
[ "MIT" ]
null
null
null
custom_components/alexa_media/config_flow.py
aldesantis/hassio
9a85ecc94769f576887c1781d0343582a9dbe76a
[ "MIT" ]
45
2019-10-12T14:49:43.000Z
2020-02-08T12:17:37.000Z
custom_components/alexa_media/config_flow.py
aldesantis/hassio
9a85ecc94769f576887c1781d0343582a9dbe76a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 """ Alexa Config Flow. For more details about this platform, please refer to the documentation at https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639 """ from collections import OrderedDict im...
40.490814
93
0.572049
8163943c70a36c9a9791f3bf23373d6619d73f58
10,594
py
Python
src/trainer.py
BonjourGit/nlc2cmd-submission-hubris
7928f75ad212295c732dbd4e42ce4eba378d2509
[ "MIT" ]
7
2020-12-01T16:13:59.000Z
2022-01-01T18:02:22.000Z
src/trainer.py
BonjourGit/nlc2cmd-submission-hubris
7928f75ad212295c732dbd4e42ce4eba378d2509
[ "MIT" ]
1
2020-12-22T02:15:13.000Z
2021-01-05T14:14:30.000Z
src/trainer.py
BonjourGit/nlc2cmd-submission-hubris
7928f75ad212295c732dbd4e42ce4eba378d2509
[ "MIT" ]
2
2021-01-05T03:16:06.000Z
2021-01-14T05:06:31.000Z
# Copyright 2020 Nokia # Licensed under the MIT License. # SPDX-License-Identifier: MIT import torch from torch.utils.data.dataloader import DataLoader from torch.utils.data.dataset import Dataset from torch.utils.data.distributed import DistributedSampler from torch.utils.data.sampler import RandomSampler, Sampler, S...
45.273504
118
0.588446
496f099d24c90f203e04017cac2b43d7e167e6ea
7,102
py
Python
xsd-fu/python/genshi/template/plugin.py
manics/ome-model
835e6f2c6e3da3cb7f94f228458f707a83fd0b98
[ "BSD-2-Clause" ]
476
2015-01-07T08:59:53.000Z
2022-02-11T09:46:06.000Z
xsd-fu/python/genshi/template/plugin.py
manics/ome-model
835e6f2c6e3da3cb7f94f228458f707a83fd0b98
[ "BSD-2-Clause" ]
82
2015-01-15T12:30:43.000Z
2022-01-06T02:56:53.000Z
xsd-fu/python/genshi/template/plugin.py
manics/ome-model
835e6f2c6e3da3cb7f94f228458f707a83fd0b98
[ "BSD-2-Clause" ]
99
2015-01-14T19:53:45.000Z
2021-08-11T15:17:26.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # Copyright (C) 2006 Matthew Good # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/...
40.124294
80
0.64503
c75d064d4749a7b4a25b60a2c6a8d36edb551a78
86,551
py
Python
apps/challenges/views.py
drepram/EvalAI
ddae77748de73d67dc0555a9f55e74abcee0cece
[ "BSD-3-Clause" ]
2
2020-01-31T16:21:05.000Z
2020-05-16T12:08:15.000Z
apps/challenges/views.py
drepram/EvalAI
ddae77748de73d67dc0555a9f55e74abcee0cece
[ "BSD-3-Clause" ]
388
2020-01-21T23:34:10.000Z
2021-08-02T23:39:21.000Z
apps/challenges/views.py
drepram/EvalAI
ddae77748de73d67dc0555a9f55e74abcee0cece
[ "BSD-3-Clause" ]
1
2020-10-03T04:37:58.000Z
2020-10-03T04:37:58.000Z
import csv import logging import random import requests import shutil import string import tempfile import uuid import yaml import zipfile from os.path import basename, isfile, join from django.conf import settings from django.contrib.auth.hashers import make_password from django.contrib.auth.models import User from ...
39.395084
152
0.596527
8eedeac18606f0036a71f2fbd047a36db34cd9fd
5,654
py
Python
scripts/MongoDash/layouts/drowdown_comp.py
RodrigoNaves/ginan-bitbucket-update-tests
4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c
[ "Apache-2.0" ]
73
2021-07-08T23:35:08.000Z
2022-03-31T15:17:58.000Z
scripts/MongoDash/layouts/drowdown_comp.py
RodrigoNaves/ginan-bitbucket-update-tests
4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c
[ "Apache-2.0" ]
5
2021-09-27T14:27:32.000Z
2022-03-21T23:50:02.000Z
scripts/MongoDash/layouts/drowdown_comp.py
RodrigoNaves/ginan-bitbucket-update-tests
4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c
[ "Apache-2.0" ]
39
2021-07-12T05:42:51.000Z
2022-03-31T15:15:34.000Z
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import dash_bootstrap_components as dbc import pdb #*****************************DROPDOWN for /page-1*************************************************************************#: #Todo: Make ...
33.455621
126
0.468695
a6b3d22920c59efcbae4bbf0f376e9315720237c
5,777
py
Python
bindings/python/ensmallen_graph/datasets/networkrepository/sw1000060d3trial1.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/networkrepository/sw1000060d3trial1.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/networkrepository/sw1000060d3trial1.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph SW-10000-6-0d3-trial1. The graph is automatically retrieved from the NetworkRepository repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Date...
32.273743
94
0.686515
748d8cc4453f5db85757548d64c08c81993f1e6d
754
py
Python
profiles_api/permissions.py
ashishpt1233/profile-rest.api
52464e79cd2f10bbbe06e46057ac4e10eebe58f0
[ "MIT" ]
null
null
null
profiles_api/permissions.py
ashishpt1233/profile-rest.api
52464e79cd2f10bbbe06e46057ac4e10eebe58f0
[ "MIT" ]
null
null
null
profiles_api/permissions.py
ashishpt1233/profile-rest.api
52464e79cd2f10bbbe06e46057ac4e10eebe58f0
[ "MIT" ]
null
null
null
from rest_framework import permissions class UpdateOwnProfile(permissions.BasePermission): """ allow to user to updat their own profile """ def has_object_permission(self ,request, view , obj): """ Check user is trying to edit their own profile """ if request.method in permissions.SAFE_METHODS...
31.416667
70
0.685676
92bcf10170ed80ce2b49bd608b176c2e3d480e8c
3,485
py
Python
src/resources/users.py
solnsumei/claims-management
0a9db243e954fbe390f6f81f64eabd6efa4dcc81
[ "MIT" ]
null
null
null
src/resources/users.py
solnsumei/claims-management
0a9db243e954fbe390f6f81f64eabd6efa4dcc81
[ "MIT" ]
null
null
null
src/resources/users.py
solnsumei/claims-management
0a9db243e954fbe390f6f81f64eabd6efa4dcc81
[ "MIT" ]
null
null
null
from fastapi import Depends, BackgroundTasks from typing import List from .baserouter import BaseRouter from src.models import User, UserWithDepartment, UserWithRelations from src.models.schema.user import CreateSchema, UpdateSchema from src.utils.security import check_admin, check_admin_or_manager from src.utils.excep...
37.473118
99
0.749785
e31fef91bd588522030d4898a0170506fdfbe5e8
13,766
py
Python
lib/reporter.py
the-octopus/Octopus
6c6f54e0b677c58559b9490d0cb4439d9a0c08a3
[ "MIT" ]
2
2020-02-09T14:07:26.000Z
2020-10-28T14:26:46.000Z
lib/reporter.py
the-octopus/Octopus
6c6f54e0b677c58559b9490d0cb4439d9a0c08a3
[ "MIT" ]
null
null
null
lib/reporter.py
the-octopus/Octopus
6c6f54e0b677c58559b9490d0cb4439d9a0c08a3
[ "MIT" ]
1
2020-10-24T18:15:11.000Z
2020-10-24T18:15:11.000Z
#!/usr/bin/env python3 import datetime import os import sys from selenium import webdriver from lib.configuration import Configuration from lib.dataManager import DataManager from lib.globals import Globals class Reporter: # This class will be responsible for reporting status to html report and collect test ...
70.958763
767
0.587026
b5edc5fed4f806539e1cbfccaed26cdea96e7b56
221
py
Python
Py4e/2/2-3.py
fattahsamit/Python
45aa3c75c2044285d724cafb123959d46de68c49
[ "MIT" ]
null
null
null
Py4e/2/2-3.py
fattahsamit/Python
45aa3c75c2044285d724cafb123959d46de68c49
[ "MIT" ]
null
null
null
Py4e/2/2-3.py
fattahsamit/Python
45aa3c75c2044285d724cafb123959d46de68c49
[ "MIT" ]
null
null
null
# 2.3 # Write a program to prompt the user for hours and # rate per hour using input to compute gross pay. hours = float(input("Enter Hours:")) rate = float(input("Enter Rate per hour:")) pay = print("Pay:",hours*rate)
31.571429
51
0.696833
24209d52ae680f556a6da93fd59fd88a61e066a9
30,476
py
Python
caster_bot.py
Impossibum/Caster-bot
a0057150d6ac67316b45a6aa574c002b10640799
[ "MIT" ]
null
null
null
caster_bot.py
Impossibum/Caster-bot
a0057150d6ac67316b45a6aa574c002b10640799
[ "MIT" ]
null
null
null
caster_bot.py
Impossibum/Caster-bot
a0057150d6ac67316b45a6aa574c002b10640799
[ "MIT" ]
null
null
null
from rlbot.utils.structures.game_interface import GameInterface from rlbot.utils.structures.game_data_struct import GameTickPacket, FieldInfoPacket from rlbot.utils.structures.ball_prediction_struct import BallPrediction from caster_utils import * from rlbot.agents.base_script import BaseScript import pyttsx3 from queu...
38.82293
401
0.485464
1a668763ed7bc3781321573553da72834840d2c7
444
py
Python
lib/django-1.2/django/conf/locale/sq/formats.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-1.2/django/conf/locale/sq/formats.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-1.2/django/conf/locale/sq/formats.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # DATE_FORMAT = 'd F Y' TIME_FORMAT = 'g.i.s.A' # DATETIME_FORMAT = YEAR_MONTH_FORMAT = 'F Y' MONTH_DAY_FORMAT = 'j F' SHORT_DATE_FORMAT = 'Y-m-d' # SHORT_DATETIME_FORMAT = # FIRST_DAY_OF_WEEK = # DATE_INPUT_FORMATS =...
23.368421
72
0.713964
50986ca6213408ef88bcf13cabdadca7d775b2c4
6,924
py
Python
tests/test_core/test_train_dur_csv_paths.py
jspaaks/vak
581ec4869d342e5d52bc057de54c10901f06d343
[ "BSD-3-Clause" ]
26
2019-03-04T20:08:57.000Z
2022-01-22T13:40:00.000Z
tests/test_core/test_train_dur_csv_paths.py
jspaaks/vak
581ec4869d342e5d52bc057de54c10901f06d343
[ "BSD-3-Clause" ]
379
2019-03-03T12:16:05.000Z
2022-03-29T13:44:46.000Z
tests/test_core/test_train_dur_csv_paths.py
jspaaks/vak
581ec4869d342e5d52bc057de54c10901f06d343
[ "BSD-3-Clause" ]
12
2019-11-22T21:19:19.000Z
2022-03-14T17:44:59.000Z
import tempfile import pandas as pd import pytest import vak.converters import vak.core.learncurve.train_dur_csv_paths import vak.csv import vak.io.dataframe import vak.labels import vak.paths SPECT_KEY = "s" TIMEBINS_KEY = "t" @pytest.fixture def tmp_previous_run_path_factory(tmp_path): def _tmp_previous_run_...
33.61165
88
0.671288
eab5eb484afaeb8a4bc2029fc969078074fc7d96
2,429
py
Python
GA_spy_games/code.py
guptasubham/ga-learner-dsb-repo
b39911dc6833cc102e7c71638083ab18fa583164
[ "MIT" ]
null
null
null
GA_spy_games/code.py
guptasubham/ga-learner-dsb-repo
b39911dc6833cc102e7c71638083ab18fa583164
[ "MIT" ]
null
null
null
GA_spy_games/code.py
guptasubham/ga-learner-dsb-repo
b39911dc6833cc102e7c71638083ab18fa583164
[ "MIT" ]
null
null
null
# -------------- ##File path for the file file_path #Code starts here def read_file(path): file=open(path,'r') sentence=file.readline() file.close() return sentence sample_message=read_file(file_path) print(sample_message) # -------------- #Code starts here file_path_1 file_path_2...
18.976563
129
0.680527
47f92bfe6418567aa76f1db25f590b986f1c496e
5,384
py
Python
homeassistant/components/alarm_control_panel/__init__.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
4
2019-07-03T22:36:57.000Z
2019-08-10T15:33:25.000Z
homeassistant/components/alarm_control_panel/__init__.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
7
2019-08-23T05:26:02.000Z
2022-03-11T23:57:18.000Z
homeassistant/components/alarm_control_panel/__init__.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
2
2018-08-15T03:59:35.000Z
2018-10-18T12:20:05.000Z
"""Component to interface with an alarm control panel.""" from datetime import timedelta import logging import voluptuous as vol from homeassistant.const import ( ATTR_CODE, ATTR_CODE_FORMAT, ATTR_ENTITY_ID, SERVICE_ALARM_TRIGGER, SERVICE_ALARM_DISARM, SERVICE_ALARM_ARM_HOME, SERVICE_ALARM_ARM_AWAY, SERVI...
31.302326
75
0.699294
c2b10e2644d01f7be8e83d75ad83cda29bafd088
19,067
py
Python
nikola/filters.py
ivanyschen/nikola
c75adc76f008af7ac37b009f71764f5bf0c48e87
[ "MIT" ]
1,901
2015-01-02T02:49:51.000Z
2022-03-30T23:31:35.000Z
nikola/filters.py
ivanyschen/nikola
c75adc76f008af7ac37b009f71764f5bf0c48e87
[ "MIT" ]
1,755
2015-01-01T08:17:16.000Z
2022-03-24T18:02:22.000Z
nikola/filters.py
ivanyschen/nikola
c75adc76f008af7ac37b009f71764f5bf0c48e87
[ "MIT" ]
421
2015-01-02T18:06:37.000Z
2022-03-28T23:18:54.000Z
# -*- coding: utf-8 -*- # Copyright © 2012-2021 Roberto Alsina and others. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the # Software without restriction, including without limitation # the rights t...
36.95155
245
0.650443
e09051afa4a335fb9aa7f735671a2f12aaa267fb
594
py
Python
examples/oointegrate/setup.py
dagss/cython-pydata12
eeaa6a3bfdc503a35538a1ea3777990a4489b2bc
[ "CC-BY-3.0" ]
2
2015-08-30T12:31:15.000Z
2018-06-29T03:02:48.000Z
examples/oointegrate/setup.py
dagss/cython-pydata12
eeaa6a3bfdc503a35538a1ea3777990a4489b2bc
[ "CC-BY-3.0" ]
null
null
null
examples/oointegrate/setup.py
dagss/cython-pydata12
eeaa6a3bfdc503a35538a1ea3777990a4489b2bc
[ "CC-BY-3.0" ]
null
null
null
# Run with: # # python setup.py build_ext -i # # to compile Cython extensions in-place (useful during development) from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext extensions = [ Extension("integrate", ["integrate.pyx"]), Extension("funcs", [...
27
69
0.723906
1ce147bbd48dc1d8f532241080db54d74419185b
4,004
py
Python
envi/archs/i386/regs.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
16
2015-12-10T06:18:16.000Z
2021-09-11T21:42:16.000Z
envi/archs/i386/regs.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
5
2018-10-12T21:07:24.000Z
2018-10-12T21:08:49.000Z
envi/archs/i386/regs.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
6
2016-03-20T11:15:51.000Z
2021-08-06T07:32:42.000Z
""" Home of the i386 module's register specs/code. """ import envi.registers as e_reg ## Definitions for some of the i386 MSRs from intel... MSR_DEBUGCTL = 0x01d9 # Intel p4 and forward, debug behavior control MSR_DEBUGCTL_LBR = 0x0001 # last branch recording (in msr's) MSR_DEBUGCTL_BTF = 0...
37.420561
116
0.586164
ecf7e06134735e27c34b76364c160b7929e63cad
6,572
py
Python
salt/modules/bower.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2021-08-14T13:48:38.000Z
2021-08-14T13:48:38.000Z
salt/modules/bower.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
3
2015-03-31T14:44:05.000Z
2015-06-18T19:02:24.000Z
salt/modules/bower.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
# -*- coding: utf-8 -*- ''' Manage and query Bower packages =============================== This module manages the installed packages using Bower. Note that npm, git and bower must be installed for this module to be available. ''' from __future__ import absolute_import # Import python libs import json import loggin...
25.374517
87
0.58171
09d1b223ffdde9ac77c05611270177483f6cbc96
1,311
py
Python
rpython/translator/backendopt/tailrecursion.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/translator/backendopt/tailrecursion.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/translator/backendopt/tailrecursion.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
from __future__ import print_function from rpython.flowspace.model import mkentrymap, checkgraph # this transformation is very academical -- I had too much time def _remove_tail_call(translator, graph, block): print("removing tail call") assert len(block.exits) == 1 assert block.exits[0].target is graph.r...
37.457143
64
0.665141
bf4a8bb574bb1734e75f955bd006a0a4520728e4
397
py
Python
samples/python/setup.py
secretsayan/indy-sdk
e32fddd87e3b02316af868f41ddf078989a5210b
[ "Apache-2.0" ]
null
null
null
samples/python/setup.py
secretsayan/indy-sdk
e32fddd87e3b02316af868f41ddf078989a5210b
[ "Apache-2.0" ]
null
null
null
samples/python/setup.py
secretsayan/indy-sdk
e32fddd87e3b02316af868f41ddf078989a5210b
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup( name='python-indy-sdk-sample', version='0.0.1', url='https://github.com/hyperledger/indy-sdk', license='MIT/Apache-2.0', author='Artem Ivanov', author_email='artem.ivanov@dsr-company.com', description='This is the sample of usage python wrapper for Hy...
30.538462
87
0.692695
bdfd86b5ae9d1a206c8ab8a26d20cedbbc4fe361
7,677
py
Python
ptsemseg/models/deeplab_depth.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
25
2019-02-09T21:19:15.000Z
2022-01-24T22:11:20.000Z
ptsemseg/models/deeplab_depth.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
null
null
null
ptsemseg/models/deeplab_depth.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
4
2019-02-21T07:08:06.000Z
2022-01-25T12:43:24.000Z
# deeplab v2: ResNet101 + ASPP, no multi scale input, for depth import torch.nn as nn import math import torch import numpy as np import torch.nn.functional as F from collections import OrderedDict affine_par = True # allow weights and bias in batch normalization layers or not learnable_bn_weights = False # allow lea...
35.215596
128
0.608701
d72615e3ec470e1109565fdf985cf29886a51360
291
py
Python
tests/tests_basics.py
jayvdb/machete
947ea26200dbad9ef086eb6907eceec9fb715cdb
[ "MIT" ]
null
null
null
tests/tests_basics.py
jayvdb/machete
947ea26200dbad9ef086eb6907eceec9fb715cdb
[ "MIT" ]
2
2015-01-06T13:22:41.000Z
2020-01-21T10:14:04.000Z
tests/tests_basics.py
jayvdb/machete
947ea26200dbad9ef086eb6907eceec9fb715cdb
[ "MIT" ]
1
2020-01-14T16:02:05.000Z
2020-01-14T16:02:05.000Z
# -*- coding: utf-8 -*- # pylint: disable-msg=E0611 """ Example test to check version number """ from nose.tools import assert_equals # @UnresolvedImport from machete.submodule import module def test_os_call(): feedback = module.os_call('echo 1') assert_equals(feedback, '1\n')
22.384615
57
0.707904
b0286d81dd889e5479d3f009db3f1b6063cd6c32
2,207
py
Python
webdjango/views/rewrites/CoreRelationshipView.py
myog-io/WebDjangular
73d3c40aa449eec5acc59d4493ee94059bddabbd
[ "MIT" ]
1
2018-09-14T15:17:19.000Z
2018-09-14T15:17:19.000Z
webdjango/views/rewrites/CoreRelationshipView.py
MyOwnGamesLLC/WebDjangular
73d3c40aa449eec5acc59d4493ee94059bddabbd
[ "MIT" ]
41
2018-12-16T16:58:54.000Z
2019-02-22T20:08:58.000Z
webdjango/views/rewrites/CoreRelationshipView.py
myog-io/WebDjangular
73d3c40aa449eec5acc59d4493ee94059bddabbd
[ "MIT" ]
1
2019-12-10T09:32:49.000Z
2019-12-10T09:32:49.000Z
from rest_framework_json_api.views import RelationshipView from django.db.models.manager import Manager from rest_framework.response import Response import json class CoreRelationshipView(RelationshipView): ''' We are overring the patch function in the RelationshipView because the origin...
49.044444
119
0.70956
56b7e636729e164b91a68c4c6d51c54bb5d74e30
18
py
Python
notebooks/python_recap/_solutions/01-basic28.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
65
2017-03-21T09:15:40.000Z
2022-02-01T23:43:08.000Z
notebooks/python_recap/_solutions/01-basic28.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
100
2016-12-15T03:44:06.000Z
2022-03-07T08:14:07.000Z
notebooks/python_recap/_solutions/01-basic28.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
52
2016-12-19T07:48:52.000Z
2022-02-19T17:53:48.000Z
a_third_list[::-1]
18
18
0.722222
03c9004d604a55e4ce945347c2bd27247a235b86
260
py
Python
Aula09/exercicio_25.py
brenuvida/cursoemvideo
8d482ea802ed93d984131f72188288c4ebdfc532
[ "MIT" ]
null
null
null
Aula09/exercicio_25.py
brenuvida/cursoemvideo
8d482ea802ed93d984131f72188288c4ebdfc532
[ "MIT" ]
null
null
null
Aula09/exercicio_25.py
brenuvida/cursoemvideo
8d482ea802ed93d984131f72188288c4ebdfc532
[ "MIT" ]
null
null
null
nome = input('Digite um nome completo: ') nome = nome.strip() print ('O nome digitado é: {}'.format(nome)) nome = nome.lower() print('Verificando se existe a palavra Silva no nome... \n') print('A palavra Silva existe neste nome?: {}'.format('silva' in nome))
37.142857
71
0.684615
604dbb41f945c60118614a6051f87fbfd444da30
80,027
py
Python
google/cloud/domains_v1/services/domains/async_client.py
LaudateCorpus1/python-domains
2494a6f379c911ecdddf1298abfb5ad7863906f1
[ "Apache-2.0" ]
null
null
null
google/cloud/domains_v1/services/domains/async_client.py
LaudateCorpus1/python-domains
2494a6f379c911ecdddf1298abfb5ad7863906f1
[ "Apache-2.0" ]
null
null
null
google/cloud/domains_v1/services/domains/async_client.py
LaudateCorpus1/python-domains
2494a6f379c911ecdddf1298abfb5ad7863906f1
[ "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...
43.946733
184
0.621178
89b951cd3fb3cb10fc495c81de4601ea801394a9
1,419
py
Python
setup.py
EgorBu/keyper
90d1094c76ce769630e9a143a9c45c7f410400c1
[ "MIT" ]
null
null
null
setup.py
EgorBu/keyper
90d1094c76ce769630e9a143a9c45c7f410400c1
[ "MIT" ]
null
null
null
setup.py
EgorBu/keyper
90d1094c76ce769630e9a143a9c45c7f410400c1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from os import path from setuptools import setup, find_packages import keyper def run_setup(): """Run package setup.""" here = path.abspath(path.dirname(__file__)) # Get the long description from the README file try: with open(path.join(here, 'README.md')) as f: ...
28.959184
69
0.599013
470255fec72e716ed07f959795284e59d4b70492
15,818
py
Python
MIRD/MIRDCalculator.py
mghro/MIRDCalculation
aa2435d0f77a01c81c519a6f828f508cacf55830
[ "MIT" ]
null
null
null
MIRD/MIRDCalculator.py
mghro/MIRDCalculation
aa2435d0f77a01c81c519a6f828f508cacf55830
[ "MIT" ]
null
null
null
MIRD/MIRDCalculator.py
mghro/MIRDCalculation
aa2435d0f77a01c81c519a6f828f508cacf55830
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 28 11:45:58 2021 @author: alejandrobertolet """ import numpy as np from DICOM_RT import DicomPatient as dcmpat from MIRD import Svalues # Units mCi = 37 #1mCi = 37 MBq Gy = 1e3 #1 Gy = 1000 mGy def GetMIRDDoseInDICOM(basepath, nameDicom, radionu...
66.1841
178
0.465419
754892aa5e32e413fcd239cff4bd666fc07ddd2f
541
py
Python
helloworld/main.py
sota0121/fastapi-sample
a434842639535f211f3cdba6c2b2308863dc83ba
[ "MIT" ]
null
null
null
helloworld/main.py
sota0121/fastapi-sample
a434842639535f211f3cdba6c2b2308863dc83ba
[ "MIT" ]
null
null
null
helloworld/main.py
sota0121/fastapi-sample
a434842639535f211f3cdba6c2b2308863dc83ba
[ "MIT" ]
null
null
null
"""Hello world API - ref: https://fastapi.tiangolo.com/ja/#_5 """ from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float is_offer: bool = None @app.get('/') def read_root(): return {"Hello": "World"} @app.get('/items/{item_id}...
18.033333
55
0.645102
3a440668c601078d5f7038319f3e8678db62ed69
8,565
py
Python
modules/runnable/dlExp14.py
Asichurter/Few-Shot-Project
865cd6aa7b996c518dfa48dcc9ffad90445f9efe
[ "MIT" ]
null
null
null
modules/runnable/dlExp14.py
Asichurter/Few-Shot-Project
865cd6aa7b996c518dfa48dcc9ffad90445f9efe
[ "MIT" ]
null
null
null
modules/runnable/dlExp14.py
Asichurter/Few-Shot-Project
865cd6aa7b996c518dfa48dcc9ffad90445f9efe
[ "MIT" ]
null
null
null
# 本实验利用训练好的模型将验证集可视化 import matplotlib.pyplot as plt import numpy as np from sklearn.manifold import MDS import os from torch.utils.data.dataloader import DataLoader from modules.model.PrototypicalNet import ProtoNet from modules.utils.datasets import FewShotRNDataset, FewShotFileDataset, get_RN_sampler # 每个类多少个样本,即...
28.55
104
0.579802
83d3662ad12e54619fb049676144d66268ebf6b3
1,442
py
Python
tool/reprocli/packer.py
M3nin0/experiment-reproducible-research-portal
76e8bd51c1a9ea4004a52bfeb9376212455663dd
[ "BSD-2-Clause" ]
null
null
null
tool/reprocli/packer.py
M3nin0/experiment-reproducible-research-portal
76e8bd51c1a9ea4004a52bfeb9376212455663dd
[ "BSD-2-Clause" ]
null
null
null
tool/reprocli/packer.py
M3nin0/experiment-reproducible-research-portal
76e8bd51c1a9ea4004a52bfeb9376212455663dd
[ "BSD-2-Clause" ]
null
null
null
import os import bagit import shutil import tempfile from .models import CompendiumPack def compendium_pack(compendium_directory: str, compendium_out: str = None) -> CompendiumPack: """BagIt a Compendium Args: compendium_directory (str): Research Compendium Path compendium_out (str): output...
30.680851
93
0.734397
3c94af08c15f2d69694efb3b97f9beda95102574
44,172
py
Python
sympy/matrices/dense.py
pv/sympy
ee2374aa2de2d730aafa1fdefbdffe08b94041ff
[ "BSD-3-Clause" ]
1
2016-02-13T15:46:16.000Z
2016-02-13T15:46:16.000Z
sympy/matrices/dense.py
ojengwa/sympy
f90e7a8e4fd8fa9e7d6c6fecb4c7efe8f987ec60
[ "BSD-3-Clause" ]
null
null
null
sympy/matrices/dense.py
ojengwa/sympy
f90e7a8e4fd8fa9e7d6c6fecb4c7efe8f987ec60
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division import random from sympy.core.basic import Basic from sympy.core.compatibility import is_sequence, as_int from sympy.core.function import count_ops from sympy.core.decorators import call_highest_priority from sympy.core.singleton import S from sympy.core.symbol import S...
26.230404
95
0.492258
0cceeb1772066592b90ccfdcc61293382daa9d84
421
py
Python
dfwtaichi/styles/migrations/0002_series_take_roll.py
bchip50/dfwtaichi-pc
95a6c286db5fb01b125a4808b4c47214bf4f68c4
[ "MIT" ]
null
null
null
dfwtaichi/styles/migrations/0002_series_take_roll.py
bchip50/dfwtaichi-pc
95a6c286db5fb01b125a4808b4c47214bf4f68c4
[ "MIT" ]
null
null
null
dfwtaichi/styles/migrations/0002_series_take_roll.py
bchip50/dfwtaichi-pc
95a6c286db5fb01b125a4808b4c47214bf4f68c4
[ "MIT" ]
null
null
null
# Generated by Django 3.0.11 on 2020-12-20 22:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('styles', '0001_initial'), ] operations = [ migrations.AddField( model_name='series', name='take_roll', ...
22.157895
95
0.610451
10e6641267d471c7eb0d460c672183b96a89d369
2,547
py
Python
Chapter08/ch8_r1_gates_data.py
georgekorpas/Quantum-Computing-in-Practice-with-Qiskit-and-IBM-Quantum-Experience
938123d051c5bab72110011b3a05e515bb69ca09
[ "MIT" ]
24
2020-11-21T20:33:51.000Z
2022-03-26T06:41:27.000Z
Chapter08/ch8_r1_gates_data.py
videomover/Quantum-Computing-in-Practice-with-Qiskit-and-IBM-Quantum-Experience
938123d051c5bab72110011b3a05e515bb69ca09
[ "MIT" ]
2
2021-02-07T14:32:12.000Z
2022-03-25T07:23:46.000Z
Chapter08/ch8_r1_gates_data.py
videomover/Quantum-Computing-in-Practice-with-Qiskit-and-IBM-Quantum-Experience
938123d051c5bab72110011b3a05e515bb69ca09
[ "MIT" ]
16
2020-11-03T07:49:11.000Z
2022-03-26T06:41:29.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created Nov 2020 @author: hassi """ print("Ch 8: Qubit properties") print("----------------------") from qiskit import IBMQ print("Getting providers...") if not IBMQ.active_account(): IBMQ.load_account() provider = IBMQ.get_provider() def select_backend(): ...
38.014925
167
0.623871
d3296ce227239c6e7fae7fb5534787b0c8569043
8,064
py
Python
src/storage-blob-preview/azext_storage_blob_preview/vendored_sdks/azure_mgmt_storage/v2021_01_01/operations/_deleted_accounts_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2019-08-23T21:14:00.000Z
2021-09-07T18:32:34.000Z
src/storage-blob-preview/azext_storage_blob_preview/vendored_sdks/azure_mgmt_storage/v2021_01_01/operations/_deleted_accounts_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/storage-blob-preview/azext_storage_blob_preview/vendored_sdks/azure_mgmt_storage/v2021_01_01/operations/_deleted_accounts_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.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 may ...
46.08
163
0.660466
19c1e51acdebc7fe7ae42a507ebaab814b9f64d0
436
py
Python
dizoo/mujoco/entry/mujoco_cql_main.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
1
2022-03-21T16:15:39.000Z
2022-03-21T16:15:39.000Z
dizoo/mujoco/entry/mujoco_cql_main.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
null
null
null
dizoo/mujoco/entry/mujoco_cql_main.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
null
null
null
from dizoo.mujoco.config.hopper_cql_config import main_config, create_config from ding.entry import serial_pipeline_offline def train(args): config = [main_config, create_config] serial_pipeline_offline(config, seed=args.seed) if __name__ == "__main__": import argparse parser = argparse.ArgumentPar...
24.222222
76
0.736239
d71a3a584a3362a880ddd80c0ce2472a2e92d2f4
3,136
py
Python
posthog/api/instance_settings.py
dorucioclea/posthog
a7e792c3fc5c1abc70d8167e1ead12d4ea24f17a
[ "MIT" ]
null
null
null
posthog/api/instance_settings.py
dorucioclea/posthog
a7e792c3fc5c1abc70d8167e1ead12d4ea24f17a
[ "MIT" ]
null
null
null
posthog/api/instance_settings.py
dorucioclea/posthog
a7e792c3fc5c1abc70d8167e1ead12d4ea24f17a
[ "MIT" ]
null
null
null
import re from typing import Any, Dict, List, Union from constance import config, settings from rest_framework import exceptions, mixins, permissions, serializers, viewsets from posthog.permissions import IsStaffUser from posthog.settings import SETTINGS_ALLOWING_API_OVERRIDE from posthog.utils import str_to_bool d...
34.844444
117
0.694834
c88c6edde2af2277a6321d68c1bfd0dbea50a780
346
py
Python
setup.py
MatthewJA/ask-first
4b6b91508f52202bd64802607710de192237df1a
[ "BSD-3-Clause" ]
null
null
null
setup.py
MatthewJA/ask-first
4b6b91508f52202bd64802607710de192237df1a
[ "BSD-3-Clause" ]
2
2018-03-27T03:37:09.000Z
2018-03-27T05:57:55.000Z
setup.py
MatthewJA/ask-first
4b6b91508f52202bd64802607710de192237df1a
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup setup(name='ask_first', version='0.1.0', description='Query FIRST', url='http://github.com/MatthewJA/ask-first', author='Matthew Alger', author_email='matthew.alger@anu.edu.au', license='License :: OSI Approved :: BSD License', packages=['ask_first...
28.833333
55
0.641618
d63a0bd0fc832c9ba8bcca0c9cb739de1dfda445
79,193
py
Python
Exporters/Blender/io_export_babylon.py
MavenRain/Babylon.js
42dd5053fa1cc46717b63d8a69698163e6dd1f49
[ "Apache-2.0" ]
null
null
null
Exporters/Blender/io_export_babylon.py
MavenRain/Babylon.js
42dd5053fa1cc46717b63d8a69698163e6dd1f49
[ "Apache-2.0" ]
null
null
null
Exporters/Blender/io_export_babylon.py
MavenRain/Babylon.js
42dd5053fa1cc46717b63d8a69698163e6dd1f49
[ "Apache-2.0" ]
null
null
null
bl_info = { 'name': 'Babylon.js', 'author': 'David Catuhe, Jeff Palmer', 'version': (1, 1, 0), 'blender': (2, 72, 0), "location": "File > Export > Babylon.js (.babylon)", "description": "Export Babylon.js scenes (.babylon)", 'wiki_url': 'https://github.com/BabylonJS/Babylon.js/wiki/13...
45.40883
188
0.532863
bf9432f3201b12f9b88f4406b876b5c608818d3b
9,937
py
Python
integration-test/844-normalize-poi-kind.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
null
null
null
integration-test/844-normalize-poi-kind.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
2
2021-03-31T20:22:37.000Z
2021-12-13T20:50:11.000Z
integration-test/844-normalize-poi-kind.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from shapely.wkt import loads as wkt_loads import dsl from . import FixtureTest class NormalizePoiKind(FixtureTest): def test_aeroway_gate(self): # Node: Gate G102 (1096088604) self.generate_fixtures(dsl.way(1096088604, wkt_loads('POINT (-122.392940381859 37.618783212573)...
121.182927
1,691
0.743886
0738849e5eb5ba3fb6dee3ac81bfccf3e9b97e28
28,741
py
Python
scripts/functional_tests.py
fmareuil/Galaxy_test_pasteur
6f84fb0fc52e3e7dd358623b5da5354c66e16a5f
[ "CC-BY-3.0" ]
null
null
null
scripts/functional_tests.py
fmareuil/Galaxy_test_pasteur
6f84fb0fc52e3e7dd358623b5da5354c66e16a5f
[ "CC-BY-3.0" ]
null
null
null
scripts/functional_tests.py
fmareuil/Galaxy_test_pasteur
6f84fb0fc52e3e7dd358623b5da5354c66e16a5f
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python import os import sys import shutil import tempfile import re from ConfigParser import SafeConfigParser # Assume we are run from the galaxy root directory, add lib to the python path cwd = os.getcwd() new_path = [ os.path.join( cwd, "lib" ), os.path.join( cwd, "test" ) ] new_path.extend( sys.path...
47.742525
164
0.635399
75710657b5fa76225591dfb03609c1d1dc995bb1
1,792
py
Python
winchester/db/migrations/versions/3ab6d7bf80cd_.py
SandyWalsh/stacktach-winchester
ac49955386b695868945a28b6597fe72b3b657e6
[ "Apache-2.0" ]
null
null
null
winchester/db/migrations/versions/3ab6d7bf80cd_.py
SandyWalsh/stacktach-winchester
ac49955386b695868945a28b6597fe72b3b657e6
[ "Apache-2.0" ]
null
null
null
winchester/db/migrations/versions/3ab6d7bf80cd_.py
SandyWalsh/stacktach-winchester
ac49955386b695868945a28b6597fe72b3b657e6
[ "Apache-2.0" ]
null
null
null
"""Initial Event schema. Revision ID: 3ab6d7bf80cd Revises: None Create Date: 2014-06-26 01:36:42.792353 """ # revision identifiers, used by Alembic. revision = '3ab6d7bf80cd' down_revision = None from alembic import op import sqlalchemy as sa from winchester import models def upgrade(): ### commands auto gene...
33.185185
70
0.676897
95b932c93f3ac52120b779eccd7b213ccaa14eee
607
py
Python
reinforcement_learning/rl_predictive_autoscaling_coach_customEnv/src/gymhelper.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
5
2019-01-19T23:53:35.000Z
2022-01-29T14:04:31.000Z
reinforcement_learning/rl_predictive_autoscaling_coach_customEnv/src/gymhelper.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
6
2020-01-28T23:08:49.000Z
2022-02-10T00:27:19.000Z
reinforcement_learning/rl_predictive_autoscaling_coach_customEnv/src/gymhelper.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
8
2020-12-14T15:49:24.000Z
2022-03-23T18:38:36.000Z
import numpy as np from gym.spaces import Discrete, Box def box_space_from_description(dimension_list): """Takes a list of dimension descriptions, and returns a gym.space.Box. Each dimension is described by a tuple of (name, low_value, high_value, description). Currently name & description are unused. ...
31.947368
89
0.6771
296e101d3e45c6bf7ecb74cbc5da521a38c3c86e
553
py
Python
src/data/1270.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1270.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1270.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
from collections import deque N, Q = map(int, input().split()) e = [[] for _ in range(N)] for _ in range(N - 1): a, b = map(int, input().split()) e[a - 1].append(b - 1) e[b - 1].append(a - 1) q = deque() dst = [-1] * N q.append(0) dst[0] = 0 while q: now = q.popleft() for nxt in e[now]: if...
20.481481
42
0.471971
491e1b7efc96a4dced14924722cc202a2aafcf58
1,315
py
Python
TensorFlow/Scripts/Functional_API/ANN.py
DebadityaShome/Deep-learning-practice
159f3cbaf612ef747ceee6580a79ceb1be0e2f78
[ "Apache-2.0" ]
null
null
null
TensorFlow/Scripts/Functional_API/ANN.py
DebadityaShome/Deep-learning-practice
159f3cbaf612ef747ceee6580a79ceb1be0e2f78
[ "Apache-2.0" ]
null
null
null
TensorFlow/Scripts/Functional_API/ANN.py
DebadityaShome/Deep-learning-practice
159f3cbaf612ef747ceee6580a79ceb1be0e2f78
[ "Apache-2.0" ]
null
null
null
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # Remove tf error warnings import tensorflow as tf from tensorflow.keras.datasets import mnist from tensorflow.keras import layers from tensorflow import keras physical_devices = tf.config.list_physical_devices('GPU') tf.config.experimental.set_memory_growth(physical_...
43.833333
179
0.758175
54e5fdb7931a20e5f099bcf8325836b671b57acb
14,027
py
Python
makaniino/data_preprocess/tc_classes.py
ecmwf-projects/makaniino
5520bfb7a242d98374bc2e0a1e230c18269a2f16
[ "Apache-2.0" ]
null
null
null
makaniino/data_preprocess/tc_classes.py
ecmwf-projects/makaniino
5520bfb7a242d98374bc2e0a1e230c18269a2f16
[ "Apache-2.0" ]
null
null
null
makaniino/data_preprocess/tc_classes.py
ecmwf-projects/makaniino
5520bfb7a242d98374bc2e0a1e230c18269a2f16
[ "Apache-2.0" ]
null
null
null
# # (C) Copyright 2000- NOAA. # # (C) Copyright 2000- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of ...
30.559913
89
0.492194
00a8a6a5e76bef5c343437447b4b2909ae9f1e9e
5,539
py
Python
docs/source/conf.py
m3at/backlight
a80ccbe6193e1fc4c169df2ebc2bf49876d4d39d
[ "MIT" ]
null
null
null
docs/source/conf.py
m3at/backlight
a80ccbe6193e1fc4c169df2ebc2bf49876d4d39d
[ "MIT" ]
null
null
null
docs/source/conf.py
m3at/backlight
a80ccbe6193e1fc4c169df2ebc2bf49876d4d39d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.940541
83
0.636396
ccafe49626a2c241308861c348eeee00ad3414c1
2,910
py
Python
api/apps/users/serializers.py
polart/vagrant-registry
47fa53a93d506f2501f333a256ccf36e49970789
[ "MIT" ]
8
2020-03-16T21:41:08.000Z
2021-12-16T05:44:04.000Z
api/apps/users/serializers.py
polart/vagrant-registry
47fa53a93d506f2501f333a256ccf36e49970789
[ "MIT" ]
6
2020-03-21T11:23:18.000Z
2022-02-27T01:16:18.000Z
api/apps/users/serializers.py
polart/vagrant-registry
47fa53a93d506f2501f333a256ccf36e49970789
[ "MIT" ]
null
null
null
import logging from django.contrib.auth import get_user_model from rest_framework import serializers from rest_framework.reverse import reverse from rest_framework.serializers import raise_errors_on_nested_writes from apps.boxes.models import Box from apps.users.models import UserProfile logger = logging.getLogger(...
31.630435
81
0.628522
5dfa3f9c6fcc44e3d33bb78fcd44ee0927cbae88
16,494
py
Python
meshio/mdpa_io.py
ZhimingGuo/meshio
e5bafc42084f3e4ffeebacb001fe099f57e99bf6
[ "MIT" ]
null
null
null
meshio/mdpa_io.py
ZhimingGuo/meshio
e5bafc42084f3e4ffeebacb001fe099f57e99bf6
[ "MIT" ]
null
null
null
meshio/mdpa_io.py
ZhimingGuo/meshio
e5bafc42084f3e4ffeebacb001fe099f57e99bf6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # """ I/O for KratosMultiphysics's mdpa format, cf. <https://github.com/KratosMultiphysics/Kratos/wiki/Input-data>. """ import logging import numpy from .mesh import Mesh from .vtk_io import raw_from_cell_data from .gmsh_io import num_nodes_per_cell ## We check if we can read/write the mesh n...
31.903288
138
0.587365
28f3966289a7abf808e5d682fa59dd1c01fb39ed
14,013
py
Python
vispy/scene/widgets/console.py
3DAlgoLab/vispy
91972307cf336674aad58198fb26b9e46f8f9ca1
[ "BSD-3-Clause" ]
2,617
2015-01-02T07:52:18.000Z
2022-03-29T19:31:15.000Z
vispy/scene/widgets/console.py
3DAlgoLab/vispy
91972307cf336674aad58198fb26b9e46f8f9ca1
[ "BSD-3-Clause" ]
1,674
2015-01-01T00:36:08.000Z
2022-03-31T19:35:56.000Z
vispy/scene/widgets/console.py
3DAlgoLab/vispy
91972307cf336674aad58198fb26b9e46f8f9ca1
[ "BSD-3-Clause" ]
719
2015-01-10T14:25:00.000Z
2022-03-02T13:24:56.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ----------------------------------------------------------------------------- "...
39.809659
79
0.582816
c9d113afce63ae9c2903c458a9dc82a95b560883
3,898
py
Python
src/model/instrument_handler.py
enriquecorimayo/Arbitraje-de-Tasas
6dbc474865a343d5279f81bd61b1567a7f165468
[ "MIT" ]
null
null
null
src/model/instrument_handler.py
enriquecorimayo/Arbitraje-de-Tasas
6dbc474865a343d5279f81bd61b1567a7f165468
[ "MIT" ]
null
null
null
src/model/instrument_handler.py
enriquecorimayo/Arbitraje-de-Tasas
6dbc474865a343d5279f81bd61b1567a7f165468
[ "MIT" ]
1
2022-02-21T14:10:42.000Z
2022-02-21T14:10:42.000Z
import re import datetime as dt from dateutil.parser import parse from collections import defaultdict import src.model.expired as exp import src.model.api_wrapper as wrapper class FutureContract: """ Clase para representar un contrato de futuro """ def __init__(self, ticker, underlier_ticker, maturit...
34.192982
116
0.657517
b269075e478f7d847da4e31cb107597b3afe15b7
1,270
py
Python
src/compas_slicer/utilities/terminal_command.py
stratocaster/compas_slicer
10326507d6d4093f0dfee8582a6d2f4f3b68d1a5
[ "MIT" ]
14
2021-01-02T10:48:15.000Z
2022-03-18T17:18:31.000Z
src/compas_slicer/utilities/terminal_command.py
stratocaster/compas_slicer
10326507d6d4093f0dfee8582a6d2f4f3b68d1a5
[ "MIT" ]
34
2021-01-19T10:33:09.000Z
2022-03-14T07:37:45.000Z
src/compas_slicer/utilities/terminal_command.py
stratocaster/compas_slicer
10326507d6d4093f0dfee8582a6d2f4f3b68d1a5
[ "MIT" ]
9
2021-01-02T10:49:09.000Z
2022-03-22T18:35:55.000Z
""" TerminalCommand class is used to run commands from python as if we are in a shell/cmd """ import subprocess as p __all__ = ['TerminalCommand'] class TerminalCommand: def __init__(self, cmd, cwd=None, env=None): """ Creates a new command container. Note that this immediately executes t...
27.608696
90
0.629921
cf4768156f5b482728a4d8c9ac6dbe30e3e88e18
845
py
Python
torchio/__init__.py
mattwarkentin/torchio
45593e9b075a1731bdd3636f802d5cbab10d47d2
[ "Apache-2.0" ]
null
null
null
torchio/__init__.py
mattwarkentin/torchio
45593e9b075a1731bdd3636f802d5cbab10d47d2
[ "Apache-2.0" ]
null
null
null
torchio/__init__.py
mattwarkentin/torchio
45593e9b075a1731bdd3636f802d5cbab10d47d2
[ "Apache-2.0" ]
null
null
null
"""Top-level package for torchio.""" __author__ = """Fernando Perez-Garcia""" __email__ = 'fepegar@gmail.com' __version__ = '0.18.62' from . import utils from .constants import * # noqa: F401, F403 from .transforms import * # noqa: F401, F403 from .data import ( io, sampler, inference, SubjectsData...
16.9
45
0.617751
345c0eddf9a5a9158a53e0c7e4c81adb16e667ee
1,563
py
Python
Python/Examples/Macros/ForceProgramsMoveL.py
archformco/RoboDK-API
b3d0cad6a83f505811e2be273453ccb4579324f1
[ "MIT" ]
161
2018-03-23T01:27:08.000Z
2022-03-23T12:18:35.000Z
Python/Examples/Macros/ForceProgramsMoveL.py
OxideDevX/RoboDK-API
50357c38b2fcf58cf82d9b7bf61021cb900fd358
[ "MIT" ]
26
2018-11-19T10:18:58.000Z
2022-03-28T18:37:11.000Z
Python/Examples/Macros/ForceProgramsMoveL.py
OxideDevX/RoboDK-API
50357c38b2fcf58cf82d9b7bf61021cb900fd358
[ "MIT" ]
85
2018-03-22T19:25:35.000Z
2022-03-30T04:46:59.000Z
# This macro will override the first joint move in each program and set it as a linear move # WARNING! The configuration might not be set as desired and the robot may move in an undesired way (different from the simulated movements) from robolink import * # API to communicate with RoboDK from robodk import * # ...
36.348837
140
0.653231
e5afb0e95cea5eacea263c3aed776ddc48332cfb
994
py
Python
logs.py
arturosolutions/quanteodstocks
355f4aef8964431e9402ae0608096b123cfb89ed
[ "MIT" ]
null
null
null
logs.py
arturosolutions/quanteodstocks
355f4aef8964431e9402ae0608096b123cfb89ed
[ "MIT" ]
null
null
null
logs.py
arturosolutions/quanteodstocks
355f4aef8964431e9402ae0608096b123cfb89ed
[ "MIT" ]
null
null
null
import logging from logging.handlers import TimedRotatingFileHandler from settings import LOG, DEBUG def init(): level_mode = logging.DEBUG if DEBUG else logging.INFO logging.basicConfig(level=level_mode) logger = logging.getLogger() logger_database = logging.getLogger('DATABASE') logger_database...
32.064516
59
0.729376
372123cf92a7348ff9c640c5f7df5ff92ea0c02e
425
py
Python
hirez/smite/migrations/0005_ability_description.py
mehmetalpsumer/smite-django
64dfb4eae1c23d5338e47a1a7832d9f232ec6410
[ "MIT" ]
null
null
null
hirez/smite/migrations/0005_ability_description.py
mehmetalpsumer/smite-django
64dfb4eae1c23d5338e47a1a7832d9f232ec6410
[ "MIT" ]
null
null
null
hirez/smite/migrations/0005_ability_description.py
mehmetalpsumer/smite-django
64dfb4eae1c23d5338e47a1a7832d9f232ec6410
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-05-18 14:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('smite', '0004_auto_20180514_2137'), ] operations = [ migrations.AddField( model_name='ability', name='description', ...
21.25
51
0.595294
80faffcc2e22ae56301f0177535ed8f857b1a55a
147
py
Python
ava/teat.py
Achuttarsing/Slow-Fast-pytorch-implementation
4c47c8dce3096ec6a274bdd1d20d1e4fba789e48
[ "Apache-2.0" ]
96
2019-09-02T08:11:46.000Z
2022-03-25T08:14:45.000Z
ava/teat.py
Achuttarsing/Slow-Fast-pytorch-implementation
4c47c8dce3096ec6a274bdd1d20d1e4fba789e48
[ "Apache-2.0" ]
10
2019-09-06T14:32:52.000Z
2021-11-10T10:03:03.000Z
ava/teat.py
Achuttarsing/Slow-Fast-pytorch-implementation
4c47c8dce3096ec6a274bdd1d20d1e4fba789e48
[ "Apache-2.0" ]
17
2019-09-06T14:31:15.000Z
2022-03-30T18:53:09.000Z
import numpy as np def t(): list=[1,2,3,4,5] list=np.array(list) list2=[2,3] print(list[list2]) if __name__ == '__main__': t()
16.333333
26
0.564626
73d639668501201ae5c12d023d2cf05d0e23b466
988
py
Python
jeopardy/migrations/0004_auto_20150623_0805.py
codefisher/web_games
d09ffb8f86b24e04568b2a33c94aa49d80455715
[ "MIT" ]
null
null
null
jeopardy/migrations/0004_auto_20150623_0805.py
codefisher/web_games
d09ffb8f86b24e04568b2a33c94aa49d80455715
[ "MIT" ]
null
null
null
jeopardy/migrations/0004_auto_20150623_0805.py
codefisher/web_games
d09ffb8f86b24e04568b2a33c94aa49d80455715
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import jeopardy.models class Migration(migrations.Migration): dependencies = [ ('jeopardy', '0003_auto_20150622_1020'), ] operations = [ migrations.AddField( model_name='...
31.870968
138
0.637652
0be881a42f4b8c627982bf49ab8b8bb9a823b716
4,649
py
Python
scraping/betting_odds.py
Fournierp/FPL
6210c6ab9d872b46a10804ba8ee9f5d0df735308
[ "Apache-2.0" ]
2
2021-12-06T10:36:15.000Z
2022-03-01T19:12:05.000Z
scraping/betting_odds.py
Fournierp/FPL
6210c6ab9d872b46a10804ba8ee9f5d0df735308
[ "Apache-2.0" ]
null
null
null
scraping/betting_odds.py
Fournierp/FPL
6210c6ab9d872b46a10804ba8ee9f5d0df735308
[ "Apache-2.0" ]
null
null
null
import os import sys import requests import logging from datetime import date import json import pandas as pd from git import Git class Betting_Odds: """Scrape betting odds""" def __init__(self, logger, season_data): """ Args: logger (logging.Logger): Logging pacakge ...
29.611465
107
0.531512
204591526e8faf025b1c4b35932a8b87b5a95057
10,961
py
Python
Electrons/Scattering/Operators/TransmissionFunctions/FlatAtomDW_GPU.py
JKrehl/Electrons.py
33d2b84a668b60009e731643214d826422d06ae3
[ "0BSD" ]
null
null
null
Electrons/Scattering/Operators/TransmissionFunctions/FlatAtomDW_GPU.py
JKrehl/Electrons.py
33d2b84a668b60009e731643214d826422d06ae3
[ "0BSD" ]
null
null
null
Electrons/Scattering/Operators/TransmissionFunctions/FlatAtomDW_GPU.py
JKrehl/Electrons.py
33d2b84a668b60009e731643214d826422d06ae3
[ "0BSD" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2015 Jonas Krehl <Jonas.Krehl@triebenberg.de> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVID...
37.796552
246
0.667822
923f5c07b713028f916ee15cbdcd547f4fbb426e
2,112
py
Python
eda5/reklamacije/migrations/0001_initial.py
vasjapavlovic/eda5
bc4b387b24239ea1dfb927657f05ddabbf707479
[ "BSD-3-Clause" ]
null
null
null
eda5/reklamacije/migrations/0001_initial.py
vasjapavlovic/eda5
bc4b387b24239ea1dfb927657f05ddabbf707479
[ "BSD-3-Clause" ]
null
null
null
eda5/reklamacije/migrations/0001_initial.py
vasjapavlovic/eda5
bc4b387b24239ea1dfb927657f05ddabbf707479
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('delovninalogi', '0001_initial'), ('zahtevki', '0001_initial'), ('partnerji', '0001_initial'), ] operations = [ ...
52.8
192
0.610795
f8b24a7deb8d6002c649a709e8126581a202ba44
165
py
Python
tests/urls.py
radicalbiscuit/drf-writable-nested
b4da841b1eb64e476a5ce0158be176364ece6577
[ "BSD-2-Clause" ]
754
2017-05-22T21:36:40.000Z
2022-03-30T07:04:12.000Z
tests/urls.py
radicalbiscuit/drf-writable-nested
b4da841b1eb64e476a5ce0158be176364ece6577
[ "BSD-2-Clause" ]
149
2017-05-22T04:10:05.000Z
2022-03-31T19:04:41.000Z
tests/urls.py
radicalbiscuit/drf-writable-nested
b4da841b1eb64e476a5ce0158be176364ece6577
[ "BSD-2-Clause" ]
121
2017-06-23T20:40:10.000Z
2022-02-17T14:56:25.000Z
# This file is only needed to allow for migrations. # manage.py requires an app to have a urls.py from typing import Any, List urlpatterns = [] # type: List[Any]
20.625
51
0.721212
f83ed855aeb6a29971bcc206979fba944746b6fa
1,800
py
Python
src/dstoolbox/pandas/validation.py
RoyalTS/dstoolbox
2b79dd3f70882c90b03c5c898d82f795a0ae7a78
[ "MIT" ]
null
null
null
src/dstoolbox/pandas/validation.py
RoyalTS/dstoolbox
2b79dd3f70882c90b03c5c898d82f795a0ae7a78
[ "MIT" ]
null
null
null
src/dstoolbox/pandas/validation.py
RoyalTS/dstoolbox
2b79dd3f70882c90b03c5c898d82f795a0ae7a78
[ "MIT" ]
null
null
null
import typing from collections.abc import Iterable from itertools import tee import pandas as pd def _pairwise(iterable: Iterable) -> list: """Returns all pairs of successive elements of a list: s -> (s0,s1), (s1,s2), (s2, s3), ... """ a, b = tee(iterable) next(b, None) return zip(a, b) de...
29.032258
99
0.636667
d28913e3e179ae8b432be5c7bb332191c9a4a344
1,606
py
Python
Decision_tree.py
Dinesh-3/Decision-Tree-Approach-To-Predict-the-Chances-of-A-Person-being-Addicted-to-Substances-or-Alcohol
dcf317c58ce646a47e9b9ab633c280e43c77d63e
[ "MIT" ]
2
2020-06-30T05:52:48.000Z
2021-01-21T04:16:25.000Z
Decision_tree.py
Dinesh-3/Decision-Tree-Approach-To-Predict-the-Chances-of-A-Person-being-Addicted-to-Substances-or-Alcohol
dcf317c58ce646a47e9b9ab633c280e43c77d63e
[ "MIT" ]
null
null
null
Decision_tree.py
Dinesh-3/Decision-Tree-Approach-To-Predict-the-Chances-of-A-Person-being-Addicted-to-Substances-or-Alcohol
dcf317c58ce646a47e9b9ab633c280e43c77d63e
[ "MIT" ]
1
2020-06-24T10:41:14.000Z
2020-06-24T10:41:14.000Z
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ from pandas import Series, DataFrame import pandas as pd import numpy as np import os import matplotlib.pylab as plt from sklearn.cross_validation import train_test_split from sklearn.tree import DecisionTreeClassifier from s...
25.09375
95
0.752179
787bc1ed4b48ec342cbc0b1ce3479cafaa1d4f74
25,804
py
Python
h2o-bindings/bin/gen_python.py
shichaoji/h2o-3
8c46a5b3fc6254f3b67c260e2b5fc19e317be691
[ "Apache-2.0" ]
null
null
null
h2o-bindings/bin/gen_python.py
shichaoji/h2o-3
8c46a5b3fc6254f3b67c260e2b5fc19e317be691
[ "Apache-2.0" ]
null
null
null
h2o-bindings/bin/gen_python.py
shichaoji/h2o-3
8c46a5b3fc6254f3b67c260e2b5fc19e317be691
[ "Apache-2.0" ]
1
2018-10-23T02:52:55.000Z
2018-10-23T02:52:55.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import unicode_literals import bindings as bi import sys PY3 = sys.version_info[0] == 3 str_type = str if PY3 else (str, unicode) # We specify these not as real types, but as parameter annotations in the docstrings class PythonTypeTranslatorForCheck(bi.T...
47.608856
180
0.568594
92ec348d70f8bf730ea71868001d56a5d9e8fff8
11,169
py
Python
src_main/create_dot_graph.py
leedoowon/MTraceCheck
3c6906eb38579f6151c6f04159705a346adb25cc
[ "Apache-2.0" ]
3
2018-04-02T08:24:19.000Z
2021-01-08T03:19:19.000Z
src_main/create_dot_graph.py
leedoowon/MTraceCheck
3c6906eb38579f6151c6f04159705a346adb25cc
[ "Apache-2.0" ]
null
null
null
src_main/create_dot_graph.py
leedoowon/MTraceCheck
3c6906eb38579f6151c6f04159705a346adb25cc
[ "Apache-2.0" ]
1
2017-11-20T08:42:16.000Z
2017-11-20T08:42:16.000Z
#!/usr/bin/python ########################################################################## # # MTraceCheck # Copyright 2017 The Regents of the University of Michigan # Doowon Lee and Valeria Bertacco # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance ...
53.956522
170
0.566568
28a29892d120159d7da41b2ac82a3abb0b0ceb94
16,668
py
Python
tests/test_echo.py
noahdietz/storage-testbench
b122e47b69cabcdf981969068df0e9d805f129a3
[ "Apache-2.0" ]
null
null
null
tests/test_echo.py
noahdietz/storage-testbench
b122e47b69cabcdf981969068df0e9d805f129a3
[ "Apache-2.0" ]
null
null
null
tests/test_echo.py
noahdietz/storage-testbench
b122e47b69cabcdf981969068df0e9d805f129a3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2022 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 o...
41.257426
88
0.588253
7fc62d84a9ededdc9b44d0afa407fc4d594d0a21
19,609
py
Python
cmake/git-archive-all.py
xelofox/renoir_controller_abstract_interface
d04d287e7045ab15b3fc96ed8f8ce0bdedafd22d
[ "Apache-2.0" ]
null
null
null
cmake/git-archive-all.py
xelofox/renoir_controller_abstract_interface
d04d287e7045ab15b3fc96ed8f8ce0bdedafd22d
[ "Apache-2.0" ]
null
null
null
cmake/git-archive-all.py
xelofox/renoir_controller_abstract_interface
d04d287e7045ab15b3fc96ed8f8ce0bdedafd22d
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # This file comes originally from: https://github.com/Kentzo/git-archive-all # # coding=utf-8 # # The MIT License (MIT) # # Copyright (c) 2010 Ilya Kulakov # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "...
38.600394
125
0.614208
1b3c264c6d3d82855aa74028f2ff4670dc34f27a
2,766
py
Python
20190831_ul.py
bmorris3/rem
be758a989fba62eac2a24bc201e855ee08173b47
[ "MIT" ]
null
null
null
20190831_ul.py
bmorris3/rem
be758a989fba62eac2a24bc201e855ee08173b47
[ "MIT" ]
null
null
null
20190831_ul.py
bmorris3/rem
be758a989fba62eac2a24bc201e855ee08173b47
[ "MIT" ]
null
null
null
import os from glob import glob import numpy as np import matplotlib.pyplot as plt import astropy.units as u from astropy.stats import mad_std from toolkit import (photometry, transit_model_b, PhotometryResults, PCA_light_curve, params_b) # Image paths image_paths = sorted(glob('/Users/brettmorri...
34.148148
97
0.673897
87595bf6a237d5665f891ba14e412cc994809b5b
36,177
py
Python
ball_types.py
jeremycryan/7DRL-2021
3458928df78f10dbc3ebb39a00bd837cb2b078b2
[ "MIT" ]
2
2021-03-28T12:53:03.000Z
2021-04-03T09:44:38.000Z
ball_types.py
jeremycryan/7DRL-2021
3458928df78f10dbc3ebb39a00bd837cb2b078b2
[ "MIT" ]
null
null
null
ball_types.py
jeremycryan/7DRL-2021
3458928df78f10dbc3ebb39a00bd837cb2b078b2
[ "MIT" ]
null
null
null
from ball import Ball, Shelled from particle import BossGravityParticle, GravityParticle, ShieldParticle, HeartBubble, BombBubble, PoofBit, BubbleBurst, Spark from primitives import Pose import random import pygame import math from copy import copy from particle import PreBall import constants as c import time impo...
39.195016
191
0.571827
b4e5ab504a81189ce2a6b23235577bd9c576915a
653
py
Python
sovtoken/sovtoken/__metadata__.py
ryanwest6/token-plugin
806ce55517bb545d9a90bfe94bbb0ce250efeb95
[ "Apache-2.0" ]
null
null
null
sovtoken/sovtoken/__metadata__.py
ryanwest6/token-plugin
806ce55517bb545d9a90bfe94bbb0ce250efeb95
[ "Apache-2.0" ]
null
null
null
sovtoken/sovtoken/__metadata__.py
ryanwest6/token-plugin
806ce55517bb545d9a90bfe94bbb0ce250efeb95
[ "Apache-2.0" ]
1
2020-05-27T10:06:42.000Z
2020-05-27T10:06:42.000Z
""" sovtoken package metadata """ # TODO: Update the field values below where needed __title__ = 'sovtoken' __version_info__ = (0, 9, 6) __version__ = '.'.join(map(str, __version_info__)) __description__ = 'Token Plugin For Indy Plenum' __long_description__ = '' __url__ = 'https://github.com/evernym/plugin/tree/master...
22.517241
66
0.698315
c0ceb390d42068029bbbf1b96f3415fd5ae4e804
16,848
py
Python
aea/cli/remove.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
aea/cli/remove.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
aea/cli/remove.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
35.1
142
0.63972
0c6ebf83c0d2f41df38db36e2ade5518269ed841
9,447
py
Python
tests/test_cods.py
OCHA-DAP/hdx-scraper-cods
1627315ddc7304c26fe5f874973ebafa03dc4231
[ "MIT" ]
null
null
null
tests/test_cods.py
OCHA-DAP/hdx-scraper-cods
1627315ddc7304c26fe5f874973ebafa03dc4231
[ "MIT" ]
null
null
null
tests/test_cods.py
OCHA-DAP/hdx-scraper-cods
1627315ddc7304c26fe5f874973ebafa03dc4231
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Unit tests for cods. """ from os.path import join import hdx import pytest from hdx.data.vocabulary import Vocabulary from hdx.hdx_configuration import Configuration from hdx.hdx_locations import Locations from hdx.location.country import Country from hdx.utilities import is_valid_uuid from hdx....
43.334862
193
0.567058