text stringlengths 7 961k |
|---|
#include "plansys2_pddl_parser/Domain.h"
namespace parser { namespace pddl {
void And::PDDLPrint( std::ostream & s, unsigned indent, const TokenStruct< std::string > & ts, const Domain & d ) const {
tabindent( s, indent );
s << "( and\n";
for ( unsigned i = 0; i < conds.size(); ++i ) {
conds[i]->PDDLPrint( s, in... |
// written at 11:19 on 4 Mar 2017
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <sstream>
#include <algorithm>
#include <complex>
#include <deque>
#include <list>
#include <map>
#include <qu... |
#include <memory>
#include <string>
#include <vector>
#include "envoy/extensions/filters/network/ext_authz/v3alpha/ext_authz.pb.h"
#include "envoy/extensions/filters/network/ext_authz/v3alpha/ext_authz.pb.validate.h"
#include "envoy/stats/stats.h"
#include "common/buffer/buffer_impl.h"
#include "common/json/json_load... |
// Copyright (c) 2012-2018 The Worldcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <wallet/wallet.h>
#include <wallet/test/wallet_test_fixture.h>
#include <stdint.h>
#include <boost/test/unit_te... |
/****************************************************************************
** Meta object code from reading C++ file 'openuridialog.h'
**
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "qt/openuridialog.h"
#include <... |
//
// impl/buffered_read_stream.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 A... |
//===-- llvm/CodeGen/MachineModuleInfo.cpp ----------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// 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 "pubkey.h"
#include "key.h"
#include "script/script.h"
#include "script/standard.h"
#include "uint256.h"
#include "t... |
/***************************************************************************
# Copyright (c) 2018, NVIDIA CORPORATION. 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 sourc... |
//
// segmentedcontrol.cpp
// MDStudio
//
// Created by Daniel Cliche on 2014-09-15.
// Copyright (c) 2014-2020 Daniel Cliche. All rights reserved.
//
#include "segmentedcontrol.h"
#include <math.h>
#include "draw.h"
using namespace MDStudio;
// -----------------------------------------------------------------... |
#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... |
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *bitcoin_strings[] = {
QT_TRANSLATE_NOOP("bitcoin-core", ""
"%s, you must set a rpcpassword in the configuration file:\n"
"%s\n"
"It is recomme... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Jaag Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "chai... |
#include "fsm.h"
#include <iostream>
using namespace std;
FSM::FSM() {}
FSM::~FSM() {}
json FSM::next_state(const MeasurementPackage &m){
State * next_state;
double min_cost = 100;
PlannedPath best_p;
StateName new_state_name;
double speed_limit = get_speed_limit(m);
// find the state with... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
#include "hardware/ohci.h"
#include "physicalmemory.h"
void OHCIPort::reset() {
device_connected = true;
port_enabled = false;
port_suspended = false;
port_power = false;
low_speed = false;
connect_change = false;
enable_change = false;
suspend_change = false;
reset_change = false;
}
uint32_t OHCIPort::read... |
#pragma once
#include <string>
#include <utility>
#include <QtCore/QString>
namespace strings
{
class UniString;
}
QString ToQString(strings::UniString const & s);
QString ToQString(std::string const & s);
template <typename Layout, typename... Args>
Layout * BuildLayout(Args &&... args)
{
return new Layout(std:... |
#define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DPL_5_J"
#include <cstdio>
#include <vector>
#include "ModularArithmetic/modint.cpp"
using mi = modint<1000'000'007>;
int main() {
size_t n, k;
scanf("%zu %zu", &n, &k);
std::vector<mi> dp(n+1, 0);
dp[0] = 1;
for (size_t i = 1; i <... |
#include <iostream>
#include <cstdlib>
struct __Pb__L420R__Pe___Type
{
std::ostream *ptr;
unsigned long long addr;
}
;
static struct __Pb__L420R__Pe___Type __Pb__L420R__Pe___Type_Ret_AddressOf_UL_Arg___Pb__L420R__Pe___Arg_Ul_Arg_UL_Arg(unsigned long long ,std::ostream *,unsigned long ,unsigned long long );
void v... |
// Copyright (c) 2019 The Chromium Embedded Framework 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 was generated by the CEF translato... |
#define NOMINMAX
#include <Windows.h>
#include "valve_sdk/sdk.hpp"
#include "helpers/utils.hpp"
#include "helpers/input.hpp"
#include "features/legit/aimbot.hpp"
#include "features/skins/kit_parser.h"
#include "hooks.hpp"
#include "menu.hpp"
#include "options.hpp"
#include "render.hpp"
DWORD WINAPI OnDllAttach(LPVOI... |
/*
* Copyright (c) 2020, Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Assertions.h>
#include <AK/Format.h>
#include <LibPthread/pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
/*
* Bug:
* If the main thread of a ... |
// 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.
#include "base/scoped_generic.h"
#include <memory>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include "base... |
//--------------------------------------------------------------------------------------
// File: DXUTguiIME.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include "DXUT.h"
#include "DXUTgui.h"
#include "DXUTs... |
/***************************************************************************
* Copyright (C) 2005 by Dominik Seichter *
* domseichter@web.de *
* *
* This pr... |
//
// Created by Andrey Bzikadze on 12/10/21.
//
#include "mdbg_seq.hpp"
using namespace repeat_resolution;
// ---------- EdgeSegment ----------
EdgeSegment::EdgeSegment(const dbg::Edge *edge, const uint64_t start,
const uint64_t end)
: edge{edge}, start{start}, end{end} {
VERIFY(st... |
#include "rewriter/Delegate.h"
#include "ast/Helpers.h"
#include "core/GlobalState.h"
#include "rewriter/Util.h"
#include <optional>
using namespace std;
namespace sorbet::rewriter {
static bool literalSymbolEqual(const core::GlobalState &gs, const ast::ExpressionPtr &node, core::NameRef name) {
if (auto lit = a... |
/*
* 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... |
#include <cosiolib/contract.hpp>
#include <cosiolib/print.hpp>
static uint32_t current_block_number(cosio::contract *c) {
return cosio::current_block_number();
}
static uint32_t current_timestamp(cosio::contract *c) {
return cosio::current_timestamp();
}
static uint32_t current_block_producer(cosio::contract... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/cuda/cuda_kernel.h"
#include "core/providers/cuda/math/unary_elementwise_ops_impl.h"
namespace onnxruntime {
namespace contrib {
namespace cuda {
class Inverse final : public ::onnxruntime::cuda::... |
// 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/test/base/mojo_web_ui_browser_test.h"
#include <utility>
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/path_... |
#pragma once
#include <bnb/spal/interfaces/all.hpp>
#include <memory>
namespace bnb::interfaces
{
using frames_provider_sptr = std::shared_ptr<frames_provider>;
using frames_provider_wptr = std::weak_ptr<frames_provider>;
using frames_provider_uptr = std::unique_ptr<frames_provider>;
using frames_prov... |
#include "dvlnet/base.h"
#include <algorithm>
#include <cstring>
#include <memory>
namespace devilution {
namespace net {
void base::setup_gameinfo(buffer_t info)
{
game_init_info = std::move(info);
}
void base::setup_password(std::string pw)
{
pktfty = std::make_unique<packet_factory>(pw);
}
void base::clear_pa... |
/****************************************************************************
*
* Copyright (c) 2016 PX4 Development Team. 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. Redistri... |
// if building a real arduino program than no-op this file
#ifndef ARDUINO
#include <stdint.h>
#include <iostream>
using namespace std;
#include "../../src/TrimWright.h"
#include "../../src/TrimWright.cpp"
using namespace TrimWright;
char debugBuffer[32];
char* debugEvent(Event* event) {
if (event) {
s... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/browser_tabstrip.h"
#include "base/command_line.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/... |
//--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... |
#ifndef WORLD_HPP
#define WORLD_HPP
GLOBAL constexpr int ROOM_W = 20;
GLOBAL constexpr int ROOM_H = 15;
GLOBAL struct World
{
std::vector<std::vector<std::string>> rooms;
Map current_map;
int current_map_x; // In screens!
int current_map_y; // In screens!
std::string current_map_name;
std::str... |
#pragma once
#include <ECS/World.hpp>
using namespace Poly;
namespace GGJGame
{
namespace TransmitterSystem
{
struct PercentData : public BaseObject<>
{
float TimeLeft;
SafePtr<Entity> TextEnt;
};
// sets all TransmitterComponent properties.
void GAME_DLLEXPORT Update(World* world);
int GetPercen... |
// 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... |
//
// 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/telegram/Contact.h"
#include "td/telegram/misc.... |
// 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 "base/nix/mime_util_xdg.h"
#include "base/files/file_path.h"
#include "base/lazy_instance.h"
#include "base/synchronization/lock.h"
#include... |
include <iostream>
using namespace std;
int main()
{
int arr[10], i, num, n, c=0, pos;
cout<<"Enter the array size : ";
cin>>n;
cout<<"Enter Array Elements : ";
for(i=0; i<n; i++)
{
cin>>arr[i];
}
cout<<"Enter the number to be search : ";
cin>>num;
for(i=0; i<n; i++)
{
if(arr[i]==num)
{
c=1;
... |
#include "event/output/ReleaseControl.hpp"
using namespace fm;
using namespace fm::event::output;
ReleaseControl::ReleaseControl(long _channelId) :
FacadeEvent(RELEASE_CONTROL),
channelId(_channelId)
{
}
long ReleaseControl::getChannelId() const
{
return channelId;
}
std::string ReleaseControl::toString... |
/*
Copyright 2007 Benedict Brown
Princeton University
correspond.cc
Compute Locally Weighted ICP feature correspondences of all scans to a
specified one.
-----
This file is part of tps_alignment.
tps_alignment is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Licen... |
#include "AppCUI.hpp"
using namespace AppCUI;
using namespace AppCUI::Application;
using namespace AppCUI::Controls;
using namespace AppCUI::Input;
#define COMMAND_ID_PRINT_HELLO_WORLD 1
#define COMMAND_ID_PRINT_A_NUMBER 2
#define COMMAND_ID_CLEAR_TEXT 3
#define COMMAND_ID_NUMPAD 4
#define COMMAN... |
// BITSET2
//
// Copyright Claas Bontus
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.com/ClaasBontus/bitset2
//
#ifndef BITSET2_ARRAY_F... |
/**
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include "StdAfx.h"
namespace Microsoft::Resources::Build
{
/*!
* FileInfoPrivateData - abstract base class for per-file private data
*/
FileInfoPrivateD... |
/**
* @file
* Declares a Unicode string utility type.
*/
#pragma once
#include <boost/iterator/iterator_facade.hpp>
#include <boost/range/iterator_range.hpp>
#include <boost/optional.hpp>
#include <unicode/utext.h>
#include <unicode/ubrk.h>
#include <string>
#include <exception>
#include <limits>
namespace puppet ... |
/* public domain Simple, Minimalistic JPEG writer - http://jonolick.com
*
* Quick Notes:
* Based on a javascript jpeg writer
* JPEG baseline (no JPEG progressive)
* Supports 1, 3 or 4 component input. (luminance, RGB or RGBX)
*
* Latest revisions:
* 1.52 (2012-22-11) Added support for specifying Luminance, R... |
// Boost min_rand.hpp header file ------------------------------------------//
// (C) Copyright Beman Dawes 1998. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
/... |
#include "splashscreen.h"
#include "clientversion.h"
#include "util.h"
#include <QPainter>
#undef loop /* ugh, remove this when the #define loop is gone from util.h */
#include <QApplication>
SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f) :
QSplashScreen(pixmap, f)
{
// set reference poi... |
/*
* Copyright 2017 MapD Technologies, 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 o... |
/******************************************************************************
* $Id$
*
* Project: ECRG TOC read Translator
* Purpose: Implementation of ECRGTOCDataset and ECRGTOCSubDataset.
* Author: Even Rouault, even.rouault at mines-paris.org
*
***********************************************************... |
// Copyright (c) 2014 The Bitcoin developers
// Copyright (c) 2021 The GLOBALSMARTASSET Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "crypto/sha1.h"
#include "crypto/common.h"
#include <string.h>
/... |
//
// Created by lukas on 07.08.20.
//
#ifndef LATTICEMODELIMPLEMENTATIONS_LINK_LATTICE_HEADER_HPP
#define LATTICEMODELIMPLEMENTATIONS_LINK_LATTICE_HEADER_HPP
#include "link_lattice_models/u_one_model.hpp"
#include "link_lattice_models/su_two_model.hpp"
#endif //LATTICEMODELIMPLEMENTATIONS_LINK_LATTICE_HEADER_HPP |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// This file was modified by Oracle on 2013, 2014, 2015, 2017, 2018.
// Modifications copyright (c) 2013-2018 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, o... |
// Copyright 2016 The SwiftShader 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 b... |
#include "CacheDictionary.h"
#include <functional>
#include <memory>
#include <Columns/ColumnString.h>
#include <Common/BitHelpers.h>
#include <Common/CurrentMetrics.h>
#include <Common/HashTable/Hash.h>
#include <Common/ProfileEvents.h>
#include <Common/ProfilingScopedRWLock.h>
#include <Common/randomSeed.h>
#include... |
template<typename T, typename X>
struct presegtree{
unordered_map<T, X> m;
int n;
segtree<X> sg;
int get(T p) {
assert(m.count(p));
return m[p];
}
void modify(T p, X value) {
sg.modify(get(p), value);
}
X query(T l, T r) {
return sg.query(get(l), get(r)... |
// VCP Library
// http ://verified.computation.jp
//
// VCP Library is licensed under the BSD 3 - clause "New" or "Revised" License
// Copyright(c) 2017, Kouta Sekine <k.sekine@computation.jp>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permit... |
/*
*
* Copyright 2019 Asylo 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... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// File: AES_Helper.cpp
/// Description: An utility class that permits easy AES encryption/decryption and benchmarking.
/// Author: Chiuta Adrian Marius
/// Created: 17-12-2009
/... |
#include <bits/stdc++.h>
#define N 100020
#define M 520
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
const double eps = 1e-6;
double R[M][M];
struct Line ... |
#include <common_utils/string.hpp>
#include "cookie_helper.hpp"
namespace carpi::data {
CookieHelper::CookieHelper(const std::multimap<std::string, std::string> &headers) {
const auto rng = headers.equal_range("cookie");
for(auto itr = rng.first; itr != rng.second; ++itr) {
const auto ... |
// Time Complexity : O(E)
// Space Complexity : O(E)
// E = # of Edges in Graph
class Solution {
public:
void dfs(string s,unordered_map<string, priority_queue <string, vector<string>, greater<string>>> &m,vector<string> &ans){
if(m[s].empty())
return;
while(!m[s].empty()){
strin... |
//******************************************************************************
//*
//* FULLNAME: Single-Chip Microcontroller Real-Time Operating System
//*
//* NICKNAME: scmRTOS
//*
//* PROCESSOR: ARM7
//*
//* TOOLKIT: arm-(elf/none-eabi)-gcc (GNU)
//*
//* PURPOSE: Target Dependent Stuff Sou... |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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... |
#include "Day20-TrenchMap.h"
#include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h>
__BEGIN_LIBRARIES_DISABLE_WARNINGS
#include "CppUnitTest.h"
__END_LIBRARIES_DISABLE_WARNINGS
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace CurrentDay = AdventOfCode::Year2021::Day20;
TEST_CLASS(Day20... |
#include <QSharedPointer>
#include <QStringList>
#include "models/image.h"
#include "tags/tag.h"
#include "catch.h"
#include "integration-helpers.h"
TEST_CASE("Zerochan")
{
SECTION("Html")
{
QList<QSharedPointer<Image>> images = getImages("Zerochan", "www.zerochan.net", "regex", "Touhou", "results.html");
// C... |
/*
* SEGS - Super Entity Game Server
* http://www.segs.io/
* Copyright (c) 2006 - 2018 SEGS Team (see AUTHORS.md)
* This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
*/
/*!
* @addtogroup SEGSAdmin Projects/CoX/Utilities/SEGSAdmin
* @{
*/
#include "SEGSAdminTool... |
#include <Client/States/SettingsState.h>
#include <Common/Utility/Utility.h>
#include <Common/Resources/ResourceHolder.h>
#include <SFML/Graphics/RenderWindow.hpp>
SettingsState::SettingsState(StateStack& stack, Context context)
: State(stack, context)
, mGUIContainer()
{
mBackgroundSprite.setTexture(context.textur... |
#include <gsl/gsl>
#include <math.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
bool isPrime( unsigned long input )
{
unsigned long max;
if ( input < 4 )
{
return true;
}
max = sqrt(input);
if ( input % 2 == 0 )
{
return false;
}
for( unsigned l... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime/model/PutSipMediaApplicationLoggingConfigurationRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Chime::Model;
using namespace A... |
// 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/printing/printing_message_filter.h"
#include <string>
#include <utility>
#include "base/bind.h"
#include "build/build_confi... |
#include "HandBehavior.h"
#include <iostream>
using namespace std;
void HBOutputCommand::output(HandBehaviorData *d)
{
// direct command here
cout << "Executing direct command !\n";
d->singleMove(d->_cmd, 35);
}
void HBShakeCmdOutput::output(HandBehaviorData *d)
{
// direct command here
cout << "Executing shake ... |
#include "bindings.hpp"
PyObject* py::vm_area::list(core::Core& core, PyObject* args)
{
auto* obj = static_cast<PyObject*>(nullptr);
const auto ok = PyArg_ParseTuple(args, "S", &obj);
if(!ok)
return nullptr;
const auto opt_proc = py::from_bytes<proc_t>(obj);
if(!opt_proc)
ret... |
// Copyright (c) 2017-2017 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 <consensus/tx_verify.h>
#include <consensus/consensus.h>
#include <names/main.h>
#include <primitives/transaction.h... |
/**
* @file SampleWindow.cpp
* @brief Implementation of the SampleWindow class.
* @author Dominique LaSalle <dominique@solidlake.com>
* Copyright 2017
* @version 1
*/
#include "SampleWindow.hpp"
#include "GUI/WindowProperties.hpp"
#include "Data/CSRMatrix.hpp"
#include "Utility/String.hpp"
#include "Utility/D... |
#ifndef ENUM_SET_TEST_TESTING_HPP
#define ENUM_SET_TEST_TESTING_HPP
#include <doctest/doctest.h>
#define STATIC_CHECK(Expression, Message) \
static_assert(Expression, Message); \
CHECK(Expression);
#define STATIC_REQUIRE(Expression, Message) \
static_assert(Expression, Message); \
REQUIRE(Expression)... |
/* Copyright 2018 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... |
/*
* Diff Match and Patch -- Test Harness
* Copyright 2018 The diff-match-patch Authors.
* https://github.com/google/diff-match-patch
*
* 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
*... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2019-2020 Edward.Wu
*
* 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
* u... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifdef HAVE_CONFIG_H
#include "config/designcoin-config.h"
#endif
#include "netba... |
//=================================================================================================
/*!
// \file src/mathtest/smatdmatmult/HCaSLDb.cpp
// \brief Source file for the HCaSLDb sparse matrix/dense matrix multiplication math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// T... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <ngraph_functions/builders.hpp>
#include "test_utils/cpu_test_utils.hpp"
using namespace InferenceEngine;
using namespace CPUTestUtils;
namespace CPULayerTestsDefinitions {
typedef std::tuple<
std::vector<size_t>... |
//
// Copyright (c) 2008-2016 the Urho3D project.
//
// 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, m... |
///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2019, Nefelus 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:
//... |
/*
* Copyright (c) 2021 Huawei Device 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 ... |
/**********************************************************************************************************************
* Scimitar 7 - A tool for parameter-space exploration.
* Compiler Library Implementation
*
* Copyright (c) 2013-2020 Andrew C. Loheac, Joaquin E. Drut, et al.
* See LICENSE.TXT distributed with t... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2018 The Odex developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit... |
#include <iostream>
#include<ctime>
#include<cstdlib>
void losujTablice(int tab[], int wielkosc)
{
for(int i=0; i<wielkosc; i++)
tab[i] = rand()%100;
}
void losujTabliceZakres(int tab[], int wielkosc, int start, int stop)
{
for(int i=0; i<wielkosc; i++)
tab[i] = rand()%(stop-start+1)+start;
//rand()%(stop-sta... |
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
#include "Luau/TypeInfer.h"
#include "Luau/TypeVar.h"
#include "Fixture.h"
#include "doctest.h"
using namespace Luau;
LUAU_FASTFLAG(LuauLowerBoundsCalculation);
TEST_SUITE_BEGIN("IntersectionTypes")... |
#include <torch/csrc/distributed/rpc/python_rpc_handler.h>
#include <torch/csrc/distributed/rpc/rpc_agent.h>
#include <torch/csrc/jit/python/pybind_utils.h>
#include <torch/csrc/utils/python_compat.h>
namespace torch {
namespace distributed {
namespace rpc {
namespace {
constexpr auto kInternalModule = "torch.distri... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2020 Lew Wei Hao
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or ... |
/*
* 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... |
#include <ctype.h>
#include <inttypes.h>
#include <stdio.h>
#include <capstone.h>
#include "imgui.h"
#include "TracyCharUtil.hpp"
#include "TracyColor.hpp"
#include "TracyFilesystem.hpp"
#include "TracyImGui.hpp"
#include "TracyMicroArchitecture.hpp"
#include "TracyPrint.hpp"
#include "TracySort.hpp"
#include "TracyS... |
#include "cpr/session.h"
#include <algorithm>
#include <cstdlib>
#include <fstream>
#include <functional>
#include <string>
#include <curl/curl.h>
#include "cpr/cprtypes.h"
#include "cpr/util.h"
namespace cpr {
// Ignored here since libcurl reqires a long:
// NOLINTNEXTLINE(google-runtime-int)
constexpr long ON =... |
/*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.