text
string
meta
dict
/* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with t...
{ "language": "C++" }
#include "vrclient_private.h" #include "vrclient_defs.h" #include "openvr_v0.9.20/openvr.h" using namespace vr; extern "C" { #include "struct_converters.h" } #include "cppIVRCompositor_IVRCompositor_014.h" #ifdef __cplusplus extern "C" { #endif void cppIVRCompositor_IVRCompositor_014_SetTrackingSpace(void *linux_side, ...
{ "language": "C++" }
#include <QtScript/QScriptEngine> #include <QtScript/QScriptContext> #include <QtScript/QScriptValue> #include <QtCore/QStringList> #include <QtCore/QDebug> #include <qmetaobject.h> #include <qsslcipher.h> #include <QVariant> #include <qsslcipher.h> static const char * const qtscript_QSslCipher_function_names[] = { ...
{ "language": "C++" }
/* ------------------------------------------------------------------------------ * * # Dimple.js - multiple vertical lines * * Demo of multiple line chart. Data stored in .tsv file format * * Version: 1.0 * Latest update: August 1, 2015 * * -----------------------------------------------------------------...
{ "language": "C++" }
// // 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...
{ "language": "C++" }
/*************************************************************************** ADM_vidDecTelecide - description ------------------- email : fixounet@free.fr Port of Donal Graft Decimate which is (c) Donald Graft http://www.neuron2.n...
{ "language": "C++" }
#ifndef __UICOMBO_H__ #define __UICOMBO_H__ #pragma once namespace DuiLib { ///////////////////////////////////////////////////////////////////////////////////// // class CComboWnd; class UILIB_API CComboUI : public CContainerUI, public IListOwnerUI { friend class CComboWnd; public: CComboUI(); LPCTSTR...
{ "language": "C++" }
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman 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) ====================================...
{ "language": "C++" }
/* crypto/asn1/d2i_pu.c */ /* 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...
{ "language": "C++" }
#ifndef BOOST_MPL_LIST_AUX_SIZE_HPP_INCLUDED #define BOOST_MPL_LIST_AUX_SIZE_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // 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....
{ "language": "C++" }
#pragma once #include <ros/ros.h> #include <std_msgs/Bool.h> #include <std_msgs/Empty.h> #include <geometry_msgs/Twist.h> #include "dronet_perception/CNN_out.h" namespace deep_navigation { class deepNavigation final { public: deepNavigation(const ros::NodeHandle& nh, const ros::NodeHandle& nh_pri...
{ "language": "C++" }
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
{ "language": "C++" }
/* Copyright (c) 2010, The Barbarian Group 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 conditions and th...
{ "language": "C++" }
/* * ProxyCommitData.h * * This source file is part of the FoundationDB open source project * * Copyright 2013-2020 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 ob...
{ "language": "C++" }
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/elasticfilesystem/EFS_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; ...
{ "language": "C++" }
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wno-unused-value %s -verify // prvalue void prvalue() { auto&& x = []()->void { }; auto& y = []()->void { }; // expected-error{{cannot bind to a temporary of type}} } namespace std { class type_info; } struct P { virtual ~P(); }; void unevaluated_operand(P &p, in...
{ "language": "C++" }
.class final Landroid/view/ViewRoot$TrackballAxis; .super Ljava/lang/Object; .source "ViewRoot.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroid/view/ViewRoot; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x18 name = "TrackballAx...
{ "language": "C++" }
/* Pencil - Traditional Animation Software Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon Copyright (C) 2012-2020 Matthew Chiawen Chang 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; vers...
{ "language": "C++" }
/* * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
{ "language": "C++" }
// 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. #ifndef MOJO_PUBLIC_CPP_BINDINGS_MAP_TRAITS_H_ #define MOJO_PUBLIC_CPP_BINDINGS_MAP_TRAITS_H_ #include "mojo/public/cpp/bindings/lib/template_util.h" na...
{ "language": "C++" }
/*============================================================================= Copyright (c) 2001-2008 Joel de Guzman Copyright (c) 2001-2008 Hartmut Kaiser http://spirit.sourceforge.net/ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www....
{ "language": "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.tx...
{ "language": "C++" }
/* * 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 ...
{ "language": "C++" }
#include "fancy_index.hpp" #include "stdio.h" #include "stdlib.h" /** * malloc and return a new range from 0 to n. The caller assumes ownership * of the memory, which must be `free`d. * **/ static int* range(int n) { int i; int* r = (int*) malloc(n * sizeof(int)); if (r == NULL) { fprintf(stderr, "mal...
{ "language": "C++" }
/* Copyright (c) 2014 Aerys 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, distribute, sublicens...
{ "language": "C++" }
// (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000-2005. // 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/LICENSE_1_0.txt). // // See http://www.boost.org/libs/type...
{ "language": "C++" }
#include <functional> #include "stat.hpp" using namespace std; int nUniquePoints(const vector<double> &points) { int up = 0; for(vector<double>::const_iterator vb(points.begin()), vi(vb), ve(points.end()); vi!=ve; vi++) if ((vi == vb) || (*(vi-1) != *vi)) up++; return up; } void samplingFactor(co...
{ "language": "C++" }
#ifndef BOOST_MPL_SET_SET50_HPP_INCLUDED #define BOOST_MPL_SET_SET50_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // Copyright David Abrahams 2003-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICEN...
{ "language": "C++" }
/* * Copyright (c) 2012, Michael Lehn, Klaus Pototzky * * 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...
{ "language": "C++" }
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2019 Ryo Suzuki // Copyright (c) 2016-2019 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include "CToastNotification.hpp" namespace ...
{ "language": "C++" }
//== INCLUDES ================================================================= #include <fstream> #include <limits> #include <OpenMesh/Core/IO/BinaryHelper.hh> #include <OpenMesh/Core/IO/writer/VTKWriter.hh> #include <OpenMesh/Core/IO/IOManager.hh> #include <OpenMesh/Core/Utils/color_cast.hh> //=== NAMESPACES =====...
{ "language": "C++" }
/* * replay.c * * Copyright (c) 2010-2015 Institute for System Programming * of the Russian Academy of Sciences. * * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. * */ #include "qemu-common.h" #include "syse...
{ "language": "C++" }
/* Copyright 2010 Kevin Ottens <ervin@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) version 3, or any ...
{ "language": "C++" }
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkStream_DEFINED #define SkStream_DEFINED #include "include/core/SkData.h" #include "include/core/SkRefCnt.h" #include "include/core/SkScalar.h" #...
{ "language": "C++" }
/* * Copyright (c) 2015 Cryptonomex, Inc., 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...
{ "language": "C++" }
/* __________ _____ __ __\______ \_____ _______ ______ ____ _______ / \ | | \| ___/\__ \ \_ __ \/ ___/_/ __ \\_ __ \ | Y Y \| | /| | / __ \_| | \/\___ \ \ ___/ | | \/ |__|_| /|____/ |____| (____ /|__| /____ ...
{ "language": "C++" }
/* * Copyright (C) 2005-2011 MaNGOS <http://getmangos.com/> * Copyright (C) 2009-2011 MaNGOSZero <https://github.com/mangos/zero> * Copyright (C) 2011-2016 Nostalrius <https://nostalrius.org> * Copyright (C) 2016-2017 Elysium Project <https://github.com/elysium-project> * * This program is free software; you can ...
{ "language": "C++" }
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2015-2018 Baldur Karlsson * * 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...
{ "language": "C++" }
/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <utility> #include "pybind_helper.h" #include "python_options_utils_cpp.h" #include "circ...
{ "language": "C++" }
/*========================================================================= Program: Visualization Toolkit Module: vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.ht...
{ "language": "C++" }
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or ...
{ "language": "C++" }
/*************************************************************************** * @file The code is for the exercises in C++ Primmer 5th Edition * @author Yue Wang * @date 23 DEC 2013 * @remark ***************************************************************************/ // // Exercise 12.10: // Explai...
{ "language": "C++" }
/* Copyright (C) 2000-2012 by George Williams */ /* * 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 conditions and the following...
{ "language": "C++" }
/** @file VBIOS DXE policy definitions Copyright (c) 2019 Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _VBIOS_DXE_CONFIG_H_ #define _VBIOS_DXE_CONFIG_H_ #pragma pack(push, 1) #define VBIOS_DXE_CONFIG_REVISION 1 /** This data structur...
{ "language": "C++" }
/* * <one line to give the program's name and a brief idea of what it does.> * Copyright (C) 2016 <copyright holder> <email> * * 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 versi...
{ "language": "C++" }
// -------------------------------------------------------------------------------------------------------------------- // <copyright company="Chocolatey" file="IChocolateyGuiCacheService.cs"> // Copyright 2017 - Present Chocolatey Software, LLC // Copyright 2014 - 2017 Rob Reynolds, the maintainers of Chocolat...
{ "language": "C++" }
// Copyright 2004, 2005 The Trustees of Indiana University. // 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) // Authors: Nick Edmonds // Andrew Lumsdaine #ifndef...
{ "language": "C++" }
#include <iostream> #include <vector> #include <algorithm> #include <iterator> std::vector<int> GenerateFactors(int n) { std::vector<int> factors; factors.push_back(1); factors.push_back(n); for(int i = 2; i * i <= n; ++i) { if(n % i == 0) { factors.push_back(i); ...
{ "language": "C++" }
/* * Copyright (C) 2015 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
{ "language": "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.tx...
{ "language": "C++" }
/** * Copyright (C) 2019-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but W...
{ "language": "C++" }
/*==========================================================================*/ /* FILE DESCRIPTION: Rate main AUTHOR: Kildor GROUP: The NULL workgroup PROJECT: Contact`s rate PART: Main VERSION: 1.0 CREATED: 20.12.2006 23:11:41 EMAIL: kostia@ngs.ru ...
{ "language": "C++" }
// This is core/vgui/vgui_find.cxx //: // \file // \author fsm // \brief See vgui_find.h for a description of this file. #include "vgui_find.h" #include "vgui/vgui_tableau.h" // Does a depth-first search for the first tableau whose type_name() // method returns the given std::string. Returns 0 if no tableau is found...
{ "language": "C++" }
// Boost.Range ATL Extension // // Copyright Shunsuke Sogame 2005-2006. // 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 <pstade/vodka/drink.hpp> #include <boost/test/test_tools.hpp>...
{ "language": "C++" }
// unitrayDlg.h : header file // #if !defined(AFX_UNITRAYDLG_H__DE84CD38_DB2D_49F0_A688_65B7168154AA__INCLUDED_) #define AFX_UNITRAYDLG_H__DE84CD38_DB2D_49F0_A688_65B7168154AA__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////...
{ "language": "C++" }
/**************************************************************************** Copyright (C) 2013 Henry van Merode. All rights reserved. Copyright (c) 2015-2017 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and as...
{ "language": "C++" }
/* * Copyright (C) 2010 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
{ "language": "C++" }
// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com> // // 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://...
{ "language": "C++" }
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2003-2007 Jonathan Turkanis // 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/iostreams for d...
{ "language": "C++" }
#ifndef BOOST_MPL_VECTOR_AUX_PUSH_BACK_HPP_INCLUDED #define BOOST_MPL_VECTOR_AUX_PUSH_BACK_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // 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 htt...
{ "language": "C++" }
// 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. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library // (ge...
{ "language": "C++" }
/* * Active Directory Services Lightweight Directory Provider C * * Copyright 2017 Alex Henrie * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Licens...
{ "language": "C++" }
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL1.2 // expected-no-diagnostics void f1(double da) { double d; (void) 1.0; } #pragma OPENCL EXTENSION cl_khr_fp64 : enable void f2(void) { double d; (void) 1.0; } #pragma OPENCL EXTENSION cl_khr_fp64 : disable void f3(void) { double d; }
{ "language": "C++" }
// // FilesystemConfiguration.cpp // // Library: Util // Package: Configuration // Module: FilesystemConfiguration // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #include "Poco/Util/FilesystemConfiguration.h" #include "Poco...
{ "language": "C++" }
#pragma once #ifndef NTSTATUS typedef __success(return >= 0) LONG NTSTATUS; #endif #define VERSIONHELPERAPI inline bool #define _WIN32_WINNT_NT4 0x0400 #define _WIN32_WINNT_WIN2K 0x0500 #define _WIN32_WINNT_WINXP 0x0501 #define _WIN32_WINNT_WS03 0x0502 #define _WIN32_WINNT_WIN6...
{ "language": "C++" }
/* * Scriptographer * * This file is part of Scriptographer, a Scripting Plugin for Adobe Illustrator * http://scriptographer.org/ * * Copyright (c) 2002-2010, Juerg Lehni * http://scratchdisk.com/ * * All rights reserved. See LICENSE file for details. */ #include "stdHeaders.h" #include "ScriptographerEngin...
{ "language": "C++" }
//Copyright (c) 2008-2016 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) #ifndef UUID_7E7AB138196311E0907B246CDFD72085 #define UUID_7E7AB138196311E0907B246CDFD72085 ...
{ "language": "C++" }
// // detail/impl/win_iocp_handle_service.ipp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com) // Copyright (c) 2008 Rep Invariant Systems, Inc. (info@repinvariant.com) // // Distributed under the Boost Software License, Version 1.0. (See accom...
{ "language": "C++" }
#ifdef USE_OPENCV #include <string> #include <vector> #include "boost/scoped_ptr.hpp" #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/data_layer.hpp" #include "caffe/proto/caffe.pb.h" #include "caffe/util/db.hpp" #include "caffe/util/io...
{ "language": "C++" }
#include <vector> #include "caffe/layers/exp_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void ExpLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { NeuronLayer<Dtype>::LayerSetUp(bottom, top); const Dtype base ...
{ "language": "C++" }
// Copyright (C) 2003, Fernando Luis Cacciola Carballal. // // 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) // // See http://www.boost.org/libs/optional for documentation. // // Yo...
{ "language": "C++" }
// Copyright 2007-2010 Baptiste Lepilleur // Distributed under MIT license, or public domain if desired and // recognized in your jurisdiction. // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE #ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED #define LIB_JSONCPP_JSON_TOOL_H_INCLUDED /* This hea...
{ "language": "C++" }