text
stringlengths
54
60.6k
<commit_before> #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <sys/wait.h> #include <fcntl.h> #include <string> #include <vector> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include "sandbox.h" using namespace std; static const uint...
<commit_before>// // 1770.cpp // Clock Signal // // Created by Thomas Harte on 17/09/2016. // Copyright © 2016 Thomas Harte. All rights reserved. // #include "1770.hpp" #include "../../Storage/Disk/Encodings/MFM.hpp" using namespace WD; WD1770::WD1770() : Storage::Disk::Drive(8000000, 1, 300), status_(0), int...
<commit_before>/** * Process control - running other tasks and manipulating their input/output */ #include <v8.h> #include <string> #include "macros.h" #include "common.h" #include <stdlib.h> #include <paths.h> // for _PATH_BSHELL namespace { JS_METHOD(_process) { ASSERT_CONSTRUCTOR; SAVE_PTR(0, NULL); return ...
<commit_before>// // 6850.cpp // Clock Signal // // Created by Thomas Harte on 10/10/2019. // Copyright © 2019 Thomas Harte. All rights reserved. // #include "6850.hpp" #include <cassert> using namespace Motorola::ACIA; const HalfCycles ACIA::SameAsTransmit; ACIA::ACIA(HalfCycles transmit_clock_rate, HalfCycle...
<commit_before>/************************************************************************** * Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#include "qmtopology.h" #include "qmnblist.h" QMTopology::QMTopology() {} QMTopology::~QMTopology() {} void QMTopology::Initialize(Topology& cg_top) { CopyTopologyData(&cg_top); this->InitChargeUnits(); } void QMTopology::Cleanup() { vector<CrgUnit *>::iterator iter; for(iter=_crguni...
<commit_before>#include <AnimationComponent.hpp> #include <queue> #include <iostream> #include <assimp/scene.h> #include <Core/Containers/AlignedStdVector.hpp> #include <Core/Utils/Graph/AdjacencyListOperation.hpp> #include <Core/Animation/Pose/Pose.hpp> #include <Core/Animation/Handle/HandleWeightOperation.hpp> #in...
<commit_before>#ifndef ANIMPLUGIN_ANIMATION_COMPONENT_HPP_ #define ANIMPLUGIN_ANIMATION_COMPONENT_HPP_ #include <AnimationPluginMacros.hpp> #include <Core/Animation/Animation.hpp> #include <Core/Animation/Handle/Skeleton.hpp> #include <Core/Animation/Handle/HandleWeight.hpp> #include <Core/Animation/Pose/Pose.hpp> #i...
<commit_before>/*------------------------------------------------------------------------ * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2019 Google LLC * Copyright (c) 2019 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this...
<commit_before>#include "KAI/KAI.h" #include <iostream> #include <strstream> #include <stdarg.h> #include "KAI/Translator/Lexer.h" using namespace std; KAI_BEGIN Lexer::Lexer(const char *in) : input(in) { CreateLines(); AddKeywords(); Run(); } void Lexer::AddKeywords() { keyWords["if"] = Token::If; keyWords...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011-2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=================================...
<commit_before>/* -*- 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>/************************************************************************* * * $RCSfile: drviewsh.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: aw $ $Date: 2002-04-12 12:44:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/*************************************************************************** * Copyright (C) 2005-2007 by the FIFE Team * * [email protected] * * This file is part of FIFE. ...
<commit_before>// Ouzel by Elviss Strazdins #ifndef OUZEL_GRAPHICS_OGLPROCEDUREGETTER_HPP #define OUZEL_GRAPHICS_OGLPROCEDUREGETTER_HPP #include "../../core/Setup.h" #if OUZEL_COMPILE_OPENGL #include <algorithm> #include <stdexcept> #include "OGL.h" #if OUZEL_OPENGLES # include "GLES/gl.h" # include "GLES2/gl2....
<commit_before>#include "multiverso/server.h" #include <algorithm> #include <sstream> #include <string> #include <vector> #include "multiverso/actor.h" #include "multiverso/dashboard.h" #include "multiverso/multiverso.h" #include "multiverso/table_interface.h" #include "multiverso/io/io.h" #include "multiverso/util/c...
<commit_before>// Copyright (c) 2019, 2021 by Robert Bosch GmbH. All rights reserved. // Copyright (c) 2021 by Apex.AI 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 Licen...
<commit_before>/* based on http://www.boost.org/doc/libs/1_61_0/doc/html/boost_asio/example/cpp03/echo/blocking_tcp_echo_client.cpp */ #include <iostream> #include <boost/asio.hpp> #include "../HttpParser.hpp" using boost::asio::ip::tcp; using namespace http; int main(int argc, char* argv[]) { try { if (argc != 2...
<commit_before>#include "selfdrive/ui/qt/setup/setup.h" #include <cstdio> #include <cstdlib> #include <sstream> #include <QApplication> #include <QLabel> #include <QVBoxLayout> #include <curl/curl.h> #include "selfdrive/hardware/hw.h" #include "selfdrive/ui/qt/api.h" #include "selfdrive/ui/qt/qt_window.h" #include ...
<commit_before>/* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2021 Filipe Coelho <[email protected]> * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this * permission notice appear ...
<commit_before><commit_msg>tentatively kill crawlers explicitly (find a better solution via SG_proc). Don't cancel the crawl thread; let it exit on its own.<commit_after><|endoftext|>
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2010 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>#include <iostream> #include <fstream> #include <string> #include <conio.h> #include <math.h> #include <random> #include <winsock2.h> #include <ws2tcpip.h> #include "CPositionSensor.h" #include "CCrazyflie.h" #include "CPositionControllerSimple.h" #include "clockgettime.h" #include "CLogs.h" #define ...
<commit_before>/* * Copyright (c) 2003-2005 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 c...
<commit_before>#include "gameitem.h" #include <QGraphicsScene> GameItem::GameItem(QObject *parent) : QObject(parent) { } QPointF GameItem::tryMove(const QPointF &requestedPosition, QLineF *collidedLine, QGraphicsItem **collidedItem) const { QLineF movementPath(pos(), requestedPosition)...
<commit_before>/* OpenHoW * Copyright (C) 2017-2019 Mark Sowden <[email protected]> * * This program 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 License, or * (at your optio...
<commit_before>// Copyright 2019 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law ...
<commit_before>#include "file.h" #include "string.h" #include <algorithm> #include <cstdio> #include <cstring> #include <fstream> #include <memory> #include <stdexcept> #include <string> #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) #define PLATFORM_WINDOWS #endif #ifdef PLATFORM_W...
<commit_before>//===-- LLVMTargetMachine.cpp - Implement the LLVMTargetMachine class -----===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of mcompositor. ** ** If you have questions regarding the...
<commit_before>#include "GramsDisplay.h" GramsDisplay::GramsDisplay(uint8_t pin_clk, uint8_t pin_dio) : SevenSegmentTM1637(pin_clk, pin_dio) { init(); setBacklight(100); } void GramsDisplay::display(float grams) { if (tooLargeToDisplay(grams)) print("----"); else printGrams(grams);...
<commit_before>#include "download.h" Download *Download::self = 0; Download *Download::instance() { if(!self) self = new Download(); return self; } QString Download::getError() { return error; } void Download::onTimer() { if (isReady) { if (!queue -> isEmpty()) { isReady ...
<commit_before>/** ** \file object/system-class.cc ** \brief Creation of the URBI object system. */ //#define ENABLE_DEBUG_TRACES #include <libport/compiler.hh> #include "parser/uparser.hh" #include "kernel/userver.hh" #include "kernel/uconnection.hh" #include "runner/runner.hh" #include "object/alien.hh" #inclu...
<commit_before>#include <QDebug> #include "tangramwidget.h" #include <tangram.h> #include <curl/curl.h> #include <cstdlib> #include <QOpenGLContext> #include <QOpenGLFunctions> #include "platform_qt.h" #include <GL/gl.h> #include <GL/glx.h> #include <QRunnable> PFNGLBINDVERTEXARRAYPROC glBindVertexArrayOESEXT = 0; PF...
<commit_before>//****************************************************************************************************** // CompactMeasurementParser.cpp - Gbtc // // Copyright 2018, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor lice...
<commit_before>// A C++ Program to generate test cases for // an unweighted tree #include<bits/stdc++.h> using namespace std; // Define the number of runs for the test data // generated #define RUN 10000 // Define the maximum number of nodes of the tree #define MAXNODE 100 int main() { set<pair<int, i...
<commit_before>#include "./qimage_drawer.h" #include <QPainter> #include <vector> namespace Graphics { QImageDrawer::QImageDrawer(int width, int height) { image = std::make_shared<QImage>(width, height, QImage::Format_Grayscale8); } void drawPolygon(QPainter &painter, std::vector<QPointF> &points) { if (points.s...
<commit_before>/// /// @file l1d_cache_size.cpp /// @brief Get the L1 cache size in kilobytes on Windows /// and most Unix-like operating systems. /// /// Copyright (C) 2015 Kim Walisch, <[email protected]> /// /// This file is distributed under the BSD License. /// #include <cstdlib> #if defined(_WIN3...
<commit_before>/* * * $Id$ * * History: * * Bernd Wuebben, [email protected]: * * Much of this is taken from the pppd sources in particular * /pppstat/pppstat.c, and modified to suit the needs of kppp. * * * Here the original history of pppstat.c: * * [email protected]: Added compression statist...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>/* * ProbeActivityLinear.cpp * * Created on: Mar 7, 2009 * Author: rasmussn */ #include "LinearActivityProbe.hpp" namespace PV { /** * @hc * @dim * @kLoc * @f */ LinearActivityProbe::LinearActivityProbe(HyPerCol * hc, PVDimType dim, int linePos, int f) : PVLayerProbe() { this->pa...
<commit_before>/* * this file is part of the oxygen gtk engine * Copyright (c) 2010 Hugo Pereira Da Costa <[email protected]> * Copyright (c) 2010 Ruslan Kabatsayev <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General...
<commit_before>/** Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License */ #include "pathOrderOptimizer.h" #include "utils/logoutput.h" #include "utils/BucketGrid2D.h" #define INLINE static inline namespace cura { /** * */ void PathOrderOptimizer::optimize() { bool picked[polygons.size()];...
<commit_before>#include "interface/usb.h" #include "util/bytebuffer.h" #include "util/log.h" #include "gpio.h" #ifdef CHIPKIT #define USB_VBUS_ANALOG_INPUT A0 #endif #define USB_HANDLE_MAX_WAIT_COUNT 35000 namespace gpio = openxc::gpio; using openxc::util::log::debug; using openxc::interface::usb::UsbDevice; usin...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2017 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
<commit_before><commit_msg>Fix comment.<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2006, Arvid Norberg & Daniel Wallin 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, th...
<commit_before>#include "balancer.hpp" #include <net/tcp/stream.hpp> #define READQ_PER_CLIENT 4096 #define MAX_READQ_PER_NODE 8192 #define READQ_FOR_NODES 8192 #define MAX_OUTGOING_ATTEMPTS 100 // checking if nodes are dead or not #define ACTIVE_INITIAL_PERIOD 8s #define ACTIVE_CHECK_PERIOD ...
<commit_before>/* * Copyright (C) 2008-2014 The Communi Project * * This program 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 2 of the License, or * (at your option) any later version. * * Th...
<commit_before>#ifndef _prusaslicer_technologies_h_ #define _prusaslicer_technologies_h_ //============= // debug techs //============= // Shows camera target in the 3D scene #define ENABLE_SHOW_CAMERA_TARGET 0 // Log debug messages to console when changing selection #define ENABLE_SELECTION_DEBUG_OUTPUT 0 // Renders ...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/************************************************************************** * * Copyright 2011 Jose Fonseca * Copyright (C) 2013 Intel Corporation. All rights reversed. * Author: Shuang He <[email protected]> * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person ...
<commit_before>/* This file is part of khmer, https://github.com/dib-lab/khmer/, and is Copyright (C) 2010-2015, Michigan State University. Copyright (C) 2015-2016, The Regents of the University of California. Redistribution and use in source and binary forms, with or without modification, are permitted provided that ...
<commit_before><commit_msg>DDF don't overwrite legacy values with default value if already set<commit_after><|endoftext|>
<commit_before>// Copyright 2013, Kay Hayen, mailto:[email protected] // // Part of "Nuitka", an optimizing Python compiler that is compatible and // integrates with CPython, but also works on its own. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this fi...
<commit_before>#ifndef K3_RUNTIME_BASESTRING_H #define K3_RUNTIME_BASESTRING_H #include <cstring> #include <memory> #include <vector> #include "yaml-cpp/yaml.h" #include "rapidjson/document.h" #include "boost/serialization/array.hpp" #include "boost/functional/hash.hpp" #include "Common.hpp" #include "dataspace/Dat...
<commit_before>//===--- RequirementEnvironment.cpp - Requirement Environments ------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>#include <string> #include <vector> #include <boost/tokenizer.hpp> #include <iostream> #include <stdlib.h> #include <cstdio> #include <sys/wait.h> using namespace boost; using namespace std; class rshell{ protected: //Data Members string commands; string nextConnector; vector<string> commandli...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestMultiTexturing.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>/* * Copyright (C) 2018-present ScyllaDB */ /* * This file is part of Scylla. * * Scylla 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 License, or * (at...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "EC_Sound.h" #include "IModule.h" #include "Framework.h" #include "Entity.h" #include "Audio.h" #include "AssetAPI.h" #include "EC_Placeable.h" #include "EC_So...
<commit_before>#include <iostream> #if !defined(NOMINMAX) #define NOMINMAX // fckng Windows #endif #include "vtrc-client/vtrc-client.h" #include "vtrc-common/vtrc-thread-pool.h" #include "vtrc-common/vtrc-stub-wrapper.h" #include "vtrc-common/vtrc-random-device.h" #include "protocol/hello.pb.h" #include "boost/lexi...
<commit_before>/* * ALURE OpenAL utility library * Copyright (c) 2009 by Chris Robinson. * * 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 limita...
<commit_before>#include<iostream> #include<string.h> #include<string> #include<vector> #include<sys/types.h> #include<sys/wait.h> #include<stdio.h> #include<unistd.h> #include<stdlib.h> #include<cstring> #include<boost/tokenizer.hpp> #include<algorithm> #include<iterator> #include<sstream> using namespace std; using ...
<commit_before>/* *********************************************************************************************************************** * * Copyright (c) 2016-2021 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this soft...
<commit_before>// largest_palindrome_product.cpp : algorithm to find the largest palindrome product // // Copyright (C) 2017-2020 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include <iostream> #include <universal/integer...
<commit_before>#include<iostream> #include<string.h> #include<string> #include<vector> #include<sys/types.h> #include<sys/wait.h> #include<sys/stat.h> #include<stdio.h> #include<unistd.h> #include<stdlib.h> #include<cstring> #include<algorithm> #include<iterator> #include<sstream> using namespace std; bool run_test(...
<commit_before>// Time: O(1), per operation. // Space: O(k), k is the capacity of cache. class LFUCache { public: LFUCache(int capacity) : capa_(capacity), size_(0) { } int get(int key) { if (!key_to_val_freq_.count(key)) { return -1; } freq_to_keys_[key_t...
<commit_before>#include "MpptUnit.h" MpptUnit::MpptUnit() : mpptStatus_(0) , arrayVoltage_(0) , arrayCurrent_(0) , batteryVoltage_(0) , temperature_(0) { // Initialize to 0 } MpptUnit::~MpptUnit() { } /* MpptUnit Gets */ unsigned char MpptUnit::getMpptStatus() const { return mpptStatus_;...
<commit_before>#include <string> #include <vector> #include <boost/tokenizer.hpp> #include <iostream> #include <stdlib.h> #include <cstdio> #include <sys/wait.h> using namespace boost; using namespace std; class rshell{ protected: //Variables string commands; string nextConnector; vector<string>...
<commit_before>#include "WebSystemController.h" #include "Overlay.h" #include "Crawl.h" #pragma mark – Life Cycle void WebSystemController::init() { // Connect the websystem connection.setHost("projectvictory.hostfile", 80); // Set up listeners connection.addHashTagCountListener(this, &WebSystemContro...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id: ValuePrinter.cpp 46307 2012-10-04 06:53:23Z axel $ // author: Axel Naumann <[email protected]> //--------------------------------------------------------------------...
<commit_before>#include <memory> #include <algorithm> #include <iterator> #include <unordered_set> #include <unordered_map> #include "s_rules.hh" #include "s_closure.hh" #include "cons_util.hh" #include "env.hh" #include "zs_error.hh" #include "builtin_equal.hh" #include "builtin_extra.hh" #include "builtin_util.hh" #...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// Copyright 2018 Ulf Adams // // The contents of this file may be used under the terms of the Apache License, // Version 2.0. // // (See accompanying file LICENSE-Apache or copy at // http://www.apache.org/licenses/LICENSE-2.0) // // Alternatively, the contents of this file may be used under the ...
<commit_before>#include "isect2d.h" #include "vec2.h" #include <iostream> #include <cmath> #include <vector> #include <memory> #include <random> #include <stack> #include <GLFW/glfw3.h> #include "../../tangram-es/core/include/glm/glm/glm.hpp" //#include "../../tangram-es/core/include/glm/glm/gtx/norm.hpp" #include "g...
<commit_before>#include "../uuidxx.h" #include <string> #include <iostream> #include <set> #include <array> #include <string.h> using namespace uuidxx; using namespace std; template<class T, class... Tail> auto make_array(T head, Tail... tail) -> std::array<T, 1 + sizeof...(Tail)> { std::array<T, 1 + sizeof...(T...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <[email protected]> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include "schemas....
<commit_before>/* C++ interface test */ #include "libmemcached/memcached.hh" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <time.h> #include "server.h" #include "test.h" #include <string...
<commit_before>#include <cstdio> #include <fcntl.h> #include <termios.h> #include <unistd.h> #include "filefinder.h" #include "options.h" #include "query_string.h" #include "terminal.h" std::vector<node> files; std::vector<node> search(query_string qstr){ std::vector<node> result; std::string str(qstr.get_str(...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ldapaccess.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: ihi $ $Date: 2008-01-14 14:40:59 $ * * The Contents of this file are ma...
<commit_before>/****************************************************************************** * IMU_Functions.cpp * * Runs initialization and reads files on the BNO055 IMU ******************************************************************************/ #include "Mapper.h" /********************************************...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date: 2010-12-02 14:54:03 +0100 (Do, 2 Dec 2010) $ Version: $Revision: 21147 $ Copyright (c) German Cancer Research Center, Division of Medical and B...
<commit_before>//===-- ARMTargetMachine.cpp - Define TargetMachine for ARM ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* * Copyright (c) 2013-2014 ARM Limited * All rights reserved. * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implem...
<commit_before>// ============================================================ // Example: LCDML: graphic display with u8g // ============================================================ // Author: Jomelo // Last update: 21.01.2018 // License: MIT // ========================================================...
<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 i...
<commit_before>//===- PowerPCSubtarget.cpp - PPC Subtarget Information ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Nate Begeman and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===------...
<commit_before>/* * Copyright (c) 2011 James Peach * * 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 app...
<commit_before>#pragma once #include <charconv> #include <cstdint> #include <optional> #include <string> namespace fly::detail { /** * Helper struct to convert a std::string to a plain-old-data type, e.g. int or float. * * Ideally, this entire helper can be removed when the STL supports floating point types with ...
<commit_before>/************************************************************************* * * $RCSfile: toolboxdocumenthandler.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: kz $ $Date: 2004-02-25 17:41:31 $ * * The Contents of this file are made available subject to the terms of * either of the f...
<commit_before>// Tetris3D.cpp : Defines the entry point for the application. // #include "stdafx.hpp" #include "Tetris3D.hpp" inline void Tetris3D::SetWindowIcon() { #ifdef SFML_SYSTEM_WINDOWS HINSTANCE hinst = (HINSTANCE)GetModuleHandle(NULL); HICON IconBig = (HICON)LoadImage(hinst, MAKEINTRESOURCE(IDI_TETRIS3D...
<commit_before>/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #include <map> #include <qi/atomic.hpp> #include <boost/thread/recursive_mutex.hpp> #include <boost/make_shared.hpp> #include <qitype/signal.hpp> #include <qitype/genericvalue.hpp> #include <qitype/genericobject.hpp> #incl...