text stringlengths 3.08k 22k |
|---|
#include "Vehicle.h"
std::vector<Vehicle::states> Vehicle::get_next_states() {
switch(cur_state_) {
case KL:
return {KL, PLCL, PLCR};
case PLCL:
return {PLCL, LCL, KL};
case PLCR:
return {PLCR, LCR, KL};
case LCL:
return {KLBuf};
case LCR:
return {KLBuf};
case KL... |
//
// Created by Chrim14 on 03.11.2017.
//
#include "MapStaticFunctions.h"
sf::Vector2i mf::getBitCoordinates(sf::Vector2f &Mouse_Position, Settings &json) {
sf::Vector2i temp;
if (mf::isMousePointerInsideMap(Mouse_Position, json)) {
temp.x = (unsigned int) Mouse_Position.x / (Tile_Size / Bits_To_... |
#include "../ECF_base.h"
#include "../FitnessMax.h"
#include "../ECF_macro.h"
#include "Classifier.h"
#include "time.h"
//Class that represents single classifier in XCS system
//This implementation is designed for BitString::BitString genotypes for
//rule, input and action definition
//By extending it, othe... |
/*
implementations for operations to create sets of independent polynomials, i.e. there is no function with p_n(x)= f( p_1(x)... p_n-1(x))
This file is part of the source code used for the calculation of the moment invariants
as described in the dissertation of Max Langbein
https://nbn-resolving.org/urn:nbn:de:hbz... |
#include "VesselBuilder1.h"
#include "DialogControl.h"
#include "DockManager.h"
#define LogV(x,...) VB1->Log->Log(x,##__VA_ARGS__)
DockManager::DockManager(VesselBuilder1 *_VB1) {
VB1 = _VB1;
dock_defs.clear();
docks_to_del.clear();
docks_jettisoned.clear();
return;
}
DockManager::~DockManager() {
VB1 = NULL;
... |
/*
* common.cc -- common code for click-install and click-uninstall
* <NAME>
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
* Copyright (c) 2000 Mazu Networks, Inc.
* Copyright (c) 2002 International Computer Science Institute
* Copyright (c) 2006 Regents of the University of California
*
* ... |
/*
LICENSE
-------
Copyright 2005 Nullsoft, 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 conditio... |
/**
* MIT License
*
* Copyright (c) 2021 <NAME> (https://github.com/ilwoong)
*
* 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 ... |
#include "imu.h"
//#ifdef MPU9250
MPU9250 myIMU;
//#endif
void imu_sleep()
{
uint8_t c = 0;
// Disable gyro and accel
c = myIMU.readByte(MPU9250_ADDRESS, PWR_MGMT_2);
c |= 0x3F; // Set sleep bit [6]
myIMU.writeByte(MPU9250_ADDRESS, PWR_MGMT_2, c);
delay(100);
// Enter sleep mode
c = myIMU.read... |
// BalanceTree.cpp: implementation of the CBalanceTree class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "BalanceTree.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//========================================... |
/*
Copyright (c) 2009 Yahoo! Inc. All rights reserved. The copyrights
embodied in the content of this file are licensed under the BSD
(revised) open source license
*/
/*
The offset tree algorithm for a fixed tree. One difference with
respect to the original paper is that the rewards are in [-1,1] rather
than [0,1].... |
/*=========================================================================
*
* Copyright <NAME>, <NAME>, <NAME>. 2011.
*
* 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.o... |
/******************************Module*Header*******************************\
* Module Name: efloat.hxx *
* *
* Contains internal floating point objects and methods. *
* ... |
/**
* @file vdec_process.cpp
*
* Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "atlas_utils.h"
... |
/*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
#include <fstream>
#include <vector>
#include <string>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <valarray>
#include <climits>
#include <sstream>
#include <sys/stat.h>
#include <bitset>
#include "ss2lib.hpp"
#include <vector>
#include <nu... |
/*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2008 <NAME> (Glaurung author)
Copyright (C) 2008-2014 <NAME>, <NAME>, <NAME>
Stockfish 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 ... |
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/times.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <signal.h>
#include <sstream>
#include <string.h>
#includ... |
/*
Open Tracker License
Terms and Conditions
Copyright (c) 1991-2001, Be Incorporated. 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... |
#include "led.h"
#include <fx/pacifica.h>
#include <fx/registry.h>
#include "display.h"
Pacifica::Pacifica() { FxRegistry.registerFX(this); }
//
// "Pacifica"
// Gentle, blue-green ocean waves.
// December 2019, <NAME> and <NAME>.
// For Dan.
//
// Add one layer of waves into the led array
void pacifica_one_lay... |
// This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// 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. Redistr... |
#include <iostream>
#include <sstream>
#include <fstream>
#include <random>
#include <string>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include <glad/glad.h>
#include <glm/ext/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "components.hpp"
#include "render.hpp"
/**
* Compiles the pro... |
/* Copyright 2021 iwatake2222
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
dis... |
#include "main.h"
#include "common.h"
char ssid[32] = CONFIG_STA_SSID;
char pass[32] = CONFIG_STA_PASS;
char ip[16] = CONFIG_IPV4_ADDR;
char gw[16] = CONFIG_IPV4_GW;
nvs_handle_t preferences;
WiFiUDP udp;
static const char TAG[] = "gobo";
/*
* Serve OTA update portal (index.html)
*/
extern const uint8_t index_ht... |
#include "pch.h"
#include "Chunk.h"
#include "Directory.h"
#include "FunctionVisitor.h"
#include "Line.h"
#include "FileCoverageData.h"
#include "HtmlReport.h"
#include "RootDirs.h"
#include "resource.h"
#include <GLib/ConsecutiveFind.h>
#include <GLib/Cpp/HtmlGenerator.h>
#include <GLib/Html/TemplateEngine.h>
#inc... |
/**
* 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 "helper_functions.h"
#define EPS 0.00001
usin... |
#include <SDL.h>
#include <fanFilm.h>
#include <fanVector.h>
#include <fanPixel.h>
#include <fanCamera.h>
#include <fanTriangleMesh.h>
#include <fanBufferObject.h>
#include <texture/film/SDLFilm.h>
#include <fanLensMovement.h>
#include <lens/OrthogonalLens.h>
#include <lens/PerspectiveLens.h>
#include <camera/PointSca... |
#include "PowerGui.h"
#include <ncurses.h>
#include <unistd.h>
#include <cstdint>
#include <iostream>
#include <IntelPowerGadget/PowerGadgetLib.h>
PowerGui::PowerGui() = default;
PowerGui::~PowerGui() = default;
// -----------------------------------------------------------------------------
bool PowerGui::init()... |
//"STATION","NAME","DATE","TAVG","TMAX","TMIN","TOBS"
struct cityTemp {
char * station;
char * name;
char * date;
int average;
int high;
int low;
int observed;
};
cityTemp temps[] = {
{"US1WAKG0005","MERCER ISLAND 1.5 NW, WA US","2020-01-01",0,0,0,0},
{"US1WAKG0005","MERCER ISLAND 1.5 NW, ... |
#include "RepeatGraph.h"
#include "FASTAReader.h"
#include "FASTASequence.h"
#include "GraphFlow.h"
#include <string>
#include <vector>
#include <sstream>
using namespace std;
void PrintUsage() {
cout << "usage: printScaffolds rgFileName vertexSeqFileName scaffoldDirName [-separate] [-repeats]" << endl;
}
int main(... |
/** \file gamewindow.cpp
* \author <NAME>, xhutak01
* \author <NAME>, xkozub03
*/
#include "gamewindow.h"
#include "ui_gamewindow.h"
#include "Client.h"
#include "winnerswindow.h"
#include <QGraphicsGridLayout>
#include <QGraphicsWidget>
#include <QPushButton>
#include <QGraphicsProxyWidget>
#include <QBrush>
... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define LM (1) //memory unit
#define L1 (LM+6) //layer 1 unit
#define L2 (5) //layer 2 unti
#define L3 (LM+3) //layer 3 unit
#define LL (L1 * L2 + L2 * L3)
#define PARENT (10) //best parent
#define SON (5) //son per unit
#define STEP (200) // test step
#define MG... |
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <algorithm>
#include <caffe/util/proposal.hpp>
#include "caffe/util/nms.hpp"
//#include <caffe/util/rfcn_detector.hpp>
//#include <caffe/util/text_detector.hpp>
//#define CPU_ONLY
#define ROUND(x) ((int)((x) + (float)0.5))
using st... |
#include "constants.h"
#include "pluginHeader.h"
#include <boost/algorithm/string.hpp> // starts_with
#include <cstdlib> // atoi
#include <cstring> /* strcpy */
#include <fstream> // ifstream, ofstream
#include <iomanip> // setw
#include <ios... |
/*
* Copyright 2004-2011 Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>
* <NAME>
* <NAME>, <EMAIL>.
*/
#include "Keymap.h"
#include <new>
#include <stdio.h>
#include <string.h>
#include <ByteOrder.h>
#include <File.h>
#include <FindDirectory.h>
#in... |
#include <stdio.h>
#include <stdlib.h>
#include <iostream> // for standard I/O
#include <math.h>
#include <time.h>
#include <CL/cl.h>
#include <CL/cl_ext.h>
#include <chrono>
#include "helpers.h"
#define STRING_BUFFER_LEN 1024
#define USE_2D_KERNEL 1
using namespace std;
// Randomly generate a floating-point numb... |
#include <iostream>
#include <cmath>
#include "boost/lexical_cast.hpp"
#include "FWCore/Concurrency/interface/SharedResourceNames.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interfa... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "pow.h"
#include "arith_uint256.h"
#include "chain.h"
#include "chainparams.h"
#in... |
// <NAME>
// ECEN - 5033 Concurrent Programming
// Lab 1 - Concurrent Text Sort with Quicksort and Bucketsort
// Due 9/25/19
#include <string>
#include <iostream>
#include <fstream>
#include <string>
#include <exception>
#include <pthread.h>
#include "include/cxxopts.hpp"
#define FORK_JOIN 1
#define BUCKET 0
#defin... |
// SciTE - Scintilla based Text Editor
/** @file StringList.cxx
** Implementation of class holding a list of strings.
**/
// Copyright 1998-2005 by <NAME> <<EMAIL>>
// The License.txt file describes the conditions under which this software may be distributed.
#include <cstdlib>
#include <cassert>
#include <cstring>
... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "shader.h"
#include "camera.h"
#include "model.h"
#include "particle.h"
#include "screenCap.h"
#include <ppl.h>
#include <ctime>
#include <iostream>
void framebuff... |
/*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/notifier/gaia_auth/gaiahelper.h"
#include "base/logging.h"
#include "talk/base/common.h"
#include "talk/base/cryptstring... |
// Copyright 2019, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
// SPDX-License-Identifier: BSD-2-Clause
#include "CLogger.h"
#include <cstring>
#include <sstream>
#include <iomanip>
#include <time.h>
#ifdef __GLIBC__
#include <execinfo.h>
#include <unistd.h>
#endif
#include <log4cpp/FileAppender.hh>
#include <log4cpp/OstreamAp... |
/*
pbrt source code Copyright(c) 1998-2010 <NAME> and <NAME>.
This file is part of pbrt.
pbrt 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... |
///
/// Copyright (C) 2012-2016, Dependable Systems Laboratory, EPFL
/// Copyright (C) 2015-2016, Cyberhaven
/// All rights reserved.
///
/// Licensed under the Cyberhaven Research License Agreement.
///
#include <s2e/cpu.h>
#include <inttypes.h>
#include <klee/Expr.h>
#include <llvm/ADT/SmallVector.h>
#include <s2e/... |
/*! \file guessdialog.cpp
This file is part of SorpSim and is distributed under terms in the file LICENSE.
Developed by <NAME> and Dr. Ming Qu for ORNL.
\author <NAME> (zhiyaoYang)
\author Dr. Ming Qu
\author <NAME> (nfette)
\copyright 2015, UT-Battelle, LLC
\copyright 2017-2018, <NAME>
... |
//========================================================================
// sgemm
//========================================================================
// This is a simple micro-benchmark which implements a square matrix-matrix
// multiply of floating point values. It is inspired by the PARBOIL
// benchmark suit... |
// LmMessageReader.cpp -*- C++ -*-
// $Id: LmMessageReader.cpp,v 1.29 1998-02-12 15:33:05-08 jason Exp $
// Copyright 1996-1997 Lyra LLC, All rights reserved.
//
// implementation
#ifdef __GNUC__
#pragma implementation "LmMessageReader.h"
#endif
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "Lm... |
#include "CCTexture.h"
#include "CCRenderGlobal.h"
#include "../utils/CStringHlp.h"
#define STB_IMAGE_IMPLEMENTATION
#include "../imageloaders/stb_image.h"
CCTexture::CCTexture() = default;
CCTexture::CCTexture(GLuint type) {
textureType = type;
}
CCTexture::~CCTexture()
{
Destroy();
}
void CCTexture::LoadGridTextu... |
#include "Pch.h"
#include "Viewer.h"
#include <Engine.h>
#include <Render.h>
#include <Input.h>
#include <Scene.h>
#include <SceneManager.h>
#include <Camera.h>
#include <Config.h>
#include <ResourceManager.h>
#include <Gui.h>
#include <File.h>
#define INCLUDE_COMMON_DIALOGS
#include <WindowsIncludes.h>
Viewer::Viewe... |
#include "Pipeline.h"
Pipeline Pipeline::m_Pipeline;
Pipeline::Pipeline() {
m_scale = Vector3f(1.f, 1.f, 1.f);
m_worldPos = Vector3f(0.0f, 0.0f, 0.0f);
m_rotateInfo = Vector3f(0.0f, 0.0f, 0.0f);
Vector3f CameraPos(10.f, 10.0f, -5.f);
Vector3f CameraTarget(0.f, -1.0f, 1.0f);
Vector3f CameraUp(0.f, 1.f, 1.... |
// Concord
//
// Copyright (c) 2018 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License").
// You may not use this product except in compliance with the Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyright
// ... |
/*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaOpImporterPointCloud.cpp
Language: C++
Date: $Date: 2010-11-23 16:50:26 $
Version: $Revision: 1.1.1.1.2.4 $
Authors: <NAME>
=======================... |
#include <iostream>
#include <vector>
#include "clipper.hpp"
#include <chrono>
#include <fstream>
#include <string>
#include <sstream>
#include <iomanip>
using namespace ClipperLib;
template<class T>
using vector = std::vector<T>;
bool getFileContent(std::string fileName, vector<std::string>& vecOfStrs)
{
// Ope... |
// Source : https://oj.leetcode.com/problems/largest-rectangle-in-histogram/
// Author : <NAME>
// Date : 2014-07-20
/**********************************************************************************
*
* Given n non-negative integers representing the histogram's bar height where the width of each bar is 1,
* ... |
#include "ofApp.h"
//reference:
//https://junkiyoshi.com/openframeworks20181102/
//https://www.youtube.com/watch?v=BfRXzMDspFI
//--------------------------------------------------------------
void ofApp::setup() {
//set framerate
ofSetFrameRate(60);
//setup osc receiver
receiver.setup(PORT);
//set background an... |
/* <editor-fold desc="MIT License">
Copyright(c) 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, mer... |
#include <vector>
#include <string>
#include <chrono>
#include "CoolProp.h"
#include "HumidAirProp.h"
//std::map<std::string, double> generate_values(double T, double R, double P = 101325) {
// double psi_w = HumidAir::HAPropsSI("psi_w", "T", T, "R", R, "P", P);
// std::vector<std::string> other_output_keys = ... |
//Deal or No Deal--This program simulates the actual gambling game, which a player chooses one briefcase from a selection of 10. Each briefcase contains a value from $1 -$1000000, the player could choose 'deal' to quit the game or 'no deal' to continue the game.
//<NAME> Comp. Sci-30s
//2020-04-02
#include<iostrea... |
#include "Build.hh"
#include "SkillTable.hh"
#include "Simulation.hh"
#include "CombatLog.hh"
#include "Skills.hh"
#include "Passives.hh"
#include "Augments.hh"
#include <fstream>
#include <iostream>
static string shortStatDump(Gear::Piece const& p)
{
return shortStatDump(p.stats, false);
}
void Build::shortDu... |
/*
#
# ----------------------------------------------------------------------------
#
# Copyright 2019 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.or... |
//===--------- FunctionAbstractionsGeneratorTest.cpp - Unit tests ----------==//
//
// SimpLL - Program simplifier for analysis of semantic difference //
//
// This file is published under Apache 2.0 license. See LICENSE for details.
// Author: <NAME>, <EMAIL>
//===-------------------------------------------... |
/*----------------------------------------------------------------------------*/
/* glyphRenderer.cpp - Multidimensional Glyph Rendering */
/* */
/* <NAME>, 2020 - Swansea University */
/*----------------------------------------------... |
/*
* ----------------------------------
* Copyright (c) 2021 <NAME>
* ----------------------------------
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "testNSearchLib.h"
#include "nsearch/nsear... |
#include "../include/ciobj.h"
#include "AssetManager.h"
#include "MiniConfig.h"
#include "cinder/Log.h"
#include "cinder/app/App.h"
using namespace std;
using namespace melo;
MeshObj::Ref MeshObj::create(ModelObjRef modelObj, const tinyobj::shape_t& property)
{
auto ref = make_shared<MeshObj>();
r... |
// SuperCard Pro flux file format:
// http://www.cbmstuff.com/downloads/scp/scp_image_specs.txt
#include "SAMdisk.h"
#include "DemandDisk.h"
enum
{
FLAG_INDEX = 1<<0, // set for index-synchronised, clear if not
FLAG_TPI = 1<<1, // set for 96tpi, clear for 48tpi
FLAG_RPM = 1<<2, // set for 360rpm, clear for 300rpm... |
/*Code by <NAME>, 2016
CC0 license
*/
#include "pow.h"
#include "blake/blake2.h"
#include <algorithm>
/*
static uint64_t rdtsc(void) {
#ifdef _MSC_VER
return __rdtsc();
#else
#if defined(__amd64__) || defined(__x86_64__)
uint64_t rax, rdx;
__asm__ __volatile__("rdtsc" : "=a"(rax), "=d"(rdx) : : );
ret... |
//--------------------------------------------------------------------------------------
// File: RatingsDB.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#define _CRT_SECURE_NO_DEPRECATE
#ifndef SAFE_DELETE
#... |
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/views/domui_menu_widget.h"
#include <algorithm>
#include "base/stringprintf.h"
#include "base/singleton.h"
#includ... |
// headers
#include "main.h"
#include "logger.h"
#include "scene-triangle.h"
// scene variable
Scene *SceneSquare = NULL;
namespace square
{
// scene state
GLuint gShaderProgramObject;
GLuint vaoSquare;
GLuint vboPositionSquare;
GLuint vboColorSquare;
GLuint mvpMatrixUniform;
mat4 perspectiveProjectionMatri... |
// online2bin/online2-tcp1.cc
#include "feat/wave-reader.h"
#include "online2/online-nnet3-decoding.h"
#include "online2/online-nnet2-feature-pipeline.h"
#include "online2/onlinebin-util.h"
#include "online2/online-timing.h"
#include "online2/online-endpoint.h"
#include "fstext/fstext-lib.h"
#include "lat/lattice-func... |
/*
* scaffold_graph.cpp
* cufflinks
*
* Created by <NAME> on 6/2/10.
* Copyright 2010 <NAME>. All rights reserved.
*
*/
#include <vector>
#include "scaffold_graph.h"
#include "scaffolds.h"
#include <boost/graph/depth_first_search.hpp>
#include <boost/graph/visitors.hpp>
#ifndef NDEBUG
#include "transitive... |
/// @copyright
/// Copyright (C) 2021 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... |
/*
SITL handling
This simulates the APM1 hardware sufficiently for the APM code to
think it is running on real hardware
<NAME> 2011
*/
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
#inclu... |
#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<long long> vl;
typedef vector<vector<bool>> vvb;
typedef vector<vector<int>> vvi;
typedef vector<vector<long long>> vvl;
typedef pair<int,int> pii;
typedef long long ll;
v... |
/*
* File: DataFormats/Scalers/src/L1TriggerScalers.cc (W.Badgett)
*/
#include "DataFormats/Scalers/interface/L1TriggerScalers.h"
#include "DataFormats/Scalers/interface/ScalersRaw.h"
#include <iostream>
#include <cstdio>
L1TriggerScalers::L1TriggerScalers():
version_(0),
collectionTimeSpecial_(0,0),
or... |
/*
* MaiKe Labs (2016 - 2026)
*
* Written by <NAME> <<EMAIL>>
*
* Connect VCC of the SSD1306 OLED to 3.3V
* Connect GND to Ground
* Connect SCL to i2c clock - GPIO21
* Connect SDA to i2c data - GPIO22
* Connect DC to GND (The scanned i2c address is 0x3C)
*
*/
#include <stdio.h>
#include "freertos/FreeR... |
/*
* blink.cc
*
* Author:<NAME>, <NAME>
* Fixes:
*
* Copyright (c) 2003 Machine Perception Laboratory
* University of California San Diego.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistr... |
/* The MIT License (MIT)
*
* 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, including without limitation the rights
* to use... |
#include <vector>
#include <iostream>
#include <sstream>
#include <fstream>
#include <cmath>
#include <math.h>
#include <map>
#include "Vector.h"
#include <tuple>
using namespace std;
#define PI 3.14159265
// ***********************************
// Given a centroid (in u,v) and an obj
// file, this program returns the... |
// Engine Libraries
#include "includes/SimpleRender.h"
// Core Libraries
#include <sys/stat.h>
// Helper Libraries
#include <spdlog/spdlog.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
// OpenGL Macros
#define WIDTH 800
#define HEIGHT 400
class App : public Simp... |
/****************************** Module Header ******************************\
* Module Name: CppNamedPipeServer.cpp
* Project: CppNamedPipeServer
* Copyright (c) Microsoft Corporation.
*
* Named pipe is a mechanism for one-way or duplex inter-process communication
* between the pipe server and one or more pipe ... |
#include "AutoWall.h"
#include"bspflags.h"
// Don't take credits for this ;) Joplin / Manhhao are the first uploaders ;)
#define HITGROUP_GENERIC 0
#define HITGROUP_HEAD 1
#define HITGROUP_CHEST 2
#define HITGROUP_STOMACH 3
#define HITGROUP_LEFTARM 4
#define HITGROUP_RIGHTARM ... |
// Copyright (c) 2005-2006, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditio... |
/*
* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 <NAME> <<EMAIL>>
* 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 ... |
/** $lic$
* Copyright (C) 2012-2015 by Massachusetts Institute of Technology
* Copyright (C) 2010-2013 by The Board of Trustees of Stanford University
*
* This file is part of zsim.
*
* zsim is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as publishe... |
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <cmath>
#include <cstdint>
#include <random>
#include "../type_convert.hpp"
#include "../GB_Matrix_allocate.h"
static const char *_cudaGetErrorEnum(cudaError_t error) {
return cudaGetErrorName(error);
}
template <typename T>
void check(T result, char c... |
/*
PROGRAM: $PROGRAM
AUTHOR: <NAME>
DATE: 2010-4-9
DESCRIPTION:
$DESCRIPTION
*/
#include <iostream>
using std::cin;
using std::cout;
#include <fstream>
using std::ifstream;
using std::ofstream;
#include <sstream>
using std::stringstream;
using std::endl;
#include <vector>
using std::vector;
#include <... |
#pragma once
#include <algorithm>
#include <cassert>
#include <iostream>
#include <unordered_map>
class Trie;
class ReverseTrie;
class TrieReverseTrie;
class Trie {
private:
std::unordered_map<char, Trie *> children;
Trie const *parent = nullptr;
ReverseTrie const *link = nullptr;
int label{};
... |
/*
* Copyright (c) 2004, Laminar Research.
*
* 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, ... |
#include "ros/ros.h"
#include "actionlib/server/simple_action_server.h"
#include "behaviors/IntakeAction.h"
#include "cargo_intake_controller/CargoIntakeSrv.h"
#include "sensor_msgs/JointState.h"
#include <atomic>
#include <ros/console.h>
//define global variables that will be defined based on config values
double in... |
//
// main.cpp
// Robust Struck
//
// Created by <NAME> on 10/5/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#include <iostream>
#include <opencv2/opencv.hpp>
#include <ctime>
#include <algorithm>
#include "Tracker/LocationSampler.h"
#include "Tracker/OLaRank_old.h"
#include "Tracker/Struck.h"
#inc... |
//===--- Job.cpp - Command to Execute -------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#include <cassert>
#include "AGLM.h"
#include "material.h"
#include "ray.h"
#include "sphere.h"
#include "box.h"
#include "plane.h"
#include "triangle.h"
#include "hittable.h"
using namespace glm;
using namespace std;
float eps = 0.0001f; // epsilon for comparing floats
template <class T>
bool vecEquals(T a, T b)
{
... |
#include <buildSystem.hpp>
#include <strings.hpp>
int checkArgument(int type, std::string text,std::vector<data> *vecData, int index)
{
std::map<std::string, uint16_t> argumentMap = {
{"language", LANGUAGE_ARGUMENT},
{... |
#include "atkui/framework.h"
#include "atkmath/constants.h"
#include "atkmath/vector3.h"
#include "atkmath/matrix3.h"
#include "atkmath/quaternion.h"
#include <string>
#include <deque>
#include <iostream>
using namespace glm;
using atkmath::Matrix3;
using atkmath::Vector3;
class Electrons {
public:
Electrons(int numE... |
/*
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 "scrollbar.h"
#include <Tempest/Layout>
#include <Tempest/Application>
#include <Tempest/Painter>
using namespace Tempest;
ScrollBar::ScrollBar(Tempest::Orientation ori) : orient(ori) {
mSmallStep = 10;
mLargeStep = 20;
implSetOrientation(orient);
timer.timeout.bind(this,&ScrollBar::processPress);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.