text stringlengths 5.71k 33.7k |
|---|
// Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#include "platform/platform.h"
#include "materials/processedMaterial.h"
#include "materials/sceneData.h"
#include "materials/materialParameters.h"
#include "materials/matTextureTarget.h"
#include "ma... |
/******************************************************************************
* Spine Runtimes Software License v2.5
*
* Copyright (c) 2013-2016, Esoteric Software
* All rights reserved.
*
* You are granted a perpetual, non-exclusive, non-sublicensable, and
* non-transferable license to use, install, execute, and per... |
//+-------------------------------------------------------------------------
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1995 - 1999
//
// File: setreg.cpp
//
// Contents: Set Registry Key Values
//
// See Usage() for syntax and list of options.
//
// Functions... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
/**
* @file
* @copyright defined in myeosio/LICENSE.txt
*/
#include "help_text.hpp"
#include "localize.hpp"
#include <regex>
#include <fc/io/json.hpp>
#include <myeosio/chain/exceptions.hpp>
using namespace myeosio::client::localize;
using namespace myeosio::chain;
const char* transaction_help_text_header = _("A... |
/**
* @file cvshapeprior.cpp
* @author <NAME> <<EMAIL>>
* @date Tue Mar 12 11:24:37 2013
*
* @brief
*
*
*/
#include "cvshapeprior.h"
#include "cvimgwarp.h"
#include <sys/types.h>
#include <sys/stat.h>
// int CvShapePrior::load(char * meanshapefn,
// char * meanfn,
// ... |
/*
* This file is part of ElasticFusion.
*
* Copyright (C) 2015 Imperial College London
*
* The use of the code within this file and all code within files that
* make up the software that is ElasticFusion is permitted for
* non-commercial purposes only. The full terms and conditions that
* apply to the cod... |
#include "elasticBendingForce.h"
elasticBendingForce::elasticBendingForce(elasticRod &m_rod, timeStepper &m_stepper)
{
rod = &m_rod;
stepper = &m_stepper;
Id3 << 1, 0, 0,
0, 1, 0,
0, 0, 1;
double EI = rod->EI;
EIMat << EI, 0,
0, EI;
int nv = rod->nv;
g... |
/***************************************************************************
* Copyright 1998-2020 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... |
// Copyright (c) 2014 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "vehicle/vehicle.h"
#include <abstractpropertytype.h>
#include <debugout.h>
#include <gio/gio.h>
#include <glib.h>
#include <listplusplus.h>
#i... |
#include "Helpers/Player.hpp"
#include "Helpers/Animation.hpp"
#include "Helpers/Game.hpp"
#include "Helpers/Inventory.hpp"
#include "Helpers/Save.hpp"
#include "Helpers/PlayerClass.hpp"
#include "Helpers/PlayerPTR.hpp"
#include "RegionCodes.hpp"
bool IsIndoorsBool = false;
namespace CTRPluginFramework {
... |
/*************************************************************************/
/* transform_interpolator.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*****************************************************************************
* *
* PLAST : Parallel Local Alignment Search Tool *
* Version 2.3, released November 2015 *
* ... |
#include <ros/ros.h>
#include <tf2/LinearMath/Quaternion.h>
#include <tf2_ros/transform_broadcaster.h>
#include <geometry_msgs/TransformStamped.h>
#include <geometry_msgs/Twist.h>
#include <nav_msgs/Odometry.h>
#include <std_msgs/Int32.h>
#include <std_msgs/Float32.h>
#include <boost/asio.hpp>
#include <boost/asio/ser... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<string.h>
#include<assert.h>
#include<arpa/inet.h>
#include<netinet/in.h>
#include<sys/socket.h>
#include<sys/time.h>
#include <iostream>
#include <pthread.h>
#include <unistd.h>
#include <thread>
using namespace std;
#define MAXFD 10 //Size of fds arra... |
//=================================================================================================
//
// This file has the implementationfor the benchmark itself. The main file only calls the
// benchmark main function (benchmarkMain).
//
//=============================================================================... |
// <NAME>
// A new text editor written from starch
// Based on C++ && ncurses
#include <ncurses.h>
#include <unistd.h>
#include <algorithm>
#include <cctype>
#include <condition_variable>
#include <csignal>
#include <cstdlib>
#include <cstring>
#include <list>
#include <mutex>
#include <string>
#include <thread>
#inclu... |
// ---------------------------------------------------------------------------
//
// The ab-initio based multiscale library
//
// S / P H I / n X
//
// Copyright: Max-Planck-Institute for Iron Research
// 40237 Duesseldorf, Germany
//
// Contact: https://sxlib.mpie.d... |
//===- ARMDisassembler.cpp - Disassembler for ARM/Thumb ISA -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "SLIC.hpp"
#include <iostream>
#include <string>
#include <filesystem>
#include <chrono>
#include <cmath>
#include <boost/filesystem/convenience.hpp>
Slic::Slic(std::string filename){
if_path = filename;
std::cout << "Loading " << filename << " pixel data..." << std::endl;
if(!image.loadFromFile(filena... |
// Copyright 2021 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
/*****************************************************************************
*
* Copyright (c) 2011 - 2013, CEA
* 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 ... |
#include "annotate.hpp"
po::variables_map parse_annotate_command(po::parsed_options parsed) {
uint32_t num_cores = tbb::task_scheduler_init::default_num_threads();
std::string num_threads_message = "Number of threads to use when possible [DEFAULT uses all available cores, " + std::to_string(num_cor... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "HeroPawn.h"
#include "Test2DPlatformer.h"
#include "PaperFlipbookComponent.h"
#include "BunnyManager.h"
#include "PixelPerfectCameraComponent.h"
#include "Particles/ParticleSystem.h"
#include "PaperFlipbook.h"
#include "PaperSprit... |
#include <ros/ros.h>
#include <yak/yak_server.h>
#include <yak/mc/marching_cubes.h>
#include <pcl_ros/point_cloud.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/io/ply_io.h>
#include <pcl/common/transforms.h>
#include <sensor_msgs/PointCloud2.h>
#include <tf2_ros/transform_listener.h>
#include <tf2_ei... |
/*
Copyright (c) 2012 <NAME>, <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 d... |
#include <tkn/singlePassApp.hpp>
#include <tkn/types.hpp>
#include <tkn/ccam.hpp>
#include <tkn/stream.hpp>
#include <tkn/features.hpp>
#include <tkn/util.hpp>
#include <tkn/glsl.hpp>
#include <tkn/shader.hpp>
#include <tkn/render.hpp>
#include <tkn/bits.hpp>
#include <tkn/sh.hpp>
#include <tkn/scene/environment.hpp>
... |
/**\file ampdispersion.c
* \author <NAME>.
* */
#include "despeck.hpp"
#include "gdal.h"
#include "gdal_priv.h"
#include "cpl_conv.h"
#include "fringe/fringe_common.hpp"
#include <armadillo>
int despeck_process(despeckOptions *opts)
{
//Print user options to screen
opts->print();
int cols, rows, nban... |
#include "CMClient.h"
#include "steam_language/steam_language.h"
#include <steam/encrypted_app_ticket.pb.h>
#include <steam/steammessages_base.pb.h>
#include <steam/steammessages_clientserver.pb.h>
#include <steam/steammessages_clientserver_login.pb.h>
#include <steam/steammessages_clientserver_2.pb.h>
#include <crypt... |
/***********************************************************************************************
* Shop.cpp
* Written in ANSI/ISO Standard C++ and compiled using Microsoft Visual Studio Express 2012/2015
* Revised Dec 30 2014
*
* Part of the codebase for the agent-based model developed for "Banks, Market Orga... |
// ============================================================================
//
// Copyright (c) 1998 The CGAL Consortium
//
// This software and related documentation is part of an INTERNAL release
// of the Computational Geometry Algorithms Library (CGAL). It is not
// intended for general use.
//
// -------------... |
#include "Vehicle.hpp"
#include "Level.hpp"
#include "Renderer.hpp"
#include "Color.hpp"
#include "World.hpp"
namespace
{
// Credit: http://www.fantasynamegenerators.com/spaceship-names.php
/*
BC - Battlecruiser
BS - Battleship
CS - Cargo ship / Cruiseship
HMS - Her Majesty's (Space)Ship
HWSS ... |
///////////////////////////////////////////////////////////////////////////////
// File: DDTIDModulePosAlgo.cc
// Description: Position various components inside a TID Module
///////////////////////////////////////////////////////////////////////////////
#include <cmath>
#include <algorithm>
#include "FWCore/MessageL... |
#include <Adafruit_BME280.h>
#include <Adafruit_BNO055.h>
#include <Adafruit_Sensor.h>
// #include <Comp6DOF_n0m1.h>
#include <EEPROM.h>
#include <SD.h>
#include <SPI.h>
#include <Servo.h>
#include <SoftwareSerial.h>
#include <TimeLib.h>
#include <Wire.h>
#include <utility/imumaths.h>
// Define connection pins
// CON... |
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
#include <iostream>
#include <chrono>
#include <memory>
#include <assert.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include "socket.h"
#include "misc.h"
using namespace std::chrono;
int def_timeout = 2000;
#ifdef __CYGWIN32__
#un... |
/*
* STMicroelectronics iNotify HAL configuration management
*
* Copyright 2021 STMicroelectronics Inc.
* Author: <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License").
*/
#include <errno.h>
#include <fcntl.h>
#include <linux/limits.h>
#include <pthread.h>
#include <signal.h>
#incl... |
#include "DotGenerator.h"
using std::map;
typedef unsigned int uint;
enum NodeType{
BUS, PMU
};
struct VertexData
{
std::string id;
NodeType type;
std::string color;
};
template <typename Map>
struct my_node_writer {
// my_node_writer() {}
my_node_writer(Map& g_) : g(g_) {};
template <class Vertex>
void ope... |
//------------------------------------------------------+----------------------
// МикроМир07 Clipboard (using wxClipboard) & CS/LS op | (c) Epi MG, 2007-2020
//------------------------------------------------------+----------------------
#include <QApplication> /* Old le.c (c) Attic 1989, (c) EpiMG 1996-2003 */
... |
#include "game.h"
#include "yms.h"
#include "unit.h"
#include "bullet.h"
#include "flingy.h"
#include "sprite.h"
#include "ai.h"
#include "triggers.h"
#include "perfclock.h"
#include "log.h"
#include "pathing.h"
#include "commands.h"
#include "image.h"
#include "order.h"
#include "replay.h"
#include "rng.h"
#include "... |
#include <pwd.h>
#include <stdio.h>
#include <ctime>
#include <map>
#include <string>
#include <nauty.h>
#include "cpp-nauty.h"
#include "cpp-graph.h"
static long enumerated_subgraphs = 0;
static NyGraph *nauty_graph;
static std::map<std::string, long> certificates;
static bool community_based = false;
static FILE *... |
/*
Audio File Library
Copyright (C) 2001, Silicon Graphics, Inc.
Copyright (C) 2011, <NAME> <<EMAIL>>
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, ... |
#include <math.h>
#include "Orbit.h"
#include "OBEngine.h"
#include "OBGlobals.h"
#include "FGDoubleGeometry.h"
Orbit::Orbit()
{
m_drawPoints = NULL;
m_numDrawPoints = 0;
m_color = 0x7f7f7f;
m_bValid = false;
}
Orbit::~Orbit()
{
delete[] m_drawPoints;
}
void Orbit::set(Orbit &other)
{
// display
m_color = oth... |
/****************************************************************************
Copyright (c) 2018-2022 <NAME> Co., Ltd.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royal... |
/*
* Copyright (c) 2009 <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 requ... |
//
// Created by kang on 19-4-15.
//
#include "common.h"
#include "Debugger.h"
static std::string toDecString(const std::string &str)
{
unsigned long value = 0;
unsigned long power = 1;
for (int i = str.size() -1; i >= 2; i--) {
if (str[i] >= '0' && str[i] <= '9')
value += power * (str[... |
/*
[PREDITLE]
Jumpshot, p100, millionware on top
Awp don't need no scope, hop around don't miss a shot
7 shots in my deagle always got me lookin' evil
p100 like it's cheat-codes just need one shot never reload
I hit the edgebug jumpbug spin around and flickshot (ooh)
Didn't even see you but your skull's eating my AWP... |
//
// Copyright 2021 <NAME>. All Rights Reserved.
//
// Licensed under the Apache License 2.0 (the "License"). You may not use
// this file except in compliance with the License. You can obtain a copy
// in the file LICENSE in the source distribution.
//
#include <iostream>
#include <vector>
// Namespace providing ut... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
#include "SolutionData.h"
#include "ComputerTime.h"
#include "TimeFunction.h"
#include "MpapTime.h"
#include "Functions.h"
#include "PropertyItem.h"
//#include "BasisFunctionsBSpline.h"
#include "util.h"
extern ComputerTime computerTime;
extern MpapTime mpapTime;
extern List<TimeFunction> timeFunction;
Solu... |
#include "CellGrid_DomainDecomposition.h"
CellGrid_DomainDecomposition::CellGrid_DomainDecomposition(
const Int3& grid_dimensions, const double width_shell_1, const double width_shell_2,
const SimulationState& simulation_state, MpiCommunicator& mpi_communicator
):
CellGrid(simulation_state, mpi_communicator),
widt... |
#include <cstring>
#include <ctime>
#include <string>
#include <iostream>
#include <vector>
#include <thread>
#include <future>
#include <chrono>
#include <iomanip>
#include "utils.h"
#include "timer.h"
#include "client.h"
#include "measurements.h"
#include "workload.h"
#include "countdown_latch.h"
#include "db_facto... |
/*
* Copyright (c) 2008 <NAME>, <NAME>, <NAME>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... |
/**
* @file EmbedPDBQTMols.cpp
* @author <NAME>
* @brief A C++ code to generate conformers from multiple pdbqt files, by fetching the SMILES and ID from PDBQT and generate SMI files, with multithreading
* @date 2022-03-29
*
* @copyright Copyright (c) 2022
*
*/
#include <iostream>
#include <string>
#include <... |
/** @file */
#include "storedproc.hpp"
/**
* @brief Class to combine value access and null-detection into a single object.
*
* @tparam T An IClass-derived type to alias the data.
* @tparam R The data type of this class. Must match the get_value() type of T.
*/
template <class T, typename R>
class BindEl
{
protec... |
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
#define ADEPT_STORAGE_THREAD_SAFE
#include <algorithm>
#include <cstdio>
#include <numeric>
#include <array>
#include <thread>
#include <future>
#include <vector>
#include <list>
#include <nvector/nvector_serial.h> /* serial N_Vector types, fcts., macros */
#include <cvode/cvode.h> /* prototypes for CVODE ... |
#include <iostream>
#include <unistd.h>
#include <stdlib.h>
using namespace std;
/*
Created By: D34D9001
Jan. 04, 2022
Updated: Jan. 04, 2022
v1.1.0-beta
*/
const char *logo =
" ┏━━━┓━┏┓━━━━━━┏┓━┏┓━━━━━━━━━\n"
" ┃┏━┓┃┏┛┗┓━━━━━┃┃━┃┃━━━━━━━━━\n"
" ┃┗━━┓┗┓┏┛┏━━┓━┃┃━┃┃┏┓┏━━┓┏━┓\n"
" ┗━━┓┃━┃┃━┗━┓┃━┃┃━┃┗... |
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <unordered_map>
using namespace std;
class support {
public:
enum class fit {NONE, LEFT, RIGHT, TOP, BOTTOM};
enum class flip {NONE, HORIZONTAL, VERTICAL};
enum class pixel {WHITE, BLACK, MONSTER};
enum class rotation {NONE, ... |
#include "ofApp.h"
#ifdef _MSC_VER
#ifdef _DEBUG
#define TBB_LIB_EXT "_debug.lib"
#else
#define TBB_LIB_EXT ".lib"
#endif
#pragma comment(lib, "tbb" TBB_LIB_EXT)
#pragma comment(lib, "tbbmalloc" TBB_LIB_EXT)
#endif
#include <regex>
#include <tbb/tbb.h>
#include "squish.h"
#include "lz4.h"
#include "lz4frame.h"
#incl... |
// file: TuringMachine.cpp
// Class: CS5800
// Project: Turing Machine Simulator
// Author: <NAME>
// Date: 4/08/2018
// Description: implementation for the Turing Machine simulator.
// the heart of the class is the TmTransitionTable container which is
// lookup table for the transitions based on the state and the s... |
#include "randombytes.h"
#include "rainbow.h"
#include "crypto_sign.h"
int randombyte(void)
{
unsigned char c;
randombytes(&c,1);
return 255 & (int) c;
}
int crypto_sign_keypair( unsigned char * pk, unsigned char * sk ) {
GFpow * a[nv1], * b[nv1], * c[nv1], e[nv1] ;
GFpow S[nv1*nv1... |
/*
*
* Copyright 2019 <NAME>, Imperial College London
*
* 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 t... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "CoreMinimal.h"
#include "HAL/PlatformProcess.h"
#include "HAL/FileManager.h"
#include "Misc/CommandLine.h"
#include "Misc/FileHelper.h"
#include "Misc/Paths.h"
#include "Misc/Guid.h"
#include "Misc/ConfigCacheIni.h"
#include "ImageCore.h"
#include ... |
// Copyright 2012 Cloudera 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 agreed to in wr... |
/**
* @file SorterHunter.cpp
* @brief Main file of the sorting network hunter program
* @author <NAME> bert.o.dobbelaere[at]telenet[dot]be
* Handles symmetrical and asymmetrical sorting networks, with or without predefined or "greedy" prefix.
*
* Copyright (c) 2017 <NAME>
* Permission is hereby granted, free o... |
//:
// \file
// Tests for vnl_finite.h, written by <NAME>, 6 May 2002.
#include <iostream>
#include "testlib/testlib_test.h"
#include "vnl/vnl_finite.h"
template <int N>
void test_finite_int(vnl_finite_int<N>)
{
std::cout << "\n --- Testing vnl_finite_int<" << N << "> ---\n";
std::cout << "Phi(" << N << ") = " <... |
/*
* Copyright (C) 2010 Advanced Micro Devices, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the F... |
/* _ _
* | | (_)
* | | __ _ _ _ _
* | | / _` || | | || |
* | || (_| || |_| || |
* |_| \__, | \__,_||_|
* __/ |
* |___/
*
* Copyright (c) 2015-20 frank256
*
* License (BSD):
*
* Redistribution and use in source and binary forms, with or without modification,
* ar... |
#include <cstring>
#include <cstdio>
#include "QuantumEspressoSystem.hpp"
#include "QEMCMoves.hpp"
#include "OWL_DFT_Interface.hpp"
#include "Main/Communications.hpp"
//Constructor
QuantumEspressoSystem::QuantumEspressoSystem(MPICommunicator PhysicalSystemComm)
{
natom = simInfo.numAtoms; // TO DO: this shoul... |
/*******************************************************************************
* Copyright 2018 UT-Battelle, LLC
* All rights reserved
* Route Sanitizer, version 0.9
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... |
#include "landmark.h"
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include <cstdlib>
#include <iomanip>
/**
* Create a scaled copy where absolute coordinates exist.
*
* @param double s - scale of the feature
* @param uint w - width of the target landmark
* @param uint h - height of the target landm... |
#include <algorithm>
#include <core/common.hpp>
#include <ui/widgets.hpp>
#include <video/glyphs.hpp>
#include "button.hpp"
#include "label.hpp"
#include "window.hpp"
#define set_normal_state(s) ((s) |= ui::ws_normal), clr_hovered_state(s), clr_pressed_state(s)
#define set_hovered_state(s) ((s) |= ui::ws_hovered), c... |
// <STF_check> -*- C++ -*-
/**
* \brief This tool checks the input trace for known issues.
*
*/
/*
This issues that are checked for:
1. Check for invalid PC values in mode. PC values must be 32 bit aligned. (exit code 1)
2. Check for invalid PC values in mode. All pc values must have lsb set to 1... |
// Include FDPS header
#include <particle_simulator.hpp>
// Include the standard C++ headers
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
#include <sys/stat.h>
/* Parameters */
const short int Dim = 3;
const PS::F64 SMTH = 1.2;
const PS::U32 OUTPUT_INTERVAL = 10;
const PS::F64 C_CFL = 0.3;
... |
#include "Core.h"
#include "TextContainer.h"
#include "GlViewport.h"
//-----------------------------------------------------------------------------
// Font
//-----------------------------------------------------------------------------
#include "GlFont.h"
#define CHARS_PER_LINE (TEX_WIDTH/CHAR_WIDTH)
#define FONT... |
#include "piecedisplay.h"
#include <QImage>
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "m_debug.h"
ClickableLabel *PieceDisplay::Label_Map[12][5] = {};
QPixmap *PieceDisplay::Pixmap[50] = {};
int PieceDisplay::w = 0;
int PieceDisplay::h = 0;
void PieceDisplay::initDisplay(Ui::MainWindow *ui)
{
... |
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<unordered_set>
#include<unordered_map>
#include<queue>
#include<cassert>
#include<sstream>
using namespace std;
typedef uint64_t ui;
#define endl "\n"
const ui N = 20;
const ui MOD = 1001001011ULL;
constexpr ui pow2(ui n)
{
if (... |
#include "pugixml.hpp"
#include <unordered_map>
#include <unordered_set>
#include <string>
#include <iostream>
#include <charconv>
#include <utility>
#include <vector>
#include <string>
#include <fmt/ranges.h>
#include <fmt/ostream.h>
#include <fmt/format.h>
#include <range/v3/view/transform.hpp>
#include <range/v3/vie... |
/*******************************************************************************
Copyright (c) 2011 Yahoo! Inc. 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
... |
/*
theta_t - a theta_xx + b kappa_a (theta^4 - phi) = q(t) f(x)
- alpha phi_xx + kappa_a (phi - theta^4) = 0, x in (0, L), t in (0, T)
- a theta_x + beta (theta - theta_b) = 0 at x = 0
a theta_x + beta (theta - theta_b) = 0 at x = L
- alpha phi_x + gamma (phi - theta_b^4) = 0 at x = 0
alpha phi_x + gamma (phi - theta_... |
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <cassert>
#include "OpenCLDeviceInfo.h"
#include "OptionParser.h"
#include "support.h"
#include "Event.h"
#include "ProgressBar.h"
#include "ResultDatabase.h"
#include "aocl_utils.h"
using namespace std;
#define... |
/*------------------------------------------------------------------------------
* str2str.c : console version of stream server
*
* Copyright (C) 2007-2015 by T.TAKASU, All rights reserved.
*
* version : $Revision: 1.1 $ $Date: 2008/07/17 21:54:53 $
* history : 2009/06/17 1.0 new
* 2011/05/29 1.1 ... |
#include "gtest/gtest.h"
#include <aliLuaCore.hpp>
#include <aliLuaExt.hpp>
#include <aliLuaTest_util.hpp>
#include <aliSystem.hpp>
#include <lua.hpp>
#include <fstream>
namespace {
using Exec = aliLuaCore::Exec;
using ExecEngine = aliLuaExt::ExecEngine;
using Functions = aliLuaCore::Functions;
using... |
/*
* BlackRedTree.cpp
*
* Created on: 6 mar 2021
* Author: Pawel
*/
#include "RedBlackTree.h"
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <fstream>
#include <cstring>
#include <cmath>
using namespace std;
//Implementation of classs Node
RedBlackTreeNode::RedBlackTree... |
/*
Author: DarkAngel
//Node Channel actions
//00Fxy
// x - long click
// y - click count
TODO:
- keep server-nodes status
- scan devices
*/
#include "Arduino.h"
#include "Houz.h"
#include <QueueArray.h>
#include <RF24.h>
#include <printf.h>
#include <avr/wdt.h> //watchdog
#define statusled_low 0x33
#define status... |
#include "tester_headers.hpp"
#include "../ft_set/ft_set.hpp"
#include <set>
void set_all_test() {
ft::set<int> ft_set;
ft_set.insert(99);
ft_set.insert(1);
ft_set.insert(1);
ft_set.insert(7);
ft_set.insert(5);
ft_set.insert(2);
ft_set.insert(10);
std::set<int> std_set;
std_set.insert(99);
std_set.insert(1... |
#include "DCCEventBlock.h"
#include "DCCDataParser.h"
#include "DCCDataMapper.h"
#include "DCCTowerBlock.h"
#include "ECALParserException.h"
#include "ECALParserBlockException.h"
#include "DCCSRPBlock.h"
#include "DCCTCCBlock.h"
#include "DCCXtalBlock.h"
#include "DCCTrailerBlock.h"
#include <iomanip>
#include <sstrea... |
//===- CFG.test.cpp ---------------------------------------------*- C++ -*-===//
//
// Copyright (C) 2021 GrammaTech, Inc.
//
// This code is licensed under the MIT license. See the LICENSE file in the
// project root for license terms.
//
// This project is sponsored by the Office of Naval Research, One Liberty
//... |
#include "vtkActor.h"
#include "vtkCamera.h"
#include "vtkCommand.h"
#include "vtkImageData.h"
#include "vtkImagePlaneWidget.h"
#include "vtkInteractorEventRecorder.h"
#include "vtkKochanekSpline.h"
#include "vtkOutlineFilter.h"
#include "vtkParametricSpline.h"
#include "vtkPlaneSource.h"
#include "vtkPointData.h"
#inc... |
#include "chi_directed_graph.h"
#include "chi_log.h"
#include "chi_mpi.h"
extern ChiLog& chi_log;
extern ChiMPI& chi_mpi;
#include <sstream>
#include <algorithm>
//###################################################################
/** Adds a vertex to the graph.*/
void chi_graph::DirectedGraph::
VertexAccessor:... |
/*
The MIT License (MIT)
Copyright (c) 2018 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, mod... |
#include "OgreConsole.h"
#include "CGameManager.h"
#include "CGameObjectManager.h"
#include "CCameraManager.h"
#include "CPluginManager.h"
#include "CGuiManager.h"
#include "CPlayer.h"
#include "CTextOutput.h"
#include "CUtility.h"
#include "IO/CoreLogging.h"
#include "CInputEvent.h"
// Plugin
#include "Plugins\IConso... |
/*
* FTOGL4-MS19 - Main program to test FTGL-OGL4 lib
*
* Copyright (c) 2021 <NAME> <<EMAIL>>
*
* 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
... |
/*
* Copyright 2020 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
*/
#include <algorithm>
#include <cassert>
#include <cctype>
#include <fstream>
#include <sstream>
#include <vector>
#include "aliases.h"
#include "asm_types.h"
... |
// RUN: %check_clang_tidy -std=c++14-or-later %s modernize-avoid-bind %t
namespace std {
inline namespace impl {
template <class Fp, class... Arguments>
class bind_rt {};
template <class Fp, class... Arguments>
bind_rt<Fp, Arguments...> bind(Fp &&, Arguments &&...);
} // namespace impl
template <typename T>
T ref(T ... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
#include "explicit_ssp_rk_stepper.hpp"
ESSPRKStepper::ESSPRKStepper(const StepperInput& stepper_input)
: order(stepper_input.order),
nstages(stepper_input.nstages),
dt(stepper_input.dt),
step(0),
stage(0),
timestamp(0),
t(0.),
ramp_duration(stepper_input.ramp_duration),
... |
/*
(c) Copyright [2017] Hewlett Packard Enterprise Development LP
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.