text
stringlengths
3.08k
12.5k
// // Created by neo on 2021/12/4. // #include "motor.h" #include <cmath> #include <stdexcept> void MiniCheetahMotor::controlRaw(double qDes, double qdDes, double tauDes, double kP, double kD) { struct can_frame frame{}; if (id_ == 0) { throw std::runtime_error("Motor is not...
/* * osm_parser.cpp * * (C) <NAME> 2020 * * Parser of osm files * */ #include <iostream> #include <fstream> #include <string> #include <time.h> #include <unistd.h> #include <sys/time.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <string.h> #i...
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
/* @@@LICENSE * * Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
// 日本語。 #include "pch.h" #include "JpegToTexture.h" #include <windows.h> #include <minmax.h> #include <gdiplus.h> #include "GdiplusHousekeeping.h" struct WH { int w; int h; }; /// @param portion 比率を0~1で指定。nullptrのとき全域をテクスチャーにする。 static int ExtractJpegToBGRA(const wchar_t * path, const XrRect2Df *portion, ...
#include "DSPayPalResponse.h" #include "DSCasts.h" DynSoft::DSPayPalResponse::DSPayPalResponse() : DSType( ) { } DynSoft::DSPayPalResponse::DSPayPalResponse( const bool ack, const wxString &version, const wxString &timeStamp, const wxString &build, const wxString &contentType, const unsigned long contentLength,...
// // Created by chnlkw on 1/16/18. // #include "Allocator.h" #include "Device.h" #include "Ptr.h" #define LG(x) CLOG(x, "Allocator") namespace Xuanwu { std::string bytes_to_str(size_t bytes) { double b = bytes; std::vector<std::string> suffix = {"B", "KB", "MB", "GB", "TB"}; for (auto s...
/* * Copyright (c) 2004-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. * */ #in...
/************************************************************************ Copyright 2017-2019 eBay Inc. Author/Developer(s): <NAME> 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.a...
/* LICENSE ------- Copyright 2005 Nullsoft, 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, this list of conditio...
/* Copyright 2020 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 writing, sof...
#include <cstdlib> #include <cstring> #include "sass/context.h" #include "emscripten_wrapper.hpp" #include <emscripten.h> void sass_compile_emscripten( char *source_string, char *include_paths, bool compile_file, bool custom_importer, int output_style, int precision, bool source_comments, bool is_inden...
#include <iostream> using namespace std; template <typename E> class List { private: void operator=(const List&){} List(const List&){} public: List(){} //constructor virtual ~List(){} //destructor virtual int NumberOfElements() const = 0; //Return number of elements in the list virtual int CurrentLo...
// // Copyright (c) 2017 The Khronos Group 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 la...
/* * Copyright (c) 2017 ARM Limited. * * SPDX-License-Identifier: MIT * * 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 ...
/****************************************************************************** * Copyright 2017 The Apollo 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 ...
/* * 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 without limitation the rights * to use, copy, modify, merge, publ...
/** * \file dnn/src/aarch64/matrix_mul/int16/strategy.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 distribut...
// This block enables to compile the code with and without the likwid header in place #ifdef LIKWID_PERFMON #include <likwid-marker.h> #else #define LIKWID_MARKER_INIT #define LIKWID_MARKER_THREADINIT #define LIKWID_MARKER_SWITCH #define LIKWID_MARKER_REGISTER(regionTag) #define LIKWID_MARKER_START(regionTag) #define ...
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (<NAME>, et al.) listed in // the CONTRIBUTORS file. <<EMAIL>> // // LL...
#include <iostream> #include <map> #include <vector> #include <fstream> #include <sstream> #include <string> #include <cstdlib> #include <cstdio> #include <unistd.h> #include <ext/stdio_filebuf.h> #include <cstring> #include <signal.h> using namespace std; int iabs(int a) { return a < 0 ? -a : a; } ...
#include "domains/interval.h" #include "utils/constants.h" #include "utils/utilities.h" #include <limits> #include <iostream> #include <cassert> #include <cmath> Interval::Interval(float inf, float sup) { if (!(inf <= sup)) std::cout << inf << " " << sup << std::endl; assert(inf <= sup); this->inf = inf; t...
#include <bits/stdc++.h> using namespace std; struct Bigint { // representations and structures string a; // to store the digits int sign; // sign = -1 for negative numbers, sign = 1 otherwise // constructors Bigint() {} // default constructor Bigint( string b ) { (*this) = b; } // construct...
#include <iostream> #include <random> #include <functional> #include <cassert> #include <chrono> #include "ta_libc.h" #include <cstddef> #include <cstdio> #include <cstdlib> #include <cstring> using namespace std; namespace text2bin { typedef struct { float *values; int size; int count; } quotes_t; void in...
#include "opencv2/imgcodecs.hpp" #include "opencv2/highgui.hpp" #include <ros/ros.h> #include <cv_bridge/cv_bridge.h> #include <image_transport/image_transport.h> #include "SimpleObject.h" #include "HsvColorDetector.h" #include "SizeDetector.h" using namespace cv; using namespace std; const int h_slider_max_val = 17...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
#include "cdjpeg.h" #include "cdjapi.h" #include "jconfigint.h" #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <string> #include <vector> #include <memory> #include "vector_dest_mgr.h" static int comps[] = { -1, 1, // Grayscale 3, // RGB 3, // YCbCr 4, // CMYK 4, // YC...
#include "stdafx.h" #include "Resources.h" #include <thread> #include <urlmon.h> #include <WinInet.h> #include <d3dx9_dynamic.h> #include <Defines.h> #include "GWToolbox.h" #include <logger.h> void Resources::Initialize() { ToolboxModule::Initialize(); worker = std::thread([this]() { while (!should_stop) { i...
// // Copyright (c) 2009-2010 <NAME> <EMAIL> // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, // including c...
#include "ActionManager.hpp" #include "AnimationTranslator.hpp" #include "CombatManager.hpp" #include "CoordUtils.hpp" #include "CurrentCreatureAbilities.hpp" #include "Game.hpp" #include "HostilityManager.hpp" #include "DisplayTile.hpp" #include "EffectFactory.hpp" #include "SpellShapeProcessor.hpp" #include "TileDama...
/*Copyright 2019-2021 CasualYouTuber31 <<EMAIL>> 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, ...
/*************************************************************************** copyright : (C) 2002-2008 by <NAME> email : <EMAIL> $Id: search.cxx,v 1.3 2008-10-07 11:06:25 tat Exp $ ***************************************************************************/ /** \example search.c...
//===-- TypeSummary.cpp ----------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------------------------...
/* * Copyright (c) 2010, 2017-2018 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 o...
#include "mex.h" //#include <pthread.h> //#include <unistd.h> // for # of CPUs template <class Tdata> int sqrdist_thread_launcher(const Tdata *x,const Tdata *y,int N,int d,int q,double *distmtrx,int n_threads); /* * This is the Matlab wrapper */ /* * Given x and y, compute the distance between them. x is * d-b...
/** * Copyright (C) 2022 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
/* * Software License Agreement (BSD License) * * Copyright (c) 2016-2021, Natalnet Laboratory for Perceptual Robotics * 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. Redistribu...
/*========================================================================= Program: Visualization Toolkit Module: vtkRegularPolygonSource.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distribu...
/* Network Next SDK. Copyright © 2017 - 2022 Network Next, Inc. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and th...
/** * Copyright 2020 Huawei Technologies Co., Ltd * * 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...
/* * Author: <NAME> * Copyright (c) 2015 Intel 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 use, copy, modi...
//********************************** // OpenGL Draw Range // 10/05/2010 //********************************** // <NAME> // <EMAIL> //********************************** // G-Truc Creation // www.g-truc.net //********************************** #include <glf/glf.hpp> namespace { std::string const SAMPLE_NAME = "OpenGL D...
/* * Copyright (c) 2013 BlackBerry Limited * Author: <NAME> * * 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 app...
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007, Industrial Light & Magic, a division of Lucas // Digital Ltd. LLC // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the f...
#include "global.h" #include "CrashHandlerInternal.h" #include <csignal> #include <cstring> const char *itoa( unsigned n ) { static char ret[32]; char *p = ret; for( int div = 1000000000; div > 0; div /= 10 ) { *p++ = (n / div) + '0'; n %= div; } *p = 0; p = ret; while( p[0] == '0' && p[1] ) ++p; return...
/* * This file is part of the Simutrans project under the Artistic License. * (see LICENSE.txt) */ #include "../simdebug.h" #include "../world/simworld.h" #include "building_desc.h" #include "../network/checksum.h" /** * Calculate which layout the tile belongs to from the index. */ uint8 building_tile_desc_t...
/* Image Uploader - free application for uploading images/files to the Internet Copyright 2007-2018 <NAME> (<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 ...
#include "SnpSocket.h" #include "libwebsockets.h" #include "snappyv1.pb.h" #include "util/loguru.h" static struct lws_protocols protocols[] = { { "http", SnpSocket::callback_http, 0 }, { NULL, NULL, 0, 0 } /* terminator */ }; SnpSocket::SnpSocket() { memset(&info, 0, sizeof info); info.port = 9002; ...
// ransom.cpp : Defines the entry point for the console application. // #include "stdafx.h" //#include "dirent.h" typedef unsigned char byte; #define VULN_PASS_LEN 50 char* szPasswordable = "<KEY>"; // Requires buffer of at least VULN_PASS_LEN characters void GenVulnerablePassword(char* buff) { for (int i = 0; i ...
#include "ReadFilter.h" #include <algorithm> #include <chrono> #include <iomanip> #include <iostream> #include <random> #include <set> ReadFilter::~ReadFilter() {} void MinHashReadFilter::initialize(ReadData &rD) { this->rD = &rD; numReads = rD.getNumReads(); readPos = &rD.getReadPos(); readPosSorted....
/*This file is part of the FEBio Studio source code and is licensed under the MIT license listed below. See Copyright-FEBio-Studio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any per...
// Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers, [ ] developers. // Licensed under the GNU Lesser General Public License. See LICENSE for details. #pragma once #include <boost/variant.hpp> #include <functional> #include <vector> #include "common/BinaryArray.hpp" #include "crypt...
/* * Copyright (c) 2020-2021, NVIDIA 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...
/* * File: main.cpp * Author: hmunozbauza * * Created on December 18, 2015, 6:38 PM */ #include <iostream> #include "ising.h" #include "Log.h" #include "ising_mc.h" using namespace std; /* * */ INITIALIZE_EASYLOGGINGPP unsigned long get_current_time(){ return chrono::system_clock::now().time_since_e...
#include "svgfigureparser.h" #include <cmath> QStringList SVGFigureParser::parsePoints(const QString &string) { QRegExp rx("\[\\s\]*(\[\\d\\.\]+)\[\\s\]*,\[\\s\]*(\[\\d\\.\]+)\[\\s\]*(\[\\d\\.\]+)\[\\s\]*,\[\\s\]*(\[\\d\\.\]+)\[\\s\]*(\[\\d\\.\]+)\[\\s\]*,\[\\s\]*(\[\\d\\.\]+)\[\\s\]*(\[\\d\\.\]+)\[\\s\]*,\[\\s\]*...
////////////////////////////////////////////////////////////////////////////////////////////// //*******<NAME>'s super-excellent computer to microcontroller data transfer code!*******// ////////////////////////////////////////////////////////////////////////////////////////////// /* Usage guide: Output: Put variable ...
/**************************************************************************** * * Copyright (c) 2019-2020 PX4 Development Team. 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...
#include "Alignment.h" #include <fstream> #include <string> #include <stdlib.h> #include <cstring> namespace { const int LINE_MAX_LENGTH = 10000; } // namespace using namespace std; void Alignment::Create(const string& fileName) { ifstream textFile; char line[LINE_MAX_LENGTH]; // count the number of words ...
#include <fstream> #include <iomanip> #include <VisMF.H> #include <PlotFileUtil.H> std::string BoxLib::LevelPath (int level, const std::string &levelPrefix) { return BoxLib::Concatenate(levelPrefix, level, 1); // e.g., Level_5 } std::string BoxLib::MultiFabHeaderPath (int level, const std::string &levelPr...
#include "RecoMuon/L3MuonProducer/src/QuarkoniaTrackSelector.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "DataFormats/Common/interface/Handle.h" #include "FWCore/MessageLogger/interface/MessageLogge...
/* GNUPLOT - QtGnuplotEvent.cpp */ /*[ * Copyright 2009 <NAME> * * Permission to use, copy, and distribute this software and its * documentation for any purpose with or without fee is hereby granted, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this ...
/******************************************************************************* * Copyright 2016 ROBOTIS CO., LTD. * * 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.o...
#include <iostream> #include <string> #include <vector> #include "modulus.h" #define NDEBUG #define FULLSCREEN false using namespace Modulus; GameManager::GameManager(){ mWindow = nullptr; mContext = nullptr; mScreenWidth = 100; mScreenHeight = 100; isRunning = true; mTextCursor = 0; mSelectionLength...
/******************************************************************************* * Copyright (c) 2007, 2008, CerroKai Development * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redi...
/* Copyright © 2015 Jesse 'Jeaye' Wilkerson See licensing at: http://opensource.org/licenses/BSD-3-Clause File: test/include/parser/escape.hpp Author: Jesse 'Jeaye' Wilkerson */ #include <jeayeson/jeayeson.hpp> #include <jest/jest.hpp> namespace jeayeson { struct escape_test{}; using escape_group = j...
// Copyright (c) <NAME>. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "DXTracker.h" #include "functions.h" #include "tasks.h" // Setup void setup() { // Debug Serial.begin(115200); // Init screensaver timer screensaver = m...
/** * @file usart_test/main.cc * @copyright (c) 2018, natersoz. Distributed under the Apache 2.0 license. */ #include "usart.h" #include "rtc.h" #include "timer_observer.h" #include "leds.h" #include "clocks.h" #include "gpio_te.h" #include "nrf_cmsis.h" #include "logger.h" #include "write_data.h" #include "rtt_o...
#include "fmath2.hpp" #include <cybozu/test.hpp> #include <cybozu/benchmark.hpp> #include <float.h> #include <vector> float g_maxe; float diff(float x, float y) { float d = std::abs(x - y); return fabs(x) > 1e-10 ? d / x : d; } float fmath_logf(float x) { float y; fmath::logf_v(&y, &x, 1); return y; } float lo...
#include <ctime> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iomanip> #include <iostream> #include <algorithm> #include <string> #include <vector> #include <queue> #include <list> #include <map> using namespace std; #define OUTPUT_DEBUG1(TARGET0) \ cerr << #TARGET0 << " == " ...
#include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include <math.h> #include <fstream> #include <iostream> using namespace cv; using namespace std; #define ATD at<double> #define elif else if #ifndef bool #define bool int #define false ((bool)0) ...
/* * Copyright 2008-2010, <NAME>, <EMAIL>. All rights reserved. * Copyright 2004-2007, <NAME>, <EMAIL>. * Based on code written by <NAME> for NewOS. * * Distributed under the terms of the MIT License. */ #include "nextrom.h" #include "mmu.h" #include <boot/platform.h> #include <boot/stdio.h> #include <boot/ker...
//~ 1152 - <NAME> #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long long unsigned llu; typedef double dl; typedef pair<int,int> pii; typedef pair<ll,ll> pll; typedef vector<int> vi; typedef vector<ll> vl; typedef map<int,int> mii; typ...
#include <cmath> #include <cstdlib> #include <iostream> #include <string> #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/shape_inference.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/platform/default/logging.h" using namespace std; using std::stri...
/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2011 <NAME> (<EMAIL>) All rights reserved. // See accompanying LICENSE file for full license information. /////////////////////////////////////////////////////////////////////////////// #include "Prefix.h" #include "Graphi...
#include "shape.hpp" #include "lue/framework/algorithm/create_partitioned_array.hpp" #include <pybind11/numpy.h> #include <pybind11/stl.h> // std::optional #include <fmt/format.h> using namespace pybind11::literals; namespace lue::framework { namespace { template< typename T> usin...
/* Copyright (c) 2017 <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, modify, merge, publish, distribute, sublicen...
// // License++ // // Copyright © 2018-present Amrayn Web Services // https://amrayn.com // // See https://github.com/amrayn/licensepp/blob/master/LICENSE // // Usage: ./license-manager-sample --license <license-file> [--signature <signature>] /** * ./license-device \ * --license ../license.lic \ * --signature D...
#include <iostream> #include <Windows.h> #include <process.h> #define house "---房子---" #define home "---我们的家---" using namespace std; int loveDifficult, g_nKey, My_X, My_Y, Your_X, Your_Y, MyLove, YourLove, LoveTime, LoveFlag = 0; //爱的难度、按键信息、控制台光标X、Y坐标 HANDLE hIn, hOut; //输入/输出设备句柄 COORD Outchar; void KeyPr...
#include "Scene.h" Scene::Scene(unsigned int w, unsigned int h) :width(w) ,height(h) ,eyePos(0, 0, 0) ,bvh(nullptr) { backgroundColor = {0.25, 0.5, 0.75}; } void Scene::buildBVH() { if(nullptr != bvh) { delete bvh; } bvh = new BVH(objectList, 1, BVH::SplitMethod::NAIVE); } Scene::~Scene...
#include"Boss/Mod/ChannelCandidatePreinvestigator.hpp" #include"Boss/ModG/ReqResp.hpp" #include"Boss/Msg/PreinvestigateChannelCandidates.hpp" #include"Boss/Msg/ProposeChannelCandidates.hpp" #include"Boss/Msg/RequestConnect.hpp" #include"Boss/Msg/RequestDowser.hpp" #include"Boss/Msg/ResponseConnect.hpp" #include"Boss/Ms...
#include "LVGLPage.h" #include <QIcon> #include "LVGLObject.h" class LVGLPropertyPageScrollbars : public LVGLPropertyEnum { public: LVGLPropertyPageScrollbars() : LVGLPropertyEnum(QStringList() << "Off" << "On" << "Drag" ...
/* * Copyright 2018 Now Technologies Zrt. * * 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, ...
#include "triangle.h" #include "rightangledtriangle.h" #include <cmath> #include <iomanip> #include <sstream> namespace { /// @return @c x squared. inline double sqr(double x) { return pow(x, 2); } inline Angle C_from_a_b_c(double a, double b, double c) { // Cosine rule: // c2 = a2 + b2 − 2ab cos(C) ...
// RUN: %clangxx -fsycl %s -o %t.out //==---- integer_n_bit.cpp - SYCL integerNbit type traits test -------------==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exceptio...
/* * Copyright (C) 2018 Microchip Technology Inc. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 */ #include <cxxopts.hpp> #include <egt/ui> #include <memory> #include <random> #include <sstream> #include <string> #include <vector> class FloatingBox { public: FloatingBox(std::shared_ptr<egt::Wid...
#ifndef MT #include "MT.h" #endif #include <stdint.h> /* initializes mt[MT_N] with a seed */ void init_genrand(uint32_t s) { mt[0] = s & 0xffffffffUL; for (mti = 1; mti<MT_N; mti++) { mt[mti] = (1812433253UL * (mt[mti - 1] ^ (mt[mti - 1] >> 30)) + mti); /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplie...
// Author: <NAME> #include <iostream> #include <memory> #include <stdexcept> #include <string> #include <boost/algorithm/string.hpp> #include <pbcopper/cli2/CLI.h> #include <pbcopper/data/Read.h> #include <pbcopper/utility/FileUtils.h> #include <pbbam/BgzipFastaWriter.h> #include <pbbam/EntireFileQuery.h> #include ...
/* * Copyright (c) 2012, 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 co...
// MIT License // // Copyright (c) 2020 by <NAME>, Carnegie Mellon University // // 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 rig...
/* MIT License [Initial work] Copyright (c) 2018 <NAME> and <NAME> and <NAME> and <NAME> and <NAME> [Adaptation] Copyright (c) 2018 <NAME>, <NAME>, <NAME> and <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to de...
// // Created by Amrik on 03/03/2018. // #include <BulletCollision/CollisionShapes/btTriangleMesh.h> #include <BulletCollision/CollisionShapes/btBvhTriangleMeshShape.h> #include "Track.h" #include "../Util/Utils.h" Track::Track(std::string name, int model_id, std::vector<glm::vec3> verts, std::vector<glm::vec2> uvs, ...
#include <istream> #include <ostream> #include <iostream> #include <iterator> #include <fstream> #include <unistd.h> #include <inja/inja.hpp> #include <cxxopts/cxxopts.hpp> #include <nlohmann/json.hpp> using namespace inja; using json = nlohmann::json; bool read_source(std::string srcPath, std::string& content) { ...
#pragma once #include<iostream> #include<atomic> #include<future> #include<cmath> #include<opencv2/opencv.hpp> #include"ACException.hpp" #include"ACProcessor.hpp" #if defined(_MSC_VER) && !defined(USE_TBB) #define PARALLEL_LIBRARY "PPL" #elif defined(USE_TBB) #define PARALLEL_LIBRARY "TBB" #else #define PARALLEL_LI...
/* * A program that calculates the partition function for two strands of nucleic acids. * These strands of nucleic acids can be composed of either DNA or RNA. * * (c) 2009 Mathews Lab, University of Rochester Medical Center. * Written by <NAME> */ #include "bipartition.h" ///////////////////////////////////////...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "core/framework/tensorprotoutils.h" #include "core/graph/constants.h" #include "core/graph/contrib_ops/contrib_defs.h" namespace ONNX_NAMESPACE { void convPoolShapeInference( InferenceContext& ctx, bool us...
// Copyright (c) 2021 PaddlePaddle 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...
// // Created by oiluz on 9/3/2017. // #include <guacservice/GuacService.h> GuacService::GuacService() : m_IsServiceRunning(false), m_ConnectionsHandler(nullptr) { m_Acceptor = new boost::asio::ip::tcp::acceptor(m_IOService); } GuacService::~GuacService() { CleanupService(); delete m_Acceptor; delete m_C...
#include <cassert> #include <fmt/format.h> #include <sstream> #define LOGURU_WITH_STREAMS 1 #include <loguru/loguru.hpp> #include <glslang/MachineIndependent/gl_types.h> #include "glsl_to_cpp.h" using namespace fmt::v6; Type get_type(const glslang::TType* type, AlignmentRequirements alignment, vector<string>& defs)...
/* * TinyJS * * A single-file Javascript-alike engine * * Authored By <NAME> <<EMAIL>> * * Copyright (C) 2009 Pur3 Ltd * * 42TinyJS * * A fork of TinyJS with the goal to makes a more JavaScript/ECMA compliant engine * * Authored / Changed By <NAME> <<EMAIL>> * * Copyright (C) 2010-2015 ardisoft * * *...
#include "SDLInput.h" #include "Application/Model/Config.h" int keyMapping[]={ SDLK_a, SDLK_s, SDLK_LEFT, SDLK_RIGHT, SDLK_UP, SDLK_DOWN, SDLK_RCTRL, SDLK_LCTRL, SDLK_SPACE } ; int eventMapping[]={ SDLI_BUTTON_A, SDLI_BUTTON_B, SDLI_BUTTON_LEFT, SDLI_BUTTON_RIGHT, SDLI_BUTTON_UP, SDLI_BUTTON_DOWN, S...