text stringlengths 7 961k |
|---|
//! [snippet1]
// We include what we need for the test
#include <gatb/gatb_core.hpp>
using namespace std;
/********************************************************************************/
/* Sorting count */
/* ... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/table_cache.h"
#include "db/filename.h"
#include "hyperleveldb/env.h"
#include "hyperleve... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2004, 2011 Ferdinando Ametrano
Copyright (C) 2004, 2005 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactionrecord.h"
... |
#if defined(_WIN32)
#ifndef NOMINMAX
#define NOMINMAX
#endif
#endif
#define TINYEXR_IMPLEMENTATION
#define MINIZ_HEADER_FILE_ONLY
#include "tinyexr.h" |
#include "AddStation.h"
#include "ui_AddStation.h"
#include "Admin.h"
#include "CStation.h"
#include "CIntersite.h"
#include "ManageIntersite.h"
#include "ui_ManageIntersite.h"
#include "CSubwayMap.h"
#include "CLine.h"
#include <QMessageBox>
//构造函数
AddStation::AddStation(QWidget *parent) : QDialog(parent),
... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "mkldnn_graph_optimizer.h"
#include "mkldnn_extension_utils.h"
#include "nodes/mkldnn_reshape_node.h"
#include "nodes/mkldnn_pooling_node.h"
#include "nodes/mkldnn_eltwise_node.h"
#include "nodes/mkldnn_concat_node.h"
#inc... |
// ImGui Win32 + DirectX12 binding
// FIXME: 64-bit only for now! (Because sizeof(ImTextureId) == sizeof(void*))
// Implemented features:
// [X] User texture binding. Use 'D3D12_GPU_DESCRIPTOR_HANDLE' as ImTextureID. Read the FAQ about ImTextureID in imgui.cpp.
// You can copy and use unmodified imgui_impl_* files i... |
#include "App.h"
#include <wx/log.h>
#include <wx/sysopt.h>
#include "MainFrame.h"
bool App::OnInit()
{
wxLog * logger = new wxLogStream(&std::cerr);
wxLog::SetActiveTarget(logger);
#ifndef __WXMSW__
wxLogError("This is an MS Windows app. Sorry.");
return false;
#endif
wxInitAllImageHandlers();
wxSystemOption... |
// The code is open source under the MIT license.
// Copyright 2019-2020, Phillip Keldenich, TU Braunschweig, Algorithms Group
// https://ibr.cs.tu-bs.de/alg
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to de... |
/**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2010-2011 Oleg Linkin
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... |
#include "StandardBoxSeries.h"
#include "Engine/World.h"
AStandardBoxSeries::AStandardBoxSeries()
{
SeriesCount = 0;
}
void AStandardBoxSeries::BeginPlay()
{
Super::BeginPlay();
// Destroy any boxes if they exist
if (SeriesBoxes.Num() > 0)
{
for (AActor* box : SeriesBoxes)
{
box->Destroy();
}
}
// I... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkAddIntersections.h"
#include "SkOpCoincidence.h"
#include "SkPathOpsBounds.h"
#if DEBUG_ADD_INTERSECTING_TS
static void debugShowLineIntersection(int pts, const S... |
/*************************************************************************
*
* Copyright 2018 Realm 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/lice... |
#include "os/c-api/il2cpp-config-platforms.h"
#if IL2CPP_TARGET_OSX
#include "os/SystemCertificates.h"
#include <Security/SecTrust.h>
#include <Security/SecCertificate.h>
#include <Security/SecImportExport.h>
namespace il2cpp
{
namespace os
{
void* SystemCertificates::OpenSystemRootStore()
{
CFArrayR... |
/*
pxCore Copyright 2005-2018 John Robinson
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 writing, s... |
/* Copyright 2018 The TensorFlow 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 applicable law or a... |
//------------------------------------------------------------------------------
/*
This file is part of cbcd: https://github.com/cbc/cbcd
Copyright (c) 2012, 2013 cbc Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, pro... |
class Solution {
public:
void subss(vector<vector<int>>& res,vector<int>& nums, vector<int> ans, int i) {
if(i == nums.size())
{
res.push_back(ans);
return;
}
subss(res, nums, ans, i+1);
ans.push_back(nums[i]);
subss(res, nums... |
/*********************************************************\
* File: Pipe.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... |
/*
* pt.cpp
*
* Purpose: Token Passing
*
* Ma, H., Li, J., Kumar, T. K. S., & Koenig, S. (2017).
* Lifelong Multi-Agent Path Finding for Online Pickup and Delivery Tasks.
*
* Created by: Keisuke Okumura <okumura.k@coord.c.titech.ac.jp>
*/
#include "tp.h"
#include <iomanip>
#include "../util/util.h"
TP::TP(P... |
// 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/ui/views/panels/panel_view.h"
#include <map>
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
#include ... |
// RUN: %clang_cc1 -E %s -o - | FileCheck %s
#if __has_feature(has_nothrow_assign)
int has_nothrow_assign();
#endif
// CHECK: int has_nothrow_assign();
#if __has_feature(has_nothrow_copy)
int has_nothrow_copy();
#endif
// CHECK: int has_nothrow_copy();
#if __has_feature(has_nothrow_constructor)
int has_nothrow_const... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "gamerules.h"
#include "npcevent.h"
#include "in_buttons.h"
#include "engine/IEngineSound.h"
#if defined( CLIENT... |
#include "googletest/googletest/include/gtest/gtest.h"
#include "main.h"
#include "wallet.h"
// how many times to run all the tests to have a chance to catch errors that only show up with particular
// random shuffles
#define RUN_TESTS 100
// some tests fail 1% of the time due to bad luck.
// we repeat those tests t... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#incl... |
/*
* Copyright (c) 2016, Matias Fontanini
* 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 ... |
// *****************************************************************************
// *****************************************************************************
// Copyright 2012 - 2013, Cadence Design Systems
//
// This file is part of the Cadence LEF/DEF Open Source
// Distribution, Product Version 5.8.
/... |
// Copyright 2012 the V8 project authors. 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 ... |
// 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 "net/proxy/proxy_resolver_v8_tracing.h"
#include "base/bind.h"
#include "base/message_loop/message_loop_proxy.h"
#include "base/metrics/hist... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... |
// -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*-
/***********************************************************************
*
* nopaxos/replica.cc:
* NOPaxos Replication protocol replica implementation.
*
* Copyright 2016 Jialin Li <lijl@cs.washington.edu>
*
* Permission is hereby granted, free of ch... |
//===--- Passes/RegReAssign.cpp -------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
* Copyright (C) 2005, 2008, 2010 Apple Inc. All rights reserved.
* Copyright (C) 2006 Alexey Proskuryakov
*
* 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 t... |
// CToolClearCard.cpp: 实现文件
//
#include "stdafx.h"
#include "ICCardSystem.h"
#include "CToolClearCard.h"
#include "afxdialogex.h"
// CToolClearCard 对话框
IMPLEMENT_DYNAMIC(CToolClearCard, CDialogEx)
CToolClearCard::CToolClearCard(CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_TOOLCLEARCARD, pParent)
{
}
CToolClearC... |
//
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... |
/* Copyright 2018 The Blueoil 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 applicable law or agre... |
#define LIBRAW_LIBRARY_BUILD
#include "libraw_types.h"
#include "libraw.h"
#include "libraw_datastream.h"
#include "libraw_bytebuffer.h"
#ifdef USE_JASPER
#include <jasper/jasper.h> /* Decode RED camera movies */
#else
#define NO_JASPER
#endif
LibRaw_byte_buffer::LibRaw_byte_buffer(unsigned sz)
{
buf=0; size=sz... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
#include "absl/container/inlined_vector.h"
#include "tensorflow/c/kernels.h"
#include "tensorflow/c/ops.h"
#include "tensorflow/c/tf_datatype.h"
#include "tensorflow/c/tf_status.h"
#include <iostream>
#include <memory>
#include <vector>
namespace demo_plugin {
struct StatusDeleter {
void operator()(TF_Status* s) {... |
#include <Windows.h>
#include <iostream>
#include "CameraDriver.h"
#include "setup_config.h"
#include "Color.h"
#include "Shader.h"
#include "Cylinder.h"
#include "camera_definition.h"
#include "Paraboloid.h"
#include "CurvedBlade.h"
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavutil/imgutils.h>
#... |
////////////////////////////////////////////////////////////////////////////////
//
// The University of Illinois/NCSA
// Open Source License (NCSA)
//
// Copyright (c) 2021-2021, Advanced Micro Devices, Inc. All rights reserved.
//
// Developed by:
//
// AMD Research and AMD HSA Software Development
//... |
// Copyright 2014 Google Inc. 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 applicable... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.11
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. D... |
#include <ctype.h>
#include <memory>
#include <cstring>
#include <mobrend/uniform_layout.h>
namespace mr
{
/// @note source is assumed to be at the beginning of a glsl type
static void GetNextWord(const char **source, std::string &outWord)
{
const char *nextSpace = *source;
while(isalnum(*nextSpace)) nextSpac... |
#ifndef CPP_WEB_SERVER_HTTP_SERVER_HPP
#define CPP_WEB_SERVER_HTTP_SERVER_HPP
#include "async_web_server_cpp/http_connection.hpp"
#include "async_web_server_cpp/http_request_handler.hpp"
#include <boost/asio.hpp>
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include <boost/shared_ptr.hpp>
#include <... |
//! \file
/*
** Copyright (C) - Triton
**
** This program is under the terms of the BSD License.
*/
#include <astDictionaries.hpp>
namespace triton {
namespace ast {
AstDictionaries::AstDictionaries() {
this->allocatedNodes = 0;
this->linkDictionaries();
}
AstDictionaries::AstDictiona... |
// Copyright 2015-2019 Autoware Foundation
//
// 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 ... |
/*
* Copyright 2001-2002,2004 The Apache Software Foundation.
*
* 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 requir... |
// 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/views/widget/desktop_aura/desktop_screen_win.h"
#include "base/logging.h"
#include "ui/aura/window.h"
#include "ui/aura/window_event_dis... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2017 HPCC Systems®.
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... |
// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
#ifndef ROCKSDB_LITE
#include "utilities/persistent_cache/vola... |
#include "peripherals/stm32f4xx/system_controller.hpp"
#include <array>
#include <cstdint>
#include <numeric>
#include "platforms/targets/stm32f4xx/stm32f4xx.h"
#include "testing/testing_frameworks.hpp"
#include "utility/math/units.hpp"
namespace sjsu::stm32f4xx
{
TEST_CASE("Testing stm32f4xx SystemController")
{
... |
/***************************************************************************
*
* 19.exceptions.mt.cpp - test exercising the thread safety
* of C++ Standard Library exception classes
*
* $Id$
*
***************************************************************************
*
* Licensed to the... |
#include <WinSock2.h>
#include <Windows.h>
#include "options.h"
#include "Commands/commands.h"
#include <Utils/crash_handler.h>
#include <iostream>
#include <filesystem>
int main(int argc, char** argv) {
install_crash_handler();
SetConsoleOutputCP(CP_UTF8);
if (!utils::processes::elevated(GetCurrentProcess()))
... |
#include "ace/OS_main.h"
#include "ace/SPIPE_Addr.h"
#include "ace/SPIPE_Acceptor.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
#include "ace/Time_Value.h"
#if defined (ACE_HAS_STREAM_PIPES)
#include "shared.h"
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_SPIPE_Accep... |
// dear imgui: standalone example application for GLFW + OpenGL 3, using programmable pipeline
// If you are new to dear imgui, see examples/README.txt and documentation at the top of imgui.cpp.
// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creat... |
///////////////////////////////////////////////////////////////////////
// Nori - a simple game engine
// Copyright (c) 2009 Camilla Berglund <elmindreda@elmindreda.org>
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any
// damages ar... |
/*
* Copyright © 2017 Vincent Lachenal
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
#include "customerDAO.hpp"
#include <sstream>
#include <opt... |
// Copyright 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 "config.h"
#include "cc/math_util.h"
#include "FloatQuad.h"
#include "FloatSize.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/rect_conversions.h... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: builds an intended movement command to send to the server
//
// $Workfile: $
// $Date: $
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#inclu... |
/* Copyright (c) 2010-2019, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
*... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2015 The Khronos Group Inc.
* Copyright (c) 2015 Imagination Technologies Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use ... |
#include <iostream>
#include <QVector>
#include <cassert>
using namespace std;
int main ()
{
QVector<int> myQVector;
QVector<int>::iterator it;
myQVector.push_back (100);
myQVector.push_back (200);
myQVector.push_back (300);
cout << "myQVector contains:";
for (it=myQVector.begin(); it!=myQVector.end();... |
/*
* The MIT License
*
* Copyright 2019 Palmtree Software.
*
* 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, co... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// This file was modified by Oracle on 2014.
// Modifications copyright (c) 2014 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Use, m... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll N;
bool isp(ll n) {
if(n <= 1) {
return false;
}
for(ll i = 2; i <= sqrt(n); i++) {
if(n % 2 == 0) {
return false;
}
}
return true;
}
int main() {
cin.tie(0)->sync_with_stdio(0);
#ifnde... |
/*
* Class myInsolation
* Description:
* Calculate total insolation at time of day in weather from
* a surface
*
* By: Dave Gutz February 2021
* 16-Feb-2021 New
*
//
// MIT License
//
// Copyright (C) 2021 - Dave Gutz
//
// Permission is hereby granted, free of charge, to any person obtaining a cop... |
#include "qblowfishtest.h"
#include "qblowfish.h"
void QBlowfishTest::blowfishTest_data()
{
QTest::addColumn<QString>("key");
QTest::addColumn<QString>("clearText");
QTest::addColumn<QString>("cipherText");
// Test vectors by Eric Young
// from http://www.schneier.com/code/vectors.txt
QTest::... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
/*
* DIPlib 3.0
* This file contains definitions of functions that implement the non-maximum suppression.
*
* (c)2017-2019, Cris Luengo.
* Based on original DIPlib code: (c)1995-2014, Delft University of Technology.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... |
#include <gtest/gtest.h>
#include <rai/node/testing.hpp>
#include <thread>
TEST (system, generate_mass_activity)
{
rai::system system (24000, 1);
system.wallet (0)->insert_adhoc (rai::test_genesis_key.prv);
size_t count (20);
system.generate_mass_activity (count, *system.nodes[0]);
size_t accounts (0);
auto tra... |
#define __STDC_WANT_LIB_EXT1__ 1
#include <assert.h>
#include <signal.h>
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
#include <array>
#include <iostream>
#include <string>
#include <string_view>
#include <vector>
#include <argtable3.h>
#include "minidns/minidns.h"
#ifdef MD_ENABLE_IPV6_STACK
#define DEF... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
/* This file is automatically generated; do not edit. */
/* Add the files to be included into Makefile.am instead. */
#include <ql/experimental/templatemodels/vanillalocalvol/vanillalocalvolmodels.hpp>
#include <ql/experimental/templatemodels/vanillalocalvol/vanillalocalvolmodelT.hpp> |
/**
* 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 ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_declare_cpy_82_goodG2B.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__dest.label.xml
Template File: sources-sink-82_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: ... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
#ifndef MODELFUNCTIONS_HPP
#define MODELFUNCTIONS_HPP
Doub do_normal_partitioning_single ( Doub level , Doub proba , StochSimulator* stoch_simulator )
{
Doub new_level = 0. ;
for (Int m=0;m<level;m++)
{
if ( stoch_simulator->ran.doub () < proba ) new_level ++ ;
}
return new_level ;
}
void... |
/**
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "DensityDubinin.h"
#include "MaterialLib/... |
#include "source/extensions/filters/http/oauth2/filter.h"
#include <algorithm>
#include <chrono>
#include <memory>
#include <string>
#include <vector>
#include "source/common/common/assert.h"
#include "source/common/common/empty_string.h"
#include "source/common/common/enum_to_int.h"
#include "source/common/common/fm... |
// Copyright (c) 2019-2021 The Danxome Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/data.h>
namespace benchmark {
namespace data {
#include <bench/data/block413567.raw.h>
const std::vector<ui... |
/****************************************************************************
**
** Copyright (C) 2011 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Stephen Kelly <stephen.kelly@kdab.com>
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtGui module of the Qt Toolkit.
*... |
#include "grid-content/contentServer/corba/client/ClientImplementation.h"
#include "grid-content/contentServer/http/client/ClientImplementation.h"
// #include "grid-content/contentServer/postgres/PostgresImplementation.h"
#include "grid-content/contentServer/redis/RedisImplementation.h"
#include <macgyver/Exception.h>
... |
/*
** Copyright (C) 1993/1994, OFFIS, Oldenburg University and CERIUM
**
** This software and supporting documentation were
** developed by
**
** Institut OFFIS
** Bereich Kommunikationssysteme
** Westerstr. 10-12
** 26121 Oldenburg, Germany
**
** Fachbereich Informatik
** Abteilung Prozes... |
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "bitcoinrpc.h"
#include "guiutil.h"
#include <QTime>
#include <QTimer>
#include <QThread>
#include <QTextEdit>
#include <QKeyEvent>
#include <QUrl>
#include <QScrollBar>
#include <boost/tokenizer.hpp>
#include <openssl/crypto.h>
//... |
// Copyright 2016 Etix Labs
//
// 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 wr... |
#include "simlib/defer.hh"
#include <gtest/gtest.h>
// NOLINTNEXTLINE
TEST(DISABLED_Defer, constructor) {
// TODO: implement it
}
// NOLINTNEXTLINE
TEST(DISABLED_Defer, copy_constructor) {
// TODO: implement it
}
// NOLINTNEXTLINE
TEST(DISABLED_Defer, move_constructor) {
// TODO: implement it
}
// NOLI... |
#include <action_agent.h>
#include <thread>
#include <ctime>
#include <filesystem>
#include <any_container/encode.h>
#include <tree_editor/common/debug_cmd.h>
#include <magic_enum.hpp>
using namespace spiritsaway::behavior_tree::common;
using namespace spiritsaway::behavior_tree::runtime;
using namespace spiritsaway... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "hermes/VM/DecoratedObject.h"
#include "hermes/VM/Runtime-inline.h"
namespace hermes {
namespace vm {
//===-------------... |
/*++
Copyright (c) 1991-1999 Microsoft Corporation
Module Name:
filedir.cxx
--*/
#include <pch.cxx>
#define _UFAT_MEMBER_
#include "ufat.hxx"
#include "error.hxx"
DEFINE_EXPORTED_CONSTRUCTOR( FILEDIR, FATDIR, UFAT_EXPORT );
VOID
FILEDIR::Construct (
)
/*++
Routine Description:
Constructor for FIL... |
/*
* Copyright 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
#include <string>
#include <random>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <typeinfo>
#include <tuple>
#ifdef _MSC_VER
#include <Windows.h>
#else
#include <unistd.h>
#endif
using namespace std;
string token = "CDDWWCMTEL9DCK15I5VS... |
#include "GetTopKTask.h"
#include <vector>
#include "Communication/TextualSearchResultsImpl.h"
#include "Communication/Serializor.h"
using namespace std;
void GetTopKTask::ProcessTask(const std::string &data) {
TextualSearchResultsImpl& service = static_cast<TextualSearchResultsImpl&>(*m_service.get());
Seri... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2022 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages a... |
// Copyright (c) 2018 The Chromium Embedded Framework 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 file was generated by the CEF translato... |
#include "OBJLoader.h"
#include <string>
bool OBJLoader::FindSimilarVertex(const SimpleVertex& vertex, std::map<SimpleVertex, unsigned short>& vertToIndexMap, unsigned short& index)
{
auto it = vertToIndexMap.find(vertex);
if(it == vertToIndexMap.end())
{
return false;
}
else
{
index = it->second;
return t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.