C++ files are are from this GitHub repository, with a small modification by me to allow the parser to accept a filename on the command line:
https://github.com/alepapadop/vrml
genvrml_v*.py
written by Claude 3 Opus.
The conversation was:
#!/usr/bin/env python3 | |
import sys | |
import requests | |
from datetime import datetime, timezone | |
# Ok I'll be honest ChatGPT wrote the vast majority of this | |
# Use at your own risk | |
def get_latest_version_before_date(package_name, cutoff_date): |
C++ files are are from this GitHub repository, with a small modification by me to allow the parser to accept a filename on the command line:
https://github.com/alepapadop/vrml
genvrml_v*.py
written by Claude 3 Opus.
The conversation was:
all: gifread gifread.asan gifread.ubsan gifread.coverage | |
gifread: gifdec.c gifread.c gifdec.h | |
$(CC) $(CFLAGS) -o $@ gifdec.c gifread.c $(LDFLAGS) | |
gifread.asan: gifdec.c gifread.c gifdec.h | |
$(CC) $(CFLAGS) -g -fsanitize=address -o $@ gifdec.c gifread.c $(LDFLAGS) | |
gifread.ubsan: gifdec.c gifread.c gifdec.h | |
$(CC) $(CFLAGS) -g -fsanitize=undefined -o $@ gifdec.c gifread.c $(LDFLAGS) |
from typing import BinaryIO | |
import random | |
import struct | |
def generate_random_input(out: BinaryIO): | |
# Generate Header | |
out.write(b'GIF89a') # GIF signature and version | |
# Generate Logical Screen Descriptor | |
screen_width = random.randint(1, 65535) |
from typing import BinaryIO | |
import random | |
import struct | |
def generate_random_input(out: BinaryIO): | |
# Generate a random width and height (between 1 and 1000) | |
width = random.randint(1, 1000) | |
height = random.randint(1, 1000) | |
# Write GIF header |
#!/usr/bin/env python | |
import sys, os | |
import platform | |
import ctypes as ct | |
import mmap | |
from enum import Enum | |
import importlib | |
import functools | |
import errno |
#!/bin/bash | |
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
import ghidra.app.script.GhidraScript; | |
import ghidra.app.decompiler.DecompInterface; |
Given the following program: | |
``` | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define BUFFERSIZE 200 | |
#define TRUE 1 | |
#define FALSE 0 |
The SalesForce CodeGen models are a family of large language models trained on a large amount of natural language data and then fine-tuned on specialized datasets of code. Models of size 350M, 2B, 6B, and 16B parameters are provided in three flavors: