text stringlengths 54 60.6k |
|---|
<commit_before>#include <efsw/FileWatcherWin32.hpp>
#include <efsw/FileSystem.hpp>
#include <efsw/System.hpp>
#include <efsw/String.hpp>
#if EFSW_PLATFORM == EFSW_PLATFORM_WIN32
namespace efsw
{
FileWatcherWin32::FileWatcherWin32( FileWatcher * parent ) :
FileWatcherImpl( parent ),
mLastWatchID(0),
m... |
<commit_before>// Copyright (c) 2006-2009 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 <sstream>
#include <string>
#include "base/debug_util.h"
#include "base/logging.h"
#include "testing/gtest/include/gtest... |
<commit_before>// Copyright 2014 Toggl Desktop developers.
#include "./window_change_recorder.h"
#include <sstream>
#include "./get_focused_window.h"
#include "./timeline_event.h"
#include "Poco/Thread.h"
#include "Poco/NotificationCenter.h"
#include "Poco/Logger.h"
namespace kopsik {
bool WindowChangeRecorder::h... |
<commit_before>#include <glib-object.h>
#include <cstdio>
#include <cstdlib>
#include <QTimer>
#include <QStringList>
#include <QString>
#include <QDebug>
#include <QDir>
#include <QCoreApplication>
extern "C" {
#include <ccnet/ccnet-client.h>
}
#include "utils/utils.h"
#include "utils/process.h"
#include "configura... |
<commit_before>#include "Generator/Generator.h"
#include "Config.h"
#include "Utils/Utils.h"
#include <cstring>
#include <cstdlib>
#include <unistd.h>
#include <sys/stat.h>
#include <getopt.h>
#include <cstdio>
/*! dalec
The main compiler executable, responsible for organising the
arguments for Generator, ru... |
<commit_before>/** \copyright
* Copyright (c) 2014, Balazs Racz
* 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 "DELTAPAK.H"
#include "CONTROL.H"
#include "ITEMS.H"
#include "OBJECTS.H"
#include "SPECIFIC.H"
#include "SPOTCAM.H"
#include <stddef.h>
struct CUTSEQ_ROUTINES cutseq_control_routines[45];
unsigned short crane_pistols_info[11];
unsigned short craneguard_pistols_info[7];
short admiral_chat_ran... |
<commit_before>// Copyright 2012 Cloudera 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 applicable law or ... |
<commit_before><commit_msg>Cleaned up comments.<commit_after><|endoftext|> |
<commit_before>#include <regex>
#include "foo_musicbrainz.h"
#include "MetadataProcessor.h"
using namespace std::tr1;
namespace foo_musicbrainz {
// {2311DC1D-1A81-4496-9139-678481C813F8}
const GUID MetadataProcessor::class_guid =
{ 0x2311dc1d, 0x1a81, 0x4496, { 0x91, 0x39, 0x67, 0x84, 0x81, 0xc8, 0x13, 0... |
<commit_before>//
// AnsyncStreamSession.hpp
// Pods
//
// Created by jinchu darwin on 15/9/29.
//
//
#ifndef AnsyncStreamSession_hpp
#define AnsyncStreamSession_hpp
#include <cstddef>
#include <functional>
#include <vector>
#include <queue>
#include <string>
#include <videocore/system/util.h>
#include <videocore... |
<commit_before>#include <set>
#include <vector>
#include "dg/ReadWriteGraph/ReadWriteGraph.h"
#include "dg/BBlocksBuilder.h"
namespace dg {
namespace dda {
RWNode UNKNOWN_MEMLOC;
RWNode *UNKNOWN_MEMORY = &UNKNOWN_MEMLOC;
#ifndef NDEBUG
void RWNode::dump() const {
std::cout << getID() << "\n";
}
void RWNodeC... |
<commit_before>//===----- CallGraphAnalysis.cpp - Call graph construction ----*- C++ -*---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>//===- DivRemPairs.cpp - Hoist/decompose division and remainder -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>
// .\Release\x64\benchmarks.exe --benchmark_repetitions=10 --benchmark_min_time=2 --benchmark_filter=Geopotential // NOLINT(whitespace/line_length)
#include "physics/geopotential_body.hpp"
#include <random>
#include <vector>
#include "astronomy/fortran_astrodynamics_toolkit.hpp"
#include "astronomy... |
<commit_before>//===- DivRemPairs.cpp - Hoist/decompose division and remainder -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===- SimplifyCFG.cpp - CFG Simplification Pass --------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>#include "SDLWindow.h"
#include "SDLApplication.h"
#ifdef HX_WINDOWS
#include <SDL_syswm.h>
#include <Windows.h>
#undef CreateWindow
#endif
namespace lime {
static bool displayModeSet = false;
SDLWindow::SDLWindow (Application* application, int width, int height, int flags, const char* title... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <map>
#include <vector>
using namespace std;
void bubbleSort(vector<string>, int);
int main(int argc, char *argv[])
{
ifstream inFile;
istringstream line;
map<string, int> wordCount;
ma... |
<commit_before>/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "sk_tool_utils.h"
#include "Resources.h"
#include "SkGradientShader.h"
#include "SkTypeface.h"
#include "SkStream.h"
#include "SkPaint... |
<commit_before>#include <random>
#include <String>
#include <thread>
#include <chrono>
#include <iostream>
#include <fstream>
#include <mutex>
using namespace std;
using namespace std::chrono;
unsigned int total_points;
unsigned int total_circle;
mutex total_points_mutex;
mutex total_circle_mutex;
// Create a distri... |
<commit_before>/**
* Copyright (c) 2016 DeepCortex GmbH <legal@eventql.io>
* Authors:
* - Laura Schlimmer <laura@eventql.io>
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License ("the license") as
* published by the Free Software... |
<commit_before>#pragma once
#include <fstream>
#include <Eigen/Dense>
template<class Matrix>
void readEigenMatrixFromFile(const std::string &filename, Matrix& matrix, bool binary = true) {
if (binary) {
std::ifstream in(filename, std::ifstream::binary);
typename Matrix::Index rows = 0, cols = 0;
... |
<commit_before>/*************************************************************************
*
* $RCSfile: dlgname.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2004-01-05 16:24:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/** \copyright
* Copyright (c) 2013, Balazs Racz
* 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>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before><commit_msg>Translate German comments<commit_after><|endoftext|> |
<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) 2018 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 "quic/core/qpack/qpack_header_table.h"
#include "absl/strings/string_view.h"
#include "quic/core/qpack/qpack_static_table.h"
... |
<commit_before>// Copyright 2015 Markus Ilmola
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
#ifndef GEN... |
<commit_before><commit_msg>Convert Svptrarr usage to std::vector<commit_after><|endoftext|> |
<commit_before>/**
* @file iprofile.hpp
* @brief Component Profile interface class
* @author Byunghun Hwang<bhhwang@nsynapse.com>
* @date 2015. 6. 21
* @details Read component profile interface
*/
#ifndef _COSSB_IPROFILE_HPP_
#define _COSSB_IPROFILE_HPP_
#include <string>
#include <vector>
#include <map>
... |
<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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: beziersh.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2007-09-27 11:54:02 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: insrule.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: rt $ $Date: 2007-04-26 09:13:18 $
*
* The Contents of this file are made ... |
<commit_before>/*
* Manipulator.hh
*
* Copyright 2005, Francis ANDRE. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4CPP_MANIPULATOR_HH
#define _LOG4CPP_MANIPULATOR_HH
#include <iostream>
#include <log4cpp/Portability.hh>
namespace log4cpp {
class LOG4CPP... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wrtsh4.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: obo $ $Date: 2006-09-16 23:40:39 $
*
* The Contents of this file are made a... |
<commit_before>/************************************************************
*
* OTRecordList.hpp
*
*/
/************************************************************
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* ... |
<commit_before>// Copyright (c) 2016-2019 Daniel Frey and Dr. Colin Hirsch
// Please see LICENSE for license or visit https://github.com/taocpp/taopq/
#ifndef TAO_PQ_TRANSACTION_HPP
#define TAO_PQ_TRANSACTION_HPP
#include <memory>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include ... |
<commit_before>#pragma once
#include <ctime>
#include <list>
#include <tudocomp_stat/Json.hpp>
namespace tdc {
class Stat {
private:
static Stat* s_current;
inline static unsigned long current_time_millis() {
timespec t;
clock_gettime(CLOCK_MONOTONIC, &t);
return t.tv_sec * 1000L +... |
<commit_before>/*
PICCANTE
The hottest HDR imaging library!
http://vcg.isti.cnr.it/piccante
Copyright (C) 2014
Visual Computing Laboratory - ISTI CNR
http://vcg.isti.cnr.it
First author: Francesco Banterle
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was n... |
<commit_before>// Copyright (c) 2016, The University of Texas at Austin
// 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 copyr... |
<commit_before>#ifndef CATOMIC_STACK
#define CATOMIC_STACK
#include<atomic>
#include<memory> //shared_ptr, make_shared
#include<utility> //forward, move
namespace nThread
{
template<class T>
class CAtomic_stack
{
public:
using value_type=T;
private:
struct Node
{
value_type data;
std::shared_ptr<Node>... |
<commit_before>/***********************************************************************
created: Sep 11 2014
author: Luca Ebach <lucaebach@gmail.com>
*************************************************************************/
/***************************************************************************
* Copyrig... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2011-2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public ... |
<commit_before><commit_msg>Format and cleanup CameraTest app<commit_after><|endoftext|> |
<commit_before>#include "GameProcess.h"
#include "Object.h"
#include "Engine.h"
#include "World.h"
#include "App.h"
#include "ToolsCamera.h"
#include "ControlsApp.h"
#include "MathLib.h"
#include "Game.h"
#include "Editor.h"
#include "Input.h"
#include "BlueRayUtils.h"
#include "World.h"
#include "Action.h"
#include "F... |
<commit_before>#ifndef ATOMIC_STACK
#define ATOMIC_STACK
#include<atomic>
#include<memory> //allocator, shared_ptr
#include<type_traits>
#include<utility> //move
#include"Node.hpp"
#include"../tool/CAlloc_obj.hpp"
namespace nThread
{
struct Use_pop_if_exist{};
struct Do_not_use_pop_if_exist{};
//for ... |
<commit_before>/*************************************************************************
*
* $RCSfile: testclient.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2003-04-23 16:44:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before><commit_msg>further adventures in memory management<commit_after><|endoftext|> |
<commit_before><commit_msg>Log backing_store regardless of previous setting<commit_after><|endoftext|> |
<commit_before>void Make_Init(char *file){
TFile * rootf = new TFile(file,"READ");
if(!rootf->IsOpen()){
cerr<<"no file: "<<file<<endl;
return;
}
AliTPCParam* par = (AliTPCParam*)rootf->Get("75x40_100x60");
if(!par){
cerr<<"no AliTPCParam 75x40_100x60 in file: "<<file<<endl;
return;
}
... |
<commit_before>/*!
* \file Partie.hpp
* \brief Fichier contenant les entêtes de la classe Partie
* \author François Hallereau
* \author Sébastien Vallée
* \date 12.2014
*/
#ifndef PARTIE_HPP
#define PARTIE_HPP
#include <string> // pour le type std::string
#include <vector> //for std::vector
#include <... |
<commit_before><commit_msg>Removed unnecessary RocksDB options<commit_after><|endoftext|> |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/* The MIT License
*
* Copyright (c) 2010 OTClient, https://github.com/edubart/otclient
*
* 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 w... |
<commit_before>/* dlvhex -- Answer-Set Programming with external interfaces.
* Copyright (C) 2005, 2006, 2007 Roman Schindlauer
* Copyright (C) 2006, 2007, 2008, 2009, 2010 Thomas Krennwallner
* Copyright (C) 2009, 2010 Peter Schüller
*
* This file is part of dlvhex.
*
* dlvhex is free software; you can redistr... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkAppendFilter.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted ... |
<commit_before>/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016 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 ... |
<commit_before>/***************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "browser/api/atom_api_app.h"
#include "base/values.h"
#include "base/command_line.h"
#include "browser/browser.h"
#include "common/v8_... |
<commit_before>#pragma once
#include "xml_doc.hpp"
#include "libxml2_error_handlers.hpp"
#include <libxml/xpath.h>
#include <memory>
#include <iostream>
class FreeXPathCtxt {
public:
auto operator( )( xmlXPathContext *xpathCtxt ) const -> void {
xmlXPathFreeContext( xpathCtxt );
}
};
class XPathCtxt ... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2006 Ulrich von Zadow
//
// 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 of the Li... |
<commit_before>/*
* CLDevice.hpp
*
* Created on: Oct 24, 2009
* Author: Craig Rasmussen
*/
#ifndef CLDEVICE_HPP_
#define CLDEVICE_HPP_
#include "pv_opencl.h"
#include <stdlib.h>
#define CL_DEVICE_DEFAULT 1
////////////////////////////////////////////////////////////////////////////////
namespace PV {
... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
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 "StageCanvas.h"
#include "ViewFrustum.h"
#include <ee/panel_msg.h>
#include <ee/Exception.h>
#include <ee/ExceptionDlg.h>
#include <node3/RenderCtxStack.h>
#include <gum/RenderContext.h>
namespace e3d
{
StageCanvas::StageCanvas(wxWindow* stage_wnd, ee::EditPanelImpl* stage)
: ee::OnePassCan... |
<commit_before><commit_msg>gui: correct net descriptor sink/source for bterms<commit_after><|endoftext|> |
<commit_before>#include "ActionNodeModel.hpp"
#include "ConditionNodeModel.hpp"
#include "LuaNodeModel.h"
#include <QTextEdit>
#include <QBoxLayout>
#include <QFormLayout>
#include <QLineEdit>
#include <QDebug>
#include <QFile>
#include <QDomDocument>
#include <QEvent>
#include <iostream>
#if defined(WIN32) || define... |
<commit_before>/*
* Chrome Token Signing Native Host
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011-2012.
// 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 "common.h"
#include "hex/basics/error.h"
#include "hex/game/game.h"
#include "hex/game/game_arbiter.h"
#include "hex/game/game_messages.h"
#include "hex/game/combat/combat.h"
#include "hex/game/movement/movement.h"
GameArbiter::GameArbiter(Game *game, MessageReceiver *publisher): game(game), ... |
<commit_before>// Copyright (c) 2016-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <bench/data.h>
#include <rpc/blockchain.h>
#include <streams.h>
#include <t... |
<commit_before><commit_msg>INTEGRATION: CWS dba31a (1.8.4); FILE MERGED 2008/07/16 06:16:03 fs 1.8.4.2: RESYNC: (1.8-1.9); FILE MERGED 2008/07/10 06:36:08 oj 1.8.4.1: #i88727# new area prop for shapes<commit_after><|endoftext|> |
<commit_before>#include <algorithm>
#include <iostream>
#include <numeric>
#include <stdexcept>
#include "fs.hpp"
#include "utils.hpp"
namespace {
const std::size_t kMinimalArguments{2};
}
int main(int argc, char *argv[]) {
using std::cout;
using std::endl;
try {
if (static_cast<std::size_t>(arg... |
<commit_before>#include "server.hpp"
namespace po = boost::program_options;
using std::cout;
using std::cerr;
using std::endl;
int main(int argc, char* argv[])
{
po::options_description desc("Bananagrams multiplayer dedicated server");
desc.add_options()
("help", "show options")
("dict", po::value<std::string>(... |
<commit_before>#include "occ_libstl.h"
#include <cstring>
#include <StlMesh_Mesh.hxx>
#include <StlMesh_MeshTriangle.hxx>
#include <StlMesh_SequenceOfMeshTriangle.hxx>
#include <TColgp_SequenceOfXYZ.hxx>
/* Common */
static void occ_mesh_stl_add_triangle(Handle_StlMesh_Mesh* mesh, const foug_stl_triangle_t* tri)
{
... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2018 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... |
<commit_before>// Copyright 2016 Chirstopher Torres (Raven), L3nn0x
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http ://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
<commit_before><commit_msg>Added missing derivative functions<commit_after><|endoftext|> |
<commit_before><commit_msg>Fix in AT+CNUM command if there is no number<commit_after><|endoftext|> |
<commit_before>/** \file add_oa_urls.cc
* \brief Add additional urls for oa_access of items
* \author Johannes Riedl
*/
/*
Copyright (C) 2018, Library of the University of Tübingen
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General ... |
<commit_before>/***************************************************************************
addroomform.cpp - description
-------------------
begin : Sun Jan 1 2004
copyright : (C) 2004 by Lalescu Liviu
email :... |
<commit_before>/// Useful conversion in visual studio
const char* toConstChar(std:string strg)
{
return strg.c_str()
}
<commit_msg>Update stringopps.cpp<commit_after>/// Useful conversion in visual studio
const char* toConstChar(std::string strg)
{
return strg.c_str()
}
<|endoftext|> |
<commit_before>#pragma once
#ifndef RAZ_STRUTILS_HPP
#define RAZ_STRUTILS_HPP
#include <algorithm>
#include <cctype>
#include <string>
namespace Raz {
namespace StrUtils {
inline char toLowercase(char& character) {
character = static_cast<char>(std::tolower(static_cast<unsigned char>(character)));
return chara... |
<commit_before>#pragma once
#include "Head.h"
#include <iostream>
#include "maths.hpp"
constexpr const int32_t BASE_MOD = 1000000007;
template<typename T>
inline T& add_mod(T& a, const T b, const T mod = BASE_MOD) {
if ((a += b) >= mod) {
a -= mod;
}
return a;
}
template<typename T>
inline T... |
<commit_before>#include "qaesencryption.h"
#include <QDebug>
#define Multiply(x, y) \
( ((y & 1) * x) ^ \
((y>>1 & 1) * xTime(x)) ^ \
((y>>2 & 1) * xTime(xTime(x))) ^ \
((y>>3 & 1) * xTime(xTime(xT... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details
#include <boost/uuid/uuid_generators.hpp>
#include "message.h"
using namespace visionaray::async;
//--------------------------------------------------------------------------------------------------
// message::he... |
<commit_before><commit_msg>fix extend bug, works well.<commit_after><|endoftext|> |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2014 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>/*===================================================================
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>/**
@file Node/UnitBasic.hpp
@brief Node basic unit class.
@author Timothy Howard
@copyright 2013-2014 Timothy Howard under the MIT license;
see @ref index or the accompanying LICENSE file for full text.
*/
#ifndef HORD_NODE_UNITBASIC_HPP_
#define HORD_NODE_UNITBASIC_HPP_
#include <Hord/config.hpp>
#i... |
<commit_before>#include "draw_widget.hpp"
#include "proxystyle.hpp"
#include "slider_ctrl.hpp"
#include "../map/framework_factory.hpp"
#include "../map/render_policy.hpp"
#include "../yg/internal/opengl.hpp"
#include "../platform/settings.hpp"
#include <QtGui/QMouseEvent>
#include <QtGui/QMenu>
using namespace st... |
<commit_before>/*
* creaturesImage.cpp
* openc2e
*
* Created by Alyssa Milburn on Sun Jun 06 2004.
* Copyright (c) 2004 Alyssa Milburn. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publish... |
<commit_before>#ifndef V_SMC_CORE_PARTICLE_HPP
#define V_SMC_CORE_PARTICLE_HPP
#include <algorithm>
#include <limits>
#include <cstddef>
#include <mkl_cblas.h>
#include <mkl_vml.h>
#include <boost/function.hpp>
#include <boost/math/special_functions/log1p.hpp>
#include <Random123/aes.h>
#include <Random123/ars.h>
#inc... |
<commit_before>#ifndef INCLUDE_AL_FILE_HPP
#define INCLUDE_AL_FILE_HPP
#include <unistd.h>
#include <stdio.h>
#include <string>
#include <sys/stat.h>
#include <list>
#include "allocore/system/al_Config.h"
#ifdef AL_WIN32
#define AL_FILE_DELIMITER '\\'
#else
#define AL_FILE_DELIMITER '/'
#endif
#define AL_PATH_M... |
<commit_before>#include "stdafx.h"
#include "GameTile.h"
#include "lodepng.h"
#include "VoxelDrawSystem.h"
#include "GL3DProgram.h"
#include "GLTerrainProgram.h"
#include "TerrainChunk.h"
#include "TerrainChunkRenderer.h"
#include "BaseFrame.h"
#define CHUNK_COUNT ((TILE_SIZE/CHUNK_SIZE)*(TILE_SIZE/CHUNK_SIZE))
GameT... |
<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. Redi... |
<commit_before>#ifndef SKSAT_WINDOW_HPP
#define SKSAT_WINDOW_HPP
#include <sksat/common.hpp>
#include <sksat/platform.hpp>
#include <sksat/color.hpp>
namespace sksat {
class window_base {
public:
window_base() : opend(false), xsize(default_xsize), ysize(default_ysize), xpos(default_xpos), ypos(default_ypos) {}
win... |
<commit_before>//
// GameModel.cpp
// CatchiOS
//
// Created by John Barbero Unenge on 10/7/12.
// Copyright (c) 2012 John Barbero Unenge. All rights reserved.
//
#include "GameModel.hpp"
#include "../EventHandling/EventBus.hpp"
#include "../Helper/Logger.hpp"
#include "Physics/PBody.hpp"
#include "../Helper/Const... |
<commit_before>#ifndef ORG_EEROS_CONTROL_SUM_HPP_
#define ORG_EEROS_CONTROL_SUM_HPP_
#include <vector>
#include <eeros/control/Block.hpp>
#include <eeros/control/Input.hpp>
#include <eeros/control/Output.hpp>
namespace eeros {
namespace control {
template < uint8_t N = 2, typename T = double >
class... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.