text
stringlengths
54
60.6k
<commit_before>/** * sopnet main file. Initializes all objects, views, and visualizers. */ #include <iostream> #include <string> #include <boost/thread.hpp> #include <boost/shared_ptr.hpp> #include <boost/lexical_cast.hpp> #include <boost/make_shared.hpp> #include <boost/progress.hpp> #include <util/exceptions.h> #...
<commit_before>#include "AbstrRenderer.h" #include "../Controller/MasterController.h" using namespace std; bool AbstrRenderer::LoadDataset(const string& strFilename) { if (m_pMasterController == NULL) return false; if (m_pMasterController->MemMan() == NULL) { m_pMasterController->DebugOut()->printf("Abstr...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkViewTheme.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. Th...
<commit_before>/* * Copyright (c) 2010, The Infrastructure Developers Group * All rights reserved. * * This file is subject to the New BSD License (see the LICENSE file). */ #include "node_service_handler.h" #include <txmpp/logging.h> #include "node_loop.h" namespace tyrion { NodeServiceHandler::NodeServiceHan...
<commit_before>////////////////////////////////////////////////////////////////////////////// // NoLifeNxBench - Part of the NoLifeStory project // // Copyright (C) 2013 Peter Atashian // // ...
<commit_before>// Copyright (c) 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 "base/message_loop.h" #include "base/process.h" #include "base/process_util.h" #include "base/scoped_ptr.h" #include "chrome/b...
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h" #include "base/task.h" #include "base/utf_string_conversions.h" #include...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // 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>// Matlab driver main. // // Kota Yamaguchi 2013 <kyamagu@cs.stonybrook.edu> #include "lda.h" #include "mex/arguments.h" #include "mex/function.h" #include "mex/mxarray.h" #include "mex.h" #include <numeric> #include <stdlib.h> #include <string> #include <vector> using namespace std; using mex::CheckI...
<commit_before>#include "../include/cxx.h" #include <cassert> #include <cstring> #include <exception> #include <iostream> #include <memory> #include <stdexcept> #include <vector> extern "C" { const char *cxxbridge05$cxx_string$data(const std::string &s) noexcept { return s.data(); } size_t cxxbridge05$cxx_string$le...
<commit_before>#pragma once //=====================================================================// /*! @file @brief カラー管理クラス @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2017 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/master/LICENSE...
<commit_before>#ifndef HGUARD_OGRE_SPHERICAL_HPP__ #define HGUARD_OGRE_SPHERICAL_HPP__ #include <OgreMath.h> #include <OgreVector3.h> #include <OgreQuaternion.h> namespace Ogre { /** Spherical coordinates vector, used for spherical coordinates and transformations. Some example values: ( radius = 1.0, theta =...
<commit_before>/* -*- mode:linux -*- */ /** * \file main.cc * * * * \author Ethan Burns * \date 2008-10-08 */ #include <iostream> #include <stdlib.h> #include "grid/grid_world.h" using namespace std; int main(void) { GridWorld g(NULL, cin); g.print(cout); return EXIT_SUCCESS; } <commit_msg>Do not print...
<commit_before>#include <iostream> #include <cstdio> #include <vector> #include <algorithm> #include <boost/utility/string_ref.hpp> #include "../ast/ast_printer.h" #include "../ast/decl.h" #include "../parser/parser.hpp" #include "../sema/typecheck.h" #include "../cgen/codegen.h" extern FILE* yyin; int yyparse(); exte...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 * * (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>/* * Copyright (c) 2012 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....
<commit_before><commit_msg>canbus:fix wrong using static_cast<commit_after><|endoftext|>
<commit_before>/***************************************************************************** * profile_selector.cpp : A small profile selector and editor **************************************************************************** * Copyright (C) 2009 the VideoLAN team * $Id$ * * Authors: Jean-Baptiste Kempf <jb...
<commit_before>/*************** <auto-copyright.pl BEGIN do not edit this line> ************** * * VR Juggler is (C) Copyright 1998-2003 by Iowa State University * * Original Authors: * Allen Bierbaum, Christopher Just, * Patrick Hartling, Kevin Meinert, * Carolina Cruz-Neira, Albert Baker * * This libra...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 * * (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>/************************************************************************* * * $RCSfile: msfiltertracer.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2003-03-27 15:03:42 $ * * The Contents of this file are made available subject to the terms of * either of the following...
<commit_before>#include <iostream> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <dirent.h> #include <errno.h> #include <stdio.h> #include <vector> #include <string> #include <algorithm> #include <pwd.h> #include <grp.h> #include <iomanip> #include <time.h> using namespace std; int fs_digit...
<commit_before>#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <dirent.h> #include <errno.h> #include <iostream> #include <vector> #include <stdio.h> #include <stdlib.h> #include <cstring> #define FLAG_a 1 #define FLAG_r 2 #define FLAG_l 4 using namespace std; //for directories, it is ordere...
<commit_before>#include <stdlib.h> #include <stdio.h> #include <string.h> #include <dirent.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <vector> #include <string> int main(int argc, char** argv) { bool a = false, l = false, R = false; std::vector<char*> arglist; std::string outp...
<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 <iostream> using namespace std; int main() { cout << "test"; return 0; } <commit_msg>testing out dir operators<commit_after>#include <iostream> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <sys/types.h> #include <dirent.h> #include <stdio.h> #include <errno.h> u...
<commit_before>#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <dirent.h> #include <errno.h> #include <iostream> #include <string.h> #include <stdlib.h> using namespace std; #define FLAG_a 1 #define FLAG_l 2 #define FLAG_R 4 //Error check all syscalls (Readdir AND Stat) //Have another funct...
<commit_before>// -*- mode: c++; coding: utf-8 -*- /*! @file exclusivity.cpp @brief Inplementation of Exclusivity class */ #include "exclusivity.hpp" #include <functional> #include <unordered_map> #include <csignal> #include <boost/dynamic_bitset.hpp> #include <boost/math/distributions/chi_squared.hpp> #include ...
<commit_before>/* Copyright 2014 Dietrich Epp. This file is part of Oubliette. Oubliette is licensed under the terms of the 2-clause BSD license. For more information, see LICENSE.txt. */ #include "entity.hpp" #include "../defs.hpp" #include "control.hpp" #include "defs.hpp" #include "graphics.hpp" #include "le...
<commit_before>// Module: Log4CPLUS // File: global-init.cxx // Created: 5/2003 // Author: Tad E. Smith // // // Copyright 2003-2010 Tad E. Smith // // 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...
<commit_before>#ifndef SAT_HH #define SAT_HH #include "all.cc" #include "life.hh" void include_clauses( Solver& S, const vector<Lit>& prev, const Lit& next ) { for( int i = 0; i < LIFE_TABLE; i++ ) { vec<Lit> clause; for( int j = 0; j < 9; j++ ) { if( i & (1 << j) ) { clause.push( ~prev[j] ); } else { ...
<commit_before>// Copyright 2013 Tanel Lebedev #include "./https_client.h" #include <string> #include <sstream> #include "Poco/Exception.h" #include "Poco/InflatingStream.h" #include "Poco/DeflatingStream.h" #include "Poco/Logger.h" #include "Poco/URI.h" #include "Poco/NumberParser.h" #include "Poco/Net/Context.h" #...
<commit_before>#include "tmc.h" #include <deque> #include <fstream> #include <sstream> #include "util.h" namespace redsea { namespace tmc { std::map<uint16_t,Event> g_event_data; namespace { uint16_t popBits(std::deque<int>& bit_deque, int len) { uint16_t result = 0x00; if ((int)bit_deque.size() >= len) { ...
<commit_before>#include <memory> #include "uci.h" #include "version.h" #include <iostream> #include <thread> namespace { Book book; std::shared_ptr<Search> search; Board board; std::vector<ZKey> positionHistory; void loadBook() { std::ifstream bookFile(optionsMap["BookPath"].getValue()); bool bookOk = bookFile.g...
<commit_before>#include <semaphore.h> #include <fcntl.h> #include <sys/stat.h> #include <mist/defines.h> #include "input.h" #include <sstream> #include <fstream> #include <iterator> namespace Mist { Input * Input::singleton = NULL; void Input::userCallback(char * data, size_t len, unsigned int id){ long ti...
<commit_before>/* * File: UralJudger.cpp * Author: payper * * Created on 2014年3月25日, 下午1:22 */ #include "UralJudger.h" /** * Create a Ural Judger * @param _info Should be a pointer of a JudgerInfo */ UralJudger::UralJudger(JudgerInfo * _info) : VirtualJudger(_info) { language_table["1"] = "26"; langua...
<commit_before>#pragma once #include "types.hh" #include "serialise.hh" namespace nix { MakeError(BadHash, Error); enum HashType : char { htUnknown, htMD5, htSHA1, htSHA256, htSHA512 }; const int md5HashSize = 16; const int sha1HashSize = 20; const int sha256HashSize = 32; const int sha512HashSize = 64; exter...
<commit_before>#include <nan.h> #include "../kv-types.h" #include "txn.h" #include "db.h" #include "cursor.h" using namespace v8; using namespace kv; using namespace kv::lmdb; #define CURSOR_EXPORT(KT, VT) cursor<KT, VT>::setup_export(exports); void kv::lmdb::setup_cursor_export(v8::Handle<v8::Object>& exports) { ...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2015 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
<commit_before>/* FasTC * Copyright (c) 2013 University of North Carolina at Chapel Hill. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for educational, research, and non-profit purposes, without * fee, and without a written agreement is hereby gr...
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Module: FGPID.cpp Author: Jon S. Berndt Date started: 6/17/2006 ------------- Copyright (C) 2006 Jon S. Berndt (jsb@hal-pc.org) ------------- This program is free software; you can redistribute it and/or ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: paraTkAppInit.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Co...
<commit_before>#include "Sound.hpp" #include <iostream> ppSound::ppSound(const char *name, ppFormat* audioFormat, int track, ppRandomizer* randomizer) : ppGenericSound(name){ this->randomizer = randomizer; this->SetTrack(track); this->audioFormat = audioFormat; this->bufferSize = audioFormat->GetSampleRate()*2; ...
<commit_before>/* * Copyright (c) 2010 Eduard Burtescu * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND TH...
<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 meegotouch-controlpanelapplets. ** ** If you have que...
<commit_before>// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include <svdpi.h> #include "cosim.h" #include "spike_cosim.h" extern "C" { void *spike_cosim_init(svBitVecVal *start_pc, svBitVecVal *start_mtvec, ...
<commit_before>/************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * ALICE Experiment at CERN, All rights reserved. * * * ...
<commit_before>/* Copyright 2020 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><commit_msg>fix build bustage<commit_after><|endoftext|>
<commit_before> /* Test program to test the timer callbacks */ #include <iostream> #include "SDL.hh" #include <ctime> #include <sstream> using namespace RAGE; using namespace RAGE::SDL; using namespace std; static long ticks; Logger testlog("testTimer"); /*static unsigned int callback(unsigned int interval, void *...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtQml module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usag...
<commit_before>/* * Copyright (c) 2012 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....
<commit_before>#ifndef RDB_PROTOCOL_QUERY_LANGUAGE_HPP_ #define RDB_PROTOCOL_QUERY_LANGUAGE_HPP_ #include <list> #include <deque> #include "utils.hpp" #include <boost/variant.hpp> #include <boost/shared_ptr.hpp> #include "clustering/administration/metadata.hpp" #include "clustering/administration/namespace_interface...
<commit_before>#include "stdafx.h" #include "GameTile.h" #include "lodepng.h" GameTile::GameTile(int width, int height) { this->Width = width; this->Height = height; Cells = new TileCell[width*height]; } GameTile::~GameTile() { delete [] Cells; } //Load a game tile from disk GameTile * GameTile::LoadTileFromDisk(...
<commit_before>/** @file SaveData.cpp The save data format(little endian): int32_t record count [ int64_t record time int16_t level int16_t year int8_t month int8_t day int8_t hour int8_t minit int8_t second ] x (record count) */ #include "SaveData.h" #include <vector> #include <algorithm> #i...
<commit_before>/** * @file viterbi_scorer.cpp * @author Chase Geigle */ #include "sequence/crf/viterbi_scorer.h" namespace meta { namespace sequence { crf::viterbi_scorer::viterbi_scorer(const crf& model) : model_{&model} { // these only ever need computing once because the underlying model is // not ...
<commit_before>/* DisplayController.h - Library for Controlling a 14x28 bits FlipDot display sign using two FP2800A. Created by Antonio Carioca, March 3, 2014. */ //#include "Arduino.h" //#include <avr/pgmspace.h> //#include "application.h" #include "mark-iv-flip-dot-display-sign-14x28-controller.h" /* CONSTANTS */ ...
<commit_before>/* * This file is part of the CN24 semantic segmentation software, * copyright (C) 2015 Clemens-Alexander Brust (ikosa dot de at gmail dot com). * * For licensing information, see the LICENSE file included with this project. */ #include <sstream> #include <cmath> #include <chrono> #include "Log.h" ...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <node.h> #include "nan.h" #include <nanomsg/nn.h> #include <nanomsg/pubsub.h> #include <nanomsg/pipeline.h> #include <nanomsg/bus.h> #include <nanomsg/pair.h> #include <nanomsg/reqrep.h> using namespace v8; NAN_METHOD(Socket) { NanScope(); int doma...
<commit_before>#include <random> #include <chrono> #include <algorithm> #include <cmath> #include <string> #include <sstream> #include <fstream> #include <chrono> #include <cstdlib> #include "util.h" #include "eval.h" int main(int argc, const char *const argv[]) { constexpr size_t max_iterations = 50; constexpr u...
<commit_before>#include <random> #include <algorithm> #include <string> #include <fstream> #include <sstream> #include <chrono> #include "eval.h" #include "util.h" int main(int argc, const char *const argv[]) { constexpr size_t max_iterations = 50; constexpr float eb_no_max = 10; constexpr float eb_no_step = 0....
<commit_before>#include <iostream> #include <cmath> #include "cv.h" #include "cxcore.h" #include "highgui.h" #include <vector> #include <algorithm> typedef unsigned char uchar; // The value of a gaussian point spread function at a given distance float psf_gaussian(float distance) { // Amplitude and std return...
<commit_before>/* This file is part of Strigi Desktop Search * * Copyright (C) 2009 Jos van den Oever <jos@vandenoever.info> * * 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; eithe...
<commit_before>// RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -fexceptions -fcxx-exceptions -fnew-ms-eh -emit-llvm -o - -std=c++11 | FileCheck %s int f(int); void test_catch() { try { f(1); } catch (int) { f(2); } catch (double) { f(3); } } // CHECK-LABEL: define void @"\01?test_catc...
<commit_before>/** * \file * \brief MutexOperationsTestCase class implementation * * \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 n...
<commit_before>#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE HitFinderToolsTests #include <boost/test/unit_test.hpp> #include "HitFinderTools.h" BOOST_AUTO_TEST_SUITE (HitFinderToolsSuite) BOOST_AUTO_TEST_CASE (HitFinder) { // All times are in picoseconds JPetBarrelSlot BS(7, true, "string", 1.0,...
<commit_before>// Copyright (c) 2017 Franka Emika GmbH // Use of this source code is governed by the Apache-2.0 license, see LICENSE #include "franka/robot_state.h" #include <algorithm> #include <cstring> #include <iterator> namespace franka { namespace { template <class T, size_t N> std::ostream& operator<<(std::o...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcprotocol.h" #include "util.h" #include <stdint.h> #inclu...
<commit_before>/* RTcmix - Copyright (C) 2000 The RTcmix Development Team See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for the license to this software and for a DISCLAIMER OF ALL WARRANTIES. */ //#define DBUG #define MAIN #include <pthread.h> #include <ctype.h> #include <math.h> #include <stdio....
<commit_before>/* RTcmix - Copyright (C) 2000 The RTcmix Development Team See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for the license to this software and for a DISCLAIMER OF ALL WARRANTIES. */ #define MAIN #include <pthread.h> #include <ctype.h> #include <math.h> #include <stdio.h> #include <un...
<commit_before>/*-------------------------------------------------------------------------- File : sdcard_impl.cpp Author : Hoang Nguyen Hoan June 9, 2011 Desc : SD card driver Copyright (c) 2011, I-SYST, all rights reserved Permission to use, copy, modify, and distribute this software for any...
<commit_before>#ifndef __PSUEDO_USER_TERMINAL_HPP__ #define __PSUEDO_USER_TERMINAL_HPP__ #include <stdlib.h> #include "UserTerminal.hpp" #if __APPLE__ #include <sys/ucred.h> #include <util.h> #elif __FreeBSD__ #include <libutil.h> #elif __NetBSD__ // do not need pty.h on NetBSD #else #include <pty.h> #endif namespac...
<commit_before>/* * Copyright (c) 2004 The Regents of The University of Michigan * 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 copyri...
<commit_before> #include"somocluWrap.h" #include <cmath> #include <iostream> #include <string.h> using namespace std; void trainWrapper(float *data, int data_length, unsigned int nEpoch, unsigned int nSomX, unsigned int nSomY, unsigned int nDimensions, unsigned int...
<commit_before>// // Copyright (c) 2015-2016 CNRS // // This file is part of Pinocchio // Pinocchio 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 // 3 of the License, or (at your opti...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2017 Nathan Osman * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the *...
<commit_before>#define MS_CLASS "TEST::RTP" #define MS_LOG_DEV #include "fct.h" #include "common.h" #include "RTC/RtpPacket.h" #include "Logger.h" #include <fstream> using namespace RTC; FCTMF_SUITE_BGN(test_rtp) { FCT_TEST_BGN(parse_packet) { // DOC: http://insanecoding.blogspot.com.es/2011/11/how-to-read-in-fi...
<commit_before>#include "game.hpp" #include "component_drawable.hpp" #include "component_position.hpp" #include "strapon/resource_manager/resource_manager.hpp" #include "entityx/entityx.h" #include <glm/vec2.hpp> #include <glm/gtx/polar_coordinates.hpp> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> class DrawSys...
<commit_before> <commit_msg>Delete 1.cpp<commit_after><|endoftext|>
<commit_before>#include "../tlang.h" #include <taichi/util.h> #include <taichi/visual/gui.h> #include <taichi/system/profiler.h> #include <taichi/visualization/particle_visualization.h> #include <taichi/visual/texture.h> #include "fem_interface.h" TC_NAMESPACE_BEGIN using namespace Tlang; constexpr int dim = 3, n = ...
<commit_before>#include "twister_rss.h" #include "init.h" #include "bitcoinrpc.h" #include "json/json_spirit.h" #include <sstream> #include <algorithm> #include <vector> #include <ctime> #ifdef HAVE_BOOST_REGEX #include <boost/regex.hpp> #endif #include <boost/lexical_cast.hpp> using namespace std; using namespac...
<commit_before>#ifndef CONST_HPP_ #define CONST_HPP_ #include <iostream> #include <string> // All about "const" key word // From Item 2 of book "Effective C++" by Scott Meyers: // Prefer const values to #defines // Global const value const int RATE = 110; const char* const AUTHOR_NAME = "Antony Cherepanov"; // it i...
<commit_before>#include <AltSoftSerial.h> void clearVars(void); /** * \brief Software serial port object * \author volodink */ AltSoftSerial mySerial; volatile uint8_t message[512]; /**< Maximum message size */ /** * The first argument to calculate the checksum */ uint8_t CK_A = 0, CK_B = 0; /**< The secon...
<commit_before>/* * FogLAMP storage service. * * Copyright (c) 2018 OSisoft, LLC * * Released under the Apache 2.0 Licence * * Author: Mark Riddoch, Massimiliano Pinto */ #include <south_service.h> #include <management_api.h> #include <storage_client.h> #include <service_record.h> #include <plugin_manager.h> #i...
<commit_before>#include "thread.h" namespace Util{ namespace Thread{ LockObject::LockObject(){ initializeLock(&lock); initializeCondition(&condition); // Global::debug(0) << "Created lock " << lock << std::endl; // Global::debug(0) << "Created condition " << condition << std::endl; } int LockObject:...
<commit_before>#include <sys/un.h> #include "utils/bspwm.hpp" #include "utils/env.hpp" POLYBAR_NS namespace bspwm_util { /** * Get all bspwm root windows */ vector<xcb_window_t> root_windows(connection& conn) { vector<xcb_window_t> roots; auto children = conn.query_tree(conn.screen()->root).childre...
<commit_before>// Copyright (c) 2014, Alexey Ivanov #include "stdafx.h" #include "image.h" #include <boost/noncopyable.hpp> #include "utils/util.h" namespace ImageUtils { namespace FreeImage { /* Adapter for std::vector<BYTE> to save/load into it by FreeImage library. */ class FIIOVectorHandle : boost::...
<commit_before>/* * Copyright 2010, 2011 Esrille 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 applic...
<commit_before>#include "xchainer/testing/util.h" #include <atomic> #include <cstdlib> #include <string> #include <gtest/gtest.h> #include "xchainer/backend.h" #include "xchainer/context.h" #include "xchainer/error.h" namespace xchainer { namespace testing { namespace { std::atomic<int> g_skipped_native_test_coun...
<commit_before>#include "vast/program.h" #include <cstdlib> #include <iostream> #include "vast/archive.h" #include "vast/exception.h" #include "vast/id_tracker.h" #include "vast/index.h" #include "vast/ingestor.h" #include "vast/logger.h" #include "vast/query_client.h" #include "vast/search.h" #include "vast/comm/broc...
<commit_before>/////////////////////////////////////////////////////////////////// // // CoinVault // // versioninfo.cpp // // Copyright (c) 2013 Eric Lombrozo // // All Rights Reserved. #include "versioninfo.h" #include "../BuildInfo.h" #include <CoinDB/Schema.h> // Definitions const int VERSIONPADDINGRIGHT = 20; c...
<commit_before>#include <webkit2/webkit-web-extension.h> #include <JavaScriptCore/JavaScript.h> #include <string.h> #include <soup.h> #include "utils.h" static WebKitWebExtension* extension; static guint idLogHandler = 0; static guint idSendRequestHandler = 0; static guint idPageCreatedHandler = 0; static gboolean ...
<commit_before>/* * Copyright (c) 2018 Andrew Kelley * * This file is part of zig, which is MIT licensed. * See http://opensource.org/licenses/MIT */ #include "windows_sdk.h" #if defined(_WIN32) #include "windows_com.hpp" #include <inttypes.h> #include <assert.h> struct ZigWindowsSDKPrivate { ZigWindowsSDK...
<commit_before>#include <algorithm> #include <Ancona/Engine/Core/Systems/Collision/CollisionSystem.hpp> #include <Ancona/Util/Assert.hpp> #include <Ancona/Util/Algorithm.hpp> #include <Ancona/Util2D/VectorMath.hpp> using namespace ild; void nop(const Entity & e1,const Entity & e2) {} CollisionSystem::CollisionSyste...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkPolylineMaskImageFilterTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reser...
<commit_before>// this file defines the otbCommonTest for the test driver // and all it expects is that you have a function called RegisterTests #if defined(_MSC_VER) #pragma warning ( disable : 4786 ) #endif #include <iostream> #include "otbTestMain.h" void RegisterTests() { REGISTER_TEST(otbAlignImageToPath); REGI...
<commit_before>/*===================================================================== QGroundControl Open Source Ground Control Station (c) 2009, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> This file is part of the QGROUNDCONTROL project QGROUNDCONTROL is free software: you can redistribute it ...
<commit_before>/*! * \file hyo_utilities_tests.cpp * \author Robert 'Bob' Caddy (rvc@pitt.edu), Helena Richie (helenarichie@pitt.edu) * \brief Tests for the contents of hydro_utilities.h and hydro_utilities.cpp * */ // STL Includes #include <vector> #include <string> #include <iostream> // External Includes #inc...
<commit_before>/* * Copyright (c) 2014, Autonomous Systems Lab * 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 lis...
<commit_before>//======================================================================= // Copyright (c) 2015-2016 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...