neoneye/base64-decode-v1
Dataset: Base64 decode version1 This dataset is for improving base64 decoding capabilities. The number of bytes that are in the base64 encoded data spans between 0..127 bytes. GPT 4o is great at base64 decoding. However llama3 is terrible at base64 decoding. Short examples of what data.jsonl looks like: {"instruction": "Transform base64 to HEX", "input": "464pNBlIObA=", "output": "e3ae2934194839b0"} {"instruction": "Decode Base64 to json", "input": "NQ==", "output": "[53]"}… See the full description on the dataset page: https://huggingface.co/datasets/neoneye/base64-decode-v1.
044
1import unittest2from random_data import generate_random_byte_array3 4class TestRandomData(unittest.TestCase):5 def test_generate_random_byte_array_empty(self):6 actual = generate_random_byte_array(length=0, seed=0)7 expected = bytearray()8 self.assertEqual(actual, expected)9 10 def test_generate_random_byte_array_length1(self):11 actual = generate_random_byte_array(length=1, seed=0)12 expected = bytearray([0xc5])13 self.assertEqual(actual, expected)14 15 def test_generate_random_byte_array_length2(self):16 actual = generate_random_byte_array(length=2, seed=0)17 expected = bytearray([0xc5, 0xd7])18 self.assertEqual(actual, expected)19 20if __name__ == '__main__':21 unittest.main()22 