text
stringlengths
3.08k
12.5k
#include <iostream> #include <vector> #include <iomanip> #include <stdexcept> #include <string> #include <deque> #include <algorithm> using std::cout; using std::cin; using std::endl; using std::vector; using std::string; using std::deque; enum class SmjerKretanja { NaprijedNazad, NazadNaprijed, Gore...
#include <algorithm> #include <climits> #include <cstdlib> #include <iostream> #include <vector> template <typename T> int sgn(T val) { return (T(0) < val) - (val < T(0)); } struct Point { int x; int y; int t; }; enum Direction { HORIZONTAL, VERTICAL, }; struct LineSegment { int m_x; int m_y; int m_t; int...
#include <iostream> #include <thread> #include <windivert.h> #include "TLS.h" const char* const gl_WinDivertFilter = "outbound && !loopback && (ip || ipv6) && tcp.PayloadLength >= 11"; const UINT gl_MinBufferSize = 4096; // Minimum buffer size is 4KB const UINT gl_MaxBufferSize = 67108864; // Maximum b...
#include <cctbx/boost_python/flex_fwd.h> #include <scitbx/boost_python/container_conversions.h> #include <scitbx/array_family/boost_python/shared_wrapper.h> #include <boost/python/module.hpp> #include <boost/python/class.hpp> #include <boost/python/args.hpp> #include <boost/python/return_value_policy.hpp> #include <bo...
/* * Network.cpp * * Created on: 17 Jun 2010 * Author: db434 */ #include "Network.h" #include "../Parameters.h" #include "../../Datatype/Flit.h" #include "Stalls.h" using namespace Instrumentation; CounterMap<ComponentID> Network::producers; CounterMap<ComponentID> Network::consumers; count_t Network::arb...
#include "binary_tree.h" using namespace std; // Creating tree BinaryTree* create_tree() { BinaryTree* bt = (BinaryTree *)malloc(sizeof(BinaryTree)); if(bt != nullptr) { *bt = nullptr; // it's null yet } return bt; } // Deleting nodes void free_node(Vertex* v) { if(v != nullptr) { // If ex...
// main73.cc is a part of the PYTHIA event generator. // Copyright (C) 2019 <NAME>. // PYTHIA is licenced under the GNU GPL v2 or later, see COPYING for details. // Please respect the MCnet Guidelines, see GUIDELINES for details. // Example how to compare "parton-level" and "hadron-level" properties. #include "Pythia...
#include "autofocusmethods.h" using namespace FM; AFM::Comparative::Comparative( cv::Mat image, int threshold, int minDecode, int maxDecode, int step ) { //Populating the methods vector for( int method = 1; method <= 10; method++ ) { switch( method ) { case 1: {//Treshold Gradient-Squared this-...
// Concord // // Copyright (c) 2018 VMware, Inc. All Rights Reserved. // // This product is licensed to you under the Apache 2.0 license (the "License"). // You may not use this product except in compliance with the Apache 2.0 // License. // // This product may include a number of subcomponents with separate co...
#include "stdafx.h" #include "AST_handlers.h" static int AppBarState = 0; static int queryDelay = -100; static int orientChkDelay = 200; static int hideSettings[4]; void initAST(HWND hWnd) { LONG retVal1, retVal2, retVal3; HKEY hKey; DWORD dwDisp, tbMode; BYTE i; wchar_t buffer[2]; //Get the default Taskbar s...
///////////////////////////////////////////////////////////// // // // Copyright (c) 2003-2017 by The University of Queensland // // Centre for Geoscience Computing // // http://earth.uq.edu.au/centre-geoscience-computing // // ...
/* Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation 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....
/** * UNCLASSIFIED * * Copyright 2020 Northrop Grumman Systems 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 right...
//taskset 0x1 ./bit_ops_test #include <iostream> /* std::cout */ #include <iomanip> /* std::setw */ #include <cmath> /* pow */ #include <cassert> /* assert */ #include <algorithm> /* std...
#include "../include/tree.h" #include "../include/header.h" #include <iostream> #include <fstream> int HuffmanTree::GetCount() { return Tree.size(); } int HuffmanTree::GetCodeCount() { return Codes.size(); } void HuffmanTree::PrintCode(int index) { size_t buffsize = Codes[index].GetSize(); std::cout...
#include "services/httpservice.h" #include "userdb/userdb.h" #include "util/configuration.h" #include "util/concat.h" #include "util/gfbiodatautil.h" #include "portal/basketapi.h" #include "openid_connect.h" #include <cstring> #include <sstream> #include <json/json.h> #include <algorithm> #include <pqxx/pqxx> /* * T...
// http://jamie-wong.com/2016/07/15/ray-marching-signed-distance-functions/ // http://iquilezles.org/www/articles/distfunctions/distfunctions.htm // http://www.iquilezles.org/www/articles/rmshadows/rmshadows.htm // http://www.iquilezles.org/www/articles/smin/smin.htm #include "demo_game/main_common.h" #include "demo_g...
#include <cassert> #include <chrono> #include <iostream> #include <random> #include <tfhe++.hpp> using namespace std; using namespace TFHEpp; template <uint32_t address_bit, uint32_t block, uint32_t bitpos> void writeMUX( array<TRLWE<lvl1param>, (1 << address_bit)> &res, const array<array<TRGSWFFT<lvl1param>,...
#include <defs.h> #include "gv.h" using namespace kpp; using namespace graph; void gv::build() { auto file = std::ofstream(filename, std::ios_base::trunc); if (!file) return; file << "digraph " << name << " {" << std::endl; file << "graph [dpi = 100]" << std::endl; file << dbg::format(R"(graph [fontname = "...
#include "client.h" #include "netpacket.h" #include "packetprotos.pb.h" #include <arpa/inet.h> #include <netinet/in.h> #include <sys/socket.h> #include <iostream> #include <string> #include <errno.h> #include <unistd.h> #include <queue> #include <unistd.h> #include <mutex> #define SOCKET_ERROR -1 std::queue<protos::...
#include "absl/memory/memory.h" #include "enumerable/clique.hpp" #include "enumerable/diam2kplex.hpp" //#include "enumerator/parallel_tbb.hpp" #include "enumerator/sequential.hpp" //#include "enumerator/parallel_pthreads.hpp" #include "enumerator/parallel_pthreads_steal.hpp" #ifdef PARALLELENUM_USE_MPI #include "enumer...
// Copyright (C) 2015-2020 Virgil Security, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // (1) Redistributions of source code must retain the above copyright // ...
#include "Common.hpp" #include "resource/Geometry.hpp" #include "SphereTree.hpp" #include "physics/Sphere.hpp" #include "physics/Ray.hpp" #include "physics/Tris.hpp" using namespace reprize; using namespace res; using namespace phy; SphereTree::SphereTree(const Vec3& v1_, const Vec3& v2_, const Vec3& v3_) : is_...
#include <portaudio.h> #include <pa_win_wasapi.h> #include <windows.h> #include <stringapiset.h> #include <iostream> #include <string> #include <io.h> #include <fcntl.h> #include <dechamps_cpputil/string.h> #include "../FlexASIOUtil/portaudio.h" namespace flexasio { namespace { template <typename Result> aut...
/***************************************************************************** * Copyright 2017 CPqD. 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:...
// // This program 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, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it wil...
#include "misc.h" #include <chrono> #include <string> #include <iomanip> #include <iostream> #include <limits> #include <sstream> void title(std::string title, UIState_ptr ui_state) { Tempo::PushFont(ui_state->font_title); ImGui::Text(title.c_str()); Tempo::PopFont(); } bool button(std::string name, UIS...
#include "statistical_functions.h" using namespace std; using namespace Rcpp; const double log2pi = log(2.0 * arma::datum::pi); const double pi = arma::datum::pi; // -------- Numerical functions ----------- double logSumExp(const arma::vec &v){ double v_max = v.max(); return (v_max + log(sum(exp(v - v_max...
/*! * @section LICENSE * * @copyright * Copyright (c) 2015-2017 Intel Corporation * * @copyright * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * @copyright * http://www.apach...
/* /Este es un skectch para transmitir la data de un sensor de calidad de AIRE AIQ a un servicio de MQTT en internet /debe tomarse en cuenta que deben agregarse la libreria libalgobsec.a en el directorio lib para lograr el funcionamiento /de la libreri incluida por el fabricante BOSCH adicionamente debe modificarse e...
#include "stdafx.h" #include "aes256-siv.h" #include "aes256-cmac.h" #include "aes256-ctr.h" #include <stdlib.h> #include <string.h> #include "crypt/siv.h" const uint8_t aes256_siv_one_block[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 }; void aes256_siv_db...
#include "DebugElements.h" #include "GameObject.h" #include "Geometry.h" #include "GameObjectManager.h" #include "Texture.h" #include "RenderPass.h" #include "RenderBackend.h" Geometry* DebugCube::s_Geometry = nullptr; DebugElementsManager* DebugCube::s_Manager = nullptr; DebugElementsManager* DebugLine::s_Manager =...
#include <SFML/Graphics.hpp> class TileMap : public sf::Drawable, public sf::Transformable { public: TileMap(sf::Texture& tileset) : m_tileset(tileset) {} bool load(const std::vector<int>& tiles, sf::Vector2u map_dimension, sf::Vector2u tile_dimension) { if (tiles.size() / map_dimension.x != map_dimension.y) ...
#include "bm.h" #include <fstream> #include <iostream> #include <stdio.h> #include <vector> const double SPRING_CONSTANT = 1000.0; const double GRAVITY = 0.1; const double GAMMA = 0.1; const double dt = 0.01; struct d2 { double x, y; }; std::vector<d2> p, q; std::vector<double> stress; std::vector<int> bond1; std::...
#include "L1Trigger/Phase2L1ParticleFlow/interface/COEFile.h" using namespace l1tpf_impl; COEFile::COEFile(const edm::ParameterSet& iConfig) : file(nullptr), coeFileName(iConfig.getUntrackedParameter<std::string>("coeFileName", "")), bset_string_(""), ntracksmax(iConfig.getUntrackedParameter<uns...
#include "entity.h" #include <QJsonDocument> #include <QJsonObject> #include <QJsonArray> Entity::Entity(QObject *parent) : QObject(parent) { // traits Level = "1"; // stats STR = statRand(12,6); INT = statRand(12,6); WIS = statRand(12,6); DEX = statRand(12,6); CON = statRand(12,6)...
/*************************************************************************** * Copyright (C) 2004 by <NAME> * * <EMAIL> * * * * This program is free software; you ca...
// BSD 2-Clause License, see github.com/ma16/rpio #include "../invoke.h" #include <Rpi/Cm.h> #include <Ui/strto.h> #include <iomanip> #include <iostream> static Rpi::Cm::Alias getAlias(Ui::ArgL *argL) { auto index = argL->pop({"gp0","gp1","gp2","pcm","pwm","slim","uart"}) ; switch (index) { case 0: re...
/*************************************************************************** qgsmapthemes.cpp -------------------------------------- Date : September 2014 Copyright : (C) 2014 by <NAME> Email : wonder dot sk at g<EMAIL> dot com ***************************************...
// // main.cpp // // This program strips C & C++ style comments from an input stream. // // -------------------------------------------------------------------------- // Attribution: "Programming Abstractions in C++" by <NAME> // Chapter 4, Exercise 8 // Stanford University, Autumn Quarter 2012 // http://web.stanford.e...
#pragma once #include <string> #include <vector> using std::string; using std::vector; using std::stoi; // COMMAND // ------- enum class Command { UNKNOWN, DELTA, REWRITE, }; auto parseCommand(const string& x) { typedef Command C; if (x=="delta" || x=="batch") return C::DELTA; if (x=="rewrite" || ...
#include "llvm/Support/raw_ostream.h" #include "sea_dsa/Mapper.hh" using namespace sea_dsa; void FunctionalMapper::insert(const Cell &src, const Cell &dst) { assert (!src.isNull()); assert (!dst.isNull()); // -- already mapped Cell res = get(src); if (!res.isNull()) return; res = get(*src.getNode()); ...
#include "Console.h" #include "SDL2/SDL.h" #include "../Kernel.h" Console::Record::Record(const std::string& t, ImColor c) : text(t), color(c) {} ImColor Console::COLOR_CMD = ImColor(128, 255, 128); ImColor Console::COLOR_ERROR = ImColor(255, 128, 128); ImColor Console::COLOR_OUTPUT = ImColor(255, 255, 255); Console...
#include "functions.h" double t1,t2,t3,t4,t5,t6; void RunAsMaster(int array_size, int number_of_nodes) { int i,ii; int subarray_divider; vector<int> * vector_array; int * main_array; printf("*****************************************************************************\n"); printf("*...
/** * @author : <NAME> * @School : CUET CSE 11 * @TOPCODER : the_redback * @CodeForces : maruf.2hin * @UVA : Redback * @link : http://www.fb.com/maruf.2hin * */ #include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<cmath> #include<iostream> #incl...
//########################################################################## //# # //# CLOUDCOMPARE # //# # //# This pr...
#include <stdio.h> #include <map> #include <set> #include <queue> #include <vector> #include <string.h> #include <sstream> #include <iostream> #include <algorithm> using namespace std; #define MAXSTATE 1048576 #define MAXN (20000000>>5)+1 #define GET(x) (mark[x>>5]>>(x&31)&1) #define SET(x) (mark[x>>5] |= 1<<(x&31)) i...
#include "cbase.h" #include <KeyValues.h> #include "asw_weapon_parse.h" FileWeaponInfo_t* CreateWeaponInfo() { return new CASW_WeaponInfo; } CASW_WeaponInfo::CASW_WeaponInfo() { flReloadTime = 0; // asw m_flBaseDamage = 0; m_flFireRate = 0; m_iNumPellets = 0; m_iPlayerModelSkin = 0; m_iDisplayModelSkin = 0; ...
#include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <string> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "helpers.h" #include "json.hpp" #include "MPC.h" // for convenience using nlohmann::json; using std::string; using st...
#include <assert.h> #include <errno.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <omp.h> #include <libgen.h> #include <llama.h> #include <benchmark.h> #include <inttypes.h> #include <time.h> #include "../core/libcyclone.hpp" #include "../core/logging.hpp" #include "../cor...
/* * Copyright (c) 2019 - 2020, Thales DIS Singapore, 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 * * Unl...
/* Copyright (C) 2015 ArrayFire LLC - All Rights Reserved * Unauthorized copying of this file via any medium is strictly prohibited * Proprietary and confidential */ #include <QDir> #include <QStringList> #include <QDebug> #include "CAFWorker.h" CAFWorker::CAFWorker() { mRun = false; mLoopDemo = false; ...
/* * alignment.{cc,hh} -- represents alignment constraints * <NAME> * * Copyright (c) 1999-2000 Massachusetts Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software...
#include "myObj.h" myObjModel::myObjModel() { this->m_faces_index_v.clear(); this->m_faces_index_vt.clear(); this->m_faces_index_normal.clear(); this->m_vertices.clear(); this->m_vert_tex.clear(); this->m_vert_norm.clear(); } void myObjModel::Mirror() { int size_v = m_vertices.size();...
/********************************************************************* Copyright (c) 2018 Audi Autonomous Driving Cup. 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 ...
/* <NAME>. works as a tourist guide. His current assignment is to take some tourists from one city to another. Some two-way roads connect the cities. For each pair of neighboring cities there is a bus service that runs only between those two cities and uses the road that directly connects them. Each bus service has a l...
/* * * AlgnResult.h * Soap3(gpu) * * Copyright (C) 2011, HKU * * 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 optio...
#include <stdarg.h> #include <stdio.h> #include <string.h> #include <time.h> #include <utility> #include <vector> #include <map> #include <string> #include <zlib.h> extern "C" { #include "cgi.h" } using namespace std; const char *fn = "results.pgn"; static gzFile gz = NULL; struct Game { string p1, p2; string res...
#include <Arduino.h> #include <ArduinoJson.h> #if 0 #define DUMP_VAR(x) { \ Serial.print(__LINE__);\ Serial.print("@@"#x"=<");\ Serial.print(x);\ Serial.print(">&$");\ } #else #define DUMP_VAR(x) {} #endif /* {"d":7,"v":1} {"d":7,"v":0} {"d":8,"v":1} {"d":8,"v":0} {"p":9,"v":0} {"p":9,"v":127} {"p":9,"v"...
#include "AVCStream.h" #include "RtpPacket.h" #include "XUtil/XULog.h" //////////////////////////////////////////////////////////////////////////////////////////////////// //// AVCStream * AVCStream::create_instance(uint32_t id, RTSP_avc_init_param *init_param) { AVCStream * stream = new AVCStream(id, in...
//***************************************************************************** // // File: setbvr.cpp // Author: <NAME> // Date Created: Sept 26, 1998 // // Abstract: Implementation of CActionBvr object which implements // the chromeffects Action. Simple behavior that just forwards // buildBe...
#include <iostream> #include <sys/time.h> #include "/opt/hep/kinoko/drv/camdrv/camlib.h" #include "TString.h" // CAMAC functions const int READ = 0; const int CREAD = 2; const int TLAM = 8; const int CDATA = 9; const int CLAM = 10; const int DLAM = 24; const int ELAM = 26; // Number of ADCs, and its station num...
// mine.cpp : Defines the entry point for the console application. // #include "../backend/optimize.h" #include "../common/exception.h" #include "../common/string.h" #include <iostream> #include <fstream> //#define TESTING void help() { std::cout << "Help\n\n"; std::cout << "Optimize parameters of...
/** * CG2271 Lab 6 - C.A.R.T.O.S. (Car And RTOS) * @author <NAME>, <NAME>, CEG2 2017 */ #include <Arduino.h> #include <avr/io.h> #include <FreeRTOS.h> #include <task.h> #include <queue.h> #define STACK_SIZE 100 #define BUZZER_PIN 9 #define RED_PIN 10 #define FAST_PIN 7 #define MED_PIN 6 #define SLOW_PIN 5 #define ...
#include "calculator.hpp" #include <memory> #include <iostream> #include <sstream> #include <fstream> using std::unique_ptr; /******************************************************************************/ int main(int argc, const char * argv[]) { if (argc != 2) { std::cerr << "Expected a single input str...
/** * This file contains the tests that need to pass in order to satisfy all requirements * to SmallPtr! */ #include <gtest/gtest.h> #include "pets.hpp" //#include "v1_unique_ptr.hpp" //#include "v2_with_stubs.hpp" //#include "v3_type_erased.hpp" //#include "v4_small_opt1.hpp" //#include "v5_small_opt2.hpp" #incl...
/* * * Copyright 2006-2022, <NAME>. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #include "ADigit.h" #include "Xed_Utils.h" #include "TextControlFloater.h" #include <stdio.h> #include <string.h> #include <WindowScreen.h> #include <Application.h> #include <Window.h> #in...
/* * Software License Agreement (BSD License) * * Copyright (c) 2016-2019, Natalnet Laboratory for Perceptual Robotics * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, are permitted * provided * that the following conditions are met: * * 1. Redistr...
#include "client.h" #include "CharGrid.h" /* Very Strict UTF-8 Decoder UTF-8 is a multibyte character encoding of Unicode. A character can be represented by 1-4 bytes. The bit pattern of the first byte indicates the number of continuation bytes. Most UTF-8 decoders tend to be lenient, attemptin...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <vector> #include <math.h> #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include "Draw3D.h" #include "Solids.h" #include "fastmath.h" #include "Vec3.h" #include "Mat3.h" #include "quaternion.h" //#include "raytrace.h" //#include "Body.h" //#in...
#include <bits/stdc++.h> using namespace std; class FastMultiplier { const int64_t P1 = 2013265921; const int64_t P2 = 919601153; const int64_t R12 = 229239021; // P1^-1 (mod P2) const int64_t ROOT1 = 195061667; // Primitive root of order(2^20) modulo P1. const int64_t ROOT2 = 611244703; // Primitive root ...
#include "argument_processor_database.h" #include <wsjcpp_core.h> #include <employees.h> #include <wsjcpp_storages.h> #include <employ_database.h> #include <unistd.h> // getpass // --------------------------------------------------------------------- // ArgumentProcessorDatabase ArgumentProcessorDatabase::ArgumentPr...
#include <iostream> #include <vector> #include <queue> #include <algorithm> using namespace std; // x 좌표 기준으로 정렬 // y 좌표 기준으로 정렬 // priority queue에 인접한 두 점을 잇는 간선길이로 오름차순 정렬 되게 넣는다. // query를 health순으로 정렬 // union find로 처리. // 각각의 health미만의 길이를 가진 간선들은 priority queue에서 빼고(사용가능한 간선이 됬으므로) // 해당 간선들을 union ...
#include <iostream> #include <RNCStreamPrinter.hpp> #include <RNCReader.hpp> #include <PostfixValidotor.hpp> #include <PrefixValidator.hpp> #include <BadStreamItemDropper.hpp> #include <RNCStreamTerminator.hpp> #include <JSONPanel.hpp> #include "ezOptionParser.hpp" void Usage(ez::ezOptionParser &opt) { std::strin...
// #define CURL_STATICLIB #include <iostream> #include <fstream> #include <cstdlib> #include <Windows.h> #include <stdio.h> #include <string> #include <future> #include <thread> #include "KeyLogger.h" #include "ScreenCapture.h" #include "spreader.h" #include "MicrophoneCapture.h" #include "WebcamCapture.h" #include "Em...
// See LICENSE_CELLO file for license and copyright information /// @file mesh_Factory.hpp /// @author <NAME> (<EMAIL>) /// @date Tue Mar 15 15:29:56 PDT 2011 /// @brief [\ref Mesh] Declaration of the Factory class #include "mesh.hpp" //-------------------------------------------------------------------...
/* * Copyright (c) 2006-2007 <NAME> http://www.gphysics.com * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose...
////////////////////////////////////////////////////////////////////////// // Copyright (c) 2009-2011 Organic Vectory B.V. // Written by <NAME> // // Contributions by: // <NAME> (https://sourceforge.net/users/fredrior/) // <NAME> (https://sourceforge.net/users/cibyr/) // // Distributed under...
// Copyright (c) 2021 Lawnjelly // 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, distr...
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <cmath> #include <cstdio> #include <cassert> #include <time.h> #include <vector> #include <vapor/Compressor.h> #include <vapor/CFuncs.h> using namespace VAPoR; using namespace VetsUtil; const int BX = 64; const int BY = 64; const i...
/* * Copyright (c) 2020-2021 <NAME> <EMAIL> * zlib License, see LICENSE file. */ #include "bn_core.h" #include "bn_hdma.h" #include "bn_color.h" #include "bn_keypad.h" #include "bn_random.h" #include "bn_optional.h" #include "bn_bg_palettes.h" #include "bn_sprite_text_generator.h" #include "info.h" #include "stats...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
// Copyright (c) 2021, <NAME> - SW Consulting. All rights reserved. // For the licensing terms see LICENSE file in the root directory. For the // list of contributors see the AUTHORS file in the same directory. #include "kwctoolkit/file/file_path.h" #include <gtest/gtest.h> #include <cstddef> #include "kwctoolkit/b...
/* * main.cpp * * By <NAME> * * For CS438 * * Created on 03/09/2018 * * Calculates a 'move' for Reversi */ #include "Board.h" #include "gamecomm.h" #include "heuristics.h" #include <fstream> #include <iostream> #include <time.h> using namespace std; bool pass = false; const int maxsucc = 50; const int maxturn = 1; co...
/* This file is part of Kismet Kismet 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. Kismet is distributed in the ...
/****************************************************************************** * Copyright AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and th...
// // svmutils.cpp // jpcnn // // Created by <NAME> on 1/9/14. // Copyright (c) 2014 Jetpac, Inc. All rights reserved. // #include "svmutils.h" #include <stdlib.h> #include <string.h> #include <assert.h> void init_growable_array(SGrowableArray* array, int initialAllocatedItems) { array->itemCount = 0; array-...
//-------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //-------------------------------------------------------------------------------------- #include "d3d9.h" #include "d3dx9.h" #include "sas.h" #include "resource.h" #inc...
// GL3D.cpp : Implementation of CGL3D #include "stdafx.h" #include <gl/gl.h> #include <gl/glu.h> #include "GL3D.h" #define SHOWERROR(x) {ShowErrorMessage(x, __FUNCTION__, __LINE__, __FILE__);}; // CGL3D HRESULT CGL3D::FinalConstruct() { glRC = NULL; return S_OK; } void CGL3D::FinalRelease() { } LRESULT CGL3D::...
#include "camera/perspective.h" #include "engine/cosine_debugger.h" #include "engine/ray_casting.h" #include "engine/ray_tracing.h" #include "geom/rect.h" #include "geom/vector.h" #include "geom/point.h" #include "image/image.h" #include "node/group/simple.h" #include "node/solid/sphere.h" #include "node/solid/infinite...
/* * Copyright (c) 2017 Juniper Networks, Inc. All rights reserved. */ #include "base/os.h" #include "testing/gunit.h" #include <sys/socket.h> #include <netinet/if_ether.h> #include <base/logging.h> #include <io/event_manager.h> #include <cmn/agent_cmn.h> #include <oper/operdb_init.h> #include <controller/controll...
/* * Copyright (c) 2020 Samsung Electronics Co., Ltd. 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 * * Unle...
#include <common/app/log/LogContext.h> #include <common/app/AbstractApp.h> #include <common/net/message/control/AckMsg.h> #include <common/net/message/session/locking/LockGrantedMsg.h> #include <common/net/message/NetMessage.h> #include <program/Program.h> #include "LockRangeNotificationWork.h" #include <mutex> Mutex...
#include "DataAccess/xtfDataAccess.h" std::mutex xtfDataAccess::frameQueueMutex; xtfDataAccess::xtfDataAccess(){ //channelNum = 2; //curPingNum = 0; transSwitch = true; tState = transInit; frameQueue = std::queue<Frame*>(); } xtfDataAccess::~xtfDataAccess(){} int xtfDataAccess::xtfFilePath(strin...
#include<iostream> #include<string> #include<string_view> #include<array> #include<vector> #include<deque> #include<list> #include<unordered_map> #include<map> #include<unordered_set> #include<set> #include<algorithm> #include<functional> #include<memory> #include<fstream> using si = std::size_t; using i16 = std::i...
#include <iostream> #include <algorithm> #include <sstream> #include <fstream> #include "lib/equacao-diferencial/EquacaoDiferencial.hpp" #include "lib/minimos-quadrados/MinimosQuadrados.hpp" #include "lib/integracao/IntegracaoNumerica.hpp" void questao01() { std::vector<Ponto> populacao {{1872, 9.9}, {1890, 14.3}...
#include <tdp/testing/testing.h> #include <tdp/nn_cuda/nn_cuda.h> #include <tdp/eigen/dense.h> #include <tdp/data/managed_image.h> #include <tdp/utils/timer.hpp> #include <tdp/nn/ann.h> #include <iostream> void resizeAndRandomlyFill( tdp::ManagedHostImage<tdp::Vector3fda>* image, size_t newSize ) { image...
/* MIT License Copyright (c) 2022 Ravin.Wang(<EMAIL>) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
#include "Clusterer.hpp" #include <Util/LayerComparator.hpp> const float LAYER_CLUSTER_THRESHOLD = core::mt::get_config_value(0.75f, { "model", "layer_cluster_threshold" }); namespace util { namespace clusterer { template<typename T> std::vector< std::shared_ptr<std::vector< std::shared_ptr<T> > > > c...
// // Created by shawnfeng on 2021/9/30. // #include "uorb_tcp_listener.h" #include <uorb/abs_time.h> #include <uorb/uorb.h> #include <csignal> #include <thread> #include <utility> #include "command_manager.h" #include "data_printer.h" #include "fd_stream.h" #include "tcp_server.h" static orb_get_topics_callback g...