hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
80c8767c767968d7e7fa23b2ecf6dcc08bf852f7
3,884
py
Python
semana4/app.py
ArseniumGX/bluemer-modulo2
24e5071b734de362dc47ef9d402c191699d15b43
[ "MIT" ]
null
null
null
semana4/app.py
ArseniumGX/bluemer-modulo2
24e5071b734de362dc47ef9d402c191699d15b43
[ "MIT" ]
null
null
null
semana4/app.py
ArseniumGX/bluemer-modulo2
24e5071b734de362dc47ef9d402c191699d15b43
[ "MIT" ]
null
null
null
from werkzeug.security import generate_password_hash, check_password_hash from flask import Flask, render_template, jsonify, request, redirect, flash, url_for from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager, UserMixin, current_user, login_required, logout_user, login_user app = Flask(__nam...
32.638655
102
0.598095
80c9491190bb5e53af696dbe13cce5e8d3abe6ff
9,788
py
Python
setup.py
osilkin98/HappyMail
6bc34cd2b35d58757973a267bf01077332770b6d
[ "MIT" ]
1
2018-09-20T01:06:11.000Z
2018-09-20T01:06:11.000Z
setup.py
osilkin98/HappyMail
6bc34cd2b35d58757973a267bf01077332770b6d
[ "MIT" ]
null
null
null
setup.py
osilkin98/HappyMail
6bc34cd2b35d58757973a267bf01077332770b6d
[ "MIT" ]
null
null
null
from subprocess import call from sys import executable from distutils.core import setup from distutils.command.build_py import build_py import os from os.path import exists from getpass import getuser from time import sleep try: import colorama except ImportError as IE: print("Module Colorama not found, inst...
40.783333
122
0.591745
80cb754fd4097ddc5ceb99da12f2ad2947dbe655
345
py
Python
project_3/code/characters.py
Psemp/oc_project_11
26ee2e607b2ccc768e19d264b5e1da010820fbc5
[ "MIT" ]
null
null
null
project_3/code/characters.py
Psemp/oc_project_11
26ee2e607b2ccc768e19d264b5e1da010820fbc5
[ "MIT" ]
null
null
null
project_3/code/characters.py
Psemp/oc_project_11
26ee2e607b2ccc768e19d264b5e1da010820fbc5
[ "MIT" ]
null
null
null
from get_char_pos import get_char_position mac = Character() mac.tag = "mac" guard = Character() guard.tag = "guard" macpos = get_char_position(mac) guardpos = get_char_position(guard)
15
42
0.626087
80ccd7e653bf3655ee84b0246e1de697194e67d6
2,376
py
Python
share/regulate/steps/deduplicate.py
CenterForOpenScience/SHARE
c7715af2881f6fa23197d4e7c381d90169a90ed1
[ "Apache-2.0" ]
87
2015-01-06T18:24:45.000Z
2021-08-08T07:59:40.000Z
share/regulate/steps/deduplicate.py
fortress-biotech/SHARE
9c5a05dd831447949fa6253afec5225ff8ab5d4f
[ "Apache-2.0" ]
442
2015-01-01T19:16:01.000Z
2022-03-30T21:10:26.000Z
share/regulate/steps/deduplicate.py
fortress-biotech/SHARE
9c5a05dd831447949fa6253afec5225ff8ab5d4f
[ "Apache-2.0" ]
67
2015-03-10T16:32:58.000Z
2021-11-12T16:33:41.000Z
from share.regulate.steps import GraphStep
33.464789
76
0.569865
80cf4b1cdeb9f8af6f921aa50c5b9f893fb21de0
537
py
Python
mit-ml/reinforcedl.py
stepinski/machinelearning
1f84883a25616da4cd76bb4655267efd3421e561
[ "MIT" ]
null
null
null
mit-ml/reinforcedl.py
stepinski/machinelearning
1f84883a25616da4cd76bb4655267efd3421e561
[ "MIT" ]
null
null
null
mit-ml/reinforcedl.py
stepinski/machinelearning
1f84883a25616da4cd76bb4655267efd3421e561
[ "MIT" ]
null
null
null
import numpy as np gama = 0.5 alfa = 0.75 data = np.array([[1, 1, 1], [1, 2, -1], [2, 1, 1]]) #(s, s', R) Q = np.zeros((data.shape[0]+1, 2)) #(iterations, |S|) k = 1 for d in range(data.shape[0]): R = data[d, 2] #inmediate reward idx_s = data[d, 0] - 1 # index of state s in Q idx_sp = data[d, 1] - 1 #ind...
35.8
93
0.50838
80d34d2c062fdfb55cef6a9e4a57d6d6a013448e
695
py
Python
database.py
ISProject1/POS
1d4143d48382f6fc42bdb459a40321ff35efa4b5
[ "MIT" ]
null
null
null
database.py
ISProject1/POS
1d4143d48382f6fc42bdb459a40321ff35efa4b5
[ "MIT" ]
null
null
null
database.py
ISProject1/POS
1d4143d48382f6fc42bdb459a40321ff35efa4b5
[ "MIT" ]
null
null
null
file1= "db_breakfast_menu.txt" file2= "db_lunch_menu.txt" file3= "db_dinner_menu.txt" file4 = "db_label_text.txt" retail = [] title = [] label = [] with open(file1, "r") as f: data = f.readlines() for line in data: w = line.split(":") title.append(w[1]) for line in data: w...
15.444444
43
0.535252
80d37d91e7e3b94e92127c52267fea900fab6810
6,072
py
Python
libvis/scripts/LMOptimizer SE3Optimization Test Jacobian derivation.py
zimengjiang/badslam
785a2a5a11ce57b09d47ea7ca6a42196a4f12409
[ "BSD-3-Clause" ]
541
2019-06-16T22:12:49.000Z
2022-03-31T05:53:56.000Z
libvis/scripts/LMOptimizer SE3Optimization Test Jacobian derivation.py
zimengjiang/badslam
785a2a5a11ce57b09d47ea7ca6a42196a4f12409
[ "BSD-3-Clause" ]
82
2019-06-18T06:45:38.000Z
2022-01-23T00:34:34.000Z
libvis/scripts/LMOptimizer SE3Optimization Test Jacobian derivation.py
zimengjiang/badslam
785a2a5a11ce57b09d47ea7ca6a42196a4f12409
[ "BSD-3-Clause" ]
104
2019-06-17T06:42:20.000Z
2022-03-16T20:51:22.000Z
from sympy import * # Implementation of QuaternionBase<Derived>::toRotationMatrix(void). # The quaternion q is given as a list [qw, qx, qy, qz]. # Implementation of SO3Group<Scalar> expAndTheta(). # Only implementing the first case (of very small rotation) since we take the Jacobian at zero. # Implementation of S...
33
110
0.69697
80d50d6044510b122ab7b7a8eb1e2e582f2b674a
2,286
py
Python
train_cnn.py
hee9joon/Single-Image-Super-Resolution
f4622b179943e8e52582971bb0f976406ae4d374
[ "MIT" ]
5
2021-02-27T13:13:08.000Z
2022-03-24T01:54:20.000Z
train_cnn.py
hee9joon/Single-Image-Super-Resolution
f4622b179943e8e52582971bb0f976406ae4d374
[ "MIT" ]
2
2021-02-27T13:13:57.000Z
2021-03-12T04:45:49.000Z
train_cnn.py
hee9joon/Single-Image-Super-Resolution
f4622b179943e8e52582971bb0f976406ae4d374
[ "MIT" ]
1
2021-03-18T15:03:58.000Z
2021-03-18T15:03:58.000Z
import os import numpy as np import warnings warnings.filterwarnings('ignore') import torch import torch.nn as nn from torchvision.utils import save_image from utils import get_lr_scheduler, sample_images, inference # Reproducibility # torch.backends.cudnn.deterministic = True torch.backends.cudnn.benchmark = False ...
31.75
136
0.61986
80d976b647bf6411a96e4d01f4938331a5d6bf01
5,704
py
Python
GGL_LensCats/CREATE_FITS_HEALPIX_MASKS/BOSS_2dFLenS_healpix_masks.py
KiDS-WL/Cat_to_Obs_K1000_P1
0de7f79cab150416859ffe58ac2d0f5659aedb5d
[ "MIT" ]
7
2020-11-18T12:58:03.000Z
2021-07-01T08:54:29.000Z
GGL_LensCats/CREATE_FITS_HEALPIX_MASKS/BOSS_2dFLenS_healpix_masks.py
KiDS-WL/Cat_to_Obs_K1000_P1
0de7f79cab150416859ffe58ac2d0f5659aedb5d
[ "MIT" ]
null
null
null
GGL_LensCats/CREATE_FITS_HEALPIX_MASKS/BOSS_2dFLenS_healpix_masks.py
KiDS-WL/Cat_to_Obs_K1000_P1
0de7f79cab150416859ffe58ac2d0f5659aedb5d
[ "MIT" ]
3
2020-12-09T13:30:22.000Z
2022-03-02T01:40:13.000Z
############################## ## MFP_K1000.py ## ## Chieh-An Lin ## ## Version 2020.03.25 ## ############################## import os import os.path as osp import time import subprocess as spc import numpy as np import scipy as sp import astropy.io.fits as fits im...
30.340426
106
0.648142
80d9b6be298e2345e53f3894aadc55c0241856e5
667
py
Python
2019/try/simple.py
rishidevc/stkovrflw
c33dffbce887f32f609a10dd717d594390ceac8b
[ "MIT" ]
null
null
null
2019/try/simple.py
rishidevc/stkovrflw
c33dffbce887f32f609a10dd717d594390ceac8b
[ "MIT" ]
5
2020-05-04T03:11:14.000Z
2021-06-10T20:20:38.000Z
2019/try/simple.py
rishidevc/stkovrflw
c33dffbce887f32f609a10dd717d594390ceac8b
[ "MIT" ]
1
2019-07-31T18:28:34.000Z
2019-07-31T18:28:34.000Z
print("Welcome to the Adder REPL.") my_dict = dict() while True: user_input = input("???") if 'gets' in user_input: get_assign(user_input) if 'input' in user_input: print("Enter a value for :") input_assign() if 'adds' in user_input: a, b = user_input.split("adds"...
17.552632
41
0.590705
80d9debe23c9db0ad1b1b6b68cf7cfe21670c087
794
py
Python
mecc/middleware.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
null
null
null
mecc/middleware.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
3
2021-03-19T10:36:10.000Z
2021-09-08T01:37:47.000Z
mecc/middleware.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.models import User from mecc.apps.years.models import UniversityYear
34.521739
78
0.649874
80d9f8b742cb13b15fbc315b930cd55547e4866b
4,031
py
Python
solitude/_commandline/main.py
incerto-crypto/solitude
1b21a2ca4912da212d413322953ceb4ec2983c17
[ "BSD-3-Clause" ]
7
2019-03-25T21:48:42.000Z
2022-02-25T08:21:35.000Z
solitude/_commandline/main.py
incerto-crypto/solitude
1b21a2ca4912da212d413322953ceb4ec2983c17
[ "BSD-3-Clause" ]
null
null
null
solitude/_commandline/main.py
incerto-crypto/solitude
1b21a2ca4912da212d413322953ceb4ec2983c17
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019, Solitude Developers # # This source code is licensed under the BSD-3-Clause license found in the # COPYING file in the root directory of this source tree from typing import List, Tuple # noqa import sys import os import argparse import datetime import binascii import json ...
30.537879
93
0.685686
80db565e93e8ec6a3e32ef24bd87723013e86005
8,308
py
Python
pypy/module/cpyext/typeobjectdefs.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
1
2020-01-21T11:10:51.000Z
2020-01-21T11:10:51.000Z
pypy/module/cpyext/typeobjectdefs.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
pypy/module/cpyext/typeobjectdefs.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
from pypy.rpython.lltypesystem import rffi, lltype from pypy.rpython.lltypesystem.lltype import Ptr, FuncType, Void from pypy.module.cpyext.api import (cpython_struct, Py_ssize_t, Py_ssize_tP, PyVarObjectFields, PyTypeObject, PyTypeObjectPtr, FILEP, Py_TPFLAGS_READYING, Py_TPFLAGS_READY, Py_TPFLAGS_HEAPTYPE) fr...
34.907563
79
0.662253
80dbd2a18f61160481567354d8144c8201971b32
718
py
Python
photobooth/1-web-base-layout/app/views.py
albertoSoto/raspberry-tic-projects
692762dade2397ba4bedb77b4733a1d5d9829450
[ "MIT" ]
null
null
null
photobooth/1-web-base-layout/app/views.py
albertoSoto/raspberry-tic-projects
692762dade2397ba4bedb77b4733a1d5d9829450
[ "MIT" ]
null
null
null
photobooth/1-web-base-layout/app/views.py
albertoSoto/raspberry-tic-projects
692762dade2397ba4bedb77b4733a1d5d9829450
[ "MIT" ]
null
null
null
from flask import render_template, flash, redirect from app import app
24.758621
58
0.473538
80dc746d4a550ea42299b59b314c14103e5afb26
14,420
py
Python
twstock/stock.py
LorneWu/twstock
8fbdd9fa7160f5441d29575544be8d9c570945cd
[ "MIT" ]
null
null
null
twstock/stock.py
LorneWu/twstock
8fbdd9fa7160f5441d29575544be8d9c570945cd
[ "MIT" ]
null
null
null
twstock/stock.py
LorneWu/twstock
8fbdd9fa7160f5441d29575544be8d9c570945cd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import urllib.parse from collections import namedtuple from operator import attrgetter from time import sleep from twstock.proxy import get_proxies import os import json try: from json.decoder import JSONDecodeError except ImportError: JSONDecodeError = ValueError imp...
36.231156
162
0.559501
80dc78ffed99f08797f54d11b8b5ae608f71cfe0
2,208
py
Python
kth_power.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
kth_power.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
kth_power.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
""" Solution for Sort Integers by The Power Value: https://leetcode.com/problems/sort-integers-by-the-power-value/ """
28.307692
97
0.498188
80dcec9d61fecffce04b116dfcd7c74ede2c697a
847
py
Python
aruco-decoder/tests/test_aruco_detection_blue.py
Shinyhero36/Info
68c74d44ce8ccf632d4f1b79283ac20ff933670d
[ "MIT" ]
2
2021-11-02T09:14:35.000Z
2021-11-22T19:24:19.000Z
aruco-decoder/tests/test_aruco_detection_blue.py
Shinyhero36/Info
68c74d44ce8ccf632d4f1b79283ac20ff933670d
[ "MIT" ]
null
null
null
aruco-decoder/tests/test_aruco_detection_blue.py
Shinyhero36/Info
68c74d44ce8ccf632d4f1b79283ac20ff933670d
[ "MIT" ]
null
null
null
import os import unittest from aruco import ArucoDetector if __name__ == '__main__': unittest.main(verbosity=3)
26.46875
84
0.68595
80de6c64c1123b72f584b7441b7d5bc184df60a9
1,218
py
Python
script.py
michaelihwang/speedtest-monitor
a412ba4ec74d80fb07498258af6ee934ec9e2686
[ "MIT" ]
1
2020-10-25T22:22:20.000Z
2020-10-25T22:22:20.000Z
script.py
michaelihwang/speedtest-monitor
a412ba4ec74d80fb07498258af6ee934ec9e2686
[ "MIT" ]
null
null
null
script.py
michaelihwang/speedtest-monitor
a412ba4ec74d80fb07498258af6ee934ec9e2686
[ "MIT" ]
null
null
null
import sys import time from datetime import datetime from traceback import print_exc import speedtest from decorator import restartable KILOBYTE = 1024 MEGABYTE = 1024 * KILOBYTE REPORT_FREQ = 60 if __name__ == "__main__": main()
24.857143
93
0.625616
80e0d1c76660cb41ffbb52948c7fc98bd6120bac
8,901
py
Python
reports/management/mw.py
Wellheor1/l2
d980210921c545c68fe9d5522bb693d567995024
[ "MIT" ]
10
2018-03-14T06:17:06.000Z
2022-03-10T05:33:34.000Z
reports/management/mw.py
Wellheor1/l2
d980210921c545c68fe9d5522bb693d567995024
[ "MIT" ]
512
2018-09-10T07:37:34.000Z
2022-03-30T02:23:43.000Z
reports/management/mw.py
D00dleman/l2
0870144537ee340cd8db053a608d731e186f02fb
[ "MIT" ]
24
2018-07-31T05:52:12.000Z
2022-02-08T00:39:41.000Z
import os from importlib import import_module from django.apps import apps from django.db.migrations.loader import MigrationLoader from django.db.migrations.serializer import serializer_factory from django.db.models import ForeignKey, ManyToManyField from django.utils.inspect import get_func_args from django.utils.mod...
40.459091
182
0.526795
80e0fed34003c8412ae4f44e18a85afe86d3f7f7
375
py
Python
example/011_matching_zero_or_more_repetitions.py
mafda/regex_101
085a9ee48829243d87e4bd74bb1baf07abc6481e
[ "MIT" ]
null
null
null
example/011_matching_zero_or_more_repetitions.py
mafda/regex_101
085a9ee48829243d87e4bd74bb1baf07abc6481e
[ "MIT" ]
null
null
null
example/011_matching_zero_or_more_repetitions.py
mafda/regex_101
085a9ee48829243d87e4bd74bb1baf07abc6481e
[ "MIT" ]
null
null
null
""" Task You have a test string S. Your task is to write a regex that will match S using the following conditions: S should begin with 2 or more digits. After that, S should have 0 or more lowercase letters. S should end with 0 or more uppercase letters """ import re Regex_Pattern = r'^[\d]{2,}[a-z]*[A-Z]*$' print...
22.058824
79
0.712
80e115033a86c707eb93a0ae3031b719ba2a3293
3,755
py
Python
day-16/part_2.py
leotappe/aoc-2021
6132e01bd9b4c6ee6a8d95e213f08463102596c2
[ "MIT" ]
null
null
null
day-16/part_2.py
leotappe/aoc-2021
6132e01bd9b4c6ee6a8d95e213f08463102596c2
[ "MIT" ]
null
null
null
day-16/part_2.py
leotappe/aoc-2021
6132e01bd9b4c6ee6a8d95e213f08463102596c2
[ "MIT" ]
null
null
null
""" Advent of Code 2021 | Day 16 | Part 2 """ import sys import math def get_version(bits, start_index): return int(bits[start_index:start_index + 3], base=2) def get_type_id(bits, start_index): return int(bits[start_index + 3:start_index + 6], base=2) def get_literal_value(bits, start_index): group...
30.282258
104
0.622636
80e8e4f12d8b86345865f28ec633cf5984a0885b
2,142
py
Python
pyspark/test/bigdl/test_engine_env.py
twicoder/BigDL
f065db372e1c682fa4a7903e287bba21d5f46750
[ "Apache-2.0" ]
55
2018-01-12T01:43:29.000Z
2021-03-09T02:35:56.000Z
pyspark/test/bigdl/test_engine_env.py
jason-hzw/BigDL
ef4f4137965147e2bc59e41f40c4acbb50eeda97
[ "Apache-2.0" ]
4
2018-01-15T07:34:41.000Z
2018-01-16T05:46:12.000Z
pyspark/test/bigdl/test_engine_env.py
jason-hzw/BigDL
ef4f4137965147e2bc59e41f40c4acbb50eeda97
[ "Apache-2.0" ]
22
2018-01-15T14:18:15.000Z
2019-12-16T18:51:33.000Z
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.305085
85
0.694211
80e9be4c60061c31a13757a6151f6f453e313e20
5,047
py
Python
hex-to-dec/eval.py
adiyen/jetson-projects
4f0f7fcdbf885dbde896e4e97b01d2349a44797d
[ "MIT" ]
null
null
null
hex-to-dec/eval.py
adiyen/jetson-projects
4f0f7fcdbf885dbde896e4e97b01d2349a44797d
[ "MIT" ]
null
null
null
hex-to-dec/eval.py
adiyen/jetson-projects
4f0f7fcdbf885dbde896e4e97b01d2349a44797d
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2019 JetsonHacks # See license # Using a CSI camera (such as the Raspberry Pi Version 2) connected to a # NVIDIA Jetson Nano Developer Kit using OpenCV # Drivers for the camera and OpenCV are included in the base image from __future__ import print_function import os import argparse impor...
37.947368
136
0.618585
80eafa3cec93de224ebf997c5f37fafcf8ce4716
146
py
Python
graphics/__main__.py
wangyibin/biowy
a534f35fc6f96fe1b3a6ca78853a5aa076337328
[ "BSD-2-Clause" ]
1
2018-10-22T04:44:42.000Z
2018-10-22T04:44:42.000Z
graphics/__main__.py
wangyibin/bioway
a534f35fc6f96fe1b3a6ca78853a5aa076337328
[ "BSD-2-Clause" ]
null
null
null
graphics/__main__.py
wangyibin/bioway
a534f35fc6f96fe1b3a6ca78853a5aa076337328
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Time: 2019/1/8 16:41 from bioway.apps.base import dmain if __name__ == "__main__": dmain()
14.6
34
0.623288
80ec08dee27899b7efa435ee963821efd51d2ad1
5,050
py
Python
sparse_operation_kit/sparse_operation_kit/core/initialize.py
marsmiao/HugeCTR
c9ff359a69565200fcc0c7aae291d9c297bea70e
[ "Apache-2.0" ]
null
null
null
sparse_operation_kit/sparse_operation_kit/core/initialize.py
marsmiao/HugeCTR
c9ff359a69565200fcc0c7aae291d9c297bea70e
[ "Apache-2.0" ]
null
null
null
sparse_operation_kit/sparse_operation_kit/core/initialize.py
marsmiao/HugeCTR
c9ff359a69565200fcc0c7aae291d9c297bea70e
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2021, NVIDIA CORPORATION. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
47.196262
109
0.575248
80ed103ee3a82af548fecca2907a61d57c124b83
503
py
Python
ErrorsAndExceptionsHandling/assignment.py
theprogrammingthinker/Python-practice
fef11a7fbd5082a0614b01f88a13ea29d68860bf
[ "Unlicense" ]
1
2017-05-02T10:28:36.000Z
2017-05-02T10:28:36.000Z
ErrorsAndExceptionsHandling/assignment.py
theprogrammingthinker/Python-practice
fef11a7fbd5082a0614b01f88a13ea29d68860bf
[ "Unlicense" ]
null
null
null
ErrorsAndExceptionsHandling/assignment.py
theprogrammingthinker/Python-practice
fef11a7fbd5082a0614b01f88a13ea29d68860bf
[ "Unlicense" ]
null
null
null
try: for i in ['a', 'b', 'c']: print(i ** 2) except TypeError: print("An error occured!") x = 5 y = 0 try: z = x /y print(z) except ZeroDivisionError: print("Can't devide by zero") finally: print("All done") ask()
16.766667
56
0.516899
80ee0d6b8414bcb69cd0dca69b5279de3f08e3fc
3,846
py
Python
ex1/owais/imu_exercise.py
balintmaci/drone_intro_exercises
1d8b839fecd6b0c5e33210b9a88fd741a71034cc
[ "Unlicense" ]
null
null
null
ex1/owais/imu_exercise.py
balintmaci/drone_intro_exercises
1d8b839fecd6b0c5e33210b9a88fd741a71034cc
[ "Unlicense" ]
null
null
null
ex1/owais/imu_exercise.py
balintmaci/drone_intro_exercises
1d8b839fecd6b0c5e33210b9a88fd741a71034cc
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # IMU exercise # Copyright (c) 2015-2020 Kjeld Jensen kjen@mmmi.sdu.dk kj@kjen.dk ##### Insert initialize code below ################### ## Uncomment the file to read ## fileName = 'imu_razor_data_static.txt' #fileName = 'imu_razor_data_pitch_55deg.txt' #fileName = 'imu_razo...
23.888199
76
0.619345
80ef3cf60e112d79c054dc1061b480da77a25354
1,148
py
Python
theroot/users_bundle/models/address.py
Deviad/Adhesive
a7eb5140c4e5de783aca24ea935b3bf00a44f3e1
[ "MIT" ]
null
null
null
theroot/users_bundle/models/address.py
Deviad/Adhesive
a7eb5140c4e5de783aca24ea935b3bf00a44f3e1
[ "MIT" ]
null
null
null
theroot/users_bundle/models/address.py
Deviad/Adhesive
a7eb5140c4e5de783aca24ea935b3bf00a44f3e1
[ "MIT" ]
null
null
null
from theroot.db import * from theroot.users_bundle.models.user_info import address_user_table
44.153846
108
0.675958
80efd9b0c916dc081a320670389bb8f5cfdb867a
76
py
Python
aoc/day06_2.py
GitOnUp/Advent2021
c9cd5a2d38a09389bdecac5f45be854da7aacee8
[ "MIT" ]
null
null
null
aoc/day06_2.py
GitOnUp/Advent2021
c9cd5a2d38a09389bdecac5f45be854da7aacee8
[ "MIT" ]
null
null
null
aoc/day06_2.py
GitOnUp/Advent2021
c9cd5a2d38a09389bdecac5f45be854da7aacee8
[ "MIT" ]
null
null
null
from aoc.day06_1 import run if __name__ == "__main__": print(run(256))
15.2
27
0.684211
80f11b3d5441eb3f837c986bb073d3b384465c04
36,516
py
Python
pymatgen/io/abinitio/workflow.py
miaoliu/pymatgen
fe3c48ce3334924e6693f857aebc64b9714d1af2
[ "MIT" ]
null
null
null
pymatgen/io/abinitio/workflow.py
miaoliu/pymatgen
fe3c48ce3334924e6693f857aebc64b9714d1af2
[ "MIT" ]
null
null
null
pymatgen/io/abinitio/workflow.py
miaoliu/pymatgen
fe3c48ce3334924e6693f857aebc64b9714d1af2
[ "MIT" ]
null
null
null
""" Abinit workflows """ from __future__ import division, print_function import sys import os import os.path import shutil import abc import collections import functools import numpy as np from pprint import pprint from pymatgen.core.lattice import Lattice from pymatgen.core.structure import Structure from pymatgen....
32.172687
126
0.578322
80f13a81a491ee548192c6197ec3cfb3667be23d
65
py
Python
mdstudio/mdstudio/deferred/__init__.py
NLeSC/LIEStudio
03c163b4a2590b4e2204621e1c941c28a9624887
[ "Apache-2.0" ]
10
2017-09-14T07:26:15.000Z
2021-04-01T09:33:03.000Z
mdstudio/mdstudio/deferred/__init__.py
NLeSC/LIEStudio
03c163b4a2590b4e2204621e1c941c28a9624887
[ "Apache-2.0" ]
117
2017-09-13T08:09:48.000Z
2019-10-03T12:19:13.000Z
mdstudio/mdstudio/deferred/__init__.py
NLeSC/LIEStudio
03c163b4a2590b4e2204621e1c941c28a9624887
[ "Apache-2.0" ]
1
2018-09-26T09:40:51.000Z
2018-09-26T09:40:51.000Z
__all__ = ['chainable', 'make_deferred', "return_value", 'lock']
32.5
64
0.692308
80f142bd0ab437969db559a95c9f06b07679a259
1,440
py
Python
setup.py
TheMatjaz/RangeForce
906b0e303d2e4eecac75dc4680f7d9b1a86bd79c
[ "BSD-3-Clause" ]
null
null
null
setup.py
TheMatjaz/RangeForce
906b0e303d2e4eecac75dc4680f7d9b1a86bd79c
[ "BSD-3-Clause" ]
null
null
null
setup.py
TheMatjaz/RangeForce
906b0e303d2e4eecac75dc4680f7d9b1a86bd79c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2019-2020, Matja Gutin <dev@matjaz.it> <https://matjaz.it>. # Released under the BSD 3-Clause License """Package setup for the Rangeforce library.""" from distutils.core import setup # noinspection PyUnresolvedReferences import setuptools setup( name...
28.235294
75
0.603472
80f14f64278b66615ac972c541b233272625a4d5
6,079
py
Python
dataset/Dataset Processing/data_processing.py
Eashwar-S/Icy-Road-Website
f07bf56212e36e786ffaea3c67f35fd301600c47
[ "MIT" ]
null
null
null
dataset/Dataset Processing/data_processing.py
Eashwar-S/Icy-Road-Website
f07bf56212e36e786ffaea3c67f35fd301600c47
[ "MIT" ]
null
null
null
dataset/Dataset Processing/data_processing.py
Eashwar-S/Icy-Road-Website
f07bf56212e36e786ffaea3c67f35fd301600c47
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[10]: import os import pandas as pd import networkx as nx import matplotlib.pyplot as plt import random as rd # In[11]: # In[12]: # In[13]: # In[14]: # In[15]: # In[16]: # In[25]: # def createGraph(inputType = 'txt'): # # folderPath = '../CARP_datas...
33.772222
155
0.611614
80f1fcacc7763df5460142961dd40a1c5c44d6a2
160
py
Python
settings.py
ErikRichardS/mnist-ann
3fb34a25ec41177d34445d2ccda6cf42b7d4175e
[ "MIT" ]
null
null
null
settings.py
ErikRichardS/mnist-ann
3fb34a25ec41177d34445d2ccda6cf42b7d4175e
[ "MIT" ]
null
null
null
settings.py
ErikRichardS/mnist-ann
3fb34a25ec41177d34445d2ccda6cf42b7d4175e
[ "MIT" ]
null
null
null
NR_CLASSES = 10 hyperparameters = { "number-epochs" : 30, "batch-size" : 100, "learning-rate" : 0.005, "weight-decay" : 1e-9, "learning-decay" : 1e-3 }
14.545455
25
0.61875
80f3f14a093019280342ab7f0daf049daf505aeb
141
py
Python
strategy/managers.py
moshthepitt/probsc
9b8cab206bb1c41238e36bd77f5e0573df4d8e2d
[ "MIT" ]
null
null
null
strategy/managers.py
moshthepitt/probsc
9b8cab206bb1c41238e36bd77f5e0573df4d8e2d
[ "MIT" ]
null
null
null
strategy/managers.py
moshthepitt/probsc
9b8cab206bb1c41238e36bd77f5e0573df4d8e2d
[ "MIT" ]
null
null
null
from core.managers import CoreManager
11.75
41
0.780142
80f51317fba911ed237d54c4c7c39490d353795f
903
py
Python
03 Prime Number .py
yoursamlan/FunWithNumbers
15e139a7c7d56f0553ef63446ab08f68c8262631
[ "MIT" ]
null
null
null
03 Prime Number .py
yoursamlan/FunWithNumbers
15e139a7c7d56f0553ef63446ab08f68c8262631
[ "MIT" ]
null
null
null
03 Prime Number .py
yoursamlan/FunWithNumbers
15e139a7c7d56f0553ef63446ab08f68c8262631
[ "MIT" ]
null
null
null
# A prime number is a positive integer greater than one, that has no positive integer factors except one and itself. # Since we have already dealt with number of factors of a number, I'm thinking to implement this idea finding prime number. # The prime number has the factor of 1 and itself. # So, number of factors of a...
28.21875
123
0.635659
80f9553aa2281baf010bcd189b89d3921013e8ac
1,903
py
Python
upload2db/upload2db.py
rhoerbe/eu23enerwatch
2749f0d3314580fa9df3251a2151817ec8c38d9c
[ "MIT" ]
null
null
null
upload2db/upload2db.py
rhoerbe/eu23enerwatch
2749f0d3314580fa9df3251a2151817ec8c38d9c
[ "MIT" ]
null
null
null
upload2db/upload2db.py
rhoerbe/eu23enerwatch
2749f0d3314580fa9df3251a2151817ec8c38d9c
[ "MIT" ]
null
null
null
""" Upload samples into database """ import os import sys import psycopg2 from pathlib import Path import constants main()
26.068493
113
0.601682
80f9d023d887fe6457bea250a3a2411216917f21
1,314
py
Python
tests/unit/test_heap.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
3
2018-11-27T15:45:19.000Z
2018-12-21T20:32:10.000Z
tests/unit/test_heap.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
18
2018-12-02T18:38:59.000Z
2020-02-05T22:09:37.000Z
tests/unit/test_heap.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
null
null
null
import pytest from edera import Heap
21.9
57
0.605784
80faad49d3190989627064e2432a5db253be98cb
502
py
Python
curso_python#07.py/desafio7.1.py
robinson-85/python_curso_em_video
ba6292650663dee377c50b4be87ba1c2b5f1d475
[ "MIT" ]
null
null
null
curso_python#07.py/desafio7.1.py
robinson-85/python_curso_em_video
ba6292650663dee377c50b4be87ba1c2b5f1d475
[ "MIT" ]
null
null
null
curso_python#07.py/desafio7.1.py
robinson-85/python_curso_em_video
ba6292650663dee377c50b4be87ba1c2b5f1d475
[ "MIT" ]
null
null
null
''' 7. Desenvolva um programa que leia as duas notas de um aluno, calcule e mostre a sua mdia. ''' import sys try: n1 = float(input("Primeira nota do aluno: ")) except Exception as error: print("Voce deve informar apenas numeros") sys.exit() try: n2 = float(input("Segunda nota do aluno: ")) except E...
26.421053
77
0.653386
80fb1b3d4994990978cea4fcec79ef10d6af88e1
973
py
Python
demo.py
Ph1lippK/anonymizer
c200ac501194544d00b9dedbbc4860e48f48c548
[ "Apache-2.0" ]
null
null
null
demo.py
Ph1lippK/anonymizer
c200ac501194544d00b9dedbbc4860e48f48c548
[ "Apache-2.0" ]
null
null
null
demo.py
Ph1lippK/anonymizer
c200ac501194544d00b9dedbbc4860e48f48c548
[ "Apache-2.0" ]
null
null
null
import streamlit as st st.image( "https://datascientest.com/wp-content/uploads/2020/10/logo-text-right.png.webp" ) st.header("Dvelopper et dployer une application de Machine learning en **Streamlit**") st.info("Webinar du 04/05/2021") st.markdown("---") st.markdown( """ **Objectifs ** * Se famil...
23.166667
88
0.681398
80fbde707dcc237d96a9a00970ee7fdc1b035ca5
7,710
py
Python
cogs/weapon_exp_calculator.py
richiekim/GenshinCalc
8a8eac605bc03b8729334f5110f1052cfeebbe91
[ "MIT" ]
null
null
null
cogs/weapon_exp_calculator.py
richiekim/GenshinCalc
8a8eac605bc03b8729334f5110f1052cfeebbe91
[ "MIT" ]
3
2021-01-19T11:29:19.000Z
2021-01-19T11:30:16.000Z
cogs/weapon_exp_calculator.py
richiekim/unital
8a8eac605bc03b8729334f5110f1052cfeebbe91
[ "MIT" ]
null
null
null
import discord import json import math from discord.ext import commands from common_functions import default_embed_template, use_exp_mat MYSTIC = 10000 FINE = 2000 NORMAL = 400 ASCENSION_MILESTONES = [90, 80, 70, 60, 50, 40, 20] # Input: # current level, goal level, current exp, and number of mystic, fine and reg...
41.010638
234
0.748508
80fcaf869f884bfa65105bd82efb6048d76b37ce
38
py
Python
test/test-sys.py
xupingmao/minipy
5bce2f238925eb92fe9ff7d935f59ef68daa257a
[ "MIT" ]
52
2016-07-11T10:14:35.000Z
2021-12-09T09:10:43.000Z
test/test_case/060_test_sys.py
xupingmao/snake
c956f151ed1ebd2faeaf1565352b59ca5a8fa0b4
[ "MIT" ]
13
2016-07-24T13:50:37.000Z
2019-03-02T06:56:18.000Z
test/test_case/060_test_sys.py
xupingmao/snake
c956f151ed1ebd2faeaf1565352b59ca5a8fa0b4
[ "MIT" ]
9
2017-01-27T10:46:04.000Z
2021-12-09T09:10:46.000Z
import sys assert len(sys.argv) == 1
9.5
25
0.684211
80fd13c03cdfaa618f595e649dee4f74f7c9f3b9
498
py
Python
genthreads/actor.py
f1sty/genthreads
00e509b7315b7e0107e1c46235ec11e044aeb9ef
[ "MIT" ]
null
null
null
genthreads/actor.py
f1sty/genthreads
00e509b7315b7e0107e1c46235ec11e044aeb9ef
[ "MIT" ]
null
null
null
genthreads/actor.py
f1sty/genthreads
00e509b7315b7e0107e1c46235ec11e044aeb9ef
[ "MIT" ]
null
null
null
from multiprocessing import Process
21.652174
58
0.628514
0383eebbfbfff2168965dd0292da22a7b499eb2b
25,457
py
Python
mopidy_pidi/brainz.py
JimmyBlunt/mopidy-pidi
30d99c2850bc527b81e8eec8941adcd49c2423d3
[ "Apache-2.0" ]
null
null
null
mopidy_pidi/brainz.py
JimmyBlunt/mopidy-pidi
30d99c2850bc527b81e8eec8941adcd49c2423d3
[ "Apache-2.0" ]
null
null
null
mopidy_pidi/brainz.py
JimmyBlunt/mopidy-pidi
30d99c2850bc527b81e8eec8941adcd49c2423d3
[ "Apache-2.0" ]
null
null
null
""" Musicbrainz related functions. """ import base64 import logging import os import time from threading import Thread import musicbrainzngs as mus from .__init__ import __version__ logger = logging.getLogger(__name__) ''' /9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAPDhUPDw8QDw8PEA8VFQ8QDxAPDhAVFhEWFxUVFh...
79.553125
5,753
0.864124
0384989e82636b5dbefe82692c4b228ca4b5e756
607
py
Python
class4/pm.py
patrebert/pynet_cert
b82cce3ddb20d9e4abc89d74579ddeb3513bdf55
[ "Apache-2.0" ]
null
null
null
class4/pm.py
patrebert/pynet_cert
b82cce3ddb20d9e4abc89d74579ddeb3513bdf55
[ "Apache-2.0" ]
null
null
null
class4/pm.py
patrebert/pynet_cert
b82cce3ddb20d9e4abc89d74579ddeb3513bdf55
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Demonstrate use of paramiko to connect to managed device, send commands, get output """ import sys import paramiko from getpass import getpass from time import sleep ip_addr = '184.105.247.70' username = 'pyclass' password = '88newclass' password=getpass() sess=paramiko.SSHClient() sess.set_m...
22.481481
58
0.775947
0387a1db9142d9733d4ec277b3e83f604075ea51
9,590
py
Python
saraki/utility.py
lucmichalski/saraki
74c11f70b4e7bdedfd33984cb96944c27a4eebbf
[ "MIT" ]
3
2020-07-01T17:34:39.000Z
2021-05-04T17:53:01.000Z
saraki/utility.py
lucmichalski/saraki
74c11f70b4e7bdedfd33984cb96944c27a4eebbf
[ "MIT" ]
25
2018-01-25T00:56:18.000Z
2021-06-12T04:29:00.000Z
saraki/utility.py
lucmichalski/saraki
74c11f70b4e7bdedfd33984cb96944c27a4eebbf
[ "MIT" ]
4
2020-04-19T21:24:34.000Z
2021-01-23T19:04:27.000Z
import datetime from cerberus import Validator as _Validator from sqlalchemy import inspect from sqlalchemy.orm.collections import InstrumentedList from sqlalchemy.exc import NoInspectionAvailable def is_sqla_obj(obj): """Checks if an object is a SQLAlchemy model instance.""" try: inspect(obj) ...
34.496403
83
0.557873
0387e368da07b1b24fdcd7aec00346e86273ba76
4,147
py
Python
fixture/orm.py
Treshch1/python_traning
de796861b7227fab176d342b67cf47acbd2b166f
[ "Apache-2.0" ]
null
null
null
fixture/orm.py
Treshch1/python_traning
de796861b7227fab176d342b67cf47acbd2b166f
[ "Apache-2.0" ]
null
null
null
fixture/orm.py
Treshch1/python_traning
de796861b7227fab176d342b67cf47acbd2b166f
[ "Apache-2.0" ]
null
null
null
from pony.orm import * from datetime import datetime from model.group import Group from model.contact import Contact import random
41.888889
111
0.667712
0387e9376b6688e3463663f91f1a21bc934301ee
8,994
py
Python
trustworthiness/util.py
DeFacto/WebCredibility
dfbb990966fc6b33f60378acffa0f12e25183431
[ "Apache-2.0" ]
10
2018-09-14T06:57:29.000Z
2021-12-13T18:26:38.000Z
trustworthiness/util.py
DeFacto/WebCredibility
dfbb990966fc6b33f60378acffa0f12e25183431
[ "Apache-2.0" ]
1
2021-05-16T20:34:23.000Z
2021-05-16T20:34:23.000Z
trustworthiness/util.py
DeFacto/WebCredibility
dfbb990966fc6b33f60378acffa0f12e25183431
[ "Apache-2.0" ]
2
2021-06-22T08:30:46.000Z
2021-12-13T18:26:35.000Z
import collections import datetime import logging import os import sys from pathlib import Path import numpy as np import pdfkit as pdfkit from bs4 import BeautifulSoup from sklearn.metrics import mean_absolute_error, mean_squared_error, confusion_matrix, classification_report, \ accuracy_score from tldextract imp...
36.860656
203
0.603402
03887af536a348e4bad8d5d4b9e1fa7903be4aba
9,953
py
Python
lib/lopy_max31856.py
kurta241/MAX31856
cda689b80827561b0524c9ba3aa257a3ab329460
[ "MIT" ]
1
2018-01-17T02:14:55.000Z
2018-01-17T02:14:55.000Z
lib/lopy_max31856.py
kurta241/MAX31856
cda689b80827561b0524c9ba3aa257a3ab329460
[ "MIT" ]
null
null
null
lib/lopy_max31856.py
kurta241/MAX31856
cda689b80827561b0524c9ba3aa257a3ab329460
[ "MIT" ]
2
2019-01-28T11:51:29.000Z
2021-03-27T22:34:06.000Z
#!/usr/bin/python #The MIT License (MIT) # #Copyright (c) 2017 Kurt Albrecht # #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...
41.298755
116
0.671858
0388b46edfbba0396db6a8d52b25d94afdf26576
2,045
py
Python
block.py
IgorReshetnyak/Statistics
f2f876a679389a7ecc4f24f23ca3f8aabd6a2604
[ "MIT" ]
null
null
null
block.py
IgorReshetnyak/Statistics
f2f876a679389a7ecc4f24f23ca3f8aabd6a2604
[ "MIT" ]
null
null
null
block.py
IgorReshetnyak/Statistics
f2f876a679389a7ecc4f24f23ca3f8aabd6a2604
[ "MIT" ]
null
null
null
"""Blocking analysis Print running average Blocking analysis scheme Running error takes as input filename to analyze Igor Reshetnyak 2017 """ import math,sys,pickle,os.path,pylab,time if len(sys.argv)<2 : print 'No file to analyze' exit() datafile=sys.argv[1] file_name=datafile+'' if os.path.isfile(file_name)=...
18.590909
84
0.711002
038951af24c93c1a96b554943a344caa4bd191ed
4,038
py
Python
test/login_test.py
fausecteam/faustctf-2017-toilet
825d4bf82749ca56e104e9d9b5ecd241a75eb0b6
[ "0BSD" ]
null
null
null
test/login_test.py
fausecteam/faustctf-2017-toilet
825d4bf82749ca56e104e9d9b5ecd241a75eb0b6
[ "0BSD" ]
null
null
null
test/login_test.py
fausecteam/faustctf-2017-toilet
825d4bf82749ca56e104e9d9b5ecd241a75eb0b6
[ "0BSD" ]
null
null
null
from util import * from test import BasicTest
37.045872
78
0.614908
0389b372315afb61df48dea72270207d420b8e60
24,418
py
Python
paintbyword/utils/dissect.py
alexandonian/paint-by-word
40213a597f4ecbc8cf95abe5a6cb856dda01baef
[ "MIT" ]
null
null
null
paintbyword/utils/dissect.py
alexandonian/paint-by-word
40213a597f4ecbc8cf95abe5a6cb856dda01baef
[ "MIT" ]
null
null
null
paintbyword/utils/dissect.py
alexandonian/paint-by-word
40213a597f4ecbc8cf95abe5a6cb856dda01baef
[ "MIT" ]
null
null
null
import torch import re import copy import numpy from torch.utils.data.dataloader import default_collate from netdissect import nethook, imgviz, tally, unravelconv, upsample ### Experiment below - find the best representative with gradient in the consensus directioin. # 1. Tally weight grad over the datase...
39.447496
104
0.576788
038e7cca624d292ed41cd443faa6f20564a62fd4
303
py
Python
abct/abct.py
hornc/abctag
d2abd7384e0e155fbee35c639dd1afe6336f0bd9
[ "MIT" ]
2
2020-07-25T07:22:50.000Z
2022-02-06T16:09:27.000Z
abct/abct.py
hornc/abctag
d2abd7384e0e155fbee35c639dd1afe6336f0bd9
[ "MIT" ]
2
2021-08-21T09:24:14.000Z
2021-08-24T08:08:57.000Z
abct/abct.py
hornc/abctag
d2abd7384e0e155fbee35c639dd1afe6336f0bd9
[ "MIT" ]
null
null
null
from math import floor, log n = lambda x: (x + 1) % 2 + 1 s = lambda x: floor(log(x + 1, 2)) r = lambda x: x // 2 - n(x) + 1 + n(x) * 2**(s(x) - 1) pn = lambda p: r(p) + (n(p) == 2) * (r(r(p)) - r(p)) dn = lambda p, d: (d + (n(p) == n(d) == 2) * (n(r(p)) * 2**s(d)) - (n(p) == 1)) // (3 - n(p))
43.285714
94
0.392739
038ef106b20c259dc5c6a88c1f1d3f5f223b4129
289
py
Python
src/evidently/profile_sections/__init__.py
jenoOvchi/evidently
6ca36d633ee258442410ef47a219ff40b8a5097b
[ "Apache-2.0" ]
null
null
null
src/evidently/profile_sections/__init__.py
jenoOvchi/evidently
6ca36d633ee258442410ef47a219ff40b8a5097b
[ "Apache-2.0" ]
null
null
null
src/evidently/profile_sections/__init__.py
jenoOvchi/evidently
6ca36d633ee258442410ef47a219ff40b8a5097b
[ "Apache-2.0" ]
null
null
null
import warnings import evidently.model_profile.sections from evidently.model_profile.sections import * __path__ = evidently.model_profile.sections.__path__ # type: ignore warnings.warn("'import evidently.profile_sections' is deprecated, use 'import evidently.model_profile.sections'")
32.111111
113
0.83045
038fae421f26bf3cba7bbf5e1d0142783c1ea9e8
52,839
py
Python
openEPhys_DACQ/NWBio.py
Barry-lab/SpatialAutoDACQ
f39341ea5c1a51c328ec43dba8e4d9a8f7d49a48
[ "MIT" ]
null
null
null
openEPhys_DACQ/NWBio.py
Barry-lab/SpatialAutoDACQ
f39341ea5c1a51c328ec43dba8e4d9a8f7d49a48
[ "MIT" ]
null
null
null
openEPhys_DACQ/NWBio.py
Barry-lab/SpatialAutoDACQ
f39341ea5c1a51c328ec43dba8e4d9a8f7d49a48
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import h5py import numpy as np import os import sys from openEPhys_DACQ.HelperFunctions import tetrode_channels, channels_tetrode, closest_argmin from pprint import pprint from copy import copy import argparse import importlib from tqdm import tqdm def spike_waveform_leftwards_shift(): ...
41.409875
132
0.66203
0390c2fe78227e37b4043e6ad937f0c6cdda546d
10,339
py
Python
computersimulator/hardware/SimulatedCPU.py
jatgam/Computer-Simulator
a6f496679b16738e74663f092f61e758df9ce6f8
[ "MIT" ]
1
2021-05-02T12:30:31.000Z
2021-05-02T12:30:31.000Z
computersimulator/hardware/SimulatedCPU.py
jatgam/Computer-Simulator
a6f496679b16738e74663f092f61e758df9ce6f8
[ "MIT" ]
null
null
null
computersimulator/hardware/SimulatedCPU.py
jatgam/Computer-Simulator
a6f496679b16738e74663f092f61e758df9ce6f8
[ "MIT" ]
null
null
null
import logging import sys from computersimulator.hardware.SimulatedRAM import SimulatedRAM from computersimulator.hardware.SimulatedDisk import SimulatedDisk from computersimulator.utils.bitutils import * import computersimulator.constants as constants CONST = constants.Constants logger = logging.getLogger(__name__)
42.372951
113
0.510978
039115099b0acd0dd43e432d85e08424f1e0930e
1,493
py
Python
dom/metadata.py
Starwort/domgen
598f57c2d365cdef353ed1b373a274715c896867
[ "MIT" ]
null
null
null
dom/metadata.py
Starwort/domgen
598f57c2d365cdef353ed1b373a274715c896867
[ "MIT" ]
null
null
null
dom/metadata.py
Starwort/domgen
598f57c2d365cdef353ed1b373a274715c896867
[ "MIT" ]
null
null
null
import functools from .base_classes import Container, Void Base = BaseURL Link = ExternalResourceLink ExternalStyleSheet = functools.partial(ExternalResourceLink, rel="stylesheet")
23.698413
78
0.663094
0391350ff5403c977fa0fbdb326f594770fc8943
53
py
Python
catcher_rl/__main__.py
sohnryang/catcher-rl
8a45080f2be528be8abb94c3a4eea0dc700ab505
[ "MIT" ]
null
null
null
catcher_rl/__main__.py
sohnryang/catcher-rl
8a45080f2be528be8abb94c3a4eea0dc700ab505
[ "MIT" ]
null
null
null
catcher_rl/__main__.py
sohnryang/catcher-rl
8a45080f2be528be8abb94c3a4eea0dc700ab505
[ "MIT" ]
null
null
null
"""__main__.py""" import catcher_rl catcher_rl.main()
17.666667
17
0.754717
039214ce3d01a32e6fe030aadf9b9ebee3ca3114
2,575
py
Python
helper/downloader/downloadRequest.py
REX-BOTZ/MegaUploaderbot-1
025fd97344da388fe607f5db73ad9f4435f51baa
[ "Apache-2.0" ]
2
2021-11-12T13:15:03.000Z
2021-11-13T12:17:33.000Z
helper/downloader/downloadRequest.py
REX-BOTZ/MegaUploaderbot-1
025fd97344da388fe607f5db73ad9f4435f51baa
[ "Apache-2.0" ]
null
null
null
helper/downloader/downloadRequest.py
REX-BOTZ/MegaUploaderbot-1
025fd97344da388fe607f5db73ad9f4435f51baa
[ "Apache-2.0" ]
1
2022-01-07T09:55:53.000Z
2022-01-07T09:55:53.000Z
# !/usr/bin/env python3 """Importing""" # Importing Inbuilt packages from re import match from shutil import rmtree from uuid import uuid4 from os import makedirs # Importing Credentials & Developer defined modules from helper.downloader.urlDL import UrlDown from helper.downloader.tgDL import TgDown from helper.down...
32.594937
105
0.650485
03925cef2e841a3daf7a534758f7b4e0dfd688dc
17,544
py
Python
skyperious/wx_accel.py
tt9133github/Skyperious
878957fa8e69b21b9c5465458a896a7008e0bcdc
[ "MIT" ]
null
null
null
skyperious/wx_accel.py
tt9133github/Skyperious
878957fa8e69b21b9c5465458a896a7008e0bcdc
[ "MIT" ]
null
null
null
skyperious/wx_accel.py
tt9133github/Skyperious
878957fa8e69b21b9c5465458a896a7008e0bcdc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Functionality for binding wx control label shortcut keys to events automatically. In wx, a button with a label "E&xit" would be displayed as having the label "Exit" with "x" underlined, indicating a keyboard shortcut, but wx does not bind these shortcuts automatically, requiring constru...
48.197802
82
0.529127
0392a06f401816010aba9707153aeba037ae42bf
217,226
py
Python
pirates/leveleditor/worldData/CubaIsland.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/leveleditor/worldData/CubaIsland.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/leveleditor/worldData/CubaIsland.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.leveleditor.worldData.CubaIsland from pandac.PandaModules import Point3, VBase3, Vec4, Vec3 objectStruct = {'Locator Links': [['...
31,032.285714
216,785
0.666099
03940eed9922e68c7391552d1a5597a7b61786aa
429
py
Python
src/waldur_slurm/migrations/0006_allocationusage_deposit_usage.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_slurm/migrations/0006_allocationusage_deposit_usage.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_slurm/migrations/0006_allocationusage_deposit_usage.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
# Generated by Django 1.11.7 on 2018-03-05 22:40 from django.db import migrations, models
23.833333
81
0.62704
039656005db308c2cb41feae58290804aa2ef90a
5,940
py
Python
scripts/error_metrics_parser.py
PoonLab/gromstole
8c8ec259c5a98fd2ef5aad8ec0293eddb0184432
[ "MIT" ]
null
null
null
scripts/error_metrics_parser.py
PoonLab/gromstole
8c8ec259c5a98fd2ef5aad8ec0293eddb0184432
[ "MIT" ]
27
2022-01-07T17:57:57.000Z
2022-03-29T19:34:56.000Z
scripts/error_metrics_parser.py
PoonLab/gromstole
8c8ec259c5a98fd2ef5aad8ec0293eddb0184432
[ "MIT" ]
1
2022-02-24T17:01:34.000Z
2022-02-24T17:01:34.000Z
""" from https://github.com/PoonLab/MiCall-Lite, which was forked from https://github.com/cfe-lab/MiCall. MiCall is distributed under a dual AGPLv3 license. """ import sys import argparse from csv import DictWriter from struct import unpack import csv import os from operator import itemgetter import sys import math ...
36.89441
103
0.640236
0396dd73ecef7ab82a3884a101c60a156ca888d8
3,754
py
Python
Image Segmtation on COCO Dataset/keras_segmentation/data_utils/data_loader.py
joykour/COCO-Dataset-2018-Stuff-Segmentation-Challenge
973ef2d75c1821c8348fd01a3f2b084c4243ebd2
[ "MIT" ]
1
2019-11-14T06:49:17.000Z
2019-11-14T06:49:17.000Z
Image Segmtation on COCO Dataset/keras_segmentation/data_utils/data_loader.py
joykour/COCO-Dataset-2018-Stuff-Segmentation-Challenge
973ef2d75c1821c8348fd01a3f2b084c4243ebd2
[ "MIT" ]
null
null
null
Image Segmtation on COCO Dataset/keras_segmentation/data_utils/data_loader.py
joykour/COCO-Dataset-2018-Stuff-Segmentation-Challenge
973ef2d75c1821c8348fd01a3f2b084c4243ebd2
[ "MIT" ]
1
2019-11-16T07:39:00.000Z
2019-11-16T07:39:00.000Z
import numpy as np import cv2 import glob import itertools import os from tqdm import tqdm from ..models.config import IMAGE_ORDERING from .augmentation import augment_seg import random random.seed(0) class_colors = [ ( random.randint(0,255),random.randint(0,255),random.randint(0,255) ) for _ in range(5000) ] ...
27.40146
171
0.661161
03972df064d30776ab61ace4cb50e0a249055d77
6,032
py
Python
tests/tests_basic.py
mehrdad-shokri/fluxcapacitor
b4e646e3048a317b33f5a84741b7962fd69cdc61
[ "MIT" ]
648
2015-01-08T18:05:33.000Z
2022-03-30T04:35:08.000Z
tests/tests_basic.py
mehrdad-shokri/fluxcapacitor
b4e646e3048a317b33f5a84741b7962fd69cdc61
[ "MIT" ]
4
2017-08-24T18:05:01.000Z
2018-01-19T09:06:06.000Z
tests/tests_basic.py
mehrdad-shokri/fluxcapacitor
b4e646e3048a317b33f5a84741b7962fd69cdc61
[ "MIT" ]
21
2015-05-12T13:03:15.000Z
2022-03-12T15:12:26.000Z
import os import tests from tests import at_most, compile, savefile import subprocess node_present = True erlang_present = True if os.system("node -v >/dev/null 2>/dev/null") != 0: print " [!] ignoring nodejs tests" node_present = False if (os.system("erl -version >/dev/null 2>/dev/null") != 0 or os.sys...
27.418182
101
0.54443
039b50ec23666881fdd70d72494a3f55144b2adf
444
py
Python
tests/test_root.py
oclyke-dev/blue-heron
05d59b66ff1cb10a40e0fb01ee65f778a7c157a8
[ "MIT" ]
null
null
null
tests/test_root.py
oclyke-dev/blue-heron
05d59b66ff1cb10a40e0fb01ee65f778a7c157a8
[ "MIT" ]
null
null
null
tests/test_root.py
oclyke-dev/blue-heron
05d59b66ff1cb10a40e0fb01ee65f778a7c157a8
[ "MIT" ]
null
null
null
import blue_heron import pytest from pathlib import Path from lxml import etree as ET from blue_heron import Root, Drawing
23.368421
70
0.747748
039d7b8e1580ac94ac977880c70a567b910c07cd
2,223
py
Python
scripts/evidence/base.py
Oneledger/protocol
1008fd12d384c9821be2a2ea34b3061cf24ae6bf
[ "Apache-2.0" ]
38
2018-06-30T15:22:06.000Z
2022-03-20T22:23:07.000Z
scripts/evidence/base.py
Oneledger/protocol
1008fd12d384c9821be2a2ea34b3061cf24ae6bf
[ "Apache-2.0" ]
27
2018-09-02T09:57:19.000Z
2021-09-17T18:06:35.000Z
scripts/evidence/base.py
Oneledger/protocol
1008fd12d384c9821be2a2ea34b3061cf24ae6bf
[ "Apache-2.0" ]
13
2018-06-30T15:22:08.000Z
2020-07-28T15:00:40.000Z
from __future__ import print_function from sdk.actions import ( ListValidators, NodeID, ) from sdk.cmd_call import ( GetNodeCreds, Account_Add, Send, GetNodeKey, ) from sdk.rpc_call import ( node_0, node_2, node_3, ) validators = ListValidators() valDict = {data['name']: data for ...
30.452055
96
0.68601
039de2956a93e9fe91351642653c24e863f9b4ef
219
py
Python
py-data/plugin.video.arteplussept/problems/api-related/1/correct-usages/get_last7days.py
ualberta-smr/NFBugs
65d9ef603e9527b3d83f53af0606b1ae240513f1
[ "MIT" ]
3
2019-10-01T19:58:24.000Z
2021-09-17T04:03:21.000Z
py-data/plugin.video.arteplussept/problems/api-related/1/correct-usages/get_last7days.py
senseconcordia/NFBugsExtended
60058ccbd64107018a92ede73056d08ecbdaaed2
[ "MIT" ]
22
2018-08-23T15:15:37.000Z
2019-03-15T17:09:41.000Z
py-data/plugin.video.arteplussept/problems/api-related/1/correct-usages/get_last7days.py
senseconcordia/NFBugsExtended
60058ccbd64107018a92ede73056d08ecbdaaed2
[ "MIT" ]
1
2019-02-11T18:26:36.000Z
2019-02-11T18:26:36.000Z
from xbmcswift2 import Plugin from xbmcswift2 import actions import requests import os import urllib2 import time import datetime
19.909091
64
0.780822
039fea1ecb4a2b365be7d8720f22d5ffa6995f74
864
py
Python
pharma/utils.py
RishiMenon2004/med-bay
ed039b1bf3b10fb1b5097567df28fb4575c95b18
[ "MIT" ]
null
null
null
pharma/utils.py
RishiMenon2004/med-bay
ed039b1bf3b10fb1b5097567df28fb4575c95b18
[ "MIT" ]
null
null
null
pharma/utils.py
RishiMenon2004/med-bay
ed039b1bf3b10fb1b5097567df28fb4575c95b18
[ "MIT" ]
1
2021-09-17T07:01:28.000Z
2021-09-17T07:01:28.000Z
from .models import Bill, BillUnit # Getting cart total # Getting total for bill objects # Generating bills
24.685714
70
0.643519
03a03bedee87cbb3ff98b4472ee9a56d99d7f812
7,070
py
Python
myconnectome/rsfmri/mk_connectome_figures.py
poldrack/myconnectome
201f414b3165894d6fe0be0677c8a58f6d161948
[ "MIT" ]
28
2015-04-02T16:43:14.000Z
2020-06-17T20:04:26.000Z
myconnectome/rsfmri/mk_connectome_figures.py
poldrack/myconnectome
201f414b3165894d6fe0be0677c8a58f6d161948
[ "MIT" ]
11
2015-05-19T02:57:22.000Z
2017-03-17T17:36:16.000Z
myconnectome/rsfmri/mk_connectome_figures.py
poldrack/myconnectome
201f414b3165894d6fe0be0677c8a58f6d161948
[ "MIT" ]
10
2015-05-21T17:01:26.000Z
2020-11-11T04:28:08.000Z
# -*- coding: utf-8 -*- """ make images for connnectivity adjmtx also compute within/between hemisphere stats Created on Sun Jun 21 09:19:06 2015 @author: poldrack """ import os import numpy import nilearn.plotting import scipy.stats from myconnectome.utils.get_parcel_coords import get_parcel_coords import matplotli...
40.170455
123
0.698727
03a3b7e2b44fd96667892818b55fb97c799166f0
7,820
py
Python
src/tools/python/shipment_report_3x.py
Justintime50/easypost-tools
b5118eec331cd9ec5502e617c73ead61fc322c94
[ "MIT" ]
1
2022-02-17T21:04:05.000Z
2022-02-17T21:04:05.000Z
src/tools/python/shipment_report_3x.py
Justintime50/easypost-tools
b5118eec331cd9ec5502e617c73ead61fc322c94
[ "MIT" ]
null
null
null
src/tools/python/shipment_report_3x.py
Justintime50/easypost-tools
b5118eec331cd9ec5502e617c73ead61fc322c94
[ "MIT" ]
null
null
null
# Shipment Details Download script # Outputs CSV text report for purchased production shipments # # Usage: # python3 ShipmentReport_3x.py "optional API KEY" (if not using env vars) # # 0.2 Revised API key display 02 Jan 2020 joshua.biagio@easypost.com # 0.1 Corrected handling of zero shipments returned 0...
34.910714
118
0.592455
03a54ff191c236e664a934c1ff06719cccfcad11
44,640
py
Python
backend/unpp_api/apps/project/views.py
unicef/un-partner-portal
73afa193a5f6d626928cae0025c72a17f0ef8f61
[ "Apache-2.0" ]
6
2017-11-21T10:00:44.000Z
2022-02-12T16:51:48.000Z
backend/unpp_api/apps/project/views.py
unicef/un-partner-portal
73afa193a5f6d626928cae0025c72a17f0ef8f61
[ "Apache-2.0" ]
995
2017-07-31T02:08:36.000Z
2022-03-08T22:44:03.000Z
backend/unpp_api/apps/project/views.py
unicef/un-partner-portal
73afa193a5f6d626928cae0025c72a17f0ef8f61
[ "Apache-2.0" ]
1
2021-07-21T10:45:15.000Z
2021-07-21T10:45:15.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from datetime import date from django.db import transaction from django.db.models import Q from django.http import HttpResponse from django.shortcuts import get_object_or_404 from django.utils import timezone from rest_framework import status as statuses, ...
37.014925
120
0.679256
03a7b879acb5698f0c96f69d7464741824b42f9a
1,422
py
Python
older versions/older_version_1d_calculator.py
vishalbelsare/KramersMoyal
6047cd303a474cd0411abf90ef7c81ec53500625
[ "MIT" ]
32
2019-11-26T06:45:56.000Z
2022-03-15T18:47:07.000Z
older versions/older_version_1d_calculator.py
NikVard/KramersMoyal
57e50278b0d31567054f763f3e0f3cc2c1e08315
[ "MIT" ]
9
2019-09-11T15:27:47.000Z
2021-03-22T14:44:43.000Z
older versions/older_version_1d_calculator.py
NikVard/KramersMoyal
57e50278b0d31567054f763f3e0f3cc2c1e08315
[ "MIT" ]
9
2019-08-23T16:55:24.000Z
2022-02-10T14:08:02.000Z
# coding: utf-8 #! /usr/bin/env python # FrequencyJumpLibrary import numpy as np from scipy import stats import math as math
32.318182
161
0.510549
03aa122f7d46f999001e9b311a609665d78ad637
527
py
Python
snoop/data/management/commands/migratecollections.py
liquidinvestigations/hoover-snoop2
28e328401609f53fb56abaa4817619085aa3fbee
[ "MIT" ]
null
null
null
snoop/data/management/commands/migratecollections.py
liquidinvestigations/hoover-snoop2
28e328401609f53fb56abaa4817619085aa3fbee
[ "MIT" ]
168
2019-11-07T12:38:07.000Z
2021-04-19T09:53:51.000Z
snoop/data/management/commands/migratecollections.py
liquidinvestigations/hoover-snoop2
28e328401609f53fb56abaa4817619085aa3fbee
[ "MIT" ]
null
null
null
"""Creates and migrates databases and indexes. """ from django.core.management.base import BaseCommand from ... import collections from ...logs import logging_for_management_command
27.736842
60
0.736243
03aa7413f879d796eb4888768a9fac1efb6019e3
10,816
py
Python
pm.py
chandrabhan-singh-98/pmpy
8a34c7766a049b68f6c74e1085822e6aa3732c1e
[ "MIT" ]
null
null
null
pm.py
chandrabhan-singh-98/pmpy
8a34c7766a049b68f6c74e1085822e6aa3732c1e
[ "MIT" ]
null
null
null
pm.py
chandrabhan-singh-98/pmpy
8a34c7766a049b68f6c74e1085822e6aa3732c1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ ------------------------------------------------------------------------ A re-write of my original pm shell script in python pm is a script that is meant to act as a status tracker for my projects. It will use VCS integration to provide in-depth information on all projects. Cheers. ...
41.282443
116
0.530788
03acdee8d03255dcc11e51424c9d56a4f5a10599
251
py
Python
epikjjh/baekjoon/17413.py
15ers/Solve_Naively
23ee4a3aedbedb65b9040594b8c9c6d9cff77090
[ "MIT" ]
3
2019-05-19T13:44:39.000Z
2019-07-03T11:15:20.000Z
epikjjh/baekjoon/17413.py
15ers/Solve_Naively
23ee4a3aedbedb65b9040594b8c9c6d9cff77090
[ "MIT" ]
7
2019-05-06T02:37:26.000Z
2019-06-29T07:28:02.000Z
epikjjh/baekjoon/17413.py
15ers/Solve_Naively
23ee4a3aedbedb65b9040594b8c9c6d9cff77090
[ "MIT" ]
1
2019-07-28T06:24:54.000Z
2019-07-28T06:24:54.000Z
import re stream = input() p = re.compile("<?[^<>]+>?") ans = "" for elem in p.findall(stream): if elem[0] == "<": ans += elem else: for e in elem.split(): ans += e[::-1] + " " ans = ans.rstrip() print(ans)
19.307692
32
0.450199
03ada8be65d6325b4e0a4f2d0137005593cfbd56
396
py
Python
day_09/test_solution.py
anguswilliams91/advent-of-code-2022
00cc08900fe5e50f0bf5d657e9dfc0691eccac48
[ "MIT" ]
null
null
null
day_09/test_solution.py
anguswilliams91/advent-of-code-2022
00cc08900fe5e50f0bf5d657e9dfc0691eccac48
[ "MIT" ]
null
null
null
day_09/test_solution.py
anguswilliams91/advent-of-code-2022
00cc08900fe5e50f0bf5d657e9dfc0691eccac48
[ "MIT" ]
null
null
null
"""Tests for day 9.""" from day_09.solution import sum_of_low_points, product_of_biggest_basins _EXAMPLE_INPUT = """2199943210 3987894921 9856789892 8767896789 9899965678 """
19.8
72
0.813131
03b0e27edf370cce2d7d3b2ec53ff51621fdc4ee
6,605
py
Python
hubspot/crm/extensions/accounting/models/create_user_account_request_external.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
hubspot/crm/extensions/accounting/models/create_user_account_request_external.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
hubspot/crm/extensions/accounting/models/create_user_account_request_external.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Accounting Extension These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSp...
33.025
290
0.614232
03b167654e95b104f240f4988e88ebf5e5a4f208
1,764
py
Python
03_spider_douyin/action_douyin.py
theThreeKingdom/python-exercises
fc08a7bbb9d6b53d5761b9e1017f293bff4e26db
[ "Apache-2.0" ]
null
null
null
03_spider_douyin/action_douyin.py
theThreeKingdom/python-exercises
fc08a7bbb9d6b53d5761b9e1017f293bff4e26db
[ "Apache-2.0" ]
null
null
null
03_spider_douyin/action_douyin.py
theThreeKingdom/python-exercises
fc08a7bbb9d6b53d5761b9e1017f293bff4e26db
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/4/2 22:55 # @Author : Nixin # @Email : nixin@foxmail.com # @File : action_douyin.py # @Software: PyCharm from appium import webdriver from time import sleep import random if __name__ == '__main__': action = Action() action.start() pass
28
116
0.557823
03b31105b49366639294bcbe79b90c112f7393bb
189
py
Python
glitter_documents/apps.py
developersociety/django-glitter-documents
8d13d6fc7133f7d6f595a4e780f291caf3ab4efa
[ "BSD-3-Clause" ]
null
null
null
glitter_documents/apps.py
developersociety/django-glitter-documents
8d13d6fc7133f7d6f595a4e780f291caf3ab4efa
[ "BSD-3-Clause" ]
null
null
null
glitter_documents/apps.py
developersociety/django-glitter-documents
8d13d6fc7133f7d6f595a4e780f291caf3ab4efa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.apps import AppConfig
18.9
33
0.698413
03b414db96d625b3d6c44cb1055d545e44f688f9
1,332
py
Python
my_web_project/authentication/forms.py
AlexYankoff/my_web_project
d7d2c26289c561bc39d713ad5a1adff7a01b6508
[ "MIT" ]
null
null
null
my_web_project/authentication/forms.py
AlexYankoff/my_web_project
d7d2c26289c561bc39d713ad5a1adff7a01b6508
[ "MIT" ]
null
null
null
my_web_project/authentication/forms.py
AlexYankoff/my_web_project
d7d2c26289c561bc39d713ad5a1adff7a01b6508
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth import authenticate from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.core.exceptions import ValidationError from my_web_project.common.forms import BootstrapFormMixin from my_web_project.main.models import S...
25.132075
74
0.686186
03b4819121dac16a6891e3a0fa802981205674c3
9,024
py
Python
experiments_pu/compute_prediction.py
6Ulm/unbalanced_gromov_wasserstein
be23571f653dab16fd0722cb1ec2c3412a1e3f30
[ "MIT" ]
22
2020-09-10T21:57:02.000Z
2022-03-16T14:42:47.000Z
experiments_pu/compute_prediction.py
6Ulm/unbalanced_gromov_wasserstein
be23571f653dab16fd0722cb1ec2c3412a1e3f30
[ "MIT" ]
null
null
null
experiments_pu/compute_prediction.py
6Ulm/unbalanced_gromov_wasserstein
be23571f653dab16fd0722cb1ec2c3412a1e3f30
[ "MIT" ]
8
2020-09-11T00:59:31.000Z
2022-03-29T22:19:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Feb 12 10:58:27 2020 Experiments where one marginal is fixed """ import os import numpy as np from joblib import Parallel, delayed import torch import ot from unbalancedgw.batch_stable_ugw_solver import log_batch_ugw_sinkhorn from unbalancedgw._batch_...
37.757322
79
0.610372
03b7252c4a570f5045354d6d3a9bb828ebea09f4
3,340
py
Python
source_code/ghc2018.py
nuno-chicoria/GHC_2018
d3a19c4f6293dd24ca06d24fdde58da04800781b
[ "Unlicense" ]
null
null
null
source_code/ghc2018.py
nuno-chicoria/GHC_2018
d3a19c4f6293dd24ca06d24fdde58da04800781b
[ "Unlicense" ]
null
null
null
source_code/ghc2018.py
nuno-chicoria/GHC_2018
d3a19c4f6293dd24ca06d24fdde58da04800781b
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 1 18:44:04 2018 @author: JavaWizards """ import numpy as np file = "/Users/nuno_chicoria/Downloads/b_should_be_easy.in" handle = open(file) R, C, F, N, B, T = handle.readline().split() rides = [] index = [] for i in range(int(N)): index.a...
38.390805
208
0.498204
03b930ecffd229e67ed2320a14aa54a5dedfa069
2,296
py
Python
python/cuml/dask/linear_model/base.py
Pandinosaurus/cuml
47f8577ca0c1bc621cb67f77e0b8dbcbe68b360e
[ "Apache-2.0" ]
1
2021-02-01T00:01:29.000Z
2021-02-01T00:01:29.000Z
python/cuml/dask/linear_model/base.py
mseneshen/cuml
1c561de84739c31659acde639f1c80aedce3147c
[ "Apache-2.0" ]
null
null
null
python/cuml/dask/linear_model/base.py
mseneshen/cuml
1c561de84739c31659acde639f1c80aedce3147c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
32.8
77
0.651132
03bb66fae4fd3ed09ed811e675a254e039ae716a
2,686
py
Python
utils/plot_part_dat.py
jeremiedecock/botsim
73262092a8769c331edb96e083e32156f33bf948
[ "MIT" ]
1
2015-06-08T13:01:24.000Z
2015-06-08T13:01:24.000Z
utils/plot_part_dat.py
jeremiedecock/botsim
73262092a8769c331edb96e083e32156f33bf948
[ "MIT" ]
null
null
null
utils/plot_part_dat.py
jeremiedecock/botsim
73262092a8769c331edb96e083e32156f33bf948
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2015 Jrmie DECOCK (jd.jdhp@gmail.com) import numpy as np import matplotlib.pyplot as plt import math import argparse def main(): """Main function""" # PARSE OPTIONS ################### parser = argparse.ArgumentParser(description='Plot on...
29.195652
94
0.599032
03bbae28c2cd4fb58b49c704d23f872cee7681d3
3,505
py
Python
t.py
cmsirbu/gencfg
5f201208ca55bdd2ddd67974129465d95ebf4af4
[ "MIT" ]
5
2016-03-09T19:50:54.000Z
2018-10-12T03:05:23.000Z
t.py
cmsirbu/gencfg
5f201208ca55bdd2ddd67974129465d95ebf4af4
[ "MIT" ]
null
null
null
t.py
cmsirbu/gencfg
5f201208ca55bdd2ddd67974129465d95ebf4af4
[ "MIT" ]
2
2019-06-28T10:34:52.000Z
2019-09-16T23:56:49.000Z
#!/usr/bin/env python """A script that helps generate router configuration from templates. """ import os import sys import argparse import csv import jinja2 from jinja2 import meta if __name__ == '__main__': sys.exit(main(sys.argv[1:]))
38.097826
103
0.681598
03bc9a5f0a747abf5d82393e3bb16961bae673ea
2,607
py
Python
examples/perf/rnn/simple_rnn.py
yuhonghong66/minpy
2e44927ad0fbff9295e2acf6db636e588fdc5b42
[ "Apache-2.0" ]
1,271
2015-11-05T10:53:40.000Z
2022-02-20T08:33:35.000Z
examples/perf/rnn/simple_rnn.py
yuhonghong66/minpy
2e44927ad0fbff9295e2acf6db636e588fdc5b42
[ "Apache-2.0" ]
140
2016-04-07T02:55:19.000Z
2019-08-02T06:01:53.000Z
examples/perf/rnn/simple_rnn.py
yuhonghong66/minpy
2e44927ad0fbff9295e2acf6db636e588fdc5b42
[ "Apache-2.0" ]
144
2015-11-05T10:53:45.000Z
2022-03-25T05:38:09.000Z
import sys sys.path.insert(0, "../../python/") import mxnet as mx import numpy as np from collections import namedtuple import time import math RNNState = namedtuple("RNNState", ["h"]) RNNParam = namedtuple("RNNParam", ["i2h_weight", "i2h_bias", "h2h_weight", "h2h_bias"]) RNNModel = ...
41.380952
99
0.557729
03bce3dec0a0cfe68389b401fddaa0824f69003d
366
py
Python
Python/bench_2_1.py
nifty-swift/Nifty-benchmarks
025128d6276a5dec0c89d1e464131c4e4dc22292
[ "Apache-2.0" ]
1
2018-03-28T05:51:21.000Z
2018-03-28T05:51:21.000Z
Python/bench_2_1.py
nifty-swift/Nifty-benchmarks
025128d6276a5dec0c89d1e464131c4e4dc22292
[ "Apache-2.0" ]
null
null
null
Python/bench_2_1.py
nifty-swift/Nifty-benchmarks
025128d6276a5dec0c89d1e464131c4e4dc22292
[ "Apache-2.0" ]
null
null
null
import numpy as np from time import time
19.263158
94
0.601093
03bd899281282039d2ef001ae52730a3c07b4cad
685
py
Python
utils/globals.py
Pawel095/RaidenPy
0981a4921012f1951510a14f588645803c07010a
[ "Apache-2.0" ]
null
null
null
utils/globals.py
Pawel095/RaidenPy
0981a4921012f1951510a14f588645803c07010a
[ "Apache-2.0" ]
null
null
null
utils/globals.py
Pawel095/RaidenPy
0981a4921012f1951510a14f588645803c07010a
[ "Apache-2.0" ]
null
null
null
import arcade from utils.loader import Loader TITLE = "Raiden Py" WINDOW = None WIDTH = 600 HEIGHT = 600 SCREEN_WIDTH = WIDTH SCREEN_HEIGHT = HEIGHT bullets = [] enemies = [] l = Loader() print("load Start") l.load() print("load End") enemyBullets = arcade.SpriteList() playerBullets = arcade.SpriteList() enemies...
15.568182
35
0.675912
03bdc7816fc5e2a7235f327d0fd6fc22c8a483aa
686
py
Python
tryme.py
haamis/Turku-neural-parser-pipeline
7aec4aef910c7deb2590453031bff2affe61ff26
[ "Apache-2.0" ]
94
2018-08-19T11:08:33.000Z
2022-03-15T14:37:27.000Z
tryme.py
haamis/Turku-neural-parser-pipeline
7aec4aef910c7deb2590453031bff2affe61ff26
[ "Apache-2.0" ]
31
2018-08-09T09:31:38.000Z
2022-02-21T14:33:56.000Z
tryme.py
haamis/Turku-neural-parser-pipeline
7aec4aef910c7deb2590453031bff2affe61ff26
[ "Apache-2.0" ]
31
2018-09-04T18:44:54.000Z
2021-10-20T09:54:16.000Z
from tnparser.pipeline import read_pipelines, Pipeline text1="I have a dog! Let's see what I can do with Silo.ai. :) Can I tokenize it? I think so! Heading: This is the heading And here continues a new sentence and there's no dot." text2="Some other text, to see we can tokenize more stuff without reloading the model.....
45.733333
176
0.690962
03be6746a1113ef106ddc989e296ffe5f60e66cf
3,034
py
Python
scripts/mkuidefaults.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
scripts/mkuidefaults.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
scripts/mkuidefaults.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ *************************************************************************** mkuidefaults.py --------------------- Date : June 2013 Copyright : (C) 2013 by Juergen E. Fischer Email : jef at norbit dot de ***...
33.340659
77
0.51648
03bebfed119097ef096738e58538d61c95362c67
31,667
py
Python
fake_spectra/rate_network.py
xiaohanzai/fake_spectra
170b42ac7732eb4f299617a1049cd3eabecfa3a7
[ "MIT" ]
null
null
null
fake_spectra/rate_network.py
xiaohanzai/fake_spectra
170b42ac7732eb4f299617a1049cd3eabecfa3a7
[ "MIT" ]
null
null
null
fake_spectra/rate_network.py
xiaohanzai/fake_spectra
170b42ac7732eb4f299617a1049cd3eabecfa3a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """A rate network for neutral hydrogen following Katz, Weinberg & Hernquist 1996, eq. 28-32.""" import os.path import math import numpy as np import scipy.interpolate as interp import scipy.optimize
49.94795
188
0.639688
03c09547958d70bb46801b4ba91b9730dc032295
1,949
py
Python
adjuftments/utils/splitwise_auth_tool/splitwise_credentials.py
juftin/adjuftments
0833923053db5090cd5aac6dd035f4058a81800f
[ "MIT" ]
null
null
null
adjuftments/utils/splitwise_auth_tool/splitwise_credentials.py
juftin/adjuftments
0833923053db5090cd5aac6dd035f4058a81800f
[ "MIT" ]
null
null
null
adjuftments/utils/splitwise_auth_tool/splitwise_credentials.py
juftin/adjuftments
0833923053db5090cd5aac6dd035f4058a81800f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Author:: Justin Flannery (mailto:juftin@juftin.com) """ Simple Flask Server to Expose Credentials """ from flask import Flask, jsonify, redirect, render_template, request, session, url_for from splitwise import Splitwise from adjuftments.config import SplitwiseConfig app = Flask(__name...
33.603448
98
0.710621
03c53fb902449f1a9cbebfac139cb7b318479b1e
250
py
Python
kobert_transformers/utils.py
LoveMeWithoutAll/KoBERT-Transformers
5e30015ae1101b57758fbe10a4e2502bc530acc1
[ "Apache-2.0" ]
null
null
null
kobert_transformers/utils.py
LoveMeWithoutAll/KoBERT-Transformers
5e30015ae1101b57758fbe10a4e2502bc530acc1
[ "Apache-2.0" ]
null
null
null
kobert_transformers/utils.py
LoveMeWithoutAll/KoBERT-Transformers
5e30015ae1101b57758fbe10a4e2502bc530acc1
[ "Apache-2.0" ]
null
null
null
from .tokenization_kobert import KoBertTokenizer
27.777778
65
0.768
03c611fb4f50a42c6f79fa67871d099851e47dda
107
py
Python
testtakepicture.py
1082sqnatc/missionspacelab2019
439753c8e309ece98963f58c9bb443217e75364e
[ "Apache-2.0" ]
null
null
null
testtakepicture.py
1082sqnatc/missionspacelab2019
439753c8e309ece98963f58c9bb443217e75364e
[ "Apache-2.0" ]
12
2019-12-01T15:52:08.000Z
2020-02-02T13:52:36.000Z
testtakepicture.py
1082sqnatc/missionspacelab2019
439753c8e309ece98963f58c9bb443217e75364e
[ "Apache-2.0" ]
null
null
null
from src.takepicture import takePicture x=1 while x < 10: takePicture(x) print("success") x=x+1
17.833333
39
0.672897
03c68b9524f9bd7a43776576e52572665d646a5b
1,864
py
Python
dcracer/config.py
wallarug/dcracer
e959f7eff30fcec426d97b5dbf4ff0aa4d57bf6d
[ "MIT" ]
null
null
null
dcracer/config.py
wallarug/dcracer
e959f7eff30fcec426d97b5dbf4ff0aa4d57bf6d
[ "MIT" ]
1
2021-07-13T13:09:51.000Z
2021-07-13T13:09:51.000Z
dcracer/config.py
wallarug/dcracer
e959f7eff30fcec426d97b5dbf4ff0aa4d57bf6d
[ "MIT" ]
null
null
null
''' # Config ''' import cv2 import numpy as np import platform import time import sys ## ## Open CV Variables ## # show the debug output for the open cv DEMO_MODE = True # set some variables for testing output FONT = cv2.FONT_HERSHEY_SIMPLEX # Min and Max Area Sizes AREA_SIZE_STOP = 30 AREA_SIZE_TURN = 35 AREA_SIZ...
24.853333
112
0.721567
03c6a4780081ba46e0720aa30e18a9c4fde3152f
1,596
py
Python
escola/tests/selenium_test_case.py
vini84200/medusa2
37cf33d05be8b0195b10845061ca893ba5e814dd
[ "MIT" ]
1
2019-03-15T18:04:24.000Z
2019-03-15T18:04:24.000Z
escola/tests/selenium_test_case.py
vini84200/medusa2
37cf33d05be8b0195b10845061ca893ba5e814dd
[ "MIT" ]
22
2019-03-17T21:53:50.000Z
2021-03-31T19:12:19.000Z
escola/tests/selenium_test_case.py
vini84200/medusa2
37cf33d05be8b0195b10845061ca893ba5e814dd
[ "MIT" ]
1
2018-11-25T03:05:23.000Z
2018-11-25T03:05:23.000Z
# Developed by Vinicius Jos Fritzen # Last Modified 13/04/19 16:04. # Copyright (c) 2019 Vinicius Jos Fritzen and Albert Angel Lanzarini import pytest from decouple import config from django.contrib.auth.models import User from django.test import LiveServerTestCase, TestCase from selenium import webdriver from sele...
33.957447
96
0.714286
03c7a7b3db0ab25294b2db4724ac425e52e65c90
3,628
py
Python
tests/general.py
tkhyn/djangorecipebook
2cbb3d46631630e2c7a3c511b504de2088aac115
[ "MIT" ]
null
null
null
tests/general.py
tkhyn/djangorecipebook
2cbb3d46631630e2c7a3c511b504de2088aac115
[ "MIT" ]
null
null
null
tests/general.py
tkhyn/djangorecipebook
2cbb3d46631630e2c7a3c511b504de2088aac115
[ "MIT" ]
null
null
null
""" General tests that concern all recipes """ import os import sys from ._base import mock, RecipeTests, test_project # we use the very simple manage.Recipe to test BaseRecipe functionalities from djangorecipebook.recipes import manage
43.190476
79
0.620176
03c7dfec4bf01608ff9510185092140717400a2f
170
py
Python
zinc/utils/validation.py
PressLabs/zinc
9e1dc852f31f9897e7759962cf0f3e6d42fbe637
[ "Apache-2.0" ]
29
2017-06-29T15:03:49.000Z
2018-01-30T14:07:26.000Z
zinc/utils/validation.py
presslabs/zinc
94146e5203fc93ee0e8bb011a4db0ffcd4b0096e
[ "Apache-2.0" ]
9
2019-01-11T09:07:17.000Z
2022-02-03T12:50:21.000Z
zinc/utils/validation.py
PressLabs/zinc
9e1dc852f31f9897e7759962cf0f3e6d42fbe637
[ "Apache-2.0" ]
1
2020-08-09T18:17:25.000Z
2020-08-09T18:17:25.000Z
import ipaddress
17
39
0.676471
03c990c91654998615108574d5737dfafe7b57a4
4,167
py
Python
tests/config/evaluation.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
tests/config/evaluation.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
tests/config/evaluation.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
import numpy as np from collections import namedtuple Population = namedtuple("Population", ['mean_fitness','mean', 'covariance']) config = dict( dimension = 2, population_size = 100, algorithm = dict( mean_function =dict( type = "RLMean" ), covariance_function = dict(...
27.78
95
0.593713