text stringlengths 7 961k |
|---|
/**
* 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 "BasicWoiceListModel.h"
#include <QTextCodec>
static QTextCodec *codec = QTextCodec::codecForName("Shift-JIS");
BasicWoiceListModel::BasicWoiceListModel(PxtoneClient *client, QObject *parent)
: QAbstractListModel(parent), m_client(client) {
const PxtoneController *controller = m_client->controller();
... |
/*
** Copyright 2011-2013,2017 Centreon
**
** 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 agr... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2018 The Gdc developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcclient.h"
#include "rpcprotocol... |
#include "h5cgnsifaceflowsolution.h"
#include "h5cgnszone.h"
using namespace iRICLib;
H5CgnsIFaceFlowSolution::H5CgnsIFaceFlowSolution(const std::string& name, hid_t groupId, H5CgnsZone* zone) :
H5CgnsFlowSolution(name, groupId, zone)
{}
int H5CgnsIFaceFlowSolution::dataDims(std::vector<hsize_t>* dims) const
{
ret... |
// Copyright (c) the JPEG XL 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 "jxl/decode.h"
#include <stdint.h>
#include <stdlib.h>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#inc... |
/****************************************************************************
**
** Metadata for USMCVB_COM generated by dumpcpp from type library
** USMCVB_COM.tlb
**
****************************************************************************/
#define QAX_DUMPCPP_USMCVB_COM_NOINLINES
#include "usmcvb_com.h"
using n... |
#include "PCH.hpp"
#include "MainWindow.hpp"
#include "Resource.h"
int APIENTRY wWinMain(
_In_ HINSTANCE instance,
_In_opt_ HINSTANCE previousInstance,
_In_ LPWSTR commandLine,
_In_ int showCommand)
{
UNREFERENCED_PARAMETER(previousInstance);
UNREFERENCED_PARAMETER(commandLine);
Example::MainWindow mainWindow;... |
// Copyright 2006-2015 Tobias Sargeant (tobias.sargeant@gmail.com).
//
// This file is part of the Carve CSG Library (http://carve-csg.com/)
//
// 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 Softw... |
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
#include <stan/math/fwd/scal.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/fwd/scal/fun/nan_util.hpp>
#include <limits>
TEST(AgradFwdFmin, Fvar) {
using stan::math::fmin;
using stan::math::fvar;
using std::isnan;
fvar<double> x(2.0, 1.0);
fvar<double> y(-3.0, 2.0);
fvar<double> a = fmin(x, y);
... |
/*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2014 Parijat Mazumdar
* 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... |
/*
Itay Marom
Hanoch Haim
Cisco Systems, Inc.
*/
/*
Copyright (c) 2015-2016 Cisco Systems, 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
U... |
// Copyright (C) 2020-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include <gtest/gtest.h>
#include <vector>
#include "eltwise/eltwise-add-mod-internal.hpp"
#include "hexl/eltwise/eltwise-add-mod.hpp"
#include "hexl/logging/logging.hpp"
#include "hexl/number-theory/number-theory.hpp"
#include "test... |
// stdafx.cpp : source file that includes just the standard includes
// test_harness_mutex.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file |
#include "MaxPooling.h"
#include <ATen/ATen.h>
#include <ATen/NamedTensorUtils.h>
#include <ATen/Parallel.h>
#include <ATen/core/grad_mode.h>
#include <ATen/cpu/vec/vec.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/Pool.h>
#include <ATen/native/cpu/utils.h>
#include <ATen/record_function.h>
#include "... |
/**
* Copyright © 2019 Denis Z. (code4un@yandex.ru) All rights reserved.
* Authors: Denis Z. (code4un@yandex.ru)
* All rights reserved.
* License: see LICENSE.txt
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
* IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* T... |
// Copyright 2017 Google 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 to in ... |
/*
* @Author: cpu_code
* @Date: 2020-07-12 19:24:49
* @LastEditTime: 2020-07-21 16:04:55
* @FilePath: \Android系统源代码情景分析(第三版)程序文件\chapter-4\src\system\core\logcat\logcat.cpp
* @Gitee: https://gitee.com/cpu_code
* @Github: https://github.com/CPU-Code
* @CSDN: https://blog.csdn.net/qq_44226094
* @Gitbook: https://... |
// Copyright (c) 2011-2015 The Bitcoin developers
// Copyright (c) 2016-2018 The PIVX developers
// Copyright (c) 2016-2018 The WealthSilo developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "walletview.h"
#incl... |
// Copyright 2018 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 "chrome/browser/webauthn/chrome_authenticator_request_delegate.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "base/base... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "particles_simple.h"
#include "citadel_effects_shared.h"
#include "particles_attractor.h"
#include "fx_quad.h"
c... |
const int N = 1e3 + 9, M = 2e5 + 9, oo = 0x3f3f3f3f;
ll INF = 0x3f3f3f3f3f3f3f3f;
const int dr [] = {-1, 0, 1, 0};
const int dc [] = {0, 1, 0, -1};
const char dir [] = {'U', 'R', 'D', 'L'};
map <char, int> inv = { {'U', 0}, {'R', 1}, {'D', 2}, {'L', 3}};
int dis[N][N], n, m;
char Par[N][N];
bool valid(int ... |
/****************************************************************************
**
** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB)
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtWidgets module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees h... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// THIS FILE HAS BEEN GENERATED, DO NOT EDIT MANUALLY. COMMAND:
// util/make_new_dif.py --mode=regen --only=autogen
#include "sw/device/lib/dif/autogen/dif_pwm_autogen.... |
#include "Soldier.hpp"
namespace WarGame {
class SniperCommander : public Sniper {
public:
SniperCommander(int player_num): Sniper(120, 100, player_num, 120){}
~SniperCommander() {};
void FullAttack(vector<vector<Soldier*>>& board, pair<int, int> source) override {
Attack(board, source);
Soldier *sou... |
#include<bits/stdc++.h>
using namespace std;
// Kth largest elements
priority_queue<int, vector<int>, greater<int>> heap; //min heap
void Solve(int a[], int n, int k) {
for (int i = 0; i < n; i++) {
heap.push(a[i]);
if (heap.size() > k) heap.pop();
}
while (heap.size() > 0) {
cout << heap.top() << " ";
... |
// Copyright 2016 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/builtins/builtins-regexp.h"
#include "src/builtins/builtins-constructor.h"
#include "src/builtins/builtins-utils.h"
#include "src/builtin... |
/**
* Copyright (C) 2021-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... |
// Copyright 2018 Chia Network 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 to in wr... |
//===-- Algorithm -----------------------------------------------*- C++ -*-===//
///
/// \file
/// \brief Algorithm
/// \details A collection of useful generic algorithms.
/// 有用的通用算法的集合。
///
/// \sa <https://boost.org/doc/libs/master/libs/algorithm/>
///
/// \version 2021-09-23
/// \since 2019-11-09
/// \au... |
#include "element_parsing.hpp"
using namespace glm;
using namespace std;
// determines if the data vector has just read the given key
bool just_read_key(vector<char> &data, const string &key) {
long difference = data.size() - key.size();
if (difference < 0)
return false;
const char *other = data.data()... |
//
// Copyright 2018 The Abseil 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 a... |
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
// Copyright 2008-2011 Zhang Yun Gui, rhcad@hotmail.com
// https://sourceforge.net/projects/x3c/
//
// 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/L... |
#include "log.h"
#include "tools.h"
#include <iostream>
SINGLETON_IMPLEMENT(Log)
Log::Log()
{
m_mapLevelMsg[Level_Info] = "Log Info: ";
m_mapLevelMsg[Level_Warning] = "Log Warning: ";
m_mapLevelMsg[Level_Error] = "Log Error: ";
m_mapLevelMsg[Level_Fatal] = "Log Fatal: ";
}
Log::~Log()
{
}
void Log::... |
// Copyright (c) 2018 Graphcore Ltd. All rights reserved.
#include <poplar/Vertex.hpp>
using namespace poplar;
// This file contains the definitions of the vertex types used by the
// matrix-vector multiplication example. The vertex type provides a description
// of how individual tasks on the IPU will perform compu... |
#include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... |
// Copyright (c) 2014-2020 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 <pika/init.hpp>
#include <pika/parallel/container_algorithms/equal.hpp>
... |
// 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 "net/socket/socks_connect_job.h"
#include "base/callback.h"
#include "base/containers/span.h"
#include "base/run_loop.h"
#include "base/test/tas... |
/* ------------------------------------------------------------------
Copyright (c) 2011-2020 Marc Toussaint
email: toussaint@tu-berlin.de
This code is distributed under the MIT License.
Please see <root-path>/LICENSE for details.
-------------------------------------------------------------- */
... |
/*=========================================================================
*
* Copyright UMC Utrecht and 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
*
* h... |
/*
===============================================================================
FILE: lastransform.hpp
CONTENTS:
Transforms LIDAR points with a number of different operations.
PROGRAMMERS:
martin.isenburg@rapidlasso.com - http://rapidlasso.com
COPYRIGHT:
(c) 2007-2018, martin ... |
#include <iostream>
#include <fstream>
#include <vector>
#include <unordered_map>
#include <cmath>
template <class Class>
void Print(Class instance) {
std::cout << instance << std::endl;
}
void Print() {
std::cout << std::endl;
}
const size_t kBase = 10;
const uint64_t kMaxCubicRoot = 1000 * 1000;
uint64_t ... |
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from date.djinni
#pragma once
#include <chrono>
#include <utility>
namespace testsuite {
struct DateRecord final {
std::chrono::system_clock::time_point created_at;
friend bool operator==(const DateRecord& lhs, const DateRecord& rhs);
... |
// Copyright 2017 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 "chrome/browser/metrics/tab_stats/tab_stats_tracker.h"
#include <algorithm>
#include <string>
#include <utility>
#include "base/bind.h"
#includ... |
#include "pch.h"
#include <string.h>
#include "nacl_includes\crypto_sign.h"
#include "additions\crypto_hash_sha512.h"
#include "nacl_includes\crypto_verify_32.h"
#include "additions\compare.h"
#include "ge.h"
#include "sc.h"
int crypto_sign_open(
unsigned char *m,unsigned long long *mlen,
const unsigned char *sm,u... |
/**
* @file filewriter/util_impl.hpp
* @author Jeffin Sam
*/
#ifndef MLBOARD_UTIL_IMPL_HPP
#define MLBOARD_UTIL_IMPL_HPP
#include <mlboard/core.hpp>
#include "util.hpp"
namespace mlboard {
namespace util {
inline void EncodeImage(std::vector<std::string>& filePaths,
std::vector<std::string>& enco... |
#include "lua_assetsmanager_test_sample.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "tolua_fix.h"
#ifdef __cplusplus
}
#endif
#include "cocos2d.h"
#include "extensions/cocos-ext.h"
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32)
#include <dirent.h>
#include <sys/stat.h>
#endif
USING_NS_CC;
USING_NS_CC_EXT;
... |
#include "Pch.h"
#include "LabyrinthGenerator.h"
#include "Game.h"
#include "InsideLocation.h"
#include "Level.h"
#include "Tile.h"
#include "UnitGroup.h"
//=================================================================================================
int LabyrinthGenerator::TryGenerate(const Int2& maze_size, cons... |
/**
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
//-*****************************************************************************
//
// Copyright (c) 2009-2011,
// Sony Pictures Imageworks, Inc. and
// Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with... |
/**
* Titanium for Windows
*
* Copyright (c) 2014-2015 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/
#if defined(_DEBUG)
#include "OutputDebugStringBuf.hpp"
#endif
#include <iostream>
i... |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org
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.
Permission is grant... |
// Copyright (C) 2012-2020 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 <arpa/inet.h>
#... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
#include "shared.h"
const size_t GRID_SIZE = 80;
float frand (float min_value=0.0f, float max_value=1.0f)
{
return min_value + float (rand ()) / RAND_MAX * (max_value - min_value);
}
struct Test
{
TestApplication application;
Sprite::Pointer sprite;
OrthoCamera::Pointer camera;
Scene ... |
// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... |
//
// Created by root on 1/17/22.
//
#ifndef RADIUS_SPECTRUMS_SOFTWARE_NEXT_IFUNCTIONS_HPP
#define RADIUS_SPECTRUMS_SOFTWARE_NEXT_IFUNCTIONS_HPP
#include "../ServiceResponse/ServiceResponse.hpp"
namespace rs
{
class IFunctions
{
public:
virtual void work(std::optional<ServiceResponse> &serv) = 0;
... |
// Copyright (c) 2016-2018 The Bitcoin Core developers
// Copyright (c) 2019 The Aphory Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <key.h>
#include <key/extkey.h>
#include <... |
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Stefan Schimanski (1Stein@gmx.de)
* Copyright (C) 2004, 2005, 2006, 2008, 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify ... |
#ifndef BOOST_MATH_COMMON_FACTOR_RT_HPP
#define BOOST_MATH_COMMON_FACTOR_RT_HPP
namespace boost {
namespace math {
// TODO: use binary GCD for unsigned integers ....
template < typename IntegerType >
IntegerType gcd( IntegerType a, IntegerType b )
{
const IntegerType zero = (IntegerType)0;
while ( true )
{
if ... |
/*
* ModSecurity for Apache 2.x, http://www.modsecurity.org/
* Copyright (c) 2004-2013 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the... |
/*
* EDefaultExceptionMonitor.cpp
*
* Created on: 2015-12-28
* Author: cxxjava@163.com
*/
#include "../inc/EDefaultExceptionMonitor.hh"
namespace efc {
namespace eio {
sp<ELogger> EDefaultExceptionMonitor::LOGGER = ELoggerManager::getLogger("DefaultExceptionMonitor");
void EDefaultExceptionMonitor::excep... |
// =================================================================================================
// Copyright Adobe
// Copyright 2015 Adobe
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it.... |
#include "stdafx.h"
#include "VideoFrameLinux.h"
#include "../CommonUI.h"
#include "../../core_dispatcher.h"
#include <QtGui/private/qscreen_p.h>
extern "C" {
void glfwSetRoot(void *root);
typedef void* (* GLADloadproc)(const char *name);
int gladLoadGLLoader(GLADloadproc);
}
static std::mutex g_wnd_mutex;
namespace... |
/*
* Automatically Generated from Mathematica.
* Thu 14 Oct 2021 09:55:26 GMT-04:00
*/
#ifndef JS_U_LEFTTOEHEIGHT_CASSIE_HH
#define JS_U_LEFTTOEHEIGHT_CASSIE_HH
#ifdef MATLAB_MEX_FILE
// No need for external definitions
#else // MATLAB_MEX_FILE
#include "math2mat.hpp"
#include "mdefs.hpp"
namespace RightStance
... |
//===--- HIP.cpp - HIP Tool and ToolChain Implementations -------*- C++ -*-===//
//
// 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
//
//===---------------------------... |
/*===================================================================
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... |
#include <stdio.h>
bool num(int n) {
while(n) {
auto const x = n % 10;
if(x != 4 && x != 7) return false;
n /= 10;
}
return true;
}
int main() {
int n;
scanf("%d", &n);
for(int i = n; i >= 0; i--) {
if(num(i)) {
printf("%d", i);
return 0;
}
}
} |
////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) 2013 Blue3k
//
// Author : KyungKun Ko
//
// Description : Time utility
//
//
////////////////////////////////////////////////////////////////////////////////
#include "TimeUtil.h"
#include "Thread.h"
#include <M... |
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_SOFTWARE_
#include "CSoftwareTexture.h"
#include "os.h"
namespace irr
{
namespace video
{
/... |
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... |
#include <TESTS/test_assertions.h>
#include <TESTS/testcase.h>
#include <CORE/VFS/FILESYSTEMS/filesys_mem.h>
#include <CORE/types.h>
using vfs::FileStats;
using vfs::MemFileSystem;
using vfs::Path;
using vfs::tMountId;
REGISTER_TEST_CASE(testMemFileMountUnmount) {
MemFileSystem filesys;
const vfs::tMountId moun... |
// Copyright 2013 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/compiler/code-generator.h"
#include <limits>
#include "src/compiler/code-generator-impl.h"
#include "src/compiler/gap-resolver.h"
#inclu... |
#include <od/graphics/screensavers/Blank.h>
namespace od
{
Blank::Blank()
{
}
Blank::~Blank()
{
}
void Blank::reset()
{
}
void Blank::draw(FrameBuffer &m, FrameBuffer &s)
{
}
} /* namespace od */ |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/ent/IVelocityProvider.hpp>
namespace RED4ext
{
namespace move {
struct MoveComponentVelocityProvider : ent::IVelocityProvider
{
static constexpr c... |
#include "GAMER.h"
#include "TestProb.h"
// problem-specific global variables
// =======================================================================================
static double ABC_Rho0; // background density
static double ABC_P0; // background pressure
static double ABC_V0; // background... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Copyright (c) 2017 The PIVX developers
// Copyright (c) 2017-2018 The Legion developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "notificator.h"
#include ... |
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {}
};
class Solution {
public:
voi... |
//
// Bismillah ar-Rahmaan ar-Raheem
//
// Easylogging++ v9.94.1
// Cross-platform logging library for C++ applications
//
// Copyright (c) 2017 muflihun.com
//
// This library is released under the MIT Licence.
// http://labs.muflihun.com/easyloggingpp/licence.php
//
// https://github.com/muflihun/easyloggingpp... |
//
// detail/impl/socket_ops.ipp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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_A... |
#include <algorithm>
#include <iostream>
#include <iterator>
#include <random>
#include <vector>
/**
* Prints the vector
*/
template <typename T>
void print_vec(const std::vector<T>& v) {
std::cout << "[ ";
for (auto i = std::begin(v); i != std::end(v); ++i) {
std::cout << *i << " ";
}
std::cout << "]\n"... |
#include "venus/opencv_utility.h"
#include "venus/scalar.h"
#include <opencv2/imgproc.hpp>
using namespace cv;
namespace venus {
std::vector<cv::Point2i> cast(const std::vector<cv::Point2f>& points)
{
std::vector<Point2i> result;
result.reserve(points.size());
for(const Point2f& point: points)
result.push_back... |
#include "modtools.h"
#include <QDir>
#include <QDebug>
#include "mustache.h"
#include <ctype.h>
Modtools::Modtools(QObject *parent) : QObject(parent)
{
//load the caps settings from file
QString capsSettings = QDir::currentPath() + "/config/caps.ini";
qInfo() << "Settings: " << capsSettings;
QSettings... |
/*
* Copyright (c) 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 notice, t... |
/*
* Copyright 2020 OmniSci, 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 "forward_tomography.h"
void virtual_station::initiate(big_new_record* my_big_record)
{
//cout << " --> VS is destructed" << endl;
// specify the storage array for eventinfo and eventStation
int station_max = 1000;
this->eventinfo_index = 0;
this->eventinfo_index_array.resize(station_max);
this->even... |
/*
; Project: Open Vehicle Monitor System
; Date: 11th Sep 2019
;
; Changes:
; 1.0 Initial release
;
; (C) 2011 Michael Stegen / Stegen Electronics
; (C) 2011-2017 Mark Webb-Johnson
; (C) 2011 Sonny Chen @ EPRO/DX
; (C) 2018 Marcos Mezo
; (C) 2019 Thom... |
// 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: JITinterface.CPP
//
// =====... |
#include "components/HelpComponent.h"
#include "components/ComponentGrid.h"
#include "components/ImageComponent.h"
#include "components/TextComponent.h"
#include "resources/TextureResource.h"
#include "utils/StringUtil.h"
#include "Log.h"
#include "Settings.h"
#define OFFSET_X 12 // move the entire thing right by thi... |
#ifndef SF_ISER_FR_TYPES_HPP
#define SF_ISER_FR_TYPES_HPP
#include <string>
#include <vector>
#include <utility> // std::pair
#include <unordered_map>
namespace ser_fw
{
// A struct that holds the information about the commonly used types of the Serialization Framework.
struct Types
{
// ParamsMap type: repres... |
#include "unittests.h"
#include "decision.h"
#include "parse.h"
#include "token.h"
#include "diagnostics.h"
#include "main.h"
#include "object.h"
#include "operation.h"
#include "program.h"
#include "reference.h"
#include "scope.h"
// -----------------------------------------------------------------------------------... |
/* This file is part of qprofile
*
* Copyright (C) 2018 Calvin <c6supper@hotmail.com>
*/
#include "qprocessmessagestatus.h"
#include "qobjectfactory.h"
using namespace QRserver;
using namespace QProfile;
QObjectSelfRegisteration<QProcessMessageStatus> registerQProcessMessageStatus;
QProcessMessageStatus::QProces... |
#include <boost/smart_ptr/make_shared.hpp> |
/************************************************************************************
Filename : OVR_RefCount.cpp
Content : Reference counting implementation
Created : September 19, 2012
Notes :
Copyright : Copyright 2014 Oculus VR, LLC All Rights reserved.
Licensed under the Oculus VR Ri... |
// Copyright 2021 The Pigweed 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... |
////////////////////////////////////////////////////////////////////////////////////////
//
// Nestopia - NES/Famicom emulator written in C++
//
// Copyright (C) 2003-2008 Martin Freij
//
// This file is part of Nestopia.
//
// Nestopia is free software; you can redistribute it and/or modify
// it under the terms of th... |
/*
===============================================================================
FILE: laszipdllexample.cpp
CONTENTS:
This source code implements several different easy-to-follow examples on
how to use the LASzip DLL. The first and the second examples implement a
small compression and decompr... |
/*
* Copyright (c) 2015, University of Kaiserslautern
* Copyright (c) 2016, Dresden University of Technology (TU Dresden)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.