text stringlengths 7 961k |
|---|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2014 Intel Corporation
*/
/*
* Self-contained version of DPDK's memcpy routines
* Note: this is the AVX2 version
*/
#ifndef _OP_SOCKET_DPDK_MEMCPY_AVX512_HPP_
#define _OP_SOCKET_DPDK_MEMCPY_AVX512_HPP_
#include <stdint.h>
#include <x86intrin.h>
names... |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permiss... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
//*****************************************************************************
// Copyright 2017-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://w... |
#include "RequestEnvironment.h"
namespace RequestEnvironment {
thread_local std::optional<std::string> clientId;
thread_local grpc::ServerContext *serverContext;
const std::string &getClientId() {
if (!clientId.has_value()) {
throw std::runtime_error(
"Client id was not... |
// Copyright (c) 2011-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 "openuridialog.h"
#include "ui_openuridialog.h"
#include "guiutil.h"
#include "walletmodel.h"
#include <QUrl>
Ope... |
#include "unp.h"
int main(int argc, char** argv) {
int sockfd, n;
char recvline[MAXLINE - 1];
struct sockaddr_in servaddr;
if (argc != 2) {
err_quit("usage: a.out <IPaddress>");
}
if (sockfd = socket(AF_INET, SOCK_STREAM, 0); sockfd < 0) {
err_sys("socket error");
}
bzero(&servaddr, sizeof(servaddr));
... |
/* This program is writen by qp09.
* usually just for fun.
* Sun December 25 2016
*/
#include <stdlib.h>
#include "mpi.h"
#include "../../utils/macros.h"
#include "../../utils/TagPool.h"
#include "GDecideNeurons.h"
NEURON_GPU_FUNC_BASIC(Decide)
int allocDecide(void *pCpu, int N)
{
GDecideNeurons *p = (GDecide... |
//============================================================================
//
// This file is part of the Thea toolkit.
//
// This software is distributed under the BSD license, as detailed in the
// accompanying LICENSE.txt file. Portions are derived from other works:
// their respective licenses and copyright inf... |
#include "addresstablemodel.h"
#include "guiutil.h"
#include "walletmodel.h"
#include "wallet.h"
#include "base58.h"
#include <QFont>
#include <QColor>
const QString AddressTableModel::Send = "S";
const QString AddressTableModel::Receive = "R";
struct AddressTableEntry
{
enum Type
{
Sending,
... |
// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <fstream>
#inclu... |
/**
* @author : He Xiaowei (Clouddon@sina.com)
* @date : 2021-06-17
* @description: Simulate Solid Fluid Interaction with fast solver
* reference <Position Based Fluids>
* @version : 1.0
*
* @author : Zhu Fei (feizhu@pku.edu.cn)
* @date : 2021-07-17
* @description: poslish ... |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/*
* Copyright (c) 2016 Andrew Kelley
*
* This file is part of zig, which is MIT licensed.
* See http://opensource.org/licenses/MIT
*/
#include "analyze.hpp"
#include "ast_render.hpp"
#include "os.hpp"
#include <stdio.h>
static const char *bin_op_str(BinOpType bin_op) {
switch (bin_op) {
case BinOpT... |
/****************************************************************************/
/// @file ROFrame.cpp
/// @author Daniel Krajzewicz
/// @author Jakob Erdmann
/// @author Michael Behrisch
/// @date Sept 2002
/// @version $Id$
///
// Sets and checks options for routing
/*******************************************... |
/*==============================================================================
Copyright (c) 2016, 2017, 2018 Matt Calabrese
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)
=======================================... |
// Boost.Geometry
// Copyright (c) 2020, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.
// http://www.boost.org/users/license.html
#ifndef BOOST_GEOMETRY_STRATEGIES_ENVELOPE_SERVICES_HPP
#define BOOST_GEO... |
#ifndef DATE_TIME_TZ_DB_BASE_HPP__
#define DATE_TIME_TZ_DB_BASE_HPP__
/* Copyright (c) 2003-2004 CrystalClear Software, Inc.
* Subject to the Boost Software License, Version 1.0.
* (See accompanying file LICENSE-1.0 or http://www.boost.org/LICENSE-1.0)
* Author: Jeff Garland, Bart Garst
* $Date: 2007/02/12 18:25:... |
/*
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
/*=========================================================================
Program: ParaView
Module: vtkPVStringFormatter.cxx
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WA... |
//
// Copyright (c) 2012 Daniel Lundin
//
#include "medida/stats/ewma.h"
#include <atomic>
#include <cmath>
namespace medida {
namespace stats {
static const int kINTERVAL = 5;
static const double kSECONDS_PER_MINUTE = 60.0;
static const int kONE_MINUTE = 1;
static const int kFIVE_MINUTES = 5;
static const int kFIF... |
/*
* Copyright 1993-2014 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO LICENSEE:
*
* This source code and/or documentation ("Licensed Deliverables") are
* subject to NVIDIA intellectual property rights under U.S. and
* international Copyright laws.
*
* These Licensed Deliverables contained herein is ... |
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002-2011. *
# * (C) Copyright Edward Diener 2011. *
... |
/*
* Copyright 2019-2020 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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/LICENS... |
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsFMODAudioListener.h"
#include "BsFMODAudio.h"
namespace b... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// ===========================================================================
// File: CLASSCOMPAT.CPP
// =========... |
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <boost/test/unit_test.hpp>
#include "ParserFlatbuffersFixture.hpp"
#include "../TfLiteParser.hpp"
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
struct ActivationFixture : ParserFlatbuffersFixture
{
explicit Activation... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
#include "stdio.h"
#include "vector"
#include "unordered_map"
#include "unordered_set"
#include "set"
#include "map"
#include "algorithm"
#include "string"
#include "queue"
#include "stack"
using namespace std;
class Solution
{
public:
inline int bs_none_eq(vector<int> &nums, int target, int start, int end, int n... |
/**************************************************************
*
* 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 y... |
// 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 "components/sync/test/fake_server/fake_server_verifier.h"
#include <map>
#include <memory>
#include <set>
#include <vector>
#include "base/json... |
#include "stdafx.h"
#include "resourcemanager.h"
#include "igame_level.h"
void IGame_Level::LL_CheckTextures()
{
u32 m_base,c_base,m_lmaps,c_lmaps;
Device.Resources->_GetMemoryUsage (m_base,c_base,m_lmaps,c_lmaps);
Msg ("* t-report - base: %d, %d K", c_base, m_base/1024);
Msg ("* t-report - lmap: %d, %d K", c_l... |
#include <Utility/StringUtility.h>
namespace ktt
{
bool StartsWith(const std::string& target, const std::string& prefix)
{
return target.rfind(prefix, 0) == 0;
}
void RemoveTrailingZero(std::string& target)
{
if (target.empty())
{
return;
}
if (target.back() == '\0')
{
target... |
#include "entity_manager.h"
#include "game_engine.h"
#include "location.h"
#include <climits>
#include <fstream>
#include <iostream>
#include "../components/player_component.h"
void EntityManager::initialise(GameEngine* engine) {
m_maxId = 1;
m_engine = engine;
m_player = 0;
}
EntityId EntityManager::cre... |
// Copyright (c) 2015-2017 Vivaldi Technologies AS. All rights reserved
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sync/vivaldi_signin_manager_factory.h"
#include <string>
#include ... |
/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
/**
* @file oglplus/named_string_type.hpp
* @brief NamedString type specifier enumeration
*
* @author Matus Chochlik
*
* Copyright 2010-2014 Matus Chochlik. 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... |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist... |
#include "stdafx_ao.h"
#include "Function.hpp"
#include "BaseBomb.hpp"
#include "ResourceManager.hpp"
#include "stdlib.hpp"
#include "ParticleBurst.hpp"
#include "ScreenShake.hpp"
#include "Midi.hpp"
#include "Events.hpp"
#include "Flash.hpp"
#include "Particle.hpp"
#include "BaseAliveGameObject.hpp"
namespace AO {
A... |
// Copyright (C) 2015-2017 Hartmut Kaiser
//
// 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)
#include <hpx/hpx.hpp>
#if !defined(HPX_HAVE_AWAIT) && !defined(HPX_HAVE_CXX20_CO... |
/**
* pugixml parser - version 1.4
* --------------------------------------------------------
* Copyright (C) 2006-2014, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
* Report bugs and download new versions at http://pugixml.org/
*
* This library is distributed under the MIT License. See notice at the end
*... |
#include "Window.h"
#include <config.h>
#include <widgets.h>
#include <events.h>
#include <lotus/debug.h>
#include <lotus/ecs/EventManager.h>
#include <lotus/Input.h>
#include <imgui/imgui.h>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <string>
#include <stdexcept>
namespace Editor
{
static constex... |
/*
* Copyright (c) 2011-2018, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/*
* Copyright (C) 2010 Igalia S.L.
*
* This file is derived by hand from an automatically generated file.
* Keeping it up-to-date could potentially be done by adding
* a make_names.pl generator, or by writing a separate
* generater which takes JSHTMLElementWrapperFactory.h as input.
*
* Redistribution and use ... |
#include <bits/stdc++.h>
using namespace std;
// Complete the hourglassSum function below.
int hourglassSum(vector<vector<int>> arr) {
int max=INT_MIN;
for( int i=0; i<arr.size()-2; i++ ){
for(int j=0; j<arr.size()-2;j++){
int sum = arr[i][j]+ arr[i][j+1]+arr[i][j+2]+arr[i+1][j+1]+arr[i+2]... |
/**
* \file AzimuthalEquidistant.hpp
* \brief Header for geographic_lib::AzimuthalEquidistant class
*
* Copyright (c) Charles Karney (2009-2016) <charles@karney.com> and licensed
* under the MIT/X11 License. For more information, see
* https://geographiclib.sourceforge.io/
**************************************... |
// Copyright (c) 2014-2017 Andrey Upadyshev <oliora@gmail.com>
//
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "ppconsul/status.h"
#include "s11n_types.h"
namesp... |
#include "stdafx.h"
#include "Spawner.hpp" |
// Copyright 2018 Open Source Robotics Foundation, 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 appli... |
/*
* Copyright 2013 Jeremie Roy. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include "common.h"
#include "bgfx_utils.h"
#include <bgfx.h>
#include <bx/timer.h>
#include <bx/fpumath.h>
#include "font/font_manager.h"
#include "font/text_metrics.h"
#include "font/text_buffer_m... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
#pragma once
#include "core/container/Buffer.hpp"
#include "core/graphics/types.hpp"
#include "core/serialization.hpp"
#include <cstdint>
#include <vector>
namespace core
{
namespace graphics
{
class Image
{
private:
int width_;
int height_;
BitDepth bit_depth_;
ChannelCount channel_count_;
C... |
/*
Galois field arithmetic
Copyright 2018 Ahmet Inan <inan@aicodix.de>
*/
#pragma once
#include <cassert>
namespace CODE {
namespace GF {
template <int M, int POLY, typename TYPE>
struct Index;
template <int M, int POLY, typename TYPE>
struct Value
{
static const int Q = 1 << M, N = Q - 1;
static_assert(M <= 8 ... |
/*
*
* Copyright 2015 gRPC 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 agree... |
/*
* Copyright 2020-2022 Hewlett Packard Enterprise Development LP
* Copyright 2004-2019 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with... |
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "qtipcserver.h"
#include "guiconstants.h"
#include "ui_interface.h"
#include "util.h"
#include <boost/date_time/... |
///*
// * guidriverCEGUI: glue module for the CEGUI GUI backend
// * Copyright (C) 2002 - 2007. Dinand Vanvelzen
// *
// * This library is free software; you can redistribute it and/or
// * modify it under the terms of the GNU Lesser General Public
// * License as published by the Free Software Foundation; either... |
#include "prep.hpp"
namespace smoothxg {
// prep the graph into a given GFA file
// we'll then build the xg index on top of that in low memory
void prep(
const std::string& gfa_in,
const std::string& gfa_out,
const uint64_t& max_node_length,
const float& p_sgd_min_term_updates,
const bool& toposo... |
// 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 "aml-canvas.h"
#include <assert.h>
#include <lib/ddk/debug.h>
#include <lib/ddk/device.h>
#include <lib/ddk/driver.h>
#include <lib/device-protoc... |
// 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 "ui/accelerated_widget_mac/display_link_mac.h"
#include <stdint.h>
#include "base/location.h"
#include "base/logging.h"
#include "base/numerics... |
// Copyright 2015 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/sync_sessions/revisit/offset_tab_matcher.h"
#include <string>
#include "base/memory/scoped_ptr.h"
#include "base/test/histogram_tes... |
#include <jni.h>
#include "RtmpPush.h"
CallJava *callJava = NULL;
JavaVM *jvm = NULL;
RtmpPush *rtmpPush;
bool isExit = true;
extern "C"
JNIEXPORT void JNICALL Java_com_lqr_librtmp_RtmpHelper_n_1init
(JNIEnv *env, jobject instance, jstring url_){
const char *url = env->GetStringUTFChars(url_,0);
if(!callJa... |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Common.hpp>
SIV3D_DISABLE_MS... |
// Copyright (C) 2018 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <cstdio>
#include <string>
#include <utility>
#include <map>
#include <vector>
#include <inference_engine.hpp>
#include <utils/ocv_common.hpp>
#include <utils/slog.hpp>
namespace gaze_estimation {
void initiali... |
/**
* @author <a href="mailto:michele.lora@univr.it">Michele Lora</a>
* @date 10/29/2019
* This project is released under the 3-Clause BSD License.
*
*/
#pragma once
#include "Chase.hh"
namespace chase {
/// @brief The class represent all the Boolean unary operations.
class Unar... |
/****************************************************************************
**
** 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... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "db.h"
#include "init.h"
#include "bitcoinrpc.h"
using name... |
/*=========================================================================
Program: Visualization Toolkit
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 is distributed WITHOUT ANY WARRAN... |
/*
* Copyright 2019 SciComp, 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 t... |
#include <iostream>
#include <malloc.h>
#include <conio.h>
using namespace std;
struct phanso
{
int ts, ms;
};
typedef phanso PHANSO;
ostream &operator<<(ostream &outDev, const PHANSO &ps)
{
if ((ps.ms == 1) || (ps.ts == 0)) outDev << ps.ts;
else outDev << ps.ts << "/" << ps.ms;
return outDev;
}
istream &operato... |
/*
* The MIT License
*
* Copyright (c) 1997-2019 The University of Utah
*
* 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
* right... |
// Copyright Oliver Kowalke 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_FIBERS_TIMED_MUTEX_H
#define BOOST_FIBERS_TIMED_MUTEX_H
#include <chrono>
#include <boost/as... |
#include "stdafx.h"
#include "audioheader.h"
#include "mergeaudio.h"
#include <io.h>
//--------------------------------------------------------------------------------------------------------------
static unsigned long _ComputeMask(AudioHeader *pHdr)
{
unsigned char *p = (unsigned char *)pHdr;
unsigned long mask=0;... |
#include "shared.h"
using namespace render::low_level;
using namespace render::low_level::dx11;
/*
Описание реализации менеджера шейдеров
*/
struct ShaderManager::Impl: public DeviceObject
{
ShaderLibraryPtr shader_library; //библиотека шейдеров
/// Конструктор
Impl (const DeviceManager& device_manager)
... |
/*******************************************************************************
* Copyright 2017-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... |
/**
* Checker to compare output and answer in the form:
*
* Case 1: <token> <token> ... <token>
* Case 2: <token> <token> ... <token>
* ...
* Case n: <token> <token> ... <token>
*
*/
#include "testlib.h"
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <string>
#include <c... |
#define GL_SILENCE_DEPRECATION
#define STB_IMAGE_IMPLEMENTATION
#ifdef __APPLE__
#include <glut/glut.h>
#elif WIN32
#include <GL/glew.h>
#include <GL/freeglut.h>
#endif
#include <cstdio>
#include <cstdlib>
#include "stb_image.h"
int SCR_WIDTH = 800;
int SCR_HEIGHT = 600;
int lastMouseX, lastMouseY;
int localTim... |
/**
* @file quests.cpp
*
* Implementation of functionality for handling quests.
*/
#include "quests.h"
#include <fmt/format.h>
#include "control.h"
#include "cursor.h"
#include "engine/load_file.hpp"
#include "engine/random.hpp"
#include "engine/render/cel_render.hpp"
#include "engine/render/text_render.hpp"
#inc... |
#ifndef OSMIUM_IO_OPL_INPUT_HPP
#define OSMIUM_IO_OPL_INPUT_HPP
/*
This file is part of Osmium (https://osmcode.org/libosmium).
Copyright 2013-2022 Jochen Topf <jochen@topf.org> and others (see README).
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any pe... |
// Copyright 2014 the V8 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 "src/ic/ic-compiler.h"
#include "src/ic/handler-compiler.h"
#include "src/ic/ic-inl.h"
#include "src/profiler/cpu-profiler.h"
namespace v8 {... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "db.h"
#include "init.h"
#include "bitcoinrpc.h"
using name... |
#include "imagewidget.h"
#include <QDebug>
#include <QCursor>
#include <QPainter>
#include <QColor>
#include <QImage>
template <typename T>
T clamp(T minVal, T maxVal, T val)
{
return std::min(maxVal, std::max(minVal, val));
}
template <typename T>
bool isInRange(T minVal, T maxVal, T val)
{
return minVal <= ... |
// Copyright David Abrahams 2002.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef DEF_DWA200292_HPP
# define DEF_DWA200292_HPP
# include <boost/python/detail/prefix.hpp>
# include <boost/python/object_f... |
/*
* normalize.cc
*
* Created on: Jun 21, 2021
* Author: amyznikov
*/
#include "normalize.h"
#include <tbb/tbb.h>
#include <core/debug.h>
// BORDER_CONSTANT - fill with unmaskedPixelsValue
// BORDER_TRANSPARENT - scale as regular unmasked pixels
// BORDER_ISOLATED - do not touch
template<class T, int cn... |
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt... |
#include "Acceleration_Stream_Viewer_Widget.h"
#include "Comms.h"
#include <QtCharts/QChartView>
#include <QtCharts/QLineSeries>
#include "Numeric_Viewer_Widget.h"
using namespace QtCharts;
Acceleration_Stream_Viewer_Widget::Acceleration_Stream_Viewer_Widget(QWidget* parent)
{
setParent(parent);
}
Acceleration_... |
#pragma once
#include <stdexcept>
#include <vector>
#include <string>
namespace large_math{
class infinity_t {
public:
std::vector<uint64_t> integers;
uint64_t bits() const {
uint64_t out = 0;
int64_t max_elem = integers.size() - 1;
for (int64_t i = max_elem;... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* testsBureaucrat.cpp :+: :+: :+: ... |
#include "platform\gameInterface.h"
#include "ThreadedDownloading.h"
#include "gui/core/guiControl.h"
#include "core/fileStream.h"
#include "core/resManager.h"
#include "console/String.h"
#include "math/mMath.h"
#include "dgl/dgl.h"
#include <Windows.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <stdarg... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
// --------------------------------------------------------------------
/*
postgre_read.cpp
May/22/2012
*/
// --------------------------------------------------------------------
#include <iostream>
using namespace std;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "p... |
#pragma execution_character_set("utf-8")
#include "gifwidget.h"
#include "qmutex.h"
#include "qlabel.h"
#include "qlineedit.h"
#include "qpushbutton.h"
#include "qlayout.h"
#include "qpainter.h"
#include "qevent.h"
#include "qstyle.h"
#include "qpixmap.h"
#include "qtimer.h"
#include "qdatetime.h"
#include "qapplicat... |
#include "simdjson/portability.h"
#include <cstdint>
#ifndef __AVX2__
namespace simdjson {
static uint8_t jump_table[256 * 3] = {
0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0,
1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1,
1, 0, 1, 1, 0, 1, 1, 0, 1,... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Entity that propagates general data needed by clients for every player.
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "c_playerresource.h"
#inc... |
// Copyright (c) 2014-2018 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_JSON_PEGTL_INTERNAL_ISTRING_HPP
#define TAO_JSON_PEGTL_INTERNAL_ISTRING_HPP
#include <type_traits>
#include "../config.hpp"
#include "bump_help.hpp"
#include "result_on... |
#include <tester-base.hpp>
#define CATCH_CONFIG_RUNNER
bool write_expected = false;
int main(int argc, char* argv[])
{
Catch::Session session;
auto cli = session.cli() | Catch::clara::Opt(write_expected)["--write"]("Write .expected files");
session.cli(cli);
auto ret = session.applyCommandLine(argc, argv... |
#include <Storages/MergeTree/MergeTreeReaderWide.h>
#include <Columns/ColumnArray.h>
#include <DataTypes/DataTypeArray.h>
#include <DataTypes/NestedUtils.h>
#include <Interpreters/inplaceBlockConversions.h>
#include <Storages/MergeTree/IMergeTreeReader.h>
#include <Storages/MergeTree/MergeTreeDataPartWide.h>
#include ... |
#include <DataStreams/AddingConstColumnBlockInputStream.h>
#include <DataStreams/narrowBlockInputStreams.h>
#include <DataStreams/LazyBlockInputStream.h>
#include <DataStreams/NullBlockInputStream.h>
#include <DataStreams/ConvertingBlockInputStream.h>
#include <DataStreams/OneBlockInputStream.h>
#include <DataStreams/C... |
// Copyright 2019 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.