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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
30022811113 | #_confirmed_users.py
_rsvp=[]
_friends=['jhony','mario','pedro','tony']
#I will confirm which user will come to my party
while _friends:
_dude=_friends.pop()
print(str(_dude).title()+" is comming to the party!")
_rsvp.append(_dude)
print("\n\n\tFriends RSVP:")
for friend in _rsvp:
print(str(friend).title())
| Jparedes20/python_work | _confirmed_users.py | _confirmed_users.py | py | 318 | python | en | code | 0 | github-code | 36 |
25441622848 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='member',
options={},
... | MJafarMashhadi/CodeDescriptionInformationCollector | core/migrations/0002_auto_20160107_1255.py | 0002_auto_20160107_1255.py | py | 648 | python | en | code | 0 | github-code | 36 |
3726457813 | from DQNAgent import DQNAgent
from pathlib import Path
my_file = Path("my_model.hd5")
if my_file.is_file():
Agent = DQNAgent("my_model.hd5")
else:
Agent = DQNAgent()
for i in range(1500):
Agent.observe()
Agent.train()
rewards = 0
for _ in range(10):
rewards += Agent.play()
print(rewards / 3)
Ag... | sojunator/DV2454Proj | Q_ml_keras.py | Q_ml_keras.py | py | 353 | python | en | code | 0 | github-code | 36 |
16152692390 | class Home:
def room1(self):
width=100
breadth = 100
print('area of room1',width*breadth)
def kitchen(self):
width = 1222
breadth = 4888
print('area of kitchen',width*breadth)
class FirstHome(Home):
def studyRoom(self):
width=100
bre... | siva5271/week3_assignments | q21.py | q21.py | py | 872 | python | en | code | 0 | github-code | 36 |
39305646033 | import asyncio
import logging
import os
import threading
import uuid
from time import sleep
from pywintypes import Time
from win32con import FILE_SHARE_DELETE, FILE_SHARE_READ, GENERIC_WRITE, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, \
FILE_SHARE_WRITE
from win32file import CreateFile, CloseHandle, SetFileTime
from A... | SanketRevankar/AndroidFTP-DataBackup | AndroidFTPBackup/helpers/BackupHelper.py | BackupHelper.py | py | 7,605 | python | en | code | 3 | github-code | 36 |
38453029112 | import sys
from requests_html import HTMLSession
import time
def checker():
if len(sys.argv) < 2:
invalid_len_message()
else:
try:
if sys.argv[1].lower() == "--hashtag":
if sys.argv[2]:
if "#" in sys.argv[2]:
newarg = sys.... | carlos-menezes/photochecker_instagram.py | photochecker.py | photochecker.py | py | 1,842 | python | en | code | 0 | github-code | 36 |
37633977750 | class Solution(object):
def gardenNoAdj(self, N, paths):
"""
:type N: int
:type paths: List[List[int]]
:rtype: List[int]
"""
self.nbs = {}
for s, t in paths:
self.nbs.setdefault(s, set()).add(t)
self.nbs.setdefault(t, set()).add(s)
... | sunnyyeti/Leetcode-solutions | 1042_Flower Planting With No Adjacent.py | 1042_Flower Planting With No Adjacent.py | py | 1,404 | python | en | code | 0 | github-code | 36 |
15287647409 | from django.test import TestCase
from users.forms import UserUpdateForm
class TestForms(TestCase):
def test_update_form_valid_data(self):
"""Test for valid update form"""
form = UserUpdateForm(data={
'username': 'Praveen',
'email': 'Praveen.t@gmail.com'
})
... | ardagon89/deploying-a-email-classification-model-in-a-full-stack-website | singularity/users/test/test_forms.py | test_forms.py | py | 572 | python | en | code | 0 | github-code | 36 |
8267936452 | #!/usr/bin/python
import re
line = " abc, b, c AS INT"
token_regex = r'[()*/%+\-><=]|>=|<=|==|<>|VAR|AS|INT|CHAR|BOOL|FLOAT|AND|OR|NOT|START|STOP|&|,|[$_a-z][$_a-zA-Z0-9]*|\".*\"'
lex_ptr = 0
end = lex_ptr + 1
while end < len(line):
possible_token = line[lex_ptr:end]
matchObj = re.search(token_regex, po... | jabinespbi/cfpl | compiler/test.py | test.py | py | 907 | python | en | code | 1 | github-code | 36 |
32327100021 | # Authors : Pranath Reddy, Amit Mishra
print(" _________ _____________ (_)____")
print("/ ___/ __ \/ ___/ __ `__ \/ / ___/")
print("/ /__/ /_/ (__ ) / / / / / / /__ ")
print("\___/\____/____/_/ /_/ /_/_/\___/ ")
print("A set of deep learning experiments on Cosmic Microwave Background Radiation Data")
import pand... | pranath-reddy/MLST-Cosmic | Data/Norm/Normalize.py | Normalize.py | py | 620 | python | en | code | 1 | github-code | 36 |
9098896290 | import os
import numpy as np
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFilter
from PIL import ImageFont
from tqdm import tqdm
train_dir = "dataset/train/"
test_dir = "dataset/test/"
# digit generation
def digit_generator(
digit="1",
font_name="/usr/share/fonts/truetype/custom/Hind... | rednafi/prinumco | digit_generation_src/digit_generation.py | digit_generation.py | py | 4,386 | python | en | code | 10 | github-code | 36 |
18798632880 | import mysql.connector
mydb= mysql.connector.connect(
host="local host",
user="root",
password="",
database="school"
)
mycursor = mydb.cursor()
mycursor.execute("CREATE DATABASE school")
mycursor.execute("SHOW DATABASE")
for x in mycursor:
if x=="school":
print("database is p... | DhanKumari/python_2 | database.py | database.py | py | 2,143 | python | en | code | 0 | github-code | 36 |
14821096504 | # Woman who habitually buys pastries before 5
import json
def find_customers_who_order_multiple_pastries_before_5am() -> list[str]:
"""
Identifies customer ids of customers who
placed orders between midnight and 5am
"""
with open('./noahs-jsonl/noahs-orders.jsonl', 'r') as jsonl_file:
m... | Annie-EXE/Hanukkah-of-Data-2022 | Hanukkah Day 4/main.py | main.py | py | 2,069 | python | en | code | 1 | github-code | 36 |
32022624457 | #Load variable from a file. Userstat.txt
#USerstat.txt has first line as whether user wants to choose more projects, and next lines has names of all projects user has chosen.
#We have to create a login function here for the user, else, how would the app know which userfile to download.?
#For now let's simply ask the ... | snehalgupta/issc | pcapp/app.py | app.py | py | 2,900 | python | en | code | 0 | github-code | 36 |
20436996206 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('customer', '0009_auto_20151012_1449'),
('tab1', '0001_initial'),
]
operations = [
migrations.AddField(
m... | wlj459/unipub | tab1/migrations/0002_contactus_customer.py | 0002_contactus_customer.py | py | 505 | python | en | code | 1 | github-code | 36 |
28205621966 | from typing import Dict, List, Optional, Union
from fastapi import APIRouter, Depends, Response, status
from sqlalchemy.orm import Session
from src import oauth, schemas
from src.db.database import get_db
from src.services import post as post_service
router = APIRouter(prefix="/posts", tags=["Blog Posts"])
@router.... | hiteshsankhat/blog_post | backend/src/api/endpoints/posts.py | posts.py | py | 1,700 | python | en | code | 0 | github-code | 36 |
29178030064 | from ting_file_management.file_management import txt_importer
import sys
def process(path_file, instance):
# Verifica se o arquivo já foi processado anteriormente
for index in range(len(instance)):
if instance.search(index)["nome_do_arquivo"] == path_file:
return
# Importa as linhas d... | erickbxs/Python-google | ting_file_management/file_process.py | file_process.py | py | 1,132 | python | pt | code | 1 | github-code | 36 |
20948666331 | import os
import os.path as osp
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.data as data
from torch import optim
from torch.utils.tensorboard import SummaryWriter
from sklearn.metrics import confusion_matrix
from model.refinenet import Segmentor
from mod... | ElhamGhelichkhan/semiseggan | train.py | train.py | py | 17,083 | python | en | code | 0 | github-code | 36 |
13989770988 | from collections import deque
class Solution:
def wallsAndGates(self, rooms):
def neighbors(x, y):
for (i, j) in ((x - 1, y), (x + 1, y), (x, y - 1), (x, y + 1)):
if 0 <= i < n and 0 <= j < m and rooms[i][j] > 0:
yield (i, j)
def bfs(start):
... | dariomx/topcoder-srm | leetcode/zero-pass/facebook/walls-and-gates/Solution.py | Solution.py | py | 1,023 | python | en | code | 0 | github-code | 36 |
30285129155 | # Turn a probability higher
# The you shift the probability is by making multiple calls
# to the generator and finally once u are able to represent
# the number of outcomes with the nearest numbers of
# sample space then the next thing to do is to
# have a result that is within the number of outcomes
# for eg [1,2,3,4... | aaryanDhakal22/EOPIP | 1-PrimitiveTypes/probability_shift.py | probability_shift.py | py | 784 | python | en | code | 0 | github-code | 36 |
37439980327 | import pandas as pd
from pathlib import Path
import numpy as np
from data_cleaning import clean_data
from data_preparation import data_preparation
INPUT_TEST_PATH = Path('data/raw/test.csv')
OUTPUT_PATH = Path('data/test_with_predicted_revenue/')
if __name__ == "__main__":
test_df = pd.read_csv(INPUT_TEST_PATH)
... | LlirikOknessu/brightika_test | linear_prod_version.py | linear_prod_version.py | py | 932 | python | en | code | 0 | github-code | 36 |
15502000063 | #help(print)
#print(input.__doc__)
#help(input)
def contagem(start: int, end: int, jump: int):
"""
-> Faz uma contagem e mostar na tela.
-> Caso o parametro jump seja 0, seu valor será trocado por 1.
:param start: inicio da contagem
:param end: fim da contagem
:param jump: passo da contagem
... | JoaoGabsSR/EstudosDePython | Python-3 Mundo-3/aula21a.py | aula21a.py | py | 2,308 | python | pt | code | 0 | github-code | 36 |
22579785648 | #https://www.acmicpc.net/problem/1018
#M * N 체스판을 잘라서 칠한뒤, 8 * 8 체스판이 되어야한다.
#예상 방법
#1 dict구성해서 칠해진 칸의 개수를 센 뒤, 다시 더할 때 갯수를 세본다.
#2 w = 1,2 b = 3,4 로 구성해서 구해본다.
#3 칠한뒤, 칠한 칸을 0과 1로 구성해서, 갯수를 세어본다.
#결론
#1. 2차원 배열로 입력을 받는다.
#2. 진짜 체스판을 만든다.
#3. 틀린 부분에 1을 적는 2차원리스트를, 'w' 'b' 케이스 별로 2개 저장한다.
#4. 8개로 나누어서 모든 칸을 더해본다.
#입... | heisje/Algorithm | baekjoon/1018_체스판다시칠하기.py | 1018_체스판다시칠하기.py | py | 2,052 | python | ko | code | 0 | github-code | 36 |
6699760535 | from compat.legacy_model import LegacyModel
from customer.customers import CustomerObjectMap
import os
from common.io.interactive import query_yes_no
BASE_MODEL_DIR = r"E:\viNet_RnD\Deployment\Inference Models\Inception"
def create_candidate_model_legacy(class_map,
network_version=N... | h3nok/MLIntro | Notebooks/cli/legacy_cli.py | legacy_cli.py | py | 1,995 | python | en | code | 0 | github-code | 36 |
9268710699 | import cv2
import numpy as np
import time
import os
from cobit_opencv_lane_detect import CobitOpencvLaneDetect
class CobitOpenCVGetData:
def __init__(self):
self.cap = cv2.VideoCapture('data/car_video.avi')
self.cv_detector = CobitOpencvLaneDetect()
self.image = None
self.angle = ... | cobit-git/little-cobit-web-ctrl | cobit_opencv_get_data_backup.py | cobit_opencv_get_data_backup.py | py | 1,512 | python | en | code | 0 | github-code | 36 |
29045410309 | # Python
class Solution(object):
def subtractProductAndSum(self, n):
"""
:type n: int
:rtype: int
"""
productDigits = 1
sumDigits = 0
temp = n
while(temp != 0):
productDigits = productDigits * (temp % 10)
s... | richard-dao/Other | LeetCode-Problems/Easy/Subtract-Product-and-Sum-Of-Integer.py | Subtract-Product-and-Sum-Of-Integer.py | py | 426 | python | en | code | 0 | github-code | 36 |
11360546161 | import sys
sys.stdin = open('0820.txt')
# 작은 수 부터 차례대로 정렬
nnnn=["ZRO", "ONE", "TWO", "THR", "FOR", "FIV", "SIX", "SVN", "EGT", "NIN"]
T = int(input())
for tc in range(1, T+1):
tn, N = input().split()
text = input().split()
result = []
data = {
"ZRO": 0,
"ONE": 1,
"TWO": 2,
... | Jade-KR/TIL | 04_algo/수업/0820.py | 0820.py | py | 704 | python | ko | code | 0 | github-code | 36 |
3953501944 | from entity.incarnation import Incarnation
from entity import player
from time import monotonic
class Carrot(Incarnation):
"""
Implementation of the incarnation Carrot, the epeeist. Inherits from incarnation
"""
COOLDOWN_THRUST = 0.4
NUMBER_THRUST = 7
def __init__(self, owner_player: 'player... | mindstorm38/rutabagarre | src/entity/incarnation/carrot.py | carrot.py | py | 1,964 | python | en | code | 2 | github-code | 36 |
11071680416 | #!/usr/bin/env python
# coding: utf-8
# -- GongChen'xi
#
# 20220112
# In[1]:
import baostock as bs
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import os, sys
# In[2]:
def fetch_info(stock_num, info, start_date, end_date):
bs.login()
rs = bs.query_history_k_data_plus(stock_n... | Chenxi-Gong/TradingPatternSimulation | simulation.py | simulation.py | py | 4,698 | python | en | code | 1 | github-code | 36 |
5185686033 | import re
import ssl
import requests
import urllib.request
from lxml import etree
from fake_useragent import UserAgent
from concurrent.futures import wait, ALL_COMPLETED
from .common import Anime, Seed, Subgroup
class Mikan:
def __init__(self, logger, config, executor):
self.url = config['URL']
sel... | FortyWinters/autoAnime | src/lib/spider.py | spider.py | py | 12,664 | python | en | code | 1 | github-code | 36 |
34609634958 | """
279. Perfect Squares
Given an integer n, return the least number of perfect square numbers that sum
to n.
"""
def num_squares_naive(n, squares):
"""
Naive recursive solution.
Paramters
---------
n : The input integer.
squares : List of square numbers <= n.
"""
if n == 0:
... | wuihee/data-structures-and-algorithms | programming-paradigm/dynamic_programming/min_max_path/perfect_squares.py | perfect_squares.py | py | 1,258 | python | en | code | 0 | github-code | 36 |
37002642889 | import re
def strB2Q(ustring):
rstring = ''
for uchar in ustring:
inside_code = ord(uchar)
if inside_code == 0x3000:
inside_code = 0x0020
else:
inside_code -= 0xfee0
if not (0x0021 <= inside_code and inside_code <= 0x7e):
rstring += uchar
... | zhangpeng96/Smart-String-Toolbox | ocr-optimize/simple_math.py | simple_math.py | py | 3,472 | python | en | code | 0 | github-code | 36 |
10900868041 | # Текстовая переменная
res = "Это число "
# Вводится текст
txt = input("Введите название числа от 1 до 4: ")
# Преобразование текста внутри в нижний регистр
txt = txt.lower()
# Идентификация числа
if txt == "один" or txt == "единица":
res += "1"
elif txt == "два" or txt == "двойка":
res += "2"
elif txt == "три"... | SetGecko/PonPbyEandT | Chapter_2/Listing02_10.py | Listing02_10.py | py | 623 | python | ru | code | 0 | github-code | 36 |
73122366504 | from django.db import models
from django.contrib.auth.models import User
from ckeditor_uploader.fields import RichTextUploadingField
# Create your models here.
class System(models.Model):
name = models.CharField(max_length=20, verbose_name='System')
owner = models.ForeignKey(User, verbose_name='Owner', on_de... | ikofan/sh6 | codes/models.py | models.py | py | 5,282 | python | en | code | 0 | github-code | 36 |
35056056600 | from src.reduction import ReductionMethod
import cantera as ct
def main() -> None:
"""
Edit all the variables in this function to perform the reduction.
Right now, it has DRG and DRGEP. Put all the state files in a folder and pass
the folder path to load the condition.
The automation of the resu... | fingeraugusto/red_app | main_app.py | main_app.py | py | 1,201 | python | en | code | 0 | github-code | 36 |
42211653033 | import ipywidgets
from ipywidgets import *
from IPython.display import display, Markdown
all_options=[]
all_answers=[]
all_feedback=[]
options1=['ASIC, SoC, FPGA, MPSoC', 'FPGA, SoC, ASIC, MPSoC', 'SoC, ASIC, FPGA, MPSoC', 'ASIC, MPSoC, FPGA, SoC']
ans1='ASIC, SoC, FPGA, MPSoC'
fb1_a='Correct! We know ASICs are appli... | philipwu62/xilinx_XUP_notebooks | lib/fpga_widg.py | fpga_widg.py | py | 3,813 | python | en | code | 1 | github-code | 36 |
5514632684 | # -*- coding: UTF-8 -*-
from Courier import Courier,Order,debugFlag,OrdersPerSecond
import queue,sys,statistics
import time,json
import threading
def GetNextOrder(prepareTime):
courier = Courier();
o=Order(courier,prepareTime);
return o
if __name__ == '__main__':
try:
with open('dispatch_o... | slideclick/2021ccs | execu/main.py | main.py | py | 1,525 | python | en | code | 0 | github-code | 36 |
7755902959 | import logging
from typing import Any, Callable, Coroutine, Dict, List, Optional, Union
import attr
from geojson_pydantic.geometries import (
GeometryCollection,
LineString,
MultiLineString,
MultiPoint,
MultiPolygon,
Point,
Polygon,
)
from pydantic import validator
from pydantic.types impor... | microsoft/planetary-computer-apis | pcstac/pcstac/search.py | search.py | py | 3,330 | python | en | code | 88 | github-code | 36 |
7078442662 | def fiware_arguments(func):
def wrapper(*args, **kwargs):
parser = func(*args, **kwargs)
parser.add_argument(
'--fiwareservice',
help='tenant/service to use when connecting Orion Context Brocker')
parser.add_argument(
'--fiwareservicepath',
hel... | OkinawaOpenLaboratory/fiware-meteoroid-cli | meteoroid_cli/meteoroid/v1/libs/decorator.py | decorator.py | py | 422 | python | en | code | 5 | github-code | 36 |
71104421224 | #!/usr/bin/env python
# -*- coding=UTF-8 -*-
# Created at May 26 10:07 by BlahGeek@Gmail.com
import sys
if hasattr(sys, 'setdefaultencoding'):
sys.setdefaultencoding('UTF-8')
import os
import httplib2
import requests
from BeautifulSoup import BeautifulSoup
from .settings import COOKIR_PATH
BASE_URL = 'http://3g.... | blahgeek/treehole | treehole/renren.py | renren.py | py | 1,318 | python | en | code | 30 | github-code | 36 |
28128335578 | import os
import v2_draw_dynamic as main_app
import logging
import sys
def cmd(cmdstr):
print(cmdstr)
os.system(cmdstr)
def main():
'''
if len(sys.argv) < 2:
logging.error("please input msg log file")
return
'''
while True:
try:
main_app.draw... | HZRelaper2020/show_log | v2_draw_dynamic_script.py | v2_draw_dynamic_script.py | py | 497 | python | en | code | 0 | github-code | 36 |
27479098786 |
import os
import pika # Importa a biblioteca pika para interagir com o RabbitMQ
import time # Importa a biblioteca time para controlar o tempo de sleep do loop
import socket # Importa socket para verificar a conectividade com a internet
import json # Importa json para manipular dados JSON
import random # Importa ... | elderofz1on/ZionArchive | Projetos/MachineSimulatorMQTT/sensor_simulator.py | sensor_simulator.py | py | 7,987 | python | pt | code | 0 | github-code | 36 |
10666273143 | # ---
# jupyter:
# jupytext:
# formats: ipynb,py:light
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.14.4
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
# name: python3
# ---
# +
# 왜 틀리지?... | chahyeonnaa/algorithm | 정렬/11652 카드.py | 11652 카드.py | py | 846 | python | ko | code | 0 | github-code | 36 |
21135250267 | # Databricks notebook source
# MAGIC %md
# MAGIC ## 2D Linear Regression
# MAGIC
# MAGIC #### Description
# MAGIC
# MAGIC This notebook is designed to provide a very basic insight into linear regression and how to utilise sklearn to perform it on datsets.
# MAGIC
# MAGIC In this notebook linear regression is performed ... | NHSDigital/sde_example_analysis | python/machine_learning_small_data/regression_simple.py | regression_simple.py | py | 7,838 | python | en | code | 1 | github-code | 36 |
25196942976 | import numpy as np
import argparse
### Arguments ###
parser = argparse.ArgumentParser()
parser.add_argument('input', type=str, help='Input text file')
parser.add_argument('fmap', type=str, help='Map with value and residue')
parser.add_argument('chain', type=str, help='Chain identifier to match residues')
parser.add_a... | JAMelendezD/Contacts | paint_pdb.py | paint_pdb.py | py | 2,209 | python | en | code | 1 | github-code | 36 |
28515474927 | import urllib2, optparse
from opus_core.logger import logger
class LoadXSD(object):
'''
classdocs
'''
def __init__(self, source, destination):
'''
Constructor
'''
self.xsd_source = source
self.xsd_destination = destination
def load_and_store(self):
... | psrc/urbansim | opus_matsim/models/pyxb_xml_parser/load_xsd.py | load_xsd.py | py | 1,508 | python | en | code | 4 | github-code | 36 |
26743970117 | # -*- coding: utf-8 -*-
from linlp.algorithm.Viterbi import viterbiRecognitionSimply
from linlp.algorithm.viterbiMat.prob_trans_place import prob_trans as trans_p
from linlp.algorithm.viterbiMat.prob_emit_place import prob_emit as emit_p
def placeviterbiSimply(obs, DT, obsDT, debug):
if debug:
x = obs
... | yuanlisky/linlp | linlp/recognition/PlaceRecognition.py | PlaceRecognition.py | py | 2,220 | python | en | code | 0 | github-code | 36 |
39901505337 | from collections import OrderedDict
from django.core.urlresolvers import resolve
def link_processor(request):
"""
This function provides, to all pages, a dict of links called "page_links".
These links contain {"name": "tag"} for a name of a page to a view tag.
These are used to automatically populate... | brhoades/sweaters-but-with-peer-reviews | middleware/links.py | links.py | py | 712 | python | en | code | 1 | github-code | 36 |
17770305064 | class leafNode:
def __init__(self, data) -> None:
self.leafData = self.numberOfLabelOccurrences(data) #para análise de treinamento
self.isLeaf = True
def numberOfLabelOccurrences(self, data):
# um dicionário (nao permite itens duplicados)
# para armazenar as labels e quantas vez... | gabteo/bandeiras-covid | bandeiras-covid/leafNode.py | leafNode.py | py | 709 | python | pt | code | 0 | github-code | 36 |
4164917046 | # task 10.2 Напишіть програму, яка пропонує користувачу ввести свій вік, після чого виводить повідомлення про те чи вік є парним чи непарним числом.
# В програмі необхідно передбачити можливість введення від’ємного числа, і в цьому випадку згенерувати виняткову ситуацію.
# Головний код має викликати функцію, яка обробл... | PythonCore051020/HW | HW10/RLysyy/task_10_2.py | task_10_2.py | py | 1,230 | python | uk | code | 0 | github-code | 36 |
26409275029 | #这个是我自己写的,过了前80个Case 过不了最后一个 超时了
#代码随想录的前两个答案也超时,只有那个用字典的不超时
'''
class Solution:
def findItinerary(self, tickets: List[List[str]]) -> List[str]:
self.result = []
tickets.sort()
used = [False] * len(tickets)
self.backtracking(['JFK'],used,tickets)
return self.result
def ... | lpjjj1222/leetcode-notebook | 332. Reconstruct Itinerary.py | 332. Reconstruct Itinerary.py | py | 2,563 | python | zh | code | 0 | github-code | 36 |
14003011170 | import json
import requests
import random
import re
baseUrl = "http://jw1.yzu.edu.cn/"
session = requests.Session()
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36',
'Content-Type': 'application/x-www-form-urlencoded'... | Rickenbacker620/Codes | Python/stuff/urp.py | urp.py | py | 2,979 | python | en | code | 0 | github-code | 36 |
3587126567 | # -*- coding: utf-8 -*-
"""
Binarization
Feature binarization is the process of thresholding numerical features to
get boolean values.
"""
from sklearn.model_selection import train_test_split
from sklearn import preprocessing
import numpy as np
import pandas as pd
from scipy import signal,stats
from flas... | KaifangXu/APIs | Data_pre/Binarization.py | Binarization.py | py | 2,972 | python | en | code | 0 | github-code | 36 |
159278396 | # глобальная переменная доступная в любом месте
# локальние доступние токо в пределах етого блока
name = 'Tom'
a = 5
N = (100,)
def myfunc(b):
# global a
a = 10
for x in range(b):
n = x + 1 # здесь a=10 как локальная переменная если написать global
print(n, end=" ") # мы будем работат... | Savag33/My_Projects_python | Scopes/global,local.py | global,local.py | py | 2,023 | python | ru | code | 1 | github-code | 36 |
9636350217 | #%%
import numpy.random as rnd
import pandas as pd
#%%
# Number of samples
number_of_samples = 1000
#%%
# Distribution
def coin_flip():
if rnd.random() >= 0.5: # Set distribtution
return True
else:
return False
#%%
def simulation(number_of_samples):
simulated_data = []
for sample in rang... | jdwrhodes/PyBer_Analysis | Module-Work/coin_simulator.py | coin_simulator.py | py | 2,532 | python | en | code | 0 | github-code | 36 |
69982166183 | import pandas
df = pandas.read_csv("/home/garrett/Desktop/Git_Repositories/Python_Practice/Exercises/Exercise_11/world-cities-population.csv")
cent = dict([(i,[a]) for i, a, in zip(df['Country or Area'],df['City'])])
cent_am = ["Belize","Costa Rica","El Salvador","Guatemala","Honduras","Nicaragua","Panama"]
city_ce... | GarrettMatthews/CS_1400 | Exercises/Exercise_11/central_america.py | central_america.py | py | 461 | python | en | code | 0 | github-code | 36 |
13961966989 | from django import forms
from django.db import transaction
from django.utils.translation import gettext as _
from ..models import Duplicate, HelperShift
class MergeDuplicatesForm(forms.Form):
def __init__(self, *args, **kwargs):
self.helpers = kwargs.pop("helpers")
super(MergeDuplicatesForm, sel... | helfertool/helfertool | src/registration/forms/duplicates.py | duplicates.py | py | 4,063 | python | en | code | 52 | github-code | 36 |
21159707752 | # --------------
#Importing header files
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#Path of the file
path
#Code starts here
#Reading the file
data=pd.read_csv(path)
#Renaming a column
data.rename(columns={'Total':'Total_Medals'},inplace=True)
#Printing the first five colu... | nagnath001/olympic-hero | code.py | code.py | py | 4,367 | python | en | code | 0 | github-code | 36 |
72655723623 | import os
import sys
import math
from tqdm import tqdm
import pandas as pd
import numpy as np
sys.path.insert(1, os.path.join(sys.path[0], '..'))
from util import argparser
def permutation_test(df, column, n_permutations=100000, batch_size=1000):
# Get actual batch size
batch_size = min(batch_size, n_permuta... | rycolab/form-meaning-associations | src/h04_analysis/get_results_per_token.py | get_results_per_token.py | py | 3,405 | python | en | code | 0 | github-code | 36 |
30103583749 | def solution(arr):
arr.sort()
answer = 0 # total group
member = 0 # current member
for i in arr:
member += 1
if member >= i:
member = 0
answer += 1
return answer
if __name__ == '__main__':
arr = [2, 3, 1, 2, 2]
print(solution(arr))
| RyuMyunggi/algorithm | algorithm/greedy/q1_모험가길드.py | q1_모험가길드.py | py | 304 | python | en | code | 0 | github-code | 36 |
6529596584 | """
The `test.unit.sha_api.mybottle.sha_api_bottle_test` module provides unit tests for the `ShaApiBottle` class in
`sha_api.mybottle.sha_api_bottle`.
Classes:
TestShaApiBottle: A unit test class for the `ShaApiBottle` class.
"""
import json
import tempfile
import unittest
from bottle import ConfigDict # pylint:... | ju2wheels/python_sample | python/test/unit/sha_api/mybottle/sha_api_bottle_test.py | sha_api_bottle_test.py | py | 4,614 | python | en | code | 0 | github-code | 36 |
14860521204 | #!/usr/bin/env python
'''
对测试集数据进行测试,统计所有数据平均的RRMSE,SNR和CC值
'''
import argparse
import os
import numpy as np
import torch
from torch.utils.data import Dataset, DataLoader
from utility.data import EEGData
from utility.conv_tasnet_v1 import TasNet
from utility.network import ResCNN, Novel_CNN2, Novel_CNN, fcNN
import m... | BaenRH/DSATCN | code/evaluate_perSNR.py | evaluate_perSNR.py | py | 8,151 | python | en | code | 0 | github-code | 36 |
5297089787 | import asyncio
import json
import logging
import logging.config
from dataclasses import dataclass
import yaml
from web3 import Web3
from web3._utils.filters import LogFilter
@dataclass
class FilterWrapper:
event_filter: LogFilter
pair_name: str
oracle_address: str
logger: logging.Logger
class Block... | dzahbarov/blockchain_monitor | monitor.py | monitor.py | py | 2,721 | python | en | code | 0 | github-code | 36 |
15860273253 | from __future__ import division
from builtins import str
import numpy as np
import pandas as pd
import seaborn as sns
from .helpers import *
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rcParams['pdf.fonttype'] = 42
def plot(results, subjgroup=None, subjname='Subject Group', listgroup=None,
l... | ContextLab/quail | quail/plot.py | plot.py | py | 10,790 | python | en | code | 18 | github-code | 36 |
26465084457 | import pigpio
from time import sleep
pi = pigpio.pi()
#set GPIO pins
channel = 17
light_on = 10; #seconds
frequency = 100000; #seconds
pi.set_mode(17,pigpio.INPUT)
pi.set_PWM_dutycycle(17,128)
pi.set_PWM_frequency(17,5000)
print(pi.get_PWM_frequency(17))
sleep(light_on)
pi.write(channel,0)
| Naveen175py/IC231_Lab2 | task4.py | task4.py | py | 312 | python | en | code | 0 | github-code | 36 |
72398212263 | from django import forms
from django.forms import Textarea
from .models import Comment, Post
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ("text", "group", "image")
widgets = {
"text": Textarea(
attrs={"class": "form-control", "placeholder... | EISerova/yatube-social-network | yatube/posts/forms.py | forms.py | py | 738 | python | en | code | 0 | github-code | 36 |
42600266577 | # Копирование найденных надежных и ненадежных аудиозаписей по Социуму за 2017-2018 на архивный диск
import openpyxl, traceback
import os, string, sys, shutil
from collections import Counter
from lib import l, fine_snils_, read_config
FIND_CATALOG = '/media/da3/asteriskBeagleAl/'
#CHANGE_ON_WINDOWS = 'Z:/'
#OUTPUT_CATA... | dekarh/asocium | asociumWrite.py | asociumWrite.py | py | 9,480 | python | en | code | 0 | github-code | 36 |
14141185614 | import requests
import json
import urllib.parse
from django.conf import settings
def current_place():
"""
現在地の緯度経度を取得する。
Returns:
int: 現在地の緯度、経度
"""
geo_request_url = "https://get.geojs.io/v1/ip/geo.json"
geo_data = requests.get(geo_request_url).json()
# print(geo_data['latitud... | nicenaito/theatreCheckIn | theatreplaces.py | theatreplaces.py | py | 2,354 | python | ja | code | 0 | github-code | 36 |
6846890085 | import pandas as pd
import sqlite3
def connect_sqlite(db_file):
with sqlite3.connect(db_file) as conn:
conn.row_factory = sqlite3.Row
cur = conn.cursor()
return conn, cur
def get_dataframe(db_file, sql):
conn, cur = connect_sqlite(db_file)
df = pd.read_sql(sql,conn)
... | tcref/helloworld | helloworld/tcref/src/main/webpy_rest/check_db/statistics.py | statistics.py | py | 895 | python | en | code | 0 | github-code | 36 |
28686029068 | import json
import pandas as pd
from os.path import join
PROJECT_PATH = '../../'
event = pd.read_csv(join(PROJECT_PATH, 'data', 'LinearSearchThreadEvent.csv'),
header=None,
names=['Id', 'RootEventId', 'UserIdentifier', 'CreationDate', 'DiffSeconds', 'EventSource',
... | kbcao/sequer | code/DatasetExtraction/eventList_extraction.py | eventList_extraction.py | py | 1,645 | python | en | code | 15 | github-code | 36 |
18903219922 | from logging import getLogger
from os.path import join
from configparser import NoOptionError
from uchicagoldrtoolsuite import log_aware
from uchicagoldrtoolsuite.core.app.abc.cliapp import CLIApp
from ..lib.writers.filesystemstagewriter import FileSystemStageWriter
from ..lib.readers.filesystemstagereader impo... | uchicago-library/uchicagoldr-toolsuite | uchicagoldrtoolsuite/bit_level/app/technicalmetadatacreator.py | technicalmetadatacreator.py | py | 5,572 | python | en | code | 0 | github-code | 36 |
34343308888 | '''Write a program that sort a list in descending order '''
n = [9,2,8,1,10,34,1,4,37,2]
for i in range(0, len(n)):
for j in range(i+1, len(n)):
if n[i] < n[j]:
temp = n[i]
n[i] = n[j]
n[j] = temp
print(n)
| ABDULSABOOR1995/Python-List-Exercises | List Exercises/sorting.py | sorting.py | py | 258 | python | en | code | 2 | github-code | 36 |
38107931605 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('article', '0002_remove_article_article_date'),
]
operations = [
migrations.AddField(
model_name=... | Evgeneus/blog-django-1.7 | article/migrations/0003_article_article_date.py | 0003_article_article_date.py | py | 494 | python | en | code | 0 | github-code | 36 |
72548079143 | #!/usr/bin/python
__author__ = "Evyatar Orbach"
__email__ = "evyataro@gmail.com"
'''Exercise 8
Make a two-player Rock-Paper-Scissors game.
(Hint: Ask for player plays (using input), compare them, print out a message of congratulations to the winner, and ask if the players want to start a new game)
Remember the rules:... | orbache/pythonExercises | exercise8.py | exercise8.py | py | 1,946 | python | en | code | 0 | github-code | 36 |
34338550372 | # https://leetcode.com/problems/add-two-numbers/?tab=Description
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: ListNode
:type l2: L... | 0x0400/LeetCode | p2.py | p2.py | py | 976 | python | en | code | 0 | github-code | 36 |
75162026024 | """
Config file for Streamlit App
"""
from member import Member
PROMOTION = "Promotion Continue Data Analyst - Mars 2022"
TITLE = "UnhapPy Earth"
# membres du groupe
TEAM_MEMBERS = [
Member(name = "Olga Fedorova",
linkedin_url = "https://www.linkedin.com/in/olga-fedorova-665a4b63/",
gi... | DataScientest-Studio/mar22CDA_unhapPy_earth_studio | config.py | config.py | py | 1,313 | python | en | code | 0 | github-code | 36 |
9366685884 | import mysql.connector
import csv
import git
import os
import subprocess
import sys
from mysql.connector import Error
from operator import itemgetter
from testClasses import *
from connectSQL import *
def getRanVersions():
snapshots = []
fullSnapshots = []
try:
conn = mysql.connector.connect(host='localhost',
... | MaxMoede/DPDM | getTags.py | getTags.py | py | 2,613 | python | en | code | 0 | github-code | 36 |
21877552923 | import os
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives.hashes import SHA256
from cryptography.hazmat.primitives.asymmetric import padding
# save file... | Marcus11Dev/Blockchain_Lesson_Agent | create_Keys.py | create_Keys.py | py | 1,319 | python | en | code | 0 | github-code | 36 |
27271629688 | import time, random
import pygame
screen_w = 800
screen_h = 600
# Create the window
screen = pygame.display.set_mode((screen_w,screen_h))
black = (0,0, 0)
red = (255,0,0)
green = (0, 200, 0)
class Game(object):
def __init__(self):
self.screen = pygame.display.set_mode((800,600))
self.score = 0
self.oldScore... | eliazz95/JumpingGame | firstGame.py | firstGame.py | py | 6,406 | python | en | code | 0 | github-code | 36 |
17111491784 | class Solution(object):
def twoSum(self,nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
hash_map = {}
for index, value in enumerate(nums):
hash_map[value] = index
for i, num in enumerate(nums):
j... | yannweb/yanns_code | code/001.py | 001.py | py | 994 | python | en | code | 1 | github-code | 36 |
10650897169 | import frappe
import re
import jwt
from frappe import _
from frappe.utils.data import cstr, cint, flt
from frappe.utils import getdate
from erpnext.regional.india.e_invoice.utils import (GSPConnector,raise_document_name_too_long_error,read_json,get_transaction_details,\
validate_mandatory_fields,get_doc_details,get_ov... | venku31/ceramic | ceramic/e_invoice_ceramic.py | e_invoice_ceramic.py | py | 6,890 | python | en | code | null | github-code | 36 |
3082899682 | import json
from hsfs import util
import humps
class TrainingDatasetSplit:
TIME_SERIES_SPLIT = "TIME_SERIES_SPLIT"
RANDOM_SPLIT = "RANDOM_SPLIT"
TRAIN = "train"
VALIDATION = "validation"
TEST = "test"
def __init__(
self,
name,
split_type,
percentage=None,
... | logicalclocks/feature-store-api | python/hsfs/training_dataset_split.py | training_dataset_split.py | py | 2,210 | python | en | code | 50 | github-code | 36 |
8492244725 | """
Checkboxes, are similar to radio buttons.
Square boxes that basically just relate to 0/1
We have this box tied to an int (0/1).
If you tie it to a string (on/off) you need to change a few things
We will copy this and create a string example on the next file.
"""
# PIL=Pillow. Terminal: pip3 install Pillow
# Nee... | ncterry/Python | Tkinter/tkinter19_checkboxes.py | tkinter19_checkboxes.py | py | 1,119 | python | en | code | 0 | github-code | 36 |
26316442971 | import pandas as pd
from sklearn.impute import KNNImputer
from imblearn.over_sampling import SMOTE
from matplotlib import pyplot as plt
pd.set_option('display.max_columns', None)
pd.set_option('display.width', 1000)
df = pd.read_csv('./alzheimer.csv', skiprows=1, names=(
'Group', 'M/F', 'Age', 'EDUC', 'SES', 'MMSE',... | dlepke/4948-a1 | data_exploration.py | data_exploration.py | py | 4,701 | python | en | code | 0 | github-code | 36 |
36947928289 | from __future__ import print_function
__revision__ = "src/engine/SCons/Tool/rpmutils.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan"
import platform
import subprocess
import SCons.Util
# Start of rpmrc dictionaries (Marker, don't change or remove!)
os_canon = {
'AIX' : ['AIX','5'],
'Am... | mongodb/mongo | src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Tool/rpmutils.py | rpmutils.py | py | 15,575 | python | en | code | 24,670 | github-code | 36 |
11732621418 | from collections import Counter
##研究health样本和IBD样本内的物种:(common,health only,IBD only)
#日后还要分析他们分别在多少个样本内出现以及abundance。
health_path="/home/zc/IDBdata/all_data/species-analysis/non-species-common0.1-ave.csv"
ibd_path="/home/zc/IDBdata/all_data/species-analysis/ibd-species-common0.1-ave.csv"
health_spe_set=set()
health_c... | zhangchen97/Metabolic-Network | analysis/onLy_species.py | onLy_species.py | py | 2,297 | python | en | code | 1 | github-code | 36 |
31056572667 | from django.contrib.auth.models import AbstractBaseUser, UserManager, \
PermissionsMixin
from django.core import validators
from django.db import models
from django.utils import timezone
from accounts import constants
class User(AbstractBaseUser, PermissionsMixin):
#: The Permission level for this user
p... | sublime1809/pto_tracker | accounts/models.py | models.py | py | 2,840 | python | en | code | 0 | github-code | 36 |
6536609411 | #!/usr/bin/env python3
# https://www.urionlinejudge.com.br/judge/en/problems/view/1019
def decompose(total, value):
decomposed = total // value
return total - decomposed * value, decomposed
def main():
SECONDS = int(input())
SECONDS, HOURS = decompose(SECONDS, 60 * 60)
SECONDS, MINUTES = de... | rafaelpascoalrodrigues/programming-contests | uri-online-judge/python3/1019.py | 1019.py | py | 483 | python | en | code | 0 | github-code | 36 |
38033757546 | import dataclasses
import pickle
import re
from collections.abc import Hashable
from datetime import datetime
from pathlib import Path
from typing import Callable, ClassVar, Dict, FrozenSet, List, Optional, Set, Union
import pytest
from typing_extensions import Literal
import pydantic
from pydantic import BaseModel, ... | merlinepedra25/PYDANTIC | tests/test_dataclasses.py | test_dataclasses.py | py | 34,040 | python | en | code | 1 | github-code | 36 |
74788585384 | import operator
from itertools import tee, starmap, groupby
from typing import Literal
def pairwise(iterable):
"s -> (s0,s1), (s1,s2), (s2, s3), ..."
a, b = tee(iterable)
next(b, None)
return zip(a, b)
def has_six_digits(i: int):
return 100_000 <= i <= 999_999
def is_nondecreasing_sequence(i: ... | el-hult/adventofcode2019 | day04/day4_lib.py | day4_lib.py | py | 1,183 | python | en | code | 0 | github-code | 36 |
6654095261 | from flask import Flask, render_template, request, redirect, session
from datetime import datetime
import random
app = Flask(__name__)
app.secret_key = 'JSaafE54!@#$%$#%^&*()_+'
@app.route('/')
def index():
#crear una variable session
if 'num_azar' not in session:
session['num_a... | cpinot/CodingDojo | python/flask/fundamentals/numeros_juegos_genial/server.py | server.py | py | 2,060 | python | en | code | 0 | github-code | 36 |
5232344019 | from openpyxl import load_workbook
wb = load_workbook("sample.xlsx")
ws = wb.active
# 번호 영어 수학
# 번호 (국어) 영어 수학
ws.move_range("B1:C11", rows=0, cols=1) # 0줄 밑으로, 1줄 오른쪽으로 이동
ws["B1"].value = "국어" # B1 셀에 '국어' 입력
# ws.move_range("C1:C11", rows=5, cols=-1) # 데이터 옮기면서 덮어씀
wb.save("sample_korean.xlsx") | OctoHoon/PythonStudy_rpa | rpa_basic/1_excel/9_move.py | 9_move.py | py | 402 | python | ko | code | 0 | github-code | 36 |
36968708533 | from collections import namedtuple
import os
# from unittest.mock import patch
import datetime
import random
import pytest
import hug
from bson.objectid import ObjectId
from pymongo import MongoClient
from pymongo.uri_parser import parse_uri
from helpers import clean_url, clean_email, hash_password
from db import DB
... | ellisonleao/ef-url-shortener | test_api.py | test_api.py | py | 11,725 | python | en | code | 1 | github-code | 36 |
31408793357 | url = 'http://rest.kegg.jp/'
find = 'find' # Searches databases for a given term
list = 'list' # Lists the entries in a database
link = 'link' # Finds related entries in other databases
conv = 'conv' # Converts between KEDD identifiers and outside identifiers
info = 'info' # Gets information about the given database
ge... | Arabidopsis-Information-Portal/Intern-Hello-World | services/common/vars.py | vars.py | py | 538 | python | en | code | 0 | github-code | 36 |
30626059692 |
izbor = int(input("""Zdravo, ovo je spisak za kupovinu odaberi jednu od sledecih opcija:
1. Dodaj stavku na spisak
2. izlaz
"""))
lista = [ ]
n = int(input("Unesi broj stavki koje kupujemo : "))
if n == 0:
print ('Uneo si 0 stavki u spisak')
if izbor == 1:
for i in range(0, n):
element = [input... | mifa43/Python | liste kombinacija/listekombo.py | listekombo.py | py | 462 | python | hr | code | 1 | github-code | 36 |
43867194701 | n = int(input())
txy = [[0, 0, 0]] + [list(map(int, input().split())) for _ in range(n)]
flag = True
for i in range(1, n + 1):
t = txy[i][0] - txy[i - 1][0]
x = abs(txy[i][1] - txy[i - 1][1])
y = abs(txy[i][2] - txy[i - 1][2])
if not t >= x + y or not t % 2 == (x + y) % 2:
flag = False
... | cocoinit23/atcoder | abc/abc086/C - Traveling.py | C - Traveling.py | py | 366 | python | en | code | 0 | github-code | 36 |
15903684309 | import os
import numpy as np
def octopuses(lines:list, step_count:int=100):
def step(arr):
res = []
for i in range(len(arr)):
for k in range(len(arr[0])):
if arr[i,k]<9:
arr[i,k] = arr[i,k] + 1
else:
arr[i,k] = 0
... | coolafabbe/AdventOfCode2021 | Mikel/Day11/main.py | main.py | py | 2,449 | python | en | code | 0 | github-code | 36 |
75127577704 | import sys
from cravat import BaseAnnotator
from cravat import InvalidData
import sqlite3
import os
class CravatAnnotator(BaseAnnotator):
def annotate(self, input_data, secondary_data=None):
q = 'select brs_penetrance, lqt_penetrance, brs_structure, lqt_structure, function, lqt, brs, unaff, other, ... | KarchinLab/open-cravat-modules-karchinlab | annotators/arrvars/arrvars.py | arrvars.py | py | 1,275 | python | en | code | 1 | github-code | 36 |
27515854785 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Aug 23 17:32:15 2020
geometry based sieving
"""
import os
import pickle
from skimage import measure
import pandas as pd
import numpy as np
import nibabel as nib
from skimage import measure
from sklearn import neighbors
# PROPERTIES = ['area', 'exten... | rsjones94/neurosegment | neurosegment/gbs.py | gbs.py | py | 5,678 | python | en | code | 2 | github-code | 36 |
33014513380 | import numpy as np
import random
import math
import matplotlib.pyplot as plt
def intersects(s0,s1):
dx0 = s0[1][0]-s0[0][0]
dx1 = s1[1][0]-s1[0][0]
dy0 = s0[1][1]-s0[0][1]
dy1 = s1[1][1]-s1[0][1]
p0 = dy1*(s1[1][0]-s0[0][0]) - dx1*(s1[1][1]-s0[0][1])
p1 = dy1*(s1[1][0]-s0[1][0]) - dx1*(s1[1][1... | HighSpeeds/ECE3 | CarLab/LineGenerator.py | LineGenerator.py | py | 1,677 | python | en | code | 0 | github-code | 36 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.