text
stringlengths
7
961k
#include "quit.h" struct PlayUnit { bool bsamplerate; char szPlayMediaUrl[1024]; char szPlayAudioUrl[512]; void* pPlayProcess; PlayUnit() { bsamplerate = false; szPlayMediaUrl[0] = '\0'; szPlayAudioUrl[0] = '\0'; pPlayProcess = NULL; } bool PUCmp(const char* szMediaUrl,const char* szAudioUrl) { bo...
// Copyright (c) 2018, Projek Gallus // Copyright (c) 2017, SUMOKOIN // // 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 ...
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #include "BsLookupTable.h" #include "Math/BsMath.h" namespace bs { L...
/* Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed i...
// // MuCanvasContext2D.cpp // ciEjecta // // Created by Sean on 10/1/15. // // #include "MuCanvasContext2D.hpp" #include "MuCanvasManager.hpp" #include "MuCanvasPattern.hpp" #include "MuCanvasGradient.hpp" namespace mural { const MuCompositeOperationFunc MuCompositeOperationFuncs[] = { [kMuCompositeOperati...
#include "Rcpp.h" #include "concaveman.h" using namespace Rcpp; // [[Rcpp::export]] DataFrame cpp_concaveman(NumericVector x, NumericVector y, double concavity, double lengthThreshold, IntegerVector chull) { typedef std::array<double, 2> point_type; int num_points = x.size(); std::vector<point_type> points(nu...
#include <iostream> #include <seqan/align.h> #include <seqan/sequence.h> using namespace seqan; int main() { // We will create the following alignment between the subject and the // query (with clipping in subject). // // 1 1 2 2 // 0 5 0 5 0 5 ...
/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. * Author(s): Vincent Rouvreau * * Copyright (C) 2015 Inria * * Modification(s): * - YYYY/MM Author: ...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <iostream> #include <vespa/vespalib/testkit/testapp.h> #include <vespa/documentapi/messagebus/replymerger.h> #include <vespa/documentapi/messagebus/documentprotocol.h> #include <vespa/documen...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The NV developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. ...
// Scintilla source code edit control /** @file UniConversion.cxx ** Functions to handle UTF-8 and UTF-16 strings. **/ // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <cstdlib> #include <stdexcept> #...
// Copyright (c) 2018-2021 Emil Dotchevski and Reverge Studios, Inc. // 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 is a simple program that shows how to report error objects out of a // C-callback (which...
#include "chokoeditor.hpp" CE_BEGIN_ED_NAMESPACE CE_EAW_IMPL(Shader) { } CE_END_ED_NAMESPACE
/** * @file kimera_semantics_node.cpp * @brief Main for Kimera-Semantics * @author Antoni Rosinol */ #include "kimera_semantics_ros/semantic_tsdf_server.h" int main(int argc, char** argv) { ros::init(argc, argv, "kimera_semantics"); google::InitGoogleLogging(argv[0]); google::ParseCommandLineFlags...
//===----------------------------------------------------------------------===// // // This file is licensed 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 // Also available under a BSD-style lic...
/* * Copyright (c) 2017 Peter Conrad, and contributors. * * The MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the righ...
// Fill out your copyright notice in the Description page of Project Settings. #include "Catastrophe.h" #include "Modules/ModuleManager.h" IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, Catastrophe, "Catastrophe" ); DEFINE_LOG_CATEGORY(LogQuestSystem); DEFINE_LOG_CATEGORY(LogSaveGameSystem);
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restrictio...
// WARNING: THIS FILE IS AUTOGENERATED! As such, it should not be edited. // Edits need to be made to the proto files // (see https://github.com/mavlink/MAVSDK-Proto/blob/master/protos/action/action.proto) #include <iomanip> #include "action_impl.h" #include "plugins/action/action.h" namespace mavsdk { Action::Acti...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include "subgraph_tests/reshape_permute_reshape.hpp" #include "common_test_utils/test_constants.hpp" using namespace SubgraphTestsDefinitions; namespace { std::vector<std::vector<std::vector<size_t>>> inputs...
#ifndef SERVERSTATE_HH #define SERVERSTATE_HH #include <pthread.h> // TODO: Change to thread API? #include <map> #include <string> #include "Configuration.hh" namespace http { /** * @short Application state to be displayed in the HTTP server. * * Copies of configuration and event number are kep...
#include "invizdmgfield.h" #include "SDL/SDL.h" #include "graphics.h" #include "fxfield.h" #include "settings.h" #include "map.h" #include "game.h" void Invizdmgfield::update_pos(int x, int y){ col_rect[0].x = x + xrel; col_rect[0].y = y + yrel; /* IN SWORDSLASH, ALSO UPDATE CENTER_X and CENTER_Y */ } Invizdmgf...
// stdafx.cpp : source file that includes just the standard includes // conservlib.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
/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- Copyright (c) 2006-2012, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, ...
/* * 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 ...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. // Copyright (c) 2014 Adam Wulkiewicz, Lodz, Poland. // Parts of Boost.Geometry a...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcconsole.h" #include...
/****************************************************************************** * Copyright 2017 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) 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 "views/accessibility/view_accessibility.h" #include "views/accessibility/view_accessibility_wrapper.h" #include "views/widget/widget.h"...
 #include <stdio.h> #include "filterGL.h" #define CHECK_GL_ERROR assert(glGetError() == 0) struct FilterVertex { float x, y; float tu, tv; }; static GLFWwindow* window = nullptr; static GLuint frameBuffer = 0; static GLuint textureBuffers[2] = {0}; static cv::Size planeSize; void filterGLInit(uint32_t width, uin...
// compile with // g++ -I.. -std=c++14 -O3 -o build/test_tensordot_formula test_tensordot_formula.cpp #include <iostream> #include <algorithm> #include <keops_includes.h> using namespace keops; __TYPE__ floatrand() { return ((__TYPE__) std::rand()) / RAND_MAX - .5; // random value between -.5 and .5 } templa...
// This file exists only to trigger CMake automoc to include the MOC source for // the vsTrackSource class, which requires that the source file name exactly // match the header file name. As a mostly-abstract class, the "implementation" // (aside from the MOC parts) can be found in the header file.
#include <iostream> #include "tools.h" using Eigen::VectorXd; using Eigen::MatrixXd; using std::vector; Tools::Tools() {} Tools::~Tools() {} VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations, const vector<VectorXd> &ground_truth) { /** TODO: * Calculate the RMSE...
// // GameVideoScene.cpp // PehlaSchool // // Created by Sungwoo Kang on 9/6/17. // // #include "GameVideoScene.hpp" #include <Common/Basic/SoundEffect.h> #include <Common/Controls/TodoLoadingScene.hpp> #include <Common/Controls/TodoSchoolBackButton.hpp> #include "GameVideoPlayer.hpp" #include <Utils/TodoUtil.h> ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/typedefs-string....
/* * Copyright (c) 2018-2019, AT&T Intellectual Property. All rights reserved. * * SPDX-License-Identifier: GPL-2.0-only * * Tests which we can't have memory detection enabled on as they allocate * memory in functions such as asprintf() which CppUTest can't track. */ #include "CppUTest/CommandLineTestRunner.h" ...
/** * \file dnn/src/naive/elemwise/kimpl/ADD_dt_float16.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2020 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distrib...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Types.h> #include <Kernel/ACPI/DynamicParser.h> #include <Kernel/ACPI/Initialize.h> #include <Kernel/ACPI/MultiProcessorParser.h> #include <Kernel/Arch/PC/BIOS.h> #include <Kernel/Arch/x86/P...
#include "packet_parser.h" PacketParser::PacketParser( uint32_t baudrate, PinName tx_pin, PinName rx_pin, PinName tx_led, PinName rx_led) : pc_(tx_pin, rx_pin), tx_led_(tx_led), rx_led_(rx_led) { tx_led_ = 1; rx_led_ = 1; pc_.baud(baudrate); out_pkt_ = NULL; tx_sequence_ = 0; pc_.attach(this, &Pa...
//////////////////////////////////////////////////////////////////////////////// // extrude.hh //////////////////////////////////////////////////////////////////////////////// /*! @file // Extrudes a planar triangle mesh into a closed surface mesh. */ // Author: Julian Panetta (jpanetta), julian.panetta@gmail.c...
#include "BoardGame.h" bool BoardGame::reset() { return true; } BoardGame::~BoardGame() { }
#include <iostream> #include <vector> #include <memory> #include <chrono> #include <string> #include <random> #include <map> #include <unordered_map> #include <set> #include <cmath> #include <cassert> #include <algorithm> #include "mythical/coarsegrainsystem.hpp" #include "mythical/version.hpp" #include "mythical/walk...
/** @file @brief implementation @date 2009-2011 @author Ryan Pavlik <rpavlik@iastate.edu> and <abiryan@ryand.net> http://academic.cleardefinition.com/ Iowa State University Virtual Reality Applications Center Human-Computer Interaction Graduate P...
/* * Copyright (C) 2017-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "offline_compiler_tests.h" #include "core/debug_settings/debug_settings_manager.h" #include "core/helpers/file_io.h" #include "core/helpers/hw_cmds.h" #include "core/helpers/hw_info.h" #include "core/unit_tests/helpers/...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
class WoodlandLoadoutUI { idd=-1; movingenable=false; class controls { class IGUIBack_2200: IGUIBack { idc = 2200; x = 0.2 * safezoneW + safezoneX; y = 0.16 * safezoneH + safezoneY; w = 0.6125 * safezoneW; h = 0.66 * safezoneH; colorBackground[] = {0.1,0.1,0.1,0.5}; }; class RscText_1000:...
//===-- Mangler.cpp -------------------------------------------------------===// // // 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 // //===---------------------------...
//////////////////////////////////////////////////////////////////////////////// // -------------------------------------------------------------------------- // // // // (C) 2011-2013 David Krutsko ...
// Copyright (c) 2012-2013 The Bitcoin Core developers // Copyright (c) 2019 The BIOA3 developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "mruset.h" #include "random.h" #include "util.h" #include "test/test...
/* * (c) 2019 Gustavo Valiente gustavo.valiente@protonmail.com * * MIT License, see LICENSE file. */ #include "pcps_organizer.h" #include "pcps_cloud.h" #include "pcps_logger.h" namespace pcps { void Organizer::disorganize(const Cloud& inputPointCloud, Cloud& outputPointCloud) { if(! inputPointCloud.isOrgan...
# /* ************************************************************************** # * * # * (C) Copyright Paul Mensonides 2002. # * Distributed under the Boost Software License, Version 1.0. (See # * accompanying file LICENSE_1_0.txt...
// Copyright 2016 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 "extensions/renderer/api/display_source/wifi_display/wifi_display_audio_encoder.h" #include "base/check_op.h" #include "base/notreached.h" name...
/* * Copyright (C) 2021 fleroviux. All rights reserved. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #pragma once #include "common.hpp" namespace lunatic { namespace frontend { struct ARMBranchExchange { Condition condition; GPR reg; bool link...
#include <QMessageBox> #include "PlaneLODDialog.h" #include "ui_planeloddialog.h" #include "Qt/Main/mainwindow.h" #include "Qt/Main/QtUtils.h" #include "Tools/PathDescriptor/PathDescriptor.h" #include "QtTools/FileDialogs/FileDialog.h" using namespace DAVA; PlaneLODDialog::PlaneLODDialog(DAVA::uint32 layersCount, c...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
/* * Copyright (C) 2013 Lucien XU <sfietkonstantin@free.fr> * Copyright (C) 2016 Andrey Kozhevnikov <coderusinbox@gmail.com> * * You may use this file under the terms of the BSD license as follows: * * "Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
// Copyright 2021 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...
//===-- lib/Parser/char-block.cpp -------------------------------*- 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 // //------------------------------...
// 26 january 2017 #include "barspy.hpp" // Normally I would only have needed a way to allocate, read, and write process memory to get structures out of controls. // The other stuff — the code injection stuff — ... well, just check gettheme.cpp for info. // might not be available on all systems static BOOL (WINAPI *p...
#include "clock.h" #include "utils.h" #include "duration.h" #include "enums.h" #include "get.h" #include "rcrd.h" #include <sstream> #include <cfloat> // ----------------------------------------------------------------------------- [[cpp11::register]] SEXP new_duration_from_fields(SEXP fields, ...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2014-2021, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Licensed under the Boost Software License ve...
// -*- C++ -*- // Copyright (C) 2005, 2006 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the terms // of the GNU General Public License as published by the Free Software // Foundation; either version ...
// // Copyright (c) 2008-2019 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...
/* * Copyright 2019-2020 Diligent Graphics LLC * Copyright 2015-2019 Egor Yusov * * 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/LICENS...
#include "encoding/base64.h" #include <gtest/gtest.h> TEST(Base64Test, encode) { EXPECT_EQ("", encoding::base64::encode("", 0)); EXPECT_EQ("Zg==", encoding::base64::encode("f", 1)); EXPECT_EQ("Zm8=", encoding::base64::encode("fo", 2)); EXPECT_EQ("Zm9v", encoding::base64::encode("foo", 3)); EXPECT_...
#include <vif.hpp> #include <vif/astro/ds9.hpp> using namespace vif; using namespace vif::astro; void write_and_spawn(const std::string& filename, const std::string& str) { std::ofstream out(filename); out << str << "\n"; out.close(); spawn("chmod +x "+filename); spawn("./"+filename); } int vif_...
#include<iostream> using namespace std; int Pivot(int a[],int lb,int ub) { int left =lb; int right = ub; int loc = lb; while((a[loc]<=a[right]) && (loc!=right)) { right=right-1; } if(loc==right) { return loc; } int temp = a[loc]; a[loc] = a[right]; a[right] = temp; loc = right; while((a[left]<=a[loc...
#pragma once #include "../../JObject.hpp" class JArray; namespace android::net { class Uri; } namespace android::os { class Bundle; } namespace android::os { class Handler; } namespace android::telecom { class Call_Callback; } namespace android::telecom { class Call_Details; } namespace android::telecom { class...
// 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 <txdb.h> #include <chainparams.h> #include <hash.h> #include <random.h>...
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Licens...
#include "ema/Ema.h" #include "ExportRMS.h" #include "ExportSpeed.h" #include "ExportPosition.h" #include "ExportFrequency.h" #include "ExportMeanPosition.h" #include "ExportBoundingBox.h" #include "settings.h" int main(int argc, char* argv[]) { Settings settings(argc, argv); Ema ema; ema.read().from(settings...
// Author: shiyi #include "extension.hpp" int main(void) { Btree Tree; int array[] = {100, 4, 2, 3, 15, 35, 6, 45, 55, 20, 1, 14, 56, 57, 58}; for (int i = 0; i < len(array); i++) { Tree.create_Btree(array[i]); } end; print("Number of nodes: "); printf(Tree.count(Tree.root)); print("Number of lea...
/*********************************************************************** * * TWI library for AVR-GCC. * ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2 * * Copyright (c) 2018-2019 Tomas Fryza * Dept. of Radio Electronics, Brno University of Technology, Czechia * This work is licensed under the terms...
#include <QtDebug> #include <QString> #include "serialtester.h" SerialTester::SerialTester(QComboBox *portBox, QLabel *statusLabel, QCheckBox *activeBox, QLineEdit *transmittedData, QLineEdit *receivedData) { this->portBox = portBox; this->activeBox = activeBox; this->statusLabel ...
//===----------------------------------------------------------------------===// // // 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) 2020, NVIDIA CORPORATION. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of condi...
/* Copyright 2020 Alibaba Group Holding Limited. 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 o...
/* * Copyright 2016 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related docu...
/* 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 by applicable law or...
// Copyright 2012 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...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main author: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2008 * * Last modified: * $Date: 2009-09-08 21:10:29 +0200 (Tue, 08 Sep 2009) $ by $Author: schulte $ * $Revision: 9692 $ * * Th...
//========================================================================= // Copyright (C) 2012 The Elastos 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 // // ...
<?hh // strict /** * @copyright 2010-2015, The Titon Project * @license http://opensource.org/licenses/bsd-license.php * @link http://titon.io */ namespace Titon\Route\Exception; /** * Exception thrown when a mapped route cannot be found by key. * * @package Titon\Route\Exception */ class Missing...
/* Merge two sorted lists A and B as one linked list Node is defined as struct Node { int data; struct Node *next; } */ Node* MergeLists(Node* headA, Node* headB) { if (headA == nullptr) return headB; if (headB == nullptr) return headA; const auto head = headB->data < headA->data ?...
/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkAdvancedTypefaceMetrics.h" #include "SkBitmap.h" #include "SkCanvas.h" #include "SkDescriptor.h" #include "SkFontDescriptor.h" #include "SkGlyph.h" #include "SkMak...
//================================================================================================= /*! // \file src/mathtest/dmatsmatschur/SDaUCb.cpp // \brief Source file for the SDaUCb dense matrix/sparse matrix Schur product math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // Thi...
#ifndef CARPI_OBD_OBDMESSAGE_HPP #define CARPI_OBD_OBDMESSAGE_HPP #include <string> #include <vector> #include "obd/msg/ObdFrame.hpp" #include "obd/EcuType.hpp" namespace carpi::obd::msg { class ObdMessage { std::vector<ObdFrame> _frames; std::vector<uint8_t> _data; EcuType _ecu_type = Ec...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2012 Peter Caspers This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/o...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_WeapRifle_HoloScope_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------...
/* * @lc app=leetcode id=32 lang=cpp * * [32] Longest Valid Parentheses */ // @lc code=start #include <algorithm> #include <stack> #include <string> #include <vector> using namespace std; class Solution { public: int longestValidParentheses(string s) { int max = 0; int answer = 0; std::stack<char> ...
/* The following code example is taken from the book * "The C++ Standard Library - A Tutorial and Reference, 2nd Edition" * by Nicolai M. Josuttis, Addison-Wesley, 2012 * * (C) Copyright Nicolai M. Josuttis 2012. * Permission to copy, use, modify, sell and distribute this software * is granted provided this copyr...
#include "ProductSection.h" #include "Message.h" #include <macgyver/Exception.h> #include "../common/GeneralFunctions.h" #include "../identification/GridDef.h" #include <boost/date_time/posix_time/posix_time.hpp> #include <macgyver/StringConversion.h> namespace SmartMet { namespace GRIB1 { /*! \brief The constructo...
//================================================================================================= /*! // \file src/mathtest/operations/svecdvecouter/VCaVHb.cpp // \brief Source file for the VCaVHb sparse vector/dense vector outer product math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved...
/* * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions ...
#include "catch.hpp" #include "smaug/core/backend.h" #include "smaug/core/tensor.h" #include "smaug/core/smaug_test.h" #include "smaug/operators/reorder_op.h" using namespace smaug; TEST_CASE_METHOD(SmaugTest, "Network tests", "[network]") { std::string modelPath = "experiments/models/"; SECTION("Minerva netw...
/* list of throw exceptions: 1 = vectors fed to the constructor are not the same size 2 = normalization of sample vector error = its field of zeroes 3 = vectors in dot product are not the same size */ #include <string> #include <sstream> #include <iomanip> #include <vector> #include <thread> #include <atomic> #include...
// // Copyright (c) 2022 alandefreitas (alandefreitas@gmail.com) // // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // #ifndef FUTURES_ALGORITHM_TRAITS_IS_INPUT_RANGE_HPP #define FUTURES_ALGORITHM_TRAITS_IS_INPUT_RANGE_HPP #include <futures/algorithm/traits/is_in...
// Copyright (c) 2009 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/ftp/ftp_ctrl_response_buffer.h" #include <string.h> #include "net/base/net_errors.h" #include "testing/gtest/include/gtest/gtest.h" n...
// Copyright (c) 2014-2015 Dropbox, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
////////////////////////////////////////////////////////////////////////////// /// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand /// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI /// /// Distributed under the Boost Software License, Version 1.0 /// ...