text stringlengths 7 961k |
|---|
/*
* (c) FFRI Security, Inc., 2021 / Author: FFRI Security, Inc.
*/
#include "pch.h"
#include "pe_utils.h"
#include "utils.h"
PIMAGE_LOAD_CONFIG_DIRECTORY GetLoadConfigDirectory(
uint64_t imageBase) {
uint32_t rva = GetImageDataDirectoryEntryRva(
imageBase, IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG);
return (PIMAGE_LO... |
/**
* @author Alessandro Bianco
*/
/**
* @addtogroup DFNsTest
* @{
*/
#include <catch.hpp>
#include <PointCloudFiltering/StatisticalOutlierRemoval.hpp>
using namespace CDFF::DFN::PointCloudFiltering;
using namespace PointCloudWrapper;
using namespace PoseWrapper;
namespace StatisticalOutlierRemovalTest
{
void ... |
// Generated by Haxe 4.0.0-rc.2+77068e10c
#include <hxcpp.h>
#ifndef INCLUDED_Reflect
#include <Reflect.h>
#endif
#ifndef INCLUDED_lime_app__Event_lime_ui_GamepadButton_Void
#include <lime/app/_Event_lime_ui_GamepadButton_Void.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_b2bdd2074bcac861_41_new,"lime.app._Event_lime_ui_Ga... |
////////////////////////////////////////////////////////////////////////////////
//
/// Vookoo high level C++ Vulkan interface.
//
/// (C) Andy Thomason 2017 MIT License
//
/// This is a utility set alongside the vkcpp C++ interface to Vulkan which makes
/// constructing Vulkan pipelines and resources very easy for beg... |
#include "AOC_Precompiled.h"
static uint locPart1(char const* aFile)
{
uint result = 0;
// By line with parse function
auto items = GC_File::Parse<int>(aFile, [](auto aLine, auto& anItem)
{
anItem = GC_Atoi(aLine);
return true;
});
for (auto item : items)
{
(void)item;
}
// By line parsing
for (a... |
/*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <fo... |
#include "RecoEgamma/EgammaPhotonAlgos/interface/PhotonEnergyCorrector.h"
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterFunctionFactory.h"
#include "Geometry/Records/interface/CaloGeometryRecord.h"
#include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h"
#include "Geometry/CaloTopology/interface/C... |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#include "ofApp.h"
#include "ofMain.h"
//========================================================================
int main() {
ofSetupOpenGL(768, 1024, OF_WINDOW); // <-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and heigh... |
// -*- C++ -*-
//
// $Id: Msg_WFMO_Reactor.inl 80826 2008-03-04 14:51:23Z wotte $
#if defined (ACE_WIN32) && !defined (ACE_LACKS_MSG_WFMO)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE int
ACE_Msg_WFMO_Reactor::handle_events (ACE_Time_Value &how_long)
{
return this->event_handling (&how_long, 0);
}
ACE_INLINE int... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 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 "irc.h"
#include "db.h"
#include "net.h"
#include "init.h"
#include "addr... |
/*
* Copyright 2011 Christoph Bumiller
*
* 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, publ... |
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
// (C) Copyright 2003-2007 Jonathan Turkanis
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
// See http://www.boost.org/libs/iostreams for docume... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2008 Paul Farrington
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and... |
/// @file
/// @author David Pilger <dpilger26@gmail.com>
/// [GitHub Repository](https://github.com/dpilger26/NumCpp)
/// @version 1.3
///
/// @section License
/// Copyright 2020 David Pilger
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy of this
/// software and associated documen... |
#define BOOST_TEST_MODULE "test_read_excluded_volume_potential"
#ifdef BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#else
#include <boost/test/included/unit_test.hpp>
#endif
#include <mjolnir/input/read_global_potential.hpp>
#include <mjolnir/core/SimulatorTraits.hpp>
#include <mjolnir/core/BoundaryConditi... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2013 Couchbase, 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
*
* ... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
#ifndef CSLIBS_NDT_MATCHING_CERES_SCAN_MATCH_COST_FUNCTOR_3D_RPY_HPP
#define CSLIBS_NDT_MATCHING_CERES_SCAN_MATCH_COST_FUNCTOR_3D_RPY_HPP
#include <cslibs_ndt/matching/ceres/map/scan_match_cost_functor_creator.hpp>
#include <cslibs_ndt/matching/ceres/map/scan_match_cost_functor.hpp>
#include <cslibs_math_3d/linear/po... |
#include "bench.h"
#include <contrib/libs/re2/re2/re2.h>
#include <library/cpp/colorizer/output.h>
#include <library/getopt/small/last_getopt.h>
#include <library/json/json_value.h>
#include <library/linear_regression/linear_regression.h>
#include <library/threading/poor_man_openmp/thread_helper.h>
#include <util/sy... |
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Begin forward d... |
#include "MainConstants.h"
#include "SceneGame.h"
#include "LangMgr.h"
#include "Debug.h"
#include <iostream>
SceneGame::SceneGame()
{
// Инициализируем языковой модуль
lang_mgr = LangMgr::Init();
// Выставляем количество жизней
lives = 3;
lives_caption = lang_mgr->getPhrase("scene_lives") + ": "... |
#include <iostream>
#include <map>
#include <vector>
#include <algorithm>
#include <sstream>
using namespace std;
template<typename K, typename V>
class Repository{
map<K, V> rep;
string _typename;
public:
Repository(string _typename = ""){
this->_typename = _typename;
}
void add(K k, V v){... |
/*************************************************************************/
/* timer.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include <csignal>
#include "fmt/format.h"
#include "utils.hpp"
#include "vm.hpp"
auto main(int argc, const char* argv[]) -> int {
// image-file must be passed as argument.
if (argc < 2) {
fmt::print(stderr, "{}\n", "Error! Usage: vm.exe [image-file] ...");
return -1;
}
auto vm = vm::Virtual_Machine(... |
//--------------------------------------------------------------
// Timer.cpp
// Pinball
// Created by David Haylock on 14/01/2018.
//! Pinball.
/** This is a Timer Object. */
//--------------------------------------------------------------
#include "Timer.h"
//-----------------------------------------------------... |
/*
* Copyright © 2018 Google, Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above copy... |
/* Copyright (c) 2010-present 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 without restriction, including without limitation the rights
to use, copy, modify, me... |
/** \file interrupt_link.cpp
* \brief Interrupt handler callback implementation.
*
* The functions in this file link wraps the methods of the module class in C friendly callbacks.
* If I recall, this was necessary because the interrupt handler functions called from the system NVIC needed to be defined in C code.
*... |
#pragma once
#include "../Graphics/ColorStructs.hpp"
namespace ln {
struct Vertex
{
static const Vertex Default;
Vector4 position;
Vector4 normal;
Vector4 uv;
Color color;
Vector4 tangent; // 接線ベクトル, 従法線の符号
Vertex()
: position(0.0f, 0.0f, 0.0f, 1.0f)
, normal(0.0f, 0.0f, 1.0f, 0.0f)
, uv(0.0f, 1.0... |
// Copyright 2017 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/arguments-inl.h"
#include "src/counters.h"
#include "src/objects-inl.h"
#include "src/objects/bigint.h"
#include "src/runtime/runtime-util... |
// -*- C++ -*- Copyright (c) Microsoft Corporation; see license.txt
#include "Spatial.h"
namespace hh {
// Given 10000 random data points uniformly sampled over the unit cube,
// find the closest 10 neighbors:
// spatialtest -gn ? -pn 10000
// average time
// ? 10000 1000
// 1 1.1745 ... |
#include "databaseadminitemedit.h"
#include "ui_databaseadminitemedit.h"
#include <QSpinBox>
#include <QCheckBox>
#include <QDateTimeEdit>
#include <QLineEdit>
DatabaseAdminItemEdit::DatabaseAdminItemEdit(QWidget *parent) :
QDialog(parent),
ui(new Ui::DatabaseAdminItemEdit)
{
ui->setupUi(this);
}
void D... |
// We check that the Finalizer is run using FileCheck, and that the expected
// files are generated by deleting them (leaving things tidy)
// RUN: %cmc -mCM_printfargs -mdump_asm -Qxcm_jit_target=skl /Qxcm_asm_output=asm_output_slash %w 2>&1 \
// RUN: | FileCheck %w
// RUN: rm %W.isa asm_output_slash_0.visaasm asm_... |
// Copyright (c) 2015-2020 by the parties listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by
// a BSD-style license that can be found in the LICENSE file.
#include <toast_test.hpp>
#include <cmath>
#include <limits>
void TOASTqarrayTest::SetUp() {
q1 = {0.50487417, 0.6... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2020 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 <txmempool.h>
#include <consensus/consensus.h>
#include <consensus/tx_v... |
/*
* 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 Evgeny Sidorov 2020
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
/****************************************************************************/
/** @file validator/validate.hpp
*
* Defines validate() help... |
#include "gpuerrorlog.hpp"
#include <mutex>
#include <signal.h>
#include <windowregistry.hpp>
REGISTER_WINDOW_CLASS(GpuErrorLog, Menu::Tools, "gpu-error-log", "OpenGL Log")
struct logentry
{
GLenum source;
GLenum type;
GLuint id;
GLenum severity;
std::string message;
};
static std::mutex mutex;
static std::vect... |
#pragma once
#include <string>
#include <memory>
#define GLFW_INCLUDE_GLU
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/noise.hpp>
#include "MACGrid.hpp"
#include "Camera.hpp"
class Volume
{
public:
Volume(std::shared_ptr<MACGrid> grid... |
// Copyright (C) 2011 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#include "metadata_editor.h"
#include <dlib/array.h>
#include <dlib/queue.h>
#include <dlib/static_set.h>
#include <dlib/misc_api.h>
#include <dlib/image_io.h>
#include <dlib/array2d.h>
#inc... |
// Copyright (c) 2011-2016 The Cryptonote developers
// Copyright (c) 2014-2017 XDN-project developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
static void
#if defined(AESNI)
cn_slow_hash_aesni
#else
cn_slow_hash_noae... |
// Copyright 2015 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 <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
#include <GLES3/gl3.h>
#include "base/strings/string_split.h"
#include... |
// 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 "Bitcoin/OutPoint.h"
#include "Bitcoin/Script.h"
#... |
#include <MBE/Core/PixelMask.h>
using namespace mbe;
PixelMask::PixelMask(const sf::Texture & texture) :
pixelMaskSize(texture.getSize())
{
this->CreateMaskFromTexture(texture);
}
PixelMask::PixelMask(const sf::Sprite & sprite) :
pixelMaskSize(sprite.getTexture()->getSize())
{
this->CreateMaskFromTexture(*sprite... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2018-2018 The Essence Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sendcoin... |
//===-- Args.cpp ----------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include "CalLikelihoodTool.h"
#include "GaudiKernel/GaudiException.h"
#include "src/Utilities/CalException.h"
/**
* @class CalLastLayerLikelihoodTool
*
* Algorithm for correction of energy leak through the bottom of the CAL using
* the correlation between that vallue and the energy deposit in the last layer.
*
*... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... |
//===--- Generics.cpp ---- Utilities for transforming generics ------------===//
//
// 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... |
#include <iostream>
using namespace std;
class Rectangle {
int width, height;
public:
void set_values (int, int);
int area() {return width * height;}
};
void Rectangle::set_values (int x, int y){
width = x;
height = y;
}
int main(){
Rectangle rect, rectb;
rect.set_values(3, 4);
rectb.set_valu... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//*****************************************************************************
// File: frameinfo.cpp
//
//
// Code... |
/*---------------------------------------------------------------------------*\
Copyright (C) 2016 Applied CCM
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
under the ter... |
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#include <QTextDocument> // For Qt::escape
#include <QAbstractItemView>
#include <QAppli... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
//=================================================================================================
/*!
// \file src/mathtest/dmatsmatadd/UDaHCb.cpp
// \brief Source file for the UDaHCb dense matrix/sparse matrix addition math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This file ... |
/*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... |
//===- LoopUtils.cpp ---- Misc utilities for loop transformation ----------===//
//
// Copyright 2019 The MLIR 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.... |
/*
Q Light Controller
vcxypadfixtureeditor_test.cpp
Copyright (C) Heikki Junnila
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.txt
... |
/*=============================================================================
Copyright (c) 2017 Paul Fultz II
static.cpp
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)
=================================... |
// prettycalc.cpp : Файл представлен исключительно в ознакомительных
// целях и не является самостоятельной единицей.
#include "stdafx.h"
int main()
{
int array[5][2]; // только пять первых строк или меньше
std::cout << "Pretty Calc" << std::endl;
int n = 5;
for (int i = 0; i < n; i++)
{
std::cin >> array[i][0... |
#include <iostream>
#include <some/TestClass2.hpp>
some::TestClass2::TestClass2()
{
std::cout << "TestClass2 constructor" << std::endl;
}
some::TestClass2::~TestClass2()
{
std::cout << "TestClass2 destructor" << std::endl;
} |
/**
* @file IVectorWriter.hpp
* @brief Interface for writing out vectors.
* @author Dominique LaSalle <wildriver@domnet.org>
* Copyright 2015-2016
* @version 1
* @date 2016-02-07
*/
#ifndef WILDRIVER_IVECTORWRITER_HPP
#define WILDRIVER_IVECTORWRITER_HPP
#include <vector>
#include "base.h"
namespace ... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2015 VMware, Inc. or its affiliates.
//
// @filename:
// CDMLTest.cpp
//
// @doc:
// Test for optimizing DML queries
//---------------------------------------------------------------------------
#incl... |
// 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 "src/developer/debug/zxdb/expr/parse_string.h"
#include <ctype.h>
#include <stdlib.h>
#include "src/lib/fxl/logging.h"
namespace zxdb {
namesp... |
// dllmain.cpp : Implementation of DllMain.
#include "stdafx.h"
#include "resource.h"
#include "wptbho_i.h"
#include "dllmain.h"
#include "xdlldata.h"
CwptbhoModule _AtlModule;
HINSTANCE dll_hinstance = NULL;
// DLL Entry Point
extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
... |
// Copyright (c) 2019-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the license found in the
// LICENSE file in the root directory of this source tree.
//
#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <fstream>
#include <iomanip>
#include... |
// Copyright (c) 2009-2012 The Bitcoin 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 "activemasternode.h"
#include "db.h"
#include "init.h"
#include "main.... |
/**
* Copyright (c) 2017-present, Facebook, 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 ... |
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/log.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
const char* propIntf = "org.freedesktop.DBus.Properties";
const char* mapperBusName = "xyz.openbmc_project.ObjectMapper";
const char* mapperPath = "/xyz/openbmc_project/object_mapper";
const ... |
// Copyright (c) 2014-2017 The GermanCC Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "core_io.h"
#include "governance.h"
#include "governance-classes.h"
#include "governance-object.h"
#include "go... |
#include "extensions/transport_sockets/tls/context_impl.h"
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
#include "envoy/admin/v3/certs.pb.h"
#include "envoy/common/exception.h"
#include "envoy/common/platform.h"
#include "envoy/ssl/ssl_socket_extended_info.h"
#include "envoy/stats/scope.... |
// Fizzy: A fast WebAssembly interpreter
// Copyright 2019-2020 The Fizzy Authors.
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <cstdint>
namespace fizzy
{
struct InstructionMetrics
{
/// The minimum number of the stack items required for the instruction.
int8_t stack_height_required;
//... |
#pragma once
#include <tagsql/core/operators/equal.h++>
namespace tagsql
{
struct generic_equal_t
{
template<typename ContextIndependentTag>
using operator_t = operators::equal_t<ContextIndependentTag>;
static auto repr(std::string right, std::string left) -> std::string
{
return std::move(right) + " = ... |
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// PVS-settings
// PVS-settings end
#include<iostream>
#include<vector>
#include<set>
#define kektor vector
//))))))))))))))))
using namespace std;
kektor<kektor<char>... |
#ifndef OSMIUM_INDEX_MULTIMAP_SPARSE_MEM_ARRAY_HPP
#define OSMIUM_INDEX_MULTIMAP_SPARSE_MEM_ARRAY_HPP
/*
This file is part of Osmium (http://osmcode.org/libosmium).
Copyright 2013-2016 Jochen Topf <jochen@topf.org> and others (see README).
Boost Software License - Version 1.0 - August 17th, 2003
Permission is here... |
#include "v3/include/AsyncLeaseGrantResponse.hpp"
#include "v3/include/action_constants.hpp"
void etcdv3::AsyncLeaseGrantResponse::ParseResponse(LeaseGrantResponse& resp)
{
index = resp.header().revision();
value.kvs.set_lease(resp.id());
value.set_ttl(resp.ttl());
error_message = resp.error();
} |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/function/compression/compression.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/function/compression_function.hpp"
#... |
//
// List.cpp
// edgeRuntime
//
// Created by Abdelrahaman Aly on 22/11/13.
// Copyright (c) 2013 Abdelrhaman Aly. All rights reserved.
//
//Generic Headers
#include <iostream>
//Custom Headers
#include "List.h"
namespace Utils
{
//TODO: Add code from template list here
} |
//
// blocking_udp_echo_client.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <c... |
/*
* Copyright (c) 2012 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) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
#pragma once
#include <chrono>
class timer
{
using time_point_t = std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>;
public:
void start()
{
_start = std::chrono::system_clock::now();
}
void end()
{
_end = std::chrono::system_clock::now();
}
aut... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/system/privacy_screen/privacy_screen_toast_controller.h"
#include "ash/accessibility/accessibility_controller_impl.h"
#include "ash/shelf/s... |
// The MIT License (MIT)
//
// Copyright (c) 2015-2017 Simon Ninon <simon.ninon@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 limitat... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <algorithm>
#include <random>
#include "core/mlas/inc/mlas.h"
#include "core/util/math.h"
#include "default_providers.h"
#include "gtest/gtest.h"
#include "test/providers/provider_test_utils.h"
namespace onnxrunt... |
//给定一个字符串,逐个翻转字符串中的每个单词。
//
// 说明:
//
//
// 无空格字符构成一个 单词 。
// 输入字符串可以在前面或者后面包含多余的空格,但是反转后的字符不能包括。
// 如果两个单词间有多余的空格,将反转后单词间的空格减少到只含一个。
//
//
//
//
// 示例 1:
//
// 输入:"the sky is blue"
//输出:"blue is sky the"
//
//
// 示例 2:
//
// 输入:" hello world! "
//输出:"world! hello"
//解释:输入字符串可以在前面或者后面包含多余的空格,但是反转后的字符不能包括。
... |
#include <stdio.h>
int main() {
int n, k, i;
scanf("%d%d", &n, &k);
for(i = 0; i < k; i++) {
if(n%10 != 0)
n--;
else
n /= 10;
}
printf("%d", n);
} |
#include <QApplication>
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "bitcoinunits.h"
#include "walletmodel.h"
#include "init.h"
#include "util.h"
#ifdef WIN32
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0501
#ifdef _WIN32_IE
#undef _WIN32_IE
#endif
#define _WIN32_IE ... |
// 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 "sky/viewer/platform/weblayertreeview_impl.h"
#include "base/message_loop/message_loop_proxy.h"
#include "cc/layers/layer.h"
#include "cc/output... |
//$Id$
//------------------------------------------------------------------------------
// Integrator
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2020 United States Government as represen... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2022, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless re... |
/*
MIT License
Copyright (c) 2019 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 without restriction, including without limitation the rights
to use, copy, modify, m... |
/*
* Copyright 2004-2018 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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) 2016-2019 The Bitcoin Unlimited developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "requestManager.h"
#include "blockrelay/blockrelay_common.h"
#include "blockrelay/compactblock.h"
#include "blo... |
// MIT License
//
// shrinkler-gba: Port of the Shrinkler Amiga executable cruncher for the GBA
// Copyright (c) 2021 Thomas Mathys
//
// 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... |
/* ----------------------------------------------------------------------- *//**
*
* @file SystemInformation_impl.hpp
*
*//* ----------------------------------------------------------------------- */
#ifndef MADLIB_POSTGRES_SYSTEMINFORMATION_IMPL_HPP
#define MADLIB_POSTGRES_SYSTEMINFORMATION_IMPL_HPP
namespace ma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.