text stringlengths 5 1.04M |
|---|
/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.
*/
#include "vowpalwabbit.h"
#include "vw_example.h"
#include "vw_prediction.h"
#include "gd.h"
namespace VW
{
using namesp... |
/*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... |
// (C) Copyright 2008-10 Anthony Williams
//
// 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 <utility>
#include <memory>
#include <stdexcept>
#include <string>
#include <thread>
#include <boost/fi... |
/*
Copyright (c) 2018-2019, tevador <tevador@gmail.com>
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 conditio... |
/*
* Copyright (c) 2010, Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
#include "Shotgun.h"
#include <math.h>
Shotgun::Shotgun(unsigned int clipSize, unsigned int minDamage, unsigned int maxDamage, int aimModifier, int critModifier)
: GunBase(clipSize, minDamage, maxDamage, aimModifier, critModifier) {
m_gunType = 1;
}
Shotgun::~Shotgun()
{
}
int Shotgun::GetRangeBonus(const float... |
#include "portsorch.h"
#include "neighorch.h"
#include <cassert>
#include <fstream>
#include <sstream>
#include <set>
#include <algorithm>
#include <tuple>
#include <sstream>
#include <netinet/if_ether.h>
#include "net/if.h"
#include "logger.h"
#include "schema.h"
#include "converter.h"
#include "sai_serialize.h"
#i... |
/*************************************************************************/
/* settings_config_dialog.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include <gtest/gtest.h>
#include <pointing.h>
TEST(pointing, initialization)
{
Pointing p;
}
|
// This file is part of SWGANH which is released under the MIT license.
// See file LICENSE or go to http://swganh.com/LICENSE
#include "swganh/object/manufacture_schematic/manufacture_schematic.h"
#include "swganh/messages/deltas_message.h"
#include "anh/crc.h"
using namespace std;
using namespace swganh::object::m... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "ItemCrate.h"
#include "Components/StaticMeshComponent.h"
#include "Components/BoxComponent.h"
#include "Components/WidgetComponent.h"
#include "Engine/CollisionProfile.h"
#include "Interactable/BaseClasses/InteractableComponent... |
/*
* Copyright (c) 2021 pongasoft
*
* 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... |
class TrieNode{
public:
static const int ALPHABET_SIZE = 26;
static const char FIRST_LETTER = 'a';
bool is_terminal_node;
vector<TrieNode*> children;
TrieNode(){
this->is_terminal_node = false;
this->children.resize(ALPHABET_SIZE, NULL);
}
void insert(co... |
// Copyright (C) 2020 T. Zachary Laine
//
// 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)
// Warning! This file is autogenerated.
#include <boost/text/normalize_string.hpp>
#include <boost/text/transcode_view.hp... |
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2021
//
// 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 "td/net/Socks5.h"
#include "td/utils/common.h"
#inc... |
#ifndef CTCI_6TH_EDITION_CPP_04_TREES_AND_GRAPHS_06_SUCCESSOR_GETNEXT_HPP_
#define CTCI_6TH_EDITION_CPP_04_TREES_AND_GRAPHS_06_SUCCESSOR_GETNEXT_HPP_
#include "DoubleBinaryTree.hpp"
DoubleBinaryTreeNode* getNext(const p_node_t& node);
#endif // CTCI_6TH_EDITION_CPP_04_TREES_AND_GRAPHS_06_SUCCESSOR_GETNEXT_HPP_
|
// -*- C++ -*-
//===-- test_reverse.cpp --------------------------------------------------===//
//
// Copyright (C) 2017-2019 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// This file incorporates work covered by the following copyright and permission
// notice:
//
// Part of the L... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8HTMLSpanElement.h"
#include "bindings/v8/Ex... |
/*
* Copyright (c) 2012-2020, 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... |
#include <iostream>
using namespace std;
int main(){
int N, torre = 0, i, j, soma = 0, soma1 = 0, soma2 = 0;
cin >> N;
int somalinhas[N], somacolunas[N], matriz[N][N];
for(i=0; i<N; i++){
for(j=0; j<N; j++){
cin >> matriz[i][j];
}
}
for(i=0; i<N; i++){
soma1 = 0;
soma2 = 0;
for(j=0; j<N;... |
#include "duckdb/parser/expression/function_expression.hpp"
#include <utility>
#include "duckdb/common/string_util.hpp"
#include "duckdb/common/exception.hpp"
#include "duckdb/common/serializer.hpp"
#include "duckdb/common/types/hash.hpp"
namespace duckdb {
FunctionExpression::FunctionExpression(string schema, const... |
#include <iostream>
#include <linux/input.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "VE450.hpp"
#include <errno.h>
using namespace DJI::OSDK;
using namespace DJI::OSDK::Telemetry;
int main(int argc, char** argv) {
// Initialize server variables
int sock_fd;
struct sockaddr_in ... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: Tiffany Huang
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
//using std::strin... |
/*
* cgeVideoPlayer.cpp
*
* Created on: 2015-12-9
*/
#ifdef _CGE_USE_FFMPEG_
#include "cgeVideoPlayer.h"
#include "cgeGlobal.h"
#include <cmath>
static const char* const s_vshYUV420p = CGE_SHADER_STRING
(
attribute vec4 vPosition;
varying vec2 vTexCoord;
uniform mat2 rotation;
uniform vec2 flipScale;
void main()
{... |
#pragma once
#include "SDL/SDL.h"
#include "stdio.h"
#include <list>
//--------------------------------
//Macro definition
//--------------------------------
//--------------------------------
//Type definition
//--------------------------------
struct Vector2{
Vector2(float, float);
Vector2 operator + (co... |
#include "D3DDevice.h"
#include <extension.h>
#include "DX.h"
#include <stdafx.h>
#include "D3DDeviceContext.h"
#ifdef _DEBUG
#define D3D_DEVICE_CREATE_FLAG D3D11_CREATE_DEVICE_DEBUG
#else
#define D3D_DEVICE_CREATE_FLAG 0
#endif
void D3DDevice::Initialize(D3D_DRIVER_TYPE tp = D3D_DRIVER_TYPE_HARDWARE) {
... |
/*
** Copyright (c) 2018-2019 Valve Corporation
** Copyright (c) 2018-2019 LunarG, 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.... |
/**
@file
@author Shin'ichiro Nakaoka
*/
#include "GRobotControllerItem.h"
#include "GRobotBar.h"
#include "GRobotController.h"
#include <cnoid/ItemList>
#include <cnoid/MessageView>
#include <cnoid/TimeBar>
#include <cnoid/PutPropertyFunction>
#include <cnoid/Archive>
#include <cnoid/BodyItem>
#include <cnoid/B... |
/*
* Copyright 2020 OmniSci, 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 t... |
#include "data_provider_builders.h"
#include "cat_feature_perfect_hash.h"
#include "columns.h"
#include "data_provider.h"
#include "feature_index.h"
#include "lazy_columns.h"
#include "sparse_columns.h"
#include "objects.h"
#include "sparse_columns.h"
#include "target.h"
#include "util.h"
#include "visitor.h"
#includ... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* fileSyncToArch.h - This file may be generated by a program or script
*/
#ifndef FILE_SYNC_TO_ARCH_HPP
#define FILE_SYNC_TO_ARCH_HPP
/* This is a Object Fil... |
/**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
/***********************************************************************************************************/
/* Declarations, macros, parser functions */
/***********... |
// 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_safepe.h"
#include <boost/assign/std/vec... |
#include "compat.h"
#include <QDateTime>
#include <cstdlib>
#include "types/camount.h"
#include "transactionfilterproxy.h"
#include "transactiontablemodel.h"
#include "transactionrecord.h"
// Earliest date that can be represented (far in the past)
const QDateTime TransactionFilterProxy::MIN_DATE = QDateTime::fromTi... |
#ifndef FW_TIME_HPP
#define FW_TIME_HPP
#include <Fw/Types/BasicTypes.hpp>
#include <Fw/Types/Assert.hpp>
#include <Fw/Types/Serializable.hpp>
#include <FpConfig.hpp>
namespace Fw {
class Time: public Serializable {
public:
enum {
SERIALIZED_SIZE = sizeof(FwTimeBaseStoreType)
... |
/*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <ar... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <algorithm>
#include <cinttypes>
#include <cmath>
#include <cstdlib>
#include <iterator>
#include <limits>
#include <numeric>
#include <random>
#include <string>
// clang-format off
#ifdef ${BACKEND_NAME}_FLOAT_TOLERANCE_B... |
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/topological_sort.hpp>
#include <boost/range.hpp>
#include <boost/range/adaptor/indexed.hpp>
#include <deque>
#include <iostream>
#include <list>
#include <string>
#include <type_traits>
#include <vector>
// From the docs, An adjacency_list has the followi... |
/*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... |
/*
Copyright (C) 2003-2014 by David White <davewx7@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
incl... |
// boost\math\distributions\binomial.hpp
// Copyright John Maddock 2006.
// Copyright Paul A. Bristow 2007.
// 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/LICENSE_1_0.txt)
// http://en.wikip... |
/*
Copyright 2012 Rogier van Dalen.
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, softwa... |
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental 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
*
* ... |
/*
* Copyright 2014 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 contributing ... |
/*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018 David Shah <david@symbioticeda.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appe... |
#include <torch/csrc/jit/python/module_python.h>
#include <torch/csrc/jit/python/pybind_utils.h>
#include <torch/csrc/jit/python/python_dict.h>
#include <torch/csrc/jit/python/python_ivalue.h>
#include <c10/util/irange.h>
namespace torch {
namespace jit {
// This is a hack to remove instances deleted in C++ from the... |
//--------------------------------------------------------------------------------
// NVIDIA(R) GVDB VOXELS
// Copyright 2016-2018, NVIDIA Corporation.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
// 1. Redistr... |
/**
* @file Graph/DepthFirstSearch/test2.cxx Test Case for Depth-First Search
* @brief
* A test case
*
* @author George Heineman
* @date 6/15/08
*/
#include <cassert>
#include <iostream>
#include "Graph.h"
#include "dfs.h"
/** cormen example, p. 481, first edition */
int main (int argc, char **argv) {
... |
//$Id:$
//------------------------------------------------------------------------------
// SpiceKernelWriter
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2015 United States Governme... |
/* -------------------------------------------------------------------
* @doc
* @notice Template file wizards/projects/qtquickapplication/main.cpp
*
* @copyright Arboreus (http://arboreus.systems)
* @author Alexandr Kirilov (http://alexandr.kirilov.me)
* @created 11/06/2021 at 19:45:31
* */// --------------... |
//-----------------------------------------------------------------------------
// 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 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/history/history_service_factory.h"
#include "base/prefs/pref_service.h"
#include "chrome/browser/bookmarks/bookmark_model_fa... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Helveticum Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "miner.h"
#include "amount.h"
#include "chain.h"
#include "chainpara... |
// Copyright (c) 2019 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 <test/util.h>
#include <chainparams.h>
#include <consensus/merkle.h>
#include <miner.h>
#include <outputtype.h>
#include... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactionrecord.h"
... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "BlastMeshEditorDialogs.h"
#include "BlastFractureSettings.h"
#include "BlastFracture.h"
#include "BlastMeshFactory.h"
#include "BlastMesh.h"
#include "Framework/MultiBox/MultiBoxBuilder.h"
//#include "Engine/StaticMesh.h"
//#include "Widgets/Input... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Copyright 2014 Blake Embrey (hello@blakeembrey.com)
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file or at https://opensource.org/licenses/MIT.
#include "third_party/liburlpattern/tokenize.h"
#includ... |
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
const char VOWEL[] = "AUEOI";
const char CONSONANT[] = "JSBKTCLDMVNWFXGPYHQZR";
int n;
int main()
{
int T;
cin >> T;
for (int t = 1; t <= T; t++)
{
// Input.
cin >> n;
// Solve.
string vowe... |
/*
// Copyright (c) 2019-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
// Copyright (c) 2015-2019 The Khronos Group 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 applicab... |
// C++2a concepts experiment
// g++-2a -std=c++2a -fconcepts
// wikipedia example
#ifdef FAILTEST // for cleaner asm
class NotComp
{
}; // class lacking in equality/inequality operator
#endif
template <class T>
concept bool EqualityComparable = requires(T a, T b)
{
{
a == b
}
->bool;
{
a != b
}
->bool;
};
... |
#include "jtil/ui/rocket_file_interface.h"
#include <stdio.h>
using Rocket::Core::String;
namespace jtil {
namespace ui {
RocketFileInterface::RocketFileInterface(const std::string& root) :
root(root.c_str()) {
}
RocketFileInterface::~RocketFileInterface() {
}
// Opens a file.
Rocket::Core::FileHa... |
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#include <QTextDocument> // For Qt::escape
#include ... |
#include "PeakRankModel.h"
extern const int num_RKH_combos = 6;
extern const int num_RKH_pairs = num_RKH_combos * num_RKH_combos;
extern const string combos[]={"NB","H","K","HK","R","RR"};
int calc_RKH_combo_idx (int r, int k, int h)
{
const int sum = r + k + h;
if (sum==0)
return 0; // no basics
... |
#include <config.hpp> // for ensure_config
#include <fs.hpp>
#include <getopt.h>
#include <libgen.h>
#include <llarp.h>
#include <logger.hpp>
#include <signal.h>
#include <string>
#include <iostream>
#ifdef _WIN32
#define wmin(x, y) (((x) < (y)) ? (x) : (y))
#define MIN wmin
#endif
struct llarp_main *ctx = 0;
void... |
/**************************************************************************
* CrProtonReentrant.cc
**************************************************************************
* Read comments at the head of CosmicRayGeneratorAction.cc
* and GLAST-LAT Technical Note (LAT-TD-250.1) by T. Mizuno et al.
* for overall f... |
// The MIT License(MIT)
//
// Copyright(c) 2016 Cedric Guillemet
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, c... |
// Copyright (c) 2014 The Bitcoin Core developers
// Copyright (c) 2014-2015 The Dash developers
//
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "primitives/transaction.h"
#include "main.h"
#include <boost/test... |
#include "CodeTree.h"
void CodeTree::buildCodeTree(FrequencyTable& table) {
fillHeap(table);
constructTree();
}
void CodeTree::fillHeap(FrequencyTable& table) {
for (auto& pair : table) {
huffmanMinHeap.push(std::move(make_shared<HuffmanTreeNode>(pair.first, pair.second)));
}
}
void CodeTree::constructTree() {... |
#include "widget.h"
#include <QApplication>
#include <QDesktopWidget>
#include <QRect>
int main(int argc, char *argv[]) {
QApplication a(argc, argv);
Widget w;
w.setWindowState(Qt::WindowMinimized); /* start the application minimized */
w.show();
return a.exec();
}
|
/***********************************************************************************************+
* @brief -- XX -- Library - CPP Source file
* \par
* \par @DETAILS
*
*
* \li LIMITATION-TO-CLASS
* \li LIMITATION-TO-CLASS
*
* @note ANY RELEVANT NOTES
*
* @file e... |
#ifndef IMAGE_VIEW_HPP_INCLUDED
#define IMAGE_VIEW_HPP_INCLUDED
#include <vector>
#include <fstream>
#include <string>
#include <iostream>
#include <vector>
#include <memory>
#include "vulkan_include.hpp"
#include "logical_device.hpp"
namespace vkBasalt{
std::vector<VkImageView> createImageViews(std::shared_ptr... |
#include "config/config.hpp"
#include <json/json.h>
#include <fstream>
namespace taraxa {
std::string getConfigErr(std::vector<string> path) {
std::string res = "Error in processing configuration file on param: ";
for (size_t i = 0; i < path.size(); i++) res += path[i] + ".";
res += " ";
return res;
}
Json... |
//===- HWAddressSanitizer.cpp - detector of uninitialized reads -------===//
//
// 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
//
//===-------------------------------... |
// C:\diabpsx\PSXSRC\TIMS.CPP
#include "types.h"
// address: 0x8007CF00
// line start: 458
// line end: 486
void TimSwann__Fv() {
}
|
/*************************************************************************/
/* file_access_android.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
// Copyright 2015 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/engagement/site_engagement_service.h"
#include "base/time/clock.h"
#include "base/time/default_clock.h"
#include "chrome/browser... |
#include "mwoibn/hierarchical_control/actions/merge/end.h"
#include "mwoibn/hierarchical_control/actions/merge/replace.h"
#include "mwoibn/hierarchical_control/actions/merge.h"
#include "mwoibn/hierarchical_control/controllers/default.h"
mwoibn::hierarchical_control::actions::merge::End::End(mwoibn::Matrix& P, mwoibn:... |
/*
*
* Copyright (c) 2004
* John Maddock
*
* 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/LICENSE_1_0.txt)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent version.
... |
#include <Audio.h>
#include "settings.h"
#include "speech.h"
#ifdef SDCARD
extern AudioPlaySdWav audioPromptSD;
extern AudioPlayMemory audioPrompt;
extern AudioMixer4 audioOutputMixer;
#else
#include <Talkie.h>
Talkie voice;
extern AudioPlayMemory audioPrompt;
extern AudioMixer4 audi... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/MakerBux-config.h"
#endif
#include "optionsdialog.h"
#include "ui_optionsdialog.h... |
/* mbed Microcontroller Library
* Copyright (c) 2013-2014 ARM 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... |
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
#define PROBLEM "https://onlinejudge.u-aizu.ac.jp/courses/library/3/DSL/all/DSL_2_A"
#include <iostream>
#include "../lib/segment_tree.hpp"
int main() {
int n, q; std::cin >> n >> q;
auto op = [](long long a, long long b) { return std::min(a, b); };
SegmentTree<long long>
seg(std::vector<long long... |
// license:GPL-2.0+
// copyright-holders:Raphael Nabet, Brett Wyer
/*
Corvus Concept driver
Raphael Nabet, Brett Wyer, 2003-2005
*/
#include "emu.h"
#include "includes/concept.h"
#define VERBOSE 1
#define LOG(x) do { if (VERBOSE > 0) logerror x; } while (0)
#define VLOG(x) do { if (VERBOSE > 1) logerror x... |
#include <fiberchain/dapp_history/dapp_history_plugin.hpp>
#include <fiberchain/dapp_history/dapp_impacted.hpp>
#include <fiberchain/dapp_history/dapp_history_objects.hpp>
#include <fiberchain/dapp_history/dapp_history_api.hpp>
#include <fiberchain/chain/database.hpp>
#include <fiberchain/chain/index.hpp>
#include <fi... |
/*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and red... |
// 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... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkSobelGradientMagnitudePass.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.... |
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
*************************************... |
/**
* The U Programming Language
*
* Copyright 2018 Joseph Benden
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
// Copyright (c) 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 <pow.h>
#include <arith_uint256.h>
#include <chain.h>
#include <primiti... |
#include "pch.h"
#include "vcpkg_Commands.h"
#include "vcpkg_Input.h"
#include "vcpkg_System.h"
namespace vcpkg::Commands::BuildExternal
{
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, const Triplet& default_triplet)
{
static const std::string example =
Comm... |
#include <stdlib.h>
#include <string>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "Tools.h"
#include <string.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
int main(int argc,char **argv)
{
std::string url[]... |
#include "config.h"
int main(int argc, char *argv[])
{
//需要修改的数据库信息,登录名,密码,库名
string user = "root";
string passwd = "root";
string databasename = "qgydb";
//命令行解析 后期可以写一个类,读取项目配置文件
Config config;
config.parse_arg(argc, argv);
//栈上构造 初始化 httpconns timers
WebServer server;
//初始... |
#include "UF08.h"
namespace OFEC {
UF08::UF08(param_map & v) : UF08(v.at("problem name"), v.at("number of variables")) { //param_numDim = 30 is suggested
}
UF08::UF08(const std::string & name, size_t size_var) : problem(name, size_var, 3), UF(name, size_var, 3) {
}
void UF08::initialize() {
std::vector<std::p... |
// Memory-mapped corpus track
// (c) Ulrich Germann. All rights reserved
// Licensed to NRC under special agreement.
#include <sstream>
#include "ug_mm_ttrack.h"
#include "tpt_pickler.h"
namespace ugdiss
{
using namespace std;
#if 0
template<>
id_type
Ttrack<id_type>::
toID(id_type const& t)
{
r... |
#include "teca_connected_components.h"
#include "teca_mesh.h"
#include "teca_array_collection.h"
#include "teca_variant_array.h"
#include "teca_metadata.h"
#include "teca_cartesian_mesh.h"
#include "teca_array_attributes.h"
#include <algorithm>
#include <iostream>
#include <deque>
#include <cmath>
#include <sstream>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.