text stringlengths 7 961k |
|---|
#pragma once
#include "../../../java/lang/RuntimeException.hpp"
class JString;
namespace android::view::inspector
{
class PropertyMapper_PropertyConflictException : public java::lang::RuntimeException
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit PropertyMapper_PropertyConfl... |
/*
Copyright (c) 2005-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://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
#include <iostream>
#include <vector>
#include <chrono>
#include <random>
#include <thread>
#include <string_view>
#include <mutex>
#include <condition_variable>
#include <queue>
#include <string>
#include <array>
class logger
{
protected:
logger() {}
public:
static logger& instance()
{
static logger lg... |
// 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 "base/test/histogram_tester.h"
#include "content/public/browser/browser_accessibility_state.h"
#include "chrome/test/base/in_process_browser_... |
// Copyright 2018 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 "src/modular/bin/sessionmgr/puppet_master/dispatch_story_command_executor.h"
#include <map>
#include "src/modular/lib/async/cpp/future.h"
#inclu... |
/*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2014 Parijat Mazumdar
* 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... |
/*
* IXCobraBot.cpp
* Author: Benjamin Sergeant
* Copyright (c) 2020 Machine Zone, Inc. All rights reserved.
*/
#include "IXCobraBot.h"
#include <ixcobra/IXCobraConnection.h>
#include <ixcore/utils/IXCoreLogger.h>
#include <ixwebsocket/IXSetThreadName.h>
#include <algorithm>
#include <chrono>
#include <sstrea... |
//===-- ARMISelDAGToDAG.cpp - A dag to dag inst selector for ARM ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#pragma once
#include <vector>
#include "Runtime/CFactoryMgr.hpp"
#include "Runtime/RetroTypes.hpp"
#include "Runtime/Character/CSkinBank.hpp"
#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
#include <zeus/CVector3f.hpp>
namespace urde {
class CPoseAsTransforms;
class CModel;
struct SSkinWeighting {
CSegId m... |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2015 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... |
/*
* NimBLEServer.cpp
*
* Created: on March 2, 2020
* Author H2zero
*
* Originally:
*
* BLEServer.cpp
*
* Created on: Apr 16, 2017
* Author: kolban
*/
#include "nimconfig.h"
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
#include "NimBLEServer.h"
#include "NimBLEDe... |
//
// Created by Lilith on 2020-09-08.
//
#pragma once
#include <standard_dragon/exception/reasonable.hpp>
namespace dragon::exception {
class invalid_data : public reasonable {
public:
explicit invalid_data(const char *message = "unexpected error") : reasonable(message) { }
};
} // namespace dra... |
/* Copyright 2019 The Waymo Open Dataset 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 ... |
#include "pch.h"
#include "winrt/base.h"
bool __stdcall winrt_can_unload_now() noexcept
{
if (winrt::get_module_lock())
{
return false;
}
winrt::clear_factory_cache();
return true;
}
void* __stdcall TestRuntimeComponent2_get_activation_factory(std::wstring_view const& name);
void* __stdca... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include <memory>
#include <utility>
class function_wrapper {
struct impl_base {
virtual void call() = 0;
virtual ~impl_base() {}
};
std::unique_ptr<impl_base> impl;
template <typename F>
struct impl_type : impl_base {
F f;
impl_type(F&& f_) noexcept : f(std::move(f_)) {}
void call() ove... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include "B.h"
#include <iostream>
B::B()
{
}
B::B(int i) : memI{ i }, memA{ i }
{
}
void swap(B& lhs, B& rhs) noexcept
{
using std::swap;
// The std::swap function is found because it was made accessible with a using-declaration
// See https://en.cppreference.com/w/cpp/language/namespace
// 6) using-declaratio... |
//=================================================================================================
/*!
// \file src/mathtest/dmatsmatadd/MDbSCb.cpp
// \brief Source file for the MDbSCb dense matrix/sparse matrix addition math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// This file ... |
/*******************************************************************
* PolyInput.cpp
* KPS
*
* Author: Kareem Omar
* kareem.omar@uah.edu
* https://github.com/komrad36
*
* Last updated Feb 27, 2016
* This application is entirely my own work.
*******************************************************************/
//
/... |
// 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... |
/*
* Copyright (C) 2011 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
// Copyright 2018 Chia Network 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 wr... |
// Software License for MTL
//
// Copyright (c) 2007 The Trustees of Indiana University.
// 2008 Dresden University of Technology and the Trustees of Indiana University.
// 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com.
// All rights reserved.
// Authors: Peter Gottschling and Andr... |
/*
* Copyright (C) 2013 Samsung Electronics. 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 co... |
/*
This file is part of PyMbs.
PyMbs 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 3 of
the License, or (at your option) any later version.
PyMbs is distributed in the hope that it will ... |
//===- KnownBitsTest.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
//
//===----------------------------------... |
/*
* 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 ... |
/****************************************************************************
*
* Copyright (c) 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. Redistri... |
#pragma once
namespace strukdat
{
namespace priority_queue
{
/**
* @brief Implementasi struct untuk elemen, harus ada isi dan prioritas elemen.
*/
template <typename T>
struct Element
{
// Implementasikan di sini.
T data;
int priority;
Element *next;
};
template... |
#ifndef FUNCTION_TRAITS_HPP
#define FUNCTION_TRAITS_HPP
namespace wgt
{
/**
/* These are a bunch of utility function traits for functions, member functions
* and lambdas.
* I've only added the ones I've needed, if there are other types you need, feel
* free to add to this file.
*/
template<typename... Ts> struct... |
//! The MIT License (MIT)
//!
//! Copyright (c) 2014 Thomas Kovacs
//!
//! 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 t... |
// Copyright (c) 2021 MIT Digital Currency Initiative,
// Federal Reserve Bank of Boston
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "hash.hpp"
#include "crypto/sha256.h"
#include <cstring>
#inc... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
#include <occa/internal/lang/expr/reinterpretCastNode.hpp>
namespace occa {
namespace lang {
reinterpretCastNode::reinterpretCastNode(token_t *token_,
const vartype_t &valueType_,
const exprNode &value_) :
exprNode(to... |
#include "VoxelRendering.hpp"
#include "ShaderSources.g.hpp"
#include "mesh/MeshFactory.hpp"
namespace ar
{
VoxelRenderer::VoxelRenderer()
{
}
void VoxelRenderer::Init()
{
// init buffers
_instancedVertexBuffer.Init();
_indexBuffer.Init();
auto voxel_base_mesh = MeshFactory::MakeCube<Mesh<VertexP3N3>>(glm::... |
/* 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... |
//LOGIC
//
//24 = 2*2*2*3
//42 = 2*3*7
//COMMON = 2*3=6
//
//42-24=18
//24-18=6
//18-6=12
//12-6=6
//6-6=0
//
//OR
//
//42%24=18
//24%18=5
//18%6=0
//number theory
#include<iostream>
using namespace std;
int gcd(int a, int b){
while(b!=0){ //jb tk b ki value 0 nai hoti
int rem=a%b; ... |
// Copyright 2017 The Dawn 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... |
#define SUNDLG_CPP
/*************************************************************************************************\
sunDlg.cpp : Implementation of the sunDlg component. dialog for sun
settings
//---------------------------------------------------------------------------//
// Copyright (C) Microsoft Corporation. Al... |
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
bool getSets(vector<int> &nums,vector<int> &r,int i){
if(i == nums.size()){
return !r[0] && !r[1] && !r[2] && !r[3];
}
for(int j=0;j<r.size();j++){
r[j] -= nums[i];
if(getSets(nums,r,i+1)){
return tr... |
#include <deque>
#include <stdio.h>
#include <sys/time.h>
typedef std::deque<int> list_type;
suseconds_t delete_list( list_type *list, int l_size, bool print )
{
timeval start;
timeval end;
gettimeofday( &start, NULL );
delete list;
gettimeofday( &end, NULL );
if ( print )
fprintf( stderr, "List deletion ... |
#include "Precompiled.h"
#include "TextureManager.h"
using namespace Coo::Graphics;
namespace
{
std::unique_ptr<TextureManager> sTextureManager = nullptr;
}
void TextureManager::StaticInitialize(std::filesystem::path rootPath)
{
ASSERT(sTextureManager == nullptr, "[TextureManager] System already initialized!");
s... |
/* $Id: CbcLinked.hpp 1902 2013-04-10 16:58:16Z stefan $ */
// Copyright (C) 2006, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#ifndef CglLinked_H
#define CglLinked_H
/* THIS CONTAINS STUFF THAT SHOULD BE... |
#ifndef BOSS_MOD_ONCHAINFUNDSANNOUNCER_HPP
#define BOSS_MOD_ONCHAINFUNDSANNOUNCER_HPP
#include"Boss/ModG/ReqResp.hpp"
#include<string>
namespace Boss { namespace Mod { class Rpc; }}
namespace Boss { namespace Msg { struct RequestGetOnchainIgnoreFlag; }}
namespace Boss { namespace Msg { struct ResponseGetOnchainIgnore... |
/**
* Copyright (C) 2011
* University of Rochester Department of Computer Science
* and
* Lehigh University Department of Computer Science and Engineering
*
* License: Modified BSD
* Please see the file LICENSE.RSTM for licensing information
*/
#include <stm/config.h>
#if defined(STM_CPU_SPARC)
... |
#include "../../inc.hpp"
#include "module.hpp"
// get DOS / NT headers.
bool pe::get_file_headers( uintptr_t base, PIMAGE_DOS_HEADER &out_dos, PIMAGE_NT_HEADERS &out_nt ) {
// get DOS header and check for invalid DOS / DOS signature.
auto dos = (IMAGE_DOS_HEADER *)base;
if( !dos || dos->e_magic != IMAGE_DOS_SIGNATU... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
/*
* Copyright (c) 2018 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 (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
#include "TokenStream.h"
using namespace antlr4;
TokenStream::~TokenStream() {
} |
#include "dna.h"
/*
Write code for function get_gc_content that accepts
a const reference string parameter and returns a double.
Calculate GC content:
Iterate string count Gs and Cs, divide count by string length.
Return quotient.
*/
double get_gc_content(const string & sequence)
{
double count = sequence.length();
d... |
/*
The MIT License (MIT)
Copyright (c) 2013-2018 Winlin
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, p... |
// 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 "chrome/browser/component_updater/ssl_error_assistant_component_installer.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#inclu... |
#include <QCoreApplication>
#include <QDate>
#include <QString>
#include <QtTest>
#include <portfolio.h>
#include <stdexcept>
#define Given(func) func
#define And(func) func
#define When(func) func
#define Then(func) func
#define NOT_IMPLEMENTED Q_ASSERT_X(false, Q_FUNC_INFO, "Not Implemented");
class StubRepository ... |
#include <gtest/gtest.h>
#include <test/unit/lang/utility.hpp>
TEST(parserReservedWords, for) {
test_throws("reserved/for",
"Variable identifier (name) may not be reserved word");
}
TEST(parserReservedWords, in) {
test_throws("reserved/in",
"Variable identifier (name) may not be reserv... |
/********************************************************
* *
* Copyright (C) Microsoft. All rights reserved. *
* *
********************************************************/
#include "pch.h"
#include "Non... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <cstdlib>
#include <cstdio>
#include <memory.h>
#include <xmmintrin.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <iomanip>
#include <type_traits>
#include <vector>
#... |
//
// Automated Testing Framework (atf)
//
// Copyright (c) 2007 The NetBSD Foundation, Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain... |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
// Copyright (c) 2014, 2015 Ableton AG, Berlin
//
// 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, merg... |
// Copyright (c) 2015-2017 The Bitcoin Core developers
// Copyright (c) 2017-2019 The Zelantus Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bench.h"
#include "prevector.h"
static void PrevectorDestr... |
// Copyright (c) 2012-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "clientversion.h"
#include "tinyformat.h"
#include <string>
/**
* Name of client reported in the 'version' message. R... |
/**
* 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" ... |
/*
* chronovise - Copyright 2018 Politecnico di Milano
*
* 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) 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/search_engines/search_provider_install_data.h"
#include <algorithm>
#include <functional>
#include <vector>
#include "base/... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
//---------------------------------------------------------------------------
//
// Copyright (c) 2008-2010 AlazarTech, Inc.
//
// AlazarTech, Inc. licenses this software under specific terms and
// conditions. Use of any of the software or derviatives thereof in any
// product without an AlazarTech digitizer board is... |
/**
* TestOpenMP_Category.hpp
*
* EPCC, The University of Edinburgh
*
* (c) 2021 The University of Edinburgh
*
* Contributing Authors:
* Christodoulos Stylianou (c.stylianou@ed.ac.uk)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the... |
/*
Copyright ©1995-1996, Juri Munkki
All rights reserved.
File: CTeleporter.c
Created: Monday, July 3, 1995, 01:19
Modified: Sunday, September 1, 1996, 20:00
*/
#include "CTeleporter.h"
#include "CAbstractPlayer.h"
#include "CPlayerManager.h"
#include "CSmartPart.h"
#define TELEPORTAREA FIX3(300... |
/// @file
/// @author David Pilger <dpilger26@gmail.com>
/// [GitHub Repository](https://github.com/dpilger26/NumCpp)
///
/// License
/// Copyright 2020 David Pilger
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy of this
/// software and associated documentation files(the "Software... |
/* <dory/mock_kafka_server/connect_handler_base.cc>
----------------------------------------------------------------------------
Copyright 2013-2014 if(we)
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 c... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/coding.h"
namespace leveldb {
void EncodeFixed32(char* buf, uint32_t value)
{
if (... |
/******************************************************************************
* Copyright 2018 The Apollo 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
... |
#include "opencv_all.hpp"
// Convert a line format, [n_x, n_y, x, y] to [a, b, c]
#define CONVERT_LINE(line) (cv::Vec3d(line(0), -line(1), -line(0) * line(2) + line(1) * line(3)))
int main(void)
{
int ransac_trial = 50;
double ransac_thresh = 3.0;
int ransac_n_sample = 2;
int sim_n_data = 1000;
do... |
#include "edge.h"
/* Print Edge*/
std::ostream& operator<<(std::ostream& os, const Edge& e) {
os << e.n1->get_id() << " " << e.n2->get_id();
return os;
} |
/* Copyright (c) 2021 PaddlePaddle 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... |
// Copyright (c) 2020 Graphcore Ltd. All rights reserved.
#include "popops/Fill.hpp"
#include "poputil/DebugInfo.hpp"
#include "poputil/Util.hpp"
#include "poputil/VertexTemplates.hpp"
#include <poplar/Graph.hpp>
using namespace poplar;
using namespace poplar::program;
using namespace poputil;
namespace popops {
t... |
/*! class VEnergySpectrum
analyse and plot spectral energy distributions
*/
#include "VEnergySpectrum.h"
VEnergySpectrum::VEnergySpectrum()
{
fDebug = 0;
bAsciiDataFile = false;
fDataSetName = "E";
fTotalRun = -1;
initializeRunVariables();
}
VEnergySpectrum::VEnergySpectrum(... |
/******************************************************************************
File: SearchPrim.cpp
Description:
Implementation of the Interpreter class' primitive methods for searching
objects
******************************************************************************/
#include "Ist.h"
#pragma code_seg(PRI... |
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm 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/li... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "UMGEditorPrivatePCH.h"
#include "UMGDetailCustomizations.h"
#include "BlueprintModes/WidgetBlueprintApplicationModes.h"
#include "PropertyEditing.h"
#include "ObjectEditorUtils.h"
#include "WidgetGraphSchema.h"
#include "ScopedTransaction.h"
#incl... |
//
// main.cpp
//
// This program implements an iterative Fibonacci number generator.
// Fibonacci numbers are defined by the recurrence relation:
//
// fib(n) = n if n < 2
// = fib(n-1) + fib(n-2) otherwise
//
// -------------------------------------------------------------------------... |
/*
* Copyright 2022 The Naja 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
#include "PhysicsClientC_API.h"
#include "PhysicsClientSharedMemory.h"
#include "Bullet3Common/b3Scalar.h"
#include "Bullet3Common/b3Vector3.h"
#include "Bullet3Common/b3Matrix3x3.h"
#include "Bullet3Common/b3Transform.h"
#include <string.h>
#include "SharedMemoryCommands.h"
b3SharedMemoryCommandHandle b3LoadSdfComm... |
// Copyright (c) 2012-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 "arith_uint256.h"
#include "consensus/merkle.h"
#include "merkleblock.h"
#include "serialize.h"
#include "streams.h"... |
/*
@Author - Jatin Goel
@Institute - IIIT Allahabad
Hardwork definitely pays off.
There is no substitute of hardwork.
There is no shortcut to success.
*/
#include <bits/stdc++.h>
using namespace std;
#define LL long long
#define F first
#define S second
bool cmp(vector<int> a,vector<int> b)
{
return a[1]*... |
// Copyright (c) 2015-2016 The Khronos Group 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 ... |
/*
*******************************************************************************
* Copyright (c) 2020-2021, STMicroelectronics
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You... |
/*
* 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 ... |
/*
* 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... |
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
using namespace std;
#define si(x) scanf("%d",&x)
#define sl(x) scanf("%lld",&x)
#define ss(s) scanf("%s",s)
#define pi(x) printf("%d\n",x)
#define pl(x) printf("%lld\n",x)
#define ps(s) printf("%s\n",s)
#define deb(x) cout << #x... |
// This file was automatically generated on Thu May 14 16:01:35 2009
// by libs/config/tools/generate.cpp
// Copyright John Maddock 2002-4.
// 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/L... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
// Completed includes
// Begin forward declares
// Forward declaring namespace: System
namespace System {
// Forward declaring type: TimeSpan
struct ... |
// written by whynespower
// linedin : whynesspower
// star mark this repo for more wonderful questions
// video explanation here https://youtu.be/27fJEAh-6wU
#include<bits/stdc++.h>
using namespace std;
class Solution{
public:
int rightmostNonZeroDigit(int n, int arr[]){
int countOf5 = 0;
... |
#ifndef _PLANNERCOORDINATIONSERVICEPLANNEREVENTEVENTHANDLER_HH_
#define _PLANNERCOORDINATIONSERVICEPLANNEREVENTEVENTHANDLER_HH_
#include "aceSmartSoft.hh"
#include <string>
#include <iostream>
#include "CommNavigationObjects/CommPlannerEventResult.hh"
#include "CommNavigationObjects/CommPlannerEventParameter.hh"
cla... |
/*
Oscar Efrain RAMOS PONCE, LAAS-CNRS
Date: 28/10/2014
Object to estimate a polynomial of second order that fits some data.
*/
#include <iostream>
#include <sot/torque_control/utils/quad-estimator.hh>
QuadEstimator::QuadEstimator(const unsigned int& N, const unsigned int& dim, const double& dt)
: PolyE... |
#include "common.h"
void isort(vector<int> &first)
{
if(first.size()<2) return;
for(int i=1;i<first.size();i++){
int temp=first[i];
int j = i-1;
while(j>=0&&first[j]>first[i]) j--;
for(int k=i-1;k>j;k--){
first[k+1]=first[k];
}
first[j+1]=temp;
}
}
int main()
{
int a[]={9,7,8,0,5,6,3,2,1,4};
v... |
#include "stdafx.h"
#include "Engine.h"
bool Engine::detectCollisions(PlayableCharacter& character)
{
bool reachedGoal = false;
// Make a rect for all his parts
FloatRect detectionZone = character.getPosition();
// Make a FloatRect to test each block
FloatRect block;
block.width = TILE_SIZE;
block.height = TI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.