repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | config/train_gpt2_large_adam.py | train_gpt2_large_adam.py | .py | 967 | https://github.com/Liuhong99/Sophia/blob/main/config/train_gpt2_large_adam.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/config/train_gpt2_large_adam.py | 5462780781bab669b824230ad458c426550634fe | Python | 2026-05-04T01:12:36.262667 | wandb_log = True
wandb_project = 'sophia'
wandb_run_name='gpt2-large-adam-100k'
# these make the total batch size be ~0.5M
# 6 batch size * 1024 block size * 10 gradaccum * 8 GPUs = 491,520
batch_size = 4
block_size = 1024
gradient_accumulation_steps = 12
n_layer = 36
n_head = 20
n_embd = 1280
dropout = 0.0 # for pre... |
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | config/train_gpt2_large_sophiag.py | train_gpt2_large_sophiag.py | .py | 1,002 | https://github.com/Liuhong99/Sophia/blob/main/config/train_gpt2_large_sophiag.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/config/train_gpt2_large_sophiag.py | 88c16e02728f21aaf5b1cf4e33897ed29118a3d8 | Python | 2026-05-04T01:12:37.575308 | wandb_log = True
wandb_project = 'sophia'
wandb_run_name='gpt2-large-sophiag-100k'
# these make the total batch size be ~0.5M
# 6 batch size * 1024 block size * 10 gradaccum * 8 GPUs = 491,520
batch_size = 4
block_size = 1024
gradient_accumulation_steps = 12
n_layer = 36
n_head = 20
n_embd = 1280
dropout = 0.0 # for ... |
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | config/train_gpt2_medium_adam.py | train_gpt2_medium_adam.py | .py | 968 | https://github.com/Liuhong99/Sophia/blob/main/config/train_gpt2_medium_adam.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/config/train_gpt2_medium_adam.py | b244ff31834f724d22096526296c12a6381ebd0c | Python | 2026-05-04T01:12:38.906567 | wandb_log = True
wandb_project = 'sophia'
wandb_run_name='gpt2-medium-adam-100k'
# these make the total batch size be ~0.5M
# 6 batch size * 1024 block size * 10 gradaccum * 8 GPUs = 491,520
batch_size = 6
block_size = 1024
gradient_accumulation_steps = 8
n_layer = 24
n_head = 16
n_embd = 1024
dropout = 0.0 # for pre... |
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | config/train_gpt2_medium_sophiag.py | train_gpt2_medium_sophiag.py | .py | 1,004 | https://github.com/Liuhong99/Sophia/blob/main/config/train_gpt2_medium_sophiag.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/config/train_gpt2_medium_sophiag.py | adaa60d27ec7a6482b0834b7d05d599bfa311385 | Python | 2026-05-04T01:12:40.436903 | wandb_log = True
wandb_project = 'sophia'
wandb_run_name='gpt2-medium-sophiag-100k'
# these make the total batch size be ~0.5M
# 6 batch size * 1024 block size * 10 gradaccum * 8 GPUs = 491,520
batch_size = 10
block_size = 1024
gradient_accumulation_steps = 6
n_layer = 24
n_head = 16
n_embd = 1024
dropout = 0.0 # for... |
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | config/train_gpt2_small_adam.py | train_gpt2_small_adam.py | .py | 926 | https://github.com/Liuhong99/Sophia/blob/main/config/train_gpt2_small_adam.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/config/train_gpt2_small_adam.py | 967f480e2c1de2ae07da5442c229cc93351032ae | Python | 2026-05-04T01:12:41.774198 | wandb_log = True
wandb_project = 'sophia'
wandb_run_name='gpt2-small-adam-100k'
# these make the total batch size be ~0.5M
# 8 batch size * 1024 block size * 6 gradaccum * 10 GPUs = 491,520
batch_size = 8
block_size = 1024
gradient_accumulation_steps = 6
n_layer = 12
n_head = 12
n_embd = 768
dropout = 0.0 # for pretr... |
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | config/train_gpt2_small_sophiag.py | train_gpt2_small_sophiag.py | .py | 978 | https://github.com/Liuhong99/Sophia/blob/main/config/train_gpt2_small_sophiag.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/config/train_gpt2_small_sophiag.py | a6bdc517f00e11c662257ebc6175b465cfe018bd | Python | 2026-05-04T01:12:43.002923 | wandb_log = True
wandb_project = 'sophia'
wandb_run_name='gpt2-small-sophiag-100k'
# these make the total batch size be ~0.5M
# 8 batch size * 1024 block size * 6 gradaccum * 10 GPUs = 491,520
batch_size = 8
block_size = 1024
gradient_accumulation_steps = 6
total_bs = 480
n_layer = 12
n_head = 12
n_embd = 768
dropout... |
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | configurator.py | configurator.py | .py | 1,758 | https://github.com/Liuhong99/Sophia/blob/main/configurator.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/configurator.py | a8bba9599537cbb34b378399a077b525a87d497f | Python | 2026-05-04T01:12:44.342508 | """
Poor Man's Configurator. Probably a terrible idea. Example usage:
$ python train.py config/override_file.py --batch_size=32
this will first run config/override_file.py, then override batch_size to 32
The code in this file will be run as follows from e.g. train.py:
>>> exec(open('configurator.py').read())
So it's ... |
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | data/openwebtext/prepare.py | prepare.py | .py | 2,493 | https://github.com/Liuhong99/Sophia/blob/main/data/openwebtext/prepare.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/data/openwebtext/prepare.py | 42c13ecdf362475268d5daa141d344c01dfc13b9 | Python | 2026-05-04T01:12:45.584517 | # saves the openwebtext dataset to a binary file for training. following was helpful:
# https://github.com/HazyResearch/flash-attention/blob/main/training/src/datamodules/language_modeling_hf.py
import os
from tqdm import tqdm
import numpy as np
import tiktoken
from datasets import load_dataset # huggingface datasets
... |
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | model.py | model.py | .py | 18,489 | https://github.com/Liuhong99/Sophia/blob/main/model.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/model.py | 5f190edab0ea972734880b8473c64f5d8bbfc4ad | Python | 2026-05-04T01:12:47.102558 | import math
import inspect
from dataclasses import dataclass
from sophia import SophiaG
import torch
import torch.nn as nn
from torch.nn import functional as F
optimizer_dict = {'adamw': torch.optim.AdamW,
'sophiag': SophiaG
}
# @torch.jit.script # good to enable when not using tor... |
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | sophia.py | sophia.py | .py | 7,381 | https://github.com/Liuhong99/Sophia/blob/main/sophia.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/sophia.py | 1e552809e5e8710532ead90dfc706048cc274123 | Python | 2026-05-04T01:12:48.448294 | import math
import torch
from torch import Tensor
from torch.optim.optimizer import Optimizer
from typing import List, Optional
class SophiaG(Optimizer):
def __init__(self, params, lr=1e-4, betas=(0.965, 0.99), rho = 0.04,
weight_decay=1e-1, *, maximize: bool = False,
capturable: bool = False):
... |
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | train_adam.py | train_adam.py | .py | 14,774 | https://github.com/Liuhong99/Sophia/blob/main/train_adam.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/train_adam.py | 7f89547c9810aee227c8d5415dc4888293b2806e | Python | 2026-05-04T01:12:49.591563 | import os
import time
import math
import pickle
from contextlib import nullcontext
import numpy as np
import torch
from torch.nn.parallel import DistributedDataParallel as DDP
from torch.distributed import init_process_group, destroy_process_group
from model import GPTConfig, GPT
# ----------------------------------... |
Liuhong99/Sophia | https://github.com/Liuhong99/Sophia | https://api.github.com/repos/Liuhong99/Sophia | Liuhong99 | Sophia | The official implementation of “Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training” | 999 | 58 | 999 | mit | main | 2023-05-23T10:00:14 | 2026-05-03T07:47:47 | [
"deep-learning",
"large-language-models",
"optimizer"
] | {
"Python": 71048
} | false | 8 | train_sophiag.py | train_sophiag.py | .py | 20,308 | https://github.com/Liuhong99/Sophia/blob/main/train_sophiag.py | https://raw.githubusercontent.com/Liuhong99/Sophia/main/train_sophiag.py | 6895f1d29b13733a489b9d3164edd214b591cb47 | Python | 2026-05-04T01:12:50.857597 | import os
import time
import math
import pickle
from contextlib import nullcontext
import numpy as np
import torch
import torch.nn.functional as F
from torch.nn.parallel import DistributedDataParallel as DDP
from torch.distributed import init_process_group, destroy_process_group
from model import GPTConfig, GPT
import... |
maximeraafat/BlenderNeRF | https://github.com/maximeraafat/BlenderNeRF | https://api.github.com/repos/maximeraafat/BlenderNeRF | maximeraafat | BlenderNeRF | Easy NeRF synthetic dataset creation within Blender | 998 | 74 | 998 | mit | main | 2022-07-11T21:09:11 | 2026-04-28T07:30:22 | [
"addons",
"ai",
"blender",
"computer-graphics",
"computer-vision",
"gaussian-splatting",
"instant-ngp",
"nerf",
"neural-rendering",
"python"
] | {
"Python": 42297
} | false | 11 | __init__.py | __init__.py | .py | 8,045 | https://github.com/maximeraafat/BlenderNeRF/blob/main/__init__.py | https://raw.githubusercontent.com/maximeraafat/BlenderNeRF/main/__init__.py | e349533be429142d87747090e7abd466491dda4b | Python | 2026-05-04T01:12:54.769099 | import bpy
from . import helper, blender_nerf_ui, sof_ui, ttc_ui, cos_ui, sof_operator, ttc_operator, cos_operator
# blender info
bl_info = {
'name': 'BlenderNeRF',
'description': 'Easy NeRF synthetic dataset creation within Blender',
'author': 'Maxime Raafat',
'version': (6, 0, 0),
'blender': (4,... |
maximeraafat/BlenderNeRF | https://github.com/maximeraafat/BlenderNeRF | https://api.github.com/repos/maximeraafat/BlenderNeRF | maximeraafat | BlenderNeRF | Easy NeRF synthetic dataset creation within Blender | 998 | 74 | 998 | mit | main | 2022-07-11T21:09:11 | 2026-04-28T07:30:22 | [
"addons",
"ai",
"blender",
"computer-graphics",
"computer-vision",
"gaussian-splatting",
"instant-ngp",
"nerf",
"neural-rendering",
"python"
] | {
"Python": 42297
} | false | 11 | blender_nerf_operator.py | blender_nerf_operator.py | .py | 10,965 | https://github.com/maximeraafat/BlenderNeRF/blob/main/blender_nerf_operator.py | https://raw.githubusercontent.com/maximeraafat/BlenderNeRF/main/blender_nerf_operator.py | ff32447face58bc67d8bcae8a273d569ee84ecdd | Python | 2026-05-04T01:12:56.315299 | import os
import math
import json
import datetime
import bpy
# global addon script variables
OUTPUT_TRAIN = 'train'
OUTPUT_TEST = 'test'
CAMERA_NAME = 'BlenderNeRF Camera'
TMP_VERTEX_COLORS = 'blendernerf_vertex_colors_tmp'
# blender nerf operator parent class
class BlenderNeRF_Operator(bpy.types.Operator):
# ... |
maximeraafat/BlenderNeRF | https://github.com/maximeraafat/BlenderNeRF | https://api.github.com/repos/maximeraafat/BlenderNeRF | maximeraafat | BlenderNeRF | Easy NeRF synthetic dataset creation within Blender | 998 | 74 | 998 | mit | main | 2022-07-11T21:09:11 | 2026-04-28T07:30:22 | [
"addons",
"ai",
"blender",
"computer-graphics",
"computer-vision",
"gaussian-splatting",
"instant-ngp",
"nerf",
"neural-rendering",
"python"
] | {
"Python": 42297
} | false | 11 | blender_nerf_ui.py | blender_nerf_ui.py | .py | 1,681 | https://github.com/maximeraafat/BlenderNeRF/blob/main/blender_nerf_ui.py | https://raw.githubusercontent.com/maximeraafat/BlenderNeRF/main/blender_nerf_ui.py | f17cc90124a0c5ce2524bb36b76db21b4f2bb0c2 | Python | 2026-05-04T01:12:57.486230 | import bpy
# blender nerf shared ui properties class
class BlenderNeRF_UI(bpy.types.Panel):
'''BlenderNeRF UI'''
bl_idname = 'VIEW3D_PT_blender_nerf_ui'
bl_label = 'BlenderNeRF shared UI'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = 'BlenderNeRF'
def draw(self, context):
... |
maximeraafat/BlenderNeRF | https://github.com/maximeraafat/BlenderNeRF | https://api.github.com/repos/maximeraafat/BlenderNeRF | maximeraafat | BlenderNeRF | Easy NeRF synthetic dataset creation within Blender | 998 | 74 | 998 | mit | main | 2022-07-11T21:09:11 | 2026-04-28T07:30:22 | [
"addons",
"ai",
"blender",
"computer-graphics",
"computer-vision",
"gaussian-splatting",
"instant-ngp",
"nerf",
"neural-rendering",
"python"
] | {
"Python": 42297
} | false | 11 | cos_operator.py | cos_operator.py | .py | 3,872 | https://github.com/maximeraafat/BlenderNeRF/blob/main/cos_operator.py | https://raw.githubusercontent.com/maximeraafat/BlenderNeRF/main/cos_operator.py | 29454ef21339bbfac14946f8e3879e87bed09a9f | Python | 2026-05-04T01:12:59.693998 | import os
import shutil
import bpy
from . import helper, blender_nerf_operator
# global addon script variables
EMPTY_NAME = 'BlenderNeRF Sphere'
CAMERA_NAME = 'BlenderNeRF Camera'
# camera on sphere operator class
class CameraOnSphere(blender_nerf_operator.BlenderNeRF_Operator):
'''Camera on Sphere Operator'''
... |
maximeraafat/BlenderNeRF | https://github.com/maximeraafat/BlenderNeRF | https://api.github.com/repos/maximeraafat/BlenderNeRF | maximeraafat | BlenderNeRF | Easy NeRF synthetic dataset creation within Blender | 998 | 74 | 998 | mit | main | 2022-07-11T21:09:11 | 2026-04-28T07:30:22 | [
"addons",
"ai",
"blender",
"computer-graphics",
"computer-vision",
"gaussian-splatting",
"instant-ngp",
"nerf",
"neural-rendering",
"python"
] | {
"Python": 42297
} | false | 11 | cos_ui.py | cos_ui.py | .py | 1,366 | https://github.com/maximeraafat/BlenderNeRF/blob/main/cos_ui.py | https://raw.githubusercontent.com/maximeraafat/BlenderNeRF/main/cos_ui.py | 3dbaa1eb597ba12996c1848e93817c60de7b586c | Python | 2026-05-04T01:13:01.138308 | import bpy
# camera on sphere ui class
class COS_UI(bpy.types.Panel):
'''Camera on Sphere UI'''
bl_idname = 'VIEW3D_PT_cos_ui'
bl_label = 'Camera on Sphere COS'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = 'BlenderNeRF'
bl_options = {'DEFAULT_CLOSED'}
def draw(self, c... |
maximeraafat/BlenderNeRF | https://github.com/maximeraafat/BlenderNeRF | https://api.github.com/repos/maximeraafat/BlenderNeRF | maximeraafat | BlenderNeRF | Easy NeRF synthetic dataset creation within Blender | 998 | 74 | 998 | mit | main | 2022-07-11T21:09:11 | 2026-04-28T07:30:22 | [
"addons",
"ai",
"blender",
"computer-graphics",
"computer-vision",
"gaussian-splatting",
"instant-ngp",
"nerf",
"neural-rendering",
"python"
] | {
"Python": 42297
} | false | 11 | helper.py | helper.py | .py | 8,840 | https://github.com/maximeraafat/BlenderNeRF/blob/main/helper.py | https://raw.githubusercontent.com/maximeraafat/BlenderNeRF/main/helper.py | fa054dc8593a370f0e4d48bdebd7db4f56a6f017 | Python | 2026-05-04T01:13:02.638908 | import os
import shutil
import random
import math
import mathutils
import bpy
from bpy.app.handlers import persistent
# global addon script variables
EMPTY_NAME = 'BlenderNeRF Sphere'
CAMERA_NAME = 'BlenderNeRF Camera'
## property poll and update functions
# camera pointer property poll function
def poll_is_camera(... |
maximeraafat/BlenderNeRF | https://github.com/maximeraafat/BlenderNeRF | https://api.github.com/repos/maximeraafat/BlenderNeRF | maximeraafat | BlenderNeRF | Easy NeRF synthetic dataset creation within Blender | 998 | 74 | 998 | mit | main | 2022-07-11T21:09:11 | 2026-04-28T07:30:22 | [
"addons",
"ai",
"blender",
"computer-graphics",
"computer-vision",
"gaussian-splatting",
"instant-ngp",
"nerf",
"neural-rendering",
"python"
] | {
"Python": 42297
} | false | 11 | sof_operator.py | sof_operator.py | .py | 2,844 | https://github.com/maximeraafat/BlenderNeRF/blob/main/sof_operator.py | https://raw.githubusercontent.com/maximeraafat/BlenderNeRF/main/sof_operator.py | 7137c96c05e8140cc6bc3a81aa21dafc3947eecc | Python | 2026-05-04T01:13:03.975876 | import os
import shutil
import bpy
from . import blender_nerf_operator
# subset of frames operator class
class SubsetOfFrames(blender_nerf_operator.BlenderNeRF_Operator):
'''Subset of Frames Operator'''
bl_idname = 'object.subset_of_frames'
bl_label = 'Subset of Frames SOF'
def execute(self, context)... |
maximeraafat/BlenderNeRF | https://github.com/maximeraafat/BlenderNeRF | https://api.github.com/repos/maximeraafat/BlenderNeRF | maximeraafat | BlenderNeRF | Easy NeRF synthetic dataset creation within Blender | 998 | 74 | 998 | mit | main | 2022-07-11T21:09:11 | 2026-04-28T07:30:22 | [
"addons",
"ai",
"blender",
"computer-graphics",
"computer-vision",
"gaussian-splatting",
"instant-ngp",
"nerf",
"neural-rendering",
"python"
] | {
"Python": 42297
} | false | 11 | sof_ui.py | sof_ui.py | .py | 723 | https://github.com/maximeraafat/BlenderNeRF/blob/main/sof_ui.py | https://raw.githubusercontent.com/maximeraafat/BlenderNeRF/main/sof_ui.py | bdd0462cdc244405415132d5a70a5b2876fe624a | Python | 2026-05-04T01:13:05.243093 | import bpy
# subset of frames ui class
class SOF_UI(bpy.types.Panel):
'''Subset of Frames UI'''
bl_idname = 'VIEW3D_PT_sof_ui'
bl_label = 'Subset of Frames SOF'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = 'BlenderNeRF'
bl_options = {'DEFAULT_CLOSED'}
def draw(self, c... |
maximeraafat/BlenderNeRF | https://github.com/maximeraafat/BlenderNeRF | https://api.github.com/repos/maximeraafat/BlenderNeRF | maximeraafat | BlenderNeRF | Easy NeRF synthetic dataset creation within Blender | 998 | 74 | 998 | mit | main | 2022-07-11T21:09:11 | 2026-04-28T07:30:22 | [
"addons",
"ai",
"blender",
"computer-graphics",
"computer-vision",
"gaussian-splatting",
"instant-ngp",
"nerf",
"neural-rendering",
"python"
] | {
"Python": 42297
} | false | 11 | ttc_operator.py | ttc_operator.py | .py | 3,111 | https://github.com/maximeraafat/BlenderNeRF/blob/main/ttc_operator.py | https://raw.githubusercontent.com/maximeraafat/BlenderNeRF/main/ttc_operator.py | fc04c97c55cedefb17362abdec231cd2abd8e4aa | Python | 2026-05-04T01:13:06.452737 | import os
import shutil
import bpy
from . import blender_nerf_operator
# train and test cameras operator class
class TrainTestCameras(blender_nerf_operator.BlenderNeRF_Operator):
'''Train and Test Cameras Operator'''
bl_idname = 'object.train_test_cameras'
bl_label = 'Train and Test Cameras TTC'
def ... |
maximeraafat/BlenderNeRF | https://github.com/maximeraafat/BlenderNeRF | https://api.github.com/repos/maximeraafat/BlenderNeRF | maximeraafat | BlenderNeRF | Easy NeRF synthetic dataset creation within Blender | 998 | 74 | 998 | mit | main | 2022-07-11T21:09:11 | 2026-04-28T07:30:22 | [
"addons",
"ai",
"blender",
"computer-graphics",
"computer-vision",
"gaussian-splatting",
"instant-ngp",
"nerf",
"neural-rendering",
"python"
] | {
"Python": 42297
} | false | 11 | ttc_ui.py | ttc_ui.py | .py | 850 | https://github.com/maximeraafat/BlenderNeRF/blob/main/ttc_ui.py | https://raw.githubusercontent.com/maximeraafat/BlenderNeRF/main/ttc_ui.py | bde47190082c4ae9d47eee36ebc3ae30ff404bf4 | Python | 2026-05-04T01:13:07.783245 | import bpy
# train and test cameras ui class
class TTC_UI(bpy.types.Panel):
'''Train and Test Cameras UI'''
bl_idname = 'VIEW3D_PT_ttc_ui'
bl_label = 'Train and Test Cameras TTC'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = 'BlenderNeRF'
bl_options = {'DEFAULT_CLOSED'}
... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray.py | o365spray.py | .py | 128 | https://github.com/0xZDH/o365spray/blob/master/o365spray.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray.py | 9d680e59bc75f1280b2e481b5f53d8f99a48d07b | Python | 2026-05-04T01:13:11.879963 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
if __name__ == "__main__":
from o365spray.__main__ import main
main()
|
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/__init__.py | __init__.py | .py | 101 | https://github.com/0xZDH/o365spray/blob/master/o365spray/__init__.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/__init__.py | e150733b03373dbb766dc64d142dd3139a25098f | Python | 2026-05-04T01:13:13.217975 | #!/usr/bin/env python3
_V_MAJ = 3
_V_MIN = 0
_V_MNT = 4
__version__ = f"{_V_MAJ}.{_V_MIN}.{_V_MNT}"
|
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/__main__.py | __main__.py | .py | 9,788 | https://github.com/0xZDH/o365spray/blob/master/o365spray/__main__.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/__main__.py | 0c70664191f93a54b58a4c7ede7545a2bd11ab60 | Python | 2026-05-04T01:13:14.644653 | #!/usr/bin/env python3
import argparse
import logging
import os
import sys
import time
from pathlib import Path
from random import randint
from o365spray import __version__
from o365spray.core.handlers.enumerator import enumerate
from o365spray.core.handlers.sprayer import spray
from o365spray.core.handlers.validator... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/base.py | base.py | .py | 2,996 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/base.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/base.py | 12b9ef9832825349c48db3dfa661c25107d2a40e | Python | 2026-05-04T01:13:15.984800 | #!/usr/bin/env python3
import logging
import time
import requests # type: ignore
import urllib3 # type: ignore
from random import randint
from typing import (
Any,
Dict,
List,
Union,
)
from o365spray.core.utils import (
Defaults,
Helper,
)
urllib3.disable_warnings(urllib3.exceptions.Insecu... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/enumerator/enumerate.py | enumerate.py | .py | 2,981 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/enumerator/enumerate.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/enumerator/enumerate.py | 03e02f26ba7bc1682af71df4bfcdb79fdc2a9963 | Python | 2026-05-04T01:13:17.187388 | #!/usr/bin/env python3
import argparse
import asyncio
import importlib
import logging
import signal
import sys
from pathlib import Path
from o365spray.core.utils import (
Defaults,
Helper,
)
def enumerate(args: argparse.Namespace, output_dir: str) -> object:
"""Run user enumeration against a given domai... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/enumerator/modules/autodiscover.py | autodiscover.py | .py | 3,157 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/enumerator/modules/autodiscover.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/enumerator/modules/autodiscover.py | e48b237c3b3813db5d98c07afe594c0ff5b07e4f | Python | 2026-05-04T01:13:18.336990 | #!/usr/bin/env python3
import logging
import time
from o365spray.core.handlers.enumerator.modules.base import EnumeratorBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class EnumerateModule_autodiscover(EnumeratorBase):
"""Autodiscover Enumeration module class"""
def __... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/enumerator/modules/autologon.py | autologon.py | .py | 5,492 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/enumerator/modules/autologon.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/enumerator/modules/autologon.py | 7feb01dd22f17c055d6ae74248f15e7dd44b1596 | Python | 2026-05-04T01:13:20.175236 | #!/usr/bin/env python3
import logging
import time
from datetime import (
datetime,
timedelta,
)
from uuid import uuid4
from o365spray.core.handlers.enumerator.modules.base import EnumeratorBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class EnumerateModule_autologon(En... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/enumerator/modules/base.py | base.py | .py | 6,723 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/enumerator/modules/base.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/enumerator/modules/base.py | 9d0cce8e73c128746de71ec925e8dd01fc8c0424 | Python | 2026-05-04T01:13:21.609335 | #!/usr/bin/env python3
import asyncio
import concurrent.futures
import concurrent.futures.thread
import logging
import urllib3 # type: ignore
from functools import partial
from typing import (
Dict,
List,
Union,
)
from o365spray.core.handlers.base import BaseHandler
from o365spray.core.utils import (
... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/enumerator/modules/oauth2.py | oauth2.py | .py | 4,184 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/enumerator/modules/oauth2.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/enumerator/modules/oauth2.py | 915c5f04fe7eb03fff1fdc6f881a2647070f5d5e | Python | 2026-05-04T01:13:22.841774 | #!/usr/bin/env python3
import logging
import time
from o365spray.core.handlers.enumerator.modules.base import EnumeratorBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class EnumerateModule_oauth2(EnumeratorBase):
"""oAuth2 Enumeration module class"""
def __init__(self,... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/enumerator/modules/office.py | office.py | .py | 5,438 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/enumerator/modules/office.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/enumerator/modules/office.py | cb771fe61cedfe297cfd21676cf6e7c6f98dc680 | Python | 2026-05-04T01:13:24.270454 | #!/usr/bin/env python3
import logging
import time
from o365spray.core.handlers.enumerator.modules.base import EnumeratorBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class EnumerateModule_office(EnumeratorBase):
"""Office Enumeration module class"""
def __init__(self,... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/enumerator/modules/onedrive.py | onedrive.py | .py | 3,685 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/enumerator/modules/onedrive.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/enumerator/modules/onedrive.py | d1f3a42a67f26b9e9d5f1c71760a4a0c37ab5a7c | Python | 2026-05-04T01:13:25.611189 | #!/usr/bin/env python3
import logging
import re
import time
from o365spray.core.handlers.enumerator.modules.base import EnumeratorBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class EnumerateModule_onedrive(EnumeratorBase):
"""OneDrive Enumeration module class"""
def ... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/enumerator/modules/rst.py | rst.py | .py | 5,419 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/enumerator/modules/rst.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/enumerator/modules/rst.py | 3458e88fce83705a46ba69c86eed7c2c25f84cb8 | Python | 2026-05-04T01:13:26.830452 | #!/usr/bin/env python3
import logging
import time
from bs4 import BeautifulSoup # type: ignore
from o365spray.core.handlers.enumerator.modules.base import EnumeratorBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class EnumerateModule_rst(EnumeratorBase):
"""OneDrive Enumer... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/sprayer/modules/activesync.py | activesync.py | .py | 3,090 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/sprayer/modules/activesync.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/sprayer/modules/activesync.py | de752beddea3d350507174c1b232f807fc4b9ee5 | Python | 2026-05-04T01:13:28.162762 | #!/usr/bin/env python3
import logging
import time
from requests.auth import HTTPBasicAuth # type: ignore
from o365spray.core.handlers.sprayer.modules.base import SprayerBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class SprayModule_activesync(SprayerBase):
"""ActiveSync ... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/sprayer/modules/adfs.py | adfs.py | .py | 2,953 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/sprayer/modules/adfs.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/sprayer/modules/adfs.py | 378f4ac0398b2c62fdb6047bbc496c94106d2878 | Python | 2026-05-04T01:13:29.210290 | #!/usr/bin/env python3
import logging
import time
from urllib.parse import quote
from o365spray.core.handlers.sprayer.modules.base import SprayerBase
from o365spray.core.utils import (
Defaults,
text_colors,
)
class SprayModule_adfs(SprayerBase):
"""ADFS Sprayer module class"""
def __init__(self, *... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/sprayer/modules/autodiscover.py | autodiscover.py | .py | 5,067 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/sprayer/modules/autodiscover.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/sprayer/modules/autodiscover.py | b8f4e4bcf511b8a2a4ec3dc25af24fc402a86dca | Python | 2026-05-04T01:13:30.518690 | #!/usr/bin/env python3
import logging
import time
from requests.auth import HTTPBasicAuth # type: ignore
from o365spray.core.handlers.sprayer.modules.base import SprayerBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class SprayModule_autodiscover(SprayerBase):
"""Autodisco... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/sprayer/modules/autologon.py | autologon.py | .py | 5,355 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/sprayer/modules/autologon.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/sprayer/modules/autologon.py | 722d81165e204da56eb350d6cf9a448c4eac25d4 | Python | 2026-05-04T01:13:31.858531 | #!/usr/bin/env python3
import logging
import re
import time
from datetime import (
datetime,
timedelta,
)
from uuid import uuid4
from o365spray.core.handlers.sprayer.modules.base import SprayerBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class SprayModule_autologon(Sp... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/sprayer/modules/base.py | base.py | .py | 8,882 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/sprayer/modules/base.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/sprayer/modules/base.py | f9a858f4c9631623a3051a57caab2c954fe2fed8 | Python | 2026-05-04T01:13:33.691694 | #!/usr/bin/env python3
import asyncio
import concurrent.futures
import concurrent.futures.thread
import logging
import urllib3 # type: ignore
from functools import partial
from itertools import cycle
from typing import (
Dict,
List,
Union,
)
from o365spray.core.handlers.base import BaseHandler
from o365s... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/sprayer/modules/oauth2.py | oauth2.py | .py | 4,057 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/sprayer/modules/oauth2.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/sprayer/modules/oauth2.py | 3959b2e43f331f251a7cc15d3a034a01b030e1c7 | Python | 2026-05-04T01:13:34.866474 | #!/usr/bin/env python3
import json
import logging
import time
from o365spray.core.handlers.sprayer.modules.base import SprayerBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class SprayModule_oauth2(SprayerBase):
"""oAuth2 Sprayer module class"""
def __init__(self, *arg... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/sprayer/modules/reporting.py | reporting.py | .py | 2,794 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/sprayer/modules/reporting.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/sprayer/modules/reporting.py | 8e595af8cb2d3e2987c1c8088541945005315916 | Python | 2026-05-04T01:13:36.252170 | #!/usr/bin/env python3
import logging
import time
from requests.auth import HTTPBasicAuth # type: ignore
from o365spray.core.handlers.sprayer.modules.base import SprayerBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class SprayModule_reporting(SprayerBase):
"""Reporting Sp... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/sprayer/modules/rst.py | rst.py | .py | 4,903 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/sprayer/modules/rst.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/sprayer/modules/rst.py | a26949ddc61d26eed925990a5683068588527ca4 | Python | 2026-05-04T01:13:37.459205 | #!/usr/bin/env python3
import logging
import time
from bs4 import BeautifulSoup # type: ignore
from o365spray.core.handlers.sprayer.modules.base import SprayerBase
from o365spray.core.utils import (
Defaults,
Helper,
text_colors,
)
class SprayModule_rst(SprayerBase):
"""RST Sprayer module class"""
... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/sprayer/spray.py | spray.py | .py | 9,195 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/sprayer/spray.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/sprayer/spray.py | bfb0655b2e2031ddadf63f322fc2fcaa08e50045 | Python | 2026-05-04T01:13:38.623361 | #!/usr/bin/env python3
import argparse
import asyncio
import importlib
import logging
import signal
import sys
from pathlib import Path
from o365spray.core.utils import (
Defaults,
Helper,
)
def spray(args: argparse.Namespace, output_dir: str, enum: object):
"""Run a password spray against a given domai... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/validator/modules/base.py | base.py | .py | 2,449 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/validator/modules/base.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/validator/modules/base.py | 7576b8e56bd4df0af2d55817bae2626c106b292e | Python | 2026-05-04T01:13:39.760375 | #!/usr/bin/env python3
import logging
import urllib3 # type: ignore
from typing import (
Dict,
Tuple,
Union,
)
from o365spray.core.handlers.base import BaseHandler
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
class ValidatorBase(BaseHandler):
"""
Validate whether or not... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/validator/modules/getuserrealm.py | getuserrealm.py | .py | 1,752 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/validator/modules/getuserrealm.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/validator/modules/getuserrealm.py | f106ca9c2fe05c31763751be4942d93854e2c765 | Python | 2026-05-04T01:13:40.962212 | #!/usr/bin/env python3
import html
import xml.etree.ElementTree as ET
from typing import Tuple
from o365spray.core.handlers.validator.modules.base import ValidatorBase
from o365spray.core.utils import Defaults
class ValidateModule_getuserrealm(ValidatorBase):
"""GetUserRealm Validation module class"""
def ... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/handlers/validator/validate.py | validate.py | .py | 3,920 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/handlers/validator/validate.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/handlers/validator/validate.py | 91e2f1bc29dd16592a3f3e421c81951d8ef19a88 | Python | 2026-05-04T01:13:42.140917 | #!/usr/bin/env python3
import argparse
import importlib
import logging
from o365spray.core.utils import (
Helper,
text_colors,
)
def validate(args: argparse.Namespace) -> argparse.Namespace:
"""Validate a given domain is hosted by O365 and check if it is
a Managed or Federated realm.
Arguments:... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/utils/__init__.py | __init__.py | .py | 306 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/utils/__init__.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/utils/__init__.py | 15ffb8c25044aae1711b496be5dd3713319c38ff | Python | 2026-05-04T01:13:48.463612 | #!/usr/bin/env python3
from o365spray.core.utils.colors import text_colors
from o365spray.core.utils.defaults import (
Defaults,
DefaultFiles,
)
from o365spray.core.utils.helper import Helper
from o365spray.core.utils.logger import init_logger
from o365spray.core.utils.writer import ThreadWriter
|
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/utils/colors.py | colors.py | .py | 440 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/utils/colors.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/utils/colors.py | 225af2bb2f0be6a8570f7fca7f70a004c5890991 | Python | 2026-05-04T01:13:49.784452 | #!/usr/bin/env python3
import sys
from colorama import ( # type: ignore
init,
Fore,
)
# Init colorama to switch between Windows and Linux
if sys.platform == "win32":
init(convert=True)
class text_colors:
"""Color codes for colorized terminal output"""
HEADER = Fore.MAGENTA
OKBLUE = Fore.B... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/utils/defaults.py | defaults.py | .py | 4,872 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/utils/defaults.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/utils/defaults.py | 8469c59765c7774134a535b602804f31ebadb5bf | Python | 2026-05-04T01:13:50.997491 | #!/usr/bin/env python3
import asyncio
import sys
from datetime import datetime
# Get the current time in YYMMDDHHMM format to append
# to file names to keep each run distinct
F_TIME = datetime.now().strftime("%y%m%d%H%M")
class DefaultFiles:
"""Global output file name defaults"""
# Log and valid output fi... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/utils/helper.py | helper.py | .py | 10,594 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/utils/helper.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/utils/helper.py | 1b027206c38c5cf07e37b3281521e633fb19ec8c | Python | 2026-05-04T01:13:52.293624 | #!/usr/bin/env python3
import argparse
import random
import socket
import string
import struct
import sys
import time
from datetime import (
datetime,
timedelta,
)
from random import (
randint,
sample,
)
from typing import (
Any,
Dict,
List,
Union,
)
class Helper:
"""Helper functi... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/utils/logger.py | logger.py | .py | 1,358 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/utils/logger.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/utils/logger.py | 981fdba99dab0dc58d74f706d1f3b9f5f20eebe6 | Python | 2026-05-04T01:13:53.375868 | #!/usr/bin/env python3
# fmt: off
import logging
from o365spray.core.utils.colors import text_colors as bcolors
class LoggingLevels:
CRITICAL = f"{bcolors.FAIL}%s{bcolors.ENDC}" % "crit" # 50
ERROR = f"{bcolors.FAIL}%s{bcolors.ENDC}" % "fail" # 40
WARNING = f"{bcolors.WARNING}%s{bcolors.ENDC... |
0xZDH/o365spray | https://github.com/0xZDH/o365spray | https://api.github.com/repos/0xZDH/o365spray | 0xZDH | o365spray | Username enumeration and password spraying tool aimed at Microsoft O365. | 997 | 119 | 997 | mit | master | 2019-08-07T14:47:45 | 2026-04-28T07:50:39 | [
"enumeration",
"password-spray",
"pentest",
"pentesting-tools",
"python",
"python3",
"security",
"security-tools"
] | {
"Python": 123401
} | false | 7 | o365spray/core/utils/writer.py | writer.py | .py | 1,001 | https://github.com/0xZDH/o365spray/blob/master/o365spray/core/utils/writer.py | https://raw.githubusercontent.com/0xZDH/o365spray/master/o365spray/core/utils/writer.py | bdc64d86091883bafed990b55a8f6355469d2e38 | Python | 2026-05-04T01:13:54.463701 | #!/usr/bin/env python3
from pathlib import Path
class ThreadWriter(object):
"""Custom class to write data to a file accross threads"""
def __init__(self, file_: str, out_dir: str):
"""Initialize a ThreadWriter instance.
Arguments:
file_: name of file to write to
out... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | ICLR2023/src/fine_tune.py | fine_tune.py | .py | 4,911 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/ICLR2023/src/fine_tune.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/ICLR2023/src/fine_tune.py | 960fb5520922b03becacd4d3b015dbd83a7863f9 | Python | 2026-05-04T01:13:58.830255 | from strictfire import StrictFire as Fire # aborts early on invalid arguments
import os
import csv
import subprocess
import shlex
import random
import numpy as np
import torch
import utils
def fine_tune(
train_txt="../data/generated_sol_100.txt",
output_dir = "../outputs/",
subdir="out",
model_path="E... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | ICLR2023/src/gen.py | gen.py | .py | 17,983 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/ICLR2023/src/gen.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/ICLR2023/src/gen.py | 57f32166754f3d262cb58a016fcea8d8a631bf4d | Python | 2026-05-04T01:14:00.377521 | from typing import List
import os
from tqdm import tqdm
import numpy as np
import json
import judge
import inspect
import random
import re
import ast
import time
from collections import Counter
from strictfire import StrictFire as Fire # aborts early on invalid arguments
import utils
import solve
import torch
def ast... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | ICLR2023/src/judge.py | judge.py | .py | 4,797 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/ICLR2023/src/judge.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/ICLR2023/src/judge.py | 2ff4c3a0cfd9828e06b31b049df2e830a28f0679 | Python | 2026-05-04T01:14:01.749959 | from utils import load_json
from pebble import ProcessPool
import multiprocessing as mp
from concurrent.futures import TimeoutError
from typing import List, Set, Tuple, Dict
import utils
import sys
import re
from copy import deepcopy
sys.setrecursionlimit(5000)
def no_print(*_args, **_kwargs):
pass
def run_ju... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | ICLR2023/src/neo_train.py | neo_train.py | .py | 19,057 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/ICLR2023/src/neo_train.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/ICLR2023/src/neo_train.py | 48fea647fb407137a976926120ca814f6357fc15 | Python | 2026-05-04T01:14:03.244097 | #!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | ICLR2023/src/preprocess.py | preprocess.py | .py | 3,960 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/ICLR2023/src/preprocess.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/ICLR2023/src/preprocess.py | 20d51b3e6ef922eba2e7c84162618a0c94fe87fe | Python | 2026-05-04T01:14:04.629849 | import os
import random
import utils
import glob
import json
from typing import List
from strictfire import StrictFire as Fire # aborts early on invalid arguments
class WeirdInputsException(Exception):
pass
def get_inputs(sat: str):
"""Extacts arguments past the first from a function string
def f(a: Dict... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | ICLR2023/src/solve.py | solve.py | .py | 11,993 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/ICLR2023/src/solve.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/ICLR2023/src/solve.py | 1cbe1dcee5bf463c88729e5c1b03e10d9bd02b7b | Python | 2026-05-04T01:14:06.255621 | from strictfire import StrictFire as Fire # aborts early on invalid arguments
import os
import time
import torch
from transformers import GPTNeoForCausalLM
import deepspeed
import gc
import tqdm
from typing import List
import ast
import random
import numpy as np
import judge
import utils
def load_model(model_path, p... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | ICLR2023/src/utils.py | utils.py | .py | 8,446 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/ICLR2023/src/utils.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/ICLR2023/src/utils.py | 3d46beafd936f7dd06eddf9a512a92a8eba1ebd3 | Python | 2026-05-04T01:14:07.792175 | import json
import logging
import inspect
import io
import os
import sys
import time
from transformers import AutoTokenizer
os.environ["WANDB_DISABLED"] = "true"
os.environ["TOKENIZERS_PARALLELISM"] = "false"
my_path = os.path.dirname(__file__)
def load_tokenizer(model_path):
tokenizer = AutoTokenizer.from_pre... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/ICPC.py | ICPC.py | .py | 22,724 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/ICPC.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/ICPC.py | c4df8b086266c3d6aa2a5dc1a140b7681df9e469 | Python | 2026-05-04T01:14:09.239984 | """
Problems inspired by the [International Collegiate Programming Contest](https://icpc.global) (ICPC).
"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
class BiPermutat... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/IMO.py | IMO.py | .py | 15,248 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/IMO.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/IMO.py | 3c5aab2c702f3f2632c1f237d8b7f8f385e20375 | Python | 2026-05-04T01:14:11.918139 | """Problems inspired by the
[International Mathematical Olympiad](https://en.wikipedia.org/wiki/International_Mathematical_Olympiad)
[problems](https://www.imo-official.org/problems.aspx)"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammin... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/__init__.py | __init__.py | .py | 539 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/__init__.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/__init__.py | 541bd1d1962587fc54bff1bd2b3978061331fe7d | Python | 2026-05-04T01:14:13.136556 | # problems are identified automatically by looking for subclasses (and sub-subclasses) of the Problem class
from . import study
from . import classic_puzzles
from . import human_eval
from . import codeforces
from . import algebra
from . import basic
from . import chess
from . import compression
from . import conways_g... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/algebra.py | algebra.py | .py | 5,472 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/algebra.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/algebra.py | 35f1d95ebbf1fd39c1da4a689d7808cd5d8dc43a | Python | 2026-05-04T01:14:14.465770 | """Roots of polynomials"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
class QuadraticRoot(PuzzleGenerator):
"""See [quadratic equations](https://en.wikipedia.org/wi... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/basic.py | basic.py | .py | 16,179 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/basic.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/basic.py | a8c14662983c9a2a4d2cde4e8dcca7bcee15004c | Python | 2026-05-04T01:14:15.984891 | """Problems testing basic knowledge -- easy to solve if you understand what is being asked"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
class SumOfDigits(PuzzleGenerato... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/chess.py | chess.py | .py | 10,040 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/chess.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/chess.py | 756548051b541b193d317f5e2b657be10d4d2212 | Python | 2026-05-04T01:14:17.333205 | """Classic chess puzzles"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
class EightQueensOrFewer(PuzzleGenerator):
"""Eight (or fewer) Queens Puzzle
See Wikiped... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/classic_puzzles.py | classic_puzzles.py | .py | 44,763 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/classic_puzzles.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/classic_puzzles.py | f66c5e89e257a379d63fdbe689abf041ce9d0013 | Python | 2026-05-04T01:14:18.905400 | """Classic puzzles"""
# TODO: add tags
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
class TowersOfHanoi(PuzzleGenerator):
"""[Towers of Hanoi](https://en.wikipedia.or... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/codeforces.py | codeforces.py | .py | 49,412 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/codeforces.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/codeforces.py | 09ee5fb810587397da2494a28a68160a3533c95b | Python | 2026-05-04T01:14:20.412897 | """Problems inspired by the popular programming competition site [codeforces.com](https://codeforces.com)"""
# TODO: add tags
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/compression.py | compression.py | .py | 6,199 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/compression.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/compression.py | 812dc6554a939b54235162cddadd25a38b2937b7 | Python | 2026-05-04T01:14:22.936644 | """Puzzles relating to de/compression."""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
def _compress_LZW(text): # for development
index = {chr(i): i for i in range(2... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/conways_game_of_life.py | conways_game_of_life.py | .py | 10,096 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/conways_game_of_life.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/conways_game_of_life.py | ebeaceed7750201e25f422704e815a9bd29a5175 | Python | 2026-05-04T01:14:24.399532 | """Conway's Game of Life problems (see https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life)"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
class Oscillators(PuzzleGene... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/games.py | games.py | .py | 19,286 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/games.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/games.py | ba23cc4f014d333e5ae7b341248d0fb449b44932 | Python | 2026-05-04T01:14:25.918413 | """
Some two-player game problems and hard game theory problems
"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
class Nim(PuzzleGenerator):
"""
Compute optimal p... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/graphs.py | graphs.py | .py | 18,704 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/graphs.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/graphs.py | 7b89e2c93d7ce76e933a2e7a938fe836dfe17590 | Python | 2026-05-04T01:14:27.351811 | """Problems related to graphs such as Conway's 99 problem, finding
[cliques](https://en.wikipedia.org/wiki/Clique_(graph_theory)) of various sizes, shortest path (Dijkstra) """
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/lattices.py | lattices.py | .py | 5,257 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/lattices.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/lattices.py | bbe1af64494014eabae921783b21b4f52d98ad61 | Python | 2026-05-04T01:14:28.703326 | """Lattice problems with and without noise"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
class LearnParity(PuzzleGenerator):
"""Parity learning (Gaussian eliminatio... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/number_theory.py | number_theory.py | .py | 21,356 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/number_theory.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/number_theory.py | f316255cdea60d761f6be68e26e27a21567e4f62 | Python | 2026-05-04T01:14:29.899655 | """Number theory problems"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
import os, json
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
class FermatsLastTheorem(PuzzleGenerator):
"""[Fermat's last theorem](https:... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/probability.py | probability.py | .py | 6,088 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/probability.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/probability.py | cf5b94570d362a80e0bfd9f03c1a7eb66fb2bdb4 | Python | 2026-05-04T01:14:31.444374 | """Probability problems"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
class BirthdayParadox(PuzzleGenerator):
"""
Adaptation of the classic
[Birthday Proble... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/study.py | study.py | .py | 12,979 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/study.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/study.py | 25e2dba847cc473ffcd7819fe63484ffd6a5bfac | Python | 2026-05-04T01:14:32.881490 | """
Puzzles used in our user study (the user study didn't have docstrings), see [Programming Puzzles](https://arxiv.org/abs/2106.05784).
"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about a... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/trivial_inverse.py | trivial_inverse.py | .py | 20,883 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/trivial_inverse.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/trivial_inverse.py | 21c086b70596a6eba4991c75065524ac2932a2bc | Python | 2026-05-04T01:14:34.419249 | """Trivial problems. Typically for any function, you can construct a trivial example.
For instance, for the len function you can ask for a string of len(s)==100 etc.
"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | generators/tutorial.py | tutorial.py | .py | 2,157 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/generators/tutorial.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/generators/tutorial.py | 69272da1938244c40e60e2543ebb6866348b0398 | Python | 2026-05-04T01:14:35.757803 | """
A few example puzzles that were presented with solutions to participants of the study.
"""
from puzzle_generator import PuzzleGenerator, Tags
from typing import List
# See https://github.com/microsoft/PythonProgrammingPuzzles/wiki/How-to-add-a-puzzle to learn about adding puzzles
class Tutorial1(PuzzleGenerato... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | make_dataset.py | make_dataset.py | .py | 9,879 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/make_dataset.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/make_dataset.py | d8cbd268f804e7ecadd9f37a32ebe16773082aaa | Python | 2026-05-04T01:14:37.111956 | import argparse
import time
import sys
import inspect
import re
import puzzle_generator
import utils
import generators # This loads all the problem generators
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--target_num_per_problem',
... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | notebooks/demo/demo.py | demo.py | .py | 14,328 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/notebooks/demo/demo.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/notebooks/demo/demo.py | 185a16b204a747e61200b848e1410246554f26cc | Python | 2026-05-04T01:14:38.514893 | from __future__ import print_function
import ipywidgets as widgets
from IPython.display import clear_output, display, Markdown, Javascript
import IPython
from demo import study_puzzles
from typing import List, Set, Tuple, Callable
import inspect
import shutil
import os
import re
import time
import threading
import pic... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | notebooks/demo/study_puzzles.py | study_puzzles.py | .py | 4,085 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/notebooks/demo/study_puzzles.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/notebooks/demo/study_puzzles.py | 1931b11b4f93912d383730a67a9012acaab9906f | Python | 2026-05-04T01:14:39.872712 | # provides get_puzzles
# parts separated by ======== (exactly 8)
# puzzles by ----'s (exactly 4)
def get_puzzles():
"""
Creates the puzzles for the study
:return: list of {"src": str, "name": str, "part": str}
"""
part_names = ["WARM UP", "PART 1/3", "PART 2/3", "PART 3/3"]
raw_puzzles = ... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | puzzle_generator.py | puzzle_generator.py | .py | 29,604 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/puzzle_generator.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/puzzle_generator.py | 9b63c0f47a2006348cbd4fb8bb07d66c85ac9545 | Python | 2026-05-04T01:14:41.278306 | """
Each PuzzleGenerator has one or more Instances corresponding a to a different input. A "simple" problem like
(lambda x: x + "world" == "Hello world") that has no inputs has just one instance.
"""
import inspect
import json
from typing import List, Callable, Dict, Set
import random
import re
import sys
import trace... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/codex/ezlog.py | ezlog.py | .py | 2,064 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/codex/ezlog.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/codex/ezlog.py | 3989b6d288d20af1d4cd8cb0e9899dba2404ac92 | Python | 2026-05-04T01:14:42.711690 | import os
import logging
import inspect
import io
my_path = os.path.dirname(__file__)
def color_str(obj, code="\033[0;36m"):
return code + str(obj) + '\033[0m'
_configured = False
def configure_logging(stdio_level=logging.INFO,
file_level=logging.DEBUG,
filename=".... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/codex/lm_solve/gpt_lib.py | gpt_lib.py | .py | 5,363 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/codex/lm_solve/gpt_lib.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/codex/lm_solve/gpt_lib.py | 26d65296b413084d7b45cd24b4164f58da78bf44 | Python | 2026-05-04T01:14:44.043716 | import os
import json
import openai
import ezlog
import time
import datetime
assert 'OPENAI_API_KEY' in os.environ, "Need to set environment variable `OPENAI_API_KEY`"
openai.api_key = os.environ['OPENAI_API_KEY']
OPEN_AI_ENGINE_SUFFIX = os.environ.get('OPEN_AI_ENGINE_SUFFIX', '') # add extension such as -msft to engi... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/codex/lm_solve/judge.py | judge.py | .py | 10,478 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/codex/lm_solve/judge.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/codex/lm_solve/judge.py | cd07fea8453e40c4269f61f5869b064873acfcca | Python | 2026-05-04T01:14:45.579112 | import hashlib
import os
import time
from utils import load_json
from pebble import ProcessPool
import multiprocessing as mp
from concurrent.futures import TimeoutError
from typing import List, Set, Tuple, Dict, Union, Any
from tqdm import tqdm
import functools
import utils
import ezlog
import signal
import sys
sys.s... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/codex/lm_solve/run.py | run.py | .py | 18,084 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/codex/lm_solve/run.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/codex/lm_solve/run.py | 8ea2c722db84a1670c7913348507e180565d8dc7 | Python | 2026-05-04T01:14:47.016951 | """
Run experiments.
"""
from typing import List, Tuple, Dict, Set
from collections import Counter
import utils
import ast
import time
import re
import astor
import json
import random
import inspect
from tqdm import tqdm
import sys
import os
import logging
import math
from . import gpt_lib
from . import judge
os.e... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/codex/lm_solve/scratch.py | scratch.py | .py | 962 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/codex/lm_solve/scratch.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/codex/lm_solve/scratch.py | 697f4590905103b36662482c90a726b0d8f7e3b6 | Python | 2026-05-04T01:14:48.343454 | from collections import Counter
def chars(filename, max_ord=300):
with open(filename, "r", encoding="utf8") as f:
counts = Counter(ord(c) for c in f.read())
print(counts.most_common())
print("max", max(counts))
missing = [i for i in range(max_ord) if i not in counts]
print("missing", missin... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/codex/run_codex_experiments.py | run_codex_experiments.py | .py | 6,161 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/codex/run_codex_experiments.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/codex/run_codex_experiments.py | 403dfc51f280bff1da0d8771ca292802726164f6 | Python | 2026-05-04T01:14:49.674876 | """
This script runs the codex experiments.
For GPT-3 experiments see run_gpt3_experiments.py in https://github.com/microsoft/PythonProgrammingPuzzles/tree/v0.1
It uses cacheing mechanisms so that if run twice with the same parameters, it will give exactly the same
results and will not query the API again and will not ... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/codex/utils.py | utils.py | .py | 3,861 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/codex/utils.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/codex/utils.py | 1887bce7e3b18111dd1b771ebc7087bec269e578 | Python | 2026-05-04T01:14:50.904284 | import functools
import operator
import os
import re
import json
import time
import logging
def get_lambda_arg_name(lam):
assert lam.startswith("lambda ")
return lam[len("lambda "):lam.index(":")].strip()
def stringify(const):
if type(const) is str:
return json.dumps(const)
return str(const)
... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/challenges/__init__.py | __init__.py | .py | 218 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/challenges/__init__.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/challenges/__init__.py | d1e90cff7cfc250f9f172e7e3c1d99361c893d72 | Python | 2026-05-04T01:14:52.239614 | from challenges.challenge import *
from challenges.solutions import *
def contains_node(root, x_node):
return root is x_node or (hasattr(root, "children") and any(contains_node(k, x_node) for k in root.children))
|
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/challenges/challenge.py | challenge.py | .py | 4,388 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/challenges/challenge.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/challenges/challenge.py | c80de4eb11d2dcfc6411e9effe4314f9c2a311d5 | Python | 2026-05-04T01:14:53.390266 | import utils
import tython
import logging
from typing import List, Dict, Callable, Tuple, Generator, Set, Sequence
from tython import Program, nt
logger = logging.getLogger(__name__)
def extract_constants(prog) -> Dict:
'''
Extract all constants from program. Does not (yet) allow copying of comprehensions, e... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/challenges/solutions.py | solutions.py | .py | 3,020 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/challenges/solutions.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/challenges/solutions.py | 48422f4853dc2da4bf187ca3961f2defb9e57571 | Python | 2026-05-04T01:14:54.590743 | from typing import List, Set, Dict, Callable, Tuple
import logging
from challenges import extract_constants
from tython import Program, TastNode, _RULES_BY_KIND, RULES, Rule, str2name
from tython.rules import DEF_RULE
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
def generatable_answer(q: Progr... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/filter_outputs.py | filter_outputs.py | .py | 758 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/filter_outputs.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/filter_outputs.py | a7a7f91f4ea945718ed3d879512914eb502068e8 | Python | 2026-05-04T01:14:55.722921 | import json
import sys
import os
inp_file = sys.argv[1]
if len(sys.argv) > 2:
shift = int(sys.argv[2])
else:
shift = 0
out_file = os.path.splitext(inp_file)[0]
with open(inp_file, 'r') as f:
data = json.load(f)
thresholds = [100, 1000, 10000, 100000, 1000000]
for t in thresholds:
t = t
out = []... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/models/__init__.py | __init__.py | .py | 282 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/models/__init__.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/models/__init__.py | 83b54d7012de58bcb3d8af2c11a4065c731ab200 | Python | 2026-05-04T01:14:57.047452 | MODEL_REGISTRY = {}
def RegisterModel(model_name):
def decorator(m):
MODEL_REGISTRY[model_name] = m
return m
return decorator
from models.uniform import *
#from models.bigram import *
#from models.ml_bow_unigram import *
from models.ml_bow_bigram import *
|
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/models/ml_bow_bigram.py | ml_bow_bigram.py | .py | 8,038 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/models/ml_bow_bigram.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/models/ml_bow_bigram.py | 49f80de73a78c3a2f282046613ea30b14b562add | Python | 2026-05-04T01:14:58.584398 | from typing import List, Dict, Callable, Tuple, Generator, Set, Sequence
from collections import defaultdict
import numpy as np
from copy import deepcopy
import sklearn
import sklearn.linear_model
import sklearn.ensemble
import sklearn.neighbors
import sklearn.tree
from scipy import sparse
from tqdm import tqdm
import ... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/models/model.py | model.py | .py | 2,149 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/models/model.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/models/model.py | d8e57f7c020bc6b1f8addaf0b47f472ac99abc4f | Python | 2026-05-04T01:14:59.842637 | from typing import List, Dict, Callable, Tuple, Generator, Set, Sequence
from tython import Program, TastNode, Rule, _RULES_BY_KIND
def reachable_rules_by_kind(sol_kind, terminal_kinds) -> Set:
'''
Finds all kinds that could be in a tree with sol_kind as the root
and terminal kinds as possible kinds for c... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/models/transformers/dataset_processor.py | dataset_processor.py | .py | 12,836 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/models/transformers/dataset_processor.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/models/transformers/dataset_processor.py | 84557109777208f2257f20bffd2f05440350a511 | Python | 2026-05-04T01:15:01.247710 | import logging
import os
import numpy as np
import glob
import json
from dataclasses import dataclass
from typing import List, Dict, Callable, Tuple, Generator, Set, Sequence, Optional, Union
import torch
from tqdm import tqdm
from transformers import DataProcessor, PreTrainedTokenizer
from tython import Program, Tas... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/models/transformers/finetune_transformer.py | finetune_transformer.py | .py | 60,064 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/models/transformers/finetune_transformer.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/models/transformers/finetune_transformer.py | d61a04dde9ddce409127f2d5d92030a028b8d179 | Python | 2026-05-04T01:15:03.192504 | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a cop... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/models/transformers/generate_rule_embeddings.py | generate_rule_embeddings.py | .py | 9,061 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/models/transformers/generate_rule_embeddings.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/models/transformers/generate_rule_embeddings.py | 4f0ed8dceededecbdaa155d4344b6dccf2f8511e | Python | 2026-05-04T01:15:04.962169 | import argparse
import glob
import logging
import csv
import os
import random
import json
import string
import numpy as np
import torch
from torch.utils.data import DataLoader, RandomSampler, SequentialSampler, TensorDataset
from tqdm import tqdm, trange
from transformers import (
WEIGHTS_NAME,
AutoConfig,
... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/models/transformers/learn_tokenizer.py | learn_tokenizer.py | .py | 1,467 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/models/transformers/learn_tokenizer.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/models/transformers/learn_tokenizer.py | 58cdabb3ab24554cd8fe3c07af027845d030ae89 | Python | 2026-05-04T01:15:06.395703 | import argparse
import glob
from os.path import join
from tokenizers import ByteLevelBPETokenizer
parser = argparse.ArgumentParser()
parser.add_argument(
"--files",
metavar="path",
type=str,
default="python_data/train.txt",
help="The files to use as training; accept '**/*.txt' type of patterns \
... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/models/transformers/neural_classifier.py | neural_classifier.py | .py | 13,883 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/models/transformers/neural_classifier.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/models/transformers/neural_classifier.py | 6fc1f7f771d5b07e758304cf8b05eea49b0b010f | Python | 2026-05-04T01:15:08.118348 | import logging
import torch
import os
import torch
import json
import csv
from torch import nn
import torch.nn.functional as F
from torch.nn import CrossEntropyLoss
from tqdm import tqdm, trange
from transformers import (
WEIGHTS_NAME,
AdamW,
AutoConfig,
AutoModel,
AutoTokenizer,
get_linear_sch... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.