text
stringlengths
3.08k
12.5k
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/* * Copyright (C) 2013-2015 <NAME> (<EMAIL>) * Copyright (C) 2013-2015 <NAME> (<EMAIL>) * Based on Linderdaum Engine http://www.linderdaum.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are me...
/* * * Copyright 2017 gRPC authors. * * 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 agree...
//---------------------------------------------------------- -*- Mode: C++ -*- // $Id: chunkscrubber_main.cc 385 2010-05-27 15:58:30Z sriramsrao $ // // Created 2008/06/11 // // // Copyright 2008 Quantcast Corp. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache License, Version 2.0 //...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; double P[16][16]; int bc[1<<16]; double tree[1<<16]; double conn[1<<16][50], nconn[1<<16][50]; int lg[1<<16]; class RoadsOfKingdo...
/** Copyright (C) 2017 MD. <NAME> Project Name: Author: MD. <NAME> Author's Email: <EMAIL> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
/* * Copyright (C) 2018 Open Source Robotics Foundation * * 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 appl...
#include <Arduino.h> #include <NTPClient.h> #include <ESP8266WiFi.h> #include <WiFiUdp.h> const char *ssid = "gemueNetz"; const char *password = "<PASSWORD>"; const long utcOffsetInSeconds = 3600; char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}; // Define ...
#include "MTextFieldRenderer.h" #include "MTextField.h" /** runtime type info */ MRtti MTextFieldRenderer::gvRtti = MRtti( "MTextFieldRenderer", MTextFieldRenderer::createInstance ); /** constructor */ MTextFieldRenderer::MTextFieldRenderer() : ivBkColor( MColorMap::WHITE ), ivFgColor( MColorMap::BLACK ), ...
#include "HUD/HUD.h" #include "cl_util.h" #include "cvardef.h" #include "usercmd.h" #include "const.h" #include "entity_state.h" #include "cl_entity.h" #include "ref_params.h" #include "Input/IN_Defs.h" // PITCH YAW ROLL #include "pm_movevars.h" #include "pm_shared.h" #include "pm_defs.h" #include "event_api.h" #inclu...
//#include "stdafx.h" void daxpy ( int n, double da, double dx[], int incx, double dy[], int incy ); double ddot ( int n, double dx[], int incx, double dy[], int incy ); double dnrm2 ( int n, double x[], int incx ); void drot ( int n, double x[], int incx, double y[], int incy, double c, double s ); void drotg ( do...
// 01.Building.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> #include <functional> #include <vector> #include <algorithm> using namespace std; class Building { private: string _owner; int _floors; int _offices; int _employees; int _workin...
/** @file ***************************************************************************** Implementation of functions for profiler. ***************************************************************************** * @author This file is part of bace, developed by SCIPR Lab * and contributors (see AUTHORS...
/*******************************************************************\ Module: Symex Test Suite Generation Author: <NAME>, <EMAIL> \*******************************************************************/ /// \file /// Symex Test Suite Generation #include "symex_parse_options.h" #include <iostream> #include <iomanip> ...
/* * strategy_external.cpp * * Created on: 23. 11. 2019 * Author: ondra */ #include "strategy_external.h" #include "imtjson/object.h" class StrategyExternal::Strategy: public IStrategy { public: Strategy(StrategyExternal &owner, const std::string_view &id, json::Value config, json::Value state); virtu...
#include "elements.h" // random parameters to test integration routines const real_t a0 = 1.23456; const real_t a1 = 0.98765; const real_t xi0 = 0.1567; // ---------------- // a function to integrate real_t func_term(real_t xi, real_t n){ return a1*pow( (xi - xi0),n ); } real_t func(real_t xi, real_t n){ ...
/** * @author <NAME> * @file tt2pt.cc * @brief Program that generates a joint phrase table from a pair of * ibm ttables and corresponding vocabulary files. * * * COMMENTS: * * Convert two IBM model ttables (in each direction) to phrase tables. * * * Technologies langagieres interactives / Interactive ...
/** @file * * @course CS1521 * @section 1 * * Implementation file for a pointer-based implementation of the ADT * list that uses smart pointers and a protected, nested type for the * list's nodes (so that clients do not have access to them - they * should be hidden as they are an implementation detail). ...
#include "Player.h" #include <DPE/ResourceManager.h> #include <cmath> #include "Random.h" #include "BadGuy.h" Player::Player(): m_target(0.0f), m_nextTile(0.0f) { } Player::~Player() { } /*void Player::update(float deltaTime, const std::vector<std::vector<int>>& map, std::vector<std::vector<int>>& entMap...
/* Copyright (c) 2003 by <NAME> and The Institute for Genomic Research. This is OSI Certified Open Source Software. Please see the file LICENSE for licensing information and the file ACKNOWLEDGEMENTS for names of contributors to the code base. */ #include "arraydef.h" #include "types.h" #include "streemac.h...
#include "BlockValidator.h" #include "../Processors/BlockHeaderProcessor.h" #include <Crypto/Crypto.h> #include <Core/Exceptions/BlockChainException.h> #include <Core/Exceptions/BadDataException.h> #include <Core/Validation/TransactionBodyValidator.h> #include <Core/Validation/KernelSumValidator.h> #include <Common/Ut...
#include<iostream> #include<signal.h> #include<thread> #include<netinet/in.h> #include<sys/wait.h> #include<sys/socket.h> #include<sys/types.h> #include<unistd.h> #include"ProxySocket.hpp" #include"HttpHeader.hpp" #include"ThreadPool.hpp" #include"Filter.hpp" #include"CacheManager.hpp" #include<time.h> using namespace ...
/* ** ** Copyright 2007, 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 appl...
//gyrating cat enthusiast #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <string> #include <utility> #include <cassert> #include <algorithm> #include <vector> #include <random> #include <chrono> #include <queue> #include <set> #define ll long long #define lb long double #define pi...
/** * @file <argos3/plugins/robots/builderbot/hardware/main.cpp> * * @author <NAME> - <<EMAIL>> */ #include <sys/time.h> #include <csignal> #include <argos3/core/utility/configuration/command_line_arg_parser.h> #include <argos3/core/utility/plugins/dynamic_loading.h> #include <argos3/plugins/robots/builderbot/hardwa...
// UVa11248 Frequency Hopping๏ผšไฝฟ็”จISAP็ฎ—ๆณ•๏ผŒๅŠ ไผ˜ๅŒ– // <NAME> #include<cstdio> #include<cstring> #include<queue> #include<vector> #include<algorithm> using namespace std; const int maxn = 100 + 10; const int INF = 1000000000; struct Edge { int from, to, cap, flow; }; bool operator < (const Edge& a, const Edge& b) { retur...
#include "types.hpp" #include "uGraph.hpp" #include <set> #include <algorithm> #include <fstream> #include <iostream> // Global Vals uint64_t clique_num; uint64_t max_clique_size; std::ofstream cfile; void print_vlist(vlist *v); // type definitions // @task_t represents a indenpendent task to compute cliques...
#pragma once #include <algorithm> #include <cmath> #include <fstream> #include <limits> #include <sstream> #include <string> #include "tinygeom2d/domain.hpp" #include "tinygeom2d/geometry.hpp" namespace colors { const std::string black = "black"; const std::string white = "white"; const std::string light...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This node is used for testing and developing of the algorithm * info container * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include "ros/ros.h" #include "ros/package.h" #include "context_manager/tracking_method.h" #include...
// Copyright (c) 2014 The Chromium Embedded Framework Authors. // Portions 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 "libcef/browser/osr/render_widget_host_view_osr.h" #include <X11/Xli...
/*************************************************************************** * Copyright (C) 2008 by <NAME> * * <EMAIL> * * * * This program is fre...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2018 Pilz GmbH & Co. KG * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
#include "Fasta_reader.hpp" #include "Fasta_entry.hpp" #include "KmerCounter.hpp" #include <algorithm> #include <stdlib.h> #include <string> #include <sstream> #include <iostream> #include "argProcessor.hpp" #include "sequenceUtil.hpp" #include "irke_common.hpp" void parse_target_kmers(string& filename, KmerCounter& k...
/* PMW3901 Arduino driver Copyright (c) 2017 Bitcraze AB 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, m...
#include <cpprest/filestream.h> #include <boost/program_options.hpp> #include <cpprest/http_listener.h> #include <cpprest/json.h> #include <cpprest/uri.h> #include <cpprest/ws_client.h> #include <cpprest/containerstream.h> #include <cpprest/interopstream.h> #include <cpprest/rawptrstream.h> #include <cpprest/producerco...
///////////////////////////////////////////////////////////////////////// // // Author: <NAME> (<EMAIL>) // // Copyright 2017-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...
/*========================================================================= * RtSmoothRoi.cpp smooths data over an Roi * * Copyright 2007-2013, the MURFI dev team. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may...
#include "Math.h" #include "Kernels.h" #include <embree3/rtcore.h> #include <iostream> #include <fstream> #include <vector> namespace Stray { struct Quad { int v0, v1, v2, v3; }; } // namespace Stray using namespace Stray; static const int SCREEN_WIDTH = 640; static const int SCREEN_HEIGHT = 360; static vo...
#include <math.h> #include "FTExtrdGlyph.h" #include "FTVectoriser.h" #ifdef FTGL_DEBUG #include "mmgr.h" #endif FTExtrdGlyph::FTExtrdGlyph( FT_Glyph glyph, float d) : FTGlyph(), vectoriser(0), glList(0), depth(d) { if( ft_glyph_format_outline != glyph->format) { return; } vectoriser = new F...
/* * This is the main file. It sets up the window using sfml and initializes OpenGL extensions using glew * * We use sfml, an open-source library. SFML has very basic support for guis. There is SFGUI but I have not used it yet. * SFML is by no means a full-fledged powerful UI framework, but it is very simple to us...
// The MIT License (MIT) // Copyright (c) 2013 lailongwei<<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights...
#include <bits/stdc++.h> using namespace std; // Macros #ifdef D3BUG #define cerrd if (D3BUG) cerr #else #define cerrd if (false) cerr #endif // Types template <typename T> using vector1D = vector<T>; template <typename T> using vector2D = vector<vector1D<T>>; template <typename T> using vector3D = vector<ve...
#include "TBEImage.h" #include "Engine.h" #include "FileSystem.h" #include "ResourceCache.h" #include "TBESystem.h" // this should not be being used, as we will default to this texture // keep r_notexture for now as it is referenced externally image_t *r_notexture = NULL; static HashMap<String, image_t*> textureLooku...
/* * PROGRAM: Object oriented API samples. * MODULE: 03.select.cpp * DESCRIPTION: A sample of running SELECT statement without parameters. * Prints string fields in a table, coercing VARCHAR to CHAR. * Learns how to coerce output data in prepared statement * and execute it. * * Example for the ...
// Copyright (c) 2017, <NAME> // Copyright (c) 2017, The University of Texas at Austin // 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 a...
#include <iostream> #include <string> #include <fstream> using namespace std; class Util { public: static void writeString(ofstream& file, const string& value) { //count with the \0 int dim = value.size() + 1; file.write((char*)&dim, sizeof(int)); file.write(value.c_str(), dim * sizeof(char)); } static vo...
/** * > Author: TISparta * > Date: 16-08-18 * > Tags: Backtracking, Minimax * > Difficulty: 4 / 10 */ #include <bits/stdc++.h> #define mp make_pair using namespace std; const int N = 4; enum PIECE { EMPTY, QUEEN, ROOK, BISHOP, KNIGHT }; enum PLAYER { NONE, BLACK, WHITE }; int b, w, m; vector...
#define BOOST_TEST_MODULE WayOut2Section6Tests #include <boost/test/unit_test.hpp> #include "test_common.h" BOOST_AUTO_TEST_CASE(Section6Level01) { const char * indata = 1 + R"( _X__X___ _Xd_.d__ ____Xd__ Xd___X__ DX_Xd___ ___._._D ____Xd__ )"; const char * outdata = 1 + R"( _1__2___ _.._..__ ____3.__ 4.___._...
/** * Copyright 2014 Open Connectome Project (http://openconnecto.me) * Written by <NAME> (<EMAIL>) * * This file is part of SAFSlib. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
#include <algorithm> #include <chrono> #include <iostream> #include <string> #include <thread> #include <cxxopts.hpp> #include <mqtt/client.h> #include "common.hh" struct callback : mqtt::callback { void connected(const std::string& cause) override { std::cout << "[callback] connected, reason: " << ca...
#include <raylib.h> #include <rlgl.h> #include <raymath.h> #include <new> struct BULLET { BULLET() { enable = false; } BULLET(Vector3 pos, Vector3 direction, float speed) { enable = true; timer = 60*2; this->pos = pos; this->direction = direction; this->speed = speed; } void...
#include "OPT3002.h" /** * Set the address of the sensor. * The address is set with hardware, depending on the configuration of the ADDR pin. * * ADDR -> GND = 0x44 * ADDR -> VDD = 0x45 * ADDR -> SDA = 0x46 * ADDR -> SCL = 0x47 * * @param address: Address to set the driver to. */ void OPT3002::set_address(ui...
#include <cmath> #include <vector> #include <bit> #include <algorithm> #include "sieve.h" std::vector<uint8_t> flag_sieve(const int64_t n) { const int64_t size = (n-1)/30+1; std::vector<uint8_t> flags(size, 0xff); uint8_t idx_i1, idx_i2; const uint8_t *bitmask; int64_t G[8], G2[7], m; if (c...
/* * detector.cpp * * Created on: Mar 8, 2011 * Author: sturm */ #include <ros/ros.h> #include <sensor_msgs/CameraInfo.h> #include <sensor_msgs/Image.h> #include <cv_bridge/cv_bridge.h> #include <sensor_msgs/image_encodings.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #in...
/** * @file rel_source.cc * @date Sep 8, 2004 * @brief Relation source implementation */ #ifndef _REL_SOURCE_ #include "execution/operators/rel_source.h" #endif #ifndef _DEBUG_ #include "common/debug.h" #endif // add by xing #include <cstring> using namespace Execution; using namespace std; #define LO...
#include "entity.h" #include <queue> Entity::Entity(TileMap* tm_, int tileCost_, int food_, int gold_, int stone_, int wood_, ALLEGRO_BITMAP* img_, int x_, int y_) : tm(tm_), tileCost(tileCost_), food(food_), gold(gold_), stone(stone_), wood(wood_), img(img_), x(x_), y(y_) { xdest = ydest = 0; } bool Entity::operator...
#pragma once #include "Circle.hpp" #include "PointArray.hpp" #include "helper_funcs.hpp" static void RandomNormalPair(double &x, double &y) /* Generator of pseudo-random numbers with standard normal distribution based on Box-Muller transformation "double" can be replaced by "float", "double", or...
/* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with...
#include <ncurses.h> #include <unistd.h> #include <string> #include <iostream> #include <vector> #include "../includes/UI.hpp" using namespace std; info Historique_window::run(info information) { cout<<information.friends; int x = 4, y = 4, max_x = 0, max_y = 0; int posStart_arrow = 0, posEnd_arrow = 0; int n...
/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the ter...
/* * Copyright ยฉ 2008-2010 dragchan <<EMAIL>> * This file is part of FbTerm. * based on GTerm by <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 vers...
#include<iostream> #include<bits/stdc++.h> #define ll long long int #define lim 1010 #define Clear(a,b) memset(a,b,sizeof(a)) #define pb push_back #define inf 100000000 #define mp make_pair using namespace std; template<class T>inline bool read(T &x) { int c=getchar(); int sgn=1; while(~c&&c<'0'||c>'9') ...
#include <algorithm> #include <cassert> #include <iostream> #include <random> #include <limits> #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include "SYCLCore/device_unique_ptr.h" #include "SYCLCore/HistoContainer.h" template <typename T, int NBINS, int S, int DELTA> void mykernel(T const *__restrict__ v, ...
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/time.h> #include <netdb.h> #include <unistd.h> #include <errno.h> #include <netinet/ip_icmp.h> #include <signal.h> #include <time.h> #include <iostream> #include <string.h> #include "ping.h" // Socket Fd int s...
#include "game.h" #include <ncurses.h> #include <iostream> Game::Game() : quit(false) , moves(0) , win(false) , game_over(false) , generator(random_device()) , dist(std::uniform_int_distribution<int>(1, 6)) { init_ncurses(); init_blocks(); run(); } Game::~Game() { endwin(); if (!err.empty()) { std::cout...
#include "glad/glad.h" #include "GLFW/glfw3.h" #include <iostream> #include <cmath> #include "GLFWInitRAII.hpp" #include "Shader.hpp" #include "CameraFree.hpp" #include "Object.hpp" #include "PointLight.hpp" #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #define TINYOBJLOADER_IMPLEMENTATION #include "tiny_o...
#include <dev/serial_out.hpp> #include <iob.h> #include <kernel/video.h> #include <stdio.h> using namespace dev; SerialOut::SerialOut(int port) : Driver("Serial i/o", "sr", 0,0,0x07, true, true), m_port(port) { /* COM1: I/O port 0x3F8, IRQ 4 COM2: I/O port 0x2F8, IRQ 3 COM3: I/O port 0x3E8, IRQ 4 COM...
/* ็ปผๅˆ้ข˜ 0-1่ƒŒๅŒ…้—ฎ้ข˜ ็ป™ๅฎšn็ง็‰ฉๅ“ๅ’Œไธ€ไธช่ƒŒๅŒ…ใ€‚ ็‰ฉๅ“i็š„่ดจ้‡ไธบWi๏ผŒๅ…ถไปทๅ€ผไธบVi, ่ƒŒๅŒ…็š„ๆœ€ๅคง่ฝฝ้‡้‡ไธบCใ€‚ ็ผ–ๅ†™ไธ€ไธช็จ‹ๅบ๏ผŒๆฑ‚่งฃๅฆ‚ไฝ•่ฃ…ๅœจ่ƒŒๅŒ…ไธญ็š„็‰ฉๅ“๏ผŒไฝฟๅพ—่ฃ…ๅ…ฅ่ƒŒๅŒ…ไธญ็š„็‰ฉๅ“ๆ€ปไปทๅ€ผๆœ€ๅคงใ€‚ ๅˆ†่งฃ้—ฎ้ข˜๏ผš 1.่ƒŒๅŒ…ๅฏไปฅ่ฃ…ๅ…ฅ็š„ๆ€ปไปทๅ€ผๆœ€ๅคง็š„็‰ฉๅ“ๆ˜ฏๅคšๅฐ‘๏ผŸ 2.ๅฆ‚ไฝ•่ฃ…ๅœจ๏ผŒๅฏไปฅ่พพๅˆฐ ้—ฎ้ข˜1 ้‡Œ้ข็š„ ็‰ฉๅ“ไปทๅ€ผ๏ผŸ */ #include <iostream> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #include <vector> #include <malloc.h> using nam...
// <NAME> #include <stdio.h> #include <limits.h> #include <string.h> int op_score(const char a) { switch (a) { case 0: return 0; case '+': case '-': return 1; case '*': case '/': return 2; case '%': return 3; case '^': return 4; default: return 0; } } int op_cmp(const char a, const char b) { r...
//====- correlation2D.cpp - Example of buddy-opt tool ========================// // // This file implements a 2D correlation example with dip.corr_2d operation. // The dip.corr_2d operation will be compiled into an object file with the // buddy-opt tool. // This file will be linked with the object file to generate the ...
/** * EE 318 - Computer Architecture and Design * Assignment 1 - Branch Prediction Programming * * @code `Dynamic-BM` (Dynamic Bimodal 2-bit Saturating Counters) * @author <NAME> * @copyright 2021 * MIT License */ #include <fstream> #include <iostream> using namespace std; int main (int argc, char *argv[]) {...
#include "modules/mapred/metadata.h" const char* meta::ns::internal = "internal"; const char* meta::ns::readonly = "spiral_readonly"; const char* meta::ns::user = "spiral"; // All metadata so far: // namespace key type // --------- --- ---- // internal encod...
/** * @file DCMData.h * * @author <a href="mailto:<EMAIL>"><NAME></a> * @breief Data communicated from DCM to NaoRobot * */ #include "DCMData.h" #include <cstring> #include "Tools/NaoTime.h" using namespace naoth; void DCMSensorData::get(SensorJointData& data) const { unsigned int currentIndex = theSensorJo...
//------------------------------------------------------------------ // // @@@ START COPYRIGHT @@@ // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. ...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
//===---------------------- SymbolicRangeAnalysis.cpp ---------------------===// //===----------------------------------------------------------------------===// #define DEBUG_TYPE "sra-test" #include "SymbolicRangeAnalysis.h" #include "llvm/IR/Constants.h" #include "llvm/IR/IRBuilder.h" #include "llvm/Support/Comma...
//===- test.cpp -------------------------------------------------*- C++ -*-===// // // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // // (c) Copyright 2020 Xilinx Inc. //...
#include "game.hpp" #include "assets.hpp" #include "utils/map.hpp" #include "utils/ui_overlay.hpp" #include "handlers/chest_handler.hpp" #include "handlers/enemy_handler.hpp" #include "handlers/turret_handler.hpp" #include "logic-objects/builder.hpp" #include "logic-objects/credits.hpp" using namespace blit; uint32_t...
#pragma once #include <iostream> #include <vector> #include <unordered_map> #include <utility> #include <fstream> #include <cstring> #include <chrono> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <signal.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/types.h> #include <arpa/inet....
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debu...
#include <libdariadb/storage/dropper.h> #include <libdariadb/storage/manifest.h> #include <libdariadb/storage/pages/page.h> #include <libdariadb/storage/settings.h> #include <libdariadb/utils/async/thread_manager.h> #include <ctime> using namespace dariadb; using namespace dariadb::storage; using namespace dariadb::ut...
// Copyright (C) 2019 - 2021 by <NAME>, Rector and Visitors of the // University of Virginia, University of Heidelberg, and University // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and Univ...
#include <iostream> #define GLEW_STATIC #include <GL/glew.h> #define SDL_MAIN_HANDLED #include <SDL2/SDL.h> #include "vertex_buffer.h" #include "shader.h" #define STB_IMAGE_IMPLEMENTATION #include "libs/stb_image.h" //export MESA_GL_VERSION_OVERRIDE=3.3 //compile with g++ -o main main.cpp vertex_buffer.cpp shader.cpp...
// // Window.cpp // OpenGLOtherTest // // Created by Abraham-mac on 7/1/14. // Copyright (c) 2014 Abraham-mac. All rights reserved. // #include "Window.h" Window::Window( GLint width, GLint height, std::string windowTitle ) { GLint glfwStatus = glfwInit(); if ( glfwStatus != GL_TRUE ) { std::c...
#include "helper/socket_ns3.h" // #include "ns3/ptr.h" #include "ns3/socket.h" #include "ns3/udp-l4-protocol.h" #include "ns3/tcp-l4-protocol.h" #include "ns3/tcp-congestion-ops.h" #include "../../internet/model/tcp-socket-factory-impl.h" #include "../../internet/model/udp-socket-factory-impl.h" #include <iostream> #...
// โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— // โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• // โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— // โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ• โ–ˆโ–ˆโ•‘โ•šโ•โ•โ•โ•โ–ˆโ–ˆโ•‘ // โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘...
// dain implemented with ncnn library #include "dain_ops.h" #include "layer_type.h" #include "correlation.comp.hex.h" #include "correlation_pack4to1.comp.hex.h" using namespace ncnn; Correlation::Correlation() { support_vulkan = true; padding = 0; pipeline_correlation = 0; pipeline_correlation_pac...
#include "eglconfiginfo.hpp" #include "json/reader.h" #include "common/os.hpp" #include "dispatch/eglproc_auto.hpp" EglConfigInfo::EglConfigInfo() : red(0) , green(0) , blue(0) , alpha(0) , depth(0) , stencil(0) , msaa_samples(0) , msaa_sample_buffers(0) { } EglConfigInfo::EglConfigInf...
#include "protocal.h" #include <sys/types.h> #include <sys/socket.h> #include<pthread.h> #include <netinet/in.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <arpa/inet.h> #include <iostream> #include <string> #include <thread> UserList ClientList;//ๅฎขๆˆท่Š‚็‚นๅˆ—่กจ int PrimaryUDP; st...
#include <Mesh.hpp> #include <util.hpp> #include <fstream> #include <iostream> #include <string> #include <vector> #include <GL/glew.h> // DEBUG template <typename T> static void printVector(std::vector<T> vec) { std::cout << "["; // for (T i : vec) for (size_t i = 0; i < 5; ++i) { // std::c...
#include <algorithm> #include <cstring> #include <fstream> #include <iostream> #include <sstream> #include <unordered_map> #include <vector> enum PlayerWon { PLAYER1, PLAYER2, }; class Player { public: Player() = delete; Player( std::vector<int> deck ) : _deck( deck ) { std::reverse( _deck.b...
//------------------------------------------------------------------------- // ^FILE: strindent.c - implement the strindent() function // // ^DESCRIPTION: // This file implements the function strmatch() which matches a // keyword (case insensitive) and the function strindent() which // prints a hanging, indent...
#include "parameters.h" #include <cstdio> void order(fmpz_t rot, const fmpz_t generator, const fmpz_t modulus) { fmpz_set_ui(rot, 1); fmpz_t pow; fmpz_init(pow); while (true) { fmpz_powm(pow, generator, rot, modulus); if (fmpz_is_one(pow)) { fmpz_clear(pow); r...
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved #include "CrossServerAbilityActivationTest.h" #include "GA_IncrementSpyValue.h" #include "GameplayTagContainer.h" /** * Tests that a gameplay ability can be activated on an actor from a non-auth server via the cross-server API. * Activation by ability spec...
/* $Id: UIWizardCloneVM.cpp $ */ /** @file * VBox Qt GUI - UIWizardCloneVM class implementation. */ /* * Copyright (C) 2011-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it ...
#include <string> #include <iostream> #include <fstream> #include "mesh.h" inline bool exists_test(const std::string& name) { if (FILE *file = fopen(name.c_str(), "r")) { fclose(file); return true; } else { return false; } } // OBJ loading utility functions std::vector<std::string> split...
#include "UserInterface.h" #include "Common.h" #include <SDL.h> #include "utils/Camera.h" UserInterface::UserInterface(CameraRotate& camera) : shapeScale(1.0f, 1.0f, 1.0f), cameraPlanes(0.1f, 1000.0f), m_camera(camera) { lightData.lightDirectional.ambient = { 0.1f, 0.1f, 0.1f }; lightData.lightDirectional....
//------------------------------------------------------------------ // // @@@ START COPYRIGHT @@@ // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. ...
#include "AudioStreamerEncoding.h" #include <rtt/rtt.h> AudioStreamerEncoding::AudioStreamerEncoding(const Params &streamInfo, AudioCoder::Factory coderFactory) : AudioStreamerCoding(streamInfo, coderFactory) , hasSinksToAdd(false) , firstInput(true) , encodedFrameIndex(0) , encoderBuffered(false) , enc...
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...