text
stringlengths
54
60.6k
<commit_before>/* * Copyright (C) 2007 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, this list...
<commit_before>#include "vtkSmartPointer.h" #include "vtkActor.h" #include "vtkBrokenLineWidget.h" #include "vtkCamera.h" #include "vtkCommand.h" #include "vtkDataSetMapper.h" #include "vtkExtractSelection.h" #include "vtkInformation.h" #include "vtkLinearExtractor.h" #include "vtkMultiBlockDataSet.h" #include "vtkPol...
<commit_before>//@author A0112054Y #include "stdafx.h" #include "../state.h" #include "../controller.h" #include "get_task.h" namespace You { namespace QueryEngine { namespace Internal { namespace Action { const std::wstring GetTask::logCategory = Query::logCategory + L"[GetTask]"; std::unordered_map<Task::ID, Task...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2016-2017 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
<commit_before>#include <numpy_eigen/boost_python_headers.hpp> #include <sm/timing/TimestampCorrector.hpp> #include <boost/cstdint.hpp> template<typename TIME_T> void exportTimestampCorrector(const std::string & className) { using namespace boost::python; using namespace sm::timing; class_< TimestampCorrector...
<commit_before>#include <iomanip> #include <iostream> #include <stdint.h> #include <cstdlib> #include <string> #include <sstream> #include <vector> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stropts.h> #include <cstring> #include <sys/tihdr.h> #include <inet/mib2.h...
<commit_before>/* * Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin. * * libbitcoin is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free ...
<commit_before>//===-- llvm/CodeGen/GlobalISel/Legalizer.cpp -----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* * NNAdjust.cc * * Bumps up the strength of the edges connecting two nouns in a * noun-modifier (nn) relationship. Basically, if there is a * noun-modifier phrase, then make a stronger tie to make sure * that the two word senses corellate with each other. * * Copyright (c) 2008 Linas Vepsta...
<commit_before><commit_msg>give more tolerance to DirectML runs (#5564)<commit_after><|endoftext|>
<commit_before>//===-- AlphaAsmPrinter.cpp - Alpha LLVM assembly writer ------------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. //...
<commit_before>//===- MipsRegisterInfo.cpp - MIPS Register Information -== -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Bruno Cardoso Lopes and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //=...
<commit_before>//===- LoopExtractor.cpp - Extract each loop into a new function ----------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. //...
<commit_before>#include "headers/mainwindow.h" #include "headers/cryptogame.h" #include "ui_mainwindow.h" #include "QPushButton" #include <QLayoutItem> #include <QMessageBox> #include "headers/buttonarray.h" #include "headers/labelarray.h" #include "iostream" //for debugging MainWindow::MainWindow(QWidget *parent) : ...
<commit_before>// --------------------------------------------------------------------- // // Copyright (C) 2004 - 2015 by the deal.II authors // // This file is part of the deal.II library. // // The deal.II library is free software; you can use it, redistribute // it, and/or modify it under the terms of the GNU Lesse...
<commit_before>#include "xchainer/python/backprop_mode.h" #include <memory> #include <utility> #include <vector> #include <nonstd/optional.hpp> #include "xchainer/backprop_mode.h" #include "xchainer/context.h" #include "xchainer/graph.h" #include "xchainer/python/common.h" #include "xchainer/python/context.h" name...
<commit_before><commit_msg>Fixed compilation warning<commit_after><|endoftext|>
<commit_before>#include "datalayer.h" #include "persons.h" #include "sortings.h" #include <string> #include <vector> #include <fstream> #include <string> #include <iostream> #include <vector> #include <algorithm> using namespace std; const string FILENAME = "science.txt"; DataLayer::DataLayer() { // loadFromFile...
<commit_before><commit_msg>dependencies: Update JSON library to 3.7.0<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: weighhdl.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-09 14:50:32 $ * * The Contents of this file are made ...
<commit_before>/************************************************************************* * * $RCSfile: xmlaustp.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: mib $ $Date: 2000-11-20 10:15:09 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include "vtkSmartPointer.h" #include "vtkActor.h" #include "vtkCamera.h" #include "vtkCommand.h" #include "vtkDataSetMapper.h" #include "vtkExtractSelection.h" #include "vtkInformation.h" #include "vtkLinearExtractor.h" #include "vtkMultiBlockDataSet.h" #include "vtkPlaneSource.h" #include "vtkPointDat...
<commit_before>#pragma once #include <tuple> #include <utility> #include <core/function_traits.hpp> #include <core/traits.hpp> #include <core/tuple_meta.hpp> namespace fc { template <class... ports> struct mux_port; template <class op> struct unloaded_merge_port; template <class op, class... ports> struct loaded_merg...
<commit_before>/* * Copyright (c) 2017 Pedro Falcato * This file is part of Onyx, and is released under the terms of the MIT License * check LICENSE at the root directory for more information */ #include <stddef.h> #include <stdint.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #inc...
<commit_before>// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0 #include <bse/testing.hh> #include <bse/bsemain.hh> #include <bse/bse.hh> #include <bse/bseserver.hh> #include "ipc.hh" #include "testresampler.hh" #include "bse/internal.hh" // for Bse::Test::IntegrityCheck integration #define DEB...
<commit_before>// // Created by fanyang on 16-7-24. // #include "../graph.h" #include "../utils.h" #include <fstream> using namespace std; int main(int argc, char** argv) { auto path = getDataPath(); /* { string N = "1000000"; auto pG1 = Graph::fromFile(path + "/data/er_" + N + "_0.0001....
<commit_before>#include <cthun-client/connector/connector.hpp> #include <cthun-client/connector/uuid.hpp> #include <cthun-client/protocol/message.hpp> #define LEATHERMAN_LOGGING_NAMESPACE CTHUN_CLIENT_LOGGING_PREFIX".connector" #include <leatherman/logging/logging.hpp> #include <boost/date_time/posix_time/posix_time...
<commit_before>#include "blockbrowser.h" #include "ui_blockbrowser.h" #include "main.h" #include "wallet.h" #include "base58.h" #include "clientmodel.h" #include "bitcoinrpc.h" #include "transactionrecord.h" #include "txdb.h" #include <sstream> #include <string> using namespace std; double getBlockHardness(int64 hei...
<commit_before>// demo.cpp // // Here is an example on how to use the descriptor presented in the following paper: // A. Alahi, R. Ortiz, and P. Vandergheynst. FREAK: Fast Retina Keypoint. In IEEE Conference on Computer Vision and Pattern Recognition, 2012. // // // Copyright (C) 2011-2012 Signal processing la...
<commit_before>#include <stdexcept> #include "vtrc-stdint.h" #include "vtrc/common/sizepack-policy.h" #include "vtrc/common/data-queue.h" #include "vtrc/common/exception.h" namespace vtrc { namespace common { namespace data_queue { struct queue_base::impl { plain_data_type data_; std::d...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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 "sigcache.h" #include "memusage.h" #include "pubkey.h" #...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 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 "script/standard.h" #include "pubkey.h" #include "script...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2017-2020 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "script/standar...
<commit_before>#include <fc/exception/exception.hpp> #include <boost/exception/all.hpp> #include <fc/log/logger.hpp> #include <fc/io/json.hpp> #include <iostream> namespace fc { FC_REGISTER_EXCEPTIONS( (timeout_exception) (file_not_found_exception) (parse_error...
<commit_before>// ------------------------------------------------------------------------ // audioio-jack.cpp: Interface to JACK audio framework // Copyright (C) 2001,2002 Kai Vehmanen (kai.vehmanen@wakkanet.fi) // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU Ge...
<commit_before>/* * Copyright (C) 2014 Pelagicore AB * All rights reserved. */ #include <iostream> #include <stdio.h> #include <sys/types.h> #include <signal.h> #include <unistd.h> #include <fcntl.h> #include "dbusgateway.h" #include "pelagicontain-common.h" DBusGateway::DBusGateway(ProxyType type, const std::s...
<commit_before>/* Crystal Space Windowing System: Default listbox skin Copyright (C) 2001 Christopher Nelson 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; either ver...
<commit_before>class Solution { public: /* 题意为求最长回文子串, 直接枚举子串首尾位置再判断是否会问,时间复杂度为O(N^3), 换个思路,枚举回文串的对称中心位置,向两侧扫描检测最长回文长度时间复杂度为O(N^2) 对于最长回文子串问题有对应O(N)算法--Manacher算法 笔者觉得面试中应当不会有这么高的要求,有兴趣可以自行了解该算法 */ string longestPalindrome(string s) { string str = "", ans = ""; int len = ...
<commit_before>/* * Map.cpp * * Created on: Apr 22, 2014 * Author: user */ #include "Map.h" Map::Map(int rows, int columns, double resolution) { // TODO: input checks _resolution = resolution; float fixed_resolution = 1 / resolution; _rows = ceil(rows * fixed_resolution); _columns = ceil(columns * ...
<commit_before>#include "metperson.h" using namespace std; METPerson::METPerson(){ first_name = ""; last_name = ""; middle_name = ""; age = 21; sex = OTHER; social_security_number = "000-00-0000"; } METPerson::~METPerson(){ } METPerson::METPerson(string f, string l, string m, int a, GENDER g, st...
<commit_before>#include "SMU.h" #include "libsmu/libsmu.hpp" #include "Plot/PhosphorRender.h" #include "Plot/FloatBuffer.h" void registerTypes() { qmlRegisterType<SessionItem>(); qmlRegisterType<DeviceItem>(); qmlRegisterType<ChannelItem>(); qmlRegisterType<SignalItem>(); qmlRegisterType<ModeItem>(...
<commit_before>// Adobe Leaked Email Checker // Date: December 2013 // Author: Jervis Muindi // Standard Lib Header #include <iostream> #include "common/strings/strutil.h" #include "common/log/log.h" #include "third_party/leveldb/leveldb.h" #include "alec.h" using namespace std; namespace alec { bool Credentia...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: tp_SeriesToAxis.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2007-06-11 14:58:16 $ * * The Contents of this file a...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "...
<commit_before>// // Copyright (c) articy Software GmbH & Co. KG. All rights reserved. // #include "Slate/AssetPicker/ArticyObjectFilterHelpers.h" #include "ArticyObject.h" #include "Interfaces/ArticyObjectWithDisplayName.h" #include "Interfaces/ArticyObjectWithText.h" #include "Interfaces/ArticyObjectWithSpeak...
<commit_before>#include "MicroBit.h" /* The underlying Nordic libraries that support BLE do not compile cleanly with the stringent GCC settings we employ * If we're compiling under GCC, then we suppress any warnings generated from this code (but not the rest of the DAL) * The ARM cc compiler is more tolerant. We do...
<commit_before>#include "generic.h" #include <algorithm> generic_manager::generic_manager(moltengamepad* mg, generic_driver_info& descr) : device_manager(mg) { this->name = descr.name.c_str(); this->devname = descr.devname.c_str(); mapprofile.name = name; this->descr = &descr; split = descr.split; flatte...
<commit_before>#include "type.hpp" #include <vector> #include <sstream> #include "ast.hpp" #include "tool.hpp" namespace type { static const bool debug = false; static const auto make_constant = [](const char* name, kind::any k=kind::term()) { return make_ref<constant>(constant{symbol(name), k}); }; static co...
<commit_before>#include "mainwindow.h" #include "pagefactory.h" #include "dcppage.h" #include "maintranslations.h" #include <duiscenemanager.h> #include <QtDebug> #include <duiaction.h> #include <duiapplication.h> #include "dcpappletdb.h" MainWindow::MainWindow() { Pages::Handle handle = {Pages::MAIN, ""}; // Pa...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2016 ArangoDB GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may o...
<commit_before>#include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <sstream> #include <list> #include <queue> #include <string> #include <ctime> #include "jsoncpp/json.h" using namespace std; const int MAX_N = 25; const int dx[4] = {-1, 0, 1, 0}; const int dy[4] = {0, 1, 0, -1}; bool...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: out_position.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: hr $ $Date: 2007-11-02 16:42:30 $ * * The Contents of this file are m...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: out_position.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-07 18:02:50 $ * * The Contents of this file are m...
<commit_before>#include "physics/Environment.hpp" #include "SimulatorWindow.hpp" #include "SimulatorGLUTThread.hpp" #include <QApplication> #include <QFile> #include <QThread> #include <stdio.h> #include <signal.h> using namespace std; void quit(int signal) { fprintf(stderr, "Exiting due to signal %d\n", signal); ...
<commit_before>/* * simulator.cpp - interface for simulator * Copyright 2018 MIPT-MIPS */ // Configurations #include <infra/config/config.h> #include <infra/exception.h> // Simulators #include <func_sim/func_sim.h> #include <modules/core/perf_sim.h> // ISAs #include <mips/mips.h> #include <risc_v/risc_v.h> #inc...
<commit_before> // Copyright 2019 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>#include <Windows.h> #include <debugger/client/run.h> #include <debugger/client/stdinput.h> #include <base/util/format.h> #include <base/path/self.h> #include <base/hook/replacedll.h> std::string create_install_script(vscode::rprotocol& req, const fs::path& dbg_path, const std::wstring& port) { auto& a...
<commit_before>#include "RigidBodyEditor.hpp" #include <Engine/Component/RigidBody.hpp> #include <Engine/Component/Shape.hpp> #include <Engine/Entity/Entity.hpp> #include <Engine/Manager/Managers.hpp> #include <Engine/Manager/PhysicsManager.hpp> #include <imgui.h> namespace GUI { void RigidBodyEditor::Show(Compon...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007, 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>#include <type_traits> #include <algorithm> #include <sstream> #include <mipp.h> #include "Tools/Exception/exception.hpp" #include "Tools/general_utils.h" #include "Modem_optical.hpp" using namespace aff3ct; using namespace aff3ct::module; //std::vector<std::vector<float>> llrs; //size_t llr_idx; te...
<commit_before>// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Engine - Network module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Network/Posix/IpAddressImpl.hpp> #include <Nazara/Core/CallOnExit.hpp> #include <Nazara/Core/Error.hpp> #inclu...
<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 <string> #include "base/command_line.h" #include "base/logging.h" #include "base/process_util.h" #include "base/string_number...
<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 "content/renderer/media/render_audiosourceprovider.h" #include "base/basictypes.h" #include "base/logging.h" #include "third_...
<commit_before>#include <SFML/Graphics.hpp> #include <SFML/Network.hpp> #include <iostream> #include <random> #include <thread> #include <sstream> using namespace std; int main() { sf::TcpSocket socket; string ip = "172.31.247.41"; string portString = ""; string pseudo =""; int port = 80; int ...
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved. // // 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>//The MIT License (MIT) // //Copyright (c) 2015 // //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>/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2012, hiDOF INC. // Copyright (C) 2013, PAL Robotics S.L. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met...
<commit_before>#include <GL/gl3w.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <iostream> #include <fstream> #include <string> #include <vector> #include <camera.h> #include <controls.h> #include <lights/lightlist.h> #include <materials/phongmaterial.h> #include <renderwindow.h> #include...
<commit_before>#define DEBUG 1 /** * File : C.cpp * Author : Kazune Takahashi * Created : 11/9/2019, 9:10:42 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stack...
<commit_before>#define DEBUG 1 /** * File : D.cpp * Author : Kazune Takahashi * Created : 11/9/2019, 10:48:55 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stac...
<commit_before>/* Why ? : To learn minimax algo To Do: 1) Menu ? 2) Minimax algo for perfect game A.I */ #include <iostream> #include <cstring> using namespace std; int board[10]; int win_combos[][3] = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 }, { 1, 4, 7 }, { 2, 5, 8 }, { 3, 6, 9 }, { 1, 5, 9 }, { 3, 5, 7 ...
<commit_before>/***************************************************************************** * Copyright © 2011-2012 VideoLAN * $Id$ * * Authors: Ludovic Fauvet <etix@l0cal.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as pub...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do ...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do ...
<commit_before>#pragma once /* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #ifndef _QIMESSAGING_DETAILS_FUNCTIONTYPE_HXX_ #define _QIMESSAGING_DETAILS_FUNCTIONTYPE_HXX_ #include <boost/fusion/include/mpl.hpp> #include <boost/mpl/for_each.hpp> #include <boost/mpl/transform_view.hpp> #i...
<commit_before>// Copyright Toru Niina 2019. // Distributed under the MIT License. #ifndef TOML11_SERIALIZER_HPP #define TOML11_SERIALIZER_HPP #include "value.hpp" #include "lexer.hpp" #include <limits> namespace toml { struct serializer { serializer(const std::size_t w = 80, const...
<commit_before><commit_msg>gtktiledviewer: invoke lok::Office::postKeyEvent() on key press / release<commit_after><|endoftext|>
<commit_before><commit_msg>gtktiledviewer: Replace deprecated Gtk functions<commit_after><|endoftext|>
<commit_before><commit_msg>Planning: set planning as not-ready when reference fails to update.<commit_after><|endoftext|>
<commit_before>// Copyright 2011 Google Inc. All Rights Reserved. // // 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>/* * Copyright 2016 WebAssembly Community Group participants * * 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 * * Unl...
<commit_before>#include <sstream> #include "TargetWordInsertionFeature.h" #include "Phrase.h" #include "TargetPhrase.h" #include "Hypothesis.h" #include "ChartHypothesis.h" #include "ScoreComponentCollection.h" #include "TranslationOption.h" #include "UserMessage.h" namespace Moses { using namespace std; TargetWordI...
<commit_before>/* * ArduinoNunchuk.cpp - Improved Wii Nunchuk library for Arduino * * Copyright 2011-2013 Gabriel Bianconi, http://www.gabrielbianconi.com/ * * Project URL: http://www.gabrielbianconi.com/projects/arduinonunchuk/ * * Based on the following resources: * http://www.windmeadow.com/node/42 * ht...
<commit_before>// Copyright (c) 2010 - 2013 Leap Motion. All rights reserved. Proprietary and confidential. #include "stdafx.h" #include "CoreContext.h" #include "Autowired.h" #include "BoltBase.h" #include "CoreThread.h" #include "GlobalCoreContext.h" #include "OutstandingCountTracker.h" #include "ThreadStatusMaintain...
<commit_before>/* * opencog/atomspace/ImportanceIndex.cc * * Copyright (C) 2008-2011 OpenCog Foundation * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free Software Foundation a...
<commit_before>/* * attention/AttentionModule.cc * * Copyright (C) 2008 by OpenCog Foundation * All Rights Reserved * * Written by Misgana Bayetta && Roman Treutlein * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * p...
<commit_before>#include "Diagnostics.h" #include <clang/Basic/SourceManager.h> #include <clang/Sema/SemaDiagnostic.h> namespace ccons { DiagnosticsProvider::DiagnosticsProvider(llvm::raw_os_ostream& out) : _tdp(out, false, true, false) , _diag(this) { _diag.setDiagnosticMapping(clang::diag::ext_implicit_function_...
<commit_before>/** * For conditions of distribution and use, see copyright notice in license.txt * * @file FunctionDialog.cpp * @brief Dialog for invoking Qt slots (i.e. functions) of entities and components. */ #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "FunctionDialog.h" #include "...
<commit_before>#include <iostream> #include "EightQueens.h" namespace EightQueensProblem { bool EightQueensSolver::eightQueens( bool spotTaken[8][8], int numQueensPositioned ) {//Does the main line of work by recursively calling itself. spotTaken is an array of bools representing a board (spaces numbered 0...7 in e...
<commit_before> #include "odrive_main.h" Encoder::Encoder(const EncoderHardwareConfig_t& hw_config, Config_t& config) : hw_config_(hw_config), config_(config) { // Calculate encoder pll gains // This calculation is currently identical to the PLL in SensorlessEstimator float...
<commit_before>#include <headers/bruteforcecrack.h> #include <headers/md5.h> #include <QFuture> #include <QThread> #include <QtConcurrent/QtConcurrent> #include <QtConcurrent/QtConcurrentRun> #include <QtConcurrent/qtconcurrentrun.h> //base conversion: http://stackoverflow.com/questions/8870121/c-template-for-conversi...
<commit_before>#include "mitkSlicedGeometry3D.h" #include "mitkPlaneGeometry.h" #include <vecmath.h> #include <vtkTransform.h> #ifdef MBI_INTERNAL extern "C" { #include "ipDicom.h" } #endif //##ModelId=3DCBF50C0377 mitk::Geometry2D* mitk::SlicedGeometry3D::GetGeometry2D(int s) const { mitk::Geometry2D::Pointer geo...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>#include <iostream> #include <cstring> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <string> #include <vector> #include <math.h> #include <stdlib.h> #define PI 3.14159265 using namespace cv; using namespace std; double getDistance(double realDimention, double ...
<commit_before>/* This file is part of the MinSG library. Copyright (C) 2007-2012 Benjamin Eikel <benjamin@eikel.org> Copyright (C) 2007-2012 Claudius Jähn <claudius@uni-paderborn.de> Copyright (C) 2007-2012 Ralf Petring <ralf@petring.net> This library is subject to the terms of the Mozilla Public License, v. 2....
<commit_before>/// @file /// @version 3.03 /// /// @section LICENSE /// /// This program is free software; you can redistribute it and/or modify it under /// the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause #include <hltypes/exception.h> #include <hltypes/harray.h> #include "MultiPlaylist.h...
<commit_before>#include <common/buffer.h> #include <event/action.h> #include <event/callback.h> #include <event/event_system.h> #include <io/pipe.h> #include <xcodec/xcodec.h> #include <xcodec/xcodec_encoder.h> #include <xcodec/xcodec_encoder_pipe.h> XCodecEncoderPipe::XCodecEncoderPipe(XCodec *codec) : encoder_(co...
<commit_before>/* * ImageProcessing.cpp * Robert Collins */ #include <jni.h> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "ImageProcessing.h" using namespace std; using namespace cv; extern "C" jboolean Java_com_software_corvidae_imageproc_CameraActivity_ImageProcessing ( ...
<commit_before>// ***************************************************************************************************************************** // math_misc.hpp // Miscellaneous Math Functions // Author(s): Cory Douthat // Copyright (c) 2017 Cory Douthat, All Rights Reserved. // ***************************************...