text stringlengths 5 1.04M |
|---|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* 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.
*/
#include <proxygen/httpserver/samples/hq/FizzContext.h>
#include <fizz/protocol/ZlibCertificateDecom... |
// Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
/******************************************************************************\
Copyright (c) 2005-2020, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are perm... |
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... |
// OTUS C++ Basic course homework skeleton.
// Lexer interface
#pragma once
#include <istream>
#include <string>
class Lexer {
public:
enum class Token {
Number,
Operator,
End,
Lbrace,
Rbrace,
Name,
};
explicit Lexer(std::istream &in);
Lexer(const L... |
/** ExaTN::Numerics: Tensor network builder factory
REVISION: 2019/11/01
Copyright (C) 2018-2019 Dmitry I. Lyakh (Liakh)
Copyright (C) 2018-2019 Oak Ridge National Laboratory (UT-Battelle) **/
/** Rationale:
(a) Creates tensor network builders of desired kind.
**/
#ifndef EXATN_NUMERICS_NETWORK_BUILD_FACTORY_HPP_
#... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__wchar_t_console_ofstream_54d.cpp
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-54d.tmpl.cpp
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: console Read input from the... |
//===- SoftplusLower.cpp --------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <onnc/Transforms/TensorSel/Lower.h>
#include <onnc/Transform... |
// Copyright 2002 The Trustees of Indiana University.
// 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)
// Boost.MultiArray Library
// Authors: Ronald Garcia
// Jeremy ... |
// TestITree.cpp : Defines the entry point for the console application.
//
// VIT 2014 test project for ITREE.H
// http://blog.coolsoftware.ru/
#include "stdafx.h"
#include "itree.h"
#include <time.h>
#include <limits.h>
#include <iostream>
class observation {
public:
typedef double range_type;
typedef unsigne... |
/*=========================================================================
*
* 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... |
/* Copyright 2015 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 law or agreed to in ... |
#ifdef PIXELBOOST_PLATFORM_ANDROID
#include "pixelboost/network/networkHelpers.h"
namespace pb
{
namespace NetworkHelpers
{
std::string GetWifiAddress()
{
return "";
}
}
}
#endif |
/* BugEngine <bugengine.devel@gmail.com>
see LICENSE for detail */
#ifndef BE_MINITL_TYPEMANIPULATION_HH_
#define BE_MINITL_TYPEMANIPULATION_HH_
/**************************************************************************************************/
#include <bugengine/minitl/stdafx.h>
namespace minitl {
template < t... |
/*
* SimpleMoveSequence.cpp
*
* Created on: Dec 1, 2018
* Author: Developer
*/
#include <Commands/SimpleMoveSequence.h>
#include "Commands/TimedMove.h"
#include "Commands/LeftTurn.h"
SimpleMoveSequence::SimpleMoveSequence() {
// I Made a Square!!!
AddSequential(new TimedMove(1.00, .2, .3))... |
// Copyright (c) 2018-2019 The StakeWork Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "consensus/dao.h"
#include "base58.h"
#include "main.h"
#include "rpc/server.h"
#include "utilmoneystr.h"
void Ge... |
#include <iostream>
#include <string>
int main () {
std::string str;
while (getline (std::cin, str)) {
char max = '\0';
for (int i = 0; i < str.size (); ++i) {
if (str[i] > max) {
max = str [i];
}
}
for (int i = 0; i < str.size (); ++i) {
printf ("%c", str[i]);
if (str[i] == max) {
print... |
#include "irqhandler.h"
// Local logging tag
static const char TAG[] = __FILE__;
// irq handler task, handles all our application level interrupts
void irqHandler(void *pvParameters) {
configASSERT(((uint32_t)pvParameters) == 1); // FreeRTOS check
uint32_t InterruptStatus;
// task remains in blocked state un... |
//
// bluetooth/detail/impl/endpoint.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2019 Huang Qinjin (huangqinjin at gmail dot com)
//
// 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_AS... |
#include "timer.h"
#include <stdio.h>
#include <sys/time.h>
namespace utils {
double TimingUnit::get_current_time() {
struct timeval tp;
gettimeofday(&tp, NULL);
return ((double) tp.tv_sec + (double) tp.tv_usec * 1.0E-6);
}
void Timer::add(std::string name, std::string parent) {
if (name == "") {
return;... |
/******************************************************************************
*
* Project: GDAL Utilities
* Purpose: Rasterize OGR shapes into a GDAL raster.
* Authors: Even Rouault, <even dot rouault at spatialys dot com>
*
******************************************************************************
* Co... |
// Copyright (c) 2014-2016 The Dash developers
// Copyright (c) 2016-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 "spork.h"
#include "base58.h"
#include "key.h"
#include "main.h"
#include... |
#include <chrono>
#include <fstream>
#include <list>
#include <map>
#include <memory>
#include <string>
#include "envoy/api/v2/rds.pb.validate.h"
#include "envoy/api/v2/route/route.pb.validate.h"
#include "envoy/server/filter_config.h"
#include "common/config/metadata.h"
#include "common/config/well_known_names.h"
#i... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Merge developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licens... |
// AC
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#define maxN 10002
typedef int maxn;
typedef long maxa;
maxn n, root[maxN], d[maxN];
maxa m, L[maxN], R[maxN];
bool st[maxN];
std::vector <maxa> V;
void Prepare() {
std::cin >> m >> n;
for(maxn i = 0; i < n; i++) {
... |
// 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/test/base/module_system_test.h"
#include "grit/renderer_resources.h"
namespace extensions {
namespace {
class EventUnittest : publ... |
// Copyright 2015 the V8 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.
#include "src/signature.h"
#include "src/bit-vector.h"
#include "src/flags.h"
#include "src/handles.h"
#include "src/zone/zone-containers.h"
#include ... |
// 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.
// This clang plugin checks various invariants of the Blink garbage
// collection infrastructure.
//
// Errors are described at:
// http://www.chromium.or... |
//
// FILE NAME: CQCMEng_LoggerClass.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 09/01/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opens... |
/*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2020, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... |
#include <Core.h>
#include <Graphics/CommandList.h>
#include <Graphics/Graphics.h>
#include <Logger/Log.h>
#include <gtest/gtest.h>
#include "TestHelper.h"
TEST(FPS, Update) {
auto config = Altseed2TestConfig(Altseed2::CoreModules::None);
EXPECT_TRUE(config != nullptr);
EXPECT_TRUE(Altseed2::Core::Initia... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
// CFixDuplicateOption.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "BitMaskEnum.h"
#include "FixDuplicateOption.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
////////////////////////////////////////////////////////////////////... |
/**
* Copyright (c) 2022 W. Akira Mizutani
*
* 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, modify, merge, ... |
//===- GPUToSPIRV.cp - MLIR SPIR-V lowering passes ------------------------===//
//
// Copyright 2019 The MLIR Authors.
//
// 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.... |
/**
* This file is part of the ExaHyPE project.
* Copyright (c) 2016 http://exahype.eu
* All rights reserved.
*
* The project has received funding from the European Union's Horizon
* 2020 research and innovation programme under grant agreement
* No 671698. For copyrights and licensing, please consult the webpag... |
/*
* Copyright 1999-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 "chrome/browser/ui/ash/shelf/chrome_shelf_prefs.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "ash/constants/ash_fe... |
/*
* This file is part of bogus, a C++ sparse block matrix library.
*
* Copyright 2013 Gilles Daviet <gdaviet@gmail.com>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/M... |
#include "linux_parser.h"
#include <dirent.h>
#include <unistd.h>
#include <algorithm>
#include <filesystem>
#include <iostream>
#include <string>
#include <vector>
using std::stof;
using std::string;
using std::to_string;
using std::vector;
namespace fs = std::filesystem;
// DONE: An example of how to read data fro... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_wchar_t_cpy_05.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193.label.xml
Template File: sources-sink-05.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate memor... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2017 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
#include "home_mpdualarmwid.h"
#include "ui_home_mpdualarmwid.h"
Home_MpduAlarmWid::Home_MpduAlarmWid(QWidget *parent) :
QWidget(parent),
ui(new Ui::Home_MpduAlarmWid)
{
ui->setupUi(this);
set_background_icon(this,":/image/back.jpg");
QTimer::singleShot(15,this,SLOT(initFunSlot()));
}
Home_MpduAla... |
// 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/bookmarks/bookmark_utils.h"
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/prefs/pref_service.h"
#... |
//*****************************************************************************
// 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... |
/*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* This shows an example on how to use on_edges syntax with multiple input fields
* (with location type edge) that are needed ... |
// Copyright (c) 2014-2018, 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 retain the above copyright notice, this list of
/... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE806_wchar_t_loop_82a.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE806.label.xml
Template File: sources-sink-82a.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Initial... |
//=================================================================================================
/*!
// \file src/mathtest/dvecsveccross/VHaVCb.cpp
// \brief Source file for the VHaVCb dense vector/sparse vector cross product math test
//
// Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved
//
// Thi... |
/** @file
A brief file description
@section license License
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 und... |
// Copyright 2019, Intel Corporation
#include "base/util/logging.h"
#include "base/util/throw.h"
#include "tile/pmlc/pmlc.h"
int main(int argc, char* argv[]) {
using vertexai::tile::pmlc::Main;
try {
START_EASYLOGGINGPP(argc, argv);
Main();
return 0;
} catch (const std::exception& ex) {
std::ce... |
#include<bits/stdc++.h>
using namespace std;
/// DFS, O( V + E )
/// The graph: https://www.geeksforgeeks.org/depth-first-search-or-dfs-for-a-graph/
map<int,vector<int> >g;
map<int,bool>seen;
void dfs(int v){
seen[v]=1;
cout<<v<<" ";
for(auto u:g[v]){
if(!seen[u])dfs(u);
}
}
int main(){
... |
//===-test_isinf_dnnl.cc-----------------------------------------------------------===//
//
// Copyright (C) 2019-2020 Alibaba Group Holding 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 ... |
// Copyright 2016 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "NtpSynchronizationChecker.h"
#include "herder/Herder.h"
#include "main/Application.h... |
#pragma once
#include <queue>
#include <cstdio>
#include <string>
#include <SDL_surface.h>
#include <SDL_thread.h>
#include <SDL_mutex.h>
#include <cxcore.hpp>
#include <lua.hpp>
#include "camera.hh"
#include "util.hh"
#define DB_RESIZED_IMAGE_WIDTH 32
#define DB_RESIZED_IMAGE_HEIGHT 16
#define RESULTS_CLASER_ONSUM... |
/*
First we convert from Roman numerals to decimal.
Then we convert from decimal to the shortest Roman numeral.
Then for each conversion we count how many characters we save, and sum up
all savings for our answer.
*/
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#in... |
// Copyright 2013 Daniel Parker
// Distributed under the Boost license, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See https://github.com/danielaparker/jsoncons for latest version
#ifndef JSONCONS_JSON_SERIALIZING_OPTIONS_HPP
#define JSONCONS_JSON_SERIAL... |
/*
* The MIT License (MIT)
* Copyright (c) 2018, Benjamin Maier
*
* 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 ... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
/*
* test_Stoploss.cpp
*
* Created on: 2013-3-13
* Author: fasiondog
*/
#ifdef TEST_ALL_IN_ONE
#include <boost/test/unit_test.hpp>
#else
#define BOOST_TEST_MODULE test_hikyuu_trade_sys_suite
#include <boost/test/unit_test.hpp>
#endif
#include <hikyuu/StockManager.h>
#include <hikyuu/trade_sys/... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/Type... |
#include "TefnoutPCH.hpp"
#include "SortingKey.hpp"
namespace Tefnout
{
namespace Rendering
{
namespace Command
{
SortingKey BuildSortingKey(std::uint32_t materialId, std::uint32_t depth, DrawCall drawType,
std::uint8_t viewportLayerId, std::uint8_t viewportId,
s... |
// 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 LiICENSE file.
#include "third_party/blink/renderer/modules/background_fetch/background_fetch_icon_loader.h"
#include "skia/ext/image_operations.h"
#include "third_par... |
#include "alert.h"
#include "clientversion.h"
#include "chainparams.h"
#include "init.h"
#include "net.h"
#include "utilstrencodings.h"
#include "utiltime.h"
/*
If you need to broadcast an alert, here's what to do:
1. Modify alert parameters below, see alert.* and comments in the code
for what does what.
2. run f... |
#pragma once
#include <mbgl/programs/circle_program.hpp>
#include <mbgl/programs/extrusion_texture_program.hpp>
#include <mbgl/programs/fill_program.hpp>
#include <mbgl/programs/fill_extrusion_program.hpp>
#include <mbgl/programs/line_program.hpp>
#include <mbgl/programs/raster_program.hpp>
#include <mbgl/programs/sym... |
#pragma once
#include <string>
#include <sstream>
#include "defines.hpp"
#include "registers.hpp"
#include "cpu_state.hpp"
namespace M68K{
namespace DISASSEMBLER{
std::string reg(RegisterType reg);
std::string sizeSuffix(DataSize size);
std::string effectiveAddress(AddressingMode mode, ... |
// 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, software
// distributed ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "pch.h"
#include "AdaptiveExecuteAction.h"
using namespace Microsoft::WRL;
using namespace ABI::AdaptiveCards::ObjectModel::Uwp;
using namespace ABI::Windows::Data::Json;
namespace AdaptiveCards::ObjectModel::Uwp... |
/*
Copyright 2017 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 law or agreed to in ... |
// (c) Copyright Fernando Luis Cacciola Carballal 2000-2004
// 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)
// See library home page at http://www.boost.org/libs/numeric/conv... |
/*/////////////////////////////////////////////////////////////////////////////////
/// An
/// ___ ____ ___ _____ ___ ____
/// / _ \ / ___|_ _|_ _/ _ \| _ \
/// | | | | | _ | | | || | | | |_) |
/// | |_| | |_| || | | || |_| | _ <
/// \___/ \____|___| |_| \___/|_| \_\
/// ... |
// Copyright 2016 The Fuchsia 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 "src/media/audio/audio_core/audio_device_manager.h"
#include <lib/fit/promise.h>
#include <lib/fit/single_threaded_executor.h>
#include <string>... |
#include<iostream>
using namespace std;
#define N 9
bool check(int grid[N][N], int &row , int &col) {
for(int i=0;i<N;i++) {
for(int j=0;j<N;j++) {
if(grid[i][j] == 0 ) {
row = i;
col = j;
return true;
}
}
}
return false;
}
bool rowSafe(int grid[N][N], int row , int x) {
for(... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
#include <kernels_rpp.h>
#include <vx_ext_rpp.h>
#include <stdio.h>
#include <iostream>
#include "internal_rpp.h"
#include "internal_publishKernels.h"
#include </opt/rocm/rpp/include/rpp.h>
#include </opt/rocm/rpp/include/rppdefs.h>
#include </opt/rocm/rpp/include/rppi.h>
struct RainbatchPDROIDLocalData {
RPPCommon... |
// Copyright Samuel Stark 2017
#pragma once
#include "instruction_sources.h"
namespace GB::Instructions::ALU{
// Adds
template<typename T, typename AddToSource, typename AddFromSource, bool WithCarry>
class AddInstruction{};
template<typename AddToSource, typename AddValueSource, bool WithCarry>
class AddInstr... |
#include "Iop_Vblank.h"
#include "IopBios.h"
#include "Iop_Intc.h"
#include "../Log.h"
using namespace Iop;
#define LOG_NAME "iop_vblank"
#define FUNCTION_WAITVBLANKSTART "WaitVblankStart"
#define FUNCTION_WAITVBLANKEND "WaitVblankEnd"
#define FUNCTION_WAITVBLANK "WaitVblank"
... |
// Copyright 2020 the V8 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.
#include "src/heap/paged-spaces.h"
#include "src/base/optional.h"
#include "src/base/platform/mutex.h"
#include "src/execution/isolate.h"
#include "src... |
#ifndef __EVIAS_CORE_TEST_NETWORKOBJECTS_NS_IRCCLIENT__
#define __EVIAS_CORE_TEST_NETWORKOBJECTS_NS_IRCCLIENT__
/**
* Package : eVias unitary test suite
*
* Copyright (c) 2010 - 2011 Grégory Saive
*
* For more informations about the licensing of this product, please refer
* to the LICENCE file in the root applic... |
#include "EnemyAnimation.h"
#include "ScopeFrame.h"
#include "Frame.h"
EnemyAnimation::EnemyAnimation()
:AimedAnimation(), m_scope(nullptr)
{
}
EnemyAnimation::EnemyAnimation(ALLEGRO_BITMAP* sheet, int x, int y, int w, int h, int nb)
:AimedAnimation(sheet, x, y, w, h, nb), m_scope(nullptr)
{
}
EnemyAnimation::~... |
#include "Offline/Print/inc/MCTrajectoryPrinter.hh"
#include "art/Framework/Principal/Provenance.h"
#include <string>
#include <iomanip>
void
mu2e::MCTrajectoryPrinter::Print(art::Event const& event,
std::ostream& os) {
if(verbose()<1) return;
if(tags().empty()) {
// if a list of instances not specified,... |
#include "CollisionInfo.h"
#include <bsp/BSPPolygon.h>
#include "config.h"
//-----------------------------------------------------------------------------
using namespace math;
//-----------------------------------------------------------------------------
CollisionInfo::CollisionInfo() :
m_collisionMas... |
#ifndef MCDataProducts_CrvSiPMCharges_hh
#define MCDataProducts_CrvSiPMCharges_hh
//
//
// Contact person Ralf Ehrlich
//
#include "MCDataProducts/inc/StepPointMCCollection.hh"
#include <vector>
#include <cmath>
namespace mu2e
{
class CrvSiPMCharges
{
public:
CrvSiPMCharges() {}
struct CrvSingleCha... |
/**
* Stateful metaprogramming
* ========================
*
* This is arcane and almost the darkest corner of C++.
*
* Note: Compile with -std=c++17.
*/
#include <type_traits>
template <int N>
struct flag {
// Argument-dependent lookup.
// warning: friend declaration ‘...’ declares a non-template f... |
/*******************************************************************************
* Copyright 2017-2018 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... |
#ifndef CY_NNQS_JASTROW_SAMPLES_HPP
#define CY_NNQS_JASTROW_SAMPLES_HPP
#include "Machines/Jastrow.hpp"
#include "Utilities/type_traits.hpp"
namespace yannq
{
template<typename T>
class JastrowState;
template<typename T>
class MachineStateTypes<Jastrow<T> >
{
public:
using StateValue = JastrowState<T>;
using State... |
/*
* 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 ... |
auto PPU::serialize(serializer& s) -> void {
ppubase.Thread::serialize(s);
PPUcounter::serialize(s);
latch.serialize(s);
io.serialize(s);
s.array(vram);
s.array(cgram);
for(auto& object : objects) object.serialize(s);
Line::start = 0;
Line::count = 0;
}
auto PPU::Latch::serialize(serializer& s) -> ... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
/* Copyright 2017 Kyle McDonald */
#include "NoteScheduler.h"
|
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... |
//=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... |
// Copyright (c) 2014 The Bitcoin Core developers
// Copyright (c) 2014-2020 The Vuicoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/networkstyle.h>
#include <qt/guiconstants.h>
#include <qt/gui... |
//===------ utils/obj2yaml.cpp - obj2yaml conversion tool -------*- C++ -*-===//
//
// 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
//
//===---------------------------... |
#include <memory>
#include <jni.h>
#include "Log.h"
#include "JNIAutoLocalStr.h"
#include "AndroidLuaLibTapjoy.h"
#include "TapjoyLuaExtraLib.h"
#include "ae_sdl2.h"
using namespace std;
using namespace ae;
using namespace ae::jni;
using namespace ae::tapjoy;
/// The log cat.
static const char *logTag... |
/*******************************************************************************
* Copyright 2018-2022 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... |
/**
* DeepDetect
* Copyright (c) 2018 Jolibrain
* Author: Corentin Barreau <corentin.barreau@epitech.eu>
*
* This file is part of deepdetect.
*
* deepdetect 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 ... |
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "Foundational/iwbits/iwbits.h"
#include "Foundational/iwstring/iwstring.h"
#define FIXED_SIZE_COUNTED_FINGERPRINT_IMPLEMENTATION
#include "fixed_size_counted_fingerprint.h"
/*
The fingerprint may or may not have a value for nset in it
*/
int
Fi... |
// --------------------------------------------------------------------------
// SmartPeak -- Fast and Accurate CE-, GC- and LC-MS(/MS) Data Processing
// --------------------------------------------------------------------------
// Copyright The SmartPeak Team -- Novo Nordisk Foundation
// Center for Biosustainabil... |
//
// ulib - a collection of useful classes
// Copyright (C) 2006,2007,2008,2009,2012,2017,2020 Michael Fink
//
/// \file TestReaderWriterMutex.cpp tests for ReaderWriterMutex class
//
#include "stdafx.h"
#include "CppUnitTest.h"
#include <ulib/thread/ReaderWriterMutex.hpp>
#include <ulib/HighResolutionTimer.hpp>
usi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.