text
stringlengths
7
961k
// Geometric Tools, LLC // Copyright (c) 1998-2014 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // // File Version: 5.0.1 (2010/10/01) #include "Wm5MathematicsPCH.h" #include "Wm5BSplineGeodesic.h" ...
/*========================================================================= * * 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 * * h...
// Source : https://leetcode.com/problems/word-break-ii/ // Author : henrytien // Date : 2022-02-03 /***************************************************************************************************** * * Given a string s and a dictionary of strings wordDict, add spaces in s to construct a sentence * where each...
/** * @file SerialNumberSignatureOfKnowledge.cpp * * @brief SerialNumberSignatureOfKnowledge class for the Zerocoin library. * * @author Ian Miers, Christina Garman and Matthew Green * @date June 2013 * * @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green * @license This pr...
// Copyright (c) 2007-2017 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) #include <hpx/affinity/parse_affinity_options.hpp> #include <hpx/assertion.hpp> #...
/* * Qt4 bitcoin GUI. * * W.J. van der Laan 2011-2012 * The Bitcoin Developers 2011-2012 */ #include "bitcoingui.h" #include "transactiontablemodel.h" #include "addressbookpage.h" #include "sendcoinsdialog.h" #include "signverifymessagedialog.h" #include "optionsdialog.h" #include "aboutdialog.h" #include "clientm...
//----------------------------------*-C++-*----------------------------------// /*! * \file mesh/Draco_Mesh.hh * \author Ryan Wollaeger <wollaeger@lanl.gov> * \date Thursday, Jun 07, 2018, 15:38 pm * \brief Draco_Mesh class header file. * \note Copyright (C) 2018-2019 Triad National Security, LLC. * ...
#include<iostream> #include<fstream> #include<vector> #include<sstream> #include<map> #include<set> #include<string> #include<cstdlib> using namespace std; using line_no = vector<string>::size_type; vector<string> file; map<string, set<line_no>> vm; string cleanup_str(const string &word) { string ret; for(auto it ...
/* * Copyright (C) 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
#include "il2cpp-config.h" #include "utils/PathUtils.h" #include <string> namespace il2cpp { namespace utils { namespace PathUtils { std::string BasenameNoExtension(const std::string& path) { if (path.empty()) return "."; std::string base = Basename(path); const size_t pos...
#include "precompiled.h" extern "C" HA_SYMBOL_EXPORT MixinInfoMap& getMixins() { static MixinInfoMap data; return data; } MixinInfoMap& getMixins_Local() { return getMixins(); } int registerMixin(cstr name, MixinInfo info) { getMixins()[name] = info; return 0; } extern "C" HA_SYMBOL_EXPORT GlobalInf...
// From: https://raw.githubusercontent.com/tcbrindle/span/master/include/tcb/span.hpp /* This is an implementation of C++20's std::span http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4820.pdf */ // Copyright Tristan Brindle 2018. // Distributed under the Boost Software License, Version 1.0. // (S...
/*************************************************************** * * Copyright (C) 1990-2011, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
#include "os/input.hpp" #include "os/util.hpp" #include <avr/io.h> using os::input::Button; using os::util::Port; using os::util::set_mask; using os::util::clear_mask; // Port the buttons are connected to constexpr Port* input_ddr = &DDRD; constexpr Port* input_port = &PORTD; constexpr Port* input_pin = &PIND; // Ma...
// In this example we draw a Peter de Jong Attractor. // // To learn more about attractors, see Wikipedia: // www.wikipedia.org/wiki/Attractor // // To learn more about the Peter de Jong Attractor, see: // paulbourke.net/fractals/peterdejong/ // // // We will generate the attractor using a histogram, // decreasing ...
// // Created by Kangkang Jiang on 2020/3/8. // // #define R_BUILD #ifdef R_BUILD #include <Rcpp.h> #include <RcppEigen.h> // [[Rcpp::depends(RcppEigen)]] using namespace Rcpp; #else #include <Eigen/Eigen> #endif #include <iostream> using namespace std; void Normalize(Eigen::MatrixXd &X, Eigen::VectorXd &y, Eigen::Ve...
/* ardubson.h - Library for the BSON (Binary-JSON) format. Created by Hugo Arganda (argandas), April 6, 2016. Released into the public domain. */ #include "ardubsonDocument.h" #include "ardubsonTypes.h" #include "ardubsonConfig.h" // #include "IEEE754tools.h" // Private Methods ///////////////////////////////////...
#pragma once #include <type_traits> #include "../meta/void_t.hpp" // http://en.cppreference.com/w/cpp/experimental/is_detected namespace nlohmann { namespace detail { struct nonesuch { nonesuch( ) = delete; ~nonesuch( ) = delete; nonesuch(nonesuch const&) = delete; nonesuch(nonesuch const&&) = delete...
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2010-2012 Oleg Linkin * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organiz...
class Solution { public: double average(vector<int>& salary) { int _min = INT_MAX, _max = INT_MIN; int res = 0; for (auto a: salary) { res += a; if (a < _min) _min = a; if (a > _max) _max = a; } return (double)(res - _min - _max) / (salary....
/* // Copyright (c) 2018 Intel Corporation // // 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, p...
// usb_serial.cpp : This file contains the 'main' function. Program execution begins and ends there. // // usb_test_cons.cpp : Defines the entry point for the console application. // // See https://stackoverflow.com/questions/40775369/usb-serial-device-with-virtual-com-port-readfile-reads-zero-bytes-if-use-cre // See...
#include <iostream> #include <bits/stdc++.h> #include <sstream> #define FAST_IO ios_base::sync_with_stdio(false); cin.tie(NULL) #define endl "\n" #define CPrint(c) for(auto i:(c)) { cout<<i<<" "; } nl #define eb emplace_back #define ef emplace_front #define pb push_back #define pf push_front #define popb pop...
/** * Copyright 2004-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 law ...
#include "deletingvisitor.h" void melihovv::calculator::DeletingVisitor::visit(const Ast::Number* number) { visitNode(number); } void melihovv::calculator::DeletingVisitor::visit(const Ast::Negation* negation) { visitUnaryOperation(negation); } void melihovv::calculator::DeletingVisitor::visit(const Ast::Add...
#include <iostream> #include <vector> #include <cstring> #include <set> #include <unordered_map> #include<climits> #include <list> #include <queue> #include <algorithm> using namespace std; #define OJ \ freopen("input.txt", "r", stdin); \ freopen("output.txt", "w", stdout); #define F...
#pragma once #include <SFGUI/Config.hpp> #include <SFGUI/Widget.hpp> #include <SFGUI/Misc.hpp> #include <SFGUI/SharedPtr.hpp> #include <SFML/Graphics/Texture.hpp> namespace sfg { /** Image. */ class SFGUI_API Image : public Widget, public Misc { public: typedef SharedPtr<Image> Ptr; //!< Shared pointer. typed...
#include <CLuaLooting_Novus_ItemDetail.hpp> #include <common/ATFCore.hpp> START_ATF_NAMESPACE namespace Detail { Info::CLuaLooting_Novus_Itemctor_CLuaLooting_Novus_Item2_ptr CLuaLooting_Novus_Itemctor_CLuaLooting_Novus_Item2_next(nullptr); Info::CLuaLooting_Novus_Itemctor_CLuaLooting_...
// Copyright (c) 2011-present, Facebook, Inc. 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. An additional grant // of patent rights can be found in the PATENTS file in the same directory. #ifndef ROCKSDB_LIT...
#include <iostream> #include "audioIO.h" #define F0 15 // in Hz #define A 0.85 using namespace std; typedef struct { float f0; /* Frequenza del tremolo */ float alpha; /* Ampiezza del tremolo */ unsigned long idx; /* Indice per la sinusoide dell'LFO */ } myData; /* Tremolo ...
// Copyright 2020 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 <lib/fdio/directory.h> #include <lib/zx/vmo.h> #include <fs-management/format.h> #include <ramdevice-client/ramdisk.h> #include <zxtest/zxtest.h>...
/* * 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 source file is part of the tomviz project. Copyright Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software distributed u...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2005-2012. 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/interpr...
#include <ompl/base/ScopedState.h> #include "POSQSteering.h" bool POSQSteering::Steer(GNode_base *parent_node, GNode_base *successor) { // TODO check for collision? return true; } bool POSQSteering::Steer(const GNode_base *parent_node, const GNode_base *succ, Trajectory *traj) { auto *start = _space.allo...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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. #include <wallet/wallet.h> #include <chain.h> #include <chainparams.h> #include ...
#include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include <QDir> #include <QIntValidator> #include <QLocale> #include <QMessageBox> OptionsDialog::OptionsDialog(QWidget *parent) : QDialog(parent), ...
#ifndef _GL4CSHADERATOMICCOUNTEROPSTESTS_HPP #define _GL4CSHADERATOMICCOUNTEROPSTESTS_HPP /*------------------------------------------------------------------------- * OpenGL Conformance Test Suite * ----------------------------- * * Copyright (c) 2017 The Khronos Group Inc. * * Licensed under the Apache License,...
/* Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable 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...
/* * Copyright (c) 2016, The OpenThread Authors. * 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 ...
/** * MetriSCA - A side-channel analysis library * Copyright 2021, School of Computer and Communication Sciences, EPFL. * * All rights reserved. Use of this source code is governed by a * BSD-style license that can be found in the LICENSE.md file. */ #pragma once #include <cstdint> namespace metrisca { //...
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
#include <iostream> #include <iomanip> using namespace std; int cnt; int ans[10]; string x; string s[] = {"Re", "Pt", "Cc", "Ea", "Tb", "Cm", "Ex"}; int main() { while (cin >> x) { cnt++; for (int i=0; i<7; ++i) if (x == s[i]) ans[i]++; } for (int i=0; i<7; ++i) cout << fixed << setprecision(2) << s[...
/* * 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 ma...
/** * Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
#define CATCH_CONFIG_MAIN #include"catch.hpp" #include"A1.cpp" TEST_CASE("MaximumValueTest", "[A1]") { REQUIRE(A1::MaximumValue(2, 5, 3, 8, 1, 21, 34, 6, 0) == 34); } TEST_CASE("CommonIntegerElementsTest", "[A1]") { int nums1[] = { 1, 54, 125, 23, 644, 31, 5, 61 }; int nums2[] = { 125, 23, 2, 3, 1001, 2...
#include "alePCH.h" #include "Buffer.h" #include "Renderer.h" #include "AALife_Engine/Platform/OpenGL/OpenGLBuffer.h" namespace ale { VertexBuffer* VertexBuffer::Create(float* vertices, uint32_t size) { switch (Renderer::GetAPI()) { case RendererAPI::API::None: ALE_CORE_ASSERT(false, "RendererAPI::None i...
/** * Copyright 2021 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
// // Copyright (c) 2012-2018 Kris Jusiak (kris at jusiak dot net) // // 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) // #pragma once #include <string> #include <vector> #include "boost/di.hpp" template <class T>...
/* * 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...
// -*- C++ -*- /** * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3 * TAO and the TAO IDL Compiler have been developed by: * Center for Distributed Object Computing * Washington University * St. Louis, MO * USA * http://www.cs.wustl.edu/~schmidt/doc-center.html * and ...
#include "MeshImporter.h" #include "Assimp/include/scene.h" #include "Assimp/include/postprocess.h" #include "PanelInspector.h" #include "Application.h" #include "Globals.h" #include "ModuleFileSystem.h" #include "ModuleScene.h" #include "GameObject.h" #include "ComponentMesh.h" #include "ComponentMaterial.h" #includ...
/** @file SSL Preaccept test plugin Implements blind tunneling based on the client IP address The client ip addresses are specified in the plugin's config file as an array of IP addresses or IP address ranges under the key "client-blind-tunnel" @section license License Licensed to the Apache Software F...
/* ************************************************ username : smmehrab fullname : s.m.mehrabul islam email : mehrab.24csedu.001@gmail.com institute : university of dhaka, bangladesh session : 2017-2018 ************************************************ */ class Solution { public: bool isP...
// 21/12/15 = Wed // 18/02/10 = Sat // Exercise 7.24: Give your Screen class three constructors: a default // constructor; a constructor that takes values for height and width and // initializes the contents to hold the given number of blanks; and a // constructor that takes values for height, width, and a character t...
// Copyright Carl Philipp Reh 2009 - 2016. // 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 MIZUIRO_COLOR_TYPES_CHANNEL_VALUE_NS_TAG_HPP_INCLUDED #define MIZUIRO_COLOR_TYPES_CHANNEL_V...
/* \file SiStripSpyDisplayModule.cc * \brief File containing code for the SiStripMonitorFEDProcessing plugin module. */ // -*- C++ -*- // // Package: SiStripMonitorHardware // Class: SiStripSpyDisplayModule // // Standard #include <memory> #include <vector> #include <iostream> #include <string> #include <sstr...
/*============================================================================= Copyright (c) 2005-2010 Joel de Guzman Copyright (c) 2010 Eric Niebler Copyright (c) 2010 Thomas Heller Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http:...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <AzToolsFramework/Prefab/PrefabPublicRequestHandler.h> #include <AzCore/Asset/AssetManag...
#include "surfacefeaturesextractor.h" #include <vtkDoubleArray.h> #include <sstream> #include <vtkObjectFactory.h> #if !defined(M_PI) #define M_PI 3.14159265358979323846264338327950288 /* pi */ #endif vtkStandardNewMacro(SurfaceFeaturesExtractor); /** * Constructor SurfaceFeaturesExtractor() */ SurfaceFeaturesExt...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Sweat developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/foreach.hpp> #include <boost/tuple/tuple.hpp> using namespace std; u...
#pragma once #include "Utils.hpp" namespace Part2 { int solve(const vector<pair<size_t, size_t>> &spans); }
// Copyright 2021 the Autoware 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 applicable law or a...
#include "search.h" #include <QFile> #include <QDebug> void Search::Manage::save(QString videoName) { int idx = videoName.lastIndexOf("."); txtName = videoName.left(idx) + ".txt"; idx = txtName.indexOf("file://"); if(idx >= 0) txtName.replace(idx, 7, ""); qDebug() << txtName << "...........
#pragma once #include "IAppSystem.hpp" #include "../math/Vector2D.hpp" #include "../misc/Color.hpp" namespace vgui { typedef unsigned long HFont; typedef unsigned int VPANEL; }; enum FontFeature { FONT_FEATURE_ANTIALIASED_FONTS = 1, FONT_FEATURE_DROPSHADOW_FONTS = 2, FONT_FEATURE_OUTLINE_FONTS = 6, }; enum Fon...
#ifndef SLIC_VRML2WRITER_HH_ #define SLIC_VRML2WRITER_HH_ 1 #include <fstream> #include <iostream> #include <string> #include "G4RotationMatrix.hh" #include "G4ThreeVector.hh" class G4VPhysicalVolume; class G4Box; class G4VSolid; class G4Polyhedron; namespace slic { /** * @class VRML2Writer * @brief A simple, sta...
#include "../stdafx.h" namespace ReplNau::Ext { }
#pragma once #include <cstdint> #include <string> #include "disk.hpp" namespace zcpm { namespace terminal { class Terminal; } class Hardware; class Bios final { public: Bios(Hardware* p_hardware, terminal::Terminal* p_terminal); ~Bios(); bool is_bios(ui...
// CMS Tools: Global Save Data (Store a range of variables) // by PepsiOtaku // Version 2.0 #define AUTO_DLLMAIN #include <DynRPG/DynRPG.h> #include <stdio.h> #include <iostream> #include <fstream> using namespace std; int saveSlotID; int saveSlotOffset; unsigned short int varRangeStart; unsigned short int varRangeEn...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "gtest/gtest.h" #include "ngraph/ngraph.hpp" #include "util/type_prop.hpp" using namespace std; using namespace ngraph; TEST(type_prop, region_yolo_v2) { const size_t num = 5; const size_t coords = 4; const si...
/******************************************************************************* * Copyright 2019-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://...
#include "lpc.h" #include <iostream> #include <cassert> #include <map> using namespace lpc; using namespace lpc::parsers; using Test = std::function<void()>; #define ASSERT(value) if (!(value)) throw std::runtime_error(std::string(__FILE__) + ":" + std::to_string(__LINE__)) std::map<std::string, Test> tests = { ...
// Copyright (c) 2018 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...
/* Copyright 2019 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...
/* *题号: *时间: *解题思想: * */ //include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <cstdlib> #include <cstring> #include <string> #include <cstdio> #include <vector> #include <string> #include <stack> #include <queue> #include <cmath> #include <map> #include <set> #define F(i,a,b) for(int i = a;...
#ifndef COUNT_COMPLETE_TREE_NODES_HPP_ #define COUNT_COMPLETE_TREE_NODES_HPP_ #include "TreeNode.hpp" class CountCompleteTreeNodes { public: int countNodes(TreeNode *root); }; #endif // COUNT_COMPLETE_TREE_NODES_HPP_
#pragma once #include "resources/ResourcesManager.hpp" #include "Common.hpp" #include <array> /** \brief The library provides a few commonly-used resources without having to set them up or query them from the resources manager. \ingroup Resources */ class Library { public: static const std::array<glm::vec3, 6...
#include "blockchain.h" Blockchain::Blockchain() { chain.push_back(create_genesis_block()); } void Blockchain::add_new_block(std::string data) { const Block& previous_block = get_last_block(); uint_fast32_t index = previous_block.get_index() + uint_fast32_t(1); ...
#include <curses.h> #include <chrono> #include <string> #include <thread> #include <vector> #include "format.h" #include "ncurses_display.h" #include "system.h" using std::string; using std::to_string; // 50 bars uniformly displayed from 0 - 100 % // 2% is one bar(|) std::string NCursesDisplay::ProgressBar(float per...
// ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_TradeOption_Element_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------...
#include "test.h" namespace Groebner { std::random_device rd; std::mt19937 mt(rd()); void test_monomials() { Monomial m1; Monomial m2; if (m1 != m2) { throw std::runtime_error("Empty monomials should be equal."); } Monomial m3({2, 3, 4, 0}); Mon...
#include <string.h> #include <algorithm> #include <array> #include <map> #include <string> #include <tuple> #include <sstream> #include <fstream> #include <memory> #include <sys/stat.h> #include "utils.h" #include "bcc_usdt.h" namespace { std::vector<int> read_cpu_range(std::string path) { std::ifstream cpus_rang...
/*========================================================================= Program: ParaView Module: pqProxyEditorPropertyWidget.cxx Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms ...
/***************************************************************************** bedToBam.cpp (c) 2009 - Aaron Quinlan Hall Laboratory Department of Biochemistry and Molecular Genetics University of Virginia aaronquinlan@gmail.com Licenced under the GNU General Public License 2.0 license. ****************...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
/************************************************ Copyright (c) 2016, Xilinx, 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 noti...
/* gpe_editor_state.cpp This file is part of: GAME PENCIL ENGINE https://www.pawbyte.com/gamepencilengine Copyright (c) 2014-2021 Nathan Hurde, Chase Lee. Copyright (c) 2014-2021 PawByte LLC. Copyright (c) 2014-2021 Game Pencil Engine contributors ( Contributors Page ) Permission is hereby granted, free of charge, to...
// -*- C++ -*- // // Package: L1Trigger/DemonstratorTools // Class: GTTFileWriter // /**\class GTTFileWriter GTTFileWriter.cc L1Trigger/DemonstratorTools/plugins/GTTFileWriter.cc Description: Example EDAnalyzer class, illustrating how BoardDataWriter can be used to write I/O buffer files for hardware/firmw...
//=============================================================================== // @ IvVector2.cpp // // 3D vector class // ------------------------------------------------------------------------------ // Copyright (C) 2008-2015 by James M. Van Verth and Lars M. Bishop. // All rights reserved. // // Use of this sou...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
#ifndef qd_qd_hpp #define qd_qd_hpp qd_qd_hpp #include "locks/waitable_lock.hpp" #include "locks/pthreads_lock.hpp" #include "locks/tatas_lock.hpp" #include "locks/mutex_lock.hpp" #include "locks/futex_lock.hpp" #include "locks/mcs_futex_lock.hpp" #include "locks/mcs_lock.hpp" #include "locks/ticket_futex_lock.hpp" #...
/* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: Chiyuan Zhang, Soeren Sonnenburg, Bjoern Esser */ #include <set> #include <map> #include <vector> #include <algorithm> #include <shogun/evaluation/ClusteringEvaluation.h> #include <shogun/labels/MulticlassLabels.h> #incl...
#include <bits/stdc++.h> using namespace std; long getWays(long n, vector < long > c, long m){ long table[n+1][m]; for(int j=0; j<m; j++) table[0][j]=1; for(int i=1; i<n+1; i++) { for(int j=0; j<m; j++) { long x = (i-c[j]>=0) ? table[i-c[j]][j]:0; ...
/* * Copyright(c) 2019 Netflix, Inc. * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at https://www.aomedia.org/license/so...
#include "ymath.h" #include "string.h" #include "buffer.h" #include <util/system/sys_alloc.h> #include <util/system/sanitizers.h> TBuffer::TBuffer(size_t len) : Data_(nullptr) , Len_(0) , Pos_(0) { Reserve(len); } TBuffer::TBuffer(TBuffer&& b) noexcept : Data_(nullptr) , Len_(0) , Pos_(0)...
/*============================================================================= Copyright (c) 2001-2009 Hartmut Kaiser http://spirit.sourceforge.net/ 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 "EntitlementsStep.h" #include <QNetworkRequest> #include <QUuid> #include "minecraft/auth/AuthRequest.h" #include "minecraft/auth/Parsers.h" EntitlementsStep::EntitlementsStep(AccountData* data) : AuthStep(data) {} EntitlementsStep::~EntitlementsStep() noexcept = default; QString EntitlementsStep::describ...
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2001-2011 Hartmut Kaiser 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...
// RUN: %dexter #include <string.h> #define BUFSZ 32 int main() { int foo[BUFSZ]; int bar[BUFSZ]; memset(foo, 0, sizeof(foo)); for (int i = 0; i < BUFSZ; i++) bar[i] = 1; for (int i = 0; i < BUFSZ; i++) foo[i] += bar[i]; int sum = 0; // DexWatch('sum') for (int i = 0; i < BUFSZ; i++) // DexWa...
// Copyright (c) 2017-2018 The ARMR Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "addresstablemodel.h" #include "guiutil.h" #include "walletmodel.h" #include "wallet.h" #include "base58.h" #include <QFo...