text
stringlengths
54
60.6k
<commit_before><commit_msg>Ensure we have a Cocoa NSGraphicsContext when needed.<commit_after><|endoftext|>
<commit_before>/*========================================================================= Library: CTK Copyright (c) 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 at ...
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFCNPCRefreshModule.cpp // @Author : LvSheng.Huang // @Date : 2013-10-17 // @Module : NFCNPCRefreshModule // ----------------------------...
<commit_before>#include <OpenSim/OpenSim.h> using namespace OpenSim; using namespace SimTK; class ComplexResponse : public ModelComponent { OpenSim_DECLARE_CONCRETE_OBJECT(ComplexResponse, ModelComponent); public: OpenSim_DECLARE_PROPERTY(strength, double, "per-coord param."); ComplexResponse() { ...
<commit_before><commit_msg>Adding the task<commit_after><|endoftext|>
<commit_before>// The MIT License (MIT) // Copyright (c) 2016, Microsoft // 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 // t...
<commit_before>/******************************************************************************* * ALMA - Atacama Large Millimiter Array * (c) Associated Universities Inc., 2002 * * (c) European Southern Observatory, 2002 * Copyright by ESO (in the framework of the ALMA collaboration) * and Cosylab 2002, ...
<commit_before>/* * CityRegionImplementation.cpp * * Created on: Feb 9, 2012 * Author: xyborn */ #include "CityRegion.h" #include "events/CityUpdateEvent.h" #include "server/zone/Zone.h" #include "server/zone/objects/area/ActiveArea.h" #include "server/chat/StringIdChatParameter.h" #include "server/zone/obj...
<commit_before>#include "session.h" #include <algorithm> namespace nng { session::session() : _dialer_eps() , _listener_eps() , _pair_sockets() , _push_sockets() , _pull_sockets() { } template<class Type_> void __release_all(std::vector<std::shared_ptr<Type_>>...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WIT...
<commit_before>#include "ros/ros.h" #include "scr_proto/DiffCommand.h" #include "scr_proto/SpeedCommand.h" #include "std_msgs/Int32.h" #include "std_msgs/Float64.h" double PI = 3.141592654; double pulses_per_rev = 3200; // CONTROL VARIABLES double Kp = 0.5; double Kd = 0.12; double Ki = 0.0; double last_control_tim...
<commit_before>///////////////////////////////////////////////////////////////////////////// // // FILE NAME // atrixGenerator.cc // // AUTHOR // Andrei Shishlo // // TIME // 03/18/2008 // // DESCRIPTION // A generator of the linear transport matrix from the bunch tracking. // It solves the system of equations...
<commit_before>// Copyright (c) 2012 Nokia, Inc. // Copyright (c) 2013-2014 Quanta Research Cambridge, Inc. // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, includi...
<commit_before>#define GLEW_STATIC #include <GL/glew.h> #include <GLFW/glfw3.h> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" // for .png loading #include "../../imgui.h" #ifdef _MSC_VER #pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, spri...
<commit_before>/* Copyright (C) 2008 The goocanvasmm Development Team * * 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 l...
<commit_before>/* * This program is just for personal experiments here on AVR features and C++ stuff * to check compilation and link of FastArduino port and pin API. * It does not do anything interesting as far as hardware is concerned. */ // Imperial march tones thanks: // http://processors.wiki.ti.com/index.php/...
<commit_before>/** * \file * \brief semaphoreTestCases object definition * * \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * 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 * di...
<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>#include "xchainer/cuda/cuda_conv.h" #include <algorithm> #include <cstdint> #include <gtest/gtest.h> #include "xchainer/array.h" #include "xchainer/constant.h" #include "xchainer/cuda/cuda_device.h" #include "xchainer/device_id.h" #include "xchainer/routines/connection.h" #include "xchainer/shape.h" ...
<commit_before>#include <cstdlib> #include <cstdio> #include <vector> #include <array> #include <string> #include <unistd.h> #include <complex> #include "dir1/debuggee.h" #include "dir2/debuggee.h" void deepstack(int levelsToGo) { if (levelsToGo > 0) { deepstack(levelsToGo-1); } } // #BP2 void inf_lo...
<commit_before>#ifndef CALLBACK_HPP #define CALLBACK_HPP #include "noncopyable.hpp" #include <type_traits> #include <cstring> struct callback_t : private noncopyable_t { enum {INTERNAL_STORAGE_SIZE = 64}; callback_t() : m_object_ptr(nullptr) , m_method_ptr(nullptr) , m...
<commit_before>// // yas_db_entity.cpp // #include "yas_db_additional_protocol.h" #include "yas_db_attribute.h" #include "yas_db_entity.h" #include "yas_db_relation.h" #include "yas_db_sql_utils.h" #include "yas_stl_utils.h" using namespace yas; namespace yas { static db::attribute_map_t make_attributes(std::vector...
<commit_before>#define WIN32_LEAN_AND_MEAN #pragma comment (lib, "Shlwapi.lib") #include <Windows.h> #include <Shlwapi.h> #include <unordered_map> #include <queue> using namespace std; #define BUF_SIZE MAX_PATH * 3 long long CurrentTime() { long long t; GetSystemTimeAsFileTime((LPFILETIME) &t); return t;...
<commit_before>// Copyright (c) 2014-2015 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/ColinH/PEGTL/ #ifndef PEGTL_CONTRIB_HTTP_HH #define PEGTL_CONTRIB_HTTP_HH #include "../rules.hh" #include "../ascii.hh" #include "../utf8.hh" #include "abnf.hh" #include "uri.hh" n...
<commit_before>/* * tt.overdrive~ * External object for Max/MSP * * Example project for TTBlue * Copyright © 2008 by Timothy Place * * License: This code is licensed under the terms of the GNU LGPL * http://www.gnu.org/licenses/lgpl.html */ #include "TTClassWrapperMax.h" #include "TTOverdrive.h" // For t...
<commit_before>/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkPdfDiffEncoder.h" #include "SkPdfNativeTokenizer.h" #ifdef PDF_TRACE_DIFF_IN_PNG #include "SkBitmap.h" #include "SkBitmapDevice.h" #include "SkCanv...
<commit_before>#include <stdint.h> #include <stdlib.h> #include <sys/types.h> #include <inttypes.h> #include "jansson.h" static int enable_diags; #define FUZZ_DEBUG(FMT, ...) \ if (enable_diags) \ { ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: $ ...
<commit_before>/** * Copyright (c) 2016-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 directory. ...
<commit_before>/* * Copyright 2010 The Native Client 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 "native_client/tests/fake_browser_ppapi/fake_host.h" #if !NACL_WINDOWS # include <dlfcn.h> #endif // !NACL_WINDOWS ...
<commit_before>//================================================================================================= // Copyright 2013-2014 Dirk Lemstra <https://magick.codeplex.com/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You...
<commit_before>// Copyright (C) 2011 Ryan Curtin <ryan@igglybob.com> // // This file is part of the Armadillo C++ library. // It is provided without any warranty of fitness // for any purpose. You can redistribute this file // and/or modify it under the terms of the GNU // Lesser General Public License (LGPL) as publis...
<commit_before>/** * @file network_util_impl.hpp * @author Marcus Edel * * Implementation of the network auxiliary functions. */ #ifndef __MLPACK_METHODS_ANN_NETWORK_UTIL_IMPL_HPP #define __MLPACK_METHODS_ANN_NETWORK_UTIL_IMPL_HPP #include "network_util_impl.hpp" #include <mlpack/methods/ann/layer/layer_traits.h...
<commit_before>#include <nex/filesystem/directory.h> #include <nex/filesystem/path.h> /** * Win32 directory implementation. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <windows.h> namespace nx { std::vector<std::string> split(const std::string& string) { std::vector<std::string> to...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** ** GNU Lesser General Public License Usage ** ** This file m...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** No Commercial Usage ** ** This file contains pre-release cod...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Bastian Holst <bastianholst@gmx.de> // Copyright 2012 Moha...
<commit_before>//===----------------------------------------------------------------------===// // // PelotonDB // // nested_loop_join_executor.cpp // // Identification: src/backend/executor/nested_loop_join_executor.cpp // // Copyright (c) 2015, Carnegie Mellon University Database Group // //==...
<commit_before>/************************************************************************* * * $RCSfile: ximpbody.cxx,v $ * * $Revision: 1.19 $ * * last change: $Author: rt $ $Date: 2004-03-30 16:15:41 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/* * Copyright (C) 2016 Google, 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 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
<commit_before> { 0, { uint256S("0xc866fdd44f0451466f20789210e1d53585ae94959f30d82ed2d6f02abab7711f"), 1593524096 } }, { 5000, { uint256S("0x6c31b8f5dda18e625ade3f90c1769007668c342b8688d36836de2f96b837dc24"), 1597886084 } }, { 10000, { uint256S("0xc1473eb25b2e45f7893b744c188da78c66f6feafd33cbfd5ed0e0...
<commit_before>/* * Copyright © 2012, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed * under the Apache License, Version 2.0 (the "License"); * yo...
<commit_before>/*========================================================================= * * Copyright David Doria 2011 daviddoria@gmail.com * * 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 L...
<commit_before>/* * Copyright 2010, 2011 Esrille 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 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
<commit_before>#include <cppunit/extensions/HelperMacros.h> #include "spotty_network_failure_test.h" #include <errno.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/wait.h> #include <sys/socket.h> #include <netdb.h> #include <netinet/in.h> #includ...
<commit_before>/* vim: tabstop=2 shiftwidth=2 expandtab textwidth=80 linebreak wrap * * Copyright 2012 Matthew McCormick * Copyright 2013 Justin Crawford <Justasic@gmail.com> * Copyright 2015 Pawel 'l0ner' Soltys * Copyright 2016 Compilenix * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
<commit_before>#include "../PlyReader.h" #include "../TriangleMeshPlyReaderDelegate.h" // This file is a part of the OpenSurgSim project. // Copyright 2013, SimQuest Solutions Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. /...
<commit_before>#include <cmath> #include <iostream> #include <string> #include <TCanvas.h> #include <TEfficiency.h> #include <TFile.h> #include <TList.h> #include <TH1D.h> #include <TH3D.h> #include <AliPID.h> #include "AliAnalysisTaskLFefficiencies.h" void DivideBinomial(TH1* num, const TH1* den) { for (int iBin...
<commit_before>#line 2 "togo/resource_manager.cpp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. */ #include <togo/config.hpp> #include <togo/assert.hpp> #include <togo/memory.hpp> #include <togo/hash_map.hpp> #include <togo/log.hpp> #include <togo/resource_types.hpp> #include <togo/reso...
<commit_before>/* * * Copyright (c) 2021 Project CHIP Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
<commit_before>/* * Copyright (c) 2021, The OpenThread Authors. * 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 copyr...
<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>#pragma once #ifndef WTL_CONCURRENT_HPP_ #define WTL_CONCURRENT_HPP_ #include <thread> #include <mutex> #include <condition_variable> #include <future> #include <chrono> #include <vector> #include <queue> #include <memory> #include <type_traits> /////////1/////////2/////////3/////////4/////////5///////...
<commit_before>#include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> #include <vector> #include <math.h> #include <iostream> using namespace std; #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/rotate_vector.hpp> #include <glm/gtx/norm.hpp> typedef glm::mat3 mat3;...
<commit_before>/* * Copyright 2017 Facebook, 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 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
<commit_before>#include <franka_hw/service_server.h> #include <franka/robot.h> #include <ros/ros.h> #include <array> #include <functional> #include <franka_hw/ErrorRecovery.h> #include <franka_hw/SetCartesianImpedance.h> #include <franka_hw/SetEEFrame.h> #include <franka_hw/SetForceTorqueCollisionBehavior.h> #includ...
<commit_before>#include <iostream> #include <iostream> #include <libgen.h> #include "SDL/SDL.h" #include "world.hpp" #include "graphics/graphics.hpp" #include "tmxparser.h" namespace Polarity { World *world = nullptr; World::World(const std::string& tmxFile) : physics(b2Vec2(0.0f, -10.0f)), keyState(...
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gl/GrGLExtensions.h" #include "gl/GrGLInterface.h" #include "../GrGLUtil.h" #include <GL/glx.h> #include <GL/gl.h> #include <GL/glext.h> #include <...
<commit_before>/* * gst_properties_module.cpp * * Created on: Jul 14, 2015 * Author: loganek */ #include "gst_properties_module.h" #include "gvalue-converter/gvalue_enum.h" #include "common/deserializer.h" #include "controller/command_factory.h" #include "controller/controller.h" #include "controller/elemen...
<commit_before>/************************************************************************* * * $RCSfile: statusindicatorfactory.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2004-09-09 17:06:38 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>/************************************************************************* * * $RCSfile: statusindicatorfactory.hxx,v $ * * $Revision: 1.11 $ * * last change: $Author: obo $ $Date: 2005-08-12 16:23:52 $ * * The Contents of this file are made available subject to the terms of * either of the...
<commit_before>/************************************************************************* * * $RCSfile: transactionmanager.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: as $ $Date: 2002-05-02 11:41:09 $ * * The Contents of this file are made available subject to the terms of * either of the follo...
<commit_before>/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include <utility> #include <string> #include "util/script_exception.h" #include "util/name_set.h" #include "kernel/kernel_exception.h" #incl...
<commit_before>// Copyright (c) 2011-2014, Cornell University // 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>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission no...
<commit_before>// Copyright (C) 2012-2017 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include "IPCTestUtils.h" #include <leapipc/CircularBufferEndpoint.h> #include <autowiring/autowiring.h> #include <autowiring/CoreThread.h> #include <cstdio> #include <thread> #include <gtest/gtest.h> using namespace l...
<commit_before>/* Copyright (c) 2007 Till Adam <adam@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 as published by the Free Software Foundation; either version 2 of the License, or (at your option) any late...
<commit_before>/* * Copyright 2010-2012 Esrille 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 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
<commit_before>/* * Copyright (C) 2012 Tommi Maekitalo * * 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 version....
<commit_before>#include "BonsaiCatalystData.h" #include "vtkBonsaiPipeline.h" // #include "vtkCPDataDescription.h" #include "vtkCPInputDataDescription.h" #include "vtkCPProcessor.h" #include "vtkCPPythonScriptPipeline.h" #include "vtkPolyData.h" #include "vtkFloatArray.h" #include "vtkCellArray.h" #include <vtkNew.h> ...
<commit_before>#include "classifier/svm/MKLClassification.h" #include "classifier/svm/SVM_light.h" #include "classifier/svm/LibSVM.h" CMKLClassification::CMKLClassification(CSVM* s) : CMKL(s) { if (!s) { #ifdef USE_SVMLIGHT s=new CSVMLight(); #endif //USE_SVMLIGHT if (!s) s=new CLibSVM(); set_svm(s); } } ...
<commit_before>#include <string> struct person { std::string surname; std::string name; std::string year; }; struct PersonHash { std::size_t operator()(person const & s) const { std::size_t h1 = std::hash<std::string>{}(s.surname); std::size_t h2 = std::hash<std::string>{}(s.name); std::size_t h3 = std::ha...
<commit_before>#include "joblistwidget.h" #include "debug.h" #include "restoredialog.h" #include <QMessageBox> JobListWidget::JobListWidget(QWidget *parent) : QListWidget(parent) { connect(this, &QListWidget::itemActivated, [&](QListWidgetItem *item) { emit displayJobDetails(static_cast<JobListItem *>(ite...
<commit_before>// (C) Copyright Gennadiy Rozental 2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // //...
<commit_before>#include "scales.hpp" #include "mercator.hpp" #include "../base/math.hpp" #include "../std/algorithm.hpp" namespace scales { double GetScaleLevelD(double ratio) { double const level = min(static_cast<double>(GetUpperScale()), log(ratio) / log(2.0)); return (level < 0.0 ? 0.0 : level); ...
<commit_before>// Xerus - A General Purpose Tensor Library // Copyright (C) 2014-2015 Benjamin Huber and Sebastian Wolf. // // Xerus 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, either version 3 ...
<commit_before>#include <Arduino.h> #include <ESP8266WiFi.h> #include <WiFiUdp.h> #include <NeoPixelBus.h> #define WIFI_SSID "****" #define WIFI_PASS "****" #define HORIZONTAL_LEDS 60 #define VERTICAL_LEDS 34 WiFiUDP *udp_socket; NeoPixelBus<NeoGrbFeature, NeoEsp8266Dma800KbpsMethod> *strip; void ICACHE_FLASH_ATTR s...
<commit_before>#include "rapid_pbd/action_names.h" #include "rapid_pbd/fetch_actions.h" #include "rapid_pbd_msgs/ArmControllerState.h" #include "rapid_pbd_msgs/FreezeArm.h" #include "rapid_pbd_msgs/RelaxArm.h" #include "robot_controllers_msgs/QueryControllerStatesAction.h" #include "ros/ros.h" namespace pbd = rapid::p...
<commit_before>/* * Software License Agreement (Apache License) * * Copyright (c) 2014, Dan Solomon * * 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...
<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>// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include "DispatchQueue.h" #include "at_exit.h" #include <assert.h> using namespace autowiring; DispatchQueue::DispatchQueue(void) {} DispatchQueue::DispatchQueue(size_t dispatchCap): m_dispatchCap(dispatchCap) {} ...
<commit_before>#include "worldscene.hpp" #include "rendercontext.hpp" #include <tiny_obj_loader.h> #include <glm/gtc/matrix_transform.hpp> WorldScene::WorldScene() { std::vector<tinyobj::shape_t> worldShapes; tinyobj::LoadObj(worldShapes, "floor.obj"); if (worldShapes.empty()) { throw std::ru...
<commit_before>#include "fast_obj_loader.h" #include <stdio.h> #include <stdlib.h> #include "fastdynamic.h" #ifdef _OPENMP #include <omp.h> #endif #include <time.h> #include <string.h> //bool getcstr(char *out,unsigned short bufflen,char *input,size_t &len) // bufflen = output buffer size // input has to be a copy of t...
<commit_before>// Copyright 2018 The NXT Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
<commit_before>#include "geometry/spline.hpp" #include "base/logging.hpp" #include "std/numeric.hpp" namespace m2 { Spline::Spline(vector<PointD> const & path) { ASSERT(path.size() > 1, ("Wrong path size!")); m_position.assign(path.begin(), path.end()); size_t cnt = m_position.size() - 1; m_direction = vect...
<commit_before>#pragma once #include <cmath> #include <algorithm> using std::max; using std::abs; using std::hypot; using std::find; namespace search { template<typename Node> inline auto dy(Node const& node) -> Size { return abs(node.goal().y - node.coordinate().y); } template<typename No...
<commit_before>// Copyright (c) 2008, Jacob Burnim (jburnim@cs.berkeley.edu) // // This file is part of CREST, which is distributed under the revised // BSD license. A copy of this license can be found in the file LICENSE. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANT...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com> // // 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...
<commit_before>#pragma once #include <iostream> #include <cstdint> #include <initializer_list> #include <iterator> #include <stdexcept> #include <string> #include <type_traits> #include <vector> #include <boost/optional.hpp> #include "blackhole/attribute/set.hpp" #include "blackhole/config.hpp" #include "blackhole/d...
<commit_before>/* # File : classad_c_helper.C # # # Author : Francesco Prelz ($Author: fprelz $) # e-mail : "francesco.prelz@mi.infn.it" # # Revision history : # 5-Apr-2004 Original release # 16-Apr-2004 Added string list parse and unparse. # 7-May-2004 Added retrieval of string argument into...
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights // reserved. See file COPYRIGHT for details. // // This file is part of the MFEM library. For more information and source code // availability see http...
<commit_before>/* * Funambol is a mobile platform developed by Funambol, Inc. * Copyright (C) 2003 - 2007 Funambol, Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License version 3 as published by * the Free Software Foundation...
<commit_before>#include <wayfire/plugin.hpp> #include <wayfire/view.hpp> #include <wayfire/matcher.hpp> #include <wayfire/output.hpp> #include <wayfire/view-transform.hpp> #include <wayfire/workspace-stream.hpp> #include <wayfire/workspace-manager.hpp> #include <wayfire/signal-definitions.hpp> #include "blur.hpp" usi...
<commit_before>// Copyright 2016 Zheng Xian Qiu #include "Seeker.h" namespace Seeker { vector<ISubscriber*> Event::subscribers; void Event::Refresh() { SDL_Event ev; while(SDL_PollEvent(&ev)) { switch(ev.type) { case SDL_KEYDOWN: Dispatch(EventType::Key); break; ...
<commit_before>/*========================================================================= Program: Visualization Library Module: GlrRen.cc Language: C++ Date: $Date$ Version: $Revision$ This file is part of the Visualization Library. No part of this file or its contents may be copied, reproduc...
<commit_before>#include <iostream> #include "Input.h" #include <queue> #include <sys/wait.h> #include <sys/types.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <pwd.h> #include <algorithm> using namespace std; // void Input::setUser() { // } void Input::getInput() { strLine.clear(); c...
<commit_before>/* * Level.cpp * * Created on: 24.01.2015 * Author: sartz */ #include "Level.hpp" #include "Tile.hpp" #include "global.hpp" #include "GUI.hpp" #include <math.h> #include "Player.hpp" #include "Menu.hpp" #include "Items/KeyItem.hpp" #include "TextFileParser.hpp" Level::Level(unsigned int numb...
<commit_before>#include "pch.h" #include "MyPin.h" #include "AudioRenderer.h" namespace SaneAudioRenderer { MyPin::MyPin(AudioRenderer& renderer, CBaseFilter* pFilter, HRESULT& result) : CBaseInputPin(L"SaneAudioRenderer::MyPin", pFilter, this, &result, L"Input0") , m_bufferFilled(TRUE/*m...
<commit_before>#include "Reset.h" #include "WebPage.h" #include "NetworkAccessManager.h" #include "NetworkCookieJar.h" Reset::Reset(WebPage *page, QObject *parent) : Command(page, parent) { } void Reset::start(QStringList &arguments) { Q_UNUSED(arguments); page()->triggerAction(QWebPage::Stop); page()->current...
<commit_before>#include <iostream> #include <string> #include "Stats.h" std::unique_ptr<Stats> Stats::inst = std::unique_ptr<Stats>(new Stats()); Maybe<Statistic> Stats::getStat(std::string key) { auto testIter = stats.find(key); if (testIter != stats.end()) { return Maybe<Statistic>(testIter->second...