text
stringlengths
54
60.6k
<commit_before>#include <cassert> #include <NTL/mat_ZZ_p.h> #include <NTL/ZZ_p.h> #include <NTL/ZZ.h> #include <NTL/vec_ZZ_p.h> #include <NTL/vec_ZZ.h> #include <cmath> using namespace std; using namespace NTL; const ZZ w(12345), q((1LL << 31LL) - 1LL); const int l = 34; vec_ZZ decrypt(mat_ZZ_p S, vec_ZZ_p c); mat...
<commit_before>#include <random> #include <stdio.h> #include <assert.h> #include "src/linalgcpp.hpp" using namespace linalgcpp; void test_sparse() { const int size = 3; const int nnz = 5; SparseMatrix<double> A; { std::vector<int> indptr(size + 1); std::vector<int> indices(nnz); ...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: ImageHistogram1.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ITKC...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkThreadedImageAlgorithm.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for deta...
<commit_before>#include "ml/mart.h" #include "ml/data_container.h" #include "ml/learning_rate.h" #include "ml/regression_tree.h" MART::MART(LearningRate* learning_rate_) : learning_rate(learning_rate_) { if (learning_rate == NULL) { learning_rate = new ConstantLearningRate(0.9); } sigma = 1; } MART::~MART...
<commit_before>/************************************************************************ * QuickProf * * http://quickprof.sourceforge.net * * Copyright (C) 2006-2008 * * Tyl...
<commit_before>// Copyright (c) 2018 Michael C. Heiber // This source file is part of the Excimontec project, which is subject to the MIT License. // For more information, see the LICENSE file that accompanies this software. // The Excimontec project can be found on Github at https://github.com/MikeHeiber/Excimontec #...
<commit_before>// Moon Phase Calendar for Arduino, using Pro Trinket 3V/12MHz // Test support #include "arduino.hpp" // Arduino application #include "../arduino/MoonPhaseCalendar/MoonPhaseCalendar.ino" // Test program #include "lest.hpp" #include <iomanip> #include <ostream> template< typename T > T setbit( T cons...
<commit_before>#include <algorithm> #include "command.hh" #include "common-args.hh" #include "eval.hh" #include "globals.hh" #include "legacy.hh" #include "shared.hh" #include "store-api.hh" #include "filetransfer.hh" #include "finally.hh" #include "loggers.hh" #include "markdown.hh" #include <sys/types.h> #include <...
<commit_before>#include <iostream> #include <string> #include <openssl/sha.h> #include <assert.h> using namespace std; #include "brute.h" extern volatile bool strFound; int main() { string pwd="<,6F"; // generate sha hash from entered string and write it to pwdHash if(!generateSHA256(pwd.c_str(), pwd....
<commit_before>/* * Copyright (c) 2002-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>/* * 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 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope...
<commit_before>#include <osg/LOD> #include <algorithm> using namespace osg; void LOD::traverse(NodeVisitor& nv) { switch(nv.getTraversalMode()) { case(NodeVisitor::TRAVERSE_ALL_CHILDREN): std::for_each(_children.begin(),_children.end(),NodeAcceptOp(nv)); break; case(No...
<commit_before>/* This is a small tool that counts the number of nodes, ways, and relations in the input file. The code in this example file is released into the Public Domain. */ #include <cstdint> #include <iostream> #include <memory> #include <osmium/index/map/dummy.hpp> #include <osmium/index/map/sparse_...
<commit_before>#ifdef _MSC_VER #define _CRT_SECURE_NO_DEPRECATE #endif #include <assert.h> #include <cstring> #include <fstream> #include <regex> #include <string> #include <curl/curl.h> #include "json/json.h" #include "config.h" #include "dbo_project.h" #include "store_file.h" #include "util.h" const int DOWNLOAD_...
<commit_before>#ifdef _MSC_VER #define _CRT_SECURE_NO_DEPRECATE #endif #include <assert.h> #include <cstring> #include <fstream> #include <iterator> #include <regex> #include <string> #include <curl/curl.h> #include <json/json.h> #include "config.h" #include "dbo_project.h" #include "store_file.h" #include "util.h" ...
<commit_before>#include "dataaccess.h" #include "scientist.h" #include <QtSql> #include <iostream> // TEMP<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< #include <sstream> using namespace std; DataAccess::DataAccess() { db = QSqlDatabase::addDatabase("QSQLITE"); db.setDatabaseName("DataBase.sqlite"); // witch databa...
<commit_before>#include "dataaccess.h" #include "scientist.h" #include <QtSql> #include <iostream> // TEMP<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< #include <sstream> using namespace std; DataAccess::DataAccess() { db = QSqlDatabase::addDatabase("QSQLITE"); db.setDatabaseName("DataBase.sqlite"); // witch databa...
<commit_before>/*============================================================================== * FILE: RtlTest.cc * OVERVIEW: Provides the implementation for the RtlTest class, which * tests the RTL and derived classes *==========================================================================...
<commit_before>#define CATCH_CONFIG_RUNNER #include "catch.hpp" #include "variant.hpp" #include <cstdint> #include <limits> #include <string> #include <ostream> #include <memory> TEST_CASE( "variant version", "[variant]" ) { unsigned int version = VARIANT_VERSION; REQUIRE(version == 100); #if VARIANT_VERS...
<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 "base/iat_patch.h" #include "base/logging.h" namespace iat_patch { struct InterceptFunctionInformation { bool finishe...
<commit_before>/* * time.cpp * * Full implementation of Time cluster server. * Send ZCL attribute response to read request on Time Cluster attributes. * * 0x0000 Time / UTC Time seconds from 1/1/2000 * 0x0001 TimeStatus / Master(bit-0)=1, Superseding(bit-3)= 1, MasterZoneDst(bit-2)=1 * 0x0002 TimeZone...
<commit_before>// Locally Finite Constraint Satisfaction Problems // Bartek Klin, Eryk Kopczyski, Joanna Ochremiak, Szymon Toruczyk #include <stdlib.h> #include <sys/time.h> #include "../include/loisextra.h" #include <iostream> using namespace std; using namespace lois; long long getVa() { struct timeval tval;...
<commit_before>#include "kwm.h" extern std::vector<window_info> WindowLst; node_container LeftVerticalContainerSplit(screen_info *Screen, tree_node *Node) { node_container LeftContainer; LeftContainer.X = Node->Container.X; LeftContainer.Y = Node->Container.Y; LeftContainer.Width = (Node->Container.W...
<commit_before>/* * Copyright (C) 2015 Cloudius Systems, Ltd. */ #pragma once #include "types.hh" #include <iostream> #include <boost/range/iterator_range.hpp> template<typename T> static inline void write(std::ostream& out, T val) { auto n_val = net::ntoh(val); out.write(reinterpret_cast<char*>(&n_val), s...
<commit_before>/*********************************************************************** filename: Win32CEGuiRendererSelector.cpp created: 24/9/2004 author: Paul D Turner *************************************************************************/ /*****************************************************...
<commit_before>/*========================================================================= Library: CTK Copyright (c) 2010 Kitware 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 a...
<commit_before>/* * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. * Copyright (C) 2007 Google, 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. Redistributio...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2000-2009 Torus Knot Software Ltd Permission is hereby granted, free of charge, ...
<commit_before>/** @file @author Alexander Sherikov @copyright 2019 Alexander Sherikov. Licensed under the Apache License, Version 2.0. (see LICENSE or http://www.apache.org/licenses/LICENSE-2.0) @brief */ #include <qpmad/solver.h> int main() { Eigen::VectorXd x; Eigen::MatrixXd H; ...
<commit_before>#include <string> #include <algorithm> #include <cctype> #include <functional> #include <fstream> #include <set> #include <boost/asio.hpp> #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> #include <boost/foreach.hpp> #include <boost/program_options/detail/config_file.hpp> #include ...
<commit_before>#include "ClientRequestCache.h" static ClientRequestCache* clientRequestCache = NULL; ClientRequestCache::ClientRequestCache() { maxSize = 0; } ClientRequestCache* ClientRequestCache::Get() { if (clientRequestCache == NULL) clientRequestCache = new ClientRequestCache; return c...
<commit_before>#include <babylon/debug/bone_axes_viewer.h> #include <babylon/bones/bone.h> #include <babylon/math/axis.h> #include <babylon/meshes/mesh.h> namespace BABYLON { namespace Debug { BoneAxesViewer::BoneAxesViewer(Scene* iScene, Bone* iBone, Mesh* iMesh, float iScaleLines) ...
<commit_before>/************************************************************************* > Author: Wayne Ho > Purpose: TODO > Created Time: Fri Apr 17 16:32:22 2015 > Mail: hewr2010@gmail.com ************************************************************************/ #include "argparse/macro-argparse-jquery.hh" #i...
<commit_before>#include <functional> #include "threading.h" using namespace std; namespace base { struct start_thread_pool_args { ThreadPool* thrpool; int id_in_pool; }; void* ThreadPool::start_thread_pool(void* args) { start_thread_pool_args* t_args = (start_thread_pool_args *) args; t_args->thrpo...
<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>/************************************************************************************* * Copyright (C) 2012 by Alejandro Fiestas Olivares <afiestas@kde.org> * * * * This program is free software; you can r...
<commit_before>/************************************************************************************* * Copyright (C) 2012 by Alejandro Fiestas Olivares <afiestas@kde.org> * * * * This program is free software; you can r...
<commit_before>#include <ctime> #include <iostream> #include <cstdlib> #include <iterator> #include <dariadb.h> #include <ctime> #include <limits> #include <cmath> #include <chrono> #include <thread> #include <random> #include <cstdlib> #include <atomic> class BenchCallback :public dariadb::storage::ReaderClb { publi...
<commit_before>#include "bodyParts.hpp" #include <set> #include "creature.hpp" #include "world.hpp" #include "entity2DMap.hpp" #include "pheromoneMap.hpp" #include "obstacle.hpp" #include "point.hpp" // BodyPart bool BodyPart::isAccessible(Point p){ if(!p.isInBounds(world_->getDimensions())) return fals...
<commit_before>/* This file is part of the KDE project Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org> Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013. // 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>//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2018 Ryo Suzuki // Copyright (c) 2016-2018 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D/Script.hpp> # ...
<commit_before>#define BOOST_TEST_MODULE compositemodel/splitFaceSet #include <boost/test/unit_test.hpp> #include <fstream> #include "GoTools/compositemodel/SurfaceModel.h" #include "GoTools/compositemodel/ftSurface.h" #include "GoTools/compositemodel/CompositeModelFactory.h" #include "GoTools/compositemodel/Regulariz...
<commit_before>// Copyright (C) 2007-2014 CEA/DEN, EDF R&D // // 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.1 of the License, or (at your option) any later versi...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKC...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile: mitkPropertyManager.cpp,v $ Language: C++ Date: $Date: 2009-10-18 21:46:13 +0200 (So, 18 Okt 2009) $ Version: $Revision: 1.12 $ Copyright (...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date: 2009-10-18 21:46:13 +0200 (So, 18 Okt 2009) $ Version: $Revision: 1.12 $ Copyright (c) German Cancer Research Center, Division of Medical and...
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFCElementInfoModule.h // @Author : LvSheng.Huang // @Date : 2012-12-15 // @Module : NFCElementInfoModule // // ----------------------------------...
<commit_before>// STL #include <cassert> #include <iostream> #include <sstream> #include <fstream> #include <string> // DSIM #include <dsim/DSIM_Service.hpp> #include <dsim/config/dsim-paths.hpp> // ///////// M A I N //////////// int main (int argc, char* argv[]) { try { // Output log File std::string ...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_SPACE_INTERFACE_HH #define DUNE_GDT_SPACE_INTERFACE_HH #include <dune/c...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2017 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://open...
<commit_before>// This file is part of the dune-stuff project: // https://github.com/wwu-numerik/dune-stuff // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_STUFF_TOOLS_COMMON_VECTOR_HH #define DUNE_STUFF_TOOLS_COMMON_VECTOR_...
<commit_before>/* * main.cpp * * Created on: Jul 6, 2017 * Author: lorenzo.ditucci */ #define SIZE 2048 #include <cstdlib> #include <iostream> #include <string> #include <cstring> #include <CL/opencl.h> #include <CL/cl_ext.h> using namespace std; //Given an event, this function returns the kernel executi...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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 can obtain one ...
<commit_before><commit_msg>Properly find Frame from Node context<commit_after><|endoftext|>
<commit_before>#include <string> #include <iostream> #include "../stringtools.h" #include "../urbackupcommon/os_functions.h" #include <stdlib.h> #ifndef _WIN32 #include <unistd.h> #endif #define DEF_Server #include "../Server.h" const std::string btrfs_cmd="/sbin/btrfs"; CServer *Server; #ifdef _WIN32 #inc...
<commit_before>/* vim: set sw=4 sts=4 et foldmethod=syntax : */ #include <max_clique/dbmcsa_max_clique.hh> #include <max_clique/colourise.hh> #include <max_clique/print_incumbent.hh> #include <threads/atomic_incumbent.hh> #include <threads/queue.hh> #include <graph/degree_sort.hh> #include <graph/min_width_sort.hh> #...
<commit_before>#include "compiler.h" #include <iostream> #define EACH_CONS(var, init) for(Cons* var = regard<Cons>(init) ; typeid(*var) != typeid(Nil) ; var = (Cons*)regard<Cons>(var)->cdr) namespace Lisp { Compiler::Compiler() : context(llvm::getGlobalContext()), module(new llvm::Module("top", context)), builder(...
<commit_before>#include "cnn/nodes.h" #include "cnn/cnn.h" #include "cnn/training.h" #include "cnn/gpu-ops.h" #include "cnn/expr.h" #include <boost/archive/text_oarchive.hpp> #include <boost/archive/text_iarchive.hpp> #include <boost/algorithm/string.hpp> #include <sys/types.h> #include <sys/wait.h> #include <iostream...
<commit_before>#ifndef CLIENT_WSS_HPP #define CLIENT_WSS_HPP #include "client_ws.hpp" #ifdef USE_STANDALONE_ASIO #include <asio/ssl.hpp> #else #include <boost/asio/ssl.hpp> #endif namespace SimpleWeb { typedef asio::ssl::stream<asio::ip::tcp::socket> WSS; template <> class SocketClient<WSS> : public SocketCli...
<commit_before>// Copyright (C) 2010 and 2011 Marcin Arkadiusz Skrobiranda. // 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 copyri...
<commit_before>#include <clunk/hrtf.h> #include <clunk/buffer.h> #include <clunk/clunk_ex.h> #include <stddef.h> #include "kemar.h" #if defined _MSC_VER || __APPLE__ || __FreeBSD__ # define pow10f(x) powf(10.0f, (x)) # define log2f(x) (logf(x) / M_LN2) #endif namespace clunk { clunk_static_assert(Hrtf::WINDOW_BITS ...
<commit_before>#include "musicfileinformationwidget.h" #include "ui_musicfileinformationwidget.h" #include "musicuiobject.h" #include "musictime.h" #include "musicfileinformation.h" #include "musicbgthememanager.h" #include "musicmessagebox.h" #include <QDesktopServices> MusicFileInformationWidget::MusicFileInformati...
<commit_before>#include <Eigen/Core> #include <iostream> #include "timer.h" #include <Spectra/SymEigsSolver.h> #include <Spectra/GenEigsSolver.h> using namespace Spectra; using Eigen::MatrixXd; using Eigen::VectorXd; using Eigen::MatrixXcd; using Eigen::VectorXcd; void eigs_sym_Cpp(MatrixXd &M, VectorXd &init_resid...
<commit_before> <commit_msg>Delete 1.cpp<commit_after><|endoftext|>
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use t...
<commit_before>/* Copyright 2008 Brain Research Institute, Melbourne, Australia Written by J-Donald Tournier, 27/11/09. This file is part of MRtrix. MRtrix 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 Sof...
<commit_before>/* * Copyright (c) 2008-2016 the MRtrix3 contributors * * 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 can obtain one at http://mozilla.org/MPL/2.0/ * * MRtrix is distributed in the hope that...
<commit_before>#include "tileWorker.h" #include "platform.h" #include "tile/tile.h" #include "view/view.h" #include "scene/scene.h" #include "scene/styleContext.h" #include "tile/tileManager.h" #include "tile/tileID.h" #include "tile/tileTask.h" #include <algorithm> #define WORKER_NICENESS 10 namespace Tangram { T...
<commit_before>// kmaddrbook.cpp // Author: Stefan Taferner <taferner@kde.org> // This code is under GPL #include <config.h> #include "kmaddrbook.h" #include <kapplication.h> #include <kdebug.h> #include <qfile.h> #include <qregexp.h> #include <assert.h> #include <klocale.h> #include <kstandarddirs.h> #include <kmess...
<commit_before>#ifndef PATIENCESORT_HPP #define PATIENCESORT_HPP 1 #include <algorithm> #include <iostream> #include <iterator> #include <vector> #include "mergeSort.hpp" namespace PatienceSort { template<class RandomIt, class Compare> void MergePiles(std::vector<std::pair<RandomIt,RandomIt>> iteratorPairList, Com...
<commit_before>/******************************************************************************/ /* */ /* Copyright 2016-2017 Steven Dolly */ /* ...
<commit_before>#pragma once #include <fstream> namespace pecoff { constexpr uint16_t DOS_SIGNATURE = 0x5a4d; // MZ constexpr uint32_t PE_OFFSET_ADDRESS = 0x3c; constexpr uint32_t PE_SIGNATURE = 0x00004550; // PE\0\0 // Machine types namespace MACHINE_TYPES { constexpr uint16_t IMAGE_FILE_M...
<commit_before>/// /// @file pi_lmo3.cpp /// @brief Simple implementation of the Lagarias-Miller-Odlyzko prime /// counting algorithm. This implementation uses the segmented /// sieve of Eratosthenes to calculate S2(x). /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is ...
<commit_before>/************************************************************************* > File Name: SMPGCD2Interface.cpp > Author: xc > Descriptions: > Created Time: Wed 13 Jun 2018 01:14:59 PM EDT ************************************************************************/ #include "SMPGCInterface.h...
<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>// $Id: NMRSpectrum.C,v 1.10 2000/09/27 18:05:18 oliver Exp $ #include<BALL/NMR/NMRSpectrum.h> #include<BALL/NMR/randomCoilShiftProcessor.h> #include<BALL/NMR/johnsonBoveyShiftProcessor.h> #include<BALL/NMR/haighMallionShiftProcessor.h> #include<BALL/NMR/EFShiftProcessor.h> #include<BALL/NMR/anisotropyS...
<commit_before>// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <windows.h> #include <stdlib.h> #include <tchar.h> #include "base/at_exit.h" #include "base/command_line.h" #include "base/files/...
<commit_before>/* statistics.C * * Copyright (C) 2009 Marcel Schumann * * This file is part of QuEasy -- A Toolbox for Automated QSAR Model * Construction and Validation. * QuEasy is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * t...
<commit_before>/* * Rule.cpp * * Created on: 18 Feb 2014 * Author: s0565741 */ #include <limits> #include "Rule.h" #include "Parameter.h" #include "LatticeArc.h" #include "ConsistentPhrases.h" using namespace std; Rule::Rule(const LatticeArc &arc) :m_isValid(true) ,m_canExtend(true) { m_arcs.push_back(&a...
<commit_before>#include <MutilaDebug.h> #include "CountdownMode.h" #include "Matrix.h" CountdownMode_ CountdownMode; void CountdownMode_::start(const char* data) { startMs = millis(); n = String(data).toInt(); DBLN(F("CountdownMode::start")); Matrix.clear(); Matrix.paint(); Matrix.setFont(5); ...
<commit_before>/* * Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra * * This file is part of Essentia * * Essentia is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation (FSF),...
<commit_before>/** \file MediaTypeUtil.cc * \brief Implementation of Media Type utility functions. * \author Dr. Gordon W. Paynter * \author Dr. Johannes Ruscheinski */ /* * Copyright 2004-2008 Project iVia. * Copyright 2004-2008 The Regents of The University of California. * Copyright 2016 Univers...
<commit_before>// // Copyright (c) 2018 The nanoFramework project contributors // See LICENSE file in the project root for full license information. // #include "nf_devices_can_native.h" static const CLR_RT_MethodHandler method_lookup[] = { NULL, NULL, NULL, Library_nf_devices_can_native_nanoFramewor...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cfg_test.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: vg $ $Date: 2007-09-20 14:26:18 $ * * The Contents of this file are made ...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Co...
<commit_before>// Halide tutorial lesson 10: AOT compilation part 1 // This lesson demonstrates how to use Halide as an more traditional // ahead-of-time (AOT) compiler. // This lesson is split across two files. The first (this one), builds // a Halide pipeline and compiles it to a static library and // header. The s...
<commit_before>//===- lib/Support/Compressor.cpp -------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Reid Spencer and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===---...
<commit_before>#include <osg/Texture2D> #include <osg/TexGen> #include <osg/Material> #include <osg/LightSource> #include <osg/Geode> #include <osg/ShapeDrawable> #include <osgUtil/CullVisitor> #include <osgUtil/RenderToTextureStage> #include "CreateShadowedScene.h" using namespace osg; class CreateShadowTextureCul...
<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>/* This file is part of KDE Kontact. Copyright (c) 2001 Matthias Hoelzer-Kluepfel <mhk@kde.org> Copyright (c) 2002-2003 Daniel Molkentin <molkentin@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as p...
<commit_before>/* This file is part of KDE Kontact. Copyright (c) 2001 Matthias Hoelzer-Kluepfel <mhk@kde.org> Copyright (c) 2002-2003 Daniel Molkentin <molkentin@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published b...
<commit_before>// ========================================================================== // // This file is part of Sara, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2019 David Ok <david.ok8@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public // Licen...
<commit_before>/* * Copyright (c) 2002-2004 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>/************************************************************************** ** ** The MIT License (MIT) ** ** Copyright (c) 2016 Jean Gressmann ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and associated documentation files (the "Software")...
<commit_before>/* dhcpclient.cpp - dhcp client request handling * * (c) 2011-2014 Nicholas J. Kain <njkain at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistrib...
<commit_before>#ifndef FAKE_CPP #define FAKE_CPP #include <iostream> class DoubleSolenoid { public: enum Value { kForward, kReverse, kOff }; Value Get() { return kOff; } void Set(Value x) { } }; class Relay { public: enum Value { kForward, kReverse, kOff, kOn }; Value Get() { return kOn; ...
<commit_before>#include "glwidget.h" #include <QKeyEvent> #include <QOpenGLFramebufferObject> #include <QApplication> #include <QPainter> using namespace Vipster; GLWidget::GLWidget(QWidget *parent): QOpenGLWidget(parent) { for(auto *w: qApp->topLevelWidgets()){ if(auto *t = qobject_cast<MainWindow*>(...
<commit_before>#pragma once #include "json_utility.hpp" #include "simple_modifications.hpp" namespace krbn { namespace core_configuration { namespace details { class device final { public: device(const nlohmann::json& json) : json_(json), identifiers_(json_utility::find_copy(j...