text stringlengths 3.08k 22k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "lib/common.hpp"
#include "mkl.h"
//#include "cblas.h"
// #include <fenv.h>
#include <xmmintrin.h>
void build_poe(const float *b, const float *d_b, const float *dd_b, float *ret_b,
const float *tau, const float *d_tau... |
#include "simple.h"
#include <cmath>
FP_TYPE my_round(FP_TYPE var, int decimal) {
// 37.66666 * 100 =3766.66
// 3766.66 + .5 =3767.16 for rounding off value
// then type cast to int so value is 3767
// then divided by 100 so the value converted into 37.67
FP_TYPE factor = pow(10.0, decimal);
... |
#include "plugin.hpp"
struct METRO : Module {
enum ParamIds {
BPM_PARAM,
RST_PARAM,
BEAT_PARAM,
ON_PARAM,
NUM_PARAMS
};
enum InputIds {
ON_INPUT,
BPM_INPUT,
NUM_INPUTS
};
enum OutputIds {
OUT_OUTPUT,
MES_OUTPUT,
BEAT_OUTPUT,
START_OUTPUT,
NUM_OUTPUTS
};
enum LightIds {
ON_LIGHT,
... |
//===- IA64InstrInfo.cpp - IA64 Instruction Information -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------... |
//! @file Bytestream.cc Definition of @ref fabrique::Bytestream
/*
* Copyright (c) 2013, 2016 <NAME>
* All rights reserved.
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
* ("CTSRD"), as part of the DARPA C... |
/* This file is part of Cloudy and is copyright (C)1978-2019 by <NAME> and
* others. For conditions of distribution and use see copyright notice in license.txt */
/*RT_tau_inc increment optical depths once per zone, called after radius_increment */
#include "cddefines.h"
#include "elementnames.h"
#include "taulines.h... |
#include "HeightNode.hpp"
#include "glm/vec2.hpp"
#include <algorithm>
#include <execution>
size_t HeightNode::RootSampleGridSize = 16;
double HeightNode::RootNodeLength = 10000;
HeightNode::HeightNode(const glm::ivec3 & node_grid_coordinates, std::vector<HeightSample> init_samples) : gridCoords(node_grid_coordinates)... |
#include <algorithm>
#include <sstream>
#include "tictactoe_app.hpp"
void TicTacToe::ResetBoard() {
std::generate(std::begin(board_), std::end(board_),
[]() { return Element::NONE; });
}
void TicTacToe::Reset() {
// Randomize first player
// Reset board
ResetBoard();
msg_ = "";
lbl_msg_... |
#include "Globals.h"
#include "Application.h"
#include "ModulePlayer.h"
#include "Primitive.h"
#include "PhysVehicle3D.h"
#include "PhysBody3D.h"
ModulePlayer::ModulePlayer(Application* app, bool start_enabled) : Module(app, start_enabled)
{
turn = acceleration = brake = 0.0f;
}
ModulePlayer::~ModulePlayer()
{}
// ... |
//
// Created by frockenb on 06.05.21.
//
#include <x/events/event_accumulator.h>
#include <iostream>
using namespace x;
EventAccumulator::EventAccumulator()
{}
EventAccumulator::EventAccumulator(const size_t buffer_size, const int accumulation_method, const int image_width, const int image_height, std::shared_ptr<... |
#define FTS_FUZZY_MATCH_IMPLEMENTATION
#include <QtWidgets>
#include "mainwindow.h"
#include <fts_fuzzy_match.h>
#include <glob.h>
#include <string>
#include <map>
#include <database.h>
Window::Window(QWidget *parent) : QMainWindow(parent)
{
// Initalise database
db.setDatabaseName("recipes.db");
// Initi... |
/*
* 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 writing, software
* ... |
#include "Game.h"
#include "Vertex.h"
#include "Input.h"
// Needed for a helper function to read compiled shader files from the hard drive
#pragma comment(lib, "d3dcompiler.lib")
#include <d3dcompiler.h>
// For the DirectX Math library
using namespace DirectX;
// -----------------------------------------------------... |
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <cmath>
#include <limits>
#include <cstdlib>
#include <algorithm>
#include <ctime>
#include <fstream>
using namespace std;
#include "seq_sample.h"
#include "utils.h"
SequenceSampler::SequenceSampler (int const& seed, float const& jac... |
/*
* An implementation of a dumb file-backed cache.
*/
#include "cached_file.h"
#include "stats_holder.h"
#include "walk_filesystem.h"
#include <assert.h>
#include <fcntl.h>
#include <sys/file.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <functional>
#include <i... |
// Copyright 2009 Google 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... |
/**
* @file main.cpp
* @section LICENCE
*
* This file is part of Lazy-AVLG v0.1.0
* See: https://github.com/dominikkempa/lz77-to-slp
*
* Copyright (C) 2021
* <NAME> <dominik.kempa (at) gmail.com>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and asso... |
//
// Created by user on 3/15/19.
//
#include <cryptopp/osrng.h>
#include <cryptopp/hex.h>
#include <cryptopp/pwdbased.h>
#include "hdkeys.h"
#include <wordlist.hpp>
#include <fc_light/crypto/sha256.hpp>
#include <keydata_singleton.hpp>
#include <regex>
#include <key_encryptor.hpp>
#include "eth_types_conversion.hpp"
#... |
/*-----( Import needed libraries )-----*/
#include <Arduino.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <FS.h>
#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WifiManager.h>
#include <ArduinoJson.h>
#include <BlynkSimpleEsp8266.h>
/*-----( Declare Constants... |
// SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>
// SPDX-License-Identifier: BSD-2-Clause
#include "MemorizeWidget.h"
#include "Helper.h"
#include "UserSettings.h"
#include <KLocalizedString>
#include <QDebug>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QRandomGenerator>
#include <QStringList>
#include <ma... |
// Copyright 2019 <NAME> (Falcons)
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 <NAME>
// SPDX-License-Identifier: Apache-2.0
// This application is able to synchronize the 4 raspi camera's
// The camera's generate frames just above 40 fps (25ms).
// Camera 0 is used as reference
// When the raspi CPU rece... |
#include <ros/ros.h>
#include <convert_image/ConvertImage.hpp>
#include <opencv2/opencv.hpp>
#include <alerror/alerror.h>
#include <alproxies/almotionproxy.h>
#include <alproxies/alledsproxy.h>
#include <vector>
#include <fstream>
using std::ifstream;
using std::vector;
#include "segmentation.hpp"
#include "ball_d... |
//
// DataLogger.mm
// MarkPad
//
// (c) <NAME> - http://www.telecom-paristech.fr/~elc
// (c) <NAME> - http://brunofruchard.com/
// Copyright (c) 2017/18. All rights reserved.
//
#include "ccuty/ccpath.hpp"
#include "DataLogger.h"
#include "Actions.h"
using ccuty::file_exists;
// - - - - - - - - - - - - - - - - ... |
//============================================================================
// Name : A1.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostr... |
#include <cassert>
#include <iostream>
#include <cstdint>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <functional>
#include <cmath>
#include <map>
#include <set>
namespace {
enum class RotateType {
kNone,
k90,
k180,
k270,
};
enum class FlipType {
kNone,
... |
#pragma once
// Description: C++18 specification of a SecUser history buffer object.
/*
* org.msscf.msscf.CFSec
*
* Copyright (c) 2020 <NAME>
*
* MSS Code Factory CFSec 2.13 Security Essentials
*
* Copyright 2020-2021 <NAME>
*
* This file is part of MSS Code Factory.
*
* MSS Code Factory is available... |
/* The smooth Class Library
* Copyright (C) 1998-2019 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of "The Artistic License, Version 2.0".
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WIT... |
// 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... |
/*
* Copyright 2011 <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 writin... |
// Copyright (c) 2012 The Chromium OS 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 "installer/chromeos_legacy.h"
#include <stdio.h>
#include <unistd.h>
#include <vector>
#include <base/files/file_enumerator.h>
#include... |
#include <algorithm>
#include <spdlog/spdlog.h>
#include <tmxlite/ObjectGroup.hpp>
#include "./environment.hpp"
#include "./player.hpp"
#include "../ai/particles.hpp"
#include "../ecs/aktor.hpp"
#include "../ecs/sprite.hpp"
#include "../ecs/kinematics.hpp"
#include "../ecs/health.hpp"
#include "../ecs/liquid.hpp"
#inc... |
//===- CoverageExporterJson.cpp - Code coverage export --------------------===//
//
// 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
//
//===---------------------------... |
//This is a Pin tool that will split the execution trace into per-message traces by monitoring the program's
//use of netwokring functions that read or write from sockets.
//Output:
//1. Taintdata execution traces
//2. Function Each function in the memory address
#include "pin.H"
#include <fstream>
#include <iostream>... |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2018 <NAME>, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person obtaining a cop... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any per... |
/*=============================================================================
UnStatChart.cpp: Stats Charting Utility
Copyright 2004 Epic MegaGames, Inc.
Revision history:
* Created by <NAME>
=============================================================================*/
#include "EnginePrivate.h"
#include "UnS... |
#include "swscomp.h"
#include <cstring>
#include <pugixml.hpp>
#include "swoshook.h"
//const intptr_t CompStructPtr = 0x4768456;
//const intptr_t CompStructPtr = 0x476A456;
//const intptr_t CompStructPtr = 0x476D456;
//const intptr_t CompStructPtr = 0x476F456;
//const intptr_t CompStructPtr = 0x477A95A;
//u... |
#include <inspurcloud/oss/model/UploadObjectRequest.h>
#include <inspurcloud/oss/model/InitiateMultipartUploadRequest.h>
#include <inspurcloud/oss/model/CompleteMultipartUploadRequest.h>
#include <inspurcloud/oss/OssFwd.h>
#include <inspurcloud/oss/Const.h>
#include <sstream>
#include <fstream>
#include <algorithm>
#in... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
// See the file "COPYING" in the main distribution directory for copyright.
#include "zeek-config.h"
#include "util.h"
#include "Hash.h"
#include "Frag.h"
#include "NetVar.h"
#include "Sessions.h"
#define MIN_ACCEPTABLE_FRAG_SIZE 64
#define MAX_ACCEPTABLE_FRAG_SIZE 64000
FragTimer::~FragTimer()
{
if ( f )
f->Cl... |
// *****************************************************************************
/*!
\file src/LoadBalance/UnsMeshMap.cpp
\copyright 2012-2015 <NAME>,
2016-2018 Los Alamos National Security, LLC.,
2019 Triad National Security, LLC.
All rights reserved. See the LICENSE fil... |
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI (*^..^*)
// for Raspberry Pi
//
// Powered by XM6 TypeG Technology.
// Copyright (C) 2016-2020 GIMONS
// Copyright (C) 2020-2021 Contributors to the RaSCSI project
// [ Send Control Command ]
//
//-----------... |
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
//
// A tutorial on how to use the Cartesian Interface to control a limb
// in the operational space.
//
// Author: <NAME> - <<EMAIL>>
#include <yarp/os/Network.h>
#include <yarp/os/RFModule.h>
#include <yarp/os/RateThread.h>
#include <yarp/os/Ti... |
//===-- X86FrameInit.cpp - X86 Frame Initialization -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
////////////////////////////////////////////////////////////////////////////////
// Catapult Synthesis
//
// Copyright (c) 2003-2015 Calypto Design Systems, Inc.
// All Rights Reserved
//
// This document contains information that is proprietary to Calypto Design
// Systems, Inc. The original recipient of this do... |
/// General Matrix Multiplication
#include <HElib/FHE.h>
#include <HElib/FHEContext.h>
#include <HElib/EncryptedArray.h>
#include <HElib/NumbTh.h>
#include "SMP/DoublePacking.hpp"
#include "SMP/Matrix.hpp"
#include "SMP/Timer.hpp"
#include <boost/asio.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <iostream>
#include ... |
// Copyright 2019 Graphcore Ltd.
//
// This example demonstrates how to create a custom operator for PopART, in this
// case an op that will take a tensor and cube all the elements
//
//
// ISSUE : the version can currently only be 9. Need to support onnx version
// information
#include <iostream>
#include <memory>
#in... |
//*****************************************************************************
// Copyright 2017-2020 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://w... |
#include "../../application/command_line_options.h"
#include "../../application/verbose.h"
#include "../../csv/stream.h"
#include "../../visiting/traits.h"
#include <boost/optional.hpp>
#include <iostream>
#include <fstream>
#include <cstdio>
#include <cstring>
#include <arpa/inet.h>
#include <netinet/tcp.h>
boost::op... |
#include "sensor_simulator.h"
SensorSimulator::SensorSimulator(std::shared_ptr<Ekf> ekf):
_airspeed(ekf),
_baro(ekf),
_flow(ekf),
_gps(ekf),
_imu(ekf),
_mag(ekf),
_rng(ekf),
_vio(ekf),
_ekf{ekf}
{
setSensorRateToDefault();
setSensorDataToDefault();
startBasicSensor();
}
void SensorSimulator::loadSensorDa... |
//==============================================================
// Copyright © 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
// =============================================================
/*
*
* Content:
* This sample demonstrates use of oneAPI Math Kernel Library (oneMKL)
* sparse BLAS API... |
/*
* The code is modified from the NIPS demo code by <NAME>
*
*
*
*
*/
/*
Copyright (c) 2011, <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 sou... |
// Includes
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/termios.h>
#include <sys/mman.h>
#include "../core/core.h"
#include "../core/opcodes.h"
// Cannot include im... |
#include "optionsmodel.h"
#include "bitcoinunits.h"
#include <QSettings>
#include "init.h"
#include "walletdb.h"
#include "guiutil.h"
#include "ringsig.h"
OptionsModel::OptionsModel(QObject *parent) :
QAbstractListModel(parent)
{
Init();
}
bool static ApplyProxySettings()
{
QSettings settings;
CServi... |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/string_util.h"
#include "chrome/common/automation_constants.h"
#include "chrome/common/json_value_serializer.h"
#include "chrome_frame/... |
#pragma once
#include "Level.h"
#include <glm/gtc/matrix_transform.hpp>
// @Note: probably I should factor out a new submodule
// instead of copy-pasting chunks around...
// https://github.com/Feacur/CustomEngineStudy/blob/master/code/shared/random.h
inline static r32 hash_01(u32 * state) {
union { u32 x; r32... |
#include "stdafx.h"
#include "Mapping.h"
// To Do ...
// ************************************************
// Win7 -> validate CRC of the page in Objects.data
//*************************************************
MappingFileClass::MappingFileClass() :
m_hMappingHandle(INVALID_HANDLE_VALUE),
m_dwIndexRootPage(0),
m... |
#include "Node.h"
Node::Node(const std::string &name, const int &loss_rate,
const in_port_t &local_port)
: Node(name, loss_rate, local_port, "127.0.0.1", local_port) {}
Node::Node(std::string name, const int &loss_rate, const in_port_t &local_port,
const std::string &parent_ip, const in_port... |
#include "BasicNetworking.h"
#include <iostream>
#include <string>
#include "RakPeerInterface.h"
#include "MessageIdentifiers.h"
#include "BitStream.h"
#include "gl_core_4_4.h"
#include <GLFW/glfw3.h>
#include <glm/ext.hpp>
#include "Gizmos.h"
#include <stdlib.h> /* srand, rand */
#include "../..... |
#include <omp.h>
#include "test.hh"
#include "cblas.hh"
#include "lapack_tmp.hh"
#include "blas_flops.hh"
#include "print_matrix.hh"
#include "check_gemm.hh"
// -----------------------------------------------------------------------------
template< typename TA, typename TX, typename TY,
typename Policy = de... |
#include <Evaluator.h>
#include <InfoPathFileIO.h>
void Evaluator::LoadGroundTruth(TSIn &SIn) {
NodeInfo nodeInfo;
InfoPathFileIO::LoadNetworkTxt(SIn, GroundTruth, nodeInfo);
}
void Evaluator::LoadInferredNetwork(TSIn &SIn, TStr modelName) {
NodeInfo nodeInfo;
InferredNetworks.Add(TStrFltFltHNEDNet());
... |
/* Copyright (c) The Grit Game Engine authors 2016
*
* 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, ... |
/* -------------------------------------------------------------------------
*
* conversioncmds.cpp
* conversion creation command support code
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Rege... |
#include <thread>
#include <fcntl.h>
#include <netinet/ip_icmp.h>
#include "common.hpp"
#include "ping.hpp"
const uint16_t network::ping_t::cksum4(uint16_t *buf, size_t sz) {
uint16_t *p = buf;
int nleft = sz;
int sum = 0;
while ( nleft > 1 ) {
sum += *p;
p++;
nleft -= 2;
}
if ( nleft == 1 ) {
uint16... |
/*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include "macros.h"
#include "simdebug.h"
#include "simmesg.h"
#include "simticker.h"
#include "display/simgraph.h"
#include "simcolor.h"
#include "gui/simwin.h"
#include "simworld.h"
#include "dataobj/loads... |
//
// AvUtils.cpp
// emptyExample
//
// Created by Hansi on 16.09.15.
//
//
#include "AvUtils.h"
#include <mutex>
#include <thread>
using namespace std;
// following lock impl as discussed in opencv http://code.opencv.org/issues/1369
static int ffmpeg_lockmgr_cb(void **mutex, enum AVLockOp op);
void AvUtils::... |
//
// Created by genshen on 2019-06-10.
//
#include <logs/logs.h>
#include <iostream>
#include <utils/mpi_domain.h>
#include "md_simulation.h"
#include "system_configuration.h"
#include "io/output_dump.h"
#include "io/output_copy.h"
MDSimulation::MDSimulation(ConfigValues *p_config_values)
: simulation(), cu... |
#include <afxwin.h>
#include "player.h"
#include "path.h"
#define PATHSERCHSIZE 16
#define RANGESERCH PATHSERCHSIZE
void CPath::CreatePath(CPoint src, CPoint dest, CGameMap* pMap)
{
//src.y = src.y/ICONSIZE;
//src.x = src.x/ICONSIZE;
//dest.y = dest.y/ICONSIZE;
//dest.x = dest.x/ICONSIZE;
m_pBestNode = ... |
// Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium Authors
//
// 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 righ... |
#include <limitless/text/font_atlas.hpp>
using namespace Limitless;
using namespace std::literals::string_literals;
FontAtlas::FontAtlas(const fs::path& path, uint32_t size)
: font_size{size} {
static FT_Library ft {nullptr};
if (!ft) {
if (FT_Init_FreeType(&ft)) {
throw font_error{"F... |
/******************************************************************************
/ ObjectState.cpp
/
/ Copyright (c) 2010 <NAME> (SWS)
/
/
/ 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 Softwa... |
// Copyright (c) 2019, SafeBreach
// 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 cond... |
// -*- C++ -*-
//
// Package: HydjetAnalyzer
// Class: HydjetAnalyzer
//
/**\class HydjetAnalyzer HydjetAnalyzer.cc yetkin/HydjetAnalyzer/src/HydjetAnalyzer.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>
// Created: Tue Dec ... |
#include "L1Trigger/L1TMuonEndCap/interface/SectorProcessor.h"
SectorProcessor::SectorProcessor() {}
SectorProcessor::~SectorProcessor() {}
void SectorProcessor::configure(const EMTFSetup* setup, int verbose, int endcap, int sector) {
emtf_assert(setup != nullptr);
emtf_assert(emtf::MIN_ENDCAP <= endcap && endca... |
#include "Model.h"
#include"parser.h"
int Model::exportImage(HWND hwnd)
{
WCHAR filename[MAX_PATH] = L"";
OPENFILENAMEW ofn;
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = hwnd;
ofn.hInstance = 0;
ofn.lpstrFilter = L"BMP (*.bmp)\0*.bmp\0JPEG (*.jpg)\0*.jpg\0PNG (*.p... |
/***************************************************************
*
* Copyright (C) 1990-2020, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
/*
* Copyright 2019 Xilinx 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 ... |
//
// Created by louis on 6/13/19.
//
#include "EngineMinimaxV2.h"
#include <bitset>
#include <bits/stdc++.h>
#include <algorithm>
#include <sstream>
#include <iostream>
#include "../searchUtils/Extensions.h"
#include "../searchUtils/TimeManagement.h"
#include "../protocols/Uci.h"
#include "../Art.h"
#include "../mai... |
#include <iostream>
#include <tuple>
#include <utility>
#include <string>
#include <vector>
#include <sstream>
template <typename T>
void print( T t) {
std::cout << t << std::endl;
}
class tfn_print{
public:
template <typename... Args>
auto operator()(Args&& ... args) const -> decltype( print(std::for... |
#include <GL/glut.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
/*
* This macro is only intended to be used on arrays, of course.
*/
#define NUMBEROF(x) ((sizeof(x))/(sizeof(x[0])))
/*
* These global variables control which object is drawn,
* and how it is drawn. No object uses all of these
* v... |
/*--------------------------------------------------------------------------
File : uart_osx.cpp
Author : <NAME> Sep. 3, 2016
Desc : uart OSX implementation
Copyright (c) 2016, I-SYST inc., all rights reserved
Permission to use, copy, modify, and distribute this software for any purpose
with... |
#include <list>
#include <vector>
#include <string>
#include <iostream>
#include <chrono>
#include <fstream>
#include "TestReAligner.h"
#include "ReAligner.h"
#include "FragmentReader.h"
#include "LayoutReader.h"
#include "Reader.h"
#include "OutputWriter.h"
#include "ColumnCount.h"
// Registers the fixture into the ... |
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
#define BOOST_SPIRIT_DEBUG
#include "boost/spirit/include/classic.hpp"
#include <boost/config/warning_disable.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix_core.hpp>
#include <boost/spirit/include/phoenix_opera... |
/*
* Copyright 2016 The Cartographer 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... |
/**
* Copyright (c) 2016-2018 <NAME>. All rights reserved. A
* copyright license for redistribution and use in source and binary forms,
* with or without modification, is hereby granted for non-commercial,
* experimental and research purposes, provided that the following conditions
* are met:
* - Redistributions ... |
/* Mednafen - Multi-system Emulator
*
* 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 distrib... |
#include "FirstOrderRectangleFE.hpp"
void solveWithFirstOrderRectangleFE(FirstOrderRectangleContributionMatrix *&contributionMatrix,
FirstOrderRectangleRightPart *&localRigthParts,
Point **&coordinateMesh,
doubl... |
#include <iostream>
#include "sre/Texture.hpp"
#include "sre/Renderer.hpp"
#include "sre/Material.hpp"
#include "ParticleSystem.hpp"
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/euler_angles.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <sre/SDLRenderer.hpp>
#include <sre... |
#include "memDbg.h"
#include <string>
#include <cassert>
#include <wx/fileconf.h>
#include <wx/app.h>
#include "Options.h"
#include "Log.h"
Options::Options()
{
videoOptions.keepAspect = DEFAULT_KEEPASPECT;
videoOptions.filter = DEFAULT_VIDEOFILTER;
videoOptions.messageFontSize = 16;
audioOptions.sampleRate = DEF... |
//
// Created by wei on 2/4/19.
//
#include <vector>
#include <string>
#include <Open3D/Open3D.h>
#include <Open3D/Registration/GlobalOptimization.h>
#include <Cuda/Open3DCuda.h>
#include "../DatasetConfig.h"
#include "../ORBPoseEstimation.h"
using namespace open3d;
using namespace open3d::utility;
using namespace ... |
#include "Vec3.hpp"
Vec3::Vec3(double x, double y, double z){
this->x = x;
this->y = y;
this->z = z;
}
// Done assuming the angles are in degrees, if radians replace with angle*180/pi
Vec3::Vec3(double theta, double phi){
// Later change this to a static attribute
double R_earth = 6371000; /... |
// Copyright (c) 2017 Intel Corporation
//
// 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, pub... |
/* -*- C++ -*-
* File: simple_dcraw.cpp
* Copyright 2008-2021 LibRaw LLC (<EMAIL>)
* Created: Sat Mar 8, 2008
*
* LibRaw simple C++ API: emulates call to "dcraw [-D] [-T] [-v] [-e] [-4]"
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:... |
#include <fstream>
#include <string.h>
#include <stdlib.h>
#include "pm.h"
using namespace jhm;
//----------------------------------------------------------------------//
// File I/O for "*.htr" //
//----------------------------------------------------------------------//
#define PM_MOTION_... |
/* <NAME> */
#if defined(__APPLE__) && defined(__MACH__)
# include <GLUT/glut.h>
#else
# include <GL/glut.h>
#endif
#include <cmath>
#include <cstring>
#include <iostream>
#include <fstream>
#include <regex>
#include "code/utilities/data_structures/vector/vector3f.h"
#include "code/utilities/data_structures/matr... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
#include <stdio.h>
#include <string.h>
#include <memory>
#include <AudioToolbox/AudioFile.h>
#include <AudioToolbox/AudioConverter.h>
#include <CoreAudio/CoreAudioTypes.h>
#include <CoreServices/CoreServices.h>
#include <plugin/DecoderProto.h>
using namespace mous;
namespace {
struct Self {
uint64_t unit_i... |
/*
* Copyright (C) 2009 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... |
#pragma once
#include "generator/osm_id.hpp"
#include "indexer/feature.hpp"
#include "coding/file_reader.hpp"
#include "coding/read_write_utils.hpp"
#include "std/bind.hpp"
namespace serial { class CodingParams; }
/// Used for serialization\deserialization of features during --generate_features.
class FeatureBui... |
#include <Windows.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <iostream>
#include <vector>
#include <map>
#include "string_util.h"
#define VERSION "0.2"
bool g_is32bit = false;
typedef struct {
std::string infile;
std::string outfile;
bool inlineStrings;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.