text stringlengths 3.08k 22k |
|---|
/**
Descripton :
Source :https://blog.anudeep2011.com/heavy-light-decomposition/
*/
#include <cstdio>
#include <vector>
using namespace std;
#define root 0
#define N 10100
#define LN 14
vector <int> adj[N], costs[N], indexx[N];
int baseArray[N], ptr;
int chainNo, chainInd[N], chainHead[N], posInBase[N];
int... |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... |
#include "tuple.hpp"
#include <iostream>
#include <tuple>
#include <string>
#include <functional>
#include <utility>
// Blog: http://blog.csdn.net/fengbingchun/article/details/72858282
//////////////////////////////////////////////////////////
// reference: http://www.cplusplus.com/reference/tuple/tuple/
int test_tup... |
#include "leetcode.hpp"
/* 1632. 矩阵转换后的秩
给你一个 m x n 的矩阵 matrix ,请你返回一个新的矩阵 answer ,其中 answer[row][col] 是 matrix[row][col] 的秩。
每个元素的 秩 是一个整数,表示这个元素相对于其他元素的大小关系,它按照如下规则计算:
如果一个元素是它所在行和列的最小值,那么它的 秩 为 1。
如果两个元素 p 和 q 在 同一行 或者 同一列 ,那么:
如果 p < q ,那么 rank(p) < rank(q)
如果 p == q ,那么 rank(p) == rank(q)
如果 p > q ,那么 ... |
#include "GLBasicLighting.h"
#include <cmath>
#include <QtMath>
#include <QDebug>
GLBasicLighting::GLBasicLighting(QWidget *parent)
: QOpenGLWidget(parent)
{
connect(&timer,&QTimer::timeout,this,[this](){
rotate+=2;
if(isVisible()){
update();
}
});
timer.setInterval(... |
#include <gtest/gtest.h>
#include <iostream>
#include <QString>
#include <pthread.h>
#include <QMutex>
#include <Inventor/Qt/SoQt.h>
#include "graspitCore.h"
#include <graspitApp.h>
#include "mainWindow.h"
#include "ivmgr.h"
#include "world.h"
#define SLOP 0.001
TEST(TEST_TRANSFORMS, TEST_TRANSFORM_APPLIED_TO_POSITI... |
#include <Kin/kin.h>
#include <KOMO/komo.h>
#include <KOMO/restserver.h>
#include <Kin/F_dynamics.h>
#include <Kin/TM_angVel.h>
#include <Gui/opengl.h>
//===========================================================================
void solve(KOMO& komo, const Skeleton& S){
// komo.animateOptimization = 1;
komo.ver... |
#pragma once
#include <string>
enum class Control
{
NextCamera = 0,
LookLeftRight = 1,
LookUpDown = 2,
LookUpOnly = 3,
LookDownOnly = 4,
LookLeftOnly = 5,
LookRightOnly = 6,
CinematicSlowMo = 7,
FlyUpDown = 8,
FlyLeftRight = 9,
ScriptedFlyZUp = 10,
ScriptedFlyZDown = 11,
WeaponWheelUpDown = 12,
WeaponWh... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetBackgroundColor(0);
ofSetFrameRate(60);
ofSetVerticalSync(true);
fft.setup();
rd.allocate(ofGetWidth(), ofGetHeight());
gui.setup();
gui.add(minArea.set("Min area", 10, 1,... |
/***************************************************************************
* Copyright (C) 2007 by <NAME> *
* <EMAIL> *
* *
* This program is free softwar... |
// goap.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <cstdlib>
#include <queue>
#include <string>
#include <hash_map>
#include <map>
#include <set>
#include <iostream>
#include <algorithm>
#include "queue.h"
#include <stdlib.h>
#include "q2.h"
#include <time.h>
#include "A... |
/**********************************************************************
Copyright (C) 2002-2012 DAZ 3D, Inc. All Rights Reserved.
This file is part of the DAZ Studio SDK.
This file may be used only in accordance with the DAZ Studio SDK
license provided with the DAZ Studio SDK.
The contents of this file... |
/***************************************************
** ViSUS Visualization Project **
** Copyright (c) 2010 University of Utah **
** Scientific Computing and Imaging Institute **
** 72 S Central Campus Drive, Room 3750 **
** Salt Lake City, UT 84112 ... |
#include "drivers/Adc.h"
#include "drivers/ButtonLedMatrix.h"
#include "drivers/Console.h"
#include "drivers/Dac.h"
#include "drivers/Dio.h"
#include "drivers/Encoder.h"
#include "drivers/GateOutput.h"
#include "drivers/Lcd.h"
#include "drivers/Midi.h"
#include "drivers/System.h"
#include "drivers/ShiftRegister.h"
#inc... |
/*
* lezSAT -- A simple and easy to use CNF generator for SAT solvers
*
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* 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 a... |
// Author(s): <NAME>
// Copyright: see the accompanying file COPYING or copy at
// https://svn.win.tue.nl/trac/MCRL2/browser/trunk/COPYING
//
// 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)
//
/// \file parity_ga... |
#include <stdint.h>
#include <iostream>
#include <random>
#include "lindex/model.h"
#include "lindex/binseca.h"
#include "lindex/interval_tree.h"
class Key{
public:
uint64_t data;
Key(){};
Key(uint64_t d):data(d){};
Key & operator=(const Key &a){
this->data=a.data;
return *this;
}... |
//SubTag W12
#include "XF.hpp"
struct XF_104 : XF {
static const int deviceCount = 4;
enum ParamIds {
PARAM_CV_1, PARAM_CV_2, PARAM_CV_3, PARAM_CV_4,
PARAM_MODE_1, PARAM_MODE_2, PARAM_MODE_3, PARAM_MODE_4,
PARAM_FADE_1, PARAM_FADE_2, PARAM_FADE_3, PARAM_FADE_4,
PARAM_LINK_1, PARAM_LINK_2,
NUM_PARAMS
};
... |
// Author(s): <NAME>
// Copyright: see the accompanying file COPYING or copy at
// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
//
// 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)
//
/// \file set_test.cp... |
#include "amVK_WI.hh"
#include "amVK_RenderPass.hh"
/**
\│/ ┌─┐┬─┐┌─┐┌─┐┌┬┐┌─┐
─ ─ │ ├┬┘├┤ ├─┤ │ ├┤
/│\ └─┘┴└─└─┘┴ ┴ ┴ └─┘
*/
amVK_RenderPassMK2::amVK_RenderPassMK2(amVK_SurfaceMK2 *S, amVK_DeviceMK2 *D, uint8_t attachments_n, uint8_t subpasses_n) {
m_attachment_descs.n = attachments_n;
m_attach... |
//==-------------------------------------------------------------*- C++ -*--==//
//
// Copyright 2019 Contributors to the Gazer project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
... |
/*******************************************************************************
* File: signatureAlgorithm.cpp
*
* This provides the implementation for algorithm objects.
* These objects are used by signatureConfig
* This is a generic wrapper for other algorithms provided by the crypto library,
* ensuring that there ... |
#include <iostream>
#include <cstdio>
#include <unistd.h>
using namespace std;
#include "Amazon.h"
#include "include/Mediator.h"
#include "include/Worker.h"
Amazon::Amazon(string branch_name) : branch_name(branch_name)
{
this->customer_db = new DBFile(10, 4);
vector<string> customer_col_names = {
"cust... |
/*
* Program for reading, filtering and writing data in reverse order
* Author: <NAME>
* Date: Sep. 11, 2018
* Version: 0.2
* Purpose:
* 1. read and write data
* 2. Use arrays to store the data as it is read in.
* 3. Allocate and deallocate memory dynamiclly using new and delete.
* 4.... |
#ifdef USE_ALLEGRO
#include <allegro.h>
#endif
#ifdef USE_SDL
#include <SDL.h>
#endif
#ifdef USE_ALLEGRO5
#include <allegro5/allegro.h>
#endif
#include "funcs.h"
#include "debug.h"
#include <vector>
#include <string>
#include <string.h>
#include <algorithm>
#include "file-system.h"
#include "graphics/bitmap.h"
#include... |
//===-- Executor_Calls.cpp ------------------------------------------------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
#include <lifebankcoin.hpp>
bool lifebankcoin::is_valid_transaction(const name &from,
const name &to)
{
lifebanks_table _lifebanks(lifebankcode_account, lifebankcode_account.value);
auto lifebank_itr_from = _lifebanks.find(from.value);
auto lifebank_itr_to = _lifebanks.... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
struct Node {
int val, cnt;
bool nused;
Node *left, *right;
Node(int v): val(v), cnt(1), nused(true), left(0), right(0) {}
};
void inc(Node *p) ... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
#include <fstream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
float angle_norm(double angle);
UKF::UKF() {
is_initialized = false;
use_laser_ = true;
use_radar_ = true;
n_x_ = 5;
n_aug_ = 7;
previou... |
/*
* Copyright 1993-2006 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws.
*
* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE
* CODE FOR ANY PURPOSE. IT IS PROVIDED... |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* obje... |
/*
* Copyright 2012 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
*/
#include "Inode.h"
#include <dirent.h>
#include <string.h>
#include "IdMap.h"
#include "Request.h"
#include "RootInode.h"
status_t
Inode::CreateDir(const char* name, int ... |
// The MIT License (MIT)
//
// Copyright (c) 2014-2016 Brno University of Technology, PRISTINE project
//
// 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 wit... |
//
// VST mda plug-in: "mda Splitter" v1.0
//
// Copyright(c)1999-2000 <NAME> (maxim digital audio)
// Based on VST 1.0 SDK (c)1996 Steinberg Soft und Hardware GmbH, All Rights Reserved
//
#include "mdaSplitter.h"
#include <stdlib.h>
#include <stdio.h>
#include <float.h>
#include <math.h>
AudioEffect *createEffectIn... |
/************************************************************************
* dlb_pmd
* Copyright (c) 2021, Dolby Laboratories 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... |
///
/// Copyright (C) 2018 Cyberhaven
///
/// 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, p... |
// COCOA class implementation file
//Id: DeviationsFromFileSensor2D.cc
//CAT: Model
//
// History: v1.0
// <NAME>
#include "Alignment/CocoaModel/interface/DeviationsFromFileSensor2D.h"
#include "Alignment/CocoaUtilities/interface/ALIFileIn.h"
#include "Alignment/CocoaUtilities/interface/ALIUtils.h"
#include <cst... |
// File Name: B.cpp
// Author: YangYue
// Created Time: Fri Sep 5 19:43:15 2014
//headers
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <ctime>
#include <string>
#include <queue>
#include <set>
#include <map>
#include <iostream>
#include <vec... |
/* Author: <NAME>, <NAME> */
// Robowflex
#include <robowflex_ompl/ompl_interface.h>
#include <robowflex_library/util.h>
#include <robowflex_library/log.h>
#include <robowflex_library/random.h>
// Robowflex dataset
#include <motion_bench_maker/yaml.h>
#include <motion_bench_maker/problem_generator.h>
using namespace... |
/*!
* \file QuadraticCurve.cpp
* \author <NAME>
* \copyright (c) 2019 <NAME>.
* The project is released under the MIT License.
* \date Descember 13, 2019: created
*/
#include "QuadraticCurve.hpp"
// #include <iostream> // For Debug
#include "misc.hpp"
#include "solvers.hpp"
/**********************************... |
//
// Created by josef on 30.12.16.
//
#include "HashJoin.hpp"
#include <algorithm>
#include <memory>
#include <llvm/IR/TypeBuilder.h>
#include "codegen/CodeGen.hpp"
#include "foundations/StaticHashtable.hpp"
#include "foundations/MemoryPool.hpp"
#include "sql/SqlType.hpp"
#include "sql/SqlValues.hpp"
#include "sql... |
/* --------------------------------------------------------------------------
*
* File T04_Movement.cpp
* Author <NAME>
*
* --------------------------------------------------------------------------
*
* Copyright (C) 2010-2012 XMSoft. All rights reserved.
*
* Con... |
/* This file implements a 64-bit FNV-1a hash UDF (user-defined function) for
* MySQL. The function accepts any number of arguments and returns a 64-bit
* unsigned integer. MySQL actually interprets the result as a signed integer,
* but you should ignore that. I chose not to return the number as a
* hexadecimal s... |
#include "sort1.hpp"
#include <iostream>
#include <algorithm> // std::sort
#include <functional> // std::greater
#include <vector>
#include <array>
#include <string>
// Blog: http://blog.csdn.net/fengbingchun/article/details/71305229
///////////////////////////////////////////////////////////
// reference: http://www... |
#include <algorithm>
#include <cmath>
#include <iostream>
#include "library.h"
#include <map>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#include <tuple>
using namespace std;
using namespace library;
class Problem {
struct point {
int x;
int y;
... |
/*
Copyright (c) 2016 - 2019 Regents of the University of Minnesota and Bolder Flight Systems Inc.
MIT License; See LICENSE.md for complete details
Author: <NAME>, <NAME>
*/
#include "sensor-processing.h"
/* configures sensor processing given a JSON value and registers data with global defs */
void SensorProcessing::... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2019, Analog Devices, 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 copyrigh... |
#include "event_converter.h"
#include "ScrPlayer.h"
#include "android/keycodes.h"
#include "android/input.h"
#define MAP(FROM, TO) case FROM: *to = TO; return true
#define FAIL default: return false
bool
convert_keycode_action(SDL_EventType from, enum android_keyevent_action *to) {
switch (from) {
MAP(SDL_... |
#include "NtKinect.h"
using namespace cv;
double getBendDeg(Mat hand_bwImg, Mat rgbImg);
void markerPos(Mat bwImg, Mat depthImg, DepthSpacePoint ¢er, UINT16 &depth);
int main()
{
NtKinect kinect;
CameraSpacePoint handSp; //Stores position of a hand.
double bendDeg; //Stores bending degree of a hand.
/... |
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/KnownBits.h"
#include "souper/Crow/Crow.h"
using namespace llvm;
extern unsigned DebugLevel;
bool CROW;
unsigned CROWWorkers;
unsigned CROWMaxReplacementSize;
static unsigned CROWGlobalCandidateId = 1;
unsigned* CROWG... |
//===- PDBStringTableBuilder.cpp - PDB String Table -------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2000-2003
* <NAME>, <NAME>, <NAME>, & <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 2 of the... |
/*<html><pre> -<a href="index_r.htm#TOC"
>-------------------------------</a><a name="TOP">-</a>
random_r.c and utilities
Park & Miller's minimimal standard random number generator
argc/argv conversion
Used by rbox. Do not use 'qh'
*/
#include "libqhull_r.h"
#includ... |
//
// 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 disclaimer.
// * Redistributions in bin... |
/*
* MNIST_CNN.cpp
*
* Created on: 2017/8/18
* Author: ZhangHua
*/
#include <iostream>
#include <algorithm>
#include <fstream>
#include <tensor.hpp>
#include <device_instance.hpp>
#include <image_io.hpp>
using namespace std;
using namespace clnet;
class MNISTImageIterator : public type:... |
//
// Created by julian on 5/7/16.
//
#include "md5/md5_animation.h"
#include "meow.h"
MD5Animation::MD5Animation()
: m_iMD5Version( 0 )
, m_iNumFrames( 0 )
, m_iNumJoints( 0 )
, m_iFramRate( 0 )
, m_iNumAnimatedComponents( 0 )
, m_fAnimDuration( 0 )
, m_fFrameD... |
// -*- mode: C++; c-file-style: "cc-mode" -*-
//*************************************************************************
// DESCRIPTION: Verilator: Convert BLOCKTEMPs to local variables
//
// Code available from: http://www.veripool.org/verilator
//
//*******************************************************************... |
#include "queue.hh"
#include <iostream>
#include <stdio.h>
#include <getopt.h>
#include <string>
#define BUFSZ 512
/*
* Logs statistics about the execution of the algorithm and dumps it to a file.
* To turn off, pass verbosity <= 1
*/
NullLogger* logger;
int main(int argc, char *argv[]) {
const char usage[] =... |
/*
* Copyright (c) 2019 <NAME>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <cstdio>
#include <fstream>
#include <iostream>
#include <sstream>
#include <cassert>
#include <cstdlib>
#if defined(__APPLE__) && defined(__MA... |
/*
* Copyright (c) 2010, Texas Instruments Incorporated
* 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... |
#include <iostream>
#include <AMReX.H>
#include <AMReX_MultiFab.H>
#include <AMReX_MultiFabUtil.H>
#include <AMReX_Particles.H>
#include <AMReX_PlotFileUtil.H>
#include <AMReX_Conduit_Blueprint.H>
using namespace amrex;
using namespace conduit;
#include <ascent.hpp>
using namespace ascent;
struct TestParams {
in... |
#include <cstdint>
#include <cassert>
#include <SLY.hpp>
#include <SDL2_gfxPrimitives.h>
enum TOOL
{
TOOL_FREEDRAW,
TOOL_LINE,
TOOL_RECT,
TOOL_FILLEDRECT,
TOOL_CIRCLE,
TOOL_FILLEDCIRCLE,
TOOL_ELLIPSE,
TOOL_FILLEDELLIPSE,
TOOL_ERASER
};
struct Button
{
sly::image::Image img;
int x, y;
void render()
{
... |
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include "headers.hpp"
// hash function for strings, turns a string into an integrer, used for switch statements
constexpr unsigned int $(const char* str, int h = 0) {
return !str[h] ? 5381 : ($(str, h+1) * 33) ^ str[h];
... |
#include "config.h"
#include <boost/beast/core.hpp>
#include <boost/beast/http.hpp>
#include <boost/asio/connect.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ssl/error.hpp>
#include <boost/asio/ssl/stream.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#includ... |
/*
The MIT License (MIT)
Copyright (c) 2018 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... |
// Copyright (c) 2012-2015 <NAME>
// All Rights Reserved.
//
// This file is part of TurboParser 2.3.
//
// TurboParser 2.3 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 Lice... |
/*
* basesnap.hxx
*
*
* Copyright (c) 1998-1999 Microsoft Corporation
*
* PURPOSE: Defines the snapin base class.
*
*
* OWNER: ptousig
*/
// ---- Pragmas ----
#pragma once
// ---- Declarations / references ----
class CBitmap;
class CComponent;
class CColum... |
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.... |
/* Copyright (C) 2000-2013 CEA
*
* This software and supporting documentation were developed by
* bioPICSEL
* CEA/DSV/I²BM/MIRCen/LMN, Batiment 61,
* 18, route du Panorama
* 92265 Fontenay-aux-Roses
* France
*/
#include <iomanip>
#include <cartobase/config/verbose.h>
#include <cartobase/sma... |
// Some of this code is based on taboo_qap by <NAME>.
// The following is the original header of taboo_qap.cpp
/*****************************************************************/
// Implementation of the robust taboo search of: <NAME>
// "Robust taboo search for the quadratic assignment problem",
// Parallel Computin... |
/*
* Copyright 2012 <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 ... |
#include "database.hpp"
#include "exception.hpp"
#include <string>
#include <sstream>
#include <tuple>
#include <iostream>
#include <iomanip>
#include <algorithm>
using std::cout;
using std::endl;
using std::string;
using std::make_tuple;
using std::tuple;
namespace test{
namespace database{
unsigned int... |
/* __ ___ ____ _____ ______ _______ ________ _______ ______ _____ ____ ___ __
//
// Copyright (C) 1993-2012, ART+COM AG Berlin, Germany <www.artcom.de>
//
// This file is part of the ART+COM Standard Library (asl).
//
// It is distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_... |
/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 <NAME> (<EMAIL>)
* Copyright (c) 2014 <NAME> (<EMAIL>)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* University of Southern California, CLMC Lab
*
* This Source C... |
/* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
*
* All rights reserved.
*
* The Astrobee platform is licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with t... |
/******************************************************************************
*
* Copyright (c) 2004-2005, <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:
*
* - Redistrib... |
//
// Copyright (c) 2017-2018 Advanced Micro Devices, Inc. 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 rig... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <chrono>
#include <thread>
#include <random>
#include <vector>
#include <algorithm>
#include ... |
/*
BitzOS (BOS) V0.2.3 - Copyright (C) 2017-2020 Hexabitz
All rights reserved
File Name : BOS_Message.cpp
Description : Hexabitz Messaging source file. .
*/
/* Includes ------------------------------------------------------------------*/
#include "BOS_Message.h"
#include <iomanip>
#include <ca... |
#include "sat_solver.hpp"
using namespace std;
int SatSolver::Solve(int agent_number, int mks)
{
if (timeout < 0)
return 1;
mks = mks + 1; // different numbering of makespan -- number of states rather than number of actions
solver_call++;
io_file_name.clear();
if (debug)
io_file_name.append... |
/**************************************************************************
***
*** Copyright (c) 1995-2000 Regents of the University of California,
*** <NAME>, <NAME> and <NAME>
*** Copyright (c) 2000-2007 Regents of the University of Michigan,
*** <NAME>, <NAME>, <NAME> and
*** ... |
#pragma once
#include <array>
#include <cassert>
#include <functional>
#include "Mmu.hpp"
#include "Screen.hpp"
#include "Cpu.hpp"
#include "Bootstrap.hpp"
template<std::size_t Size = 16, bool Splitted = true, bool DoubleMode = false>
class Register {
public:
using data_t = std::conditional_t<Size == 16, uint16_t... |
//
// SVisual Project
// Copyright (C) 2018 by Contributors <https://github.com/Tyill/SVisual>
//
// This code is licensed under the MIT License.
//
// 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 S... |
/// @file TkrTreeBuilder.cxx
/**
* @brief Provides X-Y space points from the same tower from TkrClusterCol
*
*
* @authors <NAME>
*
* $Header: /nfs/slac/g/glast/ground/cvs/TkrRecon/src/PatRec/TreeBased/TkrTreeBuilder.cxx,v 1.34 2013/01/13 03:21:55 usher Exp $
*
*/
#include "TkrTreeBuilder.h"
#include "Event/TopL... |
/* ************************************************************************
* Copyright (C) 2016-2022 Advanced Micro Devices, Inc. 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
* ... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... |
// headers
#include "main.h"
#include "scene-triangle.h"
#include "logger.h"
// scene variable
Scene *SceneTriangle = NULL;
namespace triangle
{
// scene state
GLuint gShaderProgramObject;
GLuint vao;
GLuint vboPosition;
GLuint vboColor;
GLuint mvpMatrixUniform;
mat4 perspectiveProjectionMatrix;
float angl... |
/**
* @file audio_manager.cpp
*
* @brief contains the implementation for the audio manager class, that is
* responsible for managing audio input and output.
*
* @author <NAME> (younghck)
*/
#include <audio_manager.hpp>
#include <fileInput.hpp>
#include <iostream>
#include <assert.h>
#include <errors.hpp>
#inclu... |
/*
* This file is part of https://github.com/martinruenz/maskfusion
*
* 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 the License, or
* (at your option) any later versi... |
#include "ezlib.h"
#include "bytebuffer.h"
#include "ezlib_nif.h"
#include "nif_utils.h"
#include "macros.h"
#include "allocators.h"
#include "zlib2/zlib.h"
#include <string.h>
#include <string>
#include <memory>
#define UINT64_METRIC(Name, Property) enif_make_tuple2(env, Name, enif_make_uint64(env, Property))
#defin... |
#include <dirent.h>
#include <unistd.h>
#include <string>
#include <vector>
#include "linux_parser.h"
using std::stof;
using std::string;
using std::to_string;
using std::vector;
// DONE: An example of how to read data from the filesystem
string LinuxParser::OperatingSystem() {
string line;
string key;
string ... |
// Copyright (c) 2009-2019 The DigiByte Core developers
// Copyright (c) 2019 The Globaltoken Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <globaltoken/powalgorithm.h>
#include <sstream>
#include <ve... |
/*
* Copyright (c) 2016, The Regents of the University of California (Regents).
* 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... |
//
// Created by neo on 2019-08-15.
//
#include "../pinball.h"
//----- (01006270) --------------------------------------------------------
int partman_field(int a1, int a2, int a3)
{
signed int *v3; // eax
int v4; // edx
int v5; // esi
signed int *v6; // eax
int v7; // ecx
v3 = *(signed int *... |
#include "framework.h"
#include "ICR8600-UDP.h"
#pragma comment(lib, "ws2_32.lib")
//using namespace System;
//using namespace System::ComponentModel;
//using namespace System::Collections;
//using namespace System::Windows::Forms;
//using namespace System::Data;
//using namespace System::Drawing;
//using namespace S... |
#include <iostream>
#include <vector>
#include <string>
#include <bitset>
#include <sstream>
#include <time.h>
#include <cstdlib>
char chars[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
std::vector<std::vector<std::bitset<8> > > messages;
std::vector... |
#include <caffe/caffe.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <algorithm>
#include <iosfwd>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include <iostream>
using namespace std;
using namespace caffe; // N... |
/*******************************************************************
Rolling Thunder Video Hardware
*******************************************************************/
#include "driver.h"
void rt_stop_mcu_timer( void );
#define GFX_TILES 0
#define GFX_SPRITES 1
extern unsigned char *videoram;
extern unsigned c... |
#define FUSE_USE_VERSION 26
#include <fuse_lowlevel.h>
#define FDB_API_VERSION 630
#include <foundationdb/fdb_c.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <assert.h>
#include "util.h"
#include "inflight.h"
#include "values.pb.h"
#include "fdbfs_ops.h"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.