text
stringlengths
54
60.6k
<commit_before>{ // //This macro produces the flowchart of TFormula::Analyze //Author: Rene Brun gROOT->Reset(); c1 = new TCanvas("c1","Analyze.mac",620,790); c1->Range(-1,0,19,30); TPaveLabel pl1(0,27,3.5,29,"Analyze"); pl1.SetFillColor(42); pl1.Draw(); TPaveText pt1(0,22.8,4,25.2); T...
<commit_before>#include "../demo_addresses.hpp" #include "messages/op_codes.h" #include <chrono> #include <component.hpp> #include <iostream> #include <local_communicator.hpp> #include <local_component_routing_table.hpp> #include <messages/local/local_hello.h> #include <messages/spa/spa_data.h> #include <messages/spa/s...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2017. All rights reserved */ #ifndef _Stroika_Foundation_Streams_InputOutputStream_inl_ #define _Stroika_Foundation_Streams_InputOutputStream_inl_ 1 /* ******************************************************************************** *******************...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
<commit_before> #include <zorba/zorba_api.h> #ifdef HAVE_PTHREAD_H # include <pthread.h> #else # include "win32_pthread/pthread.h" #endif #include <iostream> using namespace std; using namespace xqp; /* Using Zorba in full api mode. Init the engine, create a query in main thread and execute it in parallel threads....
<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>/// @file /// @author Boris Mikic /// @version 2.0 /// /// @section LICENSE /// /// This program is free software; you can redistribute it and/or modify it under /// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php #if HAVE_SDL #include <SDL/SDL.h> #include "Buffer.h"...
<commit_before>#include "SearchNormalBatch.h" #include "LM/Base.h" #include "Manager.h" #include <google/profiler.h> using namespace std; namespace Moses { SearchNormalBatch::SearchNormalBatch(Manager& manager, const InputType &source, const TranslationOptionCollection &transOptColl) :SearchNormal(manager, source,...
<commit_before>#include "connection-manager.h" #include "glib-helpers.h" #include "protocol.h" G_DEFINE_TYPE(SteamConnectionManager, steam_connection_manager, TP_TYPE_BASE_CONNECTION_MANAGER); static void stema_connection_manager_constructed (GObject * object) { GLIB_CALL_PARENT(steam_connection_manager_parent_class...
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> #include <vespa/vespalib/geo/zcurve.h> #include <vespa/vespalib/util/priority_queue.h> #include <vespa/vespalib/util/fiddle.h> #include <vespa/log/log.h> LOG...
<commit_before>/* poller.cpp * Copyright (C) 2005-2006 Tommi Maekitalo * * This program 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 2.1 of the License, or (at your option) any...
<commit_before>#include <ros/ros.h> #include <stdlib.h> #include <pcl/point_types.h> #include <pcl_ros/point_cloud.h> #include <pcl_ros/transforms.h> #include <ros/publisher.h> #include <tf/tf.h> #include <tf/transform_listener.h> #include <sensor_msgs/point_cloud_conversion.h> #include <pcl/filters/voxel_grid.h> #incl...
<commit_before>#include "mitkBoundingObjectCutter.h" #include "mitkImageToItkMultiplexer.h" #include "mitkImage.h" #include "mitkBoundingObject.h" #include "mitkGeometry3D.h" #include <mitkStatusBar.h> #include <vtkTransform.h> mitk::BoundingObjectCutter::BoundingObjectCutter() : m_UseInsideValue(false), m_OutsideV...
<commit_before>#include "depthai-bootloader-shared/Bootloader.hpp" namespace dai { namespace bootloader { // Bootloader.hpp definitions // Requests decltype(request::UsbRomBoot::VERSION) constexpr request::UsbRomBoot::VERSION; decltype(request::UsbRomBoot::NAME) constexpr request::UsbRomBoot::NAME; decltype(request:...
<commit_before>//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2017 Ryo Suzuki // Copyright (c) 2016-2017 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D/Platform.hpp> ...
<commit_before>#include "ButtonItem.h" ButtonItem::ButtonItem(QQuickItem *parent): QQuickItem(parent), m_active(false), m_modifier(false), m_col(0), m_row(0), m_colSpan(1), m_rowSpan(1), m_currentSymbolIndex(-1) { connect(this, SIGNAL(symbolsChanged(const QStringList &)), SLOT(onSymbolsChanged())); connect(t...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before> #include "cocoa/CCSet.h" #include "basics/CAApplication.h" #include "dispatcher/CAKeypadDispatcher.h" #include "dispatcher/CATouch.h" #include "dispatcher/CATouchDispatcher.h" #include <android/log.h> #include <jni.h> #include "platform/android/CCEGLView.h" using namespace CrossApp; extern "C" { J...
<commit_before>// Copyright 2010 Alessio Sclocco <a.sclocco@vu.nl> // // 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 requir...
<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>//======================================================================= // Distributed under the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //======================================================================= #ifndef WORD_SPOTTER_CONFIG_THIRD...
<commit_before>/** * @file meta.hpp * * Meta-programming facilities. */ #ifndef CPPSTDX_META__ #define CPPSTDX_META__ #include <cppstdx/config.hpp> #include <type_traits> namespace cppstdx { namespace meta { using ::std::size_t; using ::std::integral_constant; //===============================================...
<commit_before>/* * Copyright (C) 2009, 2010, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ namespace l...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 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>#pragma once #include <vector> #include <initializer_list> #include <string> #include <atomic> #include <memory> #include <chrono> #include <mos/gfx/vertex.hpp> namespace mos { namespace gfx { class Mesh; using SharedMesh = std::shared_ptr<Mesh>; /** * Describes the geometric data to be rendered. Cont...
<commit_before>/****************************************************************************** nomlib - C++11 cross-platform game engine Copyright (c) 2013, 2014 Jeffrey Carpenter <i8degrees@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitt...
<commit_before>#pragma once #include "indexer/cell_id.hpp" #include "geometry/rect2d.hpp" #include "base/buffer_vector.hpp" #include <array> #include <cstdint> #include <queue> #include <utility> #include <vector> // TODO: Move neccessary functions to geometry/covering_utils.hpp and delete this file. constexpr in...
<commit_before>#include <iostream> #include <sstream> #include <string> #include "pegmatite.hh" // This is very bad style, but it's okay for a short example... using namespace std; using namespace pegmatite; /** * The AST namespace contains the abstract syntax tree for this grammar. */ namespace AST { /** * The ...
<commit_before>/** * @file TODO * @brief MegaCMD: TODO * * (c) 2013-2016 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set forth in the Terms of Servic...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistri...
<commit_before>/* This file is part of the Palabos library. * * Copyright (C) 2011-2015 FlowKit Sarl * Route d'Oron 2 * 1010 Lausanne, Switzerland * E-mail contact: contact@flowkit.com * * The most recent release of Palabos can be downloaded at * <http://www.palabos.org/> * * The library Palabos is free soft...
<commit_before>#include<cstdio> void num2str(int n) { char buffer[50]; int i = 0; bool isNeg = n<0; unsigned int n1 = isNeg ? -n : n; while(n1!=0) { buffer[i++] = n1%10+'0'; n1=n1/10; } if(isNeg) buffer[i++] = '-'; buffer[i] = '\0'; for(int t = 0; t < i/2; t++) { buffer[t] ^= buffer[i-t-1]; b...
<commit_before>/** * @file main.cpp * * @author <a href="mailto:xu@informatik.hu-berlin.de">Xu Yuan</a> * */ #include <glib.h> #include <glib-object.h> #include <SimSpark/SimSparkController.h> #include "Cognition.h" #include "Motion.h" using namespace std; // allows for changing the platform name during the ...
<commit_before>/* Copyright (c) by respective owners including Yahoo!, Microsoft, and individual contributors. All rights reserved. Released under a BSD (revised) license as described in the file LICENSE. */ #include <fstream> #include <iostream> using namespace std; #ifndef _WIN32 #include <unistd.h> #endif #includ...
<commit_before>/* Copyright (c) 2015, Song Gao <song@gao.io> 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 cond...
<commit_before>#include "Font.h" int hm::Font::fontsOpen = 0; namespace hm { Font::Font() : file(""), font(NULL), rm(SOLID) { if(TTF_WasInit() == 0) std::cout << "WARNING: SDL_ttf is not initialized!" << std::endl; } Font::Font(std::string file, int ptsize) : file(file), font(NULL), rm(SOLID) { if(TTF_Wa...
<commit_before>#include "../Entity/ZoneEntity.hpp" #include "../Event/ContactEventData.h" #include "../Task/CameraMoveTask.hpp" #include "../System/GraphicsManager.hpp" #include "../System/SceneManager.hpp" std::list<Task*> ZoneEntity::_taskList; ZoneEntity::ZoneEntity() : BaseClass(), _zoneBody(this), ...
<commit_before>#ifndef __INCLUDED_TS_PROCESSOR_TS_PAYLOAD_BUILDER_HPP__ #define __INCLUDED_TS_PROCESSOR_TS_PAYLOAD_BUILDER_HPP__ #include <ts_processor/ts/packet.hpp> #include <bitfield/container/vector.hpp> namespace ts_processor { namespace ts { struct payload_builder { bitfield::container::vector conta...
<commit_before>// Halide tutorial lesson 16: RGB images and memory layouts part 1 // This lesson demonstrates how to feed Halide RGB images in // interleaved or planar format, and how to write code optimized for // each case. // On linux or os x, you can compile and run it like so: // g++ lesson_16_rgb_generate.cpp ...
<commit_before>/// @brief provides CORDIC for ln function /// @ref see C. Baumann, "A simple and fast look-up table method to compute the /// exp(x) and ln(x) functions", 2004 #include "./../../fixed_point_lib/src/CORDIC/lut/lut.hpp" #include <boost/foreach.hpp> #include <boost/range/irange.hpp> namespace s...
<commit_before>/* ** Copyright 2009-2014 Merethis ** ** This file is part of Centreon Broker. ** ** Centreon Broker is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Foundation. ** ** Centreon Broker is distribu...
<commit_before><commit_msg>drawing a vertical/horizontal line does not really damage 0 width/height areas<commit_after><|endoftext|>
<commit_before>#include <iostream> #include <lcm/lcm-cpp.hpp> #include "drake/common/drake_assert.h" #include "drake/common/drake_path.h" #include "drake/common/polynomial.h" #include "drake/systems/plants/IKoptions.h" #include "drake/systems/plants/RigidBodyIK.h" #include "drake/systems/plants/RigidBodyTree.h" #incl...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2012 Scientific Computing and Imaging Institute, University of Utah. License for the specific language governing rights and limitations under Permission is hereby granted, free of charge, ...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkImageToListGeneratorTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved...
<commit_before><commit_msg>Fix memory allocation fprintf statements to use C89 instead of C99<commit_after><|endoftext|>
<commit_before>//---------------------------------------------------------------------------- // // "Copyright Centre National d'Etudes Spatiales" // // License: LGPL // // See LICENSE.txt file in the top level directory for more details. // //---------------------------------------------------------------------------...
<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 "ui/base/models/simple_menu_model.h" #include "base/message_loop.h" #include "third_party/skia/include/core/SkBitmap.h" #incl...
<commit_before> #include "../DynamicElement/ArcBall.h" #include "../DynamicElement/Camera.h" #include "../DynamicElement/lodepng.h" #include "ParticleSystemSyn.h" bool pause = false; //true; // int g_width = 720; //640; int g_height = 480; int g_bmpCount = 0; CArcBall* ptrArcBall = NULL; CCamera* ptrCamera = NULL; CPa...
<commit_before>/* * Chord.cpp * iPhone_p2p_engine * * Created by LogNet team 2010 - INRIA * Mediteranee - Sophia Antipolis - France * */ #include "AbstractChord.h" #include "ProtocolSingleton.h" #include <stdlib.h> #include <math.h> #include <iostream> #include <sstream> #include <vector> // //////////////...
<commit_before>#include "VMDCameraAnimation.h" #include <glm/gtc/matrix_transform.hpp> namespace saba { namespace { void SetVMDBezier(VMDBezier& bezier, int x0, int x1, int y0, int y1) { bezier.m_cp[0] = glm::vec2(0, 0); bezier.m_cp[1] = glm::vec2((float)x0 / 127.0f, (float)y0 / 127.0f); bezier.m_cp[2...
<commit_before>/* Based on Allocore Example: Audio To Graphics by Lance Putnam */ #include <iostream> #include "allocore/io/al_App.hpp" #include "alloaudio/al_OutputMaster.hpp" #include "alloaudio/al_Convolver.hpp" #include "Gamma/SoundFile.h" #define BLOCK_SIZE 64 using namespace std; using namespace al; class...
<commit_before>#include "Framework.hpp" #include "../core/jni_helper.hpp" #include "coding/internal/file_data.hpp" #include "platform/mwm_version.hpp" #include "storage/storage.hpp" #include "std/bind.hpp" #include "std/shared_ptr.hpp" namespace { using namespace storage; enum ItemCategory : uint32_t { NEAR_ME,...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkExtractUnstructuredGridPiece.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm fo...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistri...
<commit_before>// Copyright (c) 2012 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/threading/thread.h" #include "base/bind.h" #include "base/lazy_instance.h" #include "base/location.h" #include "base/pr...
<commit_before>// ImGui - standalone example application for DirectX 9 // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. #include <imgui.h> #include "imgui_impl_dx9.h" #include <d3d9.h> #define DIRECTINPUT_VERSION 0x0800 #include <dinput.h> #include <tchar.h> // Data stati...
<commit_before>#include "PerfectSquares.hpp" #include <vector> using namespace std; int PerfectSquares::numSquares(int n) { vector<int> dp(n + 1, 0); for (int i = 1; i <= n; i++) { dp[i] = dp[i - 1]; for (int j = 2; j * j <= i; j++) dp[i] = min(dp[i], dp[i - j * j]); dp...
<commit_before>/* * Copyright (c) 2015-17 Luke Montalvo <lukemontalvo@gmail.com> * * This file is part of BEE. * BEE is free software and comes with ABSOLUTELY NO WARANTY. * See LICENSE for more details. */ #ifndef BEE_CORE_ENGINESTATE_H #define BEE_CORE_ENGINESTATE_H 1 #include <sstream> #include <list> #include <me...
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2017 Francois Beaune, The appleseedhq O...
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2017 Francois Beaune, The appleseedhq O...
<commit_before>#include <benchmark/benchmark.h> #include <cstdlib> #include <map> #include <iostream> #include <random> #include <set> #include "database.h" #include "util.h" using namespace naivedb; using namespace std::chrono; double total = 0; #define TIMED_TEST_BEGIN \ do{ steady_clock::time_point t1 = ste...
<commit_before>#include "RMHD_converter.hpp" extern int myrank, nprocs; inline ptrdiff_t part1by2(ptrdiff_t x) { ptrdiff_t n = x & 0x000003ff; n = (n ^ (n << 16)) & 0xff0000ff; n = (n ^ (n << 8)) & 0x0300f00f; n = (n ^ (n << 4)) & 0x030c30c3; n = (n ^ (n << 2)) & 0x09249249; return n; } in...
<commit_before>/* Copyright 2015 Realm Inc - All Rights Reserved * Proprietary and Confidential */ #ifndef REALM_OBJECT_ACCESSOR_HPP #define REALM_OBJECT_ACCESSOR_HPP #include <string> #include "shared_realm.hpp" #include "schema.hpp" #include "list.hpp" namespace realm { class Object { public: Ob...
<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/file_path.h" #include "base/file_util.h" #include "base/path_service.h" #include "testing/gtest/include/gtest/gtest.h" #...
<commit_before>#include <cstdio> #define ELEMENT_COUNT 1000 using namespace std; int n, d[ELEMENT_COUNT]; void insertion_sort() { for (int i = 1; i < n; i++) { for (int j = i - 1; j >= 0; j--) { if (d[j] > d[j + 1]) { int temp = d[j]; d[j] = d[j + 1]; d[j + 1] = temp; } else { b...
<commit_before>/// /// @file S2LoadBalancer.cpp /// @brief The S2LoadBalancer evenly distributes the work load between /// the threads in the computation of the special leaves. /// /// Simply parallelizing the computation of the special leaves in the /// Lagarias-Miller-Odlyzko and Deleglise-Rivat algorithms by...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 * * (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>#include <boost/test/test_case_template.hpp> #include <boost/test/unit_test.hpp> #include "args.hpp" #include "coordinates.hpp" #include "equal_json.hpp" #include "fixture.hpp" #include "osrm/coordinate.hpp" #include "osrm/engine_config.hpp" #include "osrm/json_container.hpp" #include "osrm/json_contai...
<commit_before>/* The MIT License (MIT) Copyright (c) [2016] [BTC.COM] 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 rights to use, c...
<commit_before>/** @section license License 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 Licen...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2015 Microsoft Corporation * * -=- Robust Distributed System Nucleus (rDSN) -=- * * 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...
<commit_before>// // ConsoleMVC.cpp // MultitouchPadOsc is released under the MIT License. // // Copyright (c) 2011 - 2012, Paul Vollmer http://www.wrong-entertainment.com // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Soft...
<commit_before>/* * Copyright (c) 2017, James Jackson and Daniel Koch, BYU MAGICC 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...
<commit_before>/* * Copyright (c) 2012 The WebM 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>#include <FWPlatform.h> #include <pthread.h> #include <PlatformThread.h> #include <Runnable.h> #include <SysEvent.h> #include <iostream> #include <unistd.h> using namespace std; class PosixThread : public PlatformThread { public: PosixThread(std::shared_ptr<Runnable> & _runnable, FWPlatform * _plat...
<commit_before>/* * Project: FullereneViewer * Version: 1.0 * Copyright: (C) 2011-14 Dr.Sc.KAWAMOTO,Takuji (Ext) * Create: 2011/12/26 18:06:18 JST */ #include <assert.h> #include "ThreeViewNormal.h" #include "CarbonAllotrope.h" #include "OpenGLUtil.h" int ThreeViewNormal::p_get_nth() const { return sequence_no...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>#ifndef PRESET_HPP #define PRESET_HPP #include "PrintConfig.hpp" #include "Config.hpp" namespace Slic3r { namespace GUI { /// Preset types list. We assign numbers to permit static_casts and use as preset tab indices enum class preset_t : uint8_t { Print = 0, Material, Printer, Last // This MUS...
<commit_before>#include "Utility/String.h" #include <string> #include <vector> #include <stdexcept> #include <algorithm> #include <cctype> #include <chrono> #include <iomanip> #include <sstream> #include <cmath> std::vector<std::string> String::split(const std::string& s, const std::string& delim, const size_t count)...
<commit_before>#ifndef _SNARKFRONT_MERKLE_AUTH_PATH_HPP_ #define _SNARKFRONT_MERKLE_AUTH_PATH_HPP_ #include <cstdint> #include <iostream> #include <istream> #include <ostream> #include <vector> #include "DSL_base.hpp" #include "DSL_bless.hpp" #include "DSL_utility.hpp" #include "PowersOf2.hpp" #include "SHA_256.hpp" #...
<commit_before>/** * @file delegate.hpp * @author Robin Dietrich <me (at) invokr (dot) org> * @version 1.0 * * @par License * Alice Replay Parser * Copyright 2014 Robin Dietrich * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance wit...
<commit_before>/* dtkDistributedController.cpp --- * * Author: Julien Wintz * Copyright (C) 2008 - Julien Wintz, Inria. * Created: Wed May 25 14:15:13 2011 (+0200) * Version: $Id$ * Last-Updated: ven. juil. 1 15:06:22 2011 (+0200) * By: Nicolas Niclausse * Update #: 478 */ /* Commentary: * ...
<commit_before>/* * Copyright 2017-2019 Leonid Yuriev <leo@yuriev.ru> * and other libmdbx authors: please see AUTHORS file. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as authorized by the OpenLDAP * Public License. * * A cop...
<commit_before>// SciTE - Scintilla based Text Editor // LexBullant.cxx - lexer for Bullant #include <stdlib.h> #include <string.h> #include <ctype.h> #include <stdio.h> #include <stdarg.h> #include "Platform.h" #include "PropSet.h" #include "Accessor.h" #include "KeyWords.h" #include "Scintilla.h" #include "SciLexe...
<commit_before>#include <cstdlib> #include <ctime> #include <clocale> #include <iostream> #include <vector> #include <glibmm.h> #include <libiqxmlrpc/libiqxmlrpc.h> #include <libiqxmlrpc/client.h> #include <libiqxmlrpc/http_client.h> #include "LiveJournal.h" #include "Config.h" #include "Event.h" using namespace iqx...
<commit_before>#include "MainWindow.hpp" #include "ui_MainWindow.h" #include <algorithm> #include <QSettings> #include <QProgressBar> #include <QLabel> #include <QSystemTrayIcon> #include "matrix/Room.hpp" #include "matrix/Session.hpp" #include "sort.hpp" #include "RoomView.hpp" #include "ChatWindow.hpp" MainWindo...
<commit_before>#include <iostream> #include "convexHull.h" #include "testUtil.h" using namespace Eigen; int testConvexHull() { Matrix<double, 2, Dynamic> pts(2, 4); pts << 1, 2, 3, 2, 2, 1, 2, 3; if (!inConvexHull(pts, Vector2d(2, 2))) { fprintf(stderr, "2,2 should be in hull\n"); return 1; ...
<commit_before>#include <boost/test/unit_test.hpp> //#include "clotho/powerset/powerset.hpp" // #include "clotho/powerset/block_map.hpp" #include "clotho/powerset/variable_subset.hpp" struct test_element { double k, v; test_element( double _k = 0., double _v = 0.) : k (_k), v(_v) {} test_element( const t...
<commit_before>#ifndef OCLUTIL_OCLUTIL_HPP #define OCLUTIL_OCLUTIL_HPP /** * \file oclutil.hpp * \author Denis Demidov <ddemidov@ksu.ru> * \brief OpenCL convenience utilities. */ /** \mainpage oclutil oclutil is header-only template library created for ease of C++ based OpenCL development. Vector arithmetic a...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <g.gael@free.fr> // // 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 c...
<commit_before>/* pvsops.c: pvs and other spectral-based opcodes Copyright (C) 2017 Victor Lazzarini This file is part of Csound. The Csound 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 Foundat...
<commit_before>// Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html #ifndef __RAPICORN_AIDA_PROPS_HH__ #define __RAPICORN_AIDA_PROPS_HH__ #include <rcore/aida.hh> #include <rcore/strings.hh> namespace Rapicorn { namespace Aida { // == PropertyHostInterface == typedef ImplicitBase PropertyHostInter...
<commit_before>// Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html #ifndef __RAPICORN_THREADLIB_HH__ #define __RAPICORN_THREADLIB_HH__ #include <condition_variable> namespace Rapicorn { namespace Lib { #define RAPICORN_CACHE_LINE_ALIGNMENT 128 #define RAPICORN_MFENCE __sync_synchronize() ///...
<commit_before>// Time: O(klog(min(m, n, k)) // Space: O(min(m, n, k)) // BST solution. class Solution { public: /** * @param matrix: a matrix of integers * @param k: an integer * @return: the kth smallest number in the matrix */ int kthSmallest(vector<vector<int>> &matrix, int k) { ...
<commit_before>// Source : https://leetcode.com/problems/lexicographical-numbers/ // Author : Hao Chen // Date : 2016-08-23 /*************************************************************************************** * * Given an integer n, return 1 - n in lexicographical order. * * For example, given 13, return: ...
<commit_before>#include <wpi_jaco_wrapper/jaco_manipulation.h> using namespace std; JacoManipulation::JacoManipulation() { loadParameters(n); acGripper = new GripperClient(n, arm_name_ + "_arm/fingers_controller/gripper", true); asGripper = new GripperServer(n, arm_name_ + "_arm/manipulation/gripper", boost::b...
<commit_before>#include <wpi_jaco_wrapper/jaco_manipulation.h> using namespace std; JacoManipulation::JacoManipulation() : executeGraspServer(n, "jaco_arm/manipulation/grasp", boost::bind(&JacoManipulation::execute_grasp, this, _1), false), executePickupServer(n, "jaco_arm/manipulation/pick...
<commit_before>/* * CampSiteActiveAreaImplementation.cpp * * Created on: Jan 1, 2012 * Author: Kyle */ #include "CampSiteActiveArea.h" #include "CampSiteObserver.h" #include "server/zone/objects/structure/StructureObject.h" #include "server/zone/managers/player/PlayerManager.h" #include "server/zone/objects...