text stringlengths 7 961k |
|---|
// Copyright (c) 2001-2011 Hartmut Kaiser
//
// 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)
#if !defined(BOOST_SPIRIT_REPOSITORY_QI_ITER_POS_NOV_20_2009_1245PM)
#define BOOST_SPIRIT_REPOSITORY_QI_ITER_POS_NOV_2... |
#define USE_FILE_IO
#define NDEBUG
#define ALPHA 0.805
#include <cassert>
#include <cstring>
#include <climits>
#include <vector>
#include <random>
#include <fstream>
#include <sstream>
#include <algorithm>
using namespace std;
#ifndef USE_FILE_IO
#include <iostream>
using std::cin;
using std::cout;
#else
static if... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE415_Double_Free__new_delete_array_char_17.cpp
Label Definition File: CWE415_Double_Free__new_delete_array.label.xml
Template File: sources-sinks-17.tmpl.cpp
*/
/*
* @description
* CWE: 415 Double Free
* BadSource: Allocate data using new and Deallocae data using dele... |
/*Author: Hemanth Kumar Veeranki */
/*handle: harry7*/
/*header files*/
#include<bits/stdc++.h>
using namespace std;
/*debugging*/
#define out1(x)cout<<#x<<" is "<<x<<endl
#define out2(x,y)cout<<#x<<" is "<<x<<" "<<#y <<" is "<<y<<endl
#define out3(x,y,z)cout<<#x<<" is "<<x<<" "<<#y<<" is "<<y<<" "<<#z<<" is "<<z... |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "views/ime/input_method_win.h"
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/string_util.h"
#include "ui/base/keycod... |
#pragma once
namespace Input
{
// esc27 del127 enter13 space32
enum KeyKind
{
Enter = 13,
Esc = 27,
Space = 32,
Del = 127
};
void Init();
void InputKbd(unsigned char key, int x, int y);
void ReleaseKbd(unsigned char key, int x, int y);
int GetInput(un... |
/****************************************************************************
** Meta object code from reading C++ file 'QvisKeyframePlotRangeWidget.h'
**
** Created: Wed Nov 4 16:17:58 2015
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.3)
**
** WARNING! All changes made in this file will be lost!
********... |
/*******************************************************************************
* Copyright 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.apache.org/l... |
// XXX uniqID XXX af507f9e5788c84ed796ba260a7033a7 XXX
#include <gba_types.h>
#include "bullet.hpp"
#include "fixed.hpp"
#include "oohara/cutting_edge_of_notion.hpp"
extern const BulletStepFunc bullet_8690863efe7c1e7a074b9ca31515d7e9_af507f9e5788c84ed796ba260a7033a7[] = {
stepfunc_a709677a62e4f4990b9653a27109770... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkStrokeRec.h"
#include "src/core/SkRRectPriv.h"
#include "src/gpu/GrCaps.h"
#include "src/gpu/GrDrawOpTest.h"
#include "src/gpu/GrGeometryProcessor.h"
... |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/sys_info.h"
#include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <sys/param.h>
#include <sys/utsnam... |
#include "UIPageViewTest.h"
#include "cocos2d.h"
USING_NS_CC;
using namespace cocos2d::ui;
UIPageViewTests::UIPageViewTests()
{
ADD_TEST_CASE(UIPageViewTest);
ADD_TEST_CASE(UIPageViewButtonTest);
ADD_TEST_CASE(UIPageViewTouchPropagationTest);
ADD_TEST_CASE(UIPageViewDynamicAddAndRemoveTest);
ADD_T... |
#ifndef INCG_PHI_TESTS_RUNTIME_FAILURE_SETUP_DEBUG_REPORT_MODE_HPP
#define INCG_PHI_TESTS_RUNTIME_FAILURE_SETUP_DEBUG_REPORT_MODE_HPP
#if defined(_WIN32)
# include <crtdbg.h>
#endif
// This function setups the windows crt debug mode to not open any message boxes
static void SetupDebugReportMode()
{
#if defined(_WI... |
#include <unity.h>
#include "userrequestsrepository.h"
#include "..\lib\mocks\mockRequestsender.h"
#include "..\lib\mocks\mockIdgenerator.h"
const char TableId[33] = "FakeTableIdForTest";
UserRequestsRepository *_repository = nullptr;
MockRequestSender _mockRequestSender;
MockIdGenerator _mockIdGenerator;
void setUp... |
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#include "FBodyStateInputDevice.h"
#include "IHeadMountedDisplay.h"
#include "Runtime/Slate/Public/Framework/Application/SlateApplication.h"
#include "BodyStateInputInterface.h"
#include "BodyStateBoneComponent.h"
#include "BodyStateHMDSnapshot.h"
#include "... |
#include <bits/stdc++.h>
#define MAXN 2005
#define mp make_pair
#define fi first
#define se second
using namespace std;
const int d[4][2]={
{1,0},{-1,0},
{0,1},{0,-1}
};
int n,m,r,c,x,y,ans=1;
char g[MAXN][MAXN];
bool vis[MAXN][MAXN];
deque <pair<pair<int,int>,pair<int,int> > > q;
void BFS()
{
q.push_front(mp(mp(... |
/*
Copyright 2020 The OneFlow 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... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include <... |
//*****************************************************************************
// Copyright 2017-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://w... |
//----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... |
// RUN: %clang_cc1 -fexceptions -fcxx-exceptions %s -triple=i686-windows-msvc -emit-llvm -o - | FileCheck %s
// When generating thunks using musttail due to inalloca parameters, don't push
// and pop terminate scopes. PR44987
struct NonTrivial {
NonTrivial();
NonTrivial(const NonTrivial &o);
~NonTrivial();
in... |
/* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkAlgorithmWrap.h"
#include "vtkTemporalFractalWrap.h"
#include "vtkObjectBaseWrap.h"
#include "../../plus/plus.h"
using namespace v8;
exter... |
/* ************************************************************************
* Copyright 2016-2020 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include "testing_hemv.hpp"
#include "utility.h"
#include <gtest/gtest.h>
#include <math.h>
#include <stdexce... |
#include "offscreen_effect_player.hpp"
#include "offscreen_render_target.hpp"
#include "glfw_window.hpp"
#include "render_thread.hpp"
#include <bnb/spal/camera/ocv_based.hpp>
#define BNB_CLIENT_TOKEN <#Place your token here#>
int main()
{
int32_t width = 1280;
int32_t height = 720;
std::optional<std::s... |
// Scintilla source code edit control
/** @file Indicator.cxx
** Defines the style of indicators which are text decorations such as underlining.
**/
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <cm... |
#include <iostream>
using namespace std;
void Stretch(MATRIX3X3& , Pixels& , int );
void Rotate(MATRIX3X3& , Pixels& , int);
void Squeeze(MATRIX3X3& , Pixels& , int);
void Shearing(MATRIX3X3& , Pixels&);
void Flip(MATRIX3X3& , Pixels& , int);
void CopyMatrix(Pixels&, PixelsTransformed&, int, int)
void MultMatrix(MATRI... |
/// @ref gtx_color_encoding
/// @file glm/gtx/color_encoding.inl
namespace glm
{
template <typename T, precision P>
GLM_FUNC_QUALIFIER tvec3<T, P> convertLinearSRGBToD65XYZ(tvec3<T, P> const& ColorLinearSRGB)
{
tvec3<T, P> const M(0.490f, 0.17697f, 0.2f);
tvec3<T, P> const N(0.31f, 0.8124f, 0.01063f);
tvec3<... |
/*
* Copyright (C) 2019-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/utilities/metrics_library.h"
namespace NEO {
//////////////////////////////////////////////////////
// FUNCTION: MetricsLibrary::oaConfigurationActivate
///////////////////////////////////////////////////... |
#include "bitboard.hpp"
#include "../lib/euler.hpp"
#include <vector>
#include <cinttypes>
using namespace std;
typedef unsigned long ul;
// Encode each digit on the didital clock as
// top middle bottom left right left right
const vector<uint8_t> numbers = {0b1011111, 0b0000101,
0b... |
#include <iostream>
#include <cassert>
#include <stddef.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/sys_domain.h>
#include <sys/xattr.h>
#include <sys/fsgetpath.h>
#include <thread>
#include <unistd.h>
#include <dirent.h>
#include <queue>
#include <stack>
#include <memory>
#include <set>
#include <map... |
#include <stdio.h>
#include <Fw/Cfg/FwConfig.hpp>
// The following header will need to be modified when test code is moved
// If the component tester is regenerated, this will need to be modified again.
// Make the compile fail to make sure it is changed
#include <Svc/TlmChan/test/ut/TelemStoreComponentTestAc.hpp>
#inc... |
#ifndef BIGINTEGERALGORITHMS_H
#define BIGINTEGERALGORITHMS_H
#include "BigInteger.hh"
/* Some mathematical algorithms for big integers.
* This code is new and, as such, experimental. */
// Returns the greatest common divisor of a and b.
BigUnsigned gcd(BigUnsigned a, BigUnsigned b);
/* Extended Euclidean algorith... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include <pch.h>
#include <common.h>
#include "ItemsRepeater.common.h"
#include "FlowLayoutAlgorithm.h"
#include "UniformGridLayoutState.h"
#include "UniformGridLayo... |
#include "../../src/common.h"
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
std::string s = "even,evenleo,leo,kobe";
std::vector<std::string> vec = string_split(s, ',');
for (auto& i : vec)
{
std::cout << i << std::endl;
}
cout << "-------------" << en... |
#include "inventory.hpp"
#include "character.hpp"
#include "ctrl_file.hpp"
#include "random.hpp"
#include "save_fs.hpp"
namespace elona
{
namespace
{
bool is_nonstackable(const ItemRef& item)
{
return item->quality == Quality::special &&
is_equipment(the_item_db[item->id]->category);
}
bool is_stac... |
// Copyright (c) 2015-2017, RAPtor Developer Team
// License: Simplified BSD, http://opensource.org/licenses/BSD-2-Clause
#include "gtest/gtest.h"
#include "raptor.hpp"
using namespace raptor;
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
} // end of main... |
//*********************************************************
// Group_Data.cpp - network grid data class
//*********************************************************
#include "Group_Data.hpp"
//---------------------------------------------------------
// Group_Data constructor
//----------------------------------------... |
//---------------------------------------------------------------------------//
// Copyright (c) 2022 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2022 Ilias Khairullin <ilias@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softwa... |
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <time.h>
//#include "learner.h"
using namespace std;
//CLASSES
class Voice
{
public:
void say(string phrase); // Used to textually and audibly communicate a phrase
};
class Learner
{
string AIname_;
public:
Voice voice;
Learner(... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
//-------------------------------------------------
//
// Class: L1MuGMTEtaProjectionUnit
//
// Description: GMT Eta Projection Unit
//
//
//
// Author :
// H. Sakulin CERN EP
//
// Migrated to CMSSW:
// I. Mikulec
//
//--------------------------------------------------
//------------------... |
// 4047. 영준이의 카드 카운팅
// 2019.07.01
#include<iostream>
#include<string>
using namespace std;
int s[14];
int d[14];
int h[14];
int c[14];
int sCnt;
int dCnt;
int hCnt;
int cCnt;
void cal()
{
for (int i = 1; i <= 13; i++)
{
if (s[i] == 1)
{
sCnt++;
}
if (c[i] == 1)
{
cCnt++;
}
if (h[i] == 1)
{
... |
// Copyright Oliver Kowalke 2009.
// 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)
#ifndef BOOST_COROUTINES_DETAIL_HOLDER_H
#define BOOST_COROUTINES_DETAIL_HOLDER_H
#include <boost/assert.hp... |
#include "stdafx.h"
#define SECURITY_WIN32
#include <Security.h>
#pragma comment(lib, "Secur32.lib")
#include <Lmcons.h>
#include <comdef.h>
#include <taskschd.h>
#pragma comment(lib, "taskschd.lib")
#pragma comment(lib, "comsupp.lib")
#include <iostream>
#include <strutil.h>
#include <ProjectTelemetry.h>
using nam... |
#include "Communication.hpp"
#include <cmath>
#include <cassert>
#include <algorithm>
#include <strings.h>
// Apply the Unbalanced Recursive Bisection (URB) algorithm to establish the boxes
// (parts of the computational domain) that are assigned to MPI processes. The result
// is stored within dis.ulist data structur... |
//
// C_Relation.cpp
// galgas-developer
//
// Created by Pierre Molinaro on 22/05/14.
//----------------------------------------------------------------------------------------------------------------------
#include "bdd/C_Relation.h"
#include "utilities/C_SharedObject.h"
//---------------------------------------... |
/*
Copyright (c) 2007-2017 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distr... |
/*
*******************************************************************************
* Copyright (c) 2020-2021, STMicroelectronics
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You... |
//
// The MIT License(MIT)
//
// Copyright(c) 2014 Demonsaw LLC
//
// 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, c... |
// Example program
#include <iostream>
using namespace std;
int main()
{
int n, m;
cin >> n >> m;
int *a = new int[m];
long long time = 0;
int currentPos = 1;
for(int i = 0; i < m; i++){
cin >> a[i];
}
for(int i = 0; i < m; i++){
if( a[i] < currentPos... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/s3-crt/model/LambdaFunctionConfiguration.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
... |
#ifndef MYAWESOMEGAME_STATE_MANAGER_TRANSITION_HORIZONTAL_BARS_HPP
#define MYAWESOMEGAME_STATE_MANAGER_TRANSITION_HORIZONTAL_BARS_HPP
#include "shape.hpp"
#include "state_manager_transition_impl.hpp"
#include "vector.hpp"
namespace jt {
class StateManagerTransitionHorizontalBars : public StateManagerTransitionImpl {... |
#include "randNumListGen.h"
randNumListGen::randNumListGen()
{
}
randNumListGen::~randNumListGen()
{
}
std::vector<int> randNumListGen::getNumList() {
return vInt;
}
std::vector<int> randomizedList(int numValues, int low, int high) {
srand(time(NULL));
std::vector<int> vInt;
int x;
for (int i = 0; i < numValue... |
// Fill out your copyright notice in the Description page of Project Settings.
// Parent
#include "NT_PlayerController.h"
// Unreal
#include "GameFramework/PlayerState.h"
#include "Interfaces/NetworkPredictionInterface.h"
#include "GameFramework/PawnMovementComponent.h"
// NT
#include "NT_GameInstance.h"
#include "A... |
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2020 Aerll - aerlldev@gmail.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softwareand associated documentation files(the "Software"), to deal
// in the Software without r... |
#include "FileSplitter.h"
#include "FileMerger.h"
#include <iostream>
using namespace external_sort;
int main(int argc, const char* argv[]) {
if (argc < 3) {
std::cout << "Not enough parameters. Example usage: external_sort file_for_sort.txt sorted.txt\n";
return -1;
}
try {
File... |
#include "color.h"
Color::Color()
{
this->_color = 0;
this->s_color = "none";
}
Color::Color(Uint32 color)
{
this->_color = color;
this->s_color = "none";
}
Color::Color(string color)
{
this->_color = 0;
this->s_color = color;
calc(color);
}
void Color::calc(string color)
{
const int size = color.size();
... |
#include "io.hpp"
#include "boost/filesystem.hpp"
#include "google/protobuf/text_format.h"
#include "google/protobuf/util/json_util.h"
#include "fmt/format.h"
namespace is {
namespace fs = boost::filesystem;
namespace gio = google::protobuf::io;
void load(std::string const& filename, google::protobuf::Message* messa... |
/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... |
//
// DetectorExample_XENON10.hh
//
// Added by Quentin Riffard, September 10, 2021
//
// This header file is a preliminary attempt to add a G3 detector
// to be used for sensitivity and projection studies.
//
// Note: Parameters here are subject to change based on future
// performance studies
//
#ifndef NEST_DETECTOR... |
/*
* Xml.cpp
*
* Created on: Feb 5, 2013
* Author: leo
*/
#include <fruitpunch/Resources/Xml.h>
#include <fruitpunch/Common/Node.h>
#include <pugixml.hpp>
using namespace fp_core::common;
namespace fp_core {
namespace resources {
Xml::Xml() : NodeResource() {
// TODO Auto-generated constructor stub
}
... |
#include "quad.h"
#include "texture2d.h"
#include <glm/gtc/type_ptr.hpp>
namespace {
constexpr GLubyte *bufferOffset(size_t bytes)
{
return static_cast<GLubyte *>(0) + bytes;
}
}
Quad::Quad()
: vertexArrayObject(0)
, vertexBufferObject(0)
{
}
Quad::~Quad()
{
destruct();
}
void Quad::construct(int size)
{
co... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatadd/MHaMUb.cpp
// \brief Source file for the MHaMUb dense matrix/dense matrix addition math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This file i... |
#include "TestTrackHits.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateTransform.h"
#include "TrackingTools/MaterialEffects/interface/PropagatorWithMaterial.h"
#in... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Engine/PlayerStartPIE.h"
APlayerStartPIE::APlayerStartPIE(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
} |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkLineWidget.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 software is... |
#include "Common.hpp"
#include "Config.hpp"
#include "String.hpp"
#pragma warning(push)
#pragma warning(disable: 4127) // if constexpr
#include <yaml-cpp/yaml.h>
#pragma warning(pop)
#include <fstream>
void Config::Load() {
unordered_map::clear();
try {
auto vYaml = YAML::LoadFile(AsUtf8String(x_sPa... |
/* Copyright (c) 2010-2019, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include "tsystemglobal.h"
#include "taccesslogstream.h"
#include "tfileaiowriter.h"
#include <TWebApplica... |
#include <string>
#include <ios>
#include <iomanip>
#include <sstream>
#ifndef BRA_NO_MPI
# include <yampi/rank.hpp>
#endif
#include <bra/gate/gate.hpp>
#include <bra/gate/generate_events.hpp>
#include <bra/state.hpp>
namespace bra
{
namespace gate
{
std::string const generate_events::name_ = "GENERATE EVEN... |
#include <bits/stdc++.h>
using namespace std;
long long number(int x, int p)
{
if (p > 0)
{
x=x*pow(10,p);
}
else{
return x;
}
}
int main(int argc, char const *argv[])
{
int t;
cin >> t;
int labib;
int x1, x2, p1, p2;
long long a,b;
for (int i = 1; i <= t; i++)
{
cin >> x1 >> p1;
cin >> x2 >> ... |
/*
Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... |
// Copyright (c) 2015 Anton Bikineev
// Copyright (c) 2015 Thomas Heller
//
// 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)
#ifndef HPX_SERIALIZATION_POLYMORPHIC_NONINTRU... |
// Copyright 2020 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/child_accounts/family_user_chrome_activity_metrics.h"
#include <memory>
#include <vector>
#include "base/command_line.... |
// Copyright 2005, 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 conditions ... |
// @generated
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
... |
#include "Shared/Components/FoodComponent.h" |
#include "global.h"
void testBool1()
{
bool bs[15];
for (int i = 0; i < 15; ++i)
{
bs[i] = i % 2 == 0 ? true : false;
}
unsigned char buf[64];
unsigned char * p = (unsigned char * )bs;
for (int j = 0; j < 15; ++j)
{
buf[j] = * p;
p++;
}
cout << buf[8] << ... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
/*
* 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 "GrAAConvexTessellator.h"
#include "SkCanvas.h"
#include "SkPath.h"
#include "SkPoint.h"
#include "SkString.h"
#include "GrPathUtils.h"
// Next steps:
// add an int... |
#include <iostream>
#include <fstream>
#include "hungarian.h"
#include "problems.h"
#include "mincost_maxflow.tpp"
#include "geom_object.h"
/**
* Compile with: g++ -O3 -std=c++17 -o bin/test src/test.cpp -lstdc++fs
* or: g++ -g -std=c++17 -o bin/test src/test.cpp -lstdc++fs
*
*/
using namespace std;
... |
// Copyright (c) 2022 PaddlePaddle 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... |
// Copyright (c) 2015-2017, RAPtor Developer Team
// License: Simplified BSD, http://opensource.org/licenses/BSD-2-Clause
#include "gtest/gtest.h"
#include "mpi.h"
#include "raptor.hpp"
#include "tests/hypre_compare.hpp"
#include <iostream>
#include <fstream>
using namespace raptor;
void form_hypre_weights(double**... |
// Copyright 2002 - 2008, 2010, 2011 National Technology Engineering
// Solutions of Sandia, LLC (NTESS). Under the terms of Contract
// DE-NA0003525 with NTESS, the U.S. Government retains certain rights
// in this software.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the L... |
/*
* Copyright Droids Corporation, Microb Technology, Eirbot (2005)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ... |
#include "CPlusPlus_Common.h"
#include "CHOP_CPlusPlusBase.h"
////
class CustomCHOP : public CHOP_CPlusPlusBase
{
public:
CustomCHOP(const OP_NodeInfo* info)
{}
virtual ~CustomCHOP()
{}
void setupParameters(OP_ParameterManager* manager, void* reserved1) override
{}
void getGeneralInfo(CHOP_GeneralInfo* inf... |
// -*- C++ -*-
//
// Package: SiStripTools
// Class: LargeEvents
//
/**\class LargeEvents LargeEvents.cc DPGAnalysis/SiStripTools/LargeEvents.cc
Description: templated EDFilter to select events with large number of SiStripDigi or SiStripCluster
Implementation:
<Notes on implementation>
*/
//
// Origina... |
#pragma once
#include "dbfield.hpp"
#include "utility/template_magic.hpp"
#include "utility/constexpr_algorithms.hpp"
#include "parameter_pack/parameter_pack_helpers.hpp"
#include "tuple/tuple_helpers.hpp"
#include "assert/advanced_assert.h"
#include "utility/memory_cast.hpp"
#include <array>
#include <limits>
#inclu... |
/*****************************************************************************/
/**
* @file Stl.cpp
* @author Naohisa Sakamoto
*/
/*----------------------------------------------------------------------------
*
* Copyright (c) Visualization Laboratory, Kyoto University.
* All rights reserved.
* See http:/... |
/*=============================================================================
Copyright (C) 2016 yumetodo
Distributed under the Boost Software License, Version 1.0.
(See http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
#include "../include/s... |
/*
* Copyright (C) 2016 Turi
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in... |
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/HLTReco/interface/TriggerObject.h"
#include "D... |
/*
Copyright (c) 2005-2018, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
/*
* Copyright (c) 1997, 2021, 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 ... |
#pragma once
#include <iostream>
#include <type_traits>
#include <chrono>
namespace utils {
template <typename Fn, typename ResType = std::invoke_result_t<Fn>>
auto measure(Fn fn) -> ResType {
static_assert(std::is_invocable<Fn>::value, "Fn must be callable and accept no argument");
constexpr bool is_void =... |
/* Copyright (c) 2015-2022 The Khronos Group Inc.
* Copyright (c) 2015-2022 Valve Corporation
* Copyright (c) 2015-2022 LunarG, Inc.
* Copyright (C) 2015-2022 Google Inc.
* Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "L... |
#include "./lib.hpp"
#include <cstdint>
#include <iostream>
int main() {
std::int32_t a{21};
std::int32_t b{22};
std::int32_t c = lib::add(a, b);
std::cout
<< "a = " << a << std::endl
<< "b = " << b << std::endl
<< "c = " << c << std::endl;
return 0;
} |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018-2019 The csocoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/lice... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/ozone/platform/wayland/wayland_native_display_delegate.h"
#include "ui/display/types/display_snapshot.h"
#include "ui/display/types/native_d... |
// Copyright (c) 2012-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "scriptnum10.h"
#include "script/script.h"
#include "test/test_gozer.h"
#include <boost/test/unit_test.hpp>
#includ... |
/*
This file is part of Corrade.
Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
2017, 2018, 2019, 2020, 2021
Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and asso... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.