text stringlengths 5 1.04M |
|---|
#include "EditorLayer.h"
#include <imgui/imgui.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "QAQ/Scene/SceneSerializer.h"
#include "QAQ/Utils/PlatformUtils.h"
#include "ImGuizmo.h"
#include "QAQ/Math/Math.h"
namespace QAQ
{
EditorLayer::EditorLayer()
: Layer("EditorLayer... |
/*
QUESTION - given a string of english alphabet lowercase letters, find the number of vowels
example -
string word = "sachinduhan";
print '4'
why? - 'a','i', 'u', 'a';
string word = "nslksssjl";
print '0';
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
int ans = 0;
string name = "sachinduha... |
//===----------------------------------------------------------------------===//
//
// 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 "test/integration/filters/tee_filter.h"
#include "envoy/registry/registry.h"
#include "source/common/common/logger.h"
#include "source/common/http/header_map_impl.h"
namespace Envoy {
// A test filter that essentially tees the data flow through it.
class StreamTeeFilter : public Http::PassThroughFilter, pu... |
// -----------------------------------------------------------------------------
// Fern © Geoneric
//
// This file is part of Geoneric Fern which is available under the terms of
// the GNU General Public License (GPL), version 2. If you do not want to
// be bound by the terms of the GPL, you may purchase a proprietary... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2017 Sylko Olzscher
*
*/
#ifndef CYNG_TRAITS_TAG_HPP
#define CYNG_TRAITS_TAG_HPP
#include <cyng/intrinsics.h>
#include <cstddef>
#include <tuple>
#include <functional>
#include <cyng/intrinsics/traits.hpp>
namespace cyng
{
namespace traits
{
/**
* Declare ... |
//
// Construct the Mu2e G4 world and serve information about that world.
//
// Original author Rob Kutschke
//
// Heirarchy is:
// 0 World (air)
// 1 Earthen Overburden
// 2 Concrete walls of the hall
// 3 Air inside the hall
// 4 Effective volume representing the DS coils+cryostats.
// ... |
// Copyright (c) 2011-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.
// Unit tests for denial-of-service detection/prevention code
#include "chainparams.h"
#include "keystore.h"
#include "net.h... |
#ifndef PYTHONIC_INCLUDE_NUMPY_INT32_HPP
#define PYTHONIC_INCLUDE_NUMPY_INT32_HPP
#include "pythonic/utils/proxy.hpp"
#include "pythonic/utils/meta.hpp"
#include "pythonic/utils/numpy_traits.hpp"
#include "pythonic/types/numpy_op_helper.hpp"
namespace pythonic
{
namespace numpy
{
namespace details
{
... |
/* NOTE - eventually this file will be automatically updated using a Perl script that understand
* the naming of test case files, functions, and namespaces.
*/
#include <time.h> /* for time() */
#include <stdlib.h> /* for srand() */
#include "std_testcase.h"
#include "testcases.h"
int main(int argc, char * argv[... |
/*
* MFRC522.cpp - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* NOTE: Please also check the comments in MFRC522.h - they provide useful hints and background information.
* Released into the public domain.
*/
#include <Arduino.h>
#include "MFRC522.h"
//////////////////////////... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 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 <amount.h>
#include <chain.h>
#include <consensus/validation.h>
#include <cor... |
#include <string>
#include <utility>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <esapp/segmenter.hpp>
namespace py = pybind11;
class py_list_inserter {
public:
explicit py_list_inserter(py::list &list) // NOLINT(runtime/references)
: list_(list) { /* do nothing */ }
py_list... |
/* $OpenBSD: ieee80211_proto.c,v 1.46 2012/01/18 14:35:56 stsp Exp $ */
/* $NetBSD: ieee80211_proto.c,v 1.8 2004/04/30 23:58:20 dyoung Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
* Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
* Copyright (c) 2008, 2009 Damien Bergamini
* All rights reserved.
*
* Red... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2017 Couchbase, 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
*
* ... |
#include "executor.hpp"
#include <cstdint>
#include <stdexcept>
using namespace quickcalc;
Executor::Executor(): NodeVisitor() {
pushState();
}
Executor::Executor(NodeVisitor *next): NodeVisitor(next) {
pushState();
}
void Executor::visit(ExprStmtNode *node) {
_lastResult = evaluate(node->expression());... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* 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... |
/*
Copyright 2016 AllThingsTalk
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 w... |
//
// Created by david on 28/12/2019.
//
#include "testbench.h"
#include <cmath>
#include <iostream>
#include <unordered_map>
#include <utility>
#include <vector>
#include <list>
#include <set>
#include <random>
#include <chrono>
#include <utils/Randoms.h>
#include <utils/BitSet.h>
#include <typing/TypeInfos.h>
#inclu... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//---------------------------------------------------------------------------
// Package Title ratpak
// File conv.c
// Copyright (C) 1995-97 Microsoft
// Date 01-16-95
//
//
// Description
//... |
//
// AnimationCache.cpp
// libraries/animation/src/
//
// Created by Andrzej Kapolka on 4/14/14.
// Copyright (c) 2014 High Fidelity, Inc. All rights reserved.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#inc... |
#include "ros/ros.h"
#include "rplidar_ros_blocking/new_rplidar.h"
void msgCallback(const rplidar_ros_blocking::new_rplidar::ConstPtr& msg){
int count = msg->count;
for(int i=0; i<count; i++)
ROS_INFO("new info : [%f, %f]", msg->degree[i], msg->distance[i]);
}
int main(int argc, char **argv){
ros:... |
// -------------------------------------------------------------------------------------------------
// Copyright 2016 - NumScale SAS
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE.txt or copy at
// ... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
// Copyright 2010, Shuo Chen. All rights reserved.
// http://code.google.com/p/muduo/
//
// Use of this source code is governed by a BSD-style license
// that can be found in the License file.
// Author: Shuo Chen (chenshuo at chenshuo dot com)
#include "muduo/net/EventLoop.h"
#include "muduo/base/Logging.h"
#inclu... |
/*
* DIPlib 3.0
* This file contains definitions for look-up tables and related functionality
*
* (c)2017, Cris Luengo.
* Based on original DIPlib code: (c)1995-2014, Delft University of Technology.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
// Copyright 2018 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
/*
* Copyright (C) 2016 Open Source Robotics 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 appl... |
// 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 2019 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
... |
#pragma once
#include "Cardia/Core/Window.hpp"
#include "Cardia/Renderer/RendererContext.hpp"
#include <GLFW/glfw3.h>
namespace Cardia
{
struct WinData
{
std::string title;
int width, height;
bool vSync;
std::function<void(Event&)> eventCallback;
};
class WindowsWin : public Window
{
public:
Windo... |
//=============================================================================
/**
* @file Sched_Params.cpp
*
* $Id: Sched_Params.cpp 83624 2008-11-09 11:45:59Z johnnyw $
*
* @author David Levine
*/
//=============================================================================
#include "ace... |
/*
* Copyright (c) 2006 - 2016 Stephen F. Booth <me@sbooth.org>
* See https://github.com/sbooth/SFBAudioEngine/blob/master/LICENSE.txt for license information
*/
#include <AudioToolbox/AudioFormat.h>
#include "WavPackDecoder.h"
#include "CFWrapper.h"
#include "CFErrorUtilities.h"
#include "Logger.h"
#define BUFFE... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2019,2020,2021, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http... |
// Copyright 2018 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... |
#include "sequence.h"
int SequenceGenerator::findChannelIndex(int hopIncrement, int channel, int start)
{
for (int i=0; i<37; i++)
if (m_sequences[hopIncrement][(start + i)%37] == channel)
return (start + i)%37;
/* -1 if not found. */
return -1;
}
int SequenceGenerator::computeDistance(int hopIncre... |
#include "DataModelRegistry.hpp"
#include <QtCore/QFile>
#include <QtWidgets/QMessageBox>
using QtNodes::DataModelRegistry;
using QtNodes::NodeDataModel;
using QtNodes::NodeDataType;
using QtNodes::TypeConverter;
std::unique_ptr<NodeDataModel> DataModelRegistry::create(QString const &modelName)
{
auto it = _regist... |
// Copyright Aleksey Gurtovoy 2002-2004
//
// 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)
//
// *Preprocessed* version of the main "unpack_args.hpp" header
// -- DO NOT modify by hand!
namespace ... |
/*
SPDX-License-Identifier: MIT
Copyright (c) 2021 Bart Bilos
For conditions of distribution and use, see LICENSE file
*/
/** \file testArray.cpp
\brief Tests for util::atomic
Tests for util::atomic
*/
#include <MinUnit.h>
#include <stdint.h>
#include <atomic.hpp>
/** \brief util::atomic test uint16_t atomics *... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/webapps/common/constants.h"
namespace webapps {
const size_t kMaxMetaTagAttributeLength = 2000;
const char kWebAppsMigratedPreinst... |
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2017 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* 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 Foundation; either version 2
* ... |
// Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h" // for pwalletMain
#include "bitcoinrpc.h"
#include "ui_interface.h"
#include "base58.h"
#include <boost/lexica... |
//
// Created by 李晨曦 on 30/10/2017.
//
#include "Slot.hpp"
Slot::Slot(int32_t num) : num(num)
{}
Slot::Slot(Object* ref) : ref(ref)
{}
LocalVars::LocalVars(uint32_t maxLocals)
{
this->slots = std::vector<Slot *>(maxLocals);
for (uint32_t i = 0; i < maxLocals; i++)
{
this->slots[i] = new Slot(0);
}
}
OperandS... |
/**
* Copyright (C) 2020 IBM 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 a... |
/* $Id: seqsrc_unit_test.cpp 199874 2010-08-03 17:21:21Z camacho $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government W... |
/*
* QR Code generator library (C++)
*
* Copyright (c) Project Nayuki. (MIT License)
* https://www.nayuki.io/page/qr-code-generator-library
*
* 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... |
#include <iostream>
#include <semver.hpp>
int main() {
constexpr semver::version v_default;
std::cout << v_default << std::endl; // 0.1.0
constexpr semver::version v1{1, 4, 3};
constexpr semver::version v2{"1.2.4-alpha.10"};
std::cout << v1 << std::endl; // 1.4.3
std::cout << v2 << std::endl; ... |
/*
* Copyright (c) 2014-2021, NVIDIA CORPORATION. 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 ... |
/****************************************************************************
* hipipe library
* Copyright (c) 2018, Iterait a.s.
* Author(s) Filip Matzner, Adam Blazek
*
* This file is distributed under the MIT License.
* See the accompanying file LICENSE.txt for the complete license agreement.
***********... |
/*
* Copyright (c) 2015 Andrew Kelley
*
* This file is part of libsoundio, which is MIT licensed.
* See http://opensource.org/licenses/MIT
*/
#include <soundio/soundio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
static int usage(char *exe) {
fprintf(stderr, "Usage: %s [... |
#include "languages.h"
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
int main(int argc, char *argv[]){
if(argc <= 2){
return 1; exit(EXIT_FAILURE);
}
double comp = 0;
std::string name;
languages similar;
for (int i = 1; i < argc; i++){
std::ifstream my_file(argv[i]);
if (my_file... |
int find(int i) { return (p[i] == i) ? i : (p[i] = find(p[i])); }
int join(int i, int j) {
int a = find(i), b = find(j);
if (a != b) {
if (rank[a] > rank[b]) p[b] = a;
else { p[a] = b;
if (rank[a] == rank[b]) rank[b]++; }
}
} |
/*********************************************************************
* Filename: sha256.c
* Author: Brad Conte (brad AT bradconte.com)
* Copyright:
* Disclaimer: This code is presented "as is" without any guarantees.
* Details: Implementation of the SHA-256 hashing algorithm.
SHA-256 is one of ... |
#include "json_array2.h"
namespace bbai::jsonex {
//--------------------------------------------------------------------------------------------------
// to_string
//--------------------------------------------------------------------------------------------------
std::string json_array2::to_string() const noexcept {
... |
/*
* SensorProcessorBase.hpp
*
* Created on: Jun 6, 2014
* Author: Péter Fankhauser, Hannes Keller
* Institute: ETH Zurich, ANYbotics
*/
#pragma once
// ROS
#include <ros/ros.h>
#include <tf/transform_listener.h>
// PCL
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
// Eigen
#include <Eigen... |
/* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* 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 Foundation; either version 2 of the License, or
* (at your option) any l... |
#include <algorithm>
#include "simulation/ElementCommon.h"
static void initDeltaPos();
static void changeType(ELEMENT_CHANGETYPE_FUNC_ARGS);
void Element::Element_ETRD()
{
Identifier = "DEFAULT_PT_ETRD";
Name = "ETRD";
Colour = PIXPACK(0x404040);
MenuVisible = 1;
MenuSection = SC_ELEC;
Enabled = 1;
Advection ... |
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using std::cout;
using std::endl;
using std::ifstream;
using std::istringstream;
using std::string;
using std::vector;
enum class State {OK,BAD };
vector<vector<State>> ReadBoard(string file){
ifstream boardFile(file);
... |
/**
@file escconf_sequence_sequence.cpp
@brief Configure BLHelo littlebee 30A brushless motor control ESC.
@author Pekka Lehtikoski
@version 1.0
@date 2.8.2020
Copyright 2020 Pekka Lehtikoski. This file is part of the eobjects project and shall only be used,
modified, and distributed under the ... |
#include "newprojectdialog.h"
#include "ui_newprojectdialog.h"
#include <QtWidgets>
NewProjectDialog::NewProjectDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::NewProjectDialog)
{
ui->setupUi(this);
}
NewProjectDialog::~NewProjectDialog()
{
delete ui;
}
void NewProjectDialog::on_pushButton_clic... |
// 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.Runtime.Remoting.RemotingSer... |
/*
* Copyright 2017-2019 Baidu 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... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkTextureMapToSphere.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
// 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 "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/path... |
/*
* 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 Joyent, Inc. and other Node 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 rights to use, copy, modi... |
/**
* @file
* @copyright defined in eos/LICENSE
*/
#pragma once
#include <appbase/application.hpp>
#include <eosio/chain/asset.hpp>
#include <eosio/chain/authority.hpp>
#include <eosio/chain/account_object.hpp>
#include <eosio/chain/block.hpp>
#include <eosio/chain/controller.hpp>
#include <eosio/chain/contract_ta... |
// Copyright (c) 2012, 2013 Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
#include "book/types.h"
#include "latency/clock_gettime.h"
#include "simple/simple_order_book.h"
#include <iostream>
#include <stdexcept>
#include <stdlib.h>
using namespace liquibook;
usi... |
//CodeChef
//Beginner Practice Problem
//Chef and Remissness [REMISS]
#include <bits/stdc++.h>
using namespace std;
int main()
{
unsigned long long t=0;
cin>>t;
while(t--)
{
unsigned long long a=0,b=0;
cin>>a>>b;
if(b>a) {cout<<b<<" ";}
else {cout<<a<<" ";}
cout<<a+b<<"\n";
... |
// Copyright (c) 2018, Ryo Currency Project
// Portions copyright (c) 2014-2018, The Monero Project
//
// Portions of this file are available under BSD-3 license. Please see ORIGINAL-LICENSE for details
// All rights reserved.
//
// Authors and copyright holders give permission for following:
//
// 1. Redistribution an... |
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
int i=2;
for(;i<=n-1;i++){
if(n%i==0){
cout<<n<<" is not Prime"<<endl;
break;
}
}
if(i==n){
cout<<n<<" is prime"<<endl;
}
} |
//
// Created by aicdg on 2017/6/20.
//
//
// Chapter: 03 Command Buffers and Synchronization
// Recipe: 04 Ending a command buffer recording operation
#include "S04_Ending_a_command_buffer_recording_operation.h"
namespace VKCookbook {
bool EndCommandBufferRecordingOperation( VkCommandBuffer command_buffer ) {... |
// Dear ImGui: standalone example application for DirectX 12
// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
// Read online: https://github.com/ocornut/imgui/tree/master/docs
// FIXME: 64-bit only for now! (Because sizeof(ImTextureId) == sizeof(void*))
#include "i... |
// Copyright 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 "content/browser/frame_host/render_frame_host_delegate.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/bind_helpers.... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2020-2021 Couchbase, 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
*
* ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 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 <wallet/db.h>
#include <addrman.h>
#include <hash.h>
#include <protocol... |
// -*- C++ -*-
//
// $Id: Functor_T.inl 2179 2013-05-28 22:16:51Z mesnierp $
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template<class RECEIVER> ACE_INLINE
ACE_Member_Function_Command<RECEIVER>::
ACE_Member_Function_Command (RECEIVER &recvr, PTMF ptmf)
: receiver_(recvr)
, ptmf_(ptmf)
{
}
template<class RECEIVER> ACE_IN... |
/*
* Copyright (c) 2013 - 2018, Hugo Hernan Saez
* 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... |
#include "ComponentRigidDynamic.h"
#include "Application.h"
#include "ModulePhysics.h"
#include "GameObject.h"
#include "ComponentTransform.h"
#include "ComponentCollider.h"
#include "ComponentBoxCollider.h"
#include "ComponentSphereCollider.h"
#include "ComponentCapsuleCollider.h"
#include "ComponentPlaneCollider.h"... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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 "txdb.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "net.h"
#... |
/**
* @file methods/neighbor_search/sort_policies/nearest_neighbor_sort.hpp
* @author Ryan Curtin
*
* Implementation of the SortPolicy class for NeighborSearch; in this case, the
* nearest neighbors are those that are most important.
*
* mlpack is free software; you may redistribute it and/or modify it under the... |
#ifndef PCS_HPP
#define PCS_HPP
#include <string>
#include <vector>
#include <memory>
#include <random>
#include "warped.hpp"
WARPED_DEFINE_LP_STATE_STRUCT(PcsState) {
unsigned int idle_channel_cnt_;
unsigned int call_attempts_;
unsigned int channel_blocks_;
unsigned int handoff_blocks_;
};
enum me... |
/*!
@file
Defines `boost::hana::detail::index_if`.
@copyright Louis Dionne 2013-2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_DETAIL_INDEX_IF_HPP
#define BOOST_HANA_DETAIL_INDEX_IF_HPP
... |
/*
* (c) Copyright 2011-2013, Hewlett-Packard Development Company, LP
*/
#include "w_defines.h"
/* -- do not edit anything above this line -- </std-header>*/
#define SM_SOURCE
#define SMTHREAD_C
#include <sm_base.h>
#include <w_strstream.h>
SmthreadFunc::~SmthreadFunc()
{
}
/*
* Thread map that will contai... |
#include <stdio.h>
#include "ServoController.h"
// Array for iterating over all servo locations.
ServoController::servoLocation servoLocations[12] = {
ServoController::kServoLocationFrontRightTip,
ServoController::kServoLocationFrontRightMiddle,
ServoController::kServoLocationFrontRightBase,
ServoControll... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkTypes.h"
#include "Test.h"
#include "GrContextPriv.h"
#include "GrDeinstantiateProxyTracker.h"
#include "GrGpu.h"
#include "GrProxyProvider.h"
#include "GrResour... |
// 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... |
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
/***************************************************************************
Elektronika MK-85
12/05/2009 Skeleton driver.
http://www.taswegian.com/MOSCOW/mk-85.html
This is a Soviet computer-calculator, very similar in looks to the ... |
#include "Callclient.h"
#include "cems_net.h"
#define CEMS_CLIENT_UDP 22116
#define BUFFER_SIZE 1024*5
//#define MAX_UDP_CODE 0x10100
//#define MIN_UDP_CODE 0x4
using namespace std;
MCallClient::MCallClient(void)
{
}
MCallClient::~MCallClient(void)
{
}
std::string MCallClient::Read(std::string szKey)
{
... |
/**
@file FirstBossLifeScript.hpp
@brief Manage the first boss life.
@copyright MIT License.
*/
#ifndef __FIRST_BOSS_LIFE_SCRIPT__
#define __FIRST_BOSS_LIFE_SCRIPT__
#include "Engine/InputSystem.hpp"
#include "Engine/GameObject.hpp"
#include "Engine/SceneManager.hpp"
#include "Engine/CameraSystem.hpp"
#in... |
/*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2004-2012. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/i... |
// Copyright 2018 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... |
/*
* Copyright (c) 2020, Matthew Olsson <matthewcolsson@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:
*
* 1. Redistributions of source code must retain the above copyright noti... |
// Copyright 2020 The TensorFlow Runtime Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*=============================================================
**
** Source: virtualalloc.c
**
** Purpose: Positive test the VirtualAlloc API.
** Call VirtualAlloc with ME... |
/*!
* @copyright
* Copyright (c) 2015, Tymoteusz Blazejczyk
*
* @copyright
* All rights reserved.
*
* @copyright
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* @copyright
* * Redistributions of source cod... |
#include "pch.h"
#include "CppUnitTest.h"
#include "leetcode-cpp/p1232/p1232_solution.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace tests
{
TEST_CLASS(p1232_test)
{
public:
TEST_METHOD(test1) {
auto solution{ leetcode::p1232::Solution() };
auto result{ solution.checkStraightL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.