text
stringlengths
7
961k
// Copyright (c) 2006-2008 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/renderer_security_policy.h" #include "base/logging.h" #include "base/string_util.h" #ifdef CHROME_PERSONALIZATION #incl...
// Copyright 2017 The Cockroach Authors. // // Licensed as a CockroachDB Enterprise file under the Cockroach Community // License (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // https://github.com/cockroachdb/cockroach/blob/master/li...
/*************************************************************************/ /* text_edit.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_PrimalItemResource_Metal_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //---------------------------------------------------------...
/* * openmpt123_config.hpp * --------------------- * Purpose: libopenmpt command line player * Notes : (currently none) * Authors: OpenMPT Devs * The OpenMPT source code is released under the BSD license. Read LICENSE for more details. */ #ifndef OPENMPT123_CONFIG_HPP #define OPENMPT123_CONFIG_HPP #define MPT...
/**************************************************************************************** * @author: kzvd4729 created: 07-10-2017 00:43:48 * solution_verdict: Accepted language: C++14 * run...
#include "../Objects.h" sur::Vec2 sur::MvQ::MoveQueue(Vec2f direction, i32 moveQueueIndex) { auto round = [](f32& n) { f32 pow_10 = pow(10.0f, (f32)3); n = ::round(n * pow_10) / pow_10; }; if (!mvContainer.contains(moveQueueIndex)) { mvContainer[moveQueueIndex] = MoveQueueContainer(); } MoveQueueContainer ...
/** * @file bitoutstrategy.hpp * * @date 2018/05/07 * @author Seiichi "Suikan" Horie * @brief Abstract class of GPIO bit out */ #ifndef BITOUTSTRATEGY_HPP_ #define BITOUTSTRATEGY_HPP_ #include <peripheralstrategy.hpp> namespace murasaki { /** * \ingroup MURASAKI_ABSTRACT_GROUP * \brief Definition of the root...
#include <ws/ws.hpp> namespace WonderSwan { APU apu; #include "io.cpp" #include "dma.cpp" #include "channel1.cpp" #include "channel2.cpp" #include "channel3.cpp" #include "channel4.cpp" #include "channel5.cpp" #include "serialization.cpp" auto APU::Enter() -> void { while(true) scheduler.synchronize(), apu.main();...
/* * Copyright (c) 2016 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2024-10-14 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
/*------------------------------------------------------------------------ * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2015 The Khronos Group Inc. * Copyright (c) 2015 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ex...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/> * * This program is free software;...
/* * * Copyright (c) 2008-2012, OFFIS e.V. and ICSMED AG, Oldenburg, Germany * All rights reserved. See COPYRIGHT file for details. * * Source file for class DRTIonPlanIOD * * Generated automatically from DICOM PS 3.3-2007 * File created on 2012-02-01 16:51:15 * */ #include "dcmtk/config/osconfig.h" ...
/* * Copyright (C) 2014 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 <vtkSurfaceReconstructionFilter.h> #include <vtkSmartPointer.h> #include <vtkNamedColors.h> #include <vtkProgrammableSource.h> #include <vtkContourFilter.h> #include <vtkReverseSense.h> #include <vtkPolyDataMapper.h> #include <vtkProperty.h> #include <vtkPolyData.h> #include <vtkCamera.h> #include <vtkRendere...
#include <ros/ros.h> #include <tf/transform_broadcaster.h> ros::Publisher pub; int main (int argc, char** argv) { // Initialize ROS ros::init (argc, argv, "tf_emitter"); ros::NodeHandle nh; ros::Rate loop_rate(0.2); static tf::TransformBroadcaster br; tf::Transform transform; transform.setOrigin(tf::...
/* MIT License Copyright(c) 2018-2019 megai2 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, publish, dist...
//===----------------------------------------------------------------------===// // // 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 may...
//============================================================================== // 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. // ...
#include <iostream> #include <iomanip> #include "color/color.hpp" int main( int argc, char *argv[] ) { ::color::hsv< float > c0; //!< Instead of float you may put std::uint8_t,std::uint16_t, std::uint32_t, std::uint64_t, double, long double ::color::yuv< std::uint8_t > c1; //!< Instead of std...
/* * hashlib++ - a simple hash library for C++ * * Copyright (c) 2007-2010 Benjamin Gr�delbach * * 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 (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2016 by EMC Corporation, All Rights Reserved /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may obtain a...
/* Copyright (c) 2017, Massachusetts Institute of Technology 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 condition...
#include<stdio.h> int main () { printf ("Welcome\nto\nBeijing.\n"); }
#include "timeclient.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); TimeClient w; w.show(); return a.exec(); }
/**************************************************************************************************************************************************** * Copyright 2018 NXP * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
///////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2009-2013. // // 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.boos...
#include "CSVFileAdapter.h" namespace OpenSim { CSVFileAdapter::CSVFileAdapter() : DelimFileAdapter(",", // delimiter for read "," // delimiter for write ) {} CSVFileAdapter* CSVFileAdapter::clone() const { return new CSVFileAdapter{*this}; } TimeSeriesTable CSVFil...
// MDIAppView.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "MDIAppView.h" #include "CMainFrame.h" #include "CChildFrame.h" #include "MDIAppViewDoc.h" #include "TreeListCtrlDoc.h" #include "MDIAppViewView.h" #include "CDialogAbout.h" #include "TreeListCtrlView.h" #include "..\...
// Copyright (c) 2019 by Robert Bosch GmbH. 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...
#include <cliff_detector/cliff_detector_node.h> namespace cliff_detector { CliffDetector::CliffDetector(): depth_sensor_params_update(false) {} void CliffDetector::detectCliff( const sensor_msgs::ImageConstPtr& depth_msg, const sensor_msgs::CameraInfoConstPtr& info_msg) { ...
/*! SimpleLogger for the EpLibrary The MIT License (MIT) Copyright (c) 2008-2013 Woong Gyu La <juhgiyo@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 Software without restriction, including ...
class Solution { public: int searchMethod(vector<int>&nums,int target,int lo,int hi){ if(lo == hi){ if(nums[lo] == target) return lo; if(nums[lo] > target) return lo; return lo+1; } int mid = lo+((hi-lo)>>1); if(nums[mid] >= target) return searchM...
// Copyright Oliver Kowalke 2017. // 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 BOOST_CONTEXT_FIBER_H #define BOOST_CONTEXT_FIBER_H #include <windows.h> #include <boost/context/d...
// Copyright (c) 2021 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) /// \file parallel/executors/annotating_executor.hpp #pragma once #include <hpx/conf...
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
// Copyright (c) 2013-2014 Vittorio Romeo // License: Academic Free License ("AFL") v. 3.0 // AFL License page: http://opensource.org/licenses/AFL-3.0 #ifndef SSVU_CORE_FILESYSTEM_PATH #define SSVU_CORE_FILESYSTEM_PATH namespace ssvu { namespace FileSystem { namespace Internal { template<Type TType> struct E...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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 <util.h> #include <chainparamsbase.h> #include <random.h> #include <ser...
// // Copyright (c) 2008-2022 the Urho3D project. // // 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, m...
#include<bits/stdc++.h> using namespace std; #define INF 12345 int main() { int n,e1,e2; cin>>n; vector<vector<int>> v(n,vector<int>(n,INF)); for(int i=0;i<n;i++) v[i][i]=0; for(int i=1;i<n;i++) { cin>>e1>>e2; e1--,e2--; v[e1][e2]=v[e2][e1]=1; } for(int k=0;k<n...
/* Copyright 2016-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://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
/* * Copyright (c) 2021 Louis Langholtz https://github.com/louis-langholtz/PlayRho * * 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...
// This file is part of Wintermute Engine // For conditions of distribution and use, see copyright notice in license.txt #include "Wme.h" #include "AnimNodeLayer.h" #include "AnimLayer.h" #include "MeshEntity.h" #include "Exception.h" #include "StringUtil.h" #include "AnimTree.h" #include "Skeleton.h" #include "Animat...
#include "RE/I/IMemoryStore.h" namespace RE { void* IMemoryStore::AllocateAlign(std::size_t a_size, std::uint32_t a_alignment) { return AllocateAlignImpl(a_size, a_alignment); } void IMemoryStore::DeallocateAlign(void*& a_freeBlock) { DeallocateAlignImpl(a_freeBlock); } }
#include <bits/stdc++.h> #include <ext/pb_ds/tree_policy.hpp> #include <ext/pb_ds/assoc_container.hpp> using namespace std; using namespace __gnu_pbds; typedef long long ll; typedef long double ld; typedef complex<ld> cd; typedef pair<int, int> pi; typedef pair<ll,ll> pl; typedef pair<double,double> pd; typedef ve...
// // Created by James.Balajan on 31/03/2021. // #include <s2/s2point.h> #include <stdexcept> #include "constants/constants.hpp" #include "line_segment.hpp" Coordinate LineSegment::get_endpoint_1() const { return _endpoint_1; } Coordinate LineSegment::get_endpoint_2() const { return _endpoint_2; } Coordinate LineS...
/* BugEngine <bugengine.devel@gmail.com> see LICENSE for detail */ #ifndef BE_COMPUTE_CPU_MEMORYHOST_HH_ #define BE_COMPUTE_CPU_MEMORYHOST_HH_ /**************************************************************************************************/ #include <bugengine/plugin.compute.cpu/stdafx.h> #include <bugengine/sch...
#include "OITimeToolOutputBuilder.h" #include "common/Exception.h" #include <sstream> namespace s2j { namespace printer { const std::string OITimeToolOutputBuilder::FORMAT_NAME = "oitt"; std::string OITimeToolOutputBuilder::dump() const { // mimic orginal oititmetools' output std::stringstream ss; ss <<...
#include "Arduino.h" #include <queue.h> Queue<int> test_queue(10); void setup(){ Serial.begin(115200); } void loop(){ for(int i=0; i<10; i++){ Serial.println("Hello World"); delay(500); } }
/*!======================================================= | | | test_finite_difference.cpp | | | ------------------------------------------------------- | The unit test file for fi...
/* service_base.cc Jeremy Barnes, 29 May 2012 Copyright (c) 2012 Datacratic. All rights reserved. Service base. */ #include "service_base.h" #include <iostream> #include "soa/service/carbon_connector.h" #include "zookeeper_configuration_service.h" #include "jml/arch/demangle.h" #include "jml/utils/exc_asser...
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the Qt Designer of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commerci...
/* * Copyright 2021 The casbin 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 ...
/*************************************************************************** * Copyright 1998-2018 by authors (see AUTHORS.txt) * * * * This file is part of LuxCoreRender. * * ...
// Copyright (C) 2018 ETH Zurich // Copyright (C) 2018 UT-Battelle, LLC // All rights reserved. // // See LICENSE for terms of usage. // See CITATION.md for citation guidelines, if DCA++ is used for scientific publications. // // Author: Peter Staar (taa@zurich.ibm.com) // // Mirror alpha beta. #ifndef DCA_PHYS_DOMAIN...
#include <iostream> #include "fasta.hh" #include <iomanip> using namespace std; inline int max2(int a, int b) { return (a > b) ? a : b; } inline int max3(int a, int b, int c) { int maxl = (a > b) ? a : b; return (maxl > c) ? maxl : c; } inline int max4(int a, int b, int c, int d) { int maxl = (a > b) ? a : b...
// Copyright (c) 2016 Thomas Heller // Copyright (c) 2016-2022 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) // // This code is based on boost::iterators...
#include "spreduce.hpp" #ifndef _SPTL_DATAPAR_H_ #define _SPTL_DATAPAR_H_ namespace sptl { /*---------------------------------------------------------------------*/ /* Max index */ template < class Item, class Comp, class Get > size_type max_index(size_type n, const Item& id, const Comp& comp, const Get& ge...
//https://codeforces.com/contest/913/problem/C #include"bits/stdc++.h" using namespace std; class fraccion{ public : long long a , b; fraccion(long long num , long long den ){ this->a = num; this->b = den; } }; bool operator<( const fraccion f1 , const fraccion f2 ){ return ( f1.a * f2.b < f1.b *f2.a); } priorit...
// Fill out your copyright notice in the Description page of Project Settings. #include "BBServiceDuctComponent.h" #include "BBRoomBase.h" #include "BBPlayerCharacterBase.h" #include "BBLevel.h" bool UBBServiceDuctComponent::CanUse(ABBCharacterBase* Character) { UBBRoomFunctionComponent* OtherServiceDuct = GetOtherS...
/// @copyright /// Copyright (C) 2020 Assured Information Security, Inc. /// /// @copyright /// 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 limita...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_81_bad.cpp Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-81_bad.tmpl.cpp */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: S...
//******************************************************************* // // License: See top level LICENSE.txt file. // // Author: David Burken (dburken@imagelinks.com) // // Description: // // Contains class definition for InterleaveTypeLUT. //******************************************************************* // ...
/* * Copyright (c) 2013-2022, The PurpleI2P Project * * This file is part of Purple i2pd project and licensed under BSD3 * * See full license text in LICENSE file at top of project tree */ #include <cstdlib> #include <string> #include <boost/asio.hpp> #include "util.h" #include "Log.h" #if not defined (__FreeBSD__) ...
#include "mjolnir/admin.h" #include "baldr/datetime.h" #include "midgard/logging.h" #include <boost/filesystem/operations.hpp> namespace valhalla { namespace mjolnir { // Get the dbhandle of a sqlite db. Used for timezones and admins DBs. sqlite3 * GetDBHandle(const std::string& database) { // Initialize the admi...
class Solution { public: bool compare(TreeNode* left, TreeNode* right) { // 首先排除空节点的情况 if (left == NULL && right != NULL) return false; else if (left != NULL && right == NULL) return false; else if (left == NULL && right == NULL) return true; // 排除了空节点,再排除数值不相同的情况 els...
/* * Copyright (c) 2020, Sunanda Bose (a.k.a. Neel Basu) * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "dhyara/tools/ping.h" #include <inttypes.h> dhyara::tools::ping::ping(dhyara::network& ...
/** * @file communications.cpp * */ #include <stdint.h> #include "can_protocols/fault_can_protocol.h" #include "can_protocols/throttle_can_protocol.h" #include "communications.h" #include "debug.h" #include "globals.h" #include "mcp_can.h" #include "oscc_can.h" #include "throttle_control.h" #include "vehicles.h" ...
// $Id: Intrusive_List_Node.cpp 14 2007-02-01 15:49:12Z mitza $ #ifndef ACE_INTRUSIVE_LIST_NODE_CPP #define ACE_INTRUSIVE_LIST_NODE_CPP #include "ace/Intrusive_List_Node.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ #if !defined (__ACE_INLINE__) #include "ace/Intrusive_Lis...
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by the CEF translato...
#include <stdio.h> int main(void) { int n; long long int sum; while(EOF != scanf("%d", &n) && n >= 0) { sum = 1; sum += (long long)n*(long long)(1+n)/2; printf("%lld\n", sum); } return 0; }
#include "GAMER.h" #ifdef SUPPORT_LIBYT //------------------------------------------------------------------------------------------------------- // Function : YT_SetParameter // Description : Set YT-specific parameters for the inline analysis // // Note : 1. This function must be called in advance **...
// Copyright (c) 2015-2018 William W. Fisher (at gmail dot com) // This file is distributed under the MIT License. #include "ofp/mpexperimenter.h" #include "ofp/multipartrequest.h" #include "ofp/writable.h" using namespace ofp; const MPExperimenter *MPExperimenter::cast(const MultipartRequest *req) { return req->...
template <typename T> void opuInitodg(T *f, T *xdg, T *uinf, T *param, int modelnumber, int ng, int ncx, int nce, int npe, int ne) { } template void opuInitodg(double *, double *, double *, double *, int, int, int, int, int, int); template void opuInitodg(float *, float *, float *, float *, int, int, int, int, int, in...
#ifndef BOOST_METAPARSE_ITERATE_C_HPP #define BOOST_METAPARSE_ITERATE_C_HPP // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013. // 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 <boost/met...
// // Created by Krzysztof Gonciarz on 6/25/18. // #include <gtest/gtest.h> #include "data_structures/Mesh/PixelData.hpp" //TODO: only APRAccess.hpp should be included here but currently because of dependencies it does not work :( #include "data_structures/APR/APR.hpp" #include "algorithm/APRConverter.hpp" //#include ...
/** * Copyright (C) 2014 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 u...
// Copyright (c) 2012-2013 The Bitcoin Core developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2018 The MNEXcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "merkleblock.h" #in...
#include "token.h" #include "src/common.h" namespace tanlang { bool check_typename_token(Token *token) { return is_string_in(token->get_value(), TYPE_NAMES); } static vector<str> TERMINAL_TOKENS{";", "}", ")", ":", ",", "]"}; static vector<str> ARITHMETIC_TOKENS{"+", "-", "*", "/", "%"}; bool check_terminal_token...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/sksl/SkSLIRGenerator.h" #include "limits.h" #include <iterator> #include <memory> #include <unordered_set> #include "include/private/SkTArray.h" #include "src/...
#include <chrono> #include <cstdint> #include <string> #include <vector> #include "envoy/common/exception.h" #include "envoy/config/core/v3/base.pb.h" #include "envoy/stream_info/stream_info.h" #include "source/common/common/logger.h" #include "source/common/common/utility.h" #include "source/common/formatter/substit...
#include <iostream> #include <string> #include <math.h> using namespace std; int main(){ cout<<"I'm gonna WIN!"<<endl<<"I'm gonna WIN!"<<endl<<"I'm gonna WIN!"; return 0; }
/*========================================================================= Program: ParaView Module: pqFieldSelectionAdaptor.cxx Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms of...
/***************************************************************************/ /** ** @file erosion.cpp ** @brief Functions for equilibrium checking, sediment transport, ** bed erosion (detachment), physical and chemical ** weathering, and debris flow objects. ** ** tEquilibCheck ** Trans...
#include <iostream> #include <vector> using namespace std; int main() { vector<unsigned> scores(11, 0); unsigned grade; while (cin >> grade) { if (grade <= 100) *(scores.begin() + grade / 10) += 1; } return 0; }
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
#include <dipsy/udpchannel.hpp> using dipsy::UdpChannel; namespace dipsy { }
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: int getDecimalValue(L...
#include <MAX17055.h> #include <Wire.h> // Constructors MAX17055::MAX17055(void) { //doesn't need anything here } MAX17055::MAX17055(uint16_t batteryCapacity) { //calcuation based on AN6358 page 13 figure 1.3 for Capacity, but reversed to get the register value writeReg16Bit(DesignCap, batteryCapacity*2); }...
#pragma once #include "gunAttacks.hpp" #include "ECS/Components/audioComponents.hpp" #include "ECS/Components/charactersComponents.hpp" #include "ECS/Components/physicsComponents.hpp" #include "ECS/Components/objectsComponents.hpp" #include "ECS/Components/graphicsComponents.hpp" #include "ECS/Components/itemComponent...
/* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2019 // // 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 "td/utils/HttpUrl.h" #include "td/utils/format.h" #...
/* * Plugin.cpp * * A plugin for the Engine API */ #include "Plugin.h" using namespace openapi; // macro should do the same job. Not really // OPENAP_JSON_CONVERT_FUNCS(Plugin, Id, Name, Enabled, Settings, PluginReference, Config) void Plugin::ToJSON(Json & j) const { // OPENAPI_FOR_EACH(OPENAPI_TO_JSON_MEM...
// 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 "src/compiler/backend/code-generator.h" #include "src/assembler-inl.h" #include "src/callable.h" #include "src/compiler/backend/code-generator...
/* * ===================================================================================== * * Filename: uxpm.cpp * * Description: UXpm implement * * Version: 1.0 * Created: 2009-8-10 17:32:58 * Revision: none * Compiler: gcc * * Author: huys (hys), huys03@g...
#include <memory> #include "EB.H" #include "prob.H" #include "Utilities.H" #if defined(AMREX_USE_CUDA) || defined(AMREX_USE_HIP) #include <thrust/unique.h> #include <thrust/sort.h> #include <thrust/execution_policy.h> #endif inline bool PeleC::ebInitialized() { return eb_initialized; } void PeleC::init_eb( cons...
#include <bits/stdc++.h> #define pb push_back #define mp make_pair #define speed \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0) using namespace std; void __print(int x) { cerr << x; } void __print(long x) { cerr << x; } void __print(long long...