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
32b189cd31e4eb0c76098f5da16fb500940cacc2
1,171
py
Python
3rdParty/numpy/numpy-1.12.0/build.py
rtobar/askapsoft
6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
3rdParty/numpy/numpy-1.12.0/build.py
rtobar/askapsoft
6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
3rdParty/numpy/numpy-1.12.0/build.py
rtobar/askapsoft
6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
import os.path import glob import shutil from askapdev.rbuild.builders import Setuptools as Builder import askapdev.rbuild.utils as utils # hack as install_header setup target doesn't seem to work # numpy-1.6.1/build/src.linux-x86_64-2.6/numpy/core/include/ def callback(): bdistdir = glob.glob('%s/build/src*' % bu...
33.457143
70
0.698548
bc936a3fe247495833866d9596d4c30ebdac1166
9,544
py
Python
experiments/1/tutorial/makeStimuli_tutorial.py
joeyginorio/compositional_desires
8f3bb17d99712d1de38299462801ff18c4b47bd5
[ "MIT" ]
null
null
null
experiments/1/tutorial/makeStimuli_tutorial.py
joeyginorio/compositional_desires
8f3bb17d99712d1de38299462801ff18c4b47bd5
[ "MIT" ]
null
null
null
experiments/1/tutorial/makeStimuli_tutorial.py
joeyginorio/compositional_desires
8f3bb17d99712d1de38299462801ff18c4b47bd5
[ "MIT" ]
null
null
null
# Joey Velez-Ginorio # Script to generate stimuli / paths # ----------------------------------------- from Tkinter import * import turtle import itertools import numpy as np import math class makeStimuli(): """ Generates all the images for a stimuli set. """ def __init__(self): objectList = ['object1small....
27.425287
101
0.605092
a51311d0b3d0f14fa6f458e9f1fa7456bb706aa5
2,827
py
Python
test/regexp/fregexp6.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
1,482
2015-10-16T21:59:32.000Z
2022-03-30T11:44:40.000Z
test/regexp/fregexp6.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
226
2015-10-15T15:53:44.000Z
2022-03-25T03:08:27.000Z
test/regexp/fregexp6.py
kylebarron/MagicPython
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
[ "MIT" ]
129
2015-10-20T02:41:49.000Z
2022-03-22T01:44:36.000Z
a = rf'fo{{{2}}}' a = rf'fo{{{bar}}}' a = rf'fo{{2}}' a : source.python : source.python = : keyword.operator.assignment.python, source.python : source.python rf : source.python, storage.type.string.python, string.interpolated.python, string.regexp.quot...
70.675
137
0.696498
53894526f46bb98c385116c12ae5e8248774c3a0
4,826
py
Python
melodic/lib/python2.7/dist-packages/control_msgs/msg/_GripperCommandResult.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
null
null
null
melodic/lib/python2.7/dist-packages/control_msgs/msg/_GripperCommandResult.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
1
2021-07-08T10:26:06.000Z
2021-07-08T10:31:11.000Z
melodic/lib/python2.7/dist-packages/control_msgs/msg/_GripperCommandResult.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from control_msgs/GripperCommandResult.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class GripperCommandResult(genpy.Message): _md5sum = "e4cbff56d3562...
36.839695
145
0.676129
5833aab69dd20619ea1102e42b5a842f3ffc0170
3,627
py
Python
sdk/python/pulumi_azure_nextgen/machinelearningservices/v20190501/list_machine_learning_compute_nodes.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/machinelearningservices/v20190501/list_machine_learning_compute_nodes.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/machinelearningservices/v20190501/list_machine_learning_compute_nodes.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
37.391753
188
0.680176
b9e93a575b6a94b0ab2d64a30f98be70d42b4662
2,285
py
Python
tests/benchmarks/pybench/Instances.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
null
null
null
tests/benchmarks/pybench/Instances.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
null
null
null
tests/benchmarks/pybench/Instances.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
1
2018-12-16T23:51:18.000Z
2018-12-16T23:51:18.000Z
# Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com # # Python test originally created or extracted from other peoples work. The # parts from me are licensed as below. It is at least Free Software where # it's copied from other people. In these cases, that will normally be # indicated. # # L...
26.569767
78
0.477024
e7711cc29b671220b70bc1fae69023e07c2c53d1
1,171
py
Python
Freeform-Projects/Rock-Paper-Scissors.py
BabsiFTW/python-projects
6a40939c5b1c75202acaa6a832adc86531c1de47
[ "MIT" ]
null
null
null
Freeform-Projects/Rock-Paper-Scissors.py
BabsiFTW/python-projects
6a40939c5b1c75202acaa6a832adc86531c1de47
[ "MIT" ]
null
null
null
Freeform-Projects/Rock-Paper-Scissors.py
BabsiFTW/python-projects
6a40939c5b1c75202acaa6a832adc86531c1de47
[ "MIT" ]
null
null
null
"""1. Prompt the user to select either Rock, Paper, Scissors 2. Instruct the computer to randomly select either Rock, Paper or Scissors 3. Compare the user's choice and the computer's choice 4. Determine a winner 5. Inform the user who the winner is""" from random import randint options = ["Rock", "Paper", "Scissors"] ...
33.457143
74
0.702818
626f43ce78d885494ff5e98ea01c3123a166127f
20,844
py
Python
hakubeinstaller/cluster.py
elastisys/hakube-installer
b41dc7676a1b1018025a165c734f7a2c1da3d0ee
[ "Apache-2.0" ]
24
2018-01-19T20:22:43.000Z
2021-01-24T08:55:15.000Z
hakubeinstaller/cluster.py
elastisys/hakube-installer
b41dc7676a1b1018025a165c734f7a2c1da3d0ee
[ "Apache-2.0" ]
4
2018-02-08T14:17:46.000Z
2018-10-23T12:53:18.000Z
hakubeinstaller/cluster.py
elastisys/hakube-installer
b41dc7676a1b1018025a165c734f7a2c1da3d0ee
[ "Apache-2.0" ]
5
2018-02-07T23:09:32.000Z
2019-02-04T23:21:55.000Z
import concurrent.futures from concurrent.futures import ThreadPoolExecutor import copy import json import logging import os import subprocess from jinja2 import Environment, FileSystemLoader, Template from . import fail from . import ssh from .token import ClusterToken LOG = logging.getLogger(__name__) MODULE_DIR ...
43.606695
179
0.62181
4a39f08438ea5034ea79a3194d2b3054cd9be3a2
16,970
py
Python
python/ccxt/zaif.py
caoshitong369/ccxt
e0f183448bbf8f95e84c71e5f185404dabab3955
[ "MIT" ]
3
2020-06-02T10:48:48.000Z
2022-03-12T20:46:01.000Z
python/ccxt/zaif.py
caoshitong369/ccxt
e0f183448bbf8f95e84c71e5f185404dabab3955
[ "MIT" ]
3
2020-09-08T00:13:39.000Z
2021-05-08T20:05:48.000Z
python/ccxt/zaif.py
caoshitong369/ccxt
e0f183448bbf8f95e84c71e5f185404dabab3955
[ "MIT" ]
1
2020-03-16T03:22:17.000Z
2020-03-16T03:22:17.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import ...
36.891304
126
0.469593
c02fab189668277ece7577fc359d0ef040f5a343
1,297
py
Python
tests/test_modify_schedule.py
tkahng/genet
d5c29ed9e44408b60f55d8de889d7430debc9f04
[ "MIT" ]
1
2021-03-09T20:21:26.000Z
2021-03-09T20:21:26.000Z
tests/test_modify_schedule.py
tkahng/genet
d5c29ed9e44408b60f55d8de889d7430debc9f04
[ "MIT" ]
null
null
null
tests/test_modify_schedule.py
tkahng/genet
d5c29ed9e44408b60f55d8de889d7430debc9f04
[ "MIT" ]
null
null
null
from pyproj import Transformer from genet import Stop, Route from genet.modify import schedule from tests.fixtures import assert_semantically_equal def test_reproj_stops(): stops = {'26997928P': {'routes': ['10314_0'], 'id': '26997928P', 'x': 528464.1342843144, 'y': 182179.7435136598, '...
64.85
117
0.553585
e4c2b1878d2f7ac8cf80c787a68247bcf153ed73
670
py
Python
tools/img_to_blank.py
wanboyang/anomaly_feature
9fc5b9a82ec5555bf1d8aad13723ee4e3d71cdce
[ "MIT" ]
4
2021-01-16T14:24:04.000Z
2022-01-11T07:07:21.000Z
tools/img_to_blank.py
wanboyang/anomaly_feature
9fc5b9a82ec5555bf1d8aad13723ee4e3d71cdce
[ "MIT" ]
1
2021-03-09T03:12:44.000Z
2021-03-09T03:12:44.000Z
tools/img_to_blank.py
wanboyang/anomaly_feature
9fc5b9a82ec5555bf1d8aad13723ee4e3d71cdce
[ "MIT" ]
null
null
null
import zipfile import os import glob from multiprocessing import Pool from tqdm import tqdm def blank(dir): ''' 解压单个文件到目标文件夹。 ''' zip_command = 'rsync --delete-before -d /tmp/blank/ {}/'.format(dir) print(zip_command) with open('img_remove.sh',mode='a+') as f: f.write(zip_command+'\n...
23.928571
73
0.61194
fc0f15c6dbbac68a02fed1fc5c1889128ccc4450
5,327
py
Python
nitro/resource/config/authentication/authenticationlocalpolicy_binding.py
HanseMerkur/nitro-python
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
[ "Apache-2.0" ]
2
2020-08-24T18:04:22.000Z
2020-08-24T18:04:47.000Z
nitro/resource/config/authentication/authenticationlocalpolicy_binding.py
HanseMerkur/nitro-python
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
[ "Apache-2.0" ]
null
null
null
nitro/resource/config/authentication/authenticationlocalpolicy_binding.py
HanseMerkur/nitro-python
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2008-2015 Citrix Systems, 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 l...
35.513333
144
0.638821
24203bc115ca1aa96d7d2ddbece7c9474c023224
642
py
Python
sanic_jwt/__init__.py
rahulraina7/sanic-jwt
eb31e9771dca6680c140630f1fe591617fbcf7f7
[ "MIT" ]
null
null
null
sanic_jwt/__init__.py
rahulraina7/sanic-jwt
eb31e9771dca6680c140630f1fe591617fbcf7f7
[ "MIT" ]
null
null
null
sanic_jwt/__init__.py
rahulraina7/sanic-jwt
eb31e9771dca6680c140630f1fe591617fbcf7f7
[ "MIT" ]
null
null
null
__version__ = "1.5.0" __author__ = "Adam Hopkins" __credits__ = "Richard Kuesters" import logging from .authentication import Authentication from .claim import Claim from .configuration import Configuration from .decorators import inject_user, protected, scoped from .endpoints import BaseEndpoint from .initialization...
21.4
61
0.739875
12be59e1feecb9cf3f5850c6db5a566ddade2e05
6,752
py
Python
src/transformers/tokenization_pegasus.py
mohammadreza-Banaei73/transformers
8be9cb0aef1e24ec1886519cccfdac6ea14577f1
[ "Apache-2.0" ]
1
2022-03-25T00:00:49.000Z
2022-03-25T00:00:49.000Z
src/transformers/tokenization_pegasus.py
mohammadreza-Banaei73/transformers
8be9cb0aef1e24ec1886519cccfdac6ea14577f1
[ "Apache-2.0" ]
null
null
null
src/transformers/tokenization_pegasus.py
mohammadreza-Banaei73/transformers
8be9cb0aef1e24ec1886519cccfdac6ea14577f1
[ "Apache-2.0" ]
2
2021-03-27T16:46:26.000Z
2021-12-24T00:33:28.000Z
# coding=utf-8 # Copyright 2020 Google and The HuggingFace Inc. team. # # 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...
42.2
117
0.674763
91ba4e4c3ace7a98e91f27986275b638d0b57b83
7,454
py
Python
code/bak/gen_feature_dict.py
li-phone/Nopimal
62d03f1ac2247ab984399a485dc699fb0debd0f5
[ "MIT" ]
null
null
null
code/bak/gen_feature_dict.py
li-phone/Nopimal
62d03f1ac2247ab984399a485dc699fb0debd0f5
[ "MIT" ]
null
null
null
code/bak/gen_feature_dict.py
li-phone/Nopimal
62d03f1ac2247ab984399a485dc699fb0debd0f5
[ "MIT" ]
null
null
null
import seaborn as sns import matplotlib.pyplot as plt import pandas as pd from tqdm import tqdm import os import numpy as np import scipy.stats as sci import datetime import math import json from numba import jit import sys import time import glob from operator_module.py_operator import * from operator_module.utils imp...
36.90099
124
0.563322
4d3594d22ca7e39f74dc9bb1a31962b1627dc7cd
9,740
py
Python
ursina/window.py
dipu007/ursina
62c5c897ecae7aa75642629c392ee46f083d00b5
[ "MIT" ]
null
null
null
ursina/window.py
dipu007/ursina
62c5c897ecae7aa75642629c392ee46f083d00b5
[ "MIT" ]
null
null
null
ursina/window.py
dipu007/ursina
62c5c897ecae7aa75642629c392ee46f083d00b5
[ "MIT" ]
1
2020-10-03T03:44:16.000Z
2020-10-03T03:44:16.000Z
import sys import os from panda3d.core import WindowProperties from panda3d.core import loadPrcFileData from panda3d.core import Vec2 from screeninfo import get_monitors from ursina.entity import Entity from ursina import color from ursina import application from ursina import scene # for toggling collider visibilit...
35.547445
203
0.592916
d68e15837274023e82f46c49f2db1b5872b9148c
3,426
py
Python
testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestHardlink.py
stpierre/bcfg2
363ad4fd2b36febbbe6b766dac9e76c572048e08
[ "mpich2" ]
null
null
null
testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestHardlink.py
stpierre/bcfg2
363ad4fd2b36febbbe6b766dac9e76c572048e08
[ "mpich2" ]
null
null
null
testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestHardlink.py
stpierre/bcfg2
363ad4fd2b36febbbe6b766dac9e76c572048e08
[ "mpich2" ]
null
null
null
import os import sys import copy import lxml.etree from mock import Mock, MagicMock, patch from Bcfg2.Client.Tools.POSIX.Hardlink import * # add all parent testsuite directories to sys.path to allow (most) # relative imports in python 2.4 path = os.path.dirname(__file__) while path != "/": if os.path.basename(path...
39.837209
78
0.640397
52dac50de103470dd531cd5f902546a092489ccc
2,921
py
Python
dev/data/CC12M_downloader.py
jonathanfrawley/dalle-mini
f3670e020a916c0d592a7e18b5d6ec31bc10a244
[ "Apache-2.0" ]
21
2021-07-07T18:37:40.000Z
2021-07-22T16:10:47.000Z
dev/data/CC12M_downloader.py
jonathanfrawley/dalle-mini
f3670e020a916c0d592a7e18b5d6ec31bc10a244
[ "Apache-2.0" ]
null
null
null
dev/data/CC12M_downloader.py
jonathanfrawley/dalle-mini
f3670e020a916c0d592a7e18b5d6ec31bc10a244
[ "Apache-2.0" ]
null
null
null
# Luke Melas-Kyriazi's code. (https://twitter.com/lukemelas) #%% import sys import os from datetime import datetime import pandas as pd import contexttimer from urllib.request import urlopen import requests from PIL import Image import torch from torchvision.transforms import functional as TF from multiprocessing imp...
31.75
103
0.679904
b226cb0e5aa0af36c6715bbede34e5a0abb5a81b
26
py
Python
airscraper/__init__.py
banditelol/scraping-airtable
06c5cddce53c336138a3b768cf4f76f892765b85
[ "MIT" ]
13
2020-11-11T05:26:35.000Z
2022-01-15T21:08:40.000Z
airscraper/__init__.py
banditelol/scraping-airtable
06c5cddce53c336138a3b768cf4f76f892765b85
[ "MIT" ]
1
2021-01-09T08:09:02.000Z
2021-01-09T08:11:34.000Z
airscraper/__init__.py
banditelol/scraping-airtable
06c5cddce53c336138a3b768cf4f76f892765b85
[ "MIT" ]
3
2021-01-22T15:36:11.000Z
2021-03-13T14:15:45.000Z
from .airscraper import *
13
25
0.769231
c40a3fde995bcb66d74c89cb01d3be224e5379ed
4,213
py
Python
bot.py
tonnkie/USC-Second-hand-Group
c2a261ac9d5d317021168ed5db601540a92d5677
[ "Apache-2.0" ]
1
2017-10-15T16:39:11.000Z
2017-10-15T16:39:11.000Z
bot.py
Tonnkie/USC-Second-hand-Group
c2a261ac9d5d317021168ed5db601540a92d5677
[ "Apache-2.0" ]
null
null
null
bot.py
Tonnkie/USC-Second-hand-Group
c2a261ac9d5d317021168ed5db601540a92d5677
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from wxbot import * import ConfigParser import json class TulingWXBot(WXBot): def __init__(self): WXBot.__init__(self) self.tuling_key = "" self.robot_switch = True try: cf = ConfigParser.ConfigParser() cf.read('conf....
38.3
118
0.48564
ecdfa99467f70067381b3aa0cadf15ac7eb4002f
1,496
py
Python
faster_rcnn/plot_history.py
danielgolf/3DprintedDetection
56b5f7fb0cd51c8f10cdfd50a60fccd2844ff8e2
[ "MIT" ]
2
2021-11-02T14:23:15.000Z
2021-11-02T14:23:17.000Z
faster_rcnn/plot_history.py
danielgolf/3DprintedDetection
56b5f7fb0cd51c8f10cdfd50a60fccd2844ff8e2
[ "MIT" ]
8
2020-11-13T18:27:20.000Z
2022-03-12T00:02:39.000Z
faster_rcnn/plot_history.py
danielgolf/3DprintedDetection
56b5f7fb0cd51c8f10cdfd50a60fccd2844ff8e2
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt from config import Config conf = Config() record_df = pd.read_csv(conf.history_path) r_epochs = len(record_df) plt.style.use('ggplot') plt.figure(figsize=(10, 10)) plt.subplot(2, 2, 1) plt.plot(np.arange(r_epochs, dtype='int'), record_...
24.129032
58
0.675134
2ef1d67f09d0241f39df9524006a41e45e7d8af7
45,616
py
Python
tensorflow/python/ops/ragged/ragged_array_ops.py
zhupengyang/tensorflow
584cd92f6a2ff3ba63e653e2e3d0c6f78e3d15eb
[ "Apache-2.0" ]
2
2022-01-12T03:17:12.000Z
2022-01-22T03:00:26.000Z
tensorflow/python/ops/ragged/ragged_array_ops.py
zhupengyang/tensorflow
584cd92f6a2ff3ba63e653e2e3d0c6f78e3d15eb
[ "Apache-2.0" ]
19
2021-12-28T12:44:55.000Z
2022-01-13T08:11:28.000Z
tensorflow/python/ops/ragged/ragged_array_ops.py
zhupengyang/tensorflow
584cd92f6a2ff3ba63e653e2e3d0c6f78e3d15eb
[ "Apache-2.0" ]
1
2022-01-26T18:52:28.000Z
2022-01-26T18:52:28.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.619768
109
0.647536
dd549a08ed3dc1cf549288793b1f25030f84ad3f
374
py
Python
CTFd/utils/webhooks/__init__.py
reteps/CTFd
eb3b86dcaa70ef68f20d6f08dc5e32f880984721
[ "Apache-2.0" ]
1
2020-10-22T08:07:12.000Z
2020-10-22T08:07:12.000Z
CTFd/utils/webhooks/__init__.py
reteps/CTFd
eb3b86dcaa70ef68f20d6f08dc5e32f880984721
[ "Apache-2.0" ]
1
2021-11-14T19:26:22.000Z
2021-11-15T00:59:01.000Z
CTFd/utils/webhooks/__init__.py
reteps/CTFd
eb3b86dcaa70ef68f20d6f08dc5e32f880984721
[ "Apache-2.0" ]
4
2018-11-07T22:22:32.000Z
2021-11-09T06:59:19.000Z
from flask import current_app as app import requests def send_discord_webhook(embeds): webhook_url = "https://discordapp.com/api/webhooks/509273046582951958/BXi4pa_nXcbpGTmISJH-otPW0_MRkFcgXtxD7gWYSAcCi22QDZV-Bv62uUN305OocINl" if webhook_url is None: return requests.post(webhook_url, json={ ...
28.769231
143
0.73262
b3a0f5438989f504a5ad53520351a6f880c7d545
199
py
Python
Introducao/Projeto00/jogos.py
GustavoHenrique-png/PythonStudies
d6c6338cbc47b4aa155b6cd901a3a63dc9176262
[ "MIT" ]
1
2022-01-25T05:11:36.000Z
2022-01-25T05:11:36.000Z
Introducao/Projeto00/jogos.py
GustavoHenrique-png/PythonStudies
d6c6338cbc47b4aa155b6cd901a3a63dc9176262
[ "MIT" ]
null
null
null
Introducao/Projeto00/jogos.py
GustavoHenrique-png/PythonStudies
d6c6338cbc47b4aa155b6cd901a3a63dc9176262
[ "MIT" ]
null
null
null
import advinha print('Escolha o jogo desejado!') print('(1)Forca (2)Advinha') jogo = int(input('Escolha um jogo:')) if jogo == 1: print('Joog forca') elif jogo == 2: advinha.verificaNum()
16.583333
37
0.653266
ff7ad5c9be9ed45e312e7440608d8c28ee13fa2d
465
py
Python
plotly/validators/parcoords/_visible.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/parcoords/_visible.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/parcoords/_visible.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name='visible', parent_name='parcoords', **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=pa...
27.352941
73
0.619355
cf4fe3ccb6364474c1cda38a58876b1df9b3660b
12,944
py
Python
openpype/modules/ftrack/python2_vendor/ftrack-python-api/test/unit/conftest.py
jonclothcat/OpenPype
d1208cbebc0a7f378de0062ccd653295c6399195
[ "MIT" ]
1
2022-02-08T15:40:41.000Z
2022-02-08T15:40:41.000Z
openpype/modules/ftrack/python2_vendor/ftrack-python-api/test/unit/conftest.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
2
2022-03-18T01:46:03.000Z
2022-03-18T01:46:16.000Z
openpype/modules/ftrack/python2_vendor/ftrack-python-api/test/unit/conftest.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
# :coding: utf-8 # :copyright: Copyright (c) 2015 ftrack import uuid import tempfile import shutil import os import pytest import clique import ftrack_api import ftrack_api.symbol def pytest_generate_tests(metafunc): '''Parametrize tests dynamically. If a test function has a corresponding parametrize func...
23.97037
79
0.590467
326ade6f4b50f141a0171d6dd2feb4895000f484
3,290
py
Python
CenterNet/src/lib/datasets/dataset/dancetrack_kitti.py
noahcao/DanceTrack
eebb8f5933ea65e14e807a0d70e090c112523f46
[ "MIT" ]
137
2021-11-30T02:11:48.000Z
2022-03-31T15:27:05.000Z
CenterNet/src/lib/datasets/dataset/dancetrack_kitti.py
noahcao/DanceTrack
eebb8f5933ea65e14e807a0d70e090c112523f46
[ "MIT" ]
5
2021-12-09T15:51:42.000Z
2022-03-30T09:22:49.000Z
CenterNet/src/lib/datasets/dataset/dancetrack_kitti.py
noahcao/DanceTrack
eebb8f5933ea65e14e807a0d70e090c112523f46
[ "MIT" ]
11
2021-11-30T03:32:20.000Z
2022-03-09T02:36:14.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch.utils.data as data import pycocotools.coco as coco import numpy as np import torch import json import cv2 import os import math import torch.utils.data as data class DanceTrackKITTI(data.Dataset...
36.966292
86
0.5769
87302e089ba2a48764c4874a37a1babc9f5f2b4f
1,246
py
Python
DKTools/RevitDKTools/PythonScripts/Memo/Memo2/Memo2_Subtract.py
krzemdamian/DKTools
3cc1b570549c3b7462e3a5791e99488700861001
[ "Apache-2.0" ]
3
2020-01-08T11:18:51.000Z
2020-03-04T10:16:56.000Z
DKTools/RevitDKTools/PythonScripts/Memo/Memo2/Memo2_Subtract.py
krzemdamian/DKTools
3cc1b570549c3b7462e3a5791e99488700861001
[ "Apache-2.0" ]
3
2018-11-17T11:43:26.000Z
2021-06-29T19:20:03.000Z
DKTools/RevitDKTools/PythonScripts/Memo/Memo2/Memo2_Subtract.py
krzemdamian/DKTools
3cc1b570549c3b7462e3a5791e99488700861001
[ "Apache-2.0" ]
null
null
null
#Created by Damian Krzemiński, contact: krzemodam2@gmail.com _debug_ = False import sys sys.path.append(_app_path_ + "\\PythonScripts") from MainForm import MainForm import clr clr.AddReference("System.Collections") import System.Collections.Generic from System.Collections.Generic import List, Dictionary from Autod...
22.654545
61
0.736758
1652f745da19ab4309cdebabc152ff00393214a3
12,234
py
Python
cli/cli.py
evmxattr/andy
f349e3840dca290ce24e61afbc5898c7fa765210
[ "MIT" ]
1
2018-02-12T17:30:58.000Z
2018-02-12T17:30:58.000Z
cli/cli.py
evmxattr/andy
f349e3840dca290ce24e61afbc5898c7fa765210
[ "MIT" ]
null
null
null
cli/cli.py
evmxattr/andy
f349e3840dca290ce24e61afbc5898c7fa765210
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import shutil import time import tempfile import shutil import click import click_completion import crayons import pexpect from blindspin import spinner from . import avd from . import root as rooter from .adb import commands from .__version__ import __version__ proxies...
35.155172
97
0.659801
8469d16b8f19c2433dea73cdab1b3d703d968c47
315
py
Python
Module/Lista 1/Thiago/03.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
7
2021-05-25T16:49:20.000Z
2022-02-17T11:57:32.000Z
Module/Lista 1/Thiago/03.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
null
null
null
Module/Lista 1/Thiago/03.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
8
2021-05-25T16:49:39.000Z
2021-09-30T18:02:07.000Z
# Leia dois valores inteiros a e b informados pelo usuário e determine o # valor de a / b. O cálculo de a / b deve ser realizado por uma função # que recebe estes dois valores inteiros como parâmetro. def div(a, b): return a / b n1 = int(input()) n2 = int(input()) div = div(n1, n2) print(div)
22.5
73
0.657143
84098147aa1df374189e12c3894beb0a487660b7
10,132
py
Python
neuro-sdk/tests/test_buckets.py
neuro-inc/neuro-cli
72bd2a825cc319bbc79c6df16f33380796fad4f5
[ "Apache-2.0" ]
5
2019-09-24T15:37:47.000Z
2020-08-04T09:25:29.000Z
neuro-sdk/tests/test_buckets.py
neuromation/platform-client-python
72bd2a825cc319bbc79c6df16f33380796fad4f5
[ "Apache-2.0" ]
748
2019-08-05T14:57:11.000Z
2020-09-28T09:54:41.000Z
neuro-sdk/tests/test_buckets.py
neuro-inc/neuro-cli
72bd2a825cc319bbc79c6df16f33380796fad4f5
[ "Apache-2.0" ]
3
2019-10-07T19:25:22.000Z
2020-06-29T01:41:26.000Z
from datetime import datetime, timedelta from typing import Callable from aiohttp import web from neuro_sdk import Bucket, Client, Cluster from tests import _TestServerFactory _MakeClient = Callable[..., Client] async def test_list( aiohttp_server: _TestServerFactory, make_client: _MakeClient, cluster...
28.866097
88
0.528622
13c3e5a521271a1e59941f492dede87f8daf655f
1,885
py
Python
art/art_T1482-1.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
null
null
null
art/art_T1482-1.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
null
null
null
art/art_T1482-1.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
1
2022-03-31T11:07:56.000Z
2022-03-31T11:07:56.000Z
from blackbot.core.utils import get_path_in_package from blackbot.core.wss.atomic import Atomic from terminaltables import SingleTable import os import json class Atomic(Atomic): def __init__(self): self.name = 'Discovery/T1482-1' self.controller_type = '' self.external_id = 'T1482' ...
31.949153
94
0.552785
6187d9a9a0781a797435e7bda7d4fc1b7fc23873
1,407
py
Python
plugins/hurricane_electric.py
mmannerm/ddupdate
4822689898def7200a90ca5c4a98dcb8f316c078
[ "MIT" ]
34
2018-02-08T16:25:49.000Z
2022-03-17T00:38:54.000Z
plugins/hurricane_electric.py
mmannerm/ddupdate
4822689898def7200a90ca5c4a98dcb8f316c078
[ "MIT" ]
56
2017-12-30T10:05:17.000Z
2022-03-30T15:53:38.000Z
plugins/hurricane_electric.py
mmannerm/ddupdate
4822689898def7200a90ca5c4a98dcb8f316c078
[ "MIT" ]
25
2019-01-09T01:39:14.000Z
2022-03-29T21:45:59.000Z
""" ddupdate plugin updating data on Hurricane Electric a k a he.com. See: ddupdate(8) See: https://dns.he.net/docs.html """ from ddupdate.ddplugin import ServicePlugin, get_netrc_auth, get_response class FreednsIoPlugin(ServicePlugin): """ Updates DNS data for host on Hurricane Electric's site he.com. ...
30.586957
73
0.664534
1b218cac60718edb35dda5ca144b2137e3ba03ef
7,435
py
Python
landlab/utils/matrix.py
amanaster2/landlab
ea17f8314eb12e3fc76df66c9b6ff32078caa75c
[ "MIT" ]
4
2019-04-05T16:41:40.000Z
2021-06-11T20:33:14.000Z
landlab/utils/matrix.py
amanaster2/landlab
ea17f8314eb12e3fc76df66c9b6ff32078caa75c
[ "MIT" ]
7
2020-04-03T21:40:07.000Z
2020-12-02T22:57:12.000Z
landlab/utils/matrix.py
amanaster2/landlab
ea17f8314eb12e3fc76df66c9b6ff32078caa75c
[ "MIT" ]
4
2018-05-21T17:40:58.000Z
2020-08-21T05:44:41.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Functions to set up a finite-volume solution matrix for a landlab grid.""" import numpy as np from scipy.sparse import csc_matrix from ._matrix import ( fill_right_hand_side, get_matrix_diagonal_elements, get_matrix_diagonal_elements_with_coef, ) def get...
32.467249
95
0.635777
d5773b4431b59499ffcb2df7b0b0cf9016830d70
1,830
py
Python
setup.py
lorentzenchr/formulaic
678c91640475c7da4d45f9cde4dac2896e8264dd
[ "MIT" ]
95
2020-07-06T17:39:03.000Z
2022-03-28T13:50:01.000Z
setup.py
lorentzenchr/formulaic
678c91640475c7da4d45f9cde4dac2896e8264dd
[ "MIT" ]
60
2020-07-06T17:38:51.000Z
2022-03-26T21:40:41.000Z
setup.py
lorentzenchr/formulaic
678c91640475c7da4d45f9cde4dac2896e8264dd
[ "MIT" ]
8
2020-07-18T23:54:46.000Z
2022-01-19T20:08:44.000Z
from os import path from setuptools import find_packages, setup version_info = {} with open("formulaic/_version.py") as version_file: exec(version_file.read(), version_info) test_deps = [ "black", "flake8", "pytest", "pytest-cov", ] PWD = path.abspath(path.dirname(__file__)) with open(path.join(P...
30
70
0.622951
a68a3131d35d2870c98a02aa12fab9e40b06b2a3
11,802
py
Python
labeller/app/augment_helper.py
swcho84/smart-labeller
5bab230671213bf610ae5d3700ec4e905b4a9ae3
[ "MIT" ]
6
2019-10-18T09:03:46.000Z
2021-03-10T09:19:54.000Z
labeller/app/augment_helper.py
swcho84/smart-labeller
5bab230671213bf610ae5d3700ec4e905b4a9ae3
[ "MIT" ]
2
2019-10-18T14:26:06.000Z
2020-12-16T17:57:25.000Z
labeller/app/augment_helper.py
swcho84/smart-labeller
5bab230671213bf610ae5d3700ec4e905b4a9ae3
[ "MIT" ]
2
2020-05-20T19:45:25.000Z
2021-08-06T04:30:34.000Z
import json import os import random import shutil import tkinter as tk from datetime import datetime from tkinter import filedialog, ttk import numpy as np from skimage.io import imsave from skimage.transform import resize from .partially_labelled_dataset import ( PartiallyLabelledDataset, save_annotations, ...
36.88125
131
0.588036
f615272f43adc8d46a66a46324930a63e01ec845
274
py
Python
unsorted/pythonsnippets_9Mb7p_.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_9Mb7p_.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_9Mb7p_.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
import itertools import json nums = [] with file('num_beings') as f: for line in f: nums.append(json.loads(line)) with file('test.csv', 'w') as f: for list_ in zip(*list(itertools.izip_longest(*nums, fillvalue=0))): print >>f, ','.join(str(x) for x in list_)
21.076923
70
0.653285
c1c9252c33f57a99684af2cef33cd3c0b182b208
199
py
Python
adafruit/em2101/examples/temp.py
andrejacobs/electronic-modules
037c9eaa1c45b39fd512467e7626b18671501c41
[ "MIT" ]
null
null
null
adafruit/em2101/examples/temp.py
andrejacobs/electronic-modules
037c9eaa1c45b39fd512467e7626b18671501c41
[ "MIT" ]
null
null
null
adafruit/em2101/examples/temp.py
andrejacobs/electronic-modules
037c9eaa1c45b39fd512467e7626b18671501c41
[ "MIT" ]
null
null
null
import time import board from adafruit_emc2101 import EMC2101 i2c = board.I2C() emc = EMC2101(i2c) while True: print("Internal temperature:", emc.internal_temperature, "C") time.sleep(0.5)
18.090909
65
0.733668
d550cb30a44a1dcae0c48ee0d1b28d9acaa07b78
2,173
py
Python
render/point_cloud_maker.py
RunningChen/UprightRL
683e427242bd1282b0ad9a5c39b6d8f5ccf5a37e
[ "MIT" ]
1
2022-03-22T04:16:33.000Z
2022-03-22T04:16:33.000Z
render/point_cloud_maker.py
RunningChen/UprightRL
683e427242bd1282b0ad9a5c39b6d8f5ccf5a37e
[ "MIT" ]
null
null
null
render/point_cloud_maker.py
RunningChen/UprightRL
683e427242bd1282b0ad9a5c39b6d8f5ccf5a37e
[ "MIT" ]
null
null
null
import numpy as np import bpy import bmesh class PointCloudMaker(): def __init__(self): self.active_object = bpy.context.active_object bpy.app.debug_value = 0 self.instancers = [] # Utility function to generate numpy points from ascii point cloud files def generate_points_from_pts(self, filename): points...
33.953125
129
0.76116
08b64a24312471af42b1dc7d0c903dcba857b1bb
6,477
py
Python
modules/broker.py
aiial/hiascdi
e6b2ba4d3c3202f9f2eec03083994822334e12c2
[ "MIT" ]
1
2021-05-09T00:50:04.000Z
2021-05-09T00:50:04.000Z
modules/broker.py
AdamMiltonBarker/HIASCDI
0aa2e4a2dfe18b14a445984844893ef1b899c2d2
[ "MIT" ]
7
2021-09-10T00:31:41.000Z
2021-09-29T15:55:11.000Z
modules/broker.py
AdamMiltonBarker/HIASCDI
0aa2e4a2dfe18b14a445984844893ef1b899c2d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ HIASCDI Context Broker Module. This module provides core helper functions for HIASCDI. MIT License Copyright (c) 2021 Asociación de Investigacion en Inteligencia Artificial Para la Leucemia Peter Moss Permission is hereby granted, free of charge, to any person obtaining a copy of this sof...
31.595122
78
0.595492
3d23581117cdfcffd30e6573c733d1b4f19055e9
1,518
py
Python
src/fb_github/signalhandlers.py
zipmex/fire
a41bbdbc86085c055ae4706fadea4f142e881a85
[ "Apache-2.0" ]
52
2017-03-15T16:25:14.000Z
2022-03-01T16:50:14.000Z
src/fb_github/signalhandlers.py
zipmex/fire
a41bbdbc86085c055ae4706fadea4f142e881a85
[ "Apache-2.0" ]
239
2017-03-16T17:10:22.000Z
2022-03-06T07:24:24.000Z
src/fb_github/signalhandlers.py
zipmex/fire
a41bbdbc86085c055ae4706fadea4f142e881a85
[ "Apache-2.0" ]
8
2017-03-15T17:45:18.000Z
2022-01-26T14:51:03.000Z
from allauth.account.models import EmailAddress from django.dispatch import receiver from allauth.account.signals import user_signed_up from fb_github.client import get_github_client @receiver(user_signed_up) def sync_github_emails_on_signup(sender, request, user, **kwargs): sociallogin = kwargs.get('sociallogi...
37.02439
99
0.693676
cd38085453e8ffc5fbf80ee9576939de230d82ff
39,626
py
Python
nova/virt/block_device.py
cloudscale-ch/nova
4b4e005c639204f2c680eda61131a6930379d70e
[ "Apache-2.0" ]
1
2018-05-27T09:38:17.000Z
2018-05-27T09:38:17.000Z
nova/virt/block_device.py
ljzjohnson/nova
87e1951a1b8c03b9ecdf8f75610d14690b61f272
[ "Apache-2.0" ]
null
null
null
nova/virt/block_device.py
ljzjohnson/nova
87e1951a1b8c03b9ecdf8f75610d14690b61f272
[ "Apache-2.0" ]
null
null
null
# 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 agreed to in...
42.838919
79
0.591531
0b7920113a9b889fd607bcc35de78d552d44acda
14,927
py
Python
data/MPII/MPII.py
hongsukchoi/3DCrowdNet_RELEASE
3d84d17797e353aaf49acfd8087637eca2877292
[ "MIT" ]
6
2022-03-22T07:49:10.000Z
2022-03-29T11:55:14.000Z
data/MPII/MPII.py
hongsukchoi/3DCrowdNet_RELEASE
3d84d17797e353aaf49acfd8087637eca2877292
[ "MIT" ]
null
null
null
data/MPII/MPII.py
hongsukchoi/3DCrowdNet_RELEASE
3d84d17797e353aaf49acfd8087637eca2877292
[ "MIT" ]
null
null
null
import os import os.path as osp import numpy as np from config import cfg import copy import json import cv2 import torch from pycocotools.coco import COCO from utils.posefix import replace_joint_img from utils.preprocessing import compute_iou, process_bbox, load_img, augmentation from utils.smpl import SMPL from util...
52.932624
218
0.617941
1f1090fd04c293195639f0a0ddb3ae427c124190
375
py
Python
catch/datasets/kedougou.py
broadinstitute/catch
2fedca15f921116f580de8b2ae7ac9972932e59e
[ "MIT" ]
58
2018-01-24T16:31:37.000Z
2022-02-25T07:46:35.000Z
catch/datasets/kedougou.py
broadinstitute/catch
2fedca15f921116f580de8b2ae7ac9972932e59e
[ "MIT" ]
29
2018-04-17T17:36:06.000Z
2022-02-25T11:48:58.000Z
catch/datasets/kedougou.py
broadinstitute/catch
2fedca15f921116f580de8b2ae7ac9972932e59e
[ "MIT" ]
16
2018-05-23T12:19:41.000Z
2021-08-09T04:16:00.000Z
"""Dataset with 'Kedougou virus' sequences. A dataset with 2 'Kedougou virus' genomes. THIS PYTHON FILE WAS GENERATED BY A COMPUTER PROGRAM! DO NOT EDIT! """ import sys from catch.datasets import GenomesDatasetSingleChrom ds = GenomesDatasetSingleChrom(__name__, __file__, __spec__) ds.add_fasta_path("data/kedougo...
23.4375
66
0.784
78ebbe3f552ecbcaeb8768a5888e827fba13a3cb
11,911
py
Python
pythia/common/registry.py
hkchengrex/pythia
8fa1bd3b65daec04cb301781fbd2454c6d5edea1
[ "BSD-3-Clause" ]
1
2019-11-09T16:23:56.000Z
2019-11-09T16:23:56.000Z
pythia/common/registry.py
LTHODAVDOPL/pythia
b201c6b035e4b52e3d2612d582bd71875852e35b
[ "BSD-3-Clause" ]
null
null
null
pythia/common/registry.py
LTHODAVDOPL/pythia
b201c6b035e4b52e3d2612d582bd71875852e35b
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. """ Registry is central source of truth in Pythia. Inspired from Redux's concept of global store, Registry maintains mappings of various information to unique keys. Special functions in registry can be used as decorators to register different kind of classes. Import t...
28.840194
80
0.600118
7cbea223d28450fa2c0afb7de719d99d655ee33d
564
py
Python
07-closure-deco/registration_param.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
5,651
2015-01-06T21:58:46.000Z
2022-03-31T13:39:07.000Z
07-closure-deco/registration_param.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
42
2016-12-11T19:17:11.000Z
2021-11-23T19:41:16.000Z
07-closure-deco/registration_param.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
2,394
2015-01-18T10:57:38.000Z
2022-03-31T11:41:12.000Z
# BEGIN REGISTRATION_PARAM registry = set() # <1> def register(active=True): # <2> def decorate(func): # <3> print('running register(active=%s)->decorate(%s)' % (active, func)) if active: # <4> registry.add(func) else: registry.discard(func) # <5...
19.448276
57
0.531915
b88f579164b57c164b7bf192aee2d17ed202c5ae
262
py
Python
6 kyu/OddEven number of divisors.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
6 kyu/OddEven number of divisors.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
6 kyu/OddEven number of divisors.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
def oddity(n): if n==1: return "odd" elif is_prime(n): return "even" return "odd" if str(n**0.5)[-2:]==".0" else "even" def is_prime(n): for i in range(2, int(n**0.5)+1): if n%i==0: return False return True
23.818182
54
0.496183
8a9411f9799282c9595237437517c13cce1b23b8
887
py
Python
Ankit Khandelwal_HW2/exercise 3/exercise 3d.py
ankit27kh/Computational-Physics-PH354
d37c93e430a0f282251a814456890acb4a2961fe
[ "MIT" ]
null
null
null
Ankit Khandelwal_HW2/exercise 3/exercise 3d.py
ankit27kh/Computational-Physics-PH354
d37c93e430a0f282251a814456890acb4a2961fe
[ "MIT" ]
null
null
null
Ankit Khandelwal_HW2/exercise 3/exercise 3d.py
ankit27kh/Computational-Physics-PH354
d37c93e430a0f282251a814456890acb4a2961fe
[ "MIT" ]
null
null
null
import numpy as np def f(x): return (np.sin(np.sqrt(100 * x))) ** 2 def romberg(a, b, e): R = np.zeros([20, 20], float) n = 2 p = 0 h = ((b - a) / n) s = (f(a) + f(b)) * (1 / 3) t = (2 / 3) * f(a + h) R[1, 1] = h * (s + 2 * t) R[1, 0] = 1 error = 2 * e i = 2 while err...
21.119048
70
0.334837
c8a190adcc3ec65c0a24a5c4bf3c38a47a1ce6ae
634
py
Python
flatsat/comms/user_segment/server/tools/testing/scoresrvr.py
cromulencellc/hackasat-final-2021
d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac
[ "MIT" ]
4
2022-02-25T05:45:27.000Z
2022-03-10T01:05:27.000Z
flatsat/comms/user_segment/server/tools/testing/scoresrvr.py
cromulencellc/hackasat-final-2021
d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac
[ "MIT" ]
null
null
null
flatsat/comms/user_segment/server/tools/testing/scoresrvr.py
cromulencellc/hackasat-final-2021
d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac
[ "MIT" ]
2
2022-03-02T02:14:16.000Z
2022-03-05T07:36:18.000Z
#!/usr/bin/env python3 import socket import time import random SCORE_IP = "localhost" SCORE_PORT = 4001 print(f"UDP target IP: {SCORE_IP}") print(f"UDP target port: {SCORE_PORT}") #for idx in range(0,,1): sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP while True: ...
20.451613
54
0.635647
433a6ee2ca3b5cb513a7e411e41e060b5e65aa3f
5,825
py
Python
Phidgets22.indigoPlugin/Contents/Server Plugin/phidget.py
perlman/phidgets-indigo
fda2e2854e76be3b2cbf53b8fd432f9f780b585c
[ "MIT" ]
null
null
null
Phidgets22.indigoPlugin/Contents/Server Plugin/phidget.py
perlman/phidgets-indigo
fda2e2854e76be3b2cbf53b8fd432f9f780b585c
[ "MIT" ]
7
2021-08-01T15:05:42.000Z
2021-08-25T03:21:43.000Z
Phidgets22.indigoPlugin/Contents/Server Plugin/phidget.py
perlman/phidgets-indigo
fda2e2854e76be3b2cbf53b8fd432f9f780b585c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Bulk of the code for actually interacting with the phidget devices. # import sys import logging import json import time import threading import traceback import indigo import phidget_util class NetInfo(): def __init__(self, isRemote=None, serverDiscovery=None, hostname=None, port=None...
41.021127
153
0.672275
6b117b2c1a1c76bc792c4cfcbdbc743ee9b60d2d
903
py
Python
bin/lts-0-23-upgrade-tests/conftest.py
jwitz/astronomer
b30e5a6a76eb438d22525ce6747df93abed73bfe
[ "Apache-2.0" ]
1
2021-06-07T03:00:06.000Z
2021-06-07T03:00:06.000Z
bin/lts-0-23-upgrade-tests/conftest.py
jwitz/astronomer
b30e5a6a76eb438d22525ce6747df93abed73bfe
[ "Apache-2.0" ]
null
null
null
bin/lts-0-23-upgrade-tests/conftest.py
jwitz/astronomer
b30e5a6a76eb438d22525ce6747df93abed73bfe
[ "Apache-2.0" ]
2
2021-06-07T03:00:09.000Z
2021-12-27T13:26:55.000Z
#!/usr/bin/env python3 import pytest import docker from kubernetes import client, config def create_kube_client(in_cluster=False): """ Load and store authentication and cluster information from kube-config file; if running inside a pod, use Kubernetes service account. Use that to instantiate Kubernet...
25.083333
78
0.709856
efd0d5e68ca4d24f456b9b0d890b6e99590b1f20
20,599
py
Python
Python-3.5.5/Lib/idlelib/IOBinding.py
it315/PSPNet-Keras-tensorflow
876448d9c44a8ca475cf0f60f69eb3c72651be87
[ "MIT" ]
6
2018-02-23T08:52:04.000Z
2021-08-19T12:01:50.000Z
Python-3.5.5/Lib/idlelib/IOBinding.py
it315/PSPNet-Keras-tensorflow
876448d9c44a8ca475cf0f60f69eb3c72651be87
[ "MIT" ]
5
2021-12-14T20:56:36.000Z
2021-12-20T14:45:34.000Z
Python-3.5.10/Lib/idlelib/IOBinding.py
AtriCZE23/POe-full
89be2fda5747e44764a62ba5e358d8c9309fbf0a
[ "MIT", "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
1
2019-05-06T14:36:47.000Z
2019-05-06T14:36:47.000Z
import codecs from codecs import BOM_UTF8 import os import re import shlex import sys import tempfile import tkinter.filedialog as tkFileDialog import tkinter.messagebox as tkMessageBox from tkinter.simpledialog import askstring import idlelib from idlelib.configHandler import idleConf if idlelib.testing: # Set Tru...
36.012238
80
0.555901
e4a2a182734a4b582e5f9214119033df3d1bb10f
5,094
py
Python
grr/client/windows/installers.py
nexus-lab/relf-server
d46774799c20376691c38f9293f454a3aff3ccb3
[ "Apache-2.0" ]
null
null
null
grr/client/windows/installers.py
nexus-lab/relf-server
d46774799c20376691c38f9293f454a3aff3ccb3
[ "Apache-2.0" ]
null
null
null
grr/client/windows/installers.py
nexus-lab/relf-server
d46774799c20376691c38f9293f454a3aff3ccb3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """These are windows specific installers. NOTE: Subprocess module is broken on windows in that pipes are not handled correctly. See for example: http://bugs.python.org/issue3905 This problem seems to go away when we use pipes for all standard handles: https://launchpadlibrarian.net/134750748/py...
30.686747
80
0.68669
88065f98bbae7e170c3501e1b7cfc6e064114fc9
120
py
Python
odoo-13.0/addons/l10n_do/models/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
odoo-13.0/addons/l10n_do/models/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/l10n_do/models/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright 2016 iterativo (https://www.iterativo.do) <info@iterativo.do> from . import chart_template
24
73
0.75
84c21dbe4487d34c9395a8a8604a061ce5f3a1c6
5,186
py
Python
src/python/m5/util/terminal_formatter.py
charitha22/gem5
d7e2fb6744edbd26ce678058463fcd2a00a23b51
[ "BSD-3-Clause" ]
135
2016-10-21T03:31:49.000Z
2022-03-25T01:22:20.000Z
src/python/m5/util/terminal_formatter.py
charitha22/gem5
d7e2fb6744edbd26ce678058463fcd2a00a23b51
[ "BSD-3-Clause" ]
35
2017-03-10T17:57:46.000Z
2022-02-18T17:34:16.000Z
src/python/m5/util/terminal_formatter.py
charitha22/gem5
d7e2fb6744edbd26ce678058463fcd2a00a23b51
[ "BSD-3-Clause" ]
48
2016-12-08T12:03:13.000Z
2022-02-16T09:16:13.000Z
# Copyright (c) 2019 The Regents of the University of California # 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 copyright # notice, this lis...
38.701493
79
0.652333
97d490676ca5dcef6e30c1b5625d627be96f2495
6,625
py
Python
src/algorithm.py
carlosmondo/population-algorithm
ede3d2e2696678d679b8a5f4d4cc5dda609a139a
[ "Unlicense" ]
null
null
null
src/algorithm.py
carlosmondo/population-algorithm
ede3d2e2696678d679b8a5f4d4cc5dda609a139a
[ "Unlicense" ]
1
2022-03-12T01:03:30.000Z
2022-03-12T01:03:30.000Z
src/algorithm.py
carlosmondo/population-algorithm
ede3d2e2696678d679b8a5f4d4cc5dda609a139a
[ "Unlicense" ]
null
null
null
from src.config import ReaderConfig import random class BinaryBackpack(ReaderConfig): def __init__( self, penality = 25, population_size = 4, total_amount_valuations = 30, percentage_performing_mutation = 3, dt_section = "one", ...
38.074713
112
0.620528
3a8f381f2bba9e84105deaff13854221d34987e0
5,634
py
Python
lib/svtplay_dl/service/cmore.py
kricka91/svtplay-dl
559e950e6897a0badd65b1d6ef75881cd8a4f44a
[ "MIT" ]
null
null
null
lib/svtplay_dl/service/cmore.py
kricka91/svtplay-dl
559e950e6897a0badd65b1d6ef75881cd8a4f44a
[ "MIT" ]
null
null
null
lib/svtplay_dl/service/cmore.py
kricka91/svtplay-dl
559e950e6897a0badd65b1d6ef75881cd8a4f44a
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import re import copy from urllib.parse import urljoin, urlparse from svtplay_dl.service import Service from svtplay_dl.log import log from svtplay_dl.fetcher.dash import dashparse from svtplay_dl.subtitle import subtitle from svtplay_dl.error import ServiceErro...
40.532374
131
0.540469
cd07a7357161542b9cf8593e6539a74b992f6afd
2,355
py
Python
setup.py
galicae/scanpy
76e6b2819a8d592718514af1d20df59d59d6723f
[ "BSD-3-Clause" ]
null
null
null
setup.py
galicae/scanpy
76e6b2819a8d592718514af1d20df59d59d6723f
[ "BSD-3-Clause" ]
null
null
null
setup.py
galicae/scanpy
76e6b2819a8d592718514af1d20df59d59d6723f
[ "BSD-3-Clause" ]
null
null
null
import sys if sys.version_info < (3, 6): sys.exit('scanpy requires Python >= 3.6') from pathlib import Path from setuptools import setup, find_packages try: from scanpy import __author__, __email__ except ImportError: # Deps not yet installed __author__ = __email__ = '' setup( name='scanpy', u...
31.4
83
0.574947
afb20650270752cedc6508b66f441a2ebc8f3ad8
34,844
py
Python
caffe2/python/workspace_test.py
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
5
2021-08-17T17:44:20.000Z
2021-08-21T05:03:42.000Z
caffe2/python/workspace_test.py
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
1
2021-06-25T22:00:31.000Z
2021-06-25T22:00:31.000Z
caffe2/python/workspace_test.py
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
null
null
null
import os import shutil import tempfile import unittest from collections import namedtuple import caffe2.python.hypothesis_test_util as htu import hypothesis.strategies as st import numpy as np import torch from caffe2.proto import caffe2_pb2 from caffe2.python import core, test_util, workspace, model_helper, brew fro...
37.147122
91
0.594421
21798f7ba3e6ede3cc6e9a96a6298fc640164b4a
252
py
Python
UnityEngine/SoftJointLimitSpring/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/SoftJointLimitSpring/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/SoftJointLimitSpring/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
from UdonPie import UnityEngine from UdonPie.Undefined import * class SoftJointLimitSpring: def __new__(cls, arg1=None): ''' :returns: SoftJointLimitSpring :rtype: UnityEngine.SoftJointLimitSpring ''' pass
21
48
0.662698
051907eae65447fa8a62d36195c313b74344b47c
12,945
py
Python
trankit/adapter_transformers/configuration_xlm.py
jsteggink/trankit
61ef593999bfa29751990d0d4bcf259daed05db4
[ "Apache-2.0" ]
613
2021-01-12T14:21:13.000Z
2022-03-29T19:51:47.000Z
trankit/adapter_transformers/configuration_xlm.py
jsteggink/trankit
61ef593999bfa29751990d0d4bcf259daed05db4
[ "Apache-2.0" ]
38
2021-01-13T12:01:15.000Z
2022-03-31T14:13:44.000Z
trankit/adapter_transformers/configuration_xlm.py
jsteggink/trankit
61ef593999bfa29751990d0d4bcf259daed05db4
[ "Apache-2.0" ]
77
2021-01-13T07:33:26.000Z
2022-03-29T19:51:50.000Z
# coding=utf-8 # Copyright 2019-present, Facebook, Inc and the HuggingFace Inc. team. # # 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...
51.166008
128
0.637003
848afd38c2073067bf1d6a9ad9e8951c30b93898
4,155
py
Python
andabb/AvoidObstacle.py
luwood/MO810-vrep-python
fb8faaed3a23ee71a7c886685c81db1fc6222207
[ "MIT" ]
1
2018-09-08T23:37:38.000Z
2018-09-08T23:37:38.000Z
andabb/AvoidObstacle.py
luwood/MO810-vrep-python
fb8faaed3a23ee71a7c886685c81db1fc6222207
[ "MIT" ]
null
null
null
andabb/AvoidObstacle.py
luwood/MO810-vrep-python
fb8faaed3a23ee71a7c886685c81db1fc6222207
[ "MIT" ]
2
2019-09-29T21:04:56.000Z
2021-02-24T16:06:18.000Z
import logging from typing import List import numpy as np import skfuzzy as fuzz from skfuzzy import control as ctrl from .ISensorBasedController import ISensorBasedController def createSensorAtecendent(name: str): sensor = ctrl.Antecedent(np.arange(0, 2.01, 0.01), name) sensor['very close'] = fuzz.trapmf(se...
40.735294
128
0.638026
3fc669672963258dd84d1f038ef57ad0179e3a6c
25,796
py
Python
geostream/table.py
karimbahgat/GeoStream
ca067c3b2ba12983089a5562869a7732a3d7aa6b
[ "MIT" ]
null
null
null
geostream/table.py
karimbahgat/GeoStream
ca067c3b2ba12983089a5562869a7732a3d7aa6b
[ "MIT" ]
null
null
null
geostream/table.py
karimbahgat/GeoStream
ca067c3b2ba12983089a5562869a7732a3d7aa6b
[ "MIT" ]
null
null
null
import os import warnings from tempfile import TemporaryFile, mktemp import sqlite3 from sqlite3 import Binary from .verbose import track_progress from . import vector from . import raster class Row(sqlite3.Row): def __str__(self): return 'Row: {}'.format(tuple(self).__str__()) class Table(object): ...
39.808642
203
0.545588
87201824eac3de496008c9b1b425a1805b8c0368
198
py
Python
mongox/exceptions.py
kuutsav/mongox
3ae919e8af7b8e75b8096202ac814480a92f7894
[ "MIT" ]
null
null
null
mongox/exceptions.py
kuutsav/mongox
3ae919e8af7b8e75b8096202ac814480a92f7894
[ "MIT" ]
null
null
null
mongox/exceptions.py
kuutsav/mongox
3ae919e8af7b8e75b8096202ac814480a92f7894
[ "MIT" ]
null
null
null
class QueryException(Exception): pass class NoMatchFound(QueryException): pass class MultipleMatchesFound(QueryException): pass class InvalidKeyException(QueryException): pass
13.2
43
0.767677
a54b853b43b30d60c3e9620c324d60131d44ed7b
2,027
py
Python
superset/views/database/validators.py
hikaya-io/incubator-superset
3dac81c89613f04dc9e4424dda043821c7557323
[ "Apache-2.0" ]
44
2021-04-14T10:53:36.000Z
2021-09-11T00:29:50.000Z
superset/views/database/validators.py
hikaya-io/incubator-superset
3dac81c89613f04dc9e4424dda043821c7557323
[ "Apache-2.0" ]
77
2020-02-02T07:54:13.000Z
2022-03-23T18:22:04.000Z
superset/views/database/validators.py
hikaya-io/incubator-superset
3dac81c89613f04dc9e4424dda043821c7557323
[ "Apache-2.0" ]
15
2019-04-29T05:38:31.000Z
2022-02-12T10:47:54.000Z
# 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...
34.948276
84
0.694623
9b289e42d0b47092138d8b30b07db1af14e21d82
5,315
py
Python
main.py
RobinKa/MetaVAE
554d3a0ec2d42b1e0a489280fb2cfe525d961132
[ "MIT" ]
8
2019-01-04T18:03:47.000Z
2020-10-04T10:25:16.000Z
main.py
RobinKa/MetaVAE
554d3a0ec2d42b1e0a489280fb2cfe525d961132
[ "MIT" ]
1
2022-02-22T03:29:54.000Z
2022-02-22T03:29:54.000Z
main.py
RobinKa/MetaVAE
554d3a0ec2d42b1e0a489280fb2cfe525d961132
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from metaopt import MetaVAE from data import get_image_paths_by_directories, load_image import argparse def model_fn(features, labels, mode, params, config): inputs = features inputs.set_shape((params.outer_batch_size, *inputs.shape[1:])) inputs = tf.stop...
46.622807
188
0.695202
a000badb434e35e2a78b505574fc6fafd9178df7
387
py
Python
pose2/wsgi.py
ai-coach-eiji/handstand-v2
8043cd76f26be86940c9fcfc03a40fd1c6524ff8
[ "Apache-2.0" ]
null
null
null
pose2/wsgi.py
ai-coach-eiji/handstand-v2
8043cd76f26be86940c9fcfc03a40fd1c6524ff8
[ "Apache-2.0" ]
null
null
null
pose2/wsgi.py
ai-coach-eiji/handstand-v2
8043cd76f26be86940c9fcfc03a40fd1c6524ff8
[ "Apache-2.0" ]
null
null
null
""" WSGI config for pose2 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
39d533805ba9d42d9db189c89524c272ab16e5bd
10,500
py
Python
lal_modules/gui.py
csterryliu/Legal-Attest-Letter-Generator
4a7df7ea324dfee38a39daab10777a1c9d222c42
[ "MIT" ]
52
2016-09-30T05:53:45.000Z
2021-12-26T12:07:48.000Z
lal_modules/gui.py
csterryliu/Legal-Attest-Letter-Generator
4a7df7ea324dfee38a39daab10777a1c9d222c42
[ "MIT" ]
2
2016-09-30T06:05:01.000Z
2017-11-05T12:58:47.000Z
lal_modules/gui.py
csterryliu/Legal-Attest-Letter-Generator
4a7df7ea324dfee38a39daab10777a1c9d222c42
[ "MIT" ]
15
2016-11-03T08:50:15.000Z
2022-01-14T07:04:35.000Z
import tkinter from tkinter import filedialog import threading from lal_modules import core class GUI: """ The GUI for generator. """ def __init__(self): self.__init_var() self.root = tkinter.Tk() self.root.title(self.program_title) self.root.geometry('600x700') ...
43.38843
80
0.554571
b7ffd0bda254d0a6d5aeeb328182e3557392b7c8
792
py
Python
tests/gcd.py
medav/atlas.py
2f3e382d53bf63d37dcb2ef743b66c294d0e28b2
[ "MIT" ]
1
2019-02-27T10:50:37.000Z
2019-02-27T10:50:37.000Z
tests/gcd.py
medav/pyatlas
6e18c54c844303094af15dbd96a9b71c3e245395
[ "MIT" ]
4
2021-05-04T04:58:13.000Z
2021-05-04T04:59:08.000Z
tests/gcd.py
medav/pyatlas
6e18c54c844303094af15dbd96a9b71c3e245395
[ "MIT" ]
1
2021-05-02T01:51:29.000Z
2021-05-02T01:51:29.000Z
import sys sys.path.append('.') from atlas import * @Module def Gcd(data_width): io = Io({ 'in_a': Input(Bits(data_width)), 'in_b': Input(Bits(data_width)), 'start': Input(Bits(1)), 'out': Output(Bits(data_width)), 'done': Output(Bits(1)) }) a_reg = Reg(Bits(data_w...
18.857143
40
0.554293
e3e1762adadf75cb35335bc42cf99a76cc6ce5ed
4,450
py
Python
icevision/core/record.py
jerbly/icevision
f97edd52c152f438d02bcce8a2e40b90dc304d01
[ "Apache-2.0" ]
null
null
null
icevision/core/record.py
jerbly/icevision
f97edd52c152f438d02bcce8a2e40b90dc304d01
[ "Apache-2.0" ]
null
null
null
icevision/core/record.py
jerbly/icevision
f97edd52c152f438d02bcce8a2e40b90dc304d01
[ "Apache-2.0" ]
null
null
null
__all__ = ["BaseRecord", "autofix_records"] from icevision.imports import * from icevision.utils import * from collections.abc import MutableMapping from icevision.core import tasks from icevision.core.exceptions import * from icevision.core.components import * from icevision.core.record_components import * # TODO: ...
33.969466
88
0.611461
a17660ec2967f58ebecae48c5baae14109019bea
3,773
py
Python
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/EnumTypeInfo.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2017-04-25T13:15:10.000Z
2017-04-25T13:15:10.000Z
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/EnumTypeInfo.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
null
null
null
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/EnumTypeInfo.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
null
null
null
# ---------------------------------------------------------------------- # | # | EnumTypeInfo.py # | # | David Brownell <db@DavidBrownell.com> # | 2016-09-04 18:51:59 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2016-18. # | Dis...
42.875
131
0.372118
d7385feaaba5b9f7ba2f4a61caf12a0cabfd129e
94,605
py
Python
src/azure-cli/azure/cli/command_modules/storage/_validators.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/storage/_validators.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/storage/_validators.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
45.880213
166
0.670197
d62e5fdded2cb8f49adc6398bcbb3f1054fd132f
5,144
py
Python
main.py
brilam8/SheetsLinker
27df6d59da3883efd4df75e75bf9188357d74afb
[ "MIT" ]
null
null
null
main.py
brilam8/SheetsLinker
27df6d59da3883efd4df75e75bf9188357d74afb
[ "MIT" ]
null
null
null
main.py
brilam8/SheetsLinker
27df6d59da3883efd4df75e75bf9188357d74afb
[ "MIT" ]
null
null
null
import tkinter as tk import json from tkcalendar import Calendar, DateEntry import heapq as hp import gspread from oauth2client.service_account import ServiceAccountCredentials scope = ['https://spreadsheets.google.com/feeds'] creds = ServiceAccountCredentials.from_json_keyfile_name('./config/client_secret.json') clie...
36.742857
150
0.543935
35b915b7275f2ead4de05c04360cdae2f368b131
303
py
Python
training/bin2hdf5.py
pyu1538/rnnoise
245f1d6cb6eaaa3d03a09e255f2c9e04b900db53
[ "BSD-3-Clause" ]
1
2020-09-26T15:00:40.000Z
2020-09-26T15:00:40.000Z
training/bin2hdf5.py
pyu1538/rnnoise
245f1d6cb6eaaa3d03a09e255f2c9e04b900db53
[ "BSD-3-Clause" ]
null
null
null
training/bin2hdf5.py
pyu1538/rnnoise
245f1d6cb6eaaa3d03a09e255f2c9e04b900db53
[ "BSD-3-Clause" ]
1
2021-07-07T12:20:14.000Z
2021-07-07T12:20:14.000Z
#!/usr/bin/env python from __future__ import print_function import numpy as np import h5py import sys data = np.fromfile(sys.argv[1], dtype='float32'); data = np.reshape(data, (int(sys.argv[2]), int(sys.argv[3]))); h5f = h5py.File(sys.argv[4], 'w'); h5f.create_dataset('data', data=data) h5f.close()
21.642857
62
0.70297
ec14e4b080d89fa3d1d130ffc2f9823a36c2b252
12,833
py
Python
tensorflow/python/keras/benchmarks/layer_benchmarks/layer_benchmarks_test.py
AdamHillier/tensorflow
6780ebf4858a56fd0745f03fa5a61b249559f3cd
[ "Apache-2.0" ]
4
2016-07-14T15:15:05.000Z
2017-03-02T15:17:22.000Z
tensorflow/python/keras/benchmarks/layer_benchmarks/layer_benchmarks_test.py
AdamHillier/tensorflow
6780ebf4858a56fd0745f03fa5a61b249559f3cd
[ "Apache-2.0" ]
7
2021-11-10T20:21:23.000Z
2022-03-22T19:18:39.000Z
tensorflow/python/keras/benchmarks/layer_benchmarks/layer_benchmarks_test.py
AdamHillier/tensorflow
6780ebf4858a56fd0745f03fa5a61b249559f3cd
[ "Apache-2.0" ]
5
2016-11-07T21:17:45.000Z
2020-05-31T00:16:59.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.213816
90
0.665861
5fe9cd3e9e3702d13fd224d1bee8303627ca3678
2,580
py
Python
learnpy/supervised/kerpercep.py
Hadrien-Montanelli/learnpy
b9fedb903cfe8c2fff8d7706667f17c51fb3a34f
[ "MIT" ]
1
2020-10-19T21:21:29.000Z
2020-10-19T21:21:29.000Z
learnpy/supervised/kerpercep.py
Hadrien-Montanelli/learnpy
b9fedb903cfe8c2fff8d7706667f17c51fb3a34f
[ "MIT" ]
21
2020-10-30T10:15:36.000Z
2020-11-25T09:22:46.000Z
learnpy/supervised/kerpercep.py
Hadrien-Montanelli/learnpy
b9fedb903cfe8c2fff8d7706667f17c51fb3a34f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 15 11:45:47 2020 Copyright 2020 by Hadrien Montanelli. """ # Standard library imports: import numpy as np # Learnpy imports: from .classifier import classifier class kerpercep(classifier): """ Class for representing the kernel perceptron c...
25.8
77
0.463566
644458b738b7373d93eb240aab44af575d8c7e7d
271
py
Python
test_main.py
sbreitenbach/simple-network-test
4ea546b8f775fb65c23b3d52533350c8c7a1be21
[ "Apache-2.0" ]
null
null
null
test_main.py
sbreitenbach/simple-network-test
4ea546b8f775fb65c23b3d52533350c8c7a1be21
[ "Apache-2.0" ]
1
2020-08-27T00:22:10.000Z
2020-08-27T00:22:10.000Z
test_main.py
sbreitenbach/simple-network-test
4ea546b8f775fb65c23b3d52533350c8c7a1be21
[ "Apache-2.0" ]
null
null
null
import main def test_Pinging_Loopback_Succeeds(): IP = "127.0.0.1" result = main.ping_the_host(IP) assert(result == "Success") def test_Pinging_Unused_IP_Fails(): IP = "198.51.100.1" result = main.ping_the_host(IP) assert(result == "Failure")
19.357143
37
0.667897
d6ac53137b77415b0b230bf88878db4a7daaf6ea
402
py
Python
src/frontend/helpers.py
MMateuSouza/apply_for_jobs
ef1635b6402521bb848e7ebf043de8cdf42f303c
[ "Apache-2.0" ]
null
null
null
src/frontend/helpers.py
MMateuSouza/apply_for_jobs
ef1635b6402521bb848e7ebf043de8cdf42f303c
[ "Apache-2.0" ]
null
null
null
src/frontend/helpers.py
MMateuSouza/apply_for_jobs
ef1635b6402521bb848e7ebf043de8cdf42f303c
[ "Apache-2.0" ]
null
null
null
""" Solução encontrada em: https://stackoverflow.com/questions/11875770/how-to-overcome-datetime-datetime-not-json-serializable """ from datetime import date, datetime def json_serial(obj): """JSON serializer for objects not serializable by default json code""" if isinstance(obj, (datetime, date)): r...
30.923077
123
0.731343
fba0dbedbaf37e737a417d0d37cd52d2790ca096
1,457
py
Python
tool/pylib/graph/classes/__init__.py
mever/qooxdoo
2bb08cb6c4ddfaf2425e6efff07deb17e960a050
[ "MIT" ]
1
2021-02-05T23:00:25.000Z
2021-02-05T23:00:25.000Z
tool/pylib/graph/classes/__init__.py
mever/qooxdoo
2bb08cb6c4ddfaf2425e6efff07deb17e960a050
[ "MIT" ]
3
2019-02-18T04:22:52.000Z
2021-02-21T15:02:54.000Z
tool/pylib/graph/classes/__init__.py
mever/qooxdoo
2bb08cb6c4ddfaf2425e6efff07deb17e960a050
[ "MIT" ]
1
2021-06-03T23:08:44.000Z
2021-06-03T23:08:44.000Z
# Copyright (c) 2008-2009 Pedro Matiello <pmatiello@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 deal in the Software without # restriction, including without limitation the rights to use, # copy,...
34.690476
67
0.756349
7275651b255090408e073d772b9ca734b2d846d4
10,200
py
Python
BirdMC.py
LiuJiewenTT/BirdMC_original
432377f8cf5aa0948d3fae207379ebec2b1503cf
[ "MIT" ]
null
null
null
BirdMC.py
LiuJiewenTT/BirdMC_original
432377f8cf5aa0948d3fae207379ebec2b1503cf
[ "MIT" ]
null
null
null
BirdMC.py
LiuJiewenTT/BirdMC_original
432377f8cf5aa0948d3fae207379ebec2b1503cf
[ "MIT" ]
null
null
null
from threading import Thread import multiprocessing import cv2 import numpy as np import time import sys import os multiprocessing.freeze_support() # 输出提示信息: infos = ["One Picture a time!", "Author: 刘杰文", "Email:liuljwtt@foxmail.com"] print('INFOs: ') for i in infos: print(i) print("") # 检查参数有效 ...
29.737609
118
0.485294
654e9e1ee1676ac81ba7e2acc6874b0d9ce74a09
168
py
Python
run.py
xuwiliam/Adgame
e594f52e8da0cb4878142bcd71575dfecdd830b0
[ "MIT" ]
null
null
null
run.py
xuwiliam/Adgame
e594f52e8da0cb4878142bcd71575dfecdd830b0
[ "MIT" ]
null
null
null
run.py
xuwiliam/Adgame
e594f52e8da0cb4878142bcd71575dfecdd830b0
[ "MIT" ]
null
null
null
import dataLoader import FeatureBuilder if __name__=='__main__': data = dataLoader.load_data() train_x,train_y,test_x,test_y = FeatureBuilder.build_feature(data)
28
69
0.797619
5a0514702a44c091dc96500eac89de3c8b1cb32e
1,663
py
Python
2016/day4.py
ChbShoot/advent-of-code
e2fb3cd937908bdcea7c16c2859e9c2cf12f9f5b
[ "MIT" ]
null
null
null
2016/day4.py
ChbShoot/advent-of-code
e2fb3cd937908bdcea7c16c2859e9c2cf12f9f5b
[ "MIT" ]
null
null
null
2016/day4.py
ChbShoot/advent-of-code
e2fb3cd937908bdcea7c16c2859e9c2cf12f9f5b
[ "MIT" ]
null
null
null
# Advent of Code - 2016 # http://adventofcode.com/ # author: Jose M. Luis # shouts out to /u/taliriktug for the guidance input = open("day4.txt", 'r').read().split('\n') def part1(): sum = 0 for line in input: if line is "": continue encrypted_name = line[0:(line.rfind("-"))].rep...
28.672414
90
0.553818
719d82c910b3ac60565e0528cd5551fff002ddee
563
py
Python
GPSInfo/stuff2.py
jgraber/Python_Scripts
ffdbf17d28521cf5c2a3f7aadfb817e7811f86b7
[ "MIT" ]
null
null
null
GPSInfo/stuff2.py
jgraber/Python_Scripts
ffdbf17d28521cf5c2a3f7aadfb817e7811f86b7
[ "MIT" ]
3
2021-07-01T19:36:30.000Z
2021-08-30T19:59:00.000Z
GPSInfo/stuff2.py
jgraber/Python_Scripts
ffdbf17d28521cf5c2a3f7aadfb817e7811f86b7
[ "MIT" ]
null
null
null
# see Comparing Python Command-Line Parsing Libraries – Argparse, Docopt, and Click # https://realpython.com/comparing-python-command-line-parsing-libraries-argparse-docopt-click/ import click @click.group() @click.version_option(version='1.0.0') def greet(): pass @greet.command() @click.argument('name') # add...
23.458333
95
0.698046
2c81200c521c58d36cc01fffca5bdb03da056bff
4,381
py
Python
chrome/test/functional/themes.py
Scopetta197/chromium
b7bf8e39baadfd9089de2ebdc0c5d982de4a9820
[ "BSD-3-Clause" ]
212
2015-01-31T11:55:58.000Z
2022-02-22T06:35:11.000Z
chrome/test/functional/themes.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
5
2015-03-27T14:29:23.000Z
2019-09-25T13:23:12.000Z
chrome/test/functional/themes.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
221
2015-01-07T06:21:24.000Z
2022-02-11T02:51:12.000Z
#!/usr/bin/env python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import glob import logging import os import pyauto_functional # Must be imported before pyauto import pyauto class ThemesTest(p...
31.746377
79
0.667884
07c7d3a0282ff234382bcbe1d4c9ae8bc248b8f4
2,197
py
Python
Validation/Geometry/test/runP_HCAL_cfg.py
Michael-Krohn/cmssw
25064b40a13dc451b498e850214fcbe141f7cb75
[ "Apache-2.0" ]
null
null
null
Validation/Geometry/test/runP_HCAL_cfg.py
Michael-Krohn/cmssw
25064b40a13dc451b498e850214fcbe141f7cb75
[ "Apache-2.0" ]
null
null
null
Validation/Geometry/test/runP_HCAL_cfg.py
Michael-Krohn/cmssw
25064b40a13dc451b498e850214fcbe141f7cb75
[ "Apache-2.0" ]
1
2021-06-28T21:20:38.000Z
2021-06-28T21:20:38.000Z
import FWCore.ParameterSet.Config as cms from Configuration.Eras.Era_Run3_cff import Run3 process = cms.Process('PROD',Run3) process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") #Geometry # process.load("Configuration.Geometry.GeometryExtended2021_cff") #Magnetic Field # process.load("Configuration.StandardSeque...
32.791045
73
0.719162
a379b727d9c6c437686ba3361d0fe5c95de279dc
1,153
py
Python
src/features.py
ninesalt/lipy
9b9c72be5113a65fd50dd2ba956a358ce1a70477
[ "MIT" ]
10
2018-06-18T11:19:46.000Z
2020-11-21T16:18:31.000Z
src/features.py
ninesalt/lipy
9b9c72be5113a65fd50dd2ba956a358ce1a70477
[ "MIT" ]
6
2019-12-16T20:57:14.000Z
2022-02-09T23:43:26.000Z
src/features.py
ninesalt/lipy
9b9c72be5113a65fd50dd2ba956a358ce1a70477
[ "MIT" ]
3
2018-11-27T17:04:37.000Z
2019-05-28T17:42:59.000Z
import os import pickle import itertools import urllib.request import numpy as np from os.path import dirname, join def downloadimages(src, destination): # download images given location of pickle dump directory = dirname(__file__) src = join(directory, src) destination = join(directory, destination...
25.065217
78
0.615785
520a1c61301404690991972be8279f07336b6696
5,077
py
Python
doc2vec.py
phamcnm/Movie-Recommender
ef4efda690cc9242fd36b8594068093a757c7b87
[ "MIT" ]
null
null
null
doc2vec.py
phamcnm/Movie-Recommender
ef4efda690cc9242fd36b8594068093a757c7b87
[ "MIT" ]
null
null
null
doc2vec.py
phamcnm/Movie-Recommender
ef4efda690cc9242fd36b8594068093a757c7b87
[ "MIT" ]
null
null
null
import os import string import numpy as np import re import wikipedia from gensim.models.doc2vec import Doc2Vec, TaggedDocument from scipy import spatial import nltk from nltk.stem.wordnet import WordNetLemmatizer lemmatizer = WordNetLemmatizer() def load_dat(path): infile = open(path, 'rb') saved = np.load(infile...
26.581152
112
0.720504
0f5d395ffb214b118617772ef97513de3030e47a
7,031
py
Python
Software de Trading/freqtrade/data/btanalysis.py
NatanNMB15/tcc-pytradebot
52b19251a030ab9c1a1b95157b4d57a9cf6df9dc
[ "MIT" ]
1
2020-05-13T14:12:42.000Z
2020-05-13T14:12:42.000Z
Software de Trading/freqtrade/data/btanalysis.py
NatanNMB15/tcc-pytradebot
52b19251a030ab9c1a1b95157b4d57a9cf6df9dc
[ "MIT" ]
7
2020-02-12T02:58:40.000Z
2021-06-04T23:24:08.000Z
Software de Trading/freqtrade/data/btanalysis.py
NatanNMB15/tcc-pytradebot
52b19251a030ab9c1a1b95157b4d57a9cf6df9dc
[ "MIT" ]
null
null
null
""" Helpers when analyzing backtest data """ import logging from pathlib import Path from typing import Dict import numpy as np import pandas as pd import pytz from freqtrade import persistence from freqtrade.misc import json_load from freqtrade.persistence import Trade logger = logging.getLogger(__name__) # must a...
40.641618
98
0.610724
8e9d62593b959872e0558487e38d5aa12897137f
2,594
py
Python
samples/cli/accelbyte_py_sdk_cli/iam/_admin_list_assigned_users_v4.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
samples/cli/accelbyte_py_sdk_cli/iam/_admin_list_assigned_users_v4.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
samples/cli/accelbyte_py_sdk_cli/iam/_admin_list_assigned_users_v4.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # justice-iam-service (5.10.1) # pylint: disable=duplicate-code # ...
32.835443
106
0.734773
4837ce579498cf646d325e1ee2f153411e89bc9a
10,921
py
Python
dlfairness/other/bias_result_display/2_3_mitigation_heatmap.py
lin-tan/fairness-variance
7f6aee23160707ffe78f429e5d960022ea1c9fe4
[ "BSD-3-Clause" ]
null
null
null
dlfairness/other/bias_result_display/2_3_mitigation_heatmap.py
lin-tan/fairness-variance
7f6aee23160707ffe78f429e5d960022ea1c9fe4
[ "BSD-3-Clause" ]
null
null
null
dlfairness/other/bias_result_display/2_3_mitigation_heatmap.py
lin-tan/fairness-variance
7f6aee23160707ffe78f429e5d960022ea1c9fe4
[ "BSD-3-Clause" ]
null
null
null
import yaml import seaborn as sns import matplotlib.pyplot as plt import numpy as np from typing import * from pathlib import Path from matplotlib.colors import ListedColormap, LinearSegmentedColormap import matplotlib.patches as mpatches from collections import OrderedDict from abbrs import prefix_abbr, setting_abbr...
44.394309
112
0.505998
0b514ebd353e06265b387411235052e7b718b8a8
23,800
py
Python
source/data_generator.py
khuranalab/DeepMILO
f8d5c0613da71c59807060bfbcac7cec813dba7f
[ "MIT" ]
5
2020-03-27T09:18:38.000Z
2020-10-08T06:07:48.000Z
source/data_generator.py
khuranalab/DeepMILO
f8d5c0613da71c59807060bfbcac7cec813dba7f
[ "MIT" ]
1
2020-09-29T19:26:10.000Z
2020-09-29T19:26:10.000Z
source/data_generator.py
tuantrieu/DeepMILO
2fdec3da614167b67303e54a9c8019ee51361bf8
[ "MIT" ]
4
2019-11-03T02:31:48.000Z
2021-01-26T05:12:05.000Z
''' Data generation for input as sequences and output as boundaries ''' import numpy as np import keras import h5py import re import random class DataGenerator(keras.utils.Sequence): 'Generates data for Boundary prediction' def __init__(self, data_file, label_file, batch_size=32, dim=(1000, 5), n_channels=1,...
32.162162
123
0.542143
7543e6e3c3d6e5e27b2f86a0bbec4f3f26d25fda
127
py
Python
panimg/__init__.py
nlessmann/rse-panimg
c0a2481308ef03677b4786aec775b6e318139495
[ "Apache-2.0" ]
5
2021-05-12T11:14:19.000Z
2022-03-28T14:03:27.000Z
panimg/__init__.py
nlessmann/rse-panimg
c0a2481308ef03677b4786aec775b6e318139495
[ "Apache-2.0" ]
37
2021-03-19T08:15:33.000Z
2022-03-28T08:44:55.000Z
panimg/__init__.py
nlessmann/rse-panimg
c0a2481308ef03677b4786aec775b6e318139495
[ "Apache-2.0" ]
4
2021-03-23T09:52:25.000Z
2021-11-09T12:48:05.000Z
__version__ = "0.5.2" import logging from .panimg import convert __all__ = ["convert"] logger = logging.getLogger(__name__)
14.111111
36
0.740157
61a719acc0f4220d9aaf60cb624100ce4aab53e8
19,778
py
Python
manim/animation/transform.py
icedcoffeeee/manim
880e8999a81f1e85bc1d20921b1efb9c4ed1565a
[ "MIT" ]
null
null
null
manim/animation/transform.py
icedcoffeeee/manim
880e8999a81f1e85bc1d20921b1efb9c4ed1565a
[ "MIT" ]
null
null
null
manim/animation/transform.py
icedcoffeeee/manim
880e8999a81f1e85bc1d20921b1efb9c4ed1565a
[ "MIT" ]
null
null
null
"""Animations transforming one mobject into another.""" __all__ = [ "Transform", "ReplacementTransform", "TransformFromCopy", "ClockwiseTransform", "CounterclockwiseTransform", "MoveToTarget", "ApplyMethod", "ApplyPointwiseFunction", "ApplyPointwiseFunctionToCenter", "FadeToColo...
32.908486
89
0.618971
055b44089ca2c4714e0f2a94822dd11f50523c7c
1,813
py
Python
restfulgit/plumbing/retrieval.py
shuhongwu/restfulgit
4fb38539d25983c9b9b99588901a1025658d05d4
[ "MIT" ]
null
null
null
restfulgit/plumbing/retrieval.py
shuhongwu/restfulgit
4fb38539d25983c9b9b99588901a1025658d05d4
[ "MIT" ]
null
null
null
restfulgit/plumbing/retrieval.py
shuhongwu/restfulgit
4fb38539d25983c9b9b99588901a1025658d05d4
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import absolute_import, unicode_literals, print_function, division from flask import current_app, safe_join from werkzeug.exceptions import NotFound from pygit2 import Repository, GIT_OBJ_COMMIT, GIT_OBJ_BLOB, GIT_OBJ_TREE, GIT_OBJ_TAG def get_repo(repo_key): path = safe_join(curre...
25.9
86
0.6492
888df2d73cc0c9079de1bbfa40d7872c9a7003c0
2,249
py
Python
test/test_legend_best_location.py
satejsoman/matplotlib2tikz
583a66f6842d236ee42d85485de9c6a503585893
[ "MIT" ]
null
null
null
test/test_legend_best_location.py
satejsoman/matplotlib2tikz
583a66f6842d236ee42d85485de9c6a503585893
[ "MIT" ]
null
null
null
test/test_legend_best_location.py
satejsoman/matplotlib2tikz
583a66f6842d236ee42d85485de9c6a503585893
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # import matplotlib.pyplot as plt import numpy as np from helpers import assert_equality def plot(): fig, ax = plt.subplots(3, 3, sharex="col", sharey="row") axes = [ax[i][j] for i in range(len(ax)) for j in range(len(ax[i]))] t = np.arange(0.0, 2.0 * np.pi, 0.4) # Legend bes...
30.391892
74
0.54691
897c2cfcfa204c33ea707002d230bc99b16981fb
5,238
py
Python
setup.py
kofj/pyftpdlib
5793ee5f61029d232f940a69a92bf67996be7f00
[ "MIT" ]
1,388
2015-01-02T11:25:58.000Z
2022-03-31T05:31:47.000Z
setup.py
kofj/pyftpdlib
5793ee5f61029d232f940a69a92bf67996be7f00
[ "MIT" ]
255
2015-01-28T11:18:42.000Z
2022-03-31T00:40:42.000Z
setup.py
kofj/pyftpdlib
5793ee5f61029d232f940a69a92bf67996be7f00
[ "MIT" ]
292
2015-01-12T16:00:12.000Z
2022-03-31T02:40:18.000Z
# Copyright (C) 2007 Giampaolo Rodola' <g.rodola@gmail.com>. # Use of this source code is governed by MIT license that can be # found in the LICENSE file. """pyftpdlib installer. $ python setup.py install """ from __future__ import print_function import os import sys import textwrap try: from setuptools import...
33.363057
77
0.557656
e986bfb244d85c1a95f1a112ec12d48f46d60504
33,285
py
Python
nuitka/plugins/standard/PySidePyQtPlugin.py
wherka/Nuitka
aceb10d1879be8e0ca416170949b1092c51a6476
[ "Apache-2.0" ]
null
null
null
nuitka/plugins/standard/PySidePyQtPlugin.py
wherka/Nuitka
aceb10d1879be8e0ca416170949b1092c51a6476
[ "Apache-2.0" ]
null
null
null
nuitka/plugins/standard/PySidePyQtPlugin.py
wherka/Nuitka
aceb10d1879be8e0ca416170949b1092c51a6476
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
34.420889
122
0.568995
7a08bcc6e2d053636f30511aff316d528f970bd0
13,734
py
Python
ocs_samples/library_samples/Python3/ocs_sample_library_preview/Dataviews.py
Annamn61/OSI-Samples
d85d7d1140e9eb04fc641f711e9a40dd605515a0
[ "Apache-2.0" ]
null
null
null
ocs_samples/library_samples/Python3/ocs_sample_library_preview/Dataviews.py
Annamn61/OSI-Samples
d85d7d1140e9eb04fc641f711e9a40dd605515a0
[ "Apache-2.0" ]
1
2019-06-10T19:22:53.000Z
2019-06-10T19:22:53.000Z
ocs_samples/library_samples/Python3/ocs_sample_library_preview/Dataviews.py
Annamn61/OSI-Samples
d85d7d1140e9eb04fc641f711e9a40dd605515a0
[ "Apache-2.0" ]
null
null
null
# Dataviews.py # from urllib.parse import urlparse import urllib.request, urllib.parse, urllib.error import http.client as http import json from .SdsError import SdsError from .Dataview.Dataview import Dataview from .Dataview.Datagroup import Datagroup from .BaseClient import BaseClient as BaseClient import reque...
44.160772
197
0.651813
1a2f3a96bacadd20f43b044dc038ace0d13d6a37
46,096
py
Python
python/ccxt/async_support/coinbasepro.py
DavidFelsen/ccxt
6497b7da13d2ea3a9e56207b46b8691938b07839
[ "MIT" ]
2
2021-04-15T22:12:33.000Z
2021-09-04T05:29:32.000Z
python/ccxt/async_support/coinbasepro.py
DavidFelsen/ccxt
6497b7da13d2ea3a9e56207b46b8691938b07839
[ "MIT" ]
null
null
null
python/ccxt/async_support/coinbasepro.py
DavidFelsen/ccxt
6497b7da13d2ea3a9e56207b46b8691938b07839
[ "MIT" ]
1
2021-03-18T06:35:12.000Z
2021-03-18T06:35:12.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
40.829052
187
0.497657
a9f95776c6bc20b54664b67e4396acf20f26ed53
2,854
py
Python
src/oscar/apps/dashboard/apps.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/dashboard/apps.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
5
2021-05-28T19:38:28.000Z
2022-03-12T00:45:39.000Z
src/oscar/apps/dashboard/apps.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
from django.apps import apps from django.conf.urls import include, url from django.utils.translation import gettext_lazy as _ from oscar.core.application import OscarDashboardConfig from oscar.core.loading import get_class class DashboardConfig(OscarDashboardConfig): label = 'dashboard' name = 'osc...
46.032258
92
0.63595