text stringlengths 8.71k 38.4k |
|---|
#include <iostream>
#include <string>
#include <cmath>
// gl3w
#include <GL/gl3w.h>
// GLFW
#include <GLFW/glfw3.h>
#include <cstring>
#define M3D_PI (3.141562954f)
#define GLT_ATTRIBUTE_VERTEX 1
using namespace std;
float gfpProjectMatrix[16];
float gfpModelViewMatrix[16];
float gfpCameraFrame[16];
float gfpObj... |
/*
* SiS 7018, Trident 4D Wave DX/NX, Acer Lab M5451 Sound Driver.
* Copyright (c) 2002, 2008-2011 S.Zharski <<EMAIL>>
* Distributed under the terms of the MIT license.
*
* Copyright for ali5451 support:
* (c) 2009, <NAME> (krzysiek.bmkx_gmail_com).
*/
#include "Mixer.h"
#include <string.h>
#include "Device... |
#include <ros/ros.h>
#include <ros/package.h>
#include <mrs_lib/param_loader.h>
#include <cv_bridge/cv_bridge.h>
#include <mrs_msgs/ImagePointsWithFloatStamped.h>
#include <mrs_lib/transformer.h>
#include <mrs_msgs/String.h>
#include <std_msgs/Float32.h>
#include <uvdar_core/RecMsg.h>
#include <string>
#include <cmath>... |
// --------------------------------------------------------------------------------
// MIT License
//
// 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 withou... |
#include "../include/progressive/constants.h"
#include "../include/progressive/incremental.h"
#include "../include/util/binary_search.h"
#include "../include/util/hybrid_radix_insert_sort.h"
void range_query_sorted_subsequent_value(int64_t *index, size_t index_size, int64_t low, int64_t high, int64_t min,
... |
#include <ncurses.h>
#include <vector>
#include <string>
#include "vars.h"
#include "rendering.h"
////// START MENU
// Create a struct that holds option properties
struct menu_options
{
std::string description;
// Int if the option should have a value
int display_value;
// Text if the option should have differen... |
/*
* CiderPress
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
* See the file LICENSE for distribution terms.
*/
/*
* Reformat hi-res graphics into a bitmap.
*/
#include "StdAfx.h"
#include "HiRes.h"
/*
* Hi-Res image format:
*
* <16-bit load address> [DOS 3.3 only]
* <16-bi... |
#include "input/Input.hpp"
#include "system/System.hpp"
#include "system/Config.hpp"
#include "system/Window.hpp"
#include "resources/ResourcesManager.hpp"
#include "input/controller/RawController.hpp"
#include "graphics/Framebuffer.hpp"
#include "graphics/GPU.hpp"
#include "Common.hpp"
/**
\defgroup Contr... |
//==============================================================================
// Copyright (c) 2010-2017 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief DX11 internal counter definitions for GFX6
//==========================================================... |
#include "rs-format/unicode.hpp"
#include "rs-unit-test.hpp"
#include <stdexcept>
#include <string>
using namespace RS::Format;
using namespace std::literals;
void test_rs_format_unicode_implementation_details() {
using namespace RS::Format::Detail;
TEST_EQUAL(hex_data("", 0), "");
TEST_EQU... |
#include "GUI.hpp"
#include "../config.hpp"
#include "../solver/FloatMatrix2D.hpp"
#include "../solver/FluidSolver2D.hpp"
#include "Leap.h"
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
GUI::GUI(QWidget *parent,
QString name,
Print *p,
Config &configurationDatas,
bool dr... |
/************************** TRICK HEADER ***********************************************************
@copyright Copyright 2019 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
PURPOSE:
(Classes for the GUNNS Gas Fan M... |
#include "TerrainGen.h"
using namespace ftg;
// pastes the content of one map onto another in an additive fashion
// **NOTE** that the source size plus offset must not exceed the destination size
void addToMap(SingleLayer& source, SingleLayer& destination, short x_offset, short y_offset, short source_size){
for (shor... |
/*
* Copyright (c) 2009 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notice, ... |
#include "app.h"
void App::initResultBufferOnDevice()
{
params.subframe_index = 0;
result_bitmap.allocateDevicePtr();
accum_bitmap.allocateDevicePtr();
normal_bitmap.allocateDevicePtr();
albedo_bitmap.allocateDevicePtr();
depth_bitmap.allocateDevicePtr();
params.result_buffer ... |
// Copyright 2019 The MediaPipe 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/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
#include "application_solar.hpp"
#include "launcher.hpp"
#include "utils.hpp"
#include "shader_loader.hpp"
#include "model_loader.hpp"
#include "texture_loader.hpp"
#include "material.hpp"
#include <glbinding/gl/gl.h>
// use gl definitions from glbinding
using namespace gl;
//dont load gl bindings from glfw
#define... |
/*
* 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 GrUnrolledBinaryGradientColorizer.fp;... |
/*-------------------------------------------------------------------------------
BARONY
File: items.hpp
Desc: contains names and definitions for items
Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved.
See LICENSE for details.
-----------------------------------------------------------------------... |
/*
-- MAGMA (version 2.2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2016
@author <NAME>
*/
#include <stdio.h>
#include "magma_v2.h"
#include "testings.h"
int gStatus;
void check_( bool flag, const char* msg, int l... |
#include "ConnectionNovenaRF7.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
#include <fstream>
#include <chrono>
#include <thread>
#include "IConnection.h"
#include "ErrorReporting.h"
#if defined(__GNUC__) || defined(__GNUG__)
#include <unist... |
// Copyright (c) 2018 Baidu, 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
//
// Unless required by applic... |
//
// Created by wuyuncheng on 10/10/19.
//
#include "client.h"
#include <fstream>
#include <sstream>
#include <string>
#include <random>
#include <stack>
#include <infra/ConfigFile.hpp>
#include "libhcs.h"
#include "gmp.h"
#include <comm/Comm.hpp>
#include "../utils/util.h"
#include "../utils/pb_converter.h"
#include... |
int
NVG
,
QN0ao ,Ivjgm ,
B3U4bV /*9bK9*/, nV
,MWuE
,
o7q ,
Iq
,
kY,/*UaiTT*/nMSyWQ //S
,
ca , Sd , TJbCPH ,
bnW,
kE5s ,N ,GHrC, s
,G2 ,wpyq2,
/*iujmf*/OqU , o4im
,PZyh,//k
S
, EpvAi
,JWGM
,
EoxZ9b,
vgF ,t8Z,
eYR5r,hr
,A4cL , NB9,/**/
rB , tfD
, L,WUA
,
Ohy ,
btP, j
;
void f_f0()
{ ;;... |
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <time.h>
#define GLH_NVEB_USING_NVPARSE
#define GLH_EXT_SINGLE_FILE
#include <glh_nveb.h>
#include <glh_extensions.h>
#include <glh_glut.h>
#include "nvparse.h"
#include "read_text_file.h"
#include "tsplat.h"
#include "viewer.h"
#include "defines.h"
#inc... |
/*
Copyright (c) 2003-2013 uim Project http://code.google.com/p/uim/
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
... |
/*
* Copyright (c) 2006-2009 <NAME> http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* inclu... |
//===- RegisterInfoEmitter.cpp - Generate a Register File Desc. -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* Copyright 2020 Associated Universities, Inc. Washington DC, USA.
*
* 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 re... |
//
// Tracker time cluster finder
//
//
// Original author <NAME> and <NAME>
//
// framework
#include "art/Framework/Principal/Event.h"
#include "fhiclcpp/ParameterSet.h"
#include "art/Framework/Principal/Handle.h"
#include "art/Framework/Core/EDProducer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art_roo... |
#include "engine.hpp"
#include <chrono>
#include "httplib.h"
Engine::Engine()
: host_("translate.googleapis.com"), port_(80), languages_()
{
// Ctor
loadLanguages();
}
std::set<Engine::LangInfoAndLocale, Engine::LangComp> Engine::getLanguages()
{
return languages_;
}
unsigned Engine::reducedLevel(unsigned a, s... |
/*
* PixelPusher.cpp
*
* Created by <NAME>
* The MIT License (MIT)
* Copyright (c) 2015 Nocte Studio Ltd.
*
* www.nocte.co.uk
*
*/
#include "cinder/app/App.h"
#include "cinder/Utilities.h"
#include "PixelPusher.h"
#include "PusherDiscoveryService.h"
using namespace ci;
using namespace ci::app;
using nam... |
//
// MarkPad: main class
// MarkPad Project
//
// (c) <NAME> - http://www.telecom-paristech.fr/~elc
// (c) <NAME> - http://brunofruchard.com/
// Copyright (c) 2017/18. All rights reserved.
//
#include <unistd.h>
#include <iostream>
#include <chrono>
#include "ccuty/ccstring.hpp"
#include "Conf.h"
#include "MarkP... |
// Copyright 2020 - NVIDIA Corporation
// SPDX-License-Identifier: MIT
/*
* Modified by MACNICA Inc.
*/
//#include "post_process.cpp"
#include "post_process.hpp"
#include <gst/gst.h>
#include <glib.h>
#include <stdio.h>
#include "gstnvdsmeta.h"
#include "nvdsgstutils.h"
#include "nvbufsurface.h"
#include <vect... |
#include "../ft_tester/tester_headers.hpp"
void map_all_test() {
std::map<std::string, int> std_map;
std_map["Morpheus"] = 1;
std_map["Neo"] = 777;
std_map["Agent Smith"] = 66;
std_map["Trinity"] = 77;
std_map["Niobe"] = 0;
ft::map<std::string, int> ft_map;
ft_map["Morpheus"] = 1;
... |
#include <string>
#include <cstring>
#include <sstream>
#include <vector>
#include <array>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <ctime>
#include <climits>
#include <map>
#include <deque>
#include "utils.h"
#include "crisprutil.h"
using namespace std;
CrisprUtil::Cri... |
int n,
BRjQ
, fyT
, jXH0yv
//vu86x
,//q
Tvfk ,KKfrr ,
q3l1x
,DMn,SP1 ,xWI
, vU
,
JMCYg,eNT,
Tfhs ,
oGh ,
rgNTm ,//O
//n
kRl
,sGY ,
L2NpT
,
wq,
ChA//b5A1y
,G7
,FEhF3 ,w,/**/
Kpf
,i,A
, MVBoZ,jxScm, NmHa,MtRPIi//
, jB, /*b*/BLo//
,//AQcf
s4
,
Z, UW,
cDLM, //tz
pRT,
gV
,
ANQ
, M ,w5,p
;
... |
//-----------------------------------------------------------------------------
// rocm_example.cpp is a minimal example of using PAPI with rocm. It calls a
// function from rocblas; the sgemm routine (single precision general matrix
// multiply), to demonstrate using papi to read a performance counter from an
// execu... |
/**
** Copyright (c) 2014 Illumina, Inc.
**
** This file is part of Illumina's Enhanced Artificial Genome Engine (EAGLE),
** covered by the "BSD 2-Clause License" (see accompanying LICENSE file)
**
** \author <NAME>
**/
#include <fstream>
#include <boost/iostreams/device/file.hpp>
#include "common/Exceptions.h... |
/* mpicoder.c - Coder for the external representation of MPIs
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
* 2008 Free Software Foundation, Inc.
* Copyright (C) 2013, 2014 g10 Code GmbH
*
* This file is part of Libgcrypt.
*
* Libgcrypt is free software; you can redistribute it and/or modify... |
/*
* DataLoaderCellDetClass.cpp
*
* Author: <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
* Institution: Medical University of Graz and Graz University of Technology, Austria
*
*/
#include "DataLoaderCellDetClass.h"
// definition of the static member variable. important for accessing it wihtin a non-static method!!!
s... |
#include "mesh.h"
#include "mshf.h"
#include "graph.h"
#include "args_parser.h"
#include "geometry.h"
#include "simulation.h"
#include "vector.h"
#include "machine.h"
#include "json/reader.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <climits>
#include <string>
#include <fstream>
#include <stre... |
/**
* Copyright (2013) JDS Uniphase. All rights reserved.
*
* Author: <NAME>
*
* Designed by <NAME> and <NAME>
*/
#include <boost/foreach.hpp>
#include <log4cxx/logger.h> // NOLINT(build/include_order)
#include "xtreme/common/event.h"
#include "xtreme/common/event_frame.h"
#include "xtreme/common/pub_subs.h"
#... |
//
// bumpStrings.cpp
// Bump
//
// Created by <NAME> on 11/16/12.
// Copyright (c) 2012 <NAME>. All rights reserved.
//
// C++ headers
#include <iomanip>
// Bump headers
#include <bump/String.h>
// Forward declarations
void creationAndCasting();
void formatting();
void comparison();
void manipulation();
void ex... |
#include <iostream>
#include <cmath>
#include <fstream>
#include <vector>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <GL/glut.h>
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp... |
#include "ExperimentHelper.h"
#include "DD1CStochasticCrackingStrategy.h"
#include "DD1RStochasticCrackingStrategy.h"
#include "MDD1RStochasticCrackingStrategy.h"
#include "CrackingStrategy.h"
#include "LazyCrackingStrategy.h"
#include "ModularCKDTree.h"
#include "HybridKDTree.h"
#include "HybridKDTree_level.h"
#includ... |
// cv_code.cpp : Objective Tracking and Recognition Subsystem
// cvui.h : GUI support lib.
#include "stdafx.h"
#include "PSEyeDemo.h"
#define CVUI_IMPLEMENTATION
#include <Windows.h>
#include <opencv2/opencv.hpp>
#include "opencv2/highgui.hpp"
#include <opencv2/video/tracking.hpp>
//#include <opencv2/ocl/ocl.hpp>
... |
/*
Copyright 2007-2008 Adobe Systems Incorporated
Copyright 2018 <NAME>
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html )
Goal: Test compiler optimizations related to division and modulo calculations.
Assumptions:
1) T... |
/*****************************************************************************
*
* NXP Confidential Proprietary
*
* Copyright (c) 2013-2018 NXP
* All Rights Reserved
*
*****************************************************************************
*
* THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
* IMPLIE... |
int
p2 ,
AX7
, sRU,Qy
,A20uy ,//yY0
F,d4 , //VnMn
pG
,m66oGi
,Dr, ZbZV , Ar
,wa,
Gzw ,jp48 ,
GR,
izLN ,e ,At
/*7d*/,
a664 ,
rGvl
, HrtX7, U,Qc , qeL
,/*3xV*/b51, E/*WWTw7bg*/
,wkeb, jMp,tXM
//8Z
, BGQiWw
, ws
, ey ,
Q9b ,zSC//rs7
,
L3Cd8Z/*w7S*/,/*28*/jw ;//JP
void f_f0 ()
{ return
; {int jSd ... |
/**
* -==== Mart-Training.cpp
*
* Mart Multi-Language LLVM Mutation Framework
*
* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*
* \brief Main source file that implements model training
* for Smart Selection.
*/
#include <alg... |
#include <cstdlib>
#include <SDL/SDL.h>
#include <cmath>
#include <ctime>
int max(int x, int y) {
return x > y ? x : y;
}
int min(int x, int y) {
return x < y ? x : y;
}
struct Cell {
struct {
struct {
bool on;
Uint32 color;
} left, right, up, down;
} conn;
bool filled;
bool debug;
Uint32 color;
};
... |
/*
* This file is a part of Pocket Heroes Game project
* http://www.pocketheroes.net
* https://code.google.com/p/pocketheroes/
*
* Copyright 2004-2010 by <NAME> and <NAME> (iO UPG)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... |
/*
* 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 ... |
/**
* 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 "ModelMerger.h"
#include "AnnoUtils.h"
#include "ClassAssemblingUtils.h"
#include "DexUtil.h"
#include "MethodReference.... |
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2020, WWIV Software Services */
/* */
/* License... |
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
#include "oper/instance_manager.h"
#include <boost/bind.hpp>
#include <boost/functional/hash.hpp>
#include <boost/filesystem.hpp>
#include <boost/tokenizer.hpp>
#include <sys/wait.h>
#include "cmn/agent.h"
#include "db/db.h"
#include "io/event_m... |
// Everbridge Report
#include "stdafx.h"
#include "Everbridge.h"
#include "AddressTbl.h"
#include "AssgnPrefTbl.h"
#include "CityStateTbl.h"
#include "EntityTbl.h"
#include "LocationPrefTbl.h"
#include "MemberList.h"
#include "MemberTbl.h"
#include "NotePad.h"
#include "RWracesDB.h"
#include "RWracesDBView.h"
#includ... |
/*
Copyright (c) 2003, 2013, 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 as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... |
/*
* Copyright (C) 2002-2011 The DOSBox Team
*
* 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.
*
* This p... |
/*
* Copyright 2019 Xilinx Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
/*
* Copyright (c) 2020 Bitdefender
* SPDX-License-Identifier: Apache-2.0
*/
#include "hvmisettings.h"
#include "hvmidaemon.h"
#include "bdvmi/backendfactory.h"
#include "config.h"
#include <introcore.h>
#include <fstream>
#include <functional>
#include <introcore.h>
#include <json/reader.h>
#include <sstream>
#incl... |
//
// BidirSTP.cpp
// hog2 glut
//
// Created by <NAME> on 1/30/17.
// Copyright © 2017 University of Denver. All rights reserved.
//
#include "BidirSTP.h"
#include "MNPuzzle.h"
#include "NBS.h"
#include "IDAStar.h"
#include "MM.h"
#include "BSStar.h"
#include "TemplateAStar.h"
MNPuzzleState<4, 4> GetKorfInstance... |
/*
* Copyright (c) 2017, <copyright holder> <email>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this... |
/*
<NAME>
Cisco Systems, Inc.
*/
/*
Copyright (c) 2015-2015 Cisco 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... |
#include "Cell.h"
int Cell::_n = 0;
static int auto_id = 10000;
/**
* @brief Returns an auto-generated unique Cell ID.
* @details This method is intended as a utility method for users writing
* OpenMOC input files. The method makes use of a static Cell
* ID which is incremented each time the ... |
/**
* Copyright (c) 2014, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "Pool... |
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include "highlevel.hpp"
#include "common.hpp"
#include "enums.hpp"
#include "structs.hpp"
#include <command.hpp>
#include <modules.hpp>
#include <kdb.h>
#include <kdbease.h>
#include <kdbhelper.h>
#include <kd... |
/*
Copyright 2007-2009 WebDriver committers
Copyright 2007-2009 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 require... |
//
// SkyNet Project
// Copyright (C) 2018 by Contributors <https://github.com/Tyill/skynet>
//
// This code is licensed under the MIT License.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Sof... |
////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of NCrystal (see https://mctools.github.io/ncrystal/) //
// ... |
#include "v3d_message.h"
#include <QDebug>
#include <QtGui>
#include <QtNetwork>
#include <QRegExp>
#include <stdlib.h>
#include "s2Controller.h"
#include "v3d_message.h"
#include "s2UI.h"
#include <iostream>
using namespace std;
S2Parameter::S2Parameter():
parameterName(""),
currentValue(0.0... |
#include <cstdio>
#include <cstring>
#include <cassert>
#include <sstream>
#include <iomanip>
#include <string>
#include "RobotVM.h"
#include "VMInstr.h"
#include "Typedefs.h"
#include <exception>
inline int mod (int a, int b) {
if (b < 0)
return mod(a, -b);
int ret = a % b;
if(ret... |
//
// Created by <NAME> on 01.06.2019.
//
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <cstring>
#include <algorithm>
#include <cstdlib>
#include <chrono>
#include <random>
#include <dirent.h>
#include "Proces.h"
void ProcessInterface::manageInput() {... |
#include "DAMICDetectorOutterLead.hh"
#include "G4Material.hh"
#include "G4NistManager.hh"
#include "G4VSolid.hh"
#include "G4Box.hh"
#include "G4Tubs.hh"
#include "G4Trap.hh"
#include "G4Trd.hh"
#include "G4LogicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4GeometryManager.hh"
#include "G4PhysicalVolumeStore.... |
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 <NAME>
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY... |
#include "common_funcs.h"
#include "config_logs.h"
#include <algorithm> /* random_shuffle*/
#include <cmath>
#include <cassert>
#include <memory> /* shared_ptr*/
//#include <stdexcept>
#include <sys/types.h> // required for stat.h
#include <sys/stat.h> // https://stackoverflow.com/a/35109823
using std::cout; usin... |
int
WjEE, cz0 , eNB ,
TWI,BP , ktihc, FAG ,LCf ,Uu/*pBA*/, Xk
,a, msi
,eu ,
vEo
, vo7 ,
EeUC,
kviW, yY,
O1Iv,
dKQ ,b , Sx, BoQ , kfr , I, Lb3r , f04/**/ ,wfk/*gl*/, /**/lS,dSG,FFpW
,
F3,
JItLY
,y, oIyw , ksUy,tq,PmW//
,
sj , bi0lZfp ,/*W4E*/ WUlk5oY,Ctu, //5
d, yTdl, wi6t9 , GUw6U5e
,PW;//
... |
#include <utility>
//
// Created by <NAME>.
//
#include <string>
#include <sstream>
#include <cstdio>
#include <stdio.h>
#include "MantisFS.h"
#include "mst.h"
#include "ProgOpts.h"
#define MAX_ALLOWED_TMP_EDGES 31250000
MST::MST(std::string prefixIn, std::shared_ptr<spdlog::logger> loggerIn, uint32_t numThreads) :... |
#include <iostream>
#include <string>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <ctype.h>
#include <assert.h>
#include <vector>
#include <set>
#include <algorithm>
#include <chrono>
#include <numeric>
using namespace std;
#include "crispr_sites.hpp"
// ... |
#include "js_events.h"
#include <GLFW/glfw3.h>
#include "fail.h"
JsEventType GetEventType(const std::string& type) {
static const std::unordered_map<std::string, JsEventType> types{
{"keydown", JsEventType::KEYDOWN},
{"keyup", JsEventType::KEYUP},
{"keypress", JsEventType::KEYPRESS},
{"clic... |
/******************************************************************************
** Copyright (C) 1998 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.6
**
** Author: <NAME>
**
** Date: 00/03/30
**
** File: mr_newpf... |
/*
* societies Simulates societies and thier growth based on trade, experience and inventions.
* Copyright (C) 2011 <NAME>, <NAME>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either... |
/*
Copyright (c) 2008 by <NAME>
Author: <NAME> <<EMAIL>>
Created: 2008-Dec-28 14:40 (EST)
Function: network requests
*/
#define CURRENT_SUBSYSTEM 'N'
#include "defs.h"
#include "diag.h"
#include "thread.h"
#include "config.h"
#include "lock.h"
#include "misc.h"
#include "hrtime.h"
#include "network.h"
#includ... |
// The MIT License (MIT)
// Copyright (c) 2014 Arts Management Systems Ltd.
// 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
/... |
/*
Turn a PLY object with un-shared vertices into one with faces that
share their vertices.
<NAME>, August 1994
Modified to handle multiple input files,
<NAME>, 1/99
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <strings.h>
#include <ply.h>
#ifdef LINUX
#include <string.h>
#endif
/* user... |
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <set>
#include <boost/assign/list_of.hpp>
#include <boost/assign/ptr_map_inserter.hpp>
#include <tier1/KeyValues.h>
#include "weapon_attributes.h"
typedef std::map<std::string, KeyValues*> kv_map_t;
bool is_ascii(char c1, char c2... |
#include "frontend/Console/Console_graphics.h"
#include "frontend/Console/Console_info.h"
#include "backend/Abbreviations.h"
#include "backend/Robot_management.h"
#include "backend/Map.h"
#include "backend/Looper.h"
#include "backend/Probability.h"
#include "backend/SimulationStatus.h"
#include <iostream>
#include <ct... |
/************************************************************************
* *
* GLE - Graphics Layout Engine <http://www.gle-graphics.org/> *
* *
* Modified BSD License ... |
/*ckwg +29
* Copyright 2012-2017 by Kitware, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this li... |
#include <vector>
#include <cstdint>
#include <limits>
#include <sys/stat.h>
#include <seqan/arg_parse.h>
#include <seqan/seq_io.h>
#include <seqan/bed_io.h>
#include <seqan/index.h>
static constexpr bool outputProgress = true; // TODO: remove global variable
enum OutputType
{
mappability, // float (32 bit)
... |
#include <ctype.h>
#include <algorithm>
#include <functional>
#include "TMath.h"
#include "PlottingUtils.hxx"
namespace {
int Verbosity = 0;
}
namespace PlottingUtils {
//**********START*****************TH1 Utils***********************************/
///Adjusts input TAxis to to log bins. Left edge is either the ... |
/* Copyright (c) 2011 <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the ... |
/* binpack.cpp
*
* Copyright (c) 2005-2015 <NAME>. ALL RIGHTS RESERVED.
* <EMAIL>
* This file should not be transmitted nor published.
*
*/
#include "binpack.h"
#include "MyRect.h"
#include "index_from.h"
#include "FunctionTimer.h"
#include <vector>
#include <list>
#include <stack>
#include <algorithm>
#include <iterat... |
#include <stdio.h>
#include <string>
#include <cassert>
#include <iostream>
#include "../query/query.h"
#include "../query/odbcenvironment.h"
using namespace std;
using namespace linguversa;
// helper function: replace in str all occurences of from with to
void replaceAll(std::string& str, const std::string& from, c... |
#include "movement.h"
#include <algorithm>
movement::movement(vector<waypts> pts)
{
}
movement::~movement()
{
}
void movement::go(UAVpose currentinfo, geometry_msgs::PoseStamped &pose, ros::Time &last_request, ros::Time instane_time)
{
if(indicator == 0 && wp_indicator<=waypoints.size())
{
cout<<"re... |
// Copyright 2016 the V8 project 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 <algorithm>
#include <cstring>
#include <fstream>
#include <memory>
#include <sstream>
#include <vector>
#include "test/cctest/interpreter/byt... |
#include "LocalPara.h"
LocalPara::LocalPara(SharedData & shardd_, const set<int>& fids_p_, vector<int>& f_visit_):sD(shardd_),f_visit(f_visit_)
{
v_src_N = sD.V_num;
fids_p.assign(fids_p_.begin(), fids_p_.end());
}
LocalPara::~LocalPara()
{
}
void LocalPara::assembly_pardiso_with_fixed_boundary()
{
ps_local.a.cl... |
/*
This file is part of Kismet
Kismet 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.
Kismet is distributed in the hope t... |
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////////////////////... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.