text
stringlengths
54
60.6k
<commit_before>#include <Style.h> using namespace canvas; Style::Style(const std::string & s) : color(s) { } Style::Style(const Color & _color) : color(_color) { } Style & Style::operator=(const std::string & s) { color = s; type = SOLID; return *this; } Style & Style::operator=(const Color & _color) { colo...
<commit_before>// Copyright © 2014, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. // // Author: Christian Kellner...
<commit_before>#include <v8.h> #include <node.h> #include <clutter/clutter.h> #include "clutter.hpp" #include "actor.hpp" namespace clutter { using namespace node; using namespace v8; Actor::Actor() : ObjectWrap() {} void Actor::Initialize(Handle<Object> target) { HandleScope scope; Local<FunctionTemplate> tp...
<commit_before>/* This file is part of the Multivariate Splines library. Copyright (C) 2012 Bjarne Grimstad (bjarne.grimstad@gmail.com) 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 ...
<commit_before>#include <iostream> #include <SDL2/SDL.h> void logSdlError(std::ostream &os, const std::string &msg) { os << msg << " error: " << SDL_GetError() << std::endl; } int main(int argc, char **argv) { if (SDL_Init(SDL_INIT_EVERYTHING) != 0) { logSdlError(std::cerr, "SDL_Init"); return 1; } } <c...
<commit_before>#include "board.hpp" #include <cstring> #include <boost/lexical_cast.hpp> #include "exception.hpp" #include "walk_move.hpp" namespace Quoridor { Board::Board(int row_num, int col_num) : sides_(), pawn_sides_(), walls_(), occ_nodes_(), pawn_nodes_(), bg_() { set_size(row_num, col_num); ...
<commit_before>#include "box2d.hpp" #include <exception> #include <iostream> #include <stdexcept> Box2D::Box2D(Box2D && obj) { swap(obj); } Box2D & Box2D::operator = (Box2D const & obj) { if (this == &obj) return *this; Box2D tmp(obj); swap(tmp); return *this; } Box2D & Box2D::operator = (Box2D && obj) { ...
<commit_before>#include <stdlib.h> #include <arpa/inet.h> #include <arpa/nameser.h> #include <resolv.h> #include <ares.h> #include <iostream> #include <memory> #include "cache.h" #include "skull_protos.h" using namespace skull::service::dns; #define MAX_DNS_REPLY_ADDRS 100 #define MAX_RECORD_EXPIRED_TIME 2 // unit...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chain.h" using namespace std; /** * CChain implementation ...
<commit_before>// Copyright (c) 2012-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "coins.h" #include "consensus/consensus.h" #include "memusage.h" #include "random.h" #include <asse...
<commit_before>#pragma once #include <QString> namespace chatterino { static const char *ANONYMOUS_USERNAME_LABEL = " - anonymous - "; namespace providers { namespace twitch { static const char *ANONYMOUS_USERNAME = "justinfan64537"; } // namespace twitch } // namespace providers } // namespace chatterino <co...
<commit_before>#include "dDNNF.h" #include <unordered_map> double dDNNF::dDNNFEvaluation(gate_t g) const { static std::unordered_map<gate_t, double> cache; auto it = cache.find(g); if(it!=cache.end()) return it->second; double result; if(getGateType(g)==BooleanGate::IN) result = getProb(g); els...
<commit_before>/*$Id$ * * This source file is a part of the Berlin Project. * Copyright (C) 2000 Stefan Seefeld <stefan@berlin-consortium.org> * http://www.berlin-consortium.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * Lic...
<commit_before>// (C) Copyright Gennadiy Rozental 2001-2005. // (C) Copyright Beman Dawes 2001. // 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) // See http://www.boost.org/libs/test for the library home p...
<commit_before>/* Copyright (c) 2003, 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>/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
<commit_before>/* Copyright (c) 2008, 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) 2008, 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>/* * IceWM * * Copyright (C) 1998-2003 Marko Macek & Nehal Mistry * * Changes: * * 2003/06/14 * * created gnome2 support from gnome.cc */ #include "config.h" #ifdef CONFIG_GNOME_MENUS #include "ylib.h" #include "default.h" #include "ypixbuf.h" #include "yapp.h" #include "sysdep.h" ...
<commit_before>#include <gtest/gtest.h> #include <string> #include <vector> #include <cstdio> #include <cstring> #include <algorithm> #include <csignal> #include <misc/size.hpp> #include <signals.h> class Command { private: std::vector<std::string> args; public: Command(const char *cmdName) : args{cmdName} ...
<commit_before>#undef NDEBUG //because we are using assert to check actual operations that cannot be skipped in release mode testing #include <cassert> #include <exodus/program.h> programinit() function main() { TRACE(osgetenv("PATH")) TRACE(osgetenv()) TRACE(oslist()) assert(osshellread("./testcommandline...
<commit_before>/* * Copyright (c) 2012 The Backplane Incorporated, * Vinay Hiremath * * 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 limit...
<commit_before>#include"all_defines.hpp" #include"objects.hpp" #include"heaps.hpp" #include"types.hpp" #include<cstdlib> #include<stdint.h> /*----------------------------------------------------------------------------- Semispaces -----------------------------------------------------------------------------*/ Semisp...
<commit_before>#include"all_defines.hpp" #include"objects.hpp" #include"heaps.hpp" #include"types.hpp" #include<cstdlib> #include<stdint.h> /*----------------------------------------------------------------------------- Semispaces -----------------------------------------------------------------------------*/ Semisp...
<commit_before>/******************************************************************************* Copyright (c) 2014, Jan Koester jan.koester@gmx.net All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * R...
<commit_before>/****************************************************************************** * Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com) * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following * conditions a...
<commit_before>#define CATCH_CONFIG_MAIN #include "catch.hpp" #include "comparator.hpp" using namespace std; using namespace OLC; TEST_CASE("comparator methods", "[comparator]") { vector<Nucleotide> first; first.push_back(Nucleotide(NucleotideLetter(0x03))); first.push_back(Nucleotide(NucleotideLetter(0x01)))...
<commit_before>#include "lexer.hpp" #include <cctype> #include <algorithm> #include <iterator> #include <vector> namespace klang { namespace { using const_iterator = std::string::const_iterator; } Token::Token() : type_(TokenType::UNKNOWN), str_(), line_(-1) {} Token::Token(TokenType type, const std::string& st...
<commit_before>#ifdef MALLOC_PROF #include <google/tcmalloc.h> #include <stdio.h> #include <perfmon.hpp> perfmon_duration_sampler_t pm_operator_new("operator_new", secs_to_ticks(1.0)), pm_operator_delete("operator_delete", secs_to_ticks(1.0)); void* operator new(size_t size) { block_pm_...
<commit_before> // This file contains definition of C++ new/delete operators #include <stddef.h> #include <malloc.h> #include "stdexcept.h" namespace std { void terminate(); } typedef void (*new_handler)(); static new_handler new_handl = &std::terminate; namespace std { new_handler set_new_handler(new_ha...
<commit_before><commit_msg>fix out of bounds access in matc<commit_after><|endoftext|>
<commit_before>#pragma once #include <openMVG/keyframe/SharpnessSelectionPreset.hpp> #include <openMVG/features/features.hpp> #include <openMVG/dataio/FeedProvider.hpp> #include <openMVG/voctree/vocabulary_tree.hpp> #include <OpenImageIO/imageio.h> #include <string> #include <vector> #include <memory> #include <limit...
<commit_before>/* * This file is part of the Polkit-qt project * Copyright (C) 2009 Daniel Nicoletti <dantti85-pk@yahoo.com.br> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; ei...
<commit_before>/** @file @brief Implementation @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, 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 ...
<commit_before>// Copyright (c) 2014 Google, Inc. // // 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, modify, m...
<commit_before>#include "coverage.h" #include "featurecoverage.h" #include "feature.h" #include "featureiterator.h" #include "drawingcolor.h" #include "drawers/drawerfactory.h" #include "rootdrawer.h" #include "table.h" #include "range.h" #include "itemrange.h" #include "identifieritem.h" #include "identifierrange.h" #...
<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: dateitem.cxx,v $ * $Revision: 1....
<commit_before>#include <type_traits> namespace dp { template < typename T, std::size_t D > inline DopeVectorExtent<T, D>::DopeVectorExtent(const std::array<std::size_t, D> &size) : DopeVector<T, D>() , _arrayPtr(nullptr) { resize(size); } template < typename T, std::size_t D > inline DopeVectorExtent<T,...
<commit_before>/**************************************************************************** * * Copyright (c) 2013, 2014 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are m...
<commit_before>// (C) Copyright Gennadiy Rozental 2002-2003. // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied warranty, // and with no claim as to its suitability...
<commit_before>#include "Helper.h" #include "cmath" #include "time.h" #include <QDir> #include <QCoreApplication> #include <QDateTime> void Helper::randomInit() { int seconds = time(NULL); int milliseconds = QTime::currentTime().msec(); int process_id = QCoreApplication::applicationPid(); srand(seconds + milliseco...
<commit_before>#pragma once // C++ standard library #include <vector> #include <utility> #include <memory> // Armadillo #include <armadillo> // Mantella #include <mantella_bits/helper/printable.hpp> #include <mantella_bits/optimisationProblem.hpp> namespace mant { #if defined(MANTELLA_USE_MPI) void mpiGetBestPara...
<commit_before>/************************************************************************* * * $RCSfile: fmdispatch.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2004-04-13 11:01:15 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: frmselimpl.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 23:23:12 $ * * The Contents of this file are mad...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtNetwork module of the Qt Toolkit. ** ** $QT_BEGI...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>//============================================================================== // Property editor widget //============================================================================== #include "propertyeditorwidget.h" //=========================================================================...
<commit_before>// Sleep #include <chrono> #include <thread> int main() { std::chrono::milliseconds sleepDuration(20); std::this_thread::sleep_for(sleepDuration); } // Block the execution of a thread for a given amount of time. // // On [8], we create a [`std::chrono::milliseconds`](cpp/chrono/duration) // object...
<commit_before><commit_msg>use C++11 iteration<commit_after><|endoftext|>
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before><commit_msg>fdo#53487 SwUndoInsert: take care of fieldmarks when deleting field chars<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: inpdlg.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: hr $ $Date: 2007-09-27 11:49:46 $ * * The Contents of this file are made a...
<commit_before><commit_msg>fdo#40948: TOC dialog, Entries tab: the right arrow button does not work<commit_after><|endoftext|>
<commit_before>//******************************************************************* // // License: LGPL // // See LICENSE.txt file in the top level directory for more details. // // Author: Garrett Potts // // Description: Nitf support class // //******************************************************************** ...
<commit_before><commit_msg>coverity#738911 Uninitialized pointer field<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: wrtsh3.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: hr $ $Date: 2006-08-14 18:05:26 $ * * The Contents of this file are made a...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/isteps/istep16/call_host_activate_master.C $ ...
<commit_before>/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 Ben Vanik. All rights reserved. ...
<commit_before>// Copyright 2016 Peter Georg // // 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...
<commit_before>#include <common/buffer.h> #include <common/endian.h> #include <event/event_callback.h> #include <io/pipe/pipe.h> #include <io/pipe/pipe_pair.h> #include <xcodec/xcodec.h> #include <xcodec/xcodec_cache.h> #include <xcodec/xcodec_decoder.h> #include <xcodec/xcodec_encoder.h> #include <xcodec/xcodec_has...
<commit_before>/* * Copyright (c) 2017 SUSE LLC * * All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as published * by the Free Software Foundation. * * This program is distributed in the hope that ...
<commit_before>#include "ompl/extensions/ode/ODEStateSpace.h" #include "ompl/util/Console.h" #include <boost/lexical_cast.hpp> #include <limits> #include <queue> ompl::control::ODEStateSpace::ODEStateSpace(const ODEEnvironmentPtr &env, double positionWeight, double lin...
<commit_before>#include "report.hpp" #include "account.hpp" #include "account_type.hpp" #include "balance_sheet_report.hpp" #include "entry.hpp" #include "finformat.hpp" #include "locale.hpp" #include "ordinary_journal.hpp" #include "pl_report.hpp" #include "report_panel.hpp" #include "phatbooks_database_connection.hpp...
<commit_before>#include "PROFILE.H" #include "GPU.H" #include "SPECIFIC.H" #include <LIBAPI.H> static struct SCALE scales[3] = { { 260, 0, 2 }, { 130, 1, 3 }, { 65, 2, 5 } }; char ProfileDraw; int numprof; static unsigned long EHbl; static int grid; static short divisor; static short nummarks; static short final...
<commit_before>#include "SFX.H" #include "SOUND.H" #include "SPUSOUND.H" #include "SPECIFIC.H" #include <LIBSPU.H> long SPU_Play(long sample_index, short volume_left, short volume_right, short pitch, int arg_10) { long channel; sva.volume.left = volume_left; sva.volume.right = volume_right; sva.pitch = pitch >>...
<commit_before>// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2012 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Lic...
<commit_before>// This file is part of the ustl library, an STL implementation. // // Copyright (C) 2005 by Mike Sharov <msharov@users.sourceforge.net> // This file is free software, distributed under the MIT License. // // memblock.cc // // Allocated memory block. // #include "mistream.h" #include "memblock.h" #inclu...
<commit_before>#include <iostream> #include <sstream> #include <fstream> #include <iomanip> #include <string> #include <string> #include <set> // Loriano: let's try Armadillo quick code #include <armadillo> #define ENTDIM 8 #define COORDIM (ENTDIM-2) #define PARAMDIM 5 namespace { int numofline (const char * fna...
<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 <stdlib.h> #include "base/logging.h" #include "gpu/command_buffer/service/command_buffer_service.h" #include "gpu/comman...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Bastian Holst <bastianholst@gmx.de> // Copyright 2012 Moha...
<commit_before>#include <iostream> #include <fstream> #include <string> // Loriano: let's try Armadillo quick code #include <armadillo> #define ENTDIM 8 #define COORDIM (ENTDIM-2) #define PARAMDIM 5 namespace { int numofline (const char * fname) { int number_of_lines = 0; std::string line; std::i...
<commit_before>/** * \file ApplyGainFilter.cpp */ #include "ApplyGainFilter.h" #include <cassert> #include <cmath> #include <cstdint> namespace ATK { template<typename DataType_> ApplyGainFilter<DataType_>::ApplyGainFilter(int nb_channels) :Parent(2 * nb_channels, nb_channels) { output_delay = 1; } ...
<commit_before>//===-- SILOpt.cpp - SIL Optimization Driver ------------------------------===// // // 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>//===-- SILOpt.cpp - SIL Optimization Driver ------------------------------===// // // 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>#include <pamix.hpp> #include <unistd.h> #include <configuration.hpp> #include <condition_variable> #include <queue> #include <csignal> // GLOBAL VARIABLES Configuration configuration; bool running = true; // sync main and callback threads std::mutex updMutex; std::condition_variable cv; std::queue<...
<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 "Test.h" #include "SkBitmapCache.h" #include "SkCanvas.h" #include "SkDiscardableMemoryPool.h" #include "SkGraphics.h" #include "SkResourceCache.h" #in...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2018 whitequark <whitequark@whitequark.org> * * 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 ...
<commit_before>/* socket.io-arduino-client: a Socket.IO client for the Arduino Based on the Kevin Rohling WebSocketClient Copyright 2013 Bill Roy 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 Sof...
<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>/*========================================================================= * * Copyright RTK 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><commit_msg>Trying to allow deepest setbacks throughout eco scale.<commit_after><|endoftext|>
<commit_before><commit_msg>TODO-721: gearing up to sending first secure frames<commit_after><|endoftext|>
<commit_before><commit_msg>TODO-786: WIP<commit_after><|endoftext|>
<commit_before>#include "MCWin32.h" // should be first include. #include "MCHashMap.h" #include <stdlib.h> #include <string.h> #include "MCDefines.h" #include "MCArray.h" #include "MCString.h" #include "MCUtils.h" #include "MCLog.h" #include "MCIterator.h" #include "MCAssert.h" using namespace mailcore; namespace ...
<commit_before>/**************************************************************************** * This file is part of Qt AccountsService Addon. * * Copyright (C) 2015 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> * * Author(s): * Pier Luigi Fiorini * * $BEGIN_LICENSE:GPL2+$ * * This program is free softwa...
<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> #include "Column.h" //==[ EXAMPLE ]======================================================== using Utility::Column; using Utility::AccessMap; class Example : private AccessMap<Example, int> , private AccessMap<Example, double> , private AccessMap<Example, std::string> { ...
<commit_before>//// License: Apache 2.0. See LICENSE file in root directory. //// Copyright(c) 2020 Intel Corporation. All Rights Reserved. #include "depth-to-rgb-calibration.h" #include <librealsense2/rs.hpp> #include "core/streaming.h" #include "calibrated-sensor.h" #include "context.h" #include "api.h" // VALIDATE...
<commit_before>#include "sqloxx_tests_common.hpp" #include "derived_po.hpp" #include "../database_connection.hpp" #include "../detail/sql_statement_impl.hpp" #include "../detail/sqlite_dbconn.hpp" #include "../sql_statement.hpp" #include <boost/filesystem.hpp> #include <jewel/stopwatch.hpp> #include <cassert> #include ...
<commit_before>/*************************************************************************** * Copyright (C) 2003 by Unai Garro * * ugarro@users.sourceforge.net * * ...
<commit_before>/// /// @file pmath.hpp /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef PMATH_HPP #define PMATH_HPP #include <stdint.h> #include <cmath> #include <vector> #include <...
<commit_before>/* * Copyright (C) 2013-2016 Alexander Saprykin <xelfium@gmail.com> * * 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; either version 2 of the License, or * (at your o...
<commit_before>#include "prune.hpp" namespace vg { constexpr size_t PRUNE_THREAD_BUFFER_SIZE = 128 * 1024; pair_hash_set<edge_t> find_edges_to_prune(const HandleGraph& graph, size_t k, size_t edge_max) { // Each thread collects edges to be deleted into a separate buffer. When the buffer grows // large enoug...
<commit_before>#include "quads.hpp" #include <cstddef> // for offsetof Quads::Quads() { glGenBuffers(1, &vertexAndTextureBuf); glGenBuffers(1, &transformBuf); glGenBuffers(1, &indexBuf); } RealQuadID vertexNumberToRealQuadID(unsigned i) { return RealQuadID{i / Quad::QUAD_COMPONENTS}; } unsigned realQuadIDToVertex...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libmeegotouch. ** ** If you have questions regarding t...
<commit_before>#include <iostream> #include <string> #include <boost/tokenizer.hpp> #include <vector> #include <queue> #include <stdio.h> #include <cstring> #include <sys/wait.h> #include <sys/types.h> using namespace std; using namespace boost; class Connectors //abstract base class so we can dynam...
<commit_before>#pragma once #include <vector> #include <fstream> #include <iostream> #include "concurrentqueue.h" #include "camera.hpp" #include "light.hpp" #include "object.hpp" #include "color.hpp" #include "utility.hpp" #include "ray.hpp" class Scene { public: struct { unsigned thread_worker = std::thread::h...
<commit_before>/* * ============================================================================ * Filename: slave.hxx * Description: Slave side implementation for flihabi network * Version: 1.0 * Created: 04/26/2015 02:40:40 AM * Revision: none * Compiler: gcc * ...
<commit_before>#include <taichi/common/util.h> #include <taichi/common/task.h> #include <taichi/visual/gui.h> #include "sound.h" TC_NAMESPACE_BEGIN constexpr int n = 30; constexpr real room_size = 10.0_f; constexpr real dx = room_size / n; constexpr real c = 340; constexpr real alpha = 0.001; Array3D<real> p, q, r; ...
<commit_before>#include <map> #include <vector> #include <string> #include <iomanip> #include <iostream> #include <fstream> #include <algorithm> #include <set> #include "table.hpp" #include "expression.hpp" #include "simple_ra.hpp" using namespace RelationalAlgebra; const Schema& Table::getSchema() const { retur...