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
bf05b7ae2b7990bc479aedee1522fc5f0242929a
Python
michael-kwan/llanalysis
/src/util.py
UTF-8
1,469
2.84375
3
[]
no_license
from bs4 import BeautifulSoup as bs import requests import json import numpy as np import csv def login(): logindetails = json.load(open('./logindata.json')) payload = {'login': 'Login'} payload['username'] = logindetails['learnedleague']['username'] payload['password'] = logindetails['learnedleague'][...
true
c8861acc1784603d97c7c2132840f988f831df39
Python
pwdemars/projecteuler
/josh/Extras/permute.py
UTF-8
373
2.796875
3
[]
no_license
def permute(num): ay = False for a in num[-2::-1]: for b in num[:num.index(a):-1]: if b > a: k = a ay = True break if ay: break for a in num[:num.index(k):-1]: if a > k: l = a break elif a == b: print('uhoh') exit() num[num.index(l)] = k num[num.index(k)] = l num[num.index...
true
e17fe7c9f4a4a525cfa6ff91f6bb09d9290c44ee
Python
raulgranja/Python-Course
/PythonExercicios/ex108/moeda.py
UTF-8
1,029
3.890625
4
[ "MIT" ]
permissive
def moeda(valor=0, moeda='R$'): return f'{moeda} {valor:.2f}'.replace('.', ',') def aumentar(preco, fator, moeda=''): """ --> Aumenta em uma dada porcentagem o valor inserido. :param preco: valor a ser aumentado :param fator: fator de aumento, em porcentagem :return: valor aumentado """ ...
true
524a6f4f3bb8b48c35f3b813d870cb5e8bd0aacd
Python
Arunken/PythonScripts
/1_Basics/3_NumericFunctions.py
UTF-8
428
4.03125
4
[ "Apache-2.0" ]
permissive
# Return the character of the given ASCII value a = chr(67) # Returns the ASCII value of the character b = ord('A') # Returns the absolute value fo the number c = abs(-64) # Returns both the quotient and remainder q,r = divmod(16,5) # returns the rounded number a = round(4.33444333,5) # max five digits aft...
true
1415c8842ced3de45288f9323abe916665e71664
Python
geparada/my_src
/Tools/Extract_seq_from_genome.py
UTF-8
716
2.734375
3
[]
no_license
import sys import csv from Bio import SeqIO from Bio.Seq import Seq from Bio.Alphabet import generic_dna Genome = {} def Genomictabulator(fasta): print >> sys.stderr, "Cargando genoma en la memoria RAM ...", f = open(fasta) for chrfa in SeqIO.parse(f, "fasta"): Genome[chrfa.id] = chrfa.seq print >> sys....
true
b9cd30d633ba689257ee29490803588208f098c5
Python
kinpoll/python-
/mysqlpython.py
UTF-8
1,095
2.671875
3
[]
no_license
# coding=utf-8 ''' mysql交互类\n env:python 3.5\n mysql\n ''' from pymysql import * class Mysqlpython: def __init__(self, database, host='localhost', user='root', password='123456', charset='utf8', port=3306): self.database = database self.host = host self.user = user self.password = ...
true
c6ef7bfc4e10af8e5ac9f626970f3594fced377c
Python
wooseok-song/Algorithm-Python-
/2021 summer/0622/미로탐색(2178).py
UTF-8
646
2.921875
3
[]
no_license
import sys from collections import deque input=sys.stdin.readline n,m=map(int,input().split()) s=[list(map(int,input().strip())) for _ in range(n)] visited=[[0]*m for _ in range(n)] ds=[(1,0),(0,1),(-1,0),(0,-1)] def bfs(start): queue=deque() queue.append(start) while queue: x,y=queue.popleft...
true
35b1756cae1a2aba342df54716c487e4b3308dd2
Python
lzbotha/aruba-tech-assessment
/aplocation/geolocation.py
UTF-8
940
2.71875
3
[]
no_license
import json import requests _API_URL = 'https://www.googleapis.com/geolocation/v1/geolocate' import logging logger = logging.getLogger(__name__) def make_geolocation_request(wifi_access_points, api_key): """ Makes an HTTP POST request to the Google's Geolocation service using a given list of wifi acces...
true
bf3139c4acd964484612282baabc22ce30841a20
Python
varunkumar032/lockdown-leetcode
/april2020/solutions/day28_FirstUniqueNumber.py
UTF-8
2,779
3.9375
4
[]
no_license
# You have a queue of integers, you need to retrieve the first unique integer in the queue. # Implement the FirstUnique class: # FirstUnique(int[] nums) Initializes the object with the numbers in the queue. # int showFirstUnique() returns the value of the first unique integer of the queue, and returns -1 if there is ...
true
8016f675d1e2456b35c801491e0ec14aa68c103d
Python
rajat046/Python-programs
/product.py
UTF-8
2,122
4.375
4
[]
no_license
def product(): """calculate 10 rs""" print("Denomination of notes(10)") user_input_10 = input("how many notes do you have?") value_of_10 = 10 product_of_10 = int(value_of_10) * int(user_input_10) print(product_of_10) """calculate 20 rs""" print("Denomination of notes(20)"...
true
a027911a44513a97818915ce34c652a3b448f81b
Python
gofflab/biolib
/src/seqlib/RIPDiff.py
UTF-8
1,097
2.578125
3
[]
no_license
''' Created on May 13, 2010 Normalizes and compares RIP vs Control (IgG or total RNA) to identify segments of transcripts that are preferrentially enriched in RIP @author: lgoff ''' ################## #Imports ################## import intervallib import seqstats ################## #Classes ################## cla...
true
f71198960414c533a8772396c60af34e7f70f15a
Python
svakhnyuk/opsworks-scrapper
/target/pipelines.py
UTF-8
941
2.65625
3
[]
no_license
import target.model from configparser import ConfigParser class TargetPipeline(object): store_mongo_db = True storage_config = {} def __init__(self): parser = ConfigParser() parser.read('scrapy.cfg') if 'mongo' in self.storage_config and self.storage_config['mongo'].lower() == "f...
true
38f9fbda123dd808b19001973544ffd52a18cec3
Python
iv-kis/my_python_course
/l4_iterables/switch_via_dict.py
UTF-8
1,406
3.578125
4
[]
no_license
''' Created on 5 авг. 2018 г. @author: ivkis ''' class ServiceException(Exception): pass class SystemServiceException(ServiceException): pass class BusinessServiceException(ServiceException): pass #Аналог Switch-Case с помощью словаря: def case1(): raise BusinessServiceException('Business Service Ex...
true
4f69e144508144e4f693ba8aa02d9c451091af78
Python
Vin129/IWTL_Python
/Python/DataStructure/AVLTree.py
UTF-8
5,691
3.828125
4
[]
no_license
class BTreeNode: Value = None; Left = None; Right = None; Depth = None; def __init__(self,v:int): self.Value = v; class AVLTree: Node = None def Find(self,X:int) -> BTreeNode: self.__find(self.Node,X) def __find(self,Node:BTreeNode,X:int): if Node == None : ...
true
22947c1a129d865af8496d942dc0d500e7bd6c72
Python
chhzh123/CCF-CSP
/201403-1.py
UTF-8
189
3.09375
3
[]
no_license
n = int(input()) a = list(map(int,input().split())) cnt = [0] * 2005 for i in range(n): cnt[a[i]] += 1 res = 0 for i in range(1001): if cnt[i] == 1 and cnt[-i] == 1: res += 1 print(res)
true
a8ab3fb96bc691176c44606786f6d2cd7e59e9eb
Python
MYMSSENDOG/leetcodes
/116. Populating Next Right Pointers in Each Node.py
UTF-8
626
2.984375
3
[]
no_license
from bNode_lib import * class Solution: def connect(self, root: Node) -> Node: if not root: return None q = [root] while q: for i in range(len(q)-1): if i != len(q) - 1: q[i].next = q[i+1] q[-1].next = None ...
true
49be9d1e488769ba0a508da49437fa95c4d4fff4
Python
reconstruir/bes
/lib/bes/archive/archive_xz.py
UTF-8
652
2.75
3
[ "Apache-2.0" ]
permissive
#-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- from .archive_tar import archive_tar class archive_xz(archive_tar): 'XZ archive.' # https://tukaani.org/xz/xz-file-format.txt _MAGIC = b'\xfd\x37\x7a\x58\x5a\x00' def __init__(self, filename): super(archive_xz, ...
true
375006d36078c6505dd22aa569c19efbeaf5b33b
Python
ezeev/install
/app-config/WF-PCInstaller/plugin_dir/telegraf/telegraf_utils.py
UTF-8
1,782
2.625
3
[ "Apache-2.0" ]
permissive
import re import common.install_utils as utils import common.config as config def get_sample_config(name): """ using telegraf command to generate the plugin config Input: name string: the name of plugin Output: returns the output of the following command telegraf ...
true
2dc7b69ad434a7840ae37cca5e1d7daa0681c4d4
Python
svv1viktoria1soverda1mail1ru/Python
/zajecia18_10/wystompienieliczby.py
UTF-8
107
3.34375
3
[]
no_license
lista=[1,2,3,4,5,6,7,8,9] print "Podaj liczbe naturalna:" a = input("Twoja liczba :") print lista.index(a)
true
41067ff880df82cc61da1b238030312af9cf8263
Python
akshayav1996/codekata
/sum.py
UTF-8
112
3.65625
4
[]
no_license
n=int(input("enter a range")) i=1 sum=0 while(i<=n): sum=sum+i i=i+1 print(sum)
true
cb32b57d815077c037d45f9206586b8d0487a477
Python
WaleedRanaC/Prog-Fund-1
/Lab 3/Payroll.py
UTF-8
233
3.9375
4
[]
no_license
#input hours #input wage #if hours>40: #apply overtime hours *1.5 #print wage hours=int(input("How many hours did you work this week? ")) wage=10*hours if hours>40: wage=(hours*1.5)+wage print("Your wage is: $",wage)
true
8636a17afd3a3c5e1f4821786b72e2eaecfc6271
Python
Nauman3S/SmartArmBand
/testCodes/Blink.py
UTF-8
165
2.6875
3
[]
no_license
import mraa import time led=mraa.Gpio(13) led.dir(mraa.DIR_OUT) while True: led.write(1) time.sleep(0.2) led.write(0.2) time.sleep(0.2)
true
01f8cb9a53e383c831ae9c942e5ccb21e33a6eaf
Python
lingyunfx/MayaCameraRetime
/MayaCameraRetime/retime_mod.py
UTF-8
4,613
3.171875
3
[]
no_license
from operator import itemgetter import pymel.core as pm def get_frames_range(): st_time = int(pm.playbackOptions(query=1, minTime=1)) ed_time = int(pm.playbackOptions(query=1, maxTime=1)) return range(st_time, ed_time + 1) def none_type_method(*args): values, current_frame, _ = args return value...
true
f0f8e1494d89bab0bf1e40e5c2e92b4537dd5774
Python
lucasagerber/whatiwant
/mimic.py
UTF-8
5,435
3.109375
3
[]
no_license
""" whatiwant.mimic Lucas A. Gerber """ import random #, goslate from .tools import verbosePrint, numGen class Mimic(object): def __init__(self, filename, verbose=True): self.filename = filename self.mimic_dict = make_mimic_dict(filename) self.text = mimic_lecture(self.get_...
true
73ac2bb9c64d93211fb2a8e471ed54881f43172c
Python
Yihan-Dai/Leetcode-Python
/TwoSum/Twosum1.py
UTF-8
1,288
4.15625
4
[]
no_license
'''Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your returned answers (both index1 and index2) are not zero-based....
true
495a1970fbbb0f45fee2e9124b48902c40cc1891
Python
wjlight/euler
/tools/docker/deepwalk-demo.py
UTF-8
3,076
2.515625
3
[ "Apache-2.0", "BSD-3-Clause", "Zlib", "BSD-2-Clause-Views", "BSD-2-Clause" ]
permissive
# -*- coding: utf-8 -*- import tensorflow as tf import tf_euler class DeepWalk(tf_euler.layers.Layer): def __init__(self, node_type, edge_type, max_id, dim, num_negs=8, walk_len=3, left_win_size=1, right_win_size=1): super(DeepWalk, self).__init__() self.node_type = node_type self.edge_...
true
3724a8ed0e9fe54eb01a3bc59e1ea11934cecb12
Python
mastersjw/ninjagame
/flask_app/models/user.py
UTF-8
2,863
2.71875
3
[]
no_license
from flask_app.config.mysqlconnection import connectToMySQL from flask_bcrypt import Bcrypt from flask_app import app from flask import flash import re EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$') bcrypt = Bcrypt(app) schema = "ninjaGame" class User: def __init__(self,data): ...
true
62cf32de7acd8cebdc6751a50a394ee037e59668
Python
JeremieBou/stix_generator
/make_nodes.py
UTF-8
1,484
2.6875
3
[ "MIT" ]
permissive
import sys import os from stix_generator.util import Util as u from stix_generator.stix_generator import Generator def main(): """ example script for STIX Generator makes random stix data using the generator with set peramaters in the script """ path = os.path.realpath('static/data') +...
true
c3bb790691ca6a1a0a0a894d3acb7e66d21374e7
Python
HariData20/SmartCalculator
/Problems/Dating App/main.py
UTF-8
1,179
3.5
4
[]
no_license
"""potential_dates = [{"name": "Julia", "gender": "female", "age": 29, "hobbies": ["jogging", "music"], "city": "Hamburg"}, {"name": "Sasha", "gender": "male", "age": 18, "hobbies": ["rock music", "art"], "city": "Berlin"}, {"name": "Maria", ...
true
0c3bf2f33d12e7245f4fabc5b686c5f1b5930630
Python
sumale/myChain
/input.py
UTF-8
1,757
2.8125
3
[]
no_license
from ecdsa import VerifyingKey from flask import jsonify class Input: def __init__(self, block_number=-1, auth_number=-1, output_number=-1, signature=None): self._blockNumber = block_number self._authNumber = auth_number self._outputNumber = output_number self._signature = signatu...
true
2a5faaf2474b0091c2696927af1c72316bedb473
Python
WestonSF/ArcGISDataToolkit
/MapDocumentSummary.py
UTF-8
10,003
2.671875
3
[ "Apache-2.0" ]
permissive
#------------------------------------------------------------- # Name: Map Document Summary # Purpose: Creates a summary for each map document in a folder, stating description information about the map document # as well as a list of data sources used in the map documents. # Author: Shaun Westo...
true
6cb391dd57cd0a13d219ccc68901fb5c14b59a78
Python
Sushobhan04/dltools
/dltools/networks.py
UTF-8
4,504
3.125
3
[]
no_license
import torch import torch.nn as nn class LinearNormRelu(nn.Module): """Linear (fully connected) Normalization Relu block """ def __init__(self, inc, outc, relu=True, norm=None): super().__init__() self.linear = nn.Linear(inc, outc) self.relu = relu self.norm = norm ...
true
26bc4d759ce5edbbad52abbd5a0c393d4ce3df95
Python
dr-dos-ok/Code_Jam_Webscraper
/solutions_python/Problem_148/173.py
UTF-8
630
3.078125
3
[]
no_license
#!/usr/bin/python3 -t def read_ints(): return map(int, input().split()) def solve(): n, x = read_ints() sizes = list(reversed(sorted(read_ints()))) result = 0 cur = [] for s in sizes: ok = False for i, c in enumerate(cur): if s <= c: del cur[i] ...
true
723fcb524c9783cb5348a7c5753db4111f8fb967
Python
shaking54/Face-Recognition-Core
/Core/SVM-Classifier/SVM.py
UTF-8
842
2.578125
3
[]
no_license
import face_recognition from sklearn import svm import numpy as np import os import pickle encodings = [] names =[] path_dataset= 'D:/pythonProjects/dataset/' train_dir = os.listdir(path_dataset) print(train_dir) for person in train_dir: pix =os.listdir(path_dataset+person) for person_img in pix: face ...
true
aa5d9c125787b32c0b2248c64e1a6572fb9ded15
Python
ondiekisteven/timetable
/studentdb.py
UTF-8
4,377
3.171875
3
[]
no_license
import pymysql import db """ @param program : Name of the program you want to search its units @return : returns units for the program otherwise returns null """ def getunitsbycourse(program): dbase = db.connect() cursor = dbase.cursor() cursor.execute("select * from coursedetails where coursename = '%s'" % program...
true
e9d4cd4fa366d1cf5506e6a8ddafcd2a7567b14f
Python
rootAvish/TRIXIE
/OrganiseMyMusic/helpers.py
UTF-8
1,055
2.640625
3
[ "MIT" ]
permissive
import shutil, os def move(source, id3tags): # print id3tags #print "moving to " + + "from " + source if (os.path.exists(source)): if 'ALBUM' in id3tags and 'ARTIST' in id3tags: s = id3tags['ARTIST'] + "\\"+ id3tags['ALBUM'] dest = "".join(x for x in s if x....
true
5120ef62404650c4e90437c5ab7debfd679db2c7
Python
yephm/SSMN
/SSMN_rev02/model_training/plot_discussion.py
UTF-8
10,370
2.8125
3
[]
no_license
import matplotlib.pyplot as plt import numpy as np import os color = ['#AC5BF8', '#B4E593', '#007FC8'] # purple, green, blue barcolor = '#B5A884' mark = ['o', 'v', 's', 'p', '*', 'h', '8', '.', '4', '^', '+', 'x', '1', '2'] # 实心圆,正三角,正方形,五角,星星,六角,八角,点,tri_right, 倒三角... # 都是实心的,需要设置edgecolor=..., facecolor='white' lin...
true
89e5cd9b1b2a23059a4f0372313ca32632275e2c
Python
nixonpj/leetcode
/3Sum Closest.py
UTF-8
1,124
3.6875
4
[]
no_license
""" Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each input would have exactly one solution. """ from typing import List from math import inf class Solution: def threeSumCloses...
true
553bb08d1ff8c28fef89d6189ba4e7308f0f1d87
Python
weronikazak/Penguin-Diner-Bot
/bot.py
UTF-8
5,818
2.78125
3
[]
no_license
import os import pyautogui import time import sys class PenguinDinterBot(): # ------------------ # INITIATE VARIABLES # ------------------ def __init__(self): ORDERS_PATH = os.getcwd() + "/orders" MEALS_PATH = os.getcwd() + "/meals" self.back_button = (750, 640) self.trash_bin = (550, 650) self.upgrade_...
true
7c076e8212154a0bc6a5d8ea68051f69b4266ebf
Python
naufalscofield/kuisganteng
/app.py
UTF-8
12,830
2.53125
3
[]
no_license
from flask import Flask, jsonify app = Flask(__name__) @app.route('/<gurih>') def hello_world(gurih): return gurih @app.route('/post/<int:post_id>') def show_post(post_id): # show the post with the given id, the id is an integer return 'Post %d' % post_id @app.route('/crot', methods=['POST']) def login()...
true
a52b94314210679c370d13ac31bcc909150897fe
Python
amsatique/BKTelegramBot
/BK/bot.py
UTF-8
3,121
3.03125
3
[]
no_license
import telepot import roburger import mongo_interact import os import time from telepot.namedtuple import ReplyKeyboardMarkup, KeyboardButton # Emojis and cute stuff hourglass = u'\U0000231B' hamburger = u'\U0001F354' okHandSign = u'\U0001F44C' star = u'\U00002B50' thumbsUpSign = u'\U0001F44D' clappingHandSign = u'\U0...
true
9a3bc6fedac9c26dd9080c999bf2468da0f1caac
Python
NatanLisboa/python
/exercicios-cursoemvideo/Mundo3/ex076.py
UTF-8
745
4.1875
4
[]
no_license
# Mundo 3 - Aula 16 - Variáveis Compostas - Tuplas # Exercício Python 076: Crie um programa que tenha uma tupla única com nomes de produtos e seus respectivos preços, na # sequência. No final, mostre uma listagem de preços, organizando os dados em forma tabular. produtos = ('Lápis', 1.75, 'Borracha', 2, 'Caderno', 15...
true
9b0d0fbff587ddf76bd1c876f3ddbc8ed4954f5c
Python
gutsergey/PythonSamples
/file_reader_with_cursor.py
UTF-8
436
3.734375
4
[]
no_license
try: # работа с курсором with open('example_text.txt', 'r') as file: contents = file.read(10) # указываем кол-во символов для чтения # курсор перемещается на 11 символ rest = file.read() # читаем с 11 символа print("10:", contents) print("остальное:", rest) except: print ("E...
true
28b7f1fd84d369c3b0e5eb929c77eb011983f891
Python
OnikenX/github-twitter-commits
/tests/args
UTF-8
240
2.578125
3
[ "MIT" ]
permissive
#!/bin/python import sys import getopt SERVER = '192.168.1.8' INPUT = ' ' while INPUT[0].lower() != 'y' and INPUT[0].lower() != 'n' : INPUT = input(f'is this the ip [{SERVER}][y/n]') print(f"args[{len(sys.argv)}] = {str(sys.argv[1])}")
true
0d5f2cde8a475db6e8c2691e34a32e4ddcf23617
Python
heroccccc/QtMultimediaVideo
/testmedia.py
UTF-8
1,736
2.609375
3
[ "MIT" ]
permissive
from PyQt5.QtCore import QUrl from PyQt5.QtMultimedia import QMediaContent, QMediaPlayer from PyQt5.QtMultimediaWidgets import QVideoWidget from PyQt5.QtWidgets import QApplication, QPushButton, QVBoxLayout, QWidget from PyQt5.QtWidgets import QMainWindow,QWidget, QPushButton import sys class Window(QMainWindow): ...
true
abbdccb4e475efbf8df02b74a18b27626153f176
Python
Harshpatel44/Pykinter
/Pykinter 3.0/singleton.py
UTF-8
242
2.671875
3
[ "MIT" ]
permissive
def singleton(my_class): instances = {} def get_instance(*args, **kwargs): if my_class not in instances: instances[my_class] = my_class(*args, **kwargs) return instances[my_class] return get_instance
true
c1fa73b1bee30935d8e98d7ee02b71c949ba9ae2
Python
psychedel/ischedule
/tests/test_cancel.py
UTF-8
441
2.78125
3
[]
no_license
from math import isclose from time import monotonic from src.ischedule import reset, run_loop, schedule def test_cancel_notasks(): reset() run_loop(return_after=1) def test_cancel_longtast(): reset() @schedule(interval=2) def task(): print("Doing task") start = monotonic() run...
true
b8d4d488d486afd194c374c4f0e71e48c7eeaea2
Python
achung695/coreachord
/scripts/gen-transition-matrix-med.py
UTF-8
5,337
3.03125
3
[]
no_license
import pandas as pd print("generating transition matrix (medium chord diversity)...") # all chord names chord_names = ['C', 'Db', 'D', 'Eb', 'E', 'F', 'Gb', 'G', 'Ab', 'A', 'Bb', 'B'] # qualities qualities = ['maj7', '-7', '-7b5', '7'] # all chords combining chord names and qualities all_chords = [] # fill all_cho...
true
39500c0104d902ab793666302e5b9519e62b8e52
Python
DanielYe1/UriResolutions
/python_resolutions/beginner/1020.py
UTF-8
208
3.734375
4
[ "Apache-2.0" ]
permissive
import math a = int(input()) year = math.floor(a / 365) n = a % 365 month = math.floor(n/ 30) day = n % 30 print("{0} ano(s)".format(year)) print("{0} mes(es)".format(month)) print("{0} dia(s)".format(day))
true
c0367d9cc55fb586a631eb086ee40ca6dbb78b18
Python
v-v-d/Python_client-server_apps
/messenger/server/src/middlewares.py
UTF-8
405
2.625
3
[ "MIT" ]
permissive
"""Middlewares for server side messenger app.""" import zlib from functools import wraps def compression_middleware(func): """Decompress request and return compression result.""" @wraps(func) def wrapper(request, *args, **kwargs): b_request = zlib.decompress(request) b_response = func(b_r...
true
0511a5f3fd713d9982c1cfca1a81cc1f2bf0fd2b
Python
wrosko/EXDS
/Week 4/convert_to_waveraw.py
UTF-8
727
3.390625
3
[]
no_license
import sound import ??? as myfile # ??? should be replaced with the name of #the file which has your functions. #Read the statements and comments below. #You will need to make appropriate changes to the statements #to work with different wav files and test various functions #you have written. #Converts the sound in g...
true
e2bcf187713c7a3dd199872d93c377a524ddb77c
Python
SayedJPQ/Curso-Python
/Leccion4.py
UTF-8
681
3.875
4
[]
no_license
#Listas Lista1=["El pepe", "Ete Sech", "El pepeX2"] Lista2=[1,2,3,4,5] #Agregar elementos a las listas Lista1.append("Sandro") #Agregar los elementos controlando la posicion Lista1.insert(1, "Chao") #Agregar 2 o mas elementos Lista1.extend(["Hallo", "Ja", "Da"]) #Eliminar elementos Lista1.remove("El pepeX2") #Eliminar ...
true
cf2a84ff38b83fb1ad0f74b553c64d37d9d10c33
Python
Lem0049/less0n3
/3/uuu.py
UTF-8
473
3.796875
4
[]
no_license
#import random #value = random.randint(0,10) #if value > 5: # print(value) #else: # print(value) # month_num = int(input("Введите номер месяца")) # # if month_num > 12 # print("noooo") # elif month_num >= 9 and month_num <= 11: # print("autumn") # elif month_num >= 6 and month_num <= 8 : # print("su...
true
b33d2a85b90c956c0d523c8e68eaae7965e8a5b9
Python
yanxurui/keepcoding
/python/algorithm/leetcode/541.py
UTF-8
472
3.28125
3
[]
no_license
class Solution: def reverseStr(self, s: str, k: int) -> str: buf = [] for i in range(0, len(s), 2*k): buf.append(s[i:i+k][::-1]) buf.append(s[i+k:i+2*k]) return ''.join(buf) if __name__ == '__main__': from testfunc import test test_data = [ ( ...
true
af833a2fbcbee5807ad096ac9b5bfc6886b4f48f
Python
NetSecLife/codeeval
/lettercase_percentage_ratio.py
UTF-8
575
3.375
3
[]
no_license
import sys def main(): test_cases = open(sys.argv[1], 'r') for test in test_cases: low_count, total, high_count = 0, 0, 0 for i in test: if i.isupper(): high_count += 1 total += 1 elif i.islower(): low_count += 1 ...
true
5e1741efe8c59aa6c05d8ed02238f5b1414c9a64
Python
chokosabe/sains
/settings.py
UTF-8
334
2.515625
3
[]
no_license
from collections import OrderedDict MAX_LINES = 2 ALLOWED_DAYS = ['mon', 'tue', 'wed', 'thu', 'fri'] INDEXED_DAYS = OrderedDict([ ('mon', 0), ('tue', 1), ('wed', 2), ('thu', 3), ('fri', 4) ]) ACTIONS = { 'mon': 'square', 'tue': 'square', 'wed': 'square', 'thu': 'double', 'fri...
true
09eeffe5e957aa4f547008df016cc53f21a72a38
Python
KarinaYatskevich/python
/Lesson/Lessons/Other/oop2.py
UTF-8
873
3.953125
4
[]
no_license
import string class Alphabet: def __init__(self, land, letter): self.land = land self.letter = list(letter) def print(self): return self.letter def letters_num(self): len(self.letter) class EngAlphabet(Alphabet): __letter_num = 26 de...
true
36cd031b72c047c9b0a8525b9f0577f31ea37bfb
Python
Kawser-nerd/CLCDSA
/Source Codes/AtCoder/arc077/B/3559622.py
UTF-8
710
2.828125
3
[]
no_license
from collections import Counter N = int(input()) A = list(map(int,input().split())) MOD = 10**9+7 ctr = Counter(A) doub = ctr.most_common()[0][0] i1 = A.index(doub) i2 = N - A[::-1].index(doub) l = N - (i2-i1) fac = [1,1] + [0]*N finv = [1,1] + [0]*N inv = [0,1] + [0]*N for i in range(2,N+2): fac[i...
true
1d97a7cf0c59b36d3dd989067f487fc8cd6a6c0d
Python
junyi1997/Final_OIT_projet
/Steper/vendor/StepMotor.py
UTF-8
3,593
3.28125
3
[]
no_license
""" 使用於Python3 使用此程式前,必須先安裝好RPi.GPIO(記得在樹莓派灌),如果沒灌好一定會有錯。 想安裝RPi.GPIO,且如果你有pip的話,可打下方指令完成安裝 pip install RPi.GPIO """ import time import RPi.GPIO as GPIO class StepMotor(object): """ StepMotor 此類別為簡單操作兩相4線控之步進馬達用 """ forward_seq = ['1100', '0110', '0011', '1001'] """ forward_seq 為步進馬達正轉之輸出順序 ...
true
de2426d2fa83cf57d06cfa1c56144b78acf4d684
Python
rajatthosar/leetcode
/655_print_binary_tree.py
UTF-8
719
3.21875
3
[]
no_license
from collections import deque # Definition for a binary tree node. from typing import List class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def printTree(self, root: TreeNode) -> List[List[str]]: ...
true
bbc9c5e090acd3a6f7761a0a3519643ea120cdee
Python
ypkoo/flow
/studylamp/state.py
UTF-8
1,808
2.875
3
[]
no_license
__author__ = 'koo' import sqlite3 from db_manager import db # states COVER = 0 MENU = 1 LEARNING = 2 SOLVING = 3 GRADED = 4 REVIEW = 5 PROGRESS = 6 BUFFER = 7 class StateManager: def __init__(self): self._state = BUFFER self._title = None self.cur_page = -1 self.page_count = 0 ...
true
626991a9caf9856b27e02a35e66fe813717f0096
Python
hit-e304/uwb_test
/anchor.py
UTF-8
1,695
2.78125
3
[]
no_license
import time import struct import binascii import serial import json portx = 'COM9' bps = 921600 timex = 5 self_num = 0 dis = {} str_dis = [] ser = serial.Serial(portx, bps, timeout=timex) def is_number(s): try: float(s) return True except ValueError: pass try: import u...
true
a9526b6a7a4b747187d98e2b587d663aba832be4
Python
ArBond/ITStep
/Python/lessons/lesson2_arithmetic/main4.py
UTF-8
171
3.4375
3
[]
no_license
#Vychislit' ploshad' kruga PI = 3.14 r = float(input("Vvedite radius kruga(sm): ")) print("Ploshad' kruga = %.2f" % (PI * r * r), "sm") input("Press Enter to continue...")
true
571c7e29b6a2606c71eba89ac96cdf7291ebdcf5
Python
praveshtayal/pinception
/dp/1436_DP_findMaxSquareWithAllZeros.py
UTF-8
1,178
3.5
4
[]
no_license
def findMaxSquareWithAllZeros(arr): # Given a n*m matrix which contains only 0s and 1s, find out the size of # maximum square sub-matrix with all 0s. You need to return the size of # square with all 0s. */ row = len(arr) col = len(arr[0]) # Create a storage of size row+1*col+1 storage = [...
true
e43c33d5d5dd4eebe8a49ab8c87e6b5bf5f14215
Python
allanzi/truck-challenge
/app/controllers/travel_controller.py
UTF-8
3,235
2.625
3
[]
no_license
from flask_restful import Resource from flask import jsonify, make_response, request from werkzeug.exceptions import NotFound from models.travel_model import TravelModel from validators.travel_validator import TravelCreateValidator, TravelUpdateValidator from marshmallow import ValidationError class TravelShow(Resourc...
true
db25119a414a33b8be9166482ad52d469b5f9e5a
Python
jungr-ait/offboard
/src/interactive_mode.py
UTF-8
10,113
2.59375
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env python """ Created on Thu Sep 29 09:22:58 2016 @author: dennis """ import rospy from std_msgs.msg import String from geometry_msgs.msg import Point from geometry_msgs.msg import PoseStamped, Quaternion, TwistStamped import threading import sys import time import signal import mavros_driver import...
true
e6fb9acb32922e1c3793a6ec65c154cfd5ba9140
Python
w1ldy0uth/netScan
/method/arp.py
UTF-8
1,176
3.265625
3
[ "MIT" ]
permissive
#!/usr/bin/env python3 # -*- coding: UTF=8 -*- from scapy.all import ARP, srp, Ether try: from method.sub.ipget import cidr_ip except ImportError: from sub.ipget import cidr_ip class Arp: """A class to recieve IP and MAC addresses of hosts in current network.""" def __init__(self, verbo...
true
911e42114a578134655fc1d3f427a67e1684f110
Python
nisargthakkar/replicated-database-concurrency-control
/DataManager.py
UTF-8
2,665
2.75
3
[]
no_license
import SiteManager class DataManager: def __init__(self, site): self.data = {} self.site = site self.committed = {} def keyStrKey(keyStr): return int(keyStr[1:]) def initValue(self, key, value): self.data[key] = [{ 'transaction': '', 'value': value, 'committedTime': 0 }] self.committed[key]...
true
cd2ecb1008b185fe94b2c2cedde9dcbf8546f030
Python
Randrews545/school-projects
/JJARS/scruml/uml_context_gui.py
UTF-8
13,956
2.828125
3
[]
no_license
# ScrUML # uml_context_gui.py # Team JJARS from os import path from typing import Dict from typing import List from typing import Optional from typing import Tuple from typing import Union import pkg_resources import webview from scruml import uml_filesystem_io from scruml.uml_diagram import UMLDiagram ...
true
caaf66f0bfd6bf781b46655ff17d1f90423e19d1
Python
Xromocoma/Fast_api_app
/app/routers/v1/city.py
UTF-8
1,642
2.625
3
[]
no_license
from typing import List from fastapi import APIRouter, Response, status, Depends, Security from app.core.dependencies import is_authentication, is_admin, security from app.shemas.city import City, CityInfo from app.core.city import city_add, city_update, city_delete, get_all_cities router = APIRouter() # Получение в...
true
a77d7a25da0508dce9f139a8e8ca7ca02354b9a3
Python
espiritu324/cst336
/cst311/UDPPingClient.py
UTF-8
1,846
3.15625
3
[]
no_license
# UDPPingClient.py #Mytchell Beaton & David Espiritu #cst311 section 01 #Programming Assignment 1 UDP_Pinger #Mar. 03, 2019 import socket from socket import AF_INET, SOCK_DGRAM import time IP_ADDRESS = "" UDP_portNum = 12000 clientSocket = socket.socket(AF_INET,SOCK_DGRAM) clientSocket.settimeout(1) #set timeout to...
true
13f583259b5e38272c84f8a3f124bfdce8cb70c0
Python
maoa20-gm/Algoritmos
/aula_01/ejercicios_listas.py
UTF-8
4,788
4.40625
4
[]
no_license
from typing import List # Crie uma função que recebe uma lista de números como argumento e # devolve uma lista onde todos os números da lista original foram # elevados ao quadrado. from typing import List def Quadrado(listas:List) -> List: square = [] for n in listas: square.append(n**2) return ...
true
382b6f28f6a42c663b0d267e142b8dca87996448
Python
tahyuu/glove_test
/Ui/TranscellT831.py
UTF-8
1,124
2.53125
3
[]
no_license
import serial import re import time r_pun_data = r'\d(?P<data>[\+|-]\d{1,5})' pattern = re.compile(r_pun_data) #a_list=np.arange(1) def dev(i): return i/100 if __name__ == '__main__': serial = serial.Serial('COM1', 9600) print serial if serial.isOpen(): print("open success") else: ...
true
b4f5cdb6441f78701364ec5d311aa516289c809e
Python
glwhu/python_turtle
/turtle_5_snake.py
UTF-8
524
3.546875
4
[]
no_license
import turtle wn = turtle.Screen() wn.bgcolor("lightgreen") tess = turtle.Turtle() tess.color("blue") size = 20 for i in range(10): tess.forward(size) # Move tess along tess.right(10) # ... and turn her size = 2 for i in range(6): tess.forward(size) tess.right(28) size = 20 for...
true
596307b6ae9554963a78cd7aa2960aa0af2baa94
Python
LeeDongGeon1996/co-te
/BOJ/14888_연산자 끼워넣기.py
UTF-8
923
3.546875
4
[]
no_license
# solution: DFS, 연산자를 하나씩 소비해가며 dfs를 수행하여 모든 순열(?)을 탐색한다. # time-complexity: O(|V|+|E|) - V=연산자순열수, E=연산자수(N-1) # url: https://www.acmicpc.net/problem/14888 # start_input N = int(input()) nums = list(map(int, input().split())) opers = list(map(int, input().split())) # end_input _min = 1000000000 _max = -1000000000 ...
true
71219f241af69c6a0f0983e5313e874e6a7f5012
Python
maximilianh/pubMunch
/cgi/pubRun/jobQueue.py
UTF-8
7,551
2.53125
3
[]
no_license
from __future__ import print_function import os, sqlite3 from cPickle import loads, dumps from time import sleep try: from thread import get_ident except ImportError: from dummy_thread import get_ident # awesome compact code from http://flask.pocoo.org/snippets/88/ class JobQueue(object): _create = ( ...
true
67a4f22d6e98d2d2ff9f77e04a819ce2d1294bf0
Python
openkamer/openkamer
/parliament/tests.py
UTF-8
4,713
2.671875
3
[ "MIT" ]
permissive
import datetime from django.test import TestCase from person.models import Person from parliament.models import Parliament from parliament.models import ParliamentMember from parliament.models import PoliticalParty from wikidata import wikidata class TestPoliticalParty(TestCase): def test_get_political_party...
true
63149fec1a2c7843bae8c976d2685ce655a8935a
Python
TrendingTechnology/cwa-qr
/cwa_qr/seed.py
UTF-8
341
2.890625
3
[ "MIT" ]
permissive
import random def construct_seed(seed) -> bytes: if type(seed) == bytes and len(seed) == 16: return seed if seed is None: seed = b'' if type(seed) not in [int, float, str, bytes]: seed = str(seed) r = random.Random() r.seed(seed) return bytes([r.randrange(0, 256) for...
true
7e5cdbb1794fd0772162249cc4388b0cee4d6e57
Python
stevenfrst/simple
/simple/util.py
UTF-8
1,659
3.21875
3
[ "MIT" ]
permissive
from math import ceil import re import unicodedata class Pagination(object): def __init__(self, page, per_page, total_count): self.page = page self.per_page = per_page self.total_count = total_count @property def pages(self): return int(ceil(self.total_count / float(self....
true
271ce73b5ed8d76350cea4a5136983e7164bdf37
Python
norashipp/ugali
/ugali/simulation/population.py
UTF-8
3,383
2.828125
3
[ "MIT" ]
permissive
""" Tool to generate a population of simulated satellite properties. """ import numpy import pylab import ugali.utils.config import ugali.utils.projector import ugali.utils.skymap import ugali.analysis.kernel import ugali.observation.catalog pylab.ion() ############################################################ ...
true
6f91e0c43110ab91cddb78e55caa15970b0680ea
Python
LiJunDa159/MYCODE
/2_VGGNet/tools.py
UTF-8
4,066
2.921875
3
[]
no_license
import tensorflow as tf def conv(layer_name, x, out_channels, kernel_size=None, stride=None, is_pretrain=True): """ Convolution op wrapper, the Activation id ReLU :param layer_name: layer name, eg: conv1, conv2, ... :param x: input tensor, size = [batch_size, height, weight, channels] :param...
true
312ac6b5babcb20057fcdb6fa51e090df387d778
Python
Jm-Correia/learn-Python
/SearchStringAndCreateLogs/veiculo.py
UTF-8
741
2.921875
3
[]
no_license
import abc, interface_veiculo class Veiculo(interface_veiculo.interfaceVeiculo, abc.ABC): def __init__(self, cor, tipoCombustivel, potencia): self.cor = cor self.tipoCombustivel = tipoCombustivel self.__potencia = potencia def changeColor(self, cor): self.cor = cor @prope...
true
6066a36b4d72d0f243585b79006233fc267afb72
Python
skamjadali7/Python-Programming
/OOPCOncept/HierarchialInheritance.py
UTF-8
257
3.484375
3
[]
no_license
class Parent: def m1(self): print("Parent Method") class Child1(Parent): def m2(self): print("Child One") class Child2(Parent): def m3(self): print("Child Two") c1=Child1() c1.m1() c1.m2() c2=Child2() c2.m1() c2.m3()
true
c737ab8f28e83e3893dd552c83bc85db674d4fb1
Python
stephenward21/Guess-a-number
/Guess_a_number.py
UTF-8
932
4.25
4
[]
no_license
import random secret_number = random.randint(1,10) the_number = True number_of_guesses = 5 while (number_of_guesses > 0) and (the_number == True): the_guessed_number = raw_input("Guess a number between 1 and 10.") if(int(the_guessed_number) == secret_number): print "Yes! You win!" play_again = raw_input("Would...
true
5bad2e271d03e371ba5e415bfa24ece16462cb46
Python
F-Akinola/onlinetraining
/example7.py
UTF-8
74
2.984375
3
[]
no_license
def onetwothree(x): return x*1, x*2, x*3 print(onetwothree(3))
true
68bcf4b3f5d18661d4a9f6e0f41594cf3c8f78ea
Python
Maggieeli/halloween-project
/hlw/hlw.pyde
UTF-8
431
3.484375
3
[]
no_license
def setup(): size(640,480) def draw(): fill(60) triangle(40,75,60,30,80,75) triangle(30,200,60,50,90,200) triangle(30,380,60,60,90,380) fill(80) triangle(80,105,100,40,120,95) triangle(70,210,100,60,130,220) triangle(70,400,100,70,130,390) fill(128) noStroke() ...
true
2840e4ad1bed8ee2e5f8a7f43ccdebfdb96f0b38
Python
PlayLife2k/WebDev
/week8/coding_bat/logic-1.py
UTF-8
1,536
3.046875
3
[ "MIT" ]
permissive
#cigar_party def cigar_party(cigars, is_weekend): if 40<=cigars<=60: return True elif cigars>=60 and is_weekend: return True return False #date_fashion def date_fashion(you, date): if you<=2 or date<=2: return 0 elif you>=8 or date>=8: return 2 elif 2<you<8 or 2<date<8: r...
true
0e137ef2d021650d095527899fade03852c92e94
Python
kamushekp/VoxCelebResearch_obsolete
/obsolete/vggvox_model.py
UTF-8
3,256
2.671875
3
[]
no_license
import scipy.io as sio import numpy as np import keras.backend as K from keras.layers import Input, GlobalAveragePooling2D, Reshape from keras.layers.convolutional import Conv2D, ZeroPadding2D, MaxPooling2D, AveragePooling2D from keras.layers.normalization import BatchNormalization from keras.layers.core import Lambda,...
true
adcb0a7b67bfc7d0809a38f979aa5c1d4ad4879e
Python
codeimt/pycones21-testing
/pycones21/isolation/3-patch-ok.py
UTF-8
623
2.53125
3
[]
no_license
from pycones21.github_client import GithubClient from unittest import mock # Or you could use a decorator @mock.patch("pycones21.github_client.requests.get") def test_get_gist_urls(m_request): response_urls = [ { "url": "https://api.github.com/gists/fc04e72fc7bb4bf0a6c7c09551ad9c34", ...
true
afc736b1b3a17b901a6b3de7a42b9171b45c2c12
Python
AlexLi-98/misc
/bayesopt/gaussian_process.py
UTF-8
3,767
3.375
3
[]
no_license
import numpy as np class Kernel(object): def compute(self, a, b): raise None class SquaredDistanceKernel(Kernel): def __init__(self, kernel_param=0.1): self.kernel_parameter = kernel_param def compute(self, a, b): sq_dist = np.sum(a ** 2, 1).reshape(-1, 1) + np.sum(b ** 2, 1) ...
true
4a8e57ddcdc6ece188aa1ee8c1261e2c78bbaee5
Python
shahriaarrr/Hello-World
/Python/examples/tkinter.py
UTF-8
339
3.203125
3
[ "MIT" ]
permissive
from tkinter import * root = Tk() root.title("My Program") root.geometry('200x300') def function(): pass lbl_show_hello = Label( root, text = "Hello, World!", bg = 'red', rg = 'black' ).pack() # you can use grid to have indexable page btn = Button( root, text = "Click Me!" command = function ).pack(...
true
149a2647b878a0ff87272b6a5dc51642ee672e46
Python
YoupengLi/leetcode-sorting
/Solutions/0125_isPalindrome.py
UTF-8
1,556
3.984375
4
[]
no_license
# -*- coding: utf-8 -*- # @Time : 2019/7/10 9:19 # @Author : Youpeng Li # @Site : # @File : 0125_isPalindrome.py # @Software: PyCharm ''' 125. Valid Palindrome Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of t...
true
a66cd1ec7035e0db524955a8e42d700f58b1ac8c
Python
kirtymeena/DSA
/Linked List/clone_LL.py
UTF-8
2,522
3.65625
4
[]
no_license
# -*- coding: utf-8 -*- """ Created on Fri Nov 20 19:52:27 2020 @author: Kirty """ class Node: def __init__(self,data): self.next = None self.data = data self.random = None def __init__(self): self.head = None def insert(self,data): new_node = Node(data) ...
true
bb0ef7a34ff528b69e4135f5cecf6acdb5d39afe
Python
labulasi211/Learning-data-visualization
/study_plot/dice/die_visual.py
UTF-8
712
2.921875
3
[]
no_license
from plotly.graph_objs import Bar, Layout from plotly import offline from die import Die die = Die() results = [] for value in range(10000): result = die.roll() results.append(result) # 分析结果 frequencies = [] for value in range(1, die.num_sides): frequency = results.count(value) frequencies.append(...
true
63d9957d6147a3d9fc7e5305c8f11b85a41a6259
Python
franzleeyan/PCC
/favorite_languages.py
UTF-8
1,032
3.8125
4
[]
no_license
# # 定义被调查者名字 # favorite_languages = {'jen': 'python', # 'sarah': 'c', # 'edward': 'ruby', # 'phil': 'python', # } # # print("Sarah's favorite language is " + favorite_languages['sarah'].title() + ".") # # # for name, languages in fa...
true
3233420f2cb14f28f62deb720debe9f381ba7ccc
Python
yanchinskiyyura432/laba01
/laba01.py
UTF-8
791
4.09375
4
[]
no_license
#реверс slogan = str(input ("Напишіть своє речення")) sentence = slogan [::-1] words = sentence.split() sentence_rev = " ".join(reversed(words)) print ( sentence_rev)\ #хелло ворлд ("Hello world") #калькулятор a=int(input("Write your number")) b=int(input("Write your number")) c=a+b print(c) #шифр i=5 while i < 15:...
true
7cd118037a52bc8398bb6bb4383bf70866a48310
Python
madusec/firebase-scanner
/db-discovery.py
UTF-8
1,335
2.703125
3
[]
no_license
import sys import requests from argparse import ArgumentParser, FileType from dnsdumpster.DNSDumpsterAPI import DNSDumpsterAPI def dnsdumpster(): results = DNSDumpsterAPI().search('firebaseio.com') return [domain['domain'] for domain in results['dns_records']['host']] def is_firebase_project(code: str) -> ...
true
e4cc61033ef11fbbe25c959842a8440631c033d4
Python
anisg/printf_checker
/check.py
UTF-8
3,009
2.53125
3
[]
no_license
#!/usr/bin/env python import argparse import os version='0.1' default_file='examples.txt' script_dir=os.path.dirname(os.path.realpath(__file__)) dir_tmp=script_dir + '/' + 'tmp' def shell_exec(cmd): return os.popen(cmd).read() def file_put_contents(filename, data): f = open(filename, 'w') f.write(data) f.close...
true
c97cf6e78f2debc60f4f05f6d31ecc3661ada2f1
Python
AzureStarDragon/Codingame
/Puzzles/Easy/Temperatures/Temperatures.py
UTF-8
432
3.828125
4
[]
no_license
n = int(input()) temps = [int(x) for x in raw_input().split()] //Reads the string and converts each number to an integer, storing it in a list. if n > 0: print(sorted(sorted(temps,reverse=True),key=abs)[0]) //Sorts the list twice, one by value and the second one by absolute value else: ...
true
589c797caab012df9844a5d4763e78abce6aff0e
Python
AlexSSun/GWAS_NLP
/maintext_clean_batch.py
UTF-8
3,186
2.765625
3
[]
no_license
#!/usr/bin/env python # coding: utf-8 import os import re from html.parser import HTMLParser from bs4 import BeautifulSoup from bs4 import element from itertools import product import argparse import numpy as np import pandas as pd import json from utils import * def extract_text(soup): """ convert beautiful ...
true