23ws-LLMcoder/LLMcoder-GitHub-Python-Mix-Direct
Dataset Card for LLMcoder-GitHub-Python-Mix-Direct Python target autocomplete suggestions in the format of conversations for OpenAI's fine-tuning. Dataset Details Dataset Description Curated by: [More Information Needed] Funded by [optional]: [More Information Needed] Shared by [optional]: [More Information Needed] Language(s) (NLP): [More Information Needed] License: [More Information Needed] Dataset Sources [optional] The data… See the full description on the dataset page: https://huggingface.co/datasets/23ws-LLMcoder/LLMcoder-GitHub-Python-Mix-Direct.
0216
1import contextlib2import os.path3 4import pytest5 6from PIL import Image, ImageColor, ImageDraw, ImageFont, features7 8from .helper import (9 assert_image_equal,10 assert_image_equal_tofile,11 assert_image_similar_tofile,12 hopper,13 skip_unless_feature,14)15 16BLACK = (0, 0, 0)17WHITE = (255, 255, 255)18GRAY = (190, 190, 190)19DEFAULT_MODE = "RGB"20IMAGES_PATH = os.path.join("Tests", "images", "imagedraw")21 22# Image size23W, H = 100, 10024 25# Bounding box points26X0 = int(W / 4)27X1 = int(X0 * 3)28Y0 = int(H / 4)29Y1 = int(X0 * 3)30 31# Bounding boxes32BBOX = (((X0, Y0), (X1, Y1)), [(X0, Y0), (X1, Y1)], (X0, Y0, X1, Y1), [X0, Y0, X1, Y1])33 34# Coordinate sequences35POINTS = (36 ((10, 10), (20, 40), (30, 30)),37 [(10, 10), (20, 40), (30, 30)],38 (10, 10, 20, 40, 30, 30),39 [10, 10, 20, 40, 30, 30],40)41 42KITE_POINTS = (43 ((10, 50), (70, 10), (90, 50), (70, 90), (10, 50)),44 [(10, 50), (70, 10), (90, 50), (70, 90), (10, 50)],45)46 47 48def test_sanity():49 im = hopper("RGB").copy()50 51 draw = ImageDraw.ImageDraw(im)52 draw = ImageDraw.Draw(im)53 54 draw.ellipse(list(range(4)))55 draw.line(list(range(10)))56 draw.polygon(list(range(100)))57 draw.rectangle(list(range(4)))58 59 60def test_valueerror():61 with Image.open("Tests/images/chi.gif") as im:62 draw