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
429933c8a7c851493bf176c4117fb4e702fbce28
7,830
py
Python
main.py
PeppaCat/EfficientZero
b0e98197abfc36ab34faac043ecea9b756b11d54
[ "MIT" ]
1
2021-12-12T09:04:34.000Z
2021-12-12T09:04:34.000Z
main.py
PeppaCat/EfficientZero
b0e98197abfc36ab34faac043ecea9b756b11d54
[ "MIT" ]
null
null
null
main.py
PeppaCat/EfficientZero
b0e98197abfc36ab34faac043ecea9b756b11d54
[ "MIT" ]
null
null
null
import argparse import logging.config import os import numpy as np import ray import torch from torch.utils.tensorboard import SummaryWriter from core.test import test from core.train import train from core.utils import init_logger, make_results_dir, set_seed if __name__ == '__main__': # Lets gather arguments ...
56.73913
139
0.640358
fc518e34c769d95ddaa9d30e152bb9a03b050391
11,769
py
Python
pypy/module/cpyext/eval.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
pypy/module/cpyext/eval.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
pypy/module/cpyext/eval.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
30
2018-08-20T03:16:34.000Z
2022-01-12T17:39:22.000Z
from pypy.interpreter.error import oefmt from pypy.interpreter.astcompiler import consts from rpython.rtyper.lltypesystem import rffi, lltype from rpython.rlib.objectmodel import we_are_translated from rpython.rlib.rarithmetic import widen from pypy.module.cpyext.api import ( cpython_api, CANNOT_FAIL, CONST_STRING,...
42.487365
82
0.71204
0199e60891a029925bc8c1c703dc7f04e15edd8d
3,547
py
Python
fedopt_guide/cifar10_resnet/centralized_cifar10.py
garyxcheng/federated
ba7133ead6127af71ea9356e26bfd05c02f8324a
[ "Apache-2.0" ]
330
2020-09-14T23:10:16.000Z
2022-03-30T19:49:19.000Z
fedopt_guide/cifar10_resnet/centralized_cifar10.py
garyxcheng/federated
ba7133ead6127af71ea9356e26bfd05c02f8324a
[ "Apache-2.0" ]
52
2020-09-30T06:10:51.000Z
2022-03-31T19:25:16.000Z
fedopt_guide/cifar10_resnet/centralized_cifar10.py
garyxcheng/federated
ba7133ead6127af71ea9356e26bfd05c02f8324a
[ "Apache-2.0" ]
119
2020-09-24T04:54:46.000Z
2022-03-31T21:46:57.000Z
# Copyright 2021, Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
40.306818
79
0.716944
951544588d4bc0ea7955a96664beb8128000d84f
1,192
py
Python
numpy/f2py/__init__.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
numpy/f2py/__init__.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
numpy/f2py/__init__.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import division, absolute_import __all__ = ['run_main','compile','f2py_testing'] import os import sys import commands from . import f2py2e from . import f2py_testing from . import diagnose from .info import __doc__ run_main = f2py2e.run_main main = f2py2e.main def compile(sou...
23.84
85
0.644295
039bfb8e3d43b2e3951e01e695afb6ed0f4b5f60
206
py
Python
oommfc/hamiltonian/hamiltonian.py
gamdow/oommfc
de33ae2a8348ca78d9e16fe18bc562393703c215
[ "BSD-3-Clause" ]
null
null
null
oommfc/hamiltonian/hamiltonian.py
gamdow/oommfc
de33ae2a8348ca78d9e16fe18bc562393703c215
[ "BSD-3-Clause" ]
null
null
null
oommfc/hamiltonian/hamiltonian.py
gamdow/oommfc
de33ae2a8348ca78d9e16fe18bc562393703c215
[ "BSD-3-Clause" ]
null
null
null
import micromagneticmodel as mm class Hamiltonian(mm.Hamiltonian): @property def _script(self): mif = "" for term in self.terms: mif += term._script return mif
18.727273
34
0.597087
11a1b753362f092b5a2e5bf4e9bb83320282a285
36
py
Python
bd_tools/__init__.py
cuda-convnet/bldc-controller
c982e5d5fdb68db86296c2f876a2162e6b630160
[ "MIT" ]
13
2020-03-06T20:21:54.000Z
2021-11-15T02:10:58.000Z
bd_tools/__init__.py
cuda-convnet/bldc-controller
c982e5d5fdb68db86296c2f876a2162e6b630160
[ "MIT" ]
8
2020-07-24T06:51:55.000Z
2021-05-24T04:24:32.000Z
bd_tools/__init__.py
BetzDrive/bldc-controller
c982e5d5fdb68db86296c2f876a2162e6b630160
[ "MIT" ]
16
2020-03-06T20:21:56.000Z
2022-03-22T16:59:14.000Z
"""The betz drive tools package."""
18
35
0.666667
4e2751df3fad2b3d91f3ea1121f8a389e8876eec
2,452
py
Python
day4.py
cjfuller/adventofcode2021
749c10fa44317bdd70be5123dee4038f0034c26c
[ "MIT" ]
null
null
null
day4.py
cjfuller/adventofcode2021
749c10fa44317bdd70be5123dee4038f0034c26c
[ "MIT" ]
null
null
null
day4.py
cjfuller/adventofcode2021
749c10fa44317bdd70be5123dee4038f0034c26c
[ "MIT" ]
null
null
null
from dataclasses import dataclass import re from typing import cast import numpy as np import util @dataclass class Board: status: np.ndarray numbers: np.ndarray @classmethod def from_lines(cls, lines: list[str]) -> "Board": board_nums = np.array( [[int(s, 10) for s in re.split(...
25.020408
80
0.576264
258da42864b9bdfeaf798ec9ef6da4fdf1037a47
571
py
Python
polyaxon/db/models/unique_names.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/db/models/unique_names.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/db/models/unique_names.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
PROJECT_UNIQUE_NAME_FORMAT = '{user}.{project}' GROUP_UNIQUE_NAME_FORMAT = '{project_name}.{id}' EXPERIMENT_UNIQUE_NAME_FORMAT = '{parent_name}.{id}' EXPERIMENT_JOB_UNIQUE_NAME_FORMAT = '{experiment_name}.{id}.{role}' BUILD_UNIQUE_NAME_FORMAT = '{project_name}.builds.{id}' JOB_UNIQUE_NAME_FORMAT = '{project_name}.jobs....
51.909091
67
0.791594
75b997a4bb688963d9a853a965f743c1e06af53a
835
py
Python
advanced.py
Astarter/Data552template
b62a0c7289f5d2c54fe1606e9b2bf14168b944bb
[ "MIT" ]
null
null
null
advanced.py
Astarter/Data552template
b62a0c7289f5d2c54fe1606e9b2bf14168b944bb
[ "MIT" ]
null
null
null
advanced.py
Astarter/Data552template
b62a0c7289f5d2c54fe1606e9b2bf14168b944bb
[ "MIT" ]
2
2021-03-04T18:53:10.000Z
2021-03-04T18:53:21.000Z
# Advanced function(s) ## Code Attribution: Code snippets taken and adapted from https://towardsdatascience.com/how-to-be-pythonic-and-why-you-should-care-188d63a5037e ### Updated by ben def even_value_doubler(array_to_double = [1,2,3,5,6,7,9,10,12]): """ This function allegedly takes an list array of numbers ...
34.791667
144
0.694611
b59adcb0165e292f81ca72095fdcd3fdc5b8d895
531
py
Python
tests/performance/mn4/tests/gmm.py
sravyasri/dislib
58c3ebbf322464211bb1326668743c3629a62213
[ "Apache-2.0" ]
null
null
null
tests/performance/mn4/tests/gmm.py
sravyasri/dislib
58c3ebbf322464211bb1326668743c3629a62213
[ "Apache-2.0" ]
null
null
null
tests/performance/mn4/tests/gmm.py
sravyasri/dislib
58c3ebbf322464211bb1326668743c3629a62213
[ "Apache-2.0" ]
null
null
null
import numpy as np import performance import dislib as ds from dislib.cluster import GaussianMixture def main(): n_samples = 1000000 n_chunks = 384 chunk_size = int(np.ceil(n_samples / n_chunks)) n_features = 100 n_clusters = 50 x = ds.random_array((n_samples, n_features), (chunk_size, n_fea...
23.086957
74
0.666667
c823bfad4e4b0bcdd29d326b9a0f7e493c72b377
7,584
py
Python
behave4cmd0/command_shell.py
janoskut/behave
51014658b178c6ecdb63a722d8adfc80d8cba9a3
[ "BSD-2-Clause" ]
null
null
null
behave4cmd0/command_shell.py
janoskut/behave
51014658b178c6ecdb63a722d8adfc80d8cba9a3
[ "BSD-2-Clause" ]
null
null
null
behave4cmd0/command_shell.py
janoskut/behave
51014658b178c6ecdb63a722d8adfc80d8cba9a3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Provide a behave shell to simplify creation of feature files and running features, etc. context.command_result = behave_shell.behave(cmdline, cwd=context.workdir) behave_shell.create_scenario(scenario_text, cwd=context.workdir) behave_shell.create_step_defi...
34.316742
84
0.547864
77e267379742a6b24ebcb512c58c6eac7d2469b0
1,905
py
Python
jpg_conversion_exercise/main.py
atenagm1375/scientific_computing
223082a28d89dba0d5e8140928560357d576f778
[ "MIT" ]
null
null
null
jpg_conversion_exercise/main.py
atenagm1375/scientific_computing
223082a28d89dba0d5e8140928560357d576f778
[ "MIT" ]
null
null
null
jpg_conversion_exercise/main.py
atenagm1375/scientific_computing
223082a28d89dba0d5e8140928560357d576f778
[ "MIT" ]
null
null
null
import cv2 import numpy as np from scipy.fftpack import dct, idct from tkinter import Tk from tkinter.filedialog import askopenfilename from constants import norm, filter, e, img_size def normalize_image(img): return img - norm def denormalize_image(img): return img + norm def transform(block): retur...
27.608696
114
0.627297
a09ca097faa61491231762db0630f91253e0aaf9
6,326
py
Python
daemon/core/gui/dialogs/ipdialog.py
CleberPeter/core
b02fd4ccac3c9f13b4885eaa6aed64395d74eb69
[ "BSD-2-Clause" ]
463
2015-07-28T16:28:12.000Z
2022-03-31T16:11:29.000Z
daemon/core/gui/dialogs/ipdialog.py
CleberPeter/core
b02fd4ccac3c9f13b4885eaa6aed64395d74eb69
[ "BSD-2-Clause" ]
392
2015-08-07T09:14:40.000Z
2022-03-31T18:12:28.000Z
daemon/core/gui/dialogs/ipdialog.py
CleberPeter/core
b02fd4ccac3c9f13b4885eaa6aed64395d74eb69
[ "BSD-2-Clause" ]
163
2015-07-30T15:54:03.000Z
2022-03-21T22:54:03.000Z
import tkinter as tk from tkinter import messagebox, ttk from typing import TYPE_CHECKING, List, Optional import netaddr from core.gui.dialogs.dialog import Dialog from core.gui.themes import FRAME_PAD, PADX, PADY from core.gui.widgets import ListboxScroll if TYPE_CHECKING: from core.gui.app import Application ...
41.618421
86
0.644009
f0ed081d814af67f2d4b3120ae16cd3a1311fd7f
497
py
Python
src/constants.py
Ahmed4221/LMV2
e60955d4730b55894df8483ed9e67829732f8020
[ "MIT" ]
null
null
null
src/constants.py
Ahmed4221/LMV2
e60955d4730b55894df8483ed9e67829732f8020
[ "MIT" ]
null
null
null
src/constants.py
Ahmed4221/LMV2
e60955d4730b55894df8483ed9e67829732f8020
[ "MIT" ]
null
null
null
import os ALLOWED_EXTENSIONS = ['pdf'] if not os.path.exists('data/'): os.mkdir('data/') RAW_DATA_PATH = 'data/raw_data' if not os.path.exists(RAW_DATA_PATH): os.mkdir(RAW_DATA_PATH) PROCESSED_DATA_PATH = 'data/processed_data' if not os.path.exists(PROCESSED_DATA_PATH): os.mkdir(PROCESSED_DATA_PATH) PROCES...
29.235294
48
0.770624
ec849321528718d69d245458e8451afe7294cde9
2,307
py
Python
convlab/modules/usr/user.py
seungjaeryanlee/ConvLab
a8c90f63a86b84d45384b507663c4c6fbe8a378a
[ "MIT" ]
null
null
null
convlab/modules/usr/user.py
seungjaeryanlee/ConvLab
a8c90f63a86b84d45384b507663c4c6fbe8a378a
[ "MIT" ]
null
null
null
convlab/modules/usr/user.py
seungjaeryanlee/ConvLab
a8c90f63a86b84d45384b507663c4c6fbe8a378a
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ """ class UserSimulator: """An aggregation of user simulator components.""" def __init__(self, nlu_model, policy, nlg_model): """ The constructor of UserSimulator class. The input are the models of each component. ...
35.492308
118
0.607282
591ee2fa17ceea87bf0103fe606bd3aefaf33ae3
19,126
py
Python
Mask_RCNN/mrcnn/visualize.py
Yuxin33/unmask-1
1c51c9c47f0d9e778d779df48364a46ef8921f77
[ "MIT" ]
7
2021-02-22T11:16:28.000Z
2021-11-12T01:33:08.000Z
Mask_RCNN/mrcnn/visualize.py
Yuxin33/unmask-1
1c51c9c47f0d9e778d779df48364a46ef8921f77
[ "MIT" ]
null
null
null
Mask_RCNN/mrcnn/visualize.py
Yuxin33/unmask-1
1c51c9c47f0d9e778d779df48364a46ef8921f77
[ "MIT" ]
3
2020-11-16T05:10:11.000Z
2021-12-07T03:35:10.000Z
""" Mask R-CNN Display and Visualization Functions. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla """ import os import sys import random import itertools import colorsys import numpy as np from skimage.measure import find_contours import matplo...
37.948413
92
0.579682
7d3057c137699f6a2a66f38e9bf0061c6287152f
7,825
py
Python
signjoey/metrics.py
Joe-Surrey/slt
4cc7a59f136502bf14aca003615cf51bc3ad5157
[ "Apache-2.0" ]
null
null
null
signjoey/metrics.py
Joe-Surrey/slt
4cc7a59f136502bf14aca003615cf51bc3ad5157
[ "Apache-2.0" ]
null
null
null
signjoey/metrics.py
Joe-Surrey/slt
4cc7a59f136502bf14aca003615cf51bc3ad5157
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ This module holds various MT evaluation metrics. """ from external_metrics import sacrebleu from external_metrics import mscoco_rouge import numpy as np WER_COST_DEL = 3 WER_COST_INS = 3 WER_COST_SUB = 4 def chrf(references, hypotheses): """ Character F-score from sacrebleu :param h...
32.740586
102
0.569329
81e1adf4024614608ad00b7086d7dd2206141d7d
16,933
py
Python
espnet/bin/st_train.py
LuoTianqi/espnet
b7ff2546b37c3f12b2bd45d879f2f0f88767b639
[ "Apache-2.0" ]
1
2020-02-06T15:59:22.000Z
2020-02-06T15:59:22.000Z
espnet/bin/st_train.py
LuoTianqi/espnet
b7ff2546b37c3f12b2bd45d879f2f0f88767b639
[ "Apache-2.0" ]
null
null
null
espnet/bin/st_train.py
LuoTianqi/espnet
b7ff2546b37c3f12b2bd45d879f2f0f88767b639
[ "Apache-2.0" ]
1
2021-02-28T05:57:51.000Z
2021-02-28T05:57:51.000Z
#!/usr/bin/env python3 # encoding: utf-8 # Copyright 2019 Kyoto University (Hirofumi Inaguma) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """End-to-end speech translation model training script.""" import logging import os import random import subprocess import sys from distutils.version import Loose...
53.248428
117
0.598004
314ed4e758cd211a3069095220d80a2a0f3b1343
4,416
py
Python
server/start_server.py
VipEr-sta/PyLUS
6531cc1b0919c179cbb3865ecc091a9543ece4aa
[ "MIT" ]
null
null
null
server/start_server.py
VipEr-sta/PyLUS
6531cc1b0919c179cbb3865ecc091a9543ece4aa
[ "MIT" ]
null
null
null
server/start_server.py
VipEr-sta/PyLUS
6531cc1b0919c179cbb3865ecc091a9543ece4aa
[ "MIT" ]
null
null
null
""" Core server implementation and startup """ import asyncio import inspect import logging import os import sys import yaml from event_dispatcher import EventDispatcher from pyraknet.server import Server as RNServer from pyraknet.messages import Message as RNMessage from pyraknet.transports.abc import Connection fr...
33.203008
123
0.608016
d013f8f0753fd708976677d4e87fd6e9aeddd76e
532
py
Python
fake_logs/weighted_choice.py
vdyc/fake-logs
2c3ad03a9e75601e0678b16fef74da40e7869c39
[ "MIT" ]
11
2018-05-31T01:44:44.000Z
2021-12-06T02:37:08.000Z
fake_logs/weighted_choice.py
vdyc/fake-logs
2c3ad03a9e75601e0678b16fef74da40e7869c39
[ "MIT" ]
1
2018-06-29T23:33:58.000Z
2018-06-29T23:33:58.000Z
fake_logs/weighted_choice.py
knil-sama/fake-logs
efabb85f5c183e8883dd2b4b2c5a1f150ee37ae2
[ "MIT" ]
7
2018-06-28T22:54:27.000Z
2021-12-07T02:13:57.000Z
import random class WeightedChoice: """Weighted version of random.choice.""" def __init__(self, values, weights=None): if weights is None: weights = [1] * len(values) self.choices = [[x, y] for x, y in zip(values, weights)] self.total = sum(w for c, w in self.choices) def run(self): """Get a random v...
22.166667
58
0.654135
fe8b348cea2f182bfda2e7a1d61aa8d13f33046b
2,023
py
Python
app/audit/models.py
zigellsn/JWConfStage
684060562a971b2dc33fe44b7f223babd4094786
[ "Apache-2.0" ]
null
null
null
app/audit/models.py
zigellsn/JWConfStage
684060562a971b2dc33fe44b7f223babd4094786
[ "Apache-2.0" ]
1
2019-02-20T21:15:08.000Z
2019-02-20T21:15:08.000Z
app/audit/models.py
zigellsn/JWConfStage
684060562a971b2dc33fe44b7f223babd4094786
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2022 Simon Zigelli # # 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...
32.629032
103
0.73999
cc6499f9c8df8f17f04b66e3389ffe7ab6c32c3a
2,364
py
Python
homeassistant/components/smarthab/__init__.py
jgrob1/core
b1444ffefb47c99fddf2a25b96de2b4f0313faa0
[ "Apache-2.0" ]
null
null
null
homeassistant/components/smarthab/__init__.py
jgrob1/core
b1444ffefb47c99fddf2a25b96de2b4f0313faa0
[ "Apache-2.0" ]
null
null
null
homeassistant/components/smarthab/__init__.py
jgrob1/core
b1444ffefb47c99fddf2a25b96de2b4f0313faa0
[ "Apache-2.0" ]
null
null
null
"""Support for SmartHab device integration.""" import asyncio import logging import pysmarthab import voluptuous as vol from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry from homeassistant.const import CONF_EMAIL, CONF_PASSWORD from homeassistant.exceptions import ConfigEntryNotReady import homeassi...
25.419355
80
0.673012
e23bfab0dc4e574f3dd7a3db11e477327aeaa8cd
1,322
py
Python
import_new_tournaments/get_new_hh_files/get_new_filenames.py
michaelcukier/Poker-Hand-Tracker
9adae42fab9f640e6939ba06bd588ab1a2feb90f
[ "MIT" ]
5
2021-02-28T18:33:02.000Z
2022-03-12T01:43:40.000Z
import_new_tournaments/get_new_hh_files/get_new_filenames.py
michaelcukier/Poker-Hand-Tracker
9adae42fab9f640e6939ba06bd588ab1a2feb90f
[ "MIT" ]
null
null
null
import_new_tournaments/get_new_hh_files/get_new_filenames.py
michaelcukier/Poker-Hand-Tracker
9adae42fab9f640e6939ba06bd588ab1a2feb90f
[ "MIT" ]
2
2021-03-01T03:08:04.000Z
2021-12-31T17:53:46.000Z
from .tasks.query_local_filesystem import query_local_filesystem from .tasks.remove_untracked_tournaments import remove_untracked_tournaments from .tasks.query_local_database import query_local_database from .tasks.group_filenames_by_id import group_filenames_by_id from .tasks.get_tournament_summaries_and_re_entries im...
42.645161
98
0.761725
cce170db7ffe14fbda4d9a8fd222740c444ff7f2
16,874
py
Python
marchena/modules/posts/templatetags/posts.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
marchena/modules/posts/templatetags/posts.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
marchena/modules/posts/templatetags/posts.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals import calendar from datetime import datetime, timedelta from django.core.urlresolvers import reverse from django.db.models import Count from django.template import Library from django.template.defaultfilters import date as date_format from django.utils ...
28.993127
109
0.595057
94a8ec4f3f15e2d4044feba1259464fc252d47be
8,327
py
Python
src/evaluation_func.py
ishine/phonetic_mlm
91ae25fa3f3508a50d26f86029dbfde145686ecf
[ "Apache-2.0" ]
8
2021-11-17T07:59:01.000Z
2022-02-26T01:13:48.000Z
src/evaluation_func.py
ishine/phonetic_mlm
91ae25fa3f3508a50d26f86029dbfde145686ecf
[ "Apache-2.0" ]
2
2021-11-23T08:37:56.000Z
2022-01-03T07:31:15.000Z
src/evaluation_func.py
ishine/phonetic_mlm
91ae25fa3f3508a50d26f86029dbfde145686ecf
[ "Apache-2.0" ]
4
2021-11-17T07:21:57.000Z
2021-11-25T07:55:58.000Z
import re from copy import deepcopy import numpy as np from utils import wordize_and_map def _get_zero_confusion_matrix(): return { 'sentence_level': { 'detect': { 'TP': 0, 'FP': 0, 'FN': 0 }, 'correct': { 'TP': 0, 'FP': 0, 'FN': 0 ...
37.008889
123
0.6055
abffdf3c3500cee657f6b8d730d0f84992a2e43d
1,714
py
Python
setup.py
xp-vit/flask-babelex
03c9856ff989ff353c8e4ffca1f2fbd2f6fb0b74
[ "BSD-3-Clause" ]
57
2015-01-04T21:28:34.000Z
2021-09-26T10:57:39.000Z
setup.py
xp-vit/flask-babelex
03c9856ff989ff353c8e4ffca1f2fbd2f6fb0b74
[ "BSD-3-Clause" ]
17
2015-04-14T11:34:20.000Z
2020-08-27T14:27:17.000Z
setup.py
xp-vit/flask-babelex
03c9856ff989ff353c8e4ffca1f2fbd2f6fb0b74
[ "BSD-3-Clause" ]
22
2015-01-07T15:19:03.000Z
2020-12-15T08:56:55.000Z
""" Flask-BabelEx ------------- Adds i18n/l10n support to Flask applications with the help of the `Babel`_ library. This is fork of official Flask-Babel extension with following features: 1. It is possible to use multiple language catalogs in one Flask application; 2. Localization domains: your extension can package...
29.050847
85
0.661027
299ca44ff70e0ee6ebcf97c2bd5d5d251a9070cf
1,339
py
Python
automatization_of_data_mining_project/data_set_preprocessor/classes/processing_method/min_max_scaler_method.py
Sale1996/automatization_of_data_mining_project
223aec59231586563a3b125bff064f8420630a8f
[ "MIT" ]
null
null
null
automatization_of_data_mining_project/data_set_preprocessor/classes/processing_method/min_max_scaler_method.py
Sale1996/automatization_of_data_mining_project
223aec59231586563a3b125bff064f8420630a8f
[ "MIT" ]
null
null
null
automatization_of_data_mining_project/data_set_preprocessor/classes/processing_method/min_max_scaler_method.py
Sale1996/automatization_of_data_mining_project
223aec59231586563a3b125bff064f8420630a8f
[ "MIT" ]
null
null
null
import pandas from sklearn.preprocessing import MinMaxScaler from data_set_preprocessor.classes.processing_method.processing_method import ProcessingMethod from data_set_preprocessor.exceptions.preprocessor_exceptions import CanNotScaleStringValueError class MinMaxScalerProcessingMethod(ProcessingMethod): def pr...
44.633333
101
0.752801
c65ca94abdd70fc3d7adea24f11ac455d1e19ca0
2,103
py
Python
test/09_conv2d_a/09_conv2d_a.py
nefrock/LeFlow
6ac21fcfc2108fb163d3e41c41bbbd197a721e8e
[ "MIT" ]
497
2018-07-22T06:51:16.000Z
2022-03-06T17:53:27.000Z
test/09_conv2d_a/09_conv2d_a.py
nefrock/LeFlow
6ac21fcfc2108fb163d3e41c41bbbd197a721e8e
[ "MIT" ]
38
2018-08-14T08:49:29.000Z
2022-02-16T23:52:31.000Z
test/09_conv2d_a/09_conv2d_a.py
nefrock/LeFlow
6ac21fcfc2108fb163d3e41c41bbbd197a721e8e
[ "MIT" ]
92
2018-07-23T02:53:59.000Z
2022-03-17T14:44:53.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2018 Daniel Holanda Noronha, Bahar Salehpour, Steve Wilton # danielhn<at>ece.ubc.ca # # Permission to use, copy, and modify this software and its documentation is # hereby granted only under the following terms and conditions...
34.47541
78
0.695197
9d0cca8af97fd348946cd20f36240943dce90078
1,523
py
Python
azure_functions_worker/bindings/generic.py
gohar94/azure-functions-python-worker
4322e53ddbcc1eea40c1b061b42653336d9003f6
[ "MIT" ]
277
2018-01-25T23:13:03.000Z
2022-02-22T06:12:04.000Z
azure_functions_worker/bindings/generic.py
gohar94/azure-functions-python-worker
4322e53ddbcc1eea40c1b061b42653336d9003f6
[ "MIT" ]
731
2018-01-18T18:54:38.000Z
2022-03-29T00:01:46.000Z
azure_functions_worker/bindings/generic.py
YunchuWang/azure-functions-python-worker
1f23e038a506c6412e4efbf07eb471a6afab0c2a
[ "MIT" ]
109
2018-01-18T02:22:57.000Z
2022-02-15T18:59:54.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import typing from . import datumdef from typing import Any, Optional class GenericBinding: @classmethod def has_trigger_support(cls) -> bool: return False @classmethod def check_input_type_annotat...
27.196429
78
0.60998
ea53687970277c7a4f5bc3fe34d4f15aa4309abc
1,037
py
Python
setup.py
mnansary/bnUnicodeNormalizer
881cf1f2abfeed48514dfbb82e2ff7ceab747df9
[ "MIT" ]
6
2022-02-15T09:46:40.000Z
2022-03-28T16:31:36.000Z
setup.py
mnansary/bnUnicodeNormalizer
881cf1f2abfeed48514dfbb82e2ff7ceab747df9
[ "MIT" ]
3
2022-02-18T13:32:15.000Z
2022-03-29T13:53:48.000Z
setup.py
mnansary/bnUnicodeNormalizer
881cf1f2abfeed48514dfbb82e2ff7ceab747df9
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- """ @author:Bengali.ai """ #------------------------------------------------------------ from __future__ import print_function #------------------------------------------------------------ from setuptools import setup, find_packages classifiers = [ 'Development Status :: 3 - Alpha', 'Intend...
31.424242
118
0.620058
aced77c350002e6c8bcfed366448fbc34bfd0680
139
py
Python
FadingMemory/Frontend/fmflask/test.py
avishaym/FadingMemoriesCamera
c8af71990519b5715b86f12d527fe767cfa30664
[ "MIT" ]
1
2021-08-02T14:04:34.000Z
2021-08-02T14:04:34.000Z
FadingMemory/Frontend/fmflask/test.py
avishaym/FadingMemoriesCamera
c8af71990519b5715b86f12d527fe767cfa30664
[ "MIT" ]
null
null
null
FadingMemory/Frontend/fmflask/test.py
avishaym/FadingMemoriesCamera
c8af71990519b5715b86f12d527fe767cfa30664
[ "MIT" ]
null
null
null
from memories import generate_memory approved = "1" idx, imagefile = generate_memory(approved) print "result is", idx, "image", imagefile
23.166667
42
0.769784
b345b7162261c558be8f5f62c8dd17f97b9610bc
7,108
py
Python
bin/buildinfo.py
plandes/zenbuild
60240dc64040ec6aa0029f663b3dfa76b5945998
[ "MIT" ]
2
2018-01-02T00:27:56.000Z
2018-04-17T17:42:44.000Z
bin/buildinfo.py
plandes/zenbuild
60240dc64040ec6aa0029f663b3dfa76b5945998
[ "MIT" ]
null
null
null
bin/buildinfo.py
plandes/zenbuild
60240dc64040ec6aa0029f663b3dfa76b5945998
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Command line program to access build information. """ __author__ = 'Paul Landes' from typing import List, Dict, Union, Iterable, Tuple from dataclasses import dataclass, field import logging import re import sys import json import plac from pathlib import Path logger = logging.getLogger(__n...
35.54
84
0.57386
48de901e87c990d2d7b7944e4d1519631a58ba16
501
py
Python
app/decorators.py
Abbott-Wu/flask-blog
f1843a254971b0250a8e51fb387d559f2206ecfb
[ "MIT" ]
1
2017-09-02T14:01:19.000Z
2017-09-02T14:01:19.000Z
app/decorators.py
Abbott-Wu/flask-blog
f1843a254971b0250a8e51fb387d559f2206ecfb
[ "MIT" ]
null
null
null
app/decorators.py
Abbott-Wu/flask-blog
f1843a254971b0250a8e51fb387d559f2206ecfb
[ "MIT" ]
null
null
null
from functools import wraps from flask import abort from flask_login import current_user from .models import Permission def permission_required(permission): def decorators(f): @wraps(f) def decorated_function(*args, **kwargs): if not current_user.can(permission): abort(...
25.05
56
0.688623
1acdad848bf40b8c607acda9da17acab0c5b3628
2,905
py
Python
RefreshTools.py
luzpaz/SearchBar
80316615dd1a7f9681f043fe51b09faabd8ad933
[ "CC0-1.0" ]
2
2022-01-19T04:11:45.000Z
2022-01-28T01:40:27.000Z
RefreshTools.py
luzpaz/SearchBar
80316615dd1a7f9681f043fe51b09faabd8ad933
[ "CC0-1.0" ]
11
2021-12-26T21:02:34.000Z
2022-03-13T23:31:50.000Z
RefreshTools.py
luzpaz/SearchBar
80316615dd1a7f9681f043fe51b09faabd8ad933
[ "CC0-1.0" ]
2
2022-01-25T18:22:57.000Z
2022-03-07T12:16:56.000Z
import os import FreeCAD as App def loadAllWorkbenches(): from PySide import QtGui import FreeCADGui activeWorkbench = FreeCADGui.activeWorkbench().name() lbl = QtGui.QLabel('Loading workbench … (…/…)') lbl.show() lst = FreeCADGui.listWorkbenches() for i, wb in enumerate(lst): msg = 'Loading workbenc...
35.426829
372
0.733907
2ecfa045f1bfe61e2bd0cf5d67b29a9f4983648e
3,472
py
Python
test/questions_test.py
CoveoWhisper/MLAPI
9c616ff173e8083f581d73c7130249ab70c0f783
[ "MIT" ]
null
null
null
test/questions_test.py
CoveoWhisper/MLAPI
9c616ff173e8083f581d73c7130249ab70c0f783
[ "MIT" ]
3
2018-10-20T23:10:14.000Z
2018-12-15T00:44:49.000Z
test/questions_test.py
CoveoWhisper/MLAPI
9c616ff173e8083f581d73c7130249ab70c0f783
[ "MIT" ]
1
2018-11-12T14:38:09.000Z
2018-11-12T14:38:09.000Z
import unittest from mlapi.model.facet import Facet from mlapi.question_generator import QuestionGenerator class TestQuestions(unittest.TestCase): def test_when_same_facet_then_return_no_questions(self): question_generator = QuestionGenerator() facet_a = Facet('NameA', 'ValueA') facets_by_...
50.318841
149
0.687788
6087d8f20ae61d2e4974ddd3337c97838893859b
236,434
py
Python
cpplint/cpplint_unittest.py
mcx/styleguide
a5197abff22b88ec3141d3ebc9b02975728bfeba
[ "Apache-2.0" ]
32,898
2015-05-20T22:50:51.000Z
2022-03-31T18:56:22.000Z
cpplint/cpplint_unittest.py
mcx/styleguide
a5197abff22b88ec3141d3ebc9b02975728bfeba
[ "Apache-2.0" ]
512
2015-06-01T20:54:23.000Z
2022-03-23T17:26:40.000Z
cpplint/cpplint_unittest.py
mcx/styleguide
a5197abff22b88ec3141d3ebc9b02975728bfeba
[ "Apache-2.0" ]
15,037
2015-05-21T04:20:43.000Z
2022-03-31T18:21:29.000Z
#!/usr/bin/python # -*- coding: utf-8; -*- # # Copyright (c) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyrigh...
40.673318
100
0.552742
74b74bd9833a4b9e4790bbe9e19d9f16fd75316d
118
py
Python
gym_snake/__init__.py
suryachereddy/snake-gym
1306a96c78edca98131ff4ec5bbcbb121416ff33
[ "MIT" ]
22
2019-08-29T19:48:23.000Z
2021-12-28T14:31:34.000Z
gym_snake/__init__.py
suryachereddy/snake-gym
1306a96c78edca98131ff4ec5bbcbb121416ff33
[ "MIT" ]
1
2020-06-10T02:56:12.000Z
2020-06-17T09:10:04.000Z
gym_snake/__init__.py
suryachereddy/snake-gym
1306a96c78edca98131ff4ec5bbcbb121416ff33
[ "MIT" ]
13
2019-08-29T16:01:24.000Z
2022-02-25T00:12:45.000Z
from gym.envs.registration import register register( id='Snake-v0', entry_point='gym_snake.envs:SnakeEnv', )
16.857143
42
0.728814
ab0a3f5725db7094b582535aefa02a072dab1598
1,476
py
Python
libraries/botbuilder-testing/setup.py
hangdong/botbuilder-python
8ff979a58fadc4356d76b9ce577f94da3245f664
[ "MIT" ]
null
null
null
libraries/botbuilder-testing/setup.py
hangdong/botbuilder-python
8ff979a58fadc4356d76b9ce577f94da3245f664
[ "MIT" ]
null
null
null
libraries/botbuilder-testing/setup.py
hangdong/botbuilder-python
8ff979a58fadc4356d76b9ce577f94da3245f664
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os from setuptools import setup REQUIRES = [ "botbuilder-schema>=4.4.0b1", "botbuilder-core>=4.4.0b1", "botbuilder-dialogs>=4.4.0b1", ] TESTS_REQUIRES = ["aiounittest==1.3.0"] root = os.path.abspath(os.p...
30.75
74
0.684959
1541abbdf94547ee30acf32f429cd4ab7639aff1
44,765
py
Python
pirates/leveleditor/worldData/interior_shanty_store_weapons.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/leveleditor/worldData/interior_shanty_store_weapons.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/leveleditor/worldData/interior_shanty_store_weapons.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from pandac.PandaModules import Point3, VBase3, Vec4, Vec3 objectStruct = {'Objects': {'1156268617.43dzlu0w': {'Type': 'Building Interior','Name': '','Instanced': True,'Objects': {'1167860918.28kmuller': {'Type': 'Ship_Props','DisableCollision': True,'Hpr': Point3(0.0, 0.0, 0.0),'Pos': Point3(2.893, -7.937, 0.0),'Scale...
14,921.666667
44,561
0.687836
cad918ae4d94fbc5e68c61078116a4b63d14ad09
6,739
py
Python
src/vocgui/admins/training_set_admin.py
digitalfabrik/lunes-cms
6d2424d97f83e1f6a762d94c021202322f038c00
[ "Apache-2.0" ]
14
2021-03-10T14:20:34.000Z
2021-11-20T11:42:06.000Z
src/vocgui/admins/training_set_admin.py
digitalfabrik/lunes-cms
6d2424d97f83e1f6a762d94c021202322f038c00
[ "Apache-2.0" ]
149
2020-12-18T18:11:16.000Z
2022-03-30T10:06:11.000Z
src/vocgui/admins/training_set_admin.py
digitalfabrik/lunes-cms
6d2424d97f83e1f6a762d94c021202322f038c00
[ "Apache-2.0" ]
3
2021-04-19T15:49:18.000Z
2022-02-14T09:04:43.000Z
from __future__ import absolute_import, unicode_literals from django.contrib import admin from ordered_model.admin import OrderedModelAdmin from django.utils.translation import ugettext_lazy as _ from vocgui.forms import TrainingSetForm from vocgui.list_filter import DisciplineListFilter from vocgui.models import Stat...
35.656085
92
0.610922
f6559c1c91a522ace6b45410b0f9b798884d27f3
5,456
py
Python
utils/process_gisaid.py
caporaso-lab/covid-ci
18b5a8acfde77e69deb57135a291a4cce36f4e89
[ "BSD-3-Clause" ]
1
2021-07-05T19:42:39.000Z
2021-07-05T19:42:39.000Z
utils/process_gisaid.py
caporaso-lab/covid-ci
18b5a8acfde77e69deb57135a291a4cce36f4e89
[ "BSD-3-Clause" ]
1
2020-07-28T19:25:16.000Z
2020-07-28T19:25:16.000Z
utils/process_gisaid.py
caporaso-lab/covid-ci
18b5a8acfde77e69deb57135a291a4cce36f4e89
[ "BSD-3-Clause" ]
2
2020-07-08T21:29:40.000Z
2020-07-08T21:30:12.000Z
#!/usr/bin/env python import tarfile import collections import pandas as pd from sys import argv import skbio.io def _file_handle_from_tar_fp(archive_fp, target_file_extension): archive_f = tarfile.open(archive_fp, mode='r') if not target_file_extension.startswith('.'): target_file_extension = '.%s' %...
41.022556
105
0.558284
e0263b4f1a51db549c798172d59ad3462411c297
25,974
py
Python
Lib/test/test_strptime.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
null
null
null
Lib/test/test_strptime.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
null
null
null
Lib/test/test_strptime.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
null
null
null
"""PyUnit testing against strptime""" import unittest import time import locale import re import sys from test import support from datetime import date as datetime_date import _strptime class getlang_Tests(unittest.TestCase): """Test _getlang""" def test_basic(self): self.assertEqual(_strptime._getla...
45.728873
88
0.577039
6a62a03c454d182da6381b2607a811f799ff045f
5,140
py
Python
tuw_station_manager/src/tuw_station_manager/tuw_station_manager_node.py
sgermanserrano/tuw_multi_robot
97fba5f6d896f20d95445dfa719b4512296dffc0
[ "BSD-3-Clause" ]
146
2018-07-21T09:50:13.000Z
2022-03-31T22:49:01.000Z
tuw_station_manager/src/tuw_station_manager/tuw_station_manager_node.py
sgermanserrano/tuw_multi_robot
97fba5f6d896f20d95445dfa719b4512296dffc0
[ "BSD-3-Clause" ]
34
2018-09-28T09:54:23.000Z
2022-03-10T08:05:01.000Z
tuw_station_manager/src/tuw_station_manager/tuw_station_manager_node.py
sgermanserrano/tuw_multi_robot
97fba5f6d896f20d95445dfa719b4512296dffc0
[ "BSD-3-Clause" ]
79
2018-01-27T23:25:26.000Z
2022-03-31T22:51:36.000Z
#!/usr/bin/env python import yaml import rospy from collections import OrderedDict from tuw_multi_robot_msgs.msg import Station from tuw_multi_robot_msgs.msg import StationArray from tuw_multi_robot_srvs.srv import StationManagerControlProtocol from tuw_multi_robot_srvs.srv import StationManagerControlProtocolReque...
41.451613
114
0.737354
c2dc3e0e3f18c553379e44a78de989784967cd51
3,161
py
Python
PushySDK/__init__.py
ddurdik/pushy
43fb5b2a41aa3792913bf0464ee0b56731d21f40
[ "MIT" ]
6
2017-02-07T18:18:05.000Z
2021-12-15T05:02:58.000Z
PushySDK/__init__.py
ddurdik/pushy
43fb5b2a41aa3792913bf0464ee0b56731d21f40
[ "MIT" ]
null
null
null
PushySDK/__init__.py
ddurdik/pushy
43fb5b2a41aa3792913bf0464ee0b56731d21f40
[ "MIT" ]
4
2017-02-14T15:01:27.000Z
2019-10-08T18:13:13.000Z
import requests, logging, json, collections, six, logging from functools import wraps if six.PY3: basestring=str logging.basicConfig() def _processRequest(fn): @wraps(fn) def wrapper(self, tokens, *args, **kwargs): request=fn(self, tokens, *args, **kwargs) if request.status_code==requests.cod...
31.929293
108
0.604872
7b315ae9ce0ccd0ac864d2f03f9bbcb4e320a80d
15,348
py
Python
src/python/pants/backend/python/rules/pytest_coverage.py
silverguo/pants
141510d03fbf2b7e1a0b54f66b54088697f6fa51
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/rules/pytest_coverage.py
silverguo/pants
141510d03fbf2b7e1a0b54f66b54088697f6fa51
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/rules/pytest_coverage.py
silverguo/pants
141510d03fbf2b7e1a0b54f66b54088697f6fa51
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import configparser import json from dataclasses import dataclass from enum import Enum from io import StringIO from pathlib import PurePath from textwrap import dedent from typing import ...
38.179104
100
0.726349
f7d7cd65390fa339e88794d4d1e8ea3f55165d10
3,546
py
Python
src/lib/matrix/test/test_data.py
lgarciaos/Firmware
26dba1407bd1fbc65c23870a22fed904afba6347
[ "BSD-3-Clause" ]
4,224
2015-01-02T11:51:02.000Z
2020-10-27T23:42:28.000Z
src/lib/matrix/test/test_data.py
lgarciaos/Firmware
26dba1407bd1fbc65c23870a22fed904afba6347
[ "BSD-3-Clause" ]
11,736
2015-01-01T11:59:16.000Z
2020-10-28T17:13:38.000Z
src/lib/matrix/test/test_data.py
lgarciaos/Firmware
26dba1407bd1fbc65c23870a22fed904afba6347
[ "BSD-3-Clause" ]
11,850
2015-01-02T14:54:47.000Z
2020-10-28T16:42:47.000Z
from __future__ import print_function from pylab import * from pprint import pprint import scipy.linalg # test cases, derived from doc/nasa_rotation_def.pdf #pylint: disable=all def euler_to_quat(phi, theta, psi): "Quaternion from (body 3(psi)-2(theta)-1(phi) euler angles" s1 = sin(psi/2) c1 = cos(psi/2)...
23.959459
116
0.542301
1c9526cc347c48d71ab4db45ba24c236056eddbf
3,326
py
Python
open/Inspur/code/ssd-mobilenet/tensorrt/calibrator.py
fenz-org/mlperf_inference_results_v0.7
2e38bec7f8df806283802a69db3d0038a37d026e
[ "Apache-2.0" ]
19
2020-10-26T17:37:22.000Z
2022-01-20T09:32:38.000Z
open/Inspur/code/ssd-mobilenet/tensorrt/calibrator.py
fenz-org/mlperf_inference_results_v0.7
2e38bec7f8df806283802a69db3d0038a37d026e
[ "Apache-2.0" ]
11
2020-10-21T19:18:48.000Z
2021-03-11T18:50:36.000Z
open/Inspur/code/ssd-mobilenet/tensorrt/calibrator.py
fenz-org/mlperf_inference_results_v0.7
2e38bec7f8df806283802a69db3d0038a37d026e
[ "Apache-2.0" ]
19
2020-10-21T19:15:17.000Z
2022-01-04T08:32:08.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. 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 appli...
41.575
140
0.693626
5657eae9e322100136f17b9d65753a92058c2af4
6,314
py
Python
test/test_plugin_flock.py
NiNiyas/apprise
8d96e95acd7cb89f082685ae161bd0e268203f0c
[ "MIT" ]
1
2022-01-19T01:40:04.000Z
2022-01-19T01:40:04.000Z
test/test_plugin_flock.py
NiNiyas/apprise
8d96e95acd7cb89f082685ae161bd0e268203f0c
[ "MIT" ]
null
null
null
test/test_plugin_flock.py
NiNiyas/apprise
8d96e95acd7cb89f082685ae161bd0e268203f0c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 Chris Caron <lead2gold@gmail.com> # All rights reserved. # # This code is licensed under the MIT License. # # 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 th...
35.273743
79
0.617517
ceda334672c2e0d2a23a0a6e36287b93fe82303f
1,189
py
Python
openapi/utils/problem_handle.py
ProjectJinBao/nirvana7
0fe614afe94358bad4fa0bbda8013d8040e96456
[ "Apache-2.0" ]
null
null
null
openapi/utils/problem_handle.py
ProjectJinBao/nirvana7
0fe614afe94358bad4fa0bbda8013d8040e96456
[ "Apache-2.0" ]
null
null
null
openapi/utils/problem_handle.py
ProjectJinBao/nirvana7
0fe614afe94358bad4fa0bbda8013d8040e96456
[ "Apache-2.0" ]
1
2020-06-16T09:25:14.000Z
2020-06-16T09:25:14.000Z
from logbook import Logger from termcc.helper.trace import trace_exception from connexion import (ProblemException, problem, FlaskApi) log = Logger('nirvana') def exception_handler(exception): log.critical("{}:{}:{}-{}".format(getattr(exception, 'name', 'uncaught'), getattr(exce...
41
104
0.590412
956f6a63e6988641a61e334890dcead52a0303b6
7,528
py
Python
xtlib/psm/local_psm_client.py
microsoft/ExperimentTools
ea9c15899dc787d8fbaf87dc4e9849ec4b28aadc
[ "MIT" ]
5
2020-06-13T17:44:51.000Z
2021-12-21T21:02:36.000Z
xtlib/psm/local_psm_client.py
microsoft/ExperimentTools
ea9c15899dc787d8fbaf87dc4e9849ec4b28aadc
[ "MIT" ]
9
2020-06-11T20:56:52.000Z
2022-03-12T00:34:45.000Z
xtlib/psm/local_psm_client.py
microsoft/ExperimentTools
ea9c15899dc787d8fbaf87dc4e9849ec4b28aadc
[ "MIT" ]
7
2020-06-13T17:44:54.000Z
2021-12-21T21:02:52.000Z
# # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # # local_psm_client.py: talk to Pool State Mgr running on local machine import os import time import uuid import psutil import shutil from xtlib import utils from xtlib import pc_utils from xtlib import constants from xtlib import file_utils f...
32.034043
95
0.577179
e8df6a1ffa3ae0dc3a450421212758c84d63c700
1,611
py
Python
src/nimodinst/metadata/functions_addon.py
dan-davello/nimi-python
8d89e4cfb205f789630cf7725f0c3d57bfe7d755
[ "MIT" ]
null
null
null
src/nimodinst/metadata/functions_addon.py
dan-davello/nimi-python
8d89e4cfb205f789630cf7725f0c3d57bfe7d755
[ "MIT" ]
null
null
null
src/nimodinst/metadata/functions_addon.py
dan-davello/nimi-python
8d89e4cfb205f789630cf7725f0c3d57bfe7d755
[ "MIT" ]
null
null
null
# These dictionaries are merged with the extracted function metadata at build time. # Changes to the metadata should be made here, because functions.py is generated thus any changes get overwritten. # By default all functions in functions.py are "public". # This will override that with private (prefixes name with '_')...
55.551724
146
0.710739
f415dd83396a04801b6d1303b1307082a938826b
3,087
py
Python
couler/core/templates/script.py
pagliaccl/couler
9e177e97b5338f034f8b99e90e65a511af37a721
[ "Apache-2.0" ]
null
null
null
couler/core/templates/script.py
pagliaccl/couler
9e177e97b5338f034f8b99e90e65a511af37a721
[ "Apache-2.0" ]
null
null
null
couler/core/templates/script.py
pagliaccl/couler
9e177e97b5338f034f8b99e90e65a511af37a721
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Couler 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 law or...
32.494737
78
0.602527
485fb1ac0e0187f98c26d9b8ea2b38dcb89fa968
6,387
py
Python
python/Pipeline/CBASS_L3_MergeFilters.py
cardin-higley-lab/CBASS
0d0b58497313027388351feffc79766f815b47b5
[ "Apache-2.0" ]
null
null
null
python/Pipeline/CBASS_L3_MergeFilters.py
cardin-higley-lab/CBASS
0d0b58497313027388351feffc79766f815b47b5
[ "Apache-2.0" ]
null
null
null
python/Pipeline/CBASS_L3_MergeFilters.py
cardin-higley-lab/CBASS
0d0b58497313027388351feffc79766f815b47b5
[ "Apache-2.0" ]
null
null
null
import numpy as np from scipy.stats import norm def MergeFilters(labels, bl1T_Epoch, sCLU, cFILTER, dbRate_All, in1Sel, in1CluKM, verbose): ''' [UPDATE THIS DESCRIPTION] L3 of the bout pipeline: Identifies pulses of activity using a sliding cosine similarity between the signal contained in sREC.db2LFP ...
48.386364
137
0.624393
b319b6b6804da89162a0820daf5b90a827937ef0
16,292
py
Python
electrum/bip32.py
L-47/qtum-electrum
dd1b0a8b6ef6e96015a6210de36b23949eaad359
[ "MIT" ]
79
2017-11-10T03:00:57.000Z
2022-02-27T16:35:04.000Z
electrum/bip32.py
L-47/qtum-electrum
dd1b0a8b6ef6e96015a6210de36b23949eaad359
[ "MIT" ]
70
2017-12-25T05:28:26.000Z
2022-03-26T22:31:47.000Z
electrum/bip32.py
L-47/qtum-electrum
dd1b0a8b6ef6e96015a6210de36b23949eaad359
[ "MIT" ]
64
2017-12-19T09:09:23.000Z
2022-02-08T10:26:13.000Z
# Copyright (C) 2018 The Electrum developers # Distributed under the MIT software license, see the accompanying # file LICENCE or http://www.opensource.org/licenses/mit-license.php import hashlib from typing import List, Tuple, NamedTuple, Union, Iterable, Sequence, Optional from .util import bfh, BitcoinException fr...
38.154567
109
0.630371
1e4b03c20d62a5799f3ee17a575413f7886a869c
136,630
py
Python
tests/git_cl_test.py
mrvltestgmail/repot_tools
c169e8396002e18a2e755a425dfc2f47973671bc
[ "BSD-3-Clause" ]
null
null
null
tests/git_cl_test.py
mrvltestgmail/repot_tools
c169e8396002e18a2e755a425dfc2f47973671bc
[ "BSD-3-Clause" ]
null
null
null
tests/git_cl_test.py
mrvltestgmail/repot_tools
c169e8396002e18a2e755a425dfc2f47973671bc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # 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. """Unit tests for git_cl.py.""" import contextlib import datetime import json import logging import os import StringIO import sys ...
39.205165
80
0.577743
1ca6adc35fa3636763747ae4c3143504d442382e
4,836
py
Python
packages/python/plotly/plotly/graph_objs/layout/updatemenu/_pad.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/updatemenu/_pad.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/updatemenu/_pad.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Pad(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.updatemenu" _path_str = "layout.updatemenu.pad" _valid_props = {"b", "l", "r", "t"} ...
24.548223
84
0.488627
a23b23bb9305c287d3d972303709e4585fe4f0d7
360
py
Python
servicesapp/stiemaps.py
heyylateef/lateeflab
4d7cdf3232eb22fe1151bd92beb04b7789cf9f71
[ "MIT" ]
null
null
null
servicesapp/stiemaps.py
heyylateef/lateeflab
4d7cdf3232eb22fe1151bd92beb04b7789cf9f71
[ "MIT" ]
null
null
null
servicesapp/stiemaps.py
heyylateef/lateeflab
4d7cdf3232eb22fe1151bd92beb04b7789cf9f71
[ "MIT" ]
null
null
null
from django.contrib import sitemaps from django.urls import reverse class StaticViewSitemap(sitemaps.Sitemap): priority = 0.5 changefreq = 'monthly' def items(self): return ['home', 'about', 'services_ecommerce', 'services_api', 'contact', 'privacypolicy', 'termsandconditions'] def location(s...
30
120
0.702778
1eeefe1ea37b0347cb3d00a987bb011417b93e1e
9,202
py
Python
site_scons/site_tools/dagger/dagger.py
EdwardPrentice/wrongo
1e7c9136f5fab7040b5bd5df51b4946876625c88
[ "Apache-2.0" ]
12
2020-04-27T21:31:57.000Z
2020-12-13T13:25:06.000Z
site_scons/site_tools/dagger/dagger.py
EdwardPrentice/wrongo
1e7c9136f5fab7040b5bd5df51b4946876625c88
[ "Apache-2.0" ]
2
2021-03-26T00:01:11.000Z
2021-03-26T00:02:19.000Z
site_scons/site_tools/dagger/dagger.py
EdwardPrentice/wrongo
1e7c9136f5fab7040b5bd5df51b4946876625c88
[ "Apache-2.0" ]
5
2020-12-16T13:31:55.000Z
2021-01-17T07:39:30.000Z
"""Dagger allows SCons to track it's internal build dependency data for the MongoDB project. The tool stores this information in a Graph object, which is then exported to a pickle/JSON file once the build is complete. This tool binds a method to the SCons Env, which can be executed by a call to env.BuildDeps(filename)...
32.864286
119
0.656162
d3780fe88db9b2c8c886de5574853d2c9a52a045
3,808
py
Python
python/model_sybenik.py
physycom/slides
ff73de94997e39673d6d5c82b1bb4d9d0069fee6
[ "BSD-3-Clause" ]
1
2020-05-29T09:40:19.000Z
2020-05-29T09:40:19.000Z
python/model_sybenik.py
physycom/slides
ff73de94997e39673d6d5c82b1bb4d9d0069fee6
[ "BSD-3-Clause" ]
null
null
null
python/model_sybenik.py
physycom/slides
ff73de94997e39673d6d5c82b1bb4d9d0069fee6
[ "BSD-3-Clause" ]
2
2022-01-27T08:53:19.000Z
2022-03-28T07:14:56.000Z
#! /usr/bin/env python3 import os import json import argparse import pymongo import numpy as np import pandas as pd import mysql.connector import matplotlib.pyplot as plt from datetime import datetime, timedelta from collections import defaultdict ################# #### logging #### ################# import logging l...
28.41791
99
0.565126
f16a8ae6716b54c7d5fba4cad72b6063443945ce
18,577
py
Python
grr/server/grr_response_server/databases/mysql_test.py
oueldz4/grr
8c60d9198cc0875a8ea80b90237eb0a8272082ff
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/databases/mysql_test.py
oueldz4/grr
8c60d9198cc0875a8ea80b90237eb0a8272082ff
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/databases/mysql_test.py
oueldz4/grr
8c60d9198cc0875a8ea80b90237eb0a8272082ff
[ "Apache-2.0" ]
1
2020-07-09T01:08:48.000Z
2020-07-09T01:08:48.000Z
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import contextlib import logging import os import random import string import threading import unittest from absl import app from absl.testing import absltest from future.builtins impor...
25.378415
80
0.768585
235e1f346dac68bc8a6501495dcd09aabab7a3e9
377
py
Python
config/uwsgi/websiterunner.py
sauravsrijan/base-flask
eda0c05f72c8d03ccfa9babe71c9f7bf6323ad1e
[ "MIT" ]
null
null
null
config/uwsgi/websiterunner.py
sauravsrijan/base-flask
eda0c05f72c8d03ccfa9babe71c9f7bf6323ad1e
[ "MIT" ]
null
null
null
config/uwsgi/websiterunner.py
sauravsrijan/base-flask
eda0c05f72c8d03ccfa9babe71c9f7bf6323ad1e
[ "MIT" ]
null
null
null
import os import dotenv import newrelic.agent from syspath import git_root dotenv.load_dotenv(os.path.join(git_root.path, '.env')) # Set up NewRelic Agent if os.environ['ENV'] in ['production', 'staging']: newrelic_ini = os.path.join(git_root.path, 'config', 'newrelic.ini') newrelic.agent.initialize(newrelic...
25.133333
72
0.734748
edb90f60029a147b6fdcdf9a132515dda9aa8715
3,275
py
Python
compiler/parser/ceda/parse_to_ast2.py
reikdas/pash
5eac7b98f16786dfee5be83acd079c46c9e5b68d
[ "MIT" ]
89
2021-07-12T16:15:39.000Z
2022-02-20T10:01:41.000Z
compiler/parser/ceda/parse_to_ast2.py
reikdas/pash
5eac7b98f16786dfee5be83acd079c46c9e5b68d
[ "MIT" ]
226
2021-07-12T16:41:00.000Z
2022-03-31T22:52:52.000Z
compiler/parser/ceda/parse_to_ast2.py
reikdas/pash
5eac7b98f16786dfee5be83acd079c46c9e5b68d
[ "MIT" ]
23
2021-07-12T14:23:23.000Z
2022-03-29T07:21:31.000Z
import os import subprocess from ctypes import * from ast2a import of_node from dash2 import * if 'PASH_TOP' in os.environ: PASH_TOP = os.environ['PASH_TOP'] else: GIT_TOP_CMD = [ 'git', 'rev-parse', '--show-toplevel', '--show-superproject-working-tree'] PASH_TOP = subprocess.run(GIT_TOP_CMD, stdout=subpro...
34.473684
131
0.615878
c6923b9cecb4cba9d88cb50e11dd13cfcd8a7ea1
152
py
Python
src/perfplot/__init__.py
SteveHere/perfplot
38d69cd1574a1723c1b9d85f395828d731d9cec0
[ "MIT" ]
null
null
null
src/perfplot/__init__.py
SteveHere/perfplot
38d69cd1574a1723c1b9d85f395828d731d9cec0
[ "MIT" ]
null
null
null
src/perfplot/__init__.py
SteveHere/perfplot
38d69cd1574a1723c1b9d85f395828d731d9cec0
[ "MIT" ]
null
null
null
from .__about__ import __version__ from ._main import bench, live, plot, save, show __all__ = ["bench", "plot", "show", "save", "live", "__version__"]
30.4
66
0.690789
44284025ef5c072c94ed3d5cd5621354523062c9
39
py
Python
python/testData/codeInsight/smartEnter/multilineListLiteralItemFollowedByComment_after.py
alexey-anufriev/intellij-community
ffcd46f14e630acdefcc76e2bfc7c43d2449013a
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/codeInsight/smartEnter/multilineListLiteralItemFollowedByComment_after.py
alexey-anufriev/intellij-community
ffcd46f14e630acdefcc76e2bfc7c43d2449013a
[ "Apache-2.0" ]
1
2020-07-30T19:04:47.000Z
2020-07-30T19:04:47.000Z
python/testData/codeInsight/smartEnter/multilineListLiteralItemFollowedByComment_after.py
bradleesand/intellij-community
750ff9c10333c9c1278c00dbe8d88c877b1b9749
[ "Apache-2.0" ]
1
2020-10-15T05:56:42.000Z
2020-10-15T05:56:42.000Z
xs = [ 42, # comment <caret> ]
9.75
18
0.410256
281f1c42835f6288caaf5b3f53929623f894ba9e
4,304
py
Python
data_augmentation.py
SumitM0432/XLM-RoBERTa-for-Textual-Entailment
e551343fc7b2712744ad6b5ca51abbf824ef417c
[ "MIT" ]
4
2020-09-15T11:58:24.000Z
2021-11-14T11:36:39.000Z
data_augmentation.py
SumitM0432/XLM-RoBERTa-for-Textual-Entailment
e551343fc7b2712744ad6b5ca51abbf824ef417c
[ "MIT" ]
null
null
null
data_augmentation.py
SumitM0432/XLM-RoBERTa-for-Textual-Entailment
e551343fc7b2712744ad6b5ca51abbf824ef417c
[ "MIT" ]
1
2021-08-28T05:55:39.000Z
2021-08-28T05:55:39.000Z
import nlp import numpy as np import pandas as pd from tqdm import tqdm from googletrans import Translator from collections import defaultdict # Using back translation for data augmentation with just one language def back_translation(txt_pre, txt_hypo): languages = ['en', 'fr', 'th', 'tr', 'ur', 'ru', '...
37.426087
147
0.609898
ce4e5e78b93b65fd073e5668ef13c1510d7260f3
6,650
py
Python
ytmdl/setupConfig.py
loftwah/ytmdl
ff18fcabee37f2b75797a732dd474a6dae732b81
[ "MIT" ]
1
2020-07-22T22:01:35.000Z
2020-07-22T22:01:35.000Z
ytmdl/setupConfig.py
nanthu0123/ytmdl
18ade43a450f964c7407649ac43229c978ee0b68
[ "MIT" ]
null
null
null
ytmdl/setupConfig.py
nanthu0123/ytmdl
18ade43a450f964c7407649ac43229c978ee0b68
[ "MIT" ]
null
null
null
"""Functions used in setting up the config file are defined here.""" import os import re from ytmdl.logger import Logger from xdg.BaseDirectory import xdg_config_home config_text = '''#*****************************************# #*-------------config for ytmdl ----------# # #-----------------------------------------#...
29.6875
79
0.581654
62f513376370767671a48509c8e5eb9e4da30878
3,898
py
Python
model-optimizer/extensions/middle/reverse_tensor_iterator.py
shinh/dldt
693ab4e79a428e0801f17f4511b129a3fa8f4a62
[ "Apache-2.0" ]
1
2021-02-20T21:48:36.000Z
2021-02-20T21:48:36.000Z
model-optimizer/extensions/middle/reverse_tensor_iterator.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/middle/reverse_tensor_iterator.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
1
2021-02-19T01:06:12.000Z
2021-02-19T01:06:12.000Z
""" Copyright (c) 2018-2019 Intel Corporation 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 i...
38.215686
114
0.599795
2df28a371577cdbaa63de9d1e485bb05f89133ca
735
py
Python
ABC/190/c.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/190/c.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/190/c.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
def main(): # input N, M = map(int, input().split()) ABs = [] for _ in range(M): ABs.append(list(map(int, input().split()))) K = int(input()) CDs = [] for _ in range(K): CDs.append(list(map(int, input().split()))) # compute ans = 0 for i in range(2**K): d...
22.272727
65
0.429932
a079d3620fa3bb53a08e26aa4420fd62baffd4c9
3,524
py
Python
starknet_py/compile/compiler.py
unparalleled-js/starknet.py
e35321ddc9c6818220ba5682d4704b6264c0cfd2
[ "MIT" ]
84
2021-12-15T10:45:13.000Z
2022-03-30T11:05:24.000Z
starknet_py/compile/compiler.py
unparalleled-js/starknet.py
e35321ddc9c6818220ba5682d4704b6264c0cfd2
[ "MIT" ]
56
2021-12-14T17:19:40.000Z
2022-03-30T10:03:14.000Z
starknet_py/compile/compiler.py
software-mansion/starknet_python_sdk
62a8ffbf20af4a6225065441fbc91656739f9eb1
[ "MIT" ]
10
2022-01-02T18:36:11.000Z
2022-03-25T22:20:59.000Z
import json import os from pathlib import Path from typing import List, NewType, Optional, Tuple, Union from starkware.starknet.services.api.contract_definition import ContractDefinition from starkware.cairo.lang.compiler.constants import MAIN_SCOPE, LIBS_DIR_ENVVAR from starkware.cairo.lang.cairo_constants import DEF...
29.123967
112
0.716232
f44b3016de01b037d4a51c37df8abec232381ed0
1,296
py
Python
tests/adapter_uvicorn/conftest.py
newrelic/newrelic-python-agen
4f292ec1219c0daffc5721a7b3a245b97d0f83ba
[ "Apache-2.0" ]
92
2020-06-12T17:53:23.000Z
2022-03-01T11:13:21.000Z
tests/adapter_uvicorn/conftest.py
newrelic/newrelic-python-agen
4f292ec1219c0daffc5721a7b3a245b97d0f83ba
[ "Apache-2.0" ]
347
2020-07-10T00:10:19.000Z
2022-03-31T17:58:56.000Z
tests/adapter_uvicorn/conftest.py
newrelic/newrelic-python-agen
4f292ec1219c0daffc5721a7b3a245b97d0f83ba
[ "Apache-2.0" ]
58
2020-06-17T13:51:57.000Z
2022-03-06T14:26:53.000Z
# Copyright 2010 New Relic, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
33.230769
86
0.780093
28a054bf9a49006df16a79f082eaa66355fc7d31
21
py
Python
Unidad 2/packages/extra/ugly/psi.py
angelxehg/utzac-ppy
fb88bcc661518bb35c08a102a67c20d0659f71db
[ "MIT" ]
null
null
null
Unidad 2/packages/extra/ugly/psi.py
angelxehg/utzac-ppy
fb88bcc661518bb35c08a102a67c20d0659f71db
[ "MIT" ]
null
null
null
Unidad 2/packages/extra/ugly/psi.py
angelxehg/utzac-ppy
fb88bcc661518bb35c08a102a67c20d0659f71db
[ "MIT" ]
null
null
null
def funP(): pass
7
11
0.52381
4ad23dc217823584f37a61af58b163abe2ea0084
8,645
py
Python
greenweb/settings/common.py
thegreenwebfoundation/greenwebfoundation-admin
4ecf087fc7a305b410fe9dc5c13c721f98755ad7
[ "Apache-2.0" ]
null
null
null
greenweb/settings/common.py
thegreenwebfoundation/greenwebfoundation-admin
4ecf087fc7a305b410fe9dc5c13c721f98755ad7
[ "Apache-2.0" ]
50
2019-11-11T15:31:51.000Z
2020-05-15T12:11:25.000Z
greenweb/settings/common.py
thegreenwebfoundation/greenwebfoundation-admin
4ecf087fc7a305b410fe9dc5c13c721f98755ad7
[ "Apache-2.0" ]
null
null
null
""" Django settings for Greenweb foundation project. Generated by 'django-admin startproject' using Django. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ import...
30.017361
99
0.705842
db443bc2fc2f2840e08e500be9c97d6455d6e5fa
167
py
Python
Ladder 11/Python/030.Effective Approach.py
purush34/a2oj-solutions
1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb
[ "MIT" ]
null
null
null
Ladder 11/Python/030.Effective Approach.py
purush34/a2oj-solutions
1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb
[ "MIT" ]
1
2021-12-01T06:53:18.000Z
2021-12-01T07:09:31.000Z
Ladder 11/Python/030.Effective Approach.py
purush34/a2oj-solutions
1ce6e2647b2f2ae47d3c03337ae4af1a7d5c8edb
[ "MIT" ]
4
2021-10-31T16:36:28.000Z
2021-12-01T05:48:31.000Z
n=int(input());d={} for i,j in enumerate(map(int,input().split())): d[j]=i+1 m=int(input());v,p=0,0 for i in map(int,input().split()): v+=d[i];p+=n-d[i]+1 print(v,p)
23.857143
47
0.57485
f5cded7ea5776be0876aa777d9d2b8172f6f685b
1,257
py
Python
airflow/migrations/versions/502898887f84_adding_extra_to_log.py
abhishek-ch/incubator-airflow
3358551c8e73d9019900f7a85f18ebfd88591450
[ "Apache-2.0" ]
4
2015-11-12T10:58:54.000Z
2017-08-05T06:41:36.000Z
airflow/migrations/versions/502898887f84_adding_extra_to_log.py
abhishek-ch/incubator-airflow
3358551c8e73d9019900f7a85f18ebfd88591450
[ "Apache-2.0" ]
9
2016-01-14T18:06:48.000Z
2018-10-02T16:32:51.000Z
airflow/migrations/versions/502898887f84_adding_extra_to_log.py
abhishek-ch/incubator-airflow
3358551c8e73d9019900f7a85f18ebfd88591450
[ "Apache-2.0" ]
2
2015-12-14T11:38:49.000Z
2018-03-26T15:03:07.000Z
# -*- coding: utf-8 -*- # # 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 #...
28.568182
70
0.746221
168c17034e4bfe8e4a6f081f13cfa4db830395d9
3,122
py
Python
docs_build/tutorials_templates/data_management/sort_and_filter/advanced_sdk_filters/mds.py
dataloop-ai/sdk_examples
422d5629df5af343d2dc275e9570bb83c4e2f49d
[ "MIT" ]
3
2022-01-07T20:33:49.000Z
2022-03-22T12:41:30.000Z
docs_build/tutorials_templates/data_management/sort_and_filter/advanced_sdk_filters/mds.py
dataloop-ai/sdk_examples
422d5629df5af343d2dc275e9570bb83c4e2f49d
[ "MIT" ]
null
null
null
docs_build/tutorials_templates/data_management/sort_and_filter/advanced_sdk_filters/mds.py
dataloop-ai/sdk_examples
422d5629df5af343d2dc275e9570bb83c4e2f49d
[ "MIT" ]
3
2021-12-29T13:11:30.000Z
2022-03-22T12:25:50.000Z
def section1(): """ To access the filters entity click <a href="https://sdk-docs.dataloop.ai/en/latest/entities.html#module-dtlpy.entities.filters" target="_blank">here</a>. ### Filter Operators To understand more about filter operators please click <a href="https://dataloop.ai/docs/dql-operators" targe...
30.910891
202
0.661435
05bc59c172353bdcbfea3cfc79e0658e11888172
5,275
py
Python
marvinapi/MarvinAPI.py
cardosolucas/marvinapi
eb4a5a0ec0ec9092b203787704090dfe6849ce96
[ "Apache-2.0" ]
null
null
null
marvinapi/MarvinAPI.py
cardosolucas/marvinapi
eb4a5a0ec0ec9092b203787704090dfe6849ce96
[ "Apache-2.0" ]
null
null
null
marvinapi/MarvinAPI.py
cardosolucas/marvinapi
eb4a5a0ec0ec9092b203787704090dfe6849ce96
[ "Apache-2.0" ]
null
null
null
import requests import json class MarvinAPI: def __init__(self, url): self.url = url def acquisitor(self, action, parameters={}): alowed_action = [ 'reload', 'health', 'status' ] if action not in alowed_action: return {'error': Tr...
31.39881
88
0.518673
97ffef888871d5b6a553a5f553f829a9eead2ae6
8,529
py
Python
basic examples/dog_simulator.py
Tryst480/python-tutorial
056803f185b9cf31235fdfc221a3a490c353cd70
[ "MIT" ]
null
null
null
basic examples/dog_simulator.py
Tryst480/python-tutorial
056803f185b9cf31235fdfc221a3a490c353cd70
[ "MIT" ]
null
null
null
basic examples/dog_simulator.py
Tryst480/python-tutorial
056803f185b9cf31235fdfc221a3a490c353cd70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import time import random class Dog: def __init__(self, name, breed=None): self.name = name if breed: self.breed = breed else: self.breed = 'unknown breed' self.hunger_level = 0 self.is_dead = False self._status = N...
33.711462
118
0.485403
0c481b03bcceb7b254355895bc7285325ea7c80a
809
py
Python
mean.py
Aieener/HRE
a59fe4cd74a3b0af1e35fc942329b24f05f40f8e
[ "MIT" ]
null
null
null
mean.py
Aieener/HRE
a59fe4cd74a3b0af1e35fc942329b24f05f40f8e
[ "MIT" ]
null
null
null
mean.py
Aieener/HRE
a59fe4cd74a3b0af1e35fc942329b24f05f40f8e
[ "MIT" ]
null
null
null
import numpy as np data = np.loadtxt('dataplot.dat') avetho = np.average(data[:10000, 4]) avever = np.average(data[:10000, 2]) avehor = np.average(data[:10000, 3]) aveQ = np.average(data[:10000, 1]) # read = "The average density Rho is ", avetho, '\n', "The average Vertical Rod is ", avever, \ # '\n', "The aver...
50.5625
109
0.657602
3ca2f9a855461c1a7f1b264da8acd3306e52da15
447
py
Python
pythonforandroid/recipes/setuptools/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
38
2016-03-09T08:48:19.000Z
2021-11-28T15:31:22.000Z
pythonforandroid/recipes/setuptools/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
2
2018-12-18T14:30:11.000Z
2021-06-21T20:15:47.000Z
pythonforandroid/recipes/setuptools/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
18
2016-07-13T17:30:05.000Z
2022-02-22T07:04:33.000Z
from pythonforandroid.toolchain import ( PythonRecipe, Recipe, current_directory, info, shprint, ) from os.path import join import sh class SetuptoolsRecipe(PythonRecipe): version = '18.3.1' url = 'https://pypi.python.org/packages/source/s/setuptools/setuptools-{version}.tar.gz' depe...
18.625
92
0.713647
d9d6dad1edddbf7e725550366ee940d8a52c9b58
7,973
py
Python
GeoParser/geoparser_app/solr_admin.py
DigitalCompanion/counterfeit
cde2434c48397541baa506478159e64dccdc7992
[ "Apache-2.0" ]
2
2016-07-13T02:08:54.000Z
2016-08-13T03:09:52.000Z
GeoParser/geoparser_app/solr_admin.py
DigitalCompanion/counterfeit
cde2434c48397541baa506478159e64dccdc7992
[ "Apache-2.0" ]
1
2018-02-25T23:06:33.000Z
2018-02-25T23:06:33.000Z
GeoParser/geoparser_app/solr_admin.py
DigitalCompanion/counterfeit
cde2434c48397541baa506478159e64dccdc7992
[ "Apache-2.0" ]
3
2016-07-14T17:48:54.000Z
2017-02-09T16:23:50.000Z
''' GeoParser admin core Utility - Store information about index configuration - id - domain-name - indexes - list of indexes for this domain. - core_names - list of cores for those indexes. - point_list - list of num of points points found - idx_size_list - list of size of target index - idx_field_list - csv...
31.266667
117
0.685815
25c48b0b646b4ddc4155c1a9ea63f484bc32caed
935
py
Python
psyLex.py
seanrife/psyLex
d3038803fb85b531f619f288964e8b90b16bf54d
[ "MIT" ]
14
2017-11-26T06:26:59.000Z
2021-03-08T13:53:31.000Z
psyLex.py
seanrife/psyLex
d3038803fb85b531f619f288964e8b90b16bf54d
[ "MIT" ]
null
null
null
psyLex.py
seanrife/psyLex
d3038803fb85b531f619f288964e8b90b16bf54d
[ "MIT" ]
2
2019-12-12T21:12:58.000Z
2019-12-19T12:48:03.000Z
from psyLex.readDict import * from psyLex.wordCount import * import sys # It goes like this: accepts three command line arguments: (1) mode - see below - (2) text to analyze (file vs. raw text), and (3) the path to the dictionary file we should use. inMode = sys.argv[1] inValue = sys.argv[2] inDict = sys.argv[3] dic...
32.241379
177
0.695187
efbee5f174fc636d9ec621b7c880c7b80ccc50ed
3,712
py
Python
src/dx/ams/amsip/scraper/crawler.py
lmmx/dx
063e8f8cfc24dfdf09a12001b58b4017a75ea3e8
[ "MIT" ]
null
null
null
src/dx/ams/amsip/scraper/crawler.py
lmmx/dx
063e8f8cfc24dfdf09a12001b58b4017a75ea3e8
[ "MIT" ]
2
2021-01-03T16:22:11.000Z
2021-02-07T08:41:57.000Z
src/dx/ams/amsip/scraper/crawler.py
lmmx/dx
063e8f8cfc24dfdf09a12001b58b4017a75ea3e8
[ "MIT" ]
null
null
null
from ....share.scraper.parse_topics import topics from ....share.scraper.url_utils import base_url from ....share.scraper.time_utils import StopWatch from ..data import dir_path as data_dir import requests import csv from time import sleep from sys import stderr __all__ = ["StrWrapIterator", "DummyPage", "GET_book_met...
32.849558
89
0.627694
0c11d987883ea5e7464ec4e188b33e7d3cf18639
4,918
py
Python
utils/data_generator_explained.py
IsmaelMekene/meteor-object-detector
0c385b04e63e73c0f9cee21fee361bdbbc5ef300
[ "MIT" ]
null
null
null
utils/data_generator_explained.py
IsmaelMekene/meteor-object-detector
0c385b04e63e73c0f9cee21fee361bdbbc5ef300
[ "MIT" ]
null
null
null
utils/data_generator_explained.py
IsmaelMekene/meteor-object-detector
0c385b04e63e73c0f9cee21fee361bdbbc5ef300
[ "MIT" ]
null
null
null
''' What is the role of the datagenerator: Generate data on the fly with the notion of batch when data can not fit in memory Be careful you must check that u are using the right package i.e : from tensorflow import keras ''' import numpy as np #import keras from tensorflow import keras #DataGenerator inherits ...
31.126582
127
0.645588
277567a71392c48b7ff36949a9e30596e8d4ccf5
3,724
py
Python
miper/tests/unit/objects/test_base.py
MountainWei/miper
4dd6df51cb0e7d041b8dc7decebbcfb47a79f210
[ "Apache-2.0" ]
1
2016-01-13T04:23:20.000Z
2016-01-13T04:23:20.000Z
miper/tests/unit/objects/test_base.py
MountainWei/miper
4dd6df51cb0e7d041b8dc7decebbcfb47a79f210
[ "Apache-2.0" ]
1
2015-12-17T09:58:04.000Z
2016-08-01T15:23:27.000Z
miper/tests/unit/objects/test_base.py
MountainWei/miper
4dd6df51cb0e7d041b8dc7decebbcfb47a79f210
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
37.24
78
0.662997
5c0a3d4f077627019c1fed4bb2c41414cf7d6d9a
497
py
Python
rbd/regression/resize.py
rpratap-bot/ceph-qe-scripts
8a7090d6707a8e7b927eabfc9c9212f343a35bc4
[ "MIT" ]
null
null
null
rbd/regression/resize.py
rpratap-bot/ceph-qe-scripts
8a7090d6707a8e7b927eabfc9c9212f343a35bc4
[ "MIT" ]
null
null
null
rbd/regression/resize.py
rpratap-bot/ceph-qe-scripts
8a7090d6707a8e7b927eabfc9c9212f343a35bc4
[ "MIT" ]
null
null
null
#!/bin/python import os import random import time size=11000 i=0 new_size=0 sh_size=0 while i < 10: x=random.randint(1,500) new_size=size + x cmd1 = 'rbd resize Tanay-RBD/testingClone_new2 --size %s' %new_size print 'cmd is %s' %cmd1 os.system(cmd1) time.sleep(5) x=random.randint(1,100) sh_size= ...
22.590909
89
0.643863
b2c991872576c4a11bc14158f2fd21cdaaf44e05
1,311
py
Python
examples/images_bytesio.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
examples/images_bytesio.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
examples/images_bytesio.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
############################################################################## # # An example of inserting images from a Python BytesIO byte stream into a # worksheet using the XlsxWriter module. # # SPDX-License-Identifier: BSD-2-Clause # Copyright 2013-2022, John McNamara, jmcnamara@cpan.org # from io import BytesIO...
28.5
78
0.705568
bb1c15ff980a477daf3abc10a319f4ce66d01d7c
3,323
py
Python
artoo/tools/stick-cal.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
68
2019-09-23T03:27:05.000Z
2022-03-12T03:00:41.000Z
artoo/tools/stick-cal.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
22
2019-10-26T20:15:56.000Z
2022-02-12T05:41:56.000Z
artoo/tools/stick-cal.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
33
2019-09-29T19:52:19.000Z
2022-03-12T03:00:43.000Z
#!/usr/bin/env python import sys, os, struct import serial, slip ARTOO_BAUD = 115200 ARTOO_RAW_IO_ID = chr(0x5) ARTOO_RAW_IO_REPORT_ID = chr(0x6) ARTOO_SYSINFO_ID = chr(0x3) ARTOO_CALIBRATE_ID = chr(0x2) ARTOO_DSM_ID = chr(0x1) ARTOO_STORED_PARAMS_ID = chr(0xb) class Axis(): def...
30.209091
222
0.5805
cd4a71856c7469c9d755fa85378052abeb1d2090
2,550
py
Python
test/test_data_processing_generalstuff.py
simpledeblendorganization/simple_deblend
0f692865e76781c1c3d3f13f6e748d11e77cc871
[ "MIT" ]
null
null
null
test/test_data_processing_generalstuff.py
simpledeblendorganization/simple_deblend
0f692865e76781c1c3d3f13f6e748d11e77cc871
[ "MIT" ]
null
null
null
test/test_data_processing_generalstuff.py
simpledeblendorganization/simple_deblend
0f692865e76781c1c3d3f13f6e748d11e77cc871
[ "MIT" ]
1
2019-02-06T16:27:29.000Z
2019-02-06T16:27:29.000Z
'''test_data_processing_generalstuff.py - Joshua Wallace - Mar 2019 This tests classes and methods in the data_processing.py file, using the Lomb-Scargle method. ''' import unittest import sys, os sys.path.insert(1,os.path.abspath('../src')) import data_processing as dproc import numpy as np class test_data_process...
32.278481
79
0.635686
8be673a7ebd87d10cb3230ba940fa0338c93a8ed
2,994
py
Python
perfharness/argparse_set_ops.py
rhelmot/perfharness
b73b6dffa8ee99f3449bef7c4044c121b7b0cc88
[ "MIT" ]
null
null
null
perfharness/argparse_set_ops.py
rhelmot/perfharness
b73b6dffa8ee99f3449bef7c4044c121b7b0cc88
[ "MIT" ]
null
null
null
perfharness/argparse_set_ops.py
rhelmot/perfharness
b73b6dffa8ee99f3449bef7c4044c121b7b0cc88
[ "MIT" ]
null
null
null
from argparse import Action, OPTIONAL, ArgumentParser class AddToSetAction(Action): def __init__(self, option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, ...
36.072289
79
0.532064
6830b9bb13eed760c9fa466eff6fbb7eb186fb92
798
py
Python
mb/mb_project/urls.py
suhailnajeeb/django-starter
91a8c486cc406009215fdbc608050c8bb15104d4
[ "MIT" ]
null
null
null
mb/mb_project/urls.py
suhailnajeeb/django-starter
91a8c486cc406009215fdbc608050c8bb15104d4
[ "MIT" ]
null
null
null
mb/mb_project/urls.py
suhailnajeeb/django-starter
91a8c486cc406009215fdbc608050c8bb15104d4
[ "MIT" ]
null
null
null
"""mb_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
34.695652
77
0.703008
b6b3e82b37116ff5316cde478fb83ba30f8494e5
5,998
py
Python
lib/trainer.py
andreYoo/VeRI_SSML_FD
df44143534b7300b03d53055810c795f9a1c4eb9
[ "MIT" ]
5
2021-03-04T03:29:36.000Z
2022-03-19T05:42:48.000Z
lib/trainer.py
andreYoo/VeRI_SSML_FD
df44143534b7300b03d53055810c795f9a1c4eb9
[ "MIT" ]
2
2021-11-26T07:31:13.000Z
2022-03-22T05:58:51.000Z
lib/trainer.py
andreYoo/VeRI_SSML_FD
df44143534b7300b03d53055810c795f9a1c4eb9
[ "MIT" ]
null
null
null
import time import numpy as np import torch from .utils.meters import AverageMeter from .utils.plot_figures import utils_for_fig3 from .utils.mlp_statistics import precision_recall from .loss import DTL from .onlinesamplemining import DPLM,KNN,SS import pdb device_0 = torch.device('cuda:0') device_1 = torch.device('cud...
40.527027
188
0.56052
ed7b8f0332e103e936cfca0a053e00f9254718a0
2,073
py
Python
examples/embed/arguments/bokeh_server.py
Dr-G/bokeh
9558841b05d3d55efa7ff1095c952eed128fd2bc
[ "BSD-3-Clause" ]
1
2020-03-21T04:11:51.000Z
2020-03-21T04:11:51.000Z
examples/embed/arguments/bokeh_server.py
BiYandong110/bokeh
1171a567e3513ea50162d48a049ee187f673b784
[ "BSD-3-Clause" ]
2
2021-05-08T11:43:21.000Z
2021-05-10T19:16:43.000Z
examples/embed/arguments/bokeh_server.py
BiYandong110/bokeh
1171a567e3513ea50162d48a049ee187f673b784
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python '''This example demonstrates embedding an autoloaded Bokeh server into a simple Flask application, and passing arguments to Bokeh. To view the example, run: python flask_server.py in this directory, and navigate to: http://localhost:5000 ''' import numpy as np from bokeh.io import c...
24.975904
73
0.677279
b55d2eaa6ab3b960b010a6081bd0addbb8c4e180
1,591
py
Python
ub/modules/sharpen.py
parv779/javes-3.0
d510717b2756a65b39ff18d9f53d4adc46d8e23f
[ "MIT" ]
15
2020-12-13T17:37:05.000Z
2021-06-23T00:00:49.000Z
ub/modules/sharpen.py
parv779/javes-3.0
d510717b2756a65b39ff18d9f53d4adc46d8e23f
[ "MIT" ]
2
2021-01-11T16:39:31.000Z
2021-01-25T22:35:28.000Z
ub/modules/sharpen.py
parv779/javes-3.0
d510717b2756a65b39ff18d9f53d4adc46d8e23f
[ "MIT" ]
78
2020-12-13T17:52:51.000Z
2022-03-24T03:43:09.000Z
import os #MADE BY SHIVAM DONT KANG from ub import CMD_HELP #MADE BY SHIVAM DONT KANG #MADE BY SHIVAM DONT KANG from telegraph import upload_file from telethon.tl.types import MessageMediaPhoto from ub.utils import admin_cmd from ub import bot from ub import bot as borg import os , shutil from wand.image import Image ...
36.159091
127
0.718416
1c4b8c3af4529dd0e58fd31dc8e7946bf8eb798f
13,536
py
Python
thumt/layers/attention.py
Demon-JieHao/Modeling-Structure-for-Transformer-Network
329831964731ccb7361b847e0ff7c2d809ab7231
[ "BSD-3-Clause" ]
null
null
null
thumt/layers/attention.py
Demon-JieHao/Modeling-Structure-for-Transformer-Network
329831964731ccb7361b847e0ff7c2d809ab7231
[ "BSD-3-Clause" ]
null
null
null
thumt/layers/attention.py
Demon-JieHao/Modeling-Structure-for-Transformer-Network
329831964731ccb7361b847e0ff7c2d809ab7231
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 # Copyright 2018 The THUMT Authors from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import tensorflow as tf from thumt.layers.nn import linear def add_timing_signal(x, min_timescale=1.0, max_timescale=1.0e4, name=None): """ ...
37.704735
79
0.599291
a4a763aedb1bdf672175f245b8fb31b12cb9020a
3,120
py
Python
utils.py
dhudsmith/SC18Dashboard
8032cc9a6f442437ef2761ef2a8b61f258036cc3
[ "Apache-2.0" ]
null
null
null
utils.py
dhudsmith/SC18Dashboard
8032cc9a6f442437ef2761ef2a8b61f258036cc3
[ "Apache-2.0" ]
null
null
null
utils.py
dhudsmith/SC18Dashboard
8032cc9a6f442437ef2761ef2a8b61f258036cc3
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import ibm_boto3 from ibm_botocore.client import Config from tempfile import NamedTemporaryFile # initialize a cloud object store def get_cloud_object_store(cos_arguments): # Open connection to cloud object storage cos = ibm_boto3.client("s3", i...
36.27907
114
0.639103
8dc19a713357555d0e0ed9e0a7cdc680cb824940
230
py
Python
integration/tests/error_predicate.py
youhavethewrong/hurl
91cc14882a5f1ef7fa86be09a9f5581cef680559
[ "Apache-2.0" ]
1,013
2020-08-27T12:38:48.000Z
2022-03-31T23:12:23.000Z
integration/tests/error_predicate.py
youhavethewrong/hurl
91cc14882a5f1ef7fa86be09a9f5581cef680559
[ "Apache-2.0" ]
217
2020-08-31T11:18:10.000Z
2022-03-30T17:50:30.000Z
integration/tests/error_predicate.py
youhavethewrong/hurl
91cc14882a5f1ef7fa86be09a9f5581cef680559
[ "Apache-2.0" ]
54
2020-09-02T09:41:06.000Z
2022-03-19T15:33:05.000Z
from tests import app @app.route("/predicate/error/type") def predicate_error_type(): return '''{ "status": true, "message": "0", "count": 1, "empty": "", "number": 1.0, "list": [1,2,3] }'''
19.166667
35
0.508696
789f9df4a677c970d80cfea24bc09ebc0b9b2a05
2,400
py
Python
boiler.py
c-x-berger/lopez
433df1d8b05b6a6b68ffeb30f391ee98dc0a71ab
[ "MIT" ]
1
2019-09-10T03:33:35.000Z
2019-09-10T03:33:35.000Z
boiler.py
c-x-berger/lopez
433df1d8b05b6a6b68ffeb30f391ee98dc0a71ab
[ "MIT" ]
8
2018-07-10T00:33:50.000Z
2018-12-06T15:46:17.000Z
boiler.py
BHSSFRC/lopez
433df1d8b05b6a6b68ffeb30f391ee98dc0a71ab
[ "MIT" ]
5
2018-05-26T02:19:04.000Z
2018-10-04T04:02:59.000Z
""" Util functions. Cuts down on boilerplate code, ideally. """ import json import random from typing import Dict import discord from discord.ext import commands import footers def embed_template( title: str = "Someone messed up!", color: discord.Color = discord.Color.gold ) -> discord.Embed: em = discord....
26.373626
80
0.636667
15baca740d995850ef96b94a418073e3de6de139
6,853
py
Python
Maquina Dispensadora.py
Kings42/HelloWorld
46ade61a859fcd3a7caf246759f176e81abfa24c
[ "Apache-2.0" ]
null
null
null
Maquina Dispensadora.py
Kings42/HelloWorld
46ade61a859fcd3a7caf246759f176e81abfa24c
[ "Apache-2.0" ]
null
null
null
Maquina Dispensadora.py
Kings42/HelloWorld
46ade61a859fcd3a7caf246759f176e81abfa24c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- print "Maquina dispensadora" var = int(raw_input("Ingrese el dinero: ")) if var<200: print "Ingrese una cantidad entre 200 y 2500" print var, "pesos han sido devueltos" print "Intentelo de nuevo" import sys sys.exit("Intentelo de nuevo") if var>2500: print "Ing...
39.843023
84
0.580476
68051169b974d7bc748238566be1c31734eb8ed7
2,653
py
Python
youtube_dl/extractor/sunporno.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
66,635
2019-03-10T21:34:18.000Z
2022-03-31T23:50:31.000Z
youtube_dl/extractor/sunporno.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
10,936
2019-03-10T21:35:47.000Z
2022-03-31T23:46:52.000Z
youtube_dl/extractor/sunporno.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
15,194
2019-03-10T21:09:27.000Z
2022-03-31T22:13:49.000Z
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( parse_duration, int_or_none, qualities, determine_ext, ) class SunPornoIE(InfoExtractor): _VALID_URL = r'https?://(?:(?:www\.)?sunporno\.com/videos|embeds\.sunporno\.com/embed)/(?P<id>\d+)' ...
33.1625
103
0.539766
15bc89d62305f29130efd0cacc7d4df3b615d089
13,581
py
Python
vb_suite/timeseries.py
tacaswell/pandas
81c57e20da278494dfebc2f1043f5ff361a234f3
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
2
2017-05-07T02:08:12.000Z
2017-12-14T01:47:47.000Z
vb_suite/timeseries.py
tacaswell/pandas
81c57e20da278494dfebc2f1043f5ff361a234f3
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
1
2016-09-30T11:15:32.000Z
2016-09-30T11:15:32.000Z
vb_suite/timeseries.py
tacaswell/pandas
81c57e20da278494dfebc2f1043f5ff361a234f3
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
3
2019-12-24T18:46:58.000Z
2021-09-04T11:57:13.000Z
from vbench.api import Benchmark from datetime import datetime from pandas import * N = 100000 try: rng = date_range(start='1/1/2000', periods=N, freq='min') except NameError: rng = DatetimeIndex(start='1/1/2000', periods=N, freq='T') def date_range(start=None, end=None, periods=None, freq=None): r...
30.450673
102
0.63066