text stringlengths 5 1.04M |
|---|
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
#include "storage/delta_writer.h"
#include "runtime/current_thread.h"
#include "storage/memtable.h"
#include "storage/memtable_flush_executor.h"
#include "storage/rowset/rowset_factory.h"
#include "storage/schema.h"
#in... |
#include "tomato.h"
Tomato::Tomato()
{
}
int Tomato::Id() const
{
return mID;
}
void Tomato::setID(int iD)
{
mID = iD;
}
int Tomato::getTaskId() const
{
return mTaskId;
}
void Tomato::setTaskId(int taskId)
{
mTaskId = taskId;
}
ProcessStates Tomato::processState() const
{
return mProcessStat... |
/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
th_rewriter.h
Abstract:
Rewriter for applying all builtin (cheap) theory rewrite rules.
Author:
Leonardo (leonardo) 2011-04-07
Notes:
--*/
#include"th_rewriter.h"
#include"rewriter_params.hpp"
#include"bool_rewriter.h"
#include"arith_rewrite... |
// Copyright (c) 2018, Ryo Currency Project
// Portions copyright (c) 2014-2018, The Monero Project
//
// Portions of this file are available under BSD-3 license. Please see ORIGINAL-LICENSE for details
// All rights reserved.
//
// Ryo changes to this code are in public domain. Please note, other licences may apply to... |
#include "downloadmanager.h"
#include <QApplication>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QFile>
#include <QDir>
#include <QDateTime>
DownloadManager::DownloadManager(QObject* parent) :
QObject(parent)
{
connect(&m_manager, &QNetworkAccessManager::finished, this, &DownloadManager::OnR... |
// Copyright 2018 The Darwin Neuroevolution Framework 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 ... |
#include <bits/stdc++.h>
#include <sstream>
#define pb push_back
#define mp make_pair
#define pii pair<int,int>
#define vi vector<int>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
const ll MOD = 1000000007;
const int dx[4] = {1, -1, 0, 0};
const int dy[4] = {0, ... |
/*
* Copyright (C) 2018 ETH Zurich and University of Bologna
*
* 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... |
//===--- SILPrinter.cpp - Pretty-printing of SIL Code ---------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#ifndef CaseNode_hpp
#define CaseNode_hpp
#include <vector>
#include "../../exceptions/ExpressionException.hpp"
#include "../../exceptions/PugCompilerException.hpp"
#include "../../expression/IExpressionHandler.hpp"
#include "../../model/PugModel.hpp"
#include "../../template/PugTemplate.hpp"
#include "CaseCondition... |
#include "StdAfx.h"
#include "Spammer.h"
#include "Player.h"
#include "Projectile.h"
#include "PlayerVisTable.h"
#include <IVehicleSystem.h>
#include <IViewSystem.h>
#include "GameActions.h"
namespace
{
struct SpammerTarget
{
SpammerTarget(const EntityId _targetId, const float _radius)
: targetId(_targetId)
... |
// Copyright (c) 2011-2014 The Bitcoin developers
// 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.
#include "transactionrecord.h"
... |
/****************************************************************************/
/* Copyright 2005-2006, Francis Russell */
/* */
/* Licensed under the Apache License, Version 2.0 (the License); */
/* y... |
/* $Id: VBoxUsbMon.cpp $ */
/** @file
* VBox USB Monitor
*/
/*
* Copyright (C) 2011-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the ... |
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "albatroscoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
... |
#include "include/firebase_core_desktop/firebase_core_desktop_plugin.h"
#include <flutter_linux/flutter_linux.h>
#include <gtk/gtk.h>
#include <sys/utsname.h>
#include <cstring>
#define FIREBASE_CORE_DESKTOP_PLUGIN(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), firebase_core_desktop_plugin_get_type(), \
... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrSoftwarePathRenderer.h"
#include "GrAuditTrail.h"
#include "GrClip.h"
#include "GrContextPriv.h"
#include "GrDeferredProxyUploader.h"
#include "GrGpuResourcePriv.h... |
//===- Local.cpp - Compute a local data structure graph for a function ----===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------... |
/* \file
* See header file for a description of this class.
*
* \author N. Amapane - INFN Torino
*/
#include "bSlab.h"
#include "MagneticField/VolumeGeometry/interface/MagVolume6Faces.h"
#include "MagneticField/Layers/interface/MagBSlab.h"
#include "MagneticField/Layers/interface/MagVerbosity.h"
#include "Utili... |
// Copyright (c) 2001, Daniel C. Nuffer
// Copyright (c) 2001-2010 Hartmut Kaiser
// http://spirit.sourceforge.net/
//
// 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)
#if !defined(BOOST_SPIRIT_ITERATOR_MULTI_... |
/*
* Copyright (C) 2018 Intel Corporation.All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file IasMixerCmdInterface.cpp
* @date August 2016
* @brief implementation of the mixer command interface
*/
#include <cstdio>
#include <cmath>
#include "mixer/IasMixerCmdInterface.hpp"
#include "a... |
// Environment_UNIX.cpp
//
// $Id: //poco/1.4/Foundation/src/Environment_UNIX.cpp#2 $
//
// Library: Foundation
// Package: Core
// Module: Environment
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to ... |
//===- OpDocGen.cpp - MLIR operation documentation generator --------------===//
//
// 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
#ifndef __CONVERTER_CLI_HPP__
#define __CONVERTER_CLI_HPP__
#pragma managed
#include <msclr\marshal_cppstd.h>
#include <vcclr.h>
#pragma unmanaged
#include <string>
#pragma managed
namespace ess::clr {
using set_operand = System::Collections::Generic::List<System::String^>^;
/**
* Data types convert... |
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Heiko Strathmann, Thoralf Klein, Bjoern Esser
*/
#include <gtest/gtest.h>
#include <shogun/mathematics/Statistics.h>
#include <shogun/features/streaming/generators/GaussianBlobsDataGenerator.h>
#include <shogun/features/s... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright 2020- The GROMACS Authors
* and the project initiators Erik Lindahl, Berk Hess and David van der Spoel.
* Consult the AUTHORS/COPYING files and https://www.gromacs.org for details.
*
* GROMACS is free software; you can redistribute... |
//
// Created by truefinch on 11.07.18.
//
#include "Fireball.h"
enums::CollideResult Fireball::collide(actor::Actor& other) {
enums::ActorID other_id = other.getID();
if (other_id == enums::DRAGON_ID) {
return enums::PICK;
} else if ((other_id == enums::WALL_ID) or (other_id == enums::PRINCESS_ID)) {
r... |
/*=========================================================================
*
* 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... |
/* --------------------------------------------------------------- */
/* JustTesting --------------------------------------------------- */
/* --------------------------------------------------------------- */
static void JustTesting(vector<Point> ap, vector<double> av, vector<Point> bp, vector<double> bv, FILE *of)... |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include "shared_test_classes/single_layer/activation.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace ngraph::helpers;
namespace {
TEST_P(ActivationLayerTest,... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015-2017 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 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/fidl/llcpp/message.h>
#include <lib/zx/event.h>
#include <gtest/gtest.h>
TEST(OutgoingToIncomingMessage, ByteMessage) {
uint8_t bytes[3] ... |
/*
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
* Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
* Distributed under the terms of the MIT License.
*/
#include <package/hpkg/BlockBufferPoolNoLock.h>
namespace BPackageKit {
namespace BHPKG {
BBlockBufferPoolNoLock::BBlockBufferPoolNoLock(size_t... |
/*
* 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 (c) 2020-2021, STMicroelectronics
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You... |
/*******************************************************************************
* Copyright 2020-2021 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... |
// 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... |
#include "XelaSocket.h"
#include <string.h>
#if defined(__linux__)
void XelaSocket::write_platformTCP(XelaSocket *s, char *msg, int msgLen) {
int n = send(s->sockfd, msg, msgLen, 0);
if (n >= 0) {
#if XELANETWORK_DEBUG_SOCKET
std::cout << "[XelaSocket] Sent message: " << msg << std::endl;
... |
#include <algorithm>
#include "ArenaLevelUtils.h"
#include "ArenaVoxelUtils.h"
#include "VoxelDefinition.h"
#include "../Assets/ExeData.h"
#include "../Assets/MIFUtils.h"
#include "../Assets/RMDFile.h"
#include "../Math/Random.h"
#include "components/debug/Debug.h"
#include "components/utilities/Bytes.h"
#include "co... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2017 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... |
//+----------------------------------------------------------------------------
//
// File: cmcfg.cpp
//
// Module: CMCFG32.DLL
//
// Synopsis: This DLL contains the call CMConfig that transfers information from
// a connectoid created by Connection Wizard to a Connection Manager
// pr... |
//===- unittests/Basic/LaneBasedExecutionQueueTest.cpp --------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
#include "ControlMap.h"
using hand = frc::XboxController::JoystickHand; // Only for FRC controllers
// using namespace wml
using namespace wml;
using namespace wml::controllers;
void ControlMap::InitSmartControllerGroup(SmartControllerGroup &contGroup) {
contGroup.GetController(ControlMap::TurretAutoAimAxis.cont).... |
/*
MIT License
Copyright (c) 2017 Arlen Keshabyan (arlen.albert@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use,... |
/*
* npr_demo.cpp
*
* Author:
* Siddharth Kherada <siddharthkherada27[at]gmail[dot]com>
*
* This tutorial demonstrates how to use OpenCV Non-Photorealistic Rendering Module.
* 1) Edge Preserve Smoothing
* -> Using Normalized convolution Filter
* -> Using Recursive Filter
* 2) Detail Enhancement
* 3) Pencil sketch... |
#ifndef OCCA_LANG_PARSER_ATTRIBUTELOADER_HEADER
#define OCCA_LANG_PARSER_ATTRIBUTELOADER_HEADER
#include <occa/lang/attribute.hpp>
#include <occa/lang/tokenContext.hpp>
#include <occa/lang/variable.hpp>
namespace occa {
namespace lang {
class keywords_t;
class statementContext_t;
class tokenContext_t;
... |
// Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
/*
* Copyright (c) 2017, Intel Corporation
*
* 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, ... |
//---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of th... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2020 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... |
/**
* @file object_proxy.cpp
* @brief Registration mechanism for object that need to be readable / writable
* into file
* @ingroup io
*
* @author Christophe Ecabert
* @date 24.09.17
* Copyright © 2017 Christophe Ecabert. All rights reserved.
*/
#include "facekit/io/object_proxy.hpp"
#include... |
#include "quantities/Attractor.h"
#include "catch.hpp"
#include "gravity/BarnesHut.h"
#include "gravity/BruteForceGravity.h"
#include "gravity/CachedGravity.h"
#include "gravity/Moments.h"
#include "quantities/Quantity.h"
#include "quantities/Storage.h"
#include "sph/initial/Distribution.h"
#include "tests/Approx.h"
#i... |
#include <chrono>
#include <cstdint>
#include <functional>
#include <string>
#include "envoy/config/core/v3/base.pb.h"
#include "envoy/extensions/transport_sockets/tls/v3/cert.pb.h"
#include "envoy/extensions/upstreams/http/generic/v3/generic_connection_pool.pb.h"
#include "envoy/extensions/upstreams/http/http/v3/http... |
#include "HResultException.h"
#include <sstream>
HResultException::HResultException(HRESULT hr)
: std::runtime_error("HResultException"), hr(hr)
{
}
HRESULT HResultException::GetHRESULT() const {
return this->hr;
} |
#include "software/ai/hl/stp/play/enemy_freekick_play.h"
#include "shared/constants.h"
#include "software/ai/hl/stp/evaluation/enemy_threat.h"
#include "software/ai/hl/stp/play/play_factory.h"
#include "software/ai/hl/stp/tactic/block_shot_path_tactic.h"
#include "software/ai/hl/stp/tactic/crease_defender_tactic.h"
#i... |
#include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
int main(void)
{
vector<pair<int, int> > jewels;
vector<int> bags;
priority_queue<int> pq;
int n, k;
long long sum = 0;
cin >> n >> k;
for (int i = 0, cost, weight; i < n; i++)
{
cin >> weight >> cost;
jewels.pu... |
/*================================================================
* Copyright (C)2020 All rights reserved.
* FileName : LifeGameWindowOne.cc
* Author : elonkou
* Email : elonkou@ktime.cc
* Date : 2020年03月21日 星期六 09时43分54秒
================================================================*/
#include "LifeG... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: RootMotion.FinalIK.RagdollUtility
#include "RootMotion/FinalIK/Ragdoll... |
/************************************************************************
Copyright 2018 andrewpqc@mails.ccnu.edu.cn
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/licens... |
// Copyright (c) 2018-2020, The TurtleCoin Developers // Copyright (c) 2020, TRRXITTE inc.
//
// Please see the included LICENSE file for more information.
///////////////////////////////////////////
#include <zedwallet++/TransactionMonitor.h>
///////////////////////////////////////////
#include <iostream>
#include <... |
// (C) Copyright 2009-2011 Frederic Bron.
// 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)
#ifdef TEST_STD
# include <type_traits>
#else
# include <boost/type_traits/has_righ... |
#include <stdio.h>
#include <testComponent272/lib1.h>
int testComponent272_6 () {
printf("Hello world!\n");
return 0;
}
|
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "value_compare.h"
#include <vespa/eval/eval/tensor.h>
#include <vespa/eval/eval/tensor_engine.h>
#include <vespa/eval/eval/value_codec.h>
namespace vespalib::eval {
bool operator==(const Value &l... |
// #55 Zip アルゴリズム
// Python の zip() を実装しろという問題だ。
#include <iostream>
#include <vector>
// 区間バージョン
template <typename Input1, typename Input2, typename Output>
void zip(
Input1 begin1, Input1 end1,
Input2 begin2, Input2 end2,
Output result)
{
while (begin1 != end1 && begin2 != end2)
{
result++ = st... |
/***************************************************************************
* Copyright 1998-2020 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core 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/bitcoin-config.h"
#endif
#include "c... |
#pragma once
#include "../../../JObject.hpp"
namespace android::hardware::lights
{
class Light;
}
namespace android::hardware::lights
{
class LightState;
}
namespace android::hardware::lights
{
class LightsRequest;
}
namespace android::hardware::lights
{
class LightsRequest_Builder : public JObject
{
public:
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__wchar_t_connect_socket_w32CreateFile_53b.cpp
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-53b.tmpl.cpp
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: connect_socket ... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2019 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
#include <cstdio>
int main(){
const int N = 8;
bool array[N][N] = {0};
char temp;
for(int row = 0; row < N; row++){
for(int col = 0; col < N; col++){
scanf("%c", &temp); if(temp == 'B'){array[row][col] = 1;}
}
scanf("\n");
}
int total(2 * N);
for(int r... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fuchsia/sys/cpp/fidl.h>
#include <lib/sys/cpp/file_descriptor.h>
#include <lib/sys/cpp/testing/test_with_environment_fixture.h>
#include <lib/sys... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "MarkerMeshActor.h"
#include "ConstructorHelpers.h"
#include "Components/StaticMeshComponent.h"
AMarkerMeshActor::AMarkerMeshActor()
{
PrimaryActorTick.bCanEverTick = false;
PrimaryActorTick.bStartWithTickEnabled = false;
Mesh... |
// -*- C++ -*-
//
// Package: DTTFMasksOnlineProd
// Class: DTTFMasksOnlineProd
//
/**\class DTTFMasksOnlineProd DTTFMasksOnlineProd.h L1TriggerConfig/DTTrackFinder/src/DTTFMasksOnlineProd.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: J. ... |
/*
* ADC Read
* Basic example of using ADC with Arduino
*/
#include <Arduino.h>
#define ADC_RESOLUTION 1024 // ADC is 10 bit resolution
#define SYSTEM_VOLTAGE 5.1 // in volts
#define ADC_PORT A0 // port on which our circuit is connected
int adc_value_reading = 0;
float adc_voltage = 0.0;
int loop_delay... |
/* Unicamp - Universidade Estadual de Campinas
FT - Faculdade de Tecnologia
Limeira - SP
Prof. Dr. Andre F. de Angelis
Maio/2015
*/
#include <string>
#include "a02ex03_b.hpp"
#include "a02ex03_j.hpp"
using namespace std;
Liquid::Liquid(float volume, double valor) : Food(valor)
{
this->volume = volu... |
/** \file mri_core_kspace_filter.cpp
\brief Implementation kspace filter functionalities for 2D and 3D MRI parallel imaging
\author Hui Xue
*/
#include "mri_core_kspace_filter.h"
#include "hoNDArray_elemwise.h"
#include <boost/algorithm/string.hpp>
#ifdef M_PI
#undef M_PI
#endif // M_PI
#define M_PI 3... |
//
// This is example code from Chapter 17.3.1 "The sizeof operator" of
// "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup
//
#include <iostream>
#include <vector>
using namespace std;
//------------------------------------------------------------------------------
int main()
{
cout <<... |
#include "execution/ast/type.h"
#include <unordered_map>
#include <utility>
#include "brain/operating_unit.h"
#include "execution/exec/execution_context.h"
#include "execution/sql/aggregation_hash_table.h"
#include "execution/sql/aggregators.h"
#include "execution/sql/filter_manager.h"
#include "execution/sql/hash_ta... |
// 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) 2018 The PYMT developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://w... |
/*
* Action.hpp
* Copyright (c) 2014 Eran Pe'er.
*
* This program is made available under the terms of the MIT License.
*
* Created on Jun 5, 2014
*/
#pragma once
#include <functional>
#include <atomic>
#include <tuple>
#include "mockutils/DefaultValue.hpp"
#include "mockutils/Destructible.hpp"
#include "fake... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
//-----------------------------------------------------------------------------
// Project : SDK Core
//
// Category : SDK Core Interfaces
// Filename : pluginterfaces/base/funknown.cpp
// Created by : Steinberg, 01/2004
// Description : Basic Interface
//
//--------------------------------------------------... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* 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.
*/
#include <pybind11/pybind11.h>
#include "libraries/criterion/cpu/ForceAlignmentCriterion.h"
#includ... |
/**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <bits/stdc++.h>
using namespace std;
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define sz(v) ((int) (v).size())
#define all(v) (v).begin(), (v).end()
#define ms(x... |
//===- FuzzerShmemWindows.cpp - Posix shared memory -------------*- C++ -* ===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------... |
/***
Copyright 2012 Devsim 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 writing, software
di... |
// MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "../../core/elements/OrnamentsChoice.h"
#include "../../core/FromXElement.h"
#include "../../core/elements/DelayedInvertedTurn.h"
#include "../../core/elements/DelayedTurn.h"
#include "../../core/elements/I... |
// RUN: %clang_cc1 -no-opaque-pointers -triple i386-unknown-unknown -std=c++11 -fvisibility-inlines-hidden -emit-llvm -o - %s -O2 -disable-llvm-passes | FileCheck %s
// The trickery with optimization in the run line is to get IR
// generation to emit available_externally function bodies, but not
// actually inline the... |
#include <iostream>
using namespace std;
int main()
{
double t;
char s;
cin >> t >> s;
switch(s)
{
case 'K':
t -= 273.15;
// Fallthrough
case 'C':
t *= 1.8;
t += 32;
// Fallthrough
case 'F':
cout.precision(2);
cout << fixed << t << endl;
break;
... |
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "ApplicationBellSettings.hpp"
#include "presenter/alarm_settings/AlarmSettingsPresenter.hpp"
#include <apps-common/windows/AppWindow.hpp>
namespace gui
{
c... |
// Copyright (c) 2015-2016 Hypha
#include "hyphahandlers/alarm/alarm.h"
#include <chrono>
#include <sstream>
#include <string>
#include <thread>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <Poco/ClassLibrary.h>
#include <hypha/core/database/database.h>
#include <... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*============================================================================
**
** Source: test1.c
**
** Purpose:
** Tests that wcsncmp case-sensitively compares wide strings, ma... |
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* oddEvenList(ListNode* head) {
if(!head or !head->next) return head;
ListNode *odd = head, *... |
// 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 "content/common/gpu/client/gl_helper_scaling.h"
#include <deque>
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/... |
#pragma once
#include <ice/math/types.hxx>
namespace ice::math
{
static constexpr f32 const_pi = 3.14159265358979323846;
} // namespace ice::math
|
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.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 a... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 Filip Wasil and Fillwave community members
*
* 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 li... |
// Copyright 2012 Cloudera Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... |
#include <vector>
class UnionFind {
public:
UnionFind(int n) {
parent_.resize(n);
size_.resive(n);
for(auto i = 0; i < n; ++i) {
parent[i] = i;
}
count_ = n;
}
/* 将 p 和 q 连通 */
void union(int p, int q) {
auto pRoot = find(p);
auto qRoot = find(q);
if (pRoot == qRoot) {
... |
/*
Copyright 2012-2019 Ronald Römer
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 writing, softwa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.