text
stringlengths
54
60.6k
<commit_before>#include <stdlib.h> #include <sys/stat.h> #include <syslog.h> #include <iostream> #include <cassert> #include <stdexcept> #include <algorithm> #include <numeric> #include <openssl/md5.h> #include "eyetil.h" #include "config.h" #ifdef HAVE_LIBUUID # include <uuid/uuid.h> #endif binary_t& binary_t::from_...
<commit_before>#include <iostream> using namespace std; class frame{ public: frame(); ~frame(); void setSOH(char c){ soh = c; } void setFrameNumber(int i){ frameNumber = i; } void setSTX(char c){ stx = c; } void setData(char c){ data = c; } void setETX(char c){ etx = c; } void setChecksum(strin...
<commit_before> #include "gibbs.h" #include "dstruct/factor_graph/inference_result.h" /* * Parse input arguments */ dd::CmdParser parse_input(int argc, char** argv){ std::vector<std::string> new_args; if (argc < 2) { new_args.push_back(std::string(argv[0]) + " " + "gibbs"); new_args.push_back("-h"); }...
<commit_before>// Copyright (C) 2018 David Helkowski // License GNU AGPLv3 #include<stdio.h> #include<stdlib.h> #include<string.h> #include<unistd.h> #include<libgen.h> // Text to print before every hexidecimal byte representation #define HEX_PREFIX '~' // Characters to show normally instead of in hex #define OK_CHA...
<commit_before>#include "ofApp.h" using namespace kaleidome; //-------------------------------------------------------------- void ofApp::setup() { // load settings parseSettings(); ofSetWindowShape(setting.windowWidth, setting.windowHeight); ofBackground(255); ofSetColor(255); dome = new Kaleidome(1.0f, setti...
<commit_before>#include "./parser.h" #include <string> #include <vector> #include <v8.h> #include <nan.h> #include "./conversions.h" #include "./input_reader.h" #include "./logger.h" #include "./tree.h" #include "./util.h" #include "text-buffer-snapshot-wrapper.h" namespace node_tree_sitter { using namespace v8; usin...
<commit_before>/// /// @file pmath.hpp /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef PMATH_HPP #define PMATH_HPP #include <stdint.h> #include <cmath> #include <vector> #include <...
<commit_before>/* * Copyright (C) 2019 Nagisa Sekiguchi * * 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 applicab...
<commit_before>#include "remote.hh" #include "display_buffer.hh" #include "debug.hh" #include "client_manager.hh" #include "event_manager.hh" #include "buffer_manager.hh" #include "command_manager.hh" #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <sys/wait.h> #include <unistd.h> #include...
<commit_before>#include <iostream> #include <string> #include <boost/tokenizer.hpp> #include <vector> #include <queue> #include <stdio.h> #include <cstring> #include <sys/wait.h> #include <sys/types.h> using namespace std; using namespace boost; class Connectors //abstract base class so we can dynam...
<commit_before>#include <set> #include <string> #include <fstream> #include <iostream> class Scene { protected: // Storage for shapes in scene set<Shape> shapes; set<Light> lights; public: /* * In the case of an empty constructor, Scene will generate a predefined * scene for rendering....
<commit_before>#include "./scene.h" #include <Eigen/Core> #include <Eigen/Geometry> #include <string> #include <vector> #include "./graphics/gl.h" #include "./input/invoke_manager.h" #include "./graphics/render_data.h" #include "./graphics/managers.h" #include "./graphics/volume_manager.h" #include "./graphics/shader_p...
<commit_before>#include "defs.h" #include "search.h" #include "eval.h" #include "movegen.h" #include "transptable.h" #include "movepicker.h" #include "generalmovepicker.h" #include "capturemovepicker.h" #include <string> #include <algorithm> #include <time.h> #include <iostream> #include <chrono> Search::Search(const ...
<commit_before>#include <iostream> #include <string> #include "server.h" #include "common.h" using namespace std; using namespace httpserver; void WebServerResource::render_GET(const http_request& req, http_response** res) { *res = new http_response(http_response_builder("I is hungry. Post me some stuff.", ...
<commit_before>/* * File: PIDController.cpp * Author: User * * Created on April 22, 2014, 6:28 PM */ #include "PIDController.h" using namespace boost::chrono; PIDController::PIDController(double kp, double ki, double kd) { this->setGains(kp, ki, kd); this->setConstraints(-1, -1); this->init(); } PIDCont...
<commit_before>/* * ==================================================================== * Copyright (c) 2002-2005 The RapidSvn Group. 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 by the ...
<commit_before><commit_msg>added wxFAIL<commit_after><|endoftext|>
<commit_before>/* $Id$ */ // Helper macros can be found in this file // A set of them can be used to connect to proof and execute selectors. TProof* connectProof(const char* proofServer) { TProof* proof = TProof::Open(proofServer); if (!proof) { printf("ERROR: PROOF connection not established.\n"); ret...
<commit_before>// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2021 Intel Corporation. All Rights Reserved. ///////////////////////////////////////////////////////////////////////////// // This set of tests is valid for any device that supports the HDR feature // ///////////////////////////...
<commit_before>#include "ride/quickopendlg.h" #include "ride/wx.h" #include "ride/generated/ui.h" #include <vector> // based on http://docs.wholetomato.com/default.asp?W193 class QuickOpenDlg : public ui::QuickOpen { public: QuickOpenDlg(wxWindow* parent); private: void UpdateFilters(); protected: void OnCan...
<commit_before>#include "number.h" using namespace qReal; Number::Number(QVariant n, Type t): mNumber(n), mType(t) { } Number::Number() : mType(Number::intType), mNumber(0) { } Number::~Number() { } QVariant Number::property(QString name) { if (name.compare("Number") == 0) { return mNumber; }...
<commit_before>/* * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * publish...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2009 Torus Knot Software Ltd Permission is hereby granted, free of charge,...
<commit_before>/* Copyright 2014 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 required by appli...
<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>/* * OXT - OS eXtensions for boosT * Provides important functionality necessary for writing robust server software. * * Copyright (c) 2010-2017 Phusion Holding B.V. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation file...
<commit_before><commit_msg>Only escape double-quotes for ulf files.<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2020 PaddlePaddle 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 applicabl...
<commit_before>//===-- ThreadPlanShouldStopHere.cpp ----------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "ExampleGame/Components/GameScripts/Units/PlayerUnit.h" #include "ExampleGame/Components/Grid/GridCell.h" #include "ExampleGame/Components/Grid/GridManager.h" #include "ExampleGame/Components/Grid/GridNavigator.h" #include "ExampleGame/GameSingletons/GameSingletons.h" #include "ExampleGame/Messa...
<commit_before>#include "list.h" #include "list.cpp" #include "queue.h" #include "queue.cpp" #include "public_queue.h" #include <iostream> #include <cassert> #include <exception> #include <cstdlib> using namespace std; using namespace NP_ADT; //--------------------------------------------------------------------------...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: tolayoutanchoredobjectposition.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: obo $ $Date: 2006-09-16 21:26:37 $ * * The Contents...
<commit_before>// Virvo - Virtual Reality Volume Rendering // Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University // Contact: Jurgen P. Schulze, jschulze@ucsd.edu // // This file is part of Virvo. // // Virvo is free software; you can redistribute it and/or // modify it under the terms of the GN...
<commit_before>// @(#)root/base:$Id$ // Author: Philippe Canal 13/05/2003 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun, Fons Rademakers and al. * * All rights reserved. * * ...
<commit_before>/** * This file is part of stsw_proxy_source, which belongs to StreamSwitch * project. * * Copyright (C) 2014 OpenSight (www.opensight.cn) * * StreamSwitch is an extensible and scalable media stream server for * multi-protocol environment. * * This program is free software: you can redist...
<commit_before>#ifndef __PBF_HPP__ #define __PBF_HPP__ /* * Some parts are from upb - a minimalist implementation of protocol buffers. * * Copyright (c) 2008-2011 Google Inc. See LICENSE for details. * Author: Josh Haberman <jhaberman@gmail.com> */ #include <stdint.h> #include <stdexcept> #include <string> #inc...
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>#include "store.h" #include <QtGui/QGuiApplication> Store::Store(QQuickItem* parent):QQuickItem(parent) { _loaded = false; //_autoLoad = true; //_autoSave = true; _name = ""; QString sub; if(QGuiApplication::organizationName() != "") sub += QGuiApplication::organizat...
<commit_before> #include "utils.h" using namespace Rcpp; using namespace RcppEigen; //port faster cross product RcppExport SEXP crossprodcpp(SEXP X) { using namespace Rcpp; using namespace RcppEigen; try { using Eigen::Map; using Eigen::MatrixXd; using Eigen::Lower; const Eigen::Map<MatrixXd> A...
<commit_before>#include <iostream> #include <string> #include <vector> #include <stdexcept> #include <vexcl/vexcl.hpp> #include <boost/compute.hpp> #include <algorithm> #include <QtGui> #include <QtOpenGL> #include <boost/compute/command_queue.hpp> #include <boost/compute/kernel.hpp> #include <boost/compute/program.h...
<commit_before>/** * MegaMol * Copyright (c) 2021, MegaMol Dev Team * All rights reserved. */ #include "mmcore/utility/platform/RuntimeInfo.h" #include <array> #include <filesystem> #include <sstream> #include <stdexcept> #include <vector> #ifdef _WIN32 #include <windows.h> #include <tlhelp32.h> #include <tchar.h...
<commit_before>#include "model.h" #include "figurepainter.h" #include <string> #include <algorithm> #include <map> double figures::Segment::getApproximateDistanceToBorder(const Point &p) { double res = std::min((p - a).length(), (p - b).length()); // Please note that here we do not care about floatint-point er...
<commit_before>#include "llvm/Reoptimizer/Mapping/FInfo.h" #include "llvm/Pass.h" #include "llvm/Module.h" namespace { class FunctionInfo : public Pass { std::ostream &Out; public: FunctionInfo(std::ostream &out) : Out(out){} const char* getPassName() const{return "Sparc FunctionInfo";} bool run(M...
<commit_before>//--------------------------------------------------------------------*- C++ -*- // CLING - the C++ LLVM-based InterpreterG :) // author: Baozeng Ding <sploving1@gmail.com> // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under t...
<commit_before>#include <limits> #include <stdexcept> //test #include <iostream> #include <fstream> #include <stdlib.h> #include "visual.h" #include "bvh_node.h" BVHNode::BVHNode() { this->left = NULL; this->right = NULL; } BVHNode::~BVHNode() { // TODO } void BVHNode::insert(Mesh const& mesh, std::vector<uns...
<commit_before>#include "main.h" #include "viewer.h" #include "lang_val.h" #include "registry.h" #include "config.h" //#include "control.h" #include "orz/logger.h" #include "ipc_client.h" #include "ipc_server.h" #include <boost/locale.hpp> #include <boost/scoped_array.hpp> #include <wx/app.h> #include <wx/msgdlg.h> #in...
<commit_before>/* Copyright (c) 2016, the Cap authors. * * This file is subject to the Modified BSD License and may not be distributed * without copyright and license information. Please refer to the file LICENSE * for the text and further information on this license. */ #define BOOST_TEST_MODULE ExactTransientSo...
<commit_before>#include "RadioUtils.h" #include <EEPROM.h> #include "../../src/common.h" #include <RF12.h> RadioUtils::RadioUtils(){ dynamicRouting = false; distance = 100; int nodeID = 0; int groupID = 0; int parentID = 0; } void RadioUtils::initialize(){ nodeID = EEPROM.read(NODE_ID_LOCATI...
<commit_before>#include <turbodbc/time_helpers.h> #include <sql.h> #include <boost/date_time/gregorian/gregorian_types.hpp> #include <boost/date_time/posix_time/posix_time_types.hpp> namespace turbodbc { boost::posix_time::ptime const timestamp_epoch({1970, 1, 1}, {0, 0, 0, 0}); int64_t timestamp_to_micros...
<commit_before>//===-- X86JITInfo.cpp - Implement the JIT interfaces for the X86 target --===// // // 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>// wandurr1.cpp - game of wandering around doing stuff written in c++/ncurses hurr durr // copyright 2017 inhabited.systems // This program is covered by the MIT License. // See the file LICENSE included with this distribution for terms. // see the file README.md for more information, including how to c...
<commit_before>#include "photoeffects.hpp" #include "test_utils.hpp" #include <gtest/gtest.h> using namespace cv; TEST(photoeffects, FadeColorInvalidImageFormat) { Mat src(10, 20, CV_8UC2); Mat dst; EXPECT_ERROR(CV_StsAssert, fadeColor(src, dst, Point(5, 5), Point(5, 10))); } TEST(photoeffects, FadeColor...
<commit_before>// fmfrecord.cpp : Defines the entry point for the console application. // #include "stdafx.h" using namespace std; using namespace FlyCapture2; using namespace cv; int _tmain(int argc, _TCHAR* argv[]) { int imageWidth = 1280, imageHeight = 1024; BusManager busMgr; unsigned int numCameras; PGRGui...
<commit_before>//===- DCE.cpp - Code to perform dead code elimination --------------------===// // // This file implements dead code elimination and basic block merging. // // Specifically, this: // * removes definitions with no uses (including unused constants) // * removes basic blocks with no predecessors // *...
<commit_before>/* * Copyright (C) 2009 The Android Open Source Project * * 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 ...
<commit_before>#define DEBUG_TYPE "dyn-aa" #include <string> #include <fstream> #include "llvm/Module.h" #include "llvm/Pass.h" #include "llvm/ADT/Statistic.h" #include "llvm/Analysis/CallGraph.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/CommandLine.h" #include "rcs/typedefs.h" #include "rcs/IDAs...
<commit_before>// symbiosis: A framework for toy compilers // #include "symbiosis.hpp" #include <sys/stat.h> #include <iostream> #include <vector> #include "cpu_defines.hpp" using namespace std; namespace symbiosis { void dump(uchar* start, size_t s) { for (size_t i = 0; i < s; i++) { printf("%02x ", ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dbtreeview.cxx,v $ * * $Revision: 1.19 $ * * last change: $Author: rt $ $Date: 2005-09-08 14:27:29 $ * * The Contents of this file are ma...
<commit_before>#include <iostream> #include <string> #include <fstream> #include <sstream> #include <glm/vec3.hpp> #include <map> #include "box.hpp" #include "sdfloader.hpp" #include "scene.hpp" #include "material.hpp" #include "camera.hpp" #include "color.hpp" #include "sphere.hpp" Sdfloader::Sdfloader() : file_{...
<commit_before>#ifndef SDF_LOADER_HPP #define SDF_LOADER_HPP #include <iostream> #include <fstream> #include <string> #include <vector> #include "material.hpp" struct SDFloader { SDFloader() : {}; void sdfLoad(std::string const& inputFile) { std::fstream input; input.open(inputFile); if(input.is_open()) ...
<commit_before>//===-------------- AliasAnalysis.cpp - SIL Alias Analysis ----------------===// // // 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>/* nsjail ----------------------------------------- Copyright 2014 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://ww...
<commit_before>#include "module.h" // PUT #include <specialized/osdetect.h> #include <cxxutils/posix_helpers.h> #if defined(__linux__) && KERNEL_VERSION_CODE >= KERNEL_VERSION(2,2,0) // Linux 2.2+ // See also: https://www.systutorials.com/docs/linux/man/2-create_module/ // See also: https://www.systutorials.com/docs...
<commit_before>//===-- MipsTargetMachine.cpp - Define TargetMachine for Mips -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/** MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight Project home: https://github.com/puuu/MQTT433gateway/ The MIT License (MIT) Copyright (c) 2017 Jan Losinski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated do...
<commit_before>//===------------------------- MemLocation.cpp ----------------------------===// // // 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>/* Copyright (c) 2006 - 2007 Volker Krause <vkrause@kde.org> 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, or (at your op...
<commit_before>/* ----------------------------------------------------------------------------- Copyright 2017 Google 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/...
<commit_before>//===-- Function.cpp - Implement the Global object classes ----------------===// // // 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>//===-- Metadata.cpp - Implement Metadata classes -------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision: $ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MIT...
<commit_before>//===- lib/ReaderWriter/FileArchive.cpp -----------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>// // main.cpp // ResumeBuilder // // Created by Terry Black on 9/17/15. #include <iostream> using namespace std; int numOfGoals; int numOfSkills; int numOfAwards; int numOfJobs; int numOfDegrees; string age; string phoneNumber; string schoolName; string major; string concentration; string minor; ...
<commit_before>//===- lib/ReaderWriter/FileArchive.cpp -----------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium 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 (a...
<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> #include "Base.h" #include "Game.h" #include "ScriptController.h" namespace gameplay { Logger::State Logger::_state[3]; Logger::State::State() : logFunctionC(NULL), logFunctionLua(NULL), enabled(true) { } Logger::Logger() { } Logger::~Logger() { } void Logger::log(Level level, const char* message,...
<commit_before><commit_msg>Temporary fix for a crash when going offline<commit_after><|endoftext|>
<commit_before><commit_msg>remove unnecessary german comment<commit_after><|endoftext|>
<commit_before>// // Copyright (C) 2007 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agreement. // // Copyright (C) 2007 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // $$ /////////////////////////////////////////////////////////////////////////////// // Author: Dan Petrie <dpet...
<commit_before> /* Z80 Machine Emulation Module for Python. https://github.com/kosarev/z80 Copyright (C) 2019 Ivan Kosarev. ivan@kosarev.info Published under the MIT license. */ #include <Python.h> #include <algorithm> #include <cstring> #include <new> #include "../z80.h" namespace { using z80::...
<commit_before>// // This sample demonstrates the VboMesh class by creating a simple Plane mesh with a texture mapped onto it. // The mesh has static indices and texture coordinates, but its vertex positions are dynamic. // #include "cinder/app/App.h" #include "cinder/app/RendererGl.h" #include "cinder/gl/gl.h" #inclu...
<commit_before>/* * * Author: Jeffrey Leung * Last edited: 2015-09-17 * * This header files contains enums necessary to create and navigate a Room. * */ #pragma once enum class Direction { kNone, kNorth, kEast, kSouth, kWest, }; enum class RoomBorder { kWall, kRoom, kExit, }; enum class Inhab...
<commit_before>#include "parse.h" #include "lit.h" #include "lex.h" #include "expr.h" #include "token.h" #include "util.h" #include "var.h" #include "codegen.h" #include "exprtype.h" #include "func.h" AST *Parser::make_break() { if(tok.skip("break")) return new BreakAST(); return NULL; } AST *Parser::make_return() ...
<commit_before>#include "md_parser.hpp" #include "text_line_element.hpp" #include "text_paragraph.hpp" #include "title1_paragraph.hpp" #include "title2_paragraph.hpp" #include "ulist1_paragraph.hpp" using namespace std; namespace { bool string_has_only(const std::string & s, const char & c) { return (s.find_first_...
<commit_before>#include "nil.h" #include "nilUtil.h" #include <math.h> HANDLE stopEvent = NULL; // Cosine wave table for color cycling; not really needed for anything BYTE costable[256]={ 0,0,0,0,0,0,0,0,0,1,1,1,2,2,2,3, 3,4,4,5,5,6,7,7,8,9,9,10,11,12,13,13, 14,15,16,17,18,19,20,21,22,23,24,25,26,27,2...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/* * helpers.c - Helper methods for the gateway * CSC 652 - 2014 */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <netinet/in.h> #include <sys/socket.h> #include "gateway.hpp" #include "helpers.hpp" /* * This method creates an appropria...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fuconcustomshape.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: kz $ $Date: 2007-05-10 16:56:57 $ * * The Contents of this file ...
<commit_before>/************************************************************************* * * $RCSfile: autofmt.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2004-06-04 11:30:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * $RCSfile: docfunc.hxx,v $ * * $Revision: 1.9 $ * * last change: $Author: obo $ $Date: 2004-06-04 11:31:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: namedlg.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-08 21:38:57 $ * * The Contents of this file are made a...
<commit_before>#pragma ident "$Id$" //============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk 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>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/hwpf/fapi2/include/error_info_defs.H $ ...
<commit_before>/* kopeteemoticons.cpp - Kopete Preferences Container-Class Copyright (c) 2002 by Stefan Gehn <metz AT gehn.net> Copyright (c) 2002 by Olivier Goffart <ogoffart@tiscalinet.be> Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org> *****...
<commit_before>#pragma once /* * Author(s): * - Cedric Gestes <gestes@aldebaran-robotics.com> * - Chris Kilner <ckilner@aldebaran-robotics.com> * * Copyright (C) 2010 Aldebaran Robotics */ #ifndef _QIMESSAGING_MASTER_HPP_ #define _QIMESSAGING_MASTER_HPP_ #include <string> #include <boost/scoped_ptr.hpp> #includ...
<commit_before>// XAST Packer by yosh778 #include <string> #include <iostream> #include <algorithm> #include <fstream> #include <cinttypes> #include <boost/filesystem.hpp> #define ALIGN_16(n) ((n / 0x10 + (n % 0x10 ? 1 : 0)) * 0x10) #define RBUF_SIZE 0x1000000 using namespace boost::filesystem; void write32(std::f...
<commit_before>/* * Jamoma Asynchronous Object Graph Layer * Creates a wrapper for TTObjects that can be used to build a control graph for asynchronous message passing. * Copyright © 2010, Timothy Place * * License: This code is licensed under the terms of the "New BSD License" * http://creativecommons.org/lice...
<commit_before> #include <togo/core/error/assert.hpp> #include <togo/core/utility/utility.hpp> #include <togo/core/log/log.hpp> #include <togo/core/collection/array.hpp> #include <togo/core/string/string.hpp> #include <togo/core/io/memory_stream.hpp> #include <quanta/core/object/object.hpp> #include <togo/support/tes...
<commit_before>/* Copyright 2015 Stanford University, NVIDIA Corporation * * 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 ...