prompt stringclasses 1
value | completions listlengths 1 63.8k | labels listlengths 1 63.8k | source stringclasses 1
value | other_info stringlengths 2.06k 101k | index int64 0 6.83k |
|---|---|---|---|---|---|
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n * Print Virtual Channel\n *\n * Copyright 2010-2011 Vic Lee\n * Copyright 2015 Thincast Technologies GmbH\n * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>\n * Copyright 2016 Armin Novak <armin.novak@gmail.com>\n * Copyright 20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [357, 496, 447, 322, 308, 1001], "buggy_code_start_loc": [333, 480, 447, 145, 307, 94], "filenames": ["channels/drive/client/drive_main.c", "channels/printer/client/printer_main.c", "channels/rdpei/client/rdpei_main.c", "channels/serial/client/serial_main.c", "libfreerdp/core/gateway/rdg.c", "lib... | 320 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n * Print Virtual Channel\n *\n * Copyright 2010-2011 Vic Lee\n * Copyright 2015 Thincast Technologies GmbH\n * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>\n * Copyright 2016 Armin Novak <armin.novak@gmail.com>\n * Copyright 20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [357, 496, 447, 322, 308, 1001], "buggy_code_start_loc": [333, 480, 447, 145, 307, 94], "filenames": ["channels/drive/client/drive_main.c", "channels/printer/client/printer_main.c", "channels/rdpei/client/rdpei_main.c", "channels/serial/client/serial_main.c", "libfreerdp/core/gateway/rdg.c", "lib... | 320 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n * Input Virtual Channel Extension\n *\n * Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>\n * Copyright 2015 Thincast Technologies GmbH\n * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>\n *\n * Licensed under the ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [357, 496, 447, 322, 308, 1001], "buggy_code_start_loc": [333, 480, 447, 145, 307, 94], "filenames": ["channels/drive/client/drive_main.c", "channels/printer/client/printer_main.c", "channels/rdpei/client/rdpei_main.c", "channels/serial/client/serial_main.c", "libfreerdp/core/gateway/rdg.c", "lib... | 320 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n * Input Virtual Channel Extension\n *\n * Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>\n * Copyright 2015 Thincast Technologies GmbH\n * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>\n *\n * Licensed under the ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [357, 496, 447, 322, 308, 1001], "buggy_code_start_loc": [333, 480, 447, 145, 307, 94], "filenames": ["channels/drive/client/drive_main.c", "channels/printer/client/printer_main.c", "channels/rdpei/client/rdpei_main.c", "channels/serial/client/serial_main.c", "libfreerdp/core/gateway/rdg.c", "lib... | 320 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n * Serial Port Device Service Virtual Channel\n *\n * Copyright 2011 O.S. Systems Software Ltda.\n * Copyright 2011 Eduardo Fiss Beloni <beloni@ossystems.com.br>\n * Copyright 2014 Hewlett-Packard Development Company, L.P.\n *\n * Licensed under the Apache... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [357, 496, 447, 322, 308, 1001], "buggy_code_start_loc": [333, 480, 447, 145, 307, 94], "filenames": ["channels/drive/client/drive_main.c", "channels/printer/client/printer_main.c", "channels/rdpei/client/rdpei_main.c", "channels/serial/client/serial_main.c", "libfreerdp/core/gateway/rdg.c", "lib... | 320 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n * Serial Port Device Service Virtual Channel\n *\n * Copyright 2011 O.S. Systems Software Ltda.\n * Copyright 2011 Eduardo Fiss Beloni <beloni@ossystems.com.br>\n * Copyright 2014 Hewlett-Packard Development Company, L.P.\n *\n * Licensed under the Apache... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [357, 496, 447, 322, 308, 1001], "buggy_code_start_loc": [333, 480, 447, 145, 307, 94], "filenames": ["channels/drive/client/drive_main.c", "channels/printer/client/printer_main.c", "channels/rdpei/client/rdpei_main.c", "channels/serial/client/serial_main.c", "libfreerdp/core/gateway/rdg.c", "lib... | 320 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n * Remote Desktop Gateway (RDG)\n *\n * Copyright 2015 Denis Vincent <dvincent@devolutions.net>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtai... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [357, 496, 447, 322, 308, 1001], "buggy_code_start_loc": [333, 480, 447, 145, 307, 94], "filenames": ["channels/drive/client/drive_main.c", "channels/printer/client/printer_main.c", "channels/rdpei/client/rdpei_main.c", "channels/serial/client/serial_main.c", "libfreerdp/core/gateway/rdg.c", "lib... | 320 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n * Remote Desktop Gateway (RDG)\n *\n * Copyright 2015 Denis Vincent <dvincent@devolutions.net>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtai... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [357, 496, 447, 322, 308, 1001], "buggy_code_start_loc": [333, 480, 447, 145, 307, 94], "filenames": ["channels/drive/client/drive_main.c", "channels/printer/client/printer_main.c", "channels/rdpei/client/rdpei_main.c", "channels/serial/client/serial_main.c", "libfreerdp/core/gateway/rdg.c", "lib... | 320 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n * RDP Protocol Security Negotiation\n *\n * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>\n * Copyright 2014 Norbert Federa <norbert.federa@thincast.com>\n * Copyright 2015 Thincast Technologies GmbH\n * Copyright 2015 DI (FH) Martin Haimb... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [357, 496, 447, 322, 308, 1001], "buggy_code_start_loc": [333, 480, 447, 145, 307, 94], "filenames": ["channels/drive/client/drive_main.c", "channels/printer/client/printer_main.c", "channels/rdpei/client/rdpei_main.c", "channels/serial/client/serial_main.c", "libfreerdp/core/gateway/rdg.c", "lib... | 320 |
Determine whether the {function_name} code is vulnerable or not. | [
"/**\n * FreeRDP: A Remote Desktop Protocol Implementation\n * RDP Protocol Security Negotiation\n *\n * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>\n * Copyright 2014 Norbert Federa <norbert.federa@thincast.com>\n * Copyright 2015 Thincast Technologies GmbH\n * Copyright 2015 DI (FH) Martin Haimb... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [357, 496, 447, 322, 308, 1001], "buggy_code_start_loc": [333, 480, 447, 145, 307, 94], "filenames": ["channels/drive/client/drive_main.c", "channels/printer/client/printer_main.c", "channels/rdpei/client/rdpei_main.c", "channels/serial/client/serial_main.c", "libfreerdp/core/gateway/rdg.c", "lib... | 320 |
Determine whether the {function_name} code is vulnerable or not. | [
"/************************************************************\n * Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.\n *\n * Permission to use, copy, modify, and distribute this\n * software and its documentation for any purpose and without\n * fee is hereby granted, provided that the above copyright\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [785, 37, 190, 691], "buggy_code_start_loc": [108, 37, 97, 594], "filenames": ["src/xkbcomp/ast-build.c", "src/xkbcomp/ast-build.h", "src/xkbcomp/ast.h", "src/xkbcomp/parser.y"], "fixing_code_end_loc": [794, 41, 198, 691], "fixing_code_start_loc": [109, 38, 98, 594], "message": "Unchecked NULL po... | 321 |
Determine whether the {function_name} code is vulnerable or not. | [
"/************************************************************\n * Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.\n *\n * Permission to use, copy, modify, and distribute this\n * software and its documentation for any purpose and without\n * fee is hereby granted, provided that the above copyright\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [785, 37, 190, 691], "buggy_code_start_loc": [108, 37, 97, 594], "filenames": ["src/xkbcomp/ast-build.c", "src/xkbcomp/ast-build.h", "src/xkbcomp/ast.h", "src/xkbcomp/parser.y"], "fixing_code_end_loc": [794, 41, 198, 691], "fixing_code_start_loc": [109, 38, 98, 594], "message": "Unchecked NULL po... | 321 |
Determine whether the {function_name} code is vulnerable or not. | [
"/************************************************************\n * Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.\n *\n * Permission to use, copy, modify, and distribute this\n * software and its documentation for any purpose and without\n * fee is hereby granted, provided that the above copyright\n ... | [
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [785, 37, 190, 691], "buggy_code_start_loc": [108, 37, 97, 594], "filenames": ["src/xkbcomp/ast-build.c", "src/xkbcomp/ast-build.h", "src/xkbcomp/ast.h", "src/xkbcomp/parser.y"], "fixing_code_end_loc": [794, 41, 198, 691], "fixing_code_start_loc": [109, 38, 98, 594], "message": "Unchecked NULL po... | 321 |
Determine whether the {function_name} code is vulnerable or not. | [
"/************************************************************\n * Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.\n *\n * Permission to use, copy, modify, and distribute this\n * software and its documentation for any purpose and without\n * fee is hereby granted, provided that the above copyright\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [785, 37, 190, 691], "buggy_code_start_loc": [108, 37, 97, 594], "filenames": ["src/xkbcomp/ast-build.c", "src/xkbcomp/ast-build.h", "src/xkbcomp/ast.h", "src/xkbcomp/parser.y"], "fixing_code_end_loc": [794, 41, 198, 691], "fixing_code_start_loc": [109, 38, 98, 594], "message": "Unchecked NULL po... | 321 |
Determine whether the {function_name} code is vulnerable or not. | [
"/************************************************************\n * Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.\n *\n * Permission to use, copy, modify, and distribute this\n * software and its documentation for any purpose and without\n * fee is hereby granted, provided that the above copyright\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [785, 37, 190, 691], "buggy_code_start_loc": [108, 37, 97, 594], "filenames": ["src/xkbcomp/ast-build.c", "src/xkbcomp/ast-build.h", "src/xkbcomp/ast.h", "src/xkbcomp/parser.y"], "fixing_code_end_loc": [794, 41, 198, 691], "fixing_code_start_loc": [109, 38, 98, 594], "message": "Unchecked NULL po... | 321 |
Determine whether the {function_name} code is vulnerable or not. | [
"/************************************************************\n * Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.\n *\n * Permission to use, copy, modify, and distribute this\n * software and its documentation for any purpose and without\n * fee is hereby granted, provided that the above copyright\n ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [785, 37, 190, 691], "buggy_code_start_loc": [108, 37, 97, 594], "filenames": ["src/xkbcomp/ast-build.c", "src/xkbcomp/ast-build.h", "src/xkbcomp/ast.h", "src/xkbcomp/parser.y"], "fixing_code_end_loc": [794, 41, 198, 691], "fixing_code_start_loc": [109, 38, 98, 594], "message": "Unchecked NULL po... | 321 |
Determine whether the {function_name} code is vulnerable or not. | [
"/************************************************************\n Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.",
" Permission to use, copy, modify, and distribute this\n software and its documentation for any purpose and without\n fee is hereby granted, provided that the above copyright\n notice a... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [785, 37, 190, 691], "buggy_code_start_loc": [108, 37, 97, 594], "filenames": ["src/xkbcomp/ast-build.c", "src/xkbcomp/ast-build.h", "src/xkbcomp/ast.h", "src/xkbcomp/parser.y"], "fixing_code_end_loc": [794, 41, 198, 691], "fixing_code_start_loc": [109, 38, 98, 594], "message": "Unchecked NULL po... | 321 |
Determine whether the {function_name} code is vulnerable or not. | [
"/************************************************************\n Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.",
" Permission to use, copy, modify, and distribute this\n software and its documentation for any purpose and without\n fee is hereby granted, provided that the above copyright\n notice a... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [785, 37, 190, 691], "buggy_code_start_loc": [108, 37, 97, 594], "filenames": ["src/xkbcomp/ast-build.c", "src/xkbcomp/ast-build.h", "src/xkbcomp/ast.h", "src/xkbcomp/parser.y"], "fixing_code_end_loc": [794, 41, 198, 691], "fixing_code_start_loc": [109, 38, 98, 594], "message": "Unchecked NULL po... | 321 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\t$OpenBSD: ca.c,v 1.64 2020/07/15 14:45:15 tobhe Exp $\t*/",
"\n/*\n * Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this ... | [
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [1424], "buggy_code_start_loc": [1], "filenames": ["sbin/iked/ca.c"], "fixing_code_end_loc": [1424], "fixing_code_start_loc": [1], "message": "iked in OpenIKED, as used in OpenBSD through 6.7, allows authentication bypass because ca.c has the wrong logic for checking whether a public key matches.... | 322 |
Determine whether the {function_name} code is vulnerable or not. | [
"/*\t$OpenBSD: ca.c,v 1.65 2020/07/27 14:22:53 tobhe Exp $\t*/",
"\n/*\n * Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [1424], "buggy_code_start_loc": [1], "filenames": ["sbin/iked/ca.c"], "fixing_code_end_loc": [1424], "fixing_code_start_loc": [1], "message": "iked in OpenIKED, as used in OpenBSD through 6.7, allows authentication bypass because ca.c has the wrong logic for checking whether a public key matches.... | 322 |
Determine whether the {function_name} code is vulnerable or not. | [
"1.3.1 (2019-08-27)",
"------------------",
"Bugfixes\n~~~~~~~~\n",
"- Waitress won't accidentally throw away part of the path if it starts with a\n double slash (``GET //testing/whatever HTTP/1.0``). WSGI applications will\n now receive a ``PATH_INFO`` in the environment that contains\n ``//testing/whatev... | [
0,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0
] | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"1.4.0 (2019-12-20)",
"------------------",
"Bugfixes\n~~~~~~~~\n",
"- Waitress used to slam the door shut on HTTP pipelined requests without\n setting the ``Connection: close`` header as appropriate in the response. This\n is of course not very friendly. Waitress now explicitly sets the header when\n resp... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"",
"1.2.1 (2019-01-25)\n------------------",
"Bugfixes\n~~~~~~~~",
"- When given an IPv6 address in ``X-Forwarded-For`` or ``Forwarded for=``\n waitress was placing the IP address in ``REMOTE_ADDR`` with brackets:\n ``[2001:db8::0]``, this does not match the requirements in the CGI spec which\n ``REMOTE_A... | [
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"1.3.1 (2019-08-27)\n------------------",
"Bugfixes\n~~~~~~~~",
"- Waitress won't accidentally throw away part of the path if it starts with a\n double slash (``GET //testing/whatever HTTP/1.0``). WSGI applications will\n now receive a ``PATH_INFO`` in the environment that contains\n ``//testing/whatever`` a... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2006 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.... | [
1,
1,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2006 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.... | [
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2001, 2002 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distrib... | [
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
0,
1,
1,
0,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2001, 2002 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distrib... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2001, 2002 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distrib... | [
1,
0,
0,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2001, 2002 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distrib... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2001, 2002 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distrib... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2001, 2002 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distrib... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"import unittest\nimport io",
"\nclass TestHTTPChannel(unittest.TestCase):\n def _makeOne(self, sock, addr, adj, map=None):\n from waitress.channel import HTTPChannel",
" server = DummyServer()\n return HTTPChannel(server, sock, addr, adj=adj, map=map)",
" def _makeOneWithMap(self, ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"import unittest\nimport io",
"\nclass TestHTTPChannel(unittest.TestCase):\n def _makeOne(self, sock, addr, adj, map=None):\n from waitress.channel import HTTPChannel",
" server = DummyServer()\n return HTTPChannel(server, sock, addr, adj=adj, map=map)",
" def _makeOneWithMap(self, ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"import errno\nimport logging\nimport multiprocessing\nimport os\nimport signal\nimport socket\nimport string\nimport subprocess\nimport sys\nimport time\nimport unittest\nfrom waitress import server\nfrom waitress.compat import httplib, tobytes\nfrom waitress.utilities import cleanup_unix_socket",
"dn = os.path.... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
0,
1,
1,
0,
1,
1,
1,
1,
0,
1,
0,
1,
1,
0,
1,
1,
1,
0,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"import errno\nimport logging\nimport multiprocessing\nimport os\nimport signal\nimport socket\nimport string\nimport subprocess\nimport sys\nimport time\nimport unittest\nfrom waitress import server\nfrom waitress.compat import httplib, tobytes\nfrom waitress.utilities import cleanup_unix_socket",
"dn = os.path.... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2002 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.... | [
1,
0,
1,
1,
1,
1,
1,
0,
0,
1,
1,
0,
0,
1,
0,
1,
0,
0,
1,
1,
0,
1,
1,
1,
1,
0,
0,
1,
1,
1,
0,
1,
1,
1,
0,
0,
1,
1,
0,
0,
1,
0,
1,
1,
0,
0,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2002 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"import unittest",
"\nclass TestFixedStreamReceiver(unittest.TestCase):\n def _makeOne(self, cl, buf):\n from waitress.receiver import FixedStreamReceiver",
" return FixedStreamReceiver(cl, buf)",
" def test_received_remain_lt_1(self):\n buf = DummyBuffer()\n inst = self._mak... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"import unittest",
"\nclass TestFixedStreamReceiver(unittest.TestCase):\n def _makeOne(self, cl, buf):\n from waitress.receiver import FixedStreamReceiver",
" return FixedStreamReceiver(cl, buf)",
" def test_received_remain_lt_1(self):\n buf = DummyBuffer()\n inst = self._mak... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"import unittest\nimport io",
"\nclass TestThreadedTaskDispatcher(unittest.TestCase):\n def _makeOne(self):\n from waitress.task import ThreadedTaskDispatcher",
" return ThreadedTaskDispatcher()",
" def test_handler_thread_task_raises(self):\n inst = self._makeOne()\n inst.th... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"import unittest\nimport io",
"\nclass TestThreadedTaskDispatcher(unittest.TestCase):\n def _makeOne(self):\n from waitress.task import ThreadedTaskDispatcher",
" return ThreadedTaskDispatcher()",
" def test_handler_thread_task_raises(self):\n inst = self._makeOne()\n inst.th... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2002 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2002 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2004 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.... | [
1,
1,
1,
1,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
0
] | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"##############################################################################\n#\n# Copyright (c) 2004 Zope Foundation and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the Zope Public License,\n# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [79, 0, 38, 303, 143, 364, 536, 1586, 478, 155, 921, 96, 308], "buggy_code_start_loc": [1, 0, 37, 22, 17, 356, 426, 182, 18, 86, 879, 86, 31], "filenames": ["CHANGES.txt", "HISTORY.txt", "setup.py", "waitress/parser.py", "waitress/receiver.py", "waitress/task.py", "waitress/tests/test_channel.py"... | 323 |
Determine whether the {function_name} code is vulnerable or not. | [
"import { Meteor } from \"meteor/meteor\";\nimport nodemailer from \"nodemailer\";\nimport smtpPool from \"nodemailer-smtp-pool\";",
"const Future = Npm.require(\"fibers/future\");",
"const getSmtpConfig = function () {\n const config = Settings.findOne({ _id: \"smtpConfig\" });\n return config && config.valu... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [84, 1522, 203, 231], "buggy_code_start_loc": [77, 1518, 202, 188], "filenames": ["shell/imports/server/email.js", "shell/packages/sandstorm-db/db.js", "shell/server/accounts/email-token/token-server.js", "shell/server/admin-server.js"], "fixing_code_end_loc": [121, 1524, 203, 232], "fixing_code_... | 324 |
Determine whether the {function_name} code is vulnerable or not. | [
"import { Meteor } from \"meteor/meteor\";\nimport nodemailer from \"nodemailer\";\nimport smtpPool from \"nodemailer-smtp-pool\";",
"const Future = Npm.require(\"fibers/future\");",
"const getSmtpConfig = function () {\n const config = Settings.findOne({ _id: \"smtpConfig\" });\n return config && config.valu... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [84, 1522, 203, 231], "buggy_code_start_loc": [77, 1518, 202, 188], "filenames": ["shell/imports/server/email.js", "shell/packages/sandstorm-db/db.js", "shell/server/accounts/email-token/token-server.js", "shell/server/admin-server.js"], "fixing_code_end_loc": [121, 1524, 203, 232], "fixing_code_... | 324 |
Determine whether the {function_name} code is vulnerable or not. | [
"// Sandstorm - Personal Cloud Sandbox\n// Copyright (c) 2014 Sandstorm Development Group, Inc. and contributors\n// All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the Li... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [84, 1522, 203, 231], "buggy_code_start_loc": [77, 1518, 202, 188], "filenames": ["shell/imports/server/email.js", "shell/packages/sandstorm-db/db.js", "shell/server/accounts/email-token/token-server.js", "shell/server/admin-server.js"], "fixing_code_end_loc": [121, 1524, 203, 232], "fixing_code_... | 324 |
Determine whether the {function_name} code is vulnerable or not. | [
"// Sandstorm - Personal Cloud Sandbox\n// Copyright (c) 2014 Sandstorm Development Group, Inc. and contributors\n// All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the Li... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [84, 1522, 203, 231], "buggy_code_start_loc": [77, 1518, 202, 188], "filenames": ["shell/imports/server/email.js", "shell/packages/sandstorm-db/db.js", "shell/server/accounts/email-token/token-server.js", "shell/server/admin-server.js"], "fixing_code_end_loc": [121, 1524, 203, 232], "fixing_code_... | 324 |
Determine whether the {function_name} code is vulnerable or not. | [
"import crypto from \"crypto\";",
"import { send as sendEmail } from \"/imports/server/email.js\";",
"const Url = Npm.require(\"url\");",
"const V1_ROUNDS = 4096; // Selected to take ~5msec at creation time (2016) on a developer's laptop.\nconst V1_KEYSIZE = 32; // 256 bits / 8 bits/byte = 32 bytes\nconst V1_... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [84, 1522, 203, 231], "buggy_code_start_loc": [77, 1518, 202, 188], "filenames": ["shell/imports/server/email.js", "shell/packages/sandstorm-db/db.js", "shell/server/accounts/email-token/token-server.js", "shell/server/admin-server.js"], "fixing_code_end_loc": [121, 1524, 203, 232], "fixing_code_... | 324 |
Determine whether the {function_name} code is vulnerable or not. | [
"import crypto from \"crypto\";",
"import { send as sendEmail } from \"/imports/server/email.js\";",
"const Url = Npm.require(\"url\");",
"const V1_ROUNDS = 4096; // Selected to take ~5msec at creation time (2016) on a developer's laptop.\nconst V1_KEYSIZE = 32; // 256 bits / 8 bits/byte = 32 bytes\nconst V1_... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [84, 1522, 203, 231], "buggy_code_start_loc": [77, 1518, 202, 188], "filenames": ["shell/imports/server/email.js", "shell/packages/sandstorm-db/db.js", "shell/server/accounts/email-token/token-server.js", "shell/server/admin-server.js"], "fixing_code_end_loc": [121, 1524, 203, 232], "fixing_code_... | 324 |
Determine whether the {function_name} code is vulnerable or not. | [
"// Sandstorm - Personal Cloud Sandbox\n// Copyright (c) 2014 Sandstorm Development Group, Inc. and contributors\n// All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the Li... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [84, 1522, 203, 231], "buggy_code_start_loc": [77, 1518, 202, 188], "filenames": ["shell/imports/server/email.js", "shell/packages/sandstorm-db/db.js", "shell/server/accounts/email-token/token-server.js", "shell/server/admin-server.js"], "fixing_code_end_loc": [121, 1524, 203, 232], "fixing_code_... | 324 |
Determine whether the {function_name} code is vulnerable or not. | [
"// Sandstorm - Personal Cloud Sandbox\n// Copyright (c) 2014 Sandstorm Development Group, Inc. and contributors\n// All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the Li... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [84, 1522, 203, 231], "buggy_code_start_loc": [77, 1518, 202, 188], "filenames": ["shell/imports/server/email.js", "shell/packages/sandstorm-db/db.js", "shell/server/accounts/email-token/token-server.js", "shell/server/admin-server.js"], "fixing_code_end_loc": [121, 1524, 203, 232], "fixing_code_... | 324 |
Determine whether the {function_name} code is vulnerable or not. | [
"This file shows the changes in recent releases of MODX. The most current release is usually the\ndevelopment release, and is only shown to give an idea of what's currently in the pipeline.\n",
"",
"- Fix caching of manager menus",
"MODX Revolution 2.2.10-pl (October 7, 2013)\n================================... | [
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [4, 121, 29], "buggy_code_start_loc": [4, 55, 27], "filenames": ["core/docs/changelog.txt", "core/model/modx/modmanagerrequest.class.php", "manager/templates/default/header.tpl"], "fixing_code_end_loc": [6, 123, 29], "fixing_code_start_loc": [5, 56, 27], "message": "Cross-site scripting (XSS) vul... | 325 |
Determine whether the {function_name} code is vulnerable or not. | [
"This file shows the changes in recent releases of MODX. The most current release is usually the\ndevelopment release, and is only shown to give an idea of what's currently in the pipeline.\n",
"- Prevent XSS on actionVar in header.tpl",
"- Fix caching of manager menus",
"MODX Revolution 2.2.10-pl (October 7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [4, 121, 29], "buggy_code_start_loc": [4, 55, 27], "filenames": ["core/docs/changelog.txt", "core/model/modx/modmanagerrequest.class.php", "manager/templates/default/header.tpl"], "fixing_code_end_loc": [6, 123, 29], "fixing_code_start_loc": [5, 56, 27], "message": "Cross-site scripting (XSS) vul... | 325 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * modManagerRequest\n *\n * @package modx\n */\nrequire_once MODX_CORE_PATH . 'model/modx/modrequest.class.php';\n/**\n * Encapsulates the interaction of MODX manager with an HTTP request.\n *\n * {@inheritdoc}\n *\n * @package modx\n */\nclass modManagerRequest extends modRequest {\n /**\n * @... | [
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [4, 121, 29], "buggy_code_start_loc": [4, 55, 27], "filenames": ["core/docs/changelog.txt", "core/model/modx/modmanagerrequest.class.php", "manager/templates/default/header.tpl"], "fixing_code_end_loc": [6, 123, 29], "fixing_code_start_loc": [5, 56, 27], "message": "Cross-site scripting (XSS) vul... | 325 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?php\n/**\n * modManagerRequest\n *\n * @package modx\n */\nrequire_once MODX_CORE_PATH . 'model/modx/modrequest.class.php';\n/**\n * Encapsulates the interaction of MODX manager with an HTTP request.\n *\n * {@inheritdoc}\n *\n * @package modx\n */\nclass modManagerRequest extends modRequest {\n /**\n * @... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [4, 121, 29], "buggy_code_start_loc": [4, 55, 27], "filenames": ["core/docs/changelog.txt", "core/model/modx/modmanagerrequest.class.php", "manager/templates/default/header.tpl"], "fixing_code_end_loc": [6, 123, 29], "fixing_code_start_loc": [5, 56, 27], "message": "Cross-site scripting (XSS) vul... | 325 |
Determine whether the {function_name} code is vulnerable or not. | [
"{if $_config.manager_html5_cache EQ 1}<!DOCTYPE HTML>{else}<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">{/if}",
"<html xmlns=\"http://www.w3.org/1999/xhtml\" {if $_config.manager_direction EQ 'rtl'}dir=\"rtl\"{/if} lang=\"{$_config.manager_lang_... | [
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [4, 121, 29], "buggy_code_start_loc": [4, 55, 27], "filenames": ["core/docs/changelog.txt", "core/model/modx/modmanagerrequest.class.php", "manager/templates/default/header.tpl"], "fixing_code_end_loc": [6, 123, 29], "fixing_code_start_loc": [5, 56, 27], "message": "Cross-site scripting (XSS) vul... | 325 |
Determine whether the {function_name} code is vulnerable or not. | [
"{if $_config.manager_html5_cache EQ 1}<!DOCTYPE HTML>{else}<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">{/if}",
"<html xmlns=\"http://www.w3.org/1999/xhtml\" {if $_config.manager_direction EQ 'rtl'}dir=\"rtl\"{/if} lang=\"{$_config.manager_lang_... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [4, 121, 29], "buggy_code_start_loc": [4, 55, 27], "filenames": ["core/docs/changelog.txt", "core/model/modx/modmanagerrequest.class.php", "manager/templates/default/header.tpl"], "fixing_code_end_loc": [6, 123, 29], "fixing_code_start_loc": [5, 56, 27], "message": "Cross-site scripting (XSS) vul... | 325 |
Determine whether the {function_name} code is vulnerable or not. | [
"<!--\n###################################### READ ME ###########################################\n### This changelog should always be read on `main` branch. Its contents on version ###\n### branches do not necessarily reflect the changes that have gone into that branch. ###\n###################################... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [26, 1516, 36, 537], "buggy_code_start_loc": [26, 39, 33, 537], "filenames": ["CHANGELOG.md", "cmd/frontend/graphqlbackend/search_results.go", "dev/gqltest/README.md", "dev/gqltest/search_test.go"], "fixing_code_end_loc": [35, 1518, 36, 544], "fixing_code_start_loc": [27, 40, 33, 538], "message":... | 326 |
Determine whether the {function_name} code is vulnerable or not. | [
"<!--\n###################################### READ ME ###########################################\n### This changelog should always be read on `main` branch. Its contents on version ###\n### branches do not necessarily reflect the changes that have gone into that branch. ###\n###################################... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [26, 1516, 36, 537], "buggy_code_start_loc": [26, 39, 33, 537], "filenames": ["CHANGELOG.md", "cmd/frontend/graphqlbackend/search_results.go", "dev/gqltest/README.md", "dev/gqltest/search_test.go"], "fixing_code_end_loc": [35, 1518, 36, 544], "fixing_code_start_loc": [27, 40, 33, 538], "message":... | 326 |
Determine whether the {function_name} code is vulnerable or not. | [
"package graphqlbackend",
"import (\n\t\"context\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"math\"\n\t\"path\"\n\t\"regexp\"\n\t\"sort\"\n\t\"strconv\"\n\t\"sync\"\n\t\"time\"",
"\t\"github.com/cockroachdb/errors\"\n\t\"github.com/inconshreveable/log15\"\n\t\"github.com/neelance/parallel\"\n\t\"github.com/opentraci... | [
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [26, 1516, 36, 537], "buggy_code_start_loc": [26, 39, 33, 537], "filenames": ["CHANGELOG.md", "cmd/frontend/graphqlbackend/search_results.go", "dev/gqltest/README.md", "dev/gqltest/search_test.go"], "fixing_code_end_loc": [35, 1518, 36, 544], "fixing_code_start_loc": [27, 40, 33, 538], "message":... | 326 |
Determine whether the {function_name} code is vulnerable or not. | [
"package graphqlbackend",
"import (\n\t\"context\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"math\"\n\t\"path\"\n\t\"regexp\"\n\t\"sort\"\n\t\"strconv\"\n\t\"sync\"\n\t\"time\"",
"\t\"github.com/cockroachdb/errors\"\n\t\"github.com/inconshreveable/log15\"\n\t\"github.com/neelance/parallel\"\n\t\"github.com/opentraci... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [26, 1516, 36, 537], "buggy_code_start_loc": [26, 39, 33, 537], "filenames": ["CHANGELOG.md", "cmd/frontend/graphqlbackend/search_results.go", "dev/gqltest/README.md", "dev/gqltest/search_test.go"], "fixing_code_end_loc": [35, 1518, 36, 544], "fixing_code_start_loc": [27, 40, 33, 538], "message":... | 326 |
Determine whether the {function_name} code is vulnerable or not. | [
"# GraphQL integration tests",
"This directory contains API-based integration tests in the form of standard Go tests. It is called gqltest since most of our API is GraphQL. However, the test suite has been extended to test other endpoints such as streaming search.",
"## How to set up credentials",
"Tests use ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [26, 1516, 36, 537], "buggy_code_start_loc": [26, 39, 33, 537], "filenames": ["CHANGELOG.md", "cmd/frontend/graphqlbackend/search_results.go", "dev/gqltest/README.md", "dev/gqltest/search_test.go"], "fixing_code_end_loc": [35, 1518, 36, 544], "fixing_code_start_loc": [27, 40, 33, 538], "message":... | 326 |
Determine whether the {function_name} code is vulnerable or not. | [
"# GraphQL integration tests",
"This directory contains API-based integration tests in the form of standard Go tests. It is called gqltest since most of our API is GraphQL. However, the test suite has been extended to test other endpoints such as streaming search.",
"## How to set up credentials",
"Tests use ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [26, 1516, 36, 537], "buggy_code_start_loc": [26, 39, 33, 537], "filenames": ["CHANGELOG.md", "cmd/frontend/graphqlbackend/search_results.go", "dev/gqltest/README.md", "dev/gqltest/search_test.go"], "fixing_code_end_loc": [35, 1518, 36, 544], "fixing_code_start_loc": [27, 40, 33, 538], "message":... | 326 |
Determine whether the {function_name} code is vulnerable or not. | [
"package main",
"import (\n\t\"fmt\"\n\t\"math/rand\"\n\t\"sort\"\n\t\"strconv\"\n\t\"strings\"\n\t\"testing\"\n\t\"time\"",
"\t\"github.com/google/go-cmp/cmp\"\n\t\"github.com/stretchr/testify/require\"",
"\t\"github.com/sourcegraph/sourcegraph/internal/extsvc\"\n\t\"github.com/sourcegraph/sourcegraph/intern... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [26, 1516, 36, 537], "buggy_code_start_loc": [26, 39, 33, 537], "filenames": ["CHANGELOG.md", "cmd/frontend/graphqlbackend/search_results.go", "dev/gqltest/README.md", "dev/gqltest/search_test.go"], "fixing_code_end_loc": [35, 1518, 36, 544], "fixing_code_start_loc": [27, 40, 33, 538], "message":... | 326 |
Determine whether the {function_name} code is vulnerable or not. | [
"package main",
"import (\n\t\"fmt\"\n\t\"math/rand\"\n\t\"sort\"\n\t\"strconv\"\n\t\"strings\"\n\t\"testing\"\n\t\"time\"",
"\t\"github.com/google/go-cmp/cmp\"\n\t\"github.com/stretchr/testify/require\"",
"\t\"github.com/sourcegraph/sourcegraph/internal/extsvc\"\n\t\"github.com/sourcegraph/sourcegraph/intern... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [26, 1516, 36, 537], "buggy_code_start_loc": [26, 39, 33, 537], "filenames": ["CHANGELOG.md", "cmd/frontend/graphqlbackend/search_results.go", "dev/gqltest/README.md", "dev/gqltest/search_test.go"], "fixing_code_end_loc": [35, 1518, 36, 544], "fixing_code_start_loc": [27, 40, 33, 538], "message":... | 326 |
Determine whether the {function_name} code is vulnerable or not. | [
"import base64\nimport logging\nimport pathlib\nimport uuid",
"from django.conf import settings",
"",
"from django.utils.functional import cached_property\nfrom storages.utils import safe_join",
"from s3file.storages import storage",
"logger = logging.getLogger(\"s3file\")",
"\nclass S3FileInputMixin:\n... | [
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"import base64\nimport logging\nimport pathlib\nimport uuid",
"from django.conf import settings",
"from django.core import signing",
"from django.utils.functional import cached_property\nfrom storages.utils import safe_join",
"from s3file.storages import storage",
"logger = logging.getLogger(\"s3file\")",... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"import logging\nimport pathlib\n",
"from s3file.storages import local_dev, storage",
"\nfrom . import views",
"",
"\nlogger = logging.getLogger(\"s3file\")",
"\nclass S3FileMiddleware:\n def __init__(self, get_response):\n self.get_response = get_response",
" def __call__(self, request):\n... | [
1,
0,
1,
0,
1,
1,
1,
0,
1,
0,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"import logging\nimport pathlib\n",
"from django.core import signing\nfrom django.core.exceptions import PermissionDenied, SuspiciousFileOperation\nfrom django.utils.crypto import constant_time_compare",
"\nfrom . import views",
"from .forms import S3FileInputMixin\nfrom .storages import local_dev, storage",
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"'use strict';",
"(function () {\n function parseURL (text) {\n var xml = new window.DOMParser().parseFromString(text, 'text/xml')\n var tag = xml.getElementsByTagName('Key')[0]\n return decodeURI(tag.childNodes[0].nodeValue)\n }",
" function waitForAllFiles (form) {\n if (window.uploading !== 0)... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"'use strict';",
"(function () {\n function parseURL (text) {\n var xml = new window.DOMParser().parseFromString(text, 'text/xml')\n var tag = xml.getElementsByTagName('Key')[0]\n return decodeURI(tag.childNodes[0].nodeValue)\n }",
" function waitForAllFiles (form) {\n if (window.uploading !== 0)... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"import base64\nimport hashlib\nimport hmac\nimport logging",
"",
"\nfrom django import http\nfrom django.conf import settings\nfrom django.core.files.storage import default_storage\nfrom django.views import generic",
"logger = logging.getLogger(\"s3file\")",
"\nclass S3MockView(generic.View):\n def post... | [
1,
0,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"import base64\nimport hashlib\nimport hmac\nimport logging",
"from pathlib import Path",
"\nfrom django import http\nfrom django.conf import settings\nfrom django.core.files.storage import default_storage\nfrom django.views import generic",
"logger = logging.getLogger(\"s3file\")",
"\nclass S3MockView(gene... | [
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"import os",
"import tempfile",
"",
"\nimport pytest\nfrom django.core.files.base import ContentFile\nfrom django.utils.encoding import force_str\nfrom selenium import webdriver\nfrom selenium.common.exceptions import WebDriverException",
"",
"",
"@pytest.fixture(scope=\"session\")\ndef driver():\n c... | [
0,
1,
0,
1,
0,
1,
1,
1,
0,
1,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"",
"import tempfile",
"from pathlib import Path",
"\nimport pytest\nfrom django.core.files.base import ContentFile\nfrom django.utils.encoding import force_str\nfrom selenium import webdriver\nfrom selenium.common.exceptions import WebDriverException",
"\nfrom s3file.storages import storage",
"",
"@pyt... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"import json\nimport os\nfrom contextlib import contextmanager",
"import pytest\nfrom django.forms import ClearableFileInput\nfrom selenium.common.exceptions import NoSuchElementException\nfrom selenium.webdriver.common.by import By\nfrom selenium.webdriver.support.expected_conditions import staleness_of\nfrom se... | [
1,
1,
1,
1,
1,
1,
0,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
0,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"import json\nimport os\nfrom contextlib import contextmanager",
"import pytest\nfrom django.forms import ClearableFileInput\nfrom selenium.common.exceptions import NoSuchElementException\nfrom selenium.webdriver.common.by import By\nfrom selenium.webdriver.support.expected_conditions import staleness_of\nfrom se... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"import os\n",
"",
"from django.core.files.base import ContentFile\nfrom django.core.files.uploadedfile import SimpleUploadedFile",
"from s3file.middleware import S3FileMiddleware\nfrom s3file.storages import storage",
"\nclass TestS3FileMiddleware:",
" def test_get_files_from_storage(self):",
" ... | [
1,
0,
1,
1,
1,
0,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
0
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"import os\n",
"import pytest\nfrom django.core.exceptions import PermissionDenied, SuspiciousFileOperation",
"from django.core.files.base import ContentFile\nfrom django.core.files.uploadedfile import SimpleUploadedFile",
"from s3file.middleware import S3FileMiddleware\nfrom s3file.storages import storage",
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [47, 37, 96, 4, 49, 215, 80], "buggy_code_start_loc": [6, 4, 96, 4, 1, 34, 2], "filenames": ["s3file/forms.py", "s3file/middleware.py", "s3file/static/s3file/js/s3file.js", "s3file/views.py", "tests/conftest.py", "tests/test_forms.py", "tests/test_middleware.py"], "fixing_code_end_loc": [58, 66, ... | 327 |
Determine whether the {function_name} code is vulnerable or not. | [
"__author__ = \"Gina Häußge <osd@foosel.net>\"\n__license__ = \"GNU Affero General Public License http://www.gnu.org/licenses/agpl.html\"\n__copyright__ = \"Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License\"",
"import copy\nimport logging\nimport os\nimport shutil\nfrom contex... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [984, 842, 1177], "buggy_code_start_loc": [956, 42, 1141], "filenames": ["src/octoprint/filemanager/storage.py", "src/octoprint/server/__init__.py", "src/octoprint/server/api/files.py"], "fixing_code_end_loc": [997, 854, 1190], "fixing_code_start_loc": [957, 43, 1141], "message": "Unrestricted Up... | 328 |
Determine whether the {function_name} code is vulnerable or not. | [
"__author__ = \"Gina Häußge <osd@foosel.net>\"\n__license__ = \"GNU Affero General Public License http://www.gnu.org/licenses/agpl.html\"\n__copyright__ = \"Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License\"",
"import copy\nimport logging\nimport os\nimport shutil\nfrom contex... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [984, 842, 1177], "buggy_code_start_loc": [956, 42, 1141], "filenames": ["src/octoprint/filemanager/storage.py", "src/octoprint/server/__init__.py", "src/octoprint/server/api/files.py"], "fixing_code_end_loc": [997, 854, 1190], "fixing_code_start_loc": [957, 43, 1141], "message": "Unrestricted Up... | 328 |
Determine whether the {function_name} code is vulnerable or not. | [
"__author__ = \"Gina Häußge <osd@foosel.net>\"\n__license__ = \"GNU Affero General Public License http://www.gnu.org/licenses/agpl.html\"\n__copyright__ = \"Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License\"",
"import atexit\nimport base64\nimport functools\nimport logging\nim... | [
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [984, 842, 1177], "buggy_code_start_loc": [956, 42, 1141], "filenames": ["src/octoprint/filemanager/storage.py", "src/octoprint/server/__init__.py", "src/octoprint/server/api/files.py"], "fixing_code_end_loc": [997, 854, 1190], "fixing_code_start_loc": [957, 43, 1141], "message": "Unrestricted Up... | 328 |
Determine whether the {function_name} code is vulnerable or not. | [
"__author__ = \"Gina Häußge <osd@foosel.net>\"\n__license__ = \"GNU Affero General Public License http://www.gnu.org/licenses/agpl.html\"\n__copyright__ = \"Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License\"",
"import atexit\nimport base64\nimport functools\nimport logging\nim... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [984, 842, 1177], "buggy_code_start_loc": [956, 42, 1141], "filenames": ["src/octoprint/filemanager/storage.py", "src/octoprint/server/__init__.py", "src/octoprint/server/api/files.py"], "fixing_code_end_loc": [997, 854, 1190], "fixing_code_start_loc": [957, 43, 1141], "message": "Unrestricted Up... | 328 |
Determine whether the {function_name} code is vulnerable or not. | [
"__author__ = \"Gina Häußge <osd@foosel.net>\"\n__license__ = \"GNU Affero General Public License http://www.gnu.org/licenses/agpl.html\"\n__copyright__ = \"Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License\"",
"import hashlib\nimport logging\nimport os\nimport threading\nfrom ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [984, 842, 1177], "buggy_code_start_loc": [956, 42, 1141], "filenames": ["src/octoprint/filemanager/storage.py", "src/octoprint/server/__init__.py", "src/octoprint/server/api/files.py"], "fixing_code_end_loc": [997, 854, 1190], "fixing_code_start_loc": [957, 43, 1141], "message": "Unrestricted Up... | 328 |
Determine whether the {function_name} code is vulnerable or not. | [
"__author__ = \"Gina Häußge <osd@foosel.net>\"\n__license__ = \"GNU Affero General Public License http://www.gnu.org/licenses/agpl.html\"\n__copyright__ = \"Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License\"",
"import hashlib\nimport logging\nimport os\nimport threading\nfrom ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [984, 842, 1177], "buggy_code_start_loc": [956, 42, 1141], "filenames": ["src/octoprint/filemanager/storage.py", "src/octoprint/server/__init__.py", "src/octoprint/server/api/files.py"], "fixing_code_end_loc": [997, 854, 1190], "fixing_code_start_loc": [957, 43, 1141], "message": "Unrestricted Up... | 328 |
Determine whether the {function_name} code is vulnerable or not. | [
"package io.metersphere.gateway.filter;",
"import org.apache.commons.lang3.StringUtils;\nimport org.springframework.beans.factory.annotation.Value;\nimport org.springframework.cloud.client.discovery.DiscoveryClient;\nimport org.springframework.cloud.gateway.support.ServerWebExchangeUtils;\nimport org.springframew... | [
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Determine whether the {function_name} code is vulnerable or not. | [
"package io.metersphere.gateway.filter;",
"import org.apache.commons.lang3.StringUtils;\nimport org.springframework.beans.factory.annotation.Value;\nimport org.springframework.cloud.client.discovery.DiscoveryClient;\nimport org.springframework.cloud.gateway.support.ServerWebExchangeUtils;\nimport org.springframew... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Determine whether the {function_name} code is vulnerable or not. | [
"package io.metersphere.xpack.track.issue;",
"import io.metersphere.base.domain.IssuesWithBLOBs;\nimport io.metersphere.base.domain.Project;\nimport io.metersphere.dto.UserDTO;\nimport io.metersphere.xpack.track.dto.*;\nimport io.metersphere.xpack.track.dto.request.IssuesRequest;\nimport io.metersphere.xpack.trac... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Determine whether the {function_name} code is vulnerable or not. | [
"package io.metersphere.xpack.track.issue;",
"import io.metersphere.base.domain.IssuesWithBLOBs;\nimport io.metersphere.base.domain.Project;\nimport io.metersphere.dto.UserDTO;\nimport io.metersphere.xpack.track.dto.*;\nimport io.metersphere.xpack.track.dto.request.IssuesRequest;\nimport io.metersphere.xpack.trac... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd\">\n <modelVersion>4.0.0</modelVersion>",
" ... | [
1,
1,
1,
1,
0,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Determine whether the {function_name} code is vulnerable or not. | [
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd\">\n <modelVersion>4.0.0</modelVersion>",
" ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Determine whether the {function_name} code is vulnerable or not. | [
"package io.metersphere.controller;",
"import io.metersphere.service.wapper.IssueProxyResourceService;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.a... | [
1,
1,
1,
1,
0,
1
] | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Determine whether the {function_name} code is vulnerable or not. | [
"package io.metersphere.controller;",
"import io.metersphere.service.wapper.IssueProxyResourceService;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.a... | [
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Determine whether the {function_name} code is vulnerable or not. | [
"package io.metersphere.service;",
"import com.alibaba.excel.EasyExcelFactory;\nimport com.alibaba.excel.util.DateUtils;\nimport com.alibaba.fastjson.JSONArray;\nimport com.alibaba.fastjson.JSONObject;\nimport com.github.pagehelper.Page;\nimport com.github.pagehelper.PageHelper;\nimport io.metersphere.base.domain... | [
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Determine whether the {function_name} code is vulnerable or not. | [
"package io.metersphere.service;",
"import com.alibaba.excel.EasyExcelFactory;\nimport com.alibaba.excel.util.DateUtils;\nimport com.alibaba.fastjson.JSONArray;\nimport com.alibaba.fastjson.JSONObject;\nimport com.github.pagehelper.Page;\nimport com.github.pagehelper.PageHelper;\nimport io.metersphere.base.domain... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Determine whether the {function_name} code is vulnerable or not. | [
"package io.metersphere.service;",
"import io.metersphere.commons.constants.IssuesManagePlatform;\nimport io.metersphere.commons.exception.MSException;\nimport io.metersphere.commons.utils.JSON;\nimport io.metersphere.i18n.Translator;\nimport io.metersphere.platform.api.Platform;\nimport io.metersphere.platform.a... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Determine whether the {function_name} code is vulnerable or not. | [
"package io.metersphere.service;",
"import io.metersphere.commons.constants.IssuesManagePlatform;\nimport io.metersphere.commons.exception.MSException;\nimport io.metersphere.commons.utils.JSON;\nimport io.metersphere.i18n.Translator;\nimport io.metersphere.platform.api.Platform;\nimport io.metersphere.platform.a... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | PreciseBugs | {"buggy_code_end_loc": [25, 113, 27, 22, 821, 90, 246, 337, 684, 42], "buggy_code_start_loc": [24, 109, 26, 18, 62, 90, 7, 9, 495, 3], "filenames": ["framework/gateway/src/main/java/io/metersphere/gateway/filter/SessionFilter.java", "framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/issue/Is... | 329 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.