text
stringlengths
3.08k
22k
#include <GL/freeglut.h> #include <cuda_gl_interop.h> #include <cuda_profiler_api.h> #include <cuda_runtime.h> #include <driver_functions.h> #include <vector_functions.h> #include <vector_types.h> #include <cstdio> #include <cstdlib> #include <helper_cuda.h> #include <helper_math.h> #include <cuda_gl_interop.h> #in...
// // Created by <NAME> on 03/03/2020. // #include "Crowd.hpp" unsigned int scene::Crowd::_idGen = 0; scene::Crowd::Crowd() : _speed(0.0f), _id(_idGen++), _ball(ModelType::CROWD) { _ball.setSize(glm::vec3(_size)); } // Drawing method for a crowd void scene::Crowd::draw(const scene::Models_t &models, const gl_wr...
// SPDX-License-Identifier: BSD-2-Clause // // This code has been produced by the European Spallation Source // and its partner institutes under the BSD 2 Clause License. // // See LICENSE.md at the top level for license information. // // Screaming Udder! https://esss.se #include "CLIOpti...
#include <string.h> #include "blufi.h" #include "blufi_security.h" #include "esp_gap_ble_api.h" #include "esp_bt_main.h" #include "esp_log.h" #include "esp_wifi.h" #include "esp_blufi_api.h" uint8_t Blufi::serviceUuid128[32] = { /* LSB <-----------------------------------------------------------------------------...
#include <SDL.h> #include <SDL_vulkan.h> #include <iostream> #include <fstream> #include <sstream> #include <json.hpp> #ifdef DEBUG #include <imgui.h> #endif #include "renderer.h" #include "platform.h" #include "world.h" #include "mesh.h" #include "animationsystem.h" #include "material.h" #include "config.h" #includ...
#include "CustomNode.h" #include <iostream> #include "../ModelRoot.h" #include "../PoolOperators.h" #include "../actions/CompositeAction.h" #include "../actions/CreateControlAction.h" #include "../actions/DeleteObjectAction.h" #include "../actions/RenameControlAction.h" #include "../actions/SetCodeAction.h" #include ...
#pragma once #include <atlas/math/Math.hpp> #include <atlas/math/Ray.hpp> #include <fmt/printf.h> #include <stb_image.h> #include <stb_image_write.h> #include <vector> #include <atlas/core/Float.hpp> #include <atlas/math/Random.hpp> #include <limits> //using namespace atlas; using Colour = atlas::math::Vector; vo...
double rsAnd(double pa, double pb, double cor) { double d = sqrt( pa*(1-pa) * pb*(1-pb) ); return pa*pb + cor*d; // this is the formula implemented in rsCorrelation but solved for P(A,B) } double rsOr(double pa, double pb, double cor) { return pa + pb - rsAnd(pa, pb, cor); // formula needs to be verified } ...
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ /* * Copyright (c) 1997 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are m...
/** * Author: <NAME> * Email: <EMAIL> * Date: 29/12/14. * Project: Gesture Recogntion for Human-Robot Interaction */ #include <iostream> #include <sstream> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include "NiTE.h" #include "utils.h" nite::UserTracker userTracker; ...
// Boost Graph library // Copyright <NAME> 2004. Use, modification and // distribution is subject to 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) #include <boost/core/lightweight_test.hpp> #include <boost/graph/adjacency_lis...
/******************************** FileName: JobsManager/task.cpp Version: 0.1 Description: task, include ClassAd m_taskad_hard_constraint and list<ClassAd> m_soft_constraint_list *********************************/ #include <log4cplus/logger.h> #include <log4cplus/loggingmacros.h> #include <gflags/gflags.h> #inc...
/// /// Table Implementation /// /// Written by <NAME>. 2010. /// #include "Table.h" Table::Table() : vObject() {} Table::Table(vEngine::vfloat3 * position, vEngine::vfloat3 * angle) : vObject(position, angle) {} Table::Table(vEngine::vfloat3 * position) : vObject(position) {} Table::~Table() { } #d...
/* * This file is part of the Glaziery. * Copyright <NAME>. * * READ README.TXT BEFORE USE!! */ // Main header file #include <Glaziery/src/Headers.h> ScrollerInfo::ScrollerInfo() { ASSERTION_COBJECT(this); horizontalEndX = 0; horizontalEndY = 0; horizontalHandleEndX = 0; horizontalHandleStartX = 0; hori...
#include <algorithm> #include <cassert> #include <cmath> #include <functional> #include <fstream> #include <iomanip> #include <iostream> #include <memory> #include <vector> #include "basic.h" #include "cvoro_config.h" #include "Grid.h" #include "knearests.h" #include "openCL.h" #include "Options.h" #include "Utils.h" ...
// Copyright 2014 Samsung Electronics. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @file utc_blink_ewk_base.cpp * @author <NAME> <<EMAIL>> * @date 2014-03-03 * @brief A Source file to be used by all unit test cases for Chro...
#include "spellCheck.h" #include "minorGems/util/SettingsManager.h" #include "minorGems/io/file/File.h" #include "minorGems/system/Time.h" /* Hash table based dictionary implementation. This is superior to other options in terms of space and performance. Initially, I had a Trie implementat, which had the followin...
#include "SeqGraphics.h" #include "gfx.h" #include "entity/EntClient.h" #include "renderer/RenderTricks.h" #include "renderer/RendererState.h" #include "renderer/RendererUtils.h" #include "utils/dll_patcher.h" #include "GameState.h" #include "GL/glew.h" #include <thread> #include <string.h> #include "renderer/Render...
/* Copyright (c) <2009> <<NAME>> * * 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, * including commercia...
/******************************************************************************* * Copyright (c) 2009-2016, MAV'RIC 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. R...
#include <rapidcheck.h> #include <vector> #include <algorithm> #include <iostream> #include <iomanip> #include "cpp_utils.hpp" #include "driver/AirPacket.hpp" #include "schifra_galois_field.hpp" #include "schifra_galois_field_polynomial.hpp" #include "schifra_sequential_root_generator_polynomial_creator.hpp" #include "...
#include <util/delay.h> #include <avr/io.h> #include <avr/interrupt.h> void send_marks(int count, int len=1); template <typename Integer> void send_signal(Integer value); void play_audio(); int main(void) { play_audio(); while (true); } // Audio playback is implemented by reading a page of 512 samples from the // ...
#include "radeon_rays.h" #include <iostream> #include "math/matrix.h" #include "math/mathutils.h" #include "utils.h" #include "tiny_obj_loader.h" #include "scene.h" #include "radeon_rays_cl.h" #include "CLWProgram.h" #include "OpenImageIO/imageio.h" #include <chrono> using namespace RadeonRays; using namespace ti...
#include <gtest/gtest.h> #include <logger.hpp> #include <memory_checker.hpp> #include <cuda_tools.hpp> #include <cuda_segmented_reduction.hpp> static Logger *logger = Logger::get_logger("TST"); static void do_single_segment_type_test(int segment_size, int segment_count, reduce_type_t reduction_type) { DEBUG(*lo...
// // OmUtil.h // OmEspHelpers // // Created by <NAME> on 11/22/16. // Copyright (c) 2016 omino.com. All rights reserved. // #include "OmUtil.h" #include <stdio.h> #include <string.h> bool omStringEqual(const char *s1, const char *s2, int maxLen) { if(!s1 || !s2) return false; while(maxLen-- > 0)...
/*! * \class StFgtRobustPedMaker * \author <NAME>, Jan 2012 */ /*************************************************************************** * * $Id: StFgtRobustPedMaker.cxx,v 1.3 2013/02/10 14:43:55 akio Exp $ * Author: <NAME>, Jan 2012 * ***********************************************************************...
/* MilkshapeModel.cpp Loads and renders a Milkshape3D model. Author: <NAME> Email: <EMAIL> Website: http://www.geocities.com/brettporter/ Copyright (C)2000, <NAME>. All Rights Reserved. This file may be used only as long as this copyright notice remains intact. */ #if defined(__APPLE__) #include <string.h>...
#include "StdAfx.h" #include "SceneLoader.h" #include "FaceGroup.h" #include "Scene.h" #include "Material.h" #include "Mesh.h" #include "Light.h" #include "ReferenceManager.h" #include "Engine.h" #include "FileSystem.h" #include <assimp/Importer.hpp> #include <assimp/scene.h> #include <assimp/matrix4x4.h> #include <a...
#include <iostream> #include <fstream> #include <vector> #include <string> #include <algorithm> #include <memory> #include "mysql_connection.h" #include <cppconn/driver.h> #include <cppconn/exception.h> #include <cppconn/resultset.h> #include <cppconn/statement.h> #include <cppconn/prepared_statement.h> #include <de...
#include <iostream> #include <math.h> #include <cstdlib> #include <ctime> #include "console.h" #include "circle.h" #include "button.h" #include "line.h" #include "star.h" #include "lighting.h" const float PI = 3.14159265; Console::Console(const int cWidth, const int cHeight, const int posX, const int posY) ...
#include <stdlib.h> #include "../config.h" #include "fzxx/match.h" #include "greatest/greatest.h" #define SCORE_TOLERANCE 0.000001 #define ASSERT_SCORE_EQ(a, b) ASSERT_IN_RANGE((a), (b), SCORE_TOLERANCE) #define ASSERT_SIZE_T_EQ(a, b) ASSERT_EQ_FMT((size_t)(a), (b), "%zu") /* has_match(char *needle, char *haystack)...
/* ============================================================================== Copyright 2007-2013, 2017 <NAME> Copyright 2013-2016 <NAME> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
#include <stdexcept> #include <cstdlib> #include <cstring> #include <cctype> #include <vector> #include <functional> #include <thread> #include <chrono> #include <iostream> #include <fstream> #include <sstream> #include <SDL2/SDL.h> #include "gapi/shader.hpp" #include "gapi/texture.hpp" #include "gapi/functions.hpp" ...
#include "web++.hpp" using namespace std; Request::Request() {} Response::Response() { code = 200; phrase = "OK"; type = "text/html"; body << ""; char buffer[100]; time_t now = time(0); struct tm tstruct = *gmtime(&now); strftime(buffer, sizeof(buffer), "%a, %d %b %Y %H:%M:%S %Z", &ts...
#include "TransactionHistory.h" #include "TransactionInfo.h" #include <wallet/api/wallet2_api.h> #include <QFile> #include <QDebug> TransactionInfo *TransactionHistory::transaction(int index) { if (index < 0 || index >= m_tinfo.size()) { qCritical("%s: no transaction info for index %d", __FUNCTION__, in...
#define FUSE_USE_VERSION 26 #include <iostream> #include <string> #include <vector> #include <cstring> // strdup #include <algorithm> // transform #include <iterator> // back_inserter #include <fuse_lowlevel.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <...
/* * Copyright (c) <NAME> <<EMAIL>> * Webpage: http://www.journalhome.com/texpen/ * * */ #include "headers/mainwindow.h" #include <QProcess> #include <QAction> #include <QTextDocument> #include <QTextCursor> #include <QVector> #include <QTextCursor> #include <QDebug> #include <QCompleter> #include <QListWidget> ...
/** pair.cpp Purpose: Pairs sequences depending on the wells they were found in Take four arguments: - filename_p_values a file whose first line contain the number of well W. The following W lines stores a WxW matrix, d. d[n1, n2] contains the minimum number of wells two sequences containe...
#include "transform.h" #include <imgui.h> #include <stdio.h> Transform::Transform(vec3 position, vec3 rotation, vec3 scale) : m_position(position),m_scale(scale), m_rotation(rotation), m_center(glm::vec3(0)), m_translateAfter(glm::vec3(0)), m_positionToSend(position), m_sc...
/* * Copyright (C) 2015 Dato, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This software ma...
#include "Textbox.h" #include "Logger.h" #include "input/Input.h" #include <cstdlib> #include <cstring> #include "utility/misc.h" using WalrusRPG::MAGIC_TOKEN; using WalrusRPG::COMMAND_LEGNTH; using WalrusRPG::Textbox; using WalrusRPG::TextboxState; using WalrusRPG::TextboxChar; using WalrusRPG::Graphics::Font; using ...
/* -*- c-file-style: "bsd"; c-basic-offset: 2; indent-tabs-mode: nil -*- */ // calculate the exchange correlation potential for a charge density #include "Real.hpp" #include <cmath> #include <vector> // calculate the Wigner-Seitz desnity parameter r_s // r_s = (4 pi rho / 3)^{-1/3} Real densityParameterRs(Real rho) {...
/** * @file linquadfelshaped.cc * @brief Creates convergence plots for experiment 3.2.3.10 * @author <NAME> * @date April 2020 * @copyright MIT License */ #define _USE_MATH_DEFINES #include <lf/assemble/assemble.h> #include <lf/fe/fe.h> #include <lf/geometry/geometry.h> #include <lf/io/io.h> #include <lf/mesh/h...
/* * camera.ino - One second interval time-lapse Camera * Copyright 2018 Sony Semiconductor Solutions Corporation * * This library 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...
/* * @file helloworld.c * @brief Simple C example showing how to use wait_until * @author <NAME>, <NAME> and <NAME> * * Copyright (c) Regents of the University of California, 2015. All rights reserved. * Copyright (c) Carnegie Mellon University, 2016. * * Redistribution and use in source and binary forms, wi...
// MIT License // // Copyright(c) 2019 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
//-------------PARA USAR CON ARDUINO MEGA DEBIDO A LA CANTIDAD DE ENTRADAS Y SALIDAS-------------------- // NO ME MARCA ERRORES DE COMPILACIÓN EL ARDUINO PERO NO LO HE PROBADO #include <LiquidCrystal_I2C.h> //Librería para el display #include <Wire.h> //Librería para usar el bus I2C de comunicación...
/* EGYPT Toolkit for Statistical Machine Translation Written by <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and <NAME>. 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; ei...
#include "pch.h" /********************************************************************** <BR> This file is part of Crack dot Com's free source code release of Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for information about compiling & licensing issues visit this URL</a> <PRE> If...
#include <iostream> #include "file_manager.h" #include "errors.h" #include <cstring> using namespace std; #include <iostream> #include "file_manager.h" #include "errors.h" #include <limits.h> #include <fstream> using namespace std; /* File Manager */ FileManager fm; /* Input File Handler */ FileHandler input_fh; P...
/* * Planet.cpp * FinalProject * * Created by <NAME> on 12/4/09. * Copyright 2009 ATHLabs. All rights reserved. * */ #define PLANET_RADIUS 100 #include "Planet.h" #include "BasicMath.h" #include <stdio.h> #include <math.h> #include <time.h> Planet::Planet() { seed = 20; // Benchmark creation process i...
#include "NetworkClient.hpp" #include "Debug.hpp" #include <steam/isteamnetworkingutils.h> //this is required in for ParseString #include "App.hpp" #include "RPCComponent.hpp" #include "SyncVar.hpp" using namespace RavEngine; NetworkClient* NetworkClient::currentClient = nullptr; NetworkClient::NetworkClient(){ net_...
// // Copyright (c) 2017-2020 Project PAI Foundation // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // #include "chain.h" #include "consensus/validation.h" #include "core_io.h" #include "rpc/safemode.h" #include "rpc/server.h"...
//======================================================================== // // JSInfo.cc // // This file is licensed under the GPLv2 or later // // Copyright (C) 2013 <NAME> <<EMAIL>> // Copyright (C) 2017, 2020, 2021 <NAME> <<EMAIL>> // Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, <<EMAIL>>...
/* Copyright (c) 2020, VSB - Technical University of Ostrava and Graz University of Technology 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 copyr...
/* INCLUDES FOR THIS PROJECT */ #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <vector> #include <cmath> #include <limits> #include <opencv2/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/features2d.hpp> #include <opencv2/...
#include <net/tcp.h> #include <common/types.h> using namespace rexos; using namespace rexos::net; using namespace rexos::common; void printf(char*); void printfHex(uint8_t); uint32_t bigEndian32(uint32_t); /* TCPHandler can receive raw data from TCP socket */ TCPHandler::TCPHandler() {} TCPHandler::~TCPHandler() {} boo...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> void framebuffer_size_callback(GLFWwindow *window, int width, int height); void processInput(GLFWwindow *window); // 顶点着色器小程序 对应OpenGL版本 3.3 const char *vertexShaderSuorce = "#version 330 core\n" // 对应使用核心版本 "layout (location = 0) in vec...
#include <iostream> using namespace std; void puntatore() { int num = 25; // numero intero int k = 20; // k è un patore a int int *p = &num; //dichiara patore a intero *p = 34; //assegna 10 al dato pato da patore p = &k; //assegna ad patore indirizzo di 20 //funzione che stam...
/// \ingroup newran ///@{ /// \file tryurng1.cpp /// Test uniform random number generators - the tests. #define WANT_STREAM #define WANT_MATH #include "include.h" #include "newran.h" #include "format.h" #include "tryurng.h" #include "utility.h" #include "test_out.h" #include "array.h" double chisq_test(const Ar...
/* Copyright <2018> <Ainstein, Inc.> 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 disclaimer...
/* Copyright 2021 iwatake2222 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 dis...
#include "dvqmlcommunication.hpp" #include "dvfolderlisting.hpp" #include "version.hpp" #include <QWindow> #include <QDir> #include <QApplication> #include <QMessageBox> #include <QSettings> #include <QQuickStyle> #include <QProcess> #include <QQuickItem> #include <QtMath> #include <QSGTextureProvider> namespace { con...
/* Copyright 2022 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 or agreed to in writing, softw...
/* * 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 ...
/*============================================================================== ofxJava: a java scripting interface & bindings for openFrameworks Copyright (c) 2018 <NAME> aka n3m3da <<EMAIL>> ofxJava is distributed under the MIT License. This gives everyone the freedoms to use ofxJava in any contex...
#include "polute_air.hpp" #include "lue/framework/core/component/partitioned_array.hpp" #include "lue/framework/algorithm.hpp" // #include "lue/framework/core/debug.hpp" // #include "lue/framework/core/domain_decomposition.hpp" // // #include <hpx/config.hpp> // #include <hpx/hpx.hpp> // // #include <hpx/lcos/gather.h...
/** * @file lexer.cpp * @author strah19 * @date March 25 2022 * @version 1.0 * * @section LICENSE * * This program is free software; you can redistribute it and/or * modify it under the terms of the MIT License as published * by the Free Software Foundation. * * @section DESCRIPTION * * Defines the l...
/* * * Copyright (c) 2014, weizhenwei * 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 condi...
#include <iostream> #include <fstream> #include <string> #include <cmath> using namespace std; #define FILE_MAX 100 #define DIMENTION 15 #define MAXSIZE 256 //各パラメータの定義 double d[MAXSIZE][MAXSIZE]; double g[MAXSIZE][MAXSIZE]; double t[FILE_MAX]; //ファイルのクラスの定義 class Onseifile { public: string name; string onso; ...
#include <iostream> #include <unistd.h> #include "elevator.h" #include "log.h" Elevator::Elevator(int idnum) { id = idnum; quit = 0; step = 0; current_floor = 1; requested_floor = 1; next_floor = 1; direction_arrived = UP; elevator_state = INITIALIZING; current_request = make_pair(-...
/* Copyright (c) <2003-2011> <<NAME>, Newton Game Dynamics> * * 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 an...
/* * serv.c * * $Source: /project/arl/arlcvs/cvsroot/wu_arl/openNetLab/proxy/serv.cc,v $ * * $Author: fredk $ * $Date: 2006/04/28 16:49:19 $ * $Revision: 1.9 $ */ #include <stdio.h> #include <stdlib.h> #ifdef __linux__ #include <string.h> #else #include <strings.h> #endif #include <unistd.h> #include <sys/t...
#include <sugar/sugar-encode.h> #include <fstream> //------------------------------------------------------------------------- // rule: object for holding to be synthesized rules //------------------------------------------------------------------------- rule::rule( z3::context& ctx_, sugar_t_vec& sugars_, unsigned ...
// fo16.cpp // Fo16 format support // Intended compatibility: c++17 // // Created by <NAME> on 14 April 2021 /* Licensed under the MIT License. Copyright (c) 2021 Faustic Inferno SL Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
#include "phasing/Haplotype.h" #include <fstream> #include <iostream> #include <Logging.h> #include <boost/format.hpp> Haplotype::Haplotype(const std::string &filePrefix, const std::string &rna){ if(!rna.empty()){ parseRnaCounts(filePrefix, rna); } std::ifstream in(filePrefix + ".haplotypes.txt"); if(in.fail(...
#include "DataAccessLayer.hpp" #include "AssetHandle.hpp" #include "sqlite_modern_cpp.h" #include "util/AssetManager.hpp" #include "util/define_logger.hpp" #include "util/StringBuilder.hpp" namespace { log4cplus::Logger& GetLogger() { return aima::util::AssetManager::detail::GetLogger(); } using n...
// The MIT License (MIT) // Copyright (c) 2014 nabijaczleweli // 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...
/** * * This file is part of the COIN-OR CBC MIP Solver * * Class for separating violated odd-cycles. It contains * a lifting module that tries to transform the odd-cycles * into odd-wheels. * * @file CglOddWheel.cpp * @brief Odd-wheel cut separator * @author <NAME> and <NAME> * Contact: <EMAIL> and <EMAIL> ...
//--------------------------------------------------------------------------- // Microsoft OLE DB Programmer's Reference Sample // Copyright (C) 1998 By Microsoft Corporation. // // @doc // // @module DATASOURCE.CPP // //--------------------------------------------------------------------------...
/* MIT License Copyright (c) 2019 Light Transport Entertainment Inc. And many contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 condit...
//////////////////////////////////////////////////////////////////////////////// // // // Copyright (C) 2016, goatpig. // // Distributed under the MIT license ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <time.h> #include <unistd.h> #include <arpa/inet.h> #include <net/if.h> #include <netinet/in.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <sys/types.h> #include "bbos/bbos_api.h" #define PATH_LEN 256 /* XXX */ ...
/* * Copyright 2008, Haiku. * Distributed under the terms of the MIT license. * * Authors: * <NAME> <<EMAIL>> */ #include "PPDParser.h" #include "AutoDelete.h" #include <stdio.h> #include <stdlib.h> // #define VERBOSE 1 struct Keyword { const char* name; const char* since; int major; int minor; bool f...
#include <opencv2/opencv.hpp> #include <sophus/se3.h> #include <Eigen/Core> #include <vector> #include <string> #include <boost/format.hpp> #include <pangolin/pangolin.h> using namespace std; using namespace Eigen; using namespace cv; typedef vector<Eigen::Vector2d, Eigen::aligned_allocator<Eigen::Vector2d>> VecVecto...
#include "duckdb.hpp" #include "duckdb/common/string_util.hpp" #include <iostream> using namespace std; using namespace duckdb; void recursiveQuery() { DuckDB duckDB(nullptr); Connection conn(duckDB); auto result = conn.Query("CREATE TABLE person\n" "(\n" " i...
#ifdef HAVE_CONFIG_H #include <../../config.h> #endif /* * Copyright (c) 1990, 1991 Stanford University * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided * that the above copyright notice appear in all copies and ...
// // Enemy.cpp // Karakuri2 Mac // // Created by <NAME> on 11/09/21. // Copyright 2011 <NAME>. All rights reserved. // #include "Enemy.h" #include "Enemy1.h" static GMSound* sHitSound = NULL; /* ============================================================== */ // Enemy /* =====================================...
#include "blueAgent.h" #include "matlab/updateStartPosition.h" #ifdef __unix__ #include <termios.h> #endif #include <ctime> #include <iomanip> #define NS LedsChat::BlueAgent NS::BlueAgent(Maze & maze, const StartData & data) : m_running(true), m_serialOpened(false), m_usedMemory(0), m_time(0), m_currentTmp(0), m...
/* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
#include <Arduino.h> #include <string.h> #include "tm_net.h" #include "tm_debug.h" #include "host_spi.h" #include "utility/nvmem.h" #include "utility/wlan.h" #include "utility/hci.h" #include "utility/security.h" #include "utility/os.h" #include "utility/netapp.h" #include "utility/evnt_handler.h" /** * Configurat...
/* -*- mode: c++; -*- *----------------------------------------------------------------------------- * $RCSfile: SpoolingInvoker.cpp,v $ * * See Copyright for the status of this software. * * The OpenSOAP Project * http://opensoap.jp/ *----------------------------------------------------------------------------...
#include "stdafx.h" #include "AlembicCurves.h" #include "AlembicMetadataUtils.h" #include "AlembicXform.h" #include "SceneEnumProc.h" #include <surf_api.h> #include "utility.h" enum SplineExportType { SplineExport_Simple, SplineExport_Hair, SplineExport_PointCloud, SplineExport_None }; Alembi...
/** * Created by sixdi on 12/31/2021. */ #include <boost/asio.hpp> #include <boost/thread.hpp> #include <iostream> #include <string> #include <list> #include <vector> boost::mutex global_stream_lock; void worker_thread(boost::shared_ptr<boost::asio::io_service> io_svc, int counter){ global_stream_lock.lock(); ...
// // Copyright 2019 The MLIR Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
/* * vic20ui.cc - VIC20-specific user interface. * * Written by * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Lice...
/* * magic.c - PPP Magic Number routines. * * Copyright (c) 1984-2000 Carnegie Mellon University. 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 mus...
#include "configuration.h" #include "jsonparser.h" #include "HealthGPS/simple_policy_scenario.h" #include "HealthGPS/marketing_scenario.h" #include "HealthGPS.Core/scoped_timer.h" #include <chrono> #include <ctime> #include <iostream> #include <optional> #include <fstream> #include <fmt/core.h> #include <fmt/color.h...