text stringlengths 54 60.6k |
|---|
<commit_before>#pragma once
#include <cassert>
#include <cstring>
#include <cuchar>
#include <map>
#include <string>
#include <unordered_map>
namespace xmlpp {
enum class entity_type { TAG, TAG_ENDING, COMMENT, TEXT };
/**
* @brief A parser adhering to SAX inteface.
*
* The class itself acts as an iterator, a fow... |
<commit_before>/*
* Copyright 2017 deepstreamHub GmbH
*
* 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>// Copyright 2016 Robo@FIT
#include "art_pr2_grasping/objects.h"
#include <string>
#include <vector>
#include <set>
namespace art_pr2_grasping
{
Objects::Objects(boost::shared_ptr<tf::TransformListener> tfl, std::string target_frame)
{
tfl_ = tfl;
object_type_srv_ = nh_.serviceClient<art_msgs::getO... |
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, c... |
<commit_before>/* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... |
<commit_before>/* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... |
<commit_before>/* LICENSE NOTICE
Copyright (c) 2009, Frederick Emmott <mail@fredemmott.co.uk>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTW... |
<commit_before>/* -*- Mode: C++; c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil -*-
*
* Quadra, an action puzzle game
* Copyright (C) 1998-2000 Ludus Design
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publi... |
<commit_before>#include "Page.h"
#include <math.h>
#include "PackageFiles.h"
#include "Kernel/OVR_MemBuffer.h"
#include "stb_image.h"
#include "ImageData.h"
#include "Helpers.h"
#include "Config.h"
namespace OvrMangaroll {
const int Page::SEGMENTS = 10;
const float Page::HEIGHT = 1.0f;
const float Page::RADIUS = 1... |
<commit_before>/*
* Copyright 2012 Coherent Theory LLC
*
* This program 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, or
* (at your option) any later version.
*
* ... |
<commit_before>
#define EIGEN_INTERNAL_DEBUG_CACHE_QUERY
#include <iostream>
#include "../Eigen/Core"
using namespace Eigen;
using namespace std;
#define DUMP_CPUID(CODE) {\
int abcd[4]; \
abcd[0] = abcd[1] = abcd[2] = abcd[3] = 0;\
EIGEN_CPUID(abcd, CODE, 0); \
std::cout << "The code " << CODE << " gives " \... |
<commit_before>#pragma once
#include <memory>
#include <QtCore/QObject>
#include <QtCore/QUuid>
#include <QVariant>
#include "PortType.hpp"
#include "NodeData.hpp"
#include "Serializable.hpp"
#include "ConnectionState.hpp"
#include "ConnectionGeometry.hpp"
class QPointF;
namespace std
{
template<>
struct hash<QUu... |
<commit_before>#include <cstdlib>
#include <ctime>
#include <iostream>
#include <iterator>
#include <dariadb.h>
#include <algorithm>
#include <atomic>
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <limits>
#include <random>
#include <thread>
#include <utils/fs.h>
c... |
<commit_before>#include "src/bitmap.h"
#include "src/camera.h"
#include "src/math.h"
#include "src/timer.h"
#include "src/triangle.h"
#include "src/utils.h"
typedef struct
{
gfx_Triangle tris[2];
} CubeTexQuad;
typedef struct
{
CubeTexQuad walls[6];
} TexCube;
enum DrawModeType
{
TEX_CUBE, // draw te... |
<commit_before>#include <iostream>
#include <fstream>
#include <string>
// Loriano: let's try Armadillo quick code
#include <armadillo>
#define ENTDIM 8
#define COORDIM (ENTDIM-2)
#define PARAMDIM 5
namespace
{
int numofline (const char * fname)
{
int number_of_lines = 0;
std::string line;
std::i... |
<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <stdio.h>
#include <stdlib.h>
#include <process.h>
#include <string.h>
#include <t... |
<commit_before>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <algorithm>
#include <Eigen/Dense>
#include "RRTPlanner.hpp"
#include "motion/TrapezoidalMotion.hpp"
#include <Constants.hpp>
#include <Utils.hpp>
using namespace std;
using namespace Planning;
Geometry2d::Point Planning::randomPoi... |
<commit_before>// Copyright Daniel Wallin 2006. Use, modification and distribution is
// subject to 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)
#include <libtorrent/alert.hpp>
#include <libtorrent/alert_types.hpp>
#include <boost/p... |
<commit_before>/*
* Copyright 2011, Blender Foundation.
*
* 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 version.
*
* Th... |
<commit_before>
#include <stdlib.h>
#include <functional>
#include "gpio.h"
#include "odrive_main.h"
#include "utils.h"
#include "communication/interface_can.hpp"
Axis::Axis(const AxisHardwareConfig_t& hw_config,
Config_t& config,
Encoder& encoder,
SensorlessEstimator& sensorless_esti... |
<commit_before>#include "connection.h"
#include <iostream>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
const size... |
<commit_before>## This file is a template. The comment below is emitted
## into the rendered file; feel free to edit this file.
// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!!
<%
interfaceDict = {}
%>\
%for key in sensorDict.iterkeys():
<%
sensor = sensorDict[key]
serviceInterface = sensor["se... |
<commit_before>/*
* This source file is part of ArkGameFrame
* For the latest info, see https://github.com/ArkGame
*
* Copyright (c) 2013-2017 ArkGame 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 o... |
<commit_before>#pragma once
#include <Llama.h>
#include <Sprite.h>
#include <Texture.h>
#include <MeshInterface.h>
#include <Easing.h>
Llama::Llama(Shader * _shader) :
llama(new Sprite(_shader)),
isHopping(false),
hopSpeed(1.f),
hopDuration(1.f),
hopLength(5.f),
hopHeight(2.f),
currHopTime(0.f)
{
Texture * te... |
<commit_before>/*
* This file is part of PlantLight application.
*
* 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 require... |
<commit_before>//put global includes in 'BasicIncludes'
// hi
#include "BasicIncludes.h"
#include "rand.h"
#include "Camera.h"
#include "Input.h"
#include "Object.h"
#include "Terrain.h"
//Function List
void Update(double);
void Draw();
void CameraInput();
void MouseInput();
void InitializeWindow();
void Terminate()... |
<commit_before>// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/common/api/atom_bindings.h"
#include <algorithm>
#include <iostream>
#include <string>
#include "atom/common/atom_version.h"
#include "atom/common/chrom... |
<commit_before>#include <values.h>
#include "LinearAlgebra.hh"
#include "util.hh"
namespace LinearAlgebra {
double
spd_log_determinant(const Matrix &A)
{
assert(A.rows()==A.cols());
//assert(is_spd(A));
LaGenMatDouble chol;
cholesky_factor(A, chol);
double log_det=0;
for (int i=0; i<ch... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <iostream.h>
#include <fstream.h>
/**
* Requires GAlib from http://lancet.mit.edu/ga/ to run.
*/
#include <ga/ga.h>
#include <ga/GARealGenome.h>
#include <ga/GARealGenome.C>
extern "C" {
#include "tmp/scores.h"
#include "tmp/tests.... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2017 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... |
<commit_before>
#include "TMainWindow.h"
#include "Application.h"
#include <iostream>
using namespace org::toxic;
using namespace std;
TMainWindow::TMainWindow(BRect frame): BWindow(frame,"Guitar Master",B_TITLED_WINDOW,B_NOT_ZOOMABLE | B_NOT_RESIZABLE)
{
cout<<"Main window"<<endl;
timer = new BMessageRunner(t... |
<commit_before>#include <string.h>
#include <util/atomic.h>
#include "GNSS_Clock.h"
#include <MicroNMEA.h>
GNSS_Clock gnss_clock;
void GNSS_Clock::isr(void)
{
gnss_clock.ppsHandler();
}
bool GNSS_Clock::begin(void* buffer, uint8_t len, uint8_t ppsPin, uint8_t edge)
{
_nmea.setBuffer(buffer, len);
pinMode(pp... |
<commit_before>//===-- Symbols.cpp ---------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "Game/Clock.h"
#include <map>
#include <chrono>
#include "Exceptions/Out_Of_Time_Exception.h"
Clock::Clock(double duration_seconds, size_t moves_to_reset, double increment_seconds) :
whose_turn(WHITE),
use_clock(duration_seconds > 0),
use_reset(moves_to_reset > 0),
move_count_... |
<commit_before>/*
* Copyright (c) 2009 Steven Noonan <steven@uplinklabs.net>
* and Miah Clayton <miah@ferrousmoon.com>
* 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>// Scintilla source code edit control
// Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org>
/*
This is the Lexer for Gui4Cli, included in SciLexer.dll
- by d. Keletsekis, 2/10/2003
To add to SciLexer.dll:
1. Add the values below to INCLUDE\Scintilla.iface
2. Run the include/HFacer.py script
3. Ru... |
<commit_before>#include <nan.h>
#include <iostream>
#include <string>
#include <sstream>
#include <map>
#include <stdlib.h>
#include <stdio.h>
#include <poppler/qt4/poppler-form.h>
#include <poppler/qt4/poppler-qt4.h>
#include <cairo/cairo.h>
#include <cairo/cairo-pdf.h>
#include <QtCore/QBuffer>
#include <QtCore/QF... |
<commit_before>//===-- tsan_rtl_mutex.cc -------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/**
* @file
* @author lpraz
*
* @section DESCRIPTION
* Defines tiger's operations functions, which are the top-level functions
* for each of tiger's commands.
* Any operations functions will be placed in the Tiger::Operations
* namespace.
*/
// Stdlib includes
#include <algorithm>
#include <ios... |
<commit_before>#ifndef COFFEE_MILL_PDB_RESIDUE
#define COFFEE_MILL_PDB_RESIDUE
#include "PDBAtom.hpp"
#include <memory>
namespace coffeemill
{
class PDBResidue
{
public:
using size_type = std::size_t;
using index_type = size_type;
using element_type = std::shared_ptr<PDBAtom>;
using conta... |
<commit_before>#include "capacitor.h"
#include "time_ordered_set.h"
#include "../utils/utils.h"
#include "../utils/locker.h"
#include "../timeutil.h"
#include <cassert>
#include <algorithm>
#include <list>
#include <map>
#include <limits>
#include <utility>
#include <unordered_map>
using namespace dariadb;
using names... |
<commit_before>/*
Copyright (C) 2010-2011 Collabora Ltd.
@author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
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; e... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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 3 of the License, or
(at your option) any later version.
cpp-ethereum is dis... |
<commit_before>
/*---------------------------------------------------------
* Includes
*--------------------------------------------------------*/
#include "KingJelly.h"
#include "RainEffect.h"
/*---------------------------------------------------------
* Macros
*-----------------------------------------------... |
<commit_before>#include "RandomWall.h"
#include "RoomWall.h"
#include <memory>
void RandomWalls::generateContent(Room * room)
{
auto topWall = std::make_shared<RoomWall>(250, 50);
room->spawn(topWall, room->getRandomPosition());
// room->spawn(wall, );
}
<commit_msg>adding in random chance for vertical walls<co... |
<commit_before>#include "Rasterizer.h"
#include <limits> //numerics::max
#include "Utils.h" //
Rasterizer::Rasterizer()
: Renderer() {
}
Rasterizer::Rasterizer(World* world, const uint16_t image_width, const uint16_t image_height)
: Renderer(world, image_width, image_height) {
}
Rasterizer::~Rasterizer(){
}... |
<commit_before>/*
* qdispatchqueue.cpp
*
* Copyright (c) 2011-2013 MLBA-Team.
* All rights reserved.
*
* @LICENSE_HEADER_START@
* 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>#ifndef SORT_COMMON_H
#define SORT_COMMON_H
#include <algorithm>
#include <complex>
#include <ctime>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include <pthread.h>
#include <cstdlib>
#include <sys/time.h>
#include <sys/resource.h>
#include "NumGen.cpp"
/*! Basic sort... |
<commit_before>/*
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#pragma once
#include <cassert>
#include <cstdlib>
#include <uavcan/linked_list.hpp>
#include <uavcan/impl_constants.hpp>
#include <uavcan/dynamic_memory.hpp>
#include <uavcan/util/compile_time.hpp>
namespace uavcan
{
/**
* Slow b... |
<commit_before>#include <cstdio>
#include <vector>
#include <ctime>
#include <algorithm>
#include <iterator>
#include <fstream>
// include & define dependent libraries and types
#include <map>
#include <utility>
typedef struct { float left, top, right, bottom; } rect_t;
typedef struct { float v1, v2, v3, v4; } com_t;
... |
<commit_before>void MUONdigit (Int_t evNumber1=0, Int_t evNumber2=0, Int_t ibg=1, Int_t bgr=10)
{
// Dynamically link some shared libs
if (gClassTable->GetID("AliRun") < 0) {
gROOT->LoadMacro("loadlibs.C");
loadlibs();
}
// Connect the Root Galice file containing Geometry, Kine and Hits
TFile *... |
<commit_before>#include <QtCore/QDebug>
#include <QtCore/QTimer>
#include <QtDBus/QtDBus>
#include <QtTest/QtTest>
#include <QDateTime>
#include <QString>
#include <QVariantMap>
#include <TelepathyQt4/Account>
#include <TelepathyQt4/AbstractClientHandler>
#include <TelepathyQt4/Channel>
#include <TelepathyQt4/Channel... |
<commit_before>#ifndef SDL_CONFIG_HH
#define SDL_CONFIG_HH
//Forced Config
//#undef HAVE_OPENGL //engine call seems to work... 3D part postponed...
#undef THREAD
//Normal Setup
#define DEFAULT_DISPLAY_WIDTH 640
#define DEFAULT_DISPLAY_HEIGHT 480
#define DEFAULT_DISPLAY_BPP 0 //0 for current display pixel mo... |
<commit_before>#ifndef CPPUT_TESTHARNESS_HPP
#define CPPUT_TESTHARNESS_HPP
///////////////////////////////////////////////////////////////////////////////
///
/// \brief A light-weight and easy to use unit testing framework for C++
/// \details Header-only unit testing framework that makes unit testing easy
/// ... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include <gtest/gtest.h>
#include <unistd.h>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <string>
#include "../../cvmfs/encrypt.h"
#include "../../cvmfs/hash.h"
#include "../../cvmfs/util.h"
#include "testutil.h"
using na... |
<commit_before>#include "collisionSystem.hpp"
#include <fstream>
#include <string>
#include <sstream>
#include "player.hpp"
namespace aw
{
CollisionType CollisionSystem::checkCollision(const Player &player)
{
//Check every vertex for collision
for (std::size_t i = 0; i < 3; ++i)
{
if (player.getVertexPosi... |
<commit_before>/*
* Copyright (c) 2014 Eran Pe'er.
*
* This program is made available under the terms of the MIT License.
*
* Created on Mar 10, 2014
*/
#if defined (__GNUG__)
#include <string>
#include <iosfwd>
#include <stdexcept>
#include <tuple>
#include <type_traits>
#include "tpunit++.hpp"
#include "fake... |
<commit_before>/*
* INTEL CONFIDENTIAL
* Copyright © 2011 Intel
* Corporation All Rights Reserved.
*
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Intel Corporation or its suppliers
* or licensors. Title to the Material remains with In... |
<commit_before>/*
Copyright (c) 2015, Dimitri Diakopoulos 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 conditio... |
<commit_before>#include <sys/errno.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/uio.h>
#include <errno.h>
#include <limits.h>
#include <signal.h>
#include <unistd.h>
#include <common/buffer.h>
#include <common/limits.h>
#include <event/action.h>
#include <event/callback.h>
#include <event/event_sy... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef DATABASE_HH_
#define DATABASE_HH_
#include "core/sstring.hh"
#include "core/shared_ptr.hh"
#include "net/byteorder.hh"
#include "utils/UUID.hh"
#include "db_clock.hh"
#include "gc_clock.hh"
#include <functional>
#include <boost/any.hpp>
#inclu... |
<commit_before>#include "model.h"
#include "model_io.h"
#include "modelwidget.h"
#include "figurepainter.h"
#include "recognition.h"
#include "layouting.h"
#include <QPainter>
#include <QMouseEvent>
#include <QInputDialog>
#include <QMessageBox>
#include <QWheelEvent>
#include <QGesture>
#include <QDebug>
#include <QTi... |
<commit_before>/*******************************************************************************
* This file is part of "Patrick's Programming Library", Version 7 (PPL7).
* Web: http://www.pfp.de/ppl/
*
*******************************************************************************
* Copyright (c) 2018, Patrick Fed... |
<commit_before>// Copyright (c) 2011 The Chromium Embedded Framework 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 "tests/unittests/test_suite.h"
#include "tests/cefclient/client_switches.h"
#include "base/command_line.h"
... |
<commit_before>#include <glm/setup.hpp>
#define GLM_SWIZZLE GLM_SWIZZLE_XYZW
#include <glm/glm.hpp>
#include <glm/gtc/type_precision.hpp>
#include <gli/gli.hpp>
#include <gli/gtx/loader_tga.hpp>
#include <gli/gtx/loader_dds.hpp>
#include "bug.hpp"
#include "core.hpp"
#include <vector>
//#include <boost/format.hpp>
... |
<commit_before>//===-- dfsan.cc ----------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "gtest/gtest.h"
#include "core/math.h"
using namespace narukami;
TEST(math,rcp){
EXPECT_FLOAT_EQ(rcp(2.0f),0.5f);
EXPECT_FLOAT_EQ(rcp(3.0f),1.0f/3.0f);
EXPECT_FLOAT_EQ(rcp(5.0f),1.0f/5.0f);
EXPECT_FLOAT_EQ(rcp(7.0f),1.0f/7.0f);
}
TEST(math,isnan){
float x=0.0f/0.0f;
EXPE... |
<commit_before>#pragma once
#include <type_traits>
#include <utility>
#include <memory>
#include <string>
#include <chrono>
#include <uv.h>
#include "request.hpp"
#include "stream.hpp"
#include "util.hpp"
namespace uvw {
namespace details {
enum class UVTcpFlags: std::underlying_type_t<uv_tcp_flags> {
IPV6O... |
<commit_before>// Filename: internalName.cxx
// Created by: masad (15Jul04)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
/... |
<commit_before>/* value_function_test.cpp -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 27 Mar 2014
FreeBSD-style copyright and disclaimer apply
Tests for ValueFunction.
*/
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#define REFLECT_USE_EXCEPTIONS 1
#include "reflect... |
<commit_before>/*
Copyright 2017 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, modify, merge, p... |
<commit_before>// Copyright (C) 2010, Vaclav Haisman. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modifica-
// tion, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
... |
<commit_before>/* Copyright (c) 2016-2016, Vasil Dimov
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, pub... |
<commit_before>#include <apf.h>
#include <PCU.h>
#include <list>
#include <set>
#include <limits.h>
#include "parma_graphDist.h"
#include "parma_dijkstra.h"
#include "parma_dcpart.h"
#include "parma_meshaux.h"
#include "parma_convert.h"
#include "parma_commons.h"
namespace {
apf::MeshTag* initTag(apf::Mesh* m, const... |
<commit_before>// Part of ssig -- Copyright (c) Christian Neumüller 2012--2013
// This file is subject to the terms of the BSD 2-Clause License.
// See LICENSE.txt or http://opensource.org/licenses/BSD-2-Clause
#include "ssig.hpp"
#define BOOST_TEST_MODULE SsigTest
#include <boost/test/unit_test.hpp>
using namespace... |
<commit_before>#include "cute.h"
#include "ide_listener.h"
#include "xml_listener.h"
#include "cute_runner.h"
#include "indexableSet.h"
void testIndexableSetAccess() {
IndexableSet<char> is{'b', 'e', 'e', 'r'};
ASSERT_EQUAL(3, is.size());
ASSERT_EQUAL('b', is[0]);
ASSERT_EQUAL('e', is[1]);
ASSERT_E... |
<commit_before>/**
* \file wprastar.cc
*
*
*
* \author Seth Lemons
* \date 2009-03-19
*/
#include <assert.h>
#include <math.h>
#include <errno.h>
#include <vector>
#include <limits>
#include "wprastar.h"
#include "projection.h"
#include "search.h"
#include "state.h"
using namespace std;
wPRAStar::wPRAStarTh... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// 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>#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/type_ptr.hpp"
#include "Camera.h"
#include "util.h"
#include "FlatCube.h"
unsigned int FlatCube::flatCubeCounter = 0;
/**
* Shader IDs
*/
GLuint FlatCube::vertexShaderId = 0;
GLuint FlatCube::fragmentShaderId = 0;
GLuint FlatCube::programObj... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// 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>#include "control.h"
#include<chrono>
std::atomic<int> BVS::Control::runningThreads;
int BVS::Control::threadedModules = 0;
BVS::Control::Control(Info& info)
: info(info)
, flag(SystemFlag::PAUSE)
, logger("Control")
, masterMutex()
, masterLock(masterMutex)
, masterCond()
, threadMutex(... |
<commit_before>#include <PCU.h>
#include <MeshSim.h>
#include <SimPartitionedMesh.h>
#include <SimUtil.h>
#include <SimParasolidKrnl.h>
#include <apfSIM.h>
#include <apfMDS.h>
#include <gmi_sim.h>
#include <apf.h>
#include <apfConvert.h>
#include <apfMesh2.h>
static void fixMatches(apf::Mesh2* m)
{
if (m->hasMatchin... |
<commit_before>#include <iostream>
#include <osg/Array>
#include <osg/BoundingSphere>
#include <osg/BufferIndexBinding>
#include <osg/BufferObject>
#include <osg/Group>
#include <osg/Math>
#include <osg/MatrixTransform>
#include <osg/Program>
#include <osg/Shader>
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
... |
<commit_before>/**
* Copyright 2016 Pivotal Software, 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 r... |
<commit_before>#define BOOST_TEST_MODULE FastFourierTransform
#include <boost/test/unit_test.hpp>
#include <vexcl/vector.hpp>
#include <vexcl/fft.hpp>
#include <vexcl/random.hpp>
#include <vexcl/element_index.hpp>
#include <vexcl/reductor.hpp>
#include "context_setup.hpp"
BOOST_AUTO_TEST_CASE(transform_expression)
{
... |
<commit_before>#include "coroutine.h"
#include "gtest\gtest.h"
void deterministic_test(void* arg)
{
context* ctx = static_cast<context*>(arg);
for (uintptr_t i = 0; i < 64; ++i)
{
coroutine_yield(ctx, reinterpret_cast<void*>(i));
}
}
TEST(run, yield_unmodified)
{
context* ctx = coroutine_start({ 16382, &determ... |
<commit_before>/*
* VHDL code generation for LPM devices.
*
* Copyright (C) 2008 Nick Gasson (nick@nickg.me.uk)
*
* 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... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ppttoxml.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-08 21:47:05 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: framelistanalyzer.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: kz $ $Date: 2005-07-12 14:13:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>
#include <QAction>
#include <QToolBar>
#include "wd.h"
#include "toolbar.h"
#include "form.h"
#include "pane.h"
#include "cmd.h"
// ---------------------------------------------------------------------
ToolBar::ToolBar(string n, string s, Form *f, Pane *p) : Child(n,s,f,p)
{
type="ToolBar";
QTool... |
<commit_before>/** Copyright (C) 2012 Aldebaran Robotics
*/
#include <boost/program_options.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include <qi/log.hpp>
#include <qi/os.hpp>
#include <qimessaging/applicationsession.hpp>
#include <qitype/jsoncodec.hpp>
#include "qicli.hpp"
#define ... |
<commit_before>// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
<commit_before>/*
* Copyright 2018 NXP.
*
* 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 conditions and the following disclaimer.
... |
<commit_before>// Licence 2
#include <cstring>
#include <stdlib.h>
#include <sstream>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
#include "include/dart_api.h"
#include "include/dart_native_api.h"
Dart_Handle NewDartExceptionWithMessage(const char* library_url,
... |
<commit_before>//
// CameraRenderer.cpp
// G3MiOSSDK
//
// Created by José Miguel S N on 04/06/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#include "CameraRenderer.hpp"
#include "Camera.hpp"
CameraRenderer::CameraRenderer():
_camera0(NULL, 0,0),
_initialPoint(0,0,0),
_currentGesture(None... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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 3 of the License, or
(at your option) any later version.
cpp-ethereum is dis... |
<commit_before>// Ouzel by Elviss Strazdins
#ifndef OUZEL_ASSETS_SPRITELOADER_HPP
#define OUZEL_ASSETS_SPRITELOADER_HPP
#include <algorithm>
#include "Loader.hpp"
#include "Bundle.hpp"
#include "../scene/SpriteRenderer.hpp"
#include "../formats/Json.hpp"
namespace ouzel::assets
{
class SpriteLoader final: public... |
<commit_before>#include <StdAfx.h>
#include <Interpret/SmartView/SIDBin.h>
#include <UI/MySecInfo.h>
namespace smartview
{
void SIDBin::Parse()
{
auto hRes = S_OK;
const PSID SidStart = const_cast<LPBYTE>(m_Parser.GetCurrentAddress());
const auto cbSid = m_Parser.RemainingBytes();
m_Parser.Advance(cbSid);
... |
<commit_before>/*
* Author(s):
* - Cedric Gestes <gestes@aldebaran-robotics.com>
* - Herve Cuche <hcuche@aldebaran-robotics.com>
*
* Copyright (C) 2012 Aldebaran Robotics
*/
#include <qimessaging/session.hpp>
#include <qimessaging/datastream.hpp>
#include <qimessaging/transport_socket.hpp>
#include <qimessaging/ob... |
<commit_before>/*
* D-Bus AT-SPI, Qt Adaptor
*
* Copyright 2009-2011 Nokia Corporation and/or its subsidiary(-ies).
*
* 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
* vers... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.