text stringlengths 54 60.6k |
|---|
<commit_before>//=======================================================================
// Copyright (c) 2013-2017 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================... |
<commit_before>/**
* @file MessageBuffers.hpp
* @ingroup
* @author tpan
* @brief buffering data for MPI send/receive
* @details MessageBuffers provides buffering for MPI Send/Receive messages.
* Terminology: Message is an MPI compatible message, serialized from buffer, including the appropriate metad... |
<commit_before>#ifndef AURACLE_HH
#define AURACLE_HH
#include <iostream>
#include <set>
#include <string>
#include <unordered_set>
#include <vector>
#include "aur/aur.hh"
#include "inmemory_repo.hh"
#include "pacman.hh"
class PackageOrDependency : public std::variant<std::string, aur::Dependency> {
public:
using ... |
<commit_before>//=-- SystemZHazardRecognizer.h - SystemZ Hazard Recognizer -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2011 Vince Durham
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2017 Daniel Kraft
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licens... |
<commit_before>/*
*
* Copyright 2015, 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, thi... |
<commit_before>#ifndef _BACKUP_H_
#define _BACKUP_H_
#include "cmdline.hpp"
class Backup
{
public:
Backup();
Backup(const string &filename);
bool execute(const vector<string>);
//virtual bool isValid() = 0;
};
#endif
<commit_msg>added backup<commit_after>#ifndef _BACKUP_H_
#define _BACKUP_H_
#inclu... |
<commit_before>/*
Kopete Contactlist Model
Copyright (c) 2007 by Aleix Pol <aleixpol@gmail.com>
Copyright (c) 2008 by Matt Rogers <mattr@kde.org>
Copyright (c) 2009 by Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
Kopete (c) 2002-2008 by the Kopete de... |
<commit_before>#ifndef GNR_INVOKE_HPP
# define GNR_INVOKE_HPP
# pragma once
#include <tuple>
namespace gnr
{
template <typename F, typename ...A>
constexpr auto invoke_all(F f, A&& ...a) noexcept(noexcept(
(f(std::forward<decltype(a)>(a)), ...)))
{
(f(std::forward<decltype(a)>(a)), ...);
}
template <typename F,... |
<commit_before>/* 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/. */
#ifndef CROFBASE_HPP_
#define CROFBASE_HPP_
#define OF_DPA
#include <sys/types.h>
#include <sys/w... |
<commit_before>/*
* Copyright 2011 Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*/
#include "memoryleak.h"
#include <QDebug>
#include <QSettings>
#inclu... |
<commit_before>/**
* @file fractile.cpp
*
* @date June, 2016
* @author Tack
**/
#include "fractile.h"
#include <iostream>
#include <algorithm>
#include <string>
#include <boost/thread.hpp>
#include "logger_factory.h"
#include "plugin_factory.h"
#include "json_parser.h"
#include "fetcher.h"
#include "ensemble.... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2010 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>//
// Copyright 2013 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License
// and the following modification to it: Section 6 Trademarks.
// deleted and replaced with:
//
// 6. Trademarks. Thi... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before><commit_msg>dump more udev info<commit_after><|endoftext|> |
<commit_before>// g++ -std=c++11 problem2.cpp && ./a.exe
// output:
// sum = 4613731
#include <iostream>
int problem2(int num)
{
int sum = 0;
for (int f1 = 1, f2 = 1; f2 < num; f2 += f1, f1 = f2 - f1) {
if (f2 % 2 != 0)
sum += f2;
}
return sum;
}
int main(int argc, char const* arg... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>/*************************************************************************
* UrBackup - Client/Server backup system
* Copyright (C) 2011 Martin Raiber
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... |
<commit_before>// Copyright 2008 Paul Hodge
#include "common_headers.h"
#include "circa.h"
#include "branch_iterators.hpp"
namespace circa {
Branch::~Branch()
{
// Dealloc_value on all non-types
for (unsigned int i = 0; i < _terms.count(); i++)
{
Term *term = _terms[i];
if (term == NUL... |
<commit_before>/* Copyright 2020 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 appl... |
<commit_before>/**
* OpenColorIO conversion Iop.
*/
#include "ColorSpaceConversion.h"
namespace OCIO = OCIO_NAMESPACE;
#include <DDImage/PixelIop.h>
#include <DDImage/NukeWrapper.h>
#include <DDImage/Row.h>
#include <DDImage/Knobs.h>
#include <string>
ColorSpaceConversion::ColorSpaceConversion(Node *n) : DD::I... |
<commit_before>#include "broker.hpp"
#include "message.hpp"
#include <algorithm>
#include <boost/algorithm/string.hpp>
#include <unordered_map>
namespace {
bool revStrEquals(const std::string& str1, const std::string& str2) { //compare strings in reverse
if(str1.length() != str2.length()) return false;
for(i... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm 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://ww... |
<commit_before>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser G... |
<commit_before>/*********************************************************************************
* Copyright (c) 2014 David D. Marshall <ddmarsha@calpoly.edu>
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies... |
<commit_before>//===- PowerPCInstrInfo.cpp - PowerPC Instruction Information ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>#include <iostream>
#include <sstream>
#include <vector>
#include <stdio.h>
class Node {
private:
std::string value;
std::string name;
std::vector<Node *> childs;
bool isset;
bool is_array;
bool has_valid_childs;
int last_key_id;
Node *parent;
void setParent(Node *parent) {
this->parent = pare... |
<commit_before>#pragma once
#include <mapbox/geojsonvt/types.hpp>
namespace mapbox {
namespace geojsonvt {
struct Tile {
mapbox::geometry::feature_collection<int16_t> features;
uint32_t num_points = 0;
uint32_t num_simplified = 0;
};
namespace detail {
class InternalTile {
public:
const uint8_t z;
... |
<commit_before>#include "ray/core_worker/transport/direct_task_transport.h"
#include "ray/core_worker/transport/dependency_resolver.h"
#include "ray/core_worker/transport/direct_actor_transport.h"
namespace ray {
Status CoreWorkerDirectTaskSubmitter::SubmitTask(TaskSpecification task_spec) {
RAY_LOG(DEBUG) << "Sub... |
<commit_before>#ifndef MATH_VECTOR_2_HPP
#define MATH_VECTOR_2_HPP
#include <math.h>
// Microsoft compiler doesn't support constexpr
#ifdef _WIN32
#define constexpr
#endif
namespace geometry
{
template <class T>
class Vector2
{
public:
constexpr Vector2() : Vector2(0, 0) {}
... |
<commit_before>#ifndef SERENITY_HTTP_REQUEST_HPP_
#define SERENITY_HTTP_REQUEST_HPP_
#include <string>
#include <map>
#include <iostream>
#include "response.hpp"
namespace serenity { namespace http {
const unsigned int nothing = 0;
const unsigned int crlf_01_start = 1;
const unsigned int crlf_01_end = 2;... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (ivan.frade@nokia.com)
**
** This file is part of the test suite of the QtSparql module (not yet part... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICE... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICE... |
<commit_before>// Copyright (c) 2006- Facebook
// Distributed under the Thrift Software License
//
// See accompanying file LICENSE or visit the Thrift site at:
// http://developers.facebook.com/thrift/
#include <sys/socket.h>
#include <sys/poll.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/tcp.h... |
<commit_before>#include "MatrixUtils.h"
#include <numeric>
#include <set>
#include <vector>
#include <iterator>
#include <unsupported/Eigen/SparseExtra>
#include <SmurffCpp/Utils/Error.h>
Eigen::MatrixXd smurff::matrix_utils::dense_to_eigen(const smurff::MatrixConfig& matrixConfig)
{
if(!matrixConfig.isDense())
... |
<commit_before>#include "GlobalResources.h"
#include "../ResourceManager.h"
#ifdef WIN32
#include "Dx11UmbralEffectProvider.h"
#include "athena/win32/Dx11GraphicDevice.h"
#elif defined(__APPLE__)
#include "IosUmbralEffectProvider.h"
#endif
CGlobalResources::CGlobalResources()
{
}
CGlobalResources::~C... |
<commit_before>
/*
* Copyright 1999-2000,2004-2005 The Apache Software 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... |
<commit_before>#include "connections/LineConnector.h"
#include <QBrush>
#include <QGraphicsWidget>
#include <QPainter>
#include <QPen>
namespace i6engine {
namespace particleEditor {
namespace connections {
LineConnector::LineConnector(QGraphicsWidget * first, QGraphicsWidget * second, QColor colour, Qt::PenStyle l... |
<commit_before>/*************************************************************************
*
* $RCSfile: FilterConfigCache.hxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: obo $ $Date: 2005-04-13 10:59:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the foll... |
<commit_before>/*
This tutorial shows how to write a simple matrix multiplication for gpu.
To run this tutorial
cd build/
make run_developers_tutorial_04gpu
*/
#include <tiramisu/tiramisu.h>
#define SIZE0 1000
using namespace tiramisu;
int main(int argc, char **argv)
{
tiramisu:... |
<commit_before>#include<unordered_map>
#include "reductions.h"
using namespace std;
namespace MARGINAL {
typedef pair<float,float> marginal;
struct data
{
float initial_numerator;
float initial_denominator;
bool id_features[256];
feature temp[256];//temporary storage when reducing.
audit_strings_ptr as... |
<commit_before>/*******************************************************************/
/* XDMF */
/* eXtensible Data Model and Format */
/* */
/* Id : Id */
/* Date ... |
<commit_before>/* Copyright 2020 The TensorFlow Quantum 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... |
<commit_before>/**
* \file
* \brief SoftwareTimerOperationsTestCase class implementation
*
* \author Copyright (C) 2014-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of ... |
<commit_before>#include <jni.h>
#include "AppDelegate.hpp"
namespace {
std::unique_ptr<eetest::AppDelegate> appDelegate;
} // namespace
void cocos_android_app_init(JNIEnv* env) {
appDelegate.reset(new eetest::AppDelegate());
}
<commit_msg>Use std::make_unique.<commit_after>#include <jni.h>
#include "AppDelegate... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkVeloViewQuaternionInterpolator.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm ... |
<commit_before>/* Sirikata Utilities -- Math Library
* Vector4.hpp
*
* Copyright (c) 2009, Daniel Reiter Horn
* 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... |
<commit_before>#include "htool/cluster.hpp"
using namespace std;
using namespace htool;
int main(int argc, char const *argv[]) {
SetMinClusterSize(1);
bool test =0;
int n1 = 5;
int n2 = 5;
int nr = n1+n2;
double z = 1;
vector<R3> p(nr);
vector<int> tab(nr);
for(int j=0; j<n1; j++){
double rho ... |
<commit_before>#include "downloader/image-downloader.h"
#include <QImageReader>
#include <QSettings>
#include <QSize>
#include <QUuid>
#include "extension-rotator.h"
#include "file-downloader.h"
#include "functions.h"
#include "logger.h"
#include "models/api/api.h"
#include "models/filename.h"
#include "models/image.h"... |
<commit_before>// BESXDTransmit.cc
// This file is part of bes, A C++ back-end server implementation framework
// for the OPeNDAP Data Access Protocol.
// Copyright (c) 2004,2005 University Corporation for Atmospheric Research
// Author: Patrick West <pwest@ucar.edu> and Jose Garcia <jgarcia@ucar.edu>
//
// This libr... |
<commit_before>// BESXDTransmit.cc
// This file is part of bes, A C++ back-end server implementation framework
// for the OPeNDAP Data Access Protocol.
// Copyright (c) 2004,2005 University Corporation for Atmospheric Research
// Author: Patrick West <pwest@ucar.edu> and Jose Garcia <jgarcia@ucar.edu>
//
// This libr... |
<commit_before>#include "cma_es.h"
#include "objective_function.h"
using revolution::CmaEs;
using revolution::ObjectiveFunction;
/*---------------------------------------------------------------------------*/
class CmaEs::CmaEsPriv
{
public:
CmaEsPriv(unsigned int l, struct RVObjectiveFunction *fun)
: lambda(l)... |
<commit_before>/* Sirikata
* PrintFilter.cpp
*
* Copyright (c) 2010, Jeff Terrace
* 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 ... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WIT... |
<commit_before>#include "precompiled.hpp"
#include "util/MetaTypeConverters.hpp"
#include "util/TypeInfo.hpp"
#include <QString>
#include <QtTest>
#include <QList>
#include <QCoreApplication>
#include "ui/Uniforms.hpp"
#include "util/Logging.hpp"
using namespace glm;
using balls::Uniforms;
using balls::UniformCollect... |
<commit_before>#ifndef TCL_CONTROLLER_HPP
#define TCL_CONTROLLER_HPP
#include <string>
#include "CLDeviceInformation.hpp"
#include "CLInformation.hpp"
#include "CLSource.hpp"
#include "CLSourceArray.hpp"
#include "CLWorkGroupSettings.hpp"
#include "CLExecuteProperty.hpp"
#include "CLExecute.hpp"
#include "CLBuffer... |
<commit_before>#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <cstdio>
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <string.h>
#include <memory>
#include <iostream>
#include <map>
#include <array>
#inclu... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the... |
<commit_before>/* Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... |
<commit_before>/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
==... |
<commit_before>/*************************************************************************
*
* $RCSfile: macrosmenucontroller.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2004-05-25 12:32:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>// 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.
// Copyright (C) 2016, Intel Corporation, all rights reserved.
// Third party copyrights are property of their... |
<commit_before>#include "SimpleAudioEngine.h"
#include "Bird.h"
#include "Path.h"
USING_NS_CC;
bool Bird::init()
{
if (!Sprite::init()) {
return false;
}
visibleSize = Director::getInstance()->getVisibleSize();
velocity = 0.0f;
gravity = 18.0f;
state = State::Normal;
// setAnchor... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before><commit_msg>planning: add mission_complete decision when pull over for destination is completed<commit_after><|endoftext|> |
<commit_before>#include "VolumeJunctionOld.h"
#include "FlowModelSinglePhase.h"
#include "SinglePhaseFluidProperties.h"
registerMooseObject("THMApp", VolumeJunctionOld);
template <>
InputParameters
validParams<VolumeJunctionOld>()
{
InputParameters params = validParams<VolumeJunctionOldBase>();
return params;
}
... |
<commit_before>/* * This file is part of meego-im-framework *
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* Contact: Nokia Corporation (directui@nokia.com)
*
* If you have questions regarding the use of this file, please contact
* Nokia at directui@nokia.com.
*
... |
<commit_before>#include <Network/cUDPClientManager.h>
#include <cinder/app/App.h>
#include <limits>
#include <Utility/MessageBox.h>
#include <Network/cUDPManager.h>
#include <Scene/cSceneManager.h>
#include <Scene/Member/cTitle.h>
#include <Node/action.hpp>
#include <Network/IpHost.h>
namespace Network
{
cUD... |
<commit_before>#include "Bar.h"
namespace CppChart
{
BarChart::BarChart(const std::vector<DataElement>& d, bool al, bool dv) :
m_gap(10), m_guides(true), m_displayGuides(false), m_displayValues(dv),
m_data(d), m_width(0), m_vSize(0.0f)
{
LogFnStart();
m_max = (*max_element(m_data.begin(), m_data.end())).val... |
<commit_before>/*-------------Lanczos.cpp----------------------------------------------------//
*
* Purpose: To diagonalize a random matrix using the Lanczos algorithm
*
* Notes: Compile with (for Arch systems):
* g++ -I /usr/include/eigen3/ Lanczos.cpp
* 0's along the prime diagonal. I don't kn... |
<commit_before>/*
TSIframework . Framework for Taller de Sistemes Interactius I
Universitat Pompeu Fabra
Copyright (c) 2009 Carles F. Julià <carles.fernandez@upf.edu>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
fil... |
<commit_before>/*
* Copyright (c) 2017, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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.or... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkKmeansModelEstimatorTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
... |
<commit_before>/*************************************************************************
*
* $RCSfile: ZipPackageStream.hxx,v $
*
* $Revision: 1.17 $
*
* last change: $Author: hr $ $Date: 2004-11-26 20:46:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>//----------------------------------*-C++-*----------------------------------//
/*!
* \file solvers/test/tstAndersonSolver.cc
* \author Steven Hamilton
* \date Mon Apr 06 08:50:55 2015
* \brief Test interface to NOX Anderson acceleration solver
* \note Copyright (C) 2015 Oak Ridge National La... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: FEMTruss.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCopyright.tx... |
<commit_before>#include <random>
#include <aikido/constraint/IkSampleableConstraint.hpp>
#include <aikido/constraint/FiniteSampleConstraint.hpp>
#include <aikido/constraint/FiniteCyclicSampleConstraint.hpp>
#include <aikido/statespace/StateSpace.hpp>
#include <aikido/constraint/TSR.hpp>
#include <aikido/util/RNG.hpp>
#... |
<commit_before>// Copyright (c) 2010 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/views/domui_menu_widget.h"
#include "chrome/browser/chromeos/views/menu_locator.h"
#include "chrome/... |
<commit_before>// Copyright (c) 2010 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/gtk/bookmark_menu_controller_gtk.h"
#include <gtk/gtk.h>
#include "app/gtk_dnd_util.h"
#include "app/l10n_ut... |
<commit_before>// Copyright (c) 2010 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/policy/device_management_service.h"
#include "chrome/browser/browser_thread.h"
#include "net/base/cookie_mons... |
<commit_before>
/*
* Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
#include <qi/log/journaldloghandler.hpp>
#include <qi/log.hpp>
#include <systemd/sd-journal.h>
#include <iostream>
namespace qi... |
<commit_before>/*
* tt.filter~
* External object for Max/MSP
* Wannabe Max wrapper (external) for all filter units in ttblue
* Example project for TTBlue
* Copyright © 2008 by Timothy Place & Trond Lossius
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.ht... |
<commit_before>#ifndef BUILDERS_CYLINDERGENERATOR_HPP_DEFINED
#define BUILDERS_CYLINDERGENERATOR_HPP_DEFINED
#include "builders/generators/AbstractGenerator.hpp"
#include "utils/MathUtils.hpp"
#include <cmath>
namespace utymap { namespace builders {
// Generates cylinder.
class CylinderGenerator : public AbstractGe... |
<commit_before>/***********************************************************************
filename: CEGUIOgreTextureTarget.cpp
created: Tue Feb 17 2009
author: Paul D Turner
*************************************************************************/
/***************************************************... |
<commit_before>/*
* Copyright 1999-2004 The Apache Software 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 ... |
<commit_before>#include "lithium.h"
#include <gtkmm/menubar.h>
#include <gtkmm/menu.h>
#include <gtkmm/textview.h>
#include <gtkmm/treestore.h>
#include <gtkmm/entry.h>
#include <glibmm.h>
#include <iostream>
#include <fstream>
// window
namespace lith {
namespace ui {
// creates a new button with label "Hello Wor... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright 2012-2016 Masanori Morise. All Rights Reserved.
// Author: mmorise [at] yamanashi.ac.jp (Masanori Morise)
//
// common.cpp includes functions used in at least two files.
// (1) Common functions
// (2) FFT, IFFT a... |
<commit_before>/*
*
* Copyright (c) 2020 Project CHIP Authors
* Copyright (c) 2019 Google LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... |
<commit_before>
#include <stdlib.h>
#include <string>
// include the sql parser
#include "SQLParser.h"
// contains printing utilities
#include "sqlhelper.h"
int main(int argc, char *argv[]) {
if (argc <= 1) {
fprintf(stderr, "Usage: ./example \"SELECT * FROM test;\"\n");
return -1;
}
std:... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2015-2016.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================================... |
<commit_before>/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, 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
* in ... |
<commit_before>#include "IRremote.h"
#include "IRremoteInt.h"
//+=============================================================================
void IRsend::sendRaw (unsigned int buf[], int len, int hz)
{
// Set IR carrier frequency
enableIROut(hz);
for (int i = 0; i < len; i++) {
if (i & 1) space... |
<commit_before> void Hshuttle(Int_t runTime=1500)
{// this macro is to simulate the functionality of SHUTTLE.
gSystem->Load("$ALICE_ROOT/SHUTTLE/TestShuttle/libTestShuttle.so");
// AliTestShuttle::SetMainCDB(TString("local://$HOME/CDB"));
AliTestShuttle::SetMainCDB(TString("local://$HOME"));
TMap *pDcsMap = ... |
<commit_before>/******************************************************************************
Configuration file for nomlib library
Copyright (c) 2013 Jeffrey Carpenter
******************************************************************************/
#ifndef NOMLIB_CONFIG_HEADERS
#define NOMLIB_CONFIG_HEADERS
... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2009 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.