text
stringlengths
54
60.6k
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: bmp.cxx,v $ * * $Revision: 1.15 $ * * last change: $Author: rt $ $Date: 2005-09-08 08:52:06 $ * * The Contents of this file are made avai...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2010, Willow Garage, 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: * * * Redistributions of...
<commit_before>#include <QDebug> #include "Sleeper.hpp" #include "Timer.hpp" namespace Dissent { namespace Utils { Timer::Timer() : _next_timer(-1) { _queue = TimerQueue(&(TimerEvent::ReverseComparer)); _real_time = true; } Timer::~Timer() { Clear(); } Timer& Timer::GetInstance() { s...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Vassil Vassilev <vvasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU L...
<commit_before>/************************************************************************* * * $RCSfile: sfxecode.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hjs $ $Date: 2004-06-25 16:31:38 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>// Copyright (C) 2010-2012 Joshua Boyce. // See the file COPYING for copying permission. #pragma once #include <windows.h> #include "hadesmem/config.hpp" namespace hadesmem { class Process; namespace detail { enum class ProtectGuardType { kRead, kWrite }; class Protect...
<commit_before>//============================================================================// // File: qcan_network.cpp // // Description: QCAN classes - CAN network // // ...
<commit_before><commit_msg>Update VideoDevice.hpp<commit_after>#ifndef VIDEO_DEVICE_H #define VIDEO_DEVICE_H #include <opencv2/opencv.hpp> using namespace cv; class VideoDevice { public: VideoDevice(); void startCapture(int id); Mat getImage(); private: void takeIm...
<commit_before>#include <eosio/chain/checktime_timer_calibrate.hpp> #include <eosio/chain/checktime_timer.hpp> #include <fc/time.hpp> #include <fc/log/logger.hpp> #include <boost/accumulators/accumulators.hpp> #include <boost/accumulators/statistics/stats.hpp> #include <boost/accumulators/statistics/min.hpp> #include...
<commit_before>#ifndef MOUSEMANAGER_HPP #define MOUSEMANAGER_HPP #include <map> #include <string> #include <functional> #include <SFML/Window/Event.hpp> #include <SFML/Window/Mouse.hpp> namespace swift { class MouseManager { public: MouseManager() {} ~MouseManager() {}; sf::Vector2i getPosition(sf::...
<commit_before>#include "SpritePool.h" #include "SpriteFactory.h" #include <sprite2/S2_Sprite.h> #include <Sprite2/S2_Symbol.h> namespace gum { SINGLETON_DEFINITION(SpritePool); SpritePool::SpritePool() { } void SpritePool::GC() { while (true) { bool dirty = false; std::map<uint32_t, s2::Sprite*>::iterator...
<commit_before>#include "akt/shell.h" #include "ch.h" #include "hal.h" #include "chprintf.h" #include <cstring> #include <cstdio> using namespace akt; Ring<ShellCommand> ShellCommand::commands __attribute__ ((init_priority(200))); BaseSequentialStream *ShellCommand::tty = 0; char ShellCommand::li...
<commit_before>// Copyright (C) 2014 Jérôme Leclercq // This file is part of the "Nazara Engine - Utility module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_SKELETON_HPP #define NAZARA_SKELETON_HPP #include <Nazara/Prerequesites.hpp> #include <Nazara/Mat...
<commit_before>/** * File : C.cpp * Author : Kazune Takahashi * Created : 1/12/2019, 9:05:30 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string>...
<commit_before>/*! \file file_lock.cpp \brief File-lock synchronization primitive implementation \author Ivan Shynkarenka \date 01.09.2016 \copyright MIT License */ #include "threads/file_lock.h" #include "errors/fatal.h" #include "filesystem/exceptions.h" #include "threads/thread.h" #if defined(...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Vassil Vassilev <vvasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU L...
<commit_before>#pragma once #include <cilantro/kd_tree.hpp> namespace cilantro { template <typename ScalarT> struct Correspondence { EIGEN_MAKE_ALIGNED_OPERATOR_NEW Correspondence(size_t i, size_t j, ScalarT val) : indexInFirst(i), indexInSecond(j), value(val) {} size_t indexInFirst;...
<commit_before>#include <iostream> #include <vector> #include <string> #include <unordered_map> #include <utility> #include <algorithm> using namespace std; //vector<int> dx = {0, 1, 0, -1}; //vector<int> dy = {1, 0, -1, 0}; template<typename T> void show(T a){ for(auto i : a){ cout << i << " "; } cout << endl;...
<commit_before>/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2015. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the ro...
<commit_before>#pragma once /** @file @brief string operation for cybozu::String Copyright (C) 2008 Cybozu Labs, Inc., all rights reserved. @note modifying functions are almost the following type: void function(String& out, String& in, bool doAppend = false); if doAppend is true then the function will append s...
<commit_before>// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/app/node_main.h" #include "atom/app/uv_task_runner.h" #include "atom/browser/javascript_environment.h" #include "atom/browser/node_debugger.h" #include "...
<commit_before>// RUN: %clangxx -frtti -fsanitize=vptr -fno-sanitize-recover=vptr -I%p/Helpers -g %s -fPIC -shared -o %dynamiclib -DBUILD_SO %ld_flags_rpath_so // RUN: %clangxx -frtti -fsanitize=vptr -fno-sanitize-recover=vptr -I%p/Helpers -g %s -O3 -o %t %ld_flags_rpath_exe // RUN: %run %t // // REQUIRES: cxxabi // UN...
<commit_before>/*------------------------------------------------------------------------------ | This file is distributed under the BSD 2-Clause License. | See LICENSE for details. *-----------------------------------------------------------------------------*/ #include <cstdio> #include <vector> #include <utility> /*...
<commit_before>// (C) Copyright 2013 Florian Plaza Oate // Use, modification and distribution is subject to the MIT License (MIT) // (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) #include "XsqConverter.hh" #include <memory> auto XsqConverter::convert(const fs::path& input_file, ...
<commit_before>#ifdef STAN_OPENCL #undef STAN_OPENCL #include <test\unit\math\rev\mat\prob\normal_id_glm_lpdf_test.cpp> #endif<commit_msg>fix cpplint<commit_after>#ifdef STAN_OPENCL #undef STAN_OPENCL #include <test\unit\math\rev\mat\prob\normal_id_glm_lpdf_test.cpp> #endif <|endoftext|>
<commit_before>#include <QDBusReply> #include <QMenu> #include <QMessageBox> #include "iconproducer.h" #include "agentadaptor.h" #include "dbus_types.h" #include "controller.h" Controller::Controller() : manager(), agent(), model(), servicesWindow(), trayIcon(), connectionTypesItem("Connection...
<commit_before>/* * Created on: 10 Oct 2017 * Author: Yiming Yang * * Copyright (c) 2017, University of Edinburgh * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistribut...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko * Copyright (C) 2006 10East Corp. * * This library is free software; you can redistribute it and/or * modify it under the ter...
<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>/** * $Id$ * * Copyright (C) * 2015 - $Date$ * Martin Wolf <ndhist@martin-wolf.org> * * This file is distributed under the BSD 2-Clause Open Source License * (See LICENSE file). * */ #ifndef NDHIST_DETAIL_BIN_VALUE_HPP_INCLUDED #define NDHIST_DETAIL_BIN_VALUE_HPP_INCLUDED namespace ndhist ...
<commit_before>#ifndef PARSERLIB__PARSE_CONTEXT__HPP #define PARSERLIB__PARSE_CONTEXT__HPP #include <utility> #include <string> #include <string_view> #include <vector> #include <ostream> #include <map> namespace parserlib { /** Struct with data required for parsing. @param I...
<commit_before>/******************************************************************************* * include/queries/bin_rank_popcnt.hpp * * Copyright (C) 2018 Florian Kurpicz <florian.kurpicz@tu-dortmund.de> * * All rights reserved. Published under the BSD-2 license in the LICENSE file. ****************************...
<commit_before>// Copyright 2017 Nest Labs, 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 ...
<commit_before>#include "swift/extractor/remapping/SwiftOutputRewrite.h" #include <llvm/ADT/SmallString.h> #include <llvm/Support/FileSystem.h> #include <llvm/Support/Path.h> #include <swift/Basic/OutputFileMap.h> #include <swift/Basic/Platform.h> #include <unistd.h> #include <unordered_set> #include <optional> #inclu...
<commit_before>/* * einit-gui-gtk.c++ * einit * * Created by Magnus Deininger on 01/08/2007. * Copyright 2006, 2007 Magnus Deininger. All rights reserved. * */ /* Copyright (c) 2007, Magnus Deininger All rights reserved. Redistribution and use in source and binary forms, with or without modification, are p...
<commit_before>#ifndef ORG_EEROS_CONTROL_MAFILTER_HPP_ #define ORG_EEROS_CONTROL_MAFILTER_HPP_ #include <eeros/control/Block1i1o.hpp> #include <ostream> namespace eeros { namespace control { /** * A moving average filter (MAFilter) block is used to filter an input signal. * The output signal value depends...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xcreator.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: rt $ $Date: 2005-09-08 18:40:35 $ * * The Contents of this file are made ...
<commit_before>//! //! @author @Yue Wang @shbling //! //! Exercise 10.24: //! Use bind and check_size to find the first element in a vector of ints that //! has a value greater than the length of a specified string value. //! // Discussion over this exercise on StackOverflow // http://stackoverflow.com/questions/2053...
<commit_before>// // ex13_26.cpp // Exercise 13.26 // // Created by pezy on 1/19/15. // Copyright (c) 2014 pezy. All rights reserved. // // Write your own version of the StrBlob class described in the previous // exercise. // // @See ex12_22 and ex13_25 #include "ex13_26.h" ConstStrBlobPtr StrBlob::begin() ...
<commit_before>// // ex13_28.cpp // Exercise 13.28 // // Created by pezy on 1/20/15. // // Given the following classes, implement a default constructor and the necessary copy-control members. #include "ex13_28.h" TreeNode& TreeNode::operator=(const TreeNode &rhs) { ++*rhs.count; if (--*count == 0) { ...
<commit_before>#include "common-header.hpp" template <class T> struct double_first_half { }; static_assert( mpl::equal< double_first_half< mpl::vector_c<int, 1, 2, 3, 4> >::type, mpl::vector_c<int, 2, 4, 3, 4> >::type::value, "equal"); <commit_msg>stuck by 5-1<commit_a...
<commit_before>/* Copyright 2017 The TensorFlow 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 Unless required by appl...
<commit_before>#include "PlanarAccelerationModule.h" #include "OrientationSensorsWrapper.h" #include "DualEncoderDriver.h" #include "MotorDriver.h" #include "constants.h" void PlanarAcceleration::calibrate() { acc_offset_x = 0; acc_offset_y = 0; int samples_count = 0; uint32_t start_micros = micros(); uint32_...
<commit_before>/* * @author Howard Roatti * @date 07/2015 * @contact howardcruzroatti@gmail.com */ #include "Utils.h" #include <stdlib.h> #include <string.h> #include <stdio.h> #include <iostream> #include <getopt.h> #include "IDF.h" #include "ICF.h" #include "RF.h" #include "ICFBASED.h" #include "RFXIDF.h" #inclu...
<commit_before>#include "tests.h" // Work efficient prefix sum template <typename F, typename std::enable_if<std::is_floating_point<F>::value>::type* = nullptr> bool check_sum(cl::sycl::buffer<F, 1>& data) { using namespace cl::sycl; auto d = data.get_access<access::read, access::host_buffer>(); F sum = 0; for(s...
<commit_before>/* * File: Renderer.h * Author: morgan * * Created on February 15, 2014, 2:37 PM */ #ifndef MO_RENDERER_H #define MO_RENDERER_H #include <ogli/ogli.h> #include <glm/glm.hpp> #include <iostream> #include <map> #include <tuple> #include "vertex.hpp" #include "texture2d.hpp" #include "model.hpp" ...
<commit_before>/* [auto_generated] boost/numeric/odeint/config.hpp [begin_description] Sets configurations for odeint and used libraries. Should be included before any other odeint library [end_description] Copyright 2009-2011 Karsten Ahnert Copyright 2009-2011 Mario Mulansky Distributed under the Boost Soft...
<commit_before>#include "StorageFlattening.h" #include "IRMutator.h" #include "IROperator.h" #include "Scope.h" #include <sstream> namespace Halide { namespace Internal { using std::ostringstream; using std::string; using std::vector; using std::map; class FlattenDimensions : public IRMutator { public: FlattenDi...
<commit_before>/* oscarconnection.h - Implementation of an oscar direct connection Copyright (c) 2002 by Tom Linsky <twl6@po.cwru.edu> Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
<commit_before> #ifdef _DEBUG #include "NetworkSample.h" NetworkSample::NetworkSample() { } NetworkSample::~NetworkSample() { } void NetworkSample::Render() { NNScene::Render(); } void NetworkSample::Update( float dTime ) { NNScene::Update(dTime); } #endif<commit_msg>* NetworkSample Test<commit_after> #ifdef _D...
<commit_before>#ifndef __TRIANGULATION_MACROS_CPP_INCLUDED #define __TRIANGULATION_MACROS_CPP_INCLUDED #include "indexing.hpp" // for bilinear interpolation, southeast-northwest edges, and southwest-northeast edges. inline GLuint southwest(uint32_t current_vertex_i, uint32_t image_width) { return current_vertex_i...
<commit_before>/***************************************************************************************** * * * OpenSpace * * ...
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFCActorManager.cpp // @Author : LvSheng.Huang // @Date : 2012-12-15 // @Module : NFCActorManager // // ------------------------------------------...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "OgreConversionUtils.h" #include "OgreParticleAsset.h" #include "OgreRenderingModule.h" #include "OgreMaterialUtils.h" #include "Renderer.h" #include <Ogre.h> using namespace OgreRenderer...
<commit_before>#pragma once #include "eigen.hh" #include "eigen.hh" namespace jcc { template <int a_rows, int b_rows, int cols> MatNd<a_rows + b_rows, cols> vstack(const MatNd<a_rows, cols> &a, const MatNd<b_rows, cols> &b) { MatNd<a_rows + b_rows, cols> ab; ab << a, b; return ab; } template <int a_cols, int...
<commit_before>/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed in accordance with the terms specified in * the LICENSE file found in the root directory of this source tree. */ #include <IOKit/IOMessage.h> #include <osquery/utils/conversions/darwin/iok...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2002 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. Red...
<commit_before>#include "all.h" #include "game/transcendental/entity_handle.h" #include "game/transcendental/cosmos.h" #include "game/components/gun_component.h" #include "augs/graphics/drawers.h" namespace rendering_scripts { void draw_crosshair_lines( std::function<void(vec2, vec2, rgba)> callback, const interp...
<commit_before>#include <vector> #include <iostream> #include <utility> // std::pair<T,U> #include <pthread.h> #include <algorithm> #include <cmath> #include "utils.hpp" int shortest_path_dist(std::vector< std::vector<int> > dist, std::vector< std::vector<double> > pheromones); void* does_work(void *ptr); //////glob...
<commit_before>// // Exponent.cpp // Calculator // // Created by Gavin Scheele on 3/27/14. // Copyright (c) 2014 Gavin Scheele. All rights reserved. // #include "Exponential.h" Exponential::Exponential(Expression* base, Rational* exponent){ this->type = "exponential"; this->base = base; this->exponen...
<commit_before>#include "FileWrapper.h" #include "ThrowError.h" #define _LARGEFILE64_SOURCE #include <sys/types.h> #include <sys/stat.h> #if defined(_MSC_VER) #define stat64 _stat64 #define status_t _stat64 #define fseek64 _fseeki64 #elif defined(__MINGW32__) #define stat64 _stat64 #define status_t __stat64 #defin...
<commit_before>/*===========================================================================* * This file is part of the BiCePS Linear Integer Solver (BLIS). * * * * BLIS is distributed under the Common Public License as part of th...
<commit_before> // g++ -std=c++11 -DSTANDALONE_TEST -L/opt/local/lib chebyshev_cl.cpp -lOpenCL -lboost_system //#include <cstdlib> #include "chebyshev_cl.hpp" // Print elements of vector to stdout template<class T> void printvector(const T &v){ for(int i=0;i<v.size();++i) { std::cout << v[i] << std::endl; ...
<commit_before>#include "process.hpp" #include <cstring> #include <TlHelp32.h> #include <stdexcept> Process::Data::Data(): id(0), handle(NULL) {} //Based on the discussion thread: https://www.reddit.com/r/cpp/comments/3vpjqg/a_new_platform_independent_process_library_for_c11/cxq1wsj std::mutex create_process_mutex; ...
<commit_before>#include "process.hpp" #include <cstring> #include "TlHelp32.h" #include <iostream> //TODO: remove using namespace std; //TODO: remove Process::Data::Data(): id(0), handle(NULL) {} //Based on the example at https://msdn.microsoft.com/en-us/library/windows/desktop/ms682499(v=vs.85).aspx. //Note: on Win...
<commit_before>/* * Test Driver for Botan */ #include <vector> #include <string> #include <iostream> #include <cstdlib> #include <cstring> #include <exception> #include <limits> #include <botan/botan.h> #include <botan/mp_types.h> using namespace Botan_types; #include "getopt.h" const std::string VALIDATION_FIL...
<commit_before>/*! * This file is part of CameraPlus. * * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org> * * 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 * versio...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<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. #include "chrome/common/resource_bundle.h" #include <atlbase.h> #include "base/file_util.h" #include "base/gfx/png_decoder.h" #i...
<commit_before>/************************************************************************** * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#include "llvm/Analysis/AliasAnalysis.h" #include "llvm/Analysis/Passes.h" #include "llvm/Pass.h" #include "llvm/DataLayout.h" #include "llvm/Support/raw_ostream.h" #include "accept.h" using namespace llvm; namespace { struct AcceptAA : public ImmutablePass, public AliasAnalysis { static char ID;...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SelectionMultiplex.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2007-07-06 10:17:43 $ * * The Contents of this file...
<commit_before>/* Copyright 2014 Peter Goodman, all rights reserved. */ #define GRANARY_INTERNAL #include "granary/arch/base.h" #include "granary/base/base.h" #include "granary/base/string.h" #include "granary/cfg/basic_block.h" #include "granary/cfg/instruction.h" #include "granary/arch/decode.h" #include "granar...
<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>#include "domain_transition_graph.h" #include "domain_transition_graph_symb.h" #include "domain_transition_graph_func.h" #include "domain_transition_graph_subterm.h" #include "operator.h" #include "axiom.h" #include "variable.h" #include <algorithm> #include <cassert> #include <iostream> using namespace...
<commit_before>#include "UpdaterWindow.h" #include "../3RVX/3RVX.h" #include "../3RVX/Logger.h" #include "../3RVX/CommCtl.h" #include "../3RVX/NotifyIcon.h" #include "../3RVX/Settings.h" #include "resource.h" #include "Updater.h" UpdaterWindow::UpdaterWindow() : Window(L"3RVX-UpdateWindow") { HRESULT hr; hr =...
<commit_before>#ifndef ITER_COMBINATIONS_HPP_ #define ITER_COMBINATIONS_HPP_ #include "internal/iteratoriterator.hpp" #include "internal/iterbase.hpp" #include <iterator> #include <type_traits> #include <vector> namespace iter { namespace impl { template <typename Container> class Combinator; using Co...
<commit_before>/// /// \file TestEMCALSimulation.C /// \ingroup EMCAL_TestSimRec /// \brief Simple macro to test EMCAL simulation /// /// Simple macro to test EMCAL simulation. /// It will take the Config.C macro that is sitting in the same place as the execution is performed. /// In order to execute this you can do /...
<commit_before>/* Copyright (C) 2009-2012, Stefan Hacker <dD0t@users.sourceforge.net> 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 abo...
<commit_before>/**************************************************************************** * * Copyright (C) 2019 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>// bdlt_date.cpp -*-C++-*- #include <bdlt_date.h> #include <bsls_ident.h> BSLS_IDENT_RCSID(bdlt_date_cpp,"$Id$ $CSID$") #include <bslim_printer.h> #include <bsls_performancehint.h> #include <bsls_platform.h> #include <bsl_ostream.h> #include <bsl_...
<commit_before>#include "match.h" #include "term.h" #include "prompt.h" #include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; static const int MAXLINES = 20; int main(void) { vector<wstr> input; string line; while (getline(cin, line)) input.emplace_back(line)...
<commit_before>#include "phInput.h" #include <fstream> #include <map> #include "ph.h" #include <cassert> namespace ph { static void setDefaults(Input& in) { in.outMeshFileName = ""; in.numSplit = 10; in.tetrahedronize = 0; in.localPtn = true; in.recursivePtn = -1; in.recursiveUR = 1; in.parmaPtn = 0; /...
<commit_before>/* Copyright (C) 1998, 1999 by Nathaniel 'NooTe' Saint Martin Copyright (C) 1998, 1999 by Jorrit Tyberghein Written by Nathaniel 'NooTe' Saint Martin Linux sound driver by Gert Steenssens <gsteenss@eps.agfa.be> This library is free software; you can redistribute it and/or modify it under the ...
<commit_before>#include "rainbow.h" //Constructor Rainbow::Rainbow(CRGB *Leds, int iLeds) : Animation(Leds, iLeds) { iGlobalPos = 0; } //animate next step void Rainbow::doNextStep() { iGlobalPos++; if(iGlobalPos >= iLedCount) { iGlobalPos = 0; } const int iSectorSize = iLedCount / 6; ...
<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 "printing/page_overlays.h" #include "app/gfx/text_elider.h" #include "base/logging.h" #include "base/string_util.h" #inc...
<commit_before>#include "player.hpp" #include "lvl.hpp" #include <vector> #include <string> #include <cstdio> void fatal(const char*, ...); extern "C" unsigned long hashbytes(unsigned char[], unsigned int); struct Plat2d { static const unsigned int Ops[]; static const unsigned int Nops; enum { UnitCost = true };...
<commit_before>#include "..\header\Player.h" Player::Player(game_state* GameState){ LogManager& l = LogManager::getInstance(); ResourceManager& r = ResourceManager::getInstance(); WorldManager& w = WorldManager::getInstance(); if (!l.isStarted() || !r.isStarted() || !w.isStarted()){ l.writeLog("[Player] Manager ...
<commit_before>// Copyright (c) 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. #include "base/process.h" #include <errno.h> #include <sys/resource.h> #include "base/logging.h" namespace base { bool Process::IsP...
<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. #include <time.h> #include "base/platform_thread.h" #include "base/time.h" #include "build/build_config.h" #include "testing/gtes...
<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. #include <time.h> #include "base/platform_thread.h" #include "base/time.h" #include "build/build_config.h" #include "testing/gtes...
<commit_before>/*------------------------------------------------------------------------- * * plan_transformer.cpp * file description * * Copyright(c) 2015, CMU * * /n-store/src/bridge/plan_transformer.cpp * *------------------------------------------------------------------------- */ #include "nodes/pprint...
<commit_before>//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 wit...
<commit_before>#include "TTExtensionLoader.h" #include "TTFoundation.h" #include "TTEnvironment.h" #include <vector> #include <string> // The organization here is as follows : // 1. TTLoadExtensions is called and selects the paths // where the extensions should be searched, in order. // As soon as extensions are...
<commit_before>/* -- * Copyright (C) 2013, George Makrydakis <irrequietus@gmail.com> * * This file is part of odreex. * * odreex is free software: you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the L...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2017 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>/** * @file naive_method.hpp * @author Ajinkya Kale * * Use the naive method to construct the kernel matrix. */ #ifndef __MLPACK_METHODS_KERNEL_PCA_NAIVE_METHOD_HPP #define __MLPACK_METHODS_KERNEL_PCA_NAIVE_METHOD_HPP #include <mlpack/core.hpp> namespace mlpack { namespace kpca { template<typena...
<commit_before>/** * @file llwidgetreg.cpp * * $LicenseInfo:firstyear=2009&license=viewergpl$ * * Copyright (c) 2002-2009, Linden Research, Inc. * * Second Life Viewer Source Code * The source code in this file ("Source Code") is provided by Linden Lab * to you under the terms of the GNU General Public Lice...
<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>// RUN: %clang_cc1 -verify -std=c++11 -fms-extensions %s 8gi///===--- recovery.cpp ---===// // expected-error {{unqualified-id}} namespace Std { // expected-note {{here}} typedef int Important; } / redeclare as an inline namespace // expected-error {{unqualified-id}} inline namespace Std { // expecte...