text stringlengths 5 1.04M |
|---|
// 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/basictypes.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#in... |
// <Snippet1>
using namespace System;
using namespace System::Collections;
void FindMyObject( ArrayList^ myList, Object^ myObject );
void PrintValues( IEnumerable^ myList );
int main()
{
// Creates and initializes a new ArrayList. BinarySearch requires
// a sorted ArrayList.
ArrayList^ myAL = gcnew ArrayL... |
///////////////////////////////////////////////////////////////////////////////
// 2014-01-26 P.Murat
///////////////////////////////////////////////////////////////////////////////
// conditions
#include "ConditionsService/inc/ConditionsHandle.hh"
#include "ConditionsService/inc/AcceleratorParams.hh"
#include "Stntu... |
/*
Copyright 2020 Neijwiert
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, software
distr... |
class Solution {
public:
void allPossibleCombs(int num,vector<vector<int>> &sol,vector<int> &temp,int k,int sum){
if(k == 0){
if(sum == 0){
sol.push_back(temp);
}
return;
}
if(num > 9){
return;
}
if(sum < num){
... |
/*
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/*
Part of Scallop Transcript Assembler
(c) 2017 by Mingfu Shao, Carl Kingsford, and Carnegie Mellon University.
Part of Altai
(c) 2021 by Xiaofei Carl Zang, Mingfu Shao, and The Pennsylvania State University.
See LICENSE for licensing.
*/
#include <map>
#include <algorithm>
#include <cassert>
#include "gene.h"
int g... |
// Copyright (C) 1994-2020 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
// GCC is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3, or (at your option)
// any later version.... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2018, STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIE... |
/*
* Copyright (c) 2017 Sprint
*
* 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... |
// 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 "chromeos/attestation/attestation_flow.h"
#include <algorithm>
#include <utility>
#include "base/bind.h"
#include "base/compiler_specific.h... |
/*
* Copyright (C) 2012 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
#include <iostream>
class S
{
public:
S() : n_(10) { }
// regardless of whether the members are on the same or different instances
S(const S& other) : n_(other.n_) { } // other.n is accessible in S::S
private:
int n_;
};
class Derived;
class Base
{
public:
void F(Base&, Derived&);
public:
int public_;
prote... |
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/ui/tools/present_view/testing/fake_view.h"
#include <lib/async/default.h>
#include <lib/ui/scenic/cpp/view_ref_pair.h>
#include <zircon/type... |
/* Copyright (c) 2017-2022, Hans Erik Thrane */
#pragma once
#include <fmt/format.h>
#include <cctype>
#include "roq/span.hpp"
namespace roq {
namespace debug {
namespace fix {
struct Message final {
public:
explicit Message(std::span<const std::byte> const &buffer) : buffer_(buffer) {}
Message(std::byte co... |
/*
* 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 ... |
//
// ModelOverlay.cpp
//
//
// Created by Clement on 6/30/14.
// Copyright 2014 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 "ModelOverlay.h"
#include <Rig.h>
#include "Application... |
// dear imgui: Platform Backend for GLFW
// This needs to be used along with a Renderer (e.g. OpenGL3, Vulkan, WebGPU..)
// (Info: GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.)
// (Requires: GLFW 3.1+. Prefer GLFW 3.3+ for full feature supp... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2013-2020 Winlin
*
* 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,... |
/* Димитър Валериев Трифонов, КН, 50Б, 146518 */
/*
14. Зададен е едномерен масив от цели числа А0, А1,...,Аn-1.
Да се състави програма, която създава нов масив а0, а1,...,аn-1,
като стойността на аi е равна на първата цифра на Аi.
*/
#include "stdafx.h"
using namespace std;
#include <iostream>
#include <stdli... |
// generated from
// rosidl_typesupport_fastrtps_cpp/resource/msg__rosidl_typesupport_fastrtps_cpp.hpp.em
// generated code does not contain a copyright notice
#ifndef SENSOR_MSGS__MSG__BATTERY_STATE__ROSIDL_TYPESUPPORT_FASTRTPS_CPP_HPP_
#define SENSOR_MSGS__MSG__BATTERY_STATE__ROSIDL_TYPESUPPORT_FASTRTPS_CPP_HPP_
#i... |
#UNION
#include<bits/stdc++.h>
using namespace std;
int main()
{
//code
int t,n,m;
cin>>t;
while(t--)
{
cin>>n>>m;
int a[n], b[m];
unordered_set <int> s;
for(int i=0;i<n;i++)
{
cin>>a[i];
s.insert(a[i]);
}
for(int i=0;i<m;i++)
{
cin>>b[i];
... |
/*
* Copyright 2011 The LibYuv Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing p... |
/**
* this is an extra step in classes
*/
// importing iostream header file :)
#include <iostream>
/**
* creating a class named myClass
*/
class myClass {
public:
void helloworld()
{
std::cout << "hello world\n";
};
};
/**
* calling it in another void function
* for imporiving code clean
*/
void call... |
/**
* @file nystroem_method_test.cpp
* @author Ryan Curtin
*
* Test the NystroemMethod class and ensure that the reconstructed kernel matrix
* errors are comparable with those in the literature.
*/
#include <mlpack/core.hpp>
#include <boost/test/unit_test.hpp>
#include "old_boost_test_definitions.hpp"
#include ... |
#include <Urho3D/Urho3DAll.h>
#include "NavigationMesh.h"
#include <Globals.h>
static const char* typeNames[] =
{
"Dynamic",
"Static",
nullptr
};
static const NavMeshType DEFAULT_NAVMESHTYPE = NAV_Static;
static const int DEFAULT_TILESIZE=32;
static const float DEFAULT_AGENT_HEIGHT=0.5f;
static const flo... |
#include "../include/public/bigintegercpp/BigInteger.h"
#include "gtest/gtest.h"
#include "Random.h"
#include "stack_calc.h"
#include "utils.h"
static void VerifyOrString(std::string opstring)
{
StackCalc sc(opstring);
while (sc.DoNextOperation())
{
ASSERT_EQ(sc.snCalc.top().to_string(), sc.myCalc.... |
/****************************************************************************
** Meta object code from reading C++ file 'bitcoingui.h'
**
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "qt/bitcoingui.h"
#include <QtCore... |
//===-- MCAsmInfoDarwin.cpp - Darwin asm properties -------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// ==============
// common/crc.cpp
// ==============
#include "crc.h"
uint64 ReverseBits64(uint64 a)
{
{ const uint64 mask = 0x5555555555555555ULL; a = ((a >> 0x01) & mask) | ((a & mask) << 0x01); }
{ const uint64 mask = 0x3333333333333333ULL; a = ((a >> 0x02) & mask) | ((a & mask) << 0x02); }
{ const u... |
/* ************************************************************************
* Copyright 2016 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include <hip/hip_runtime.h>
#include "rocblas.h"
#include "status.h"
#include "definitions.h"
#include "reduction.h"... |
#include <mbgl/programs/line_program.hpp>
#include <mbgl/style/layers/line_layer_properties.hpp>
#include <mbgl/renderer/render_tile.hpp>
#include <mbgl/map/transform_state.hpp>
#include <mbgl/util/mat2.hpp>
#include <mbgl/sprite/sprite_atlas.hpp>
#include <mbgl/geometry/line_atlas.hpp>
namespace mbgl {
using namespa... |
// Autogenerated from KST: please remove this line if doing any edits by hand!
#include <boost/test/unit_test.hpp>
#include "expr_bytes_ops.h"
#include <iostream>
#include <fstream>
#include <vector>
BOOST_AUTO_TEST_CASE(test_expr_bytes_ops) {
std::ifstream ifs("src/nav_parent_switch.bin", std::ifstream::binary);... |
//=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... |
#include <array>
#include <seastar/core/byteorder.hh>
#include <CQLDriver/Common/Exceptions/DecodeException.hpp>
#include <CQLDriver/Common/CommonDefinitions.hpp>
#include "./ProtocolVariableIntegerBase.hpp"
namespace cql {
namespace {
/** The first byte use to indicate how many extra bytes followed */
static con... |
/*
* SPDX-License-Identifier: Apache-2.0
*/
#include "include/onnx-mlir/Runtime/OMInstrument.h"
#include <chrono>
#include <thread>
int main(int argc, char *argv[]) {
const char opstart[8] = "TOpStar";
const char op2[8] = "TOp2";
const char op3[8] = "TOp3";
const char op4[8] = "TOp4";
const ch... |
// Copyright 2021 Tangent Animation
//
// 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... |
#ifndef BONJOUR_ADDRESS_RESOLVER_HPP__
#define BONJOUR_ADDRESS_RESOLVER_HPP__
#include <boost/noncopyable.hpp>
#include <boost/asio.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <ddnspp/bonjourpp/dnsd_callback.hpp> /// callback func def
#include <ddnspp/bonjourpp/dnsdap... |
////////////////////////////////////////////////////////////////////////
// Avni Utility functions
////////////////////////////////////////////////////////////////////////
// Includes
#include "AvniInterfaces.h"
#include <stdio.h>
#include <stdarg.h>
#include <Windows.h>
namespace Avni
{
void Log(char* str, int ... |
#include "mock_bitcoinRPCFacade.h"
MockBitcoinRPCFacade::~MockBitcoinRPCFacade() = default;
|
/*
Copyright (c) 2019 - 2022 Advanced Micro Devices, Inc. All rights reserved.
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, ... |
/* This file is part of the Gudhi Library. The Gudhi library
* (Geometric Understanding in Higher Dimensions) is a generic C++
* library for computational topology.
*
* Author(s): Pawel Dlotko
*
* Copyright (C) 2015 INRIA Saclay (France)
*
* This program is free software: you can redist... |
#include "IMU_MPU6050.h"
struct accel_data
{
int XAxis;
int YAxis;
int ZAxis;
}raw_accel;
struct gyro_data
{
int XAxis;
int YAxis;
int ZAxis;
}raw_gyro;
void MPU6050::initialize()
{
raw_accel.XAxis=raw_accel.YAxis=raw_accel.ZAxis=0;
raw_gyro.XAxis=raw_gyro.YAxis=raw_gyro.ZAxis=0;
acce... |
#include "ssloader_sspj.h"
#include "ssloader_ssae.h"
#include "ssloader_ssce.h"
#include "ssloader_ssee.h"
#include "ssstring_uty.h"
#include "../Helper/DebugPrint.h"
namespace spritestudio6
{
SsEffectFile* ssloader_ssee::Load(const std::string& filename )
{
SsString _basepath = "";
SsEffectFile* effectFile... |
// itsy.bitsy
//
// Copyright ⓒ 2019-present ThePhD.
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See https://github.com/ThePhD/itsy_bitsy#using-the-library for documentation.
#include <itsy... |
///////////////////////////////////////////////////////////////////////////////
// Name: tests/streams/socketstream.cpp
// Purpose: Test wxSocketInputStream/wxSocketOutputStream
// Author: Vadim Zeitlin
// Copyright: (c) 2008 Vadim Zeitlin
// Licence: wxWindows licence
////////////////////////////... |
#ifndef _WINDOWEVENTS_H
#define _WINDOWEVENTS_H
#include "Delegate.hpp"
namespace ar
{
/*
* Provides an abstraction between incoming window input events and
* objects which need to consume them
*/
class WindowEvents
{
public:
// Calls all subscribed handlers for the corresponding events
void NotifyMouseButto... |
/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/command_stream/command_stream_receiver.h"
#include "runtime/helpers/options.h"
#include "runtime/helpers/ptr_math.h"
#include "runtime/mem_obj/buffer.h"
#include "test.h"
#include "unit_tests/aub_tests/command_q... |
// Dinic - O(V^2 * E)
// Bipartite graph or unit flow - O(sqrt(V) * E)
// Small flow - O(F * (V + E))
// USE INF = 1e9!
/**********************************************************************************
* DINIC (FIND MAX FLOW / BIPARTITE MATCHING) *
* Time complexity: O(EV^2) ... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-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.
#include "rpcprotocol.h"
#include "util.h"
#include <stdint.h>
#include <boost/algor... |
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root dire... |
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
/*******************************************************************************
*
* Copyright (c) 2010-2015 Edans Sandes
*
* This file is part of MASA-Core.
*
* MASA-Core 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... |
// Copyright (C) 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
********************************************************************************
* Copyright (C) 2005-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*... |
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/planner/tableref/bound_cteref.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/planner/bound_tableref.hpp"
namespace ... |
#include "ExprHelpers.h"
#include <Math/Random.h>
#include <Util/Assert.h>
VarVals_t::VarVals_t(const int n)
{
names.resize(n);
vals.resize(n);
}
bool optimizationGuide(const opInfo& opI, opPrio opP)
{ // Phase 0 == A only; 1 == early; 2 == late opt; 3 == late cleanup
switch (opP) {
case AA: return t... |
/*
* Copyright (c) 2011 Paul Tagliamonte <tag@pault.ag>
*
* 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, m... |
#ifndef VECT4D_H
#define VECT4D_H
#ifdef __APPLE__
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif
#include <cmath>
template <typename T>
class Vect4D
{
public:
T a[4];
Vect4D(T x, T y, T z, T w)
{
a[0] = x;
a[1] = y;
a[2] = z;
a[3] = w;
}
Vect4D(Vect4D<T> const & v)
{
a[0] = v.a[0];
a[1... |
#include "IncludeDefine.h"
#include "Parameters.h"
#include "Transcript.h"
#include "ReadAlign.h"
ReadAlign::ReadAlign (Parameters& Pin, Genome &genomeIn, Transcriptome *TrIn, int iChunk)
: mapGen(genomeIn), genOut(*genomeIn.genomeOut.g), P(Pin), chunkTr(TrIn)
{
readNmates=P.readNmates;
//R... |
/*
* Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
#pragma once
#include "constant.hpp"
namespace ntl {
template <typename Stream>
void produce(Stream& out, bool enabled = true)
{
#pragma HLS inline region
typedef typename stream_element<Stream>::type stream_element_t;
constant(stream_element_t(0)).step(out, enabled);
}
}
|
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS ... |
/* poppler-document.cc: qt interface to poppler
* Copyright (C) 2005, 2008, 2009, 2012, 2013, Albert Astals Cid <aacid@kde.org>
* Copyright (C) 2005, Brad Hards <bradh@frogmouth.net>
* Copyright (C) 2008, 2011, Pino Toscano <pino@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* ... |
/*
restinio
*/
/*!
Test upgrade request.
*/
#include <catch2/catch.hpp>
#include <restinio/all.hpp>
#include <restinio/websocket/websocket.hpp>
#include <test/common/utest_logger.hpp>
#include <test/common/pub.hpp>
TEST_CASE( "Upgrade" , "[upgrade]" )
{
using traits_t =
restinio::traits_t<
restinio::asio_... |
/* Copyright (C) 2010 Ion Torrent Systems, Inc. All Rights Reserved */
/*
* BAMReader.cpp
* SamUtils
*
* Created by Michael Lyons on 12/9/10.
*
*
*/
#include <iostream>
#include <sstream>
#include <string>
#include <cassert>
#include <exception>
#include "Utils.h"
#include "BAMReader.h"
#include "sam_head... |
#include "smart_tuple.hpp"
#include "pa_function.hpp"
#include "lambda.hpp"
#include "struct_tuple.hpp"
#include "type_linker.hpp"
#include "constexpr_counter.hpp"
namespace named_requirements
{
namespace details
{
template<typename U, typename T1, typename T2>
concept same_as_either = std::is_... |
#include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<map>
#include<queue>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int INF = 1001001001;
int res[3][3];
int mai... |
#pragma once
#include "partners_api/booking_availability_params.hpp"
#include "partners_api/booking_block_params.hpp"
#include "platform/safe_callback.hpp"
#include <chrono>
#include <functional>
#include <string>
#include <vector>
namespace booking
{
struct HotelPhotoUrls
{
std::string m_small;
std::string m_o... |
// Copyright (c) Prevail Verifier contributors.
// SPDX-License-Identifier: Apache-2.0
#pragma once
/*
* Build a CFG to interface with the abstract domains and fixpoint
* iterators.
*
* All the CFG statements are strongly typed. However, only variables
* need to be typed. The types of constants can be inferred fr... |
// 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 "services/tracing/trace_recorder_impl.h"
#include <utility>
namespace tracing {
TraceRecorderImpl::TraceRecorderImpl(
mojo::InterfaceReque... |
// Python includes
#include <Python.h>
// Stl includes
#include <fstream>
// Qt includes
#include <QResource>
#include <QMetaType>
#include <QFile>
#include <QDir>
// hyperion util includes
#include <utils/jsonschema/JsonSchemaChecker.h>
// effect engine includes
#include <effectengine/EffectEngine.h>
#include "Eff... |
#include <iostream>
#include <vector>
using namespace std;
int main(void)
{
int n, x, sum = 0;
cin >> n >> x;
vector<int> nums(n);
for (int i = 0; i < n; ++i) {
cin >> nums[i];
sum += nums[i];
}
if (sum < x) {
cout << -1 << endl;
return 0;
}
int ret = s... |
/*
* Copyright (c) 2017-2021, The OSKAR Developers.
* See the LICENSE file at the top-level directory of this distribution.
*/
#include <gtest/gtest.h>
#include "math/oskar_prefix_sum.h"
#include "utility/oskar_timer.h"
#include "utility/oskar_device.h"
#include <cstdlib>
static const bool save = true;
void run... |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End... |
#ifndef CONTROLS_HPP
#define CONTROLS_HPP
#include <glm/glm.hpp>
#include "Config.hpp"
struct GLFWwindow;
namespace flogl {
class Config;
class Window
{
public:
Window(const Config& config);
~Window();
void processInputs();
const glm::mat4& getViewMatrix() const;
const glm::mat4& getProjectio... |
/**
* Copyright (c) 2013 David Young dayoung@goliathdesigns.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,... |
#include "vcpkg.h"
#include <regex>
#include "vcpkg_Files.h"
#include "vcpkglib_helpers.h"
namespace
{
using namespace vcpkg;
struct Parser
{
Parser(const char* c, const char* e) : cur(c), end(e)
{
}
private:
const char* cur;
const char* const end;
voi... |
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *diminutivecoin_strings[] = {QT_TRANSLATE_NOOP("diminutivecoin-core", "DiminutiveCoin version"),
QT_TRANSLATE_NOOP("diminutivecoin-core", "Usag... |
#include "stdafx.h"
#include "RendererWindow.h"
#include "RenderPath3D.h"
#include "Editor.h"
#include "wiPhysicsEngine.h"
void RendererWindow::Create(EditorComponent* editor)
{
wiWindow::Create("Renderer Window");
wiRenderer::SetToDrawDebugEnvProbes(true);
wiRenderer::SetToDrawGridHelper(true);
wiRenderer::SetT... |
#include "Singleton.h"
int main()
{
Singleton* sgn = Singleton::Instance();
return 0;
}
|
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
//
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
// 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... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2021 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages a... |
// Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <boost/statechart/custom_reaction.hpp>
#include <boost/statechart/event.hpp>
#include <boost/statechart/simple_state.hpp>
#include <boost/statechart/state.hpp>
#include <boost/statechart/state_machine.hpp>
#include <cmn/agent_cmn.h>
#incl... |
//==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
int A, B;
cin >> A >> B;
int C = 2 * A + 100;
int r = (C - B);
cout << r << endl;
return 0;
} |
// Copyright Carl Philipp Reh 2009 - 2018.
// 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 FCPPT_MATH_VECTOR_STATIC_FWD_HPP_INCLUDED
#define FCPPT_MATH_VECTOR_STATIC_FWD_HPP_INCLUDE... |
#ifndef MODELLOADER_H_
#define MODELLOADER_H_
#include <string>
#include <vector>
#include <memory>
#include <assimp/cimport.h>
#include <assimp/scene.h>
#include "IdManager.hpp"
namespace glmd = glm::detail;
namespace glr
{
namespace glw
{
class IOpenGlDevice;
class BoneData;
class BoneNode;
}
namespace models
... |
///////////////////////////////////////////////////////////////////////////////
// Name: src/common/strvararg.cpp
// Purpose: macros for implementing type-safe vararg passing of strings
// Author: Vaclav Slavik
// Created: 2007-02-19
// RCS-ID: $Id$
// Copyright: (c) 2007 REA Elektronik GmbH
... |
#include <stdlib.h>
#include "mapreduce/functions/map/WordTokenizer.h"
WordTokenizer::WordTokenizer() {
stopCharacters.push_back(' ');
stopCharacters.push_back('"');
stopCharacters.push_back('.');
stopCharacters.push_back(',');
stopCharacters.push_back('/');
stopCharacters.push_back('/');
stopCharacters... |
/*************************************************************************/
/* script_text_editor.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/**
* @file src/fileinfo/file_presentation/getters/iterative_getter/iterative_subtitle_getter/segment_json_getter.cpp
* @brief Methods of SegmentJsonGetter class.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include "retdec/utils/string.h"
#include "retdec/fileformat/utils/conversions.h... |
// Copyright 2015 the V8 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.
#include <cmath>
#include "src/api/api-inl.h"
#include "src/base/utils/random-number-generator.h"
#include "src/builtins/builtins-promise-gen.h"
#inclu... |
#include "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include "init.h"
#include "walletmodel.h"
#include "addresstablemodel.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "optionsmodel.h"
#include "sendcoinsentry.h"
#include "guiutil.h"
#include "askpassphrasedialog.h"
#include "coincontrol... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
/*
* Copyright (C) 2019 The Android Open Source Project
*
* 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 app... |
#include "platform/servers_list.hpp"
#include "platform/http_request.hpp"
#include "platform/settings.hpp"
#include "platform/platform.hpp"
#include "base/logging.hpp"
#include "base/assert.hpp"
#include "3party/jansson/myjansson.hpp"
namespace downloader
{
// Returns false if can't parse urls. Note that it also cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.