text stringlengths 7 961k |
|---|
#ifndef DISTANCE
#define DISTANCE
#define FRONT_FOCAL 380.65
#define TOP_FOCAL 481.81
#define BOTTOM_FOCAL 0
#include "opencv2/opencv.hpp"
class Distance
{
public:
static uint32_t getDistanceX(cv::Rect object, float realWidth, cv::Mat frame);
static uint32_t getDistanceY(cv::Rect object, float realHieght, cv... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2019 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 <miner.h>
#include <amount.h>
#include <chain.h>
#include <chainparams.... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
//*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
#include "light_texture.h"
LightTexture::LightTexture() {
set_fill(GradientTexture2D::FILL_RADIAL);
set_fill_from(Vector2(0.5, 0.5)); // Center!
set_fill_to(Vector2(0.5, 0.0));
Ref<Gradient> g;
g.instance();
// Invert default black and white colors.
g->set_color(0, Color(1, 1, 1, 1));
g->set_color(1, Color(0... |
#ifndef X_SOLVER_CONTAINER
#define X_SOLVER_CONTAINER
#include "isolver.h"
#include "ocl_const.h"
#include "ocl_solver.hpp"
#include "sph_model.hpp"
#include "util/ocl_helper.h"
#include "util/x_error.h"
#include <string>
#include <vector>
namespace x_engine {
namespace solver {
using model::sph_model;
using std::share... |
#include "STEPaggrSelect.h"
#include "typeDescriptor.h"
#include <sstream>
/** \file STEPaggrSelect.cc
* implement classes SelectAggregate, SelectNode
*/
SelectAggregate::SelectAggregate()
{
}
SelectAggregate::~SelectAggregate()
{
}
/// if exchangeFileFormat == 1 then delims are required.
Severity SelectAggregat... |
/*
* Copyright 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" f... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
// Copyright (c) 2018-2021, The MKEcoin 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 ... |
//
// Created by Phong Cao.
//
// uncomment to disable assert()
// #define NDEBUG
#include <cassert>
#include <iostream>
#include <cstdio>
#include <iomanip>
#include <ios>
#include <sstream>
#include <fstream>
#include <string>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <array... |
// 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 "ash/shell.h"
#include <algorithm>
#include <vector>
#include "ash/ash_switches.h"
#include "ash/desktop_background/desktop_background_widg... |
// Copyright (c) 2011 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/browser/printing/printing_message_filter.h"
#include "base/process_util.h"
#include "chrome/browser/browser_process.h"
#include "chr... |
// Copyright 2014 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 <utility>
#include <vector>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
#include "base/feature_list.h"
... |
//
// Copyright (C) 2013 OpenSim Ltd.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program i... |
#include "ComponentTransform.h"
#include "GameObject.h"
#include "ImGUI/include/imgui.h"
#include <string>
ComponentTransform::ComponentTransform(GameObject* gameObject) : Component(gameObject, ComponentType::TRANSFORM)
{
position = math::float3::zero;
rotation.SetFromAxisAngle({ 0,0,0 }, 0);
scale = math::float3:... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
//
#include "HMDPrivatePCH.h"
#include "OculusRiftHMD.h"
#if OCULUS_RIFT_SUPPORTED_PLATFORMS
#if defined(OVR_D3D_VERSION) && (OVR_D3D_VERSION == 11)
#include "D3D11RHIPrivate.h"
#include "D3D11Util.h"
#ifndef WINDOWS_PLATFORM_TYPES_GUARD
#include "AllowWi... |
/**
*
* https://blog.csdn.net/a2392008643/article/details/81781766
*
*/
#include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
#define INFINITE 0xFFFFFFFF
#define UINT unsigned
#define vexCounts 6
typedef unsigned VertexData;
char vextex[] = {'A','B','C','D','E','F'};
... |
/* apps/dsaparam.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-comm... |
/*************************************************************************/
/* gd_mono_marshal.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
#define FILENAME(line) FILENAME_FOR_EXCEPTIONS("src/libawkward/builder/Int64Builder.cpp", line)
#include "awkward/Identities.h"
#include "awkward/array/NumpyArray.h"
#include "awkward/type/PrimitiveType.h"
#include "awkward/build... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE127_Buffer_Underread__malloc_char_ncpy_73b.cpp
Label Definition File: CWE127_Buffer_Underread__malloc.label.xml
Template File: sources-sink-73b.tmpl.cpp
*/
/*
* @description
* CWE: 127 Buffer Under-read
* BadSource: Set data pointer to before the allocated memory buf... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE758_Undefined_Behavior__char_pointer_new_use_15.cpp
Label Definition File: CWE758_Undefined_Behavior.new.label.xml
Template File: point-flaw-15.tmpl.cpp
*/
/*
* @description
* CWE: 758 Undefined Behavior
* Sinks: new_use
* GoodSink: Initialize then use data
* ... |
/*
* Copyright (c) 2011 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <type_traits>
#include "../../common/defs.hpp"
#include "../../common/host_device.hpp"
#include "../../met... |
/**
* Copyright (C) 2015 Dato, Inc.
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
/**
* Copyright (c) 2009 Carnegie Mellon University.
* All rights reserved.
*
* Licensed under the Apache License, Ver... |
//===-- CallingConvLower.cpp - Calling Conventions ------------------------===//
//
// 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
//
//===---------------------------... |
#ifndef _ITERATOR_HEADER_INCLUDED_
#define _ITERATOR_HEADER_INCLUDED_
class Iterator
{
friend class DLList;
public:
T& operator*() { return m_ptr->m_data; }
const T& operator*() const { return m_ptr->m_data; }
T* operator->() { return &m_ptr->m_data; }
const T* operator->() const { return &m_ptr->m_data; }
Ite... |
// 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 "components/reading_list/core/reading_list_store.h"
#include <set>
#include <utility>
#include "base/bind.h"
#include "base/check_op.h"
#includ... |
/*
* 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) 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 "ui/keyboard/keyboard_controller.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "content/public/browser/render_widget_hos... |
// 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.
//+-----------------------------------------------------------------------
//
//
// Abstract:
// It contains t... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (c) 2020 The Xcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <validationinterface.h>
... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Flexwork developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit... |
//----------------------------------*-C++-*-----------------------------------//
/**
* @file Track.hh
* @brief Track class definition
* @note Copyright (C) 2012-2013 Jeremy Roberts
*/
//----------------------------------------------------------------------------//
#ifndef detran_geometry_TRACK_HH_
#define det... |
/*
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0, as
* published by the Free Software Foundation.
*
* This program is also distributed with... |
/*!
* Copyright 2014 by Contributors
* \file gbtree.cc
* \brief gradient boosted tree implementation.
* \author Tianqi Chen
*/
#include <dmlc/omp.h>
#include <dmlc/parameter.h>
#include <xgboost/logging.h>
#include <xgboost/gbm.h>
#include <xgboost/tree_updater.h>
#include <vector>
#include <memory>
#include <uti... |
class AS_database {
class server {
FNC(database,getData);
FNC(database,setData);
FNC(database,getGames);
FNC(database,getAdmin);
FNC(database,saveGame);
FNC(database,loadGame);
FNC(database,deleteGame);
FNC(database,serialize);
FNC(database,des... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.ValueType
#include "System/ValueType.hpp"
// Including type: System.IDisposabl... |
/*
Copyright (c) 2002-2014 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... |
#include "widget.h"
#include "graphics/colours.h"
#include "graphics/image_ids.h"
#include "input.h"
#include "interop/interop.hpp"
#include "window.h"
#include <cassert>
using namespace openloco::interop;
namespace openloco::ui
{
int16_t widget_t::mid_x()
{
return (this->left + this->right) / 2;
... |
//
// SocketNotifier.cpp
//
// Library: Net
// Package: Reactor
// Module: SocketNotifier
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Net/SocketNotifier.h"
#include "Poco/Net/SocketReactor.h"
#include "Poc... |
#pragma once
#include "geometry/shapes/ray.hh"
#include "bounding_box.hh"
#include "intersection.hh"
namespace geometry {
namespace spatial {
struct Sphere {
double radius;
Eigen::Vector3d center;
};
class Volume {
public:
virtual Intersection intersect(const Ray &ray) const = 0;
virtual bool does_interse... |
#include <seqan3/alphabet/cigar/cigar.hpp>
#include <seqan3/alphabet/cigar/cigar_op.hpp>
#include <seqan3/core/debug_stream.hpp>
int main()
{
using seqan3::get;
using seqan3::operator""_cigar_op;
seqan3::cigar letter{10, 'M'_cigar_op};
uint32_t size{get<uint32_t>(letter)}; // No... |
/* Copyright 2015 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... |
// David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2020
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 4.0.2019.08.13
#include "GpuShortestPath.h"
#include <Mathemat... |
// 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/browser/policy/enrollment_status_chromeos.h"
namespace policy {
// static
EnrollmentStatus EnrollmentStatus::ForStatus(Status statu... |
// MIN UNICODE Data
//
// File: min_unicode.cc
// Author: Bob Walton (walton@acm.org)
// Date: Tue May 5 16:21:41 EDT 2015
//
// The authors have placed this program in the public
// domain; they make no warranty and accept no liability
// for this program.
# include <cstdlib>
# include <cmath>
# include <min_unicode... |
/*=============================================================================
Copyright (c) 2016 Kohei Takahashi
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)
=============================================... |
/*
* Copyright 2012-2013 European Broadcasting Union and Limecraft, NV.
*
* 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/LICE... |
// Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2012 Litecoin 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' messa... |
//#include <vector>
//
//#include <SFML\Graphics.hpp>
//
//#include "Road.h"
//#include "Vec2.h"
//#include "Utility.h"
//
//int main()
//{
// std::vector<Road> majorRoads;
//
// majorRoads.push_back(Road(100, 100, 400, 400));
// majorRoads.push_back(Road(100, 400, 400, 100));
//
// Vec2* ip = Utility::New_GetLineInter... |
#include "circularmaze.h"
#include <cmath>
#include <iostream>
CircularMaze::CircularMaze(int size) : size_(size) {
ringnodecount_ = std::vector<int>(size_);
ringnodeprefixsum_ = std::vector<int>(size_);
ringnodecount_[0] = 1;
ringnodeprefixsum_[0] = 0;
for (int i = 1; i < size_; ++i) {
ringnodecount_[i... |
#include <faabric/util/logging.h>
#include <stdexcept>
#include <wamr/native.h>
#include <wasm_export.h>
namespace wasm {
// ------------------------------------------
// NOTE: All of these functions are just stubs to get things to run. We do not
// expect them to be called, so throw errors when they are.
// ---------... |
///
/// Copyright (c) 2013, Intel Corporation
///
/// Redistribution and use in source and binary forms, with or without
/// modification, are permitted provided that the following conditions
/// are met:
///
/// * Redistributions of source code must retain the above copyright
/// notice, this list of conditions ... |
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/compiler/frontend/base_flow_graph_builder.h"
#include "vm/compiler/backend/range_analysis... |
#include "bench.hpp"
#include "cppbench/sorted_vec_map.hpp"
#include "cppbench/vec_map.hpp"
#include <absl/container/flat_hash_map.h>
#include <benchmark/benchmark.h>
#include <limits>
#include <map>
#include <random>
#include <unordered_map>
using KeyType = std::uint32_t;
// no-op "Map" that does nothing to allow us... |
/****************************************************************************
*
* Copyright (c) 2016 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. Redistri... |
// Copyright 2016 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/builtins/builtins-utils-inl.h"
#include "src/builtins/builtins.h"
#include "src/codegen/code-factory.h"
#include "src/codegen/compiler.h"
... |
#include "DebugCount.hpp"
namespace chatterino {
QMap<QString, int64_t> DebugCount::counts;
std::mutex DebugCount::mut;
} // namespace chatterino |
//
// Boost.Pointer Container
//
// Copyright Thorsten Ottosen 2003-2005. 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)
//
// For more information, see http://www.boost.org/li... |
/*
olcPGEX_PopUP.h
+-------------------------------------------------------------+
| OneLoneCoder Pixel Game Engine Extension |
| Retro PopUP Menu 1.0 |
+-------------------------------------------------------------+
... |
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "activemasternode.h"
#include "masternode-payments.h"
#include "addrman.h... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
#include "common/router/router.h"
#include <chrono>
#include <cstdint>
#include <string>
#include "envoy/event/dispatcher.h"
#include "envoy/event/timer.h"
#include "envoy/grpc/status.h"
#include "envoy/http/conn_pool.h"
#include "envoy/runtime/runtime.h"
#include "envoy/stats/stats.h"
#include "envoy/upstream/cluste... |
/*
The MIT License (MIT)
Copyright (c) 2017-2022 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus
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 limi... |
/* BugEngine <bugengine.devel@gmail.com>
see LICENSE for detail */
#include <bugengine/core/stdafx.h>
#include <bugengine/core/threads/event.hh>
#include <bugengine/core/timer.hh>
#include <cerrno>
#include <pthread.h>
namespace BugEngine {
Event::Event() : m_data(new pthread_cond_t), m_lock(new pthread_mutex_t... |
/*************************************************************************
> File Name: Sphere.cpp
> Project Name: CubbyFlow
> Author: Chan-Ho Chris Ohk
> Purpose: Sphere functions for CubbyFlow Python API.
> Created Time: 2018/01/28
> Copyright (c) 2018, Chan-Ho Chris Ohk
**********************************************... |
/* This file is part of the dynarmic project.
* Copyright (c) 2018 MerryMage
* SPDX-License-Identifier: 0BSD
*/
#include <type_traits>
#include "A32/testenv.h"
#include "a32_unicorn.h"
#include "common/assert.h"
#include "common/bit_util.h"
#define CHECKED(expr) ... |
/*
Copyright 2019 Google LLC
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
// Copyright (c) 2014-2019, The Monero Project
// Copyright (c) 2018, The Loki 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 r... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
/////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2007
//
// 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)
//
// See http://www.boost.org/... |
// -*- C++ -*- std::terminate handler
// Copyright (C) 2002-2012 Free Software Foundation
//
// This file is part of GCC.
//
// GCC 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 3, or (at yo... |
/* Copyright 2019 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... |
#ifndef ANVIL_ASSERT_HPP
#define ANVIL_ASSERT_HPP
#include <assert.h>
#include <iostream>
#include <cstdlib>
#ifndef NDEBUG
# define ASSERT(condition, message) \
do { \
if (! (condition)) { \
std::cerr << "Assertion `" #condition "` failed in " << __FILE__ \
<< " line " << __LINE__ << ": "... |
#include "vm205/Data.h"
namespace vm205 {
Data::Data(int size):
m_size(size) {
_values = new Value[size];
}
Data::~Data() {
delete[] _values;
}
Value& Data::value(int index) {
return _values[index];
}
Value& Data::operator[](int index) {
return value(index);
}
int Data::size() const {
return m_size;
}
} |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2017-21, Lawrence Livermore National Security, LLC
// and RAJA Performance Suite project contributors.
// See the RAJAPerf/COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~... |
/*
* Copyright (c) 2020, Rauli Laine
* 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 conditi... |
/****************************************************************************************
** Program Filename: BlankGrid.cpp
** Author: Chris Kearns
** Date: 1/17/2016
** Description: Contains the blankGrid() function.
** Input: array "collector"
** Output: Used by Main.cpp to generate a Blank Grid animation.
*********... |
//
// VulkanDeconvolution.cpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "VulkanDeconvolution.hpp"
#include "Macro.h"
namespace MNN {
VulkanDeconvolution::VulkanDeconvolution(Backend* bn, const Convolution2D* conv) : VulkanBasicExecution(bn) {
mCon... |
#include "X.h"
#include "Shared.h"
using namespace std;
X::X(){
width = 40;
height = 40;
drawX.resize(0);
}
X::X(int w, int h){
width = w;
height = h;
drawX.resize(0);
}
void X::addPlace(int x, int y){
drawX.resize(drawX.size()+1);
drawX[drawX.size()-1].x = x;
drawX[drawX.size()-1].y = y;
drawX[drawX.size(... |
// Copyright 2019 The SwiftShader 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 b... |
//===--- DocSupportAnnotationArray.cpp ------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/* linenoise.c -- guerrilla line editing library against the idea that a
*
* Copyright (c) 2010, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2010, Pieter Noordhuis <pcnoordhuis at gmail dot com>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*... |
// 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 <cmath>
#include <functional>
#include <limits>
#include "src/base/bits.h"
#include "src/base/utils/random-number-generator.h"
#include "src/c... |
// Copyright (c) 2007-2012 Hartmut Kaiser
//
// 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)
#if !defined(HPX_PARCELSET_SHMEM_ACCEPTOR_NOV_25_2012_0710PM)
#define HPX_PARCELSET_SHMEM_ACCEPTOR_NOV_25_2012_0710PM
... |
// Created by Modar Nasser on 17/07/2021.
#include "NasNas/tween/Tween.hpp"
using namespace ns;
void Tween::clear() {
m_starts.clear();
m_ends.clear();
m_durations = {1.f};
m_delays = {1.f};
m_easing_fns = {easing::linear};
m_on_step_cbs = {[](float){}};
m_index = 0;
m_initial_delay =... |
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
string s;
cin >> s;
int k;
cin >> k;
function<bool(int)> alphaUpper = [](int x) {
return 64 < x && x < 91;
};
function<bool(int)> alphaLower = [](int x) {
return 96 < x ... |
/*! \file
*
* \brief Miscellaneous testing functions
*/
#pragma once
#include <string>
#include <vector>
#include <istream>
#include <limits>
namespace mirp {
//! \brief Maximum length of a line
static const std::streamsize max_length = std::numeric_limits<std::streamsize>::max();
/*! \brief Print the results... |
/*
* 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... |
// resize kernel
#include "include/stencil.hpp"
#include "include/utils.h"
#include "include/device_function.hpp"
// Select and resize one layer for interactive output
template <typename dataT>
inline void resize_fcn(sycl::nd_item<3> item,
dataT* dst,
size_t Dx, si... |
// 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/app/chrome_main_delegate.h"
#include "base/command_line.h"
#include "base/environment.h"
#include "base/files/file_path.h"
#include ... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/ink/CallbackBase.hpp>
namespace RED4ext
{
namespace ink {
struct DefaultCallback : ink::CallbackBase
{
static constexpr const char* NAME = "inkDef... |
#include <iostream>
#include <string>
#include <random>
#include "socket.h"
#include "misc.h"
#include "logger.h"
//Stun message types
unsigned char BIND_REQUEST_MSG[] = {0x0, 0x1};
unsigned char BIND_RESPONSE_MSG[] = {0x1, 0x1};
unsigned char MAGIC_COOKIE[] = {0x21, 0x12, 0xa4, 0x42};
//Stun attributes
unsigned cha... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2017-2018 The PIVX developers
// Copyright (c) 2019 The Syndicate Ltd developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-li... |
// Copyright (c) 2013-2015 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 "rpcserver.h"
#include "rpcclient.h"
#include "base58.h"
#include "main.h"
#include "wallet/wallet.h"
#include "te... |
/*
* Copyright (c) 2013 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
// 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 "core/fxge/ge/cttfontdesc.h"
#include "core/fxge/fx_freetype.h"
CTT... |
//=================================================================================================
/*!
// \file src/mathtest/smatdmatschur/DCaDDb.cpp
// \brief Source file for the DCaDDb sparse matrix/dense matrix Schur product math test
//
// Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved
//
// Thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.