text stringlengths 7 961k |
|---|
/*
* FSMANTLRMachineFactory.cc
*
* Created by René Hexel on 23/09/11.
* Copyright (c) 2011, 2019 Rene Hexel.
* 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. Redistributio... |
/*********************************************************************************
INTEL CORPORATION PROPRIETARY INFORMATION
This software is supplied under the terms of a license agreement or nondisclosure
agreement with Intel Corporation and may not be copied or disclosed except in
accordance with the terms of that ... |
#include <iostream>
using namespace std;
struct node
{
int data;
struct node *next;
};
struct node *head = nullptr;
node *createNode(int value)
{
struct node *temp;
temp = new (struct node);
if (temp == nullptr)
{
cout << "Memory not allocated " << endl;
return 0;
}
e... |
// ====================================================================
// This file is part of FlexibleSUSY.
//
// FlexibleSUSY is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the Licens... |
/**
* Copyright 2020 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
... |
#include "Shader_manager.hpp"
#include "Shader.hpp"
#include "Resource.hpp"
#include "Resource_manager.hpp"
#include "string_id.hpp"
#include <utility>
#include <string>
gfx::Shader_manager gfx::g_shader_mgr;
gfx::Shader_manager::Shader_manager() : rms::Resource_manager(std::string("shader"), sizeof(gfx::Shader), 5,... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Darkcoin 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 "chain.h"
#include "db.h"
#include "init.h"
#include "activ... |
/******************************************************************************
*
* Project: FYBA Callbacks
* Purpose: Needed by FYBA - however we do not want to display most messages
* Author: Thomas Hirsch, <thomas.hirsch statkart no>
*
***********************************************************************... |
// Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004. All Rights Reserved
//
// The Wild Magic Library (WML) source code is supplied under the terms of
// the license agreement http://www.magic-software.com/License/WildMagic.pdf
// and may not be copied or disclos... |
/*
* E_RMScheduler.cpp
*
* Created on: 2014. 12. 3.
* Author: Keunhong Lee
*/
#include <E/E_System.hpp>
#include <E/Scheduling/E_Scheduler.hpp>
#include <E/Scheduling/E_Processor.hpp>
#include <E/Scheduling/E_Computer.hpp>
#include <E/Scheduling/RM/E_RMScheduler.hpp>
namespace E
{
RMScheduler::RMSchedule... |
/*===================================================================
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... |
////////////////////////////////////////////////////////////////////////////////
// The following FIT Protocol software provided may be used with FIT protocol
// devices only and remains the copyrighted property of Dynastream Innovations Inc.
// The software is being provided on an "as-is" basis and as an accommodation... |
#include "ExternalSource/myYaml/include/myYaml/node/parse.h"
#include <fstream>
#include <sstream>
#include "ExternalSource/myYaml/include/myYaml/node/node.h"
#include "ExternalSource/myYaml/include/myYaml/node/impl.h"
#include "ExternalSource/myYaml/include/myYaml/parser.h"
#include "nodebuilder.h"
namespace YAML {... |
//
// Created by 長井亨 on 2018/07/28.
//
#include "BVH.hpp"
#include <algorithm>
#include <queue>
namespace nagato
{
BVH::BVH(std::vector<Object *> objects)
{
this->objects.clear();
for (Object *o : objects) {
this->objects.push_back(o);
}
}
float BVH::surfaceArea(c... |
// Copyright (C) 2014-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your op... |
#include "benchmark/benchmark.h"
#include "c4/log.hpp"
#include "c4/allocator.hpp"
#include "../list_types.hpp"
namespace bm = benchmark;
namespace c4 {
template< class List >
void BM_ListPushBackWithReserve(bm::State& st)
{
List li;
do_reserve<List>::reserve(li, st.range(0));
using T = typename List::v... |
#ifndef __PBF_HPP__
#define __PBF_HPP__
/*
* Some parts are from upb - a minimalist implementation of protocol buffers.
*
* Copyright (c) 2008-2011 Google Inc. See LICENSE for details.
* Author: Josh Haberman <jhaberman@gmail.com>
*/
#include <cstdint>
#include <stdexcept>
#include <string>
#include <cstring>
#... |
/**
* author: Yuriy Lobarev
* telegram: @forman
* phone: +7(910)983-95-90
* email: forman@anyks.com
* site: https://anyks.com
*/
#ifndef __ANYKS_ARPA__
#define __ANYKS_ARPA__
/**
* Стандартная библиотека
*/
#include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#inclu... |
// 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 "ash/system/bluetooth/tray_bluetooth.h"
#include "ash/session/session_state_delegate.h"
#include "ash/shell.h"
#include "ash/system/tray/fix... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: StandaloneMonobehavior
#include "GlobalNamespace/StandaloneMonobehavior.hpp"
... |
#include <TableFunctions/ITableFunction.h>
#include <TableFunctions/TableFunctionInput.h>
#include <TableFunctions/TableFunctionFactory.h>
#include <TableFunctions/parseColumnsListForTableFunction.h>
#include <Parsers/ASTFunction.h>
#include <Parsers/ASTLiteral.h>
#include <Common/Exception.h>
#include <Common/typeid_c... |
/**************************************************************
MIT License
Copyright (c) 2021 HNU-YueLuRM-Vision
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... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/interpr... |
#include <queue>
#include "math.h"
#include "limits.h"
#include "float.h"
#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <tf/transform_datatypes.h>
#include "std_msgs/MultiArrayLayout.h"
#include "std_msgs/MultiArrayDimension.h"
#include "std_msgs/Float64MultiArray.h"
#include "std_msgs/Float64.h"
#... |
/*
* Copyright (c) 2016, The OpenThread Authors.
* 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 ... |
// Time Complexity: O(n!)
// Space Complexity: O(1)
class Solution {
public:
vector<vector<int> > combinationSum2(vector<int> &num, int target) {
sort(num.begin(), num.end());
vector<vector<int> > ans;
vector<int> v;
dfs(num, target, 0, v, ans);
r... |
#include "BitOperationsTest.h"
#include "cute.h"
#include "pssst.h"
#include <cstdint>
//#define USE_STRONG
using namespace Pssst;
struct U_int16 :
#ifdef USE_STRONG
strong<std::uint16_t,U_int16>,
#endif
ops<U_int16, Eq, Out, BitOps, ShiftOps, ShiftOpsSym>
// , Eq<U_int16>, Out<U_int16>
// ... |
/*
* Copyright (c) 2014, Oculus VR, Inc.
* Copyright (c) 2016-2018, TES3MP Team
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file... |
/******************************************************************************/
/* Mednafen - Multi-system Emulator */
/******************************************************************************/
/* rmdui.cpp:
** Copyright (C) 2014-2018 Mednafen Team
**
** This program is... |
/**
* @file msg.cpp
*
* Implementation of function for sending and reciving network messages.
*/
#include "all.h"
#include "../3rdParty/Storm/Source/storm.h"
#include "../DiabloUI/diabloui.h"
#include "options.h"
namespace devilution {
static DWORD sgdwOwnerWait;
static DWORD sgdwRecvOffset;
static int sgnCurrMeg... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "leveldb/table_builder.h"
#include <cassert>
#include "leveldb/comparator.h"
#include "level... |
/*
* Copyright (c) 2011-2012,2016-2017, 2019 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implem... |
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
/* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/Color.cc,v 1.4 1992/11/25 22:38:49 lewis Exp $
*
* TODO:
*
*
* Changes:
* $Log: Color.cc,v $
* Revision 1.4 1992/11/25 22:38:49 lewis
* Real->double - real obsolete.
*
* Revision 1.3 1992/09/01 15... |
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkData.h"
#include "include/core/SkFontMetrics.h"
#include "in... |
// Copyright 2020 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... |
// Copyright (c) Darrell Wright
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/beached/
//
#include <daw/daw_fixed_array.h>
int main( ) {
auto ary = daw::fixed_array<int>... |
//
// Created by bertrand on 25/09/2021.
//
#include "File.h"
#include "Utils.h"
// logging
#include <plog/Log.h>
// C++
#include <iostream>
#include <fstream>
void File::Handle(std::string &str, const std::filesystem::path &root) {
auto refPos = str.find("{{file:", 0);
while (refPos != std::string::npos) {
... |
// 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 <unistd.h>
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/check.h"
#include "base/optional.h"
#include "base/posix/e... |
/****************************************************************************************
* @author: kzvd4729 created: Mar/21/2021 19:31
* solution_verdict: Accepted language: GNU C++17 (64)
* run... |
/*=========================================================================
Program: ParaView
Module: pqViewMenuManager.cxx
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of the P... |
/*
#面试刷题# 第78期
#Leetcode# Q1394 在数组中查找幸运整数
难度:低
给定一个整数数组arr,幸运整数是一个整数,其在数组中的频率等于其值。
在数组中返回一个幸运的整数。 如果有多个幸运整数,则返回其中最大的一个。
如果没有幸运的整数,则返回-1。
约束条件:
(a) 1 <= arr.length <= 500
(b) 1 <= arr[i] <= 500
例1:
Input: arr = [2,2,3,4]
Output: 2
Explanation: The only lucky number in the array is 2 because frequency[2] == 2.
例2:
In... |
#include "mbed.h"
#include "test_env.h"
#include <stdio.h>
#if !DEVICE_I2C
#error [NOT_SUPPORTED] I2C is not supported
#endif
#if !DEVICE_I2CSLAVE
#error [NOT_SUPPORTED] I2C Slave is not supported
#endif
#if defined(TARGET_NUCLEO_F031K6) || \
defined (TARGET_NUCLEO_L011K4) || \
defined (TARGET_NUCLEO_L03... |
//===-- SwiftASTManipulator.cpp ---------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
// Copyright 2015 The Chromium OS 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 <brillo/message_loops/fake_message_loop.h>
#include <memory>
#include <vector>
#include <base/bind.h>
#include <base/location.h>
#include <b... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
//
// https://open.kattis.com/problems/numbertree
#include <bits/stdc++.h>
#define forcase int __t;cin>>__t;getchar();for(int ___t=1;___t<=__t;___t++)
#define For(i, n) for(int i=0;i<n;i++)
#define Fore(e, arr) for(auto e:arr)
using ll = long long;
using namespace std;
int main() {
int h;
string s;
cin... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
#include <runtime.h>
#include <map>
#include <cmath>
double getPointLength(const cv::Point2f &p) {
return sqrt(p.x * p.x + p.y * p.y);
}
cv::VideoWriter initVideoWriter(const std::string &filename_prefix) {
cv::VideoWriter video;
std::string file_name = filename_prefix + ".avi";
video.open(file_name, c... |
#include <FoundationPCH.h>
EZ_STATICLINK_LIBRARY(Foundation)
{
if (bReturn)
return;
EZ_STATICLINK_REFERENCE(Foundation_Algorithm_Implementation_HashHelperString);
EZ_STATICLINK_REFERENCE(Foundation_Algorithm_Implementation_HashingUtils);
EZ_STATICLINK_REFERENCE(Foundation_Application_Config_Implementation... |
/*
Copyright 2014 VirusTotal S.L. 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 agreed to in ... |
/*
* Copyright (c) 2011-2021, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/main/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, wit... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "commands/TankDrive.h"
#include <utility>
#include "Robot.h"
// Initialises the command with its name and re... |
/** @file
Vfr common library functions.
Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The ... |
// Copyright 2010-2021 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... |
//
// Created by kr2 on 12/25/21.
//
#ifndef FLUIDVISUALIZATION_SRC_PBDSOLVERCPU_HPP
#define FLUIDVISUALIZATION_SRC_PBDSOLVERCPU_HPP
#include "Solver.hpp"
class NSearch;
class PBDSolver : public Solver {
public:
PBDSolver(float border, float radius, float epsilon = 1e-5);
PBDSolver(const PBDSolver &solver) = de... |
//===-- lib/Evaluate/fold-real.cpp ----------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#pragma once
//------------------------------------------------------------------------------------------------------------------------------
enum eSimulationType
{
TYPE_UNKOWN = -1,
STATIC_SIMULATION,
DYNAMIC_SIMULATION,
NUM_SIMULATION_TYPES
}; |
////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// _) | | _) This code may be used and modified under the terms //
// | | | |... |
/*
*
* Copyright (c) 2020-2021 Project CHIP 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 r... |
//#include <iostream>
//#include <algorithm>
//#include <string>
//using namespace std;
//
//#ifdef DEBUG
//#include "Utility.h"
//#endif // DEBUG
//
//
//
//int main()
//{
// ios::sync_with_stdio(false);
// cin.tie(NULL);
//
// string S1 = "0", S2 = "0";
// string Input;
// cin >> Input; S1 += Input;
// cin >> Input; ... |
/*
Copyright (c) 2002-2009 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... |
#pragma once
#include <jni/jni.hpp>
#include "bitmap.hpp"
namespace mbgl {
namespace android {
class BitmapFactory {
public:
static constexpr auto Name() { return "android/graphics/BitmapFactory"; };
static void registerNative(jni::JNIEnv&);
static jni::Local<jni::Object<Bitmap>>
DecodeByteArray(jn... |
/* Copyright (C) 2016-2018 Alibaba Group Holding Limited
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 ... |
/* Move-to-Front List Implementation */
/* Copyright (c) 1994 Stanford University
All rights reserved.
This software is provided under the terms described in
the "suif_copyright.h" include file. */
#include <suif_copyright.h>
#define _MODULE_ "libsuif.a"
#pragma implementation "mtflist.h"
#define R... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2018 The LivenodesCoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYI... |
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
TreeNode* invertTree(TreeNode* root) {
if (root == NULL) {
return root;
}
TreeN... |
// 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 "extensions/browser/api/idle/idle_api.h"
#include <limits.h>
#include <memory>
#include <string>
#include "base/memory/ptr_util.h"
#includ... |
#include <iostream>
using namespace std;
template<typename T, typename T2>
class Paar {
public:
Paar(){}
Paar(T &erster, T2 &zweiter): erster(erster), zweiter(zweiter){}
T getErster() const { return erster; }
T2 getZweiter() { return zweiter; }
bool operator==(const Paar<T, T2> &paar) const {
... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/strings/string_util.h"
#include <math.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <type_... |
//
// Copyright (c) 2013 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// PixelTransfer11.cpp:
// Implementation for buffer-to-texture and texture-to-buffer copies.
// Used to implement pixel transfers from... |
/* libs/graphics/svg/SkSVGG.cpp
**
** Copyright 2006, The Android Open Source Project
**
** 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... |
#include "le_imgui.h"
#include "le_core.h"
#include "imgui.h"
#include "le_renderer.h"
#include "le_pipeline_builder.h"
#include "le_ui_event.h"
#define GLM_FORCE_DEPTH_ZERO_TO_ONE // vulkan clip space is from 0 to 1
#define GLM_FORCE_RIGHT_HANDED // glTF uses right handed coordinate system, and we're following... |
//=================================================================================================
/*!
// \file src/classic/Daxpy.cpp
// \brief Source file for the classic daxpy product kernel
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This file is part of the Blaze library. You can ... |
/// @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... |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/**
* Copyright (C) 2012 10gen 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 useful... |
/*
The MIT License (MIT)
Copyright (c) 2014 Marianne Gagnon
Copyright (c) 2020 SCG82
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
t... |
//
// Created by Nikita on 16.11.2020.
//
#define CRT_SECURE_NO_WARNINGS
#include "../../inc/FileSystem/FileSystem.h"
#include <cstdio>
#include <Debug.h>
#include <Utils/StringUtils.h>
#ifdef WIN32
#include <Windows.h>
#endif
#include <Utils/StringUtils.h>
#include <Debug.h>
#include <direct.h>
using namespace Fr... |
/*
* .file eglplus/enums/rendering_api.ipp
*
* Automatically generated header file. DO NOT modify manually,
* edit 'source/enums/eglplus/rendering_api.txt' instead.
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt... |
// Copyright (c) 2022 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/execution/queries/get_allocator.hpp>
#include <hpx/execution/queries/get... |
/**
******************************************************************************
* This file is part of the TouchGFX 4.10.0 distribution.
*
* <h2><center>© Copyright (c) 2018 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Libert... |
//////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2016-22, Lawrence Livermore National Security, LLC and Umpire
// project contributors. See the COPYRIGHT file for details.
//
// SPDX-License-Identifier: (MIT)
////////////////////////////////////////////////////////////////... |
#ifndef CGPROJECT_JSONMAPREADER_HPP
#define CGPROJECT_JSONMAPREADER_HPP
#include <WorldMap.hpp>
#include <rapidjson/document.h>
class JSONMapReader
{
public:
explicit JSONMapReader(WorldMap& map);
void read(const std::string& path);
private:
WorldMap& worldMap;
rapidjson::Document load(const std::string&path)... |
#include "contractresult.h"
#include "ui_contractresult.h"
#include "guiconstants.h"
#include "contractabi.h"
#include "contracttablemodel.h"
#include "walletmodel.h"
#include <QMessageBox>
#include <QCheckBox>
ContractResult::ContractResult(QWidget *parent) :
QStackedWidget(parent),
ui(new Ui::ContractResult... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
//
// Created by MurphySL on 2020/10/23.
//
#include "weavess/component.h"
namespace weavess {
// NO LIMIT GREEDY
void
ComponentCandidateNSG::CandidateInner(const unsigned query, const unsigned enter, boost::dynamic_bitset<> flags,
std::vector<Index::SimpleNeighb... |
#include <memory>
#include <sstream>
#include <fstream>
#include <HepMC/GenEvent.h>
#include <HepMC/IO_BaseClass.h>
#include <ThePEG/Repository/Repository.h>
#include <ThePEG/EventRecord/Event.h>
#include <ThePEG/Config/ThePEG.h>
#include <ThePEG/LesHouches/LesHouchesReader.h>
#include "FWCore/Framework/interface/Lu... |
// 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 "crypto/mock_apple_keychain.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/metrics/histogram_macros.h"
#include "base/... |
//==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... |
///*|-----------------------------------------------------------------------------
// *| This source code is provided under the Apache 2.0 license --
// *| and is provided AS IS with no warranty or guarantee of fit for purpose. --
// *| See the project's LICENSE.md for details. ... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/metrics/fi... |
// Copyright 2014 The Native Client 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 <pthread.h>
#include <semaphore.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "native_client/tests/benchmark/threa... |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void print_vector(vector<string>*v) {
for (int i = 0; i < v->size(); i++) {
cout << v->at(i) << " ";
}
cout << endl;
}
void sublists_helper(vector<string>* v, vector<string>* chosen) {
if (v->empty()) {
print... |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2017
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* Permission is ... |
/*
* Copyright (c) 2006-2009 Erin Catto http://www.box2d.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 granted to anyone to use this software for any purpose,
* i... |
/**
* Test suite for the itertools module.
*
* Link all test files with the `gtest_main` library to create a command line
* test runner.
*/
#include <iterator>
#include <exception>
#include <limits>
#include <vector>
#include <gtest/gtest.h>
#include "pypp/pypp.hpp"
using namespace pypp::itertools;
using std::b... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin 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/coffeecoin-config.h"
#endif
#include "tin... |
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// clang-format off
#include "net.h"
#include "masternodeconfig.h"
#include "util.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.