text stringlengths 7 961k |
|---|
#include "muse_armcl_node.h"
#include <muse_armcl/prediction/prediction_integral.hpp>
namespace muse_armcl {
MuseARMCLNode::MuseARMCLNode() :
nh_private_("~"),
tf_provider_frontend_(new tf_listener_t),
tf_provider_backend_(new tf_listener_t)
{
}
MuseARMCLNode::~MuseARMCLNode()
{
for (auto &d : data_p... |
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <mango/window//window.hpp>
namespace mango {
namespace framebuffer {
// -------------------------------------------------------------------
// Framebuffer
// ... |
/**********************************************************************
Audacity: A Digital Audio Editor
AboutDialog.cpp
Dominic Mazzoni
Vaughan Johnson
James Crook
********************************************************************//**
\class AboutDialog
\brief The AboutDialog shows the program version... |
// *******************************************************************************************************************************
// *******************************************************************************************************************************
//
// Name: hardware.cpp
// Purpose: Hardware Interface... |
/*
* Copyright (c) 2016 Samsung Electronics 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... |
// This file is automatically generated at compile-time to include some subset of the user-created cpp files.
#include "C:/Users/nicol/Desktop/BasicFeature_UE4/Plugins/VMC4UE/Source/VMC4UE/Source/AnimNode_ModifyVMC4UEBones.cpp"
#include "C:/Users/nicol/Desktop/BasicFeature_UE4/Plugins/VMC4UE/Source/VMC4UE/Source/AnimNo... |
//
// Class to describe flag bits used for straw hits - D. Brown (LBL)
//
#ifndef RecoDataProducts_BkgClusterFlag_hh
#define RecoDataProducts_BkgClusterFlag_hh
#include "Offline/GeneralUtilities/inc/BitMap.hh"
#include <string>
#include <map>
namespace mu2e
{
struct BkgClusterFlagDetail
{
// I need 32 bi... |
//===--- ImportedModules.cpp -- generates the list of imported modules ----===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
// 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.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <i... |
/*++
Copyright (c) 1994 Microsoft Corporation
Module Name:
reg.hxx
Abstract:
contains class definition for registry access.
Author:
Madan Appiah (madana) 19-Dec-1994
Environment:
User Mode - Win32
Revision History:
--*/
#define DEFAULT_KEY_ACCESS ( KEY_QUERY_VALUE | \
... |
#pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Licen... |
//--------------------------------------------------
// Atta Core Tests
// stringId.cpp
// Date: 2021-08-18
// By Breno Cunha Queiroz
//--------------------------------------------------
#include <gtest/gtest.h>
#include <atta/core/math/math.h>
using namespace atta;
namespace
{
TEST(Core_Math_Vector, Create)
{... |
/*
BSD 3-Clause License
Copyright (c) 2020, Tresorit Kft.
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 copy... |
/* $Id$ */
// Root
#include "TAxis.h"
#include "TFile.h"
#include "TH2.h"
#include "TString.h"
// AliRoot includes
#include "AliQuarkoniaAcceptance.h"
#include "AliLog.h"
//_______________________________________________________________________
AliQuarkoniaAcceptance::AliQuarkoniaAcceptance(Int_t quarkoniaResonan... |
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Sk1DPathEffect.h"
#include "SkReadBuffer.h"
#include "SkWriteBuffer.h"
#include "SkPathMeasure.h"
#include "SkStrokeRec.h"
// Since we are step... |
/*
* Copyright 2012 The LibYuv Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing p... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2020 Sergey Bugaev <bugaevc@serenityos.org>
* 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. Redist... |
// 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 "content/browser/renderer_host/pepper/pepper_message_filter.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/callback... |
#include "codegenerator.h" |
#include "AppConfig.hpp"
#define BOOLOPT(_id, _defaultValue, _name, _description) {.id=_id, .isFloat=false, \
.defaultValue={.i32=_defaultValue}, .name=_name, .description=_description, .type="bool"}
#define INTOPT(_id, _defaultValue, _name, _description) {.id=_id, .isFloat=false, \
.defaultValue={.i32=_defau... |
//------------------------------------------------------------------------------
/*
This file is part of Beast: https://github.com/vinniefalco/Beast
Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without f... |
/*
*
* Copyright (c) 2020-2021 Project CHIP Authors
* Copyright (c) 2019 Nest Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
#include "NoDelayMusic.h"
NoDelayMusic::NoDelayMusic()
{
}
NoDelayMusic::NoDelayMusic(int buzzerPin, int musicNotes [], int musicDurations [], int tempo, int notesLength)
: Music(buzzerPin, musicNotes, musicDurations, tempo, notesLength)
{
this->pause = false;
this->_playNote = true;
}
NoDelayMusic::~... |
// dear imgui, v1.74 WIP
// (drawing and font code)
/*
Index of this file:
// [SECTION] STB libraries implementation
// [SECTION] Style functions
// [SECTION] ImDrawList
// [SECTION] ImDrawListSplitter
// [SECTION] ImDrawData
// [SECTION] Helpers ShadeVertsXXX functions
// [SECTION] ImFontConfig
// [SECTION] ImFontA... |
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// Copyright (C) 2018-2021 by Agustin Alvarez. All rights reserved.
//
// This work is licensed under the terms of the Apache 2.0 license.
//
// For a copy, see <https://github.com/Wolftein/Aurora.Ne... |
/*******************************************************************************
* Copyright 2016-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... |
//
// Copyright 2019 ZetaSQL 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 agree... |
#include <fstream>
#include <filesystem>
#include "BitEngine/Core/Resources/DevResourceLoader.h"
#include "BitEngine/Core/Logger.h"
#include "BitEngine/Core/Task.h"
#include "BitEngine/Core/TaskManager.h"
#include "BitEngine/Core/Graphics/Sprite.h"
namespace BitEngine {
std::string getPackagePath(const std::string&... |
/*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.io.FilterInputStream
================================================================================*/
#ifndef J2CPP_INCLUDE_IMPLEMENTATIO... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Darkcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "core.h"
#include "db.h"
#include "init.h"
#include "active... |
/**
* The MIT License (MIT)
*
* Copyright © 2017-2019 Ruben Van Boxem
*
* 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
* ... |
#include "guis/GuiMenu.h"
#include "components/OptionListComponent.h"
#include "components/SliderComponent.h"
#include "components/SwitchComponent.h"
#include "guis/GuiCollectionSystemsOptions.h"
#include "guis/GuiDetectDevice.h"
#include "guis/GuiGeneralScreensaverOptions.h"
#include "guis/GuiMsgBox.h"
#include "guis... |
// 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 <algorithm>
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/pickle.h"
#include "base/time/time.h"
#include "... |
#include "../window.h"
#include <SDL.h>
namespace Ion {
namespace Simulator {
namespace Window {
void didInit(SDL_Window *) {}
void willShutdown(SDL_Window *) {}
}
}
} |
/**
* Tencent is pleased to support the open source community by making Tars available.
*
* Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
* in compliance with the License. You may obtain a ... |
#include "Globals.h"
#include "Application.h"
#include "ModuleInput.h"
#include "Glew/include/glew.h"
#include "imgui.h"
#include "imgui_impl_sdl.h"
#include "imgui_impl_opengl3.h"
#include "FBXloader.h"
#include "FileSystem.h"
#include <string.h>
#define MAX_KEYS 300
ModuleInput::ModuleInput(Application* app, bool ... |
//=====================================================================
// Copyright 2016 (c), Advanced Micro Devices, Inc. All rights reserved.
//=====================================================================
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software ... |
#include "Config1EventList.h"
#include "memory/include/MemoryCrc.h"
#include "logger/include/Logger.h"
#include <string.h>
#define CONFIG_EVENTLIST_VERSION1 1
#define CONFIG_EVENT_UNSET 0xFFFF
Config1EventList::Config1EventList() {
data.version = CONFIG_EVENTLIST_VERSION1;
data.size = 0;
data.first = CONFIG_EVENT... |
//
// Created by pkanev on 5/10/2017.
//
#include <sstream>
#include <ArgConverter.h>
#include <NativeScriptAssert.h>
#include "DOMDomainCallbackHandlers.h"
using namespace tns;
void DOMDomainCallbackHandlers::DocumentUpdatedCallback(const v8::FunctionCallbackInfo<v8::Value>& args) {
auto domAgentInstance = V8DO... |
#include <globjects/Program.h>
namespace Ra {
namespace Engine {
// declare specialization, definied in .cpp
template <>
RA_ENGINE_API void ShaderProgram::setUniform( const char* name, const Core::Vector2d& value ) const;
template <>
RA_ENGINE_API void ShaderProgram::setUniform( const char* name, const Core::Vector3... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <AINetFileRegister.hpp>
#include <AINetFtpRegister.hpp>
#include <AINetRegister.hpp>
#include <AP_BatterySlotRegister.hpp>
#include <ATL__CAtlExceptionRegister.h... |
/*
* MIT License
*
* Copyright (c) 2019-2021 Christof Ruch
*
* 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, cop... |
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// Unless req... |
/*!
* Copyright (c) 2015 by Contributors
* \file regression_output.cc
* \brief regression output operator
*/
#include "./regression_output-inl.h"
#include "./mshadow_op.h"
namespace mxnet {
namespace op {
template<>
Operator *CreateRegressionOutputOp<cpu>(reg_enum::RegressionOutputType type,
... |
// stdafx.cpp : 只包括标准包含文件的源文件
// FiveChess.pch 将作为预编译标头
// stdafx.obj 将包含预编译类型信息
#include "stdafx.h"
int m_data[15][15]; |
#include "Module.h"
#include "Engine/Core/Modules/EngineModuleContext.h"
//-------------------------------------------------------------------------
namespace KRG
{
namespace Game
{
bool GameModule::Initialize( ModuleContext& context )
{
return true;
}
void GameMod... |
#include <WiFiClient.h>
#include "ESP32_FTPClient.h"
ESP32_FTPClient::ESP32_FTPClient(char* _serverAdress, char* _userName, char* _passWord, uint16_t _timeout, uint8_t _verbose){
userName = _userName;
passWord = _passWord;
serverAdress = _serverAdress;
timeout = _timeout;
verbose = _verbose;
}
WiFiClient* E... |
// Copyright (c) 2011-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 <qt/bitcoinunits.h>
#include <primitives/transaction.h>
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject... |
#include "DataflowPYZ.h"
#include "Interface/ScriptServiceInterface.h"
#include "PythonScriptCodeData.h"
#include "Kernel/Stream.h"
#include "Kernel/MemoryStreamHelper.h"
#include "Kernel/Document.h"
#include "Kernel/FactoryPool.h"
#include "Kernel/AssertionFactory.h"
#include "Kernel/AssertionMemoryPanic.h"
#includ... |
/*****************************************************************************/
/**
* @file ColorMapPalette.cpp
* @author Naohisa Sakamoto
*/
/*----------------------------------------------------------------------------
*
* Copyright (c) Visualization Laboratory, Kyoto University.
* All rights reserved.
*... |
////////////////////////////////////////////////////////////////////////////////
/// 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... |
/*
* Copyright 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
// SPDX-License-Identifier: BSD-2-Clause
//
// This code has been produced by the European Spallation Source
// and its partner institutes under the BSD 2 Clause License.
//
// See LICENSE.md at the top level for license information.
//
// Screaming Udder! https://esss.se
#include "CLIOpti... |
#include "large_buffer.hpp"
#include "buffer.hpp"
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <fstream>
#include <random>
#include <sstream>
#include <v8pp/class.hpp>
#include <sys/stat.h>
#ifdef _WIN32
#include <direct.h>
#endif
namespace {
std::string randomId() {
std::random_device dev;
s... |
#include "classfile.h"
#include "annotations.h"
#include <fstream>
#include <iostream>
int main(int argc, char* argv[])
{
if(argc > 1)
{
std::ifstream file_in(argv[1]);
if(file_in.is_open())
{
file_in.seekg(0, std::_S_end);
auto length = file_in.tellg();
char * data = new char[length];
file_in.seek... |
/*
* 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 version.
*
* This program is distributed in the hope that it will be use... |
#include <iostream>
#include <string>
#include <typeinfo>
#include <typeindex>
#include <unordered_map>
#include <tuple>
#include <memory>
#include <string>
#include <vector>
using namespace std;
class object_t
{
public:
template<typename T>
object_t(T x) : self_(make_shared<model<T>>(move(x))) {}
vo... |
#include "stb_gl.hh"
#include "stb_types.hh"
#include "stb_error.hh"
namespace stb {
extern void setError(const char * format, ...);
}
GLenum stb::getGlError(const char * file, const int lineNumber)
{
GLenum glError = glGetError();
if (glError != GL_NO_ERROR) {
stb::setError("GL error: %d at %s:%... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Copyright (c) 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 "content/browser/download/drag_download_file.h"
#include <utility>
#include "base/bind.h"
#include "base/files/file.h"
#include "base/locat... |
#pragma once
#include "comm_module.hpp"
#include <cstddef>
#include <sdbusplus/bus/match.hpp>
#include <vector>
namespace command
{
constexpr size_t BMC_GUID_LEN = 16;
using Guid = std::array<uint8_t, BMC_GUID_LEN>;
/**
* @brief Get System GUID
*
* @return If UUID is successfully read from the Chassis DBUS obj... |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <HWND__.hpp>
#include <tagRECT.hpp>
START_ATF_NAMESPACE
struct tagGUITHREADINFO
{
unsigned int cbSize;
unsigned int flags;
HWND... |
// 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/google/google_url_tracker.h"
#include <set>
#include <string>
#include "base/message_loop.h"
#include "chrome/browser/api/i... |
// Copyright 2012 Cloudera Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... |
#include "Hello.h"
JNIEXPORT void JNICALL Java_Hello_sayHello
(JNIEnv *, jobject) {
printf("Hello form cpp");
} |
#include "SortedSet.h"
SortedSet::SortedSet() : Set()
{
this->isSorted = false;
}
SortedSet::SortedSet(int n) : Set(n)
{
this->isSorted = false;
}
SortedSet::~SortedSet()
{
}
SortedSet::SortedSet(const SortedSet& other) : Set(other)
{
this->isSorted = other.isSorted;
}
void SortedSet::insertionSort()
{... |
#include <core/gfx/render_system_factory.hpp>
namespace morpheus::gfx
{
//---------------------------------------------------------------------------------------------------------------------
render_system_factory::~render_system_factory()
{
}
//----------------------------------------------------------------------... |
class Solution {
public:
bool isPalindrome(string s) {
int start=0, end=s.length()-1;
while(start<end) {
if (!isalnum(s[start])) start++;
else if (!isalnum(s[end])) end--;
else {
if (tolower(s[start++])!=tolower(s[end--])) return false;
}
}
return true;
}
}; |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <tack@gecode.org>
*
* Copyright:
* Guido Tack, 2011
*
* Last modified:
* $Date: 2016-05-24 06:18:23 +1000 (Tue, 24 May 2016) $ by $Author: schulte $
* $Revision: 15073 $
*
* This file is part... |
/*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2022 Yermalayeu Ihar.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limi... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "orttraining/core/graph/allreduce_optimizer_graph_builder.h"
#include "orttraining/core/framework/distributed_run_context.h"
namespace onnxruntime {
namespace training {
static bool IsNcclAvailable() {
#ifdef OR... |
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2016-2018 zawy12
// Copyright (c) 2016-2018, The Karbowanec developers
//
// This file is part of Bytecoin.
//
// Bytecoin is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser Gene... |
#include "BST.h"
#include <limits.h>
TreeNode* BST::insert(TreeNode *root, int value) {
if (!root) {
TreeNode *node = new TreeNode(value);
root = node;
}
if (value < root->data)
root->left = insert(root->left, value);
if (value > root->data)
root->right = insert(root->right, value);
return root;
}
bool ... |
#include <iostream>
#include <vector>
#include <unordered_map>
#include <string>
#include <Eigen/Dense>
#include "include/sample_network.h"
using namespace Eigen;
int main()
{
using namespace MyDL;
using std::cout;
using std::endl;
using std::vector;
using std::unordered_map;
// I/O container... |
// 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 "webkit/fileapi/file_system_usage_cache.h"
#include "base/basictypes.h"
#include "base/file_util.h"
#include "base/memory/scoped_temp_dir.h"... |
/**
* \file DlgWznmVerCustjob.cpp
* API code for job DlgWznmVerCustjob (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
#include "DlgWznmVerCustjob.h"
using namespace std;
using namespace S... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2017-2019 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... |
// 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 "content/common/message_router.h"
#include "ipc/ipc_message.h"
namespace content {
MessageRouter::MessageRouter() {
}
MessageRouter::~Mes... |
class Solution {
public:
int getMaxLen(vector<int>& nums) {
int _result = 0;
int _min_pos = nums.size();
int _max_pos = 0;
int _start = 0;
int _negative_count = 0;
for (int i = 0; i < nums.size(); ++i) {
if (nums[i] < 0) {
_min_pos = std::min(_min_p... |
#include "sm-log-defs.h"
#include "sm-log-offset.h"
#include "stopwatch.h"
#include "w_rand.h"
#include <unistd.h>
#include <algorithm>
#include <map>
#include <utility>
#include <vector>
using namespace RCU;
static uint64_t const SKIP_LOG_SIZE = MIN_LOG_BLOCK_SIZE;
/* WARNING: nothing in this test removes old seg... |
// 712 - S-Trees
// WzhDnwzWzh
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n, m, cnt = 0, pos;
char tree[1 << 8];
string str, direction;
while (scanf("%d", &n) != EOF)
{
if (n == 0)
break;
... |
// This file was automatically generated on Fri May 15 11:57:42 2009
// by libs/config/tools/generate.cpp
// Copyright John Maddock 2002-4.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/L... |
#include "global.h"
#include "InputFilter.h"
#include "RageUtil.h"
#include "InputHandler.h"
#include "RageLog.h"
#include "LocalizedString.h"
#include "arch/arch_default.h"
#include "Foreach.h"
void
InputHandler::UpdateTimer()
{
m_LastUpdate = std::chrono::steady_clock::now();
m_iInputsSinceUpdate = 0;
}
void
Inpu... |
#ifndef AXISALIGNEDBOXTEMPLATE_HPP
#define AXISALIGNEDBOXTEMPLATE_HPP
#include "blub/serialization/access.hpp"
#include "blub/serialization/nameValuePair.hpp"
#include "blub/core/globals.hpp"
namespace blub
{
template <typename vector3Type>
class axisAlignedBoxTemplate
{
public:
typedef axisAlignedBoxTemplate... |
// Copyright Aleksey Gurtovoy 2001-2004
//
// 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)
//
// See http://www.boost.org/libs/mpl for documentation.
// $Source: /cvsroot/boost/boost/libs/mpl/test/lower_bound.... |
// Copyright 2017 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/public/test/slow_download_http_response.h"
#include "base/bind.h"
#include "base/strings/stringprintf.h"
#include "base/threading/threa... |
// Copyright 2015 Adam Grandquist
#include "./catch.hpp"
#include "./ReQL.h"
TEST_CASE("c Tests that manipulation data in tables", "[c][ast]") {
SECTION("test0") {
}
SECTION("test1") {
}
SECTION("test2") {
}
SECTION("test5") {
... |
// The following code example calls IsLeapYear for five years in each of the eras.
// <snippet1>
using namespace System;
using namespace System::Globalization;
int main()
{
// Creates and initializes a HebrewCalendar.
HebrewCalendar^ myCal = gcnew HebrewCalendar;
// Displays the header.
Console::Wri... |
#include "stdafx.h"
#include "Door.hpp"
#include "Function.hpp"
#include "Path.hpp"
#include "stdlib.hpp"
#include "SwitchStates.hpp"
#include "Events.hpp"
#include "Sfx.hpp"
#include "Abe.hpp"
#include "MusicTrigger.hpp"
#include "Sound/Midi.hpp"
#include "DDCheat.hpp"
#include "BaseAliveGameObject.hpp"
struct Door_I... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
#include "lfbg/graphics.h"
namespace lfbg {
// external objects
extern GLFWwindow* __window_handle__;
extern window_helper __window__helper_obj__;
// defined objects
bool __keyboard_is_pressed__[GLFW_KEY_LAST + 1];
bool __keyboard_is_up__[GLFW_KEY_LAST + 1];
bool __keyboard_is_down__[GLFW_KEY_LAST + 1];
int __kbhi... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
// Copyright 2019 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/ash/policy/external_data/handlers/device_printers_external_data_handler.h"
#include <utility>
#include "base/memory/weak_ptr.h"... |
#include "tpf_module_plic3.h"
#include "../interface_gradient/tpf_module_interface_gradient.h"
#include "../plic/tpf_module_plic.h"
#include "tpf/data/tpf_array.h"
#include "tpf/data/tpf_data_information.h"
#include "tpf/data/tpf_grid.h"
#include "tpf/data/tpf_grid_information.h"
#include "tpf/data/tpf_polydata.h"
#i... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Attribute
#inc... |
/*
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#pragma once
#include "runtime.hpp"
namespace reshade::vulkan
{
class device_impl;
class command_queue_impl;
class swapchain_impl : public api::api_object_impl<VkSwapchainKHR, runtime>
{
sta... |
// Copyright 2011-2020 Google LLC
//
// 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... |
/*
Copyright (c) 2009-2016, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
namespace El {
namespace trsm {
// Left Lower NORMAL ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.