text stringlengths 3.08k 22k |
|---|
// -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
#include "config.h"
#include <sstream>
#include <strstream>
#include <fstream> // need to read flows
#include <iostream>
#include <string.h>
#include <math.h>
#include "network.h"
#include "randomqueue.h"
#include "pipe.h"
#include "eventlist.h"
#include "... |
#include "blqstrm.hpp"
#include <cerrno>
#include <cstdlib>
#include <cstring>
constexpr int MAX_HEADER_CHARS = 256;
constexpr int MAX_HEADER_LINES = 500;
/// Check if given line marks the end of header; for this to happen, the
/// line should:
/// 1. Start with '$$'
/// 2. Include the string 'END HEADER', procedded ... |
////////////////////////////////////////////////////////////////////////////////
//
// FileName : KG3DFlashTexture.cpp
// Version : 1.0
// Creator : Chiyer
// Create Date : 2007-9-20
// Comment :
//
////////////////////////////////////////////////////////////////////////////////
#include... |
#include <eosio/abi.hpp>
#include <eosio/asset.hpp>
#include <eosio/bytes.hpp>
#include <eosio/crypto.hpp>
#include <eosio/fixed_bytes.hpp>
#include <eosio/float.hpp>
#include <eosio/from_bin.hpp>
#include <eosio/from_json.hpp>
#include <eosio/symbol.hpp>
#include <eosio/time.hpp>
#include <eosio/to_bin.hpp>
#include <... |
#include <Sesame.h>
#include <Sesame/Core/EntryPoint.h>
#include "Platform/OpenGL/OpenGLShader.h"
#include "imgui/imgui.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "Playground2D.h"
class NewLayer : public Sesame::Layer
{
public:
NewLayer()
: Layer... |
#include <algorithm>
#include <array>
#include <bitset>
#include <charconv>
#include <iostream>
#include <queue>
#include <string_view>
#include <unordered_map>
#include <utility>
#include <vector>
#include "input.hpp"
using uintmax = std::uintmax_t;
using Location = std::string_view;
using LocationID = uintmax;
us... |
#include "QatPlotWidgets/PlotView.h"
#include "QatPlotting/PlotHist1D.h"
#include "QatPlotting/PlotFunction1D.h"
#include "QatDataAnalysis/Hist1D.h"
#include "QatDataAnalysis/OptParse.h"
#include "QatGenericFunctions/ArgumentList.h"
#include "F2DViewerWidget.h"
#include "FourierCoefficientSet.h"
#include "FourierExpan... |
#include "mpegts_muxer.h"
#include "simple_buffer.h"
#include "ts_packet.h"
#include "crc.h"
#include <string.h>
#include "common.h"
static const uint16_t MPEGTS_NULL_PACKET_PID = 0x1FFF;
static const uint16_t MPEGTS_PAT_PID = 0x00;
static const uint16_t MPEGTS_PMT_PID = 0x100;
static const uint16_t MPEGTS_P... |
/*******************************************************************************
* Copyright (c) 2021, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sourc... |
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
//Bibliotecas por default
#include <iostream>
#include "ros/ros.h"
#include "justina_tools/JustinaHardware.h"
#include "justina_tools/JustinaManip.h"
#include "justina_tools/JustinaNavigation.h"
#include "justina_tools/JustinaTools.h"
#include "justina_tools/JustinaVision.h"
#include "justina_tools/JustinaTasks.h"
#in... |
/*
Copyright (c) 2016 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicen... |
//Lee los datos de la matriz principal
//Calcula los parámetros necesarios para determinar densidad de aire húmedo mediante método de temperatura virtual
#include "iostream"
#include "fstream"
#include "string"
#include "iomanip"
#include "cmath"
using namespace std;
double inten(double v[], double w[], int , double )... |
//---------------------------------------------------------------------------//
/*
Copyright (c) 2012, <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 cod... |
/**
* @file fcfs_scheduling.cpp
* @brief Implementation of FCFS CPU scheduling algorithm
* @details
* FCFS is a non-preemptive CPU scheduling algorithm in which whichever process arrives first, gets executed first.
* If two or more processes arrive simultaneously, the process with smaller process ID gets executed... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2022 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
/** @file
A brief file description
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you und... |
//
// Created by lejonmcgowan on 10/23/17.
//
#include "PressureSolver.h"
#include<eigen3/Eigen/IterativeLinearSolvers>
PressureSolver::PressureSolver()
{
}
PressureSolver::~PressureSolver()
{
}
void PressureSolver::solve(const MACVectorGrid &input,
const ScalarGrid &boundarySDF,
... |
/*
* General support for vehicles in MulticopterSim
*
* This class peforms the following functions:
*
* (1) Statically builds meshes, cameras, and other UE4 objects
*
* (2) Provides basic support for displaying vehicle kinematics
*
* Copyright (C) 2019 <NAME>, <NAME>
*
* MIT License
*/
#pragma once
#defin... |
#include "GAMER.h"
extern double (*Mis_GetTimeStep_User_Ptr)( const int lv, const double dTime_dt );
//-------------------------------------------------------------------------------------------------------
// Function : Mis_GetTimeStep
// Description : Estimate the evolution time-step (dt) and the physical t... |
#include <esp_log.h>
#include <esp_system.h>
#include <string.h>
#include <GeneralUtils.h>
#include <Task.h>
#include <freertos/event_groups.h>
#include <json11.hpp>
#include "Mutex.h"
#include "Config.h"
#include "irserverProtocol.h"
#include "IRService.h"
#include "LEDService.h"
#include "PubSubService.h"
#include "S... |
// Author: <NAME>
// University of Bologna
// <EMAIL>
//
// Class devoted to read from jobs info from text files and create the online scheduler
//
// Header files to read and manage the input files
#include <NodeReader.hpp>
#include <JobReader.hpp>
#include <JobQueueReader.hpp>
#include <ListScheduler.hpp>
#include ... |
#include <unistd.h>
#include <iomanip>
#include <iostream>
#include <torch/utils.h>
#include <torch/torch.h>
#include <torch/script.h>
#include <torch/autograd.h>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
//#include "../utils/Ch_13_util.h"
#include "../utils.h"
#include "../matplotlibcpp.h"
names... |
/*
Copyright 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, ... |
#include "prob.H"
std::string
read_pmf_file(std::ifstream& in)
{
return static_cast<std::stringstream const&>(
std::stringstream() << in.rdbuf())
.str();
}
bool
checkQuotes(const std::string& str)
{
int count = 0;
for (char c : str) {
if (c == '"') {
count++;
}
}
return (count %... |
/******************************************************************************
* @file prngcl_pm.cpp
* @author <NAME> <<EMAIL>>
* @version 1.1.2
*
* @brief [PRNGCL library]
* contains implementation, description and initialization procedures of
* Park-Miller pseudo-random number ge... |
//
// Sparse Matrix: Aug 11, 1998
//
#include "stdafx.h"
#include "mathclass.h"
#include "NR/nr.h"
#include "smatrixn.h"
#include <cmath>
using namespace std;
void smatrixn::assign(matrixn const& other)
{
const DP TINY=1.0e-20;
ASSERT(other.rows()==other.cols());
int maxEntry=other.rows()*other.... |
/*
MIT License
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, modify, merge, publish, distrib... |
/***** Vca Info Server *****/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****
******************/
/************************
***** Supporting *****
************************/
#include "Vca_VOneAppMain_.h"
#include "Vca_VServerApplicati... |
#include "ofApp.h"
#include <iostream>
#include <string>
#include <math.h>
// Colors for pitches.
int PITCH_COLORS[] = {
0x210000, 0x211000, 0x212100, 0x102100, 0x002100, 0x002110,
0x002121, 0x001021, 0x000021, 0x100021, 0x210021, 0x210010};
glm::vec4 randomMove(float x, float y, float theta, float targetTh... |
/*
Copyright (c) 2018, <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... |
/**
* Copyright (C) 2022 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... |
/*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* 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 appl... |
#include "Commons.h"
#include "SystemCallWrapper.h"
#include "TrayControlWindow.h"
#include <time.h>
#include <QApplication>
#include <QDir>
#include <QCryptographicHash>
#include <QProcess>
#include <QNetworkReply>
const char* CCommons::RESTARTED_ARG = "restarted";
const char* CCommons::PEER_PATH = "Subutai-peers";
... |
/*
Copyright (c) 2007 <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 require... |
#include "app.h"
#include "util.h"
#include <thread>
#include <chrono>
#include <limits>
#include <ppl.h>
// Constructor
Kinect::Kinect()
{
// Initialize
initialize();
}
// Destructor
Kinect::~Kinect()
{
// Finalize
finalize();
}
// Processing
void Kinect::run()
{
// Main Loop
while( true )... |
/*
* Copyright (c) 2016-2019 <NAME>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercial appl... |
/*
* Copyright (c) 1999 - 2005 NetGroup, Politecnico di Torino (Italy)
* Copyright (c) 2005 - 2006 CACE Technologies, Davis (California)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are ... |
/////////////////////////////////////////////////////////////////////////
// $Id: keymap.cc 11058 2012-02-23 17:16:35Z vruppert $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002-2009 The Bochs Project
//
// This library is free software; you can redistribute it and/... |
#include "sdl_player.h"
#include <algorithm>
#include <assert.h>
#include "logger.h"
#include "video/video_factory.h"
namespace {
/* polls for possible required screen refresh at least this often, should be less than 1/fps */
constexpr float kRefreshRate = 0.1; //
}
/* Fast a/(1<<b) rounded toward +inf. Assume a>=0... |
/**_________________________________________________________________
class: JetCombinatorics.cc
package: Analyzer/TopTools
author: <NAME>, Fermilab (<EMAIL>)
version $Id: JetCombinatorics.cc,v 1.3 2009/07/30 06:02:21 jengbou Exp $
________________________________________________________________**/
#incl... |
/*
Copyright (c) 2012, Lunar Workshop, Inc.
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 following disclaimer.
2. R... |
/* FluidSynth - A Software Synthesizer
*
* Copyright (C) 2019 <NAME> and others.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your... |
///
/// @file cmdoptions.cpp
/// @brief Parse command-line options for the primesieve console
/// (terminal) application.
///
/// Copyright (C) 2019 <NAME>, <<EMAIL>>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include "cmdoptions.hpp"
#... |
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <exception>
#include <fstream>
#include <string>
#include <vector>
#include <ion/ion.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "ion-bb-core/bb.h"
#include "ion-bb-image-io/... |
/* $Id: RTCat.cpp $ */
/** @file
* IPRT - cat like utility.
*/
/*
* Copyright (C) 2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GN... |
#include <filesystem>
#include <iostream>
#include <memory>
#include "glad/glad.h"
//
#include "GLFW/glfw3.h"
#include "glm/gtc/matrix_transform.hpp"
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
//
#include "ogls/camera.hpp"
#include "ogls/model.hpp"
#include "ogls/quad.hpp"
#include... |
#include "common.h"
Player::Player() : Entity()
{
img[LIGHT] = image_entries[image_LUT_player_ship_light];
img[SHADOW] = image_entries[image_LUT_player_ship_shadow];
img[LIGHT + SWITCHING0] = image_entries[image_LUT_player_ship_polarityswitch_0_light];
img[SHADOW + SWITCHING0] = image_entries[image_LUT_player_ship... |
/************************************************************************
* *
* GLE - Graphics Layout Engine <http://www.gle-graphics.org/> *
* *
* Modified BSD License ... |
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <vector>
#include <string.h>
using namespace std;
#define eps 1e-6
struct Pt {
float x, y;
bool operator<(const Pt &a) const {
if(a.x != x)
return x < a.x;
return y < a.y;
}
};
struct Seg {
Pt s, t;
};
float c... |
//
// Group.cpp
//
// Created by <NAME>
//
#include "Group.hpp"
#include "tools.hpp"
using namespace tools;
Group::Group() {
Object init_obj("init_g_object_0");
id = "init_gid";
initialize(init_obj);
}
Group::Group(string nid, Object& obj) {
id = nid;
initialize(obj);
}
//Group::Group(const Group& ot... |
/*
* Copyright (c) 2019, Systems Group, ETH Zurich
* Copyright (c) 2016 Xilinx, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the a... |
/*=======================================================================
Copyright (c) 2018 <NAME>.
This software is distributed under the Apache License, Version 2.0.
All copies must contain the full copyright notice licence.txt located
at the base folder of the distribution.
==========================... |
#include <sstream>
#include "GraphicsConfig.h"
#include "Logger.h"
#include "VoxelMap.h"
VoxelMap::VoxelMap()
{
selectedVoxel = vec::vec3i(0, 0, 0);
hasValidMap = false;
}
void VoxelMap::InitOpenGl()
{
// OpenGL drawing data.
glGenVertexArrays(1, &vao);
glBindVertexArray(vao);
... |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#include <map>
#include <random>
#include <boost/program_options.hpp>
#include <seastar/core/app-template.hh>
#include <seastar/core/do_with.hh>
#include <seastar/core/future-util.hh>
#include <seastar/core/reactor.hh>
#... |
/*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
using namespace std;
void Pa... |
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... |
#include <getopt.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <iostream>
#include "dmp/cart_dmp/cart_coord_dmp/CartesianCoordDMP.h"
#include "dmp/cart_dmp/cart_coord_dmp/CartesianCoordTransformer.h"
#include "dmp/dmp_coupling/learn_obs_avoid/TransformCouplingLearnObsAvoid.h... |
// This file is part of Project Name
// Copyright (C) Michigan State University, 2017.
// Released under the MIT Software license; see doc/LICENSE
#include "emp/web/web.hpp"
#include "../SimplePDWorld.hpp"
namespace UI = emp::web;
const double world_size = 600;
UI::Document doc("emp_base");
SimplePDWorld world;
... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... |
/*
* File: step3_gpuf.cpp
* License: Please see LICENSE file.
* AccFFT: Massively Parallel FFT Library
* Created by <NAME> on 11/23/2015
* Email: <EMAIL>
*/
#include <stdlib.h>
#include <math.h>
#include <mpi.h>
#include <cuda_runtime_api.h>
#include <accfft_gpuf.h> // single precision
#define INPLACE // comment ... |
struct integrandInputs {
pts2D X;
int p;//summation term
int l;//basis index
pts2D center_B;//center of box B
pts2D center_A;//center of box A
int level_A;
int level_B;
double radius_B;
double radius_A;
};
const double GAMMA = 0.57721566490153286060;//Euler's constant
class NearFieldInteraction1: pu... |
/*--------------------------------------------------------------------------*\
Copyright (c) 2008-2009, <NAME>. All rights reserved.
http://www.dannyruijters.nl/cubicinterpolation/
This file is part of CUDA Cubic B-Spline Interpolation (CI).
Redistribution and use in source and binary forms, with or without
modificati... |
/*
** ClanLib SDK
** Copyright (c) 1997-2016 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... |
#include "geometry.h"
#include "make_unique.h"
#include <algorithm>
#include <cmath>
#include <cassert>
namespace
{
const double EpsilonRad = 1e-10;
/// Return true if a given angle in rad is zero
inline bool isZeroAngle(double angle)
{
return angle < EpsilonRad && -angle < EpsilonRad;
}
}
... |
#include "vaisseau_data.h"
#include "allegro_compatibility.h"
#include "option.h"
#include "platform_data.h"
int init_vaisseau_data(struct vaisseau_data *v, struct vaisseau_gfx *gfx,
float mass, float thrust_max, int anglestep,
int max_fuel, int speed_fuel_down, int... |
// Copyright (c) 2014 <NAME>
// License: MIT License | http://opensource.org/licenses/MIT
// http://vittorioromeo.info | <EMAIL>
// Before completing our game, let's spend some time refactoring
// the code. There is a lot of unnecessary duplication!
#include <SFML/Graphics.hpp>
constexpr unsigned int wndWidth{800}, ... |
// BriocheBot
// The MIT License(MIT)
//
// Copyright(c) 2015 <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 without limitation the right... |
#include "../gpufit.h"
#include <vector>
#include <random>
#include <iostream>
#include <chrono>
#include <numeric>
#include <math.h>
void generate_gauss_2d(
std::vector<float> const & x,
std::vector<float> const & y,
std::vector<float> & g,
std::vector<float> const & p)
{
// generates a Gaussian 2D ... |
#include "simulation/ElementCommon.h"
#include "Probability.h"
static int graphics(GRAPHICS_FUNC_ARGS);
void Element::Element_EMP()
{
Identifier = "DEFAULT_PT_EMP";
Name = "EMP";
Colour = PIXPACK(0x66AAFF);
MenuVisible = 1;
MenuSection = SC_ELEC;
Enabled = 1;
Advection = 0.0f;
AirDrag = 0.00f * CFDS;
AirLos... |
#include "GrenadePrediction.h"
void GrenadePrediction::Tick(int buttons)
{
bool in_attack = buttons & IN_ATTACK, in_attack2 = buttons & IN_ATTACK2;
auto local_player = INTERFACES::ClientEntityList->GetClientEntity(INTERFACES::Engine->GetLocalPlayer());
if (local_player && local_player->GetHealth() > 0)
{
act = (... |
/*
BASIC GLFW + GLXW WINDOW AND OPENGL SETUP
------------------------------------------
See https://gist.github.com/roxlu/6698180 for the latest version of the example.
We make use of the GLAD library for GL loading, see: https://github.com/Dav1dde/glad/
*/
#include <stdlib.h>
#include <stdio.h>
#inc... |
#include <windows.h>
#include <stdio.h>
#include <direct.h>
extern "C" {
#include "thread/thread.h"
#include "avl/avl.h"
#include "log/log.h"
#include "global.h"
#include "httpp/httpp.h"
#include "net/sock.h"
#include "connection.h"
#include "refbuf.h"
#include "client.h"
#include "stats.h"
}
// Issues... |
#include "RecoVertex/KinematicFit/interface/FinalTreeBuilder.h"
#include "RecoVertex/KinematicFitPrimitives/interface/KinematicRefittedTrackState.h"
#include "RecoVertex/KinematicFitPrimitives/interface/KinematicStatePropagator.h"
#include "RecoVertex/KinematicFitPrimitives/interface/KinematicState.h"
//#include "Verte... |
// Copyright <NAME> 2008 - 2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <memory>
#include <set>
#include <iostream>
#include <boost/format.hpp>
#include <boost/optional.hp... |
//
// Copyright(c) 2017-2018 <NAME> ( pumexx )
//
// 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... |
///////////////////////////////////////////////////////////////////
// Copyright <NAME> 2020 - 2021. //
// Distributed under the Boost Software License, //
// Version 1.0. (See accompanying file LICENSE_1_0.txt //
// or copy at http://www.boost.org/LICENSE_1_0.txt) ... |
/**
MIT License
Copyright (c) 2018 NVIDIA CORPORATION. All rights reserved.
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, co... |
#include "bitcoinunitstests.h"
#include "bitcoinunits.h"
#include <QUrl>
void BitcoinUnitsTests::parseTests()
{
qint64 value = 0;
/// Tests with en_US locale
QLocale locale1("en_US");
QVERIFY(BitcoinUnits::parse(BitcoinUnits::LGC, "0", &value, locale1));
QCOMPARE(value, 0LL);
QVERIFY(Bitcoin... |
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#include <Arduino.h>
#if defined(ESP8266)
#include <ESP8266WiFi.h>
#else
#include <WiFi.h>
#endif
#include <ESPAsyncTCP.h>
#include <NTPClient.h>
#include <RTClib.h>
#include <Arduino_JSON.h>
#include <ESPAsyncWebServer.h>
#include <ESPAsyncWiFiManager.h... |
/* Comprobación de las clases Articulo, Usuario, Tarjeta y
* asociadas: Clave y Numero
* LIBRERÍA
* ©2009 Inma, <NAME>, Gerardo
*/
#include "usuario.h"
#include "tarjeta.h"
#include "articulo.h"
#include <unistd.h>
#include <cstdlib>
#include <exception>
#include <iostream>
#include <locale>
void numero_incorrect... |
// Copyright (c) 2006, <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 an... |
#include <iostream>
#include <string>
#include <future>
#include <opencv2/opencv.hpp>
#include "PBAS.h"
#include "PBAS_CUDA.h"
static void show_usage()
{
std::cerr << "Usage: " << std::endl
<< "\t-h,--help\tShow this help message" << std::endl
<< "\t-s,--sequence \tPath to Sequence\tSp... |
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#include <stdlib.h>
#include <string.h>
#include "wd1793_fdd.h"
#include "defines.h"
#include "zemu_env.h"
uint8_t snbuf[SNBUF_LEN]; // large temporary... |
#include "cmake_writer.h"
#include "benchmarktarget_writer.h"
#include "precomp.h"
#include "settings_parser.h"
#include "subdir_writer.h"
#include "testtarget_writer.h"
CmakeWriter::CmakeWriter(RepoSearcher searcher) : searcher_(searcher) {
SettingsParser parse;
std::string cmake_config_path;
#ifdef WindowsBuild... |
#include "Disassembler.h"
#include <fstream>
#include <iostream>
std::string DisasmData::addressToStr()
{
return intToHexString(address, 2);
}
std::string DisasmData::opcodeToStr()
{
return intToHexString(opcode, ins.getLength());
}
std::string DisasmData::mnemonicToStr()
{
return ins.mnemonic;
}
std::string Di... |
#include <FishGUI/GLEnvironment.hpp>
#include "UnityToolBar.hpp"
#include <FishGUI/FishGUI.hpp>
#include <FishGUI/Draw.hpp>
#include <FishGUI/Theme.hpp>
#include <nanovg/nanovg_gl.h>
#include <FishGUI/Utils.hpp>
#include <FishGUI/Input.hpp>
// code point of ui-icon in icomoon.ttf
constexpr int ICO_HAND = 0xe900;
cons... |
/*************************************
* THIS PROGRAM IS CALCULATING WITH A DIFFERENT "INITIAL CONDIT*
* ION". THE DIMERS ARE SPACED EVENLY WITH THE LOOPS EXTRACTED.*
* *
* This file is to calculate the position of m dimer motors on *
* a lattice of size L. ... |
#include <Windows.h>
#include "Globals.h"
#include "Helpers.h"
#define _USE_MATH_DEFINES
#include <math.h>
struct Chest
{
int offset;
short value;
};
void GoA()
{
if (Place == 0x1A04)
{
if (PrevPlace != 0x1A04 && Read<short>(SaveAddress + 0x3524) > 0)
RefillDrive();
Write<const char *>(Object00Address + 0... |
#include <iostream>
#include <vector>
#include <fstream>
#include "sparseMatrix.h"
using namespace std;
//adds a new node to the matrix linked list, skips entries with a value of 0
//resolves collisions by adding values of original and new node
void sparseMatrix::addNode(int r, int c, float v){
if(v == 0)
return;... |
#include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#define ... |
#include <atomic>
#include <functional>
#include <list>
#include <mutex>
#include <optional>
#include <random>
#include <thread>
#include <vector>
#include "graph.hpp"
#include "graph_generator.hpp"
namespace {
double get_real_random_number() {
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_real_d... |
/*
<NAME>
ID:110023088
CSCI 172
Project 2
*/
#include <string.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <stdlib.h>
#include <iostream>
#include <math.h>
using namespace std;
bool WireFrame= false;
bool flagC=false;//Cube flag
bool flagT=false;//Teapo... |
#include "LoaderEeprom.h"
#include "../Bittle.h"
#include <Arduino.h>
#include <Wire.h>
#include <EEPROM.h>
#define PT(s) Serial.print(s) //makes life easier
#define PTL(s) Serial.println(s)
#define PTF(s) Serial.print(F(s))//trade flash memory for dynamic memory with F() function
#define PTLF(s) Serial.println(F(s)... |
#include "PileupBuffer.h"
void Pileup::signalEOI() {
resultMgr->signalEOI();
}
int Pileup::insert(uint32_t tid, uint32_t pos, int n,
const bam_pileup1_t *pl, void *data)
{
//Rprintf("pos: %d\n", pos);
Pileup *pileup = static_cast<Pileup*>(data);
pos = pos + 1; // 1-based indexi... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <set>
#include <utility>
using namespace std;
typedef pair<int, int> PII;
template<class T> vector<T> tokenize(string s, const string &delim=" ") {
vector<T> ret;... |
#include <vector>
#include <map>
#include <string>
#include <algorithm>
#include <mutex>
#include <gtkmm/application.h>
#include <gtkmm/builder.h>
#include <gtkmm/window.h>
#include <gtkmm/comboboxtext.h>
#include <gtkmm/button.h>
#include <gtkmm/scale.h>
#include <gtkmm/adjustment.h>
#include <gtkmm/checkbutton.h>
#i... |
// Copyright (c) 2021 Graphcore Ltd. All rights reserved.
#define BOOST_TEST_MODULE Test_AAPI_loop_accumulate
#include <boost/test/unit_test.hpp>
#include <popart/graph.hpp>
#include <popart/iarray.hpp>
#include <popart/ir.hpp>
#include <popart/names.hpp>
#include <popart/ndarraywrapper.hpp>
#include <popart/op/accumu... |
#include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 1e18;
const long long ... |
#include <string.h>
#include "Befaco.hpp"
#include "dsp/functions.hpp"
#include "dsp/samplerate.hpp"
#include "dsp/ringbuffer.hpp"
#include "dsp/filter.hpp"
#include "pffft.h"
float *springReverbIR = NULL;
int springReverbIRLen;
void springReverbInit() {
if(NULL == springReverbIR)
{
std::string irFilenam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.