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
fe588d285a8f200dc540a4899d4df7262dcfb2fb
222
py
Python
src/even_odd.py
rwisecar/code-katas
479503d28573ed6e0326f5a682a64a600f8158e4
[ "MIT" ]
6
2018-04-25T19:46:55.000Z
2021-06-24T18:06:44.000Z
src/even_odd.py
rwisecar/code-katas
479503d28573ed6e0326f5a682a64a600f8158e4
[ "MIT" ]
null
null
null
src/even_odd.py
rwisecar/code-katas
479503d28573ed6e0326f5a682a64a600f8158e4
[ "MIT" ]
2
2018-05-13T17:34:41.000Z
2021-04-02T21:32:42.000Z
"""A simple program that takes in a number and returns "Even or Odd".""" def even_or_odd(number): """Return 'Even' or 'Odd' if number is even or odd.""" if number % 2 == 0: return "Even" return "Odd"
24.666667
72
0.603604
44766e7885e7c44177510c91be1be0c103b35e00
3,670
py
Python
tools/test_files/test_vault/less_than_10/cuccaroAdder_3b.py
Astlaan/OpenQL
404b3edf4406071992e9ad190303b12e143689a0
[ "Apache-2.0" ]
null
null
null
tools/test_files/test_vault/less_than_10/cuccaroAdder_3b.py
Astlaan/OpenQL
404b3edf4406071992e9ad190303b12e143689a0
[ "Apache-2.0" ]
null
null
null
tools/test_files/test_vault/less_than_10/cuccaroAdder_3b.py
Astlaan/OpenQL
404b3edf4406071992e9ad190303b12e143689a0
[ "Apache-2.0" ]
null
null
null
from openql import openql as ql import os import argparse def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W...
49.594595
270
0.676839
db360ff109d99f219c142ab1d84f9f00cf42703b
3,031
py
Python
tensorflow_addons/activations/gelu_test.py
autoih/addons
82cc77e42195a985419142744ae178d835d15971
[ "Apache-2.0" ]
1
2019-09-08T21:58:07.000Z
2019-09-08T21:58:07.000Z
tensorflow_addons/activations/gelu_test.py
autoih/addons
82cc77e42195a985419142744ae178d835d15971
[ "Apache-2.0" ]
1
2020-07-08T13:38:45.000Z
2020-07-08T13:52:04.000Z
tensorflow_addons/activations/gelu_test.py
autoih/addons
82cc77e42195a985419142744ae178d835d15971
[ "Apache-2.0" ]
4
2020-06-03T07:09:59.000Z
2020-12-18T14:51:56.000Z
# Copyright 2019 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...
37.8875
83
0.711646
59d985a10b609b193cc9c1c179d867492e426b9c
2,064
py
Python
xkbparse/grammar_xkb_symbols.py
svenlr/xkbparse
b509576f6d9098c3ed3c4c9da4d6f23e75a29efd
[ "MIT" ]
null
null
null
xkbparse/grammar_xkb_symbols.py
svenlr/xkbparse
b509576f6d9098c3ed3c4c9da4d6f23e75a29efd
[ "MIT" ]
null
null
null
xkbparse/grammar_xkb_symbols.py
svenlr/xkbparse
b509576f6d9098c3ed3c4c9da4d6f23e75a29efd
[ "MIT" ]
null
null
null
from .grammar_key_desc import * from .grammar_util import IntNumMixin class GroupLanguageDef(IntNumMixin): grammar = "name", "[", ["Group", "group"], peg.attr("__num", re.compile(r"[0-9]+")), "]", \ peg.blank, "=", peg.blank, "\"", peg.name(), "\"", ";", peg.endl class ModifierMapDef: grammar...
32.761905
115
0.604651
4b31756fd14fb34c34328d546ef4e8e906aa52ec
1,485
py
Python
myCompany/myCompany/urls.py
Rom4eg/myCompany
31846a861d8b0560191e2e1d9791f101b88874df
[ "MIT" ]
null
null
null
myCompany/myCompany/urls.py
Rom4eg/myCompany
31846a861d8b0560191e2e1d9791f101b88874df
[ "MIT" ]
null
null
null
myCompany/myCompany/urls.py
Rom4eg/myCompany
31846a861d8b0560191e2e1d9791f101b88874df
[ "MIT" ]
null
null
null
"""myCompany URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
41.25
79
0.691582
9972cafe43dc47a2a25c862719b00b1ad3bc1136
372
py
Python
examples/helloworld/tf_example3/test.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
null
null
null
examples/helloworld/tf_example3/test.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
null
null
null
examples/helloworld/tf_example3/test.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import time import numpy as np tf.compat.v1.disable_eager_execution() def main(): from lpot.experimental import Quantization, common quantizer = Quantization('./conf.yaml') # Do quantization quantizer.model = common.Model('./inception_v1.ckpt') quantized_model = quantize...
18.6
57
0.696237
b16729d0b2a3f5cc91c73fbc185e94c53405636d
3,301
py
Python
imcsdk/mometa/bios/BiosVfExtendedAPIC.py
TetrationAnalytics/imcsdk
d86e47831f294dc9fa5e99b9a92abceac2502d76
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/bios/BiosVfExtendedAPIC.py
TetrationAnalytics/imcsdk
d86e47831f294dc9fa5e99b9a92abceac2502d76
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/bios/BiosVfExtendedAPIC.py
TetrationAnalytics/imcsdk
d86e47831f294dc9fa5e99b9a92abceac2502d76
[ "Apache-2.0" ]
2
2016-05-26T02:05:46.000Z
2017-09-13T05:13:25.000Z
"""This module contains the general information for BiosVfExtendedAPIC ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class BiosVfExtendedAPICConsts: VP_EXTENDED_APIC_DISABLED = "Disabled" VP_EXTENDED_APIC_ENABLED = "E...
45.219178
263
0.63405
ce9fcadd2e47be91d95fe03151a1200f8de84ce2
6,233
py
Python
lbrc_edge/__init__.py
LCBRU/lbrc_edge
ae6dcf0d883c7f02173b61e913f50de7074c4a7e
[ "MIT" ]
null
null
null
lbrc_edge/__init__.py
LCBRU/lbrc_edge
ae6dcf0d883c7f02173b61e913f50de7074c4a7e
[ "MIT" ]
null
null
null
lbrc_edge/__init__.py
LCBRU/lbrc_edge
ae6dcf0d883c7f02173b61e913f50de7074c4a7e
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from datetime import datetime, date import math db = SQLAlchemy() class EdgeSiteStudy(db.Model): __tablename__ = 'edge_site_study' __bind_key__ = 'etl_central' id = db.Column(db.Integer, primary_key=True) project_id = db.Column(db.Integer) iras_number = d...
45.166667
249
0.728542
24c0bf3f2c2bda715266f7fc3ea6a4115d817994
35,085
py
Python
zipline/test_algorithms.py
AustenZhu/zipline
285d06ba7996fb4959b8dd1c1a72fe802661b7ba
[ "Apache-2.0" ]
9
2019-05-18T10:44:48.000Z
2022-01-01T15:12:49.000Z
zipline/test_algorithms.py
miguelyad26/zipline
52b332919e133750dfd8b726b474179f5a989430
[ "Apache-2.0" ]
null
null
null
zipline/test_algorithms.py
miguelyad26/zipline
52b332919e133750dfd8b726b474179f5a989430
[ "Apache-2.0" ]
10
2019-05-18T10:58:55.000Z
2022-03-24T13:37:17.000Z
# # Copyright 2014 Quantopian, 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 wr...
28.687653
79
0.611657
13ddff4bc6425c405a8dfd46a04a07bca4ff06c6
6,334
py
Python
examples/mnist/mnist-autobatch.py
kashif/dynet
95145a3808c5dd54b17eb9ed109c5815142a9b6c
[ "Apache-2.0" ]
null
null
null
examples/mnist/mnist-autobatch.py
kashif/dynet
95145a3808c5dd54b17eb9ed109c5815142a9b6c
[ "Apache-2.0" ]
1
2020-07-01T18:31:27.000Z
2020-07-01T18:31:27.000Z
examples/mnist/mnist-autobatch.py
kashif/dynet
95145a3808c5dd54b17eb9ed109c5815142a9b6c
[ "Apache-2.0" ]
1
2018-12-26T19:04:47.000Z
2018-12-26T19:04:47.000Z
import time import random import os import struct import argparse import numpy as np import dynet as dy # To run this, download the four files from http://yann.lecun.com/exdb/mnist/ # and gunzip them into a single path. Pass this path to the program with the # --path option. You will also want to run with --dynet_aut...
35.988636
78
0.603726
9f8cd1d5192df83f09417e0cc47662620fc5202b
2,368
py
Python
venv/Lib/site-packages/networkx/readwrite/gpickle.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
venv/Lib/site-packages/networkx/readwrite/gpickle.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
25
2020-11-16T15:36:41.000Z
2021-06-01T05:15:31.000Z
venv/Lib/site-packages/networkx/readwrite/gpickle.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
""" ************** Pickled Graphs ************** Read and write NetworkX graphs as Python pickles. "The pickle module implements a fundamental, but powerful algorithm for serializing and de-serializing a Python object structure. "Pickling" is the process whereby a Python object hierarchy is converted into a byte strea...
26.021978
77
0.664274
b06c3c8a8497264008c019b076327b42f4bc8ea0
4,623
py
Python
Prediction based on convolutional neural network/code/reference/MA_L2MNIST.py
Asurada2015/Test
14d92c9cb88d293340d76b20d31ca937052addb6
[ "Apache-2.0" ]
null
null
null
Prediction based on convolutional neural network/code/reference/MA_L2MNIST.py
Asurada2015/Test
14d92c9cb88d293340d76b20d31ca937052addb6
[ "Apache-2.0" ]
null
null
null
Prediction based on convolutional neural network/code/reference/MA_L2MNIST.py
Asurada2015/Test
14d92c9cb88d293340d76b20d31ca937052addb6
[ "Apache-2.0" ]
1
2018-11-16T03:46:14.000Z
2018-11-16T03:46:14.000Z
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data INPUT_NODE = 784 # 输入节点 OUTPUT_NODE = 10 # 输出节点 LAYER1_NODE = 500 # 隐藏层数 BATCH_SIZE = 100 # 每次batch打包的样本个数 # 模型相关的参数 LEARNING_RATE_BASE = 0.8 # 基础学习率 LEARNING_RATE_DECAY = 0.99 # 学习率衰减率 REGULARAZTION_RATE = 0.0001 # 描述模型复杂度的正则化...
37.585366
116
0.718365
961cbd070785929dc784fa94f82f3498e4fa98aa
931
py
Python
2020/aoc25.py
wolfgangmuender/AdventOfCode
3956c245f6d3e789cb5424ac54832ebcfc03eb21
[ "Apache-2.0" ]
null
null
null
2020/aoc25.py
wolfgangmuender/AdventOfCode
3956c245f6d3e789cb5424ac54832ebcfc03eb21
[ "Apache-2.0" ]
null
null
null
2020/aoc25.py
wolfgangmuender/AdventOfCode
3956c245f6d3e789cb5424ac54832ebcfc03eb21
[ "Apache-2.0" ]
null
null
null
with open("input/input25.txt") as f: content = f.read().splitlines() card_key = int(content[0]) door_key = int(content[1]) subject_number = 7 def find_loop_size(the_subject_number, the_key): curr_loop_size = 0 curr = 1 while curr != the_key: curr *= the_subject_number curr = curr % 20...
27.382353
70
0.737916
3522de3f3e5bb940bbd0b93fe18edd2ab60d890b
3,229
py
Python
version_2.0/dist_modules/HelpScripts/ChromeInstanceHandler.py
markoradenkovic/AlienWorldsBot
ad077b1826e201cf5edff11d2a6bd282c5fa9f76
[ "MIT" ]
2
2022-02-25T09:12:07.000Z
2022-03-22T19:45:43.000Z
version_2.0/dist_modules/HelpScripts/ChromeInstanceHandler.py
markoradenkovic/AlienWorldsBot
ad077b1826e201cf5edff11d2a6bd282c5fa9f76
[ "MIT" ]
null
null
null
version_2.0/dist_modules/HelpScripts/ChromeInstanceHandler.py
markoradenkovic/AlienWorldsBot
ad077b1826e201cf5edff11d2a6bd282c5fa9f76
[ "MIT" ]
1
2022-03-08T01:34:14.000Z
2022-03-08T01:34:14.000Z
import os import pathlib import shutil import time import traceback from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from HelpScripts import BrowserWindowHandler as bwh # WHEN BUILDING WITH PY2EXE, .parent.parent.parent # WHEN RUNNING IN PYCHARM .parent.parent path = str(pathlib....
38.903614
114
0.643853
bb4adc643f0a5c1bece0ecf7ea09516d3b783bd1
15,487
py
Python
jobfunnel/jobfunnel.py
awadin/JobFunnel
d67c49be217497e79a0f6d87abd9d2512501c5a6
[ "MIT" ]
null
null
null
jobfunnel/jobfunnel.py
awadin/JobFunnel
d67c49be217497e79a0f6d87abd9d2512501c5a6
[ "MIT" ]
null
null
null
jobfunnel/jobfunnel.py
awadin/JobFunnel
d67c49be217497e79a0f6d87abd9d2512501c5a6
[ "MIT" ]
null
null
null
# Paul McInnis 2018 # writes pickles to master list path and applies search filters import csv import json import logging import os import pickle import random import re import sys from collections import OrderedDict from concurrent.futures import as_completed from datetime import date from time import time from typi...
39.608696
79
0.590366
ea31c98faaf7427c9f2fbd4232b7055d89727b22
692
py
Python
tests/runtime/modglobals.py
dcramer/jinja1-djangosupport
755287f155c18ccabe69f1318bacdaca14f55da3
[ "BSD-3-Clause" ]
2
2015-09-24T19:53:35.000Z
2015-11-06T10:47:02.000Z
tests/runtime/modglobals.py
dcramer/jinja1-djangosupport
755287f155c18ccabe69f1318bacdaca14f55da3
[ "BSD-3-Clause" ]
null
null
null
tests/runtime/modglobals.py
dcramer/jinja1-djangosupport
755287f155c18ccabe69f1318bacdaca14f55da3
[ "BSD-3-Clause" ]
null
null
null
# test file for block super support import jdebug from jinja import Environment, DictLoader env = Environment(loader=DictLoader({ 'a': '''\ <title>{{ title|e }}</title> <body> {% block body %}Default{% endblock %} </body> ''', 'b': ''' {% set foo = 42 %} ''', 'c': ''' {% extends 'a' %} {% if true %} ...
18.210526
42
0.539017
db82c75c1d636c90324ffc30ceefb6f349719410
90,886
py
Python
executor/__init__.py
eyJhb/python-executor
ce71441199613d94441ff31d26f8fd5d48210c6e
[ "MIT" ]
null
null
null
executor/__init__.py
eyJhb/python-executor
ce71441199613d94441ff31d26f8fd5d48210c6e
[ "MIT" ]
null
null
null
executor/__init__.py
eyJhb/python-executor
ce71441199613d94441ff31d26f8fd5d48210c6e
[ "MIT" ]
null
null
null
# vim: fileencoding=utf-8 # Programmer friendly subprocess wrapper. # # Author: Peter Odding <peter@peterodding.com> # Last Change: October 11, 2018 # URL: https://executor.readthedocs.io """ Core functionality of the `executor` package. If you're looking for an easy way to run external commands from Python take a l...
41.236842
116
0.629734
12a61e047b7506b90d91bb72915d439dbc0ccfc0
1,089
py
Python
dev-utils/_autotools/icoutils/icoutils.py
Inokinoki/craft-blueprints-kde
24eb81cac04d7fe0256d3251a3ca7e3b3219190b
[ "BSD-2-Clause" ]
null
null
null
dev-utils/_autotools/icoutils/icoutils.py
Inokinoki/craft-blueprints-kde
24eb81cac04d7fe0256d3251a3ca7e3b3219190b
[ "BSD-2-Clause" ]
1
2020-01-10T01:06:16.000Z
2020-01-10T01:06:16.000Z
dev-utils/_autotools/icoutils/icoutils.py
Inokinoki/craft-blueprints-kde
24eb81cac04d7fe0256d3251a3ca7e3b3219190b
[ "BSD-2-Clause" ]
2
2020-01-02T18:22:12.000Z
2020-08-05T13:39:21.000Z
import info class subinfo(info.infoclass): def setTargets( self ): for ver in ["0.32.3"]: self.targets[ ver ] = f"http://savannah.nongnu.org/download/icoutils/icoutils-{ver}.tar.bz2" self.targetInstSrc[ ver ] = f"icoutils-{ver}" self.targetDigests["0.32.3"] = (['17abe02d0...
40.333333
160
0.69146
e24b6d2e1bbf144ab70fe3ca9d4732f4e4904dff
43,834
py
Python
applications/admin/languages/nl.py
misl6/web2py
4191d4c48c37c66cc7eb293b610a6b6e86870571
[ "BSD-3-Clause" ]
1
2019-06-30T18:37:09.000Z
2019-06-30T18:37:09.000Z
applications/admin/languages/nl.py
misl6/web2py
4191d4c48c37c66cc7eb293b610a6b6e86870571
[ "BSD-3-Clause" ]
null
null
null
applications/admin/languages/nl.py
misl6/web2py
4191d4c48c37c66cc7eb293b610a6b6e86870571
[ "BSD-3-Clause" ]
1
2020-06-01T21:17:02.000Z
2020-06-01T21:17:02.000Z
# -*- coding: utf-8 -*- { '!langcode!': 'nl', '!langname!': 'Nederlands', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is een optionele expressie zoals "veld1=\'nieuwewaarde\'". Je kan de resultaten van een JOIN niet updaten of verwijderen...
57.752306
825
0.720103
edba05c6ece0e96cee4a1af1ee1752dc7c8f9340
623
py
Python
mahjong/log/logger.py
feiyaaaa/mahjong
886028e03c991cfa3904b226d473b087ce819565
[ "MIT" ]
null
null
null
mahjong/log/logger.py
feiyaaaa/mahjong
886028e03c991cfa3904b226d473b087ce819565
[ "MIT" ]
null
null
null
mahjong/log/logger.py
feiyaaaa/mahjong
886028e03c991cfa3904b226d473b087ce819565
[ "MIT" ]
null
null
null
import logging log = logging.getLogger('mahjong') def logger(): return log class Logger(object): @staticmethod def init(): logger = logging.getLogger('mahjong') # 创建一个logger logger.setLevel(logging.DEBUG) # 创建一个handler,用于输出到控制台 ch = logging.StreamHandler() ...
20.766667
108
0.603531
1d2bf3ea5af04d79647fbab8b7ffa2b5ad7b35c1
2,053
py
Python
src/agoat/jimp_code_term_extractor.py
tos-kamiya/agoat
594b60c01012ea73eebc0d5f63a3c707d7c8f111
[ "MIT" ]
1
2018-10-29T12:54:23.000Z
2018-10-29T12:54:23.000Z
src/agoat/jimp_code_term_extractor.py
tos-kamiya/agoat
594b60c01012ea73eebc0d5f63a3c707d7c8f111
[ "MIT" ]
null
null
null
src/agoat/jimp_code_term_extractor.py
tos-kamiya/agoat
594b60c01012ea73eebc0d5f63a3c707d7c8f111
[ "MIT" ]
null
null
null
# coding: utf-8 import sys from collections import namedtuple from ._utilities import sort_uniq from . import jimp_parser as jp from . import _jimp_code_body_to_tree_elem as jcbte Summary = namedtuple("Summary", "callees, literals") class SummaryBuilder(object): def __init__(self): self.callees = []...
25.6625
67
0.668777
61a3a6c5edd1d312859a6954e20d4ed627699e4e
398
py
Python
panda_utils.py
glennmatlin/pyutils
26779af0aee25c47201bd9b1bf21f213dcc6cfa8
[ "MIT" ]
null
null
null
panda_utils.py
glennmatlin/pyutils
26779af0aee25c47201bd9b1bf21f213dcc6cfa8
[ "MIT" ]
null
null
null
panda_utils.py
glennmatlin/pyutils
26779af0aee25c47201bd9b1bf21f213dcc6cfa8
[ "MIT" ]
null
null
null
from pathlib import Path import pandas as pd from typing import List def concat_many_csvs(paths: List[Path]) -> pd.DataFrame: """ Concatenate many csv files into one dataframe. :param paths: :return: """ data = [] for path in paths: df = pd.read_csv(path, index_col=None, header=0) ...
23.411765
56
0.653266
d5d59275ed5d53ddb7f130ad4294bb03817da2fa
5,456
py
Python
ssltsc/architectures/fcn.py
Goschjann/ssltsc
08d6b1bf711bb1c8f19f9bfb66a98d4e423e932e
[ "MIT" ]
5
2021-11-12T07:22:54.000Z
2022-03-16T22:43:17.000Z
ssltsc/architectures/fcn.py
Goschjann/ssltsc
08d6b1bf711bb1c8f19f9bfb66a98d4e423e932e
[ "MIT" ]
1
2022-03-16T13:39:26.000Z
2022-03-16T13:39:26.000Z
ssltsc/architectures/fcn.py
Goschjann/ssltsc
08d6b1bf711bb1c8f19f9bfb66a98d4e423e932e
[ "MIT" ]
1
2022-02-27T12:08:17.000Z
2022-02-27T12:08:17.000Z
import torch from torch import nn from ssltsc.architectures.ladder_utils import Combinator1d, add_gaussian_noise class LadderFCN(nn.Module): def __init__(self, n_classes, channels, return_hidden_states=False, verbose=False): super(LadderFCN, self).__init__() self.n_classes = n_cla...
42.294574
132
0.664223
cbfc5952acde0fc44484068ca38ce5b37247b50b
1,725
py
Python
main.py
Glass-Paramedic/Discord-Group-DM-Spammer
27ad7c47347957ff03bc807c5c588b7f345a93e4
[ "Unlicense" ]
2
2022-01-17T10:41:57.000Z
2022-01-20T23:36:19.000Z
main.py
Glass-Paramedic/Discord-Group-DM-Spammer
27ad7c47347957ff03bc807c5c588b7f345a93e4
[ "Unlicense" ]
null
null
null
main.py
Glass-Paramedic/Discord-Group-DM-Spammer
27ad7c47347957ff03bc807c5c588b7f345a93e4
[ "Unlicense" ]
null
null
null
# Cat Mafia go brrrrrr import requests, json, time, random recipients = [] token = input("Input ur token fam..") print("Input the ID's of the users you want to spam, one by one, pressing [ENTER] after each ID. (NO more than 8 IDs and no less than 2) DO NOT INPUT YOUR OWN ID ") while True: ide = input("Input user...
33.823529
164
0.591884
69c469fbdb8f35f46c602fa87376f5bb90bf1150
11,360
py
Python
pyleecan/Classes/LamSlot.py
helene-t/pyleecan
8362de9b0e32b346051b38192e07f3a6974ea9aa
[ "Apache-2.0" ]
null
null
null
pyleecan/Classes/LamSlot.py
helene-t/pyleecan
8362de9b0e32b346051b38192e07f3a6974ea9aa
[ "Apache-2.0" ]
null
null
null
pyleecan/Classes/LamSlot.py
helene-t/pyleecan
8362de9b0e32b346051b38192e07f3a6974ea9aa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """File generated according to Generator/ClassesRef/Machine/LamSlot.csv WARNING! All changes made in this file will be lost! """ from os import linesep from logging import getLogger from ._check import check_var, raise_ from ..Functions.get_logger import get_logger from ..Functions.save import ...
32.181303
88
0.572271
b3d892d335ab53b5fa9b6f32d8cc0f5e65d59bbe
11,487
py
Python
pyopengles2/__init__.py
realitix/pyopengles2
09c774d7fb6faef9d4b786d468bd989ad944aa82
[ "Apache-2.0" ]
null
null
null
pyopengles2/__init__.py
realitix/pyopengles2
09c774d7fb6faef9d4b786d468bd989ad944aa82
[ "Apache-2.0" ]
null
null
null
pyopengles2/__init__.py
realitix/pyopengles2
09c774d7fb6faef9d4b786d468bd989ad944aa82
[ "Apache-2.0" ]
null
null
null
from pyopengles2._pyopengles2 import ffi, lib GL_DEPTH_BUFFER_BIT = 0x00000100 GL_STENCIL_BUFFER_BIT = 0x00000400 GL_COLOR_BUFFER_BIT = 0x00004000 GL_FALSE = 0 GL_TRUE = 1 GL_POINTS = 0x0000 GL_LINES = 0x0001 GL_LINE_LOOP = 0x0002 GL_LINE_STRIP = 0x0003 GL_TRIANGLES = 0x0004 GL_TRIANGLE_STRIP = 0x0005 GL_TRIANGLE_FAN ...
25.755605
84
0.809872
5fb7e06be8fc1cf45676d51fa4e5938043c4af3b
403
py
Python
public_python/wsgi.py
radoslawdabrowski/personal-website
b3d4f92ea51b40b104449259a376134aeb11766b
[ "MIT" ]
1
2019-03-13T15:42:33.000Z
2019-03-13T15:42:33.000Z
public_python/wsgi.py
radoslawdabrowski/personal-website-framework
c33f16811caa2aafdfd84c22af8c37ee0ab97720
[ "Apache-2.0" ]
92
2019-12-04T22:24:35.000Z
2022-03-12T00:11:21.000Z
public_python/wsgi.py
radoslawdabrowski/personal-website
b3d4f92ea51b40b104449259a376134aeb11766b
[ "MIT" ]
1
2019-05-07T21:23:57.000Z
2019-05-07T21:23:57.000Z
""" WSGI config for public_python project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
c8d869bedfca3aa67e78406b45e79b66edc8fe4b
10,837
py
Python
backend/tests/api/projects/test_list.py
dmitriyvek/Tracker
b2903d0e980c8480e9c9cbecbfa3987997c7f04e
[ "MIT" ]
null
null
null
backend/tests/api/projects/test_list.py
dmitriyvek/Tracker
b2903d0e980c8480e9c9cbecbfa3987997c7f04e
[ "MIT" ]
null
null
null
backend/tests/api/projects/test_list.py
dmitriyvek/Tracker
b2903d0e980c8480e9c9cbecbfa3987997c7f04e
[ "MIT" ]
null
null
null
from base64 import b64decode, b64encode from tests.conftest import NUMBER_OF_PROJECTS from tests.services import make_request_coroutines base_query = ''' {{ projects {{ list{params} {{ edges {{ cursor node {{ id ...
34.294304
73
0.645843
5bac9167fcffd3c762c1de9cda246baf381a3eca
893
py
Python
tfx/orchestration/experimental/core/constants.py
stjordanis/tfx
4749388de03230361f2b7b733a657b3bc18b4152
[ "Apache-2.0" ]
1,813
2019-02-04T17:17:30.000Z
2022-03-29T13:39:30.000Z
tfx/orchestration/experimental/core/constants.py
stjordanis/tfx
4749388de03230361f2b7b733a657b3bc18b4152
[ "Apache-2.0" ]
2,710
2019-02-14T00:41:00.000Z
2022-03-31T07:23:00.000Z
tfx/orchestration/experimental/core/constants.py
stjordanis/tfx
4749388de03230361f2b7b733a657b3bc18b4152
[ "Apache-2.0" ]
731
2019-02-04T17:59:18.000Z
2022-03-31T06:45:51.000Z
# Copyright 2021 Google LLC. 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 a...
42.52381
74
0.783875
cb1ce2914980222e759530cdddddce009a13d87e
639
py
Python
blender/arm/logicnode/canvas_set_scale.py
ValtoGameEngines/Armory
ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32
[ "Zlib" ]
1
2021-03-17T05:51:45.000Z
2021-03-17T05:51:45.000Z
blender/arm/logicnode/canvas_set_scale.py
ValtoGameEngines/Armory
ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32
[ "Zlib" ]
1
2019-12-13T08:16:20.000Z
2019-12-13T08:16:20.000Z
blender/arm/logicnode/canvas_set_scale.py
ValtoGameEngines/Armory
ad3d3c63e64e9225e62b414b7ec4dd9fb93fab32
[ "Zlib" ]
1
2020-06-29T07:54:21.000Z
2020-06-29T07:54:21.000Z
import bpy from bpy.props import * from bpy.types import Node, NodeSocket from arm.logicnode.arm_nodes import * class CanvasSetScaleNode(Node, ArmLogicTreeNode): '''Set canvas element scale''' bl_idname = 'LNCanvasSetScaleNode' bl_label = 'Canvas Set Scale' bl_icon = 'QUESTION' def init(self, cont...
31.95
54
0.699531
8ddd3de17cce6725a56002331b87345729da7fba
223
py
Python
lib/bcolors.py
idealline/Vxscan
4f94ef160b06c72ad6f771312b4b900d578bb5c3
[ "Apache-2.0" ]
3
2020-09-16T15:55:32.000Z
2020-09-16T15:55:35.000Z
lib/bcolors.py
shadow1ng/Vxscan
52d979130f6e139abe3937d1bdd22420afcc0ae8
[ "Apache-2.0" ]
null
null
null
lib/bcolors.py
shadow1ng/Vxscan
52d979130f6e139abe3937d1bdd22420afcc0ae8
[ "Apache-2.0" ]
2
2020-01-04T03:57:45.000Z
2020-04-26T11:57:24.000Z
class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' RED = '\033[31m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m'
22.3
25
0.506726
6372d44e88a00cdabb9d15eeab2ac34a8591ae99
18,850
py
Python
L1Trigger/DTTriggerPhase2/test/macros/compare_groupings_StdToBayes.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
L1Trigger/DTTriggerPhase2/test/macros/compare_groupings_StdToBayes.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
L1Trigger/DTTriggerPhase2/test/macros/compare_groupings_StdToBayes.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#!/bin/env python # # PyROOT study of standard selector performance using sim-hit matching # to identify fake and signal muons # import os, re, ROOT, sys, pickle, time from pprint import pprint from math import * from array import array from DataFormats.FWLite import Events, Handle import numpy as np ## ## User Inpu...
51.785714
824
0.576286
ed43429853cd6dd511dbac567ae19692eda4446d
2,615
py
Python
00_Code/01_LeetCode/874_WalkingRobotSimulation.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
1
2017-06-11T04:57:07.000Z
2017-06-11T04:57:07.000Z
00_Code/01_LeetCode/874_WalkingRobotSimulation.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
00_Code/01_LeetCode/874_WalkingRobotSimulation.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
""" A robot on an infinite grid starts at point (0, 0) and faces north. The robot can receive one of three possible types of commands: -2: turn left 90 degrees -1: turn right 90 degrees 1 <= x <= 9: move forward x units Some of the grid squares are obstacles. The i-th obstacle is at grid point (obstacles[i][0], obst...
33.101266
148
0.524283
451e08c49d3d9ee6b2136fffd8433fb2b9f1fc17
645
py
Python
archive/date_2022_02_12_time_11_51_05.py
shambu09/cp-templates
04f938355d620b3c27e9fcae2de4eac9066e1b82
[ "MIT" ]
null
null
null
archive/date_2022_02_12_time_11_51_05.py
shambu09/cp-templates
04f938355d620b3c27e9fcae2de4eac9066e1b82
[ "MIT" ]
null
null
null
archive/date_2022_02_12_time_11_51_05.py
shambu09/cp-templates
04f938355d620b3c27e9fcae2de4eac9066e1b82
[ "MIT" ]
null
null
null
""" input: 2 3 3 1 2 4 1 3 4 3 2 1 2 3 2 3 output: 3 1 """ def largest_rectangle(n, m, a, b): memo = {} for i in a: memo[i] = memo.get(i, 0) + (i + 0.5) for i in b: memo[i] = memo.get(i, 0) - (i + 0.5) idx = 0.5 maxArea = 0 for i in memo: if idx == 0.5 and memo[i] == 0...
15.731707
44
0.475969
0628240f2c1f0b29b96bd63672df1df1b1adff24
602
py
Python
brain.py
gregjw/Asimarkov
045d6c326cc9d7e0ffc2698ad661c93910f1860c
[ "MIT" ]
3
2016-11-01T17:33:14.000Z
2019-12-20T07:35:20.000Z
brain.py
gregjw/Asimarkov
045d6c326cc9d7e0ffc2698ad661c93910f1860c
[ "MIT" ]
null
null
null
brain.py
gregjw/Asimarkov
045d6c326cc9d7e0ffc2698ad661c93910f1860c
[ "MIT" ]
null
null
null
import markovify import nltk from nltk.corpus import treebank import glob, os import time os.chdir("library") file1 = open('megacorpus.txt','a') for file in glob.glob("*.txt"): with open(file) as f: text = f.read() file1.write(text+'\n') file1.close(); file1 = open('megacorpus.txt') text = file1...
19.419355
47
0.666113
098e0d7700cb1bd083b763e2386a3f4e425bf678
1,742
py
Python
tests/python/unittest/test_pass_ir_transform.py
zhanghaohit/incubator-tvm
ee0af843f3c5a3429e888079afb5f30789bd9bee
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/python/unittest/test_pass_ir_transform.py
zhanghaohit/incubator-tvm
ee0af843f3c5a3429e888079afb5f30789bd9bee
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/python/unittest/test_pass_ir_transform.py
zhanghaohit/incubator-tvm
ee0af843f3c5a3429e888079afb5f30789bd9bee
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.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...
37.869565
71
0.664753
7689c481b324101c4c510184b7be77e9e73f2441
5,349
py
Python
pysnmp-with-texts/GSM7324-MGMT-SECURITY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/GSM7324-MGMT-SECURITY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/GSM7324-MGMT-SECURITY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module GSM7324-MGMT-SECURITY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/GSM7324-MGMT-SECURITY-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:20:15 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3....
118.866667
477
0.783511
853fa314a05a57a8157fa352a3fa996c81e411b1
952
py
Python
odc/dscache/_text.py
opendatacube/odc-dscache
c5955d811bdecc2ed58d432cfc36054f663b3c49
[ "Apache-2.0" ]
2
2021-11-09T21:06:16.000Z
2022-03-31T23:42:03.000Z
odc/dscache/_text.py
opendatacube/odc-dscache
c5955d811bdecc2ed58d432cfc36054f663b3c49
[ "Apache-2.0" ]
3
2021-11-03T08:20:27.000Z
2021-12-13T23:53:38.000Z
odc/dscache/_text.py
opendatacube/odc-dscache
c5955d811bdecc2ed58d432cfc36054f663b3c49
[ "Apache-2.0" ]
null
null
null
from typing import Tuple, Union def split_and_check( s: str, separator: str, n: Union[int, Tuple[int, ...]] ) -> Tuple[str, ...]: """Turn string into tuple, checking that there are exactly as many parts as expected. :param s: String to parse :param separator: Separator character :param n: Expected...
31.733333
89
0.612395
b477faf93e0c3cc741c1db254fad8fb55e454e6d
5,988
py
Python
lib/rpistream/rpistream/streamclient.py
thatguy1234510/rpi_stream_img
d3a2cc346d9ae5303b0d8990ea7a0ea8c6d85637
[ "MIT" ]
2
2019-11-04T09:33:44.000Z
2021-02-28T16:06:30.000Z
lib/rpistream/rpistream/streamclient.py
thatguy1234510/rpi_stream_img
d3a2cc346d9ae5303b0d8990ea7a0ea8c6d85637
[ "MIT" ]
8
2018-08-01T22:41:32.000Z
2018-10-15T21:48:33.000Z
lib/rpistream/rpistream/streamclient.py
thatguy1234510/rpi_stream_img
d3a2cc346d9ae5303b0d8990ea7a0ea8c6d85637
[ "MIT" ]
null
null
null
import socket import numpy as np import io import cv2 import zstandard import atexit from netutils import * import sys import platform class Client: def __init__(self, **kwargs): #self.os=platform.system() self.verbose = kwargs.get("verbose", False) self.promoteErrors=kwargs.get("promot...
33.640449
141
0.56847
d64497f2d0ed0f1a53333303de5f65a946207fc8
4,010
py
Python
RecoTracker/DeDx/python/dedxEstimators_cff.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
2
2017-09-29T13:32:51.000Z
2019-01-31T00:40:58.000Z
RecoTracker/DeDx/python/dedxEstimators_cff.py
gputtley/cmssw
c1ef8454804e4ebea8b65f59c4a952a6c94fde3b
[ "Apache-2.0" ]
26
2018-10-30T12:47:58.000Z
2022-03-29T08:39:00.000Z
RecoTracker/DeDx/python/dedxEstimators_cff.py
p2l1pfp/cmssw
9bda22bf33ecf18dd19a3af2b3a8cbdb1de556a9
[ "Apache-2.0" ]
3
2017-06-07T15:22:28.000Z
2019-02-28T20:48:30.000Z
import FWCore.ParameterSet.Config as cms dedxHitInfo = cms.EDProducer("DeDxHitInfoProducer", tracks = cms.InputTag("generalTracks"), minTrackHits = cms.uint32(0), minTrackPt = cms.double(10), minTrackPtPrescale = cms.double(0.5), # minimal pT for prescaled low pT trac...
41.340206
179
0.710474
0346af9cbb22ae4287c07ad53702d5ad4066d9b2
482
py
Python
unittest/scripts/py_dev_api_examples/working_with_collections/Collection_find.py
mueller/mysql-shell
29bafc5692bd536a12c4e41c54cb587375fe52cf
[ "Apache-2.0" ]
119
2016-04-14T14:16:22.000Z
2022-03-08T20:24:38.000Z
unittest/scripts/py_dev_api_examples/working_with_collections/Collection_find.py
mueller/mysql-shell
29bafc5692bd536a12c4e41c54cb587375fe52cf
[ "Apache-2.0" ]
9
2017-04-26T20:48:42.000Z
2021-09-07T01:52:44.000Z
unittest/scripts/py_dev_api_examples/working_with_collections/Collection_find.py
mueller/mysql-shell
29bafc5692bd536a12c4e41c54cb587375fe52cf
[ "Apache-2.0" ]
51
2016-07-20T05:06:48.000Z
2022-03-09T01:20:53.000Z
# Use the collection 'my_collection' myColl = db.get_collection('my_collection') # Find a single document that has a field 'name' starts with an 'S' docs = myColl.find('name like :param').limit(1).bind('param', 'S%').execute() print(docs.fetch_one()) # Get all documents with a field 'name' that starts with a...
30.125
78
0.678423
f17d47450bf10b3f8a68d7eade70a9f09eb39d62
1,036
py
Python
Labs/lab2-skel/task2.py
andreicalin-georgescu/ASC
e60ba13840806de68c5bc83ca8a1b0eed33d7e9a
[ "MIT" ]
null
null
null
Labs/lab2-skel/task2.py
andreicalin-georgescu/ASC
e60ba13840806de68c5bc83ca8a1b0eed33d7e9a
[ "MIT" ]
null
null
null
Labs/lab2-skel/task2.py
andreicalin-georgescu/ASC
e60ba13840806de68c5bc83ca8a1b0eed33d7e9a
[ "MIT" ]
null
null
null
#! /usr/local/bin/python3.8 """ Basic thread handling exercise: Use the Thread class to create and run more than 10 threads which print their name and a random number they receive as argument. The number of threads must be received from the command line. e.g. Hello, I'm Thread-96 and I received the nu...
26.564103
99
0.630309
0aa64d986b1bf6cd666002f334d2012529a531f5
799
py
Python
django-server/django_server/urls.py
KilledByNLP/twitter-unpoptefy-server
f51665322c4e7934fac52f560a5d965d55c31914
[ "MIT" ]
null
null
null
django-server/django_server/urls.py
KilledByNLP/twitter-unpoptefy-server
f51665322c4e7934fac52f560a5d965d55c31914
[ "MIT" ]
null
null
null
django-server/django_server/urls.py
KilledByNLP/twitter-unpoptefy-server
f51665322c4e7934fac52f560a5d965d55c31914
[ "MIT" ]
null
null
null
"""django_server URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/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...
33.291667
77
0.715895
dcbbdeddf311582b15b894770dc365fc8b82af25
1,158
py
Python
nova/policies/availability_zone.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
1
2019-07-29T10:30:24.000Z
2019-07-29T10:30:24.000Z
nova/policies/availability_zone.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/policies/availability_zone.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
2
2015-12-04T23:51:46.000Z
2016-06-07T20:01:59.000Z
# Copyright 2016 Cloudbase Solutions Srl # 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 r...
29.692308
78
0.719344
debf5fb3f5aeefdb631c4565064fa7b2a271fb5d
1,607
py
Python
src/ggrc/converters/handlers/assessment_template.py
pbedn/ggrc-core
12ae4720a430730835f1d02def62c0f6ef453521
[ "ECL-2.0", "Apache-2.0" ]
2
2020-08-26T06:56:01.000Z
2021-07-08T13:56:20.000Z
src/ggrc/converters/handlers/assessment_template.py
pbedn/ggrc-core
12ae4720a430730835f1d02def62c0f6ef453521
[ "ECL-2.0", "Apache-2.0" ]
4
2021-02-02T23:04:30.000Z
2022-03-02T09:54:47.000Z
src/ggrc/converters/handlers/assessment_template.py
pbedn/ggrc-core
12ae4720a430730835f1d02def62c0f6ef453521
[ "ECL-2.0", "Apache-2.0" ]
1
2016-08-23T10:51:19.000Z
2016-08-23T10:51:19.000Z
# Copyright (C) 2019 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Handlers for special object mappings.""" from ggrc import db from ggrc.converters.handlers import handlers from ggrc.converters import errors from ggrc.models.hooks import assessment as asmt_hooks clas...
34.191489
78
0.738021
9b5024c815fa167c91c976e7126f19b0dfa91c8c
18,885
py
Python
src/typecode/_vendor/pygments/lexers/theorem.py
tardyp/typecode
45011e9fc72ed149aeba554665487d5505e0fb00
[ "Apache-2.0" ]
null
null
null
src/typecode/_vendor/pygments/lexers/theorem.py
tardyp/typecode
45011e9fc72ed149aeba554665487d5505e0fb00
[ "Apache-2.0" ]
null
null
null
src/typecode/_vendor/pygments/lexers/theorem.py
tardyp/typecode
45011e9fc72ed149aeba554665487d5505e0fb00
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ pygments.lexers.theorem ~~~~~~~~~~~~~~~~~~~~~~~ Lexers for theorem-proving languages. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from typecode._vendor.pygments.lexer import RegexLexer, defau...
41.323851
93
0.508764
8e24a51089d14ab6f744068746460e7929c5b2c5
690
py
Python
server/server-flask/app/docs/student/school_data/meal.py
DSM-DMS/Project-DMS-Web
73a5d8fc2310bca90169414abf50f541ca0724c7
[ "MIT" ]
11
2017-07-04T07:44:07.000Z
2017-09-19T12:56:55.000Z
server/server-flask/app/docs/student/school_data/meal.py
DSM-DMS/DMS
73a5d8fc2310bca90169414abf50f541ca0724c7
[ "MIT" ]
null
null
null
server/server-flask/app/docs/student/school_data/meal.py
DSM-DMS/DMS
73a5d8fc2310bca90169414abf50f541ca0724c7
[ "MIT" ]
2
2017-10-23T06:11:16.000Z
2017-10-26T03:27:57.000Z
MEAL_GET = { 'tags': ['학교'], 'description': '급식 정보 조회', 'parameters': [ { 'name': 'date', 'description': '급식 정보를 조회할 날짜(YYYY-MM-DD)', 'in': 'path', 'type': 'str', 'required': True } ], 'responses': { '200': { ...
23.793103
58
0.323188
e6236bb1c43fb9a2755d6c6b95305e051a74ebe7
6,320
py
Python
elections_2002.py
HasanIjaz-HB/D-Hondt-method-II
d5f40958535d8e3255a33a3fbc563db783ac7840
[ "MIT" ]
null
null
null
elections_2002.py
HasanIjaz-HB/D-Hondt-method-II
d5f40958535d8e3255a33a3fbc563db783ac7840
[ "MIT" ]
null
null
null
elections_2002.py
HasanIjaz-HB/D-Hondt-method-II
d5f40958535d8e3255a33a3fbc563db783ac7840
[ "MIT" ]
null
null
null
partyNames = ["Adalet ve Kalkınma Partisi", "Cumhuriyet Halk Partisi", "Doğru Yol Partisi", "Milliyetçi Hareket Partisi", "Genç Parti"] countrywidePercentages = [34.28, 19.39, 9.54, 8.36, 7.25] electoralDistricts =["Adana", "Adıyaman", "Afyon", "Ağrı", "Aksaray", "Amasya", "Ankara", "Antalya...
67.234043
871
0.443038
2ff61cf3f41b6b1011068cf80faef67f7f31cf3d
5,480
py
Python
stdplugins/pmpermit.py
kaalhoonme/PepeBot
d1678f3c5e57adb8c9d2e1bc5a54568ad2938258
[ "Apache-2.0" ]
2
2021-02-06T14:32:50.000Z
2022-02-23T07:16:52.000Z
stdplugins/pmpermit.py
kaalhoonme/PepeBot
d1678f3c5e57adb8c9d2e1bc5a54568ad2938258
[ "Apache-2.0" ]
null
null
null
stdplugins/pmpermit.py
kaalhoonme/PepeBot
d1678f3c5e57adb8c9d2e1bc5a54568ad2938258
[ "Apache-2.0" ]
5
2020-05-18T08:22:01.000Z
2022-02-23T07:25:00.000Z
"""Personal Message Spammer Available Commands: .approvepm .blockpm .listapprovedpms""" import asyncio import json from telethon import events from telethon.tl import functions, types from sql_helpers.pmpermit_sql import is_approved, approve, disapprove, get_all_approved from uniborg.util import admin_cmd borg.storag...
46.837607
378
0.575912
e3d695a38d259b010b823073a6135a455ab16d64
934
py
Python
tools/c7n_azure/c7n_azure/resources/sqlserver.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
1
2019-06-11T19:43:28.000Z
2019-06-11T19:43:28.000Z
tools/c7n_azure/c7n_azure/resources/sqlserver.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
1
2018-06-05T20:40:02.000Z
2018-06-05T21:15:51.000Z
tools/c7n_azure/c7n_azure/resources/sqlserver.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
1
2019-11-06T16:54:06.000Z
2019-11-06T16:54:06.000Z
# Copyright 2018 Capital One Services, 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...
35.923077
74
0.760171
a3926d4de705a7fcac80d72f8852f833ae83214b
19,358
py
Python
pytype/tests/test_typing_namedtuple2.py
dertilo/pytype
385e4e846a98d352143a3cbeb9dff12c4be850b2
[ "Apache-2.0" ]
1
2021-12-31T08:46:43.000Z
2021-12-31T08:46:43.000Z
pytype/tests/test_typing_namedtuple2.py
dertilo/pytype
385e4e846a98d352143a3cbeb9dff12c4be850b2
[ "Apache-2.0" ]
null
null
null
pytype/tests/test_typing_namedtuple2.py
dertilo/pytype
385e4e846a98d352143a3cbeb9dff12c4be850b2
[ "Apache-2.0" ]
null
null
null
"""Tests for the typing.NamedTuple overlay.""" from pytype import file_utils from pytype.pytd import pytd_utils from pytype.tests import test_base from pytype.tests import test_utils class NamedTupleTest(test_base.BaseTest): """Tests for the typing.NamedTuple overlay.""" def test_make(self): self.CheckWithE...
31.323625
122
0.545511
ae61c35ca796d4dd2b11ad360baf8cb83a94f78a
4,397
py
Python
fairseq/modules/sinusoidal_positional_embedding.py
cepin19/fairseq
87d7348801be8a0449c81286391781b4418929fc
[ "MIT" ]
null
null
null
fairseq/modules/sinusoidal_positional_embedding.py
cepin19/fairseq
87d7348801be8a0449c81286391781b4418929fc
[ "MIT" ]
null
null
null
fairseq/modules/sinusoidal_positional_embedding.py
cepin19/fairseq
87d7348801be8a0449c81286391781b4418929fc
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math from typing import Any, Optional import logging import torch import torch.onnx.operators from fairseq import utils from torch impo...
38.234783
136
0.602911
746cdfbd0f187a21e449fa09ec158d27d6bacebc
35,648
py
Python
sdks/python/apache_beam/transforms/ptransform.py
jxub/beam
8222fcc978a54d98d385c108fb5fcf7615d74829
[ "Apache-2.0" ]
1
2020-05-18T14:13:33.000Z
2020-05-18T14:13:33.000Z
sdks/python/apache_beam/transforms/ptransform.py
jxub/beam
8222fcc978a54d98d385c108fb5fcf7615d74829
[ "Apache-2.0" ]
71
2018-05-23T22:20:02.000Z
2019-04-30T15:37:46.000Z
sdks/python/apache_beam/transforms/ptransform.py
jxub/beam
8222fcc978a54d98d385c108fb5fcf7615d74829
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
35.863179
158
0.702508
c069b3787ed0466cf73bdea02675af6c6a49296c
1,615
py
Python
bin/scripts/classify_bins.py
seedpcseed/metaWRAP
0c719380c71cae6d4e3979920cb430e0f6687010
[ "MIT" ]
null
null
null
bin/scripts/classify_bins.py
seedpcseed/metaWRAP
0c719380c71cae6d4e3979920cb430e0f6687010
[ "MIT" ]
null
null
null
bin/scripts/classify_bins.py
seedpcseed/metaWRAP
0c719380c71cae6d4e3979920cb430e0f6687010
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 import sys,os def add_to_tree( tree, tax_list, length ): if len(tax_list)==0: return tree else: if tax_list[0] not in tree: tree[tax_list[0]]=[length, {}] else: tree[tax_list[0]][0]+=length add_to_tree( tree[tax_list[0]][1], tax_list[1:], length ) return tree def traverse(tree, taxon...
25.234375
69
0.679876
09c6f89a72e4ce72c854fb53e408adfa52c05164
2,404
py
Python
src/utils/mapper.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
2
2021-10-03T14:24:52.000Z
2021-11-17T14:55:53.000Z
src/utils/mapper.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
null
null
null
src/utils/mapper.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
1
2021-10-03T14:25:36.000Z
2021-10-03T14:25:36.000Z
""" Implement the ConfigMapper class. See class docs for usage.""" class ConfigMapper: """Class for creating ConfigMapper objects. This class can be used to get and store custom objects from the libraries. For each class or object instantiated in any modules, the ConfigMapper object can be used e...
25.574468
93
0.557404
b7d57b35b7035047453f6df40653405c8b23c5b8
3,209
py
Python
preprocess/process.py
zankner/U-Net
2dc3a68593195d7030ed5d26107e7dea852a12a4
[ "MIT" ]
null
null
null
preprocess/process.py
zankner/U-Net
2dc3a68593195d7030ed5d26107e7dea852a12a4
[ "MIT" ]
null
null
null
preprocess/process.py
zankner/U-Net
2dc3a68593195d7030ed5d26107e7dea852a12a4
[ "MIT" ]
null
null
null
import tensorflow_datasets as tfds import tensorflow as tf import matplotlib.pyplot as plt from random import randint, random class Process(object): def __init__(self, batchSize, preFetch, imgSize): self.batch_size = batchSize self.pre_fetch = preFetch self.img_size = imgSize self.train_pad = 2000 ...
36.465909
115
0.707385
838a22f36635dcdf3c25324a3fda39a65b10598e
2,309
py
Python
threedb/controls/blender/background.py
3db/3db
b3aa0175ad45572337d6a16ac3fb6d434609f007
[ "MIT" ]
83
2021-04-28T11:54:21.000Z
2022-01-29T03:47:03.000Z
threedb/controls/blender/background.py
3db/3db
b3aa0175ad45572337d6a16ac3fb6d434609f007
[ "MIT" ]
3
2021-05-01T22:27:39.000Z
2021-05-01T22:28:22.000Z
threedb/controls/blender/background.py
3db/3db
b3aa0175ad45572337d6a16ac3fb6d434609f007
[ "MIT" ]
3
2021-04-27T21:26:13.000Z
2021-06-16T13:05:15.000Z
""" threedb.controls.blender.background =================================== Set the background to a solid-color. An example config file using this control can be found here: `<https://github.com/3db/3db/tree/main/examples/unit_tests/background.yaml>`_. """ from typing import Any, Dict from colorsys import hsv_to_rgb ...
32.521127
97
0.610221
7f73ae9dd8d970b2e4a33ed28e1894e7c40c37aa
16,797
py
Python
tests/test_blending.py
ParikhKadam/pytorch3d
5cd70067e2ba642d98fd36e8e31273366d1599cb
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/test_blending.py
ParikhKadam/pytorch3d
5cd70067e2ba642d98fd36e8e31273366d1599cb
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/test_blending.py
ParikhKadam/pytorch3d
5cd70067e2ba642d98fd36e8e31273366d1599cb
[ "MIT", "BSD-3-Clause" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import unittest import torch from pytorch3d.renderer.blending import ( BlendParams, hard_rgb_blend, ...
35.436709
88
0.570161
3ab67ae2bfffbf2fab73d623224ea1fb65f7d825
11,164
py
Python
user/views.py
SH4D0W-666/Aryayogam
a58f5cba4c85f55fe030c795bb548f956d1ee271
[ "MIT" ]
2
2021-12-11T16:04:26.000Z
2021-12-12T10:13:13.000Z
user/views.py
SH4D0W-666/Aryayogam
a58f5cba4c85f55fe030c795bb548f956d1ee271
[ "MIT" ]
null
null
null
user/views.py
SH4D0W-666/Aryayogam
a58f5cba4c85f55fe030c795bb548f956d1ee271
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404, redirect from django.http import * from django.contrib import messages from datetime import date from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django import forms from django.contrib.auth...
33.22619
115
0.633644
9a0609c123b72e0898d4799e37c6d862b92917d0
34,427
py
Python
netbox/dcim/models/device_components.py
MXPicture/netbox
3fbf1f7e71801487abd3524797298d82dca4db4f
[ "Apache-2.0" ]
null
null
null
netbox/dcim/models/device_components.py
MXPicture/netbox
3fbf1f7e71801487abd3524797298d82dca4db4f
[ "Apache-2.0" ]
null
null
null
netbox/dcim/models/device_components.py
MXPicture/netbox
3fbf1f7e71801487abd3524797298d82dca4db4f
[ "Apache-2.0" ]
null
null
null
from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.core.validators import MaxValueValidator, MinValueValidator from django.db import models from dj...
31.78855
120
0.621954
15b98f5634e5d0931cb1fdb230fa46560c8e93e5
10,478
py
Python
test/compliance_tool/test_compliance_check_json.py
eclipse-basyx/basyx-sdk-python
1249f49803a6ef5e594bb61410ad1c7939c2bdb7
[ "MIT" ]
4
2022-01-07T01:30:49.000Z
2022-02-21T07:58:14.000Z
test/compliance_tool/test_compliance_check_json.py
eclipse-basyx/basyx-sdk-python
1249f49803a6ef5e594bb61410ad1c7939c2bdb7
[ "MIT" ]
5
2022-02-22T15:24:22.000Z
2022-03-28T11:42:28.000Z
test/compliance_tool/test_compliance_check_json.py
eclipse-basyx/basyx-sdk-python
1249f49803a6ef5e594bb61410ad1c7939c2bdb7
[ "MIT" ]
2
2021-11-15T10:24:02.000Z
2022-03-17T14:44:39.000Z
# Copyright (c) 2020 the Eclipse BaSyx Authors # # This program and the accompanying materials are made available under the terms of the MIT License, available in # the LICENSE file of this project. # # SPDX-License-Identifier: MIT import os import unittest import basyx.aas.compliance_tool.compliance_check_json as com...
54.858639
116
0.708341
7de4467909b59a28bfa988b0dccc79f15fa73bd0
17,769
py
Python
tests/unit/test__legacy_entity_pb.py
crwilcox/python-ndb
fc31553c77f6e7865df0efd4c820f69366f6607c
[ "Apache-2.0" ]
null
null
null
tests/unit/test__legacy_entity_pb.py
crwilcox/python-ndb
fc31553c77f6e7865df0efd4c820f69366f6607c
[ "Apache-2.0" ]
null
null
null
tests/unit/test__legacy_entity_pb.py
crwilcox/python-ndb
fc31553c77f6e7865df0efd4c820f69366f6607c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.502913
87
0.640835
29b464a8de1c4d640092e3252d819cbda7de20f3
2,918
py
Python
3_gen_digit_data_label.py
whuang022ai/handwrite_dataset_generator
01add21a70f9c0fda8f2be2728594d034471bc34
[ "MIT" ]
2
2018-04-27T08:00:53.000Z
2019-12-16T06:00:01.000Z
3_gen_digit_data_label.py
whuang022ai/handwrite_dataset_generator
01add21a70f9c0fda8f2be2728594d034471bc34
[ "MIT" ]
null
null
null
3_gen_digit_data_label.py
whuang022ai/handwrite_dataset_generator
01add21a70f9c0fda8f2be2728594d034471bc34
[ "MIT" ]
3
2015-01-16T13:51:15.000Z
2019-12-15T22:58:21.000Z
import os import shutil DEBUG = False img_suffix = ['.jpeg','.jpg','.png','.tiff'] def gen_img_unique_file_name(count,total): assert(count<=total) name = '' for i in range(len(str(total)) - len(str(count))): name+='0' offset = str(count) name+=offset return name def copy_img_file(s...
30.715789
102
0.567855
4bc7c52943f0fe71732ed04d85e9b4fb364fa458
24,253
py
Python
tests/speech_encoder_decoder/test_modeling_speech_encoder_decoder.py
dctelus/transformers
6786cbc4b14ebff0ac59c768cadd109391db9a08
[ "Apache-2.0" ]
3
2022-01-15T08:06:07.000Z
2022-03-10T07:13:18.000Z
tests/speech_encoder_decoder/test_modeling_speech_encoder_decoder.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
1
2022-03-26T12:10:11.000Z
2022-03-26T12:10:11.000Z
tests/speech_encoder_decoder/test_modeling_speech_encoder_decoder.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
1
2022-01-12T14:45:41.000Z
2022-01-12T14:45:41.000Z
# coding=utf-8 # Copyright 2021 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 applicable law...
40.624791
124
0.687008
a7b80d1d3195430eaff1bc4a0645110e718ae9b2
12,262
py
Python
models/conv4d.py
gengshan-y/VCN
00c4befdbdf4e42050867996a6f686f52086e01a
[ "MIT" ]
148
2019-10-28T15:02:01.000Z
2022-03-16T07:14:46.000Z
models/conv4d.py
gengshan-y/VCN
00c4befdbdf4e42050867996a6f686f52086e01a
[ "MIT" ]
23
2019-11-30T15:45:07.000Z
2021-12-07T07:16:51.000Z
models/conv4d.py
gengshan-y/VCN
00c4befdbdf4e42050867996a6f686f52086e01a
[ "MIT" ]
24
2019-12-19T09:53:38.000Z
2022-01-22T01:33:02.000Z
import pdb import torch.nn as nn import math import torch from torch.nn.parameter import Parameter import torch.nn.functional as F from torch.nn import Module from torch.nn.modules.conv import _ConvNd from torch.nn.modules.utils import _quadruple from torch.autograd import Variable from torch.nn import Conv2d def conv...
41.286195
191
0.606997
5297adeb5c228d719e3d564f560ee5724e375671
1,662
py
Python
statzcw/stats.py
JosephKowalski2/Py-BasicStats
3d57c2403fe6a1a1dd3344f25ebc332c6da50606
[ "MIT" ]
null
null
null
statzcw/stats.py
JosephKowalski2/Py-BasicStats
3d57c2403fe6a1a1dd3344f25ebc332c6da50606
[ "MIT" ]
null
null
null
statzcw/stats.py
JosephKowalski2/Py-BasicStats
3d57c2403fe6a1a1dd3344f25ebc332c6da50606
[ "MIT" ]
null
null
null
from typing import List import math def zcount(data: List[float]) -> float: return float(len(data)) def zmean(data: List[float]) -> float: return sum(data) / zcount(data) def zmode(data: List[float]) -> float: return max(set(data), key=data.count) def zmedian(data: List[float]) -> float: sorted_lis...
27.245902
74
0.593863
54e397423d310da8eef3f2818588e91a2d2d90b6
1,456
py
Python
aliyun-python-sdk-objectdet/aliyunsdkobjectdet/request/v20191230/DetectWhiteBaseImageRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-objectdet/aliyunsdkobjectdet/request/v20191230/DetectWhiteBaseImageRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-objectdet/aliyunsdkobjectdet/request/v20191230/DetectWhiteBaseImageRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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...
38.315789
91
0.769918
4240a3216d62ca97ff0897671a40140ffa576f9e
6,742
py
Python
server/switchremoteplay/controller.py
McSwindler/switch-remoteplay
a9b3f767c61030b302ca835ebda9d87f2faf0323
[ "MIT" ]
213
2020-05-19T13:12:04.000Z
2022-03-24T05:59:21.000Z
server/switchremoteplay/controller.py
McSwindler/switch-remoteplay
a9b3f767c61030b302ca835ebda9d87f2faf0323
[ "MIT" ]
27
2020-05-19T18:57:25.000Z
2022-02-19T03:11:28.000Z
server/switchremoteplay/controller.py
McSwindler/switch-remoteplay
a9b3f767c61030b302ca835ebda9d87f2faf0323
[ "MIT" ]
22
2020-05-19T15:48:52.000Z
2021-09-14T05:33:53.000Z
import asyncio from logging import Logger from joycontrol import logging_default as log from joycontrol.controller import Controller from joycontrol.controller_state import ControllerState, button_push, StickState from joycontrol.memory import FlashMemory from joycontrol.protocol import controller_protocol_factory fro...
35.861702
112
0.712103
0f1302a445cfd55faf97568f93879efbcb173d4c
2,549
py
Python
samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-clns-isis-cfg/nc-delete-xr-clns-isis-cfg-20-ydk.py
maccioni/ydk-py-samples
d1758694bef97327c5477e65649326c7595ce499
[ "Apache-2.0" ]
104
2016-03-15T17:04:01.000Z
2021-12-31T06:09:35.000Z
samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-clns-isis-cfg/nc-delete-xr-clns-isis-cfg-20-ydk.py
https-maxus-github-com/ydk-py-samples
1ad6cc2b798f358ff835df93d12924df308b85fc
[ "Apache-2.0" ]
15
2016-03-15T23:09:47.000Z
2020-08-13T12:13:18.000Z
samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-clns-isis-cfg/nc-delete-xr-clns-isis-cfg-20-ydk.py
https-maxus-github-com/ydk-py-samples
1ad6cc2b798f358ff835df93d12924df308b85fc
[ "Apache-2.0" ]
87
2016-04-15T16:59:23.000Z
2021-09-18T18:05:47.000Z
#!/usr/bin/env python # # Copyright 2016 Cisco 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 applicab...
33.539474
78
0.654767
5243ae792ff54a34f29f6a6c2841bbcf53dcd072
311
py
Python
SSD/m2det_pt/data/__init__.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
12
2020-03-25T01:24:22.000Z
2021-09-18T06:40:16.000Z
SSD/m2det_pt/data/__init__.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
1
2020-04-22T07:52:36.000Z
2020-04-22T07:52:36.000Z
SSD/m2det_pt/data/__init__.py
ForrestPi/ObjectDetection
54e0821e73f67be5360c36f01229a123c34ab3b3
[ "MIT" ]
4
2020-03-25T01:24:26.000Z
2020-09-20T11:29:09.000Z
# from .voc import VOCDetection, AnnotationTransform, detection_collate, VOC_CLASSES from .voc0712 import VOCDetection, AnnotationTransform, detection_collate, VOC_CLASSES from .coco import COCODetection from .custom_voc_like_helmet import CustomHelmetDataset from .data_augment import * from .anchors import *
44.428571
86
0.85209
d299f4b65507850bfbfe5224f2ff5103780159a4
1,459
py
Python
build/deploy_scripts/copy_create_proto_files.py
JoJo2nd/Heart
4b50dfa6cbf87d32768f6c01b578bc1b23c18591
[ "BSD-3-Clause" ]
1
2016-05-14T09:22:26.000Z
2016-05-14T09:22:26.000Z
build/deploy_scripts/copy_create_proto_files.py
JoJo2nd/Heart
4b50dfa6cbf87d32768f6c01b578bc1b23c18591
[ "BSD-3-Clause" ]
null
null
null
build/deploy_scripts/copy_create_proto_files.py
JoJo2nd/Heart
4b50dfa6cbf87d32768f6c01b578bc1b23c18591
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python import argparse import sys from os.path import join, realpath, split, exists from re import match as re_match import os def writeFile(root, in_file, dest): base, file = split(realpath(join(dest, in_file))) if not exists(base): os.makedirs(base) in_file = str(in_file) out_inc...
33.159091
122
0.679232
2a52595206d270780a5cba5500a626763a8f7281
2,495
py
Python
test/Depends/spurious-rebuilds.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
1
2019-09-18T06:37:02.000Z
2019-09-18T06:37:02.000Z
test/Depends/spurious-rebuilds.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
test/Depends/spurious-rebuilds.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2001 - 2016 The SCons Foundation # # 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 us...
34.178082
107
0.7499
2397282e313968470529a6850181d030f5172da9
5,947
py
Python
reinforcement/tensorflow/minigo/tests/test_preprocessing.py
mwnewlin/afit_mlperf_training
abdf362abe6a14a85e13b8b18afe7d40cc9e5430
[ "Apache-2.0" ]
null
null
null
reinforcement/tensorflow/minigo/tests/test_preprocessing.py
mwnewlin/afit_mlperf_training
abdf362abe6a14a85e13b8b18afe7d40cc9e5430
[ "Apache-2.0" ]
12
2019-03-25T17:38:16.000Z
2022-03-11T23:43:25.000Z
reinforcement/tensorflow/minigo/tests/test_preprocessing.py
mwnewlin/afit_mlperf_training
abdf362abe6a14a85e13b8b18afe7d40cc9e5430
[ "Apache-2.0" ]
1
2019-03-11T15:59:25.000Z
2019-03-11T15:59:25.000Z
# Copyright 2018 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, ...
39.646667
102
0.637801
ed9b871a268ffda1760a7b4a3454a32ed6dee09f
31,805
py
Python
salt/pillar/__init__.py
ronnix/salt
00ffa294ad5842786e9da9cb4fc70955f53299fa
[ "Apache-2.0" ]
null
null
null
salt/pillar/__init__.py
ronnix/salt
00ffa294ad5842786e9da9cb4fc70955f53299fa
[ "Apache-2.0" ]
null
null
null
salt/pillar/__init__.py
ronnix/salt
00ffa294ad5842786e9da9cb4fc70955f53299fa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Render the pillar data ''' # Import python libs from __future__ import absolute_import import copy import os import collections import logging import tornado.gen # Import salt libs import salt.loader import salt.fileclient import salt.minion import salt.crypt import salt.transport import s...
40.056675
128
0.486181
0139ed4354c6298604bd389a1778f012eb803a0a
7,289
py
Python
easytello/tello.py
16569/easyTello
702c56ef1ea674d20e8739fb5c72156b75f98164
[ "MIT" ]
1
2020-08-31T09:53:14.000Z
2020-08-31T09:53:14.000Z
easytello/tello.py
16569/easyTello
702c56ef1ea674d20e8739fb5c72156b75f98164
[ "MIT" ]
null
null
null
easytello/tello.py
16569/easyTello
702c56ef1ea674d20e8739fb5c72156b75f98164
[ "MIT" ]
null
null
null
import socket import threading import time import cv2 from easytello.stats import Stats from easytello.tello_control import TelloControl class Tello: def __init__(self, tello_ip: str='192.168.10.1', debug: bool=True): # 追加 self.lastframe = None self.controller: TelloCon...
33.131818
98
0.574702
8fe48440dcccce37ea0786b89eea0c349cbedb65
21,373
py
Python
code/train.py
darius522/spain-net
2d94044999f44a7916353c6af055d929598d0b90
[ "MIT" ]
1
2022-03-10T04:14:37.000Z
2022-03-10T04:14:37.000Z
code/train.py
darius522/spain-net
2d94044999f44a7916353c6af055d929598d0b90
[ "MIT" ]
null
null
null
code/train.py
darius522/spain-net
2d94044999f44a7916353c6af055d929598d0b90
[ "MIT" ]
null
null
null
import os import argparse import json import random import copy import tqdm import itertools import numpy as np import sklearn.preprocessing import torch import pytorch_lightning as pl from pytorch_lightning.callbacks import ModelCheckpoint, EarlyStopping from asteroid.engine.system import System from asteroid.engine...
38.166071
173
0.649043
db3b6483cd0c326793c90f29f8857af20d86d487
1,509
py
Python
gz_recover.py
aguinet/alphatav
0c7f628c3eff32653d5dbcf789a5f361f785dfa2
[ "WTFPL" ]
3
2022-01-31T08:54:05.000Z
2022-03-21T18:11:52.000Z
gz_recover.py
aguinet/alphatav
0c7f628c3eff32653d5dbcf789a5f361f785dfa2
[ "WTFPL" ]
null
null
null
gz_recover.py
aguinet/alphatav
0c7f628c3eff32653d5dbcf789a5f361f785dfa2
[ "WTFPL" ]
null
null
null
import struct import io import sys import deflatedecompress as dd class VoidStream: def __init__(self): self._count = 0 def write(self,b): self._count += len(b) def write_unk(self): self._count += 1 @property def count(self): return self._count def findNextValidBlock(S, St...
25.576271
83
0.544069
431d8e1cc823b6bed47d18f604c3cb9718850587
30,493
py
Python
scripts/install_backend_python_libs.py
MohdImran001/oppia
ff7421ee424955fc86b1a96012965165cd41be12
[ "Apache-2.0" ]
null
null
null
scripts/install_backend_python_libs.py
MohdImran001/oppia
ff7421ee424955fc86b1a96012965165cd41be12
[ "Apache-2.0" ]
null
null
null
scripts/install_backend_python_libs.py
MohdImran001/oppia
ff7421ee424955fc86b1a96012965165cd41be12
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Oppia 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 ...
44.974926
80
0.697504
07ce96c60cc8f4fb4d4220335d0717f04eaa62b9
16,784
py
Python
python/ccxt/coinspot.py
ChristianCoenen/ccxt
261e3549b4cfe9fa4ecf1a00feb0450337eab686
[ "MIT" ]
1
2021-11-16T15:45:34.000Z
2021-11-16T15:45:34.000Z
python/ccxt/coinspot.py
DoctorSlimm/ccxt
8f19512dfc5dac159eaeb465c98226c00252a9b6
[ "MIT" ]
null
null
null
python/ccxt/coinspot.py
DoctorSlimm/ccxt
8f19512dfc5dac159eaeb465c98226c00252a9b6
[ "MIT" ]
null
null
null
# -*- 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 from ccxt.base.errors import ExchangeError from ccxt.base.errors import ArgumentsReq...
44.877005
163
0.500417
877890df126fdefa3dfea98eebca4f97809bd0da
1,823
py
Python
setup.py
tlestang/autodE
56fd4c78e7d7e78c5747428190211ff69dc6d94a
[ "MIT" ]
90
2020-03-13T15:03:35.000Z
2022-03-14T13:41:04.000Z
setup.py
tlestang/autodE
56fd4c78e7d7e78c5747428190211ff69dc6d94a
[ "MIT" ]
117
2020-06-13T00:11:06.000Z
2022-03-24T08:54:16.000Z
setup.py
tlestang/autodE
56fd4c78e7d7e78c5747428190211ff69dc6d94a
[ "MIT" ]
26
2020-08-14T04:52:53.000Z
2022-03-06T13:04:17.000Z
from setuptools import setup from Cython.Build import cythonize from setuptools.extension import Extension extensions = [Extension('cconf_gen', ['autode/conformers/cconf_gen.pyx']), Extension('ade_dihedrals', sources=['autode/ext/ade_dihedrals.pyx'], includ...
40.511111
74
0.492046
3eaea75924cef73578ee06823c2c28d9efd92512
4,202
py
Python
utils/data_utils.py
xieh97/audio-caption-alignment
7d54c92dbc857339c7af2005bdae603ab5799c24
[ "MIT" ]
null
null
null
utils/data_utils.py
xieh97/audio-caption-alignment
7d54c92dbc857339c7af2005bdae603ab5799c24
[ "MIT" ]
null
null
null
utils/data_utils.py
xieh97/audio-caption-alignment
7d54c92dbc857339c7af2005bdae603ab5799c24
[ "MIT" ]
null
null
null
import os import pickle import h5py import numpy as np import pandas as pd import torch from torch.utils.data import Dataset class Vocabulary(object): def __init__(self): self.word2vec = {} self.word2idx = {} self.idx2word = {} self.idx = 0 self.weights = None def a...
30.671533
117
0.637554
ea2f4ad62bc0400b0a674f3788ba97291d89e1d1
18,985
py
Python
tests/core/full_node/stores/test_coin_store.py
BTCgreen-Network/shibgreen-blockchain
b1e41e82ad849775543aa36fefc0c0d03e13f6e8
[ "Apache-2.0" ]
12
2021-11-10T02:52:38.000Z
2022-03-22T10:19:45.000Z
tests/core/full_node/stores/test_coin_store.py
BTCgreen-Network/shibgreen-blockchain
b1e41e82ad849775543aa36fefc0c0d03e13f6e8
[ "Apache-2.0" ]
13
2021-11-16T03:09:34.000Z
2022-03-09T00:45:05.000Z
tests/core/full_node/stores/test_coin_store.py
BTCgreen-Network/shibgreen-blockchain
b1e41e82ad849775543aa36fefc0c0d03e13f6e8
[ "Apache-2.0" ]
1
2022-03-15T08:25:06.000Z
2022-03-15T08:25:06.000Z
import asyncio import logging from typing import List, Optional, Set, Tuple import pytest from shibgreen.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward from shibgreen.consensus.blockchain import Blockchain, ReceiveBlockResult from shibgreen.consensus.coinbase import create_farmer_c...
45.968523
120
0.576192
9d2345c57a681e75d78054a9b259c822c23754e5
1,341
py
Python
base/my_exception.py
medivhXu/AT-M
e1c215ae95085d1be24a7566fd365eb6bfae5e53
[ "Apache-2.0" ]
1
2019-06-05T08:53:47.000Z
2019-06-05T08:53:47.000Z
base/my_exception.py
medivhXu/AT-M
e1c215ae95085d1be24a7566fd365eb6bfae5e53
[ "Apache-2.0" ]
null
null
null
base/my_exception.py
medivhXu/AT-M
e1c215ae95085d1be24a7566fd365eb6bfae5e53
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ @author: Medivh Xu @file: my_exception.py @time: 2020-02-27 12:22 """ class MyException(Exception): def __init__(self, msg): super().__init__(self) self.msg = msg def __str__(self): return self.msg class AdbEnvironmentException(MyException): pass cla...
13.41
51
0.738255
3139f3817f1036725c316948b80c4484d83d4324
4,089
py
Python
interpretable_machine_learning/coda/modules/losses.py
kostasxerv/atml_auth_project
b60f419160a0efe915b071f29e448a85646eac85
[ "MIT", "Unlicense" ]
25
2021-06-14T09:14:12.000Z
2022-03-31T14:27:09.000Z
interpretable_machine_learning/coda/modules/losses.py
kostasxerv/atml_auth_project
b60f419160a0efe915b071f29e448a85646eac85
[ "MIT", "Unlicense" ]
1
2021-07-05T12:31:58.000Z
2021-07-05T12:31:58.000Z
interpretable_machine_learning/coda/modules/losses.py
kostasxerv/atml_auth_project
b60f419160a0efe915b071f29e448a85646eac85
[ "MIT", "Unlicense" ]
3
2021-07-10T09:37:54.000Z
2022-02-18T21:02:20.000Z
from torch import nn import numpy as np from modules.coda_conv import reverse_linear_mappings from collections import Iterable class LossDict(dict): def __init__(self): """ A dictionary with an additional 'collect' method to add up all the individual losses. This is used for tracking the...
31.697674
120
0.605772
2f336feca4f69dbe9cfa1cea59f427e81b8c65d8
546
py
Python
tests/test_mariadb_auth.py
moriyoshi/PyMySQL
37fd1e1b0126d75d80eef59c053f80634b09bd75
[ "MIT" ]
1
2020-10-16T10:15:47.000Z
2020-10-16T10:15:47.000Z
tests/test_mariadb_auth.py
moriyoshi/PyMySQL
37fd1e1b0126d75d80eef59c053f80634b09bd75
[ "MIT" ]
null
null
null
tests/test_mariadb_auth.py
moriyoshi/PyMySQL
37fd1e1b0126d75d80eef59c053f80634b09bd75
[ "MIT" ]
null
null
null
"""Test for auth methods supported by MariaDB 10.3+""" import pymysql # pymysql.connections.DEBUG = True # pymysql._auth.DEBUG = True host = "127.0.0.1" port = 3306 def test_ed25519_no_password(): con = pymysql.connect(user="nopass_ed25519", host=host, port=port, ssl=None) con.close() def test_ed25519_pa...
22.75
80
0.681319
40b8bc6c0bf0869a9897aa403e2a5ac53c3dfedc
7,543
py
Python
setup.py
mullenkamp/gistools
a24e4250eadbb2c8fd09d5e8dd36e0f8b7989c99
[ "Apache-2.0" ]
null
null
null
setup.py
mullenkamp/gistools
a24e4250eadbb2c8fd09d5e8dd36e0f8b7989c99
[ "Apache-2.0" ]
6
2019-03-31T06:29:51.000Z
2020-04-01T19:24:58.000Z
setup.py
mullenkamp/gistools
a24e4250eadbb2c8fd09d5e8dd36e0f8b7989c99
[ "Apache-2.0" ]
2
2020-04-01T19:04:35.000Z
2020-09-29T01:25:42.000Z
# Always prefer setuptools over distutils from setuptools import setup, find_packages, Extension # To use a consistent encoding from codecs import open import os here = os.path.abspath(os.path.dirname(__file__)) # General parameters name = 'gistools' main_package = 'gistools' # datasets = 'datasets' version = '1.2.27...
40.12234
112
0.680498
fd1e384fdf8b26305bec642983d517dcd6c92fa4
25,131
py
Python
plugins/modules/oci_devops_deploy_stage_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_devops_deploy_stage_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_devops_deploy_stage_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
37.904977
160
0.557121
e8290ee226a8502e319c4206168c8993ac02baa4
3,818
py
Python
retinanet/csv_predict.py
pwesp/automated-clavicular-epiphysis-localization
9a1a22e658caf65b9cf7cf0434d943d05a1b8480
[ "Apache-2.0" ]
null
null
null
retinanet/csv_predict.py
pwesp/automated-clavicular-epiphysis-localization
9a1a22e658caf65b9cf7cf0434d943d05a1b8480
[ "Apache-2.0" ]
null
null
null
retinanet/csv_predict.py
pwesp/automated-clavicular-epiphysis-localization
9a1a22e658caf65b9cf7cf0434d943d05a1b8480
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import numpy as np import os import matplotlib.pyplot as plt import torch def _get_detections(dataset, retinanet, score_threshold=0.05, max_detections=100, save_path=None): """ Get the detections from the retinanet using the generator. The result is a list of lists such...
40.617021
148
0.617339
82de2a1b66739cb6270ced41106bf04661f32990
361
py
Python
backend/commitment.py
mzhou08/HackCMU-2021
e6b6e713e508df1a213bfb65e02a9ea6b953d427
[ "Apache-2.0" ]
null
null
null
backend/commitment.py
mzhou08/HackCMU-2021
e6b6e713e508df1a213bfb65e02a9ea6b953d427
[ "Apache-2.0" ]
null
null
null
backend/commitment.py
mzhou08/HackCMU-2021
e6b6e713e508df1a213bfb65e02a9ea6b953d427
[ "Apache-2.0" ]
null
null
null
class Commitment(): def __init__(self, time, name, deadline): self.time = time self.name = name self.deadline = deadline def getTime(self): return self.time def getName(self): return self.name def setTime(self, newTime): self.time = newTime def getDead...
25.785714
45
0.603878
49ff85479121f7319c10fa02245ef86b8be0e240
23,087
py
Python
platformio/util.py
dodynofri/platformio-core
7be1af42417258a9b219b1e92fb090fffb45bfbb
[ "Apache-2.0" ]
null
null
null
platformio/util.py
dodynofri/platformio-core
7be1af42417258a9b219b1e92fb090fffb45bfbb
[ "Apache-2.0" ]
null
null
null
platformio/util.py
dodynofri/platformio-core
7be1af42417258a9b219b1e92fb090fffb45bfbb
[ "Apache-2.0" ]
1
2018-05-04T06:41:13.000Z
2018-05-04T06:41:13.000Z
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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...
29.113493
81
0.578594
028217d3d391197bd0b2a0f62f978f8357a61c69
5,569
py
Python
libraryuse/settings.py
emory-libraries/libraryuse
49448243c392e01dffdbd6084951364213eed0a7
[ "Apache-2.0" ]
null
null
null
libraryuse/settings.py
emory-libraries/libraryuse
49448243c392e01dffdbd6084951364213eed0a7
[ "Apache-2.0" ]
null
null
null
libraryuse/settings.py
emory-libraries/libraryuse
49448243c392e01dffdbd6084951364213eed0a7
[ "Apache-2.0" ]
null
null
null
# file libraryuse/settings.py # # Copyright 2013 Emory University General Library # # 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 ...
33.347305
92
0.742683
55311e9c50028694675faa4a09a539955f43f3fb
1,787
py
Python
wikum/website/management/commands/import_involvevote.py
xuericlin/wikum
f0171f1697efa91d6957f976f473c9201db85648
[ "MIT" ]
114
2016-12-09T00:32:51.000Z
2022-03-08T14:15:42.000Z
wikum/website/management/commands/import_involvevote.py
xuericlin/wikum
f0171f1697efa91d6957f976f473c9201db85648
[ "MIT" ]
146
2016-04-24T02:02:39.000Z
2021-12-13T20:24:56.000Z
wikum/website/management/commands/import_involvevote.py
xuericlin/wikum
f0171f1697efa91d6957f976f473c9201db85648
[ "MIT" ]
34
2017-01-17T21:14:29.000Z
2022-02-02T18:12:25.000Z
import email import re from dateutil import parser import csv from website.models import Article, Source, Comment, CommentAuthor from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): def handle(self, *args, **options): f = open('ashland.csv', 'r') ...
36.469388
141
0.43089
e14430ca1e8fd654292920d93ff4eeed13f71e4d
9,479
py
Python
python/ccxt/async_support/foxbit.py
rebekos/ccxt
5872dd4f1a578de468ff4dbd6d79685e4fe7f536
[ "MIT" ]
1
2019-06-24T07:20:05.000Z
2019-06-24T07:20:05.000Z
python/ccxt/async_support/foxbit.py
rebekos/ccxt
5872dd4f1a578de468ff4dbd6d79685e4fe7f536
[ "MIT" ]
3
2021-03-11T06:16:27.000Z
2021-05-11T23:09:26.000Z
python/ccxt/async_support/foxbit.py
rebekos/ccxt
5872dd4f1a578de468ff4dbd6d79685e4fe7f536
[ "MIT" ]
1
2019-06-24T07:31:27.000Z
2019-06-24T07:31:27.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 from ccxt.base.errors import ExchangeError class foxbit (Exchange): def descri...
40.857759
135
0.504589
8f66b698a611d44a1bb9e0767b64371f1752213b
1,423
py
Python
ooobuild/lo/linguistic2/dictionary_list.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/linguistic2/dictionary_list.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/linguistic2/dictionary_list.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
33.880952
136
0.760365
0aaf8241cef1349d68feaeba83a061a5b2d37bb1
12,175
py
Python
glue/viewers/profile/qt/profile_tools.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
null
null
null
glue/viewers/profile/qt/profile_tools.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
null
null
null
glue/viewers/profile/qt/profile_tools.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function import os import weakref import traceback from collections import OrderedDict import numpy as np from qtpy.QtCore import Qt from qtpy import QtWidgets, QtGui from glue.utils import color2hex, nanmean, nanmedian, nanmin, nanmax, nansum from glue.config...
34.392655
96
0.613388
811d71b79a977d3ae81fe23910d9f78a02fd09e2
18,315
py
Python
xarray/core/utils.py
DavidMertz/xarray
9438390da9ecafc2601a7f06c9e4f87637b456df
[ "Apache-2.0" ]
null
null
null
xarray/core/utils.py
DavidMertz/xarray
9438390da9ecafc2601a7f06c9e4f87637b456df
[ "Apache-2.0" ]
null
null
null
xarray/core/utils.py
DavidMertz/xarray
9438390da9ecafc2601a7f06c9e4f87637b456df
[ "Apache-2.0" ]
null
null
null
"""Internal utilties; not for external use """ import contextlib import functools import itertools import os.path import re import warnings from collections import OrderedDict from typing import ( AbstractSet, Any, Callable, Container, Dict, Hashable, Iterable, Iterator, Mapping, MutableMapping, MutableSet, Opt...
30.678392
79
0.628283
baaf54bc2bfd0db233887ab6f691266ca258687b
3,020
py
Python
CryMOS/QVpp.py
michi7x7/pm-mos-model
394d752b1165f5afd96520f1b6e2dbecc27fdc4b
[ "Apache-2.0" ]
1
2021-11-26T08:40:40.000Z
2021-11-26T08:40:40.000Z
CryMOS/QVpp.py
michi7x7/pm-mos-model
394d752b1165f5afd96520f1b6e2dbecc27fdc4b
[ "Apache-2.0" ]
null
null
null
CryMOS/QVpp.py
michi7x7/pm-mos-model
394d752b1165f5afd96520f1b6e2dbecc27fdc4b
[ "Apache-2.0" ]
2
2021-12-06T21:56:27.000Z
2021-12-08T09:58:24.000Z
""" C++ implementations of QV-models """ from .QV import BeckersQVpy, DiracQVpy, GildenblatQVpy import numpy as np __all__ = ['BeckersQVcpp', 'DiracQVcpp', 'GildenblatQVcpp'] class BeckersQVcpp(BeckersQVpy): from .cpp import available as cpp_avail def _get_solver(self): if not self.cpp_avail: ...
29.607843
109
0.60298
f02782d0a634dc632753c1d1e54be5358c8b5e52
88
py
Python
lux/core/commands/project_template/manage.py
quantmind/lux
7318fcd86c77616aada41d8182a04339680a554c
[ "BSD-3-Clause" ]
21
2015-03-28T23:27:43.000Z
2020-11-23T13:24:10.000Z
lux/core/commands/project_template/manage.py
quantmind/lux
7318fcd86c77616aada41d8182a04339680a554c
[ "BSD-3-Clause" ]
195
2015-02-18T17:22:28.000Z
2017-12-01T23:01:16.000Z
lux/core/commands/project_template/manage.py
quantmind/lux
7318fcd86c77616aada41d8182a04339680a554c
[ "BSD-3-Clause" ]
16
2015-03-31T23:15:38.000Z
2017-04-18T11:59:43.000Z
if __name__ == '__main__': import {{ project_name }} {{ project_name }}.main()
17.6
29
0.590909
615303611ea15b6cd7b697850a46269c5200ab91
230
py
Python
daskperiment/tests/practical/parallel/test_mongo.py
sinhrks/daskperiment
63f5a18a0a0dc447698fb90947653b86a3c6160c
[ "BSD-3-Clause" ]
27
2019-01-25T01:44:20.000Z
2019-11-13T14:26:56.000Z
daskperiment/tests/practical/parallel/test_mongo.py
nikkkkhil/dask_task
1802efacd43e68e5e7dd8eb82e27b3cbf09d74ae
[ "BSD-3-Clause" ]
64
2019-01-29T03:52:31.000Z
2019-04-25T07:55:09.000Z
daskperiment/tests/practical/parallel/test_mongo.py
nikkkkhil/dask_task
1802efacd43e68e5e7dd8eb82e27b3cbf09d74ae
[ "BSD-3-Clause" ]
5
2019-02-04T20:58:39.000Z
2019-04-14T11:45:48.000Z
from .base import ParallelExperimentBase from daskperiment.testing import CleanupMixin, ex # noqa class TestParallelMongoExperiment(ParallelExperimentBase, CleanupMixin): backend = 'mongodb://localhost:27017/test_db'
28.75
72
0.8
dcc237c5c3329ccd0c558da0e81c823a8f912622
5,961
py
Python
crits/actors/api.py
frbapolkosnik/crits
1278c034f2238e2fe34e65e32ce241128a014df2
[ "MIT" ]
22
2015-01-14T19:49:32.000Z
2022-01-26T12:18:52.000Z
crits/actors/api.py
frbapolkosnik/crits
1278c034f2238e2fe34e65e32ce241128a014df2
[ "MIT" ]
null
null
null
crits/actors/api.py
frbapolkosnik/crits
1278c034f2238e2fe34e65e32ce241128a014df2
[ "MIT" ]
6
2015-01-22T21:25:52.000Z
2021-04-12T23:24:14.000Z
from django.core.urlresolvers import reverse from tastypie import authorization from tastypie.authentication import MultiAuthentication from crits.actors.actor import Actor, ActorIdentifier from crits.actors.handlers import add_new_actor, add_new_actor_identifier from crits.core.api import CRITsApiKeyAuthentication, C...
38.211538
84
0.551921