function_name stringlengths 1 87 | binary_name stringlengths 64 64 | author_name stringlengths 2 36 | project_name stringlengths 1 48 | opt stringclasses 1
value | src stringlengths 11 425k | dbg stringclasses 1
value | codeart stringlengths 257 560k | lmpa stringlengths 619 152k |
|---|---|---|---|---|---|---|---|---|
query_buffer_size | fc962af895ccfb94c41ff9d7f04eccd599463af591671023af44230c6f9578f3 | analogdevicesinc | linux | NA | static int query_buffer_size(__u64 *buffer_size)
{
FILE *f;
f = fopen(ioctl_devfs, "rb");
if (!f)
return -EINVAL;
fread(buffer_size, sizeof(__u64), 1, f);
fclose(f);
return EXIT_SUCCESS;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401605", "function_addr": 4199941, "binary_name": "fc962af895ccfb94c41ff9d7f04eccd599463af591671023af44230c6f9578f3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+ptr], rdi"], [4, ... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/fc962... | |
tlsv1_server_set_cipher_list | 892109def3973fcbf2ff18d6b91afb36d045fe72303d34be34e9b18fd685ad3d | vanhoefm | hostap-wpa3 | NA | int tlsv1_server_set_cipher_list(struct tlsv1_server *conn, u8 *ciphers)
{
size_t count;
u16 *suites;
/* TODO: implement proper configuration of cipher suites */
if (ciphers[0] == TLS_CIPHER_ANON_DH_AES128_SHA) {
count = 0;
suites = conn->cipher_suites;
suites[count++] = TLS_RSA_WITH_AES_256_CBC_SHA;
suite... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_411614", "function_addr": 4265492, "binary_name": "892109def3973fcbf2ff18d6b91afb36d045fe72303d34be34e9b18fd685ad3d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_20],... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/89210... | |
gt_map_block_realign_hamming | 507b6d6826ab1404fd3df13a4b27da226b5beb2f60ed3e979a82f4c0a6725d69 | smarco | gem3-mapper | NA | GT_INLINE gt_status gt_map_block_realign_hamming(
gt_map* const map,char* const pattern,char* const sequence,const uint64_t length) {
GT_MAP_CHECK(map);
GT_NULL_CHECK(pattern);
GT_NULL_CHECK(sequence);
GT_ZERO_CHECK(length);
// Set misms pattern & clear map mismatches
gt_misms misms;
misms.misms_type ... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4260C5", "function_addr": 4350149, "binary_name": "507b6d6826ab1404fd3df13a4b27da226b5beb2f60ed3e979a82f4c0a6725d69.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/507b6... | |
MyLog | 5d44aa297847124482d909eb7c1e68c4914050b8c375e6038d7d751457b402df | gl-inet | gli-pub | NA | void MyLog(int LOGA_level, char* format, ...)
{
static char msg_buf[256];
va_list args;
struct timeb ts;
struct tm *timeinfo;
if (LOGA_level == LOGA_DEBUG && options.verbose == 0)
return;
ftime(&ts);
timeinfo = localtime(&ts.time);
strftime(msg_buf, 80, "%Y%m%d %H%M%S", timeinfo);
sprintf(&msg_buf[strle... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402D78", "function_addr": 4205944, "binary_name": "5d44aa297847124482d909eb7c1e68c4914050b8c375e6038d7d751457b402df.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 0F8h"], [4, "mov [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/5d44a... | |
to_signed_long | c283910ea3fac8d6dcd04f2f80992ffe7e7debb581199446850c02a5606342ba | alitrack | undark | NA | long int to_signed_long( unsigned long int value ) {
long int signed_value = value;
if (value >> 31) signed_value |= -1 << 31;
return signed_value;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4019D3", "function_addr": 4200915, "binary_name": "c283910ea3fac8d6dcd04f2f80992ffe7e7debb581199446850c02a5606342ba.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov rax, [rbp+var... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c2839... | |
cram_add_insertion | 6cecd7ea96dca892d1966b7d9d51842160e9cf1b2b2e3c70b7de2f2b55ddef74 | thegenemyers | FASTK | NA | static int cram_add_insertion(cram_container *c, cram_slice *s, cram_record *r,
int pos, int len, char *base) {
cram_feature f;
f.I.pos = pos+1;
if (len == 1) {
char b = base ? *base : 'N';
f.i.code = 'i';
f.i.base = b;
if (cram_stats_add(c->stat... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_469F48", "function_addr": 4628296, "binary_name": "6cecd7ea96dca892d1966b7d9d51842160e9cf1b2b2e3c70b7de2f2b55ddef74.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_28], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/6cecd... | |
testDoubleIsNotDeterminate1 | 08f75e8cea2799daf4ab70b8df261c534a663dff963410741a43aabb6fbc7ad6 | LeeLulin | esp-homekit-direct | NA | void testDoubleIsNotDeterminate1(void)
{
#ifdef UNITY_EXCLUDE_DOUBLE
TEST_IGNORE();
#else
TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(1.0 / d_zero);
TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(-1.0 / d_zero);
TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(0.0 / d_zero);
#endif
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4219D8", "function_addr": 4331992, "binary_name": "08f75e8cea2799daf4ab70b8df261c534a663dff963410741a43aabb6fbc7ad6.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov rax, cs:qword_43A720"], [3, "add rax, 1"], ... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/08f75... | |
new_scope | b0a9cd2f3e4fb25c6201aa09bcf5782ae37b5367e290f1eed7e0432fa3739c0f | C-Chads | tinycc | NA | static void new_scope(struct scope *o)
{
/* copy and link previous scope */
*o = *cur_scope;
o->prev = cur_scope;
cur_scope = o;
cur_scope->vla.num = 0;
/* record local declaration stack position */
o->lstk = local_stack;
o->llstk = local_label_stack;
++local_scope;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_417C8D", "function_addr": 4291725, "binary_name": "b0a9cd2f3e4fb25c6201aa09bcf5782ae37b5367e290f1eed7e0432fa3739c0f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "mov [rbp+var_10], rdi"], [4, "m... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/b0a9c... | |
gt_input_multifasta_parser_get_archive | 507b6d6826ab1404fd3df13a4b27da226b5beb2f60ed3e979a82f4c0a6725d69 | smarco | gem3-mapper | NA | GT_INLINE gt_status gt_input_multifasta_parser_get_archive(
gt_input_file* const input_multifasta_file,gt_sequence_archive* const sequence_archive) {
GT_INPUT_FILE_CHECK(input_multifasta_file);
GT_SEQUENCE_ARCHIVE_CHECK(sequence_archive);
// Clear sequence archive (Why? Could be done in an accumulative fashio... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414B69", "function_addr": 4279145, "binary_name": "507b6d6826ab1404fd3df13a4b27da226b5beb2f60ed3e979a82f4c0a6725d69.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 28h"], [4, "mov [r... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/507b6... | |
_will_return | f2b2915e9e2d6729375d876f6c15174498b7f2f04b5b9bcc85cb7c605be4924f | cjhdev | lora_device_lib | NA | void _will_return(const char * const function_name, const char * const file,
const int line, const LargestIntegralType value,
const int count) {
SymbolValue * const return_value =
(SymbolValue*)malloc(sizeof(*return_value));
assert_true(count != 0);
return_value->... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41BA2E", "function_addr": 4307502, "binary_name": "f2b2915e9e2d6729375d876f6c15174498b7f2f04b5b9bcc85cb7c605be4924f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f2b29... | |
yrmcds_getk | c14e4a23af97c05c132af727554ffbc40c808655512247badf0f63aaac8465be | netdata | netdata | NA | yrmcds_error yrmcds_getk(yrmcds* c, const char* key, size_t key_len,
int quiet, uint32_t* serial) {
if( c == NULL || key == NULL || key_len == 0 )
return YRMCDS_BAD_ARGUMENT;
if( c->text_mode )
return yrmcds_text_get(c, key, key_len, quiet, serial);
return send_com... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408125", "function_addr": 4227365, "binary_name": "c14e4a23af97c05c132af727554ffbc40c808655512247badf0f63aaac8465be.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_8], rdi"], [4... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c14e4... | |
main | c4a3096d0db326a6a2a748070554dbfe7f1dd49f63830595967d5513b90de38c | skeeto | enchive | NA | int
main(int argc, char **argv)
{
static const struct optparse_long global[] = {
#if ENCHIVE_OPTION_AGENT
{"agent", 'a', OPTPARSE_OPTIONAL},
{"no-agent", 'A', OPTPARSE_NONE},
#endif
{"pinentry", 'e', OPTPARSE_OPTIONAL},
{"pubkey", 'p', OPTPARSE_REQUIRED},
... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4220451, "binary_name": "c4a3096d0db326a6a2a748070554dbfe7f1dd49f63830595967d5513b90de38c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0A0h"], [3, "mov [rbp+var_94], edi"], [4, "m... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c4a30... | |
iscsi_update_conn_stats_tx | 06b05d82dec9870e8b7ae0397f41b35df72003047fadef58765b37b6dc5de195 | fujita | tgt | NA | void iscsi_update_conn_stats_tx(struct iscsi_connection *conn, int size, int opcode)
{
conn->stats.txdata_octets += (uint64_t)size;
if (unlikely(opcode < 0))
return;
if (opcode == ISCSI_OP_SCSI_DATA_IN)
conn->stats.datain_pdus++;
else if (opcode == ISCSI_OP_SCSI_CMD_RSP)
conn->stats.scsirsp_pdus++;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "iscsi_update_conn_stats_tx", "function_addr": 4229193, "binary_name": "06b05d82dec9870e8b7ae0397f41b35df72003047fadef58765b37b6dc5de195.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov ... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/06b05... | |
sl_bt_advertiser_configure | d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323 | openthread | ot-efr32 | NA | sl_status_t sl_bt_advertiser_configure(uint8_t advertising_set, uint32_t flags) {
struct sl_bt_packet *cmd = (struct sl_bt_packet *)sl_bt_cmd_msg;
struct sl_bt_packet *rsp = (struct sl_bt_packet *)sl_bt_rsp_msg;
cmd->data.cmd_advertiser_configure.advertising_set=advertising_set;
cmd->data.cmd_advertis... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4044A3", "function_addr": 4211875, "binary_name": "d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov eax, edi"], [4, "mov ... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d641d... | |
pic16_write_panel | d5cac42be9875efcb6972b80950aacef186fc23bb0003aa70f675eb5be5bf40c | GBert | misc | NA | void
pic16_write_panel(uint32_t region, uint32_t address, uint32_t *panel, uint32_t panel_size)
{
uint32_t h, l, i;
uint16_t word;
switch (pic16_map[pic16_index].datasheet) {
case DS39687E: /* PIC18LF27J53 */
h = pic16_map[pic16_index].p9; /* minimum 1.2 or 3.5ms */
l = 0;
break;
default:h = pic16_map[pic1... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_410BC4", "function_addr": 4262852, "binary_name": "d5cac42be9875efcb6972b80950aacef186fc23bb0003aa70f675eb5be5bf40c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_14], edi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d5cac... | |
movc_a_indir_a_pc | 18ff9bd9c1637b628af63c86f48edfbee6b6b7371ac92f808a17f2cbb8eb4fe5 | jarikomppa | emu8051 | NA | static uint8_t movc_a_indir_a_pc(struct em8051 *aCPU)
{
uint16_t address = PC + 1 + ACC;
ACC = CODEMEM(address);
PC++;
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40651F", "function_addr": 4220191, "binary_name": "18ff9bd9c1637b628af63c86f48edfbee6b6b7371ac92f808a17f2cbb8eb4fe5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov rax, [rbp+var... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/18ff9... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.