text
string
meta
dict
/* [auto_generated] boost/numeric/odeint/algebra/norm_result_type.hpp [begin_description] Calculates the type of the norm_inf operation for container types [end_description] Copyright 2013 Karsten Ahnert Copyright 2013 Mario Mulansky Distributed under the Boost Software License, Version 1.0. (Se...
{ "language": "C++" }
#ifndef BOOST_MPL_AUX_PARTITION_OP_HPP_INCLUDED #define BOOST_MPL_AUX_PARTITION_OP_HPP_INCLUDED // Copyright Eric Friedman 2003 // Copyright Aleksey Gurtovoy 2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LI...
{ "language": "C++" }
/* * Copyright (C) 2012 Emweb bv, Herent, Belgium. * * See the LICENSE file for terms of use. */ #include "Wt/WApplication.h" #include "Wt/WContainerWidget.h" #include "Wt/WEnvironment.h" #include "Wt/WGridLayout.h" #include "Wt/WLogger.h" #include "StdGridLayoutImpl2.h" #include "SizeHandle.h" #include "DomEleme...
{ "language": "C++" }
// Copyright 2013 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 "chromeos/dbus/fake_shill_device_client.h" #include <algorithm> #include "base/bind.h" #include "base/location.h" #include "base/memory/ptr_uti...
{ "language": "C++" }
#include <set> using namespace std; /* * Longest Increasing Subsequence O(nlogn) * At a given iteration i, k-th element (1-indexed) in set is the * smallest element that has a size k increasing subsequence ending in it */ int lis(int arr[], int n) { multiset<int> s; multiset<int>::iterator it; for(int i = 0; i...
{ "language": "C++" }
// (C) Copyright Gennadiy Rozental 2001. // 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/test for the library home page. // // Description : contains definition for all tes...
{ "language": "C++" }
const char *neoGloss_vert_src = "uniform vec3 u_eye;\n" "layout(location = 0) in vec3 in_pos;\n" "layout(location = 1) in vec3 in_normal;\n" "layout(location = 2) in vec4 in_color;\n" "layout(location = 3) in vec2 in_tex0;\n" "out vec3 v_normal;\n" "out vec3 v_light;\n" "out vec2 v_tex0;\n" "out float v_fog;\n" "vo...
{ "language": "C++" }
/**************************************************************************** * * Copyright (c) 2020 Estimation and Control Library (ECL). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: ...
{ "language": "C++" }
/* -*- c++ -*- * Copyright (c) 2012-2019 by the GalSim developers team on GitHub * https://github.com/GalSim-developers * * This file is part of GalSim: The modular galaxy image simulation toolkit. * https://github.com/GalSim-developers/GalSim * * GalSim is free software: redistribution and use in source and bin...
{ "language": "C++" }
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __javax_swing_event_ListDataListener__ #define __javax_swing_event_ListDataListener__ #pragma interface #include <java/lang/Object.h> extern "Java" { namespace javax { namespace swing { namespace event { class L...
{ "language": "C++" }
#include <iostream> #include <queue> #include <stdio.h> #include <string.h> using namespace std; int N; char order[10]; int dir[6][3] = { {0,0,1}, {0,1,0}, {1,0,0}, {0,0,-1}, {0,-1,0}, {-1,0,0} }; const int MAXN = 20; int vis[MAXN][MAXN][MAXN]; char map[MAXN][MAXN][MAXN]; typedef struct my_node...
{ "language": "C++" }
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE127_Buffer_Underread__wchar_t_alloca_cpy_82a.cpp Label Definition File: CWE127_Buffer_Underread.stack.label.xml Template File: sources-sink-82a.tmpl.cpp */ /* * @description * CWE: 127 Buffer Under-read * BadSource: Set data pointer to before the allocated memory buf...
{ "language": "C++" }
// Boost.Range library // // Copyright Thorsten Ottosen 2003-2004. 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) // // For more information, see http://www.boost.org/libs/rang...
{ "language": "C++" }
/* ********************************************************************** * Copyright (c) 2002-2012, International Business Machines Corporation * and others. All Rights Reserved. ********************************************************************** * Date Name Description * 01/21/2002 aliu ...
{ "language": "C++" }
/* * Copyright 2006-2008 The FLWOR Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
{ "language": "C++" }
#ifndef BOOST_MPL_PROTECT_HPP_INCLUDED #define BOOST_MPL_PROTECT_HPP_INCLUDED // Copyright Peter Dimov 2001 // Copyright Aleksey Gurtovoy 2002-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...
{ "language": "C++" }
include "fzn_table_bool.mzn"; include "fzn_table_bool_reif.mzn"; %-----------------------------------------------------------------------------% % A table constraint: table(x, t) represents the constraint x in t where we % consider each row in t to be a tuple and t as a set of tuples. %--------------------------------...
{ "language": "C++" }
// Copyright 2015 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 CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ #define CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_ #include <string> #include "base/logging.h" #include "build/bu...
{ "language": "C++" }
/* Copyright (c) 2018 Anakin Authors All Rights Reserve. 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...
{ "language": "C++" }
/****************************************************************************** * $Id: ogr_xplane_nav_reader.cpp * * Project: X-Plane nav.dat file reader header * Purpose: Definition of classes for X-Plane nav.dat file reader * Author: Even Rouault, even dot rouault at mines dash paris dot org * ************...
{ "language": "C++" }
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/greengrass/Greengrass_EXPORTS.h> #include <aws/greengrass/GreengrassRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/greengrass/model/SoftwareToUpda...
{ "language": "C++" }
// 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...
{ "language": "C++" }
#ifdef USE_LEVELDB #ifndef CAFFE_UTIL_DB_LEVELDB_HPP #define CAFFE_UTIL_DB_LEVELDB_HPP #include <string> #include "leveldb/db.h" #include "leveldb/write_batch.h" #include "caffe/util/db.hpp" namespace caffe { namespace db { class LevelDBCursor : public Cursor { public: explicit LevelDBCursor(leveldb::Iterator* ...
{ "language": "C++" }
/** * This code is released under the * Apache License Version 2.0 http://www.apache.org/licenses/. * * (c) Daniel Lemire, http://lemire.me/en/ */ #ifndef CODECS_H_ #define CODECS_H_ #include "common.h" #include "util.h" #include "bitpackinghelpers.h" namespace FastPForLib { class NotEnoughStorage : public std...
{ "language": "C++" }
//===-- sancov.cc --------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------------------------------------...
{ "language": "C++" }
#include <algorithm> #include <vector> #include <sstream> using namespace std; char ispal[2501][2501]; struct PalindromesAnalyzer { long long summaryLength(vector<string> te) { string text = ""; for (int i = 0; i < te.size(); i++) text += te[i]; int n = text.size(); memset(ispal, 0, sizeof(ispal)); fo...
{ "language": "C++" }
module openconfig-packet-match-types { yang-version "1"; // namespace namespace "http://openconfig.net/yang/packet-match-types"; prefix "oc-pkt-match-types"; // import some basic types import openconfig-inet-types { prefix oc-inet; } import openconfig-extensions { prefix oc-ext; } // meta organi...
{ "language": "C++" }
/** * Copyright (C) 2008 Doug Judd (Zvents, Inc.) * * This file is part of Hypertable. * * Hypertable 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 any later ver...
{ "language": "C++" }
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/medialive/MediaLive_EXPORTS.h> #include <aws/medialive/model/AutomaticInputFailoverSettings.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/medialive/model...
{ "language": "C++" }
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2009 Tatsuhiro Tsujikawa * * 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 Lice...
{ "language": "C++" }
// (C) Copyright 2009-2011 Frederic Bron. // // 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_traits for most recent version inc...
{ "language": "C++" }
/* -------------------------------------------------------------------------- * * OpenMM * * -------------------------------------------------------------------------- * * This is part of the OpenMM molecular simulation toolkit originating from * ...
{ "language": "C++" }
/* * Copyright (C) 2014 The Android 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
{ "language": "C++" }
/**************************************************************************** This file is part of the GLC-lib library. Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) http://glc-lib.sourceforge.net GLC-lib is free software; you can redistribute it and/or modify it under the terms of...
{ "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 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) // // Preprocessed version of "boost/mpl/apply.hpp" header // -- DO NOT modify by hand! namespace boost { namespace ...
{ "language": "C++" }
/* Copyright 2013 Google Inc. All Rights Reserved. Distributed under MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Functions to estimate the bit cost of Huffman trees. */ #include "./bit_cost.h" #include "../common/constants.h" #include "../common/platform.h" #i...
{ "language": "C++" }
//===-- ABISysV_mips.h ----------------------------------------*- 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 // //===-----------------------------...
{ "language": "C++" }
#include "axis_limits_dialog.h" #include "ui_axis_limits_dialog.h" #include <QLineEdit> #include <QDoubleValidator> using std::numeric_limits; AxisLimitsDialog::AxisLimitsDialog(QWidget* parent) : QDialog(parent), ui(new Ui::AxisLimitsDialog) { ui->setupUi(this); _limits.min = (-numeric_limits<double>::max() / ...
{ "language": "C++" }
//------------------------------------------------------------------------------ // Copyright (c) 2003, Ingo Weinhold // // 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...
{ "language": "C++" }
From 6c36f0ff8c1f5852c33d2b23714f9f187cc6ff26 Mon Sep 17 00:00:00 2001 From: Khem Raj <raj.khem@gmail.com> Date: Fri, 5 Jun 2015 19:55:05 -0700 Subject: [PATCH] Exclude backtrace() API for non-glibc libraries It was excluding musl with current checks, so lets make it such that it considers only glibc when using backtr...
{ "language": "C++" }
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. /*============================================================================= OpenGLDrv.cpp: Unreal OpenGL RHI library implementation. =============================================================================*/ #include "OpenGLDrv.h" #include "Module...
{ "language": "C++" }
// Copyright 2001-2019 Crytek GmbH / Crytek Group. All rights reserved. #include "StdAfx.h" #include "ItemDescriptionDlg.h" #include "SmartObjectsEditorDialog.h" #include "SmartObjectClassDialog.h" #include "AI/AIManager.h" #include "IResourceSelectorHost.h" #include "Controls/QuestionDialog.h" IMPLEMENT_DYNAMIC(CSm...
{ "language": "C++" }
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2004, Industrial Light & Magic, a division of Lucas // Digital Ltd. LLC // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the f...
{ "language": "C++" }
// Copyright (c) 2011 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 NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ #define NET_HTTP_HTTP_AUTH_HANDLER_DIGEST_H_ #include <string> #include "base/basictypes.h" #include "b...
{ "language": "C++" }
/**CFile**************************************************************** FileName [sim.h] SystemName [ABC: Logic synthesis and verification system.] PackageName [Simulation package.] Synopsis [External declarations.] Author [Alan Mishchenko] Affiliation [UC Berkeley] Date [Ver....
{ "language": "C++" }
#include <robin_hood.h> #include <app/CtorDtorVerifier.h> #include <app/doctest.h> #include <app/randomseed.h> #include <app/sfc64.h> #include <unordered_map> #include <utility> TYPE_TO_STRING(robin_hood::unordered_flat_map<CtorDtorVerifier, CtorDtorVerifier>); TYPE_TO_STRING(robin_hood::unordered_node_map<CtorDtorV...
{ "language": "C++" }
/* * Copyright (C) 2010 Google Inc. All rights reserved. * Copyright (C) 2016 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...
{ "language": "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 // //===---------------------------...
{ "language": "C++" }
// (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000. // 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/typ...
{ "language": "C++" }
/*===================== begin_copyright_notice ================================== Copyright (c) 2017 Intel Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includi...
{ "language": "C++" }
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // This file was modified by Oracle on 2013, 2014, 2015. // Modifications copyright (c) 2013-2015 Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of ...
{ "language": "C++" }
// 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: // // ...
{ "language": "C++" }
#ifndef _LIBCPP_TYPE_TRAITS #define _LIBCPP_TYPE_TRAITS template <class _Tp> struct underlying_type { typedef __underlying_type(_Tp) type; }; #endif // _LIBCPP_TYPE_TRAITS
{ "language": "C++" }
/* * 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 distributed in the hope that it will be use...
{ "language": "C++" }
/* * Copyright (c) 2007, 2018, 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, version 2.0, * as published by the Free Software Foundation. * * This program is also distributed with...
{ "language": "C++" }
// 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. #ifndef UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ #define UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ #include <memory> #include "ba...
{ "language": "C++" }
/* * Copyright 2004-2006, Jérôme DUVAL. All rights reserved. * Copyright 2010, Karsten Heimrich. All rights reserved. * Copyright 2013, Rene Gollent, rene@gollent.com. * Distributed under the terms of the MIT License. */ #include "ExpanderWindow.h" #include <algorithm> #include <Alert.h> #include <Box.h> #incl...
{ "language": "C++" }
// Copyright 2015 Google Inc. All Rights Reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the COPYING file in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All contributing project authors may // be...
{ "language": "C++" }
#ifndef BOOST_ARCHIVE_POLYMORPHIC_IARCHIVE_HPP #define BOOST_ARCHIVE_POLYMORPHIC_IARCHIVE_HPP // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_iarchive.hpp /...
{ "language": "C++" }
#include <stdlib.h> #include "PriorityQueue.h" /* This comparison function is used to sort elements in key descending order. */ int compfunc(const FiboNode * const, const FiboNode * const); static int compFunc(const FiboNode * const node1, const FiboNode * const node2) { return ( ( ((QueueElement*)(node1))...
{ "language": "C++" }
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * ...
{ "language": "C++" }
// // ip/tcp.hpp // ~~~~~~~~~~ // // Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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 ASIO_IP_TCP_HPP #define ASIO_IP_TCP_HPP...
{ "language": "C++" }
// // executor_work_guard.hpp // ~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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 BOOST_ASIO_EXECUTOR...
{ "language": "C++" }
#ifndef BOOST_SERIALIZATION_ARRAY_HPP #define BOOST_SERIALIZATION_ARRAY_HPP // (C) Copyright 2005 Matthias Troyer and Dave Abrahams // 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) ...
{ "language": "C++" }
/* crypto/sha/sha256t.c */ /* ==================================================================== * Copyright (c) 2004 The OpenSSL Project. All rights reserved. * ==================================================================== */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <openssl/sh...
{ "language": "C++" }
// // detail/operation.hpp // ~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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 ASIO_DETAIL_OPERATI...
{ "language": "C++" }
/**************************************************************************** * VCGLib o o * * Visual and Computer Graphics Library o o * * _ O _ * * Co...
{ "language": "C++" }
// Copyright (c) 2017 The vulkano developers // Licensed under the Apache License, Version 2.0 // <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT // license <LICENSE-MIT or http://opensource.org/licenses/MIT>, // at your option. All files in the project carrying such // notice may not be co...
{ "language": "C++" }
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/> // Copyright (C) 2010 Winch Gate Property Limited // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version ...
{ "language": "C++" }
#ifndef GAINPUTINPUTDEVICEKEYBOARDEVDEV_H_ #define GAINPUTINPUTDEVICEKEYBOARDEVDEV_H_ #include "../GainputHelpersEvdev.h" #include "../../../include/gainput/GainputHelpers.h" namespace gainput { class InputDeviceKeyboardImplEvdev : public InputDeviceKeyboardImpl { public: InputDeviceKeyboardImplEvdev(InputManager&...
{ "language": "C++" }
 /* Copyright (c) 2016-present Maximus5 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 and the follo...
{ "language": "C++" }
/* * Generated by confdc --mib2yang-std * Source: mgmt/dmi/model/common/mib-source/VPN-TC-STD-MIB.mib */ /* * This YANG module has been generated by smidump 0.5.0: * * smidump -f yang VPN-TC-STD-MIB * * Do not edit. Edit the source file instead! */ module VPN-TC-STD-MIB { namespace "urn:ietf:params:xm...
{ "language": "C++" }
/* * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> * Copyright (C) 2005 Eric Seidel <eric@webkit.org> * Copyright (C) 2013 Google Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify ...
{ "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/osdep.h" #include "qapi/...
{ "language": "C++" }
#include <vector> #include <set> #include <cstdio> using namespace std; int main(){ int N,L; scanf("%d%d",&N,&L); vector<int>v(N); for(int i=0;i<N;i++)scanf("%d",&v[i]); multiset<int>se; for(int i=0;i<L-1;i++)se.insert(v[i]); for(int i=L-1;i<N;i++){ se.insert(v[i]); printf(i<N-1?"%d ":"%d\n",*se.begin()); ...
{ "language": "C++" }
// Copyright Hugh Perkins 2014 hughperkins at gmail // // 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 <iostream> #include <stdexcept> #include <cstring> ...
{ "language": "C++" }
// Copyright (c) 2011 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 CHROME_BROWSER_UI_WEBUI_WEB_UI_TEST_HANDLER_H_ #define CHROME_BROWSER_UI_WEBUI_WEB_UI_TEST_HANDLER_H_ #include "base/compiler_specific.h" #in...
{ "language": "C++" }
/* Boost interval/detail/c99sub_rounding_control.hpp file * * Copyright 2000 Jens Maurer * Copyright 2002 Hervé Brönnimann, Guillaume Melquiond, Sylvain Pion * * 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++" }
/*============================================================================= Copyright (c) 2011 Thomas Heller 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++" }
// (C) Copyright 2002-2008, Fernando Luis Cacciola Carballal. // // 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) // // 21 Ago 2002 (Created) Fernando Cacciola // 24 Dec 2007 (Refactored and worked around various ...
{ "language": "C++" }
/* This file is part of LIA_RAL which is a set of software based on ALIZE toolkit for speaker recognition. ALIZE toolkit is required to use LIA_RAL. LIA_RAL project is a development project was initiated by the computer science laboratory of Avignon / France (Laboratoire Informatique d'Avignon - LIA) [http://lia.univ-...
{ "language": "C++" }
/** Copyright 2017 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 law or agreed to in...
{ "language": "C++" }
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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.tx...
{ "language": "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 // //===---------------------------...
{ "language": "C++" }
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
{ "language": "C++" }
/* * Copyright 2017-2020 Leonid Yuriev <leo@yuriev.ru> * and other libmdbx authors: please see AUTHORS file. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as authorized by the OpenLDAP * Public License. * * A copy of this licens...
{ "language": "C++" }
// This is mul/mbl/tests/test_stochastic_data_collector.cxx #include <iostream> #include <string> #include "testlib/testlib_test.h" //: // \file // \author Ian Scott // \brief test vpdfl_pc_gaussian, building, sampling, saving etc. #ifdef _MSC_VER # include "vcl_msvc_warnings.h" #endif #include "vpl/vpl.h" // vpl_unl...
{ "language": "C++" }
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
{ "language": "C++" }
//! \example tutorial-autothreshold.cpp #include <cstdlib> #include <iostream> #include <visp3/core/vpImage.h> #include <visp3/gui/vpDisplayGDI.h> #include <visp3/gui/vpDisplayOpenCV.h> #include <visp3/gui/vpDisplayX.h> #include <visp3/io/vpImageIo.h> #if defined(VISP_HAVE_MODULE_IMGPROC) //! [Include] #include <visp...
{ "language": "C++" }
/** * ============================================================================= * Source Python * Copyright (C) 2012-2015 Source Python Development Team. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it a...
{ "language": "C++" }
#include "MinimalValueType.h" std::atomic<int> MinimalValueType::instances(0);
{ "language": "C++" }
// Copyright 2017 the V8 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. #include "src/builtins/builtins-string-gen.h" #include "src/builtins/builtins-regexp-gen.h" #include "src/builtins/builtins-utils-gen.h" #include "src/...
{ "language": "C++" }
// 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 "media/base/stream_parser_buffer.h" #include "base/logging.h" #include "media/base/buffers.h" namespace media { static bool HasNestedFadeO...
{ "language": "C++" }
//===- ToyCombine.cpp - Toy High Level Optimizer --------------------------===// // // 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 // //===---------------------------...
{ "language": "C++" }
// Copyright 2013 the V8 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. #include "src/libplatform/default-platform.h" #include <algorithm> #include <queue> #include "include/libplatform/libplatform.h" #include "src/base/de...
{ "language": "C++" }
/* * Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. * You may obtain a copy of Mulan PSL v1 at: * * http://license.coscl.org.cn/MulanPSL ...
{ "language": "C++" }
#ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <iterator> #else #include <stdarg.h> #endif #include <algorithm> #include "myx_sql_tree_item.h" #include "myx_lex_helpers.h" #include <functional> #include <assert.h> #ifdef _WIN32 #ifndef strcasecmp #define strcasecmp _stricmp #define s...
{ "language": "C++" }
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // 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 ob...
{ "language": "C++" }
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.lslboost.org/LICENSE_1_0.txt) // // See http://www.lslboost.org/libs/c...
{ "language": "C++" }