First 28 rows of py
| uuidstring | repo_namestring | relative_pathstring | contentstring | categorystring | algo_rel_scorefloat64 | quality_scorefloat64 |
|---|---|---|---|---|---|---|
| 092b1562-d4e9-4423-b494-6260a4844eaa | gagaoqphs/dunno | SaitamaRobot/modules/helper_funcs/filters.py | from SaitamaRobot import DEV_USERS, SUDO_USERS, SUPPORT_USERS from telegram import Message from telegram.ext import BaseFilter class CustomFilters(object): class _Supporters(BaseFilter): def filter(self, message: Message): return bool(message.from_user … | TOOL | 0.993913471698761 | 4.878283500671387 |
| a0a53254-1fa8-4717-af59-32ec15719b3d |
| OpenSfM/opensfm/src/third_party/pybind11/tests/test_sequences_and_iterators.py |
| import pytest from pybind11_tests import sequences_and_iterators as m from pybind11_tests import ConstructorStats def isclose(a, b, rel_tol=1e-05, abs_tol=0.0): """Like math.isclose() from Python 3.5""" return abs(a - b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol) de… |
| TEST |
| 0.9913615584373474 |
| 5.646881103515625 |
| f5bfda45-13ca-4d8c-8474-0992d16fd811 | HopWater/100DaysOfPython | Day 12/Block Scope/solution.py | game_level = 10 enemies = ["Skeleton", "Zombie", "Alien"] def create_enemy(): new_enemy = "" if game_level < 5: new_enemy = enemies[0] print(new_enemy) | TOOL | 0.9986119270324707 | 4.0546979904174805 |
| 9f31ec60-4bd6-4bd0-96e0-faa150d6c65b | JiKook31/thesis | env/lib/python3.6/site-packages/nltk/translate/metrics.py | from __future__ import division def alignment_error_rate(reference, hypothesis, possible=None): """ Return the Alignment Error Rate (AER) of an alignment with respect to a "gold standard" reference alignment. Return an error rate between 0.0 (perfect alignment) a… | ALGO | 0.11805833876132965 | 4.5904130935668945 |
| 050ebed1-1c5a-43b0-8137-3f72f1aa5792 | psandovalsegura/captions-to-vqa | prompts.py | user_prompts = { 'v000': """Given a description of an image, write a question-answer pair. \ The question should not just ask for the subject of the image because the answer \ would be the caption itself. Focus on things like objects, attributes, colors, \ textures, patterns,… | CONFIG | 0.7931990027427673 | 3.1515536308288574 |
| 7c1f9bad-96c0-4581-aaf1-9fca0b881d7d | rosebeni/repo | .local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-23.3.1-py3-none-any/pip/_vendor/colorama/tests/ansitowin32_test.py | from io import StringIO, TextIOWrapper from unittest import TestCase, main try: from contextlib import ExitStack except ImportError: # python 2 from contextlib2 import ExitStack try: from unittest.mock import MagicMock, Mock, patch except ImportError: from mo… | TEST | 0.15146957337856293 | 7.2194414138793945 |
| 6ba81ae5-fb6f-4d7f-a71a-27711c9f38f4 | GabrielDelvalle70/proyecto-HistorialMedico | env/Lib/site-packages/pip/_vendor/packaging/_structures.py | class InfinityType: def __repr__(self) -> str: return "Infinity" def __hash__(self) -> int: return hash(repr(self)) def __lt__(self, other: object) -> bool: return False def __le__(self, other: object) -> bool: return False … | ALGO | 1.9225417702273262e-8 | 6.155572414398193 |
| 12124b77-44c9-43a5-94fb-f80e3d00585e | codehag/compiler-compiler-dev | testing/web-platform/tests/tools/third_party/h2/test/test_head_request.py | # -*- coding; utf-8 -*- """ test_head_request ~~~~~~~~~~~~~~~~~ """ import h2.connection import pytest class TestHeadRequest(object): example_request_headers = [ (b':authority', b'example.com'), (b':path', b'/'), (b':scheme', b'https'… | TEST | 0.9454846382141113 | 6.992634296417236 |
| edf5ecba-98f9-4a0f-a078-f55e08dad34e | Landau33/PX4-Cyclocopter | Tools/fetch_file.py | """Fetch files via nsh console Usage: python fetch_file.py [-l] [-f] [-d device] [-s speed] [-o out_path] path \t-l\tList files \t-f\tOverwrite existing files \t-d\tSerial device \t-s\tSerial baudrate \t-o\tOutput path \tpath\tPath to list/fetch, if ends with "/" then directory … | TOOL | 0.9812127947807312 | 6.577886581420898 |
| b47136cc-4a47-400e-93d2-7a68ce8126c5 | hymmm/cl | test/integration/component/test_ss_domain_limits.py | """ P1 tests for secondary storage domain limits Test Plan: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Limit+Resources+to+domain+or+accounts Issue Link: https://issues.apache.org/jira/browse/CLOUDSTACK-1466 Feature Specifications: https://cwiki.apache.o… | TEST | 0.15244364738464355 | 5.689040184020996 |
| 1389b7b3-c57e-463b-80e3-61cfa5e08ba1 | nataliaalmada/DISTRIBU-DOS2023-1 | Implementando um Middleware com RabbitMQ - Atividade Prática/envia mensagem.py | import pika import time import psutil #cria a função que "sente" atemperatura da cpu def remetente(): while True: temperatura = psutil.sendordetemp().coretemp[0].current channel.basic_publish(exchange='', routing_key='Temperatura da CPU', body=str(temperatura)) tim… | TOOL | 0.6917504072189331 | 3.076958656311035 |
| fe2900b1-2400-451f-be39-5bd064cb7d24 | chandibhandari1/LinearRegression | self_create_data/linRegAPI.py | import numpy as np import pandas as pd from flask import Flask, request from flask import jsonify, render_template, make_response import pickle app =Flask(__name__) # load the saved model model_linreg = pickle.load(open('model_linReg.pkl', 'rb')) # load the one_hot encodinga and… | WEB | 0.9985780715942383 | 6.401442527770996 |
| 512f4cc9-8c36-4504-88a6-0a5f1687dfbe | yjchoi-grove/vibe_coding | backend/app/routers/comments.py | from fastapi import APIRouter, HTTPException, Depends, Body, Form, UploadFile, File from sqlalchemy.orm import Session from typing import List, Optional from pydantic import BaseModel from ..models.yj_comments import YJComments from ..models.yj_posts import YJPosts from ..databas… | WEB | 0.9682945609092712 | 7.98760986328125 |
| f13b5948-ae6d-45d3-8683-3782ee419ed0 | wrongbad/badcad | setup.py | from setuptools import setup, find_packages setup( name='badcad', version='0.1.0', url='https://github.com/wrongbad/badcad.git', author='wrongbad', description='csg for python/jupyter environments', packages=find_packages(), install_requires=['pyt… | TOOL | 0.8163542151451111 | 4.539727210998535 |
| bd84dfbf-412c-419f-b4be-7c9ab6ad55f4 | Abhinav-abhi/asiignment_FAQs | venv/lib/python3.10/site-packages/sympy/functions/special/bessel.py | from functools import wraps from sympy.core import S from sympy.core.add import Add from sympy.core.cache import cacheit from sympy.core.expr import Expr from sympy.core.function import Function, ArgumentIndexError, _mexpand from sympy.core.logic import fuzzy_or, fuzzy_not from … | ALGO | 1.4709145546021318e-7 | 6.130075454711914 |
| 7a6b2f8f-2b40-4fc6-8729-2c70a6c506fd | Chise1/fastapi_admin | fastapi_admin/config/models.py | # -*- encoding: utf-8 -*- """ @File : models.py @Time : 2020/4/7 20:36 @Author : chise @Email : <EMAIL> @Software: PyCharm @info : """ from sqlalchemy import Column, String,Integer,Float from ..databaseManage import Base class Config(Base,): """fastapi_config_co… | CONFIG | 0.997028648853302 | 4.91064453125 |
| c3d9b32d-9594-45db-8bae-3193b2410496 | EducloudHQ/multi-modal-rag-api-langchain-pinecone | .aws-sam/deps/36558443-7967-42f2-aed7-59e8fe013a21/aws_lambda_powertools/utilities/parser/parser.py | from __future__ import annotations import logging import typing from typing import TYPE_CHECKING, Any, Callable, overload from pydantic import PydanticSchemaGenerationError from aws_lambda_powertools.middleware_factory import lambda_handler_decorator from aws_lambda_powertools… | TOOL | 0.9735715389251709 | 9.051016807556152 |
| 15e7eec2-a641-4ffa-a8aa-e2a45c0be3a8 | kimhojun2/Algorithm | 백준/Gold/1937. 욕심쟁이 판다/욕심쟁이 판다.py | import sys sys.setrecursionlimit(10 ** 6) input = sys.stdin.readline N = int(input()) arr = [list(map(int, input().split())) for _ in range(N)] di = [0, 0, 1, -1] dj = [1, -1, 0, 0] dp = [[0] * N for _ in range(N)] def check(y, x): if dp[y][x] != 0: return dp[y][x… | ALGO | 0.9782373309135437 | 4.052006721496582 |
| 096162c1-249c-4004-b791-88f48bea366f | mishrakeshav/Competitive-Programming | Code Forces/Round 644/B.honest_coach.py | for t in range(int(input())): n = int(input()) s = list(map(int, input().split())) s.sort() diff = float("inf") for i in range(n - 1): if s[i + 1] - s[i] < diff: diff = s[i + 1] - s[i] print(diff) | ALGO | 0.9541659355163574 | 3.2025742530822754 |
| ee2b01a6-69dc-435d-817f-b01ba9542205 | idslab-autosec/AutoSVT-Carla-Apollo-Bridge | src/carla_python/util/vehicle_physics_tester.py | #!/usr/bin/env python """ Tester for vehicle physics utility for CARLA Uses: Basics scenearios (acceleration, brake, u-turn): python vehicle_physics_tester.py --filter vehicle_id --basics High-speed (100km/h) turn sceneario: python vehicle_physics_tester.… | TEST | 0.49909302592277527 | 4.755565166473389 |
| ce96b7d3-7b9f-4627-8d2c-83c107ed7745 | kennyxjd/ultralytics | tests/test_cli.py | import subprocess from pathlib import Path import pytest from ultralytics.utils import ONLINE, ROOT, SETTINGS WEIGHT_DIR = Path(SETTINGS['weights_dir']) TASK_ARGS = [ # (task, model, data) ('detect', 'yolov8n', 'coco8.yaml'), ('segment', 'yolov8n-seg', 'coco8-seg.yaml'), … | TEST | 0.9909105896949768 | 6.1258697509765625 |
| 900a690c-5e02-4b51-92fa-0131e9906bee | Guildsander/DZ13 | venv/DZ12.py | import string input_string = input("Введіть рядок: ") clean_string = ''.join(char for char in input_string if char not in string.punctuation) words = clean_string.split() capitalized_words = [word.capitalize() for word in words if word.isalpha()] hashtag = '#' + ''.join(capital… | TOOL | 0.9908085465431213 | 4.945827484130859 |
| 969b551b-9912-4839-a92e-f45ffc64bc1e | yuyichao/pypy | lib-python/2.7/lib-tk/tkFont.py | # Tkinter font wrapper # # written by Fredrik Lundh, February 1998 # # FIXME: should add 'displayof' option where relevant (actual, families, # measure, and metrics) # __version__ = "0.9" import Tkinter # weight/slant NORMAL = "normal" ROMAN = "roman" BOLD = "bold" IT… | TOOL | 0.5891771912574768 | 7.208419322967529 |
| 0f3770a3-b82f-4ce7-801a-6db1436a0036 | nuaays/Miscellaneous_Scripts | wssh/examples/pyasn1-0.1.9/test/codec/der/test_encoder.py | from pyasn1.type import namedtype, univ from pyasn1.codec.der import encoder from pyasn1.compat.octets import ints2octs from pyasn1.error import PyAsn1Error from sys import version_info if version_info[0:2] < (2, 7) or \ version_info[0:2] in ( (3, 0), (3, 1) ): try: … | TEST | 0.9355484247207642 | 6.103026390075684 |
| de7541de-5a23-4779-919a-da261f7b2afd | xmzyshypnc/hupu | venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/utf8prober.py | from . import constants from .charsetprober import CharSetProber from .codingstatemachine import CodingStateMachine from .mbcssm import UTF8SMModel ONE_CHAR_PROB = 0.5 class UTF8Prober(CharSetProber): def __init__(self): CharSetProber.__init__(self) self._mC… | ALGO | 1.587686782045239e-8 | 5.4281487464904785 |
| 4bded142-c093-46e2-b693-f364bc6c92ea | C05-PBP-2023/literasea | products/forms.py | from django import forms from .models import Katalog class BookFilterForm(forms.Form): author_name = forms.CharField(required=False, widget=forms.TextInput(attrs={'placeholder': 'Author Name'})) publisher = forms.CharField(required=False, widget=forms.TextInput(attrs={'p… | WEB | 0.26049304008483887 | 3.743044376373291 |
| ec8c499f-c99a-46a1-9b3c-e5f48b3c97a3 | Ramcer/scrapper_muebles_chile | main.py | from driver_configuration import Driver_configuration from selenium.webdriver.common.by import By import time from tqdm import tqdm import pandas as pd from datetime import datetime from pytz import timezone start = time.time() chrome_driver = Driver_configuration().create_dri… | TOOL | 0.825685977935791 | 4.830101013183594 |
| f688f063-ab95-43e4-9ecf-de672375c849 | ankitkrishan/Leetcode-Problems | Leetcode_64_Minimum_Path_Sum.py | def solve(x: int, y: int, grid, mp): if x == (len(grid[0]) - 1) and y == (len(grid) - 1): return 0 currentKey = str(x) + "_" + str(y) if currentKey in mp: return mp[currentKey] right = 10000 bottom = 10000 if (x + 1) != len(grid[0]): … | ALGO | 0.05445215106010437 | 4.659070014953613 |