text
stringlengths
3.08k
12.5k
/*** * * Copyright (c) 1996-2002, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * object ...
// Copyright (c) 2010 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 "chrome/browser/alternate_nav_url_fetcher.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "chrome/browser/intranet_r...
/* _________________________________________________________________________ * * TEVA-SPOT Toolkit: Tools for Designing Contaminant Warning Systems * Copyright (c) 2008 Sandia Corporation. * This software is distributed under the LGPL License. * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corpor...
/* storageimage.cpp: bianry SimH comatible image file as storage medium. Copyright (c) 2021, <NAME> <EMAIL>, www.retrocmp.com 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 restrict...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2021, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
//%Header { /***************************************************************************** * * File: src/Game/GameController.cpp * * Copyright: <NAME> 2002-2007, 2020 * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Softw...
/*************************************************************************** qgsrelationmanagerdialog.cpp -------------------------------------- Date : 23.2.2013 Copyright : (C) 2013 <NAME> Email : <EMAIL> **************************************************...
/** * @file 1216.cpp * * @brief * 1. Input a series of word. * 2. Calculate the word frequence. * 3. Sort by the count of alphabat then the alphabetical order. * * @example * [Input] * Lorem Ipsum is simply dummy text of the printing and * typesetting industry. Lorem Ips...
// // Created by peiyuan on 15/11/18. // #include <sys/types.h> #include <unistd.h> #include <stdlib.h> #include <sstream> #include <fstream> #include <vector> #include <iostream> #include <semaphore.h> #include <sys/stat.h> #include <fcntl.h> #include <pthread.h> #define NORTH 0 #define WEST 1 #define SOUTH 2 #defin...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; bool beats(int a, int b, bool advLeft) { if (a>=90 && b<=90) return false; else if (a>=90 && b>90) return b > a; else if (...
#include <system/drivers/usb/usbcomborecv.h> #include <system/drivers/usb/usbdefs.h> #include <system/log.h> #include <system/system.h> #include <system/usb/hidparser.h> using namespace CactusOS; using namespace CactusOS::common; using namespace CactusOS::core; using namespace CactusOS::system; using namespace CactusO...
#include <vtkActor.h> #include <vtkCamera.h> #include <vtkCoordinate.h> #include <vtkMath.h> #include <vtkNamedColors.h> #include <vtkNew.h> #include <vtkPolyDataMapper.h> #include <vtkProperty.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkSmartPointer.h> #...
// Bootstrapping for critical values for Johansens rank test for a VECM // Model is dX = (Pi*X[t-1]+Phi*D[t])dt + Sigma*dW[t], 3-dimensional... // [[Rcpp::depends(RcppArmadillo)]] #include <RcppArmadillo.h> #include <stdio.h> #include <math.h> #include "tools.h" #include "johansen.h" using namespace Rcpp; using names...
/* ** Name: <NAME> ** Program: Palindrome Checker Program ** Purpose: To check if a given string is a palindrome. ** ** Notes: ** - This program only tests the palindrome function (and is not a fully-fledged program). ** - I made functions for leap year and month end as I figured the code may be used elsewhere in ** ...
#include <stdio.h> #include <iostream> #include <fstream> #include <chrono> #include <omp.h> #include <immintrin.h> #include <zmmintrin.h> #define DOU float #define INT int #define DOU_VEC __m512 using namespace std; typedef chrono::high_resolution_clock Clock; const int m=1638400; // DO NOT CHANGE!! const int K=10...
// C++ Standard Library #include <array> #include <chrono> #include <cstring> #include <iomanip> #include <iostream> // TwoD #include <twod/coordinates.h> #include <twod/grid.h> #include <twod/stream.h> // MMPL #include <mmpl/metric.h> #include <mmpl/planner.h> #include <mmpl/state.h> #include <mmpl/state_space.h> #i...
#include <Arduino.h> #include <M5Stack.h> #include <FastLED.h> // Free Fonts for nice looking fonts on the screen #include "Free_Fonts.h" #define M5STACK_FIRE_NEO_NUM_LEDS 10 #define M5STACK_FIRE_NEO_DATA_PIN 15 // Define the array of leds CRGB leds[M5STACK_FIRE_NEO_NUM_LEDS]; // Global variables unsigned int bri...
// // Created by antchr-4 on 11/17/16. // #include <cmath> #include "AABB.h" #include "plane.h" AABB::AABB() {} AABB::AABB(vector3D center, vector3D halfSize) : center(center), halfSize(halfSize) { centerOr = center; this->center = center; float maxX = halfSize.x(); float maxY = halfSize.y(); fl...
#include "FocusCamera.h" #include "ExtendedMath.h" using namespace DirectX; // Constructor - Set up the focus camera FocusCamera::FocusCamera(GameObject* obj, DirectX::XMFLOAT3 anchor, XMFLOAT3 anchorRotation, float zoomDist, float yMinimum) : Camera() { inputManager = InputManager::GetInstance(); focusObj = obj; ...
/* * 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 ...
/* -*- Mode:C++; c-basic-offset:8; tab-width:8 -*- */ /* * Copyright (c) 1997 Regents of the University of California. * 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...
/* This testcase is part of GDB, the GNU debugger. Copyright 2011-2020 Free Software Foundation, Inc. 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; either version 3 of the License, or ...
#include "Transform.hpp" Transform Transform::scale(float x, float y, float z) { Transform t; t.m.d[0] = x; t.minv.d[0] = 1.0f / x; t.m.d[5] = y; t.minv.d[5] = 1.0f / y; t.m.d[10] = z; t.minv.d[10] = 1.0f / z; return t; } Transform Transform::translate(float x, float y, float z) { Transform t; t.m.d[3] = x; t....
// BazaarvoiceUtils.cpp: implementation of the BazaarvoiceUtils class. // // Class is used to get a String of hex characters that represents // the encoded version of the specified user ID. // // Copyright 2013 Bazaarvoice, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use ...
// -*- mode: C++ -*- // // Copyright (c) 2007, 2008, 2009, 2010, 2011 The University of Utah // All rights reserved. // // This file is part of `csmith', a random generator of C programs. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following ...
/* Normie's (long overdue) persistent segtree template Version 1.0 This segtree supports point update and range query. Tested with https://www.spoj.com/problems/KQUERY/ */ // Standard library in one include. #include <bits/stdc++.h> using namespace std; // ordered_set library. #include <ext/pb_ds/as...
#include "IcmpTests.hpp" #include <stdexcept> #include <iostream> #include <vector> IpAddresses::IpAddresses() {} IpAddresses::IpAddresses(const std::wstring& ipV4, const std::wstring& ipV6) : IpV4(ipV4), IpV6(ipV6) {} IcmpEchoResult::IcmpEchoResult() : RoundTripTime(0), DataSize(0), Sta...
// 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 "chrome/browser/ui/window_sizer/window_sizer_chromeos.h" #include <utility> #include "build/chromeos_buildflags.h" #include "chrome/browser...
/* * help_functions.cpp * * Created on: Apr 24, 2017 * Author: ramiz */ #include <iostream> #include <vector> #include <fstream> #include <sstream> #include <iomanip> #include "markov_localisation/help_functions.h" HelpFunctions::HelpFunctions() : ONE_OVER_SQRT_2PI(1/sqrt(2*M_PI)) { } //definition squa...
#include <c10/core/dispatch/KernelRegistration.h> #include "caffe2/operators/experimental/c10/schemas/filler.h" #include "caffe2/utils/math.h" using caffe2::CPUContext; using caffe2::Tensor; using caffe2::TensorCPU; using std::vector; namespace caffe2 { namespace { void filler_init( at::ArrayRef<const...
// Copyright (c) 2010 Hewlett-Packard Development Company, L.P. 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 <string> #include <getopt.h> #include <webvfx/webvfx.h> #include <QFileInfo> #include <QImage> #inclu...
/***************************************************************************** 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...
#include "Options.hpp" #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace intergrid; static char* get_arg(char* argv[], int& i) { ++i; if (!argv[i]) { fprintf(stderr, "%s: Missing argument to option %s\n", argv[0], argv[i - 1]); exit(EXIT...
/***************************************************************************** TestBigMuffPi.cpp Author: <NAME>, 2020 --- Legal stuff --- This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms o...
/* ____ _____ _ _ | __ )| ____| | / \ | _ \| _| | | / _ \ | |_) | |___| |___ / ___ \ |____/|_____|_____/_/ \_\ The platform for ultra-low latency audio and sensor processing http://bela.io A project of the Augmented Instruments Laboratory within the Centre for Digital Music at Queen M...
#include "videoplayer.h" #include <QGuiApplication> #include <QTimer> #include <QOpenGLShaderProgram> #include <QOpenGLTexture> #include <QMouseEvent> #define PROGRAM_VERTEX_ATTRIBUTE 0 #define PROGRAM_TEXCOORD_ATTRIBUTE 1 VideoPlayer::VideoPlayer(QWidget *parent) : QOpenGLWidget(parent), clearColor(Qt::b...
#include "zonesgraph.h" #include "schemegraph.h" #include <QPainter> #include <stdio.h> #include <QDebug> #include "colortransform.h" #include "hidpiscaler.h" void ZonesGraph::_drawAmplitudePlate (QPainter &painter, double squareWidth, double maxRad, QBrush &colorBrush, QBrush...
// // VisuHandler.cpp // <NAME> // // Created by Tinmar on 14/08/13. // Copyright 2013 __MyCompanyName__. All rights reserved. // #define MAXSCREENUNION 5 #include "VisuHandler.h" VisuHandler::VisuHandler(){ } void VisuHandler::setup(AttrCtl *attrctl,BlobHandler* bHin, int inwin, int inhin, int zdep...
/* * Copyright 2019 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related docu...
/* * Copyright 2014, <NAME>, <EMAIL>. All rights reserved. * Distributed under the terms of the MIT License. */ #include <Alert.h> #include <Application.h> #include <Button.h> #include <LayoutBuilder.h> #include <MenuField.h> #include <Slider.h> #include <String.h> #include <StringView.h> #include <Window.h> #inc...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <stb_image.h> #include <iostream> #include <cstring> #include "shader.cpp" #include "glfw.cpp" #include "utils.cpp" #include "texture.cpp" // debug int success; ch...
/* UFPB - CENTRO DE INFORMATICA DISCIPLINA: ANÁLISE E PROJETO DE ALGORITMOS AUTOR: <NAME> DATA: 14/03/2018 VERSÃO: 0.001 */ #include <iostream> #include <string> #include <fstream> #include <cstdlib> using namespace std; // CLASSE MENSAGEM class mensagem{ public: void versao(){ cout<<"Versão 0.001"<<endl<<endl; ...
/* * Copyright (C) 2014-2015 DubinsPathPlanner. * Created by <NAME> <<EMAIL>> * Redistribution and use of this file is allowed according to the terms of the MIT license. * For details see the LICENSE file distributed with DubinsPathPlanner. */ #include <iostream> #include <vector> #include <math.h> #include <gtest...
/* * Copyright 2002-2019 Intel Corporation. * * This software is provided to you as Sample Source Code as defined in the accompanying * End User License Agreement for the Intel(R) Software Development Products ("Agreement") * section 1.L. * * This software and the related documents are provided as is, with no ...
/* * Copyright (c) 2013, <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: * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
/********************************************************************************* ** MIT License ** ** Copyright(c) 2018 duncanmk ** ** 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 ...
#include "system.h" /* request a dedicated GPU if avaliable https://stackoverflow.com/a/39047129 */ #ifdef _MSC_VER extern "C" __declspec(dllexport) unsigned long NvOptimusEnablement = 1; extern "C" __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; #endif GLFWwindow *window; int windowWidth...
/* * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist...
// ysoftman // Dijkstra (다익스트라) 알고리즘으로 최단경로 찾기 #include <stdio.h> #include <string.h> #include <stack> const int X = 99999; // 무한대 const int NUM_OF_NODES = 9; // 노드 수 int Dijkstra(int N, int Matrix[NUM_OF_NODES][NUM_OF_NODES], int nStartPos, int Distance[], int PreNode[]) { if (nStartPos < 0 || nStartPos >= N) { ...
#include "stdafx.h" #include <SetupAPI.h> #include <Devpkey.h> #include <unordered_map> #include <string> #include <winusb.h> #include "device.h" using namespace panda; //Returns the last Win32 error, in string format. Returns an empty string if there is no error. tstring GetLastErrorAsString(){ //Get the error ...
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id$ This program is free software; you can redistribute it and/or modify it und...
/************************************************************************* * File Name: bot.cpp * Description: * Author: zhaoqiaochu * Created_Time: 2018-11-28 10:43:37 AM * Last modified: 2019-01-12 08:16:49 AM ************************************************************************/ #include "all.h" #include <...
#include "flippie_handler.h" FlippieHandler::FlippieHandler(Flippie *f) { flippie = f; } bool FlippieHandler::handle(ESP8266WebServer &server, HTTPMethod method, String uri) { if (!canHandle(method, uri)) { return false; } debug_printf("Handle %s '%s?%s' in FlippieHandler...", ...
#include "GameAsset.h" #include "GameAssetManager.h" #include "BoundingBox.h" #include <memory> /** * @file GameAsset.cc * @version 1.1 * * @section Description * * GameAsset is a superclass which forms the base for all 3D assets used * in the game. It has methods which are common to all objects, including * ...
#define BOOST_TEST_MODULE #include <boost/test/included/unit_test.hpp> #include <assert_hash.hpp> namespace ah = assert_hash; BOOST_AUTO_TEST_CASE( file_base_0 ) { BOOST_CHECK_EQUAL( ah::file_base( "a" ), "a" ); BOOST_CHECK_EQUAL( ah::file_base( "a.txt" ), "a.txt" ); BOOST_CHECK_EQUAL( ah::file_base( ".a...
/** * @file main.cc * @author <NAME> (@purpl3F0x) * @date 16/12/2019 * @copyright 2019 <NAME> under Apache 2.0 License */ #ifdef __ANDROID__ #include <boost/filesystem.hpp> #else #include <filesystem> #endif #include <iomanip> #include <iostream> #include <sstream> #include <string> #inclu...
#include <algorithm> #include <fstream> #include <iostream> #include <opencv2/opencv.hpp> #include <set> #include <string> #include <unistd.h> #include "io.h" #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-result" std::string io::pwd() { char buff[FILENAME_MAX]; getcwd(buff, FILENAME_MA...
#include "mex.h" #include "math.h" #include "stdio.h" #ifndef M_PI #define M_PI 3.14159265358979323846 #endif // #define DEBUG //--------------------------------------------------------------------------- float am_fsqrt(float x) // 0,00079 on sqrt(220.54) , t = 220, tref = 580 //http...
#pragma GCC optimize("O3") #include<bits/stdc++.h> using namespace std; // By <NAME> https://github.com/miaortizma typedef long long ll; typedef vector<ll> vi; #define PB push_back #define F first #define S second __int128 gcd(__int128 a, __int128 b) { while (a && b) a > b ? a %= b : b %= a; return a + b; } __int...
#pragma once #include "common.hpp" #include "util.hpp" #include "gapi.hpp" #include <stdint.h> #include <vector> #include <array> #include <string> #include <variant> #define ASSERT_FMT(fmt) ASSERT(fmt == GL_RGBA || fmt == GL_RGB || fmt == GL_DEPTH_COMPONENT) using texparams_t = darray<GLenum>; struct module_textu...
// // File : syn++.cc // ------------------ // // ES: Elementary Supernova Spectrum Synthesis, Copyright (c) 2010, The // Regents of the University of California, through Lawrence Berkeley // National Laboratory (subject to receipt of any required approvals // from the U.S. Dept. of Energy). All rights reserved. //...
/* HMC5883L.cpp - Class file for the HMC5883L Triple Axis Magnetometer Arduino Library. Copyright (C) 2011 Love Electronics (love<EMAIL>) This program is free software: you can redistribute it and/or modify it under the terms of the version 3 GNU General Public License as published by the Free Software Foundation. Th...
// Copyright (c) OpenMMLab. All rights reserved. #include "pose_detector.h" #include <numeric> #include "codebase/mmpose/mmpose.h" #include "core/device.h" #include "core/graph.h" #include "core/mat.h" #include "core/tensor.h" #include "core/utils/formatter.h" #include "handle.h" using namespace std; using namespac...
/* Copyright 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, modify, merge, publish, distribute, sublicense,...
/* PtCut class Last Updated by Zaki on July 6, 2019 */ #include "../include/PtCut.h" //============================================================== //-------------------------------------------------------------- // Default Constructor PHENO::CUTS::PtCut::PtCut() { // logger.SetUnit("PtCut"); SetName("Pt...
// Copyright 2013 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 "goose.h" namespace { // The maximum speed of a goose. Measured in meters/second. const double kMaxSpeed = 2.0; // The maximum force that ca...
/** * * https://blog.csdn.net/a2392008643/article/details/81781766 * */ #include <iostream> #include <vector> #include <queue> #include <algorithm> using namespace std; #define INFINITE 0xFFFFFFFF #define UINT unsigned #define vexCounts 6 typedef unsigned VertexData; char vextex[] = {'A','B','...
/* Copyright 2016 <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 applicable law or agreed to in writi...
// Gmsh - Copyright (C) 1997-2019 <NAME>, <NAME> // // See the LICENSE.txt file for license information. Please report all // issues on https://gitlab.onelab.info/gmsh/gmsh/issues. #include "GModel.h" #include "OS.h" #include "MPoint.h" #include "MLine.h" #include "MTriangle.h" #include "MQuadrangle.h" #include "MTetr...
#include "recognition.hpp" std::array<Photo, 64> SegmentClassify::segment(Photo& photo) { cv::imshow("Original Photo", photo); cv::waitKey(0); cv::destroyWindow("Original Photo"); Photo gray; cv::cvtColor(photo, gray, cv::COLOR_BGR2GRAY); // color to gray spdlog::get("delta_logger")->info("Con...
/**********************************************************************/ /** Microsoft Windows/NT **/ /** Copyright(c) Microsoft Corp., 1991 **/ /**********************************************************************/ /* bltapp.cxx ...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
/** * Project: Interactive ARAP * File: GUI.cpp * Authors: <NAME>, <NAME>, <NAME>, <NAME> */ #include "../include/Mesh.h" Mesh::Mesh(const std::string& modelName) { // Load a mesh in OFF format igl::readOFF(modelName, m_vertices, m_faces); // Initialize white colors m_colors = Eigen::MatrixXd:...
/* $Id: DeskbarLocationTest.cpp 1236 2002-09-28 07:27:00Z shatty $ This file implements tests for the following use cases of BDeskbar: - Frame - Location - Is Expanded - Set Location - Expand */ #include "DeskbarLocationTest.h" #include <Deskbar.h> #include <InterfaceDefs.h> #include <assert.h>...
#include<bits/stdc++.h> using namespace std; const int N = 3e5 + 9; /** Chef has a rooted tree G, consisting of N vertices. Each edge of the tree has a color black or white. Once Chef's friend Ksen offered Chef to play a game on the tree G. The game has very simple rule: The players make moves in the game alternate...
/*************************************************************************\ * Module Name: dda.cxx * * DDA calculations for clipping. * * Created: 20-Mar-1991 * Author: <NAME> * * Copyright (c) 1991-1999 Microsoft Corporation * \**************************************************************************/ #i...
// // DownloadSession.cpp // httpclient // // Created by <NAME> on 11.10.2018. // #include "DownloadSession.hpp" #include <iostream> #include <boost/beast/version.hpp> #include "NetworkingEventLoop.hpp" #include <filesystem> namespace fs = std::filesystem; #define MAX_ACTIVE_DOWNLOAD_CHUNKS 4 using namespace net...
#include <stdint.h> #include <string> #include <H5Cpp.h> using namespace std; // Constants to be used for the creation of the HDF5 file const int RANK_2D = 2; const int RANK_1D = 1; const hsize_t chunk_dims_2D[RANK_2D] = { 1024, 633 }; // chunk dimensions using golden ratio for fun const hsize_t chu...
#pragma once #include "../Interface/LowLevelRenderer.hpp" #include <vulkan/vulkan.h> #include <map> #include <vector> #include "../Interface/ShaderProgram.hpp" #include "VulkanCommandBuffer.hpp" struct GLFWwindow; namespace Video { class VulkanBuffer; class VulkanBufferAllocator; class VulkanRenderPassAllocator; c...
#include <cassert> #include <chrono> #include <cublas_v2.h> #include <cudnn.h> #include <iostream> #include <sstream> #include <string.h> #include <time.h> #include <unordered_map> #include <memory> #include "tensorrt_engine.h" //#include "entroy_calibrator.h" using namespace nvinfer1; using namespace nvonnxparser; u...
#include <windows.h> #include <string> #include <iostream> const int BMP_SIZE = 612; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); DeleteDC( hdc ); DeleteObject( bmp ); } bool create( in...
#define _CRT_SECURE_NO_DEPRECATE #include "MTLFileReader.h" #include "Helper.h" #include <vector> #include <cassert> #include <string> #include "../Graphics/ColorRGBA.h" #include "../Graphics/Material.h" using namespace Crystal::Graphics; using namespace Crystal::IO; OBJMaterial::OBJMaterial()...
/* * TwoWheelsRobot.cpp - A library for controling Two Wheels Robot with Arduino and motor shield * Copyright (c) 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 Sof...
#include "CookieboySound.h" #include <SDL.h> #include <algorithm> Cookieboy::Sound::Sound(const bool &_CGB, int sampleRate, int sampleBufferLength): Sound1GlobalToggle(1), Sound2GlobalToggle(1), Sound3GlobalToggle(1), Sound4GlobalToggle(1), CGB(_CGB), SampleRate(sampleRate), SampleBufferLength(sampleBufferLength) { S...
#include "ResponseHeader.hpp" /////////////////////////////////// /// Constructor and Destructors /// /////////////////////////////////// ResponseHeader::ResponseHeader(){} ResponseHeader::ResponseHeader(Request &request) { initErrorMap(); setVersion(request.getVersion()); setErrorCode(request.getCode()); _serv...
/* * Copyright (C) 2012 University of Washington * * 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 ...
#include <string> using std::string; #include <exception> using std::exception; #include <iostream> using std::cout; using std::cerr; using std::cin; using std::endl; #include <fstream> using std::ifstream; #include <cstdlib> using std::exit; #include <cryptopp/cryptlib.h> using CryptoPP::Exception; using CryptoPP...
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "AlarmEventsTable.hpp" #include <Interface/AlarmEventRecord.hpp> AlarmEventsTableRow::AlarmEventsTableRow(uint32_t id, uint32_t hour...
#include "cl_dll/hud.h" #include "cl_dll/cl_util.h" #include "../common/const.h" #include "../common/entity_state.h" #include "../common/cl_entity.h" #include "ui/UITags.h" #include "AvHTeamHierarchy.h" #include "AvHSharedUtil.h" #include "AvHSpecials.h" #include "AvHMiniMap.h" #include "ui/UIUtil.h" #includ...
/* * Copyright (c) 2015 - 2016 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, modify, merge,...
//Language: GNU C++ #include<cstdio> #include<cstring> #include<cmath> #include<algorithm> #include<vector> using namespace std ; const int MOD = 1000000007; const int MAXN = 100000; const int MAXE = 100000; const int MAXC = MAXN; const int MAXLOG = 17; typedef int* IntPointer; class Edge { pu...
/** * @author <NAME> * @file bin_class_stats.cc * @brief Generate statistics for binary classification results. * * * COMMENTS: * * Technologies langagieres interactives / Interactive Language Technologies * Inst. de technologie de l'information / Institute for Information Technology * Conseil national de...
/** * @file TerrainMesh.cpp * @date 2. nov. 2012 * @author <NAME> Helsing */ #include "TerrainMesh.hpp" #include <GL/glew.h> #include <GL/gl.h> #include <iostream> #include <vector> #include <helsing/TextFile.hpp> namespace { inline unsigned int getIndex(unsigned int i, unsigned int j, unsigned int width){ ret...
/* Copyright 2021 <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 http://www.apache.org/licenses/LICENSE-2.0 Unless requir...
#include "alfe/main.h" #include "alfe/config_file.h" #include "alfe/windows_handle.h" #include "alfe/named_pipe.h" #include "alfe/thread.h" #include "alfe/io_dispatch.h" class Execute { public: Execute(File program, File argument, int timeout) { IODispatch dispatch; class PipeTask : public IODi...
#include "tnt.h" #include "item.h" #include "db.h" /// The constructor to create an explosive. /// \ref US_5_1 /// @param xyz the x, y, and z coordinates on the map. Explosive::Explosive(int x_coord, int y_coord, int z_coord){ x = x_coord; y = y_coord; z = z_coord; } /// Creates an explosive at x, y, and ...
#include <QtCore/QMap> #include <QtCore/QUrl> #include <QtCore/QDir> #include <QtCore/QDebug> #include <QtCore/QUrlQuery> #include <QtCore/QDateTime> #include <QtCore/QEventLoop> #include <QtCore/QTextStream> #include <QtCore/QFutureWatcher> #include <QtCore/QMessageAuthenticationCode> #include <QtConcurrent/QtConcur...
#include "PublicHead.h" #include <sys/sysinfo.h> #include <sys/utsname.h> #define MBPath "/sys/class/dmi/id/board_name" #define CPUPath "/proc/cpuinfo" char * ReadLine(FILE * fp,char *Success){//此函数自动移动指针 int Pos = 0, MaxLen = 128; char size; char * Line; Line = (char *)malloc(MaxLen); while(true){...
#include <RcppArmadillo.h> #include <RcppParallel.h> using namespace Rcpp; struct Rec { int item; // recommended item: use item index no. rather than text label, to avoid copying chars around double score; // recommended score Rec(int item, double score) : item(item), score(score) {} static b...
#include "ofApp.h" #include "ofxGui.h" #include "ofxDynamixelGuiGroups.h" using namespace ofxDynamixel; //-------------------------------------------------------------- void ofApp::setup() { ofSetLogLevel(OF_LOG_VERBOSE); //-------------- Connection setup start ------------------------- // you only need to creat...