text
stringlengths
3.08k
12.5k
/* ------------------------------------------------------------------------- This is the function file for the class scaled conjugate gradient descent. ------------------------------------------------------------------------- */ #include <iostream> #include <string> #include <vector> #include <cmath> #include <algorith...
/* * Initialisor.cpp * * Created on: 18 Aug 2011 * Author: Dr <NAME> <<EMAIL>> */ #include <fstream> #include <stdlib.h> #include <string.h> #include "SingleReadMessage.h" #include "SingleReadResponseMessage.h" #include "SingleReadAntiMessage.h" #include "RangeQueryMessage.h" #include "RangeQueryAntiMessage...
#include <Arduino.h> #include <MyServos.h> #include <MyControls.h> MyControls* joystick1; MyControls* joystick2; MyServos* morServo; MyServos* siyahServo1; MyServos* siyahServo2; MyServos* yesilServo; MyServos* kirServo; //MyServos* maviServo; void setup() { /*Joystick oluşturmak için MyControls sın...
#include "Postgre.h" /* Library POSTGRE - Use POSTGRE in EDK Game Engine. Copyright 2013 <NAME> (<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 li...
#include <bits/stdc++.h> using namespace std; const int MAXN = 524288; int32_t stMin(int32_t x, int32_t y) {return min(x, y);} int64_t stSum(int64_t x, int64_t y) {return x + y;} template <class ETYPE> class zkwST { public: ETYPE tree[(MAXN<<1) + 10]; ETYPE fi; ETYPE (*fm) (ETYPE, ETYPE); int M; void init(ETYPE...
#include <iostream> #include <iomanip> #include <cmath> #include <vector> #include <map> #include <exrandom/unit_normal_distribution.hpp> #include <exrandom/unit_exponential_distribution.hpp> #include <exrandom/unit_uniform_distribution.hpp> #include <exrandom/discrete_normal_distribution.hpp> #include <exrandom/aux_in...
// // Copyright 2017 <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 wr...
// // Created by <NAME> on 5/8/20. // #include "Application.h" Application::Application() {} Application::~Application() {} void Application::initializeCells() { dream::log("Initializing cells..."); std::mt19937 mt(_seed); std::uniform_int_distribution<unsigned int> dist(1, 100); for (int y = 0; y...
#include <bits/stdc++.h> typedef long long ll; const int mod = 1e9 + 7; const int MAX = 1e5 + 7; using namespace std; typedef vector<int> vi; int dp[21 * MAX]; class NumbersChallenge { vector<int> arr; public: // int MinNumber(vector<int> S) { // int len = S.size(); // set<ll> st; // // cout << len << '\n'; //...
#include <iostream> #include "../../resource/includer.h" #include "../../resource/tool.h" decltype(GetLastError()) FillProcessMemoryById(DWORD pid, BYTE hex/*, bool = false*/); void SigHandler_SIGINT(int); int main(int argc, const char** argv); int main(int argc, const char** argv) { if (argc >= 2 && (0 == _stric...
#include <iostream> #include <opencv2/core.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> #include <solid_trans/Transformations.h> #include <solid_trans/ObjectUtil.cpp> double radians(double degrees) { return degrees / 180.0 * M_PI; } void setup_window(cv::M...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2016 ArangoDB GmbH, Cologne, Germany /// /// 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...
#include "stdafx.h" #include <gdiplus.h> using namespace Gdiplus; #include "NotificationWindow.h" /** * Static initialization */ NotificationWindow* NotificationWindow::theNotification; /** * Lifecycle: Create */ NotificationWindow::NotificationWindow() : m_isInitialized(false) { } ...
#include "DeviceManager.h" #include "Utils.h" #include "StringUtils.h" #include <glog/logging.h> DeviceManager::DeviceManager() { m_pHub = &MessageHub::getInstance(); // string SERVICE_NAME = "HOST"; // SERVICE_NAME += Utils::getUuid(); // m_spService = m_pHub->createLocalService(SERVICE_NAME....
/********************************************************************** Copyright (c) 2020 MIPT Module Name: AstDump.h Abstract: Модуль, генерирующий изображение AST дерева Author: JulesIMF Last Edit: 20.12.2020 2:27 Edit Notes: *****************************************...
#include "MoveToEngage.h" #include "../../DecisionTree.h" #include "../../AICharacter.h" #include "../../Team.h" #include "../../../Level/Tile.h" #include "../../../Characters and Weapons/BaseWeapon.h" #include "../../../Containers/DataContainers.h" #include "../../Actions/TacticalMove.h" #include "../../PathFinding.h"...
#include <boost/filesystem.hpp> #include <iostream> #include <fstream> #include "options/OptionPrinter.hpp" #include "machine.h" #include "parsetable.h" #include "leftmost_derivation.h" #include "ll1_parser.h" namespace { const size_t ERROR_IN_COMMAND_LINE = 1; const size_t SUCCESS = 0; const size_t ERROR...
/* * Copyright (c) 2019,2020 Panasonic 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,...
/* This is a simple MJPEG streaming webserver implemented for AI-Thinker ESP32-CAM and ESP32-EYE modules. This is tested to work with VLC and Blynk video widget. Inspired by and based on this Instructable: $9 RTSP Video Streamer Using the ESP32-CAM Board (https://www.instructables.com/id/9-RTSP-Video-Stream...
// Copyright (c) 2019 London Trust Media Incorporated // // This file is part of the Private Internet Access Desktop Client. // // The Private Internet Access Desktop Client 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 Softwa...
#include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <set> #include <string> #include <unordered_map> constexpr int N_VALUE = 4; constexpr bool IS_PRINT_DITRIGRAMS = false; constexpr bool IS_PRINT_WORDS = true; bool get_user_variant(bool); using ditrimap = std::unordered_map<std::str...
#include <bits/stdc++.h> #define int long long int #define len length #define pb push_back #define all(a) a.begin(), a.end() #define scnarr(a, n) for (int i = 0; i < n; ++i) cin >> a[i] #define vi vector<int> #define pii pair <int, int> #define mii map <int, int> #define faster ios_base::sync_with_stdio(false); cin.tie...
#include <bits/stdc++.h> #define lli long long int using namespace std; /* Autor: <NAME>, <NAME> Descripcion del Problema: Se nos hace entrega de una cantidad 'n' de ciudades y las 'm' carreteras o rutas que unen estas ciudades. Se nos pide entregrar el peso o coste minimo para poder recorrer to...
#include "Measurer.h" #include "Generator.h" #include "fft.h" #include <QAudioInput> #include <QAudioOutput> #include <QDateTime> #include <QCoreApplication> #include <qendian.h> #include <vector> #include <iostream> #include <sstream> #include <unistd.h> using namespace std; Measurer::Measurer(QAudioDeviceInfo inp...
// ============================================================================================== // This file is part of the VRmagic VRmUsbCam C API v2 Demo Application // ============================================================================================== // Main Function // --------------------------------...
#include <time.h> #include "Feat_comm.h" #include "comm_srlr.h" #include "GMMTrain.h" #include "GMMMixup.h" #include "config.h" #include "kmean.h" #include "wtime.h" GMMTrain * pGMMTrain; GMMMixup * pGMMMixUp; KMean * pKMeanGMM; void IniGMM(struct Features &features,int VecSize, int MaxMixNum, GMMP...
#include <mpi.h> #include <sstream> #include "ECRunStats.hpp" #include "ECData.hpp" extern "C" void hist_reduce(void* in, void* inout, int* len, MPI_Datatype*) { int n = *len; long* srcHist = static_cast<long*>(in); long* destHist = static_cast<long*>(inout); for(int i = 0; i < n; i++){ destHis...
// Mstring.c // testing string class /* Yes, I know it's bad to reinvent this particular wheel but I don't like the templatized standard string. An extra 30% (at least) size penalty for using the char traits templatized iostreams and strings, hassle debugging those long names, plus longer compile times...
#include <algorithm> #include <fstream> #include <stdio.h> #include <stdlib.h> #include <mpi.h> #include <assert.h> #include <sys/time.h> #include <cmath> #include <fstream> #include <iostream> #include <string> #include <vector> #include <unordered_map> #include "../../experiments/cpp/tpch_util/s3utils.h" #include "...
// // Created by <NAME> on 2019-07-10. // #include "screen.h" static const char* TAG = TAG_SCREEN; static void glue_task(void *pArg) { ((Screen*)pArg)->_task(); } Screen::Screen(ScreenDriver& driver) : m_driver(driver) { m_queue = xQueueCreate(100, sizeof(ScreenDriverCommand)); if (!m_queue) { ...
#include <cmath> #include <cstdio> #include <cstring> #include <vector> #include <algorithm> using namespace std; using d64 = double; constexpr d64 EPS = 1e-8; constexpr int NMAX = 100000; bool eq(d64 x, d64 y) { return fabs(x - y) < EPS; } struct vec2 { d64 x, y; int idx() const { if (x >= 0...
/* Copyright (c) 2014 Aerys 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, sublicens...
/* ------------------------------------------------------------------------- * * spccache.c * Tablespace cache management. * * We cache the parsed version of spcoptions for each tablespace to avoid * needing to reparse on every lookup. Right now, there doesn't appear to * be a measurable performance gain from ...
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2013 Pelican Mapping * http://osgearth.org * * osgEarth is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; e...
/* * $Id$ * * Author: <NAME> * Copyright (c) 2008-2012 Regents of the University of California */ /** \file xfnntr1.cpp Minimize artibrary user-supplied function. */ #ifdef __ZTC__ #include <conio.h> #endif #include <admodel.h> extern int ctlc_flag; #if defined(__TURBOC__) #pragma hdrstop #include <i...
/* ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
/**************************************************************************** * * Copyright (C) 2003, University of New South Wales * * File path: piggybacker/ofppc64/donote.cc * Description: Add a note program header to the loader image * * Redistribution and use in source and binary forms, with or without * m...
#include "playgrounds/LineFollowerPath.h" #include "shapes/QuadObject.h" #include "SceneObject.h" #include "Renderer.h" #include <unordered_map> #include <vector> #include <iostream> #include <cmath> namespace { const std::unordered_map<LineFollowerPath::Blueprint, LineFollowerPath::PathPoints> pathBlueprints ({ ...
#include "include/data/matrix.h" #include "memory.h" #include "assert.h" /* @brief the method under MatrixFunc namespace provide the general operation, to process matrix data. */ namespace MatrixFunc{ float** make2DArray(size_t rows, size_t cols){ if(rows == 0 || cols == 0) return nullptr...
#include "Errors.h" #include "stream_proto_utils.h" #include "string_utils.h" #include <iomanip> #include <iostream> #include <sstream> using namespace android::stream_proto; using namespace google::protobuf::io; using namespace std; const bool GENERATE_MAPPING = true; static string make_filename(const FileDescript...
/* * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must * be be distributed together with this source. All other rights reserved. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY ...
#include<iostream> using namespace std; class Node{ public: int data; Node* next; Node(int data){ this->data=data; next=nullptr; } }; class SLL{ public: Node* head; SLL(){ head=nullptr; } int midelement(); void createloop(int); int detectcycle(); void sort(); void insert(int); void deletionatNode(i...
#include "TreeNode.h" #include "MpapTime.h" #include "Functions.h" #include "TimeFunction.h" #include "SolutionData.h" #include "BasisFunctionsBSpline.h" extern MpapTime mpapTime; extern List<TimeFunction> timeFunction; template<> int TreeNode<2>::calcLoadVector(int ind1, int ind2, double inp1, double inp2) { c...
static char help[] = "Test Code for DMRG\n"; #include <iostream> #include "idmrg_1d_heisenberg.hpp" #undef __FUNCT__ #define __FUNCT__ "main" int main(int argc, char **argv) { PetscErrorCode ierr = 0; SlepcInitialize(&argc, &argv, (char*)0, help); MPI_Comm comm = PETSC_COMM_WORLD; PetscM...
/** Copyright 2020 Red Anchor Trading Co. Ltd. Distributed under the Boost Software License, Version 1.0. See <http://www.boost.org/LICENSE_1_0.txt> */ #include <odin/apple.hpp> #include <odin/fg/native.hpp> #include <odin/odin.hpp> #include <fostgres/sql.hpp> #include <fost/crypto> #include <fost/http...
#include "OpenGLWidget.h" #include <QMouseEvent> using namespace PolyVox; using namespace std; OpenGLWidget::OpenGLWidget(QWidget *parent) :QGLWidget(parent) ,m_xRotation(0) ,m_yRotation(0) { } void OpenGLWidget::setSurfaceMeshToRender(const PolyVox::SurfaceMesh<PositionMaterialNormal>& surfaceMesh) { //Convien...
#include <iostream> #include <vector> #include <algorithm> #include <string> #include <chrono> #include "imgui.h" #include "imgui-SFML.h" #include <SFML/Graphics.hpp> #include "utils/time.h" #include "utils/Math.h" #include "utils/RandomGenerator.h" #include "BaseScene.h" #include "TestScene.h" void showInfoOverla...
/******************************************************************************\ * This example program showcases how to manually manage socket IO using * * a broker. Server and client exchange integers in a 'ping-pong protocol'. * * *...
#include <string.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> static inline int rstreq(const char *s1, const char *s2) { return (strcmp(s1, s2) == 0); } static inline int rislower(int c) { return (c >= 'a' && c <= 'z'); } static inline int risupper(int c) { retur...
#include <iostream> #include <memory> #include "Message.h" #include "Ladder.h" #include "SearchBoard.h" #include "Point.h" using namespace std; #define ALIVE true #define DEAD false // シチョウ探索 static bool IsLadderCaptured( const int depth, search_game_info_t *game, const int ren_xy, const int turn_color ); ///////...
// Copyright (c) 2018 LG Electronics, 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 agre...
#pragma once #include <array> #include <vector> #include "fitness.hpp" #include "random.hpp" #include "tclap/CmdLine.h" class DfeParameters final : public FitnessLandscape { public: u_long exon_size; bool reflected; double mean; double shape; double scale; explicit DfeParameters(u_long exon...
#include <message_filters/subscriber.h> #include <message_filters/sync_policies/approximate_time.h> #include <message_filters/sync_policies/exact_time.h> #include <message_filters/synchronizer.h> #include <message_filters/time_synchronizer.h> #include "stereo_visual_odom/input.h" #include "g3_to_ros_logger/ROSLogSink...
#include <stdio.h> #include <iostream> #include <string> struct Pixel { unsigned char B; unsigned char G; unsigned char R; unsigned char A; }; void resizeHide(std::string input, std::string output) { FILE* inFile = fopen(input.data(), "rb"); if (inFile) { std::string message; unsigned cha...
#include <gtest/gtest.h> #include <ltStar_temp.h> namespace LazyThetaStarOctree { timespec diff(timespec start, timespec end) { timespec temp; if ((end.tv_nsec-start.tv_nsec)<0) { temp.tv_sec = end.tv_sec-start.tv_sec-1; // temp.tv_nsec = 1000000000+end.tv_nsec-start.tv_nse...
#include "theoria/config/Config.h" #include "theoria/config/TOMLConfigBuilder.h" #include <gtest/gtest.h> using namespace theoria ; using namespace theoria::config ; const std::string TEST1 = " \n\ application=\"Test1App\" \n\ desc=\"A Test of TOML\" \n\ ...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
#include <daemon_utils/daemon_launcher.h> #include <cstdio> #include <unistd.h> #include <sys/stat.h> #include <FileUtil.h> #include <log.h> #ifdef __APPLE__ #include <chrono> #include <sys/types.h> #include <sys/event.h> #include <sys/time.h> #include <time.h> #include <fcntl.h> #else #include <sys/inotify.h> #inclu...
#include <iostream> #include <unistd.h> #include <cmath> #include "environment.h" #include "rocket.h" void launch(Rocket rocket, Environment env, double D, float fuel, float TMass, double RMFR, double EV); //void display(Environment env, double D, float fuel, double V, int T); void display(Rocket rocket, Environment ...
//-----------------------------------------------------------------------------| // Authorship //-----------------------------------------------------------------------------| // // <NAME> // <EMAIL> // Created: 2018.07.15 // Modified: 2018.07.15 // /* 1.1 - isUnique() - P.90 Implement an algorithm to determine if a ...
/* * Copyright 2020 <NAME> * * Released under the MIT license. See the accompanying LICENSE file * or visit <https://opensource.org/licenses/MIT> */ /* * \file obj2c.cpp * \author <NAME> * * Version 0.1 * * Convert OBJ data to C array for Playstation 2 * Mengkonversi data OBJ ke Array C dalam bentuk heade...
#include <unistd.h> #include <stdlib.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <linux/kd.h> #include <fcntl.h> #include <errno.h> #include <stdio.h> #include <limits.h> #include <signal.h> #include <string.h> #include <linux/fb.h> static st...
/* Copyright 2017 The TensorFlow Authors All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
/** * Copyright (c) 2016-2017 Los Alamos National Security, LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the...
/* * Copyright (c) 2017, 2018, 2019 TOYOTA MOTOR 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 b...
/* * ::718604! * * Copyright(C) November 20, 2014 U.S. Food and Drug Administration * Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al * Affiliation: Food and Drug Administration (1), George Washington University (2) * * All rights Reserved. * * The MIT License (MIT) * * Permission is hereby granted, free...
// Copyright (c) 2020 EPI-ONE Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "mnemonics.h" #include "big_uint.h" #include "file_utils.h" #include "hash.h" #include "key.h" #include "random.h" #include ...
/* ---------------------------------------------------------------------------- * Copyright 2018, <NAME> <<EMAIL>> * All Rights Reserved * See LICENSE for the license information * -------------------------------------------------------------------------- */ /** * @file kinematics.cpp * @author <NAME...
#include "../include/ansi_wrapper.hpp" #include "../include/util.hpp" #include "../include/data.hpp" #include "../include/options.hpp" #include <unistd.h> #include <stdio.h> #include <chrono> #include <vector> using std::vector; using std::chrono::duration_cast; using std::chrono::milliseconds; using std::chrono::ste...
#include "jnpch.h" #include "EditorCamera.h" #include "Core/Input.h" #include "Core/KeyCodes.h" #include "Core/MouseButtonCodes.h" #include <glfw/glfw3.h> #include <glm/gtc/quaternion.hpp> #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtx/quaternion.hpp> #define M_PI 3.14159f #define BIND_EVENT_FN(fn) std::bind(&E...
/* * Copyright (c) 2015-2016 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 * */ /** * @file * Wind River CGCS Platform Resource Monitor Fault Management * retry mechanism for fault set/clear failures due to communication * error. */ #include <pthread.h> #include "rmon.h" typedef enum...
#include "ode45.hpp" #include <iostream> #include <Eigen/Dense> #include <Eigen/Sparse> // Comment to disable test #define MAKE_TEST1 #define MAKE_TEST2 #define MAKE_TEST3 #define MAKE_TEST4 #define EIGEN_DONT_VECTORIZE #define EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT // I just added that to fix an error void test1() {...
// Copyright 2017 The Fuchsia 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 <digest/digest.h> #include <ctype.h> #include <limits.h> #include <stdio.h> #include <string.h> #include <fbl/alloc_checker.h> #include <fbl/uni...
#include <SFML/Graphics.hpp> #include <vector> #define _USE_MATH_DEFINES #include <math.h> #include "imgui.h" #include "imgui_stdlib.h" #include "imgui-SFML/imgui-SFML.h" const float PI = static_cast<float>(M_PI); const float PI_2 = static_cast<float>(M_PI * 2); const float PI_3 = static_cast<float>(M_PI * 3); void...
// Copyright 2021 <NAME> #include "MainCharacterMovementComponent.h" #include "Components/CapsuleComponent.h" #include "DrawDebugHelpers.h" #include "GameFramework/PhysicsVolume.h" UMainCharacterMovementComponent::UMainCharacterMovementComponent() : MaxSpeed(1200.0f), UpdatedCollider(nullptr), MaxStepHeight(20.0f),...
#include <cassert> #include <cstring> #include <iostream> #include <optix.h> #include <optix_stubs.h> #include <cuda_runtime.h> #include "sutil_vec_math.h" // roundUp #include "sutil_Exception.h" // CUDA_CHECK OPTIX_CHECK #include "Ctx.h" #include "Shape.h" #include "GAS.h" #include "GAS_Builder.h" void GAS...
// -*- mode:C++; tab-width:8; indent-tabs-mode:nil -*- /*! * \file src/sage/propagate.cc * \brief Implements metric propagation support for Sage III trees. * \ingroup ROSEHPCT_SAGE * * This propagator pushes metric attributes upward in the tree, so * that all scopes have a metric attribute. The propagation p...
#define STB_IMAGE_IMPLEMENTATION #include "gui.h" #include "draw2d.h" #include "sampledraw2d.h" #include "checkerboard.h" #include "recorder.h" #include "raytracer.h" //#include "rtweekend.h" //#include "camera.h" //#include "color.h" //#include "constant_medium.h" //#include "hittable_list.h" //#include "material...
/* ** Copyright (C) 1998-2006 <NAME> <<EMAIL>> ** ** 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 2 of the License, or ** (at your option) any later version. ** ** This program...
#include <QDebug> #include <QMessageBox> #include <QFileDialog> #include <QFile> #include <iostream> #include <QTextStream> #include <QInputDialog> #include <QTextBlock> #include <QThread> #include <QTimer> #include "ide.h" #include "ui_ide.h" IDE::IDE(QWidget *parent) : QMainWindow(parent), ui(new Ui::IDE), ...
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -Wno-unused-value -Wcast-align -verify %s // Simple casts. void test0(char *P) { char *a; short *b; int *c; a = (char*) P; a = static_cast<char*>(P); a = reinterpret_cast<char*>(P); typedef char *CharPtr; a = CharPtr(P); b = (short*) P; // ...
#include <cstring> #include <functional> #include "network.hpp" #include <statemachine.hpp> #include <propertyutils.hpp> #include <PubSubClient.h> #if defined(ESP32) #include <WiFi.h> #include <esp_wifi.h> #include <ESPmDNS.h> #elif defined(ESP8266) #include <ESP8266WiFi.h> // https://github.com/esp8266/Arduino #in...
#include "Shot.hpp" #include "WaterControl.hpp" #include "SSR.hpp" #include "SSRPump.hpp" #include "PIDHeater.hpp" #include "helpers.hpp" #include "TaskConfig.hpp" Shot::Shot(WaterControl *water_control) : water_control_(water_control), time_init_fill_ms_(0), time_ramp_ms_(0), time_pause_ms_(0), pump_start_p...
/* * ===================================================================================== * * Filename: daemon.cc * * Description: * * Version: 1.0 * Created: 09/08/2020 10:02:05 PM * Revision: none * Compiler: gcc * * Author: qiulu, <EMAIL> * Comp...
#include <cache.hh> #include <unordered_map> #include <cstring> //for "std::memcpy" in set #include <iostream> //for queue.display struct node //node for Queue { std::string* value; uint32_t size; node *next; }; class Queue //Queue for evictor { public: node *head; Queue() {head = NULL;} void enqueue(std::s...
#include "MemoryDebugger.h" #include "Debugger.h" MemoryDebugger::MemoryDebugger() : watcherAsBreakpoint(false) {} void MemoryDebugger::startView(const Memory *memory, DebuggerMode& mode) { ImGui::SetNextWindowPos(ImVec2(650, 150), ImGuiSetCond_FirstUseEver); ImGui::Begin("Memory"); ImGui::BeginChild("##scrollin...
#include <omp.h> #include <fmt/core.h> #include <tsl/robin_set.h> #include <algorithm> #include "hnswlib.h" #include "hnsw/utils.h" #include "stopwatch.h" static std::vector<tsl::robin_set<size_t>> get_ground_truth(const uint32_t* ground_truth, const size_t ground_truth_size, const size_t ground_truth_dims, const si...
// license:BSD-3-Clause // copyright-holders:<NAME> /* video/mugsmash.c - see drivers/mugsmash.c for more info */ #include "emu.h" #include "includes/mugsmash.h" void mugsmash_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect ) { /* Each Sprite takes 16 bytes, 5 used? */ /* ---- ---- xxxx xxxx ...
/* * Copyright (c) 2011 Research In Motion Limited. * * 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) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the file license.txt. */ #inc...
#include <gtest/gtest.h> #include <glisseo/utils/Conversion.h> TEST(Conversion, BinToHex) { std::string bin { "\x01\x23\x45\x67\x89\xab\xcd\xef" }; std::string expectedLower { "0123456789abcdef" }; std::string expectedUpper { "0123456789ABCDEF" }; EXPECT_EQ(Glisseo::binToHex(bin), expectedLowe...
/* Copyright (c) 2022 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 by applicable law or agr...
/*************************************************************************** Colony.cpp - description ------------------- begin : Sat Sep 27 2008 copyright : (C) 2008 by <NAME> email : <EMAIL> ***************...
/* Copyright (c) 2019 Akamai Technologies, Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
/* * CometOS --- a component-based, extensible, tiny operating system * for wireless networks * * Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted pr...
/* * Copyright 2008 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can * be found in the LICENSE file. */ // NaCl inter-module communication primitives. // TODO(shiki): Make this program a unit test. #include <assert.h> #include <stdio.h> #inclu...
/** * Created by sixdi on 1/22/2022. */ #include <gtest/gtest.h> #include <thread> #include <chrono> #include <boost/log/trivial.hpp> #include <boost/log/core.hpp> #include <boost/log/expressions.hpp> #include <boost/log/utility/setup/file.hpp> // add_file_log #include <boost/log/sinks.hpp> #include <boost/log/sinks/...
// Filename: LMarkerRefine.cpp // Created on 04 Oct 2007 by <NAME> // // Copyright (c) 2002-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 co...
/* * pgp-pubdec.c * Decrypt public-key encrypted session key. * * Copyright (c) 2005 <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 source code must r...
#include <iostream> #include <vector> #include <string> #include <Windows.h> #include <iomanip> #define BOLD (string)"&l" #define ITALIC (string)"&o" #define UNDERLINE (string)"&n" #define STRIKETHROUGH (string)"&m" using namespace std; float setGradientResolution(int nameSize, int gradientSize) { if (nameSize > ...