text stringlengths 7 961k |
|---|
#include "event_batch.h"
#include <gtest/gtest.h>
using namespace cll;
void EventBatchTest::BasicTest(EventBatch& batch) {
// Add event
nlohmann::json event = {{"test", "This is a test log entry"}};
ASSERT_FALSE(batch.hasEvents());
auto eventStr = event.dump();
ASSERT_TRUE(batch.addEvent(event));... |
// 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 "net/url_request/url_request_context_builder.h"
#include "build/build_config.h"
#include "net/test/spawned_test_server/spawned_test_server.h... |
/*=========================================================================
Library: iMSTK
Copyright (c) Kitware, Inc. & Center for Modeling, Simulation,
& Imaging in Medicine, Rensselaer Polytechnic Institute.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file e... |
//===- RegisterCoalescer.cpp - Generic Register Coalescing Interface ------===//
//
// 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
//
//===---------------------------... |
/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "unit_tests/scheduler/scheduler_source_tests.h"
#include "runtime/device_queue/device_queue_hw.h"
#include "test.h"
#include "unit_tests/fixtures/device_host_queue_fixture.h"
#include "unit_tests/fixtures/execution_mode... |
/*
PICCANTE
The hottest HDR imaging library!
http://vcg.isti.cnr.it/piccante
Copyright (C) 2014
Visual Computing Laboratory - ISTI CNR
http://vcg.isti.cnr.it
First author: Francesco Banterle
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 ... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Serial Communication Interface
namespace Uart2Bdh{ ///<UART Baud Rate Registers: High
using Addr = Register::Address<0x4006c000,0xffffff20,0x00000000,std::uint8_t>;
///UART Baud Rate Bits
constexpr Register::FieldLocation<... |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... |
#include "cpgf/scriptbind/gscriptbind.h"
#include "cpgf/gstringmap.h"
#include "cpgf/gerrorcode.h"
#include "cpgf/gstringutil.h"
#include "gbindcommon.h"
#include "gbindapiimpl.h"
#include "../gstaticuninitializerorders.h"
#include <string>
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable: 4127 41... |
//
// Created by c on 05/11/2018 13:04
//
#ifndef NLP_ANALYSER_READER_HH
#define NLP_ANALYSER_READER_HH
/* include section */
#include <fstream>
#include <vector>
#include <type_traits>
#include "utility/constant.hh"
#include "utility/string.hh"
/* class & function section */
namespace nlp {
/* file type */
enum... |
#define TIMES 1
#include <string>
#include <time.h>
#include <fstream>
#include <iostream>
#include <unistd.h>
#include <unordered_set>
#include <hyperapi/hyperapi.hpp>
#include <algorithm>
#include <cstdlib>
#include <chrono>
#include "ssb_utils.h"
#include <unordered_map>
using namespace std;
static hyperapi::Table... |
/**
* 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 "MethodReference.h"
#include "Resolver.h"
#include "Walkers.h"
namespace method_reference {
IRInstruction* make_load_c... |
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-10-11
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
/*
* Copyright (c) 2021 Huawei Device 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 ... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: HUD Target ID element
//
// $NoKeywords: $
//=============================================================================
#include "cbase.h"
#include "tf_hud_mann_vs_machine_status.h"
#include <vgui_controls/AnimationControll... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
#include "openvslam/camera/perspective.h"
#include "openvslam/camera/fisheye.h"
#include "openvslam/camera/equirectangular.h"
#include "openvslam/data/common.h"
#include "openvslam/data/frame.h"
#include "openvslam/data/keyframe.h"
#include "openvslam/data/landmark.h"
#include "openvslam/data/map_database.h"
#include "... |
#include <torch/csrc/autograd/python_variable.h>
#include <torch/csrc/THP.h>
#include <torch/csrc/DynamicTypes.h>
#include <torch/csrc/Exceptions.h>
#include <torch/csrc/Device.h>
#include <torch/csrc/Size.h>
#include <torch/csrc/Types.h>
#include <torch/csrc/autograd/edge.h>
#include <torch/csrc/autograd/python_cpp_f... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php... |
//--------------------------------------------------------------------------------------
// File: OptimizedMesh.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include "DXUT.h"
#include "DXUTcamera.h"
#include ... |
#ifndef DSKDISKIMAGE_HH
#define DSKDISKIMAGE_HH
#include "SectorBasedDisk.hh"
#include <memory>
namespace openmsx {
class File;
class DSKDiskImage final : public SectorBasedDisk
{
public:
explicit DSKDiskImage(const Filename& filename);
DSKDiskImage(const Filename& filename, std::shared_ptr<File> file);
private:... |
// Copyright 2004-present Facebook. All Rights Reserved.
#include "fboss/agent/hw/sai/switch/SaiPortManager.h"
#include "fboss/agent/FbossError.h"
#include "fboss/agent/hw/CounterUtils.h"
#include "fboss/agent/hw/HwPortFb303Stats.h"
#include "fboss/agent/hw/gen-cpp2/hardware_stats_constants.h"
#include "fboss/agent/h... |
/*
* Copyright information and license terms for this software can be
* found in the file LICENSE that is included with the distribution
*/
#include <vector>
#include <sstream>
#define epicsExportSharedSymbols
#include <pv/pvdVersion.h>
#include <pv/pvData.h>
#include <pv/valueBuilder.h>
#include <pv/bitSet.h>
#in... |
/*
* 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" fil... |
// List.cpp
#include "StdAfx.h"
#include "Common/IntToString.h"
#include "Common/MyCom.h"
#include "Common/StdOutStream.h"
#include "Common/StringConvert.h"
#include "Windows/Error.h"
#include "Windows/FileDir.h"
#include "Windows/PropVariant.h"
#include "Windows/PropVariantConversions.h"
#include "../../Archive/IA... |
#include <singleapplication.h>
#include "precompiled.h"
#include "mainwindow.h"
#include "controller.h"
#include "settings.h"
#include "turnstile.h"
#include "version.h"
class SignalHandler
{
public:
SignalHandler(int mask = DEFAULT_SIGNALS);
virtual ~SignalHandler();
enum SIGNALS
{
SIG_UNH... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
#include <gui/daq/ListModeForm.h>
#include "ui_ListModeForm.h"
#include <gui/widgets/qt_util.h>
#include <core/util/lexical_extensions.h>
#include <core/consumer_factory.h>
#include <QSettings>
#include <QMessageBox>
#include <core/util/logger.h>
using namespace DAQuiri;
ListModeForm::ListModeForm(ThreadRunner &th... |
/*
* Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
* Copyright (C) 2006 Apple Computer Inc.
* Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2008 Rob Buis <buis@kde.org>
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
*
* This library is free so... |
#include "ModernFrameGraph.hpp"
ModernFrameGraph::ModernFrameGraph(FrameGraphConfig&& frameGraphConfig): mFrameGraphConfig(std::move(frameGraphConfig))
{
}
ModernFrameGraph::~ModernFrameGraph()
{
}
uint32_t ModernFrameGraph::CalcPassIndex(const PassFrameSpan& passFrameSpan, uint32_t swapchainImageIndex, uint32_t fr... |
// Copyright 2017 jmpews
//
// 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 ... |
#include "hash.h"
#include "base64.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <bcrypt.h>
#else
#ifdef USE_OPENSSL
#include <openssl/hmac.h>
#else
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>
#endif
#endif
#include <stdexcept>
namespace azure { namespace storage_lite {
s... |
/*
*
* 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"); y... |
// Copyright (c) 2014 The Trident Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Author: Zuoyan Qin (qinzuoyan@gmail.com)
#include <trident/string_utils.h>
#include <cassert>
#include <cstdio>
#include <stdexcept>
#include <sstr... |
#include "AliHFEUnfolding.h"
#include <iostream>
// Response matrix is R(true value, measured value)
ClassImp(AliHFEUnfolding);
AliHFEUnfolding::AliHFEUnfolding()
{
// Constructor
fDataIsSet = kFALSE;
fResponseIsSet = kFALSE;
fLowestBin = 1;
fHighestBin = 0;
fDataVector = new TVectorD(1);
fResponseMatri... |
#ifndef CLICK_ICMPIPENCAP_HH
#define CLICK_ICMPIPENCAP_HH
#include <click/element.hh>
#include <click/timer.hh>
CLICK_DECLS
/*
=c
ICMPIPEncap(SRC, DST, TYPE [, CODE, I<keywords> IDENTIFIER])
=s icmp
encapsulates packets in ICMP/IP headers
=d
Encapsulates input packets in an ICMP/IP header with source IP address S... |
#include "gamepch.h"
#include "Script.h"
#include "Random.h"
#include "Projectile.h"
#include "Star.h"
#include "Spaceship.h"
#include "Math.h"
#include "Renderer.h"
#include "Sounds.h"
void addUserTypes(sol::state& lua) {
// SFML stuff
auto sfTable = lua.create_table("sf");
sfTable.new_usertype<sf::Vector2f>("Vect... |
//
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
// Permission is granted to anyone to use this software for any purpose... |
/*
this file is reference to tangwei
*/
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/stn_pos_loss_layer.hpp"
#include "caffe/test/test_c... |
//--------------------------------------------------------------------------
// File and Version Information:
// $Id: TrkId.hh,v 1.10 2002/03/27 22:02:57 steinke Exp $
//
// Description:
// Holds an ID number and a pointer to an Id manager that knows how
// provide the next number in the sequence; designed to... |
/*
* Author: Yevgeniy Kiveisha <yevgeniy.kiveisha@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#inc... |
/**
* \file
* \brief Family API for TiM5xx Family (TiM510 is not supported)
*
* Copyright 2019, SICK AG, Waldkirch
*
* 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... |
//
// ParticleAffector.cpp
// Chilli Source
// Created by Ian Copland on 02/11/2014.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Tag Games Limited
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... |
//===- LowerGpuOpsToNVVMOps.cpp - MLIR GPU to NVVM lowering passes --------===//
//
// 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
//
//===---------------------------... |
import atest;
import abuild.cpptokenizer;
using ::atest::assert_;
using ::atest::expect;
using ::atest::suite;
using ::atest::test;
static const auto S = suite("if else", [] { // NOLINT(cert-err58-cpp)
test("else", [] {
const std::vector<::abuild::Token> tokens = ::abuild::tokenize("#ifndef MY_MACRO\n#def... |
// ReRap Version 0.9
// Copyright 2011 Matthew Mikolay.
//
// This file is part of ReRap.
//
// ReRap 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 3 of the License, or
// (at your option) a... |
/***************************************************************************
* Copyright 1998-2020 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... |
/**
* Copyright (C) 2019-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... |
#pragma once
#include "lue/framework/algorithm/policy.hpp"
#include "lue/framework/algorithm/detail/flow_direction.hpp"
#include "lue/framework/algorithm/detail/halo_partition.hpp"
#include "lue/framework/algorithm/detail/partition.hpp"
#include "lue/framework/algorithm/detail/spawn.hpp"
#include "lue/framework/algorit... |
/*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, instal... |
#include "pulse_meter_sensor.h"
#include "esphome/core/log.h"
namespace esphome {
namespace pulse_meter {
static const char *const TAG = "pulse_meter";
void PulseMeterSensor::setup() {
this->pin_->setup();
this->isr_pin_ = pin_->to_isr();
this->pin_->attach_interrupt(PulseMeterSensor::gpio_intr, this, gpio::IN... |
#include <glm/gtc/random.hpp>
#include <shaders/diffuse_vert_glsl.h>
#include <shaders/diffuse_frag_glsl.h>
#include "won.h"
using namespace std;
using namespace glm;
using namespace ppgso;
// Static resources
unique_ptr<Mesh> Won::mesh;
unique_ptr<Texture> Won::texture;
unique_ptr<Shader> Won::shader;
map<std::str... |
/*
* Copyright (c) 2014-2022 The Voxie Authors
*
* 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, mer... |
#include <algorithm>
#include <fstream>
#include <string>
#include <cctype>
using namespace std;
const char header[] = R"~(
#include <vector>
#include <GL/glew.h>
class Shader {
GLuint program;
static
GLuint vertexShader(const GLchar[]) noexcept(false);
static
GLuint fragmentShader(const GLchar... |
/**
* Definition of TreeNode:
* class TreeNode {
* public:
* int val;
* TreeNode *left, *right;
* TreeNode(int val) {
* this->val = val;
* this->left = this->right = NULL;
* }
* }
*/
class Solution {
public:
/**
* @param root: The root of binary tree.
* @return: ... |
// Copyright Take Vos 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#include "ttauri/text/unicode_db.hpp"
#include <exception>
namespace tt {
constexpr auto _unicode_description_find(char32_t code_point)... |
#include <Eigen/Dense>
#include <iostream>
using namespace Eigen;
using namespace std;
int main(int, char**)
{
cout.precision(3);
MatrixXcf A = MatrixXcf::Random(4,4);
cout << "Here is a random 4x4 matrix, A:" << endl << A << endl << endl;
ComplexEigenSolver<MatrixXcf> ces;
ces.compute(A);
cout << "The eigenvalu... |
#include "voxelio/format/vl32.hpp"
#include "voxelio/log.hpp"
#include "voxelio/macro.hpp"
namespace voxelio::vl32 {
[[nodiscard]] ReadResult Reader::init() noexcept
{
return ReadResult::ok();
}
[[nodiscard]] ReadResult Reader::read(Voxel64 buffer[], usize bufferLength) noexcept
{
return read_impl(buffer, b... |
// Geometric Tools, LLC
// Copyright (c) 1998-2010
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 4.10.0 (2009/11/18)
#include "Wm4FoundationPCH.h"
#include "Wm4DistSegment2Segment2... |
/*---------------------------------------------------------------
* Copyright (c) 1999,2000,2001,2002
* The Board of Trustees of the University of Illinois
* All Rights Reserved.
*--------------------------------------------------... |
// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "fiddle/examples.h"
// HASH=f0f24726df78a5d797bcf311e694a0a3
REG_FIDDLE(Point_Offset, 256, 256, false, 0) {
void draw(SkCanvas* canvas) {
SkPaint paint;
paint.setAntiAlias(... |
//
// detail/event.hpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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 ASIO_DETAIL_EVENT_HPP
#defi... |
// Copyright Dean Michael Berris 2008.
// 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_NETWORK_PROTOCOL_HTTP_PARSER_TRAITS_QUERY_NAME_IPP
#define BOOST_NETWORK_PROTOCOL_HTTP_PA... |
//
// Copyright (c) 2002-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.
//
#include "compiler/translator/QualifierTypes.h"
#include "compiler/translator/Diagnostics.h"
#include <algorithm>
namespace sh
{
n... |
#pragma once
/* Part of the rsked package.
*
* Copyright 2020 Steven A. Harp
*
* 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/LICENS... |
#include <boost/iostreams/stream_buffer.hpp> |
// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// 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
//
//===------------... |
#include "huaweicloud/ims/v2/model/GlanceAddImageMemberRequest.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Ims {
namespace V2 {
namespace Model {
GlanceAddImageMemberRequest::GlanceAddImageMemberRequest()
{
imageId_ = "";
imageIdIsSet_ = false;
bodyIsSet_ = false;
}
GlanceAddImageMemberReques... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2016-2020 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... |
/*
* Copyright (C) 2006 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... |
#include "SolidCone.h"
#include "SolidQuad.h"
#include "PrimTriangle.h"
namespace rt {
// Constructor
CSolidCone::CSolidCone(ptr_shader_t pShader, const Vec3f &org, float radius, float height, size_t height_segments, size_t sides, bool smooth) : CSolid(org)
{
const Vec3f top(0, height, 0); // The top point
c... |
#include <Storages/MergeTree/MergeTreeBlockReadUtils.h>
#include <Storages/MergeTree/MergeTreeData.h>
#include <DataTypes/NestedUtils.h>
#include <Core/NamesAndTypes.h>
#include <Common/checkStackSize.h>
#include <Common/typeid_cast.h>
#include <Columns/ColumnConst.h>
#include <unordered_set>
namespace DB
{
namespace... |
/******************************************************************************
* $Id: ograssemblepolygon.cpp 27044 2014-03-16 23:41:27Z rouault $
*
* Project: S-57 Reader
* Purpose: Implements polygon assembly from a bunch of arcs.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
***************************... |
/*
Copyright (c) 2007-2016 Contributors as noted in the AUTHORS file
This file is part of libzmq, the ZeroMQ core engine in C++.
libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Found... |
//////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2017 EMC 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
//... |
#include <iostream>
#include <algorithm>
#include <vector>
#include <array>
using namespace std;
#define grid_full make_pair(9, 9)
void print(int grid[9][9])
{
for (int row = 0; row < 9; row++)
{
for (int col = 0; col < 9; col++)
{
cout << grid[row][col] << " ";
}
co... |
/*
* wpaCute - A graphical wpa_supplicant front end
* Copyright (C) 2018 loh.tar@googlemail.com
*
* wpa_gui - ScanResultsItem class
* Copyright (c) 2015, Adrian Nowicki <adinowicki@gmail.com>
*
* This software may be distributed under the terms of the BSD license.
* See COPYING for more details.
*/
#include "... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
#include "StdAfx.h"
#include ".\r__occlusion.h"
#include "QueryHelper.h"
R_occlusion::R_occlusion(void)
{
enabled = strstr(Core.Params,"-no_occq")?FALSE:TRUE;
}
R_occlusion::~R_occlusion(void)
{
occq_destroy ();
}
void R_occlusion::occq_create (u32 limit )
{
pool.reserve (limit);
used.reserve (limit);
fids.res... |
#include <cassert>
#include <memory>
#include "context-clear.hpp"
#include "circuit-repo.hpp"
typedef std::chrono::duration<double, std::micro> DurationT;
using namespace SHEEP;
int main(void) {
//// instantiate the Circuit Repository
CircuitRepo cr;
Circuit circ = cr.create_circuit(Gate::Subtract, 1);
std... |
#include "Modify_CLI.h"
namespace FK_CLI {
using namespace std;
using namespace System::Collections::Generic;
::FK::fk_Modify * fk_Modify::GetP(void)
{
return (::FK::fk_Modify *)(pBase);
}
fk_Modify::fk_Modify(bool argNewFlg) : fk_Operation(false)
{
}
fk_Modify::~fk_Modify()
{
}
fk_Loop^ fk_Modify... |
/*
* Vulkan Samples
*
* Copyright (C) 2015-2016 Valve Corporation
* Copyright (C) 2015-2016 LunarG, 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 restriction, includi... |
// This file was generated by the "svnrev" utility
// You should not modify it manually, as it may be re-generated.
//
// $Revision: 11579 $
// $Date: 2017-11-14 $
//
// 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 ... |
#include <iostream>
#include <list>
#include <vector>
using namespace std;
int n, m;
int power = 'z' - 'a' + 1;
void radixSort(int[] A) {
for (int i = 0; i < m; i++) {
}
for
j = 0
to
k - 1
C[j] = 0
for
j = 0
to
n - 1
d = digit(A[j], i)
C[d]++
count = 0
for
... |
/* Copyright (c) 2006-2017, Universities Space Research Association (USRA).
* 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
... |
/**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* See LICENSE.txt for details.
*/
#include "DispersionEvaluator.h"
namespace Scine {
namespace MolecularMechanics {
DispersionEvaluator... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/cache_storage/cache_storage_trace_utils.h"
#include <sstream>
#include "third_party/blink/public/mojom/cach... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2017, ITU/ISO/IEC
* All rights reserve... |
#if 0
// Copyright 2009 The RE2 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 <algorithm>
#include <memory>
#include <string>
#include <vector>
#include "util/test.h"
#include "util/logging.h"
#includ... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include <string>
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base... |
#include "stdafx.h"
#if SE_OPENGL
#include "MeshBone.h"
void MeshBone::BoneData::addBoneData(const unsigned& boneId, const float& weight)
{
for (unsigned i = 0; i < NUM_BONES_PER_VEREX; ++i)
{
if (weights[i] == 0.0)
{
ids[i] = boneId;
weights[i] = weight;
return;
}
}
}
MeshBone::MeshBone(const std::... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "util.h"
#include "chainparams.h"
#include "sync.h"
#include "ui_interfa... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/download/internal/client_set.h"
namespace download {
ClientSet::ClientSet(std::unique_ptr<DownloadClientMap> clients)
: clients... |
// 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: Org.BouncyCastle.Math... |
/*
* 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 <PostProcessing/BlendColorGradingLutsPass.h>
#include <Atom/Feature/ACES/AcesDisplayMappe... |
#include "stdhdrs.h"
#include "../ShareLib/bnf.h"
#include "Log.h"
#include "Descriptor.h"
#include "Server.h"
#include "CmdMsg.h"
#include "../ShareLib/DBCmd.h"
#include "Utils.h"
#include "IPCheck.h"
#include "MessengerInLogin.h"
#include "../ShareLib/packetType/ptype_old_login.h"
#ifdef PASSWORD_ENCRYPT_SHA256
#in... |
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Copyright (c) 2017 The PIVX developers
// Copyright (c) 2018 The SLATE developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// Unit tests for block-chain che... |
/******************************************************************************
* Copyright 2019 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
... |
#include "Bullet.h"
#include "game.h"
#include "Ship.h"
using namespace sf;
using namespace std;
//Create definition for the constructor
Bullet::Bullet(const sf::Vector2f &pos, const bool mode) : Sprite()
{
_sprite = IntRect(64, 32, 32, 32);
setTexture(spritesheet);
setTextureRect(_sprite);
setPosition(pos.x, po... |
/*
* Copyright 2011-2012, 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 ap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.