text stringlengths 5.71k 33.7k |
|---|
#include<math.h>
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
#pragma region Input-Ouput System
string input(string o = ""){
string x;
cout<<o;
getline(cin,x);
return x;
}
#pragma endregion
#pragma region Constants
struct Con... |
// Copyright (c) 1996 - 1999 Microsoft Corporation. All Rights Reserved.
#include <streams.h>
#include <asyncio.h>
#include <malloc.h>
// --- CAsyncRequest ---
// implementation of CAsyncRequest representing a single
// outstanding request. All the i/o for this object is done
// in the Complete metho... |
/*
* Copyright (C) 2015 Focalcrest, 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 agree... |
// Copyright © 2017 by <NAME> <<EMAIL>>
// Available under the MIT License. See LICENSE for details.
#include "crypto/cipher/aes_internal.h"
#include <cstdint>
// FIXME
#include <iomanip>
#include <iostream>
#include <sstream>
#include "base/logging.h"
#include "crypto/primitives.h"
#include "crypto/security.h"
us... |
//
// Created by Maarten on 02/06/2020.
//
#include "experiment_5_flows.hpp"
#include <iostream>
#include <esl/data/filesystem.hpp>
////////////////////////////////////////////////////////////////////////////////
#include <esl/computation/environment.hpp>
#include <esl/simulation/model.hpp>
using esl::simulation::p... |
#include "ModLoader.hpp"
#include "Utility.hpp"
#include "Audio.hpp"
#include <easylogging++.h>
#include <nlohmann/json.hpp>
#include <stb_image.h>
namespace fs = std::filesystem;
static std::vector<std::shared_ptr<ModLoader::Mod>> mods;
void ModLoader::LoadMod(AssetTreeNode &node) noexcept {
for (auto& it : node.... |
/*************************************************************************
file: Common.cpp
author: <NAME>
mail: <EMAIL>
version: 0.1
last change: 03.04.2008
---------------------------------------------------------------------
description:
This file contains the read in routine and often us... |
#include "observer.h"
#include "dmrg.h"
std::string cplx2str(Cplx x) {
std::ostringstream oss;
printf(oss, "%.15e", x.real());
if (x.imag() > 1e-12) {
printf(oss, "+%.15ei", x.imag());
} else if (x.imag() < -1e-12) {
printf(oss, "-%.15ei", -x.imag());
}
return oss.str();
}
Sw... |
#include "LordImu.h"
#include <cstdio>
#include <stdexcept>
#include <thread>
#include "../../common/include/cppTypes.h"
#include "../../common/include/Dynamics/spatial.h"
#include "../../common/include/Math/orientation_tools.h"
constexpr u32 IMU_PACKET_TIMEOUT_MS = 1000;
//constexpr u32 MIP_SDK_GX4_25_IMU_DIRECT_MODE... |
/*=========================================================================
Program: Visualization Toolkit
Module: $ vtkInsideClosedSurface.cxx $
Author: <NAME>
MGV Research
Date: Jan 30, 2008
Version: 0.3
=========================================================================*/
#i... |
/* -------------------------------------------------------------------------- *
* SimTK Simbody: SimTKcommon *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... |
#include "DaggerXL_Player.h"
#include "Logic_NPC.h"
#include "../math/Math.h"
#include "../math/Vector3.h"
#include "../fileformats/ArchiveTypes.h"
#include "../fileformats/CellTypes.h"
LOGIC_CB_MAP(DaggerXL_Player);
const float _VertClamp = 0.90f;
const float m_PlayerHeight = 16.8f;
const float m_PlayerCrouc... |
/*
* Copyright (C) 2005-2011 MaNGOS <http://getmangos.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.
*
... |
// -*- C++ -*-
//
// Package: HcalTestBeam
// Class : HcalTB02Analysis
//
// Implementation:
// Main analysis class for Hcal Test Beam 2002 Analysis
//
// Original Author:
// Created: Sun May 21 10:14:34 CEST 2006
//
// system include files
#include <cmath>
#include <iostream>
#include <iomanip... |
/*
Copyright (c) 2019 Sogou, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... |
//== HTMLRewrite.cpp - Translate source code into prettified HTML --*- C++ -*-//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This librar... |
// Avisynth v2.5. Copyright 2002 <NAME>-Gould et al.
// http://www.avisynth.org
// 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 ... |
/*
* 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... |
// This file is part of Notepad2.
// See License.txt for details about distribution and modification.
//! Lexer for Assembler, include MASM NASM GAS.
#include <cassert>
#include <cstring>
#include <string>
#include "ILexer.h"
#include "Scintilla.h"
#include "SciLexer.h"
#include "WordList.h"
#include ... |
// General Library
#include "utils.h"
//Bright Globals
std::string bright::BRIGHT_DATA = "";
void bright::bright_start()
{
#ifdef _WIN32
char * tmpBRIGHT_DATA;
size_t lenBRIGHT_DATA;
errno_t errBRIGHT_DATA = _dupenv_s(&tmpBRIGHT_DATA, &lenBRIGHT_DATA, "BRIGHT_DATA");
if (errBRIGHT_DATA) std::cout ... |
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#inclu... |
// Copyright (c) 2021 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <amount.h>
#include <bench/bench.h>
#include <config.h>
#include <consensus/validation.h>
#include <miner.h>
#include <primiti... |
//===- Synchronization.cpp - OpenMP Device synchronization API ---- c++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include <iostream>
#include "anonymouslib_opencl.h"
#include "mmio.h"
using namespace std;
#ifndef VALUE_TYPE
#define VALUE_TYPE double
#endif
#ifndef NUM_RUN
#define NUM_RUN 1000
#endif
int call_anonymouslib(int m, int n, int nnzA,
int *csrRowPtrA, int *csrColIdxA, VALUE_TYPE *csrValA,
... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <unistd.h>
#include "algebra.h"
#include "ndt.h"
#define E_THETA 0.0001
extern int point_num;
extern NDMapPtr NDmap;
extern int layer_select;
extern double scan_points_weight[];
extern double scan_points_totalweight;
void set_sinco... |
// ScatterGPU.cpp : Defines the entry point for the application.
//
#include "StdAfx.h"
DECLARE_CORE_GLOBALS;
class CAppTask : public TSingleton<CAppTask>, public CKernelTask, public IInputEventListener
{
protected:
CSRTTransform m_srtModel;
int m_nPolygonMode;
bool m_bHDR;
CVector m_vLight;
C... |
#include <mpi.h>
#include <stdio.h>
#include "gzstream.h"
#include "thread_local.h"
#include "readbuf.h"
#include "cva.h"
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <functional>
#include <unordered_map>
#include <random>
#include <exception>
#include <memory.h>
#include "sort.h... |
#include "SSD1306Spi.h"
#include <string>
#include <thread>
#include <mutex>
#include <vector>
#include <unistd.h>
#include <termios.h>
#include <wiringPi.h>
#include <OrangePi.h>
#include "utils.h"
#include "pins.h"
#include "qrcode.h"
#include "bmp280.h"
#include <signal.h>
#include <math.h>
#include <softPwm.h>
#in... |
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <Carbon/Carbon.h>
#include "SkFontHost.h"
#include "SkDescriptor.h"
#include "SkEndian.h"
#include "SkFloatingPoint.h"
#include "SkPaint.h"
#inc... |
/*
* Copyright (c) 2018 cTuning foundation.
* See CK COPYRIGHT.txt for copyright details.
*
* SPDX-License-Identifier: BSD-3-Clause.
* See CK LICENSE.txt for licensing details.
*/
#include <future>
#include <algorithm>
#include <numeric>
#include "armnn/ArmNN.hpp"
#include "armnn/Exceptions.hpp"
#include "armnn... |
/*
FAUXMO ESP
Copyright (C) 2016-2020 by <NAME> <xose dot perez at gmail dot com>
The MIT License (MIT)
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 li... |
/******************************************************************************\
| OpenGL 4 Example Code. |
| Accompanies written series "Anton's OpenGL 4 Tutorials" |
| Email: anton at antongerdelan dot net ... |
/* Copyright (C) 2019 MariaDB Corporaton.
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 in the hope that it will be useful,
... |
/*
The MIT License (MIT)
Copyright (c) 2016 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mod... |
/* Copyright (c) 2005, Regents of Massachusetts Institute of Technology,
* Brandeis University, Brown University, and University of Massachusetts
* Boston. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
#include "Utils.h"
#include "Log.h"
#include <chrono>
#include <codecvt>
#include <shellapi.h>
#include <Shlobj.h>
#include <atlbase.h>
namespace Utils
{
void Replace(std::string& str, const std::string& needle, const std::string& replacement)
{
//https://stackoverflow.com/a/4643526
size_t inde... |
// Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2015 The WaykiChain developers
// Copyright (c) 2017-2018 WaykiChain Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "configuration.h"
#include "chainpara... |
/*
Copyright 2017 <NAME>, German Research Center for Artificial
Intelligence (DFKI GmbH), Technical University of Berlin
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restri... |
#include <memory.h>
#include <stdint.h>
#include <stdio.h>
#include <array>
#include <string>
#include <vector>
#include <unordered_map>
#include "encoder.hh"
#include "flags.h"
struct ExploitSettings {
uint32_t stackBase;
uint32_t addressToModify;
uint32_t originalValue;
uint32_t newValue;
cons... |
#include "libsnark/gadgetlib1/gadgets/hashes/sha256/sha256_gadget.hpp"
#include "algebra/fields/field_utils.hpp"
const size_t sha256_digest_len = 256;
/*
computed by:
unsigned long long bitlen = 256;
unsigned char padding[32] = {0x80, 0x00, 0x00, 0x00, // 24 bytes of padding
... |
/*******************************************************************************
* Copyright (c) 2009-2016, MAV'RIC Development Team
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. R... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
#include "persistence_notification_test.hpp"
#include <random>
/* ------------------------ StorageNode implementation ------------------------ */
StorageNode::StorageNode(persistent::PersistentRegistry* pr, derecho::subgroup_id_t my_subgroup_id)
: object_log(std::make_unique<derecho::Bytes>, "BytesLog", pr, ... |
#include "detect_points.h"
#include "../../descriptor/descriptor.h"
#include "../../homography/homography.h"
#include "../../ttime/ttime.h"
#include <algorithm>
#include <iostream>
#include <map>
#include <cmath>
using std::pair;
using std::make_pair;
using std::sqrt;
using std::cout;
using std::cerr;
using std::end... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation ... |
//
// Created by <NAME> on 2019-02-25.
//
#include "RaNNCModule.h"
#include <torch/csrc/jit/python/python_ivalue.h>
#include <graph/ir.h>
#include <Common.h>
#include <Config.h>
#include <cuda/CudaUtil.h>
#include <comm/ObjectComm.h>
#include <bind/RaNNCFactory.h>
#include <bind/RaNNCProcess.h>
#include <bind/Pybind... |
#include <cmath>
#include <iostream>
#include "gtest/gtest.h"
#include "numgrind.h"
#include "Utils/utils.h"
#include "testhelpers.h"
using namespace NumGrind;
using namespace NumGrind::CompGraph;
TEST(NumGrindScalarSuit, test01) {
auto n1 = CGScalarVariable(0);
auto n2 = CGScalarVariable(1);
auto n3 =... |
// Copyright 2012 Google 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 applicable... |
/*
Copyright 2017-2019 Siemens AG
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, sub... |
#include "ProbeClustering.h"
#include "stdafx.h"
#include "mmcore/param/BoolParam.h"
#include "mmcore/param/ButtonParam.h"
#include "mmcore/param/FloatParam.h"
#include "mmcore/param/IntParam.h"
#include "datatools/table/TableDataCall.h"
megamol::probe::ProbeClustering::ProbeClustering()
: _out_probes_slot(... |
#include "hodlr_matrix.h"
#include "init_matrix_tasks.h"
#include "lapack_blas.h"
#include "macros.h"
void create_Vtree
(Node *unode, Node *vnode);
void init_UMat
(Node* node, const LMatrixArray& matQ, size_t& first);
void create_Vregions
(Node *vnode, Context ctx, HighLevelRuntime *runtime);
void create_Kregions
(... |
/* source file for filters class -
responsible for signal filtering (Butterworth zero-phase filter, Low-pass / High-pass filter
based on translation of Matlab codes
https://stackoverflow.com/questions/10373184/bandpass-butterworth-filter-implementation-in-c
https://stackoverflow.com/questions/17675053/matla... |
/**
* Copyright (C) 2019-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... |
/************************************************************************************
Filename : GlUtils.cpp
Content : Policy-free OpenGL convenience functions
Created : August 24, 2013
Authors : <NAME>
Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved.
***********************... |
#include "dynet/nodes.h"
#include "dynet/dynet.h"
#include "dynet/training.h"
#include "dynet/timing.h"
#include "dynet/rnn.h"
#include "dynet/gru.h"
#include "dynet/lstm.h"
#include "dynet/dict.h"
#include "dynet/expr.h"
// Platform-independent header to allow calls to getpid()
#if _WINDOWS
#include <process.h>
#... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
#include "trainer.hpp"
#include <glog/logging.h>
#include <gflags/gflags.h>
#include <math.h>
#include <stdio.h>
const double NUSQINV = 1.0;
const int WAIT_SYNC = 10; // in seconds
const double EXP_THRESHOLD = 640.0;
DEFINE_double(alpha, 0.16, "prior on doc distribution");
DEFINE_double(beta, 0.01, "pr... |
#include "GameScreen.h"
#include "Editor/EditScreen.h"
#include "FadeScreen.h"
#include "GameLoop.h"
#include "GameState.h"
#include "HelpScreen.h"
#include "JAScreens.h"
#include "Local.h"
#include "SGP/ButtonSystem.h"
#include "SGP/CursorControl.h"
#include "SGP/Debug.h"
#include "SGP/Font.h"
#include "SGP/Input.h"
... |
#include <cmath>
#include <vector>
#include <cstdio>
#include <cassert>
#include <set>
#include <algorithm>
#include <world.h>
#include <targa.h>
namespace
{
int map[sj::MAP_WIDTH][sj::MAP_HEIGHT] =
{
{416, 416, 416, 416, 416, 416, 416, 416, 416, 416},
{416, 0, 0, 0, 19, 0, 0, 0, 0, 416},
{416,... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "MBAggLevelExchange.H"
#include "FourthOrderUtil.H"
#include "MBSten... |
//--------------------------------------------------------------------------
// 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 rest... |
#include "datadeck.hh"
#include <armadillo>
#include <iostream>
/**
* @brief Read table & store table's data
*/
Datadeck::Datadeck(const char *file_name) {
char line_clear[CHARL];
char temp[CHARN]; // buffer for table data
std::string table_deck_title;
int table_count(0);
double value(0);
... |
#include <decomp_util/geometry_utils.h>
Quatf vec_to_quaternion(const Vec3f &v) {
// zero roll
const Vec3f rpy(0, atan2(-v(2), v.topRows(2).norm()), atan2(v(1), v(0)));
Quatf qx(cos(rpy(0) / 2), sin(rpy(0) / 2), 0, 0);
Quatf qy(cos(rpy(1) / 2), 0, sin(rpy(1) / 2), 0);
Quatf qz(cos(rpy(2) / 2), 0, 0, sin(rpy(... |
/*
* File: sdl-imgui.cpp.
* Created by: <NAME>.
* Date: Dec 23, 2017.
* Notice: Copyright (c) 2017 The Bat Forge. All Rights Reserved.
*/
// ImGui SDL2 binding with OpenGL3
// In this binding, ImTextureID is used to store an OpenGL 'GLuint' texture identifier. Read the FAQ about ImTextureID in imgui.cpp.
// (SDL ... |
#include "structs.hpp"
#include "funcs.hpp"
#include "json.hpp"
#include "tinyxml2.h"
#include <string>
#include <cstdio>
#include <vector>
#include <algorithm>
// TESTING
#include <sstream>
#include <iomanip>
using namespace tinyxml2;
////////////////////////////////////////////////////////////////... |
#include "ModuleImGui.h"
#include "ModuleSceneIntro.h"
#include "Application.h"
#include "GameObject.h"
#include "Component.h"
#include "ComponentDefs.h"
#include <ctime>
#define SCANCODE_AMOUNT 284
ModuleImGui::ModuleImGui(bool start_enabled)
{
}
ModuleImGui::~ModuleImGui()
{
}
bool ModuleImGui::Init(json_file* co... |
#include "BOSSVisExperiment.h"
#include "GUI.h"
using namespace BOSS;
BOSSVisExperiment::BOSSVisExperiment()
: _fps(0)
, _scenarios(0)
, _finished(true)
{
}
BOSSVisExperiment::BOSSVisExperiment(const rapidjson::Value & val, std::map< std::string, GameState > & stateMap, std::map< std::str... |
// Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The Bitcoin Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2017 Coin Sciences Ltd
// MultiChain code distributed under the GPLv3 license, see COPYING file.
#include "rpc/rpcclient.h"
#include "rpc/rpcprotoc... |
#include "Mesh.hpp"
#include "src/3D/Gl.hpp"
#include "src/3D/ShaderLocationIndex.hpp"
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <nonstd/span.hpp>
#include <memory>
#include <optional>
#include <vector>
using namespace osc;
union PackedIndex {
uint32_t u32;
struct U16Pack { uint16_t a; uint1... |
#pragma once
//
// Twitter クライアントの実装
//
// The MIT License (MIT)
//
// Copyright (c) <2014> chromabox <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, inc... |
/*
ESP32 Camera Sensor Web interface class implementation.
Date: 2021-12-28
Copyright (c) 2021 <NAME>.
This software is released under the MIT License.
https://opensource.org/licenses/MIT
This class is an interface to the ESP32 Camera Driver, and contains an HTTP
server that can convert frame data cap... |
#include "rip.h"
#include "router.h"
#include "router_hal.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <list>
#include <string.h>
extern bool validateIPChecksum(uint8_t *packet, size_t len);
extern void update(bool insert, RoutingTableEntry entry);
extern bool query(uint32_t addr, uint32_t *n... |
#include <kernel/cpuid.hpp>
bool CPUID::m_ext[cpuid::__MAX] ;
perfmon CPUID::m_perfmon;
uint32_t CPUID::m_max_basic_input, CPUID::m_max_ext_input;
uint8_t CPUID::m_cpu_signature[13];
uint8_t CPUID::m_stepping, CPUID::m_model, CPUID::m_family, CPUID::m_type, CPUID::m_ext_model, CPUID::m_ext_family;
uint16_t CP... |
/*
#############################################################################
# Author: <NAME>
# Email: <EMAIL>
#
#
# Created Date: 2019/08/03
# Modified Date: 2021/04/10
#
# Centre for Intelligent Sensing, Queen Mary University of London, UK
#
#############################################... |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted pro... |
/*
* Use of this source code is governed by the MIT License (MIT).
* See the LICENSE file for details.
*
* Copyright (c) 2016 <NAME> <<EMAIL>>
*/
/**
* \file output.cpp
* \brief The file implements methods of Output class
* \author <NAME>
* \copyright The MIT License (MIT)
*
* The file contains argument par... |
/*
* libpal - Automated Placement of Labels Library
*
* Copyright (C) 2008 <NAME>, MIS-TIC, HEIG-VD
* University of Applied Sciences, Western Switzerland
* http://www.hes-so.ch
*
* Contact:
* maxence.laurent <at> heig-vd <dot> ch
* or
* eric.taillar... |
#include <string.h>
#include <sys/resource.h>
#include "lib/EasyBMP.h"
#include <omp.h>
#define N 1000
#define CHUNKSIZE 100
#include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define MAX 160 /* number of rows in matrix A */
#define NRA 80 /* number of rows i... |
#include <cmath>
#include "Genome.h"
#include "IncludeDefine.h"
#include "Parameters.h"
#include "SuffixArrayFuns.h"
#include "PackedArray.h"
#include "TimeFunctions.h"
#include "ErrorWarning.h"
#include "GTF.h"
#include "SjdbClass.h"
#include "sjdbLoadFromFiles.h"
#include "sjdbPrepare.h"
#include "genomeParametersW... |
#include "prof.hpp"
#include <mpi.h>
using std::map;
using std::string;
static constexpr rank_t upper_rank = 1000; // approximates the infinity of procs
static map<rank_t, real_t> t_nu = {{0, 0.0},
{1, 6.314},
{2, 2.920},
... |
// Copyright (c) 2018 by University Paris-Est Marne-la-Vallee
// ProductTools.cpp
// This file is part of the Garamon Generator.
// Authors: <NAME> and <NAME>
// Contact: <EMAIL>
//
// Licence MIT
// A a copy of the MIT License is given along with this program
#include "ProductTools.hpp"
// fills the [xo... |
/*
* 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 ... |
#include "cpp-skeletonize.h"
#include "cpp-MinBinaryHeap.h"
// struct for Dijkstra's algorithm
struct DijkstraData {
long iv;
DijkstraData *prev;
float distance;
bool visited;
};
static int WriteTempPtsFile(FILE *fp, std::vector<long> &elements, long label)
{
WritePtsFileHeader(fp, 1);
//... |
/*
Copyright 2016-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
// Copyright (c) 2006-2008 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 <algorithm>
#include "chrome/common/l10n_util.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/logging.h"
... |
/*
Copyright (c) 2004-2016 The FlameRobin Development Team
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, modi... |
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR (c) 1992 - 2014
// ** University Corporation for Atmospheric Research(UCAR)
// ** National Center for Atmospheric Research(NCAR)
// ** Research Applications Laboratory(RAL)
// ** P.O.Box 3000, Boulder, Colorado, 80307... |
#include "LowLevel.h"
#include "ServerSocket.h"
// Static constants for the ServerSocket class
const string ServerSocket::SERVER_NOT_FULL = "OK";
const string ServerSocket::SERVER_FULL = "FULL";
//const string ServerSocket::SHUTDOWN_SIGNAL = "/shutdown";
//const string ServerSocket::SHUTDOWN_SIGNAL = "/shut";
//... |
#include <ros/ros.h>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/Twist.h>
#include <sensor_msgs/JointState.h>
#include <iostream>
#include <kdl/kdl.hpp>
#include <kdl/chain.hpp>
#include <kdl/chainfksolverpos_recursive.hpp>
#include <kdl/chainiksolvervel_pinv.hpp>
#include <math.h>
#include <stdlib.h... |
//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000-2001 Microsoft Corporation
//
// Module Name:
// ResTypeMajorityNodeSet.cpp
//
// Description:
// This file contains the implementation of the CResTypeMajorityNodeSet
// class.
//
// Doc... |
/*
* set_cover_solver.cpp
*
* Created on: Dec 12, 2019
* Author: jjmccollum
*/
#include <string>
#include <list>
#include <stack>
#include <vector>
#include <unordered_map>
#include <limits>
#include "set_cover_solver.h"
#include "roaring.hh"
using namespace std;
using namespace roaring;
/**
* Default c... |
#include <assert.h>
#include <dirent.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <unordered_map>
#include <sstream> // std::istringstream
#include <mpi.h>
#include <algorithm> // std::sort
#include "cli11.h"
#include "fprof.h"
#include "spdlog/sinks/stdout_color_si... |
int/*if*/ XhGl7
, WIn92,Dqx
,
cbU , nne, h0F, Je ,IcK , lRG
, XLmM, UT/*k1*/, nkIV,IUb //
,xS/*ZH*/,/*4I*//**/
vdq /*RX*/, n6 , Kek
, wRLm
,s3Qw
,
QFh
,NLO3, WBwZD
, NtS8it , RNANgv ,Aw
,z/**/ , /**/wSy,
OuYeI, vbBi,F,t ,//
TeQ,yK, Nm1x, o ,
WT
,/*dKO*/AIp7 ,//Uh2
//P
YPl8 , cf9OS/*hD*/
;void f_f0 /... |
/**
* Copyright (c) 2016 SQLines
*
* 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 2019 Carnegie Technologies
*
* 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... |
/* The MIT License (MIT)
Copyright (c) 2018 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy,... |
//
// Created by Miruna on 6/26/2021.
//
#include <chrono>
#include <iostream>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include "Renderer.h"
#include "DrawPrimitives.h"
#include "PoseEstimation.cpp"
//Camera settings for laptop camera
const int camera_width = 640;
const int camera_height = 480;... |
#include <stdio.h>
#include <tradingcore2/tradingcore2.h>
struct trData {
int nums;
float perValidData;
float durationYear;
time_t maxUpDay;
time_t maxDownDay;
time_t maxUpWeek;
time_t maxDownWeek;
time_t maxUpMonth;
time_t maxDownMonth;
time_t maxUpYear;
time_t maxDownYear;
float maxMoneyUpDay... |
/*******************************************************************************
* Copyright 2020-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.