text stringlengths 5 1.04M |
|---|
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
// (C) Copyright 2003-2007 Jonathan Turkanis
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
// See http://www.boost.org/libs/iostreams for docume... |
#pragma once
#include "qpup_control_loop.hpp"
#include "qpup_hw/qpup_hw_real.hpp"
namespace qpup_control {
class QPUPControlLoopReal : public QPUPControlLoop {
public:
explicit QPUPControlLoopReal(const ros::NodeHandle &nh);
void runForeverBlocking();
};
} // namespace qpup_control
|
#include "caffe2/operators/pool_op.h"
#include "caffe2/utils/eigen_utils.h"
namespace caffe2 {
using std::max;
using std::min;
namespace {
// These two classe are just used as template arguments passed to the
// PoolGradientOp
// template to instantiate the different algorithms.
template <typename T>
class AveragePo... |
#include <Data/RIGID_STRUCTURE.h>
#include <Data/RIGID_STRUCTURE_DATA.h>
#include <Driver/SIMULATION.h>
#include <Force/FORCE.h>
#include <Force/SPRING_FORCE.h>
#include <Utilities/RANDOM.h>
#include <algorithm>
#include <cerrno>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <Dat... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... |
//------------------------------------------------------------------------------
// debugserver.cc
// (C) 2008 Radon Labs GmbH
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "debug/debugserver.h"... |
//MOHAMMAD added
#include "caffe2/operators/elementwise_op.h"
#include "caffe2/utils/math.h"
namespace caffe2 {
struct AbsCPUFunctor {
template <typename T>
inline void
operator()(const int n, const T* x, T* y, CPUContext* device_context) {
math::Abs<T, CPUContext>(n, x, y, device_context);
}
};
struct ... |
// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQSBMLFileDialog.cpp,v $
// $Revision: 1.12 $
// $Name: $
// $Author: shoops $
// $Date: 2012/04/27 16:33:29 $
// End CVS Header
// Copyright (C) 2012 - 2010 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., U... |
/*
This file contains HEAP definitions.
Kalev Kask, May 2002.
*/
#ifndef HEAP_HXX_INCLUDED
#define HEAP_HXX_INCLUDED
#define HEAP_DEFAULT_SIZE 128
#define HEAP_SIZE_LIMIT 1048576
class CMauiHeap
{
protected :
// number of elements in the heap; actual key/data array sizes are m_size+1 since us... |
/**********************************************************************
* $Id: cpl_path.cpp 25181 2012-10-27 11:52:46Z rouault $
*
* Project: CPL - Common Portability Library
* Purpose: Portable filename/path parsing, and forming ala "Glob API".
* Author: Frank Warmerdam, warmerdam@pobox.com
*
**************... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "Props.h"
#include <fabric/core/propsConversions.h>
#include <folly/dynamic.h>
namespace facebook {
namespace react {
Props:... |
// 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 <fs.h>
#include <test/util/setup_common.h>
#include <util/getuniquepath.h>
#include <util/system.h>
#include <boo... |
#include "perf_precomp.hpp"
using namespace std;
using namespace cv;
using namespace perf;
using std::tr1::make_tuple;
using std::tr1::get;
enum { TYPE_5_8 =FastFeatureDetector::TYPE_5_8, TYPE_7_12 = FastFeatureDetector::TYPE_7_12, TYPE_9_16 = FastFeatureDetector::TYPE_9_16 };
CV_ENUM(FastType, TYPE_5_8, TYPE_7_12, T... |
#include <stan/math/rev/arr.hpp>
#include <gtest/gtest.h>
#include <vector>
TEST(AgradRevErrorHandlingScalar, CheckConsistentSizeVarCheckVectorized) {
using stan::math::check_consistent_sizes;
using stan::math::var;
using std::vector;
int N = 5;
const char* function = "check_consistent_size";
vector<var> ... |
// ----------------------------------------------------------
/*!
\class AObjectA
\title
\brief Template file classes/cpp/file.cpp
\list
\li @notice Template file classes/file.h
\li @copyright Arboreus (http://arboreus.systems)
\li @author Alexandr Kirilov (http://alexandr.kirilov.me)
\li @created 13/10/2020 a... |
#include "internal.hpp"
auto string_from(const Token_type &token_type) -> std::string
{
switch (token_type) {
case Token_type::nil:
return "nil";
case Token_type::number:
return "number";
case Token_type::string:
return "string";
case Token_type::boolean:
return "boolean";
case... |
/**
* \file DlgWzskFilDownload.cpp
* job handler for job DlgWzskFilDownload (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Emily Johnson (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
#ifdef WZSKCMBD
#include <Wzskcmbd.h>
#else
#include <Wzskd.h>
#endif
#... |
/* This test is part of pocl.
* Author: Kalle Raiskila, 2014
*
* Test the OpenCL-C 'shuffle' command by looping
* over all permutations of data and mask vector
* lengths. Only one data type at a time is tested,
* the type to test is passed as command line argument
* (this allows for more interactive testsuite, a... |
#include <print.hpp>
#include <gtest/gtest.h>
TEST(Print, InFileStream)
{
std::string filepath = "file.txt";
std::string text = "hello";
std::ofstream out{filepath};
print(text, out);
out.close();
std::string result;
std::ifstream in{filepath};
in >> result;
EXPECT_EQ(result, tex... |
/*
* Copyright (c) 2017, Graphics Lab, Georgia Tech Research Corporation
* Copyright (c) 2017, Personal Robotics Lab, Carnegie Mellon University
* All rights reserved.
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, with or
* without mod... |
/*
* Copyright (c) 2016, The OpenThread Authors.
* 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 ... |
#include <asf.hpp>
int main() {
std::string expected("Hello, world!");
std::string actual;
try {
actual = asf::format("{1}, {0}!", "world", "Hello");
}
catch(...) {
return -1;
}
return (actual == expected) ? 0 : -1;
}
|
/* This file was generated automatically by the Snowball to ANSI C compiler */
#include "header.h"
#ifdef __cplusplus
extern "C" {
#endif
extern int english_ISO_8859_1_stem(struct SN_env* z);
#ifdef __cplusplus
}
#endif
static int r_exception2(struct SN_env* z);
static int r_exception1(struct SN_env* z);
static int ... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
namespace game {
enum class MessageSender : uint32_t
{
NPC = 0,
Player = 1,
};
} // namespace game
} // namespace RED4ext
|
/*******************************************************************************
* Copyright 2021 Arm Ltd. and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy ... |
// HOOKDemoCatalogDlg.cpp: 实现文件
//
#include "pch.h"
#include "framework.h"
#include "HOOKDemoCatalog.h"
#include "HOOKDemoCatalogDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CHOOKDemoCatalogDlg 对话框
CHOOKDemoCatalogDlg::CHOOKDemoCatalogDlg(CWnd* pParent /*=nullptr*/)
: CDialogE... |
#include "population.h"
Population::Population() : _current_gen(0)
{
for (uint64_t i = 0; i < Settings::inst()->_individual_count; ++i) {
_genome.push_back(std::unique_ptr<Individual>(new Individual()));
}
}
uint64_t Population::getCurrent_gen() const
{
return _current_gen;
}
void Population::fi... |
#include "global.h"
#include "RageFile.h"
#include "RageSurface.h"
#include "RageSurface_Load_BMP.h"
#include "RageUtil.h"
using namespace FileReading;
/* Tested with http://entropymine.com/jason/bmpsuite/. */
enum
{
COMP_BI_RGB = 0,
COMP_BI_RLE4, /* unsupported */
COMP_BI_RLE8, /* unsupported */
COMP_BI_BITFIEL... |
#include "SecuredMenuPopup.h"
#include "tcMenu.h"
#include "BaseDialog.h"
const char pgmProceedText[] PROGMEM = "Proceed";
const char pgmCancelText[] PROGMEM = "Cancel";
const char pgmHeaderNotAuth[] PROGMEM = "Pin incorrect";
RENDERING_CALLBACK_NAME_INVOKE(fnpopupPasswordRtCall, textItemRenderFn, "Password", -1, NU... |
// -*- C++ -*-
//
// Package: PhysicsTools/NanoAOD
// Class: LeptonJetVarProducer
//
/**\class LeptonJetVarProducer LeptonJetVarProducer.cc PhysicsTools/NanoAOD/plugins/LeptonJetVarProducer.cc
Description: [one line class summary]
Implementation:
[Notes on implementation]
*/
//
// Original Author: Mar... |
#ifndef _GRBL_CONTROLLER_
#define _GRBL_CONTROLLER_
#include "vars.hpp"
#include "ui.hpp"
#include "evt-ctrl.hpp"
// GRBL status are : Idle, Run, Hold, Jog, Alarm, Door, Check, Home, Sleep
// a message should look like (note : GRBL sent or WPOS or MPos depending on grbl parameter : to get WPos, we have to set "$10=0"... |
#include <Engine/Window.h>
#include <Engine/Log.h>
#include <Engine/Settings.h>
#include <Engine/DebugUI.h>
#include <Engine/HashName.h>
#include <Windows.h>
INT APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, INT nCmdShow) {
afex::log::Init();
afex::g_Settings.Load();
auto const& w... |
/**
* @file llurlhistory.cpp
* @brief Manages a list of recent URLs
*
* $LicenseInfo:firstyear=2007&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser G... |
class Solution {
public:
int projectionArea(vector<vector<int>>& grid) {
int m = grid.size(), n = grid[0].size();
int side = 0, front = 0, top = 0;
for(int i = 0; i < m; ++i) {
int temp = 0;
for(int j = 0; j < n; ++j) {
if (grid[i][j] > 0) ++top;
... |
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
#include "Model.h"
#include <iostream>
#include <string>
#include <stb_image/stb_image.h>
void Model::Draw(Shader shader, const std::string& uniformName)
{
for (unsigned int i = 0; i < Meshes.size(); i++) {
Meshes[i].Draw(shader, uniformName);
}
}
void Model::loadModel(std::string path)
{
Assimp::Importer import... |
//==============================================================================
// 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 <QtGlobal>
// Automatically generated by extract_strings_qt.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *monkecoin_strings[] = {
QT_TRANSLATE_NOOP("monkecoin-core", "The %s developers"),
QT_TRANSLATE_NOOP("monkecoin-core", ""
"%s corrupt. Tr... |
#include <sstream>
#include <vector>
#include <iostream>
#include <cstring>
using namespace std;
vector<int> parseInts(string str) {
// Complete this function
stringstream sso(str);
vector<int> result;
char ch;
int tmp;
while(sso>>tmp)
{
result.push_back(tmp);
sso>>ch;
}
... |
/*
*
* Copyright (c) 2021 Project CHIP 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... |
// -*- C++ -*-
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Michael A.G. Aivazis
// California Institute of Technology
// (C) 1998-2003 All Rights Reserved
//
// <LicenseText>
//
// ~~~~~~~... |
// Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vpu/frontend/frontend.hpp>
#include <memory>
#include <string>
#include <set>
#include <vector>
#include <utility>
#include <vpu/compile_env.hpp>
namespace vpu {
namespace {
class ConvertStage final : public StageNode... |
/*
* Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO>
*
* 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
* ... |
/* DHT library
MIT license
written by Adafruit Industries
*/
#include "DHT.h"
DHT::DHT(uint8_t pin, uint8_t type, uint8_t count)
{
_pin = pin;
_type = type;
_count = count;
firstreading = true;
}
void DHT::begin(void)
{
// set up the pins!
pinMode(_pin, INPUT);
digitalWrite(_pin, HIGH);... |
#include<bits/stdc++.h>
#define IMAX 1<<29
#define PI 3.14159265359
using namespace std;
#define rep_(i, a_, b_, a, b, ...) for (int i = (a), i##_len = (b); i < i##_len; ++i)
#define rep(i, ...) rep_(i, __VA_ARGS__, __VA_ARGS__, 0, __VA_ARGS__)
template <class T>
using Graph = vector<vector<T>>;
/******** Utility ... |
// 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: NoteLineConnec... |
#include "Session.h"
#include <algorithm>
#include <mutex>
#include <vector>
using namespace std;
#include <scx/CharsetHelper.h>
#include <scx/IconvHelper.h>
using namespace scx;
#include "AppEnv.h"
#include "Protocol.h"
using namespace Protocol;
const size_t PAYLOADBUF_MAX_KEEP = 1024;
const size_t SENDOUTBUF_MAX_... |
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int maxProfit(vector<int> &prices) {
// 特判
int size = prices.size();
if (size < 2) {
return 0;
}
// dp[j] ,i 表示 [0, i] 区间里,状态为 j 的最大收益
// j = 0:什么都不操作
// j = 1:第... |
/*
* 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 <Atom/RHI.Reflect/PipelineLayoutDescriptor.h>
#include <AzCore/Serialization/SerializeCont... |
/*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: vtkALBAPastValuesListTest
Authors: Nigel McFarlane
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; witho... |
#include <gtest/gtest.h>
#include <fstream>
#include <iostream>
#include "keysecure.hpp"
TEST(TestKeysecure, check_amount_of_entries) {
kfp::Keysecure key("test_db.kfp", "conf", "123456");
std::vector<kfp::Entry> all_entries = key.get_db();
ASSERT_EQ(2, all_entries.size());
}
TEST(TestKeysecure, check_entry_val... |
#pragma once
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtx/quaternion.hpp>
#include <cmath>
#include <utility>
#include <vector>
#include ... |
/* SysSem.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 3.50
//
// Tag: Target/WIN64utf8
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// ... |
#include "PanelConsole.h"
#include "Main/Application.h"
#include "Main/Globals.h"
#include "Module/ModuleResourceManager.h"
#include <imgui.h>
#include <FontAwesome5/IconsFontAwesome5.h>
#include <algorithm>
PanelConsole::PanelConsole()
{
opened = true;
enabled = true;
window_name = ICON_FA_TERMINAL " Console";
... |
/**
* Copyright © 2017 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
#include "Graphics.h"
#include "Constants.h"
#include <algorithm>
Graphics* Singleton<Graphics>::s_Obj = NULL;
Graphics::Graphics() {
gWindow = SDL_CreateWindow("Crash Loyal", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH_PIXELS, SCREEN_HEIGHT_PIXELS, SDL_WINDOW_SHOWN);
if (gWindow == NUL... |
/*
* Copyright (C) 2016 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <gmock/gmock-spec-builders.h>
#include <cpp/ie_executable_network.hpp>
#include <cpp_interfaces/base/ie_executable_network_base.hpp>
#include <cpp_interfaces/base/ie_infer_async_request_base.hpp>
... |
/* file: parameter.cpp */
/*******************************************************************************
* Copyright 2014-2020 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... |
#include "pch.h"
#include "Collision.h"
|
#pragma once
#include <cryptopp/crc.h>
#include "types.hpp"
#include <memory>
#include <string>
#include <unordered_set>
#include <vector>
typedef struct ZSTD_CCtx_s ZSTD_CCtx;
namespace mcap {
/**
* @brief Configuration options for McapWriter.
*/
struct McapWriterOptions {
/**
* @brief Disable CRC calculat... |
// https://discuss.leetcode.com/topic/63827/c-solution-with-comments
class AllOne {
private:
list<pair<int, unordered_set<string>>> v;
unordered_map<string, list<pair<int, unordered_set<string>>>::iterator> m;
public:
/** Initialize your data structure here. */
AllOne() {
}
/** Ins... |
//
// Copyright 2012 Christian Henning
//
// 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 BOOST_GIL_EXTENSION_IO_PNG_DETAIL_BASE_HPP
#define BOOST_GIL_EXTENSION_IO_PNG_DETAIL_BASE_HPP
#include ... |
// ---------------------------------------------------------------------
//
// Copyright (c) 2014 - 2019 by the IBAMR developers
// All rights reserved.
//
// This file is part of IBAMR.
//
// IBAMR is free software and is distributed under the 3-clause BSD
// license. The full text of the license can be found in the f... |
#include <QApplication>
#include <QDebug>
#include "Meta.hpp"
#include "MainWindow.hpp"
int main(int argc, char *argv[])
{
qInfo() << "NESZ version: " << NESZ_VERSION;
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
} |
// RUN: %clang_cc1 -std=c++17 -verify %s
using intptr_t = __INTPTR_TYPE__;
// Test interaction of constexpr and __builtin_constant_p.
template<typename T> constexpr bool bcp(T t) {
return __builtin_constant_p(t);
}
template<typename T> constexpr bool bcp_fold(T t) {
return __builtin_constant_p(((void)(intptr_t)&... |
#include "ImageDealer.h"
#include <vector>
#include <algorithm>
#include "stb_image.h"
#include "stb_image_write.h"
std::shared_ptr<RawImage> ImageDealer::GrayScale(const std::shared_ptr<RawImage> image)
{
auto grayImage = std::make_shared<RawImage>();
grayImage->width = image->width;
grayImage->height ... |
/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the fil... |
#include "server.h"
#include <boost/asio.hpp>
#include <boost/filesystem.hpp>
#include <exception>
#include <fstream>
#include <mutex>
#include <thread>
#include "3rd/simple_web_server/server_http.hpp"
#include "3rd/simple_websocket_server/server_ws.hpp"
#include "connection.h"
#include "logger.h"
namespace opentrad... |
// mk4.inl --
// $Id$
// This is part of Metakit, the homepage is http://www.equi4.com/metakit.html
/** @file
* Public definitions which are usually inlined
*/
/////////////////////////////////////////////////////////////////////////////
// Reordered inlines so they are always defined before their first use
d4_in... |
/* By Paul Hsieh (C) 2004, 2005. Covered under the Paul Hsieh
* derivative license.
* See: http://www.azillionmonkeys.com/qed/weblicense.html for license
* details.
* http://www.azillionmonkeys.com/qed/hash.html
*/
#include <libhashkit/common.h>
#undef get16bits
#if (defined(__GNUC__) && defined(__i386__))
#defi... |
// 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/heap/mark-compact.h"
#include <unordered_map>
#include "src/base/utils/random-number-generator.h"
#include "src/codegen/compilation-cach... |
#include <catch2/catch.hpp>
#include "nucleus/memory/scoped_ptr.h"
namespace nu {
namespace {
struct S {
static I32 s_constructed;
static I32 s_destructed;
static void reset() {
s_constructed = 0;
s_destructed = 0;
}
int i;
S() : i(0) {
++s_constructed;
}
explicit S(I32 i_) : i(i_) ... |
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include "graph/planner/PlannersRegister.h"
#include "graph/planner/Planner.h"
#include "graph/planner/SequentialPlanner.h"
#include "graph/planner/match/LabelIndexSeek.h"
#include "graph/planner/ma... |
/*
*
* Copyright (C) 2000-2021, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmsign
*
* Author: Marco Eich... |
// 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.
//
// This file contains the definitions of the installer functions that build
// the WorkItemList used to install the application.
#include "chrome/i... |
/******************************************************************************
* Project: PROJ.4
* Purpose: Implementation of the airy (Airy) projection.
* Author: Gerald Evenden (1995)
* Thomas Knudsen (2016) - revise/add regression tests
*
*********************************************************... |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/*
* tinflate.c -- tiny inflate library
*
* Written by Andrew Church <achurch@achurch.org>
*
* Re-written for C++ by LAK132 <https://github.com/LAK132>
*
* This source code is public domain.
*/
#include "lak/tinflate.hpp"
namespace tinf
{
static constexpr uint32_t crc32_table[256] = {
0x00000000UL, 0x7707... |
#include <iostream>
#include <cxxopts.hpp>
#include <libnotify/notify.h>
int main(int argc, char *argv[]) {
notify_init("Sample");
NotifyNotification *n = notify_notification_new(
"Hello world", "some message text... bla bla", 0);
notify_notification_set_timeout(n, 10000); // 10 seconds
if (!... |
//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose: Client DLL VGUI2 Viewport
//
// $Workfile: $
// $Date: $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================... |
/******************************************************************************
* Copyright 2015-2020 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
/*************************************************************************/
/* marshalls.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include <stdio.h>
#include <stdlib.h>
void imprimir(int vetor[], int max){
for(int i=0; i< max; i++)
printf("%i\n", vetor[i]);
}
void selection_sort (int vetor[], int max) {
int i, j, min, aux;
for (i = 0; i < (max - 1); i++) {
min = i;
for (j = i+1; j < max; j++) {
if (vetor[j] < vetor[min]... |
#include "drawlowresvolume.h"
#include "viewer.h"
#include "volume.h"
#include "staticfunctions.h"
#include "shaderfactory.h"
#include "shaderfactoryrgb.h"
#include "global.h"
#include "mainwindowui.h"
#include <QDomDocument>
void DrawLowresVolume::activateBounds() {m_boundingBox.activateBounds();}
bool DrawLowresVol... |
// 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: OVR.OpenVR.IVR... |
#include "LoadSaveLightEffect.h"
#include "Soldier_Control.h"
#include "Weapons.h"
#include "Handle_Items.h"
#include "WorldDef.h"
#include "Tile_Animation.h"
#include "LightEffects.h"
#include "Isometric_Utils.h"
#include "Explosion_Control.h"
#include "Random.h"
#include "Lighting.h"
#include "Game_Clock.h"
#include ... |
// 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... |
/*
David Wolak
3/16/18
CPL Sorry! Project
This file holds the function definitions for everything in the control.h, everything here puts all the parts together. It moves the pawns, gets player inputs, draws cards, and updates the score. It also is reponsible for seeing if someone has won.
*/
#include <cstdio>
#inclu... |
/*
* Copyright (C) 2020 Sony Interactive Entertainment Inc.
*
* 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 conditio... |
/* Copyright 2019 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <pwd.h>
#include <sys/types.h>
#include <nan.h>
using namespace v8;
void WhoAmI(const Nan::FunctionCallbackInfo<Value>& info) {
char buf[BUFSIZ];
int r = getlogin_r(buf, BUFSIZ);
if (r != 0) {
strer... |
#include "Timer.hpp"
using namespace SmartIotInternals;
Timer::Timer()
: _initialTime(0)
, _interval(0)
, _tickAtBeginning(false)
, _active(true) {
}
void Timer::setInterval(uint32_t interval, bool tickAtBeginning) {
_interval = interval;
_tickAtBeginning = tickAtBeginning;
this->reset();
}
uint32_t SmartIot... |
/******************************************************************************
* Copyright 2018 The Apollo 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
... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/macros.h"
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/extension.h"
#include "exte... |
/*
* 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... |
#include "booru-org-test.h"
#include <QStringList>
#include <QtTest>
#include "models/image.h"
#include "tags/tag.h"
void BooruOrgTest::testHtml()
{
QList<Image*> images = getImages("Gelbooru (0.1)", "rm.booru.org", "regex", "rating:safe", "results.html");
// Convert results
QStringList md5s;
md5s.reserve(images... |
/*
* Copyright (c) 2017 Trail of Bits, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
#include "ui/downloadlink.h"
#include <QFileDialog>
#include <QStandardPaths>
namespace Ui {
DownloadLink::DownloadLink(const QString& urlp, const QString& filename, Api::Requester *request, QWidget *parent)
: QLabel(filename, parent)
{
QFont font;
font.setPixelSize(16);
font.setFamily("whitney");
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.