text stringlengths 5.71k 33.7k |
|---|
#include "params.h"
#include "ui_interface.h"
std::map<std::string, ParamFile> mapParams;
JsonDownload downloadedJSON;
static const int K_READ_BUF_SIZE{ 1024 * 16 };
std::string CalcSha256(std::string filename)
{
// Initialize openssl
SHA256_CTX context;
if(!SHA256_Init(&context)) {
return "";
... |
/**
* @file callback_test.cpp
* @author <NAME> <<EMAIL>>
* @date Apr, 2018
* @copyright Copyright (C) 2018, Hiventive.
*
* @brief Tests for registerfile.h
*/
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <cstring>
#include <gtest/gtest.h>
#include <hv/common.h>
using namespace ::hv::common... |
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h> // for socket(), bind(), and connect().
#include <arpa/inet.h> // for sockaddr_in and inet_nota().
#include <unistd.h> // for close().
#include <string.h>
#include <map>
#include <sys/time.h>
#include "image_util.h"
extern "C" {
#inclu... |
/*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
softwar... |
/*
Copyright © 2016, The Pennsylvania State University
All rights reserved.
Copyright © 2016 Forschungszentrum Jülich GmbH
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted under the GNU General Public License v3 and provided that the following conditi... |
/* ----------------------------------------------------------------------------
* Robotics Laboratory, Westphalian University of Applied Science
* ----------------------------------------------------------------------------
* Project : Stereo Vision Project
* Revision : 1.0
* Recent changes : 18.06.2014
... |
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <malloc.h>
#include <fstream>
using namespace std;
int m,*p,sn,arg,arg2,tkt,tkt_pr,cost=0,ext,nt=0,sti;//sn is variable for show number in manager function N m is for number of shows in a day
//sti is for showtime input i... |
/* _ _
* _ __ ___ (_)_ __ | | __
* | '_ ` _ \| | '_ \| |/ /
* | | | | | | | | | | <
* |_| |_| |_|_|_| |_|_|\_\
*
* SPDX-License-Identifier: MIT
*
*/
#include "daemon.h"
#include <thread>
#include <future>
#include <mink_plugin.h>
#include <gdt_utils.h>
#include <mink_err_codes.h>
#include <... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
#include "L1Trigger/GlobalCaloTrigger/plugins/L1GctValidation.h"
#include "FWCore/PluginManager/interface/ModuleDef.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CommonTools/UtilAlgos/interface/TF... |
#include "csm/csm_all.h"
#include "csm/utils.h"
#include "csm/laser_data_yogo.h"
#include "icp/icp_yogo.h"
#include "icp/icp_optimization.h"
#include <g2o/core/block_solver.h>
#include <g2o/core/sparse_optimizer.h>
#include <g2o/core/factory.h>
#include <g2o/core/optimization_algorithm_factory.h>
#include <g2o/core/op... |
#include "game.hpp"
namespace {
namespace Keypress {
namespace Code {
enum { CODE_ESC = 27, CODE_LSQUAREBRACKET = '[' };
// Hotkey bindings:
// Style: ANSI (Arrow Keys)
enum {
CODE_ANSI_TRIGGER_1 = CODE_ESC,
CODE_ANSI_TRIGGER_2 = CODE_LSQUAREBRACKET
};
enum {
CODE_ANSI_UP = 'A',
CODE_ANSI_DOWN = 'B',
CODE_... |
/*
*
* Copyright 2016 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
#include "Colors.hpp"
Color::Color() : R(255), G(255),B(255), A(255) {}
Color::Color(uint8_t rgba) : R(rgba), G(rgba), B(rgba), A(rgba) {}
Color::Color(int32_t rgba) : R(rgba), G(rgba), B(rgba), A(rgba) {}
Color::Color(uint8_t r, uint8_t g, uint8_t b, uint8_t a) : R(r), G(g), B(b), A(a) {}
Color::Color(int32_t r, ... |
#include "mscHack.hpp"
//#include "mscHack_Controls.hpp"
#include "dsp/digital.hpp"
//#include "CLog.h"
namespace rack_plugin_mscHack {
#define nDELAYS 8
#define nSTEPS 4
#define nBUFFLEN 0x80000
#define MAX_nWAVES 7
typedef struct
{
// track in clk bpm
//SLIDING_AVG_STRUCT Avg;
int tickcount;
fl... |
// -*- C++ -*-
//
// Package: DQM/SiStripMonitorHardware
// Class: SiStripFEDCheckPlugin
//
/**\class SiStripFEDCheckPlugin SiStripFEDCheck.cc DQM/SiStripMonitorHardware/plugins/SiStripFEDCheck.cc
Description: DQM source application to produce data integrety histograms for SiStrip data for use in HLT and Prom... |
/**
* @file depth_camera.cpp
* @author guoqing (<EMAIL>)
* @brief 实现深度相机接口类
* @version 0.1
* @date 2019-07-04
*
* @copyright Copyright (c) 2019
*
*/
// 自己的头文件
#include <depth_camera.h>
// C++ STD LIB
#include <iostream>
#include <fstream>
#include <iomanip>
// 临时禁用警告
#pragma GCC diagnostic push
#pragma G... |
// aoc.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
//
// main.cpp
// aoc1
//
// Created by Gabriel on 01/12/2018.
// Copyright � 2018 Gabriel. All rights reserved.
//
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include... |
//************************************************************************
// Copyright 2021 Massachusetts Institute of Technology
// SPDX License Identifier: BSD-2-Clause
//
// File Name: cep_gps.cc/h
// Program: Common Evaluation Platform (CEP)
// Description: gps test for CEP
// Notes:
//***... |
/*
* Copyright © 2012, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
* under the Apache License, Version 2.0 (the "License");
* you may not use t... |
/* Copyright (c) 2003-2005 CrystalClear Software, Inc.
* Subject to the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
* Author: <NAME>, <NAME>
* $Date$
*/
#include "boost/date_time/local_time/custom_time_zone.hpp"
#include "boost/... |
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: <NAME>, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ------------... |
/*
* EDDL Library - European Distributed Deep Learning Library.
* Version: 0.9
* copyright (c) 2020, Universidad Politécnica de Valencia (UPV), PRHLT Research Centre
* Date: November 2020
* Author: PRHLT Research Centre, UPV, (<EMAIL>), (<EMAIL>)
* All rights reserved
*/
#include <cstdio>
#include <cstdlib>
#include ... |
/* Copyright (c) 2007-2011 Massachusetts Institute of Technology
*
* 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, ... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestHandleWidget.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 WIT... |
#include <QPainter>
#include <QApplication>
#include <QPixmap>
#include <QToolTip>
#include <QSortFilterProxyModel>
#include "utils/utils.h"
#include "utils/paint-utils.h"
#include "seafile-applet.h"
#include "settings-mgr.h"
#include "api/server-repo.h"
#include "repo-item.h"
#include "repo-tree-view.h"
#include "rep... |
//
// Created by jiashuai on 17-9-21.
//
#include <thundersvm/kernel/smo_kernel.h>
#include <thundersvm/model/svmmodel.h>
#include <thundersvm/kernel/kernelmatrix_kernel.h>
#include <iomanip>
using std::ofstream;
using std::endl;
using std::setprecision;
using std::ifstream;
using std::stringstream;
using svm_kernel:... |
// Copyright (c) Facebook, Inc. and its affiliates.
//
// 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 applicabl... |
/**
* \file QryWdbeSilList.cpp
* job handler for job QryWdbeSilList (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
#ifdef WDBECMBD
#include <Wdbecmbd.h>
#else
#include <Wdbed.h>
#endif
#include "QryWd... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2007 <NAME>
Copyright (C) 2007 <NAME>
Copyright (C) 2007 <NAME>
Copyright (C) 2012 <NAME>
Copyright (C) 2012 <NAME>
This file is part of QuantLib, a free-software/open-source library
for financial quantitative anal... |
#include "psHeader.h"
char pes_header[30];
char ps_packet_header[50];
char ps_system_header[50];
char ps_system_map_header[50];
static unsigned char outbfr;
static int outcnt;
static int bytecnt;
/* initialize buffer, call once before first putbits or alignbits */
void initBits()
{
outcnt = 8;
bytecnt = 0;
}
/... |
/*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... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be us... |
/*
* See header file for a description of this class.
*
* \author <NAME>
*/
#include "CalibMuon/DTCalibration/plugins/DTVDriftCalibration.h"
#include "CalibMuon/DTCalibration/interface/DTMeanTimerFitter.h"
#include "CalibMuon/DTCalibration/interface/DTCalibDBUtils.h"
#include "FWCore/Framework/interface/Event.... |
/*************************************************************************
* Copyright (c) 2016-2021, NVIDIA CORPORATION. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#include "nccl.h"
#include "core.h"
#include "utils.h"... |
//
// Copyright 2019 WebAssembly Community Group participants
//
// 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... |
// Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <stdlib.h>
#include <string.h>
#ifdef __OS_WIN
#include <winsock2.h> // ntohl, htonl
#e... |
/****************************************************************************
*
* Copyright 2020 Samsung Electronics All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
#include <Arduino.h>
#include <ArduinoOTA.h>
#include <ESPmDNS.h>
#include <HardwareSerial.h>
#include <ModbusIP_ESP8266.h>
#include <ModbusRTU.h>
#include <Syslog.h>
#include <WiFi.h>
#include <secret.h>
// https://support.innon.com/PowerMeters/SDM630-MOD-MID/Manual/SDM630-Modbus_Protocol.pdf
#define EASTRON_SLAVE_I... |
/*
* Copyright (c) 2020, ManiSadati, MohammadShahidzade All rights reserved.
*
* https://github.com/ManiSadati/GPU_Logic_resimulator/blob/master/LICENSE
*
*/
#include<bits/stdc++.h>
using namespace std;
#include "../vlib/type1parser.h"
#include "../vlib/libraryparser.h"
#include "../vlib/type1component.h"
#inclu... |
/*=========================================================================
Copyright 2009 Rensselaer Polytechnic Institute
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/lice... |
// Copyright 2013 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 "ui/base/ime/chromeos/character_composer.h"
#include <algorithm>
#include <iterator>
#include "base/strings/utf_string_conversions.h"
#include ... |
/*
* Copyright 2010 by <NAME> <<EMAIL>>
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is d... |
/* Copyright (c) 2011 <NAME>
* Ported to CPP by <NAME> and <NAME> on 28 Feb 2014
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... |
// This file implements the Identical Code Folding feature which can
// reduce the output file size of a typical program by a few percent.
// ICF identifies read-only input sections that happen to be identical
// and thus can be used interchangeably. ICF leaves one of them and discards
// the others.
//
// ICF is usual... |
/*
Audio Overload SDK - PSF file format engine
Copyright (c) 2007 <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 copyrig... |
//===- DebugTypes.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
//
//===---------------------------... |
/***********[miniSatSolver.cc]
Copyright (c) 2012-2013 <NAME>, <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, mod... |
#include <iostream>
#include "stdafx.h"
#include "Game.h"
// tool_menu.cpp externs
extern uint32_t* PadButtonStates;
void MenuTask_Hook();
void eprintf_Hook(int a1, int a2, int a3, int a4, char* Format, ...);
// LIGHT TOOL recreation
typedef int(__cdecl* TaskSleep_Fn)(int ms);
TaskSleep_Fn TaskSleep = nullptr;
type... |
#include <iostream>
#include <math.h>
#include <random>
#include <sophus/se3.hpp>
#include <vector>
#include "eigen_test.h"
Eigen::Matrix4d G1;
Eigen::Matrix4d G2;
Eigen::Matrix4d G3;
Eigen::Matrix4d G4;
Eigen::Matrix4d G5;
Eigen::Matrix4d G6;
void eigen_test::setup()
{
G1 = Eigen::Matrix4d::Zero();
G2 = Eigen:... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkTexturePainter.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... |
// hsm-play.cpp
#include "hsm-play.h"
#include "coe-hsm.h"
#include "coe-hsm-misc.h" // build_abbrev_to_state_map
#include "coe-session.h"
#include "coe-thread.h"
#include <iostream>
#include <sstream>
#include <vector>
#include <cstdlib> // exit
#include <cerrno>
#include <cassert>
using namespace std... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2017-2019 The SXL Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "entities/key.h"
#include <openssl/bn.h>
#include <openssl/ecdsa.h>
#include <openssl/o... |
/*
* zsummerX License
* -----------
*
* zsummerX is licensed under the terms of the MIT license reproduced below.
* This means that zsummerX is free software and can be used for both academic
* and commercial purposes at absolutely no cost.
*
*
* ============================================================... |
// Surface.cpp
// PangoBasic
//
// Created by <NAME> on 1/6/16.
//
#include "SDLPango.hpp"
#include <iostream>
#include <regex>
#include <string>
#if CAIRO_HAS_WIN32_SURFACE
#include <cairo-win32.h>
#endif
using namespace pango;
#pragma mark - Lifecycle
SDL_Color ZERO_COLOR{0, 0, 0, 0};
SurfaceRef Surface::create(... |
#include "fast++.hpp"
extern "C" {
#include "tinyexpr.h"
}
double expr_step(double a) {
return (a >= 0 ? 1.0 : 0.0);
}
double expr_min(double a, double b) {
return std::min(a, b);
}
double expr_max(double a, double b) {
return std::max(a, b);
}
bool gridder_t::tinyexpr_wrapper::compile(const std::s... |
#ifdef HAVE_CONFIG_H
#include <../../config.h>
#endif
/*
* Copyright (c) 1990, 1991 Stanford University
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided
* that the above copyright notice appear in all copies and ... |
#include "global.h"
#include "Game.h"
#include "GameConstantsAndTypes.h"
#include "GameState.h"
#include "NoteData.h"
#include "NoteDataWithScoring.h"
#include "PlayerStageStats.h"
#include "ThemeMetric.h"
#include "TimingData.h"
#include "GamePreferences.h"
namespace {
// ThemeMetric<TapNoteScoreJudgeType> LAST_OR_... |
////////////////////////////////////////////////////////////////////////////////
// MechWarrior 3 ZBD file system
// Copyright <NAME> 2007, 2008
////////////////////////////////////////////////////////////////////////////////
#include "MechWarrior3ZBD.h"
#include "Texture.h"
#include "Mesh.h"
#include "XMLTree.h"
///... |
// i1Display3CmdDemo.cpp : Defines the entry point for the console application.
//
#if defined ( _WIN32 )
#include "windows.h"
#include <direct.h>
int _tmain(int argc, char* argv[])
{
return 0;
}
#elif defined ( __GNUC__ )
#include <unistd.h>
#include <stdbool.h>
// usleep(n) sleeps for n _micro_sec... |
//--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... |
#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <std_msgs/Empty.h>
#include <tf2_msgs/TFMessage.h>
#include <tf/transform_datatypes.h>
#include <geometry_msgs/Vector3.h>
#include <ardrone_autonomy/Navdata.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_ms... |
////////////////////////////////////////////////////////////////////////////////
// RsFontWin32GL
// Includes
#include "RsUtil.h"
#include "RsFontImpl.h"
#include "RsManagerImpl.h"
#include "RsTextureImpl.h"
#include "BaFileData.h"
#include "BtString.h"
#include "MtVector2.h"
#include "RsImpl.h"
#include "RsShaderImpl... |
#include "GamePlayScreen.h"
#include "ScreenIndices.h"
#include <Shingine/IMainGame.h>
#include <Shingine/ResourceManager.h>
#include <Shingine/Display.h>
#include <Shingine/Physics.h>
constexpr auto MID_X = 230;
constexpr auto MID_Y = 300;
constexpr auto FRAMERATE_F_X = 940;
constexpr auto FRAMERATE_F_Y = 0;
constex... |
/*
This file is part of the VRender library.
Copyright (C) 2005 <NAME> (<EMAIL>)
Version 1.0.0, released on June 27, 2005.
http://artis.imag.fr/Members/Cyril.Soler/VRender
VRender is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Fr... |
//===-- Executor_Threading.cpp --------------------------------------------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
#include "i8086sim.h"
#define MaxRegDumpLen 1024
K8086VM::K8086VM() :
m_ProgramSize(), m_ProgramData(), m_CurCode(), m_Memory()
{
m_Dump = (char *)malloc(MaxRegDumpLen);
memset(m_Dump, 0, MaxRegDumpLen);
m_Memory = (byte *)calloc(0x100000, 1);
}
K8086VM::~K8086VM()
{
if (m_ProgramData != N... |
/* Jzip V2.1 Infocom/Inform Zcode Format Interpreter
* --------------------------------------------------------------------
* Copyright (c) 2000 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... |
/*
Secret Salsa
<NAME>
Copyright 2019
*/
#include "walkin.h"
using namespace std;
using namespace Honey;
Walkin::Walkin(State* state) {
this->state = state;
party = new WalkingParty(state);
found_battle = false;
}
void Walkin::initializeWalkingParty() {
for (PermanentCharacter* p : state->party) {
... |
//
// "$Id: fl_cursor.cxx 9278 2012-03-12 11:55:50Z manolo $"
//
// Mouse cursor support for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2012 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 fi... |
/* --------------------------------------------------------------------------
*
* File TheMenu.cpp
*
* Ported By <NAME>
* Contact <EMAIL>
*
* --------------------------------------------------------------------------
*
* Copyright (c) 2010-2013 XMSoft.
... |
/*
TSP_GPU: This code is a GPU-accelerated heuristic solver for the
symmetric Traveling Salesman Problem that is based on iterative hill
climbing with 2-opt local search.
Copyright (c) 2014-2020, Texas State University. All rights reserved.
Redistribution and use in source and binary forms, with or without
modificati... |
#include <nds.h>
#include <stdlib.h>
#include <stdio.h>
#include "i2.h" //deleted
//tinted
#include "i4.h"
#include "i8.h"
#include "16bpp.h"
#include "a3i5.h"
#include "a5i3.h"
//compressed
static const char* test_names[] = {
"i2 (GL_RGB4)",
"i2 (GL_RGB4) palette-swapped",
"i4 (GL_RGB16)",
"i8 (GL_RGB256)",
"di... |
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <sstream>
#include <string>
#include <GL/gl3w.h>
#include <SDL.h>
#include "imgui.h"
#include "imgui_impl_sdl.h"
#include "imgui_impl_opengl3.h"
#include "accDataManager.h"
void drawWindowInnerBorder(const ImVec2& windowPos, const ImVec2& windowSize... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <switch.h>
#include <EGL/egl.h> // EGL library
#include <EGL/eglext.h> // EGL extensions
#include <glad/glad.h> // glad library (OpenGL loader)
// GLM headers
#define GLM_FORCE_PURE
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/vec3.hpp>
#include... |
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
using namespace std;
// for convenience
using json = nlohmann::json;
... |
#include "ColladaLoader.hpp"
#include <sstream>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#define PI 3.141592
#define CORRECTION glm::rotate(glm::mat4(1.0),(float)-PI/(float)2.0,glm::vec3(1, 0, 0))
using namespace Engine;
//only searches through children(not recursive)
std::vector<xmlN... |
/* The register machine */
#include "data.hpp"
#include <stdexcept>
#include <vector>
#include <string>
#include <iostream>
#include <functional>
#include <sstream>
#include <set>
#include <utility>
using namespace std;
#define error(expr) ({ \
std::ostringstream msg; ... |
#include <iostream>
#include <vector>
#include <list>
#include <cstring>
#include <cassert>
#include <unordered_set>
#include <algorithm>
#include <chrono>
using namespace std;
// _ _ _ _____ _ _
// | | | |_ __ (_) ___ _ __ | ___(_)_ __ __| |
// | | | | '_ \| |/ _ \| '... |
/*
* Firmament
* Copyright (c) The Firmament Authors.
* 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
*
* ... |
/*
* contrib/intarray/_int_gist.c
*/
#include "postgres.h"
#include "knl/knl_variable.h"
#include "access/gist.h"
#include "access/skey.h"
#include "_int.h"
#define GETENTRY(vec, pos) ((ArrayType*)DatumGetPointer((vec)->vector[(pos)].key))
/*
** GiST support methods
*/
PG_FUNCTION_INFO_V1(g_int_consistent);
PG_FU... |
#include "scene.h"
#include <QMouseEvent>
#include <cmath>
#include <iostream>
#include <fstream>
#include <cstring>
#include <sstream>
#include <cassert>
#include <omp.h>
const size_t POINT_STRIDE = 7; // x, y, z, index, r, g, b
unsigned char *tmp;
Scene::Scene(const QString& plyFilePath, const QString& bundlePat... |
// "$Id: Menu.cxx 5941 2007-10-04 16:58:13Z spitzak $"
//
// Copyright 1998-2006 by <NAME> and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of the Li... |
//===- BlackfinRegisterInfo.cpp - Blackfin Register Information -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// GLEW нужно подключать до GLFW.
// GLEW
#define GLEW_STATIC
#include <GL/glew.h>
// GLFW
#include <GLFW/glfw3.h>
//#include <SOIL/SOIL.h>
#include <stb_image.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "GameObjectOOP.hpp"
#include "ShaderOOP.hpp"
#inclu... |
// monitor with:
// pio device monitor --port COM5 --baud 115200
#include <avr/dtostrf.h>
#include "Adafruit_GFX.h"
#include "Fonts/ClearSans-Medium-12pt7b.h"
#include "Fonts/ClearSans-Medium-16pt7b.h"
#include "Fonts/ClearSans-Medium-18pt7b.h"
#include "Fonts/ClearSans-Medium-32pt7b.h"
#include "baro_sam... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright 2021- The GROMACS Authors
* and the project initiators <NAME>, <NAME> and <NAME>.
* Consult the AUTHORS/COPYING files and https://www.gromacs.org for details.
*
* GROMACS is free software; you can redistribute it and/or
* modify i... |
#include <CppPotpourri.h>
#include <SensorFilter.h>
#include <SPIAdapter.h>
#include <I2CAdapter.h>
#include <Audio.h>
#include "Motherflux0r.h"
#include "uApp.h"
#include "SensorGlue.h"
extern SSD13xx display;
extern SX8634* touch;
extern SPIAdapter spi0;
extern I2CAdapter i2c0;
extern I2CAdapter i2c1;
extern Man... |
// Copyright (C) 2010-2014 <NAME>.
// See the file COPYING for copying permission.
#include "main.hpp"
#include <algorithm>
#include <ctime>
#include <fstream>
#include <iostream>
#include <iterator>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include <windows.h>
#includ... |
/****************************************************************************
*
* Copyright (c) 2021 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
// MIT License
//
// MEL - Mechatronics Engine & Library
// Copyright (c) 2019 Mechatronics and Haptic Interfaces Lab - Rice University
//
// 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 w... |
// @COPYRIGHT@
// Licensed under MIT license.
// See LICENSE.TXT file in the project root for more information.
// ==============================================================
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <iostream>
#include <unistd.h>
#include <assert.h>
#include <string.h>
#i... |
/* bren.c - Copyright (c) 1998 Zyvex LLC.
*
* 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 followi... |
#include "MapSystem.h"
#include <iostream>
#include <boost/algorithm/string.hpp>
#include "../utility/Logging.h"
#include "../constants/MapConstants.h"
#include "../constants/RenderConstants.h"
using namespace std;
MapSystem::MapSystem(Input& input, Camera& camera, Map& map, Log& log)
: input_{input}
, camera_{... |
#include <memory>
#include <memory>
//
// Created by thomas on 13/11/18.
//
#include "SolarSystem.h"
#include "utility/CSVReader.h"
#include "astronomy/Description.h"
#include "astronomy/Parser.h"
#include <iostream>
#include <fstream>
#include <iterator>
#include <sstream>
#include <memory>
#include <algorithm>
... |
#include "Nes.h"
struct NesColour {
uint8_t r, g, b;
};
static const NesColour NTSC_PALETTE[64] = {
NesColour{ 84, 84, 84 },
NesColour{ 0, 30, 116 },
NesColour{ 8, 16, 144 },
NesColour{ 48, 0, 136 },
NesColour{ 68, 0, 100 },
NesColour{ 92, 0, 48 },
NesColour{ 84,... |
#include "JoinQueueComponent.h"
#include "HFUtils.h"
#include "FeeCalc.h"
#include "Chunk.h"
#include <cl-util/float_cmp.h>
const int DEFAULT_TIMEOUT = 3600*8; // 8 hours
const int MIN_SIZE_TO_CONSTITUTE_A_LEVEL = 100; // no odd-lots please
const int MIN_REPLACED_INTERVAL = 100; // This #millisecs should pass before ... |
#include "line2Dup.h"
#include <memory>
#include <iostream>
#include <assert.h>
#include <chrono>
#include <fstream>
#include <rapidjson/document.h>
#include <rapidjson/istreamwrapper.h>
#include "cxxopts/include/cxxopts.hpp"
// #include "cuda_icp/icp.h"
using namespace std;
using namespace cv;
class Timer
{
publi... |
#include <SFML/Graphics.hpp>
#include <iostream>
#include <sstream>
#include <Windows.h>
using namespace sf;
using namespace std;
float Long(float f, float s)
{
return sqrt(f * f + s * s);
}
struct Path
{
vector<int> vershini;
float pathvall = 0;
Path() {}
Path(float PathVall)
{
pathvall... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.