text stringlengths 7 961k |
|---|
// 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 "ui/compositor/layer_animation_sequence.h"
#include <algorithm>
#include <iterator>
#include "base/trace_event/trace_event.h"
#include "cc/... |
/**
* spaint: SemanticVisualiserFactory.cpp
* Copyright (c) Torr Vision Group, University of Oxford, 2016. All rights reserved.
*/
#include "visualisation/SemanticVisualiserFactory.h"
using namespace ITMLib;
using namespace ORUtils;
#include "visualisation/cpu/SemanticVisualiser_CPU.h"
#ifdef WITH_CUDA
#include "... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 "feerate.h"
#include "tinyformat.h"
const std::string CURRENCY_UNIT = ... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
* 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. Any modified source or binaries are used only with the BitShares network.
*... |
/***********************************************************************************************************************
*
* Copyright (c) 2020, ABB Schweiz AG
* All rights reserved.
*
* Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that
* the following... |
/*
* Bittorrent Client using Qt and libtorrent.
* Copyright (C) 2015 Vladimir Golovnev <glassez@yandex.ru>
* Copyright (C) 2006 Christophe Dumez <chris@qbittorrent.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published... |
/*
** nodebuild_extract.cpp
**
** Converts the nodes, segs, and subsectors from the node builder's
** internal format to the format used by the rest of the game.
**
**---------------------------------------------------------------------------
** Copyright 2002-2006 Randy Heit
** All rights reserved.
**
** Redistributio... |
/*
* NamespaceAndNameTest.cpp
*
* Copyright 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/ap... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
#include "sgx_trts.h"
#include "sgx_tseal.h"
#include "string.h"
#include "Enclave_t.h"
/**
* @brief Seals the plaintext given into the sgx_sealed_data_t structure
* given.
*
* @details The plaintext can be any data. uint8_t is used to represent a
* byte. The sealed size can be det... |
/*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2015 Wu Lin
* 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 (c) 2014-2019, The Monero Project
//
// 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 o... |
//===----------------------------------------------------------------------===//
//
// 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) 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain software (including
bu... |
// -----------------------------------------------------------------------------
// Copyright 2020 Rui Liu (liurui39660) and Siddharth Bhatia (bhatiasiddharth)
//
// 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 co... |
/******************************************************************************
This source file is part of the Avogadro project.
This source code is released under the New BSD License, (the "License").
******************************************************************************/
#include "command.h"
#include <... |
/*
* Copyright 2017 WebAssembly Community Group participants
*
* 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... |
/* Copyright (c) 2013 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... |
// Copyright (c) 2012-2018 The Elastos Open Source Project
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <arpa/inet.h>
#include <Core/BRPeer.h>
#include "BRPeer.h"
#include "BRPeerMessages.h"
#include "BRPeerManager.h... |
//
// Created by lukas on 06.08.20.
//
#ifndef LATTICEMODELIMPLEMENTATIONS_HYBRID_MONTE_CARLO_HPP
#define LATTICEMODELIMPLEMENTATIONS_HYBRID_MONTE_CARLO_HPP
#include "boost/numeric/odeint/stepper/symplectic_rkn_sb3a_mclachlan.hpp"
#include "boost/numeric/odeint/integrate/integrate_n_steps.hpp"
#include "../../mcmc_... |
#include "NiGeometry.h"
#include "GameAPI.h"
void NiGeometryData::AllocateVerts(UInt32 numVerts)
{
m_pkVertex = (NiPoint3 *)FormHeap_Allocate(sizeof(NiPoint3) * numVerts);
m_pkTexture = (NiPoint2 *)FormHeap_Allocate(sizeof(NiPoint2) * numVerts);
memset(m_pkVertex, 0, sizeof(NiPoint3) * numVerts);
memset(m_pkTextu... |
#pragma once
#ifndef __SRC_LIB_BASIS_HPP__
#define __SRC_LIB_BASIS_HPP__
#include <map>
#include <vector>
#include "instance.hpp"
#include "pricing.hpp"
#include "runtime.hpp"
#include "util/HFactor.h"
#include "util/HVector.h"
#include "util/HVectorBase.h"
#include "snippets.hpp"
enum class BasisStatus {
Default,... |
//========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//===============================... |
// Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
//Author: Austin Whaley, APW5450, 2019-04-13
//Class: CMPSC 121
//Activity: 24
//File: cmpsc121/homework/module_13/M13A24_apw5450.cpp
//Purpose: Fun with Vectors
/********************************************************************\
* Academic Integrity Affidavit: ... |
/*
-----------------------------------------------------------------------------------------------
Copyright (C) 2013 Henry van Merode. All rights reserved.
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 ... |
#include "TcpRecorder.hpp"
#include <QDataStream>
#include <QDebug>
#include <QElapsedTimer>
#include <QFile>
#include <QJsonDocument>
#include <QJsonObject>
#include <QNetworkDatagram>
TcpRecorder::TcpRecorder(QObject *parent) : QThread(parent) {}
TcpRecorder::~TcpRecorder() { stop(); }
void TcpRecorder::start() { ... |
#include <et/app/application.h>
#include <et/core/notifytimer.h>
#include <et-ext/sensor/orientation.h>
namespace et
{
class OrientationManagerPrivate : public EventReceiver
{
public:
OrientationManagerPrivate(OrientationManager* m) :
_man(m), accelEnabled(false), gyroEnabled(false)
{
_timerAccel.expired.... |
#include "gtest/gtest.h"
#include "gmock/gmock.h"
// Simple test, does not use gmock
TEST(Dummy, foobar) { EXPECT_EQ(1, 1); }
// Real class we want to mock
class TeaBreak {
public:
virtual ~TeaBreak() {}
// Return minutes taken to make the drinks
int morningTea() {
return makeCoffee(true, 1) + makeCoffee(... |
#include <cstdlib>
#include <iostream>
#include <stdexcept>
#include <string>
#include <vector>
#include "Configuration.hh"
#include "Environment.hh"
#include "Parameters.hh"
#include "Parser.hh"
#include "Executor.hh"
#include "config.hh"
void usage(const std::string& binary_name)
{
std::cerr << "Usage: " << bin... |
#include "Monitor.h"
namespace WPEFramework {
namespace Plugin {
SERVICE_REGISTRATION(Monitor, 1, 0);
static Core::ProxyPoolType<Web::JSONBodyType<Core::JSON::ArrayType<Monitor::Data>>> jsonBodyDataFactory(2);
static Core::ProxyPoolType<Web::JSONBodyType<Monitor::Data>> jsonBodyParamFactory(2);
stati... |
#include "RectCollision.h"
#include "BaseCollision.h"
#include "BallCollision.h"
#include "Component.h"
#include <vector>
#include "raylib.h"
#include "../../include/raylib-cpp/include/raylib-cpp.hpp"
namespace pong
{
RectCollision::RectCollision(float w, float h) : width(w), height(h) {}
RectCollision::RectC... |
/*****************************************************************************
*
* Rokko: Integrated Interface for libraries of eigenvalue decomposition
*
* Copyright (C) 2017 by Rokko Developers https://github.com/t-sakashita/rokko
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file... |
#include <G2048pp/Block.hpp>
Block::Block()
{
using Random = effolkronium::random_static;
m_num = 2 * Random::get(1,2);
}
int Block::GetNum() const
{
return m_num;
}
void Block::DoubleNum()
{
m_num *= 2;
} |
#include <errno.h>
#include <appctl/options.hpp>
#include <appctl/commands.hpp>
using namespace centauri::appctl::common;
using centauri::appctl::common::commands::vifstabOpts_t;
namespace centauri {
namespace appctl {
namespace vifstab {
int command::run(commandOptions_t *_options) {
... |
#include<stdio.h>
#include<ctype.h>
void Find_First(char[], char);
void Array_Manipulation(char[], char);
int limit;
char production[25][25];
int main()
{
char option;
char ch;
char array[25];
int count;
printf("\nEnter Total Number of Productions:\t");
scanf("%d", &limit);
... |
// Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "packager/media/formats/mp4/single_segment_segmenter.h"
#include <algorithm>
#include "... |
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2014-2016 XDN developers
// Copyright (c) 2016-2018 Karbowanec developers
// Copyright (c) 2017-2019, The CROAT.community developers
//
// This file is part of Bytecoin.
//
// Bytecoin is free software: you can redistribute ... |
// Copyright 2010-2012 RethinkDB, all rights reserved.
#ifndef CONFIG_ARGS_HPP_
#define CONFIG_ARGS_HPP_
#define KILOBYTE 1024LL
#define MEGABYTE (KILOBYTE * 1024LL)
#define GIGABYTE (MEGABYTE * 1024LL)
#define TERABYTE (GIGABYTE * 1024LL)
#define THOUSAND 1000LL
#define MILLION (THOUSAND * THOUSAND)
#define BILLION ... |
#include <gmock/gmock.h>
#include <string>
#include <utility>
#include <vector>
#include "info/info_service_impl.h"
#include "info/mocks/info_mock.h"
namespace {
using testing::_;
using testing::NiceMock;
using testing::Return;
using MockInfo = NiceMock<mavsdk::testing::MockInfo>;
using InfoServiceImpl = mavsdk::ma... |
// Copyright John McFarlane 2018.
// 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)
#include <cnl/_impl/type_traits/identical.h>
#include <cnl/elastic_scaled_integer.h>
#include <cnl/roundi... |
//
// Copyright (c) 2013-2021 Winlin
//
// SPDX-License-Identifier: MIT
//
#include <srs_app_config.hpp>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
// file operations.
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef __li... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include <utility>
#include <vector>
#include "../../../include/fpdfapi/fpdf_... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2021 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated ... |
//-----------------------------------------------------------------------------
// File: DXUtil.cpp
//
// Desc: Shortcut macros and functions for using DX objects
//
//
// Copyright (c) 1997-2001 Microsoft Corporation. All rights reserved
//-----------------------------------------------------------------------------
#... |
//-*****************************************************************************
//
// Copyright (c) 2009-2012,
// Sony Pictures Imageworks Inc. and
// Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with ... |
/*
* 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 ... |
#ifndef _RAR_PPMMODEL_
#define _RAR_PPMMODEL_
#include "suballoc.hpp"
/****************************************************************************
* Contents: 'Carryless rangecoder' by Dmitry Subbotin *
****************************************************************************/
class RangeC... |
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, Leoni... |
/*
* @lc app=leetcode id=1373 lang=cpp
*
* [1373] Maximum Sum BST in Binary Tree
*/
// @lc code=start
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : v... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "vgui_BudgetFPSPanel.H"
#include "vgui_BudgetPanel.h"
#include <vgui/ISurface.h>
#include "tier0/vprof.h"
#include "materialsystem/i... |
#include "steamwrap.h"
vdynamic *CallbackHandler::EncodeLobbyData( LobbyDataUpdate_t *d ) {
if( !d->m_bSuccess ) return NULL;
HLValue ret;
ret.Set("lobby",d->m_ulSteamIDLobby);
if( d->m_ulSteamIDMember != d->m_ulSteamIDLobby ) ret.Set("user",d->m_ulSteamIDMember);
return ret.value;
}
vdynamic *CallbackHandler::E... |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
#include "RTSPServer.hh"
#include "RTSPCommon.hh"
#include "RTSPRegisterSender.hh"
#include "Base64.hh"
#include <GroupsockHelper.hh>
#include "RsCommon.h"
#include "RsRTSPServer.hh"
#include "RsSer... |
/******************************************************************************
*
* Project: GDAL TileDB Driver
* Purpose: Implement GDAL TileDB Support based on https://www.tiledb.io
* Author: TileDB, Inc
*
******************************************************************************
* Copyright (c) 2019, ... |
/*
* 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 ... |
#pragma once
#include "../headers/Utilities.hpp"
#include <string>
class INodeUser {
public:
// set the id of the node.
virtual void setid(std::string id) = 0;
// connect to node given ip and port, return file descriptor
virtual int connect_to(Utilities::Address &address) = 0;
// send message of le... |
/****************************************************************************
Copyright (c) 2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
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 Sof... |
/*
* Copyright (C) 2017 Intel Corporation. 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 requir... |
#include <tcpserver.h>
#include <iostream>
using namespace std;
int main()
{
// Initialize server socket..
TCPServer tcpServer;
// When a new client connected:
tcpServer.onNewConnection = [&](TCPSocket *newClient) {
cout << "New client: [";
cout << newClient->remoteAddress() << ":" <<... |
#include <DB/Storages/MergeTree/MergeTreeData.h>
#include <DB/Interpreters/ExpressionAnalyzer.h>
#include <DB/Storages/MergeTree/MergeTreeBlockInputStream.h>
#include <DB/Storages/MergeTree/MergedBlockOutputStream.h>
#include <DB/Storages/MergeTree/MergeTreePartChecker.h>
#include <DB/Parsers/ASTIdentifier.h>
#include ... |
/* Copyright 2015 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... |
#ifndef STLPLUS_PERSISTENT_SMART_PTR
#define STLPLUS_PERSISTENT_SMART_PTR
////////////////////////////////////////////////////////////////////////////////
// Author: Andy Rushton
// Copyright: (c) Southampton University 1999-2004
// (c) Andy Rushton 2004 onwards
// License: BSD Licens... |
/**
* \file dnn/src/common/argmxx/base_impl.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
... |
/*
@file=espADC.cpp
Provides ADC Readings for each channel
add following to the setup() in your main.cpp
espADC::setup();
add following to the loop in you main.cpp
espADC:readADCChannel(channel);
@dependency=
*/
// #include <SPI.h>
// SPI mySpi;
#include <Adafruit_MCP3008.h>
Adafruit_M... |
/*
* 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... |
/*--------------------------------------------------------------------------*\
| |
| 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... |
#pragma once
#include "utils/util.hpp"
#include "vectors/sorted_array.hpp"
namespace tongrams {
template <typename Vocabulary, typename Mapper, typename Values, typename Ranks,
typename Grams, typename Pointers>
struct trie_count_lm {
typedef sorted_array<Grams, Ranks, Pointers> sorted_array_type;
... |
/*
* 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... |
/*
* Copyright 2016 WebAssembly Community Group participants
*
* 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... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2019 The ALQO & Bitfineon developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/lice... |
/**
* @project identt
* @file src/store/LookupService.cc
* @author S Roychowdhury <sroycode AT gmail DOT com>
* @version 1.0.0
*
* @section LICENSE
*
* Copyright (c) 2017 S Roychowdhury.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated docume... |
#include <stdint.h>
#include <GBAemu/memory/cartridgeStorage.h>
#include <GBAemu/util/log.h>
CartridgeStorage::CartridgeStorage(Memory &memory) :
_memory(memory)
{
}
CartridgeStorage::~CartridgeStorage()
{
}
uint32_t CartridgeStorage::GetSize()
{
return 0;
}
uint8_t CartridgeStorage::ReadMemory(uint32_t addre... |
#include "model/output_layer.h" |
/**
* @file unit-capi-config.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2017-2021 TileDB Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software with... |
/*
* 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 ... |
/*=============================================================================
Library: CppMicroServices
Copyright (c) The CppMicroServices developers. See the COPYRIGHT
file at the top-level directory of this distribution and at
https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT .
Licensed un... |
#include <stdio.h>
#include <time.h>
// Enter the day you were born
// mmddyyyy
int main (void){
int month, day, year, monthT, dayT, yearT;
printf("Enter your Date in ddmmyyyy format\n");
scanf("%2d%2d%4d", &month, &day, &year);
time_t seconds = time(NULL);
struct tm *now = ... |
// 1613. ์ญ์ฌ
// 2019.05.18
// ํ๋ก์ด๋ ์์ฌ ์๊ณ ๋ฆฌ์ฆ
#include<iostream>
using namespace std;
int d[401][401];
int main()
{
int n, m;
int from, to;
scanf("%d %d", &n, &m);
for (int i = 0; i < m; i++)
{
scanf("%d %d", &from, &to);
// ๋์๋ฐฉํฅ์ ๋ํ๋ด๊ธฐ ์ํด 1๊ณผ -1๋ก ์ ์ฅ
d[from][to] = -1;
d[to][from] = 1;
}
// 1>2, 2>3 ์ผ๋ 1>3์ธ... |
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "peridot/lib/callback/capture.h"
#include <memory>
#include "gtest/gtest.h"
namespace callback {
namespace {
TEST(Capture, CaptureVariable) {
... |
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Console
#include "System/Con... |
/* 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... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
//===----------------------------------------------------------------------===//
//
// 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 "HCUBE_Defines.h"
#include "Experiments/HCUBE_ImageCompressionExperiment.h"
#define INPUT_PPM "waveNM_diff.ppm"
#define DIFF_PPM "waveNM_diff2.ppm"
#define OUTPUT_PPM "waveNM_output2.ppm"
#define FITNESS_THRESHOLD (9000)
namespace HCUBE
{
using namespace NEAT;
ImageCompressionExperiment::ImageCompress... |
#include "fuelconsumption.h"
#include "ui_fuelconsumption.h"
#include<QDebug>
FuelConsumption::FuelConsumption() :
ui(new Ui::FuelConsumption)
{
ui->setupUi(this);
ui->readingDate->setDate(QDate::currentDate());
query.exec("SELECT SFOC, dailyCons FROM fuelConsumption WHERE date= (SELECT MAX(date) ... |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* ... |
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb_python/pyconnection.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include <utility>
#include "arrow_array_stream.hpp"
#include "du... |
/**
* Copyright 2021 Scott Brauer
*
* 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 t... |
/*******************************************************************************
* Copyright 2016-2018 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__char_listen_socket_snprintf_81a.cpp
Label Definition File: CWE134_Uncontrolled_Format_String.label.xml
Template File: sources-sinks-81a.tmpl.cpp
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: listen_socket Read ... |
#pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
using namespace std;
#define deb(x) cout << #x << " is " << x << "\n"
#define int long long
#define mod 1000000007
#define PI acos(-1)
template <typename T>
using min_heap = priority_queue<T, vector<T>, greater<T>>;
template <typename T... |
#pragma once
#include <SFML/Graphics.hpp>
#include "engine/physics/physics.hpp"
#include "engine/window_context_handler.hpp"
struct Renderer
{
PhysicSolver& solver;
sf::VertexArray va;
explicit
Renderer(PhysicSolver& s)
: solver(s)
, va(sf::Lines)
{}
void updateVA()
{
... |
/*
Delete Node in a Linked List
============================
Write a function to delete a node in a singly-linked list. You will not be given access to the head of the list, instead you will be given access to the node to be deleted directly.
It is guaranteed that the node to be deleted is not a tail node in the list... |
// Copyright (C) 2020-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include <seal/seal.h>
#include <iostream>
#include <random>
#include <vector>
#include "gflags/gflags.h"
#include "include/data_loader.hpp"
#include "include/logger.hpp"
#include "include/lr_helper.hpp"
#include "include/lrhe.hpp"
#... |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#includ... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "shared_test_classes/single_layer/lstm_cell.hpp"
namespace LayerTestsDefinitions {
TEST_P(LSTMCellTest, CompareWithRefs) {
Run();
};
} // namespace LayerTestsDefinitions |
//
// basic_deadline_timer.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2017 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 BOOST_ASIO_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.