text stringlengths 5.71k 33.7k |
|---|
//
// messenger_client.cpp
// messenger_client
//
// Created by <NAME> on 11/4/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
// project header, contains all globals
#include "cglobals.h"
void connect();
void process_args(const char * argv[]);
int main(int argc, const char * argv[]) {
if ... |
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redistributions ... |
// graph.cpp
#include <iostream>
#include <algorithm>
#include <ostream> // for output streams
#include <istream> // for input streams
#include <fstream> // for actual file streams
#include <string> // necessary for the line parser
#include <sstream> // necessary for the line parser
#include "graph.hpp"
// Lese au... |
// Gmsh - Copyright (C) 1997-2019 <NAME>, <NAME>
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
#include "BackgroundMeshTools.h"
#include "GFace.h"
#include "GVertex.h"
#include "GEdge.h"
#include "GEntity.h"
#include "Context.h"
#inc... |
/*
* Copyright (c) 2016, SRCH2
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
#include "crypto.h"
#include "util.h"
// reference:
// https://en.wikipedia.org/wiki/SHA-2
// https://tools.ietf.org/html/rfc6234
// https://docs.google.com/spreadsheets/d/1mOTrqckdetCoRxY5QkVcyQ7Z0gcYIH-Dc0tu7t9f7tw/edit#gid=2107569783
const uint32_t sha256_k[] = {
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,... |
/* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... |
/*******************************************************************************
BoundingDiameters v0.4
@author <NAME> - <EMAIL>
@website http://www.liacs.nl/~ftakes/diameter
**************** consult the README.txt file before using *********************/
#include "graph.h"
// Constructor: set all variables to zero /... |
// ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... |
#include <tinyhal.h>
#include "net_decl_lwip.h"
#include "enc28j60_lwip.h"
extern "C"
{
#include "netif\etharp.h"
#include "lwip\dhcp.h"
#include "lwip\tcpip.h"
#include "lwip\dns.h"
}
#if defined(ADS_LINKER_BUG__NOT_ALL_UNUSED_VARIABLES_ARE_REMOVED)
#pragma arm section zidata = "g_ENC28J60_LWIP_Driver"
#endif
stati... |
// minimal SVD implementation for calculating feature points from hermite data
// works in C++ and GLSL
// public domain
#ifndef USE_GLSL
#define USE_GLSL 0
#endif
#ifndef USE_WEBGL
#define USE_WEBGL 0
#endif
#ifndef DEBUG_SVD
#define DEBUG_SVD (!USE_GLSL)
#endif
#ifndef SVD_COMPARE_REFERENCE
#define SVD_COMPARE_R... |
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <functional>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <stack>
#include <utility>
#include <vector>
#include "misc.h"
#include "graph.h"
using std::map;
using std::pair;
using std::stack;
using std::stri... |
/* BSD 3-Clause License
* Copyright (c) 2019-2021, contributors
* 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
* ... |
// Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <gtest/gtest.h>
#include <v... |
/* hash.c April 2012
* Groestl ANSI C code optimised for 32-bit machines
* Author: <NAME>
*
* This work is based on the implementation of
* <NAME> and <NAME>
*
*
*/
#include <stddef.h>
#include "c_groestl.h"
#include "groestl_tables.h"
#define P_TYPE 0
#define Q_TYPE 1
const uint8_t sh... |
#include "instructiondecoder.h"
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <unistd.h>
// Taken from http://www.pastraiser.com/cpu/gameboy/gameboy_opcodes.html
static uint8_t instruction_lengths[256] = {
1, 3, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 1, 1, 2, 1, // 0x
2, 3, 1, 1, 1, 1, 2, 1, 2, 1, 1,... |
/******************************************************************************\
| OpenGL 4 Example Code. |
| Accompanies written series "Anton's OpenGL 4 Tutorials" |
| Email: anton at antongerdelan dot net ... |
// ---------------------------------------------------------------------------
// udmabuf テスト
// Copyright (C) 2015-2020 by Ryuz
// https://github.com/ryuz/
// ---------------------------------------------------------------------------
#include <iostr... |
/**
* Copyright (c) 2021, Ouster, Inc.
* All rights reserved.
*
* @file
* @brief pybind wrappers for the ouster simple viz library
*
* PoC for exposing the opengl visualizer in Python.
*/
#include <pybind11/functional.h>
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>
#... |
/**
* @file main.cpp
* @copyright Copyright (c) 2020 University of Turku, MIT License
* @author <NAME>
*/
#include <loguru.hpp>
#include <ftl/configuration.hpp>
#include <ftl/codecs/reader.hpp>
#include <ftl/codecs/packet.hpp>
#include <ftl/rgbd/camera.hpp>
#include <ftl/codecs/hevc.hpp>
#include <ftl/codecs/h264.... |
/****************************************************************************/
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
// Copyright (C) 2001-2020 German Aerospace Center (DLR) and others.
// This program and the accompanying materials are made available under the
// terms of the Ecli... |
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_ttf.h>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
#include <algorithm>
#include <cstdio>
#include <string>
#include <vector>
#include <map>
#include <ctime>
#include <cmath>
#include <fstream>
#include "json.hpp"... |
#include "message.h"
const char* direct[] = {"up","down","left","right",""};
ActMsg::ActMsg(int roundId)
{
root=cJSON_CreateObject();
cJSON_AddItemToObject(root, "msg_name", cJSON_CreateString("action"));
cJSON_AddItemToObject(root, "msg_data", msg_data=cJSON_CreateObject());
cJSON_AddNu... |
//
// Author: <NAME>
// Contact: <EMAIL>
// Date: 22.07.2019
//
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstring>
#include <iostream>
#include "node.h"
#include "tree.h"
using namespace std;
// the to be used approach, "1" for MCTS, "2" for MCS
short int ai = 1;
// time limit for the MCS/... |
/** \file FindInsideOfPolyhedron.cpp
* \brief Functions to determine whether points on a grid lie inside or outside a surface in 3D-space defined by triangular faces.
* \author <NAME>
* \date 2020
*/
#include "pch.h"
#include "FindInsideOfPolyhedron.h"
#include <cmath>
#include <algorithm>
#include "DynamicArray.h"
#... |
//
// TParams.cpp
//
// Defines all the construction parameters for a terrain.
//
// Copyright (c) 2001-2007 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "vtlib/vtlib.h"
#include "vtdata/FilePath.h"
#include "vtdata/vtLog.h"
#include "vtdata/vtTime.h"
#include <string.h>
#incl... |
/*
* 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 Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute,... |
/*
--------------------------------------------------------------------------------
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any lat... |
// -*- C++ -*-
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// <NAME>
// California Institute of Technology
// (C) 2005-2010 All Rights Reserved
//
// {LicenseText}
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
/** @file
* This file holds all input/output functions.
*
* @todo
* Eventually we should have .vtk and .gz capability,
* and be able to distinguish dynamically which to use.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <cmath>
#include <vector>
#include "point.h"
#incl... |
/*
* main_lopp.cpp
*
* Created on: 28 kwi 2022
* Author: Florek
*/
#include "main_loop.h"
#include "esp_timer.h"
#include "esp_camera.h"
#include "img_converters.h"
#include "camera_index.h"
#include "Arduino.h"
#include "esp_heap_caps.h"
#include "fb_gfx.h"
#include "fd_forward.h"
#include "fr_forward.h"... |
/****************************************************************************//*
* Copyright (C) 2021 <NAME>
*
* Creative Commons Legal Code
*
* CC0 1.0 Universal
*
* CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
* LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
*... |
#include "Wolf.DirectX.Shared.PCH.h"
#include "W_GraphicsDeviceManager.h"
#include "W_GraphicsResource\W_Textures\W_Texture2D.h"
#if defined(__WINRT)
#include "windows.ui.xaml.media.dxinterop.h"
#endif
//#include "GraphicsResource\Textures\Texture2D.h"
//#include "GraphicsResource\Textures\ScreenGrab.h"
u... |
#include "Sen_09_ModelViewProjection.h"
Sen_09_ModelViewProjection::Sen_09_ModelViewProjection()
{
strWindowName = "Sen Auto CameraView";
m_WidgetWidth = int(m_WidgetWidth*1.5);
}
Sen_09_ModelViewProjection::~Sen_09_ModelViewProjection()
{
}
void Sen_09_ModelViewProjection::initGlfwGlewGL()
{
SenAbstractGLFW:... |
//
// Copyright (c) 2014, Saarland University
// Copyright (c) 2012, University of Erlangen-Nuremberg
// Copyright (c) 2012, Siemens AG
// Copyright (c) 2010, ARM Limited
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the fol... |
// This file is subject to the terms and conditions defined in 'LICENSE' in the source code package
#include "game/world/world.h"
#include <algorithm>
#include <future>
#include <noise/noise.h>
#include <noise/noiseutils.h>
#include <set>
#include "proto/noise_layer.h"
#include "proto/sprite.h"
#include "render/tile... |
#include "RepositoryViewDelegate.h"
#include <GitServerCache.h>
#include <GitQlientStyles.h>
#include <GitLocal.h>
#include <Lane.h>
#include <LaneType.h>
#include <CommitInfo.h>
#include <CommitHistoryColumns.h>
#include <CommitHistoryView.h>
#include <CommitHistoryModel.h>
#include <GitCache.h>
#include <GitBase.h>... |
#ifdef __APPLE__
# include "osx_messagebox.h"
#elif defined(unix) && defined(HAVE_GTK2)
# include <gtk/gtk.h>
#endif
#ifdef WIN32
#ifndef INTEGER_TYPES
#define INTEGER_TYPES
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
ty... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2021 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
//-------------------------------------------------
//
// Class: L1MuGMTDump
//
// Description: Dump GMT readout
//
//
//
// <NAME> HEPHY Vienna
//
//--------------------------------------------------
//-----------------------
// This Class's Header --
//-----------... |
/*
Copyright 2016-2020 Intel 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.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
/*
* Copyright (c) 2013-2014 <NAME>
*
* This file is part of GamingAnywhere (GA).
*
* GA is free software; you can redistribute it and/or modify it
* under the terms of the 3-clause BSD License as published by the
* Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clause
*
* GA is distribut... |
// license:LGPL-2.1+
// copyright-holders:<NAME>, <NAME>, ElSemi, <NAME>
/* Hyper NeoGeo 64 Audio */
// uses a V53A ( == V33A with extra peripherals eg. DMA, Timers, MMU giving virtual 24-bit address space etc.)
/* The uploaded code shows that several different sound program revisions were used
sams64 (#)SNK R&D ... |
// Copyright 2012 Cloudera 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 in wr... |
/* ----------------------------------------------------------------- */
/* The Toolkit for Building Voice Interaction Systems */
/* "MMDAgent" developed by MMDAgent Project Team */
/* http://www.mmdagent.jp/ */
/* -------------------------... |
//====- LateLowering.cpp - Lowering from Toy+Linalg to LLVM -===//
//
// Copyright 2019 The MLIR Authors.
//
// 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/lic... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2012 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... |
/*
* Hedgewars, a free turn based strategy game
* Copyright (c) 2006-2008 <NAME> <<EMAIL>>
* Copyright (c) 2004-2015 <NAME> <<EMAIL>>
*
* 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; ver... |
#include "TrajectoryPlanner.h"
#include <algorithm>
#include <string>
#include "log.h"
#include "spline.h"
#if PLOTTRAJECTORY
#include "gnuplot-iostream.h"
#endif
// ToDo: avoid any collisions,
// because behavior planner is not responsible for this, he only makes a suggestion
std::vector<GlobalCartesianCoordinate> ... |
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// 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
//
// ... |
#include <stdio.h>
#include <iostream>
#include <GLTools.h>
#include <GLShaderManager.h>
#include <GLFrustum.h>
#include <GLBatch.h>
#include <GLMatrixStack.h>
#include <GLGeometryTransform.h>
#include <StopWatch.h>
#include <GL/glu.h>
#ifdef __APPLE__
#include <glut/glut.h>
#else
#define FREEGLUT_STATIC
#include <G... |
#include "header.h"
void framebuffer_size_callback(GLFWwindow* window, int width, int height) {
glViewport(0, 0, width, height);
}
glm::vec3 cameraPos = glm::vec3(0.0f, 0.0f, 3.0f);
glm::vec3 cameraFront = glm::vec3(0.0f, 0.0f, -1.0f);
glm::vec3 cameraUp = glm::vec3(0.0f, 1.0f, 0.0f);
glm::vec3 cameraDown = glm::... |
#include <SFML/Window/Event.hpp>
#include "Game.h"
#include <iostream>
Game::Game(): shouldQuit(false), window(sf::VideoMode(1280, 720), "What do you want?", sf::Style::Close) {
music.openFromFile("Resources/bittersweet.wav");
music.setLoop(true);
music.play();
nodes[0] = Node::create(1, -1, 2);
nodes[0]->quest... |
#include "expression_test_parser.hpp"
#include <mbgl/util/io.hpp>
#include <mbgl/util/logging.hpp>
#include <mbgl/util/variant.hpp>
#include <mbgl/style/conversion/function.hpp>
#include <mbgl/style/rapidjson_conversion.hpp>
#include <mbgl/style/expression/parsing_context.hpp>
#include <mapbox/geojson/rapidjson.hpp>
... |
/* Copyright Joyent, Inc. and other Node contributors. 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
* righ... |
/*
Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with cer... |
#include "stdafx.h"
#include "CServer.h"
#include "C6SPacket.h"
#include "CRandom.h"
#include "CGame.h"
#include "C6SNetwork.h"
bool CServer::SClient::Send(C6SPacket& packet) {
assert(0 && "implement me");
return false;
}
void CServer::SendChatMessage(std::string& message, CGame* pGame) {
IEventList... |
#include "TileRendering.h"
#include "ImageLoading.h"
#include "PlayerActions.h"
#include "Drawing.h"
#include "Utilities.h"
#include "DataLoading.h"
#include "Global_CurrentMap.h"
#include "Global_Player.h"
#include "Global_Canvas.h"
#include "Global_SDL.h"
#include "Global_MapSize.h"
#include "Player.h"
#include "Text... |
#include <fstream>
#include <ConciseArgs>
#include <bot_param/param_client.h>
#include <lcm/lcm-cpp.hpp>
#include <opencv2/opencv.hpp>
#include <zlib.h>
#include <drc_utils/LcmWrapper.hpp>
#include <drc_utils/BotWrapper.hpp>
#include <drcvision/fovision.hpp>
#include <drcvision/voconfig.hpp>
#include <lcmtypes/multi... |
// Copyright 2015, <NAME> and the other displaz contributors.
// Use of this code is governed by the BSD-style license found in LICENSE.txt
#include "TriMesh.h"
#include <memory>
#include "glutil.h"
#include <QGLShaderProgram>
#include "tinyformat.h"
#include "rply/rply.h"
#include "ply_io.h"
#include "PolygonBuil... |
#include "main.h"
#include "Parser.h"
#include "header.h"
void Expression::skipWhitespace() {
while (source[sourceIndex] == ' ' || source[sourceIndex] == '\t' || source[sourceIndex] == '\n') sourceIndex++;
}
// Check ahead to see if the next few characters match 'prefix'
bool Expression::match(string prefix) {
... |
#include "snowball/lexer.h"
#include "snowball/token.h"
#include "snowball/errors.h"
#include <string>
#include <vector>
#define GET_CHAR(m_off) ( \
((size_t)char_ptr + m_off >= _source_info->get_source().size()) \
? '\0' \
: _source_info->get_so... |
/*
MIT License
Copyright (c) 2020 Group of Electronic Technology and Communications. University of A Coruna.
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 <cstdlib>
#include <iostream>
#include <iomanip>
#include <vector>
#include <numeric>
#include <limits>
#include <boost/timer.hpp>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
#include <omp.h>
#include "absmc3D.h"
using namespace absmc;
using namespace absmc::graphics;
using util::createFile... |
/***************************************************************************
*
* Copyright (C) 2017 Codeplay Software Limited
* 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
*
* ... |
/*
Copyright (c) 2020, <NAME>
All rights reserved.
You may use, distribute and modify this code under the terms of the BSD license,
see LICENSE file.
*/
#include "libtorrent/entry.hpp"
#include "libtorrent/bencode.hpp"
#include "libtorrent/torrent_info.hpp"
#include "libtorrent/create_torrent.hpp"
#include "common.... |
//////////////////////////////////////////////////////////////////////////
// Homemade GPS Receiver
// Copyright (C) 2013 <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 vers... |
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <SDL.h> // sdl
#include "../../../../matplotlib-cpp/matplotlibcpp.h" // plt
#include "../src/AudioView.hpp"
#include "opencv2/core.hpp" // spect
#include "opencv2/videoio.hpp... |
#include <iostream>
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <unistd.h>
#include <linux/netlink.h>
#include <string.h>
#include <sys/socket.h>
#include "decode.h"
#include <netinet/in.h>
#include "flowmon_agent.h"
#include <unistd.h>
#include <pthread.h>
#include <queue>
#include <sys/time.h>... |
//
// Created by kellerberrin on 16/8/21.
//
#include "kgl_pubmed_xml_parser.h"
#include "kel_exec_env.h"
namespace kgl = kellerberrin::genome;
std::pair<bool, kgl::LitCitationMap> kgl::ParseCitationXMLImpl::parseCitationXML(const std::string& citation_text, const DateGP& download_date) {
LitCitationMap citati... |
// StaggeredProjections.cpp
//
// <NAME>
// Last updated: 10/23/2015
#include "StaggeredProjections.h"
#include "scisim/ConstrainedMaps/ImpactMaps/ImpactOperator.h"
#include "scisim/ConstrainedMaps/FrictionMaps/FrictionOperator.h"
#include "scisim/Constraints/Constraint.h"
#include "scisim/ConstrainedMaps/Constrained... |
#include <Arduino.h>
#include "N716lib.h"
#include "iolog.h"
#define min _min
#define max _max
uint8_t pubsub_f = 0;
/////////////////////////////////////////////
// Public methods.
//
void N716lib::attachsubcallback(subcallbackFunction newFunction){
subdatecallback = newFunction;
}
void N716lib::attachtcpcallba... |
#include "armer_teleop.h"
/**
* @brief Construct a new Armer Teleop:: Armer Teleop object
* - NOTE: default arguments based on logitech controller configuration
*/
ArmerTeleop::ArmerTeleop(): _home_client("arm/home", true)
{
// Not constructed yet
_class_construction = false;
// ------ Apply Defa... |
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile$
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WA... |
/*******************************************************************************
* Copyright (c) 2007, 2008, CerroKai Development
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistribu... |
#include <palmapper/Mapper.h>
#include <palmapper/align.h>
#include <palmapper/palmapper.h>
#include <palmapper/print.h>
#include <bwa/bwtaln.h>
#include <bwa/bwtmyaln.h>
void Mapper::map_reads_timing(int count_reads, float this_read)
{
fprintf(stdout, "# [map_reads] timing: %1.3f, %1.3f, %1.3f, %1.3f, %1.3f, avg/rea... |
//
// Database.cc
//
// Copyright (c) 2016 Couchbase, Inc All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unles... |
/*
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 co... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
/*
The MIT License (MIT)
Copyright (c) 2016 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... |
/* Copyright (c) 2019, NVIDIA CORPORATION. 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 cond... |
#include "core/global.h"
#include "core/config_parser.h"
#include "core/timer.h"
#include "search/asyncbot.h"
#include "program/setup.h"
#include "program/play.h"
#include "main.h"
#define TCLAP_NAMESTARTSTRING "-" //Use single dashes for all flags
#include <tclap/CmdLine.h>
#include "external/nlohmann_json/json.hpp"... |
#include "create_program.h"
//! Make conversion's easy:
#define toRadians M_PI/180.0
#define toDegrees (180.0/M_PI)
#define toPresision std::fixed<<std::setprecision(3)
create_program::create_program()
{
}
bool create_program::point_every_ms(std::vector<Opencascade::bucket> bucketvec){
// Remove previous perfo... |
#include <cassert>
#include <fstream>
#include <limits>
#include <set>
#include <sstream>
#include "data.hpp"
#include "dependencies.hpp"
#include "disk.hpp"
#include "mpi.hpp"
#include <mpi.h>
/** Task used to add synchronization points.
This task doesn't do anything (call() is empty).
*/
class SyncTask : pub... |
int jgV , al2
//CGr6x
, uhX ,
faF, m,Px3
,/*J*/
OI,
TC7 ,
LPA
,
GET , Yn /*nsh*/, a4 ,FS9N
,Flxu ,mZe,
CJ ,zl,
Bih
,hTG ,
bnFX
,a, BXZ1h,
hja , //V6E
ABC ,TOSqak , B7UF
, XA, R2THSR, xKg
/*a1n95*/,rbXO ,d, MU, X2g ,fj,xdhk,
aL,axu /*mL*/;void
f_f0() {
volatile int
bHSgyW
,
bE, Et9 ,lVfet
,Hq
,... |
/*
The MIT License
Copyright 2019 hiratake26to
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d... |
// kwsbin2/lattice-char-index-segment.cc
// Copyright (c) 2017-2018 <NAME> <<EMAIL>>
// 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
//
//... |
#include <iostream>
#include <vector>
#include <fstream>
#include "sre/Texture.hpp"
#include "sre/Renderer.hpp"
#include "sre/Material.hpp"
#include "sre/SDLRenderer.hpp"
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/euler_angles.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform.hpp>
#inclu... |
/*
* ZernikeMoments.cpp
*
* Created on: Jul 8, 2014
* Author: sebastian
*/
#include "ZernikeMoments.h"
#include "../utils/numerical_limits.h"
#include <assert.h>
#include <iostream>
#include <omp.h>
array2D ZernikeMoments::c;
array3D ZernikeMoments::q;
ComplexCoeffArray4D ZernikeMoments::chi;
int ZernikeMom... |
/*
* File:SeqGraphGetPath.cpp
*
*
* Author(s):
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Description:
* implementation of a Coarse Graph GetPath
* Copyright (c) 2018.
* last Updated: 31/07/2018
*
*/
#include<iostream>
#include<float.h>
#include<stdin... |
/*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In jurisdic... |
/*********************************************************************/
/* Copyright (c) 2011 - 2012, The University of Texas at Austin. */
/* All rights reserved. */
/* */
/* Redistribution and use in sou... |
// Copyright 2008 Isis Innovation Limited
#include "HomographyInit.h"
#include "SmallMatrixOpts.h"
#include <utility>
#include <TooN/se3.h>
#include <TooN/SVD.h>
#include <TooN/SymEigen.h>
#include <TooN/wls.h>
#include "MEstimator.h"
using namespace std;
bool HomographyInit::IsHomographyInlier(Matrix<3> m3Homography,... |
#include <fstream>
#include <unordered_map>
#include <boost/format.hpp>
#include "local_push.h"
using boost::format;
double cal_rmax(double c, double epsilon) {
return (1 - c) * epsilon;
}
void Full_LocalPush::push(NodePair &pab, double inc) {
// the actually action of push
n_push++;
R[pab] += inc;... |
/*
* @Description:
* @Author: 妄想
* @Email: <EMAIL>
* @Date: 2020-09-30
*
* @Author: xiji
* @Email: <EMAIL>
* @Date: 2021-04-13
*/
#ifndef STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_IMPLEMENTATION
#include "../stb_image.h"
#endif // !STB_IMAGE_IMPLEMENTATION
#include "texture.h"
#include <utility>
std::un... |
/*
* trace-energy-v2.cc: Runs a command and produces an energy trace of its execution.
*
* This is an improved version that records timestamps.
* Added support for changing the frequency using the -F command line switch.
* Version 2.2: Pass SIGINT (Ctrl-C on terminal) to the child process
*
* Compilation: g++ -W... |
//
// Copyright 2021 Yubico AB
//
// 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 wri... |
#include "navigator.h"
#include <QtCore/QDir>
#include "tracker.h"
#include <fstream>
uint Navigator::numDetected(const std::vector<Landmark> &landmark) const
{
uint _numDetected=0;
for (uint i=0; i<landmark.size(); ++i)
{
}
return _numDetected;
}
/**
* Run odometry estimator and loop closure d... |
/*
* 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... |
//
// nAgent.cpp
// evoNik
//
// Created by <NAME> on 2/13/12.
// Copyright (c) 2012 California Institute of Technology. All rights reserved.
//
#include <iostream>
#include <cmath>
#include "nAgent.hpp"
#include "nAnalyzer.hpp"
unsigned int nAgent::masterID=0;
void nAgent::initialize(){
m_alive = true;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.