text stringlengths 7 961k |
|---|
// Copyright (c) 2019-2020 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/nomadic/masternodeswidget.h"
#include "qt/nomadic/forms/ui_masternodeswidget.h"
#include "qt/nomadic/qtutils.h"
#includ... |
// Copyright 2016 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 "media/gpu/gpu_video_decode_accelerator_factory.h"
#include "base/memory/ptr_util.h"
#include "gpu/command_buffer/service/gpu_preferences.h"
#in... |
int countnodes(struct Node *one)
{
int count = 1;
struct Node *temp = one;
while(temp->next != one)
{
count++;
temp = temp->next;
}return count;
}
int countNodesinLoop(struct Node *head)
{
Node *one = head,*two = head;
while(one && two && two->next)
{
one = one->n... |
/*
* DynamicPubWebGenerator.cpp
*
* Created on: 15.01.2014
* Author: Henning
*/
#include <queue>
#include <networkit/generators/DynamicPubWebGenerator.hpp>
namespace NetworKit {
DynamicPubWebGenerator::DynamicPubWebGenerator(count numNodes,
count numberOfDenseAreas, float neighborhoodRadius,
... |
// MIT License
// Copyright (c) Microsoft 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, modif... |
#include "util.h"
#include <GL/glew.h>
#include <math.h>
double safeAcos(double x) {
if (x < -1.0)
x = -1.0;
else if (x > 1.0)
x = 1.0;
return acos(x);
}
float safeAcos(float x) {
if (x < -1.0f)
x = -1.0f;
else if (x > 1.0f)
x = 1.0f;
return acos(x);
}
void cube() {
glBegin(GL_TRIANGLE... |
/*
Binner class
Last Updated by Zaki on July 6, 2019
*/
#include "../include/Binner.h"
//==============================================================
//--------------------------------------------------------------
// Constructor
PHENO::Binner::Binner() {}
//--------------------------------------------------... |
/* Copyright 2021, Gurobi Optimization, LLC */
/* Solve the classic diet model, showing how to add constraints
to an existing model. */
#include "gurobi_c++.h"
using namespace std;
void printSolution(GRBModel& model, int nCategories, int nFoods,
GRBVar* buy, GRBVar* nutrition);
int
main(int ar... |
#include "stdafx.h"
#include <stdio.h>
#include <windows.h>
#include <string>
#include <vector>
#include "commutils.h"
#include "HipsCfgObject.h"
#include "HookImplementObject.h"
#include "HipsHookTest.h"
#include "benchmark\benchmark.h"
#include "gtest\gtest.h"
#include "gmock\gmock.h"
#ifdef _FUNCTION_TEST
class Api... |
/* Copyright 2016 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 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/* $Id$ */
#include "dpinterface.h" |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <unistd.h>
#include <arc/StringConv.h>
#include <arc/FileUtils.h>
#include <arc/ArcConfigIni.h>
#i... |
/*
* Copyright (C) 2019-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/core/source/driver/driver_handle.h"
#include <level_zero/ze_api.h>
ZE_APIEXPORT ze_result_t ZE_APICALL
zeMemAllocShared(
ze_context_handle_t hContext,
const ze_device_mem_alloc_desc_t *deviceDesc,
... |
// nanorange/algorithm/partial_sort_copy.hpp
//
// Copyright (c) 2018 Tristan Brindle (tcbrindle at gmail 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 NANORANGE_ALGORITHM_PARTIAL_SORT_COPY_HPP_I... |
// Copyright (c) 2011-2016 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_bitcoin.h"
#include "chainparams.h"
#include "consensus/consensus.h"
#include "consensus/validation.h"
#inclu... |
#define BZ
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/detail/standard_policies.hpp>
using ll = int64_t;
using ld = long double;
using ull = uint64_t;
using namespace std;
using namespace __gnu_pbds;
typedef vector <int> vi;
typedef pair <int, int> ii;
const int INF = 1 << 30;... |
#include "ExperimEngineConfig.h"
#include <lua/lua.hpp>
#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>
#include "Quicktest.hpp"
namespace experim {
namespace quicktest {
void testSol()
{
sol::state lua;
lua.open_libraries(sol::lib::base, sol::lib::io);
lua["foo"] = lua.create_table_with(1, 24, 2... |
// Copyright (c) 2014-2017, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
/... |
// Locale support -*- C++ -*-
// Copyright (C) 2011-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; e... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Code for the CTFPlayerInfo object
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
using namespace GCSDK;
#ifdef GC
IMPLEMENT_CLASS_MEMPOOL( CTFPlayerI... |
#include "oniguruma.h" // Must be first.
#include "transcoder.h"
#include "builtin/regexp.hpp"
#include "builtin/block_environment.hpp"
#include "builtin/bytearray.hpp"
#include "builtin/class.hpp"
#include "builtin/encoding.hpp"
#include "builtin/integer.hpp"
#include "builtin/lookuptable.hpp"
#include "builtin/proc.... |
/*10583 - Ubiquitous Religions*/
#include <bits/stdc++.h>
using namespace std;
void makeSet(vector <int>& padre, vector <int>& rango, int tam);
bool sameArbol(vector <int>& padre, int x, int y);
void unionByRank(vector <int>& padre, vector <int>& rango, int x, int y);
int find(vector <int>& padre, int x);
int totalA... |
#include "../advent_of_code.hpp"
#include "../util/regex_helper.hpp"
#include <map>
// https://adventofcode.com/2015/day/16
namespace {
struct Sue {
static constexpr const char * Regex_Pattern = R"(^Sue ([0-9]+): ([a-z]*): ([0-9]+), ([a-z]*): ([0-9]+), ([a-z]*): ([0-9]+)$)";
int number;
... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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... |
// You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the winner. You will take the first turn to remove the stones.
//
//
//
// Both of you are very clever and have optimal ... |
#include <memory>
#include <iostream>
#include <demo.h>
int main(int argc, char *argv[])
{
std::cout << "main start \n" << std::endl;
Demo demo;
demo.show();
std::cout << "main end \n" << std::endl;
return 0;
} |
//gyrating cat enthusiast
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <string>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <random>
#include <chrono>
#include <queue>
#include <set>
#define ll long long
#define lb long double
#define pi... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
#include "stdafx.h"
#include "App.h"
#include "GameRendererManager.h"
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int nCmdShow)
{
auto app = std::make_unique<App>();
auto rendererManager = std::make_shared<GameRendererManager>();
return app->Run(hInstance, nCmdShow, rendererManager);
} |
#pragma once
#ifndef LIB_INCLUDE_TSETLINI_HPP_
#define LIB_INCLUDE_TSETLINI_HPP_
#include "neither/either.hpp"
#include "tsetlini_params.hpp"
#include "tsetlini_status_code.hpp"
#include "tsetlini_types.hpp"
#include "estimator_state.hpp"
#include <vector>
namespace Tsetlini
{
using namespace neither;
struct C... |
// Copyright 2022 PingCAP, 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 or agreed to i... |
#include "mediapipe/framework/calculator_framework.h"
#include "mediapipe/framework/formats/landmark.pb.h"
#include "mediapipe/framework/formats/detection.pb.h"
#include "mediapipe/framework/port/ret_check.h"
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
namespace mediapipe{
namespa... |
#include "MainState.h"
#include <SDL2/SDL.h>
#include "Engine/IO/IO.h"
#include "Engine/Bindings/GLShaderBindings.h"
#include "../../Engine/MainLoop/IStateHolder.h"
void MainState::initialize(IMainLoopGetter *mainLoopGetter)
{
this->mainLoopGetter = mainLoopGetter;
}
void MainState::destroy()
{
this->shader.d... |
//
// Created by Cephas Svosve on 17/6/2021.
//
#include "dividend.h"
#include <iostream>
#include <vector>
#include <math.h>
#include <iostream>
#include <boost/random.hpp>
//get dividend growth rate i.e average of the percentage change in dividend paid-out, dD(t)/D(t-1).
double Div::getGrowthRate(int tickerID)
{... |
/*
Copyright (c) 2013, Arvid Norberg
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 f... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
//
// FileTypeProfile.cpp
// interface/src/networking
//
// Created by Kunal Gosar on 2017-03-10.
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "ContextAwareProfile... |
//-------------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2014 Vadim Macagon
//
// 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 ... |
#ifndef CPPAD_CG_ARITHMETIC_INCLUDED
#define CPPAD_CG_ARITHMETIC_INCLUDED
/* --------------------------------------------------------------------------
* CppADCodeGen: C++ Algorithmic Differentiation with Source Code Generation:
* Copyright (C) 2012 Ciengis
*
* CppADCodeGen is distributed under multiple licens... |
// Copyright 2019 The IREE Authors
//
// Licensed 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
#include "./vm.h"
#include "./status_utils.h"
#include "iree/base/api.h"
#include "iree/base/sta... |
/*++
Module Name:
isrdpc.cpp
Abstract:
This file contains the driver entry points and callbacks.
Environment:
Kernel-mode Driver Framework
--*/
#include "driver.h"
#if defined(EVENT_TRACING)
#include "isrdpc.tmh"
#endif
#include "precomp.h"
#ifdef ALLOC_PRAGMA
#endif
BOOLEAN
VioAudioInterruptIsr... |
/*
* Copyright (c) 2012 The WebM 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 contributin... |
#include "GalaxyWeaver.h"
using namespace PaintsNow;
GalaxyWeaver::GalaxyWeaver(IThread& threadApi, ITunnel& net, BridgeSunset& sunset, SnowyStream& ns, MythForest& my) : network(net), bridgeSunset(sunset), snowyStream(ns), mythForest(my) {}
TObject<IReflect>& GalaxyWeaver::operator () (IReflect& reflect) {
BaseCla... |
#include <stdio.h>
#include "ali_api_core.h"
#include "ali_string_utils.h"
#include "ali_ram.h"
#include "json/value.h"
#include "json/reader.h"
using namespace aliyun;
namespace {
void Json2Type(const Json::Value& value, std::string* item);
void Json2Type(const Json::Value& value, RamListPolicyVersionsPolicyVersionTy... |
/*
// Copyright (C) 2021-2022 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... |
#include "script/cc_error.h"
#include "script/runtimescriptvalue.h"
#include "ac/dynobj/cc_dynamicobject.h"
#include "ac/statobj/staticobject.h"
#include "util/memory.h"
#include <string.h> // for memcpy()
using namespace AGS::Common;
//
// NOTE to future optimizers: I am using 'this' ptr here to better
// distingui... |
//
// Created by andrew on 2021/1/17.
//
#include "glad/glad.h"
#include <GLFW/glfw3.h>
#include "shader/shader_s.h"
#include <iostream>
using namespace std;
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
void processInput(GLFWwindow *window);
// settings
const unsigned int SCR_WIDTH = 8... |
#include "ZeroMQ.h"
// This file is part of the `ZeroMQ-XOP` project and licensed under
// BSD-3-Clause.
// variable zeromq_server_send(string identity, string msg)
extern "C" int zeromq_server_send(zeromq_server_sendParams *p)
{
BEGIN_OUTER_CATCH
const auto identity = GetStringFromHandle(p->identity);
WMDispo... |
//===============================================================================
// Copyright (c) 2007-2016 Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2004-2006 ATI Technologies Inc.
//===============================================================================
//
// Permission is hereby gr... |
/* $Id: dvmmbr.cpp $ */
/** @file
* IPRT Disk Volume Management API (DVM) - MBR format backend.
*/
/*
* Copyright (C) 2011-2015 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it a... |
//
// BinarySpeedTest.cpp
// MNNTests
//
// Created by MNN on 2019/09/17.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <math.h>
#include <MNN/expr/Expr.hpp>
#include <MNN/expr/ExprCreator.hpp>
#include <MNN/expr/Optimizer.hpp>
#include <random>
#define MNN_OPEN_TIME_TRACE
#include <MNN/AutoTime.h... |
/*************************************************************************/
/* editor_themes.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Begin forward declares
// Forward declaring namespace: System::Collectio... |
/****************************************************************************
** Meta object code from reading C++ file 'transactiontablemodel.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.2)
**
** WARNING! All changes made in this file will be lost!
***********************************************... |
#include "il2cpp-config.h"
#include "il2cpp-object-internals.h"
#include "il2cpp-vm-support.h"
#include "GarbageCollector.h"
#include "os/Event.h"
#include "os/Mutex.h"
#include "os/Semaphore.h"
#include "os/Thread.h"
#include "utils/Il2CppHashMap.h"
#include "utils/HashUtils.h"
#include "vm/CCW.h"
#include "vm/Class.h... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-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 <chainparamsbase.h>
#include <tinyformat.h>
#include <util/system.h>
#includ... |
#include <stdio.h>
int main()
{
int number = 0,i;
for(i = 0; i < 11 ; i++)
{
printf("%dx%d = %d\n", i, 8,number);
number = number + 8;
}
return 0;
} |
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#if QT_VERSION >= 0x050000
#include <QUrlQuery>
#endif
#include <QTextDocument> // For Q... |
#ifdef PEGASUS_OS_VMS
#ifndef __UNIX_BGPPEERUSESROUTEMAP_PRIVATE_H
#define __UNIX_BGPPEERUSESROUTEMAP_PRIVATE_H
#endif
#endif |
#include "ast.h"
Weakability Program::getReferendWeakability(Referend* referend) {
if (auto structReferend = dynamic_cast<StructReferend*>(referend)) {
return getStruct(structReferend->fullName)->weakability;
} else if (auto interfaceReferend = dynamic_cast<InterfaceReferend*>(referend)) {
return getInterf... |
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/**
* @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... |
/**
* @file AddingImagesTrackbar.cpp
* @brief Simple linear blender ( dst = alpha*src1 + beta*src2 )
* @author OpenCV team
*/
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include <iostream>
using namespace cv;
using std::cout;
/** Global Variables */
const int alpha_slider_max = 100;
int alph... |
// 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 source code must retain the above copyright
// notice, this list of condi... |
/****************************************************************************
*
* (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.
*
*************************************... |
#include "base/CotTime.h"
namespace Cot
{
Time::Time()
: _lastTime(std::chrono::high_resolution_clock::now())
, _timeScale(1.0f)
, _deltaTime(0.0f)
{ }
Time::~Time()
{ }
void Time::Tick()
{
_currentTime = std::chrono::high_resolution_clock::now();
_deltaTime = std::chrono::duration_cast<std::chrono::... |
// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/common/asar/asar_util.h"
#include <map>
#include <string>
#include <utility>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/lazy_i... |
#ifndef _LOG_HH_
#define _LOG_HH_
#include <stdio.h>
#include "wrap.hh"
#ifdef __cplusplus
extern "C" {
#endif
// macro to log fields in structs.
#define log_struct(st, field, format, typecast) \
log_msg_init(" " #field " = " #format "\n", typecast st->field)
FILE *log_open();
void log_msg(const char *format, ... |
//*****************************************************************************
// Copyright 2017-2019 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://w... |
#include<iostream>
using namespace std;
int main()
{
int i,j;
int n;
cout<<"Enter the number of rows\n";
cin>>n;
for(i=1; i<=n; i++)
{
for(j=i; j<=n; j++) // Printing spaces
{
cout<<" ";
}
for(j=1; j<=i; j++) // Printing stars
... |
// 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: OVR.OpenVR.IVRCompositor
#include "... |
// MIT Licensed (see LICENSE.md).
#include "Precompiled.hpp"
namespace Zero
{
// We want to avoid allocations, so store how many memory ranges we want to add
// to the crash dumper
MemoryRange gMemoryRanges[64] = {0};
size_t gMemoryRangeCount = 0;
// How many ranges we've written to the dump (re-entrant callback fro... |
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <bitset>
using namespace std;
const int SAMPLE_BITS= 5;
const int DATA_BITS = 12;
const int BIT_LENGTH = DATA_BITS;
vector<string> read_data(string filename) {
ifstream infile;
infile.open(filename);
vector<string> data;
if... |
#include <CImageFloodFill.h>
struct CFillSegment {
int y, xl, xr, dy;
};
#define CIMAGE_FLOOD_FILL_MAX_DEPTH 16384
#define CIMAGE_FLOOD_FILL_PUSH(Y, XL, XR, DY) \
if (sp < stack + CIMAGE_FLOOD_FILL_MAX_DEPTH && \
Y + (DY) >= bottom && Y + (DY) <= top) { \
sp->y = Y; sp->xl = XL; sp->xr = XR; sp->dy = D... |
/* Copyright (c) 2021 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 by applicable law or... |
// Copyright (c) Facebook, Inc. and its affiliates.
//
// 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 applicabl... |
// nanorange/algorithm/is_sorted_until.hpp
//
// Copyright (c) 2018 Tristan Brindle (tcbrindle at gmail 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 NANORANGE_ALGORITHM_IS_SORTED_UNTIL_HPP_INCLU... |
#pragma once
#include "compound.hpp"
#include "quaternion.hpp"
#include "vector.hpp"
/**
* CompoundElement containing [Position, Orientation, Linear Velocity]
*/
template <typename Scalar>
class PoseVelElement final : public CompoundElement<VectorElement<Scalar, 3>,
... |
#ifndef _TEST_PERFORMANCE_OPTIONARG_HPP_
#define _TEST_PERFORMANCE_OPTIONARG_HPP_
#include "optionparser.h"
#include <stdio.h>
#include <cstdint>
#include <iostream>
#include <string.h>
#ifdef WIN32
#define strncasecmp _strnicmp
#endif // ifdef WIN32
struct Arg : public option::Arg
{
enum class EnablerValue : i... |
#include <uv.h>
#include <iostream>
#include <string>
#include "Client.hpp"
using namespace std;
using namespace Pitocin;
const int pubCount = 100000;
struct TaskCtx
{
Client *client;
uv_loop_t *loop;
uv_timer_t timer;
int number = 0;
uint64_t begin = 0;
uint64_t end = 0;
int okCount = 0... |
// Copyright (c) 2014-2015 The Bitcoin Core developers
// Copyright (c) 2015-2018 The Bitcoin Unlimited 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 "hash.h"
#include "script/script.h"... |
#include "stdafx.h"
#include <iostream>
#include <string>
std::string getInput() {
std::string rv;
std::getline(std::cin, rv);
return rv;
} |
/*
__________ ____ ___
_____ __ _\______ \_____ _______ ______ __________\ \/ /
/ \| | \ ___/\__ \\_ __ \/ ___// __ \_ __ \ /
| Y Y \ | / | / __ \| | \/\___ \\ ___/| | \/ \
|__|_| /____/|____| (____ /__| /____ ... |
/*******************************************************************************
* Copyright (c) 2017, 2017 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... |
/*
* PKCS #8
* (C) 1999-2010,2014 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/pkcs8.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
#include <botan/alg_id.h>
#include <botan/oids.h>
#include <botan/pem.h>
#include <botan/pbes2.h>
#include <botan/scan_... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/wafv2/model/ManagedRuleGroupSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "net.h"
#include "strlcpy.h"
#include "base58.h"
using ... |
/*################################################################################
##
## Copyright (C) 2011-2021 Keith O'Hara
##
## This file is part of the StatsLib C++ library.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance... |
/***************************************************************************
* Copyright (C) by GFZ Potsdam *
* *
* You can redistribute and/or modify this program under the *
* terms o... |
/*
// Copyright (c) 2018 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
//===- lib/Runtimes/Tracer/WrapPOSIXsys_stat_h ----------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... |
/* Copyright 2009 10gen 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 useful,
* ... |
#include "gl_vbo.hpp"
#include "toolbox_gl.hpp"
GlVbo::Guard::~Guard()
{
if (vbo)
{
glDeleteBuffers(1, &vbo);
}
}
GlVbo::GlVbo(const void *data, size_t bufferSize, int glType, int glTarget, int glUsage)
{
guard.glType = glType;
glGenBuffers(1, &guard.vbo);
glBindBuffer(glTarget, get(... |
// Copyright 2020 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/webui/settings/chromeos/quick_unlock_handler.h"
#include "base/bind.h"
#include "chrome/browser/chromeos/login/quick_unlock/p... |
/**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
/*
ID: juarezp1
PROG: zerosum
LANG: C++
*/
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include ... |
/*●▬▬▬▬▬๑۩۩๑▬▬▬▬●●▬▬▬▬▬๑۩۩๑▬▬▬▬●🆀🆄🅰🅺🅴●▬▬▬▬▬๑۩۩๑▬▬▬▬●●▬▬▬▬▬๑۩۩๑▬▬▬▬●*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
string a, b, c;
cin >> a >> b >> c;
a += b;
sort(a.begin(), a.end());
sort(c.begin(), c.end());
if (a == c)
cout << "YES";
else
cout << "NO";
... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkImage.h"
#include "SkRRect.h"
#include "SkTextBlob.h"
#include "ToolUtils.h"
#include "gm.h"
static void rotated_checkerboard_shader(SkPaint* paint,
... |
#include<iostream>
using std::cout;
int main()
{
int* ptr_num = new int(5); // declare and acquire new memory(heap)
cout << "Address of ptr_num: " << &ptr_num << "\n"; // displays address where ptr_num is stored
cout << "Address ptr_num point to: " << ptr_num << "\n"; // address where 5 is stored
cout << "Value... |
/**
* @file TestGetAllElements.cpp
* @brief Unit tests of writing QualExtension
* @author Sarah Keating
*
* $Id: $
* $HeadURL: $
*
* <!--------------------------------------------------------------------------
* This file is part of libSBML. Please visit http://sbml.org for more
* information about SB... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.