text
stringlengths
3.08k
12.5k
// // FFXSegment.cpp // // Copyright 2020 - <NAME> // <EMAIL> // #include "FFXSegment.h" #include "FFXController.h" bool FFXSegment::isPrimary() { return getTag()==PRIMARY_SEG_NAME; } FFXSegment::FFXSegment( String initTag, uint16_t initStartIdx, uint16_t initEndIdx, FFXBase* initEffect, CRGB *initFrame, FFXCo...
/*-------------------------------------------------------------------------------------*/ /* NOMAD - Nonlinear Optimization by Mesh Adaptive Direct search - version 3.7.1 */ /* */ /* Copyright (C) 2001-2015 <NAME> - the...
#include <ticket_translation.hpp> #include <fmt/printf.h> #include <range/v3/range/conversion.hpp> #include <range/v3/view/split.hpp> #include <range/v3/view/transform.hpp> #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <charconv> #include <iterator> #include <limits> #include <...
#include "UtilsMath.h" #include "UtilsCubemap.h" #include <glm/glm.hpp> #include <glm/ext.hpp> using glm::vec3; using glm::vec4; using glm::ivec2; vec3 faceCoordsToXYZ(int i, int j, int faceID, int faceSize) { const float A = 2.0f * float(i) / faceSize; const float B = 2.0f * float(j) / faceSize; if (faceID == ...
// Copyright (c) 2018 <NAME>. All rights reserved. // Includes #include "base_llurker.hxx" #include "entities/llumas/base_lluma.hxx" #include "entities/llurkers/ximois/ximois_llurker.hxx" #include "utils/path/path_utils.hxx" BaseLlurker::BaseLlurker(BaseGameScene& scene, ValueMap params, const string& tmx_layer) ...
/** @Ambipanningile * * @ingroup dspSpatLib * * @brieAmbipanning TODO * * @details TODO @n * * @authors <NAME>, <NAME>, <NAME> * * @copyright Copyright © 2011 by <NAME>, <NAME>, and <NAME> @n * This code is licensed under the terms oAmbipanning the "New BSD License" @n * http://creativecommons.org/licenses/...
// // PostcardPrinter.cpp // Recipe06_WorkingWithGallery // // C++ class implementation file // // Created by <NAME> on 3/12/15. // Copyright © 2015 <NAME> & <NAME>. All rights reserved. // #include "PostcardPrinter.hpp" #include "opencv2/imgproc/imgproc.hpp" using namespace std; using namespace cv; PostcardPr...
#include <iostream> #include <assert.h> /* assert */ #include "Figuras.h" /** * \brief Arquivo de testes. * * Atencao: este arquivo nao deve ser alterado! Sua alteracao (a fim de passar * pelos testes sem que o trabalhos seja efetivamente feito) pode inclusiver * levar a anulacao do trabalho entregue. */ v...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkParsePath.h" #include "Test.h" static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) { SkString str, str2; SkParsePath::ToSVGString(p...
#include "Hub.h" #include "HTTPSocket.h" #include <openssl/sha.h> static const int INFLATE_LESS_THAN_ROUGHLY = 16777216; namespace uWS { char *Hub::inflate(char *data, size_t &length) { dynamicInflationBuffer.clear(); inflationStream.next_in = (Bytef *) data; inflationStream.avail_in = length; int ...
#include <iostream> #include <string> #include <vector> #include <cstdlib> #include <ctime> using namespace std; // build a vector of strings with a elemental damage types // ask the player which damage type they would like to use by choosing a number // corresponding to the index of the vector // create a...
/* * Flow-Allocator common source * * <NAME> <<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 list of conditions...
#include "tcp_socket.h" #include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> #include <util/string_type.h> using namespace std; void TcpSocket::init_socket_lib() { #ifdef YBUTIL_WINDOWS static bool did_it = false; static WSAData wsaData; if (!did_it) { WORD versionRequested...
/* * mem.cpp * * <NAME> * 2020 * * Memory object and operations. */ /* Memory is Big-Endian Memory Layout ------------------------------------ 0xFFF . . Program/Data mem . 0x200 ------------------------------------ 0x1FF . . Sprites . 0x080 ------------------------------------ 0x07F . . ...
// NEW structs using unint = unsigned int; /// STRUCTS struct my_cov_rg { size_t nocpg=0, cpg=0; } ; struct alignment_data { alignment_data () { t_seq.reserve(100), t_posi.reserve(100), t_isop.reserve(100), t_qs.reserve(100), t_ref.reserve(100), t_positions.reserve(100); } unint strand, mapQ, n_nucleotid...
#include "CHd44780.hpp" #include <chrono> #include <thread> #include "../CRaspberryPi.hpp" #include "../CSystemTimer.hpp" CHd44780::CHd44780(CRaspberryPi& RaspberryPi, int RsGpioPin, int RwGpioPin, int EGpioPin, int Db0GpioPin, int Db1GpioPin, int Db2GpioPin, int Db3GpioPin, int Db4GpioPin, int Db5GpioPin, int Db6Gpi...
/* * Program Name: stronghold_highroll_calc.cpp * Program Description: C++ Program that generates best chances at blinding at a particular distance. * Date Started: Mar/10/2021 * Author: <NAME> * Author Link: https://github.com/KacperBazan */ /* * References: https://minecraft.gamepedia.com/Stronghold */ #inc...
/* * lights.cpp * * CREATE THE LIGHTS AS A BRANCH OF THE MAIN SCENE GRAPH. * LIGHTS ARE LINKED TO EACH OTHER WITH A LOCAL TRANSLATION to * SPACE THEM OUT AND POSITION THEM HIGH ABOVE THE FLOOR * * <NAME> 28/08/2006 */ // Headers #include "opensg_dep.h" #include "scene.h" #include "lights.h" LightPtr lightsL...
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
/* *Copyright 2002 *Center for Biological and Computational Learning at MIT and MIT *All rights reserved. *Permission to copy this software, and its documentation only for internal *research use in your organization is hereby granted, provided that this *notice is retained thereon and on all copies. A patent prot...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2018 Couchbase, 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 * * h...
/*ckwg +29 * Copyright 2017,2018 by Kitware, 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: * * * Redistributions of source code must retain the above copyright notice, * this list of co...
#include "cwssession.h" #include "../../core/csyslog.h" #include "../../core/ci/cjson.h" #include "../cmessage.h" #include "../ccredentials.h" #include "../cchannels.h" #include "../channels/cchannel.h" message_t cwssession::UnPack(data_t&& data) { try { if (auto msg{ msg::unserialize(data,subsId) }; msg) { auto...
// -*- coding: us-ascii-unix -*- // Copyright 2015 <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 applica...
/* * * Copyright 2020 Huawei Technologies Co., Ltd * * 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...
/******************************************************************************** * ReactPhysics3D physics library, http://www.reactphysics3d.com * * Copyright (c) 2010-2022 <NAME> * ********************************************************************************* *...
// N - 木: http://tdpc.contest.atcoder.jp/tasks/tdpc_tree // 木を根をiとする根付き木として見る。 // dp[j] := 頂点jを親とする木の作り方 // とすると、dp[j] = (\prod_k dp[k]) ((\sum_k size(k))! / \prod_k (size(k)!)) // となる。ここで、kはjの子、size(k)はkを親とする木のサイズである。 // [導出] //  jの子は、jの後であればどのような順番で選択しても良い。jの子をk、kを親とする木のサイズをsize(k)とすると、 //  (\prod_k dp[k]) はそれぞれの子がつく...
/* Copyright 2001, 2019 IBM Corporation * * 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 list of conditions and the * following d...
#include "globe.hpp" #include "stb_image.h" #include "stb_image_resize.h" #include <glm/vec2.hpp> #include <glm/vec3.hpp> #include <glm/mat4x4.hpp> #include <glm/gtc/matrix_transform.hpp> // 16 byte header + 1024x1024x3 image w/ 6x compression #define TEXTURE_SIZE_BYTES 16+1024*1024*3/6 Globe::Globe() { std::ti...
// main.cpp #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../../source/core/slang-secure-crt.h" #include "../../slang-com-helper.h" #include "../../source/core/slang-list.h" #include "../../source/core/slang-string.h" #include "../../source/core/slang-string-util.h" #include "../../source/core...
#include <iostream> #include "PxConfig.h" #include "PxPhysicsAPI.h" #define PVD_HOST "127.0.0.1" #define PX_RELEASE(x) if (x) {x->release(); x = NULL;} using namespace physx; PxDefaultAllocator gAllocator; PxDefaultErrorCallback gErrorCallback; PxFoundation *gFoundation = NULL; PxPhysics *gPhysics = NULL; PxDefau...
#include <iostream> #include <fstream> #include <sstream> #include <memory> #include "common.h" #include "Graph.h" //Strategies and decompositions #include "PermutationStrategy.h" #include "DegreePermutationStrategy.h" #include "FillInPermutationStrategy.h" #include "DegreeFillInPermutationStrategy.h" #include "MCSPe...
/* * The MIT License * * Copyright (c) 1997-2020 The University of Utah * * 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...
#include "market.h" // Constructors: Market::Market() { #ifdef _WIN32 std::string file_path = "..\\..\\..\\assets\\available_investments.csv"; #else std::string file_path = "../assets/available_investments.csv"; #endif csv_parser_t csv_parser(file_path); while (!csv_parser.empty()) { std:...
/**************************************************************************/ /* */ /* WWIV Version 5.x */ /* Copyright (C)1998-2017, WWIV Software Services */ /* ...
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/files/file.h" #include "base/files/file_enumerator.h" #include "base/files/file_path.h" #include "base/files/file_util.h" #include "bas...
/** Copyright (c) 2017 <NAME> You may use, distribute, or modify this code under the terms of the MIT license. */ /** unpackEulerArray node This node outputs arrays of the angles that make up euler rotation values. inputRotate (ir) eulerArray Array of euler rotation values. outputRotate (or) ...
#include <queue> #include <cstdio> #include <cstring> #define MAXN 100010//N is the number of point. #define MAXM 100010//M is the number of edge. #define MAXP 500//P is the number of point when using Floyed algorithm. //The kth shortest path has a more effective algorithm.You can refer to the blog http://blog.csdn.net...
#include <iostream> #include <ctime> using namespace std; #include "sudoku.hpp" void command(string input); void setup(); void play(); int prompt(string prompt, string error, int min, int max); bool isNumber(string n); bool tutorial[] = { true, // hints for cells that can't be changed true, // hints for erasing ce...
#include "gameState.hpp" #include <algorithm> #include <cassert> GameState::Hasher GameState::hasher; GameState::GameState() : p1(0), p2(0), xorHash(0), player(PLAYER_MAX), depth(0), emptyPos() { } GameState::GameState(uint64 p1_, uint64 p2_, Player player_, Depth depth_) : p1(p1_ & Bitboard::zeroBarrier), p2(...
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2013 Pelican Mapping * http://osgearth.org * * osgEarth is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundat...
/* * This is a mpi version of bellman_ford algorithm * Compile: mpic++ -std=c++11 -o mpi_bellman_ford mpi_bellman_ford.cpp * Run: mpiexec -n <number of processes> ./mpi_bellman_ford <input file>, you will find the output file 'output.txt' * */ #include <string> #include <cassert> #include <iostream> #include <fstr...
// https://dmoj.ca/problem/lazy #include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define gc getchar() #define pc(x) putchar(x) template<typename T> void scan(T &x){x = 0;bool _=0;T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=(x<<3)+(x<<1)+(c&15);x=_?-x:x;} temp...
#include <charconv> #include "farmhash.h" #include "string_utils.h" #include "string_to_vector.hpp" #include "string_tensor.h" StringToVectorImpl::StringToVectorImpl(std::string& map, std::string& unk) { ParseMappingTable(map); ParseUnkownValue(unk); } std::vector<std::vector<int64_t>> StringToVectorImpl::Comput...
// // asm.cpp // EdgeTracker // // Created by <NAME> on 03/09/2018. // Copyright © 2018 <NAME>. All rights reserved. // #include "asm.hpp" // * * * * * * * * * * * * * * * // Whisker // * * * * * * * * * * * * * * * Point Whisker::closestEdgePoint(Mat edges, int maxDist) { // Edges: the result of using...
// // Created by root on 11/29/18. // #include <iostream> #include "handy/handy.h" #include <fcntl.h> using namespace handy; using namespace std; /* * server side: Test tcp send buf full. * */ void test_full_sock_buf(){ // string ip = "172.25.53.26"; string ip = "127.0.0.1"; uint16_t port = 8888; I...
/****************************************************************************** * This is modeled after a test program created by <NAME> from the ITER Organization ******************************************************************************/ #include <iostream> #include <epicsGetopt.h> #include <pv/pvData.h> #includ...
#include "Map.hpp" Map::Map() { mVertices.setPrimitiveType(sf::Lines); } void Map::loadFromJson(std::string fname) { using nlohmann::json; //open the file std::ifstream file(fname); if (!file) { throw std::runtime_error("Invalid json file " + fname); } //Create the json object json data; file >> data; ...
#include <windows.h> #include <iostream> //----------------------------------------------------------------------------------------- using namespace std; //----------------------------------------------------------------------------------------- const int BMP_SIZE = 800, NORTH = 1, EAST = 2, SOUTH = 4, WEST = 8, LEN ...
#include <iostream> #include <iomanip> #include <string> #include <pcrecpp.h> #include "net/net.h" extern "C" { #include <arpa/inet.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/tcp.h> #include <netinet/if_ether.h> } static inline std::string ipv4addressToString(const void * src) { char ip[I...
// // // File author(s): <<NAME> and <NAME>>, (C) 2014 // // Copyright: this software is licenced under the terms stipulated in the license.txt file located in its root directory // // /*!\file solverEx-cpu.cpp \brief The Explicit cpu solver of Neurite */ #include "coupling.h" #include "solverEx-cpu.h" #include "di...
// Copyright (c) 2013-2020 <NAME> // License: Academic Free License ("AFL") v. 3.0 // AFL License page: https://opensource.org/licenses/AFL-3.0 #pragma once #include "SSVOpenHexagon/Global/Version.hpp" #include "SSVOpenHexagon/Core/Joystick.hpp" #include "SSVOpenHexagon/Utils/Casts.hpp" #include <vector> #include <s...
/*------------------------------------------------------------------------------ Copyright © 2015 by <NAME> H-BF is provided under the terms of The MIT License (MIT): Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to d...
/** * @author : <NAME> (<EMAIL>) * @file : main * @created : quinta out 22, 2020 21:11:06 -03 */ #include <iostream> #include <vector> using namespace std; template <typename T> class Tree; template <typename T> class Node { private: Node<T>* father; Node<T>* left; Node<T>* right; T value...
#include <stdio.h> #include <stdlib.h> #include "render.h" #include "RenderTabs.h" #include "sam.h" // CREATE TRANSITIONS // // Linear transitions are now created to smoothly connect each // phoeneme. This transition is spread between the ending frames // of the old phoneme (outBlendLength), and the beginning frames ...
/* Copyright 2011 <copyright holder> <email> Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law...
/* Smooth - A C++ framework for embedded programming on top of Espressif's ESP-IDF Copyright 2019 <NAME> (https://gitbub.com/PerMalmberg) 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://...
#include "TpetraUtil.hpp" #include <limits> void dumpTCMAT(const Teuchos::RCP<const TCMAT> &A, std::string filename) { filename = filename + std::string("_TCMAT.mtx"); if (A->getComm()->getRank() == 0) { std::cout << "dumping " << filename << std::endl; } Tpetra::MatrixMarket::Writer<TCMAT> m...
#include <ntifs.h> #include <stdint.h> #include "common.h" #include "heap.h" #include "magic.h" #include "peimage.h" #define HIWORD(dw) static_cast<uint16_t>(static_cast<uint32_t>(dw) >> 16) #define LOWORD(dw) static_cast<uint16_t>(static_cast<uint32_t>(dw) & 0xffff) enum SYSTEM_INFORMATION_CLASS { SystemModuleInf...
/* Copyright 2014 Google 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 in writing,...
/* Software SPAMS v2.1 - Copyright 2009-2011 <NAME> * * This file is part of SPAMS. * * SPAMS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any...
#include "keycombo.h" #include <X11/Xlib.h> #include <algorithm> #include <sstream> // IWYU pragma: keep #include <stdexcept> #include "completion.h" #include "globals.h" #include "xkeygrabber.h" using std::function; using std::string; using std::vector; const vector<KeyCombo::ModifierNameAndMask> ModifierCombo::mo...
#pragma comment(lib, "d3dcompiler.lib") #include "ColorShader.h" #include <fstream> #include <d3dcompiler.h> ColorShader::ColorShader() : m_VertexShader(nullptr), m_PixelShader(nullptr) , m_InputLayout(nullptr), m_MatrixBuffer(nullptr) { } ColorShader::~ColorShader() { ReleaseCOM(m_MatrixBuffer); ...
#include <iostream> #include <boost/tokenizer.hpp> #include <boost/filesystem.hpp> #include <boost/foreach.hpp> #include <TFile.h> #include <TH1.h> #include <TH1D.h> #include <TH2D.h> #include <TH3D.h> #include <a4/application.h> #include <a4/histogram.h> #include <a4/cutflow.h> #include <a4/results_processor.h> us...
//////////////////////////////////////////////////////////////////////// // Include Files //////////////////////////////////////////////////////////////////////// #include "vocFeature.h" using namespace std; //////////////////////////////////////////////////////////////////////// // VOCFeature Constructors /////////...
// // Created by <NAME> on 2020/9/15. // #include <cstdio> #include "lfs.h" #include "lfs_util.h" #define LFS_RAMBD_TRACE(fmt, ...) \ printf("%s:%d:trace: " fmt "\n", __FUNCTION__ , __LINE__, __VA_ARGS__) // variables used by the filesystem lfs_t lfs; lfs_file_t file; uint8_t _file_Buff[4][1024]; int user_prov...
#include "apps/model_prediction/run_predictions.h" #include "libs/model_prediction/prediction_flow.h" #include "libs/system/exceptions.h" #include "logging.h" #include <algorithm> #include <iterator> #include <fstream> namespace { constexpr struct verify_source {} src_ver = verify_source{}; constexpr struct verify_...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
#include "Fire.h" //From https://github.com/andreban/pico-fire //Copyright (c) Andreban, Feb 21 void Fire::init(PicoDisplay &pico_display) { pallete[0] = pico_display.create_pen(0x07, 0x07, 0x07); pallete[1] = pico_display.create_pen(0x1f, 0x07, 0x07); pallete[2] = pico_display.create_pen(0x2f, 0x0f, 0x07...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <time.h> #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <map> #include <algorithm> #include <sys/time.h> #include <string> #include "utils.h" using namespace std; //////////MISC FUNTIONS////////// double rect_...
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\ | Phycas: Python software for phylogenetic analysis | | Copyright (C) 2006 <NAME>, <NAME> and <NAME> | | | | This program is free so...
#include <stdio.h> #include "../Common/Graphics.h" #include "../Common/CellGrid2D.h" #include "../Common/SelectionSet.h" #include "../Common/Random.h" #include "../Common/Timer.h" #include "../Common/Input.h" #include "../Common/CmdArgs.h" const char EARTH = 'e'; const char AIR = 'a'; const char COAL = 'c...
/* ISC License Copyright (c) 2016-2018, Autonomous Vehicle Systems Lab, University of Colorado at Boulder 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 this permission notice appear in all copie...
#include <malloc.h> #include <string.h> #include "texheap.h" void TexHeap::Create(int page_cap_x, int page_cap_y, int numtex, const TexDesc* texdesc, int page_user_bytes) { allocs = 0; cap_x = page_cap_x; cap_y = page_cap_y; user = page_user_bytes; head = 0; tail = 0; // item_w = alloc_w; // item_h = alloc_h...
#include "Callclient.h" #include "cems_net.h" #define CEMS_CLIENT_UDP 22116 #define BUFFER_SIZE 1024*5 //#define MAX_UDP_CODE 0x10100 //#define MIN_UDP_CODE 0x4 using namespace std; MCallClient::MCallClient(void) { } MCallClient::~MCallClient(void) { } std::string MCallClient::Read(std::string szKey) { ...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the above copyright ...
#include "searchhistorylistdelegate.h" #include "logic/database/sqluserhistoryutils.h" #include "logic/settings/settingsutils.h" #include "logic/utils/utils.h" #include "logic/utils/utils_qt.h" #include <QGuiApplication> #include <QTextLayout> #include <QVariant> #include <string> #include <utility> SearchHistoryLi...
/* scp, The sequential clique percolation algorithm. Copyright (C) 2011 Aalto University This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any late...
/* * MovieData.cpp * lala * * Created by <NAME> on Wed Mar 10 2004. * Copyright (c) 2004 __MyCompanyName__. All rights reserved. * */ #include <osg/GL> #include <osg/Endian> #include <osg/Image> #include <osgDB/FileNameUtils> #include "MovieData.h" #include "QTUtils.h" MovieData::MovieData() : _poin...
#include <iostream> #include <vector> #if defined(_MSC_VER) # include <windows.h> #endif // #ifdef EMSCRIPTEN # include <emscripten/emscripten.h> # define GLFW_INCLUDE_ES3 # define GL_GLEXT_PROTOTYPES # define EGL_EGLEXT_PROTOTYPES #else #include <glad/glad.h> #endif #include <GLFW/glfw3.h> #include "imgui.h" #in...
/** c */ #include <stdio.h> #include <stdlib.h> #include <string.h> /** system */ #include <arpa/inet.h> #include <fcntl.h> #include <sys/epoll.h> #include <sys/socket.h> #include <sys/timerfd.h> #include <sys/types.h> #include <unistd.h> //#include <pthread.h> /** c++ */ #include <map> #include <mutex> #include <t...
#include "precomp.hpp" //data from https://en.wikipedia.org/wiki/Standard_illuminant namespace { vector<double> illuminants_xy_A_2 = { 0.44757, 0.40745 }; vector<double> illuminants_xy_A_10 = { 0.45117, 0.40594 }; vector<double> illuminants_xy_D50_2 = { 0.34567, 0.35850 }; vector<double> illuminants_x...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ // // Sandesh BackupFile Decode Test // #include "base/time_util.h" #include <cmn/agent_cmn.h> #include <cfg/cfg_init.h> #include "testing/gunit.h" #include <cmn/agent.h> #include "base/logging.h" #include "base/util.h" #include <test/test_cmn_u...
#include "stdafx.h" #include "PointsMesh.h" #include "LevelMesh.h" #include "../game/GameMap.h" #include "../game/GameColors.h" #include <dingus/resource/MeshCreator.h> #include <dingus/utils/Random.h> #include <dingus/gfx/Vertices.h> // ----------------------------------------------------------------------...
#include <ros/ros.h> #include <string> #include <sensor_msgs/Range.h> #include <std_msgs/Bool.h> #include <std_msgs/UInt32.h> #include <geometry_msgs/Vector3.h> // Header files for the services used #include <gripper_pkg/stepService.h> #include <gripper_pkg/servoService.h> // Header fiiles for the actions used #inclu...
#include <cstdio> #include <iostream> #include <cuda_runtime.h> #include <cutensor.h> const bool debug = false; static inline void check(const cutensorStatus_t s, const char * info = "") { if ( s != CUTENSOR_STATUS_SUCCESS ) { std::cerr << "Error: " << cutensorGetErrorString(s) << " (" << info << ")" << ...
/****************************************************************************\ * Byte-code generator part of formula compiler (based on BNFLite) * * Copyright (c) 2017 <NAME> <<EMAIL>> * * * * Permission to use, copy, modi...
// //////////////////////////////////////////////////////// // # Title // Connectedness of a network // // # URL // https://projecteuler.net/problem=186 // http://euler.stephan-brumme.com/186/ // // # Problem // Here are the records from a busy telephone system with one million users: // // || 5 || 5 || 5 ...
// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC") // // 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 <config.h> #include <dhcpsrv/cfg_consiste...
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL-B license under * French law and abiding by the rules of distribution of free soft...
#include <stdio.h> #include <string.h> #include "vectorclass.h" #include "simd_defs.h" #include "../../src/LDPCDec/dec_struct_LDPC.h" #define ENC_CLASS Vec4uq #include "../../src/LDPCEnc/enc_struct_LDPC.h" #if ( SIMD_PAR <= 8 ) #define DB_TYPE uint8_t #elif ( SIMD_PAR == 16 ) #define DB_TYPE uint16_t #elif ( SIMD...
/* The MIT License (MIT) Copyright (c) 2013 <NAME>, <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, cop...
/* The copyright in this software is being made available under the BSD * License, included below. This software may be subject to other third party * and contributor rights, including patent rights, and no such rights are * granted under this license. * * Copyright (c) 2010-2017, ISO/IEC * All rights reser...
/* * Copyright(c) 2016-2017 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merg...
#include <string.h> #include <stdexcept> #include "Base64.h" using namespace Framework; static const uint8 g_encodeLookupTable[64] = { 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x61, 0x62, 0x63...
#include <fstream> #include <boost/ref.hpp> #include <boost/python.hpp> #include <boost/python/make_constructor.hpp> #include <boost/python/raw_function.hpp> #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include <numpy/ndarrayobject.h> #include "picpac.h" #include "picpac-cv.h" using namespace boost::python; using...
// // main.cpp // #include "rpc.h" #include "rpc.pb.h" // Google Protocol Buffers generated header #include <unistd.h> #include <signal.h> class RpcServer : public CRpcServer { public: RpcServer() = default; ~RpcServer() = default; private: bool mIsChildProcess = false; virtual bool OnConnection(int...
/************************************************************************/ /* */ /* Centre for Speech Technology Research */ /* University of Edinburgh, UK */ /* ...
#include <SFML/Graphics.hpp> #include <cmath> #include <random> #include <sstream> #include <iostream> #include <chrono> typedef float fp32_t; #define PI 3.14159265 #define DEG2RAD(x) ((x + 90)*PI/180) #define WINDOW_WIDTH 1200 #define WINDOW_HEIGHT 1200 #define CENTER sf::Vector2f{WINDOW_WIDTH / 2, WINDOW_HEIGHT / 2...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #include <iostream> #include <wil/result.h> #include <wil/cppwinrt.h> #include <winrt/Windows.ApplicationModel.Background.h> #include <winrt/Windows.Found...