text stringlengths 7 961k |
|---|
/*
* Copyright 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
// Copyright 2016 The Android Open Source 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... |
/*
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... |
#ifndef CANARD_NET_OFP_V13_MESSAGES_ERROR_HPP
#define CANARD_NET_OFP_V13_MESSAGES_ERROR_HPP
#include <cstdint>
#include <iterator>
#include <limits>
#include <utility>
#include <type_traits>
#include <boost/utility/string_ref.hpp>
#include <canard/net/ofp/data_type.hpp>
#include <canard/net/ofp/detail/decode.hpp>
#inc... |
#include "../../../hardware_api.h"
#if defined(STM32F4xx)
#include "../../../../common/foc_utils.h"
#include "../../../../drivers/hardware_api.h"
#include "../../../../drivers/hardware_specific/stm32_mcu.h"
#include "../../../hardware_api.h"
#include "../stm32_mcu.h"
#include "stm32f4_hal.h"
#include "Arduino.h"
#de... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Cmpco developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2015-2017 The CMPCO developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or ... |
#include "gason.h"
#include <ctype.h>
#include <stdlib.h>
#define JSON_ZONE_SIZE 4096
#define JSON_STACK_SIZE 32
JsonAllocator::~JsonAllocator() {
deallocate();
}
void *JsonAllocator::allocate(size_t size) {
size = (size + 7) & ~7;
if (head) {
if (head->used + size <= JSON_ZONE_SIZE) {
char *p = (char *)hea... |
//Day6Task5_RamiWailShoula.cpp
//GeometricShape Base Class implemented as Abstract Class having CalculateArea() method as pure virtual method;
#include<iostream>
using namespace std;
//GeometricShape Base Class as Parent Class
class GeometricShape
{
public:
double height, base, radius;
GeometricShape()
{
height... |
#include <hip/hip_runtime.h>
#include "rpp_hip_host_decls.hpp"
extern "C" __global__ void random_shadow(const unsigned char *input,
unsigned char *output,
const unsigned int height,
const unsigned... |
//--------------------------------------------------------------------------------------
// File: WICTextureLoader.cpp
//
// Function for loading a WIC image and creating a Direct3D runtime texture for it
// (auto-generating mipmaps if possible)
//
// Note: Assumes application has already called CoInitializeEx
//
// Wa... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
#ifndef HEADER_STATE_BASE
#define HEADER_STATE_BASE
#include "state-controller.hpp"
class StateBase {
public:
virtual void update(StateController&, LedControl&, LedControl&, ServoControl&) = 0;
};
#endif |
/*****************************************************************/
/* 09/17/2015 Manually modified by Pei-Hung Lin (lin32@llnl.gov) */
/* Manually fix generated code to have correct array subscript. */
/* Serve as input code for MPI code generation. */
/***********************************************... |
#include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
IL2CPP_EXTERN_C void AsyncTaskMethodBuilder_1_AwaitUnsafeOnCompleted_TisConfiguredTaskAwaiter_t286C97C0AF102C4C0BE55CE2025CC7BD1FB5C20C_TisU3CWaitUntilCountOrTimeoutAsyn... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
/*
* Copyright 2010-2017 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" fil... |
#pragma once
#include "../core/game_rendertarget.hpp"
#include "../core/texture_database.hpp"
#include "../shader/database.hpp"
#include "cmaa2.hpp"
#include "color_grading_regions_io.hpp"
#include "com_ptr.hpp"
#include "ffx_cas.hpp"
#include "helpers.hpp"
#include "postprocess_params.hpp"
#include "profiler.hpp"
#in... |
// Copyright 2020 Intermodalics BVBA
//
// 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... |
#include <cassert>
#include <sstream>
#include "DQM/TrigXMonitorClient/interface/L1ScalersClient.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include "FWCore/ParameterSet/interface/ParameterS... |
int WpOw,wW
, NT3Lr6N,
ks,eUH ,vkgG,//Mi
kYS ,JrX,rT,i,GQ7gS, Z
,Op ,diU ,/*I*/uxY
//CSd8
,Z3,ZQaG
,MNF
,BR,AS ,RuaQ ,
idOB , y
,Kd4rZ
, cn ,
Rg
,X ,
IH,hkng,
u , aOAhev/*xC*/ ,
jUe, MoRRkI ,KV , IspXz9
, ed
, A9Y
,eN, V8H ,NMMY ,
gxa24; void f_f0() {int
AGB ; volatile int FgC,xSh3,
zPy
,/... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <cpp/ie_infer_request.hpp>
#include <openvino/core/except.hpp>
#include <openvino/runtime/infer_request.hpp>
#include <openvino/runtime/remote_tensor.hpp>
#include <openvino/runtime/compiled_model.... |
#include "setup_cmd.h"
using namespace std;
using namespace CoreNs;
using namespace CmdNs;
using namespace AtpgNs;
int main(int argc, char **argv) {
AtpgMgr mgr;
ReadNetlistCmd cmdRdNl("atpg", "read gate-level netlist file", &mgr);
ReportGateCmd cmdRptG("report_gate", "report gate(s) infomat... |
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
//
#include "pch.h"
using namespace std;
///
/// Utility.cpp
///
/// Contains utility functions to format strings, convert time to string, etc.
///
///
/// Returns the string representation of a SYSTEMTIME structure that can be used
///... |
/**
* \file src/jit/impl/executor_opr.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS ... |
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software ... |
#include "TransitionAnim.h"
float TransitionAnim::_ReverseLerp(float start, float end, float value)
{
return -(value - start) / (start - end);
}
TransitionAnim::TransitionAnim()
:_percentage(0.0f),
_box(std::vector<Ball>(), {600, 600})
{
}
float TransitionAnim::GetPercentage()
{
return _percentage;
}
void Tran... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/appflow/model/DatadogSourceProperties.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws... |
#include "Common.h"
#include "BulletRender.h"
#include "BulletManager.h"
#include "Bullet.h"
#include "CurveLaser.h"
#include "PlayerBulletManager.h"
#include "PlayerBullet.h"
#include "Item.h"
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options * o) {
godot::Godot::gdnative_init(o);
}
extern ... |
/**
* @file
* @copyright defined in roxe/LICENSE
*/
#pragma once
#include <roxe/chain/transaction.hpp>
#include <roxe/chain/types.hpp>
#include <boost/asio/io_context.hpp>
#include <future>
namespace boost { namespace asio {
class thread_pool;
}}
namespace roxe { namespace chain {
class transaction_metadata;... |
#if defined(HAVE_CONFIG_H)
#include "config.h"
#endif
#include "resip/stack/SipMessage.hxx"
#include "resip/stack/Helper.hxx"
#include "repro/monkeys/AmIResponsible.hxx"
#include "repro/monkeys/IsTrustedNode.hxx"
#include "repro/RequestContext.hxx"
#include "repro/Proxy.hxx"
#include <ostream>
#include "rutil/Logger.... |
#ifndef BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_SOLARIS_HPP_INCLUDED
#define BOOST_SMART_PTR_DETAIL_SP_COUNTED_BASE_SOLARIS_HPP_INCLUDED
//
// detail/sp_counted_base_solaris.hpp
// based on: detail/sp_counted_base_w32.hpp
//
// Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd.
// Copyright 2004-2005 ... |
#include "emitcrash.h"
EmitCrash::EmitCrash(QWidget *parent, Qt::WFlags flags)
: QMainWindow(parent, flags)
{
ui.setupUi(this);
m_SubDialog=new SubDialog(this);
m_BtnDialog=new BtnDialog(this);
connect(m_BtnDialog,SIGNAL(sendSig()),this,SLOT(testSlot()));
}
EmitCrash::~EmitCrash()
{
}
void EmitCrash::testSlot()... |
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt... |
//
// SVPhysicsWorldBase.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVPhysicsWorldBase.h"
SVPhysicsWorldBase::SVPhysicsWorldBase(SVInst* _app):SVGBase(_app) {
m_type = E_PHYSICS_WORLD_BASE;
m_lock= MakeSharedPtr<SVLock>();
}
SVPhysicsWorld... |
#pragma once
#include <nano/boost/asio/strand.hpp>
#include <nano/boost/beast/core.hpp>
#include <nano/boost/beast/websocket.hpp>
#include <nano/lib/blocks.hpp>
#include <nano/lib/numbers.hpp>
#include <nano/lib/work.hpp>
#include <nano/node/common.hpp>
#include <nano/secure/common.hpp>
#include <boost/property_tree/... |
#pragma once
#ifndef DISH2_PERIPHERAL_READABLE_STATE_INTROSPECTIVE_STATE_RAW_INTROSPECTIVE_STATE_NUMKNOWNQUORUMBITS_HPP_INCLUDE
#define DISH2_PERIPHERAL_READABLE_STATE_INTROSPECTIVE_STATE_RAW_INTROSPECTIVE_STATE_NUMKNOWNQUORUMBITS_HPP_INCLUDE
#include <algorithm>
#include "../../../../../../third-party/conduit/includ... |
#include <tx2_fcnn_node/ros_fcnn_inference.hpp>
#include <tx2_fcnn_node/default_params.hpp>
#include <ros/package.h>
#include <sensor_msgs/image_encodings.h>
#include <camera_calibration_parsers/parse.h>
#include <opencv2/opencv.hpp>
#include <cudaMappedMemory.h>
#include <cudaRGB.h>
#include <preprocessRGB.h>
#inc... |
// Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
/**
* Copyright 2020 Huawei Technologies Co., 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... |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
* Copyright (C) 2011 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retai... |
/* Copyright 2018 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 "../../core/core_headers.h"
#include <wx/dir.h>
class
RemoveINFandNAN : public MyApp {
public:
bool DoCalculation( );
void DoInteractiveUserInput( );
private:
};
IMPLEMENT_APP(RemoveINFandNAN)
// override the DoInteractiveUserInput
void RemoveINFandNAN::DoInteractiveUserInput( ) {
... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include "bgp/bgp_proto.h"
#include <algorithm>
#include <list>
#include <map>
#include <utility>
#include "base/proto.h"
#include "base/logging.h"
#include "bgp/bgp_common.h"
#include "bgp/bgp_log.h"
#include "bgp/bgp_peer.h"
#include "bgp/bgp... |
// Copyright Jo Bates 2015.
// 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)
//
// Please report any bugs, typos, or suggestions to
// https://github.com/Cincinesh/tue/issues... |
/*******************************************************************\
Module: analyses variable-sensitivity
Author: Jez Higgins
\*******************************************************************/
#include <analyses/variable-sensitivity/abstract_environment.h>
#include <analyses/variable-sensitivity/two_value_po... |
#include "gameboy/gameboy.h"
#include <spdlog/spdlog.h>
#include "gameboy/version.h"
namespace gameboy {
gameboy::gameboy()
: cartridge_{},
bus_{make_observer(this)},
mmu_{make_observer(bus_)},
cpu_{make_observer(bus_)},
ppu_{make_observer(bus_)},
apu_{make_observer(bus_)},
l... |
/*******************************************************************************
* *
* Author : Angus Johnson *
* Version : 4.8.4 ... |
#include "slide_window.h"
using namespace hitcrt;
slideWindow::slideWindow()
{
left = nullptr, right = nullptr;
// 暂时设置滑动窗口大小为10
length = 0, max_length = 6;
min_threshold = 50, max_threshold = 140*M_PI, temp_distance = 0.0, max_distance = 0.0;
}
slideWindow::~slideWindow()
{
p = left;
while(p !=... |
#include <stdio.h> // for snprintf
#include <string>
#include <vector>
#include "boost/algorithm/string.hpp"
#include "google/protobuf/text_format.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/net.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/util/db.hpp"
#include "caffe/util/io.h... |
#define PROBLEM "https://yukicoder.me/problems/no/931"
#include "../primitive_root.hpp"
#include "../../convolution/ntt.hpp"
#include "../../modint.hpp"
#include <iostream>
#include <vector>
using namespace std;
using mint = ModInt<998244353>;
int main() {
cin.tie(nullptr), ios::sync_with_stdio(false);
int P;... |
#include "FWCore/Framework/interface/ESValidHandle.h"
#include "FWCore/Utilities/interface/Exception.h"
namespace edm::esvhhelper {
void throwIfNotValid(const void* iProduct) noexcept(false) {
if (nullptr == iProduct) {
throw cms::Exception("Invalid Product") << "Attempted to fill a edm::ESValidHandle with... |
// Copyright (c) 2015-2019, The Dinastycoin 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:
//
// 1. Redistributions of source code must retain the above copyright notice, this l... |
//===-- ARMISelDAGToDAG.cpp - A dag to dag inst selector for ARM ----------===//
//
// 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 <memory>
#include <cstdint>
#include <string>
#include <vector>
#include <algorithm>
#include <istream>
#include <map>
#include <tuple>
#include <utility>
#include "gflags/gflags.h"
#include "glog/logging.h"
#include "json.hpp"
#include "capstone/capstone.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm... |
/*
* 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 ma... |
// Copyright (c) 2012-2016 The Harzcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet/wallet.h"
#include <set>
#include <stdint.h>
#include <utility>
#include <vector>
#include "consensus/val... |
//Copyright (c) 2015 Singapore-MIT Alliance for Research and Technology
//Licensed under the terms of the MIT License, as described in the file:
//license.txt (http://opensource.org/licenses/MIT)
/*
* mtz.cpp
*
* Created on: 30 Jul, 2015
* Author: Chetan Rogbeer <chetan.rogbeer@smart.mit.edu>
*/
#include <da... |
/*************************************************************************/
/* NodePath.hpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// C:\diabpsx\PSXSRC\GMAN.CPP
#include "types.h"
// address: 0x800A4DD0
// line start: 1343
// line end: 1348
void GM_Open__Fv() {
{
// register: 3
register int f;
}
}
// address: 0x80080528
// size: 0x6C
// line start: 118
// line end: 124
struct TextDat *__7TextDat(struct TextDat *this) {
}
// address... |
/**----------------------------------------------------------------------
----------------------------------------------------------------------*/
#include "FWCore/Framework/interface/Principal.h"
#include "DataFormats/Provenance/interface/ProcessConfiguration.h"
#include "DataFormats/Provenance/interface/ProcessHi... |
#ifndef TIMESTAMPPATTERN_HPP
#define TIMESTAMPPATTERN_HPP
// C++ standard libraries
#include <cstddef>
#include <cstdint>
#include <memory>
// Project headers
#include "Defs.h"
#include "FileWriter.hpp"
#include "TraceableException.hpp"
/**
* Class representing a timestamp pattern with methods for both parsing and ... |
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fwl/cfwl_messagesetfocus.h"
#include <memory>
#include "third_... |
#include <cppunit/Exception.h>
#include <cppunit/SourceLine.h>
#include <cppunit/TestFailure.h>
#include <cppunit/TextOutputter.h>
#include <cppunit/TestResultCollector.h>
CPPUNIT_NS_BEGIN
TextOutputter::TextOutputter( TestResultCollector *result,
OStream &stream )
: m_result( resu... |
#include <cstdio>
#include <getopt.h> // to parse long arguments.
#include <string>
using std::string;
#include <iostream>
#include <map>
#include <algorithm>
using std::cin;
using std::cout;
using namespace std;
void countdups(map <string,int> &values){ //-c
for (map<string,int>::iterator i=values.begin();i!=values... |
#include "addeditadrenalinenode.h"
#include "ui_addeditadrenalinenode.h"
#include "masternodeconfig.h"
#include "masternodemanager.h"
#include "ui_masternodemanager.h"
#include "walletdb.h"
#include "wallet.h"
#include "ui_interface.h"
#include "util.h"
#include "key.h"
#include "script.h"
#include "init.h"
#include "... |
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
// check_is_xptr
void check_is_xptr(SEXP s);
RcppExport SEXP _ssdeepr_check_is_xptr(SEXP sSEXP) {
BEGIN_RCPP
Rcpp::RNGScope rcpp_rngScope_gen;
... |
#include "behoimi-test.h"
#include <QStringList>
#include <QtTest>
#include "functions.h"
void BehoimiTest::testHtml()
{
QList<Image*> images = getImages("Danbooru", "behoimi.org", "regex", "blue_legwear rating:safe", "results.html");
// Convert results
QStringList md5s;
md5s.reserve(images.count());
for (Image... |
///-----------------------------------------------------------------
///
/// @file Login.cpp
/// @author Utente
/// Created: 08/10/2014 16:43:03
/// @section DESCRIPTION
/// Login class implementation
///
///------------------------------------------------------------------
#include "Login.h"
#i... |
#define BOOST_TEST_MODULE Onecentcoin Test Suite
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include "db.h"
#include "txdb.h"
#include "main.h"
#include "wallet.h"
#include "util.h"
CWallet* pwalletMain;
CClientUIInterface uiInterface;
extern bool fPrintToConsole;
extern void noui_connect();... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <cstdio>
#include <thread>
#include <fbzmq/zmq/Context.h>
#include <folly/init/Init.h>
#include <gmock/gmock.h>
#include ... |
#pragma once
#include <string>
#include "../../../common.hpp"
#include "../IParsable.hpp"
#include "../MSExcel.common.hpp"
namespace oless {
namespace excel {
namespace structures {
// see: https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-xls/fd656a2c-d5ee-4171-8f65-17a08b9f2262
cl... |
// Copyright 2010-2015 RethinkDB, all rights reserved.
#include "clustering/table_contract/coordinator/coordinator.hpp"
#include "clustering/generic/raft_core.tcc"
#include "clustering/table_contract/branch_history_gc.hpp"
#include "clustering/table_contract/coordinator/calculate_contracts.hpp"
#include "clustering/ta... |
/**
* MOAB, a Mesh-Oriented datABase, is a software component for creating,
* storing and accessing finite element mesh data.
*
* Copyright 2004 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
* retains certain rights in this software.
*
* This l... |
/****************************************************************************
* apps/graphics/NxWidgets/nxwidgets/src/clabel.cxx
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modifica... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full licence information.
//
#include "stdafx.h"
#include <xmmintrin.h>
#include <emmintrin.h>
#include <tmmintrin.h>
#include "BlockHandlerSSE.h"
#include "BlockMultiplierMatrixUtil.h"
n... |
#include "fileutils.h"
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <iostream>
#include <string>
#include <tuple>
namespace fs = boost::filesystem;
namespace po = boost::program_options;
void fail(std::string msg) {
std::cout << " failed!" << std::endl;
std::cerr << "Error: " << ... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* 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.
*/
#include <cstring>
#include <future>
#include <tensorpipe/benchmark/channel_registry.h>
#include ... |
#include <iostream>
#include <sstream>
#include <string.h>
#include <unistd.h>
#include "trick/MSSocket.hh"
#include "trick/Master.hh"
#include "trick/tc_proto.h"
#include "trick/exec_proto.h"
#include "trick/command_line_protos.h"
Trick::MSSocket::MSSocket() : tc_dev() {
tc_dev.disabled = TC_COMM_FALSE ;
tc... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Crossbar switch
namespace AxbsMgpcr0{ ///<Master General Purpose Control Register
using Addr = Register::Address<0x40004800,0xfffffff8,0x00000000,std::uint32_t>;
///Arbitrates On Undefined Length Bursts
enum class AulbVal ... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdftext/cpdf_textpage.h"
#include <algorithm>
#include <utili... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
//=================================================================================================
/*!
// \file src/mathtest/dmatsmatkron/LDbSCb.cpp
// \brief Source file for the LDbSCb dense matrix/sparse matrix Kronecker product math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// ... |
// Copyright (c) 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 "extensions/common/manifest_handlers/default_locale_handler.h"
#include <memory>
#include "base/files/file_enumerator.h"
#include "base/fil... |
#include "Edge.hpp"
#include "LOG.hpp"
const double bs_margin = 1e-7;
void Edge::initWithObs(Eigen::Vector2d obs) {
LOG_CHECK("Init with obs, this address is: %x, size is %lu", this, this->size());
Eigen::Vector2d front_beam = this->front().block<2, 1>(0, 0) - obs, back_beam = this->back().block<2, 1>(0, 0) -... |
#include "rts/buffer/BufferReference.hpp"
#include "rts/buffer/BufferManager.hpp"
#include <cassert>
//---------------------------------------------------------------------------
// RDF-3X
// (c) 2009 Thomas Neumann. Web site: http://www.mpi-inf.mpg.de/~neumann/rdf3x
//
// This work is licensed under the Creative Commo... |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2017-2020 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... |
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: Itetator_test.cpp (utilities)
// Authors: Chuck Jacobs
//
////////////////////////////////////////////////////////////////////////////////////////////////... |
#pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... |
/*
* CondSet.cpp
*
* Created on: Oct 31, 2013
* Author: yiwu
*/
#include "CondSet.h"
namespace swift {
namespace absyn {
CondSet::CondSet(int l, int c, VarDecl var, Expr* cond) :
SetExpr(l, c), var(var) {
if (cond != nullptr)
this->add(cond);
}
CondSet::~CondSet() {
}
VarDecl& CondSet::getVar()... |
/*
Copyright (c) 2018-2021 Piotr Doan. All rights reserved.
Software distributed under the permissive MIT License.
*/
#pragma once
#include <Core/System/EngineSystem.hpp>
#include "Graphics/RenderState.hpp"
namespace Platform
{
class FileHandle;
}
/*
Texture
Encapsulates an OpenGL texture o... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
// DO NOT EDIT! This file was generated by CustomTasks.DependencyPropertyCodeGen
#include "pch.h"
#include "common.h"
#include "XamlControlsResources.h"
namespace wi... |
/* -*- C++ -*-
* Copyright 2019-2021 LibRaw LLC (info@libraw.org)
*
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for det... |
/*
* graphEdge.hpp
*
* Created on: Apr 22, 2009
* Author: bernard
*/
#ifndef GRAPHEDGE_HPP_
#define GRAPHEDGE_HPP_
namespace graph {
class graphEdge {
public:
// direction enumeration for edges
enum directionT {
NORTH = 0x00,
SOUTH = 0x40,
EAST = 0x80,
WEST = 0xC0
};
// length mask uses the lo... |
//
// IIUView.cpp
// imguiController
//
// Created by Alex on 22/03/2018.
//
#include "IUView.hpp"
IUView::IUView()
{
idString = "V" + std::to_string((long)this);
}
void IUView::addAction(int k, IUAction* o)
{
o->sender = this;
if (std::find(_actions[k].begin(), _actions[k].end(), o) == _actions[k].en... |
#include "Sema/TensorType.h"
using namespace CFDlang;
bool TensorType::operator==(const TensorType &rhs) const {
if (getRank() != rhs.getRank())
return false;
for (unsigned i = 0; i < getRank(); i++) {
if (getDim(i) != rhs.getDim(i))
return false;
}
return true;
}
const std::string TensorTyp... |
// -*-Mode: C++;-*-
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
//... |
/*
* Copyright (c) 2019, 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 ... |
/*
ID: hsfncd31
TASK: butter
LANG: C++
*/
#include <fstream>
#include <map>
#include <vector>
#include <queue>
std::vector<int> dijkstra(
std::map<int, std::vector<std::pair<int, int>>> graph,
int num_vertices, int source) {
std::vector<int> distance(num_vertices, -1);
distance... |
#include <iostream>
using namespace std;
int main ()
{
char name[8]="SIBAUSk";
for (int i=0;i<8;i++)
cout<<name[i];
return 0;
} |
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.