text stringlengths 3.08k 12.5k |
|---|
/*
* build_context.cpp
*
* Created on: Mar 31, 2020
* Author: <NAME>
*/
#include "function_manager.h"
#include <algorithm>
#include <stdexcept>
#include <utility>
#include <llvm/IR/BasicBlock.h>
#include <llvm/IR/DerivedTypes.h>
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/Instructions.h>
#include <ll... |
#include "Cursor.h"
#include <iostream>
Cursor::Cursor(){}
Cursor::~Cursor(){}
Cursor::Cursor(Vector2f position, string const &texture) :
m_position(position)
{
//load textures
if (!m_texture.loadFromFile(texture))
{
std::string s("Error loading texture");
throw std::exception(s.c_str());
}
if (!m_crosshair.l... |
/* Copyright (C) 2016-2019 <NAME> - All Rights Reserved.
Distributed under MIT license.
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
The author would be happy if changes and
improvements were reported back to him.
Author: <NAME>
Email: <EMAIL>
*/
#include <thread>
... |
/****************************************************************************
*
* Copyright (c) 2021 Vivante 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 ... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
// Original code is licensed as follows:
/*
* Copyright 2009 ZXing authors
*
... |
#include "resource.h"
#include "log.h"
#define STBI_HEADER_FILE_ONLY
#include "stb_image.c"
#undef max
#include <string>
// ----------------------------------------------------------------------------
struct ImageData
{
int width, height, components;
GLenum internalFormat, pixelFormat;
unsigned char* data... |
// Copyright (c) 2012- PPSSPP Project.
// 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, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// b... |
#pragma once
#include <vector>
#include <unordered_map>
#include <map>
#include <iostream>
#include <sstream>
#include <chrono>
#include <ctime>
#include <random>
#include <fstream>
#include <cassert>
template <class T>
T max(const std::vector<T>& v)
{
assert (v.size() != 0);
T m = v[0];
size_t sz = v.size();
for... |
/*
This file is part of PyMbs.
PyMbs 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 3 of
the License, or (at your option) any later version.
PyMbs is distributed in the hope that it will ... |
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <fstream>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "absl/container/flat_hash_set.h"
#include "absl/hash/hash.h"
#include "cc/util/check.h"
namespace {
int GCD(int a, int b) {
... |
/*****************************************************************************************
* MIT License *
* *
* Copyright (c) 2020 <NAME>, <NAME>, <NAME> e ... |
#include "asset/cooker.hpp"
#include "asset/importer.hpp"
#include "bitsery/adapter/buffer.h"
#include "ecs/dual.h"
#include "ftl/task_counter.h"
#include "ghc/filesystem.hpp"
#include "platform/guid.h"
#include "platform/thread.h"
#include "resource/config_resource.h"
#include "resource/resource_header.h"
#include <mu... |
// Magic Software, Inc.
// http://www.magic-software.com
// Copyright (c) 2000-2002. All Rights Reserved
//
// Source code from Magic Software is supplied under the terms of a license
// agreement and may not be copied or disclosed except in accordance with the
// terms of that agreement. The various license agreemen... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2017, STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED W... |
/////////////////////////////////////////////////////////////////////////
///@file config.cpp
///@brief 配置文件读写
///@copyright 上海信易信息科技股份有限公司 版权所有
/////////////////////////////////////////////////////////////////////////
#include "config.h"
#include "log.h"
#include "utility.h"
#include "SerializerTradeBase.h"
#include... |
//
// kwedit.cpp
//
// (C) Copyright 2000-2002 by <NAME>.
// All Rights Reserved.
//
#include "bcc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// Construction.
KWEdit::KWEdit() : m_hIcon( NULL )
{
}
// Destruction.
KWEdit::~KWEdit()
{
// Destroy icon.
if ... |
#include <Atom.hpp>
#include <Declarations.hpp>
#include <Molecule.hpp>
#include <RDCdata.hpp>
#include <RDCset.hpp>
#include <Structure.hpp>
RDCset::RDCset(RDCset *s)
{
label = "";
inputIndex = 0;
HeadData = s->HeadData;
TailData = ... |
#include "parser.h"
#include "lexer.h"
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
void PrintLog(std::string msg) { std::cout << msg << std::endl; }
const std::map<Token, int> Parser::opPrecedence_ ... |
#include "DataBufferComparer.hpp"
DataBufferComparer::DataBufferComparer(const MPI_Comm &comm)
{
MPI_Comm_rank(comm, &m_myPE);
MPI_Comm_size(comm, &m_numProcs);
m_comm = comm;
m_comparisonFailed = false;
}
DataBufferComparer::~DataBufferComparer()
{
return;
}
double DataBufferComparer::max(const double ... |
#define DEBUG 1
/**
* File : F.cpp
* Author : <NAME>
* Created : 2019-5-11 22:04:36
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_stri... |
#include "graph.hpp"
#include <fstream>
#include <iostream>
#include <algorithm>
#include <queue>
using namespace std;
Graph::Graph (unsigned int nb_sommets) {
graph.resize(nb_sommets);
}
void Graph::ajouter_arete (unsigned int origine, unsigned int destination, unsigned int poids) {
graph[origine].emplace_fron... |
#include <Windows.h>
#include <chrono>
#include <cinttypes>
#include <psapi.h>
#include <string>
#include <thread>
#include <tlhelp32.h>
#include <vector>
using namespace std::chrono_literals;
using proclist_t = std::vector<std::uint32_t>;
proclist_t find_processes(const std::wstring name) noexcept
{
auto process_sn... |
//
// rfnoc-hls-neuralnet: Vivado HLS code for neural-net building blocks
//
// Copyright (C) 2017 <NAME>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of... |
#include <iostream>
#include "OlympTradeAPI.hpp"
#include "xtime.hpp"
#include <fstream>
#include <dir.h>
#include <stdlib.h>
#define BUILD_VER 1.0
using json = nlohmann::json;
void write_binary_file(std::string file_name,
std::vector<OlympTradeAPI::OlympTradeSymbolParam> &symbols_proposal,
... |
#include <stdio.h>
#include <Python.h>
#include "../include/frechetrange/frechetrange.hpp"
#include<iostream>
using std::cout;
using std::endl;
typedef std::pair<double, double> point;
typedef std::vector<point> trajectory;
struct get_coordinate {
template <size_t dim>
static double get(cons... |
#include <fstream>
#include <lcm/lcm-cpp.hpp>
#include <bot_lcmgl_client/lcmgl.h>
#include <lcmtypes/maps/image_t.hpp>
#include <lcmtypes/maps/cloud_t.hpp>
#include <maps/SensorDataReceiver.hpp>
#include <maps/MapManager.hpp>
#include <maps/LocalMap.hpp>
#include <maps/Collector.hpp>
#include <maps/PointCloudView.hpp... |
/*
Copyright 2011 - 2015 Occam Robotics 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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and th... |
/*
* Implements the bar graph and histogram icons.
*/
#include "StdAfx.h"
#include "Icons.h"
#include "Globals.h"
#include "resource.h"
#include "Snmp.h"
#include "winproc.h"
CIcons::CIcons() {
m_hHistogramIcon = 0;
m_hBarGraphIcon = 0;
ZeroMemory(&m_BarGraphIconInfo , sizeof(m_BarGraphIconInfo));
ZeroMemory... |
#include "pch.h"
void OutputFileGenerator::init(CppPartition *partition, CppPartition *mainPartition) {
this->partition = partition;
this->mainPartition = mainPartition;
cppProject = partition->getCppProject();
config = cppProject->getConfig();
cppLibraryFile = config->cppLibraryFile;
outputFile = partition->... |
/**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 <NAME>
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organization... |
#include "kinect.hpp"
#include <chrono>
#include <sstream>
#include <iomanip>
#include <pcl/io/pcd_io.h>
// Constructor
kinect::kinect( const uint32_t index )
: device_index( index )
{
// Initialize
initialize();
}
kinect::~kinect()
{
// Finalize
finalize();
}
// Initialize
void kinect::initial... |
/**
Created by <NAME> in 2012
Released into the public domain
*/
#include <GLG3D/GLG3D.h>
#include <GL/glut.h>
#include "supportclasses.h"
int Image::PPMGammaCorrect(float radiance, float e) const {
// Note that the PPM gamma is fixed at 2.2
return int(pow(std::min(1.0f, std::max(0.0f, radiance * e)), 1... |
//
// Created by zzh on 2018/7/27 0027.
//
#include <assert.h>
#include "BQAudioPlayer.h"
#include "log.h"
#include <pthread.h>
void playerCallback(SLAndroidSimpleBufferQueueItf bq, void *context);
BQAudioPlayer::BQAudioPlayer(int sampleRate, int sampleFormat, int channels)
: mAudioEngine(new AudioEngine()),... |
#include <cstdlib>
#include <cmath>
#include <stdio.h>
#include <sys/time.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
/* Returns time in seconds (double) since the first call to secs_elapsed
* (i.e., the first call returns 0.0).
*/
double secs_elapsed( void )
{
static double base_time = -... |
/**
* 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
* distribu... |
#define _NO_OMP_
#define _MP_INTERNAL
// #define _MP_GMP
#include "ast/expr_abstract.h"
#include "ast/ast_util.h"
#include "ast/rewriter/quant_hoist.h"
#include "ast/ast_pp.h"
#include "ast/rewriter/th_rewriter.h"
#include "ast/rewriter/expr_replacer.h"
#include "model/model_v2_pp.h"
#include "model/model_evaluator.h"... |
/*
* RxPacketFromSensor.cpp
*
* Created on: 12 Dec 2012
* Author: jack
*/
#include "RxPacketFromSensor.h"
#include <utils.h>
#ifdef TESTING
#include <tests/FakeArduino.h>
#else
#include <Arduino.h>
#endif // TESTING
RxPacketFromSensor::RxPacketFromSensor()
:tx_type(CCTX), id(ID_INVALID) {}
void RxPacket... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <set>
using namespace std;
struct point {
long long x, y;
point(long long x_, long long y_): x(x_), y(y_) {}
};
bool operator<(const point ... |
/* adaboost_plugin.cpp
* This is a test plugin, you can use it as a demo.
* 2019-10-29 : by DZC
*/
#include "v3d_message.h"
#include <vector>
#include "adaboost_plugin.h"
#include "basic_surf_objs.h"
#include "neuron_sim_scores.h"
#include <stdio.h>
#include <iostream>
using namespace std;
Q_EXPORT_PLUGIN2(adaboos... |
/*
Copyright (c) 2020 ANON authors, see AUTHORS file.
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 2017-2019 Siemens AG
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, sub... |
/***
* 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"); yo... |
///////////////////////////////////////////////////////////////////////////////
// //
// HLUtil.cpp //
// Copyright (C) Microsoft Corporation. All rights reserved. //
... |
/*
3D Printered WeMoss bassed weather station
This is my own driver, its simple clean and easy to debug.
Copyright (c) 2018 <NAME>. All right reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to dea... |
#include <v8.h>
#include <string>
#ifdef FASTCGI
# include <fcgi_stdio.h>
#endif
#include "macros.h"
#include "common.h"
#include "app.h"
#include "system.h"
#include "path.h"
#include <unistd.h>
#include <sys/time.h>
#ifndef HAVE_SLEEP
# include <windows.h>
# include <process.h>
# define sleep(num) { Sleep(num * 1... |
#include "server/log_processes.h"
#include <gflags/gflags.h>
#include <iostream>
#include "monitoring/latency.h"
#include "monitoring/monitoring.h"
#include "server/metrics.h"
DEFINE_int32(tree_signing_frequency_seconds, 600,
"How often should we issue a new signed tree head. Approximate: "
... |
#include "MulDivTestIndication.h"
#include "MulDivTestRequest.h"
#include <semaphore.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <random>
const uint64_t most_negative = 0x8000000000000000ULL;
uint16_t rand16() {
return uint64_t(rand());
}
uint64_t rand64() {
return ( (uint64_t(rand16... |
#include <numeric>
#include <map>
#include <cmath>
#include "acmacs-base/fmt.hh"
#include "acmacs-base/enumerate.hh"
#include "signature-page/tree.hh"
#include "signature-page/tree-export.hh"
// ----------------------------------------------------------------------
using AADiff = std::vector<std::string>;
struct Di... |
// deadreckoner.cpp
//
// 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,... |
/***************************************************************************
*
* $Id: StFgtLHHTracking.cxx,v 1.2 2012/03/14 22:22:40 sgliske Exp $
* Author: <NAME>, March 2012
*
***************************************************************************
*
* Description: see header.
*
**************************... |
//Including essential libraries
#include "textProcessor.h"
#include "fileHandler.h"
#include <iostream>
#include <fstream>
#include <ctime>
#include <cstdlib>
#include <stdio.h>
using std::cout;
using std::endl;
using std::cin;
using std::cerr;
using std::ios;
using std::getline;
//=============================
//cons... |
/**
* Copyright (C) 2013-2017 <NAME>.
*
* Permission to use, copy, modify, and/or 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 DISCL... |
// Copyright (c) 2019 OUXT Polaris
//
// 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 t... |
/***************************************************************************
* Software License Agreement (BSD License) *
* Copyright (C) 2017 by <NAME> <<EMAIL>> *
* *
* Redistribution and use in sourc... |
// SNMPpp: https://sourceforge.net/p/snmppp/
// SNMPpp project uses the MIT license. See LICENSE for details.
// Copyright (C) 2013 <NAME> <<EMAIL>>
#include <stdexcept>
#include <sstream>
#include <stdlib.h>
#include <SNMPpp/Get.hpp>
SNMPpp::PDU SNMPpp::sync( SNMPpp::SessionHandle &session, SNMPpp::PDU &request )
{... |
#include "Triangle.h"
#include "rasterizer.h"
#include <eigen3/Eigen/Eigen>
#include <iostream>
#include <opencv2/opencv.hpp>
#include <cmath>
constexpr double MY_PI = 3.1415926;
Eigen::Matrix4f get_view_matrix(Eigen::Vector3f eye_pos)
{
Eigen::Matrix4f view = Eigen::Matrix4f::Identity();
Eigen::Matrix4f translat... |
//-----------------------------------------------------------------------------
// Copyright (c) 2013 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 restr... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not u... |
#include <fstream>
#include <set>
#include <map>
#include <iostream>
#include <vector>
#include <range/v3/all.hpp>
#include <array>
#include <optional>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <string_view>
#include <array>
#include <complex>
#include <boost/range.hpp>
#include <boost/algorithm/string.h... |
// 01 Frame includes
#include "cgalthreadsubdivision.h"
// C++ includes
#include <fstream>
#include <iostream>
#include <string.h>
// VTK includes
#include <vtkPoints.h>
#include <vtkPolyData.h>
#include <vtkCellArray.h>
#include <vtkSmartPointer.h>
// CGAL includes
#include <CGAL/Timer.h>
#include <CGAL/Surface_me... |
/*
* ======= CALC EIGEN METRICS IN SPHERE FUNCTION =========
*/
// [[Rcpp::depends(lidR)]]
#include <RcppArmadillo.h>
#include "SpatialIndex.h"
#include "Progress.h"
using namespace lidR;
using namespace Rcpp;
// [[Rcpp::export]]
List C_eigen_in_sphere(S4 las, double radius, int ncpu)
{
DataFrame data = as<DataF... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
/** @file Individuo.cc
@brief Codigo de la clase Individuo
*/
#include "Individuo.hh"
Individuo::Individuo()
{
// Inicializa un individuo
nombre.clear();
madre.clear();
padre.clear();
}
void Individuo::modificar_nombre(string& s) {
nombre = s;
}
void Individuo::modificar_crom_s(pair<vec... |
/* Copyright 2019 Mobvoi Inc. All Rights Reserved.
Author: <EMAIL> (<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 app... |
#include "dcitoken.hpp"
// --------------------------------------------------------------------------------------------------------------------
void dcitoken::create( const name& issuer,
const asset& maximum_supply)
{
require_auth( get_self() );
check( is_account(issuer), "Sorry! the issuer name is n... |
/*
* Citybuilding tools: a set of utilities to work with the game files
* Copyright (c) 2017 <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, inc... |
/*
*
*
* Date : Aug 2011
* File : pthread_prod_cons_large.cpp
* Desc : Producer-Consumer problem with large no. of threads and large no. of resources
* (as many as user specifies) using mutex
* Input : NumThreads, NumResources & ThreadAffMask (all 3, first 2 or first 1 only are
* also accepted)
... |
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <unistd.h>
#include "Magnet.hpp"
using namespace std;
/*****************************************************************************
Implementation of the Magnet class using the Metropolis Algorithm. Methods
are designed to stand alone i.e. total energ... |
/**
* @file main.cpp
* @author <NAME>
* @author <NAME>
* @date 7/5/2018
* @version 1.07.0
*
* @brief CSC340, Part I TicTacToe
*
* @section DESCRIPTION
*
* A program to play game of Tic-Tac-Toe
*
* Algorithm:
* 1.) Displays the current board status.
* 2.) Prompts the user for a row and column input... |
#include <bits/stdc++.h>
#include "../all.cpp"
using namespace std;
typedef long long l;
// Coin Change (CC)
// Given a set of coin values and the target amount V, what is the minimum
// number of coins that we must use to represent V? Assume we have infinite
// amount of coins for each value.
// e.g. coinValue = {1,... |
// mgactions.cpp: 实现上下文动作分发接口
// Copyright (c) 2004-2013, <NAME>
// License: LGPL, https://github.com/rhcad/touchvg
#include "mgcmdmgr_.h"
#include <mgselect.h>
#include <mgshapetype.h>
#include <mglog.h>
#include <cmdsubject.h>
bool MgCmdManagerImpl::showInDrawing(const MgMotion* sender, const MgShape* shape)
{
... |
//============================================================================
// Name : Assignment.cpp
// Author : near
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#inc... |
/**
* @file rtavis.cpp
* @author tina
* @brief Raytracer practice project based on the "Raytracing in One Weekend"
* series by <NAME> https://raytracing.github.io/
* @version 0.2
* @date 2021-05-30
*
* @copyright https://opensource.org/licenses/MIT
*
* Loads a file of sphere model information and render as... |
// Appears in Structured Parallel Programming, published by Elsevier, Inc.
#include "mergesort.h"
#include <cstdlib>
#include <iostream>
#include <vector>
#include <atomic>
#include <memory>
#include <chrono>
#include "tbb/tbb.h"
namespace {
using std::vector;
using std::string;
using std::numeric_limits;
using std::c... |
#include "dbase.h"
int dbDatabase::FieldGet(unsigned int tbHandle, int recno, unsigned int field, Value& result) {
ArrayMap<String, struct fieldStruct> &fs = fields[tbHandle];
lseek(fhandle, (int)tables[tbHandle].offset+tables[tbHandle].tableHead+(tables[tbHandle].recordLenght*(recno-1))+fs[field].prevLength+1... |
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
template <class T>
using ordered_set = __gnu_pbds::tree<T, __gnu_pbds::null_type, less<T>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order... |
//
// MIT License
//
// © ESI Group, 2015
//
// 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, pu... |
/**** , [ optim2.cc ],
Copyright (c) 2008 Universite d'Orleans - <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, cop... |
/*##########################################################################################################
SGP30.cpp
Link:
return absolute humidity [mg/m^3] with approximation formula
@param temperature [°C]
@param humidity [%RH]
#########################################################... |
/*
Copyright (c) 2016, Rice University
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.... |
#include <cstdlib>
#include <cstdio>
#include <PushButtonWidget.h>
#include <ToggleButtonWidget.h>
#include <UIWidget.h>
#include <SliderWidget.h>
#include <SmartLayoutManager.h>
// using OGLUI::Geometry;
// using OGLUI::Widget;
using namespace OGLUI;
//using OGLUI::Signal;
class MyWidget : public PushButtonWidget
... |
#include "qtobswebsocket.h"
#include <QEventLoop>
#include <QJsonDocument>
#include <QRandomGenerator>
#include <QtCore/QDebug>
#include <array>
QtObsWebsocket::QtObsWebsocket() {
connect(std::nullopt);
}
QtObsWebsocket::QtObsWebsocket(std::optional<QString> password) {
connect(password);
}
QtObsWebsocket::QtO... |
#include <climits>
#include <iomanip>
#include <iostream>
#include <omp.h>
#include <impl/basic/include.hpp>
#include <config/configuration.hpp>
#include <algorithms/cyclic_connectivity.hpp>
#include <algorithms/isomorphism/isomorphism_nauty.hpp>
#include <snarks/colouring.hpp>
#include <snarks/colouring_nagy.hpp>
#in... |
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1999-2008 <NAME>
*
* This software is open source and may be redistributed and/or modified under
* the terms of the GNU General Public License (GPL) version 2.0.
* The full license is in LICENSE.txt file included with this distribution,.
*
* This software is distrib... |
/*
Copyright (c) 2015, <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... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
#include <fstream>
#include "kmer.h"
/*return the integer representation of the base */
inline char Kmer::map_int(uint8_t base)
{
switch(base) {
case DNA_MAP::A: { return 'A'; }
case DNA_MAP::T: { return 'T'; }
case DNA_MAP::C: { return 'C'; }
case DNA_MAP::G: { return 'G'; }
default: { return DNA_MAP::G+1... |
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include <globus_gsi_credential.h>
#include <vector>
#include <arc/globusutils/GlobusErrorUtils.h>
#include <arc/credential/VOMSUtil.h>
#include <arc/Utils.h>
#include <arc/Logger.h>
#include <arc/StringConv.h>
#include <arc/ArcConfigIni.h>
#includ... |
#include "Voter.h"
Voter::Voter(RSA::PublicKey pubKey, RSA::PrivateKey privKey):
m_pubKey(pubKey), m_privKey(privKey), m_nBlinder(0L)
{
}
Voter::Voter(){}
void Voter::Initialize(RSA::PublicKey pubKey, RSA::PrivateKey privKey) {
m_pubKey = pubKey;
m_privKey = privKey;
m_nBlinder = 0;
}
void Voter::SetVote(int vi... |
#include "Geohash.h"
#include "GeohashTest.h"
#include <string.h>
#include <stdint.h>
#include <assert.h>
#include <stddef.h>
#include <math.h>
#include <stdio.h>
#include <inttypes.h>
#include <iostream>
#include <bitset>
//todo add ifdef bmi2
#include <immintrin.h>
typedef struct TestEncodeItem {
double lat;
do... |
/**
******************************************************************************
* @file XNucleoIKS01A2.cpp
* @author CLab
* @version V1.0.0
* @date 9-August-2016
* @brief Implementation file for the X_NUCLEO_IKS01A2 singleton class
**************************************************************... |
#include "clumpy_command.hh"
#include "fmt/core.h"
#include "cnpy/cnpy.h"
#include <glm/vec2.hpp>
#include <glm/ext.hpp>
#include <limits>
using namespace glm;
using std::vector;
using std::string;
using std::numeric_limits;
void splat_points(vec2 const* ptlist, uint32_t npts, u32vec2 dims, uint8_t* dstimg);
void ... |
#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 TX, typename TY, typename Policy = decltype(blam_default_pol... |
#include <assert.h>
#include <sys/types.h>
#include <errno.h>
#include <rtsLog.h>
#include <rtsSystems.h>
#include <daqFormats.h>
#include <SFS/sfs_index.h>
#include <DAQ_READER/daqReader.h>
#include <DAQ_READER/daq_dta.h>
#include "daq_etof.h"
extern int etof_reader(char *mem, struct etof_t *etof, u_int driver) ... |
// Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// This module creates an instance of ClientImp class using input
// parameters and launches a bunch of tests created by TestsBuilder towards
// concord::consensus::ReplicaImp objects.
#include <stdio.h>
#include... |
#include <lua.hpp>
#include <base/system.h>
#include <engine/shared/config.h>
#include <engine/storage.h>
#include <base/math.h>
#include "luabinding.h"
#include "lua.h"
CLua * CLuaBinding::ms_pLua = NULL;
int CLuaBinding::ScriptName(lua_State *L)
{
// receive the current script file name
lua_Debug ar;
lua_getin... |
#include "Creator.h"
#include <algorithm>
#include <cassert>
#include <iostream>
#include "../Music.h"
#include "../Rand.h"
using namespace steve;
Creator::Creator(Music* music) {
_music = music;
_channel = music->creators().size();
}
void Creator::init() {
_phrase_size = 4 * bar_ticks;
do {
_instrument... |
/*设计一个类,他又三个unsigned成员,分别表示年、月和日。
为其编写构造函数,接受一个表示日期的string参数。
你的构造函数应该能处理不同数据格式,如January 1, 1900、1/1/1900、Jan 1 1900等*/
#include<iostream>
#include<string>
using namespace std;
unsigned get_month(const string &s)
{
unsigned month;
if (s.find("Jan") < s.size()) month = 1;
if (s.find("Feb") < s.size()) month = 2;
if... |
/**
* CPLEX target cut callback functions
*/
#include <list>
#include <limits>
#include "ip_target_cplex.hpp"
#include "../cut/cut_cplex.hpp"
#include "../cut/cut_info.hpp"
#include "../cut/flow_decomp.hpp"
IloCplex::Callback BddTargetCutCallback(IloEnv env, IloNumVarArray vars, BDD* bdd, InteriorPointSelector* in... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "ColorScheme.h"
#include "DefaultSettings.h"
#include "../../types/inc/Utils.hpp"
#include "Utils.h"
#include "JsonUtils.h"
#include "ColorScheme.g.cpp"
using namespace ::Microsoft::Console;
using namesp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.