hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a1507696614c81e3043b1c781c1e2123ccbe7eb
9,535
py
Python
sts/happensbefore/hb_utils.py
nsg-ethz/SDNRacer
33353177998947580e879941f05862f0173a0c48
[ "Apache-2.0" ]
5
2016-03-18T15:12:04.000Z
2019-01-28T20:18:24.000Z
sts/happensbefore/hb_utils.py
nsg-ethz/SDNRacer
33353177998947580e879941f05862f0173a0c48
[ "Apache-2.0" ]
null
null
null
sts/happensbefore/hb_utils.py
nsg-ethz/SDNRacer
33353177998947580e879941f05862f0173a0c48
[ "Apache-2.0" ]
1
2019-11-02T22:04:48.000Z
2019-11-02T22:04:48.000Z
""" Various utils functions, some are copied from STS. """ import base64 from functools import partial from pox.lib.addresses import EthAddr from pox.lib.packet.ethernet import ethernet from pox.lib.packet.icmp import icmp from pox.lib.packet.ipv4 import ipv4 from pox.lib.packet.icmp import _type_to_name as icmp_name...
27.961877
102
0.674253
4a150774caa60919cac3e2f898b479ff886d7b52
1,038
py
Python
utils/tidfit_utils.py
woctezuma/steam-reviews-to-sales
51ca279d07a2a1cf26d099a5cfe51566760298cd
[ "MIT" ]
3
2021-08-08T21:06:19.000Z
2021-12-27T05:29:50.000Z
utils/tidfit_utils.py
woctezuma/steam-reviews-to-sales
51ca279d07a2a1cf26d099a5cfe51566760298cd
[ "MIT" ]
null
null
null
utils/tidfit_utils.py
woctezuma/steam-reviews-to-sales
51ca279d07a2a1cf26d099a5cfe51566760298cd
[ "MIT" ]
null
null
null
import tidfit from matplotlib import pyplot as plt from utils.plot_utils import plot_arrays def run_tidfit(X, y, model_str, xlabel="#reviews", ylabel="#owners"): # Caveat: this is based on the L2 error, and thus is sensitive to the pre-processing of outliers. # Reference: https://github.com/aminnj/tidfit ...
28.833333
101
0.686898
4a1507eba615d538abd7e10210a7e0211e15bad9
7,474
py
Python
benchmarks/f3_wrong_hints/scaling_ltl_infinite_state/7-extending_bound_10.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints/scaling_ltl_infinite_state/7-extending_bound_10.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints/scaling_ltl_infinite_state/7-extending_bound_10.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import Tuple, FrozenSet from collections import Iterable from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msat_make_not, msat_mak...
37.18408
89
0.629783
4a15082b2b439f6c44d9c7995bbbffb3134c7de6
1,384
py
Python
nipype/interfaces/setup.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/setup.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/setup.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: from __future__ import print_function, division, unicode_literals, absolute_import def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Co...
32.952381
82
0.723988
4a1508e11f82aff71380a1345946149dd1a19635
3,234
py
Python
gamestonk_terminal/cryptocurrency/crypto_controller.py
alexgallego1997/GamestonkTerminal
1c6ce5c99111aa7195c51f6930fcdbb9dadd2f00
[ "MIT" ]
3
2021-04-13T06:26:46.000Z
2022-01-26T05:11:22.000Z
gamestonk_terminal/cryptocurrency/crypto_controller.py
alexgallego1997/GamestonkTerminal
1c6ce5c99111aa7195c51f6930fcdbb9dadd2f00
[ "MIT" ]
2
2021-04-17T10:24:06.000Z
2021-04-17T10:44:59.000Z
gamestonk_terminal/cryptocurrency/crypto_controller.py
alexgallego1997/GamestonkTerminal
1c6ce5c99111aa7195c51f6930fcdbb9dadd2f00
[ "MIT" ]
null
null
null
__docformat__ = "numpy" import argparse import pandas as pd import matplotlib.pyplot as plt from prompt_toolkit.completion import NestedCompleter from gamestonk_terminal import feature_flags as gtff from gamestonk_terminal.helper_funcs import get_flair from gamestonk_terminal.menu import session from gamestonk_termina...
31.096154
88
0.607607
4a150a17cbe03d3e5b5db7dd5aa7bdb03884c6e8
1,268
py
Python
couchapp/autopush/command.py
JKDingwall/couchapp
447aa0ce2d41b47f454fdfbefc1973a392603046
[ "Apache-2.0" ]
null
null
null
couchapp/autopush/command.py
JKDingwall/couchapp
447aa0ce2d41b47f454fdfbefc1973a392603046
[ "Apache-2.0" ]
null
null
null
couchapp/autopush/command.py
JKDingwall/couchapp
447aa0ce2d41b47f454fdfbefc1973a392603046
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of couchapp released under the Apache 2 license. # See the NOTICE for more information. import logging import os import sys from couchapp.autopush import DEFAULT_UPDATE_DELAY from couchapp.errors import AppError from couchapp.localdoc import document if sys.platform == ...
26.978723
86
0.66877
4a150a1c890646883c4fbb19dcfe1ba1e2a0a7e8
5,510
py
Python
tensorflow_datasets/core/file_adapters.py
BearerPipelineTest/datasets
4f8ae1bcf8727aca31ad99d3083e707a1b98036c
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/file_adapters.py
BearerPipelineTest/datasets
4f8ae1bcf8727aca31ad99d3083e707a1b98036c
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/file_adapters.py
BearerPipelineTest/datasets
4f8ae1bcf8727aca31ad99d3083e707a1b98036c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
28.848168
111
0.709437
4a150a44cd72621d3220eb388bba4a664e89c133
50,275
py
Python
rapid7vmconsole/models/report_filters.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
rapid7vmconsole/models/report_filters.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
rapid7vmconsole/models/report_filters.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
# coding: utf-8 """ InsightVM API # Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ...
591.470588
48,045
0.489209
4a150ce2ef19931315652372d24da6b0b9950b5c
669
py
Python
examples/animates/repeating.sine.curve.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
5
2019-09-23T05:15:47.000Z
2021-01-17T08:06:47.000Z
examples/animates/repeating.sine.curve.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
3
2019-05-03T05:25:17.000Z
2021-04-15T04:53:16.000Z
examples/animates/repeating.sine.curve.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
4
2019-05-04T13:42:40.000Z
2021-04-15T10:38:48.000Z
""" Repeating sine curve Adapted form "Processing Creative Coding and Computational Art", Page 133. """ import math from easygraphics import * def main(): init_graph(400, 400) set_render_mode(RenderMode.RENDER_MANUAL) set_background_color("white") angle = 0 y = 0 amplitude = 72 wave_gap =...
21.580645
74
0.57997
4a150d5b95a409ff5d33b2c7eb140e42ad3d304c
5,737
py
Python
socfaker/sysmon.py
priamai/soc-faker
51b587f0cec52212136905280406e915006d2afc
[ "MIT" ]
122
2020-02-21T16:06:54.000Z
2022-03-21T13:53:03.000Z
socfaker/sysmon.py
priamai/soc-faker
51b587f0cec52212136905280406e915006d2afc
[ "MIT" ]
13
2020-01-29T16:37:05.000Z
2022-01-27T21:30:10.000Z
socfaker/sysmon.py
priamai/soc-faker
51b587f0cec52212136905280406e915006d2afc
[ "MIT" ]
20
2020-04-10T11:59:29.000Z
2022-02-10T09:20:26.000Z
import os import fnmatch from string import Formatter from .computer import Computer from .file import File from .organization import Organization from .employee import Employee from .network import Network from .registry import Registry from .timestamp import Timestamp from .baseclass import BaseClass class SysMon(B...
48.210084
212
0.524142
4a150dcd3ae8c30a3959b54206a3fca7ad67ebd0
3,320
py
Python
forte/processors/data_augment/algorithms/embedding_similarity_replacement_op.py
KGerring/forte
7dc6e6c7d62d9a4126bdfc5ca02d15be3ffd61ca
[ "Apache-2.0" ]
null
null
null
forte/processors/data_augment/algorithms/embedding_similarity_replacement_op.py
KGerring/forte
7dc6e6c7d62d9a4126bdfc5ca02d15be3ffd61ca
[ "Apache-2.0" ]
1
2022-02-23T23:21:03.000Z
2022-02-23T23:21:03.000Z
forte/processors/data_augment/algorithms/embedding_similarity_replacement_op.py
KGerring/forte
7dc6e6c7d62d9a4126bdfc5ca02d15be3ffd61ca
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Forte 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 applicable ...
36.086957
77
0.675904
4a150e10aa97856f11e76434d4af2de0703547a9
753
py
Python
pr1696m/max_result.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
1
2020-02-20T12:04:46.000Z
2020-02-20T12:04:46.000Z
pr1696m/max_result.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
pr1696m/max_result.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
from typing import List from collections import deque class Solution: def maxResult(self, nums: List[int], k: int) -> int: dp = [nums[0]] + [0] * (len(nums) - 1) d = deque([0]) for i in range(1, len(nums)): dp[i] = nums[i] + dp[d[0]] while d and dp[d[-1]] < dp[i]: ...
25.1
62
0.444887
4a150eb89d3fffeb018b7608ed9add91225b5f8c
831
py
Python
scripts/cyp2c8/hg38/bin/cypgen_caller.py
twesigomwedavid/CypGen
0febf576e26da1884b4d8e9f79542bf1b01e969e
[ "MIT" ]
3
2020-08-03T16:52:30.000Z
2021-06-30T16:59:17.000Z
scripts/cyp2c8/hg38/bin/cypgen_caller.py
twesigomwedavid/CypGen
0febf576e26da1884b4d8e9f79542bf1b01e969e
[ "MIT" ]
null
null
null
scripts/cyp2c8/hg38/bin/cypgen_caller.py
twesigomwedavid/CypGen
0febf576e26da1884b4d8e9f79542bf1b01e969e
[ "MIT" ]
2
2020-10-14T10:18:22.000Z
2020-12-16T18:03:15.000Z
#!/usr/bin/env python3 import os import sys import subprocess from snv_def_modules import * print("--------------------------------------------\n") print("CYP2C8 Star Allele Calling with CypGen\n") print("--------------------------------------------\n") database = sys.argv[1] infile = sys.argv[2] infile_full = ...
16.62
103
0.677497
4a150ecd5feb2d558102dffb0477f2a713e1d6cd
6,954
py
Python
graph_objs/scattercarpet/unselected/_marker.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
graph_objs/scattercarpet/unselected/_marker.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
graph_objs/scattercarpet/unselected/_marker.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattercarpet.unselected" _path_str = "scattercarpet.unselected.marker" _valid_props = {"col...
34.088235
82
0.555939
4a150f99f946be4061babe6e7344f01a55f51bb3
9,609
py
Python
dfvfs/helpers/windows_path_resolver.py
Acidburn0zzz/dfvfs
3db8c4e520e3e7527faffeea8f52187c861fa3b6
[ "Apache-2.0" ]
1
2019-08-28T23:47:16.000Z
2019-08-28T23:47:16.000Z
dfvfs/helpers/windows_path_resolver.py
Acidburn0zzz/dfvfs
3db8c4e520e3e7527faffeea8f52187c861fa3b6
[ "Apache-2.0" ]
null
null
null
dfvfs/helpers/windows_path_resolver.py
Acidburn0zzz/dfvfs
3db8c4e520e3e7527faffeea8f52187c861fa3b6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """A resolver for Windows paths to file system specific formats.""" from __future__ import unicode_literals import re from dfvfs.lib import errors from dfvfs.lib import py2to3 from dfvfs.path import factory as path_spec_factory class WindowsPathResolver(object): """Resolver object for Win...
35.069343
80
0.679259
4a15100b4003e735536c88a65ece7b942ac76ef9
24,612
py
Python
nipyapi/nifi/api_client.py
oneextrafact/nipyapi
4c184d69002a8ee3ac528fda63b2ffcc6cedbae5
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/api_client.py
oneextrafact/nipyapi
4c184d69002a8ee3ac528fda63b2ffcc6cedbae5
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/api_client.py
oneextrafact/nipyapi
4c184d69002a8ee3ac528fda63b2ffcc6cedbae5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
38.820189
479
0.546725
4a15128c8c1b38ece77c7829cf0ffdff5281f069
1,733
py
Python
sympy/logic/utilities/dimacs.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/logic/utilities/dimacs.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/logic/utilities/dimacs.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
"""For reading in DIMACS file format www.cs.ubc.ca/~hoos/SATLIB/Benchmarks/SAT/satformat.ps """ from sympy.core import Symbol from sympy.logic.boolalg import And, Or import re def load(s): """Loads a boolean expression from a string. Examples ======== >>> from sympy.logic.utiliti...
24.408451
65
0.431044
4a15131be234314251e4510388d568e3e6934b7f
4,405
py
Python
configs/restorers/tdan/tdan_vimeo90k_bix4_ft_lr5e-5_400k.py
ChenShuwei1001/mmediting
285e629fe9da8a13c7538a6bb3347e8870cd7201
[ "Apache-2.0" ]
1
2021-09-16T08:55:47.000Z
2021-09-16T08:55:47.000Z
configs/restorers/tdan/tdan_vimeo90k_bix4_ft_lr5e-5_400k.py
ChenShuwei1001/mmediting
285e629fe9da8a13c7538a6bb3347e8870cd7201
[ "Apache-2.0" ]
1
2021-08-05T16:20:39.000Z
2021-08-05T16:20:39.000Z
configs/restorers/tdan/tdan_vimeo90k_bix4_ft_lr5e-5_400k.py
ChenShuwei1001/mmediting
285e629fe9da8a13c7538a6bb3347e8870cd7201
[ "Apache-2.0" ]
null
null
null
exp_name = 'tdan_vimeo90k_bix4_ft_lr5e-5_400k' # model settings model = dict( type='TDAN', generator=dict(type='TDANNet'), pixel_loss=dict(type='MSELoss', loss_weight=1.0, reduction='mean'), lq_pixel_loss=dict(type='MSELoss', loss_weight=0.25, reduction='mean')) # model training and testing settings tr...
31.241135
79
0.621112
4a151392c9bfcdd7a7a75be0a68ab3c07c0411c9
47,639
py
Python
examples/cog.py
yanlai00/cog
01dbfcbe336072b6f4cb2b9952606bd45c65af7f
[ "MIT" ]
null
null
null
examples/cog.py
yanlai00/cog
01dbfcbe336072b6f4cb2b9952606bd45c65af7f
[ "MIT" ]
null
null
null
examples/cog.py
yanlai00/cog
01dbfcbe336072b6f4cb2b9952606bd45c65af7f
[ "MIT" ]
2
2021-06-07T07:35:11.000Z
2021-07-15T22:02:52.000Z
import rlkit.torch.pytorch_util as ptu from rlkit.data_management.load_buffer import load_data_from_npy_chaining,load_data_from_npy_chaining_mult from rlkit.samplers.data_collector import MdpPathCollector, \ CustomMDPPathCollector from rlkit.torch.sac.policies import TanhGaussianPolicy, MakeDeterministic, Determin...
49.213843
243
0.646655
4a1513ce575930883dbd5126772747256565f342
3,319
py
Python
scripts/fig1_mayavi_headon.py
rohitsupekar/active_matter_spheres
7fb144e8c5bb8a7b562223eb32235d0eb21b07c8
[ "MIT" ]
1
2019-02-12T21:21:09.000Z
2019-02-12T21:21:09.000Z
scripts/fig1_mayavi_headon.py
rohitsupekar/active_matter_spheres
7fb144e8c5bb8a7b562223eb32235d0eb21b07c8
[ "MIT" ]
1
2019-05-31T22:25:22.000Z
2019-06-10T17:55:05.000Z
scripts/fig1_mayavi_headon.py
rohitsupekar/active_matter_spheres
7fb144e8c5bb8a7b562223eb32235d0eb21b07c8
[ "MIT" ]
null
null
null
import os import sys sys.path.append("../") # go to parent dir import glob import time import logging import numpy as np from scipy.sparse import linalg as spla import matplotlib.pyplot as plt import logging from mpl_toolkits import mplot3d from mayavi import mlab from scipy.special import sph_harm mlab.options.offscr...
27.429752
83
0.642362
4a1514647ce9cf36a2a61603be65bb5bbe2a5e74
992
py
Python
final_project/machinetranslation/translator.py
sugan84/xzceb-flask_eng_fr
18adfcefd838580490eb9a74da1356d76f0ecd9d
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
sugan84/xzceb-flask_eng_fr
18adfcefd838580490eb9a74da1356d76f0ecd9d
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
sugan84/xzceb-flask_eng_fr
18adfcefd838580490eb9a74da1356d76f0ecd9d
[ "Apache-2.0" ]
null
null
null
""" Translator Module """ #import json import os from ibm_watson import LanguageTranslatorV3 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from dotenv import load_dotenv load_dotenv() apikey = os.environ['apikey'] url = os.environ['url'] authenticator = IAMAuthenticator(apikey) language_translator ...
23.619048
86
0.704637
4a1514d5850d86b55fa468fb7b0c98b53c969c64
19,950
py
Python
lib/ReadsUtils/ReadsUtilsImpl.py
aekazakov/kb_blast
3af28a72bc783a0da7f301e359a7c2e420d1fa74
[ "MIT" ]
null
null
null
lib/ReadsUtils/ReadsUtilsImpl.py
aekazakov/kb_blast
3af28a72bc783a0da7f301e359a7c2e420d1fa74
[ "MIT" ]
null
null
null
lib/ReadsUtils/ReadsUtilsImpl.py
aekazakov/kb_blast
3af28a72bc783a0da7f301e359a7c2e420d1fa74
[ "MIT" ]
null
null
null
#BEGIN_HEADER import time import subprocess import os import tempfile import shutil from DataFileUtil.DataFileUtilClient import DataFileUtil from numbers import Number import six #END_HEADER class ReadsUtils: ''' Module Name: ReadsUtils Module Description: Utilities for handling reads files. ...
47.051887
114
0.579649
4a15171b6064f676e51d3e338f3ad734330384bd
8,291
py
Python
driver.py
ct2034/PRIMAL2
1bd44cba6f674e37e78b893a323d35a348dfb759
[ "MIT" ]
58
2020-10-18T11:14:05.000Z
2022-03-27T11:52:24.000Z
driver.py
ct2034/PRIMAL2
1bd44cba6f674e37e78b893a323d35a348dfb759
[ "MIT" ]
8
2020-11-20T07:41:03.000Z
2021-12-14T08:36:42.000Z
driver.py
ct2034/PRIMAL2
1bd44cba6f674e37e78b893a323d35a348dfb759
[ "MIT" ]
29
2020-11-11T10:18:21.000Z
2022-02-21T09:57:35.000Z
import numpy as np import tensorflow as tf import os import ray from Ray_ACNet import ACNet from Runner import imitationRunner, RLRunner from parameters import * import random ray.init(num_gpus=1) tf.reset_default_graph() print("Hello World") config = tf.ConfigProto(allow_soft_placement = True) config.gpu_option...
35.583691
129
0.636111
4a15177674a8d946ada6ab0382b2089e40dab0a4
1,414
py
Python
2016/January/gates/gates.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
2016/January/gates/gates.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
2016/January/gates/gates.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
def getCord(d, curCord): # updates cord if d == "N": return (curCord[0], curCord[1] + 1,) elif d == "E": return (curCord[0] + 1, curCord[1],) elif d == "S": return (curCord[0], curCord[1] - 1,) else: # curCord is "W" return (curCord[0] - 1, curCord[1],) def getNumOfGates(N, directions): ...
22.09375
63
0.622348
4a1517f7cd5c79cd9861d1a36cfbd26967bfcacc
1,187
py
Python
bqskit/compiler/executor.py
jkalloor3/bqskit
ad34a6eae3c0e62d2bd960cd4cd841ba8e845811
[ "BSD-3-Clause-LBNL" ]
null
null
null
bqskit/compiler/executor.py
jkalloor3/bqskit
ad34a6eae3c0e62d2bd960cd4cd841ba8e845811
[ "BSD-3-Clause-LBNL" ]
null
null
null
bqskit/compiler/executor.py
jkalloor3/bqskit
ad34a6eae3c0e62d2bd960cd4cd841ba8e845811
[ "BSD-3-Clause-LBNL" ]
null
null
null
"""This module implements the Executor class.""" from __future__ import annotations from typing import Any from threadpoolctl import threadpool_limits from bqskit.compiler.task import CompilationTask from bqskit.ir.circuit import Circuit class Executor: """An Executor is responsible for executing a Compilation...
28.95122
77
0.647009
4a1519a3c95748db8880456e9189936225af30ff
13,508
py
Python
onyx/pack_manager.py
Command-Master/Onyx
03dfb88b833c431a9bb2a1322bfc91bb0d265ac6
[ "MIT" ]
null
null
null
onyx/pack_manager.py
Command-Master/Onyx
03dfb88b833c431a9bb2a1322bfc91bb0d265ac6
[ "MIT" ]
null
null
null
onyx/pack_manager.py
Command-Master/Onyx
03dfb88b833c431a9bb2a1322bfc91bb0d265ac6
[ "MIT" ]
null
null
null
import os import time import json import shutil from typing import Union from .handler import Handler from .enums import tag_type class function: """Defines a standalone function without a data pack (libs and things will NOT work) Args: path (str): The path of the function (raw path, include extensio...
48.765343
1,235
0.635549
4a151aafb2e2aa2cfa2f466a741ddbc2937f7ba4
8,298
py
Python
credentialdigger/generator/training.py
SabrinaKall/credential-digger
372b25aa19c7c04a2c2a8f385f4875f66de73af1
[ "Apache-2.0" ]
null
null
null
credentialdigger/generator/training.py
SabrinaKall/credential-digger
372b25aa19c7c04a2c2a8f385f4875f66de73af1
[ "Apache-2.0" ]
null
null
null
credentialdigger/generator/training.py
SabrinaKall/credential-digger
372b25aa19c7c04a2c2a8f385f4875f66de73af1
[ "Apache-2.0" ]
null
null
null
import json import pkg_resources import random import shutil from pathlib import Path import fasttext import numpy as np def _create_model_folder(url): """ Create the folder for the new model. The new folder is created in the `models_data` folder, i.e., at the same location of the other models (that can...
32.03861
79
0.618221
4a151b3a7262243315b3ee7c1b65f1d6a2e636b1
370
py
Python
src/analysis/analyzer.py
JeesubKim/stocker
a68cb1295f51b046371de62eaf6182870377003c
[ "MIT" ]
null
null
null
src/analysis/analyzer.py
JeesubKim/stocker
a68cb1295f51b046371de62eaf6182870377003c
[ "MIT" ]
null
null
null
src/analysis/analyzer.py
JeesubKim/stocker
a68cb1295f51b046371de62eaf6182870377003c
[ "MIT" ]
null
null
null
# 0. 장대 양봉 나온 종목ㅡ역대급으로 터진 거래량 즉 스마트머니 # 1. 장기간 횡보 종목 (hysterisys 내에 있는 종목?) # 돈이 몰려있는곳에서만 해라. --> 돈이 어디 몰려있는지 체크해줄것 # 뉴스 해석 -> 시작에 돈이 몰려있다 # 거래량, 거래대금!!!! # 결국 이평선이 중요하지 않고, 정배열 차트 종목 중에서 뉴스나 재료가 있는애들이 결국 더 가기때문에 걔들을 본다 # !!!!분봉상에서 상승 추세인 상황에서 횡보하다가 전고점 돌파시에 매매 시도 # 일봉에서는 전고점 돌파시에는 던지는게 좋을듯(개인적인 관점) # 특정 종목에...
18.5
65
0.648649
4a151bb17295cd3bebaafc81b4a5fe80dcfeff88
1,330
py
Python
visualization/grill/door_baselines.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
visualization/grill/door_baselines.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
visualization/grill/door_baselines.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import matplotlib from visualization.grill.config import ( output_dir, ashvin_base_dir, format_func, configure_matplotlib, ) import matplotlib.pyplot as plt from rlkit.visualization import plot_util as plot configure_matplotlib(matplotlib) dirs = [ ashvin_base_dir + 's3doodad/share/camera_ready_do...
27.142857
87
0.614286
4a151bb87b317b56a7723988942a895b2c306e33
76
py
Python
jdaviz/configs/specviz/__init__.py
check-spelling/jdaviz
bfd0514d13bdc6fa0b8c8536a603293409270337
[ "MIT", "BSD-3-Clause" ]
55
2019-05-24T18:53:05.000Z
2022-03-14T08:45:52.000Z
jdaviz/configs/specviz/__init__.py
check-spelling/jdaviz
bfd0514d13bdc6fa0b8c8536a603293409270337
[ "MIT", "BSD-3-Clause" ]
1,105
2019-05-09T15:17:35.000Z
2022-03-31T21:22:18.000Z
jdaviz/configs/specviz/__init__.py
rosteen/jdaviz
e02c08d68ef71c5e40600785f46e65e5ae95e236
[ "MIT", "BSD-3-Clause" ]
49
2019-05-07T18:05:42.000Z
2022-03-22T15:15:34.000Z
from .plugins import * # noqa from .helper import Specviz, SpecViz # noqa
25.333333
44
0.723684
4a151bd41f3098a4c86c811efdd4b74d3569fd3a
451
py
Python
settings.py
qiongzui/Alien_invasion
7c5dcab9c7e9ba367eb6fe0936d099f1c2dc99ca
[ "Apache-2.0" ]
null
null
null
settings.py
qiongzui/Alien_invasion
7c5dcab9c7e9ba367eb6fe0936d099f1c2dc99ca
[ "Apache-2.0" ]
null
null
null
settings.py
qiongzui/Alien_invasion
7c5dcab9c7e9ba367eb6fe0936d099f1c2dc99ca
[ "Apache-2.0" ]
null
null
null
class Settings(): """存储《外星人入侵》的所有设置的类""" def __init__(self): """初始化游戏的设置""" #屏幕设置 self.screen_width = 1200 self.screen_height = 800 self.bg_color = (230,230,230) #飞船的设置 self.ship_speed_factor = 1.5 #子弹设置 self.bullet_speed_factor = 1 ...
22.55
39
0.552106
4a151c06cee81c502740200eb3f2b08f7820394e
5,112
py
Python
main.py
rushic24/tradingview-scraper
0f0b0b745214409eef1aabf87a4f7be86e60005e
[ "MIT" ]
163
2020-09-09T12:13:00.000Z
2022-03-26T20:05:30.000Z
main.py
saarsa/tradingview-scraper
0f0b0b745214409eef1aabf87a4f7be86e60005e
[ "MIT" ]
16
2020-10-25T23:15:27.000Z
2022-02-22T00:42:02.000Z
main.py
saarsa/tradingview-scraper
0f0b0b745214409eef1aabf87a4f7be86e60005e
[ "MIT" ]
74
2020-09-09T12:22:34.000Z
2022-03-24T04:09:03.000Z
from websocket import create_connection import json import random import string import re import pandas as pd import csv from datetime import datetime from time import localtime def filter_raw_message(text): try: found = re.search('"m":"(.+?)",', text).group(1) found2 = re.search('"p":(.+?"}"])}', ...
38.727273
596
0.672926
4a151c1e239d0376e9a45fd6c1924f5b686bc7cf
20,146
py
Python
MFGPextreme/core/optimaldesign.py
umbrellagong/MFGPextreme
bedbe03740c585af179dbe3ebbee68fbf9986d51
[ "MIT" ]
1
2022-01-14T02:03:45.000Z
2022-01-14T02:03:45.000Z
MFGPextreme/core/optimaldesign.py
umbrellagong/MFGPextreme
bedbe03740c585af179dbe3ebbee68fbf9986d51
[ "MIT" ]
null
null
null
MFGPextreme/core/optimaldesign.py
umbrellagong/MFGPextreme
bedbe03740c585af179dbe3ebbee68fbf9986d51
[ "MIT" ]
null
null
null
import copy import numpy as np from scipy import optimize from sklearn.base import clone from joblib import Parallel, delayed from emukit.multi_fidelity.convert_lists_to_array import convert_x_list_to_array from .metrics import log_pdf class OptimalDesign(object): ''' Single-fidelity Bayesian exper...
42.50211
82
0.465254
4a151c7d884d5dbcfa224857f0a838c0e5dd92bf
1,639
py
Python
src/mergeResult.py
Sapphirine/bestbuy-recommend
b165f1eb8961b5ab77be34ab0d8ee13aec3bcb95
[ "MIT" ]
null
null
null
src/mergeResult.py
Sapphirine/bestbuy-recommend
b165f1eb8961b5ab77be34ab0d8ee13aec3bcb95
[ "MIT" ]
null
null
null
src/mergeResult.py
Sapphirine/bestbuy-recommend
b165f1eb8961b5ab77be34ab0d8ee13aec3bcb95
[ "MIT" ]
2
2019-05-24T09:58:09.000Z
2021-03-22T10:43:25.000Z
import csv from collections import defaultdict import operator if __name__ == "__main__": filenames = ['../data/result/frequency.csv', '../data/result/predictionsSVC.csv', '../data/result/content.csv'] results = [[],[],[]] for i in xrange(3): with open(filenames[i], 'r') as f: reader = csv.reader(f) for row...
27.779661
112
0.643075
4a151c890e2dc7e93c257ce2cba2237f75e1ceb8
1,834
py
Python
markdown/extensions/delete.py
overlord/sublimetext-markdown-preview
a060dc4fabebbcf1a12de8e6bf48b7bcc888eef7
[ "MIT" ]
null
null
null
markdown/extensions/delete.py
overlord/sublimetext-markdown-preview
a060dc4fabebbcf1a12de8e6bf48b7bcc888eef7
[ "MIT" ]
null
null
null
markdown/extensions/delete.py
overlord/sublimetext-markdown-preview
a060dc4fabebbcf1a12de8e6bf48b7bcc888eef7
[ "MIT" ]
null
null
null
""" Mdownx.delete An extension for Python Markdown. Adds support for ~~strike~~ => <del>strike</del> MIT license. Copyright (c) 2014 Isaac Muse <isaacmuse@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to d...
48.263158
460
0.763904
4a151e28b1cc680e7e2fdc517526311c0e26ef1e
796
py
Python
mysite/myapp/forms.py
trbarnes/CollegeLife
14b9ef0b9623c23ed1eb053c90290c04f657c051
[ "MIT" ]
null
null
null
mysite/myapp/forms.py
trbarnes/CollegeLife
14b9ef0b9623c23ed1eb053c90290c04f657c051
[ "MIT" ]
null
null
null
mysite/myapp/forms.py
trbarnes/CollegeLife
14b9ef0b9623c23ed1eb053c90290c04f657c051
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class SuggestionForm(forms.Form): suggestion_field = forms.CharField(label='New Post', max_length=1000) class CommentForm(forms.Form): comment_field = forms.CharField(label='Comment', ma...
28.428571
73
0.655779
4a151e7a262c08202cfea477fa288a28b7cdddc8
7,772
py
Python
kitsune/users/tests/test_es.py
AndrewDVXI/kitsune
84bd4fa60346681c3fc5a03b0b1540fd1335cee2
[ "BSD-3-Clause" ]
1
2021-07-18T00:41:16.000Z
2021-07-18T00:41:16.000Z
kitsune/users/tests/test_es.py
AndrewDVXI/kitsune
84bd4fa60346681c3fc5a03b0b1540fd1335cee2
[ "BSD-3-Clause" ]
9
2021-04-08T22:05:53.000Z
2022-03-12T00:54:11.000Z
kitsune/users/tests/test_es.py
Whoerr/kitsune
2428573b4920a824c3e712b8a4870f8c1ada8f64
[ "BSD-3-Clause" ]
1
2020-07-28T15:52:46.000Z
2020-07-28T15:52:46.000Z
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from django.core.management import call_command from nose.tools import eq_ from kitsune.customercare.tests import ReplyFactory from kitsune.questions.tests import AnswerFactory from kitsune.search.tests.test_es import ElasticTestCase from kitsune.users....
38.098039
95
0.65929
4a151ff16fc8f0d2dc2294c288d2abe089f851d2
2,398
py
Python
setup.py
dizzy21c/QUANTAXIS_RealtimeCollector
bb55a3852fe437b51ce92a9cbbc4e89c5e317f6c
[ "MIT" ]
null
null
null
setup.py
dizzy21c/QUANTAXIS_RealtimeCollector
bb55a3852fe437b51ce92a9cbbc4e89c5e317f6c
[ "MIT" ]
null
null
null
setup.py
dizzy21c/QUANTAXIS_RealtimeCollector
bb55a3852fe437b51ce92a9cbbc4e89c5e317f6c
[ "MIT" ]
null
null
null
import codecs import io import os import re import sys import webbrowser import platform import configparser try: from setuptools import setup except: from distutils.core import setup """ """ if sys.version_info.major != 3 or sys.version_info.minor not in [4, 5, 6, 7, 8]: print('wrong version, should be 3...
26.94382
92
0.673478
4a15217b7889b54055e6d58e3da4fb58ebe776ee
8,410
py
Python
improver_tests/utilities/cube_manipulation/test_enforce_coordinate_ordering.py
nivnac/improver
c16c794f62598017cebc6ae4f99af8f317219a77
[ "BSD-3-Clause" ]
null
null
null
improver_tests/utilities/cube_manipulation/test_enforce_coordinate_ordering.py
nivnac/improver
c16c794f62598017cebc6ae4f99af8f317219a77
[ "BSD-3-Clause" ]
3
2020-04-25T12:55:42.000Z
2020-07-23T11:50:46.000Z
improver_tests/utilities/cube_manipulation/test_enforce_coordinate_ordering.py
Kat-90/improver
a5c31be3430df429ae38e7c16e267fcbc2af1858
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2020 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
46.208791
83
0.687634
4a152211d5385836f5c68a5ac97bf01125157a66
58
py
Python
testing.py
RyanAugust/new-and-readworthy
3253d906902f36f64386f30b822dc58115eaf233
[ "MIT" ]
null
null
null
testing.py
RyanAugust/new-and-readworthy
3253d906902f36f64386f30b822dc58115eaf233
[ "MIT" ]
null
null
null
testing.py
RyanAugust/new-and-readworthy
3253d906902f36f64386f30b822dc58115eaf233
[ "MIT" ]
null
null
null
import requests import sqlite def read_source_pages():
9.666667
24
0.793103
4a1522fbd7d193805ca23f5c38632f3e3806fa3b
1,838
py
Python
anomaly_detection/api/middleware/auth.py
kumarashit/anomaly-detection
1b0aab03197ee690248cfed6fd67c8f4b533bb91
[ "Apache-2.0" ]
6
2019-04-15T12:10:07.000Z
2019-10-21T14:41:39.000Z
anomaly_detection/api/middleware/auth.py
kumarashit/anomaly-detection
1b0aab03197ee690248cfed6fd67c8f4b533bb91
[ "Apache-2.0" ]
3
2019-04-23T14:38:32.000Z
2019-07-27T21:32:51.000Z
anomaly_detection/api/middleware/auth.py
kumarashit/anomaly-detection
1b0aab03197ee690248cfed6fd67c8f4b533bb91
[ "Apache-2.0" ]
5
2019-04-15T12:10:08.000Z
2020-02-07T03:45:25.000Z
# Copyright 2019 The OpenSDS 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 agreed to in ...
39.956522
92
0.626224
4a152302a51c1f629c0b29da38fe1c163e2de613
1,546
py
Python
LAB05_MustafaCankanBALCI/Lab05MustafaCankanmodule.py
MustiCankan/PythonProjectsCS
61994d8cbcd3119b2e9bb6de2d73b7776d83bb41
[ "MIT" ]
null
null
null
LAB05_MustafaCankanBALCI/Lab05MustafaCankanmodule.py
MustiCankan/PythonProjectsCS
61994d8cbcd3119b2e9bb6de2d73b7776d83bb41
[ "MIT" ]
null
null
null
LAB05_MustafaCankanBALCI/Lab05MustafaCankanmodule.py
MustiCankan/PythonProjectsCS
61994d8cbcd3119b2e9bb6de2d73b7776d83bb41
[ "MIT" ]
null
null
null
def load_movies(file_movies): """ The storing the movies by their years from csv file Parameters: file_movies (func):file pointer returns dictionary: return hs """ hs = {} for line in file_movies: list_file_movies = line.split(",") movie_year = int(list_file_...
20.613333
55
0.605433
4a1524930e0af16b0eb9a80798eda9413db98d83
7,257
py
Python
cheshire3/web/sruWsgi.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
3
2015-08-02T09:03:28.000Z
2017-12-06T09:26:14.000Z
cheshire3/web/sruWsgi.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
5
2015-08-17T01:16:35.000Z
2015-09-16T21:51:27.000Z
cheshire3/web/sruWsgi.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
6
2015-05-17T15:32:20.000Z
2020-04-22T08:43:16.000Z
"""SRU WSGI Application.""" from urllib import quote from cgi import FieldStorage from sruHandler import * class SRUWsgiHandler(SRUProtocolHandler): """SRU Request Handling Class for WSGI.""" def _app_base(self, environ): scheme = environ['wsgi.url_scheme'] url = [scheme] url.append...
36.651515
79
0.472923
4a15264e48a612c3914acc2d3c4940523870d1bc
10,157
py
Python
build/django-blog-zinnia/zinnia/migrations/0001_initial.py
diegopradogesto/MatrixWeb
4996f516fd0a90056c092d8991474ccb802d6215
[ "MIT" ]
1
2017-12-06T22:17:56.000Z
2017-12-06T22:17:56.000Z
zinnia/migrations/0001_initial.py
bikemule/django-blog-zinnia
faaebb111a8e60dbb08ad78ba28160822eb0dea5
[ "BSD-3-Clause" ]
1
2021-09-08T12:32:28.000Z
2021-09-08T12:32:28.000Z
zinnia/migrations/0001_initial.py
bikemule/django-blog-zinnia
faaebb111a8e60dbb08ad78ba28160822eb0dea5
[ "BSD-3-Clause" ]
1
2021-09-08T10:28:36.000Z
2021-09-08T10:28:36.000Z
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Category' db.create_table('zinnia_category', ( ('slug', self.gf('django.db.models.fields.SlugField')(ma...
62.312883
178
0.588658
4a15266acdaad7478dc366326daf5ce113703f65
912
py
Python
python/tree/leetocde/minimum_depth_binary_tree.py
googege/algo-learn
054d05e8037005c5810906d837de889108dad107
[ "MIT" ]
153
2020-09-24T12:46:51.000Z
2022-03-31T21:30:44.000Z
python/tree/leetocde/minimum_depth_binary_tree.py
googege/algo-learn
054d05e8037005c5810906d837de889108dad107
[ "MIT" ]
null
null
null
python/tree/leetocde/minimum_depth_binary_tree.py
googege/algo-learn
054d05e8037005c5810906d837de889108dad107
[ "MIT" ]
35
2020-12-22T11:07:06.000Z
2022-03-09T03:25:08.000Z
# 二叉树的最小深度 class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: # 递归 def minDepth_1(self, root: TreeNode) -> int: if not root: return 0 left, right = self.minDepth_1(root...
26.057143
84
0.509868
4a15268e8b3b9ff3deafd755760bd8f47ead4ec2
913
py
Python
tests/testing/__init__.py
rushgeo/stactools
f5d7502d5e90e3cc376bdf06606264f6b156e54f
[ "Apache-2.0" ]
46
2020-08-25T19:49:54.000Z
2022-03-14T12:25:48.000Z
tests/testing/__init__.py
rushgeo/stactools
f5d7502d5e90e3cc376bdf06606264f6b156e54f
[ "Apache-2.0" ]
204
2020-08-25T13:39:09.000Z
2022-03-31T18:03:02.000Z
tests/testing/__init__.py
rushgeo/stactools
f5d7502d5e90e3cc376bdf06606264f6b156e54f
[ "Apache-2.0" ]
25
2020-08-25T19:50:12.000Z
2022-02-19T03:47:54.000Z
from stactools.testing import TestData test_data = TestData( __file__, { "item.json": { "url": "https://raw.githubusercontent.com/radiantearth/" "stac-spec/v1.0.0/examples/simple-item.json", "compress": False, }, "AW3D30_global.vrt": { "url": ...
30.433333
81
0.485214
4a152755efb6832984e2e4a69bef4013d0b771a6
1,767
py
Python
testing_suite/test_search_for_ISM_match.py
rhpvorderman/TALON
04706575d8ad0975da94c89581c8de5d09522d61
[ "MIT" ]
null
null
null
testing_suite/test_search_for_ISM_match.py
rhpvorderman/TALON
04706575d8ad0975da94c89581c8de5d09522d61
[ "MIT" ]
null
null
null
testing_suite/test_search_for_ISM_match.py
rhpvorderman/TALON
04706575d8ad0975da94c89581c8de5d09522d61
[ "MIT" ]
null
null
null
import pytest from talon import talon from .helper_fns import fetch_correct_ID, get_db_cursor @pytest.mark.dbunit class TestSearchForISM(object): def test_find_no_match(self): """ Example where the toy transcript database contains no matches for the edge set. """ conn, cursor =...
31.553571
78
0.642332
4a15275caafe7925f55cade340339c7df4e03262
203
py
Python
Python/CursoEmVideo/Mundo 1/Desafios/Desafio22.py
carlos09v/Mini-Projects_Exercises
0d457b5c5c83811fdefa1dd8f80ce436f8dac744
[ "MIT" ]
1
2021-08-23T13:04:55.000Z
2021-08-23T13:04:55.000Z
Python/CursoEmVideo/Mundo 1/Desafios/Desafio22.py
carlos09v/Mini-Projects_Exercises
0d457b5c5c83811fdefa1dd8f80ce436f8dac744
[ "MIT" ]
null
null
null
Python/CursoEmVideo/Mundo 1/Desafios/Desafio22.py
carlos09v/Mini-Projects_Exercises
0d457b5c5c83811fdefa1dd8f80ce436f8dac744
[ "MIT" ]
null
null
null
nome= input('Qual o seu nome completo? ') print(f'Seu nome com letras maiúsculas é: {nome.upper()}') print(f'Seu nome com letras minúsculas é: {nome.lower()}') print(f'Seu nome ao todo tem: {len(nome)}')
50.75
58
0.699507
4a1528296a2f69b2d83468c4f113db369a6eb6d7
5,407
py
Python
src/trainer.py
Kirillova-Anastasia/LGFN
41570187b0055876c3eb971441cb914186e284b0
[ "MIT" ]
null
null
null
src/trainer.py
Kirillova-Anastasia/LGFN
41570187b0055876c3eb971441cb914186e284b0
[ "MIT" ]
null
null
null
src/trainer.py
Kirillova-Anastasia/LGFN
41570187b0055876c3eb971441cb914186e284b0
[ "MIT" ]
null
null
null
import os import math from decimal import Decimal import utility import torch import torch.nn.utils as utils from tqdm import tqdm from tensorboardX import SummaryWriter class Trainer(): def __init__(self, args, loader, my_model, my_loss, ckp): self.args = args self.scale = args.scale s...
33.171779
93
0.511929
4a15288480ffb9f4e0a1631adaba406655be8970
2,775
py
Python
tests/molecular/functional_groups/functional_group_factory/generic_functional_group_factory/test_get_functional_groups.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
tests/molecular/functional_groups/functional_group_factory/generic_functional_group_factory/test_get_functional_groups.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
tests/molecular/functional_groups/functional_group_factory/generic_functional_group_factory/test_get_functional_groups.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
import itertools as it from ..utilities import ( are_clone_sequences, are_same_id_sequences, atom_id, ) def test_get_functional_groups(case_data): """ Test :meth:`.GenericFunctionalGroupFactory.get_functional_groups`. Parameters ---------- case_data : :class:`.CaseData` The t...
26.428571
70
0.686126
4a152966f57e634c97f109402c3f7f9ec9fd602c
1,469
py
Python
tensorflow_datasets/audio/libritts_test.py
Ir1d/datasets
2a04ce5208e53bcf9b5acacf690bb7446285176e
[ "Apache-2.0" ]
2
2020-06-09T10:44:36.000Z
2020-06-09T10:44:46.000Z
tensorflow_datasets/audio/libritts_test.py
Ir1d/datasets
2a04ce5208e53bcf9b5acacf690bb7446285176e
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/audio/libritts_test.py
Ir1d/datasets
2a04ce5208e53bcf9b5acacf690bb7446285176e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets 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 appl...
29.38
74
0.710007
4a1529e7f1ea739b726dbf66ed9594a9605d3c14
2,756
py
Python
data_lake/test/test_actual_split.py
uktrade/fadmin2
0f774400fb816c9ca30e30b25ae542135966e185
[ "MIT" ]
3
2020-01-05T16:46:42.000Z
2021-08-02T08:08:39.000Z
data_lake/test/test_actual_split.py
uktrade/fadmin2
0f774400fb816c9ca30e30b25ae542135966e185
[ "MIT" ]
30
2019-11-28T15:16:35.000Z
2021-08-16T14:49:58.000Z
data_lake/test/test_actual_split.py
uktrade/fadmin2
0f774400fb816c9ca30e30b25ae542135966e185
[ "MIT" ]
null
null
null
from data_lake.test.utils import DataLakeTesting from chartofaccountDIT.test.factories import ( NaturalCodeFactory, ProgrammeCodeFactory, ProjectCodeFactory, ) from core.models import FinancialYear from core.utils.generic_helpers import get_current_financial_year from costcentre.test.factories import ( ...
33.609756
80
0.680697
4a152a214b9ff3ab55656863a73c39762d7ca648
1,997
py
Python
nonebot_plugin_rua/__init__.py
Zeta-qixi/nonebot_plugin_rua
cc2f47526f1fc6dcd5b6054b496b949eb1db38d3
[ "MIT" ]
null
null
null
nonebot_plugin_rua/__init__.py
Zeta-qixi/nonebot_plugin_rua
cc2f47526f1fc6dcd5b6054b496b949eb1db38d3
[ "MIT" ]
null
null
null
nonebot_plugin_rua/__init__.py
Zeta-qixi/nonebot_plugin_rua
cc2f47526f1fc6dcd5b6054b496b949eb1db38d3
[ "MIT" ]
null
null
null
from io import BytesIO from os import path import requests from nonebot import get_driver, on_command, on_notice from nonebot.adapters.cqhttp.bot import Bot from nonebot.adapters.cqhttp.event import Event, PokeNotifyEvent from nonebot.adapters.cqhttp.message import Message, MessageSegment from nonebot.typing import T_...
26.986486
69
0.635954
4a152bcc44a94a25d97a48503c9cd1817cc1cfe3
9,379
py
Python
venv/lib/python3.6/site-packages/chardet/chardistribution.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/chardet/chardistribution.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
1
2021-06-01T23:32:38.000Z
2021-06-01T23:32:38.000Z
venv/lib/python3.6/site-packages/pip/_vendor/chardet/chardistribution.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...
37.516
88
0.653588
4a152ef4a15a376f807afd03aa71888fd8e5abd3
1,471
py
Python
wifipumpkin3/plugins/captiveflask/DarkLogin.py
rafonsecad/wifipumpkin3
a59e950062a07d54dc32f124fbb658c573accb35
[ "Apache-2.0" ]
2
2021-05-28T16:47:17.000Z
2022-03-14T02:02:33.000Z
wifipumpkin3/plugins/captiveflask/DarkLogin.py
4n6strider/wifipumpkin3
809baef0c8116410a26f6b263a457f0a1d7f98b9
[ "Apache-2.0" ]
1
2021-02-10T16:12:08.000Z
2021-02-10T16:12:08.000Z
wifipumpkin3/plugins/captiveflask/DarkLogin.py
4n6strider/wifipumpkin3
809baef0c8116410a26f6b263a457f0a1d7f98b9
[ "Apache-2.0" ]
1
2021-03-27T14:30:11.000Z
2021-03-27T14:30:11.000Z
import re from ast import literal_eval from wifipumpkin3.plugins.captiveflask.plugin import CaptiveTemplatePlugin import wifipumpkin3.core.utility.constants as C # This file is part of the wifipumpkin3 Open Source Project. # wifipumpkin3 is licensed under the Apache 2.0. # Copyright 2020 P0cL4bs Team - Marcos Bomfim ...
36.775
75
0.717199
4a152f155212227dc270e96f702c5b3cf3cec0f9
21,431
py
Python
rpToolServe.py
Galaxy-SynBioCAD/rpReader_image
bf3c99cbda063001980fbc40463fd45bd2cb88f3
[ "MIT" ]
null
null
null
rpToolServe.py
Galaxy-SynBioCAD/rpReader_image
bf3c99cbda063001980fbc40463fd45bd2cb88f3
[ "MIT" ]
null
null
null
rpToolServe.py
Galaxy-SynBioCAD/rpReader_image
bf3c99cbda063001980fbc40463fd45bd2cb88f3
[ "MIT" ]
null
null
null
import os import copy import sys import io import tarfile import libsbml import glob import tempfile import logging import shutil sys.path.insert(0, '/home/') import rpTool as rpReader import rpCache # TODO: need to fix the input def rp2Reader_mem(rpreader, rp2_pathways, rp2paths_...
40.743346
132
0.606225
4a152f75fa1ef38a8c852c06b67f6cdb6e204faa
1,004
py
Python
fridge_web/my_fridge/migrations/0003_auto_20200810_1127.py
logiflo/snowplow-embeded-fridge
8d356f8c5f225de7a50c04ac9a88c4b3ae89d7cd
[ "BSD-2-Clause" ]
1
2020-08-28T08:32:35.000Z
2020-08-28T08:32:35.000Z
my_fridge/migrations/0003_auto_20200810_1127.py
logiflo/fridge-django
07fe585d65698ac78a2499ec1674738859324d05
[ "BSD-2-Clause" ]
null
null
null
my_fridge/migrations/0003_auto_20200810_1127.py
logiflo/fridge-django
07fe585d65698ac78a2499ec1674738859324d05
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.1 on 2020-08-10 11:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('my_fridge', '0002_auto_20200810_1053'), ] operations = [ migrations.AlterModelOptions( name='food...
32.387097
138
0.557769
4a153074107b94debb3f76f20b9ce040b32a4562
7,431
py
Python
bigml/tests/test_43_linear.py
bikramkharal/python-1
106c5cfbae94ef8e3a13fb8fa9899f7f03a5d192
[ "Apache-2.0" ]
1
2021-07-08T07:45:23.000Z
2021-07-08T07:45:23.000Z
bigml/tests/test_43_linear.py
sxfmol/python-1
d3de9617c91909b9923e80a1401f12c77114d0aa
[ "Apache-2.0" ]
6
2016-10-27T18:26:12.000Z
2017-10-03T22:54:20.000Z
bigml/tests/test_43_linear.py
sxfmol/python-1
d3de9617c91909b9923e80a1401f12c77114d0aa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019-2020 BigML # # 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 ...
51.248276
231
0.628852
4a153075f85a55a26927674417f1f9fdfc0903b4
6,483
py
Python
timedependent/exp2b.py
BarbaraV/gridlod-timedependent
7ac1f3ade1a6a47b02e1d7ea1c79ef18d8084cce
[ "BSD-2-Clause" ]
null
null
null
timedependent/exp2b.py
BarbaraV/gridlod-timedependent
7ac1f3ade1a6a47b02e1d7ea1c79ef18d8084cce
[ "BSD-2-Clause" ]
null
null
null
timedependent/exp2b.py
BarbaraV/gridlod-timedependent
7ac1f3ade1a6a47b02e1d7ea1c79ef18d8084cce
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import scipy.io as sio from gridlod.world import World from gridlod import fem, util import algorithms, timestepping NFine = np.array([512,512]) NpFine = np.prod(NFine+1) T= 1. deltatref = 1./128. NTimeref = int(T/deltatref) dim = np.size(NFine) boundaryConditions = np.array([[0, 0], [0, 0]]) xpF...
41.031646
132
0.621163
4a1530af608dadb0c3fd6d15ca34141ea5467dd9
9,344
py
Python
tb/pcie_us_axi_master_wr/test_pcie_us_axi_master_wr.py
totuwei/verilog-pcie
17d7353523b5c7f4dd1c08c6709829893b82f12c
[ "MIT" ]
null
null
null
tb/pcie_us_axi_master_wr/test_pcie_us_axi_master_wr.py
totuwei/verilog-pcie
17d7353523b5c7f4dd1c08c6709829893b82f12c
[ "MIT" ]
null
null
null
tb/pcie_us_axi_master_wr/test_pcie_us_axi_master_wr.py
totuwei/verilog-pcie
17d7353523b5c7f4dd1c08c6709829893b82f12c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2020 Alex Forencich 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 to use, copy, modify, merg...
31.782313
134
0.6814
4a15312f6a9b13aca5c56e4b3393c20da3bfd9a0
1,856
py
Python
examples/aiohttp_example.py
gugu/aiozipkin
c5ba4891e48c48e108ce1190ef4d1d68c82c34fa
[ "Apache-2.0" ]
null
null
null
examples/aiohttp_example.py
gugu/aiozipkin
c5ba4891e48c48e108ce1190ef4d1d68c82c34fa
[ "Apache-2.0" ]
null
null
null
examples/aiohttp_example.py
gugu/aiozipkin
c5ba4891e48c48e108ce1190ef4d1d68c82c34fa
[ "Apache-2.0" ]
null
null
null
import asyncio import aiozipkin as az from aiohttp import web async def handle(request): tracer = az.get_tracer(request.app) span = az.request_span(request) with tracer.new_child(span.context) as child_span: child_span.name('mysql:select') # call to external service like https://python.o...
25.777778
79
0.62931
4a153251463f1495da41a1b90dbc0c26f79510b9
520
py
Python
kazuate.py
okutani-t/python-code
af923a0865f11f3ec3d0bbe16248bef0e7e211e2
[ "MIT" ]
null
null
null
kazuate.py
okutani-t/python-code
af923a0865f11f3ec3d0bbe16248bef0e7e211e2
[ "MIT" ]
null
null
null
kazuate.py
okutani-t/python-code
af923a0865f11f3ec3d0bbe16248bef0e7e211e2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random i = random.randint(1,50) n = 0 count = 5 #答えnとユーザの入力した値iが間違っている間ループ while n != i : print"あと"+ str(count) + "回遊べるよ" count -= 1 n = input("Please Input Number 1-50:") if count ==0 and n != i: break if n>i: if n==i+1: print"おしい!もう少し小さい数!" else: print"もっと小さい数だよ!" el...
16.774194
41
0.565385
4a15339993d21f7ec445b2fc2a516cff9eebcc81
3,241
py
Python
pymc3/glm/families.py
acolombi/pymc3
3cb45700156b63e786eb70909d3e1d6e1f21703a
[ "Apache-2.0" ]
1
2018-06-11T03:13:00.000Z
2018-06-11T03:13:00.000Z
pymc3/glm/families.py
acolombi/pymc3
3cb45700156b63e786eb70909d3e1d6e1f21703a
[ "Apache-2.0" ]
2
2017-03-02T05:56:13.000Z
2019-12-06T19:15:42.000Z
pymc3/glm/families.py
acolombi/pymc3
3cb45700156b63e786eb70909d3e1d6e1f21703a
[ "Apache-2.0" ]
1
2018-10-08T10:27:35.000Z
2018-10-08T10:27:35.000Z
import numbers import numpy as np from copy import copy import theano.tensor as tt from ..model import modelcontext from .. import distributions as pm_dists __all__ = ['Normal', 'StudentT', 'Binomial', 'Poisson', 'NegativeBinomial'] # Define link functions # Hack as assigning a function in the class definition auto...
26.785124
151
0.603517
4a15340c5bc3ecca94d19009ce0690e4221ee508
16,713
py
Python
library/azure_rm_trafficmanagerprofile.py
joaocc/azure_preview_modules
2413dafa6f979a2070843b073830901cc1b1d868
[ "MIT" ]
46
2018-01-24T08:39:15.000Z
2021-08-20T04:41:16.000Z
library/azure_rm_trafficmanagerprofile.py
joaocc/azure_preview_modules
2413dafa6f979a2070843b073830901cc1b1d868
[ "MIT" ]
226
2017-12-12T21:46:31.000Z
2022-02-18T05:17:03.000Z
library/azure_rm_trafficmanagerprofile.py
joaocc/azure_preview_modules
2413dafa6f979a2070843b073830901cc1b1d868
[ "MIT" ]
60
2018-01-25T10:03:59.000Z
2022-03-08T10:19:54.000Z
#!/usr/bin/python # # Copyright (c) 2018 Hai Cao, <t-haicao@microsoft.com> Yunge Zhu <yungez@microsoft.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata...
35.941935
157
0.603841
4a1535c7fd167a40b61b6989ab2bf43e78c76f26
34,045
py
Python
scipy/fftpack/tests/test_basic.py
clementkng/scipy
8e40c067b64016dc344c537655f56454fd1788ba
[ "BSD-3-Clause" ]
null
null
null
scipy/fftpack/tests/test_basic.py
clementkng/scipy
8e40c067b64016dc344c537655f56454fd1788ba
[ "BSD-3-Clause" ]
null
null
null
scipy/fftpack/tests/test_basic.py
clementkng/scipy
8e40c067b64016dc344c537655f56454fd1788ba
[ "BSD-3-Clause" ]
null
null
null
# Created by Pearu Peterson, September 2002 from __future__ import division, print_function, absolute_import __usage__ = """ Build fftpack: python setup_fftpack.py build Run tests if scipy is installed: python -c 'import scipy;scipy.fftpack.test()' Run tests if fftpack is not installed: python tests/test_basic....
34.989723
161
0.521016
4a15364707983f92f19c391e9f5aaaacb181c5d2
4,978
py
Python
fixture/contact.py
18kotov/python_test_learning
08bc41c921b6d51fc1bab5d239e3f871f25439ba
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
18kotov/python_test_learning
08bc41c921b6d51fc1bab5d239e3f871f25439ba
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
18kotov/python_test_learning
08bc41c921b6d51fc1bab5d239e3f871f25439ba
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact class ContactHelper(): def __init__(self, app): self.app = app def add_new(self, contact): #fill_contact_info wd = self.app.wd wd.find_element_by_name("firstname").click() wd.find_element_by_name("firstname").clear() wd.find_...
43.286957
83
0.665729
4a153689fd04f6b9a4d0cebb847492f362ac8182
2,109
py
Python
pyravendb/tools/custom_decoder.py
w0pr/ravendb-python-client
b073cbefcb09b9fdeb8e72fedf3a7648ef5aac87
[ "MIT" ]
1
2019-11-13T18:08:41.000Z
2019-11-13T18:08:41.000Z
pyravendb/tools/custom_decoder.py
w0pr/ravendb-python-client
b073cbefcb09b9fdeb8e72fedf3a7648ef5aac87
[ "MIT" ]
null
null
null
pyravendb/tools/custom_decoder.py
w0pr/ravendb-python-client
b073cbefcb09b9fdeb8e72fedf3a7648ef5aac87
[ "MIT" ]
null
null
null
from pyravendb.tools.utils import Utils import json class JsonDecoder(json.JSONDecoder): """ This custom JsonDecoder can add to json.loads function to work with pyravendb mappers solution. just use it like this json.loads(YOUR_OBJECT, cls=JsonDecoder, object_mapper=YOUR_MAPPER) Note that that last obj...
42.18
117
0.678046
4a15378bad804573f39d84a9def438ec28b057ce
11,801
py
Python
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/interfaces/interface/authentication/key/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
64
2016-10-20T15:47:18.000Z
2021-11-11T11:57:32.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/interfaces/interface/authentication/key/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
126
2016-10-05T10:36:14.000Z
2019-05-15T08:43:23.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/interfaces/interface/authentication/key/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
63
2016-11-07T15:23:08.000Z
2021-09-22T14:41:16.000Z
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
38.947195
372
0.610118
4a153842f43ce6e52659ad908545792ab52541a3
1,052
py
Python
examples/py/rsi.py
Joukahainen/ccxt
82823a85b96cee336853f0deb353474df2122b88
[ "MIT" ]
2
2022-03-10T15:21:49.000Z
2022-03-10T15:22:01.000Z
examples/py/rsi.py
Joukahainen/ccxt
82823a85b96cee336853f0deb353474df2122b88
[ "MIT" ]
null
null
null
examples/py/rsi.py
Joukahainen/ccxt
82823a85b96cee336853f0deb353474df2122b88
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(root + '/python') import pandas_ta as ta import pandas as pd import ccxt # ----------------------------------------------------------------------------- print('CCXT Versi...
29.222222
96
0.476236
4a153852ec5812bddf6c67fa6914f00ed50d5b4d
395
py
Python
Instagram/wsgi.py
NzauM/Instagram
6db2e3568cd4947d6fce1202ca04f2bdc3be16f5
[ "MIT" ]
null
null
null
Instagram/wsgi.py
NzauM/Instagram
6db2e3568cd4947d6fce1202ca04f2bdc3be16f5
[ "MIT" ]
5
2020-02-12T03:20:23.000Z
2021-09-08T01:33:41.000Z
Instagram/wsgi.py
NzauM/Instagram
6db2e3568cd4947d6fce1202ca04f2bdc3be16f5
[ "MIT" ]
null
null
null
""" WSGI config for Instagram project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
23.235294
78
0.787342
4a153a3ba790625cbbdb1b99d784aaf2a8920628
239
py
Python
Delete_Vowels.py
NehaKohad/HacktoberFestContribute
4b07b4db6eb741eff347ca16ffbe1562b3d283e1
[ "MIT" ]
null
null
null
Delete_Vowels.py
NehaKohad/HacktoberFestContribute
4b07b4db6eb741eff347ca16ffbe1562b3d283e1
[ "MIT" ]
null
null
null
Delete_Vowels.py
NehaKohad/HacktoberFestContribute
4b07b4db6eb741eff347ca16ffbe1562b3d283e1
[ "MIT" ]
null
null
null
v=['a','e','i','o','u','A','E','I','U','O'] str = input("Enter String") delstr=[] j=0 for i in str: print(i) if i not in v: delstr.append(i) j=j+1 print("String After Deleting Vowels :",''.join(delstr))
19.916667
56
0.493724
4a153b505ee36ecc24d616d10b9294fb104058b9
527
py
Python
frameworks/kafka/tests/test_soak.py
elezar/dcos-commons
b7b3aeec1d5b6dc9073ba07000d4e48784143846
[ "Apache-2.0" ]
7
2017-11-02T05:26:40.000Z
2020-01-27T19:33:52.000Z
frameworks/kafka/tests/test_soak.py
elezar/dcos-commons
b7b3aeec1d5b6dc9073ba07000d4e48784143846
[ "Apache-2.0" ]
14
2017-09-20T22:47:48.000Z
2020-09-11T19:54:25.000Z
frameworks/kafka/tests/test_soak.py
AlexRogalskiy/dcos-commons
85711f05bc94172aabb6837f9ff529721437d20c
[ "Apache-2.0" ]
9
2017-11-14T19:43:07.000Z
2022-01-06T12:44:49.000Z
import json import pytest import sdk_upgrade from tests import config @pytest.mark.soak_upgrade def test_soak_upgrade_downgrade(): """ Assumes that the install options file is placed in the repo root directory by the user. """ with open('kafka.json') as options_file: install_options = json.load(o...
27.736842
95
0.73055
4a153b7a365a19ee2ebb52a26654ce4fe9eef440
57,731
py
Python
nova/tests/unit/api/openstack/compute/test_hypervisors.py
hemanthnakkina/nova
3756f4ffa6ff670bfd6b491a12b833da0a36b017
[ "Apache-2.0" ]
1
2021-06-10T17:08:15.000Z
2021-06-10T17:08:15.000Z
nova/tests/unit/api/openstack/compute/test_hypervisors.py
hemanthnakkina/nova
3756f4ffa6ff670bfd6b491a12b833da0a36b017
[ "Apache-2.0" ]
2
2021-03-31T20:04:16.000Z
2021-12-13T20:45:03.000Z
nova/tests/unit/api/openstack/compute/test_hypervisors.py
hemanthnakkina/nova
3756f4ffa6ff670bfd6b491a12b833da0a36b017
[ "Apache-2.0" ]
1
2020-07-24T02:31:45.000Z
2020-07-24T02:31:45.000Z
# Copyright (c) 2012 OpenStack Foundation # 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 ...
41.592939
79
0.570491
4a153ba8803041d563cef13b42c97244772b14e9
203
py
Python
gamesolver/Games/TierGame.py
Ant1ng2/gamesolver
fff76a1fad7700e885c133919b6743882f92e7e9
[ "MIT" ]
null
null
null
gamesolver/Games/TierGame.py
Ant1ng2/gamesolver
fff76a1fad7700e885c133919b6743882f92e7e9
[ "MIT" ]
3
2019-07-22T04:15:55.000Z
2019-07-22T04:26:31.000Z
gamesolver/Games/TierGame.py
Ant1ng2/Gamesolver
fff76a1fad7700e885c133919b6743882f92e7e9
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from . Game import Game class TierGame(Game): @abstractmethod def getNumTiers(self): pass @abstractmethod def getCurTier(self): pass
16.916667
35
0.669951
4a153c6ad19dcccdbe79fb4f030f76bc6ea07768
2,515
py
Python
corgi/prototypes/loadbalance_test.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
null
null
null
corgi/prototypes/loadbalance_test.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
null
null
null
corgi/prototypes/loadbalance_test.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
null
null
null
import numpy as np import math #import scipy #from pylab import * #import palettable as pal #from matplotlib import cm #cmap = cm.get_cmap('inferno_r') #cmap = pal.wesanderson.Moonrise1_5.mpl_colormap import loadbalance as corgi # setup configuration corgi.xmin = corgi.ymin = 0.0 corgi.xmax = corgi.ymax = 1.0 c...
21.134454
84
0.577734
4a153c9ea40c6769281d624a151b7a8ed5398433
2,082
py
Python
aliyun-python-sdk-smartag/aliyunsdksmartag/request/v20180313/GetCloudConnectNetworkUseLimitRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-smartag/aliyunsdksmartag/request/v20180313/GetCloudConnectNetworkUseLimitRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-smartag/aliyunsdksmartag/request/v20180313/GetCloudConnectNetworkUseLimitRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.178571
97
0.779059
4a153cab581f4af7bcd3af0dd9eac718bd272983
606
py
Python
complete_the_pattern_#14.py
Kunalpod/codewars
8dc1af2f3c70e209471045118fd88b3ea1e627e5
[ "MIT" ]
null
null
null
complete_the_pattern_#14.py
Kunalpod/codewars
8dc1af2f3c70e209471045118fd88b3ea1e627e5
[ "MIT" ]
null
null
null
complete_the_pattern_#14.py
Kunalpod/codewars
8dc1af2f3c70e209471045118fd88b3ea1e627e5
[ "MIT" ]
null
null
null
#Kunal Gautam #Codewars : @Kunalpod #Problem name: Complete The Pattern #14 #Problem level: 6 kyu def pattern(*args): n = args[0] y = 1 if len(args)==1 else args[1] s= "" if n<1: return s if y<=1: y = 1 for i in range(y): x = 1 if i==0 else 2 for j in range(x, n): ...
30.3
87
0.425743
4a153e1f3118ecdc1315ceb6815215befcbe007a
1,665
py
Python
office365_admin/komand_office365_admin/actions/assign_license_to_user/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
office365_admin/komand_office365_admin/actions/assign_license_to_user/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
office365_admin/komand_office365_admin/actions/assign_license_to_user/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
import komand from .schema import AssignLicenseToUserInput, AssignLicenseToUserOutput, Input, Output, Component # Custom imports below import requests from komand.exceptions import PluginException class AssignLicenseToUser(komand.Action): def __init__(self): super(self.__class__, self).__init__( ...
38.72093
145
0.621021
4a153e61848e86d786a6f10e9de3820c863bbbed
2,577
py
Python
docs/federated/docs/source_en/conf.py
bwcsswcx/docs
e54b179bb8ca020a9bf0c83926822048057e9536
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
docs/federated/docs/source_en/conf.py
bwcsswcx/docs
e54b179bb8ca020a9bf0c83926822048057e9536
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
docs/federated/docs/source_en/conf.py
bwcsswcx/docs
e54b179bb8ca020a9bf0c83926822048057e9536
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.620253
102
0.654249
4a153eb36681d2f1cf7aed09b5f72af4b7f019db
2,220
py
Python
python/dqTools/Handler.py
WhiteTshirtXI/subgrid
724dfd543c19563bd7874cf952c21f25dd7d1352
[ "MIT" ]
null
null
null
python/dqTools/Handler.py
WhiteTshirtXI/subgrid
724dfd543c19563bd7874cf952c21f25dd7d1352
[ "MIT" ]
3
2018-10-22T08:35:17.000Z
2018-11-07T16:14:36.000Z
python/dqTools/Handler.py
otbrown/subgrid
724dfd543c19563bd7874cf952c21f25dd7d1352
[ "MIT" ]
1
2020-05-07T07:48:02.000Z
2020-05-07T07:48:02.000Z
"""Adds the ability to Controllers to checkpoint upon receipt of a signal, by default SIGTERM. There can be only one instance of Handler. Your class must subclass from both Handler.Handler and Controller.Controller, furthermore Handler must be the leftmost of the superclasses. E.g., class MyController(Handler.Handler...
30.833333
87
0.625225
4a153ecca2202f1beaa7a797764d186665196ca6
291
py
Python
tests/implementations/memory.py
timwford/fastapi-crudrouter
683d0ac979d5547a19de928870b2f377fca80b94
[ "MIT" ]
2
2021-02-18T21:24:55.000Z
2022-01-28T14:40:23.000Z
tests/implementations/memory.py
jorgerpo/fastapi-crudrouter
bcae0dc780b12831d181b645aaa4dc1fde278870
[ "MIT" ]
null
null
null
tests/implementations/memory.py
jorgerpo/fastapi-crudrouter
bcae0dc780b12831d181b645aaa4dc1fde278870
[ "MIT" ]
null
null
null
from fastapi import FastAPI from fastapi_crudrouter import MemoryCRUDRouter as CRUDRouter from tests import Potato, Carrot def memory_implementation(): app = FastAPI() app.include_router(CRUDRouter(schema=Potato)) app.include_router(CRUDRouter(schema=Carrot)) return app
22.384615
61
0.783505
4a153f30958b638494b4223d628a5383c69670da
24,972
py
Python
addons/cats-blender-plugin-0-19-0/extern_tools/mmd_tools_local/core/morph.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
725
2020-06-30T00:12:35.000Z
2021-11-07T03:10:44.000Z
addons/cats-blender-plugin-0-19-0/extern_tools/mmd_tools_local/core/morph.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
144
2017-12-27T20:57:07.000Z
2020-06-27T13:58:40.000Z
addons/cats-blender-plugin-0-19-0/extern_tools/mmd_tools_local/core/morph.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
106
2020-07-04T02:56:27.000Z
2021-11-07T08:54:11.000Z
# -*- coding: utf-8 -*- import re import bpy from mmd_tools_local import bpyutils from mmd_tools_local.bpyutils import SceneOp from mmd_tools_local.bpyutils import ObjectOp from mmd_tools_local.bpyutils import TransformConstraintOp class FnMorph(object): def __init__(self, morph, model): self.__morph = m...
45.23913
142
0.583213
4a15412ef6bd5d536bfb5dbfe5d1a7d5c93c050e
2,436
py
Python
tests/test_homepage.py
MisterRios/epcon
346bdac13f0c68b39b47eece8d2376bc12e3adc3
[ "BSD-2-Clause" ]
null
null
null
tests/test_homepage.py
MisterRios/epcon
346bdac13f0c68b39b47eece8d2376bc12e3adc3
[ "BSD-2-Clause" ]
null
null
null
tests/test_homepage.py
MisterRios/epcon
346bdac13f0c68b39b47eece8d2376bc12e3adc3
[ "BSD-2-Clause" ]
null
null
null
from django.conf import settings from tests.common_tools import template_used from tests.factories import SponsorFactory from tests.common_tools import create_homepage_in_cms def test_get_homepage(db, client): create_homepage_in_cms() url = "/" response = client.get(url) assert response.status_code ...
31.230769
81
0.746716
4a154214bf5fa67a8b7bea53b0abd594fbdbe779
1,734
py
Python
backup.py
Programmier-AG/BeeLogger
2f85bc27f4af9442bca4691c52f4d5a4b520caa7
[ "MIT" ]
1
2022-03-04T08:42:54.000Z
2022-03-04T08:42:54.000Z
backup.py
Programmier-AG/BeeLogger
2f85bc27f4af9442bca4691c52f4d5a4b520caa7
[ "MIT" ]
29
2020-09-23T17:17:05.000Z
2022-03-29T08:03:46.000Z
backup.py
Programmier-AG/BeeLogger
2f85bc27f4af9442bca4691c52f4d5a4b520caa7
[ "MIT" ]
8
2021-03-21T21:13:23.000Z
2021-10-20T20:08:16.000Z
import os import time from shutil import copyfile, copytree, make_archive from config import FileBackup, MySql if not os.path.isfile("backup.py"): print("You need to start this script from the directory it's contained in. Please cd into that folder.") exit() print("checking backup directory") if...
32.716981
178
0.66609
4a15422b9604b796290879693768ec5bb38ee254
10,258
py
Python
examples/pybullet/gym/pybullet_envs/minitaur/robots/hybrid_motor_model.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
9,136
2015-01-02T00:41:45.000Z
2022-03-31T15:30:02.000Z
examples/pybullet/gym/pybullet_envs/minitaur/robots/hybrid_motor_model.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,424
2015-01-05T08:55:58.000Z
2022-03-30T19:34:55.000Z
examples/pybullet/gym/pybullet_envs/minitaur/robots/hybrid_motor_model.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,921
2015-01-02T10:19:30.000Z
2022-03-31T02:48:42.000Z
# Lint as: python3 """A generic PD motor model.""" from typing import Tuple, Union import gin import numpy as np from pybullet_envs.minitaur.robots import robot_config from pybullet_envs.minitaur.robots import time_ordered_buffer _DEFAULT_BUFFER_SIZE = 200 _HYBRID_ACTION_LEN = len(robot_config.HybridActionIndex) _H...
36.767025
80
0.707545
4a15425ed45dfac53812c0bf482d4a8c353743ef
4,937
py
Python
model.py
Yixin-Liu-323/SUBLIME
f8ac29a124b60e80557a9e405e9c3d784e52279a
[ "MIT" ]
19
2022-01-14T12:07:13.000Z
2022-03-30T03:18:43.000Z
model.py
Yixin-Liu-323/SUBLIME
f8ac29a124b60e80557a9e405e9c3d784e52279a
[ "MIT" ]
null
null
null
model.py
Yixin-Liu-323/SUBLIME
f8ac29a124b60e80557a9e405e9c3d784e52279a
[ "MIT" ]
3
2022-01-14T08:29:16.000Z
2022-03-24T02:25:34.000Z
import copy import math import torch from graph_learners import * from layers import GCNConv_dense, GCNConv_dgl, SparseDropout from torch.nn import Sequential, Linear, ReLU # GCN for evaluation. class GCN(nn.Module): def __init__(self, in_channels, hidden_channels, out_channels, num_layers, dropout, dropout_adj,...
37.976923
114
0.611302
4a1544014326ff4707daf9e4bc3b8eb434105165
1,590
py
Python
u24_lymphocyte/third_party/treeano/visualization.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
u24_lymphocyte/third_party/treeano/visualization.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
u24_lymphocyte/third_party/treeano/visualization.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import pylab import networkx as nx import theano import theano.tensor as T def _plot_graph(graph, filename=None, node_size=500): nx.draw_networkx( graph, nx.graphviz_layout(graph), node_size=node_size) if filename is None: pylab.show() else: pylab.savefig(filename) ...
31.176471
75
0.584277
4a1545ff55e783296a5994a9e26c071a65e1efa0
10,239
py
Python
TADV/attacks/gmsa_attack.py
jfc43/eval-transductive-robustness
91aea64cc69be1e3f4d14f94de9ff976c8c307df
[ "Apache-2.0" ]
null
null
null
TADV/attacks/gmsa_attack.py
jfc43/eval-transductive-robustness
91aea64cc69be1e3f4d14f94de9ff976c8c307df
[ "Apache-2.0" ]
null
null
null
TADV/attacks/gmsa_attack.py
jfc43/eval-transductive-robustness
91aea64cc69be1e3f4d14f94de9ff976c8c307df
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import torch import torch.nn as nn class GMSAMINLinfPGDAttack: """ GMSA-MIN Attack with order=Linf :param eps: maximum distortion. :param nb_iter: number of iterations. :param eps_iter: attack step size. :param rand_init: (optional bool) random initializ...
32.401899
109
0.573884
4a15489f4047d4bfb5b4e9a767618611aa3a258f
2,046
py
Python
tests/smartdatamodels/smartcities/test_building.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
7
2022-02-25T09:55:28.000Z
2022-03-25T20:48:01.000Z
tests/smartdatamodels/smartcities/test_building.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
null
null
null
tests/smartdatamodels/smartcities/test_building.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Software Name: ngsildclient # SPDX-FileCopyrightText: Copyright (c) 2021 Orange # SPDX-License-Identifier: Apache 2.0 # # This software is distributed under the Apache 2.0; # see the NOTICE file for more details. # # Author: Fabien BATTELLO <fabien.battello@orange.com> et al. import pkg_resou...
29.652174
102
0.636852
4a15492167cc2f0db315d42fdafce14a605393d9
1,207
py
Python
sem_seg/eval_iou_accuracy.py
Enigma-li/pointnet
0728485a05d76bdaf48cd99af7a8132d3af474b7
[ "MIT" ]
null
null
null
sem_seg/eval_iou_accuracy.py
Enigma-li/pointnet
0728485a05d76bdaf48cd99af7a8132d3af474b7
[ "MIT" ]
null
null
null
sem_seg/eval_iou_accuracy.py
Enigma-li/pointnet
0728485a05d76bdaf48cd99af7a8132d3af474b7
[ "MIT" ]
null
null
null
import numpy as np pred_data_label_filenames = [line.rstrip() for line in open('all_pred_data_label_filelist.txt')] gt_label_filenames = [f.rstrip('_pred\.txt') + '_gt.txt' for f in pred_data_label_filenames] num_room = len(gt_label_filenames) gt_classes = [0 for _ in range(13)] positive_classes = [0 for _ in range(1...
32.621622
106
0.707539
4a154bb3479f329732add0e2eca55287d3a0b473
3,897
py
Python
get_loader.py
AmruthaReddy1397/pythonProject
cfb900b5e65812030f5e06b8424396924c1b10cc
[ "MIT" ]
null
null
null
get_loader.py
AmruthaReddy1397/pythonProject
cfb900b5e65812030f5e06b8424396924c1b10cc
[ "MIT" ]
null
null
null
get_loader.py
AmruthaReddy1397/pythonProject
cfb900b5e65812030f5e06b8424396924c1b10cc
[ "MIT" ]
null
null
null
# import os for loading file paths # import pandas for lookup in annotation file # import spacy for tokenizer # pad_sequence for pad batch # import Image to load image import os import pandas as pd import spacy import torch from torch.nn.utils.rnn import pad_sequence from torch.utils.data import DataLoader, Dataset fr...
27.835714
86
0.628176
4a154c3aded22f53ee813a79156a7425555466f3
8,123
py
Python
rtf/generators/python.py
galeone/rtf
99829715b503029a11e92bdd8ad66e92cbe9205b
[ "Apache-2.0" ]
6
2019-04-18T13:53:31.000Z
2020-06-23T08:03:30.000Z
rtf/generators/python.py
galeone/rtf
99829715b503029a11e92bdd8ad66e92cbe9205b
[ "Apache-2.0" ]
1
2019-04-20T17:31:17.000Z
2019-04-20T17:31:17.000Z
rtf/generators/python.py
galeone/rtf
99829715b503029a11e92bdd8ad66e92cbe9205b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Paolo Galeone <nessuno@nerdz.eu>. 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 ...
39.052885
92
0.578604
4a154c746c30f17cb0dcbc31855a89f17c3581d2
443
py
Python
Latte/ex9.py
Latte-inc/Learn-Python3.6
f3568cf2f8413f8730c2297bc39ae890bb82d962
[ "CC0-1.0" ]
1
2021-10-15T05:43:19.000Z
2021-10-15T05:43:19.000Z
Latte/ex9.py
Latte-inc/Learn-Python3.6
f3568cf2f8413f8730c2297bc39ae890bb82d962
[ "CC0-1.0" ]
null
null
null
Latte/ex9.py
Latte-inc/Learn-Python3.6
f3568cf2f8413f8730c2297bc39ae890bb82d962
[ "CC0-1.0" ]
1
2022-01-13T10:34:55.000Z
2022-01-13T10:34:55.000Z
# Print!Print! Print! Have new Exercise! # Time 2020/05/17 01:00 # fatcat like .... # 这段代码有一些神奇的东西(对于初学者来说) days = "\nMon\nTue\nWed\nThu\nFri\nSat\nSun" months = "\nJan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug" # 张口就是老变量赋值了(狗头) # 这个赋值中使用了换行符 \n 可以将字符换行显示! print("Here are the days: ", days) # 标准 print 输出方法 (".....
19.26087
52
0.641084
4a154c783d91c880e8a025ce02dc94dac1265600
675
py
Python
pewlang.py
Tasty-Kiwi/Pewlang
1fb9fc72a6e46ee90f4ab1f2dfb289c61b38b6b5
[ "WTFPL" ]
1
2021-02-14T06:20:20.000Z
2021-02-14T06:20:20.000Z
pewlang.py
Tasty-Kiwi/Pewlang
1fb9fc72a6e46ee90f4ab1f2dfb289c61b38b6b5
[ "WTFPL" ]
null
null
null
pewlang.py
Tasty-Kiwi/Pewlang
1fb9fc72a6e46ee90f4ab1f2dfb289c61b38b6b5
[ "WTFPL" ]
1
2021-02-12T17:22:48.000Z
2021-02-12T17:22:48.000Z
import sys import syntax # Main code if sys.argv[1] == "decode": pew = open(sys.argv[2], "rt", encoding="utf8").read() text = pew for x in range(len(syntax.BRAINF)): text = text.replace(syntax.CUSTOM_LANG[x], syntax.BRAINF[x]) f = open(sys.argv[3], "w", encoding="utf8") f.write(text) f....
28.125
68
0.597037
4a154d0b71b4e55e53c6705c59229b5ac7c03738
1,733
py
Python
pype/plugins/maya/publish/validate_node_ids_related.py
tws0002/pype
80b1aad9990f6c7efabf0430a3da6633054bf4a8
[ "MIT" ]
null
null
null
pype/plugins/maya/publish/validate_node_ids_related.py
tws0002/pype
80b1aad9990f6c7efabf0430a3da6633054bf4a8
[ "MIT" ]
null
null
null
pype/plugins/maya/publish/validate_node_ids_related.py
tws0002/pype
80b1aad9990f6c7efabf0430a3da6633054bf4a8
[ "MIT" ]
null
null
null
import pyblish.api import pype.api import avalon.io as io import pype.maya.action from pype.maya import lib class ValidateNodeIDsRelated(pyblish.api.InstancePlugin): """Validate nodes have a related Colorbleed Id to the instance.data[asset] """ order = pype.api.ValidatePipelineOrder label = 'Node ...
29.372881
79
0.552799
4a154ddb544015f1de595727db2bced4efd08efb
967
py
Python
polls/models.py
ocben1/djangoPolls
9c5cc8b089fb777d5f05abd0761027ab38e6104f
[ "MIT" ]
null
null
null
polls/models.py
ocben1/djangoPolls
9c5cc8b089fb777d5f05abd0761027ab38e6104f
[ "MIT" ]
null
null
null
polls/models.py
ocben1/djangoPolls
9c5cc8b089fb777d5f05abd0761027ab38e6104f
[ "MIT" ]
null
null
null
import datetime from django.db import models from django.utils import timezone from django.contrib import admin class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question_text def was_...
32.233333
71
0.693899
4a154e643bbd3a44dee6ae1d01694de1ce5f6060
1,950
py
Python
test_src/test_url_downloader.py
ChsHub/url_downloader
2dfa3dd9c7ec6024a12675c72bee3c1bdbb952fb
[ "MIT" ]
1
2019-12-28T04:12:11.000Z
2019-12-28T04:12:11.000Z
test_src/test_url_downloader.py
ChsHub/url_downloader
2dfa3dd9c7ec6024a12675c72bee3c1bdbb952fb
[ "MIT" ]
null
null
null
test_src/test_url_downloader.py
ChsHub/url_downloader
2dfa3dd9c7ec6024a12675c72bee3c1bdbb952fb
[ "MIT" ]
null
null
null
from pathlib import Path from tempfile import TemporaryDirectory from hypothesis import given from hypothesis.strategies import text, integers from url_downloader.url_downloader import _get_url_data, save_file, get_resource, _get_file_name class SaveToDisk: def __init__(self, file_path, url): pass ...
27.464789
116
0.663077
4a154e7650156699d24b55f28ef91e66d1f9137c
4,245
py
Python
test/test_cvml/src/neuro.py
bacchus/bacchuslib
35c41b6a7244227c0779c99b3c2f98b9a8349477
[ "MIT" ]
null
null
null
test/test_cvml/src/neuro.py
bacchus/bacchuslib
35c41b6a7244227c0779c99b3c2f98b9a8349477
[ "MIT" ]
null
null
null
test/test_cvml/src/neuro.py
bacchus/bacchuslib
35c41b6a7244227c0779c99b3c2f98b9a8349477
[ "MIT" ]
null
null
null
# https://thecodacus.com/neural-network-scratch-python-no-libraries #import numpy as np import math import random class Connection: def __init__(self, connectedNeuron): self.connectedNeuron = connectedNeuron self.weight = random.random() # np.random.normal() self.dWeight = 0.0 class Neur...
26.867089
91
0.531684
4a1550b13d94837ac6115058e187145726ec841b
7,683
py
Python
tests/contrib/test_algorithms.py
eddloschi/pyjwt
edb58db19469f269f11b8233a9fd7ab408d2036a
[ "MIT" ]
2
2021-03-07T14:46:54.000Z
2021-11-28T07:13:54.000Z
tests/contrib/test_algorithms.py
eddloschi/pyjwt
edb58db19469f269f11b8233a9fd7ab408d2036a
[ "MIT" ]
null
null
null
tests/contrib/test_algorithms.py
eddloschi/pyjwt
edb58db19469f269f11b8233a9fd7ab408d2036a
[ "MIT" ]
1
2021-10-20T02:25:15.000Z
2021-10-20T02:25:15.000Z
import base64 import pytest from jwt.utils import force_bytes, force_unicode from ..utils import key_path try: from jwt.contrib.algorithms.pycrypto import RSAAlgorithm has_pycrypto = True except ImportError: has_pycrypto = False try: from jwt.contrib.algorithms.py_ecdsa import ECAlgorithm has...
35.734884
77
0.679422
4a15515fe665cb02223e9ab33164a5bb0f267718
11,051
py
Python
accel/gpu.py
kevjn/simplegrad
08b31d588904b890df2e377e5e0591b3ad9273fa
[ "MIT" ]
null
null
null
accel/gpu.py
kevjn/simplegrad
08b31d588904b890df2e377e5e0591b3ad9273fa
[ "MIT" ]
null
null
null
accel/gpu.py
kevjn/simplegrad
08b31d588904b890df2e377e5e0591b3ad9273fa
[ "MIT" ]
null
null
null
import numpy as np import pyopencl as cl import pyopencl.array import functools import itertools as it class GPU: class Array(np.lib.mixins.NDArrayOperatorsMixin): def __init__(self, shape, dtype=np.float32, data=None): self.shape = shape self.dtype = np.dtype(dtype) ...
40.332117
126
0.58049