text
stringlengths
3.08k
22k
// // calibration.cpp // Thingml // // Created by <author> on 08/08/2017. // // #include "calibration.hpp" #include "constants.h" double angles[NUMBER_OF_POINTS_FOR_CALIBRATION][4]; int anglesIndex = 0; Pose posePb; Pose posePc; double pointError; bool calibrationFailed = false; class BaseStation { private: ...
// // A base class for platform specific window handling code // for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2018 by <NAME> and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this // file is ...
//===- subzero/crosstest/test_vector_ops_main.cpp - Driver for tests ------===// // // The Subzero Code Generator // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------...
#include <vector> #include <cmath> #include <complex> #include <cstdint> #include <cstdlib> #include <iostream> #include <string> #include <thread> #include <atomic> #include "CImg.h" double iter_for_point(const std::complex<double> &z, const std::complex<double> &c, const int MAX_ITER = 500) { int...
#include <bits/stdc++.h> using namespace std; #define MAX_ROW 100 #define MAX_COL 100 struct Node { struct Node *left; struct Node *right; struct Node *up; struct Node *down; struct Node *column; int rowID; int colID; int nodeCount; }; struct Node *header = new Node(); //matrix that ...
#include "Temperature.h" #include <Library/utils/Macros.hpp> #include <cmath> #include <iostream> #include <vector> using namespace std; Temperature::Temperature(const vector<vector<double>> cij, const vector<vector<double>> rij, vector<Node> vnodes, const int node_num, const double propstep...
#include "rs-range/permutation.hpp" #include "rs-format/string.hpp" #include "rs-tl/iterator.hpp" #include "rs-unit-test.hpp" #include <algorithm> #include <functional> #include <numeric> #include <random> #include <string> #include <vector> using namespace RS::Format; using namespace RS::Range; using namespace RS::TL...
/******************************************************************* * * DESCRIPTION: Convert Common .VAL files to .MA model definition files * used by CD++ * * AUTHOR: <NAME> * * EMAIL: mailto://<EMAIL> * * DATE: 26/06/1999 * *******************************************************************/ // ** i...
/* cl_view.cpp */ /* Copyright 1999, Be Incorporated. All Rights Reserved. This file may be used under the terms of the Be Sample Code License. */ #define DEBUG 1 #include <string.h> #include <stdlib.h> #include <time.h> #include "clock.h" #include "cl_view.h" #include <float.h> #include <math.h> #include ...
/** * @file * @brief Boat controller using a line-following method Source file * * Sail-boat controller for autonomous sail-boat - annotated version * Algorithm: https://www.ensta-bretagne.fr/jaulin/paper_jaulin_irsc12.pdf * * This controller is realized with approximations like the fact that locally the earth...
/* Copyright (C) 2011-2016 OldTimes Software This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed ...
//---------------------------- // Multi-platform mobile library // (c) <NAME> //---------------------------- #include <SndPlayer.h> #include <Util.h> //---------------------------- C_sound_writer_mixer::C_sound_writer_mixer(C_sound_player *_drv): pos_read_base_time(0), is_playing(false), src_num_channels(0)...
// // MS5803.cpp // // This library is for reading and writing to the MS5803 pressure/temperature sensor. // // Created by <NAME> on 4/10/13. // // // Copyright (c) 2013, <NAME>, <EMAIL> // for the DIY Dive Computer project www.diydivecomputer.com // All rights reserved. // Redistribution and use in...
//********************************************************* // System_Event_Output.cpp - System Event Output Interface //********************************************************* #include "System_Event_Output.hpp" #include "Network_Service.hpp" #include "Utility.hpp" char * System_Event_Output::OUTPUT_SYSTEM_EVENT_T...
// Define this property so that we get the prototypes, and then inclue gl31.h // first so that the other includes also have the define. #define GL_GLEXT_PROTOTYPES 1 #include <GLES3/gl31.h> #include "BasicHighlight.hpp" #include "BasicShadow.hpp" #include "BasicTracer.hpp" #include "Effect.hpp" #include "EmptyDetector...
// // Created by <EMAIL> // 2020-04-27 19:37 // #include "rect_texture.h" #include "env_context.h" #include "log.h" #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include <GLES3/gl31.h> #include <GLES3/gl3ext.h> #define LOG_TAG "rect_texture" namespace { float verticesTexture[] = { // 位置 ...
#include "./Mesh.h" #include <sstream> #include "../Renderer.h" Mesh::Mesh(const int idx, const tinygltf::Model& model, std::vector<uint16_t>& indicesBuffer, std::vector<float>& vertexBuffer, std::vector<Primitive>& primitives) { for (const auto& pData : model.meshes[idx].primitives) { Primitive p; ...
#include <stdio.h> #include <iostream> #include "Config.hpp" #include "common.hpp" #include "DepLibSRTP.hpp" #include "DepLibUV.hpp" #include "DepLibWebRTC.hpp" #include "DepOpenSSL.hpp" #include "DepUsrSCTP.hpp" #include "Logger.hpp" #include "MediaSoupErrors.hpp" #include "Settings.hpp" #include "Utils.hpp" #include...
#include "sci.h" #include "win.h" #include "dbg.h" #include <Scintilla.h> #include <SciLexer.h> #include <algorithm> #include "scinti.h" namespace dejlib3 { namespace sci { // some nice RGB colors: // "#3f3f3f", (63, 63, 63), // "#af3f3f", (175, 63, 63), // "#8B8B83", (139, 139, 131), // "#E...
/* * Copyright (C) 2008 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...
// // Created by Backer on 2019/1/15. // #include "include/buffer.h" #include "include/utils.h" #include <cstdio> #include <cstdlib> #include <iostream> const char * BGR2LAB_KERNEL[] = { "__kernel void bgr2lab(__read_only image2d_t Bimg_, __read_only image2d_t Gimg_, __read_only image2d_t Rimg_,\n" ...
/*! \file CodeMatrix.cpp \author <NAME>, <EMAIL> \version 0.9 \brief This file contains the implementation of the class CodeMatrix. */ // Copyright (c) 2010 Graz University of Technology (IAIK) <http://www.iaik.tugraz.at> // // This file is part of the CodingTool. // // The CodingTool is free softwa...
#include <cmath> #include <cstdlib> #include <iostream> #include <iomanip> #include <fstream> #include <sstream> #include <vector> #include <exception> #include "global.h" #ifndef BRUTEFORCESMOOTH extern void fft_smooth(std::vector<float>& delta, const int N, const float Rf); #endif void enclosing_box(const std::ve...
/** * Copyright (c) 2018, SOW (https://www.safeonline.world). (https://github.com/RKTUXYN) All rights reserved. * @author {SOW} * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ //12:03 PM 4/8/2020 # include "download_request.h" # include <stdio.h> # include <st...
/** * Copyright (c) 2013 <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.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
#include "Player.hpp" #include "Utils.hpp" #include "Converter.hpp" #include <iostream> const unsigned int PRECISION = 50; const unsigned int REACH_DISTANCE = 5; const float SPEED = 4.0f; const float PLAYER_WIDTH = 1.0f; const float PLAYER_HEIGHT = 2.0f; const float GRAVITY = 36.0f; math::vec3 position; // We declare...
/* Header includes */ #include "reducer.h" #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <pthread.h> #include <fcntl.h> #include <iostream> #include <grpcpp/grpcpp.h> #include "../mapreduce/map...
/* [The "BSD license"] Copyright (c) 2012-2013 <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of co...
/* * This file is part of SmartLamp application. * * 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 ...
//------------------------------------------------------------------------- // Programmer: <NAME> // // Summary: This program simulates a round-robin CPU // scheduler. Starting with zero (0) jobs, // New jobs may enter during a user // provided time period during each (user // provid...
#include "ofApp.h" const int defaultFontSize{32}; bool debug{false}; int handNodesSize{5}; int handConnectorsSize{5}; class Fonts { public: ofTrueTypeFont ASCIIFont; ofTrueTypeFont displayFont; void setASCIIFont(string fontPath, int size = defaultFontSize) { ASCIIFont.load(fon...
#include "../includes/RPPng.h" PngChunk::PngChunk(unsigned int _length, uint8_t* type, uint8_t* data, uint8_t* _CRC) { length = _length; chunkType = type; chunkData = data; CRC = _CRC; } PngChunk::~PngChunk() { delete[] chunkType; delete[] chunkData; delete[] CRC; } PngFile::PngFile(s...
/* * FileHeaderHandler.cpp * * Description: It provides methods to read / write the header * of the compressed file. * * * */ #include "OutBitStream.h" #include "FrequencyCounter.h" #include "HeaderFormat.h" // Desc: Write the required information to the header of the compressed file. // Post: I...
// Copyright (c) 2015 <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.org/licenses/LICENSE-2.0 * * THIS CODE IS PROVIDED ON AN *AS IS* BASI...
// Copyright 2016 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
/** * Copyright (c) 2018 La Cool Co SAS * * 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...
// use boost bind placeholders for now #include <locale.h> #include <thread> #include <iostream> #include <sstream> #include <fstream> #include <ctype.h> #include "include_base_utils.h" #include "console_handler.h" #include "common/i18n.h" #include "common/command_line.h" #include "common/util.h" #include "common/dns...
/* Tone.cpp A Tone Generator Library Written by <NAME> 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 version 2.1 of the License, or (at your option) any later version. ...
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* // ** Copyright UCAR, CSU (c) 1990 - 2018 // ** University Corporation for Atmospheric Research (UCAR) // ** National Center for Atmospheric Research (NCAR) // ** Colorado State University // ** BSD licence applies // ** DISCLAIMER: THIS SOF...
/* * Copyright 1995, 1996 Perforce Software. All rights reserved. * * This file is part of Perforce - the FAST SCM System. */ # include <stdhdrs.h> # include <strbuf.h> # include <error.h> # include <handler.h> # include <filesys.h> # include <md5.h> # include "clientuser.h" # include <msgclien...
/*** Include ***/ #include <cstdint> #include <cstdio> // #include <cstdlib> #include <cstring> #include "pico/stdlib.h" #include "tensorflow/lite/micro/all_ops_resolver.h" #include "tensorflow/lite/micro/micro_error_reporter.h" #include "tensorflow/lite/micro/micro_interpreter.h" #include "tensorflow/lite/s...
/* MIT License Copyright © 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 restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
#include "builtins.hpp" #include "class.hpp" #include "minify.hpp" #include "string-things.hpp" #include <algorithm> #include <cassert> #include <cctype> #include <unordered_set> // Names that absolutely must stay the same, or else the program may not be // able to call builtin functions or even run const std::unorde...
#include <cmath> #include <cstddef> #include <cstdint> #include <cstdio> #include <iterator> #include <string> #include <utility> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/container/flat_hash_set.h" #include "puzzles/day_20/bit_square.h" #include "util/check.h" #include "util/io.h" us...
#include "Kinematics.h" //mass 3He = 2809.413242 //mass d = 1876.123740 //mass 30Si = 27920.38734 //mass 31P = 28851.87339 //40./100./2.65*0.5/cos(TargetAngle*TMath::Pi()/180.) //40./100./2.65*0.5/cos((Q3DAngle-TargetAngle)*TMath::Pi()/180.) //20./100./2.253/cos((Q3DAngle-TargetAngle)*TMath::Pi()/180.) double E...
/******************************************************* * Copyright (C) 2019, Aerial Robotics Group, Hong Kong University of Science and Technology * * This file is part of VINS. * * Licensed under the GNU General Public License v3.0; * you may not use this file except in compliance with the License. * * Aut...
/////////////////////////////////////////////////////////////////////////// // // File: model_blobfinder.c // Author: <NAME> // Date: 10 June 2004 // // CVS info: // $Source: // /home/tcollett/stagecvs/playerstage-cvs/code/stage/libstage/model_blobfinder.cc,v // $ // $Author: rtv $ // $Revision$ // ///////////////...
#include "SimpleEvaluator.h" #include <algorithm> #include <limits> #include <math.h> SimpleEvaluator::SimpleEvaluator(BooleanDAG& bdag_p, map<string, int>& floatCtrls_p): bdag(bdag_p), floatCtrls(floatCtrls_p) { distances.resize(bdag.size(), NULL); int nctrls = floatCtrls.size(); if (nctrls == 0) nctrls = 1; ...
#include <cstdio> #include <cmath> #include <iostream> #include <string> #include <cstring> #include <algorithm> #include <vector> #include <utility> #include <stack> #include <queue> #include <map> #define fi first #define se second #define pb push_back #define mp make_pair #define pi 2*acos(0.0) #de...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
#include "yolo_trt.hpp" #include <iostream> using namespace std; #include <boost/filesystem.hpp> namespace fs = boost::filesystem; #include "NvUffParser.h" #include "NvInferPlugin.h" // #include "logger.h" #include "common.h" namespace nv = nvinfer1; namespace uff = nvuffparser; struct InferDeleter { templa...
#include "../include/Tree.hh" #include "../include/GenerateForce.hh" #include <cmath> //////////////////////////////////////////////////////////////////////////////// // Constructor takes many args to avoid a ton of set methods, but the names // should be obvious. If not, see header file. Tree can be manipulated // si...
/* Copyright (c) 2012, Broadcom Europe 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 conditions and the ...
#include <CGLUtil.h> #include <CGLTexture.h> #include <GL/glut.h> #include <cstring> using std::string; /* * From Mesa-2.2\src\glu\project.c * * Compute the inverse of a 4x4 matrix. Contributed by <EMAIL> */ void CGLUtil:: invertMatrix(const GLdouble *m, GLdouble *out) { /* NB. OpenGL Matrices are COLUMN major...
/*========================================================================= Program: Image Guided Surgery Software Toolkit Module: igstkSerialCommunicationTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) ISC Insight Software Consortium. All rights reserved. See IGSTKC...
/****************************************************************************/ /* */ /* Original algorithm: http://ivrg.epfl.ch/research/superpixels */ /* Original OpenCV implementation: http://github.com/PSMM/SLIC-Superpixels */ ...
#include <common/all.h> #include "gpslog.h" #include "coordinator.h" #include "models/radiomodel.h" void Coordinator::run() { int size{}; int rank{}; int name_length{}; char proc_name[MPI_MAX_PROCESSOR_NAME]{}; mpi::init(&size, &rank, &name_length, proc_name); this->world_size = size - 1; /*...
/** * @file gazebo_main.hpp * @Author <NAME> (<EMAIL>) * @date May, 2018 * @brief gazebo simulation * @section LICENSE * * BSD-3-Clause License * * @copyright Copyright (C) 2020 Intel Corporation * * Redistribution and use in source and binary forms, with or without modification, * are per...
// -*- C++ -*- // // ====================================================================== // // <NAME>, U.S. Geological Survey // <NAME>, GNS Science // <NAME>, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright ...
/** * @file NetworkConnectionWin32.cpp * * This module contains the Windows implementation of the * SystemAbstractions::NetworkConnection::Impl class. * * © 2016-2018 by <NAME> */ /** * WinSock2.h should always be included first because if Windows.h is * included before it, WinSock.h gets included which confl...
extern "C" { #include <base/log.h> #include <runtime/runtime.h> #include <runtime/smalloc.h> #include <runtime/storage.h> #include <openssl/conf.h> #include <openssl/evp.h> #include <openssl/err.h> } #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "net.h" #include "sync.h...
/**********************************************************\ Original Author: <NAME> (taxilian) Created: Oct 19, 2009 License: Dual license model; choose one of two: New BSD License http://www.opensource.org/licenses/bsd-license.php - or - GNU Lesser Gener...
/* * Copyright 2019 SiFive, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You should have received a copy of LICENSE.Apache2 along with * this software. If not, you may obtain a copy at * * https://www.apache.org/...
/* * Copyright 2004-2016 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 * *...
/* include 문 */ #include <ros/ros.h> #include <stdio.h> #include <stdlib.h> #include <iostream> #include <vector> #include <eDrone_msgs/Target.h> #include <eDrone_msgs/CheckState.h> #include <eDrone_msgs/CheckPosition.h> #include <eDrone_msgs/Arming.h> #include <eDrone_msgs/Takeoff.h> #include <eDrone_msgs/Goto.h> #i...
// // mostly from: https://github.com/roxlu/ofxOneDollar/ // #include "opencv2/opencv.hpp" using namespace cv; using std::vector; namespace onedollar { double length(const vector<Point> &points) { double len = 0; for (int i=1; i<points.size(); ++i) { len += norm(points[i-1] - points[i]); } return len; }...
/*************************************************************************** * Copyright (C) 2005 by * * <NAME> <EMAIL> * * <NAME> <EMAIL> * * ...
/** * @file * @brief Implementation of FCFS CPU scheduling algorithm * @details * FCFS is a non-preemptive CPU scheduling algorithm in which whichever process * arrives first, gets executed first. If two or more processes arrive * simultaneously, the process with smaller process ID gets executed first. * @link h...
#include "ins_core.h" #define GRAVITY 9.81 std::string turtle_name; ros::Publisher odom_pub; /*void poseCallback(const turtlesim::PoseConstPtr& msg){ ros::Time current_time; current_time = ros::Time::now(); static tf::TransformBroadcaster br; tf::Transform transform; transform.setOrigin( tf::Vec...
// The main ray tracer. #pragma warning (disable: 4786) #include "RayTracer.h" #include "scene/light.h" #include "scene/material.h" #include "scene/ray.h" #include "parser/Tokenizer.h" #include "parser/Parser.h" #include "ui/TraceUI.h" #include <cmath> #include <algorithm> extern TraceUI* traceUI; #include <iostr...
// 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 #include "gtest/gtest.h" #include "mtmalloc.h" #include "mtmalloc_large.h" #include <set> #include <thread> using MTM...
#include <fstream> #include <iostream> #include <sstream> #include <cassert> #include <vector> /** * @file arbreCubes.cpp * @author <NAME> && <NAME> * @since 01/05/2015 * @brief implémentation des méthodes de la classe arbrecubes * **/ #include "arbreCubes.hpp" using namespace std; arbrecu...
//----------------------------------------------------------------------- // <copyright file="FileTransferClient.cc" company="AllSeen Alliance."> // Copyright (c) 2012,2014 AllSeen Alliance. All rights reserved. // // Permission to use, copy, modify, and/or distribute this software for any // purpose ...
// This is a simple skeleton of a typical harvesting client. Its only // purpose is to produce easy to interpret results in order to quickly // x-check them and validate all the possible scenarios in which we // can book/reset/collate histograms. // // LS-based histograms' harvesting // // It uses few helper classes, C...
#include <iostream> #include "datatypes.h" #include "predictors.h" #include "profile.h" #include "library_float.h" #include "model_float.h" #include "vars_float.h" using namespace std; using namespace seedot_float; using namespace vars_float; float vars_float::tmp6[20][1]; float vars_float::tmp7[20][1]; MYINT vars_f...
#include "state.hpp" #include "search.hpp" #include "evaluate.hpp" static sheena::Array<int, 7> aspiration_window({ Pawn / 2, Pawn / 2, Pawn, Pawn * 2, Pawn * 3, Pawn * 5, MateValue * 2, }); static int futility_margin(int depth){ if(depth > 2 * depth_scale)return MateValue * 2; else return KnightValue; } static con...
/** @file * This is an Arduino library to measure weight using load cells with the ADS1230 IC from Texas Instruments. * * Copyright (c) 2015 Circuitar * This software is released under the MIT license. See the attached LICENSE file for details. */ #include <Nanoshield_LoadCell.h> #include <util/atomic.h> // Config...
/* * Copyright (C) 2019 Square, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
/** MIT License Copyright (c) 2018 <NAME> and <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 <Arduino.h> #include <SAMDTimerInterrupt.h> #include <Adafruit_NeoPixel.h> #include <SdFat.h> #include <Adafruit_SPIFlash.h> #include "Adafruit_TinyUSB.h" #pragma region flash // On-board external flash (QSPI or SPI) macros should already // defined in your board variant if supported // - EXTERNAL_FLASH_USE_...
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/* @file InitCoreNav.cpp * @brief CoreNav Initialization Process * @author <NAME> */ #include <init_core_navigation/InitCoreNav.h> #include <geometry_msgs/PoseStamped.h> #include <geometry_utils/GeometryUtilsROS.h> #include <parameter_utils/ParameterUtils.h> #include <geometry_msgs/TransformStamped.h> #include <n...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/gpu/GrProgramDesc.h" #include "include/private/SkChecksum.h" #include "include/private/SkTo.h" #include "src/gpu/GrPipeline.h" #include "src/gpu/GrPrimitiveProc...
/* * 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 (c) 2016, <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, mo...
/* * Copyright (c) 1999-2008 <NAME> and <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 condit...
// Concord // // Copyright (c) 2020-2021 VMware, Inc. All Rights Reserved. // // This product is licensed to you under the Apache 2.0 license (the "License"). // You may not use this product except in compliance with the Apache 2.0 // License. // // This product may include a number of subcomponents with separate copyr...
#include "BreakoutApp.h" #include <OficinaFramework/InputSystem.hpp> #include <ostream> #include <iomanip> #include <algorithm> using namespace OficinaFramework; #include "MainMenuApp.h" /// CAMPOS GERAIS int LEVEL = 0; bool RUMBLE = false; int LIVES = 5; std::string LEVE...
// Copyright 2019 The Fuchsia 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 <ctype.h> #include <dirent.h> #include <fcntl.h> #include <fuchsia/device/llcpp/fidl.h> #include <fuchsia/hardware/cpu/ctrl/llcpp/fidl.h> #include...
// license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** video.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "emu.h" #include "video/resnet.h"...
/* Copyright (c) 2015 Northeastern University * All rights reserved. * * Developed by:Northeastern University Computer Architecture Research (NUCAR) * Group, Northeastern University, http://www.ece.neu.edu/groups/nucar/ * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this so...
/* * Copyright (c) 2011-2021 Mellanox Technologies 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: * * 1. Redistributions of source code must retain the above copyright notice, * t...
#include "toonz/boardsettings.h" // TnzLib includes #include "toonz/toonzscene.h" #include "toonz/tproject.h" #include "toonz/sceneproperties.h" #include "toonz/toonzfolders.h" #include "toutputproperties.h" #include "tsystem.h" #include <QImage> #include <QDate> #include <QDateTime> #include <QFontMetricsF> #include...
#include <sys/socket.h> #include <sys/ioctl.h> #include <net/if.h> #include <arpa/inet.h> #include <linux/route.h> #include <linux/sockios.h> #include <stdio.h> #include <math.h> #include <time.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <dirent.h> #include <vector> #include <string> #inc...
/* * Copyright 2009-2014 <NAME> * Copyright 2013 Luke (noryb009) * Based on BeVexed by DarkWyrm Copyright 2007-2009 * * Distributed under terms of the MIT License. * */ /* example layout, 4 rows, 4 columns = 16 hexagon tiles col0 col1 col2 col3 ______ ...
#include "ArgumentParser.h" ArgumentParser &ArgumentParser::setProgramDescription(const std::string &programDescription) { this->programDescription = programDescription; return *this; } ArgumentParser &ArgumentParser::addOption(const std::string &name, const std::stri...
// Magic Software, Inc. // http://www.magic-software.com // Copyright (c) 2000-2002. All Rights Reserved // // Source code from Magic Software is supplied under the terms of a license // agreement and may not be copied or disclosed except in accordance with the // terms of that agreement. The various license ag...
#include "mainwindow.h" #include <QToolBar> #include <QAction> #include <QFileDialog> #include <QScrollArea> #include <QMessageBox> #include <QFile> #include <QByteArray> #include <QSettings> #include <QMenu> #include <QMenuBar> #include <QInputDialog> #include <QTextEdit> #include <QSpinBox> #include <QDebug> #inclu...
#include <string> #include <vector> #include "enums.h" #include "exceptions.h" #include "helper.h" #include "piece.h" #include "pieceCounts.h" #include "position.h" #include "squareInfo.h" void Position::updateCounts(PieceCounts &counts, const Piece &piece, bool increment) { int delta = increment ? 1 : -1; sw...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <algorithm> #include <array> #include <boost/functional/hash.hpp> #include <cstddef> #include <functional> #include <tuple> #include <type_traits> #include <utility> // IWYU pragma: keep // for std::forward #include "DataStr...