text
stringlengths
5
1.04M
/* * Copyright(c) 2020 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 ...
/*============================================================================ KWSys - Kitware System Library Copyright 2000-2009 Kitware, Inc., Insight Software Consortium Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt for details. This software is distr...
// 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. // On Linux, when the user tries to launch a second copy of chrome, we check // for a socket in the user's profile directory. If the socket file is open ...
#include "stdafx.h" #include "MainMenu.h" #include "UI/UIDialogWnd.h" #include "ui/UIMessageBoxEx.h" #include "../xr_IOConsole.h" #include "../IGame_Level.h" #include "../CameraManager.h" #include "xr_Level_controller.h" #include "ui\UITextureMaster.h" #include "ui\UIXmlInit.h" #include <dinput.h> #include "...
// ----------------- BEGIN LICENSE BLOCK --------------------------------- // // Copyright (c) 2018 Intel Corporation // // 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 retai...
// Copyright 2009-2018 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2018, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level directory...
/* Copyright 2021 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...
// // Created by phoenixflower on 9/6/21. // #ifndef LANDESSDEVCORE_ISSHAREDLOCK_HPP #define LANDESSDEVCORE_ISSHAREDLOCK_HPP namespace LD { namespace CT { template<typename T> constexpr bool IsSharedLock(LD::Type<T> ) noexcept { return false; } } } #endif //LANDE...
#include "BaseMedialMesh.h" #include "Commom\FileIO.h" #include "Commom\GeometryComputation.h" void BaseMedialMeshBuffer::copyMedialPointsToBuffer(qeal* buffer, int size) { if(size == 0) std::copy(medialPoints.buffer, medialPoints.buffer + medialPoints.span, buffer); else std::copy(medialPoints.buffer, medialPoint...
/* +----------------------------------------------------------------------+ | Swoole | +----------------------------------------------------------------------+ | This source file is subject to version 2.0 of the Apache license, | | that is bundl...
#include "headers.h" /** * @brief * https://leetcode-cn.com/problems/longest-palindromic-substring/ * * 给你一个字符串 s,找到 s 中最长的回文子串。 */ class Solution { public: /** * @brief pan duan reverse str substring * * @param words * @return true * @return false */ bool huiW...
#include <iostream> #include <string> #include <fstream> #include <cstring> using namespace std; //function to do big mod int mod(int base,int exponential,int modd) { int ans = 1; int counter = 0; while(counter < exponential) { ans = (ans * base) % modd; counter++; } return ans; } //where all the magic hap...
// Copyright 2015-2021 Tier IV, 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 app...
#include <iostream> #include <string> #include <fstream> #include <sstream> #include <map> int isNotAlphaNum(char c) { return !std::isalnum(c); } void countWords(std::istream& in, std::map<std::string, int>& words) { std::string line; std::string word; while (std::getline(in, line)) { std::replace_if(li...
// Copyright 2013 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/indexed_db/indexed_db_connection.h" namespace content { IndexedDBConnection::IndexedDBConnection( scoped_refptr<IndexedDBD...
/* * Copyright (c) 2016-2019 * Viktor Gubin * * Use, modification and distribution are subject to 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 __IO_CONSTSTRING_HPP_INCLUDED__ #define __IO_CONSTSTRING_H...
/* Copyright (c) 2003-2019 by Mike Jarvis * * TreeCorr is free software: 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 ...
#include "win32_skip_error_registry.h" #include "solar/containers/container_helpers.h" namespace solar { win32_skip_error_registry::location::location() : _file_name("") , _line_number(0) { } win32_skip_error_registry::location::location(const char* file_name, int line_number) : _file_name(file_name) , ...
// 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 <memory> #include "base/cxx17_backports.h" #include "base/metrics/histogram_samples.h" #include "base/pickle.h" #include "base/strings/strin...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <string> #include <vector> #include <ngraph/op/experimental_detectron_detection_output.hpp> #include "ie_parallel.hpp" #include "experimental_detectron_detection_output.h" using namespace InferenceEngine; namespace ov { ...
/* * * Copyright (C) 2003-2010, OFFIS e.V. * All rights reserved. See COPYRIGHT file for details. * * This software and supporting documentation were developed by * * OFFIS e.V. * R&D Division Health * Escherweg 2 * D-26121 Oldenburg, Germany * * * Module: dcmnet * * Author: Marco Eic...
/* mvxxx 2019 https://github.com/mvxxx */ #pragma once #include "../../external/SFML/include/SFML/Graphics/VertexArray.hpp" #include "../ecs/component/Visible.hpp" #include "../ecs/entity/Entity.hpp" #include "../scene/Scene.hpp" #include "../Utilities.hpp" /** * @brief Represents frame on the scene */ class Frame : ...
/* ** Copyright 2009-2011,2017 Centreon ** ** 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...
#include "Texture_From_File.h" #include "loader.h" namespace texturing { unsigned char *Texture_From_File::generate(int &width, int &height) { return load_png(filename.c_str(), width, height); } }
// // Copyright (c) 2009-2010 Mikko Mononen memon@inside.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 // arising from the use of this software. // Permission is granted to anyone to use this software for any ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: System.Enum #include "System/Enum.hpp" // Completed inc...
// Copyright 2020 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <stdio.h> #include <zircon/assert.h> #include <zircon/boot/image.h> #include <phys/frame-pointer.h> #include <phys/stack...
#include <GL/glew.h> #include "imgui-SFML.h" #include "imgui.h" #include <SFML/OpenGL.hpp> #include <SFML/Window/Event.hpp> #include <SFML/Window/Window.hpp> #include <cstddef> // offsetof, NULL #include <cassert> // Supress warnings caused by converting from uint to void* in pCmd->TextureID #ifdef __clang__ #pragma...
#include "IRremote.h" #include "IRremoteInt.h" //+============================================================================= // Gets one undecoded level at a time from the raw buffer. // The RC5/6 decoding is easier if the data is broken into time intervals. // E.g. if the buffer has MARK for 2 time intervals and S...
#include "MipsGenerator.h" #include "LinearDescriptorAllocator.h" #include "DWParam.h" #include "ShaderUtility.h" #include "d3dx12.h" //https://slindev.com/d3d12-texture-mipmap-generation/ namespace adria { MipsGenerator::MipsGenerator(ID3D12Device* device, UINT max_textures) : device(device) { CreateRootSignatu...
// @COPYRIGHT@ // Licensed under MIT license (LICENSE.txt) // clxx/app/exception.hpp /** // doc: clxx/app/exception.hpp {{{ * \todo Write documentation */ // }}} #ifndef CLXX_APP_EXCEPTION_HPP_INCLUDED #define CLXX_APP_EXCEPTION_HPP_INCLUDED /* clxx includes */ #include <clxx/common/exception.hpp> namespace clx...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * This GM exercises stroking of paths with large stroke lengths, which is * referred to as "overstroke" for brevity. In Skia as of 8/2016 we offset * each part of the c...
/* * Copyright (C) 2019-2020 LEIDOS. * * 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 (c) 2014-2018, The Simplix Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list ...
// Copyright 2020 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...
// Copyright 2016 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 <atomic> #include <ctype.h> #include <inttypes.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/typ...
#ifndef FENESTRATIONCOMMONSTATE_H #define FENESTRATIONCOMMONSTATE_H namespace FenestrationCommon { // class CState is used to keep validity of object state. In some cases calculations do not need // to be performed before results is requested. class CState { public: virtual ~CState() = defa...
// Cplus_For_Self_Driving_Car.cpp : This file contains the 'main' function. Program execution begins and ends there. // Library for basic function using C++ #include <iostream> #include <vector> #include "Matrix.h" using namespace std; //// Basic Function Group: (Base 1) //void print(vector<float> vector1); //void pr...
/*** * Bitwuzla: Satisfiability Modulo Theories (SMT) solver. * * This file is part of Bitwuzla. * * Copyright (C) 2007-2022 by the authors listed in the AUTHORS file. * * See COPYING for more information on using this software. */ #include "test.h" class TestSMTAxioms : public TestFile { protected: void S...
// Copyright (c) 2012-2017 The Knotcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <rpc/server.h> #include <rpc/client.h> #include <base58.h> #include <core_io.h> #include <netbase.h> #include <te...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * 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 noti...
// 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 "base/bind.h" #include "base/file_path.h" #include "chrome/browser/download/download_danger_prompt.h" #include "chrome/browser/ui/browser.h" ...
// // created by Vlad Savchuk on 25/09/20. // #include <iostream> #include <cmath> #include <chrono> #include <random> #include "PrimalityTest.h" using namespace std; //return random Number in range (lower, upper) long long PrimalityTest::getRandomNumber(long long lower, long long upper) { auto seed = std::chro...
/* Find the distance in feet that the projectile travels Example Input, velocity and angle in degrees. 63.9 65 -1 Program Output: 97.2198 */ #include <string> #include <iostream> using namespace std; int main( int argc, char* argv[] ) { float velocity, angle, distance; cout << "Enter veloci...
#include "exchs.h" #include <cmath> const double ExchS::m_alpha = 2./3; const double ExchS::m_c = pow(3. / (4. * M_PI), 1./3.); // // Construktor // ExchS::ExchS(void) { } // // Destructor // ExchS::~ExchS(void) { } /// // Returns density of exchange energy per one electron // rhoa - electron density alpha // rhob...
// MRegKey.hpp -- Win32API registry key manipulator -*- C++ -*- // This file is part of MZC4. See file "ReadMe.txt" and "License.txt". //////////////////////////////////////////////////////////////////////////// #ifndef MZC4_MREGKEY_HPP_ #define MZC4_MREGKEY_HPP_ 8 /* Version 8 */ #ifndef HKCR ...
// Copyright (c) 2014 Antony Arciuolo. See License.txt regarding use. #include <oBase/concurrent_registry.h> #include <oBase/assert.h> #include <oBase/macros.h> #include <oMemory/byte.h> namespace ouro { namespace state { enum value { invalid = 0, failed, making, made, unmaking, unmaking_to...
// boost/chrono/stopwatches/collectors/last_lap.hpp // Copyright 2011 Vicente J. Botet Escriba // 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/chrono/stopwatches for docume...
//////////////////////////////////////////////////////////////////////////////// //3456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 // // lowfat - an "engine" for natural document viewing for free desktop-systems // // copyright (c) 2007 Mirco Müller // // lowfat is free software; you c...
#pragma once template <typename T> class CopyCol{ private: public: CopyCol(){} ~CopyCol(){} class sstd::mat_c<T>* pMxs; uint CopyColNum; class CopyCol<T> operator=(class CopyCol<T> CC); }; template <typename T> inline class CopyCol<T> CopyCol<T>::operator=(class CopyCol<T> CC) { for(uin...
// 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...
// for vasprintf() on Linux #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #define _DEFAULT_SOURCE #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sqlite3.h> #include <limits.h> #include <getopt.h> #include <vecto...
// ---------------------------------------------------- // Timer.cpp // Body for CPU Tick Timer class // ---------------------------------------------------- #include "Timer.h" // --------------------------------------------- Timer::Timer() { Start(); } // --------------------------------------------- void Timer::S...
#include <iostream> #include <string> #include <algorithm> bool zScanner(const std::string& str, int i) { for (int j = 0; j < str.size(); ++j) { if (str[j] != 'z') // if j = z then it will return false // { return false; } } return true; } int main() { std::string str = "aaaaaaaa"; std::string meeps ...
/* * Copyright (c) 2000-2001,2011,2014 Apple Inc. All Rights Reserved. * * The contents of this file constitute Original Code as defined in and are * subject to the Apple Public Source License Version 1.2 (the 'License'). * You may not use this file except in compliance with the License. Please obtai n * a cop...
/*========================================================================= Program: Visualization Toolkit Module: vtkBSplineTransform.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 softw...
/* * 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 ...
/*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
// System Includes #include <string.h> // 3rdParty Includes #include "catch2/catch.hpp" #include "kirke/string.h" #include "kirke/system_allocator.h" // Internal Includes #include "word_search/grid.h" class WordSearch__Grid__TestFixture { protected: WordSearch__Grid__TestFixture(){ system_a...
/* MoTo - Motion Toolkit Copyright (c) 2006-2019 Gino van den Bergen, DTECTA Source published under the terms of the MIT License. For details please see COPYING file or visit http://opensource.org/licenses/MIT */ #ifndef MT_MATRIX3X3_HPP #define MT_MATRIX3X3_HPP #include <guts/TypeTraits.hpp> #in...
/* vim: sw=2: * Copyright (c) 2011, Gennady Bystritsky <bystr@mac.com> * * Distributed under the MIT Licence. * This is free software. See 'LICENSE' for details. * You must read and accept the license prior to use. * * Author: Gennady Bystritsky */ #include <sk/util/Class.h> #include <sk/util/Strings.h> ...
// // generic/stream_protocol.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff 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) // // ...
// 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 "editaddressdialog.h" #include "ui_editaddressdialog.h" #include "addresstablemodel.h" #include "guiutil.h" #includ...
// Copyright (c) 2014 The Machinecoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <crypto/hmac_sha512.h> #include <string.h> CHMAC_SHA512::CHMAC_SHA512(const unsigned char* key, size_t keylen) { ...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
// stdafx.cpp : source file that includes just the standard includes // simeck.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
// 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/udp/udp_socket_libevent.h" #include <errno.h> #include <fcntl.h> #include <netdb.h> #include <sys/socket.h> #include "base/callback.h"...
// 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 "config.h" #include "core/html/HTMLPictureElement.h" #include "core/HTMLNames.h" #include "core/dom/ElementTraversal.h" #include "core/frame/Use...
// Copyright 2018 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 "msd_vsl_device.h" #include <chrono> #include <thread> #include "magma_util/macros.h" #include "magma_vendor_queries.h" #include "msd.h" #includ...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash 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 "base...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <cassert> #include <deque> #include <iomanip> #include <memory> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> #include "caseless.hpp" #include "precision_utils.h" ...
/** * @file stores.cpp * * Implementation of functionality for stores and towner dialogs. */ #include "stores.h" #include <algorithm> #include <fmt/format.h> #include "controls/plrctrls.h" #include "cursor.h" #include "engine/load_cel.hpp" #include "engine/random.hpp" #include "engine/render/cel_r...
// 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 "src/camera/drivers/hw_accel/ge2d/ge2d.h" #include <fuchsia/hardware/amlogiccanvas/cpp/banjo.h> #include <lib/ddk/debug.h> #include <lib/ddk/driv...
/** * Copyright (c) 2016-present, Facebook, 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 ...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include "Framework/TestingFramework.hpp" #include <array> #include <cstddef> #include "DataStructures/DataBox/Prefixes.hpp" // IWYU pragma: keep #include "DataStructures/DataVector.hpp" // IWYU pragma: keep #include "DataStr...
#define USING_TEST_MEMORY #include "Test.h" TEST_CONSTRUCT; #include "test/type/Value.h" #include <cstdio> int main() { typedef test::type::Value<int, 4> ValueInt4; ValueInt4 i1; printf("%d\n", ValueInt4{}.Get()); }
/*************************************************************************/ /* scene_tree.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// Copyright (c) 2016/17/18/19/20/21/22 Leandro T. C. Melo <ltcmelo@gmail.com> // Copyright (c) 2008 Roberto Raggi <roberto.raggi@gmail.com> // // 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 Softw...
/* Copyright 2020 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...
#define CATCH_CONFIG_MAIN #include <Array.h> #include <catch2/catch.hpp> using std::string; using std::vector; Array<int> one() { return std::move(Array<int>{1, 2, 3, 4, 5}); } TEST_CASE("Constructor::Fill") { REQUIRE(Array<int>(5, 1).data == vector<int>{1, 1, 1, 1, 1}); } TEST_CASE("Constructor::init list") { REQ...
/* Copyright 2015 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
/*-----------------------Patrick 12/11/96-------------------------- Source for AVP Pheromone system -----------------------------------------------------------------*/ #include "3dc.h" #include "inline.h" #include "module.h" #include "strategy_def.h" #include "gamedef.h" #include "bh_types.h" #define UseLocalAsser...
/* * 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...
#define BOOST_TEST_MODULE StringConversion #include <boost/test/unit_test.hpp>
int current_lineno = 0;
/* * 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...
/* 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...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
#include "global.hpp" #include "SDL.h" namespace global { SDL_Window *window = nullptr; SDL_Renderer *renderer = nullptr; }
// Copyright 2014 The Chromium OS 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 "trunks/password_authorization_delegate.h" #include <base/logging.h> #include "trunks/tpm_generated.h" namespace trunks { const uint8_t kC...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
// Copyright (c) 2017 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "guiutiltests.h" #include "chainparams.h" #include "config.h" #include "dstencode.h" #include "guiutil.h" #include "receivereq...
#include <ros/ros.h> #include <tf/transform_broadcaster.h> int main(int argc, char** argv){ ros::init(argc, argv, "robot_tf_publisher"); ros::NodeHandle n; ros::Rate r(100); tf::TransformBroadcaster broadcaster; while(n.ok()){ broadcaster.sendTransform( tf::StampedTransform( tf::Transfor...
#include "ObjectSystem/Camera/CameraComponent.hpp" #include "ObjectSystem/Actor.hpp" #include "Engine/Engine.hpp" #include "Graphics/Renderer.hpp" CameraComponent::CameraComponent(Actor* o) : Component(o) { } void CameraComponent::SetViewMatrix(const Matrix4& view) { owner->GetEngine()->GetRenderer()->S...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
// b757 : 頸美椰子樹 #include <cstdio> #include <iostream> using namespace std; int main() { double r; while( scanf("%lf", &r )!=EOF ) { cout<< r*9/5 + 32 << endl ; } return 0; }
/* * 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 ...
#include <iostream> using namespace std; int main() { int time; cin >> time; int h, m, s; s = time % 60; m = (time / 60) % 60; h = time / 60 / 60; cout << h << ":" << m << ":" << s << endl; return 0; }
//-----------------------------------------------------------------------------------------------// // xbw32 for Windows (generate of numeric combinations for bingo or lotery) // // Created by wilsonsouza 2013, 2014, 2015, 2016, 2017, 2018 // // WR Devinfo // (c) 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2016, 2017, 20...