text stringlengths 3.08k 22k |
|---|
#include "coders.h"
double olc_coders::clip_lat(double lat){
if(lat < -90){
return -90;
}
if(lat > 90){
return 90;
}
return lat;
}
double olc_coders::clip_longitude(double longitude){
while(longitude < -180){
longitude = longitude + 360;
}
while(longitude >= 180){
longitude = long... |
// Copyright 2014, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Author: <NAME> (<EMAIL>)
#include <getopt.h>
#include <cstdio>
#include <cstdlib>
#include <exception>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <unordered_set>
#include "../global/Con... |
#include "opencv2/core/utility.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/tracking.hpp"
#include "opencv2/videoio.hpp"
#include "opencv2/plot.hpp"
#include <fstream>
#include <iomanip>
#include <iostream>
using namespace std;
using namespace cv;
// TODO: do normalization ala Kalal's assessment protocol for... |
/**
* \file ex2.cxx
* \author <NAME>
* \date 5 June 2017
* \brief XML Parser and Validator for measured-*.xml
*/
/**
* \mainpage Ex2
*
* \section Description
*
* XML Parser and Validator for `measured-*.xml`.
* Reads XML file and writes the day, hour and amount of power to file `csv.txt`.<br>
*
* * na... |
#include <bits/stdc++.h>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define foreach(it, v) for(auto it=(v).begin(); it != (v).end(); ++it)
#define _ ios_base::sync_with_stdi... |
// Project.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <winsock2.h>
#include <iphlpapi.h>
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <stdlib.h>
#include <VersionHelpers.h>
#include <psapi.h>
#include <time.h>
#pragma comment(lib, "IPHLPAPI.lib")
#... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include <cassert>
#include "helper_functions.h"
using ... |
#include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef pair<int, int> ii;
const double THETA = 0.90;
const int TARGET_DEGREE = 30;
class UnionFind {
private:
vi p, rank, setSize;
int numSets;
public:
UnionFind() {}
UnionFind(int N) {
setSize.assign(N, 1); numSets = N; rank.assign(N,... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... |
// (C) 2020-2021 by <NAME> <<EMAIL>>, released under Apache License v2.0
#include <algorithm>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <string>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <vector>
#include <opens... |
// ======================================================================== //
// Copyright 2018-2019 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... |
/*
* e.cpp
* Copyright (C) 2022 <NAME> <<EMAIL>>
*
* 「Two roads diverged in a wood,and I—
* I took the one less traveled by,
* And that has made all the difference.」
*
* Distributed under terms of the GNU AGPLv3+ license.
*/
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <random>
#include <... |
/*
Name: ANIM.CPP
Copyright: 2006
Author: <NAME>
Date: 20/07/06 09:34
Description: ANIM ROUTINES
*/
#include "anim.h"
#include "filelog.h"
#include "timers.h"
#include <string.h>
#include <ctype.h>
///////////////////////////////////////////////////////////////////////
////////... |
/*
* An example of using SObjectizer-5.5.4 features for receiving
* run-time monitoring information.
*/
#include <chrono>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <iostream>
#include <sstream>
#include <string>
#include <random>
#include <so_5/all.hpp>
// A signal to worker ag... |
/*
########## Copyright (C) 2018 <NAME>
## ## Distributed under MIT license, see file LICENSE
## ## or <http://opensource.org/licenses/MIT>
## ##
########## ############################################################# shaduzlabs.com #####*/
#include <rastr.... |
#include "fwdmodel_dce.h"
#include <fabber_core/easylog.h>
#include <fabber_core/priors.h>
#include <miscmaths/miscprob.h>
#include <newimage/newimageall.h>
#include <newmatio.h>
#include <iostream>
#include <stdexcept>
using namespace NEWMAT;
static OptionSpec OPTIONS[] = {
{ "delt", OPT_FLOAT, "Time resolut... |
//**************************************************************************************
//CV to Trigger convenrter module for VCV Rack by <NAME> - AS - https://github.com/AScustomWorks/AS
//
//
//**************************************************************************************
#include "AS.hpp"
//#include "dsp/di... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, <NAME>, 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... |
///
/// @file maximumClique.hpp
/// @author Jxtopher
/// @version 0.1
/// @date 2020-02-16
/// @brief Problème de la clique maximale
/// see : https://fr.wikipedia.org/wiki/Problème_de_la_clique
/// http://www.csplib.org/Problems/prob074/
/// compilation g++ -Os maximumClique.cpp
///
///
#include... |
//
// Created by JoaoBispo on 07/08/2020.
//
#include "DiagnosticConsumer.h"
#include "clang/Lex/Lexer.h"
#include <iostream>
void DiagnosticConsumer::printRange(clang::Diagnostic Info, clang::CharSourceRange range, clang::SourceManager & SM) {
// No available source code
if(range.isInvalid()) {
ret... |
// Copyright 2009, Google 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 above copyright notice,
// this list of conditions an... |
////////////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2011-2015, Armory Technologies, Inc. //
// Distributed under the GNU Affero General Public License (AGPL v3) ... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <cassert>
#include <string>
#include <string.h>
#include "cartesian.hpp"
#include "domain.hpp"
#include "fields.hpp"
#include "front.hpp"
#include "interface.hpp"
#include "utilities.h"
#include <mpi.h>
using namespace std;
front::front(const std::str... |
//==================================================================================================
/*
TTS - Tiny Test System
Copyright 2020 <NAME>
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
*/
//===========================================================... |
#include <stdint.h>
#include <stdlib.h>
#include <optional>
#include <iostream>
#include <algorithm>
#include <iomanip>
#include <fstream>
#include <getopt.h>
#include "lodepng.h"
#include "lodepng_util.h"
#include "Palette.hpp"
#include "Tiles.hpp"
#include "Image.hpp"
#include "Map.hpp"
#include "DataHeader.hpp"
... |
#include "Frustum.h"
void Frustum::Update(const glm::mat4 &projectionViewMatrix)
{
this->_ExtractPlanes(projectionViewMatrix);
this->_CalculatePlaneIntersections();
}
bool Frustum::CheckIntersection(const AABB &other) const
{
// Loop through each frustum plane, checking box is outside of frustum for early... |
// Copyright 2021 The Fuchsia 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 "src/devices/bin/driver_manager/debug_dump.h"
namespace {
void DumpDevice(VmoWriter* vmo, const Device* dev, size_t indent) {
zx_koid_t pid = ... |
/***************************************************************************
file : opponent.cpp
created : Thu Apr 22 01:20:19 CET 2003
copyright : (C) 2003-2004 <NAME>
email : <EMAIL>
version : $Id: opponent.cpp,v 1.9.2.1 2008/12/... |
#include <string.h>
#include <arpa/inet.h>
#include <daqFormats.h>
#include <rtsSystems.h>
#include <rtsLog.h>
#include <rts.h>
#include "daq_ssd.h"
static int unpackRaw(int rb, int mz, int what, char *mem, ssd_t *ssd) ;
/* UNUSED
static struct ssdMap {
u_char start_ladder ;
u_char side ;
} ssdMap[4][2] = {
{... |
// Copyright 2017 The Fuchsia 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 <ctype.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <zircon/assert.h>
#include <zircon/compiler.h>
#include <cstdint>... |
#include "Application.h"
#include "ModuleSceneManager.h"
#include "ModuleInput.h"
#include "Scene.h"
#include "Entity.h"
#include "ComponentCamera.h"
#include "Util.h"
#include "ModelImporter.h"
ModuleSceneManager::ModuleSceneManager() :
Module(),
current_scene(nullptr),
renamed_entity_in_hierarchy(nullptr)
{
}... |
/**
@file processor.cpp
@brief This file is part of Kalinka mediaserver.
@author <NAME> <<EMAIL>>
Copyright (c) 2007-2012 Kalinka Team
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 ... |
/*
* See header file for a description of this class.
*
* \author <NAME> - INFN Torino
*/
#include "MagneticField/VolumeBasedEngine/interface/MagGeometry.h"
#include "MagneticField/VolumeGeometry/interface/MagVolume.h"
#include "MagneticField/VolumeGeometry/interface/MagVolume6Faces.h"
#include "MagneticField/La... |
#pragma once
#include "DisplayNote.hpp"
#include "Storage.hpp"
struct BarPosition;
struct BeamPositions;
struct NoteTakerDisplay;
struct NoteTakerWidget;
enum Accidental : uint8_t {
NO_ACCIDENTAL,
SHARP_ACCIDENTAL,
FLAT_ACCIDENTAL,
NATURAL_ACCIDENTAL,
};
// map midi note for C major to drawable posi... |
#include <cstdio>
#include <cstdint>
#include <cstdbool>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <csignal>
#include <iostream>
#include <fstream>
#include <chrono>
#include <thread>
#include <mutex>
#include <string>
#include "ros/ros.h"
#include "geometry_msgs/PointStamped.h"
#include "geometr... |
#include "CoordinateTransformations.h"
#include "../globalfunctions/constants.h"
#include "../globalfunctions/math/MatrixOperations.h"
#include "../globalfunctions/math/VectorOperations.h"
#include <stddef.h>
#include <cmath>
void CoordinateTransformations::positionEcfToEci(const double* ecfPosition,
double* eciPos... |
#include <iostream>
#include <cassert>
#include <random>
#include <tuple>
#include <map>
#include <vector>
#include <algorithm>
#include <memory>
#include <thread>
#include <boost/timer.hpp>
#include <boost/filesystem.hpp>
#include <boost/lexical_cast.hpp>
#include <apr_mmap.h>
#include <apr_general.h>
#include "akum... |
// Copyright (c) 2012, <NAME>. All rights reserved. Use of this source
// code is governed by a MIT-style license that can be found in the LICENSE file.
#include "_VisitorImplHeader.h"
void Visitor::dumpBlockSymbols() {
if (blockStack_.empty()) return;
const char *indent = " ... |
#include "StdAfx.h"
#include "UIKeyBinding.h"
#include "UIXmlInit.h"
#include "xrUICore/XML/xrUIXmlParser.h"
#include "UIEditKeyBind.h"
#include "xrUICore/ScrollView/UIScrollView.h"
#include "xrEngine/xr_level_controller.h"
CUIKeyBinding::CUIKeyBinding() : m_isGamepadBinds(false)
{
for (u8 i = 0; i < 3; ++i)
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
// SW:20090402: Copied from main.cc
#include <signal.h>
/* PRT: added per email from <NAME> */
#ifdef linux
#ifdef SIM_LINUX
#include <fpu_control.h>
#else
#include <i386/fpu_control.h>
#endif /* linux */
#endif
//#include <unistd.h>
#incl... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
// Copyright (C) 2019 by <NAME>, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University ... |
#include "bioSequence.hxx"
using namespace Min;
using namespace Bio;
class SequenceLinker
{
int minOverlap;
int tolerance;
int maxlen;
int overlap;
int error;
int count;
Array<Sequence> sequences;
public:
SequenceLinker( int minOverlap = 10, int tolerance = 1 ){
this->minOverlap = minOverlap;
th... |
#include "cgstd.h"
#include "cgmodule_x86.h"
#include "cgfixfp_x86.h"
static bool USE_NASM=false; //NASM doesn't seem to work at all
CGModule_X86::CGModule_X86( ostream &o ):CGModule(o){
}
void CGModule_X86::setSeg( string t ){
if( seg==t ) return;
seg=t;
if( USE_NASM ){
out<<"\tsection\t."<<seg<<'\n';
}else... |
/*
*
* Copyright (c) 2007-2018, University of California / Singapore Management University
* <NAME> <<EMAIL>> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without... |
#include <h5jpegls/h5jpegls.h>
#include "version.hpp"
#include <H5Zpublic.h>
#pragma warning( push )
#pragma warning( disable : 4768 )
#include <hdf5.h>
#pragma warning( pop )
#include <charls/charls.h>
#include <array>
#include <vector>
#include <cstdio>
#include <cstring>
namespace {
struct LegacyCodecParameters {... |
// Copyright 2011-2012 <NAME>
/*******************************************************************************
* *
* This software is provided 'as-is', without any express or implied *
* warranty. In no event will the authors be h... |
// ANTelbrot - a Mandelbrot set viewer using perturbation theory
// Author: <NAME>
// Uses the SuperFractalThing perturbation theory algorithm by <NAME>
// http://www.superfractalthing.co.nf/sft_maths.pdf
#include <SFML/Graphics.hpp>
#include <complex>
#include <vector>
#include <cmath>
#include <iostream>
#include <c... |
#include "../../../libraries/breakout_rgbmatrix5x5/breakout_rgbmatrix5x5.hpp"
#define MP_OBJ_TO_PTR2(o, t) ((t *)(uintptr_t)(o))
// SDA/SCL on even/odd pins, I2C0/I2C1 on even/odd pairs of pins.
#define IS_VALID_SCL(i2c, pin) (((pin) & 1) == 1 && (((pin) & 2) >> 1) == (i2c))
#define IS_VALID_SDA(i2c, pin) (((pin) & 1... |
/* ------------------------------------------------ *
* The MIT License (MIT)
* Copyright (c) 2020 <EMAIL>
* ------------------------------------------------ */
#include "util_tflite.h"
#include "tflite_pose3d.h"
#include <float.h>
#define POSENET_MODEL_PATH "./model/human_pose_estimation_3d_0001_256x448_f... |
#include "log.h"
#include "ui_log.h"
log::log(QWidget *parent) : QWidget(parent),
ui(new Ui::log)
{
//QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
//QTextCodec *codec = QTextCodec::codecForName("UTF-8");
//初始化数据库和日志表
QString tableName = "logs";
QString columnName[... |
// Copyright (C) 2018 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
#include <string>
#include <vector>
#include <gflags/gflags.h>
#include <iostream>
#ifdef _WIN32
#include <os/windows/w_di... |
#define PP printf(
#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include <string.h>
#include <arpa/inet.h>
#include "daqFormats.h"
#include "rtsSystems.h"
#include "evpSupport.h"
#include "ssdReader.h"
using namespace OLDEVP;
namespace OLDEVP {
struct ssd_t ssd ;
}
static int unpackRaw(int rb, int mz,... |
/*
Filter the point cloud based on a ROI box given relative to the Zivid Calibration Board.
The ZDF file for this sample can be found under the main instructions for Zivid samples.
*/
#include <Zivid/Experimental/Calibration.h>
#include <Zivid/Visualization/Visualizer.h>
#include <Zivid/Zivid.h>
#include <opencv2/co... |
/**
* \file gabidulin.c
* \brief Implementation of gabidulin.h
*
* The decoding algorithm provided is based on q_polynomials reconstruction, see \cite gabidulin:welch and \cite gabidulin:generalized for details.
*
*/
#include "ffi_elt.h"
#include "ffi_vec.h"
#include "gabidulin.h"
#include "parameters.h"
#includ... |
/*! \file stage1.cpp
Driver for stage 1 of analysis
\author <NAME> \n
UCLA \n
<EMAIL> \n
\version 1.0
\date 10/13/2006
$Id: stage1.cpp,v 3.10 2009/10/14 22:03:30 matthew Exp $
*/
#include <VSOptions.hpp>
#include <VSTime... |
#include "EditorScrollArea.h"
#include <QApplication>
#include <QDebug>
#include <QScrollBar>
#include <QStyle>
#include "Settings.h"
class TransposableWheelEvent : QWheelEvent {
public:
void transpose() {
// not using QPoint::transposed() because it doesn't exist in older versions
pixelD = {pixelD.y(), p... |
/*******************************************************************************************************
* Copyright 2018 Alliance for Sustainable Energy, LLC
*
* NOTICE: This software was developed at least in part by Alliance for Sustainable Energy, LLC
* ("Alliance") under Contract No. DE-AC36-08GO28308 with the... |
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "DataFormats/Common/interface/View.h"
#include "DataFormats/Common/interface/ValueMap.h"
#include "DataFormats/NanoAOD/interface/FlatTable.... |
#include <numeric>
#include "matching2D.hpp"
#include <algorithm>
using namespace std;
Detector::Detector (const std::string & detector_type) :
m_visualize(false) {
std::string detector_upper (detector_type);
std::transform(detector_upper.begin(), detector_upper.end(),detector_upper.begin(), ::toupper);
... |
#include "logging.h"
#include "uart_logging_config.h"
#include <cstring>
#include "stm32f1xx.h"
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "semphr.h"
// needed in assumptions about freertos for conversion to bool
static_assert(pdTRUE == true, "FreeRTOS pdTRUE was assumed to be equal to 'tr... |
// sphere.cpp
#include "sphere.h"
#include "main.h"
// icosahedron vertices (taken from <NAME> http://www.cs.unc.edu/~jon)
vec3 Sphere::icosahedronVerts[NUM_VERTS] = {
vec3( tau, one, 0 ),
vec3( -tau, one, 0 ),
vec3( -tau, -one, 0 ),
vec3( tau, -one, 0 ),
vec3( one, 0 , tau ),
vec3(... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "MethodInliner.h"
#include <algorithm>
#include <map>
#include <set>
#include <string>
#include <vector>
#include "Clas... |
#include "MIH.h"
#include <bitset>
#include <list>
#include <map>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include "types.h"
#include "linscan.h"
#include "mihasher.h"
// #include <iostream>//only for debug
using namespace std;
MIH::MIH(int b, int k, int d, float t, int method) : bits(b), K(k), B_over... |
/*
889. Construct Binary Tree from Preorder and Postorder Traversal
Return any binary tree that matches the given preorder and postorder traversals.
Values in the traversals pre and post are distinct positive integers.
Example 1:
Input: pre = [1,2,4,5,3,6,7], post = [4,5,2,6,7,3,1]
Output: [1,2,3,4,5... |
/*
* This is an implementation of wcwidth() and wcswidth() as defined in
* "The Single UNIX Specification, Version 2, The Open Group, 1997"
* <http://www.UNIX-systems.org/online.html>
*
* <NAME> -- 2001-09-08 -- public domain
* modified by <NAME>
*/
#include "wide_char_display_width.h"
struct interval {
unsi... |
// -*-c++-*-
/*
*Copyright:
Copyright (C) <NAME>
This code 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, or (at your option)
any later version.
This code is distributed in the hope t... |
/*! \class VDLWriter
* \brief DL2 (MVA values) writer
*
*/
#include "VDL2Writer.h"
/*!
*
*/
VDL2Writer::VDL2Writer( string iConfigFile )
{
readConfigFile( iConfigFile );
// tree with cut results for each event
runNumber = 0;
eventNumber = 0;
ArrayPointing_Azimuth = 0.;
ArrayPointing_El... |
#include <SDL.h>
#include <string>
#include <iostream>
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include <WS2tcpip.h>
#include <WinUser.h>
#pragma comment(lib, "ws2_32.lib")
void MouseSetup(INPUT *buffer, double SCREEN_WIDTH, double SCREEN_HEIGHT){
buffer->type = INPUT_MOUSE;
buffer->mi.dx = (0 * (0xFFFF ... |
//---------------------------------------------------------------------------
#include "stdafx.h"
#pragma hdrstop
#include "UI_Main.h"
#include "D3DUtils.h"
#include "Shader.h"
#include "leftbar.h"
#include "topbar.h"
#include "bottombar.h"
#include "EditorPref.h"
#include "main.h"
#include "xr_trims.h... |
//
// ModelBenchmark.cpp
// model-run
//
// Created by Apple on 2021/7/10.
//
#include "ModelBenchmark.hpp"
#include <sys/time.h>
#include <time.h>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include "paddle_use_kernels.h" // NOLINT
#include "paddle_use_ops.h" // NOLINT
int64... |
/**
* \file
* Brief description. Longer description.
*
*
* \author $Author$
* \date $Date$
*/
#include "momentary.h"
#include <QPainter>
#include <QGridLayout>
#include "../config.h"
#include "../exception.h"
#include "../datamgr.h"
#include "../tokens.h"
#include "../doubletime.h"
#include "../udp.h"
#inclu... |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <regex>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "int_computer.h"
struct Chamber {
std::string name;
std::vector<std::string> doors;
std::vector<std:... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2020, 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 WARRANTIE... |
//___________________________________________________________________________________________
// Traintracks.io CONFIDENTIAL: Copyright (C) 2015 Traintracks.io All Rights Reserved.
//
// SdkClass.cpp
//
//
//__________________________________________________________________________________________________... |
// BEGIN CUT HERE
// END CUT HERE
#line 5 "NarrowPassage.cpp"
#include <vector>
#include <list>
#include <bitset>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#inclu... |
// MIT License
//
// Copyright (c) 2019 <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, merg... |
/* -------------------------------------------------------------------------
*
* gistvacuum.cpp
* vacuuming routines for the openGauss GiST index access method.
*
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Cop... |
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 <NAME>
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY... |
#include "threepp/math/Triangle.hpp"
#include <cmath>
using namespace threepp;
Triangle::Triangle(Vector3 a, Vector3 b, Vector3 c) : a_(a), b_(b), c_(c) {}
void Triangle::getNormal(const Vector3 &a, const Vector3 &b, const Vector3 &c, Vector3 &target) {
Vector3 _v0{};
target.subVectors(c, b);
_v0.sub... |
/**
* @file mirror.cpp
* @author <NAME>
* @date 15 feb 2016
* @brief A simple mirror for 'n' destinations
*/
//C++ Headers
//---------------------------------------------------------------------------------------------
#include <iostream> //C++ standard I/O
#include <vector>
//------------------------------------... |
#include "dependency\lbp\lbp.hpp"
#define M_PI 3.14159265358979323846
using namespace cv;
template <typename _Tp>
void lbp::OLBP_(const Mat& src, Mat& dst) {
dst = Mat::zeros(src.rows - 2, src.cols - 2, CV_8UC1);
for (int i = 1;i<src.rows - 1;i++) {
for (int j = 1;j<src.cols - 1;j++) {
_Tp center = src.at<_Tp>... |
#include "point.hpp"
#include "uniformrealdist.hpp"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <IL/il.h>
#include <math.h>
#include <vector>
#ifdef __APPLE__
# include <GLUT/glut.h>
#else
# include <GL/glew.h>
# include <GL/glut.h>
#endif
... |
//===--- SILLocation.cpp - Location information for SIL nodes -------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/* -------------------------------------------------------------------------- *
* Simbody(tm): SimTKmath *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... |
/*
* Author: <NAME>
* Jan 15th 2020
*
*/
#include "iLQRsimple.h"
// #include "../../pybind11/include/pybind11/pybind11.h"
// #include "../../pybind11/include/pybind11/eigen.h"
// #include "../../pybind11/include/pybind11/stl.h"
// namespace py = pybind11;
using namespace Eigen;
using namespace std;
#define MAX_I... |
#include <vector>
#include <fstream>
#include <iostream>
#include <math.h>
#include "headers/model-info.h"
using namespace std;
//----------------------------------------------------------------------------------------------------------------------
//Bezier surface formula in matrix form
float M_BEZIER[4][4] = { {... |
#include "triangulation.hpp"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <set>
#include <stdexcept>
#include <ostream>
using namespace decomp;
namespace
{
int findRightmostPoint(PointList const& pointList, IndexList const& polygon)
{
assert(!polygon.empty());
return std::max_element(
... |
#include "b+tree.h"
#include <cstring>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
using namespace BPlusTree;
using namespace std;
void print_commands(FILE *f) {
fprintf(f, "A tool program for creating the B+tree,\n");
fprintf(f, "\n");
fprintf(f, "INSERT/I key val ... - Insert... |
#include <iostream>
#include <cmath>
#include <chrono>
#include <cassert>
#include <vector>
#include <NTL/ZZ.h>
#include <NTL/vector.h>
using namespace std;
using namespace std::chrono;
using namespace NTL;
void remainder_tree(Vec<ZZ> &C, Vec<ZZ> &A, Vec<ZZ> &m, ZZ const &root_value, int start, int end);
void remaind... |
/*
AI Lib
Copyright (C) 2014 <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 applic... |
/*****************************************************************************/
/* Copyright (c) 2016, <NAME> */
/* All rights reserved. */
/* */
/* Redistrib... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 condit... |
#include<iostream>
#include<vector>
#include<algorithm>
#include<unordered_set>
#include<queue>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
Tree... |
/**
* Pinoy-Sweldo a module for computing Income Tax in the Philippines.
* :copyright: 2020-Present by <NAME>.
* :license: MIT, see LICENSE for more details.
*/
#include <iostream>
#include <stdexcept>
using namespace std;
class Contribution
{
private:
double monthlyContribution;
double salaryAfterContrib... |
/******************************************************************************
* edge_balanced_graph_io.h
* *
* Source of KaHIP -- Karlsruhe High Quality Partitioning.
* <NAME> <<EMAIL>>
*****************************************************************************/
#include <algorithm>
#include <array>
#include... |
/*
Bullet Continuous Collision Detection and Physics Library Maya Plugin
Copyright (c) 2008 <NAME>ney Studios
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 t... |
/*
* Copyright 2009, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include "elf_versioning.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "images.h"
static status_t
assert_defined_image_version(image_t* dependentImage, image_t* image,
const elf_version_info& nee... |
/*
* Copyright 2017 <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 wr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.