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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15,500 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 180,495 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /* IEEE754 floating point arithmetic
* double precision: common utilities
*/
/*
* MIPS floating point support
* Copyright (C) 1994-2000 Algorithmics Ltd.
*
* This program is free software; you can distribute it and/or modify it
* under the terms of the GNU General Public License (Version 2) as
* published by... | null | null | null | null | 88,842 |
63,814 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 63,814 | 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.
#ifndef CHROME_BROWSER_UI_WEBUI_DEVTOOLS_UI_H_
#define CHROME_BROWSER_UI_WEBUI_DEVTOOLS_UI_H_
#include "base/macros.h"
#include "chrome/browser/devto... | null | null | null | null | 60,677 |
31,499 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 31,499 | Chrome | 0 | https://github.com/chromium/chromium | 2018-04-07 23:43:03+00:00 | /*
* Copyright (C) 2012 Motorola Mobility 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 ... | null | null | null | null | 28,362 |
42,093 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 42,093 | 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 GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_FETCHER_H_
#define GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_FETCHER_H_
#include <string>
#include <vector>
... | null | null | null | null | 38,956 |
61,222 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 61,222 | 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 CHROME_BROWSER_RESOURCE_COORDINATOR_TIME_H_
#define CHROME_BROWSER_RESOURCE_COORDINATOR_TIME_H_
#include "base/macros.h"
#include "base/time/time... | null | null | null | null | 58,085 |
35,315 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 200,310 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Mirics MSi001 silicon tuner driver
*
* Copyright (C) 2013 Antti Palosaari <crope@iki.fi>
* Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
*
* 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 So... | null | null | null | null | 108,657 |
61,892 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 61,892 | 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 "chrome/browser/supervised_user/supervised_user_service.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/macros.h"
#... | null | null | null | null | 58,755 |
15,985 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 15,985 | 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 COMPONENTS_SYNC_ENGINE_IMPL_NUDGE_SOURCE_H_
#define COMPONENTS_SYNC_ENGINE_IMPL_NUDGE_SOURCE_H_
namespace syncer {
enum NudgeSource {
NUDG... | null | null | null | null | 12,848 |
6,529 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 6,529 | 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.
#include "chromeos/network/proxy/proxy_config_handler.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/json/json_writer... | null | null | null | null | 3,392 |
29,625 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 194,620 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Transport & Protocol Driver for In-System Design, Inc. ISD200 ASIC
*
* Current development and maintenance:
* (C) 2001-2002 Björn Stenberg (bjorn@haxx.se)
*
* Developed with the assistance of:
* (C) 2002 Alan Stern <stern@rowland.org>
*
* Initial work:
* (C) 2000 In-System Design, Inc. (support@in-... | null | null | null | null | 102,967 |
56,933 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 56,933 | 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 <vector>
#include "base/command_line.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/values.h"
#include "build/buil... | null | null | null | null | 53,796 |
7,987 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 7,987 | 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 NET_CERT_X509_UTIL_MAC_H_
#define NET_CERT_X509_UTIL_MAC_H_
#include <CoreFoundation/CFArray.h>
#include <Security/Security.h>
#include <str... | null | null | null | null | 4,850 |
27,221 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 192,216 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* comedi/comedi_compat32.c
* 32-bit ioctl compatibility for 64-bit comedi kernel module.
*
* Author: Ian Abbott, MEV Ltd. <abbotti@mev.co.uk>
* Copyright (C) 2007 MEV Ltd. <http://www.mev.co.uk/>
*
* COMEDI - Linux Control and Measurement Device Interface
* Copyright (C) 1997-2007 David A. Schleef <ds@schlee... | null | null | null | null | 100,563 |
31,939 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 31,939 | 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/vector_effect.h"
namespace blink {
namespace CSSLonghand {
const CSSValue* VectorEffe... | null | null | null | null | 28,802 |
349 | null | train_val | a6802e21d824e786d1e2a8440cf749a6e1a8d95f | 160,477 | ImageMagick | 0 | https://github.com/ImageMagick/ImageMagick | 2017-07-18 18:28:29-04:00 | /*
Copyright 1999-2017 ImageMagick Studio LLC, a non-profit organization
dedicated to making software imaging solutions freely available.
You may not use this file except in compliance with the License.
obtain a copy of the License at
https://www.imagemagick.org/script/license.php
Unless required... | null | null | null | null | 72,770 |
55,542 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 55,542 | 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 CHROME_UTILITY_SAFE_BROWSING_MAC_UDIF_H_
#define CHROME_UTILITY_SAFE_BROWSING_MAC_UDIF_H_
#include <CoreFoundation/CoreFoundation.h>
#include <st... | null | null | null | null | 52,405 |
5,109 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 170,104 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | #ifndef __SOUND_HOONTECH_H
#define __SOUND_HOONTECH_H
/*
* ALSA driver for ICEnsemble ICE1712 (Envy24)
*
* Lowlevel functions for Hoontech STDSP24
*
* Copyright (c) 2000 Jaroslav Kysela <perex@perex.cz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the... | null | null | null | null | 78,451 |
37,428 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 202,423 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Ingenic SoC CGU driver
*
* Copyright (c) 2013-2015 Imagination Technologies
* Author: Paul Burton <paul.burton@imgtec.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 Foundation; either v... | null | null | null | null | 110,770 |
40,643 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 40,643 | Chrome | 0 | https://github.com/chromium/chromium | 2018-04-07 23:43:03+00:00 | // Copyright 2014 The Crashpad Authors. All rights reserved.
//
// 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 ... | null | null | null | null | 37,506 |
13,328 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 178,323 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | |
| fpsp.h 3.3 3.3
|
| Copyright (C) Motorola, Inc. 1990
| All Rights Reserved
|
| For details on the license for this file, please see the
| file, README, in this same directory.
| fpsp.h --- stack frame offsets during FPSP exception handling
|
| These equates are used to access the exception frame, t... | null | null | null | null | 86,670 |
33,599 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 33,599 | Chrome | 0 | https://github.com/chromium/chromium | 2018-04-07 23:43:03+00:00 | /*
* Copyright (C) 2000 Lars Knoll (knoll@kde.org)
* Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
* All right reserved.
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library... | null | null | null | null | 30,462 |
1,293 | 15 | train_val | 79cfdeb5fbe79fa2604d37fba467f371cb436bc3 | 1,293 | Chrome | 1 | https://github.com/chromium/chromium | 2013-07-12 05:31:16+00:00 | void BaseMultipleFieldsDateAndTimeInputType::destroyShadowSubtree()
{
ASSERT(!m_isDestroyingShadowSubtree);
m_isDestroyingShadowSubtree = true;
if (SpinButtonElement* element = spinButtonElement())
element->removeSpinButtonOwner();
if (ClearButtonElement* element = clearButtonElement())
element->removeClearButtonOwner(... | CVE-2013-2885 | CWE-399 | https://github.com/chromium/chromium/commit/79cfdeb5fbe79fa2604d37fba467f371cb436bc3 | Low | 1,293 |
3,561 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 3,561 | 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.
#ifndef IOS_WEB_PUBLIC_TEST_WEB_TEST_SUITE_H_
#define IOS_WEB_PUBLIC_TEST_WEB_TEST_SUITE_H_
#include "base/macros.h"
#include "base/test/test_suite.h"
#i... | null | null | null | null | 424 |
37,009 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 37,009 | Chrome | 0 | https://github.com/chromium/chromium | 2018-04-07 23:43:03+00:00 | /*
* Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved.
* Copyright (C) 2006 Alexey Proskuryakov <ap@nypop.com>
*
* 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 co... | null | null | null | null | 33,872 |
16,468 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 16,468 | 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 "components/sync/driver/about_sync_util.h"
#include <string>
#include <utility>
#include <vector>
#include "base/logging.h"
#include "base/... | null | null | null | null | 13,331 |
470 | null | train_val | 31e986bc171719c9e6d40d0c2cb1501796a69e6c | 259,425 | php-src | 0 | https://github.com/php/php-src | 2016-10-24 10:37:20+01:00 | #include <php.h>
#include <php_network.h>
#include "php_sockets.h"
#ifdef PHP_WIN32
#include "windows_common.h"
#else
#include <netdb.h>
#include <arpa/inet.h>
#endif
extern int php_string_to_if_index(const char *val, unsigned *out);
#if HAVE_IPV6
/* Sets addr by hostname, or by ip in string form (AF_INET6) */
int p... | null | null | null | null | 119,346 |
9,059 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 9,059 | 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 <stdint.h>
#include <string>
#include <vector>
#include "base/logging.h"
#include "base/memory/scoped_refptr.h"
#include "b... | null | null | null | null | 5,922 |
64,396 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 64,396 | 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 "base/macros.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/chrome_select_fi... | null | null | null | null | 61,259 |
1,398 | null | train_val | 04b570817b2b38e35675b17328239746212f4c3f | 154,455 | FFmpeg | 0 | https://github.com/FFmpeg/FFmpeg | 2018-06-01 01:23:12+05:30 | /*
* Android MediaCodec Surface functions
*
* Copyright (c) 2016 Matthieu Bouron <matthieu.bouron stupeflix.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 Lesser General Public
* License as published by the Free Software ... | null | null | null | null | 70,510 |
4,157 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 169,152 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Copyright (c) 2000-2006 Silicon Graphics, Inc.
* 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.
*
* This program is distributed in the hope that it would be ... | null | null | null | null | 77,499 |
14,965 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 179,960 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* arch/blackfin/mach-common/scb-init.c - reprogram system cross bar priority
*
* Copyright 2012 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#include <asm/blackfin.h>
#include <asm/scb.h>
struct scb_mi_prio scb_data[] = {
#ifdef CONFIG_SCB0_MI0
{ REG_SCB0_ARBR0, REG_SCB0_ARBW0, 32, {
CONF... | null | null | null | null | 88,307 |
43,712 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 43,712 | 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 BASE_DEBUG_PROFILER_H_
#define BASE_DEBUG_PROFILER_H_
#include <stddef.h>
#include <string>
#include "base/base_export.h"
// The Profiler ... | null | null | null | null | 40,575 |
23,521 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 23,521 | 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 "content/browser/android/scoped_surface_request_manager.h"
#include "content/public/browser/browser_thread.h"
namespace content {
// static
Sc... | null | null | null | null | 20,384 |
48,977 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 48,977 | 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 "ui/gl/gl_gl_api_implementation.h"
#include <vector>
#include "base/memory/ptr_util.h"
#include "base/stl_util.h"
#include "base/strings/st... | null | null | null | null | 45,840 |
36,834 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 36,834 | 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 | 33,697 |
13,215 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 178,210 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | #ifndef AGP_H
#define AGP_H 1
#include <asm/io.h>
/* dummy for now */
#define map_page_into_agp(page)
#define unmap_page_from_agp(page)
#define flush_agp_cache() mb()
/* GATT allocation. Returns/accepts GATT kernel virtual address. */
#define alloc_gatt_pages(order) \
((char *)__get_free_pages(GFP_KERNEL, (orde... | null | null | null | null | 86,557 |
8,275 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 8,275 | 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 NET_TEST_EVENT_WAITER_H_
#define NET_TEST_EVENT_WAITER_H_
#include "base/run_loop.h"
namespace net {
// Helper class to run a RunLoop until an ... | null | null | null | null | 5,138 |
28,243 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 193,238 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Greybus operations
*
* Copyright 2015-2016 Google Inc.
*
* Released under the GPLv2 only.
*/
#include <linux/slab.h>
#include "audio_manager.h"
#include "audio_manager_private.h"
#define to_gb_audio_module_attr(x) \
container_of(x, struct gb_audio_manager_module_attribute, attr)
#define to_gb_audio_modu... | null | null | null | null | 101,585 |
10,430 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 175,425 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
* Copyright 2008 Juergen Beisert, kernel@pengutronix.de
* Copyright 2009 Holger Schurig, hs4233@mail.mn-solutions.de
*
* This contains i.MX21-specific hardware definitions. For those
* hardware pieces that are common between i.MX21 and i.... | null | null | null | null | 83,772 |
43,173 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 208,168 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
*
* 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 ... | null | null | null | null | 116,515 |
3,565 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 3,565 | 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 IOS_WEB_PUBLIC_TEST_CRW_MOCK_WEB_STATE_DELEGATE_H_
#define IOS_WEB_PUBLIC_TEST_CRW_MOCK_WEB_STATE_DELEGATE_H_
#import "ios/testing/ocmock_complex... | null | null | null | null | 428 |
337 | 50,51,52,53,54,57,58,59,60,61,62,63,64,77,78,79,80,81,99,100,101,102 | train_val | 82981930125abfd39d7c8378a9cfdf5e1be2002b | 165,332 | linux | 1 | https://github.com/torvalds/linux | 2012-04-27 02:14:21-04:00 | int sock_setsockopt(struct socket *sock, int level, int optname,
char __user *optval, unsigned int optlen)
{
struct sock *sk = sock->sk;
int val;
int valbool;
struct linger ling;
int ret = 0;
/*
* Options without arguments
*/
if (optname == SO_BINDTODEVICE)
return sock_bindtodevice(sk, optval, optlen);
if (optlen < ... | CVE-2012-6704 | CWE-119 | https://github.com/torvalds/linux/commit/82981930125abfd39d7c8378a9cfdf5e1be2002b | Low | 3,226 |
36,909 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 201,904 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Copyright (C) 2010-2011 Canonical Ltd <jeremy.kerr@canonical.com>
* Copyright (C) 2011-2012 Mike Turquette, Linaro Ltd <mturquette@linaro.org>
*
* 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 S... | null | null | null | null | 110,251 |
33,969 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 198,964 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
Mantis PCI bridge driver
Copyright (C) Manu Abraham (abraham.manu@gmail.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 Foundation; either version 2 of the License, or
(at your option) any later v... | null | null | null | null | 107,311 |
2,545 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 167,540 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* TCP HYBLA
*
* TCP-HYBLA Congestion control algorithm, based on:
* C.Caini, R.Firrincieli, "TCP-Hybla: A TCP Enhancement
* for Heterogeneous Networks",
* International Journal on satellite Communications,
* September 2004
* Daniele Lacamera
* root at danielinux.net
*/
#include <linu... | null | null | null | null | 75,888 |
58,072 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 58,072 | 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 <string>
#include "base/macros.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/br... | null | null | null | null | 54,935 |
62,110 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 62,110 | 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 CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_
#define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_
#include "base/strings/string16.h"
#include "build/build_conf... | null | null | null | null | 58,973 |
31,443 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 31,443 | Chrome | 0 | https://github.com/chromium/chromium | 2018-04-07 23:43:03+00:00 | /*
* (C) 1999-2003 Lars Knoll (knoll@kde.org)
* (C) 2002-2003 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2002, 2006, 2008, 2012 Apple Inc. All rights reserved.
* Copyright (C) 2006 Samuel Weinig (sam@webkit.org)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of ... | null | null | null | null | 28,306 |
4,528 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 4,528 | 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 "ios/chrome/browser/ui/webui/suggestions_ui.h"
#include <map>
#include <string>
#include "components/suggestions/webui/suggestions_source.h"
#i... | null | null | null | null | 1,391 |
53,545 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 53,545 | 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 MEDIA_CAST_SENDER_CONGESTION_CONTROL_H_
#define MEDIA_CAST_SENDER_CONGESTION_CONTROL_H_
#include <stddef.h>
#include <stdint.h>
#include <memory... | null | null | null | null | 50,408 |
1,361 | null | train_val | 1b0d3845b454eaaac0b2064c78926ca4d739a080 | 263,929 | qemu | 0 | https://github.com/bonzini/qemu | 2016-10-18 11:40:27+01:00 | /*
* PowerPC floating point and SPE emulation helpers for QEMU.
*
* Copyright (c) 2003-2007 Jocelyn Mayer
*
* This library 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 of... | null | null | null | null | 122,053 |
28,456 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 193,451 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /* This file is GENERATED AUTOMATICALLY. DO NOT EDIT OR MODIFY.
* --------------------------------------------------------------------
*
* Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved.
* --------------------------------------------------------------------
*
* linux-wlan
*
* The contents of thi... | null | null | null | null | 101,798 |
24,862 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 24,862 | 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/renderer/api_definitions_natives.h"
#include "extensions/common/features/feature.h"
#include "extensions/common/features/feature_pro... | null | null | null | null | 21,725 |
740 | null | train_val | 1b0d3845b454eaaac0b2064c78926ca4d739a080 | 263,308 | qemu | 0 | https://github.com/bonzini/qemu | 2016-10-18 11:40:27+01:00 | #include <stdio.h>
int main(void)
{
int a, b;
int result;
b = 0x123;
result = 1;
__asm
("l.ff1 %0, %1\n\t"
: "=r"(a)
: "r"(b)
);
if (a != result) {
printf("ff1 error\n");
return -1;
}
b = 0x0;
result = 0;
__asm
("l.ff1 %0, %1\n\t"
: "... | null | null | null | null | 121,432 |
38,242 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 38,242 | 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 "third_party/blink/public/platform/web_canvas_capture_handler.h"
// This file just includes WebCanvasCaptureHandler.h, to make sure
// MSVC comp... | null | null | null | null | 35,105 |
21,015 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 186,010 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | #ifndef B43_SYSFS_H_
#define B43_SYSFS_H_
struct b43_wldev;
int b43_sysfs_register(struct b43_wldev *dev);
void b43_sysfs_unregister(struct b43_wldev *dev);
#endif /* B43_SYSFS_H_ */
| null | null | null | null | 94,357 |
772 | 1,2,3,4 | train_val | 94f1bb15bed84ad6c893916b7e7b9db6f1d7eec6 | 165,767 | linux | 1 | https://github.com/torvalds/linux | 2015-04-22 09:30:20+08:00 | static int generate(struct crypto_rng *tfm, const u8 *src, unsigned int slen,
u8 *dst, unsigned int dlen)
{
return crypto_old_rng_alg(tfm)->rng_make_random(tfm, dst, dlen);
}
| CVE-2017-15116 | CWE-476 | https://github.com/torvalds/linux/commit/94f1bb15bed84ad6c893916b7e7b9db6f1d7eec6 | Low | 3,661 |
12,821 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 177,816 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | #ifndef _ASM_POWERPC_CODE_PATCHING_H
#define _ASM_POWERPC_CODE_PATCHING_H
/*
* Copyright 2008, Michael Ellerman, IBM Corporation.
*
* 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 v... | null | null | null | null | 86,163 |
3,971 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 3,971 | 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 IOS_CHROME_APP_STARTUP_PROVIDER_REGISTRATION_H_
#define IOS_CHROME_APP_STARTUP_PROVIDER_REGISTRATION_H_
#import <UIKit/UIKit.h>
@interface Provi... | null | null | null | null | 834 |
1,422 | null | train_val | 04b570817b2b38e35675b17328239746212f4c3f | 154,479 | FFmpeg | 0 | https://github.com/FFmpeg/FFmpeg | 2018-06-01 01:23:12+05:30 | /*
* Copyright (c) 1990 James Ashton - Sydney University
* Copyright (c) 2012 Stefano Sabatini
*
* 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
... | null | null | null | null | 70,534 |
14,671 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 179,666 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* OpenRISC Linux
*
* Linux architectural port borrowing liberally from similar works of
* others. All original copyrights apply as per the original source
* declaration.
*
* OpenRISC implementation:
* Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
* Copyright (C) 2010-2011 Jonas Bonn <jonas@southpo... | null | null | null | null | 88,013 |
5,098 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 5,098 | 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 IOS_CHROME_BROWSER_UI_READING_LIST_READING_LIST_MENU_NOTIFICATION_DELEGATE_H_
#define IOS_CHROME_BROWSER_UI_READING_LIST_READING_LIST_MENU_NOTIFIC... | null | null | null | null | 1,961 |
554 | null | train_val | 1b0d3845b454eaaac0b2064c78926ca4d739a080 | 263,122 | qemu | 0 | https://github.com/bonzini/qemu | 2016-10-18 11:40:27+01:00 | /*
* QTest testcase for Intel X58 north bridge IOH
*
* 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 fa... | null | null | null | null | 121,246 |
873 | null | train_val | 1b0d3845b454eaaac0b2064c78926ca4d739a080 | 263,441 | qemu | 0 | https://github.com/bonzini/qemu | 2016-10-18 11:40:27+01:00 | #include<stdio.h>
#include<assert.h>
int main()
{
int rs, rt;
int dsp;
int result;
rs = 0x11777066;
rt = 0x55AA70FF;
result = 0x0F;
__asm
("cmpu.le.qb %1, %2\n\t"
"rddsp %0\n\t"
: "=r"(dsp)
: "r"(rs), "r"(rt)
);
dsp = (dsp ... | null | null | null | null | 121,565 |
16,123 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 181,118 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Ralink RT3662/RT3883 SoC register definitions
*
* Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org>
*
* 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.
*/
#ifndef _R... | null | null | null | null | 89,465 |
37,351 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 37,351 | 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 | 34,214 |
70,750 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 70,750 | 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 SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_TEST_RUNNER_H_
#define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_TEST_RUNNER_H_
#include <memory>
#include "ba... | null | null | null | null | 67,613 |
28,464 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 28,464 | 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.
// This is a stand-in for a generated file that is available when the
// Widevine CDM is available.
#ifndef WIDEVINE_CDM_VERSION_H_
#define WIDEVINE_... | null | null | null | null | 25,327 |
38,250 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 203,245 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /* CLOCK_MONOTONIC vs CLOCK_MONOTONIC_RAW skew test
* by: john stultz (johnstul@us.ibm.com)
* John Stultz <john.stultz@linaro.org>
* (C) Copyright IBM 2012
* (C) Copyright Linaro Limited 2015
* Licensed under the GPLv2
*
* To build:
* $ gcc raw_skew.c -o raw_skew -lrt
*
* This program is free soft... | null | null | null | null | 111,592 |
37,154 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 202,149 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* H8/300 divide clock driver
*
* Copyright 2015 Yoshinori Sato <ysato@users.sourceforge.jp>
*/
#include <linux/clk-provider.h>
#include <linux/err.h>
#include <linux/of.h>
#include <linux/of_address.h>
static DEFINE_SPINLOCK(clklock);
static void __init h8300_div_clk_setup(struct device_node *node)
{
unsigne... | null | null | null | null | 110,496 |
30,877 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 30,877 | Chrome | 0 | https://github.com/chromium/chromium | 2018-04-07 23:43:03+00:00 | /*
* Copyright (C) 2008, 2009, 2011 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... | null | null | null | null | 27,740 |
36,454 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 36,454 | 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 "third_party/blink/renderer/platform/histogram.h"
#include "base/metrics/histogram.h"
#include "base/metrics/sparse_histogram.h"
namespace blin... | null | null | null | null | 33,317 |
17,345 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 17,345 | 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.
#ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_
#define COMPONENTS_AUTOFILL_CONTENT_RENDERER_TEST_PASSWORD_AUTOFILL_AGENT_H_
... | null | null | null | null | 14,208 |
13,394 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 178,389 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* irq.c
*
* (C) Copyright 2007, Greg Ungerer <gerg@snapgear.com>
*
* 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.
*/
#include <linux/types.h>
#include <linux/init.h>
#include <linux/kerne... | null | null | null | null | 86,736 |
13,327 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 13,327 | 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 "components/password_manager/core/browser/site_affiliation/asset_link_data.h"
#include <algorithm>
#include <utility>
#include "base/json/json_... | null | null | null | null | 10,190 |
24,990 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 24,990 | 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 EXTENSIONS_RENDERER_BINDINGS_JS_RUNNER_H_
#define EXTENSIONS_RENDERER_BINDINGS_JS_RUNNER_H_
#include <memory>
#include "base/callback.h"
#includ... | null | null | null | null | 21,853 |
342 | null | train_val | 83ed75feba32e46f736fcce0d96a0445f29b96c2 | 162,186 | krb5 | 0 | https://github.com/krb5/krb5 | 2016-01-27 15:43:28-05:00 | /*
* Implements Kerberos 4 authentication and ecryption
*/
#ifndef WINTEL_AUTH_H
#define WINTEL_AUTH_H
void auth_parse(kstream, unsigned char *, int);
int auth_init(kstream, kstream_ptr);
void auth_destroy(kstream);
int auth_encrypt(struct kstream_data_block *, struct kstream_data_block *,
kstream);
int auth... | null | null | null | null | 73,494 |
24,551 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 24,551 | Chrome | 0 | https://github.com/chromium/chromium | 2018-04-07 23:43:03+00:00 | // Copyright (c) 2010 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 "courgette/third_party/bsdiff/paged_array.h"
#include <stdint.h>
#include <algorithm>
#include <iterator>
#include <random>
#include <vecto... | null | null | null | null | 21,414 |
17,865 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 182,860 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | #ifndef _ASM_ARM64_HYPERVISOR_H
#define _ASM_ARM64_HYPERVISOR_H
#include <asm/xen/hypervisor.h>
#endif
| null | null | null | null | 91,207 |
2,990 | null | train_val | 04b570817b2b38e35675b17328239746212f4c3f | 156,047 | FFmpeg | 0 | https://github.com/FFmpeg/FFmpeg | 2018-06-01 01:23:12+05:30 | /*
* RTMP network protocol
* Copyright (c) 2009 Konstantin Shishkov
*
* 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 Licen... | null | null | null | null | 72,102 |
36,424 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 201,419 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /**
* @file cpu_buffer.h
*
* @remark Copyright 2002-2009 OProfile authors
* @remark Read the file COPYING
*
* @author John Levon <levon@movementarian.org>
* @author Robert Richter <robert.richter@amd.com>
*/
#ifndef OPROFILE_CPU_BUFFER_H
#define OPROFILE_CPU_BUFFER_H
#include <linux/types.h>
#include <linux/s... | null | null | null | null | 109,766 |
21,060 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 186,055 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Copyright (c) 2010 Broadcom Corporation
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO... | null | null | null | null | 94,402 |
7,849 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 7,849 | 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 NET_CERT_CERT_DATABASE_H_
#define NET_CERT_CERT_DATABASE_H_
#include <memory>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
... | null | null | null | null | 4,712 |
10,501 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 175,496 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Copyright 2011 Freescale Semiconductor, Inc.
* Copyright 2011 Linaro Ltd.
*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gpl-lic... | null | null | null | null | 83,843 |
450 | null | train_val | 31e986bc171719c9e6d40d0c2cb1501796a69e6c | 259,405 | php-src | 0 | https://github.com/php/php-src | 2016-10-24 10:37:20+01:00 | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+--------------... | null | null | null | null | 119,326 |
1,654 | null | train_val | 83ed75feba32e46f736fcce0d96a0445f29b96c2 | 163,498 | krb5 | 0 | https://github.com/krb5/krb5 | 2016-01-27 15:43:28-05:00 | /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include <k5-platform.h>
#include <krb5.h>
#include <unistd.h>
#include <time.h>
#define TKTTIMELEFT 60*10 /* ten minutes */
static int verify_creds()
{
krb5_context kcontext;
krb5_ccache ccache;
krb5_error_code kres;
... | null | null | null | null | 74,806 |
628 | null | train_val | 83ed75feba32e46f736fcce0d96a0445f29b96c2 | 162,472 | krb5 | 0 | https://github.com/krb5/krb5 | 2016-01-27 15:43:28-05:00 | /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* plugins/kdb/ldap/libkdb_ldap/kdb_ldap.c */
/*
* Copyright (c) 2004-2005, Novell, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... | null | null | null | null | 73,780 |
28,090 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 28,090 | Chrome | 0 | https://github.com/chromium/chromium | 2018-04-07 23:43:03+00:00 | // Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | null | null | null | null | 24,953 |
52,760 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 52,760 | 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/base/audio_buffer_converter.h"
#include <algorithm>
#include <cmath>
#include "base/logging.h"
#include "media/base/audio_bus.h"
#includ... | null | null | null | null | 49,623 |
34,911 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 199,906 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Abilis Systems Single DVB-T Receiver
* Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com>
* Copyright (C) 2010 Devin Heitmueller <dheitmueller@kernellabs.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ... | null | null | null | null | 108,253 |
14,891 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 179,886 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Copyright 2004-2009 Analog Devices Inc.
* Tony Kou (tonyko@lineo.ca)
*
* Licensed under the GPL-2 or later
*/
#ifndef _BLACKFIN_BARRIER_H
#define _BLACKFIN_BARRIER_H
#include <asm/cache.h>
#define nop() __asm__ __volatile__ ("nop;\n\t" : : )
/*
* Force strict CPU ordering.
*/
#ifdef CONFI... | null | null | null | null | 88,233 |
12,292 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 12,292 | 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 "components/nacl/loader/nacl_ipc_adapter.h"
#include <limits.h>
#include <string.h>
#include <memory>
#include <tuple>
#include <utility>
#incl... | null | null | null | null | 9,155 |
25,120 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 25,120 | 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_COMMON_MANIFEST_HANDLERS_H_
#define EXTENSIONS_COMMON_COMMON_MANIFEST_HANDLERS_H_
namespace extensions {
// Registers manifest... | null | null | null | null | 21,983 |
30,656 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 195,651 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Copyright (C) ST-Ericsson SA 2010
*
* License Terms: GNU General Public License v2
* Author: Sundar Iyer <sundar.iyer@stericsson.com> for ST-Ericsson
*
* AB8500 Power-On Key handler
*/
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include ... | null | null | null | null | 103,998 |
42,432 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 42,432 | 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 "base/sha1.h"
#include <stddef.h>
#include <string>
#include "testing/gtest/include/gtest/gtest.h"
TEST(SHA1Test, Test1) {
// Example A... | null | null | null | null | 39,295 |
41,746 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 206,741 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Copyright (C) 2011 Kionix, Inc.
* Written by Chris Hudson <chudson@kionix.com>
*
* 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.
*
* This program is distributed in the hop... | null | null | null | null | 115,088 |
5,255 | null | train_val | e4311ee51d1e2676001b2d8fcefd92bdd79aad85 | 170,250 | linux | 0 | https://github.com/torvalds/linux | 2017-05-12 08:32:58+10:00 | /*
* Copyright (c) by Jaroslav Kysela <perex@perex.cz>
* Routines for Sound Blaster mixer control
*
*
* 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 Licen... | null | null | null | null | 78,597 |
1,346 | null | train_val | 04b570817b2b38e35675b17328239746212f4c3f | 154,403 | FFmpeg | 0 | https://github.com/FFmpeg/FFmpeg | 2018-06-01 01:23:12+05:30 | /*
* Monkey's Audio lossless audio decoder
* Copyright (c) 2007 Benjamin Zores <ben@geexbox.org>
* based upon libdemac from Dave Chapman.
*
* 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 publi... | null | null | null | null | 70,458 |
49,504 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 49,504 | 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 UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_MAC_H_
#define UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_MAC_H_
#import <Cocoa/Cocoa.h>
#include <map>
#includ... | null | null | null | null | 46,367 |
9,444 | null | train_val | 796a0e014bc3985709c0a35538d606ef1da31e1b | 9,444 | 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 "net/socket/tcp_server_socket.h"
#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.h"
#include "n... | null | null | null | null | 6,307 |
Subsets and Splits
Top Projects by Commit Count
Reveals the most active projects based on the number of unique commits, highlighting which projects have the most development activity.
SQL Console for realvul/RealVul
Identifies the most frequent commit hashes for projects with a target value of 1, revealing key commits that may be significant for further analysis.
Top Vulnerable Commits by Project
Identifies the most frequently occurring vulnerable commit hashes for each project, providing insights into common vulnerabilities across different projects.
Project-wise Vulnerability Count
Counts the occurrences of each target value (0 and 1) per project, providing insight into the distribution of targets within different projects.
CWE Frequency in Train Set
Provides a count of vulnerabilities grouped by CWE ID, highlighting the most frequent types of vulnerabilities in the dataset.
SQL Console for realvul/RealVul
Counts the number of unique commits per project, providing a basic overview of project activity.