text stringlengths 54 60.6k |
|---|
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2017 Couchbase, 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 ... |
<commit_before>/***********************************************************************
qparms.cpp - Implements the SQLQuery class.
Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by
MySQL AB, and (c) 2004, 2005 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this... |
<commit_before>/*
* Copyright (c) 2007 Digital Bazaar, Inc. All rights reserved.
*/
#include "db/util/DynamicObjectImpl.h"
#include "db/util/DynamicObject.h"
using namespace std;
using namespace db::util;
DynamicObjectImpl::DynamicObjectImpl()
{
mType = String;
mString = strdup("");
}
DynamicObjectImpl::~Dy... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2005 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#pragma once
#include <eosio/chain/block_header_state.hpp>
#include <eosio/chain/block.hpp>
#include <eosio/chain/transaction_metadata.hpp>
#include <eosio/chain/action_receipt.hpp>
namespace eosio { namespace chain {
struct block_state : ... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
... |
<commit_before>//===- ICF.cpp ------------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>/*
* main.cpp
*
* Copyright (C) 2015, Achim Lösch <achim.loesch@upb.de>, Ahmad El-Ali <aelali@mail.upb.de>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*
* encoding: UTF-8
* tab size: 4
*
*... |
<commit_before>//
// Copyright 2012 Francisco Jerez
//
// 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,... |
<commit_before>#include "stdafx.h"
#include "CppUnitTest.h"
#include "..\ProjectEuler\Problem2.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace ProjectEulerTests
{
TEST_CLASS(Problem2Tests)
{
public:
TEST_METHOD(FibonacciSumEven_Input1_Returns0)
{
au... |
<commit_before>// 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.
#include "chrome/common/chrome_version_info.h"
#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/path_serv... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Pu... |
<commit_before>// Copyright (c) 2009 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/renderer/notification_provider.h"
#include "base/string_util.h"
#include "base/task.h"
#include "chrome/common/render... |
<commit_before>// Copyright 2020-present MongoDB 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 ... |
<commit_before>#include <osg/Geode>
#include <osg/ShapeDrawable>
#include <osg/Material>
#include <osg/Texture2D>
#include <osg/MatrixTransform>
#include <osg/PositionAttitudeTransform>
#include <osg/BlendFunc>
#include <osg/ClearNode>
#include <osg/Projection>
#include <osgUtil/Tesselator>
#include <osgUtil/Transform... |
<commit_before>#include <coffee/core/CApplication>
#include <coffee/core/CProfiling>
#include <coffee/core/CFiles>
#include <coffee/core/CInput>
#include <coffee/CImage>
#include <coffee/sdl2/CSDL2System>
#include <coffee/sdl2/CSDL2Dialog>
#include <coffee/sdl2/CSDL2SpriteWindow>
using namespace Coffee;
using namesp... |
<commit_before>/*
* ADXL345.cpp
*
* Created on: May 10, 2013
* Author: Ryler Hockenbury
*
* Library for ADXL345 3-channel accelerometer sensor
* NOTE: Sensor is packaged with ITG3200 and HMC5883L
*
*/
#include "ADXL345.h"
#include "../Quad_Defines/globals.h"
ADXL345::ADXL345() {
devA... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qbs.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses m... |
<commit_before>/*
* main.cpp
*
* Created on: 2014-05-05
* Author: mathieu
*/
#include <QtNetwork/QNetworkInterface>
#include <QtCore/QCoreApplication>
#include "TcpClient.h"
void showUsage()
{
printf("tcpClient [hostname] port\n");
exit(-1);
}
int main(int argc, char * argv[])
{
if(argc < 2 || argc > 3... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2019-2019 ARM Limited
*
* 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
*
* h... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: atktextattributes.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: ihi $ $Date: 2006-08-04 13:11:54 $
*
* The Contents of this file... |
<commit_before>// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
//----------------------------------------------------------------------------------
#include "stdafx.h"
namespace WISP_FILE
{
//--------------... |
<commit_before>/* ************************************************************************
* Copyright 2016 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include <sys/time.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <vector>
... |
<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 tha... |
<commit_before>/*
Copyright (c) 2017-2018 Andrew Depke
*/
#include "LinuxStackTrace.h"
#include "../../Math/MathCore.h"
#include <cxxabi.h>
#include <execinfo.h>
#include <dlfcn.h>
#include <stdlib.h> // Darwin Doesn't Have free() By Default, Include it Here
namespace Red
{
bool CaptureStackTrace(int MaxDepth, s... |
<commit_before>#ifndef VEXCL_BACKEND_OPENCL_DEVICE_VECTOR_HPP
#define VEXCL_BACKEND_OPENCL_DEVICE_VECTOR_HPP
/*
The MIT License
Copyright (c) 2012-2018 Denis Demidov <dennis.demidov@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation f... |
<commit_before>AliAnalysisTaskESDfilter *AddTaskESDFilter(Bool_t useKineFilter=kTRUE)
{
// Creates a filter task and adds it to the analysis manager.
// Get the pointer to the existing analysis manager via the static access method.
//==============================================================================
... |
<commit_before>#include <TitleScene.hpp>
#include <Scenes.hpp>
using namespace uth;
uth::Layer& TitleScene::getLayer(LayerId id)
{
return *m_layers[id];
}
TitleScene::TitleScene()
{
uthEngine.GetWindow().GetCamera().SetSize(1280, 720);
m_BGM = uthRS.LoadSound("Audio/Music/menu_theme.wav");
m_BGM->Play();
auto& ... |
<commit_before>/*//////////////////////////////////////////////////////////////////
//// SKIRT -- an advanced radiative transfer code ////
//// © Astronomical Observatory, Ghent University ////
///////////////////////////////////////////////////////////////// */
#include <cmath>
#include "P... |
<commit_before>/*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2013 Imperial College London
* Copyright 2008-2013 Daniel Rueckert, Julia Schnabel
* Copyright 2013-2015 Andreas Schuh
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... |
<commit_before>// Copyright 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law ... |
<commit_before>// glut108.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
<commit_msg>program 8 - depth cube<commit_after>// glut108.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "../g... |
<commit_before>//=======================================================================
// Copyright (c) 2013-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>/*
* Copyright (c) 2007-2008 Digital Bazaar, Inc. All rights reserved.
*/
#include "db/rt/DynamicObjectImpl.h"
#include "db/rt/DynamicObject.h"
using namespace std;
using namespace db::rt;
DynamicObjectImpl::DynamicObjectImpl()
{
mType = String;
mString = NULL;
mStringValue = NULL;
}
Dyna... |
<commit_before>/**
* << detailed description >>
*
* @file SingleCPUTestParticleData.cpp
* @brief << brief description >>
* @author clonker
* @date 07.06.16
*/
#include <gtest/gtest.h>
#include <readdy/common/make_unique.h>
#include <readdy/kernel/singlecpu/model/SingleCPUParticleData.h>
#include <boost/log/triv... |
<commit_before>/// \file stream.cpp
/// Utilities for handling streams.
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <semaphore.h>
#include "json.h"
#include "stream.h"
#include "procs.h"
#include "config.h"
#include "socket.h"
#include "defines.h"
#include "shared_memo... |
<commit_before>#ifndef VARIADIC_HPP
#define VARIADIC_HPP
#include <type_traits>
/// Cobalt template library
namespace ctl {
template<typename T, typename ... Args>
struct is_any_of;
template<typename T, typename U, typename ... Args>
struct is_any_of<T, U, Args...> {
static const bool value = ... |
<commit_before>#include <stdio.h> //ͷļ
#include <stdlib.h> //ͷļ
#define LIST_INIT_SIZE 100 //̬ʵֵԱijʼС
#define LISTINCREMENT 10 //ÿζ̬ӵĴС
#define OVERFLOW -1 //Խ
#define FALSE 0 //ʧ
#define OK 1 //ɹ
//̬ʵֵԱݽṹ
typedef struct{
int *elem; //ÿԱӦĶַַ̬
int length; //Աǰij
int listsize; //ԱĴС
}Sq... |
<commit_before>//===-- LanaiMCCodeEmitter.cpp - Convert Lanai code to machine code -------===//
//
// 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
//
//===------------... |
<commit_before>// Copyright 2017-2020 The Verible 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 a... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2018 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use t... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief MRuby shell
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2004-2013 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
<commit_before>#include "util/file_piece.hh"
#include "util/exception.hh"
#include <string>
#include <limits>
#include <assert.h>
#include <cstdlib>
#include <ctype.h>
#include <err.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#ifdef HAVE_ZLIB
#include... |
<commit_before>#include "TCanvas.h"
#include "TClassTable.h"
#include "TFile.h"
#include "TH1.h"
#include "TKey.h"
#include "TChain.h"
#include "TSystem.h"
#include "iostream.h"
#include "dt_DrawTest.C"
Bool_t gInteractiveTest = kTRUE;
Bool_t gQuietLevel = 0;
//______________________________________________________... |
<commit_before>
// Qt includes
#include <QDebug>
#include <QLayout>
#include <QTableView>
#include <QStandardItemModel>
#include <QHeaderView>
// Visomics includes
#include "voExtendedTableView.h"
#include "voDataObject.h"
#include "vtkExtendedTable.h"
#include "voUtils.h"
// VTK includes
#include <vtkDoubleArray.h>
... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "settingsdialog.h"
#include <QMessageBox>
#include <QFileDialog>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainW... |
<commit_before>/*
* RBGolfBall.cpp
* golf
*
* Created by Robert Rose on 9/9/08.
* Copyright 2008 Bork 3D LLC. All rights reserved.
*
*/
#include "RBGolfBall.h"
#include "RudeDebug.h"
#include "RudeGL.h"
#include "RudePhysicsSphere.h"
#include "RudePhysics.h"
#include "RudeMesh.h"
#include <btBulletDynamicsC... |
<commit_before>// Copyright 2020 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law ... |
<commit_before>/*==========================================================================
SeqAn - The Library for Sequence Analysis
http://www.seqan.de
============================================================================
Copyright (C) 2007
This library is ... |
<commit_before>#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <openssl/rand.h>
#include "Crypto.h"
#include "Identity.h"
#include "common/key.hpp"
// XXX: make this faster
static bool check_keys(const std::string & prefix, i2p::data::PrivateKeys & key)
{
return key.GetPublic()->GetIdentHash().To... |
<commit_before>/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... |
<commit_before>/*
* Binary Search
*
* O(lgn)
*
*/
class Solution {
public:
int findPeakElement(vector<int>& nums) {
int l = 0, r = nums.size()-1;
while(l < r) {
int mid = l + (r-l) / 2;
if(nums[mid] > nums[mid+1]) {
r = mid;
} else {
... |
<commit_before>/*
* (C) 2009 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
/**
Generate a 1024 bit DSA key and put it into a file. The public key
format is that specified by X.509, while the private key format is
PKCS #8.
The domain parameters are the ones specified as the Java default DSA
param... |
<commit_before>#include <oms/OssimTools.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/base/ossimGrect.h>
#include <ossim/util/ossimUtilityRegistry.h>
#include <ossim/util/ossimViewshedUtil.h>
#include <ossim/util/ossimHlzUtil.h>
#include <cstdlib>
using namespace oms;
using namespace std;
OssimTools::Os... |
<commit_before>#include <oms/OssimTools.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/base/ossimGrect.h>
#include <ossim/base/ossimException.h>
#include <ossim/projection/ossimMapProjection.h>
#include <ossim/util/ossimHlzTool.h>
#include <ossim/util/ossimToolRegistry.h>
#include <ossim/util/ossimViewshed... |
<commit_before>/**
* @file /cost_map_core/include/cost_map_core/operators/inflation.hpp
*/
/*****************************************************************************
** Ifdefs
*****************************************************************************/
#ifndef cost_map_core_INFLATION_HPP_
#define cost_map_core... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// 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)
//=================================... |
<commit_before>/*
* File: catmem.cpp
* Copyright (C) 2009 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#include "tr/cat/catmem.h"
#include "tr/cat/catmem.h"
#include <stack>
CatalogMemoryContext *CATALOG_TEMPORARY_CONTEXT = NULL;
CatalogMemoryContext *CATALOG_COMMON_CONTEXT... |
<commit_before>
#include "../../Flare.h"
#include "FlareShipStatus.h"
#include "../../Player/FlareMenuManager.h"
#define LOCTEXT_NAMESPACE "FlareShipStatus"
/*----------------------------------------------------
Construct
----------------------------------------------------*/
void SFlareShipStatus::Construct(const... |
<commit_before>/*
Copyright (c) 2007 Volker Krause <vkrause@kde.org>
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... |
<commit_before>/*
* galleryenlargeshrinkplugin.cpp
*
* Copyright (C) 2012 Igalia, S.L.
* Author: Antia Puentes <apuentes@igalia.com>
*
* This file is part of the Gallery Enlarge/Shrink Plugin.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Genera... |
<commit_before>//
// Copyright (C) 2007 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// Copyright (C) 2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// $$
///////////////////////////////////////////////////////////////////////////////
// Author: Alexander Chemer... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit (ITK)
Module: itkNeighborhoodIteratorTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2000 National Library of Medicine
All right... |
<commit_before>#include "StorageManageWidget.h"
#include <QVBoxLayout>
#include <QHeaderView>
#include <QFileDialog>
#include <QLabel>
#include <QApplication>
#include <QDebug>
StorageManageWidget::StorageManageWidget (QWidget * parent)
: QWidget (parent)
, tableCodes ... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac (jan.issac@gmail.com)
* Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>// Copyright (C) 2010-2015 Joshua Boyce
// See the file COPYING for copying permission.
#pragma warning(push, 1)
#pragma warning(disable : 4505 4702 4996)
#pragma warning(disable : 6011 6102 6201 6239 6244 6246 6295)
#pragma warning(disable : 6305 6326 6334 6385 6386 6387)
#pragma warning(disable... |
<commit_before>#pragma once
#ifndef KENGINE_TEXTURE_PATH_MAX_LENGTH
# define KENGINE_TEXTURE_PATH_MAX_LENGTH 256
#endif
namespace kengine {
struct TextureDataComponent {
void * data;
GLuint * textureID;
int width;
int height;
int components;
using FreeFunc = void(*)(void * data);
FreeFunc free;
};
}... |
<commit_before>/**
* Copyright 2008 Matthew Graham
* 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 l... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: defaultprovider.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: ihi $ $Date: 2007-11-23 14:18:20 $
*
* The Contents of this file a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AKey.cxx,v $
*
* $Revision: 1.18 $
*
* last change: $Author: rt $ $Date: 2005-09-08 05:29:25 $
*
* The Contents of this file are made ava... |
<commit_before>#include <iostream>
#include <ncurses.h>
#include "../src/newmove.hh"
#include "../src/configuration.hh"
#include "catch.hpp"
TEST_CASE("mvsot") {
contents contents;
contents.push_back(" hello");
initscr();
mvsot(contents);
endwin();
REQUIRE(0 ==contents.y);
REQUIRE(4 =... |
<commit_before>/*
* KENLM.cpp
*
* Created on: 4 Nov 2015
* Author: hieu
*/
#include <sstream>
#include <vector>
#include "KENLM.h"
#include "../TargetPhrase.h"
#include "../Scores.h"
#include "../System.h"
#include "../Search/Hypothesis.h"
#include "../Search/Manager.h"
#include "lm/state.hh"
#include "lm/le... |
<commit_before>/*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2010-2021 Belledonne Communications SARL, All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
publishe... |
<commit_before>//===-- CodeGen/AsmPrinter/Win64Exception.cpp - Dwarf Exception Impl ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// @(#)root/test:$Name: $:$Id: MainEvent.cxx,v 1.9 2001/02/09 10:24:46 brun Exp $
// Author: Rene Brun 19/01/97
////////////////////////////////////////////////////////////////////////
//
// A simple example with a ROOT tree
// =================================
//
// This pro... |
<commit_before>#include <gtest/gtest.h>
#include <iostream>
#include <fstream>
#include <istream>
#include <sstream>
#include <exception>
#include <stdexcept>
#include <test/unit/gm/utility.hpp>
TEST(gm_parser, block_matrix_function_signatures) {
test_parsable("function-signatures/math/matrix/block");
}
TEST(gm_par... |
<commit_before>#include <pcl/console/parse.h>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/point_representation.h>
#include <pcl/io/pcd_io.h>
#include <pcl/ros/conversions.h>
#include <pcl/keypoints/uniform_sampling.h>
#include <pcl/features/normal_3d.h>
#include <pcl/features/fpfh.h>
#inclu... |
<commit_before>/* $Id$ */
/* Copyright (C) 2001 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option)... |
<commit_before>/***********************************************************************
filename: CEGUIXercesParser.cpp
created: Sat Mar 12 2005
author: Paul D Turner
*************************************************************************/
/********************************************************... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2013 Hauke Heibel <hauke.heibel@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, ... |
<commit_before>#include "PlaceholderParser.hpp"
#include <ctime>
#include <iomanip>
#include <sstream>
#include <unistd.h> // provides **environ
extern char **environ;
namespace Slic3r {
PlaceholderParser::PlaceholderParser()
{
this->set("version", SLIC3R_VERSION);
this->apply_env_variables();
this->upd... |
<commit_before><commit_msg>we can stop the loop as soon as we found something<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list... |
<commit_before>/* vim: set sw=4 sts=4 et foldmethod=syntax : */
#include <graph/dkrtj_sort.hh>
#include <max_clique/colourise.hh>
#include <algorithm>
#include <iterator>
auto parasols::dkrtj_sort(const Graph & graph, std::vector<int> & p) -> void
{
// pre-calculate degrees and ex-degrees
std::vector<std::pa... |
<commit_before>/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<commit_before>/**************************************************************************
* Copyright(c) 2004, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Con... |
<commit_before>//===--- DeadFunctionElimination.cpp - Eliminate dead functions -----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>//===-- SIFixSGPRLiveRanges.cpp - Fix SGPR live ranges ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------... |
<commit_before>#include <iostream>
#include <Start.h>
#include "MyModel.h"
#include "Data.h"
using namespace std;
using namespace DNest3;
int main(int argc, char** argv)
{
// Load the data
CommandLineOptions options(argc, argv);
string dataFile = options.get_dataFile();
if(dataFile.compare("") == 0)
cerr ... |
<commit_before>/*
* This file is a part of Xpiks - cross platform application for
* keywording and uploading images for microstocks
* Copyright (C) 2014-2016 Taras Kushnir <kushnirTV@gmail.com>
*
* Xpiks is distributed under the GNU General Public License, version 3.0
*
* This program is free software: you can r... |
<commit_before>/*************************************************************************
*
* $RCSfile: htmlexp2.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2005-01-11 13:17:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*
***********************************************************************************************************************
*
* Copyright (c) 2019-2020 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this soft... |
<commit_before>//===-- SparcV9CodeEmitter.cpp - --------===//
//
//
//===----------------------------------------------------------------------===//
#include "llvm/PassManager.h"
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include ... |
<commit_before>/*************************************************************************
*
* $RCSfile: lotread.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: dr $ $Date: 2001-04-12 08:45:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>//===--- ExprConstant.cpp - Expression Constant Evaluator -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===- SymbolStripping.cpp - Strip symbols for functions and modules ------===//
//
// 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><commit_msg>coverity#1242751 Uninitialized scalar field<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: strindlg.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2004-01-05 16:28:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include "musicabstracttablewidget.h"
MusicAbstractTableWidget::MusicAbstractTableWidget(QWidget *parent)
: QTableWidget(parent)
{
setAttribute(Qt::WA_TranslucentBackground, true);
setFont(QFont("Helvetica"));
setColumnCount(3);
setRowCount(0);
setShowGrid(false);//Does not displ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.