text
stringlengths
3.08k
12.5k
#include <stdio.h> #include <string.h> #include <unordered_map> #include "trs-io.h" #include "tcpip.h" #ifdef ESP_PLATFORM #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_wifi.h" #include "esp_event_loop.h" #include "freertos/event_groups.h" #include "esp_system.h" #include "esp_log.h" #incl...
// https://open.kattis.com/problems/queryonarray #include <bits/stdc++.h> using namespace std; using ll = long long; const ll M = 1e9+7; struct node { ll z0; ll z1; ll z2; ll z3; ll sum; }; vector<node> t; ll k = 1; ll div2, div4, div6; void push(ll x, ll y, ll k) { ll d = (x+y)/2; ll n = d-x, n2 = n...
/** \file * Implementation of class RPCRecordFormatter * * * \author <NAME> */ #include "EventFilter/RPCRawToDigi/interface/RPCRecordFormatter.h" #include "DataFormats/MuonDetId/interface/RPCDetId.h" #include "DataFormats/RPCDigi/interface/RPCDigi.h" #include "CondFormats/RPCObjects/interface/RPCReadOutMapping....
// // Notice Regarding Standards. AMD does not provide a license or sublicense to // any Intellectual Property Rights relating to any standards, including but not // limited to any audio and/or video codec technologies such as MPEG-2, MPEG-4; // AVC/H.264; HEVC/H.265; AAC decode/FFMPEG; AAC encode/FFMPEG; VC-1; a...
#include "tensorflow/c/kernels.h" #include "tensorflow/c/ops.h" #include "tensorflow/c/tf_tensor.h" #include "tensorflow/c/tf_datatype.h" #include "tensorflow/c/tf_status.h" #include "absl/container/inlined_vector.h" #include "electron/electron.hh" #include "electron/op-add.hh" #include <sstream> #include <iostream> #...
// This file implements the IExtractIconW Interface and Gateway for Python. // Generated by makegw.py #include "shell_pch.h" #include "PyIExtractIconW.h" // This is a clone of PyIExtractIcon, with simple replacements of // 'TCHAR' with 'WCHAR' - that is easier than trying to force distutils to // compile the same .cpp ...
/* ** Copyright 2014 Centreon ** ** 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 ...
// Copyright 2018 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2019-2020, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/JsonArray.h> #include <AK/JsonObject.h> #include <AK/JsonValue.h> #include <LibCore/ArgsParser.h> #include <LibCore/File.h> #include <LibCore/System.h> #include <LibMain/Main.h> #include <fcntl.h> #include <std...
// // Core.cpp // tasarch // // Created by <NAME> on 22.12.19. // #include "Core.hpp" #include <glib.h> #include <dlfcn.h> #include <fstream> #include "Signals.h" Core::Core(void* core_handle) : core_handle(core_handle) { g_message("Loading symbols for core"); // Init LoadSymbol("retro_init", (void**)&...
#include <iostream> #include <fstream> #include "math.h" #include "Efektor.hpp" using namespace std; Efektor::Efektor(double ulazna_tezina, double izlaz, double izlazna_greska,double prag_aktivacije,double pobuda,int broj_efektora,int broj_sloja){ this->ulazna_tezina = ulazna_tezina; this->izlaz = iz...
/* * Copyright 2022 <NAME>, Algorithms Department, TU Braunschweig * * 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, ...
#include "sort.h" #include <assert.h> namespace { /** * 折半查找,返回应插入的位置 * 2 3 5 7 1 * begin = 0 * end = 4 * ele = 1 **/ int half_locate(const std::vector<int> &ref, int begin, int end, int ele) { if (begin >= end) { return -1; } int ret = -1; while (true) { if (begin == end) {...
#include <iostream> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <ctime> #include <vector> #include <queue> #include <map> using namespace std; map <string, int> o, c; string inso[1010], insc[1010]; int ins[1010], tp[1010]; const int oo = 1e5; int n, m, k; int...
#include "niklasMorisawa.h" void niklasMorisawa::setup(){ parameters.add(pattern.set("Mod", 2, 1, 10)); remainder.set("Remainder", 1, 0, 1); // parameters.add(remainder); myRect.set(0, 0, 300, 100); myText.setup(); myText.update(); setAuthor("<NAME>"); setOriginal...
/** * @file solveFromFiles.cpp * @brief An example and benchmark of AmgX and PETSc * @author <NAME> (<EMAIL>) * @version beta * @date 2015-02-01 */ # include "headers.hpp" static std::string help = "Test PETSc and AmgX solvers."; int main(int argc, char **argv) { StructArgs args; // a structure c...
/* * Copyright 2002-2010 <NAME>. * * This software may be freely redistributed under the terms * of the X11 license. * * http://zarb.org/~gc/html/libpng.html * */ #if __linux__ #include <unistd.h> #else #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #define PNG_DEBUG 3 ...
#include <bits/stdc++.h> using namespace std; #define ONLINE 1 #define OFFLINE 0 #define DAY (24 * 60) #define HOUR 60 #define MAX 1010 typedef struct record { char name[30]; int day; int hour; int min; int state; }Record; typedef struct bill { char start[30]; char end[30]; int durat...
/* Copyright 2014 Google Inc. 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 agreed to in writ...
#include "Rendering/RenderTexture.h" #include <iostream> #include <cassert> #include "Core/Debug.h" using namespace fm; RenderTexture::RenderTexture(size_t width, size_t height, unsigned int numberColorAttchment, Format *formats, Type *types, unsigned short depth, int multiSampling) { _width = width; _height =...
#include <iostream> #include <vector> #include <UnitTest++.h> #include "model/screen.h" // Useful for doing 'screen_of_coord' testing so that I can avoid repeating code struct CrtOfCoordTest { int x, y; Crt *expected_screen; }; void test_screen_expectations(CrtManager &mgr, CrtOfCoordTest *tests, int n_test...
#include <iostream> #include <fstream> #include "class_model.cpp" #include "nrutil.h" #define FALSE 0 #define TRUE 1 float f1dim (class_model * c1, float imterprot); float f1dim_dif(class_model * c1, float p1); //float sizetest (float p1); //float mnbrak(float ax,bx,cx,fa,fb,fc,func float f1dim (class...
// Copyright 2021 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
#include "PartIconRenderer.h" #include <renderer/Renderer.h> #include <assets/Cubemap.h> PartIconRenderer::PartIconRenderer(glm::ivec2 size, double fov) : gbuffer((size_t)size.x, (size_t)size.y), fbuffer((size_t)size.x, (size_t)size.y), cubemap("debug_system:skybox.hdr") { this->size = size; this->fov = fov; } ...
/******************************************************************************** * Copyright 2009 The Robotics Group, The <NAME>-<NAME>ler Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in c...
/******************************************************************************* The MIT License (MIT) Copyright (c) 2015 <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 deal in the Software without...
/* 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...
/********************* */ /*! \file ConstraintMatrixAnalyzer.cpp ** \verbatim ** Top contributors (to current version): ** <NAME>, <NAME> ** This file is part of the Marabou project. ** Copyright (c) 2017-2019 by the authors listed in the file AUTHORS ** in...
#include <map> #include <random> #include <vector> #include <spii/auto_diff_term.h> #include <spii/dynamic_auto_diff_term.h> #include <spii/large_auto_diff_term.h> #include <spii/function.h> #include <spii/solver.h> #include <spii/term.h> #include "util/mappedtextfile.hpp" #include "sgdsolver.hpp" #include "simhashwe...
#include <bits/stdc++.h> using namespace std; #define ll long long //typedef long long ll; ll M=(ll)(1e9+7); int n,m; char c; long long a[100005]; struct matrix { ll m[2][2]; matrix() { memset(m,0,sizeof(m)); } matri...
#include "trick/MonteCarlo.hh" #include "trick/message_proto.h" #include "trick/message_type.h" #include "trick/tc_proto.h" /** * @par Detailed Design: * This function performs a non-blocking accept on the listening socket. */ void Trick::MonteCarlo::receive_slave_results() { Trick::MonteSlave *curr_slave = NU...
#include "parsetree.hpp" #include <sstream> #include <isl/map.h> #include "polygraph.hpp" #include "rose/Parser.hpp" ParseTree::ParseTree(PolyGraph * polygraph_) : polygraph(polygraph_) {} ParseTree::~ParseTree() {} std::string ParseTree::toString() const { std::ostringstream res; print(res); return res.s...
#include <iostream> #include <vector> #include <algorithm> #include <functional> // greater<> using namespace std; class Person { public: Person(char *n = "", int a = 0) { name = strdup(n); age = a; } bool operator==(const Person& p) const { return strcmp(name,p.name) == 0; // && age...
/** * Copyright: 2009-2010, <NAME>, <NAME>, <NAME> * License: The terms of use of this software and its source code are defined by the BSD license. */ #include "PfffBlockReader.h" #include <errno.h> #include <fstream> #include <string.h> using std::ifstream; using std::ios; // ------------- BlockReader ---------...
/* the vast starry sky, bright for those who chase the light. */ #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; #define mk make_pair const int inf=(int)1e9; const ll INF=(ll)5e18; const int MOD=998244353; int _abs(int x){return x<0 ? -x : x;} int add(int x,int y){x+=y; ret...
/* <Lenet Neural Network High Level Synthesis Lenet> MIT License Copyright (c) 2020 <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 r...
#include "plotlayout.h" PlotLayout::PlotLayout() : QLayout() { } PlotLayout::~PlotLayout() { } void PlotLayout::addWidget(QWidget *widget) { QWidgetItem* item = new QWidgetItem(widget); _name2item.insert(widget->whatsThis(),item); _items << item; } //================================================== //...
/* * 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. */ #in...
/* * Copyright 2014 <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...
#include "trajectoryPlanner.h" TrajectoryPlanner::TrajectoryPlanner(): posVelAccTime(1, 16) { } TrajectoryPlanner::~TrajectoryPlanner() { } void TrajectoryPlanner::addPoints(float x, float z) { pt_x.push_back(x); pt_z.push_back(z); } // Prints the current list of points void TrajectoryPlanner::printPoints...
/* * 访问图像像素信息方式的优化 * * 原文地址:https://www.cnblogs.com/Imageshop/archive/2011/11/12/2246362.html * * 图像像素遍历,不同实现方式会有不同的效率。 * 以图像反色算法为例,对比多种像素访问的实现方式,展示基本的优化技巧。 * 这里采用C++重新实现,并在Ubuntu 20.04下用clang++ 10.0进行编译和测试。 * 用到了OpenCV做图像读写,用到了C++11的时间戳实现跨平台的时间开销统计。 */ #include <stdio.h> #include <stdlib.h> #include <string...
#include <string> #include <iostream> #include <vector> #include <util.hpp> #include <tinge.hpp> namespace graph { #define TOKENS \ X(TOKEN_NONE) \ X(TOKEN_EOF) \ X(TOKEN_LPAREN) \ X(TOKEN_RPAREN) \ X(TOKEN_IDENTIFIER) #define X(x) #x, const char* to_str[] = { TOKENS }; #undef X #define X(x) x, en...
#pragma once #include <string> #include <map> #include <functional> #include <SFML/Graphics.hpp> #include "screen.hpp" #include "spriteinfo.hpp" #include "hero.hpp" #include "soundmanager.hpp" const std::string LEVELS_DIR = "assets/levels/"; class Level : public Screen { friend class Hero; public: enum...
// Copyright 2022 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <inttypes.h> #include <lib/elfldltl/diagnostics.h> #include <lib/elfldltl/dynamic.h> #include <lib/elfldltl/layout.h> #in...
// Copyright (c) 2011 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. #include <unistd.h> #include <cstdio> #include <cstring> #include <string> #include <ppapi/cpp/instance.h> #include <ppapi/cpp/module.h> #include...
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/LexicalPath.h> #include <AK/String.h> #include <AK/StringBuilder.h> #include <AK/Types.h> #include <AK/Vector.h> #include <LibCore/Account.h> #include <LibCore/ArgsParser.h> #include <LibCore/DirIterator.h> #include...
// this file will contain bond/contract functions #include "bond_functions.hpp" #include <iostream> /* // description only proposer will incur this cost. Based on node connectivity, maximally connect node, and bank. The more connected a Node is, the more expensive the next bond will cost. Arguments are with respect t...
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-sizeof-array-argument %s // extern "C" void *memset(void *, int, unsigned); extern "C" void *memmove(void *s1, const void *s2, unsigned n); extern "C" void *memcpy(void *s1, const void *s2, unsigned n); extern "C" void *memcmp(void *s1, const void *s2, unsigned n); struct ...
/* * Copyright (C) 2007-2013 Xagasoft, All rights reserved. * * This file is part of the libbu++ library and is released under the * terms of the license contained in the file LICENSE. */ #include "bu/logger.h" #include <stdarg.h> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> Bu::L...
#include "MyConditionalPrior.h" #include "DNest4/code/DNest4.h" #include <cmath> using namespace DNest4; MyConditionalPrior::MyConditionalPrior(double x_min, double x_max, double y_min, double y_max, double fluxlim_min, double fluxlim_max) :x_min(x_min) ,x_max(x_max) ,y_min(y_min) ,y_max(y_max) ,fluxlim_min...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2008, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ...
/* * Copyright (C) 2010 The Android Open Source Project * * 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...
#include "PTQS1005.h" PTQS1005::PTQS1005(Serial &uart) { is_debug_mode = PTQS1005_DEBUG_MODE; _uart = &uart; _uart->baud(9600); _uart->format(8, Serial::None, 1); } void PTQS1005::uart_receive_new_data_handler() { if (_uart->readable()) { raw_sensor_data[sensor_data_idx++] = (char) _uart-...
#include <windows.h> #include <tchar.h> #include <shlwapi.h> #include "resource.h" #include "MyMsgProc.h" #include "server\LowDbAccess.h" int GetTargetTcpUdpNameArray(TCHAR Name[256][32], int Id[256], int UdpFlag) { return LowDbAccess::GetInstance()->GetTargetTcpUdpNameAndId(Name, Id, UdpFlag); } int GetForceClose(...
/* ------------------------------------------------------------------------------- This file is part of Eris Engine ------------------------------------------------------------------------------- Copyright (c) 2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and...
#include <swerve_math/Swerve.h> #include <iostream> #include <fstream> #include <iomanip> #include <functional> #include <cmath> #include <ros/console.h> using namespace std; using namespace Eigen; // TODO : use initializaer list rather than assignment. // string should be a const & var, as should the swerveVar args ...
#include <set> #include "constdb.h" #include "reader.h" #include "umls.h" std::vector<uint32_t> compute_subwords( std::string aui, const UMLS& umls, absl::flat_hash_map<std::string, std::vector<uint32_t>>& aui_to_subwords_map, absl::flat_hash_map<uint32_t, std::vector<uint32_t>>& code_to_parents_m...
// Copyright (c) 2012, <NAME>. All rights reserved. Use of this source // code is governed by a MIT-style license that can be found in the LICENSE file. #include "_VisitorImplHeader.h" StructType* Visitor::getExplicitStructType(const ast::StructType* astST) { assert(module_ != 0); assert(astST != 0); std::strin...
/* This file is part of the KDE project Copyright (C) 2004 <NAME> <<EMAIL>> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option)...
// Copyright 2020 <NAME> #include "../../../modules/task_3/hassan_quick_sort_even_odd/quick_sort_even_odd.h" #include <vector> #include <utility> #include <algorithm> std::vector<std::pair<int, int>> comparators; std::vector<int> createRandomVector(int size_v) { std::mt19937 random; random.seed(static_cast<unsign...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "prstrms.h" #include "pr...
#include <conio.h> #include <dpmi.h> #include <go32.h> #include <pc.h> #include <bios.h> #include <algorithm> #include <array> #include <random> #include <iostream> #include <time.h> #include <unistd.h> std::pair<int, int> currentSquare = {1,1}; int ticksUntilClosure = 100; unsigned char getPaletteEntry( int origin )...
#include "defs.h" #include "FaceInfo.h" // the following eyes, nose, chin ratios worked for a test face (i.e. mine) // but they may need slight tweaks for other faces const int iris_roi_div = 3; FaceInfo::FaceInfo() : is_face_found(false), is_eyes_detect_enabled(true), is_grin_detect_enabled(true), ...
#include "cmpfuncs.h" #include "readprint.h" const leda::string currentDateTime() { time_t now = time(0); struct tm tstruct; char buf[80]; tstruct = *localtime(&now); // Visit http://en.cppreference.com/w/cpp/chrono/c/strftime // for more information about date/time format strfti...
#include "FloodFill.h" #include <cmath> #include <queue> #include <algorithm> #include <optional> #include <utility> struct Point { int x; int y; }; // Draws a line on screen and returns two visible ends of the line it they exist std::optional<std::pair<Point, Point>> drawLine(std::vector<bool>& screen, int width,...
#include <dmusic/Forms.h> #include <dmusic/Exceptions.h> using namespace DirectMusic; using namespace DirectMusic::Riff; /** * Loads a series of structures of type T into a vector from a memory buffer * The first 4 bytes represent the size of the structure to load * The number of structures to load is calculated from...
//////////////////////////////////////////////////////////////////////////////// #include "intersect_ray.h" #include "aabb.h" #include "aabb_binary.h" #include <Eigen/Dense> #include <geogram/mesh/mesh_geometry.h> #include <limits> #include <numeric> #undef IGL_STATIC_LIBRARY #include <igl/ray_mesh_intersect.h> ///////...
#include "part1.hpp" using namespace std; string swapPos(const string &pwd, size_t pos1, size_t pos2) { string nextPwd = pwd; nextPwd[pos1] = pwd.at(pos2); nextPwd[pos2] = pwd.at(pos1); return nextPwd; } string swapLetter(const string &pwd, char letter1, char letter2) { strin...
/*----------------------------------------------------------------------- <NAME> 2021 http://trederia.blogspot.com crogine application - Zlib license. 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 so...
#include <algorithm> #include <iostream> #include "RaZtracer/Utils/BVH.hpp" namespace { enum CutAxis { AXIS_X = 0, AXIS_Y, AXIS_Z }; } void BVHNode::build(std::vector<DrawableShapePtr>& shapes, std::size_t beginIndex, std::size_t endIndex) { if (endIndex - beginIndex <= 1) { sha...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkImage_Gpu.h" #include "SkCanvas.h" #include "GrContext.h" #include "SkGpuDevice.h" SkImage_Gpu::SkImage_Gpu(int w, int h, SkAlphaType at, GrTexture* tex, ...
#include "daisy_field.h" #include "daisysp.h" #define NUM_VOICES 16 using namespace daisy; daisy_field hw; struct voice { void Init() { osc_.Init(DSY_AUDIO_SAMPLE_RATE); amp_ = 0.0f; osc_.SetAmp(0.5f); osc_.SetWaveform(daisysp::Oscillator::WAVE_POLYBLEP_SAW); on_ = f...
/* * The MIT License (MIT) * * Copyright (c) 2015-2016 <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, ...
/* Copyright (c) 2018-2020 <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, sub...
//#include <SFML/Graphics.hpp> #include <SFML/Network.hpp> #include <SFML/System.hpp> #include <SFML/Graphics.hpp> #include <SFML/OpenGL.hpp> #include "String.h" #include <iostream> template < typename T > std::string to_string( const T& n ) { std::ostringstream stm ; stm << n ; return stm.str() ; } sf::...
#include <ros/ros.h> #include <nav_msgs/Odometry.h> #include <geometry_msgs/Pose2D.h> #include <geometry_msgs/Twist.h> #include <sensor_msgs/LaserScan.h> #include <tf/tf.h> #ifdef USE_MATPLOT #include <matplot/matplot.h> using namespace matplot; #endif #define SHOW_POSITION_LOGS // #define SHOW_SENSOR_LOGS // Turtl...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
#include <iostream> #include <QImage> #include <QApplication> #include <set> #include "singlelayout.h" #include "layout.h" #include "../util.h" #include "../viewer.h" #include "../resourcemanager.h" #include "../search.h" #include "../config.h" #include "../kpage.h" using namespace std; SingleLayout::SingleLayout(Vi...
#include <qtgadgets.h> typedef struct { double position ; int R ; int G ; int B ; int A ; } nGradientPoint ; typedef struct { int Type ; int Spread ; int Coordinate ; double x1 ...
/* * (C) Copyright 2009-2016 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an...
#include <Platform/OpenGL/GLGUIRenderer.h> #include <Platform/OpenGL/GLCommonShaders.h> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/string_cast.hpp> #include <iostream> #include <stdlib.h> #include <iostream> static float rectCoords[] = { // bottom rig...
/* * Copyright 2019 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pow.h> #include <arith_uint256.h> #include <chain.h> #include <primitives/block....
#include <json/json.h> #include "table.h" #include <fstream> using std::ofstream; using std::cin; //! \brief The function returns the intersection set of two source sets vector<int> _and(vector <int> a1, vector<int> a2) { vector<int> ans; for (int i = 0; i < a1.size(); i++) { bool exist...
#include <iostream> #include "start_selector.h" // ============================== // discrete_trajectory discrete_trajectory::discrete_trajectory( double dt, std::vector<cartesian_state> path, double in_range ) : time_interval_(dt), path_( path ), threshold_valid_offset_( in_range ) { if( (path.size() > 0) && (dt...
#include <TNL/Config/parseCommandLine.h> #include <TNL/Meshes/TypeResolver/resolveMeshType.h> #include <TNL/Meshes/Writers/VTKWriter.h> #include <TNL/Meshes/Writers/VTUWriter.h> #include <TNL/Meshes/Writers/FPMAWriter.h> #include <TNL/Meshes/Geometry/getPlanarMesh.h> using namespace TNL; struct MeshPlanarCorrectConfi...
#include "receiver.h" #include "include/commands.h" #include "include/crc.h" #include "uart.h" #include "I2CCustom.h" #include <memory> #define RED_TALLY_EXCLUSIVE 1 // Takes the native format of 2 cameras being baked into one byte, and turns it into one byte per camera like the shield expects static size_t BakeTa...
/* This program attempts to learn an objective function for a particular game by watching movies of people playing it. The objective function can then be used by playfun.exe to try to play the game. */ #include <unistd.h> #include <sys/types.h> #include <string.h> #include <errno.h> #include <stdio.h> #inclu...
#include "MakeShaders.h" #include <stdlib.h> #include "Common/LogGL.h" const char * MakeShaders::V_MAIN_SHADER = "attribute vec4 a_Position;" "attribute vec2 a_Texture;" "varying vec2 v_Texcoord;" ...
// This is an independent project of an individual developer. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com #include "net/compactbinary.h" using namespace khorost::network; using namespace khorost::data; union uint64x32_t { boost::uint64_t m...
#include "..\SharedFiles\pch.h" #include "ArUcoMarkerDetector.h" ArUcoMarkerDetector::ArUcoMarkerDetector() {} ArUcoMarkerDetector::~ArUcoMarkerDetector() {} template <class T> void OutputDebugMatrix(const std::wstring& prompt, const cv::Mat& mat) { auto output = prompt; for (int m = 0; m < mat.rows; m++) ...
/** * Author: <NAME> * Copyright: Distributed Organisms B.V. (DoBots) * Date: Nov 4, 2014 * License: LGPLv3+, Apache, and/or MIT, your choice */ #include "string.h" #include "stdio.h" #include "characteristics/ScanResult.h" #include "drivers/serial.h" #include "util/utils.h" ScanResult::ScanResult() : _freeIdx(...
// Copyright 2013-2014 [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 applicable law or ...
/* * Copyright (c) 2012 <NAME> <<EMAIL>> * License: MIT (See LICENSE.txt or http://www.opensource.org/licenses/MIT) */ #include "defines.h" #include "family.hpp" #include "childprocess.hpp" #include "supervisor.hpp" #include "logger.hpp" #include <iostream> #include <sys/wait.h> // for exit status explanation #if 0...
#include "Ecran.h" #include <algorithm> #include <cmath> #include "sfml_c01.hpp" ///------------------------ EcranLigne_Multi ------------------------/// EcranLigne_Multi::EcranLigne_Multi (point_t a, point_t b, float bin_dens, float lumino) : EcranLigne_Multi (a, b, (uint16_t)(bin_dens * !(b-a)), lumino) {} EcranL...
/******************************************************************************* * * Copyright (c) 2009-2010 <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
/* sphere.C */ #include "cube.h" // icosahedron vertices (taken from <NAME> http://www.cs.unc.edu/~jon) vec3 Cube::icosahedronVerts[NUM_VERTS] = { vec3( 1, 0, -1), vec3( 1, 0, 1), vec3( 1, 2, -1), vec3( 1, 2, 1), vec3( -1, 0, -1), vec3( -1, 0, 1), vec3( -1, 2, -1), vec3( -1, 2, 1) }; // ...
//////////////////////////////////////////////////////////////////////////// // Module : smart_cover_object.cpp // Created : 28.08.2007 // Modified : 28.08.2007 // Author : <NAME> // Description : smart cover object class //////////////////////////////////////////////////////////////////////////// #include "pch_...
#include <string> #include <iostream> #include "errcalc.h" using namespace std; //This is enum for Tokens enum class Token { //Shows if error occured Error, //Shows if token found '+' Plus, //Shows if token found '-' Minus, //Shows if token found '/' Div, //Shows if token found '*' ...
// Copyright 2019, <NAME> <<EMAIL>>, <NAME> <<EMAIL>> // SPDX-License-Identifier: BSD-2-Clause #include <limits> #include <list> #include <algorithm> #include <unordered_map> #include "CScheduleAlgorithmHEFT2.h" #include "CTask.h" #include "CTaskCopy.h" #include "CEstimation.h" #include "CSchedule.h" #include "CSchedu...