text stringlengths 54 60.6k |
|---|
<commit_before>//
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2009 Bastian Holst <bastianholst@gmx.de>
//
// Self
#include "Abstr... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* libwpd
* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
* Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
* Copyright (C) 2004 Fridrich Strba (fridrich.strba@bluewin.ch)
*
* This library is free software; you can... |
<commit_before>// Filename: actorNode.cxx
// Created by: charles (07Aug00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Softw... |
<commit_before>#include <algorithm> // std::max
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include "allocore/types/al_MsgQueue.hpp"
namespace al{
MsgQueue :: MsgQueue(int size, malloc_func mfunc, free_func ffunc)
: mHead(NULL), mTail(NULL), mPool(NULL),
mLen(0), mChunkSize(0), mNo... |
<commit_before>#ifndef AMGCL_MPI_REPARTITION_PARMETIS_HPP
#define AMGCL_MPI_REPARTITION_PARMETIS_HPP
/*
The MIT License
Copyright (c) 2012-2018 Denis Demidov <dennis.demidov@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (th... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013, 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>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: http://www.qt-project.org/
**
**
** GNU Lesser General Public License Usage
**
** This file may be used ... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include <algorith... |
<commit_before>/*
* Copyright 2016 Krysta M Bouzek
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
<commit_before>/*
MIT License
Copyright (c) 2019 Bart Bilos
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, merg... |
<commit_before>/* Copyright (c) 2010-2017, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should h... |
<commit_before>#include <iostream>
#include <cstdlib>
#include <ctime>
#include <vector>
#include "RadixSort.hpp"
#include "Timing.hpp"
// #define DEBUG
#ifdef DEBUG
#include <algorithm>
#endif
typedef int types;
int main (int argc, char *argv[]) {
const int size = atoi(argv[1]);
srand(tim... |
<commit_before>/*
* File: test.cpp
*
* Created on November 5, 2010, 2:30 PM
*/
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include "EDFFile.h"
#include "EDFUtil.h"
#include "EDFHeader.h"
#include "EDFAnnotation.h"
#include "EDFSignalData.h"
using namespace std... |
<commit_before>void loadlibs ()
{
gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libminicern");
gSystem->Load("$(ROOTSYS)/lib/libPhysics");
gSystem->Load("$(ROOTSYS)/lib/libEG");
gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libSTEER");
gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTGe... |
<commit_before>//
// Created by peixot_b on 23/05/17.
//
#include <iostream>
#include "Fire.hpp"
#include "map.hpp"
#include <irrlicht.h>
const std::map<FireDirection, std::function<void(irr::core::vector3di &pos)>> Fire::_DIRECTIONS_ACTION = {
{FORWARD, [](irr::core::vector3di &pos) { pos.X += 1; }},
{BACKWARD, [... |
<commit_before>#include <string>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmat... |
<commit_before>#include <QTRSensors.h>
#include <ZumoReflectanceSensorArray.h>
#include <Pushbutton.h>
#include <LSM303.h>
#include <Wire.h>
/***
Dev Notes:
-Acceleration seems to read only in X,Y directions. I guess Z
could work, I'd have to look further into the header, but
I don... |
<commit_before>#include "profileapplet.h"
#include "profiletranslation.h"
#include "profilewidget.h"
#include "profilebrief.h"
#include "dcpprofile.h"
#include "dcpwidget.h"
#include <QtGui>
#include <QDebug>
#include <DuiTheme>
#include <DuiAction>
Q_EXPORT_PLUGIN2(profileapplet, ProfileApplet)
const QString cssD... |
<commit_before>/**
* Copyright 2015 MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<commit_before>#pragma once
#include <cstring>
#include <cstdio>
#include <string>
#include <iostream>
#include <map>
namespace bson {
// Basic types
enum node_type {
double_node = 0x01,
string_node = 0x02,
document_node = 0x03,
binary_node = 0x05,
boolean_node = 0x08... |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2010, 2011, 2012, 2013, 2014
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by t... |
<commit_before>#pragma once
///////////////////////////////////////////////////////////////////////////////
/// @file Bun.hpp
/// @author BrainlessLabs
/// @version 0.3
/// @brief The include file for Bun ORM. This file includes all the source
/// to make the class/struct persist in sqlite. Users need to includ... |
<commit_before>#pragma once
#include <type_list.hpp>
#include <integer_sequence.hpp>
#include <sfinae.hpp>
#include "reflection_info.hpp"
#include "director.hpp"
namespace shadow
{
template <class CompileTimeTypeInfo>
struct extract_name
{
static constexpr const char* value = CompileTimeTypeInfo::name;
};
tem... |
<commit_before>//=======================================================================
// Copyright (c) 2014 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>#ifndef QRW_BOARD_HPP
#define QRW_BOARD_HPP
#include <SFML/System/Vector2.hpp>
namespace qrw
{
class AbstractAlgorithm;
class Path;
class Coordinates;
class Square;
class Board
{
public:
Board(int _width, int _height);
~Board();
Square* getSquare(int x, int y);
Square* getSquare(s... |
<commit_before>/* The MIT License (MIT)
Copyright (c) 2016 jonathan poelen
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, cop... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>#pragma once
#include <type_traits>
#include <vector>
#include <initializer_list>
#include <cstddef>
#include <algorithm>
#include <iterator>
namespace helene
{
template <class T, std::size_t StackBufferSize = sizeof(std::vector<T>)>
class small_vector
{
static_assert(std::is_trivial<T>::value,
... |
<commit_before>#ifndef FILTER_FALSE__HPP__
#define FILTER_FALSE__HPP__
#include <iterbase.hpp>
#include <filter.hpp>
namespace iter {
namespace detail {
// Callable object that reverses the boolean result of another
// callable, taking the object in a Container's iterator
template <typen... |
<commit_before>/***************************************************************************
* installable external renderer
***************************************************************************/
#include "external_renderer_shader.h"
#include "objects/material.h"
#include "objects/mesh.h"
#include "objects/com... |
<commit_before>/*
* Copyright (C) 2008 Sebastian Sauer <mail@dipe.org>
*
* This file is part of SuperKaramba.
*
* SuperKaramba 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 Lic... |
<commit_before>#include <Object.h>
#include <sstream>
#include <gsl/gsl_math.h>
#include <fitsio.h>
Object::Object(unsigned int inid) : Image<double>(), segMap(*this) {
id = inid;
flag = 0;
blend = s_g = -1;
flux = centroid(0) = centroid(1) = -1;
}
Object::Object(std::string objfile) : Image<double>(), segMap... |
<commit_before>#include "RigidRobot2DCSpace.h"
#include "EdgePlanner.h"
#include <GLdraw/GL.h>
#include <math/angle.h>
#include <math/random.h>
#include <math/sample.h>
RigidRobot2DCSpace::RigidRobot2DCSpace()
{
angleDistanceWeight = 0.3;
visibilityEpsilon = 0.01;
domain.bmin.set(0,0);
domain.bmax.set(1,1);
}
... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2016 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2008 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 <output.hpp>
#include <opengl.hpp>
#include <core.hpp>
#include "../../shared/config.hpp"
/* TODO: this file should be included in some header maybe(plugin.hpp) */
#include <linux/input-event-codes.h>
class wayfire_expo : public wayfire_plugin_t {
private:
key_callback toggle_cb, pr... |
<commit_before>#include "view.hpp"
#include "view-transform.hpp"
#include "output.hpp"
#include <linux/input.h>
class wf_wrot : public wayfire_plugin_t
{
button_callback call;
public:
void init(wayfire_config *config)
{
call = [=] (uint32_t x, int, int)
{
... |
<commit_before>#ifndef GENERIC_CIFY_HPP
# define GENERIC_CIFY_HPP
# pragma once
#include <utility>
namespace generic
{
namespace
{
template <typename F, int I, typename L, typename R, typename ...A>
inline F cify(L&& l, R (*)(A...))
{
static L const l_(::std::forward<L>(l));
struct S
{
static R f(A... ar... |
<commit_before>/* bzflag
* Copyright (c) 1993-2011 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
*... |
<commit_before>/*
* Copyright (C) 2003-2008 Justin Karneges <justin@affinix.com>
*
* 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 ... |
<commit_before>// SAMPLE_PLUGIN.cpp : Defines the entry point for the DLL application.
//
#include "bzfsAPI.h"
#include "plugin_utils.h"
#include <string>
#include <vector>
class SuperUser : public bz_Plugin
{
public:
virtual const char* Name (){return "SuperUser";}
virtual void Init ( const char* config);
vi... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (people-users@projects.maemo.org)
**
** This file is part of contactsd.
**
** If you have questions re... |
<commit_before>/*
* DamageMap.cpp
*
* Created on: 13/07/2010
* Author: victor
*/
#include "server/zone/objects/creature/CreatureObject.h"
#include "server/zone/objects/tangible/weapon/WeaponObject.h"
#include "ThreatMap.h"
#include "server/zone/objects/tangible/tasks/ClearThreatStateTask.h"
#include "server... |
<commit_before>#include <thread>
#include <ctime>
#include <QSettings>
#include <iostream>
#include "lirch_plugin.h"
#include "userlist_messages.h"
#include "user_status.h"
#include "received_messages.h"
#include "notify_messages.h"
#include "grinder_messages.h"
#include "lirch_constants.h"
#include "nick_messages.h"
... |
<commit_before>// Copyright 2021 Code Intelligence 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 appl... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ppapi/cpp/var.h"
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include "ppapi/c/pp_var.h"
#ifndef PPAPI_VAR... |
<commit_before>#ifndef LTL_FUTURE_HPP
#define LTL_FUTURE_HPP
#include <type_traits>
#include <mutex>
#include <memory>
#include "ltl/detail/future_state.hpp"
#include "ltl/detail/result_of.hpp"
#include "ltl/detail/private.hpp"
#include "ltl/traits.hpp"
namespace ltl {
template <typename T>
class future
{
publi... |
<commit_before><commit_msg>Fix a bug in pp:Var (var.cc) where DebugString could throw an exception on Windows; replace _snprintf_s, which doesn't have the same signature as snprintf, with sprintf_s, which has the same function signature. Check length of string vars and truncate values (adding ellipsis at end) if the wo... |
<commit_before>
#ifndef DUNE_STUFF_GRID_BOUNDARYINFO_HH
#define DUNE_STUFF_GRID_BOUNDARYINFO_HH
// system
#include <map>
#include <set>
// dune-common
#include <dune/common/shared_ptr.hh>
namespace Dune {
namespace Stuff {
namespace Grid {
namespace BoundaryInfo {
class AllDirichlet
{
public:
template< class I... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/extensions/file_browser_notifications.h"
#include <gtest/gtest.h>
#include <string>
#include "chrom... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, Ioan A. Sucan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... |
<commit_before>// -*- mode: c++, coding: utf-8 -*-
/**
* tbrpg – Text based roll playing game
*
* Copyright © 2012 Mattias Andrée (maandree@kth.se)
*
* 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 Softwar... |
<commit_before>#include "kernel.h"
#include "geometries.h"
#include "ilwisdata.h"
#include "ellipsoid.h"
#include "geodeticdatum.h"
#include "projection.h"
#include "coordinatesystem.h"
#include "conventionalcoordinatesystem.h"
#include "proj4parameters.h"
using namespace Ilwis;
ConventionalCoordinateSystem::Conventi... |
<commit_before>#ifndef DUNE_STUFF_TOOLS_COMMON_VEECTOR_HH
#define DUNE_STUFF_TOOLS_COMMON_VEECTOR_HH
#include <iostream>
// dune-common
#include <dune/common/densevector.hh>
#include <dune/common/dynvector.hh>
#include <dune/common/deprecated.hh>
namespace Dune {
namespace Stuff {
namespace Common {
template< class... |
<commit_before>/*
* GibbsSampler.hpp
*
* Created on: Jul 25, 2013
* Author: Brandon C. Kelly
*/
#ifndef GIBBSSAMPLER_HPP_
#define GIBBSSAMPLER_HPP_
// std includes
#include <exception>
#include <sstream>
// boost includes
#include <boost/shared_ptr.hpp>
// local includes
#include "parameters.cuh"
templa... |
<commit_before>#include "QxHoloPyramidWidget.h"
#include <QHBoxLayout>
#include <Inventor/Qt/viewers/SoQtViewer.h>
#include <Inventor/nodes/SoCamera.h>
#include <Inventor/nodes/SoPerspectiveCamera.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoViewport.h>
#include <Inventor/sensors/SoNodeSensor... |
<commit_before><commit_msg>tdf#89665: i18npool: speed up TextSearch::searchForward()<commit_after><|endoftext|> |
<commit_before>#pragma once
#include <functional>
#include <Transform/UnitVector.hpp>
#include <Transform/Units.hpp>
#include <Types/Togglable.hpp>
namespace obe::Collision
{
class TrajectoryNode;
class Trajectory;
class PolygonalCollider;
using OnCollideCallback
= std::function<void(Traject... |
<commit_before>/************************************************
* partial_sum.hpp
* DICT
*
* Copyright (c) 2015-2017, Chi-En Wu
* Distributed under The BSD 3-Clause License
************************************************/
#ifndef DICT_INTERNAL_PARTIAL_SUM_HPP_
#define DICT_INTERNAL_PARTIAL_SUM_HPP_
#inclu... |
<commit_before>/*
Copyright (c) 2006, Arvid Norberg
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 condi... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko
*
* 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 2019 Stanford University, NVIDIA Corporation
*
* 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 ... |
<commit_before>#pragma once
#include <atomic>
#include <memory_resource>
#include <string>
#include <vector>
#include <glm/glm.hpp>
namespace nova::renderer {
struct FullVertex {
glm::vec3 position; // 12 bytes
glm::vec3 normal; // 12 bytes
glm::vec3 tangent; ... |
<commit_before><commit_msg>INTEGRATION: CWS dr34 (1.14.46); FILE MERGED 2005/02/24 20:13:16 dr 1.14.46.2: RESYNC: (1.14-1.15); FILE MERGED 2005/02/24 19:01:07 dr 1.14.46.1: #i42572# chart import changes<commit_after><|endoftext|> |
<commit_before><commit_msg>still no SetUpdateMode in ScCellEditSource::GetTextForwarder<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2016, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.
#ifndef TEXT_VIEW_CONCEPTS_HPP // {
#define TEXT_VIEW_CONCEPTS_HPP
#include <origin/cor... |
<commit_before>/* Copyright (c) 2017-2019 Hans-Kristian Arntzen
*
* 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 <QtGui>
#include <QtOpenGL>
#include <cmath>
#include "DiamondGLWidget.h"
typedef QList<QVector3D>::const_iterator PointIter;
const float TAIL_Z = -75;
const float INNER_CIRCLE_Z = 20;
const float INNER_CIRCLE_SIZE = 35;
const float OUTER_CIRCLE_Z = 0;
const float OUTER_CIRCLE_SIZE = 50;
... |
<commit_before>#include "Game/CannonBall.h"
CannonBall::CannonBall(const QPixmap & pixmap, QVector2D velocity, QVector2D position, Player owner, QGraphicsItem * parent) : Entity(pixmap, owner, parent), m_initialVelocity(velocity), m_initialPosition(position), m_gravity(9.8), m_timeSinceShot(0)
{
setScale(0.1);
setPo... |
<commit_before><commit_msg>Workaround Qt 5 macOS menu bug<commit_after><|endoftext|> |
<commit_before>/***************************************************************************
* Copyright (c) 2004 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2017 Baldur Karlsson
*
* 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... |
<commit_before>/*
* Copyright (C) 2015 deipi.com LLC and contributors. All rights reserved.
*
* 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 limit... |
<commit_before>#include "HighlightedFile.hpp"
#include <utility>
#include <fstream>
#include <climits>
#include <iostream>
using namespace synth;
PrimitiveTag Markup::begin_tag() const
{
std::string content("<");
content += tag;
for (auto const& kv : attrs) {
content += ' ';
content += kv.... |
<commit_before>// Onut
#include <onut/ContentManager.h>
#include <onut/Files.h>
#include <onut/Input.h>
#include <onut/Images.h>
#include <onut/Log.h>
// Private
#include "InputDeviceSDL2.h"
// STL
#include <cassert>
#include <fcntl.h>
#include <unistd.h>
namespace onut
{
OInputDeviceRef InputDevice::create(OInp... |
<commit_before>// NanoWin32
// -----------------------------------------------------------------------
// Simple library to subset Win32(64) API functions implemenation on POSIX
// This software distributed by MIT license
// FileFind functions
#include <sys/types.h>
#include <sys/stat.h>
#include <libgen.h>
#include ... |
<commit_before>/*
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz>
This file is part of Magnum.
Magnum is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
only, as published by the Free Software Foundation.
... |
<commit_before>//************************************************************/
//
// CrossSection Implementation
//
// Implements the SPXCrossSection class, which performs the
// convolution and all math required to calculate the cross-
// section from a PDF and a grid file.
//
// @Author: J. Gibson, C. Embree, T. Car... |
<commit_before>//************************************************************/
//
// CrossSection Implementation
//
// Implements the SPXCrossSection class, which performs the
// convolution and all math required to calculate the cross-
// section from a PDF and a grid file.
//
// @Author: J. Gibson, C. Embree, T. Car... |
<commit_before>#include "VehicleGLWidget.h"
#include <QKeyEvent>
#include <cmath>
// Config
const float MAXSPEED = 900;
const float REV_MAXSPEED = 400;
const int ACCELERATION = 250;
const int REV_ACCEL = 120;
const int DRAG = 0;
const int BRAKE_POWER = 1100;
const float TURN_SPEED = 1;
const float ELASTICIT... |
<commit_before>// Copyright 2018 The SwiftShader 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
//
// Un... |
<commit_before>nifndef _H_DOCUMENT_NODE
#define _H_DOCUMENT_NODE
#include "XmlNode.hpp"
namespace Xml
{
/**
* Defines the abstract class of a document node for interface purpose
*/
class DocumentNode : public Node
{
public:
/**
* Constructor
*
* @param pa... |
<commit_before>#include <octree/octree_nn.h>
#include <octree/points.h>
#include <octree/points_parser.h>
#include "ocnn.h"
namespace {
PointsInfo::PropType get_ptype(const string property) {
PointsInfo::PropType ptype = PointsInfo::kPoint;
if (property == "xyz" || property == "xyzi") {
ptype = PointsInfo::k... |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2010, 2011, 2012, 2013, 2014
Raffaello D. Di Napoli
This file is part of Application-Building Components (henceforth referred to as ABC).
ABC is free software: you can redistribute it and/or modify it under the terms o... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ppapi/shared_impl/audio_impl.h"
#include "base/logging.h"
namespace ppapi {
AudioImpl::AudioImpl()
: playing_(false),
... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
<commit_before>#pragma once
#include <mtao/types.hpp>
namespace mtao::geometry::trigonometry {
// pushes an angle to the range [0,2*M_PI)
template <typename S>
S angle_clamp_positive(S ang) {
while(ang > 2* M_PI) {
ang -= 2 * M_PI;
}
while(ang < 0) {
ang +... |
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/eval/eval/fast_value.h>
#include <vespa/eval/eval/tensor_function.h>
#include <vespa/eval/eval/test/eval_fixture.h>
#include <vespa/eval/eval/test/tensor_model.hpp>
#include <... |
<commit_before>//============================================================================
// vSMC/include/vsmc/internal/compiler/gcc.hpp
//----------------------------------------------------------------------------
// vSMC: Scalable Monte Carlo
//--------------------------------------------... |
<commit_before>#include "opt/pipeline/pipeliner.h"
#include "design/design_tool.h"
#include "design/design_util.h"
#include "iroha/i_design.h"
#include "iroha/resource_class.h"
#include "opt/loop/loop_block.h"
#include "opt/optimizer_log.h"
namespace iroha {
namespace opt {
namespace pipeline {
Pipeliner::Pipeliner(... |
<commit_before>/*
* percival_global_params.cpp
*
* Created on: 31 Jul 2015
* Author: pqm78245
*/
#include <cstdlib>
#include "percival_processing.h"
//image height, image width, total frame number, default file locations, calibration height, calibration width, rotated?
bool percival_global_params::is_initi... |
<commit_before>//==================================================
// Copyright (c) 2015 Deividas Kazlauskas
//
// See the file license.txt for copying permission.
//==================================================
/*
* =====================================================================================
*
* ... |
<commit_before>#ifndef __Data__
#define __Data__
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <algorithm> // has the for_each
using namespace std;
string tostring(int i) {
ostringstream tmp;
tmp << i;
return tmp.str();
}
int stringToInt(string const& str) {
istringstr... |
<commit_before>/*
* Copyright (C) 2012-2014 ZNC-MSVC
*
* 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 o... |
<commit_before>#include "n_code_widget.h"
#include "ui_n_code_widget.h"
#include "n_util.h"
#include <QFileSystemModel>
#include <QDebug>
#include <QTextEdit>
#include <QMenu>
#include <QInputDialog>
#include <QMessageBox>
#include <QFileSystemWatcher>
NCodeWidget::NCodeWidget(QWidget *parent) : QWidget(parent), ui(n... |
<commit_before>#include <type_traits>
template <typename... Lambdas>
struct overloaded : public Lambdas...
{
using Lambdas::operator()...;
overloaded(Lambdas&&... lambdas) : Lambdas(std::forward<Lambdas>(lambdas))... {}
};
template <typename... Lambdas>
auto overload(Lambdas&&... ls) -> overloaded<std::decay_... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2010-03-31 16:40:27 +0200 (Mi, 31 Mrz 2010) $
Version: $Revision: 21975 $
Copyright (c) German Cancer Research Center, Division of Medical... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.