text
stringlengths
54
60.6k
<commit_before>/* Copyright 2016 Carnegie Mellon University * * 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 a...
<commit_before>#ifndef _4fac367e_60d1_4c71_8690_910625d21ebd #define _4fac367e_60d1_4c71_8690_910625d21ebd namespace fn{ namespace fn_ { template<typename T, size_t N_> class Ring { auto static const N = N_ + 1; size_t p0 = 0; size_t p1 = 0; struct T_mem { uint8_t mem[sizeof(T)]; }; T_mem data...
<commit_before>#include <stdlib.h> #include <assert.h> #include <float.h> #include "strategy.h" #include "strategy_evaluator.h" #include "strategy_evaluation_context.h" #include "estimator.h" #include "resource_weights.h" #include <vector> #include <set> #include "small_set.h" #include "debug.h" Strategy::Strategy(e...
<commit_before>#include "nlnscg.h" namespace utils { nlnscg::nlnscg(unsigned n, const vec& metric) : n(n), metric(metric), k(0), g2(0), p( vec::Zero(n) ) { } void nlnscg::operator()(vec& x) { if( k > 0 ) { g = old - x; const real tmp = metric.size() ? g.dot( metric.cwiseProduct(g)...
<commit_before><commit_msg>Linux gcc4.4 fix: stop crashing when loading flash. sizeof(bool) is 1 byte in opt mode. We pass a pointer to a bool to a function expecting a void*. It writes 4 bytes of data to the pointer, rather than 1 byte. This corrupts the stack bordering the bool stack variable, thereby manifesting ...
<commit_before>// For conditions of distribution and use, see copyright notice in LICENSE #include "StableHeaders.h" #include "CoreStringUtils.h" #include <QTextStream> QString QStringFromWCharArray(const wchar_t *string, int size) { QString qstr; if (sizeof(wchar_t) == sizeof(QChar)) return qstr.fro...
<commit_before>//--------------------------------------------------------------------------// /// Copyright (c) 2017 by Milos Tosic. All Rights Reserved. /// /// License: http://www.opensource.org/licenses/BSD-2-Clause /// //------------------------------------------------------------------...
<commit_before>/* * Copyright (C) 2006, 2007, 2008 Apple Inc. 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. Redistributions of source code must retain the above copyright * notice...
<commit_before>#include "glincludes.h" #include <osg/GLExtensions> PFNGLVERTEXATTRIBPOINTERPROC glVertexAttribPointer = nullptr; PFNGLENABLEVERTEXATTRIBARRAYPROC glEnableVertexAttribArray = nullptr; PFNGLDISABLEVERTEXATTRIBARRAYPROC glDisableVertexAttribArray = nullptr; PFNGLBINDVERTEXARRAYPROC glBindVertexArray = nul...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2018, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met:...
<commit_before>/* * Copyright (C) 2008 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>#include "nan.h" #include "marker-index.h" using namespace v8; using std::set; class MarkerIndexWrapper : public Nan::ObjectWrap { public: static void Init(Local<Object> exports, Local<Object> module) { Local<FunctionTemplate> constructorTemplate = Nan::New<FunctionTemplate>(New); con...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met:...
<commit_before>/* * NetworkServer.cpp * * Created on: 07.04.2016 * Author: Marc Hartung */ #include "../../include/network_impl/NetworkServer.hpp" namespace NetOff { NetworkServer::NetworkServer() : NetworkMember(), _tcpsock(nullptr) { } NetworkServer::~NetworkS...
<commit_before>//===----------------------------------------------------------------------===// // // PelotonDB // // simple_optimizer.cpp // // Identification: /peloton/src/optimizer/simple_optimizer.cpp // // Copyright (c) 2016, Carnegie Mellon University Database Group // //===---------------...
<commit_before>/***************************************************************************** * \author * Erwin Aertbelien, Div. PMA, Dep. of Mech. Eng., K.U.Leuven * * \version * LRL V0.2 * * \par History * - $log$ * * \par Release * $Id: trajectory_composite.cpp 22 2004-09-21 08:58:54Z eaertbellocal...
<commit_before>#include <limits.h> // UINT32_MAX #include <stddef.h> // size_t #include <time.h> #include "u_rand.h" namespace u { static constexpr size_t kSize = 624; static constexpr size_t kPeriod = 397; static constexpr size_t kDiff = kSize - kPeriod; static constexpr uint32_t kMatrix[2] = { 0, 0x9908B0DF }; //...
<commit_before>#include <osgParticle/ParticleSystem> #include <vector> #include <osg/Drawable> #include <osg/CopyOp> #include <osg/State> #include <osg/Matrix> #include <osg/GL> #include <osg/StateSet> #include <osg/Texture2D> #include <osg/BlendFunc> #include <osg/TexEnv> #include <osg/Material> #include <osg/Notify...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>/** \copyright * Copyright (c) 2013, Balazs Racz * 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>/** * Copyright (C) 2006 Brad Hards <bradh@frogmouth.net> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this...
<commit_before>//=========================================== // Lumina-DE source code // Copyright (c) 2015, Ken Moore // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== #include "syntaxSupport.h" QStringList Custom_Syntax::availableRu...
<commit_before>/************************************************************************* * * $RCSfile: dp_sfwk.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2004-11-09 14:13:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/************************************************************************* * * $RCSfile: dp_sfwk.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2004-09-08 16:50:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>// // Created by monty on 30/07/16. // #include <map> #include <memory> #include <functional> #include <EASTL/vector.h> #include <EASTL/array.h> using eastl::vector; using eastl::array; #include <sg14/fixed_point> #include <EASTL/vector.h> #include <EASTL/array.h> using sg14::fixed_point; using eastl...
<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 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 ...
<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 <config.h> // When defined, different heap allocators can be used via an environment // variable set before running the progr...
<commit_before>#include "webcam.hpp" using namespace cv; using namespace std; int main (int argc, char** argv) { CvCapture* capture = 0; int width, height, fps; capture = cvCaptureFromCAM(0); if (!capture) { printf("No camera detected!"); return -1; } ifstream configFile (".config"); if (configFile.is...
<commit_before><commit_msg>Resolves: tdf#91392 orig map for orig code paths, and new map for new path<commit_after><|endoftext|>
<commit_before>#include <EtFramework/stdafx.h> #include "EcsTestUtilities.h" #include <catch2/catch.hpp> #include <rttr/registration> #include <thread> #include <chrono> #include <mainTesting.h> #include <EtFramework/ECS/EcsController.h> TEST_CASE("command buffer reparent", "[ecs]") { fw::EcsController ecs; //...
<commit_before>#include "webcam.hpp" using namespace cv; using namespace std; int main (int argc, char** argv) { CvCapture* capture = 0; int width, height, fps; capture = cvCaptureFromCAM(0); if (!capture) { printf("No camera detected!"); return -1; } ifstream configFile (".config"); if (configFile.is...
<commit_before><commit_msg>vcl: odd conditional whitespacing removed<commit_after><|endoftext|>
<commit_before>#include "webcam.hpp" #include <chrono> using namespace cv; using namespace std; Mat ellipticKernel(int width, int height = -1) { if (height==-1) { return getStructuringElement(MORPH_ELLIPSE,Size(width,width), Point(width/2, width/2)); } else { return getStructuringElement(MORPH_ELLIPSE,Size(widt...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: salvd.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: obo $ $Date: 2006-09-17 12:46:20 $ * * The Contents of this file are made a...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qbs. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** Commercial License Usage ** Licensees holding valid commercial Qt lice...
<commit_before>//individual.cpp #include <vector> #include <cstdlib> #include <iostream> #include "individual.hpp" #include "utils.hpp" Individual::Individual(){ expression = new Node(); } Individual::~Individual(){ delete expression; } Node *Individual::crossover(double crossover_rate, Individual parent){...
<commit_before>/*----------------------------------------------------------------------------- This source file is part of Hopsan NG Copyright (c) 2011 Mikael Axin, Robert Braun, Alessandro Dell'Amico, Björn Eriksson, Peter Nordin, Karl Pettersson, Petter Krus, Ingo Staack This file is provided "as is", w...
<commit_before>// // inpalprime.cpp // InPal // // Created by Bryan Triana on 6/21/16. // Copyright © 2016 Inverse Palindrome. All rights reserved. // #include "inpalprime.hpp" #include <cmath> #include <vector> #include <string> #include <algorithm> long long inpal::max_prime(long long n) { auto primes = ...
<commit_before>//Adjust the code to handle Strings of type Dna, Dna5 and AminoAcid. Print the text on screen and observe how it changes depending on the type of the string. #include <iostream> #include <seqan/sequence.h> int computeLocalScore(seqan::String<char> subText, seqan::String<char> pattern) { int localSc...
<commit_before>#include "iotsa.h" #include "iotsaInput.h" #include "iotsaConfigFile.h" #define DEBOUNCE_DELAY 50 // 50 ms debouncing #ifdef ESP32 static void dummyTouchCallback() {} #endif // ESP32 static bool anyWakeOnTouch; static uint64_t bitmaskButtonWakeHigh; static int buttonWakeLow; void IotsaInputMod::setup...
<commit_before>#include "javaObject.h" #include "java.h" #include "javaScope.h" #include "utils.h" #include <sstream> #include <algorithm> /*static*/ std::map<std::string, v8::Persistent<v8::FunctionTemplate>*> JavaObject::sFunctionTemplates; /*static*/ void JavaObject::Init(v8::Handle<v8::Object> target) { } /*stat...
<commit_before>#include "ghost/config.h" #include "ghost/types.h" #include "ghost/densemat.h" #include "ghost/util.h" #include "ghost/math.h" #include "ghost/tsmttsm.h" #include "ghost/tsmttsm_gen.h" #include "ghost/tsmttsm_avx_gen.h" #include <map> using namespace std; static bool operator<(const ghost_tsmttsm_para...
<commit_before>/* * Copyright (C) 2009, 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. */ #include <libport...
<commit_before>#include "scraps/utility.h" #include "scraps/format.h" #include <cctype> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> #include <string> #include <vector> #if !SCRAPS_WINDOWS #include <termios.h> #include <unistd.h> #endif #if __clang__ || __GNUC__ #include <cxxabi.h> #...
<commit_before>#include "./label_node.h" #include <QPainter> #include <QImage> #include <QPoint> #include <Eigen/Core> #include <Eigen/Geometry> #include "./graphics/texture_address.h" #include "./graphics/shader_program.h" #include "./importer.h" #include "./math/eigen.h" #include "./labelling/labeller_frame_data.h" ...
<commit_before>#ifndef UTILITY_H #define UTILITY_H #include <string> #include <vector> #include <sstream> #include <omp.h> #include <cstring> #include <algorithm> #include <unistd.h> #include "vg.pb.h" #include "sha1.hpp" #include "Variant.h" namespace vg { using namespace std; char reverse_complement(const char& c...
<commit_before>/************************************************************************* * * $RCSfile: updatesvc.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: rt $ $Date: 2003-04-17 13:20:24 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include "version.hpp" // Get the git version macro from the build system #include "vg_git_version.hpp" // Do the same for the build environment info #include "vg_environment_version.hpp" #include <iostream> #include <sstream> namespace vg { using namespace std; // Define all the strings as the mac...
<commit_before>#include "config.h" #ifdef CONFIG_XFREETYPE #include "ystring.h" #include "ypaint.h" #include "yxapp.h" #include "intl.h" #include <stdio.h> #ifdef CONFIG_FRIBIDI // remove deprecated warnings for now... #include <fribidi/fribidi-config.h> #if FRIBIDI_USE_GLIB+0 #include <glib.h> #undef G_GNUC_...
<commit_before>#include "libtommath/mp_2expt.c" #include "libtommath/mp_abs.c" #include "libtommath/mp_add.c" #include "libtommath/mp_add_d.c" #include "libtommath/mp_addmod.c" #include "libtommath/mp_and.c" #include "libtommath/mp_clamp.c" #include "libtommath/mp_clear.c" #include "libtommath/mp_clear_multi.c" #includ...
<commit_before>/***************************************************************************** * * * OpenNI 1.x Alpha * * Copyright (C) 2012 PrimeSense Ltd. ...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef STORED_VALUE_H #define STORED_VALUE_H 1 #include <climits> #include <cstring> #include <algorithm> #include "common.hh" #include "item.hh" #include "locks.hh" extern "C" { extern rel_time_t (*ep_current_time)()...
<commit_before>// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "atom/common/native_mate_converters/net_converter.h" #include <string> #include <vector> #include "atom/common/native_mate_converters/gurl_converter.h" #inclu...
<commit_before>// Begin CVS Header // $Source: /fs/turing/cvs/copasi_dev/copasi/scan/CScanTask.cpp,v $ // $Revision: 1.83 $ // $Name: $ // $Author: jpahle $ // $Date: 2011/05/24 17:30:48 $ // End CVS Header // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc....
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2013, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // ...
<commit_before>// SinkFacility.cpp // Implements the SinkFacility class #include <sstream> #include <limits> #include <boost/lexical_cast.hpp> #include "SinkFacility.h" #include "Logger.h" #include "GenericResource.h" #include "CycException.h" #include "MarketModel.h" using namespace std; using boost::lexical_cast;...
<commit_before>#include "qztest.h" #include "testquazip.h" #include "testquazipfile.h" #include "testquachecksum32.h" #include "testjlcompress.h" #include <quazip/quazip.h> #include <quazip/quazipfile.h> #include <QCoreApplication> #include <QDir> #include <QFileInfo> #include <QTextStream> #include <QtTest/QtTest> ...
<commit_before>/**************************************************************************** * Copyright (c) 2012-2018 by the DataTransferKit authors * * All rights reserved. * * ...
<commit_before>/** * This file is part of the CernVM File System. */ #define __STDC_FORMAT_MACROS #include "authz_curl.h" #include <openssl/err.h> #include <openssl/ssl.h> #include <pthread.h> #include <cassert> #include "authz/authz_session.h" #include "duplex_curl.h" #include "duplex_ssl.h" #include "logging.h" ...
<commit_before>// ======================================================================== // // Copyright 2009-2017 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>/****************************************************************************** * Turbo C++11 metaprogramming Library * * * * Copyright (C) 2013 - 2014, Manuel Sánchez Pérez ...
<commit_before>/******************************************************************************\ * File: main.cpp * Purpose: main for wxExtension cpp unit testing * Author: Anton van Wezenbeek * RCS-ID: $Id$ * Created: za 17 jan 2009 11:51:20 CET * * Copyright (c) 2009 Anton van Wezenb...
<commit_before>// Halide tutorial lesson 15: Generators part 1 // This lesson demonstrates how to encapsulate Halide pipelines into // resuable components called generators. // On linux, you can compile and run it like so: // g++ lesson_15*.cpp ../tools/GenGen.cpp -g -std=c++11 -I ../include -L ../bin -lHalide -lpthr...
<commit_before>/* obtainkeysjob.cpp This file is part of libkleopatra, the KDE keymanagement library Copyright (c) 2005 Klarlvdalens Datakonsult AB Libkleopatra 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...
<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/chromeos/options/wifi_config_view.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "ba...
<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/command_line.h" #include "chrome/browser/browser.h" #include "chrome/browser/debugger/devtools_client_host.h" #include "...
<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/command_line.h" #include "chrome/browser/automation/ui_controls.h" #include "chrome/browser/browser.h" #include "chrome/...
<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 "base/command_line.h" #include "base/path_service.h" #include "base/string_util.h" #include "base/utf_string_conversions.h" #i...
<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 "base/command_line.h" #include "base/path_service.h" #include "base/stringprintf.h" #include "base/utf_string_conversions.h" #...
<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/browser/renderer_host/backing_store.h" BackingStore::BackingStore(const gfx::Size& size) : size_(size) { i...
<commit_before>// Copyright (c) 2012 House of Life Property Ltd. All rights reserved. // Copyright (c) 2012 Crystalnix <vgachkaylo@crystalnix.com> // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/facebook_chat/chat_popup.h" #incl...
<commit_before>// Copyright (c) 2006-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. // // This file defines specific implementation of BrowserDistribution class for // Google Chrome. #include "chrome/installer/util...
<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 <string> #include <vector> #include "chrome/installer/util/language_selector.h" #include "testing/gtest/include/gtest/gtest.h...
<commit_before>//===--- TerminalDisplayWin.h - Output To Windows Console -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// Problem 9 from Project Euler // http://projecteuler.net/problem=9 #include <cmath> #include <array> #include <numeric> #include <iostream> int main() { std::array<unsigned int, 1000> range; std::iota(range.begin(), range.end(), 1); for (unsigned int a = 0; a < 997; a++) { unsigned i...
<commit_before><commit_msg>tdf#84294: vcl: fix PDF export of transparent Writer frames in LO 4.3<commit_after><|endoftext|>
<commit_before>#define SKEW_GC_MARK_AND_SWEEP #import <skew.h> namespace Log { void info(const Skew::string &text) {} void warning(const Skew::string &text) {} void error(const Skew::string &text) {} } #import "compiled.cpp" #import <skew.cpp> #import <ncurses.h> ///////////////////////////////////////////////...
<commit_before>//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2019 Ryo Suzuki // Copyright (c) 2016-2019 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once ////////////////...
<commit_before><commit_msg>remove spurious xDocStorage temp<commit_after><|endoftext|>
<commit_before>// // Current author and maintainer: Grzegorz Jaskiewicz // gj at pointblue.com.pl // // Kopete initial author: // Copyright (C) 2002-2003 Zack Rusin <zack@kde.org> // // gaducommands.h - all basic, and not-session dependent commands // (meaning you don't have to be logged in for any // of these). ...
<commit_before>/************************************************************************** ** ** Copyright (c) 2013 Hugues Delorme ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** a...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2002 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. Red...
<commit_before>/** -*- c++ -*- * networkaccount.cpp * * Copyright (c) 2000-2002 Michael Haeckel <haeckel@kde.org> * Copyright (c) 2002 Marc Mutz <mutz@kde.org> * * This file is based on work on pop3 and imap account implementations * by Don Sanders <sanders@kde.org> and Michael Haeckel <haeckel@kde.org> * * T...
<commit_before>/* -*- mode: C++; c-file-style: "gnu" -*- regexplineedit.cpp This file is part of KMail, the KDE mail client. Copyright (c) 2004 Ingo Kloecker <kloecker@kde.org> KMail is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pu...
<commit_before>#include "kontsevich_graph_sum.hpp" #include "util/cartesian_product.hpp" #include "util/sort_pairs.hpp" #include <algorithm> #include <map> template <class T> void KontsevichGraphSum<T>::reduce() { auto current_term = this->begin(); while (current_term < this->end()) { current_term-...
<commit_before>#pragma once #include <type_traits> #include "ksp_plugin/plugin.hpp" // DLL-exported functions for interfacing with Platform Invocation Services. #if defined(CDECL) # error "CDECL already defined" #else // Architecture macros from http://goo.gl/ZypnO8. // We use cdecl on x86, the calling convention ...
<commit_before>#include "bitcoinaddressvalidator.h" /* Base58 characters are: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" This is: - All numbers except for '0' - All uppercase letters except for 'I' and 'O' - All lowercase letters except for 'l' User friendly Base58 input can map - ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/ ** ** This file is part of the QtQml module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** GNU Lesser General P...
<commit_before>// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // Decodes the blocks generated by block_builder.cc. #include "table/block.h" #inclu...
<commit_before>// Input: // 32 digit key, then // 8 digit nonce, then // plaintext (cyphertext) digits // // Output: // 8 digit nonce, then // cyphertext (plaintext) digits #include <stdio.h> #include <inttypes.h> #include <cstdint> std::uint32_t rotl(std::uint32_t v, std::uint32_t shift) { shift = shif...
<commit_before>/* * about_dialog.cpp * PHD Guiding * * Created by Sylvain Girard. * Copyright (c) 2013 Sylvain Girard. * All rights reserved. * * This source code is distributed under the following "BSD" license * Redistribution and use in source and binary forms, with or without * modification, are p...
<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>// Comprehensive benchmark demonstrating sharing of cores for different // workloads. // // When built, accepts an arbitrary number of argument pairs: (workload, cpu) // and launches the given workloads in separate threads on the given CPUs. // // For example: // // ./thread-workload-benchmark accum 0 ...
<commit_before>// Copyright 2018 The Fuchsia 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 "engine.h" #include <sstream> #include "flutter/common/task_runners.h" #include "flutter/fml/task_runner.h" #include "flutter/she...
<commit_before>/* * Copyright (c) 2015, Christian Menard * Copyright (c) 2015, Nils Asmussen * All rights reserved. * * Redistribution and use in source and binary forms, with or without * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following ...
<commit_before>#include "messagehub/messagehub.h" MessageHub::MessageHub(std::string id, std::string hostip, int listenPort) : context(1) , inSock(context, ZMQ_PULL), outSock(context, ZMQ_PUSH) { identity = id; inQueue = std::queue<Message>(); outQueue = std::queue<std::pair<std::string, zmq::message_t> >(...
<commit_before>//***************************************************************************** /*! * 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/L...
<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) //==================================================...