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
e8e9c8915c2372d8bafc628645a01a5a083ef773
Python
shantanusarkar/my_practiced_codes
/hackerearth_solutions/tablets.py
UTF-8
264
3.265625
3
[]
no_license
n = int(raw_input()) total = [] sum = 0 for x in range(0, n): health_score = int(raw_input()) if health_score not in total: total.append(health_score) else: total.append(int('1')) for y in range(0, n): sum = sum + total[y] print sum
true
4b1b99b16b3ab19bbefdb900fd657d8e2e183b1f
Python
AbinayaUK/GraduateTrainingProgram2019
/Python/Calc_arithmetic/calc_arithmetic.py
UTF-8
386
3.765625
4
[]
no_license
"""arithmetic operation""" def addition(input1, input2): """calculating addition""" return input1+input2 def subtraction(input1, input2): """calculating subtraction""" return input1-input2 def multiply(input1, input2): """calculating multiply""" return input1*input2 def divide(input1, ...
true
82c108b927721bc5688976257313f567e0a41756
Python
PengyeeNg/multiprojects
/MCIT-Frontend/Test_Case/T3/User_Module/Deposit_Area.py
UTF-8
1,342
2.75
3
[]
no_license
import unittest from Actions.T3.user_page import UserpageActions from Setup.T3 import Base_Setup from Elements.T3.user_page import UserElement class DepositAreaModule(Base_Setup.BSetup): def test_TC_DepositArea_01_Navigate_to_DepositAreaPage(self): print("<b> Expected Results: Able to access to deposit a...
true
ef78c90ab3db6e5064cce6926c4ba71b2adc26ec
Python
MrBananaHuman/AlgoAlgo
/OccurrencesAfterBigram.py
UTF-8
394
3.296875
3
[]
no_license
class Solution: def findOcurrences(self, text: str, first: str, second: str) -> List[str]: result = [] splited_text = text.split(' ') for i in range(0, len(splited_text) - 2): pre = splited_text[i] post = splited_text[i+1] if pre == first and post == secon...
true
7af2c3a72b7aa507a151bc25d3bbce3c9eb2def3
Python
Obee07/StudyUP
/source-code/code/studyup/discussion/routes.py
UTF-8
7,099
2.640625
3
[]
no_license
from flask import Blueprint, render_template, request, jsonify, redirect, url_for, flash, abort from studyup.models import Question, Choice, Answer, Comment, User from studyup import db from studyup.discussion.forms import CommentForm from flask_login import login_required, current_user from datetime import dateti...
true
6a2adc5be45a7d7975baea80d6a3d5c23802acfd
Python
I-will-miss-you/CodePython
/Curso em Video/Duvidas/fibonacci.py
UTF-8
447
4.15625
4
[]
no_license
#gambiarra a tuga: chamadas = -1 def fib(n): global chamadas chamadas += 1 if(n == 0): return 0 if(n == 1): return 1 else: return fib(n - 1) + fib(n - 2) def fibonacci(n): if n == 0 or n == 1: global chamadas chamadas = 1 return n else: ...
true
f8c98dd5c849f6edbf031695ae22b2b3d300eb59
Python
nathaliekng/CPS305-Data-Structures
/lab03/test.py
UTF-8
1,025
2.875
3
[]
no_license
#Nathalie Ng 500921963 import unittest from mySolution import infixToPostfix class Test(unittest.TestCase): def test1_infixToPostfix(self): self.assertEqual(infixToPostfix("( 2 + 2 ) ! + 8"), ('2 2 + ! 8 +', 32), "Should be ('2 2 + ! 8 +', 32)") self.assertEqual(infixToPostfix("( 2 + 5 ) ! + 9"), ...
true
02d91ed943502db58d84b924b3273085c986d8db
Python
Forkeep/USYD-python
/Week4/bouncy_evens.py
UTF-8
300
2.96875
3
[]
no_license
import sys if __name__ == '__main__': if len(sys.argv) == 2: N = int(sys.argv[1]) i = 1 while i<=N: evens = 2*i print(evens) evens -= 2 while evens>0: print(evens) evens-=2 i+=1
true
4b86c0a8f255c7bdaa1b3dc99f52583f37261073
Python
arpitgupta1906/scientific_chart_reader
/tts.py
UTF-8
891
3.03125
3
[]
no_license
# coding: utf-8 import sys reload(sys) sys.setdefaultencoding('utf-8') # Import the required module for text # to speech conversion from gtts import gTTS # This module is imported so that we can # play the converted audio import os # The text that you want to convert to audio #loop lgana padega jitne label ho...
true
ea788609ddc827dba10da909e3a31edbf4dd104a
Python
danieldfc/trainling-python
/Atividades/Yuri/lista3/exerc5.py
UTF-8
171
3.53125
4
[]
no_license
cont1 = 1 cont2 = 1 while cont1 <= 9: print('-'*12) while cont2 <= 10: print('{} x {:2} = {}'.format(cont1, cont2, cont1*cont2)) cont2+=1 cont2=1 cont1+=1
true
d4dbf8b87f1c364cdc761bde2a377a004909fbd9
Python
sdawn29/PlacementDataAnalysis
/datatrain.py
UTF-8
3,308
2.515625
3
[]
no_license
import numpy as np import pylab as pl import pandas as pd import matplotlib from sklearn.model_selection import train_test_split from matplotlib.colors import ListedColormap from sklearn import neighbors, datasets from sklearn.naive_bayes import GaussianNB import io import base64 import time from flask import Flask, r...
true
de59f5404ca8357762ed52f8d00fcf8772b565b1
Python
dsw88/CS478-Group-Project
/webapp/app/main.py
UTF-8
557
2.515625
3
[]
no_license
from flask import Flask, render_template, request from . import cars_model import json application = Flask(__name__, static_url_path='') @application.route("/") def index(): """Route that renders the homepage of the CD server""" return render_template('index.html') @application.route("/healthcheck") def heal...
true
80daf67c8dff092fa7a7e8317e29cfc93940b840
Python
chenyan198804/myscript
/MyPython/testregex/test14.py
UTF-8
634
3.078125
3
[]
no_license
''' Created on 2016年9月5日 @author: y35chen ''' import copy a = [1,2,3,4,'a','b','c'] b = a print(b) print(id(a)) print(id(b)) a.append('d') print(a) print(b) print(id(a)) print(id(b)) b.append('e') print(a) print(b) print(id(a)) print(id(b)) a = [1,2,3,['a','b','c']] b = a c = copy.copy(a) print(b) print(c) print(i...
true
2721d37ac49f2ca7eb01d995ff07f36b18b56a73
Python
viirya/flickr_fetcher
/mtk_assign_qua.py
UTF-8
1,172
2.546875
3
[]
no_license
import sys import argparse import re from numpy import array, random import utils import mtk_utils def main(): parser = argparse.ArgumentParser(description = 'Assign qualification to specific worker or workers of specific HIT.') parser.add_argument('-w', help = 'The Turk worker id.') parser.add_argument...
true
c362e8739c0aa64f0abe9aea12a797c1a6943e40
Python
asheikabdulla/program_edyoda
/Fibonaaci program.py
UTF-8
128
3.015625
3
[]
no_license
#!/usr/bin/env python # coding: utf-8 # In[2]: x,y=0,1 while y<50: print(y,end='\t') x,y=y,x+y # In[ ]:
true
6f6d3a54ac1f3aa80ab23820cdf4812a863bef50
Python
hqnjkkl/tensorflowPrimer
/opt/opt4_1.py
UTF-8
1,287
3.078125
3
[]
no_license
#coding:utf-8 #预测多或预测少的影响一样 #0导入模块,生成数据集 import tensorflow as tf import numpy as np BATCH_SIZE = 8 SEED =23455 rdm = np.random.RandomState(SEED) X = rdm.rand(32,2) Y_ = [[x1+x2+(rdm.rand()/10.0-0.05)] for (x1, x2) in X] #1定义神经网络的输入,参数和输出,定义前向传播过程。 x = tf.placeholder(tf.float32,shape=(None,2)) y_ = tf.placeholder(tf.f...
true
4be46cd572acfcccd80168c9d20b21e2f961ac2e
Python
maybeee18/HackerRank
/Python/DefaultDict Tutorial.py
UTF-8
307
2.703125
3
[]
no_license
""" Created on Wed Sep 5 15:31:37 2018 @author: nokroshiashvili """ from collections import defaultdict n, m = list(map(int,input().split())) d = defaultdict(list) for i in range(n): d[input()].append(i + 1) for i in range(m): print(' '.join(map(str, d[input()])) or -1)
true
850bb9b026aea096abea5756817a38ae23723c0b
Python
farhadnkm/Fringe.Py
/fringe/modules/Scanner.py
UTF-8
1,651
2.96875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
import numpy as np from ..utils.io import export_image import os def scan_z(input_field, k, z_range, dz, solver, export_dir): """ Scans the z axis within the specified range with the specified dz resolution and saves the propagated images in the given directory. This method is suitable to find the focus p...
true
5fcc1fed4e26dd45175fd46c7cb0fdf35d46c583
Python
Kirill5k/flask-demo
/books/repositories.py
UTF-8
1,073
2.921875
3
[]
no_license
from books.domain import Book, db from sqlalchemy.exc import IntegrityError class BookRepository: def get_all(self): return Book.query.all() def get_one(self, id): book = Book.query.get(id) if not book: raise ValueError('not found') return book def get_by_isbn...
true
b70e2857a775718c1aed9ace09b47f936086ea0d
Python
tensorflow/tensorflow
/tensorflow/python/framework/sparse_tensor.py
UTF-8
21,370
2.515625
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
# Copyright 2015 The TensorFlow 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 applica...
true
fd79cfd726ad4ad64bc885b3b89171af8a177a83
Python
w5630507123/algorithm023
/Week_02/字母异位次分组.py
UTF-8
663
3.890625
4
[]
no_license
class Solution: def groupAnagrams(self, strs: List[str]) -> List[List[str]]: """ 思路同上,在Python中,这里涉及到3个知识点: 1. 使用内置的 defaultdict 字典设置默认值; 2. 内置的 ord 函数,计算ASCII值(等于chr)或Unicode值(等于unichr); 3. 列表不可哈希,不能作为字典的键,因此这里转为元组; """ str_dict = collections.defaultdict(list)...
true
4dc0ebaf88cacc3b7f7278fae8760ae66e92823f
Python
ankityadavv2014/SecSheets
/Binary Exploitation/BufferOverflows/scripts/simple_remote_fuzzer.py
UTF-8
1,031
3.09375
3
[]
no_license
#!/usr/bin/python3 import sys, socket from time import sleep """ --> A Simple python3 remote server buffer overflow fuzzer -> Helps save time determining at what byte size a given buffer overflowe -> Tweak to your needs """ current_buffer = "A" * 100 # Arbitary inital buffer length --> Should be adapted on a...
true
9bf7c82519ceea39f73acadc46b97a5fc35fdd5e
Python
ghpaetzold/phd-backup
/cwi/scripts/analysis/get_complex_counts.py
UTF-8
195
2.78125
3
[]
no_license
import sys file = sys.argv[1] c = 0 t = 0 f = open(file) for line in f: t += 1 data = line.strip().split('\t') label = data[3] if label=='1': c += 1 f.close() print(str(c)) print(str(t))
true
a4f1275202b75472147804a692c10094d66f7924
Python
SgrrZhf/at_command_mcu
/tools/serial_monitor.py
UTF-8
974
2.984375
3
[ "MIT" ]
permissive
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import serial import time import argparse def main(): parse = argparse.ArgumentParser(description="serial log tool") parse.add_argument('-p', '--port', action='store', type=str, dest='port', help="serial port") parse.add_argument('-b',...
true
c47e6e60368f0fc03b81008887961f861d61c0dd
Python
Jeffreychen99/20XX_Trader
/order.py
UTF-8
2,202
2.984375
3
[]
no_license
from config_20XX import * # Should not directly use the Order class class Order: def __init__(self, symbol, action, qty=0): self.symbol = symbol.upper() self.action = action.upper() self.qty = qty self.filled_qty = 0 self.active = False def validate(self): assert type(self.qty) == float or type(self.qty...
true
3474f00bc48d613eebfae4dc478c42cf5df2b98c
Python
doxeylab/evoclust3d
/code/updatepdbxml.py
UTF-8
3,727
2.96875
3
[]
no_license
#################################################################################################### # # # PROJECT Protein Adaptation # # Scrip...
true
4e1e5d011c722b5b50b0aeca7cc9d051313cb148
Python
tarvitz/Grey-Hat-Python
/firefox_hook.py
UTF-8
1,704
2.640625
3
[]
no_license
# firefox_hook.py from pydbg import * from pydbg.defines import * import utils import sys dbg = pydbg() found_firefox = False # Let's set a global pattern that we can make the hook search for pattern = "password" # This is our entry hook callback function # the argument we are interested in is arg[...
true
6b1ac21fd6ae2a823e104b2960ba28ef19c79bea
Python
GeForce98/Python-Exercises
/Challenge 6.py
UTF-8
2,928
3.453125
3
[]
no_license
#Quincy Asemota #Weekly Assignment 9 import sqlite3 import codecs #Welcome Message def print_header(): print('This program is designed to create a student databe for SUNY undergraduate body.') print('The program will create a student database and will populate it with random values for each student -...
true
1637d82457c6e8d05aea6f4f6a6afb9fa6a30003
Python
Mong-Gu/PS
/baekjoon/14561.py
UTF-8
736
3.453125
3
[]
no_license
# 이거 왜 성공 안되는거지? 테스트케이스는 다 통과하는데? def convert(n, base): T = '0123456789ABCDE' q, r = divmod(n, base) if q == 0: return T[r] else: return convert(q, base) + T[r] if __name__ == "__main__": t = int(input()) for i in range(t): n, base = map(int, input().split()) t...
true
0a5c0ab877d06586ca100c30f84ec3cdde4979b7
Python
prasanthkc777/CooperTraining_daily_Tasks
/Day_9/Maximum_stamina.py
UTF-8
340
2.734375
3
[]
no_license
myinp=int(input()) arr=list(map(int,input().split())) myarr=[] for i in range(myinp-1): checkmax=arr[i] eval_out=str(arr[i]) for j in range(i+1,myinp): if arr[j]>checkmax: checkmax=arr[j] eval_out+='^'+str(arr[j]) myarr.append(eval(eval_out)) myarr.append(arr[-1])...
true
3861682bc27b1e1f600c9ae697e29543c4b7bd73
Python
luafran/exercises
/python/score.py
UTF-8
1,586
3.46875
3
[]
no_license
import unittest def is_number(s): try: int(s) return True except ValueError: return False def total_score(blocks, n): scores = [] for symbol in blocks: if not isinstance(symbol, str): continue if is_number(symbol): scores.append(int(sy...
true
3a6846e4fac4a7bf922327cf933dc07031d42bf9
Python
nuffer/arduino_firmwares
/home_iot/py_plot/main.py
UTF-8
1,082
2.59375
3
[]
no_license
import thingspeak import json import matplotlib.pyplot as plt ch = thingspeak.Channel(614816,api_key='TJO9VK7CO3M5V9BA') results = ch.get({'results': 100}) results = json.loads(results) data = results['feeds'] time_A = [] Pressure_A = [] Temperature_A = [] time_B = [] Pressure_B = [] Temperature_B = [] time_C = ...
true
eca265bfb5efaefb727ad7cc38e3971e239c3fb5
Python
Peiffap/lingi2261-assignments
/assignment3/squadro_no_GUI.py
UTF-8
1,407
3.296875
3
[ "MIT" ]
permissive
import argparse from squadro_state import SquadroState """ Runs the game """ def main(agent_0, agent_1, first): # Initialisation cur_state = SquadroState() if first != -1: cur_state.cur_player = first agents = [getattr(__import__(agent_0), 'MyAgent')(), getattr(__import__(agent_1), 'MyAgent')()] agents[0].set_i...
true
c0ada8cc47fa9f2a2fa8382e5b3c4281deb298af
Python
uguruysal0/itucourses
/Computer Vision/hw4/q1.py
UTF-8
2,744
2.59375
3
[]
no_license
from PyQt5.QtWidgets import * from PyQt5.QtGui import * from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas import matplotlib.image as mpimg from matplotlib.figure import Figure import numpy as np import sys import cv2 import corner class UI(QMainWindow): def __init__(self): ...
true
c52c8678395eb77dae573c17c54c05ead4ece78b
Python
joanneli-bc/pokemon-cli
/pokemon.py
UTF-8
6,903
3.3125
3
[]
no_license
import requests import argparse import json import logging logger = logging.getLogger() logging.basicConfig(level=logging.INFO) POKEAPI_URL_BASE = "https://pokeapi.co/api/v2/" def lookup_pokemon(pokemon, version_group): """ Looks up a Pokemon given by name or dex number, then collects the moves it can learn (...
true
2e9f5e5a1035d86c97358592aebc876fdc2c2a1f
Python
tchittesh/ddr_cv
/getHomography.py
UTF-8
1,124
2.640625
3
[]
no_license
import cv2 import numpy as np def getHomography(cap, gridSize): '''Prompt input of four corners and compute homography.''' pts1 = [] def get_point(event, x, y, flags, param): if event == cv2.EVENT_LBUTTONUP: pts1.append([x,y]) cv2.namedWindow('init') cv2.setMouseCallback('init...
true
f868809a5258bcc44fbc4e577fdc74b42e13ad94
Python
SMinTexas/cap_hello
/hello2.py
UTF-8
275
4.78125
5
[]
no_license
#Prompt for a user's name #Print the entered name in CAPS #Count the number of characters in the name and print that out as well name = input('WHAT IS YOUR NAME? ') char_count = len(name) print(f'HELLO, {name}!') print(f'YOUR NAME HAS {char_count} LETTERS IN IT! AWESOME!')
true
c96487cab8bbbd9fdae896309650080c386cc156
Python
Quikcall/Python-Ganda-Galo
/GandaGaloEngine.py
UTF-8
3,248
3.328125
3
[]
no_license
# -*- coding:utf-8 -*- ''' Created on 1/12/2018 @author: valves ''' class GandaGaloEngine: def __init__(self): self.linhas = 0 self.colunas = 0 self.tabuleiro = [] #matriz que representa o puzzle self.jogadas = [] def ler_tabuleiro_ficheiro(self, ...
true
efb296cadc8f15604443b3fdf66325f598d7ae98
Python
edlanglois/gym-utils
/tests/gym_utils/test_env_wrappers.py
UTF-8
6,571
2.78125
3
[ "MIT" ]
permissive
import pytest import numpy as np import gym from gym import spaces from gym_utils import env_wrappers flat_box_test_spaces = [ (spaces.Box(0, 1, ()), 1), (spaces.Box(0, 1, (0, )), 0), (spaces.Box(0, 1, (4, )), 4), (spaces.Box(0, 1, (2, 3)), 6), (spaces.Discrete(5), 5), (spaces.Tuple((spaces.B...
true
c5afbca8d6a9cec74f42d40c50380854ace06d25
Python
qzq2514/GAN
/Mnist_Based/LapGAN/net/LapGAN_mnist.py
UTF-8
11,624
2.59375
3
[]
no_license
import tensorflow as tf import numpy as np #正宗的LapGAN,适用于MNIST上的包含三级、二级甚至一级的模式 #使用dropout效果会更好 class LapGAN_mnist: def __init__(self,real_data_placeholder,z_prior_placeholders, label_placeholder,keep_prob,is_training, z_priors_size,smooth): self.real_data = real_...
true
ca0b37c1949a30ff880579969d0b3309f1217f16
Python
adamcathersides/midi-webmixer
/mixer/redis_store.py
UTF-8
422
2.84375
3
[]
no_license
import redis import json class data: def __init__(self, redis_host='localhost', redis_port=6379): self.redis = redis.Redis(host=redis_host, port=redis_port, db=0) def set(self, key, data): return self.redis.set(key, json.dumps(data)) def get(self, key): try: d = j...
true
d59fe0cdc97159b800f621fe3383731576409ce9
Python
ar95314/GUVI
/0000101.py
UTF-8
150
3.203125
3
[]
no_license
s11, s12 = input().split() c = 0 for i in range(len(s11)) : if s11[i] != s12[i] : c += 1 if c == 1 : print('yes') else : print('no')
true
9e8f3b42aeeba8dd8486cb3b1ebc8a6a6361b887
Python
Kopylov-Oleg/python3-weather
/weather.py
UTF-8
5,759
3.125
3
[]
no_license
from tkinter import * from tkinter import messagebox from weather_logic import * from canvas import gui import time class WeatherApp(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.master.rowconfigure(0, weight=1) self.master.columnconfigure(0, weight=1) ...
true
8764d388e94eab33029ef9f0b6de884ec906f4b4
Python
Kanres-GH/Pokolenie-Python-Stepik
/Списки/Вывод элементов списка/Remove outliers.py
UTF-8
143
3.609375
4
[]
no_license
n = int(input()) l = list() for i in range(n): s = int(input()) l.append(s) l.remove(max(l)) l.remove(min(l)) print(*l,sep='\n')
true
4aadbf0c79bf4de083e28a208775c9fe450b3a39
Python
colorzzr/indoc_research
/main.py
UTF-8
4,804
3.71875
4
[]
no_license
import csv import matplotlib.pyplot as plt import sys from typing import List def read_csv_file(file_name: str) -> List[List[str]]: lines = csv.reader(open(file_name)) data = list(lines) return data # we follow the format as present below: # 1. sepal length in cm # 2. sepal width in cm # 3. petal ...
true
ebc667554a63299792b83306ac008e531dc24545
Python
jcjohnson/pytorch-multinomial-benchmark
/benchmark_multinomial.py
UTF-8
2,934
2.75
3
[]
no_license
import os, argparse, json, random, time import torch import numpy as np def int_list(s): return [int(x) for x in s.split(',')] parser = argparse.ArgumentParser() parser.add_argument('--N', type=int_list, default=[1, 2, 4, 8, 16, 32, 64, 128]) parser.add_argument('--C', type=int_list, default=[...
true
ea2c7b0e4592199d066111b02baa6928011d0fe4
Python
aserbezo/-Loops
/Loops/While Loops/07. Min Number.py
UTF-8
166
3.140625
3
[]
no_license
import sys min_num = sys.maxsize num = input() while num != "Stop": num = int(num) if num < min_num: min_num = num num = input() print(min_num)
true
4cf4f84dfe157d89d7d094852237b8ce63080539
Python
abhiramr/Everything_Python
/Concepts/decorator_call_1.py
UTF-8
550
3.90625
4
[]
no_license
##Illustrating the decorator call concept # Example 1 from decorator import decorator_func from datetime import datetime def dec_call(): print("This is implemented using the bald representation for decorators.") def non_decorator_call(): print("This is called without using a decorator.") @decorator_func def ...
true
858fcf1a4711d39cc17f5070e15a592ad4f93124
Python
Tajallah/dictionary.com-scraper
/main.py
UTF-8
1,208
2.578125
3
[]
no_license
from urllib.request import urlopen from bs4 import BeautifulSoup as beausu class wotd: word = '' alt_spellings = '' pos = [] defs = [] def __init__(self): dicc = urlopen('http://www.dictionary.com/') soup = beausu(dicc, 'html.parser') ...
true
a8feb9850cbe64f7b00bf15d8dac4be797db9c31
Python
samuelpulfer/icinga-flashlight
/bin/blinkdingsdo.py
UTF-8
5,168
2.703125
3
[ "MIT" ]
permissive
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys, time, socket, logging, signal import RPi.GPIO as GPIO from threading import Thread from daemon import Daemon def blinkdingsdo(): HOST = '' # Symbolic name meaning all available interfaces PORT = 8888 # Arbitrary non-privileged port logfile = '/var/log/b...
true
1b5581ca457746fb262133596ee1a1de9f96cc00
Python
akshayjagtap/python
/file_op1.py
UTF-8
251
2.515625
3
[]
no_license
import sys import time y = str(sys.argv) var = [sys.argv[1],sys.argv[2],sys.argv[3]] t = time.time() print t for name in var: name = name + '_%s' % (t) + '.txt' print name file = open (name,'w') file.write("This file is for me.") file.close()
true
628a5763f178ee2018a8843e32927aa924a7b9b5
Python
MyrionSC/scripts
/camelcase-test/test-camelcase.py
UTF-8
800
3.578125
4
[]
no_license
#!/usr/bin/env python3 import os out = [l.strip() for l in open("out.txt", "r").readlines()] correct = [l.strip() for l in open("correct.txt", "r").readlines()] # check if correct number of lines if len(out) != len(correct): print("out.txt is " + str(len(out)) + " lines but correct.txt is " + str(len(correct)) +...
true
36f45d12c4a1d2eb067a9be275f3d4bf2f922565
Python
rimjhimroy/katacoda-scenarios-1
/machine-learning-python/machine-learning-chapter-06/assets/harness_train_test.py
UTF-8
3,177
4.21875
4
[]
no_license
# %% # Example of a Train-Test Test Harness from random import seed from random import randrange from csv import reader # %% ''' ## Train-Test Algorithm Test Harness The train-test split is a simple resampling method that can be used to evaluate a machine learning algorithm. As such, it is a good starting point for d...
true
afba5d34e52a59c51f20060bdaa6384f751caecd
Python
gistable/gistable
/all-gists/6027517/snippet.py
UTF-8
132
3.140625
3
[ "MIT" ]
permissive
def get_key_from_dict_by_value(dictionary, value): for k in dictionary: if dictionary[k] == value: return k
true
e31c29013398c2dc897b56ab3f010fb4ab620e79
Python
lachtan/mblib
/mbl/io/_timeout.py
UTF-8
1,159
2.828125
3
[]
no_license
from __future__ import absolute_import class TimeoutError(StandardError): pass class Timeout(object): BLOCK = None NONBLOCK = 0 def __init__(self, timeout): if isinstance(timeout, Timeout): self.__timeout = timeout.timeout() return if timeout is None: self.__timeout = Timeout.BLOCK return el...
true
e286e402d8deddc4da5addbd14cf5d9499a3d8f2
Python
nikhil-kathuria/machine_learning_cs6140
/Assignment_5/PollutedRegression.py
UTF-8
3,445
3.15625
3
[]
no_license
import pyliblinear # import sys # import numpy as np # import math from ReadPolluted import readData, readLabels from Regression import checkGradient, ridgeGradient, predict, sigmoidVector, accCalc from normalizedata import normalize def runRidge(traindata, trainlabels, testdata, testlabels): # Normalize test a...
true
ffc00bfe25977bb7d1b31013d8f2e03f701c165b
Python
spkapust/Nand-to-Tetris
/project10/JackAnalyzer.py
UTF-8
1,551
2.6875
3
[]
no_license
import sys, re, glob, os from JackTokenizer import JackTokenizer from CompilationEngine import CompilationEngine path = sys.argv[1] jackFiles = [] if os.path.isfile(path): jackFiles.append(path) else: for root, dirs, files in os.walk(path): for file in files: if file.endswith(".ja...
true
f65b2cd59f895c381edb2c1cecdce4994f0b68f6
Python
romsala/Pipboy
/PipboyInterface/Options.py
UTF-8
2,038
2.59375
3
[]
no_license
import pygame from pygame.locals import* import Global, sys pygame.init() police = pygame.font.SysFont("monospace", 20) DEBUT = 70 def InitOptions(fenetre): fenetre.fill((0, 0, 0)) top = pygame.image.load("Interface/Options/Options-top-green.png") if Global.COLOR.r == 255: top = pygame.image.lo...
true
9a9ade2a7dd132f29f85fb889af792c1bb178b1c
Python
tyrelkostyk/CMPT145
/Ass_04/QueueTwo.py
UTF-8
2,542
3.796875
4
[]
no_license
## Tyrel Kostyk, tck290, 11216033 ## CMPT145-04, Lab Section 04 ## a4q1.py, due Friday Feb 9th 10pm import TStack as Stack def create(): """ Purpose creates an empty queue Return an empty queue """ q2 = {} q2['e-stack'] = Stack.create() print('e-stack:', q2['e-stack']) ...
true
e3048d47599bc2ad15d4c302697828bad25953bc
Python
ddrmax/swiftshader-ex
/third_party/LLVM/test/Scripts/common_dump.py
UTF-8
1,441
3.234375
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "NCSA" ]
permissive
def dataToHex(d): """ Convert the raw data in 'd' to an hex string with a space every 4 bytes. """ bytes = [] for i,c in enumerate(d): byte = ord(c) hex_byte = hex(byte)[2:] if byte <= 0xf: hex_byte = '0' + hex_byte if i % 4 == 3: hex_byte += ' ' ...
true
c7113ac3bf7d62e4aec047ac2c5304fa72003bf6
Python
the-iconic-rihan/snake-water-gun-game
/casino game.py
UTF-8
5,008
3.109375
3
[]
no_license
import time import random current=0 def winner(): global price global bet_amount global Name if a==num: with open("myacc.txt","a") as f: string=" " string +=str("\n") string +=str("\n Account Details : ") string +=str("\n") string += str(" You has credited :- ")+ str(" ")+ str(price) f.write(str...
true
00d0ef9a50ce9cab259587cc5f3a1caec0310817
Python
huangdaye001/py-study
/huXiu/huXiu/pipelines.py
UTF-8
816
2.609375
3
[]
no_license
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import os import csv class HuxiuPipeline(object): def __init__(self): store_file=os.path.dirname(__file__)+'/spide...
true
de835381a10489e21918df76499281b4cca2df3e
Python
unixcypher/learn-py-chess
/learn-chess.py
UTF-8
1,575
3.890625
4
[]
no_license
import subprocess as sp import os def person(info): return info sp.call('clear') f_name = input("Enter your first name: ") l_name = input("Enter your last name: ") age = input("Enter your age: ") skill = input("From 1-10 How do you rate your Chess Game?: ") sp.call('clear') print(person("Name: " + f_name + " " + l_n...
true
edc513d18d85ba909cc83791aaaa7f1f7e08195f
Python
cmdellinger/Code-Fights
/Interview Practice/02 Linked Lists/02 isListPalindrome/isListPalindrome recursion.py
UTF-8
931
3.859375
4
[]
no_license
""" Codefights: Interview Prep - isListPalindrome.py Written by cmdellinger Checks if a singly linked list is a palindrome. """ # Definition for singly-linked list: # class ListNode(object): # def __init__(self, x): # self.value = x # self.next = None # ''' works for most tests: Sample tests: 11...
true
aa9f5d404e9090780d1499057e89c8fe8ac1b79a
Python
way2muchnoise/Advent2017
/day15/part2.py
UTF-8
783
3.171875
3
[]
no_license
f = open('input.txt', 'r') lines = f.readlines() f.close() factor_a = 16807 factor_b = 48271 max_int = 2147483647 start_a = int(lines[0].replace('\n', '').split(' ')[-1]) a = int((start_a * factor_a) % max_int) while a % 4 != 0: a = int((a * factor_a) % max_int) start_b = int(lines[1].replace('\n', '').split(' ')...
true
8324807be54b0f6713c9ae15c343e88bcf00f7c1
Python
kimdg1105/Algorithm_Solving
/BOJ/1012.py
UTF-8
1,057
2.9375
3
[]
no_license
from collections import deque dx = [-1, 1, 0, 0] dy = [0, 0, -1, 1] def bfs(x,y): dq = deque() dq.append((x,y)) visited[x][y] = True while dq: x,y = dq.popleft() if field[x][y] == 0: continue for i in range(4): nx = x + dx[i] ny = y + dy[i] ...
true
edb2ff20525996dd7d5f785d698fd604194b4484
Python
wll126/python_test_workspace
/TestFlask/com/ll/mongodb/test_mongodb.py
UTF-8
923
2.71875
3
[]
no_license
# !/usr/bin/python # coding:utf8 from pymongo import MongoClient host,port = "192.168.133.129", 27017 # 创建mongodb 连接 conn=MongoClient(host=host,port=port) db=conn.mydb # 连接mydb数据库,如果没有则创建 my_set=db.my_set # 使用my_set集合,没有则创建 my_set.insert_one({"name":"zhangsan","age":18}) # my_set.save({"name":"lisi","age":19}) # 插...
true
db915ee827337c196cfd47fbe4b6db334f04d999
Python
LiXiao-Py/Five_stars
/Five_stars.py
UTF-8
354
3.703125
4
[ "MIT" ]
permissive
# -*- encoding:utf-8 -*- # Draw a 5-pointed star import turtle import time turtle.color("red") turtle.goto(0,0) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.right(144) turtle.forward(100) turtle.goto(144,0) turtle.write("...
true
c368c1818411430fcfa5a8b2d0d6ee0c50ac316e
Python
Accessible-Technology-in-Sign/ASLRT
/SequentialClassification/main/python_mediapipe/feature_extraction_mediapipe.py
UTF-8
8,118
2.75
3
[]
no_license
#!/usr/bin/env python # coding: utf-8 import os import glob import sys import argparse import numpy as np from scipy.interpolate import CubicSpline def get_coords(arr, coords): return [arr[i] for i in coords] def hand_pos(**kwargs): if kwargs['three_dim']: return get_coords(kwargs...
true
eac1fd9caf85f900bbcccc8f4ddc32505aa15339
Python
pybites/challenges
/20/dseptem/rooms/dantes_adventure.py
UTF-8
2,130
3.515625
4
[ "MIT" ]
permissive
from boxes import Actor, Room, EndActor class Level(object): """Instantiates all the rooms and actors for the game. Must have an EndActor in a reachable Room, with a proper and acquirable item_trigger to win the game After Rooms have been instantiated, 'doors' must be created by using room.add_destination...
true
c127b02cde50aefd67cb905cbcc680829e8c57e6
Python
tianchuxie/Machine_Learning
/Machine_Learning_skLearn_py/project3/task_3.py
UTF-8
2,146
2.625
3
[]
no_license
##Tianchu Xie # 113148828 # Project 1 import matplotlib.pyplot as plt import numpy as np from sklearn import datasets from sklearn.cross_validation import train_test_split from sklearn.naive_bayes import GaussianNB from sklearn.metrics import accuracy_score, confusion_matrix from sklearn import svm from sklear...
true
43f87c0d4537b80532db5049db1b946f19a70876
Python
astradzhao/advent2020
/day12prob.py
UTF-8
1,658
3.359375
3
[]
no_license
import re import math from itertools import cycle #part 1 algorithm ewVal = 0 nsVal = 0 #0 = N, 90 = E, 180 = S, 270 = W cDir = 90 dList = [] f = open("day12input.txt", "r") for line in f: lLine = re.split('(\d+)', line) dList.append([lLine[0], lLine[1]]) for i in dList: c = i[0] a = int(i[1]) if...
true
f227379856bf1c4659d539a06241d7699795faa0
Python
osipov-andrey/various_tasks
/ITVDN_Python_Advanced/001_work_with_web/001_Samples/sockets/simple/udp/example1_udp_server.py
UTF-8
336
2.953125
3
[]
no_license
# example 1 (UDP server socket) import socket # создаем UDP-сокет sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # резервируем порт 8888 sock.bind(('', 8888)) # читаем 1024 байт result = sock.recv(1024) print('Message', result.decode('utf-8')) # закрываем сокет sock.close()
true
95e19c84d5a8838e3d9fe33f9a47253118acd256
Python
raysales/treehouse-festival-level-up-your-code
/map.py
UTF-8
690
4.5
4
[]
no_license
# What does it do? # map() applies a function to an iterable flowers = ['sunflower', 'daisy', 'rose', 'peony'] # regular loop plural = [] for flower in flowers: if flower[-1] == 'y': plural.append(flower[:(len(flower) -1)] + 'ies') else: plural.append(flower + 's') print(plural) # map() def ...
true
28b6f3162d61ebb02bc0de23636afff465250216
Python
jhb/neo4j-experiements
/query_friends_python.py
UTF-8
962
2.78125
3
[]
no_license
import cPickle, sys,time,random if len(sys.argv) < 5: print 'usage:%s filename number_of_persons number_of_hops repetitions' % sys.argv[0] sys.exit() filename,namerange,pathlength,repeats = sys.argv[1:5] namerange = int(namerange) pathlength=int(pathlength) repeats = int(repeats) print 'reading' friends = c...
true
f669c61b2a6643789e94cdac1047124f72838bae
Python
diegobassay/python-video-integration
/app/consumer.py
UTF-8
1,090
2.546875
3
[]
no_license
import os import pika import json import requests from .config import endpoints_config def processing_video_cut(ch, method, properties, body): """Invocado pelo consumidor assim que é detectado um objeto na fila do RabbitMQ""" data = json.loads(body) end_point_cut = 'cutvideo' url_to_cut = 'http://{}:{}/{}'.forma...
true
da69748a6c0a2748456424b346213cd2cbb8aac4
Python
okas832/JSDT
/mutator/js_mutator.py
UTF-8
9,920
2.609375
3
[]
no_license
#python=3.7 import esprima from esprima.scanner import RegExp import json import os import re import pexpect import requests import atexit from random import randrange, choice, seed esprima_expr = [ esprima.Syntax.ThisExpression, esprima.Syntax.Identifier, esprima.Syntax.Literal, esprima.Syntax.Array...
true
646076b3446675ea20e2db234e40141c055d2c3b
Python
jennvlasiu/deeplearning
/ImageGenerationPipeline/generate_vehicle_place_image.py
UTF-8
10,460
2.546875
3
[]
no_license
# Create Python file which will be used as an input for the Dataflow job from __future__ import absolute_import import pandas as pd import matplotlib matplotlib.use('Agg') from google.cloud import bigquery import matplotlib.pyplot as plt import io from io import StringIO import base64 import gc import argparse import...
true
2a4d2255702eaa5c89fdd998588972a0b85cbc5b
Python
Ryan-T-Bell/python-data-structures-and-algorithms
/stack.py
UTF-8
736
4.21875
4
[]
no_license
# Implements Stack AKA Last in, First Out "LIFO" Queue class Stack(): def __init__(self): self.elements = [] def is_empty(self): return self.elements == [] def size(self): return len(self.elements) def insert(self, element): self.elements.append(element) retu...
true
d8077180ffbe02ff1777be21b2e79fa15dcd112d
Python
codingame-team/Flask
/geocoding_functions.py
UTF-8
4,234
2.84375
3
[]
no_license
# coding: utf-8 from mapbox import Geocoder import requests import sys # # Fonction MapBox de "forward geocoding" pour récupérer les coordonnées GPS d'une adresse donnée # Se base sur des services commerciaux (mais gratuit pour 100.000 requêtes HTTP par mois) # https://docs.mapbox.com/api/search/#geocoding # Marche ...
true
81fb27b95ba0d74fcf80132f50c78f1d693baaeb
Python
toledoneto/Python-TensorFlow
/02 TensorFlow Basics/10. Saving and Restoring Models.py
UTF-8
2,019
3.546875
4
[]
no_license
import numpy as np import tensorflow as tf import matplotlib.pyplot as plt np.random.seed(101) tf.set_random_seed(101) # Full Network Example # # Let's work on a regression example, we are trying to solve a very simple equation: # # y = mx + b # # y will be the y_labels and x is the x_data. We are trying to figure o...
true
745dbf788c0fe739e9ecbff2d33bb5a326f410ae
Python
jaeyoung-jane-choi/2019_Indiana_University
/Intro-to-Programming/lab14/lab14-mostOfTheFunctions.py
UTF-8
3,545
4.09375
4
[]
no_license
#"A201 / Fall 2019", "Lab Task 14", Jane Choi, janechoi #A def bisect(pinput): """takes an argument of any type and returns half of the argument Any type -> same type as inputed""" try : result = pinput/2 #when error occurs except : #try again try: ...
true
cc4608203720c21181be22c10328e313ee1667d0
Python
mrevans1/advent-of-code
/2020/23.py
UTF-8
2,333
3.59375
4
[ "MIT" ]
permissive
import time class CircularList: def __init__(self, nodes): node = Node(value=nodes.pop(0)) self.__node_dict = {node.value: node} self.head = node for elem in nodes: node.next = Node(value=elem) node = node.next self.__node_dict[elem] = node ...
true
d72d17b371df7fcd6ac8e08be463de5c6b00e9f3
Python
daniilstudent/working_1
/individual_3.py
UTF-8
874
3.6875
4
[ "MIT" ]
permissive
s=int(input("Введите сумму денег, которую должен заплатить покупатель: ")) if s>0: a1=s//500 k1=s-a1*500 print("Количество купюр номиналом 500р: ", a1) a2=k1//100 k2=k1-a2*100 print("Количество купюр номиналом 100р: ", a2) a3=k2//10 k3=k2-a3*10 print("Количество купюр номиналом 10р: ...
true
e6393d972bbc839c1e1eb2cc560da433dfab7a8f
Python
bigWaitForItOh/Classic-Problems
/edit_distance/python/edit_dist_dp.py
UTF-8
1,017
3.734375
4
[]
no_license
########################################################################################################################### #Dynamic Programming implementation of Edit Distance Algorithm #Complexity: # Time: O (mn) # Space: O (mn) #m = length of string1, n = length of string2 ###########################################...
true
e687ebbe07ec91dc9cd67f70aeada747946ea3fb
Python
kevhahn97/PPO-Futures-trader
/future_trading_env_discrete.py
UTF-8
40,034
2.90625
3
[]
no_license
import sqlite3 import math from typing import Optional, Tuple import gym from gym import spaces, logger from gym.utils import seeding import numpy as np class FutureTradingEnvDiscrete(gym.Env): """ Description: Future chart data is prepared for given term. Not only Future charts, any charts of an ass...
true
adf81c45706cde426da9bc30637ddc3df6b20035
Python
oonisim/python-programs
/nlp/src/layer/sequential.py
UTF-8
4,914
3.203125
3
[]
no_license
"""A layer of sequence of layers A sequence of layers is yet another layer which has the same signature of a layer. The difference is each I/F is a composite of the layers in the sequence. Hereafter, this sequential layer is called 'container' or 'container layer'. layer function F: F=(fn-1 o ... fi o ... o f0) wh...
true
cd8b3f68413e46cd8a23e8e273638dda5080122a
Python
lradebe/simple_programming_problems
/sum_of_list.py
UTF-8
593
4
4
[]
no_license
sum = 0 def for_sum_of_list(list): global sum for number in list: sum += number print(sum) def while_sum_of_list(list): global sum for number in list: while number != list[-1] or number is list[-1]: sum += number break print(sum) def recursive_sum_of_li...
true
65c80aeb1c57f6648bcc9203fcb36ae673a900ee
Python
liamzebedee/spotify-automix
/main.py
UTF-8
1,913
2.546875
3
[]
no_license
import spotify import threading from sets import Set import logging # logging.basicConfig(level=logging.DEBUG) def interact(): import code code.InteractiveConsole(locals=globals()).interact() playlist = None USERNAME = "" PASSWORD = "" PLAYLIST_SPOTIFY_URI = "spotify:user:liamzebedee:playlist:1YO3OxtmY10zZcj5u8Gw...
true
9f009ee20cd098ef019302d28e62c8729c83b226
Python
Cijams/pyDataStructures
/pyStack/PyStack.py
UTF-8
978
4.21875
4
[]
no_license
""" Christopher Ijams 2019 Stack Linear data structure ordered by last in first out methodology. """ class PyStack: def __init__(self): self.stack = [] def __str__(self): definition = "" for e in range(len(self.stack)): definition += str(self.stack[e]) definiti...
true
269d047a2952f5159860c607684834225cc731bd
Python
IshchenkoMaksim/lab4
/primer2.py
UTF-8
478
3.390625
3
[ "MIT" ]
permissive
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys if __name__ == '__main__': n = int(input("Введите номер месяца: ")) if n == 1 or n == 2 or n == 12: print("Зима") elif n == 3 or n == 4 or n == 5: print("Весна") elif n == 6 or n == 7 or n == 8: print("Лето") elif n...
true
d7d2d104662d9a643fe509cae02413a75834717a
Python
adriamoya/bcpnews_ec2
/crawlers/crawlers.py
UTF-8
2,199
2.796875
3
[]
no_license
# -*- coding: utf-8 -*- import os import csv import boto3 import pandas as pd from io import StringIO from crawlers.article_scraper import ArticleScraper def process_all_newspapers(crawl_date): S3_BUCKET = "bluecaparticles" # Connection to s3 bucket BUCKET_NAME = "bluecaparticles" client = boto3.clie...
true
285924a054547f9cf3d4e8fdaa9deeb6fe5f4d37
Python
geniusboywonder/PY4E-Assignments
/Course 2 - Python Data Structures/Checkwords.py
UTF-8
290
3.59375
4
[]
no_license
fname = input("Enter a file name: ") try: fh = open(fname) except: print("File cannot be found: ", fname) quit() sword = input("Enter a search word: ") for line in fh: line = line.rstrip() if not line.startswith(sword) : continue words = line.split() print(words[1])
true
5f9d3ab64709c798e7a8f1e8a71788980e18e0bb
Python
dimitri-justeau/ncpippn_scripts
/easyplot/trupulse.py
UTF-8
5,402
2.578125
3
[]
no_license
# coding: utf-8 """ Module providing a wrapper around a RS232 connection with a TruPulse Laser. """ import threading import time import traceback import ppygui from ppygui.w32api import * import ceserial MESSAGE_TYPE_IDX = 1 HV_MESSAGE = 'HV' HT_MESSAGE = 'HT' # Horizontal vector indexes HD_VALUE = (2, 3) AZ_VALU...
true
63b524ec3db13f0d5cabbe94b11914eec379f077
Python
dpenfoldbrown/hpf
/hpf/test/amnh/oid.py
UTF-8
1,448
2.640625
3
[]
no_license
''' Created on Nov 3, 2010 @author: Patrick ''' import unittest from StringIO import StringIO from Bio.Nexus.Trees import Tree from hpf.amnh.oid import DiagCharsParser from collections import defaultdict diag_str = """ tree = (poplar#1104386,poplar#1107391) 0 0:M,1:E,2:P,3:AG,4:IK 1 3:G,4:I,8:D,9:S,15:I,1...
true
cfb50a07bda4ff341aa51da3c6b85ea54f4cb608
Python
marcelo-dev/projeto-pizza
/app/cadastro/signup.py
UTF-8
2,790
3.75
4
[]
no_license
def recebe_nome_usuario(): while True: nome = input("Digite seu nome: ") is_nome_alpha = nome.replace(" ","").isalpha() if is_nome_alpha: return nome else: print("Você escreveu seu nome mesmo?") print("{0}").format(nome) def recebe_numero_usu...
true
26a90bdb11677424740538c0e20e32a7ac7f35c3
Python
jessapp/book-bingo
/board.py
UTF-8
7,289
2.796875
3
[]
no_license
from flask import (Flask, jsonify, render_template, redirect, request, flash, session) from model import (User, BoardUser, Board, Genre, Square, SquareUser, Book, BookGenre, connect_to_db, db) from goodreads import (create_url, url_to_dict, get_title, get_author, ...
true
0f8ee273c75b82c5a96137d471903380eca497ee
Python
syurskyi/Learn_How_Python_Works_with_NoSql_Database_MongoDB_PyMongo
/Section 8 Introduction to PyMongo/src/score_example_update.py
UTF-8
776
2.796875
3
[]
no_license
import pymongo from pymongo import MongoClient from datetime import datetime # connect to host and server client = MongoClient('localhost', 27017) # connect to database myFirstE db = client.myFirstE # connect to collection stud1 = db.studs user_doc = [{ "username": "john", "dateofBirth": datetime(1947, 4, 12...
true
38193e3829d67a1d466e47b68a794c67fb254aeb
Python
ashish208/codes
/vs code/python/flavour.py
UTF-8
225
3.484375
3
[]
no_license
# take user input d= input("\n\n Enter your favourite ice cream flavour\n\n") #print data in desired form print("\n\n YOU LIKE",d, "flavour the most in the icecream") #wait for user to exit input("\n\n Please enter to Exit")
true
8ada6d15aa3df35962c7e23dc100d730b5e0d291
Python
Kedrigern/pyexample
/pyexample/hello.py
UTF-8
1,060
3.21875
3
[]
no_license
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- from os import path __dir__ = path.realpath(path.dirname(__file__)) __resource__ = path.join(__dir__, 'resources') class Hello: """ Example Hello class """ @staticmethod def say_hello(): """ Basic greating from class in static method """ return "Greatin...
true