text stringlengths 7 961k |
|---|
#include "mbed.h"
#include "stdlib.h"
#include "string.h"
Serial raspi(USBTX, USBRX);
//servo B3M
Serial B3M(p28, p27);
DigitalOut en(p15);
//mbed LED
DigitalOut led1(LED1);
DigitalOut led2(LED2);
DigitalOut led3(LED3);
DigitalOut led4(LED4);
//Ticker
Ticker AllCrawl_ticker;
Ticker SpinCrawl_ticker;
Ticker LeftC... |
// Class to manage both stringify functions from semiring, ops and monoids to char buffers
// Also provides a iostream callback to deliver the buffer to jitify as if read from a file
// (c) Nvidia Corp. 2020 All rights reserved
// SPDX-License-Identifier: Apache-2.0
// Implementations of string callbacks
#pragma onc... |
// Copyright (c) 2021 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/opreturndialog.h>
#include <qt/forms/ui_opreturndialog.h>
#include <qt/clientmodel.h>
#include <qt/createopreturndia... |
// Copyright (c) 2017-2020, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
/**
* \file slam_set_DynamicSet.cpp
*/
#include "gtest/gtest.h"
#include "axom/slic/interface/slic.hpp"
#include "a... |
// Copyright David Abrahams 2002.
// 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 <deel.boost.python/revise/boost/python/object_protocol.hpp>
#include <deel.boost.python/revise/boost/python/errors.hpp>
... |
// Copyright 2020 The TensorStore 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 ... |
#include "Asset/Image.h"
namespace Tange
{
Image::~Image()
{
if (pPixels)
{
std::free(pPixels);
}
}
Image::Image(const Image& other)
{
std::memcpy(this, &other, sizeof(*this));
pPixels = (uint8*)std::malloc(GetSize());
std::memcpy(pPi... |
// Copyright (c) 2012 Pieter Wuille
// Copyright (c) 2012-2017 The Bitcoin Core developers
// Copyright (c) 2014-2018 The Groincoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <addrman.h>
#include <... |
/**************************************************************************
exif.cpp -- A simple ISO C++ library to parse basic EXIF
information from a JPEG file.
Copyright (c) 2010-2015 Mayank Lahiri
mlahiri@gmail.com
All rights reserved (BSD License).
See exif.h for version history.
Red... |
class tup_ied_header{
title = " Ambient IEDs and Suicide Bombers";
values[]= {0,1};
texts[]= {"Off","On"};
default = 1;
};
class tup_ied_enemy {
title = " Towns with IEDs";
values[]= {0,1};
texts[]= {"Random","Enemy Occupied Only"};
default... |
$NetBSD: patch-src_log_dlg.cpp,v 1.1 2016/07/16 03:32:32 markd Exp $
wxWidgets 3.0 unicode fix
--- src/log_dlg.cpp.orig 2012-06-28 06:39:35.000000000 +0000
+++ src/log_dlg.cpp
@@ -211,7 +211,7 @@ private:
for (size_t idx = 0; idx < str.Length(); idx++)
{
- switch (str[idx])
+ switch (str[idx].Ge... |
/*
* Copyright 2018 Yamana Laboratory, Waseda University
* Supported by JST CREST Grant Number JPMJCR1503, Japan.
*
* 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... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/omnibox/remove_suggestion_bubble.h"
#include <memory>
#include <utility>
#include "base/strings/utf_string_conversions... |
#include <gtest/gtest.h>
#include "Misc/radix64.h"
TEST(Radix64, rfc4648_base64_test_vectors) {
// OpenPGP::ascii2radix64
EXPECT_EQ(OpenPGP::ascii2radix64(""), "");
EXPECT_EQ(OpenPGP::ascii2radix64("f"), "Zg==");
EXPECT_EQ(OpenPGP::ascii2radix64("fo"), "Zm8=");
EXPECT_EQ(OpenPGP::ascii2radix64("f... |
// Copyright 2014 MongoDB 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 wri... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
//
// This file is polymorfic aware --
#include "FW/RC/struct_record.h"
#include "FW/ST/state_reader.h"
#include "FW/ST/state_writer.h"
#include "FW/UI/PR/ui_recordname_property.h"
#include <QVBoxLayout>
#include <FW/UI/PR/ui_label_property.h>
#include <FW/UI/PR/ui_string_property.h>
#include "FW/tools.h"
TypeStructR... |
////////////////////////////////////////////////////////////////////////////////
/// 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 "Precomp.h"
#include "Enemy.h"
#include "Entity/Shit/Shit.h"
#include "Entity/Ball/Ball.h"
#include "Entity/Shit/Shit.h"
#include "Entity/Goal/Goal.h"
#include "Entity/Bullet/Bullet.h"
#include "Entity/Player/Player.h"
#include "Entity/Splash/Splash.h"
#include "SuperVimontBros/SuperVimontBros.h"
#include "Sou... |
#include <bits/stdc++.h>
using namespace std;
int v[105000];
int l[105000];
int r[105000];
bool used[105000];
map<int,int>mp;
int n,rt;
int opp=0;
void dfs(int u,int le,int ri){
if(v[u]>=le&&v[u]<=ri){
opp+=mp[v[u]];
mp[v[u]]=0;
}
if(l[u]!=-1)dfs(l[u],le,min(ri,v[u]));
if(r[u]!=-1)dfs(r[u],max(le,v[u]),ri);
}
i... |
// 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... |
/*
* Implementation file for random number generation.
*
* Part of the Cyclone physics system.
*
* Copyright (c) Icosagon 2003. All Rights Reserved.
*
* This software is distributed under licence. Use of this software
* implies agreement with all terms and conditions of the accompanying
* software licence.
*/... |
/*
* Copyright 2019 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkImage.h"
#include "inc... |
// A Bison parser, made by GNU Bison 3.4.
// Skeleton implementation for Bison LALR(1) parsers in C++
// Copyright (C) 2002-2015, 2018-2019 Free Software Foundation, Inc.
// 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
//... |
/* deprecated. use xml2llrp and llrp2xml */ |
#include "GuiIncludes.h"
#include "Common.h"
#include "Events.h"
#include "IMS.h"
#include "IMS_ModuleFunctionData_Base.h"
#include "GUI_ModuleFunction_Base.h"
#include "IMS_ModuleFunction_Base.h"
#include "IMS_Module.h"
const string IMS_ModuleFunction_Base::GUI_MODULE_STYLE = "module_control"; //!< identifier of the... |
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file config_egldisplay.cxx
... |
/******************************************************************************
SparkFunLIS3DH.cpp
LIS3DH Arduino and Teensy Driver
Marshall Taylor @ SparkFun Electronics
Nov 16, 2016
https://github.com/sparkfun/LIS3DH_Breakout
https://github.com/sparkfun/SparkFun_LIS3DH_Arduino_Library
Resources:
Uses Wire.h for i2c... |
#include "Window.h"
#include "App.h"
#include "Defs.h"
#include "Log.h"
#include "SDL/include/SDL.h"
Window::Window(bool startEnabled) : Module(startEnabled)
{
window = NULL;
screenSurface = NULL;
name.Create("window");
}
// Destructor
Window::~Window()
{
}
// Called before render is available
bool Window::Awa... |
#include "CorePch.h"
#include <rtp++/GroupedRtpSessionManager.h>
#include <boost/optional.hpp>
#include <cpputil/ExceptionBase.h>
#include <rtp++/application/ApplicationParameters.h>
#include <rtp++/application/ApplicationUtil.h>
using boost::optional;
namespace rtp_plus_plus
{
GroupedRtpSessionManager::GroupedRtpSe... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// This is a precompiled header, it must be on its own, followed by a blank
// line, to prevent clang-format from reordering it with other headers.
#include "pch.h"
#include "callback.h"
#include "external_video_track_source.h"
#include "inter... |
// 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... |
#include<iostream>
using namespace std;
int main()
{
int sec, s, m, h;
cout << "Enter time in seconds: " <<flush;
cin >> sec;
h = sec / 3600;
sec = sec % 3600;
m = sec / 60;
s = sec % 60;
cout << "HH-MM-SS = " << h << ":" << m << ":" << s;
return 0;
} |
/*++
Copyright (c) 1994 Microsoft Corporation
All rights reserved.
Module Name:
memblock.cxx
Abstract:
Memory allocater for chunks of read only memory.
Author:
Albert Ting (AlbertT) 30-Aug-1994
Revision History:
--*/
#include "spllibp.hxx"
#pragma hdrstop
TMemBlock::
TMemBlock(
UINT uGranul... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PrimalItemRaft_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-------------------------------------------------------------------... |
/**********************************************************************
* Copyright (c) 2008-2013, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Fre... |
#include "plugin.hpp"
struct MyModule : Module {
enum ParamIds {
PITCH_PARAM,
NUM_PARAMS
};
enum InputIds {
PITCH_INPUT,
NUM_INPUTS
};
enum OutputIds {
SINE_OUTPUT,
NUM_OUTPUTS
};
enum LightIds {
BLINK_LIGHT,
NUM_LIGHTS
};
float phase = 0.f;
float blinkPhase = 0.f;
MyModule() {
confi... |
/*
* Copyright [2017] Max Planck Society. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
... |
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 - 2022 by Apex.AI 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
//
// ... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2021, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
// IFT3100H21_CurveBezier/renderer.cpp
// Classe responsable du rendu de l'application.
#include "renderer.h"
void Renderer::setup()
{
ofSetFrameRate(60);
ofSetBackgroundColor(0);
ofSetSphereResolution(32);
ofDisableDepthTest();
// paramètres
line_resolution = 100;
line_width_outline = 4.0f;
line_wid... |
/* This file is part of Nokia HEIF library
*
* Copyright (c) 2015-2018 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
*
* Contact: heif@nokia.com
*
* This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its subsidiaries. All rights are rese... |
#include <iostream>
#include <fstream>
#include <algorithm>
#include <fstream>
#include <sstream>
#include "headers\Queue.hpp"
#include "headers\FCFS.h"
#include "headers\Task.h"
#include "headers\Scheduler.h"
#include "headers\Matrix.hpp"
#include "headers\Array.hpp"
#include "headers\RR.h"
using namespace std;
/**... |
#include "../types/timing.hpp"
#include <parse/test/parse.hpp>
#include <sdf/actions/timing.hpp>
#include <sdf/grammar/timing.hpp>
#include <variant>
#include <catch2/catch.hpp>
#include <fmt/format.h>
using namespace SDF;
using namespace SDF::Test;
using Parse::Test::require_parse;
TEST_CASE("SDF.Actions.EdgeTypeA... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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 ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2019 The Dash Core developers
// Copyright (c) 2020 The GuardChain Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/lic... |
#pragma once
#include "Matrix.hpp"
class Optimizer{
public:
static void sgd(const MatD& grad, const Real learningRate, MatD& param);
static void sgd(const VecD& grad, const Real learningRate, VecD& param);
static void adagrad(MatD& grad, const Real learningRate, MatD& gradHist, MatD& param);
static void adagr... |
#include <bb/blitz/blitz.h>
#include "hook.h"
BBHook::BBHook(){
}
void BBHook::add( BBHookFunc func,void *context ){
Callback cb={ func,context };
callbacks.push_back( cb );
}
void BBHook::run( void *data ){
for( unsigned i=0;i<callbacks.size();i++ ){
callbacks[i].func( data,callbacks[i].context );
}
}
... |
// Copyright 2019 SD_Homework_Team
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include <chrono> // NOLINT(build/c++11)
#include "./solver.h"
// DO NOT MODIFY THIS FILE
float call_solver(std::ifstream& fin, int task, solver* s,
std::string filename) {
std::chrono::t... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/drive/sync_client.h"
#include <vector>
#include "base/bind.h"
#include "base/message_loop/message_loop_proxy.h"
#i... |
/*
g++ --std=c++20 -pthread -o ../_build/cpp/container_unordered_multimap_end.exe ./cpp/container_unordered_multimap_end.cpp && (cd ../_build/cpp/;./container_unordered_multimap_end.exe)
https://en.cppreference.com/w/cpp/container/unordered_multimap/end
*/
#include <unordered_map>
#include <algorithm>
#include <cassert... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
// /*
// कर्मण्येवाधिकारस्ते मा फलेषु कदाचन।
// मा कर्मफलहेतुर्भूर्मा ते सङ्गोऽस्त्वकर्मणि॥
// Karmanye vadhikaraste Ma Phaleshu Kadachana,
// Ma Karmaphalaheturbhurma Te Sangostvakarmani,
// The meaning of the verse is :—
// You have the right to work only but never to its fruits.
// Let ... |
//==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Arch/x86/IO.h>
#include <Kernel/FileSystem/FileSystem.h>
#include <Kernel/Firmware/ACPI/Parser.h>
#include <Kernel/Firmware/PowerSt... |
// 1st solution (8ms, beats 76%, good)
class Solution {
public:
string longestPalindrome(string s) {
if(s.size() < 2) return s;
int start = 0, length = 1; // 初始化回文起点为0 长度为1
// int n = s.size();
for(int i = 0; i < s.size();) {
// 如果回文只有一半(左半边)在s中,那么出错,返回
... |
#include "DhtReader.h"
void DhtReaderClass::DrawWidgets()
{
M5m.Lcd.drawCentreString("Temperature", 60, 80, 2);
M5m.Lcd.drawCentreString(String(temperature, 1), 60, 100, 4);
M5m.Lcd.drawCentreString("'C", 60, 125, 2);
M5m.Lcd.drawCentreString("Humidity", 260, 80, 2);
M5m.Lcd.drawCentreString(String... |
#include <iostream>
#include <stdio.h>
#include <thread>
#include "rpc.h"
#include "sample.pb.h"
#include "../src/common/log.h"
int main() {
if (!antflash::globalInit()) {
LOG_ERROR("init fail.");
return -1;
}
antflash::Channel channel;
antflash::ChannelOptions options;
options.con... |
// Copyright 2019 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 "paver.h"
#include <fcntl.h>
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include <lib/fdio/directory.h>
#include <l... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "version_edit.h"
#include "version_set.h"
#include "../util/coding.h"
namespace hyperleveldb... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
//===--------------------------------------------------------------------------------*- C++ -*-===//
// _ _
// | | | |
// __ _| |_ ___| | __ _ _ __ __ _
// / _` | __/ __| |/ _` | '_ \ / _` |
// | (_| | || (_... |
//=================================================================================================
/*!
// \file src/mathtest/smatsmatsub/MCaUCa.cpp
// \brief Source file for the MCaUCa sparse matrix/sparse matrix subtraction math test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This file i... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: OVRPlugin
#include "GlobalNamespace... |
#include "Mesh.hpp"
Mesh::Mesh(std::vector<Vertex> vtx, std::vector<unsigned short> idx) : vtx(vtx),
idx(idx)
{
}
Mesh::~Mesh()
{
}
void Mesh::createVBOs() {
if (vtx.empty() || idx.empty()) {
throw std::string("vertex or index array NULL");... |
#include <iostream>
#include <string>
#include <chrono>
using namespace std;
char* mystrtok(char* s, char d)
{
// Stores the state of string
static char* input = NULL;
// Initialize the input string
if (s != NULL)
input = s;
// Case for final token
if (input == NULL)
return N... |
#include "rules.h"
#include <algorithm>
#include <cstdio>
#include "client.h"
#include "ewmh.h"
#include "globals.h"
#include "hook.h"
#include "root.h"
#include "utils.h"
#include "xconnection.h"
using std::string;
using std::function;
/**
* A helper function to define rule consequences that directly
* write to... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2019 The Dash Core developers
// Copyright (c) 2018-2020 The Ion 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_CONFI... |
// Copyright (c) 2014-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 <attributes.h>
#include <clientversion.h>
#include <coins.h>
#include <script/standard.h>
#include <streams.h>
#incl... |
/**
*
* @file TimeSeriesData.cpp
* @auther Naoki Takahashi
*
**/
#include "TimeSeriesData.hpp"
#include <Tools/Math/Matrix.hpp>
namespace RobotStatus {
template <typename T>
TimeSeriesData<T>::TimeSeriesData() {
}
template <typename T>
TimeSeriesData<T>::TimeSeriesData(const TimeSeriesData<T> &time_s... |
#include "htsiter.hh"
#include "bloom.hh"
#include "covariateutils.hh"
#include "recalibrateutils.hh"
#include <memory>
#include <iostream>
#include <fstream>
#include <sstream>
#include <htslib/hfile.h>
#include <htslib/thread_pool.h>
#include <getopt.h>
#include <cassert>
#include <functional>
#include <iomanip>
#inc... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
MetalState.cpp: Metal state implementation.
=============================================================================*/
#include "MetalRHIPrivate.h"
#include "MetalProfiler... |
/* Copyright 2015 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 Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "common/default_constructible_unary_fn.hpp" // non-copyable value workaround
#include "multi_sig_transactions/transport/mst_transport_grpc.hpp"
#include <boost/range/adaptor/filtered.hpp>
#include <boost/ra... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* This is script-generated code (for the most part). */
/* See dataObjOpen.h for a description of this API call.*/
#include "dataObjOpen.h"
#include "dataObjO... |
/*
* Copyright (c) 2010-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... |
/*
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/built_ins/built_ins.h"
#include "shared/source/helpers/constants.h"
#include "shared/source/helpers/preamble.h"
#include "shared/source/memory_manager/graphics_allocation.h"
#include "shared/test/common/cm... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... |
// Copyright (c) 2012-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "dbwrapper.h"
#include "uint256.h"
#include "random.h"
#include "test/test_monea.h"
#include <boost/assign/std/vect... |
#include <torch/csrc/jit/jit_log.h>
#include <torch/csrc/jit/passes/onnx/helper.h>
#include <ATen/ScalarOps.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h>
#else
#include <ATen/ops/unsqueeze.h>
#endif
#include <onnx/onnx_pb.h>
namespace torch {
namespace jit {
namespace onnx {
using namespace ::c10::... |
#ifndef _XEBATCHRESULT_HPP
#define _XEBATCHRESULT_HPP
/*-------------------------------------------------------------------------
* drawElements Quality Program Test Executor
* ------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Vers... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
/*
* This file is a part of the TChecker project.
*
* See files AUTHORS and LICENSE for copyright details.
*
*/
#ifndef TCHECKER_TCK_SIMULATE_GRAPH_HH
#define TCHECKER_TCK_SIMULATE_GRAPH_HH
/*!
\file graph.hh
\brief Simulation graph
*/
#include <cstdlib>
#include <map>
#include <memory>
#include <ostream>
#in... |
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <activemasternode.h>
#include <masternode.h>
#include <masternode-sync.h>
#include <masternodeman.h>
#include <protocol... |
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "InformationWidget.hpp"
#include "AppWindow.hpp"
#include "application-phonebook/data/PhonebookStyle.hpp"
#include "widgets/TextWithIconsWidget.hpp"
#include "widgets/ActiveI... |
#include "LocationImpl.h"
#include <assert.h>
using namespace Instagram;
LocationImpl::LocationImpl(const LocationInfo& info) : mInfo(info)
{
}
std::string LocationImpl::getId() const
{
return mInfo.mId;
}
double LocationImpl::getLatitude() const
{
return mInfo.mLatitude;
}
double LocationImpl::getLongitu... |
//
// ssl/detail/write_op.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff 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_ASIO_SS... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
/*!
@file
Defines `boost::hana::demux`.
@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_FUNCTIONAL_DEMUX_HPP
#define BOOST_HANA_FUNCTIONAL_DEMUX_HPP
#include <boost/hana/... |
// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... |
// 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 "chromeos/services/secure_channel/fake_secure_channel_connection.h"
#include <utility>
#include "base/logging.h"
namespace chromeos {
namespa... |
/*
Copyright (c) 2018, Ford Motor Company
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... |
#include "Globals.h"
#include "Application.h"
#include "PhysBody3D.h"
#include "ModuleCamera3D.h"
ModuleCamera3D::ModuleCamera3D(Application* app, bool start_enabled) : Module(app, start_enabled)
{
CalculateViewMatrix();
X = vec3(1.0f, 0.0f, 0.0f);
Y = vec3(0.0f, 1.0f, 0.0f);
Z = vec3(0.0f, 0.0f, 1.0f);
Posi... |
/*
* 1009.cpp
*
* Created on: 2017年5月2日
* Author: Administrator
*/
#include<iostream>
#include<cstdlib>
#include<string>
using namespace std;
/**
* 哇哈哈,上一题是给这题做铺垫啊 其实可以用上一题的做法,但是这反正没限制,啦啦啦~啦
*/
int decompose(string str,string* words);
void reverse(string& str);
int main(){
string* str = new string();
g... |
//
// MMapUtil.c
// hog2 glut
//
// Created by Nathan Sturtevant on 10/14/13.
// Copyright (c) 2013 University of Denver. All rights reserved.
//
#include <stdio.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#inclu... |
/*
Copyright (c) DataStax, 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 writing, so... |
/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the qmake application of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licen... |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2018 INRIA.
*
* 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 "TestTreeView.hqt"
#include <QtGui/QClipboard>
#include <QtWidgets/QShortcut>
#include <QtWidgets/QApplication>
#include <QtWidgets/QMenu>
#include <QtTools/ToolsBase.hpp>
#include <QtTools/ItemViewUtils.hpp>
#include <QtTools/ItemViewUtils.hpp>
#include <QtTools/HeaderConfigurationWidget.hqt>
void TestT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.