text stringlengths 7 961k |
|---|
#include <iostream>
using namespace std;
int main() {
// declare an int pointer
int* pointInt;
// declare a float pointer
float* pointFloat;
// dynamically allocate memory
pointInt = new int;
pointFloat = new float;
// assigning value to the memory
*pointInt = 45;
*pointFloat... |
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "LittleFighterGameMode.h"
#include "LittleFighterCharacter.h"
ALittleFighterGameMode::ALittleFighterGameMode()
{
// Set default pawn class to our character
DefaultPawnClass = ALittleFighterCharacter::StaticClass();
} |
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... |
// Copyright (c) 2011-2017 The Usdecoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <wallet/wallet.h>
#include <qt/receivecoinsdialog.h>
#include <qt/forms/ui_receivecoinsdialog.h>
#include <qt/add... |
// 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 <unittest/unittest.h>
#include <fbl/intrusive_double_list.h>
#include <fbl/tests/intrusive_containers/intrusive_doubly_linked_list_checker.h>
#inc... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2010 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt... |
// Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#ifndef CONFIGURATIONOUTPUTSTREAMING_HPP
#define CONFIGURATIONOUTPUTSTREAMING_HPP
#include "ui_configurationoutputstreaming.h"
#include "outputconfigurationwidget.hpp"
class LiveOutputRTMP;
class IStreamingServiceConfiguration;
class Configur... |
// Copyright (c) 1993-1999 Microsoft Corporation
#ifndef __DBENTRY_DEFINED__
#define __DBENTRY_DEFINED__
#define EXPECTED_CHAR (1)
#define EXPECTED_CONSTRUCT (2)
typedef struct _dbentry {
short fExpected;
short State;
char * pExpected;
} DBERR;
#endif /*__DBENTRY_DEFINED__*/
#define ACF_MAX_DB_ENTRIES 57
c... |
/*************************************************************************/
/* gd_tokenizer.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014, John Haddon. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributio... |
#include <iostream>
#include <vector>
#include <cstdlib>
using namespace std;
struct ListNode {
int val;
ListNode* next;
};
ListNode* init(vector<int> vals) {
ListNode* head = new ListNode;
ListNode* last = head;
for (int i: vals) {
ListNode* tmp = (ListNode*)malloc(sizeof(ListNode));
... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
/*---------------------------------------------------------------------
*
* Copyright © 2015 Minsi Chen
* E-mail: m.chen@derby.ac.uk
*
* The source is written for the Graphics I and II modules. You are free
* to use and extend the functionality. The code provided here is functional
* however the author does not guaran... |
#ifndef ___Class_Date
#define ___Class_Date
#include <string>
#include <iostream>
class Date {
int year;
int month;
int day;
static int dmax[];
static int get_days_of_year(int year);
static int get_days_of_month(int year, int month);
public:
static bool is_leap_year(int year) {
return (year % 4 ... |
/*
* Copyright (c) 2012, Michael Lehn
*
* 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,... |
/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/utilities/perf_profiler.h"
#include "runtime/utilities/stackvec.h"
#include "os_inc.h"
#include <atomic>
#include <cstring>
#include <sstream>
#include <thread>
using namespace std;
namespace NEO {
std::at... |
<?hh
namespace Titon\Http\Server;
use Titon\Http\Http;
use Titon\Test\TestCase;
class XmlResponseTest extends TestCase {
public function testSend(): void {
$time = time();
$response = new XmlResponse(['foo' => 'bar']);
$response->debug();
$response->date($time);
ob_start(... |
/** Copyright 2020 Alibaba Group Holding 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
/*
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
#include <bits/stdc++.h>
using namespace std;
#define notcare '\0'
typedef uint8_t byte;
map<char, int> freq;
struct Node {
char value;
int freqNode;
Node *left, *right;
Node(char a) : value(a), left(nullptr), right(nullptr), freqNode(freq[a]) {}
};
bool cmp (Node* a, Node* b) { return a->freqNode > b->fr... |
// Copyright (c) 2013-2019 The Syscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include <key.h>
#include <key_io.h>
#include <uint256.h>
#include <util/system.h>
#incl... |
// Copyright 2018 Vaniya Agrawal, Ross Arcemont, Kristofer Hoadley,
// Shawn Hulce, Michael McCulley
/// A logger.
/**
* This logger adhers to the LoggerInterface. It is a singleton,
* accessed through the static method Instance().
*
* @file logger.hpp
* @authors Kristofer Hoadley
* ... |
//------------------------------------------------------------------------------
/*
This file is part of skywelld: https://github.com/skywell/skywelld
Copyright (c) 2012-2014 Skywell Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is here... |
// -*- coding: utf-8 -*-
#include <doctest/doctest.h>
// #include <iostream>
#include <tuple>
#include <cmath>
#include <complex>
#include <ellcpp/cutting_plane.hpp>
#include <ellcpp/ell.hpp>
#include <ellcpp/oracles/lowpass_oracle.hpp>
#include <ellcpp/utility.hpp>
#include <limits>
#include <xtensor-blas/xlinalg.hpp... |
//
// PoolTorch.cpp
// MNNConverter
//
// Created by MNN on 2021/05/10.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <stdio.h>
#include "torchOpConverter.hpp"
DECLARE_OP_CONVERTER(PoolTorch);
MNN::OpType PoolTorch::opType() {
return MNN::OpType_Pooling;
}
MNN::OpParameter PoolTorch::type() ... |
// Copyright 2014, Yahoo! Inc.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Some portions of this file:
// 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 th... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
// Copyright 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 "components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.h"
#include "components/data_reduction_proxy/core/browser/data_re... |
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++98 -Wno-c++11-extensions -Wc++11-compat
void f() {
auto a = a; // expected-error{{variable 'a' declared with 'auto' type cannot appear in its own initializer}}
auto *b = b; // expected-error{{variable 'b' dec... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sendcoinsentry.h"
#inc... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*/
#include "Yoga.h"
#include "log.h"
#include <float.h>
#include <string.h>
#include <algorithm>
#include <memory>
#include "Utils.h"... |
#include "Connection.h"
#include "assert/Assert.h"
#include "error/makeErrnoErrorCode.h"
#include <unistd.h>
#include <utility>
network::Connection::Connection(Socket&& socket)
: m_socket(std::move(socket)) {
}
network::Connection::Connection(Connection&& connection)
: m_socket(std::move(connection.m_socket)) ... |
/*
www.sourceforge.net/projects/tinyxml
Original code (2.0 and earlier )copyright (c) 2000-2002 Lee Thomason (www.grinninglizard.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.
Permiss... |
/* 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... |
#include <SDKDDKVer.h>
#include <ppl.h>
#include <ppltasks.h>
#include <stdio.h>
#include <tchar.h>
#include <iostream>
#include <time.h>
#include <vector>
#include <tuple>
#include <thread>
#include <sstream>
#include <winsock2.h>
#include <ws2tcpip.h>
#include "NovahTracerEngine.h"
#include "Console.h"
#include "... |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/globals.h"
#if defined(HOST_OS_WINDOWS)
#include "vm/virtual_memory.h"
#include "platfor... |
#include "TestTemplate.h"
#include "CsvParser.h"
#include "NodeDefines.h"
#include "StringResolved.h"
#define FIELD_ID std::string("ID")
#define FIELD_EFFECT std::string("Effect")
#define FIELD_VALUE std::string("Value")
#define FIELD_VALUE_LV std::string("Value_Lv")
#define FIELD_EFFECTTIMES std::string("EffectTimes"... |
// 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 <stddef.h>
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/files/scoped_temp_dir.h"
#include "base/macros.h"
#in... |
// -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... |
#include "editaddressdialog.h"
#include "ui_editaddressdialog.h"
#include "addresstablemodel.h"
#include "guiutil.h"
#include <QDataWidgetMapper>
#include <QMessageBox>
EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) :
QDialog(parent),
ui(new Ui::EditAddressDialog), mapper(0), mode(mode), mod... |
#define BOOST_TEST_MODULE "Config"
#include <boost/test/unit_test.hpp>
#include "conf.hpp"
#include "test/buildpaths.hpp"
#include <iostream>
BOOST_AUTO_TEST_CASE(json_parse) {
RelSpec rel;
parse_config(std::string(g_path) + std::string("json_conf1.txt"),
rel);
}
BOOST_AUTO_TEST_CASE(json_parse2) {
RelSpec re... |
#include <qt/veil/settings/settingsfaq04.h>
#include <qt/veil/forms/ui_settingsfaq04.h>
SettingsFaq04::SettingsFaq04(QWidget *parent) :
QWidget(parent),
ui(new Ui::SettingsFaq04)
{
ui->setupUi(this);
connect(ui->label_2,SIGNAL(linkActivated(QString)),parent, SLOT(onRadioButton06Clicked()));
}
Settings... |
/**********************************************************************************
Copyright (C) 2012 Syed Reza Ali (www.syedrezaali.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software wi... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
// Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translato... |
#ifndef GAME_GAME_HPP
#define GAME_GAME_HPP
#include <map>
#include "app.hpp"
#include "draw.hpp"
#include "game/ai.hpp"
#include "game/cell.hpp"
#include "game/field.hpp"
#include "game/line.hpp"
#include "game/state.hpp"
#include "keyboard.hpp"
#include "mouse.hpp"
#include "res_keeper.hpp"
#include "timer.hpp"
#in... |
#include "vtkIOExport.h"
vtkIOExport::vtkIOExport()
{
} |
DEFCLASS("Insurgency") ["_self", "_radius", "_side", "_targets"] DO {
if ( isNil "_side" ) then { _side = OPFOR };
if ( isNil "_targets" ) then { _targets = [] };
_self setVariable [ "radius", _radius ];
_self setVariable [ "side", _side ];
_self setVariable [ "targets", _targets ];
_self
} ENDCL... |
// Copyright 2012 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 <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <i... |
//
// NetworkAccessManager.cpp
// libraries/networking/src
//
// Created by Clement on 7/1/14.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "NetworkAccessManager.h... |
#include "mvCandleSeries.h"
#include "mvCore.h"
#include "mvApp.h"
#include "mvItemRegistry.h"
#include "mvPythonExceptions.h"
#include "AppItems/fonts/mvFont.h"
#include "AppItems/themes/mvTheme.h"
#include "AppItems/containers/mvDragPayload.h"
namespace Marvel {
template <typename T>
int BinarySearch(const ... |
#include <seqan3/core/platform.hpp>
#if SEQAN3_WITH_CEREAL
//![complete]
#include <fstream>
#include <cereal/archives/binary.hpp>
#include <seqan3/argument_parser/all.hpp>
#include <seqan3/core/debug_stream.hpp>
#include <seqan3/io/sequence_file/input.hpp>
#include <seqan3/search/all.hpp>
#include <seqan3/search/fm_i... |
#include <sirius.h>
using namespace sirius;
#define stdpow(x,y) std::pow(x,y)
#define stdexp(x) std::exp(x)
#define stdsin(x) std::sin(x)
#define stdcos(x) std::cos(x)
#define stdlog(x) std::log(x)
double check_spline(Spline<double> const& s__, std::function<double(double)> f__, double x0__, double x1__)
{
Radia... |
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *blacercoin_strings[] = {
QT_TRANSLATE_NOOP("blacercoin-core", " mints deleted\n"),
QT_TRANSLATE_NOOP("blacercoin-core", " mints updated, "),
... |
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* 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
* ... |
#include <string>
using namespace std;
/**
* LeetCode 1876. Substrings of Size Three with Distinct Characters
* https://leetcode.com/problems/substrings-of-size-three-with-distinct-characters/
*/
class SubstringsOfSizeThreeWithDistinctCharacters {
public:
int countGoodSubstrings(string s) {
if (s.size(... |
/*
* Qt4 bitcoin GUI.
*
* W.J. van der Laan 2011-2012
* The Bitcoin Developers 2011-2012
*/
#include <QApplication>
#include "bitcoingui.h"
#include "transactiontablemodel.h"
#include "optionsdialog.h"
#include "aboutdialog.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "walletframe.h"
#include "... |
#include <gtest/gtest.h>
#include <glisseo/utils/Select.h>
TEST(Select, Defaults)
{
Glisseo::Select select;
EXPECT_TRUE(select.getAutoReloadTimeout());
EXPECT_EQ(select.getTimeout().tv_sec, 15);
EXPECT_EQ(select.getTimeout().tv_usec, 0);
EXPECT_EQ(select.getWriteDescriptorCount(), 0);
}
TEST(Sel... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: LightPairRotationEven... |
/**
* @file hmi.cpp
* @author Christof Menzenbach
* @date 9 Feb 2018
* @brief 4.2" Softkey based HMI of status display.
*
* A central ScreenManager manages different screens with event handlers.
*/
#include <TimeLib.h>
#include <epd4in2.h>
#include <Adafruit_GFX.h>
#include <FreeRTOS.h>
#include <freertos/timer... |
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* reverseList... |
#include "head.h"
/**
https://leetcode.com/problems/longest-common-prefix
Write a function to find the longest common prefix string amongst an array of strings.
*/
// refer to: https://discuss.leetcode.com/topic/27913/sorted-the-array-java-solution-2-ms
// modified
/**
* 一组字符串的最长公共前缀
*/
/**
* 所有字符串按字符大小排序,第一个... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a RdGen v1.10.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-----------------------------------... |
//===-- Editline.cpp ------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/**
* @file constants.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2017-2021 TileDB, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without re... |
/*******************************************************************************
* Copyright 2017-2018 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.apa... |
// Copyright (c) 2021 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/newstablemodel.h>
#include <chain.h>
#include <txdb.h>
#include <utilmoneystr.h>
#include <validation.h>
#include ... |
/* file: neural_networks_prediction_dense_feedforward_batch_fpt_cpu.cpp */
/*******************************************************************************
* Copyright 2014-2018 Intel Corporation
* All Rights Reserved.
*
* If this software was obtained under the Intel Simplified Software License,
* the following te... |
/* 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... |
/// @ref gtx_matrix_major_storage
/// @file glm/gtx/matrix_major_storage.hpp
namespace glm
{
template<typename T, qualifier Q>
GLM_FUNC_QUALIFIER mat<2, 2, T, Q> rowMajor2
(
vec<2, T, Q> const& v1,
vec<2, T, Q> const& v2
)
{
mat<2, 2, T, Q> Result;
Result[0][0] = v1.x;
Result[1][0] = v1.y;
Result[0]... |
// Copyright 2012 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/regexp/regexp-macro-assembler.h"
#include "src/codegen/assembler.h"
#include "src/execution/isolate-inl.h"
#include "src/execution/pointe... |
#include "common/http/conn_manager_utility.h"
#include <atomic>
#include <cstdint>
#include <string>
#include "envoy/type/v3/percent.pb.h"
#include "common/common/empty_string.h"
#include "common/common/utility.h"
#include "common/http/conn_manager_config.h"
#include "common/http/header_utility.h"
#include "common/h... |
/**
Copyright 2013 BlackBerry Inc.
Copyright (c) 2015-2017 Chukong Technologies
Copyright (c) 2017-2018 Xiamen Yaji Software 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://... |
/*
BSD 3-Clause License - Please see LICENSE file for full license
*/
#include "glMgr.h"
#include <OpenGLES/ES2/glext.h>
#include <cassert>
namespace Saka
{
VAO::VAO() :
vao(makeVao())
{}
VAO::~VAO()
{
glDeleteVertexArraysOES(1, &vao);
}
GLuint VAO::makeVao()
{
GLuint ... |
//===--- ParseDecl.cpp - Swift Language Parser for Declarations -----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
// 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_RENDERER_TEXTURE_BASE_SHARED_PTR_HPP_INCLUDED
#define SGE_RENDERER_TEXTURE_BASE_SHARED_... |
#include "ConvexHull.h"
#include "dgConvexHull3d.h"
#include "WuQuantizer.h"
#include "ApexUsingNamespace.h"
/*!
**
** Copyright (c) 2015 by John W. Ratcliff mailto:jratcliffscarab@gmail.com
**
**
** The MIT license:
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software... |
/*****************************************************************************
NewChromsweep.cpp
(c) 2009 - Aaron Quinlan
Hall Laboratory
Department of Biochemistry and Molecular Genetics
University of Virginia
aaronquinlan@gmail.com
Licenced under the GNU General Public License 2.0 license.
***********... |
#include "docker/docker_client.h"
#include <utility>
#include <sstream>
Docker::Docker() : host_uri("http:/v1.40"){
curl_global_init(CURL_GLOBAL_ALL);
is_remote = false;
mActiveTransfers = 0;
}
Docker::~Docker(){
curl_global_cleanup();
}
JSON_DOC Docker::inspect_containers(const std::vector<std::stri... |
#pragma once
#include <bench/tests/mongodb/mongodb_test_template.hpp>
namespace bench
{
namespace tests
{
namespace mongodb
{
namespace integer
{
class add : public mongodb_test_template<add>
{
public:
explicit add(bench::test_config config) : mongodb_test_template(config)
{
}
void setup() override
... |
//
// Created by Bradley Austin Davis 2015/10/23
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "ActionEndpoint.h"
#include <DependencyManager.h>
#include "../../Use... |
// Copyright (c) 2011-2013 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 "qvaluecombobox.h"
QValueComboBox::QValueComboBox(QWidget *parent) :
QComboBox(parent), role(Qt::UserRole)
... |
/*
* Copyright (C) 2012-2015 Open Source Robotics Foundation
*
* 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... |
/**
* @file
* @brief Builds irregular boxes (library "dgn").
**/
#include "AppHdr.h"
#include "dgn-irregular-box.h"
#include <vector>
#include "mapdef.h"
#include "message.h"
#include "random.h"
// Adds a simple hollow box to the map with the specified
// coordinates, glyphs, and number of doors. This is the
//... |
#include <cmath>
#include <cstdio>
#include <vector>
#include<unordered_map>
#include <iostream>
#include <algorithm>
using namespace std;
enum State {
Unvisited = -1,
CurrentlyVisit = 0,
Visited = 1
};
const int MAX_NUMBER = 1000000;
unordered_map<int, vector<int>> graphMade;
unordered_map<int, State> vi... |
//
// Copyright 2016 The ANGLE 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.
//
// ComputeShaderTest:
// Compute shader specific tests.
#include "test_utils/ANGLETest.h"
#include "test_utils/gl_raii.h"
#include <vector>
... |
#include "shared/compiler/iCodeGenerator.hpp"
#include "shared/compiler/instructions/pushStringInstruction.hpp"
Compiler::PushStringInstruction::PushStringInstruction(std::string opcode, std::string value) : iInstructionSet(opcode)
{
this->value = value;
};
Compiler::PushStringInstruction::~PushStringInstruction()
... |
#include "jit.h"
#include <string>
#include <sys/mman.h>
#include <unistd.h>
using namespace bf;
jit::jit(architecture *arch, size_t mem_pages, size_t exec_pages) :
// mmap pages with PROT_WRITE or PROT_EXEC (w^x).
arch(arch),
mem_pages(mem_pages),
exec_pages(exec_pages),
mem((uint8_t *) mmap(NULL,
mem_pages ... |
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/globals.h" // NOLINT
#if defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME)... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* 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.
*/
#include <tensorpipe/transport/uv/sockaddr.h>
#include <array>
#include <cstring>
#include <sstream>... |
/* 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 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 "content/renderer/media/cache_util.h"
#include <string>
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLContextDevice3D.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 ... |
#include <iostream>
#include <string>
#define N_ALPHABATS 26
using namespace std;
class TrieNode {
public:
TrieNode* child[N_ALPHABATS];
bool isTerm;
TrieNode() {
isTerm = false;
for (int i = 0; i < N_ALPHABATS; i++) {
child[i] = NULL;
}
}
~TrieNode() {
... |
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include "caf/byte_span.hpp"
#include "caf/error.hpp"
#include "caf/logger.h... |
#include <boost/locale.hpp>
#include <boost/range/algorithm/find.hpp>
int main(int argc, const char * const argv[])
{
auto backends = boost::locale::localization_backend_manager::global().get_all_backends();
return ! ( boost::find( backends, "icu" ) != backends.end() );
} |
/*
*
* Authors: Fernando Amat
* test_load_multiview_images.cpp
*
* Created on : June 5th, 2015
* Author : Fernando Amat
*
* \brief calculate total variation and compare it to C code
*
*/
#include <iostream>
#include <fstream>
#include <cstdint>
#include <chrono>
#include <string>
#include <math.h>
#include "klb_Cwra... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE127_Buffer_Underread__CWE839_connect_socket_81_goodB2G.cpp
Label Definition File: CWE127_Buffer_Underread__CWE839.label.xml
Template File: sources-sinks-81_goodB2G.tmpl.cpp
*/
/*
* @description
* CWE: 127 Buffer Underread
* BadSource: connect_socket Read data using a ... |
// Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_consolas_31_latin1_*,
/... |
{%- if cookiecutter.framework == 'Arduino' -%}
#include <Arduino.h>
{%- if cookiecutter.use_u8g2 -%}
#include <U8g2lib.h>
{%- endif -%}
{%- if cookiecutter.use_fastled -%}
#include <FastLED.h>
{%- endif -%}
{%- elif cookiecutter.framework == 'ESP-IDF'-%}
#include <stdlib.h>
#include <string.h>
#include <sys/cdefs.h>
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.