text stringlengths 7 961k |
|---|
#ifndef SS_LINEAR_HPP
#define SS_LINEAR_HPP
#include <ss/dist.hpp>
#include <ss/stest.hpp>
#include <ss/matrix.hpp>
#include <ss/data/errors.hpp>
#include <ss/internal/vargs.hpp>
#include <ss/regression/model.hpp>
namespace SS
{
struct LinearResults
{
Real AIC, BIC;
std::vector<Coeffi... |
// Copyright (c) 2018 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "script/script.h"
#include "test/test_erpcoin.h"
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(script_P2PK_... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You c... |
/*
* Copyright (C) 2013 Apple Inc. All rights reserved.
* Copyright (C) 2012 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 retai... |
#include <fstream>
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include "Tracer.h"
#include "StringBuilder.h"
#include "TimeStamp.h"
#include "FileSystem.h"
using namespace std;
using namespace cv;
namespace face
{
Tracer* Tracer::instance_ = NULL;
tbb::mutex Tracer::mutex_;
Tracer::Tracer(void)
{
... |
/*
* Copyright 2022 saehie.park@gmail.com
*
* 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 ... |
// Copyright 2018 U.C. Berkeley RISE Lab
//
// 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... |
/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2019 Panda Team
*/
#include "../../modules/mapping/ensembles.hpp"
#include "assets/helpers.cpp" // csv reade... |
#include<iostream>
using namespace std;
int main() {
int n; // Input no. of lines to be printed
cin>>n;
for(int i=1;i<=n;i++) {
for(int j=1;j<=n;j++) {
if (j==i || n-j+1 == i){
char c = (char)(i + 64);
cout<<c<<" ";
}
... |
/**************************************************************
*
* 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... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkCompositeZPass.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwar... |
//=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... |
#ifndef CAFFE_DATA_LAYERS_HPP_
#define CAFFE_DATA_LAYERS_HPP_
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/data_transformer.hpp"
#include "caffe/internal_thread.hpp"
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/util/blocking_queue.hpp"
namespace caffe {
/**
* @brief P... |
/**
* MaNGOS is a full featured server for World of Warcraft, supporting
* the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
*
* Copyright (C) 2005-2016 MaNGOS project <https://getmangos.eu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gen... |
// Copyright 2019 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.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unles... |
#include "Label1.h"
using namespace Tiny;
Label1::Label1()
{
_class = std::string();
}
Label1::Label1(std::string jsonString)
{
this->fromJson(jsonString);
}
Label1::~Label1()
{
}
void
Label1::fromJson(std::string jsonObj)
{
bourne::json object = bourne::json::parse(jsonObj);
const char *_classKey = "_... |
#include "shaderLoader.h"
#include <iostream>
#include "glad/glad.h"
ShaderSet::ShaderSet(const char* vertShader, const char* fragShader)
{
loadShaders(vertShader, fragShader);
}
void ShaderSet::loadShaders(const char* vertShaderContents, const char* fragShaderContents)
{
GLuint vertShader = glCreateShader... |
#include "indent.hpp"
namespace kp19pp{
indent_type::indent_type(commandline_options_type::indent_enum indent_kind_, int n_) :
n(n_)
{
switch(indent_kind_){
case commandline_options_type::indent_space2:
ptr = " ";
break;
case commandline_options_type::... |
/*
*
* Copyright 2017 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
//==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// Se... |
#include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const long long INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 1e18;
const long... |
//===-------- cfi.cc ------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/* Copyright (c) 2021 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 by applicable law or... |
// Arduino library for distance sensors
// Copyright 2011-2013 Jeroen Doggen (jeroendoggen@gmail.com)
#include <Arduino.h>
#include <DistanceGP2Y0A41SK.h>
/// Constructor
DistanceGP2Y0A41SK::DistanceGP2Y0A41SK()
{
}
/// getDistanceCentimeter(): Returns the distance in centimeters: between 4-36cm (3 & 37 are boundary... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wempty-body"
#pragma clang diagnostic ignored "-Wswitch"
#endif
#include "../../cpp-sdk/SDK.h"
#include "../../c-api/altv.h"
#include "CSharpScriptRuntime.h"
#include "../../cpp-sdk/version/version.h"
#ifdef __clang__
#pragma clang diag... |
/*
* Copyright (C) 2011, 2012 Igalia S.L.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This lib... |
// Copyright (C) 2016 Gideon May (gideon@borges.xyz)
//
// Permission to copy, use, sell and distribute this software is granted
// provided this copyright notice appears in all copies.
// Permission to modify the code and to distribute modified code is granted
// provided this copyright notice appears in all copies, a... |
#pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... |
/* Copyright 2015 Google 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 applicable law or agreed to in ... |
/*******************************************
* *
* Paul Frazee's Vertex Array Example *
* nehe.gamedev.net *
* 2003 *
* *
* Translation to CBuilder by Le Thanh Cong*
* ... |
/***
* Bitwuzla: Satisfiability Modulo Theories (SMT) solver.
*
* This file is part of Bitwuzla.
*
* Copyright (C) 2007-2022 by the authors listed in the AUTHORS file.
*
* See COPYING for more information on using this software.
*/
#include "test.h"
extern "C" {
#include "utils/bzlautil.h"
}
class TestRotate... |
class Solution {
public:
int longestValidParentheses(string s) {
int ret = 0, cur = 0;
int count = 0, start = 0;
for (int i = 0; i < s.length(); i++) {
if (s[i] == '(') {
count++;
} else {
if (count > 0) {
count--;
cur += 2;
} else {
if (ret < cur)
ret = cur;
cur = 0;
... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/Jobs/JobManager.h>
#include <AzCore/Jobs/Job.h>
#include <AzCore/Jobs/Internal/J... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
#include "openlr/openlr_decoder.hpp"
#include "routing/road_graph.hpp"
#include "indexer/classificator_loader.hpp"
#include "indexer/data_source.hpp"
#include "storage/country_parent_getter.hpp"
#include "platform/local_country_file.hpp"
#include "platform/local_country_file_utils.hpp"
#include "platform/platform.h... |
#ifndef STAN_MATH_PRIM_SCAL_META_VECTORBUILDER_HPP
#define STAN_MATH_PRIM_SCAL_META_VECTORBUILDER_HPP
#include <stan/math/prim/scal/meta/VectorBuilderHelper.hpp>
#include <stan/math/prim/scal/meta/contains_vector.hpp>
namespace stan {
/**
*
* VectorBuilder allocates type T1 values to be used as
* intermediate v... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "TerminalPage.h"
#include "ActionAndArgs.h"
#include "Utils.h"
#include "AppLogic.h"
#include "../../types/inc/utils.hpp"
#include <LibraryResources.h>
#include "TerminalPage.g.cpp"
#include <winrt/Microsoft.UI.Xaml.... |
// 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/browser/ui/webui/help/help_ui.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/help/help_handler.h"... |
/**
* Copyright (C) 2014 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... |
// ITP 365 Fall 2017
// HW7 - IMDB Graph
// Name: Mana Mehraein
// Email: mehraein@usc.edu
// Platform: Mac
//
// IDMBData.cpp - Implements IMDBData interface
#include "IMDBData.h"
#include <fstream>
#include <iostream>
#include <queue>
// Do for Part 1
// Function: Default Constructor
// Purpose: Loads in the actor/... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... |
//--------------------------------------------------------------------------
// File and Version Information:
// $Id: DetCylinder.hh,v 1.11 2004/08/06 05:58:29 bartoldu Exp $
//
// Description:
// Description of a DetCylinder for BaBar reconstruction
// A DetCylinder is a Surface defined by equation x^2+y^2=R in ... |
#ifndef __ACTIVITY_HAPPYTREE_EXCHANGE_HPP__
#define __ACTIVITY_HAPPYTREE_EXCHANGE_HPP__
#include "global/activity/activity.hpp"
class ActivityHappyTreeExchange : public Activity
{
public:
ActivityHappyTreeExchange(ActivityManager *activity_manager);
virtual ~ActivityHappyTreeExchange();
protected:
};
#endif // _... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "common.h"
#include "eventpipejsonfile.h"
#ifdef _DEBUG
#ifdef FEATURE_PERFTRACING
EventPipeJsonFile::Eve... |
#include "socklib/context.h"
#pragma region Connection
sc::User::Connection::Connection(sc::ip ip) {
this->queue = ActionQueue();
this->closed = false;
this->ip = ip;
}
sc::User::Connection::Connection(const Connection &c) {
this->queue = c.queue;
this->closed = c.closed;
this->ip = c.ip;
}
... |
// 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 <test/data/tx_invalid.json.h>
#include <test/data/tx_valid.json.h>
#include <test/test_veil.h>
#include <clientvers... |
// Copyright (c) 2017 Shoshana Jakobovits
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <pika/local/config.hpp>
#include <pika/functional/fun... |
//
// Number.h
// This file is part of the "Kai" project, and is released under the MIT license.
//
// Created by Samuel Williams on 19/12/11.
// Copyright (c) 2011 Orion Transfer Ltd. All rights reserved.
//
#ifndef Kai_Number_h
#define Kai_Number_h
#include "Integer.hpp"
namespace Kai {
namespace Math {
... |
#include <pthread.h>
#include <stdlib.h>
#include <sys/auxv.h>
#include <frg/eternal.hpp>
#include <bits/ensure.h>
#include <mlibc/allocator.hpp>
#include <mlibc/debug.hpp>
#include <mlibc/posix-pipe.hpp>
#include <mlibc/all-sysdeps.hpp>
// defined by the POSIX library
void __mlibc_initLocale();
extern "C" uintptr_... |
// Copyright (c) 2014 Mohit Shridhar, David Lee
// 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... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... |
// 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/runtime/runtime_controller.h"
#include "flutter/fml/message_loop.h"
#include "flutter/fml/trace_event.h"
#include "flutter/lib/ui/compos... |
#include "jln/mp/smp/algorithm/count.hpp" |
#ifndef SNABL_TYPE_FLOAT_HPP
#define SNABL_TYPE_FLOAT_HPP
#include "snabl/std.hpp"
#include "snabl/type.hpp"
namespace snabl {
struct FloatType: Type<Float> {
FloatType(Lib &lib, Sym id, const vector<AType *> &parents);
Cmp cmp(const Box &lhs, const Box &rhs) const override;
void dump(const Box &va... |
// Copyright (C) 2011 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#include "common.h"
#include <fstream>
#include <dlib/error.h>
// ----------------------------------------------------------------------------------------
std::string strip_path (
cons... |
// Copyright © 2015 The CefSharp 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 "Stdafx.h"
#include "Primitives.h"
#include "JsObjectsSerialization.h"
#include "V8Serialization.h"
namespace CefSharp
{
namespace Interna... |
/*******************************************************************************
* Copyright 2021 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
/**
* \file PnlWznmVer1NRelation_blks.cpp
* job handler for job PnlWznmVer1NRelation (implementation of blocks)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
using namespace std;
using namespace Sbecore;... |
/**
* Copyright (c) 2016-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.
*/
#include <m... |
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 The PIVX developers
// Copyright (c) 2020 The CryptoDev developers
// Copyright (c) 2020 The FunCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-lice... |
#include "ecooling.h"
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstring>
#include "constants.h"
#include "cooler.h"
#include "force.h"
#include "functions.h"
#include "ring.h"
#include <fstream>
#include <vector>
#include <float.h>
std::unique_ptr<double []> x_bet, xp_bet, y_bet, yp_bet, ds, d... |
//=================================================================================================
/*!
// \file src/mathtest/traits/columntrait/ClassTest.cpp
// \brief Source file for the ColumnTrait class test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// This file is part of the Blaze... |
//
// Copyright (C) 2015 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... |
// MFStepper.cpp
//
// Copyright (C) 2013-2014
#include "MFBoards.h"
#include "MFStepper.h"
#include "MFButton.h"
uint8_t MFStepper_stepperCount = 0;
MFStepper *MFStepper_steppers[MAX_STEPPERS];
void addStepper(MFStepper *stepper)
{
MFStepper_steppers[MFStepper_stepperCount] = stepper;
MFStepper_stepperCount++;
... |
/**
* \file dnn/src/cuda/warp_perspective/forward.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed o... |
#include <StdAfx.h>
#include <MrMapi/MrMAPI.h>
#include <MrMapi/mmcli.h>
#include <MrMapi/MMAccounts.h>
#include <MrMapi/MMAcls.h>
#include <MrMapi/MMContents.h>
#include <MrMapi/MMErr.h>
#include <MrMapi/MMFidMid.h>
#include <MrMapi/MMFolder.h>
#include <MrMapi/MMNamedProps.h>
#include <MrMapi/MMProfile.h>
#include <M... |
/// @ref core
/// @file glm/detail/type_mat2x4.hpp
#pragma once
#include "type_vec2.hpp"
#include "type_vec4.hpp"
#include <limits>
#include <cstddef>
namespace glm
{
template<typename T, qualifier Q>
struct mat<2, 4, T, Q>
{
typedef vec<4, T, Q> col_type;
typedef vec<2, T, Q> row_type;
typedef mat<2, 4, T,... |
// Library Includes
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
// User Credential Includes.
#include "wifiCred.h"
#include "mqttCred.h"
WiFiClient espClient;
PubSubClient client(espClient);
long lastMsg = 0;
char msg[50];
int value = 0;
void setup_wifi() {
delay(10);
// We start b... |
#include "huaweicloud/ocr/v1/model/RecognizeVatInvoiceResponse.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Ocr {
namespace V1 {
namespace Model {
RecognizeVatInvoiceResponse::RecognizeVatInvoiceResponse()
{
resultIsSet_ = false;
}
RecognizeVatInvoiceResponse::~RecognizeVatInvoiceResponse() = default;... |
// Description: C++18 DbIO interface implementation for MimeType.
/*
* org.msscf.msscf.CFInt
*
* Copyright (c) 2020 Mark Stephen Sobkow
*
* MSS Code Factory CFInt 2.13 Internet Essentials
*
* Copyright 2020-2021 Mark Stephen Sobkow
*
* This file is part of MSS Code Factory.
*
* MSS Code Factory is ava... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "storage/common/fileapi/file_system_util.h"
#include <stddef.h>
#include "base/files/file_path.h"
#include "base/macros.h"
#include "testing/gt... |
// 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 "listwrapperobjects.h"
#include "getuserinfobyloginresult.h"
namespace MoodBox
{
GetUserInfoByLoginResultData::GetUserInfoByLoginResultData() : QSharedData()
{
}
GetUserInfoByLoginResultData::GetUserInfoByLoginResultData(UserInfo result) : QSharedData()
{
this->result = result;
}
GetUserInfoByLoginResul... |
// Copyright 2016 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/source-position-table.h"
#include "src/log.h"
#include "src/objects-inl.h"
#include "src/objects.h"
namespace v8 {
namespace internal {
... |
// Copyright (c) 2012-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet/wallet.h"
#include <set>
#include <stdint.h>
#include <utility>
#include <vector>
#include <boost/test... |
#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <string>
#include <fstream>
#include "XORHeader.h"
using namespace std;
string XOREncryptDecrypt(string stringToEncrypt, int key)
{
string result = stringToEncrypt;
for (int i = 0; i < result.size(); i++)
{
result[i] ^= key;
}
return result... |
/***************************************************/ /**
* @file OBPGetWifiConfigurationSSIDExchange.cpp
* @date March 2017
* @author Ocean Optics, Inc.
*
* LICENSE:
*
* SeaBreeze Copyright (C) 2017, Ocean Optics Inc
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of... |
// Copyright 2016 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
#pragma once
namespace Cyanite::GraphicsKit {
class Heap
{
public:
[[nodiscard]] auto Start() const->uint64_t;
[[nodiscard]] auto Size() const->size_t;
[[nodiscard]] auto Offset() const->uint64_t;
auto Allocate() -> void;
private:
uint64_t _start;
size_t _size;
uint64_t _offset;
winrt::com_ptr<ID3... |
//
// Copyright (c) 2017 The nanoFramework project contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include <nanoCLR_Runtime.h>
#include <nanoCLR_Debugging.h>
#include <nanoHAL.h>
#include <WireProtocol.h>
#incl... |
// Copyright (c) 2016-2017 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAOCPP_JSON_INCLUDE_EVENTS_TEE_HPP
#define TAOCPP_JSON_INCLUDE_EVENTS_TEE_HPP
#include <cstdint>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#... |
#ifndef PROJET_DISTRIBUTEUR
#define PROJET_DISTRIBUTEUR
#include "./Monnayeur.hpp"
#include "./Stock.hpp"
class Distributeur {
public:
int num_produit;
Stock stock_produits;
Monnayeur monnayeur;
public:
Distributeur(bool init = true);
~Distributeur(){};
bool produit_demande() const;
void delivre_produit()... |
#include "opentelemetry/exporters/otlp/otlp_exporter.h"
#include "opentelemetry/exporters/otlp/recordable.h"
#include <grpcpp/grpcpp.h>
#include <fstream>
#include <iostream>
OPENTELEMETRY_BEGIN_NAMESPACE
namespace exporter
{
namespace otlp
{
// ----------------------------- Helper functions ------------------------... |
#include "hclib_cpp.h"
#include <vector>
void work(int n){
//n++;
printf("inside work with index: %d \n",n);
}
void entrypoint(void *arg){
std::vector<hclib::promise_t<void>*> allPromises;
for(int i=0; i<50; ++i){
allPromises.push_back(new hclib::promise_t<void>());
int index = allProm... |
// Copyright (c) 2011 Helge Bahmann
// Copyright (c) 2012 Tim Blechmann
//
// 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)
// Attempt to determine whether the memory ordering/ fence operations
// work as exp... |
#include <ros/ros.h>
#include <actionlib/client/simple_action_client.h>
#include <costmap_2d/costmap_2d_ros.h>
#include <costmap_2d/costmap_2d.h>
#include <geometry_msgs/PolygonStamped.h>
#include <geometry_msgs/PointStamped.h>
#include <frontier_exploration/geometry_tools.h>
#include <frontier_exploration/ExploreTa... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_array_delete_class_13.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_array_delete.label.xml
Template File: sources-sinks-13.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Managemen... |
#ifdef PEGASUS_OS_SOLARIS
#ifndef __UNIX_AFFECTEDJOBELEMENT_PRIVATE_H
#define __UNIX_AFFECTEDJOBELEMENT_PRIVATE_H
#endif
#endif |
#include "uutWindow.h"
#include "input/uutInput.h"
#include "application/uutEventListener.h"
#include <windows.h>
#include <windowsx.h>
namespace uut
{
LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
Window::Window()
: _handle(0)
, _size(0, 0)
{
}
bool Window::Create(cons... |
/**
* @file mxs244_prepared_stmt_loop.cpp mxs244_prepared_stmt_loop executed following statements in the loop
* against all maxscales->routers[0]:
* @verbatim
* SET NAMES "UTF8";
* PREPARE s1 FROM 'SHOW GLOBAL STATUS WHERE variable_name = ?';
* SET @a = "Com_stmt_prepare";
* EXECUTE s1 USING @a;
* PREPARE ... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2012, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
#include<iostream>
using namespace std;
int main()
{
cout<<"hello world";
return 0;
} |
/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/cmd_parse/hw_parse.h"
namespace NEO {
template <typename FamilyType>
void HardwareParse::findHardwareCommands(IndirectHeap *dsh) {
using GPGPU_WALKER = typename FamilyType::GPGPU_WALKER;
usi... |
/* ===========================================================================
*
* This file is part of HISE.
* Copyright 2016 Christoph Hart
*
* HISE 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,... |
/*
*
* Copyright 2015, 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 condi... |
// -*- mode: c++; c-basic-offset: 2 -*-
#ifndef CLICK_RAWSOCKET_HH
#define CLICK_RAWSOCKET_HH
#include <click/element.hh>
#include <click/task.hh>
#include <click/timer.hh>
#include <click/notifier.hh>
#ifdef __linux__
# define RAWSOCKET_ALLOW_LINUX 1
#endif
CLICK_DECLS
/*
=c
RawSocket("TCP", <TCP source port numbe... |
/**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <cstdio>
using namespace std;
int main() {
puts("KABIR");
return 0;
} |
#include "../include/base_realsense_node.h"
#include "../include/sr300_node.h"
#include <pcl_conversions/pcl_conversions.h>
#include <opencv2/calib3d/calib3d.hpp>
using namespace realsense_ros_camera;
std::string BaseRealSenseNode::getNamespaceStr()
{
auto ns = ros::this_node::getNamespace();
ns.erase(std::re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.