text stringlengths 7 961k |
|---|
/**
* 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... |
//
// Vector.cpp
// vector
//
// Created by Vadim Dez on 01/11/2016.
// Copyright © 2016 Vadim Dez. All rights reserved.
//
#include "Vector.hpp"
#include <iostream>
Vector::Vector() {
this->pointer = new int [this->arrayCapacity];
}
// get number of items in vector
int Vector::size() {
return this->arra... |
//===-- AArch64ISelDAGToDAG.cpp - A dag to dag inst selector for AArch64 --===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "mini_stdint.h"
#include "../buffer_t.h"
#include "HalideRuntime.h"
#include "mini_cuda.h"
#include "cuda_opencl_shared.h"
#ifdef DEBUG
#define DEBUG_PRINTF halide_printf
#else
// This ensures that DEBUG and non-DEBUG have the same semicolon eating behavior.
static void _noop_printf(void *, const char *, ...)... |
// Copyright 2019 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 in w... |
/******************************************************************************
*
* Project: GDAL
* Purpose: Fuzzer
* Author: Even Rouault, even.rouault at spatialys.com
*
******************************************************************************
* Copyright (c) 2017, Even Rouault <even.rouault at spatia... |
#include "SwapStateConfig.h"
#include <utility>
#include "CodeRewriter.h"
SwapStateConfig::SwapStateConfig() : compileType(CompileType::NONE), current_program_index(1) {}
SwapStateConfig::SwapStateConfig(std::string original_code, std::string swapped_code,
CompileType compileType, ... |
/**
* Copyright 2011 (c) 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,
* but WITHOU... |
/// @file UpdateThread.cpp
/// @brief Update wxThread class implementation.
/// @author zer0
/// @date 2014-09-04
#include "UpdateThread.h"
#include "UpdateConfig.h"
#include "MainFrame.h"
#include "log.h"
#include <wx/url.h>
#include <wx/wfstream.h>
#include <wx/sstream.h>
#include <wx/zipstrm.h>
#include <wx/filesy... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
//
// Created by Bernardo on 11/20/2019.
//
#include <algorithm>
#include "BondParser.h"
#include "../MasterSystemInputFileParser.h"
#include "../../Utils/Utils.h"
int BondParser::id = -1;
void BondParser::updateId() {
++id;
}
int BondParser::getId() {
return id;
}
void BondParser::parseVariables(const ve... |
#include<iostream>
#include<stdlib.h>
using namespace std;
main() {
A:
char ulang;
int pil,modal,pendapatan,laba,rugi;
system("cls");
cout<<"Manajemen Keuangan UMKM" <<endl;
cout<<"--------------------------------" <<endl;
cout<<"=========Pilihan Program========" <<endl;
cout<<"1. Laba dan Rugi" <<endl;
cout<<... |
#include "../headers/CalculatorApp.h"
#include <iostream>
#include "../headers/Command.h"
using namespace std;
namespace commandspace{
CalculatorApp CalculatorApp::instance;
//Singleton for now
CalculatorApp &CalculatorApp::getInstance()
{
return instance;
}
void CalculatorApp::printdata... |
/* _____
* /\ _ \ __
* \ \ \_\ \ __ __ __ /\_\
* \ \ __ \ /'_ `\ /\ \/\ \\/\ \
* \ \ \/\ \ /\ \_\ \\ \ \_\ \\ \ \
* \ \_\ \_\\ \____ \\ \____/ \ \_\
* \/_/\/_/ \/____\ \\/___/ \/_/
* /\____/
* ... |
/*
* Gstore.cpp
*
* Created on: 2014-7-1
* Author: liyouhuan
*/
#include "../Util/Util.h"
#include "../Database/Database.h"
using namespace std;
int main()
{
#ifdef DEBUG
Util util;
#endif
string _yago2_triple = "/media/wip/common/data/yago2_triple";
string _yago = "/media/wip/common/data/yago_triple";... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fxcodec/jbig2/jbig2_decoder.h"
#include "core/fxcodec/jbig2/JB... |
#include "SimpleForward.h"
SimpleForward::SimpleForward(IRSensors* irSensors, DCMotors* dcMotors, PowerManager* powerManager)
: Driver(irSensors, dcMotors, powerManager) {
}
SimpleForward::~SimpleForward() {}
void SimpleForward::loop() {
dcMotors->setLeftSpeed(255);
dcMotors->setRightSpeed(255);
} |
/*
* Copyright (C) 2011, Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... |
#include "embeddingbag.h"
#include "csrc/autocast/autocast_mode.h"
#include "csrc/autocast/autocast_verbose.h"
#include "csrc/cpu/vec512/bf16/vec/bf16_vec_kernel.h"
#include "csrc/cpu/vec512/int8/vec/int8_vec_kernel.h"
#include "csrc/jit/cpu/kernels/Embeddingbag.h"
#include "csrc/quantization/AutoCast.hpp"
#include "cs... |
//_________________________________________________________________________
// Utility Class for transverse energy studies, charged hadrons
// Base class for ESD analysis
// - reconstruction output
// implementation file
//
//Created by Christine Nattrass
//University of Tennessee at Knoxville
//____________________... |
// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
/***************************************************************************
# Copyright (c) 2015-21, 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... |
/// HEADER
#include <csapex/view/param/range_param_adapter.h>
/// PROJECT
#include <csapex/view/widgets/qint_slider.h>
#include <csapex/view/node/parameter_context_menu.h>
#include <csapex/view/utility/qt_helper.hpp>
#include <csapex/utility/assert.h>
#include <csapex/utility/type.h>
#include <csapex/command/update_pa... |
#include "subcommand.hpp"
#include "../utility.hpp"
#include "../mapper.hpp"
#include <vg/io/stream.hpp>
#include <vg/io/vpkg.hpp>
#include <vg/io/protobuf_emitter.hpp>
#include "../io/save_handle_graph.hpp"
#include <gbwt/gbwt.h>
#include <gcsa/support.h>
#include "../region.hpp"
#include "../stream_index.hpp"
#includ... |
version https://git-lfs.github.com/spec/v1
oid sha256:f4ad8bf2ef1d52c193173af33b08ca93451e71e9b0cbd293ae4646fc55d4a323
size 2267 |
#pragma once
#include "../base_op.hpp"
#include <functional>
#include "../def/LolChatActiveConversationResource.hpp"
namespace lol {
template<typename T>
inline Result<json> PutLolChatV1ConversationsActive(T& _client, const LolChatActiveConversationResource& activeConversation)
{
try {
return ToResult<... |
// 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 "ash/system/network/network_tray_view.h"
#include <utility>
#include "ash/session/session_controller_impl.h"
#include "ash/shell.h"
#include "a... |
/*
* Copyright (c) 2020, The OpenThread Authors.
* 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
* n... |
#include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define MOD 1000000007
using namespace std;
void sieve(vector<ll> &arr,ll n)
{
arr[0]=arr[1]=0;
for(ll i{2};i<=n;i++)
{
if(arr[i]==1 && i*i<=n)
{
for(ll j{i*i};j<=n;j+=i)
arr[j]=0;
}
}
}
void PFS(vector<ll>&factors,vector<ll... |
/**
* Copyright (C) 2013 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 "socks5/basic_tcp_socket.hpp"
#include "socks5/request.hpp"
#include "socks5/tests/fixtures/basic_socks5_socket.hpp"
#include "socks5/tests/util/random.hpp"
#include <boost/system/error_code.hpp>
#include <gtest/gtest.h>
#include <algorithm>
#include <cstdint>
#include <vector>
namespace socks5::tests {
st... |
/* -------------------------------------------------------------------------- *
* OpenSim: testIterators.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
*... |
/** Copyright 2020 Alibaba Group Holding Limited.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
#include "extdll.h"
#include "util.h"
#include "cbase.h"
#include "player.h"
#include "custom_gamemode_config.h"
#include "weapons.h"
#include <algorithm>
#include <iterator>
#include "gamerules.h"
#include "../fmt/printf.h"
#ifdef CLIENT_DLL
extern CustomGameModeConfig clientConfig;
#endif
using namespace gameplayMo... |
/*
* Copyright 2013–2020 Kullo GmbH
*
* This source code is licensed under the 3-clause BSD license. See LICENSE.txt
* in the root directory of this source tree for details.
*/
#include "crashreportdialog.h"
#include <iostream>
#include <kulloclient/util/librarylogger.h>
#include "ui_crashreportdialog.h"
CrashR... |
/*******************************************************************\
Module: Generates string constraints for the family of insert Java functions
Author: Romain Brenguier, romain.brenguier@diffblue.com
\*******************************************************************/
/// \file
/// Generates string constraints ... |
// Nodelet for fusing (i.e. projecting together) two depth streams
// Author: Max Schwarz <max.schwarz@uni-bonn.de>
#include "depth_fusion.h"
#include <pcl_ros/transforms.h>
#include <pluginlib/class_list_macros.h>
#include <opencv/highgui.h>
#include <chrono>
namespace
{
typedef std::chrono::high_resolution_clo... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "hal/simulation/NotifierData.h"
extern "C" {
uint64_t HALSIM_GetNextNotifierTimeout(void) {
return 0;
}
in... |
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */
/* vi: set ts=4 sw=4 expandtab: (add to ~/.vimrc: set modeline modelines=5) */
/* ***** 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 (th... |
#ifndef ROBOTOC_RICCATI_FACTORIZATION_HPP_
#define ROBOTOC_RICCATI_FACTORIZATION_HPP_
#include "Eigen/Core"
#include "robotoc/robot/robot.hpp"
#include "robotoc/hybrid/hybrid_container.hpp"
#include "robotoc/riccati/split_riccati_factorization.hpp"
#include "robotoc/riccati/split_constrained_riccati_factorization.hpp... |
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <string>
#define mp make_pair
#define INF 0x3f3f3f3f
using namespace std;
int main()
{
double n, a;
for (int i = 0; i < 100; ++i) {
scanf("%lf", &n);
if (n <=... |
/*
* Copyright 2013 Kyle Treubig
*
* 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... |
// 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 "media/gpu/test/video_encoder/decoder_buffer_validator.h"
#include "base/logging.h"
#include "media/base/decoder_buffer.h"
#include "media/gpu/h... |
#include "core/hepch.h"
#include "MaterialImporter.h"
#include "modules/ModuleResources.h"
#include "modules/ModuleTexture.h"
#include "resources/ResourceMaterial.h"
#include "importers/TextureImporter.h"
#include "core/preferences/src/ResourcesPreferences.h"
void ColorCopy(const aiColor4D& assimp_color, float4& co... |
class Solution {
public:
long long subArrayRanges(vector<int>& nums) {
return subarraySum(nums, less<int>()) - subarraySum(nums, greater<>());
}
private:
long long subarraySum(const vector<int>& A,
const function<int(int, int)>& op) {
const int n = A.size();
long long ans = ... |
#include "RecoEgamma/EgammaElectronAlgos/interface/TrajSeedMatcher.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#incl... |
/*
Copyright (c) 2018 - present 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 us... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkCollectPolyData.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwa... |
// Copyright (c) 2016 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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 <hpx/include/datapar.hpp>
#include <hpx/local/init.hpp>
#include <hpx/modules... |
#include <cstring>
#include <vector>
#include <sstream>
#include "vtr_assert.h"
#include "vtr_util.h"
#include "vtr_random.h"
#include "vtr_log.h"
#include "vtr_memory.h"
#include "vtr_time.h"
#include "vpr_types.h"
#include "vpr_error.h"
#include "vpr_utils.h"
#include "globals.h"
#include "read_xml_arch_file.h"
#i... |
#ifndef ENGINE_GUI_WINDOW_HPP
#define ENGINE_GUI_WINDOW_HPP
#include "../../util/Vec2.hpp"
#include "WidgetContainer.hpp"
#include <functional>
#include <memory>
namespace engine
{
namespace GUI
{
class Window : public WidgetContainer
{
public:
Window(WidgetContainer *parent, const std::shared_ptr <IGUIRenderer... |
/*
* Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You m... |
/*
* Copyright (C) 2003, 2006 Apple Computer, 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 lis... |
/**
* 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 useful,
* but WITH... |
//
// Copyright 2002 The ANGLE 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 "compiler/translator/tree_util/IntermTraverse.h"
#include "compiler/translator/Compiler.h"
#include "compiler/translator/InfoSink.h"
... |
/**
* Copyright (c) 2019 Horizon Robotics. All rights reserved.
* @author yaoyao.sun
* @date 2019.04.12
*/
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <unistd.h>
#include <memory>
#include <string>
#include <vector>
#inclu... |
/*************************************************************************/
/* item_list.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include <Antic/Engine.h>
#include <Antic/SystemEvent.h>
#include <Antic/EventSystem.h>
#include <Antic/Physics.h>
#include <iostream>
#include <math.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
#ifdef LINUX
#endif
bool firstFrame = true;
void SleepMilliseconds( int milliseconds )
{
... |
#include "global.h"
#include "DateTime.h"
#include "RageUtil.h"
DateTime::DateTime()
{
Init();
}
void DateTime::Init()
{
ZERO( *this );
}
DateTime DateTime::GetNowDateTime()
{
time_t now = time(NULL);
tm tNow;
localtime_r( &now, &tNow );
DateTime dtNow;
#define COPY_M( v ) dtNow.v = tNow.v;
COPY_M( tm_yea... |
/*
* Copyright (c) 2014, Peter Thorson. 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 cond... |
/* Copyright 2017 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 (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
/*
Copyright (c) 2005-2022, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
// from TFT_eSPI/examples/Generic/Touch_calibrate/Touch_calibrate.ino
#include "touch_cal.hpp"
#if TOUCH_CAL
extern TFT_eSPI tft;
void touch_init(){
// Initialise the TFT screen
tft.begin();
// Set the rotation
tft.setRotation(1);
// Calibrate the touch screen and retrieve the scaling factors
... |
#include "vtkActor.h"
#include "vtkArcParallelEdgeStrategy.h"
#include "vtkCircularLayoutStrategy.h"
#include "vtkEdgeLayout.h"
#include "vtkForceDirectedLayoutStrategy.h"
#include "vtkGraphLayout.h"
#include "vtkGraphToPolyData.h"
#include "vtkPassThroughEdgeStrategy.h"
#include "vtkPolyDataMapper.h"
#include "vtkProp... |
#include "pch.h"
#include "SonyPS2Seq.h"
DECLARE_FORMAT(SonyPS2);
using namespace std;
// ******
// BGMSeq
// ******
SonyPS2Seq::SonyPS2Seq(RawFile *file, uint32_t offset)
: VGMSeqNoTrks(SonyPS2Format::name, file, offset),
compOption(0),
bSkipDeltaTime(0) {
UseLinearAmplitudeScale(); // Oni... |
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.1.1
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Copyright (c) 2013-2017 Niels Lohmann <http://nlohmann.me>.
... |
#include "vectorclass.h"
//use simd_defs to define the Encoder class
//vec4uq is only one supported ATM. Expect to add vec8uq
//#include "simd_defs.h"
//#define ENC_CLASS SIMD_CLASS
#define ENC_CLASS Vec4uq
#include "enc_struct_LDPC.h"
ENC_CLASS rand_xoshiro_N(int rand_sel);
void gen_rand_databits( unsigned num_co... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <sstream>
#include <ngraph/validation_util.hpp>
#include <ops_cache.hpp>
#include <op_cloner.hpp>
#include "inference_engine.hpp"
#include "common_test_utils/file_utils.hpp"
#include "pugixml.hpp"
using namespace Subgraph... |
// Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "gpu/image/imgExtract.hpp"
#include "../kernel.hpp"
namespace VideoStitch {
namespace Image {
namespace {
#include "imgExtract.xxd"
}
INDIRECT_REGISTER_OPENCL_PROGRAM(imgExtract, true);
/**
* Extract a portion of an image.
* @par... |
class Solution {
public:
bool validateStackSequences(vector<int>& a, vector<int>& b) {
stack<int> st;
int n = a.size();
for( int i = 0 , j = 0 ; i < n ; i++ ) {
st.push(a[i]);
while(!st.empty() && st.top() == b[j])
st.pop() , j++;
}
ret... |
/**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Fre... |
#include<sched.h>
#include<iostream>
#include<string>
#include<errno.h>
#include<cstring>
void error(const std::string &text);
int policytoint(const char &c);
int main(int argc, char **argv) {
int i, policy;
struct sched_param sp;
if(argc < 3) {
std::cerr << "Error requires 3 arguments..... |
// --------------------------------------------------------------------------------------------------
// Copyright (c) 2016 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 th... |
/*
* Copyright (C) 2019 HERE Europe B.V.
*
* 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 (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 "net/disk_cache/mapped_file.h"
#include "base/file_path.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "net/disk_... |
/*=========================================================================
*
* 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... |
#include <boost/format.hpp>
#include <string>
static boost::format ENVELOPE_FORMAT {
"{ \"id\" : %1%,"
" \"message_type\" : %2%,"
" \"expires\" : %3%,"
" \"targets\" : [\"client_1\", \"client_2\"],"
" \"sender\" : %4%,"
" \"destination_report\" : false"
"}"
};
static boost::for... |
// Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
#include "xsapi/game_server_platform.h"
#include "xbox_system_factory.h"
#include "utils.h"
#include "user_context.h"
using namespace pplx;
NAMESPACE_MICROSOFT... |
/*
** Copyright 2011-2013,2015-2017 Centreon
**
** This file is part of Centreon Engine.
**
** Centreon Engine 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 Free Software Foundation.
**
** Centreon Engine is distributed i... |
#define NOGDI
#include "udt_server.h"
#include <winsock2.h>
#include <ws2tcpip.h>
#include <wspiapi.h>
#include <iostream>
#include "udt/udt.h"
#include "gflags/gflags.h"
#include "glog/logging.h"
using namespace std;
using namespace google;
DEFINE_string(port, "8080", "port to bind for server");
DEFINE_string(save_d... |
// Generated from /POI/java/org/apache/poi/ss/usermodel/charts/LayoutMode.java
#pragma once
#include <java/io/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/ss/usermodel/charts/fwd-POI.hpp>
#include <java/lang/Enum.hpp>
template<typename ComponentType, typename... Bases> struct SubArray;
name... |
/*
* Copyright 2021 InterDigital
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* License is avaiable on the root under license.txt and you may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE... |
#include "SampleAnalyzer/User/Analyzer/user.h"
using namespace MA5;
bool user::Initialize(const MA5::Configuration& cfg,
const std::map<std::string,std::string>& parameters)
{
// Initializing PhysicsService for MC
PHYSICS->mcConfig().Reset();
// definition of the multiparticle "hadronic"
... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
#include <iostream>
using namespace std;
int zerof(int n){
int k=0;
for(int i=5; n/i>=1; i*=5){
k+=n/i;
}
return k;
}
int main(){
return 0;
} |
/* Copyright 2017 R. Thomas
* Copyright 2017 Quarkslab
*
* 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 appli... |
/**
* Orthanc - A Lightweight, RESTful DICOM Store
* Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
* Department, University Hospital of Liege, Belgium
* Copyright (C) 2017-2020 Osimis S.A., Belgium
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the G... |
//
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco 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 BEAST_CORE_HPP
#define BEAST_CORE_HPP
#include <beast/config.hpp>
#incl... |
/******************************************************************************
*
* Project: OpenGIS Simple Features Reference Implementation
* Purpose: The OGRFeature class implementation.
* Author: Frank Warmerdam, warmerda@home.com
*
*************************************************************************... |
#include <hxcpp.h>
#ifndef INCLUDED_openfl__Vector_FloatVector
#include <openfl/_Vector/FloatVector.h>
#endif
#ifndef INCLUDED_openfl__Vector_IVector
#include <openfl/_Vector/IVector.h>
#endif
#ifndef INCLUDED_openfl__Vector_IntVector
#include <openfl/_Vector/IntVector.h>
#endif
#ifndef INCLUDED_openfl_display_Graphic... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///
/// \file This file wraps cl2.hpp and disables temporary some warnings that this header can emit.
///
#pragma once
// Check for C++.
#ifndef __cplusplus
#error This header can be used in C++ only.
#endif
// we want except... |
#include "Object.hpp"
#include <spdlog/spdlog.h>
#include "../../AStarPathFinder.hpp"
#include "../../Grid.hpp"
#include "../../SpatialHashCollisionDetector.hpp"
#include "../../Util/util.hpp"
#include "../Actions/Action.hpp"
#include "ObjectGenerator.hpp"
namespace griddly {
Object::Object(std::string objectName, ... |
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_THREAD_HPP
#define COH_THREAD_HPP
#include "coherence/lang/compatibility.hpp"
#include "coherence/lang/FinalHandle.hpp"
#include ... |
#pragma once
#ifndef UITSL_FETCH_FETCH_HPP_INCLUDE
#define UITSL_FETCH_FETCH_HPP_INCLUDE
#include <cstdio>
#include <cstdlib>
#include <string>
#include "../polyfill/filesystem.hpp"
#ifdef __EMSCRIPTEN__
#include "fetch_web.hpp"
#else
#include "fetch_native.hpp"
#endif
namespace uitsl {
/*
* Synchronously fet... |
/**************************************************************
*
* 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 y... |
/*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2017 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2016 INRIA.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.