text stringlengths 5 1.04M |
|---|
/*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 downlo... |
#include "Classes/Qt/Scene/Validation/ValidationProgress.h"
#include "Classes/Qt/Scene/Validation/ValidationProgressConsumer.h"
#include <Debug/DVAssert.h>
void ValidationProgress::Started(const DAVA::String& title)
{
DVASSERT(consumer != nullptr);
result = DAVA::Result::RESULT_SUCCESS;
consumer->Validati... |
//------------------------------------------------------------------------------
/// \file ErrorHandling.cpp
/// \author Ernest Yeung
/// \email ernestyalumni@gmail.com
/// \brief Source file for error handling C++ functors to check POSIX Linux
/// system call results.
/// \ref
/// \details
/// \copyright If you find ... |
#include <iostream>
#include <string>
#include "dais_exc.h"
#include "tensor.h"
#include "libbmp.h"
#include "DAISGram.h"
using namespace std;
/* TEMPLATE PER SCORRERE L'ARRAY
for(int i = 0; i<r; i++ ){
for (int j = 0; j<c; j++){
for (int k = 0; k<d; k++){
data[i][j][k];
}
}
} */... |
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:33 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.Enum
#include "System/Enum.hpp"
// Including type: UnityEngine.TextEditor
#includ... |
////////////////////////////////////////////////////////////////////////////////
// Filename: graphicsclass.cpp
////////////////////////////////////////////////////////////////////////////////
#include "graphicsclass.h"
GraphicsClass::GraphicsClass()
{
m_D3D = 0;
m_Camera = 0;
m_TextureShader = 0;
m_Bi... |
/*
* Implementation file for the rigid body class.
*
* Part of the Cyclone physics system.
*
* Copyright (c) Icosagon 2003. All Rights Reserved.
*
* This software is distributed under licence. Use of this software
* implies agreement with all terms and conditions of the accompanying
* software licence.
*/
#i... |
BEGIN_MESSAGE_MAP(CMyView, CFormView)
ON_WM_MOUSEACTIVATE()
ON_COMMAND(ID_EDIT_CUT, &CMyView::OnEditCut)
ON_UPDATE_COMMAND_UI(ID_EDIT_CUT, &CMyView::OnUpdateEditCut)
ON_BN_CLICKED(IDC_MYBUTTON, &CMyView::OnBnClickedMybutton)
ON_WM_CREATE()
END_MESSAGE_MAP() |
//===-- PPCMachObjectWriter.cpp - PPC Mach-O Writer -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// $Id: SL2_SecurityManager.cpp 2179 2013-05-28 22:16:51Z mesnierp $
#include "orbsvcs/Log_Macros.h"
#include "orbsvcs/Log_Macros.h"
#include "orbsvcs/Security/SL2_SecurityManager.h"
#include "tao/ORB_Constants.h"
#include "ace/Functor.h"
#include "tao/Object_KeyC.h"
#include "tao/PortableServer/Root_POA.h"
#include ... |
/**
\author Yucheng Low (ylow), Joseph Gonzalez
Interface for Scope Factories
*/
#ifndef GRAPHLAB_ISCOPE_FACTORY_HPP
#define GRAPHLAB_ISCOPE_FACTORY_HPP
#include <graphlab/scope/iscope.hpp>
#include <graphlab/macros_def.hpp>
namespace graphlab {
template<typename Graph>
class iscope_factory {
public:
... |
/**
* @author Andrew Robert Owens, Philmo Gu
* @date 2019-10-15.
* @details Organization: Biological Modeling and Visualization research group
* University of Calgary, Calgary, AB, Canada
*
* Contact: arowens [at] ucalgary.ca
* @copyright Copyright (c) 2019 ___ALGORITHMIC_BOTANY___. All rights reserved.
*
* @... |
#include <util/types.hxx>
namespace util {
void fillTriggerInfo(TriggerBank& bank, uint8_t const channel,
uint32_t const threshold, bool const rising) {
bank.triggerChannel.raw = 0;
bank.triggerChannel.bits.no = channel;
bank.triggerThreshold = static_cast<uint16_t>(threshold);
bank.triggerInfo.raw = 0;
bank.... |
/* Copyright 2017 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... |
#include <QMap>
#include "transactionrecord.h"
#include "wallet.h"
#include "base58.h"
/* Return positive answer if transaction should be shown in list.
*/
bool TransactionRecord::showTransaction(const CWalletTx &wtx)
{
if (wtx.IsCoinBase())
{
// Don't show generated coin until confirmed by at least... |
/**
* Insertion in heap
*
*/
#include <iostream>
#define MAX 100
using namespace std;
void heapify(int a[], int i, int n)
{
int temp = a[i];
int j = 2 * i + 1;
while (j < n)
{
if (j < n - 1 && a[j] < a[j + 1])
{
j = j + 1;
}
if (temp > a[j])
{
break;
}
i = j;
a[(j - 1) / 2] = a[j];
j = ... |
#include <fstream>
#include <sstream>
#include <gtest/gtest-param-test.h>
#include "thorin/error.h"
#include "thorin/world.h"
#include "thorin/be/ll/ll.h"
#include "thorin/pass/fp/beta_red.h"
#include "thorin/pass/fp/copy_prop.h"
#include "thorin/pass/fp/eta_exp.h"
#include "thorin/pass/fp/eta_red.h"
#include "thori... |
/**
* Copyright 2020 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 applicable law... |
// Copyright (c) 2015-2018 The Gulden developers
// Authored by: Malcolm MacLeod (mmacleod@webmail.co.za)
// Distributed under the GULDEN software license, see the accompanying
// file COPYING
#if defined(HAVE_CONFIG_H)
#include "config/gulden-config.h"
#endif
#include "GuldenGUI.h"
#include "gui.h"
#include "units.h... |
/*
* 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
... |
#pragma once
#include "ChipWaveShared.hpp"
#include "DistrhoUI.hpp"
#include "Image.hpp"
#include <vector>
#include <memory>
class TextEdit;
class ChipWaveUI : public DISTRHO::UI
{
public:
ChipWaveUI();
~ChipWaveUI();
bool onMotion(const MotionEvent &event) override;
void onDisplay() override;
voi... |
////////////////////////////////////////////////////////////////////////////////
/// Reaper
///
/// Copyright (c) 2015-2021 Thibault Schueller
/// This file is distributed under the MIT License
////////////////////////////////////////////////////////////////////////////////
#include "Backend.h"
// TODO use Pimpl to p... |
// Copyright (c) 2014 The Caroline authors. All rights reserved.
// Use of this source file is governed by a MIT license that can be found in the
// LICENSE file.
/// @author Glazachev Vladimir <glazachev.vladimir@gmail.com>
#include "core/mesh.h"
namespace core {
Mesh::Mesh() {
}
void Mesh::AddVertex(const cv::Poi... |
#include "graphnode.h"
const qreal GraphNode::cCircleR = 4.0;
quint32 GraphNode::m_count = 0;
const QPen GraphNode::cPenNormal = QPen(Qt::black);
//const QPen GraphNode::cPenSelected = QPen(QBrush(Qt::black), 2);
const QPen GraphNode::cPenWay = QPen(Qt::black);
const QBrush GraphNode::cBrushNormal = QBrush(Qt::blue);
... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
#include <bits/stdc++.h>
#include <cmath>
using namespace std;
map<int, int> prime_map;
map<int, int> not_prime_map;
void isPrime(const int num) {
// Test if we know this number.
if (num == 1 || prime_map.count(num) > 0) {
cout << "Prime" << '\n';
return;
}
// prime_map contains all ... |
// jhcOcvVSrc.cpp : reads videos using OpenCV infrastructure
//
// Written by Jonathan H. Connell, jconnell@alum.mit.edu
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 2018 IBM Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may no... |
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT A... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... |
// Copyright (c) 2012-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 <util.h>
#include <utiltime.h>
#include <validation.h>
#include <test/test_paycheckcash.h>
#include <checkqueue.h>
... |
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees... |
#include <bits/stdc++.h>
using namespace std;
bool H[400414];
int DP[300313], D[400414][26], n;
int main() {
ios_base::sync_with_stdio(0);cin.tie(0);
string str, s;
for (int cse=1; cin >> str >> n; ++cse) {
int scnt = 0;
memset(D[scnt], 0, 26*sizeof(int));
for (int i=0; i<n; ++i) {... |
#include "uart.h"
#include <void/interrupt.h>
#include <cph/platform/interrupt_tag_define.h>
extern "C" {
#if defined(CPH_HAS_UART0) & defined(CPH_ENABLE_UART0)
VOID_ISR(CPH_INT_USART0_RXC) {
PROVIDE_ENTRY(CPH_INT_USART0_RXC);
cph::Usart0::IntRxHandler();
}
VOID_ISR(CPH_INT_USART0_TXE) {
PROVIDE_ENTRY(CPH_IN... |
#include "locale.hpp"
#include <cstring>
#include <clocale>
#include <algorithm>
#undef min
#undef max
namespace locale {
std::vector<std::pair<std::string_view, std::string_view>> ListLocales() {
std::vector<std::pair<std::string_view, std::string_view>> ret;
ret.reserve(std::size_t(ELocale::MAXLocale));
for ... |
#ifndef MARLIN_CORE_FIBERS_SENTINELBUFFERFIBER_HPP
#define MARLIN_CORE_FIBERS_SENTINELBUFFERFIBER_HPP
#include <marlin/core/Buffer.hpp>
#include <marlin/core/fibers/FiberScaffold.hpp>
namespace marlin {
namespace core {
template<typename ExtFabric>
class SentinelBufferFiber : public FiberScaffold<
SentinelBufferFib... |
// ====================================================================
// This file is part of FlexibleSUSY.
//
// FlexibleSUSY is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the Licens... |
#ifndef WIN32
#include <unistd.h>
#include <cstdlib>
#include <cstring>
#include <netdb.h>
#else
#include <winsock2.h>
#include <ws2tcpip.h>
#include <wspiapi.h>
#endif
#include <iostream>
#include <udt.h>
#include "cc.h"
#include "test_util.h"
using namespace std;
#ifndef WIN32
void* monitor(voi... |
/******************************************************************
*
* mUPnP for C
*
* Copyright (C) Satoshi Konno 2005
* Copyright (C) 2006 Nokia Corporation. All rights reserved.
*
* This is licensed under BSD-style license, see file COPYING.
*
***************************************************************... |
// =================================================================================================
// This file is part of the CLBlast project. The project is licensed under Apache Version 2.0. This
// project loosely follows the Google C++ styleguide and uses a tab-size of two spaces and a max-
// width of 100 char... |
#include <vtkImageData.h>
#include <vtkImplicitDataSet.h>
#include <vtkNew.h>
#include <vtkRTAnalyticSource.h>
#include <vtkSphereSource.h>
int main(int /* argc */, char* /* argv */[])
{
vtkNew<vtkRTAnalyticSource> waveletSource;
waveletSource->Update();
vtkNew<vtkImplicitDataSet> implicitWavelet;
implicitWav... |
// VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
// Copyright (C) 1999-2003 Forgotten
// Copyright (C) 2004 Forgotten and the VBA development team
// 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 F... |
/*
* Copyright (C) 2005-2017 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) 2014-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 "crypto/ripemd160.h"
#include "crypto/sha1.h"
#include "crypto/sha256.h"
#include "crypto/sha512.h"
#include "crypto... |
/* Copyright 2021 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... |
#include "Xiang.h"
Xiang::Xiang(QObject *parent, Player player, int x, int y)
: ChessPiece(parent, player, player == Player::Black ? "象" : "相", x, y,6)
{}
bool Xiang::canMoveTo(const IBoard *board, int x, int y) const
{
if (board->isCrossRiver(_player, y)) {
return false;
}
auto currX = _posit... |
/**
@file
@author Shin'ichiro Nakaoka
*/
#include "MultiAffine3Seq.h"
#include "PlainSeqFormatLoader.h"
#include "ValueTree.h"
#include "YAMLWriter.h"
#include "EigenUtil.h"
#include <boost/format.hpp>
using namespace std;
using namespace cnoid;
MultiAffine3Seq::MultiAffine3Seq()
: MultiAffine3Seq::BaseSe... |
/**
*
* 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 ... |
#include<iostream>
using namespace std;
int main()
{
int range;
int result;
cout<<"Enter a number range to sum: ";
cin>>range;
for ( int z=1;z<=range;z++)
{
result+=z;
}
cout<<"Sum from 1 to "<<z<<" is "<<z;
return 0;
}
|
//
// Copyright 2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#include <gtest/gtest.h>
#include "test_utils/ANGLETest.h"
using namespace angle;
class EGLQueryContextTest : public ANGLETest
{
public:
... |
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 20220523
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the c... |
// Copyright (c) Christopher Di Bella.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
#ifndef CJDB_TEST_FUNCTIONAL_RANGECMP_IS_ASYMMETRIC_HPP
#define CJDB_TEST_FUNCTIONAL_RANGECMP_IS_ASYMMETRIC_HPP
#include "cjdb/concepts/callable/relation.hpp"
#include "cjdb/concepts/comparison/equality_comparable.hpp"... |
/**********************************************************************
Audacity: A Digital Audio Editor
SilentBlockFile.cpp
Joshua Haberman
**********************************************************************/
#include "SilentBlockFile.h"
#include "../FileFormats.h"
SilentBlockFile::SilentBlockFile(sampl... |
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#ifndef ORIGEN_UTILS_INCLUDED
#define ORIGEN_UTILS_INCLUDED
#include "utils/version.hpp"
namespace Origen {
namespace Utils {}
}
#endif
|
#include "SignalDescriptor.hpp"
SignalDescriptor::SignalDescriptor(int row, int col, int radius, double variance, cv::Mat signal, cv::Mat signalPCA) : fRow(row), fCol(col), fRadius(radius), fVariance(variance), fSignal(signal){
}
SignalDescriptor::~SignalDescriptor(){
}
int SignalDescriptor::getRadius(){
retur... |
#include "engine/api/json_factory.hpp"
#include "guidance/turn_instruction.hpp"
#include <boost/test/test_case_template.hpp>
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(json_factory)
BOOST_AUTO_TEST_CASE(instructionTypeToString_test_size)
{
using namespace osrm::engine::api::json::detail;
using... |
// Copyright (c) 2017 Sony 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 required by ... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... |
//===-- AArch64ISelLowering.cpp - AArch64 DAG Lowering Implementation ----===//
//
// 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
//
//===---------------------------... |
#pragma once
#ifdef _WIN32
#include <Windows.h>
#include <Windowsx.h>
#define WIN32_DX11 (true)
#define WIN32_OPENGL (false)
#if WIN32_DX11
#include <d3d11.h>
#include <d3dcompiler.h>
#include <wrl.h>
#pragma comment(lib, "d3d11.lib")
#pragma comment(lib, "D3DCompiler.lib")
#endif
#if WIN32_OPENGL
#include <GL/g... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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.
#if defined(HAVE_CONFIG_H)
#include "config/sagbit-config.h"
#endif
#include "ut... |
// Copyright 2013 The Flutter 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 "impeller/aiks/aiks_playground.h"
#include "impeller/aiks/aiks_context.h"
namespace impeller {
AiksPlayground::AiksPlayground() = default;
Aik... |
// dear imgui, v1.80
// (main code and documentation)
// Help:
// - Read FAQ at http://dearimgui.org/faq
// - Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
// Re... |
#include "../Character.hpp"
void Character::resetCollide() {
objectCollides[0] = 0;
objectCollides[1] = 0;
objectCollides[2] = 0;
objectCollides[3] = 0;
}
|
// Copyright 2019 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/password_manager/core/browser/leak_detection/encryption_utils.h"
#include <climits>
#include <utility>
#include "base/cxx17_backpor... |
// Copyright 2010-2016 RethinkDB, all rights reserved.
#ifndef RDB_PROTOCOL_GEO_INDEXING_HPP_
#define RDB_PROTOCOL_GEO_INDEXING_HPP_
#include <string>
#include <vector>
#include "btree/concurrent_traversal.hpp"
#include "containers/counted.hpp"
#include "rdb_protocol/geo/s2/s2cellid.h"
namespace ql {
class datum_t;
... |
/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lic... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <cstddef>
#include <tuple>
#include "DataStructures/DataBox/Prefixes.hpp" // IWYU pragma: keep
#include "DataStructures/DataVector.hpp"
#include "DataStructures/Tensor/TypeAliases.hpp"
#include "... |
// 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 "chromeos/network/geolocation_handler.h"
#include <stddef.h>
#include <stdint.h>
#include "base/bind.h"
#include "base/logging.h"
#include ... |
//2012/02/11
//231.cpp
//Run time: 0.004
#include <stdio.h>
#include <string.h>
int missile[70000];
int dp[70000];
int top, caseNum, i, j, ans, once;
int max(int a, int b){
return a>b?a:b;
}
void solve(){
memset(dp, 0, sizeof(int)* top +1);
for(ans=i=0; i<top; ++i){
dp[i] = 1;
for(j=0; j... |
#include <autoxtime/ui/EventWidget.h>
// autoxtime
#include <autoxtime/db/EventModel.h>
#include <autoxtime/log/Log.h>
#include <autoxtime/proto/event.pb.h>
#include <autoxtime/ui/EventImportDialog.h>
// Qt
#include <QDateEdit>
#include <QGridLayout>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
AUTO... |
/*************************************************************************/
/* object.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#ifndef GAMEBOY_EMULATOR_SIODATAREGISTER_H
#define GAMEBOY_EMULATOR_SIODATAREGISTER_H
#include <emulator/mmu/MMIORegister.hpp>
namespace nsfgbe {
class SerialLinkManager;
class SIODataRegister : public MMIORegister<MMIOPermissions::READ_WRITE> {
private:
SerialLinkManager &serialLinkManager;
protected:
By... |
#include <cstdio>
#include <algorithm>
#include <vector>
#ifdef _MSC_VER
#include <random>
#else
#include <tr1/random>
#endif
const int NumBuckets = 16;
const int NumValues = 32 * 16;
const int WarpSize = 16;
const int ValsPerSegment = 16;
const bool EmitHTML = true;
std::tr1::mt19937 mt19937;
std::vector<int> key... |
#include "SaveFileFactory.hpp"
#include "Platform.hpp"
#include "Player.hpp"
#include "Button.hpp"
#include "Crate.hpp"
#include "Coin.hpp"
#include "Door.hpp"
SaveFileFactory::SaveFileFactory(std::ifstream& file)
: FileFactory(file)
{}
GameObj* SaveFileFactory::createObj()
{
unsigned char id;
m_file.rea... |
// Copyright (c) 2015-2020 Hartmut Kaiser
// Copyright (c) 2021 Akhil J Nair
//
// SPDX-License-Identifier: BSL-1.0
// 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)
/// \file parallel/container_algorithms/shift... |
/*
* 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 ma... |
#include "Messages.h"
Messages::Messages(const wxString& title)
: wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(210, 110))
{
wxPanel *panel = new wxPanel(this, wxID_ANY);
wxBoxSizer *hbox = new wxBoxSizer(wxHORIZONTAL);
wxGridSizer *gs = new wxGridSizer(2, 2, 2, 2);
wxButton *btn1 = new wx... |
// Copyright (c) 2019 by Robert Bosch GmbH. 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 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/*
==============================================================================
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-User Lic... |
class Solution {
public:
bool XXX(TreeNode* root) {
if(!root) return true;
stack<TreeNode*> left, right;
left.push(root->left);
right.push(root->right);
while(!left.empty() && !right.empty()) {
TreeNode* l = left.top(), * r = right.top();
left.pop(); ... |
/**
* @file
* @ingroup containers
*
* Container which stores and transparently interpolates measurements from
* multiple sensors.
*
* @defgroup containers
* Storage types for data used by other modules.
*/
#ifndef WAVE_CONTAINERS_MEASUREMENT_CONTAINER_HPP
#define WAVE_CONTAINERS_MEASUREMENT_CONTAINER_HPP
nam... |
// Copyright (c) 2016-2018 The Bitcoin Core developers
// Copyright (c) 2018 Matt Corallo
// Unlike the rest of Bitcoin Core, this file is
// distributed under the Affero General Public License (AGPL v3)
#include <blockencodings.h>
#include <consensus/consensus.h>
#include <consensus/validation.h>
#include <chainparam... |
// Copyright (c) 2018 The GAM Authors
int Worker::ProcessLocalRead(WorkRequest* wr) {
epicAssert(wr->addr);
epicAssert(!(wr->flag & ASYNC));
epicAssert(wr->size < MAX_REQUEST_SIZE);
if(!(wr->flag & FENCE)) {
Fence* fence = fences_.at(wr->fd);
fence->lock();
if(unlikely(IsMFenced(fence, wr))) {
... |
# ifndef CPPAD_CORE_ATOMIC_TWO_FOR_SPARSE_JAC_HPP
# define CPPAD_CORE_ATOMIC_TWO_FOR_SPARSE_JAC_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-18 Bradley M. Bell
CppAD is distributed under the terms of the
Eclips... |
/*
* libjingle
* Copyright 2004--2005, Google Inc.
*
* 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 and... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2016 HPCC Systems®.
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... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE-Next
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to ... |
/* <!-- copyright */
/*
* aria2 - The high speed download utility
*
* Copyright (C) 2006 Tatsuhiro Tsujikawa
*
* 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 Lice... |
#include "pch.h"
#include "FileTree.h"
void FileTree::renderAssetsTree(const std::string& path) {
long long id = PyUtils::getInstance()->getMathUtil().attr("md5Hash")(path, "long").cast<long long>();
auto file_name = PyUtils::getInstance()->getOs().attr("path").attr("basename")(path).cast<std::string>();
file_nam... |
// Optimise
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "/home/shahraaz/bin/debug.h"
#else
#define db(...)
#endif
using ll = long long;
#define f first
#define s second
#define pb push_back
#define all(v) v.begin(), v.end()
const int NAX = 2e5 + 5, MOD = 1000000007;
struct Solution
{
Sol... |
/* $Id$
*
* Copyright : (c) 2015 Open Source Solutions Pty Ltd. All Rights Reserved
* Project : report_generator
* File : VisitorText
*
* Author : Denis Dowling
* Created : 8/5/2009
*
* Description : Render a report in Text
*/
#include "VisitorText.h"
#include "Section.h"
#include "Parag... |
#pragma once
#include <Siv3D.hpp>
#include "Constraint.hpp"
namespace s3d::aoba {
enum class LayerDirection { Top, Bottom, CenterY, Height, Left, Right, CenterX, Width };
struct Layer {
private:
Constraint m_top, m_bottom, m_centerY, m_height, m_left, m_right, m_centerX, m_width;
public:
... |
/* Copyright 2013-2019 MultiMC Contributors
*
* 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) 2016, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// ... |
// @brief
// Arduino Thunderbolt GPS types
#include "gpstype.h"
#ifndef NULL
#define NULL (0)
#endif
/***************************
* Fix types *
***************************/
PosFix::PosFix() : type(RPT_NONE) {}
VelFix::VelFix() : type(RPT_NONE) {}
const LLA_Fix<Float32>* PosFix::getLL... |
/* 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... |
/*
* This file is part of the WebKit project.
*
* Copyright (C) 2009 Michelangelo De Simone <micdesim@gmail.com>
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as publ... |
// CSVParser.cpp
#include "CSVParser.hpp"
#include <iostream>
#include <fstream>
#include <unistd.h>
#include <bits/stdc++.h>
#include <sstream>
#include <numeric> // std::accumulate
template struct ColumnData<int_data_type>;
template <typename T>
std::ostream &operator<<(std::ostream &os, const ColumnData<T> &cd) {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.