text stringlengths 3.08k 22k |
|---|
#include <string>
#include "fusion_pass.h"
#include "graph_rewrite.h"
#include "cpu/CustomOPs.h"
#include "cpu/Pooling.h"
#include <c10/util/hash.h>
#include <torch/csrc/jit/frontend/error_report.h>
#include <torch/csrc/jit/ir/alias_analysis.h>
#include <torch/csrc/jit/passes/constant_propagation.h>
#include <torch/c... |
//=======================================================================
// Copyright <NAME> 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=======================================================================
... |
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
/*
* MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* Copyright (c) 2021, <NAME> (aka restorer)
*
* Permission is hereby grante... |
/*
Copyright 2014, The University of Texas at Austin
All rights reserved.
THIS FILE IS PART OF THE CONTAINMENT DOMAINS RUNTIME LIBRARY
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 mus... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <cstdint>
#include <ostream>
#include <pup.h>
#include "Options/Options.hpp"
#include "Parallel/CharmPupable.hpp"
#include "Time/Time.hpp"
#include "Time/TimeSteppers/TimeStepper.hpp"
#include "Utilities/Co... |
#include <math.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "reverbsc.h"
#define REVSC_OK 0
#define REVSC_NOT_OK 1
#define DEFAULT_SRATE 48000.0
#define MIN_SRATE 5000.0
#define MAX_SRATE 1000000.0
#define MAX_PITCHMOD 20.0
#define DELAYPOS_SHIFT 28
#define DELAYPOS_SCALE 0x10000000
#define... |
#include "Plan.h"
#include "Heuristic.h"
#include "Packer.h"
#include "Solver.h"
#include "VectorPack.h"
#include "VectorPackContext.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/Support/CommandLine.h"
using namespace llvm;
static cl::opt<bool>
EnableCostVerification("verify-costs",
... |
#include "Dolly/Application.hpp"
#include <Levin/Log.hpp>
Dolly::Application::Application(int argc, char** argv)
{
// Represented the centered position of root window.
const auto[_x, _y] = GetCenteredPosition();
window = XCreateSimpleWindow(app.GetPointerDisplay(), app.GetWindowDisplay(),
_x, _y, width, height... |
/******************************************************/
/* */
/* mitobrevno.cpp - event logging */
/* */
/******************************************************/
/* Copyright 2020 <NAME>.
* This f... |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
#include "hm_heuristic.h"
#include "option_parser.h"
#include "plugin.h"
#include <cassert>
#include <limits>
#include <set>
HMHeuristic::HMHeuristic(const Options &opts)
: Heuristic(opts),
m(opts.get<int>("m")) {
}
HMHeuristic::~HMHeuristic() {
}
void HMHeuristic::initialize() {
cout << "Using h^"... |
#include <stdio.h> // Recommended over iostream for saving space
#include <propeller.h> // Propeller-specific functions
#include "simpletools.h"
#include "dof_class.h"
#include "i2c_mod.h"
#include "efficient_math.h"
//NB reduced and modified version of Dof class
//NB 2 of these chars are no longer... |
#include "noql/noql.hpp"
#include "tests.hpp"
#include <fstream>
#include <sstream>
namespace {
struct TestEntry;
TestEntry* headEntry = nullptr;
TestEntry* tailEntry = nullptr;
struct TestEntry {
typedef void (*fnT)(noq::unittest::Result&, const char*, const std::string&);
const char*... |
/*Created by <NAME> and <NAME>
Script for simulating different multi-stage tajectories given start and goal poses.
*/
#include <moveit/move_group_interface/move_group_interface.h>
#include <moveit/planning_scene_interface/planning_scene_interface.h>
#include <moveit_msgs/DisplayRobotState.h>
#include <moveit_msgs/Di... |
// Begin Main.cpp
#include <stdio.h>
#include <std_srvs/Trigger.h>//追加トゥアン
#include <ros/ros.h>
#include <vision_module/VisionOrder.h>
#include <vision_module/ObjectInfo.h>
#include <dynamic_reconfigure/server.h>
#include <vision_module/object_recognitionConfig.h>
#include <vision_module/object_recognition/config.h>
... |
/*
Boost Competency Test - GSoC 2020
digu_J - <NAME>
<NAME> - INDIA
*/
#include <bits/stdc++.h>
#include <boost/geometry.hpp>
using namespace std;
namespace bg = boost::geometry;
typedef bg::model::point<double, 2, bg::cs::cartesian> point_t;
typedef bg::model::polygon<point_t> poly_t;
const double EPS ... |
#include <iostream>
#include <vector>
#include <utility>
#include <algorithm>
#include <chrono>
using namespace std;
// we have to include this because C-out is too slow
//therefore we will be writing to the console buffer directly
#include <Windows.h>
#include <stdio.h>
//set a console width and height
int nScreenWi... |
//===-- DynamicLoader.cpp -------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include "WaveFieldWriter.h"
#include <iostream>
#include <iomanip>
#include <sstream>
#include <cstdio>
#include <limits>
#include "basisfunctions.h"
#include "GEMM.h"
WaveFieldWriter::WaveFieldWriter(std::string const& baseName, GlobalConstants const& globals, LocalConstants const& locals, double interval, int poi... |
// © Copyright 2021 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 ... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2021 Scipp contributors (https://github.com/scipp)
/// @file
/// @author <NAME>
#include "scipp/dataset/bins.h"
#include "scipp/core/except.h"
#include "scipp/dataset/bin.h"
#include "scipp/dataset/bins_view.h"
#include "scipp/dataset/shape.h"
#include "scipp/va... |
/*
All modification made by Cambricon Corporation: © 2018-2019 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2019, the respective contributors
All rights reserved.
For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
Redistribution and us... |
/* Copyright (c) 2012-2015, The Linux Foundation. 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 ... |
// Clough42 Electronic Leadscrew
// https://github.com/clough42/electronic-leadscrew
//
// MIT License
//
// Copyright (c) 2019 <NAME>
//
// Modified by <NAME> to use an additional MPG input and a left/right lever
// for lathes that have no half-nuts and the nut is directly coupled to the apron.
//
// Permiss... |
/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd. 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... |
/*****************************************************************************
GraphPrim.cpp
Author: <NAME>, 2003
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of th... |
/*
* Copyright (c) 2004-present, 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.
*
*/
#inc... |
#include <udppeer.h>
#include <netlisteners.h>
#include <iostream>
#include <stdio.h>
#include <thread>
#include <atomic>
#include <vector>
using namespace arsee::net;
using namespace std;
using namespace std::placeholders;
struct Statistics
{
std::atomic_int to_packet_send;
std::atomic_int to_packet... |
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstdarg>
#include <map>
#include <queue>
#include "SimpleLogger.h"
using namespace s_logger;
using namespace std;
std::string &utf8to_translit(const std::string &in,... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ppapi/tests/test_case.h"
#include <string.h>
#include <sstream>
#include "ppapi/cpp/core.h"
#include "ppapi/cpp/module.h"
#include "ppapi... |
/** @file
Information about remap plugin libraries.
@section license License
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 ... |
#include <marlin/multicast/DefaultMulticastClient.hpp>
#include <random>
#include <marlin/pubsub/attestation/SigAttester.hpp>
// #include <structopt/app.hpp>
#include <cryptopp/scrypt.h>
#include <cryptopp/modes.h>
#include <cryptopp/keccak.h>
#include <cryptopp/hex.h>
#include <cryptopp/aes.h>
#include <rapidjson/doc... |
/**
* MaNGOS is a full featured server for World of Warcraft, supporting
* the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
*
* Copyright (C) 2005-2016 MaNGOS project <https://getmangos.eu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gen... |
/*
* Copyright 2011 <NAME>
*
* This file is part of Jam - see jam.c for Copyright information.
*/
/*
* constants.c - constant objects
*
* External functions:
*
* constants_init() - initialize constants
* constants_done() - free constants
*
*/
#include "constants.h"
void constants_init( void )
{
... |
/*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
#include "SandboxLayer.h"
#include "stb_image/stb_image.h"
#include "glfw/include/GLFW/glfw3.h"
using namespace GLCore;
using namespace GLCore::Utils;
SandboxLayer::SandboxLayer()
{
}
SandboxLayer::~SandboxLayer()
{
}
void SandboxLayer::OnAttach()
{
EnableGLDebugging();
// Init here
m_Shader.push_back(Shader::Fr... |
#include <OpenGL/gl.h> // The GL Header File
#include <cmath>
#include <stdlib.h>
#include <GL/glut.h> // The GL Utility Toolkit (Glut) Header
#include <iostream>
#include <vector>
#define _USE_MATH_DEFINES
//Width and height of the window. If necessary, change these values.
#define WIDTH 800
#define HEIGHT 600
... |
#include "Setup.hpp"
static gpio_num_t UsedLEDPin;
static int UsedLEDTimeOn;
static int UsedLEDTimeOff;
void blink_task(void *pvParameter)
{
while(1) {
gpio_set_level(UsedLEDPin, 1);
vTaskDelay(UsedLEDTimeOff / portTICK_PERIOD_MS);
gpio_set_level(UsedLEDPin, 0);
vTaskDelay(UsedLEDTimeOn / portT... |
#include <stdio.h>
#include <locale>
#include <time.h>
#include "algorithms/Ilona/Browerfs.h"
#include "ExpAlgInterfaces.h"
using namespace std;
using namespace Ilona;
//NTL_CLIENT
BrowerSigned::BrowerSigned()
{
setAuthor(L"<NAME>");
setMethod(L"BrowerSigned");
vecx[conv<ZZ>(0)]=conv<ZZ_p>(0);
bin... |
#include "constants.hpp"
namespace YAML {
template <> struct convert<ImVec4> {
static Node encode(const ImVec4 &rhs) {
Node node;
node.push_back(rhs.x);
node.push_back(rhs.y);
node.push_back(rhs.z);
node.push_back(rhs.w);
return node;
}
static bool decode(const Node &node, ImVec4 &rhs) {
... |
/*
* Copyright 2015 <NAME>
* File: Context.cpp
*
* 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 o... |
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <vector>
#include <zlab_drone/Circles.h>
#include <zlab_drone/Circle.h>
#include <std_msgs/Bo... |
/*
* 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... |
#include <iostream>
#include <fstream>
#include <time.h>
#include <sys/timeb.h>
#include "biosandbox/Modules.h"
using namespace cv;
unsigned long getMilliCount(){
timeb tb;
ftime(&tb);
unsigned long nCount = tb.millitm;
nCount += (tb.time & 0xfffff) * 1000;
return nCount;
}
template<class T>
std::string toS... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2016, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
#include "nvm_file.h"
AbstractFile::~AbstractFile() {}
nvAddr SkiplistFile::NewPage(nvOffset num) {
nvAddr page = mng_->Allocate(SizePerBlock);
blocks_.Add(num, page);
return page;
}
void SkiplistFile::locate(ull pos, ul *page, ul *offset) {
pos += FileInfoSize;
*p... |
// This file was removed but it should not have been.
// This comment is to restore it.
#include "PhysicsTools/HepMCCandAlgos/interface/FlavorHistoryFilter.h"
#include "PhysicsTools/HepMCCandAlgos/interface/FlavorHistoryProducer.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/MessageLogger/inter... |
// ***************************************************************************
//
// HttpTools Project
//
// This file is a part of the HttpTools project. The project was created at
// Reykjavik University, the Laboratory for Dependable Secure Systems (LDSS).
// Its purpose is to create a set of OMNeT++ components to s... |
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include "project.h"
#include "thread.h"
#include "BluetoothManager.h"
#include "util.h"
#include "XMLParser.h"
#include "TelldusManager.h"
#include "TCPManager.h"
#include "Configuration.h"
#include "threadsid.h"
#include "ProgramManager.h"
... |
#include <angles.hpp>
#include <cross_cal.hpp>
#include <filter.hpp>
#include <house.hpp>
#include <Landsat.hpp>
#include <sat_meas.hpp>
#include <sat_state.hpp>
#include <ukf.hpp>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <cmath>
#include <iostream>
#include <stdexcept>
#include <string>
... |
/* Copyright (c) <2009> <<NAME>>
*
* 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,
* including commercia... |
// TODO Mark regions
/*++++++++
Written by <NAME>, Jan 2018.
This is SCRIMP++.
Details of the SCRIMP++ algorithm can be found at:
<NAME>, <NAME>, <NAME>, <NAME> and <NAME>,
"Solving Time Series Data Mining Problems at Scale with SCRIMP++", submitted to KDD 2018.
Usage: >> scrimpplusplus InputFileName SubsequenceLen... |
/*
* MtpDevice.cpp
*
* Author: <NAME>
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but WITHO... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "UnrealEd.h"
#include "FbxImporter.h"
#include "FbxExporter.h"
#include "VertexAnimTools.h"
#include "Animation/VertexAnim/VertexAnimation.h"
/** Util to find all meshes with a vertex cache deformer */
void RecursiveFindVertexAnimMeshes(FbxNode* No... |
#include "matBasic_real.hpp"
#include "matBasic_testUtil.hpp"
i_real_matrix genTestMatrixA(const std::size_t nAnt)
{
std::size_t nrows = (nAnt - 1) * nAnt + 1;
i_real_matrix resMat{initRealMatrix(nrows, nAnt)};
for (std::size_t row{0}; row < nAnt; ++row)
{
for (std::size_t col{0}; col ... |
#include "FAT.h"
#include "FAT32.h"
#include "Directory.h"
#include "File.h"
#include <algorithm>
#include <vector>
#include "Log.h"
#include "util/String.h"
/**
* Checks if we can attach to the given partition. We'll verify if the GUID is one that matches,
* then read the first sector (for the FAT header) and ver... |
#include <epicsStdio.h>
#include <pv/reftrack.h>
#include <pv/standardField.h>
#include "coordinator.h"
namespace pvd = epics::pvData;
namespace {
pvd::StructureConstPtr type_signals(pvd::getFieldCreate()->createFieldBuilder()
->setId("epics:nt/NTScalar:1.0")
... |
/**
* @file SurfaceMuons.cxx
* @brief declaration and definition of SurfaceMuons
*
* $Header: /nfs/slac/g/glast/ground/cvs/flux/src/SurfaceMuons.cxx,v 1.12 2005/03/27 03:01:46 burnett Exp $
*/
#include "flux/Spectrum.h"
#include "flux/SpectrumFactory.h"
#include "CLHEP/Random/RandFlat.h"
#include <string>
#include <... |
/*
* Copyright (C) 2007-2012 German Aerospace Center (DLR/SC)
*
* Created: 2010-08-13 <NAME> <<EMAIL>>
* Changed: $Id: add_attribute_check.cpp 173 2012-10-08 20:06:49Z markus.litz $
*
* Version: $Revision: 173 $
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... |
/*
* main.cpp
*
* Created on: Jan 30, 2017
* Author: scb
*/
#include "AOCL.h"
#include <stdio.h>
#include <string.h>
#define PLATFORM_NAME "Intel(R) FPGA"
#define BINARY_NAME "pipes_dataflow.aocx"
#define SIZE 100
#define QUEUES_SIZE 2
cl_int status;
cl_context context = NULL;
cl_command_queue queues[Q... |
/*
* Copyright (c) 2016 University of Cordoba and University of Illinois
* All rights reserved.
*
* Developed by: IMPACT Research Group
* University of Cordoba and University of Illinois
* http://impact.crhc.illinois.edu/
*
* Permission is hereby granted, free of charge, to ... |
#ifndef HAVE_LLVM
#error "This code needs LLVM enabled"
#endif
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <llvm/IR/Instructions.h>
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Modul... |
/***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* obje... |
/**
\file sort.cpp
Elegant reference implementations of some common sorting
algorithms:
- heapSort
- insertionSort
- mergeSort
- quickSort
Written in C++ with an eye towards portability to other languages
such as C, Java, GLSL, CUDA, JavaScript, and Python.
\author <NAME>, <EMAIL>.
... |
/* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
#include "parsingTable.h"
#include "first_follow.h"
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <sstream>
parsingTable::parsingTable()
{
tok_nontok.read_from_file();
tok_nontok.apply_first();
tok_nontok.apply_follow();
tok_nonto... |
//
// Created by gamerpuppy on 7/8/2021.
//
#include <iostream>
#include <chrono>
#include <cstdint>
#include <thread>
#include <memory>
#include <mutex>
#include "data_structure/fixed_list.h"
#include "constants/Cards.h"
#include "constants/Events.h"
#include "constants/CardPools.h"
#include "game/Game.h"
#include "... |
//
// LSTMTest.cpp
// MNNTests
//
// Created by MNN on 2019/01/15.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <MNN/Interpreter.hpp>
#include "MNNTestSuite.h"
#include "MNN_generated.h"
#include "core/Session.hpp"
#include "core/TensorUtils.hpp"
#include "Tensor_generated.h"
#include "TestUtils.... |
#include <iostream>
#include <chrono>
#include <fstream>
#include <string>
#include <algorithm>
#include <vector>
#include <random>
#include <queue>
#include <sstream>
#include <cstring>
using namespace std;
string hashToCard(const int& hash) {
const string ranks = "23456789tjqka";
const string suits = "cdh... |
#include "server.hpp"
#include "rapidjson/istreamwrapper.h"
#include "rapidjson/schema.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/spdlog.h"
#include <boost/dll.hpp>
#include <chrono>
#include <fstream>
namespace beast = boost::beast; // from <boost/be... |
/*
* Copyright (c) 2015, University of Kaiserslautern
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* ... |
#include "chip8.h"
#include <random>
#include <fstream>
const uint8_t kFontData[] = {
0xF0, 0x90, 0x90, 0x90, 0xF0,
0x20, 0x60, 0x20, 0x20, 0x70,
0xF0, 0x10, 0xF0, 0x80, 0xF0,
0xF0, 0x10, 0xF0, 0x10, 0xF0,
0x90, 0x90, 0xF0, 0x10, 0x10,
0xF0, 0x80, 0xF0, 0x10, 0xF0,
0xF0, 0x80, 0xF0, 0x90, 0xF0,
0xF0, 0x10, 0x... |
/*! @file
@brief MessageBox用関数
@author <NAME>
@date 2002/01/17 aroka 型の修正
@date 2013/03/03 Uchi Debug1.cppから分離
*/
/*
Copyright (C) 1998-2001, <NAME>
Copyright (C) 2002, aroka
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damag... |
#include <Fs/TAR.h>
#include <Logging.h>
#include <Errno.h>
inline static long OctToDec(char* str, int size) {
long n = 0;
while (size-- && *str) {
n <<= 3;
n |= (*str - '0') & 0x7;
str++;
}
return n;
}
inline static long GetSize(char* size){ // Get size of file in blocks
... |
// Copyright 2020 The Chromium OS 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 "typecd/cable.h"
#include <string>
#include <base/files/file_enumerator.h>
#include <base/logging.h>
#include <base/strings/string_number_co... |
/**
@copyright Copyright 2019 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
LIBRARY DEPENDENCY:
((TimingBasic.o))
*/
#include "GunnsRosesTiming.hh"
#include <cstdio>
#include <sstream>
#include <string>
#include <c... |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmDepends.h"
#include "cmFileTime.h"
#include "cmFileTimeCache.h"
#include "cmGeneratedFileStream.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#inclu... |
#include "FiveEval.h"
FiveEval::FiveEval() :
mRankPtr(new short unsigned[MAX_FIVE_NONFLUSH_KEY_INT+1]),
mFlushRankPtr(new short unsigned[MAX_FIVE_FLUSH_KEY_INT+1]) {
uint32_t const face[13] = {TWO_FIVE, THREE_FIVE, FOUR_FIVE, FIVE_FIVE,
SIX_FIVE, SEVEN_FIVE, EIGHT_FIVE, NINE_FIVE, TEN_FIVE, JACK_FIVE,
QUEEN_... |
#include "CanvasDef.hpp"
#include <tuple>
#include <utility>
#undef PRINT_TRIANGLE_DEBUG
#ifdef PRINT_TRIANGLE_DEBUG
#define TRIDBGMSG(fmt, ...) printf(fmt, __VA_ARGS__)
#else
#define TRIDBGMSG(...)
#endif
void Canvas::updateSDLTexture(SDL_Texture* sdlTexture) const {
for (int i = 0; i < m_pixels.size(); i++)
... |
// Copyright (c) 2014 Ollix. 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 (C) 2018-2020, Hisilicon Technologies Co., Ltd. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:... |
/*
* Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it would... |
#include "Map.h"
#include "StateManager.h"
Map::Map(SharedContext *context, BaseState *currentState) :
mContext(context),
mDefaultTile(context),
mMaxMapSize(32, 32),
mTileCount(0),
mTileSetCount(0),
mMapGravity(512.0f),
mLoadNextMap(false),
mCurrentState(currentState)
{
mContext->mG... |
/**
* This file is part of ORB-SLAM3
*
* Copyright (C) 2017-2021 <NAME>, <NAME>, <NAME>, <NAME> and <NAME>, University of Zaragoza.
* Copyright (C) 2014-2016 <NAME>, <NAME> and <NAME>, University of Zaragoza.
*
* ORB-SLAM3 is free software: you can redistribute it and/or modify it under the terms of the GNU General Pub... |
#include <functional>
#include <vector>
#include "common.cpp"
#include "expected.h"
// =============================================================================
// Label index
inline int label_of_position(int i, int j, int k)
{
assert(i >= 0 && j >= 0 && k >= 0);
return (4 * 4 * i) + (4 * j) + k;
}
// ====... |
/* sort word by frequency, sharding version.
1. read input file, shard to N files:
word
2. assume each shard file fits in memory, read each shard file, count words and sort by count, then write to N count files:
count \t word
3. merge N count files using heap.
Limits: each shard must fit in memory... |
// integer_cover.cpp: covering the integers with a posit
//
// Copyright (C) 2017-2020 Stillwater Supercomputing, Inc.
//
// This file is part of the UNIVERSAL project, which is released under an MIT Open Source license.
#include "common.hpp"
// test helpers, such as, ReportTestResults
#include "../tests/utils/test_he... |
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <sstream>
#include "WCSimRecoClusteringUtil.hh"
#include "WCSimRecoDigit.hh"
#include <TDirectory.h>
#include <TH3D.h>
#include <TFile.h>
// A couple of little sort functions for digits
bool SortDigitsByCharge(WCSimRecoDigit *a, WCS... |
#include "MS5837.h"
#include <Wire.h>
const uint8_t MS5837_ADDR = 0x76;
const uint8_t MS5837_RESET = 0x1E;
const uint8_t MS5837_ADC_READ = 0x00;
const uint8_t MS5837_PROM_READ = 0xA0;
const uint8_t MS5837_CONVERT_D1_8192 = 0x4A;
const uint8_t MS5837_CONVERT_D2_8192 = 0x5A;
const float MS5837::Pa = 100.0f;
const float... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "ordering/impl/on_demand_ordering_service_impl.hpp"
#include <unordered_set>
#include <boost/range/adaptor/filtered.hpp>
#include <boost/range/adaptor/indirected.hpp>
#include <boost/range/adaptor/transforme... |
/*
* Copyright (C) 2014 Open Source Robotics Foundation
*
* 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 applicab... |
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Adafruit_MCP4725.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_HMC5883_U.h>
#include <CSV_Parser.h>
#include <SPI.h>
#include <SD.h>
const int chipSelect = A3;
#define KEY A0;
Adafruit_MCP4725 dac;
Adafruit_HMC5883_Unified mag = Adafruit_HMC5883_Unified... |
/*
* Created by <NAME>.
* Copyright (c) <NAME> 2017 All rights reserved.
*
* This file is part of HOG2.
*
* HOG2 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
*... |
//
// Created by bernardo on 1/13/17.
//
#include "Utils.h"
#include "../DroughtMitigationInstruments/Transfers.h"
#include "../SystemComponents/WaterSources/ReservoirExpansion.h"
#include "../SystemComponents/WaterSources/Quarry.h"
#include "../DroughtMitigationInstruments/InsuranceStorageToROF.h"
#include "../System... |
// [[Rcpp::plugins("cpp11")]]
#include <algorithm>
#include <Rcpp.h>
#include "zip.h"
#include "xlsxnames.h"
#include "xlsxvalidation.h"
#include "xlsxbook.h"
#include "xlsxstyles.h"
#include "date.h"
using namespace Rcpp;
// This is the entry-point from R into Rcpp. The main function, xlsx_read_,
// instantiates t... |
/**
* Copyright (C) 2018-2020 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
#include "odom.h"
#include "tracking.h"
#include "glm/gtc/matrix_transform.hpp"
#include <iostream>
#include <chrono>
#include <thread>
Vector2 glmToCustom(glm::vec2 v) {
return Vector2(v.x, v.y);
}
glm::vec2 customToGLM(Vector2 v) {
return glm::vec2(v.getX(), v.getY());
}
// constructors
XDrive::XDrive() : ... |
#include "dispatch.hpp"
#include <queue>
#include <map>
#include <set>
#include <string>
#ifdef __EMSCRIPTEN__
#include<emscripten/threading.h>
#define NUMBER_OF_CORES emscripten_num_logical_cores()
#else
#define NUMBER_OF_CORES std::thread::hardware_concurrency()
#endif
#include <mustache/utils/profiler.hpp>
using ... |
// -*- C++ -*-
//
// Package: Calo
// Class : FWTauProxyBuilderBase
//
// Implementation:
// [Notes on implementation]
//
// Original Author: <NAME>
// Created: Thu Oct 21 20:40:28 CEST 2010
//
// system include files
// user include files
#include "TGeoTube.h"
#include "TEveJetCone.h"
#include... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.