text stringlengths 7 961k |
|---|
// Copyright (c) 2014-2021 The Dash Core developers
// Copyright (c) 2020-2022 The Raptoreum developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <smartnode/activesmartnode.h>
#include <governance/governance-c... |
#include "job_variables.h"
#include <QObject>
//==============================================================================
const QString JobVariables::TOKEN_WIDTH = "{w}";
const QString JobVariables::TOKEN_HEIGHT = "{h}";
const QString JobVariables::TOKEN_FPS_NUMERATOR = "{fpsn}";
const QString JobVariables::TOK... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2017 Intel Corporation. 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 noti... |
/*
* The MIT License
*
* Copyright (c) 1997-2021 The University of Utah
*
* 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
* right... |
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#in... |
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include "graph/visitor/ExprVisitorImpl.h"
namespace nebula {
namespace graph {
void ExprVisitorImpl::visit(UnaryExpression *expr) {
DCHECK(ok()) << expr->toString();
expr->operand()->accept(th... |
#include <protean/variant.hpp>
namespace protean {
template<typename ITERATOR_TRAITS>
array_iterator<ITERATOR_TRAITS>::array_iterator() :
m_ref()
{
}
template<typename ITERATOR_TRAITS>
array_iterator<ITERATOR_TRAITS>::array_iterator(iterator_type iterator, variant_base::enum_type_t t... |
/* -----------------------------------------------------------------------------
* Rule_ptp.hpp
* -----------------------------------------------------------------------------
*
* Producer : com.parse2.aparse.Parser 2.5
* Produced : Mon Jan 08 13:30:55 CET 2018
*
* -----------------------------------------------... |
# include "PBRViewerModel.h"
#include <GLFW/glfw3.h>
#include <glad/glad.h>
#include "PBRViewerOpenGLUtilities.h"
#include "PBRViewerLogger.h"
#include <stb_image.h>
GLvoid PBRViewerModel::CreateShader()
{
// Read needed files
myNoLightingShader = std::make_shared<PBRViewerShader>("NoLighting.vert", "NoLighting.fr... |
/*
* Copyright (C) 2019-2021 HERE Europe B.V.
*
* 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) 2013-2021 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#pragma once
#include <Pothos/Config.hpp>
#include <QDockWidget>
#include <QStringList>
class HostSelectionTable;
class QTabWidget;
//! top level dock widget for dealing with hosts
class HostExplorerDock : public QDockWidget
{
Q_OBJECT
publ... |
#include "barelymusician/common/visitor.h"
#include <variant>
#include <vector>
#include "gtest/gtest.h"
namespace barely {
namespace {
// Tests that all variants are visited when set with an auto definition.
TEST(VisitorTest, AutoVisit) {
std::vector<std::variant<bool, int, double>> variants = {bool{true}, int{3... |
//===---- MachineOutliner.cpp - Outline instructions -----------*- 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
//
//===----------------------------... |
/* 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... |
#define _STDC_FORMAT_MACROS
#include "ProcessMemoryAdapter.hh"
#include <inttypes.h>
#include <mach/mach.h>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <phosg/Strings.hh>
using namespace std;
ProcessMemoryAdapter::Region::Region(mach_vm_address_t addr,
mach_vm_size_t size, uint8_t prote... |
// Copyright 2018 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 "remoting/host/input_monitor/local_hotkey_input_monitor.h"
#include <sys/select.h>
#include <unistd.h>
#include <utility>
#include "base/bind.... |
// Copyright 2009-2010 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/profiler/heap-profiler.h"
#include "src/api/api-inl.h"
#include "src/debug/debug.h"
#include "src/heap/combined-heap.h"
#include "sr... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.ValueType
#include "System/ValueType.hpp"
// Including type: OVR.OpenVR... |
/**
* @copyright
* Copyright (c) 2021 Rich Newman
* 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, me... |
//===----------------------------------------------------------------------===//
//
// 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 2009-2017 Alibaba Cloud 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... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
#include "exrpc_model.hpp"
#include "short_hand_dense_type.hpp"
#include "short_hand_sparse_type.hpp"
#include "short_hand_model_type.hpp"
#include "spark_client_headers.hpp"
using namespace frovedis;
extern "C" {
// prints the requested (registered) trained LR model information for debugging purpose
JNIEXPORT void ... |
#ifndef ADS1115_ADS1115_HPP_
#define ADS1115_ADS1115_HPP_
// ADS1115
#include "ads1115/config.hpp"
#include "ads1115/threshold.hpp"
// stl
#include <cstdio>
#include <filesystem>
namespace ADS1115
{
/*! This class describes the ADS1115.
* The data sheet of the ADS1115 can be fond at
* https://cdn-shop... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2022 Scipp contributors (https://github.com/scipp)
#include <gtest/gtest.h>
#include <array>
#include <vector>
#include "scipp/core/element_array.h"
using scipp::core::element_array;
using scipp::core::init_for_overwrite;
static auto make_element_array() {
... |
/***************************************************************************
Copyright (c) 2016, Xilinx, 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 reta... |
// 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 <stdint.h>
#include <cstdio>
#include <memory>
#include <string>
#include <vector>
#include "base/files/file_util.h"
#i... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the terms found in... |
#if defined(__GNUC__) || defined(_MSC_VER)
# define restrict __restrict
#else
# define restrict
#endif
extern "C" {
#include <onnc/Runtime/onnc-runtime.h>
}
#undef restrict
#include "norm.hpp"
#include <skypat/skypat.h>
SKYPAT_F(Operator_ArgMin, test_argmin_no_keepdims_example)
{
const float input_0[] = {... |
// Copyright (c) 2011-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.
#if defined(HAVE_CONFIG_H)
#include <config/umkoin-config.h>
#endif
#include <qt/coincontroldialog.h>
#include <qt/forms/ui_... |
/****************************************************************************
*
* Copyright (c) 2018-2019 PX4 Development Team. 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. Red... |
// 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 <memory>
#include <utility>
#include "base/bind.h"
#include "base/check_op.h"
#include "base/location.h"
#include "base/notreached.h"
#include "... |
//------------------------------------------------------------------------------
/*
This file is part of jbcoind: https://github.com/jbcoin/jbcoind
Copyright (c) 2012-2014 Jbcoin Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby g... |
#include "global.h"
#include "InputMapper.h"
#include "IniFile.h"
#include "MessageManager.h"
#include "RageLog.h"
#include "InputFilter.h"
#include "RageUtil.h"
#include "PrefsManager.h"
#include "RageInput.h"
#include "SpecialFiles.h"
#include "LocalizedString.h"
#include "Foreach.h"
#include "arch/Dialog/Dialog.h"
... |
/***************************************************************************
qgsdataitemprovider.cpp
--------------------------------------
Date : March 2015
Copyright : (C) 2015 by Martin Dobias
Email : wonder dot sk at gmail dot com
********************************... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vdstestlib/cppunit/macros.h>
#include <vespa/persistence/conformancetest/conformancetest.h>
#include <vespa/persistence/spi/test.h>
#include <vespa/persistence/dummyimpl/dummypersisten... |
// Copyright (c) 2011-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/utopiacoin-config.h>
#endif
#include <qt/addressbookpage.h>
#include <qt/forms/u... |
#pragma once
#include <wrtstat/aggregator/api/aggregated_data.hpp>
#include <wrtstat/aggregator/options/reducer_options.hpp>
#include <wrtstat/system/allocator.hpp>
#include <vector>
#include <limits>
#include <memory>
#include <algorithm>
namespace wrtstat {
class reducer
{
public:
typedef std::vector<data_ptr> d... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017-2017 The Bitcore Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "script/sign.h"
... |
// -*- C++ -*-
// Copyright (C) 2005-2019 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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... |
// Copyright (c) 2016-2017 The B3Coin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "fundamentalnode.h"
#include "fn-manager.h"
#include "spork.h"
#include "core.h"
#include "util.h"
#include "sync.h"
#... |
/* Agobot3 - a modular IRC bot for Win32 / Linux
Copyright (C) 2003 Ago
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
... |
/*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
*******************************************************************************/
#include <taichi/common/uti... |
#include "pch.h"
#include "Texture5Impl.h"
#include <Kore/Graphics5/Graphics.h>
using namespace Kore;
void Graphics5::Texture::_init(const char* format, bool readable) {}
Graphics5::Texture::Texture(int width, int height, Format format, bool readable) : Image(width, height, format, readable) {}
Graphics5::Texture... |
/*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2021 The Stockfish developers (see AUTHORS file)
Stockfish 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 ve... |
/*
* Copyright(c) 2019 Netflix, Inc.
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at https://www.aomedia.org/license/software... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/toolbar/wrench_menu_model.h"
#include <algorithm>
#include <cmath>
#include "base/command_line.h"
#include "base/i18n/nu... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
#pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Licen... |
/*
ExceptionHandler.cpp
Exception handler original code by Matt Pietrek, Microsoft Systems Journal, May 1997
(c)2005 Palestar Inc, Richard Lyle
*/
#define DEBUG_DLL
#include "Log.h"
#include "ExceptionHandler.h"
#include "Error.h"
#include "File/Path.h"
#include "Standard/Thread.h"
#include "Standard/CharString.h... |
#include <iostream>
using namespace std;
int main()
{
int n1, n2, n3, n4, c, max;
cout<<"1. HCF\n";
cout<<"2. LCM\n";
cout<<"choice: ";
cin>>c;
if(c==1)
{
cout << "Enter two numbers: ";
cin >> n1 >> n2;
while(n1 != n2)
{
if(n1 > n2)
... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/Serialization/SerializeContext.h>
#include <AzCore/Serialization/EditContext.h>
#in... |
#include "Config1Automat.h"
#include "Evadts1Protocol.h"
#include "memory/include/MemoryCrc.h"
#include "utils/include/NetworkProtocol.h"
#include "utils/include/Number.h"
#include "utils/include/DecimalPoint.h"
#include "logger/include/Logger.h"
#include <string.h>
#define CONFIG_AUTOMAT_VERSION1 1
#define PRODUCT_I... |
/*
* @Author: Mengsen.Wang
* @Date: 2021-01-19 09:46:27
* @Last Modified by: Mengsen.Wang
* @Last Modified time: 2021-01-19 09:46:51
*/
#include <cstdio>
#include <string>
#include <vector>
int just_recursive(int N) {
if (N == 1 || N == 2) return 1;
return just_recursive(N - 1) + just_recursive(N - 2);
}
in... |
//
// SR Spritesheet Manager
//
// file: srsm_timeline.cpp
// author: Shareef Abdoul-Raheem
// Copyright (c) 2020 Shareef Abdoul-Raheem
//
#include "sr_timeline.hpp"
#include "ui_sr_timeline.h"
#include "Data/sr_project.hpp"
#include "UI/sr_image_library.hpp"
#include <QDebug>
#include <QMenu>
#include <QMimeData... |
/*
Copyright (C) 2013, Basis Technology Corp.
Copyright (C) 2007-2011, Golden G. Richard III and Vico Marziale.
Copyright (C) 2005-2007, Golden G. Richard III.
*
Written by Golden G. Richard III and Vico Marziale.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compli... |
#include <fstream>
#include <string>
#include "gtest/gtest.h"
namespace without_sources_amalgamation
{
class WithoutSourcesAmalgamation : public ::testing::Test
{
protected:
bool isFilePresent(const char* fileName)
{
std::ifstream file(fileName);
const bool isPresent = file.good();
fi... |
// -*- C++ -*-
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
ACE_Sub_Barrier::~ACE_Sub_Barrier (void)
{
}
ACE_INLINE
ACE_Barrier::~ACE_Barrier (void)
{
}
ACE_INLINE
ACE_Thread_Barrier::~ACE_Thread_Barrier (void)
{
}
ACE_END_VERSIONED_NAMESPACE_DECL |
/*
* Copyright 2004 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
// ---------------------------------------------------------------------------------------------------------------------------------
//
//
// _ __ ___ _ __ ___ __ _ _ __ ___ _ __ _ __
// | '_ ` _ \| '... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.7
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do... |
// Copyright 2018 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 "src/ui/scenic/lib/gfx/screenshotter.h"
#include <lib/zx/time.h>
#include <functional>
#include <utility>
#include <vector>
#include <trace/eve... |
#include "mvDrawlist.h"
#include "mvContext.h"
#include "mvItemRegistry.h"
#include "mvViewport.h"
#include "mvAppItemCommons.h"
#include "mvLog.h"
#include "mvPythonExceptions.h"
namespace Marvel {
void mvDrawlist::InsertParser(std::map<std::string, mvPythonParser>* parsers)
{
std::vector<mvPythonDataElement> ar... |
/* Base-64 encoding and decoding. Based on the libb64 project
(http://sourceforge.net/projects/libb64) whose code is placed in the
public domain. */
#include "base64.h"
#include <stdlib.h>
const int CHARS_PER_LINE = 72;
static char
encode1(unsigned int value, char plus, char slash, char eq)
{
const char enc... |
// 3Sum
// 先排序,然后左右夹逼,注意跳过重复的数
// Time Complexity: O(n^2),Space Complexity: O(1)
class Solution {
public:
vector<vector<int>> threeSum(vector<int>& nums) {
vector<vector<int>> result;
if (nums.size() < 3) return result;
sort(nums.begin(), nums.end());
const int target = 0;
... |
#ifndef BOOST_HASH2_IS_CONTIGUOUSLY_HASHABLE_HPP_INCLUDED
#define BOOST_HASH2_IS_CONTIGUOUSLY_HASHABLE_HPP_INCLUDED
// Copyright 2017 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
#include <boost/hash2/is_uniquely_represented.hpp>
namespace boost
{
namespace hash2
{
template<class T, cl... |
// Copyright (c) 2016-2020 The Pexa Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <support/lockedpool.h>
#include <support/cleanse.h>
#if defined(HAVE_CONFIG_H)
#include <config/pexa-config.h>
#endif
... |
/*
* Copyright © 2008, 2009 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merg... |
#include "local_planner/local_planner_node.h"
#include "local_planner/local_planner.h"
#include "local_planner/planner_functions.h"
#include "local_planner/tree_node.h"
#include "local_planner/waypoint_generator.h"
#include <boost/algorithm/string.hpp>
#include <atomic>
#include <condition_variable>
#include <mutex>... |
/*
* This source file is part of libRocket, the HTML/CSS Interface Middleware
*
* For the latest information, see http://www.librocket.com
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and assoc... |
/**
* Copyright 2011-2015 Quickstep Technologies LLC.
* Copyright 2015 Pivotal Software, 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... |
/*************************************************************************/
/* register_types.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
#include "udpserver.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
UdpServer w;
w.show();
return a.exec();
} |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
#include "event/poller.h"
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <iostream>
#include <queue>
#include "event/channel.h"
#include "timer/timer.h"
#include "http/http_connection.h"
#include "log/l... |
// This is the main implementation of factored models, which are driven by the vocabulary.
// Decoding, embedding, and output layer call into the vocab to drive their behavior.
#include "data/vocab_base.h"
#include "common/definitions.h"
#include "data/types.h"
#include "common/regex.h"
#include "data/factored_vocab.h... |
#include <cstdio>
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
#define DOLLAR 0
#define MARK 1
int main(/*int argc, char *argv[]*/) {
// ios::sync_with_stdio(false);
int n;
cin >> n;
double data[n];
for (int i = 0; i < n; i++) { cin >> data[i]; } // for
... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCanvas.h"
#include "SkDocument.h"
#include "SkStream.h"
#include "Test.h"
static void run_test(SkWStream* out, SkXfermode::Mode mode, U8CPU alpha) {
SkAutoTUnr... |
/* vim: set sw=2:
* Copyright (c) 2009, Gennady Bystritsky <bystr@mac.com>
*
* Distributed under the MIT Licence.
* This is free software. See 'LICENSE' for details.
* You must read and accept the license prior to use.
*
* Author: Gennady Bystritsky
*/
#include "DataGenerator.h"
#include <sk/util/Class.h... |
#include "value.hpp"
#include <sstream>
namespace {
char const *default_string = "";
constexpr int default_int = -1;
constexpr gorc::vector<3> default_vector;
constexpr gorc::point<3> default_point;
constexpr gorc::color_rgb default_color;
constexpr float default_float = 0.0f;
}
gorc::cog::val... |
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017 The Dash developers
// Copyright (c) 2017-2018 SECI developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "c... |
// Copyright 1994, 1995, 2000, 2008-2014 by Jon Dart. All Rights Reserved.
#if defined(_WIN32) && !defined(__INTEL_COMPILER)
#pragma optimize("g",off)
#endif
#include "log.h"
#include "notation.h"
#include "globals.h"
#include "debug.h"
#include "scoring.h"
#ifdef _WIN32
#include <windows.h>
#include <io.h>
#endif
#i... |
#include "lwtnn/Stack.hh"
#include <Eigen/Dense>
#include <set>
// internal utility functions
namespace {
using namespace Eigen;
using namespace lwt;
}
namespace lwt {
// ______________________________________________________________________
// Feed forward Stack class
// dummy construction routine
Stac... |
#include "Funcionario.h"
void Funcionario::setHorasTrab(float ht){
horasTrab=ht;
}
void Funcionario::setValorHora(float vh){
valorHora=vh;
}
void Funcionario::calcSalario(){
salario=valorHora*horasTrab;
}
float Funcionario::getSalario(){
return salario;
} |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/media_router/media_cast_mode.h"
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
#include "ch... |
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED* exsolution_strings[] = {
QT_TRANSLATE_NOOP("exsolution-core", ""
"(1 = keep tx meta data e.g. account ... |
#include "wfrest/Logger.h"
#include <cerrno>
#include <thread>
using namespace wfrest;
// Basic use of logger
void test01()
{
LOG_TRACE << "trace ...";
LOG_DEBUG << "debug ...";
LOG_INFO << "info ...";
LOG_WARN << "warn ...";
LOG_ERROR << "error ...";
//LOG_FATAL<<"fatal ...";
errno = 13;
... |
// rollbacktests.cpp
/**
* Copyright (C) 2014 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hop... |
#include "pch.h"
#include <filesystem>
#include <lib/FancyZones.h>
#include <lib/Settings.h>
#include <common/common.h>
#include "util.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace FancyZonesUnitTests
{
TEST_CLASS (FancyZonesUnitTests)
{
HINSTANCE m_hInst;
winr... |
#ifndef _VKTAPIBUFFERCOMPUTEINSTANCE_HPP
#define _VKTAPIBUFFERCOMPUTEINSTANCE_HPP
/*-------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2015 The Khronos Group Inc.
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
* Cop... |
//
// Coypright (c) 2021 Singular Inversions Inc. (facegen.com)
// Use, modification and distribution is subject to the MIT License,
// see accompanying file LICENSE.txt or facegen.com/base_library_license.txt
//
// Affine1: 1D affine
// AffineEw: element-wise affine
//
// Affine: constant dimension affine transform of... |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// These tests make sure MediaGalleriesPermission values are parsed correctly.
#include "base/values.h"
#include "chrome/common/extensions/permission... |
#include <Andromeda/Input/InputManager.h>
#ifdef ANDROMEDA_GLFW
#include <Andromeda/Input/GLFW/InputManagerGlfw.h>
#endif
#ifdef ANDROMEDA_VITA
#include <Andromeda/Input/Vita/InputManagerVita.h>
#endif
#ifdef ANDROMEDA_RPI
#include <Andromeda/Input/RPI/InputManagerRpi.h>
#endif
#ifdef ANDROMEDA_SWITCH
#include <And... |
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020 Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Softwa... |
/* ODIN-W2 implementation of WiFiInterface
* Copyright (c) 2016 u-blox Malmö AB
*
* 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 "sai_meta.h"
// METADATA for SAI_OBJECT_TYPE_BUFFER_POOL
DEFINE_ENUM_VALUES(sai_buffer_pool_type_t)
{
SAI_BUFFER_POOL_INGRESS,
SAI_BUFFER_POOL_EGRESS
};
DEFINE_ENUM_VALUES(sai_buffer_threshold_mode_t)
{
SAI_BUFFER_THRESHOLD_MODE_STATIC,
SAI_BUFFER_THRESHOLD_MODE_DYNAMIC
};
const sai_attr_me... |
#include "Interfaces.h"
#include "DotNetInterface.h"
static const FName FunctionName("Function");
using GetFlagsFunction = int32(*)(UFunction*);
using SetFlagsFunction = void(*)(UFunction*, int32);
using GetNativeFuncFunction = void*(*)(UFunction*);
using SetNativeFuncFunction = void(*)(UFunction*,void*);
struct Fun... |
#include "ghostfragment/property_types/subset_map.hpp"
#include "partitioned.hpp"
using namespace ghostfragment::pt;
namespace ghostfragment::partitioned {
using my_pt = Frag2AO;
using atom2center_pt = simde::AtomToAO;
const auto mod_desc = R"(
AOSpace/Molecule Partitioner
----------------------------
Thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.