blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
133
path
stringlengths
2
333
src_encoding
stringclasses
30 values
length_bytes
int64
18
5.47M
score
float64
2.52
5.81
int_score
int64
3
5
detected_licenses
listlengths
0
67
license_type
stringclasses
2 values
text
stringlengths
12
5.47M
download_success
bool
1 class
041b3a2c4e7d17ffc09b3db2c64e0b289f125053
Python
mseroff/lesson2
/for_task1_2_3.py
UTF-8
1,662
4.3125
4
[]
no_license
#Задание 1 #Цикл #Создать список из десяти целых чисел. #Вывести на экран каждое число, увеличенное на 1. print('Задание 1:') list_of_numbers = [16,5,2,9,45] for i in list_of_numbers: print(i+1) #Задание 2 #Цикл #Ввести с клавиатуры строку. #Вывести эту же строку вертикально: по одному символу на строку консоли....
true
f203ca5d3caeffe8bdc57eff90eeb2db89d42fa7
Python
diego-guisosi/prototypes
/python/elapsed_time_parser.py
UTF-8
315
3.203125
3
[]
no_license
from datetime import datetime def make_parser(datetime_format): def parser(start_string, end_string): start_datetime = datetime.strptime(start_string, datetime_format) end_datetime = datetime.strptime(end_string, datetime_format) return end_datetime - start_datetime return parser
true
6e207f2fbfd21082164ebd9aaeaf66b956d56e64
Python
ohouens/2I013
/simulation/basiques/sol.py
UTF-8
948
3.546875
4
[]
no_license
from basiques.cube import Cube class Sol(Cube): """Classe héritant de la classe Cube, caractérisée par: -ses coordonnées: x, y, z -sa hauteur -sa largueur -sa longueur""" def __init__(self, x, y, z, larg, long,haut=1): """Constructeur de la classe Cube""" Cube._...
true
dfa80862b6f5a0fab6a4ca3ce4c6aace6ae6e8a6
Python
lmad13/dmc
/cycleR2MatrixElement.py
UTF-8
1,371
2.734375
3
[]
no_license
import os import time nWalkers=2000 nReps=10 nSteps=100 nDescSteps=25 nRepsDesc=25 count=0 starttime=time.time() timeRate=4.8E-6 #my rough estimate for nDescSteps in [10,100,200,500]: for nRepsDesc in [1,2]: for nReps in [1,2]: for nWalkers in [2000,2000]: count=count+1 ...
true
2397423e742ebea162c1235bb5e27613c09176fb
Python
feigaoxyz/python_gui_programming_cookbook_2nd_edition
/ch04/gui_pydoublevar_to_float_get.py
UTF-8
239
3.15625
3
[]
no_license
import tkinter as tk win = tk.Tk() double_data = tk.DoubleVar() print(double_data.get()) # default value double_data.set(2.4) print(type(double_data)) add_doubles = 1.22 + double_data.get() print(add_doubles) print(type(add_doubles))
true
a91b8264dde595d74e21498736989fa55b4e8aaf
Python
borntyping/jsonlog
/jsonlog/examples/error.py
UTF-8
183
2.78125
3
[ "MIT" ]
permissive
"""Tracebacks will be included in the output JSON.""" import jsonlog try: raise ValueError("Example exception") except ValueError: jsonlog.exception("Encountered an error")
true
edf344a8757fc6e3b5a1e129e074fa6915375fbf
Python
sacert/unit-test-example
/maths.py
UTF-8
198
3.3125
3
[]
no_license
def add_ten(x): if type(x) == str: x_num = int(x) result_num = x_num + 10 return str(result_num) elif x is None: return None else: return x + 10
true
73bf597937f9ce50cb6dc0bc9556f8ae38efd0e7
Python
lutris/gogdb
/gogdb/importer.py
UTF-8
1,922
2.6875
3
[]
no_license
from __future__ import print_function import json from urllib import urlencode from collections import defaultdict import requests from gogdb.store import GOGStore def fetch_gog_db(media_type='game', sort='date'): store = GOGStore() api_endpoint = "https://embed.gog.com/games/ajax/filtered" params = { ...
true
16dab477bdf3d96239b32044f4865b048e8285ac
Python
zengfanwei/demo
/Basics_test/batchAccessControlInfo.py
UTF-8
345
2.5625
3
[]
no_license
# coding=utf-8 from poco.drivers.unity3d import UnityPoco poco = UnityPoco() def accessControlInfo(start, spring, text=True): accessInfos = [] with poco.freeze() as frozen_poco: for item in frozen_poco(start).offspring(spring): if text: accessInfos.append(item.get_text()) else: accessInfos.append(i...
true
43d8c0713e97d97a82750fc9d781996acd3d79c7
Python
Mikbac/Machine-Learning-Algorithms
/Examples/Word2vec/predict.py
UTF-8
1,451
2.5625
3
[ "Apache-2.0" ]
permissive
# -*- coding: utf-8 -*- # Created by MikBac on 2020 from __future__ import division import collections import pickle import sys from gensim.models import Word2Vec from itertools import islice from SimpleNormalization import getNormalization def take(n, iterable): return list(islice(iterable, n)) def main(): m...
true
229a6be82da4748656aae78bb453132e7ccdeba6
Python
danutp/Utils-Product-Engineering
/src/nxp/sw/amp/pe/utils/generic/exceptions.py
UTF-8
6,856
3.171875
3
[]
no_license
"""Module containing automation framework specific exceptions""" __copyright__ = "Copyright 2021 NXP" import os class TagBasedInstallerError(Exception): """Base exception class for errors related to tag processing in automated (tag triggered) installers. Class might be extended with other necessary methods ...
true
4bfef8da6592c982ad9024b8313b43802323b69c
Python
benwatson528/advent-of-code-20
/tests/day13/test_shuttle_search.py
UTF-8
1,810
2.9375
3
[]
no_license
import os import re from pathlib import Path from main.day13.shuttle_search import solve_first_bus, solve_consecutive_bus def test_first_bus_simple(): time, bus_ids = read_part_one_input("data/test_input.txt") assert solve_first_bus(time, bus_ids) == 295 def test_first_bus_real(): time, bus_ids = read_...
true
0ba803ad61f8c46ef90b893cd791db25066d3443
Python
esiabri/analysesBackupOct2020
/mainFunctions/stimOnsetExtraction.py
UTF-8
5,126
2.78125
3
[]
no_license
import numpy as np import matplotlib.pyplot as plt from basicFunctions.filters import \ butter_lowpass_filter from copy import deepcopy # here we look at the signal from the photoDiode sensor to determine the stimOnset time # we also get the digital tags that are sent to the Intan; in case the number of detect...
true
66f9e3b8e0c8bc25aca0fc44d468cc27034f0852
Python
aquablue1/NatPortSelection
/src/DurationCDF.py
UTF-8
4,456
2.890625
3
[]
no_license
import matplotlib.pyplot as plt import math import statistics import numpy as np def five_m(data_pool): avg = statistics.mean(data_pool) print("Mean Value is %f." % avg) mid = statistics.median(data_pool) print("Median Value is %f." % mid) min_v = min(data_pool) print("Minumum Value is %f" %...
true
f299376d982157abbbb91f7b3999fe11e3c02092
Python
PeterWolf-tw/ESOE-CS101-2016
/homework01_B02610044.py
UTF-8
674
3.171875
3
[]
no_license
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> #撰寫作業1-1 #打開sample.txt TheOpenedText = open("./sample.txt","r") #將其改成人看的懂的文字 TheOpenedTextToRead = TheOpened.read() #列出要去掉的標點與數字 StringNotNeed = ["?","2",...
true
937c39bdfee88c188ca37d3d6a8078aeee12f946
Python
marty-p/isw-2019-lessons
/lezione04/error_handling.py
UTF-8
3,077
3.84375
4
[]
no_license
# -*- coding: utf-8 -*- """ Created on Wed Mar 27 10:12:37 2019 @author: Studente """ # take a number while True: try: x = int(input("please enter a number: ")) break except ValueError: print("no valid input") # take a number and divide while True: try: i...
true
e33d5711785c141d821183408fcd69830752bba1
Python
tanatyu12/AtCoder
/abc146/b.py
UTF-8
285
3.03125
3
[]
no_license
import sys input = sys.stdin.readline def main(): N = int(input()) S = input().rstrip() ans = [] for c in S: code = ord(c) + N if code > 90:code = 65 + (code-91) ans.append(chr(code)) print("".join(ans)) if __name__ == "__main__": main()
true
ba18599d13635c821726b3af61d6e872439449fb
Python
sonicfrog-z/python_practice
/10_decorator/decorator_demo5.py
UTF-8
720
3.4375
3
[]
no_license
import time class trace: def __init__(self, fname): self._fname = fname def __call__(self, func): def call_func(*args): with open(self._fname, 'a+') as fout: fout.write('{}\n'.format(time.strftime('%H:%M:%S'))) fout.write('call {}: {}\n'....
true
11cdd230d7805d01c78a4f6cd69c4cbc804fcc98
Python
bizwald/Python
/toolbox.py
UTF-8
2,502
3.4375
3
[]
no_license
# ------------------------------------------------------------------------------ # FileName: toolbox.py # Purpose: This python code contains user defined functions that are used # often enough to devote them to a toolbox that is included with # each python work session. Date of each addition is recorded in #...
true
c9f7a0e85bf3e42225b95277c372881d9bbe9e8e
Python
ZhaoYukai/BaiduImgSearch
/baiduImgSearch.py
UTF-8
3,400
2.6875
3
[]
no_license
# -*- coding:utf-8 -*- #推荐运行在MacOS或linux操作系统下面,Windows运行会遇到字符编码的问题尚未解决 #Python版本:2.7 #运行方法:在命令行中输入下列命令,同时确保机器中已经安装了python的requests模块 #如果尚未安装requests模块,则使用命令pip install -U requests进行安装 #python baiduImgSearch.py dog /Users/zhaoyukai/Python/baiduImgs/ 10 #参数说明: #(1)baiduImgSearch.py 这个是本文件的文件名 #(2)dog 这个是要搜索的关键字,可以是中文...
true
180183acbce85bf4ed0e2092812bab45f6fbc639
Python
sharonessilfie/Rock-Paper-Scissors
/Rock, Paper, Scissors.py
UTF-8
958
3.9375
4
[]
no_license
import random import math def play(): userinput = input("Select r for rock, p for paper, s for scissors: ") userinput = userinput.lower() options = ("r", "p", "s") if userinput in options: print("Great choice!") else: print("Invalid Input") computer = ra...
true
01ef45eb4ca404267149975a614849ce8632d58c
Python
hotelzululima/DROP
/modules/Quaternion.py
UTF-8
2,377
3.390625
3
[ "MIT" ]
permissive
# Devon Clark # Quaternion import math class Quaternion: scalar = 0 x = 0 y = 0 z = 0 def __init__(self, x, y, z, scalar=None): if scalar != None: self.scalar = scalar self.x = x self.y = y self.z = z else: ...
true
1f13255ad426e38effdfd368916300ce00e59cb7
Python
orchestor/Home-Assistant-1
/hue.py
UTF-8
1,131
2.8125
3
[]
no_license
#!/usr/bin/python import pyhue from random import randint import logging class Hue(object): bridge_ip = "192.168.1.166" bridge_user = "AB8orc63WWaI4-qI8KshwpTlTkPNZslmVNYKq6X2" def __init__(self): self.log = logging.getLogger(type(self).__name__) self.log.debug("Initiating Hue located at %s" % self.bridge_ip...
true
b4f55d75e343b210982a707066f9a641261274a4
Python
somia/impress
/impress/timeline.py
UTF-8
6,472
2.640625
3
[ "BSD-2-Clause" ]
permissive
from __future__ import absolute_import from bisect import bisect_left import json import sys from .config import log from .registry import interval_type class ModelSlot(object): def __init__(self, interval, model, items=None): """ @type interval: Interval @type model: module @type items: dict |...
true
16ea88823d56618d0be74f5705da16bc49d14efe
Python
anupam2505/Full_Insertion_sort
/Full_Insertion_Sort.py
UTF-8
796
3.390625
3
[]
no_license
#!/bin/python def insertionSort(ar): return "" m = input() ar = [int(i) for i in raw_input().strip().split()] def insertionSort(arr): n = len(arr)-1 a = arr[n] for y in range(n,0,-1): if (a < arr[y-1] ): ar[y] = ar[y-1] ...
true
b351634175987972694409b7579002c8c7e0e317
Python
ltjhappy/PythonCode
/Object01/strfun.py
UTF-8
397
4.15625
4
[]
no_license
class Dog(): def __init__(self,name): self.name = name # del 在实例被销毁时,自动被调用 def __del__(self): print("%s 被销毁了" % self.name) def __str__(self): return "我是小狗 %s" % self.name def eat(self): print("%s 在吃骨头" %self.name) # d1 是一个全局变量, 创建类实例 d1 = Dog("小黄狗") print(d1)
true
e81f0b4ed07143de4a5533dfcc07533488a34808
Python
Jiaqi-knight/ROM-OpInf-Combustion-2D
/step2c_project.py
UTF-8
5,431
3.125
3
[ "MIT" ]
permissive
# step2c_project.py """Project lifted, scaled snapshot training data to the subspace spanned by the columns of the POD basis V; compute velocity information for the projected snapshots; and save the projected data. Examples -------- # Project 10,000 preprocessed snapshots to a 24-dimensional subspace. $ python3 step2c...
true
897201068f8e6c21cd5d7891da890ca08c135f8b
Python
marcgwilson/bioinformatics1
/assignment5/q1/eulerian.py
UTF-8
3,804
3.671875
4
[]
no_license
#!/usr/bin/python import sys # Returns a dictionary of edges # key = starting node # value = list of terminal nodes def build_node_dict(data): nodes = {} for d in data: d = d.strip() if 'Output' in d: break else: node_data = d.split(' -> ') s = int(...
true
e059f7c9e8cfe10f640a62614a3fdf95ec895fad
Python
0Xerath0/SNL-compiler
/Syntax.py
UTF-8
4,603
2.796875
3
[]
no_license
from T_and_NT import T,NT import re symbols = list() # class Production: # def __init__(self, production:str) -> None: # self.right_expr = [] # production = production.split("::=") # self.left_expr = production[0].strip(" ") # for i in production[1].strip(" ").split("|"): # ...
true
2678688bbc63bf46ba8bb5bb9ab9874a363ab23a
Python
alexgaya/Twitch-bot
/bot.py
UTF-8
2,752
2.640625
3
[]
no_license
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time import json class TwitchBot: def __init__(self, username, password, target): self.username = username self.password = password self.target = target chrome_options = webdriver.ChromeOptions()...
true
8e233c9a1ffea4f38cf34d0cf7ccc16b5b93f122
Python
981377660LMT/algorithm-study
/19_数学/计算几何/线段/线段与圆相交.py
UTF-8
2,891
4.0625
4
[]
no_license
""" 情况一、两点都在圆内。不相交 情况二、一个点在圆内,一个点在圆外。相交 情况三、两个点都在圆外 设点p1和p2均在圆外,判断线段p1p2与圆是否相交的方法 1、求出直线p1p2的一般式方程 2、用距离公式判断圆心到直线p1p2的距离是否大于半径:距离大于半径,则不相交;距离小于等于半径,执行3 3、设圆心为o,使用余弦定理判断角op1p2和角op2p1是否都为锐角,都为锐角则相交,否则不相交。 """ from typing import Tuple Segment = Tuple[int, int, int, int] Circle = Tuple[int, int, int] ...
true
c0859d9a6a230975fe0161abed694e81dc672588
Python
xz1082/final_project
/tw991/measures_and_portfolio/portfoliofunction.py
UTF-8
1,977
3.125
3
[]
no_license
""" Creator: Tian Wang Contributor: Wenxi Lei, Sylvia Zhao """ from portfolioexception import * import pandas as pd import numpy as np import datetime def portfolio_checkinput(stock_ticker_list): """ check whether input is a list to initialize a portfolio instance """ if not isinstance(stock_ticke...
true
b47b4110231fd18f09769ec45399539ff612852f
Python
LeeWonHee5914/gitpractice
/예제11.py
UTF-8
213
3.765625
4
[]
no_license
a = [1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5] aSet = set(a) # a 리스트를 집합자료형으로 변환 b = list(aSet) # 집합자료형을 리스트 자료형으로 다시 변환 print(b) # [1,2,3,4,5] 출력
true
5dd75afa0706b9701e0bea3fe3129434abdd34c4
Python
ssudev/programmers
/level1/[1차] 다트게임/solution.py
UTF-8
1,153
2.640625
3
[]
no_license
def solution(dartResult): answer = 0 point_array = [0,0,0,0] round = 0 point = 0 for i in range(len(dartResult)): s = dartResult[i] if s.isdigit(): point = int(s) # 10 판단 if s == '0' and i != 0 and '1' == dartResult[i-1]:...
true
426fb67794b5f7ac6269fea7701bb749bba8492e
Python
jiangjinjinyxt/crack_leetcode
/P0043.py
UTF-8
1,971
3.703125
4
[]
no_license
""" problem 43: Multiply Strings https://leetcode.com/problems/multiply-strings/ solution: """ class Solution(object): def karatsuba(self, num1, num2): for idx, value in enumerate(num1): if value != '0': num1 = num1[idx:] break else: ...
true
238892461bf175d226237e25770d362dd71b510e
Python
MrHamdulay/csc3-capstone
/examples/data/Assignment_3/hllbra005/question4.py
UTF-8
525
3.890625
4
[]
no_license
start = eval(input("Enter the starting point N:\n")) end = eval(input("Enter the ending point M:\n")) print("The palindromic primes are:") for i in range (start+1, end): isPalidrome = False canPrint = True if str(i)[::-1] == str(i): isPalidrome = True for j in range (2,9999): ...
true
d1d1fdae8a9a5383aead09b6349ae342d99b0a20
Python
NateEag/advent-of-code-solutions
/2019/day-6/solution.py
UTF-8
4,558
3.625
4
[ "CC-BY-4.0" ]
permissive
#! /usr/bin/env python import sys class TreeNode: def __init__(self, data, parent=None): self.data = data self.parent = parent self.children = [] def add_child(self, child): self.children.append(child) child.set_parent(self) def set_parent(self, parent): ...
true
6dafb45e05ae9fc2028f36eb6c01f5aad3a79411
Python
Ayushshah2023/Covid19_peak_predictor
/Visualizations.py
UTF-8
5,741
2.703125
3
[ "Apache-2.0" ]
permissive
import pandas as pd import io import requests import pylab import matplotlib.pyplot as plt import csv from datetime import datetime import plotly.graph_objects as go def writeCategorical(df): with open('categorical.csv', 'w') as csvfile: filewriter = csv.writer(csvfile, delimiter=',') ...
true
ac6bd09c5fd5c9cc70ef97166ecd5ffda3e4decd
Python
menard-noe/LeetCode
/Palindrome Linked List.py
UTF-8
805
3.59375
4
[]
no_license
# Definition for singly-linked list. from collections import deque class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def isPalindrome(self, head: ListNode) -> bool: if not head: return True self.head = head ...
true
f4ac29c544a36fd33719fc8db4ba29c350fd8439
Python
h3shiri/nand2Tetris
/projects/10/JackLanguage.py
UTF-8
781
2.625
3
[]
no_license
#This file holds the Jack language so it can be used in our parser class JackTokens: #Keywords keywords = [ "int", "char", "boolean", "method", "function", "constructor", "void", "var", "static", "filed", "let", "do",...
true
95aeb72f4b0298e1c2bde2ad57eb41f81933c7a9
Python
jiaqiluo/sorting-alogrithm-analysis
/mergeSort.py
UTF-8
2,735
4.125
4
[ "MIT" ]
permissive
#======================================================================= # Author: Isai Damier # Title: Mergesort # Project: geekviewpoint # Package: algorithm.sorting # # Statement: # Given a disordered list of integers (or any other items), # rearrange the integers in natural order. # # Sample Input: [8,5,3,1...
true
92dbb9284ebce780f57e1eecc84a934ce598b7b1
Python
Jaeki/python_practice
/stackqueue.py
UTF-8
5,709
3.890625
4
[]
no_license
########## # HW6 ########## ############################################################################### # 1 Parenthesis matching ############################################################################### # (Version 1): manually created Stack() class Stack: def __init__(self): self.items = [] ...
true
9416cd6c8c1d6ff05aae35e2155eddaa4387c27c
Python
richzeng/asterisk
/tracking/tracker_out.py
UTF-8
1,581
3.234375
3
[]
no_license
from time import time from Queue import Empty, Full class TrackerOut(list): """Tracker data output """ def __init__(self, q): """Initializes a TrackerOut object :param multiprocessing.Queue q: A FIFO queue to communicate data across """ super(list, self).__init__() ...
true
466eaa08a3fbbda8f95494872ef9671af039913f
Python
ebushi/my_leetcode
/PlusOne.py
UTF-8
387
3.03125
3
[]
no_license
class Solution(object): def plusOne(self, digits): """ :type digits: List[int] :rtype: List[int] """ n = 0 for i in range(len(digits)): n = n + digits[-i-1] * 10**i n = n + 1 list_n = list(str(n)) for index, item in enumerate(lis...
true
cf86a63252982f401878bcb7960fe9c86ce3e0c9
Python
fColangelo/MORA-Multi-Objective-Routing-Algorithm
/routing_algorithms/ear.py
UTF-8
8,267
3.25
3
[ "MIT" ]
permissive
# -*- coding: utf-8 -*- from .dijkstra import dijkstra from .dijkstra import calculate_path from .dijkstra import set_spt import time def get_degree(node): """ This function returns the degree of the node. Arguments: node {Node} -- Node. Returns: [int] -- Node degree, i.e. nu...
true
04091c018ab95ca35185daf2a4cd2b51d048790f
Python
LonelyTItor/instrument_parsing
/edge/edge_extract.py
UTF-8
5,140
2.75
3
[]
no_license
import cv2 import numpy as np from datetime import datetime from matplotlib import pyplot import os empty_img = np.zeros([512, 512]) def return_value(event, x, y, flags, param): # inintial number value = 0 ix = 0 iy = 0 if event == cv2.EVENT_LBUTTONDOWN: ix = x iy = y valu...
true
b588e69ea28a0a53d7bdd5e932edbd74b3f8e30b
Python
jungimyang/Python_Github
/6_for_gugudan.py
UTF-8
397
3.765625
4
[]
no_license
'''표준 입력으로 정수가 입력됩니다. 입력된 정수의 구구단을 출력하는 프로그램을 만드세요 (input에서 안내 문자열은 출력하지 않아야 합니다). 출력 형식은 숫자 * 숫자 = 숫자처럼 만들고 숫자와 *, = 사이는 공백을 한 칸 띄웁니다.''' n = int(input()) for i in range(1,10): print('{0} * {1} = {2}'.format(n,i,n*i))
true
abffd37ba2d407ab8273822eecf9488ae1082a33
Python
KeithLaiKB/py_try_grid_trade
/py_try_grid_trade_workspace1/binance_leveraged_tokens/test/module/main_get_tokeninfo.py
UTF-8
1,639
2.671875
3
[ "MIT" ]
permissive
# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. from collections import OrderedDict ######################################################## from client.MyClient import My...
true
822c36a24efce3ea4e7b5ab7d08fcf871df33cad
Python
tfiers/filmograph
/app/miner/themoviedb.py
UTF-8
5,864
2.953125
3
[]
no_license
import os from loggers import logger from urllib import urlencode from requests import get from collections import OrderedDict popularities = {} def get_api_response(path, params=None): """ Queries v3 of themoviedb.org's API for the resource at the given path, with the optional url params, and returns the r...
true
c762dbcf52651f167b6b9bf25da27da44c8b371e
Python
elainewlee/Exercise06
/wordcount.py
UTF-8
510
3.265625
3
[]
no_license
from sys import argv script, filename = argv #import string def count_words(filename): in_file = open(filename) read_file = in_file.read().lower() in_file.close() replace_file = read_file.replace(".", " ").replace(",", " "). replace("?", " ") word_list = replace_file.split() dictionary = {} ...
true
b84784c46b10698fa92a744532ba4068474edb98
Python
Metalmariox/ArkahmV2
/ArkhamHorrorV2/Investigator/InvestigatorDatabase.py
UTF-8
508
2.703125
3
[]
no_license
import sqlite3 import Investigator conn = sqlite3.connect(r'C:\Users\Gwen\PycharmProjects\ArkhamHorrorV2\Database\Arkham.db') c = conn.cursor() for key in c.execute("SELECT name FROM Investigators"): print(key) def selectInvestigator(pkey): pkey = (pkey,) c.execute('SELECT * FROM investigators WHERE key =...
true
a66e05dcdc34735c6b3c4a5cef8367882fbec05b
Python
sshyeri/TIL
/Algorithm/day8_problmes/작업순서.py
UTF-8
1,374
2.734375
3
[]
no_license
import sys sys.stdin = open("작업순서_input.txt") for tc in range(1, 11): v, e = map(int, input().split()) s = list(map(int,input().split())) post = [[] for i in range(v+1)] for i in range(0,len(s)-1,2): post[s[i+1]] += [s[i]] degree = [len(post[i]) for i in range(v+1)] result = [] sdg ...
true
722575b63e4dbe027e2d0ea9d7c96b9962922ecd
Python
nestyme/Hypothesis_Check
/Solution.py
UTF-8
3,134
3.09375
3
[]
no_license
import pandas as pd import numpy as np import scipy as sp import scipy.stats as st data = pd.read_csv('log.txt', sep=",", header=None) data.columns=['Number','Request Type','Response time'] data['Number'] = data.index data_Type = data['Request Type'].unique() print 'Различные типы запросов:',data_Type # Выведе...
true
c60e5be0e460e66262f3e89b23c962517ff178ee
Python
castle8080/wcrawl
/src/rook/common/container.py
UTF-8
2,745
3.203125
3
[]
no_license
""" A basic dependency injection container. A dependency injection container is just an object with parameterless methods which return dependencies. The singleton annotation can be used on a method so that only 1 instance is returned. The ContainerBuilder creates a class and instance from multiple dependency provide...
true
a44647402e45fb0d006f33ec26cf8fa6e04b3fa8
Python
SergioO21/holberton-system_engineering-devops
/0x15-api/1-export_to_CSV.py
UTF-8
840
3.078125
3
[]
no_license
#!/usr/bin/python3 """ Export data in the CSV format """ import csv import requests from sys import argv def main(): """ Returns information about his/her TODO list progress """ url = "https://jsonplaceholder.typicode.com" TOTAL_NUMBER_OF_TASKS = requests.get( "{}/todos?userId={}".format(url, ar...
true
3ea639993beac4e7d712e3ee822f1c5cc07b917f
Python
harryvu141043/vuhuyhoaison-fundamental-C4E26
/ss1/homework/c2.py
UTF-8
258
3.359375
3
[]
no_license
import math r=int(input("Mời bạn nhập bán kính:")) print(" ","Diện tích đường tròn tròn là:") s=math.pi*(r**2) print(" s=",s) print("Cảm ơn vì đã sử dụng chương trình") print(" Tạm biệt và hẹn gặp lại.")
true
555a4a8f4f6106e978fc4796a5b39b0217a859c7
Python
ericbgarnick/AOC
/y2019/repeat/day11/robot.py
UTF-8
3,955
3.515625
4
[]
no_license
from collections import defaultdict from typing import Tuple class UnknownOperation(Exception): def __init__(self, operation): super().__init__(operation) class Canvas: BLACK_VALUE = 0 WHITE_VALUE = 1 PAINT = {BLACK_VALUE: " ", WHITE_VALUE: "#"} def __init__(self, origin_color: int = B...
true
8ba8acfd8f0889372100dff79cbe9aefa5a42022
Python
rmukkamala/ds-alg
/task3/max_and_min.py
UTF-8
1,504
4.625
5
[]
no_license
""" Max and Min in a Unsorted Array In this problem, we will look for smallest and largest integer from a list of unsorted integers. The code should run in O(n) time. Do not use Python's inbuilt functions to find min and max. Bonus Challenge: Is it possible to find the max and min in a single traversal? Sorting usual...
true
ad077027dc0260b770f141fd41a2da6ea2354df5
Python
ElielLaynes/Curso_Python3_Mundo1_Fundamentos
/Mundo1_Fundamentos/Aula07_Operadores_Aritméticos/Anotações_e_Exemplos.py
UTF-8
2,283
4.6875
5
[]
no_license
''' > OPERADORES ARITMÉTICOS ( + ) = Adiçào ( ** ) = Potência ( - ) = Subtração ( // ) = Divisão Inteira ( * ) = Multiplcação ( % ) = resto da DivisãO ( / ) = Divisão >> EXEMPLOS: 5 + 2 == 7 5 ** 2 == 25 5 - 2 == 3 5 //...
true
aa4d3fddd3ba22cd1de233bc900f2458e36d27c0
Python
c-d-cotton/python-data-func
/datagen_func.py
UTF-8
1,025
2.921875
3
[]
no_license
#!/usr/bin/env python3 import os from pathlib import Path import sys __projectdir__ = Path(os.path.dirname(os.path.realpath(__file__)) + '/') def addcategoricalinteraction(df, categorical, variables, concat = False): """ If have categorical usstate and variable rainfall, outputs 50 variables. Each variabl...
true
332dfb1d22b89217d676a2d66516833113b67b5e
Python
glitch003/photoboo
/camera/photoboo/PhotoBooPutFacesOnSnowmen.py
UTF-8
11,425
2.9375
3
[]
no_license
from .FaceCropper import FaceCropper import cv2 import numpy as np from collections import OrderedDict import traceback class PhotoBooPutFacesOnSnowmen(object): face_cropper = None snowman_face_coords = [ [229, 556, 433, 722], [570, 339, 744, 492] ] def __init__(self, preloaded_predic...
true
863c6ed09aa6cc6d7305f05e2db23329dc8b3f78
Python
liyu10000/leetcode
/sort/#1030.py
UTF-8
717
3.109375
3
[]
no_license
from collections import defaultdict class Solution: def allCellsDistOrder(self, R: int, C: int, r0: int, c0: int) -> List[List[int]]: d = defaultdict(list) for i in range(R): for j in range(C): d[abs(i-r0)+abs(j-c0)].append([i,j]) res = [] keys = list(d.ke...
true
ab26f1a9927535804e489e3c7a607c80b259a462
Python
Qt7mira/Mira_Work
/com/lenovo/stage2/re_words.py
UTF-8
898
2.703125
3
[]
no_license
""" 找到三个分类中相同的词,存储为重复词表 re_words """ import pymysql import jieba jieba.load_userdict("data/tb_dictionary.txt") def read_from_mysql(table_name): list = [] conn = pymysql.connect(host='60.205.171.171', user='root', password='123456', database='lenovo_ml_test') cur = conn.cursor() cur.execute("SELECT t....
true
c5d10ccb6542b0edccd98ae67a175c9385fccc42
Python
plutmercury/OpenEduProject
/w03/task_w03e14.py
UTF-8
1,015
4.1875
4
[]
no_license
# В форме интернет-магазина пользователю нужно ввести свой номер телефона. # Номер телефона состоит из 10 цифр, однако некоторые пользователи вводят его # в формате +7145236789, некоторые - 8123456789, а некоторые и вовсе вводят # только 9 цифр (без первой) 123456789. # # Вам необходимо привести номер к стандарту +7123...
true
c29b74f173bb322fb779dfe4d2b4e9da63ec1ce3
Python
LucasRibeiroRJBR/Quadros_Magicos
/main.py
UTF-8
2,347
3.203125
3
[ "MIT" ]
permissive
import tkinter.ttk as ttk from tkinter import * from ttkthemes import ThemedStyle def adivinhar(): """ -> Analisa cada Checkbutton selecionado e soma à própria variável "resul" Após fazer o cálculo, configura o texto do placar para o número obtido :return: não há """ resul = 0 if v_verde....
true
501818db683a17912322e8cdbf949e57e2dc691c
Python
syth0le/HSE.Python
/HSE WEEK 9/ОТЛАДКа.py
UTF-8
2,273
3.15625
3
[]
no_license
from sys import stdin from copy import deepcopy class MatrixError(BaseException): def __init__(self, matrix, other): self.matrix1 = matrix self.matrix2 = other class Matrix: def __init__(self, lists): self.lists = deepcopy(lists) def __str__(self): strRep = "" am...
true
5769d3e532c7f7b132f77b1b136cd15ac06b8578
Python
jlebunetel/pycad
/examples/example_2.py
UTF-8
1,002
2.59375
3
[ "MIT" ]
permissive
#!/usr/bin/env python # -*- coding: utf-8 -*- from pycad.main import * dessin = Drawing() calque_kiki = Layer(name='kiki', linetype='AXES', color=2) dessin.add_layer(calque_kiki) print(dessin) point = Point(layer=calque_kiki, x=9.5, y=4) dessin.add_entity(point) for i in range(10): for j in range(5): ...
true
b4fce8cb1f4682ac174a82f67a99f86bfd9ad69c
Python
kurtisrodrigue/AST497
/main.py
UTF-8
1,308
2.609375
3
[]
no_license
import json_parse from sklearn.model_selection import train_test_split import driver files = ['SDSS_DATA_ALL.json'] class_lims = [10000] if __name__ == '__main__': for i, file in enumerate(files): # x represents points, y represents labels tri_x, tri_y = json_parse.JSON_parse(file=file, binary=Fa...
true
079b81f4914fcddefd664d8cef1928100792de33
Python
EDA2021-1-SEC04-G05/Reto3-G05
/App/model.py
UTF-8
13,493
2.609375
3
[]
no_license
""" * Copyright 2020, Departamento de sistemas y Computación, * Universidad de Los Andes * * * Desarrolado para el curso ISIS1225 - Estructuras de Datos y Algoritmos * * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published b...
true
5c332e5ffe0af16fdbed2857870c0e9ac263f268
Python
Storiesbyharshit/Competetive-Coding
/GeeksforGeeks/Linked Lists/deletenohead.py
UTF-8
1,426
3.703125
4
[]
no_license
def deleteNode(curr_node): #code here if curr_node is None or curr_node.next is None: curr_node = None return curr_node.data = curr_node.next.data curr_node.next = curr_node.next.next def deleteNode(curr_node): #code here if curr_node: curr_node.data = curr_node...
true
7a598753b5a10fbbb637ea25f57cbf6d06a5a990
Python
0xcyber-sketch/ClipboardToWordFile
/Crossplatform/Sorting/sorting.py
UTF-8
1,459
4.03125
4
[]
no_license
#!/usr/bin/env python import re # Return true if input contains digit def hasNumber(inputString): return bool(re.search(r'\d+', inputString)) # Return true if input contains bullet def hasBullet(inputString): return bool(re.search(r'•', inputString)) def sorting(input): # Declare variables string ...
true
15b193aa7da3a3333261844d00d9f28857471f55
Python
b1tray3r/SmartGrazer
/imps/mutty/MutatorGeneral.py
UTF-8
735
2.640625
3
[ "BSD-3-Clause" ]
permissive
class MutatorGeneral(object): """ This is the base class for Mutators. All implemented mutators should implement the `mutate(element)` function. """ _config = {} def applyConfig(self, config): self._config = config def mutate(self, element): return element ...
true
d9259a06a864dc7fc0cef8dd7e103a700bbeac16
Python
grimjakub/Engeto-projekt-3
/projekt3.py
UTF-8
3,072
3.09375
3
[]
no_license
import requests import sys from bs4 import BeautifulSoup import csv import pandas as pd # url = "https://volby.cz/pls/ps2017nss/ps32?xjazyk=CZ&xkraj=12&xnumnuts=7103" # prostějov # nazev_csv = "vysledky_prostejov.csv" csv_tabulka = ["kod obce", "nazev obce", "voliči v seznamu", "vydané obálky", "platn...
true
43bf693141882344e27d5de1f5f969d02f326407
Python
PumucklOnTheAir/TestFramework
/util/router_online.py
UTF-8
2,967
2.578125
3
[]
no_license
from threading import Thread from router.router import Router, Mode from log.loggersetup import LoggerSetup from subprocess import Popen, PIPE from network.remote_system import RemoteSystemJob from util.dhclient import Dhclient import logging class RouterOnline(Thread): """ Checks if the given Router is onlin...
true
77a586cb33f9882bace2e0af3c8a46cbfadedc94
Python
tzs930/rlkit
/rlkit/core/timer.py
UTF-8
1,403
3
3
[ "MIT" ]
permissive
import time from collections import defaultdict class Timer: def __init__(self, return_global_times=False): self.stamps = None self.epoch_start_time = None self.global_start_time = time.time() self._return_global_times = return_global_times self.reset() def reset(sel...
true
348bbce83c2564dfd26186796532583ddb87ef26
Python
sathya-sai/Python
/DataStructure/bst.py
UTF-8
142
3.15625
3
[]
no_license
from DataStructure.utility import number_of_binary_trees n = int(input("enter your no: ")) result = number_of_binary_trees(n) print(result)
true
6c84caedc01fe2ac065aaa5de5d41e3f9160dde0
Python
LaVieEnRoux/karsten
/BottomRoughness/fvcom31_variable_z0.py
UTF-8
1,893
2.90625
3
[]
no_license
import netCDF4 as nc import numpy as np # parameters kappa = 0.4 min_d = 3 def variableBR(cd, H, grid, outfile): ''' Create a variable bottom roughness data file given user inputs of the cd and H parameters, and the grid on which we're building the file. Creates an nc file readable by FVCOM. ''' ...
true
7da75a24a7b45880470f1dec78a3339214c109c0
Python
ErofeevAA/taskPython
/5/B.py
UTF-8
1,134
3.890625
4
[]
no_license
class MyVector: def __init__(self, x, y): self._x = x self._y = y @property def x(self): return self._x @property def y(self): return self._y def __add__(self, other): return MyVector(self.x + other.x, self.y + other.y) def __sub__(self, other): ...
true
e4d516d1bbd991ce0c097614ac8ce2c6009a54ed
Python
nagygeri97/zernike-moments
/src/fourier/FourierMomentsMonochrome.py
UTF-8
5,213
2.53125
3
[]
no_license
import numpy as np from numba import * from PIL import Image from ImageManipulation import * from Transformations import * from RadialPolynomials import * from fourier.TransformationsFourier import * class FourierMomentsMonochrome: """ Class for storing the Image, and the Transformation needed for calculating the ...
true
2a9dd67cc27b55d0bad7281d2c032a257522bf3d
Python
alexandremerched/learning-python
/PythonExercicios/World 3/ex115/interface/__init__.py
UTF-8
858
3.609375
4
[]
no_license
def cabeçalho(txt): print('-' * 40) print(f'{txt:^40}') print('-' * 40) def menu(): print('-'*40) print('\033[;33m1\033[m - \033[;36mVer pessoas cadastradas\033[m') print('\033[;33m2\033[m - \033[;36mCadastrar nova Pessoa\033[m') print('\033[;33m3\033[m - \033[;36mSair do Sistema\033[m') ...
true
2f88d6c1e0747d47ba62d398187f99f3fa55b36f
Python
abdoukarim/codechallenge
/utils.py
UTF-8
2,652
3
3
[]
no_license
# coding=utf-8 import ast import hashlib import logging import binascii from Crypto.Cipher import PKCS1_OAEP from Crypto import Random from Crypto.PublicKey import RSA import base64 log = logging.getLogger(__name__) def generate_keys(): # RSA modulus length must be a multiple of 256 and >= 1024 modulus_lengt...
true
9c4b7eaad941e53903b9fc93ad8467cabb43ffb8
Python
madhavanshubh/Python-Analysis-of-NESTLEIND
/Python Code/16 Graphs for Adjusted Far Month.py
UTF-8
2,889
2.859375
3
[]
no_license
import numpy as np import pandas as pd import matplotlib.pyplot as plt import pandas_datareader as web df = pd.read_excel('T_bill_2019_2020_Daily.xlsx',index_col=0) df_Weekly = df.resample('W-FRI').ffill().apply(lambda x: x*365/52).shift(-1) df_Monthly = df.resample('M').ffill().apply(lambda x: x*365/12) ...
true
ad4fe30e74a308710d07672e5f372db54ffee797
Python
KisaZP/SergeyKisil
/6.py
UTF-8
273
3.8125
4
[]
no_license
import math AB = input("Длина первого катета: ") AC = input("Длина второго катета: ") AB = float(AB) AC = float(AC) BC = math.sqrt(AB ** 2 + AC ** 2) S = (AB * AC) / 2 print('Гипотенуза:', BC) print('Площадь', S)
true
6d67328c773edf790621bb4b501c35a9a50788d4
Python
Hooliganka/test_tander
/basebd.py
UTF-8
2,346
2.953125
3
[]
no_license
import sqlite3 import os def my_bd(database_name): if not os.path.exists(database_name): conn = sqlite3.connect(database_name) c = conn.cursor() # Создание таблицы c.execute('''CREATE TABLE IF NOT EXISTS `regions` (`id` INTEGER PRIMARY KEY AUTOINCREMENT,`name` VARCHAR)''') ...
true
c54ccc28eb9d6e8628def2b099d62728e2a03136
Python
RoboR/DAGs
/dag_generator/mutations.py
UTF-8
19,972
3
3
[]
no_license
from itertools import chain from random import shuffle, choice, randint from string import ascii_lowercase, ascii_uppercase, digits from graph import Graph from utils import DEBUG class MutateGraph: """ This class performs mutations to a graph """ def __generate_file_name(self): """ G...
true
d6c613a8c876078104cb26c6d6b8635755f88260
Python
kartikeya-t/OpenCV
/4_savevideo.py
UTF-8
609
2.765625
3
[]
no_license
import cv2 as cv import numpy as np capture=cv.VideoCapture(0) fourcc=cv.VideoWriter_fourcc(*'XVID') #no idea what this is. used to save output video out=cv.VideoWriter('output.avi', fourcc, 20.0, (640,480)) #saving output while True: isTrue, frame=capture.read() gray=cv.cvtColor(frame, cv.COLOR_...
true
b4b63aebd0069af46e90ebfa7c28b3cc17564f11
Python
Fudeveloper/cezone
/python3/多进程/8-进程池.py
UTF-8
351
2.65625
3
[]
no_license
from multiprocessing import Pool import time import random import os def worker(num): for i in range(3): print('pid=={0} num={1}'.format(os.getpid(),num)) pool = Pool(3) for i in range(10): # 非堵塞添加任务 pool.apply_async(worker,(i,)) # # 堵塞添加任务 # pool.apply(worker,(i,)) pool.close() pool.join...
true
a83b950ef5278aa5fd31319240cf645475aade88
Python
Ingenieria-Computacion-Grafica/NOMBRE
/Camacho Bryan/esferas_luces.py
UTF-8
3,852
2.90625
3
[]
no_license
#!/usr/bin/python # -*- coding: utf-8 -*- # Librerías del programa import sys import math from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * class Luz(object): encendida = True colores = [(1, 1, 1, 1), (0, 0, 0, 1), (1, 1, 0, 1), (0, 1, 0, 1), (1, 0, 1, 1)] def __init__(self, luz_...
true
9bd7b67f5e3c3a2e181c063586cf092613caf7cf
Python
hkbtotw/Join_Table_CVM_Sales_Population_Data_StoreLocationAnalysis
/Integrate_Merge_MinMax_RR_GRP_rev2.py
UTF-8
1,672
2.59375
3
[]
no_license
import pandas as pd from datetime import datetime, date, timedelta import numpy as np import os from Text_PreProcessing import * import pyodbc start_datetime = datetime.now() print (start_datetime,'execute') todayStr=date.today().strftime('%Y-%m-%d') nowStr=datetime.today().strftime('%Y-%m-%d %H:%M:%S') print("TodayS...
true
8c17b717cfe14c5271b11e3158aa1eb209b27dd8
Python
hybae430/Baekjoon
/10157.py
UTF-8
560
2.609375
3
[]
no_license
# 자리 배정 (IM 대비문제 9) dy = [-1, 0, 1, 0] dx = [0, 1, 0, -1] C, R = map(int, input().split()) K = int(input()) if K > C * R: print(0) else: hall = [[0] * C for _ in range(R)] d, y, x, idx = 0, R - 1, 0, 1 while True: hall[y][x] = idx if idx == K: break idx += 1 ...
true
3b61c48280d79f38e5f0bebf600bbc6fb0bd10a8
Python
vishnu1729/Data-Structures-and-Algorithms
/sorting/mergeSort.py
UTF-8
1,469
4.4375
4
[]
no_license
"""function definitions to perform merge sort on the given list. The merge function takes care of the actual sorting and merges the sublists. The mergeSort function takes care of the recursion mechanism used to sort the left and right halves of the given list""" """Author: Vishnu Muralidharan""" # function to ...
true
c1912bcd923da6910e8e179b30605200648811df
Python
HildaMonisha/PythonScripts
/Test.py
UTF-8
442
4.28125
4
[]
no_license
print("Hello") b=10 a="hello" print("{} {}".format("value is",b)) print(type(a)) print("value is", b) #List abc = [1,2,"monisha",4,5] print(abc) abc.append("hilda") print(abc) print("string is %s" % a) print("value is %d" % b) #Tuple c = (1,5,8,"aim") print(c) #Dictionary xyz = {"a":1, "b":2, 1:"hello"} print(xyz) ...
true
a06409901258b3cb8108dc14042404fe05ad0e69
Python
dr-dos-ok/Code_Jam_Webscraper
/solutions_python/Problem_143/802.py
UTF-8
1,263
3.265625
3
[]
no_license
#!/usr/bin/env python # -*- coding: utf-8 -*- # # cj_2014_r1b_b.py # # Created by b00 # # # global - test cases test_cases = 0 lottery = {} import sys def reader(filename): global test_cases with open(filename, 'r') as data_file: test_cases = int(data_file.readline()) data = True test_case...
true
4859f32badb73fc5838a19fba73b2a40eef85d8d
Python
cloudy/rpi-robot
/code/motion.py
UTF-8
1,867
3.3125
3
[]
no_license
import RPi.GPIO as GPIO from math import sqrt import threading GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) class Motor(object): def __init__(self, forwardpin, backwardpin, speedpin, invertdir = False): print("Initializing Motor... \n\tFORWARD: %d, BACKWARD: %d, SPEED: %d" % ...
true
ab5635cadad4f422b16def007f761b92e420c1f2
Python
dongsik93/HomeStudy
/Question/BOJ/boj-2164.py
UTF-8
164
2.9375
3
[]
no_license
from collections import deque n = int(input()) card = deque(range(1,n+1)) arr = [] while(card): arr.append(card.popleft()) card.rotate(-1) print(arr[-1])
true
3cf830699c3f7f3e6b9ff246b12dd8ac4b4c78c9
Python
shiki7/Atcoder
/nomura2020/B.py
UTF-8
120
3.34375
3
[]
no_license
s = input() t = '' for i in range(0, len(s)): if s[i] == '?': t += 'D' else: t += s[i] print(t)
true
bdaf22e0069561199ce00d6008a27a5b97574553
Python
rlowrance/re-local-linear
/total_size.py
UTF-8
1,997
3.296875
3
[ "MIT" ]
permissive
'''determine total size in bytes of a python object ref: code.activestate.com/recipes/577504/ ''' from __future__ import print_function from sys import getsizeof, stderr from itertools import chain from collections import deque try: from reprlib import repr except ImportError: pass def total_size(o, handler...
true
72abc6c957f3e59d799bc778c531f2ec1d1fec6b
Python
rkosakov/PB-Python
/conditional_statements_advanced_lab/working_hours.py
UTF-8
290
3.828125
4
[]
no_license
time = int(input()) day = input() is_working_day = day == 'Monday' or day == 'Tuesday' or day == 'Wednesday' or day == 'Thursday' or day == 'Friday' or day == 'Saturday' is_working_time = 10 <= time <= 18 if is_working_time and is_working_day: print('open') else: print('closed')
true
f4d72fb160ed99c60b35f25569f9e6712c3fe294
Python
mikus94/daftcode2019
/gagatek_mikolaj_notifai/zadanie1/db.py
UTF-8
3,610
2.8125
3
[]
no_license
# coding: utf-8 """ Zadanie rekrutacyjne Daftcode, Notif.AI. Zadanie 1. Autor: Mikolaj Gagatek email: mikolaj.gagatek@gmail.com """ import sqlite3 import click from flask import current_app, g from flask.cli import with_appcontext TABLE_NAME = 'tasks' def init_app(app): app.teardown_appcontext(close_db) app...
true
88679fa8b4b3d4586da6e54f6f095736e4b45cc2
Python
linyihan2013/Toys
/query-express/main.py
UTF-8
4,019
3.03125
3
[]
no_license
import urllib.request import urllib.parse import urllib.response import json from html.parser import HTMLParser # Strip HTML tags from strings class MLStripper(HTMLParser): def __init__(self): self.reset() self.strict = False self.convert_charrefs= True self.fed = [] def handl...
true