text stringlengths 5 1.04M |
|---|
/* file: neural_networks_training_result_fpt.cpp */
/*******************************************************************************
* Copyright 2014-2019 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 ob... |
// 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 "chrome/browser/signin/identity_manager_factory.h"
#include <memory>
#include <utility>
#include "base/feature_list.h"
#include "base/files/fil... |
//
// Copyright (C) 2013 Jack.
//
// Author: jack
// Email: jack.wgm@gmail.com
//
#ifndef AVHTTP_LOGGING_HPP
#define AVHTTP_LOGGING_HPP
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
#ifdef WIN32
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN... |
/*
* Copyright 2016-2018 Alex Beregszaszi et al.
*
* 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 ... |
/**
* @file main.cpp
*
*/
/* Copyright (C) 2019-2021 by Arjan van Vught mailto:info@orangepi-dmx.nl
*
* 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 wit... |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/intersection_observer/intersection_observer.h"
#include "build/build_config.h"
#include "third_party/blink/rend... |
// Copyright (c) 2012 House of Life Property Ltd. All rights reserved.
// Copyright (c) 2012 Crystalnix <vgachkaylo@crystalnix.com>
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/facebook_chat/facebook_chat_manager_service_factory.h"
#i... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QMessageBox>
#include<QFile>
#include<QFileDialog>
#include<QDir>
#include<QTextStream>
#include<QFontDialog>
#include<QFont>
#include<QColor>
#include<QColorDialog>
#include<QDebug>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(ne... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <stdio.h>
#include <stdlib.h>
#include <kcpolydb.h>
#include "util/histogram.h"
#include "util... |
// License: BSD 3 Clause
// Copyright (C) 2012, Google Inc. All rights reserved.
// Copyright (C) 2015+, The LabSound Authors. All rights reserved.
#include "LabSound/core/OscillatorNode.h"
#include "LabSound/core/WaveTable.h"
#include "LabSound/core/AudioArray.h"
#include "internal/Assertions.h"
#include "internal/F... |
#include "LineEdit3D.h"
LineEdit3D::LineEdit3D(void)
{
only2D = false;
}
LineEdit3D::~LineEdit3D(void)
{
}
void LineEdit3D::set_points( std::vector<cml::vector3d> &points_ )
{
points = points_;
}
void LineEdit3D::set_cons_pos( int i, cml::vector3d &position )
{
cons_pos[i] = position;
}
dou... |
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/Exceptions.hpp>
#include <memory>
namespace armnn
{
namespace profiling
{
class Packet
{
public:
Packet()
: m_Header(0)
, m_Length(0)
, m_Data(nullptr)
{}
Packe... |
#include <algorithm>
using namespace std;
/**
Definition for a binary tree node.
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
*/
// NOTE(Wuxiang): The Difficulty is how to distinguish 4 cases in switch.
class S... |
#include "rtp/SRPacketHandler.h"
#include "./WebRtcConnection.h"
#include "lib/ClockUtils.h"
namespace erizo {
DEFINE_LOGGER(SRPacketHandler, "rtp.SRPacketHandler");
SRPacketHandler::SRPacketHandler() :
enabled_{true}, initialized_{false}, connection_(nullptr) {}
void SRPacketHandler::enable() {
enabled_ = t... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2011-2015 Akira Takahashi
// Copyright (c) 2011-2015 Barend Gehrels, Amsterdam, the Netherlands.
// This file was modified by Oracle on 2015.
// Modifications copyright (c) 2015, Oracle and/or its affiliates.
// Contributed and/or modified by Men... |
/*
* 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
... |
/********** tell emacs we use -*- c++ -*- style comments *******************
$Revision: 1.15 $ $Author: trey $ $Date: 2006/10/30 20:00:15 $
@file RTDP.cc
@brief Implementation of Barto, Bradke, and Singh's RTDP algorithm.
Copyright (c) 2006, Trey Smith. All rights reserved.
Licensed under the Apache L... |
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
// Copyright (c) 2011 The LevelDB Authors. All rights re... |
// Copyright 1996-2021 Cyberbotics 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 or agr... |
// Copyright (c) 2020 Graphcore Ltd.
// 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 requir... |
#ifndef CPPDATASTRUCTURES_NUMBERFORMATTER_H
#define CPPDATASTRUCTURES_NUMBERFORMATTER_H
#include <cassert>
#include "BitConverter.h"
#include "String.h"
class NumberFormatter final
{
private:
static constexpr int32_t INT32_PRECISION = 10;
static constexpr int32_t UINT32_PRECISION = INT32_PRECISION;
static const... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// clang-format off
#include "pch.h"
#include "webrtc.RtpReceiver.h"
#include "webrtc.RtpReceiver.g.cpp"
// clang-format on
#include "webrtc.MediaStreamTrack.h"
namespace winrt::Microsoft::WinRTC::WebRtcWrapper::webrtc::implementation
{
RtpRe... |
#include "vectors.h"
#include<vector>
/*
Write a value return function get_max_from_vector with a const reference
vector of intsparameter that returns the max value in a vector
@param numbers is a const reference to a vector of integers
@return the max value in the vector
*/
int get_max_from_vector(const vector<int>... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/extensions/api/file_browser_handlers/file_browser_handler.h"
#include "base/logging.h"
#include "base/strings/string_number_conve... |
#include "benchmark_runner.hpp"
#include <chrono>
#include <fstream>
#include <random>
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/mean.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#include <boost/algorithm/string/join.hpp>
#include <boost/range/adaptors.hpp>
#in... |
/* @flow */
// Copyright (c) 2012-2013 The PPCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include <boost/lexical_cast.hpp>
#include "db.h"
#include "kernel.h"
#include... |
#pragma once
#include <string>
struct Subject
{
using string = std::string;
string name;
size_t skill;
};
|
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#define ll long long
using namespace std;
int main() {
int n;
cin >> n;
std::vector<ll> v(n);
for (int i = 0; i < n; ++i) {
cin >> v[i];
}
sort(v.begin(), v.end());
std::vector<pair<ll, ll... |
// Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_ASSERT_BASIC_UNCONDITIONAL_MESSAGE_HPP_INCLUDED
#define FCPPT_ASSERT_BASIC_UNCONDITI... |
/*
* 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 ... |
/* 用时12分 */
//思路就是找最小的时间点tmin和最大的时间点tmax,找交集
#include <cstdio>
#include <iostream>
using namespace std;
const int N = 2005;
const int MAXT = 1000005;
int tmap[MAXT]; //记录所有时刻
int n;
int main()
{
int ans = 0;
cin >> n;
for (int i = 1; i <= n; i++)
{
int a, b;
cin >> a >> b;
for... |
#include <star-tape/tape_file_proxy.hpp>
#include <star-tape/tape_operation.hpp>
namespace StarTape
{
//#####################################################################################################################
//#######################################################################################... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/medialive/model/Offering.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follow... |
#include "test/test_bitcoin.h"
#include "script/interpreter.h"
#include "script/standard.h"
#include "script/sign.h"
#include "validation.h"
#include "zerocoin.h"
#include "netbase.h"
#include "keystore.h"
#include "base58.h"
#include "evo/specialtx.h"
#include <boost/test/unit_test.hpp>
typedef std::map<COutPoint, ... |
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "crypto/encryptor.h"
#include <CommonCrypto/CommonCryptor.h>
#include "base/logging.h"
#include "base/string_util.h"
#include "crypto/symme... |
//--------------------------------------------------------------------------------------------------
//
// File: m+m/m+mBaseService.cpp
//
// Project: m+m
//
// Contains: The class definition for the minimal functionality required for an m+m service.
//
// Written by: Norman Jaffe
//
// Copyright: (c) ... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
// Copyright 2018 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/detachable_base/detachable_base_handler.h"
#include "ash/detachable_base/detachable_base_observer.h"
#include "ash/public/cpp/ash_pref_name... |
// Copyright (C) 2016 Google Inc.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distribut... |
// socketft.cpp - written and placed in the public domain by Wei Dai
#include "pch.h"
#include "config.h"
#if !defined(NO_OS_DEPENDENCE) && defined(SOCKETS_AVAILABLE)
// TODO: http://github.com/weidai11/cryptopp/issues/19
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include "socketft.h"
#include "wait.h"
//... |
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... |
/*
Algoritmo para criação de uma MST (Árvore Geradora de Custo Mínimo), ou seja,
garante a conexão de todos os nós do grafo com o menor custo de arestas
* implementação quase igual a dijkstra
Izabella Melo ~imcm
imcm@cin.ufpe.br
*/
#include <bits/stdc++.h>
using namespace std;
#define NODES 10
#define INF 1e8
... |
// 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 "components/autofill_assistant/browser/field_formatter.h"
#include "base/i18n/case_conversion.h"
#include "base/logging.h"
#include "base/string... |
#include <utility>
#include "input_handler.hh"
#include "buffer_manager.hh"
#include "buffer_utils.hh"
#include "command_manager.hh"
#include "client.hh"
#include "event_manager.hh"
#include "face_registry.hh"
#include "insert_completer.hh"
#include "normal.hh"
#include "regex.hh"
#include "register_manager.hh"
#incl... |
// Generated from argmin_2.mod.py
// DO NOT EDIT
// clang-format off
#include "TestHarness.h"
using namespace test_helper; // NOLINT(google-build-using-namespace)
namespace generated_tests::argmin_2 {
const TestModel& get_test_model() {
static TestModel model = {
.main = {
.operands = {{ ... |
#include "Server.h"
Server::~Server()
{
}
int Server::get_id()
{
return id_;
}
int Server::get_size()
{
#ifdef QUEUE_SIM
assert(jobs_queue_size_ == (int)jobs_queue_.size() && "queue size missmatch");
#endif
return jobs_queue_size_;
}
void Server::add_jobs(int arrived_jobs, int arrival_ti... |
/**
* @file Params.cpp
*
* @brief Parameter class for Zerocoin.
*
* @author Ian Miers, Christina Garman and Matthew Green
* @date June 2013
*
* @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
* @license This project is released under the MIT license.
**/
// Copyright (c)... |
#pragma once
#define _USE_MATH_DEFINES
#include <cmath>
#include <cppsim/simulator.hpp>
#include "parametric_circuit.hpp"
#include "parametric_simulator.hpp"
#include "problem.hpp"
class DllExport QuantumCircuitGradientDifferentiation {
public:
virtual double compute_gradient(ParametricQuantumCircuitSimulator* s... |
#include <iostream>
#include <toolbelt/unit_tests.hpp>
#include "tests/crc32_test.hpp"
#include "tests/make_smart_test.hpp"
#include "tests/string_test.hpp"
int main(int argc, char** argv) {
toolbelt::test_suite s;
add_crc32_tests(s);
add_make_smart_tests(s);
add_string_tests(s);
return s.run_t... |
/**
* Find all divisors of a natural number
*
* Given a natural number n, print all distinct divisors of it.
*
* Examples:
* Input : n = 10
* Output: 1 2 5 10
*
* Input: n = 100
* Output: 1 2 4 5 10 20 25 50 100
*
* Input: n = 125
* Output: 1 5 25 125
*
* URL: https://www.... |
/*
*
* Copyright (c) 1998-2002
* Dr John Maddock
*
* 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)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent ver... |
// 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/feature_engagement_tracker/internal/feature_config_condition_validator.h"
#include "base/feature_list.h"
#include "components/featur... |
/*
* Copyright 2014-present IVK JSC. 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... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_EngramEntry_Narcotic_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//-------------------------------------------------... |
/*
* Copyright (c) 2011-2021, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/api/atom_api_window.h"
#include "atom/common/native_mate_converters/value_converter.h"
#include "atom/browser/api/atom_api_browser_view.h"
#include "atom/browse... |
#include "stdafx.h"
void CopyToCircleStruct(ON_CIRCLE_STRUCT& cs, const ON_Circle& circle)
{
RHCHECK_LICENSE
memcpy(&cs, &circle, sizeof(ON_CIRCLE_STRUCT));
}
ON_Circle FromCircleStruct(const ON_CIRCLE_STRUCT& cs)
{
RHCHECK_LICENSE
ON_Circle circle;
memcpy(&circle, &cs, sizeof(ON_CIRCLE_STRUCT));
circle.p... |
#include "glfw_window.hpp"
using namespace std ;
glfwRenderWindow::~glfwRenderWindow()
{
}
bool glfwRenderWindow::run(size_t width, size_t height, const string &wname) {
glfwSetErrorCallback(errorCallback);
if( !glfwInit() ) return false ;
// With an intel card with this glxinfo I have replaced GLFW_... |
// Copyright (c) 2019 The BitcoinV Core developers
// Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/walletframe.h>
#include <qt/walletmodel.h>
#include <qt/bitc... |
#pragma once
#include <xgt/schema/abstract_schema.hpp>
#include <xgt/schema/schema_impl.hpp>
#include <fc/optional.hpp>
#include <utility>
namespace xgt { namespace schema { namespace detail {
//////////////////////////////////////////////
// optional //
///////////////////////////... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core Developers
// Copyright (c) 2018 Curve Coin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-lice... |
/**
* > Author: UncP
* > Github: www.github.com/UncP/Mushroom
* > License: BSD-3
* > Time: 2017-04-25 22:11:01
**/
#ifndef _CONNECTION_HPP_
#define _CONNECTION_HPP_
#include "../include/utility.hpp"
#include "callback.hpp"
#include "socket.hpp"
#include "endpoint.hpp"
#include "buffer.hp... |
/**
* File : virtual_secure_popc_search_node.cc
* Author : Clement Valentin (clementval)
* Description : Implementation file of the Secure POP-C++ Search Node (resources discovery)
* Creation date : 2010/12/07
*
* Modifications :
* Authors Date Description
* clementval 2010/12/07 Creation of the virtual ve... |
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Codec {
public:
// Encodes a tree to a single string.
string serialize(TreeNode* root) {
if(root == N... |
/**
* @file nystroem_method_impl.hpp
* @author Ryan Curtin
* @author Marcus Edel
*
* Implementation of the Nystroem method for approximating a kernel matrix.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of t... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_console_popen_84_goodG2B.cpp
Label Definition File: CWE78_OS_Command_Injection.one_string.label.xml
Template File: sources-sink-84_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read i... |
/*
******************************************************************************
* $RCSfile: mdp_allo.cpp,v $
* $Author: hkmoffa $
* $Date: 2004/08/27 20:08:10 $
* $Revision: 1.3 $
* $Name: HEAD $
******************************************************************************
*/
#include <stdlib.h>
#include... |
// Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
#include "transactionrecord.h"
#include "wallet.h"
#include "base58.h"
/* Return positive answer if transaction should be shown in list.
*/
bool TransactionRecord::showTransaction(const CWalletTx &wtx)
{
if (wtx.IsCoinBase())
{
// Ensures we show generated coins / mined transactions at depth 1
... |
/**
* 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... |
#include <any>
#include <common/logger_useful.h>
#include <Columns/ColumnConst.h>
#include <Columns/ColumnString.h>
#include <Columns/ColumnFixedString.h>
#include <Columns/ColumnNullable.h>
#include <DataTypes/DataTypeNullable.h>
#include <Interpreters/Join.h>
#include <Interpreters/join_common.h>
#include <Interp... |
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdfapi/parser/cpdf_simple_parser.h"
#include "core/fpdfapi/pa... |
//
// serial_port.cpp
// ~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2008 Rep Invariant Systems, Inc. (info@repinvariant.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http:... |
// Copyright (c) YugaByte, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... |
// Copyright (c) 2019 by Robert Bosch GmbH. 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... |
//
// The MIT License(MIT)
//
// Copyright(c) 2014 Demonsaw LLC
//
// 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, c... |
/*
// Copyright (C) 2020-2022 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+---------... |
// Copyright (c) 2014-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <crypto/aes.h>
#include <crypto/chacha20.h>
#include <crypto/ripemd160.h>
#include <crypto/sha1.h>
#include <crypto/... |
/*
*
* Copyright (c) 2020 Project CHIP 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 requir... |
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibJS/Interpreter.h>
#include <LibJS/Runtime/BoundFunction.h>
#include <LibJS/Runtime/FunctionObject.h>
#include <LibJS/Runtime/GlobalObject.h>
namespace JS {
FunctionObject::FunctionObject(Object... |
#include <boost/program_options.hpp>
#include "CalculateDR.hpp"
namespace po = boost::program_options;
po::variables_map parse_args(int argc, char **argv) {
// Define command line options
po::variables_map vm;
po::options_description desc("Allowed Options");
desc.add_options()("help,h", po::bool_switch()->de... |
#include "sum.h"
int sum(int N,int M){
int sum = 0;
for(int i=N; i<=M; ++i)
sum += i;
return sum;
}
|
////////////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2021, Wiktor Kasjaniuk
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions... |
//////////////////////////////////////////////////////////////////////////
#include "Resources/Monitors/Manual.hpp"
#include "Resources/Locator.hpp"
#include "Resources/ID.hpp"
using namespace CPF;
using namespace Resources;
using namespace Monitors;
GOM::Result CPF_STDCALL Manual::QueryInterface(uint64_t id, void** ... |
// ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2017
// MIT License
#include <ArduinoJson/Polyfills/isInteger.hpp>
#include <catch.hpp>
using namespace ArduinoJson::Polyfills;
TEST_CASE("isInteger()") {
SECTION("Null") {
REQUIRE_FALSE(isInteger(NULL));
}
SECTION("FloatNotInteger") {
... |
/**
* This file is part of the CernVM File System
*/
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "cvmfs_config.h"
#include "uri_map.h"
#include <inttypes.h>
#include <cassert>
using namespace std; // NOLINT
WebRequest::WebRequest(const struct mg_request_info *req) {
string metho... |
#include "CScriptCompilerKeyWordEntry.hpp"
#include "API/Functions.hpp"
#include "Platform/ASLR.hpp"
namespace NWNXLib {
namespace API {
}
}
|
/**
* Copyright (c) Glow Contributors. See CONTRIBUTORS file.
*
* 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 b... |
// Test host codegen.
// RUN: %clang_cc1 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CHECK --check-prefix CHECK-64
// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-target... |
/*
* Copyright 2021, Rein Appeldoorn
*
* 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 ... |
#include "hough.h"
#include <libutils/rasserts.h>
#include <iostream>
cv::Mat buildHough(cv::Mat sobel) {// единственный аргумент - это результат свертки Собелем изначальной картинки
// проверяем что входная картинка - одноканальная и вещественная:
rassert(sobel.type() == CV_32FC1, 237128273918006);
int ... |
#include <bits/stdc++.h>
#define MAX 5000
using namespace std;
vector<int> G[MAX];
int n, m;
bool V[MAX];
map<string, int> A;
struct Step {
int x, v;
Step() {}
Step(int x, int v) : x(x), v(v) {}
};
queue<Step> Q;
int author(const string& a) {
if (A.find(a) != A.end())
return A[a];
else
... |
#include "wildstar/data/c_archive.h"
#include <cstring>
#include <QByteArray>
#include <QBuffer>
#include <QDataStream>
#include <QStringList>
#include <QDebug>
#include "wildstar/data/exception.h"
namespace wildstar
{
namespace data
{
//--------------------------------------------... |
////////////////////////////////////////////////////////////////////////////
// Module : eatable_item.cpp
// Created : 24.03.2003
// Modified : 29.01.2004
// Author : Yuri Dobronravin
// Description : Eatable item
////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.