text stringlengths 54 60.6k |
|---|
<commit_before>//
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2008-2010 FURUHASHI Sadayuki
//
// 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>// This software is part of OpenMono, see http://developer.openmono.com
// and is available under the MIT license, see LICENSE.txt
#include "mono_power_management.h"
#include "application_context_interface.h"
//#include "consoles.h"
#include <project.h>
#ifdef DEVICE_SERIAL
#include <serial_usb_api.h>... |
<commit_before>#pragma once
#include "eval.hh"
#define LocalNoInline(f) static f __attribute__((noinline)); f
#define LocalNoInlineNoReturn(f) static f __attribute__((noinline, noreturn)); f
namespace nix {
LocalNoInlineNoReturn(void throwEvalError(const char * s))
{
throw EvalError(s);
}
LocalNoInlineNoReturn... |
<commit_before>/*
* Copyright 2017 Buck Baskin
*
* 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, mer... |
<commit_before>#include <iostream>
#include <future>
#include <utility>
#include "user-thread.hpp"
namespace mymain {
using namespace orks::userthread;
WorkerManager wm {1};
}
template <typename Fn>
void exec_thread(void* func_obj) {
(*static_cast<Fn*>(func_obj))();
delete static_cast<Fn*>(func_obj)... |
<commit_before>/**
* This file is part of the CernVM File System.
*
* This module forks a watchdog process that listens on
* a pipe and prints a stackstrace into syslog, when cvmfs
* fails.
*
* Also, it handles getting and setting the maximum number of file descriptors.
*/
#include "cvmfs_config.h"
#include "m... |
<commit_before>#include "vvMainWindow.h"
#include "ui_vvMainWindow.h"
#include "pqActiveObjects.h"
#include "pqApplicationCore.h"
#include "pqAutoLoadPluginXMLBehavior.h"
#include "pqCommandLineOptionsBehavior.h"
#include "pqCrashRecoveryBehavior.h"
#include "pqInterfaceTracker.h"
#include "pqObjectBuilder.h"
#include... |
<commit_before>#include "qcsv2matrix.h"
#include <iostream>
#include <QDateTime>
/**
* @brief QCSV2MATRIX::QCSV2MATRIX
*/
QCSV2MATRIX::QCSV2MATRIX() :
noHeader(false),
lastLine(false),
unique(false),
csvSeperator(";"),
mtxSeperator(";"),
minColumns(-1),
mtxFileName(""),
csvFileName("... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include <string>
#include "cvmfs_config.h"
#include "../logging.h"
#include "../monitor.h"
#include "../swissknife.h"
#include "../util/posix.h"
#include "../util/string.h"
#include "reactor.h"
static const char *kDefaultReceiverLogDir = "/var... |
<commit_before>// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2018 Intel Corporation. All Rights Reserved.
#include "../include/librealsense2/rs.hpp"
#include "../include/librealsense2/rsutil.h"
#include "proc/synthetic-stream.h"
#include "proc/occlusion-filter.h"
//#include "../../common... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swdbtoolsclient.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 02:13:02 $
*
* The Contents of this file ar... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: grfsh.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: hr $ $Date: 2007-09-27 12:02:14 $
*
* The Contents of this file are made ava... |
<commit_before>/*
* Copyright (c) 2014 - Franz Detro
*
* Some real world test program for motor control
*
* 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, ... |
<commit_before>/* Copyright 2016-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#include <folly/io/async/EventBase.h>
#include <folly/io/async/EventBaseManager.h>
#include <thrift/lib/cpp2/async/HeaderClientChannel.h>
#include "eden/fs/service/gen-cpp2/EdenService.h"
#include "watchman.h"
... |
<commit_before>#include "list.hpp"
void ScreenList::init(Uint8 pMode) {
setMode(pMode);
imageSize = 32;
imageMarginTop = 2;
imageMarginRight = 4;
titleMarginBottom = 1;
textMarginBottom = 4;
options.length = 0;
options.offsetX = 0.;
options.offsetY = 0.;
options.selectetIdx = 0;
calcScrollbar(... |
<commit_before>//
// ex13_17.cpp
// Exercise 13.17
//
// Created by pezy on 1/15/15.
// Copyright (c) 2015 pezy. All rights reserved.
//
// Write versions of numbered and f corresponding to the previous three
// exercises
// and check whether you correctly predicted the output.
//
// For 13.14
#include <iostre... |
<commit_before>#include <algorithm>
#include <cctype>
#include <fstream>
#include <iostream>
#include <string>
int main(int argc, char ** argv)
{
std::ifstream input{argv[1]};
std::string line;
std::getline(input, line);
while(input)
{
std::for_each(std::begin(line), std::end(line), [](cha... |
<commit_before>/*
* main.cpp - Kurento Media Server
*
* Copyright (C) 2013 Kurento
* Contact: Miguel París Díaz <[email protected]>
* Contact: José Antonio Santos Cadenas <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Gener... |
<commit_before>#pragma once
#include "numpy.hpp"
#include <cstring>
Eigen::MatrixXf loadFloatFromNumpy(const std::string& filename)
{
std::vector<int> shape;
std::vector<float> data;
aoba::LoadArrayFromNumpy(filename, shape, data);
Eigen::MatrixXf mat(shape[1], shape[0]);
std::size_t size = sizeof(float) * ... |
<commit_before>#include "stdafx.h"
#include "CoreJobTest.h"
#include "CoreJob.h"
#include "move_only.h"
#include <boost/thread.hpp>
TEST_F(CoreJobTest, VerifySimpleProperties) {
AutoRequired<CoreJob> jb;
ASSERT_FALSE(m_create->IsInitiated()) << "CoreJob reported it could receive events before its enclosing contex... |
<commit_before>/*
Auto away-presence setter-class
Copyright (C) 2011 Martin Klapetek <[email protected]>
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
... |
<commit_before>/*
* Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
* 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
*... |
<commit_before>#include <gflags/gflags.h>
DEFINE_int32(minion_port, 7900, "minion listen port");
DEFINE_string(jobid, "", "the job id that minion works on");
DEFINE_string(nexus_addr, "", "nexus server list");
DEFINE_string(master_nexus_path, "/shuttle/master", "master address on nexus");
DEFINE_string(work_mode, "map... |
<commit_before>/*
* SIV Mode Encryption
* (C) 2013 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/siv.h>
#include <botan/cmac.h>
#include <botan/ctr.h>
#include <botan/parsing.h>
#include <botan/internal/xor_buf.h>
#include <algorithm>
#include <iostream>
#include <botan/hex.h>
na... |
<commit_before>//
// Copyright (c) 2015-2016 CNRS
//
// This file is part of Pinocchio
// Pinocchio 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 (at your opti... |
<commit_before>#include "common.hpp"
#include "panel.hpp"
#include <chrono>
#include <ctime>
#include <unistd.h>
#include <cairo/cairo-ft.h>
#include <freetype2/ft2build.h>
#include "../proto/wayfire-shell-client.h"
void panel_redraw(void *data, wl_callback*, uint32_t)
{
wayfire_panel *panel = (wayfire_panel*) d... |
<commit_before>#include "shaderlab/Node.h"
#include "shaderlab/PinType.h"
#include "shaderlab/ShaderAdapter.h"
#include <blueprint/Pin.h>
#include <blueprint/BackendAdapter.h>
#include <blueprint/PropDescImpl.h>
#include <shadergraph/VarType.h>
#include <shadergraph/Variant.h>
#include <shadergraph/ValueImpl.h>
#incl... |
<commit_before>///
/// @file CpuInfo.cpp
/// @brief Get the CPUs cache sizes in bytes.
///
/// Copyright (C) 2017 Kim Walisch, <[email protected]>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesieve/CpuInfo.hpp>
#include <cstddef>
... |
<commit_before>#include "ball.h"
#include <nds.h>
/**
* @param ball b
* @return void
*/
void moveBall(ball *b) {
b.box.pos.x += b.direction.x;
b.box.pos.y += b.direction.y;
// horizontal collision
if (b.box.pos.x <= 0 || b.box.pos.x >= SCREEN_WIDTH) {
b.direction.x *= -1;
}
//... |
<commit_before>#include "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include "walletmodel.h"
#include "guiutil.h"
#include "addressbookpage.h"
#include "optionsmodel.h"
#include <QApplication>
#include <QClipboard>
#include <QMessageBox>
#include <QLocale>
#include <QDebug>
#include <QMessageBox>
SendCoinsDi... |
<commit_before>#include "icg_common.h"
#include "trackball/trackball.h"
#include "grid/grid.h"
#include "framebuffer/FrameBuffer.h"
#include "fullscreenquad/FullScreenQuad.h"
#ifdef WITH_ANTTWEAKBAR
#include <AntTweakBar.h>
TwBar *bar;
#endif
using namespace std;
Grid grid;
int WIDTH = 800;
int HEIGHT = 600;
mat4 ... |
<commit_before>/* ------------------------------------------------------------------------
Windows NT Service class library
Copyright Abandoned 1998 Irena Pancirov - Irnet Snc
This file is public domain and comes with NO WARRANTY of any kind
--------------------------------------------------------------------... |
<commit_before>/*
This file is part of Ingen.
Copyright 2007-2015 David Robillard <http://drobilla.net/>
Ingen 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, either version 3 of the License, or ... |
<commit_before>#include <json.h>
bool logIn(char* json, const int fd)
{
std::string log = recieveFrom(fd);
std::string password = recieveFrom(fd);
bool logged=false;
Json::Value usersInfos;
Json::Reader infosReader;
if(parsingSuccess)
{
if("NULL"!=usersInfos.get(log, "NULL")) // vérifie si le ... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief ファイラー・クラス
@author 平松邦仁 ([email protected])
*/
//=====================================================================//
#include "common/monograph.hpp"
#include "common/sdc_io.hpp"
namespa... |
<commit_before>#include <COSTerm.h>
#include <COSProcess.h>
#include <COSErr.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cerrno>
#include <fcntl.h>
extern "C" {
# include "termios.h"
extern int tgetent(char *, char *);
extern int tgetnum(char *);
}
#include "sys/ioctl.h"
#define HAS_PO... |
<commit_before>/*
* JsonicControlPolicyParamLoader.cc
*
* Copyright (C) 2015 Misgana Bayetta
*
* Author: Misgana Bayetta <[email protected]> 2015
*
* 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... |
<commit_before>#include "CamShift.h"
#include "OpenCV.h"
#include "Matrix.h"
#define CHANNEL_HUE 0
#define CHANNEL_SATURATION 1
#define CHANNEL_VALUE 2
Persistent<FunctionTemplate> TrackedObject::constructor;
void
TrackedObject::Init(Handle<Object> target) {
HandleScope scope;
// Constructor
construct... |
<commit_before>#include "alloutil/al_World.hpp"
#include "allocore/graphics/al_Isosurface.hpp"
using namespace al;
class MyActor : public Actor{
public:
MyActor(){}
virtual void onDraw(Graphics& g, const Viewpoint& v){
Frustumd fr;
v.camera().frustum(fr, v.worldTransform(), v.viewport().aspect());
// pri... |
<commit_before>/*
* _aaaa, _aa. sa, aaa _aaaa,_ ac .aa. .aa. .aa, _a, sa
* .wWV!!!T |Wm; dQ[ $WF _mWT!"?Y ]QE :Q#: ]QW[ :WWk. ]Q[ dW
* .jWf :WW: .dQ[ dQ[ .mW( )WE :Q#: .mSQh. :mWQa.]W[ dQ
* |QW: :Wm; mQ[ dQ[ ]Qk )Qmi_aQW:... |
<commit_before>/* Copyright 2019 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>/* Copyright 2021, The TensorFlow Federated 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 la... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2018. All rights reserved
*/
#ifndef _Stroika_Foundation_Execution_PIDLoop_inl_
#define _Stroika_Foundation_Execution_PIDLoop_inl_ 1
/*
********************************************************************************
***************************** Imple... |
<commit_before>/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>// Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
#include "shared_macros.h"
#include "xsapi/services.h"
#include "user_context.h"
#include "xbox_system_factory.h"
#include "xbox_live_context_impl... |
<commit_before>#include <osgProducer/Viewer>
#include <osg/Group>
#include <osg/Geode>
#include <osg/ShapeDrawable>
#include <osg/Texture2D>
#include <osg/PositionAttitudeTransform>
#include <osg/MatrixTransform>
#include <osg/CoordinateSystemNode>
#include <osg/ClusterCullingCallback>
#include <osgDB/FileUtils>
#inc... |
<commit_before>#include "OBJLIGHT.H"
#include "CAMERA.H"
#include "CONTROL.H"
#include "SPECIFIC.H"
#if PSX_VERSION || PSXPC_VERSION
#include "SPHERES.H"
#include "BUBBLES.H"
#endif
struct FOOTPRINT FootPrint[32];
int FootPrintNum;
//void /*$ra*/ TriggerAlertLight(long x /*$s2*/, long y /*$s3*/, long z /*$s1*/, lon... |
<commit_before>/* OpenSceneGraph example, osganimate.
*
* 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 <cstdio>
#include <cstdlib>
#include <iostream>
#include <list>
#include <string>
#include <fstream>
#include <sstream>
#include <osg/Geode>
#include <osg/ShapeDrawable>
#include <osg/Material>
#include <osg/Texture2D>
#include <osg/Geometry>
#include <osg/MatrixTransform>
#include <osg/Positio... |
<commit_before>#include <iostream>
#include "consoleui.h"
#include "performer.h"
#include "dataaccess.h"
using namespace std;
ConsoleUI::ConsoleUI()
{
}
// Should not contain logic for individual commands, that should be in separate functions!
void ConsoleUI::run()
{
intro();
commandHelp();
string comm... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <hspp/Tasks/BasicTasks/CombatTask.h>
#include ... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the GNU Public License (GPL) version 1.0 or
* (at your option) any later version.
*
* This library is distributed in the hope that ... |
<commit_before>#include <iostream>
int main()
{
std::cout << "hello world" << std::endl;
return 0;
}
<commit_msg>context-menu-cleaner: Scan context menu items<commit_after>#include <iostream>
#include "kbase/logging.h"
#include "kbase/registry.h"
#include "kbase/string_encoding_conversions.h"
#include "kbase/... |
<commit_before>#include "GameProcess.h"
#include "Object.h"
#include "Engine.h"
#include "World.h"
#include "App.h"
#include "ToolsCamera.h"
#include "ControlsApp.h"
#include "MathLib.h"
#include "Game.h"
#include "Editor.h"
#include "Input.h"
#include "BlueRayUtils.h"
#include "World.h"
#include "Action.h"
#include "F... |
<commit_before>#include <iostream>
#include <cstdlib>
#include <boost/program_options.hpp>
#include "Main.h"
#include "InputFileStream.h"
#include "OutputFileStream.h"
#include "AlignedSentence.h"
#include "AlignedSentenceSyntax.h"
#include "Parameter.h"
#include "Rules.h"
using namespace std;
bool g_debug = false;
... |
<commit_before>#include "thruster_sim.h"
ThrusterSimNode::ThrusterSimNode(int argc, char **argv, int rate){
ros::Rate loop_rate(rate);
subscriber = n.subscribe("/qubo/thrusters_input", 1000, &ThrusterSimNode::thrusterCallBack,this);
publisher = n.advertise<std_msgs::Float64MultiArray>("/g500/thrusters_input", 1... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: Satyajit Jena. *
... |
<commit_before>/*
* Copyright 2012 Anders Wallin (anders.e.e.wallin "at" gmail.com)
*
* This file is part of OpenVoronoi.
*
* OpenVoronoi 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 v... |
<commit_before>/* -*- Mode: C++; c-file-style: "gnu" -*- */
/*
* Copyright 2014 Waseda University, Sato Laboratory
* Author: Jairo Eduardo Lopez <[email protected]>
*
* nnn-nullp.cc is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero Public License as published by
... |
<commit_before>/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
... |
<commit_before>/* Copyright (c) 2018 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 applic... |
<commit_before>#ifndef STAN_VARIATIONAL_ADVI_HPP
#define STAN_VARIATIONAL_ADVI_HPP
#include <stan/math.hpp>
#include <stan/io/dump.hpp>
#include <stan/model/util.hpp>
#include <stan/services/io/write_iteration_csv.hpp>
#include <stan/services/io/write_iteration.hpp>
#include <stan/services/error_codes.hpp>
#include <s... |
<commit_before>// @(#)root/rootx:$Id$
// Author: Fons Rademakers 19/02/98
//////////////////////////////////////////////////////////////////////////
// //
// Rootx //
// ... |
<commit_before>/** deme_expander.cc ---
*
* Copyright (C) 2013 OpenCog Foundation
*
* Author: Nil Geisweiller
*
* 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 including th... |
<commit_before><commit_msg>cui: unused code in SvxAreaTabPage::ClickGradientHdl_Impl<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (C) 2011 Tommi Maekitalo
*
* 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) any later version.... |
<commit_before>/* Copyright 2014 Peter Goodman, all rights reserved. */
#ifdef GRANARY_WHERE_user
#include <granary.h>
#include "clients/user/signal.h"
#include "clients/user/syscall.h"
using namespace granary;
GRANARY_DEFINE_bool(debug_gdb_prompt, true,
"Should a GDB process attacher helper be printed out on ... |
<commit_before>#include "ScrollingMsg.hpp"
#include <pango/pangocairo.h>
ScrollingMsg::ScrollingMsg()
:m_current_w(0)
,m_current_h(0)
,m_friendly_name("None")
,m_msg("None")
,m_loops(0)
,m_current_loop(0)
,m_fontfamily("Sans Bold 12")
,m_ypos(300)
,m_xpos(0)
,m_scroll_time(12.0f)
{
};
ScrollingMsg... |
<commit_before>#include "otbVectorImage.h"
#include "otbVectorRescaleIntensityImageFilter.h"
#include "otbImageFileReader.h"
#include "otbImageAlternateViewer.h"
#include "Fl/Fl.H"
int otbAlternateViewerTest(int argc, char* argv[])
{
const unsigned int Dimension = 2;
typedef double PixelType;
typedef otb::Vector... |
<commit_before>/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "UnreferencedInterfaces.h"
#include "ClassHierarchy.h"
#include "DexAnnotation.h"
#include "DexClass.h"
#... |
<commit_before>#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>
#include <pybind11/eigen.h>
#include <SmurffCpp/Types.h>
#include <SmurffCpp/Configs/Config.h>
#include <SmurffCpp/Configs/NoiseConfig.h>
#include <SmurffCpp/Configs/DataConfig.h>
#include <SmurffCpp/Sessions/PythonSe... |
<commit_before>/*=========================================================================
Copyright (c) Kitware Inc. All rights reserved.
See Copyright.txt or http://www.Kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHA... |
<commit_before>#include <iostream>
#include "drake/Path.h"
#include "drake/util/Polynomial.h"
#include "drake/systems/Simulation.h"
#include "drake/systems/plants/BotVisualizer.h"
#include "drake/systems/LCMSystem.h"
#include "drake/systems/cascade_system.h"
#include "drake/util/drakeAppUtil.h"
#include "drake/systems... |
<commit_before>// ReportDefinitionVector.cpp: implementation of the CReportDefinitionVector class.
//
//////////////////////////////////////////////////////////////////////
#include "CReportDefinitionVector.h"
#include "CKeyFactory.cpp"
//////////////////////////////////////////////////////////////////////
// Constru... |
<commit_before>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* adiosMPIFunctions.inl
*
* Created on: Sep 7, 2017
* Author: William F Godoy [email protected]
*/
#ifndef ADIOS2_HELPER_ADIOSMPIFUNCTIONS_INL_
#define ADIOS2_HELPER_AD... |
<commit_before>#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "OSMock.hpp"
#include "experiment/payload/payload_exp.hpp"
#include "mock/FsMock.hpp"
#include "mock/PayloadDeviceMock.hpp"
#include "mock/SunSDriverMock.hpp"
#include "mock/power.hpp"
#include "mock/time.hpp"
using testing::NiceMock;
... |
<commit_before>//=====================================================================//
/*! @file
@brief MP3 ID3 TAG クラス@n
libid3tag を利用
@author 平松邦仁 ([email protected])
*/
//=====================================================================//
#ifdef WIN32
#include <io.h>
#include <fcntl.h>
#endif
#... |
<commit_before>/*
* File: Sf1Watcher.cpp
* Author: Paolo D'Apice
*
* Created on February 21, 2012, 9:42 AM
*/
#include "Sf1Watcher.hpp"
#include "ZooKeeperNamespace.hpp"
#include "net/sf1r/distributed/ZooKeeperRouter.hpp"
#include <boost/regex.hpp>
#include <glog/logging.h>
NS_IZENELIB_SF1R_BEGIN
using iz::... |
<commit_before>/*
* Copyright (C) 2008 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list ... |
<commit_before>// Memory-backed files used for disk images
#include "SAMdisk.h"
#include "MemFile.h"
#ifdef HAVE_ZLIB
#include <zlib.h>
#include "unzip.h"
#endif
#ifdef HAVE_BZIP2
#define BZ_NO_STDIO
#include <bzlib.h>
#endif
std::string to_string (const Compress &compression)
{
switch (compression)
{
default:
... |
<commit_before>#include "IHMD.hpp"
#include <bx/fpumath.h>
#include "Registry.hpp"
namespace xveearr
{
namespace
{
const unsigned int gViewportWidth = 1280 / 2;
const unsigned int gViewportHeight = 720;
}
class NullHMD: public IHMD
{
public:
NullHMD()
{
mRenderData[Eye::Left].mFrameBuffer = BGFX_INVALID_HANDLE... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: asynceventnotifier.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2008-03-12 07:33:58 $
*
* The Contents of this fil... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2014, SimQuest Solutions 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.or... |
<commit_before>#include "Planned.h"
#include "BlackCrow.h"
#include <BWEM/bwem.h>
#include "Geyser.h"
#include "Macro.h"
namespace BlackCrow {
using namespace BWAPI;
using namespace Filter;
Planned::Planned(BlackCrow &parent) : bc(parent), status(Status::ACTIVE) {}
// Planned Unit
PlannedUnit::PlannedUnit(Blac... |
<commit_before>#include "AM2320.h"
#include <Wire.h>
//
// AM2321 Temperature & Humidity Sensor library for Arduino
// Сделана Тимофеевым Е.Н. из AM2320-master
unsigned int CRC16(byte *ptr, byte length)
{
unsigned int crc = 0xFFFF;
uint8_t s = 0x00;
while(length--) {
crc ^= *ptr++;
... |
<commit_before><commit_msg>created pipeline cache, renderpass and framebuffer then started working on moving the vertex data to gpu memory<commit_after><|endoftext|> |
<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 distr... |
<commit_before>/** \file normalise_and_deduplicate_language.cc
* \brief Normalises language codes and removes duplicates from specific MARC record fields
* \author Madeeswaran Kannan ([email protected])
*
* \copyright 2018 Universitätsbibliothek Tübingen. All rights reserved.
*
* This pr... |
<commit_before>#include <time.h>
timeonaxis()
{
// This macro illustrates the use of the time mode on the axis
// with different time intervals and time formats. It's result can
// be seen begin_html <a href="gif/timeonaxis.gif">here</a> end_html
// Through all this script, the time is expressed in UTC. some
// inform... |
<commit_before>#include "Engine.h"
#include "Game.h"
#include "ObjectDummy.h"
#include "BodyRigid.h"
#include "BodyDummy.h"
#include "Physics.h"
#include "ShapeCapsule.h"
#include "ActorBase.h"
#include "Visualizer.h"
#include "sys/SysControl.h"
using namespace MathLib;
#ifdef MEMORY_INFO
#define new new(__FILE__, _... |
<commit_before>// c++ -std=c++11 converter.cpp -o converter -I/usr/local/include -L/usr/local/lib -lassimp -g -Wall
#define SAVE_RIG 1
#include <iostream>
#include <fstream>
#include <algorithm> // pair
#include <unordered_map>
#include <cassert>
#include <assimp/Exporter.hpp>
#include <assimp/cimport.h>
#include <a... |
<commit_before>/**
* @file Simulation.cpp
* @author <a href="mailto:[email protected]">Benjamin Schlotter</a>
* Implementation of class Simulation
*/
#include "Simulation.h"
using namespace naoth;
using namespace std;
Simulation::Simulation()
{
DEBUG_REQUEST_REGISTER("Simulation:draw_one_action_poin... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: FixedText.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-09-16 23:49:35 $
*
* The Contents of this file are mad... |
<commit_before>#include "Adafruit_MQTT.h"
Adafruit_MQTT::Adafruit_MQTT(char *server, uint16_t port, char *user, char *key) {
strncpy(servername, server, SERVERNAME_SIZE);
servername[SERVERNAME_SIZE-1] = 0;
portnum = port;
serverip = 0;
strncpy(username, user, USERNAME_SIZE);
username[USERNAME_SIZE-1] = 0;... |
<commit_before>/**
* @file llupdatedownloader.cpp
*
* $LicenseInfo:firstyear=2010&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* L... |
<commit_before>/*
This file is part of KXForms.
Copyright (c) 2007 Andre Duffeck <[email protected]>
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 o... |
<commit_before>/****************************************************************************
This file is part of the QtMediaHub project on http://www.qtmediahub.com
Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).*
All rights reserved.
Contact: Girish Ramakrishnan [email protected]
Contact: N... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// SneezyMUD - All rights reserved, SneezyMUD Coding Team
//
//////////////////////////////////////////////////////////////////////////
#include "stdsneezy.h"
#include "combat.h"
bool TBeing::canDisarm(TBeing *victim, silent... |
<commit_before>/* See LICENSE file for copyright and license details. */
#include <cstdlib>
#include <cassert>
#include "core/v2i.h"
#include "core/misc.h"
#include "core/dir.h"
#include "core/core.h"
#include "core/unit_type.h"
typedef struct {
V2i *v;
int tail;
int head;
int size;
} PathQueue;
static PathQ... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2011. All rights reserved
*/
#ifndef _Stroika_Foundation_Time_DateUtils_inl_
#define _Stroika_Foundation_Time_DateUtils_inl_ 1
/*
********************************************************************************
***************************** I... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.