text stringlengths 7 961k |
|---|
// Copyright (C) 2019-2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
//
#include "shared_test_classes/single_layer/pooling.hpp"
namespace LayerTestsDefinitions {
std::string PoolingLayerTest::getTestCaseName(testing::TestParamInfo<poolLayerTestParamsSet> obj) {
poolSpecificParams poolParams;
... |
#pragma once
#include "VolumeSet.hxx"
#include "Volume.hpp" |
#ifdef BOOST_ALL_NO_LIB
#undef BOOST_ALL_NO_LIB
#endif
#include "data.h"
#include <sstream>
#include <string>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include "buffer.... |
/*
* 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 (c) 2017 Daniel Fekete
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, dis... |
// SPDX-FileCopyrightText: 2021 Open Energy Solutions Inc
//
// SPDX-License-Identifier: Apache-2.0
//
// _ _ ______ _ _ _ _ _ _ _
// | \ | | | ____| | (_) | (_) | | | |
// | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | |
// | . ` |/ _ \ | __| / _` | | __| | '_... |
// 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.
// ============================================================
//
// ApplicationContext.cpp
//
//
// Implements th... |
/*
* Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
#include "DAINO.h"
//-------------------------------------------------------------------------------------------------------
// Function : Init_Refine
// Description : Perform the refine operation during initialization (including the buffer patches)
//
// Note : Allocate patches at level "lv+1"
//
// P... |
#define FUSE_USE_VERSION 26
#include <fuse_lowlevel.h>
#define FDB_API_VERSION 630
#include <foundationdb/fdb_c.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <assert.h>
#include <attr/xattr.h>
#include "util.h"
#include "inflight.h"
#include "fdbfs_ops.h"... |
// Copyright 2020 The TensorFlow Runtime Authors
//
// 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) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/qtwebkitdriver/chrome/chrome_impl.h"
#include "chrome/test/qtwebkitdriver/chrome/devtools_client.h"
#include "chrome/test/qtweb... |
/**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "src/gen-cpp2/service2AsyncClient.h"
#include <folly/io/IOBuf.h>
#include <folly/io/IOBufQueue.h>
#include <thrift/lib/cpp/TApplicationException.h>
#include <thrift/lib/cpp/transport/THead... |
//
// Created by Bradley Austin Davis on 2015/06/08
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "CursorManager.h"
#include <QCursor>
#include <QWidget>
#include <Q... |
/* reverse engineering by sigsegv
* based on TF2 version 20151007a
* server/tf/bot/behavior/spy/tf_bot_spy_escape.cpp
* used in MvM: TODO
*/
CTFBotSpyEscape::CTFBotSpyEscape()
{
}
CTFBotSpyEscape::~CTFBotSpyEscape()
{
}
const char *CTFBotSpyEscape::GetName() const
{
return "SpyEscape";
}
ActionResult<CTFBot... |
//
// OpenCover - S Wilde
//
// This source code is released under the MIT License; see the accompanying license file.
//
#include "stdafx.h"
#include "Method.h"
#include "ReleaseTrace.h"
namespace Instrumentation
{
Method::Method(IMAGE_COR_ILMETHOD* pMethod)
{
memset(&m_header, 0, 3 * sizeof(DWORD));
m_header.S... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkRenderWindow.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 ... |
/************************************************************************************
Filename : Win32_RoomTiny_Main.cpp
Content : First-person view test application for Oculus Rift
Created : 18th Dec 2014
Authors : Tom Heath
Copyright : Copyright 2012 Oculus, Inc. All Rights reserved.
Licen... |
#include <NiftiInt.hpp>
using namespace NiftiInt;
template<typename T1> Image Nifti<T1>::readImage(string path){
// Read the image metadata (but not pixel data) from file
FSLIO *fslio;
void *buffer;
fslio = FslOpen(path.c_str(),"rb");
char* cpath = new char[path.size() + 1];
path.copy(cpath, pa... |
// Copyright 2017 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 "base/android/jni_string.h"
#include "base/android/scoped_java_ref.h"
#include "chrome/android/chrome_jni_headers/PhoneNumberUtil_jni.h"
#include... |
// Copyright 2018 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
#include "pik/single_image_handler.h"
#include "pik/ac_strategy.h"
#include "pik/adaptive_quantization.h"
#include ... |
/*
* Copyright 2018 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 "licen... |
#include <iostream>
using namespace std;
int main()
{
int rows=10;
cout << "Enter number of rows: ";
for(int i = 1; i <= rows; ++i)
{
for(int j = 1; j <= i; ++j)
{
cout << "* ";
}
cout << "\n";
}
return 0;
} |
#include "bitboard.hpp"
#include "magic.hpp"
#include "position.hpp"
namespace chess {
[[nodiscard]] auto Position::captures() const noexcept -> MoveList {
MoveList movelist;
const auto us = m_turn;
const auto them = !us;
const auto ksq = get_king(us);
// Pawns
if (us == Colour::White) {
... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 "ismine.h"
#include "key.h"
#include "keystore.h"
#include "script/scri... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/ent/EntityID.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/interactions/vis... |
/* Copyright 2016 Carnegie Mellon University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2009 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (... |
#include <Sigma/acpi/acpi.h>
#include <Sigma/proc/initrd.h>
#include <lai/core.h>
#include <lai/helpers/sci.h>
#include <lai/helpers/pm.h>
#include <lai/drivers/ec.h>
#include <lai/helpers/pc-bios.h>
static uint64_t revision = 0;
static types::linked_list<uint64_t> acpi_tables{};
static acpi::table* dsdt_override{};
... |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... |
// ***************************************************************
// Copyright (c) 2022 Jittor. All Rights Reserved.
// Maintainers: Dun Liang <randonlang@gmail.com>.
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
// ******************... |
//
// ofxPreview.hpp
// orange
//
// Created by Daniel Almeida on 11/12/2018.
//
#ifndef ofxPreview_hpp
#define ofxPreview_hpp
#include "ofxBaseGui.h"
#include "ofParameter.h"
#include "ofxInputField.h"
class ofxPreview : public ofxBaseGui{
friend class ofPanel;
ofParameter<ofFbo*> value;
std::string ... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/customer-profiles/CustomerProfilesErrorMarshaller.h>
#include <aws/customer-profiles/CustomerProfilesErrors.h>
using namespace Aws::Client;
using n... |
// Copyright (c) 2009-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 <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>
#include "checkpoints.h"
#include "t... |
#pragma once
#include <atomic>
#include <vector>
#include "base/String.hpp"
#include "Bvh.hpp"
#include "RaycastResult.hpp"
#include "RTTriangle.hpp"
namespace FW
{ namespace BDPT
{
// Given a vector n, forms an orthogonal matrix with n as the last column,
// i.e. a coordinate system aligned such that n is its l... |
/* 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 ag... |
#ifndef SFS_LINUX_NU_HPP
#define SFS_LINUX_NU_HPP
#ifndef UNICODE
#ifndef _UNICODE
#ifdef linux
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
using namespace std;
class file
{
public:
string name;
bool is_directory;
bool is_file()
{
return !is_directory;
... |
/****************************************************************************
*
* Copyright (c) 2012-2018 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
#include "App.h"
int main()
{
uWS::App app;
} |
/*=========================================================================
Program: Visualization Toolkit
Module: TestGL2PSTextActor.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 softwa... |
#include <bits/stdc++.h>
#define INF 2000000000
using namespace std;
typedef long long ll;
int read(){
int f = 1, x = 0;
char c = getchar();
while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();}
while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar();
return f * x;
}
struct TreeNode {
int val... |
// ----------------------------------------------------------------------------
//
// Basecode Bootstrap Compiler
// Copyright (C) 2018 Jeff Panici
// All rights reserved.
//
// This software source file is licensed under the terms of MIT license.
// For details, please read the LICENSE file.
//
// --------------------... |
#pragma once
#ifndef AUDIOMACROS_HPP
#define AUDIOMACROS_HPP
#include "../Core/Log.hpp"
#define DEBUG_AUDIO
#define CHECKOPENALERROR(x)\
{\
ALenum error = alGetError();\
MONA_ASSERT(error == AL_NO_ERROR, "OPENAL Error:{0}, while calling function {1}", error, #x);\
}
#if NDEBUG
#define ALCALL(x) x
#else
#ifdef DEBUG... |
/*
* (C) Copyright 2017-2020 Ryan Honeyager (ryan@honeyager.info)
* (C) Copyright 2020-2021 UCAR
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/
/*! \addtogroup ioda_internals_engines_hh
*
* @{
* \file HH-... |
/* file: dbscan_dense_distributed_mpi.cpp */
/*******************************************************************************
* Copyright 2017 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 ... |
// Taken from the Boost.Bind library
// protect_test.cpp
//
// Copyright (c) 2009 Steven Watanabe
// Copyright (c) 2013 Agustin Berge
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/L... |
// Copyright (c) 2014-2018, The goplb 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 list of... |
// Copyright (c) 2017-2018 The Pivx developers
// Copyright (c) 2017-2018 The Stipend developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "multisigdialog.h"
#include "forms/ui_multisigdialog.h"
#include "ask... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... |
// Copyright 2016 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 "platform/text/TextEncodingDetector.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "wtf/text/TextEncoding.h"
namespace blink {
TES... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2009 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (... |
// 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 may... |
/**
* Log forwarder for Titanium CLI
*
* Copyright (c) 2016 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/
#ifndef _TITANIUMWINDOWS_LOGFORWARDER_HPP_
#define _TITANIUMWINDOWS_LOGFORWARDER... |
#include "Catch.h"
#include "TestUtils.h"
#include <Utils/Console.h>
#include <Utils/Memory.h>
using namespace ae;
int main()
{
Memory::enableLeakDetection();
Catch::Session().run();
Console::pressToContinue();
return 0;
} |
#ifndef GRAPHLAB_OARCHIVE_HPP
#define GRAPHLAB_OARCHIVE_HPP
#include <iostream>
#include <cassert>
#include <string>
#include <utility>
#include <stdint.h>
#include <typeinfo>
#include <boost/static_assert.hpp>
#include <boost/utility.hpp>
#include <graphlab/logger/logger.hpp>
#ifdef _MSC_VER
#include <itpp/base/itty... |
#include <AnimatedGameObject.h>
using namespace EGEMotor;
AnimatedGameObject::AnimatedGameObject(Texture* spriteSheet, int Frames, int FramesizeX, int FramesizeY,
float Fps, int FirstFrame, bool Loop)
: GameObject(spriteSheet)
{
//_sprite = new Sprite(spriteSheet);
animation = new Animation(this, Frames, Frames... |
/*
Vector Operations Program
Author: Kaan
Purpose: Implement addition, subtraction, and scalar multiplication
Usage: Run the program, enter the vectors.
*/
// Declare Packages ------------
#include <vector>
#include <iostream>
#include <assert.h>
#include <math.h>
// End of Declare Packages -----
// Functi... |
/* THIS FILE IS GENERATED */
#include "marshalls.h"
#include "Input.h"
void Input::action_press(String p_action, float p_strength){
Variant wasgo_var_action = p_action;
int wasgo_size_action = 10 + String(p_action).size();
uint8_t wasgo_buffer_action[wasgo_size_action];
encode_variant(wasgo_var_action,... |
#ifndef BOX_HPP_
#define BOX_HPP_
#include "BoxType.hpp"
#include <webots/Supervisor.hpp>
using namespace webots;
class Box {
public:
Box(BoxType *boxType, int id, double *size);
void spawnBox(Field *field, const double *spawnLocation,
const double *stationRotation);
void removeBox(Supervisor *s... |
#include <algorithm>
#include <functional>
#include <utility>
#include <vector>
#include "caffe/layers/triplet_accuracy_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void TripletAccuracyLayer<Dtype>::LayerSetUp(
const vector<Blob<Dtype>*>& bottom, const vector<Blob... |
/***
* Copyright (C) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
*
* =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
*
* Portions common to both WinRT and Websocket++ imp... |
// Copyright (c) 2017 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 2021-2022 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 applicabl... |
#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
char maze[10][11];
int pos[10][10];
int vis[20];
vector<vector<pii>> table = {
{{0, 0}, {1, 0}, {0, 1}}, // A
{{0, 0}, {0, 1}, {0, 2}, {0, 3}}, // B
{{0, 0}, {1, 0}, {0, 1}, {0, 2}}, // C
{{0,... |
#include <muduo/net/Buffer.h>
#include <stdio.h>
#include <tls.h>
#include "timer.h"
muduo::net::Buffer clientOut, serverOut;
int64_t clientWrite, serverWrite;
ssize_t net_read(struct tls *ctx, void *buf, size_t len, void *arg)
{
muduo::net::Buffer* in = ((arg == &clientOut) ? &serverOut : &clientOut);
if (in-... |
//===- AliasAnalysis.cpp - Generic Alias Analysis Interface Implementation -==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright 2015 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 in wri... |
/*
* 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
... |
/**
* This file is part of the CernVM File System.
*/
#include "session_context.h"
#include <algorithm>
#include <limits>
#include "curl/curl.h"
#include "cvmfs_config.h"
#include "gateway_util.h"
#include "json_document.h"
#include "json_document_write.h"
#include "swissknife_lease_curl.h"
#include "util/exceptio... |
// Copyright (c) 2018
// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
// ABN 41 687 119 230
//
// Author: Kazys Stepanas
#include <gtest/gtest.h>
#include <ohmheightmap/Heightmap.h>
#include <ohmheightmap/HeightmapMesh.h>
#include <ohmheightmap/HeightmapVoxel.h>
#include <ohmheightmap/TriangleN... |
// Copyright 2019 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/flags/flags.h"
#include "src/torque/implementation-visitor.h"
#include "src/torque/type-oracle.h"
namespace v8 {
namespace internal {
nam... |
extern "C"
{
#include <faasm/host_interface.h>
}
void someFunction()
{
__faasm_backtrace(0);
}
int main(int argc, char* argv[])
{
someFunction();
return 0;
} |
/**************************************************************
*
* 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 y... |
/*******************************<GINKGO LICENSE>******************************
Copyright 2017-2018
Karlsruhe Institute of Technology
Universitat Jaume I
University of Tennessee
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met... |
// Copyright (C) 2006 Tiago de Paula Peixoto <tiago@forked.de>
// Copyright (C) 2004 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)
//
// ... |
#include "MGlobal.h"
const int MGlobal::M_INVALID_INDEX = -1;
const char* MGlobal::SUFFIX_VERTEX_SHADER = "mvs";
const char* MGlobal::SUFFIX_PIXEL_SHADER = "mps";
const char* MGlobal::SUFFIX_MATERIAL = "matl";
const char* MGlobal::SUFFIX_SKELETON = "mske";
const char* MGlobal::SUFFIX_MESH = "mesh";
const char* MGloba... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//General purpose timer
namespace Tim5Cr1{ ///<control register 1
using Addr = Register::Address<0x40000c00,0xfffffc00,0x00000000,unsigned>;
///Clock division
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,... |
//
// Copyright (C) 2017 Microsoft. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include "AppxPackaging.hpp"
#include "MSIXWindows.hpp"
#include <iostream>
#include "Helpers.hpp"
using namespace MsixSample::Helper;
int Help()
{
std::cout << std::endl;
st... |
/*
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Singleton.h>
#include <Kernel/CommandLine.h>
#include <Kernel/Debug.h>
#include <Kernel/Graphics/GraphicsManagement.h>
#include <Kernel/Panic.h>
#include <Kernel/Sections.h>
#include <Kernel/TTY/Conso... |
// Generated by Haxe 4.2.2
#include <hxcpp.h>
#ifndef INCLUDED_flixel_system_debug_GraphicWatch
#include <flixel/system/debug/GraphicWatch.h>
#endif
#ifndef INCLUDED_haxe_Resource
#include <haxe/Resource.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime_graphics_Image
#in... |
// @file compress.cpp
/**
* Copyright (C) 2012 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that i... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils-met... |
#include "StdAfx.h"
#include "hkbCharacterData_7.h"
#include <Common/Serialize/hkSerialize.h>
#include <Common/Serialize/Util/hkSerializeUtil.h>
#include <Common/Serialize/Version/hkVersionPatchManager.h>
#include <Common/Serialize/Data/Dict/hkDataObjectDict.h>
#include <Common/Serialize/Data/Native/hkDataObjectNative... |
//
// Created by Freeman on 2021/6/17.
//
#ifndef DATA_STRUCTURE_REVIEW_CALCULATOR_HPP
#define DATA_STRUCTURE_REVIEW_CALCULATOR_HPP
#include <vector>
#include <stack>
#include "../Exceptions.hpp"
namespace Chapter3 {
/**
* 问题:字符向量infix中保存了中缀式形式的算式,现要求编写程序计算此算式。
* 算式中只包括个位数字,符号只包括+、-、*、/和括号,除法使用整除。
... |
/*
Copyright (c) 2014, 2015, 2016, 2017 Jarryd Beck
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, publi... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "lpt_ngraph_functions/relu_function.hpp"
#include <memory>
#include <ngraph/opsets/opset1.hpp>
#include "ngraph_ops/type_relaxed.hpp"
#include "lpt_ngraph_functions/common/builders.hpp"
#include "low_precision/network_hel... |
#include <iostream>
#include "presidente.h"
#include <string>
Presidente::Presidente(string n, string part, int a_entrada, string p) : Politico{n, part, a_entrada}, pais{p}
{
cout << "PASSANDO POR PRESIDENTE" << endl;
}
void Presidente::imprimeDados()
{
Politico::imprimeDados();
cout << "PAIS: " << pais << endl;
} |
class Solution {
public:
int XXX(vector<int>& nums) {
int n = nums[0], sum = nums[0];
for(int i = 1 ; i<nums.size() ; i++){
n = n>0?n+nums[i]:nums[i];
if(sum<n) sum = n;
}
return sum;
}
}; |
//NO_TEAMBOOK
#include <bits/stdc++.h>
using namespace std;
#define sz(x) ((int) (x).size())
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef long long i64;
typedef long double ld;
const int inf = int(1e9) + int(1e5);
const ll infl = ll(2e18) + ll(1e10);
#include "fft.cpp"
//BEGIN_CODE
const int M... |
#include <iostream>
#include <cstring>
#include <vector>
using namespace std;
int file[501];
long long sum[501];
long long dp[501][501];
long long go(int i, int j)
{
if (i == j)
return dp[i][j] = 0;
if (dp[i][j] != -1)
return dp[i][j];
for (int k = i; k < j; k++)
{
long long ... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Multi-Rate Timer
namespace MrtModcfg{ ///<Module Configuration register. This register provides information about this particular MRT instance, and allows choosing an overall mode for the idle channel feature.
using Addr = Regis... |
/* Copyright 2021 Alibaba Group Holding Limited. 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... |
/* ========================================
* TapeDelay - TapeDelay.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __TapeDelay_H
#include "TapeDelay.h"
#endif
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new TapeDelay(aud... |
// Autogenerated by MCQC
#pragma once
#include "bool.hpp"
#include "nat.hpp"
#include "option.hpp"
#include "io.hpp"
#include "show.hpp"
#include "variant.hpp"
using namespace Bool;
using namespace Nat;
using namespace Option;
using namespace IO;
using namespace Show;
using namespace Variant;
template<class T>
struct... |
#include<iostream>
using namespace std;
int main(int argc, char* argv[])
{
int n = 0;
int k = 0;
cin >> n;
cin >> k;
int m = n / k;
cout << m << endl;
return EXIT_SUCCESS;
} |
/*
* Copyright (c) 2021, 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 ... |
#include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
template <typename R>
struct VirtFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
{
const Virt... |
/*
* Copyright 2008 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkFontMgr.h"
#include "SkScalerContext.h"
SkFontMgr* SkFontMgr::Factory() {
// Always return NULL, an empty SkFontMgr will be used.
retu... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020 Darby Johnston
// All rights reserved.
#include <djvViewApp/ViewWidgetPrivate.h>
#include <djvUI/Style.h>
#include <djvRender2D/FontSystem.h>
#include <djvRender2D/Render.h>
#include <djvSystem/Context.h>
using namespace djv::Core;
namespace djv
{
... |
/*
* Copyright 2019-2021 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.