text
stringlengths
3.08k
22k
#include "../glsl/glsl_optimizer.h" #include "dirent.h" #include <string> #include <vector> #include <fstream> #include <string> #include <cerrno> #include <utility> #include <iostream> #include <sstream> using namespace std; void usage() { #ifdef _WIN32 cout << "Usage:"<< endl << "$ oglsl.exe [ -h | -m ] paths_to_s...
#include <cstdio> #include <stdbool.h> #include <string.h> #include <exception> #include "api.h" #include "test_sphincs.h" // // This tests out the key generation process // There isn't a great deal to check out (do we generate valid // public/private keypairs? Do the various APIs work as intended?), but we // do wha...
/* * Copyright 2018 duck * * 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 writ...
#include <iostream> #include <random> // for random numbers #include <chrono> // for generating the seed #include <fstream> // for reading/writing files #include <array> // for std::array #include <vector> // for std::vector #include <utility> // for std::pair #include <cmath> ...
#include <llvm/IR/TypeBuilder.h> #include "codegen/CodeGen.hpp" #include "foundations/StaticHashtable.hpp" #include "foundations/MemoryPool.hpp" #include "foundations/Types.hpp" #include "foundations/utils.hpp" #include "sql/SqlTypes.hpp" // This test also represents the draft for the HashJoin operator // table 1: ...
//Language: GNU C++ // Author: <NAME> #include <iostream> #include <sstream> #include <cstdio> #include <climits> #include <cstdlib> #include <algorithm> #include <cmath> #include <cstring> #include <string> #include <deque> #include <bitset> #include <map> #include <set> #include <stack> #include <list> #include <ve...
/* 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...
/* USER CODE BEGIN Header */ /* // Example file name : main.cpp // Description: // Test file for ERM19264_UC1609_library, // multi buffer mode. Text exmaple // ***************************** // NOTES : (1) Software SPI (2) test 7 8 9 require the repsective fonts commented in custom_graphics_font.h fi...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
/* * Copyright 2013 <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 * notice, this list of conditions and the following discla...
#include "RSC_Texture.h" #include "../Defines.h" #include "../Kernel.h" #include "../Resolution.h" #include "ResourceLoading.h" #include <cstring> #include <string> std::vector<GLuint> RSC_Texture::GLBoundTextures = [] { std::vector<GLuint> v; v.push_back(0); // texture0 v.push_back(0); // texture1 v.push_b...
/* <NAME> */ /* * (c) <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 co...
#include <llvm/IR/IRBuilder.h> #include <llvm/IR/LLVMContext.h> #include <llvm/IR/Verifier.h> #include <llvm/Support/Host.h> #include <sstream> #include <stack> #include <iostream> #include <memory> #include "ast_to_ir.hpp" using namespace li1I; using llvm::ConstantInt; using llvm::IntegerType; using llvm::FunctionTy...
/* ** Copyright (c) 2013 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and/or associated documentation files (the ** "Materials"), to deal in the Materials without restriction, including ** without limitation the rights to use, copy, modify...
#include <iostream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; // class declaration class DftIdftApp { public: DftIdftApp(const string filename); ~DftIdftApp(){}; void calcMagImage(); void showOrgImage(){ double Min,Max; cv::minMaxLoc(src_img,&Min,&Max); src_img -= Mi...
#include "vulkan_display.h" // Vulkan.h must be before GLFW #include <GLFW/glfw3.h> #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #include <atomic> #include <iostream> #include <string> #include <chrono> #include <thread> using namespace std::literals; namespace chrono = std::chrono; namespace vkd = vulkan...
// // "Gleam" drawing routines for the Fast Light Tool Kit (FLTK). // // These box types provide a sort of Clearlooks Glossy scheme // for FLTK. // // Copyright 2001-2005 by <NAME>. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public // Lice...
#include<iostream> #include<vector> #include<algorithm> #include<bitset> using namespace std; #define A 0 #define B 93 #define C 177 #define RA 92 #define RB 83 #define RC 110 /* * la = S242 + S287 + S68 * lb = S65 + S92 + S170 * lc = S161 + S176 + S263 */ vector<int> K(128); vector<int> V(128); vector<int *> D...
#include <fstream> #include <iostream> #include <string> #include "console.h" #include "goodness/library_search.h" #include "transform/transform_decrypt.h" #include "xor/xor_decrypt.h" // only holding up to <MAX_BEST_DECRYPTIONS> decryptions before overwriting the worst decryption #define MAX_BEST_DECRYPTIONS 20 // ...
#include "VelocityVisualization.h" #include <stdio.h> #include <iostream> #include "VideoTools.h" // code removed because of 64-bit ISSUE: ISSUE_X64 // ISSUE_X64 /* sorry GLUT was removed because of 64 bit issues #ifdef MAC #include <GLUT/glut.h> #else #include <GL/glut.h> #endif */ //#include <glu...
// DirectConnectionGeneric.cpp /* MIT License Copyright (c) 2016,2018 NewBlue, Inc. <https://github.com/NewBlueFX> 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, inc...
//HANGMAN SIMULATOR BY: <NAME> //DEDICATED TO: Dr. <NAME> //COMPUTER ENGINEERING YEAR (1) PROJECT #include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> #include <graphics.h> #include <time.h> //Words to be used in the game (Global Variable) char Words[][16] = //16 is the maximum word length ...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2020 by <NAME> * * Author: <NAME> <<EMAIL>> * * * * * * * * * * * * * * * * * * * * * * * * * * */ //============================================================== // Copyright © 2019 Intel Corporation // // SPDX-License-Ide...
#include "Scene/SceneAsteroids.h" SceneAsteroids::SceneAsteroids() { sceneSettings.enableSkybox = true; sceneSettings.cameraPosition = glm::vec3(0.0f, 30.0f, 220.0f); sceneSettings.cameraStartYaw = -90.0f; sceneSettings.cameraStartPitch = -10.0f; sceneSettings.cameraMoveSpeed = 5.0f; sceneSettings.directionalLi...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** Commercial License Usage ** Licensees holding valid comm...
// <NAME> // CS211 // Implementation file for the FlightReservation class. #include "FlightReservation.h" // Needed for the FlightReservation class #include <string> #include <vector> #include <iostream> #include <fstream> using namespace std; // FlightReservation constructor FlightReservation::FlightReservation() { ...
#include <zenilib.h> #include "Ship.h" using namespace Zeni; using namespace Zeni::Collision; #define SHIP_DEFAULT_FORWARD_VECTOR (Vector3f(1.0f, 0.0f, 0.0f)) #define SHIP_DEFAULT_UP_VECTOR (Vector3f(0.0f, 0.0f, 1.0f)) #define SHIP_DEFAULT_LEFT_VECTOR (Vector3f(0.0f, 1.0f, 0.0f)) Ship::Ship...
/* * ZDB Copyright 2017 Regents of the University of Michigan * * 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 applicab...
#include "eq.h" // Author: <EMAIL> (C) 2006 #include "globals/error_macros.h" #include "eq.h" #include <math.h> #define POW2(v) ((v) * (v)) #define SQRT12 0.7071067811865475244008443621048490 /* Helper */ static int solve_quadratic(double a, double b, double c, double *r1, double *r2) { //solves quadractic and re...
/** * Copyright (c) 2018 Inria * 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 conditions and the fol...
#include "TexturePacker.h" namespace Nix { enum TextureNodeFlags { LeftNode = 1 << 0, RightNode = 1 << 1, Taken = 1 << 2 }; enum InsertRetFlags { InsertSucceed = 1 << 0, InsertNeedClear = 1 << 1 }; typedef uint16_t InsertRetFlag; typedef uint16_t TextureNodeFlag; class TextureNode; TextureNode* ...
#include "assignment4.hpp" #include "parametric_shapes.hpp" #include "config.hpp" #include "core/Bonobo.h" #include "core/FPSCamera.h" #include "core/helpers.hpp" #include "core/node.hpp" #include "core/ShaderProgramManager.hpp" #include <glm/gtc/type_ptr.hpp> #include <imgui.h> #include <tinyfiledialogs.h> #include...
#include <algorithm> #include <cstdlib> #include <fstream> #include <iostream> #include <map> #include <sstream> #include <streambuf> #include <string> #include <vector> #include <boost/filesystem.hpp> #include <ctemplate/template.h> #include <yaml-cpp/yaml.h> #include "string_util.hh" namespace fs = boost::filesyst...
#include "qbasicformmoveablewidget.h" #include <QMouseEvent> #include <QStyleOption> #include <QPainter> #include <windows.h> #include <windowsx.h> QBasicFormMoveableWidget::QBasicFormMoveableWidget(QWidget *parent) : QWidget(parent) { isLeftPressDown_ = false; this->dir_ = NONE; this->setWindowFlags(...
// // Created by hxuro on 2019/11/20. // #include "WlAudio.h" WlAudio::WlAudio(WlPlaystatus *playstatus, int sample_rate, WlCallJava *wlCallJava) { this->wlCallJava = wlCallJava; this->playstatus = playstatus; this->sample_rate = sample_rate; queue = new WlQueue(playstatus); buffer = (uint8_t *...
#include "searcher.h" Napi::FunctionReference Searcher::constructor; Napi::Object Searcher::Init(Napi::Env env, Napi::Object exports) { Napi::HandleScope scope(env); Napi::Function func = DefineClass(env, "Searcher", { InstanceMethod("search", &Searcher::Search) }); constructor = Napi::Persi...
#include "SceneMenu.h" SceneMenu::SceneMenu() : Scene() { InitGL(); InitLighting(); InitObjects(); glutMainLoop(); } SceneMenu::~SceneMenu(void) { Scene::~Scene(); delete textureStarfield; textureStarfield = NULL; delete textureCollision; textureCollision = NULL; delete textureGame; ...
/* * This file is part of the DUDS project. It is subject to the BSD-style * license terms in the LICENSE file found in the top-level directory of this * distribution and at http://www.somewhere.org/somepath/license.html. * No part of DUDS, including this file, may be copied, modified, propagated, * or distributed...
#include <cmath> #include "GameWorldUiModel.h" #include "GameWorldUiView.h" #include "../Entities/Player.h" #include "../Game/ArenaClockUtils.h" #include "../Game/ArenaDateUtils.h" #include "../Game/Game.h" #include "../World/MapType.h" #include "components/utilities/String.h" std::string GameWorldUiModel::getPlayer...
#include <allegro5/allegro.h> #include <allegro5/allegro_font.h> #include <allegro5/allegro_color.h> #include <allegro5/allegro_primitives.h> #include <allegro5/allegro_native_dialog.h> #include <tgui2.hpp> #include <tgui2_widgets.hpp> #include "sound-bass.h" #include <cstdio> static ALLEGRO_PATH *loadPath; ...
#include "stdafx.h" #include "Octocad.h" #include "GLManager.h" #include "InputSystem.h" #include "Vertex.h" #include "ProcessLink.h" #include "MessageHandler.h" // OpenGL libraries #pragma comment(lib, "opengl32") #pragma comment(lib, "lib/glfw3dll.lib") #ifndef _DEBUG #pragma comment(lib, "lib/glew32.lib") #else #p...
/* 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...
#include "../inc/Negotiator.h" #include <random> Negotiator::Negotiator(string n, float a) : name(n), amiability(a), generosityOfOffer(0.0) { fillPreferences(); } //////////////////////////////////////////////////////////////////////////////// // Getter/Setter/Utility...
#include <iostream> #include <string> #include <cstdint> #include <sstream> #include "pybind11/pybind11.h" #include "pybind11/numpy.h" #include <stdio.h> #include "atom_shmem_error.h" #include "atom_shmem.h" namespace py = pybind11; enum { ATOM_SHMEM_EXISTS_IDX, ATOM_SHMEM_EMPTY_NAME_IDX, ATOM_SHMEM_EXC...
/* * Copyright (C) 2010-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. * * ...
#ifndef __MEM_ALOC_HPP__ #include "mem_aloc.hpp" #endif // __MEM_ALOC_HPP__ #ifndef __MEM_NODE_HPP__ #include "mem_node.hpp" #endif // __MEM_NODE_HPP__ #ifndef __MEM_CLST_HPP__ #include "mem_clst.hpp" #endif // __MEM_CLST_HPP__ #ifndef __MEM_VSIZ_HPP__ #include "mem_vsiz.hpp" #endif // __MEM_VSIZ...
// Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. #include <atomic> #include ...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
/* * Copyright 2017 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 applica...
//===--- LLVMOpt.cpp ------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
#include "L1Trigger/TrackFindingTracklet/interface/VMRouterCM.h" #include "L1Trigger/TrackFindingTracklet/interface/Settings.h" #include "L1Trigger/TrackFindingTracklet/interface/Globals.h" #include "L1Trigger/TrackFindingTracklet/interface/VMStubTE.h" #include "L1Trigger/TrackFindingTracklet/interface/InputLinkMemory....
//Data Structure includes #include<vector> #include<stack> #include<set> #include<map> #include<queue> #include<deque> #include<string> //Other Includes #include<iostream> #include<algorithm> #include<cstring> #include<cassert> #include<cstdlib> #include<cstdio> #include<cmath> //some common functionn #define maX(a,b) ...
/****************************************************************************** * * Project: WMS Client Driver * Purpose: Implementation of Dataset and RasterBand classes for WMS * and other similar services. * Author: <NAME>, <EMAIL> * **************************************************************...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
/* * Copyright 2021 y.matsuo1988 * * 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 ...
#include "Map.h" using namespace std; Map::Map(int id){ // Map1 if(id == 0){ // Static Obstacles Obstacle* b0 = new Obstacle(0, true, 50, 10, 10, 20, 0); // sitting at the center of lower wall Obstacle* b1 = new Obstacle(1, true, 50, 80, 20, 40, 0); // hanging from the center of upper wall Obs...
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2019 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 4.0.2019.08.13 #include "BlendedAnimationsWindow3.h" #includ...
// ROS2 Legged Robot Controller Node // Copyright (c) 2020, <NAME> // Based upon Kevin Ochs ROS Hexapd Controller Node, Copyright (c) 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...
#include <OpenGLTexture.h> #include <Image.h> #include <Surface.h> #include <cassert> using namespace std; using namespace canvas; size_t OpenGLTexture::total_textures = 0; vector<unsigned int> OpenGLTexture::freed_textures; bool OpenGLTexture::has_tex_storage = false; struct format_description_s { GLenum intern...
/** measure branch sizes * * author <NAME> * */ #include <boost/program_options.hpp> #include <string> #include <iostream> #include <vector> #include <utility> #include <cassert> #include <TROOT.h> #include <TFile.h> #include <TTree.h> #include <TSystem.h> #include <TStyle.h> #include <TObjArray.h> #include <TBran...
/* ----------------------------------------------------------------- */ /* The Toolkit for Building Voice Interaction Systems */ /* "MMDAgent" developed by MMDAgent Project Team */ /* http://www.mmdagent.jp/ */ /* -----------------------------...
#include "Scanner.hpp" #include "Common.hpp" #include "IncludeScanner.hpp" #include "MemAllocHeap.hpp" #include "MemAllocLinear.hpp" #include "DagData.hpp" #include "PathUtil.hpp" #include "FileInfo.hpp" #include "Buffer.hpp" #include "ScanCache.hpp" #include "StatCache.hpp" #include "HashTable.hpp" #include <stdio.h>...
/* * Copyright (c) 2013 <NAME>, Inc. All rights reserved. */ #include "xmpp/xmpp_session.h" #include "xmpp/xmpp_connection.h" #include "xmpp/xmpp_log.h" #include "xmpp/xmpp_proto.h" #include "xmpp/xmpp_server.h" #include "xmpp/xmpp_state_machine.h" #include "sandesh/sandesh_types.h" #include "sandesh/sandesh.h" #i...
/*! @file @brief WSHインタフェースオブジェクト基本クラス @date 2009.10.29 syat CWSH.cppから切り出し */ /* Copyright (C) 2002, 鬼, genta Copyright (C) 2003, FILE Copyright (C) 2004, genta Copyright (C) 2005, FILE, zenryaku Copyright (C) 2009, syat Copyright (C) 2018-2021, Sakura Editor Organization This software is provided 'as-is',...
// // Created by <NAME> on 2021-06-24. // Copyright (c) 2021 NASA / JPL. All rights reserved. #include <x/vision/utils.h> #include <x/eklt/async_feature_interpolator.h> x::Feature x::AsyncFeatureInterpolator::interpolatePatchToTime(const x::AsyncPatch *p, double t) { auto& c_cur = p->getCenter(); double x, y; ...
/* * Copyright (C) 2008 - 2012 TrinityCore <http://www.trinitycore.org/> * * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/> * * 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; ...
// See LICENSE for license details. #include <algorithm> #include <stdio.h> #include "sim_mem.h" // TODO: support multi channels sim_mem_t::sim_mem_t(simif_t* sim, int argc, char** argv): endpoint_t(sim) { #ifdef NASTIWIDGET_0 std::vector<std::string> args(argv + 1, argv + argc); bool dramsim = false; uint64_t...
#include "Ht16k33.hpp" #include "Tile.hpp" #include "SoftwareI2c.hpp" #include <string.h> #include "stm32f3xx_hal.h" /************************************************************ * 点灯パターン定義 ************************************************************/ #include "TilePattern.h" /** * 床LED配置 * * 物理...
/** * @file matrix.cpp * @brief Implementation of GLMatrix.h * @author <NAME> (<EMAIL>) * @date 2003-01-08 * @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved. * @details */ #include "o3d/engine/precompiled.h" #include "o3d/engine/matrix.h" #include "o3d/engine/context.h" #include "o3d/ge...
// Copyright 2011 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/process/process.h" #include <errno.h> #include <signal.h> #include <stdint.h> #include <sys/resource.h> #include <sys/wait.h> #include "b...
// a24_C-Strings.cpp // Implement the following functions. Each function deals with null terminated C-strings. You can assume that any char array passed into the functions will contain valid, null-terminated data. Your functions must have the signatures listed below. #include <string> #include <iostream> #includ...
#include <algorithm> //max #include <cassert> //assert #include <utility> //swap using namespace SAMOutput; template <typename T_Sequence> void SAMOutput::SetAlignedSequence(T_AlignmentCandidate &alignment, T_Sequence &read, T_Sequence &alignedSeq, Clipping clipping) { //...
/* This file is part of Felicity Egtb, distributed under MIT license. Copyright (c) 2018 <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 limita...
/* Copyright 2019 Diligent Graphics 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 * * THE SOFTWARE IS PROVIDED "AS...
/////////////////////////////////////////////////////////////////////////////// //! \file //! \author <NAME> //! \date 11/03/2005 //! //! \brief Simulates a 454 pyro sequencing machine //! //////////////////////////////////////////////////////////////////////////////// #include "inttypes_AMOS.hh" #include "fasta.hh" #...
#include "boardview.h" BoardView::BoardView(QWidget *parent) : QWidget(parent) { } QSize BoardView::sizeHint() const { return QSize(500, 500); } QSize BoardView::minimumSizeHint() const { return QSize(300, 300); } void BoardView::paintEvent(QPaintEvent *event) { QPainter painter(this); painter.setP...
#include "MRFTController.hpp" MRFTController::MRFTController(block_id t_id) { _controller_type = controller_type::mrft; _id = t_id; _input_port_0 = new InputPort(ports_id::IP_0_DATA, this); _input_port_1 = new InputPort(ports_id::IP_1_UPDATE, this); _output_port = new OutputPort(ports_id::OP_0_DATA, this); ...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, i...
/** * \file PnlWzskSesRec.cpp * job handler for job PnlWzskSesRec (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 5 Dec 2020 */ // IP header --- ABOVE #ifdef WZSKCMBD #include <Wzskcmbd.h> #else #include <Wzskd.h> #endif #include "PnlWzskS...
#include "Laborator6.h" #include <vector> #include <string> #include <iostream> #include <Core/Engine.h> using namespace std; Laborator6::Laborator6() { } Laborator6::~Laborator6() { } void Laborator6::Init() { { Mesh* mesh = new Mesh("box"); mesh->LoadMesh(RESOURCE_PATH::MODELS + "Primitives", "box.obj"); ...
/* * MIT License * * Copyright (c) 2021 <NAME> (SystemGlitch) * * 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, ...
// Range v3 library // // Copyright <NAME> 2014 // // 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) // // Project home: https://github.com/ericniebler/range-v3 // // Copyrig...
#include <string> #include <mutex> #include<random> #include "net_test.h" #include "saber/funcs/timer.h" #include "framework/core/mem_info.h" #include <chrono> #include "debug.h" #include <fstream> #include <sstream> #if defined(USE_CUDA) using Target = NV; using Target_H = X86; #elif defined(USE_X86_PLACE) using Targe...
#include <cherrypick-core.h> int cp_picker::parse_args(int argc, char* argv[]) { if (argc < 2) { fprintf(stderr, "* Please specify the massif output file!\n"); fprintf(stderr, "Usage: ./cherrypick {massif_output_file} {pattern}\n"); return 1; } if (argc < 3) { fprintf(stderr, "* Please specify pa...
#include <pch.cxx> #pragma hdrstop #include <ole2.h> #include "trkwks.hxx" #include "dltadmin.hxx" inline void WriteToSnapshot( HANDLE hFileSnapshot, const TCHAR *ptsz ) { ULONG cb, cbWritten; if( NULL != ptsz ) cb = _tcslen( ptsz ) * sizeof(TCHAR); else { cb = s...
#include <internal/findfrst.h> #include <internal/pathconv.h> #define SPECIAL_BITS (_A_SUBDIR|_A_HIDDEN|_A_SYSTEM) FindFirstRec::RecList FindFirstRec::recList; FindFirstRec* FindFirstRec::allocate(struct find_t *fileinfo, unsigned attrib, const char *pathname) { // The findfi...
// // FILE NAME: $HeadURL: svn+ssh://sstrick@svn.cm.aol.com/advertising/adlearn/gen1/trunk/lib/cpp/DataProxy/StreamTransformers/Validate/private/ValidateStreamTransformer.cpp $ // // REVISION: $Revision: 245305 $ // // COPYRIGHT: (c) 2008 Advertising.com All Rights Reserved. // // LAST UPDATED: $D...
#include "warpcopytools.h" WarpCopyTools::WarpCopyTools() { m_gcrBlock.resize(325); m_dataBlock.resize(260); } WarpCopyTools::~WarpCopyTools() {} // ---------- encode -------------------------------------------------------- void WarpCopyTools::encodeBlock(const QByteArray &realBlock, ...
///////////////////////////////////////////////////////////////////////////////////////////// // Copyright 2017 Intel 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 // /...
/* * Copyright (C) 2012, British Broadcasting Corporation * All Rights Reserved. * * Author: <NAME> * * 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...
#include"UnrolledLinkedList.h" void UnrolledLinkedList::add(int val) { // - C1-- : Urolled Linked List is empty if(head == NULL) { // if(tail == NULL) // if(numOfNodes == 0) // 1./ Create new new node head = tail = new Node(nodeSize); ++numOfNodes; // 2./ Insert the first element into the first node ...
/* * Copyright (C) 2007-2016 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 b...
#include "ac/keycode.h" #include <allegro.h> int GetKeyForKeyPressCb(int keycode) { // lower case 'a'..'z' do not exist as keycodes, only ascii. 'A'..'Z' do though! return (keycode >= 'a' && keycode <= 'z') ? keycode - 32 : keycode; } int PlatformKeyFromAgsKey(int key) { int platformKey = -1; switc...
// MPU6050 offset-finder, based on <NAME>'s MPU6050_RAW // 2016-10-19 by <NAME> (<EMAIL>) // I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class // 10/7/2011 by <NAME> <<EMAIL>> // Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib // // Changelog: // 2019...
/* OpenSceneGraph example, osgreflect. * * 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, publis...
#include "context.hpp" #include "draw.hpp" #include "polygon.hpp" #include "scene.hpp" #include <tkn/singlePassApp.hpp> #include <tkn/types.hpp> #include <tkn/shader.hpp> #include <tkn/render.hpp> #include <tkn/features.hpp> #include <tkn/pipeline.hpp> #include <dlg/dlg.hpp> #include <nytl/matOps.hpp> #include <vpp/sub...
// Copyright 2020 The TensorFlow Runtime 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 ...
// ****************************************************************** // * // * .,-::::: .,:: .::::::::. .,:: .: // * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;; // * [[[ '[[,,[[' [[[__[[\. '[[,,[[' // * $$$ Y$$$P $$""""Y$$ Y$$$P // * `88bo,__,o,...
/* -------------------------------------------------------------------------- * * Simbody(tm) Example: Assembler Playground * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
/*********************************** ID BLOCK ************************************** Due Date: October, 18th, 2013 Software Designer: <NAME> Course: 420-306 Fall 2013 Deliverable: Assignment #4--- Word Processing Description: This programs takes an already made 2D array of characters and parses them...