text stringlengths 7 961k |
|---|
/************************************************************
*
* 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 ... |
// Copyright (c) 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 "gn/functions.h"
#include "gn/config_values_generator.h"
#include "gn/err.h"
#include "gn/parse_tree.h"
#include "gn/scope.h"
#include "gn/t... |
// Copyright (c) 2014-2017 The Crowdcoin Core developers; Copyright (c) 2018-2019 The CRowdCLassic Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "core_io.h"
#include "darksend.h"
#include "governan... |
//
// Copyright (c) 2013-2021 Winlin
//
// SPDX-License-Identifier: MIT
//
#ifndef SRS_CORE_VERSION4_HPP
#define SRS_CORE_VERSION4_HPP
#define VERSION_MAJOR 4
#define VERSION_MINOR 0
#define VERSION_REVISION 245
#endif |
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// CHECK: store i32 49, i32* %size
// CHECK: store i32 52, i32* %size
template<typename T>
class TemplateClass {
public:
void templateClassFunction() {
int size = sizeof(__PRETTY_FUNCTION__);
}
};
// CHECK: store i32 27, i32* %size
// CHECK: store i32 30, i... |
// Copyright (c) 2013, 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. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyright (c) 2011 The... |
//=================================================================================================
/*!
// \file src/mathtest/svecsvecsub/VCaVZa.cpp
// \brief Source file for the VCaVZa sparse vector/sparse vector subtraction math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This f... |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
#include "StdAfx.h"
#include "PythonNetworkStream.h"
void CPythonNetworkStream::OnRemoteDisconnect()
{
PyCallClassMemberFunc(m_poHandler, "SetLoginPhase", Py_BuildValue("()"));
}
void CPythonNetworkStream::OnDisconnect()
{
}
///////////////////////////////////////////////////////////////////////////////////////////... |
//
// detail/posix_fd_set_adapter.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 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)
//
#ifnd... |
#include <iostream>
// Copyright[2019][Joel Leagues aka Scourge] under the Apache V2 Licence
#include "xvector.h"
#include "xstring.h"
#include "xmap.h"
#include <map>
#include <unordered_map>
#include <utility>
using std::cout;
using std::endl;
using std::string;
// note: enum = text to num
// vector =... |
/*
* Copyright 2018 National Technology & Engineering Solutions of
* Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS,
* the U.S. Government retains certain rights in this software.
*
* The MIT License (MIT)
*
* Copyright (c) 2018 Sandia Corporation
*
* Permission is hereby granted, ... |
//////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2013-2015 Via Technology Ltd. All Rights Reserved.
// (ken dot barker at via-technology dot co dot uk)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// ... |
#include <set>
#include "vset.h"
#include "vset_ordered.h"
#include <vector>
#include <utility>
#include <chrono>
#include <iostream>
using namespace std;
using namespace std::chrono;
using namespace sortedvector;
template<typename S, typename G>
vector<pair<int,double>> timeinsert(int x0, int dx, int x1,
int n, G... |
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
//
// This file was originally written by Salvatore Russo.
// I (Nikolaus Gebhardt) did some minor modifications and changes to it and
// integrated i... |
/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2020 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// UnitConverter.xaml.cpp
// Implementation of the UnitConverter class
#include "pch.h"
#include "UnitConverter.xaml.h"
#include "CalcViewModel/Common/TraceLogger.h"
#include "CalcViewModel/UnitConverterViewModel.h"
#inclu... |
/**
* Copyright (c) 2019 - Herman Polloni.
* This code is licensed under MIT license (see LICENSE for details)
*/
#include "netifaces/netifaces.hpp"
#include <iostream>
int main(int argc, char** argv) {
const auto& interfaces = netifaces::interfaces();
for (const auto& interface : interfaces) {
std:... |
#include "list.h"
#include "ui_list.h"
QString HNECG;
QStringList list;
QMap<QString,QString> map;
List::List(QWidget *parent, QString hn) :
QWidget(parent),
ui(new Ui::List)
{
HNECG = hn;
getECGlist(hn);
ui->setupUi(this);
ui->lineEdit->insert(hn);
}
List::~List()
{
delete ui;
}
void... |
#include "FusionEKF.h"
#include <iostream>
#include "Eigen/Dense"
#include "tools.h"
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::cout;
using std::endl;
using std::vector;
/**
* Constructor.
cd /home/workspace/CarND-Extended-Kalman-Filter-Project
*/
FusionEKF::FusionEKF() {
is_initialized_ = false;
... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestOSPRayDynamicScene.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This so... |
/*
* 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... |
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* CompressBlosc.cpp
*
* Created on: Jun 18, 2019
* Author: William F Godoy godoywf@ornl.gov
* Rene Widera r.widera@hzdr.de
*/
#include "CompressBlosc.h"
extern "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.
// Keep this file in sync with entry_kernel.h.
#include "sync/syncable/syncable_enum_conversions.h"
#include <string>
#include "testing/gtest/inclu... |
// 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 "base/basictypes.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "content/b... |
/*
Given the root of a binary search tree and the lowest and highest boundaries as low and high, trim the tree so that all its elements lies in [low, high]. Trimming the tree should not change the relative structure of the elements that will remain in the tree (i.e., any node's descendant should remain a descendant). I... |
#include <iostream>
#include <vector>
using namespace std;
int main(void)
{
int sum = 0, n, i, size;
vector<int> arr;
cin >> n;
while (n > 0)
{
for (i = 1; (i*(i + 1) / 2) <= n; i++);
i--;
arr.push_back(i);
n -= (i*(i + 1) / 2);
}
size = arr.size();
for (int i = 0; i < size; i++)
sum += arr[i];
cout ... |
#include "common/network/connection_impl.h"
#include <atomic>
#include <cstdint>
#include <memory>
#include "envoy/common/exception.h"
#include "envoy/common/platform.h"
#include "envoy/config/core/v3/base.pb.h"
#include "envoy/event/timer.h"
#include "envoy/network/filter.h"
#include "envoy/network/socket.h"
#inclu... |
/**
* @file
* @brief Non-enchantment spells that didn't fit anywhere else.
* Mostly Transmutations.
**/
#include "AppHdr.h"
#include "spl-other.h"
#include "act-iter.h"
#include "delay.h"
#include "env.h"
#include "food.h"
#include "godcompanions.h"
#include "libutil.h"
#include "message.h"
#include "mi... |
/*
Copyright (c) 2015 - present Advanced Micro Devices, Inc. All rights reserved.
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 us... |
#ifndef RED9_SRLM_BALANCER_HPP__
#define RED9_SRLM_BALANCER_HPP__
#include "RNCStreamProcessor.hpp"
#include <RNCState.hpp>
#include "SensorEstimator.hpp"
#include "CSStreamProcessor.hpp"
#include <CrossSection.hpp>
class Balancer : public RNCStreamProcessor, public CSStreamProcessor {
private:
std::vector<Sens... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 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 (the ... |
/**************************************************************************
Copyright (c) 2017 sewenew
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/licen... |
/*
* This file is part of the ProVANT simulator project.
* Licensed under the terms of the MIT open source license. More details at
* https://github.com/Guiraffo/ProVANT-Simulator/blob/master/LICENSE.md
*/
/**
* @file This file contains the implementation of the LQRQuadcopter class.
*
* @author Jonatan Campos
*... |
/*
Copyright 2020 The OneFlow 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 agre... |
#include "tracking.h"
#include <iostream>
#include "Dense"
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::cout;
using std::endl;
using std::vector;
Tracking::Tracking() {
is_initialized_ = false;
previous_timestamp_ = 0;
// create a 4D state vector, we don't know yet the values of the x state
kf_.x... |
//
// Copyright (c) 2008-2022 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, m... |
/*
* Copyright (c) 2017-2020 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... |
/*
* The MIT License
*
* Copyright (c) 1997-2020 The University of Utah
*
* 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
* right... |
/*
* CGraphics.cpp
*
* Created on: 2015. 8. 5.
* Author: yoo2001818
*/
#include "CGraphics.h"
CTexture * CGraphics::spriteSheet = NULL;
CGraphics::CGraphics() {
texture = NULL;
rotation = 0;
flip = SDL_FLIP_NONE;
src = NULL;
alpha = 255;
}
CGraphics::~CGraphics() {
if (texture != NULL && text... |
#pragma once
#include <memory>
namespace spn {
// スマートポインタの型判定
template <class T>
struct IsUniquePointer : std::false_type {};
template <class... Ts>
struct IsUniquePointer<std::unique_ptr<Ts...>> : std::true_type {};
template <class T>
struct IsSharedPointer : std::false_type {};
template <class... Ts>
struc... |
/**
* Copyright (c) 2015, Jozef Stefan Institute, Quintelligence d.o.o. and contributors
* All rights reserved.
*
* This source code is licensed under the FreeBSD license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "modinit.h"
using namespace v8;
void InitFs(Handle<Object... |
#include "kernel/arch/idt.hpp"
#include "kernel/arch/8259A.hpp"
#include "kernel/arch/cpu.hpp"
#include "kernel/arch/exception.hpp"
#include "kernel/arch/gdt.hpp"
#include "kernel/arch/interrupt.hpp"
#include "kernel/arch/klib.hpp"
#include "kernel/kernel.hpp"
#include "kernel/mm/buddy.hpp"
#include "kernel/mm/new.hpp"... |
// 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 "ui/aura/client/aura_constants.h"
#include "ui/aura/window_property.h"
#include "ui/gfx/rect.h"
DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_... |
#include "Sequence.h"
#include "DirManager.h"
#include <wx/hash.h>
#include <vector>
#include <iostream>
class SequenceTest
{
private:
Sequence *mSequence;
DirManager *mDirManager;
std::vector<float> mMemorySequence;
public:
SequenceTest()
{
std::cout << "==> Testing Sequence\n";
srand(time... |
//$Id: BrouwerMeanLongParameters.hpp 2013-05-24 Youngkwang Kim $
//------------------------------------------------------------------------------
// File: BrouwerMeanLongParameters.hpp
//------------------------------------------------------------------------------
// GMAT: General Mission An... |
// Copyright 2016 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 b... |
// Copyright 2013, For toft authors.
// Author: An Qin (anqin.qin@gmail.com)
//
#include "toft/storage/seqfile/local_sequence_file_reader.h"
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <limits.h>
#include <list>
#include "toft/storage/file/local_file.h"
namespace toft {
namespace {
class SequenceF... |
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
#include <cstring>
#include <cstdbool>
#include <cstdint>
#include <cstdlib>
#include <gtest/gtest.h>
extern "C" {
#include "usb/cmd.h"
#include "usb/message.h"
#include "usb/packet.h"
}
TEST(MessageBlank, Message)
{
/* Given */
struct message *message = NULL;
/* When */
message = messag... |
// Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <iostream>
#include <fstream>
#include "init.h" // for pwalletMain
#include "bitcoinrpc.h"
#include "ui_interface.h"
#in... |
//
// KeePassHotKey
// TraceFile.cpp
//
// Copyright 2022 SGrottel (https://www.sgrottel.de)
//
// 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-... |
/*
* 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 ... |
/*
* Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2007-2009 Torch Mobile, Inc.
*
* 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 t... |
#include "MActionListenerList.h"
MActionListenerList::MActionListenerList(void)
{
}
MActionListenerList::~MActionListenerList(void)
{
}
void MActionListenerList::fireActionPerformed( void* ptSrc )
{
unsigned int count = this->getListenerCount();
for( unsigned int i=0;i<count;i++ )
{
((IActionListener*)this->ivL... |
#include <iostream>
#include <cmath>
#include <algorithm>
#include <string>
using namespace std;
template <class T1,class T2>
struct Closer {
// 在此处补充你的代码
T1 loc;
T2 func;
public:
Closer( T1 loc, T2 func): loc(loc), func(func)
{ }
bool operator () (const T1 & a1, const T1 & a2)
{
... |
#pragma once
// blocktriple.hpp: definition of a (sign, scale, significant) representation of a generic floating-point value
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <cassert>
#inc... |
#include "Halide.h"
#include "halide_benchmark.h"
using namespace Halide;
using namespace Halide::Tools;
double run_test(bool auto_schedule) {
int W = 1920;
int H = 1024;
Buffer<uint8_t> in(W, H, 3);
for (int y = 0; y < in.height(); y++) {
for (int x = 0; x < in.width(); x++) {
fo... |
#include <ATen/ATen.h>
#include <ATen/Parallel.h>
#include <ATen/native/quantized/cpu/embedding_packed_params.h>
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
#include <torch/library.h>
torch::class_<EmbeddingPackedParamsBase> register_embedding_params();
at::Tensor PackedEmbeddingBagWeight::unpack() {
auto p... |
namespace hiro {
Settings::Settings() {
string path = {Path::userData(), "hiro/"};
auto document = BML::unserialize(file::read({path, "windows.bml"}));
document["extendedFrameBounds/popup/x"].value(efbPopup.x);
document["extendedFrameBounds/popup/y"].value(efbPopup.y);
document["extendedFrameBounds/popup/wi... |
/*
This file is part of the PhantomJS project from Ofi Labs.
Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com>
Copyright (C) 2011 Ivan De Marino <ivan.de.marino@gmail.com>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following cond... |
// Copyright (c) 2011-2013 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 "splashscreen.h"
#include "clientversion.h"
#include "util.h"
#include <QPainter>
#undef loop /* ugh, remove this wh... |
/**
* @file AccumulatorProofOfKnowledge.cpp
*
* @brief AccumulatorProofOfKnowledge class for the Zerocoin library.
*
* @author Ian Miers, Christina Garman and Matthew Green
* @date June 2013
*
* @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
* @license This pro... |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* 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.
*/
#include "FINDKEY_onReceived.h"
#include "logdevice/common/configuration/Configuration... |
/************************************************************
*
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protocol, API, Server, CLI, GUI
*
* -- Anonymous Numbered Accounts.
* -- Untraceable Digital Cash.
* -- Triple-Signed Receipts... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/db_impl.h"
#include <stdint.h>
#include <stdio.h>
#include <algorithm>
#include <atomic>... |
/*
* Copyright (c) 2004-2005 The Regents of The University of Michigan
* 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
* not... |
/*
* HashingOverlapper.cpp
*
* Created on: 31.01.2013
* Author: Christian Staudt
*/
#include <networkit/auxiliary/Log.hpp>
#include <networkit/overlap/HashingOverlapper.hpp>
namespace NetworKit {
Partition HashingOverlapper::run(const Graph& G, const std::vector<Partition>& clusterings) {
DEBUG("Sta... |
#include <scripting/binding/components/light.h>
#include <scripting/binding/assets/texture.h>
#include <systems/light_system.h>
#include <systems/entity_system.h>
#include <interfaces/iworld.h>
#include <interfaces/irenderer.h>
#include <interfaces/iscript_context.h>
#include <platform/post_process_manager.h>
namespac... |
// 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/contacts/fake_contact_database.h"
#include "chrome/browser/chromeos/contacts/contact.pb.h"
#include "content/public... |
// Copyright 2019 The Fuchsia 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 "local-filesystem.h"
#include <fcntl.h>
#include <lib/fdio/directory.h>
#include <lib/fdio/fd.h>
#include <lib/fdio/fdio.h>
#include <lib/fdio/na... |
#include "core.h"
#include "wbcompeldaimotion.h"
#include "wbcompeldtransform.h"
#include "wbcompeldcollision.h"
#include "wbcompelddoor.h"
#include "Components/wbcompeldhealth.h"
#include "Components/wbcomprodinknowledge.h"
#include "Components/wbcomprodinresourcemap.h"
#include "Components/wbcompstatmod.h"
#include "... |
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software. See LICENSE.txt for details.
//
// Author: Denis Bueno
#include "supp/model_justifier.h"
#include "supp/debug.h"
#incl... |
/**
* Copyright (c) 2017-present, 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 ... |
/*
* Copyright (c) 2014 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... |
// Common/Vector.cpp
#include "StdAfx.h"
#include <string.h>
#include "Vector.h"
CBaseRecordVector::~CBaseRecordVector()
{ delete []((unsigned char *)_items); }
void CBaseRecordVector::Clear()
{ DeleteFrom(0); }
void CBaseRecordVector::DeleteBack()
{ Delete(_size - 1); }
void CBaseRecordVector::DeleteFrom(i... |
/*
*
* Copyright (c) 2020-2022 Project CHIP Authors
* Copyright (c) 2013-2017 Nest Labs, 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
... |
#include "ofApp.h"
int main()
{
ofGLFWWindowSettings settings;
settings.setGLVersion(3, 2);
settings.setSize(1280, 720);
ofCreateWindow(settings);
ofRunApp(new ofApp());
} |
#include "StandardProfile/impl/FrameworkImpl.hpp"
#ifdef NDEBUG
#define DEBUG_MESSAGE(a) /**/
#else
#define DEBUG_MESSAGE(a) a
#endif
#include <iostream>
#include "abstractDataTypes/Any.hpp"
#include "abstractDataTypes/SubsetUnion.hpp"
#include "StandardProfile/impl/StandardProfilePackageImpl.hpp"
#include "uml... |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2002
*
* Last modified:
* $Date: 2009-09-09 05:10:29 +1000 (Wed, 09 Sep 2009) $ by $Author: schulte $
* $Revision: 9692 $
*
* T... |
/**
The following license terms and conditions apply, unless a redistribution
agreement or other license is obtained by KUKA Roboter GmbH, Augsburg, Germany.
SCOPE
The software �KUKA Sunrise.Connectivity FRI Client SDK� is targeted to work in
conjunction with the �KUKA Sunrise.Connectivity FastRobotInterface� toolki... |
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translato... |
//
//
// Copyright 2020 gRPC 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 law or agree... |
/******************************************************************************
The MIT License(MIT)
Embedded Template Library.
https://github.com/ETLCPP/etl
https://www.etlcpp.com
Copyright(c) 2019 jwellbelove
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associat... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__char_environment_ifstream_61a.cpp
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-61a.tmpl.cpp
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: environment Read input from an env... |
/* This file is automatically generated; do not edit. */
/* Add the files to be included into Makefile.am instead. */
#include <ql/legacy/libormarketmodels/all.hpp> |
// -*- coding: us-ascii-unix -*-
#include "wx/bitmap.h"
#include "wx/rawbmp.h"
#include "wx/dcmemory.h"
#include "bitmap/color.hh"
#include "tests/test-util/wx-test-util.hh"
#include "util-wx/convert-wx.hh"
namespace faint{
using PixelData = wxPixelData<wxBitmap, wxAlphaPixelFormat>;
Color get_color_wxBitmap(wxBitmap... |
#ifndef IGB_STM32_PERIPH_I2C_SLAVE_H
#define IGB_STM32_PERIPH_I2C_SLAVE_H
#include <igb_stm32/periph/i2c.hpp>
#include <igb_stm32/hal.hpp> // TODO: remove hal dependency
namespace igb {
namespace stm32 {
enum class I2cSlaveState : uint8_t {
transmit = 0,
receive,
listen,
};
// Currently, it's support only I2C... |
/*
* 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 ... |
/**
* Copyright Verimag laboratory.
*
* contributors:
* Jacques Combaz (jacques.combaz@univ-grenoble-alpes.fr)
*
* This software is a computer program whose purpose is to generate
* executable code from BIP models.
*
* This software is governed by the CeCILL-B license under French law and
* abiding by the... |
// Copyright 2008-present Contributors to the OpenImageIO project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/OpenImageIO/oiio
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <OpenImageIO/dassert.h>
#include <OpenImageIO/filesystem.h>
#include <OpenImageIO/fmath.h>
#include <OpenIma... |
#include "send_mail.hpp"
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <cstring>
#include <iomanip>
#include "../libs/errnoexception.hpp"
#include "../libs/libexception.hpp"
#include "../libs/scopeguard.hpp"
namespace ct... |
#include "sensor/base.hpp"
cSensor::cSensor()
: m_before_first{true}
{ } |
//Copyright 2016 Adam G. Smith
//
//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 writing... |
/*
* DHCPClient.cpp
*
* Created on: Mar 4, 2018
* Author: tristan
*/
#define LOG_MODULE "DHCP"
#include "DHCPClient.h"
#include "DHCPClientPrivate.h"
#include "Stack.h"
//#include "UDP.h"
#include "UDPSocket.h"
#include "../Network.h"
#include <LichtensteinApp.h>
#include <sys/System.h>
#include <cstdi... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2017-2018 The PIVX developers
// Copyright (c) 2019 The Vulcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sync.h"
#include <... |
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include "nnti/nnti_pch.hpp"
#include "nnti/nntiConfig.h"
#include <mpi.h>
#include <assert.h>
#include <deq... |
// Copyright 2014 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/android/compositor/layer/toolbar_layer.h"
#include "cc/layers/nine_patch_layer.h"
#include "cc/layers/solid_color_layer.h"
#incl... |
//=================================================================================================
/*!
// \file src/mathtest/dmatsmatschur/UDaHCa.cpp
// \brief Source file for the UDaHCa dense matrix/sparse matrix Schur product math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// Thi... |
#include <bits/stdc++.h>
using namespace std;
struct Node
{
int data;
Node * next;
Node (int x)
{
data=x;
next=NULL;
}
};
void displayList(Node *head)
{
while(head)
{
cout<<head->data<<" ";
head=head->next;
}
}
Node * joinTheLists(Node * head1, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.