text stringlengths 5 1.04M |
|---|
/**********************************************************************
* File: fpchop.cpp (Formerly fp_chop.c)
* Description: Code to chop fixed pitch text into character cells.
* Author: Ray Smith
*
* (C) Copyright 1993, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "L... |
// Generated from /POI/java/org/apache/poi/hpsf/CodePageString.java
#include <org/apache/poi/hpsf/CodePageString.hpp>
#include <java/io/OutputStream.hpp>
#include <java/lang/Class.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/lang/Object.hpp>
#include <java/lang/String.hpp>
#include <java/lang/Stri... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Keyco developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "primitives/tr... |
/***************************************************************************
*
* Copyright (c) 2003 - 2011 Petri Purho
*
* 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.
* Permissi... |
// Copyright (c) 2011-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/addresstablemodel.h>
#include <qt/guiutil.h>
#include <qt/walletmodel.h>
#include <base58.h>
#include <wallet/... |
#include "Suggest.h"
#include <Columns/ColumnString.h>
#include <Common/typeid_cast.h>
namespace DB
{
namespace ErrorCodes
{
extern const int LOGICAL_ERROR;
extern const int UNKNOWN_PACKET_FROM_SERVER;
extern const int DEADLOCK_AVOIDED;
}
void Suggest::load(const ConnectionParameters & connection_paramet... |
#include <simplechain/contract_object.h>
#include <simplechain/contract_entry.h>
namespace simplechain {
ContractEntryPrintable contract_object::to_printable(const contract_object& obj) {
ContractEntryPrintable printable;
printable.id = obj.contract_address;
printable.owner_address = obj.owner_address;
printa... |
// Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
// for both bitco... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <climits>
#include <AzCore/Casting/numeric_cast.h>
#include <AzCore/Debug/Profiler.h>
#i... |
// $Id$
//
// Copyright (C) 2003-2008 Greg Landrum and Rational Discovery LLC
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include "Dict... |
// Copyright information and license terms for this software can be
// found in the file LICENSE that is included with the distribution
#include "NtType.h"
const char* NtType::StructureId("epics:nt/NTType:1.0");
NtType::NtType(const boost::python::dict& pyDict, const std::string& structureId)
: PvObject(pyDict, ... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2019, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
//
// Created by Aidan on 8/27/2021.
//
// Howdy! This file contains unverified endpoints so they may need touching up.
// Sorry for the mess, I just don't have the time to verify everything by hand,
// especially with the volatile nature of a live service like Discord. If
// something doesn't work come swing by #🔚en... |
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "ListViewEngine.hpp"
#include <cassert>
#include <log/log.hpp>
namespace gui
{
ListViewEngine::ListViewEngine(std::shared_ptr<ListItemProvider> prov)
{
setPr... |
#include "power.hpp"
#include "stm32h7xx_hal.h"
#include "32blit.h"
#include "32blit_battery.hpp"
#include "i2c.h"
#include "i2c-bq24295.h"
namespace power {
// power state we're changing to
enum class Target {
IDLE,
SLEEP,
OFF
};
static uint32_t last_input_time = 0, sleep_fade_start = 0;
floa... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
/*
Copyright 2017 Nanoleaf Ltd.
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 ... |
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softwa... |
#pragma once
#include <algorithm>
#include <math.h>
#include "grid.hpp"
#include "data_column.hpp"
inline void minmod(dataColumn &c, double dxi) {
/*
* Obtain the left and right hand states from linear extrapolation
* and apply the minmod limiter.
*/
int var;
int i;
double a;
double... |
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_StringTools
#include <StringTools.h>
#endif
#ifndef INCLUDED_haxe_Exception
#include <haxe/Exception.h>
#endif
#ifndef INCLUDED_haxe_IMap
#include <haxe/IMap.h>
#endif
#ifndef INCLUDED_haxe_ds_StringMap
#include <haxe/ds/StringMap.h>
#end... |
/**
* 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 "stdafx.h"
#include "Msg.h"
#include "ConvEng.h"
#include "TextFile.h"
#ifdef RTF_SUPPORT
#include "RtfParser.h"
#endif
BOOL ConvertTextFile(
PBYTE pbySource,
DWORD dwFileSize,
PBYTE pbyTarget,
DWORD dwTargetSize,
BOOL fAnsiToUnicode,
PINT pnTargetFileSize)
{
BO... |
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/register-configuration.h"
#include "src/globals.h"
#include "src/macro-assembler.h"
namespace v8 {
namespace internal {
namespace {
#de... |
/* -----------------------------------------------------------------------------
* This file is a part of the NVCM Tests project: https://github.com/nvitya/nvcmtests
* Copyright (c) 2018 Viktor Nagy, nvitya
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the autho... |
#include "catch.hpp"
#include <MatrixMerchant/AMatrix>
#include <amatrix.h>
#include <complex>
#include <fstream>
#include <sstream>
#include <streambuf>
TEST_CASE("AMatrix: Array real General as MatrixXd",
"[AMatrix][Reader][Array][Real][General][Double]")
{
using Matrix = AMatrix::Matrix<double, AMatrix::... |
#pragma once
#include <agency/detail/config.hpp>
#include <agency/detail/requires.hpp>
#include <agency/detail/invoke.hpp>
#include <agency/detail/type_traits.hpp>
#include <agency/execution/executor/detail/utility/invoke_functors.hpp>
#include <agency/execution/executor/properties/bulk.hpp>
#include <agency/execution... |
#pragma once
#include <vector>
#include <memory>
#include "core.hpp"
class Scene;
class Object;
class Camera;
class Renderer
{
private:
unsigned int m_width, m_height;
float m_ar;
RNG m_rng;
Vector sample(float x, float y, const Scene& scene, const std::vector<std::shared_ptr<Object>> &emissiveObjects, cons... |
#pragma once
#include "error.hpp"
#include "uuid.hpp"
#include <filesystem>
#include <fstream>
#include <iostream>
#include <optional>
#include <string>
#include <vector>
class Model {
public:
Uuid id;
};
|
/*
* Copyright (c) 2020, NVIDIA 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 ... |
// RUN: %clang_cc1 -verify -fopenmp %s -Wuninitialized
// RUN: %clang_cc1 -verify -fopenmp -std=c++98 %s -Wuninitialized
// RUN: %clang_cc1 -verify -fopenmp -std=c++11 %s -Wuninitialized
// RUN: %clang_cc1 -verify -fopenmp-simd %s -Wuninitialized
// RUN: %clang_cc1 -verify -fopenmp-simd -std=c++98 %s -Wuninitialized
/... |
//
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// RewriteRowMajorMatrices: Rewrite row-major matrices as column-major.
//
#include "compiler/translator/tree_ops/RewriteRowMajorMatrices.h"
#... |
#include "splashscreen.h"
#include "clientversion.h"
#include "util.h"
#include <QPainter>
#include <QApplication>
SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f) :
QSplashScreen(pixmap, f)
{
// set reference point, paddings
int paddingRight = 50;
int paddingTop ... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "ildasmpch.h"
#include <crtdbg.h>
#include <utilcode.h>
#include "specstrings.h"
#include "debugmacros.h"
#... |
// Copyright (C) 2005, 2006 The Trustees of Indiana University.
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Authors: Douglas Gregor
// Andrew Lumsdaine
#define P... |
/******************************************************************************
* Spine Runtimes License Agreement
* Last updated January 1, 2020. Replaces all prior versions.
*
* Copyright (c) 2013-2020, Esoteric Software LLC
*
* Integration of the Spine Runtimes into software or otherwise creating
* derivative... |
// Copyright (c) 2014-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#include <validation.h>
#include <net.h>
#include <test/test_neom.h>
#include <boost/signals2/sign... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "ngraph/op/util/unary_elementwise_arithmetic.hpp"
namespace ngraph
{
namespace op
{
namespace v0
{
/// \brief Elementwise hyperbolic cosine (cosh) operation.
cl... |
/*****************************************************************************/
/* SFileAddFile.cpp Copyright (c) Ladislav Zezula 2010 */
/*---------------------------------------------------------------------------*/
/* MPQ Editing functions ... |
/** @file
A brief file description
@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 file
to you und... |
#include "MainWindow.h"
#include <QApplication>
#include <QStyleFactory>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setOrganizationName("RangelReale");
app.setOrganizationDomain("rangelreale.com");
app.setApplicationName("ECAppLog");
#ifdef Q_OS_DARWIN
// Use "fusion" style on Mac to ha... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "RobofleetBPMessageStructs.h"
|
//==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... |
#pragma once
#include <jln/mp/number/number.hpp>
#include <jln/mp/functional/identity.hpp>
namespace jln::mp
{
/// \ingroup trait
/// Wrapper for alignof keyword
/// \treturn \number
template<class C = identity>
struct alignof_
{
template<class x>
using f = typename C::template f<number<alignof(x... |
//
// Created by k s on 2021/9/5.
//
#include <learner_pax.hpp>
namespace paxosme {
int PaxLearner::SHALLILEARN_DELAY = SHALLILEARN_TIMEOUT_CONST;
void PaxLearner::Init() {
learner_send_loop_ = std::async(std::launch::async, &PaxLearner::SendingLoop, this);
auto callback= [this]{ShallILearn();... |
//
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
// Portions Copyright (c) 2021 anticrisis <https://github.com/anticrisis>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Offic... |
#include <UECS/World.h>
#include <iostream>
using namespace Ubpa::UECS;
using namespace std;
struct Data1 {};
struct Data2 {};
class DataSystem : public System {
public:
using System::System;
virtual void OnUpdate(Schedule& schedule) noexcept {
schedule.Register([](Data1* d1, Data2* d2) { cout << "writer_sys0"... |
#ifndef RTCP_FB_PUB_HPP
#define RTCP_FB_PUB_HPP
#include <stdint.h>
#include <stddef.h>
#include <string>
#include <cstring>
#include <stdio.h>
#include <arpa/inet.h> // htonl(), htons(), ntohl(), ntohs()
/*
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9... |
/*
Copyright (c) 2005-2019, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Timer/PWM Module
namespace Tpm0Sc{ ///<Status and Control
using Addr = Register::Address<0x40038000,0xffffff00,0x00000000,unsigned>;
///Prescale Factor Selection
enum class PsVal {
v000=0x00000000, ///<Divi... |
// { dg-do compile }
// Copyright (C) 2007-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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 ver... |
/* Copyright 2020 The TensorFlow Authors. 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 law or a... |
#include "filereader.h"
ImageRotator::ImageRotator(const QString &pathToSourceSvg, const QString &pathToRendedImage, const QString &fileType, const char slash, const QString &svgType, QObject *parent)
: QObject(parent)
, m_file(new QFile())
, m_pathToSourceSvgFolder(pathToSourceSvg)
, m_pathToRendedIma... |
// Copyright 2020 The Hds Team
//
// 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 ... |
// Copyright 2020 Phyronnaz
#include "AssetTypeActions_VoxelDataAsset.h"
#include "VoxelEditorModule.h"
#include "VoxelMessages.h"
#include "Framework/MultiBox/MultiBoxBuilder.h"
#include "Framework/Commands/UIAction.h"
#include "EditorStyleSet.h"
#include "EditorReimportHandler.h"
void FAssetTypeActions_VoxelDataAss... |
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.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, or (at your option)
* any later version.
*
* ... |
// ======================================================================
// \title DataPacket.cpp
// \author bocchino
// \brief cpp file for FilePacket::DataPacket
//
// \copyright
// Copyright 2009-2016, by the California Institute of Technology.
// ALL RIGHTS RESERVED. United States Government Sponsorship
// ack... |
/*******************************************************************************
* This file was auto-generated using the AutoGemm.py python script.
* DO NOT modify this file! Instead, make changes to scripts in
* clBLAS/src/library/blas/AutoGemm/ then re-generate files
* (otherwise local changes will be lost a... |
/*
What
Creating message categories
Why
We want custom categories with filtering
How
QLoggingCategory
Q_DECLARE_LOGGING_CATEGORY
Q_LOGGING_CATEGORY
setFilterRules
*/
#include <QCoreApplication>
#include <QDebug>
#include <QLoggingCategory>
//Declare a logging category
Q_DECLARE_LOGGING_CATEGORY... |
/*******************************************************************************
Title : tree.cpp
Author : Lashana Tello
Created on : February 23, 2018
Description : The implementation file for the Tree class
Purpose : To provide a means of representing a single tree in New York... |
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main() {
double pi = 3.14159;
double r;
cout << fixed << setprecision(3);
cin >> r;
double v = 4.0 / 3.0 * pi * pow(r, 3);
cout << "VOLUME = " << v << endl;
return 0;
}
|
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkPixelRef.h"
#include "SkFlattenableBuffers.h"
#include "SkThread.h"
SK_DEFINE_INST_COUNT(SkPixelRef)
// must be a power-of-2. undef to just use 1 mutex
#define P... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/UntagResourceResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#incl... |
//
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2018 Michael Fink
//
/// \file SerialPort.cpp serial port classes
//
#include "stdafx.h"
#include "SerialPort.hpp"
#include "SerialPortImpl.hpp"
#include "SerialPortConfig.hpp"
#include <atlstr.h>
using Serial::SerialPort;
SerialPort::Serial... |
/****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... |
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup() {
ofSetVerticalSync(true);
ofBackgroundHex(0xfdefc2);
ofSetLogLevel(OF_LOG_NOTICE);
ofDisableAntiAliasing();
box2d.init();
box2d.setGravity(10, 0);
box2d.setFPS(30.0);
box2d.registerGrabbi... |
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... |
// Copyright 2020 The Defold Foundation
// Licensed under the Defold License version 1.0 (the "License"); you may not use
// this file except in compliance with the License.
//
// You may obtain a copy of the License, together with FAQs at
// https://www.defold.com/license
//
// Unless required by applicable law or a... |
#include<iostream>
#include<cmath>
#include<cstring>
using namespace std;
long maxWeight(pair<long, long>* arr, long* memo, int n)
{
if (memo[n] != 0)
return memo[n];
long tw = arr[n].second;
for (int i = 0; i < n; i++)
if (arr[i].first < arr[n].first)
tw = max(tw, arr[n].secon... |
#include<iostream>
using namespace std;
template <typename T>
int search (T A[],int n,T key){
for (int i = 0; i < n; i++)
{
if (A[i]==key)
{
return i;
}
}
return -1;
}
int main (){
int n;
cin>>n;
int A[n];
for (int i = 0; i < n; i++)
{
... |
/*
* Copyright (C) 2021 Frank Mertens.
*
* Distribution and use is allowed under the terms of the zlib license
* (see cc/LICENSE-zlib).
*
*/
#include <cc/ForegroundLoggingInstance>
#include <cc/IoStream>
namespace cc {
struct ForegroundLoggingInstance::State: public HttpLoggingServiceInstance::State
{
Stat... |
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinamountfield.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include "netbase.h"
#include "optionsmodel.h"
#include "qvalidatedlineedit.h"
#include "qvaluecombobox.h"
#include <QCheckBox>
#include <QDir>
#include <QIntValidator>
#... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+---------... |
//
// Created by marandil on 08.09.15.
//
#ifndef MDLUTILS_MULTITHREADING_HELPERS_HPP
#define MDLUTILS_MULTITHREADING_HELPERS_HPP
#include <chrono>
#include <thread>
#include <mutex>
#include <mdlutils/typedefs.hpp>
namespace mdl
{
typedef std::lock_guard<std::mutex> mutex_lock;
namespace helper
{
... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkGDALRasterReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softw... |
#include <llhelm.hpp>
#include <algorithm>
#include <set>
#define SCALE_FACTOR 1000000.
namespace OptCompiler
{
Length::Length() = default;
Length::Length(float f)
{
l = f;
}
int Length::cost_material(Length l)
{
return 0;
}
Atom Length::get_type()
{
return TYPE_LENGTH;
}
Angle::Angle() = defaul... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestOSPRayTime.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software i... |
/*
* 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 ... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Flash Control (FC)
namespace FcSecbit{ ///<FC Security Bit Register
using Addr = Register::Address<0x41fff010,0xfffffffe,0x00000000,unsigned>;
///SECBIT
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),R... |
/**
* Copyright (c) 2006-2016 LOVE Development Team
*
* 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,
* ... |
// Copyright (c) 2009-2022 The Regents of the University of Michigan.
// Part of HOOMD-blue, released under the BSD 3-Clause License.
// this include is necessary to get MPI included before anything else to support intel MPI
#include "hoomd/ExecutionConfiguration.h"
#include <fstream>
#include <iostream>
#include <f... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "UiCanvasEditor_precompiled.h"
#include "UiAnimViewAnimNode.h"
#include "UiAnimViewTrack.h... |
// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at htt... |
// Copyright David Abrahams 2002. Permission to copy, use,
// modify, sell and distribute this software is granted provided this
// copyright notice appears in all copies. This software is provided
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#ifndef IMPLIC... |
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<vector>
#define ri register int
using namespace std;
const int MAXN=605*605;
int n,m,len,ans=0x7fffffff;
inline int getint()
{
int num=0,bj=1;
char c=getchar();
while(c... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
#ifndef __REGIONDETECTOR_IDXHELPERS_HPP__
#define __REGIONDETECTOR_IDXHELPERS_HPP__
#include <cassert>
#include <cmath>
namespace RegionDetector {
namespace Helpers {
/**
* @returns the x coordinate of the pixel at index idx in an image with the given width
*/
inline int idxToX(const int idx, const int st... |
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include "utils.h"
#include "random.h"
#include "path_tracer.h"
#include "helpers.h"
#include <fstream>
#include "PathTracerScene.h"
#include "ObjLoader.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace optix;
using na... |
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "/debug.h"
#else
#define db(...)
#endif
#define all(v) v.begin(), v.end()
#define pb push_back
using ll = long long;
const int NAX = 2e5 + 5, MOD = 1000000007;
void solveCase()
{
int m;
cin >> m;
string str;
cin >> str;
int n = s... |
#include "TileWorkgroupRasterizer.h"
#include "CommonWGSL.h"
#include "EncodingContext.h"
#include "utils/WGPUHelpers.h"
#include <string>
#include <iostream>
namespace cassia {
struct ConfigUniforms {
uint32_t width;
uint32_t height;
uint32_t widthInTiles;
uint32_t heightInTil... |
//==============================================================================================
// Originally written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related and
// neighboring rights to this software to the public doma... |
// Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_CONTAINER_DETAIL_HAS_INSERT_RANGE_HPP_INCLUDED
#define FCPPT_CONTAINER_DETAIL_HAS_INS... |
/*
* @Author: gpinchon
* @Date: 2021-03-14 23:55:31
* @Last Modified by: gpinchon
* @Last Modified time: 2021-05-18 18:19:52
*/
#include <Assets/Asset.hpp>
#include <Light/HDRLight.hpp>
#include <Texture/TextureCubemap.hpp>
#include <Texture/TextureSampler.hpp>
#if RENDERINGAPI == OpenGL
#include <Dr... |
/*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... |
/**
* Copyright (C) 2021 FISCO BCOS.
* SPDX-License-Identifier: Apache-2.0
* 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
*
* Un... |
/////////////////////////////////////////////////////////////////////////
// Copyright (c) 2001- Twelve Tone Systems, Inc. All rights reserved.
//
// MotorMixSubclasses.cpp
/////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MotorMixSubclasses.h"
#include "S... |
// Copyright (C) 2019-2020 Zilliz. 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 l... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
#include "state.h"
#include "main.h"
State state;
void statusLed_changeState(State s);
void wiggle_set_detector_timeout();
void mqtt_send_log(const char* s);
void mqtt_send_status(const char* status);
void state_change(State s)
{
#ifdef DEBUG
Serial.print("State changing from: ");
Serial.println(s);
#endif
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.