id stringlengths 25 30 | content stringlengths 14 942k | max_stars_repo_path stringlengths 49 55 |
|---|---|---|
crossvul-cpp_data_good_3962_0 | /* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copyright (c) 2015, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source and... | ./CrossVul/dataset_final_sorted/CWE-203/c/good_3962_0 |
crossvul-cpp_data_bad_3962_0 | /* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copyright (c) 2015, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source and... | ./CrossVul/dataset_final_sorted/CWE-203/c/bad_3962_0 |
crossvul-cpp_data_bad_4748_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-345/cpp/bad_4748_0 |
crossvul-cpp_data_good_4748_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-345/cpp/good_4748_0 |
crossvul-cpp_data_bad_1023_0 | /*
* Copyright (c) 2002 - 2003
* NetGroup, Politecnico di Torino (Italy)
* 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 copy... | ./CrossVul/dataset_final_sorted/CWE-345/c/bad_1023_0 |
crossvul-cpp_data_good_1023_0 | /*
* Copyright (c) 2002 - 2003
* NetGroup, Politecnico di Torino (Italy)
* 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 copy... | ./CrossVul/dataset_final_sorted/CWE-345/c/good_1023_0 |
crossvul-cpp_data_bad_2369_0 | /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <base/math.h>
#include <base/system.h>
#include <engine/config.h>
#include <engine/console.h>
#include <engine/engine... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_2369_0 |
crossvul-cpp_data_good_1442_3 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1442_3 |
crossvul-cpp_data_good_1580_0 | /**********************************************************************
* Copyright (c) 2008 Red Hat, Inc.
*
* File: ParaNdis-Common.c
*
* This file contains NDIS driver procedures, common for NDIS5 and NDIS6
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the to... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1580_0 |
crossvul-cpp_data_good_4220_3 | /* -*- C++ -*-
* Copyright 2019-2020 LibRaw LLC (info@libraw.org)
*
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for det... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_4220_3 |
crossvul-cpp_data_bad_1376_0 | /*
* Copyright 2004-present Facebook, 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 a... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1376_0 |
crossvul-cpp_data_good_1442_4 | /*
* Copyright (C) 2004-2016 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1442_4 |
crossvul-cpp_data_bad_2411_3 | /*
Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ 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 3 of the License, or
... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_2411_3 |
crossvul-cpp_data_bad_1692_0 | /*
Copyright (c) 2008-2014, Arvid Norberg
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 conditions and ... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1692_0 |
crossvul-cpp_data_bad_512_0 | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "ScpFileSystem.h"
#include "Terminal.h"
#include "Common.h"
#include "Exceptions.h"
#include "Interface.h"
#include "TextsCore.h"
#include "HelpCore.h"
#include "SecureShell.h"
#include <StrUtils.hp... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_512_0 |
crossvul-cpp_data_bad_1442_1 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1442_1 |
crossvul-cpp_data_good_239_0 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_239_0 |
crossvul-cpp_data_good_1442_2 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1442_2 |
crossvul-cpp_data_good_3220_0 | /*
Audio File Library
Copyright (C) 1998-2000, 2003-2004, 2010-2013, Michael Pruett <michael@68k.org>
Copyright (C) 2000-2002, Silicon Graphics, Inc.
Copyright (C) 2002-2003, Davy Durham
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lice... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_3220_0 |
crossvul-cpp_data_good_1581_1 | /**********************************************************************
* Copyright (c) 2008 Red Hat, Inc.
*
* File: sw-offload.c
*
* This file contains SW Implementation of checksum computation for IP,TCP,UDP
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the t... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1581_1 |
crossvul-cpp_data_bad_1749_1 | /*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2011-2015 Phusion Holding B.V.
*
* "Passenger", "Phusion Passenger" and "Union Station" are registered
* trademarks of Phusion Holding B.V.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1749_1 |
crossvul-cpp_data_good_3853_0 | /* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2010 InspIRCd Development Team
* See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the fil... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_3853_0 |
crossvul-cpp_data_bad_1442_4 | /*
* Copyright (C) 2004-2016 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1442_4 |
crossvul-cpp_data_bad_4220_2 | /* -*- C++ -*-
* Copyright 2019-2020 LibRaw LLC (info@libraw.org)
*
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for deta... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_4220_2 |
crossvul-cpp_data_good_660_0 | /*
* The AFFLIB page abstraction.
* Distributed under the Berkeley 4-part license
*/
#include "affconfig.h"
#include "afflib.h"
#include "afflib_i.h"
/* af_read_sizes:
* Get the page sizes if they are set in the file.
*/
void af_read_sizes(AFFILE *af)
{
af_get_seg(af,AF_SECTORSIZE,&af->image_sectorsize,0,0)... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_660_0 |
crossvul-cpp_data_good_4877_1 | #include "Hub.h"
namespace uWS {
template <const bool isServer>
bool WebSocketProtocol<isServer>::setCompressed(void *user) {
uS::Socket s((uv_poll_t *) user);
typename WebSocket<isServer>::Data *webSocketData = (typename WebSocket<isServer>::Data *) s.getSocketData();
if (webSocketData->compressionStatu... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_4877_1 |
crossvul-cpp_data_good_600_0 | /*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_600_0 |
crossvul-cpp_data_bad_4877_1 | #include "Hub.h"
namespace uWS {
template <const bool isServer>
bool WebSocketProtocol<isServer>::setCompressed(void *user) {
uS::Socket s((uv_poll_t *) user);
typename WebSocket<isServer>::Data *webSocketData = (typename WebSocket<isServer>::Data *) s.getSocketData();
if (webSocketData->compressionStatu... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_4877_1 |
crossvul-cpp_data_good_2411_1 | /*
Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ 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 3 of the License, or
... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_2411_1 |
crossvul-cpp_data_good_238_0 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_238_0 |
crossvul-cpp_data_good_600_2 | /*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_600_2 |
crossvul-cpp_data_good_4220_2 | /* -*- C++ -*-
* Copyright 2019-2020 LibRaw LLC (info@libraw.org)
*
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for deta... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_4220_2 |
crossvul-cpp_data_bad_3853_0 | /* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2010 InspIRCd Development Team
* See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the fil... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_3853_0 |
crossvul-cpp_data_bad_4220_1 | /* -*- C++ -*-
* Copyright 2019-2020 LibRaw LLC (info@libraw.org)
*
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for deta... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_4220_1 |
crossvul-cpp_data_bad_2181_0 | /**
* Copyright (C) 2010 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* ... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_2181_0 |
crossvul-cpp_data_good_1692_0 | /*
Copyright (c) 2008-2014, Arvid Norberg
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 conditions and ... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1692_0 |
crossvul-cpp_data_good_1442_1 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1442_1 |
crossvul-cpp_data_bad_660_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_660_0 |
crossvul-cpp_data_bad_1580_0 | /**********************************************************************
* Copyright (c) 2008 Red Hat, Inc.
*
* File: ParaNdis-Common.c
*
* This file contains NDIS driver procedures, common for NDIS5 and NDIS6
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the to... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1580_0 |
crossvul-cpp_data_good_597_0 | /*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_597_0 |
crossvul-cpp_data_good_1749_1 | /*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2011-2015 Phusion Holding B.V.
*
* "Passenger", "Phusion Passenger" and "Union Station" are registered
* trademarks of Phusion Holding B.V.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1749_1 |
crossvul-cpp_data_bad_239_1 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_239_1 |
crossvul-cpp_data_good_1581_0 | /**********************************************************************
* Copyright (c) 2008 Red Hat, Inc.
*
* File: ParaNdis-Common.c
*
* This file contains NDIS driver procedures, common for NDIS5 and NDIS6
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the to... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1581_0 |
crossvul-cpp_data_bad_1798_0 | /*
* InspIRCd -- Internet Relay Chat Daemon
*
* Copyright (C) 2012 William Pitcock <nenolod@dereferenced.org>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
* Copyright (C) 2006, 2009 Robin Burchell <robin+git@viroteck.net>
* Copyright (C) 2007, 2009 Dennis Friis <peavey@inspircd.org>
... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1798_0 |
crossvul-cpp_data_bad_600_2 | /*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_600_2 |
crossvul-cpp_data_good_592_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_592_0 |
crossvul-cpp_data_good_239_1 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_239_1 |
crossvul-cpp_data_bad_3220_0 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_3220_0 |
crossvul-cpp_data_bad_1581_0 | /**********************************************************************
* Copyright (c) 2008 Red Hat, Inc.
*
* File: ParaNdis-Common.c
*
* This file contains NDIS driver procedures, common for NDIS5 and NDIS6
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the to... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1581_0 |
crossvul-cpp_data_good_2181_0 | /**
* Copyright (C) 2010 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* ... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_2181_0 |
crossvul-cpp_data_bad_847_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_847_0 |
crossvul-cpp_data_good_4220_1 | /* -*- C++ -*-
* Copyright 2019-2020 LibRaw LLC (info@libraw.org)
*
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for deta... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_4220_1 |
crossvul-cpp_data_good_4877_0 | #include "Hub.h"
#include "HTTPSocket.h"
#include <openssl/sha.h>
static const int INFLATE_LESS_THAN_ROUGHLY = 16777216;
namespace uWS {
char *Hub::inflate(char *data, size_t &length) {
dynamicInflationBuffer.clear();
inflationStream.next_in = (Bytef *) data;
inflationStream.avail_in = length;
int ... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_4877_0 |
crossvul-cpp_data_good_1798_0 | /*
* InspIRCd -- Internet Relay Chat Daemon
*
* Copyright (C) 2012 William Pitcock <nenolod@dereferenced.org>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
* Copyright (C) 2006, 2009 Robin Burchell <robin+git@viroteck.net>
* Copyright (C) 2007, 2009 Dennis Friis <peavey@inspircd.org>
... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1798_0 |
crossvul-cpp_data_bad_1442_0 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
* Copyright (C) 2008 by Stefan Rado
* based on admin.cpp by Sebastian Ramacher
* based on admin.cpp in crox branch
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1442_0 |
crossvul-cpp_data_good_2369_0 | /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <base/math.h>
#include <base/system.h>
#include <engine/config.h>
#include <engine/console.h>
#include <engine/engine... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_2369_0 |
crossvul-cpp_data_bad_1442_2 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1442_2 |
crossvul-cpp_data_bad_1442_3 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1442_3 |
crossvul-cpp_data_good_847_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_847_0 |
crossvul-cpp_data_good_1442_0 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
* Copyright (C) 2008 by Stefan Rado
* based on admin.cpp by Sebastian Ramacher
* based on admin.cpp in crox branch
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1442_0 |
crossvul-cpp_data_good_1376_0 | /*
* Copyright 2004-present Facebook, 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 a... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1376_0 |
crossvul-cpp_data_bad_239_0 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_239_0 |
crossvul-cpp_data_bad_1580_4 | /**********************************************************************
* Copyright (c) 2008 Red Hat, Inc.
*
* File: ParaNdis6-Impl.c
*
* This file contains NDIS6-specific implementation of driver's procedures.
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the ... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1580_4 |
crossvul-cpp_data_bad_4877_0 | #include "Hub.h"
#include "HTTPSocket.h"
#include <openssl/sha.h>
namespace uWS {
char *Hub::inflate(char *data, size_t &length) {
dynamicInflationBuffer.clear();
inflationStream.next_in = (Bytef *) data;
inflationStream.avail_in = length;
int err;
do {
inflationStream.next_out = (Bytef ... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_4877_0 |
crossvul-cpp_data_bad_3594_0 | /***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/************************************************************... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_3594_0 |
crossvul-cpp_data_bad_600_1 | /*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_600_1 |
crossvul-cpp_data_bad_238_0 | /*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_238_0 |
crossvul-cpp_data_good_512_0 | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "ScpFileSystem.h"
#include "Terminal.h"
#include "Common.h"
#include "Exceptions.h"
#include "Interface.h"
#include "TextsCore.h"
#include "HelpCore.h"
#include "SecureShell.h"
#include <StrUtils.hp... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_512_0 |
crossvul-cpp_data_good_1376_4 | /*
* Copyright 2004-present Facebook, 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 a... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1376_4 |
crossvul-cpp_data_good_2411_3 | /*
Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ 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 3 of the License, or
... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_2411_3 |
crossvul-cpp_data_good_3201_1 | /*
* Bittorrent Client using Qt and libtorrent.
* Copyright (C) 2014 Vladimir Golovnev <glassez@yandex.ru>
*
* 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 Lic... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_3201_1 |
crossvul-cpp_data_good_3594_0 | /***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/************************************************************... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_3594_0 |
crossvul-cpp_data_good_600_1 | /*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_600_1 |
crossvul-cpp_data_good_1580_4 | /**********************************************************************
* Copyright (c) 2008 Red Hat, Inc.
*
* File: ParaNdis6-Impl.c
*
* This file contains NDIS6-specific implementation of driver's procedures.
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the ... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1580_4 |
crossvul-cpp_data_bad_1580_1 | #include "ndis56common.h"
CNBL::CNBL(PNET_BUFFER_LIST NBL, PPARANDIS_ADAPTER Context, CParaNdisTX &ParentTXPath)
: m_NBL(NBL)
, m_Context(Context)
, m_ParentTXPath(&ParentTXPath)
{
m_NBL->Scratch = this;
m_LsoInfo.Value = NET_BUFFER_LIST_INFO(m_NBL, TcpLargeSendNetBufferListInfo);
m_CsoInfo.Val... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1580_1 |
crossvul-cpp_data_good_1580_3 | /**********************************************************************
* Copyright (c) 2008 Red Hat, Inc.
*
* File: sw-offload.c
*
* This file contains SW Implementation of checksum computation for IP,TCP,UDP
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the t... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1580_3 |
crossvul-cpp_data_bad_4220_3 | /* -*- C++ -*-
* Copyright 2019-2020 LibRaw LLC (info@libraw.org)
*
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for det... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_4220_3 |
crossvul-cpp_data_bad_1581_1 | /**********************************************************************
* Copyright (c) 2008 Red Hat, Inc.
*
* File: sw-offload.c
*
* This file contains SW Implementation of checksum computation for IP,TCP,UDP
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the t... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1581_1 |
crossvul-cpp_data_bad_597_0 | /*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_597_0 |
crossvul-cpp_data_good_1580_1 | #include "ndis56common.h"
CNBL::CNBL(PNET_BUFFER_LIST NBL, PPARANDIS_ADAPTER Context, CParaNdisTX &ParentTXPath)
: m_NBL(NBL)
, m_Context(Context)
, m_ParentTXPath(&ParentTXPath)
{
m_NBL->Scratch = this;
m_LsoInfo.Value = NET_BUFFER_LIST_INFO(m_NBL, TcpLargeSendNetBufferListInfo);
m_CsoInfo.Val... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/good_1580_1 |
crossvul-cpp_data_bad_2411_1 | /*
Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ 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 3 of the License, or
... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_2411_1 |
crossvul-cpp_data_bad_600_0 | /*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_600_0 |
crossvul-cpp_data_bad_3201_1 | /*
* Bittorrent Client using Qt and libtorrent.
* Copyright (C) 2014 Vladimir Golovnev <glassez@yandex.ru>
*
* 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 Lic... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_3201_1 |
crossvul-cpp_data_bad_1376_4 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1376_4 |
crossvul-cpp_data_bad_592_0 | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_592_0 |
crossvul-cpp_data_bad_1580_3 | /**********************************************************************
* Copyright (c) 2008 Red Hat, Inc.
*
* File: sw-offload.c
*
* This file contains SW Implementation of checksum computation for IP,TCP,UDP
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the t... | ./CrossVul/dataset_final_sorted/CWE-20/cpp/bad_1580_3 |
crossvul-cpp_data_good_5845_10 | /*
RFCOMM implementation for Linux Bluetooth stack (BlueZ).
Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5845_10 |
crossvul-cpp_data_good_4728_0 | /*
* linux/kernel/fork.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* 'fork.c' contains the help-routines for the 'fork' system call
* (see also entry.S and others).
* Fork is rather simple, once you get the hang of it, but the memory
* management can be a bitch. See 'mm/memory.c': 'copy_page_range(... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_4728_0 |
crossvul-cpp_data_bad_2109_0 | /*
* DCCP connection tracking protocol helper
*
* Copyright (c) 2005, 2006, 2008 Patrick McHardy <kaber@trash.net>
*
* 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.
*
*/
#incl... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_2109_0 |
crossvul-cpp_data_good_5039_4 | /*
* Copyright (c) 2009-2014 Petri Lehtinen <petri@digip.org>
*
* Jansson is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5039_4 |
crossvul-cpp_data_good_4699_0 | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* memcached - memory caching daemon
*
* http://www.danga.com/memcached/
*
* Copyright 2003 Danga Interactive, Inc. All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the LICENSE file for... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_4699_0 |
crossvul-cpp_data_bad_5844_0 | /*
* IEEE 802.15.4 dgram socket interface
*
* Copyright 2007, 2008 Siemens AG
*
* 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 hope tha... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5844_0 |
crossvul-cpp_data_good_5765_0 | /*
* Kernel-based Virtual Machine driver for Linux
*
* This module enables machines with Intel VT-x extensions to run virtual
* machines without emulation or binary translation.
*
* Copyright (C) 2006 Qumranet, Inc.
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* Authors:
* Avi Kivity <avi@qumra... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5765_0 |
crossvul-cpp_data_good_5794_0 |
/*
* Local APIC virtualization
*
* Copyright (C) 2006 Qumranet, Inc.
* Copyright (C) 2007 Novell
* Copyright (C) 2007 Intel
* Copyright 2009 Red Hat, Inc. and/or its affiliates.
*
* Authors:
* Dor Laor <dor.laor@qumranet.com>
* Gregory Haskins <ghaskins@novell.com>
* Yaozu (Eddie) Dong <eddie.dong@int... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5794_0 |
crossvul-cpp_data_bad_4789_1 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_4789_1 |
crossvul-cpp_data_good_4783_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_4783_0 |
crossvul-cpp_data_good_1560_0 | /*
* Copyright (c) 1993, 1994, 1995, 1996
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragraph in... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_1560_0 |
crossvul-cpp_data_good_2891_8 | /* procfs files for key database enumeration
*
* Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.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 Softwa... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_2891_8 |
crossvul-cpp_data_bad_5315_0 | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... | ./CrossVul/dataset_final_sorted/CWE-20/c/bad_5315_0 |
crossvul-cpp_data_good_5523_1 | /*
* Copyright 1999-2006, Gisle Aas.
*
* This library is free software; you can redistribute it and/or
* modify it under the same terms as Perl itself.
*/
#ifndef EXTERN
#define EXTERN extern
#endif
EXTERN SV*
sv_lower(pTHX_ SV* sv)
{
STRLEN len;
char *s = SvPV_force(sv, len);
for (; len--; s++)
*... | ./CrossVul/dataset_final_sorted/CWE-20/c/good_5523_1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.