text
stringlengths
7
961k
//$Id$ //------------------------------------------------------------------------------ // ThrusterCoefficientDialog //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2002 - 2015 United States Governme...
// Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash 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/hdch-config.h" #endif #inclu...
// Ogonek // // Written in 2013 by Martinho Fernandes <martinho.fernandes@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distributed without any warranty. // // You s...
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Portions Copyright (c) Microsoft Corporation. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICEN...
/*******************************<GINKGO LICENSE>****************************** Copyright 2017-2018 Karlsruhe Institute of Technology Universitat Jaume I University of Tennessee Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met...
#include "quaternions.h" quaternion quaternion::fromAxisAngle(float angle, vec3 axis) { vec4 axisn = axis.normalize(); quaternion q; float a = deg2rad(angle); q.t = cos(a / 2.0f); float s = sin(a / 2.0f); q.v.x = axisn.x * s; q.v.y = axisn.y * s; q.v.z = axisn.z * s; q.clean(); return q.normalize(); } q...
// Copyright 2020 The TensorFlow Runtime 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 ...
#include <EditorEngineProcessPCH.h> #if EZ_ENABLED(EZ_PLATFORM_WINDOWS_UWP) # include <EditorEngineProcess/EngineProcGameAppUWP.h> EZ_APPLICATION_ENTRY_POINT(ezEngineProcessGameApplicationUWP); #else # include <EditorEngineProcess/EngineProcGameApp.h> EZ_APPLICATION_ENTRY_POINT(ezEngineProcessGameApplication); ...
/* * 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...
//+--------------------------------------------------------------------------- // // Microsoft Forms // Copyright (C) Microsoft Corporation, 1996-1997. // // File: downbase.hxx // // Contents: Base interfaces for download subsystem // //-----------------------------------------------------------------------...
// // Created by adrja on 02.04.2018. // #include <utility> #include <sstream> #include <vector> #include <map> #include "SimpleJson.h" std::string nets::JsonValue::ToString() const { std::string temp; switch (this_obj_type_) { case (INTEGER): { temp = std::to_string(integer_); ...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <low_precision/network_helper.hpp> #include <algorithm> #include <cmath> #include <limits> #include <map> #include <memory> #include <string> #include <unordered_set> #include <utility> #include <vector> #include <queue> ...
#include "stdafx.h" #include "ProceduralChunkGenerator.h" #include "Chunk.h" #include "Constants.h" #include "VoxelSpaceConversions.h" #include "SmartVoxelContainer.hpp" void ProceduralChunkGenerator::init(PlanetGenData* genData) { m_genData = genData; m_heightGenerator.init(genData); } void ProceduralChunk...
/* Copyright (c) 2012-2016 The ANTLR Project. All rights reserved. * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ // // main.cpp // antlr4-cpp-demo // // Created by Mike Lischke on 13.03.16. // #include <iostream> #include "antlr4-...
///////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Tencent is pleased to support the open source community by making behaviac available. // // Copyright (C) 2015-2017 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: ListNode* mergeTwoLis...
/** * MIT License * * Copyright (c) 2019 Ben Horowitz * * 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, mo...
#include "header/data_imexporter/steps_imexporter.h" #include "header/basic/utility.h" #include "header/device/bus.h" #include "header/device/load.h" #include "header/device/fixed_shunt.h" #include "header/device/generator.h" #include "header/device/wt_generator.h" #include "header/device/line.h" #include "header/devic...
/** * Copyright 2021 Robert MacGregor * * 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,...
#ifndef OSMIUM_HANDLER_DISK_STORE_HPP #define OSMIUM_HANDLER_DISK_STORE_HPP /* This file is part of Osmium (https://osmcode.org/libosmium). Copyright 2013-2019 Jochen Topf <jochen@topf.org> and others (see README). Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charg...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE426_Untrusted_Search_Path__char_popen_84a.cpp Label Definition File: CWE426_Untrusted_Search_Path.label.xml Template File: sources-sink-84a.tmpl.cpp */ /* * @description * CWE: 426 Untrusted Search Path * BadSource: Don't specify the full path in the OS command * Go...
/* * SEGS - Super Entity Game Server * http://www.segs.io/ * Copyright (c) 2006 - 2018 SEGS Team (see AUTHORS.md) * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details. */ /*! * @addtogroup MapViewer Projects/CoX/Utilities/MapViewer * @{ */ #include "MapViewerApp....
#include "calcdialog.h" #include "ui_calcdialog.h" #include "main.h" #include <QString> calcDialog::calcDialog(QWidget *parent) : QDialog(parent), ui(new Ui::calcDialog) { ui->setupUi(this); connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(pushButtonClicked())); } calcDialog::~calcDialog() { ...
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 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...
/*============================================================================= Library: CTK Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the ...
/* =============================================================================== ·File: bi3_framework.cpp ·Project: OpenBi3 framework technology ·Author: Juan Torres on 22/05/21 ·Group: CTDi Pro. Copyright© 2021 Any use, distribution or reproduction of this material (in part or as a whole)...
// This file is part of DVS-ROS - the RPG DVS ROS Package #include "dvs_calibration/transition_map.h" namespace dvs_calibration { TransitionMap::TransitionMap(const CalibrationParameters params) : params_(params), has_pattern_(false), sensor_width_(0), sensor_height_(0) { reset_maps(); last_reset_time_ = ros::...
/* ** EPITECH PROJECT, 2021 ** rtype ** File description: ** Created by seb, */ #include <component/physic/Position.hpp> #include <component/physic/Speed.hpp> #define NOSPRITE #include <component/physic/Hitbox.hpp> #undef NOSPRITE #include "ecs/Ecs.hpp" #include "Speeds.hpp" namespace ecs {namespace system { void Spe...
#include "report_factory.hpp" #include "metric.hpp" #include "report.hpp" #include "sensor.hpp" #include "utils/clock.hpp" #include "utils/conversion.hpp" #include "utils/dbus_mapper.hpp" #include "utils/transform.hpp" ReportFactory::ReportFactory( std::shared_ptr<sdbusplus::asio::connection> bus, const std::...
/* * Copyright (c) 2018 Cisco and/or its affiliates. * 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 applicabl...
#include <iostream> using namespace std; int main() { int rows, number = 1; cout << "Enter number of rows: "; cin >> rows; for(int i = 1; i <= rows; i++) { for(int j = 1; j <= i; ++j) { cout << number << " "; ++number; } cout << endl; } ...
/* * (C) Copyright 2013 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an intergo...
/* * save_image.cc * * Created on: Nov 16, 2019 * Author: amyznikov */ #include "save_image.h" #include <tiff.h> #include <tiffio.h> #include <core/readdir.h> #include <core/debug.h> #ifndef CV_VERSION_INT # define CV_VERSION_INT(a,b,c) ((a)<<16 | (b)<<8 | (c)) #endif #ifndef CV_VERSION_CURRRENT # define ...
/*********************************************************\ * File: SceneLoaderReturnToCastleWolfenstein.cpp * * * Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/) * * This file is part of PixelLight. * * Permission is hereby granted, free of charge, to any person obtaining a co...
//================================================================================================= /*! // \file src/boost/DMatTSMatMult.cpp // \brief Source file for the Boost dense matrix/transpose sparse matrix multiplication kernel // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // This f...
//C- -*- C++ -*- //C- ------------------------------------------------------------------- //C- DjVuLibre-3.5 //C- Copyright (c) 2002 Leon Bottou and Yann Le Cun. //C- Copyright (c) 2001 AT&T //C- //C- This software is subject to, and may be distributed under, the //C- GNU General Public License, either Version 2 of ...
/** Various utility functions. * * Copyright (c) 2000-2020, Jeroen T. Vermeulen. * * See COPYING for copyright license. If you did not receive a file called * COPYING with this source code, please notify the distributor of this * mistake, or contact the author. */ #include "pqxx-source.hxx" #include <cerrno> #...
// Copyright 2020 The TensorFlow Runtime 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 ...
/** * @file * @brief Misc abyss specific functions. **/ #include "AppHdr.h" #include "abyss.h" #include <algorithm> #include <cmath> #include <cstdlib> #include <queue> #include "act-iter.h" #include "areas.h" #include "bloodspatter.h" #include "branch.h" #include "cloud.h" #include "colour.h" #include "coordit.h...
#include<iostream> using namespace std; void insertionSort(int *array, int size) { int key, j; for(int i = 1; i<size; i++) { key = array[i]; j = i; while(j > 0 && array[j-1]>key) { array[j] = array[j-1]; j--; } array[j] = key; } } int main() { int n; cou...
#include "gpu.hpp" #include "smbus.hpp" #include <experimental/filesystem> #include <fstream> #include <iostream> #include <phosphor-logging/elog-errors.hpp> #include <phosphor-logging/log.hpp> #include <sstream> #include <string> #include <stdlib.h> #include <stdio.h> #include "i2c-dev.h" #define STR_SIZE 16 #define...
#include <Engine/Model/Model.h> #include <Engine/Texture/Texture.h> #include <Engine/Model/Mesh.h> #include <Engine/Shader/Shader.h> #include <Engine/Camera/Camera.h> #include <Engine/Engine.h> #include <Engine/Light/Light.h> #include <iostream> Model::Model() { } Model::Model(std::vector<Mesh*>& meshes) { m_mes...
/* * Copyright (c) 2012, Google 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: * * * Redistributions of source code must retain the above copyright * notice, this list of conditi...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2009 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
// Copyright Takatoshi Kondo 2020 // // 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 <mqtt/config.hpp> #include <mqtt/setup_log.hpp> #include <mqtt/broker/broker.hpp> #include <boost/program_options.hpp...
#ifndef TOKEN_HH_ #define TOKEN_HH_ #include<string> namespace TOKENS { enum TYPE { INTEGER = 0, REAL, IDENTIFIER, KEYWORD, SEPARATOR, OPERATOR, UNKNOWN }; } using namespace TOKENS; class Token { private: TYPE tt_; std::string lexeme_; unsigned line_num_; public: Token(TYPE tt, std::string lexeme, int lin...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/effects/SkPerlinNoiseShader.h" #include "include/core/SkColorFilter.h" #include "include/core/SkShader.h" #include "include/core/SkString.h" #include "inclu...
#ifndef __LOGGER_HPP__ #define __LOGGER_HPP__ #include <string> #include <map> #include <vector> #include "AutoRef.hpp" #include "Observer.hpp" namespace osl { class LoggerFactory; class LogSession; class Logger; /** * log level */ class LogLevel { public: static const int LEVEL_F...
#include <iostream> using namespace std; struct Carro{ string nome; string tipo; string cor; int pot; int velMax; int vel; void insere(string stnome, string sttipo, string stcor, int stpot, int stvelMax){ nome=stnome; tipo=sttipo; cor=stcor; pot=stpot; ...
// License: BSD 2 Clause // Copyright (C) 2010, Google Inc. All rights reserved. // Copyright (C) 2015+, The LabSound Authors. All rights reserved. // @tofix - webkit change ef113b changes the logic of processing to test for non finite time values, change not reflected here. // @tofix - webkit change e369924 adds back...
// Copyright © Amer Koleci and Contributors. // Licensed under the MIT License (MIT). See LICENSE in the repository root for more information. #include "Core/StringUtils.h" #include "PlatformInclude.h" #include <vector> #include <sstream> #include <cstdio> namespace Alimer { namespace { std::vector<st...
#include <ares/scheduler/thread.hpp> #include <ares/scheduler/scheduler.hpp> #include <ares/scheduler/thread.cpp> #include <ares/scheduler/scheduler.cpp>
#include "PhysicsEngine.h" #include "Application.h" #include "Camera.h" #include "Force.h" using namespace glm; const glm::vec3 GRAVITY = glm::vec3(0, -9.81, 0); void ExplicitEuler(vec3& pos, vec3& vel, float mass, const vec3& accel, const vec3& impulse, float dt) { //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
// Copyright(c) 2017 POLYGONTEK // // 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 i...
/*============================================================================= Copyright (c) 2001-2006 Joel de Guzman Copyright (c) 2005 Eric Niebler Copyright (c) 2007 Dan Marsden Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // stdafx.cpp : source file that includes just the standard includes // DetoursServices.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled ...
#pragma once #include "Matrix3x3.h" #include "Vector.h" #include "Quaternion.h" #include <algorithm> template <typename T> Matrix3x3<T>::Matrix3x3() { c[0].x = 1; c[0].y = 0; c[0].z = 0; c[1].x = 0; c[1].y = 1; c[1].z = 0; c[2].x = 0; c[2].y = 0; c[2].z = 1; } template <typename T> Matrix3x3<T>::Matrix3x3(T _00, T...
#include "py_base.h" #include <Python.h> namespace c2pool::python { bool Py::_ready = false; void Py::Initialize() { if (!_ready) { Py_Initialize(); _ready = true; } } void Py::Finalize() { if (_ready) { Py_Finalize()...
// automaticly generated by wsjcpp:v0.4.3 #include "__data_sample_html_images_states_corrupt_svg_pathc5dd78.h" REGISTRY_WSJCPP_RESOURCE_FILE(RES___data_sample_html_images_states_corrupt_svg_pathc5dd78) const std::string &RES___data_sample_html_images_states_corrupt_svg_pathc5dd78::getFilename() const { static co...
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (B. Van Essen, et al.) listed in // the CONTRIBUTORS file. <lbann-dev@l...
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/globals.h" #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) #include "vm/source_...
// Copyright (c) 2009-2014 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/aurumcoin-config.h" #endif #include <cstddef> #if defined(HAVE_SYS_SELECT_H) #i...
/* * Copyright (C) 2019-2021 LEIDOS. * * 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...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
/****************************************************************************** * Copyright 2018 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 ...
/* * Qt4 bitcoin GUI. * * W.J. van der Laan 2011-2012 * The EtherCryptoCoin Developers 2011-2013 */ #include "walletstack.h" #include "walletview.h" #include "bitcoingui.h" #include <QMap> #include <QMessageBox> WalletStack::WalletStack(QWidget *parent) : QStackedWidget(parent), clientModel(0), bOutO...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
/* Copyright (c) 2007 Cyrus Daboo. 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 re...
//%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...
//========================================================================= // Copyright (C) 2018 The C++ Component Model(CCM) 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 Lic...
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
// -*- C++ -*- // // Package: DetectorDescription/DDCMS // Class: DDSpecParRegistryESProducer // /**\class DDSpecParRegistryESProducer Description: Produce SpecPar registry Implementation: SpecPars are described in XML */ // // Original Author: Ianna Osborne // Created: Wed, 09 Jan 2019 16:04...
// Copyright (c) 2015 The BICOScoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chain.h" #include "chainparams.h" #include "pow.h" #include "random.h" #include "util.h" #include <boost/test/unit...
/* $Id$ */ /* * This file is part of OpenTTD. * OpenTTD 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. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
#include "common/http/header_map_impl.h" #include "extensions/filters/http/cors/cors_filter.h" #include "test/mocks/buffer/mocks.h" #include "test/mocks/http/mocks.h" #include "test/mocks/stats/mocks.h" #include "test/test_common/printers.h" #include "gmock/gmock.h" #include "gtest/gtest.h" using testing::_; using ...
// Copyright (c) 2014 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 "coins.h" #include "random.h" #include "uint256.h" #include "test/test_leadertvcoin.h" #include <vector> #include <map> ...
0 6 8 9
/************************************************************************** Filename : OVR_SysFile.cpp Content : File wrapper class implementation (Win32) Created : April 5, 1999 Authors : Michael Antonov Copyright : Copyright 2011 Oculus VR, Inc. All Rights reserved. Use of this software...
/*********************************************************************************** ** exvr-designer ** ** MIT License ** ** Copyright (c) [2018] [Florian Lance][EPFL-LNCO] ...
// Copyright (c) 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 "wallet.h" #include "walletdb.h" #include "bitcoinrpc.h" #include "init.h" #in...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #include "precomp.hpp" #include <opencv2/core/utils/trace.hpp> #include <opencv2/core/utils/trace.private.hpp> #include <ope...
#include "ALabel.hpp" #include <util/command.hpp> #include <iostream> waybar::ALabel::ALabel(const Json::Value& config, const std::string format, uint16_t interval) : config_(config), format_(config_["format"].isString() ? config_["format"].asString() : format), interval_(config_["interval"] == "once"...
#include "stdafx.h" #include "Exception.h" #include "ThreadLocal.h" #include "Log.h" #include "DBHelper.h" SQLHENV DBHelper::mSqlHenv ; SQL_CONN* DBHelper::mSqlConnPool ; int DBHelper::mDbWorkerThreadCount = 0; DBHelper::DBHelper() { CRASH_ASSERT(LThreadType == THREAD_DB_WORKER); CRASH_ASSERT(mSqlConnPool[LWorker...
// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection\ // RUN: -analyzer-checker cplusplus.Move,alpha.cplusplus.SmartPtr\ // RUN: -analyzer-config cplusplus.SmartPtrModeling:ModelSmartPtrDereference=true\ // RUN: -std=c++11 -verify %s #include "Inputs/system-header-simulator-cxx.h" void clang_a...
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2020 Metrological * * 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 ...
#include <stdio.h> #include <stdlib.h> #include <ugens.h> #include <Instrument.h> #include "ROOM.h" #include <rt.h> #include <rtdefs.h> //#define DEBUG #define AVERAGE_CHANS -1 /* average input chans flag value */ ROOM::ROOM() : Instrument() { in = NULL; echo = NULL; branch = 0; } ROOM::~ROOM(...
// { dg-do compile } // 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // // Copyright (C) 2007-2017 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 Li...
/* * Copyright (C) 2018-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/test/common/helpers/default_hw_info.h" #include "shared/test/unit_test/helpers/gtest_helpers.h" #include "opencl/test/unit_test/os_interface/linux/hw_info_config_linux_tests.h" using namespace NEO; struct HwInf...
// -*- tab-width: 4; indent-tabs-mode: nil; -*- // vim: tabstop=4:softtabstop=4:expandtab:shiftwidth=4 // // $Id$ // // ------------------------------------------------------------------------- // This file is part of ZeroBugs, Copyright (c) 2010 Cristian L. Vlasceanu // // Distributed under the Boost Software License...
/* * The MIT License (MIT) * * Copyright (c) 2018 Filip Wasil and Fillwave community members * * 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 li...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The VITAE developers // Distributed under the MIT software license, see the accompanying // file COPYING or ht...
class Solution { public: vector<int> smallestRange(vector<vector<int>>& nums) { vector<int> ans = {-100000, 100000}; set<tuple<int, int, int>> fronts; int n = nums.size(); for(int i = 0; i < n; ++i) fronts.insert({nums[i][0], 0, i}); while (!fronts.empty()) { int ...
// Copyright 2019 Age of Minds 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 i...
// // Created by Marc Neumann on 20.10.18. // #include "Trajectory.h" #include <iostream> #include <stdexcept> #include "WorldConstants.h" Trajectory::Trajectory() : xy(std::vector<XYCoord>()) {} const std::vector<double> Trajectory::getX() const { std::vector<double> x; for (XYCoord c : xy) { x.push...
// 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...
// stdafx.cpp : source file that includes just the standard includes // decrypt.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
/** * @file Denominations.cpp * * @brief Functions for converting to/from Zerocoin Denominations to other values library. * * @copyright Copyright 2017 PIVX Developers * @copyright Copyright 2019 NocNoc Developers * @license This project is released under the MIT license. **/ #include "Denomin...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "core/framework/tensorprotoutils.h" #include <memory> #include <algorithm> #include <limits> #include <gsl/pointers> #include "core/common/logging/logging.h" #include "core/graph/onnx_protobuf.h" #include "core/f...
// 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/base/hash_value.h" #include <stdlib.h> #include "base/base64.h" #include "base/logging.h" #include "base/sha1.h" #include "base/string...