text stringlengths 5 1.04M |
|---|
#include <FractalPCH.h>
#include <core\managers\PropertiesManager.h>
#include <vector>
#include <fstream>
#include <algorithm>
#include <cctype>
#include <regex>
namespace fractal
{
namespace fcore
{
PropertiesManager::PropertiesManager () :
IManager<PropertiesManager>()
{
// empty
}
PropertiesManag... |
// Auto generated C++ code started by /home/magnus/gem5-stable_2014_12_14/src/mem/slicc/symbols/StateMachine.py:1157
// Directory: Directory protocol
#include <cassert>
#include "base/misc.hh"
#include "base/trace.hh"
#include "debug/ProtocolTrace.hh"
#include "debug/RubyGenerated.hh"
#include "mem/protocol/Directory... |
/* C++ implementation of QuickSort */
#include <bits/stdc++.h>
using namespace std;
// A utility function to swap two elements
void swap(int* a, int* b)
{
int t = *a;
*a = *b;
*b = t;
}
/* This function takes last element as pivot, places
the pivot element at its correct position in sorted
array, and pl... |
/*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, SRI International
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
// Copyright 2016 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/http2/hpack/decoder/hpack_whole_entry_buffer.h"
#include "base/logging.h"
#include "base/trace_event/memory_usage_estimator.h"
namespace n... |
//
// Created by Jakub Gert on 04/05/2021.
//
#include <QtTest/QtTest>
#include "tests/TestSuite.h"
#include "Parser.h"
using namespace gCode;
using namespace machine;
class G18Tests : public TestSuite {
Q_OBJECT
private slots:
void testMissingArgument() {
auto parser = gCode::Parser();
parser.p... |
#include "CQF_MitkInit.h"
#include "MitkMain/IQF_MitkDataManager.h"
#include "MitkMain/IQF_MitkRenderWindow.h"
#include "iqf_main.h"
//mitk
#include "QmitkRegisterClasses.h"
#include "mitkStandaloneDataStorage.h"
//qt
#include <QSettings>
CQF_MitkInit::CQF_MitkInit(QF::IQF_Main* pMain) :m_pMain(pMain)
{
}
CQF_M... |
/*
* Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/HashTable.h>
#include <LibJS/Runtime/WeakMapPrototype.h>
namespace JS {
WeakMapPrototype::WeakMapPrototype(GlobalObject& global_object)
: Object(*global_object.object_prototype())
{... |
/*
* 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 ... |
// 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... |
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/common/enums/statement_type.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/common/constants.hpp"
namespace duckdb {... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "behavior_test_plugin_config.hpp"
#include "vpu_test_data.hpp"
INSTANTIATE_TEST_CASE_P(
smoke_BehaviorTest, BehaviorPluginCorrectConfigTest,
ValuesIn(
BehTestParams::concat(
BehTestParams::conca... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/cast_certificate/cast_cert_validator.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <memory>
#include <ut... |
// Copyright (c) 2019 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... |
// Copyright John Maddock 2008.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <pch.hpp>
#ifndef BOOST_MATH_TR1_SOURCE
#define BOOST_MATH_TR1_SOURCE
#endif
#inclu... |
// Copyright 2018 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 "shill/external_task.h"
#include <map>
#include <memory>
#include <set>
#include <string>
#include <vector>
#include <base/bind.h>
#include ... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "TurboModule.h"
using namespace facebook;
namespace facebook {
namespace react {
TurboModule::TurboModule(
const st... |
/*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 3.1 Module
* -------------------------------------------------
*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... |
/*
* Copyright 2018 Google, Inc.
*
* 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 conditions and the following disclaimer;
* ... |
#include "intrusive.h"
|
//===-- Serialization.cpp - Binary serialization of index data ------------===//
//
// 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
//
//===---------------------------... |
/*
* Copyright (C) 2010 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// 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... |
////////////////////////////////////////////////////////////////////////////
// Module : game_sv_base_script.cpp
// Created : 28.06.2004
// Modified : 28.06.2004
// Author : Dmitriy Iassenev
// Description : Base server game script export
/////////////////////////////////////////////////////////////////////... |
//
// Copyright 2012 Francisco Jerez
//
// 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... |
/*
* Copyright (c) 2008-2010
* Nakata, Maho
* All rights reserved.
*
* $Id: Rtrsna.cpp,v 1.5 2010/08/07 04:48:33 nakatamaho Exp $
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributi... |
//--------------------------------------------------------------------------------------------------
// 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
//
// ht... |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
// -*- C++ -*-
/**
* @file union_receiver_exec.cpp
* @author Marcel Smit
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
//@@{__RIDL_REGEN_MARKER__} - HEADER_END : union_receiver_impl.cpp[Header]
#include "union_receiver_exec.h"
//@@{__RIDL_REGEN_MARKER__} - BEGIN : Uni_Receiver_Impl[user_includes]
#i... |
/*
* 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 ... |
/*
* Copyright 2020 TierIV. 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 ... |
// 'AveragePool' implementation in Halide.
#include "common.h"
#include <Halide.h>
using Halide::Expr;
using Halide::Func;
using Halide::Generator;
using Halide::Var;
using Halide::BoundaryConditions::constant_exterior;
using Halide::ConciseCasts::u8_sat;
class AveragePool : public Generator<AveragePool> {
public:
... |
/*
* The MIT License
*
* Copyright 2016 annas.
*
* 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, m... |
/*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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 requir... |
#include <XEUI/UIPanel.hpp>
#include <XEUI/Widget.hpp>
#include <XEUI/UIManager.hpp>
#include <XERenderer/GUI/WLayer.hpp>
#include <XEUI/Desktop.hpp>
//#include <XEUI/widgets/Menu.hpp>
//#include <XEUI/widgets/Navigation.hpp>
//#include <XEUI/OgreConsoleForGorilla.h>
//#include <XEUI/Widgets/Button.hpp>
//#include <... |
#include "TcpServer.h"
//############################ SOCKET PROGRAMMING FUNCTIONS ###############################################//
/*#########################################################################################################*/
// Function to test the server setup by sending a sample data_packet
void t... |
#include <nano/crypto_lib/random_pool.hpp>
#include <nano/lib/utility.hpp>
#include <nano/node/lmdb/lmdb_iterator.hpp>
#include <nano/node/node.hpp>
#include <nano/node/wallet.hpp>
#include <nano/node/xorshift.hpp>
#include <boost/filesystem.hpp>
#include <boost/polymorphic_cast.hpp>
#include <future>
#include <argo... |
// MIT License
//
// Copyright (c) 2020, The Regents of the University of California,
// through Lawrence Berkeley National Laboratory (subject to receipt of any
// required approvals from the U.S. Dept. of Energy). All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy... |
/*
* a.cpp
* Copyright (C) 2021 Woshiluo Luo <woshiluo.luo@outlook.com>
*
* 「Two roads diverged in a wood,and I—
* I took the one less traveled by,
* And that has made all the difference.」
*
* Distributed under terms of the GNU AGPLv3+ license.
*/
#include <cstdio>
#include <cstdlib>
#include <cstring>
#incl... |
#include "PhysicsManager.h"
#include "../Physics/Colliders/BoxCollider.h"
physx::PxRigidDynamic* dynamicTest;
physx::PxPhysics* PhysicsManager::gPhysics = nullptr;
physx::PxScene* PhysicsManager::gScene = nullptr;
physx::PxMaterial* PhysicsManager::gMaterial = nullptr;
bool PhysicsManager::preUpdate = true;
bool Phy... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2021 Baldur Karlsson
*
* 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... |
/* Copyright (c) 2012, Achilleas Margaritis, modified by Jin Li
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 condit... |
#include <iostream>
using namespace std;
int main()
{
/*cin.tie(nullptr);
ios_base::sync_with_stdio(false);
double a, b;
cin >> a >> b;
a = powf(a, b);
cout << a << "\n";*/
return 0;
}
// solving in progress |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <pybind11/pybind11.h>
namespace py = pybind11;
void regclass_Parameter(py::module m);
|
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval
#include <vector>
#include <zisa/math/symmetric_choices.hpp>
#include <zisa/testing/testing_framework.hpp>
TEST_CASE("Symmetric choices", "[math]") {
std::vector<zisa::int_t> vi{3, 22, 1, 6};
auto choices = zisa::strict_symm... |
// Copyright 2020 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
//
#include <memory>
#include <vector>
#include <iostream>
#include "catch.hpp"
#include "herald/herald.h"
/**
* Implementation note: BLE Mac should ALWAYS be valid 6 bytes, even if data wrong
*/
TEST_CASE("ble-macaddress-basic", "[ble][maca... |
//威佐夫博奕
//wythoff_game.cpp
//A和B两人轮流从两堆物品中取出一些物品
//每次取至少1个物品,多则不限
//每次可以单独从其中一堆物品中取物品,也可以同时从两堆物品中取数量相同的物品
//最后一个将两堆物品取光的人获胜
//1)局势
//当A面临(0, 0)局势时,A已经输了,因为B已经把两堆物品取光,称(0, 0)是最终局势
//当A面临(1, 2)局势时,A也必然输了,A取后B必然能够一次把两堆物品取光
//当A面临(3, 5)局势时,A也必然输了,A取后B虽然存在无法一次就把两堆物品取光的情况
//比如A取后局势变为(3, 4),但B可以在两堆中同时取2个使局势变为(1, 2),A还是输了
//... |
/* $Id: feature_propagate.hpp 632623 2021-06-03 17:38:11Z ivanov $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Govern... |
//
// BoundaryConditionsData.hpp
// Elasticity
//
// Created by Wim van Rees on 5/4/16.
// Copyright © 2016 Wim van Rees. All rights reserved.
//
#ifndef BoundaryConditionsData_hpp
#define BoundaryConditionsData_hpp
#include "common.hpp"
#include "TopologyData.hpp"
struct BoundaryConditionsData
{
Eigen::Matr... |
//
// Created by Peter Bone on 15/06/2020.
//
#include <iostream>
#include "InputManager.h"
namespace Engine {
InputManager::InputManager() {
m_listener = nullptr;
m_sdlToInputManagerKeyMappings[SDLK_LEFT] = InputKey::Left;
m_sdlToInputManagerKeyMappings[SDLK_RIGHT] = InputKey::Right;
... |
$NetBSD: patch-src_lepton_jpgcoder.cc,v 1.1 2016/08/26 17:20:54 joerg Exp $
--- src/lepton/jpgcoder.cc.orig 2016-08-26 14:02:20.988180370 +0000
+++ src/lepton/jpgcoder.cc
@@ -4615,7 +4615,7 @@ int decode_ac_prg_fs( abitreader* huffr,
// check eobrun
if ( (*eobrun) > 0 ) {
for ( bpos = from; bpos <= ... |
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/foreach.hpp>
#include <iostream>
#include <sstream>
#include <string>
#include <libsocket/inetclientstream.hpp>
using namespace std;
void read_file(string filename, stringstream &buffer){
std::ifstream file(filen... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoingui.h"
#include "bitcoinunits.h"
#include "clientmodel.... |
/* Copyright (c) 2018-2020, Arm Limited and Contributors
* Copyright (c) 2020, Broadcom Inc.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 the "License";
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <assert.h>
#include <emmintrin.h>
#include <string.h>
#include <algorithm>
#include <random>
#include "fbpcf/mpc_framewo... |
#include "Pch.h"
#include "PostfxShader.h"
#include "DirectX.h"
#include "Engine.h"
#include "Render.h"
#include "RenderTarget.h"
#include "VertexDeclaration.h"
struct PsGlobals
{
Vec4 skill;
float power;
float time;
};
//============================================================================================... |
#include "messageManager.h"
void messageManager::sendPrivateMessage(Client* clientFrom, Client* clientToSend, std::string message)
{
SYSTEMTIME time;
GetLocalTime(&time);
std::string mkdir = "mkdir messagesDumper\\" + clientFrom->getNickName();
std::string writeFile = "echo \"" + std::to_string(time.wHour) + ':'... |
// Copyright (c) 2017-2019 The QuantisNet Core developers
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 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 "sigcache.h"
... |
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... |
/*
problem:
idea:
这道题有个冷却期,卖完不能立即买(卖完的后一条不能买)
这就导致和前面买卖股票的解法不同,寻找局部最小和局部最大的pair
也是参考了别人的解法,有的解法确实不对,就在那儿抄来抄去没什么意思
想了一阵儿才明白到底是什么意思,肯定要用动态规划啦
开辟两个数组,一个叫作 buy[i],另一个是 sell[i]
关键这两个数组代表什么意思,
buy[i]:第i天买股票,从第0天到第i天能赚到的最大收益
sell[i]:第i天卖股票,从第0天到第i天能赚到的最大收益
*/
class Solution {
public:
// solution one
int maxProfit_... |
//
// 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 <iostream>
#include <fstream>
#include "variable.h"
#include "struct.h"
#include "internal_functions.h"
#include "program.h"
#include "uniform.h"
class Phong : public GLSL::Shader
{
GLSL::Output<GLSL::Vec4> FragColor;
GLSL::Input<GLSL::Vec3> Normal;
GLSL::Input<GLSL::Vec3> FragPo... |
/*
* 4 DIMENSIONAL ARRAY
*/
#include <iostream>
using namespace std;
int main()
{
/*
* FOR 4D ARRAYS IAMGINE A 3D CUBE SOLVED IN TIME TAKEN AS FOURTH DIMENSIONAL
*/
int length; //LENGTH OF THE CUBE
int breadth; //BREADTH OF THE CUBE
int height; //HEIGHT OF THE CUBE
int tym; //HOW MANY ... |
// smtc_NavClassScope.cpp
//
#include "smtc_NavClassScope.h"
#ifndef LZZ_ENABLE_INLINE
#include "smtc_NavClassScope.inl"
#endif
// semantic
#include "smtc_ScopeVisitor.h"
#define LZZ_INLINE inline
namespace smtc
{
NavClassScope::NavClassScope (NavClassPtr const & nav_class)
: ClassScope (nav_class)
{}
}
name... |
/**
* Autogenerated by Thrift for src/module.thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#pragma once
#include "thrift/compiler/test/fixtures/basic-annotations/gen-cpp2/MyServicePrioChild.h"
#include <thrift/lib/cpp2/gen/service_tcc.h>
namespace cpp2 {
typedef ap... |
#include "Operator.h"
using namespace std;
namespace Terse {
int toOperator(const string& t, bool prevWasValue) {
if (t == "!") return Operator::Not;
if (t == "++") return prevWasValue ? Operator::IncrementPostfix : Operator::IncrementPrefix;
if (t == "--") return prevWasValue ? Operator:... |
/*
* Monster.cpp
*
* Created on: 14.11.2012
* Author: Denis Zagayevskiy
*/
#include "Monster.h"
void Monster::step(double elapsedTime){
if(remainingTime <= 0.0){
remainingTime = drand48()*maxRemainingTime;
newDirectionEvent();
}else{
int iX, iY;
float fCurrentXFloor = floorf(x);
... |
#include "CPE.hpp"
bool CPE::IsValidBlock(uint8_t type)
{
for (int i = BlockType::kStartOfBlockTypes; i < BlockType::kEndOfBlockTypes; ++i) {
if (type == i)
return true;
}
return false;
}
void CPE::SendExtInfo(Client* client, std::string appName, short extCount)
{
Packet* packet = new Packet(CPE:... |
/* Copyright 2016 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... |
#pragma once
#include "data_types.hpp"
#include <phosphor-logging/log.hpp>
#include <sdbusplus/bus.hpp>
#include <sdbusplus/bus/match.hpp>
#include <sdbusplus/exception.hpp>
#include <sdbusplus/message.hpp>
#include <string>
struct Loop;
namespace phosphor
{
namespace dbus
{
namespace monitoring
{
using namespace ... |
////////////////////////////////////////////////////////////////////////////////
// taskwarrior - a command line task list manager.
//
// Copyright 2006-2014, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated docume... |
#ifdef __AVR_ATmega162__
#pragma once
#include "snake.h"
#include "lib/utilities/eeprom.h"
#include <stdlib.h>
#include "../lib/utilities/eeprom.h"
// Code inspired by https://codereview.stackexchange.com/questions/66481/snake-game-in-c
// All functions have been changed, some have been removed and some added
void S... |
/*
* Copyright Andrey Semashev 2007 - 2015.
* 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)
*/
/*!
* \file threadsafe_queue.cpp
* \author Andrey Semashev
* \date 05.11.2010
*
* \br... |
/**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... |
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/base/bits.h"
#include "src/base/platform/wrappers.h"
#include "src/codegen/machine-type.h"
#include "src/compiler/backend/instruction-sele... |
#include <MTScheduler.h>
#include "Profiler.h"
#if defined(MT_INSTRUMENTED_BUILD) && defined(MT_ENABLE_BROFILER_SUPPORT)
#pragma comment( lib, "BrofilerCore.lib" )
#pragma comment( lib, "Advapi32.lib" )
const uint32 MAX_INSTRUMENTED_WORKERS = 8;
const char *g_WorkerNames[MAX_INSTRUMENTED_WORKERS] = {"wo... |
//
// Created by DefTruth on 2021/7/7.
//
#include "lite/lite.h"
static void test_default()
{
std::string onnx_path = "../../../hub/onnx/cv/focal-arcface-bh-ir50-asia.onnx";
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_focal_asia_arcface_0.png";
std::string test_img_path1 = "../../..... |
#include "global.h"
#include "ScreenClearBookkeepingData.h"
#include "ScreenManager.h"
#include "ThemeManager.h"
#include "Bookkeeper.h"
#define NEXT_SCREEN THEME->GetMetric(m_sName,"NextScreen")
ScreenClearBookkeepingData::ScreenClearBookkeepingData( const CString &sName ): Screen( sName )
{
BOOKKEEPER->ClearAll(... |
// System::Windows::Forms::DataGridTableStyle::LinkColor;
// System::Windows::Forms::DataGridTableStyle::HeaderFont;
// System::Windows::Forms::DataGridTableStyle::LinkColorChanged;
// System::Windows::Forms::DataGridTableStyle::HeaderFontChanged;
/* The following example demonstrates the properties 'LinkColor', ... |
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
version https://git-lfs.github.com/spec/v1
oid sha256:d5fcdcf0b2213d806211cc9fc2b547b0b80e2cb0a5eed3da63ad4a384cf5b3a3
size 3750
|
// Copyright © 2022 Brad Howes. All rights reserved.
#include <iostream>
#include "SF2Lib/Entity/Bag.hpp"
using namespace SF2::Entity;
void
Bag::dump(const std::string& indent, size_t index) const noexcept
{
std::cout << indent << '[' << index << "] genIndex: " << firstGeneratorIndex() << " count: " << generatorC... |
/*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/sksl/ir/SkSLConstructorScalarCast.h"
namespace SkSL {
static std::unique_ptr<Expression> cast_scalar_literal(const Type& constructorType,
... |
#pragma once
#include "../serializationnode.hpp"
#include "xmlserializationdocument.hpp"
#include <tinyxml2/tinyxml2.hpp>
namespace wgt
{
class XMLSerializationNode : public SerializationNode
{
typedef std::unique_ptr<SerializationNode> NodePtr;
friend NodePtr XMLSerializationDocument::findNode(const char*);
frie... |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A P... |
#include "PipelineObjPropDockWidget.h"
PipelineObjPropDockWidget::PipelineObjPropDockWidget(QWidget *parent) :
QDockWidget(parent)
{
this->setWindowTitle(tr("Pipeline properties"));
propWidget = new PipelineObjPropWidget;
setWidget(propWidget);
wid = 200;
hei = 400;
}
PipelineObjPropDockWidget::~... |
#include <bits/stdc++.h>
using namespace std;
void fl() {
#ifndef ONLINE_JUDGE
freopen("in.txt", "r", stdin);
// freopen("ot.txt", "w", stdout);
#else
// freopen("jumping.in", "r", stdin); // HERE
#endif
}
#define forr(i,j, n) for(int i = j;i < n;i++)
#define F first
#define S second
#define mem(a,b) memset(a,b,sizeof... |
// Generated from /POI/java/org/apache/poi/ss/formula/ParseNode.java
#include <org/apache/poi/ss/formula/ParseNode.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/ClassCastException.hpp>
#include <java/lang/IllegalArgumentException.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java... |
/*
* Copyright (c) 2019 SK Telecom Co., Ltd. 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 requir... |
// Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Erewhon Shared" project
// For conditions of distribution and use, see copyright notice in LICENSE
#include <Shared/BaseApplication.hpp>
#include <iostream>
namespace ewn
{
BaseApplication::~BaseApplication() = default;
bool BaseApplication::Run()
... |
// Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "AddressChecksum.h"
#include "../Hash.h"
#include... |
#pragma once
#include "search/model.hpp"
#include "search/pre_ranking_info.hpp"
#include "search/ranking_utils.hpp"
#include <array>
#include <cstddef>
#include <cstdint>
#include <ostream>
#include <string>
#include <utility>
class FeatureType;
namespace search
{
struct RankingInfo
{
static double const kMaxDist... |
// Copyright 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/instant/instant_loader.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
#include "chrome/browser/ex... |
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Gearmand client and server library.
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
// MultiSpec
//
// Copyright 1988-2020 Purdue Research Foundation
//
// 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.apach... |
#pragma once
#include "Core/Events/Event.hpp"
#include <sstream>
namespace Maxy
{
class MouseMovedEvent : public Event
{
public:
MouseMovedEvent(float x, float y)
: m_MouseX(x), m_MouseY(y) { }
inline float GetX() const { return m_MouseX; }
inline float GetY() const { ... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt... |
#include "stdhdr.h"
#include "otwdrive.h"
#include "simdrive.h"
#include "mfd.h"
#include "rwr.h"
#include "hud.h"
#include "Graphics/Include/render2d.h"
#include "Graphics/Include/renderow.h"
#include "cpmanager.h"
#include "aircrft.h"
#include "lantirn.h"
extern RECT VirtualMFD[OTWDriverClass::NumPopups + 1];
Viewpo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.