text
stringlengths
7
961k
/* Copyright 2014 F-Secure 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 distri...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
#include <algorithm> #include <cstddef> #include <iostream> #include <string> #include <vector> class Grid { private: size_t k, m, n; std::vector<int> x, y; public: Grid() = default; explicit Grid(size_t i) { k = i; for (int j = 1; j <= i; ++j) { x.push_back(j); y.push_back(j); } } ...
/*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, insta...
// Copyright Benoit Blanchon 2014-2015 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson #pragma once #ifndef ARDUINO #include <string> // This class reproduces Arduino's String class class String : public std::string { public: String(const char *cstr = "") : std::string(cstr)...
#include "CKGlobals.h" NAKED CKERROR CKStartUp() { JUMP(0x2403813F); } NAKED CKERROR CKShutdown() { JUMP(0x2403871A); } NAKED CKContext* GetCKContext(int pos) { JUMP(0x240387B1); } NAKED CKObject* CKGetObject(CKContext* iCtx, CK_ID iID) { JUMP(0x24038131); } NAKED CKERROR CKCreateContext(CKContext** iContext, ...
// 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 "test/unittests/test-utils.h" #include "src/handles/handles.h" #include "src/objects/objects-inl.h" #include "src/wasm/module-decoder.h" #incl...
#include "move.h" #include "scene.h" #include "sceneMgr.h" MoveSync::MoveSync() { } MoveSync::~MoveSync() { if (_sim) { delete _sim; _sim = nullptr; } } void MoveSync::init(std::weak_ptr<Scene> weak_scene) { _scene = weak_scene; _sim = new RVO::RVOSimulator(); _sim->setTimeSte...
// Copyright 2017 Daniel Parker // Distributed under the Boost license, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See https://github.com/danielaparker/jsoncons for latest version #ifndef JSONCONS_UBJSON_UBJSON_PARSER_HPP #define JSONCONS_UBJSON_UBJSON_P...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2012-2014 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2012-2014 Bruno Lalande, Paris, France. // Copyright (c) 2012-2014 Mateusz Loskot, London, UK. // This file was modified by Oracle on 2014. // Modifications copyright (c) 2014,...
#include<bits/stdc++.h> using namespace std; #define fRead(x) freopen(x,"r",stdin) #define fWrite(x) freopen (x,"w",stdout) #define LL long long #define ULL unsigned long long #define ff first #define ss second #define pb push_back #define INF 2e16 #define PI acos(-1.0) #define mk make_pair #define pii pair<int,int...
// ariatab.cpp - written and placed in the public domain by Jeffrey Walton #include "sa_pch.h" #include "sa_config.h" NAMESPACE_BEGIN(SA_CryptoPP) NAMESPACE_BEGIN(SA_ARIATab) CRYPTOPP_ALIGN_DATA(16) CRYPTOPP_TABLE const word32 S1[256]={ 0x00636363,0x007c7c7c,0x00777777,0x007b7b7b,0x00f2f2f2,0x006b6b6b,0x006f6f6f,0x...
/* * * Copyright (c) 2021 Project CHIP Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
// Copyright 2019 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 "device.h" #include <lib/async/default.h> #include <zircon/errors.h> #include <zircon/syscalls/object.h> #include <array> #include <cinttypes> #...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
#include "WarpPerspectiveBilinear.h" #include "ofGraphics.h" namespace ofxWarp { //-------------------------------------------------------------- WarpPerspectiveBilinear::WarpPerspectiveBilinear(const ofFbo::Settings & fboSettings) : WarpBilinear(fboSettings) { this->type = TYPE_PERSPECTIVE_BILINEAR; // Cre...
#include "ComponentsManager.h" #include "Input/InputEmulator.h" #include "Input/TouchSliderEmulator.h" #include "Input/TouchPanelEmulator.h" #include "SysTimer.h" #include "PlayerDataManager.h" #include "FrameRateManager.h" #include "StageManager.h" #include "FastLoader.h" #include "../FileSystem/ConfigFile.h" #include...
#include <htrace.hpp> #include "caffe2/contrib/prof/htrace_conf.h" #include "caffe2/core/net_gpu.h" #include "caffe2/core/operator.h" namespace caffe2 { namespace { class HTraceAsyncDAGNet : public AsyncDAGNet { public: HTraceAsyncDAGNet(const NetDef& net_def, Workspace* ws) : AsyncDAGNet(net_def, ws) { ...
//===- OpenMPClause.cpp - Classes for OpenMP clauses ----------------------===// // // 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 // //===---------------------------...
//===----------------------------------------------------------------------===// // GuinsooDB // // guinsoodb/optimizer/matcher/type_matcher.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "guinsoodb/common/types.hpp" namespace ...
#include "wm_entity_utils.h" #include <iostream> #include "wm_node.h" #include <erl_interface.h> #include <ei.h> #include "wm_resource.h" using namespace swm; SwmNode::SwmNode() { } SwmNode::SwmNode(ETERM *term) { if(!term) { std::cerr << "Cannot convert ETERM to SwmNode: empty" << std::endl; return; ...
#ifndef FALCON_MEMORY_CONSTRUCT_HPP #define FALCON_MEMORY_CONSTRUCT_HPP #include <falcon/c++/noexcept.hpp> #include <falcon/c++/constexpr.hpp> #include <falcon/memory/addressof.hpp> #if __cplusplus >= 201103L # include <falcon/utility/unpack.hpp> # include <falcon/parameter/parameter_index.hpp> # include <falcon/memo...
/* Dwarf Therapist Copyright (c) 2010 Justin Ehlert Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
// Copyright 2012 Cloudera Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
#include "rtde_service.h" #include "type_def.h" RtdeCallback::RtdeCallback() { } void RtdeCallback::setOutputMask(int chanel, const std::vector<int> &mask, double freq) { if (output_recipes_.find(chanel) == output_recipes_.end()) { output_recipes_[chanel] = mask; ...
#ifndef STAN_MATH_PRIM_PROB_MULTINOMIAL_LOGIT_LOG_HPP #define STAN_MATH_PRIM_PROB_MULTINOMIAL_LOGIT_LOG_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/fun/Eigen.hpp> #include <stan/math/prim/prob/multinomial_logit_lpmf.hpp> #include <vector> namespace stan { namespace math { /** \ingroup multivar_di...
#include "ros/ros.h" #include "ros/time.h" #include "std_msgs/Float64.h" #include "std_msgs/String.h" #include "trajectory_msgs/JointTrajectory.h" #include "sensor_msgs/JointState.h" std_msgs::String joint1_name, joint2_name; std_msgs::Float64 joint1_pos, joint2_pos; std_msgs::Float64 joint1_vel, joint2_vel; std_msg...
/* * 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...
#include "stdafx.h" #include "FolderReader.h" WIN32_FIND_DATAA FolderReader::m_DataFinder; HANDLE FolderReader::m_Handle; std::vector<std::string> FolderReader::readFolder(std::string path, std::string type) { std::string filetypes(path); filetypes.erase(filetypes.find_last_not_of("\\") + 1); filetypes += "\\*....
#include<list> #include<vector> #include<string> #include<iostream> int main() { std::list<const char*> li_ch{ "test", "sls", "sdfa" }; std::vector<std::string> v_str; v_str.assign(li_ch.cbegin(), li_ch.cend()); for (auto v_s : v_str) { std::cout << v_s << std::endl; } }
#include "MultiAgentTestPlan1413200862180.h" /*PROTECTED REGION ID(eph1413200862180) ENABLED START*/ // Add additional using directives here #include <alica_tests/TestWorldModel.h> #include <engine/AlicaEngine.h> #include <essentials/IdentifierConstPtr.h> /*PROTECTED REGION END*/ namespace alica { // Plan: MultiAgent...
// // Copyright (c) 2009 Advanced Micro Devices, Inc. All rights reserved. // #ifndef _UTILS_OPTIONS_HPP_ #define _UTILS_OPTIONS_HPP_ #include <string> #include <vector> #include <cstdio> #include "top.hpp" #include "library.hpp" #include <cassert> #include <sstream> #ifdef __linux__ #include <unistd.h> #endif #ifdef...
/* * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include <math.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sstmac/replacements/mpi/mpi.h> namespace unusual_noncontigs { /** The default behavior of the test routines ...
/////////////////////////////////////////////////////////////////////////////// // FILE: FilterWheel.cpp // PROJECT: Micro-Manager // SUBSYSTEM: DeviceAdapters //----------------------------------------------------------------------------- // DESCRIPTION: The example implementation of the demo came...
//***************************************************************************** // Copyright 2017-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://w...
#pragma once #include <algorithm> #include <limits> template <class T> struct max_monoid { typedef T value_type; value_type unit() const { return std::numeric_limits<T>::lowest(); } value_type mult(value_type a, value_type b) const { return std::max(a, b); } };
#ifndef QUERYCPP_QUERY_HPP #define QUERYCPP_QUERY_HPP #include "column.hpp" #include "table.hpp" #include "operators.hpp" #include <fmt/core.h> #include <string> #include <type_traits> namespace querycpp { class query { public: query(const table table); /// @param if_not_exists add the IF NOT EXITS ch...
/* * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
// Copyright 2019 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 <assert.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <atomic> #include <test-utils/test-utils.h> #include <unittest/un...
#include <iostream> using namespace std; int main() { int inputSteps = 316; int currPosition = 0; int bufferSize = 1; int mostRecentlyInsertedAtPositionOne = 0; // we don't actually need to create the array for (int i=1; i<=50000000; ++i) { // the only way it will insert in buffer[1] is: if ((curr...
#include "std_lib_facilities.h" const string &greet() { static const string s = "hello"; return s; } int main() { const string &s = greet(); cout << s << '\n'; return 0; }
/* * Copyright (c) 2020, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/* * Copyright 2021 4Paradigm * * 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) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #include "guiconstants.h" #include "walletmodel.h" #inc...
#include <iostream> using namespace std; void swap(int* a, int* b){ int temp = *a; *a = *b; *b = temp; } void merge(int l, int m, int r, int arr[]){ int n1 = m - l + 1; int n2 = r - m; int i,j; int left_arr[n1]; int right_arr[n2]; for(i=0;i<n1;i++){ left_arr[i] = arr[l+i]; } for(j=0;j< n2;j++){ ...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) | +---------...
#include <iostream> #include <fstream> #include <algorithm> #include <regex> #include <map> typedef struct Instruction { std::string name; char reg; int offset; Instruction() : name(), reg(), offset() { } Instruction(std::string _name, char _reg, int _offset) : name(_name), reg(_reg)...
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE 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 a...
#include "__zz_cib_stl-helpers/__zz_cib_bidirectional_iterator.h" #include "__zz_cib_BaseTemplateInterfaceTests-class-down-cast.h" #include "__zz_cib_BaseTemplateInterfaceTests-delegate-helper.h" #include "__zz_cib_BaseTemplateInterfaceTests-generic.h" #include "__zz_cib_BaseTemplateInterfaceTests-ids.h" #include "__z...
#include "HttpMessage.h" #include <string.h> #include "htime.h" #include "hlog.h" #include "hurl.h" #include "http_parser.h" // for http_parser_url using namespace hv; http_headers DefaultHeaders; http_body NoBody; char HttpMessage::s_date[32] = {0}; bool HttpCookie::parse(const std::string& str) { std::str...
#include "DocxFactory/WordProcessingMerger/InvalidMergeDataException.h" using namespace DocxFactory; using namespace std; InvalidMergeDataException::InvalidMergeDataException( const string& p_file, const int p_line) : WordProcessingException(p_file, p_line) { m_what = "Invalid merge data. Only XML o...
#include "m4c0/casein/main.hpp" std::unique_ptr<m4c0::casein::handler> m4c0::casein::main(const m4c0::native_handles * nh) { class my_handler : public handler { public: }; return std::make_unique<my_handler>(); }
/*========================================================================= Program: ParaView Module: vtkGeoMapFetcher.cxx Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRAN...
#include<bits/stdc++.h> #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/tree_policy.hpp> #define ll long long int #define ld double #define REP(i,x,n) for(ll i=x;i<n;i++) #define SZ(v) (ll)v.size() #define endl "\n" #define ff first #define ...
#include "CMainActivity.h" #include "R.h" #include <elastos/utility/logging/Logger.h> using Elastos::Utility::Logging::Logger; using Elastos::Droid::Media::IAudioManager; using Elastos::Droid::Media::CSoundPool; using Elastos::Droid::View::EIID_IViewOnClickListener; namespace Elastos { namespace Droid { namespace Dev...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) | +---------...
// RUN: %clangxx -fsycl %s -o %t.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out // RUN: %ACC_RUN_PLACEHOLDER %t.out //==------------ subdevice.cpp - SYCL subdevice basic test -----------------==// // // Part of the LLVM Project, under the Apache Lice...
/* Copyright 2015 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) 2006-2012 LOVE Development Team * * 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, * includin...
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 0; i < 5; i++) { char c = 'A'; for (int j = 0; j <= i; j++) { cout<<c; c++; } cout<<endl; } }
#include "DQM/L1TMonitor/interface/L1TStage2MuonComp.h" L1TStage2MuonComp::L1TStage2MuonComp(const edm::ParameterSet& ps) : muonToken1(consumes<l1t::MuonBxCollection>(ps.getParameter<edm::InputTag>("muonCollection1"))), muonToken2(consumes<l1t::MuonBxCollection>(ps.getParameter<edm::InputTag>("muonCollectio...
#include <iostream> using namespace std; template <typename T1, typename T2> class Point { private: T1 m_x; T2 m_y; public: Point(T1 x, T2 y) : m_x(x), m_y(y){}; ~Point(){}; T1 getX() const; //获取x坐标 void setX(T1 x); //设置x坐标 T2 getY() const; //获取y坐标 void setY(T2 y); //设置y }; template ...
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are ...
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
// Copyright (c) 2018 The Zcash developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <utilstrencodings.h> #include <test/test_earn_save_invest_repeat.h> #include "sapling/sapling_util.h" #include <boost/test/unit...
#include "RenderCommand.h" #include "Platform/OpenGL/OpenGLRendererAPI.h" namespace FikoEngine { RendererAPI *RenderCommand::s_RendererAPI = new OpenGLRendererAPI(); }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // util.hpp // // // Miscellaneous useful functions // #ifndef _H_UTIL #define _H_UTIL #include "utilcode.h" #include "metadata.h" #include "clrdata.h" #include "xclrdata.h" #in...
#include "Etterna/Globals/global.h" #include "RageSoundReader_SpeedChange.h" #include "RageUtil/Utils/RageUtil.h" #include <algorithm> static const int WINDOW_SIZE_MS = 30; RageSoundReader_SpeedChange::RageSoundReader_SpeedChange( RageSoundReader* pSource) : RageSoundReader_Filter(pSource) { m_Channels.resize(p...
/* File : RegPage.CPP Date : 02/11/98 Author : Suresh Krishnan Registration Wizard Page Control using Wizard 97 control This file exposes DoRegistrationWizard () which creates the necessary screen pages for RegWIz Modification History: 4/29/98 : Removed Reseller screen as per Microsoft Request 4/28/98 :...
// Magic Software, Inc. // http://www.magic-software.com // http://www.wild-magic.com // Copyright (c) 2004. All Rights Reserved // // The Wild Magic Library (WML) source code is supplied under the terms of // the license agreement http://www.magic-software.com/License/WildMagic.pdf // and may not be copied or disclos...
// Copyright 2019 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 "tools/fidlcat/lib/inference.h" #include <ios> #include <ostream> #include "src/lib/fidl_codec/printer.h" #include "tools/fidlcat/lib/syscall_de...
#include "bipolar/core/result.hpp" #include <string> #include <ostream> #include <memory> #include <gtest/gtest.h> using namespace bipolar; using namespace std::literals; template <typename T, typename E> std::ostream& operator<<(std::ostream& os, const Result<T, E>& res) { if (res.has_value()) { return o...
#include <vector> #include <iostream> #include <time.h> template<typename object> bool seletion(const std::vector<object> &v, const object k) { for (auto i = 0; i < v.size(); ++i) { if (v[i] == k) { std::cout << "Find it at index " << i << "\n"; return true; } } std::cout << "Cant find it.\n"...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Copyright (c) 2017 The PerfectCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "amount.h" #include "ba...
/* * Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org> * Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Debug.h> #include <AK/JsonObject.h> #include <LibGfx/Bitmap.h> #include <LibGfx/FontDatabase.h> #include <LibGfx/SystemTheme.h> #i...
// Copyright (c) 2019-2020 Xenios SEZC // https://www.veriblock.org // Distributed under the MIT software license, see the accompanying // file LICENSE or http://www.opensource.org/licenses/mit-license.php. #ifndef ALT_INTEGRATION_INCLUDE_VERIBLOCK_ENTITIES_ENDORSEMENT_HPP_ #define ALT_INTEGRATION_INCLUDE_VERIBLOCK_EN...
/* * Copyright 2021 4Paradigm * * 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...
/*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...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | | | Cop...
/*========================================================================= Program: ParaView Module: vtkPVXMLElement.cxx Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRANT...
// Copyright (c) 2013 LionCoin Developers #include <string.h> #include "pbkdf2.h" static inline uint32_t be32dec(const void *pp) { const uint8_t *p = (uint8_t const *)pp; return ((uint32_t)(p[3]) + ((uint32_t)(p[2]) << 8) + ((uint32_t)(p[1]) << 16) + ((uint32_t)(p[0]) << 24)); } static inline void b...
//===-- Core-C-API.cpp ----------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
/* * Copyright 2013-2019 Real Logic 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------...
/* ID: suzyzha1 PROG: gift1 LANG: C++ */ #include <iostream> #include <fstream> #include <string> using namespace std; const int maxn = 12; int n; string names[maxn]; int num_of_friends[12],friends[12][12]; int money[12],receive[12]; int main() { fstream fin("gift1.in",ios::in); fstream fout("gift1.out",ios::out)...
/** * @copyright Copyright 2018 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...
// Fill out your copyright notice in the Description page of Project Settings. #include "HarvesterController.h"
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "pch.h" #include "../TerminalApp/ColorScheme.h" #include "../TerminalApp/CascadiaSettings.h" #include "../TerminalApp/TerminalPage.h" #include "JsonTestClass.h" #include "TestUtils.h" #include <defaults.h> #include "../ut_app/TestDyna...
/****************************************************************************** * $Id: cpl_vsil_buffered_reader.cpp 27722 2014-09-22 15:37:31Z goatbar $ * * Project: VSI Virtual File System * Purpose: Implementation of buffered reader IO functions. * Author: Even Rouault, even.rouault at mines-paris.org * **...
/*============================================================================== Description: ==============================================================================*/ //****************************************************************************** //*************************************************************...
/* * anisotropic_diffusion.cc * * Copyright (C) 2013 Diamond Light Source * * Author: James Parkhurst * * This code is distributed under the BSD license, a copy of which is * included in the root directory of this package. */ #include <boost/python.hpp> #include <boost/python/def.hpp> #include <dials/algor...
// Copyright 2019 The Dawn Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
//===--- IRGenSIL.cpp - Swift Per-Function IR Generation ------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/*! @file @brief タイプ別設定 - スクリーン @date 2008.04.12 kobake CPropTypes.cppから分離 */ /* Copyright (C) 1998-2002, Norio Nakatani Copyright (C) 2000, jepro, genta Copyright (C) 2001, jepro, genta, MIK, hor, Stonee, asa-o Copyright (C) 2002, YAZAKI, aroka, MIK, genta, こおり, Moca Copyright (C) 2003, MIK, zenryaku, Moca, n...
/* //@HEADER // ************************************************************************ // // KokkosKernels 0.9: Linear Algebra and Graph Kernels // Copyright 2017 Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retain...
/* * Copyright 2016 Freeman Zhang <zhanggyb@gmail.com> * * 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 applic...
#include "midirecorder.h" #include <iostream> MidiRecorder::MidiRecorder() : _ready(false), _timer(0), _clip(0) { pthread_mutex_init(&this->mutex, NULL); for (int i = 0; i < 256; i++) this->_runningNotes[i] = 0; } MidiRecorder::~MidiRecorder() { } qint64 MidiRecorder::CurrentTime() { if (this...
/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #include <gtest/gtest.h> #include "graph/context/QueryContext.h" #include "graph/executor/query/ProjectExecutor.h" #include "graph/executor/query/SortExecutor.h" #include "graph/executor/test/QueryT...
#include <iostream> #include <sstream> #include <ios> #include <iomanip> #include <functional> #include <algorithm> #include <vector> #include <string> #include <list> #include <queue> #include <deque> #include <stack> #include <set> #include <map> #include <cstdio> #include <cstdlib> #include <cmath> #include <cstring...