text stringlengths 54 60.6k |
|---|
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Denis Shienkov <[email protected]>
** Copyright (C) 2012 Laszlo Papp <[email protected]>
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtSerialPort module of the Qt Toolk... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: outdev5.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2006-09-17 12:07:28 $
*
* The Contents of this file are made ... |
<commit_before>/*
Copyright 2008 Brain Research Institute, Melbourne, Australia
Written by J-Donald Tournier, 27/06/08.
This file is part of MRtrix.
MRtrix 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 Sof... |
<commit_before>#include <btBulletDynamicsCommon.h>
#include "../Physics/GlmConversion.hpp"
#include "RigidBody.hpp"
namespace Component {
RigidBody::~RigidBody() {
Destroy();
}
Json::Value RigidBody::Save() const {
Json::Value component;
component["mass"] = mass;
component[... |
<commit_before>#include <iostream>
#include <fstream>
#include <cstdlib>
#include <math.h>
using namespace std;
int main(int argc, char *argv[])
{
ofstream outfile;
outfile.open("config");
bool cont = true;
int prefix = atoi(argv[1]);
if (prefix < 9) {
int a = 0;
while(cont) {
outfile << a <... |
<commit_before>// Time: O(n)
// Space: O(1)
class Solution {
public:
bool isValidSerialization(string preorder) {
if (preorder.empty()) {
return false;
}
Tokenizer tokens(preorder);
int depth = 0;
int i = 0;
for (; i < tokens.size(); ++i) {
... |
<commit_before><commit_msg>Deleting 'test.cpp'<commit_after><|endoftext|> |
<commit_before>#include "mitkImageStatisticsHolder.h"
#include "mitkHistogramGenerator.h"
#include "mitkImageTimeSelector.h"
mitk::ImageStatisticsHolder::ImageStatisticsHolder( mitk::Image::Pointer image)
: m_Image(NULL), m_TimeSelectorForExtremaObject(NULL)
{
m_CountOfMinValuedVoxels.resize(1, 0);
m_CountOfMax... |
<commit_before>#include "consoleui.h"
using namespace std;
ConsoleUI::ConsoleUI()
{
}
void ConsoleUI::run()
{
bool run = true;
while (run)
{
cout << " ================================" << endl;
cout << " Press 1 to add" << endl;
cout << " Press 2 to sort" << endl;
cout << " P... |
<commit_before>#include "consoleui.h"
#include "servicelayer.h"
#include <fstream>
#include <string>
#include <iostream>
using namespace std;
ConsoleUI::ConsoleUI()
{
}
void ConsoleUI::run()
{
bool run = true;
while (run)
{
cout << " ================================" << endl;
cout << " Pre... |
<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 distributed WITH... |
<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>
#include "SchedulingManagerFactory.h"
#include "TimeWarpEventSetFactory.h"
#include "TimeWarpSimulationManager.h"
#include "SimulationConfiguration.h"
#include "SchedulingManager.h"
#include "DefaultSchedulingManager.h"
#include "TimeWarpMultiSetSchedulingManager.h"
#include <WarpedDebug.h>
/*
... |
<commit_before>#include "nxtKitInterpreterPlugin.h"
#include <QtWidgets/QApplication>
#include <twoDModel/engine/twoDModelEngineFacade.h>
using namespace nxt;
using namespace qReal;
const Id robotDiagramType = Id("RobotsMetamodel", "RobotsDiagram", "RobotsDiagramNode");
const Id subprogramDiagramType = Id... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>// faster alternative to PPTrajectory.eval() in Matlab
// Michael Kaess, June 2013
#include <mex.h>
#include <Eigen/Dense>
#include <unsupported/Eigen/MatrixFunctions>
#include <vector>
#include <iostream>
using namespace Eigen;
using namespace std;
// Initialization:
// obj = PPTmex(breaks,coefs,o... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All right... |
<commit_before>// -*- mode:c++; indent-tabs-mode:nil; -*-
/*
Copyright (c) 2014, Anders Ronnbrant, [email protected]
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 restr... |
<commit_before>#include "vtkConditionVariable.h"
#include "vtkObjectFactory.h"
#include <errno.h>
vtkStandardNewMacro(vtkConditionVariable);
#ifndef EPERM
# define EPERM 1
#endif
#ifndef ENOMEM
# define ENOMEM 12
#endif
#ifndef EBUSY
# define EBUSY 16
#endif
#ifndef EINVAL
# define EINVAL 22
#endif
#ifndef EAGA... |
<commit_before>/*
* libMaia - maiaXmlRpcClient.cpp
* Copyright (c) 2007 Sebastian Wiedenroth <[email protected]>
* and Karl Glatz
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistrib... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2015 PX4 Development Team. All rights reserved.
* Author: Mohammed Kabir <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pro... |
<commit_before>#include <iostream>
template<class T>
struct type_to_string;
template<>
struct type_to_string<char>
{
static constexpr const char *get(){return "char";};
};
template<>
struct type_to_string<short int>
{
static constexpr const char *get(){return "short int";};
};
template<>
struct type_to_string<int... |
<commit_before>#include <QString>
#include <QtTest>
#include <libgpsbip/OptionTypes.h>
#include <libgpsbip/OptionsGroupBase.h>
class MockGroup : public gpsbip::OptionsGroupBase
{
Q_OBJECT
public:
MockGroup() {
auto r = new gpsbip::BoolOption();
root = addOption(r);
opt = addOption<gps... |
<commit_before>/**
* acljobs.cpp
*
* Copyright (c) 2004 David Faure <[email protected]>
*
*
* 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; version 2 of the License
*
* This program is... |
<commit_before>/***************************************************************************
main.cpp - description
-------------------
begin : Wed Aug 2 11:23:04 CEST 2000
copyright : (C) 2000 by Hans Dijkema
email ... |
<commit_before>#include <Common.hpp>
#include <Engine.hpp>
#include <Dispatch.hpp>
#include <MessageProcessor.hpp>
#include <functional>
#include <iostream>
#include <sstream>
#include <fstream>
#include <boost/regex.hpp>
#include <boost/thread/thread.hpp>
namespace K3 {
std::string localhost = "127.0.0.1";
Addre... |
<commit_before>#include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <popt.h>
#include "defs.hh"
#include "StringSet.hh"
#include "FactorEncoder.hh"
#include "GreedyUnigrams.hh"
using namespace std;
void assert_single_chars(ma... |
<commit_before>/*
* game: the game of arithmetic - interactive gui - implementation
* Copyright(c) 2005 by wave++ "Yuri D'Elia" <[email protected]>
*/
/*
* Headers
*/
#include "game.hh"
#include "interp.hh"
using std::string;
#include <algorithm>
using std::max;
#include <cstdlib>
using std::sprintf;
#inclu... |
<commit_before>/*
* copyright: (c) RDO-Team, 2009
* filename : rdoparser_base.cpp
* author : ,
* date :
* bref :
* indent : 4T
*/
// ====================================================================== PCH
#include "rdo_lib/rdo_converter/pch.h"
// =============================================... |
<commit_before>#include "ScriptManager.hpp"
#include <angelscript.h>
#include <scriptbuilder/scriptbuilder.h>
#include <scriptstdstring/scriptstdstring.h>
#include "../Util/Log.hpp"
#include "../Util/FileSystem.hpp"
#include "../Hymn.hpp"
#include "../Scene/Scene.hpp"
#include "../Component/Script.hpp"
#include "../En... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkBSplineInterpolateImageFunctionTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights r... |
<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 2007 Torsten Rahn <[email protected]>"
//
#include "GlobeScanline... |
<commit_before><commit_msg>removing #<commit_after><|endoftext|> |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "attribute_aspect_delayer.h"
#include <vespa/searchlib/attribute/configconverter.h>
#include <vespa/searchcore/proton/common/i_document_type_inspector.h>
#include <vespa/search... |
<commit_before>#include "tateti_struct.h"
#include <iostream>
using namespace std ;
tateti_struct::tateti_struct(MODE m) {
this.table = new char[3][3]
this.mode = m;
this.activeplayer = get_player1();
}
tateti_struct::init_game(){
while(!game_over())
{
int x;
int y;
cout<< "gimme me ya move "<< actual_pla... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>// Copyright ***********************************************************
//
// File ecmdCommandUtils.C
//
// IBM Confidential ... |
<commit_before>/// \file
/// \ingroup tutorial_eve
/// Demonstates usage of geometry aliases - merge ALICE ITS with ATLAS MUON.
///
/// \image html eve_geom_alias.png
/// \macro_code
///
/// \author Matevz Tadel
void geom_alias()
{
TEveManager::Create();
gEve->RegisterGeometryAlias("ALICE", "http://root.cern.ch... |
<commit_before>/// \file
/// \ingroup tutorial_graphics
/// \notebook
/// This tutorial illustrates the special contour options.
///
/// - "AITOFF" : Draw a contour via an AITOFF projection
/// - "MERCATOR" : Draw a contour via an Mercator projection
/// - "SINUSOIDAL" : Draw a contour via an Sinusoidal pro... |
<commit_before>// pythia8 basic example
//Author: Andreas Morsch
//
// to run, do
// root > .x pythia8.C
//
// Note that before executing this script,
// -the env variable PYTHIA8 must point to the pythia8100 (or newer) directory
// -the env variable PYTHIA8DATA must be defined and it must point to $PYTHIA8/xmldo... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistr... |
<commit_before>#include "pqrs/file_path.hpp"
#include "pqrs/vector.hpp"
#include <iostream>
namespace pqrs {
namespace file_path {
std::string
combine(const std::string& path1,
const std::string& path2)
{
return path1 + "/" + path2;
}
namespace {
size_t
get_dirname_... |
<commit_before>/*************************************************************************
*
* $RCSfile: RenameElemTContext.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2004-07-13 08:58:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>
#include "math.h"
#include <sstream>
#include <limits>
#include <stdexcept>
#include "glps_parser.h"
#include "scsi/config.h"
namespace {
// Numeric operations
int unary_negate(parse_context* ctxt, expr_value_t *R, const expr_t * const *A)
{
*R = -boost::get<double>(A[0]->value);
return 0;
}... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009, Image Engine Design 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:... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include <Arduino.h>
#include <Wire.h>
#include <functional>
#define MOCK_GLOBAL_METHOD(RETURN_TYPE, FUNCTION_NAME) \
template< typename... Args>\
RETURN_TYPE FUNCTION_NAME (Args... args)\
{\
return mockPointer->FUNCTION_NAME(args...);\
}\
#define R... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge,... |
<commit_before><?hh // strict
/**
* @copyright 2010-2015, The Titon Project
* @license http://opensource.org/licenses/bsd-license.php
* @link http://titon.io
*/
namespace Titon\Kernel;
use Titon\Event\EmitsEvents;
use Titon\Event\Subject;
use Titon\Kernel\Event\ShutdownEvent;
use Titon\Kernel\Event\S... |
<commit_before>//
// CACheckbox.cpp
// CrossApp
//
// Created by Li Yuanfeng on 14-3-23.
// Copyright (c) 2014 http://9miao.com All rights reserved.
//
#include "CACheckbox.h"
#include "view/CAScale9ImageView.h"
#include "view/CAView.h"
#include "view/CAScrollView.h"
#include "dispatcher/CATouch.h"
#include "basic... |
<commit_before>// Copyright (c) 2011 Zeex
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2016 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>#include <stdio.h>
#include <sys/sysinfo.h>
#include <sys/statfs.h>
#include <sys/vfs.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <sys/ioctl.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <net/if.h>
#include "event/event.h"
#include "event/bufferevent.h"
#inc... |
<commit_before>/*===========================================================================*\
* *
* OpenMesh *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aa... |
<commit_before>#pragma once
#include <agency/detail/config.hpp>
#include <thrust/system_error.h>
#include <thrust/system/cuda/error.h>
#include <cuda_runtime.h>
namespace agency
{
namespace cuda
{
namespace detail
{
template<class T>
class managed_allocator
{
public:
using value_type = T;
value_type* a... |
<commit_before><commit_msg>[PartDesign] Remove 'Set tip' from Body contextual menu ; fixes #4304<commit_after><|endoftext|> |
<commit_before>/**
* Copyright (C) 2016 3D Repo Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* T... |
<commit_before>#ifndef GNR_INVOKE_HPP
# define GNR_INVOKE_HPP
# pragma once
#include <functional>
#include <tuple>
namespace gnr
{
namespace detail::invoke
{
template <typename>
struct is_tuple : std::false_type {};
template <typename ...T>
struct is_tuple<std::tuple<T...>> : std::true_type {};
template <typenam... |
<commit_before>/**
* \file
* \brief threadTestCases object definition
*
* \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
... |
<commit_before>/* Carloop mileage reminder app
* Copyright 2016 1000 Tools, Inc.
*
* Accumulates miles in a counter stored in EEPROM.
* When the limit is reached, set a flag in EEPROM that an event should
* be published to the Particle Cloud.
* In the cloud, set the event to send an SMS to the driver.
*/
#includ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>#include <stdio.h>
int main(int argc, char* argv[]) {
freopen("game.in", "r", stdin);
freopen("game.out", "w+", stdout);
int n, o, i, p;
scanf("%i", &n);
for(i = 1; i <= n; i++) {
long long a, b;
o = 0, p = 0;
scanf("%lli %lli", &a, &b);
while(a > b) {
p++;
a -= a / 2;
if(!(a % 2))... |
<commit_before>#include "common/grpc/common.h"
#include "common/http/headers.h"
#include "test/mocks/upstream/mocks.h"
#include "test/proto/helloworld.pb.h"
#include "test/test_common/utility.h"
#include "gtest/gtest.h"
namespace Envoy {
namespace Grpc {
TEST(GrpcCommonTest, GetGrpcStatus) {
Http::TestHeaderMapIm... |
<commit_before>/*
* Copyright (c) 2016 tildearrow
*
* 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>/*
* This file is part of Poedit (http://www.poedit.net)
*
* Copyright (C) 2008-2013 Vaclav Slavik
*
* 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 restric... |
<commit_before>#include "StructuredDomain.h"
#include <cassert>
using namespace std;
Skeleton::Skeleton(Domain domain): _norient(numOrientations(domain)) {
assert(_norient > 0);
_orientations = new DPAG[_norient];
_top_orders = new (vector<int>)[_orient];
}
Skeleton::~Skeleton() {
delete[] _orientations;
... |
<commit_before>/*
* author: Max Kellermann <[email protected]>
*/
#include "Client.hxx"
#include "event/Duration.hxx"
#include "net/SocketAddress.hxx"
#include "net/Interface.hxx"
#include <daemon/log.h>
#include <avahi-common/error.h>
#include <avahi-common/malloc.h>
#include <avahi-common/alternative.h>
MyAvahiClie... |
<commit_before>#include "cosmology.hpp"
#include <math.h>
#include <gsl/gsl_integration.h>
#include <gsl/gsl_odeiv2.h>
#include <gsl/gsl_errno.h>
#include "physconst.h"
#include <valarray>
#include <cassert>
/**This file contains code to compute the Hubble function at arbitrary redshift. Most of the code integrates
*... |
<commit_before>/*
* Class to make list of available lessons.
* source available at (Github repo - MIT licence):
* http://dstjrd.ir/s/cppx
* https://github.com/mohsend/cpp-examples
*/
// این کلاس فقط برای این ساخته شده که لیستی از دروس ارایه شده را در اختیار کد اصلی بگذارد
// در یک مثال واقعی این اطلاعات در دیتابی... |
<commit_before>/*=============================================================================
This file is part of FLINT.
FLINT 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 o... |
<commit_before>/*
* Copyright (C) 2010 O01eg <[email protected]>
*
* This file is part of Genetic Function Programming.
*
* Genetic Function Programming 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... |
<commit_before>/*=========================================================================
Program: FEMuS
Module: Line
Authors: Eugenio Aulisa and Giacomo Capodaglio
Copyright (c) FEMuS
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY... |
<commit_before>/* Copyright 1994, 1995 by Abacus Research and
* Development, Inc. All rights reserved.
*/
#if !defined(NDEBUG)
#include "rsys/common.h"
#include "DialogMgr.h"
#include "QuickDraw.h"
#include "rsys/cquick.h"
#include "rsys/region.h"
#include "rsys/stdbits.h"
#include "rsys/dump.h"
#include "rsys/... |
<commit_before>/*************************************************************************
*
* $RCSfile: joburl.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2003-03-25 18:19:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>#ifndef regex_hh_INCLUDED
#define regex_hh_INCLUDED
#include "string.hh"
#include "exception.hh"
#include "utf8_iterator.hh"
#include <boost/regex.hpp>
namespace Kakoune
{
struct regex_error : runtime_error
{
regex_error(StringView desc)
: runtime_error{format("regex error: '{}'", desc)}
... |
<commit_before>/*
*
* Author: Jeffrey Leung
* Last edited: 2015-09-19
*
* This program contains implementations of a Room class, which is a template
* to create a Labyrinth.
*
*/
#include <iostream>
#include <stdexcept>
#include "../include/room_properties.hpp"
#include "../include/room.hpp"
// Parameterized... |
<commit_before>#include "lua/config.h"
#include "lua/state.h"
#include "rwte/logging.h"
#include "rwte/rwte.h"
#include "rwte/term.h"
#include "rwte/tty.h"
#include "rwte/window.h"
#include <memory>
// todo: mark [[noreturn]] funcs
// todo: std::starts_with/ends_with
// todo: std::span
// todo: std::bit_cast
// todo:... |
<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>// Copyright (c) 2011, Robert Escriva
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// ... |
<commit_before>#include "keyboardinterface.h"
#include <SDL2/SDL_keyboard.h>
#include <SDL2/SDL_events.h>
#include "context.h"
namespace sdli {
KeyboardInterface::KeyboardInterface(const int max_actions, const int max_axes)
: logicAnalogData(max_axes),
captureBuffer(max_actions)
{
}
KeyboardInterface:... |
<commit_before>#include "BinaryRRP.h"
#include "Exception.h"
#include "typedef.h"
#include "tools.h"
#include "Lzma.h"
#include "ImageIDer.h"
#include <json/json.h>
#include <assert.h>
#include <fstream>
#include <algorithm>
#include <dtex_rrp.h>
namespace epbin
{
static const uint8_t TYPE = 11;
BinaryRRP::BinaryR... |
<commit_before>/*-------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2016 The Khronos Group Inc.
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
* Copyright (c) 2014 The Android Open Source Project
*
* Licensed unde... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "NaaliApplication.h"
#include "Framework.h"
#include "ConfigurationManager.h"
#include <QDir>
#include <QGraphicsView>
#include <QTranslator>
#include <QLoca... |
<commit_before>#pragma once
#include "logger.hpp"
namespace blackhole {
class scoped_attributes_t :
public scoped_attributes_concept_t
{
// Attributes provided by this guard.
mutable log::attributes_t m_guard_attributes;
// Merged attributes are provided by this guard and all the parent guards.
/... |
<commit_before>/*
* Copyright(c) 2021 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this software except as stipulated in the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
<commit_before>/*!
@file
@copyright Edouard Alligand and Joel Falcou 2015-2017
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_BRIGAND_ALGORITHMS_DETAIL_FIND_HPP
#define BOOST_BRIGAND_ALGORITHMS_DETAIL_FIND_HPP
#include <brigand/functions/lambda/apply.hpp>
#include <bri... |
<commit_before>// Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Nazara Development Kit"
// For conditions of distribution and use, see copyright notice in Prerequisites.hpp
#include <NDK/BaseWidget.hpp>
#include <NDK/Canvas.hpp>
#include <NDK/Components/GraphicsComponent.hpp>
#include <NDK/Components... |
<commit_before>#include "BackendWorker.hpp"
#include <iostream>
#include <opencv2/opencv.hpp>
#include "SgPoint.h"
#include "SgSystem.h"
namespace Go_Controller {
// converts a cv::Mat to a QImage
// inspired from http://www.qtforum.de/forum/viewtopic.php?t=9721
//
// Has two preconditions:
// - depth of the cv:... |
<commit_before>class segtree{
struct e {
int sz, ans;
};
public:
int n; // array size
vector<e> t;
void combine(e &l, e &r, e &res) {
if (l.sz == 0) {
res = r;
return;
}
if (r.sz == 0) {
res = l;
return;
}
res.sz = l.sz + r.sz;
res.an... |
<commit_before>#include "PyMeshPlugin.hh"
// todo: some switch for boost static build or not
#include <boost/python.hpp>
#include <OpenFlipper/BasePlugin/PluginFunctions.hh>
#include <OpenFlipper/common/GlobalOptions.hh>
// adds openmesh python module for inter language communication
//#include <OpenMesh/src/Python... |
<commit_before>/*
* Quad2.h
*
* Created on: May 15, 2013
* Author: Ryler Hockenbury
*
* Quad2
*/
// Do not remove the include below
#include "Quad2.h"
uint8_t vehicleStatus = 0x0;
bool onGround = TRUE;
ITG3200 gyro;
ADXL345 accel;
HMC5883L comp;
AR6210 receiver;
PID controller[2]; // ... |
<commit_before>/*
This is an example file shipped by 'Aleph - A Library for Exploring
Persistent Homology'.
This example demonstrates how to load a network---a graph---from
a variety of input files.
The graph will subsequently be expanded to a simplicial complex and
the persistent homology of the graph wi... |
<commit_before>/*
Copyright (C) 2012-2013 Collabora Ltd. <[email protected]>
@author George Kiagiadakis <[email protected]>
Copyright (C) 2013 basysKom GmbH <[email protected]>
@author Benjamin Federau <[email protected]>
This library is free software; you can redist... |
<commit_before>#include <iostream>
#include <utility>
#include <algorithm>
using namespace std;
typedef pair<int, int> pii;
void chmin(int &a,int &b) { if(a > b) a = b; }
void chmax(int &a,int &b) { if(a < b) a = b; }
#define A first
#define B second
const int MAXN = 15010;
const int MAX = 30010;
int n, k;
int A[MAXN]... |
<commit_before>
//
// IEEE754 text encode/decode of double values
//
#include <clutl/Serialise.h>
#include <clutl/Containers.h>
extern "C" double strtod(const char* s00, char** se);
namespace
{
enum TokenType
{
TT_NONE,
// Single character tokens match their character values for simpler sw... |
<commit_before>// sota.cpp : Defines the entry point for the console application.
//
#include <regex>
#include "stdafx.h"
#include "utils.h"
#include "lexer.h"
#include "token.h"
#include "stream.hpp"
#include <array>
using namespace sota;
std::vector<char> load(std::string filename) {
std::vector<char> chars;
... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/notifications/desktop_notifications_unittest.h"
namespace chromeos {
// static
std::string DesktopN... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/scoped_temp_dir.h"
#include "base/scoped_vector.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chro... |
<commit_before>/*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.