file_name
int64
0
72.3k
vulnerable_line_numbers
stringlengths
1
1.06k
dataset_type
stringclasses
1 value
commit_hash
stringlengths
40
44
unique_id
int64
0
271k
project
stringclasses
10 values
target
int64
0
1
repo_url
stringclasses
10 values
date
stringlengths
25
25
code
stringlengths
0
20.4M
CVE
stringlengths
13
43
CWE
stringclasses
50 values
commit_link
stringlengths
73
97
severity
stringclasses
4 values
__index_level_0__
int64
0
124k
37,692
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
202,687
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#include "util/util.h" #include "builtin.h" #include "perf.h" int cmd_version(int argc __maybe_unused, const char **argv __maybe_unused, const char *prefix __maybe_unused) { printf("perf version %s\n", perf_version_string); return 0; }
null
null
null
null
111,034
20,512
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
185,507
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* Intel(R) Ethernet Switch Host Interface Driver * Copyright(c) 2013 - 2016 Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This progr...
null
null
null
null
93,854
13,355
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
13,355
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_HANDOFF_PREF_NAMES_IOS_H_ #define COMPONENTS_HANDOFF_PREF_NAMES_IOS_H_ namespace prefs { extern const char kIosHandoffToOtherDevices[...
null
null
null
null
10,218
504
null
train_val
1b0d3845b454eaaac0b2064c78926ca4d739a080
263,072
qemu
0
https://github.com/bonzini/qemu
2016-10-18 11:40:27+01:00
/* * QTest testcase for ES1370 * * Copyright (c) 2014 SUSE LINUX Products GmbH * * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" #include "libqtest.h" /* Tests only initialization so far. TODO: Replace wit...
null
null
null
null
121,196
68,393
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
68,393
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "remoting/host/audio_silence_detector.h" #include <stdint.h> #include "base/macros.h" #include "testing/gtest/include/gtest/gtest.h" names...
null
null
null
null
65,256
1,970
null
train_val
1b0d3845b454eaaac0b2064c78926ca4d739a080
264,538
qemu
0
https://github.com/bonzini/qemu
2016-10-18 11:40:27+01:00
/* * TI OMAP2 32kHz sync timer emulation. * * Copyright (C) 2007-2008 Nokia Corporation * Written by Andrzej Zaborowski <andrew@openedhand.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foun...
null
null
null
null
122,662
574
null
train_val
a6802e21d824e786d1e2a8440cf749a6e1a8d95f
160,702
ImageMagick
0
https://github.com/ImageMagick/ImageMagick
2017-07-18 18:28:29-04:00
// This may look like C code, but it is really -*- C++ -*- // // Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002 // Copyright Dirk Lemstra 2014 // // Representation of a pixel view. // #if !defined(Magick_Pixels_header) #define Magick_Pixels_header #include "Magick++/Include.h" #include "Magick++/Color.h" #include ...
null
null
null
null
72,995
26,114
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
191,109
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright 2014 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, m...
null
null
null
null
99,456
332
null
train_val
1b0d3845b454eaaac0b2064c78926ca4d739a080
262,900
qemu
0
https://github.com/bonzini/qemu
2016-10-18 11:40:27+01:00
#ifndef M68K_TARGET_SYSCALL_H #define M68K_TARGET_SYSCALL_H /* this struct defines the way the registers are stored on the stack during a system call. */ struct target_pt_regs { abi_long d1, d2, d3, d4, d5, d6, d7; abi_long a0, a1, a2, a3, a4, a5, a6; abi_ulong d0; abi_ulong usp; abi_ulong orig...
null
null
null
null
121,024
24,416
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
24,416
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COCOA_H_ #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COCOA_H_ #import <Co...
null
null
null
null
21,279
2,449
null
train_val
04b570817b2b38e35675b17328239746212f4c3f
155,506
FFmpeg
0
https://github.com/FFmpeg/FFmpeg
2018-06-01 01:23:12+05:30
/* * Common code between the AC-3 encoder and decoder * Copyright (c) 2000 Fabrice Bellard * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * v...
null
null
null
null
71,561
39,664
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
39,664
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright (C) 2011 Ericsson AB. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
null
null
null
null
36,527
3,078
null
train_val
04b570817b2b38e35675b17328239746212f4c3f
156,135
FFmpeg
0
https://github.com/FFmpeg/FFmpeg
2018-06-01 01:23:12+05:30
/* * Copyright (c) 2008 Jaikrishnan Menon <realityman@gmx.net> * Copyright (c) 2010 Peter Ross <pross@xvid.org> * Copyright (c) 2010 Sebastian Vater <cdgs.basty@googlemail.com> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Les...
null
null
null
null
72,190
44,475
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
44,475
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PPAPI_HOST_INSTANCE_MESSAGE_FILTER_H_ #define PPAPI_HOST_INSTANCE_MESSAGE_FILTER_H_ #include "base/macros.h" #include "ppapi/host/ppapi_host_...
null
null
null
null
41,338
37,849
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
37,849
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright (C) 2008, 2012 Apple Computer, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this lis...
null
null
null
null
34,712
63,774
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
63,774
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_WEBUI_INVALIDATIONS_UI_H_ #define CHROME_BROWSER_UI_WEBUI_INVALIDATIONS_UI_H_ #include "base/macros.h" #include "content/public...
null
null
null
null
60,637
28,466
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
193,461
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* p80211conv.h * * Ether/802.11 conversions and packet buffer routines * * Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. * -------------------------------------------------------------------- * * linux-wlan * * The contents of this file are subject to the Mozilla Public * License V...
null
null
null
null
101,808
26,050
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
191,045
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright 2015 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, m...
null
null
null
null
99,392
6,970
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
6,970
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_QUIC_CHROMIUM_QUIC_SESSION_KEY_H_ #define NET_QUIC_CHROMIUM_QUIC_SESSION_KEY_H_ #include "net/quic/core/quic_server_id.h" #include "net/socke...
null
null
null
null
3,833
23,661
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
188,656
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * linux/drivers/video/riva/fbdev-i2c.c - nVidia i2c * * Maintained by Ani Joshi <ajoshi@shell.unixbox.com> * * Copyright 2004 Antonino A. Daplas <adaplas @pol.net> * * Based on radeonfb-i2c.c * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in ...
null
null
null
null
97,003
1,751
null
train_val
04b570817b2b38e35675b17328239746212f4c3f
154,808
FFmpeg
0
https://github.com/FFmpeg/FFmpeg
2018-06-01 01:23:12+05:30
/* * AC-3 tables * copyright (c) 2001 Fabrice Bellard * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at you...
null
null
null
null
70,863
5,200
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
170,195
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Apple Onboard Audio GPIO definitions * * Copyright 2006 Johannes Berg <johannes@sipsolutions.net> * * GPL v2, can be found in COPYING. */ #ifndef __AOA_GPIO_H #define __AOA_GPIO_H #include <linux/workqueue.h> #include <linux/mutex.h> #include <asm/prom.h> typedef void (*notify_func_t)(void *data); enum no...
null
null
null
null
78,542
14,409
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
179,404
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#ifndef __iop_fifo_out_extra_defs_h #define __iop_fifo_out_extra_defs_h /* * This file is autogenerated from * file: ../../inst/io_proc/rtl/iop_fifo_out_extra.r * id: <not found> * last modfied: Mon Apr 11 16:10:10 2005 * * by /n/asic/design/tools/rdesc/src/rdes2c --outfile iop_fi...
null
null
null
null
87,751
2,744
null
train_val
1b0d3845b454eaaac0b2064c78926ca4d739a080
265,312
qemu
0
https://github.com/bonzini/qemu
2016-10-18 11:40:27+01:00
/* * QEMU KVM support * * Copyright (C) 2006-2008 Qumranet Technologies * Copyright IBM, Corp. 2008 * * Authors: * Anthony Liguori <aliguori@us.ibm.com> * * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. * */ #include "qemu/os...
null
null
null
null
123,436
14,520
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
14,520
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_SLICE_INFO_H_ #define COMPONENTS_HISTORY_CORE_BROWSER_DOWNLOAD_SLICE_INFO_H_ #include <stdint.h> #includ...
null
null
null
null
11,383
38,191
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
38,191
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright (C) 2009 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
null
null
null
null
35,054
28,736
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
193,731
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright (C) 2014 NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/of.h> #include <soc/tegra/common.h> stat...
null
null
null
null
102,078
41,681
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
206,676
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * This is used to for host and peripheral modes of the driver for * Inventra (Multidrop) Highspeed Dual-Role Controllers: (M)HDRC. * * Board initialization should put one of these into dev->platform_data, * probably on some platform_device named "musb-hdrc". It encapsulates * key configuration differences be...
null
null
null
null
115,023
962
13,16,17
train_val
54d83fc74aa9ec72794373cb47432c5f7fb1a309
165,957
linux
1
https://github.com/torvalds/linux
2016-03-28 17:59:15+02:00
get_chainname_rulenum(const struct ip6t_entry *s, const struct ip6t_entry *e, const char *hookname, const char **chainname, const char **comment, unsigned int *rulenum) { const struct xt_standard_target *t = (void *)ip6t_get_target_c(s); if (strcmp(t->target.u.kernel.target->name, XT_ERROR_TARGET) == 0) { /* Head of u...
CVE-2016-3134
CWE-119
https://github.com/torvalds/linux/commit/54d83fc74aa9ec72794373cb47432c5f7fb1a309
Low
3,851
23,230
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
23,230
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/background_fetch/storage/delete_registration_task.h" #include <utility> #include "content/browser/background_fetch/background_...
null
null
null
null
20,093
44,682
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
44,682
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PPAPI_PROXY_LOCKING_RESOURCE_RELEASER_H_ #define PPAPI_PROXY_LOCKING_RESOURCE_RELEASER_H_ #include "base/macros.h" #include "ppapi/shared_imp...
null
null
null
null
41,545
17,313
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
182,308
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in ...
null
null
null
null
90,655
54,404
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
54,404
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/command_line.h" #include "base/test/launcher/test_launcher.h" #include "chrome/test/base/chrome_test_launcher.h" #include "chrome/test/base...
null
null
null
null
51,267
51,516
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
51,516
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/keyboard/keyboard_util.h" #include "base/macros.h" #include "base/memory/ptr_util.h" #include "testing/gtest/include/gtest/gtest.h" #inc...
null
null
null
null
48,379
1,088
null
train_val
04b570817b2b38e35675b17328239746212f4c3f
154,145
FFmpeg
0
https://github.com/FFmpeg/FFmpeg
2018-06-01 01:23:12+05:30
/* * DivX (XSUB) subtitle encoder * Copyright (c) 2005 DivX, Inc. * Copyright (c) 2009 Bjorn Axelsson * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation;...
null
null
null
null
70,200
49,964
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
49,964
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/platform_window_defaults.h" namespace ui { namespace { bool g_use_test_config = false; } // namespace bool UseTestConfigForPlatform...
null
null
null
null
46,827
58,296
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
58,296
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/strings/nullable_string16.h" #include "base/strings/string16.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_con...
null
null
null
null
55,159
20,383
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
185,378
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/******************************************************************************* * * Intel Ethernet Controller XL710 Family Linux Driver * Copyright(c) 2013 - 2015 Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Pub...
null
null
null
null
93,725
53,323
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
53,323
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdint.h> #include "media/filters/h264_bitstream_buffer.h" #include "testing/gtest/include/gtest/gtest.h" namespace media { namespace { const...
null
null
null
null
50,186
39,371
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
39,371
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright (C) 2013 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
null
null
null
null
36,234
18,570
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
18,570
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_DECISION_H_ #define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_DECISION_H_ namespa...
null
null
null
null
15,433
24,783
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
189,778
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright 2012 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, d...
null
null
null
null
98,125
38,340
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
203,335
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright 2014, Michael Ellerman, IBM Corp. * Licensed under GPLv2. */ #include <stdio.h> #include <stdlib.h> #include "ebb.h" /* * Test basic access to the EBB regs, they should be user accessible with no * kernel interaction required. */ int reg_access(void) { uint64_t val, expected; SKIP_IF(!ebb_is...
null
null
null
null
111,682
24,673
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
189,668
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright 2012 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, d...
null
null
null
null
98,015
25,207
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
25,207
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_UTIL_H_ #define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_MESSAGE_UTIL_H_ #include <set> #include...
null
null
null
null
22,070
19,915
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
19,915
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/public/test/test_browser_thread.h" #include "base/macros.h" #include "base/memory/ptr_util.h" #include "base/message_loop/message_l...
null
null
null
null
16,778
970
2,3,5
train_val
116d0963cadfbf55ef2ec3d13781987c4d80517a
970
Chrome
1
https://github.com/chromium/chromium
2012-08-24 23:22:28+00:00
int GetAvailableDraftPageCount() { int page_data_map_size = page_data_map_.size(); if (page_data_map_.find(printing::COMPLETE_PREVIEW_DOCUMENT_INDEX) != page_data_map_.end()) { page_data_map_size--; } return page_data_map_size; }
CVE-2012-2891
CWE-200
https://github.com/chromium/chromium/commit/116d0963cadfbf55ef2ec3d13781987c4d80517a
Low
970
32,394
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
32,394
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "build/build_config.h" #include "third_party/blink/public/platform/platform.h" #include "third_party/blink/public/platform/scheduler/test/rendere...
null
null
null
null
29,257
39,943
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
204,938
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * security/tomoyo/tomoyo.c * * Copyright (C) 2005-2011 NTT DATA CORPORATION */ #include <linux/lsm_hooks.h> #include "common.h" /** * tomoyo_cred_alloc_blank - Target for security_cred_alloc_blank(). * * @new: Pointer to "struct cred". * @gfp: Memory allocation flags. * * Returns 0. */ static int tomoy...
null
null
null
null
113,285
6,784
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
6,784
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/proxy_resolution/proxy_resolver_v8.h" #include "base/compiler_specific.h" #include "base/files/file_util.h" #include "base/path_service....
null
null
null
null
3,647
25,361
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
25,361
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "extensions/browser/extension_api_frame_id_map.h" #include <tuple> #include <utility> #include "base/logging.h" #include "base/metrics/histogra...
null
null
null
null
22,224
977
28
train_val
ce683e5f9d045e5d67d1312a42b359cb2ab2a13c
165,972
linux
1
https://github.com/torvalds/linux
2016-04-14 00:30:37+02:00
static inline int check_entry_size_and_hooks(struct arpt_entry *e, struct xt_table_info *newinfo, const unsigned char *base, const unsigned char *limit, const unsigned int *hook_entries, const unsigned int *underflows, unsigned int valid_hooks) { unsigned int h; int err; if ((unsigned long)e % __alignof__(struct arpt_...
CVE-2016-4997
CWE-264
https://github.com/torvalds/linux/commit/ce683e5f9d045e5d67d1312a42b359cb2ab2a13c
Low
3,866
32,821
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
32,821
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright (C) 2007 Eric Seidel <eric@webkit.org> * Copyright (C) 2008 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of ...
null
null
null
null
29,684
44,709
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
44,709
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PPAPI_PROXY_GAMEPAD_RESOURCE_H_ #define PPAPI_PROXY_GAMEPAD_RESOURCE_H_ #include <memory> #include "base/compiler_specific.h" #include "base...
null
null
null
null
41,572
38,777
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
38,777
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_AUDIO_OUTPUT_DEVICES_SET_SINK_ID_CALLBACKS_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_AUDIO_OUTPUT_DEVICES_S...
null
null
null
null
35,640
19,543
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
184,538
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Driver for CC770 and AN82527 CAN controllers on the legacy ISA bus * * Copyright (C) 2009, 2011 Wolfgang Grandegger <wg@grandegger.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the version 2 of the GNU General Public License * as published by the Free ...
null
null
null
null
92,885
15,194
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
180,189
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2013 Cavium, Inc. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/pci.h>...
null
null
null
null
88,536
43,452
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
208,447
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * linux/can.h * * Definitions for CAN network layer (socket addr / CAN frame / CAN filter) * * Authors: Oliver Hartkopp <oliver.hartkopp@volkswagen.de> * Urs Thuermann <urs.thuermann@volkswagen.de> * Copyright (c) 2002-2007 Volkswagen Group Electronic Research * All rights reserved. * * Redistri...
null
null
null
null
116,794
11,332
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
11,332
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "gpu/command_buffer/client/client_context_state.h" #include "base/logging.h" namespace gpu { namespace gles2 { ClientContextState::ClientC...
null
null
null
null
8,195
4,343
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
4,343
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_SERVICE_FACTORY_H_ #define IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_SERVICE_FACTORY_H_ #in...
null
null
null
null
1,206
9,580
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
9,580
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/nqe/network_id.h" #include <string> #include "base/strings/string_number_conversions.h" #include "net/base/network_change_notifier.h" #inc...
null
null
null
null
6,443
55,717
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
55,717
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/image_decoder.h" #include <utility> #include "base/bind.h" #include "base/callback.h" #include "base/threading/thread_task_...
null
null
null
null
52,580
30,092
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
30,092
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// // File: vk_platform.h // /* ** Copyright (c) 2014-2017 The Khronos Group Inc. ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** *...
null
null
null
null
26,955
18,030
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
183,025
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright(c) 2016 Intel Corporation. * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 o...
null
null
null
null
91,372
48,824
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
48,824
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_GL_GL_SWITCHES_UTIL_H_ #define UI_GL_GL_SWITCHES_UTIL_H_ #include "ui/gl/gl_export.h" namespace gl { GL_EXPORT bool IsPresentationCallbackEn...
null
null
null
null
45,687
12,760
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
12,760
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_UPDATE_CLIENT_ACTION_RUNNER_H_ #define COMPONENTS_UPDATE_CLIENT_ACTION_RUNNER_H_ #include <stdint.h> #include <memory> #include <util...
null
null
null
null
9,623
68,755
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
68,755
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_BASE_RUNNING_SAMPLES_H_ #define REMOTING_BASE_RUNNING_SAMPLES_H_ #include <stddef.h> #include <stdint.h> #include "base/containers/circ...
null
null
null
null
65,618
14,617
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
14,617
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/history/core/browser/download_types.h" #include <ostream> #include "base/logging.h" #include "components/history/core/browser/downl...
null
null
null
null
11,480
34,755
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
199,750
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* dvb-usb.h is part of the DVB USB library. * * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de) * see dvb-usb-init.c for copyright information. * * the headerfile, all dvb-usb-drivers have to include. * * TODO: clean-up the structures for unused fields and update the comments */ #ifndef __...
null
null
null
null
108,097
18,381
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
18,381
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_DOWNLOAD_INTERNAL_BACKGROUND_SERVICE_CONTROLLER_H_ #define COMPONENTS_DOWNLOAD_INTERNAL_BACKGROUND_SERVICE_CONTROLLER_H_ #include <str...
null
null
null
null
15,244
61,725
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
61,725
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ssl/certificate_error_reporter.h" #include <stdint.h> #include <string.h> #include <set> #include <string> #include "base/bind...
null
null
null
null
58,588
1,917
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
166,912
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/workqueue.h> #include <linux/rtnetlink.h> #include <linux/cache.h> #include <linux/slab.h> #include <linux/list.h> #include <linux/delay.h> #include <linux/sched.h> #include <linux/idr.h> #include <linux/rculist.h> #include <linux/nsproxy.h> #include <linux/f...
null
null
null
null
75,260
10,981
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
175,976
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * apb.h: Advanced PCI Bridge Configuration Registers and Bits * * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be) */ #ifndef _SPARC64_APB_H #define _SPARC64_APB_H #define APB_TICK_REGISTER 0xb0 #define APB_INT_ACK 0xb8 #define APB_PRIMARY_MASTER_RETRY_LIMIT 0xc0 #define APB_DMA_ASFR 0xc8 #define AP...
null
null
null
null
84,323
27,567
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
27,567
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the Chromium LICENSE file. #ifndef TESTS_TIMING_H #define TESTS_TIMING_H #include <assert.h> #if defined(_WIN32) #include <windows.h> #else #include <sys/time.h> #endif #i...
null
null
null
null
24,430
56,802
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
56,802
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_SMB_CLIENT_DISCOVERY_MDNS_HOST_LOCATOR_H_ #define CHROME_BROWSER_CHROMEOS_SMB_CLIENT_DISCOVERY_MDNS_HOST_LOCATOR_H_ #incl...
null
null
null
null
53,665
30,437
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
30,437
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright (C) 2009 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
null
null
null
null
27,300
51,805
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
51,805
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_MOJO_SERVICES_MOJO_PROVISION_FETCHER_H_ #define MEDIA_MOJO_SERVICES_MOJO_PROVISION_FETCHER_H_ #include "base/compiler_specific.h" #include ...
null
null
null
null
48,668
25,430
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
190,425
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in ...
null
null
null
null
98,772
40,016
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
205,011
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#undef TRACE_SYSTEM #define TRACE_SYSTEM rcu #if !defined(_TRACE_RCU_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_RCU_H #include <linux/tracepoint.h> /* * Tracepoint for start/end markers used for utilization calculations. * By convention, the string is of the following forms: * * "Start <activity>" -- ...
null
null
null
null
113,358
34,785
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
199,780
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* dvb-usb-i2c.c is part of the DVB USB library. * * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de) * see dvb-usb-init.c for copyright information. * * This file contains functions for (de-)initializing an I2C adapter. */ #include "dvb-usb-common.h" int dvb_usb_i2c_init(struct dvb_usb_devic...
null
null
null
null
108,127
22,344
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
22,344
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stddef.h> #include <stdint.h> #include "base/files/file_util.h" #include "base/location.h" #include "base/macros.h" #include "base/message_loop...
null
null
null
null
19,207
65,130
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
65,130
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_ZOOM_CHROME_ZOOM_LEVEL_PREFS_H_ #define CHROME_BROWSER_UI_ZOOM_CHROME_ZOOM_LEVEL_PREFS_H_ #include "base/callback.h" #include "...
null
null
null
null
61,993
47,107
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
47,107
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CC_TEST_TEST_LAYER_TREE_HOST_BASE_H_ #define CC_TEST_TEST_LAYER_TREE_HOST_BASE_H_ #include <memory> #include "cc/test/fake_impl_task_runner_prov...
null
null
null
null
43,970
34,560
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
34,560
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
/* * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
null
null
null
null
31,423
31,916
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
31,916
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/css/properties/longhands/object_position.h" #include "third_party/blink/renderer/core/css/css_value_pair.h" #in...
null
null
null
null
28,779
64,139
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
64,139
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/webui/media_router/media_router_web_ui_test.h" #include "chrome/browser/media/router/media_router_factory.h" #include "chrome...
null
null
null
null
61,002
20,336
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
185,331
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#ifndef FS_ENET_H #define FS_ENET_H #include <linux/mii.h> #include <linux/netdevice.h> #include <linux/types.h> #include <linux/list.h> #include <linux/phy.h> #include <linux/dma-mapping.h> #include <linux/fs_enet_pd.h> #include <asm/fs_pd.h> #ifdef CONFIG_CPM1 #include <asm/cpm1.h> #endif #if defined(CONFIG_FS_EN...
null
null
null
null
93,678
22,523
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
22,523
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SERVICE_IMPL_H_ #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_SERVICE_IMPL_H_ #include ...
null
null
null
null
19,386
24,058
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
189,053
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright ? 2006-2007 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge...
null
null
null
null
97,400
32,891
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
197,886
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* * Copyright (C) 2014, Samsung Electronics Co. Ltd. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any...
null
null
null
null
106,233
8,278
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
173,273
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#ifndef _ASM_X86_STAT_H #define _ASM_X86_STAT_H #include <asm/posix_types.h> #define STAT_HAVE_NSEC 1 #ifdef __i386__ struct stat { unsigned long st_dev; unsigned long st_ino; unsigned short st_mode; unsigned short st_nlink; unsigned short st_uid; unsigned short st_gid; unsigned long st_rdev; unsigned lon...
null
null
null
null
81,620
51,945
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
51,945
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media/gpu/v4l2/v4l2_video_decode_accelerator.h" #include <dlfcn.h> #include <errno.h> #include <fcntl.h> #include <linux/videodev2.h> #include ...
null
null
null
null
48,808
25,591
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
25,591
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "extensions/browser/extension_pref_value_map.h" #include <stdint.h> #include <memory> #include "base/macros.h" #include "base/memory/ref_count...
null
null
null
null
22,454
43,121
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
208,116
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#ifndef _UAPI_LINUX_TTY_H #define _UAPI_LINUX_TTY_H /* * 'tty.h' defines some structures used by tty_io.c and some defines. */ #define NR_LDISCS 30 /* line disciplines */ #define N_TTY 0 #define N_SLIP 1 #define N_MOUSE 2 #define N_PPP 3 #define N_STRIP 4 #define N_AX25 5 #define N_X25 6 /* X.25 async */ #...
null
null
null
null
116,463
16,960
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
16,960
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stddef.h> #include "components/viz/common/quads/compositor_frame.h" #include "components/viz/common/surfaces/parent_local_surface_id_allocator....
null
null
null
null
13,823
13,821
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
178,816
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
/* thread_info.h: h8300 low-level thread information * adapted from the i386 and PPC versions by Yoshinori Sato <ysato@users.sourceforge.jp> * * Copyright (C) 2002 David Howells (dhowells@redhat.com) * - Incorporating suggestions made by Linus Torvalds and Dave Miller */ #ifndef _ASM_THREAD_INFO_H #define _ASM_T...
null
null
null
null
87,163
41,578
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
41,578
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef TOOLS_GN_SUBSTITUTION_PATTERN_H_ #define TOOLS_GN_SUBSTITUTION_PATTERN_H_ #include <string> #include <vector> #include "tools/gn/substitution_ty...
null
null
null
null
38,441
316
1,2,3,4,5,6
train_val
dc7b094a338c6c521f918f478e993f0f74bbea0d
316
Chrome
1
https://github.com/chromium/chromium
2011-06-15 06:45:53+00:00
InputMethodStatusConnection() : current_input_method_changed_(NULL), register_ime_properties_(NULL), update_ime_property_(NULL), connection_change_handler_(NULL), language_library_(NULL), ibus_(NULL), ibus_config_(NULL) { }
CVE-2011-2804
CWE-399
https://github.com/chromium/chromium/commit/dc7b094a338c6c521f918f478e993f0f74bbea0d
Low
316
38,176
null
train_val
e4311ee51d1e2676001b2d8fcefd92bdd79aad85
203,171
linux
0
https://github.com/torvalds/linux
2017-05-12 08:32:58+10:00
#define cpuhp_setup_state_nocalls(a, b, c, d) (0)
null
null
null
null
111,518
29,008
null
train_val
796a0e014bc3985709c0a35538d606ef1da31e1b
29,008
Chrome
0
https://github.com/chromium/chromium
2018-04-07 23:43:03+00:00
// Copyright 2012 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
null
null
null
null
25,871