text stringlengths 3.08k 22k |
|---|
/*
* Copyright 2008, 2009, 2014 Free Software Foundation, Inc.
* Copyright 2014 Range Networks, Inc.
*
*
* This software is distributed under the terms of the GNU Affero Public License.
* See the COPYING file in the main directory for details.
*
* This use of this software may be subject to additional restrictions.
* S... |
// Simplex noise functions based on paper and example code from <http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf>.
/*
* A speed-improved simplex noise algorithm for 2D, 3D and 4D in Java.
*
* Based on example code by <NAME> (<EMAIL>).
* Optimisations by <NAME> (<EMAIL>).
* Better rank ordering meth... |
/*
* Copyright (c) <NAME> 2013.
* The following source file belongs to the open-source project Pikifen.
* Please read the included README and LICENSE files for more information.
* Pikmin is copyright (c) Nintendo.
*
* === FILE DESCRIPTION ===
* Day results state class and results state-related functions.
*/
#i... |
/*
* Miniapp that uses the artificial benchmark cell type to test
* the simulator infrastructure.
*/
#include <fstream>
#include <iomanip>
#include <iostream>
#include <nlohmann/json.hpp>
#include <arbor/profile/meter_manager.hpp>
#include <arbor/benchmark_cell.hpp>
#include <arbor/context.hpp>
#include <arbor/dom... |
#include "config.h"
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <iostream>
#include <iomanip>
#include <signal.h>
#if WIN32
#include <windows.h>
#else
#if DEBUG
#include "segment.h"
#endif
#include <sys/select.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h... |
#include "Mesh.h"
#include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
Mesh::Mesh(std::vector<Vertex> vertices, std::vector<unsigned int> indices, std::vector<std::shared_ptr<Texture>> textures)
: m_vertices(vertices), m_indices(indices), msp_Textures(textures),
m_v_count(vertices.size()), m_i_count(in... |
/*************************************************************************/
/* */
/* Centre for Speech Technology Research */
/* University of Edinburgh, UK */
/* ... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
/****************************************************************************
* VCGLib o o *
* Visual and Computer Graphics Library o o *
* _ O _ *
* Co... |
// Copyright 2020-2022 OpenDR European Project
//
// 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... |
#include "stdafx.h"
#include "Image2D.h"
#include "D3D.h"
#include <iostream>
#include <vector>
#include <fstream>
#include "MatlabInterface.hpp"
void Image2D::ExportBmp(const char* filename) const
{
unsigned char file[14] = {
'B', 'M', // magic
0, 0, 0, 0, // size in bytes
0, 0, // app data
0, 0, // app data... |
// Copyright 2012 Cloudera 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 wr... |
/***************************************************************************
* Copyright 1998-2018 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... |
//
// CollisionHandler.cpp
// TimGameLib
//
// Created by <NAME> on 28/10/2014.
// Copyright (c) 2014 tbrier. All rights reserved.
//
// =============================================================================
// Include Files
// -----------------------------------------------------------------------------
#i... |
/*************************************************************************
* Copyright (C) [2019] by Cambricon, 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 ... |
/*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... |
//
// Created by succlz123 on 17-9-6.
//
#include <algorithm>
#include "GifBlockWriter.h"
using namespace blk;
void GifBlockWriter::writeHeaderBlock(std::ofstream &file) {
file.write("GIF89a", 6);
}
static const uint32_t GLOBAL_COLOR_TABLE_FLAG = 1 << 7;
static const uint32_t LSD_SORT_FLAG = 1 << 3;
void GifBl... |
#include <lifter/lifter.h>
using namespace lifter::RV64;
void Lifter::lift_ecall(BasicBlock *bb, reg_map &mapping, uint64_t ip, uint64_t next_addr) {
// the behavior of the ECALL instruction is system dependant. (= SYSCALL)
// we give the syscall the address at which the program control flow continues (= next... |
/*
* Copyright (c) 2012-2015 <NAME>
*
* This file is part of GamingAnywhere (GA).
*
* GA is free software; you can redistribute it and/or modify it
* under the terms of the 3-clause BSD License as published by the
* Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clause
*
* GA is distribut... |
/* ****************************************************************
*
* Copyright 2015 Samsung Electronics 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
*
... |
#include <cstdio>
#include <cstring>
#define MAXN 20007
using namespace std;
struct Edge {
int next, to, weight, index;
} e[MAXN << 1];
int head[MAXN], etp = 0;
void build_edge(int f, int t, int w, int i) {
e[++etp].to = t;
e[etp].index = i;
e[etp].weight = w;
e[etp].next = head[f];
h... |
#include <cstdint>
#include <cstddef>
#include <cstdio>
#include <array>
#include <deque>
#include <numeric>
#include <vector>
#include "asmfunc.h"
#include "acpi.hpp"
#include "fat.hpp"
#include "frame_buffer_config.hpp"
#include "graphics.hpp"
#include "interrupt.hpp"
#include "keyboard.hpp"
#include "layer.hpp"
#i... |
/************************************************************************
3D Quadric Error Metrics
Copyright (C) 1998 <NAME>. See "COPYING.txt" for details.
$Id: MxQMetric3.cxx,v 1.13.2.1 2002/01/31 19:29:48 garland Exp $
************************************************************************/
#... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**************************************************************************************************
*** This file was autogenerated from GrRectBlurEffect.fp; do not modify.
... |
#include "ext.h"
#include "ext_common.h"
#include "z_dsp.h"
#include <memory>
#include "../limi~/c74_lib_dcblocker.h"
#include "../limi~/c74_min_operator_vector.h"
#include "../limi~/c74_min_dataspace.h"
#include "../limi~/c74_lib_limiter.h"
#ifdef MC_VERSION
#define LIMI_NAME "mcs.limi~"
#else
#define LIMI_NAME "lim... |
// Copyright (c) 2018 Graphcore Ltd. All rights reserved.
// Test for the Dynamic Slice adn Dynamic Slice update 2d vertices
//
#define BOOST_TEST_MODULE DynamicSliceCodeletTest
#include <poplar/Engine.hpp>
#include <poplibs_support/TestDevice.hpp>
#include <popops/Zero.hpp>
#include "poputil/VertexTemplates.hpp"
#in... |
#include "eos/core/Landmark.hpp"
#include "eos/core/LandmarkMapper.hpp"
#include "eos/morphablemodel/MorphableModel.hpp"
#include "eos/morphablemodel/Blendshape.hpp"
#include "eos/fitting/fitting.hpp"
#include "eos/render/utils.hpp"
#include "eos/render/texture_extraction.hpp"
#include "opencv2/core/core.hpp"
#include... |
#include "CorePch.h"
#include "X264Codec.h"
#include <cpputil/Conversion.h>
using namespace rtp_plus_plus::media;
X264Codec::X264Codec()
:nals(nullptr),
encoder(nullptr),
m_uiTargetBitrate(0),
m_uiEncodingBufferSize(0),
m_uiMode(0),
m_dCbrFactor(0.8),
m_uiMaxSliceSize(m_uiMaxSliceSize)
{
}
... |
//
// SVMtl3D.cpp
// SVEngine
// Copyright 2017-2020
// <NAME>,<NAME>,<NAME>,<NAME>,<NAME>,<NAME>
//
#include "SVMtl3D.h"
#include "../basesys/SVCameraMgr.h"
#include "../mtl/SVTexture.h"
#include "../rendercore/SVRenderer.h"
#include "../node/SVCameraNode.h"
SVMtl3D::SVMtl3D(SVInst *_app, cptr8 _shader)
:SVMtlCore(_a... |
#include "card.h"
#include <algorithm>
#include <QtQml>
QString Card::name() const {
return m_name;
}
void Card::setName(const QString &value) {
m_name = value;
emit dataChanged();
}
QString Card::id() const {
return m_id;
}
QString Card::cardSet() const {
return m_cardSet;
}
QString Card::typ... |
// BEGINLICENSE
//
// This file is part of helPME, which is distributed under the BSD 3-clause license,
// as described in the LICENSE file in the top level directory of this project.
//
// Author: <NAME>
//
// ENDLICENSE
#if BUILD_STANDALONE
#include "helpme_standalone.h"
#else
#include "helpme.h"
#endif
#include <c... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "tools/DDLTileHelper.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkDeferredDisplayListRecorder.h"
#include "include/core/SkPicture.h"
#include "incl... |
//============================================================================
//
// SSSS tt lll lll
// SS SS tt ll ll
// SS tttttt eeee ll ll aaaa
// SSSS tt ee ee ll ll aa
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emulator"
// SS SS ... |
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define mkp make_pair
#define fi first
#define se second
#define ll long long
#define pii pair<int, int>
#define M 1000000007
#define all(a) a.begin(), a.end()
const long double eps = 1e-10 , pi = acos(-1.0);
inline int dcmp(long double x) {
return (x ... |
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const double PI = acos(-1.0);
struct Complex{
double x,y;
Complex(double _x = 0.0,double _y = 0.0){
x = _x;
y = _y;
}
Complex operator-(const Complex &b)const{
return Complex(x - b.x,y - b.y);
}
Complex o... |
#include "Interface.h"
#include "Log.h"
#include "MiscUtils.h"
#include "ShmInterface.h"
#include "plf_nanotimer/plf_nanotimer.h"
#ifdef _WIN32
# define APPNAME "shm_test.exe"
# ifndef NOMINMAX
# define NOMINMAX
# endif
# include <windows.h>
#else
# define APPNAME "shm_test"
# include <unistd.h>
# include <stdio.h>
... |
/**
Copyright (c) 2016, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the ... |
// Copyright 2018-2019 <NAME> University. See LICENSE file for terms.
#include <rose.h>
#include <gtest/gtest.h>
#include <libpharos/typedb.cpp>
#include <libpharos/descriptors.hpp>
#include <libpharos/ir.hpp>
#include <libpharos/wp.hpp>
#include <libpharos/path.hpp>
#include <libpharos/descriptors.hpp>
#include <lib... |
#pragma once
enum
{
TE_BEAMPOINTS = 0x00, // beam effect between two points
TE_SPRITE = 0x01, // additive sprite, plays 1 cycle
TE_BEAMDISK = 0x02, // disk that expands to max radius over lifetime
TE_BEAMCYLINDER = 0x03, // cylinder that expands to max radius over lifetime
TE_BEAMFOLLOW = 0x04, // create a lin... |
/*******************************************************************************
* Copyright 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.a... |
/***************************************************************************
* Copyright 1998-2018 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... |
#include <stdlib.h>
#include <iostream>
#include <string>
#include <fstream>
#include <algorithm>
#include <ctime>
#include <cstdlib>
#include <utility>
#include <cblas.h>
#include "openblas/matrix.hpp"
#include "openblas/nn.hpp"
using namespace std;
const string TRAIN_FILE_PATH = "data/mnist/train.csv";
const strin... |
#include "room.h"
#include "defines.h"
#include "request.h"
#include "util.h"
#include <bits/stdc++.h>
extern Matrix::Client* client;
enum struct RoomFileField: u8 {
name,
topic,
avatarUrl,
roomId,
canonicalAlias,
lastMsg,
events,
members,
end = 0xFF,
};
#define D if(0)
Room::Room(FILE* fp) {
readFromFi... |
// Copyright (c) 2012-2018 LG Electronics, 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... |
/*
* Copyright (C) 2017 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS AL... |
//====== Copyright 1996-2005, Valve Corporation, All rights reserved. =======
//
// Purpose:
//
//=============================================================================
#include "vpc.h"
#include "dependencies.h"
extern void V_MakeAbsoluteCygwinPath( char *pOut, int outLen, const char *pRelativePath );
exter... |
// Copyright (c) 2019 The ION Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "tokens/tokengroupconfiguration.h"
#include "tokens/tokengroupmanager.h"
#include "tokens/tokengroupwallet.h"
#include <univ... |
//------------------------------------------------------------------------------
// TestRauAutomatica
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Author: <NAME>
// Created: 2016.11.07
//
/**
* Test driver for RauA... |
/******************************************************************************
* NOTICE *
* *
* This software (or technical data) was produced for the U.S. Government ... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestCoincidentHandleWidgets.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distrib... |
// See LICENSE_CELLO file for license and copyright information
/// @file enzo_EnzoIntegrableUpdate.cpp
/// @author <NAME> (<EMAIL>)
/// @date Mon June 24 2019
/// @brief [\ref Enzo] Implementation of EnzoIntegrableUpdate.
#include "cello.hpp"
#include "enzo.hpp"
void append_grouping_pairs_(std::vector<... |
//
// kern_shiki.cpp
// WhateverGreen
//
// Copyright © 2018 vit9696. All rights reserved.
//
#include "kern_shiki.hpp"
#include <Library/LegacyIOService.h>
#include <Headers/plugin_start.hpp>
#include <Headers/kern_api.hpp>
#include <Headers/kern_cpu.hpp>
#include <Headers/kern_file.hpp>
#include <Headers/kern_io... |
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <models/Corpus.h>
#include "ExchangeAlgorithm/Exchange/Exchange.h"
#include "ExchangeAlgorithm/StochasticExchange/StochasticExchange.h"
#include "ExchangeAlgorithm/ExchangeAlgorithm.h"
#include "readers/ReaderNoOrder.h"
#include "readers/ReaderFrequency.h"
Cor... |
/**
BSD-3-Clause
Copyright 2019 Alliance for Sustainable Energy, LLC
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, this list of conditions
and the f... |
#include "FastSimulation/Utilities/interface/RandomEngineAndDistribution.h"
#include "FastSimulation/SimplifiedGeometryPropagator/interface/Particle.h"
#include "FastSimulation/SimplifiedGeometryPropagator/interface/SimplifiedGeometry.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Paramet... |
/**
* @file srlmate.cpp
* @brief SRL MATE
*
* @author <NAME>
*
* Class implementation of:
* - srlmate (wrapper class for MATE srl tool)
*
* Multilingual Text Processing / Traitement multilingue de textes
* Digital Technologies Research Centre / Centre de recherche en technologies numériques
* National Res... |
/*
* MIT License
*
* Copyright (c) 2018 Erriez
*
* 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, m... |
/* g++ final_4.cpp -o final_4 `pkg-config --libs opencv` -lwiringPi */
#include <opencv2/opencv.hpp>
#include "opencv2/highgui.hpp"
#include <iostream>
#include <vector>
#include <string>
#include "opencv2/videoio.hpp"
#include <opencv2/imgcodecs.hpp>
#include <opencv2/videoio/videoio.hpp>
#include <opencv2/highgui/hig... |
/*
Copyright (c) 2011, The Mineserver Project
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 conditi... |
// sl::RenderPass binding
// Author: <NAME> <<EMAIL>>
#include "py_render_pass.h"
#include "py_context.h"
#include "py_magnum.h"
#include <stillleben/render_pass.h>
#include <stillleben/scene.h>
#include <stillleben/debug.h>
#include <Magnum/Image.h>
using namespace sl::python::magnum;
namespace
{
at::Tensor r... |
#include "auxiliary.hpp"
#include "tools/iterators.hpp"
#include "tools/algorithms.hpp"
#include "tools/Graph.hpp"
#include "tools/SpatialSearch.hpp"
#include <molpp/MolppCore.hpp>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <vector>
using namespace mol::internal;
using namespace testing;
TEST(Iterator... |
//
// Bound.cc
// Copyright (C) 2021 <NAME>
//
#include "Bound.hh"
#include "Intersect.hh"
#include "Ray.hh"
#include "Stats.hh"
#include "Group.hh"
#include "CSG.hh"
#include "Print.hh"
#include "Scene.hh"
#include <sstream>
#include <vector>
// **** Bound Class ****
std::string Bound::desc() const
{
std::ostring... |
/**
* This file is part of the CernVM File System.
*/
#define __STDC_FORMAT_MACROS
#include "cvmfs_config.h"
#include "sqlitemem.h"
#include <cassert>
#include <cstddef>
#include <cstring>
#include <new>
#include "malloc_arena.h"
#include "smalloc.h"
#include "util_concurrency.h"
using namespace std; // NOLINT
... |
#include "stdafx.h"
#include "MirvInputMem.h"
#include "WrpVEngineClient.h"
#include "RenderView.h"
#include <shared/StringTools.h>
#include <shared/rapidxml/rapidxml.hpp>
#include <shared/rapidxml/rapidxml_print.hpp>
MirvInputMem g_MirvInputMem;
void MirvInputMem::Console(IWrpCommandArgs * args... |
// Copyright (C) 2019 <NAME>
// This file is part of the Teal project.
// For conditions of distribution and use, see copyright notice in LICENSE
#include <NDK/Components/NodeComponent.hpp>
#include <memory>
#include "components/shared/blocktilecomponent.hpp"
#include "components/shared/positioncomponent.hpp"
#include... |
#include "src/ToyaCore.hpp"
using namespace Toya;
using namespace Graphics;
using namespace Renderers;
using namespace Input;
using namespace Math;
using namespace Components;
using namespace Utils;
using namespace CoreDrivers;
#define BOX_TEST 0
SceneManagement::Scene activeScene;
void _updateFunction(void)
{
if ... |
#include "Https_Handler.hpp"
#include <cstring>
size_t Https_Handler::httpsResponseCallback(char *ptr, size_t size)
{
return size;
}
size_t httpsResponseHandler(char *ptr, size_t size, size_t nmemb, void *userdata)
{
return ((Https_Handler *)userdata)->httpsResponseCallback(ptr, size*nmemb);
}
int Https_Handler... |
//
// LOTKeyframe.m
// Pods
//
// Created by brandon_withrow on 7/10/17.
//
//
#include "LOTKeyframe.h"
#include "CGGeometry+LOTAdditions.h"
#include "lotbase.h"
/*
+KeyFrameObject has
+ i (PointObject) // Timing curve in tangent
+ o (PointObject) // Timing curve out tangent
+ n (array of string) // Strin... |
#include <gtest/gtest.h>
#include "../../src/sql_parser/boolean_literal.h"
#include "../../src/sql_parser/create_statement.h"
#include "../../src/sql_parser/expression_statement.h"
#include "../../src/sql_parser/infix_expression.h"
#include "../../src/sql_parser/integer_literal.h"
#include "../../src/sql_parser/parser.... |
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
... |
/*
* Copyright (c) <NAME>. All Rights Reserved.
*
* License: See License.txt
*/
/**
* @file
* @brief BreakLine and CSV handling.
* @author <NAME>
*
* Revision History
* 2018-12-16 Convert to fmt.
* 2012-07-25 Fix a CSV read problem with multiline continuation data.
* 2012-04-10 Based on wx-group thread, us... |
#include "narf/console.h"
#include "narf/path.h"
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#if defined(__unix__) || defined(__APPLE__)
#include <unistd.h>
#include <stdlib.h>
#endif
#ifdef __APPLE__
#include <mach-o/dyld.h>
#endif
#ifdef _WIN32
#include <windows.h>
#include <shlobj.h>
#inclu... |
/* Copyright (c) 2017 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distri... |
// Copyright © 2021 <NAME> <<EMAIL>>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ... |
#include "SAM.h"
M5SAM::M5SAM()
// : menuList(NULL),
// menuIDX(0),
// subMenuIDX(0),
// menuCount(0)
{
_keyboardIRQRcvd = LOW;
levelIDX = 0;
menuCount[levelIDX] = 0;
menuIDX = 0;
menucolor = tft.color565( 0,0,128 );
windowcolor = tft.color565( 128,128,128 );
menutextcolor = tft.color56... |
#include <ESP8266WiFi.h>
#include "config.h"
#include "serial.h"
#include "send_email.h"
#include "logger.h"
#include "webserver.h"
#include "ntp_client.h"
#include <EEPROM.h>
#include "platform.h"
#include "device_rtc.h"
#include "water_level.h"
#include "device_pin_in.h"
#include "device_pin_out.h"
#include "appl... |
#include <Arduino.h>
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
/*
* This is an Arduino-based Azure IoT Hub sample for ESPRESSIF ESP8266 board.
* It uses our Azure Embedded SDK for C to help interact with Azure IoT.
* For reference, please visit https://github.com/... |
#include "shared.h"
#include <common/file.h>
#include <common/strlib.h>
using namespace script;
using namespace common;
using namespace xtl;
namespace
{
/*
Константы (имена библиотек)
*/
const char* COMMON_BACKGROUND_COPY_STATE_LIBRARY = "Common.BackgroundCopyState";
const char* ... |
/*
* Westwood Studios VQA Format Demuxer
* Copyright (c) 2003 The ffmpeg Project
*
* This file is part of FFmpeg.
*
* FFmpeg 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.1... |
/**
Copyright 2009-2017 National Technology and Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government
retains certain rights in this software.
Sandia National Laboratories is a multimission laboratory managed and operated
by National Technology and Engineering... |
#include <SdFat.h>
#include <stdlib.h>
#include "constants.h"
#include "sdsource.h"
#include "data.h"
#include "datatypes.h"
#include "player.h"
#include "util.h"
#include "lcd.h"
SdFat fs;
SdFile file;
char filename[100];
void sdsource_init() {
sd = (sdsource*) malloc(sizeof(sdsource));
sd->buf = (unsigned char*... |
//
// SVDClass.cpp
// ClassificationTool
//
// Created by <NAME>
// Copyright © 2018 <NAME>. All rights reserved.
//
#include "SVDClass.hpp"
bool SVDClass::doubleGreater(double a, double b){
return a > b;
};
SVDClass::SVDClass(){};
std::vector<double> SVDClass::SVD(std::vector<std::vector<double>> *m){
s... |
#include "Arduino.h"
#include "HttpClient.h"
HttpClient::HttpClient(Client& cl) : client(&cl){
status = HTTP_STATUS_IDLE;
timeout = HTTP_DEFAULT_TIMEOUT;
debug = false;
}
void HttpClient::setTimeout(int millis){
if(millis>0) timeout = millis;
}
void HttpClient::reset(){
close();
}
void HttpClient::close(){
if... |
// Copyright © 2017 by <NAME> <<EMAIL>>
// Available under the MIT License. See LICENSE for details.
#include "crypto/cipher/des.h"
#include "crypto/cipher/_des.h"
#include "crypto/primitives.h"
using crypto::primitives::ROL32;
using crypto::primitives::RBE64;
using crypto::primitives::WBE64;
static uint64_t P(uint... |
#include "pty.hpp"
#include "support.hpp"
#include "term.hpp"
#include "st.h"
extern char const* stty_args;
extern char const* termname;
extern char const* utmp;
extern char const* scroll;
#if !defined(_WIN32)
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stda... |
/************************************************************************
A JS/Native binding of the v8::juice::PathFinder class, using the
v8::juice::cw binding mechanism.
************************************************************************/
// Author: <NAME> <<EMAIL>>
// License: Public Domain
#include <io... |
// Copyright 2021 The VGC Developers
// See the COPYRIGHT file at the top-level directory of this distribution
// and at https://github.com/vgc/vgc/blob/master/COPYRIGHT
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may o... |
// Copyright 2013 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 "android_webview/browser/aw_devtools_delegate.h"
#include "android_webview/browser/browser_view_renderer_impl.h"
#include "base/bind.h"
#include... |
// Copyright Supranational LLC
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <cstdint> // uint*
#include <cstring> // memcpy
#include <fstream> // file read
#include <iostream> // printing
#include <iomanip> // p... |
#include "landmarked_neighbors.h"
#include <algorithm>
#include <math.h>
template <class Tdata>
Tdata sqrdist(const Tdata *start1,const Tdata *end1,const Tdata *start2)
{
Tdata ret;
Tdata dx;
ret = 0;
for (; start1 < end1; start1++,start2++) {
dx = *start1 - *start2;
ret += dx*dx;
}
return ret;
}
... |
//======================================================================================================================
/** @file freping.cpp
* @author Open Speech Platform (OSP) Team, UCSD
* @copyright Copyright (C) 2020 Regents of the University of California Redistribution and use in source and binary
* form... |
// g2o - General Graph Optimization
// Copyright (C) 2011 <NAME>, <NAME>, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above... |
/*
qstring.cpp
See qstring.h for documentation.
Compile this file and link it with your code.
gSOAP XML Web services tools
Copyright (C) 2000-2016, <NAME>, Genivia Inc., All Rights Reserved.
This part of the software is released under ONE of the following licenses:
GPL, the gSOAP public licen... |
//===- llvm-pdbdump.cpp - Dump debug info from a PDB file -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <math.h>
#include <ctime>
#include <iostream>
#include <string>
#include <vector>
// Boost includes
#include <boost/shared_ptr.hpp>
// ROS includes
#include <ros/ros.h>
#include <tf/transform_broadcaster.h>
#include <tf/transform_listener.h>
#include <visualization_msgs/Marker.h>
// PCL specific includes
#i... |
/*
The 'cutline' method of analyzing reachability in a graph is invoked after paths have been enumerated
through the routing resource graph.
The 'cutline' method estimates the probability that a given source/sink pair can be routed by breaking
up the subgraph between the source/sink into distinct levels. A set of no... |
//
// Copyright (C) 2010 <NAME>
//
// 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) any later version.
//
// This program is dist... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2014 Case Western Reserve University
* <NAME> <<EMAIL>>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* ... |
// <NAME>, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2022
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 6.2.2022.02.24
#include "CLODMeshesWindow3.h"
#include <Applications... |
//
// Created by <NAME> on 2020/11/5.
//
#include "AUF.h"
bool AUF::IsRoot(int v) const {
return GetParent(v) == v;
}
int AUF::GetParent(int NId) const {
return Forest[NId];
}
TPn AUF::GetNIdPn(int NId) const {
// IAssert(PnH.at(NId) != -1.0); // free a bug here
if (PnH.at(NId) == -1.0)
retur... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.