text
stringlengths
54
60.6k
<commit_before>#include "TargetDetector.hpp" #include "Target.hpp" #include <iostream> //public methods TargetDetector::TargetDetector() { //do derpy things } Target* TargetDetector::processImage(Mat input, bool tar) { GaussianBlur(input,input,Size(3,3),1,1); input = canny(thresholdImage(input,53,58,0,255...
<commit_before>// Filename: objToEggConverter.cxx // Created by: drose (07Dec10) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD /...
<commit_before>#include "testing/testing.hpp" #include "search/search_tests_support/helpers.hpp" #include "search/search_tests_support/test_results_matching.hpp" #include "generator/generator_tests_support/test_feature.hpp" #include "generator/generator_tests_support/test_mwm_builder.hpp" #include <utility> #include...
<commit_before>// // main.cpp // CppTestArena // // Created by Brandon Stansbury on 6/21/15. // Copyright (c) 2015 Brandon Stansbury. All rights reserved. // #include <iostream> #include "LibThing.h" int main(int argc, const char *argv[]) { // insert code here... std::cout << "Hello, World!\n"; c...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sdgrffilter.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-09 02:59:56 $ * * The Contents of this file are ma...
<commit_before>#pragma once #include "coding/geometry_coding.hpp" #include "coding/point_coding.hpp" #include <cstdint> namespace search { static const uint8_t kCategoriesLang = 128; static const uint8_t kPostcodesLang = 129; } // namespace search <commit_msg>[search] Remove unnecessary includes.<commit_after>#prag...
<commit_before>/*************************************************************************** wppreferences.cpp - description ------------------- begin : Fri Apr 26 2002 copyright : (C) 2003 by Gav Wood email : g...
<commit_before>/* Copyright (C) 2011 Lasath Fernando <kde@lasath.org> Copyright (C) 2013 Lasath Fernando <davidedmundson@kde.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 Foun...
<commit_before>// @(#)root/reflex:$Name: $:$Id: FunctionMemberTemplateInstance.cxx,v 1.12 2006/08/11 06:31:59 roiser Exp $ // Author: Stefan Roiser 2004 // Copyright CERN, CH-1211 Geneva 23, 2004-2006, All rights reserved. // // Permission to use, copy, modify, and distribute this software for any // purpose is hereb...
<commit_before>#include "newgraphdialog.h" #include "ui_newgraphdialog.h" #include <QColorDialog> #include "utility.h" NewGraphDialog::NewGraphDialog(DBCHandler *handler, QWidget *parent) : QDialog(parent), ui(new Ui::NewGraphDialog) { ui->setupUi(this); dbcHandler = handler; connect(ui->colorSwa...
<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 "chrome/browser/gtk/extension_popup_gtk.h" #include <gtk/gtk.h> #include "app/l10n_util.h" #include "chrome/browser/browser....
<commit_before>#include <cstdio> #include <cstdlib> #include <cassert> #include <ui/DisplayInfo.h> #include <gui/ISurfaceComposer.h> #include <gui/Surface.h> #include <gui/SurfaceComposerClient.h> #include <GLES2/gl2.h> #include <EGL/eglext.h> #define BACKLIGHT_CONTROL "/sys/class/leds/lcd-backlight/brightness" #d...
<commit_before>/* * Accounts model item, represents an account in the contactlist tree * This file is based on TelepathyQtYell Models * * Copyright (C) 2010 Collabora Ltd. <info@collabora.co.uk> * Copyright (C) 2011 Martin Klapetek <martin dot klapetek at gmail dot com> * * This library is free software; you can...
<commit_before>// // Copyright (c) 2002-2010 The ANGLE 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. // // // Symbol table for parsing. Most functionaliy and main ideas // are documented in the header file. // #include "S...
<commit_before><commit_msg>When we upgrade, discard all uploadable stats, including old logs<commit_after><|endoftext|>
<commit_before>/************************************************************************ filename: WLTitlebar.cpp created: 8/8/2004 author: Paul D Turner *************************************************************************/ /************************************************************************* Crazy E...
<commit_before>#include <Poco/Exception.h> #include <Poco/Timestamp.h> #include <Poco/Data/Statement.h> #include <Poco/Data/RecordSet.h> #include <Poco/Data/Row.h> #include <Poco/Data/RowIterator.h> #include "di/Injectable.h" #include "model/Device.h" #include "model/ModuleInfo.h" #include "model/ModuleValue.h" #inclu...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen 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>#include "communicator.h" #include "sermanwindow.h" #include <QHostAddress> #include <QtNetwork> #include <iostream> Communicator::Communicator(QObject *parent) : QObject(parent) { QObject::connect(&client, QOverload<QAbstractSocket::SocketError>::of( &QAbstractSocket::...
<commit_before>#include "IncompleteCholeskyPreconditioner.h" #include <sofa/core/ObjectFactory.h> namespace sofa { namespace component { namespace linearsolver { SOFA_DECL_CLASS(IncompleteCholeskyPreconditioner) int IncompleteCholeskyPreconditionerClass = core::RegisterObject("Incomplete Cholesky preconditioner")....
<commit_before>#include "ex14_16_StrBlob.h" #include <iostream> int main() { StrBlob sb{ "Hello", "World", "Pezy" }; for (ConstStrBlobPtr iter = sb.cbegin(); iter != sb.cend(); iter.incr()) { std::cout << iter.deref() << " "; } std::cout << std::endl; } <commit_msg>Update ex14_16_StrBlobTest.cpp<commit_after>#i...
<commit_before>#include "Common.hpp" #include "GetOpt.hpp" #include "util/StringUtil.hpp" #include "ZCMGen.hpp" #include "Emitter.hpp" void setupOptionsNode(GetOpt& gopt) { } static string dimSizeAccessor(const string& dimSize) { assert(dimSize.size() > 0); char c = dimSize[0]; if ('0' <= c && c <= '9') ...
<commit_before>void MakeGRPRecoParam(AliRecoParam::EventSpecie_t default=AliRecoParam::kLowMult) { //======================================================================== // // Steering macro for GRP reconstruction parameters // // //======================================================================== const ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: remote_bridge.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: rt $ $Date: 2005-09-09 05:22:24 $ * * The Contents of this file are ...
<commit_before>/************************************************************************** * newbucket.hxx -- new bucket routines for better world modeling * * Written by Curtis L. Olson, started February 1999. * * Copyright (C) 1999 Curtis L. Olson - curt@flightgear.org * * This program is free software; you c...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 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 "LightsParser.h" #include <ospray_cpp/Data.h> #include <vector> #include <common/FileName.h> #include <common/miniSG/miniSG.h> using namespace ospcommon; OSPTexture2D createTexture2D(ospray::miniSG::Texture2D *msgTex) { if(msgTex == NULL) { static int numWarnings = 0; if (...
<commit_before>#ifndef BULL_CORE_PATTERN_NONCOPYABLE_HPP #define BULL_CORE_PATTERN_NONCOPYABLE_HPP #include <Bull/Core/Export.hpp> namespace Bull { struct BULL_CORE_API NonCopyable { /*! \brief Default constructor * */ NonCopyable() = default; /*! \brief Copy constru...
<commit_before>#ifndef RENDERTARGETBASE_HPP #define RENDERTARGETBASE_HPP #include <set> #include <map> #include <vector> #include <VBE/config.hpp> #include <VBE/graphics/OpenGL.hpp> #include <VBE/graphics/Texture2D.hpp> #include <VBE/graphics/Texture2DArray.hpp> #include <VBE/graphics/RenderBuffer.hpp> #include <VBE/...
<commit_before><commit_msg>Added UFO Manipulator to Viewer<commit_after><|endoftext|>
<commit_before>#ifndef GAMELIB_LIFETIMETRACKER_HPP #define GAMELIB_LIFETIMETRACKER_HPP #include "gamelib/utils/SlotMap.hpp" namespace gamelib { typedef SlotKeyShort LifetimeHandle; class LifetimeTrackerManager { public: LifetimeTrackerManager(); static auto add(void* ptr)...
<commit_before>/* Copyright (c) 2007, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>// Copyright (c) 2013 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 <stdio.h> #include <string> #include <vector> #include "base/at_exit.h" #include "base/bind.h" #include "base/callback.h" #in...
<commit_before>#include <engpar_support.h> #include <engpar.h> #include <engpar_input.h> #include <binGraph.h> #include <engpar_split.h> #include <PCU.h> #include <sys/types.h> #include <unistd.h> #include <apfMDS.h> #include <apfMesh2.h> #include <apfGraph.h> #include <gmi_mesh.h> #include <parma.h> #include <apfZolta...
<commit_before> // // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2018 Francois Beaune, The appleseedhq Organization // // Permission is hereby granted, free of charge, to an...
<commit_before>#include <fstream> #include <iostream> #include <map> #include <memory> #include <optional> #include <time.h> #include <vector> #include "aggregate_bandwidth.hpp" #include "log_results.hpp" #include <derecho/core/derecho.hpp> using std::cout; using std::endl; using std::map; using std::vector; using n...
<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/ipc_message.h" #include "base/logging.h" #include "build/build_config.h" namespace IPC { //------------...
<commit_before><commit_msg>DevTools: fix renderer crash when pause is pressed during page load<commit_after><|endoftext|>
<commit_before>#include <sys/types.h> #include <sys/wait.h> #include "condor_debug.h" #include "condor_types.h" #include "condor_attributes.h" #include "condor_expressions.h" #include "condor_mach_status.h" #include "sched.h" #include "event.h" #include "state.h" #include "resource.h" #include "resmgr.h" #include "C...
<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 "chrome/test/ui_test_utils.h" #include "base/json_reader.h" #include "base/message_loop.h" #include "base/path_service.h" #in...
<commit_before>//-----------------------------------------------------------------------bl- //-------------------------------------------------------------------------- // // GRINS - General Reacting Incompressible Navier-Stokes // // Copyright (C) 2010-2013 The PECOS Development Team // // This library is free softw...
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*- uiserver/verifycommand.cpp This file is part of Kleopatra, the KDE keymanager Copyright (c) 2007 Klarälvdalens Datakonsult AB Kleopatra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License...
<commit_before><commit_msg>Fixes #140 - regression with shift states: cleanup<commit_after><|endoftext|>
<commit_before>/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkArenaAlloc.h" #include "SkAutoBlitterChoose.h" #include "SkComposeShader.h" #include "SkDraw.h" #include "SkNx.h" #include "SkPM4fPriv.h" #include "...
<commit_before>/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkPictureShader.h" #include "SkCanvas.h" #include "SkImageCacherator.h" #include "SkImageGenerator.h" #include "SkImageShader.h" #include "SkMatrixUt...
<commit_before>#include "convergence/final_checker_or_n.h" #include <memory> #include <optional> #include <gtest/gtest.h> #include "convergence/status.h" #include "convergence/moments/tests/single_moment_checker_mock.h" #include "data/moment_types.h" #include "test_helpers/gmock_wrapper.h" namespace { using ::test...
<commit_before>/* * * Copyright 2015 gRPC authors. * * 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>/** ========================================================================== * 2011 by KjellKod.cc. This is PUBLIC DOMAIN to use at your own risk and comes * with no warranties. This code is yours to share, use and modify with no * strings attached and no restrictions or obligations. * * For more ...
<commit_before>//------------------------------------------------------------------------------ // Copyright (c) 2016 by contributors. 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 o...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://open...
<commit_before>#ifndef GUARD_debug_log_hpp #define GUARD_debug_log_hpp /** @file debug_log.hpp * * @brief Provides macro for printing to std::clog in debug builds. * * From someone called "snstrnd" on Stack Overflow. */ #include <iostream> /**Macro to print to std::clog iff DEBUG is defined. * * If DEBUG is ...
<commit_before>/* ** Author(s): ** - Cedric GESTES <gestes@aldebaran-robotics.com> ** ** Copyright (C) 2010 Aldebaran Robotics */ #include <vector> #include <iostream> #include <boost/thread.hpp> #include <boost/bind.hpp> #include <alcommon-ng/transport/transport.hpp> #include <alcommon-ng/transport/zeromq/zmqsimp...
<commit_before><commit_msg>RTF import of new-style frames: fix name<commit_after><|endoftext|>
<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 req...
<commit_before>#include <Nazara/Core/Bitset.hpp> #include <Catch/catch.hpp> #include <string> SCENARIO("Bitset", "[CORE][BITSET]") { GIVEN("Allocate and constructor") { Nz::Bitset<> bitset(3, false); THEN("Capacity is 3 and size is 3") { CHECK(bitset.GetSize() == 3); CHECK(bitset.GetCapacity() >= 3); ...
<commit_before>#pragma once #include "SimpleRenderer.h" #include "Renderables/VBOMesh.h" #include "GLBlaat/GL.h" #include "GLBlaat/GLFramebuffer.h" #include "GLBlaat/GLUtility.h" #include "GLBlaat/GLProgram.h" #include <cassert> #include <vector> namespace NQVTK { // ------------------------------...
<commit_before>/************************************************************************* * * $RCSfile: SettingsExportHelper.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: sab $ $Date: 2001-03-11 15:52:35 $ * * The Contents of this file are made available subject to the terms of * either of the fo...
<commit_before>#include <catch.hpp> #include <chirp/audio_format.hpp> #include <type_traits> SCENARIO( "Audio formats are not default constructible" ) { REQUIRE( (std::is_default_constructible<chirp::audio_format>::value) == false ); } SCENARIO( "Audio formats can be compared with operator ==" ) { GIVEN( "two equiv...
<commit_before>#include "joystick.hpp" // #include "Rotate.h" #include <ros/ros.h> #include <geometry_msgs/Twist.h> #include <vector> #include <string> #include <math.h> const int DEAD_ZONE = 16384; const int AXIS_MAX = 32767; using namespace ros; using namespace std; Joystick joystick; Publisher pub; void updateR...
<commit_before>#include <common/buffer.h> #include <common/endian.h> #include <event/action.h> #include <event/callback.h> #include <event/event_system.h> #include <io/socket.h> #include "proxy_client.h" #include "proxy_socks_connection.h" ProxySocksConnection::ProxySocksConnection(Socket *client) : log_("/wanproxy...
<commit_before>// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "xwalk/runtime/browser/ui/native_app_window_views.h" #include "content/public/browser/notification_service.h" #include "content/...
<commit_before>#include "../src/benchmark_v2.hpp" #include "../src/random_engine.hpp" #include <cmath> #include <iostream> #include <memory> class generator { std::unique_ptr<shino::random_int_generator<int, std::mt19937_64>> gen; public: using input_type = std::size_t; generator(): gen(st...
<commit_before>/* nsjail - logging ----------------------------------------- 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 ...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "...
<commit_before>/************************************************************************* * * $RCSfile: sfxpicklist.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: cd $ $Date: 2001-11-20 16:56:39 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before> #include "lexer.h" #include "parser.h" #include "channel.h" #include <sstream> #include <future> using namespace crisp; int main() { InputScanner scanner(&std::cin); lexer::Lexer lex(&scanner); parser::Parser p; Channel<Token *> chan(5); auto lexf = std::async(std::launch::async, [](lexer::Lexe...
<commit_before>/************************************************************************* * * $RCSfile: xml_parser.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2004-09-08 14:25:42 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>#include "lib/armv7m/crt0.h" #include "lib/armv7m/exception_table.h" #include "lib/armv7m/instructions.h" #include "lib/armv7m/scb.h" #include "lib/stm32f4xx/rcc.h" #include "lib/stm32f4xx/syscfg.h" #include "vga/arena.h" #include "vga/vga.h" #include "vga/mode/raster_640x480x1.h" #include "vga/mode/ra...
<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>#include "main.hpp" #include "Webcam.hpp" Webcam::Webcam() { capture.open(0); if(!capture.isOpened()) { SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Could not open webcam", "Could not open webcam", NULL); return; } } Webcam::~Webcam() { capture.release(); } bool Webcam::getFrameSiz...
<commit_before>/* -*- Mode: C++; c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil -*- * * Quadra, an action puzzle game * Copyright (C) 1998-2000 Ludus Design * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publi...
<commit_before>#include "thread_helpers.h" #ifdef _WIN32 // As per https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-set-a-thread-name-in-native-code #include <windows.h> const DWORD MS_VC_EXCEPTION = 0x406D1388; #pragma pack(push,8) typedef struct tagTHREADNAME_INFO { DWORD dwType = 0x10...
<commit_before>// @(#)root/tmva $Id$ // Author: Andreas Hoecker, Peter Speckmayer, Joerg Stelzer, Helge Voss /********************************************************************************** * Project: TMVA - a Root-integrated toolkit for multivariate data analysis * * Package: TMVA ...
<commit_before>/************************************************************************* * * $RCSfile: tutil.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: pluby $ $Date: 2001-04-18 14:48:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2015-2016 Damien P. George * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software")...
<commit_before>/* * NameEntityManager.cc * * Created on: Apr 9, 2010 * Author: eric */ #include <idmlib/nec/NameEntityUtil.h> #include <idmlib/nec/NameEntityManager.h> #include <idmlib/nec/NameEntityDict.h> namespace idmlib { ml::ClassificationManager<NameEntity>* NameEntityManager::classifier_ = 0; Nam...
<commit_before>#include <sandbox/voxelization.hpp> #include <shiny/context.hpp> #include <shiny/scene.hpp> #include <shiny/draw.hpp> #include <shiny/generic_buffer.hpp> #include <shiny/platform/win32/resource_view.hpp> #include <shelf/file.hpp> #include <shox/morton.hpp> #include <atma/math/matrix4f.hpp...
<commit_before>/* Copyright (c) 2012 Carsten Burstedde, Donna Calhoun All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list ...
<commit_before>#include "virtualview.hpp" #include <QGLBuilder> #include <QGLSceneNode> #include <QGLAbstractScene> #include <QMessageBox> #include <QGraphicsPixmapItem> #include <GoBoard.h> VirtualView::VirtualView(QWidget *parent){ this->setParent(parent); // directories of the images QString texture_...
<commit_before>/************************************************************************* * * $RCSfile: xcl97dum.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: hr $ $Date: 2003-11-05 13:44:13 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before><commit_msg>Another small fix for --enable_slepc<commit_after><|endoftext|>
<commit_before>// // Enterprise.cpp // Clock Signal // // Created by Thomas Harte on 10/06/2021. // Copyright © 2021 Thomas Harte. All rights reserved. // #include "Enterprise.hpp" #include "../MachineTypes.hpp" #include "../../Processors/Z80/Z80.hpp" #include "../../Analyser/Static/Enterprise/Target.hpp" nam...
<commit_before><commit_msg>reverted the CSV comma-checkbox override<commit_after><|endoftext|>
<commit_before>/** * This file is part of the CernVM File System. */ #include "cvmfs_config.h" #include <stdio.h> #include <sys/stat.h> #include <unistd.h> #include <string> #include "compression.h" #include "download.h" #include "logging.h" #include "signature.h" #include "statistics.h" #include "swissknife.h" #...
<commit_before>#pragma once #include "cJSON/cJSON.h" CLANG_DIAGNOSTIC_PUSH CLANG_DIAGNOSTIC_IGNORE("-Wunused-macros") // I dont think namespace matters for macros but whatever namespace asdf { #define CJSON_GET_INT(int_name) int_name = cJSON_GetObjectItem(root, #int_name)->valueint; #define CJSON_GET_FLO...
<commit_before>/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | ...
<commit_before>//------------------------------------------------------------------------------ // glTextureLoader.cc //------------------------------------------------------------------------------ #include "Pre.h" #include "glTextureLoader.h" #include "Core/String/StringBuilder.h" #include "Render/Core/texture...
<commit_before>#ifndef __PRINTING_STRUCT_HPP_INCLUDED #define __PRINTING_STRUCT_HPP_INCLUDED // Include standard headers #include <stdint.h> // uint32_t etc. typedef struct PrintingStruct { PrintingStruct() : screen_width(-1), screen_height(-1), x(-1), y(-1), text_size(-1), font_size(-1), text_char(nullpt...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: PresenterScrollBar.hxx,v $ * * ...
<commit_before><commit_msg>Fix typo in variable name<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: ViewTabControl.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2004-07-13 14:05:36 $ * * The Contents of this file are made available subject to the terms of * either of the following...
<commit_before><commit_msg>Start adding more tests<commit_after><|endoftext|>
<commit_before>#include "acmacs-base/debug.hh" #include "time-series-draw.hh" #include "tree.hh" #include "tree-iterate.hh" #include "tree-draw.hh" #include "coloring.hh" // ---------------------------------------------------------------------- void TimeSeriesDraw::prepare() { std::map<Date, size_t> sequences_pe...
<commit_before>// 5.exercise.05.cpp // // Add to the program so that it can also convert from Kelvin to Celsius. #include "std_lib_facilities.h" class Below_abszero{}; class Bad_input{}; double ctok(double c) { if (c < -273.15) throw Below_abszero(); return c + 273.15; } double ktoc(double k) { if (k <...
<commit_before>//===-- SwiftOptional.cpp ---------------------------------------*- C++ -*-===// // // 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>/************************************************************************* > File Name: scopedEnum.cpp > Author: Chan-Ho Chris Ohk > E-mail: utilForever@gmail.com, utilForever@kaist.ac.kr > Created Time: 2015/4/19 > Personal Blog: https://github.com/utilForever *******************************************...
<commit_before>// Copyright (c) 2020 Microsoft, Inc. All rights reserved. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include <memory> #include <utility> #include <vector> #include "shell/browser/file_select_helper.h" #include "base/bind.h" #include "base/fil...
<commit_before>#define STRING2(x) #x #define STRING(x) STRING2(x) #if __cplusplus < 201103L #pragma message("WARNING: the compiler may not be C++11 compliant. __cplusplus version is : " STRING(__cplusplus)) #endif #include <iostream> #include <vector> #include <algorithm> #include <GL/glew.h> #include ...
<commit_before><commit_msg>fix drawPngUrl http client infinite loop<commit_after><|endoftext|>
<commit_before><commit_msg>got some initial custom settings. now need to work on sql call to get thought's values and then customize the text displayed accordingly based on the parser.<commit_after><|endoftext|>