text stringlengths 7 961k |
|---|
// 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/chromeos/cros/onc_network_parser.h"
#include <cert.h>
#include <keyhi.h>
#include <pk11pub.h>
#include "base/file_util.h"
#... |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2012-2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... |
/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Information about PSD files... |
/*
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR... |
#include <stdexcept>
#include <algorithm>
#include "varexp.h"
#include "auto_dir.h"
#if defined(_WIN32)
# include <io.h>
# define F_OK 0
# define X_OK 0
#else
# include <unistd.h>
#endif
#include "fileexp.h"
/*
copyright (c) 2004, 2005, 2015 squell <squell@alumina.nl>
use, modification, copying and d... |
/*
*********************************************************************************************************
* LPC 2378
*
* (c) Copyright 2008, Bogdan Kowalczyk, POLAND
* All Rights Reserved
*
*
* File: mw... |
/*
* Copyright (c) 2020 Samsung Electronics Co., Ltd. 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... |
// MIT License
//
// Copyright (c) 2021-2022. Seungwoo Kang
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy,... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
/******************************************************************************
*
* Project: NITF Read/Write Translator
* Purpose: GCP / RPC Georeferencing Model (custom by/for ESRI)
* Author: Frank Warmerdam, warmerdam@pobox.com
*
******************************************************************************... |
//
// Copyright 2016 Pixar
//
// 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 wri... |
// Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// 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 Fre... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a[1000010];
int main(){
ll n;
cin>>n;
for(ll i=0;i<n;i++) cin>>a[i];
// El algoritmo en n^2 da time limit ya que n<=10^5
// entonces, n^2<=10^10 (time limit)
ll ans=0;
for(ll bit=0;bit<21;bit++){
ll unos=0,zeros=0;
for(ll i=0;i<n;i++)... |
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... |
/* Copyright 2017 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... |
// Copyright (c) 2011-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.
//
// The following only... |
/*
Copyright 2015 Larry Gritz and the other authors and contributors.
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... |
//$Id$
//------------------------------------------------------------------------------
// GmatConsole driver
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2020 United States Government as rep... |
/*
This file is a part of the NVDA project.
Copyright 2018 NV Access Limited.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2.0, as published by
the Free Software Foundation.
This program is distributed in the hope that ... |
#include <iostream>
#include <iomanip>
using namespace std;
int main(int argc, const char * argv[])
{
int n, mid, i, j, bot, m[100][100];
while(cin >> n && n != 0){
mid = ( n%2 == 0 ? n/2 : (n/2)+1);
for(i = 0; i < mid; i++) {
bot = (n-1)-i;
for(j = i; j <... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
#pragma once
#ifndef _GAME_H_
#define _GAME_H_
#include "Shader.hpp"
#include "SimpleLogger.hpp"
/*
* @brief returns time since the program began
* @return time
*/
sf::Clock getClock();
/*
* @brief returns a pointer to the game window
* @return pointer to RenderWindow
*/
sf::RenderWindow* getWindow();
/*
* @brief i... |
#include <bgfx/bgfx.h>
#include <map>
#include "Canvas.h"
#include "Context.h"
#include "MeasureText.h"
// disable anonymous struct warning
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#include "nanovg/nanovg.h"
#pragma GCC diagnostic pop
namespace Babylon::Polyfills::Internal
{
static c... |
#include <iostream>
using namespace std;
double fun(double xx){
double bn = 0.5, an = 0.5*xx, sn = 1.0;
int fac = 1, i = 1;
sn += an;
double z;
if(an < 0) z = -an;
else z = an;
while(z >= 0.000001){
fac *= i+1;
bn = (double)bn*(0.5-i);
xx *= xx;
an = (double... |
#include <iostream>
#include <fstream>
#include <sstream>
int main() {
std::ifstream myfile;
myfile.open("2012-10-23-Combined.txt", std::ios::in);
std::string line;
std::cout << line.capacity() << std::endl;
while (getline(myfile, line)) {
if (line.find("") != -1) { break; }
}
std::cout << lin... |
// Copyright (c) 2018-2020, The Italo Project
// Copyright (c) 2017-2019, The Monero Project
//
// 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 ... |
#include "PathFinder.h"
#include "ofAppBaseWindow.h"
namespace Cog {
void PathFinder::CalcPathFromSteps(Vec2i start, Vec2i goal, unordered_map<Vec2i, Vec2i>& steps, vector<Vec2i>& output) const {
Vec2i current = goal;
output.push_back(current);
while (current != start) {
current = steps[current];
output.... |
// 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 "build/build_config.h"
// Need to include this before most other files because it defines
// IPC_MESSAGE_LOG_ENABLED. We need to use it to d... |
// Generated from Lua.g4 by ANTLR 4.8
#include "LuaLexer.h"
using namespace antlr4;
using namespace luaparser;
LuaLexer::LuaLexer(CharStream *input) : Lexer(input) {
_interpreter = new atn::LexerATNSimulator(this, _atn, _decisionToDFA, _sharedContextCache);
}
LuaLexer::~LuaLexer() {
delete _interpreter;
}
s... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: Org.BouncyCastle.Asn1... |
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
#ifndef SHASTA_MEMORY_MAPPED_UNDIRECTED_GRAPH_HPP
#define SHASTA_MEMORY_MAPPED_UNDIRECTED_GRAPH_HPP
// Shasta
#include "deduplicate.hpp"
#include "MemoryMappedVector.hpp"
#include "MemoryMappedVectorOfVectors.hpp"
// Standard library.
#include "chrono.hpp"
#include "iterator.hpp"
#include <limits>
#include <map>
#inc... |
#ifndef NUMPP_STRUCTURES_MATRICES_DENSE_FUNCTIONS_HPP_
#define NUMPP_STRUCTURES_MATRICES_DENSE_FUNCTIONS_HPP_
#include"./operations.hpp"
#include<cmath>
namespace numpp::matrix{
namespace impl{
template<typename T, std::size_t Rows, std::size_t Columns, std::size_t... Index>
constexpr auto transpose_row_e... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkXfermode.h"
#include "Test.h"
#if SK_SUPPORT_GPU
#include "GrContextFactory.h"
#include "GrContextOptions.h"
#include "GrGpu.h"
#include "GrResourceProvider.h"
#... |
#include "plugins/telemetry/telemetry.h"
#include <limits>
#include <cmath>
#include "telemetry_impl.h"
namespace dronecode_sdk {
Telemetry::Telemetry(System &system) : PluginBase(), _impl{new TelemetryImpl(system)} {}
Telemetry::~Telemetry() {}
Telemetry::Result Telemetry::set_rate_position_velocity_ned(double r... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_delete_array_class_12.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_delete_array.label.xml
Template File: sources-sinks-12.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Managemen... |
/********************************************************************************
* This file is part of CinoLib *
* Copyright(C) 2016: Marco Livesu *
* ... |
// Copyright 2021 Tier IV, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
// 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 "config.h"
#include "core/animation/ColorStyleInterpolation.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/resolver/StyleBuilder.... |
#include "clientdata_operation.h"
#include "sample_libcrypto.h"
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string.h>
#include <openssl/aes.h> // sudo apt-get install libssl-dev
// #include <sample_libcrypto.h>
using namespace std;
#include <cstdlib>
#include <time.h>
/* These are used for u... |
#include "board.h" |
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
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 (C) 2012 Vicente J. Botet Escriba
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// <boost/thread/locks.hpp>
// template <class Mutex> class unique_lock;
// unique_lock<Mutex> make_unique_lock(M... |
/*******************************************************************************
* Copyright 2019-2020 Intel Corporation
*
* 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.apa... |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
/// @ref core
/// @file glm/detail/type_mat3x2.hpp
#pragma once
#include "../fwd.hpp"
#include "type_vec2.hpp"
#include "type_vec3.hpp"
#include "type_mat.hpp"
#include <limits>
#include <cstddef>
namespace glm
{
template<typename T, precision P>
struct mat<3, 2, T, P>
{
typedef vec<2, T, P> col_type;
typedef... |
/*
* Copyright 2016-2017, Intel Corporation
*
* 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 ... |
/**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* 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 t... |
/** @file "/owlcpp/binding/python/factpp_kernel.cpp"
part of owlcpp project.
@n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt.
@n Copyright Mikhail K Levin 2013
*******************************************************************************/
#include "boost/python.hpp"
#include "bo... |
// Copyright 2018 Nesterov Alexander
#include <omp.h>
#include <vector>
#include <random>
#include <algorithm>
#include <iostream>
#include <list>
#include "../../task_2/kulemin_p_discharge_double_sort_omp/kulemin_p_discharge_double_sort_omp.h"
vector* create_random_vector(int size_n) {
std::random_device dev;
... |
/**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* 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 t... |
// @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85... |
/*
* primitive.cc
* Avida
*
* Copyright 1999-2011 Michigan State University. All rights reserved.
*
*
* This file is part of Avida.
*
* Avida 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... |
/*
* AntiDupl Dynamic-Link Library.
*
* Copyright (c) 2002-2015 Yermalayeu Ihar.
*
* 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 right... |
/*
* View2DGL.cpp
*
* Copyright (C) 2009 - 2010 by VISUS (Universitaet Stuttgart).
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "mmcore/view/View2DGL.h"
#include "json.hpp"
#include "mmcore/CoreInstance.h"
#include "mmcore/param/BoolParam.h"
#include "mmcore/param/ButtonParam.h"
#include "mmcore/par... |
#pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// 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 Licen... |
/*
Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc. All rights reserved.
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, ... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestAnimationScene.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwa... |
#ifndef WANDERERS
#define WANDERERS
#include <iostream>
#include <vector>
#include <list>
#include <arena/Evaluation.hpp>
#include "Level.hpp"
#include "Wanderer.hpp"
#include "WandererBipedal.hpp"
extern Evaluation _evaluation;
#define WANDERER_ID_HUMAN 0
#define WANDERER_ID_ROBOT 1
#define WANDERER_ID_ROBOT_PEPP... |
/*
* Copyright (C) 2020 Open Source Robotics 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 appl... |
/******************************************************************************
*
* Purpose: Implementation of Prologue class. Parse the prologue of one
* repeat cycle and keep the interesting info.
* Author: Bas Retsios, retsios@itc.nl
*
**************************************************************... |
#include <string>
#include <iostream>
#include <SFML\Graphics.hpp>
#include <SFML\Window.hpp>
int main()
{
std::cout << "Hello World.\n";
sf::Window window(sf::VideoMode(640, 480), "SFML_Window");
while (window.isOpen())
{
sf::Event sfmlEvent;
while (window.pollEvent(sfmlEvent))
{
switch (sfmlEvent.type)... |
//*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// 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://w... |
#include "Ext2.h"
#include <Assert.h>
#include <Errno.h>
#include <Logging.h>
#include <Math.h>
#include <Module.h>
#include <Debug.h>
#ifdef EXT2_ENABLE_TIMER
#include <Timer.h>
#endif
namespace fs {
static int ModuleInit() {
Ext2::Instance();
return 0;
}
static int ModuleExit() {
Ext2::Instance().~... |
// Copyright 2016-2020 Diana Koenraadt (Falcons)
// SPDX-License-Identifier: Apache-2.0
/*
* GameSignalSubscriberStub.cpp
*
* Created on: May 8, 2016
* Author: Diana Koenraadt
*/
#include <string>
#include <sstream>
#include <iomanip>
#include <ctime>
#include "GameSignalSubscriberStub.h"
#include "falcons... |
// Copyright (c) 2019 Ste||ar Group
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <hpx/config.hpp>
#include <hpx/async_distributed/config/defines.... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE590_Free_Memory_Not_on_Heap__delete_long_declare_52c.cpp
Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.nonpointer.label.xml
Template File: sources-sink-52c.tmpl.cpp
*/
/*
* @description
* CWE: 590 Free Memory Not on Heap
* BadSource: declare Data buffe... |
// c++ -g subdivision_skinning_wrapper_test.cpp -o subdivision_skinning_wrapper_test ../build/lib/libsubdivision_skinning.a ../OpenSubdiv/build/lib/libosdCPU.a
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <cstdlib> // atoi
#include <cassert>
#include <cmath>
#include <algorithm... |
#include "MyGLWidget.h"
#include <iostream>
MyGLWidget::MyGLWidget (QWidget* parent) : QOpenGLWidget(parent), program(NULL)
{
setFocusPolicy(Qt::StrongFocus); // per rebre events de teclat
}
MyGLWidget::~MyGLWidget ()
{
if (program != NULL)
delete program;
}
void MyGLWidget::initializeGL ()
{
// Cal inic... |
// Copyright (c) 2012 The Chromium Embedded Framework Authors.
// Portions (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 "libcef/browser/browser_message_filter.h"
#include "libcef/browser/browser_inf... |
#include <iostream>
using namespace std;
class travel
{
private:
int km, hr;
public:
travel()
{
km = hr = 0;
}
void get()
{
cout << "Enter Kilometers Travelled:";
cin >> km;
cout << "Enter Hours Travelled: ";
cin >> hr;
}
void show()
{
... |
//==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// Se... |
/*=============================================================================
Copyright (c) 2001-2011 Hartmut Kaiser
Copyright (c) 2001-2011 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt... |
/* Copyright 2019-2021 Canaan Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
/**
* Copyright (c) Glow Contributors. See CONTRIBUTORS file.
*
* 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 b... |
/*
*
* Copyright (c) 1998-2002
* Dr John Maddock
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission... |
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software ... |
/**
* @author : theo (theo@$HOSTNAME)
* @file : main
* @created : Sunday Sep 29, 2019 12:11:14 MDT
*/
#include "Message.hpp"
#include "CmdVel.hpp"
int
main()
{
/*
* Create a cmd vel on the stack (faster insertions)
*/
CmdVel a;
/*
* Set the data (specific to cmd vel, not found in ... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/red/Event.hpp>
namespace RED4ext
{
namespace work {
struct ReactionFinishedEvent : red::Event
{
static constexpr const char* NAME = "workReactionF... |
// Copyright (c) 2018-2019 The Dash Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "quorums.h"
#include "quorums_blockprocessor.h"
#include "quorums_commitment.h"
#include "quorums_dkgsession.h"
#in... |
// 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/history/shortcuts_database.h"
#include <map>
#include <string>
#include <vector>
#include "base/guid.h"
#include "base/logg... |
/*-
* SPDX-License-Identifier: Zlib
*
* Copyright (c) 2009-2018 Rink Springer <rink@rink.nu>
* For conditions of distribution and use, see LICENSE file
*/
#include "kernel/device.h"
#include "kernel/irq.h"
#include "kernel/kmem.h"
#include "kernel/mm.h"
#include "kernel/lib.h"
#include "kernel/result.h"
#include "... |
#include "MainWindow.h"
#include "ui_MainWindow.h"
#include <QStackedLayout>
#include <QWebChannel>
#include <QWebEngineContextMenuData>
#include <QtWebEngineWidgets/QWebEngineView>
#include <QMenu>
#include <QSslConfiguration>
#include <QSslKey>
#include <QFile>
#include "JsContext.h"
#include "Inspector.h"
#include... |
#include "MapRange.h"
#include <limits>
#include <sstream>
namespace carto {
MapRange::MapRange() :
_min(std::numeric_limits<float>::infinity()),
_max(-std::numeric_limits<float>::infinity())
{
}
MapRange::MapRange(float min, float max) :
_min(min),
_max(max)
... |
#include "Colorful/Gfx/RenderPass.h"
#include "Colorful/Gfx/RenderSettings.h"
#include "Colorful/Gfx/IProfiler.h"
NAMESPACE_START(Gfx)
void IFrameGraphPass::setupCamera(const ICamera* camera)
{
assert(camera);
}
void FakeFrameGraph::renderScene(const RenderSettings* settings, const Scene* scene)
{
for (auto& pass ... |
/*
This file is part of cpp-ethereum.
cpp-ethereum 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 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... |
/// @file
/// @author rfree (current maintainer in italo.cc project)
/// @brief base for connection, contains e.g. the ratelimit hooks
// ! This file might contain variable names same as in template class connection<>
// ! from files contrib/epee/include/net/abstract_tcp_server2.*
// ! I am not a lawyer; afaik APIs, ... |
#pragma once
#include <boost/asio.hpp> // IWYU pragma: export
#include <boost/beast.hpp> // IWYU pragma: export
namespace beast = boost::beast; // from <boost/beast.hpp>
namespace http = beast::http; // from <boost/beast/http.hpp>
namespace websocket = beast::websocket; // from <b... |
/* banker_behaviour_test.cc
Wolfgang Sourdeau, 20 December 2012
Copyright (c) 2012 Datacratic Inc. All rights reserved.
Functional tests of the master and slave bankers
*/
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include <unordered_set>
#include "boost/test/unit_test.hpp"
#include "jml/arch/fo... |
/*
* This file is a part of the TChecker project.
*
* See files AUTHORS and LICENSE for copyright details.
*
*/
#ifndef TCHECKER_ZG_DETAILS_ZG_HH
#define TCHECKER_ZG_DETAILS_ZG_HH
#include "tchecker/basictypes.hh"
#include "tchecker/utils/iterator.hh"
#include "tchecker/variables/clocks.hh"
/*!
\file zg.hh
\b... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_environment_w32_execvp_62b.cpp
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-62b.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read input from an... |
/*************************************************************************/
/* animation.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "user.hpp"
User::User(){}
User::User(int id) : id(id) {}
User::User(int id, std::string email, std::string name, std::string surname, std::string password,
float wallet, bool disability, bool active_account, int id_user_category) :
... |
/// \file
// Range v3 library
//
// Copyright Eric Niebler 2013-present
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.com/ericniebler... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2017-2018 The PIVX developers
// Copyright (c) 2018 The QBICcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-li... |
/**
* Copyright (C) 2008 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,
* ... |
/*****************************************************************************
genomeCoverage.cpp
(c) 2009 - Aaron Quinlan
Hall Laboratory
Department of Biochemistry and Molecular Genetics
University of Virginia
aaronquinlan@gmail.com
Licenced under the GNU General Public License 2.0 license.
************************... |
/*********************************************************************
(c) Matt Marchant 2017 - 2021
http://trederia.blogspot.com
xygineXT - Zlib license.
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held
liable for any damages arising from the use of thi... |
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.