text stringlengths 5.71k 33.7k |
|---|
//
// Copyright (c) 2013 <NAME> and 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list... |
#include <iostream>
#include "BoundingBoxObject.h"
#include "CaseObject.h"
#include "ImageProcessor.h"
#include "JSONObject.h"
#include "Utils.h"
#define OBJECT_DETECTION_IMAGE_WIDTH (416)
#define OBJECT_DETECTION_IMAGE_HEIGHT (416)
#define OBJECT_DETECTION_MAX_BOUNDBOXES (30)
using namespace std;
float overla... |
/*
* solarsystem
*/
/*
Copyright (c) 2010 <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 ... |
/**
* @file Collections.cpp
* @brief 3D visualization.
* @author <NAME>
* @version $Id: Collections.cpp 6335 2012-03-22 23:13:52Z kaess $
*
* Copyright (C) 2009-2013 Massachusetts Institute of Technology.
* <NAME>, <NAME>, <NAME>,
* <NAME> and <NAME>
*
* This file is part of iSAM.
*
* iSAM is free software;... |
//
// Copyright 2013-2014, <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
/**************************************************************
*
* 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... |
// This file is part of CROWN, which is distributed under the revised
// BSD license. A copy of this license can be found in the file LICENSE.
//
// 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 PART... |
// -*- indent-tabs-mode: nil -*-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <list>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <arc/ArcLocation.h>
#include <arc/IString.h>
#include <arc/Logger.h>
#include <arc/UserConfig.h>
#include <arc/Utils.h>
#include... |
#include "graph.h"
// AssemblyGraph::AssemblyGraph(const std::string& graph_file, const std::string& read_info_file=nullptr)
// {
//
// }
int main(int argc, char* argv[])
{
AssemblyGraph* my_graph = new AssemblyGraph();
my_graph->readGraphFromAsqg("transitive.example.asqg");
// my_graph->showGraph();
my_graph... |
#include "flipr.h"
void
appendHop(vector<Flow> &flows, uint16_t sport, uint16_t dport, Hop h) {
for (int i = 0; i < flows.size(); i++) {
if (flows[i].sport == sport && flows[i].dport == dport) {
flows[i].hops.push_back(h);
return;
}
}
}
void
appendFlow(vector<Flow> &flo... |
//
// 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, merge... |
#include "client/client.h"
#include "util/common.h"
#include <boost/algorithm/string.hpp>
DECLARE_string(nodetype_file); //Deepak
#define DAMP_FACTOR 0.8
using namespace dsm;
DECLARE_string(graph_dir);
DECLARE_string(result_dir);
DECLARE_int64(num_nodes);
DECLARE_double(portion);
DECLARE_int64(maxval_source);
stati... |
#include <string>
#include <sstream>
#include <vector>
#include <numeric>
#include <math.h>
#include "CoolPropTools.h"
#include "CPExceptions.h"
#include "MatrixMath.h"
/*
Owe a debt of gratitude to http://sole.ooz.ie/en - very clear treatment of GJ
*/
void swap_rows(std::vector<std::vector<double> > *A, size_t row1... |
#include <ltStar_temp.h>
#include <voxel.h>
#include <octomap/OcTreeNode.h>
#include <gtest/gtest.h>
namespace LazyThetaStarOctree{
int search (octomap::OcTree const& octree, const octomap::OcTreeKey& key) {
// int depth = octree.getTreeDepth () ;
// generate appropriate key_at_depth for queried depth
octo... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during in... |
#include <GL/glew.h>
#include <GL/glut.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <stdexcept>
#include <string>
#include <vector>
#include "MassSpringSolver.h"
#include "Mesh.h"
#include "Renderer.h"
#include "Shader.h"
#include "UserInteraction.h"
// G L O... |
// @authors: <NAME>
// @contact: <EMAIL>
// @affiliation: Georgia Institute of Technology
// @date: Fall 2013 - Summer 2014
#include "bk_multiseeddynamic.h"
void multiseeddyn_param_maxflow(const size_t& num_vars,
const size_t& num_pairwise_edges,
... |
#include "ModulePlayer.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "ModuleInput.h"
#include "ModuleRender.h"
#include "ModuleWindow.h"
#include "ModuleParticles.h"
#include "ModuleAudio.h"
#include "ModuleCollisions.h"
#include "ModuleFadeToBlack.h"
#include "ModuleFonts.h"
#include "ModuleEnemies... |
/*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE USE OF... |
#include <math.h>
#include <limits.h>
#include "AdaBNO055.h"
BNO055::BNO055(PinName SDA, PinName SCL) : _i2c(SDA,SCL){
_i2c.frequency(400000);
address = BNOAddress;
accel_scale = 0.001f;
rate_scale = 1.0f/16.0f;
angle_scale = 1.0f/16.0f;
temp_scale = 1;
}
bool BNO055::begin(char mode)
{
unsigned char s... |
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
... |
/****************************************************************************
* Copyright (c) 2018-2019 by the Cabana authors *
* All rights reserved. *
* *
* This ... |
/*
* PWM Test Circuit Rev-1.cpp
*
* Created: 03-02-2019 16:25:15
* Author : RHITVIK
*/
#define F_CPU 1000000UL
#define LightSwitch 3
#define ReadWrite 4
#define BiPolarMood 5
#define MrLCDsCrib PORTD
#define DataDir_MrLCDsCrib DDRD
#define MrLCDsControl PORTB
#define DataDir_MrLCDsControl DDR... |
/*
==== Author:
<NAME> (<EMAIL>)
Visual Geometry Group,
Department of Engineering Science
University of Oxford
==== Copyright:
The library belongs to <NAME> and the University of Oxford.
No usage or redistribution is allowed without explicit permission.
*/
#include "det_ransac.h"
#include <Eigen/Dense>
#include "... |
#include <iostream>
#include <sstream>
#include <array>
#include <list>
#include <SFML/Graphics.hpp>
#if defined(_WIN32) || defined(WIN32)
#include <windows.h>
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
#endif
#define WIDTH 640
#define HEIGHT 480
//french : fortune, aptitude, maitri... |
/*
* Copyright (c) 2012, Clearpath Robotics, 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, t... |
#include <iostream>
#include <csignal>
#include <thread>
#include <cstdlib>
#include <getopt.h>
#include "base64.hpp"
#include "controller.hpp"
#include "json.hpp"
#include "tai.h"
using json = nlohmann::json;
volatile int exit_application = 0;
static const std::string PLATFORM_MODULE_NAME = "goldstone-tai";
sta... |
#include "abstraction/abstraction.h"
#include "gurobi_c++.h"
#include "utils/constants.h"
#include "utils/polyhedra_optimizer.h"
#include "utils/utilities.h"
#include <chrono>
#include <future>
#include <utility>
LipschitzFunction getLipschitzFunction(
const Image &img, const Pixel<double> &pixel,
const HyperB... |
// Copyright (c) 2012 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.
// Software adjust volume of samples, allows each audio stream its own
// volume without impacting master volume for chrome and other applications.
/... |
#include <vector>
#include <map>
#include <string>
#include <thread>
#include <chrono>
#include <cstring>
#include <cstdio>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <boost/algorithm/string.hpp>
#include "caffe/common.hpp"
#include "caffe/net.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/... |
/*
This file is am_fft.h - a single-header library for limited fast fourier transforms.
Copyright (c) 2018 <NAME>
Distributed under the MIT License:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Softwar... |
/*
Copyright 2014-2016 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 writing, s... |
#include <test_tools.hpp>
#include <apcf.hpp>
#include <apcf_hierarchy.hpp>
#include <apcf_templates.hpp>
#include <iostream>
#include <fstream>
#include <set>
#include <cstring>
namespace {
using apcf::Config;
using apcf::Key;
constexpr auto eFailure = utest::ResultType::eFailure;
constexpr auto eNeutral = ... |
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
uint8_t Vreg[16] = { 0x0 };
uint16_t Ireg = 0x0;
uint16_t Sreg[17] = { 0x0 };
uint16_t* SPointer = Sreg;
uint16_t PC = 0x200;
uint8_t delay_timer = 0x0;
uint8_t sound_timer = 0x0;
bool isExit = false;
bool vram[32][64];
std::string frame;
... |
/*----------------------------------------------------------------------
PuReMD - Purdue ReaxFF Molecular Dynamics Program
Copyright (2010) Purdue University
<NAME>, <EMAIL>
<NAME>, <EMAIL>
<NAME>, <EMAIL>
<NAME>, <EMAIL>
Please cite the related publication:
<NAME>, <NAME>, <NAME>, <NAME>,
"Parallel... |
/*
Copyright 2019 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense,... |
#include "console.h"
#include "graphics.h"
#include "gameloop.h"
#include <fmt/format.h>
using namespace G;
void G::renderConsole() {
glDisable(GL_DEPTH_TEST);
int i = 0;
for(std::list<std::string>::const_iterator it = history.cbegin();
it != history.end();
i++, it++) {
renderLine(*... |
// MIT License
// Copyright (c) [2017] [<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... |
/****************************************************************************
* Copyright (c) 2021, CEA
* 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 retai... |
// (c) 2020 <NAME>
// This code is licensed under MIT license (see LICENSE for details)
// Inspired on LINK/2012 GTA SA cheat finder
#include "crc32.h"
#include <algorithm>
#include <array>
#include <atomic>
#include <chrono>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <memory>
#include <mutex>
#... |
/* This file is part of the KDE project
* Copyright 2008-2009 <NAME> <<EMAIL>>
* Copyright (C) 2007 <NAME> <<EMAIL>>
*
* 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
* ver... |
/*!
* *****************************************************************************
* \file genDepthFromSBS.cpp
* \author moennen
* \brief
* \date 2018-10-01
* *****************************************************************************/
#include "utils/imgFileLst.h"
#include "utils/cv_utils.h"
#incl... |
/*references:
https://dsp.stackexchange.com/a/2237
https://stackoverflow.com/a/9592454
*/
/*
* orientation-> poll from gvr (with some usecs ahead)
* rotation rate -> do nothing, steamvr is fine
* rotational acc -> do nothing
* position -> old_pos + old_vel * delta t, send to steamvr
* lin velocity -> old_vel + o... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software ... |
/*
BASIC GLFW + GLXW WINDOW AND OPENGL SETUP
------------------------------------------
See https://gist.github.com/roxlu/6698180 for the latest version of the example.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#if defined(__linux) || defined(_WIN32)
# include <GLXW/glxw.h>
#endif
#d... |
/*
* Copyright (c) 2012 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... |
/*###############################################################################
#
# Copyright 2020 NVIDIA Corporation
#
# 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, ... |
// Copyright © 2012, Université catholique de Louvain
// 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... |
/*
* Copyright 2017 <NAME>
*
* 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 ... |
/*
* Copyright (c) 2013-2021, The OSKAR Developers.
* See the LICENSE file at the top-level directory of this distribution.
*/
#include "binary/oskar_binary.h"
#include "log/oskar_log.h"
#include "mem/oskar_binary_read_mem.h"
#include "settings/oskar_option_parser.h"
#include "utility/oskar_get_error_string.h"
#inc... |
/*!
* @section LICENSE
*
* (C) Copyright 2011~2014 Bosch Sensortec GmbH 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/LI... |
/*
* Copyright (c) 2008-2021
* Nakata, Maho
* 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, th... |
//Framework Headers
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
//TrackingTools Headers
// Famos Headers
#include "FastSimulation/Event/interface/FSimEvent.h"
#include "FastSimulation/ParticlePropagator/interface/ParticlePropagator.h"
#include "Fa... |
#include "gtest/gtest.h"
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
TEST(complement, leetcode) {
class solution {
public:
static int complement(int num) {
int mask = 0;
while (mask < num) {
... |
// Licensed under a 3-clause BSD style license - see LICENSE.rst
#include <cmath>
#include <cstdint>
#include <limits>
#include <utils.h>
#include <tiles.h>
#include <targets.h>
#include <assert.h>
namespace fba = fiberassign;
namespace fbg = fiberassign::geom;
std::string fba::target_string(uint8_t type) {
s... |
// ExampleConsole.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
... |
/*
* Copyright (c) 2019-2020, 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 ... |
/*
* test-pipe-manager.cpp -test pipe manager
*
* Copyright (c) 2016 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/licens... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013 ResiliNets, ITTC, University of Kansas
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
... |
/*
* Copyright (c) 2013-2015 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the ... |
/**
* Copyright (C) 2020 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... |
/*************************************************************************************************
*
* File: Config.cpp
*
* Description: Implements the configuration objects
*
* Copyright (c) 2010 <NAME>. All rights reserved.
*
********************************************************************************************... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#include "cbase.h"
#ifdef CLIENT_DLL
#include "c_hl2mp_player.h"
#include "prediction.h"
#define CRecipientFilter C_Reci... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2007-2012 <NAME>, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 <NAME>, Paris, France.
// Copyright (c) 2009-2012 <NAME>, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (geolib/GGL),... |
/*
Copyright (c) 2005-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 la... |
#include <lalr/ParserStateMachine.hpp>
#include <lalr/ParserState.hpp>
#include <lalr/ParserTransition.hpp>
#include <lalr/ParserSymbol.hpp>
#include <lalr/ParserAction.hpp>
#include <lalr/LexerStateMachine.hpp>
#include <lalr/LexerState.hpp>
#include <lalr/LexerTransition.hpp>
#include <lalr/LexerAction.hpp>
using n... |
//
// Created by kellerberrin on 4/5/20.
//
#include <kgl_variant_factory_vcf_evidence_analysis.h>
#include "kgl_variant_db_freq.h"
#include "kgl_analysis_null.h"
#include "kgl_variant_sort.h"
#include "kel_distribution.h"
namespace kgl = kellerberrin::genome;
// Setup the analytics to process VCF data.
bool kgl:... |
//===- bolt/Passes/FrameAnalysis.cpp --------------------------------------===//
//
// 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
//
//===---------------------------... |
int H2,Em24sy
, /*ku*/KYT
,
m
,SX , l83BY
,HZK,
krf ,tNIK
,/*hl8d*/plJ,J5a ,
XRVEEMH,pb
,
iXvD,
iz //ip
,js
,QecI, k3z ,wt4 ,G4T
,uZDp
, YB,
d6c
,
j6U ,
am,
er ,G8gp ,
i1ul
,
fWk,VI ;void//tx6
f_f0
(){if
(
true ){{
if/*uu*///Yp
(/*bUt*/ true
) for(int i=1 ;
i< 1
;++i
){{
{} } //fVbe
{
//
... |
// -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// <NAME>, U.S. Geological Survey
// <NAME>, GNS Science
// <NAME>, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright ... |
/******************************************************************************\
* Copyright (c) 2004-2011
*
* Author(s):
* <NAME>
*
******************************************************************************
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of t... |
// Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/
//
// SPDX-License-Identifier: BSD-2-Clause
#include <errno.h>
#include <float.h>
#include <locale.h>
#include <monetary.h>
#include "gtest/gtest.h"
#define TEST_STRFMON(out, ...) \
do { ... |
/*************************************************************************/
/* Xania (M)ulti(U)ser(D)ungeon server source code */
/* (C) 2021 Xania Development Team */
/* See merc.h and README for original copyrights */
/***************... |
/****************************************************************************
* Copyright (C) 2020 RoboMaster.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the ... |
#include "QEvent.hpp"
#include "../convert/callable.hpp"
#include "../convert/string.hpp"
#include "../thread.hpp"
#include "QSize.hpp"
std::string QEvent_type(QEvent* event);
std::string QEvent_tostring(QEvent* event);
void lua::QEvent_metatable(lua_State* const state, const int pos)
{
lua::index mt(state, pos);... |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <cstdlib>
#include <iostream>
#include <memory>
#include <random>
#include <un... |
/**
* Physically based rendering.
* Pressing 'p' will switch to control the rusted sphere.
* Pressing space + 'p' will switch to control the 7x7 spheres.
* Drag and scroll to change their orientations and positions.
*/
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "base/glsupport.h"
#include "base/quat.h"... |
#include <stdlib.h>
#include <math.h>
#include "rwg.h"
using namespace rwg;
world::~world() {
clear();
}
world::world(size_t w, size_t h) {
this->w = w;
this->h = h;
elevation =NULL;
tectonics =NULL;
density =NULL;
rainfall =NULL;
drainage =NULL;
t... |
#include "src/algo.h"
#include "src/tables/cff.h"
#include "tables.h"
using namespace CFF;
namespace DictOperator {
static const quint8 BLUE_VALUES = 6;
static const quint8 OTHER_BLUES = 7;
static const quint8 FAMILY_BLUES = 8;
static const quint8 FAMILY_OTHER_BLUES = 9;
static const quint8 STD_HW... |
//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 ... |
/*
Copyright 2005-2014 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks. Threading Building Blocks is free software;
you can redistribute it and/or modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundat... |
#include <unistd.h>
#include <time.h>
#include <string>
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <set>
#include <FatUtils.h>
#include "FatFilename.h"
#include "FatEntry.h"
#include "FatDate.h"
#include "FatSy... |
#include <stdint.h>
#include <string>
#include <sstream>
#include <iostream>
#include <map>
#include <string.h>
#include <stdlib.h>
#include <zmq.h>
#include <errno.h>
#include <memory>
#include <chrono>
#include <thread>
#include <condition_variable>
#include <mutex>
#include "common/extensions/cudart_10.1_utilities.h... |
#include <ctype.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
namespace xla
{
void EigenMatVecF32(float* out, float* lhs, float* rhs, long long m, long long n, long long k, int transpose_lhs, int transpose_rhs)
{
assert(0);
}
void EigenMatVecF64(double* out,... |
/*
AVR In-System Programming over WiFi for ESP8266
Copyright (c) <NAME> <<EMAIL>>
Original version:
ArduinoISP version 04m3
Copyright (c) 2008-2011 <NAME>
If you require a license, see
http://www.opensource.org/licenses/bsd-license.php
*/
#include <Arduino.h>
#include <SPI.h>
#include <pgmspace.h... |
#include <algorithm>
extern "C" {
#include <sodium.h>
}
#include <iostream>
#include <fstream>
#include <lokimq/hex.h>
#include <lokimq/base32z.h>
#include <string_view>
#include <string>
#include <list>
#include <array>
#include <cstring>
#include <optional>
#include "common/fs.h"
std::string_view arg0;
using namesp... |
/*=============================================================================
TexGen: Geometric textile modeller.
Copyright (C) 2019 <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 ve... |
// Copyright (C) 2020 Intel Corporation
//
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <syslog.h>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <iostream>
#include <thread>
#include <chrono>
... |
// sodiumtester.cpp -- Test functions for the test harness SodiumTester
//
// ISC License
//
// Copyright (C) 2018 <NAME> <<EMAIL>>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permis... |
//
// WebCheck Mail Agent
//
// A user specifies that they are to be notified via email when a web checked
// object (usually a page) changes.
//
// When the subscription is the delivery agent will call the mail agent upon completion
// with a temporary ISubscriptionItem
//
// <NAME> (julianj), January 8, 19... |
#include "Game.h"
#include "Window.h"
#include "WindowParams.h"
#include "DeltaTime.h"
#include "Entity.h"
#include "StateManager.h"
#include "InputManager.h"
#include "AI.h"
#include "Sound.h"
#include "UI.h"
// SFML INCLUDES
#include "SFML/Window/Mouse.hpp"
#include "SFML/Window/Keyboard.hpp"
// C++ / Windows inclu... |
#include "Limits2D.hh"
Limits2D::Limits2D(const TString & indir, const TString & infilename, const Bool_t doobserved,
const TString & limitconfig, const TString & era, const TString & outtext)
: fInDir(indir), fInFileName(infilename), fDoObserved(doobserved),
fLimitConfig(limitconfig), fEra(era), fOutText(o... |
/*
* Copyright 2003-2018. All rights reserved.
* Distributed under the terms of the BSD license.
*
* Author:
* Sikosis, <EMAIL>
*
* BeRDP is a GUI for RDesktop
*/
#include <Alert.h>
#include <Application.h>
#include <Button.h>
#include <CheckBox.h>
#include <Directory.h>
#include <Entry.h>
#include <File.h>
#i... |
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.... |
#include "../Features.h"
bool Settings::Radar::enabled = false;
float Settings::Radar::zoom = 16.f;
bool Settings::Radar::enemies = false;
bool Settings::Radar::allies = false;
bool Settings::Radar::bomb = false;
bool Settings::Radar::defuser = false;
bool Settings::Radar::legit = false;
bool Settings::Radar:... |
/// @file
///
/// Actual algorithm implementing delay solver tool
///
/// @copyright (c) 2007 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// <EMAIL>
///
/// This file is part of the ASKAP soft... |
#include "RecoParticleFlow/PFClusterTools/interface/LinkByRecHit.h"
#include "DataFormats/Math/interface/normalizedPhi.h"
#include "DataFormats/ParticleFlowReco/interface/PFRecHit.h"
#include "TMath.h"
using BVector2D = Basic2DVector<double>;
using Vector2D = Basic2DVector<double>::MathVector;
namespace {
const Ve... |
#include <cstdio>
#include <cstring>
#include <sstream>
#include <iostream>
#include <typeinfo> // for using "bad_cast"
#include <boost/dynamic_bitset.hpp>
#include "Util/CFile.h"
#include <cl-util/debug_stream.h>
#include <cl-util/table.h>
#include <tael/Log.h>
#include <tael/FdLogger.h>
#include "DataManager.h"
#... |
/*
Copyright 2015 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.