text
stringlengths
3.08k
22k
/* * Copyright (c) 2021 dresden elektronik ingenieurtechnik gmbh. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * */ #include <regex> #include <deconz/dbg_trace....
#include <fat.h> #include <gccore.h> #include <malloc.h> #include <math.h> #include <ogc/lwp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <wiiuse/wpad.h> #include <vector> #include <async/EventQueue.h> #include <async/Future.h> #include <render/Texture.h> #include <render/RenderableGroup.h>...
// This module implements the QsciLexerPOV class. // // Copyright (c) 2019 Riverbank Computing Limited <<EMAIL>> // // This file is part of QScintilla. // // This file may be used under the terms of the GNU General Public License // version 3.0 as published by the Free Software Foundation and appearing in // the file...
// This file is part of snark, a generic and flexible library for robotics research // Copyright (c) 2011 The University of Sydney // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // 1. Redistr...
// The 3-Clause BSD License // Copyright (C) 2019, KessK, all rights reserved. // Copyright (C) 2019, Kison.Y, all rights reserved. // Redistribution and use in source and binary forms, with or without modification, are permitted provided that the // following conditions are met:Redistribution and use in source and bi...
// Distributed under the MIT License. // See LICENSE.txt for details. /// \file /// Defines ET for tensor inner and outer products #pragma once #include <array> #include <cstddef> #include <type_traits> #include <utility> #include "DataStructures/Tensor/Expressions/Contract.hpp" #include "DataStructures/Tensor/Expr...
/* * Nimrod/G Embedded for RCC's HPC environment * https://github.com/UQ-RCC/nimrod-embedded * * SPDX-License-Identifier: Apache-2.0 * Copyright (c) 2019 The University of Queensland * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lic...
#include "FaceLandmark.h" bool FaceLandmark::hasGPU = true; bool FaceLandmark::toUseGPU = true; FaceLandmark *FaceLandmark::detector = nullptr; FaceLandmark::FaceLandmark(AAssetManager *mgr, bool useGPU) { hasGPU = ncnn::get_gpu_count() > 0; toUseGPU = hasGPU && useGPU; FaceNet = new ncnn::Net(); // ...
#include <stdint.h> #include <stdlib.h> #include "char_width.h" uint32_t zero_width_chars[][2] = { { 0x0300, 0x036F }, { 0x0483, 0x0486 }, { 0x0488, 0x0489 }, { 0x0591, 0x05BD }, { 0x05BF, 0x05BF }, { 0x05C1, 0x05C2 }, { 0x05C4, 0x05C5 }, { 0x05C7, 0x05C7 }, { 0x0600, 0x0603 }, { 0x0610, 0x0615 }, { 0...
#include <iostream> //#include <conio.h> #include "leet.h" #include "options.h" #include "filebuffer.h" #include "generator.h" using namespace std; const string DEFAULT_OUTPUT = "./output.txt"; const string DEFAULT_LEET_CONFIG = "./leet.config"; enum MODE { MODE_HELP, MODE_RUN, MODE_CONFIG }; enum ARGUM...
#include "App.h" #include "Input.h" #include "Textures.h" #include "Audio.h" #include "Render.h" #include "Window.h" #include "Scene.h" #include "Player.h" #include "UI.h" #include "Log.h" #define M_PI 3.14159265358979323846f Player::Player() { name.Create("player"); } Player::~Player() { } bool Player::Awake(pu...
#include <boost/scope_exit.hpp> #include "CharacterInterface.h" #include "Qor/Sound.h" #include <glm/gtx/vector_angle.hpp> #include "World.h" using namespace std; using namespace glm; CharacterInterface :: CharacterInterface( const shared_ptr<Controller>& input, const shared_ptr<Node>& character, World* wo...
#include "zookeeper_cc/zookeeper_cc.h" #include <stdlib.h> #include <unistd.h> #include <string> #include <chrono> #include <iostream> #include <sstream> #include <future> #include <gtest/gtest.h> #include <gmock/gmock.h> using zookeeper_cc::Zookeeper; using ::testing::UnorderedElementsAre; using ::testing::AnyOf; us...
/* */ /* * File: Node.cpp * Author: virgolin * * Created on June 27, 2018, 11:57 AM */ #include "Node.h" using namespace std; using namespace arma; using child_iter = std::vector<Node *>::iterator; Node::Node(Operator * op) { this->op = op; this->parent = NULL; this->cached_fitness = arma...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <borrrdex/core/framebuffer.h> #include <borrrdex/core/keyboard.h> #include <borrrdex/graphics/font.h> #include <borrrdex/graphics/graphics.h> #include <borrrdex/graphics/types.h> #include <borrrdex/syscall.h> #include <unistd.h> #include <termios.h> #i...
/* * Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.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 ...
// // Copyright 2015 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // ...
/***************************************************************** * HMMER - Biological sequence analysis with profile HMMs * Copyright (C) 1992-2003 Washington University School of Medicine * All Rights Reserved * * This source code is distributed under the terms of the * GNU General Public License. See the f...
//public domain #include <iostream> #include <string> #include <sstream> #include <cstring> #include <algorithm> #include <mpblas_mpfr.h> #include <mplapack_mpfr.h> #define MPFR_FORMAT "%+68.64Re" #define MPFR_SHORT_FORMAT "%+20.16Re" inline void printnum(mpreal rtmp) { mpfr_printf(MPFR_SHORT_FORMAT, mpfr_ptr(rtmp))...
#include "LeapCamera.h" LeapCamera::LeapCamera(bool showHandInformation, bool useOpenCVWindow) : showHandInfo(showHandInformation) , showLeapImage(useOpenCVWindow) { fingerNames.emplace_back("Thumb"); fingerNames.emplace_back("Index"); fingerNames.emplace_back("Middle"); fingerNames.emplace_back("Ring"); fin...
/*************************************************************************/ /* */ /* Carnegie Mellon University */ /* Copyright (c) 2007 */ /* ...
#include "pch.h" #include "DateTime.h" void Janyee::DateTime::CheckErrno(errno_t err) { switch (err) { case 0: return; case EPERM: throw DateTimeException(L"Operation not permitted."); case ENOENT: throw DateTimeException(L"No such file or directory."); case ESRCH: throw DateTimeException(L"No su...
//===- MapFile.cpp --------------------------------------------------------===// // // 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 // //===---------------------------...
// get_server_status2.cpp -*- C++ -*- // $Id: get_server_status2.cpp,v 1.4 1998-02-12 15:33:55-08 jason Exp $ // Copyright 1996-1997 Lyra LLC, All rights reserved. // // program which connects to given host/port and retrieves server status #include <errno.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> ...
/* d-target.cc -- Target interface for the D front end. Copyright (C) 2013-2020 Free Software Foundation, Inc. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any late...
#define NOMINMAX #include "volume/OpenVDBLoader.h" #include "volume/Volume.h" #include "volume/VolumeData.h" #include <openvdb/openvdb.h> #include <openvdb/tools/Interpolation.h> #include <tbb/enumerable_thread_specific.h> #include <tbb/parallel_for.h> #include <limits> namespace { // code from OpenVDBForUnity // ...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
#include <ros/ros.h> #include <ros/console.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> #include <avora_msgs/SonarScanLine.h> #include <avora_msgs/SonarScan.h> #include <avora_msgs/ProcessedScan.h> #include <avora_msgs/Row....
// // Copyright 2017 Pixar // // 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 wri...
#include "middleware/node_editor/noiseutils.h" #include <algorithm> #include <mathconsts.h> using namespace noise; using namespace noise::model; using namespace noise::module; using namespace noise::utils; ////////////////////////////////////////////////////////////////////////////// // RendererImage class Render...
/* * This file is part of the Visual Computing Library (VCL) release under the * MIT license. * * Copyright (c) 2020 <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 r...
// ======================================================================== // // Copyright 2018-2019 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
#include "LoRaHelper.h" #include "Sodaq_wdt.h" #define LORA_MAX_RETRIES 3 // version of "hex to bin" macro that supports both lower and upper case #define HEX_CHAR_TO_NIBBLE(c) ((c >= 'a') ? (c - 'a' + 0x0A) : ((c >= 'A') ? (c - 'A' + 0x0A) : (c - '0'))) #define HEX_PAIR_TO_BYTE(h, l) ((HEX_CHAR_TO_NIBBLE(h) << 4) + ...
/*-----------------------------------------------------------*/ /* Block Sorting, Lossless Data Compression Library. */ /* Adler-32 checksum functions */ /*-----------------------------------------------------------*/ /*-- This file is a part of bsc and/or libbsc, a program and a...
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE_render file in the root directory of this subproject. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include <io...
// ################################################################################## // // UDMlib - Unstructured Data Management Library // // Copyright (C) 2012-2015 Institute of Industrial Science, The University of Tokyo. // All rights reserved. // // Copyright (c) 2015 Advanced Institute for Computational Science,...
/* *File: format-output.cc *Last Updated on 8/19/09 *By <NAME> *Turn output from the answer set solvers to a more readable format. */ #include <iostream> #include <string> #include <sstream> using namespace std; #define NUM_PREDICATES 600 #define NUMBER 200 void insertNode(string atom); int stringToI...
#include "Camera.h" #include "Scene.h" #include <math.h> Camera::Camera(){ type = CAMERA_TYPE; eye = Point(-16.0f, 10.0f, -16.0f); focus = Point(0,1,0); up = Point(0, 1, 0); fovy = 90; zNear = 0.1; zFar = 500; String c("Cam"); name = Scene::name(c); zoomScale = .20f; distanc...
#include "rack.hpp" #define FONT_FILE assetPlugin(plugin, "res/bold_led_board-7.ttf") //#define mFONT_FILE assetPlugin(plugin, "res/DIN Condensed Bold.ttf") #define mFONT_FILE assetPlugin(plugin, "res/Munro.ttf") #include <iomanip> // setprecision #include <sstream> // stringstream using namespace rack; RACK_PLUGI...
// Copyright (c) 2019 by <NAME>. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
/* -*-c++-*-------------------------------------------------------------------- * 2019 <NAME> <EMAIL> */ #include "tagslam/graph.h" #include "tagslam/body.h" #include "tagslam/logging.h" #include "tagslam/camera.h" #include "tagslam/gtsam_optimizer.h" #include "tagslam/value/pose.h" #include "tagslam/factor/absolute...
/*========================================================================= Program: Visualization Toolkit Module: TestGPURayCastClippingUserTransform.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WI...
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// Copyright (c) 2006-2008 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 "net/base/filter.h" #include "base/string_util.h" #include "net/base/gzip_filter.h" #include "net/base/bzip2_filter.h" #include "net/ba...
/** * Copyright 2014 University of Bremen, Institute for Artificial Intelligence * Author: <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
#include<GL/glew.h> #include<glfw3.h> #include<stdio.h> #include"shader.cpp" #include<math.h> #include<glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> using std::cout; using std::ifstream; using std::string; using std::getline; void error_callback(int error, const char* descriptio...
/************************************************************************** *** *** Copyright (c) 1995-2000 Regents of the University of California, *** <NAME>, <NAME> and <NAME> *** Copyright (c) 2000-2007 Regents of the University of Michigan, *** <NAME>, <NAME>, <NAME> and *** ...
#include <Arduino.h> #include <BLE2902.h> #include <BLEDevice.h> #include <BLEServer.h> #include <BLEUtils.h> #include "Settings.h" #include "ZwiftBle.h" #include "buttonPressEvent.h" int FF = 0xFF; byte authChallenge[4] = {0x03, 0x10, 0xff, 0xff}; byte authSuccess[3] = {0x03, 0x11, 0xff}; static bool deviceConnected...
#include "canvas.h" #include <cassert> #include <iostream> using namespace std; using namespace agl; canvas::canvas(int w, int h) : _canvas(w, h) { // default background is black background(0, 0, 0); } canvas::~canvas() = default; void canvas::save(const std::string &filename) { _canvas.save(filename); ...
#include <iostream> #include <mpi.h> #include <stdexcept> #include <string.h> #include <cstdlib> #include "mdi.h" void mpi_error(const char* errormsg) { std::cerr << errormsg << std::endl; MPI_Abort(MPI_COMM_WORLD, 1); } int code_for_plugin_instance(void* mpi_comm_ptr, MDI_Comm mdi_comm, void* class_object) { ...
/* Copyright (C) 2016 Quaternion Risk Management Ltd All rights reserved. This file is part of ORE, a free-software/open-source library for transparent pricing and risk analysis - http://opensourcerisk.org ORE is free software: you can redistribute it and/or modify it under the terms of the Modified BSD License...
/* * VeyonConnection.cpp - implementation of VeyonConnection * * Copyright (c) 2008-2019 <NAME> <<EMAIL>> * * This file is part of Veyon - https://veyon.io * * 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 ...
#include "vtkLabelSizeCalculator.h" #include "vtkCellData.h" #include "vtkDataObject.h" #include "vtkDataSet.h" #include "vtkDataSetAttributes.h" #include "vtkFieldData.h" #include "vtkGraph.h" #include "vtkInformation.h" #include "vtkInformationVector.h" #include "vtkIntArray.h" #include "vtkLabelHierarchy...
#include <stdio.h> #include <string.h> #include <time.h> #include <GL/gl.h> #include <GL/glu.h> #include "main.h" #include "stars.h" string Effect22::getName() { return "GLUT Objects II"; } /* state variables */ /*static int blend = 1;*/ static int frame_count = 0; /* number of frames drawn */ #define NUMOBJ...
/* === This file is part of Calamares - <https://github.com/calamares> === * * Copyright 2016, <NAME> <<EMAIL>> * Copyright 2017-2019, <NAME> <<EMAIL>> * * Calamares 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...
// license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** jagdasm.cpp Disassembler for the portable Jaguar DSP emulator. Written by <NAME> ***************************************************************************/ #include "emu.h" #...
// Copyright 2015 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 "components/domain_reliability/header.h" #include <stdint.h> #include <string> #include "base/memory/ptr_util.h" #include "base/strings/string_...
/*************************************************************************** vidhrdw.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "driver.h" #include "vidhrdw/generic.h" unsigned char *vulgus_bgvideoram,*vulgus...
#include <pcl/surface/openNURBS/opennurbs.h> ON_Box::ON_Box() {} ON_Box::ON_Box(const ON_BoundingBox &bbox) { Create(bbox); } ON_Box::~ON_Box() {} void ON_Box::Destroy() { plane = ON_xy_plane; dx.Destroy(); dy.Destroy(); dz.Destroy(); } bool ON_Box::IsValid() const { return (dx.IsIncreasing() &...
#include "evolutor.h" #include "tridiag.h" #include "utils.h" void TimeEvolutor::dumpSpectrum(const Particle& f, size_t idisc, size_t counter) const { std::string filename = "output/f_spectrum_at_" + std::to_string(counter) + ".txt"; std::cout << "printing f on this file: " << filename << " ... "; std::ofstream out...
#include <gst/gst.h> #include <gst/app/gstappsrc.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <gdk-pixbuf/gdk-pixbuf.h> GST_DEBUG_CATEGORY (appsrc_pipeline_debug); #define GST_CAT_DEFAULT appsrc_pipeline_debug /** * double ms_time(void): returns the current time as a double floating poin...
#include <bitset> #include <iostream> #include <vector> #include <fstream> #include <regex> #include <string> #include <queue> #include <list> #include <math.h> /* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ g++ --std=c++11 BIT_DECRYPT.cpp -o BIT_DECRYPT && ./BIT_DECRYPT ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~...
#include "DQMOffline/RecoB/plugins/BTagPerformanceHarvester.h" #include "FWCore/Utilities/interface/InputTag.h" #include "DQMOffline/RecoB/interface/Tools.h" #include "DQMOffline/RecoB/interface/TagInfoPlotterFactory.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Framework/interface/Maker...
/* * Copyright <NAME>, 2018 * Use, modification and distribution are 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 <iostream> #include <fstream> #include <vector> #include <string> #include <complex> #incl...
#pragma once #include "ECSCore/Orchestrator.hpp" #include "Components/RigidBody3D.hpp" #include "Components/Transform3D.hpp" #include "Components/Mesh.hpp" #include "Components/Tag.h" #include <reactphysics3d/reactphysics3d.h> #include <unordered_map> extern lazyECS::Orchestrator gOrchestrator; namespace lazyECS { ...
// sling.cpp // Author: <NAME> <<EMAIL>> // // More background: // http://allenporter.tumblr.com/post/6957276932/upstream-bandwidth #include <sys/types.h> #include <sys/event.h> #include <sys/time.h> #include <sys/socket.h> #include <netinet/in_systm.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet...
/* This file is based on input_tdm from * https://github.com/PaulStoffregen/Audio * * Audio Library for Teensy 3.X * Copyright (c) 2017, <NAME>, <EMAIL> * * Development of this audio library was funded by PJRC.COM, LLC by sales of * Teensy and Audio Adaptor boards. Please support PJRC's efforts to develop * ...
/* pru.cpp: Management interface to PRU0 & PRU1. Copyright (c) 2018, <NAME> <EMAIL>, www.retrocmp.com 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 l...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
#include "rr_node.h" #include "globals.h" #include "vpr_error.h" /* Member function of "t_rr_node" used to retrieve a routing * * resource type string by its index, which is defined by * * "t_rr_type type". */ const char* t_rr_node::type_string() const { return rr_node_typename[type()]; } ...
/* BLAKE reference C implementation Copyright (c) 2012 <NAME> <<EMAIL>> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have...
#include <torch/torch.h> #include <torch/script.h> #include <torch/autograd.h> #include <torch/utils.h> #include <unistd.h> #include <iomanip> #include <atomic> #include <string> #include <algorithm> #include <iostream> #include <chrono> #include "../csvloader.h" #include "../utils.h" #include "../utils/ch_11_util.h"...
#include "global.h" /* TODO: 1. FIX TIMER 2. MAKE 2PLAYER SUPPORT WORK CORRECTLY 3. FIX THE MODE SWITCHER FOR EXTRAMIX FOR 2 PLAYER 3a. MAKE IT METRICABLE */ #include "MusicBannerWheel.h" #include "RageUtil.h" #include "GameState.h" #include "PrefsManager.h" #include "SongManager.h" #include "ThemeManager.h" #includ...
/* id_test.cc <NAME>, 17 February 2012 Copyright (c) 2012 Datacratic. All rights reserved. */ #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include <iostream> #include "soa/types/id.h" #include "jml/db/persistent.h" #include "soa/types/date.h" using namespace ML; us...
#include <gtk/gtk.h> #define _USE_MATH_DEFINES #include <math.h> //#include <complex.h> #include "gtkgraph.h" #include "gtkgraph_internal.h" static gint centre_x; static gint centre_y; /* Important to note that the Smith Chart actually plots reflection coefficient and thus */ /* should range with |R| between the limi...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "dicom_.h" #include "BinaryIO.h" #include <iostream> #include <fstream> #ifndef WIN32 #include <unistd.h> #else #include <io.h> #endif //#define ...
#include "OBJLoader.h" #include "util/Log.h" seca::render::Object seca::format::OBJLoader::loadOBJ(const char *_file, const char *_path) { seca::render::Object o; o.vaoId = 0; o.vboVId = 0; o.vboUvId = 0; o.vboNorId = 0; std::string base_dir = _path; std::string inputfile = ""; inputfile.append(_path); in...
/* * Copyright 2018 Autoware Foundation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
#include "System/BoolVec.h" #include "Inst/Memcpy.h" #include "TypeInSane.h" #include "Variable.h" #include "Ref.h" #include "Vm.h" Variable::Variable( const RcPtr<Ref> &ref, const KuSI64 &offset, const KuSI64 &length, Type *type, Variable::Flags flags ) : ref( ref ), offset( offset ), length( length ), type( type ), ...
/* Copyright © 2015 by The qTox Project Contributors This file is part of qTox, a Qt-based graphical interface for Tox. qTox is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 ...
// Scintilla source code edit control /** @file LexCrontab.cxx ** Lexer to use with extended crontab files used by a powerful ** Windows scheduler/event monitor/automation manager nnCron. ** (http://nemtsev.eserv.ru/) **/ // Copyright 1998-2001 by <NAME> <<EMAIL>> // The License.txt file describes the conditions un...
/* Copyright (c) 2010, <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: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
#include "Stdinc.h" #define SAVEDATAFILE "SaveData.dat" #define CHECKDIGIT 4690 Sd_t Sd; PlayChara_t Sd_PlayChara; singleton(Sd_BestTimeTable, autoList<int>, new autoList<int>()); static autoQueue<uchar> *FileImage; static char *ReadLine(void) { return q_readLine(FileImage); } static char *c_ReadLine(void) { sta...
/* {{{ Includes */ #include <stdint.h> #include <stdio.h> #include <sys/time.h> #include <math.h> #include "escape.h" #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #ifndef timersub /* This is a copy from GNU C Library (GNU LGPL 2.1), sys/ti...
/* ============================================================================== Dynamic1DWave.cpp Created: 18 Feb 2021 2:33:27pm Author: <NAME> ============================================================================== */ #include <JuceHeader.h> #include "Dynamic1DWave.h" //=====...
// // Created by moqi on 2018/2/1. // #define LOG_TAG "DemuxerTest" #include <utils/tty.h> #include <utils/frame_work_log.h> #include <utils/errors/framework_error.h> #include <pthread.h> #include <cerrno> #include <utils/timer.h> #include "demuxer/demuxer_service.h" #include "data_source/IDataSource.h" #include "co...
/** * hapd * * Copyright 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 limitation the rights to use, copy, modify, merge, publ...
#include <Maestro.H> #include <Maestro_F.H> using namespace amrex; // compute eta_rho at edge- and cell-centers void Maestro::MakeEtarho (const Vector<MultiFab>& etarho_flux) { // timer for profiling BL_PROFILE_VAR("Maestro::MakeEtarho()", MakeEtarho); #ifdef AMREX_USE_CUDA bool launched; if (determ...
// Task 5 - Draw a 2D shape using polygons and animate it // - Encapsulate the shape using a class // - Use color_vert/frag shader to display the polygon // - Animate the object position, rotation and scale. #include <cmath> #include <iostream> #include <vector> #define GLM_ENABLE_EXPERIMENTAL #...
/** * regex move: main file. * * This work is free. You can redistribute it and/or modify it under the * terms of the MIT No Attribution license. See the COPYING file for more * details. */ #include <iostream> #include <regex> #include <sstream> #include <string> #include <system_error> #include <vector> #incl...
// Copyright 2010 <NAME> // henry UNDERSCORE christophe AT hotmail DOT com // This is an extended version of the state machine available in the boost::mpl library // Distributed under the same license as the original. // Copyright for the original version: // Copyright 2005 <NAME> and <NAME>. Distributed // under...
// Copyright (c) 2012 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 <deque> #include <stdlib.h> #include "base/bind.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "media/base/video_...
// LinearInterpolation.cpp // Implements methods for linear interpolation over 1D, 2D and 3D arrays #include "Globals.h" #include "LinearInterpolation.h" /* // Perform an automatic test upon program start (use breakpoints to debug): extern void Debug3DNoise(float * a_Noise, int a_SizeX, int a_SizeY, int a_Size...
// // Created by dang on 9/24/18. // #include "CGContext.h" #include "../../../common/geometry.h" #include "CGGradient.h" #include <algorithm> #include <math.h> void CGContext::clipTargetByHalfPlane(dl_CGPoint hp_point, dl_CGPoint hp_vec) { dl_CGRect rect = {{0, 0}, {(dl_CGFloa...
#include <stdint.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <getopt.h> /* half-wave pulse timer values */ #define CBMPULSE_SHORT (0x30 - 1) #define CBMPULSE_MEDIUM (0x42 - 1) #define CBMPULSE_LONG (0x56 - 1) uint32_t tapDataLen = 0; struct tapHeader { char magic[12]; uint8_t ve...
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /*====== This file is part of PerconaFT. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. PerconaFT is free software: you can redistribute it and/or modif...
#include "gpudb/GPUdb.hpp" #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/lexical_cast.hpp> #include <boost/optional/optional_io.hpp> void run(gpudb::GPUdb &gpudb) { std::map<std::string, std::string> options; // Get the version information ...
/* * Copyright 2019 Carnegie Technologies * * 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 l...
/* * Copyright © 2013 <NAME> * 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 that both that copyright * notice and this permission notice appear in suppo...
/** @file A brief file description @section license License 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 ...