text stringlengths 54 60.6k |
|---|
<commit_before>// The Art of C++ / Operators
// Copyright (c) 2013-2016 Daniel Frey
#include <tao/operators.hpp>
#include <cassert>
struct X
: tao::operators::ordered_field< X >,
tao::operators::modable< X >,
tao::operators::ordered_field< X, int >,
tao::operators::modable< X, int >
{
int v_;
expl... |
<commit_before>#include <iostream>
#include <cmath>
#include <fstream>
#include <cstdio>
#include <sstream>
#include <cassert>
#include <vector>
#include <string>
#include <cstdlib>
#include <iomanip>
#include "bond_angle.h"
using namespace std;
extern unsigned int totalatoms; //referring to totalatoms in extraction... |
<commit_before>#include "../tlang.h"
#include <taichi/util.h>
#include <taichi/visual/gui.h>
#include <taichi/common/bit.h>
#include <Partio.h>
#include <taichi/system/profiler.h>
#include <taichi/visualization/particle_visualization.h>
#include "svd.h"
TC_NAMESPACE_BEGIN
using namespace Tlang;
auto diff_mpm = [](st... |
<commit_before>//..............................................................................
//
// This file is part of the Jancy toolkit.
//
// Jancy is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/dow... |
<commit_before>#ifndef TEST_CLIENT_UTILS_HPP
#define TEST_CLIENT_UTILS_HPP
#include "TestAuthProvider.hpp"
#include "TestUserData.hpp"
#include "TestUtils.hpp"
#include "test_server_data.hpp"
#include "AccountStorage.hpp"
#include "CAppInformation.hpp"
#include "Client.hpp"
#include "ClientSettings.hpp"
#include "Co... |
<commit_before>
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE libstorage
#include <boost/test/unit_test.hpp>
#include "storage/Devices/Disk.h"
#include "storage/Devices/PartitionTable.h"
#include "storage/Devices/Partition.h"
#include "storage/Devices/LvmVg.h"
#include "storage/Devices/LvmLv.h"
#include "stor... |
<commit_before>// Throttle /tf bandwidth
// Author: Max Schwarz <max.schwarz@uni-bonn.de>
#include <ros/init.h>
#include <ros/node_handle.h>
#include <tf/transform_listener.h>
#include <boost/foreach.hpp>
boost::scoped_ptr<tf::TransformListener> g_tf;
ros::Publisher pub;
void sendTransforms()
{
std::vector<std::st... |
<commit_before>// Copyright 2016 Google Inc. 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
<commit_before>/*
* Web Application Socket client.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "was_server.hxx"
#include "was_quark.h"
#include "was_control.hxx"
#include "was_output.hxx"
#include "was_input.hxx"
#include "http_response.hxx"
#include "async.hxx"
#include "direct.hxx"
#include "istream/i... |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / __... |
<commit_before><commit_msg>Remove default browser setting from uninstallation UI on Win10+<commit_after><|endoftext|> |
<commit_before><commit_msg>am 69070788: Merge "ART: Reserve 8B for float literals on ARM64"<commit_after><|endoftext|> |
<commit_before>/*
MultiLight.cpp - Library for manipulating a 3 channel LED
Created by Phil Dougherty, March 6, 2012
Released into the public domain.
*/
#include "Arduino.h"
#include "MultiLight.h"
int MultiLight::DEFAULT_R_PIN = 9;
int MultiLight::DEFAULT_G_PIN = 10;
int MultiLight::DEFAULT_B_PIN = 11;
int Mu... |
<commit_before><commit_msg>Start creating tests, not done yet<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2006-2008 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.
// TODO(port): the ifdefs in here are a first step towards trying to determine
// the correct abstraction for all the OS functiona... |
<commit_before>/*
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free ... |
<commit_before><commit_msg>An experimental fix for Issue 7707. To read crash dumps, it seems a rich-edit control crashes because it receives a WM_IME_CHAR message while it is processing a WM_IME_COMPOSITION message. Since a rich-edit control does not need WM_IME_CHAR messages, this code just blocks WM_IME_CHAR messages... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN
*
* Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
*
* T... |
<commit_before>/*
* Copyright (c) 2015 Srijan R Shetty <srijan.shetty+code@gmail.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 ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 NorthScale, 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... |
<commit_before>#include <sqlite3.h>
#include <nan.h>
#include "macros.h"
#include "database.h"
namespace DATABASE {
int WRITE_MODE = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_FULLMUTEX;
int READ_MODE = SQLITE_OPEN_READONLY | SQLITE_OPEN_FULLMUTEX;
class Database : public Nan::ObjectWrap... |
<commit_before>/* -------------------------------------------------------------------------- */
/* Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs */
/* */
/* Licensed under the Apache License, Version 2.0 (the "Licens... |
<commit_before>// Copyright (C) 2012 Rhys Ulerich
//
// 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 <cstdlib>
#include <string>
#include <vector>
#include... |
<commit_before>// Copyright (c) 2009-2015 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 "crypter.h"
#include "crypto/aes.h"
#include "crypto/sha512.h"
#include "script/script.h"
#include "... |
<commit_before>#include <boost/test/unit_test.hpp>
#include "functions/derivatives.hh"
#include "functions/streaming2.hh"
BOOST_AUTO_TEST_CASE(derivative_test)
{
using namespace manifolds;
std::cout << -(2_c) << '\n';
BOOST_CHECK_EQUAL(Derivative(Sin()), Cos());
auto f = Cos()(x*x) * y;
auto d = Derivative(f... |
<commit_before>#include "cbase.h"
#include "triggers.h"
#include "sdk_gamerules.h"
#include "sdk_player.h"
#include "ball.h"
class CTriggerGoal : public CBaseTrigger
{
public:
DECLARE_CLASS( CTriggerGoal, CBaseTrigger );
void Spawn( void );
void StartTouch( CBaseEntity *pOther );
//void Touch( CBaseEntity *pOther... |
<commit_before>#include "world_streamer.hpp"
#include "dependencies/rapidxml/rapidxml.hpp"
#include "util/file_to_string.hpp"
#include "math/vec2i.hpp"
#include "resource_manager/resource_manager.hpp"
#include "entity_factory.hpp"
#include <fstream>
#include <sstream>
#include <iostream>
#include <boost/filesystem.hpp>... |
<commit_before>// Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... |
<commit_before>#include "diskinfo.hpp"
#include <sys/stat.h>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
#include <unistd.h>
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include "logger.hpp"
#include "config/cmd_args.hpp"
const char *partitions_path = "/proc... |
<commit_before>#include "Rendu.hpp"
using namespace irr;
using namespace core;
using namespace video;
using namespace scene;
using namespace std;
Rendu::Rendu(Plateau* plateauRendu)
{
m_plateauRendu = plateauRendu;
//Device avec API = OPENGL, Fenêtre de taille 640 x 480p et 32bits par pixel
m_device = createDevi... |
<commit_before>/*
Copyright (c) 2010, The Mineserver Project
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 ... |
<commit_before>/**
* @file hud_fox.cpp
* @brief Purpose: Contains methods to game class' management.
*
* MIT License
* Copyright (c) 2017 MindScape
*
* https://github.com/TecProg2017-2/mindscape/blob/master/LICENSE.md
*/
#include "../include/hud_fox.hpp"
#include "../engine/include/log.hpp"
using namespace m... |
<commit_before>/*************************************************************************
*
* $RCSfile: pkgdatasupplier.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: kso $ $Date: 2001-06-25 09:11:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>#include "atlas/primitives/Primitive.hpp"
namespace atlas
{
namespace primitives
{
Primitive::Primitive() :
mVao(),
mDataBuffer(GL_ARRAY_BUFFER),
mIndexBuffer(GL_ELEMENT_ARRAY_BUFFER)
{ }
Primitive::~Primitive()
{ }
vo... |
<commit_before>//===- llvm/tools/dragongo/unittests/BackendCore/BackendCoreTests.cpp -----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: uuid.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: hr $ $Date: 2007-01-08 15:24:57 $
*
* The Contents of this file are made ava... |
<commit_before>#include "Process.hpp"
#include <libslic3r/AppConfig.hpp>
#include "../GUI/GUI.hpp"
// for file_wildcards()
#include "../GUI/GUI_App.hpp"
// localization
#include "../GUI/I18N.hpp"
#include <iostream>
#include <fstream>
#include <boost/log/trivial.hpp>
// For starting another PrusaSlicer instance on... |
<commit_before>/*
* caosVM_agent.cpp
* openc2e
*
* Created by Alyssa Milburn on Tue Jun 01 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 published... |
<commit_before>/**
* This file is part of Slideshow.
* Copyright (C) 2013 David Sveningsson <ext@sidvind.com>
*
* Slideshow 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
... |
<commit_before>/*
Copyright (C) 2000 by Jorrit Tyberghein
(C) W.C.A. Wijngaards, 2000
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, ... |
<commit_before>/***************************************************************************
* *
* Copyright (C) 2007-2013 by Johan De Taeye, frePPLe bvba *
* ... |
<commit_before>#ifndef __STAN__MCMC__INTEGRATOR__BETA__
#define __STAN__MCMC__INTEGRATOR__BETA__
#include <stan/mcmc/hmc_base.hpp>
#include <stan/mcmc/hamiltonian.hpp>
#include <stan/mcmc/util.hpp>
namespace stan {
namespace mcmc {
template <typename H, typename P>
class integrator {
public:
... |
<commit_before>#include <functional>
#include <iostream>
#include <thread>
#include <rclcpp/rclcpp.hpp>
using rclcpp::callback_group::CallbackGroupType;
using std::chrono::steady_clock;
typedef std::chrono::duration<float> floating_seconds;
void on_timer_group1()
{
auto this_id = rclcpp::thread_id;
auto start = ... |
<commit_before>#ifndef PANY_HPP
#define PANY_HPP
#include <memory>
#include <stdexcept>
#include <typeinfo>
#include <map>
#include <iostream>
#include "PTypePtr.h"
#include "SharedPointerUtils.h"
#include "utils/crossproduct.hpp"
using namespace std;
namespace RUNTIME_NAMESPACE {
template<typename T>
struct IsSim... |
<commit_before>
#include <QX11Info>
#include <QtX11Extras/QX11Info>
#include <QtX11Extras/QtX11Extras>
#include <QtX11Extras>
int main(int argc, char **argv)
{
QX11Info::appScreen();
return 0;
}
<commit_msg>QtX11Extras: Adding missing license header<commit_after>/**************************************************... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the ... |
<commit_before>
/*!
\file
\author Igor Mironchik (igor.mironchik at gmail dot com).
Copyright (c) 2017 Igor Mironchik
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
re... |
<commit_before>/*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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... |
<commit_before>/*
class_resource.cpp
This file is part of:
GAME PENCIL ENGINE
https://create.pawbyte.com
Copyright (c) 2014-2020 Nathan Hurde, Chase Lee.
Copyright (c) 2014-2020 PawByte LLC.
Copyright (c) 2014-2020 Game Pencil Engine contributors ( Contributors Page )
Permission is hereby granted, free of c... |
<commit_before><commit_msg>Resolves: fdo#75565 reduce block on pasting rtf like we do for html<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: fieldwnd.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: hr $ $Date: 2004-04-13 12:31:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: formdata.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-08 21:26:10 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabpages.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2007-02-27 13:26:05 $
*
* The Contents of this file are made ... |
<commit_before>/**
* @file classifier_test.cpp
* @author Sean Massung
*/
#include <random>
#include "test/classifier_test.h"
#include "classify/loss/all.h"
namespace meta
{
namespace testing
{
template <class Index, class Classifier>
void check_cv(Index& idx, Classifier& c, double min_accuracy)
{
std::vector... |
<commit_before>/**
* @file classifier_test.cpp
* @author Sean Massung
*/
#include "test/classifier_test.h"
namespace meta
{
namespace testing
{
template <class Index, class Classifier>
void check_cv(Index& idx, Classifier& c, double min_accuracy)
{
std::vector<doc_id> docs = idx.docs();
classify::confusio... |
<commit_before>// Copyright (c) 2012-2018 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 <random.h>
#include <scheduler.h>
#include <test/test_bitcoin.h>
#include <boost/bind.hpp>
#include... |
<commit_before><commit_msg>Remove a local inline function that's used from only one call site.<commit_after><|endoftext|> |
<commit_before>#include "clonecopy_test.h"
#include "../vertex_graph.h"
#include "../helpers.h"
#include <iostream>
#include <QByteArray>
#include <QVector>
#include <QFile>
#include <QMap>
QString CloneCopy_Test::name(){
return "CloneCopy_Test";
};
bool CloneCopy_Test::run(){
VertexGraph vg(128);
vg.genBase();
i... |
<commit_before>#include "ns.h"
#include "ns_ter.h"
#include "ns_ext.h"
#include "ns_comb.h"
#include "ns_cer.h"
#include <cstdio>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include "tdict.h"
#include "stringlib.h"
using namespace std;
map<string, EvaluationMetric*... |
<commit_before>#ifndef WALUDE_ULTRABOOL
#define WALUDE_ULTRABOOL
#include <random>
#include <ctime>
bool
darkurza_bool() {
// Do not try and fix it with any of that mt199937 or sane random seeding
// nonsense. Here we adhere to darkurza principles only.
std::srand(std::time(0));
auto success = std::ra... |
<commit_before><commit_msg>2007-09-04 Farid Zaripov <Farid_Zaripov@epam.com><commit_after><|endoftext|> |
<commit_before>// Copyright © Mapotempo, 2013-2015
//
// This file is part of Mapotempo.
//
// Mapotempo is free software. You can redistribute it and/or
// modify since you respect the terms of the GNU Affero General
// Public License as published by the Free Software Foundation,
// either version 3 of the License, or... |
<commit_before>#include "command_manager.hh"
#include "utils.hh"
#include "assert.hh"
#include "context.hh"
#include <algorithm>
#include <cstring>
#include <sys/types.h>
#include <sys/wait.h>
namespace Kakoune
{
void CommandManager::register_command(const std::string& command_name, Command command,
... |
<commit_before>/*
* Wintermute 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 3 of the License, or (at your option) any later version.
* but WITHOUT ANY WARRANTY; without even th... |
<commit_before>#include "group_shared.hpp"
#include <cassert>
// Does not work for windows yet
#ifndef _MSC_VER
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/file.h>
using namespace tightdb;
// Pre-declare local functions
char* concat_strings(const char* str1, const char* str2);
stru... |
<commit_before>/*
===========================================================================
Daemon BSD Source Code
Copyright (c) 2013-2016, Daemon Developers
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are ... |
<commit_before>/*
* Copyright 2015 WebAssembly Community Group participants
*
* 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
*
* Unl... |
<commit_before>#include <QTreeWidget>
#include "ParameterInterface.h"
#include "ParamTreeModel.h"
#include "UASManager.h"
#include "ui_ParameterInterface.h"
#include <QDebug>
ParameterInterface::ParameterInterface(QWidget *parent) :
QWidget(parent),
m_ui(new Ui::parameterWidget)
{
m_ui->setupUi(t... |
<commit_before>/*
* Copyright (c) 2003-2016 Rony Shapiro <ronys@pwsafe.org>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
... |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkPictureUtils.h"
#include "SkCanvas.h"
#include "SkData.h"
#include "SkDevice.h"
#include "SkPixelRef.h"
#include "SkShader.h"
class PixelRefSet {
p... |
<commit_before>#include "pasertool.h"
namespace share_me_utils {
namespace json_inner {
StateMachine::StateMachine() { init(); }
StateMachine::~StateMachine() {}
bool StateMachine::init() {
m_currentState = 0;
memset(m_currentStateDeep, 0, sizeof(m_currentStateDeep));
m_deep = 0;
m_charMap.Clear();
m_charMa... |
<commit_before>#ifndef __MAPNIK_VECTOR_TILE_IS_VALID_H__
#define __MAPNIK_VECTOR_TILE_IS_VALID_H__
// mapnik protzero parsing configuration
#include "vector_tile_config.hpp"
//protozero
#include <protozero/pbf_reader.hpp>
// std
#include <sstream>
namespace mapnik
{
namespace vector_tile_impl
{
enum validity_erro... |
<commit_before>//!
//! @author Yue Wang
//! @date 18 Sep 2014
//!
//! ex2.4.1.a
//! parse
//! S -> '+' S S | '-' S S | 'a'
//!
#include <iostream>
#include <string>
#include <functional>
namespace dragon{ namespace ch2{
/**
* @brief parse_241a
* @param first
* @param last
* @return true if lega... |
<commit_before>/*
** Copyright 2013-2015 Centreon
**
** 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 ... |
<commit_before>#include <iostream>
using namespace std;
bool is_noun(string token){
return( token == "birds" || token == "fish" || token == "c++");
}
bool is_verb(string token){
return( token == "rules" || token == "fly" || token == "swim");
}
bool is_conjunction(string token){
return( token == "and" ||... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <map>
#include <list>
using namespace std;
// this function takes a line that may contain a name and/or email address,
// and returns just the name, while fixing the "bad cases".
std::string contribu... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: prntopts.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: kz $ $Date: 2008-03-06 16:33:00 $
*
* The Contents of this file are made... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dlgctrls.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: kz $ $Date: 2006-12-12 17:42:14 $
*
* The Contents of this file are made ... |
<commit_before>#include <string>
#include <cassert>
#include <cstdarg>
#include <libport/cstdlib>
#include <iostream>
#include <stdexcept>
#include <sdk/config.h>
#include <libltdl/ltdl.h>
#include <libport/cli.hh>
#include <libport/containers.hh>
#include <libport/file-system.hh>
#include <libport/foreach.hh>
#incl... |
<commit_before>//
// Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu>
// Creation Date: Sat Oct 23 20:39:21 PDT 2021
// Last Modified: Sat Oct 23 20:39:24 PDT 2021
// Filename: scapeinfo.cpp
// URL: https://github.com/craigsapp/humlib/blob/master/cli/scapeinfo.cpp
// Syntax: C++11
// vi... |
<commit_before>// Copyright 2022 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 o... |
<commit_before>/*
* Copyright (C) 2008, Morgan Quigley and Willow Garage, Inc.
*
* 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,
* thi... |
<commit_before>#include "Utils/Logging.hpp"
#include "Settings.hpp"
using Dissent::Utils::Logging;
namespace Dissent {
namespace Applications {
Settings::Settings(const QString &file, bool actions) :
_use_file(true),
_settings(new QSettings(file, QSettings::IniFormat))
{
Init(actions);
}
Setting... |
<commit_before>#ifndef RADIUMENGINE_CHRONOMETER_DEFINITION
#define RADIUMENGINE_CHRONOMETER_DEFINITION
#include <Core/Time/Timer.hpp>
namespace Ra {
namespace Core {
namespace Timer {
/**
* @brief The Chrono class represents a chronometer for timing generic functions
* in an easy way.
*
* Example:
*
* vo... |
<commit_before>// Copyright (C) 2018 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include <functional>
#include <string>
#if defined(_MSC_VER)
#include <Windows.h>
#else
#include <pthread.h>
#endif
namespace ouzel
{
class Thread
{
public:
Thread() {}
explicit T... |
<commit_before>#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "EntityEffect.h"
#include "../Mobs/Monster.h"
#include "Player.h"
int cEntityEffect::GetPotionColor(short a_ItemDamage)
{
// Lowest six bits
return (a_ItemDamage & 0x3f);
}
cEntityEffect::... |
<commit_before>/*************************************************************************
*
* $RCSfile: TableUndo.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2004-05-10 13:09:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<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>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>// STL
#include <iostream>
#include <fstream>
#include <algorithm>
#include <iterator>
// Boost
#include <boost/program_options/parsers.hpp>
#include <boost/program_options/variables_map.hpp>
#include <boost/scoped_ptr.hpp>
// Local
#include "pyp-topics.hh"
#include "corpus.hh"
#include "contexts_corpu... |
<commit_before>/***************************************************************************
* Copyright (C) 2006 by Till Adam <adam@kde.org> *
* *
* This program is free software; you can redistribute it and/or modify ... |
<commit_before>/*
kmsc - Kurento Media Server C/C++ implementation
Copyright (C) 2012 Tikal Technologies
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3
as published by the Free Software Foundation.
This program is distributed in the ... |
<commit_before>// Rabin-Karp - String Matching + Hashing O(n+m)
const int B = 31;
char s[N], p[N];
int n, m; // n = strlen(s), m = strlen(p)
void rabin() {
if (n<m) return;
ll hp = 0, hs = 0, E = 1;
for (int i = 0; i < m; ++i)
hp = ((hp*B)%MOD + p[i])%MOD,
hs = ((hs*B)%MOD + s[i])%MOD,
E = (E*B)%MOD... |
<commit_before>// Copyright 2016 The Brave 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 "brave/renderer/brave_content_renderer_client.h"
#include <utility>
#include "atom/renderer/content_settings_manager.h"
#include "b... |
<commit_before>#include <iostream>
#include <fstream>
#include <string>
using namespace std::string_literals;
#include "acmacs-base/argc-argv.hh"
#include "acmacs-base/read-file.hh"
#include "acmacs-base/quicklook.hh"
#include "acmacs-chart-2/factory-import.hh"
#include "acmacs-map-draw/draw.hh"
#include "settings.hh... |
<commit_before>
#include "include/config.h"
#include "osd/OSDCluster.h"
//#define MDS_CACHE_SIZE 4*10000 -> <20mb
//#define MDS_CACHE_SIZE 80000 62mb
#define AVG_PER_INODE_SIZE 450
#define MDS_CACHE_MB_TO_INODES(x) ((x)*1000000/AVG_PER_INODE_SIZE)
#define MDS_CACHE_SIZE MDS_CACHE_MB... |
<commit_before>#include "stdsneezy.h"
#include "obj_smoke.h"
/* todo
light reduction
drifting
coughing etc
rain put out fire
*/
TSmoke::TSmoke() :
TObj()
{
}
TSmoke::TSmoke(const TSmoke &a) :
TObj(a)
{
}
TSmoke & TSmoke::operator=(const TSmoke &a)
{
if (this == &a) return *this;
TObj::operator=(a);
retu... |
<commit_before>/*
Copyright (c) 2003-2008, 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 ... |
<commit_before>//===- Util/ConstExprMath.hpp --------------------------------------- C++ -===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
//... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.