text stringlengths 7 961k |
|---|
/*
Copyright (c) 2005-2015, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
/*
SoLoud audio engine
Copyright (c) 2013-2014 Jari Komppa
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,
including comm... |
/*
* PackageLicenseDeclared: Apache-2.0
* Copyright (c) 2018 ARM 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
*
* Unles... |
#include "stdafx.h"
#include "deelx.h"
#include <set>
namespace DuiLib {
const TCHAR *const ALPHABET_LOWER = _T("abcdefghijklmnopqrstuvwxyz");
const TCHAR *const ALPHABET_UPPER = _T("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
const TCHAR *const BLANK = _T(" ");
const TCHAR *const NUMBERS_BIN = _T("01");
const TCHAR *const NUMBERS... |
/***************************************************************************
** **
** QCustomPlot, an easy to use, modern plotting widget for Qt **
** Copyright (C) 2011, 2012, 2013, 2014 Emanuel Eichhammer **
** ... |
/**
* MaNGOS is a full featured server for World of Warcraft, supporting
* the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
*
* Copyright (C) 2005-2016 MaNGOS project <https://getmangos.eu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gen... |
#include<iostream>
#include<set>
const int MAXN = 100500;
using namespace std;
int n,m;
int visited[MAXN];
int deleted[MAXN];
int DFS(int v)
{
visited[v] = 1;
return -1;
}
int main()
{
ios::sync_with_stdio(false);
cin >> n >> m;
int tmp1,tmp2;
for(int i = 0; i<m; i++)
{
cin >> tmp1 >> tmp2;
... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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 "txdb.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "net.h"
#... |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
// Copyright 2019 Phyronnaz
#include "VoxelDefaultRenderer.h"
#include "VoxelRenderChunk.h"
#include "VoxelRender/VoxelProceduralMeshComponent.h"
#include "VoxelRender/VoxelRenderUtilities.h"
#include "VoxelDebug/VoxelDebugManager.h"
#include "VoxelThreadPool.h"
#include "IVoxelPool.h"
#include "Engine/World.h"
#inc... |
// 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 "chromeos/network/onc/onc_normalizer.h"
#include <string>
#include "base/logging.h"
#include "base/values.h"
#include "chromeos/network/onc... |
/*
* Copyright (c) 2016 Georgia Institute of Technology
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notice, this list ... |
#include <algorithm>
#include <eosio/chain/apply_context.hpp>
#include <eosio/chain/controller.hpp>
#include <eosio/chain/transaction_context.hpp>
#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/wasm_interface.hpp>
#include <eosio/chain/generated_transaction_object.hpp>
#include <eosio/chain/authorization_m... |
////////////////////////////////////////////////////////////////////////////////////////
//......................................................................................
// This is a part of AI Library [Arthur's Interfaces Library]. .
// 1998-2001 Arthur Amshukov ... |
#include "pch.h"
#include "Texture2D.h"
Texture2D::Texture2D() {
}
Texture2D::~Texture2D() {
} |
// Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System
// Name: TypedReference
// C++ Typed Name: mscorlib::System::TypedReference
#include <gtest/gtest.h>
#include <mscorlib/System/mscorlib_System_TypedReference.h>
#include <mscorlib/Syste... |
#include "BlockList.hpp"
namespace se {
BlockList::BlockList(const std::string& path)
: file(path, std::fstream::in | std::fstream::out | std::fstream::ate | std::fstream::binary),
blocks_()
{
// TODO: handling exceptions related to file
BlockList::size_t count = file.tellg() / MemoryBlock::OFFSET_CAPACITY;... |
#pragma once
#include <stdint.h>
#include <string>
#include <vector>
#include <queue>
#include <map>
#include <chrono>
#include "wasm/wasm_constants.hpp"
#include "wasm/types/inline_transaction.hpp"
#include "eosio/vm/allocator.hpp"
using namespace eosio;
using namespace eosio::vm;
using namespace std;
namespace was... |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/shell/common/shell_test.h"
#include "flutter/testing/testing.h"
namespace flutter {
namespace testing {
// Throughout these tests, the ... |
#include "PrecompiledHeader.h"
#include "RBitmapFont.h"
#include "RenderMan.h"
#include "ResourceMan.h"
namespace Doh3d
{
RBitmapFont::RBitmapFont(const std::string& pFontName)
{
d_fontName = pFontName;
d_charsetPath = "";
d_charsetTexture = nullptr;
}
RBitmapFont::~RBitmapFont()
{
}
bool RBitmapFon... |
/*
* CBGDoor.cpp : 背景窓の描画
*
*/
#include "CBGDoor.h"
#include "SECtrl.h"
int CBGDoor::m_RefCount = 0; // 参照カウンタ
Pbg::CGrpSurface *CBGDoor::m_pDoorL1 = NULL; // 上の扉
Pbg::CGrpSurface *CBGDoor::m_pDoorL2 = NULL; // 下の扉
// コンストラクタ //
CBGDoor::CBGDoor(RECT *rcTargetX256)
{
// 最初の呼び出しならば、データをロードする //
if(0 ... |
/**
* Copyright (C) 2016 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) 1999 - 2010, Vodafone Group Services 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:
* Redistributions of source code must retain the above copyright notice, this list of co... |
/*=========================================================================
*
* 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... |
/*---------------------------------------------------------------------------*\
Copyright (C) Creative Fields, Ltd.
-------------------------------------------------------------------------------
License
This file is part of cfMesh.
cfMesh is free software; you can redistribute it and/or modify it
under th... |
/*
* HtmlContext.cpp
*
* Created on: May 3, 2018
* Author: schnet
*/
#include "HtmlContext.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
namespace basis {
const std::string HtmlContext::DYNAMIC_FILES_KEY("... |
/*
Copyright 2020 The OneFlow 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 agre... |
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <omp.h>
#include <mkl.h>
#include "distribution.h"
int diffusion(const int n_particles,
const int n_steps,
const float x_threshold,
const float alpha,
VSLStreamStatePtr rnStream);
// DO NOT MODIFY... |
// Xavier Hsinyuan is pleased to support the open source community by making
// ncnn available.
//
// Copyright (C) 2021 Xavier Hsinyuan <me@lstlx.com> All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a... |
// File: 'Roboto-Medium.ttf' (162588 bytes)
// Exported using binary_to_compressed_c.cpp
static const unsigned int Roboto_Medium_compressed_size = 115741;
static const unsigned int Roboto_Medium_compressed_data[115744/4] =
{
0x0000bc57, 0x00000000, 0x1c7b0200, 0x00000400, 0x00010025, 0x82110000, 0x042e0804, 0x50471... |
/*============================================================
Problem: Valid Parentheses
==============================================================
Given a string containing just the characters '(', ')',
'{', '}', '[' and ']', determine if the input string is valid.
The brackets must close in the correct order, ... |
// clang-format off
#include<bits/stdc++.h>
// g++ -std=c++17 -Wl,-stack_size -Wl,0x10000000 main.cpp
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 1000000007
#define EPS 1e-6
#define ll long long int
#define ld long double
#define fi first
#define se second
#define t1(x) c... |
#include<stdio.h>
#include<math.h>
#include<map>
#include<vector>
#include<set>
#include<algorithm>
using namespace std;
#define INF 0x3fffffff
typedef struct pe{
int id,fa,ma;
double sets,area;
int k;
vector<int> family;
}pe;
typedef struct fami{
int id,num;
double sets,area;
}fami;
int par[10005];
map<int,pe> ... |
// Copyright (C) 2018 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
//
#include "ext_list.hpp"
#include "ext_base.hpp"
#include <cmath>
#include <vector>
#include <string>
namespace InferenceEngine {
namespace Extensions {
namespace Cpu {
class CTCGreedyDecoderImpl: public ExtLayerBase {
public:
e... |
///////////////////////////////////////////////////////////////
// Copyright 2013 John Maddock. 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_
#ifndef BOOST_MP_CPP_INT_SERIALIZE_HPP
#define BOOST_MP_CPP_INT_SERIALIZE... |
//
// FILE NAME: $RCSfile: MatlabCommonLib.hpp,v $
//
// REVISION: $Revision: 1.2 $
//
// LAST UPDATED: $Date: 2009-04-20 22:35:21 $
//
// UPDATED BY: $Author: iwang $
#ifndef _MATLAB_COMMON_LIB_HPP_
#define _MATLAB_COMMON_LIB_HPP_
#include "MVException.hpp"
#include "MVCommon.hpp"
#include "IExe... |
#pragma once
#include <cule/config.hpp>
#include <cule/atari/state.hpp>
namespace cule
{
namespace atari
{
template<typename State>
CULE_ANNOTATION
void state_store_load_helper(State& t, const State& s)
{
t.A = s.A;
t.X = s.X;
t.Y = s.Y;
t.SP = s.SP;
t.PC = s.PC;
t.addr = s.addr;
t.value ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
// Copyright 2009 Daniel Erat <dan@erat.org>
// All rights reserved.
#include "data_reader.h"
#include <arpa/inet.h>
using std::string;
namespace xsettingsd {
DataReader::DataReader(const char* buffer, size_t buf_len)
: buffer_(buffer),
buf_len_(buf_len),
bytes_read_(0),
reverse_bytes_(false)... |
#include "Runtime/World/CPlayerCameraBob.hpp"
#include "Runtime/CStateManager.hpp"
#include "Runtime/World/CPlayer.hpp"
#include <zeus/Math.hpp>
namespace metaforce {
float CPlayerCameraBob::kCameraBobExtentX = 0.071f;
float CPlayerCameraBob::kCameraBobExtentY = 0.142f;
float CPlayerCameraBob::kCameraBobPeriod = 0.4... |
/* Touch Sensor Example
For other examples please check:
https://github.com/espressif/esp-iot-solution/tree/master/examples
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS"... |
/*
Copyright (c) 2013 Aerys
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 to use, copy, modify, merge, publish, distribute,
sublicens... |
// Copyright (c) YugaByte, 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 writ... |
/****************************************************************************
Copyright (c) 2013 cocos2d-x.org
http://www.cocos2d-x.org
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 with... |
#ifndef RandomSearchFD_h
#define RandomSearchFD_h 1
// Metaheuristic
#include "Metaheuristic.hpp"
#include "FrequencyDistribution.hpp"
// Random Search Algorithim with support for fitness frequency distribution logging
// 1. generate a current_genome as dictated by the genome
// configuration.
// 2. Evaluate this... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... |
/*
*
* Copyright 2015-2016 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 ... |
#include "surface.h"
namespace baseline {
namespace draw {
Surface::Surface(std::array<uint32_t, 2> size,
gl::Framebuffer&& framebuffer,
gl::Renderbuffer&& depth_buffer,
std::vector<Context::TextureRef>&& color_buffers)
: si... |
/****************************************************************************
*
* This is a part of TOTEM offline software.
* Authors:
* Jan Kašpar (jan.kaspar@gmail.com)
* Nicola Minafra
*
****************************************************************************/
#include "EventFilter/CTPPSRawToDigi/interface/... |
#include "AddressUtils.h"
#include "fboss/agent/if/gen-cpp2/FbossCtrl.h"
#include "folly/FBString.h"
#include "folly/IPAddress.h"
namespace facebook {
namespace fboss {
folly::IPAddress nlAddrToFollyAddr(struct nl_addr* addr) {
return folly::IPAddress::fromBinary(folly::ByteRange(
reinterpret_cast<const unsig... |
// 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 "net/test/test_data_directory.h"
#include "base/base_paths.h"
#include "base/path_service.h"
#include "base/threading/thread_restrictions.h"... |
#include "rcm.h"
#include "GVerbWidget.hpp"
#include "../include/BaseWidget.hpp"
namespace rack_plugin_rcm {
struct CV5to5Module : Module {
enum ParamIds {
AMOUNT_PARAM,
NUM_PARAMS
};
enum InputIds {
NUM_INPUTS
};
enum OutputIds {
CV_OUTPUT,
NUM_OUTPUTS
};
enum LightIds {
NUM_LIGHTS
};
CV5to5Mod... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkDiscretizableColorTransferFunction.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details... |
//*****************************************************************************
// 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... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2016-2018 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparamsbase.h"
#include "util... |
/* Copyright 2015 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) 2018 The Android Open Source Project
* Copyright (C) 2020 The LineageOS 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/licen... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkRandomAttributeGenerator.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... |
/**********************************************************************
Audacity: A Digital Audio Editor
PluginManager.cpp
Leland Lucius
*******************************************************************//*!
\file PluginManager.cpp
\brief
********************************************************************... |
//
// SimpleMovingAverage.cpp
// libraries/shared/src
//
// Created by Stephen Birarda on 4/18/13.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "SharedUtil.h"
#inc... |
//
// Created by jeff on 18-6-25.
//
#include "EventLoopThreadPool.h"
#include "EventLoop.h"
#include "EventLoopThread.h"
using namespace selfServer;
using namespace selfServer::net;
EventLoopThreadPool::EventLoopThreadPool(EventLoop *baseLoop)
: m_baseloop(baseLoop),
m_started(false),
m_numThreads(0... |
#include "honeycomb_walk.h"
honeycombwalk::HoneycombWalk::HoneycombWalk() {
std::memset(steps_, -1, sizeof(steps_));
}
int honeycombwalk::HoneycombWalk::Walk(const int number_of_steps) {
return w(0, 0, number_of_steps);
}
int honeycombwalk::HoneycombWalk::w(const int x, const int y, const int s) {
if (s == 0) ... |
#include "pch.h"
#include "space.h"
#include <iostream>
#include <graphics.h>
#include <Windows.h>
#include <conio.h>
Space_Creator *newspace;
Camera *mycamera;
tObject *cube1;
tObject *cube2;
void start()
{
initgraph(PMX, PMY);
newspace = new Space_Creator();
mycamera = new Camera(1, PMX/2);
cube1 = new tObject... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015 Fredrik Lindh
*
* 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 ... |
#define BOOST_TEST_MODULE
#include <boost/test/unit_test.hpp>
#include <util/test_macros.hpp>
#include <vector>
#include <string>
#include <random/random.hpp>
#include <sframe/testing_utils.hpp>
#include <util/testing_utils.hpp>
#include <unity/toolkits/sparse_similarity/sliced_itemitem_matrix.hpp>
#include <util/city... |
#include <math.h>
#include <stdio.h>
#include <time.h>
#include "agg_basics.h"
#include "agg_rendering_buffer.h"
#include "agg_rasterizer_scanline_aa.h"
#include "agg_rasterizer_outline.h"
#include "agg_scanline_p.h"
#include "agg_path_storage.h"
#include "agg_renderer_scanline.h"
#include "platform/agg_platform_suppor... |
/***************************************************************
* Generated by Hottentot CC Generator
* Date: 07-05-2016 11:20:04
* Name: fence_test_service_proxy.cc
* Description:
* This file contains implementation of the proxy class.
***************************************************************/
#include... |
#include <iostream>
#include "src/PaWrapper.hpp"
/*
** EPITECH PROJECT, 2021
** babel
** File description:
** Created by seb,
*/
int main()
{
PaWrapper oui;
oui.startRecord();
oui.startPlay();
while (1) {
oui.record();
oui.play(oui.getData());
}
oui.stopRecord();
oui.stopPlay();
} |
// Copyright (C) 2016-2018 T. Zachary Laine
//
// 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 <boost/yap/expression.hpp>
namespace yap = boost::yap;
struct alternate_expr_1
{
static const yap::ex... |
#include "EntityManager.h"
#include "WE3/helper/load/WEVarTableHelper.h"
#include "WE3/WEAppPath.h"
#include "WE3/filePath/WEPathResolver.h"
#include "WE3/helper/load/WEMathDataLoadHelper.h"
using namespace WE;
#include "entity/ball/Ball.h"
#include "Match.h"
#include "inc/Entities.h"
#include "WE3/WEDebugBypass.h"... |
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "clientversion.h"
#include "coins.h"
#include "consensus/consensus.h"
#include "core_io.h"
#incl... |
/*
*
* Created on: 2021年1月1日
* Author: Lzy
*/
#include "td_mainwid.h"
#include "ui_td_mainwid.h"
Td_MainWid::Td_MainWid(QWidget *parent) :
QWidget(parent),
ui(new Ui::Td_MainWid)
{
ui->setupUi(this);
groupBox_background_icon(this);
mStatusTabWid = new Td_StatusTabWid(ui->groupBox);
co... |
//
// Snapshot.cpp
// interface/src/ui
//
// Created by Stojce Slavkovski on 1/26/14.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <QtCore/QDateTime>
#include <QtC... |
#include "extensions/filters/network/ext_authz/ext_authz.h"
#include <cstdint>
#include <string>
#include "envoy/stats/scope.h"
#include "common/common/assert.h"
#include "common/tracing/http_tracer_impl.h"
#include "extensions/filters/network/well_known_names.h"
namespace Envoy {
namespace Extensions {
namespace ... |
#include <seqan3/io/stream/debug_stream.hpp>
#include <seqan3/alphabet/nucleotide/dna5.hpp>
#include <seqan3/range/view/convert.hpp>
#include <seqan3/range/view/to_rank.hpp>
using namespace seqan3;
using namespace seqan3::literal;
int main()
{
//! [usage]
// This does not work:
//std::cout << dna5::C;
// because the ... |
// Copyright Carl Philipp Reh 2009 - 2018.
// 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 FCPPT_PARSE_DETAIL_FLATTEN_TUPLES_HPP_INCLUDED
#define FCPPT_PARSE_DETAIL_FLATTEN_TUPLES_H... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "../include/fsdk_define.h"
#include "../../public/fpdf_doc.h"
static... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2016 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright noti... |
// Copyright (c) 2011 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/chromeos/prerender_condition_network.h"
namespace chromeos {
PrerenderConditionNetwork::PrerenderConditionNetwork(
Netw... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <arith_uint256.h>
#include <uint256.h>
#include <utilstrencodings.h>
#i... |
/*
Safe C++, Or How to Avoid Most Common Mistakes in C++ Code
by Vladimir Kushnir, (O’Reilly).
Copyright 2012 Vladimir Kushnir, ISBN 9781449320935.
If you feel your use of code examples falls outside fair use or the
permission given above, feel free to contact us at permissions@oreilly.com.
*/
#include "scpp... |
// Statistics.cpp
// Implements the various statistics-collecting classes
#include "Globals.h"
#include "Statistics.h"
#include "../../src/WorldStorage/FastNBT.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// cStatistics::cStats:
cStat... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
// 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 "chrome/browser/ui/content_settings/content_setting_image_model.h"
#include <string>
#include <utility>
#include "base/feature_list.h"
#inc... |
/*
Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... |
// Created on: 1990-12-19
// Created by: Christophe MARION
// Copyright (c) 1990-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the ... |
#pragma once
#include <sstream>
namespace ListHelper
{
// Merge-sort a list.
template <typename templateType>
void mergeSort(std::vector< ObjectSortingContainer<templateType> >& input, bool leastToGreatest)
{
unsigned int subListSize=2;
std::vector< std::vector< ObjectSortingContainer<templateType> > > sub... |
/*
* Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condi... |
/* Copyright (c) 2022 PaddlePaddle 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... |
#include "t77.h"
#include "../lib/cpplib.h"
#include "../lib/fm7lib.h"
void T77File::CleanUp(void)
{
t77.clear();
}
void T77File::DumpT77(const std::vector <unsigned char> &dat)
{
t77=dat;
}
void T77File::DumpT77(std::vector <unsigned char> &&dat)
{
std::swap(t77,dat);
}
T77File::WAVOutOption::WAVOutOption()
{
... |
#include "parser.hpp"
#include "logger.hpp"
#include <filesystem>
#include <fstream>
void read(spang::output_parser& parse, const std::filesystem::path& path)
{
if (std::filesystem::is_directory(path))
{
for (const auto& sub_path : std::filesystem::directory_iterator(path))
{
if (!std::filesystem::is_director... |
#include "Texture.h"
Texture::Texture()
{
}
Texture::~Texture()
{
} |
/* ************************************************************************
* Copyright (c) 2018-2020 Advanced Micro Devices, Inc.
*
* 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 witho... |
#include <trview.app/UI/Bubble.h>
using namespace trview;
using namespace trview::ui;
TEST(Bubble, ShowMakesBubbleVisible)
{
ui::Window control(Size(), Colour::White);
Bubble bubble(control);
auto bubble_control = control.find<ui::Control>(Bubble::Names::Bubble);
ASSERT_NE(bubble_control, nullptr);
... |
// 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... |
#pragma execution_character_set("utf-8")
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMessageBox>
#include <QIcon>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
mgr(new SaveManager),
manualEdit(new ManualEditDialog(mgr, this))
{
QIcon ico... |
/**** Bruno DATO M1 EEA ISTR Université Paul Sabatier Toulouse III 2016 ****/
#include "capteurs.h"
#include "actionneurs.h"
#include "communication_baxter.h"
#include "commande.h"
#include <ros/ros.h>
#include <unistd.h>
using namespace std;
#define NOMBRE_PLACE 10
#define RESET "\033[0m"
#define BOLDRED "\... |
#include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
struct EquationParser {
tuple<int, int, int> F(string s) {
int x = 0, y = 0, c = 0;
stringstream in(s);
for (int i = 0, flag = 0; in >> s; i++) {
if (i & 1) flag = s == "-";
else {
auto t = s; t.pop_back(); t =... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2016, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * R... |
// @brown9804 Belinda Brown
// timna.brown@ucr.ac.cr
// September, 2020
// Jump predictor algorithm
// using an input file trace
// 1. Size of the BTH table. (-s)
// 2. Prediction type (-bp)
// 3. Size of the global prediction record (-gh)
// 4. Size of private history records (-ph)
/// gunzip -c branch-trace-gcc.tr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.