text
stringlengths
54
60.6k
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl> // // 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 requir...
<commit_before>#include "AlembicMetadataUtils.h" #include <icustattribcontainer.h> #include <custattrib.h> #include "AlembicObject.h" Alembic::Abc::ICompoundProperty getCompoundFromObject(Alembic::Abc::IObject& object) { const Alembic::Abc::MetaData &md = object.getMetaData(); if(Alembic::AbcGeom::IXform::mat...
<commit_before>/* * Copyright 2010-2011 Alessandro Francescon * * 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...
<commit_before>/* Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al. 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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sdgmoitm.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2007-04-11 16:09:23 $ * * The Contents of this file are made ...
<commit_before>/** * @file lsh_test.cpp * * Unit tests for the 'LSHSearch' class. */ #include <mlpack/core.hpp> #include <mlpack/core/metrics/lmetric.hpp> #include <boost/test/unit_test.hpp> #include "old_boost_test_definitions.hpp" #include <mlpack/methods/lsh/lsh_search.hpp> #include <mlpack/methods/neighbor_sea...
<commit_before>/* * UNIX signal.h for Mickey Scheme * * Copyright (C) 2013 Christian Stigen Larsen * Distributed under the LGPL 2.1; see LICENSE */ #include <signal.h> #include <errno.h> #include "mickey.h" static const int SIGHANDLERS = 31; static closure_t* sighandlers[SIGHANDLERS] = {NULL}; /* * Dispatch si...
<commit_before>#include "Toast.h" #include "../utils/compiler.h" USING_NS_CC; Toast *Toast::makeText(cocos2d::Scene *scene, const std::string &text, Duration duration) { Toast *ret = new (std::nothrow) Toast(); if (ret != nullptr && ret->initWithText(scene, text, duration)) { ret->autorelease(); ...
<commit_before>#include "argument_list.hpp" #include "process.hpp" #include "log/log.hpp" #include <unistd.h> #include <sys/wait.h> #include <sys/types.h> #include <system_error> #include <iostream> #include <boost/filesystem.hpp> gorc::process::process(path const &executable, argument_list cons...
<commit_before>// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layoutUI/CQLayoutMainWindow.cpp,v $ // $Revision: 1.11 $ // $Name: $ // $Author: urost $ // $Date: 2007/06/01 08:31:42 $ // End CVS Header // Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual // Prop...
<commit_before>// @(#)root/core/meta:$Id$ // Author: Paul Russo 30/07/2012 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/** * Clever programming language * Copyright (c) 2011-2012 Clever Team * * 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 limita...
<commit_before>#include <cassert> #include <sstream> #include <aikido/statespace/RealVectorStateSpace.hpp> #include <aikido/statespace/RealVectorJointStateSpace.hpp> #include <aikido/statespace/SO2StateSpace.hpp> #include <aikido/statespace/SO2JointStateSpace.hpp> #include <aikido/statespace/SO3StateSpace.hpp> #include...
<commit_before>/****************************************************************************** This source file is part of the Avogadro project. This source code is released under the 3-Clause BSD License, (see "LICENSE"). ******************************************************************************/ #include "ba...
<commit_before>#pragma once #include <map> #include <utki/shared.hpp> #include <papki/file.hpp> #include <puu/tree.hpp> namespace morda{ class resource; class context; /** * @brief Resource loader. * This class manages application recources loading from puu resource description scripts. * * Format of reso...
<commit_before>/** * This file is part of the CernVM File System. */ #include "io_dispatcher.h" #include <cassert> #include <cerrno> #include "file.h" #include "processor.h" #include "chunk.h" #include "file_processor.h" #include "../util_concurrency.h" using namespace upload; void IoDispatcher::ScheduleWrite(Ch...
<commit_before>// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #include <opencv2/core.hpp> #include <opencv2/calib3d.hpp> #include <opencv2/cvconfig.h> #include <opencv2/hig...
<commit_before>// Copyright © 2017 Dmitriy Khaustov // // 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 applicabl...
<commit_before>#include "Toolchain.h" #include "dtasm.h" #include "dtemu.h" #include <iostream> #include <cstdlib> #ifdef WIN32 #include <io.h> #define mktemp _mktemp #endif void DCPUToolchain_CycleHook(vm_t* vm, uint16_t pos, void* ud) { } void DCPUToolchain_WriteHook(vm_t* vm, uint16_t pos, void* ud) { DCPUToo...
<commit_before>#ifndef ITER_SLIDING_WINDOW_HPP_ #define ITER_SLIDING_WINDOW_HPP_ #include "iterbase.hpp" #include <deque> #include <utility> #include <iterator> namespace iter { template <typename Container> class SlidingWindow; template <typename Container> SlidingWindow<Container> sliding_window(C...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2008 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documenta...
<commit_before>#pragma once #include "boilerplate.hpp" struct DiophantineSolution { int x; int y; int dx; int dy; }; void assign(Z& a, Z& b, Z aval, Z bval) { a = aval; b = bval; } /// Solve linear diophantine equation ax + by = c. If there is no solution /// (iff gcd(a, b) does not divide c), fails. Returns s...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2008, Rice University * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follo...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: pe_vari.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: hr $ $Date: 2006-06-19 12:05:39 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: pe_vari.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-07 18:30:58 $ * * The Contents of this file are made a...
<commit_before>#include "output_ts_base.h" #include <mist/bitfields.h> namespace Mist{ TSOutput::TSOutput(Socket::Connection &conn) : TS_BASECLASS(conn){ packCounter = 0; ts_from = 0; setBlocking(true); sendRepeatingHeaders = 0; lastHeaderTime = 0; } void TSOutput::fillPacket(char const *dat...
<commit_before>// Copyright (C) 2010, Vaclav Haisman. All rights reserved. // // Redistribution and use in source and binary forms, with or without modifica- // tion, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // ...
<commit_before>// moderngpu copyright (c) 2016, Sean Baxter http://www.moderngpu.com #pragma once #include <random> #include <algorithm> #include <cuda.h> #include "launch_box.hxx" BEGIN_MGPU_NAMESPACE //////////////////////////////////////////////////////////////////////////////// // Launch a grid given a number of...
<commit_before>#include <GLFW/glfw3.h> #include "imgui3D.h" #include "cameraManipulator.h" namespace ospray { //! dedicated namespace for 3D glut viewer widget namespace imgui3D { // ------------------------------------------------------------------ // base manipulator // -----------------------------...
<commit_before>// -*-c++-*- #include <osgProducer/Viewer> #include <osgDB/ReadFile> #include <osg/Geode> #include <osg/Geometry> #include <osg/StateSet> #include <osg/Material> #include <osg/Texture2D> #include <osg/TextureRectangle> #include <osg/TexMat> #include <osg/CullFace> #include <osg/ImageStream> #include ...
<commit_before>#include "APSEthernetPacket.h" APSEthernetPacket::APSEthernetPacket() : header{{}, {}, APS_PROTO, 0, {0}, 0}, payload(0){}; APSEthernetPacket::APSEthernetPacket(const MACAddr & destMAC, const MACAddr & srcMAC, APSCommand_t command, const uint32_t & addr) : header{destMAC, srcMAC, APS_PROTO, 0, comman...
<commit_before>/* Copyright 2016 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 required by applicable law o...
<commit_before>#include <iostream> #include <apiai/query/VoiceRequest.h> #include <portaudio.h> static int MyPaStreamCallback( const void *input, void *output, unsigned long frameCount, const PaStreamCallbackTimeInfo* timeInfo, PaStreamCallbackFlags statusFlags, void *userData...
<commit_before>#include <plasp/sas/Description.h> #include <iostream> #include <boost/filesystem.hpp> #include <plasp/sas/ParserException.h> namespace plasp { namespace sas { //////////////////////////////////////////////////////////////////////////////////////////////////// // // Description // //////////////////...
<commit_before>#include <string.h> #include "lpc17xx_pinsel.h" #include "lpc17xx_uart.h" #include "interface/uart.h" #include "pipeline.h" #include "atcommander.h" #include "util/bytebuffer.h" #include "util/log.h" #include "util/timer.h" #include "gpio.h" // Only UART1 supports hardware flow control, so this has to b...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs * * Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr> * * This program is f...
<commit_before>/** * \file * * \brief Plugin which acts as proxy and calls other plugins written in python * * \copyright BSD License (see doc/COPYING or http://www.libelektra.org) * */ #ifndef SWIG_TYPE_TABLE # error Build system error, SWIG_TYPE_TABLE is not defined #endif #include <Python.h> #ifndef HAVE_K...
<commit_before> /* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTypes.h" static const size_t kBufferSize = 256; #define LOG_TAG "skia" #include <android/log.h> void SkDebugf(const char fo...
<commit_before>/* * This source file is part of EasyPaint. * * Copyright (c) 2012 EasyPaint <https://github.com/Gr1N/EasyPaint> * * 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 withou...
<commit_before>#define WIN32_LEAN_AND_MEAN #include <windows.h> #include "commctrl.h" #pragma comment(lib, "comctl32.lib") #include <windowsx.h> #include <dbghelp.h> #include <assert.h> #pragma comment(lib, "dbghelp.lib") #pragma comment(lib, "kernel32.lib") #pragma warning(disable: 4996) extern "...
<commit_before>// (C) 2014 Arek Olek #pragma once #include <boost/algorithm/string/join.hpp> #include <boost/range/adaptor/transformed.hpp> #include <algorithm> #include <vector> #include <utility> #include <random> template <typename ... Args> auto range(Args&& ... args) -> decltype(boost::make_iterator_range(std:...
<commit_before>#include "include/rados/librados.h" #include "test/rados-api/test.h" #include "gtest/gtest.h" #include <errno.h> #include <vector> #define POOL_LIST_BUF_SZ 32768 TEST(LibRadosPools, PoolList) { std::vector<char> pool_list_buf(POOL_LIST_BUF_SZ, '\0'); char *buf = &pool_list_buf[0]; rados_t cluste...
<commit_before>#include <c3d.h> #include <iostream> namespace c3d { //constructors plus plus Surface::Surface() { position.setxyz(0.0,0.0,0.0); axisX.setxyz(1.0,0.0,0.0); axisY.setxyz(0.0,1.0,0.0); axisZ.setxyz(0.0,0.0,1.0); } Surface::Surface(const Vector & pos, const Vector & ox, const Vector ...
<commit_before>#include <sstream> #include <string> #include <string_view> #include "../test.h" #include "simdjson.cpp" #include "simdjson.h" using namespace simdjson; static void GenStat(Stat &stat, const dom::element &v) { switch (v.type()) { case dom::element_type::ARRAY: for (dom::element child : dom...
<commit_before>/************************************************************************* * * $RCSfile: TableDeco.hxx,v $ * * $Revision: 1.15 $ * * last change: $Author: hr $ $Date: 2004-08-02 15:13:15 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>{{{header}}} {{#includes}} #include <{{{.}}}> {{/includes}} {{{precontent}}} #include <boost/python.hpp> #include <cmath> /* postinclude */ void {{class.mangled_name}}() { ::boost::python::object parent_object(::boost::python::scope(){{! }}{{#class.scope}}{{#name}}.attr("{{name}}"){{/name}}{{/class...
<commit_before><commit_msg>No chartopengl library built for iOS or Android yet<commit_after><|endoftext|>
<commit_before>#include <iostream> #include <fstream> #include <vector> #include <sstream> int main(int argc,char *argv[]) { std::vector<std::string> temp(5); std::string tempString; std::ifstream ifs(argv[1]); std::istringstream istringstream(tempString); int n=0; if(!(ifs.is_open())) { std::cerr << "Error! ...
<commit_before>#include "blob.h" #include "file.h" #include "string.h" #include <sys/stat.h> #include <sys/unistd.h> File::File(const String &file_name, const String &mode) { file = fopen(file_name, mode); } File::~File() { if (file) fclose(file); } int File::atime(const String &file_name) { struct stat buf; ...
<commit_before><commit_msg>Fix options window for Personalization on Linux. Review URL: http://codereview.chromium.org/132028<commit_after><|endoftext|>
<commit_before><commit_msg>[GTK] Use gtk_window_present_with_time since the doc's says it is better to use it when it is a response to a user action.<commit_after><|endoftext|>
<commit_before>/************************************************************************** * newbucket.hxx -- new bucket routines for better world modeling * * Written by Curtis L. Olson, started February 1999. * * Copyright (C) 1999 Curtis L. Olson - curt@flightgear.org * * This program is free software; you c...
<commit_before>#include <cstdlib> #include <fstream> #include "../boost_tools/tls.hpp" #include "../pp/pop3.hpp" #include "command_line.hpp" #include "server_name_parsing.hpp" #include "task.hpp" using namespace boost::program_options; namespace utils { p_MC mailboxEnter (const string& host, const string& port,...
<commit_before>////////////////////////////////////////////////////////////////////////////////// // Dynamic Audio Normalizer - Audio Processing Library // Copyright (c) 2014 LoRd_MuldeR <mulder2@gmx.de>. Some rights reserved. // // This library is free software; you can redistribute it and/or // modify it under the te...
<commit_before>/*! \copyright (c) RDO-Team, 2011 \file rdo_resource.cpp \authors Урусов Андрей (rdo@rk9.bmstu.ru) \authors Лущан Дмитрий (dluschan@rk9.bmstu.ru) \date 16.04.2008 \brief RDOResource implementation \indent 4T */ // -------------------------------------------------------...
<commit_before><commit_msg>Fix for Root v6-26 (#1431)<commit_after><|endoftext|>
<commit_before>/* * Copyright (C) 2006, 2007, 2008, 2009, 2010 Stephen F. Booth <me@sbooth.org> * 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 co...
<commit_before>#include "Application.hpp" #include "InputHandlers.hpp" #include "renderer/RenderContext.hpp" #include "renderer/ShaderManager.hpp" #include "renderer/OculusVR.hpp" #include "renderer/CameraDirector.hpp" // application globals extern CameraDirector g_cameraDirector; RenderContext g_renderContext; Applic...
<commit_before>#include "RigidObject.h" #include "Mass.h" #include "robotics/Inertia.h" #include <utils/SimpleFile.h> #include <utils/stringutils.h> #include <meshing/IO.h> #include <string.h> #include <fstream> using namespace Math3D; using namespace std; RigidObject::RigidObject() { T.setIdentity(); mass = 1; ...
<commit_before>/** * Copyright (c) 2017 Darius Rückert * Licensed under the MIT License. * See LICENSE file for more information. */ #include "saiga/core/Core.h" #include "saiga/core/time/all.h" using namespace Saiga; int sizeMB = 1000 * 1; size_t blockSize = sizeMB * 1000UL * 1000UL; double...
<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: PresenterPaneBorderPainter.hxx,v ...
<commit_before>#include "Character.h" #include "PlayScene.h" #include <math.h> CCharacter::CCharacter(void) { /* ߰ Ͱ ƴ ijͰ ð . Ÿ Ÿ ð ϴ , update ȿ Լ ŵǴ Ư ȿ m_CreateTime Ű 켱 . Ф */ SetCreateTime(clock()); SetNowTime(clock()); m_is_iceState = false; //sight öϰ ijͰ ġ ̱ m_sight...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xmlConnectionResource.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2007-11-09 08:13:31 $ * * The Contents of this f...
<commit_before>#include <iostream> #include <stack> using namespace std; struct Node{ int data; Node* next; Node(int d) :data(d), next(nullptr){}; }; int listLen(Node *head) { Node *p = head; int ret = 0; while (p) { ret++; p = p->next; } return ret; } bool isPalindrome(Node *head) { if (!head) return f...
<commit_before>AliEmcalAodTrackFilterTask* AddTaskEmcalAodTrackFilter( const char *name = "FilterTracks", const char *inname = "tracks", const char *runperiod = "", const char *taskName = "AliEmcalAodTrackFilterTask" ) { // Get the pointer to the existing analysis manager via the static...
<commit_before>/************************************************************************* * * $RCSfile: XMLTextPropertySetContext.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: dvo $ $Date: 2002-09-09 17:12:18 $ * * The Contents of this file are made available subject to the terms of * either of t...
<commit_before>#include <iostream> #include <array> #include <vector> #include <cassert> #include <iterator> #include "days.hpp" namespace { std::array<int, 4> base_pattern{0, 1, 0, -1}; int get_modifier(int rank, int pos) { pos += 1; pos /= rank + 1; return base_pattern[pos % 4]; ...
<commit_before>/************************************************************************* * * $RCSfile: basicmigration.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-01-27 14:26:27 $ * * The Contents of this file are made available subject to the terms of * either of the following...
<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>// // websocket.hpp // fibio-http // // Created by Chen Xu on 15/08/28. // Copyright (c) 2015 0d0a.com. All rights reserved. // #ifndef fibio_http_common_websocket_hpp #define fibio_http_common_websocket_hpp #include <cstdint> #include <iostream> namespace fibio { namespace http { namespace websoc...
<commit_before>#ifdef __APPLE__ #define USE_KQUEUE #endif #ifdef USE_KQUEUE #include <sys/event.h> #else #include <sys/epoll.h> #endif #include <unordered_map> #include <unordered_set> #include <unistd.h> #include <string.h> #include <errno.h> #include "utils.h" #include "polling.h" using namespace std; namespace...
<commit_before>/* * SpatLib * Extension Class for Jamoma DSP * Copyright © 2011 by Trond Lossius, Nils Peters, and Timothy Place * * License: This code is licensed under the terms of the "New BSD License" * http://creativecommons.org/licenses/BSD/ */ #include "SpatLib.h" #include "SpatMatrix.h" #include "Spa...
<commit_before>// Copyright (C) 2015 Elviss Strazdins // This file is part of the Ouzel engine. #include "RendererD3D11.h" #include "Utils.h" static LRESULT CALLBACK WindowProc(HWND window, UINT msg, WPARAM wParam, LPARAM lParam) { switch (msg) { case WM_DESTROY: { PostQuitMessage(...
<commit_before>#ifndef VSMC_UTILITY_PROGRAM_OPTION_HPP #define VSMC_UTILITY_PROGRAM_OPTION_HPP #include <vsmc/internal/common.hpp> namespace vsmc { /// \brief Program option base class /// \ingroup Option class ProgramOptionBase { public : ProgramOptionBase () {} ProgramOptionBase (const ProgramOptionBa...
<commit_before>#ifndef WART_VARIANT_DETAIL_VARIANT_HPP #define WART_VARIANT_DETAIL_VARIANT_HPP #include "enable_if_elem.hpp" #include "elem_index.hpp" #include "../../all.hpp" #include "../../enable_if_move_constructible.hpp" #include "../../union.hpp" #include <type_traits> #include <utility> namespace wart { name...
<commit_before> //@HEADER // ************************************************************************ // // HPCCG: Simple Conjugate Gradient Benchmark Code // Copyright (2006) Sandia Corporation // // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive // license for use ...
<commit_before>/* * MRustC - Rust Compiler * - By John Hodge (Mutabah/thePowersGang) * * trans/monomorphise.hpp * - MIR monomorphisation */ #include "monomorphise.hpp" #include <mir/mir.hpp> namespace { ::MIR::LValue monomorph_LValue(const ::HIR::Crate& crate, const Trans_Params& params, const ::MIR::LValue...
<commit_before>#include "rosplan_interface_mapping/RPSimpleMapServer.h" /* implementation of rosplan_interface_mapping::RPSimpleMapServer.h */ namespace KCL_rosplan { /* constructor */ RPSimpleMapServer::RPSimpleMapServer(ros::NodeHandle &nh) : message_store(nh) { // config std::string dataPath("common/"); ...
<commit_before> /*! \file \author Igor Mironchik (igor.mironchik at gmail dot com). Copyright (c) 2013-2017 Igor Mironchik 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...
<commit_before>//****************************************************************** // // Copyright 2016 Samsung Electronics All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file excep...
<commit_before>/* TyTools - public domain Niels Martignène <niels.martignene@gmail.com> https://neodd.com/tytools This software is in the public domain. Where that dedication is not recognized, you are granted a perpetual, irrevocable license to copy, distribute, and modify this file as you see fit. ...
<commit_before>#include <QtGui> #include <QDebug> #include "i18n.h" #include "account-mgr.h" #include "utils/utils.h" #include "seafile-applet.h" #include "settings-mgr.h" #include "api/requests.h" #include "settings-dialog.h" namespace { bool isCheckLatestVersionEnabled() { return QString(getBrand()) == "Seafil...
<commit_before>/* * Copyright 2011-2020 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ #include <bx/easing.h> #include "common.h" #include "bgfx_utils.h" #include "imgui/imgui.h" extern "C" void ProgressiveMesh(int vert_n, int vert_stride, const float *...
<commit_before>#include "NuulsUploader.hpp" #include "common/Env.hpp" #include "common/NetworkRequest.hpp" #include "providers/twitch/TwitchMessageBuilder.hpp" #include <QHttpMultiPart> #define UPLOAD_DELAY 2000 // Delay between uploads in milliseconds namespace { QString getImageFileFormat(const QString &path) { ...
<commit_before>/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
<commit_before>/* * * Copyright 2015, 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: * * * Redistributions of source code must retain the above copyright * notice, thi...
<commit_before>/* * examples/blassolve.C * * Copyright (C) J-G Dumas * ========LICENCE======== * This file is part of the library LinBox. * * LinBox 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 Foundat...
<commit_before>/* * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directo...
<commit_before> // Library includes #include <string> #include <ostream> #include <iostream> #include <memory> #include "grl/KukaFRI.hpp" #include "grl/KukaFriClientData.hpp" #include <boost/log/trivial.hpp> #include <cstdlib> #include <cstring> #include <iostream> #include <boost/asio.hpp> #include <vector> #includ...
<commit_before>#include "ofxGuiGroupExtended.h" #include "ofGraphics.h" using namespace std; ofxGuiGroupExtended::ofxGuiGroupExtended(){ _bVertical = true; _bUseHeader = true; } ofxGuiGroupExtended::ofxGuiGroupExtended(const ofParameterGroup & parameters, string filename, float x, float y) :ofxGuiGroup(pa...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2011 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>#include "Halide.h" using namespace Halide; class Conv3x3 : public Generator<Conv3x3> { public: GeneratorParam<Type> accumulator_type{"accumulator_type", Int(16)}; // Takes an 8 bit image; one channel. Input<Buffer<uint8_t>> input{"input", 2}; Input<Buffer<int8_t>> mask{"mask", 2}; ...
<commit_before>#include <iostream> #include <opencv2/highgui/highgui.hpp> #include "janus_io.h" using namespace cv; janus_image janus_read_image(const char *file) { Mat mat = imread(file, IMREAD_UNCHANGED); if (!mat.data) return NULL; janus_image image = janus_allocate_image(mat.channels(), mat...
<commit_before>/* ============================================================================== GridCell.cpp Created: 23 Jan 2015 7:02:25pm Author: Daniel Lindenfelser ============================================================================== */ #include "GridCell.h" SoundboardGridCell::Sound...
<commit_before>// glfwTest2VS.cpp : main project file. #include "stdafx.h" #include <iostream> //using namespace std; // GLEW #define GLEW_STATIC #include <GL/glew.h> #include "Shader.h" #include "SerialClass.h" #include "Leap.h" // GLFW #include <GLFW/glfw3.h> #include <SOIL/SOIL.h> using namespace Leap; // Functi...
<commit_before>/*- * Copyright (c) 2005-2008 Benjamin Close <Benjamin.Close@clearchain.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: * 1. Redistributions of source code must retain...
<commit_before> #ifndef _SILL_MATRIX_BASE_HPP_ #define _SILL_MATRIX_BASE_HPP_ #include <sill/base/string_functions.hpp> #include <sill/math/linear_algebra/linear_algebra_base.hpp> #include <sill/serialization/serialize.hpp> namespace sill { /** * Matrix base class * * @tparam T Type of data element...
<commit_before>//------------------------------------------------------------------------------ // Keyboard.cc //------------------------------------------------------------------------------ #include "Keyboard.h" #include <cctype> namespace YAKC { using namespace Oryol; //------------------------------------------...
<commit_before>#include <gtest/gtest.h> #include <stdexcept> #include <iostream> #include <boost/math/special_functions/gamma.hpp> #include <boost/math/special_functions/fpclassify.hpp> #include <stan/math/functions/lgamma.hpp> TEST(MathsSpecialFunctions, lgamma) { // only brought in for Posix and ANSI C99 // n...