text stringlengths 5 1.04M |
|---|
//----------------------------------------------------------------------------//
/*
* Copyright (c) 2009 Sony Pictures Imageworks 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:
*... |
#pragma once
#include "ResourcePath.hpp"
namespace Engine
{
// TODO: Move to RED4ext.SDK
struct ResourceAsyncReference
{
explicit ResourceAsyncReference(ResourcePath aPath = "")
: path(aPath) {}
ResourcePath path;
};
static_assert(sizeof(ResourceAsyncReference) == 0x8);
}
|
// Copyright (c) 2014-2019, 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 o... |
#include "Jankpch.h"
#include "LayerStack.h"
namespace Jank
{
LayerStack::LayerStack()
{
}
LayerStack::~LayerStack()
{
for (Layer* layer : m_Layers)
{
delete layer;
}
}
void LayerStack::PushLayer(Layer* layer)
{
m_Layers.emplace(m_Layers.begin() + m_LayerInsertIndex, layer);
m_LayerInsertIn... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PrimalItemStructure_Flag_Manticore_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//-----------------------------------... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtXmlPatterns module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(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 any p... |
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
// reserved. See files LICENSE and NOTICE for details.
//
// This file is part of CEED, a collection of benchmarks, miniapps, software
// libraries and APIs for effic... |
#include "cl_util.h"
#include "MessageHandler.h"
namespace msghandler
{
namespace
{
//Enables more precise debugging than the engine's debug code since we've got our own handlers in addition to the engine hooks.
static cvar_t* msghandler_debug = nullptr;
}
void Initialize()
{
//Wipe any previously registered handle... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 Metrological
*
* 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 ... |
/* -*- mode: c++; c-basic-indent: 4; indent-tabs-mode: nil -*-
this file is part of rcssserver3D
Fri May 9 2003
Copyright (C) 2002,2003 Koblenz University
Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group
$Id$
This program is free software; you can redistribute it and/or modify
it und... |
/*****************************
Copyright 2011 Rafael Muñoz Salinas. 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, thi... |
// Copyright (c) 2018 Kosi Nwabueze
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
namespace wd
{
/**
* @brief Represent an event that can circulate in an event loop and can be polled for.
*
*/
struct Event
{ /**
* @brief The type of ev... |
/******************************************************************************
*
* Copyright (C) 2003-2014 Broadcom 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:
*
... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <builders/ie_const_layer.hpp>
#include <builders/ie_input_layer.hpp>
#include <builders/ie_network_builder.hpp>
#include <details/caseless.hpp>
#include <limits>
#include <map>
#include <memory>
#include <shape_infer/ie_res... |
//
// Created by sebas on 7/10/19.
//
#include "GameLoop.h"
#include "../servicios/Locator.h"
#include "../eventos/ActualizarYSerializarMapa.h"
#include <unistd.h>
void GameLoop::loop() {
const size_t MS_PER_FRAME = 1.0 / Locator::configuracion()->getIntValue("/fps") * 1000 * 1000; // Microsegundos.
while (L... |
#include <bits/stdc++.h>
const int DIV = 1000000007;
using namespace std;
using ll = long long;
using ar = array<array<ll, 8>, 8>;
void mult (ar &l, ar &m, ar &n) {
for (int i = 0; i < 8; ++i) {
for (int j = 0; j < 8; ++j) {
for (int k = 0; k < 8; ++k) {
l[i][j] += m[i][k] * n[k]... |
#include "IOSGLContext.h"
std::unique_ptr<GLContext> GLContext::_glcontext = nullptr;
void GLContext::initGLContext() {
if (_glcontext == nullptr) {
_glcontext.reset(new IOSGLContext());
}
}
GLContext* GLContext::getGLContext() {
if (_glcontext == nullptr) {
initGLContext();
}
return _glcontext.ge... |
// Copyright (c) 2018 Microsoft Corporation
// Licensed under the MIT license.
// Author: Paul Koch <code@koch.ninja>
#include "precompiled_header_cpp.hpp"
#include <cmath>
#include <immintrin.h> // SIMD. Do not include in precompiled_header_cpp.hpp!
#include "ebm_native.h"
#include "logging.h"
#include "common_c.h... |
// Mark Stankus 1999 (c)
// Lean.hpp
#ifndef INCLUDED_LEAN_H
#define INCLUDED_LEAN_H
#include "AttainableMap.hpp"
#include "AlwaysTrue.hpp"
void Lean(AttainableMap<AlwaysTrue> &);
#endif
|
/*++
Copyright (c) 2015 Microsoft Corporation
--*/
#include "qe/qe_cmd.h"
#include "qe/qe.h"
#include "cmd_context/cmd_context.h"
#include "cmd_context/parametric_cmd.h"
class qe_cmd : public parametric_cmd {
expr * m_target;
public:
qe_cmd(char const* name = "elim-quantifiers"):parametric... |
#include <btcb/lib/utility.hpp>
#include <pthread.h>
void btcb::thread_role::set_name (std::string thread_name)
{
pthread_setname_np (pthread_self (), thread_name.c_str ());
}
|
/*
Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
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
... |
/* Sirikata Network Utilities
* StreamListener.hpp
*
* Copyright (c) 2009, Daniel Reiter Horn
* 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 ... |
//===- ICF.cpp ------------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... |
/*
==============================================================================
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... |
// 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 "sky/scheduler/timer.h"
#include <cstdlib>
#include "base/bind.h"
#include "base/tracked_objects.h"
namespace sky {
// We're willing to slop ... |
// List.cpp - Implementation of List ADT using Array
#include "List.h" // header file
// constructor
List::List() { size = 0; }
// add an item to the back of the list (append)
bool List::add(ItemType item)
{
bool success = size < MAX_SIZE;
if (success)
{
items[size] = item; // add to the end of the list
si... |
#include<iostream>
#include<vector>
#include<fstream>
#include<algorithm>
#include<cstdlib>
using namespace std;
#define ll long long
int main() {
// freopen("out.txt","w", stdout);
vector<ll> v;
ll t, p, l, k = 0;
cin >> t;
while (t--) {
cin >> p >> l;
ll b;
b = p - l;
... |
// Copyright (c) 2019, 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 required ... |
#include <bits/stdc++.h>
using namespace std;
#define f(i, a, b) for (int i=a; i<b; i++)
#define fp(i, a, b) for (long long int i=a; i>=b; i--)
#define input(arr1,n1) f(i,0,n1) {cin>>arr1[i];}
#define TC(t) while (t--)
#define FASTIO ios_base::sync_wi... |
/*
* 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... |
// MineView.Draw.cpp: Mine rendering
//
#include "stdafx.h"
#include "winuser.h"
#include "dle-xp.h"
#include "dlcDoc.h"
#include "mineview.h"
#include "PaletteManager.h"
#include "TextureManager.h"
#include "global.h"
#include "FileManager.h"
#include "ModelManager.h"
#include <math.h>
#include <time.h>
extern sh... |
#ifndef RBX_BUILTIN_IO_HPP
#define RBX_BUILTIN_IO_HPP
#include "builtin/object.hpp"
#include "type_info.hpp"
namespace rubinius {
class ByteArray;
class Channel;
class String;
class ByteArray;
class IO : public Object {
public:
const static object_type type = IOType;
private:
Fixnum* descripto... |
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction, including without limita... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
// 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 <unistd.h>
#include <limits>
#include <soc/as370/audio-dsp.h>
// Cascaded integrator–comb filter.
// TODO(andresoportus) generalize and place i... |
#include <gameplay/GameplayModule.hpp>
#include <poll.h>
#include <QMutexLocker>
#include <protobuf/RadioRx.pb.h>
#include <protobuf/RadioTx.pb.h>
#include <protobuf/messages_robocup_ssl_detection.pb.h>
#include <protobuf/messages_robocup_ssl_geometry.pb.h>
#include <protobuf/messages_robocup_ssl_wrapper.pb.h>
#inclu... |
#include "polindrom.h"
#include <iostream>
#include <string>
#include <map>
Polindrom::Polindrom(/* args */)
{
}
Polindrom::~Polindrom()
{
}
void Polindrom::testShow(char message[])
{
std::cout << message << std::endl;
}
void Polindrom::SetInput(std::string input)
{
mInput = input;
}
void Polindrom::InputL... |
#include "stdafx.h"
#include "HumanCharacterController.h"
#include "Pedestrian.h"
#include "PhysicsManager.h"
#include "PhysicsComponents.h"
#include "PhysicsDefs.h"
#include "Vehicle.h"
//////////////////////////////////////////////////////////////////////////
struct DefaultActionMapping
{
public:
D... |
#include "audio_encoder_adapter.h"
#define LOG_TAG "AudioEncoderAdapter"
AudioEncoderAdapter::AudioEncoderAdapter() {
audioCodecName = NULL;
audioEncoder = NULL;
isEncoding = false;
}
AudioEncoderAdapter::~AudioEncoderAdapter() {
}
static int fill_pcm_frame_callback(int16_t *samples, int frame_size, int nb_chann... |
//
// debug.hpp
//
// Created by OTAKE Takayoshi on 2017/08/19.
// Copyright © 2017 OTAKE Takayoshi. All rights reserved.
//
#pragma once
// [C++14]
#include <chrono>
#include <cstdio>
#include <cstdarg>
#include <string>
#include <iomanip>
namespace bb {
inline std::string make_log_message(char const* forma... |
#include <cl_banque_spectres.h>
#include <vector>
#include <utility>
#include <iostream>
#include <fstream>
bool salib::banque_spectres::sauvegarder_collection_spectres(
const std::string &url_collection)
{
std::ofstream ecriture_fichier;
ecriture_fichier.open(url_collection, std::ios::out);
if (!ecriture_fic... |
// Copyright (c) 2011-2017 The Cryptonote developers
// Copyright (c) 2018 The Circle Foundation
// Copyright (c) 2019 Aluisyo
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "CommandLine.h"
namespace command_line
... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/rds/model/UpgradeTarget.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility... |
/* TextureAtlas.mm
* WhirlyGlobeLib
*
* Created by Steve Gifford on 3/28/11.
* Copyright 2011-2021 mousebird consulting
*
* 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... |
#include "EvHideShowSideBarWidget.h"
#include "EvButton.h"
#include "EvAppSettings.h"
#include <QHBoxLayout>
#include <QResizeEvent>
EvHideShowSideBarWidget::EvHideShowSideBarWidget(QWidget *parent) :
QWidget(parent)
{
m_minimizeButton = new EvButton(this);
m_minimizeButton->setIcon(evIconsFactory->applic... |
#ifndef TERMOX_TERMINAL_DETAIL_SCREEN_BUFFERS_HPP
#define TERMOX_TERMINAL_DETAIL_SCREEN_BUFFERS_HPP
#include <termox/terminal/detail/canvas.hpp>
#include <termox/widget/area.hpp>
namespace ox::detail {
/// Holds the current and next screen buffers as Canvas objects.
/** Provides merge and diff capabilities for the tw... |
// no-networkit-format
/*
* KPathCentrality.h
*
* Created on: 05.10.2014
* Author: nemes
*/
#ifndef NETWORKIT_CENTRALITY_K_PATH_CENTRALITY_HPP_
#define NETWORKIT_CENTRALITY_K_PATH_CENTRALITY_HPP_
#include <networkit/centrality/Centrality.hpp>
namespace NetworKit {
/**
* @ingroup centrality
*/
class KPa... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/secretsmanager/model/DescribeSecretResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include... |
#pragma once
enum class PropertyUnit {
CELSIUS, FAHRENHEIT, DEGREE, LITER, GALON, VOLTS, WATT, AMPERE, PERCENT, METER, FEET, PASCAL, PSI, COUNT, NONE
};
enum class PropertyDataType {
INTEGER, FLOAT, BOOLEAN, STRING, ENUM, COLOR
};
class HomieNodeProperty {
public:
HomieNodeProperty(const char* name, con... |
// Copyright (c) 2009-2014 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 "uritests.h"
#include "guiutil.h"
#include "walletmodel.h"
#include <QUrl>
void URITests::uriTests()
{
SendCo... |
/*******************************************************************************
* Copyright 2019-2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... |
#include "interface.h"
#include "uart.h"
#include "config.h"
using openxc::config::getConfiguration;
static const char interfaceNames[][5] = {
"USB",
"UART",
"NET",
};
const char* openxc::interface::descriptorToString(InterfaceDescriptor* descriptor) {
if(descriptor->type < sizeof(interfaceNames) / ... |
#include "stone/Driver/Job.h"
using namespace stone;
using namespace stone::driver;
Job::~Job() {}
void Job::Print(llvm::raw_ostream &os, const char *terminator, bool quote,
CrashCondition *crash) const {}
int Job::AsyncExecute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>> redirects,
... |
#include <iostream>
using namespace std;
class your;
class My
{
private:
int a;
protected:
int b;
public:
int c;
friend your;
};
class your
{
public:
My m;
void fun()
{
m.a = 15;
m.b = 20;
m.c = 13;
}
};
int main()
{
return 0;
}
|
/*
Copyright (c) 2007-2009 The Regents of the University of California.
All rights reserved.
Permission is hereby granted, without written agreement and without
license or royalty fees, to use, copy, modify, and distribute this
software and its documentation for any purpose, provided that the
above copyrig... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Timer.h"
#include "PictureBenchmark.h"
#include "SkCanvas.h"
#include "SkPicture.h"
#include "SkString.h"
#include "picture_utils.h"
namespace sk_tools {
PictureBe... |
#pragma once
#include <fmt/chrono.h>
#include <fmt/color.h>
#include <fmt/core.h>
#include <fmt/ranges.h>
#include <string>
#include <string_view>
namespace journal {
namespace v3 {
template <typename... Args> inline auto critical( const std::string_view tag, Args&&... args ) -> void {
const auto str = ... |
/*++
Copyright (C) 1996-1999 Microsoft Corporation
Module Name:
_LOCSTR.INL
History:
--*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Swaps two elements of the translation array.
//
//-------------------------------------------------------------... |
/**
BSD-3-Clause
Copyright 2019 Alliance for Sustainable Energy, LLC
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 the... |
// Copyright (c) 2011-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
/**
* See https://www.boost.org/doc/libs/1_71_0/libs/test/doc/html/boost_test/utf_reference/link_references/link_boost_test_... |
#include "common.hpp"
#include "io/bulkio.hpp"
#include "module.hpp"
#include <unordered_map>
TEST(Module, open) {
Module m(io::read_all(DATADIR "/mod_files/test0.mod"), "test0.mod");
if (!m.buffer().size()) {
std::cout << "skipping Module.open test because unable to open input file" << std::endl;
... |
#include <stdio.h>
#include <unistd.h>
#include <termios.h>
#include <iostream>
#include <fstream>
#include <sys/select.h>
#include <openservo.h>
#include <vector>
#include <algorithm>
#include <yaml-cpp/yaml.h>
using namespace std;
using namespace openservo;
float hardcoded_factors[] = {0.0009380807, 0.0009349769, ... |
/// https://github.com/Rominitch/MouCaLab
/// \author Rominitch
/// \license No license
#include "Dependencies.h"
#include "LibVulkan/include/VKCommand.h"
#include "LibVulkan/include/VKCommandBuffer.h"
#include "LibVulkan/include/VKCommandPool.h"
#include "LibVulkan/include/VKDescriptorSet.h"
#include "LibVulkan/incl... |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
//===--- DeclOpenMP.cpp - Declaration OpenMP AST Node 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
//
//===---------------------------... |
/*
* File: CAMS.hpp
* Author: Koncord <koncord at rwa.su>
*
* Created on 10 Апрель 2015 г., 19:08
*/
#ifndef CAMS_HPP
#define CAMS_HPP
#include "../Record.hpp"
class RecordCAMS: public Record
{
public:
struct DATA
{
std::string edid;
formid imageSpaceModifier; // FormID of an IMAD re... |
// Copyright (c) 2018-2021 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAO_JSON_UTF8_HPP
#define TAO_JSON_UTF8_HPP
#include <tao/pegtl/memory_input.hpp>
#include <tao/pegtl/parse_error.hpp>
#include <tao/pegtl/utf8.hpp>
namespace tao::json
{
... |
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "base58.h"
#include "clientversion.h"
#include... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 Aquila Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licens... |
#include "ConsoleLog/ConsoleLines.h"
#include "SteamID.h"
#include "WorldState.h"
#include <catch2/catch.hpp>
#include <mh/error/not_implemented_error.hpp>
using namespace std::chrono_literals;
using namespace tf2_bot_detector;
namespace
{
class DummyWorldState : public IWorldState
{
// Inherited via IWorldState... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2018 Klaus Spanderen
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and... |
// Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium Authors
//
// 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 righ... |
#include "global.h"
#include "GameConstantsAndTypes.h"
#include "MusicWheel.h"
#include "RageTimer.h"
#include "RageUtil.h"
#include "ThemeManager.h"
#include "WheelNotifyIcon.h"
#include "WheelNotifyIcon.h"
/* todo: replace this entire thing with a set of AutoActors and a Scroller.
* In reality, everything except th... |
//
// Input.cpp
// EnginePrototype
//
// Created by Samir Sinha on 1/15/16.
//
//
#include "Input.hpp"
#include <SDL2/SDL_events.h>
#include <SDL2/SDL_keyboard.h>
#include <SDL2/SDL_mouse.h>
#include <cinek/debug.h>
namespace cinek {
namespace input {
bool InputState::testKey(uint8_t key) const
{
CK_ASS... |
/*
* Copyright 2021 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 agreed... |
// pbrt is Copyright(c) 1998-2020 Matt Pharr, Wenzel Jakob, and Greg Humphreys.
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0
#include <pbrt/util/lowdiscrepancy.h>
#include <pbrt/util/bits.h>
#include <pbrt/util/parallel.h>
#include <pbrt/util/primes.h>
#include <pbrt/... |
#pragma once
#include <limits>
#include <seqan3/alignment/matrix/alignment_score_matrix.hpp>
#include <seqan3/alignment/matrix/alignment_trace_matrix.hpp>
namespace seqan3::literal
{}
namespace seqan3::fixture
{
using namespace seqan3::literal;
using detail::alignment_coordinate;
static constexpr auto INF = std::... |
#pragma comment(linker, "/stack:640000000")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <list>
#include <map... |
#include "Halide.h"
#include "benchmark.h"
#include <cstdio>
#include <chrono>
using namespace Halide;
int main(int argc, char **argv) {
ImageParam src(UInt(8), 1);
Func dst;
Var x;
dst(x) = src(x);
dst.vectorize(x, 32, TailStrategy::GuardWithIf);
dst.compile_to_assembly("halide_memcpy.s", ... |
// ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.9
// ----------------------------------------------------------------------------
// Standard TIFF File Format Module Version 1.0.8
// ---------------------------... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkCurveRepresentation.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This so... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2008 - 2010 Greenplum, Inc.
//
// @filename:
// CErrorContext.cpp
//
// @doc:
// Implements context container for error handling
//----------------------------------------------------------------------... |
/*
* to_ewald_sphere_helpers.cc
*
* Copyright (C) 2013 Diamond Light Source
*
* Author: James Parkhurst
*
* This code is distributed under the BSD license, a copy of which is
* included in the root directory of this package.
*/
#include <boost/python.hpp>
#include <boost/python/def.hpp>
#include <scitbx/ve... |
#include<cstdio>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<map>
#include<set>
#include<vector>
#include<utility>
#include<queue>
#include<stack>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2019 The Innova Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coincontroldialog.h"
#include "ui_coincontroldialog.h"
#incl... |
/*
* This file is part of liblcf. Copyright (c) 2021 liblcf authors.
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
*
* liblcf is Free/Libre Open Source Software, released under the MIT License.
* For the full copyright and license information, please view the COPYING
* file that was distributed with t... |
//---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of th... |
//
// Created by Hamza El-Kebir on 12/5/21.
//
#include "Player.hpp"
|
/*=========================================================================
Program: Visualization Toolkit
Module: vtkSortDataArray.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software... |
#include "pch.h"
#include <dplyr/main.h>
#include <dplyr/visitor_set/VisitorSetIndexSet.h>
#include <dplyr/visitors/vector/MultipleVectorVisitors.h>
#include <dplyr/hybrid/scalar_result/n_distinct.h>
#include <dplyr/visitors/subset/DataFrameSelect.h>
#include <dplyr/visitors/subset/DataFrameSubsetVisitors.h>
using ... |
#ifndef MINIMIZATION_HELPER_HPP
#define MINIMIZATION_HELPER_HPP
#include "bucket_minimization.hpp"
#include <string>
#include <vector>
namespace abo::minimization {
enum class OperatorConstructionMode
{
//! the operator is applied to a single BDD at a time
SINGLE_BDD,
//! the operator is applied to the ... |
#include "/home/epasholl/opencv/opencv-master/modules/imgproc/src/precomp.hpp"
#include "/home/epasholl/opencv/opencv-master/modules/imgproc/src/morph.simd.hpp"
|
#include <iostream>
#include "assignment/code.hpp"
using namespace std;
using namespace assignment;
int squared_diff(int left, int right) {
int total;
total = left - right;
total = total * total;
return total;
}
int main() {
cout << "Write your code here...\n";
return 0;
}
|
////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
//
// http://www.apac... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* 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... |
#include "ParquetBlockOutputFormat.h"
#if USE_PARQUET
// TODO: clean includes
#include <Columns/ColumnDecimal.h>
#include <Columns/ColumnFixedString.h>
#include <Columns/ColumnNullable.h>
#include <Columns/ColumnString.h>
#include <Columns/ColumnVector.h>
#include <Columns/ColumnsNumber.h>
#include <Common/assert_cas... |
/*
* =====================================================================================
*
* Filename: xBasisTests.cpp
*
* Description:
*
* Version: 1.0
* Created: 04/30/2015 09:47:07
* Revision: none
* Compiler: gcc
*
* Author: Pablo Colapinto (), gmail-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.