text stringlengths 5 1.04M |
|---|
/*=========================================================================
*
* 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
*
* https://www.apache.o... |
// Copyright (c) 2017-2019 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "amount.h"
#include "chainparams.h"
#include "coincontrol.h"
#include "denomination_functions.h"
#include "main.h"
#include ... |
// This file is automatically generated at compile-time to include some subset of the user-created cpp files.
#include "C:/!Unreal/!Assignment/basic5_Teacher/Plugins/AGRPRO/Source/AGRPRO/Private/AGRPRO.cpp"
#include "C:/!Unreal/!Assignment/basic5_Teacher/Plugins/AGRPRO/Source/AGRPRO/Private/Animation/AGRCoreAnimInstanc... |
#ifndef __CREATURE_H_
#define __CREATURE_H_
#include <algorithm>
#include <thread>
#include <liblog/liblog.hpp>
#include "EventBus.hpp"
#include "lss/game/content/traits.hpp"
#include "lss/game/damage.hpp"
#include "lss/game/effect.hpp"
#include "lss/game/equipment.hpp"
#include "lss/game/item.hpp"
#include "lss/game/... |
// ver_test_1.cc -- a test case for gold
// Copyright (C) 2007-2017 Free Software Foundation, Inc.
// Written by Cary Coutant <ccoutant@google.com>.
// This file is part of gold.
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publish... |
//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURP... |
#include <rudiments/sharedmemory.h>
#include <rudiments/charstring.h>
#include <rudiments/permissions.h>
#include <rudiments/file.h>
#include <rudiments/error.h>
#include <rudiments/snooze.h>
#include <rudiments/process.h>
#include <rudiments/stdio.h>
int main(int argc, const char **argv) {
// create a file called "... |
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: CompilableIRFunction.tcc (emitters)
// Authors: Chuck Jacobs
//
//////////////////////////////////////////////////////////////////////////////////////////... |
/*
* Copyright (C) 2020 Yaron Gvili and Gvili Tech Ltd.
*
* See the accompanying LICENSE.txt file for licensing information.
*/
/*! \file include/libswifft/swifft_iset.inl
* \brief LibSWIFFT public C API expansion for instruction-sets
*/
#include "libswifft/swifft_common.h"
#undef SWIFFT_ISET_NAME
#ifndef SWIFFT... |
/*
* 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... |
#include "Common.h"
struct PerEyeArg {
FramebufferWrapperPtr framebuffer;
glm::mat4 projection;
};
class CubeScene_RiftSensors : public RiftGlfwApp {
PerEyeArg eyes[2];
ovrTexture eyeTextures[2];
ovrVector3f eyeOffsets[2];
float ipd, eyeHeight;
public:
CubeScene_RiftSensors() {
eyeHeight = ovrHmd... |
// Derived from VTK/Examples/Cxx/Medical2.cxx
// This example reads a volume dataset, extracts two isosurfaces that
// represent the skin and bone, and then displays them.
//
#include <vtkActor.h>
#include <vtkCamera.h>
#include <vtkMarchingCubes.h>
#include <vtkMetaImageReader.h>
#include <vtkNamedColors.h>
#include ... |
/******************************************************************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
**************... |
// Copyright (c) 2018-2021, The DeroGold Developers
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2018-2019, The TurtleCoin Developers
//
// Please see the included LICENSE file for more information.
#include "ErrorMessage.h"
#include <cerrno>
#include <cstring>
name... |
#include "httprpc.h"
#include "base58.h"
#include "chainparams.h"
#include "httpserver.h"
#include "rpc/protocol.h"
#include "rpc/server.h"
#include "random.h"
#include "sync.h"
#include "util.h"
#include "utilstrencodings.h"
#include "ui_interface.h"
#include <boost/algorithm/string.hpp> // boost::trim
/** Simple o... |
#include <efsw/WatcherWin32.hpp>
#include <efsw/String.hpp>
#if EFSW_PLATFORM == EFSW_PLATFORM_WIN32
namespace efsw
{
/// Unpacks events and passes them to a user defined callback.
void CALLBACK WatchCallback(DWORD dwNumberOfBytesTransfered, LPOVERLAPPED lpOverlapped)
{
if (dwNumberOfBytesTransfered == 0 || NULL ==... |
/*
*
* Copyright (c) 1998-2002
* John Maddock
*
* Use, modification and distribution are 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)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent versio... |
#include <iostream>
using namespace std;
int main()
{
int a,b;
while(cin>>a>>b)
{
cout<<a+b<<endl;
}
return 0;
} |
#include "method_call.h"
#include "borders.h"
namespace DesktopWindowMethodCall
{
MethodCall::MethodCall(const flutter::MethodCall<flutter::EncodableValue> &Cmethod_call,
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> Cresult): method_call(Cmethod_call)
{
... |
// Copyright (C) 2009 Anthony Williams
//
// 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)
#define BOOST_THREAD_USES_MOVE
#define BOOST_TEST_MODULE Boost.Threads: thread move return test suite
#include <boost/thr... |
#include <iostream>
#include <windows.h>
#include <string.h>
#include "./src/queue.hpp"
#define MAXTAM 50
typedef struct Student
{
int RA;
char name[30];
} Student;
Queue<Student> *queue = createQ<Student>(MAXTAM);
void register_student();
void serve_student();
void display_queue();
void menu();
using name... |
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt... |
// sol3
// The MIT License (MIT)
// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors
// 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 limita... |
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "dna.h"
TEST_CASE("Verify Test Configuration", "verification") {
REQUIRE(true == true);
}
TEST_CASE("Verify get_gc_content of dna")
{
REQUIRE( get_gc_content("AGCTATAG") == .375);
REQ... |
/*
* Vulkan
*
* Copyright (C) 2015 Valve, Inc.
* Copyright (C) 2016 Google, Inc.
*
* 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
*... |
// -*- c++ -*-
//
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
//
// All rights reserved.
//
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whol... |
#include <QtCore/QEvent>
#include <QtCore/QDir>
#include <QDebug>
#include <QtWidgets/QFileDialog>
#include <nodes/DataModelRegistry>
#include "ImageTFInfModel.hpp"
#include "PixmapData.hpp"
ImageTFInfModel::
ImageTFInfModel()
{
const QString graph_fn = QString("/usr/local/tf_libs/resources/my_mnist_model.meta"... |
// This file is licensed under the Elastic License 2.0. Copyright 2021 StarRocks Limited.
#include "exec/vectorized/olap_scan_node.h"
#include <chrono>
#include <limits>
#include <thread>
#include "column/column_pool.h"
#include "column/type_traits.h"
#include "common/status.h"
#include "exec/pipeline/limit_operator... |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist... |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2015 - ROLI Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL v3
Details... |
version https://git-lfs.github.com/spec/v1
oid sha256:633753f86a875ccde0bef26229d228bb0df1c4e9da4379998f1adeaea4c90b8d
size 71867
|
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2012, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
... |
// dllmain.cpp : Defines the entry point for the DLL application.
#include "framework.h"
import onyx32.gui.global;
// See https://docs.microsoft.com/en-us/windows/win32/dlls/dllmain
// https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-best-practices
BOOL APIENTRY DllMain(
HMODULE h... |
// Copyright 2017 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 "fxjs/xfa/cjx_rectangle.h"
#include "xfa/fxfa/parser/cxfa_rectangle.... |
#ifndef BOOST_MPL_SET_AUX_INSERT_RANGE_IMPL_HPP_INCLUDED
#define BOOST_MPL_SET_AUX_INSERT_RANGE_IMPL_HPP_INCLUDED
// Copyright Bruno Dutra 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)
//
// See htt... |
/**
* Copyright (c) 2009 Carnegie Mellon University.
* 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... |
/*
*
* Copyright (c) 2020 Project CHIP 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... |
// This is all that is needed to compile a test-runner executable.
// More tests can be added here, or in a new tests/*.cpp file.
#include "../tests/doctest/doctest.h"
#include "Vector3.hh"
#include "size.hh"
#include "example.h"
#include <cmath>
#include <fstream>
// Tests Vector
TEST_CASE("Vector3 - sum"){
do... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Reflection.MonoProper... |
// 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 "ash/shelf/app_list_button.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "ash/app_list/app_list_controller_impl.h"
#inc... |
#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable: 4819)
#include <pcl/console/parse.h>
#include <pcl/io/ply_io.h>
#include "rabv.hpp"
enum class Mode { rab, pcd, ply };
int main(int argc, char* argv[])
{
std::cout
<< "Rab Visualizer ver.3.00-rc1" << std::endl
<< "Copyright (C) 2015-2017 Chiba Naoya" << s... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ===========================================================================
// File: CEELOAD.INL
//
//
// CEELOAD.INL has inline methods from CEELOAD.H.
// =======================... |
/*
Copyright 2020 The OneFlow 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 agre... |
#include "Surface.h"
#include <stdexcept>
// Constructor
Surface::Surface(const Instance* instance, const PhysicalDevice* physicalDevice, Window* window)
: m_Instance(instance), m_PhysicalDevice(physicalDevice), m_Window(window) {
// Create window surface
if (m_Window->CreateSurface(m_Instance->GetInstance(), nullp... |
/*
* Copyright (c) 2019-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... |
/* 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... |
// See LICENSE_CELLO file for license and copyright information
/// @file control_stopping.cpp
/// @author James Bordner (jobordner@ucsd.edu)
/// @date 2013-04-26
/// @brief Charm-related functions associated with initialization
/// @ingroup Control
///
/// STOPPING
///
/// Block::stopping(... |
/*
* Copyright 2002-2005 The Apache Software Foundation.
*
* 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 app... |
/*
* Rody Oldenhuis
* oldenhuis@gmail.com
*
* ode.hh
* Created: 16.11.2012 16:29:30 CET
*/
#ifndef _ODE_HH
#define _ODE_HH
#include "Matrix.hh"
namespace ODE
{
// defines options for the integrator
struct Options
{
double
abstol,
reltol,
maxstep,
... |
// Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive.
// There is only one repeated number in nums, return this repeated number.
// You must solve the problem without modifying the array nums and uses only constant extra space.
// Example 1:
// Input: ... |
/**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... |
// Copyright © 1996-2018, Valve Corporation, All rights reserved.
#include "mathlib/ssemath.h"
#include "mathlib/ssequaternion.h"
const fltx4 Four_PointFives = {0.5, 0.5, 0.5, 0.5};
const fltx4 Four_Zeros = {0.0, 0.0, 0.0, 0.0};
const fltx4 Four_Ones = {1.0, 1.0, 1.0, 1.0};
const fltx4 Four_Twos = {2.0, 2.0, 2.0, 2.0... |
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 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 License at
//
// ... |
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <cmath>
#include <memory>
#include <limits>
using namespace std;
const double inf = numeric_limits<double>::infinity();
struct color {
double r, g, b;
color(double r, double g, double b) : r(r), g(g), b(b) {}
color() : r(0), g(... |
//--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fast Python Data Scien... |
/*
* Copyright (c) 2015, 2016, 2017, 2018, 2019, 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 ... |
#include <stdio.h>
#include <math.h>
#include <windows.h>
#include <tchar.h>
float f(float x, float y, float z) {
float a = x * x + 9.0f / 4.0f * y * y + z * z - 1;
return a * a * a - x * x * z * z * z - 9.0f / 80.0f * y * y * z * z * z;
}
float h(float x, float z) {
for (float y = 1.0f; y >= 0.0f; y -=... |
#include "duckdb/optimizer/remove_unused_columns.hpp"
#include "duckdb/function/aggregate/distributive_functions.hpp"
#include "duckdb/planner/binder.hpp"
#include "duckdb/planner/column_binding_map.hpp"
#include "duckdb/planner/expression/bound_aggregate_expression.hpp"
#include "duckdb/planner/expression/bound_colum... |
/**
* @note This file is part of MABE, https://github.com/mercere99/MABE2
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2019
*
* @file AllOnes.cc
* @brief Implementation of a simple all-ones problem using MABE.
*/
#include <iostream>
#include "conf... |
///////////////////////////////////////////////////////////////////////////////////
// Copyright(c) 2016, Lin Koon Wing Macgyver, macgyvercct@yahoo.com.hk //
// //
// Author : Mac Lin //
// Module : Magnum Engine v1.0.0 //
// Date : 14/Jun/2016 ... |
// 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/ui/views/dropdown_bar_host.h"
#include "chrome/browser/ui/find_bar/find_bar_controller.h"
#include "chrome/browser/ui/views/... |
// Created on : Sat May 02 12:41:15 2020
// Created by: Irina KRYLOVA
// Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V3.0
// Copyright (c) Open CASCADE 2020
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it un... |
// Copyright (c) 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 <vector>
#include "prevector.h"
#include "random.h"
#include "serialize.h"
#include "streams.h"
#include "test/test_lun... |
//Author:LanceYu
#include<iostream>
#include<string>
#include<cstring>
#include<cstdio>
#include<fstream>
#include<iosfwd>
#include<sstream>
#include<fstream>
#include<cwchar>
#include<iomanip>
#include<ostream>
#include<vector>
#include<cstdlib>
#include<queue>
#include<set>
#include<ctime>
#include<algorithm>
#includ... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2006 Mark Joshi
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or m... |
#include <utility>
#include "format_greeting.hpp"
#include "get_person.hpp"
#include "say_hello.hpp"
namespace e5 {
tl::expected<std::string, util::error> say_hello(opentracing::Span& span,
std::string&& name) {
const auto exp_person = get_person(&span.context(), std... |
#include <iostream>
#include <map>
#include <string>
#include <sstream>
int main() {
std::map<double, int> numbers;
std::string input;
std::getline(std::cin, input);
std::istringstream strStream(input);
std::string currNumber;
while (strStream >> currNumber) {
if (numbers.find(std::stod(currNumber)) == n... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
/**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library 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 Fre... |
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <cassert>
#include <concepts>
#include <iterator>
#include <type_traits>
#include <utility>
#include <range_algorithm_support.hpp>
using namespace std;
using P = pair<int, int>;
// clang-format of... |
/******************************************************************************/
/* */
/* MtdsDemo2.cc -- MTDS Library Reference Example 2 */
/* ... |
// Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED___ASSET__flixel_flixel_ui_xml_defaults_xml
#include <__ASSET__flixel_flixel_ui_xml_defaults_xml.h>
#endif
#ifndef INCLUDED_haxe_Resource
#include <haxe/Resource.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
HX_DEFINE_STACK_FRA... |
#include "gtest/gtest.h"
#include <random>
#include "xtensor/xarray.hpp"
#include "z5/factory.hxx"
#include "z5/multiarray/xtensor_access.hxx"
namespace z5 {
namespace multiarray {
// fixture for the zarr array test
class XtensorTest : public ::testing::Test {
protected:
XtensorTest() : fZarr(f... |
//*****************************************************************************
// Copyright 2017-2021 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... |
// mapnik
#include <mapnik/color.hpp> // for color
#include <mapnik/image.hpp> // for image types
#include <mapnik/image_any.hpp> // for image_any
#include <mapnik/image_reader.hpp> // for get_image_reader, etc
#include <mapnik/image_util.hpp> // for save_to_string, guess_typ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__struct_twoIntsStruct_calloc_83a.cpp
Label Definition File: CWE401_Memory_Leak.c.label.xml
Template File: sources-sinks-83a.tmpl.cpp
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: calloc Allocate data using calloc()
* GoodSource: Al... |
// The Art of C++ / PostgreSQL
// Copyright (c) 2016 Daniel Frey
#ifndef TAOCPP_INCLUDE_POSTGRES_RESULT_HPP
#define TAOCPP_INCLUDE_POSTGRES_RESULT_HPP
#include <memory>
#include <string>
#include <stdexcept>
#include <utility>
#include <tuple>
#include <vector>
#include <list>
#include <set>
#include <unordered_set>
... |
#include "blitter.h"
_Blitter *_Blitter::singleton = NULL;
void _Blitter::_bind_methods() {
ObjectTypeDB::bind_method(_MD("calculate_new_rect_from_mins_max", "p_base_size", "p_mins", "p_max"), &_Blitter::calculate_new_rect_from_mins_max);
ObjectTypeDB::bind_method(_MD("calculate_new_size_from_mins_max",... |
/* Copyright (c) 2018 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "meta/processors/AddHostsProcessor.h"
namespace nebula {
namespace meta {
void AddHostsProcessor::process(con... |
/* Copyright (c) 2020-2021, Collab
* All rights reserved
*/
/*
WaterFlowMeter.cpp - Control water flow meter.
*/
#include <WaterFlowMeter.h>
FlowMeter* _sensor;
// define an 'interrupt service handler' (ISR)
void countPulse() {
// let our flow meter count the pulses
_sensor->count();
}
WaterFlowMeter::Wate... |
#pragma once
#include <mgs/base_n/padding_policy.hpp>
#include <mgs/exceptions/unexpected_eof_error.hpp>
namespace mgs
{
namespace detail
{
template <typename EncodingTraits,
base_n::padding_policy = EncodingTraits::padding_policy>
struct encoded_input_reader
{
template <typename Iterator, typename Sentin... |
/*
* Copyright (c) 2007, Michael Lehn
*
* 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,... |
#include "class_6.h"
#include "class_0.h"
#include "class_5.h"
#include "class_8.h"
#include "class_6.h"
#include "class_2.h"
#include <lib_20/class_3.h>
#include <lib_0/class_5.h>
#include <lib_52/class_8.h>
#include <lib_26/class_0.h>
#include <lib_39/class_2.h>
class_6::class_6() {}
class_6::~class_6() {}
|
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
#include "drake/systems/rendering/pose_vector.h"
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include <Eigen/Dense>
#include <Eigen/Geometry>
#include <gtest/gtest.h>
#include "drake/common/symbolic.h"
#include "drake/common/test_utilities/eigen_matrix_compare.h"
#include "drake/common/t... |
/**
* @author : archit
* @GitHub : archit-1997
* @email : architsingh456@gmail.com
* @file : meregeIntervals.cpp
* @created : Monday Jul 26, 2021 04:51:09 IST
*/
#include <bits/stdc++.h>
using namespace std;
bool compare(const vector<int> &a,const vector<int> &b){
if(a[0]==b[0])... |
// 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/common/service_process_util.h"
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/fil... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Tencent is pleased to support the open source community by making WeChat QRCode available.
// Copyright (C) 2020 THL A29... |
/* Copyright 2019 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
//===- DWARFDebugAddr.cpp -------------------------------------------------===//
//
// 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
//
//===---------------------------... |
// Copyright 2020 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 "content/browser/prerender/prerender_host.h"
#include "base/test/scoped_feature_list.h"
#include "content/browser/prerender/prerender_host_regis... |
// RUN: %clang_analyze_cc1 -std=c++1z -analyzer-checker=alpha.clone.CloneChecker -analyzer-config alpha.clone.CloneChecker:MinimumCloneComplexity=10 -verify %s
// expected-no-diagnostics
int foo1(int n) {
int result = 0;
switch (n) {
case 33:
result += 33;
[[clang::fallthrough]];
case 44:
result +... |
// Copyright 2020 The Fuchsia 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 "acpidump.h"
#include <errno.h>
#include <fcntl.h>
#include <fidl/fuchsia.hardware.acpi/cpp/wire.h>
#include <lib/cmdline/args_parser.h>
#include... |
/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... |
// SPDX-License-Identifier: BSD-2-Clause
/* Copyright (C) 2015 - 2021 Intel Corporation. */
#include "StressIncreaseToMax.h"
void StressIncreaseToMax::run()
{
// Generate constant allocation sizes.
VectorIterator<size_t> allocation_sizes =
AllocationSizes::generate_random_sizes(task_conf.allocation_si... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The infinitemoneycoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses... |
// Copyright 2002 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)
// Boost.MultiArray Library
// Authors: Ronald Garcia
// Jeremy ... |
// Copyright 2020 The XLS 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 law or agreed t... |
#include <fcntl.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/text_format.h>
#ifdef USE_OPENCV
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/highgui/highgui_c.h>
#include <opencv2/imgproc/imgpro... |
#ifndef _PERSISTENT_TM_RESIZABLE_HASH_MAP_H_
#define _PERSISTENT_TM_RESIZABLE_HASH_MAP_H_
#include <string>
/**
* An imprecise but fast random number generator
*/
uint64_t randomLong(uint64_t x) {
x ^= x >> 12; // a
x ^= x << 25; // b
x ^= x >> 27; // c
return x * 2685821... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.