text stringlengths 3.08k 22k |
|---|
/**The MIT License (MIT)
Copyright (c) 2015 by <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, pub... |
/*******************************************************************************
Copyright 2008 Enseed inc.
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 with... |
/*
* =====================================================================================
*
* Filename: FilterCriteria.h
*
* Description: Criteria for filtering alignment hits.
*
* Version: 1.0
* Created: 04/14/2015 11:33:00 AM
* Revision: none
* Compiler: gcc
*
* ... |
//
// <NAME> <<EMAIL>>
// Texas A&M University Cyclotron Institute
// 7 Jan 2009
//
#include "DSM.hh"
#include "DSMAlgo_EM201_2009.hh"
int DSMAlgo_EM201_2009::ajpBarrel(const DSM& dsm, int offset) const
{
int jpBits[6];
// BC101-106
for (int ch = 0; ch < 6; ++ch)
{
jpBits[ch] = dsm.channels[ch] >> o... |
/*************************************************************************
*
* File Name : coilfwd2.cpp
* Platform : gnu C++ compiler
* Author : <NAME>
* Date : 16 May 2003
*
*
* SYNOPSIS
* This file finds the plasma surface flux for a given coil current.
*
****... |
//
// Created by freddy on 13/05/19.
//
#include <util/BitUtils.h>
#include "TheRockWhiteEvaluator.h"
// Bonus or penality for the given king position
const int position_weight[9][9] = {
{ 0, 1000, 1000, 0, 0, 0, 1000, 1000, 0},
{1000, 300, 200, 100, 0, 100, 200, 300, 1000},
... |
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <fstream>
#include <iostream>
#include <arc/security/ClassLoader.h>
#include <arc/security/ArcPDP/Request.h>
#include <arc/security/ArcPDP/Response.h>
#include <arc/security/ArcPDP/EvaluationCtx.h>
#include "XACMLEvaluator.h"
#include "XACMLEvaluationCtx.h"
A... |
#include <iostream>
#include <math.h>
#include <assert.h>
#include "channel.h"
#include "flow.h"
#include "packet.h"
#include "event.h"
#include "../run/params.h"
extern double get_current_time();
extern void add_to_event_queue(Event *);
extern DCExpParams params;
extern std::vector<std::vector<uint32_t>> cwnds;
ex... |
/****************************************************************************
* Name: psc1_pisco_logbook.cpp
* Psc1_PiscoPanel class
*
* JLP
* Version 14/01/2016
****************************************************************************/
#include "psc1_frame_id.h"
#include "psc1_pisco_panel.h"
#include "tav_utils.h" ... |
/*
* @file Target.cpp
* @author <NAME>
* @author <NAME>
* @author <NAME>
* @author <NAME>
* @date 05/10/2019
* @brief The file Target.cpp contains the definitions for the target class
* @license MIT License
* Permission is hereby granted, free of charge,... |
/*
* License:
* Copyright (c) 2006-2021 Made to Order Software Corp. All Rights Reserved
*
* https://snapwebsites.org/
* <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 Softwa... |
#include "werewolf.h"
#include<vector>
#include<algorithm>
#include<vector>
#include<iostream>
using namespace std;
const int maxN=201000<<1;
const int maxM=404000;
const int maxB=20;
class Edge
{
public:
int u,v;
};
class Graph
{
public:
int n,dfncnt,dfn[maxN],lst[maxN],Fa[maxB][maxN],root,Key[maxN];
vector<int> T... |
#include <boost/asio/io_service.hpp>
#include <boost/format.hpp>
#include <boost/program_options.hpp>
#include "septem.hpp"
#include <iostream>
#include <string>
#include <thread>
#include <vector>
#include "config.h"
#include "account_manager.hpp"
#include <boost/shared_ptr.hpp>
//#include "vfs/filesystem... |
#include "SimpleRender.h"
/**
***********************************************************
* Private Static Methods and Callbacks
* - Key Presses, Mouse Button, Cursor Movements, and
* Mouse Scrolling Callbacks
***********************************************************
*/
void SimpleRender::key_callback(G... |
/*
* main_test.cc
* Created on: Jan 7, 2013
* Author: lim55392
* Copyright 2012, JDS Uniphase
*/
#include <termios.h>
#include <unistd.h>
#include "leveldb/db.h"
#include "leveldb/cache.h"
#include "leveldb/comparator.h"
#include "xtreme/common/timestamp.h"
#include "xtreme/cs/cs.h"
#include "xtreme/dataservi... |
//
// Created by rafail on 5/29/20.
//
#include "state_merger.h"
#include "evaluate.h"
#include "evaluation_factory.h"
#include <stdlib.h>
#include <math.h>
#include <vector>
#include <map>
#include <stdio.h>
#include <gsl/gsl_cdf.h>
#include <string>
#include "parameters.h"
#include "lsh.h"
#include <lsh/include/psd_... |
#include <g2o/core/base_vertex.h>
#include <g2o/core/base_binary_edge.h>
#include <g2o/core/block_solver.h>
#include <g2o/core/optimization_algorithm_levenberg.h>
#include <g2o/core/auto_differentiation.h>
#include <g2o/solvers/csparse/linear_solver_csparse.h>
#include <g2o/core/robust_kernel_impl.h>
#include <g2o/type... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
#include <fstream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during init)
use_laser_ =... |
#include "Requestor.h"
//#include "MemoryController.h"
//#include "MultiChannelMemorySystem.h"
#include "RequestQueue.h"
#include "RequestScheduler.h"
#include "CommandGenerator.h"
#include <sstream>
using namespace MCsim;
Requestor::Requestor(int id, bool inOrder, const string& traceFile):
requestorID(id),
inOrder... |
#include "stm32f4xx_hal.h"
#include "my_rc522.h"
extern SPI_HandleTypeDef hspi1;
uint8_t spi_send_byte(uint8_t byte) {
unsigned char cmd[1];
unsigned char out[1];
cmd[0] = byte;
HAL_SPI_TransmitReceive(&hspi1, (uint8_t * ) & cmd, (uint8_t * ) & out, 1, 10);
return out[0];
}
void write_register... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "sniff.h"
#include "pktheaders.h"
pcap_t *setup_capture(const char *device, const char *filter) {
char errbuf[PCAP_ERRBUF_SIZE];
pcap_t* descr;
struct bpf_program fp; /* to hold compiled program */
memset(errbuf, 0, PCAP_ERRBUF... |
#include <futures/EventExecutor.h>
#include <futures/Timeout.h>
#include <futures/TcpStream.h>
#include <futures/http/HttpParser.h>
#include <futures/http/HttpController.h>
#include <futures/service/RpcFuture.h>
#include <futures/io/Signal.h>
#include <futures/io/AsyncSocket.h>
#include <futures/io/AsyncServerSocket.h>... |
#include "rocblas_test.hpp"
#include <cerrno>
#include <csetjmp>
#include <csignal>
#include <cstdlib>
#include <exception>
#include <pthread.h>
#include <unistd.h>
/*********************************************
* thread pool functions
*********************************************/
void thread_pool::worker_thread()
... |
// Copyright 2013 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 "chromeos/network/onc/onc_certificate_importer_impl.h"
#include <cert.h>
#include <keyhi.h>
#include <pk11pub.h>
#include "base/base64.h"
#incl... |
/** @file pbcStorage.cpp
This file is part of Playbook Creator.
Playbook Creator 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 ... |
/**********
This library 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 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This lib... |
/*
* libmodel
*
* Copyright (C) 2021 FoxInTango <<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, copy... |
#include <bits/stdc++.h>
#include "ppm_parser.h"
#include "db.h"
#define MAXSIZE 5000
using namespace std;
typedef bool(*operation)(uint8_t*);
const int w = 200, h = 200;
int year = 20;
string curDir;
void fail(uint8_t * img) {
cout << "Failing" << endl;
}
void caller(operation call, uint8_t * data) {
call(da... |
#include <string>
#include <vector>
#include <set>
#include <fstream>
#include <iostream>
#include <sstream>
#include <memory>
#include <regex>
#include <exception>
#include <ciso646>
extern "C" {
#ifdef WIN32
#include <direct.h>
#define GETCWD _getcwd
#else
#include <unistd.h>
#define GETCWD getcwd... |
#include "cps.h"
// CPS Objs (sprites)
int nCpsObjectBank;
int Sf2Hack = 0;
// Our copy of the sprite table
static unsigned char *ObjMem = NULL;
static int nMax = 0;
static int nGetNext = 0;
static int nMaxZValue;
static int nMaxZMask;
static int nZOffset;
// Object frames, so you can lag the O... |
#include "Animal.hpp"
#include <math.h>
using namespace anosmellya;
SmellAffinity::SmellAffinity()
: impulse(0., 0.)
, plant_effect(0.)
, herb_effect(0.)
, carn_effect(0.)
, baby_effect(0.)
, food_effect(0.)
{
}
Animal::Animal()
: pos(0., 0.)
, vel(0., 0.)
, food(0.)
, age(0)
... |
#include "IPsecAES.hh"
#ifdef USE_CUDA
#include "IPsecAES_kernel.hh"
#endif
#ifdef USE_KNAPP
#include <nba/engines/knapp/kernels.hh>
#endif
#include <nba/element/annotation.hh>
#include <nba/element/nodelocalstorage.hh>
#include <nba/framework/threadcontext.hh>
#include <nba/framework/computedevice.hh>
#include <nba/fr... |
/*
* Windows Television (WTV)
* Copyright (c) 2010-2011 <NAME> <<EMAIL>>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 2.1 of the ... |
#include <iostream>
// General mamcl includes
#include <rmagine/types/sensor_models.h>
#include <rmagine/util/StopWatch.hpp>
// CPU
#include <rmagine/simulation/SphereSimulatorEmbree.hpp>
#include <rmagine/simulation/PinholeSimulatorEmbree.hpp>
#include <rmagine/types/Memory.hpp>
// GPU
#if defined WITH_OPTIX
#incl... |
#include "baldr/nodeinfo.h"
#include "midgard/logging.h"
#include <cmath>
#include <baldr/datetime.h>
#include <baldr/graphtile.h>
using namespace valhalla::midgard;
using namespace valhalla::baldr;
namespace {
json::MapPtr access_json(uint16_t access) {
return json::map({{"bicycle", static_cast<bool>(access & kB... |
#include <mbed.h>
#include <AQM0802A.h>
#include <BME280.h>
#include <MPU9250.h>
#include <SakuraIO.h>
#include "SakuraPinNames.h"
#include "sensors.h"
#include "gps.h"
// Serial over CMSIS_DAP
Serial pc(DAP_UART_TX, DAP_UART_RX, 9600);
// GPS
Serial gps(GPS_TX, GPS_RX, 9600);
DigitalOut gps_en(GPS_EN);... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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... |
// Copyright (C) 2008 <NAME>. All Rights Reserved.
// This code is published under the Eclipse Public License.
//
// Author: <NAME>
// Dept. of Computer Science
// University of British Columbia
// September 25, 2008
#include "options.hpp"
#include "matlabexception.hpp"
// Function definitions... |
#include "DNSPacket.h"
#include "DNSRecord.h"
#include <AK/String.h>
#include <AK/BufferStream.h>
#include <AK/ByteBuffer.h>
#include <AK/HashMap.h>
#include <AK/StringBuilder.h>
#include <Kernel/Net/IPv4.h>
#include <LibCore/CConfigFile.h>
#include <LibCore/CFile.h>
#include <LibCore/CSyscallUtils.h>
#include <arpa/in... |
/**
* @file rtp/rs.cpp
* @author <NAME> <<EMAIL>>
*/
/*
* Copyright (c) 2013-2021 CESNET, z. s. p. o.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted provided that the following conditions
* are met:
*
* 1. Redistributions of so... |
//===--- RangeSelector.cpp - RangeSelector implementations ------*- 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
//
//===---------------------------... |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
// This file implements the "bridge" between Java and C+... |
#include <MxEngine.h>
namespace PhysicsSample
{
using namespace MxEngine;
/*
this big sample shows how engine physics and raycasting work
here we create big box with open top and put some physical objects inside
player allowed to shoot spheres to interact with the environment
many parameters c... |
//////////////////////////////////////////////////////////
//
// Implementation of
// CLASS AlTrack:
// Concrete class for Tracks, inherits from QvecBase
// NOTE: STILL DEPENDS ALSO ON ALPHA BANKS d:-(
//
// Author : <NAME>
// modified by: <NAME>, <NAME>, <NAME> :
// - now inherit form QvecLin... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "StringConcatenator.h"
#include <boost/optional.hpp>
#include <map>
#include <mutex>
#include <unordered_map>
#include <u... |
//@HEADER
// ***************************************************
//
// HPCG: High Performance Conjugate Gradient Benchmark
//
// Contact:
// <NAME> ( <EMAIL>)
// <NAME> (<EMAIL>)
// <NAME> (<EMAIL>)
//
// <NAME> : Version optimized for SX-Aurora
//
// ***************************************************
//@HEADE... |
/*******************************************************************************
* Copyright 2016-2018 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.apa... |
/*
This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl) with additions from <NAME> (https://github.com/chamnit/grbl)
Smoothie is free software: you can redistribute it and/or modify it under the terms of the GNU General Pu... |
/**************************************************************************/
/*!
@file BLEDiscovery.cpp
@author hathach (tinyusb.org)
@section LICENSE
Software License Agreement (BSD License)
Copyright (c) 2018, Adafruit Industries (adafruit.com)
All rights reserved.
Redistribution... |
/*
* Copyright 2012 Google 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... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkRenderTimings.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WIT... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
#include "dpll_vert_visitor.h"
#include <iostream>
using namespace coopnet;
namespace {
constexpr bool DEBUG = false;
}
DPLLVertVisitor::DPLLVertVisitor(
ReverseStack& initReverseStack,
std::shared_ptr<bool> isContradictingPtr) :
PruningSatVertVisitor<DPLLVertVisitor>(initReverseStack) {
isContradicting = ... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... |
// 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 <utility>
#include "GModel.h"
#include "OS.h"
#include "MPoint.h"
#include "MLine.h"
#include "MTriangle.h"
#include "MQuadrangl... |
/*
* Copyright 2009-2021 The VOTCA Development Team (http://www.votca.org)
*
* 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
*
* Unle... |
// Created by <NAME> on 04.03.2021
// Copyright 2021 ETH Zurich
#include <stdint.h>
#include <stdlib.h>
#include <emscripten.h>
#include <emscripten/html5.h>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <memory>
#include <sstream>
#include "distr/distrbasic.h"
#include "distr/dis... |
/*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
#include "dns.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <cstdlib>
#include <cstdio>
#include <vector>
#include <string>
#include <utility>
namespace SimpleDNS {
const static unsigned short DNS_UDP_PORT = 53;
const static std::string ... |
// Copyright 2018 Google 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... |
// Taken from the Boost.Bind library
//
// bind_stateful_test.cpp
//
// Copyright (c) 2004 <NAME>
// Copyright (c) 2013 <NAME>
//
// SPDX-License-Identifier: BSL-1.0
// 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_... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
/*********************************************************************
formats/d64_dsk.c
Commodore 4040/1541/1551 sector disk image format
http://unusedino.de/ec64/technical/formats/d64.html
*************************************************************... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2020,
* Max Planck Institute for Intelligent Systems (MPI-IS).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ar... |
#include "Camera.h"
#include "GLWindow.h"
#include "Compare.h"
#include <iostream>
Camera::Camera() {
m_nFov = 60.0f;
m_nAspect = 1.3f;
m_nNear = 0.01f;
m_nFar = 1000.0f;
m_nWidth = 1.0;
m_nHeight = 1.0f;
m_matWorld = mat4();
m_matProj = Projection(m_nFov, m_nAspect, m_nNear, m_nFar);
m_nProjectionMode = 0;... |
#include "MeshImport.h"
#include "ComponentMesh.h"
#include "GameObject.h"
#include "Application.h"
#include "ConsoleWindow.h"
#include "InspectorWindow.h"
#include "Assimp/include/cimport.h"
#include "Assimp/include/postprocess.h"
#include "Assimp/include/cfileio.h"
#include "ResourceMesh.h"
#include "Resource.h"
#in... |
/****************************************************************************
Copyright (c) 2008-2020 <NAME> (<NAME>)
github: https://github.com/kevinwu1024/ExtremeCopy
site: http://www.easersoft.com
Licensed under the Apache License, Version 2.0 License (the "License"); you may not use this file except
in complianc... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**************************************************************************************************
*** This file was autogenerated from GrRRectBlurEffect.fp; do not modify.
... |
/*
* MIT License
*
* Copyright (c) 2020 Erriez
*
* 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, m... |
#include "Texture.h"
#include <vector>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include "Debug.h"
#include "GLUtils.h"
using namespace IonEngine;
Texture*const Texture::defWhite = new Texture("white");
Texture*const Texture::defBlack = new Texture("black");
Texture*const Texture::defMRA = new Textur... |
/**************************************************************
*
* 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 y... |
////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 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.apac... |
/****************************************************************************
*
* Copyright (c) 2016 PX4 Development Team. 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. Redistri... |
//
// DrawFractalTree.cpp
//
// SoQt includes
#include <Inventor/Qt/SoQt.h>
#include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
// Coin includes
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoGroup.h>
#include<Inventor/nodes/SoLineSet.h>
#include<Inventor/nodes/SoDrawStyle.h>
#include<Inventor/node... |
/*
Copyright 2015 Nervana Systems 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 writin... |
#define _XOPEN_SOURCE
#include <stdint.h>
#include <stdio.h>
#include <wchar.h>
#include <locale.h>
namespace impl1_dump_wcwidth {
int compare_array(int *a, int *b, size_t size) {
for (size_t i = 0; i < size; i++)
if (a[i] != b[i])
return a[i] > b[i] ? 1 : -1;
return 0;
}
int save_wcwidt... |
#include "coverage_path.h"
/**
* @brief Determine properties of an area.
* @param coords The coordinates defining the area polygon.
* @param origin Returns the bottom left coordinate of the area.
* @param rotation Returns the angle which the area has to be rotated so the lower boundary is horizontal.
* @param wid... |
/*
* Copyright (c) 2009 Jice
* 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 a... |
//===-- gold-plugin.cpp - Plugin to gold for Link Time Optimization ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2013, PAL Robotics S.L.
//
// 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 reta... |
#include <iostream>
#include <fstream>
#include <cassert>
#include <climits>
#include <unordered_set>
#include <set>
#include <memory>
#include <utility>
#include <algorithm>
#include "pangenome/panread.h"
#include "pangenome/pannode.h"
#include "minihits.h"
#define assert_msg(x) !(std::cerr << "Assertion failed: " <... |
/** @file
*****************************************************************************
* @author This file is part of libsnark, developed by Clearmatics Ltd
* (originally developed by SCIPR Lab) and contributors
* (see AUTHORS).
* @copyright MIT license (see LICENSE file)
***********... |
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010-2020, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: <NAME>, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* -------... |
//===--- DAGDeltaAlgorithm.cpp - A DAG Minimization Algorithm --*- C++ -*--===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//===----------------------------------------------------------... |
/*
* Copyright (c) 2018 Metempsy Technology Consulting
* All rights reserved.
*
* Copyright (c) 2006 INRIA (Institut National de Recherche en
* Informatique et en Automatique / French National Research Institute
* for Computer Science and Applied Mathematics)
*
* All rights reserved.
*
* Redistribution and u... |
/* Copyright (c) 2008, 2020, 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 certain so... |
/*****************************************************************************\
FILE: newmenu.cpp
DESCRIPTION:
The file supports the "New" menu to create new items on the FTP server.
This currently only supports Folders but hopefully it will support other
items later.
\**************... |
/* Test File for Opt_Plan/
*
* Email questions to <EMAIL>
*
*/
#include "OptPlanTest.h"
OptPlanTest::OptPlanTest() {}
OptPlanTest::~OptPlanTest() {}
bool OptPlanTest::run(Globals* g, const vector<string>& args) {
CatalogInstance::getCatalog();
while (1) {
/* Initilize parser and objects */
... |
// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/common/native_mate_converters/blink_converter.h"
#include <string>
#include <vector>
#include "atom/common/keyboard_util.h"
#include "base/strings/string_util.h"
#incl... |
#include "../include/tracePattern.h"
/**
* Function to display the mean and variance of the dataset
*/
void TracePattern::loopAndPresentData(string &patternKey, vector<vector<string> > &numberList, string ®exPattern) {
vector<string> patternKeyMap;
int currentIndex = 0, bracketStart = 0;
if (DEBUG) {
cout <... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
// $Id: client.cpp 91825 2010-09-17 09:10:22Z johnnyw $
#include "HelloS.h"
#include "ace/OS_NS_time.h"
#include "tao/Messaging/Messaging.h"
#include "tao/Transport_Cache_Manager.h"
#include "tao/ORB_Core.h"
#include "tao/Thread_Lane_Resources.h"
#include "tao/Base_Transport_Property.h"
#include "tao/Stub.h"
#inclu... |
// Copyright (C) 2010-2015 Internet Systems Consortium, Inc. ("ISC")
//
// 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 <iostream>
#include <string>
#includ... |
#include "CfgBuilderUtils.hh"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/Analysis/CFG.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/DebugLoc.h"
#i... |
// Copyright (c) 2021 The Orbit 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 "GpuSubmissionTrack.h"
#include <absl/time/time.h>
#include <memory>
#include "App.h"
#include "Batcher.h"
#include "ClientData/TimerChain.h"... |
#include <iostream>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/filters/radius_outlier_removal.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/sea... |
#include <iostream>
#include <algorithm>
#include <climits>
#include <vector>
#include <map>
#include <deque>
#include <stdexcept>
#include "algo_dynamique.h"
#include "utils.h"
using std::map;
using std::vector;
using std::pair;
using std::make_pair;
using std::cout;
using std::endl;
// Un tableau éparse, spéciali... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
/* \author <NAME> */
// Quiz on implementing simple RANSAC line fitting
#include "../../render/render.h"
#include <unordered_set>
#include "../../processPointClouds.h"
// using templates for processPointClouds so also include .cpp to help linker
#include "../../processPointClouds.cpp"
pcl::PointCloud<pcl::PointXYZ>:... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::cout;
using std::endl;
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during init)
use_laser_ = true;
// if this is f... |
#include <cuda_runtime.h>
#include <cuda_profiler_api.h>
#include <util_quda.h>
#include <quda_internal.h>
#include <quda_cuda_api.h>
#ifdef QUDA_NVML
#include <nvml.h>
#endif
#ifdef NUMA_NVML
#include <numa_affinity.h>
#endif
static cudaDeviceProp deviceProp;
static cudaStream_t *streams;
static const int Nstream =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.