text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "NavRoutingController.h"
#include "NavRoutingViewOpenMessage.h"
#include "SearchResultModel.h"
#include "NavRoutingStartLocationSetMessage.h"
#include "NavRoutingStartLocationClearedMessage.h"
#include "NavRoutingEndLocationSetMessage.h"
#... |
<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>#include "globalenv.h"
#include "mapm/m_apm.h"
#include "types/root_typemanager.h"
#include "context/root_static_context.h"
#include "functions/library.h"
#include "store/naive/simple_store.h"
#include <libxml/parser.h>
using namespace xqp;
GlobalEnvironment *GlobalEnvironment::m_globalEnv = 0;
Global... |
<commit_before>#include <cstdlib>
#include <iostream>
#include <numeric> // for iota
#include <Eigen/Dense>
#include "drake/systems/plants/constraint/RigidBodyConstraint.h"
#include "drake/systems/plants/IKoptions.h"
#include "drake/systems/plants/RigidBodyIK.h"
#include "drake/systems/plants/RigidBodyTree.h"
#inclu... |
<commit_before>/*
Copyright (C) 2007 <SWGEmu>
This File is part of Core3.
This program 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 of the License,
or (at your option) any lat... |
<commit_before>GenerateDocumentation01() {
//This macro auto-generates documentation (twiki-style)
//based on all OADBs currently deployed in the AliPhysics
//directory specified here:
TString lPathToOADBs = "$HOME/alice/ali-master/AliPhysics/OADB/COMMON/MULTIPLICITY/data/";
cout<<"Expanding path n... |
<commit_before>AliGenerator* CreatePythia8GenCustom( TString lTune = "pp",
Float_t e_cms = 13000.
);
AliGenerator* AddCustomMCGenPythia8( TString lTune = "pp",
Float_t e_cms = 13000.
... |
<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>#include "task_manager_mpi.hpp"
namespace TaskDistribution {
MPITaskManager::MPITaskManager(boost::mpi::communicator& world,
MPIHandler& handler, MPIObjectArchive<Key>& archive,
MPIComputingUnitManager& unit_manager):
MPITaskManager(Tags(), world, handler, archive, unit_manager) { }
... |
<commit_before>#include <ros/ros.h>
#include <sensor_msgs/Image.h>
#include <cv_bridge/cv_bridge.h>
#include <opencv2/opencv.hpp>
#include <costmap_2d/costmap_2d_ros.h>
#include <navfn/navfn_ros.h>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/Pose.h>
#include <nav_msgs/Path.h>
#include <string>
#inclu... |
<commit_before>#include <ctime>
#include <iostream>
#include <cassert>
// Interface of this cpp file is used by C code, we need to declare
// extern "C" to prevent linking errors.
extern "C" {
#include "keystate/keystate_ds_submit_cmd.h"
#include "keystate/keystate_ds_submit_task.h"
#include "shared/duration.h"
#incl... |
<commit_before>//
// Copyright (c) articy Software GmbH & Co. KG. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
#include "CodeGenerator.h"
#include "ArticyImportData.h"
#include "DatabaseGenerator.h"
#include "GlobalVarsGenerator.h"... |
<commit_before>// Copyright (c) 2014-2018 The Crown developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "masternode.h"
#include "keystore.h"
#include <boost/test/unit_test.hpp>
namespace
{
CMasternode Cr... |
<commit_before>/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2008-2013. All Rights Reserved.
*
* The contents of this file are subject to the Erlang Public License,
* Version 1.1, (the "License"); you may not use this file except in
* compliance with the License. You should have received a copy of the
* Erlan... |
<commit_before>// Copyright 2019 TF.Text 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 ... |
<commit_before>/*
kopeteaccount.cpp - Kopete Account
Copyright (c) 2003-2004 by Olivier Goffart <ogoffart@tiscalinet.be>
Copyright (c) 2003-2004 by Martijn Klingens <klingens@kde.org>
Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
Kopete (c) 2002-2004 by the Kope... |
<commit_before>/*
Copyright (c) 2007 Till Adam <adam@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any late... |
<commit_before>/*
Title: Multi-Threaded Garbage Collector - Mark phase
Copyright (c) 2010-12 David C. J. Matthews
Based on the original garbage collector code
Copyright 2000-2008
Cambridge University Technical Services Limited
This library is free software; you can redistribute i... |
<commit_before>/*
* 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 "Lic... |
<commit_before>/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
#include "stdafx.h"
// Test the functions and objects in Connector/SynchronousCalls.cpp
#ifdef _M_CEE
#ifdef _UNICODE
#define GetMessage GetMessageW
#else
#define G... |
<commit_before>
#include <libclientserver.h>
ServerManager::ServerManager(IServerHandler *Handler)
{
m_handler = Handler;
}
ServerManager::~ServerManager()
{
ServerRemoveAll();
}
void ServerManager::ServerAdd(IServer *Server)
{
ScopedLock lock(&m_ServersMutex);
m_Servers.push_back(Server);
Server->Start(this);... |
<commit_before>/*
* Copyright (c) 2011-2014 BlackBerry Limited.
*
* 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 ... |
<commit_before>/*
* Copyright (c) 2008 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 copyri... |
<commit_before>/*
* Jamoma RampLib Base Class
* Copyright © 2008, Tim Place
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#ifdef WIN_VERSION
#pragma warning(disable:4083) //warning C4083: expected 'newline'; found identifier 's'
#endif // WIN_VE... |
<commit_before>/*************************************************************************
*
* $RCSfile: VCoordinateSystem.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: bm $ $Date: 2004-01-26 09:13:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| ... |
<commit_before>#include <mantella_bits/helper/assert.hpp>
// C++ standard library
#include <cstdlib>
namespace mant {
void verify(
const bool expression,
const std::string& errorMessage) {
if(!expression) {
throw std::logic_error(errorMessage);
}
}
bool isRotationMatrix(
cons... |
<commit_before>#include "renderer/pose.h"
#include "engine/math.h"
#include "engine/profiler.h"
#include "engine/math.h"
#include "renderer/model.h"
namespace Lumix
{
Pose::Pose(IAllocator& allocator)
: allocator(allocator)
{
positions = nullptr;
rotations = nullptr;
count = 0;
is_absolute = false;
}
Pose::~... |
<commit_before>#include "test_compiler.hpp"
#include <fcntl.h>
#include <poll.h>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>
#include <cstdlib>
#include <regex>
#include <sstream>
#include <thread>
#include <mettle/driver/scoped_pipe.hpp>
#include <mettle/output.hpp>
#include "paths.hpp"
namespac... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MAIN
#define BOOST_TEST_MODULE state
#include <arpa/inet.h>
#include <boost/test/unit_test.hpp>
#include <sys/uio.h>
#include "peer.h"
#include "router.h"
#include "state.h"
static char send_buffer[100000];
extern "C" {
int send_message(struct peer *p, ... |
<commit_before>/*
* (C) copyright 2011, Ismael Garcia, (U.Girona/ViRVIG, Spain & INRIA/ALICE, France)
*
* 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>/*
* Copyright 2004-2015 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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... |
<commit_before>// @(#)root/cont:$Name: $:$Id: TCollection.cxx,v 1.6 2000/09/08 16:11:03 rdm Exp $
// Author: Fons Rademakers 13/08/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>#include<iostream>
#include<unistd.h>
#include<cstdlib>
using namespace std;
void exec(char **argv, std::string sys, std::string second, int argc)
{
std::string result = "";
for(int i = 3; i < argc; i++)
{
result = result + " " + argv[i];
}
sys = sys + " " + result;
system(sys.c_str());
}... |
<commit_before>/**
* @file Resource.hpp
* @brief Resource class prototype.
* @author zer0
* @date 2016-04-12
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_RESOURCE_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_RESOURCE_HPP__
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pra... |
<commit_before>//===========================================
// Lumina-DE source code
// Copyright (c) 2012, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include <QApplication>
#include <QX11Info>
#include <QProcess>
#... |
<commit_before>// $Id: reconstruct_fragment.C,v 1.1 2003/03/04 14:43:11 anker Exp $
//
// A little helper program that tries to reconstruct broken fragments in a
// molecule. This program assumes that there is only *one* chain in the
// file.
//
// Usage: reconstruct_fragemnt reference_fragment_name res_id infile outfi... |
<commit_before>/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file InWorldChatModule.cpp
* @brief Simple OpenSim world chat module. Listens for ChatFromSimulator packets and shows the chat on the UI.
* Outgoing chat sent using ChatFromViewer packets. Manages E... |
<commit_before>/*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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... |
<commit_before>
#include <gloperate-qtquick/viewer/QmlEngine.h>
#include <QVariant>
#include <QQmlContext>
#include <QJSValueIterator>
#include <cppexpose/reflection/Property.h>
#include <cppexpose/typed/DirectValue.h>
#include <cppassist/io/FilePath.h>
#include <gloperate/gloperate.h>
#include <gloperate/viewer/Vi... |
<commit_before>/* example functions */
#include <iostream>
#include <time.h>
#include "egfunc.h"
double arith(double x, double y, int type)
{
double ans;
switch(type)
{
case 1:
ans = x+y;
std::cout << x << " + " << y << " = " << ans << std::endl;
break;
case 2:
ans = x-y;
std::cout << x << " -... |
<commit_before>#include "tests-base.hpp"
extern "C" {
#include "../normalization.h"
}
TEST(ResolveDecomposition, Found)
{
int32_t r = 0;
const char* d = resolvedecomposition(0xf, &r);
EXPECT_STREQ("\x33\x00\x20\xcc\x81", d);
EXPECT_EQ(FindResult_Found, r);
}
TEST(ResolveDecomposition, OffsetZero... |
<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>/*
* Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF),... |
<commit_before>// Copyright (c) 2010 The WebM 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... |
<commit_before>#include <map>
#include "dispatch-c++.h"
/*
* For synchronous dispatch.
*/
static void call_func_void_void(void * context)
{
std::function<void (void)> &func = *static_cast<std::function<void (void)> *>(context);
func();
}
/*
* For asynchronous dispatch.
*/
static void call_funcptr_void_void(vo... |
<commit_before><commit_msg>Removed unnecessary scoping.<commit_after><|endoftext|> |
<commit_before>/*-------------------------------------------------------------------------
*
* bridge_test_mix.cpp
* file description
*
* Copyright(c) 2015, CMU
*
* /peloton/tests/bridge/bridge_test_mix.cpp
*
*-------------------------------------------------------------------------
*/
#include "bridge_test.... |
<commit_before>#include <type/type-checker.hh>
#include <ast/all.hh>
namespace type
{
TypeChecker::TypeChecker()
: current_class_(nullptr)
{}
TypeChecker::~TypeChecker()
{}
misc::Error& TypeChecker::error_get()
{
return error_;
}
void TypeChecker::type_check(ast::Expr... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: addinlis.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2007-02-27 12:11:26 $
*
* The Contents of this file are made ... |
<commit_before>/**
* @file
*
* @brief Tests for the getenv library
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <gtest/gtest.h>
#include <kdbgetenv.h>
TEST (GetEnv, NonExist)
{
EXPECT_EQ (getenv ("du4Maiwi/does-not-exist"), static_cast<char *> (nullptr));
}
TEST (Ge... |
<commit_before>// Copyright (c) 2014 Baidu, Inc.G
//
// 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>/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009, 2010 QGROUNDCONTROL/PIXHAWK PROJECT
<http://www.qgroundcontrol.org>
<http://pixhawk.ethz.ch>
This file is part of the QGROUNDCONTROL project
QGROUNDCONTROL is free s... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkInputStream.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: excimp8.hxx,v $
*
* $Revision: 1.62 $
*
* last change: $Author: hr $ $Date: 2005-09-28 11:56:32 $
*
* The Contents of this file are made ... |
<commit_before><commit_msg>translated German comments<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: csvtablebox.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2004-08-23 09:33:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>#include <TFile.h>
#include <TH1.h>
#include <TH2.h>
#include "AliGeomManager.h"
#include "AliITSDetTypeRec.h"
#include "AliITSInitGeometry.h"
#include "AliITSMeanVertexer.h"
#include "AliITSLoader.h"
#include "AliLog.h"
#include "AliRawReader.h"
#include "AliRawReaderDate.h"
#include "AliRawReaderRoot.h... |
<commit_before>/*
* WIN32 Events for POSIX
* Author: Mahmoud Al-Qudsi <mqudsi@neosmart.net>
* Copyright (C) 2011 - 2012 by NeoSmart Technologies
* This code is released under the terms of the MIT License
*/
#include "pevents.h"
#include <assert.h>
#include <sys/time.h>
#ifdef WFMO
#include <vector>
#endif
namesp... |
<commit_before>/// @brief provides
#ifndef INC_UNDERFLOW_POLICY_HPP_
#define iNC_UNDERFLOW_POLICY_HPP_
#include <boost/cstdint.hpp>
#include <limits>
#include <string>
#include <stdexcept>
namespace utils {
/// @brief underflow policy for fixed-point arithmetics
class underflow_policy
{... |
<commit_before>/**************************************************************
COSC 501
Elliott Plack
14 NOV 2013 Due date: 30 NOV 2013
Problem:
Write a program that plays the game of HANGMAN(guessing a
mystery word). Read a word to be guessed from a file into
successive elements of the ... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>/*
* GridMapVisual.cpp
*
* Created on: Aug 3, 2016
* Author: Philipp Krüsi, Péter Fankhauser
* Institute: ETH Zurich, Autonomous Systems Lab
*/
#include <rviz/uniform_string_stream.h>
#include <OGRE/OgreMaterialManager.h>
#include <OGRE/OgreTextureManager.h>
#include <OGRE/OgreTechnique.h>
#in... |
<commit_before>#include <unistd.h>
#include <getopt.h>
#include <libgen.h> // FIXME
#include <iostream>
#include <fstream>
#include <memory>
#include <string>
#include <map>
#include "cppunit-header.h"
namespace config {
bool verbose = false;
};
#if 0
typedef std::map<std::string, CppUnit::Outputter *> OutputterMa... |
<commit_before>#include "stdafx.h"
#include "..\stdafx.h"
#include "RecipientRowStream.h"
#include "..\String.h"
//#include "SmartView.h"
RecipientRowStream::RecipientRowStream(ULONG cbBin, _In_count_(cbBin) LPBYTE lpBin) : SmartViewParser(cbBin, lpBin)
{
m_cVersion = 0;
m_cRowCount = 0;
m_lpAdrEntry = 0;... |
<commit_before>// Copyright (C) 2010-2013 Joshua Boyce.
// See the file COPYING for copying permission.
#include <iterator>
#include <memory>
#include <string>
#include <windows.h>
#include <winnt.h>
#include <winternl.h>
#include <hadesmem/config.hpp>
#include <hadesmem/detail/winternl.hpp>
#include <h... |
<commit_before>/*
* Copyright (c) 2012 Google
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notice, this list of conditi... |
<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/browser/chromeos/status/language_menu_button.h"
#include <string>
#include "app/l10n_util.h"
#include "app/resource_... |
<commit_before>/**
* \file HTTPClient.hxx - simple HTTP client engine for SimHear
*/
// Written by James Turner
//
// Copyright (C) 2013 James Turner <zakalawe@mac.com>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as p... |
<commit_before>// Copyright (C) 2012 James Turner - zakalawe@mac.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any la... |
<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/extensions/extension_devtools_bridge.h"
#include "base/json/json_writer.h"
#include "base/message_loop.h"
#in... |
<commit_before>/*
* Ubitrack - Library for Ubiquitous Tracking
* Copyright 2006, Technische Universitaet Muenchen, and individual
* contributors as indicated by the @authors tag. See the
* copyright.txt in the distribution for a full listing of individual
* contributors.
*
* This is free software; you can redistribute... |
<commit_before>/* This file is part of the Tomographer project, which is distributed under the
* terms of the MIT license.
*
* The MIT License (MIT)
*
* Copyright (c) 2015 ETH Zurich, Institute for Theoretical Physics, Philippe Faist
*
* Permission is hereby granted, free of charge, to any person obtaining a cop... |
<commit_before>#include "config.h"
#include "include/encoding.h"
#include "common/common_init.h"
#include <iostream>
#include <stdlib.h>
#include <vector>
using std::cout;
using std::cerr;
using std::string;
using std::vector;
typedef std::multimap < int, std::string > multimap_t;
typedef multimap_t::value_type val_... |
<commit_before>/*
This file is part of the ORK library.
Full copyright and license terms can be found in the LICENSE.txt file.
*/
#pragma once
#include"ork/memory.hpp"
#include"glm/fwd.hpp"
namespace Json {
class Value;
}
namespace pugi {
class xml_document;
class xml_node;
}
namespace ork {
namespace json {
cl... |
<commit_before>// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <cstdarg>
#include <random>
#include <chrono>
#include "CompileConfig.h"
#if defined(OUZEL_PLATFORM_IOS) || defined(OUZEL_PLATFORM_TVOS)
#include <sys/syslog.h>
#endif
#ifdef OUZEL_PLATFORM_WINDOWS
#define NOMINM... |
<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>/*************************************************************************
*
* $RCSfile: officeclient.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2003-04-23 16:41:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>#include <algorithm>
#include <array>
#include <cstdint>
#include <vector>
#include "ExeUnpacker.h"
#include "../Utilities/Bytes.h"
#include "../Utilities/Debug.h"
#include "../Utilities/String.h"
#include "components/vfs/manager.hpp"
ExeUnpacker::ExeUnpacker(const std::string &filename)
{
VFS::IStr... |
<commit_before>/*
C++ version of ISBF for TraceBounds
*/
#include "isbfcpp.h"
#include <iostream>
#include <list>
#include <cmath>
#include <vector>
isbfcpp::isbfcpp(){}
void isbfcpp::rot90(int nrows, int ncols, std::vector <std::vector<int> > input, std::vector <std::vector<int> > &output)
{
for (int i=0; i<nro... |
<commit_before>#pragma once
#include <gcl_cpp/mp.hpp>
namespace gcl
{
struct tuple_utils
{
template <size_t N, typename ... ts>
using type_at = typename std::tuple_element<N, std::tuple<ts...>>::type;
template <typename ... ts>
static constexpr std::size_t size(const std::tuple<ts...> &)
{
return std:... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>// This is the main DLL file.
#include "stdafx.h"
#include "TreeDetection.h"
#include "stdafx.h"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
#include <map>
using namespace std;
using n... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
//
// Permission is hereby granted, free of charge, to any pe... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2015 Esteban Tovagliari, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to ... |
<commit_before>// Copyright (c) 2015 Baidu, 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 applicabl... |
<commit_before>/**********************************************************************
* File: tessopt.cpp
* Description: Re-implementation of the unix code.
* Author: Ray Smith
* Created: Tue Nov 28 05:52:50 MST 1995
*
* (C) Copyright 1995, Hewlett-Packard Co.
** Licensed under the Apache Licens... |
<commit_before>/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2020 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software")... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 3
of the License, or (a... |
<commit_before>#include <iostream>
#include <limits>
#include <assert.h>
#include "LexicalReordering.h"
#include "InputFileStream.h"
#include "DistortionOrientation.h"
#include "StaticData.h"
using namespace std;
/*
* Load the file pointed to by filename; set up the table according to
* the orientation and conditio... |
<commit_before>// The following block tests the following:
// - Only 1 file is generated per translation unit and header file
// - Replacements are written in YAML that matches the expected YAML file
// RUN: rm -rf %t/Test
// RUN: mkdir -p %t/Test
// RUN: cp %S/main.cpp %S/common.cpp %S/common.h %t/Test
// RUN: cpp... |
<commit_before>/*
* Copyright (C) 2013 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, this l... |
<commit_before>/*
* qicomplex.cpp
*
* Copyright (c) 2015 Tobias Wood.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
#include <getopt.h>
#include ... |
<commit_before>#include <statman>
#include <liveupdate.hpp>
void Statman::store(uint32_t id, liu::Storage& store)
{
store.add_vector<Stat>(id, {m_stats.begin(), m_stats.end()});
}
void Statman::restore(liu::Restore& store)
{
auto stats = store.as_vector<const Stat>();
for (auto& merge_stat : stats)
{
try ... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2016 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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; eit... |
<commit_before>#include "listmethodscommand.h"
#include <QScriptValueIterator>
#include "scriptengine.h"
#include "util.h"
#define super AdminCommand
ListMethodsCommand::ListMethodsCommand(QObject *parent) :
super(parent) {
setDescription("List all JavaScript-accessible methods of an object.\n"
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docfilt.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-04-11 21:18:53 $
*
* The Contents of this file are made a... |
<commit_before>/*
* Copyright © 2014 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, mod... |
<commit_before>#include "formulation/equation/diffusion.h"
#include <gtest/gtest.h>
#include "test_helpers/gmock_wrapper.h"
class EquationDiffusionTest : public ::testing::Test {};
TEST_F(EquationDiffusionTest, Dummy) {
EXPECT_TRUE(true);
}<commit_msg>added constructor tests to EquationDiffusionTest<commit_after>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.