text stringlengths 7 961k |
|---|
#pragma once
typedef char int8;
typedef short int16;
typedef int int32;
typedef long long int64;
typedef unsigned long long uint64;
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned int uint32;
typedef unsigned long long uint64;
union CharOn11111111 {
struct {
unsigned int firs... |
//===--- GenClangType.cpp - Swift IR Generation For Types -----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
#include "DebugManager.h"
#include "DebugNodeTransform.h"
#include "DebugNodeLine.h"
#include <cassert>
namespace Debugging
{
DebugManager* DebugManager::s_Instance = nullptr;
DebugManager& DebugManager::GetInstance()
{
if (nullptr == s_Instance)
{
s_Instance = new DebugManager;
assert(nullptr != s_Instan... |
/* C++ Code for Combination Sum Problem.
Problem Statement:
Given an array of integers and a target value, the unique combination of values in array should sum up to the target value.
The same number can be chosen multiple times.
For Example:
Input: array = [4,2,8,6], target = 8
Output: [2,2,2,2], [4,4], [2,6], [8], ... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2019-2022 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... |
#ifndef RAPIDXML_PRINT_HPP_INCLUDED
#define RAPIDXML_PRINT_HPP_INCLUDED
// Copyright (C) 2006, 2009 Marcin Kalicinski
// Version 1.13
// Revision $DateTime: 2009/05/13 01:46:17 $
//! \file rapidxml_print.hpp This file contains rapidxml printer implementation
#include "rapidxml.hpp"
// Only include streams if not dis... |
/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
pdecl.cpp
Abstract:
Parametric declarations for SMT-LIB 2.0 + inductive data-types.
Author:
Leonardo de Moura (leonardo) 2011-03-02.
Revision History:
--*/
#include "cmd_context/pdecl.h"
#include "ast/datatype_decl_plugin.h"
using namespace ... |
/**
* VKTS - VulKan ToolS.
*
* The MIT License (MIT)
*
* Copyright (c) since 2014 Norbert Nopper
*
* 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 with... |
#include <iostream>
#include <string>
// say what standard-library names we use
using std::cin; using std::endl;
using std::cout; using std::string;
int main()
{
// ask for the person's name
cout << "Please enter your first name: ";
// read the name
string name;
cin... |
/*
* If not stated otherwise in this file or this component's license file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* 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 cop... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
/****************************************************************************
*
* Copyright (c) 2018 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
// 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 "ethernet.h"
#include <lib/zircon-internal/align.h>
#include <memory>
#include <type_traits>
#include "src/connectivity/ethernet/drivers/ethern... |
// Copyright (c) 2019 - 2020 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2020 - 2021 by Apex.AI Inc. 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
/... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
/**
*
* 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... |
/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
/* -------------------------------------------------------------------------
ATS
License: see $ATS_DIR/COPYRIGHT
Author: Ethan Coon
Implementation for a Field. Field is not intended so much to hide implementation
of data as to restrict write ... |
/** @file
A brief file description
@section license License
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 und... |
/*
* This source file is part of libRocket, the HTML/CSS Interface Middleware
*
* For the latest information, see http://www.librocket.com
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and assoc... |
// Copyright 2017 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/ukm/observers/sync_disable_observer.h"
#include "base/observer_list.h"
#include "components/sync/driver/fake_sync_service.h"
#includ... |
/******************************************************************************
* $Id: rpftocdataset.cpp
*
* Project: RPF TOC read Translator
* Purpose: Implementation of RPFTOCDataset and RPFTOCSubDataset.
* Author: Even Rouault, even.rouault at mines-paris.org
*
********************************************... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
// Copyright (c) 2007-2013 Hartmut Kaiser
// Copyright (c) 2012 Bryce Adelstein-Lelbach
//
// 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)
//
// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52072
#include... |
/*
* Author: Brendan Le Foll <brendan.le.foll@intel.com>
* Copyright (c) 2014 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
* with... |
/*
* Demonstration of very simple case for private dispatchers.
*/
#include <iostream>
#include <sstream>
#include <so_5/all.hpp>
// Sample coordinator.
// Works on the default dispatcher.
// Receives messages from children agents.
// Finishes sample when all messages are received.
class a_coordinator_t : public s... |
/**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... |
//
// Wasm3 - high performance WebAssembly interpreter written in C.
//
// Copyright © 2019 Steven Massey, Volodymyr Shymanskyy.
// All rights reserved.
//
#include "Arduino.h"
#include <stdio.h>
#include "m3/wasm3.h"
#include "m3/m3_env.h"
#include "m3/extra/fib32.wasm.h"
#define FATAL(msg, ...) { printf("Fatal... |
//----------------------------------*-C++-*-----------------------------------//
/**
* @file Geometry.cc
* @brief Geometry member definitions
* @note Copyright (C) 2013 Jeremy Roberts
*/
//----------------------------------------------------------------------------//
#include "geometry/Geometry.hh"
namespace... |
/**
* @file ClientAcceptorChooser.hpp
* @brief This file contains the definition of a function that picks connection acceptor based on the options the server is running.
*/
#ifndef ClientAcceptorChooser_hpp
#define ClientAcceptorChooser_hpp
#include "../Client.hpp"
#include "../ClientConnectionType.hpp"
#include <fu... |
#include <string>
#include <unordered_set>
#include <vector>
using namespace std;
class Solution
{
public:
bool wordBreak(string s, vector<string> &wordDict)
{
int N = s.length();
unordered_set<string> dict(wordDict.begin(), wordDict.end());
vector<bool> dp(N + 1);
dp[0] = true;
for (int i = 0; i < N; ++i)... |
/* Copyright 2020 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... |
//=================================================================================================
/*!
// \file src/mathtest/row/DenseDenseSymmetricTest.cpp
// \brief Source file for the Row dense symmetric test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This file is part of the Blaz... |
//=================================================================================================
/*!
// \file src/mtl/TDMatTDMatMult.cpp
// \brief Source file for the MTL transpose dense matrix/transpose dense matrix multiplication kernel
//
// Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved
//
// ... |
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is ... |
#include <string>
#include <stdio.h>
#include "format.h"
using std::string;
using std::to_string;
// TODO: Complete this helper function
// INPUT: Long int measuring seconds
// OUTPUT: HH:MM:SS
// REMOVE: [[maybe_unused]] once you define the function
string Format::ElapsedTime(long seconds) {
char cstring[10];
... |
// Copyright 2015 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/wasm/wasm-module-builder.h"
#include "src/base/memory.h"
#include "src/codegen/signature.h"
#include "src/handles/handles.h"
#include "sr... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fixed.hpp :+: :+: :+: ... |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#define RAPIDJSON_HAS_STDSTRING 1
#include "flutter/shell/common/shell.h"
#include <memory>
#include <sstream>
#include <vector>
#include "flutter/assets... |
class Solution {
public:
vector<vector<int>> getSkyline(vector<vector<int>>& buildings)
{
vector<pair<int,int>> s;
multiset<int> q;
vector<vector<int>> ans;
for (auto building:buildings) {
s.push_back({building[0],building[2]});
s.push_back({building[1],-... |
#include "animation.hpp"
#include "util.hpp"
void Animation::Animate()
{
if (frameCount >= frameLength)
{
if (callback != nullptr)
{
callback();
}
finished = true;
}
else
{
/*if (this->actor != nullptr)
{
this->actor->degrees ... |
// Copyright 2008-present Contributors to the OpenImageIO project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md
#include <OpenEXR/half.h>
#include <cmath>
#include <iostream>
#include <stdexcept>
#include <OpenImageIO/dassert.h>
#include <OpenImageIO/deepdat... |
/**
* Forward declaration of guess API.
* @param num your guess
* @return -1 if num is lower than the guess number
* 1 if num is higher than the guess number
* otherwise return 0
* int guess(int num);
*/
class Solution {
public:
int guessNumber(int n) {
int lo = 1, hi... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_console_w32spawnl_82_bad.cpp
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-82_bad.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from the c... |
//
// boost/memory.hpp
//
// Copyright (c) 2004 - 2008 xushiwei (xushiweizh@gmail.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)
//
// See http://www.boost.org/libs/memory/index.htm for documentation.... |
// Copyright (c) 2015 Hartmut Kaiser
//
// 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(HPX_SERIALIZATION_SIZE_GATHERER_CONTAINER_MAY_27_2015_0818AM)
#define HPX_SERIALIZATION_SIZE_GATHERER_CONTAINE... |
/*
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
#include "MFDPage.h"
MFDPage::MFDPage(DWORD page)
: page(page)
{
topString = L"";
midString = L"";
botString = L"";
}
void MFDPage::SetTopString(const wchar_t* string)
{
topString = string;
}
void MFDPage::SetTopString(std::wstring string)
{
topString = string;
}
const wchar_t* MFDPage::GetTopString()
{
retu... |
//
// 62_unique_paths.cpp
// leet_Code_Dynamic_Programming
//
// Created by Hadley on 14.07.20.
// Copyright © 2020 Hadley. All rights reserved.
//
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <stack>
#include <cstring>
#include <... |
#include "chokoeditor.hpp"
#include "utils/glutils.hpp"
CE_BEGIN_ED_NAMESPACE
void EW_S_Camera::Init() {
EW_S_DrawCompList::funcs[(int)ComponentType::Camera] = &Draw;
EW_S_DrawCompList::activeFuncs[(int)ComponentType::Camera] = &DrawActive;
}
void EW_S_Camera::Draw(const Component& c, const Mat4x4& p) {
const aut... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020 Darby Johnston, All rights reserved
#include "stdafx.h"
#include "OspreyChangeQueue.h"
#include "OspreyPlugIn.h"
#include "OspreyRender.h"
#include "OspreySdkRender.h"
#include "OspreySettings.h"
#include "OspreyUtil.h"
OspreySdkRender::OspreySdkRender(
... |
// RUN: %clangxx %fsycl-host-only -fsyntax-only -sycl-std=2020 -Xclang -verify -Xclang -verify-ignore-unexpected=note %s -o %t.out
// RUN: %clangxx %fsycl-host-only -fsyntax-only -Xclang -verify -Xclang -verify-ignore-unexpected=note %s -o %t.out
// RUN: %clangxx %fsycl-host-only -fsyntax-only -sycl-std=2017 -Xclang -v... |
// Element.cpp: Implementierung der Klasse Element.
//
//////////////////////////////////////////////////////////////////////
#include "Element.h"
#include <cmath> //sqrt
#include <cstddef> //size_t
#include <iomanip>
namespace fesolv {
Element::Element(Model* model, FEint number)
{
_model = model;
_number = numbe... |
/******************************************************************************
* Project: wsdl2cpp
* File: lib/typegenerator/typegenerator.cpp
* Author: Ben M. Ward <ben.ward@gmail.com>
* Copyright 2012-2017 Ben M. Ward
*****************************************************************************/
#include "lib/t... |
// ***********************************************************************
// DO NOT EDIT THIS FILE !!!
// ***********************************************************************
// This file is automatically generated from the grib_api templates. All
// changes will be overridden. If you want ... |
// Copyright (c) 2014-2018 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#include "MainWindow/FormLayout.hpp"
#include "BreakerPropertiesPanel.hpp"
#include "GraphObjects/GraphBreaker.hpp"
#include "GraphObjects/GraphConnection.hpp"
#include "GraphEditor/GraphDraw.hpp"
#include "GraphEditor/GraphEditor.hpp"
#include "... |
/*
* BSD 3-Clause License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.... |
/* --------------------------------------------------------------- */
/* -- Copyright (c) 1994, 1995 Computer Sciences Department, -- */
/* -- University of Wisconsin-Madison, subject to the terms -- */
/* -- and conditions given in the file COPYRIGHT. All Rights -- */
/* -- Reserved. ... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "cbase.h"
#include "weapon_citizenpackage.h"
//-----------------------------------------------------------------------------
// Purpo... |
/// \file
// Range v3 library
//
// Copyright Eric Niebler 2013-present
// Copyright Gonzalo Brito Gadeschi 2014
//
// Use, modification and distribution is 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)
//
// Pr... |
#include <iostream>
using namespace std;
extern void productos(int opcion);
void menu()
{
int opcion = 0 ;
while(true)
{
system("cls");
cout <<"****" <<endl;
cout <<"MENU" <<endl;
cout <<"****" <<endl;
cout <<endl;
cout <<"1 - Bebidas calientes" ... |
#pragma once
#include "tbb/task_group.h"
#include <stdexcept>
#include "codec/compact_elias_fano.hpp"
#include "codec/integer_codes.hpp"
#include "configuration.hpp"
#include "global_parameters.hpp"
#include "optimal_partition.hpp"
#include "sequence/indexed_sequence.hpp"
#include "util/util.hpp"
namespace pisa {
t... |
#include "../../Framework.hpp"
#include "../../../core/jni_helper.hpp"
namespace
{
::Framework * frm() { return g_framework->NativeFramework(); }
Bookmark const * getBookmark(jint c, jlong b)
{
BookmarkCategory const * pCat = frm()->GetBmCategory(c);
ASSERT(pCat, ("Category not found", c));
Bookma... |
#include "governance-types.h"
GovernanceObjectType GovernanceStringToType(std::string strType) {
GovernanceObjectType type = Error;
if(strType == "AllTypes") type = AllTypes;
if(strType == "Error") type = Error;
if(strType == "ValueOverride") type = ValueOverride;
if(strType == "GlobalMovementClub... |
#pragma once
#include <lug/System/Export.hpp>
#include <lug/System/Memory/Area/IArea.hpp>
namespace lug {
namespace System {
namespace Memory {
namespace Area {
template <size_t Size>
class Stack : public IArea {
public:
Stack() = default;
Stack(const Stack&) = delete;
Stack(Stack&&) = delete;
Stack... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright 2019 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/send_tab_to_self/send_tab_to_self_bridge.h"
#include <map>
#include <set>
#include <utility>
#include "base/bind.h"
#include "base/... |
//===- BreakCriticalEdges.cpp - Critical Edge Elimination Pass ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "InstructionNextChar.h"
#include "FindVarInCode.h"
#include "CppEmitter.h"
#include "StreamSep.h"
#include "Assert.h"
#include <algorithm>
#include <string.h>
#include <fstream>
namespace Hpipe {
namespace {
bool _exec( std::string cmd, bool disp = true ) {
if ( disp )
PRINTE( cmd );
return ... |
#include "hello.h"
int main(void) {
Hello hello;
hello.print();
} |
#include "endstream/system_endianness.h"
#include <stdint.h>
namespace rayzz {
namespace endstream {
endianness system_endianness::get_system_endianness() {
// adapted from https://stackoverflow.com/a/1001328
int32_t test_value = 1;
char reinterpreted = *reinterpret_cas... |
/*
Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
Copyright (C) 2001 Dirk Mueller (mueller@kde.org)
Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
This library i... |
#ifndef MUSE_SMC_RESAMPLING_HPP
#define MUSE_SMC_RESAMPLING_HPP
#include <iostream>
#include <memory>
namespace muse_smc {
template <typename SampleSet_T, typename UniformSampling_T,
typename NormalSampling_T, typename Weight_T>
class Resampling {
public:
inline Resampling() = default;
virtual ~Resampl... |
// Copyright 2018 Xiaomi, Inc. 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 applicab... |
//
// Created by R on 12/8/2021.
//
#ifndef NEURALNETWORK_CROSS_ENTROPY_HPP
#define NEURALNETWORK_CROSS_ENTROPY_HPP
#include "include/typedefs.hpp"
namespace net
{
namespace loss
{
class CrossEntropy
{
public:
static double loss(const ColumnVector &a, const ColumnVector &e... |
/*
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 no... |
// Copyright 2022 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 "arc/vm/libvda/decode/gpu/gpu_vd_impl.h"
#include <memory>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include <b... |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clau... |
/*
* File: bst-aravind.c
* Author: Tudor David <tudor.david@epfl.ch>
* Description: Aravind Natarajan and Neeraj Mittal.
* Fast Concurrent Lock-free Binary Search Trees. PPoPP 2014
* bst-aravind.c is part of ASCYLIB
*
* Copyright (c) 2014 Vasileios Trigonakis <vasileios.trigonakis@epfl.ch>,
* ... |
#ifndef KAFKA_BROKER_STUB_MAIN_HPP_INC_
#define KAFKA_BROKER_STUB_MAIN_HPP_INC_
#include "primitive.hpp"
#include "metadata.hpp"
#include "produce.hpp"
#include "headers.hpp"
#include "util.hpp"
#include <list>
#include <string>
#include <stdio.h>
namespace kafka_broker_stub {
// Maximum size of a response message
... |
// Copyright 2019 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/enterprise/browser/reporting/policy_info.h"
#include "base/files/file_util.h"
#include "base/strings/utf_string_conversions.h"
#incl... |
//-----------------------------------------------------------------------------
#include "PrecompiledHeader.h"
//-----------------------------------------------------------------------------
#include <string.h>
//-----------------------------------------------------------------------------
S3DX_IMPLEMENT_AIVARIABLE_STR... |
/*
Copyright: © 2018 SIL International.
Description: Internal keyboard class and adaptor class for the API.
Create Date: 2 Oct 2018
Authors: Tim Eves (TSE)
History: 2 Oct 2018 - TSE - Refactored out of km_kbp_keyboard_api.cpp
*/
#pragma once
#include <algorithm>
#include <string>
#include <ty... |
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 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 "masternodeman.h"
#include "addrman.h"
#include "evo/deterministicmns.h"... |
//===-- DataDumpExtractorTest.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
//
//===---------------------------... |
//=============================================================================================================
/**
* @file neuromag.cpp
* @author Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @version 1.0
* @date February, 2013
*
* @section LICENSE
*
... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ssm/model/DescribeInstanceInformationRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::SSM::Model;
using namespace Aws::Utils::Json;
us... |
//---------------------------------------------------------------------------//
//!
//! \file Utility_Tuple.hpp
//! \author Alex Robinson
//! \brief Simple structs for storing several objects of arbitrary type
//!
//---------------------------------------------------------------------------//
#ifndef UTILITY_TUPLE_... |
// -*- mode: C++ -*-
//
// Copyright (c) 2007, 2008, 2009, 2010, 2011, 2013, 2015, 2017 The University of Utah
// All rights reserved.
//
// This file is part of `csmith', a random generator of C programs.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided t... |
const int dirs[8][2] = {{-1, 0}, {-1, 1}, {0, 1}, {1, 1}, {1, 0}, {1, -1}, {0, -1}, {-1, -1}};
class Solution {
public:
int neighbors(vector<vector<int>>& board, int m, int n, int i, int j){
int ret = 0;
for(auto dir : dirs){
int inext = i + dir[0], jnext = j + dir[1];
if(ine... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
/*
* Copyright (c) 2018, ARM Limited, All Rights Reserved
* 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
*
* http://www.apache.org/licenses/LICE... |
//
// File: TreeTools.cpp
// Created by: Julien Dutheil
// Created on: Wed Aug 6 13:45:28 2003
//
/*
Copyright or © or Copr. Bio++ Development Team, (November 16, 2004)
This software is a computer program whose purpose is to provide classes
for phylogenetic data analysis.
This software is governed by th... |
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Copyright (c) 2014-2019 The BitsCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/receiverequestdialog.h>
#include <qt/forms/ui_receivereq... |
//===-- asan_win.cc -------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
/*========================== begin_copyright_notice ============================
Copyright (C) 2020-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#ifndef _IGA_BACKEND_MESSAGES_MESSAGEDECODER_HPP_
#define _IGA_BACKEND_MESSAGES_MES... |
/* @flow */
// Copyright (c) 2012-2013 The PPCoin developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017 The Armageddon developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assi... |
#pragma once
#include <fmt/format.h>
#include <xkbcommon/xkbregistry.h>
#include <map>
#include <string>
#include "ALabel.hpp"
#include "bar.hpp"
#include "client.hpp"
#include "modules/sway/ipc/client.hpp"
#include "util/json.hpp"
namespace waybar::modules::sway {
class Language : public ALabel, public sigc::trac... |
// Copyright (c) 2021 CINN 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 appl... |
/**
* MIT License
*
* Copyright (c) 2020 Philip Klatt
*
* 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, mo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.