text
stringlengths
54
60.6k
<commit_before>#include <iostream> #include <cstdint> #include <random> #include <chrono> #include <vector> #include <boost/dynamic_bitset.hpp> #include <numeric> /** * Lessons learned so far: * - SIMD registers are used as soon as we compile with -03 * - If we want to get the real speed up (and use all SIMD regist...
<commit_before>/* * This file is part of Poedit (https://poedit.net) * * Copyright (C) 2017 Vaclav Slavik * * 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, i...
<commit_before>//------------------------------------------------------------------------------ /// \file pcapcut.cpp //------------------------------------------------------------------------------ /// \brief Utility for cutting a part of a large pcap file //-----------------------------------------------------------...
<commit_before>// Copyright 2012-2019 Richard Copley // // 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>/* * Publisher */ #include "constants.hpp" #include "publisher.hpp" #include <unistd.h> #include <zmqpp/zmqpp.hpp> #include <string> #include <sstream> #include <iostream> #include <boost/thread.hpp> Publisher::Publisher(zmqpp::context* z_ctx_, host_t data_) : Transmitter(z_ctx_), z_heartbeater...
<commit_before>//======================================================================= // Copyright (c) 2013-2018 Baptiste Wicht. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <set> #include "rpcclient.h" #include "rpcprotocol.h" #include...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "main.h" #include "db.h" #include "init.h" #include "bitcoinrpc...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #include "db.h" #include "init.h" #include "min...
<commit_before>#include "Mouse.h" #include <cmath> #include <iostream> #include "Constants.h" #include "Utilities.h" #include "units/MetersPerSecond.h" #include "units/Polar.h" namespace sim { Mouse::Mouse() : m_translation(Cartesian(0, 0)), m_rotation(Radians(0)), m_rightWheel(Meters(0.02), Meters(0.025),...
<commit_before>/* * Copyright (c) 2000-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>/* * 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>#ifndef NFA_HXX #define NFA_HXX #include <string> #include <set> #include <map> #include <utility> typedef std::string StateT; typedef std::string LetterT; typedef std::set<StateT > SetOfStatesT; typedef std::map<LetterT, SetOfStatesT > StateDeltaT; typedef std::map<StateT, StateDeltaT > De...
<commit_before>/* Copyright (c) 2017-2020 Hans-Kristian Arntzen * * 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>/*********************************************************************** created: Tue Feb 17 2009 author: Henri I Hyyryläinen (based on code by Paul D Turner) *************************************************************************/ /*******************************************************...
<commit_before><commit_msg>disable that code for now<commit_after><|endoftext|>
<commit_before>#include <engine/Widget.hpp> #include <engine/Screen.hpp> Widget::Widget(Widget* parent) : _parent(nullptr), _layout(), _theme(), _pos(), _size(), _fixed_size(), _visible(true), _enabled(true), _focused(false), _mouse_focus(false), _tooltip(), _font_size(-1), _cursor(Cursor::Arrow) { ...
<commit_before>// Copyright (c) 2010 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/extensions/extension_install_ui.h" #include <map> #include "app/l10n_util.h" #include "app/resource_bundle.h...
<commit_before>/* * Copyright 2020 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
<commit_before>#pragma once #include "queue.hpp" #include <pqrs/osx/system_preferences.hpp> namespace krbn { namespace manipulator { namespace manipulators { namespace post_event_to_virtual_devices { class mouse_key_handler final : public pqrs::dispatcher::extra::dispatcher_client { public: class count_converter fi...
<commit_before>//! Libs: -lLLVM-3.1svn -lclangFrontend -lclangParse -lclangDriver -lclangSerialization -lclangSema -lclangEdit -lclangAnalysis -lclangAST -lclangLex -lclangBasic #include <iostream> using namespace std; #include "PPContext.h" using namespace clang; int main(int argc, char* argv[]) { if (argc != 2)...
<commit_before>#include "AnimSymLoader.h" #include "FilepathHelper.h" #include "EasyAnimLoader.h" #include "SpineAnimLoader.h" #include <sprite2/AnimSymbol.h> #include <json/json.h> #include <fstream> namespace gum { AnimSymLoader::AnimSymLoader(s2::AnimSymbol* sym, const SymbolLoader* sym_loader, ...
<commit_before>#include "AnimSymLoader.h" #include "FilepathHelper.h" #include "EasyAnimLoader.h" #include "SpineAnimLoader.h" #include <sprite2/AnimSymbol.h> #include <json/json.h> #include <fstream> namespace gum { AnimSymLoader::AnimSymLoader(s2::AnimSymbol* sym, const SymbolLoader* sym_loader, ...
<commit_before>/****************************************************************************** ** ** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com> ** All rights reserved. ** ** This file is a part of the chemkit project. For more information ** see <http://www.chemkit.org>. ** ** Redistribution and use in s...
<commit_before>// $Id$ // // Test Suite for geos::noding::SegmentNode class. #include <tut.hpp> // geos #include <geos/noding/SegmentNode.h> #include <geos/noding/NodedSegmentString.h> #include <geos/geom/Coordinate.h> #include <geos/geom/CoordinateSequence.h> #include <geos/geom/CoordinateArraySequenceFactory.h> // ...
<commit_before>/* ** Author(s): ** - Chris Kilner <ckilner@aldebaran-robotics.com> ** ** Copyright (C) 2010 Aldebaran Robotics */ #include <qi/transport/detail/network/ip_address.hpp> #include <boost/algorithm/string.hpp> #ifdef _WIN32 # include <windows.h> # include <winsock2.h> # include <iphlpapi.h> # include <Ws2...
<commit_before>#include "display.hh" Display::Display(){ for(int i=0;i<NUMBER_OF_PARENTWINDOW;i++){ this->freeWindows.push(i); } } Display::~Display(){ } void Display::initDisplay(bool cursset){ initscr(); raw(); keypad(stdscr, TRUE); noecho(); curs_set(cursset); } WINDOW* Display::createWindow(int heigh...
<commit_before>#include <fstream> #include <vector> #include <iterator> #include <iostream> #include <string> #include "lensfun.h" class Image { public: int width, height; int channel_size; lfPixelFormat pixel_format; std::vector<char> data; Image(int width, int height, lfPixelFormat pixel_format)...
<commit_before>#include "PrimaryTreeIndex.h" template <typename T> void PrimaryTreeIndex<T>::buildIndex(Table & table, int column) { int rowno = 0; for(auto currentRow : table) { index.emplace(currentRow[column], rowno++); } } template <typename T> int PrimaryTreeIndex<T>::size() const { retur...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XMLExportDDELinks.cxx,v $ * * $Revision: 1.17 $ * * last change: $Author: obo $ $Date: 2007-06-13 09:12:57 $ * * The Contents of this fil...
<commit_before>#include "rpc.h" #include <exception> #include <cstring> #include <stdio.h> #include <errno.h> #include <boost/bind.hpp> #include <boost/thread/thread.hpp> namespace simpleprotorpc { namespace { // Throws an exception if result is non-zero. void CheckAddrInfo(int result) { if (result != 0) { ...
<commit_before><commit_msg>SSL: don't ask for next proto if we got an error.<commit_after><|endoftext|>
<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 <gtest/gtest.h> int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } <commit_msg>Disable logging in tests.<commit_after>#include <gtest/gtest.h> #include <QLoggingCategory> int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc,...
<commit_before>/************************************************************************** * * Copyright 2011 Jose Fonseca * All Rights Reserved. * * 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 t...
<commit_before>// Arkadij Doronin 24.05.2013 // ircBot #include <cstdlib> #include <iostream> #include <cstdio> #include <cstring> #include <string> #ifdef WIN32 #include <winsock2.h> #else #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/in...
<commit_before>// Arkadij Doronin 24.05.2013 // ircBot #include <cstdlib> #include <iostream> #include <cstdio> #include <cstring> #include <string> #ifdef WIN32 #include <winsock2.h> #else #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/in...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DAVResourceAccess.hxx,v $ * * $Revision: 1.14 $ * * last change: $Author: hr $ $Date: 2006-06-20 05:34:16 $ * * The Contents of this file...
<commit_before>/* The MIT License Copyright (c) 2012 by Jorrit Tyberghein 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, copy...
<commit_before>/** * \file PolygonArea.hpp * \brief Header for GeographicLib::PolygonArea class * * Copyright (c) Charles Karney (2010, 2011) <charles@karney.com> and licensed * under the LGPL. For more information, see * http://geographiclib.sourceforge.net/ ****************************************************...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: rsckey.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: obo $ $Date: 2006-09-17 15:59:43 $ * * The Contents of this file are made a...
<commit_before>// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "shell/renderer/electron_renderer_client.h" #include <string> #include <vector> #include "base/command_line.h" #include "content/public/renderer/render_frame....
<commit_before>/** @file editorviewscene.cpp * @brief Сцена для отрисовки объектов * */ #include "editorviewscene.h" #include <QGraphicsTextItem> #include <QtGui> #include "editorviewmviface.h" #include "editorview.h" #include "mainwindow.h" #include "../mainwindow/mainwindow.h" #include "../model/model.h" using ...
<commit_before>/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/gpu/GrPathRendererChain.h" #include "include/gpu/GrDirectContext.h" #include "include/gpu/GrRecordingContext.h" #include "src/gpu/GrCaps.h" #inc...
<commit_before>#ifndef RCC_T_HH #define RCC_T_HH namespace hal { struct ahb_devices_t { uint32_t dma1:1; uint32_t dma2:1; uint32_t sram:1; uint32_t _unused0:1; uint32_t flitf:1; uint32_t _unused1:1; uint32_t crc:1; uint32_t _unused2:10; uint32...
<commit_before>/************************************************************************* This software allows for filtering in high-dimensional observation and state spaces, as described in M. Wuthrich, P. Pastor, M. Kalakrishnan, J. Bohg, and S. Schaal. Probabilistic Object Tracking using a Range Camera IEEE/RSJ Int...
<commit_before>/*========================================================================= * * Copyright NumFOCUS * * 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:...
<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>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2009 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>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2009 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>/****************************************************************************** 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>//============================================================================================================= /** * @file colormap.cpp * @author Christoph Dinh <chdinh@nmr.mgh.harvard.edu>; * Matti Hamalainen <msh@nmr.mgh.harvard.edu>; * @version 1.0 * @date March, 2013 * *...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <type_traits> #include <visionaray/math/vector.h> #include <visionaray/array.h> #include <visionaray/generic_material.h> #include <visionaray/get_surface.h> #include <visionaray/result_record.h> #include <v...
<commit_before>/*************************************************************************** * Copyright (c) Johan Mabille, Sylvain Corlay, Wolf Vollprecht and * * Martin Renou * * Copyright (c) QuantStack ...
<commit_before>#ifndef ORG_EEROS_SEQUENCER_SEQUENCE_HPP_ #define ORG_EEROS_SEQUENCER_SEQUENCE_HPP_ #include <string> #include <map> #include <functional> #include <vector> #include <mutex> #include <condition_variable> #include <atomic> #include <eeros/logger/Logger.hpp> #include <eeros/logger/LogWriter.h...
<commit_before>#ifndef LLVM_CLANG_CXTRANSLATIONUNIT_H #define LLVM_CLANG_CXTRANSLATIONUNIT_H extern "C" { struct CXTranslationUnitImpl { void *TUData; void *StringPool; }; } #endif #include <clang/AST/Stmt.h> #include <clang/AST/Decl.h> #include <clang/AST/Expr.h> #include <clang/AST/ASTContext.h> #include <clan...
<commit_before>#pragma once #include <gtest/gtest.h> template <typename T, template <class...> typename A, template <class...> typename B> testing::AssertionResult EXPECT_ARREQ(const A<T> &expected, const A<T> &actual) { auto expectedLength = expected.size(); auto actualLength = actual.size(); if (expectedLeng...
<commit_before> <commit_msg>Add Shader.hpp<commit_after>#pragma once #include <string> #include <GL/glew.h> #include "app/Resources.hpp" using namespace std; using namespace s_engine::app; namespace s_engine { namespace graphics { //using namespace app; class Shader: public Resource { protected: string ver...
<commit_before>/* * Copyright (c) 2007 Digital Bazaar, Inc. All rights reserved. */ #include "db/io/BufferedOutputStream.h" using namespace db::io; BufferedOutputStream::BufferedOutputStream( ByteBuffer* b, OutputStream* os, bool cleanup) : FilterOutputStream(os, cleanup) { mBuffer = b; } BufferedOutputS...
<commit_before>////////////////////////////////////////////////////////////////////////////// // NoLifeNxBench - Part of the NoLifeStory project // // Copyright (C) 2013 Peter Atashian // // ...
<commit_before>/** * For conditions of distribution and use, see copyright notice in license.txt * * @file InputMapper.h * @brief Registers an InputContext from the Naali Input subsystem and uses it to translate * given set of keys to Entity Actions on the entity the component is part of. */ #incl...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
<commit_before>// a wrapper to load netgen-dll into python #include <iostream> #include <boost/python.hpp> #ifdef WIN32 #define DLL_HEADER __declspec(dllimport) #else #define DLL_HEADER #endif void DLL_HEADER ExportNetgenMeshing(); void DLL_HEADER ExportMeshVis(); void DLL_HEADER ExportCSG(); void DL...
<commit_before>// Copyright 2015 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless re...
<commit_before>// $Id: mesh_smoother_laplace.C,v 1.16 2005-06-11 03:59:18 jwpeterson Exp $ // The libMesh Finite Element Library. // Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Pub...
<commit_before>/* * Copyright (C) 2013 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>// Copyright 2015 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/ozone/platform/cast/overlay_manager_cast.h" #include "base/bind.h" #include "base/location.h" #include "base/memory/ref_count...
<commit_before>// // sockets.c // Packages // // Created by Theo Weidmann on 06.07.2016. // Copyright (c) 2016 Theo Weidmann. All rights reserved. // #include "../../EmojicodeReal-TimeEngine/EmojicodeAPI.hpp" #include "../../EmojicodeReal-TimeEngine/Thread.hpp" #include "../../EmojicodeReal-TimeEngine/String.h" #i...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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 option) any later version. cpp-ethereum is distribut...
<commit_before>#include "../NULLC/nullc.h" #if defined(_MSC_VER) #pragma warning(disable: 4996) #endif #include <stdio.h> #include <string.h> #include <stdlib.h> const char* translationDependencies[128]; unsigned translationDependencyCount = 0; void AddDependency(const char *fileName) { if(translati...
<commit_before>/************************************************************************* * * $RCSfile: binaryreader.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: vg $ $Date: 2003-06-04 10:19:04 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>/************************************************************************* * * $RCSfile: Blob.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: vg $ $Date: 2005-02-16 17:27:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses ...
<commit_before>#include <silicium/config.hpp> #include <boost/test/unit_test.hpp> namespace dsl { namespace detail { template <class Type, class Name> struct memory_variable { Type &location; }; template <class Memory, class Name> struct access; ...
<commit_before><commit_msg>Fix uninitialized data error in HistoryURLProvider.<commit_after><|endoftext|>
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2012 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // 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 Foundation; eit...
<commit_before>#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]){ int opciones[][2] = { {1, 51}, {2, 52}, {3, 53}, {4, 54}, {5, 55}, {6, 56} }; for (int fila=0; fila<6; fila++){ for(int col=0; col<2; col++) printf("%2i ", opciones[fila][col]); printf("\n"); } ...
<commit_before>#include "stdafx.h" #include "ResponseWriter.h" MultipartResponseWriter::MultipartResponseWriter(char *outputBuffer_, int outputSize_): outputBuffer(outputBuffer_), realOutputBuffer(outputBuffer_), outputSize(0), outputAvailableSize(outputSize_) { } void MultipartResponseWriter::initial...
<commit_before>/* * Copyright 2008-2011 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 require...
<commit_before>//=====================================================================// /*! @file @brief RX24T ファースト・サンプル @n ・P00(4) ピンに赤色LED(VF:1.9V)を吸い込みで接続する @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2017 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "diskstate.h" #include <boost/lexical_cast.hpp> #include <vespa/vespalib/text/stringtokenizer.h> #include <vespa/document/util/stringutil.h> #include <vespa/vespalib/util/excep...
<commit_before>// // Copyright (C) 2004-2006 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved. // Licensed to SIPfoundry under a Contributor Agreement. // // $$ /////////////////////////////////////////////////////////////////////////////...
<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>// -*- mode: c++ -*- /* Copyright (c) 2013, Eddie Kohler * * 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, subject to the conditions * listed in the T...
<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>#include <Transformation.h> #include <MetaEvent.h> #include <EventType.h> #include <IO.h> #include <IDIO.h> #include <ostream> #include <algorithm> #include <numeric> using namespace std; class ScaleTransformer : public SimpleTransformer { private: using Storage = map<id::attribute::ID, MetaSca...
<commit_before>//---------------------------------------------------------------------------// //! //! \file GeneralEstimatorDimensionDiscretization.hpp //! \author Alex Robinson //! \brief General estimator dimension discretization class specialization //! declarations //! //--------------------------------...
<commit_before>/** @file crema.cpp @brief Main cremacc file and main() function @copyright 2014 Assured Information Security, Inc. @author Jacob Torrey <torreyj@ainfosec.com> A main function to read in an input. It will parse and perform semantic analysis on the input and either exit(0) if it passes ...
<commit_before>#include "../include/TamuraDistance.h" using namespace cv; using namespace std; double TamuraDistance::calc(const ImageData &dat1, const ImageData &dat2) { Mat S_best1 = calc_granularity_sbest(dat1.rgb_img); Mat S_best2 = calc_granularity_sbest(dat2.rgb_img); cout << "S_best histograms:" ...
<commit_before>/* * Copyright (c) 2003-2009, John Wiegley. 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,...
<commit_before>#pragma once #include "YukawaCartesian.hpp" #include "SemiAnalytical.hpp" #include "GaussQuadrature.hpp" #include "BEMConfig.hpp" class YukawaCartesianBEM : public YukawaCartesian { public: //! # of quadrature points unsigned K; // forward declaration struct Panel; //! The dimension of the K...
<commit_before>// vim: set sts=2 sw=2 et: // encoding: utf-8 // // Copyleft 2011 RIME Developers // License: GPLv3 // // 2011-04-24 GONG Chen <chen.sst@gmail.com> // #include <cctype> #include <string> #include <boost/bind.hpp> #include <boost/foreach.hpp> #include <rime/context.h> #include <rime/engine.h> #include <r...
<commit_before>// // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2013 Project Chrono // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file at the top level of the distribution // and at http://projectchrono.org/license-chrono...
<commit_before>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include "MemoryStream.h" #include <algorithm> #include <memory.h> using namespace leap; MemoryStream::MemoryStream(void) {} bool MemoryStream::Write(const void* pBuf, std::streamsize ncb) { if (buffer.size() - m_w...
<commit_before>#ifndef LEPP2_SPLIT_APPROXIMATOR_H__ #define LEPP2_SPLIT_APPROXIMATOR_H__ #include "lepp2/ObjectApproximator.hpp" #include "lepp2/models/ObjectModel.h" #include <deque> #include <map> #include <pcl/common/pca.h> #include <pcl/common/common.h> namespace lepp { /** * An ABC that represents the strateg...
<commit_before>// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be /...
<commit_before>#include "env_p.h" Qak::AndroidEnv::AndroidEnv(QObject *parent) : QObject(parent) { } QString Qak::AndroidEnv::obbPath() { #if defined(Q_OS_ANDROID) QAndroidJniObject mediaDir = QAndroidJniObject::callStaticObjectMethod( "android/os/Environment", "getExternalStorageDirectory", "()Ljava/io/...
<commit_before>/* $Id$ */ /* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell CppAD is distributed under multiple licenses. This distribution is under the terms of the Common Public License Vers...
<commit_before>/* * Copyright 2020 nelson85. * * 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 applicable law...
<commit_before>/* This file is part of Ingen. * Copyright (C) 2007 Dave Robillard <http://drobilla.net> * * Ingen 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 y...
<commit_before>#ifndef SLA_HOLLOWING_HPP #define SLA_HOLLOWING_HPP #include <memory> #include <libslic3r/SLA/Contour3D.hpp> #include <libslic3r/SLA/JobController.hpp> namespace Slic3r { class TriangleMesh; namespace sla { struct HollowingConfig { double min_thickness = 2.; double quality = 0.5;...