text
stringlengths
3.08k
12.5k
/* * ***** BEGIN LICENSE BLOCK ***** * Version: MIT * * Portions created by <NAME> are Copyright (c) 2012-2013 * <NAME>. All Rights Reserved. * * Portions created by VMware are Copyright (c) 2007-2012 VMware, Inc. * All Rights Reserved. * * Portions created by <NAME> are Copyright (c) 2009-2010 * VMware, Inc...
// Testing various sorting algorithms // // Counting sort code used from algorithm created by // <NAME> // // ************* Timing Results ************* // // Times for counting sort // Fastest time at 5: 0.000000953674 // Fastest time at 500: 0.0000519753 // Fastest time at 100,000: 0.00191092 ...
#include <ros/ros.h> #include <Eigen/Core> #include <moveit_msgs/GetCartesianPath.h> #include <trajectory_msgs/JointTrajectoryPoint.h> #include <moveit_visual_tools/moveit_visual_tools.h> #include <simple_moveit_wrapper/industrial_robot.h> #include <ocpl_tsr/task_space_regions.h> #include <ocpl_planning/acro_planner...
#include <stan/math/rev/arr.hpp> #include <gtest/gtest.h> #include <test/unit/math/rev/arr/fun/util.hpp> #include <test/unit/math/rev/arr/util.hpp> TEST(AgradRev,log_sum_exp_vector) { // simple test AVEC x; x.push_back(5.0); x.push_back(2.0); AVAR f = log_sum_exp(x); EXPECT_FLOAT_EQ(std::log(std::exp(5)...
// Copyright ©2020 The go-hep 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 <iostream> #include <stdint.h> #include <vector> #include "TROOT.h" #include "TFile.h" #include "TTree.h" struct Event { Int_t run;...
#include "ioport.h" #include "ioimpl.h" #include "moduleimpl.h" #include "proxyimpl.h" #include "context.h" using namespace ch::internal; ioimpl::ioimpl(context* ctx, lnodetype type, uint32_t size, const std::string& name, const source_location& sloc) : ln...
/******************************************************************************** * Copyright 2013 The Robotics Group, The <NAME>-<NAME>ler Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in c...
/* * 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 ma...
#include "HelloWorldScene.h" const std::string s_aTestPoses[] = { "Pos: Center", "Pos: Top", "Pos: TopLeft", "Pos: TopRight", "Pos: Bottom", "Pos: BottomLeft", "Pos: BottomRight", }; Scene* HelloWorld::createScene() { // 'scene' is an autorelease object auto scene = Scene::create()...
/* american fuzzy lop++ - LLVM-mode instrumentation pass --------------------------------------------------- Written by <NAME> <<EMAIL>> and <NAME> LLVM integration design comes from Laszlo Szekeres. C bits copied-and-pasted from afl-as.c are Michal's fault. Copyright 2015, 2016 Googl...
// This file is included into test programs using #include #include <windows.h> #include <assert.h> #include <stdio.h> #include <string.h> #include <wchar.h> #include <vector> #include <string> #include "../src/shared/DebugClient.h" #include "../src/shared/TimeMeasurement.h" #include "../src/shared/DebugClient.cc" #...
#include "Player.h" Player::Player(sf::Texture* texture, sf::Vector2u imageCount, float switchTime, float speed, float jumpHeight, sf::Vector2f Position) : animation(texture, imageCount, switchTime) { currentHealth = 10; maxHealth = 10; this->speed = speed; this->jumpHeight = jumpHeight; row = 0; faceRigh...
/*B 2016/2017, Zadaća 1, Zadatak 2 NAPOMENA: ulaz/izlaz za zadatke je specificiran javnim autotestovima. Zalbe za ne analiziranje testova se ne uvazavaju! NAPOMENA: nece svi (javni) testovi sa zamgera biti dostupni na c9. */ #include <iostream> #include <vector> #include <stdexcept> #include <iom...
// Copyright 2020 Tier IV, 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 law or agreed to i...
#include "parser/ProductionRule.hpp" #include <cassert> #include <iostream> #include <limits> #include "Util.hpp" #include "Constants.hpp" const char ProductionRule::RULE_DEFINITION_START_MARKER = '#'; const char ProductionRule::RULE_DEFINITION_OPERATOR = '='; const char ProductionRule::RULES_SEPARATOR = '|'; const ...
#include "white_line_detection/white_line_detection.hpp" #include <cstdint> #include <string> #include <memory> #include <cv_bridge/cv_bridge.h> #include <opencv2/imgproc.hpp> #include <opencv2/core/ocl.hpp> #include <tf2_geometry_msgs/tf2_geometry_msgs.h> namespace WhiteLineDetection { WhiteLineDetection::WhiteL...
/* Most of the code from this small program has been copied and sligtly modified * from the HTK project. Its copyright included below: */ /* ----------------------------------------------------------- */ /* */ /* ___ ...
/* * Copyright 2021 Hewlett Packard Enterprise Development LP * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 c...
#include "stdafx.h" #include "build.h" extern void Detach (vecFace* S); void setup_bbs (Fbox& b1, Fbox& b2, Fbox& bb,int edge) { Fvector size; b1.set (bb); b2.set(bb); size.sub(bb.max,bb.min); switch (edge) { case 0: b1.max.x -= size.x/2; b2.min.x += size.x/2; break; case 1: b1.ma...
#include <Arduino.h> #include <EEPROM.h> #include "Gadget.hpp" #include "z85.hpp" void Gadget::start_program() { // Reset program state and program step data program_state_.init(); program_.init(); requested_state_ = state_ = GS_Running; } void Gadget::stop_program() { // Abort outputs digit...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "libts.h" #include "UrlMappingRegexMatcher.h" UrlMappingRegexMatcher::UrlMappingRegexMatcher(url_mapping *mapping) : re(NULL), re_extra(NULL), to_template(NULL), to_template_len(0), n_substitutions(0), url_map(mapping) { } UrlMappingRegexMatcher:...
/************************************************************** File: aes.cc Description: A program to implement the AES-128 encryption. Author: <NAME> (Group 6) Organization: IUSB, Computer and Information Sciences Date: September 2018 ********************************************...
/* * Copyright 2005-2009, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include "device.h" #include <stdlib.h> #include <string.h> #include <Drivers.h> #include <graphic_driver.h> #include <image.h> #include <KernelExport.h> #include <OS.h> #include <PCI.h> #include <SupportDefs.h> #inc...
// ================================================================================================= // Copyright 2002-2008 Adobe Systems Incorporated // All Rights Reserved. // // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms // of the Adobe license agreement accompan...
#include "serverlistener.h" #include <iostream> #include <cstdlib> #include <list> #include <future> #include <chrono> #include <thread> #include <sstream> #include "requestparser.h" ServerListener::ServerListener(int port, size_t buffer_size) { this->port = port; this->buffer_size = buffer_siz...
// This file is distributed under the BSD 3-Clause License. See LICENSE for details. #include "mmap_gc.hpp" #include <sys/resource.h> #include <sys/time.h> #include <unistd.h> #include "gmock/gmock.h" #include "gtest/gtest.h" #include "lrand.hpp" #if defined(__has_feature) #if __has_feature(address_sanitizer) #defi...
// 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 * ...
#pragma once #include <mpi.h> #include <cassert> #include <condition_variable> #include <deque> #include <list> #include <map> #include <set> #include <thread> #include <unordered_map> #include "context/data_recorder.hpp" #include "task.hpp" /** Submit a MPI Send(). */ class MpiSendTask : public Task { public: ...
// Copyright 2018 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <bits.h> #include <lib/zircon-internal/thread_annotations.h> #include <platform.h> #include <zircon/types.h> #include <a...
#include<bits/stdc++.h> using namespace std; const int N = 755, L = 1e7 + 9; bool reach[N][N]; struct AhoCorasick { int link[L], sz, to[L][2], dp[L][2], term[L], last[L]; // each string contains 'a' and 'b' AhoCorasick() { memset(link, 0, sizeof link); memset(to, 0, sizeof to); memset(dp, -1,...
#include "editor/editor_config.hpp" #include "base/stl_helpers.hpp" #include <algorithm> #include <cstring> #include <unordered_map> using namespace std; namespace { using EType = feature::Metadata::EType; // TODO(mgsergio): It would be nice to have this map generated from editor.config. static unordered_map<strin...
/** * > Author : TISparta * > Date : 03-08-19 * > Tags : Segment Tree, Fenwick Tree, DFS * > Difficulty : 6 / 10 */ #include <bits/stdc++.h> #define all(A) begin(A), end(A) #define rall(A) rbegin(A), rend(A) #define sz(A) int(A.size()) using namespace std; typedef long long ll; typedef pair <int, int> pii; cl...
// -*- c++ -*- /*========================================================================= Program: ParaView Module: pqOptions.cxx Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms o...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include <sys/times.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <uve/vm_stat.h> #include <uve/vm_stat_data.h> #include <db/db.h> #include <db/db_entry.h> #include <db/db_table.h> #include <net/address.h> #include ...
#include "ReadBoardXml.h" #include "../FlexChessException.hpp" #include "../Core/Board.h" #include "../Core/Players.h" #include "../Core/Player.h" #include <vs/managed/gl/model/ModelFactory.h> #include <vs/managed/gl/model/ManagedModel.h> #include <vs/base/util/FileException.h> #include <vs/base/xml/XmlException.h> #in...
// // main.cpp // cpp_tests // // Created by jief on 23.02.20. // Copyright © 2020 Jief_Machak. All rights reserved. // #include <iostream> #include <locale.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/types.h> #include <sys/uio.h> #include <unistd.h> #include <getopt.h> #include "...
#include "mimapch.h" #include "MinimalMachine.h" //external vendor libraries #include <fmt/format.h> //internal utility #include "util/Tree.h" //debugging utility #include "debug/LogFormat.h" #define READ_MIMA_REGISTER(cond, db, reg) if (cond) db |= reg #define WRITE_MIMA_REGISTER(cond, db, reg) if (cond) reg = db...
/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* This is script-generated code (for the most part). */ /* See dataCopy.h for a description of this API call.*/ #include "rcMisc.h" #include "dataCopy.h" #inc...
#include "plot_2d_potential.hpp" potential_plot::potential_plot(const field_real &Fdata, const parameters &Pdata) : plot_2d(Fdata, Pdata) { this->file = "splot_potential.pl4"; this->title = "Potential $\\Phi$"; this->cb_label = "$\\Phi$ in $\\frac{q_i^2}{m_i c_{si}^2}$"; } void potential_plot::auto_set(const fi...
// Copyright 2021 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
///////////////////////////////////////////////////////////////////// // // Graphs // // Copyright (c) 2016-2018 DonRumata710 // // 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 wit...
#include <algorithm> #include <vector> #include "cmagic/memory.h" #include "cmagic/utils.h" #include "unity.h" void setUp() { static uint8_t memory_pool[600]; cmagic_memory_init(memory_pool, sizeof(memory_pool)); TEST_ASSERT_EQUAL_size_t(0, cmagic_memory_get_allocated_bytes()); TEST_ASSERT_EQUAL_size...
#include "oflowBM.hpp" #include "colorcode.h" #include "mv2color.hpp" #include <stdexcept> #include <fstream> using namespace cv; using namespace std; OflowBM::OflowBM(VideoCapture cap, int blockSize, int shiftSize, float searchRadius) : blockSize(blockSize) , shiftSize(shiftSize) { this->cap = cap; int capWidth...
/* * * GAMS - General Algebraic Modeling System C++ API * * Copyright (c) 2017-2021 GAMS Software GmbH <<EMAIL>> * Copyright (c) 2017-2021 GAMS Development Corp. <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ...
/* * Copyright (c) 2013-2019 dresden elektronik ingenieurtechnik gmbh. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * */ #include <QCryptographicHash> #include ...
// // Copyright (C) 2004-2011 by Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of version 2.1 of the GNU Lesser // General Public License as published by the Free Software Foundation. // // This library is distributed in the hope that it will be use...
/* * 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 "SampleCode.h" #include "SkCanvas.h" #include "SkPath.h" #include "SkView.h" #include "SkClipOpPriv.h" class ComplexClipView : public SampleView { public: Comple...
/* * Copyright (c) 2015 <NAME> <<EMAIL>> * All rights reserved. * * This software was developed by the University of Cambridge Computer * Laboratory as part of the CTSRD Project, with support from the UK Higher * Education Innovation Fund (HEIF). * * Redistribution and use in source and binary forms, with or wi...
// RUN: %clang_cc1 -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -fsycl-is-device -emit-llvm %s -o - | FileCheck %s // CHECK: br label %for.cond, !llvm.loop ![[MD_DLP:[0-9]+]] // CHECK: br label %for.cond, !llvm.loop ![[MD_II:[0-9]+]] // CHECK: br label %for.cond2, !llvm.loop ![[MD_II_2:[0-9]+]] ...
/* File: iccSpecSepToTiff.cpp Contains: Console app to concatenate several separated spectral tiff files into a single tiff file optionally including an embedded profile Version: V1 Copyright: (c) see below */ /* * The ICC Software License, Version 0.2 *...
/* md5Checksum.c - checksumming routine on the client side */ #include "md5Checksum.hpp" #include "rcMisc.hpp" #include "irods_stacktrace.hpp" #include "irods_hasher_factory.hpp" #include "MD5Strategy.hpp" #include "getRodsEnv.hpp" #define MD5_BUF_SZ (4 * 1024) #ifdef MD5_TESTING int main( int argc, char *arg...
#include<iostream> #include<cstdint> #include<memory> #include<algorithm> #include<chrono> #include <vector> #include <array> // #include "memory_usage.h" auto start = std::chrono::high_resolution_clock::now(); int main() { auto delta1 = start - start; auto delta2 = delta1; auto delta3 = delta1; auto delt...
#include "DataFormats/EcalDetId/interface/EBDetId.h" #include "FWCore/Utilities/interface/Exception.h" #include <algorithm> const int EBDetId::kModuleBoundaries[4] = {25, 45, 65, 85}; // pi / 180. const float EBDetId::crystalUnitToEta = 0.017453292519943295; EBDetId::EBDetId(int index1, int index2, int mode) : DetId...
#include "Quaternions.h" #include "gl_core_4_4.h" #include <GLFW\glfw3.h> #include "Gizmos.h" using glm::vec2; using glm::vec3; using glm::vec4; using glm::mat4; Quaternions::Quaternions() { } Quaternions::~Quaternions() { } mat4 EvaluateKeyFrames(KeyFrame start, KeyFrame end, float t) { vec3 pos = glm::mix(start.p...
/* Solution to the "CountLuck" challenge by HackerRank: https://www.hackerrank.com/challenges/count-luck by simba (<EMAIL>). */ #include <iostream> #include <vector> #include <queue> struct Position { int N; int M; char arrivalFrom; int totalCrossroads; }; const char PATH = '.'; const char WALKED_PATH = ',';...
#include<iostream> #include<unordered_map> #include<map> #include<unordered_set> #include<string> #include<vector> #include<queue> #include<limits> #include<fstream> #include<stack> #include<sstream> #include<exception> #include<list> #include<random> #include"cmdln.h" #include"files.h" #include"util.h" #include"paral...
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2011, <NAME>, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are ...
// This is free and unencumbered software released into the public domain. // // Anyone is free to copy, modify, publish, use, compile, sell, or // distribute this software, either in source code form or as a compiled // binary, for any purpose, commercial or non-commercial, and by any // means. // // In jurisdictions ...
// Copyright 2021 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 #include "fpdfsdk/pwl/cpwl_sbbutton.h" #include <utility> #include <vector> ...
#include <chrono> #include <thread> #include <iostream> #include "../LockFreeLatch.hpp" using namespace std; typedef std::chrono::high_resolution_clock Timer; typedef long long Type; template <int size> using Array = long long[size]; template <int size> using Latch = LockFreeLatch<Array<size>>; template<int size...
/*! * @file kmalloc.cpp * GOAL Kernel memory allocator. * Simple two-sided bump allocator. * DONE */ #include <cstring> #include <cstdio> #include "common/goal_constants.h" #include "kmalloc.h" #include "kprint.h" #include "kscheme.h" // global and debug kernel heaps Ptr<kheapinfo> kglobalheap; Ptr<kheapinfo> kd...
#include <string> #include <gtest/gtest.h> #include "ros/ros.h" #include "nav_msgs/Odometry.h" #include "geometry_msgs/PoseWithCovarianceStamped.h" #include <boost/thread.hpp> using namespace ros; static const double time_end = 1264198883.0; static const double ekf_duration = 62.0; static const double EPS_trans...
#include "../include/LayerStuff.hpp" // @todo there is some weird dynamic behavior when, BEGIN_LAYER is used // or maybe it is because all other layers are already used and there // is not enough space in the data structure that BEGIN_LAYER can also // be stored. Therefore some new structure is app...
#include "Halide.h" #include <stdio.h> using namespace Halide; // The check has to go in the Halide namespace, because get_source_location looks for the first thing outside of it namespace Halide { void check(const void *var, const std::string &type, const std::string &correct_name, const std::s...
//=============================================================================== // Copyright (c) 2007-2016 Advanced Micro Devices, Inc. All rights reserved. // Copyright (c) 2004-2006 ATI Technologies Inc. //=============================================================================== // // Permission is hereby gr...
#include <iostream> #include <stdexcept> #include <string> #include <vector> #include <fstream> #include <sstream> #include <map> using namespace std; struct Tower { Tower(const string& n, int w, vector<string>& c) : name{n}, weight{w}, child_names{c} { } Tower(const string& n, int w) : name{...
#include <gtest/gtest.h> #include "core.h" #include <random> using namespace Eigen; using namespace xivo; TEST(CamerasEqui, EquiProjectUnproject) { auto cfg_ = LoadJson("src/test/camera_configs.json"); CameraManager *cam = Camera::Create(cfg_["phab_equi"]); std::default_random_engine generator; std::unif...
#include <iostream> // readlink #include <string.h> #include <time.h> #include <unistd.h> #include "client.h" #include "engine.h" #include "render.h" #include "state.h" /* -------------------------------------------------------------------------- */ const char *HELP_MESSAGE = R"V0G0N( usage: client <com...
#include <iostream> #include <cget/utilities.h> #include <cget/github-search.h> #include <cget/cmake-utils.h> #include <algorithm> #include <string> #include <sstream> #include <memory> #include <regex> using namespace std::regex_constants; static std::regex specific_github("^\\w+/\\w+$", ECMAScript | icase); static ...
#include "riptide_vision/object_processor.h" int main(int argc, char** argv) { ros::init(argc, argv, "object_processor"); ObjectProcessor yp; try { ros::spin(); } catch (exception &e) { ROS_ERROR("Obj Pro Error: %s", e.what()); ROS_ERROR("Obj Pro: Shutting Down"); } } ObjectProcessor::Obje...
/* * ===================================================================================== * * Filename: Master.cc * * Description: Master cpp file * * Version: 1.0 * Created: 03/26/2015 01:58:20 PM * Revision: none * Compiler: g++ * * Author: Petrus (), <EM...
#include <QApplication> #include <QDesktopWidget> #include <QFile> #include <QJsonDocument> #include <QJsonArray> #include <QMenu> #include <QMenuBar> #include <QToolBar> #include <QMessageBox> #include <QFileDialog> #include <QCloseEvent> #include <QStyle> #include <QHBoxLayout> #include <QScrollArea> #include <QInput...
/******************************************************************************* * Copyright (c) 2021, <NAME> * 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 sourc...
/* * Daemon.node: A node.JS addon that allows creating Unix/Linux Daemons in pure Javascript. * * Copyright 2010 (c) <<EMAIL>> * Modified By: <NAME> 2010 * Modified By: <NAME> 2010 * Modified By: <NAME> 2010 * Modified By: <NAME> 2010 * Modified By: <NAME> 2011 * Modified By: <NAME> 2011 * * Under MIT License....
// // synthetic_data_helper.cpp // synthetic_data_helper // // Created by <NAME> on 10/15/16. // Revised and edited by <NAME> on 27/02/20. // #define NPY_NO_DEPRECATED_API NPY_1_11_API_VERSION #include <iostream> #include <stdint.h> #include <alloca.h> #include <Eigen/Core> #include <Python.h> #include <numpy/nda...
#include "binary_radix_tree.h" #include "util/math.h" #include <assert.h> /* assert */ #include <thread> #include <vector> /* to store references to thread objects */ namespace { /** length of common prefix in bits */ template <typename T> inline int delta(const T * morton_keys, const int& i, const int& j) {...
/* Copyright (c) 2019-2020 Intel 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, modify, merge, publish, distribute, subl...
/******************************************************************************* * Copyright 2013-2014 Aerospike, 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://ww...
#include <gtest/gtest.h> #include <ginkgo/ginkgo.hpp> #include <string> #include "test/utils.hpp" #include "../include/hw6.hpp" template <typename ValueIndexType> class CsrSpmv : public ::testing::Test { protected: using ValueType = typename std::tuple_element<0, decltype(ValueIndexType())>::type; ...
/*****************************************************************/ /* NAME: <NAME> */ /* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */ /* FILE: main.cpp */ /* DATE: Apr 15th 2005 ...
/* * +---------------------------------------+ * | Gamebuino META Screen Recorder | * | © 2019 <NAME> (aka Steph) | * | https://gamebuino.com/@steph | * | Contributor: | * | <NAME> (@eriban) | * +---------------------------------------+ */ #include <Game...
#include <dmzSystem.h> #include <dmzTypesUUID.h> #if defined (__linux) #include <time.h> #endif // __linux #include <sys/time.h> // for time functions #include <stdlib.h> // for setenv #include <unistd.h> #if defined (__APPLE__) || defined (MACOSX) #include <mach/mach.h> #include <mach/mach_time.h> #endif #include...
/* * KeccakTools * * The Keccak sponge function, designed by <NAME>, <NAME>, * <NAME> and <NAME>. For more information, feedback or * questions, please refer to our website: http://keccak.noekeon.org/ * * Implementation by the designers, * hereby denoted as "the implementer". * * To the extent possible under ...
/* * Copyright (C) 2011, British Broadcasting Corporation * All Rights Reserved. * * Author: <NAME> * * 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 (c) 2012-2014 ARM Limited * All rights reserved. * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the...
// Copyright (c) 2015, <NAME>. All rights reserved. #include "OBJ_FabricKinematic.h" #include <PRM/PRM_Include.h> #include <CH/CH_LocalVariable.h> #include <UT/UT_DMatrix3.h> #include <ImathVec.h> #define FEC_PROVIDE_STL_BINDINGS using namespace OpenSpliceHoudini; using std::cout; using std::endl; using std::bool...
/* Do not remove this header/ copyright information. * * Copyright © Trilobyte Software Engineering GmbH, Berlin, Germany 2010-2011. * You are allowed to modify and use the source code from * Trilobyte Software Engineering GmbH, Berlin, Germany for free if you are not * making profit with it or its adaption. Else ...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2016 Couchbase, 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 * * h...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
/* Rational approximations using Stern-Brocot tree. (c) <NAME> 2016 Nodes of the Stern-Brocot tree (https://en.wikipedia.org/wiki/Stern%E2%80%93Brocot_tree) offer the best possible rational (p/q) approximation for any real number in the sense that any other rational approximation p'/q' of the same precission...
/****************************************************************************/ /// @file MSXMLRawOut.cpp /// @author <NAME> /// @author <NAME> /// @author <NAME> /// @author <NAME> /// @author <NAME> /// @date Mon, 10.05.2004 /// @version $Id$ /// // Realises dumping the complete network state /*************...
#include<bits/stdc++.h> using namespace std; using ll = long long; const int mx = 2e5 + 5; const int Lg = 22; int arr[mx]; vector<pair<int, int>>adj[mx]; int val[mx]; /* 1-indexed. head[i] is the head of the i-th chain. pos[i] is the position of the i-th node in the chain. */ struct HeavyLightDecomposition...
// license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** video.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "emu.h" #include "video/resnet.h"...
// Copyright 2019 Kirill <your_email> #include <header.hpp> Experiment::Experiment(const int &l1, const int &l2, const int &l3) { this->travel_variant = "Direct"; _ofile.open("direct.txt"); cache_sizes['1'] = l1; cache_sizes['2'] = l2; cache_sizes['3'] = l3; } Experime...
#include <iostream> #include <vector> #include <cassert> using namespace std; class Row{ //понадобится для реализации [][] public: vector <double> row; size_t size; Row(size_t columns, double value){ //аналогично простому вектору assert(columns>0); row.resize(columns); size=columns; for (size_t i=0;i<colu...
/* * Copyright © 2011-2014 <NAME> * * This file is part of "fragview" software suite. * * 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...
// // Title : UNO2IEC - interface implementation, arduino side. // Author : <NAME> // Version : 0.1 // Target MCU : Arduino Uno AtMega328(H, 5V) at 16 MHz, 2KB SRAM, 32KB flash, 1KB EEPROM. // // CREDITS: // -------- // The UNO2IEC application is inspired by Lars Pontoppidan's MMC2IEC project. // It...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <math.h> #include <posit/posit> #include <iostream> #include <iomanip> #include "batch.hpp" #include "utils.hpp" #include "defines.hpp" using namespace std; using namespace sw::unum; posit<NBITS, ES> random_number(float offset, float dev) { floa...
#include "scheduler.h" #include <iostream> #include <random> #include <algorithm> #include <cmath> #include "mult.h" uniform_real_distribution<float> u01; Scheduler::Scheduler(float *adj_w, int *adj_i, int *adj_p, int num_data, int num_edges, int L, bool cv, bool is) : cv(cv), is(is), adj_w(adj_w, ...
/** * \file src/model_parser.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS...