text
stringlengths
3.08k
12.5k
/*! * \file test/test_probability.cpp * \ingroup unit_tests_two_dimensional_distribution * * \brief The definition of unit tests for the probability functions in the * \ref two_dimensional_distribution_probability module. */ #include "test_probability.h" #include "test_common.h" #include "../erro...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <algorithm> #include <vector> using namespace std; #define CUDA_CHECK(cmd) {\ cudaError_t err = cmd; \ if(err != cudaSuccess) fprintf(stderr, "Error in %s (%d) - Name: %s - String: %s\n", __FILE__, __LINE__, cudaGetErrorName(err), cudaGetErrorStri...
#include "AudioFile.h" #include "RtAudio.h" #include <iostream> #include <cstdlib> #include <cmath> const std::string path = "C:/Windows/Media/"; RtAudio::StreamOptions options; size_t bufferFrames = 512; size_t fs = 24000; float master_vol = 3.0f; struct msg { int c; int e; float v; std::string s; }; enum Eve...
// Nome: xmlout.h // Descrizione: stampa in XML dell'albero // Autore: <NAME> // Progetto: CPP/Base #include <iostream.h> #include <strstrea.h> #include "node.h" char * tagNode [] = { "DECL", // dichiarazione, binary: sx = declspec, dx = lista dirdecl "ARGDECL", // dichiarazione di argomento di funzione...
#include <cmath> #include <cstdio> #include <iostream> #include "AMReX.H" #include "AMReX_Print.H" #include "AMReX_ParmParse.H" #include "AMReX_EBIndexSpace.H" #include "AMReX_EBISLayout.H" #include "AMReX_ParmParse.H" #include "AMReX_GeometryShop.H" #include "AMReX_VoFIterator.H" #include "AMReX_PlaneIF.H" #include...
#include "JsonPath.h" #include <cstring> #include <json-c/json.h> #include <string> #include <iostream> #include <queue> #include <cstdio> struct JsonPath::Pimpl { std::string currentValue; json_object* m_pJobj; //base json file json_object* m_pJCurrentObj; //current json object being interogated Pimp...
/*********************** * author: banbao * * language: c++/c * ***********************/ // link : http://poj.org/problem?id=2376 /* * bbq: 选择最少的区间覆盖[1,T] * 贪心算法, 优先选择开始时间早,结束时间晚的奶牛 * 注意 : 区间不是端点表示"时间段"而不是"时刻" * 注意 i 的回溯 */ /* library */ #include <stdio.h> #include <cstdio> #include <...
// Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License, version 2.0, as // published by the Free Software Foundation. // // This program is also distributed with ce...
// Fill out your copyright notice in the Description page of Project Settings. #include "PawnBase.h" #include "Components/CapsuleComponent.h" #include "ProjectileBase.h" #include "ReturnoftheGorm/ReturnoftheGormGameMode.h" #include "Kismet/GameplayStatics.h" #include "TimerManager.h" #include "Math/Rotator.h" #includ...
#include "pch.h" #include "AssimpFile.h" #include "..\MYENG_LIB\StringLib.h" #include "..\MYENG_LIB\FileCtrlLib.h" #include "..\MYENG_BASE\DocBase.h" #include "..\MYENG_DB\Package.h" #include "..\MYENG_DB\ModuleNode.h" #include "..\MYENG_DB\ModuleElem.h" #include "..\MYENG_DB\ModuleMesh.h" #include <assimp/Importer....
#include "trenchcoat.h" #include "exceptions.h" #include <tuple> #include <algorithm> #include <iostream> #include <sstream> static std::string stringGetUpper(const std::string& string) { auto copy(string); std::transform(copy.begin(), copy.end(), copy.begin(), ::toupper); return copy; } Trenchcoat::Tr...
#include <iostream> #include <map.h> #include <vector> #include <math.h> using namespace std; Map::Map(int m, int n, float i, float x_start, float y_start) { grid_row = m; grid_col = n; grid_inter = i; grid_map = vector<vector<int> > (m, vector<int>(n,0)); x_index_val = build_index_val(x_start, n, ...
/** * ODE solver - JMU REU 2021 * * @author <NAME> */ // standard headers #include <cstdlib> #include <iostream> #include <iomanip> #include <fstream> #include <sstream> #include <string> #include <cmath> #include <functional> using namespace std; // Boost ODEint headers (individual files compile faster than the ...
// Copyright 2018 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 "tools/gn/ninja_target_command_util.h" #include <string.h> #include "tools/gn/c_tool.h" #include "tools/gn/substitution_writer.h" namespace { ...
#include "Surface.h" #include "Vec.h" #ifndef _MSC_VER #include <SDL2/SDL_opengl.h> #include <SDL2/SDL.h> #else #include <cstdio> #include <SDL_opengl.h> #include <SDL.h> #endif #include <cmath> #include "InputHandler.h" float range(float min, float num, float max) { if(num > max) { return max; } if(num < min) {...
#include "DXSParser.h" #include "Canvas\Elements\TextElement.h" #include "Canvas\Elements\ImageElement.h" #include "Canvas\Elements\ButtonElement.h" #include "Canvas\Elements\DivElement.h" #include <assert.h> #include <filesystem> #include <fstream> #include <sstream> DXMUI::DXSParser::DXSParser() { myStyleTypeMap["C...
#include "io/rest.hh" #include "utils.hh" #include <ctime> #include <iostream> io::RestClient::RestClient(io::Service &loop) : service(loop) { client = nullptr; _connect(); parser.onHeader([this](std::string &key, std::string &value) { std::transform(key.begin(), key.end(), key.begin(), ::tolower); if (k...
/* * Copyright (C) 2011-2013 Team XBMC * http://xbmc.org * * 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, or (at your option) * any later version. * * ...
#include <iostream> #include <fstream> #include <getopt.h> #include "galpy_interface.h" #include "../src/io.hpp" struct Particle{ double mass; double pos[3]; double vel[3]; double acc[3]; double pot; void readAscii(FILE* fp) { int rcount=fscanf(fp, "%lf %lf %lf %lf %lf %lf %lf", ...
#include "snake.h" string GetLine() { string result; //cout << "Please, enter a real number: "; getline(cin, result); return result; } void OpenUserFile(ifstream& input) { while(true) { cout << "Enter filename: "; string filename = GetLine(); input.open(filename.c_str()); ...
// // Created by tobias on 6/7/15. // #include "Jumps.h" #include "RoutineGenerator.h" #include "exceptions.h" #include <iostream> #include <plog/Log.h> using namespace std; void Jumps::newJump(string toLabel) { jumpToBranch[routineOpcodes->size()] = toLabel; } void Jumps::newLabel(string label) { branches[...
#include "connect_4.hpp" #include <chrono> #include <iostream> #include <thread> #include "board.hpp" enum class Player { Red, Yellow, }; std::optional<CellIndex> hovered_cell(const glm::vec2 position, const BoardSize size) { CellIndex index; position_to_cell_index(position, index, size); if (inde...
#undef __USE_SDL2_VIDEO__ // This example doesn't work just yet. //FFMPEG extern "C" { #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #define INPUT_BUFER_SIZE 4096 } #include <stdlib.h> #include <string.h> #include <signal.h> #include <thread> #include <unistd.h> #include "NetworkDisplay.h" #inclu...
/* main.cpp Multithreaded work queue based example server in C++. ------------------------------------------ Copyright (c) 2013 <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 ...
#include "WSPRLog.hxx" #include "SolarTime.hxx" #include <boost/format.hpp> #include <boost/program_options.hpp> #include <string> #include <iostream> #include <fstream> #include <list> #include <math.h> #include <set> // accumulate number of reports per callsign -- this is // useful in identifying stations that may h...
// Copyright 2019 Google LLC & <NAME> // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
#include "AutomataMod.hpp" #include <cstdint> #include <cstring> #include <string> #include <thread> #include "Log.hpp" #include "Util.hpp" namespace { // Addresses are offsets in bytes relevant to processRamStart const uint64_t CURRENT_PHASE_ADDR = 0xF64B10; const uint64_t IS_WORLD_LOADED_ADDR = 0xF6E240; const uin...
#include "pages/Pages.h" void paramChars(AsyncWebServerRequest *request, char *dest, const char *paramName, const char *defaultValue) { const char *value = defaultValue; if (request->hasParam(paramName, true)) { AsyncWebParameter *p = request->getParam(paramName, true); value = p->value(...
/* Compute ssd_image of image wrt mask * * * */ #include <mex.h> #include <stdlib.h> #include <math.h> #include <memory.h> #define for if(0);else for static void nssd_dispatch(double const* I, int w, int h, double const* M, int mw, int mh, int method, double* out); static double compare(double* a, double c...
/************************************************************************* > File Name: main.cpp > Author: ziqiang > Mail: <EMAIL> > Created Time: 2018年05月14日 星期一 11时03分54秒 ************************************************************************/ #include <iostream> //#include <memory> #include "Container.h" #in...
/* Copyright (C) 1999-2006 Id Software, Inc. and contributors. For a list of contributors, see the accompanying CONTRIBUTORS file. This file is part of GtkRadiant. GtkRadiant is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
/*++ Copyright (c) 1995-97 Microsoft Corporation Module Name: Tm.cpp Abstract: Transport Manager general functions Author: <NAME> (urih) 16-Feb-2000 Environment: Platform-independent --*/ #include <libpch.h> #include <wininet.h> #include <mqwin64a.h> #include <mqexception.h>...
#include "qtrasklogger.h" #include <QMutexLocker> #include <QJsonDocument> #include <QJsonArray> #include <QDebug> QtRaskLogger *QtRaskLogger::m_instance = nullptr; QtRaskLogger *QtRaskLogger::getInstance(const QString &configFile) { static QMutex mutex; QMutexLocker locker(&mutex); if (m_instance == n...
#include <gtest/gtest.h> #include "GTSL/File.h" #include "GTSL/LUT.hpp" #include "GTSL/JSON.hpp" #include "GTSL/Vector.hpp" TEST(LUT, Valid) { GTSL::File lutFile; lutFile.Open(u8"../../../test/Kodak Ektachrome 64.cube", GTSL::File::READ, false); GTSL::Buffer<GTSL::DefaultAllocatorReference> buffer; lutFile.Read(b...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2010-2014 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: module for gathering performance stats for upload so that we can // monitor performance regressions and improvements // //=====================================================================================// #include "cbas...
#include "soft_nms.h" namespace { template <typename T> void ml_soft_nms_cpu_kernel( int& ndets, T* dets, T* areas, T* scores, int64_t* labels, int64_t* inds, const float threshold, const int method, const float sigma, const float min_score, const int topk) { T* x1 = dets...
/** * Tencent is pleased to support the open source community by making Tars * available. * * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this * file except in compliance with the License. You may obtain ...
//////////////////////////////////////////////////////////////////////////////// // GUIButton.cpp // Furiosity // // Created by <NAME> on 9/27/13. // Copyright (c) 2013 Furious Pixels. All rights reserved. //////////////////////////////////////////////////////////////////////////////// #include "GUIButton.h" // L...
// Optimise #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; // #define MULTI_TEST #ifdef LOCAL #define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__); #define pc(...) PC(#__VA_ARGS__, __VA_ARGS__); template <typename T, type...
// user.cpp #define MAXR 99 #define MAXC 26 enum { NULL, NUM, ADD, SUB, MUL, DIV, MAX, MIN, SUM, }; struct Exp { bool solved; int type; int p1[2]; int p2[2]; } exp[MAXR + 1][MAXC + 1]; int ans[MAXR + 1][MAXC + 1]; int RR, CC; int max(int a, int b) { return a > ...
/* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-20 <NAME> CppAD is distributed under the terms of the Eclipse Public License Version 2.0. This Source Code may also be made available under the following Secondary Lice...
#include<bits/stdc++.h> #include<armadillo> using namespace std; // COMMAND TO COMPILE FILE // g++ arm.cpp -o arm -O1 -larmadillo // RUN COMMAND // ./arm template<typename T> void get_object_type(T object){ cout<<typeid(T).name()<<endl; } arma::Mat<double> read_csv(string filename, bool skip = true){ vector< v...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #define MAXP 165000000 typedef long long ll; typedef unsigned long long ull; typedef unsigned int uint; char sieve[MAXP]; int prime[10640000]; int primes; void createsieve() { int i,j,q; memset(sieve,1,sizeof(sieve)); q=...
#include <afx.h> #pragma hdrstop /* ** Author: <NAME> ** Internet: <EMAIL> ** ** Copyright, 1998-2003, <NAME> ** ** "You can get credit for something or get it done, but not both." ** Dr. <NAME> ** ** BSD License follows. ** ** Redistribution and use in source and binary forms, with or without ** modification, are per...
/** @file @brief Implementation @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, 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 ...
#include "visualcontext.hpp" #include <stdio.h> #include <iostream> #include <stdio.h> #include <fstream> #include <limits.h> #include "gldebug.hpp" GLfloat VisualContext::view_angle = 45.0f; int VisualContext::width = 800; int VisualContext::height= 600; GLfloat VisualContext::aspect_ratio = 4.0f/3.0f; GLfloat Visual...
#include "format.h" const string Format::id = "fmt "; Format::Format() { m_audioFormat = 1; m_numChannels = 2; m_sampleRate = 44100; m_byteRate = 176400; m_blockAlign = 4; m_bitsperSample = 16; } Data * Format::encode() const { const int ID_LENGTH = 4; const int SIZE_LENGTH = 4; const int HEADER_LENGTH = ID...
#include "libretro/libretro.h" #include "game_base.h" std::unique_ptr<GameBase> s_game; static const unsigned FRAMEBUFFER_WIDTH = 320; static const unsigned FRAMEBUFFER_HEIGHT = 240; // Callbacks static retro_log_printf_t log_cb; static retro_video_refresh_t video_cb; static retro_input_poll_t input_poll_cb; static ...
#include <obs-module.h> #include <util/platform.h> #include <memory> #include <algorithm> #include "mf-encoder-descriptor.hpp" using namespace MF; template<class T> class ComHeapPtr { protected: T *ptr; inline void Kill() { if (ptr) CoTaskMemFree(ptr); } inline void Replace(T *p) { if (ptr != p) { ...
// Distributed under the BSD 2-Clause License - Copyright 2012-2021 <NAME> #include <aeon/common/tribool.h> #include <gtest/gtest.h> using namespace aeon; TEST(test_tribool, test_tribool_default_false) { EXPECT_FALSE(common::tribool{}); } TEST(test_tribool, test_tribool_boolean_constructor) { EXPECT_TRUE(co...
#include "AlarmEffect.h" #include "Main.h" #include "RGBControl.h" #include "BoardConfig.h" CAlarmEffect::CAlarmEffect() { activationTime = 0; activationMillis = 0; songID = 0; folderID = 0; maxLightLength = 0; maxSongLength = 0; effectType = CScheduleItem::EF_NONE; } CAlarmEffect::~CAlarmEffect() { } void C...
// Copyright (c) 2010 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // 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 op...
#include <QPainter> #include <QVector2D> #include "wire_system/point.h" #include "wire_system/line.h" #include "../utils.h" #include "wireroundedcorners.h" const qreal BOUNDING_RECT_PADDING = 6.0; const qreal HANDLE_SIZE = 3.0; const qreal WIRE_SHAPE_PADDING = 10; const int LINE_WIDTH = 2; co...
/**************************************************************************** * * Copyright (c) 2019 PX4 Development Team. 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. Redistri...
/* * Copyright (c) 2015, 2016, <NAME> * * 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 copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
#include "Executor.h" #include "utils/ConstantsManager.h" #include "DLV2libs/input/InputDirector.h" #include "parsing/AspCore2InstanceBuilder.h" extern "C" Executor* create_object() { return new Executor; } extern "C" void destroy_object( Executor* object ) { delete object; } Executor::~Executor() {} Execu...
/* * Copyright (c) 2020, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
#include "OBJLoader.h" #include "Core/Array.h" #include "Core/Parser.h" #include "Core/String.h" #include "Math/Vector2.h" #include "Math/Vector3.h" static float parse_float(Parser & parser) { parser.skip_whitespace(); return parser.parse_float(); } static int parse_int(Parser & parser) { parser.skip_whitespace(...
#include "StdAfx.h" #include "rtftitles.h" #include "FormattedTextDraw.h" CRTFTitles::CRTFTitles(void) { } CRTFTitles::~CRTFTitles(void) { } void CRTFTitles::ApplyStyleToRTFTitles(CStyleTemplate *pStyle, RenderType rt) { int nEnd = (rt == -1) ? NUM_RENDER_TYPES : rt + 1; for (int i = rt == -1 ? 0 : ...
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE ...
/* ** ** $Filename: TestWood.cc $ ** $Release: Dortmund 2004 $ ** $Revision$ ** $Date$ ** $Author$ ** $Developer: <NAME> $ ** ** Blizzard III - Displaying Wood ** ** (C) Copyright 2004 <NAME> ** All Rights Reserved ** ** */ /************************************************************************* ** ...
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, 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 // //===---------------------------...
/* * Lua Player for PSP * ------------------------------------------------------------------------ * Licensed under the BSD license, see LICENSE for details. * * Copyright (c) 2005 <NAME> <<EMAIL>> (aka Shine) * * Credits: * many thanks to the authors of the PSPSDK from http://forums.ps2dev.org * and to th...
// Not PJs code, but very useful and used everywhere */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "vtr_util.h" #include "vtr_memory.h" #include "string_cache.h" unsigned long string_hash(STRING_CACHE* sc, const char* string); void generate_sc_hash(STRING_CACHE* sc); unsigned long...
//----------------------------------*-C++-*-----------------------------------// /** * @file test_ProductQuadratures.cc * @brief Test of GaussLegendre class * @note Copyright (C) <NAME> 2012-2013 */ //----------------------------------------------------------------------------// // LIST OF TEST FUNCTIONS #def...
/* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #include "config/stm32plus.h" #include "config/net.h" #include "config/timing.h" #include "config/usart.h" using namespace stm32plus; using ...
#include <assert.h> #include <iostream> #include "gd.h" #include "vw.h" #include "reductions.h" using namespace std; using namespace LEARNER; namespace SVRG { #define W_INNER 0 // working "inner-loop" weights, updated per example #define W_STABLE 1 // stable weights, updated per stage #define W_STABLE...
// // Created by jeff on 18-6-5. // #include <cassert> #include "Poller.h" #include "Channel.h" #include "../base/Logging.h" using namespace selfServer; using namespace selfServer::net; static_assert(EPOLLIN == POLLIN, "epoll uses same flag values as poll"); static_assert(EPOLLPRI == POLLPRI, "epoll uses...
//////////////////////////////////////////////////////////////////////// // Include files //////////////////////////////////////////////////////////////////////// #include <string> #include <fstream> #include <algorithm> #include <vector> #include <gaps.h> #include <GSV/GSV.h> #include "helper.h" using namespace std;...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <numeric> using namespace std; long long mod = 1000000007; long long C[100060][44]; long long multicombinations(int k, int n) { if (k == 0...
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2010, 2011, 2012 Google Inc. All rights reserved. // http://code.google.com/p/ceres-solver/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met...
#include "main.h" /** * This is basic robot code that allows your robot to move and manipulate objects using a remote controller. * * While this code does allow the robot to fully function, it can be improved and expanded in numerous ways. * If you desire, you can talk to a volunteer about ways to improve this co...
/* * Copyright (C) 2011-2016 Intel Corporation. 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 li...
#include <ruby.h> #include "xot.h" static bool test_string () { if (Xot::String("aBc") .upcase() != "ABC") return false; if (Xot::String("aBc") .downcase() != "abc") return false; if (Xot::String(" \taBc \r\n\f\v").strip() != "aBc") return false; if (Xot::String(" \t\r\n\f\v") .str...
// Advent of Code 2019, Day 16 // Copyright 2020 by <NAME> // https://adventofcode.com/2019/day/16 #include <cassert> #include <fstream> #include <iostream> #include <sstream> #include <vector> // Calculate "Flawed Frequency Transmission" of a full or partial vector. // Partial vector takes advantage of the fact that...
#include "PresetManager.h" #include "../StateManager.h" #include "PresetComp.h" namespace { static String userPresetPath = "ChowdhuryDSP/ChowMatrix/UserPresets.txt"; static String presetTag = "preset"; } // namespace PresetManager::PresetManager (StateManager* stateManager, AudioProcessorValueTreeState& vts) : stateM...
/*This file is part of the FEBio Studio source code and is licensed under the MIT license listed below. See Copyright-FEBio-Studio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any per...
#include "open_stripes.h" #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <iostream> #include <google/protobuf/io/zero_copy_stream_impl.h> #include <google/protobuf/io/coded_stream.h> #include <gzip_stream.h> ...
#include <iostream> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "control.hpp" using namespace cv; using namespace std; using namespace sim; #include <Eigen/QR> /* Set value based on control system performance */ // const double MIN_BALL_RADIUS_PX = 14; const double MIN_CIR...
#pragma once struct UBO { u32 ID {0}; u32 maxSize; void bind(u32 shader, u32 index, u32 bindingIndex); void bind(u32 shader, const std::string& name, u32 bindingIndex); static void unbind(); void setup(u32 size); void update(float* data, u32 size); }; struct VBO { u32 ID {0}; u32...
/* * Warhammer Age of Sigmar battle simulator. * * Copyright (C) 2019 by <NAME> - <EMAIL> * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #include <algorithm> #include <utility> #include <Weapon.h> #include <AgeOfSigmarSim.h> #include <Dice.h> Weapon::Weapon(Type ty...
/*********************************************************************************** ** exvr-designer ** ** MIT License ** ** Copyright (c) [2018] [<NAME>][EPFL-LNCO] ...
/** jkchat, GUIClient Client.cpp Copyright 2011 <NAME>, <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 require...
// (C) 2013-2014, <NAME>, KNURE, Kharkiv, Ukraine #include "application.hpp" #include "company.hpp" #include "computer.hpp" #include "employee.hpp" #include <iostream> #include <cassert> #include <unordered_set> /*****************************************************************************/ Application::Applicati...
#include "asteroid.h" ///// Asteroid Class //////////////////////////////////////////////////////////////////////////////////////////////////////////////// asteroid::asteroid() :visible(true), rot(0), rotspeed(0) {} #define PINT2 411566 //6.28*65536 (16fp) asteroid::asteroid(int32_t rad, Point posn, Point adir) {...
//================================================================================== // NLDM class definition // ===================== // // @author: <NAME> // @email: <EMAIL> // ===================================== // // Description: // ============ // // This is the class definition for modelling NLDM co...
#include "StdAfx.h" #include "Curve.h" #include "CLine.h" #include <vector> CCurve::CCurve(void): color(RGB(0,0,0)) ,dc(NULL), acc(20){ } CCurve::~CCurve(void){ } void CCurve::addCP(CPoint P){ CLine l; l.setColor(color); l.setDC(dc); l.setType(1); l.setS(P); if(!CP.empty()){ l.setE(CP.back()); l.dLi...
#pragma once #include <inttypes.h> #include <iostream> #include <cpinternals/cpnames.hpp> #include <cserialization/node.hpp> #include <cserialization/serializers.hpp> #pragma pack(push, 1) struct uk_thing { uint32_t uk4 = 0; uint8_t uk1 = 0; uint16_t uk2 = 0; friend std::istream& operator...
/* * Copyright (c) 2017, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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/LICE...
/************************************************************************ Copyright (c) 1994,1995 Basis Systeme netzwerk, Munich Brecherspitzstr. 8 D-81541 Munich, Germany ISRCH-LIC-1B EXPORT: Tue Aug 15 14:20:42 MET DST 1995 Public Software License Agreement: ...
//======================================================================= // Copyright 1997, 1998, 1999, 2000 University of Notre Dame. // Authors: <NAME>, <NAME>, <NAME> // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE...
// Boost.Polygon library polygon_point_test.cpp file // Copyright <NAME> 2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for updates, documentation,...
#include "Buffer.h" // default constructor // creates empty linked list of count = 0 Buffer::Buffer() { count = 0; head = NULL; } // copy constructor for buffer // creates a deep copy, of the ll, // and stores it in other // calls copy() Buffer::Buffer(const Buffer & other) { copy(other); } // destructor...
/* vim: set sw=4 sts=4 et foldmethod=syntax : */ #include "formats/input_graph.hh" #include "formats/graph_file_error.hh" #include <algorithm> #include <cctype> #include <cstdint> #include <limits> #include <string> #include <type_traits> #include <vector> #include <map> #include <tuple> #include <set> #include <boo...
#include "pch.h" #include "main.h" #include "console.h" #include "util.h" #include "service_main.h" void ShowHelpMessage() { tcout << BOLDGREEN << _T("Sudo Service v0.1 for windows") << RESET << std::endl; tcout << _T(" This will run the program with administrator privileges.") << RESET << std::endl; tcout << BOLD...
// Copyright 2019 The Galactic Bloodshed Authors. All rights reserved. // Use of this source code is governed by a license that can be // found in the COPYING file. import gblib; import std; #include "gb/place.h" #include "gb/GB_server.h" #include "gb/buffers.h" #include "gb/files_shl.h" #include "gb/races.h" #inclu...
/////////////////////////////////// // Gamebro Emulator as a Service // /////////////////////////////////// #include <hw/ps2.hpp> #include <memdisk> #include <service> #include <timers> #include <machine.hpp> static int vblank_timer = -1; static bool vblanked = false; static std::chrono::milliseconds vblspeed; void se...
// SolidTools.cpp // Copyright (c) 2010, <NAME> // This program is released under the BSD license. See the file COPYING for details. #include "stdafx.h" #include "SolidTools.h" #include "MarkedList.h" #include "HeeksConfig.h" #include "HeeksFrame.h" #include "Curve.h" #include "Area.h" void GetSolidMenuTo...