text stringlengths 5 1.04M |
|---|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/net/net_resource_provider.h"
#include <string>
#include "base/i18n/rtl.h"
#include "base/no_destructor.h"
#include "base/val... |
/*******************************************************************************
* Copyright (c) 2000, 2018 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "functional_test_utils/skip_tests_config.hpp"
#include <ie_system_conf.h>
#include <string>
#include <vector>
#include "ie_parallel.hpp"
std::vector<std::string> disabledTestPatterns() {
std::vector<std::string> ret... |
/*
* 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... |
/*
* AliLightNTrackHist.cxx
*
* Created on: Nov 14, 2017
* Author: gu74req
*/
#include "AliLightNTrackHist.h"
ClassImp(AliLightNTrackHist)
AliLightNTrackHist::AliLightNTrackHist()
:fHistList(0)
,fConfig(0)
,fCutCounter(0)
,fDCAXYPBins(0)
,fNSigCom(0)
,fP_mass2_DCAxyHist(0)
{
for (int i=0;i<2;++i) {
... |
#include <stdio.h>
#include "ali_api_core.h"
#include "ali_string_utils.h"
#include "ali_emr.h"
#include "json/value.h"
#include "json/reader.h"
using namespace aliyun;
namespace {
void Json2Type(const Json::Value& value, std::string* item);
void Json2Type(const Json::Value& value, EmrModifyClusterNameRespons... |
/*! \file CTU_1D.cpp
* \brief Definitions of the CTU algorithm. See Sec. 4.2 of Gardiner & Stone, 2008. */
#ifndef CUDA
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "../global/global.h"
#include "../cpu/CTU_1D.h"
#include "../cpu/plmp.h"
#include "../cpu/plmc.h"
#include "../cpu/ppmp.h"
#include... |
#include "ZBase64.h"
namespace
{
constexpr char alphaTable[64] = {
0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50,
0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66,
0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F,... |
/* Copyright 2013 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
*... |
// Copyright (c) 2014-2018, The Cred Project
//
// 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. Redistributions of source code must retain the above copyright notice, this list of
... |
/*
* EDDL Library - European Distributed Deep Learning Library.
* Version: 0.3
* copyright (c) 2019, Universidad Politécnica de Valencia (UPV), PRHLT Research Centre
* Date: October 2019
* Author: PRHLT Research Centre, UPV, (rparedes@prhlt.upv.es), (jon@prhlt.upv.es)
* All rights reserved
*/
#include <stdio.h>
#incl... |
/********************************************************************
Copyright (c) 1999 Microsoft Corporation
Module Name:
sfprpcs.cpp
Abstract:
implements server rpc thread - exported in SFPSAPI.LIB
server shutdown - exported in SFPSAPI.LIB
Revision History:
Brijesh Kr... |
/* <!-- copyright */
/*
* aria2 - The high speed download utility
*
* Copyright (C) 2006 Tatsuhiro Tsujikawa
*
* 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 Lice... |
// Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_D3D9_STATE_CONVERT_SAMPLER_UNARY_OP_HPP_INCLUDED
#define SGE_D3D9_STATE_CONVERT_SAMPLER... |
// (c) Copyright 2016-2020 Xilinx, Inc.
// All Rights Reserved.
//
// 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 yo... |
//===--- Serialization.cpp - Read and write Swift modules -----------------===//
//
// 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... |
/*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from zgels3_gpu.cpp normal z -> c, Fri Jan 30 19:00:14 2015
*/
#include "common_magma.h"
/**
Purpose
-------
Solves the... |
/* /////////////////////////////////////////////////////////////////////////
* File: src/util/be.context.cpp
*
* Purpose: Implementation of pantheios::util::backends::Context.
*
* Created: 18th December 2006
* Updated: 10th January 2017
*
* Home: http://www.pantheios.org/
*
* Copyrig... |
#include "LogUtils.h"
#include <iostream>
void LogUtils::PrintHRResult(HRESULT res)
{
if (FAILED(res)) {
std::string message = std::system_category().message(res);
std::cout << message << "\n";
}
else {
std::cout << "Operation is successful. Don't worry! \n";
}
}
|
#include "Jenkins.h"
#include <string.h>
#define SERVER_PATH "/cc.xml"
/*
Handle the various build statuses returned by Jenkins server
*/
Jenkins::Jenkins()
{
initialize();
}
void Jenkins::initialize()
{
projects = Projects();
currentProject = Project();
xmlParser = XMLParser();
xmlParser.se... |
#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#define MAX_GAMA_H 200.0
#define MAX_GAMA_L 200.0
#define MAX_D0 200.0
#define MAX_C 200.0
using namespace cv;
using namespace std;
int gama_H;
int gama_L;
int d0;
int c;
int dft_M, dft_N;
Mat filter, tmp;
void ho... |
/*****************************************************************************
$Id$
File: rubymain.cpp
Date: 06Apr06
Copyright (C) 2006-07 by Francis Cianfrocca. All Rights Reserved.
Gmail: blackhedd
This program is free software; you can redistribute it and/or modify
it under the terms of either: 1) the GN... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elasticfilesystem/model/ResourceIdPreference.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namesp... |
/* Copyright 2017 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) 2006-2009 Erin Catto http://www.gphysics.com
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
... |
#include "EnviadorConexionCliente.hpp"
#include "EnviadorEstadoCredencial.hpp"
#include "EnviadorRonda.hpp"
#include "EnviadorMensajeLog.hpp"
#include "EnviadorInfoPartida.hpp"
#include "EnviadorCantidadConexion.hpp"
#include "EnviadorSonido.hpp"
#include "EnviadorNivel.hpp"
#include "EnviadorPodio.hpp"
EnviadorConex... |
/*
* Automatically Generated from Mathematica.
* Fri 5 Nov 2021 16:11:11 GMT-04:00
*/
#ifdef MATLAB_MEX_FILE
#include <stdexcept>
#include <cmath>
#include<math.h>
/**
* Copied from Wolfram Mathematica C Definitions file mdefs.hpp
* Changed marcos to inline functions (Eric Cousineau)
*/
inline double Power(doubl... |
// Copyright (c) 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/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api.h"
#include <string>
#include "base/bi... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: Mono.Unity.UnityTls
#include "Mono/Unity/UnityTls.hpp"
// Including t... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/* $Id: CbcStatistics.cpp 1573 2011-01-05 01:12:36Z lou $ */
// Copyright (C) 2005, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#if defined(_MSC_VER)
// Turn off compiler warning about long names
# pragm... |
/*
* Copyright (c) 2007-2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, p... |
/*
Copyright 2020 The OneFlow 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 agre... |
/*
* Copyright (C) 2018-2020 LEIDOS.
*
* 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 t... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2020 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated ... |
/*
* Copyright 2019 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "bench/Benchmark.h"
#include "bench/ResultsWriter.h"
#include "bench/SkSLBench.h"
#include "include/core/SkCanvas.h"
#include "src/gpu/GrCaps.h"
#include "src/gpu/GrRec... |
/*
* 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... |
// RUN: %clang_cc1 -verify -fopenmp -std=c++11 %s -Wuninitialized
// RUN: %clang_cc1 -verify -fopenmp-simd -std=c++11 %s -Wuninitialized
void xxx(int argc) {
int x; // expected-note {{initialize the variable 'x' to silence this warning}}
#pragma omp target
#pragma omp teams distribute parallel for
for (int i = 0;... |
#include "euclidean.h"
/*
* Returns the Euclidean distance
*
* @params none
* @returns the euclidean distance stored in the object value.
*/
float Euclidean::getDistance() {
return this->dist;
}
/*
* Returns the Point object pointer.
*
* @params none
* @returns the pointer pointing to a Point object
*/
... |
#include <cstring>
#include "parameter.h"
bool getUseCpp(int argc, const char *argv[]) {
for(int i = 0; i < argc - 1; i++) {
if(const char *arg = argv[i]; strcmp(arg, "-c") == 0) {
return false;
} else if (strcmp(arg, "-cpp") == 0) {
return true;
}
}
return ... |
#include <climits>
// This is purely to suppress warning inside ROOT once instanciating
// std::vector<bool>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#include <TCollectionProxyInfo.h>
#pragma GCC diagnostic pop
#include <Compression.h>
#include <TFile.h>
#include <TSystem.h>
#include <TGe... |
/*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaOpTriangulateSurfaceTest
Authors: Alessandro Chiarini , Matteo Giacomoni
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed W... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "btreenodestore.h"
#include <vespa/vespalib/datastore/datastore.hpp>
namespace vespalib::btree {
template <typename EntryType>
void
BTreeNodeBufferType<EntryType>::initializeReservedElement... |
// 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/password_manager/core/browser/credential_manager_utils.h"
#include <memory>
#include <string>
#include "base/optional.h"
#include "... |
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... |
/*
* Copyright 2004 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 contributing ... |
#include <gtest/gtest.h>
#include <test/Helpers.h>
#include <mvp/Image/OrbitalImageCollection.h>
using namespace std;
using namespace vw;
using namespace vw::test;
using namespace vw::camera;
using namespace mvp::image;
TEST(OrbitalImageCollection, back_project) {
OrbitalImageCollection orbital_images;
// TODO:... |
#ifndef CSV_EXTRUDER_HPP
#define CSV_EXTRUDER_HPP
#include "Curve2D.hpp"
#include "Geometry.hpp"
#include <functional>
#include <string>
#include <stdexcept>
namespace STool {
template<typename T>
std::vector<T> makeSeq(int b, int e, std::function<T(int)> = [](int i) { return i; } );
class CurveExtruder {
public:... |
/*
* Copyright (c) 2004-present, 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.
*
*/
#inc... |
#include "MemoryMappedObject.hpp"
#include "MemoryMappedVector.hpp"
namespace shasta {
class MemoryMappedObjectTest {
public:
int a;
int b;
};
}
void shasta::testMemoryMappedVector()
{
#if 0
MemoryMapped::Vector<int> x;
x.createNew("", 2*1024*1024, 5);
x[4] = 18;
SHASTA_A... |
#include "TabContainer.h"
#include "Window.h"
CTabContainer::CTabContainer()
: IControlClickable(0, 0, 0, 0), m_iCountTabs(0), m_iTabMouseDown(-1),
m_iMouseOverTab(-1), m_iSelectedTab(-1)
{
}
CTabContainer::~CTabContainer()
{
// Cleanup labels
CLabel* pCurrent;
for(std::vector<CLabel*>::iterator it = m_vLabels.b... |
/*
* By downloading, copying, installing or using the software you agree to this license.
* If you do not agree to this license, do not download, install,
* copy or use the software.
*
*
* License Agreement
* For Open Source Computer Vision Library
* ... |
// 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/coincontroldialog.h>
#include <qt/forms/ui_coincontroldialog.h>
#include <qt/addresstablemodel.h>
#include <qt/... |
/*
Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain softwa... |
/*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... |
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "../src/SphereFitting.hpp"
TEST_CASE( "Read sphere file", "read()" ) {
SphereReader sphere;
std::string filename("../test/data/sphere1.txt");
sphere.read(filename);
REQUIRE(sphere.getPoints().size()==135);
}
TEST_CASE( "Fit LSQ sphere of unknown radius", "f... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2017-2018 The PIVX developers
// Copyright (c) 2018 The MNEXcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license... |
/****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2010-2013 cocos2d-x.org
Copyright (c) 2011 Zynga Inc.
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charg... |
/* 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 ag... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
PostProcessBokehDOF.cpp: Post processing lens blur implementation.
=============================================================================*/
#include "RendererPrivate.h"
... |
#ifndef DDS_STREAMS_PUB_QOS_STREAM_DATA_WRITER_QOS_HPP_
#define DDS_STREAMS_PUB_QOS_STREAM_DATA_WRITER_QOS_HPP_
/*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* ... |
/**************************************************************
*
* 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 y... |
// Copyright 2016 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 <fcntl.h>
#include <poll.h>
#include <array>
#include <thread>
#if defined(__Fuchsia__)
#include <lib/fdio/directory.h>
#include <lib/zx/channel... |
#include "ros/ros.h"
#include <ros/package.h>
#include <rosbag/bag.h>
#include <rosbag/view.h>
#include <sensor_msgs/PointCloud2.h>
int main(int argc, char** argv)
{
ros::init(argc, argv, "bag_publisher");
ros::NodeHandle nh;
ros::Publisher point_cloud_publisher = nh.advertise<sensor_msgs::PointCloud2>("/camera... |
/*
client.c -- a stream socket client demo
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#define PORT "3490" // the port client will be connecting to... |
/*
* MediaStream.cpp
*/
#include <cstdio>
#include <map>
#include <algorithm>
#include <string>
#include <cstring>
#include <vector>
#include <cstdlib>
#include <ctime>
#include "./MediaStream.h"
#include "./SdpInfo.h"
#include"./WebRtcConnection.h"
#include "rtp/RtpHeaders.h"
#include "rtp/RtpVP8Parser.h"
#includ... |
// Copyright 2014 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 "xfa/fde/fde_iterator.h"
#include "xfa/fde/cfde_txtedtpage.h"
CFDE_... |
#include "cross_validation.h"
#include "approx_dimension.h"
#include "data.h"
#include "preprocess.h"
#include "train_model.h"
#include <catboost/libs/algo/calc_score_cache.h>
#include <catboost/libs/algo/helpers.h>
#include <catboost/libs/algo/learn_context.h>
#include <catboost/libs/algo/roc_curve.h>
#include <catb... |
#include <iostream>
#include <vector>
using namespace std;
class Solution
{
public:
int minTimeToVisitAllPoints(vector<vector<int>> &points)
{
int result = 0;
vector<int> current;
for (auto point : points)
{
if (current.empty())
{
current = point;
continue;
}
... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, 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 restrictio... |
// 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... |
/*
* IPCActiveComponentBase.hpp
*
* Created on: June 19, 2018
* Author: mereweth
*/
/*
* Description:
*/
#ifndef FW_IPCACTIVE_COMPONENT_BASE_HPP
#define FW_IPCACTIVE_COMPONENT_BASE_HPP
#include <Fw/Comp/IPCQueuedComponentBase.hpp>
#include <Os/Task.hpp>
#include <Fw/Cfg/Config.hpp>
namespace Fw {
c... |
////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 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.apac... |
#include "square-GraphTextItem.h"
GraphTextItem::GraphTextItem(QGraphicsItem *_parent) : QGraphicsTextItem(_parent), NodeInterface(NodeInterface::TEXT) {
setFlag(QGraphicsItem::ItemIsMovable);
setFlag(QGraphicsItem::ItemIsSelectable);
}
QVariant GraphTextItem::itemChange(GraphicsItemChange _change, con... |
// 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.
#include "flutter/shell/platform/common/json_message_codec.h"
#include "flutter/shell/platform/embedder/embedder.h"
#include "flutter/shell/platform/embedd... |
#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include <cmath>
using namespace std;
double Mile = 0;
double Kilo = 1.60934;
float Pi = 3.14159265;
int Two = 2;
int gcd(int a, int b)
{
return b == 0 ? a : gcd(b, a % b);
}
int checksum(int a)
{
int sum = 0;
while (a != 0)
{
sum = sum + a %... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may ... |
#include "klpch.h"
#include "Log.h"
#include "spdlog/sinks/stdout_color_sinks.h"
namespace Klib {
std::shared_ptr<spdlog::logger> Log::s_CoreLogger;
std::shared_ptr<spdlog::logger> Log::s_ClientLogger;
void Log::Init()
{
spdlog::set_pattern("%^[%T] %n: %v%$");
s_CoreLogger = spdlog::stdout_color_mt("KLIB");... |
/********************************************************************
* AUTHORS: Vijay Ganesh, Trevor Hansen
*
* BEGIN DATE: November, 2005
*
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 wit... |
/* The following code example is taken from the book
* "The C++ Standard Library - A Tutorial and Reference"
* by Nicolai M. Josuttis, Addison-Wesley, 1999
*
* (C) Copyright Nicolai M. Josuttis 1999.
* Permission to copy, use, modify, sell and distribute this software
* is granted provided this copyright notice a... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestTextRepresentationWithBorders.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
//
// Copyright © 2018-2022 Arm Limited.
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "EthosNConfig.hpp"
#include <armnn/backends/ILayerSupport.hpp>
#include <ethosn_support_library/SupportQueries.hpp>
namespace armnn
{
// In performance estimation mode we want to support operations which don't "... |
/*
* MRustC - Rust Compiler
* - By John Hodge (Mutabah/thePowersGang)
*
* hir/type.cpp
* - HIR Type helper code
*/
#include "type.hpp"
#include <span.hpp>
#include "expr.hpp" // Hack for cloning array types
namespace HIR {
::std::ostream& operator<<(::std::ostream& os, const ::HIR::TypeRef& ty)
{
... |
#pragma once
#include <gui_generated/containers/CurrentBase.hpp>
class Current : public CurrentBase
{
public:
Current();
virtual ~Current() {}
virtual void initialize();
virtual void SetCurrent(float value);
protected:
};
|
/* @flow */
// Copyright (c) 2012-2013 The PPCoin developers
// Copyright (c) 2015-2017 The DWG 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 "opencv2/cudaml.hpp"
namespace cv
{
namespace cuda
{
bool StatModelAsync::empty() const{ return !this->isTrained(); }
bool StatModelAsync::train( InputArray , int , InputArray , Stream& )
{
CV_Error(Error::StsNotImplemented,"This functionality has been implemented yet.");
}
} // cuda
} // cv
|
// Begin License:
// Copyright (C) 2006-2011 Tobias Sargeant (tobias.sargeant@gmail.com).
// All rights reserved.
//
// This file is part of the Carve CSG Library (http://carve-csg.com/)
//
// This file may be used under the terms of the GNU General Public
// License version 2.0 as published by the Free Software Founda... |
#include <iostream>
#include <tuple>
#include <vector>
#include <list>
#include <string>
using namespace std;
int main()
{
tuple<size_t, size_t, size_t> threeD;
tuple<string, vector<double>, int, list<int>>
someValue("constants", {3.14, 2.718}, 100, {0,1,2,3});
auto item = make_tuple("hi, hello", 3, 100.0);
c... |
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
// Copyright 2014 The Crashpad 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 ... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "utilitydialog.h"
#include "ui_helpmessagedia... |
/*
* Copyright 2014 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 contributing ... |
/*! \file
\brief Expression tree declarations
\authors Nathan Tallent, Michelle Strout
\version $Id: ExprTree.hpp,v 1.17 2005/03/17 22:35:29 ntallent Exp $
Copyright (c) 2002-2005, Rice University <br>
Copyright (c) 2004-2005, University of Chicago <br>
Copyright (c) 2006, Contributors <br>
All rig... |
#include <cmath>
#include <iostream>
#include <fstream>
#include <iomanip>
#include "vectormatrixclass.h"
using namespace std;
double E_function(Vector &x);
void dE_function(Vector &x, Vector &g);
void lnsrch(int n, Vector &xold, double fold, Vector &g, Vector &p, Vector &x,
double *f, double stpmax, int *chec... |
#include "random.hpp"
//This file will generate matrix of random numbers and vectors. We will then input it to the 3 variations
//and note the respective times in a file. We will use GNU Plot next. This file should be independently
//compiled along with openblas.cpp,mkl.cpp,Pthread.cpp,outfile.cpp
vector<vector<flo... |
#include "realgene.hpp"
#include <vector>
#include <iostream>
using namespace allgen;
using namespace std;
template<class RealType>
RealGene<RealType>::~RealGene()
{
}
template<class RealType>
RealGene<RealType>::RealGene(RealType t_min_value, RealType t_max_value)
{
m_value = (t_min_value + t_max_value)/2.0;
... |
#include "Tile.h"
#include <Engine/RendererDefault.h>
Tile::Tile(glm::uvec2 position, bool usable) : usable(usable) {
sprite.init(glm::vec2(position.x * 64, position.y * 64), glm::vec2(64), 0.f, glm::uvec4(128, 64, 0, 255), "blank");
if(!usable){
sprite.color = glm::uvec4(255);
}
}
Tile::~Tile(){
}
void Tile... |
// trivbison.cc see license.txt for copyright and terms of use
// driver file for a Bison-parser with the trivial lexer
#include "trivbison.h" // this module
#include "lexer2.h" // Lexer2
#include "trivlex.h" // trivialLexer
#include "trace.h" // traceProgress
#include "syserr.h" // xsyserr... |
//===--- MiscDiagnostics.cpp - AST-Level Diagnostics ----------------------===//
//
// 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... |
/* +---------------------------------------------------------------------------+
| Open MORA (MObile Robot Arquitecture) |
| |
| http://babel.isa.uma.es/mora/ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.