text stringlengths 5.71k 33.7k |
|---|
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */
/*
* Copyright (c) 1990, 1997 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated... |
// Copyright <NAME> 2016
// 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, so... |
#if defined(_MSC_VER)
#define _CRTDBG_MAP_ALLOC
#define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <crtdbg.h>
#else
#include <stdlib.h>
#endif
#include "Units.h"
#include "math.h"
#include "stdio.h"
#include <string.h>
#include "Brine.h"
#include "CoolPropTools.h"
#include "CoolProp.h"
#include "IncompBase.... |
#include <Xerus.h>
void onKeyPressed(int key);
void onMousePressed(int button, int x, int y);
void onMouseReleased(int button, int x, int y);
void onMouseMoved(int x, int y);
void onWindowResized(int width, int height);
xr::Window* window = nullptr;
xr::WindowPreferences createPreferences() {
xr::WindowPreferenc... |
//**************************************************************************************
//Trigger Sequencer Module for VCV Rack by Autodafe http://www.autodafe.net
//
//Based on code taken from the Fundamentals plugins by <NAME> http://www.vcvrack.com
//
//**************************************************************... |
#include <iostream>
#include <algorithm>
#include <numeric>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "camFusion.hpp"
#include "dataStructures.h"
using namespace std;
// Create groups of Lidar points whose projection into the camera falls into the same bounding box
void... |
//
// Created by <NAME> on 2/12/20.
//
#include "Primitive.h"
#include <utility>
#include "Segment2d.h"
#include <array>
#include <iostream>
#include "utils/exceptions.hpp"
using namespace Eigen;
/*struct IntersectionComp {
IntersectionComp(const std::vector<std::tuple<double, size_t, double>> &intersections) :... |
#include "VS1053g.h"
//----------------------------------------------------------------------------------
VS1053g::VS1053g( uint8_t _cs_ping, uint8_t _dcs_ping, uint8_t _dreq_ping) : VS1053 (_cs_ping, _dcs_ping, _dreq_ping) {
if ( psramFound() ){
log_i( "PSRAM found");
g_calloc = ps_calloc;
... |
/**********************************************************************
Copyright ©2014 Advanced Micro Devices, 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... |
/* key-check.c - Detect and fix various problems with keys
* Copyright (C) 1998-2010 Free Software Foundation, Inc.
* Copyright (C) 1998-2017 <NAME>
* Copyright (C) 2015-2017 g10 Code GmbH
*
* This file is part of GnuPG.
*
* GnuPG is free software; you can redistribute it and/or modify
* it under the terms of t... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2015-2018 The Bitcoin Unlimited developers
// Copyright (c) 2017 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-... |
/*
// Copyright (C) 2018-2019 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 l... |
#include <memory>
#include <stdexcept>
#include <unordered_map>
#include <spdlog/spdlog.h>
#include <GLFW/glfw3.h>
#include "Plugin.hpp"
#include "DefaultRenderer.hpp"
#include "BasicWindowEventHandler.hpp"
using namespace MyEngine;
using namespace MyEngine::DefaultRenderer;
namespace MyEngine::GLFW {
class GLFWWi... |
/*===================== begin_copyright_notice ==================================
Copyright (c) 2017 Intel 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, includi... |
/******************************************************************************
*
* Project: Generic common data format
* Purpose: Generic Data model to read netcdf and hdf5
* Author: <NAME>, plieger "at" knmi.nl
* Date: 2013-06-01
*
**********************************************************************... |
#include <ctime>
#include <fstream>
#include <iostream>
#include "gui.h"
#define MODE_ORIGINIAL_IMAGE "Original Image"
#define MODE_ETF "ETF"
#define MODE_ETF_DEBUG "ETF-debug"
#define MODE_CLD "Coherent Line Drawing"
#define MODE_ANTI_ALIASING "Anti-Aliasing"
bool MyApp::OnInit()
{
MyFrame *frame = new MyFrame("... |
/*
HipMer v 2.0, Copyright (c) 2020, The Regents of the University of California,
through Lawrence Berkeley National Laboratory (subject to receipt of any required
approvals from the U.S. Dept. of Energy). All rights reserved."
Redistribution and use in source and binary forms, with or without modification,
are ... |
/*************************************************************************/
/* export.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#include "cbase.h"
#include "hud.h"
#include "hudelement.h"
#include "iclientmode.h"
#include "engine/IEngineSound.h"
#in... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... |
/*
* Copyright 2010 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkGr.h"
#include "GrBitmapTextureMaker.h"
#include "GrCaps.h"
#include "GrColorSpaceXform.h"
#include "GrContext.h"
#include "GrContextPriv.h"
#include "GrGpuResourc... |
//=======================================================================
// Copyright <NAME> 2013-2018.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=======================================================================
... |
//
// Created by root on 9/4/18.
//
#include "ipdb.h"
#include <rapidjson/document.h>
#include <rapidjson/writer.h>
#include <rapidjson/stringbuffer.h>
#include <fstream>
#include <sstream>
#include <arpa/inet.h>
using namespace std;
using namespace rapidjson;
void ipdb::MetaData::Parse(const string &json) {
Docu... |
/*
* Copyright 2017 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... |
/*
* Copyright (c) 2014-2021, NVIDIA CORPORATION. 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 ... |
#include "xshcellmover.h"
// Tnz6 includes
#include "tapp.h"
#include "xsheetviewer.h"
#include "cellselection.h"
#include "columncommand.h"
// TnzTools includes
#include "tools/cursors.h"
#include "tools/cursormanager.h"
// TnzQt includes
#include "toonzqt/tselectionhandle.h"
#include "toonzqt/selection.h"
#inclu... |
/*******************************************************************************
* Created 29, June, 1999
* Modified 4, June, 2008
* FILE: SEED_256_KISA.c
*
* DESCRIPTION: Core routines for the enhanced SEED
*
*******************************************************************************/
#include "stdh.h"
#... |
// RawHardwareTest - Check if a SPI Flash chip is compatible
// with SerialFlash by performing many read and write tests
// to its memory.
//
// The chip should be fully erased before running this test.
// Use the EraseEverything to do a (slow) full chip erase.
//
// Normally you should NOT access the flash memory dire... |
/**
* \file: gps_ublox9.cpp
*
* u-blox 9 protocol driver
*
* Copyright (C) 2012 - 2020 <NAME> - <EMAIL>
*
*/
#include <pyprops.h>
#include <errno.h> // errno
#include <sys/types.h> // open()
#include <sys/stat.h> // open()
#include <fcntl.h> // open()
#include <stdio.h> // printf() et. al.
#include <termi... |
//
// The MIT License (MIT)
//
// Copyright (c) 2014 <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,... |
/*
* Hedgewars, a free turn based strategy game
* Copyright (c) 2004-2015 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License
*
* This program is ... |
/*
* This node is used to train a bayesian network.
* It's subscribed to interaction_monitor (annotations topic)
* to obtain data and then generates a BN using SMILEARN libraries
*
* Lunds tekniska högskola | LTH 2015
* <NAME>
*/
#include "interaction_learner_node.h"
InteractionLearn... |
/** Modifed version of knn-CUDA from https://github.com/vincentfpgarcia/kNN-CUDA
* The modifications are
* removed texture memory usage
* removed split query KNN computation
* added feature extraction with bilinear interpolation
*
* Last modified by <NAME> <<EMAIL>> 12/23/2016
*/
// Includes
#inc... |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
/*
* File: Forecasts.cpp
* Author: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Created on April 18, 2018, 12:40 AM
*
* "`-''-/").___..--''"`-._
* (`6_ 6 ) `-. ( ).`-.__.`) WE ARE ...
* (_Y_.)' ._ ) `._ `. ``-..-' PENN STATE!
* _ ..`--'_..-_/ /--'_.' ,'
* (il),-'' (li),' ((!.-'... |
/*
* Copyright 2004-2020 Hewlett Packard Enterprise Development LP
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
*
* You may obtai... |
// -*- c++ -*-
//==============================================================================
// IRIS - Long-range Interaction Solver Library
//
// Copyright (c) 2017-2018, the National Center for Supercomputing Applications
//
// Primary authors:
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>... |
/*******************************************************************************
* System.cpp
*
*******************************************************************************/
#include <avr/io.h>
#include <stdio.h>
#include <string.h>
#include <avr/eeprom.h>
#include <avr/interrupt.h>
#include "def.h"
#... |
#include "TrackingTools/AnalyticalJacobians/interface/AnalyticalCurvilinearJacobian.h"
#include "TrackingTools/TrajectoryParametrization/interface/GlobalTrajectoryParameters.h"
#include <vdt/vdtMath.h>
AnalyticalCurvilinearJacobian::AnalyticalCurvilinearJacobian(const GlobalTrajectoryParameters& globalParameters,
... |
//---------------------------------------------------------------------------//
// //
// PDFR Whitespace implementation file //
// //
... |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/crypto/rsa_private_key.h"
#include <iostream>
#include <list>
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base/s... |
// Copyright 2020, <NAME>
#include "Framework/UnitTest.h"
#include "Math/Matrix4.hpp"
#include "Math/Quat.hpp"
TEST(Matrix_default_constructor, matix_tests)
{
Matrix4 M;
CHECK_FLTEQ(M[m0], 0.0f);
CHECK_FLTEQ(M[m1], 0.0f);
CHECK_FLTEQ(M[m2], 0.0f);
CHECK_FLTEQ(M[m3], 0.0f);
CHECK_FLTEQ(M[m4], 0.0f);
CHECK_FLTE... |
/* ************************************************************************
* Copyright 2016 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include <sys/time.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <vector>
#include "hipb... |
/*
* Compass_LSM9DS1.cpp
*
* Copyright (C) 2016 <NAME>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include <Compass_LSM9DS1.h>
#include <cstdio>
#include <math.h>
#include "Settings.h"
#include <unistd.h>
#include <string.h>
#inc... |
/*****************************************************************/
/* NAME: <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: ModelHelmScope.cpp */
/* DATE: Oct 4th, 2011 ... |
#include <qtphonemes.h>
#define LOPT_DIERESES 1
#define LOPT_IT_LENGTHEN 2
#define LOPT_PREFIXES 3
#define LOPT_REGRESSIVE_VOICING 4
#define LOPT_UNPRONOUNCABLE 5
#define LOPT_LENGTH_MODS 6
#define LOPT_SONORANT_MIN 7
#define LOPT_WORD_MERGE 8... |
/**
* \file QryWzskShtList.cpp
* job handler for job QryWzskShtList (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
#ifdef WZSKCMBD
#include <Wzskcmbd.h>
#else
#include <Wzskd.h>
#endif
#include "QryWzs... |
#include "ByteGen.h"
#include <algorithm>
ByteGen::ByteGen(Body* ast){
m_ast = ast;
m_lines = new vector<string>();
}
vector<string>* ByteGen::generateByteCode(){
for(int i=0; i< m_ast->m_lines->size(); i++){
if(m_ast->m_lines->at(i)->name() == "Body" && ((Body*)m_ast->m_line... |
/*! VWPPhysSensitivityPlotsMaker
plot sets of sensitivities for CTA/VTS
Example (executed on the root commane line):
WPPhysSensitivityPlotsMaker a;
a.compareDataSets("DataSets.list");
with < DataSets.list > see example files
*/
#include "VWPPhysSensitivityPlotsMaker.h"
VWPPhysSensitivit... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2000 <NAME> et al
* <EMAIL>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of t... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2018, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
// Copyright 2019, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
// SPDX-License-Identifier: BSD-2-Clause
#include <string>
#include <cstring>
#include <csignal>
#include <cstdio>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/syscall.h>
#include <sys/stat.h>
#include <poll.h... |
/**********************************
* FILE NAME: MP1Node.cpp
*
* DESCRIPTION: Membership protocol run by this Node.
* Definition of MP1Node class functions.
**********************************/
#include "MP1Node.h"
/*
* Note: You can change/add any functions in MP1Node.{h,cpp}
*/
/**
* Overl... |
// Copyright 2015, <NAME> and the other displaz contributors.
// Use of this code is governed by the BSD-style license found in LICENSE.txt
#include "glutil.h"
#include "tinyformat.h"
//------------------------------------------------------------------------------
/// Utility to handle transformation state
void Trans... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "util.h"
#include "db.h"
#include "addrman.h"
#include "hash.h"
#include "protocol... |
#include <p3dfft.h>
#include <mpi.h>
#include <algorithm>
#include <array>
#include <cassert>
#include <complex>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <memory>
#include <vector>
// File based on p3dfft.3/sample/C++/test3D_r2c.C and
// p3dfft/sample/C/driver_rand.c.
constexpr char USAGE[... |
//
// Created by <NAME> on 01/04/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#include "AGPathDetection.h"
#include <algorithm>
using namespace std;
using namespace cv;
#pragma mark -
#pragma mark Initialization
AGPathDetection::AGPathDetection(const AGParameters ¶meters)
{
this->parameters ... |
// -*- 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) 2006 <NAME> and <NAME>
// Copyright (C) 2012 OpenSim Ltd.
//
// This program 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
// of the License, or (at your option)... |
//
// Created by gabriel on 10/07/19.
//
#include "FullEarth.h"
using json = nlohmann::json;
FullEarth::FullEarth(int x, int y, int w, int h, Parametres* param, const char* label):
Fl_Gl_Window(x,y,w,h,label)
{
coastBuffer =0;
faultsBuffer=0;
riversBuffer=0;
rot[0]=0;
rot[1]=0;
rot[2]=0;
... |
/*----------------------------------------------------------------
CS585_A2_Part2.cpp
CS585 Image and Video Computing Fall 2015
Assignment : A2
PART 2: Gesture Recognition
This project takes a live video image from camera and performs
gesture recognition against a number of template images
Author: <NAME>
D... |
/*
* Copyright © 2011-2014 <NAME>
*
* This file is part of "fragview" software suite.
*
* 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 limitati... |
#include "IVideoStreamer.h"
#include <iostream>
#include <fstream>
/* Support older versions of ffmpeg and libav */
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(52, 64, 0)
#define AVMEDIA_TYPE_AUDIO CODEC_TYPE_AUDIO
#define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO
#define AV_PKT_FLAG_KEY PKT_FLAG_KEY
#endif
... |
/******************************************************************************
Copyright (C) 2019-2020 by <NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either vers... |
#include <pcl/apps/3d_rec_framework/pipeline/local_recognizer.h>
#include <pcl/apps/3d_rec_framework/utils/vtk_model_sampling.h>
#include <pcl/registration/correspondence_rejection_sample_consensus.h>
#include <pcl/registration/transformation_estimation_svd.h>
#include <pcl/registration/icp.h>
#include <pcl/visual... |
#include <utils.h>
#include <stdio.h>
#include <mutex>
#include <string>
#include <cstring>
#include <thread>
#include <chrono>
#include <iostream>
#define CRC16 0x8005
using namespace std::chrono;
#ifdef _WIN32
#include <windows.h>
static int get_system_timezone_impl()
{
TIME_ZONE_INFORMATION tz = {0};
uns... |
int rPDe
,
Td, J3y ,bZ
,pgt ,/*8KP*/ uEpd,REF
, k ,/*JbJ*/ ej, vuR3W6K ,
x2W ,pdg ,
zw4
,R1m//kg
, tgZY ,Uz ,j, FkDzWW
, ATmUV
,d ,
el ,X3m ,
/*WJa*/mA ,k6nz
/*u*/, O7Jj
,Qz8 ,
TRqP3 ,
YUN, y6 ,
TPa ;
void
f_f0
() { ;
for (int
i=1 ;i<
1;++i) ;;;return ;}void f_f1 ()
{/*nSf*/return/*S6*/ ;... |
#include "PhysicsTools/KinFitter/interface/TFitConstraintEp.h"
#include "PhysicsTools/KinFitter/interface/TFitConstraintM.h"
#include "PhysicsTools/KinFitter/interface/TAbsFitParticle.h"
#include "PhysicsTools/KinFitter/interface/TFitParticleEMomDev.h"
#include "PhysicsTools/KinFitter/interface/TFitParticleEtEtaPhi.h"
... |
// Copyright (c) 2011-2015 <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, d... |
#include "hardware-test.hpp"
#include "graphics/color.hpp"
#include "hardware/gpio.h"
#include <cmath>
using namespace blit;
const uint8_t STATUS_V_SPACING = 10;
const uint32_t VBUS_DETECT_PIN = 2;
const uint32_t CHARGE_STATUS_PIN = 24;
const int16_t notes[2][384] = {
{ // melody notes
147, 0, 0, 0, 0, 0, 0... |
//----------------------------------------------------------------------------
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: <NAME>
//
// Description: PIAIMC tag class declaration.
//
// "Profile for Imagery Access Image Support Extensions"
//
// See docume... |
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2013 The PPCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/fo... |
#include <chrono>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <string>
#include <fstream>
#include <list>
#include <gflags/gflags.h>
#include "segment.h"
DEFINE_string(input_file, "C:\\section_segmentation\\data\\evorus-00... |
#include "CMayaSpline.hpp"
namespace rstl {} // namespace rstl
namespace metaforce {
void ValidateTangent(zeus::CVector2f& tangent) {
if (tangent.x() < 0.f) {
tangent.x() = 0.f;
}
const float mag = tangent.magnitude();
if (mag != 0.f) {
tangent /= mag;
}
if (tangent.x() == 0.f && tangent.y() != ... |
/*
Copyright 2013 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
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... |
// Il2CppDumper.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "il2cpp.h"
#include "elf_structures.h"
#include "elf_utils.h"
#include "il2cpp_utils.h"
#include <map>
elf_header* pLibIl2Cpp = 0;
char* szTypeString[] =
{
"END",
"void",
"bool",
"char",
"sbyte",// I1
"by... |
/*
Programmer: <NAME>
Code optimized by <NAME> and modified to support high dimention data
*/
#include "mex.h"
#include <stdio.h>
#include "matrix.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <cstring>
#include <random>
// uncomment following 3 lines for windows OS
/*... |
#include "chess_state.h"
#include <iostream>
#include <iomanip>
#include <cctype>
#include <map>
#include <assert.h>
#include <bitset>
ChessBoard * ChessState::knight_moves;
ChessState::ChessState(){ // {{{
if(knight_moves == nullptr){
knight_moves = new ChessBoard;
for(int i = 0; i < NUM_SQUARES; i++){
... |
#include <iostream>
#include <deque>
#include <algorithm>
#include <set>
#include <sstream>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <time.h>
#include <sys/time.h>
#include <iomanip>
#include <cmath>
#include <limits>
#include "gbdt.h"
#if HAS_TBB
# include "tbb/parallel_... |
/*
MIT License
Copyright (c) 2021 <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, distrib... |
// ./bin/Reco is not required to run this code
# define Filter 1.0 // GeV
# define max_dis 0.8
# define img_size 224
#include "RootInterface.h"
#include "RecoInterface.h"
#include "DRsimInterface.h"
#include "fastjetInterface.h"
#include "functions.h"
#include "RecoTower.h"
#include "GeoSvc.h"
#include "GridDRcalo.h... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2013-2020 Bepartofyou
*
* 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
... |
/*
* Copyright (c) 1999 International Computer Science Institute
* 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
* ... |
#include "pxt.h"
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
#include <cstdarg>
#include <pthread.h>
#include <unistd.h>
#include <dirent.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <malloc.h>
#include <ctype.h>
... |
/*
* options.cpp
* lpg
*
* Created by <NAME> on 3/13/11.
* Copyright 2011 IBM. All rights reserved.
*/
#include "JikesPGOptions.h"
#include "JiksPgOption.h"
#include <limits.h>
OptionProcessor::OptionProcessor(JiksPgOption *option)
: options(option)
{ }
std::string
trimQuotes(std::string& s)
{
std::str... |
//
// PD.cpp
// Prize-Collecting TSP
//
// Created by <NAME> on 3/21/17.
//
// MIT License
// Copyright (c) 2020 alicepaul
//
#include "pd.h"
double ep = 1.0e-15; // theshold for ties
/* ------------------------- HELPER FUNCTIONS--------------------------*/
void solveInstance(SolverInfo &info) {
auto t0 = s... |
/* ************************************************************************
* Copyright 2016 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include <fstream>
#include <iostream>
#include <stdlib.h>
#include <sys/time.h>
#include <vector>
#include "arg_... |
#include "RotationalFilter.h"
#define RAD2DEG(x) ((x) * ((180.0)) / (PI))
#define DEG2RAD(x) ((x) * ((PI) / (180.0)))
#define ROUND(x) std::floor((x * 1000) + .5) / 1000
RotationalFilter::RotationalFilter()
{
initialized_ = false;
// +.+ Initialize TF Listener
tf_listener_ = new tf2_ros::TransformListener... |
/*
* Implementation of a virtual trackball.
* Implemented by <NAME>, lots of ideas from <NAME> and
* the August '88 issue of Siggraph's "Computer Graphics," pp. 121-129.
*
* This file now includes code from vect.C and quaternion.C, so that
* the trackball functionality is contained in one .C file.
*
... |
// wordcount-btree.cc
//
// 2-3 tree (B Tree) implementation for counting occurences of
// words in a text.
//
// This is written as a single monolithic file simply to demonstrate
// the concept and is not intended to be production-grade code.
// Normally, the B Tree implementation would be in separate files from
// th... |
/**
* @file BinnedExposureSun.cxx
* @brief Integral of effective area over time for the entire sky at
* various energies and binned in angles from the sun.
* @author <NAME>
*
* $Header: /nfs/slac/g/glast/ground/cvs/SolarSystemTools/src/BinnedExposureSun.cxx,v 1.3 2012/02/15 03:03:51 gudlaugu Exp $
*/
#include <... |
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include <string>
#include <vector>
#include <sstream>
#include "gtest/gtest.h"
#include "faodel-common/Common... |
/**
* @file
* This file is part of SeisSol.
*
* @author <NAME> (c.uphoff AT tum.de, http://www5.in.tum.de/wiki/index.php/Carsten_Uphoff,_M.Sc.)
*
* @section LICENSE
* Copyright (c) 2015, SeisSol Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificatio... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
ofSetFrameRate(60);
//ofSetEscapeQuitsApp(false);
//----
// Parameters
params1.setName("paramsGroup1");
params1.add(speed.set("speed", 0.5, 0, 1));
params1.add(bPrevious.set("<", false));
params1.add(... |
//Name of student 1 = <NAME>
//Roll number of student 1 = 1913107
//ID of student 1 = BTBTC19123
//Name of student 2 = <NAME>
//Roll number of student 2 = 1913097
//ID of student 2 = BTBTC19246
// "COWIN REGISTRATION AND RECORD SYSTEM"
#include <bits/stdc++.h>
#include<iostream>
#include<windows.h>
#include<stdli... |
#include "textbuffer.h"
#include "textdelta.h"
#include "textfile.h"
#include "unicode.h"
lng TEXT_BUFFER_SIZE = 4096;
PGTextBuffer::PGTextBuffer() :
buffer(nullptr), buffer_size(0), current_size(0), start_line(0),
state(nullptr), cumulative_width(0), syntax(),
width(0), line_count(0), index(0) {
}
PGTextBuf... |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... |
#include <iostream>
#include <fstream>
#include "../../src/global.h"
#include <fann.h>
#include <sys/time.h>
using namespace std;
typedef struct _Point
{
double u;
double v;
}Point;
/**
* Position set structure:
* Image pixel coordinate of two markers from two distinct cameras are aggregated in this struct.
**... |
//
// OSC_main.cpp -- CSL "main" function for use with OSC input triggering CSL instrument objects.
// See the copyright notice and acknowledgment of authors in the file COPYRIGHT
//
// This version takes an instrument library (Instrument ** library) and creates an OSC address space for
// its instruments. In this t... |
#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 i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.