text
stringlengths
7
961k
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <cstddef> #include <ostream> #include <vector> #include "ngraph/attribute_adapter.hpp" #include "ngraph/ngraph_visibility.hpp" namespace ngraph { /// \brief A vector of axes. class AxisVector : public std::v...
/* * Copyright (C) 2007, 2010 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 condit...
/* SUBMITTED BY: Deadeye001 THIS CODE CHECKS IF AN ENTERED NUMBER IS PALINDROME NUMBER OR NOT DATE:01/10/2021 */ #include <bits/stdc++.h> using namespace std; int checkpal(int n) { //function to check if no. is palindrome or not int a=n; int sum=0; while(a!=0) { int d=a%10; sum=(sum*10)+d; a=a/10; } if(...
#include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> #include <bits/stdc++.h> using namespace __gnu_pbds; using namespace std; typedef vector<int> vi; typedef vector<long> vl; typedef pair<int,int> pi; typedef pair<long,long> pl; typedef set<int> si; typedef set<long> s...
/* * Copyright 2019 Carnegie Technologies * * 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...
// // FunctionCodeGenerator.cpp // Emojicode // // Created by Theo Weidmann on 29/07/2017. // Copyright © 2017 Theo Weidmann. All rights reserved. // #include "FunctionCodeGenerator.hpp" #include "AST/ASTStatements.hpp" #include "Compiler.hpp" #include "RunTimeHelper.hpp" #include "Functions/Function.hpp" #include...
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */ #include <sstream> #include <limits> #include "ifcpp/model/AttributeObject.h" #include "ifcpp/model/BuildingException.h" #include "ifcpp/model/BuildingGuid.h" #include "ifcpp/reader/ReaderUtil.h" #include "ifcpp/writer/WriterUtil.h" #include "ifcpp/I...
/******************************************************************************* * Copyright (C) 2022 Intel Corporation * * SPDX-License-Identifier: MIT ******************************************************************************/ #include "qpl/qpl.h" #include "../c_api/own_defs.h" qpl_status qpl_get_index_tabl...
//***************************************************************************** // 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...
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
/**************************************************************************** ** Meta object code from reading C++ file 'ActionEditor.h' ** ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.2.2) ** ** WARNING! All changes made in this file will be lost! ********************************************************...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2006. 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) // // See http://www.boost.org/libs/interprocess...
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (B. Van Essen, et al.) listed in // the CONTRIBUTORS file. <lbann-dev@l...
// Copyright (c) 2018-2019, 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 ...
/////////////////////////////////////////////////////////////////////////////// // This source file is part of the LuaPlus source distribution and is Copyright // 2001-2005 by Joshua C. Jensen (jjensen@workspacewhiz.com). // // The latest version may be obtained from http://wwhiz.com/LuaPlus/. // // The code presented ...
/* * Copyright 2015 WebAssembly Community Group * * 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...
#pragma once #include "NVMeSensor.hpp" #include <boost/asio/deadline_timer.hpp> #include <boost/asio/io_service.hpp> #include <memory> class NVMeContext : public std::enable_shared_from_this<NVMeContext> { public: NVMeContext(boost::asio::io_service& io, int rootBus) : scanTimer(io), rootBus(rootBus) ...
#include "util/fmt/format.h" #include "util/fmt/ostream.h" #include <memory> #include <ostream> #include <stack> #include <string> #include <tuple> #include <unordered_map> #include <unordered_set> #include <vector> #include "parser/ast/expr.h" #include "parser/ast/stmt.h" #include "parser/ast/transform/expr.h" #inclu...
#include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <phosg/Filesystem.hh> #include <phosg/Strings.hh> #include <unordered_map> #include <vector> #include "RealmzLib.hh" using namespace std; static string first_file_that_exists(const vector<string>& names) { for (const au...
// Copyright (c) 2011-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. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <qt/bitcoin.h> #include <qt/bitcoingui.h> #in...
#include "TOBRodBuilder.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" using namespace edm; using namespace std; TOBRod* TOBRodBuilder::build(const GeometricDet* negTOBRod, const GeometricDet* posTOBRod, const TrackerGeometry* theGeomDetGeometry) { vector<const GeometricDet*> theNeg...
#include <catch2/catch_test_macros.hpp> #include <catch2/matchers/catch_matchers_floating.hpp> #include <cornelis/Color.hpp> using namespace cornelis; TEST_CASE("RGB: operator+") { RGB rgb(1.0f, -2.0f, 3.0f); RGB result = rgb + rgb; CHECK(result(0) == 2.0f); CHECK(result(1) == -4.0f); CHECK(resu...
#include "cxxopts.hpp" #include "hyrise.hpp" #include "scheduler/node_queue_scheduler.hpp" #include "server/server.hpp" cxxopts::Options get_server_cli_options() { cxxopts::Options cli_options("./hyriseServer", "Starts Hyrise server in order to accept network requests."); // clang-format off cli_options.add_op...
/* * Copyright (C) 2013 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...
#include "reinas.h" /*Constructor de la clase*/ reinas::reinas(int t) { tam = t; enter.open("ReinasSolucion.txt", fstream::out); enter << "Soluciones en tablero de " << t << "*"<< t <<endl<<endl; } /*Este metodo generara la matriz llena con espacios vacios*/ void reinas::GenerarMatrizA() { matrizA...
// #include "p2i_kernel.hpp" // /** // * Parses the next point cloud from the input stream. // */ // void parsePointCloud(std::ifstream& input_file, PointCloud2* pointcloud2) { // try { // input_file.read((char*)&(pointcloud2->height), sizeof(int32_t)); // input_file.read((char*)&(pointcloud2->width), sizeof(i...
/* * Copyright (c) 2021 Samsung Electronics Co., Ltd. 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...
// Copyright (c) 2021 by Apex.AI 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 ap...
//===-test_quantizelinear_xnnpack.cc-----------------------------------------------------------===// // // Copyright (C) 2019-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 ...
// Copyright Yamaha 2021 // MIT License // https://github.com/yamaha-bps/cbr_utils/blob/master/LICENSE #ifndef CBR_UTILS__CLOCK_TRAITS_HPP_ #define CBR_UTILS__CLOCK_TRAITS_HPP_ #include <chrono> namespace cbr::detail { /** * @brief clock traits wrapper * */ template<typename clock_t> struct ClockTraits { using...
/* * Copyright (c) 2018 Abit More, and contributors. * * The MIT License * * 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 ...
#include "PMurHash.hpp" std::hash<long> long_hasher; std::hash<double> double_hasher; std::hash<std::string> string_hasher; FORCE_INLINE void hash_combine(std::size_t& seed, const long& v) { seed ^= long_hasher(v) + 0x9e3779b9 + (seed<<6) + (seed>>2); } FORCE_INLINE void hash_combine(std::size_t& seed, const doub...
/// \file ParamGeneration.cpp /// /// \brief Parameter manipulation routines for the Zerocoin cryptographic /// components. /// /// \author Ian Miers, Christina Garman and Matthew Green /// \date June 2013 /// /// \copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green ...
#include <occa/internal/lang/type/class.hpp> namespace occa { namespace lang { class_t::class_t() : structure_t("") {} int class_t::type() const { return typeType::class_; } type_t& class_t::clone() const { return *(new class_t()); } dtype_t class_t::dtype() const { ...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2019 ArangoDB GmbH, Cologne, Germany /// /// 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...
/* * Copyright (C) 2010 The Android Open Source Project * Copyright (C) 2012-2014, The Linux Foundation. All rights reserved. * * Not a Contribution, Apache license notifications and license are * retained for attribution purposes only. * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
// Copyright (c) 2017-2018, uPlexa Team // Copyright (c) 2014-2019, 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 th...
// Copyright 2007, 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 conditions ...
program find_test; vars i, max, qty : int; vars array[100] : int; void function readArray(length : int); vars i : int; { for(i = 0; i < length; i = i + 1) { read(array[i]); } } void function printArray(length : int); vars i : int; { for(i = 0; i < length; i = i + 1) { write(array[i]); } } void func...
//===--- GenDecl.cpp - IR Generation for Declarations ---------------------===// // // 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...
/* * Copyright 2011-2022 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE */ #include "common.h" #include "bgfx_utils.h" #include "imgui/imgui.h" namespace { struct PosColorVertex { float m_x; float m_y; float m_z; uint32_t m_abgr; static void init() ...
// This file is licensed under the Elastic License 2.0. Copyright 2021 StarRocks Limited. #include "exprs/vectorized/like_predicate.h" #include <memory> #include "column/column_builder.h" #include "column/column_helper.h" #include "column/column_viewer.h" #include "exprs/vectorized/binary_function.h" #include "glog/...
// 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 "content/browser/service_worker/service_worker_job_coordinator.h" #include "base/stl_util.h" #include "content/browser/service_worker/embedded_w...
#include <iostream> extern "C" { __attribute__((weak)) int saveCheckpoint() { return 0; } __attribute__((weak)) int restoreCheckpoint() { return 0; } int fakeFunction(int x) { return (x) * 2; } }
// Begin CVS Header // $Source: /fs/turing/cvs/copasi_dev/copasi/function/CMassAction.cpp,v $ // $Revision: 1.41 $ // $Name: Build-33 $ // $Author: shoops $ // $Date: 2009/07/30 00:51:57 $ // End CVS Header // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., EML Research, g...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector <int> vi; vector <vi> a; int n; map <vi, int> map1; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); while(cin >> n, n){ a.resi...
/* * Copyright (c) 2021, 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 2018-2021 The urg_stamped 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 ...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The kaishen developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license....
//===--- Expr.cpp - Swift Language Expression ASTs ------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/** * @addtogroup DFNs * @{ */ #include "PrimitiveFinderInterface.hpp" namespace CDFF { namespace DFN { PrimitiveFinderInterface::PrimitiveFinderInterface() { asn1SccFrame_Initialize(& inImage); asn1SccT_String_Initialize(& inPrimitive); asn1SccVectorXdSequence_Initialize(& outPrimitives); } Primitiv...
/************************************************************************************ * * D++, A Lightweight C++ library for Discord * * Copyright 2021 Craig Edwards and D++ contributors * (https://github.com/brainboxdotcc/DPP/graphs/contributors) * * Licensed under the Apache License, Version 2.0 (the "License...
/* * Copyright 2018 The Project Oak 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 o...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/login/login_handler.h" #include <string> #include <vector> #include "base/bind.h" #include "base/command_line.h" #includ...
#include <stack> #include "../util/scope_guard.hpp" #include "activity.hpp" #include "animation.hpp" #include "area.hpp" #include "attack.hpp" #include "audio.hpp" #include "buff.hpp" #include "buff_utils.hpp" #include "calc.hpp" #include "character.hpp" #include "character_status.hpp" #include "command.hpp" #include ...
/*************************************************************************** ** Sun Aug 27 2006 ** (C) 2006 by Sanjay Nair ** sanjaysn <at> usc <dot> edu ****************************************************************************/ #include "cglobal.h" #include <openssl/sha.h> #include "cevent.h" /*! C'tor...
/* * Copyright 2017-2018 Tom van Dijk, Johannes Kepler University Linz * * 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 r...
/* Copyright (C) 2005-2007 Feeling Software Inc. Portions of the code are: Copyright (C) 2005-2007 Sony Computer Entertainment America MIT License: http://www.opensource.org/licenses/mit-license.php */ #include "StdAfx.h" #include "FCDocument.h" #include "FCDEntity.h" #include "FCDEntityInstance.h" #include "FCD...
// // EventCollision.cpp // Joseph Petitti // #include "EventCollision.h" namespace df { EventCollision::EventCollision() { Vector m_pos(0, 0); m_p_obj1 = NULL; m_p_obj2 = NULL; setType(COLLISION_EVENT); } EventCollision::EventCollision(Object *p_o1, Object *p_o2, Vector p) { m_pos = p; m_p_obj1 = p_o1;...
#ifndef REMOTE_SLAVE_CLIENT_HPP_INCLUDED #define REMOTE_SLAVE_CLIENT_HPP_INCLUDED #include <network/remote_client_base.hpp> #include <network/tcp_socket.hpp> class MasterToSlaveServer; class RemoteSlaveClient: public RemoteClientBase<TCPSocket> { public: RemoteSlaveClient() = default; ~RemoteSlaveClient() = defa...
/*! * WTEngine | File: renderer.hpp * * \author Matthew Evans * \version 0.7 * \copyright See LICENSE.md for copyright information. * \date 2019-2021 */ #ifndef WTE_MGR_RENDERER_HPP #define WTE_MGR_RENDERER_HPP #include <string> #include <utility> #include <set> #include <iterator> #include <memory> #include...
// Copyright (c) 2014-2015 Dropbox, 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 agr...
// Copyright (c) 2014-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/networkstyle.h> #include <qt/guiconstants.h> #include <QApplication> static const struct { const char *ne...
/********************* */ /*! \file lazy_bitblaster.cpp ** \verbatim ** Original author: Liana Hadarean ** Major contributors: none ** Minor contributors (to current version): Morgan Deters ** This file is part of the CVC4 project. ** Copyright (c) 2009-2014 ...
//=---------------------------------------------------------------------= // // $Id$ $Name$ // // The contents of this file are subject to the AAF SDK Public Source // License Agreement Version 2.0 (the "License"); You may not use this // file except in compliance with the License. The License is available // in AAFSD...
// Copyright 2013 The Flutter 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 "flutter/flow/layers/color_filter_layer.h" #include "flutter/flow/testing/layer_test.h" #include "flutter/flow/testing/mock_layer.h" #include "fl...
/* Copyright 2016 Ahnaf Siddiqui 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...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm/gm.h" #include "include/core/SkBitmap.h" #include "include/core/SkCanvas.h" #include "include/core/SkColor.h" #include "include/core/SkFont.h" #include "include/c...
#pragma once #include "cApp.hpp" #include <iostream> wxIMPLEMENT_APP(cApp); cApp::cApp() { } cApp::~cApp() { } bool cApp::OnInit() { _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); m_frame = new Main(); m_frame->Show(); return true; }
#ifndef STAN_MATH_PRIM_SCAL_FUN_LOG1P_HPP #define STAN_MATH_PRIM_SCAL_FUN_LOG1P_HPP #include <stan/math/prim/scal/fun/boost_policy.hpp> #include <boost/math/special_functions/log1p.hpp> namespace stan { namespace math { /** * Return the natural logarithm of one plus the specified value. * * \f[ * \mbox{log1p}(x)...
/*========================================================================= * * 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 * * http://ww...
// Copyright 2018 POGchain Development Foundation and contributors. Licensed // under the Apache License, Version 2.0. See the COPYING file at the root // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 #include "work/BasicWork.h" #include "util/GlobalChecks.h" #include "util/Logging.h" #include ...
//********************************************************* // AboutCommand.cpp // // Copyright (C) 2007-2021 Skeletal Studios // All rights reserved. // //********************************************************* //********************************************************* #include "AboutCommand.h" #include "ErrorRepo...
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on the * source. * */ #include <cstdio> #include <cstdlib> #include <cstring> #include <casse...
/*============================================================================= Copyright (c) 2006 Eric Niebler 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) ===============================================...
// Copyright 2011 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 "cc/scheduler/delay_based_time_source.h" #include "base/basictypes.h" #include "base/test/test_simple_task_runner.h" #include "cc/test/scheduler...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <cassert> #include <sstream> #include <stdexcept> #include <vector> #include "inference/module/ModuleParameter.h" ...
// MadronaLib: a C++ framework for DSP applications. // Copyright (c) 2013 Madrona Labs LLC. http://www.madronalabs.com // Distributed under the MIT license: http://madrona-labs.mit-license.org/ #include "MLProc.h" // ---------------------------------------------------------------- // class definition class MLProcGl...
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2017-2019 Baldur Karlsson * * 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...
//#include <iostream> // //using namespace std; // //int main() { // int x, y[1000]; // cin >> x; // // for (int i = 0, j = 0; i < 1000; i++, j++) { // if (j == x) j = 0; // cout << "N[" << i << "] = " << j << endl; // } // // return 0; //}
/* * ModSecurity, http://www.modsecurity.org/ * Copyright (c) 2015 - 2020 Trustwave Holdings, Inc. (http://www.trustwave.com/) * * 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 * * If any of the fil...
#include <iostream> #include <unistd.h> #include "option_parse.h" void Options::initialize(Algo algo, int argc, char** argv) { switch(algo) { case Algo::dynamique: case Algo::vorace: { int opt; while((opt = getopt(argc, argv, "pf:")) != -1) { swi...
#include "tests.h" #pragma warning(disable: 4474) bool gbVerifyFailed = false; bool gbVerifyStepFailed = false; bool gbVerifyVerbose = false; bool gbVerifyIgnoreAsserts = false; bool FileExistsMock(const wchar_t* asFilePath, uint64_t * pnSize, bool& result) { return false; } bool SearchPathMock(LPCWSTR path, LPCWS...
//===- PreprocessorLexer.cpp - C Language Family Lexer --------------------===// // // 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 // //===---------------------------...
/* * 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 ...
// $Id$ /* Copyright (c) 2007-2015, Trustees of The Leland Stanford Junior University 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...
/** * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or * more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Green Energy Corp licenses this file to you under the Apache License, * Version 2.0 (the "Li...
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
/* Author: Jason Williams <jdw@cromulence.com> Copyright (c) 2014 Cromulence LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
// Copyright (c) 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...
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
/* * Copyright (c) 2020, Nico Weber <thakis@chromium.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibCore/ArgsParser.h> #include <math.h> #include <sys/time.h> #include <unistd.h> int main(int argc, char** argv) { #ifdef __serenity__ if (pledge("stdio settime", nullptr) < 0) { perror("p...
#include "quit_action.hpp" #include "quit_event.hpp" namespace wanderer { void quit_action::execute(entt::dispatcher& dispatcher) { dispatcher.enqueue<event::quit_event>(); } } // namespace wanderer
#include <bits/stdc++.h> #define IOS std::ios::sync_with_stdio(false); std::cin.tie(nullptr); std::cout.tie(nullptr); // #define __DEBUG__ #ifdef __DEBUG__ #define DEBUG(...) printf(__VA_ARGS__) #else #define DEBUG(...) #endif #define filename "" #define setfile() freopen(filename".in", "r", stdin); freopen(fi...
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007, Industrial Light & Magic, a division of Lucas // Digital Ltd. LLC // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the f...
//***************************************************************************** // Copyright 2017-2020 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...
/* -*- mode:C++; c-basic-offset:4 -*- Shore-kits -- Benchmark implementations for Shore-MT Copyright (c) 2007-2009 Data Intensive Applications and Systems Labaratory (DIAS) Ecole Polytechnique Federale de Lausanne All Rights Reserved. Permission to use, copy, modify and distribute this software and...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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 "feerate.h" #include "tinyformat.h" const std::string CURRENCY_UNIT = ...
#include "stdafx.h" #include "CUnitSurface.h" #include "..\Common\Colors.h" #include <math.h> // Constructor CCUnitSurface::CCUnitSurface() { m_pColoringParams = NULL; m_nRefCount = 0; m_nXOffset = 0; m_nYOffset = 0; m_dwFrameDelay = 0; } // Destructor CCUnitSurface::~CCUnitSurface() { } // Debug function...
#include <PCU.h> #include "parma_sides.h" #include "parma_weights.h" #include "parma_targets.h" namespace parma { class WeightSideTargets : public Targets { public: WeightSideTargets(Sides* s, Weights* w, int sideTol, double alpha) { init(s, w, sideTol, alpha); } double total() { ...