text
stringlengths
5
1.04M
#include <catboost/libs/train_lib/train_model.h> #include <catboost/libs/algo/features_layout.h> #include <catboost/libs/options/plain_options_helper.h> #include <library/unittest/registar.h> #include <library/json/json_reader.h> #include <util/random/fast.h> #include <util/generic/vector.h> Y_UNIT_TEST_SUITE(TTrain...
// ========================================================================== // Munin Button. // // Copyright (C) 2011 Matthew Chaplain, All Rights Reserved. // // Permission to reproduce, distribute, perform, display, and to prepare // derivitive works from this file under the following conditions: // // 1. A...
/* * Copyright (c) 2008, Alberto Alonso * * 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 * ...
// Copyright (c) 2021 Vitaly Dikov // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt) #include"locator.hpp" namespace game { namespace global { using namespace std; global::Factory Locator::factor...
#include<bits/stdc++.h> using namespace std; int AddN(int n) { if(n==0) { return 0; } int presum = AddN(n-1); return n + presum; } int main() { #ifndef ONLINE_JUDGE freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); #endif int n; cin>>n; cout<<AddN(n); ...
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "services/audio/stream_factory.h" #include <utility> #include "base/bind.h" #include "base/strings/stringprintf.h" #include "base/trace_event/t...
/** * @file */ #include "src/expression/Generic.hpp" #include "src/visitor/all.hpp" birch::Generic::Generic(const Annotation annotation, Name* name, Type* type, Location* loc) : Expression(loc), Annotated(annotation), Named(name), Typed(type) { // } birch::Generic::~Generic() { // } birch:...
/* * Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibJS/Runtime/WeakSet.h> namespace JS { WeakSet* WeakSet::create(GlobalObject& global_object) { return global_object.heap().allocate<WeakSet>(global_object, *global_object.weak_set_pro...
// Copyright 2021 Michael Both // // 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...
/****************************************************************************** * $Id$ * * Project: MapServer * Purpose: OpenGIS Web Mapping Service support implementation. * Author: Steve Lime and the MapServer team. * ****************************************************************************** * Copyrig...
// TAVL -*- C++ -*- // BSD 3-Clause License // Copyright (c) 2018-2019, wxr001 // 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 copyri...
/**************************************************************************** * * Copyright (c) 2013-2016 PX4 Development Team. 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. Red...
#include"../../include/fast_io.h" #include"../../include/fast_io_device.h" #include"../../include/fast_io_legacy.h" int main() { fast_io::c_file cf(fast_io::io_cookie,"wb",fast_io::out); fprintf(cf.native_handle(),"Hello World from fprintf, number: %d\n",5); println(cf,"Hello World from fast_io::println, number: ",...
// 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 "base/bind.h" #include "base/callback.h" #include "base/files/file_util.h" #include "base/logging.h" #include "base/path_service.h" #include "bas...
/* Problem Statement: https://leetcode.com/problems/excel-sheet-column-number/ Time: O(n) Space: O(1) Author: Mohammed Shoaib, github.com/Mohammed-Shoaib */ class Solution { public: int titleToNumber(string s) { return accumulate(s.begin(), s.end(), 0, [](int& num, char& c) { return 26 * num + (c - 'A' + 1); }...
#include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/random.hpp> #include "Generators\NameGenerator.h" #include "Generators\ColorGenerator.h" #include "CivilianNPC.h" CivilianNPC::CivilianNPC() : NPC(NameGenerator::GetRandomName(), "", (NPC::Shape)glm::linearRand(0, (int)NPC::Shape::COUNT - 1), ...
#include "pages/Pages.h" #include "setup-html.h" #include <LinkedList.hpp> #include <WifiHandler.hpp> String setupProcessor(const String &var) { String selected = F("selected"); String checked = F("checked"); if (var == A_admin_password) return String(appcfg.admin_password); // Wifi if (var == "wifi_mo...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__char_listen_socket_vprintf_74b.cpp Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-74b.tmpl.cpp */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: li...
#include "integer.hpp" class Integer : public node::ObjectWrap { public: static void Init(v8::Local<v8::Object> exports, v8::Local<v8::Object> module) { v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8::HandleScope scope(isolate); v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(isolate, New)...
#include "time.h" #include <iostream> time::time() { this->time_init(); } time::~time() { delete this->pq; } int time::time_init() { this->pq = new pq_t(); this->time_update(); } void time::handle_expire_time_ns() { while (!this->pq->pq_is_empty()) { this->time_update(); time_n_t*...
#include "MSXRTC.hh" #include "SRAM.hh" #include "RP5C01.hh" #include "serialize.hh" #include "unreachable.hh" #include "memory.hh" namespace openmsx { MSXRTC::MSXRTC(const DeviceConfig& config) : MSXDevice(config) , sram(make_unique<SRAM>(getName() + " SRAM", 4 * 13, config)) , rp5c01(make_unique<RP5C01>( getCo...
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> #include<iomanip> #include<algorithm> #include<stack> #include<vector> #define ri register int #define ll long long using namespace std; const int MAXN=10005; const int INF=0x7fffffff/2; struct node{int to,val;}; vector<node>a[MAXN]; int n,m,dist[MAX...
/* * 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 ...
/* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */ /********************************************************************* Copyright 1999-2007, University of Cincinnati. All rights reserved. By using this software the USER indicates that he or she has read, understood and will comply with the f...
/* * 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 ...
/****************************************************************************** * Copyright 2019 The Apollo 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 ...
// Copyright (c) 2017 Ajai V George // Copyright (c) 2020 Akhil J Nair // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <hpx/config.hpp> #include <hpx/runtime.hpp...
/////////////////////////////////////////////////////////////////////////////// // NAME: DeleteFile.cpp // // AUTHOR: Ethan D. Twardy <edtwardy@mtu.edu> // // DESCRIPTION: The operation that deletes a file. // // CREATED: 09/10/2019 // // LAST EDITED: 09/11/2019 //// #include <SortM...
/* Copyright 2016 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 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/* * Copyright 1999-2002,2004 The Apache Software 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 requir...
//%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...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
#include <ncurses.h> #include <pybind11/pybind11.h> void game() { initscr(); // start ncurses mode printw("Hello, snek!"); // print hello world refresh(); // print it on the real screen getch(); // wait for user input endwin(); ...
/* Copyright 2018 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) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <memory> #include <string> #include <vector> #include <algorithm> #include <utility> #include <format_reader_ptr.h> #include <samples/slog.hpp> #include "inputs_filling.hpp" using namespace InferenceEngine; #ifdef USE_O...
#include <captain_interface/UDPInterface/UDPInterface.h> #include <iostream> #include <boost/asio.hpp> #include <stdio.h> #include <boost/thread.hpp> #include <boost/array.hpp> //boost::asio::ip::tcp::socket* tcpSocket; boost::thread* readThread; boost::array<char, 256> rbuf; //receive buffer // Constructor UDPInter...
/* * SPDX-License-Identifier: Apache-2.0 * Copyright(c) 2020 Liu, Changcheng <changcheng.liu@aliyun.com> */ #include "mempool/mempool.h" #include "buffer/buffer_raw_malloc.h" #include "buffer/buffer_raw_posix_aligned.h" #include "buffer/buffer_raw_char.h" #include "buffer/buffer_raw_claimed_char.h" #include "buffer...
#include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkPointData.h> #include <vtkIdTypeArray.h> #include <vtkInformation.h> #include <vtkPointSource.h> #include <vtkExtractSelection.h> #include <vtkSelection.h> #include <vtkSelectionNode.h> #include <vtkPolyData.h> #include <vtkUnstructuredGrid.h> #include <...
// Copyright (c) 2014-2018, 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 the above copyright notice, this list of /...
/* * Copyright (c) 2012 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...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
namespace Gecode { namespace String { namespace Branch { forceinline LenBlockMin_LLLM::LenBlockMin_LLLM(Home home, ViewArray<String::StringView>& x0) : StringBrancher(home, x0) {}; forceinline LenBlockMin_LLLM::LenBlockMin_LLLM(Home home, LenBlockMin_LLLM& b) : StringBrancher(home, b, b.start...
/*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...
/* g, i | @g, %1 (ID: 0, 4) | mem2reg */ int *g; void foo() { *g = 99; } int main() { int i = 42; g = &i; foo(); return 0; }
#include "Menu.hpp" #include "Common.hpp" #include "Level.hpp" namespace menu { enum class Screen { Main, LevelSelect, Options }; Screen currentScreen = Screen::Main; const Rectangle titleTexArea(193, 9, 312, 150); const Rectangle levelSelectTexArea(204, 166, 282, 50); const Rectangle uiPlayTexArea(...
// license:BSD-3-Clause // copyright-holders:Phil Bennett /*************************************************************************** Sega Super Derby II hardware preliminary driver by Phil Bennett Games supported: * Super Derby II TODO: Add PCB layouts PCBs: 834-5526? - Main PCB? (Has ye...
/* * Copyright 2018 LE GARREC Vincent * * 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) Valentin V. Bartenev */ #include "ctpp2_process.h" #include <ctpp2/CTPP2Util.hpp> #include <ctpp2/CTPP2JSONParser.hpp> #include <ctpp2/CTPP2OutputCollector.hpp> #include <ctpp2/CTPP2Logger.hpp> #include <ctpp2/CTPP2VMDebugInfo.hpp> #include <ctpp2/CTPP2VMStackException.hpp> #include <ctpp2/CTPP...
//%2005//////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; // IBM Corp.; EMC Cor...
// // CI Hello World // // Copyright (C) 2017 Assured Information Security, Inc. // Author: Rian Quinn <quinnr@ainfosec.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 witho...
// 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 <errno.h> #include <fcntl.h> #include <fuchsia/logger/llcpp/fidl.h> #include <lib/syslog/global.h> #include <lib/zx/socket.h> #include <poll.h> #i...
/* * 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) 2020 Julian Bernhard, Klemens Esterle, Patrick Hart and // Tobias Kessler // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #ifndef MODULES_WORLD_ROADGRAPH_HPP_ #define MODULES_WORLD_ROADGRAPH_HPP_ #include <boost/graph/adjacency...
/**************************************************************************** ** ** Copyright (C) 2014 Kurt Pattyn <pattyn.kurt@gmail.com>. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtWebSockets module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** License...
#include <iostream> // std::cout #include <fstream> // std::ifstream, std::ofstream #include <filesystem> // std::filesystem #include <string> // std::string #include <chrono> // std::chrono // For External Library #includ...
//////////////////////////////////////////////////////////////////////////////// // ConcreteTaskManager.cpp (Leggiero/Modules - Task) // // Real Task Manager Implementation //////////////////////////////////////////////////////////////////////////////// // My Header #include "_Internal/_ConcreteTaskManager.h" // Sta...
// Copyright (c) 2017-2018 Parsa Amini // // 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) #if !defined(PHYLANX_PRIMITIVES_POWER_OPERATION) #define PHYLANX_PRIMITIVES_POWER_OPERATION #include <phylanx/config.hpp> #...
/* MIT License * * Copyright (c) 2019 - 2022 Andreas Merkle <web@blue-andi.de> * * 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 ...
#include "ocLog.h"
/* Bullet Continuous Collision Detection and Physics Library, http://bulletphysics.org Copyright (C) 2006, 2007 Sony Computer Entertainment Inc. 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...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: Org.BouncyCast...
/* * TestBase.cpp * * Created on: 31 Oct 2017 * Author: julianporter */ #include "TestBase.hpp" #include <iostream> namespace test { int ConversionTestBase::push(double error,double threshold) { errors.push_back(error); return (error>threshold) ? 1 : 0; } void ConversionTestBase::testAction() { for(au...
// Copyright (c) 2011-2018 The Pocketcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <interfaces/node.h> #include <qt/trafficgraphwidget.h> #include <qt/clientmodel.h> #include <QPainter> #include ...
/* Copyright 2018 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...
//*********************************************************************** // program to merge Landsat image image over a period // //*********************************************************************** #include "stdafx.h" #include <iostream> #include "MedianImage.h" using namespace std; using n...
/** \class RecHitFilter ** simple filter of EcalRecHits ** ** \author Shahram Rahatlou, University of Rome & INFN, May 2006 ** ***/ #include "DataFormats/Common/interface/Handle.h" #include "DataFormats/EcalDetId/interface/EBDetId.h" #include "DataFormats/EcalRecHit/interface/EcalRecHit.h" #include "DataFormat...
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/log_reader.h" #include <stdio.h> #include "unikv/env.h" #include "util/coding.h" #include...
/* * 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 ...
/* ----------------------------------------------------------------------------- * This file is a part of the UNIVIO project: https://github.com/nvitya/univio * Copyright (c) 2022 Viktor Nagy, nvitya * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be h...
// Copyright (c) 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 "chrome/browser/taskbar/taskbar_decorator_win.h" #include <objbase.h> #include <shobjidl.h> #include <wrl/client.h> #include <memory> #incl...
#include "ZFImpl_sys_Qt_ZFCore_impl.h" #include "ZFCore/protocol/ZFProtocolZFImplOutput.h" #include "ZFCore/ZFString.h" #if ZF_ENV_sys_Qt #include <QDebug> #include <QMutex> ZF_NAMESPACE_GLOBAL_BEGIN ZFPROTOCOL_IMPLEMENTATION_BEGIN(ZFImplOutputImpl_sys_Qt, ZFImplOutput, ZFProtocolLevel::e_SystemHigh) ZFPROTOCOL_...
/*************************************************************************** * copyright : (C) 2008 by Serkan Kalyoncu copyright : (C) 2008 by Scott Wheeler email : wheeler@kde.org ***************************************************************************/ /********************...
/* * Copyright 2019 Xilinx, 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 t...
// Copyright (c) 2011-2015 The Bitcoin developers // Copyright (c) 2016-2019 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletview.h" #include "addressbookpage.h" #include "bip38tooldialog.h" ...
#include "image_processing.h" #include <numeric> #include <cfloat> #include <iostream> #include <Eigen/LU> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" namespace ImageProcessing { template <typename Scalar> Scalar crop(Scalar x, Scalar min...
#ifndef CAFFE_NET_HPP_ #define CAFFE_NET_HPP_ #include <map> #include <set> #include <string> #include <utility> #include <vector> #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/layer.hpp" #include "caffe/proto/caffe.pb.h" namespace caffe { /** * @brief Connects Layer%s together into a direc...
// Copyright (c) 2011-2016 The Uscoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "guiutil.h" #include "uscoinaddressvalidator.h" #include "uscoinunits.h" #include "qvalidatedlineedit.h" #include "w...
#include "ChangeHeaderWnd.h" #include "NoweGlobal.h" #include <QDesktopWidget> #include <QBuffer> #include <QXmppVCardManager.h> ChangeHeaderWnd::ChangeHeaderWnd(QWidget *parent) : QWidget(parent, Qt::FramelessWindowHint) { ui.setupUi(this); ui.horizontalSlider->setEnabled(false); QDesktopWidget *des...
#include <chrono> #include <cstddef> #include <iomanip> #include <iostream> #include <limits> #include <memory> #include <mutex> #include <random> #include <string> #include <thread> #include <vector> #include <fstream> #include <iostream> #include <list> #include <vector> //#define poly_mod 2048 // #define poly_mod...
/*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...
/* module: cvrout.c purpose: cube and cover output routines */ #include <ostream> #include "espresso.h" void fprint_pla(std::ostream& fp, pPLA PLA, int output_type) { int num; pcube last, p; if ((output_type & CONSTRAINTS_type) != 0) { output_symbolic_constraints(fp, PLA, 0); output_type &= ~ C...
// 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/codegen/macro-assembler.h" #include "src/compiler/backend/instruction-scheduler.h" namespace v8 { namespace internal { namespace compiler...
#ifndef HMLIB_ITERATORS_INTEGERITERATOR_INC #define HMLIB_ITERATORS_INTEGERITERATOR_INC 100 # #include<utility> #include<iterator> namespace hmLib { template<typename T> struct integer_iterator { private: using this_type = integer_iterator<T>; public: using value_type = T; using difference_type = decltype(std...
/* * Copyright 2015 The Etc2Comp 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 l...
/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Vladimír Vondruš <mosra@centrum.cz> Copyright © 2015 Jonathan Hale <squareys@googlemail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of ...
#include <bits/stdc++.h> using namespace std; int arr[102],N,n,ind=1,cnt=0; unordered_map<string,int> mp; string str; int main(){ cin >> N; for(int i = 1; i <= N; i++){ cin >> str; if(mp[str]){ n = mp[str]; }else{ mp[str] = n = ind++; } ...
// 4.12.2 dither_algorithm=2 alpha_dither=yes layout_rotation=0 opaque_image_format=RGB565 non_opaque_image_format=ARGB8888 section=ExtFlashSection extra_section=ExtFlashSection generate_png=no 0x3449ba05 // Generated by imageconverter. Please, do not edit! #include <touchgfx/hal/Config.hpp> LOCATION_PRAGMA("ExtFlash...
/* * Copyright (c) 2012 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 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Sample.h" #include "SkBlurMask.h" #include "SkCanvas.h" #include "SkGradientShader.h" #include "SkGraphics.h" #include "SkMaskFilter.h" #include "SkPath.h" #include ...
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file doubleBitMask.cxx * @a...
/** * Demo program for mat exercise. * * Author: Tal Zichlinsky * Since : 2022-01 */ #include "mat.hpp" #include <iostream> #include <stdexcept> using namespace std; int main() { cout << ariel::mat(9, 7, '@', '-') << endl; /* Should print: @@@@@@@@@ @-------@ @-@@@@@-@ @-@---@-@ @-@@@@@-@ @-------@ @@@@@@@@@...
//----------------------------------------------------------------------------- // // ApplicationStatus.cpp // // Implementation of the Z-Wave COMMAND_CLASS_APPLICATION_STATUS // // Copyright (c) 2010 Mal Lansell <openzwave@lansell.org> // // SOFTWARE NOTICE AND LICENSE // // This file is part of OpenZWave. // // OpenZ...
#include <iostream> #include <type_traits> #include<memory> #include<string> #include<vector> struct MovableType { MovableType() { int i = 1; } MovableType(MovableType &&) { int i = 1; } MovableType& operator =(MovableType &&) { int i = 1; } }; struct CopyType { CopyType(...
//Added by Deriscope #ifndef quantlib_oiswapds_hpp #define quantlib_oiswapds_hpp #include <ql/instruments/swap.hpp> #include <ql/time/daycounter.hpp> #include <ql/time/businessdayconvention.hpp> #include <ql/time/calendar.hpp> #include <ql/time/schedule.hpp> #include <ql/indexes/oiswapindexds.hpp> namespace QuantLib...
/*! * @copyright * Copyright (c) 2015-2019 Intel Corporation * * @copyright * 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 * * @copyright * http://www.apache.org/licenses/LICENSE-...
// // Project Name: KratosPfemFluidApplication $ // Created by: $Author: AFranci $ // Last modified by: $Co-Author: $ // Date: $Date: September 2016 $ // Revision: $Revision: 0.0 $ // // #if !defined(KRATOS_MODEL_START_END...
/** * 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...
//==------ usm_allocator.hpp - SYCL USM Allocator ------*- C++ -*-----------==// // // 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 // // ===--------------------------...
/******************************************************************************** Copyright (c) 2015, TRACLabs, 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 cod...