text
stringlengths
3.08k
22k
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) | +---------...
// __BEGIN_LICENSE__ // Copyright (c) 2006-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NASA Vision Workbench is licensed under the Apache License, // Version 2.0 (the "License"); you may not use this f...
#include <iostream> #include <string> #include "asio.hpp" #include "seeker/logger.h" #include "seeker/random.h" #include "MessageBuilder.h" #include <iomanip> using asio::ip::udp; seeker::RandomIntGenerator transIdGenerator{INT_MIN, INT_MAX, (int)seeker::Time::currentTime(...
#include "mainwindow.h" #include "ui_mainwindow.h" #include "detectball.hpp" #include "detectshot.hpp" #include "buildprofile.hpp" #include "managelogin.hpp" #include "shot.hpp" #include "shotArray.hpp" #include "managelogin.hpp" #include "collisionDetector.hpp" #include "sclassifier.hpp" #include "roi.hpp" #include "...
/**************************************************************************** MIT License Copyright (c) 2018 <NAME> 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 ...
// // Created by philipp on 05.05.21. // #include "../../header/Komponenten/KomponentenController.h" KomponentenController* KomponentenController::instance = nullptr; KomponentenController::KomponentenController() { this->sender = new KomponentenUdpSender(); } KomponentenController::~KomponentenController() { ...
// // // MIT License // // Copyright (c) 2017 Stellacore Corporation. // // 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 ...
#include "sCoreComputation.h" SCoreComputation::SCoreComputation(QObject * parent) : QObject (parent) { //Initilize the Qwt Plot Singleton Instance. mChartWidget = SChartWidget::GetInstance(); parentThread = new SThread(); parentThread->sSetUserFunc(sCoreFunc); parentThread->sSetUserParam(this)...
#include <iostream> #include <assert.h> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #ifndef STBI_INCLUDE_STB_IMAGE_H #define STBI_IMAGE_IMPLEMENTATION #include "stb_image.h" #endif #include <vertexData.h> #include <Shader....
#include "render.h" void Render::loadModel(const char* name) { std::string n = name; char *cstr = &n[0u]; try { delete model; model = new ObjReader(cstr); } catch (const std::invalid_argument& e) { std::cerr << e.what(); } model->createModel(); vertexCount = model->v_index; polygonCount = model...
#include "sequence/alphabets.hpp" #include "sequence/fasta_io.hpp" #include "sketch/edit_distance.hpp" #include "sketch/hash_base.hpp" #include "sketch/hash_min.hpp" #include "sketch/hash_ordered.hpp" #include "sketch/hash_weighted.hpp" #include "sketch/tensor.hpp" #include "sketch/tensor_block.hpp" #include "sketch/te...
#include <ctime> #include <iostream> #include <windows.h> #include <gl/gl.h> #include <gl/glut.h> #define PI 3.14159265358979323846 #define DEG_TO_RAD 0.0174 typedef GLfloat color[3]; typedef float point3[3]; typedef float point2[2]; /* CONTROLS: * - "LMB + MOUSE MOVE X" - move camera X. * - "RMB + ...
/* * Code Author: <NAME> * * Copyright (C) 2018 <NAME> * * This file is part of * Hardware Accelerated Linear Algebra (HALA) * */ #include "testing_common.hpp" struct CustomComplex{ float r, i; }; struct CustomZomplex{ double r, i; }; namespace hala{ template<> struct is_fcomplex<CustomComplex> : std::tr...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <unistd.h> #include <QGraphicsPixmapItem> #include <QTimer> #include <QObject> #include <QFile> #include <QDebug> #include <opencv2/opencv.hpp> #include "edge_checker.h" typedef struct _acq_image { size_t width; size_t height; int type; in...
/** * MIT License * * Copyright (c) 2018–2019 <NAME> * * 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, mod...
/* * Matrix.cpp * * Created by <NAME> on 10/31/08. * */ #include "Matrix.h" double MT_Vector1ToDouble(MT_Vector<1> v) { return v.data[0]; } double MT_Matrix1ToDouble(MT_Matrix<1,1> m) { return m.data[0]; } MT_Matrix4x4 PosDefInverse(MT_Matrix4x4& P) { MT_Matrix4x4 Pinv = IdentityMT_Matrix<4>(...
#include <stdio.h> #include <assert.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <math.h> /********************************************************************* * $Id: L2exampleAlgo08.cxx,v 1.6 2008/01/30 21:56:40 balewski Exp $ * \author <NAME>,MIT , 2008 *********************************...
/* * Copyright <NAME> 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) */ vec2_t<value_type> xx() const { return { x, x }; } vec3_t xxx() const { return { x, x, x }; } vec4_t<value_type> xxxx() const...
// Copyright (c) 2011-2020 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 <qt/peertablemodel.h> #include <qt/guiconstants.h> #include <qt/guiutil.h> #include <qt/platformstyle.h> #include ...
#include <stack> #include "MonteCarloTree.hpp" std::atomic<size_t> MonteCarloNode::allocedNodes(0); const std::vector<Board::Coord>& sensibleMoves(const Board& b) { return b.blackToPlay ? b.bSensibleMoves : b.wSensibleMoves; } /* static inline Board::Cell cellForColor(bool black) { */ /* return black ? Board...
// Copyright 2020-present, <EMAIL> // // 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 or agreed t...
// In the 20×20 grid below, four numbers along a diagonal line have been marked in red. // // 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 // 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 // 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 // 52 70 95 23 04 60 11 42 69 24 68 56 0...
/* This file is part of VoltDB. * Copyright (C) 2008-2020 VoltDB Inc. * * This program 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 of the * License, or (at your option) any la...
/****************************************************************************************/ /* MEMPOOL.C */ /* */ /* Author: <NAME> ...
/* * 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 * "License"); you ...
#include <SFML/Graphics.hpp> #include <bits/stdc++.h> //Which color does each player has std::vector<sf::Color> playerColors; const int GRIDSIZE = 4; const int SCREENWIDTH = 800; const int SCREENHEIGHT = 600; const int WIDTH = 400; const int HEIGHT = 200; const int SCREENX = SCREENWIDTH / GRIDSIZE; const int SCREENY ...
#include "handGesture.hpp" #include <opencv2/imgproc/imgproc.hpp> #include<opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> #include <stdio.h> #include <stdlib.h> #include <iostream> #include <string> using namespace cv; using namespace std; HandGesture::HandGesture() { frameNumber = 0; nrNoFinger = 0; f...
//======== (C) Copyright 2002 <NAME> All rights reserved. ========= // // The copyright to the contents herein is the property of <NAME>. // The contents may be used and/or copied only with the written permission of // <NAME>, or in accordance with the terms and conditions stipulated in // the agreement/contract u...
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* 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/. */ // Implement shared vtbl methods. #...
#define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #include "OpenGL.hpp" #include <iostream> #include "Engine/Engine.hpp" #include <algorithm> static std::filesystem::path FixWindowsPath(const std::string& file_path) { auto path = file_path; #if defined(__APPLE__) || defined(__linux__) std::replace(path.b...
#include "../include/DistCalculator.hpp" #include <chrono> #include <cstdlib> #include <iostream> #include <string> #include <vector> #include <list> #include <climits> #include <fstream> #include <fcntl.h> #include <sys/mman.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <thread> #include <queu...
/* * MsChannel.cc * * Created on: Jul 1, 2013 * Author: <NAME> */ #include "KoiData_m.h" #include "MsChannel.h" #include "SINR_m.h" #include "PositionExchange_m.h" #include "PointerExchange_m.h" #include "ResultFileExchange_m.h" #include "util.h" #include <cmath> #include <itpp/itbase.h> using namespace om...
#include "config.h" #include "moddirectory.h" #include "mapped_file.h" #include "dat_file_adm_loader.h" #include "filename_utils.h" #include <string> #include <fstream> #include <map> using namespace tlmodder; using std::string; using std::ofstream; using std::map; Config g_config; ModDirectory g_gameData; string g...
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/mman.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <iostream> #include "PgpMaster.h" PgpMaster::PgpMaster ()...
#include "platform.hpp" #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <cassert> #include <stdexcept> #include <iostream> #include "tdogl/Program.h" #include "tdogl/Texture.h" const glm::vec2 SCREEN_SIZE(340, 770); // DO_NOT_SHOW_CONSOLE #pragma comment( linker, "/subsystem:\"windows...
// // TodoBook.cpp // booktest // // Created by <NAME> on 6/29/16. // // #include "TodoBook.hpp" #include "Utils/TodoUtil.h" #include "cocos2d.h" #include <fstream> // //TDBookType TodoBook::getBookType(string &filedata) //{ // auto data = TodoUtil::readCSV(filedata); // // for (auto row : data) { // i...
#include "FWCore/MessageLogger/interface/MessageLogger.h" #include "Fireworks/Calo/interface/FWHeatmapProxyBuilderTemplate.h" #include "Fireworks/Core/interface/FWEventItem.h" #include "Fireworks/Core/interface/FWGeometry.h" #include "Fireworks/Core/interface/BuilderUtils.h" #include "DataFormats/HGCalReco/interface/Tr...
/* * This file contains code from "C++ Primer, Fourth Edition", by <NAME>. * Lippman, <NAME>, and <NAME>, and is covered under the * copyright and warranty notices given in that book: * * "Copyright (c) 2005 by Objectwrite, Inc., <NAME>, and <NAME>." * * * "The authors and publisher have taken care in the pr...
#include "bamliquidator.h" #include "bamliquidator_util.h" #include <cmath> #include <fstream> #include <iostream> #include <sstream> #include <stdexcept> #include <string> #include <vector> #include <boost/algorithm/string.hpp> #include <boost/lexical_cast.hpp> #include <hdf5.h> #include <hdf5_hl.h> #include <tbb/...
// // Copyright (c) 2019 BBC News. All rights reserved. // #include "policy.h" #include <sys/utsname.h> /** Local vs remote policy files: We always use the bundle policy in DEBUG builds, the assumption being that the bundle policy file is kept up to date and will contain any changes you want to test / debug. ...
/** * Copyright (c) 2021 by exFM Contributors */ #include "feature/sparse_feat.h" #include "solver/solver_factory.h" #include "murmur_hash3/MurmurHash3.h" SparseFeatConfig::SparseFeatConfig() { vocab_size = 0; max_id = 0; default_id = 0; max_feat_id_of_mapping_dict = 0; } SparseFeatConfig::~SparseFeatConfi...
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
#define CGLTF_IMPLEMENTATION #include <iostream> #include <cstring> #include <cstdlib> #include <unordered_map> #include "osc/OscReceivedElements.h" #include "osc/OscPacketListener.h" #include "ip/UdpSocket.h" #include "cgltf/cgltf.h" #include "CLI11.hpp" #include "cgltf_func.inl" using namespace os...
/* HFPlayer 3.0 Source Code © Regents of the University of Minnesota. This software is licensed under GPL version 3.0 (https://www.gnu.org/licenses/gpl-3.0.en.html). */ #include <iostream> // for std::cout #include <utility> // for std::pair #include <algorithm> ...
/** * TestNGram.cpp */ #include "TestNGram.h" TestNGram::TestNGram(void) : Dictionary() { } TestNGram::~TestNGram(void) { } /** * tokenize _sentence to words * morphologicaly analyze each word * for each word, analyze it as neologism * find best N-gram variant * if best variant match dictionary-based morpho...
//This file is part of faust, faster annotation using shape-constrained trees. //faust 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 3 of the License, or //(at your option) any later ver...
/* Original Source code contained this header: sha1.cpp - source code of ============ SHA-1 in C++ ============ 100% Public Domain. Original C Code -- <NAME> <<EMAIL>> Small changes to fit into bglibs -- <NAME> <<EMAIL>> Translation to simpler C++ Code -- ...
/* * 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 * "License"); you ...
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
/* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distributed i...
// -*- mode: cpp; indent-tabs-mode: nil; c-basic-offset: 2 -*- // // This file is part of Genie // // Copyright 2021 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. //...
#include <type_traits> #include <cstdint> #include <limits> #include <iostream> template<std::size_t Bits, bool Signed> struct int_type {}; template<> struct int_type<16, false> { typedef std::uint16_t type; }; template<> struct int_type<32, false> { typedef std::uint32_t type; }; template<> struct int_type<64, false>...
/* Descriptors of shapes. Author: <NAME> */ #include <iostream> #include <vector> #include <fstream> #include <opencv2/opencv.hpp> using namespace cv; // Tells the compiler that the subsequent code is making use // of names in the specified namespace using namespace std; // Global variables int K = 0; // Cont...
#include "MapEditor.h" #include "Tiles.h" #include "Tile.h" #include "TextWindow.h" MapEditor::MapEditor(Tiles *_tiles) { tiles = _tiles; mapsize = {120, 80}; offset = {20.0f, 20.0f}; floor_tiles["floor_1"] = &(tiles->tilemap["floor_1"]); floor_tiles["floor_2"] = &(tiles->tilemap["floor_2"]); ...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2005 <NAME>, <NAME>, University of Groningen. * Copyright (c) 2013,2014,2017,2018,2019,2020,2021, by the GROMACS development team, led by * <NAME>, <NAME>, <NAME>, and <NAME>, * and including many others, as listed in the A...
/* * ESPRESSIF MIT License * * Copyright (c) 2017 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on ESPRESSIF SYSTEMS products only, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
#include "chassis.h" double YawFromQuaternion(const geometry_msgs::Quaternion &quat) { tf::Quaternion q_orient(quat.x, quat.y, quat.z, quat.w); tf::Matrix3x3 m_orient(q_orient); double roll, pitch, yaw; m_orient.getRPY(roll, pitch, yaw); return yaw; } double YawFromQuaternion(const tf::Quaternion &quat) { ...
// MIT License // // Copyright (c) 2019 <NAME> // Cryptography and Privacy Engineering Group (ENCRYPTO) // TU Darmstadt, Germany // // 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 ...
/*========================================================================= * * Copyright UMC Utrecht and contributors * * 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 * * h...
#include "ch9.hpp" #include <algorithm> #include <cassert> #include <cctype> #include <deque> #include <fstream> #include <iostream> #include <istream> #include <map> #include <queue> #include <random> #include <sstream> #include <stack> #include <stdexcept> #include <string> #include <unordered_map> #include <utilit...
/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- Copyright (c) 2006-2019, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following condition...
/* ************************************************************************ * Copyright (c) 2020-2021 Advanced Micro Devices, 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 witho...
//-------------------------------------------------------------------------------- // This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed // under the MIT License, available in the root of this distribution and // at the following URL: // // http://www.opensource.org/licenses/mit-license.ph...
/* Copyright (c) 2021, NVIDIA CORPORATION. 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, this list of condi...
//Illustration of epipolar lines // <NAME>, 2017-2018 //This code is licensed under the 3-Clause BSD License. See LICENSE file for details. #include <iostream> #include <opencv2/viz.hpp> #include <opencv2/highgui.hpp> #include <opencv2/sfm.hpp> #include <opencv2/calib3d.hpp> #include <opencv2/imgproc.hpp> #include "...
/* * 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 "SkSVGParser.h" #include "SkSVGCircle.h" #include "SkSVGClipPath.h" #include "SkSVGDefs.h" #include "SkSVGEllipse.h" #include "SkSVGFeColorMatri...
#include <cassert> #include <fstream> #include <string> #include <vector> #include <ext/zlib/zlib.h> #include <tdme/application/Application.h> #include <tdme/os/filesystem/FileNameFilter.h> #include <tdme/os/filesystem/FileSystem.h> #include <tdme/os/filesystem/FileSystemInterface.h> #include <tdme/utils/Console.h> #...
// Scintilla source code edit control /** @file LexPowerShell.cxx ** Lexer for PowerShell scripts. **/ // Copyright 2008 by <NAME> <<EMAIL>> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdarg.h> #i...
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to ...
#include <stdlib.h> #include <math.h> #include "mex.h" #include "matrix.h" #include "heap.hpp" #define MIN(a,b) ((a)>(b)?(b):(a)) heap::heap(int N) { // Heuristical estimation of heap size Initial_Heap_Alloc_Size = N/4 + 1; heapCount = 0; allocatedSize = Initial_Heap_Alloc_Size; // Initialize Heap and ...
/* rsspp - Copyright (C) 2008-2010 <NAME> <<EMAIL>> * Licensed under the MIT/X Consortium License. See file LICENSE * for more information. */ #include <config.h> #include <rsspp.h> #include <rsspp_internal.h> #include <libxml/parser.h> #include <libxml/tree.h> #include <curl/curl.h> #include <logger.h> #include <u...
// ================================================================ // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved // ================================================================ #include <tmk/cpp/algo/tmkfv.h> #include <tmk/cpp/io/tmkio.h> #include <tmk/cpp/bin/tmk_default_thresholds.h> ...
/** This file is part of the MinVR Open Source Project, which is developed and maintained collaboratively by the University of Minnesota and Brown University. Copyright (c) 2016-2017 Regents of the University of Minnesota and Brown University. This software is distributed under the BSD-3 Clause license, which can...
namespace ecs { enum TypeId : u64 { kPhysicsComponent = 0, kResourceComponent = 1, kHarvestComponent = 2, kCharacterComponent = 3, kDeathComponent = 4, kBuildComponent = 5, kStructureComponent = 6, kOrderComponent = 7, kPickupComponent = 8, kZoneComponent = 9, kCarryComponent = 10, kComponentCo...
/* Copyright (c) 2005-2020 Intel Corporation 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 la...
/* * MusicBox.cpp * * Created on: May 30, 2016 * Author: mario * * This file is part of the Gecho Loopsynth & Glo Firmware Development Framework. * It can be used within the terms of CC-BY-NC-SA license. * It must not be distributed separately. * * Find more information at: * http://phonicbloom.co...
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
/* Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * * Copyright 2016 INRIA. * * 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 * *...
// 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/browser/accessibility/browser_accessibility_manager.h" #include "base/logging.h" #include "content/browser/accessibility/browser_ac...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com // Original code is licensed as follows: /* * Copyright 2009 ZXing authors * ...
// Copyright 2004-present Facebook. All Rights Reserved. #include "fboss/agent/lldp/LinkNeighbor.h" #include <folly/Conv.h> #include <folly/IPAddressV4.h> #include <folly/IPAddressV6.h> #include <folly/io/Cursor.h> #include <glog/logging.h> using folly::ByteRange; using folly::IPAddressV4; using folly::IPAddressV6; u...
// This example will show a hand in a default pose // and then bend one joint and show the hand again // // This is a line-by-line code example #include <iostream> #include <string> #include <boost/filesystem.hpp> #include <boost/range/iterator_range.hpp> // We will use OpenCV, so include the standard OpenCV header...
/* Copyright 2015 The TensorFlow Authors. 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 or a...
// -*- C++ -*- // // ---------------------------------------------------------------------- // // <NAME>, U.S. Geological Survey // <NAME>, GNS Science // <NAME>, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright ...
// vi: ts=4 sw=4 noet: /* ================================================================================== Copyright (c) 2020 AT&T Intellectual Property. Copyright (c) 2020 Nokia Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lice...
/* Copyright 2009 10gen 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. * * This program is distributed in the hope that it will be useful, * ...
/* * Copyright (c) 2011, Code Aurora Forum. 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, this list ...
// // Author: <NAME> <<EMAIL>> // Copyright (c) 1994-2018 <NAME> // // The MIT License // // 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 limitati...
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmCPackProductBuildGenerator.h" #include <cstddef> #include <map> #include <sstream> #include "cmCPackComponentGroup.h" #include "cmCPackLog.h" #include "cmDura...
///////////////////////////////////////////////////////////////////// // plxread.cpp - sample functionality for reading PLX files. #include <windows.h> #include <stdio.h> #include "..\Plexon.h" #define MAX_SPIKE_CHANNELS (128) #define MAX_EVENT_CHANNELS (512) #define MAX_SLOW_CHANNELS (256) #defi...
/** * @file methods/approx_kfn/approx_kfn_main.cpp * @author <NAME> * * Command-line program for various furthest neighbor search algorithms. * * mlpack is free software; you may redistribute it and/or modify it under the * terms of the 3-clause BSD license. You should have received a copy of the * 3-clause BS...
#include "Chora.hpp" #include <iostream> #include <vector> #include <memory> class Tux: public Entity { bool key_right, key_left, key_up, key_down; float gravity; float velStartJump; Vect configAcc; std::map<std::string, Input *> controls; int inputType; public: enum EPlayerState { FLYING, STANDIN...
/* // Copyright (C) 2018-2020 Intel Corporation // // 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...
//------------------------------------------------------------ // ComIO.cpp - robofish - D.Swain 8/12/07 // // Defines a class that provides platform-independent // implementation of a serial port designed for use // with the MT_MiaBotPro but suitably generic for use // in other applications. // //-----------...
#include <Hazel.h> #include <Hazel/EntryPoint.h> #include <imgui/imgui.h> #include <memory> #include <glm/gtc/matrix_transform.hpp> class ExampleLayer : public Hazel::Layer { public: ExampleLayer() : Layer("Example"), m_Camera(-1.6f, 1.6f, -.9f, .9f), m_CameraPosition(.0f), m_CameraRotation(.0f), m_SquareP...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <cmath> using namespace std; struct Point { int x, y; Point(int x_, int y_): x(x_), y(y_) {} Point(const string &s) { istringstream(s) >> x >...
#include "badger/engine.h" #include "badger/clock.h" #include "math.h" Badger::Engine::Engine(VideoSettings* video) { _video = *video; if (!_initialize()) { return; } _world = NULL; _inputHandler = new InputHandler(); // Adding some events just because KeyBinding binding = {Badger::Key::NONE}; K...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtCore module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commerc...
/** MIT License Copyright (c) 2018 NVIDIA CORPORATION. All rights reserved. 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, co...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkRandom.h" #include "SkTInternalLList.h" #include "SkTLList.h" #include "Test.h" class ListElement { public: ListElement(int id) : fID(id) { } bool ope...