text
stringlengths
5
1.04M
// dear imgui, v1.75 // (main code and documentation) // Help: // - Read FAQ at http://dearimgui.org/faq // - Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase. // - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp for demo code. All applications in examples/ are doi...
// Copyright Microsoft Corporation // Copyright GHI Electronics, 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 requ...
#include<bits/stdc++.h> using namespace std; // 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 ...
//===- SemaChecking.cpp - Extra Semantic Checking -------------------------===// // // 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 // //===---------------------------...
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * 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; either version 2 * of the License, or (at your option) any later version. * * This program is d...
// MIT License // Copyright (C) August 2016 Hotride #include "GumpShop.h" enum { ID_GB_NONE, ID_GB_BUTTON_ACCEPT, ID_GB_BUTTON_CLEAR, ID_GB_SHOP_LIST, ID_GB_SHOP_RESULT, ID_GB_COUNT, }; CGumpShop::CGumpShop(uint32_t serial, bool isBuyGump, short x, short y) : CGump(GT_SHOP, serial, x, y...
/******************************************************************************* + + LEDA 6.3 + + + stl_sort0.c + + + Copyright (c) 1995-2010 + by Algorithmic Solutions Software GmbH + All rights reserved. + *******************************************************************************/ #define LEDA_NO_MIN_M...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* 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/. */ #include "nsGIOService.h" #include...
/* * Copyright (c) 2013-2014 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <c...
// Copyright by Contributors #include <dmlc/base.h> #include <dmlc/recordio.h> #include <dmlc/logging.h> #include <algorithm> namespace DMLC { // implementation void RecordIOWriter::WriteRecord(const void *buf, size_t size) { CHECK(size < (1 << 29U)) << "RecordIO only accept record less than 2^29 bytes"; c...
// // Copyright © 2017 Arm Ltd. All rights reserved. // See LICENSE file in the project root for full license information. // #pragma once #include "LayerWithParameters.hpp" namespace armnn { class Pooling2dLayer : public LayerWithParameters<Pooling2dDescriptor> { public: virtual std::unique_ptr<IWorkload> Creat...
#ifndef _COVERTREE_HH_ #define _COVERTREE_HH_ /** \file Implementation of the Cover Tree algorithm. http://hunch.net/~jl/projects/cover_tree/cover_tree.html */ #include <algorithm> #include <cmath> #include <iterator> #include <limits> #include <map> #include <utility> #include <vector> /** Container for dat...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ #include "WsRequestClientImpl.h" namespace Huobi { void WsRequestClientImpl::requestCandlestickEvent( const char* sym...
/** * @file missing_policy.hpp * @author Keon Kim * * Missing map policy for dataset info. */ #ifndef MLPACK_CORE_DATA_MAP_POLICIES_MISSING_POLICY_HPP #define MLPACK_CORE_DATA_MAP_POLICIES_MISSING_POLICY_HPP #include <mlpack/core.hpp> #include <unordered_map> #include <boost/bimap.hpp> #include <mlpack/core/data/...
/* Copyright(c) 2016-2020 Panos Karabelas 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, distrib...
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *bitcoin_strings[] = { QT_TRANSLATE_NOOP("globalboost-y-core", "" "%s, you must set a rpcpassword in the configuration file:\n" "%s\n" "It is r...
// // (C) Copyright 1998-1999 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice and the limited ...
// Copyright (c) 2011-2017 The Cryptonote developers // Copyright (c) 2017-2018 The Circle Foundation & Conceal Devs // Copyright (c) 2018-2021 Conceal Network & Conceal Devs // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #...
// Copyright (c) 2017-2018 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAO_PEGTL_CONTRIB_TO_STRING_HPP #define TAO_PEGTL_CONTRIB_TO_STRING_HPP #include <string> #include "../config.hpp" namespace tao { namespace TAO_PEGTL_NAMESPACE { ...
// Copyright (c) 2021 The Orbit 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 "TranslationStack.h" #include "OrbitBase/Logging.h" void orbit_gl::TranslationStack::PushTranslation(float x, float y, float z) { translatio...
#ifndef FSLSIMPLEUI_BASE_CONTROL_BUTTON_HPP #define FSLSIMPLEUI_BASE_CONTROL_BUTTON_HPP /**************************************************************************************************************************************************** * Copyright (c) 2015 Freescale Semiconductor, Inc. * All rights reserved. * * ...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/login/helper.h" #include "ash/shell.h" #include "base/strings/utf_string_conversions.h" #include "chrome/browser/ch...
/* * Copyright 2015 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 or agreed to...
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as ...
// This file was automatically generated on Fri May 15 11:57:42 2009 // by libs/config/tools/generate.cpp // Copyright John Maddock 2002-4. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/L...
/*! * @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-...
#include <dfcio.bios/dfcio.bios.hpp> DFCIO_ABI( dfcio::bios, (setpriv)(setalimits)(setglimits)(setprods)(setparams)(reqauth) )
// Merge.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> using namespace std; int *merge(int *a, int n, int *b, int m) { int i = 0, j = 0, k = 0; int *c = new int[n + m]; while (i < n && j < m) { if (a[i] < b[j]) { ...
#include <cmath> #include <cstdio> #include <iostream> using namespace std; int seq[800005] = {}; struct set { int l; int r; int current; int& value; set left() { return set{l, (l + r) >> 1, current << 1, seq[current << 1]}; } set right() { return set{((l + r) >> 1) + 1, r, c...
#include "Fast_klt.h" void myKLT(const cv::Mat source, const cv::Mat target, vector<cv::Point2f> &sourceFeatures, vector<cv::Point2f> &targetFeatures){ cv::Mat img0Gray = cv::Mat::zeros(source.rows, source.cols, CV_8UC1); cv::Mat curImgGray = cv::Mat::zeros(target.rows, target.cols, CV_8UC1); cvtColor(source, img0...
#include "SoundContent.h" #include "FatalError.h" void SoundContent::Initialize() { BaseContent::Initialize(); } bool SoundContent::Load(const std::string path) { alGenSources((ALuint)1, &mSoundId); AlutError(); mSoundBuffer = alutCreateBufferFromFile(path.c_str()); AlutError(); alSourcei(mSoundId, AL_BUFFER,...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "walletdb.h" #include "bitcoinrpc.h" #include "net.h" #i...
#include "ui/graphics/light.hpp" #include <SDL2/SDL2_gfxPrimitives.h> #include "main.hpp" void light(int power, int x, int y, int r, int g, int b){ for (int i=0; i<power; i+=5){ if (i > power / 3){ filledCircleRGBA(RENDERER, x, y, i, r, g, b, 10); } } } void projectedLight(int angl...
/****************************************************************************** * * Project: PlanetLabs scene driver * Purpose: Implements OGRPLScenesDataV1Layer * Author: Even Rouault, even dot rouault at spatialys.com * ****************************************************************************** * Copyri...
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// // Copyright (c) 2016-22, Lawrence Livermore National Security, LLC // and RAJA project contributors. See the RAJA/LICENSE file for details. // // SPDX-License-Identifier: (BSD-3-Clause) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
// // Copyright (c) 2019-2020 Ivan Baidakou (basiliscos) (the dot dmol at gmail dot com) // // Distributed under the MIT Software License // #include "catch.hpp" #include "rotor.hpp" #include "rotor/ev.hpp" #include <ev.h> #include "access.h" namespace r = rotor; namespace re = rotor::ev; namespace pt = boost::posix_...
/** * <b>SOFTWARE RIGHTS</b> * <p> * ANTLR 2.6.0 MageLang Insitute, 1998 * <p> * We reserve no legal rights to the ANTLR--it is fully in the * public domain. An individual or company may do whatever * they wish with source code distributed with ANTLR or the * code generated by ANTLR, including the incorporation...
// ball_thresholdaggregate.t.cpp -*-C++-*- // ---------------------------------------------------------------------------- // NOTICE // // This component is not up to date with current BDE coding standards, and // should not be used as an example f...
/* * TLogServer.actor.cpp * * This source file is part of the FoundationDB open source project * * Copyright 2013-2018 Apple Inc. and the FoundationDB project 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...
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2020 Fetch.AI Limited // // 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 Licen...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General...
/* pagefaulthandler.cpp Copyright (c) 17 Yann BOUCHER (yann) 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, me...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/ash/screenshot_taker.h" #include <string> #include "ash/shell.h" #include "ash/shell_window_ids.h" #include "base/...
#include <QMessageBox> #include "LXcpCanTrans.h" // Static class data const QString LXcpCanTrans::s_strProtocolName = "XcpCan"; const QString LXcpCanTrans::s_strSwVersion = "1.0"; LXcpCanTrans::LXcpCanTrans() { m_bIsDeviceReady = false; m_pCanDataManager = nullptr; m_pDataProc = new LDataProcessing(m_ma...
// Generated file (from: topk_v2_1D_quant8.mod.py). Do not edit void CreateModel(Model *model) { OperandType type1(Type::INT32, {}); OperandType type3(Type::TENSOR_INT32, {2}); OperandType type2(Type::TENSOR_QUANT8_ASYMM, {2}, 0.5f, 1); OperandType type0(Type::TENSOR_QUANT8_ASYMM, {4}, 0.5f, 1); // Phase 1, o...
#include "image_queue.h" #include <ros/ros.h> #include <sensor_msgs/Image.h> // Bring in gtest #include <gtest/gtest.h> class ImageQueueFixture : public ::testing::Test { protected: sensor_msgs::ImageConstPtr imgA; sensor_msgs::ImageConstPtr imgB; optic_flow::ImageQueue iq; Imag...
/* * 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 ...
#pragma once #include "../../types.hpp" #include "simultaneous_options.hpp" #include <pqrs/json.hpp> #include <set> #include <vector> namespace krbn { namespace manipulator { namespace manipulators { namespace basic { class from_event_definition final { public: from_event_definition(void) { } virtual ~from_eve...
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentatio...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: Frank Dellaert, et al. (see THANKS for the full author list) * See LICENSE for the license information * ----...
#pragma once #include "types.hpp" #include "utils.hpp" #include <memory> #include <sdbusplus/bus.hpp> #include <utility> namespace phosphor { namespace inventory { namespace manager { class Manager; /** @brief make_action * * Adapt an action function object. * * @param[in] action - The action being adapted. ...
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 Ryo Suzuki // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "String.hpp" # include...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/api/record/record_api.h" #include "base/bind.h" #include "base/command_line.h" #include "base/file_util.h" #inclu...
/* * Copyright (c) 2017-2018 Arm Limited. * * SPDX-License-Identifier: MIT * * 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 * ri...
//============================================================================== // Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // Se...
// Copyright Benoit Blanchon 2014-2015 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson #include "../../include/ArduinoJson/Internals/JsonParser.hpp" #include <stdlib.h> // for strtol, strtod #include <ctype.h> #include "../../include/ArduinoJson/Internals/QuotedString.hpp" #inc...
#include "StatsTestsQ31.h" #include <stdio.h> #include "Error.h" #include "Test.h" //#include <cstdio> #define SNR_THRESHOLD 100 #define SNR_THRESHOLD_MSE 100 /* Reference patterns are generated with a double precision computation. */ #define ABS_ERROR_Q31 ((q31_t)(100)) #define ABS_ERROR_Q31_MSE ((q31_t)(100)) ...
/** * Team Antelope, Sprint Otono * * @file SQLExec.cpp - implementation of SQLExec class * @author Kevin Lundeen * @author Lili Hao * @author Jara Lindsay * @author Bryn Lasher * @see "Seattle University, CPSC5300, Spring 2021" */ #include "SQLExec.h" using namespace std; using namespace hsql; // define sta...
/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: wrap_itkBinaryBallStructuringElement.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. Se...
//===-- DiffEngine.cpp - Structural file comparison -----------------------===// // // 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 // //===---------------------------...
#include <iostream> #include <fstream> #include <sstream> #include <vector> #include <windows.h> #include <conio.h> #include <ctime> #include <cstdlib> using namespace std; typedef struct user { string firstname; string lastname; string username; string password; } User; // directly ...
/* * Copyright (C) 2007 Apple Computer, Kevin Ollivier. 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, thi...
/* * Software License Agreement (BSD License) * * Copyright (c) 2014 Case Western Reserve University * Russell C Jackson <rcj33@case.edu> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
#ifndef __OPENHAB_HANDLER_H__ #define __OPENHAB_HANDLER_H__ class OpenHabHandler { private: time_t lastSendTimestamp; void sendValueV1( const char* itemname, const float value ); void sendValueV2( const char* itemname, const float value ); public: OpenHabHandler(); void sendValue( const char* itemname, con...
#include <Interpreters/BloomFilter.h> #include <city.h> #include <Columns/ColumnArray.h> #include <Columns/ColumnNullable.h> #include <Columns/ColumnLowCardinality.h> #include <DataTypes/DataTypeArray.h> #include <DataTypes/DataTypeNullable.h> #include <DataTypes/DataTypeLowCardinality.h> namespace DB { namespace Err...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2004-2007. 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...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/greengrass/model/GetFunctionDefinitionRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Greengrass::Model; using namespace Aws::Utils::...
/* node_page_test.cc Rémi Attab, 20 January 2012 Copyright (c) 2012 Datacratic. All rights reserved. Tests for node_page.h */ #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include "mmap/node_page.h" #include "soa/utils/threaded_test.h" #include <boost/test/unit_test.hpp> #include <iostream> #includ...
#include "../submodel.h" #include "../mat2D.h" #include "../config.cpp" class s5x5_minmax41: public Submodel { public: s5x5_minmax41(float q, Config *config) : Submodel(q) { this->modelName = "s5x5_minmax41"; this->minmax = true; this->coocDirs.push_back("horver"); Initialize(config); } ...
/* * Copyright (c) 2018 Samsung Electronics Co., Ltd. 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 * * Unle...
/* * Copyright (C) 2021 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 <iostream> #include "node.h" #include "bools.h" // Funzioni di output dei nodi int CBlock::globalid = 0; // indicizzata per nodo char * nodeTable[] = { "Ndecl", // dichiarazione, binary: sx = declspec, dx = lista dirdecl "Nargdecl", // dichiarazione di argomento di funzione. "Ndirdecl", // decl...
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #include "platform/platform.h" #include "gui/worldEditor/terrainEditor.h" #include "core/frameAllocator.h" #include "core/strings/stringUnit.h" #include "console/consoleTypes.h" #include "console/sim...
#include "stdwx.h" #include "FijiInterfacePlugin.h" #include "FijiInterfacePluginWindow.h" #include "VRenderFrame.h" #include "wx/process.h" #include "wx/mstream.h" #include "compatibility.h" IMPLEMENT_DYNAMIC_CLASS(SampleGuiPlugin1, wxObject) FijiServer::~FijiServer(void) { } void FijiServer::DeleteConnection() {...
/****************************************************************************** * $Id: ogrelasticdatasource.cpp 23848 2012-01-31 20:49:42Z rouault $ * * Project: ElasticSearch Translator * Purpose: * Author: * ****************************************************************************** * Copyright (c) 2011, ...
// Copyright 2021 Pudovkin Artem #include <mpi.h> #include <cstring> #include "../../..//modules/task_2/pudovkin_a_allreduce/allreduce.h" int Allreduce(void* sendbuf, void* recvbuf, int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm) { if (recvbuf == nullptr) return MPI_ERR_BUFFER; if (count <=...
// Copyright 2020 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...
/** * 1.8 Zero Matrix: Write an algorithm such that if an element in an MxN matrix is 0, its entire row and * column are set to 0 */ #include <assert.h> #include <stdint.h> #include <stddef.h> #include <string.h> #include <vector> #include <iostream> struct matrix2d { size_t nrows; size_t ncols; uint32...
/**************************************************************************** * Copyright (C) from 2009 to Present EPAM Systems. * * This file is part of Indigo toolkit. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/websockets/websocket_job.h" #include <algorithm> #include "base/bind.h" #include "base/lazy_instance.h" #include "base/string_tokenize...
/* * Copyright (C) 2005-2017 by Centre National d'Etudes Spatiales (CNES) * * This file is licensed under 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 restric...
/**************************************************************************** * apps/graphics/nxwidgets/src/cglyphsliderhorizontal.cxx * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional informatio...
#include <catch2/catch.hpp> #include <Engine/RadiumEngine.hpp> #include <Engine/Scene/Component.hpp> #include <Engine/Scene/Entity.hpp> #include <Engine/Scene/EntityManager.hpp> #include <Engine/Scene/SignalManager.hpp> using namespace Ra::Engine::Scene; class Foo { public: Ra::Core::Utils::Index i {0}; vo...
// license:BSD-3-Clause // copyright-holders:Barry Rodewald /* * cpc_rom.cpp * Amstrad CPC mountable ROM image device * */ #include "emu.h" #include "cpc_rom.h" DEFINE_DEVICE_TYPE(CPC_ROM, cpc_rom_device, "cpc_rom", "CPC ROM Box") void cpc_exp_cards(device_slot_interface &device); //****************************...
#include "AITools.h" using namespace SparCraft; const Unit & AITools::GetClosestEnemyUnit(const GameState & state, const size_t & player, const size_t & unitIndex, bool checkCloaked) { const size_t enemyPlayer = state.getEnemy(player); const Unit & myUnit = state.getUnit(player,unitIndex); int minDist(1000000)...
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */ #include <sstream> #include <limits> #include "ifcpp/model/AttributeObject.h" #include "ifcpp/model/BuildingException.h" #include "ifcpp/model/BuildingGuid.h" #include "ifcpp/reader/ReaderUtil.h" #include "ifcpp/writer/WriterUtil.h" #include...
/*=================================================================== 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 w...
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 Ben Vanik. All rights reserved. ...
// cmcstl2 - A concept-enabled C++ standard library // // Copyright Casey Carter 2015 // // Use, modification and distribution is subject to the // Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Project home: https://github.c...
// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel // Copyright (C) 2008 Steven Watanabe // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt...
#include <iostream> #include <cstdio> #include <cmath> #include <cstring> #include <algorithm> #include <string> #include <vector> #include <stack> #include <queue> #include <set> #include <map> #include <sstream> #include <complex> #include <ctime> #include <cassert> #include <functional> using namespace std; typede...
//===--- ModuleDependencyScanner.cpp - Compute module dependencies --------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
#include "extensions/filters/http/jwt_authn/matcher.h" #include "envoy/config/route/v3/route_components.pb.h" #include "envoy/extensions/filters/http/jwt_authn/v3/config.pb.h" #include "common/common/logger.h" #include "common/common/matchers.h" #include "common/common/regex.h" #include "common/router/config_impl.h" ...
//////////////////////////////////////////////////////////// // // MIT License // // Copyright(c) 2017 Kurt Slagle - kurt_slagle@yahoo.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 Softwar...
// ====================================================================== /*! * \file NFmiArea.cpp * \brief Implementation of class NFmiArea */ // ====================================================================== /*! * \class NFmiArea * * Undocumented */ // ==================================================...
// ObjectTalk Scripting Language // Copyright (c) 1993-2022 Johan A. Goossens. All rights reserved. // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. // // Include files // #include <iostream> #include <argparse/argparse.hpp> #include "ot.h" ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE758_Undefined_Behavior__long_new_use_13.cpp Label Definition File: CWE758_Undefined_Behavior.new.label.xml Template File: point-flaw-13.tmpl.cpp */ /* * @description * CWE: 758 Undefined Behavior * Sinks: new_use * GoodSink: Initialize then use data * ...
//------------------------------------------------------------------------------ // kheap.cpp // Kernel heap //------------------------------------------------------------------------------ // This file is part of the GenOS (Genesis Operating System) project. // The latest version can be found at http://code.googl...
// Copyright (c) 2019 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...