Update README.md
Browse files12345671 unmodified line91011121314151617181920212223242526272829303132333435363738394041424344# Original Dataset + Tokenized Data + (Buggy + Fixed Embedding Pairs) + Difference Embeddings## OverviewThis repository contains 4 related datasets for [your use case]:## Datasets Included1 unmodified line- **Description**: Legacy RunBugRun Dataset- **Format**: Parquet file with buggy-fixed code pairs, bug labels, and language- **Size**: 456,749 samples- **Load with**: dataset = load_dataset("NicholasOgenstad/my-runbugrun-dataset-filtered", split="train")### 2. Difference Embeddings (`diff_embeddings_chunk_XXXX.pkl`)- **Description**: ModernBERT-large embeddings for buggy-fixed pairs. The difference is Fixed embedding - Buggy embedding. 1024 dimensional vector.- **Format**: Pickle file with XXXX arrays- **Dimensions**: 456,749 × 1024, split among the different files, most 20000, last one shorter.- **Load with**: XXXX### 3. Tokens (`token_embeddings.pkl`)- **Description**: Original Dataset tokenized, pairs of Buggy and Fixed code.- **Format**: Pickle file XXXX- **Load with**: XXXX### 4. Buggy + Fixed Embeddings(`tokenized_data.json`)- **Description**: Preprocessed tokenized sequences- **Format**: Pickle file XXXX- **Load with**: XXXX## Usage Examples```python# Load original dataset# Load tokens# Load diff embeddings# Load buggy fixed embedding pairs12345671 unmodified line910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788# Original Dataset + Tokenized Data + (Buggy + Fixed Embedding Pairs) + Difference Embeddings## OverviewThis repository contains 4 related datasets for training a transformation from buggy to fixed code embeddings:## Datasets Included1 unmodified line- **Description**: Legacy RunBugRun Dataset- **Format**: Parquet file with buggy-fixed code pairs, bug labels, and language- **Size**: 456,749 samples- **Load with**:```pythonfrom datasets import load_datasetdataset = load_dataset("ASSERT-KTH/RunBugRun-Final",split="train")buggy = dataset['buggy_code']fixed = dataset['fixed_code']### 2. Difference Embeddings (`diff_embeddings_chunk_XXXX.pkl`)- **Description**: ModernBERT-large embeddings for buggy-fixed pairs. The difference is Fixed embedding - Buggy embedding. 1024 dimensional vector.- **Format**: Pickle file with XXXX arrays- **Dimensions**: 456,749 × 1024, split among the different files, most 20000, last one shorter.- **Load with**:```pythonfrom huggingface_hub import hf_hub_downloadimport picklerepo_id = "ASSERT-KTH/RunBugRun-Final"diff_embeddings = []for chunk_num in range(23):file_path = hf_hub_download(repo_id=repo_id,filename=f"Embeddings_RBR/diff_embeddings/diff_embeddings_chunk_{chunk_num:04d}.pkl",repo_type="dataset")with open(file_path, 'rb') as f:data = pickle.load(f)diff_embeddings.extend(data.tolist())### 3. Tokens (`token_embeddings.pkl`)- **Description**: Original Dataset tokenized, pairs of Buggy and Fixed code.- **Format**: Pickle file XXXX- **Load with**:```pythonfrom huggingface_hub import hf_hub_downloadimport picklerepo_id = "ASSERT-KTH/RunBugRun-Final"tokenized_data = []for chunk_num in range(23):file_path = hf_hub_download(repo_id=repo_id,filename=f"Embeddings_RBR/tokenized_data/chunk_{chunk_num:04d}.pkl",repo_type="dataset")with open(file_path, 'rb') as f:data = pickle.load(f)tokenized_data.extend(data)### 4. Buggy + Fixed Embeddings (`tokenized_data.json`)- **Description**: Preprocessed tokenized sequences- **Format**: Pickle file with dictionaries containing 'buggy_embeddings' and 'fixed_embeddings' keys- **Load with**:```pythonfrom huggingface_hub import hf_hub_downloadimport picklerepo_id = "ASSERT-KTH/RunBugRun-Final"buggy_list = []fixed_list = []for chunk_num in range(23):file_path = hf_hub_download(repo_id=repo_id,filename=f"Embeddings_RBR/buggy_fixed_embeddings/buggy_fixed_embeddings_chunk_{chunk_num:04d}.pkl",repo_type="dataset")with open(file_path, 'rb') as f:data = pickle.load(f)buggy_list.extend(data['buggy_embeddings'].tolist())fixed_list.extend(data['fixed_embeddings'].tolist())
README.md+66-22