Dataset Viewer
Auto-converted to Parquet Duplicate
repo_id
stringlengths
6
101
size
int64
367
5.14M
file_path
stringlengths
1
269
content
stringlengths
367
5.14M
0015/ChatGPT_Client_For_Arduino
6,552
README.md
## Overview The ChatGPT Arduino Library provides a convenient way to interact with the OpenAI GPT models from Arduino environments, such as ESP32 devices. With this library, you can easily send text and vision queries to the ChatGPT API and receive responses directly in your Arduino projects. ## Features - **Text Gene...
0015/ChatGPT_Client_For_Arduino
10,335
src/ChatGPT.hpp
/* * Project ChatGPT Client * Description: The official method using API Key for communication with ChatGPT * Author: Eric Nam * Date: 07-17-2024 */ #ifndef __CHATGPT__ #define __CHATGPT__ template <class T> class ChatGPT { public: /* * Description: * Constructor for the ChatGPT class. * * Paramete...
0015/ChatGPT_Client_For_Arduino
1,076
examples/Arduino_SSLClient/Base64ImageData.h
#ifndef BASE64_IMAGE_DATA_H #define BASE64_IMAGE_DATA_H // The image is a solid red color. const char* base64ImageData = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFB...
0015/ChatGPT_Client_For_Arduino
4,453
examples/Arduino_SSLClient/Arduino_SSLClient.ino
/* * Project ChatGPT Client For Arduino (Arduino Giga R1, Arduino Portenta H7) * Description: For HTTPS connection using Arduino WiFiSSLClient * Author: Eric Nam * Date: 07-17-2024 */ #include <WiFi.h> #include <WiFiSSLClient.h> #include <ArduinoJson.h> #include <ChatGPT.hpp> #include "Base64ImageData.h" static ...
0015/ChatGPT_Client_For_Arduino
1,076
examples/ESP32_WiFiClientSecure/Base64ImageData.h
#ifndef BASE64_IMAGE_DATA_H #define BASE64_IMAGE_DATA_H // The image is a solid red color. const char* base64ImageData = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFB...
0015/ChatGPT_Client_For_Arduino
4,002
examples/ESP32_WiFiClientSecure/ESP32_WiFiClientSecure.ino
/* * Project ChatGPT Client For ESP32 * Description: For HTTPS connection using WiFiClientSecure * Author: Eric Nam * Date: 07-17-2024 */ #include <WiFi.h> #include <WiFiClientSecure.h> #include <ArduinoJson.h> #include <ChatGPT.hpp> #include "Base64ImageData.h" static const char *ssid = "<WIFI_SSID>"; static co...
0015/ChatGPT_Client_For_Arduino
1,076
examples/Arduino_BearSSLExample/Base64ImageData.h
#ifndef BASE64_IMAGE_DATA_H #define BASE64_IMAGE_DATA_H // The image is a solid red color. const char* base64ImageData = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFB...
0015/ChatGPT_Client_For_Arduino
4,223
examples/Arduino_BearSSLExample/Arduino_BearSSLExample.ino
/* * Project ChatGPT Client For Arduino * Description: For HTTPS connection using ArduinoBearSSL * Author: Eric Nam * Date: 07-17-2024 */ //#define ARDUINO_DISABLE_ECCX08 #include <ArduinoBearSSL.h> #include <WiFi.h> #include <ArduinoJson.h> #include <ChatGPT.hpp> #include "Base64ImageData.h" static const char *...
000pp/blobber
1,421
README.md
<div align="center"> <img src="https://i.imgur.com/Y2XXof7.jpeg" width="900"> <br> ___ <br> <img src="https://img.shields.io/github/license/oppsec/blobber?color=blue&logo=github&style=for-the-badge"> <img src="https://img.shields.io/github/issues/oppsec/blobber?color=blue&logo=github&style=for-the-badge"> <img src=...
000pp/blobber
1,071
src/blobber/main.py
from rich.console import Console console = Console() import argparse from blobber.ui.banner import get_banner from blobber.modules.status import request from blobber.modules.blobs import blob_handler def initialize() -> None: """ Initiates Blobber """ get_banner() parser = argparse.ArgumentParser( ...
000pp/blobber
1,809
src/blobber/modules/blobs.py
""" This module aims to enumerate and get Name, Last-Modified, Content-Length and Content-Typpe blob value. """ from lxml import etree from rich.console import Console console = Console() def blob_handler(content: str, file_filter: str) -> None: try: content_bytes = content.encode('utf-8') root =...
000pp/blobber
1,092
src/blobber/modules/status.py
""" This module checks the status from the Azure Container passed """ from rich.console import Console console = Console() from requests import get from urllib3 import disable_warnings disable_warnings() from blobber.modules.errors import error_handler def request(url: str) -> tuple: """ Perform a GET reques...
000pp/blobber
2,492
src/blobber/modules/errors.py
""" This module handle the common errors when interacting with Azure Blobs """ from rich.console import Console console = Console() from requests import get from urllib3 import disable_warnings disable_warnings() errors_list = { "InvalidQueryParameterValue": "Value for one of the query parameters specified in the...
0015/ESP32-OV5640-AF
2,676
README.md
[![arduino-library-badge](https://www.ardu-badge.com/badge/OV5640%20Auto%20Focus%20for%20ESP32%20Camera.svg)](https://www.ardu-badge.com/OV5640%20Auto%20Focus%20for%20ESP32%20Camera) # Enable OV5640's autofocus function on ESP32 AI-THINKER Board This library contains the necessary firmware and source code to enable t...
0015/ESP32-OV5640-AF
28,448
src/ESP32_OV5640_cfg.h
/* ESP32_OV5640_cfg.h - Library for OV5640 Auto Focus (ESP32 Camera) Created by Eric Nam, December 08, 2021. Released into the public domain. */ #define OV5640_CHIPID_HIGH 0x300a #define OV5640_CHIPID_LOW 0x300b #define OV5640_CMD_MAIN 0x3022 #define OV5640_CMD_A...
0015/ESP32-OV5640-AF
2,413
src/ESP32_OV5640_AF.cpp
/* ESP32_OV5640_AF.cpp - Library for OV5640 Auto Focus (ESP32 Camera) Created by Eric Nam, December 08, 2021. Released into the public domain. */ #include "ESP32_OV5640_AF.h" OV5640::OV5640() { isOV5640 = false; } bool OV5640::start(sensor_t* _sensor) { sensor = _sensor; uint8_t vid, pid; vid = sensor-...
0015/ESP32-OV5640-AF
2,478
examples/OV5640_Console_Test/OV5640_Console_Test.ino
#include "esp_camera.h" #include "ESP32_OV5640_AF.h" // ESP32 AI-THINKER Board #define PWDN_GPIO_NUM 32 #define RESET_GPIO_NUM -1 #define XCLK_GPIO_NUM 0 #define SIOD_GPIO_NUM 26 #define SIOC_GPIO_NUM 27 #define Y9_GPIO_NUM 35 #define Y8_GPIO_NUM 34 #define Y7_GPIO_NUM 39 #define Y6_GPIO_NUM 36 #define Y5_GPIO_NUM 21...
000pp/Apepe
1,984
README.md
# ๐Ÿ“ฒ Apepe > ๐Ÿ“ฒ Enumerate information from an app based on the APK file <div align="center"> <img src="https://i.imgur.com/0qh6sHq.jpg" width="850"> </div> <br> <p align="center"> <img src="https://img.shields.io/github/license/oppsec/Apepe?color=orange&logo=github&logoColor=orange&style=for-the-badge"> <im...
000pp/Apepe
5,812
src/apepe/main.py
from rich.console import Console console = Console() from os import path, chdir from pathlib import Path from zipfile import ZipFile, BadZipFile from shutil import rmtree from androguard.core.apk import APK from androguard.core.dex import DEX from src.apepe.modules.suggest import suggest_sslpinning from src.apepe.mod...
000pp/Apepe
4,821
src/apepe/modules/deeplink.py
import json import re from rich.console import Console console = Console() from pathlib import Path from androguard.core.dex import DEX from androguard.core.apk import APK from lxml.etree import tostring DEEPLINK_PATTERN = r'\b\w+://[^\s]+' def dex_handler(file_path: Path) -> list: """ Extract readable st...
000pp/Apepe
1,131
src/apepe/modules/exported.py
from rich.console import Console console = Console() def exported(target) -> None: """ Lists activities, services, receivers, and providers from AndroidManifest.xml file. """ manifest = target.get_android_manifest_xml() endpoints = ["activity", "service", "receiver", "provider"] for endpoint ...
000pp/tomcter
2,320
README.md
# ๐Ÿ˜น Tomcter > Stealing credentials from a yellow cat <div align="center"> <img src="https://i.imgur.com/ePw5RQ5.png"> </div> <br> <p align="center"> <img src="https://img.shields.io/github/license/oppsec/tomcter?color=yellow&logo=github&logoColor=yellow&style=for-the-badge"> <img src="https://img.shield...
000pp/tomcter
1,031
src/core/manager.py
from random import choice def get_file_data(path) -> str: " Return the content inside text file " with open(path) as file: return file.read() def get_usernames() -> list: " Get all usernames inside usernames.txt file " raw = get_file_data('src/core/data/usernames.txt') raw = raw.split('...
000pp/tomcter
2,234
src/core/bruteforce.py
from requests import get from base64 import b64encode from time import sleep from rich.console import Console console = Console() from urllib3 import disable_warnings disable_warnings() from src.core.manager import props, get_usernames, get_passwords def check_and_connect(target): url: str = f"{target}/manager/...
000pp/juumla
1,350
CHANGELOG.md
# ๐ŸŽ‰ 0.1.6 - 02/05/2024 - Added check to config and backup files scanner if result is not HTML response - Changed print to console.print from rich - Changed interface - Improved the code <br><br> # ๐ŸŽ‰ 0.1.5 - 08/07/2023 - Improved the code - Fixed error when trying to get Joomla version on get_version_second() func -...
000pp/juumla
2,752
README.md
# ๐Ÿฆ Juumla <div align="center"> <img src="https://i.imgur.com/0RvLKOP.png" width="900"> </div> <br> <p align="center"> <img src="https://img.shields.io/github/license/oppsec/juumla?color=yellow&logo=github&style=for-the-badge"> <img src="https://img.shields.io/github/issues/oppsec/juumla?color=yellow&log...
000pp/juumla
1,339
src/juumla/main.py
from requests import get, exceptions from rich.console import Console console = Console() from urllib3 import disable_warnings disable_warnings() from src.juumla.settings import props from src.juumla.modules.version import get_version def perform_checks(args) -> None: " Connect to the target and check if statu...
000pp/juumla
2,160
src/juumla/modules/version.py
from requests import get, exceptions from xmltodict import parse, expat from rich.console import Console console = Console() from urllib3 import disable_warnings disable_warnings() from src.juumla.settings import props from src.juumla.modules.vulns import vuln_manager app_xml_header = "application/xml" text_xml_hea...
000pp/juumla
4,744
src/juumla/modules/files.py
from requests import get, exceptions from rich.console import Console console = Console() from src.juumla.settings import props def file_scan(file_to_check: str, file_url: str) -> None: try: response = get(f"{file_url}/{file_to_check}", **props) if response.ok and 'text/html' not in response.head...
000JustMe/PewCrypt
4,434
Decrypter/src/main/Decrypter.java
package main; import java.util.Base64; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; import javax.crypto.IllegalBlockSizeException; import javax.crypto.NoSuchPaddingException; import javax.crypto.spec.SecretKeySpec; import java.io.File; import java.io.IOException; import java.nio.file.Files; i...
000JustMe/PewCrypt
1,533
Encryptor/src/main/Scraper.java
package main; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; public class Scraper { public Scraper() { } public int getPewdiepieCount() { try { return this.parseJson(this.getJson("https://www.googleapis.com/youtube/v3/channels?part=s...
000JustMe/PewCrypt
1,300
Encryptor/src/main/FileItter.java
package main; import java.io.File; import java.util.ArrayList; public class FileItter { /* * Class constructor will iterate though target paths Function itterFiles * recursively walks directory finding files Function getPaths to access paths * found and encrypt-able */ private ArrayList<String> paths; pr...
000JustMe/PewCrypt
5,370
Encryptor/src/main/Crypto.java
package main; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.security.InvalidKeyException; import java.security.Key; import java.security.KeyFactory; import java.security.NoSuchAlgorithmException; import java.security.PublicKey; import java.security.SecureRandom; import java....
0001lizhubo/XUnity.AutoTranslator-deepseek
1,147
README.md
# XUnity.AutoTranslator-deepseek ๆœฌ้กน็›ฎ้€š่ฟ‡่ฐƒ็”จ่…พ่ฎฏ็š„DeepSeek V3 API๏ผŒๅฎž็ŽฐUnityๆธธๆˆไธญๆ—ฅๆ–‡ๆ–‡ๆœฌ็š„่‡ชๅŠจ็ฟป่ฏ‘ใ€‚ ## ๅ‡†ๅค‡ๅทฅไฝœ ### 1. ่Žทๅ–APIๅฏ†้’ฅ - ่ฎฟ้—ฎ[่…พ่ฎฏไบ‘APIๆŽงๅˆถๅฐ](https://console.cloud.tencent.com/lkeap/api)็”ณ่ฏทDeepSeek็š„APIๅฏ†้’ฅ๏ผˆ้™ๆ—ถๅ…่ดน๏ผ‰ใ€‚ - ไนŸๅฏไปฅไฝฟ็”จๅ…ถไป–ๅนณๅฐๆไพ›็š„DeepSeek APIใ€‚ ### 2. ๅฎ‰่ฃ…ไพ่ต– ็กฎไฟๅทฒๅฎ‰่ฃ…ไปฅไธ‹่ฝฏไปถๅ’Œๅบ“๏ผš - **XUnity.AutoTranslator** - **Python 3.x** ๅฎ‰่ฃ…ๅฟ…่ฆ็š„Pythonๅบ“๏ผš ```bash pip inst...
0001lizhubo/XUnity.AutoTranslator-deepseek
14,868
deepseekv3.py
import os import re import json import time from flask import Flask, request # ๅฏผๅ…ฅ Flask ๅบ“๏ผŒ็”จไบŽๅˆ›ๅปบ Web ๅบ”็”จ๏ผŒ้œ€่ฆๅฎ‰่ฃ…๏ผšpip install Flask from gevent.pywsgi import WSGIServer # ๅฏผๅ…ฅ gevent ็š„ WSGIServer๏ผŒ็”จไบŽๆไพ›้ซ˜ๆ€ง่ƒฝ็š„ๅผ‚ๆญฅๆœๅŠกๅ™จ๏ผŒ้œ€่ฆๅฎ‰่ฃ…๏ผšpip install gevent from urllib.parse import unquote # ๅฏผๅ…ฅ unquote ๅ‡ฝๆ•ฐ๏ผŒ็”จไบŽ URL ่งฃ็  from threading import Thread # ๅฏผ...
000pp/Pinkerton
3,190
CHANGELOG.md
# 1.7 - 10/05/2025 - Removed "banner.txt" file - Removed ASCII art from banner - Changed color and print scheme - Changed "rich.print" to "rich.console.print" - Improved the code - Add -H option, now you can specify custom headers, for example: ``` python3 main.py -u https://webhook.site/793d267f-c86a-48e6-94e6...
End of preview. Expand in Data Studio

๐Ÿš€ GitHub Code 2025: The Clean Code Manifesto

A meticulously curated dataset of 1.5M+ repositories representing both quality and innovation in 2025's code ecosystem

๐ŸŒŸ The Philosophy

Quality Over Quantity, Purpose Over Volume

In an era of data abundance, we present a dataset built on radical curation. Every file, every repository, every byte has been carefully selected to represent the signal in the noise of open-source development.

๐ŸŽฏ What This Dataset Is

๐Ÿ“Š Dual-Perspective Design

Subset ๐ŸŽ–๏ธ Above 2 Stars ๐ŸŒฑ Below 2 Stars (2025)
Scope 1M top repositories 1M random 2025 repos
Purpose Proven quality & patterns Emerging trends & innovation
Value What works What's next

๐Ÿงน The Clean Code Promise

# What you WON'T find here:
๐Ÿšซ Binary files          # No images, executables, models
๐Ÿšซ Build artifacts       # No node_modules, __pycache__
๐Ÿšซ Configuration noise   # No .git, IDE files, lock files
๐Ÿšซ License duplication   # No repetitive legal text
๐Ÿšซ Minified code         # No compressed/obfuscated content
๐Ÿšซ Empty files           # No whitespace-only content

๐Ÿ“ Dataset Structure

github-code-2025/
โ”œโ”€โ”€ ๐Ÿ“ˆ above-2-stars/
โ”‚   โ”œโ”€โ”€ train_000.parquet
โ”‚   โ”œโ”€โ”€ train_001.parquet
โ”‚   โ””โ”€โ”€ ...
โ””โ”€โ”€ ๐ŸŒฑ below-2-star/
    โ”œโ”€โ”€ train_000.parquet
    โ”œโ”€โ”€ train_001.parquet
    โ””โ”€โ”€ ...

๐Ÿ“Š Schema

{
    "repo_id": "owner/repo_name",    # ๐Ÿ“ Repository identifier
    "file_path": "src/main.py",      # ๐Ÿ—‚๏ธ Relative file path
    "content": "def clean_code():",   # ๐Ÿ’Ž Actual source code
    "size": 1024                     # ๐Ÿ“ File size in bytes
}

๐Ÿ› ๏ธ How to Use

๐Ÿ”ฅ Quick Start

from datasets import load_dataset

# Load the quality benchmark
quality_ds = load_dataset("nick007x/github-code-2025", "above-2-stars")

# Load emerging trends
emerging_ds = load_dataset("nick007x/github-code-2025", "below-2-star")

# Mix for balanced training
balanced_ds = interleave_datasets([quality_ds, emerging_ds])

๐ŸŽฏ Ideal Use Cases

  • ๐Ÿง  AI Training: Clean, diverse code for language models
  • ๐Ÿ“Š Code Analysis: Compare popular vs emerging patterns
  • ๐Ÿ” Trend Research: 2025 development practices
  • ๐ŸŽ“ Education: High-quality examples for learning
  • ๐Ÿ› ๏ธ Tool Development: Benchmarking code quality tools

๐Ÿ—๏ธ Creation Methodology

๐ŸŽจ Selection Strategy

Phase Action Purpose
1 ๐ŸŽฏ Dual population sampling Balance quality & innovation
2 ๐Ÿงน Multi-layer filtering Remove noise & binaries
3 ๐Ÿ“ Size normalization Focus on meaningful content
4 ๐Ÿ” Content validation Ensure text quality
5 ๐Ÿท๏ธ Metadata preservation Maintain context

๐Ÿšซ What We Filtered Out

File Types Removed:

  • 50+ binary extensions (images, models, executables)
  • 30+ build/system directories
  • 15+ configuration file types
  • All files outside 1KB-5MB range

Quality Checks:

  • โœ… UTF-8 text validation
  • โœ… Non-empty content check
  • โœ… Binary detection
  • โœ… Repository structure preservation

๐ŸŽช Why This Dataset Matters

๐Ÿ’ซ The Quality Revolution

We reject the "more data is better" dogma. Instead, we offer:

  • ๐ŸŽฏ Intentional Curation: Every file serves a purpose
  • โš–๏ธ Balanced Perspective: Popular + Emerging = Complete picture
  • ๐Ÿงน Unprecedented Cleanliness: The cleanest code dataset available
  • ๐Ÿ“… Temporal Intelligence: 2025-focused for relevance

๐Ÿค Contributing & Feedback

This dataset is a living project. We welcome:

  • ๐Ÿ› Bug reports and issues
  • ๐Ÿ’ก Feature requests for future versions
  • ๐Ÿ“Š Validation of data quality
  • ๐ŸŽฏ Suggestions for improvement

๐Ÿ“œ License

This dataset aggregates Github repos. Each individual repo maintains its original copyright and license terms (typically various Creative Commons licenses like CC BY, CC BY-NC, etc.). Users must verify and comply with the specific license of any repo they extract and use from this collection. The MIT license in this repository applies only to the dataset compilation and packaging code.

Important: Repository contents maintain their original licenses. Please respect individual project licenses when using this data.

๐Ÿ™ Acknowledgments

Built with gratitude for the entire open-source community. Every file in this dataset represents hours of dedication from developers worldwide.


โญ If this dataset helps your research or project, please consider starring the repository!

"In the pursuit of AI that understands code, we must first understand what code is worth learning."

Downloads last month
149