hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
f9c51737f11d6cbc0b18591ba15b3cd405064add
1,080
py
Python
nemnis/client.py
criptalia/nis-python-client
2d09340850770768a006680287cf11b6e5bfedb4
[ "MIT" ]
17
2017-12-25T11:58:18.000Z
2021-03-24T14:50:42.000Z
nemnis/client.py
criptalia/nis-python-client
2d09340850770768a006680287cf11b6e5bfedb4
[ "MIT" ]
3
2017-12-20T14:13:43.000Z
2018-01-02T15:48:24.000Z
nemnis/client.py
criptalia/nis-python-client
2d09340850770768a006680287cf11b6e5bfedb4
[ "MIT" ]
16
2018-01-03T04:54:31.000Z
2022-02-21T10:10:36.000Z
__copyright__ = "2017 Oleksii Semeshchuk" __license__ = "License: MIT, see LICENSE." __version__ = "0.0.9" __author__ = "Oleksii Semeshchuk" __email__ = "semolex@live.com" ''' client ------ Module for the synchronous NIS client. ''' import requests from .core import AbstractClient, LOCALHOST_ENDPOINT __...
24.545455
68
0.616667
232e813bbaf034a14f2d3b8ac3f99bb5bc50cda0
135
py
Python
tests/inputs-external/from_numpy_docs/np_add.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
4
2019-10-06T18:01:24.000Z
2020-07-03T05:27:35.000Z
tests/inputs-external/from_numpy_docs/np_add.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
5
2021-06-07T15:50:04.000Z
2021-06-07T15:50:06.000Z
tests/inputs-external/from_numpy_docs/np_add.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
null
null
null
from numpy import * add(array([-1.2, 1.2]), array([1,3])) # array([-0.2, 4.2]) array([-1.2, 1.2]) + array([1,3]) # array([-0.2, 4.2])
19.285714
37
0.503704
b69c35896badd60ea42a14a4a1815a1e281dbdfa
13,026
py
Python
rdr_service/services/google_sheets_client.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/services/google_sheets_client.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/services/google_sheets_client.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
import backoff from googleapiclient import discovery from googleapiclient.errors import HttpError from oauth2client.service_account import ServiceAccountCredentials import socket from rdr_service.services.gcp_utils import gcp_get_iam_service_key_info class GoogleSheetsClient: """ Allows for interacting with ...
46.191489
120
0.659988
968691286fcd87be3fe87796133710cebdf96ea9
107
py
Python
Ship.py
SanjoSolutions/anno-1602-machine-learning
383e5583f03409f8e747701c544fcf323ff1a2de
[ "Unlicense" ]
null
null
null
Ship.py
SanjoSolutions/anno-1602-machine-learning
383e5583f03409f8e747701c544fcf323ff1a2de
[ "Unlicense" ]
null
null
null
Ship.py
SanjoSolutions/anno-1602-machine-learning
383e5583f03409f8e747701c544fcf323ff1a2de
[ "Unlicense" ]
null
null
null
class Ship: def __init__(self): self.player = None self.x = None self.y = None
17.833333
26
0.523364
07a5fc5c2237ddd4ef756feacd18a8816ba26b57
1,981
py
Python
jpy_video/monotext_widget.py
bendichter/Jupyter_Video_Widget
462f875007a773ac37f421ef8c2eb30009da447b
[ "MIT" ]
19
2017-07-31T16:07:52.000Z
2022-02-10T16:41:27.000Z
jpy_video/monotext_widget.py
bendichter/Jupyter_Video_Widget
462f875007a773ac37f421ef8c2eb30009da447b
[ "MIT" ]
5
2017-10-02T20:26:44.000Z
2021-03-12T19:06:26.000Z
jpy_video/monotext_widget.py
bendichter/Jupyter_Video_Widget
462f875007a773ac37f421ef8c2eb30009da447b
[ "MIT" ]
10
2018-04-09T12:12:59.000Z
2020-11-02T19:43:11.000Z
import ipywidgets # <pre style="font-family: DejaVu Sans Mono, Consolas, Lucida Console, Monospace;' # background-color: #f5f5f5; _html_template = """ <pre style="font-family: Monospace;' display: block; white-space: pre; font-variant: normal; ...
27.513889
105
0.51893
0a3c0cab830166fe6fdf934b704cc624072d82b2
9,001
py
Python
Tasks.py
fakegit/bilibili-live-tools
99dfb53d1dc3275e37f0be34e4199e672aecb1bf
[ "MIT" ]
1,018
2017-12-24T01:53:18.000Z
2022-03-25T09:25:02.000Z
Tasks.py
fakegit/bilibili-live-tools
99dfb53d1dc3275e37f0be34e4199e672aecb1bf
[ "MIT" ]
274
2017-12-29T13:58:19.000Z
2021-12-09T14:31:55.000Z
Tasks.py
fakegit/bilibili-live-tools
99dfb53d1dc3275e37f0be34e4199e672aecb1bf
[ "MIT" ]
240
2018-01-22T05:01:28.000Z
2022-01-21T06:30:57.000Z
from bilibili import bilibili import datetime import time import asyncio import traceback import os import configloader import utils import ast from printer import Printer class Tasks: def __init__(self): fileDir = os.path.dirname(os.path.realpath('__file__')) file_user = fileDir + "/conf/user.co...
44.559406
111
0.560715
7131ff5f396f53c0385f3268987febbf48e6746c
13,412
py
Python
elegantrl/train/run_smac.py
supersglzc/ElegantRL
727d28e075ef8c965ae59f2a12d01522c32696dd
[ "Apache-2.0" ]
1
2021-03-19T02:17:48.000Z
2021-03-19T02:17:48.000Z
elegantrl/train/run_smac.py
supersglzc/ElegantRL
727d28e075ef8c965ae59f2a12d01522c32696dd
[ "Apache-2.0" ]
null
null
null
elegantrl/train/run_smac.py
supersglzc/ElegantRL
727d28e075ef8c965ae59f2a12d01522c32696dd
[ "Apache-2.0" ]
null
null
null
import datetime import os import pprint import time import threading import torch as th from types import SimpleNamespace as SN from envs.utils.marl_utils import Logger,time_left, time_str,OneHot from os.path import dirname, abspath from agents.AgentQMix import AgentQMix from train.run_parallel import ParallelRunner fr...
37.255556
125
0.651432
48caab224c14b1bce6671d873d669275511aab78
923
py
Python
brocklyn_app/forms.py
Victoria045/Brocklyn
727101b9bc4463667ce2d816f8584bb994681f8e
[ "MIT" ]
null
null
null
brocklyn_app/forms.py
Victoria045/Brocklyn
727101b9bc4463667ce2d816f8584bb994681f8e
[ "MIT" ]
null
null
null
brocklyn_app/forms.py
Victoria045/Brocklyn
727101b9bc4463667ce2d816f8584bb994681f8e
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import Profile, NeighbourHood, Business, Post class UserRegisterForm(UserCreationForm): email = forms.EmailField(max_length=254, help_text='Required. Enter a valid email address....
27.969697
96
0.682557
a90e11f9f68c23eae81d45aef249dd69fd93cd1b
17,677
py
Python
tcapy/analysis/tcatickerloaderimpl.py
PontusHultkrantz/tcapy
3699c70031c95943f70a732849a1a6dac26760e9
[ "Apache-2.0" ]
null
null
null
tcapy/analysis/tcatickerloaderimpl.py
PontusHultkrantz/tcapy
3699c70031c95943f70a732849a1a6dac26760e9
[ "Apache-2.0" ]
null
null
null
tcapy/analysis/tcatickerloaderimpl.py
PontusHultkrantz/tcapy
3699c70031c95943f70a732849a1a6dac26760e9
[ "Apache-2.0" ]
1
2020-07-22T16:53:24.000Z
2020-07-22T16:53:24.000Z
from __future__ import division __author__ = 'saeedamen' # Saeed Amen / saeed@cuemacro.com # # Copyright 2018 Cuemacro Ltd. - http//www.cuemacro.com / @cuemacro # # See the License for the specific language governing permissions and limitations under the License. # import pandas as pd from tcapy.conf.constants impo...
48.831492
151
0.669627
d6149a95748ae1f394aa5903ef360f7e9608f962
2,407
py
Python
build/lib/deepneighbor/embed.py
LouisBIGDATA/deepneighbor
01837fff138726f2b25dbd02a8863f735149ff0d
[ "MIT" ]
7
2020-08-17T16:23:42.000Z
2022-02-18T01:15:28.000Z
build/lib/deepneighbor/embed.py
LouisBIGDATA/deepneighbor
01837fff138726f2b25dbd02a8863f735149ff0d
[ "MIT" ]
1
2020-08-19T05:25:37.000Z
2020-08-19T05:25:37.000Z
build/lib/deepneighbor/embed.py
Lou1sWang/deepneighbor
01837fff138726f2b25dbd02a8863f735149ff0d
[ "MIT" ]
null
null
null
''' input data: a dataframe with two columns: user item output: a embedding lookup dictionary {'user_id/item_id':[vector]} ''' from gensim.models import Word2Vec #import deepneighbor.config as config from deepneighbor.utils import generate_sentences from annoy import AnnoyIndex from sklearn import preprocessing EMB...
26.163043
91
0.601579
34ebe53578b2d6fffaa740fa182b23b1123cb344
346
py
Python
tests/test_operations_sliu99.py
dkucukarslan/challenges
2237298a74255d00a1329db535cb61d9e5e463ee
[ "MIT" ]
null
null
null
tests/test_operations_sliu99.py
dkucukarslan/challenges
2237298a74255d00a1329db535cb61d9e5e463ee
[ "MIT" ]
14
2018-09-18T02:00:28.000Z
2019-07-08T15:59:56.000Z
tests/test_operations_sliu99.py
dkucukarslan/challenges
2237298a74255d00a1329db535cb61d9e5e463ee
[ "MIT" ]
7
2018-09-17T14:52:24.000Z
2020-10-02T21:55:20.000Z
from pytest import fixture @fixture def op(): from challenges.Operations_sliu99 import Operations return Operations() def test_add(op): assert op.add(1,2) == 3 def test_subtract(op): assert op.subtract(2,1) == 1 def test_increment(op): assert op.increment(1) == 2 def test_decrement(op): ass...
17.3
55
0.687861
49dd34c28b53423b033a08e2f3e9b5355165c002
5,966
py
Python
trax/layers/initializers.py
jackalhan/trax
24d764566b6ab44e10c717fac92367958a166eb8
[ "Apache-2.0" ]
2
2020-03-27T17:26:58.000Z
2020-03-27T18:45:47.000Z
trax/layers/initializers.py
Tenoke/trax
bbabf6cc8a0682218927080bce33a4f90591aa0b
[ "Apache-2.0" ]
null
null
null
trax/layers/initializers.py
Tenoke/trax
bbabf6cc8a0682218927080bce33a4f90591aa0b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.78022
79
0.690077
e566ff91507a9c8581f4cd5620af6e172e1330e4
990
py
Python
malwareconfig/komand_malwareconfig/actions/view_config/action.py
GreyNoise-Intelligence/insightconnect-plugins
2ba3121d42fd96e1267bb095bc76b962678c1f56
[ "MIT" ]
null
null
null
malwareconfig/komand_malwareconfig/actions/view_config/action.py
GreyNoise-Intelligence/insightconnect-plugins
2ba3121d42fd96e1267bb095bc76b962678c1f56
[ "MIT" ]
null
null
null
malwareconfig/komand_malwareconfig/actions/view_config/action.py
GreyNoise-Intelligence/insightconnect-plugins
2ba3121d42fd96e1267bb095bc76b962678c1f56
[ "MIT" ]
null
null
null
import komand from .schema import ViewConfigInput, ViewConfigOutput # Custom imports below from komand_malwareconfig.util.client import * class ViewConfig(komand.Action): def __init__(self): super(self.__class__, self).__init__( name="view_config", description="View config for has...
25.384615
68
0.608081
a176388296d25f0a5c13b509b79943794457a8bf
5,805
py
Python
projects/penning/analyse_gyro_wp.py
Krissmedt/relativistic_sdc
7b294a9ab5d75a1540f192393ad0b4a570bfddb5
[ "MIT" ]
null
null
null
projects/penning/analyse_gyro_wp.py
Krissmedt/relativistic_sdc
7b294a9ab5d75a1540f192393ad0b4a570bfddb5
[ "MIT" ]
null
null
null
projects/penning/analyse_gyro_wp.py
Krissmedt/relativistic_sdc
7b294a9ab5d75a1540f192393ad0b4a570bfddb5
[ "MIT" ]
null
null
null
from math import sqrt, fsum, pi, exp, cos, sin, floor from decimal import Decimal import io import pickle as pk import matplotlib.pyplot as plt import numpy as np import cmath as cm from mpl_toolkits.mplot3d import Axes3D import matplotlib.animation as animation import h5py as h5 import sys import traceback from collec...
33.75
161
0.657192
6dc430a46cc9d2ade537fb893dad89704db7b1d4
2,875
py
Python
vminspect/winevtx.py
pombredanne/vminspect
7e20008cd3c9a8eb5d55c4362c185051e166b015
[ "BSD-3-Clause" ]
27
2016-08-31T18:32:02.000Z
2022-02-18T00:52:20.000Z
vminspect/winevtx.py
pombredanne/vminspect
7e20008cd3c9a8eb5d55c4362c185051e166b015
[ "BSD-3-Clause" ]
null
null
null
vminspect/winevtx.py
pombredanne/vminspect
7e20008cd3c9a8eb5d55c4362c185051e166b015
[ "BSD-3-Clause" ]
7
2016-08-22T10:13:30.000Z
2020-05-26T06:22:06.000Z
# Copyright (c) 2016-2017, Matteo Cafasso # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and ...
35.493827
80
0.730783
c041b4149db6bb3dc4e4a2b8ac586599dec268ee
599
py
Python
users/forms.py
devashar13/Blog-app-django
4f3f046aa77fed61f9c2f390bf68846eac709658
[ "MIT" ]
null
null
null
users/forms.py
devashar13/Blog-app-django
4f3f046aa77fed61f9c2f390bf68846eac709658
[ "MIT" ]
4
2021-03-30T13:31:58.000Z
2021-09-22T19:07:57.000Z
users/forms.py
devashar13/Blog-app-django
4f3f046aa77fed61f9c2f390bf68846eac709658
[ "MIT" ]
1
2020-06-13T09:38:27.000Z
2020-06-13T09:38:27.000Z
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import Profile class UserRegisterForm(UserCreationForm): email = forms.EmailField() class Meta: model = User fields = ['username', 'email', 'password1', 'pa...
27.227273
64
0.686144
841ba007850b0fd765eddb19415d24f2ee68b8ea
1,405
py
Python
tests/reproducibility/fixtures.py
LarsNeR/stellargraph
ee993bb600745a37d994fa4da628268b1cd657dc
[ "Apache-2.0" ]
2
2020-03-27T07:02:09.000Z
2020-05-30T16:46:18.000Z
tests/reproducibility/fixtures.py
LarsNeR/stellargraph
ee993bb600745a37d994fa4da628268b1cd657dc
[ "Apache-2.0" ]
null
null
null
tests/reproducibility/fixtures.py
LarsNeR/stellargraph
ee993bb600745a37d994fa4da628268b1cd657dc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 Data61, CSIRO # # 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...
30.543478
88
0.696797
4004bfb154b6d16f6eade4b4db845589dc9f7035
3,521
py
Python
apis_v1/views/views_reaction.py
aucoeur/WeVoteServer
7b30bdbb59d6e0c19abc81237aa42fba7de1a432
[ "MIT" ]
44
2015-11-19T04:52:39.000Z
2021-03-17T02:08:26.000Z
apis_v1/views/views_reaction.py
aucoeur/WeVoteServer
7b30bdbb59d6e0c19abc81237aa42fba7de1a432
[ "MIT" ]
748
2015-09-03T04:18:33.000Z
2022-03-10T14:08:10.000Z
apis_v1/views/views_reaction.py
aucoeur/WeVoteServer
7b30bdbb59d6e0c19abc81237aa42fba7de1a432
[ "MIT" ]
145
2015-09-19T10:10:44.000Z
2022-03-04T21:01:12.000Z
# apis_v1/views/views_voter.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from config.base import get_environment_variable from django.views.decorators.csrf import csrf_exempt from reaction.controllers import reaction_like_count_for_api, voter_reaction_like_off_save_for_api, \ voter_reaction_lik...
46.946667
116
0.78188
7662e40435293008f5ad5e652584998ac5060bca
216
py
Python
Exercises/003.py
GuilhermeRds1921/Python3-Guanabara
24cd85b076e1074a5602e54c420bcc8e70cc1854
[ "MIT" ]
null
null
null
Exercises/003.py
GuilhermeRds1921/Python3-Guanabara
24cd85b076e1074a5602e54c420bcc8e70cc1854
[ "MIT" ]
null
null
null
Exercises/003.py
GuilhermeRds1921/Python3-Guanabara
24cd85b076e1074a5602e54c420bcc8e70cc1854
[ "MIT" ]
null
null
null
# Crie um programa que leia dois números e mostre a soma entre eles. num1 = float(input('Digite um valor: ')) num2 = float(input('Digite outro valor: ')) print('O valor da Soma entre eles é: {}'.format(num1 + num2))
43.2
68
0.699074
1e8c07dc1300f46b877af4cec53e4ca79db16607
16,222
py
Python
cavecalc/analyse.py
Rob-Owen/cavecalc
38cbdc7c4d0f6c05b2825281d60247936c9f4839
[ "MIT" ]
3
2020-04-04T03:47:14.000Z
2020-11-24T00:53:13.000Z
cavecalc/analyse.py
Rob-Owen/cavecalc
38cbdc7c4d0f6c05b2825281d60247936c9f4839
[ "MIT" ]
null
null
null
cavecalc/analyse.py
Rob-Owen/cavecalc
38cbdc7c4d0f6c05b2825281d60247936c9f4839
[ "MIT" ]
2
2018-07-24T13:10:03.000Z
2020-01-17T15:34:58.000Z
"""Contains the Evaluate object, which has methods to load data from Cavecalc .pkl output files, display data and write it to other file formats. Classes defined here: Evaluate """ import pickle import os import copy import matplotlib from sys import platform if platform != 'win32': matplotlib.use('TkAgg') # ...
35.112554
98
0.520898
9a54ce517b3f6227af1ffbc3e33d33bc8d17de3d
18,167
py
Python
njunmt/nmt_experiment.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
1
2018-10-27T12:04:03.000Z
2018-10-27T12:04:03.000Z
njunmt/nmt_experiment.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
null
null
null
njunmt/nmt_experiment.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Natural Language Processing Group, Nanjing University, zhaocq.nlp@gmail.com. # # 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...
42.248837
93
0.609512
6866cc2c983700e197f6b7030dccddd9f12eda68
916
py
Python
src/tools/telemetry/PRESUBMIT.py
jxjnjjn/chromium
435c1d02fd1b99001dc9e1e831632c894523580d
[ "Apache-2.0" ]
9
2018-09-21T05:36:12.000Z
2021-11-15T15:14:36.000Z
tools/telemetry/PRESUBMIT.py
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/PRESUBMIT.py
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
3
2018-11-28T14:54:13.000Z
2020-07-02T07:36:07.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys PYLINT_BLACKLIST = [] PYLINT_DISABLED_WARNINGS = ['R0923', 'R0201', 'E1101'] def _CommonChecks(input_api, output_api): results = ...
26.171429
72
0.731441
001ae2977ae59124aebb77dde0fd0567a1a09097
16,644
py
Python
oggm/tests/funcs.py
jmalles/oggm
45eb5a9481c7704e8ade8410899e184191039b5e
[ "BSD-3-Clause" ]
null
null
null
oggm/tests/funcs.py
jmalles/oggm
45eb5a9481c7704e8ade8410899e184191039b5e
[ "BSD-3-Clause" ]
null
null
null
oggm/tests/funcs.py
jmalles/oggm
45eb5a9481c7704e8ade8410899e184191039b5e
[ "BSD-3-Clause" ]
null
null
null
import os import shutil from distutils.util import strtobool import hashlib import numpy as np import xarray as xr import shapely.geometry as shpg from scipy import optimize as optimization # Local imports import oggm import oggm.cfg as cfg from oggm.utils import (get_demo_file, mkdir, get_git_ident, get_sys_info, ...
32.255814
79
0.600697
9651ba5959acabff0d30fcc92bb803ae82d30cd4
1,497
py
Python
PaddleOCR/ppocr/metrics/cls_metric.py
TangJiamin/Ultra_light_OCR_No.23
594aa286dc2f88614141838ce45c164647226cdb
[ "Apache-2.0" ]
null
null
null
PaddleOCR/ppocr/metrics/cls_metric.py
TangJiamin/Ultra_light_OCR_No.23
594aa286dc2f88614141838ce45c164647226cdb
[ "Apache-2.0" ]
null
null
null
PaddleOCR/ppocr/metrics/cls_metric.py
TangJiamin/Ultra_light_OCR_No.23
594aa286dc2f88614141838ce45c164647226cdb
[ "Apache-2.0" ]
null
null
null
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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...
32.543478
75
0.60521
10af9059de501a3f97b72296c26fce1977c7e089
2,728
py
Python
phonotactics/nucleus/ver_1_5_9.py
shlomo-Kallner/coventreiya
aa0773693220025f8d2c23644a2c5d9d884773e9
[ "Apache-2.0" ]
null
null
null
phonotactics/nucleus/ver_1_5_9.py
shlomo-Kallner/coventreiya
aa0773693220025f8d2c23644a2c5d9d884773e9
[ "Apache-2.0" ]
null
null
null
phonotactics/nucleus/ver_1_5_9.py
shlomo-Kallner/coventreiya
aa0773693220025f8d2c23644a2c5d9d884773e9
[ "Apache-2.0" ]
null
null
null
from nucleus import Nucleus from nucleus import register from coventreiya.utils.fsm import fsm_state from coventreiya.phonology.vowels import Vowels from coventreiya.phonology.vowels.ver_1_5_9 import ver_1_5_9 as vols_ver from coventreiya.phonology.vowels.Vowels import Height, Backness, Rounding #Note: Ther...
34.531646
75
0.519062
1dcbed38345097d0b12af7a2fb46f188739d62fd
402
py
Python
2020/2/1.py
AmauryLiet/CodeJam
3e02bce287e3c640d89eea4b0d5878319c79d59b
[ "MIT" ]
null
null
null
2020/2/1.py
AmauryLiet/CodeJam
3e02bce287e3c640d89eea4b0d5878319c79d59b
[ "MIT" ]
null
null
null
2020/2/1.py
AmauryLiet/CodeJam
3e02bce287e3c640d89eea4b0d5878319c79d59b
[ "MIT" ]
null
null
null
from itertools import count N = int(input()) for case_id in range(1, N + 1): left, right = map(int, input().split()) for customer_id in count(1): if customer_id > max(left, right): break if left >= right: left -= customer_id else: right -= customer_...
23.647059
77
0.544776
148a7faf41d6b86792265b2656ad7205b7921988
106
py
Python
instagram_api/exceptions/request_headers_too_large.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
13
2019-08-07T21:24:34.000Z
2020-12-12T12:23:50.000Z
instagram_api/exceptions/request_headers_too_large.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
instagram_api/exceptions/request_headers_too_large.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
from .request import RequestException class RequestHeadersTooLargeException(RequestException): pass
17.666667
56
0.839623
fbf89a630337012b3c16d1a8e6398a11b414c881
3,909
py
Python
demo/custom/demo.py
ZJCV/TSN
ec6ad668d20f477df44eab7035e2553d95a835f3
[ "Apache-2.0" ]
2
2021-11-29T10:29:40.000Z
2022-03-22T02:39:44.000Z
demo/custom/demo.py
ZJCV/TSN
ec6ad668d20f477df44eab7035e2553d95a835f3
[ "Apache-2.0" ]
1
2022-03-13T09:28:52.000Z
2022-03-13T09:28:52.000Z
demo/custom/demo.py
ZJCV/TSN
ec6ad668d20f477df44eab7035e2553d95a835f3
[ "Apache-2.0" ]
1
2021-03-09T08:14:22.000Z
2021-03-09T08:14:22.000Z
# -*- coding: utf-8 -*- """ @date: 2020/10/30 下午3:42 @file: visualization.py @author: zj @description: """ import numpy as np import torch import torch.multiprocessing as mp import time from tsn.util.parser import load_test_config, parse_test_args from demo.multiprocess.stop_token import _StopToken from demo.multip...
28.326087
106
0.64748
d987d201713e1e1a859309d573eadae2bc752337
21,666
py
Python
monk/tf_keras_1/finetune/level_13_updates_main.py
Shreyashwaghe/monk_v1
4ee4d9483e8ffac9b73a41f3c378e5abf5fc799b
[ "Apache-2.0" ]
2
2020-09-16T06:05:50.000Z
2021-04-07T12:05:20.000Z
monk/tf_keras_1/finetune/level_13_updates_main.py
Shreyashwaghe/monk_v1
4ee4d9483e8ffac9b73a41f3c378e5abf5fc799b
[ "Apache-2.0" ]
null
null
null
monk/tf_keras_1/finetune/level_13_updates_main.py
Shreyashwaghe/monk_v1
4ee4d9483e8ffac9b73a41f3c378e5abf5fc799b
[ "Apache-2.0" ]
null
null
null
from tf_keras_1.finetune.imports import * from system.imports import * from tf_keras_1.finetune.level_12_losses_main import prototype_losses class prototype_updates(prototype_losses): ''' Main class for all parametric update functions Args: verbose (int): Set verbosity levels ...
45.612632
166
0.482323
41b5adcc8949754ce003125351c504bd80c8dc7d
1,301
py
Python
setup.py
MichiganLabs/flask-principal
2967b387573ddd4f9fb4dd862d4c7824148f6a03
[ "MIT" ]
366
2015-01-05T02:09:06.000Z
2021-11-17T17:52:20.000Z
setup.py
MichiganLabs/flask-principal
2967b387573ddd4f9fb4dd862d4c7824148f6a03
[ "MIT" ]
23
2015-02-25T17:44:49.000Z
2022-03-21T11:56:16.000Z
setup.py
MichiganLabs/flask-principal
2967b387573ddd4f9fb4dd862d4c7824148f6a03
[ "MIT" ]
94
2015-01-04T14:53:03.000Z
2022-02-14T22:52:01.000Z
""" Flask Principal --------------- Identity management for Flask. Links ````` * `documentation <http://packages.python.org/Flask-Principal/>`_ * `source <https://github.com/mattupstate/flask-principal>`_ * `development version <https://github.com/mattupstate/flask-principal/raw/master#egg=Flask-Principal-dev>`_ ...
27.104167
87
0.651038
99804fb81a65a9d4eba207e90cc17e59aaaccf12
9,532
py
Python
tests/graph/test_dijkstra.py
IvanIsCoding/retworkx
2dc3552476488df2ec305aab1d09790e283af1c8
[ "Apache-2.0" ]
null
null
null
tests/graph/test_dijkstra.py
IvanIsCoding/retworkx
2dc3552476488df2ec305aab1d09790e283af1c8
[ "Apache-2.0" ]
null
null
null
tests/graph/test_dijkstra.py
IvanIsCoding/retworkx
2dc3552476488df2ec305aab1d09790e283af1c8
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
37.976096
80
0.542488
289b1d1262d4168e049713707fd824966476e08d
326
py
Python
Python/celciustofahrenheit.py
OluSure/Hacktoberfest2021-1
ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea
[ "MIT" ]
215
2021-10-01T08:18:16.000Z
2022-03-29T04:12:03.000Z
Python/celciustofahrenheit.py
OluSure/Hacktoberfest2021-1
ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea
[ "MIT" ]
232
2021-10-02T14:51:43.000Z
2021-11-14T08:23:27.000Z
Python/celciustofahrenheit.py
OluSure/Hacktoberfest2021-1
ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea
[ "MIT" ]
807
2021-10-01T08:11:45.000Z
2021-11-21T18:57:09.000Z
try: degrees_in_celcius = float(input("What is the temperature in Celcius?: ")) def C2F_Converter(): degrees_in_fahrenheit = (degrees_in_celcius * 9/5) + 32 return degrees_in_fahrenheit print(C2F_Converter(),"F") except ValueError: print("This is not a number...
20.375
78
0.619632
78d5ed0f61e40d6df579c45da488d76602272078
13,609
py
Python
utils.py
ultmaster/openimages2coco
2d48a152753105f229afe6fe96dd608c202301a2
[ "MIT" ]
null
null
null
utils.py
ultmaster/openimages2coco
2d48a152753105f229afe6fe96dd608c202301a2
[ "MIT" ]
null
null
null
utils.py
ultmaster/openimages2coco
2d48a152753105f229afe6fe96dd608c202301a2
[ "MIT" ]
null
null
null
import multiprocessing import matplotlib matplotlib.use('Agg') import os import sys import csv import json import time import numpy as np import skimage.io as io from openimages import OpenImages def _url_to_license(licenses, mode='http'): # create dict with license urls as # mode is either http or https ...
38.994269
121
0.563818
7f31ea19132e40e394642093a318d90fae0a1d0b
332
py
Python
apistar_jwt/__init__.py
jgirardet/apistar-jwt
46559eae367cf3c90cabd713c48ff0ef2d4d799d
[ "MIT" ]
42
2017-10-05T00:58:10.000Z
2020-02-22T22:36:30.000Z
apistar_jwt/__init__.py
jgirardet/apistar-jwt
46559eae367cf3c90cabd713c48ff0ef2d4d799d
[ "MIT" ]
19
2017-10-06T18:31:42.000Z
2019-10-18T16:22:22.000Z
apistar_jwt/__init__.py
jgirardet/apistar-jwt
46559eae367cf3c90cabd713c48ff0ef2d4d799d
[ "MIT" ]
11
2017-10-06T20:02:20.000Z
2018-08-14T12:10:32.000Z
"""Top-level package for apistar-jwt.""" from apistar_jwt.token import JWTUser, JWT from apistar_jwt.decorators import anonymous_allowed, authentication_required __author__ = """Ryan Castner""" __email__ = 'castner.rr@gmail.com' __version__ = '0.5.0' __all__ = ['JWTUser', 'JWT', 'anonymous_allowed', 'authentication...
27.666667
77
0.762048
ee145eb88d5d33d68fb224219d751a880d379ef0
206
py
Python
Algorithms/717.1-bit-and-2-bit-characters/1-bit-and-2-bit-characters_2.py
OctopusLian/leetcode-solutions
40920d11c584504e805d103cdc6ef3f3774172b3
[ "MIT" ]
1
2020-12-01T18:35:24.000Z
2020-12-01T18:35:24.000Z
Algorithms/717.1-bit-and-2-bit-characters/1-bit-and-2-bit-characters_2.py
OctopusLian/leetcode-solutions
40920d11c584504e805d103cdc6ef3f3774172b3
[ "MIT" ]
18
2020-11-10T05:48:29.000Z
2020-11-26T08:39:20.000Z
Algorithms/717.1-bit-and-2-bit-characters/1-bit-and-2-bit-characters_2.py
OctopusLian/leetcode-solutions
40920d11c584504e805d103cdc6ef3f3774172b3
[ "MIT" ]
5
2020-11-09T07:43:00.000Z
2021-12-02T14:59:37.000Z
class Solution: def isOneBitCharacter(self, bits: List[int]) -> bool: for inx, i in enumerate(bits): if i: bits[inx] = bits[inx+1] = None return bits[-1] == 0
34.333333
57
0.524272
219a1dd6ac69685917deb2dc5dfa076ab52a0136
1,566
py
Python
cmdb-usage/libs/report/s3_report.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
null
null
null
cmdb-usage/libs/report/s3_report.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
1
2022-01-04T13:53:16.000Z
2022-01-04T13:53:16.000Z
cmdb-usage/libs/report/s3_report.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-05-08 15:14 # @Author : jianxlin # @Site : # @File : s3_report.py # @Software: PyCharm from pandasql import sqldf from libs.report.base import ReportData class S3ReportData(ReportData): _NAME = "S3" def __init__(self, s3_bill=None, *args, **kwarg...
23.727273
101
0.579183
c8d1cc10bcc752d01a5447ab2c7637c714cacc03
2,981
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/backend_address_pool_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/backend_address_pool_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/backend_address_pool_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.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 ...
42.585714
128
0.657162
f4a2112387b1631979700d1e7501fac298609643
437
py
Python
array/Ratndeep/one diff in adj of number.py
ayroti-18/Competitive-Programming
d1ea08a91c63e54f0bba2365e56f98db71eb9054
[ "MIT" ]
3
2020-12-20T10:23:11.000Z
2021-06-16T10:34:18.000Z
array/Ratndeep/one diff in adj of number.py
Spring-dot/Competitive-Programming
98add277a8b029710c749d1082de25c524e12408
[ "MIT" ]
null
null
null
array/Ratndeep/one diff in adj of number.py
Spring-dot/Competitive-Programming
98add277a8b029710c749d1082de25c524e12408
[ "MIT" ]
null
null
null
n = int(input()) if n<=10: for i in range(1,n): print(i,end=" ") print() else: for i in range(1,11): print(i,end=" ") for i in range(11,n): cur_num = str(i) x=0 flag=0 while x<len(cur_num)-1: if abs(int(cur_num[x])-int(cur_num[x+1]))!=1: ...
20.809524
57
0.409611
07bc63b277a76568ef34f303f549ec4d0d12aa9d
33,154
py
Python
lib-python/2.4.1/test/test_re.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
lib-python/2.4.1/test/test_re.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
lib-python/2.4.1/test/test_re.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
import sys sys.path = ['.'] + sys.path from test.test_support import verbose, run_unittest import re from sre import Scanner import sys, os, traceback from weakref import proxy # Misc tests from Tim Peters' re.doc # WARNING: Don't change details in these tests if you don't know # what you're doing. Some of these tes...
46.304469
85
0.482476
0cafd008a0491de1970c2c7b7348896c1ce8f684
721
py
Python
OR_web_GUI/migrations/0003_auto_20190211_0848.py
AntaeusNar/Orange-Relay
5a327a531831946f921b81648df500b9c5aab73d
[ "MIT" ]
null
null
null
OR_web_GUI/migrations/0003_auto_20190211_0848.py
AntaeusNar/Orange-Relay
5a327a531831946f921b81648df500b9c5aab73d
[ "MIT" ]
8
2018-11-27T16:12:45.000Z
2021-06-10T21:10:58.000Z
OR_web_GUI/migrations/0003_auto_20190211_0848.py
AntaeusNar/Orange-Relay
5a327a531831946f921b81648df500b9c5aab73d
[ "MIT" ]
1
2021-02-24T19:13:44.000Z
2021-02-24T19:13:44.000Z
# Generated by Django 2.1.3 on 2019-02-11 16:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('OR_web_GUI', '0002_output_channel'), ] operations = [ migrations.AlterField( model_name='input', name='last_used', ...
24.862069
58
0.576976
8c600f14a9e2a9d2f485b72e52d488532b59d87c
845
py
Python
youtube/baseparser.py
Glenpl/open_yt_api
aa439bafd25248509ff4301e48c15005abef17a4
[ "MIT" ]
4
2016-03-26T11:32:10.000Z
2017-05-05T20:13:06.000Z
youtube/baseparser.py
Glenpl/open_yt_api
aa439bafd25248509ff4301e48c15005abef17a4
[ "MIT" ]
11
2016-03-25T10:57:29.000Z
2017-03-28T15:18:06.000Z
youtube/baseparser.py
Glenpl/open_yt_api
aa439bafd25248509ff4301e48c15005abef17a4
[ "MIT" ]
2
2016-04-09T09:40:17.000Z
2016-04-14T09:18:18.000Z
from bs4 import BeautifulSoup class BaseParser(): _html_parser = None # beautifulsoup parser def _initialize_parser(self, html_code): self._html_parser = BeautifulSoup(html_code, 'html.parser') def _find_by_class(self, tag, class_name): return self._html_parser.find(tag, {'class': class...
33.8
89
0.727811
63ff21a096f1de320a457773b004c2f8c7f6d711
1,994
py
Python
setup.py
Czzzzzzh/RLSchool
4147811e8c1bd6437f56c61f1dd148b9db1422b6
[ "Apache-2.0" ]
null
null
null
setup.py
Czzzzzzh/RLSchool
4147811e8c1bd6437f56c61f1dd148b9db1422b6
[ "Apache-2.0" ]
null
null
null
setup.py
Czzzzzzh/RLSchool
4147811e8c1bd6437f56c61f1dd148b9db1422b6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle 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 app...
33.233333
93
0.657974
d761f6b6c51be3e4c8de66d7bc7a636c1a3a9cc1
5,873
py
Python
sdk/python/pulumi_aws/efs/get_file_system.py
johnktims/pulumi-aws
c838bc79043f5376c66fc66275a1e012edd3ab7d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/efs/get_file_system.py
johnktims/pulumi-aws
c838bc79043f5376c66fc66275a1e012edd3ab7d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/efs/get_file_system.py
johnktims/pulumi-aws
c838bc79043f5376c66fc66275a1e012edd3ab7d
[ "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 json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class GetFil...
43.503704
253
0.670186
3f8afd40c60c4b67813308b52070a08ac3838310
339
py
Python
info/migrations/0011_auto_20181111_2017.py
tarpalantiri/institute-erp-system
d024ef31948d456f3772ce1f4dfb2bcfa2e33c61
[ "MIT" ]
1
2021-06-21T16:11:56.000Z
2021-06-21T16:11:56.000Z
info/migrations/0011_auto_20181111_2017.py
tarpalantiri/institute-erp-system
d024ef31948d456f3772ce1f4dfb2bcfa2e33c61
[ "MIT" ]
null
null
null
info/migrations/0011_auto_20181111_2017.py
tarpalantiri/institute-erp-system
d024ef31948d456f3772ce1f4dfb2bcfa2e33c61
[ "MIT" ]
1
2020-11-18T13:31:09.000Z
2020-11-18T13:31:09.000Z
# Generated by Django 2.1.2 on 2018-11-11 14:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('info', '0010_auto_20181111_1218'), ] operations = [ migrations.AlterUniqueTogether( name='assigntime', unique_together=set()...
18.833333
47
0.60472
69832370e1532ca357459abf99fbf841b4694e2a
19,334
py
Python
parseyak/jetyak.py
vpreston/jetyak-parsing
2f2ac14a7030962f15aae9272641f623e8ab5412
[ "MIT" ]
null
null
null
parseyak/jetyak.py
vpreston/jetyak-parsing
2f2ac14a7030962f15aae9272641f623e8ab5412
[ "MIT" ]
null
null
null
parseyak/jetyak.py
vpreston/jetyak-parsing
2f2ac14a7030962f15aae9272641f623e8ab5412
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Creates JetYak Class which contains various sensors, and allows for operations between sensors. Maintainer: vpreston-at-{whoi, mit}-dot-edu ''' import parseyak.sensors import pandas as pd import numpy as np import copy import utm from gasex import sol import time class JetYak(object): ...
43.643341
150
0.553274
f0a60293b8876d93dc4a258bc965e8cc9a844ddb
94
py
Python
tests/__code/main.py
wyhaya/lok
96f78982d81b63bea146d30a77ff0e65254ec031
[ "MIT" ]
34
2019-08-01T08:17:10.000Z
2022-03-12T12:15:57.000Z
tests/__code/main.py
wyhaya/lok
96f78982d81b63bea146d30a77ff0e65254ec031
[ "MIT" ]
1
2019-08-06T04:50:49.000Z
2019-08-06T04:50:49.000Z
tests/__code/main.py
wyhaya/rots
c2b9a1154bcc948f30a631707a16aea2b05b32e1
[ "MIT" ]
2
2019-08-06T18:47:32.000Z
2019-08-07T12:26:38.000Z
#!/usr/bin/python """ """ print "0" # comment ''' hello world ''' print "0" # comment
4.947368
17
0.510638
dc49561903f56bb43f1e9d4a4eb01db30e254084
1,120
py
Python
ex47/skeleton/tests/ex47_tests.py
bardia52/Learn.Python.The.Hard.Way
6a7dfece2017acb5b47a9aeb8b33b4dad725fbd5
[ "MIT" ]
null
null
null
ex47/skeleton/tests/ex47_tests.py
bardia52/Learn.Python.The.Hard.Way
6a7dfece2017acb5b47a9aeb8b33b4dad725fbd5
[ "MIT" ]
null
null
null
ex47/skeleton/tests/ex47_tests.py
bardia52/Learn.Python.The.Hard.Way
6a7dfece2017acb5b47a9aeb8b33b4dad725fbd5
[ "MIT" ]
null
null
null
from nose.tools import * from nose.tools import * from ex47.game import Room def test_room(): gold = Room("GoldRoom", """ This room has gold in it you can grab. There's a \ door to the north.""" ) assert_equal(gold.name, "GoldRoom") assert_equal(gold.paths, {}) def test...
32.941176
70
0.620536
f1357d3352c47ce0b2715d8c95f52d043411d0c5
421
py
Python
get_embeddings.py
harrisonjansma/face_recognition
744b8b524077c1fa0ece44c910e7a1fca618f9a9
[ "MIT" ]
null
null
null
get_embeddings.py
harrisonjansma/face_recognition
744b8b524077c1fa0ece44c910e7a1fca618f9a9
[ "MIT" ]
null
null
null
get_embeddings.py
harrisonjansma/face_recognition
744b8b524077c1fa0ece44c910e7a1fca618f9a9
[ "MIT" ]
null
null
null
import face_recognition import os import csv path = os.path.dirname(os.path.realpath(__file__)) files = os.listdir(os.path.join(path,'img')) embs = [] for f in files: img = face_recognition.load_image_file(os.path.join(path,img,f)) embs.append(face_recognition.face_encodings(img)[0]) with open("taco.txt", 'w...
26.3125
68
0.714964
c12b9224f753895eee05344a419994750cd5a59f
112
py
Python
app/backend/mails/urls.py
NicholasCF/meridien
dd00caf341d4c9979b89dc8441224ff2b97eac7f
[ "MIT" ]
null
null
null
app/backend/mails/urls.py
NicholasCF/meridien
dd00caf341d4c9979b89dc8441224ff2b97eac7f
[ "MIT" ]
41
2020-05-24T06:47:53.000Z
2022-02-27T11:10:41.000Z
app/backend/mails/urls.py
NicholasCF/meridien
dd00caf341d4c9979b89dc8441224ff2b97eac7f
[ "MIT" ]
2
2020-11-26T12:19:30.000Z
2020-12-19T01:14:02.000Z
from django.urls import path from mails import views urlpatterns = [ path('send_html_email', views.mail) ]
16
39
0.741071
fe2af0334254f9ed2bb321e1598b8f5d959118b8
1,888
py
Python
nanome/api/ui/io/menu_io.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
3
2020-07-02T13:08:27.000Z
2021-11-24T14:32:53.000Z
nanome/api/ui/io/menu_io.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
11
2020-09-14T17:01:47.000Z
2022-02-18T04:00:52.000Z
nanome/api/ui/io/menu_io.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
5
2020-08-12T16:30:03.000Z
2021-12-06T18:04:23.000Z
import json from nanome.util import Logs from nanome._internal._ui._io._json_helper import _JsonHelper from nanome._internal._ui._io import _menu_json from nanome._internal import _Addon class MenuIO(_Addon): def __init__(self, base_object=None): _Addon.__init__(self, base_object) def to_json(self, p...
31.466667
84
0.590042
21636b0883c6e91e3ff9f5b0f8a79b62ff1f224a
308
py
Python
Hackerrank/Practice/Python/6.itertools/54.Maximize It!.py
kushagra1212/Competitive-Programming
5b68774c617d6abdf1b29893b1b13d47f62161e8
[ "MIT" ]
994
2017-02-28T06:13:47.000Z
2022-03-31T10:49:00.000Z
Hackerrank_python/6.itertools/54.Maximize It!.py
devesh17m/Competitive-Programming
2d459dc8dc5ac628d94700b739988b0ea364cb71
[ "MIT" ]
16
2018-01-01T02:59:55.000Z
2021-11-22T12:49:16.000Z
Hackerrank_python/6.itertools/54.Maximize It!.py
devesh17m/Competitive-Programming
2d459dc8dc5ac628d94700b739988b0ea364cb71
[ "MIT" ]
325
2017-06-15T03:32:43.000Z
2022-03-28T22:43:42.000Z
# Enter your code here. Read input from STDIN. Print output to STDOUT from itertools import* m,n=map(int,input().split()) l1=list() for i in range(m): l=list(map(int,input().split()))[1:] l1.append(l) final_result=max(map(lambda x:sum(i*i for i in x)%n,product(*l1))) print(final_result)
30.8
70
0.662338
6224953197619ecd1c8c65f589bfa915dfb46509
850
py
Python
attr_dict/__init__.py
miigotu/Attr-Dict
e0c876a682a268194f940d65c3e7f4bd30cb2ad5
[ "MIT" ]
1
2022-03-01T12:24:30.000Z
2022-03-01T12:24:30.000Z
attr_dict/__init__.py
miigotu/Attr-Dict
e0c876a682a268194f940d65c3e7f4bd30cb2ad5
[ "MIT" ]
null
null
null
attr_dict/__init__.py
miigotu/Attr-Dict
e0c876a682a268194f940d65c3e7f4bd30cb2ad5
[ "MIT" ]
1
2022-03-25T04:33:44.000Z
2022-03-25T04:33:44.000Z
"""Attr-Dict Yet another Attribute Dict implementation ! Python module that provides a dictionary with attribute access to keys. It is especially convenient when working with deeply nested data. """ from attr_dict.attrdict import AttrDict, LazyAttrDict, RestrictedAttrDict from attr_dict.index import AttrIndex, LazyIn...
24.285714
73
0.744706
ff9fc022dd135eab77041ebc3c7e96204ec7d501
2,917
py
Python
usaspending_api/awards/migrations/0013_auto_20160927_1154.py
toolness/usaspending-api
ed9a396e20a52749f01f43494763903cc371f9c2
[ "CC0-1.0" ]
1
2021-06-17T05:09:00.000Z
2021-06-17T05:09:00.000Z
usaspending_api/awards/migrations/0013_auto_20160927_1154.py
toolness/usaspending-api
ed9a396e20a52749f01f43494763903cc371f9c2
[ "CC0-1.0" ]
null
null
null
usaspending_api/awards/migrations/0013_auto_20160927_1154.py
toolness/usaspending-api
ed9a396e20a52749f01f43494763903cc371f9c2
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-27 15:54 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('awards', '0012_auto_20160926_1430'), ] operations = [ migrations.RemoveFiel...
33.147727
73
0.598903
2e90f110703ef91548133b9f28eac1e7e611f60e
2,330
py
Python
zinnia/markups.py
rowanv/django-blog-zinnia
3b9f63d8a727373216d4bb53cca481f35248f173
[ "BSD-3-Clause" ]
null
null
null
zinnia/markups.py
rowanv/django-blog-zinnia
3b9f63d8a727373216d4bb53cca481f35248f173
[ "BSD-3-Clause" ]
9
2017-05-09T02:00:31.000Z
2017-06-12T11:08:26.000Z
zinnia_blog_example/zinnia/markups.py
17-1-SKKU-OSS/116A
ef840eba40e62da1014685931c17d49372152a08
[ "CC-BY-3.0" ]
null
null
null
""" Set of" markup" function to transform plain text into HTML for Zinnia. Code originally provided by django.contrib.markups """ import warnings from django.utils.encoding import force_bytes from django.utils.encoding import force_text from django.utils.html import linebreaks from zinnia.settings import MARKDOWN_EXT...
28.765432
70
0.672532
2899377e84fe75dbff4e9c907e72181c7f7fa98c
2,008
py
Python
tests/payment_test.py
jhoe123/Elastos.Hive.Node
96b0c3c4a6ba29db4a4920a03c7efb9e7a991833
[ "MIT" ]
2
2022-01-30T05:24:17.000Z
2022-03-29T21:31:21.000Z
tests/payment_test.py
jhoe123/Elastos.Hive.Node
96b0c3c4a6ba29db4a4920a03c7efb9e7a991833
[ "MIT" ]
3
2021-11-25T13:38:56.000Z
2022-03-16T02:08:39.000Z
tests/payment_test.py
jhoe123/Elastos.Hive.Node
96b0c3c4a6ba29db4a4920a03c7efb9e7a991833
[ "MIT" ]
2
2022-02-17T09:14:52.000Z
2022-03-01T07:23:50.000Z
# -*- coding: utf-8 -*- """ Testing file for the payment module. """ import unittest from tests.utils.http_client import HttpClient from tests import init_test class PaymentTestCase(unittest.TestCase): def __init__(self, method_name='runTest'): super().__init__(method_name) init_test() ...
33.466667
105
0.676793
f147f0f6629684b9983bc98acf5dfee673cb9a85
265
py
Python
latteys/latteys/doctype/warranty_registration/warranty_registration.py
hrgadesha/lattyeys
428b752ac99620ac7ad706fd305f07210bdcb315
[ "MIT" ]
1
2021-09-10T03:51:22.000Z
2021-09-10T03:51:22.000Z
latteys/latteys/doctype/warranty_registration/warranty_registration.py
hrgadesha/lattyeys
428b752ac99620ac7ad706fd305f07210bdcb315
[ "MIT" ]
null
null
null
latteys/latteys/doctype/warranty_registration/warranty_registration.py
hrgadesha/lattyeys
428b752ac99620ac7ad706fd305f07210bdcb315
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, B2Grow and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class WarrantyRegistration(Document): pass
24.090909
49
0.781132
baf3a0c51d4e4551394603ca3fa933a43010e638
10,097
py
Python
sumo/electronic_structure/optics.py
mkrack/sumo
e885844de07e03bde552f9e38e2230edd73b10da
[ "MIT" ]
null
null
null
sumo/electronic_structure/optics.py
mkrack/sumo
e885844de07e03bde552f9e38e2230edd73b10da
[ "MIT" ]
null
null
null
sumo/electronic_structure/optics.py
mkrack/sumo
e885844de07e03bde552f9e38e2230edd73b10da
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Scanlon Materials Theory Group # Distributed under the terms of the MIT License. """ Module containing functions to process dielectric and optical absorption data. TODO: * Remove magic values """ import os import numpy as np from scipy.ndimage.filters import gaussian_filter1d d...
36.189964
81
0.569872
ada19347a5f391571c5b917af44c48267133975a
3,804
py
Python
code/src/main/python/expt/test_typed.py
DynamicCodeSearch/CodeSeer
ee985ece7691691585952eb88565f0e08bdc9113
[ "MIT" ]
5
2020-04-05T18:04:13.000Z
2021-04-13T20:34:19.000Z
code/src/main/python/expt/test_typed.py
DynamicCodeSearch/CodeSeer
ee985ece7691691585952eb88565f0e08bdc9113
[ "MIT" ]
1
2020-04-29T21:42:26.000Z
2020-05-01T23:45:45.000Z
code/src/main/python/expt/test_typed.py
DynamicCodeSearch/CodeSeer
ee985ece7691691585952eb88565f0e08bdc9113
[ "MIT" ]
3
2020-01-27T16:02:14.000Z
2021-02-08T13:25:15.000Z
import sys import os sys.path.append(os.path.abspath(".")) sys.dont_write_bytecode = True __author__ = "bigfatnoob" from collections import OrderedDict from misconceptions.rUtils import functions as r_functions, datatypes, generator, dataframer from misconceptions.pdUtils import functions as pd_functions from sos.fu...
40.903226
123
0.773396
216595bc6fffa2dd1a666d6718af018b21e96ae5
27,456
py
Python
scripts/bootstrap_history.py
dfornika/galaxy
2dae50a9bdc28b4e7c159b52245351c3a9d79f36
[ "CC-BY-3.0" ]
2
2017-03-28T12:11:41.000Z
2017-04-22T02:58:25.000Z
scripts/bootstrap_history.py
userssss/galaxy
9662164ad68b39adf5a5606a7aa8e388f6a79f1e
[ "CC-BY-3.0" ]
2
2019-04-03T15:37:17.000Z
2019-04-03T19:37:09.000Z
scripts/bootstrap_history.py
userssss/galaxy
9662164ad68b39adf5a5606a7aa8e388f6a79f1e
[ "CC-BY-3.0" ]
1
2016-06-14T13:21:13.000Z
2016-06-14T13:21:13.000Z
#!/usr/bin/env python # Little script to make HISTORY.rst more easy to format properly, lots TODO # pull message down and embed, use arg parse, handle multiple, etc... from __future__ import print_function import calendar import datetime import json import os import re import string import sys import textwrap from col...
34.710493
271
0.6364
dd1cb5a1e7c1d85ec1a972a12d6260a655b73e43
49
py
Python
disco/version.py
daniel-thom/disco
2de6869888c015ff70985bf6f6b1a0fcc15fc561
[ "BSD-3-Clause" ]
null
null
null
disco/version.py
daniel-thom/disco
2de6869888c015ff70985bf6f6b1a0fcc15fc561
[ "BSD-3-Clause" ]
null
null
null
disco/version.py
daniel-thom/disco
2de6869888c015ff70985bf6f6b1a0fcc15fc561
[ "BSD-3-Clause" ]
null
null
null
"""disco version number""" __version__ = "0.1.4"
16.333333
26
0.653061
e25a7ae261c8817d4889757d8d67dff20ebfd848
543
py
Python
guet/steps/check/help_check.py
AbhishekMashetty/pairprogrammingmasetty
0528d4999b472ec6d94058193275a505eaf2c762
[ "Apache-2.0" ]
13
2018-12-21T22:47:28.000Z
2021-12-17T14:27:35.000Z
guet/steps/check/help_check.py
chiptopher/guet
1099ee623311ba1d052237612efc9b06b7ff68bb
[ "Apache-2.0" ]
63
2018-08-30T11:19:12.000Z
2021-05-13T12:11:08.000Z
guet/steps/check/help_check.py
chiptopher/guet
1099ee623311ba1d052237612efc9b06b7ff68bb
[ "Apache-2.0" ]
7
2019-05-21T13:52:37.000Z
2022-01-30T22:57:21.000Z
from typing import List from guet.steps.check.check import Check class HelpCheck(Check): def __init__(self, stop_message, *, stop_on_no_args=False): super().__init__(stop_message) self.stop_on_no_args = stop_on_no_args def should_stop(self, args: List[str]) -> bool: return '--help' ...
28.578947
89
0.679558
9c180c65cce1a3f6823468915ad00294ac3a304c
902
py
Python
unlabel_app/unlabel_backend/migrations/0007_capability.py
Amechi101/unlabel_agency
f482d425753d8afe820f155bded80349b6e50db3
[ "MIT" ]
null
null
null
unlabel_app/unlabel_backend/migrations/0007_capability.py
Amechi101/unlabel_agency
f482d425753d8afe820f155bded80349b6e50db3
[ "MIT" ]
null
null
null
unlabel_app/unlabel_backend/migrations/0007_capability.py
Amechi101/unlabel_agency
f482d425753d8afe820f155bded80349b6e50db3
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-06-22 23:00 import cloudinary.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('unlabel_backend', '0006_auto_20180622_0225'), ] operations = [ migrations.CreateModel( name='Capability...
32.214286
122
0.588692
de357b679824a982303804a7e543f8e7b96a3acc
7,698
py
Python
sudoku-5421/solution.py
Prider/AI
e8c7c4f26279f73591ce1d3b73d6e157ff2ce776
[ "MIT" ]
null
null
null
sudoku-5421/solution.py
Prider/AI
e8c7c4f26279f73591ce1d3b73d6e157ff2ce776
[ "MIT" ]
null
null
null
sudoku-5421/solution.py
Prider/AI
e8c7c4f26279f73591ce1d3b73d6e157ff2ce776
[ "MIT" ]
null
null
null
import collections assignments = [] rows = 'ABCDEFGHI' cols = '123456789' revCols = '987654321' def cross(A, B): "Cross product of elements in A and elements in B." return [s+t for s in A for t in B] boxes = cross(rows, cols) row_units = [cross(r, cols) for r in rows] column_units = [cross(rows, c) for c in co...
36.140845
115
0.62133
c562dc868d682265aa783ba7f9a3be67238dc3d2
9,489
py
Python
zvt/factors/technical_factor.py
freedom6xiaobai/zvt
f4ba510a30f1014cc0e48b85370b0d3936bd851a
[ "MIT" ]
1
2019-10-28T08:03:26.000Z
2019-10-28T08:03:26.000Z
zvt/factors/technical_factor.py
freedom6xiaobai/zvt
f4ba510a30f1014cc0e48b85370b0d3936bd851a
[ "MIT" ]
null
null
null
zvt/factors/technical_factor.py
freedom6xiaobai/zvt
f4ba510a30f1014cc0e48b85370b0d3936bd851a
[ "MIT" ]
null
null
null
from typing import List, Union import pandas as pd from zvdata.factor import Factor from zvdata import IntervalLevel from zvdata.utils.pd_utils import df_is_not_null from zvdata.utils.pd_utils import index_df_with_category_xfield from zvt.api.common import get_kdata_schema from zvt.api.computing import ma, macd cla...
45.401914
120
0.552113
c25fc44765270fb37b03f303def143f3c20b22a9
67,716
py
Python
tinynn/converter/operators/optimize.py
Wenzhe-Liu/TinyNeuralNetwork
07ae39fdf29fbb66be1257ea737f7fa227870850
[ "MIT" ]
1
2021-12-20T07:21:35.000Z
2021-12-20T07:21:35.000Z
tinynn/converter/operators/optimize.py
zhiqwang/TinyNeuralNetwork
6b01812bd397270ca1960d719eeba686da8e576d
[ "MIT" ]
null
null
null
tinynn/converter/operators/optimize.py
zhiqwang/TinyNeuralNetwork
6b01812bd397270ca1960d719eeba686da8e576d
[ "MIT" ]
1
2021-12-20T07:21:37.000Z
2021-12-20T07:21:37.000Z
import copy import functools import re import typing import warnings import igraph as ig import numpy as np from tinynn.util.util import get_logger from tflite.ActivationFunctionType import ActivationFunctionType from . import tflite as tfl from .base import FUSE_ACTIVATION_MAP, ExtendedOperator from .graph import C...
46.285714
154
0.617358
b5d667f39a9fb4a06914f2cbd77fdc446f5037ff
158
py
Python
selfdrive/version.py
UVA-DSA/OpenPilot0.3.5
b5777bbb075b92b0c11969e56f9fd264bf0ce291
[ "MIT" ]
1
2017-12-30T11:54:39.000Z
2017-12-30T11:54:39.000Z
selfdrive/version.py
UVA-DSA/OpenPilot0.3.5
b5777bbb075b92b0c11969e56f9fd264bf0ce291
[ "MIT" ]
1
2021-03-26T00:23:15.000Z
2021-03-26T00:23:15.000Z
selfdrive/version.py
UVA-DSA/OpenPilot0.3.5
b5777bbb075b92b0c11969e56f9fd264bf0ce291
[ "MIT" ]
1
2020-06-01T16:20:06.000Z
2020-06-01T16:20:06.000Z
import os with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "common", "version.h")) as _versionf: version = _versionf.read().split('"')[1]
39.5
104
0.702532
9cd060522bf59b6deca3cb0541d4a39aba26ceec
10,674
py
Python
app/main/views/api_keys.py
karlchillmaid/notifications-admin
9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880
[ "MIT" ]
null
null
null
app/main/views/api_keys.py
karlchillmaid/notifications-admin
9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880
[ "MIT" ]
null
null
null
app/main/views/api_keys.py
karlchillmaid/notifications-admin
9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880
[ "MIT" ]
null
null
null
from flask import ( Markup, abort, flash, redirect, render_template, request, url_for, ) from flask_login import current_user, login_required from app import ( api_key_api_client, current_service, notification_api_client, service_api_client, ) from app.main import main from ...
35.58
108
0.672194
2b47685d5419c0885d876c0a75bd3d2bb6d74819
6,083
py
Python
azure-mgmt-datafactory/azure/mgmt/datafactory/models/self_hosted_integration_runtime_node.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/self_hosted_integration_runtime_node.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/self_hosted_integration_runtime_node.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.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 ...
45.395522
85
0.657406
1b4cf9c40e156dee56884e98d53c61421ab66cc5
4,870
py
Python
rmgpy/tools/testGenerateReactions.py
cainja/RMG-Py
f9ad0f4244e476a28768c8a4a37410ad55bcd556
[ "MIT" ]
7
2017-10-04T16:04:14.000Z
2021-03-27T21:54:41.000Z
code/rmgpy/tools/testGenerateReactions.py
tiger-tiger/Molecular-Image-Recognition
413e74bb526f56077cd5f70bb41fb7a075636174
[ "MIT" ]
null
null
null
code/rmgpy/tools/testGenerateReactions.py
tiger-tiger/Molecular-Image-Recognition
413e74bb526f56077cd5f70bb41fb7a075636174
[ "MIT" ]
6
2017-10-04T15:37:05.000Z
2021-12-29T06:50:16.000Z
################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2017 Prof. William H. Green (whgreen@mit.edu), # Prof. Richard H. West (r.west@neu.edu) and the RMG Team (rmg_dev@mit.edu) # # Permission is hereby granted, free of cha...
36.343284
101
0.632649
9a369e9c0d5bdb2a4bd77d141dd83a02507ba557
1,518
py
Python
verlaengern.py
csicar/hosteurope-letsencrypt
d4f5087343a14c958d6b23da797dcdca00270109
[ "Apache-2.0" ]
59
2017-10-04T17:09:09.000Z
2022-03-28T08:26:23.000Z
verlaengern.py
csicar/hosteurope-letsencrypt
d4f5087343a14c958d6b23da797dcdca00270109
[ "Apache-2.0" ]
12
2018-03-06T18:42:26.000Z
2022-02-20T21:52:53.000Z
verlaengern.py
csicar/hosteurope-letsencrypt
d4f5087343a14c958d6b23da797dcdca00270109
[ "Apache-2.0" ]
14
2017-11-07T21:36:26.000Z
2021-09-04T11:18:02.000Z
#!/usr/bin/env python3 # coding=utf-8 import json import os from shared import domain_list, config_file # certbot tries to write to /var/log/letsencrypt by default; because of this, running as root is required. # certbot Error Message: # Either run as root, or set --config-dir, --work-dir, and --logs-dir to writeable...
29.192308
106
0.714756
73da56bba4eeed748efefd32c4f54fd1b19a311b
3,743
py
Python
ask-smapi-model/ask_smapi_model/v1/skill/skill_credentials.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-smapi-model/ask_smapi_model/v1/skill/skill_credentials.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-smapi-model/ask_smapi_model/v1/skill/skill_credentials.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
34.027273
132
0.629709
b7e80bef156906d030efc2da3a8a43914316c8b9
1,796
py
Python
crawler/functions/crawler_functions.py
mihai97ionita/web_crawler
65f73466c98ca27272fcdeb2abafca44de72e312
[ "MIT" ]
null
null
null
crawler/functions/crawler_functions.py
mihai97ionita/web_crawler
65f73466c98ca27272fcdeb2abafca44de72e312
[ "MIT" ]
null
null
null
crawler/functions/crawler_functions.py
mihai97ionita/web_crawler
65f73466c98ca27272fcdeb2abafca44de72e312
[ "MIT" ]
null
null
null
import json import os import redis from crawler.concurrency.FutureCollector import FutureCollector from crawler.factory.chrome_driver_factory import create_web_driver from crawler.factory.redis_connection_factory import create_redis_connection from crawler.functions.parse_functions import future_of_functions, future_...
29.442623
102
0.778953
827de06f9c7c46368a7573280687c75a13029f4c
37,644
py
Python
jira/resources.py
artbycrunk/jira
af39e84c938ea3e19acaef73c7163d7554f2f4a4
[ "BSD-2-Clause" ]
3
2020-04-23T02:33:12.000Z
2021-11-18T15:12:52.000Z
jira/resources.py
artbycrunk/jira
af39e84c938ea3e19acaef73c7163d7554f2f4a4
[ "BSD-2-Clause" ]
null
null
null
jira/resources.py
artbycrunk/jira
af39e84c938ea3e19acaef73c7163d7554f2f4a4
[ "BSD-2-Clause" ]
1
2020-07-15T05:34:44.000Z
2020-07-15T05:34:44.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import print_function """ This module implements the Resource classes that translate JSON from JIRA REST resources into usable objects. """ import logging import re import time try: # Python 2.7+ from logging import NullHandler except...
34.662983
125
0.588248
f2866af3f8e4ca5da35e0f27cfd35fa5927abd34
3,321
py
Python
data/dataset.py
hsientzucheng/CP-360-Weakly-Supervised-Saliency
dde55cccf220e72f94a3f9129036c56518c3a474
[ "MIT" ]
23
2018-10-30T14:02:31.000Z
2021-11-15T15:38:51.000Z
data/dataset.py
hsientzucheng/CP-360-Weakly-Supervised-Saliency
dde55cccf220e72f94a3f9129036c56518c3a474
[ "MIT" ]
null
null
null
data/dataset.py
hsientzucheng/CP-360-Weakly-Supervised-Saliency
dde55cccf220e72f94a3f9129036c56518c3a474
[ "MIT" ]
7
2019-04-18T15:52:11.000Z
2021-04-05T04:44:48.000Z
import os import time import numpy as np import matplotlib.pyplot as plt import cv2 import torch import torchvision import torchvision.transforms as transforms from torch.utils.data import DataLoader from PIL import Image class Sal360Dataset: def __init__(self, video_dir, motion_dir, input_d_list, seq_len, transf...
39.535714
116
0.569407
cc9d72698faa1ef784888bba3998055b1b571867
2,281
py
Python
f5_cccl/resource/ltm/irule.py
michaeldayreads/f5-cccl
5aaa584f9fc77742eb9d976954e6dad805e6f4ff
[ "Apache-2.0" ]
null
null
null
f5_cccl/resource/ltm/irule.py
michaeldayreads/f5-cccl
5aaa584f9fc77742eb9d976954e6dad805e6f4ff
[ "Apache-2.0" ]
null
null
null
f5_cccl/resource/ltm/irule.py
michaeldayreads/f5-cccl
5aaa584f9fc77742eb9d976954e6dad805e6f4ff
[ "Apache-2.0" ]
null
null
null
"""Provides a class for managing BIG-IP iRule resources.""" # coding=utf-8 # # Copyright 2017 F5 Networks 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/lic...
28.160494
75
0.660237
9d00d4fcde96fb95d77b2c0a50f3be6bab25f80b
93
py
Python
playerRatings/__init__.py
MichaelBoshell/RSCBot
6a77a76e7beab073bc40e8cab300b3031279298b
[ "MIT" ]
12
2018-12-19T17:00:00.000Z
2021-06-10T13:27:01.000Z
playerRatings/__init__.py
MichaelBoshell/RSCBot
6a77a76e7beab073bc40e8cab300b3031279298b
[ "MIT" ]
37
2020-03-10T18:42:29.000Z
2021-09-29T19:36:42.000Z
playerRatings/__init__.py
MichaelBoshell/RSCBot
6a77a76e7beab073bc40e8cab300b3031279298b
[ "MIT" ]
14
2018-12-31T02:12:18.000Z
2021-11-13T01:49:53.000Z
from .playerRatings import PlayerRatings def setup(bot): bot.add_cog(PlayerRatings(bot))
23.25
40
0.784946
da5cb19b09d88738dde9d1c3590620e5378f42e5
3,108
py
Python
common-bill-ingestion/bill_upload.py
flexera/optima-tools
549be817cba61cecaf8868207d596a3e020090e9
[ "MIT" ]
null
null
null
common-bill-ingestion/bill_upload.py
flexera/optima-tools
549be817cba61cecaf8868207d596a3e020090e9
[ "MIT" ]
2
2021-12-29T16:10:06.000Z
2021-12-29T16:10:06.000Z
common-bill-ingestion/bill_upload.py
flexera/optima-tools
549be817cba61cecaf8868207d596a3e020090e9
[ "MIT" ]
1
2022-03-10T15:53:37.000Z
2022-03-10T15:53:37.000Z
#!/usr/bin/env python3 ''' Basic Bill Upload example --------------------------- Creates a bill upload, uploads a file, then commits that bill_upload. Note: it's OK to create a new upload for a given org_id, bill connect and period, provided any previous one (for that same org_id/bill connect/period) has been committed...
44.4
106
0.703346
24370bf808d59eecdd28d259098c00d686a8b838
673
py
Python
tests/test_utils_get_percent.py
loonghao/dayu_widgets
42758872993197880f68d141ee1ce314f9b2cfea
[ "MIT" ]
null
null
null
tests/test_utils_get_percent.py
loonghao/dayu_widgets
42758872993197880f68d141ee1ce314f9b2cfea
[ "MIT" ]
null
null
null
tests/test_utils_get_percent.py
loonghao/dayu_widgets
42758872993197880f68d141ee1ce314f9b2cfea
[ "MIT" ]
null
null
null
""" Test get_percent. """ # Import future modules from __future__ import absolute_import from __future__ import division from __future__ import print_function # Import third-party modules from dayu_widgets import utils import pytest @pytest.mark.parametrize( "value, mini, maxi, result", ( (0, 0, 100,...
22.433333
57
0.604755
fa5093b0e6a7cb8549d778cf9421d38ddf7addaf
15,296
py
Python
bin/ser.py
samsledje/evolocity
2b162ff61d4239ba5af06a601e5bb62f501d4a0f
[ "MIT" ]
1
2021-06-15T02:36:57.000Z
2021-06-15T02:36:57.000Z
bin/ser.py
samsledje/evolocity
2b162ff61d4239ba5af06a601e5bb62f501d4a0f
[ "MIT" ]
null
null
null
bin/ser.py
samsledje/evolocity
2b162ff61d4239ba5af06a601e5bb62f501d4a0f
[ "MIT" ]
null
null
null
from mutation import * from evolocity_graph import * import evolocity as evo np.random.seed(1) random.seed(1) def parse_args(): import argparse parser = argparse.ArgumentParser(description='Serpin sequence analysis') parser.add_argument('model_name', type=str, help='Type of languag...
35.24424
83
0.572699
37dc517d901bc8d9ce258a04105c3c398c118489
7,637
py
Python
pynamodb/constants.py
ikonst/PynamoDB
cd705cc4e0e3dd365c7e0773f6bc02fe071a0631
[ "MIT" ]
null
null
null
pynamodb/constants.py
ikonst/PynamoDB
cd705cc4e0e3dd365c7e0773f6bc02fe071a0631
[ "MIT" ]
null
null
null
pynamodb/constants.py
ikonst/PynamoDB
cd705cc4e0e3dd365c7e0773f6bc02fe071a0631
[ "MIT" ]
null
null
null
""" Pynamodb constants """ # Operations BATCH_WRITE_ITEM = 'BatchWriteItem' DESCRIBE_TABLE = 'DescribeTable' BATCH_GET_ITEM = 'BatchGetItem' CREATE_TABLE = 'CreateTable' UPDATE_TABLE = 'UpdateTable' DELETE_TABLE = 'DeleteTable' LIST_TABLES = 'ListTables' UPDATE_ITEM = 'UpdateItem' DELETE_ITEM = 'DeleteItem' GET_ITEM =...
30.305556
147
0.771507
147199c5a8dd97154948d8177e6c2b1742cc8c18
6,917
py
Python
virtualenv/lib/python3.6/site-packages/docutils/parsers/rst/directives/images.py
coderunn3r/HadoopSpike
3e57219d0489fae1d755bc4bd97eaf22f1898464
[ "MIT" ]
null
null
null
virtualenv/lib/python3.6/site-packages/docutils/parsers/rst/directives/images.py
coderunn3r/HadoopSpike
3e57219d0489fae1d755bc4bd97eaf22f1898464
[ "MIT" ]
null
null
null
virtualenv/lib/python3.6/site-packages/docutils/parsers/rst/directives/images.py
coderunn3r/HadoopSpike
3e57219d0489fae1d755bc4bd97eaf22f1898464
[ "MIT" ]
null
null
null
# $Id: images.py 7594 2013-01-21 17:14:17Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ Directives for figures and simple images. """ __docformat__ = 'reStructuredText' import sys import urllib.request, urllib.parse, urllib.error from docuti...
41.921212
78
0.579297
fa7cc78d24aa0494751f6ff87fcc78c384ab4415
662
py
Python
prime_numbers_between_U_&_L.py
Kaustav-CS/Y_2021
db21c67ec14f5aae511f6e0d1ef2c68e39b075db
[ "Unlicense" ]
1
2021-10-03T04:06:53.000Z
2021-10-03T04:06:53.000Z
prime_numbers_between_U_&_L.py
Kaustav-CS/Y_2021
db21c67ec14f5aae511f6e0d1ef2c68e39b075db
[ "Unlicense" ]
1
2021-09-17T21:08:57.000Z
2021-09-17T21:08:57.000Z
prime_numbers_between_U_&_L.py
Kaustav-CS/Y_2021
db21c67ec14f5aae511f6e0d1ef2c68e39b075db
[ "Unlicense" ]
null
null
null
import time fh = open("Prime_numbers_02.txt",'w') #L =input('Enter Starting number of the nember set:\t') L = 10 lower=int(L) #U =input('Enter Last number of the nember set:\t') U = 10**31 upper=int(U) print("Prime numbers between", lower, "and", upper, "are:\t") print("Prime numbers between", lower, "...
23.642857
72
0.567976
fe0b2dd46475556b10f7689155b4a63badd07c4f
759
py
Python
examples/flight_delay_prediction/flight_delay_prediction.py
akshitsingla/amadeus-python
d8f3595e556b674998156f98d8a318045bb4c21c
[ "MIT" ]
null
null
null
examples/flight_delay_prediction/flight_delay_prediction.py
akshitsingla/amadeus-python
d8f3595e556b674998156f98d8a318045bb4c21c
[ "MIT" ]
null
null
null
examples/flight_delay_prediction/flight_delay_prediction.py
akshitsingla/amadeus-python
d8f3595e556b674998156f98d8a318045bb4c21c
[ "MIT" ]
null
null
null
from amadeus import Client, ResponseError amadeus = Client() try: ''' Will there be a delay from BRU to FRA? If so how much delay? ''' response = amadeus.travel.predictions.flight_delay.get(originLocationCode='NCE', destinationLocationCode='IST', ...
44.647059
115
0.500659
a80caa883350a9dbb83fdcf28932e83feabb0bf0
675
py
Python
backend/infovis/nicetable/serializers.py
cientopolis/data-viz
1c555db4af1f744b22c1a84d8fc73817263373a7
[ "MIT" ]
null
null
null
backend/infovis/nicetable/serializers.py
cientopolis/data-viz
1c555db4af1f744b22c1a84d8fc73817263373a7
[ "MIT" ]
12
2020-02-12T01:22:45.000Z
2022-02-26T16:37:56.000Z
backend/infovis/nicetable/serializers.py
cientopolis/data-viz
1c555db4af1f744b22c1a84d8fc73817263373a7
[ "MIT" ]
1
2019-10-02T20:04:23.000Z
2019-10-02T20:04:23.000Z
from rest_framework import serializers from .models import TablePersistence, ColumnPersistence, ChartPersistence class ColumnSerializer(serializers.ModelSerializer): class Meta: model = ColumnPersistence fields = ['id', 'table', 'index', 'title', 'column_type', 'visible'] class TableSerializer(s...
32.142857
76
0.705185
84b08cb9d6a98b5eec15439e357c510f65ac0cb4
3,311
py
Python
.mywaflib/waflib/extras/run_pl_script.py
simonjheiler/ui_human_capital
4c5f9b3c56f03cb777cc78958b72d6ffc65a6e79
[ "MIT" ]
null
null
null
.mywaflib/waflib/extras/run_pl_script.py
simonjheiler/ui_human_capital
4c5f9b3c56f03cb777cc78958b72d6ffc65a6e79
[ "MIT" ]
null
null
null
.mywaflib/waflib/extras/run_pl_script.py
simonjheiler/ui_human_capital
4c5f9b3c56f03cb777cc78958b72d6ffc65a6e79
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # Hans-Martin von Gaudecker and David Birke, 2012-16 """ Run a Perl script in the directory specified by **ctx.bldnode**. Strings supplied to the **prepend** and **append** keywords will be added to the command line. Usage:: ctx( features='run_pl_script', ...
27.139344
95
0.601027
eea0204f42e8194a42ba507fd2bc27c26207b795
3,445
py
Python
src/networks/cifar10_LeNet_elu.py
Flsahkong/Deep-SVDD-PyTorch
c20442fb394f679222ae49d299bcb3c95e2d67c8
[ "MIT" ]
null
null
null
src/networks/cifar10_LeNet_elu.py
Flsahkong/Deep-SVDD-PyTorch
c20442fb394f679222ae49d299bcb3c95e2d67c8
[ "MIT" ]
null
null
null
src/networks/cifar10_LeNet_elu.py
Flsahkong/Deep-SVDD-PyTorch
c20442fb394f679222ae49d299bcb3c95e2d67c8
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from src.base.base_net import BaseNet class CIFAR10_LeNet_ELU(BaseNet): def __init__(self): super().__init__() self.rep_dim = 128 self.pool = nn.MaxPool2d(2, 2) self.conv1 = nn.Conv2d(3, 32, 5, bias=False, paddi...
38.277778
101
0.600871
f5c0da683a3e328309ec792eecd8a9f806d89a90
1,347
py
Python
setup.py
JakeCover/Flare-DiscordPy
24cc2541a6ef548583e46d58ae18abe72da5f37f
[ "MIT" ]
1
2021-04-02T20:16:03.000Z
2021-04-02T20:16:03.000Z
setup.py
JakeCover/Flare-DiscordPy
24cc2541a6ef548583e46d58ae18abe72da5f37f
[ "MIT" ]
null
null
null
setup.py
JakeCover/Flare-DiscordPy
24cc2541a6ef548583e46d58ae18abe72da5f37f
[ "MIT" ]
null
null
null
from setuptools import setup from __about__ import __version__ with open("README.md") as rdme: long_description = rdme.read() setup( name="flare-discord.py", version=__version__, description="Provides a simple, single import cog to add a checkable page to your bot for uptime status monitoring", l...
31.325581
120
0.616184
d1671767d92990d0c01230628d6d8fa825d4d40d
22,886
py
Python
src/bkl/plugins/gnu.py
minoki/bakefile
80c360b0b618d1d04d7f2ad64d327cd42a0230a7
[ "MIT" ]
null
null
null
src/bkl/plugins/gnu.py
minoki/bakefile
80c360b0b618d1d04d7f2ad64d327cd42a0230a7
[ "MIT" ]
null
null
null
src/bkl/plugins/gnu.py
minoki/bakefile
80c360b0b618d1d04d7f2ad64d327cd42a0230a7
[ "MIT" ]
null
null
null
# # This file is part of Bakefile (http://bakefile.org) # # Copyright (C) 2009-2013 Vaclav Slavik # # 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...
35.927786
107
0.633531
8e916936a4c3fc02f78e871f7f532223e6209a3f
3,255
py
Python
userbot/modules/www.py
Patrick489/PatrickBot
8c6f8bd8c346887792cff31700f820c20db93042
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2020-12-14T14:21:21.000Z
2021-02-06T14:29:26.000Z
userbot/modules/www.py
Razer-Cynosa/IsengUserbot
6eb9058871eb8dc9cf12aa164dd26cbef9cba553
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2021-01-04T13:13:05.000Z
2021-03-23T02:06:32.000Z
userbot/modules/www.py
Razer-Cynosa/IsengUserbot
6eb9058871eb8dc9cf12aa164dd26cbef9cba553
[ "Naumen", "Condor-1.1", "MS-PL" ]
20
2020-12-19T19:21:42.000Z
2021-10-05T15:07:42.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module containing commands related to the \ Information Superhighway (yes, Internet). """ from datetim...
29.324324
113
0.571121
3272a8537ddea2c76f4dde43de15297de4f8fa9c
1,972
py
Python
venv/lib/python3.8/site-packages/vsts/git/v4_0/models/git_cherry_pick.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/git/v4_0/models/git_cherry_pick.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/git/v4_0/models/git_cherry_pick.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
48.097561
139
0.589249
d485733c1f8da253000a88ac9bb6c36d335c7325
7,244
py
Python
wtforms_sqlalchemy/fields.py
SleeveShirtholes/wtforms-sqlalchemy
e172387992601ab8477d767580e957209ac46ea1
[ "BSD-3-Clause" ]
84
2015-02-12T17:43:00.000Z
2022-03-05T15:23:18.000Z
wtforms_sqlalchemy/fields.py
SleeveShirtholes/wtforms-sqlalchemy
e172387992601ab8477d767580e957209ac46ea1
[ "BSD-3-Clause" ]
23
2016-01-31T14:35:11.000Z
2022-02-18T17:45:17.000Z
wtforms_sqlalchemy/fields.py
SleeveShirtholes/wtforms-sqlalchemy
e172387992601ab8477d767580e957209ac46ea1
[ "BSD-3-Clause" ]
37
2015-07-05T01:26:10.000Z
2021-12-29T00:47:14.000Z
""" Useful form fields for use with SQLAlchemy ORM. """ import operator from wtforms import widgets from wtforms.compat import string_types from wtforms.compat import text_type from wtforms.fields import SelectFieldBase from wtforms.validators import ValidationError try: from sqlalchemy.orm.util import identity_k...
33.077626
85
0.636803
58fdcad3311d46d9559e159600152f7a1f67b0ef
1,021
py
Python
neutron/plugins/plumgrid/common/exceptions.py
ksshanam/neutron-dvr
c0854ea0d1023ab42e1ef861f9b6ff480e985ac5
[ "Apache-2.0" ]
3
2015-02-02T02:51:39.000Z
2015-02-23T10:20:23.000Z
neutron/plugins/plumgrid/common/exceptions.py
ksshanam/neutron-dvr
c0854ea0d1023ab42e1ef861f9b6ff480e985ac5
[ "Apache-2.0" ]
4
2015-02-23T10:21:11.000Z
2015-03-04T09:28:20.000Z
neutron/plugins/plumgrid/common/exceptions.py
ksshanam/neutron-dvr
c0854ea0d1023ab42e1ef861f9b6ff480e985ac5
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 PLUMgrid, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
35.206897
78
0.742409
f61ce4de8ad3a43ecece7f7687b9f1009848e429
13,203
py
Python
test/cli/output/test_default.py
chr1st1ank/schemathesis
f2e160d56c1fdce9eac7fee5875b209c8944f54a
[ "MIT" ]
null
null
null
test/cli/output/test_default.py
chr1st1ank/schemathesis
f2e160d56c1fdce9eac7fee5875b209c8944f54a
[ "MIT" ]
null
null
null
test/cli/output/test_default.py
chr1st1ank/schemathesis
f2e160d56c1fdce9eac7fee5875b209c8944f54a
[ "MIT" ]
null
null
null
import os import sys import click import hypothesis import pytest from hypothesis.reporting import report import schemathesis from schemathesis import models, runner, utils from schemathesis.cli.output import default @pytest.fixture(autouse=True) def click_context(): """Add terminal colors to the output in test...
42.728155
119
0.708324
771fe70eb4ba196c49a1d5e11e8fea4d6faf2653
3,654
py
Python
contact_test.py
kibetrono/Contact-List
d7449b9895bc7cfc6d3a2810d942f643c94ad0df
[ "Unlicense" ]
null
null
null
contact_test.py
kibetrono/Contact-List
d7449b9895bc7cfc6d3a2810d942f643c94ad0df
[ "Unlicense" ]
null
null
null
contact_test.py
kibetrono/Contact-List
d7449b9895bc7cfc6d3a2810d942f643c94ad0df
[ "Unlicense" ]
null
null
null
import unittest # Importing the unittest module from contact import Contact # Importing the contact class import pyperclip class TestContact(unittest.TestCase): ''' Test class that defines test cases for the contact class behaviours. Args: unittest.TestCase: TestCase class that helps in creating ...
32.625
109
0.648878
d0435cfdae221bf39d8392b12fdb7064f7bc9b8d
16,280
py
Python
toontown/racing/RaceGlobals.py
mghost99/open-toontown-py3
072c3f5c06e1aab2bf4186681a247319b5d25e80
[ "BSD-3-Clause" ]
null
null
null
toontown/racing/RaceGlobals.py
mghost99/open-toontown-py3
072c3f5c06e1aab2bf4186681a247319b5d25e80
[ "BSD-3-Clause" ]
null
null
null
toontown/racing/RaceGlobals.py
mghost99/open-toontown-py3
072c3f5c06e1aab2bf4186681a247319b5d25e80
[ "BSD-3-Clause" ]
null
null
null
TrackSignDuration = 15 RaceCountdown = 3 MaxRacers = 4 MaxTickets = 99999 Practice = 0 ToonBattle = 1 Circuit = 2 Speedway = 0 Rural = 1 Urban = 2 RT_Speedway_1 = 0 RT_Speedway_1_rev = 1 RT_Rural_1 = 20 RT_Rural_1_rev = 21 RT_Urban_1 = 40 RT_Urban_1_rev = 41 RT_Speedway_2 = 60 RT_Speedway_2_rev = 61 RT_Rural_2 = 62 RT_...
29.228007
163
0.576597
b87f7635005b2af76d30e3a90c8f2db9a7872912
914
py
Python
ip/migrations/0024_finish_tag_migration.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
ip/migrations/0024_finish_tag_migration.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
ip/migrations/0024_finish_tag_migration.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # finish tag migration # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------------...
35.153846
88
0.477024
a48961cd371f1da0061187177ccd7c4fb129b163
2,528
py
Python
Make_Dataset.py
huang-junhong/SIRSRGAN
a774416cd45a00982141a1571cb2a8a18bb05c86
[ "Apache-2.0" ]
null
null
null
Make_Dataset.py
huang-junhong/SIRSRGAN
a774416cd45a00982141a1571cb2a8a18bb05c86
[ "Apache-2.0" ]
null
null
null
Make_Dataset.py
huang-junhong/SIRSRGAN
a774416cd45a00982141a1571cb2a8a18bb05c86
[ "Apache-2.0" ]
null
null
null
import os import cv2 import numpy as np import Make_Dataset_config def mkdir(path): folder=os.path.exists(path) if not folder: os.makedirs(path) print(path,' Folder Created') else: print(path,' Already Exist') def load_file_path(PATH): filenames=[] ...
25.029703
124
0.582674
1eeb30e3cd27373a8ac5ea4e88ea59c4ba6686a7
7,538
py
Python
detect_fake_videos.py
Miguel000/FakeVideosDetector
2626b2cd9302320229030129e166c51c2d7862e9
[ "MIT" ]
1
2020-12-27T16:37:21.000Z
2020-12-27T16:37:21.000Z
detect_fake_videos.py
Miguel000/FakeVideosDetector
2626b2cd9302320229030129e166c51c2d7862e9
[ "MIT" ]
2
2022-01-13T03:51:53.000Z
2022-03-12T00:59:32.000Z
detect_fake_videos.py
Miguel000/FakeVideosDetector
2626b2cd9302320229030129e166c51c2d7862e9
[ "MIT" ]
null
null
null
""" Evaluates a folder of video files or a single file with a xception binary classification network. Usage: python detect_from_video.py -i <folder with video files or path to video file> -m <path to model file> -o <path to output folder, will write one or multiple output videos there> Author: Andreas Rös...
32.213675
99
0.607721
36da7d042f24780f458fdead110d03d045ad481c
1,988
py
Python
pyhelpertool/HelperGraphics.py
dhufe/pyhelpertool
44d29112e9d34fa02f36c0b26d1b54f63ecdb0e4
[ "MIT" ]
null
null
null
pyhelpertool/HelperGraphics.py
dhufe/pyhelpertool
44d29112e9d34fa02f36c0b26d1b54f63ecdb0e4
[ "MIT" ]
null
null
null
pyhelpertool/HelperGraphics.py
dhufe/pyhelpertool
44d29112e9d34fa02f36c0b26d1b54f63ecdb0e4
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import seaborn as sns def set_rcparams(width=6.69291, fontsize=16, for_article=True, for_beamer=False): """ Setting rcparams of matplotlib ready for publishing """ height = width / 1.618 if for_article or for_beamer: params = { #'backend': 'pdf'...
32.590164
81
0.581992
36c5ff08c17d22d66d660b6eaa9b1bd8f7e5b077
1,589
py
Python
azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/models/storage_account_key.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/models/storage_account_key.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/models/storage_account_key.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
33.104167
76
0.591567