text stringlengths 54 60.6k |
|---|
<commit_before>/*****************************************************************************
* icon_view.cpp : Icon view for the Playlist
****************************************************************************
* Copyright © 2010 the VideoLAN team
* $Id$
*
* Authors: Jean-Baptiste Kempf <jb@videolan.... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// The Loki Library
// Copyright (c) 2005 Richard Sposato
// Copyright (c) 2005 Peter Kmmel
// Permission to use, copy, modify, distribute and sell this software for any
// purpose is hereby granted without fee, provide... |
<commit_before>#include "BaseImage.h"
// Constructor used for loading image
BaseImage::BaseImage(std::string filename, int startCol, int startRow)
: m_iColumns(0)
, m_iRows(0)
, m_iBpp(0)
, m_ppImageMatrix(NULL)
, m_lPointerOffset(0)
{
if(filename.size() == 0)
{
throw std::invalid_argument("No file nam... |
<commit_before>/*
* Copyright 2022 The CFU-Playground 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 ... |
<commit_before>/*************************************************************************
*
* $RCSfile: smplmailclient.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: tra $ $Date: 2001-05-16 13:34:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>#ifndef ROOT_TFPBlock
#include "TFPBlock.h"
#endif
#include <cstdlib>
#include <malloc.h>
ClassImp(TFPBlock)
//__________________________________________________________________
//constructor
TFPBlock::TFPBlock(Long64_t* offset, Int_t* length, Int_t nb)
{
Int_t aux = 0;
fNblock = nb;
fPos =... |
<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>#include <Rcpp.h>
#include "ZeroMQ.hpp"
class CMQWorker { // : public ZeroMQ {
public:
CMQWorker(std::string addr): ctx(new zmq::context_t(1)) {
sock = zmq::socket_t(*ctx, ZMQ_REQ);
sock.set(zmq::sockopt::connect_timeout, 10000);
sock.connect(addr);
}
~CMQWorker() {
... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>#include "../../ppasskeeper-module.h"
#include "../../tokenizer.h"
#include <string>
#include <windows.h>
#include "list_pwd.h"
//Local definitions
static const char* baseKey="SOFTWARE\\PPassKeeper\\";
//local functions
std::string* last_error()
{
static std::string lerror;
return &lerror;
}
void se... |
<commit_before>#pragma once
#include <sstream>
#include <string>
#include <boost/algorithm/string.hpp>
#include "blackhole/attribute.hpp"
#include "blackhole/detail/stream/stream.hpp"
#include "blackhole/error.hpp"
#include "blackhole/formatter/map/value.hpp"
namespace blackhole {
namespace formatter {
namespace ... |
<commit_before>//---------------------------------------------------------- -*- Mode: C++ -*-
// $Id$
//
// Created 2014/7/28
// Author: Mike Ovsiannikov
//
// Copyright 2014 Quantcast Corp.
//
// This file is part of Kosmos File System (KFS).
//
// Licensed under the Apache License, Version 2.0
// (the "License"); you... |
<commit_before>/**
* Copyright (c) 2011-2016 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free... |
<commit_before>/*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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 retai... |
<commit_before>/*
* opencog/attention/FocusBoundaryUpdatingAgent.cc
*
* Written by Roman Treutlein
* 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 v3 as
* published by the Free Software Foundation and in... |
<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 t... |
<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>#include <iostream>
enum MoveDirection { LEFT, UP, RIGHT, DOWN };
class ConsoleMoveDirectionReader {
public:
MoveDirection next() {
while (true) {
std::cout << "WASD then <enter> to move: ";
int keyCode = std::cin.get();
if (keyCode == 97) {
... |
<commit_before>// Copyright 2010-2012 Google
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
<commit_before>// Copyright 2017 ASTRON - Netherlands Institute for Radio Astronomy
// Copyright 2017 NLeSC - Netherlands eScience Center
//
// 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>#include "Utility.h"
#include <vector>
#include <random>
#include <chrono>
#include <fstream>
#include <algorithm>
std::vector<std::string> String::split(const std::string& s, const std::string& delim, size_t count)
{
std::vector<std::string> result;
size_t start_index = 0;
size_t end_index... |
<commit_before>#include "jobwidget.h"
#include "debug.h"
#include "restoredialog.h"
#include "ui_jobwidget.h"
#include "utils.h"
#include <QMenu>
JobWidget::JobWidget(QWidget *parent)
: QWidget(parent), _ui(new Ui::JobWidget), _saveEnabled(false)
{
_ui->setupUi(this);
_ui->archiveListWidget->setAttribute(... |
<commit_before>/*=========================================================================
Library : Image Registration Toolkit (IRTK)
Module : $Id$
Copyright : Imperial College, Department of Computing
Visual Information Processing (VIP), 2008 onwards
Date : $Date$
Version : $Revision$
Changes :... |
<commit_before>#include "stunmsgfact.h"
#include <QDateTime>
StunMessageFactory::StunMessageFactory()
{
qsrand(QDateTime::currentSecsSinceEpoch() / 2 + 1);
}
StunMessageFactory::~StunMessageFactory()
{
}
STUNMessage StunMessageFactory::createRequest()
{
STUNMessage request(STUN_REQUEST);
request.setTransactio... |
<commit_before>#include "wrapper.h"
extern "C"
{
EWXWEXPORT(void*, wxValidator_Create)()
{
return (void*) new wxValidator();
}
EWXWEXPORT(void, wxValidator_Delete)(void* _obj)
{
delete (wxValidator*)_obj;
}
EWXWEXPORT(int, wxValidator_Validate)(void* _obj, void* parent)
{
return (int)((wxValidat... |
<commit_before>// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, soft... |
<commit_before>#pragma once
#include <cstdlib>
template <typename T>
void InsertionSortAsc(T* array, size_t count)
{
for (size_t i = 2; i < count; ++i)
{
for (size_t k = i; k > 1 && array[k] < array[k - 1]; --k)
{
T temporary = array[k];
array[k] = array[k - 1];
array[k - 1] = temporary;
}
}
}
temp... |
<commit_before>/*
Copyright (c) 2014-15 Ableton AG, Berlin
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, merge,... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef _APP_TEMPLATE_HH
#define _APP_TEMPLATE_HH
#include <boost/program_options.hpp>
#include <fstream>
#include <cstdlib>
#include "core/reactor.hh"
#include "core/scollectd.hh"
namespace bpo = boost::program_options;
class app_template {
private:... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
//
// File Stimulus.cpp
//
// For more information, please see: http://www.nektar.info
//
// The MIT License
//
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
// Department of Aeronautics, Impe... |
<commit_before>//******************************************************************************
// FILE : function_matrix_sum.cpp
//
// LAST MODIFIED : 1 October 2004
//
// DESCRIPTION :
//==============================================================================
#if defined (ONE_TEMPLATE_DEFINITION_IMPLEMENTED)
#... |
<commit_before>#include "stdafx.h"
using std::vector;
static Decryptor* instance = nullptr;
/* static */
Decryptor*
Decryptor::Get()
{
return instance;
}
/* static */
void
Decryptor::Create(GMPDecryptorHost* aHost)
{
assert(!Get());
instance = new Decryptor(aHost);
}
Decryptor::Decryptor... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p10/procedures/hwp/perv/p10_setup_sbe_config.... |
<commit_before>#include "Halide.h"
#include <stdio.h>
#include <future>
using namespace Halide;
template<typename A>
const char *string_of_type();
#define DECL_SOT(name) \
template<> \
const char *string_of_type<name>()... |
<commit_before>#include <string>
#include "cmysql_database.h"
#include <exception>
#include <stdexcept>
#include "database.h"
namespace Core {
#ifdef USE_MYSQL_ONE_INSTANCE
IDatabasePool &databasePool = databasePoolFilename<Config::Filename>::getInstance();
#endif
bool CMySQL_Row::getString(std::string const &name, ... |
<commit_before>#include "xchainer/python/array.h"
#include <algorithm>
#include <nonstd/optional.hpp>
#include <pybind11/numpy.h>
#include <pybind11/operators.h>
#include <pybind11/stl.h>
#include "xchainer/array.h"
#include "xchainer/dtype.h"
#include "xchainer/error.h"
// Optional type caster
// http://pybind11.r... |
<commit_before>#include <FImage.h>
#include <sys/time.h>
using namespace FImage;
template<typename A>
const char *string_of_type();
#define DECL_SOT(name) \
template<> \
const char *string_of_type<name>() {return #name;... |
<commit_before>/* cbr
* FairQueue.hpp
*
* Copyright (c) 2009, Ewen Cheslack-Postava
* 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 retai... |
<commit_before>#include "xchainer/python/array.h"
#include <algorithm>
#include <cstdint>
#include <string>
#include <vector>
#include <pybind11/numpy.h>
#include <pybind11/operators.h>
#include <nonstd/optional.hpp>
#include "xchainer/array.h"
#include "xchainer/array_index.h"
#include "xchainer/backward.h"
#includ... |
<commit_before>#include "xchainer/python/shape.h"
#include "xchainer/python/shape.h"
#include <algorithm>
#include <pybind11/operators.h>
#include "xchainer/shape.h"
namespace xchainer {
namespace py = pybind11;
void InitXchainerShape(pybind11::module& m) {
py::class_<Shape>{m, "Shape"}
.def(py::init... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_proc_gettracearray.... |
<commit_before>// Internal Includes
#include <osvr/PluginKit/PluginKit.h>
#include <osvr/PluginKit/TrackerInterfaceC.h>
// Generated JSON header file
#include "je_nourish_openhmd_json.h"
// Library/third-party includes
#include <openhmd.h>
// Standard includes
#include <stdlib.h>
#include <iostream>
#in... |
<commit_before>/*
*
* Copyright 2015-2016, 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... |
<commit_before>#include "JeuxState.h"
using namespace Ogre;
using namespace Forests;
JeuxState::JeuxState()
: m_Loader(0),
m_TerrainImported(false),
m_SceneFile(Ogre::StringUtil::BLANK)
{
m_MoveSpeed = 1.0f;
m_RotateSpeed = 0.3f;
m_bQuit = false;
m_bLMouseDown... |
<commit_before>/*
* Copyright 1999-2000,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
*
... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistr... |
<commit_before>/*
**
* BEGIN_COPYRIGHT
*
* load_tools is a plugin for SciDB. Copyright (C) 2008-2014 SciDB, Inc.
*
* load_tools is free software: you can redistribute it and/or modify
* it under the terms of the AFFERO GNU General Public License as published by
* the Free Software Foundation.
*
* load_tools is distrib... |
<commit_before>/*********************************************************************
*
* Copyright (c) 2017, Saurav Agarwal
* All rights reserved.
*
*********************************************************************/
#include "G2OSolver.h"
#include "g2o/core/block_solver.h"
#include "g2o/core/factory.h"... |
<commit_before>// Copyright 2021 The XLS 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>/*************************************************************************
*
* $RCSfile: imexp.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: dbo $ $Date: 2001-05-10 09:20:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>//===--- CGComplexExpr.cpp - Emit LLVM Code for Complex Exprs -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Chris Lattner and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>/*
* Copyright (c) 2016 Shanghai Jiao Tong University.
* 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/lice... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkStringArray.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright 2004 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000, there is a no... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved
*/
#ifndef _Stroika_Foundation_Time_Duration_inl_
#define _Stroika_Foundation_Time_Duration_inl_ 1
/*
********************************************************************************
***************************** Implementatio... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2008-02-25 17:27:17 +0100 (Mo, 25 Feb 2008) $
Version: $Revision: 7837 $
Copyright (c) German Cancer Research Center, Division of Medical and
B... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2009-05-13 14:52:01 +0200 (Mi, 13. Mai 2009) $
Version: $Revision: 17230 $
Copyright (c) German Cancer Research Center, Division of Medical and... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// taskwarrior - a command line task list manager.
//
// Copyright 2006 - 2011, Paul Beckingham, Federico Hernandez.
// All rights reserved.
//
// This program is free software; you can redistribute it and/or modify it under... |
<commit_before>//
// file : fnv1a.hpp
// in : file:///home/tim/projects/ntools/hash/fnv1a.hpp
//
// created by : Timothée Feuillet
// date: Mon May 22 2017 16:30:57 GMT-0400 (EDT)
//
//
// Copyright (c) 2017 Timothée Feuillet
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this ... |
<commit_before>// mykytea.cpp
#include <iostream>
#include <cstring>
#include "mykytea.hpp"
const int MAX_LEN = 256;
int split_argv(char* input, const char* configs[]){
int len;
char *cp;
const char *delim = " ";
cp = input;
configs[0] = "";
for(len = 0; len < MAX_LEN; len++){
if((configs[len + 1] = ... |
<commit_before>#include "ResourceView.hpp"
#include <Engine/Geometry/Model.hpp>
#include <Engine/Texture/TextureAsset.hpp>
#include <Engine/Audio/SoundBuffer.hpp>
#include <Engine/Script/ScriptFile.hpp>
#include <Engine/Util/FileSystem.hpp>
#include <Editor/Util/EditorSettings.hpp>
#include <Engine/Hymn.hpp>
#include ... |
<commit_before>#include "ResourceView.hpp"
#include <Engine/Geometry/Model.hpp>
#include <Engine/Texture/TextureAsset.hpp>
#include <Engine/Audio/SoundBuffer.hpp>
#include <Engine/Script/ScriptFile.hpp>
#include <Engine/Util/FileSystem.hpp>
#include <Editor/Util/EditorSettings.hpp>
#include <Engine/Hymn.hpp>
#include ... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2020 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*... |
<commit_before>// Copyright (c) 2020 The Orbit 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 "CoreUtils.h"
#ifdef _WIN32
// clang-format off
#include <cguid.h> // IWYU pragma: keep
#include <combaseapi.h> // IWYU pragma: ... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requ... |
<commit_before>#if ((defined(_MSC_VER) && _MSC_VER >= 1700) || (__cplusplus >= 201103L && HAS_BOOST)) && !defined(__CYGWIN__)
#include "../test.h"
#define _NO_ASYNCRTIMP 1
#include "casablanca/Release/src/pch/stdafx.h"
#include "casablanca/Release/src/json/json.cpp"
#include "casablanca/Release/src/json/json_parsin... |
<commit_before>#include "Graph.hpp"
/*
template <typename Weight>
void add_edge(Graph<Weight> &g, int src, int to) {
g[src].push_back(Edge<Weight>(to));
g[to].push_back(Edge<Weight>(src));
}
*/
class LCA {
int V, LOG_V;
vector<vector<int>> parent;
vector<int> depth;
template<typename T>
void dfs(const G... |
<commit_before><commit_msg>deleted helloWorld.cpp<commit_after><|endoftext|> |
<commit_before>#include <iostream>
using namespace std;
int main() {
cout << "Hello World" << endl; //Print out Hello World
cout << "Aaron Skomra" << endl; //Edit Hello World to print out your name
//Printing "David Snyder" to the command line
cout << "David Snyder" << endl;
cout << "Ben Huddle" << endl... |
<commit_before>/*
* Copyright (C) 2008-2011 The QXmpp developers
*
* Author:
* Jeremy Lainé
*
* Source:
* http://code.google.com/p/qxmpp
*
* This file is a part of QXmpp library.
*
* 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 2009-2020 The VOTCA Development Team (http://www.votca.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 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 LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/***************************************************************************
* Copyright (C) 2003 by *
* Unai Garro (ugarro@users.sourceforge.net) *
* Cyril Bosselut (bosselut@b1project.com) ... |
<commit_before><commit_msg>Changes to allow international input on GTK+ 2.<commit_after><|endoftext|> |
<commit_before>Bool_t isAOD=kTRUE;
Bool_t hasMC=kFALSE;
Int_t iPeriod=-1;
enum { k10b=0, k10c, k10d, k10e, k10f, k10h, k11a, k11d, k11h, k12h, k13b, k13c, k13d, k13e, k13f };
AliAnalysisTask* AddTaskJpsi_zzhou_PbPb(
TString cfg="ConfigJpsi_zzhou_lowpt",
Bool_t gridconf=kTRUE,
TString prod="",
... |
<commit_before><commit_msg>Changed default drag action to move.<commit_after><|endoftext|> |
<commit_before>AliEmcalPicoTrackMaker* AddTaskEmcalPicoTrackMaker(
const char *name = "PicoTracks",
const char *inname = "tracks",
const char *runPeriod = "LHC11h",
AliESDtrackCuts *cuts = 0
)
{
//... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: defaultproperties.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-08 20:05:09 $
*
* The Contents of this file ... |
<commit_before>#include "Statue_Enemy.h"
Statue_Enemy::Statue_Enemy() :Enemy(enemyType::statue_enemy)
{
this->sprites_vector = App->enemy->enemy_statue_perf->sprites_vector;
this->entity_texture = App->enemy->enemy_statue_perf->entity_texture;
this->ChangeAnimation(1);
}
Statue_Enemy::Statue_Enemy(const Statue_Ene... |
<commit_before>#include "Utilities.h"
#include <algorithm>
#include <vector>
using namespace PBD;
using namespace std;
std::string Utilities::getFilePath(const std::string &path)
{
std::string npath = normalizePath(path);
std::string result = npath;
size_t i = result.rfind('.', result.length());
if (i != std::st... |
<commit_before>#include <iostream>
#include <istream>
#include <iterator>
#include <cstdlib>
#include "GzStream.h"
#include "util.h"
__attribute__((noreturn)) void Usage() {
std::cerr << "usage: " << ::progname << " mode\n";
std::cerr << " Where \"mode\" has to be either \"compress\" or \"decompress\".\... |
<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2010-2011 Dreamhost
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>/*
* simple_tree.cpp
*
* Created on: Aug 12, 2010
* Author: programmer
*/
#include "../system/discursive_system.h"
#include "./initial_agents.h"
#include "repository_access.h"
#include <Magick++.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "../model/surrogate_tree_n... |
<commit_before>//
// References to arrays, C++98.
//
// http://stackoverflow.com/a/10008405
// http://c-faq.com/decl/spiral.anderson.html
// http://unixwiz.net/techtips/reading-cdecl.html
//
#include <iostream>
namespace
{
void pass_array_ref(int (&ra)[100])
{
ra[0] = -456;
}
int (&get_array_ref())[55]
{
... |
<commit_before>/** \brief Handles crawling as well as RSS feeds.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2018 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms o... |
<commit_before>#include <boost/test/unit_test.hpp>
#include "indexed_sam_reader.h"
#include "test_utils.h"
using namespace std;
using namespace gamgee;
using namespace gamgee::utils;
BOOST_AUTO_TEST_CASE( indexed_single_readers_intervals )
{
for (const auto& filename : {"testdata/test_simple.bam"}) {
auto rea... |
<commit_before>#include <pd_view.h>
#include <pd_backend.h>
#include <stdlib.h>
#include <stdio.h>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct RegistersData
{
int dummy;
};
/////////////////////////////////////////////////////////... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2010 Emmanuel Benazera, ebenazer@seeks-project.info
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the ... |
<commit_before>
#include "otbWrapperInputProcessXMLParameter.h"
#include "otbWrapperChoiceParameter.h"
#include "otbWrapperListViewParameter.h"
#include "otbWrapperDirectoryParameter.h"
#include "otbWrapperEmptyParameter.h"
#include "otbWrapperInputFilenameParameter.h"
#include "otbWrapperInputFilenameListParameter.h"... |
<commit_before>/*!
* @file File componentMovement.cpp
* @brief Implementation of the class of component movements present in the game
*
* The class implemented here provides to the game the speed and type
* of movement that a given element can perform
*
* Auxiliary documentation
* @sa componentMovement.hp... |
<commit_before>/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd 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/LICE... |
<commit_before>/*
* serialport_posix.cpp
* PHD Guiding
*
* Created by Hans Lambermont
* Copyright (c) 2016 Hans Lambermont
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, a... |
<commit_before>#include "MotorDetailsMessage.h"
#include "MessageDecodingHelpers.h"
#include "MessageDefines.h"
#include <QDebug>
using namespace MessageDecodingHelpers;
namespace
{
const int PHASE_CCURRENT = 1;
const int PHASE_BCURRENT = 5;
const int MOTOR_VOLTAGE_REAL = 9;
const int MOTOR_VOLTAGE_I... |
<commit_before>// Copyright 2016 AUV-IITK
#include <ros/ros.h>
#include <std_msgs/Float32.h>
#include <std_msgs/Float64.h>
#include <std_msgs/Int32.h>
#include <std_msgs/String.h>
#include <std_msgs/Bool.h>
#include <std_msgs/Float64MultiArray.h>
#include <actionlib/server/simple_action_server.h>
#include <actionlib/cl... |
<commit_before>/*
Copyright (c) 2015, Andreas Fett. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
*/
#include <inttypes.h>
#include <stdexcept>
#include <ostream>
#include <cassert>
#include "token-stream.h"
#include "utf8stream.h"
na... |
<commit_before>#line 2 "togo/utility/utility.hpp"
/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file
@brief Utilities.
@ingroup utility
*/
#pragma once
#include <togo/config.hpp>
#include <togo/types.hpp>
#include <togo/utility/traits.hpp>
#include <togo/utility/constraints.hpp>
#inc... |
<commit_before>/*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2010-2015 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
published by the Free S... |
<commit_before>// Copyright (c) 2007, 2008, 2009 libmv authors.
//
// 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, c... |
<commit_before>#include "include/amici_interface_cpp.h"
#include <include/edata_accessors.h>
#include <include/udata_accessors.h>
#include <include/rdata_accessors.h>
#include <include/tdata_accessors.h>
#include <cstring>
/**
* @ brief initialise matrix and attach to the field
* @ param FIELD name of the field to... |
<commit_before>/***************************************************************************
* Copyright (C) 2007 by carm *
* carm@localhost *
* *
* This program is free software; you can redistribute it and/or modify *
* it under ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtQuick module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Us... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.