hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
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
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
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
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
d6f97954783790875fdc47405df8b323958138d8
48
py
Python
src/cory/dao/reminder_dao_runtime.py
MBogert/ReminderCory
a687c70a12f49a807d9fb023d45f799292a37f26
[ "MIT" ]
null
null
null
src/cory/dao/reminder_dao_runtime.py
MBogert/ReminderCory
a687c70a12f49a807d9fb023d45f799292a37f26
[ "MIT" ]
null
null
null
src/cory/dao/reminder_dao_runtime.py
MBogert/ReminderCory
a687c70a12f49a807d9fb023d45f799292a37f26
[ "MIT" ]
null
null
null
class ReminderDaoRuntime: def __init__(self):
12
25
0.791667
ba856961df4f2e87fb839c20bb463af292563639
15
py
Python
test.py
KrypticSilver/maths-calculator
d830d28ab07ee8a8a7f30d19d2f1561345e45310
[ "MIT" ]
null
null
null
test.py
KrypticSilver/maths-calculator
d830d28ab07ee8a8a7f30d19d2f1561345e45310
[ "MIT" ]
null
null
null
test.py
KrypticSilver/maths-calculator
d830d28ab07ee8a8a7f30d19d2f1561345e45310
[ "MIT" ]
null
null
null
print("/" * 51)
15
15
0.466667
aea5a4328b1fa1336c2e545b44602ef5d7fab955
1,151
py
Python
Imaginary/2021/web/aMAZEing-challenge/cookie_decoder.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/web/aMAZEing-challenge/cookie_decoder.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/web/aMAZEing-challenge/cookie_decoder.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
""" Flask Session Cookie Decoder/Encoder """ __author__ = 'Wilson Sumanang, Alexandre ZANNI' # https://github.com/noraj/flask-session-cookie-manager/blob/master/flask_session_cookie_manager3.py # standard imports import sys import zlib from itsdangerous import base64_decode import ast # external Imports from flask.s...
26.767442
100
0.627281
c9a96b8a899ea117dfd45ff6e4cd279324456036
5,439
py
Python
Metadataextraction/extractTool.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
Metadataextraction/extractTool.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
Metadataextraction/extractTool.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
from pyproj import Proj, transform # used for the CRS transformation import click # used to print something import getShapefileInfo, getGeoTiffInfo, getCSVInfo, getIsoInfo, getGeoJsonInfo, getNetCDFInfo, getGeoPackageInfo, openFolder # used for the specific extraction functions """ Auxiliary function to bypas...
40.894737
172
0.617761
c9bbdef79761b36b66801392cc10156a194a579b
744
py
Python
Packs/ZeroTrustAnalyticsPlatform/Scripts/ZTAPBuildTimeline/ZTAPBuildTimeline_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ZeroTrustAnalyticsPlatform/Scripts/ZTAPBuildTimeline/ZTAPBuildTimeline_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ZeroTrustAnalyticsPlatform/Scripts/ZTAPBuildTimeline/ZTAPBuildTimeline_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import io import demistomock as demisto def util_load_json(path): with io.open(path, mode="r", encoding="utf-8") as f: return json.loads(f.read()) def test_build_timeline(mocker): from ZTAPBuildTimeline import build_timeline def executeCommand(name, args=None): if name == "m...
27.555556
78
0.698925
4ed25c336d963f4147f148ae9d3cceb3c25c574c
3,439
py
Python
docassemble/lmrhh/util.py
lmr-hh/docassemble-lmrhh
c6c5a7215d36c1fc54c604880d0712a4fc6b3a33
[ "MIT" ]
null
null
null
docassemble/lmrhh/util.py
lmr-hh/docassemble-lmrhh
c6c5a7215d36c1fc54c604880d0712a4fc6b3a33
[ "MIT" ]
null
null
null
docassemble/lmrhh/util.py
lmr-hh/docassemble-lmrhh
c6c5a7215d36c1fc54c604880d0712a4fc6b3a33
[ "MIT" ]
null
null
null
from docassemble.base.functions import value from docassemble.base.util import format_date, validation_error, Address, Person __all__ = ["adresse", "date_checklist", "dates_review"] def adresse(thing): """ Gibt eine formatierte Postadresse zurück. """ if isinstance(thing, str): return thing ...
34.737374
80
0.559465
e129657dbbe45c6e8915c43d98ae9d6a5e3f3215
10,044
py
Python
GeoTracking/TrackerGeo/trackergeo.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
GeoTracking/TrackerGeo/trackergeo.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
GeoTracking/TrackerGeo/trackergeo.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python3 #-*- coding:utf-8 -*- import os import platform import sys import subprocess import threading import time import json try: import requests except ImportError: sys.exit("\033[31m[!] Error Requests Module Not Found !") try: from bs4 import BeautifulSoup except ImportError: sys.exit("...
40.829268
198
0.517822
3a75050a40a48b048a1ffc6b2a397a57d396fb48
2,025
py
Python
tarefas-poo/lista-04/matriz_de_inteiros/view/paineis/painel_analisa_matriz.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-04/matriz_de_inteiros/view/paineis/painel_analisa_matriz.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-04/matriz_de_inteiros/view/paineis/painel_analisa_matriz.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# ------------------------------- # UFSC - CTC - INE - INE5663 # Exercício da Matriz de Inteiros # ------------------------------- # Classe que permite exibir informações sobre uma matriz. # from view.util import mostra_matriz class PainelAnalisaMatriz: def analise(self, matrizes): print('- - - Analisand...
39.705882
70
0.585679
3acd359cedf71f084a31a182d7b11f88b61c1f92
1,260
py
Python
Python/Collections/company_logo.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Collections/company_logo.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Collections/company_logo.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
from collections import Counter # https://www.hackerrank.com/challenges/most-commons/problem?h_r=internal-search s = 'aabbbccde' # s = 'qwertyuiopasdfghjklzxcvbnm' print(s) def key(s): print(s) def logo(s): print(Counter(s)) # log = sorted([str(j)+i for i,j in Counter(s).items()],key=lambda x: x.isdigit,str.isal...
22.105263
120
0.636508
42f9615cf29e7361dc6bf5380253c6c20c1fa510
136
py
Python
Beginner/03. Python/Table_generator.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
1
2021-10-04T05:41:43.000Z
2021-10-04T05:41:43.000Z
Beginner/03. Python/Table_generator.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/Table_generator.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
num = int(input("Enter number to generate table : ")) for i in range(0,11): a = i*num print("{} x {} = {}".format(num,i,a))
27.2
54
0.536765
2852f18492bf75d99fb6638e662e619f15b6997b
4,359
py
Python
Python/GuiStepscope/main.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/GuiStepscope/main.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/GuiStepscope/main.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
# main.py # ================================================================================ # BOOST SOFTWARE LICENSE # # Copyright 2020 BitWise Laboratories Inc. # Original Author.......Jim Waschura # Contact...............info@bitwiselabs.com # # Permission is hereby granted, free of charge, to any person or organiza...
38.575221
110
0.662078
2869b071d55be5c112ca05ba6058dbfee5ca0963
13,747
py
Python
transonic/util.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/util.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/util.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
"""Internal utilities ===================== Public API ---------- .. autofunction:: set_compile_at_import Internal API ------------ .. autofunction:: find_module_name_from_path .. autofunction:: get_module_name .. autofunction:: modification_date .. autofunction:: has_to_build .. autofunction:: get_source_witho...
25.888889
112
0.631774
2879cddcafa1162a256b4ccbcebefe11e27a1416
1,022
py
Python
exercises/pt/test_01_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/test_01_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/test_01_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( len(pattern) == 3 ), "A expressão deve descrever três tokens (três dicionários)." assert isinstance(pattern[0], dict) and isinstance(pattern[1], dict ) and isinstance(pattern[2], dict), "Cada item da expressão deve ser um dicionário." assert ( len(pattern[0]) == ...
48.666667
126
0.641879
95e9e2de6126e9706c857bfdb356e4403b3b5ac8
574
py
Python
src/labtest/migrations/0009_auto_20220329_2142.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
src/labtest/migrations/0009_auto_20220329_2142.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
1
2022-03-25T05:33:19.000Z
2022-03-25T05:33:19.000Z
src/labtest/migrations/0009_auto_20220329_2142.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2022-03-29 21:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('labtest', '0008_auto_20220328_2145'), ] operations = [ migrations.AddField( model_name='labtest', name='result_date'...
23.916667
62
0.58885
25062bc14c071c1db9ee705b0354506e9cb66a18
1,255
py
Python
PythonPro/demo/exception.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
PythonPro/demo/exception.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
PythonPro/demo/exception.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # 异常 class Networkerror(RuntimeError): def __init__(self, arg): self.args = arg try: raise Networkerror("Bad hostname") except Networkerror,e: print e.args # 定义函数 # def mye( level ): # if level < 1: # raise Exception("Invalid level!", level) # # 触发异...
18.188406
50
0.534661
250fb4655e6e5b029eb319d1feeffbcbf34f3046
1,480
py
Python
Metadataextraction/test_getTime.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
Metadataextraction/test_getTime.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
Metadataextraction/test_getTime.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import os # used to get the location of the testdata import getTimeextent # used to invoke the get time functions of the specific datatypes __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) # Tests for our getTimeextend file. This file is just for testing. # The single f...
51.034483
166
0.764865
2524cbcfb26d542640bdbfd27b5d851d7ec778e1
1,333
py
Python
sqlInjetct.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
sqlInjetct.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
sqlInjetct.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# -*- coding: utf-8 -*- # @Author: lock # @Date: 2017-02-12 21:32:31 # @Last Modified by: lock # @Last Modified time: 2017-02-12 21:32:42 import sys import string import time,datetime import requests def main(url): print('Loding...') print('Start Attack ....') # payload = list(string.ascii_letters) ...
28.978261
164
0.516879
255a4966d735c20ffd39ad5bf03c28a6bbb9cc4f
3,733
py
Python
src/aijack/collaborative/fedkd/client.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
24
2021-11-17T02:16:47.000Z
2022-03-27T01:04:08.000Z
src/aijack/collaborative/fedkd/client.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
9
2021-12-03T06:09:27.000Z
2022-03-29T06:33:53.000Z
src/aijack/collaborative/fedkd/client.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
5
2022-01-12T09:58:04.000Z
2022-03-17T09:29:04.000Z
import torch.nn.functional as F from ..fedavg import FedAvgClient class FedKDClient(FedAvgClient): """Implementation of FedKD (https://arxiv.org/abs/2108.13323)""" def __init__( self, student_model, teacher_model, task_lossfn, student_lr=0.1, teacher_lr=0.1, ...
38.484536
86
0.640504
255d88bb345a439c8882f4f8e57ee2921222170b
559
py
Python
c2m.py
mccaig/c2m
8a3efbc3010407fa28e5f94946880b445e09fbb2
[ "MIT" ]
1
2021-03-01T00:29:31.000Z
2021-03-01T00:29:31.000Z
c2m.py
mccaig/c2m
8a3efbc3010407fa28e5f94946880b445e09fbb2
[ "MIT" ]
null
null
null
c2m.py
mccaig/c2m
8a3efbc3010407fa28e5f94946880b445e09fbb2
[ "MIT" ]
null
null
null
import csv import chevron import sys csv_file = sys.argv[1] template_file = sys.argv[2] file_name_field = sys.argv[3] file_name_extension = sys.argv[4] with open(template_file, 'r') as t: with open(csv_file, 'r') as c: reader = csv.DictReader(c) for row in reader: out_file_name = row[file_name_field] ...
29.421053
72
0.68873
dd7c129aa7efb1d4132f7d600aa87b673b98aa2c
2,738
py
Python
py/preview.py
hotarugali/Emoji
e3cbcd6644d9f8a69d0cf9c0209de42c0d469f0f
[ "MIT" ]
null
null
null
py/preview.py
hotarugali/Emoji
e3cbcd6644d9f8a69d0cf9c0209de42c0d469f0f
[ "MIT" ]
null
null
null
py/preview.py
hotarugali/Emoji
e3cbcd6644d9f8a69d0cf9c0209de42c0d469f0f
[ "MIT" ]
null
null
null
import os os.chdir(os.path.dirname(os.path.abspath(__file__))) from airium import Airium # 扫描单层目录下所有表情包 def scanDir(repo, dir): files = sorted(os.listdir(dir)) folder = dir.split(f'/{repo}/')[1].strip("/") cols = 6 rows = (len(files)-1) // cols + 1 height = 120 width = 120 readme = Airium()...
39.681159
205
0.532505
c6d2a8a51e98b6179ea813c43a39f853353638c4
623
py
Python
2016/day03_squares_with_three_sides/python/src/common.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day03_squares_with_three_sides/python/src/common.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day03_squares_with_three_sides/python/src/common.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
"""Docstring.""" class Sorter(): """.""" def __init__(self, puzzle_input): """Init.""" self.possible_triangles = 0 self.triangles = [] for line in puzzle_input: triplet = line.split() for i, item in enumerate(triplet): triplet[i] = int(i...
24.92
55
0.52809
05abd03f14f14ba28050885c5ad6967af3d161ad
656
py
Python
Chapter3_ML/Chapter3_2_ML_Application/MachineLearningLinReg.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
11
2020-10-12T14:06:31.000Z
2022-02-22T09:16:32.000Z
Chapter3_ML/Chapter3_2_ML_Application/MachineLearningLinReg.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter3_ML/Chapter3_2_ML_Application/MachineLearningLinReg.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
8
2020-10-29T07:53:49.000Z
2022-03-17T11:01:20.000Z
import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split from tf_utils.dummyData import regression_data if __name__ == "__main__": x, y = regression_data() x = x.reshape(-1, 1) x_train, x_test, y_train, y_test = train_test_spl...
25.230769
76
0.698171
a56456ef43f4db949cea4c69b26353fada3ce8a5
19,148
py
Python
large_vocab_adt_dafx2018/percussion_synth.py
mcartwright/dafx2018_adt
057ac6b1e39cd0c80554d52535cc9d88b6316c74
[ "BSD-2-Clause" ]
6
2019-02-28T05:43:58.000Z
2021-03-02T17:05:13.000Z
large_vocab_adt_dafx2018/percussion_synth.py
mcartwright/dafx2018_adt
057ac6b1e39cd0c80554d52535cc9d88b6316c74
[ "BSD-2-Clause" ]
null
null
null
large_vocab_adt_dafx2018/percussion_synth.py
mcartwright/dafx2018_adt
057ac6b1e39cd0c80554d52535cc9d88b6316c74
[ "BSD-2-Clause" ]
1
2020-02-07T17:10:40.000Z
2020-02-07T17:10:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import random import jams import numpy as np import copy import datetime import pandas as pd import soundfile as psf import librosa.util import os from .utils import find_files_in_dirs from .utils import read_audio PERC_VOICE_SET = ['kicks', 'snares', ...
32.956971
120
0.600115
591a12c2cbe659b8d94ed809a41a02aa9555bff9
1,838
py
Python
hooks/post_gen_project.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
14
2021-03-27T22:18:56.000Z
2022-03-21T19:04:48.000Z
hooks/post_gen_project.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
33
2021-03-28T21:06:22.000Z
2022-03-07T14:18:26.000Z
hooks/post_gen_project.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
null
null
null
import os import shutil import isort def remove___main__(): os.remove(os.path.join("{{ cookiecutter.package_name}}", "__main__.py")) def remove_dockerfile(): os.remove("Dockerfile") shutil.rmtree("scripts") def remove_docker_compose(): os.remove("docker-compose.yaml") def remove_requirements():...
21.126437
81
0.625136
3cf939bbe047e3d3da1031ad8ba78449c9d59c07
4,403
py
Python
assignments/ps4-template/AVL_Tree.py
tallamjr/mit-6006
c2aa6bb48edef5800c0779ba2eebd697d44249b5
[ "MIT" ]
1
2022-02-26T13:52:31.000Z
2022-02-26T13:52:31.000Z
assignments/ps4-template/AVL_Tree.py
tallamjr/mit-6006
c2aa6bb48edef5800c0779ba2eebd697d44249b5
[ "MIT" ]
null
null
null
assignments/ps4-template/AVL_Tree.py
tallamjr/mit-6006
c2aa6bb48edef5800c0779ba2eebd697d44249b5
[ "MIT" ]
null
null
null
def height(A): if A: return A.height else: return -1 class AVL_Node: def __init__(A, x): # O(1) A.item = x A.left = None A.right = None A.parent = None A.subtree_update() def subtree_update(A): # O(1) A.heigh...
31.676259
65
0.45469
5957a4542c59bd05ecd2778bc5d15c44b9fa2c05
14,167
py
Python
wz/timetable0/timetable.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/timetable0/timetable.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/timetable0/timetable.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ui/wz_main.py Last updated: 2021-08-25 The timetable "main" window. =+LICENCE============================= Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obt...
31.622768
79
0.604433
e997186970308f05373006062d2bcbcc394a910a
970
py
Python
website/apps/pages/migrations/0001_initial.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
1
2017-03-14T08:08:31.000Z
2017-03-14T08:08:31.000Z
website/apps/pages/migrations/0001_initial.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
website/apps/pages/migrations/0001_initial.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Page', fields=[ ('id', models.AutoField(verbose...
31.290323
114
0.535052
75d1cfa77aacae1872e8314a0eb2de0b34e81130
243
py
Python
abfahrt/testutils/__init__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
1
2022-01-30T14:30:02.000Z
2022-01-30T14:30:02.000Z
abfahrt/testutils/__init__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
abfahrt/testutils/__init__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
""" This is the testutils-Package with the modules test_generator and test_simulator """ from abfahrt.testutils.test_generator.test_generator import test_generator from abfahrt.testutils.test_simulator.test_simulator import test_simulator
40.5
84
0.847737
f947f148201e6be3c888353662fad7f49d63ddf9
967
py
Python
python/en/archive/topics/visualization/plot_histogram.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/visualization/plot_histogram.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/visualization/plot_histogram.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
##### aimldl/python3/topics/visualization/plot_histogram.py ''' Draft: 2020-01-14 (Tue) ''' def plot_histogram( x, title='Histogram', xlabel='x', ylabel='Frequency' ): ''' plot_histogram( sample_length_list, title='Histogram: Sample Length of Speech Signals', xlabel='Sa...
25.447368
75
0.579111
f9b7a6e2f242fff726112b86fbbcf1eaade7ed0c
5,309
py
Python
train_inference/image_recognition/codes/dog_and_cat_train.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
train_inference/image_recognition/codes/dog_and_cat_train.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
train_inference/image_recognition/codes/dog_and_cat_train.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
import os, cv2, random import numpy as np from keras.layers import Input, Dense from keras.optimizers import RMSprop from keras.callbacks import Callback, EarlyStopping, TensorBoard from keras.applications.vgg16 import VGG16 from keras.models import Model from keras.utils import np_utils import tensorflow as tf from ...
29.17033
119
0.73592
f9e47732f679a9b624d2bcba99b8d90d7da5bd7e
8,466
py
Python
testUtils.py
dfdean/mlLib
3ea535c6b032f61e91f2d16ff75bf2796ef1a27f
[ "MIT" ]
null
null
null
testUtils.py
dfdean/mlLib
3ea535c6b032f61e91f2d16ff75bf2796ef1a27f
[ "MIT" ]
null
null
null
testUtils.py
dfdean/mlLib
3ea535c6b032f61e91f2d16ff75bf2796ef1a27f
[ "MIT" ]
null
null
null
##################################################################################### # # Copyright (c) 2020 Dawson Dean # # 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 restrictio...
23.582173
85
0.558469
fb2a7984e92da1a1d2741cf809d065a16e93a4d7
1,804
py
Python
EasyCleg/regres.py
bitsofishan/EasyCleg
ace2d5e7f47a58300fe8391553081e1b17fc807c
[ "MIT" ]
null
null
null
EasyCleg/regres.py
bitsofishan/EasyCleg
ace2d5e7f47a58300fe8391553081e1b17fc807c
[ "MIT" ]
null
null
null
EasyCleg/regres.py
bitsofishan/EasyCleg
ace2d5e7f47a58300fe8391553081e1b17fc807c
[ "MIT" ]
null
null
null
class regres(): def regres(X_train,y_train): #Basic Libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt #Some dataset,cross validation libraries from sklearn.datasets import load_boston,load_iris from sklearn.model_selection import train_test_split,cross...
26.925373
96
0.637472
9b65f7d69cc849397db23997ff53602f6500bc9f
2,849
py
Python
PolicyGradient/policy_gradient.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
2
2021-01-06T09:45:23.000Z
2021-04-21T09:39:14.000Z
PolicyGradient/policy_gradient.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
null
null
null
PolicyGradient/policy_gradient.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File : policy_gradient.py @Time : 2020/12/5 @Author : Yuan Yifu """ import torch.nn as nn import torch.nn.functional as F import torch from torch.distributions import Categorical import numpy as np N_STATES = 4 N_ACTIONS = 2 GAMMA = 0.95 torch.manual_seed(2) class Net(nn.Module)...
27.133333
80
0.605125
fd405828dda10c456f6dd691165a6709bdb94885
484
py
Python
lego/calculus/nodes/__init__.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
lego/calculus/nodes/__init__.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
lego/calculus/nodes/__init__.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
"""All nodes""" from .acos import Acos from .add import Add from .asin import Asin from .atan import Atan from .constant import Constant from .cos import Cos from .divide import Divide from .ln import Ln from .log import Log from .multiply import Multiply from .negate import Negate from .number import Number from .pow...
22
30
0.785124
bd236d118f7cb5478b1b9afac830e1758b5ddcb7
436
py
Python
2-resources/__CHEAT-SHEETS/cheatsheets-master/cheatsheets-master/dynamodb/python/update_item.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
103
2019-08-30T10:04:40.000Z
2022-03-30T22:14:44.000Z
2-resources/__CHEAT-SHEETS/cheatsheets-master/cheatsheets-master/dynamodb/python/update_item.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
6
2021-04-08T08:36:27.000Z
2021-10-01T07:47:17.000Z
2-resources/__CHEAT-SHEETS/cheatsheets-master/cheatsheets-master/dynamodb/python/update_item.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
51
2019-06-10T06:11:46.000Z
2022-03-30T16:33:05.000Z
import boto3 client = boto3.Session(region_name='eu-west-1').client('dynamodb', aws_access_key_id='', aws_secret_access_key='', endpoint_url='http://localhost:4567') response = client.update_item( TableName='gamescores', Key={ 'event': {'S': 'gaming_nationals_zaf'}, 'timestamp': {'S': '2019-02...
25.647059
152
0.630734
c0c6293066e65ce1af3a94a0592f6e2b0cb05f05
3,345
py
Python
myspiders/spider_hr/ccb_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
myspiders/spider_hr/ccb_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
myspiders/spider_hr/ccb_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
import math from config import CONFIG, Target import os import re from myspiders.ruia import JsonField, Item, Spider, Bs4AttrField from urllib.parse import urlencode, urlparse, urljoin, quote '''collectId: "0" currentApply: "0" endDate: "2020-04-26" firstApply: "0" isCollect: "0" orgId: "2011629" orgName: "贵州省分行" pla...
36.758242
213
0.698954
23dbda6c3fce90178de8309cd342e403be6e476c
8,184
py
Python
synchroload/storage.py
rakennus/duraphilms.github.io
bdbecdfb55f4870b5ebf572cd2a7eb4e6770ea22
[ "MIT" ]
null
null
null
synchroload/storage.py
rakennus/duraphilms.github.io
bdbecdfb55f4870b5ebf572cd2a7eb4e6770ea22
[ "MIT" ]
null
null
null
synchroload/storage.py
rakennus/duraphilms.github.io
bdbecdfb55f4870b5ebf572cd2a7eb4e6770ea22
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import shutil import os DATA_LOCATION = "_data/videos.json" COLLECTIONS_PLAYLISTS_LOCATION = "_playlists/" COLLECTIONS_VIDEOS_LOCATION = "_videos/" VIDEO_VERSIONS = [ "Remastered", "Remake", "Original", ] HOSTER_SORTING = [ "youtube", "twitch", "vimeo", ...
29.652174
89
0.527126
7bc63b979008b0389023d1fe2500101348904889
3,595
py
Python
src/translations.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/translations.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/translations.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
translations = { "Sekretärin": "secretary", "Lehrerin": "teacher", "Lehrer": "teacher", "Verkäuferin": "saleswoman", "Verkäufer": "salesman", "Krankenschwester": "nurse", "Reinigungskraft": "cleaning person", "Erzieherin": "Kindergarten teacher", "Kellnerin": "waitress", "Haushäl...
31.26087
57
0.613074
c891c859cf1ba1732ce65fe98137c8fe96d3053a
1,745
py
Python
script_6_create_clim.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
1
2021-04-23T19:47:51.000Z
2021-04-23T19:47:51.000Z
script_6_create_clim.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
null
null
null
script_6_create_clim.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pylab as plt import numpy as np clim_dir = 'Projects/Project_Beech/formind_parameters/Climate/' clim_fname = 'weatherGermany_100_ori.txt' clim_fpath = clim_dir+clim_fname data = pd.read_csv(clim_fpath, delimiter=' ') strt = 901 num_year = 10000 index = [i for i in range(num_ye...
26.846154
157
0.665903
a91d1a11ccd2ae463ef14dd27e50bdaf23106fd0
1,674
py
Python
nz_crawl_demo/day5/renren_login/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day5/renren_login/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day5/renren_login/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
import requests import random from chaojiying import Chaojiying_Client ua_list= [ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36", "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16", "Mozilla/5.0 (Windows NT 6.2; WO...
27.9
121
0.62963
8d30dfc6c1dc400775550e27ba44ce5ecb2d2913
1,399
py
Python
listings/chapter03/metric.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter03/metric.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter03/metric.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
class Metric: MILLIMETER = 0.001 CENTIMETER = 0.01 METER = 1 KILOMETER = 1000 DISPLAY_NAMES = { MILLIMETER: 'mm', CENTIMETER: 'cm', METER: 'm', KILOMETER: 'km' } def __init__(self, value, unit = METER): self._value = value self._unit = unit ...
21.859375
61
0.592566
a5ea87b2098454bf1cb0f94cf6a83cd4094c9e1a
3,068
py
Python
Packs/HealthCheck/Scripts/HealthCheckLicenseData/HealthCheckLicenseData.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/HealthCheck/Scripts/HealthCheckLicenseData/HealthCheckLicenseData.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/HealthCheck/Scripts/HealthCheckLicenseData/HealthCheckLicenseData.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 validTil = [] customer = [] permittedUsers = [] usedUsers = [] licenseType = [] uid = [] TimLicenseType = [] res = demisto.executeCommand('getFilePath', {'id': demisto.args()['entryID']}) if res[0]['Type'] == entryTypes['error...
37.876543
94
0.559974
93ed5cb9f4b58a4b9ce6335f8d5d9009464e1120
1,670
py
Python
passive-bot.py
afrzlfa/Passive-Bot
6b2c9b879818253ca20bbe1b833a9ab9110e39be
[ "MIT" ]
null
null
null
passive-bot.py
afrzlfa/Passive-Bot
6b2c9b879818253ca20bbe1b833a9ab9110e39be
[ "MIT" ]
null
null
null
passive-bot.py
afrzlfa/Passive-Bot
6b2c9b879818253ca20bbe1b833a9ab9110e39be
[ "MIT" ]
null
null
null
print(""" [*] [Passive Skill BOT by Afrizal F.A] """) import os, pyautogui, time from pynput import keyboard from concurrent.futures import ThreadPoolExecutor as t class auto_on: def on_press(self, key): if key == keyboard.Key.f1: self.start = True elif key == keyboard.Key.f2: ...
22.266667
79
0.493413
9e1e9af243ef3fb94012b45fd203b1594d1a63ce
1,915
py
Python
Aufgaben/abgabe2/neuron.py
JoshuaJoost/GNN_SS20
6b905319f2e51b71569354c347805abce9df3cb1
[ "MIT" ]
null
null
null
Aufgaben/abgabe2/neuron.py
JoshuaJoost/GNN_SS20
6b905319f2e51b71569354c347805abce9df3cb1
[ "MIT" ]
null
null
null
Aufgaben/abgabe2/neuron.py
JoshuaJoost/GNN_SS20
6b905319f2e51b71569354c347805abce9df3cb1
[ "MIT" ]
null
null
null
__authors__ = "Rosario Allegro (1813064), Sedat Cakici (1713179), Joshua Joost (1626034)" # maintainer = who fixes buggs? __maintainer = __authors__ __date__ = "2020-05-01" __version__ = "1.0" __status__ = "Ready" # kernel imports import numpy as np # own data imports from constants import activationFunction class n...
20.815217
168
0.607311
8b72012b3a63a152772e8e9e0a5d8418bd916aa2
496
py
Python
python_code_file/good_lstm.py
Karllzy/DaJiDuPin
12fc752caa23f510fbc895d0be2f702b5afde0ea
[ "MIT" ]
null
null
null
python_code_file/good_lstm.py
Karllzy/DaJiDuPin
12fc752caa23f510fbc895d0be2f702b5afde0ea
[ "MIT" ]
null
null
null
python_code_file/good_lstm.py
Karllzy/DaJiDuPin
12fc752caa23f510fbc895d0be2f702b5afde0ea
[ "MIT" ]
null
null
null
from keras.layers import Input, Embedding, LSTM, Dense from keras.models import Model # 标题输入:接收一个含有 100 个整数的序列,每个整数在 1 到 10000 之间。 # 注意我们可以通过传递一个 "name" 参数来命名任何层。 main_input = Input(shape=(461,), dtype='int32', name='main_input') # Embedding 层将输入序列编码为一个稠密向量的序列, # 每个向量维度为 512。 x = Embedding(output_dim=512, input_dim=1...
33.066667
78
0.764113
3edc36ffe0af27994941f6b0d54f1f33b88f91ab
224
py
Python
python/en/archive/dropbox/miscellaneous_python_files/python-class-ex01-adder.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/miscellaneous_python_files/python-class-ex01-adder.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/miscellaneous_python_files/python-class-ex01-adder.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# 점프 투 파이썬, 박응용, 이지스 퍼블리싱 # 05-1. 파이썬 프로그래밍의 핵심, 클래스 # 클래스는 도대체 왜 필요한가? # p.173 result = 0 def adder( num ): global result result += num return result print( adder( 3 ) ) print( adder( 4 ) )
14.933333
29
0.544643
f5bbcc96f9053e85050cd61be3bcfff9ef6e79b1
329
py
Python
Problems/Two Pointers/easy/RemovePalindromicSubsequence/test_remove_palindromic_subsequence.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/RemovePalindromicSubsequence/test_remove_palindromic_subsequence.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/RemovePalindromicSubsequence/test_remove_palindromic_subsequence.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from remove_palindromic_subsequence import removePalindromeSub class Test(TestCase): def test_remove_palindrome_sub(self): self.assertEqual(removePalindromeSub("ababa"), 1) self.assertEqual(removePalindromeSub("abb"), 2) self.assertEqual(removePalindromeSub("ba...
41.125
62
0.768997
f5d6684ca8e70b6a5e67a230fcb62a36e965f9f7
470
py
Python
tests/onegov/wtfs/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/wtfs/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/wtfs/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.wtfs.models import PaymentType from transaction import commit def test_app_principal(wtfs_app): assert wtfs_app.principal def test_app_initial_content(wtfs_app): session = wtfs_app.session() session.query(PaymentType).delete() wtfs_app.add_initial_content() commit() payment_typ...
23.5
72
0.738298
a0f1ecaa7d6b8fda5e37ec5922b9e1b887452240
142
py
Python
Online-Judges/CodingBat/Python/Logic-02/Logic_2-03-lucky_sum.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/Logic-02/Logic_2-03-lucky_sum.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/Logic-02/Logic_2-03-lucky_sum.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def lucky_sum(a, b, c): if a == 13: return 0 if b == 13: return a if c == 13: return a+b return a+b+c
15.777778
23
0.429577
19fb39256b4eab75bb8882ed654fbf881178c598
2,135
py
Python
Algorithms/Implementation/the_grid_search.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/the_grid_search.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/the_grid_search.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def check_inner_arr(G, P, C, c, r): for line, g in enumerate(G): for pos in range(C): if g[pos] != P[0][0]: continue if g[pos: pos + c] == P[0]: for i in range(r): if P[i] != G[line + i][pos: pos + c]: ...
22.956989
57
0.395785
c2011432f0786bdde06f7c0ba0bdb56c35ed5c86
87
py
Python
Liter.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
from Liter_Client import Client Client(host='frp.drelf.cn').start() # Client().start()
21.75
35
0.735632
c219b23bcc73af845ea15483082b877204945ef1
1,724
py
Python
src/lcdoc/mkdocs/custom_dir/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
src/lcdoc/mkdocs/custom_dir/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
src/lcdoc/mkdocs/custom_dir/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
from mkdocs.config import config_options from lcdoc.mkdocs.tools import MDPlugin, app from lcdoc.tools import dirname, exists, os, project link = 'docs/lcd' d_assets_mkdocs_theme = '/assets/mkdocs/lcd' def add_cust_dir_link(): to = project.root() + '/docs/lcd' if exists(to): return app.info('custom ...
32.528302
99
0.643852
a07367f7084189dcfb68a741c6f80d3483d27585
5,406
py
Python
research/cv/CGAN/src/model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/CGAN/src/model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/CGAN/src/model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., 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 law or agreed to...
38.070423
91
0.578061
2666b072fe591661bbe187e595168d90443421cf
4,308
py
Python
benwaonline/gateways/entity_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/gateways/entity_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/gateways/entity_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
import os from typing import List from benwaonline import mappers, assemblers from benwaonline.gateways import Gateway, Parameter from benwaonline.oauth import TokenAuth from benwaonline.query import EntityQuery API_URL = os.getenv('API_URL') Entity = 'Entity' Response = 'requests.Response' def single(l: list): ...
33.65625
113
0.632776
267725cea32cb58d401f9e93cd87967dddc69bb7
4,039
py
Python
analyst/index.py
fanghongliang/Analysis
f96e6568062becf410afc694305b817b0134a674
[ "MIT" ]
null
null
null
analyst/index.py
fanghongliang/Analysis
f96e6568062becf410afc694305b817b0134a674
[ "MIT" ]
null
null
null
analyst/index.py
fanghongliang/Analysis
f96e6568062becf410afc694305b817b0134a674
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import datetime # 导入气象资料 df_ferrara = pd.read_csv('WeatherData/ferrara_270615.csv') df_milano = pd.read_csv('WeatherData/milano_270615.csv') df_mantova = pd.read_csv('WeatherData/mantova_270615.csv') df_ravenna = pd.read_csv('WeatherData/ravenna_270615.csv') df_torino = pd.read_c...
26.926667
104
0.611042
398bca3aadcc0de781ffcfef09040022260c4f75
264
py
Python
Code/BBearEditor/Engine/Python/BBPythonSetup.py
xiaoxianrouzhiyou/BBearEditor
0f1b779d87c297661f9a1e66d0613df43f5fe46b
[ "MIT" ]
26
2021-06-30T02:19:30.000Z
2021-07-23T08:38:46.000Z
Code/BBearEditor/Engine/Python/BBPythonSetup.py
lishangdian/BBearEditor-2.0
1f4b463ef756ed36cc15d10abae822efc400c4d7
[ "MIT" ]
null
null
null
Code/BBearEditor/Engine/Python/BBPythonSetup.py
lishangdian/BBearEditor-2.0
1f4b463ef756ed36cc15d10abae822efc400c4d7
[ "MIT" ]
3
2021-09-01T08:19:30.000Z
2021-12-28T19:06:40.000Z
from distutils.core import * setup( name = "BBearPythonModule", # Packed file name version = "1.0", ext_modules = [Extension("BBPythonModule", ["BBPythonModule.c"])] # module name and its code )
44
106
0.534091
4b4e61a9008335dacc69c2b8d38d9690c126b941
597
py
Python
tests/etl/epic2op/etl_client.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
tests/etl/epic2op/etl_client.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
tests/etl/epic2op/etl_client.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import asyncio import json import datetime as dt import logging import etl.io_config.server_protocol as protocol alert_dns = '127.0.0.1' alert_server_port = protocol.ALERT_SERVER_PORT async def etl_client(message, loop): reader, writer = await asyncio.open_connection(alert_dns, alert_server_port, loop=loop) await...
24.875
89
0.762144
4b9df57b9268cd7cda3a4d26050fbc7f493ba3a9
2,492
py
Python
v501_502/python/linreg502.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
2
2019-12-10T10:25:11.000Z
2021-01-26T13:59:40.000Z
v501_502/python/linreg502.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
null
null
null
v501_502/python/linreg502.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
1
2020-12-06T21:24:58.000Z
2020-12-06T21:24:58.000Z
import numpy as np from uncertainties import ufloat from scipy import optimize import matplotlib.pyplot as plt from scipy.stats import sem import uncertainties.unumpy as unp D1, I1, I2 = np.genfromtxt("python/502werte.txt", unpack=True) # B Feld berechnen reversed_I1 = np.fliplr([I1])[0] reversed_I2 = np.fliplr([I2])[...
32.363636
92
0.644462
8a0f6359c0fa7941fa6d8a56c35fc670a0dc1795
33,337
py
Python
HackTon/cupp/cupp.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
2
2021-02-10T16:17:28.000Z
2021-03-20T15:25:21.000Z
cupp.py
trickytech99/instacrack
d96e5b5fc08e456ad795a009cdb0b3369211bda0
[ "MIT" ]
null
null
null
cupp.py
trickytech99/instacrack
d96e5b5fc08e456ad795a009cdb0b3369211bda0
[ "MIT" ]
1
2020-06-19T13:22:21.000Z
2020-06-19T13:22:21.000Z
#!/usr/bin/python3 # # [Program] # # CUPP # Common User Passwords Profiler # # [Author] # # Muris Kurgas aka j0rgan # j0rgan [at] remote-exploit [dot] org # http://www.remote-exploit.org # http://www.azuzi.me # # [License] # # This program is free software; you can redistribute it and/or modify # it under th...
30.8962
124
0.527282
8a62eea8fa1a4bb832a9f5ab483d2350bdfff36a
520
py
Python
frappe-bench/apps/erpnext/erpnext/hotels/doctype/hotel_room_package/hotel_room_package.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/hotels/doctype/hotel_room_package/hotel_room_package.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hotels/doctype/hotel_room_package/hotel_room_package.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class HotelRoomPackage(Document): def validate(self): if not self.item: ...
24.761905
68
0.701923
6a6f382d1e59bcacfbde4c5574a5bec150e4b4f0
410
py
Python
dash/migrations/0007_dossier_montant_public.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
dash/migrations/0007_dossier_montant_public.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
dash/migrations/0007_dossier_montant_public.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-29 15:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dash', '0006_auto_20210326_1606'), ] operations = [ migrations.AddField( model_name='dossier', name='montant_public'...
21.578947
70
0.607317
0abc8d07dfe14b20f5b61edc9524b68b48155455
1,169
py
Python
Endpräsentation/Python-Skripte/FM.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
Endpräsentation/Python-Skripte/FM.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
Endpräsentation/Python-Skripte/FM.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
# (c) Tom Gaimann, 2020 # Zusammensetzung eines frequenzmodulierten Signals # Ref: https://gist.github.com/fedden/d06cd490fcceab83952619311556044a import numpy as np import matplotlib.pyplot as plt plt.rcParams.update({'font.size': 22}) f_modulator = 4 # Frequenz der Nachrichten Welle f_carrier = 40 # Frequenz der ...
25.977778
71
0.72284
0af5516c3d72f5f62d0f007bb847032675d47206
476
py
Python
algorithms/ar-shsrt/python3/shell_sort.py
NuclearCactus/FOSSALGO
eb66f3bdcd6c42c66e8fc7110a32ac021596ca66
[ "MIT" ]
59
2018-09-11T17:40:25.000Z
2022-03-03T14:40:39.000Z
algorithms/ar-shsrt/python3/shell_sort.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
468
2018-08-28T17:04:29.000Z
2021-12-03T15:16:34.000Z
algorithms/ar-shsrt/python3/shell_sort.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
253
2018-08-28T17:08:51.000Z
2021-11-01T12:30:39.000Z
def shellSort(arr): n = len(arr) # Rearrange elements at each n/2, n/4, n/8, ... gaps gap = n//2 while gap > 0: for i in range(gap,n): temp = arr[i] j = i while j >= gap and arr[j-gap] >temp: arr[j] = arr[j-gap] j -= gap ...
22.666667
56
0.439076
7c268bc3ca56e954a9f8d298c9e674960db089b2
4,013
py
Python
official/recommend/wide_and_deep_multitable/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/wide_and_deep_multitable/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/wide_and_deep_multitable/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 Huawei Technologies Co., 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 law or agreed to...
41.371134
134
0.66758
866c5c8ad5eb3894cb2c7662807db12d83ed63a5
1,979
py
Python
python/coursera_python/WESLEYAN/week4/test/ph_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week4/test/ph_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week4/test/ph_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# -phones.py *- coding: utf-8 -*- """ Version 2 -- show phones so we can see that the other functions work """ phones = [['Jerry Seinfeld', '(212) 344-3784'], ['Cosmo Kramer', '(212) 559-8185']] name_pos = 0 phone_pos = 1 phone_header = [ 'Name', 'Phone Number'] def delete_phone(): print("Deleting") ...
23.282353
69
0.546235
d4db7fb267ed9e687279535562934c928cdc8829
3,629
py
Python
Python/TestPela.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/TestPela.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/TestPela.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
1
2020-08-16T00:11:55.000Z
2020-08-16T00:11:55.000Z
# TestPela.py # ================================================================================ # BOOST SOFTWARE LICENSE # # Copyright 2020 BitWise Laboratories Inc. # Original Author.......Jim Waschura # Contact...............info@bitwiselabs.com # # Permission is hereby granted, free of charge, to any person or orga...
35.930693
82
0.603748
d4e093e8a8a1ba2baf27be25d663609ff63992c3
1,924
py
Python
bach_code/helpers.py
glasperfan/thesis
aead2dfb8052afbff4d05203a0be5b0b7ef69462
[ "Apache-2.0" ]
5
2015-12-08T21:47:41.000Z
2020-10-28T12:39:08.000Z
bach_code/helpers.py
glasperfan/thesis
aead2dfb8052afbff4d05203a0be5b0b7ef69462
[ "Apache-2.0" ]
null
null
null
bach_code/helpers.py
glasperfan/thesis
aead2dfb8052afbff4d05203a0be5b0b7ef69462
[ "Apache-2.0" ]
1
2020-10-28T12:39:09.000Z
2020-10-28T12:39:09.000Z
######### # ## File: helpers.py ## Author: Hugh Zabriskie (c) 2015 ## Description: Useful constants and functions for manipulating music21 objects. # ######### import os from music21 import * from ordered_set import OrderedSet ## CONSTANTS ## # The 4 voices (and Part IDs) in a Bach chorale PARTS = ['Soprano', 'Alto',...
20.688172
80
0.698545
d4f7d8a8dacb7a52b32e9375d137454a3dc0cea5
24,342
py
Python
model_zoo/ernie-3.0/run_qa.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-3.0/run_qa.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-3.0/run_qa.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licen...
42.855634
118
0.58549
be16798afeaed4d364160fd692f378c100a1321d
1,915
py
Python
scripts/editors/cat_compile_commands.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
14
2020-10-25T05:48:36.000Z
2021-09-20T02:46:20.000Z
scripts/editors/cat_compile_commands.py
DamieFC/fuchsia
f78a4a1326f4a4bb5834500918756173c01bab4f
[ "BSD-2-Clause" ]
1
2022-01-14T23:38:40.000Z
2022-01-14T23:38:40.000Z
scripts/editors/cat_compile_commands.py
DamieFC/fuchsia
f78a4a1326f4a4bb5834500918756173c01bab4f
[ "BSD-2-Clause" ]
4
2020-12-28T17:04:45.000Z
2022-03-12T03:20:44.000Z
#!/usr/bin/env python2.7 # Copyright 2018 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Logically concatenates given compile_commands.json files to stdout. Filenames of compile_commands.json files are provided as argu...
38.3
79
0.725326
07b9a8db5c982b68eec8925d94eef5a645927641
76
py
Python
etl/mappings/component_ids.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/mappings/component_ids.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/mappings/component_ids.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
component_ids = [ ( "fid", [ 'epic_id_1', 'epic_id_2' ]), ]
12.666667
32
0.447368
71ff2a717631b8f2ec281f61e79c419b673ca548
253
py
Python
funpmp/test_ev.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
funpmp/test_ev.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
funpmp/test_ev.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from ev import ev_cal def test_ev_cal(): pv, ac, ev = 1000, 2000, 1500 sv, spi, cv, cpi = ev_cal(pv, ac, ev) assert sv == 500 assert cv == -500 assert spi == 1.5 assert cpi == 0.75
19.461538
41
0.561265
9c1c663a427c0f907e3db2b6c33a4ebe2e3d09ee
4,088
py
Python
venv/lib/python3.7/site-packages/twilio/rest/api/v2010/account/balance.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
4
2020-11-13T02:31:25.000Z
2020-12-24T22:04:30.000Z
venv/lib/python3.7/site-packages/twilio/rest/api/v2010/account/balance.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
7
2020-06-03T19:08:42.000Z
2021-09-22T19:08:32.000Z
bot/lib/python3.7/site-packages/twilio/rest/api/v2010/account/balance.py
carlosrh18/DavinciBot
d73a6b7f68d7bab25d134d3f85c6b63a86c206c5
[ "MIT" ]
1
2020-06-03T19:22:39.000Z
2020-06-03T19:22:39.000Z
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import values from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource from twilio.base.page import Page class BalanceList(List...
27.253333
99
0.617417
92ea3c51d49e3cd231cf0517525dd827c96fcf90
35
py
Python
lib/python3.5/reprlib.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
1
2020-08-16T04:04:23.000Z
2020-08-16T04:04:23.000Z
lib/python3.5/reprlib.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
5
2020-06-05T18:53:24.000Z
2021-12-13T19:49:15.000Z
lib/python3.5/reprlib.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
/usr/local/lib/python3.5/reprlib.py
35
35
0.8
b9f5cf2c7f4ea0b69fd8fbe5338a69ace3db82d1
1,810
py
Python
Agent5_a_0_5_knots_512_d_0_02/reset_node_Agent6_rewards.py
schigeru/Bachelorarbeit_Code
261b2552221f768e7022abc60a4e5a7d2fedbbae
[ "MIT" ]
null
null
null
Agent5_a_0_5_knots_512_d_0_02/reset_node_Agent6_rewards.py
schigeru/Bachelorarbeit_Code
261b2552221f768e7022abc60a4e5a7d2fedbbae
[ "MIT" ]
null
null
null
Agent5_a_0_5_knots_512_d_0_02/reset_node_Agent6_rewards.py
schigeru/Bachelorarbeit_Code
261b2552221f768e7022abc60a4e5a7d2fedbbae
[ "MIT" ]
null
null
null
#!/usr/bin/env python import math import os import numpy as np import time import sys import copy import rospy import moveit_msgs.msg import geometry_msgs.msg import random import csv from sensor_msgs.msg import JointState from gazebo_msgs.msg import LinkStates from gazebo_msgs.msg import LinkState from std_msgs.msg i...
26.617647
76
0.720994
dbe6867097a8880e82ebf461e3b84a98fec5f6a9
993
py
Python
db.py
vasmedvedev/automation
98cdf5c577fc4dd57b2d9b7ccfd96e849394cc95
[ "MIT" ]
null
null
null
db.py
vasmedvedev/automation
98cdf5c577fc4dd57b2d9b7ccfd96e849394cc95
[ "MIT" ]
null
null
null
db.py
vasmedvedev/automation
98cdf5c577fc4dd57b2d9b7ccfd96e849394cc95
[ "MIT" ]
null
null
null
import psycopg2 import psycopg2.extras class db_connection(object): def __init__(self, config): """ Context manager managing connection to PostgreSQL :param config: parsed config file :type config: config.Config """ self.database = config.database self.user...
25.461538
85
0.60423
4c5cd9c93c5dabbf45ff5c4fc43e2a425e4a7fda
5,204
py
Python
crawler/FundCompanyCrawler.py
macroxu/FundAnalysis
bc94f271fae5df6971aae37b873b97973d25b1c8
[ "Apache-2.0" ]
null
null
null
crawler/FundCompanyCrawler.py
macroxu/FundAnalysis
bc94f271fae5df6971aae37b873b97973d25b1c8
[ "Apache-2.0" ]
null
null
null
crawler/FundCompanyCrawler.py
macroxu/FundAnalysis
bc94f271fae5df6971aae37b873b97973d25b1c8
[ "Apache-2.0" ]
null
null
null
# fund company crawlwer # get and save html to storage, # parse html and convert to json data, then save it in storage from urllib import request from utils.FileManager import FileManager import os import json from utils.LoggingConfig import _getLogger from bs4 import BeautifulSoup from bs4.element import Tag from ut...
34.236842
105
0.631822
fc37cda3631baad1afe50a27eb20d32ed3c16802
6,782
py
Python
sdks/python/container/license_scripts/pull_licenses_py.py
diegomez17/beam
29dea08c873abc75871674762e68fd5b29b8052b
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
2
2021-12-29T09:01:21.000Z
2022-02-26T14:32:16.000Z
sdks/python/container/license_scripts/pull_licenses_py.py
diegomez17/beam
29dea08c873abc75871674762e68fd5b29b8052b
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
4
2021-12-21T21:15:41.000Z
2022-02-15T19:21:28.000Z
sdks/python/container/license_scripts/pull_licenses_py.py
diegomez17/beam
29dea08c873abc75871674762e68fd5b29b8052b
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
17
2021-12-15T19:31:54.000Z
2022-01-31T18:54:23.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
33.91
106
0.680625
b908e1ab8353eb6412745cd13b132a39d75348ff
37,020
py
Python
Packs/SymantecDLP/Integrations/SymantecDLPV2/SymantecDLPV2.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/SymantecDLP/Integrations/SymantecDLPV2/SymantecDLPV2.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/SymantecDLP/Integrations/SymantecDLPV2/SymantecDLPV2.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa import dateparser import requests import traceback from typing import Dict, Any # Disable insecure warnings requests.packages.urllib3.disable_warnings() # pylin...
42.996516
120
0.663992
53cb25136b778958aede83b1e3fd8f55acc12296
897
py
Python
components/py_engine/tests/haas/HaaSEdu/python-apps/wifi/main.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/py_engine/tests/haas/HaaSEdu/python-apps/wifi/main.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/py_engine/tests/haas/HaaSEdu/python-apps/wifi/main.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : ConnectWifi.py @Description: file description @Date : 2021/04/22 14:48:16 @Author : guoliang.wgl @version : 1.0 ''' import network import utime as time import sys net = network.NetWorkClient() connected = net.getStatus() ...
20.860465
64
0.594203
53e70cac40afa6ed61662d1c8527ac335881ff68
191
py
Python
lib/patch.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
292
2015-05-13T07:33:24.000Z
2022-03-08T07:25:48.000Z
lib/patch.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
4
2015-07-27T02:56:45.000Z
2021-07-18T04:47:26.000Z
lib/patch.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
58
2015-05-13T08:16:35.000Z
2021-03-05T08:47:16.000Z
#!/usr/bin/env python # coding:utf-8 from __future__ import unicode_literals import sys py_ver = sys.version_info.major if py_ver == 2: reload(sys) sys.setdefaultencoding("utf-8")
15.916667
39
0.727749
4ad66e1a41c9fdfdcd4f172bace61b19a7bd4ed6
6,279
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_11_Webscraping/09_sammle_alle_links_einer_website/09_sammle_alle_links_einer_website_versuch_2.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_11_Webscraping/09_sammle_alle_links_einer_website/09_sammle_alle_links_einer_website_versuch_2.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_11_Webscraping/09_sammle_alle_links_einer_website/09_sammle_alle_links_einer_website_versuch_2.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 09_sammle_alle_links_einer_website.py # Dieses Script soll eine beliebige Webseite nach links in allen Unterseiten der Webseite suchen # und in einem File übersichtlich speichern import requests, bs4, os, logging, re logging.basicConfig(level=logging.ERROR, format='%(asctime)s - %(levelname)s - %(message)s') os.chd...
41.309211
97
0.581781
db5440a4705f600940db2ed507f7fc8d467f42eb
59
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 18/18.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
50-Python-Exercises/Exercises/Exercise 18/18.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
50-Python-Exercises/Exercises/Exercise 18/18.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
d = {"Name": "John", "Surname": "Smith"} print(d["Smith"])
19.666667
40
0.542373
5307487867da31ae9445cf45a18914144f253ff5
2,170
py
Python
research/cv/AVA_cifar/src/optimizer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/AVA_cifar/src/optimizer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/AVA_cifar/src/optimizer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., 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 law or agreed to...
40.943396
118
0.671889
a3edfcf920bffa6431b3fd3a5e87cd7c3b4da3de
1,129
py
Python
2018/finals/re-drm/validator/test_validator_driver.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/finals/re-drm/validator/test_validator_driver.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/finals/re-drm/validator/test_validator_driver.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
31.361111
111
0.74845
603ee6cef7c3c8c0c7541013a78a6c075d7feafa
1,761
py
Python
showcase1/com/aaron/objectexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
showcase1/com/aaron/objectexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
showcase1/com/aaron/objectexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """面向对象""" __author__="Aaron.qiu" class Person(object): birthday = "2017-10-11" # class variable shared by all instances static variable def __init__(self,name,age): """构造函数""" self.__name = name # instance variable unique to each instance self.__age = age ...
22.0125
84
0.597388
6053c9aa6e40f26f3d2166b03935cfd2cfd20e52
1,593
py
Python
haas_lib_bundles/python/libraries/neo_pixel_matrix/neoPixelMatrix.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/neo_pixel_matrix/neoPixelMatrix.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/neo_pixel_matrix/neoPixelMatrix.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import neopixel import framebuf class NeoPixelMatrix: def __init__(self, pin, width, hight, linedir): self.width = width self.height = hight self.linedir = linedir self.buffer = bytearray(self.width * self.height * 3) fb = framebuf.FrameBuffer( self.buffer, self...
34.630435
86
0.527935
60cadcd3fbb315b57ce33b41e2d296c6ea2a7589
550
py
Python
pylvm2/pylvm/ioutilities.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
1
2015-08-02T09:53:18.000Z
2015-08-02T09:53:18.000Z
pylvm2/pylvm/ioutilities.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
null
null
null
pylvm2/pylvm/ioutilities.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
2
2018-03-21T04:59:50.000Z
2019-12-03T15:54:17.000Z
import os, sys import select import subprocess def process_call(command): return process_call_argv(command, None) def process_call2(command, argv): if argv: return process_call_argv([command, argv]) else: return process_call_argv([command]) def process_call_argv(argv): process = subprocess.Popen(argv, stdo...
25
81
0.743636
60feab530d905eb8a2b5c021617b30f99669ef25
863
py
Python
docs/2018.8.1replace.py
xyu6/seeedwiki
daeec763e606e62aeae87fc3e458228b15d531ff
[ "MIT" ]
null
null
null
docs/2018.8.1replace.py
xyu6/seeedwiki
daeec763e606e62aeae87fc3e458228b15d531ff
[ "MIT" ]
null
null
null
docs/2018.8.1replace.py
xyu6/seeedwiki
daeec763e606e62aeae87fc3e458228b15d531ff
[ "MIT" ]
null
null
null
#!/usr/bin/python #coding:utf-8 import os import re import string import linecache import shutil #Get file name from given directory directoryPath = os.getcwd() #directoryPath2 = os.getcwd() + '\\New' file_extension = ".md" if __name__ == '__main__': for fileName in os.listdir(directoryPath): if(fileName...
33.192308
127
0.600232
717cf5bfa663c3c9f5aa5b459efabea8c206c71b
221
py
Python
project/services/admin.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/services/admin.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/services/admin.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from project import db from project.models import Settings def upsert_settings(): result = Settings.query.first() if result is None: result = Settings() db.session.add(result) return result
18.416667
35
0.678733
71e0925787e7c4cae75d7a37036f2a34ed72b2c9
1,110
py
Python
Contrib-Inspur/openbmc/poky/bitbake/lib/toaster/toastergui/templatetags/project_url_tag.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/bitbake/lib/toaster/toastergui/templatetags/project_url_tag.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/bitbake/lib/toaster/toastergui/templatetags/project_url_tag.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # SPDX-License-Identifier: GPL-2.0-only # from django import template from django.core.urlresolvers import reverse register = template.Library() def project_url(parser, token): """ Create a URL for a project's main page; for non-default projects, this is the configuration page; for the default proj...
28.461538
67
0.652252
71e698abbddbf8492d05f692ae44477393c10552
600
py
Python
pacman-arch/test/pacman/tests/replace104.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/replace104.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/replace104.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Sysupgrade with multiple replaces" sdep = pmpkg("common-dep", "1.1-1") self.addpkg2db("sync", sdep) for i in range(3): sp = pmpkg("split%d" % i, "2.0-1") sp.depends = ["common-dep"] sp.replaces = ["notsplit"] self.addpkg2db("sync", sp) ldep = pmpkg("common-dep") self.addpkg2db("local", ldep) ...
23.076923
54
0.676667
1c0c79d106f927db737d080e3099a99893be871b
3,592
py
Python
simple-tensorflow-demo/3.neural network/tf_3rd_3_test.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-tensorflow-demo/3.neural network/tf_3rd_3_test.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-tensorflow-demo/3.neural network/tf_3rd_3_test.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt ## 参数 # 学习率, 太小则每次optimizer变化很小, 学习速度慢; 太大则可能导致过度学习, 最终结果不准确 learning_rate = 0.01 # 隐藏层深度 training_epochs = 2000 # 打印的节点层 display_step = 50 ## 构造训练数据 ## numpy.asarray将list/turple转成矩阵 train_X = np.asarray([3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9....
29.68595
160
0.641147
c793613a13b7eb33cf88c04012bdcc8792125a21
322
py
Python
Algorithms/Implementation/Prisoner.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/Prisoner.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/Prisoner.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 T = int(raw_input()) for _ in xrange(T): N, M, S = map(int, raw_input().split()) mod = M % N S = S + mod - 1 if S > N: S = S - N if S == 0: S = N ''' #大数循环直接时间爆炸 for i in xrange(mod): if S == N: S = 0 S += i ''' print ...
14.636364
43
0.378882
c7cbc9189c86730789c2bc0967e7ec4b4edb426c
3,233
py
Python
Tests/Marketplace/upload_git_snapshot.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Tests/Marketplace/upload_git_snapshot.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Tests/Marketplace/upload_git_snapshot.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import logging import os import argparse from Tests.Marketplace.marketplace_services import init_storage_client from Tests.scripts.utils.log_util import install_logging def upload_git_snapshot(git_snapshot_path, pack_name, branch_name, pack_version, storage_bucket, repo_name, git_org): try: git_snapshot_...
44.287671
117
0.692546
c7cd37897c2556f56f59ab2853cd87b2a3ad479c
11,057
py
Python
rulebased-algo/epuck_collector/rulebasedAlgo.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
rulebased-algo/epuck_collector/rulebasedAlgo.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
rulebased-algo/epuck_collector/rulebasedAlgo.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jul 2 22:25:22 2021 @author: Bjarne Gerdes """ import numpy as np class CollectorLogik: def __init__(self, rewards=[1,-1.5,2.5], sector_weights= [2,1,4,-1,-1], sensitivity_factor = 3, min_velocity = 2, min_action =...
39.630824
110
0.607127
1be60835d030b4b5b05264fc3142f326cdc6fc27
4,522
py
Python
myspiders/spider_hr/cmbchina_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
myspiders/spider_hr/cmbchina_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
myspiders/spider_hr/cmbchina_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from myspiders.ruia import JsonField, AttrField, Item, Spider from urllib.parse import urlencode, urlparse from config import CONFIG, Target, Job import random import demjson import re import os ''' AIResumeCount: 0 ActivityGID: null ActivityTitle: "" ApprovedBy: "" ApprovedComment: "请明确数字的包含关系,重新提交审批" ApprovedOn: "20...
26.916667
185
0.727554
1be8d9d555c5eca9edd4d071dc190f1551a8b90a
468
py
Python
01_class/property.py
wuyueCreator/python-test
6072ac9264a257c89925469238c14fff3bda5630
[ "MIT" ]
1
2019-03-25T03:44:54.000Z
2019-03-25T03:44:54.000Z
01_class/property.py
wuyueCreator/python-test
6072ac9264a257c89925469238c14fff3bda5630
[ "MIT" ]
null
null
null
01_class/property.py
wuyueCreator/python-test
6072ac9264a257c89925469238c14fff3bda5630
[ "MIT" ]
null
null
null
class Person2: def __init__(self, first_name): self.first_name = first_name # Getter function @property def first_name(self): return self._first_name @first_name.setter def first_name(self, value): if not isinstance(value, str): raise TypeError('Expected a s...
23.4
54
0.647436
40dca06ad65e85f28cf0b7bd1334f414e145f5b5
320
py
Python
Website/backend/database/Queries/Indexe.py
nachgeradelt/nachgeradelt
d45ed6b3c9088d58cdd315e26b932b5da8b5f130
[ "MIT" ]
3
2018-06-16T12:49:20.000Z
2021-01-26T16:15:11.000Z
Website/backend/database/Queries/Indexe.py
nachgeradelt/nachgeradelt
d45ed6b3c9088d58cdd315e26b932b5da8b5f130
[ "MIT" ]
2
2019-11-01T09:36:31.000Z
2020-11-20T13:27:42.000Z
Website/backend/database/Queries/Indexe.py
nachgeradelt/nachgeradelt
d45ed6b3c9088d58cdd315e26b932b5da8b5f130
[ "MIT" ]
1
2019-04-23T06:46:45.000Z
2019-04-23T06:46:45.000Z
# -*- coding: utf-8 -*- ''' @author: iranox ''' """Create indexes on column tour_id and chronology of the table tour_waypoints""" Indexe = {} Indexe['tour_waypoints_index'] = "CREATE INDEX tour ON tour_waypoints (tour_id)" Indexe['tour_waypoints_chronology'] = "CREATE INDEX tour_chrono ON tour_waypoints (chronology)"
32
95
0.7375
905fa1ee75c8edf080354330fdc4d1bb69aea10c
39,177
py
Python
python_gui_tkinter/Tkinter/final_prog.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/final_prog.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/final_prog.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
''' GRID VIDEO SPLITTER APPLICATION The program is mend to take a source video file as input and split it into m*n grid format (the audio being preserved). It allows the user to choose the values of m and n and also the out put video format. It allows gives options to: trim the video - based on start time and...
34.824
307
0.679455
31368219025b305424c7b9e17b69109a2b57ff7d
3,790
py
Python
research/cv/PGAN/src/image_transform.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/PGAN/src/image_transform.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/PGAN/src/image_transform.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., 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 law or agreed to...
26.503497
92
0.561478