hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
b156849efe28743e1f59dbcfbfb3f32c4319b8b3
2,718
py
Python
gecko/classes/api_handler.py
paulschick/Coingecko-Crypto-Price-API
c712856bf423a6d1d429a35c8a8e01bb983ec7ff
[ "MIT" ]
2
2022-01-18T18:09:31.000Z
2022-02-28T01:01:45.000Z
gecko/classes/api_handler.py
paulschick/Coingecko-Crypto-Price-API
c712856bf423a6d1d429a35c8a8e01bb983ec7ff
[ "MIT" ]
null
null
null
gecko/classes/api_handler.py
paulschick/Coingecko-Crypto-Price-API
c712856bf423a6d1d429a35c8a8e01bb983ec7ff
[ "MIT" ]
null
null
null
import aiohttp from aiohttp import ClientConnectionError, ClientResponseError from .models import CoinsResponse, SimplePriceResponse from .configs import Config from typing import List, Dict, Union class APIHandler: def __init__(self): self._config: Config = Config() async def get_supported_coins(sel...
41.181818
102
0.472774
2,517
0.926049
0
0
0
0
2,424
0.891832
120
0.04415
b156a941a513ed31187d8dbd1191f683290ef317
1,497
py
Python
Hello-Cifar-10/keras.py
PyTorchLightning/grid-tutorials
a45ec1bed374660b5a423d096945e462b3241efc
[ "Apache-2.0" ]
null
null
null
Hello-Cifar-10/keras.py
PyTorchLightning/grid-tutorials
a45ec1bed374660b5a423d096945e462b3241efc
[ "Apache-2.0" ]
null
null
null
Hello-Cifar-10/keras.py
PyTorchLightning/grid-tutorials
a45ec1bed374660b5a423d096945e462b3241efc
[ "Apache-2.0" ]
null
null
null
from argparse import ArgumentParser from pathlib import Path from tensorflow import keras # Define this script's flags parser = ArgumentParser() parser.add_argument('--lr', type=float, default=1e-3) parser.add_argument('--batch_size', type=int, default=32) parser.add_argument('--max_epochs', type=int, default=5) pars...
28.788462
93
0.725451
0
0
0
0
0
0
0
0
409
0.273213
b15750ce5aef5b54cce96688ad262cadc96dc7f8
4,432
py
Python
src/taskmaster/client.py
alex/taskmaster
04a03bf0853facf318ce98192db6389cdaaefe3c
[ "Apache-2.0" ]
2
2015-11-08T12:45:38.000Z
2017-06-03T09:16:16.000Z
src/taskmaster/client.py
alex/taskmaster
04a03bf0853facf318ce98192db6389cdaaefe3c
[ "Apache-2.0" ]
null
null
null
src/taskmaster/client.py
alex/taskmaster
04a03bf0853facf318ce98192db6389cdaaefe3c
[ "Apache-2.0" ]
null
null
null
""" taskmaster.consumer ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010 DISQUS. :license: Apache License 2.0, see LICENSE for more details. """ import cPickle as pickle import gevent from gevent_zeromq import zmq from gevent.queue import Queue from taskmaster.util import import_target class Worker(object): def __init_...
25.181818
92
0.54287
4,142
0.934567
0
0
0
0
0
0
375
0.084612
b1587cfb5054c54695ad8b82700668819e284945
3,165
py
Python
src/loop.py
migueldingli1997/PySnake
b9b7e98651b207f7bf846cd951b4bb4ee3bba426
[ "Apache-2.0" ]
2
2020-03-06T09:09:00.000Z
2022-01-12T14:29:51.000Z
src/loop.py
migueldingli1997/PySnake
b9b7e98651b207f7bf846cd951b4bb4ee3bba426
[ "Apache-2.0" ]
20
2020-02-09T16:42:53.000Z
2020-03-07T18:47:35.000Z
src/loop.py
migueldingli1997/PySnake
b9b7e98651b207f7bf846cd951b4bb4ee3bba426
[ "Apache-2.0" ]
null
null
null
import pygame as pg from pygame.time import Clock from src.drawer import Drawer from src.game import Game from src.utils.config import Config from src.utils.score import ScoresList from src.utils.sfx import SfxHolder from src.utils.text import Text from src.utils.util import Util, user_quit class Loop: def __ini...
35.166667
78
0.529226
2,869
0.906477
0
0
0
0
0
0
376
0.118799
b15a0f38860998844631ced61f5490b9a9898c55
7,135
py
Python
tests/test_detectCompileCommand.py
langrind/ccjtools
6f92d8cadf24d6e1f26e984df3c11b4d58061053
[ "MIT" ]
null
null
null
tests/test_detectCompileCommand.py
langrind/ccjtools
6f92d8cadf24d6e1f26e984df3c11b4d58061053
[ "MIT" ]
null
null
null
tests/test_detectCompileCommand.py
langrind/ccjtools
6f92d8cadf24d6e1f26e984df3c11b4d58061053
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from ccjtools import ccj_make def test_detectExactSpecifiedCompilerCommandWord(): """Using -c option, check that the exact word is recognized""" inputFileName = 'dummy' parsedArgs = ccj_make.mkccj_parse_args(['progname', inputFileName, '-c', 'mastadon']) if not parsedArgs: ...
62.043478
1,789
0.737211
0
0
0
0
0
0
0
0
4,618
0.647232
b15a35bd4f1abd5ba27c131e3166d2cc71012e7c
748
py
Python
Medium/valid-ip-addresses.py
SaumyaRai2010/algoexpert-data-structures-algorithms
bcafd8d7798661bf86c2d6234221d764c68fc19f
[ "MIT" ]
152
2021-07-15T02:56:17.000Z
2022-03-31T08:59:52.000Z
Medium/valid-ip-addresses.py
deepakgarg08/algoexpert-data-structures-algorithms
2264802bce971e842c616b1eaf9238639d73915f
[ "MIT" ]
2
2021-07-18T22:01:28.000Z
2022-02-17T03:55:04.000Z
Medium/valid-ip-addresses.py
deepakgarg08/algoexpert-data-structures-algorithms
2264802bce971e842c616b1eaf9238639d73915f
[ "MIT" ]
74
2021-07-16T11:55:30.000Z
2022-03-31T14:48:06.000Z
# VALID IP ADDRESSES # O(1) time and space def validIPAddresses(string): # Write your code here. validIPAddresses = [] if len(string) < 4: return [] for i in range(3): if not isValidPart(string[:i+1]): continue for j in range(i+1, i+4): if not isValidPart(string[i+1:j+1]): continue for k ...
24.933333
95
0.620321
0
0
0
0
0
0
0
0
76
0.101604
b15acd6c26c6ac380b78b3c4621e284328ee4d9a
1,999
py
Python
resnet152/configs.py
LiuHao-THU/frame2d
c2b923aa45bf2e523e281d1bc36c7f3e70f9fb2b
[ "Apache-2.0" ]
1
2020-05-15T03:28:53.000Z
2020-05-15T03:28:53.000Z
resnet152/configs.py
LiuHao-THU/frame2d
c2b923aa45bf2e523e281d1bc36c7f3e70f9fb2b
[ "Apache-2.0" ]
null
null
null
resnet152/configs.py
LiuHao-THU/frame2d
c2b923aa45bf2e523e281d1bc36c7f3e70f9fb2b
[ "Apache-2.0" ]
null
null
null
""" this .py file contains all the parameters """ import os configs = {} main_dir = 'frame_vessel/resnet152' #****************************************read data parameters************************************** configs['max_angle'] = 20 configs['root_dir'] = 'data' configs['save_dir'] = 'saved_data' configs['im...
39.98
101
0.561281
0
0
0
0
0
0
0
0
1,321
0.66083
b15c81d9f33f129ae3eb078cb489fe17c6a3fe71
2,707
py
Python
src/packagedcode/windows.py
Siddhant-K-code/scancode-toolkit
d1e725d3603a8f96c25f7e3f7595c68999b92a67
[ "Apache-2.0", "CC-BY-4.0" ]
1,511
2015-07-01T15:29:03.000Z
2022-03-30T13:40:05.000Z
src/packagedcode/windows.py
Siddhant-K-code/scancode-toolkit
d1e725d3603a8f96c25f7e3f7595c68999b92a67
[ "Apache-2.0", "CC-BY-4.0" ]
2,695
2015-07-01T16:01:35.000Z
2022-03-31T19:17:44.000Z
src/packagedcode/windows.py
Siddhant-K-code/scancode-toolkit
d1e725d3603a8f96c25f7e3f7595c68999b92a67
[ "Apache-2.0", "CC-BY-4.0" ]
540
2015-07-01T15:08:19.000Z
2022-03-31T12:13:11.000Z
# # Copyright (c) nexB Inc. and others. All rights reserved. # ScanCode is a trademark of nexB Inc. # SPDX-License-Identifier: Apache-2.0 # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. # See https://github.com/nexB/scancode-toolkit for support or download. # See https://aboutcode.org for more in...
27.622449
90
0.615441
1,811
0.669006
1,276
0.471371
1,831
0.676395
0
0
868
0.32065
b15cd11eeded0e97332a28f0cc409f651b2843ff
988
py
Python
day-21/main.py
jmolinski/advent-of-code-2018
96bad97d6523bc99d63c86bbff6b13602952a91d
[ "MIT" ]
2
2018-12-16T20:48:52.000Z
2021-03-28T15:07:51.000Z
day-21/main.py
jmolinski/advent-of-code-2018
96bad97d6523bc99d63c86bbff6b13602952a91d
[ "MIT" ]
null
null
null
day-21/main.py
jmolinski/advent-of-code-2018
96bad97d6523bc99d63c86bbff6b13602952a91d
[ "MIT" ]
1
2018-12-02T13:36:24.000Z
2018-12-02T13:36:24.000Z
# decompiled-by-hand & optimized # definitely not gonna refactor this one # 0.18s on pypy3 ip_reg = 4 reg = [0, 0, 0, 0, 0, 0] i = 0 seen = set() lst = [] while True: i += 1 break_true = False while True: if break_true: if i == 1: print("1)", reg[1]) if reg[1...
22.976744
62
0.403846
0
0
0
0
0
0
0
0
120
0.121457
b15ea12d5029680389c91718e2950c1e519b15d4
1,247
py
Python
website/canvas/funnels.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
61
2015-11-10T17:13:46.000Z
2021-08-06T17:58:30.000Z
website/canvas/funnels.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
13
2015-11-11T07:49:41.000Z
2021-06-09T03:45:31.000Z
website/canvas/funnels.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
18
2015-11-11T04:50:04.000Z
2021-08-20T00:57:11.000Z
from django.conf import settings from canvas.metrics import Metrics class Funnel(object): def __init__(self, name, steps): self.name = name self.steps = steps def __repr__(self): return self.name def step_names(self): return [step.name for step in self.steps] class Funn...
25.979167
57
0.565357
940
0.753809
0
0
0
0
0
0
53
0.042502
b1612586b6458c702c53a9e35ab3d78b199a5137
3,948
py
Python
hopfield.py
mstruijs/neural-demos
2be157bbac4b42c008190745bb3ee75a278d7e34
[ "MIT" ]
null
null
null
hopfield.py
mstruijs/neural-demos
2be157bbac4b42c008190745bb3ee75a278d7e34
[ "MIT" ]
null
null
null
hopfield.py
mstruijs/neural-demos
2be157bbac4b42c008190745bb3ee75a278d7e34
[ "MIT" ]
null
null
null
import numpy as np from neupy import algorithms,plots import matplotlib.pyplot as plt from neupy.utils import format_data from neupy.algorithms.memory.utils import bin2sign,step_function import argparse dhnet = algorithms.DiscreteHopfieldNetwork(mode='async', check_limit=False) iteration = 0 output_data = None n_featu...
27.608392
87
0.719352
0
0
0
0
0
0
0
0
1,065
0.269757
b161578913391598cf5bd530a5ec301a0546f6e8
686
py
Python
client/fig_client.py
haihala/fig
426e2ee218c8a55e6389ace497a7f365425daae1
[ "MIT" ]
null
null
null
client/fig_client.py
haihala/fig
426e2ee218c8a55e6389ace497a7f365425daae1
[ "MIT" ]
null
null
null
client/fig_client.py
haihala/fig
426e2ee218c8a55e6389ace497a7f365425daae1
[ "MIT" ]
null
null
null
from init import conf_parse, socket_init from sock_ops import pull_sync, push_sync from fs_ops import construct_tree, differences from debug import debug_print import time def main(): conf = conf_parse() sock = socket_init(conf) debug_print("Initialization successful") debug_print("Checking remote") pull_sync(...
21.4375
46
0.740525
0
0
0
0
0
0
0
0
145
0.21137
b161de6456d6f8b14c33e69247fe9c0fa8b2fa93
23,850
py
Python
TicTacToe2.py
tlively/N-TicTacToe
db1143e2e94012451ba590952670452431814b7b
[ "MIT" ]
6
2017-10-03T13:37:54.000Z
2020-12-21T07:34:01.000Z
TicTacToe2.py
tlively/N-TicTacToe
db1143e2e94012451ba590952670452431814b7b
[ "MIT" ]
null
null
null
TicTacToe2.py
tlively/N-TicTacToe
db1143e2e94012451ba590952670452431814b7b
[ "MIT" ]
4
2017-07-04T18:53:52.000Z
2021-03-24T03:15:07.000Z
# N-Dimensional Tic-Tac-Toe by Thomas Lively from __future__ import division import curses, curses.ascii, sys # logical representation of the n-dimensional board as a single list class Model(object): def __init__(self, dimensions=2, size=0, players=2): if size < 3: size = dimensions+1 ...
38.405797
94
0.512704
23,258
0.975178
0
0
0
0
0
0
2,407
0.100922
b161fd74a00848098e638db57b29a16c1340bf14
854
py
Python
platform-tools/systrace/catapult/devil/devil/utils/run_tests_helper.py
NBPS-Robotics/FTC-Code-Team-9987---2022
180538f3ebd234635fa88f96ae7cf7441df6a246
[ "MIT" ]
1,894
2015-04-17T18:29:53.000Z
2022-03-28T22:41:06.000Z
platform-tools/systrace/catapult/devil/devil/utils/run_tests_helper.py
NBPS-Robotics/FTC-Code-Team-9987---2022
180538f3ebd234635fa88f96ae7cf7441df6a246
[ "MIT" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
platform-tools/systrace/catapult/devil/devil/utils/run_tests_helper.py
NBPS-Robotics/FTC-Code-Team-9987---2022
180538f3ebd234635fa88f96ae7cf7441df6a246
[ "MIT" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Helper functions common to native, java and host-driven test runners.""" import collections import logging from devil.utils import logging_common Cu...
31.62963
75
0.725995
0
0
0
0
0
0
0
0
428
0.501171
b1623f67cebbb4df1eda133e8176caaaf6a0be46
4,819
py
Python
src/classical_ml/pca.py
Jagriti-dixit/CS229_Project_Final
16fdb55086411dee17153e88b2499c378cdfc096
[ "MIT" ]
null
null
null
src/classical_ml/pca.py
Jagriti-dixit/CS229_Project_Final
16fdb55086411dee17153e88b2499c378cdfc096
[ "MIT" ]
null
null
null
src/classical_ml/pca.py
Jagriti-dixit/CS229_Project_Final
16fdb55086411dee17153e88b2499c378cdfc096
[ "MIT" ]
null
null
null
import sys import time from comet_ml import Experiment import pydub import numpy as np from pydub import AudioSegment import librosa import librosa.display import matplotlib.pyplot as plt import sklearn from sklearn import preprocessing from sklearn.preprocessing import MinMaxScaler from sklearn.preprocessing import St...
31.496732
97
0.775265
0
0
0
0
0
0
0
0
1,100
0.228263
b16413494678ee579844f16a2bea9f231ef05803
1,601
py
Python
API/application.py
XuhuaHuang/LearnPython
eb39f11147716193971dd5a8894e675daa1b9d01
[ "MIT" ]
null
null
null
API/application.py
XuhuaHuang/LearnPython
eb39f11147716193971dd5a8894e675daa1b9d01
[ "MIT" ]
null
null
null
API/application.py
XuhuaHuang/LearnPython
eb39f11147716193971dd5a8894e675daa1b9d01
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///data.db' db = SQLAlchemy(app) class Drink(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80), unique=True, nullable=Fa...
28.589286
85
0.66396
266
0.166146
0
0
1,131
0.706433
0
0
406
0.253592
b165edb3b3722f2964b765aab8fe578c7cc4aee1
2,199
py
Python
examples/mass-generation.py
Orange-OpenSource/tinypyki
10c57fb3a4413f4c601baaf58e53d92fd4a09f49
[ "BSD-3-Clause" ]
1
2018-05-29T22:50:33.000Z
2018-05-29T22:50:33.000Z
examples/mass-generation.py
Orange-OpenSource/tinypyki
10c57fb3a4413f4c601baaf58e53d92fd4a09f49
[ "BSD-3-Clause" ]
null
null
null
examples/mass-generation.py
Orange-OpenSource/tinypyki
10c57fb3a4413f4c601baaf58e53d92fd4a09f49
[ "BSD-3-Clause" ]
2
2016-11-01T11:45:28.000Z
2021-06-22T10:18:46.000Z
#!/usr/bin/env python """A third example to get started with tinypyki. Toying with mass certificate generation. """ import os import tinypyki as tiny print("Creating a pki instance named \"mass-pki\"") pki = tiny.PKI("mass-pki") print("Create the \"root-ca\"") root_ca = tiny.Node(nid = "root-ca", pathlen = 1, s...
32.820896
171
0.703502
0
0
0
0
0
0
0
0
1,404
0.638472
b1667d176dd7399e7e7f6c6217ae79f8d38f3cee
638
py
Python
passive_capture/reporter/admin.py
Sillson/passive_capture_py
167d08865400571c9eed60c0040cf67d27fa11b4
[ "MIT" ]
null
null
null
passive_capture/reporter/admin.py
Sillson/passive_capture_py
167d08865400571c9eed60c0040cf67d27fa11b4
[ "MIT" ]
null
null
null
passive_capture/reporter/admin.py
Sillson/passive_capture_py
167d08865400571c9eed60c0040cf67d27fa11b4
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.gis import admin as geo_model_admin from leaflet.admin import LeafletGeoAdmin from .models import Forecasts, Dam, Species # Forecast Model class ForecastsAdmin(admin.ModelAdmin): list_display = ('dam', 'species', 'forecast_range') admin.site.register(Forecasts, F...
26.583333
55
0.782132
252
0.394984
0
0
0
0
0
0
147
0.230408
b166dad82fde9d6a3518b1f26a85b2e2546d77b9
16,633
py
Python
files/models.py
AdrianoCahete/website
114156e24b37e5f2293aeac3c29ab4d5cd8311cd
[ "MIT" ]
null
null
null
files/models.py
AdrianoCahete/website
114156e24b37e5f2293aeac3c29ab4d5cd8311cd
[ "MIT" ]
null
null
null
files/models.py
AdrianoCahete/website
114156e24b37e5f2293aeac3c29ab4d5cd8311cd
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # vim: set expandtab sw=4 ts=4 sts=4: # # phpMyAdmin web site # # Copyright (C) 2008 - 2016 Michal Cihar <[email protected]> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
32.486328
94
0.554199
12,409
0.746047
0
0
3,852
0.231588
0
0
4,969
0.298743
b166eaf0f74796997babad39184ea07ba1f3c842
948
py
Python
main/models/sign.py
fakegit/gxgk-wechat-server
89ad21bcd2dcd1c28e43d4b230d47207e78098b3
[ "MIT" ]
1,564
2015-09-01T13:11:02.000Z
2022-03-29T08:44:56.000Z
main/models/sign.py
fakegit/gxgk-wechat-server
89ad21bcd2dcd1c28e43d4b230d47207e78098b3
[ "MIT" ]
11
2015-12-13T05:04:15.000Z
2019-09-10T06:14:03.000Z
main/models/sign.py
fakegit/gxgk-wechat-server
89ad21bcd2dcd1c28e43d4b230d47207e78098b3
[ "MIT" ]
649
2015-12-11T09:23:09.000Z
2022-03-04T17:31:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from . import db class Sign(db.Model): __table_args__ = { 'mysql_engine': 'InnoDB', 'mysql_charset': 'utf8mb4' } openid = db.Column(db.String(32), primary_key=True, unique=True, nullable=False) lastsigntime = db.Col...
26.333333
70
0.619198
881
0.929325
0
0
0
0
0
0
103
0.10865
b167bd125d417e4efdcc02611c67219208d449ac
2,579
py
Python
pinax/projects/sample_group_project/urls.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/projects/sample_group_project/urls.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
null
null
null
pinax/projects/sample_group_project/urls.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
from django.conf import settings from django.conf.urls.defaults import * from django.views.generic.simple import direct_to_template from django.contrib import admin admin.autodiscover() from account.openid_consumer import PinaxConsumer handler500 = "pinax.views.server_error" if settings.ACCOUNT_OPEN_SIGNUP: ...
29.306818
99
0.669252
0
0
0
0
0
0
0
0
909
0.352462
b1684a8441dca67ce07724eebd55d0e4be2809be
3,060
py
Python
synapse/storage/schema/delta/50/make_event_content_nullable.py
Cadair/synapse
466866a1d9dd1fcf82348a36c0532cb0c6614767
[ "Apache-2.0" ]
2
2020-04-30T18:38:02.000Z
2020-07-08T21:38:28.000Z
synapse/storage/schema/delta/50/make_event_content_nullable.py
Cadair/synapse
466866a1d9dd1fcf82348a36c0532cb0c6614767
[ "Apache-2.0" ]
4
2020-03-04T23:47:05.000Z
2021-12-09T21:41:44.000Z
synapse/storage/schema/delta/50/make_event_content_nullable.py
Cadair/synapse
466866a1d9dd1fcf82348a36c0532cb0c6614767
[ "Apache-2.0" ]
2
2020-03-03T18:34:52.000Z
2022-03-31T11:06:18.000Z
# -*- coding: utf-8 -*- # Copyright 2018 New Vector Ltd # # 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 la...
31.546392
84
0.671242
0
0
0
0
0
0
0
0
2,353
0.768954
b169661dd2e123c3c4e9fd3e7fd531b5b79cc52c
1,822
py
Python
tools/applause_detection/applause_detection.py
AudiovisualMetadataPlatform/amp_mgms
593d4f4d40b597a7753cd152cd233976e6b28c75
[ "Apache-2.0" ]
null
null
null
tools/applause_detection/applause_detection.py
AudiovisualMetadataPlatform/amp_mgms
593d4f4d40b597a7753cd152cd233976e6b28c75
[ "Apache-2.0" ]
1
2022-02-16T16:21:03.000Z
2022-02-16T16:21:03.000Z
tools/applause_detection/applause_detection.py
AudiovisualMetadataPlatform/amp_mgms
593d4f4d40b597a7753cd152cd233976e6b28c75
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import os.path import shutil import subprocess import sys import tempfile import argparse import amp.utils def main(): #(root_dir, input_audio, min_segment_duration, amp_segments) = sys.argv[1:5] parser = argparse.ArgumentParser() parser.add_argument("input_audio") p...
36.44
120
0.687157
0
0
0
0
0
0
0
0
817
0.448408
b16a393bb50e48e50f448e75e1aa34a864d369d1
226
py
Python
5_Pham_Ngo_Tien_Dung/3.1.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
5_Pham_Ngo_Tien_Dung/3.1.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
5_Pham_Ngo_Tien_Dung/3.1.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
8
2020-07-10T14:13:54.000Z
2020-08-03T08:17:50.000Z
"""Write a program that allow user enter a file name (path) then content, allow user to save it""" filename = input("Please input filename") f= open(filename,"w+") content = input("Please input content") f.write(content)
37.666667
99
0.712389
0
0
0
0
0
0
0
0
147
0.650442
b16bfa5767e1c86af8aeaefb5fff8896cc5aa5cc
1,523
py
Python
dxlnmapclient/constants.py
camilastock/opendxl-nmap-client-python
2221adcb154a412c14925935159afc67ed9ba7a5
[ "Apache-2.0" ]
null
null
null
dxlnmapclient/constants.py
camilastock/opendxl-nmap-client-python
2221adcb154a412c14925935159afc67ed9ba7a5
[ "Apache-2.0" ]
null
null
null
dxlnmapclient/constants.py
camilastock/opendxl-nmap-client-python
2221adcb154a412c14925935159afc67ed9ba7a5
[ "Apache-2.0" ]
1
2018-02-12T18:20:18.000Z
2018-02-12T18:20:18.000Z
class DxlNmapOptions: """ Constants that are used to execute Nmap tool +-------------+---------+----------------------------------------------------------+ | Option | Command | Description | +=============+=========+=============================...
60.92
88
0.169402
1,522
0.999343
0
0
0
0
0
0
1,416
0.929744
b16c522c8657dbedfb8cc24e18349f5784c77002
8,203
py
Python
2019/intcode/intcode/tests/test_intcode.py
Ganon11/AdventCode
eebf3413c8e73c45d0e0a65a80e57eaf594baead
[ "MIT" ]
null
null
null
2019/intcode/intcode/tests/test_intcode.py
Ganon11/AdventCode
eebf3413c8e73c45d0e0a65a80e57eaf594baead
[ "MIT" ]
null
null
null
2019/intcode/intcode/tests/test_intcode.py
Ganon11/AdventCode
eebf3413c8e73c45d0e0a65a80e57eaf594baead
[ "MIT" ]
null
null
null
import intcode def test_default_constructor(): # pylint: disable=C0116 values = [0, 1, 2, 0, 99] program = intcode.IntCodeProgram(values) assert program.instruction_pointer == 0 assert program.memory == values def test_noun_verb(): # pylint: disable=C0116 values = [0, 1, 2, 0, 99] program = intcode.IntCod...
31.30916
85
0.720224
0
0
0
0
0
0
0
0
644
0.078508
b16cd2c50420d1e6d132def2948468675ae9b60d
720
py
Python
tests/test_DataAugmenterExternally.py
AlexKay28/zarnitsa
c7e93423dcc1f000849f8c1e1f685e8a91b90f9c
[ "Apache-2.0" ]
8
2021-07-19T18:25:03.000Z
2021-10-05T15:25:20.000Z
tests/test_DataAugmenterExternally.py
AlexKay28/zarnitsa
c7e93423dcc1f000849f8c1e1f685e8a91b90f9c
[ "Apache-2.0" ]
22
2021-07-26T19:13:32.000Z
2021-10-09T18:56:07.000Z
tests/test_DataAugmenterExternally.py
AlexKay28/zarnitsa
c7e93423dcc1f000849f8c1e1f685e8a91b90f9c
[ "Apache-2.0" ]
1
2021-08-10T12:24:00.000Z
2021-08-10T12:24:00.000Z
import os import sys import pytest import numpy as np import pandas as pd from scipy.stats import ks_2samp sys.path.append("zarnitsa/") from zarnitsa.stats import DataAugmenterExternally N_TO_CHECK = 500 SIG = 0.5 @pytest.fixture def dae(): return DataAugmenterExternally() @pytest.fixture def normal_data()...
20
84
0.730556
0
0
0
0
182
0.252778
0
0
96
0.133333
b16d517f951d0f5516bebdb100e3d55e1e838a34
22,314
py
Python
cgc/Collision.py
Jfeatherstone/ColorGlass
f242541df614a8eea97c43d3480c779e92660ebb
[ "MIT" ]
null
null
null
cgc/Collision.py
Jfeatherstone/ColorGlass
f242541df614a8eea97c43d3480c779e92660ebb
[ "MIT" ]
null
null
null
cgc/Collision.py
Jfeatherstone/ColorGlass
f242541df614a8eea97c43d3480c779e92660ebb
[ "MIT" ]
null
null
null
from .Wavefunction import Wavefunction import numpy as np from scipy.fft import ifft2, fft2 import numba CACHE_OPTIMIZATIONS = True class Collision(): targetWavefunction = None # Implements wilson line incidentWavefunction = None # Doesn't (have to) implement wilson line _omega = None _omegaFFT = ...
37.314381
202
0.63691
17,357
0.777852
0
0
4,464
0.200054
0
0
12,468
0.558752
b1716479f1c26f49cf955c116938436d2e898588
21
py
Python
fastagram/tags/models/__init__.py
dobestan/fastagram
8c57401512d7621890a4f160d4b27c6e0d3ab326
[ "MIT" ]
1
2016-03-27T10:36:01.000Z
2016-03-27T10:36:01.000Z
fastagram/tags/models/__init__.py
dobestan/django-101-fastagram
8c57401512d7621890a4f160d4b27c6e0d3ab326
[ "MIT" ]
3
2016-03-25T05:32:39.000Z
2016-03-28T04:59:17.000Z
fastagram/tags/models/__init__.py
dobestan/django-101-fastagram
8c57401512d7621890a4f160d4b27c6e0d3ab326
[ "MIT" ]
1
2016-03-28T16:35:36.000Z
2016-03-28T16:35:36.000Z
from .tag import Tag
10.5
20
0.761905
0
0
0
0
0
0
0
0
0
0
b1724ba73246edc325129a0b1a56c982075f8024
8,346
py
Python
tensorflow/contrib/model_pruning/python/learning.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/model_pruning/python/learning.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/model_pruning/python/learning.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
42.581633
81
0.684999
0
0
0
0
0
0
0
0
6,123
0.733645
b172a5ff4bd5c2830f5d2332f4e30cc2a061bc37
306
py
Python
run2.py
akuz/deep-gen-mnist
13d4d350a0dc9dc7f0111c839fb7158654f048c4
[ "MIT" ]
null
null
null
run2.py
akuz/deep-gen-mnist
13d4d350a0dc9dc7f0111c839fb7158654f048c4
[ "MIT" ]
null
null
null
run2.py
akuz/deep-gen-mnist
13d4d350a0dc9dc7f0111c839fb7158654f048c4
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import model if __name__ == "__main__": print("Making level configs...") level_configs = model.default_level_configs() print("Making filter variables...") filters = model.make_filters(tf.get_default_graph(), level_configs) print("Done")
19.125
71
0.70915
0
0
0
0
0
0
0
0
69
0.22549
b17399bedc9351d3452e2254d35db67407d43d19
11,201
py
Python
payload_templates/lin_shell_payload.py
ahirejayeshbapu/python-shell
3560fe03f89557c1189255ca2737accdeda48faf
[ "MIT" ]
4
2018-09-20T13:37:28.000Z
2022-02-23T00:36:55.000Z
payload_templates/lin_shell_payload.py
ahirejayeshbapu/python-shell
3560fe03f89557c1189255ca2737accdeda48faf
[ "MIT" ]
null
null
null
payload_templates/lin_shell_payload.py
ahirejayeshbapu/python-shell
3560fe03f89557c1189255ca2737accdeda48faf
[ "MIT" ]
null
null
null
import subprocess, os, socket, re, pickle, docx, urllib2 from platform import platform from getpass import getuser from time import sleep from datetime import datetime port = !!!!! ip_addr = @@@@@ lkey = ##### End = $$$$$ skey = %%%%% time_to_sleep = ^^^^^ type_of_scout = 'Command Shell' try: operati...
37.713805
130
0.44871
0
0
0
0
0
0
0
0
2,741
0.24471
b17454e4938df93dd6729a10260ca6df34c9564c
84
py
Python
scripts/python/make-dist-cfg.py
brakmic/cm3
b99e280eca00c322e04e0586951de50108e51343
[ "BSD-4-Clause-UC", "BSD-4-Clause", "BSD-3-Clause" ]
2
2015-03-02T17:01:32.000Z
2021-12-29T14:34:46.000Z
scripts/python/make-dist-cfg.py
ganeshbabuNN/cm3
9fb432d44a2ba89575febb38f7c1eb3dca6a3879
[ "BSD-4-Clause-UC", "BSD-4-Clause", "BSD-3-Clause" ]
1
2015-07-23T07:51:22.000Z
2015-07-23T07:51:22.000Z
scripts/python/make-dist-cfg.py
RodneyBates/M3Devel
7b8dd3fc8f5b05d1c69774d92234ea50d143a692
[ "BSD-4-Clause-UC", "BSD-4-Clause" ]
1
2021-12-29T14:35:47.000Z
2021-12-29T14:35:47.000Z
#! /usr/bin/env python from pylib import * CopyConfigForDistribution(InstallRoot)
14
38
0.785714
0
0
0
0
0
0
0
0
22
0.261905
b175213c84777ec0e61947cb929e05305bf328ad
17,813
py
Python
bench.py
citorva/verificateur_defis_leviathan
98cd7280253a541d94b34c120879556585ef814c
[ "CC0-1.0" ]
null
null
null
bench.py
citorva/verificateur_defis_leviathan
98cd7280253a541d94b34c120879556585ef814c
[ "CC0-1.0" ]
null
null
null
bench.py
citorva/verificateur_defis_leviathan
98cd7280253a541d94b34c120879556585ef814c
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pygame import threading import time import math import sys import argparse import bench_core import multiprocessing # Couleurs du programme. Peut être modifié à tout moment couleur_txt = (0xc0, 0xc0, 0xc0) # Couleur gris clair pour le texte commun couleur_vic = (0...
41.233796
242
0.662999
0
0
0
0
0
0
0
0
6,589
0.367485
b17694133578e1b1a9c1c195cbd91ca5e72b6295
181
py
Python
test/conftest.py
PlaidCloud/sqlalchemy-greenplum
b40beeee8b775290b262d3b9989e8faeba8b2d20
[ "BSD-3-Clause" ]
6
2019-05-10T18:31:05.000Z
2021-09-08T16:59:46.000Z
test/conftest.py
PlaidCloud/sqlalchemy-greenplum
b40beeee8b775290b262d3b9989e8faeba8b2d20
[ "BSD-3-Clause" ]
2
2018-06-04T23:28:16.000Z
2022-03-08T14:20:14.000Z
test/conftest.py
PlaidCloud/sqlalchemy-greenplum
b40beeee8b775290b262d3b9989e8faeba8b2d20
[ "BSD-3-Clause" ]
1
2019-06-13T10:12:44.000Z
2019-06-13T10:12:44.000Z
from sqlalchemy.dialects import registry registry.register("greenplum", "sqlalchemy_greenplum.dialect", "GreenplumDialect") from sqlalchemy.testing.plugin.pytestplugin import *
22.625
82
0.823204
0
0
0
0
0
0
0
0
59
0.325967
b177b1d71b976403fe1dab8da5d47925b29da724
10,319
py
Python
xclim/core/locales.py
bzah/xclim
18ceee3f1db2d39355913c1c60ec32ddca6baccc
[ "Apache-2.0" ]
null
null
null
xclim/core/locales.py
bzah/xclim
18ceee3f1db2d39355913c1c60ec32ddca6baccc
[ "Apache-2.0" ]
2
2021-06-23T09:26:54.000Z
2021-07-26T19:28:41.000Z
xclim/core/locales.py
bzah/xclim
18ceee3f1db2d39355913c1c60ec32ddca6baccc
[ "Apache-2.0" ]
1
2021-03-02T20:12:28.000Z
2021-03-02T20:12:28.000Z
# -*- coding: utf-8 -*- # noqa: D205,D400 """ Internationalization ==================== Defines methods and object to help the internationalization of metadata for the climate indicators computed by xclim. All the methods and objects in this module use localization data given in json files. These files are expected t...
35.582759
198
0.64609
293
0.028364
0
0
0
0
0
0
5,952
0.576186
b1784fe113bca2d558cd14a80d284029cd03a532
92
py
Python
tests/samples/importing/nested/base.py
machinable-org/machinable
9d96e942dde05d68699bc7bc0c3d062ee18652ad
[ "MIT" ]
23
2020-02-28T14:29:04.000Z
2021-12-23T20:50:54.000Z
tests/samples/importing/nested/base.py
machinable-org/machinable
9d96e942dde05d68699bc7bc0c3d062ee18652ad
[ "MIT" ]
172
2020-02-24T12:12:11.000Z
2022-03-29T03:08:24.000Z
tests/samples/importing/nested/base.py
machinable-org/machinable
9d96e942dde05d68699bc7bc0c3d062ee18652ad
[ "MIT" ]
1
2020-11-23T22:42:20.000Z
2020-11-23T22:42:20.000Z
from machinable import Component class BaseComponent(Component): """Base component"""
15.333333
32
0.75
56
0.608696
0
0
0
0
0
0
20
0.217391
b17898d3cc02bf7ea9e57ca3010adf0a3b3916ab
435
py
Python
source/blockchain_backup/config/gunicorn.conf.py
denova-com/blockchain-backup
a445bcbd67bd6485a4969dc1e24d51fbffc43cff
[ "OLDAP-2.6", "OLDAP-2.4" ]
null
null
null
source/blockchain_backup/config/gunicorn.conf.py
denova-com/blockchain-backup
a445bcbd67bd6485a4969dc1e24d51fbffc43cff
[ "OLDAP-2.6", "OLDAP-2.4" ]
null
null
null
source/blockchain_backup/config/gunicorn.conf.py
denova-com/blockchain-backup
a445bcbd67bd6485a4969dc1e24d51fbffc43cff
[ "OLDAP-2.6", "OLDAP-2.4" ]
null
null
null
# See # The configuration file should be a valid Python source file with a python extension (e.g. gunicorn.conf.py). # https://docs.gunicorn.org/en/stable/configure.html bind='127.0.0.1:8962' timeout=75 daemon=True user='user' accesslog='/var/local/log/user/blockchain_backup.gunicorn.access.log' errorlog='/var/l...
29
113
0.777011
0
0
0
0
0
0
0
0
319
0.733333
b1791920593f4e50adb1ee5900ad47f68783a7d1
211
py
Python
code_snippets/api-monitor-schedule-downtime.py
brettlangdon/documentation
87c23cb1d5e3e877bb37a19f7231b5d9239509dc
[ "BSD-3-Clause" ]
null
null
null
code_snippets/api-monitor-schedule-downtime.py
brettlangdon/documentation
87c23cb1d5e3e877bb37a19f7231b5d9239509dc
[ "BSD-3-Clause" ]
null
null
null
code_snippets/api-monitor-schedule-downtime.py
brettlangdon/documentation
87c23cb1d5e3e877bb37a19f7231b5d9239509dc
[ "BSD-3-Clause" ]
null
null
null
from datadog import initialize, api options = { 'api_key': 'api_key', 'app_key': 'app_key' } initialize(**options) # Schedule downtime api.Downtime.create(scope='env:staging', start=int(time.time()))
17.583333
64
0.691943
0
0
0
0
0
0
0
0
68
0.322275
b17998122b0c9414fb547e0a5c5bf8d5f8b4473a
63
py
Python
src/oscar/apps/customer/__init__.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
4,639
2015-01-01T00:42:33.000Z
2022-03-29T18:32:12.000Z
src/oscar/apps/customer/__init__.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,215
2015-01-02T22:32:51.000Z
2022-03-29T12:16:23.000Z
src/oscar/apps/customer/__init__.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,187
2015-01-02T06:33:31.000Z
2022-03-31T15:32:36.000Z
default_app_config = 'oscar.apps.customer.apps.CustomerConfig'
31.5
62
0.84127
0
0
0
0
0
0
0
0
41
0.650794
b179f01fa470edabbb25665461efb486ca6b1128
795
py
Python
modnotes/converters.py
jack1142/SinbadCogs-1
e0f24c0dbc3f845aa7a37ca96d00ee59494911ca
[ "BSD-Source-Code" ]
null
null
null
modnotes/converters.py
jack1142/SinbadCogs-1
e0f24c0dbc3f845aa7a37ca96d00ee59494911ca
[ "BSD-Source-Code" ]
null
null
null
modnotes/converters.py
jack1142/SinbadCogs-1
e0f24c0dbc3f845aa7a37ca96d00ee59494911ca
[ "BSD-Source-Code" ]
null
null
null
import contextlib import re from typing import NamedTuple, Optional import discord from redbot.core.commands import BadArgument, Context, MemberConverter _discord_member_converter_instance = MemberConverter() _id_regex = re.compile(r"([0-9]{15,21})$") _mention_regex = re.compile(r"<@!?([0-9]{15,21})>$") class Membe...
27.413793
79
0.693082
485
0.610063
0
0
401
0.504403
384
0.483019
41
0.051572
b179ff426e1a26e74d3b6cc6592435b4bf9294c3
224
py
Python
face_api/admin.py
glen-s-abraham/face-detection-api
ce671a9750065c0fc82d0dd668299738f1c07508
[ "MIT" ]
null
null
null
face_api/admin.py
glen-s-abraham/face-detection-api
ce671a9750065c0fc82d0dd668299738f1c07508
[ "MIT" ]
null
null
null
face_api/admin.py
glen-s-abraham/face-detection-api
ce671a9750065c0fc82d0dd668299738f1c07508
[ "MIT" ]
null
null
null
from django.contrib import admin from face_api.models import KnowledgeDatabase from face_api.models import ImageUploads # Register your models here. admin.site.register(KnowledgeDatabase) admin.site.register(ImageUploads)
24.888889
45
0.848214
0
0
0
0
0
0
0
0
28
0.125
b17a29c0eb42919a5d5dc662a31db12c22531561
4,596
py
Python
plugins/base/views.py
adlerosn/corpusslayer
d3dea2e2d15e911d048a39f6ef6cb2d5f7b33e58
[ "MIT" ]
null
null
null
plugins/base/views.py
adlerosn/corpusslayer
d3dea2e2d15e911d048a39f6ef6cb2d5f7b33e58
[ "MIT" ]
1
2019-07-06T20:43:45.000Z
2019-07-06T20:43:45.000Z
plugins/base/views.py
adlerosn/corpusslayer
d3dea2e2d15e911d048a39f6ef6cb2d5f7b33e58
[ "MIT" ]
null
null
null
# Copyright (c) 2017 Adler Neves <[email protected]> # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, ...
38.3
104
0.698216
2,050
0.44604
0
0
0
0
0
0
1,512
0.328982
b17abbe2c8f968394190d9316ec3a085ca24ece7
197
py
Python
addons/stats/scripts/predictors/abstract_predictor.py
Kait-tt/tacowassa
7e71c6ef6b5f939a99a3600025b26d459ebc0233
[ "MIT" ]
null
null
null
addons/stats/scripts/predictors/abstract_predictor.py
Kait-tt/tacowassa
7e71c6ef6b5f939a99a3600025b26d459ebc0233
[ "MIT" ]
141
2016-08-23T03:44:17.000Z
2017-10-08T02:39:36.000Z
addons/stats/scripts/predictors/abstract_predictor.py
Kait-tt/tacowassa
7e71c6ef6b5f939a99a3600025b26d459ebc0233
[ "MIT" ]
1
2019-04-05T15:19:43.000Z
2019-04-05T15:19:43.000Z
# coding:utf-8 from abc import ABCMeta, abstractmethod class AbstractPredictor(metaclass=ABCMeta): @classmethod @abstractmethod def predicate(cls, tasks, user_id, cost): pass
19.7
45
0.720812
139
0.705584
0
0
91
0.461929
0
0
14
0.071066
b17ac66814a8b6950eb9f7e8278e334fa9498901
216
py
Python
day11/eqatri.py
nikhilsamninan/python-files
15198459081097058a939b40b5e8ef754e578fe0
[ "Apache-2.0" ]
null
null
null
day11/eqatri.py
nikhilsamninan/python-files
15198459081097058a939b40b5e8ef754e578fe0
[ "Apache-2.0" ]
null
null
null
day11/eqatri.py
nikhilsamninan/python-files
15198459081097058a939b40b5e8ef754e578fe0
[ "Apache-2.0" ]
null
null
null
size = 5 m = (2 * size)-2 for i in range(0, size): for j in range(0, m): print(end=" ") m = m - 1 for j in range(0, i + 1): if(m%2!=0): print("*", end=" ") print("")
12.705882
31
0.388889
0
0
0
0
0
0
0
0
11
0.050926
b17bb1524daf129418a0726643402df5cb23be6d
691
py
Python
tests/test_constants.py
9cat/dydx-v3-python
c222f3d0b1a870e63fcceaf19b42109c9558a6df
[ "Apache-2.0" ]
null
null
null
tests/test_constants.py
9cat/dydx-v3-python
c222f3d0b1a870e63fcceaf19b42109c9558a6df
[ "Apache-2.0" ]
null
null
null
tests/test_constants.py
9cat/dydx-v3-python
c222f3d0b1a870e63fcceaf19b42109c9558a6df
[ "Apache-2.0" ]
null
null
null
from dydx3.constants import SYNTHETIC_ASSET_MAP, SYNTHETIC_ASSET_ID_MAP, ASSET_RESOLUTION, COLLATERAL_ASSET class TestConstants(): def test_constants_have_regular_structure(self): for market, asset in SYNTHETIC_ASSET_MAP.items(): market_parts = market.split('-') base_token, quote_t...
40.647059
107
0.688857
580
0.839363
0
0
0
0
0
0
8
0.011577
b17beb716bfd95140964574b9d48ea04c12d770d
5,802
py
Python
src/cogs/invasion.py
calsf/codex-prime
c651d4c2f34581babc8078d01fe84dc95f3b7c36
[ "MIT" ]
null
null
null
src/cogs/invasion.py
calsf/codex-prime
c651d4c2f34581babc8078d01fe84dc95f3b7c36
[ "MIT" ]
null
null
null
src/cogs/invasion.py
calsf/codex-prime
c651d4c2f34581babc8078d01fe84dc95f3b7c36
[ "MIT" ]
null
null
null
#INVASION COMMANDS: # !invasions // !atinvasions <reward> // !rminvasions import discord from discord.ext import commands import asyncio from src import sess class Invasions(commands.Cog): def __init__(self, bot): self.bot = bot self.alert_dict = {} # user: reward, list of prev invasions with ...
42.977778
122
0.54757
5,588
0.963116
0
0
2,489
0.42899
4,998
0.861427
2,006
0.345743
b17cbc82703ac9fc882cd99a409335fa53853226
226
py
Python
samples-python/datalayer.calc/calculations/__init__.py
bracoe/ctrlx-automation-sdk
6b2e61e146c557488125baf941e4d64c6fa6d0fb
[ "MIT" ]
16
2021-08-23T13:07:12.000Z
2022-02-21T13:29:21.000Z
samples-python/datalayer.calc/calculations/__init__.py
bracoe/ctrlx-automation-sdk
6b2e61e146c557488125baf941e4d64c6fa6d0fb
[ "MIT" ]
null
null
null
samples-python/datalayer.calc/calculations/__init__.py
bracoe/ctrlx-automation-sdk
6b2e61e146c557488125baf941e4d64c6fa6d0fb
[ "MIT" ]
10
2021-09-29T09:58:33.000Z
2022-01-13T07:20:00.000Z
__version__ = '2.0.0' __description__ = 'Sample for calculations with data from the ctrlX Data Layer' __author__ = 'Fantastic Python Developers' __licence__ = 'MIT License' __copyright__ = 'Copyright (c) 2021 Bosch Rexroth AG'
45.2
79
0.778761
0
0
0
0
0
0
0
0
147
0.650442
b17e60242b5d5da25f1f85bc29429ee00fd48f19
320
py
Python
sqlalchemist/models/definitions.py
pmav99/sqlalchemist
af784f8d6e7c6c7298ad273c481af748cc0332d5
[ "BSD-3-Clause" ]
7
2019-09-06T21:58:42.000Z
2021-12-02T21:48:35.000Z
sqlalchemist/models/definitions.py
pmav99/sqlalchemy_playground
af784f8d6e7c6c7298ad273c481af748cc0332d5
[ "BSD-3-Clause" ]
null
null
null
sqlalchemist/models/definitions.py
pmav99/sqlalchemy_playground
af784f8d6e7c6c7298ad273c481af748cc0332d5
[ "BSD-3-Clause" ]
1
2021-01-22T03:23:21.000Z
2021-01-22T03:23:21.000Z
import sqlalchemy as sa from .meta import Base class Person(Base): __tablename__ = "person" id = sa.Column(sa.Integer, primary_key=True) name = sa.Column(sa.String) date_of_birth = sa.Column(sa.Date) height = sa.Column(sa.Integer) weight = sa.Column(sa.Numeric) __all__ = [ "Person", ]
16.842105
48
0.6625
239
0.746875
0
0
0
0
0
0
16
0.05
b17eab4940677c2202b0aa8a880f82fca874b795
2,732
py
Python
examples/example_hello_world.py
clbarnes/figurefirst
ed38e246a96f28530bf663eb6920da1c3ccee610
[ "MIT" ]
67
2016-06-03T20:37:56.000Z
2022-03-08T19:05:06.000Z
examples/example_hello_world.py
clbarnes/figurefirst
ed38e246a96f28530bf663eb6920da1c3ccee610
[ "MIT" ]
56
2016-05-23T17:44:04.000Z
2021-11-18T19:23:52.000Z
examples/example_hello_world.py
clbarnes/figurefirst
ed38e246a96f28530bf663eb6920da1c3ccee610
[ "MIT" ]
11
2017-07-13T14:25:08.000Z
2021-12-01T00:15:01.000Z
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt plt.ion() from figurefirst import FigureLayout layout = FigureLayout('example_hello_world_layout.svg') layout.make_mplfigures() d = np.array([[144, 57], [138, 57], [138, 59], [141, 61], [141, 82], [138, 84], [138, 85], [142, 85], [147, 85], [147...
143.789474
2,363
0.493411
0
0
0
0
0
0
0
0
119
0.043558
b17fee2e7308f25f04ee5daea15a5c921b98ff99
2,009
py
Python
cifar_exps/metric/local_config.py
maestrojeong/Deep-Hash-Table-ICML18-
0c7efa230f950d5a2cd1928ac9f5d99f4276d2b5
[ "MIT" ]
70
2018-06-03T04:19:13.000Z
2021-11-08T10:40:46.000Z
cifar_exps/metric/local_config.py
maestrojeong/Deep-Hash-Table-ICML18-
0c7efa230f950d5a2cd1928ac9f5d99f4276d2b5
[ "MIT" ]
null
null
null
cifar_exps/metric/local_config.py
maestrojeong/Deep-Hash-Table-ICML18-
0c7efa230f950d5a2cd1928ac9f5d99f4276d2b5
[ "MIT" ]
14
2018-06-03T16:34:55.000Z
2020-09-09T17:02:30.000Z
import sys sys.path.append("../../configs") #../../configs from path import EXP_PATH import numpy as np DECAY_PARAMS_DICT =\ { 'stair' : { 128 :{ 'a1': {'initial_lr' : 1e-5, 'decay_steps' : 50000, 'decay_rate' : 0.3}, 'a2' : {'initial_lr' : 3e-4, 'decay_step...
36.527273
88
0.47337
0
0
0
0
0
0
0
0
654
0.325535
b18129f45c367129cdadaeeefa97748f7c44101b
1,133
py
Python
POO punto 2/ManagerUsers.py
nan0te/Python-Algorithm-And-DataStructure
7b7802b56d397c38f230f5efb687cedc6cc263f3
[ "MIT" ]
null
null
null
POO punto 2/ManagerUsers.py
nan0te/Python-Algorithm-And-DataStructure
7b7802b56d397c38f230f5efb687cedc6cc263f3
[ "MIT" ]
null
null
null
POO punto 2/ManagerUsers.py
nan0te/Python-Algorithm-And-DataStructure
7b7802b56d397c38f230f5efb687cedc6cc263f3
[ "MIT" ]
null
null
null
from Profesional import Profesional from Particular import Particular from Comercial import Comercial class ManagerUsers: userslist = [] def addProfesional(self, name, address, baja, area, titulo): profesional = Profesional(name, address, baja, area, titulo) self.userslist.append(profes...
28.325
68
0.620477
397
0.350397
0
0
0
0
0
0
0
0
b1826d4965ab04b828a39c0aa6af7cd8e92a7f3e
10,419
py
Python
src/ggrc/models/mixins/with_action.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-12T23:46:00.000Z
2019-01-12T23:46:00.000Z
src/ggrc/models/mixins/with_action.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/models/mixins/with_action.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Contains WithAction mixin. A mixin for processing actions on an object in the scope of put request . """ from collections import namedtuple, defaultdict import werkzeug.exceptions as wzg_exceptions fro...
33.501608
79
0.613783
9,644
0.925617
0
0
814
0.078126
0
0
2,149
0.206258
b183550bc53fd30c394fa716585596aa04c10f32
99
py
Python
tests/__init__.py
Fokko/example-library-python
b20b69c6dae93c32cd3d2c86a644abbf6b85199b
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
Fokko/example-library-python
b20b69c6dae93c32cd3d2c86a644abbf6b85199b
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
Fokko/example-library-python
b20b69c6dae93c32cd3d2c86a644abbf6b85199b
[ "Apache-2.0" ]
null
null
null
import sys, os path = os.path.dirname(__file__) if path not in sys.path: sys.path.append(path)
19.8
32
0.717172
0
0
0
0
0
0
0
0
0
0
b184dd55b715329d1a0d130a5cfdba08a4a14ccb
3,457
py
Python
GAN_discriminator.py
SEE-MOF/Generation_of_atmospheric_cloud_fields_using_GANs
6dce1447e140f5724638ac576bbf913af4e8a0e6
[ "MIT" ]
null
null
null
GAN_discriminator.py
SEE-MOF/Generation_of_atmospheric_cloud_fields_using_GANs
6dce1447e140f5724638ac576bbf913af4e8a0e6
[ "MIT" ]
null
null
null
GAN_discriminator.py
SEE-MOF/Generation_of_atmospheric_cloud_fields_using_GANs
6dce1447e140f5724638ac576bbf913af4e8a0e6
[ "MIT" ]
1
2020-12-11T15:03:36.000Z
2020-12-11T15:03:36.000Z
import torch class GAN_discriminator (torch.nn.Module): def __init__(self, H): #for GAN # H=[5, 256, 128, 128, 5, 1, 64, 128, 256, 256, 4096, 1] #for CGAN # H =[8, 256, 128, 64, 8, 9, 64, 128, 256, 256, 4096, 1] super(GAN_discriminator, self).__init__() #region ...
37.576087
92
0.582586
3,443
0.99595
0
0
0
0
0
0
229
0.066242
b1867ef42ce297b26321e0a3ab432ed29359ffca
7,770
py
Python
statuspage_io.py
spyder007/pi-monitoring
fab660adcf6ed89a591a6ed2060d653369843e6e
[ "MIT" ]
null
null
null
statuspage_io.py
spyder007/pi-monitoring
fab660adcf6ed89a591a6ed2060d653369843e6e
[ "MIT" ]
null
null
null
statuspage_io.py
spyder007/pi-monitoring
fab660adcf6ed89a591a6ed2060d653369843e6e
[ "MIT" ]
null
null
null
import logging import statuspage_io_client import configuration from enums import OpLevel logger = logging.getLogger(__name__) class Incident: """Incident Class This class represents the details about a Statuspage.io incident Attributes: name: The incident name. description: The inciden...
38.85
223
0.674775
7,630
0.981982
0
0
0
0
0
0
3,233
0.416088
b188895e8bd69c46255cb2668635f56b60539874
14,875
py
Python
tests/test_gpath.py
ConductorTechnologies/ciopath
574bfc38859cc68a80b98f8b0cf0d9aeddb646e5
[ "MIT" ]
1
2020-10-13T07:50:19.000Z
2020-10-13T07:50:19.000Z
tests/test_gpath.py
ConductorTechnologies/ciopath
574bfc38859cc68a80b98f8b0cf0d9aeddb646e5
[ "MIT" ]
null
null
null
tests/test_gpath.py
ConductorTechnologies/ciopath
574bfc38859cc68a80b98f8b0cf0d9aeddb646e5
[ "MIT" ]
null
null
null
""" test gpath isort:skip_file """ import os import sys import unittest try: from unittest import mock except ImportError: import mock SRC = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "src") if SRC not in sys.path: sys.path.insert(0, SRC) from ciopath.gpath import Pat...
32.620614
93
0.604034
14,379
0.966655
0
0
0
0
0
0
2,547
0.171227
b188abfaae0783909143fd3975f59d921af7acbd
3,513
py
Python
linter.py
KidkArolis/SublimeLinter-contrib-healthier
5b912af5f9afca85de86d709c46d3e566057823f
[ "MIT" ]
null
null
null
linter.py
KidkArolis/SublimeLinter-contrib-healthier
5b912af5f9afca85de86d709c46d3e566057823f
[ "MIT" ]
3
2019-01-25T15:21:38.000Z
2019-01-30T23:52:11.000Z
linter.py
KidkArolis/SublimeLinter-contrib-healthier
5b912af5f9afca85de86d709c46d3e566057823f
[ "MIT" ]
null
null
null
"""This module exports the Healthier plugin class.""" import json import logging import re import shlex from SublimeLinter.lint import NodeLinter logger = logging.getLogger('SublimeLinter.plugin.healthier') class Healthier(NodeLinter): """Provides an interface to the healthier executable.""" # instead of us...
32.831776
79
0.545687
3,302
0.939937
1,729
0.492172
0
0
0
0
1,151
0.32764
b188c34a63c4e8f52180a384c6fb116f6a431c46
7,184
py
Python
model_compression_toolkit/gptq/pytorch/quantization_facade.py
ofirgo/model_optimization
18be895a35238df128913183b05e60550c2b6e6b
[ "Apache-2.0" ]
42
2021-10-31T10:17:49.000Z
2022-03-21T08:51:46.000Z
model_compression_toolkit/gptq/pytorch/quantization_facade.py
ofirgo/model_optimization
18be895a35238df128913183b05e60550c2b6e6b
[ "Apache-2.0" ]
6
2021-10-31T15:06:03.000Z
2022-03-31T10:32:53.000Z
model_compression_toolkit/gptq/pytorch/quantization_facade.py
ofirgo/model_optimization
18be895a35238df128913183b05e60550c2b6e6b
[ "Apache-2.0" ]
18
2021-11-01T12:16:43.000Z
2022-03-25T16:52:37.000Z
# Copyright 2022 Sony Semiconductors Israel, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
60.369748
334
0.680122
0
0
0
0
0
0
0
0
4,064
0.565702
b188f10ec381323c6265f65bdee66f4fcf49a96c
11,472
py
Python
transformer/dataset/graph.py
tmpaul06/dgl
8f458464b0e14c78978db4b91590e8ca718c5ec6
[ "Apache-2.0" ]
1
2019-03-15T07:25:09.000Z
2019-03-15T07:25:09.000Z
transformer/dataset/graph.py
tmpaul06/dgl
8f458464b0e14c78978db4b91590e8ca718c5ec6
[ "Apache-2.0" ]
null
null
null
transformer/dataset/graph.py
tmpaul06/dgl
8f458464b0e14c78978db4b91590e8ca718c5ec6
[ "Apache-2.0" ]
null
null
null
import dgl import torch as th import numpy as np import itertools import time from collections import * Graph = namedtuple('Graph', ['g', 'src', 'tgt', 'tgt_y', 'nids', 'eids', 'nid_arr', 'n_nodes', 'n_edges', 'n_tokens', 'layer_eids']) # We need to create new graph pools for relative position atte...
44.638132
174
0.539139
10,140
0.883891
0
0
0
0
0
0
2,363
0.20598
b189f5ce6dc38c0cbcc1102caf8a791a932e5870
12,747
py
Python
tests/asgi/test_configuration.py
mrmilu/ariadne
cba577bd4befd16e0ec22701a5ac68f719661a9a
[ "BSD-3-Clause" ]
1
2020-05-28T01:48:58.000Z
2020-05-28T01:48:58.000Z
tests/asgi/test_configuration.py
mrmilu/ariadne
cba577bd4befd16e0ec22701a5ac68f719661a9a
[ "BSD-3-Clause" ]
null
null
null
tests/asgi/test_configuration.py
mrmilu/ariadne
cba577bd4befd16e0ec22701a5ac68f719661a9a
[ "BSD-3-Clause" ]
null
null
null
# pylint: disable=not-context-manager from unittest.mock import ANY, Mock from starlette.testclient import TestClient from ariadne.asgi import ( GQL_CONNECTION_ACK, GQL_CONNECTION_INIT, GQL_DATA, GQL_ERROR, GQL_START, GraphQL, ) from ariadne.types import Extension def test_custom_context_val...
36.524355
87
0.672394
146
0.011454
0
0
0
0
305
0.023927
1,867
0.146466
b18afbecdd582dccbd726f5d982378f6fc6adc50
7,056
py
Python
OpenAI-Gym/agents/ddpg.py
stmobo/Machine-Learning
83f69c7afb0a4bc1dc94482b8d23805e8ab2acde
[ "MIT" ]
2
2017-09-26T04:39:04.000Z
2017-10-12T08:57:51.000Z
OpenAI-Gym/agents/ddpg.py
stmobo/Machine-Learning
83f69c7afb0a4bc1dc94482b8d23805e8ab2acde
[ "MIT" ]
null
null
null
OpenAI-Gym/agents/ddpg.py
stmobo/Machine-Learning
83f69c7afb0a4bc1dc94482b8d23805e8ab2acde
[ "MIT" ]
null
null
null
import tensorflow as tf import prettytensor as pt import numpy as np import gym import math import random from collections import deque from agents import mixed_network, spaces, replay_buffer tensorType = tf.float32 """ Implements a Deep Deterministic Policy Gradient agent. Adjustable parameters: - Actor / Critic ...
45.230769
150
0.658872
6,635
0.940334
0
0
0
0
0
0
1,514
0.214569
b18b42a0184f3b3519a30ad5c379fbaef6c9cbc7
14,426
py
Python
tests/unit/test_door.py
buxx/rolling
ef1268fe6ddabe768a125c3ce8b37e0b9cbad4a5
[ "MIT" ]
14
2019-11-16T18:51:51.000Z
2022-01-15T17:50:34.000Z
tests/unit/test_door.py
buxx/rolling
ef1268fe6ddabe768a125c3ce8b37e0b9cbad4a5
[ "MIT" ]
148
2018-12-10T09:07:45.000Z
2022-03-08T10:51:04.000Z
tests/unit/test_door.py
buxx/rolling
ef1268fe6ddabe768a125c3ce8b37e0b9cbad4a5
[ "MIT" ]
1
2020-08-05T14:25:48.000Z
2020-08-05T14:25:48.000Z
from aiohttp.test_utils import TestClient import pytest import typing import unittest.mock from rolling.kernel import Kernel from rolling.model.character import CharacterModel from rolling.model.character import MINIMUM_BEFORE_EXHAUSTED from rolling.server.document.affinity import AffinityDirectionType from rolling.se...
32.272931
93
0.643768
12,714
0.881325
848
0.058783
4,297
0.297865
8,305
0.575697
864
0.059892
b18c5f15c9a68336330b6b76a56071233826bf51
1,311
py
Python
myWeather2_github.py
RCElectronic/weatherlight
5d70b5bdbb67396620c211399c502b801878667f
[ "MIT" ]
null
null
null
myWeather2_github.py
RCElectronic/weatherlight
5d70b5bdbb67396620c211399c502b801878667f
[ "MIT" ]
null
null
null
myWeather2_github.py
RCElectronic/weatherlight
5d70b5bdbb67396620c211399c502b801878667f
[ "MIT" ]
null
null
null
# myWeather.py for inkyphat and RPiZW print('Starting') try: import requests print('requests module imported') except: print('Sorry, need to install requests module') exit() wx_url = 'api.openweathermap.org/data/2.5/weather?' wx_city = 'q=Quispamsis,CA&units=metric' wx_cityID = 'id=6115383&...
30.488372
64
0.617849
0
0
0
0
0
0
0
0
586
0.445967
b18cdd01036a990db77da457c825c577e134e9df
4,526
py
Python
push-to-gee.py
Servir-Mekong/sentinel-1-pipeline
79ccba65d974aa5c337adc4d72fa1df8ef75d20c
[ "MIT" ]
16
2020-04-19T12:54:55.000Z
2022-03-24T18:59:32.000Z
push-to-gee.py
Servir-Mekong/sentinel-1-pipeline
79ccba65d974aa5c337adc4d72fa1df8ef75d20c
[ "MIT" ]
2
2021-04-30T21:14:14.000Z
2021-06-02T01:39:56.000Z
push-to-gee.py
Servir-Mekong/sentinel-1-pipeline
79ccba65d974aa5c337adc4d72fa1df8ef75d20c
[ "MIT" ]
1
2021-04-21T08:58:12.000Z
2021-04-21T08:58:12.000Z
# -*- coding: utf-8 -*- from dotenv import load_dotenv load_dotenv('.env') import logging logging.basicConfig(filename='logs/push-2-gee.log', level=logging.INFO) import ast import glob import json import os import subprocess from datetime import datetime from dbio import * scale_factor = 10000 output_path = os.ge...
33.776119
122
0.592134
0
0
0
0
0
0
0
0
1,073
0.237075
b18dfbe911fad785c5c6176e1eec4c5f85de7b49
938
py
Python
rabbitai/tasks/celery_app.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/tasks/celery_app.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/tasks/celery_app.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
1
2021-07-09T16:29:50.000Z
2021-07-09T16:29:50.000Z
""" This is the main entrypoint used by Celery workers. As such, it needs to call create_app() in order to initialize things properly """ from typing import Any from celery.signals import worker_process_init # Rabbitai framework imports from rabbitai import create_app from rabbitai.extensions import celery_app, db #...
32.344828
87
0.765458
0
0
0
0
260
0.277186
0
0
535
0.570362
b18ee92e764bf93ddc723331ee49b72f1366542a
4,403
py
Python
adapters/adapter.py
ChristfriedBalizou/jeamsql
abd7735831b572f1f1a2d8e47b0759801fd5881c
[ "MIT" ]
null
null
null
adapters/adapter.py
ChristfriedBalizou/jeamsql
abd7735831b572f1f1a2d8e47b0759801fd5881c
[ "MIT" ]
null
null
null
adapters/adapter.py
ChristfriedBalizou/jeamsql
abd7735831b572f1f1a2d8e47b0759801fd5881c
[ "MIT" ]
null
null
null
from tabulate.tabulate import tabulate import subprocess import sys import os import re import csv import io import json class Adapter(object): def __init__(self, server=None, port=None, user=None, connection_cmd=None, cmd=None, test_query=...
24.461111
81
0.539859
4,279
0.971837
0
0
0
0
0
0
954
0.21667
b18f1a4acb87b8bb932241fcbf259f84c3dba954
3,000
py
Python
MyCrypto/dsa/sm2_dsa.py
hiyouga/cryptography-experiment
d76abc56d6c09c96dd93abcd51d3c9e38fc8787c
[ "MIT" ]
8
2019-11-30T14:45:13.000Z
2022-03-16T10:09:34.000Z
MyCrypto/dsa/sm2_dsa.py
hiyouga/Cryptographic-Algorithms-Python
d76abc56d6c09c96dd93abcd51d3c9e38fc8787c
[ "MIT" ]
null
null
null
MyCrypto/dsa/sm2_dsa.py
hiyouga/Cryptographic-Algorithms-Python
d76abc56d6c09c96dd93abcd51d3c9e38fc8787c
[ "MIT" ]
null
null
null
import sys sys.path.append("../..") import random from MyCrypto.utils.bitarray import bitarray from MyCrypto.algorithms.exgcd import inverse from MyCrypto.ecc.sm2 import SM2 class SM2_DSA(SM2): def __init__(self): super().__init__() def _identity(self, uid:bitarray, PK) -> bitarray: e...
35.714286
92
0.549667
2,409
0.803
0
0
0
0
0
0
145
0.048333
b18f8ac4ca91a60fabe49e7603be45706caf3334
52
py
Python
chatbot/component/__init__.py
zgj0607/ChatBot
3c6126754b9d037a04bd80d13874e2ae16b2c421
[ "Apache-2.0" ]
null
null
null
chatbot/component/__init__.py
zgj0607/ChatBot
3c6126754b9d037a04bd80d13874e2ae16b2c421
[ "Apache-2.0" ]
null
null
null
chatbot/component/__init__.py
zgj0607/ChatBot
3c6126754b9d037a04bd80d13874e2ae16b2c421
[ "Apache-2.0" ]
null
null
null
__all__ = ( 'readonly_admin', 'singleton' )
10.4
21
0.576923
0
0
0
0
0
0
0
0
27
0.519231
b18f8f8fa2a426987f403aea37090ba3d3fc94d4
5,103
py
Python
calculadora.py
LucasCouto22/calculadoraPython
84426c8d71f2c2186ae500245423516000e19ec0
[ "Apache-2.0" ]
null
null
null
calculadora.py
LucasCouto22/calculadoraPython
84426c8d71f2c2186ae500245423516000e19ec0
[ "Apache-2.0" ]
null
null
null
calculadora.py
LucasCouto22/calculadoraPython
84426c8d71f2c2186ae500245423516000e19ec0
[ "Apache-2.0" ]
null
null
null
def somar(x, y): if x and y >= 0: x = x + y return(x) def subtrair(x, y): if x and y >= 0: x = x - y return(x) def multiplicar(x, y): if x and y >= 0: x = x * y return(x) def dividirInteiro(x, y): if x and y >= 0: x = x / y return(x) def dividir(x, y):...
26.440415
77
0.406232
0
0
0
0
0
0
0
0
1,141
0.2232
b190d1c3b154f53e7b40cd2cb8a33782b7ce1f7f
1,982
py
Python
prime_issue_spoilage/main.py
NicholasSynovic/ssl-metrics-github-issue-spoilage
05711b6103aa6b6b935d02aa92fbcaf735a63cea
[ "BSD-3-Clause" ]
null
null
null
prime_issue_spoilage/main.py
NicholasSynovic/ssl-metrics-github-issue-spoilage
05711b6103aa6b6b935d02aa92fbcaf735a63cea
[ "BSD-3-Clause" ]
null
null
null
prime_issue_spoilage/main.py
NicholasSynovic/ssl-metrics-github-issue-spoilage
05711b6103aa6b6b935d02aa92fbcaf735a63cea
[ "BSD-3-Clause" ]
null
null
null
from argparse import Namespace from datetime import datetime import pandas from dateutil.parser import parse as dateParse from intervaltree import IntervalTree from pandas import DataFrame from prime_issue_spoilage.utils.primeIssueSpoilageArgs import mainArgs def getIssueTimelineIntervals(day0: datetime, issues: Da...
28.314286
77
0.706862
0
0
0
0
0
0
0
0
121
0.061049
b192038591712556b2d6695f9b0d3ac03bfac07f
4,544
py
Python
IFR/mmseg/datasets/pipelines/semi/loading.py
jfzhuang/IFR
d6ffdd0c0810d7bb244f102ba8cc19c12f61e102
[ "MIT" ]
3
2022-03-09T13:15:15.000Z
2022-03-21T06:59:10.000Z
IFR/mmseg/datasets/pipelines/semi/loading.py
jfzhuang/IFR
d6ffdd0c0810d7bb244f102ba8cc19c12f61e102
[ "MIT" ]
null
null
null
IFR/mmseg/datasets/pipelines/semi/loading.py
jfzhuang/IFR
d6ffdd0c0810d7bb244f102ba8cc19c12f61e102
[ "MIT" ]
null
null
null
import os.path as osp import mmcv import numpy as np from mmseg.datasets.builder import PIPELINES @PIPELINES.register_module() class LoadImageFromFile_Semi(object): def __init__( self, to_float32=False, color_type='color', file_client_args=dict(backend='disk'), imdecode_backend='cv2' ): self...
40.571429
116
0.650088
4,380
0.963908
0
0
4,438
0.976673
0
0
748
0.164613
b192ffd8dc0dbef0c193761ff4f0641070958f09
3,384
py
Python
topologies/dc_t1.py
andriymoroz/sai-challenger
665f5dbff8c797cfd55cc0c13b03a77aefdb9977
[ "Apache-2.0" ]
11
2021-04-23T05:54:05.000Z
2022-03-29T16:37:42.000Z
topologies/dc_t1.py
andriymoroz/sai-challenger
665f5dbff8c797cfd55cc0c13b03a77aefdb9977
[ "Apache-2.0" ]
4
2021-06-02T11:05:31.000Z
2021-11-26T14:39:50.000Z
topologies/dc_t1.py
andriymoroz/sai-challenger
665f5dbff8c797cfd55cc0c13b03a77aefdb9977
[ "Apache-2.0" ]
14
2021-02-27T15:17:31.000Z
2021-11-01T10:15:51.000Z
from contextlib import contextmanager import pytest from sai import SaiObjType @contextmanager def config(npu): topo_cfg = { "lo_rif_oid": None, "cpu_port_oid": None, } # Create Loopback RIF lo_rif_oid = npu.create(SaiObjType.ROUTER_INTERFACE, [ ...
40.285714
110
0.637411
0
0
3,285
0.970745
3,301
0.975473
0
0
1,336
0.394799
b193f13f0d572526822d816991b5f3105ef56820
7,045
py
Python
asynchronous_qiwi/models/QIWIWallet/master_m/list_qvc.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
3
2021-05-20T02:36:30.000Z
2021-11-28T16:00:15.000Z
asynchronous_qiwi/models/QIWIWallet/master_m/list_qvc.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
null
null
null
asynchronous_qiwi/models/QIWIWallet/master_m/list_qvc.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
1
2021-11-28T16:00:20.000Z
2021-11-28T16:00:20.000Z
from loguru import logger import datetime from pydantic.fields import ModelField from typing import Optional, List, Union, Any from ....utils.tools.str_datetime import convert from pydantic import BaseModel, Field, validator, ValidationError from ....data_types.QIWIWallet.list_qvc import ReleasedCardStatus, CardType, C...
41.686391
107
0.628957
6,695
0.950319
0
0
4,255
0.603974
0
0
647
0.091838
b194d8469a9b5649a06d4a8f9eab020579871edb
818
py
Python
src/mciso/visualize.py
lancechua/mciso
2fd406b7c54f9cb6b331ae8ad3470d1f47696494
[ "MIT" ]
2
2021-08-06T14:20:37.000Z
2022-03-29T16:13:10.000Z
src/mciso/visualize.py
lancechua/mciso
2fd406b7c54f9cb6b331ae8ad3470d1f47696494
[ "MIT" ]
null
null
null
src/mciso/visualize.py
lancechua/mciso
2fd406b7c54f9cb6b331ae8ad3470d1f47696494
[ "MIT" ]
1
2021-08-06T14:21:13.000Z
2021-08-06T14:21:13.000Z
import matplotlib.pyplot as plt import pandas as pd def scenarios_by_product( X: "np.ndarray", indices: list, products: list, ax: plt.Axes = None ) -> plt.Axes: """Plot generated scenarios, with a subplot for each product""" if ax is None: _, ax = plt.subplots(X.shape[-1], 1, figsize=(8, X.shape[-...
27.266667
87
0.57335
0
0
0
0
0
0
0
0
92
0.112469
b194dd14e51803a9d2a228b8e98a09f53e6b31cf
26,160
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
36.536313
123
0.718425
25,467
0.972988
0
0
0
0
0
0
15,275
0.583594
b197033d00037d8ccf26822dfa92949370b97250
308
py
Python
lcd_rom_small.py
rhubarbdog/microbit-LCD-driver
d1a7f5cf3c4cfe825da873ae1a25b5765fe8ca3e
[ "MIT" ]
2
2020-11-23T20:27:03.000Z
2021-11-04T12:08:10.000Z
lcd_rom_small.py
rhubarbdog/microbit-LCD-driver
d1a7f5cf3c4cfe825da873ae1a25b5765fe8ca3e
[ "MIT" ]
1
2021-12-14T10:47:00.000Z
2021-12-14T12:02:08.000Z
lcd_rom_small.py
rhubarbdog/microbit-LCD-driver
d1a7f5cf3c4cfe825da873ae1a25b5765fe8ca3e
[ "MIT" ]
null
null
null
from microbit import * import microbit_i2c_lcd as lcd i2c.init(sda=pin15,scl=pin13) display = lcd.lcd(i2c) display.lcd_display_string(str(chr(247)), 1) print("this will display a pi symbol for ROM A00 japaneese\n"+\ "display a divide symbol for the A02 ROM european") i2c.init(sda=pin20,scl=pin19)
23.692308
63
0.746753
0
0
0
0
0
0
0
0
105
0.340909
b19975a6c0f70cdf1b6594a54b946673ec51a754
11,349
py
Python
benchmarks/benchmarks.py
alanefl/vdf-competition
84efc3aec180c43582c9421c6fb7fb2e22000635
[ "Apache-2.0" ]
97
2018-10-04T18:10:42.000Z
2021-08-23T10:37:06.000Z
benchmarks/benchmarks.py
alanefl/vdf-competition
84efc3aec180c43582c9421c6fb7fb2e22000635
[ "Apache-2.0" ]
4
2018-10-04T18:20:49.000Z
2021-05-03T07:13:14.000Z
benchmarks/benchmarks.py
alanefl/vdf-competition
84efc3aec180c43582c9421c6fb7fb2e22000635
[ "Apache-2.0" ]
17
2018-10-08T18:08:21.000Z
2022-01-12T00:54:32.000Z
import time import textwrap import math import binascii from inkfish.create_discriminant import create_discriminant from inkfish.classgroup import ClassGroup from inkfish.iterate_squarings import iterate_squarings from inkfish import proof_wesolowski from inkfish.proof_of_time import (create_proof_of_time_nwesolowski,...
38.602041
114
0.707639
0
0
0
0
0
0
0
0
3,752
0.330602
b19995883a43664eea79cdbbf4ebcc8afcf1f9f2
2,415
py
Python
ccl_dask_blizzard.py
michaelleerilee/CCL-M2BLIZZARD
ff936647d69c5e83553b55d84d7b3a0636290c77
[ "BSD-3-Clause" ]
null
null
null
ccl_dask_blizzard.py
michaelleerilee/CCL-M2BLIZZARD
ff936647d69c5e83553b55d84d7b3a0636290c77
[ "BSD-3-Clause" ]
null
null
null
ccl_dask_blizzard.py
michaelleerilee/CCL-M2BLIZZARD
ff936647d69c5e83553b55d84d7b3a0636290c77
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from load_for_ccl_inputs import load_for_ccl_inputs from ccl_marker_stack import ccl_dask base = '/home/mrilee/nobackup/tmp/others/' fnames = None if False: fnames = ['ccl-inputs-globe-122736+23.csv.gz'] if False: fnames = ['ccl-inputs-globe-122736+23.csv.gz' ...
30.56962
119
0.670807
0
0
0
0
0
0
0
0
1,127
0.466667
b19b15001ce2daedc7edc47219f748a11fbd096b
3,108
py
Python
setup.py
RiS3-Lab/polytracker
2ea047738717ff0c22e3b157934667c9ed84fa6f
[ "Apache-2.0" ]
null
null
null
setup.py
RiS3-Lab/polytracker
2ea047738717ff0c22e3b157934667c9ed84fa6f
[ "Apache-2.0" ]
1
2020-09-01T15:58:13.000Z
2021-01-18T16:24:56.000Z
setup.py
RiS3-Lab/polytracker
2ea047738717ff0c22e3b157934667c9ed84fa6f
[ "Apache-2.0" ]
null
null
null
import os import re import sys from setuptools import setup, find_packages from typing import Optional, Tuple SETUP_DIR = os.path.dirname(os.path.realpath(__file__)) POLYTRACKER_HEADER = os.path.join(SETUP_DIR, 'polytracker', 'include', 'polytracker', 'polytracker.h') if not os.path.exists(POLYTRACKER_HEADER): sy...
35.318182
120
0.604247
0
0
0
0
0
0
0
0
1,161
0.373552
b19b3f7c4a68fc939bc0e963cc37d4583121c7aa
111
py
Python
Game22/modules/online/__init__.py
ttkaixin1998/pikachupythongames
609a3a5a2be3f5a187c332c7980bb5bb14548f02
[ "MIT" ]
4,013
2018-06-16T08:00:02.000Z
2022-03-30T11:48:14.000Z
Game22/modules/online/__init__.py
pigbearcat/Games
b8c47ef1bcce9a9db3f3730c162e6e8e08b508a2
[ "MIT" ]
22
2018-10-18T00:15:50.000Z
2022-01-13T08:16:15.000Z
Game22/modules/online/__init__.py
pigbearcat/Games
b8c47ef1bcce9a9db3f3730c162e6e8e08b508a2
[ "MIT" ]
2,172
2018-07-20T04:03:14.000Z
2022-03-31T14:18:29.000Z
'''初始化''' from .server import gobangSever from .client import gobangClient from .playOnline import playOnlineUI
27.75
36
0.810811
0
0
0
0
0
0
0
0
15
0.128205
b19b4f05269a9c0a51ba854a6b3f0bd1816a6911
9,317
py
Python
gazette_processor/gazette.py
GabrielTrettel/DiariesProcessor
817b4d8d1bbf0fe88b315b159e949fe49a2324f7
[ "MIT" ]
2
2020-10-04T19:45:45.000Z
2020-10-28T20:21:08.000Z
gazette_processor/gazette.py
GabrielTrettel/DiariesProcessor
817b4d8d1bbf0fe88b315b159e949fe49a2324f7
[ "MIT" ]
6
2020-09-25T14:31:12.000Z
2020-09-28T13:37:37.000Z
gazette_processor/gazette.py
GabrielTrettel/DiariesProcessor
817b4d8d1bbf0fe88b315b159e949fe49a2324f7
[ "MIT" ]
null
null
null
import os,sys, re from math import ceil, floor class Gazette: """ Loads and parses municipal gazettes. Attributes: file_path: The string path to a gazette. file: The string containing a gazette's content. city: A string for the city (or cities) of the gazette. date: A st...
30.152104
114
0.605452
8,886
0.953536
0
0
148
0.015882
0
0
1,919
0.205923
b19b6144712313556ed4af7f1913f9e90750f30c
1,065
py
Python
homepairs/HomepairsApp/Apps/Tenants/migrations/0001_initial.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
1
2021-01-19T00:48:10.000Z
2021-01-19T00:48:10.000Z
homepairs/HomepairsApp/Apps/Tenants/migrations/0001_initial.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
17
2020-01-23T05:51:18.000Z
2020-06-16T02:33:41.000Z
homepairs/HomepairsApp/Apps/Tenants/migrations/0001_initial.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
1
2020-08-06T02:10:58.000Z
2020-08-06T02:10:58.000Z
# Generated by Django 3.0.2 on 2020-03-03 21:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('PropertyManagers', '0001_initial'), ('Properties', '0001_initial'), ] operations = [ ...
35.5
139
0.611268
939
0.88169
0
0
0
0
0
0
225
0.211268
b19cab2172cb675aff98cad37d3038a9d288244b
21,295
py
Python
edk2toolext/image_validation.py
cfernald/edk2-pytool-extensions
3452e781a021e9b736fb10dbd3e7645a2efc400f
[ "BSD-2-Clause-Patent" ]
null
null
null
edk2toolext/image_validation.py
cfernald/edk2-pytool-extensions
3452e781a021e9b736fb10dbd3e7645a2efc400f
[ "BSD-2-Clause-Patent" ]
null
null
null
edk2toolext/image_validation.py
cfernald/edk2-pytool-extensions
3452e781a021e9b736fb10dbd3e7645a2efc400f
[ "BSD-2-Clause-Patent" ]
null
null
null
# @file image_validation.py # This tool allows a user validate an PE/COFF file # against specific requirements ## # Copyright (c) Microsoft Corporation # # SPDX-License-Identifier: BSD-2-Clause-Patent ## from datetime import datetime import os from pefile import PE, SECTION_CHARACTERISTICS, MACHINE_TYPE, SUBSYSTEM_TYP...
34.795752
112
0.505565
16,493
0.774501
0
0
0
0
0
0
8,707
0.408875
b19eba8650f17954158c7ab292c05abfa2a4065c
44
py
Python
src/basics/files/delete_fichero.py
FoxNeo/MyPythonProjects
3499ef0853f0087f6f143e1633b0a88a3d7b9818
[ "MIT" ]
null
null
null
src/basics/files/delete_fichero.py
FoxNeo/MyPythonProjects
3499ef0853f0087f6f143e1633b0a88a3d7b9818
[ "MIT" ]
null
null
null
src/basics/files/delete_fichero.py
FoxNeo/MyPythonProjects
3499ef0853f0087f6f143e1633b0a88a3d7b9818
[ "MIT" ]
null
null
null
import os os.remove("fichero_generado.txt")
14.666667
33
0.795455
0
0
0
0
0
0
0
0
22
0.5
b19fd8f1c6f4a820c1d3db28aa85e5f3c1020cae
31,290
py
Python
Canon-M10.py
emanuelelaface/Canon-M10
bd4559b2e528fbaa9559a92c4e752ce5f96c1053
[ "MIT" ]
3
2019-12-06T22:32:31.000Z
2022-02-13T00:35:55.000Z
Canon-M10.py
emanuelelaface/Canon-M10
bd4559b2e528fbaa9559a92c4e752ce5f96c1053
[ "MIT" ]
null
null
null
Canon-M10.py
emanuelelaface/Canon-M10
bd4559b2e528fbaa9559a92c4e752ce5f96c1053
[ "MIT" ]
5
2019-12-06T22:32:23.000Z
2021-12-26T20:46:56.000Z
# -*- coding: utf-8 -*- from remi.gui import * from remi import start, App import cv2 import numpy import chdkptp import time import threading import rawpy class OpenCVVideoWidget(Image): def __init__(self, **kwargs): super(OpenCVVideoWidget, self).__init__("/%s/get_image_data" % id(self), **kwargs) ...
58.376866
703
0.577245
30,947
0.989006
0
0
11,213
0.358346
0
0
11,244
0.359337
b1a00da7893518e48125fe8f8ffac5ec512f86f7
781
py
Python
server/utils/exception/exception.py
mnichangxin/blog-server
44544c53542971e4ba31b7d1a58d2a7fe55bfe06
[ "MIT" ]
null
null
null
server/utils/exception/exception.py
mnichangxin/blog-server
44544c53542971e4ba31b7d1a58d2a7fe55bfe06
[ "MIT" ]
null
null
null
server/utils/exception/exception.py
mnichangxin/blog-server
44544c53542971e4ba31b7d1a58d2a7fe55bfe06
[ "MIT" ]
null
null
null
from werkzeug.exceptions import HTTPException class APIException(HTTPException): def __init__(self, msg='客户端错误', code=400, err_code=900, headers=None): self.msg = msg self.code = code self.err_code = err_code super(APIException, self).__init__(msg, None) ''' Custom info...
32.541667
74
0.627401
752
0.938826
0
0
0
0
0
0
240
0.299625
b1a21975ae4f7b1e5e6eec59130eae251c21b5f0
2,159
py
Python
backend/fetch_tweet.py
phuens/Tweet_Analysis
8d5fca79107bd4af5278a4530ea1131482f49b42
[ "MIT" ]
null
null
null
backend/fetch_tweet.py
phuens/Tweet_Analysis
8d5fca79107bd4af5278a4530ea1131482f49b42
[ "MIT" ]
null
null
null
backend/fetch_tweet.py
phuens/Tweet_Analysis
8d5fca79107bd4af5278a4530ea1131482f49b42
[ "MIT" ]
null
null
null
import json import csv import tweepy from textblob import TextBlob import nltk from nltk.tokenize import word_tokenize def search_for_hashtags(consumer_key, consumer_secret, access_token, access_token_secret, hashtag_phrase): # create authentication for accessing Twitter auth = tweepy.OAuthHandler(consumer_ke...
38.553571
131
0.637332
0
0
0
0
0
0
0
0
607
0.281149
b1a2e9e876bf7788f4968b9eb3b29a91a90c21c3
9,585
py
Python
umich_daily.py
mpars0ns/scansio-sonar-es
ea7b1928277317b97c84443812da01af99ef0feb
[ "BSD-3-Clause" ]
36
2015-10-14T21:17:16.000Z
2022-01-21T16:34:24.000Z
umich_daily.py
mpars0ns/scansio-sonar-es
ea7b1928277317b97c84443812da01af99ef0feb
[ "BSD-3-Clause" ]
5
2015-10-19T13:47:55.000Z
2017-06-21T07:12:41.000Z
umich_daily.py
mpars0ns/scansio-sonar-es
ea7b1928277317b97c84443812da01af99ef0feb
[ "BSD-3-Clause" ]
8
2016-04-28T09:34:20.000Z
2022-01-21T16:34:23.000Z
import argparse import sys from multiprocessing import cpu_count, Process, Queue import json import logging from datetime import datetime from elasticsearch import Elasticsearch from elasticsearch.helpers import bulk, scan import hashlib from helpers.certparser import process_cert from helpers.hostparser import procc...
45.212264
119
0.605842
0
0
0
0
0
0
0
0
3,666
0.382473
b1a35e06a9245c638232ac973c3cdcca21d276f6
980
py
Python
project/tests/scripts/system_vars.py
LeDron12/c2eo
4f0dc6ed79df0739bd834eda6a0f77f3caf4292c
[ "MIT" ]
12
2021-08-05T12:12:09.000Z
2022-03-08T13:33:53.000Z
project/tests/scripts/system_vars.py
LeDron12/c2eo
4f0dc6ed79df0739bd834eda6a0f77f3caf4292c
[ "MIT" ]
26
2021-08-23T10:25:37.000Z
2022-03-30T12:56:08.000Z
project/tests/scripts/system_vars.py
LeDron12/c2eo
4f0dc6ed79df0739bd834eda6a0f77f3caf4292c
[ "MIT" ]
12
2021-08-17T09:20:07.000Z
2022-03-31T13:37:28.000Z
integer = [ ['lld', 'long long', 9223372036854775807, -9223372036854775808], ['ld', 'long', 9223372036854775807, -9223372036854775808], ['lu', 'unsigned long', 18446744073709551615, 0], ['d', 'signed', 2147483647, -2147483648], ['u', 'unsigned', 4294967295, 0], ['hd', 'short', 32767, -32768], ...
29.69697
68
0.596939
0
0
0
0
0
0
0
0
397
0.405102
b1a435a669f2409d097f7f74a5d9ca3c12d7e85f
1,944
py
Python
isaactest/tests/recieve_verify_emails.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
null
null
null
isaactest/tests/recieve_verify_emails.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2016-01-15T11:28:06.000Z
2016-01-25T17:09:18.000Z
isaactest/tests/recieve_verify_emails.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2019-05-14T16:53:49.000Z
2019-05-14T16:53:49.000Z
from ..utils.log import log, INFO, ERROR, PASS from ..utils.i_selenium import assert_tab, image_div from ..tests import TestWithDependency __all__ = ["recieve_verify_emails"] ##### # Test : Recieve Verification Emails ##### @TestWithDependency("RECIEVE_VERIFY_EMAILS", ["REQ_VERIFY_EMAILS"]) def recieve_verify_emails...
44.181818
149
0.718107
0
0
0
0
1,716
0.882716
0
0
715
0.367798
b1a4e4ea2b00add4c4b415ad7ce218f992351283
536
py
Python
setup.py
msabramo/grr
4b13392528d61a3d42e6c3baa14fa74cc920c055
[ "CC0-1.0" ]
null
null
null
setup.py
msabramo/grr
4b13392528d61a3d42e6c3baa14fa74cc920c055
[ "CC0-1.0" ]
null
null
null
setup.py
msabramo/grr
4b13392528d61a3d42e6c3baa14fa74cc920c055
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup import sys setup( name='grr', version='0.2', author='Kunal Mehta', author_email='[email protected]', url='https://github.com/legoktm/grr/', license='CC-0', description='A command-line utility to work with Gerrit', long_description=open...
24.363636
74
0.613806
0
0
0
0
0
0
0
0
211
0.393657
b1a5144b5a072c013aabc225925d03cb09f975fc
11,553
py
Python
runtime/server/x86_gpu/model_repo_stateful/wenet/1/wenet_onnx_model.py
zelda3721/wenet
f41555469b93bcc055a95432dd14fd1400522964
[ "Apache-2.0" ]
null
null
null
runtime/server/x86_gpu/model_repo_stateful/wenet/1/wenet_onnx_model.py
zelda3721/wenet
f41555469b93bcc055a95432dd14fd1400522964
[ "Apache-2.0" ]
null
null
null
runtime/server/x86_gpu/model_repo_stateful/wenet/1/wenet_onnx_model.py
zelda3721/wenet
f41555469b93bcc055a95432dd14fd1400522964
[ "Apache-2.0" ]
1
2022-02-08T07:39:13.000Z
2022-02-08T07:39:13.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
42.947955
87
0.528348
10,698
0.925993
0
0
0
0
0
0
1,736
0.150264
b1a58559665e94514cdf1de5372c35158b389ecc
7,254
py
Python
stuojchaques.py
sunlupeng2020/stuoj
f8c109894e7a7118dc632fef34c55a01fe116f9a
[ "Apache-2.0" ]
null
null
null
stuojchaques.py
sunlupeng2020/stuoj
f8c109894e7a7118dc632fef34c55a01fe116f9a
[ "Apache-2.0" ]
null
null
null
stuojchaques.py
sunlupeng2020/stuoj
f8c109894e7a7118dc632fef34c55a01fe116f9a
[ "Apache-2.0" ]
null
null
null
# 获取学生所有的挑战题目信息 # 包括时间、结果、代码等 # 写入数据库stuoj的stuquestionbh表中 from selenium import webdriver # from selenium.webdriver.common.by import By import pymysql import re from bs4 import BeautifulSoup import connsql # import loginzznuoj from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support impo...
35.043478
114
0.666391
0
0
0
0
0
0
0
0
4,856
0.593643
b1a5a19351b24a513cab2db62b55e27e8f29e1d1
3,899
py
Python
tests/test_core.py
TheCheapestPixels/panda3d-stageflow
7a049d939dec39e3ac780872bbaba5c25f309397
[ "BSD-3-Clause" ]
3
2020-10-04T18:52:37.000Z
2022-02-21T13:21:45.000Z
tests/test_core.py
TheCheapestPixels/panda3d-stageflow
7a049d939dec39e3ac780872bbaba5c25f309397
[ "BSD-3-Clause" ]
2
2020-05-28T03:33:47.000Z
2020-05-28T03:38:30.000Z
tests/test_core.py
TheCheapestPixels/panda3d-stageflow
7a049d939dec39e3ac780872bbaba5c25f309397
[ "BSD-3-Clause" ]
null
null
null
from stageflow import Flow from stageflow import Stage def test_create_stage(): Stage() def test_create_flow_bare(): flow = Flow() assert flow.get_current_stage() is None assert set(flow.get_stages()) == set([]) def test_create_flow_and_add_stage(): flow = Flow() flow.add_stage('test', St...
24.36875
58
0.616055
1,344
0.344704
0
0
0
0
0
0
388
0.099513
b1a639ae9556a6f333b9ef26546b354a0f37d7a5
1,925
py
Python
Yukki/__main__.py
nezukorobot/YUUKI
7589acbb7db1e52710ee9fce1bdc6df5cb924be6
[ "MIT" ]
null
null
null
Yukki/__main__.py
nezukorobot/YUUKI
7589acbb7db1e52710ee9fce1bdc6df5cb924be6
[ "MIT" ]
null
null
null
Yukki/__main__.py
nezukorobot/YUUKI
7589acbb7db1e52710ee9fce1bdc6df5cb924be6
[ "MIT" ]
1
2021-12-01T10:17:55.000Z
2021-12-01T10:17:55.000Z
import asyncio import time import uvloop import importlib from pyrogram import Client as Bot, idle from .config import API_ID, API_HASH, BOT_TOKEN, MONGO_DB_URI, SUDO_USERS, LOG_GROUP_ID from Yukki import BOT_NAME, ASSNAME, app, chacha, aiohttpsession from Yukki.YukkiUtilities.database.functions import clean_restart_st...
29.166667
90
0.662338
0
0
0
0
0
0
1,010
0.524675
336
0.174545
b1a71b362a63e180bb73d60affe130cb3f02f9e9
3,180
py
Python
loopchain/blockchain/transactions/transaction_builder.py
metalg0su/loopchain
dd27f8f42a350d1b22b0985749b1e821c053fe49
[ "Apache-2.0" ]
null
null
null
loopchain/blockchain/transactions/transaction_builder.py
metalg0su/loopchain
dd27f8f42a350d1b22b0985749b1e821c053fe49
[ "Apache-2.0" ]
7
2019-08-28T00:19:28.000Z
2020-07-31T07:07:53.000Z
loopchain/blockchain/transactions/transaction_builder.py
metalg0su/loopchain
dd27f8f42a350d1b22b0985749b1e821c053fe49
[ "Apache-2.0" ]
null
null
null
import hashlib from abc import abstractmethod, ABC from typing import TYPE_CHECKING from .. import Signature, ExternalAddress, Hash32 from loopchain.crypto.hashing import build_hash_generator if TYPE_CHECKING: from secp256k1 import PrivateKey from . import Transaction, TransactionVersioner class Transaction...
32.783505
92
0.659119
2,876
0.904403
0
0
797
0.250629
0
0
260
0.081761
b1a7a9bcfc93410c2986fe9c347507c8fbff9db4
1,132
py
Python
PyBank/main.py
yongjinjiang/python-challenge
4b266976baf8339186fae7140024ae5a3af3bc76
[ "ADSL" ]
null
null
null
PyBank/main.py
yongjinjiang/python-challenge
4b266976baf8339186fae7140024ae5a3af3bc76
[ "ADSL" ]
null
null
null
PyBank/main.py
yongjinjiang/python-challenge
4b266976baf8339186fae7140024ae5a3af3bc76
[ "ADSL" ]
null
null
null
import csv import os resource_dir="/Users/jyj/OneDrive/A_A_Data_Analysis/MINSTP201808DATA2/03-Python/Homework/PyBank/Resources" file_path=os.path.join(resource_dir,"budget_data.csv") with open(file_path,newline="") as data_file: csvreader=csv.reader(data_file,delimiter=",") next(csvreader) i=0 Nu...
31.444444
106
0.626325
0
0
0
0
0
0
0
0
327
0.288869
b1a801667f7526e28011c5f08b7558d194b2a413
3,508
py
Python
demo.py
sshopov/pyconau2017
e492e284a5afa5115f81fddf83546168b128591c
[ "MIT" ]
21
2018-01-09T15:55:44.000Z
2020-03-22T06:27:52.000Z
demo.py
sshopov/pyconau2017
e492e284a5afa5115f81fddf83546168b128591c
[ "MIT" ]
null
null
null
demo.py
sshopov/pyconau2017
e492e284a5afa5115f81fddf83546168b128591c
[ "MIT" ]
9
2017-08-08T10:19:09.000Z
2019-03-01T12:12:30.000Z
#!/usr/bin/env python3 ''' Source name: demo.py Author(s): Stoyan Shopov Python Version: 3.* 32-bit or 64-bit License: LGPL Description: This program was demoed on EV3D4 at PyCon Australia 2017. It kicks off 2 threads a move thread and a feel thread. The move thread drives the bot forward un...
26.37594
84
0.643672
0
0
0
0
0
0
0
0
1,579
0.450114
b1a8412c74612f899302b6781aec760fcfd3dd6d
21,742
py
Python
Game/story.py
starc52/GDE-Project
50ee4055e26c1873b1c21dcb2a8c2d05f7bca40f
[ "MIT" ]
null
null
null
Game/story.py
starc52/GDE-Project
50ee4055e26c1873b1c21dcb2a8c2d05f7bca40f
[ "MIT" ]
null
null
null
Game/story.py
starc52/GDE-Project
50ee4055e26c1873b1c21dcb2a8c2d05f7bca40f
[ "MIT" ]
1
2021-07-06T03:38:24.000Z
2021-07-06T03:38:24.000Z
from Game.player import Player from pygame import * from Game.const import * class Story: """ Story line class """ def __init__(self, message, treasure, player, screen, fade, maps, sound): self.screen = screen self.message = message self.treasure = treasure self.player = player self.fade = fade se...
39.966912
250
0.664474
21,682
0.996141
0
0
0
0
0
0
7,666
0.352201