text stringlengths 5 1.04M |
|---|
#include <2DGameSDK/scene/entity/definitions/DynamicEntity.h>
namespace game {
DynamicEntity::DynamicEntity(int type, GameBase* game, RenderStrategy* renderer, std::vector<Shape<DynamicShapePhysics>*> shapes, bool isCollidable) : Entity(type, game), mRenderer(renderer), mIsCollidable(isCollidable), mShapes(shapes... |
// Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#ifndef SGE_INPUT_JOYPAD_FF_CONDITION_FWD_HPP_INCLUDED
#define SGE_INPUT_JOYPAD_FF_CONDITION_FWD_HP... |
/*!
* Copyright (c) 2015 by Contributors
* \file regression_output.cc
* \brief regression output operator
*/
#include "./regression_output-inl.h"
#include "./mshadow_op.h"
namespace mxnet {
namespace op {
template<>
Operator *CreateRegressionOutputOp<cpu>(reg_enum::RegressionOutputType type,
... |
/*
* Copyright (c) 2010-2013 OTClient <https://github.com/edubart/otclient>
*
* 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... |
/*
* Tencent is pleased to support the open source community by making
* WCDB available.
*
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use
* this file except in compliance with the License. You may obtai... |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End... |
#include "config.h"
#include "cpu/gdt.h"
#include "std/stdout.h"
GlobalDescriptorTable::GlobalDescriptorTablePointer gdt_pointer;
uint16_t codeSegmentSelectortemp;
uint16_t dataSegmentSelectortemp;
size_t kernelCodeSegmentSelectorindex = 1;
size_t kernelDataSegmentSelectorindex = 2;
GlobalDescriptorTable::GlobalDes... |
#include "button_volume.h"
static constexpr int minVolume = 0;
static constexpr int maxVolume = 200;
Button_Volume::Button_Volume(const Button::CtorData &d) : Button_UserRelated(d) {
step = (d.action == "cz.danol.discordmixer.volumeup" ? 1 : -1) * 5;
repeatTimer.setInterval(100);
repeatTimer.callOnTimeout([this] ... |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <armnn/BackendRegistry.hpp>
#include <armnn/Exceptions.hpp>
#include <ProfilingService.hpp>
namespace armnn
{
BackendRegistry& BackendRegistryInstance()
{
static BackendRegistry instance;
return instance;
}
void... |
// 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 <set>
#include <string>
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/string_util.h"
#include "net... |
#include "Assert.h"
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <assert.h>
#define assert_custom(_Expression, _Message, _File, _Line) (void)( (!!(_Expression)) || (__assert(_Message, _File, _Line), 0) )
#ifdef __cplusplus
extern "C" {
#endif
void __OnAssert(const char* file, unsigned line, co... |
#include "neural/feature_fn.h"
#include "util/includes.h"
#include "data/globals.h"
namespace vectorbook {
namespace {
// Indicates the identity of the author of the *action*.
class ActionAuthorFeature : public FeatureExtractor<Action> {
public:
string FeatureName() const override { return "action_author"; }
str... |
#pragma once
#include "render.hpp"
#include <colex/colex.hpp>
#include <glm/glm.hpp>
#include <iostream>
#include <vector>
using namespace colex;
namespace draw::line {
/**
* Returns how many elements each vertex has
*/
size_t vertex_size();
/**
* Base class for line shapes
*/
template<typename T>
class Base ... |
// Copyright (c) 2009-2014 The Bitcoin developers
// 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 "uritests.h"
#include "guiutil.h"
#include "walletmodel.h"
#include <QUr... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
#include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"
#include "guiutil.h"
#include "init.h"
#include "main.h"
#include "optionsmodel.h"
#include "walletmodel.h"
#include "wallet.h"
#include <string>
#include <vector>
#include <QClipboard>
Sign... |
//******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#ifdef HERMESVM_SERIALIZE
#include "hermes/ADT/CompactArray.h"
#include "hermes/VM/Deserializer.h"
#include "hermes/VM/GCPointer-i... |
/*ckwg +29
* Copyright 2011-2018 by Kitware, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this li... |
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#include "FortniteCloneCharacter.h"
#include "FortniteClonePlayerController.h"
#include "FortniteClonePlayerState.h"
#include "ThirdPersonAnimInstance.h"
#include "ProjectileActor.h"
#include "StormActor.h"
#include "FortniteCloneHUD.h"
#include "We... |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2019 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 "addresstablemodel.h"
... |
#ifndef NUIE_UINODEGROUP_HPP
#define NUIE_UINODEGROUP_HPP
#include "NE_LocString.hpp"
#include "NE_NodeGroup.hpp"
#include "NUIE_UINode.hpp"
namespace NUIE
{
class GroupDrawingImage : public DrawingImage
{
public:
GroupDrawingImage ();
virtual ~GroupDrawingImage ();
void Reset ();
const Rect& GetRect () co... |
#include "legacy_future.h"
#include <library/cpp/testing/unittest/registar.h>
namespace NThreading {
Y_UNIT_TEST_SUITE(TLegacyFutureTest) {
int intf() {
return 17;
}
Y_UNIT_TEST(TestIntFunction) {
TLegacyFuture<int> f((&intf));
UNIT_ASSERT_VALUES_EQUAL(... |
//#include "stdafx.h"
extern "C" {
#include "..\defs.h"
}
// total_h sum of the heights of all the items in the display queue
//
// display_y the display queue y coordinate that maps to the screen
//
// maxy_y the maximum value that display_y can have
//
// total_w the maximum width including right and left margins... |
class Solution {
public:
int regionsBySlashes(vector<string>& grid) {
const int n = grid.size();
// g := upscaled grid
vector<vector<int>> g(n * 3, vector<int>(n * 3));
for (int i = 0; i < n; ++i)
for (int j = 0; j < n; ++j)
if (grid[i][j] == '/') {
g[i * 3][j * 3 + 2] = 1;
... |
// Modifications copyright (C) 2017, Baidu.com, Inc.
// Copyright 2017 The Apache Software Foundation
// 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. ... |
// ExtractingFilePath.cpp
#include "../../../Common/Wildcard.h"
#include "../../../Windows/FileName.h"
#include "ExtractingFilePath.h"
static void ReplaceIncorrectChars(UString &s)
{
{
for (unsigned i = 0; i < s.Len(); i++)
{
wchar_t c = s[i];
if (
#ifdef _WIN32
c == ':' ... |
/**
* ScriptDev3 is an extension for mangos providing enhanced features for
* area triggers, creatures, game objects, instances, items, and spells beyond
* the default database scripting in mangos.
*
* Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/>
* Copyright (C) 2014-2016 MaNGOS <https://get... |
#if defined(__cplusplus) && (__cplusplus >= 201103L)
#include <iostream>
#include <iomanip>
#include <atomic>
#include "myatomics.h"
#ifdef _OPENMP
# include <omp.h>
# define OMP_PARALLEL _Pragma("omp parallel reduction(+:tavg) reduction(max:tmax) reduction(min:tmin) reduction(max:tinc)")
# define OMP_BAR... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <memory>
#include "itt.hpp"
#include "ngraph/op/convert.hpp"
#include "ngraph/op/greater.hpp"
#include "ngraph/op/maximum.hpp"
#include "ngraph/op/multiply.hpp"
#include "ngraph/runtime/host_tensor.hpp"
#include "ngraph/ru... |
/*
* 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... |
// Generated by Haxe 4.2.1+bf9ff69
#include <hxcpp.h>
#ifndef INCLUDED_lime_graphics_opengl_ext_EXT_color_buffer_half_float
#include <lime/graphics/opengl/ext/EXT_color_buffer_half_float.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_15fbe66fa7b31d40_5_new,"lime.graphics.opengl.ext.EXT_color_buffer_half_float","new",0x4f3c6... |
//
// 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 and the following disclaimer.
// * Redistributions in bin... |
// Copyright (c) 2014, HelightXu
// Author: Zhwen Xu<HelightXu@gmail.com>
// Created: 2014-03-09
// Description:
//
#define _MULTI_THREADED
#include <pthread.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
void checkResults(const char* msg, const int rc)
{
// printf("%s : %d \r\n", msg, rc);
}
/* For... |
// represents raw data.
// Copyright Sundeep S. Sangha 2013 - 2017.
// 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)
#ifndef DATA_PATTERN_BITS_RAW_TCC
#define DATA_PATTERN_BITS_RAW_TCC
name... |
#include <bits/stdc++.h>
using namespace std;
//a medium level question of codechef
// question code - CSS2
// simple solution using c++ maps and pairs
int main()
{
int n,ma;
cin>>n>>ma;
map<pair<int,int>, pair<int,int>> m;
map<pair<int,int>,pair<int,int>>::iterator it;
for(int j=0;j<n;j++){
... |
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
const int maxN=1010;
const int Mod=10000;
const int inf=2147483647;
int n,K;
int F[maxN][maxN];
int Sum[maxN][maxN];
int main()
{
scanf("%d%d",&n,&K);
F[1][0]=1;
Sum[1][1]=1;
for (int i=2;... |
/*
* \file Path.cpp
*
*/
#include "Path.h"
#include "Activity.h"
Path::Path (std::vector<Activity *> activities, size_t current_index){
activities_ = activities;
current_index_ = current_index;
events_.push_back(activities_.front()->source());
for(Activity * act : activities_){
events_.push_back(act->t... |
#include "data/ops/channel.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace vectorbook {
} // namespace vectorbook
|
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
#ifndef insitu_utils_ROS_HPP
#define insitu_utils_ROS_HPP
#include <vector>
#include <string>
namespace insitu_utils
{
void getTopicsByType(std::vector<std::string>& ret,
const std::string& type = "");
}
#endif /* insitu_utils_ROS_HPP */
|
/* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
/*
* Created by Phil on 22/10/2010.
* Copyright 2010 Two Blue Cubes Ltd. All rights reserved.
*
* 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)
*/
#ifndef TWOBLUECUBES_CATCH_RUNNER_IMPL_HPP_INCLUDED
#define... |
#include "pch.h"
#include "PetSkillWindow.h"
#include "GameTextControl.h"
#include "PetSkillPage.h"
#include "GLGaeaClient.h"
#include "SkillSlot.h"
#include "InnerInterface.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
CPetSkillWindow::CPetSkillWindow()
: m_pPage( NULL )
{
}
CPetSkillWindow::~CPetSkillWindow ()
{... |
/*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 "inventorydialog.h"
#include "ui_inventorydialog.h"
InventoryDialog::InventoryDialog(QWidget *parent) :
QDialog(parent, Qt::WindowFlags() | Qt::Window),
ui(new Ui::InventoryDialog)
{
ui->setupUi(this);
createActions();
}
InventoryDialog::~InventoryDialog()
{
delete ui;
}
... |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... |
/**
* Copyright 2019-2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
/*
* soyac - Soya Programming Language compiler
* Copyright (c) 2009 Denis Washington <dwashington@gmx.net>
*
* This file is distributed under the terms of the MIT license.
* See LICENSE.txt for details.
*/
#ifndef _PASS_RESULT_HPP
#define _PASS_RESULT_HPP
#include <list>
#include "Problem.hpp"
namespace soyac... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "walletdb.h"
#include "base58.h"
#include "protocol.h"
#include "serial... |
#pragma once
#include <list>
#include <memory>
#include "../util/vec.hpp"
#include "../types.hpp"
class Galaxy {
private:
unsigned long id;
double size; // light years
Vec3 position; // position of this galaxy within the universe, units of light years
std::list<System_ptr> systems;
Unive... |
#pragma once
#include <fstream>
#include <string>
#include <vector>
#include "all_type_variant.hpp"
#include "csv_meta.hpp"
#include "type_cast.hpp"
#include "types.hpp"
namespace opossum {
class CsvWriter {
public:
/*
* Creates a new CsvWriter with the given file as output file.
* @param file The file to ... |
#include <iostream>
int main(void) {
std::cin.tie(0);
std::ios_base::sync_with_stdio(0);
int n, counter = 0, counterElse = 0;
std::cin >> n;
char mat[n][n];
for(int i = 0; i < n; i++) {
for(int j = 0; j < n; j++) {
std::cin >> mat[i][j];
}
}
bool isPossible = mat[0][n-1] == mat[0][0] && m... |
/**********************************************************************
Audacity: A Digital Audio Editor
Audacity(R) is copyright (c) 1999-2008 Audacity Team.
License: GPL v2 or later. See License.txt.
ScoreAlignDialog.cpp
<TODO: authors>
**************************************************************... |
/**
* @file Benchmark.cpp
*
* @brief Benchmarking tests for Zerocoin.
*
* @author Ian Miers, Christina Garman and Matthew Green
* @date June 2013
*
* @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
* @license This project is released under the MIT license.
**/
... |
// 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 "httpserver.h"
#include "chainparamsbase.h"
#include "compat.h"
#include "util.h"
#include "netbase.h"
#include "rpc/pro... |
#ifndef _w32_sy_Attributes_hpp__
#define _w32_sy_Attributes_hpp__
// Copyright (c) 2009-2012, Andre Caron (andre.l.caron@gmail.com)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
// 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... |
//
// EditorComponents.inl
// EnginePrototype
//
// Created by Samir Sinha on 4/21/16.
//
//
namespace cinek {
template<typename Object>
void updateComponentUI
(
EditorUIVariantMap& uiVariants,
float columnOffsets[2],
const char* componentName,
Object* object
)
{
ove::Component<Object> componen... |
/*******************************************************************\
Module:
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
#include "boolbv.h"
#include <cassert>
#include <util/arith_tools.h>
#include <util/std_expr.h>
#include <util/simplify... |
/*
* nghttp2 - HTTP/2 C Library
*
* Copyright (c) 2019 nghttp2 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 limitation the r... |
// Copyright (c) 2014-2018 The Danxome Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <crypto/hmac_sha256.h>
#include <string.h>
CHMAC_SHA256::CHMAC_SHA256(const unsigned char* key, size_t keylen)
{
... |
// ----------------------------------------------------------------------------
// Copyright 2016-2017 ARM Ltd.
//
// SPDX-License-Identifier: Apache-2.0
//
// 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 ... |
/* easy: C++ ESOP library
* Copyright (C) 2018 EPFL
*
* 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, mo... |
/*
* Copyright (c) 2020-2021, Intel Corporation
*
* 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... |
/****************************************************************************************
* @author: kzvd4729 created: 2019-09-18 15:09:33
* solution_verdict: Accepted language: C++
* run... |
#include "Communicator.h"
#include "ArduinoJson.h"
#include "Configuration.h"
void Communicator::init(arduino_planter_configuration_t & configuration, planter_state_t & state)
{
this->configuration = &configuration;
this->state = &state;
}
void Communicator::listen()
{
state->input_result = Serial.available() ? r... |
// Copyright (c) 2003 David Muse
// See the file COPYING for more information
#include <rudiments/serviceentry.h>
#include <rudiments/charstring.h>
#include <rudiments/stdio.h>
#include "test.cpp"
int main(int argc, const char **argv) {
// uninitialized
serviceentry se;
stdoutput.printf("uninitialized:\n");
tes... |
// Copyright 2020 Sapphire development team. All Rights Reserved.
namespace Sa
{
constexpr char8 operator""_c8(unsigned long long int _lit) noexcept
{
return static_cast<char8>(_lit);
}
constexpr char16 operator""_c16(unsigned long long int _lit) noexcept
{
return static_cast<char16>(_lit);
}
constexpr ch... |
//=== WebAssemblyLowerEmscriptenEHSjLj.cpp - Lower exceptions for Emscripten =//
//
// 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
//
//===---------------------------... |
//
// from http://www.zedwood.com/article/cpp-md5-function
//
// compile and run in linux:
// g++ main.cpp md5.cpp -o md5_sample && ./md5_sample
// output:
// md5 of 'grape' : b781cbb29054db12f88f08c6e161c199
// md5 of 'gr'+'ape': b781cbb29054db12f88f08c6e161c199
#include <iostream>
#include "md5.h"
int
main(int ar... |
//
// OpenCLWrapper.hpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef OpenCLWrapper_hpp
#define OpenCLWrapper_hpp
#if defined(_MSC_VER)
#include <Windows.h>
#undef min
#undef max
#undef NO_ERROR
#endif
#include <memory>
#include "core/Macro.h"
#define CL_... |
#include "cbase.h"
#include "forcefeedback.h"
#include "hud_macros.h"
#include "input.h"
#define FF_CLIENT_FLAG 0x8000
class FFParams
{
public:
FORCEFEEDBACK_t m_nEffectType;
FFBaseParams_t m_BaseParams;
};
struct FFEffectInfo_t
{
FORCEFEEDBACK_t effectType;
char const *name;
};
#define DECLARE_FFEFFECT( name... |
class Solution {
public:
double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) {
float result;
for(int i=0;i<nums2.size();i++)
{
nums1.push_back(nums2[i]);
}
// sort nums1
sort(nums1.begin(),nums1.end());
... |
// Copyright (c) 2007-2018 Hartmut Kaiser
// Copyright (c) 2011 Bryce Lelbach
// Copyright (c) 2011-2017 Thomas Heller
//
// 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_RUNTIME_SUPPORT_JUN_02... |
/*
* @file
* @author University of Warwick
* @version 1.0
*
* @section LICENSE
*
* @section DESCRIPTION
*
* This class contains the implementation of the EuclideanVector2D class.
*/
#include "EuclideanVector2D.h"
namespace cupcfd
{
namespace geometry
{
namespace euclidean
{
}
}
}
|
#include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
#include <functional>
#include <vector>
#include <deque>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <list>
#include <unordered_map>
#include <unordered_set>
#include <iterator>
#include <bitset>
#include <limits>... |
/*
* Copyright (c) 2020, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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/LICEN... |
/**
* 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... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: 21015_S2CNewRoomAddNotify.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "21015_S2CNewRoomAddNotify.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*/
#define DEBUG_TYPE "vm"
#include "hermes/VM/Runtime.h"
#include "hermes/AST/SemValidate.h"
#include "hermes/BCGen/HBC/Bytecode.h"
#... |
/**
* \file QryWznmPrjPrj1NVersion.cpp
* job handler for job QryWznmPrjPrj1NVersion (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 16 Dec 2020
*/
// IP header --- ABOVE
#ifdef WZNMCMBD
#include <Wznmcmbd.h>
#else
#include <... |
//
// UnityInterstitialAd.cpp
// ee_x
//
// Created by Zinge on 10/10/17.
//
//
#include "ee/unity_ads/private/UnityInterstitialAd.hpp"
#include <cassert>
#include <ee/ads/internal/IAsyncHelper.hpp>
#include <ee/core/ILogger.hpp>
#include <ee/core/NoAwait.hpp>
#include <ee/core/Task.hpp>
#include <ee/core/Utils.h... |
// Copyright 2019 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 "gtest/gtest.h"
#include "interception_workflow_test.h"
namespace fidlcat {
// zx_fifo_create tests.
std::unique_ptr<SystemCallTest> ZxFifoCrea... |
// Copyright 2022 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... |
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from bitcoin_like_wallet.djinni
#ifndef DJINNI_GENERATED_BITCOINLIKEBLOCK_HPP
#define DJINNI_GENERATED_BITCOINLIKEBLOCK_HPP
#include <chrono>
#include <cstdint>
#include <string>
namespace ledger { namespace core { namespace api {
/**Class repr... |
#include "stdafx.h"
#include "Config.h"
#include "BaseToBotImpl.h"
#include "BaseConnection.h"
#include "Vision.h"
#include "PeriodicTimer.h"
#include "PositionMonitor.h"
#include "Arduino.h"
#include "Fpga.h"
#include "VisionCommImpl.h"
#include "Util.h"
using namespace R2D2;
const char CONFIG_FILE[] =... |
/****************************************************************************
*
* Copyright (c) 2019 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... |
/*
liblightify -- library to control OSRAM's LIGHTIFY
Copyright (c) 2015, Tobias Frost <tobi@coldtobi.de>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must ret... |
/***************************************************************************
*
* Author: "Sjors H.W. Scheres"
* MRC Laboratory of Molecular Biology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software F... |
/*
* Copyright (c) 2002-2012, California Institute of Technology.
* All rights reserved. Based on Government Sponsored Research under contracts NAS7-1407 and/or NAS7-03001.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:... |
#include "DQMOffline/Muon/interface/EfficiencyPlotter.h"
// Framework
#include <FWCore/Framework/interface/Event.h>
#include "DataFormats/Common/interface/Handle.h"
#include <FWCore/Framework/interface/ESHandle.h>
#include <FWCore/Framework/interface/MakerMacros.h>
#include <FWCore/Framework/interface/EventSetup.h>
#i... |
// Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
// Copyright 2019 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 <gtest/gtest.h>
#include "tools/fidlcat/interception_tests/interception_workflow_test.h"
namespace fidlcat {
// zx_thread_exit tests.
std::uni... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "PointwiseFunctions/AnalyticData/GrMhd/RiemannProblem.hpp"
#include <pup.h>
#include "DataStructures/DataVector.hpp" // IWYU pragma: keep
#include "DataStructures/Tensor/EagerMath/DotProduct.hpp"
#include "DataStructures/Tensor/Tensor.hp... |
/*
Copyright Soramitsu Co., Ltd. 2016 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... |
/*
* Copyright (c) 2012 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... |
/*
* This is part of my wrapper-class to create
* a MD5 Hash from a string and a file.
*
* This code is completly free, you
* can copy it, modify it, or do
* what ever you want with it.
*
* Feb. 2005
* Benjamin Grüdelbach
*/
/*
* Changed unsigned long int types into uint32_t to make this work on 64bit syste... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.