seq_id
stringlengths
4
11
text
stringlengths
113
2.92M
repo_name
stringlengths
4
125
โŒ€
sub_path
stringlengths
3
214
file_name
stringlengths
3
160
file_ext
stringclasses
18 values
file_size_in_byte
int64
113
2.92M
program_lang
stringclasses
1 value
lang
stringclasses
93 values
doc_type
stringclasses
1 value
stars
int64
0
179k
โŒ€
dataset
stringclasses
3 values
pt
stringclasses
78 values
20484377775
from collections import Counter # initializing string test_str = "aabbbccde" # using collections.Counter() to get # count of each element in string res = Counter(test_str) # valuesList = list(res.values()) # # printing result # str1 = str(res) print(res) keysList = list(res.keys()) print(keysList) # pri...
prathammodi333/python-programs
pr1.py
pr1.py
py
407
python
en
code
0
github-code
36
34987945802
import sqlite3 import re from gcpTalent import create_company def sanitize_company_name(input_string): # Replace spaces with underscores sanitized_string = input_string.replace(' ', '_') # Remove special characters using regular expression sanitized_string = re.sub(r'[^a-zA-Z0-9_]', '', sanitized...
LoganOneal/job-scraper
gcp-talent/createCompanies.py
createCompanies.py
py
1,099
python
en
code
0
github-code
36
22840825846
import cv2 from skimage.measure import ransac from skimage.transform import ProjectiveTransform, AffineTransform import numpy as np class FeatureExtractor(object): def __init__(self, orbParam): self.kpData = [] self.orb = cv2.ORB_create(orbParam) def computeKpData(self, img): kp, des ...
naurunnahansa/SLAM_implementation
featureExtractor.py
featureExtractor.py
py
1,856
python
en
code
1
github-code
36
5728382872
from actions._base import BaseAction, Action import os from actions._base import ActionBase import asyncio class ExploitAction(ActionBase): async def __call__(self, *args, **kwargs): # await asyncio.sleep(0) rpc = await self.connect() for exploit in kwargs["service_info"]["exploits"]: ...
PoteeDev/scenario-manager
manager/actions/exploit/main.py
main.py
py
1,103
python
en
code
0
github-code
36
70807032423
import sys from collections import deque sys.stdin = open('input.txt') def bfs(start): global answer q = deque(start) while q: node = q.popleft() answer += visited[node[0]][node[1]] for k in range(4): y = node[0] + dr[k] x = node[1] + dc[k] i...
unho-lee/TIL
CodeTest/Python/SWEA/10966.py
10966.py
py
1,161
python
en
code
0
github-code
36
20715607582
# HAPPY NEW YEAR... or something. import re from collections import defaultdict from itertools import repeat DIRECTIONS = { 'se': (.5, 1), 'sw': (-.5, 1), 'nw': (-.5, -1), 'ne': (.5, -1), 'e': (1, 0), 'w': (-1, 0), } def find_tile(reference): reference = re.findall('se|sw|nw|ne|e|w', refer...
jonassjoh/AdventOfCode
2020/24/day24.py
day24.py
py
1,682
python
en
code
0
github-code
36
32001984091
class Solution: def __init__(self) -> None: self.memo={} def allPathsSourceTarget(self, graph: List[List[int]]) -> List[List[int]]: self.memo = {len(graph)-1:[[len(graph)-1]]} def calc(N): if N in self.memo: return self.memo[N] a = [] f...
plan-bug/LeetCode-Challenge
microcephalus7/medium/797.1.py
797.1.py
py
484
python
en
code
2
github-code
36
20112154408
import argparse import tflearn import numpy as np from processsing import Processing from training import Training class Prediction(): def __init__(self): # Construct the Neural Network classifier and start the learning phase training = Training() net = training.buildNN() self.mod...
Pierre-Assemat/DeepPoseIdentification
predictions/WorkInProgress/prediction_tflearn.py
prediction_tflearn.py
py
1,534
python
en
code
0
github-code
36
6163296593
''' Classe wordCloudGenerator que a partir de um conjunto de token gera uma nuvem de palavra Argumentos: text: lista de token (preferencilmente geradas pela classe pdfReader) (OBRIGATORIO) max_font_size: tamanho maximo das palavras na nuvem max_words: numero maximo de palavras na nuvem background_color: color de fundo...
InfoEduc/Automatizando-Pesquisas-Bibliometricas
wordCloudGenerator.py
wordCloudGenerator.py
py
1,515
python
pt
code
1
github-code
36
21818093229
import pickle from os import path import os import sys # obter o cominho do arquivo parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # ir para parent_dir sys.path.append(parent_dir) def historic_process(id_user, mensagem_from_bot): historic = [] file_name = f"{parent_dir}/historic/{id_...
lucashahnndev/Assistant-OS
src/historic.py
historic.py
py
990
python
en
code
2
github-code
36
20233976437
class Solution: def findMedianSortedArrays(self, nums1, nums2): nums = [] len1 = len(nums1) len2 = len(nums2) i = 0 j = 0 while i < len1 and j < len2: if nums1[i] < nums2[j]: nums.append(nums1[i]) i += 1 else: ...
geroge-gao/Algorithm
LeetCode/python/4_ๅฏปๆ‰พไธคไธชๆญฃๅบๆ•ฐไธญ็š„ไธญไฝๆ•ฐ.py
4_ๅฏปๆ‰พไธคไธชๆญฃๅบๆ•ฐไธญ็š„ไธญไฝๆ•ฐ.py
py
914
python
en
code
26
github-code
36
483065631
def headerForRequests(): header = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0", "Accept": "application/json, text/plain, */*", "Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2", ...
wengyuanpei/pandaInterfaceTest
parameter/locustParameter.py
locustParameter.py
py
1,076
python
en
code
0
github-code
36
19288984909
import tensorflow as tf import numpy as np from dataset import get_dataset, get_rotation_augmentor, get_translation_augmentor from model import build_model AUTOTUNE = tf.data.experimental.AUTOTUNE dataset, num_classes = get_dataset() model = build_model(num_classes) model.load_weights('./saved_weights/weights') rn...
wdecay/ShapeClassification
test_model.py
test_model.py
py
640
python
en
code
0
github-code
36
42245347977
#!/usr/bin/python # noinspection PyUnresolvedReferences import json import requests from yoctopuce.yocto_api import * from yoctopuce.yocto_display import * from yoctopuce.yocto_anbutton import * display_list = [] class SimpleXMBC(object): def __init__(self, host, port, user, password): self._password = ...
yoctopuce-examples/xbmc_remote
xbmc_remote.py
xbmc_remote.py
py
6,386
python
en
code
0
github-code
36
30722703381
#ํŒŒ์ด์ฌ ์ •๊ทœํ˜• ์—ฐ์Šต import re def RepresentObject(obj): if obj: print("Match found : ", obj.group()); #group์ด๋ž€? -> ์ •๊ทœ ํ‘œํ˜„์‹์„ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๊ทธ๋ฃน์œผ๋กœ ๋‚˜๋ˆŒ ์ˆ˜ ์žˆ์Œ. ์ด๋•Œ group(number) ๋งค๊ฐœ๋ณ€์ˆ˜ number์— ๋”ฐ๋ผ ํ•ด๋‹น ๊ทธ๋ฃน๋งŒ ํ‘œํ˜„๋˜๊ฒŒ ํ•  ์ˆ˜ ์žˆ์Œ. ์˜ˆ๋ฅผ ๋“ค์–ด group(1)์ด๋ผ๊ณ  ํ•˜๋ฉด ์ฒซ๋ฒˆ์งธ ๊ทธ๋ฃน์— ํ•ด๋‹น๋˜๋Š” ๊ฐ์ฒด๋“ค๋งŒ ๋ฐ˜ํ™˜๋˜๊ฒŒ ๋จ. else: print("Not match"); #match - ๋ฌธ์ž์—ด์˜ ์ฒ˜์Œ๋ถ€ํ„ฐ ์ •๊ทœ์‹๊ณผ ๋งค์น˜๋˜๋Š” ...
Hoony0321/Algorithm
2022_02/11/์ •๊ทœํ‘œํ˜„์‹๊ณต๋ถ€.py
์ •๊ทœํ‘œํ˜„์‹๊ณต๋ถ€.py
py
3,814
python
ko
code
0
github-code
36
7034071052
def equalStacks(h1, h2, h3): heights = [sum(h1), sum(h2), sum(h3)] while heights[0] != heights[1] or heights[1] != heights[2]: max_height = max(heights) max_index = heights.index(max_height) if max_index == 0: heights[0] -= h1.pop(0) elif max_index == 1: h...
TheArchons/Leetcode
hackerrank/Datastructures/Stacks/EqualStacks.py
EqualStacks.py
py
419
python
en
code
1
github-code
36
5511991110
import os from re import M, search from unicodedata import category import requests import json import psycopg2 import itertools from flask import Flask, render_template, request, flash, redirect, session, g, jsonify,url_for,abort from sqlalchemy.exc import IntegrityError from forms import LoginForm, UserAddForm, P...
MITHIRI1/Capstone-Project-1
app.py
app.py
py
8,123
python
en
code
0
github-code
36
24300694321
from pyspark import SparkContext, SparkConf from pyspark.sql import SQLContext, DataFrame from pyspark.sql.functions import lit from pyspark.sql.functions import split, explode, monotonically_increasing_id import numpy as np from numpy import linalg as LA from scipy.sparse import csr_matrix import json import datetim...
SebasAndres/Recomendadores
src/sar/models/sar.py
sar.py
py
8,299
python
en
code
0
github-code
36
6301592120
# !/user/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/5/12 21:11 # @Author : chineseluo # @Email : 848257135@qq.com # @File : run.py # @Software: PyCharm import os from Common.publicMethod import PubMethod import logging from selenium.webdriver.common.by import By from Base.baseBy import BaseBy pub_...
chineseluo/app_auto_frame_v1
ActivityObject/elemParams.py
elemParams.py
py
5,248
python
en
code
11
github-code
36
39585567433
#0<xt<1 #0<r<4 r1=float(input("0 ila 4 arasฤฑnda bir r deฤŸeri girin.")) xรถ=0.1 for i in range(0,100): print(i,xรถ) a=1-xรถ xs=(r1*xรถ)*a xรถ=xs
Yasemnerdogan/Kodluyoruz-71.AnkaraFullStack-Python-Angular
รถdevler/3)Python-hafta2-bireysel/dรถngรผler/d.5)Lojistik fonksiyon ve kaos.py.py
d.5)Lojistik fonksiyon ve kaos.py.py
py
174
python
tr
code
0
github-code
36
18518883640
import random from multiprocessing import Pool from ai_player import Ai_player from deck import Deck class Population: """ blackjack Ai player population """ POPULATION_SIZE = 400 BJ_ROUNDS = 50000 PARENT_SIZE = 5 MAX_THREADS = 40 # most efficient def __init__(self): def...
BenPVandenberg/blackjack-ai
Dustin_Marks/population.py
population.py
py
2,112
python
en
code
1
github-code
36
20087427863
from argparse import ArgumentParser from copy import deepcopy from pathlib import Path def build_parser(): parser = ArgumentParser() parser.add_argument( '-i', '--input-filename', type=Path, required=True ) return parser def string_to_integer_list(string): return list(map(int, s...
reynoldscem/aoc2022
day_08/part2.py
part2.py
py
2,023
python
en
code
0
github-code
36
36808206999
import os import copy from typing import Dict, Union from torch.utils.data import Dataset import torchio as tio from .subject_loaders import SubjectLoader from .subject_filters import SubjectFilter, ComposeFilters class SubjectFolder(Dataset): """ A PyTorch Dataset for 3D medical data. Args: root: ...
efirdc/Segmentation-Pipeline
segmentation_pipeline/data_processing/subject_folder.py
subject_folder.py
py
9,208
python
en
code
1
github-code
36
14391422801
import json import os from collections import OrderedDict TRAIN_CATEGORY_TYPE_SPECS = {"optim": True, "batch_size": True} TRAIN_RANGE_SPECS = { "batch_size": { "categories": [512, 1024] }, # TODO: make learning rate sample range dependent on optimizer type. "learning_rate": { "low": -4....
jiaqima/SODEN
range_specs.py
range_specs.py
py
4,483
python
en
code
13
github-code
36
38608858024
# -*- coding: utf-8 -*- """ Created on Sun Feb 11 22:34:18 2018 @author: Roshan Zameer Syed ID : 99999-2920 Description : Multivariate linear regression and backward elimination """ # Reading the dataset import pandas as pd data = pd.read_csv('Advertising.csv') # Feature and response matrix X = data.iloc[:,[1,2,3]]....
syedroshanzameer/Machine-Learning
Multi-variate Linear Regression/multiRegression.py
multiRegression.py
py
1,600
python
en
code
0
github-code
36
2360857851
""" ใ€้—ฎ้ข˜ๆ่ฟฐใ€‘ไธ€ไธช็™พไธ‡ๅฏŒ็ฟ็ขฐๅˆฐไธ€ไธช้™Œ็”Ÿไบบ,้™Œ็”Ÿไบบๆ‰พไป–่ฐˆไบ†ไธ€ไธชๆข้’ฑ็š„่ฎกๅˆ’.่ฏฅ่ฎกๅˆ’ๅฆ‚ไธ‹:ๆˆ‘ๆฏๅคฉ็ป™ไฝ 10ไธ‡,่€Œไฝ ็ฌฌไธ€ๅคฉ็ป™ๆˆ‘ไธ€ๅ…ƒ้’ฑ,็ฌฌไบŒๅคฉๆˆ‘ไป็ป™ไฝ ๅไธ‡,ไฝ ็ป™ๆˆ‘ไบŒๅ…ƒ้’ฑ,็ฌฌไธ‰ๅคฉๆˆ‘ไป็ป™ไฝ ๅไธ‡,ไฝ ็ป™ๆˆ‘ๅ››ๅ…ƒ้’ฑ......ไฝ ๆฏๅคฉ็ป™ๆˆ‘็š„้’ฑๆ˜ฏๅ‰ไธ€ๅคฉ็š„ไธคๅ€,็›ดๅˆฐๆปกn(0<=n<=30)ๅคฉ.็™พไธ‡ๅฏŒ็ฟ้žๅธธ้ซ˜ๅ…ด,ๆฌฃ็„ถๆŽฅๅ—ไบ†่ฟ™ไธชๅฅ‘็บฆ.่ฏท็ผ–ๅ†™ไธ€ไธช็จ‹ๅบ,่ฎก็ฎ—่ฟ™nๅคฉไธญ,้™Œ็”Ÿไบบ็ป™ไบ†ๅฏŒ็ฟๅคšๅฐ‘้’ฑ,ๅฏŒ็ฟ็ป™ไบ†้™Œ็”Ÿไบบๅคšๅฐ‘้’ฑ. ใ€่พ“ๅ…ฅๅฝขๅผใ€‘่พ“ๅ…ฅๅคฉๆ•ฐn(0<=n<=30) ใ€่พ“ๅ‡บๅฝขๅผใ€‘ๆŽงๅˆถๅฐ่พ“ๅ‡บ.ๅˆ†่กŒ็ป™ๅ‡บ่ฟ™nๅคฉไธญ๏ผŒ้™Œ็”Ÿไบบๆ‰€ไป˜ๅ‡บ็š„้’ฑๅ’ŒๅฏŒ็ฟๆ‰€ไป˜ๅ‡บ็š„้’ฑ.่พ“ๅ‡บ่ˆๅผƒๅฐๆ•ฐ้ƒจๅˆ†,ๅ–ๆ•ด. ใ€ๆ ทไพ‹่พ“ๅ…ฅใ€‘30 ใ€ๆ ทไพ‹่พ“ๅ‡บใ€‘3000000 1073741823 ใ€ๆ ทไพ‹่ฏดๆ˜Žใ€‘ไธคไบบไบคๆ˜“ไบ†30ๅคฉ๏ผŒ้™Œ็”Ÿไบบ็ป™ไบ†...
xzl995/Python
CourseGrading/4.2.7ๆข้’ฑ็š„ไบคๆ˜“.py
4.2.7ๆข้’ฑ็š„ไบคๆ˜“.py
py
1,028
python
zh
code
3
github-code
36
238708718
from scipy.misc import imsave, imresize import numpy as np from tqdm import tqdm from LoadLightField import * from LightFieldFunctions import * from SaveLightField import * from DepthFunctions import * from scipy.interpolate import RectBivariateSpline from tqdm import tqdm, trange from time import time from LightField...
davidmhart/LightFieldStyleTransfer
LightFieldStyleTransfer.py
LightFieldStyleTransfer.py
py
2,551
python
en
code
4
github-code
36
40264918799
num = (float(input())) number = int(100 * num) total = 0 while number != 0: if number >= 200: number -= 200 elif number >= 100: number -= 100 elif number >= 50: number -= 50 elif number >= 20: number -= 20 elif number >= 10: number -= 10 elif number >= 5:...
ivoivanov0830006/1.1.Python_BASIC
5.While_loops/*05.Vending_coins.py
*05.Vending_coins.py
py
1,197
python
bg
code
1
github-code
36
10115576337
# coding: utf-8 import pickle import argparse if __name__ == '__main__': with open('unsp_target_path_id.dump', 'rb') as f: target_path_id = pickle.load(f) with open('work/glove_index.dump', 'rb') as f: glove_index = pickle.load(f) with open('corpus/id_to_term.dump', 'rb') as f: ...
kwashio/filling_missing_path
unsp_data_making.py
unsp_data_making.py
py
958
python
en
code
0
github-code
36
5339917183
import numpy as np from SMP.motion_planner.node import PriorityNode from SMP.motion_planner.plot_config import DefaultPlotConfig from SMP.motion_planner.search_algorithms.best_first_search import GreedyBestFirstSearch from commonroad_route_planner.route_planner import RoutePlanner class StudentMotionPlanner(GreedyB...
HNYao/CR
student.py
student.py
py
4,403
python
en
code
0
github-code
36
10167749049
from socket_webserver import Socketserver import json # Creating server instance server = Socketserver() # Configuring host and port server.host = '127.0.0.1' server.port = 8080 """ Two example functions to return response. Upper one returns simple json response and lower one returns html response You could cre...
miikalehtonen/pywebserver
main.py
main.py
py
963
python
en
code
0
github-code
36
22460150491
import zipper import arcpy try: # Inputs shapefile = arcpy.GetParameterAsText(0) zipfile = arcpy.GetParameterAsText(1) mode = arcpy.GetParameterAsText(2) shape_zipper = zipper.ShapefileZipper() # Create Class Instance result = shape_zipper.zip_shapefile(input_shapefile=shapefile, output_zipfi...
igrasshoff/zip-shapefiles
ScriptToolZipSingleShapefile.py
ScriptToolZipSingleShapefile.py
py
657
python
en
code
3
github-code
36
33513804346
# -*- coding: utf-8 -*- from collective.documentgenerator.helper.base import DisplayProxyObject from collective.documentgenerator.helper.base import DocumentGenerationHelperView from collective.eeafaceted.dashboard.testing import IntegrationTestCase from DateTime import DateTime from eea.facetednavigation.interfaces i...
collective/collective.eeafaceted.dashboard
src/collective/eeafaceted/dashboard/tests/test_documentgeneration.py
test_documentgeneration.py
py
7,963
python
en
code
2
github-code
36
70447240745
import os import shutil import subprocess import random import string from cdifflib import CSequenceMatcher from pathlib import Path from typing import Any from urllib.request import urlopen import numpy as np from rich import print as print from shapely.geometry import MultiPolygon from sqlalchemy import text from sr...
goat-community/data_preparation
src/utils/utils.py
utils.py
py
23,625
python
en
code
0
github-code
36
38406688388
import pandas as pd import matplotlib.pyplot as plt import re # regular expression df = pd.read_csv('./csv/Travel details dataset.csv') # drop the rows with missing values df = df.dropna() # [OPTIONAL] pick country name only after the comma df['Destination'] = df['Destination'].apply(lambda x: x.split(', ')[1] if ',...
mbenkzz/pyt11kelompok13
functions.py
functions.py
py
4,955
python
en
code
0
github-code
36
19150508999
import tensorflow as tf from .util.datasetUtil import dataset , filelength from tensorflow.keras.applications import VGG16,VGG19 ,InceptionV3 from .util.Callbacks import CustomCallback import datetime class inference_load(): def __init__(self,params,csvPath): print(params) self.csvPath = './dataset...
kococo-code/Tensorflow_Automatic_Training
server/api/inference/model.py
model.py
py
4,512
python
en
code
1
github-code
36
36219196616
class Interruptor: ''' Clase que representa un interruptor. ''' def __init__(self,coords,tipoInterruptor,pon,quita): ''' Constructor interruptor. ''' self.coords = coords self.tipoInterruptor = tipoInterruptor self.pon = pon self.quita = quita ...
SergioBarbero/bloxorz
ModeloMueve.py
ModeloMueve.py
py
10,080
python
es
code
0
github-code
36
22439203560
import ttkbootstrap as ttk from ttkbootstrap.constants import * from ttkbootstrap.dialogs import Dialog from gui.realtime_graph import RealTimeGraph import matplotlib.animation as animation from gui.animation import Animation, network_traffic_in_filler, network_traffic_out_filler from models.agents import Agent from ...
MatheusWoeffel/TeutoMonitor
src/gui/window.py
window.py
py
6,033
python
en
code
1
github-code
36
31137840419
# ะ’ะพั‚ ั‚ัƒั‚ ะผะพะถะฝะพ ะฟะพัะผะพั‚ั€ะตั‚ัŒ ั‚ะตะพั€ะธัŽ: https://youtu.be/vMD6-jzgDvI?t=693 # - ะ—ะฐะฟัƒัั‚ะธั‚ัŒ ั†ะธะบะป ะพั‚ 11 ะดะพ 20 ะธัะฟะพะปัŒะทัƒั for ะธ ั„ัƒะฝะบั†ะธัŽ range # - ะ’ั‹ะฒะตัั‚ะธ ะฝะฐ ัะบั€ะฐะฝ ั‡ะธัะปะฐ ะพั‚ 14 ะดะพ 18. ะ˜ัะฟะพะปัŒะทะพะฒะฐั‚ัŒ if ะฒ ั†ะธะบะปะต for i in range(14, 19): if i >= 14 and i <= 18: print(i) # ะšะพะด ะฝะธะถะต # - ะ’ั‹ะฒะตัั‚ะธ ะฝะฐ ัะบั€ะฐะฝ ะฒัะต ะฑัƒะบะฒั‹ ะดะพ y ะฒ ั...
vadimduzh/python-core
for-5.task.py
for-5.task.py
py
633
python
ru
code
0
github-code
36
31141721992
''' Analyse observation basket ''' import argparse import joblib import pandas as pd import apriori import helpers from rules import RuleGenerator parser = argparse.ArgumentParser(description='Convert Halias RDF dataset for data mining') parser.add_argument('minsup', help='Minimum support', nargs='?', type=float, de...
razz0/DataMiningProject
src/observation_basket_analysis.py
observation_basket_analysis.py
py
1,225
python
en
code
0
github-code
36
5066258041
import math import numpy as np from queue import Queue, PriorityQueue import time import networkx as nx import pymysql def read_file(edges, degree, g_dict, connected_fields): w = [] edge = {} visit = {} cnt = 1 sum = 0 n = 0 m = 0 for item in edges: a = ite...
ryy980622/Hi-PART
src/graph_augmentation.py
graph_augmentation.py
py
22,560
python
en
code
0
github-code
36
41270728697
#!/usr/bin/env python # encoding: utf-8 # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: """ use queue to implement BFS, needs to record level(ๅนฟๅบฆไผ˜...
HugoNgai/Leetcode
Code/binary_tree_level_order_traversal_II.py
binary_tree_level_order_traversal_II.py
py
1,890
python
en
code
0
github-code
36
7256329607
import random import sys from tkinter.messagebox import QUESTION import inquirer words = open("words.txt", "r") words_two = words.read() word_bank = words_two.split() hell = [] str = ' ' WRONG = [] past_guesses = [] difficulty = [ inquirer.List('mode', message = "Choose Your Difficulty", choices = ['Hell',...
Momentum-Team-13/python-mystery-word-samrespass
mystery_word.py
mystery_word.py
py
3,941
python
en
code
0
github-code
36
39877228092
import datetime import os import win32com.client ###### O Path nao pode conter acentuacao ou cedilha path = '' ###### Caso queira salvar em uma das pastas do usuario logado como desktop, documentos etc... # path = os.path.expanduser('~/Desktop/arquivos') ################################ outlook = win32com.client....
guimedeiross/move-attachments-outlook
mover.py
mover.py
py
1,220
python
en
code
0
github-code
36
9315048543
import os import sys from math import exp, log, sqrt from iris_validation import clipper from iris_validation.utils import ATOMIC_NUMBERS, MC_ATOM_NAMES, norm_cdf class ReflectionsHandler(object): def __init__(self, f_reflections=None, xmap=None, minimol=None): self.f_reflections = f_reflections ...
wrochira/iris-validation
iris_validation/metrics/reflections.py
reflections.py
py
6,726
python
en
code
1
github-code
36
34228583172
# -*- coding: utf-8 -*- """ Application Factory This is the entry point to the entire application. """ import os import json from flask import Flask, render_template, jsonify, flash, redirect, url_for def create_app(test_config=None): """Create an instance of Wallowa Wildlife Checklists""" app = Flask(__nam...
wicker/Wallowa-Wildlife-Checklist-App
wallowawildlife/__init__.py
__init__.py
py
4,136
python
en
code
1
github-code
36
16921327452
#!/usr/bin/env python3 """ Advent of Code 2022 - Elf Rucksack Reorganization A given rucksack always has the same number of items in each of its two compartments Lowercase item types a through z have priorities 1 through 26. Uppercase item types A through Z have priorities 27 through 52. Find the item type that appe...
CristiGuijarro/NN-aoc-2022
scripts/elf_rucksack_priorities.py
elf_rucksack_priorities.py
py
3,390
python
en
code
0
github-code
36
4822893898
import base64 import sys from github import Github ACCESS_TOKEN = '' REPO_NAME = '' ACCESS_TOKEN = sys.argv[1] REPO_NAME = sys.argv[2] g = Github(ACCESS_TOKEN) repo = g.get_repo(REPO_NAME) contents = repo.get_contents("/README.md") contents_bkp = repo.get_contents("/docs/README.md") base = contents.content base = b...
BobAnkh/LinuxBeginner
scripts/sync.py
sync.py
py
697
python
en
code
6
github-code
36
19852300497
import sys from faucetpay import faucetpay sys.path.append("./dbfolder") from mysqlfunc import mysqldb faucet=faucetpay() class payuser: def sendreward(campaignid,userid): get_user_email=mysqldb().get_user_Wallet(userid) ref=mysqldb().get_user_ref(userid) get_user_referral=mysqldb().get_u...
developermano/clickbot
payment/pay.py
pay.py
py
1,086
python
en
code
0
github-code
36
8403757246
from math import sqrt import sys def Input(line): is_error = True while is_error: is_error = False try: coeff = int(line) except ValueError: try: coeff = float(line) except ValueError: is_error = True li...
MEHT9IPA/Labs_web
Lab_1/Lab_1.py
Lab_1.py
py
3,397
python
ru
code
0
github-code
36
73604408105
import sys import os import re from dijkstra import calculate_path # MAPA: ''' Consiste de dos conjuntos <E,C>. E es un conjunto de esquinas {e1,e2,e3, โ€ฆ.} y C las calles que conectan dichas esquinas. C es un conjunto de ternas ordenadas {<e1,e2,c>,<e3,e4,c>, <e2,e1,c>} que expresa la direcciรณn y el largo de las calle...
gabriags/project_AyEDII
code-uber/service.py
service.py
py
13,703
python
en
code
0
github-code
36
26409439119
class Solution: def topKFrequent(self, words: List[str], k: int) -> List[str]: dict = {} res = [] lista = [] #ๅ“ˆๅ“ˆ๏ผ่ฟ™ไธชๆ˜ฏๆˆ‘่‡ชๅทฑๅ†™็š„hash table่ฎก็ฎ—ๅ•่ฏๅ‡บ็Žฐ็š„้ข‘็އ ็‰›้€ผๅง #ไฝ†ๆ˜ฏๆ€ง่ƒฝๆฒกไธ‹้ข็š„ๅฅฝๅ˜ปๅ˜ป ''' for i in words: dict[i]=len([x for x in words if x == i]) ''' ...
lpjjj1222/leetcode-notebook
692. Top K Frequent Words.py
692. Top K Frequent Words.py
py
1,460
python
zh
code
0
github-code
36
41571056432
import lightgbm as lgb from sklearn.linear_model import LogisticRegression import pandas as pd import numpy as np #่ฏปๅ–ๆ•ฐๆฎ file_dir='E:\\GDBT_LR\\loan\\' train_data='gbdt_train.csv' test_data='gdbt_test.csv' train=pd.read_csv(file_dir+train_data) test=pd.read_csv(file_dir+test_data) #ๅˆ ้™คๆ— ็”จๅ‚ๆ•ฐ del train['Unnamed: 0'] del te...
hu-minghao/my_program
่ดทๆฌพ่ฟ็บฆ้ข„ๆต‹/LGB_LR.py
LGB_LR.py
py
3,631
python
en
code
0
github-code
36
70806964903
import sys from math import log2, ceil sys.stdin = open('input.txt') def make_linked(node, left, right): # ๋ฐฐ์—ด์˜ ์ˆซ์ž๊ฐ€ ์„ธ๊ทธ๋จผํŠธ ํŠธ๋ฆฌ์˜ ์–ด๋А ์ธ๋ฑ์Šค์— ์ €์žฅ๋˜์—ˆ๋Š”์ง€ ์•Œ๊ธฐ ์œ„ํ•จ if left >= right: linked[left] = node # ๋ฆฌํ”„๋…ธ๋“œ์ธ ๊ฒฝ์šฐ ๋ฐฐ์—ด์— ์ €์žฅ return make_linked(node*2, left, (left+right)...
unho-lee/TIL
CodeTest/Python/BaekJoon/2268.py
2268.py
py
2,569
python
ko
code
0
github-code
36
34627321771
from pathlib import Path import os import datetime import json import h5py import numpy as np import pandas as pd import click import tensorflow as tf from src.data.tf_data_hdf5 import get_tf_data, RandomStandardization from src.models.models import unet_model, unetclassif_model from src.models.losses import CustomLo...
voreille/plc_segmentation
src/models/train_model.py
train_model.py
py
9,009
python
en
code
0
github-code
36
37039563232
from django.contrib.gis.db import models from django.contrib.auth.models import AbstractUser from django.utils.encoding import smart_str from django.utils.translation import gettext_lazy as _ # Create your models here. class Country(models.Model): """Class for country info""" name = models.CharField(max_leng...
EUROMAMMALS/website
core/models.py
models.py
py
4,541
python
en
code
0
github-code
36
24454040368
import time from tqdm.auto import tqdm def show_info_me(): """ ะŸะพะบะฐะทั‹ะฒะฐะตั‚ ะธะฝั„ะพ ะพ ะบะพะปะปะตะณะต """ about_me = { 'ะคะ˜ะž': 'ะ›ะตะฒั‡ะตะฝะบะพ ะะปะตะบัะตะน', 'ะ”ะพะปะถะฝะพัั‚ัŒ': 'ะ’ะตะดัƒั‰ะธะน ะธััะปะตะดะพะฒะฐั‚ะตะปัŒ ะดะฐะฝะฝั‹ั…', 'ะ‘ะปะพะบ': 'ะขะตั…ะฝะพะปะพะณะธะธ', 'ะ”ะตะปะฐัŽ': 'ั€ะตะบะพะผะตะฝะดะฐั‚ะตะปัŒะฝั‹ะต ัะธัั‚ะตะผั‹ ะฒ HR', } for k, v in about_me.ite...
kcundel/python_da_course
Lesson1/about.py
about.py
py
5,203
python
ru
code
0
github-code
36
27006538329
"""Pytest fixtures for huesensors tests.""" from copy import deepcopy from unittest.mock import MagicMock, patch import pytest from aiohue import Bridge from aiohue.sensors import GenericSensor from homeassistant.components.hue import DOMAIN as HUE_DOMAIN from homeassistant.components.hue import HueBridge from homeass...
robmarkcole/Hue-sensors-HASS
tests/conftest.py
conftest.py
py
3,842
python
en
code
346
github-code
36
8540293674
import sys result = {'C':0,'H':0,'O':0} eachCnt = [] chemical = sys.stdin.readline().rstrip() M = chemical.replace('+', ' ').replace('=',' ').split(' ') # ์ผ๋‹จ ๋ถ„ํ•ดํ•˜๊ณ ๋ณด์ž def solve(): global eachCnt word = ['C','H','O'] for i in range(1,11): for j in range(1,11): for k in range(1,11): ...
namhyo01/algo_python
1907.py
1907.py
py
1,212
python
en
code
0
github-code
36
28919190196
from PIL import Image import glob import random import os from collections import defaultdict ################################# test_percentage = 0.20 def partitionRankings(rawRatings, testPercent): # https://stackoverflow.com/questions/23299099/trying-to-split-list-by-percentage howManyNumbers = int(round(t...
melissadale/YouTubeTutorials
TF-Records/DivideData.py
DivideData.py
py
2,165
python
en
code
1
github-code
36
21120525047
# coding: utf-8 import torch import sys from torch import nn from TTS.utils.text.symbols import symbols from TTS.layers.tacotron import Prenet, Encoder, Decoder, PostCBHG class Tacotron(nn.Module): def __init__(self, embedding_dim=256, linear_dim=1025, mel_dim=80...
JRC1995/Chatbot
TTS/models/tacotron.py
tacotron.py
py
1,644
python
en
code
79
github-code
36
26620703554
import matplotlib.pyplot as plt from matplotlib import style import matplotlib.dates as mdates import mpl_finance as mpl from tkinter import * from yahoo_fin.stock_info import get_data import pandas as pd import plotly.graph_objects as go class AutoPlot: def __init__(self): master = Tk() Label(mas...
MihaiGroza/Automated-Candlestick-Chart-Plot
CandleStick_Chart_Building.py
CandleStick_Chart_Building.py
py
1,397
python
en
code
0
github-code
36
24842877273
# -*- coding: utf-8 -*- from os import path import os from wordcloud import WordCloud, STOPWORDS import requests import matplotlib.pyplot as plt # from scipy.misc import imread import numpy as np from PIL import Image import jieba import jieba.posseg as pseg import jieba.analyse def makeCiyun(file_name): d = path...
Montage-LSM/ciyun
index_jieba.py
index_jieba.py
py
2,267
python
en
code
0
github-code
36
5657068183
import json import os import requests from utils import is_snapshot_week, get_dependency_version, get_latest_tag, get_snapshot_branch, \ get_dependency_version_from_tags github_token = os.getenv("GITHUB_TOKEN") headers = {"Authorization": "Bearer " + github_token} def build_message(): message = '@navigatio...
mapbox/mapbox-navigation-ios
scripts/snapshot/pre-snapshot-check.py
pre-snapshot-check.py
py
2,170
python
en
code
821
github-code
36
39127008451
# the question link https://codingcompetitions.withgoogle.com/kickstart/round/000000000019ffc8/00000000002d82e6 T = int(input())#input of number of test cases for x in range(1, T + 1): n=int(input())#no of entries s = str(input())#input of entries c=0 tnop = list(s.split(" "))#conversion of entries to ...
NIKHILDUGAR/googlekickstartpy
2020bBikeTour.py
2020bBikeTour.py
py
548
python
en
code
4
github-code
36
12087063894
import os import json import argparse from multiprocessing import Pool import string import shutil # external libraries from numpy import argmax from rouge import Rouge from tqdm import tqdm def ROUGE(hypsumm, refsumm): rouge = Rouge() rouge.metrics = ['rouge-2'] rouge.stats = ['r'] ...
Law-AI/summarization
extractive/abs_to_ext/extractive_labels.py
extractive_labels.py
py
9,688
python
en
code
139
github-code
36
43300686084
# XXX there is much grot here. # some of this comes from trying to present a reasonably intuitive and # useful interface, which implies a certain amount of DWIMmery. # things surely still could be more transparent. class FormException(Exception): pass class Instruction(object): def __init__(self, fields): ...
mozillazg/pypy
rpython/jit/backend/ppc/form.py
form.py
py
6,650
python
en
code
430
github-code
36
74791355622
import constant from loguru import logger from managers import AudioManager from threading import Event, Thread class Autonomous(object): def __init__(self, audio_manager: AudioManager): self.audio_manager = audio_manager self.event: Event = Event() self.event.set() self.thread: ...
dezil/R2
autonomous.py
autonomous.py
py
1,035
python
en
code
1
github-code
36
8522405005
import unittest from BaseTestCases.BaseTestCase import BaseTestCase, os from Pages.Deployment_Group import DG_Create from Pages.LoginPage import LoginPage from DataSource.read_excel import read_excel from time import sleep from ddt import ddt,data,unpack @ddt class test_DG_Create (BaseTestCase): @data(*read_exce...
EFarag/ACE_Project
TestCases/test_DG_Valid_create.py
test_DG_Valid_create.py
py
1,130
python
en
code
0
github-code
36
34341861666
#m7homework7b-SetsDictionaries_2 # Pickled Vegetables import pickle def pickled_vege(): pickvege = {'tomato' : '5.00', 'squash' : '2.34'} print(pickvege) c = pickvege['tomato'] # print value print(c) pickvege['lemon'] = '.25' # add print(pickvege) del pickvege['toma...
chnldnh/CMPR114_Python
Module7/Module7_HW/m7hw7b_setsDictionaries_2.py
m7hw7b_setsDictionaries_2.py
py
773
python
en
code
0
github-code
36
70774463784
from artist_data import ArtistData import numpy as np import igraph class Network: def __init__(self, data): self._data = data self._graph = igraph.Graph() def graph(self): return self._graph def init(self): self._graph.add_vertices(list(self._data.artists.keys())) ...
jakubsob/SpotifyArtistsNetwork
network.py
network.py
py
2,904
python
en
code
0
github-code
36
33646432106
import asyncio import threading import time import speech_recognition as sr r = sr.Recognizer() # def do(audio): def srcVoice(n, audio): for i in range(n, 0, -1): print('sssssss') # threading.Thread(target=r.recognize_google, args=(audio)) words = r.recognize_google(audio) print(...
giribabu22/assistant-Nikki-python
thread_voice_src/script.py
script.py
py
770
python
en
code
4
github-code
36
10625869502
from typing import List from eth_vertigo.incremental.store import MutationRecord, IncrementalMutationStore from eth_vertigo.core import Mutation class IncrementalRecorder: def record(self, mutations: List[Mutation]) -> IncrementalMutationStore: store = IncrementalMutationStore() store.known_mutat...
JoranHonig/vertigo
eth_vertigo/incremental/record.py
record.py
py
958
python
en
code
180
github-code
36
2671254266
from typing import TypeAlias, Union from const import MAX_SLOT_NUM, DiffusionSVCInferenceType, EnumInferenceTypes, EmbedderType, VoiceChangerType from dataclasses import dataclass, asdict, field import os import json @dataclass class ModelSlot: slotIndex: int = -1 voiceChangerType: VoiceChangerType | None =...
w-okada/voice-changer
server/data/ModelSlot.py
ModelSlot.py
py
6,366
python
en
code
12,673
github-code
36
24844526241
from django.contrib import admin from .models import PrivateChat, Message # Register your models here. @admin.register(PrivateChat) class PrivateChatAdmin(admin.ModelAdmin): """Filters, displays and search for django admin""" list_filter = ('user1', 'user2', ) list_display = ('user1', 'user2') search_f...
lexach91/DateLoc
chat/admin.py
admin.py
py
605
python
en
code
1
github-code
36
2280932575
""" ะ”ะพะผะฐัˆะฝะตะต ะทะฐะดะฐะฝะธะต. ะ’ะฒะพะด ั ะบะปะฐะฒะธะฐั‚ัƒั€ั‹. ะ•ัะปะธ ัั‚ั€ะพะบะฐ ะฒะฒะตะดั‘ะฝะฝะฐั ั ะบะปะฐะฒะธะฐั‚ัƒั€ั‹ - ัั‚ะพ ั‡ะธัะปะพ, ั‚ะพ ะฟะพะดะตะปะธั‚ัŒ ะฟะตั€ะฒะพะต ะฝะฐ ะฒั‚ะพั€ะพะต. ะžะฑั€ะฐะฑะพั‚ะฐั‚ัŒ ะพัˆะธะฑะบัƒ ะดะตะปะตะฝะธั ะฝะฐ ะฝะพะปัŒ. ะ•ัะปะธ ะฒั‚ะพั€ะพะต ั‡ะธัะปะพ 0, ั‚ะพ ะฟั€ะพะณั€ะฐะผะผะฐ ะทะฐะฟั€ะฐัˆะธะฒะฐะตั‚ ะฒะฒะพะด ั‡ะธัะตะป ะทะฐะฝะพะฒะพ. ะขะฐะบะถะต ะตัะปะธ ะฑั‹ะปะธ ะฒะฒะตะดะตะฝั‹ ะฑัƒะบะฒั‹, ั‚ะพ ะพะฑั€ะฐะฑะพั‚ะฐั‚ัŒ ะธัะบะปัŽั‡ะตะฝะธะต. """ def input_number(): # ะžะฑัŠัะฒะปัะตะผ ั„ัƒ...
OlegPodg/Python_lesson
Podgornyj_104_lesson14.py
Podgornyj_104_lesson14.py
py
1,827
python
ru
code
0
github-code
36
19868628701
from ducktape.services.background_thread import BackgroundThreadService from ducktape.utils.util import wait_until import os import subprocess def is_int(msg): """Default method used to check whether text pulled from console consumer is a message. return int or None """ try: return int(msg) ...
sundapeng/kafka
tests/kafkatest/services/console_consumer.py
console_consumer.py
py
8,250
python
en
code
0
github-code
36
27653577571
from pages.courses.register_courses_page import Register_courses_page import unittest import pytest from utilities.teststatus import StatusVerify @pytest.mark.usefixtures("oneTimeSetUp", "setUp") class Register_course_tests(unittest.TestCase): @pytest.fixture(autouse=True) def classSetup(self, oneTimeSetUp): ...
akanksha2306/selenium_python_practice
tests/courses/test_register_courses.py
test_register_courses.py
py
1,073
python
en
code
0
github-code
36
71591819304
from django.shortcuts import render from django.http.response import JsonResponse from rest_framework.parsers import JSONParser from rest_framework import status from rest_framework.decorators import api_view from rest_framework.permissions import IsAuthenticated from rest_framework.authentication import TokenAuthenti...
Gabospa/Rest_Framework_API
catalog/views.py
views.py
py
2,419
python
en
code
0
github-code
36
10204405519
from flask import Flask,request,jsonify from flask_mysqldb import MySQL app = Flask(__name__) app.config['MYSQL_HOST'] = 'localhost' app.config['MYSQL_USER'] = 'root' app.config['MYSQL_PASSWORD'] = '' app.config['MYSQL_DB'] = 'library' mysql = MySQL(app) def getQuery(sql): cursor = mysql.connection.cursor() ...
EdgarPozas/APILibraryInFlask
app.py
app.py
py
1,832
python
en
code
0
github-code
36
70913641705
import cv2 import numpy as np import os import path import face_recognition import getopt, sys def getOriginalData(file): count_vertices = 0 count_faces = 0 original_coordinates = [] faces_indices = [] texture_coordinates = [] texture_indices = [] oc_file = open("Original_Vertices.txt", "w"...
liyanxiangable/3DFaceAlignment
FaceAlignment.py
FaceAlignment.py
py
20,504
python
en
code
3
github-code
36
18967680389
import tensorlayer as tl from tensorlayer.layers import * def vox_res_module(x, prefix, is_train=True, reuse=False): w_init = tf.truncated_normal_initializer(stddev=0.01) bn1 = BatchNormLayer(x, act=tf.nn.relu, is_train=is_train, name=prefix + "bn1") conv1 = Conv3dLayer(bn1, shape=[1, 3, 3, 64, 64]...
txin96/VoxResNet
model.py
model.py
py
4,063
python
en
code
16
github-code
36
37360525865
import argparse import glob import json import logging import os import platform import re import traceback from pathlib import Path import fitz if platform.system() == "Windows": logdir = Path(os.environ['USERPROFILE']) / ".pdf_guru" else: logdir = Path(os.environ['HOME']) / ".pdf_guru" logdir.mkdir(parents=...
kevin2li/PDF-Guru
thirdparty/convert_external.py
convert_external.py
py
5,838
python
en
code
941
github-code
36
8439340663
# Given an array of numbers which is sorted in ascending order and is rotated โ€˜kโ€™ times around a pivot, find โ€˜kโ€™. # # You can assume that the array does not have any duplicates. # Input: [10, 15, 1, 3, 8] # Output: 2 # Explanation: The array has been rotated 2 times. def count_rotations(arr): l, r = 0, len(arr) ...
kashyapa/coding-problems
educative.io/easy-binary-search/10_rotation_count.py
10_rotation_count.py
py
788
python
en
code
0
github-code
36
22771811138
# -*- coding: utf-8 -*- # This file is part of CFVVDS. # # CFVVDS is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # ...
swak/cardfight-vanguard-vds
printer.py
printer.py
py
3,420
python
en
code
0
github-code
36
35319837996
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: mcxiaoke # @Date: 2015-08-18 20:14:05 from __future__ import unicode_literals, division, absolute_import, print_function import requests import shutil import sys import signal import os import traceback import time import logging import bs4 from lxml import html ...
mcxiaoke/python-labs
lib/commons.py
commons.py
py
5,317
python
en
code
7
github-code
36
70858172905
from functools import reduce, wraps import tensorflow as tf from tensorflow.keras.layers import Add, BatchNormalization, LeakyReLU, Conv2D, ZeroPadding2D, UpSampling2D from tensorflow.keras.layers import Concatenate from keras.layers.merge import add from tensorflow.keras.regularizers import l2 L2_FACTOR = 1e-5 def ...
jmajumde/MyMScProj
jmod/onestage/yolov3/models/layers.py
layers.py
py
6,268
python
en
code
2
github-code
36
7880901877
import json from enum import Enum from typing import Union from pyspark.sql import Column import pyspark.sql.functions as F class ModelType(Enum): CLASSIFICATION = 1 REGRESSION = 2 class _Singleton(type): """ A metaclass that creates a Singleton base class when called. """ _instances = {} def ...
maxpumperla/elephas
elephas/utils/model_utils.py
model_utils.py
py
2,344
python
en
code
1,568
github-code
36
28408907957
from source.hh_api.headhunter_api import HHApi from source.jsonhandler.jsonhandler import JSONHandler from source.sj_api.superjob_api import SJApi from source.vacancies.vacancy import Vacancy def search_vacancies(): keywords = input('ะ’ะฒะตะดะธั‚ะต ะฟะพะธัะบะพะฒะพะน ะทะฐะฟั€ะพั: \n') hh = HHApi(keywords) sj = SJApi(keywords)...
Memorizu/Job_Parser_upd
main.py
main.py
py
1,778
python
en
code
0
github-code
36
30111928056
def ex1(n): return [[el for el in range(1, n + 1)]] * n def ex2(matrix): return [el[::-1] for el in matrix] def ex3(m1, m2): try: return [[min(m1[i][j], m2[i][j]) for j in range(max(len(m1[i]), len(m2[i])))] for i in range(max(len(m1), len(m2)))] except IndexError: raise IndexError("...
daneel95/Master_Homework
FirstYear/NLP/Lab2/Tema/ex9.py
ex9.py
py
1,268
python
en
code
0
github-code
36
27574816900
n = int(input()) a = [int(i) for i in input().split()] a.sort() res = 1 for i in a: if i > res: break elif i == res: res += 1 print(res)
Kinhs/Python-PTIT
PY02018 - Sแป‘ nhแป nhแบฅt cรฒn thiแบฟu.py
PY02018 - Sแป‘ nhแป nhแบฅt cรฒn thiแบฟu.py
py
161
python
en
code
0
github-code
36
37339853215
from collections import deque infinity = float("inf") def make_graph(): # identical graph as the YouTube video: https://youtu.be/Tl90tNtKvxs return [ [0, 10, 0, 10, 0, 0], [0, 0, 4, 2, 8, 0], [0, 0, 0, 0, 0, 10], [0, 0, 0, 0, 9, 0], [0, 0, 6, 0, 0, 1...
msambol/dsa
maximum_flow/ford_fulkerson.py
ford_fulkerson.py
py
1,683
python
en
code
211
github-code
36
10829429705
#!/usr/bin/env python import os, sys, pkg_resources import json from collections import namedtuple from functools import partial import html5lib from ..vendor.pluginbase.pluginbase import PluginBase Key = namedtuple("Key", ["name","version"]) __all__ = ['plugins_get_mgr', 'plugins_load', 'plugins_show', '...
pingali/dgit
dgitcore/plugins/common.py
common.py
py
7,921
python
en
code
15
github-code
36
11712750390
import pyautogui import pyperclip import time import schedule # ์นด์นด์˜คํ†ก์— ๋ฉ”์‹œ์ง€๋ฅผ ๋ณด๋‚ด๋Š” ์ฝ”๋“œ๋ฅผ send_message ํ•จ์ˆ˜๋กœ ์ƒ์„ฑ def send_message(): threading.Timer(10, send_message).start() # KakaoPicture1.png ํŒŒ์ผ๊ณผ ๋™์ผํ•œ ๊ทธ๋ฆผ์„ ์ฐพ์•„ ์ขŒํ‘œ ์ถœ๋ ฅ picPosition = pyautogui.locateOnScreen(r'11. PC_Kakao_Talk_Automation_Using_Automouse\KakaoPictu...
WoojinJeonkr/Python-and-40-works-to-learn-while-making
11. PC_Kakao_Talk_Automation_Using_Automouse/ScheduleRunAutomationKakaoTalk.py
ScheduleRunAutomationKakaoTalk.py
py
1,883
python
ko
code
1
github-code
36
74579426342
#generali from django.views.generic import ListView from django.shortcuts import render, get_object_or_404, redirect from django.http import HttpResponse from django.template import loader from django.db.models import Count from django.contrib import messages from django.contrib.auth import get_user_model from dj...
gitsh1t/vetrina_test
landing_page/views.py
views.py
py
12,116
python
en
code
0
github-code
36
72000657063
# -*- coding: utf-8 -*- # French language sounds configuration from tts import filename, NO_ALTERNATE, PROMPT_SYSTEM_BASE, PROMPT_CUSTOM_BASE systemSounds = [] sounds = [] for i in range(100): systemSounds.append((str(i), filename(PROMPT_SYSTEM_BASE + i))) for i in range(10): systemSounds.append((str(100 *...
Ingwie/NextStepRc-2.18
radio/util/tts_fr.py
tts_fr.py
py
4,215
python
en
code
14
github-code
36
497207117
import abc import six from dagster_spark.configs_spark import spark_config from dagster_spark.utils import flatten_dict from pyspark.sql import SparkSession from dagster import Field, check, resource def spark_session_from_config(spark_conf=None): spark_conf = check.opt_dict_param(spark_conf, 'spark_conf') ...
helloworld/continuous-dagster
deploy/dagster_modules/libraries/dagster-pyspark/dagster_pyspark/resources.py
resources.py
py
1,647
python
en
code
2
github-code
36
34447008316
""" TITLE: Set.add() INPUT: 7 UK China USA France New Zealand UK France OUTPUT: 5 """ n = int(input()) myset = set() for _ in range(n): myset.add(input()) print(len(myset))
bakliwalvaibhav1/Python-HackerRank
04) Sets/set_add.py
set_add.py
py
182
python
en
code
1
github-code
36
4738433123
from operator import attrgetter from django.contrib.auth import get_user_model from django.db.models import ( CASCADE, SET_NULL, BooleanField, CharField, CheckConstraint, DateTimeField, F, ForeignKey, IntegerChoices, IntegerField, JSONField, ManyToManyField, Model, Q, SlugField, TextField, UniqueConstraint...
x-yzt/mixtures
drugcombinator/models.py
models.py
py
12,000
python
en
code
7
github-code
36
20884673923
#Start with an empty list and add in each new input (check if the data is valid) my_list = [] total = 0 for i in range(7): while True: day_sales = input(f"Sales for day {i+1}: ") if day_sales.isdigit(): days_sales = int(day_sales) if days_sales >= 0: my_list.a...
Chenxinnnn/Chenxin-Undergrad-CS002
HW 8/GuChenxin_assign8_part0.py
GuChenxin_assign8_part0.py
py
803
python
en
code
0
github-code
36