text stringlengths 7 961k |
|---|
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// 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... |
/****************************************************************************
* Snes9x Nintendo Wii/Gamecube Port
*
* Tantric 2008-2022
*
* menu.cpp
*
* Menu flow routines - handles all menu logic
***************************************************************************/
#include <gccore.h>
#include <ogcsys.... |
// Copyright Gavin Band 2008 - 2012.
// 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)
#include <Eigen/Core>
#include "test_case.hpp"
#include "metro/likelihood/MultivariateT.hpp"
#include "me... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012-2017 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby g... |
#if defined(__arm__) || defined(_M_ARM) || defined(__aarch64__)
#include "featureSupport.h"
#include <unistd.h>
#include <sys/auxv.h>
#include <fcntl.h>
#include <iostream>
unsigned int getAuxv()
{
Elf32_auxv_t auxv;
int cpufile = open("/proc/self/auxv", O_RDONLY);
if (cpufile >= 0)
{
const size_t size_auxv_t = ... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
// @formatter:off
//
// Balau core C++ library
//
// Copyright (C) 2008 Bora Software (contact@borasoftware.com)
//
// 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.apach... |
/*
* Copyright (c) 2017-2019, Intel Corporation
*
* 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, p... |
// strciphr.cpp - originally written and placed in the public domain by Wei Dai
// TODO: Figure out what is happening in ProcessData. The issue surfaced for
// CFB_CipherTemplate<BASE>::ProcessData when we cut-in Cryptogams
// AES ARMv7 asm. Then again in AdditiveCipherTemplate<S>::ProcessData
// for... |
//Finding mode of a given set of array.
#include <iostream>
using namespace std;
void dispMode(int s[], int n) //s array is the set of numbers from which mode is to be taken and n is the total number of items.
{
int o[n]; //output array
int max = *max_element(s, s + n);
int t = max + 1;... |
//TODO:
//
// What should the MSW capture window's ID be? it's 125 now...
// What the heck is an MCI device? vcr/videodisc? do/did they really exist?
// Audio volume and maybe device? mine's on the mic input :(
// Allow for centering of hWnd, when no scrollbars on the window, maybe
// RegisterHotKey to use SetAbortKey
... |
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "botcoinrpc.h"
#include "guiutil.h"
#include <QTime>
#include <QTimer>
#include <QThread>
#include <QTextEdit>
#include <QKeyEvent>
#include <QUrl>
#include <QScrollBar>
#include <openssl/crypto.h>
// TODO: make it possible to filt... |
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
/*---------------------------------------------------------------------------*/
/* FaceDirectionMng.cc (C) 2000-2012 */
/* */
/*... |
//
// main.cpp
// graphExplorer
//
// Created by Francesco Quinzan on 29/11/2016.
// Copyright © 2016 Francesco Quinzan. All rights reserved.
//
#include <iostream>
#include <vector>
#include "inputManager.hpp"
#include "EA.hpp"
#include "lubySequence.hpp"
using namespace std;
int main(int argc, const char * a... |
#include "ModuleTextures.h"
#include "Application.h"
#include "ModuleRender.h"
#include "External_Libraries/SDL/include/SDL.h"
#include "External_Libraries/SDL_image/include/SDL_image.h"
#pragma comment(lib, "External_Libraries/SDL_image/libx86/SDL2_image.lib")
ModuleTextures::ModuleTextures (bool startEnabled) : Mod... |
/* Copyright 2016 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 ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 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 <net_processing.h>
#include <addrman.h>
#include <banman.h>
#include <a... |
//===- FileCheck.cpp - Check that File's Contents match what is expected --===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//===------- QualTypeNames.cpp - Generate Complete QualType Names ---------===//
//
// The LLVM Compiler Infrastructure
//
//===----------------------------------------------------------------------===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICE... |
// RUN: %clang_cc1 -triple x86_64-unknown-linux -std=c++14 -analyze -analyzer-checker=optin.performance -analyzer-config optin.performance.Padding:AllowedPad=2 -verify %s
// expected-warning@+1{{Excessive padding in 'struct IntSandwich' (6 padding bytes, where 2 is optimal)}}
struct IntSandwich {
char c1;
int i;
... |
// c:/Users/user/Documents/Programming/Mathematics/Function/Computable/Syntax/Translation/cpp/Ofstream/a.hpp
#pragma once
inline ofstream& __SYMBOL_OF_OFS__();
class CppClassForOfstream :
public EmptySet
{
public:
class type
{
public:
template <typename... Args>
type( const Args&... args )
{
... |
//=====================================================================//
/*! @file
@brief RX24T GPS サンプル @n
・P00(4) ピンに赤色LED(VF:1.9V)を吸い込みで接続する @n
・PB6/RXD5(27) <--- GPS-TX @n
・PB5/TXD5(28) ---> GPS-RX
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released ... |
///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Joshua Davis
/// Copyright 2018, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#pragma once
//----------------------------------------------------------... |
// Copyright 2021 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 "content/browser/aggregation_service/aggregatable_report.h"
#include <stddef.h>
#include <stdint.h>
#include <string>
#include <utility>
#inclu... |
#include <Storages/ConstraintsDescription.h>
#include <Interpreters/ExpressionAnalyzer.h>
#include <Interpreters/TreeRewriter.h>
#include <Parsers/formatAST.h>
#include <Parsers/ParserCreateQuery.h>
#include <Parsers/parseQuery.h>
#include <Parsers/ASTExpressionList.h>
#include <Parsers/ASTFunction.h>
#include <Core... |
/* 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) 2008 Maciej Sobczak
// 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)
//
#define SOCI_SOURCE
#include "soci-simple.h"
#include "soci.h"
#include <cstddef>
#include <cstdio>
#include <ctime>
#... |
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Copyright (c) 2017 The ATEC developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "data/tx_invalid.json.h"
#include "data/tx_valid.json.h"
#include "cl... |
#pragma once
#include "ECS/system.hpp"
#include "Utilities/rect.hpp"
namespace ph {
class Camera;
class Texture;
}
namespace ph::system {
class RenderSystem : public System
{
public:
RenderSystem(entt::registry& registry, Texture& tileset);
void update(float dt) override;
private:
Texture& mTilesetTexture;
}... |
// Copyright (c) 2009-2014 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 "uritests.h"
#include "guiutil.h"
#include "walletmodel.h"
#include <QUrl>
void URITests::uriTests()
{
SendCo... |
/*
SymbolicC++ : An object oriented computer algebra system written in C++
Copyright (C) 2008 Yorick Hardy and Willi-Hans Steeb
This library 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; ei... |
//===-- SBQueue.cpp ---------------------------------------------*- 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
//
//===---------------------------... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkRTXMLPolyDataReader.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 so... |
// Copyright 2019 The Dawn 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
//=================================================================================================
/*!
// \file src/mathtest/dmatsvecmult/UDbVCb.cpp
// \brief Source file for the UDbVCb dense matrix/sparse vector multiplication math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// Thi... |
/* Copyright 2017-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#include "ThreadPool.h"
#include "Logging.h"
namespace watchman {
ThreadPool& getThreadPool() {
static ThreadPool pool;
return pool;
}
ThreadPool::~ThreadPool() {
stop();
}
void ThreadPool::start(size_t numWorkers, s... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/app/chrome_breakpad_client.h"
#include "base/atomicops.h"
#include "base/command_line.h"
#include "base/environment.h"
#include "base/fi... |
// Copyright (C) 2019. Huawei Technologies Co., Ltd. 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,... |
/* Copyright 2013-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#include "watchman.h"
using CaseSensitivity = watchman::CaseSensitivity;
// This can't be a simple global because other compilation units
// may try to mutate it before this compilation unit has had its
// constructors run, ... |
#include <ATen/ATen.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorUtils.h>
#include <ATen/NamedTensorUtils.h>
#include <ATen/native/xnnpack/Engine.h>
#include <c10/macros/Macros.h>
#include <c10/util/Exception.h>
#include <tuple>
namespace at { namespace native {
static void check1d(
const char* fun... |
/**************************************************************************************
* Copyright (c) 2016, Tomoaki Yamaguchi
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which ... |
//
// command.cc
//
// Created by Pujun Lun on 2/9/19.
// Copyright © 2019 Pujun Lun. All rights reserved.
//
#include "lighter/renderer/vulkan/wrapper/command.h"
#include <limits>
#include "lighter/renderer/vulkan/wrapper/util.h"
#include "third_party/absl/strings/str_format.h"
namespace lighter {
namespace ren... |
/************* TabSys C++ Program Source Code File (.CPP) **************/
/* PROGRAM NAME: TABSYS */
/* ------------- */
/* Version 2.4 */
/* ... |
//=========================================================================
// 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
//
// ... |
#include "../include/RegexConverter.hpp"
map<char, int> RegexConverter::precedenceMap = {
{'(', 1}, {'|', 2}, {'.', 3}, {'?', 4}, {'*', 4}, {'+', 4}, {'^', 5}
};
int RegexConverter::getPrecedence(char c) {
if (precedenceMap.find(c) != precedenceMap.end()) {
return precedenceMap[c];
} else {
return 6;
... |
/*
* CtrHid.cpp
*
* Author: Measurement Computing Corporation
*/
#include "CtrHid.h"
namespace ul
{
CtrHid::CtrHid(const HidDaqDevice& daqDevice, int numCtrs) : CtrHidBase(daqDevice)
{
mCtrInfo.hasPacer(false);
mCtrInfo.setResolution(32);
for(int ctr = 0; ctr < numCtrs; ctr++)
mCtrInfo.addCtr(CMT_COUNT... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkEvent.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 dist... |
/*
* Copyright 2019-2021 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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/LICENS... |
#include "braincloud/internal/GUID.h"
#include <objbase.h>
namespace BrainCloud
{
std::string GUID::generateGUID()
{
unsigned char buffer[16] = { 0 };
UUID guid;
CoCreateGuid(&guid);
memcpy(buffer, &guid, 16);
return GUIDToString(buffer);
}
} |
// Source : https://oj.leetcode.com/problems/sort-list/
// Author : Hao Chen
// Date : 2014-07-06
/**********************************************************************************
*
* Sort a linked list in O(n log n) time using constant space complexity.
*
*****************************************... |
#include "gtest/gtest.h"
TEST(SW_World_Tiles_Features_SlotMachine, serialization_id)
{
Symbol s('$', Colour::COLOUR_WHITE);
SlotMachine sm(s);
EXPECT_EQ(ClassIdentifier::CLASS_ID_SLOT_MACHINE, sm.get_class_identifier());
}
TEST(SW_World_Tiles_Features_SlotMachine, saveload)
{
Symbol s('$', Colour::COLOUR_WHI... |
/*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2021 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining a... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_ProjBola_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//-------------------------------------------------------------... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
#include <sys/time.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include "slock.h"
#include "jsl_log.h"
#include "method_thread.h"
#include "lang/verify.h"
#include "pollmgr.h"
PollMgr *PollMgr::instance = NULL;
static pthread_once_t pollmgr_is_initialized = PTHREAD_ONCE_INIT;
void
PollMgrInit()
{
P... |
#include "ppl/nn/engines/cuda/optimizer/ops/mmcv/mmcv_non_max_suppression_op.h"
#include "ppl/nn/engines/cuda/kernels/mmcv/mmcv_non_max_suppression_kernel.h"
#include "ppl/nn/oputils/mmcv/reshape_mmcv_non_max_suppression.h"
#include "ppl/nn/common/logger.h"
using namespace std;
using namespace ppl::common;
using name... |
// 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 "remoting/protocol/message_reader.h"
#include <utility>
#include "base/bind.h"
#include "base/callback.h"
#include "base/compiler_specific.... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestLabelPlacementMapperCoincidentPoints.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for deta... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
#ifndef GAME_FIELD_HPP
#define GAME_FIELD_HPP
#include "app.hpp"
#include "draw.hpp"
#include "game/cell.hpp"
#include "res_keeper.hpp"
#include "timer.hpp"
#include "window.hpp"
namespace game {
class Field {
public:
enum class content_t {
EMPTY,
PLAYER,
COMPUTER,
... |
/**********************************************************************
*
* Project: CPL - Common Portability Library
* Purpose: Implement VSI large file api for stdin
* Author: Even Rouault, <even dot rouault at mines dash paris dot org>
*
*********************************************************************... |
/*
* This file is a part of the TChecker project.
*
* See files AUTHORS and LICENSE for copyright details.
*
*/
#include "tchecker/fsm/details/transition.hh"
namespace tchecker {
namespace fsm {
namespace details {
/* transition_t */
void transition_t::clear()
{}
... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "base/json/json_writer.h"
#include "base/values.h"
#include "sync/test/accounts_client/test_accounts_client.h"
#include "testi... |
// Copyright (c) 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 "base/allocator/partition_allocator/partition_bucket.h"
#include "base/allocator/partition_allocator/address_pool_manager.h"
#include "base/... |
/**
* Copyright (c) 2016, David Stutz
* Contact: david.stutz@rwth-aachen.de, davidstutz.de
* 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 reta... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Latinex developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-l... |
// DeadlockDetect.cpp
// Declares the cDeadlockDetect class that tries to detect deadlocks and aborts the server when it detects one
#include "Globals.h"
#include "DeadlockDetect.h"
#include "Root.h"
#include "World.h"
#include <cstdlib>
/// Number of milliseconds per cycle
const int CYCLE_MILLISECONDS = 100;
... |
// 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 und... |
/**
* @file ORB_.cpp
* @brief mex interface for cv::ORB
* @ingroup features2d
* @author Amro, Kota Yamaguchi
* @date 2015
*/
#include "mexopencv.hpp"
#include "mexopencv_features2d.hpp"
#include <typeinfo>
using namespace std;
using namespace cv;
// Persistent objects
namespace {
/// Last object id to allocate
i... |
// SciTE - Scintilla based Text Editor
/** @file MultiplexExtension.cxx
** Extension that manages / dispatches messages to multiple extensions.
**/
// Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include "Mul... |
#include <cassert>
#include <set>
// ignore unused parameters in LLVM libraries
#if (__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#endif
#include <llvm/Config/llvm-config.h>
#if ((L... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
/* from https://github.com/smealum/ctrulib
* modified to allow reducing __linear_heap_size at runtime */
#include <3ds.h>
#include <stdlib.h>
#include <3ds/util/rbtree.h>
#include "ctr_debug.h"
struct MemChunk
{
u8* addr;
u32 size;
};
struct MemBlock
{
MemBlock *prev, *next;
u8* base;
u32 size;
static MemBlo... |
// Copyright (c) 2014-2020 Czech Technical University in Prague
// Licensed under the MIT License.
#include "MeshBuilder.h"
#include <string>
#include <vector>
#include <Eigen/Dense>
#include <Eigen/src/SparseCore/SparseSolverBase-mod.h>
#include <igl/readOBJ.h>
#include <igl/remove_unreferenced.h>
#include <igl/adjac... |
// Copyright (c) 2016-2020 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 <bench/bench.h>
#include <coins.h>
#include <policy/policy.h>
#include <script/signingprovider.h>
#include <test/uti... |
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// 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... |
#include "bstream.h"
#include "conversion.h"
#include <string>
#include <cstdint>
#include <cstring>
#include <iostream>
using namespace std;
//--------------------------------------------------------------------------------------
#define SIZEOF_64 8
#define SIZEOF_32 4
#define SIZEOF_16 2
#define SIZEOF_8 1
//---... |
// Give Me a Number
// Demonstrates default function arguments
#include <iostream>
#include <string>
using namespace std;
int askNumber(int high, int low = 1);
int main()
{
int number = askNumber(5);
cout << "Thanks for entering: " << number << "\n\n";
number = askNumber(10, 5);
cout << "Thanks for... |
/**
* Copyright 2021 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... |
//
// Storage.hpp
// Clock Signal
//
// Created by Thomas Harte on 10/07/2016.
// Copyright 2016 Thomas Harte. All rights reserved.
//
#ifndef Storage_hpp
#define Storage_hpp
#include <cmath>
#include <cstdint>
#include <limits>
#include <numeric>
namespace Storage {
/*!
Contains either an absolute time or a t... |
// Copyright (c) 2016-2021 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#include "test.hpp"
#include <tao/json/value.hpp>
#include <tao/json/events/compare.hpp>
#include <tao/json/events/from_string.hpp>
#include <tao/json/events/from_value.hpp>
namespa... |
#include "Python.h"
int main()
{
Py_Initialize();
} |
#include "stdafx.h"
#include "targetcsbase.h"
#include "targetcs.h"
#include "xrserver_objects.h"
#include "game_cl_base.h"
#include "level.h"
CTargetCSBase::CTargetCSBase(void)
{
}
CTargetCSBase::~CTargetCSBase(void)
{
}
BOOL CTargetCSBase::net_Spawn (LPVOID DC)
{
BOOL res = inherited::net_Spawn(DC);
if (res){
... |
/*=============================================================================
Copyright (c) 2011-2017 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
... |
// stdafx.cpp,v 1.1 2000/05/17 15:48:13 parsons Exp
#include "stdafx.h" |
HANDLE_OPCODE(OP_UNUSED_40)
OP_END |
// iOS mojo runtime.
//
// Copyright 2011 Mark Sibly, all rights reserved.
// No warranty implied; use at your own risk.
//***** gxtkGraphics.h *****
class gxtkSurface;
class gxtkGraphics : public Object{
public:
gxtkGraphics();
//***** GXTK API *****
virtual int Width();
virtual int Height();
virtual bool ... |
// Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Nazara Engine - Renderer module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_VULKANRENDERER_VULKANRENDERPIPELINE_HPP
#define NAZARA_VULKANRENDERER_VULKANRENDERPIPELINE_HPP
#include <Nazara... |
#include <stdio.h>
#include <stdlib.h>
struct MyStruct {
int i;
double d;
char a[5];
};
int main() {
// void *p = malloc(sizeof(int)); throws error
int *p1 = (int *)malloc(sizeof(int));
printf("address=%p, value=%d\n", p1, *p1);
int *p2 = (int *)malloc(sizeof(int));
printf("address=%p, value=%d\n",... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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... |
/**
* @file fill_internal_host.cpp
* @author Daniel Nichols
* @version 0.1
* @date 2019-02-12
*
* @copyright Copyright (c) 2019
*/
#include "tensor/fill_internal.h"
namespace magmadnn {
namespace internal {
template <typename T>
void fill_uniform(MemoryManager<T> &m, const std::vector<T>& params) {
asse... |
/*************************************************************************
* Copyright (C) [2019] by Cambricon, 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 a... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: metapb.proto
#include "metapb.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <goo... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <array>
#include <cstddef>
#include <optional>
#include "DataStructures/Tensor/TypeAliases.hpp"
#include "Domain/CoordinateMaps/Distribution.hpp"
#include "Parallel/PupStlCpp17.hpp"
#include "Utilities/TypeTraits/RemoveRefere... |
/*
* Copyright (C) 2008 Xan Lopez <xan@gnome.org>
* Copyright (C) 2009 Igalia S.L.
* Copyright (C) 2008 Apple Inc. 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 the Free Software ... |
// Copyright 2017 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/parsing/preparsed-scope-data.h"
#include "src/ast/scopes.h"
#include "src/ast/variables.h"
#include "src/handles.h"
#include "src/objects... |
// Copyright (c) 2019 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... |
#pragma once
#include "AccessTypeID.hpp"
#include <set>
#include <span>
namespace Ubpa::UECS {
class SingletonLocator {
public:
SingletonLocator(std::set<AccessTypeID> types);
SingletonLocator(std::span<const AccessTypeID> types);
SingletonLocator();
template<typename Func>
static SingletonLocator Gener... |
//
// HelloWorldModalScene.cpp
// Cocos2dx-UIKit
//
// Created by Alwyn Savio Concessao on 25/05/16.
//
//
#include "HelloWorldModalScene.h"
USING_NS_CC;
Scene* HelloWorldModalScene::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease obj... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.