text stringlengths 5 1.04M |
|---|
//=====================================================
// File : x86_perf_analyzer.hh
// Author : L. Plagne <laurent.plagne@edf.fr)>
// Copyright (C) EDF R&D, mar d�c 3 18:59:35 CET 2002
//=====================================================
//
// This program is free software; you can redistribute it and/... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <cassert>
#include <cstdint>
#include <limits>
#include <utility>
#include <algorithm>
#include <type_traits>
#include <functional>
#include <iterator>
#include <vector>
#include <list>
#include <set>
#includ... |
#define DLL
#include "Anime4K.h"
Anime4KCPP::Anime4K::Anime4K(const Parameters& parameters)
{
ps = parameters.passes;
pcc = parameters.pushColorCount;
sc = parameters.strengthColor;
sg = parameters.strengthGradient;
zf = parameters.zoomFactor;
fm = parameters.fastMode;
vm = parameters.vide... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: The base class from which all game entities are derived.
//
//===========================================================================//
#include "cbase.h"
#include "globalstate.h"
#include "isaverestore.h"
#include "client.... |
#ifndef PLUGINSOURCES_INTERFACE_HPP_WED_JAN_25_09_47_46_2017
#define PLUGINSOURCES_INTERFACE_HPP_WED_JAN_25_09_47_46_2017
#include "types.h"
extern "C" {
DLLAPI float foo(float value);
}
#endif /* PLUGINSOURCES_INTERFACE_HPP_WED_JAN_25_09_47_46_2017 */
/*
* End of interface.hpp
*/
|
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/*
BSD 3-Clause License
Copyright (c) 2021, SudoCpp
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,... |
/****************************************************************************
*
* Copyright (c) 2020 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. Redistri... |
// This file automatically generated by create_export_module.py
#define NO_IMPORT_ARRAY
#include <NumpyEigenConverter.hpp>
#include <boost/cstdint.hpp>
void import_1_5_double()
{
NumpyEigenConverter<Eigen::Matrix< double, 1, 5 > >::register_converter();
}
|
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softwa... |
/*
* Copyright 2019 Xilinx Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Contact.cpp :+: :+: :+: ... |
// 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 "third_party/blink/renderer/core/page/touch_adjustment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/plat... |
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#include <boost/accumulators/statistics/mean.hpp>
#include <boost/accumulators/statistics/min.hpp>
#include <boost/accumulators/statistics/max.hpp>
#include <boost/accumulators/statistics/variance.hpp>
#include <boost/file... |
/* author : @akashsaini */
#include<bits/stdc++.h>
using namespace std;
double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) {
vector<long int>v;
for(long int i=0;i<nums1.size();++i)
{
v.push_back(nums1[i]);
}
for(long int i=0;i<nums2.size();++i)
... |
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define mkp make_pair
#define fi first
#define se second
#define ll long long
#define pii pair<int, int>
#define M 1000000007
#define all(a) a.begin(), a.end()
const long double eps = 1e-10 , pi = acos(-1.0);
inline int dcmp(long double x) {
return (x ... |
// Author: btjanaka (Bryon Tjanaka)
// Problem: (HackerRank) greedy-florist
// Title: Greedy Florist
// Link: https://www.hackerrank.com/challenges/greedy-florist/problem
// Idea: Sort the numbers by descending order and assign them one by one to each
// friend. This ensures that the worst multipliers are given to the ... |
// Copyright (c) 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 <boost/assign/list_of.hpp>
#include "base58.h"
#include "bitcoinrpc.h"
#inclu... |
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... |
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
// eliminating duplicated round() declaration
#define HAVE_ROUND
#endif
#include <Python.h>
#define MODULESTR "cv2"
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/ndarrayobject.h>
#include "pyopencv_generated_include.h"
#include "opencv2/core/types_c.h"
... |
#include "selfdrive/common/params.h"
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif // _GNU_SOURCE
#include <dirent.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <unistd.h>
#include <csignal>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <mutex>
#include <unordered_map>
#include "selfd... |
/* Copyright (c) 2017, ARM Limited and Contributors
*
* SPDX-License-Identifier: MIT
*
* 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 ... |
#include "BinaryEdgeListPartitionReader.h"
#include <fstream>
NetworKit::BinaryEdgeListPartitionReader::BinaryEdgeListPartitionReader(node firstNode, uint8_t width) : firstNode(firstNode), width(width) {
if (width != 4 && width != 8) {
throw std::runtime_error("Error: width must be 4 or 8");
}
}
NetworKit::Partit... |
#include "mbed.h"
#include "gps.h"
#define LAT_UNFIXED 0xaaaaa9
#define LONG_UNFIXED 0x355554e
const char NmeaDataTypeGPGGA[] = "GPGGA";
//const char NmeaDataTypeGPGSA[] = "GPGSA";
//const char NmeaDataTypeGPGSV[] = "GPGSV";
const char NmeaDataTypeGPRMC[] = "GPRMC";
/* Value used for the conversion... |
// Copyright (c) 2011-2020 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/bitcoin-config.h>
#endif
#include <qt/sendcoinsdialog.h>
#include <qt/forms/ui_s... |
/*
* TraversalBinaryTree_test.cpp
*
* Created on: 2014年5月20日
* Author: Jayin Ton
*/
#include "TraversalBinaryTree.h"
#include "../SortTree/SortTree.h"
#include <queue>
using namespace std;
void TraversalBinaryTreetest() {
cout << "test start" << endl;
SortTree t;
t.add(2);
t.add(7);
t... |
/*
* Copyright 2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
//===-- MCELFObjectTargetWriter.cpp - ELF Target Writer Subclass ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2021 The Weacoin Core developers
// Copyright (c) 2017 The Zcash developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <key.h>
#include <arit... |
#ifndef GUARD_DPSG_GITC_DECISIONS_HPP
#define GUARD_DPSG_GITC_DECISIONS_HPP
#include "./types.hpp"
namespace gitc {
enum class decision_type { wait, move, bomb, inc };
struct wait_t {
} constexpr wait;
struct move {
strength cyborgs;
factory_id origin;
factory_id destination;
};
struct increment_production {
... |
//$Id$
//------------------------------------------------------------------------------
// AttitudePanel
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
//
// Copyright (c) 2002 - 2018 United States Government as repre... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkInstantiator.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software ... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
/***************************************************************************
*
* Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved
*
**************************************************************************/
/**
* @file src/example/test_volum_collector.cc
* @author haolifei(com@baidu.com)
* @date 2... |
/**********************************************************************
* Copyright (c) 2015 Mark Charlebois
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following co... |
#include <SDL.h>
#include <chrono>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include "Object.h"
#include "Player.h"
#include "SpriteLoading.h"
#include "Platforms.h"
#include "Vector2d.h"
#define SCREEN_WIDTH 1280
#define SCREEN_HEIGHT 720
static Platforms platform;
static Object object;
... |
/*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... |
// Copyright (c) 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 <boost/assign/list_of.hpp>
#include "wallet.h"
#include "walletdb.h"
#include... |
# include <iostream>
using namespace std;
int main (){
int max , min ;
int arr [5] = {3,1,5,2,9};
max = min = arr [0];
for (int i = 0 ; i< 5 ; i++){
if (min > arr[i] ){
min = arr[i];
}
if (max < arr [i]){
max = arr[i];
... |
// 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/io_thread.h"
#include <utility>
#include <vector>
#include "base/base64.h"
#include "base/bind.h"
#include "base/bind_helpe... |
/*
* 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... |
/*******************************************************************************
* Copyright (c) 2014, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
#pragma once
#include <cstdint>
#include <utility>
#include <vector>
#include <mgs/base64.hpp>
namespace Tanker
{
template <typename>
class BufferWrapper : std::vector<std::uint8_t>
{
public:
using base_t = std::vector<std::uint8_t>;
BufferWrapper() = default;
template <typename InputIterator>
BufferWrappe... |
/* Copyright (c) 2013, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QTcpSocket>
#include <QCryptographicHash>
#include "tpopmailer.h"
#include "tsystemglobal.h"
#if def... |
// Copyright (c) 2017 The Widecoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// This is a translation to GCC extended asm syntax from YASM code by Intel
// (available at the bottom of this file).
#includ... |
#include "asd.HeightFogRendering.h"
#include "../../asd.Graphics_Imp.h"
#include "../../Resource/asd.ShaderCache.h"
#include "../../Shader/DX/3D/Screen_VS.h"
#include "../../Shader/GL/3D/Screen_VS.h"
#include "../../Shader/DX/3D/HeightFog_PS.h"
//#include "../../Shader/GL/3D/HeighFog_PS.h"
#include "../../Comman... |
/*
Copyright (c) 2009-2016, Arvid Norberg
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
notice, this list of conditions and ... |
#include "./dart_api/dart_api.h"
#include "LabSound/LabSound.h"
#include "KeepNode.cpp"
#include "struct.h"
using namespace lab;
DART_EXPORT int createBiquadFilterNode(AudioContext* context) {
auto node = std::make_shared<BiquadFilterNode>(*context);
return keepNode(node);
}
DART_EXPORT int BiquadFilterNode_t... |
/*
* Copyright (c) 2019-2020, Sergey Bugaev <bugaevc@serenityos.org>
* 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 no... |
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/
#include "AppConfig.h"
#include <juce_audio_plugin_client/juce_audio_plugin_client_RTAS_2.cpp>
|
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, Leoni... |
/*
* 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.
*
* This program is distributed in the hope that it will be use... |
// This file is part of QIpMsg.
//
// QIpMsg 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) any later version.
//
// QIpMsg is distributed in the hope... |
// Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "TON/Cell.h"
#include "HexCoding.h"
#include <gte... |
// Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#include "cefclient/browser/views_window.h"
#include <algorithm>
#include "include/base/cef_bind.h"
#include "include/base/cef_bu... |
#include "panel_edit.h"
cse::EditParamPanel::EditParamPanel(const float width) :
panel_width(width)
{
}
float cse::EditParamPanel::get_width() const
{
return panel_width;
}
float cse::EditParamPanel::get_height() const
{
return panel_height;
}
void cse::EditParamPanel::pre_draw()
{
// Stub so subclasses can op... |
#include "repository/ISwiftMtParser.h"
#include "SwiftMtMessage.pb.h"
#include <vector>
#include <string>
#include "BaseErrorListener.h"
#include "SwiftMtParser_MT800Lexer.h"
// Generated from C:/programming/message-converter-c/message/generation/swift-mt-generation/repository/SR2018/grammars/SwiftMtParser_MT800.g4 ... |
#if !defined(SdpCandidate_hxx)
#define SdpCandidate_hxx
#include "rutil/compat.hxx"
#include "rutil/Data.hxx"
#include <list>
namespace sdpcontainer
{
class SdpCandidate
{
public:
typedef enum
{
CANDIDATE_TRANSPORT_TYPE_NONE,
CANDIDATE_TRANSPORT_TYPE_UDP, // "udp" - draft-ietf-mmusic-ic... |
// 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 "base/notreached.h"
// This is a widely included header and its size has significant impact on
// build time. Try not to raise this limit unless... |
// Copyright (c) 2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <interfaces/wallet.h>
#include <amount.h>
#include <chain.h>
#include <consensus/validation.h>
#include <init.h>
#includ... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
/* 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 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 License at
//
// ... |
//
// MIT License
//
// © ESI Group, 2015
//
// 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, merge, pu... |
#include <RmlUiPluginPCH.h>
#include <RmlUiPlugin/Components/RmlUiMessages.h>
// clang-format off
EZ_IMPLEMENT_MESSAGE_TYPE(ezMsgRmlUiReload);
EZ_BEGIN_DYNAMIC_REFLECTED_TYPE(ezMsgRmlUiReload, 1, ezRTTIDefaultAllocator<ezMsgRmlUiReload>)
EZ_END_DYNAMIC_REFLECTED_TYPE;
// clang-format on
|
#include "MojangVersionFormat.h"
#include "OneSixVersionFormat.h"
#include "MojangDownloadInfo.h"
#include "Json.h"
using namespace Json;
#include "ParseUtils.h"
#include <BuildConfig.h>
static const int CURRENT_MINIMUM_LAUNCHER_VERSION = 18;
static MojangAssetIndexInfo::Ptr assetIndexFromJson (const QJsonObject &ob... |
#include <all_far.h>
#pragma hdrstop
#include "Int.h"
void SetTitles(char *cols[], LPCSTR fmt,int cn)
{
int n = 0;
if(!fmt || *fmt == 0 || !cn)
return;
do
{
if(*fmt == 'C' || *fmt == 'c')
{
fmt++;
switch(*fmt)
{
case '0':
cols[n] = (char*)FP_GetMsg(MFileMode);
break;
case '1':... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/media/capture/desktop_capture_device_aura.h"
#include "base/synchronization/waitable_event.h"
#include "content/browser/browser... |
/*
Copyright (C) 2005-2007 MySQL AB
All rights reserved. Use is subject to license terms.
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; version 2 of the License.
This program is... |
/*
* Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
* Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
* Copyright (C) 2007 Alp Toker <alp.toker@collabora.co.uk>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... |
#ifndef _UTIL_MAP_CACHE_HPP_
#define _UTIL_MAP_CACHE_HPP_
#include <list>
#include <vector>
#include <map>
#include <algorithm>
namespace util {
template<class Key, class Object>
class map_cache {
std::list<Object> objects_;
std::list<Object*> free_;
std::list<Key> keys_;
std::map<Key, Object*> allocate... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//————————————————————————————————————————————————————————————————————————————————————————————————————————————————
/*
... |
#include "VigilBehavior.h"
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QUrl>
#include <QtNetwork/QHostAddress>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QTcpSocket>
#include <eirExe/Log.h>
#include <eirExe/ResultId.h>
#in... |
// Maximum bipartite matching
// Index from 1
// Find max independent set:
// for(i = 1 → M) if (mat.matchL[i] > 0) {
// if (mat.dist[i] < inf) {
// for(j = 1 → N) if (ke[i][j]) right.erase(j); }
// else left.erase(i);
// }
// Find vertices that belong to all maximum matching:
// - L = vertices not matched on l... |
// This file was generated based on '(multiple files)'.
// WARNING: Changes might be lost if you edit this file directly.
#include <Fuse.Animations.Anima-9f6f3909.h>
#include <Fuse.Box.h>
#include <Fuse.Elements.Element.h>
#include <Fuse.Input.Pointer.h>
#include <Fuse.Input.PointerEnt-cfe04f3d.h>
#include <Fuse.Input... |
/*=========================================================================
Program: Visualization Toolkit
Module: QVTKGraphicsItem.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software i... |
#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n, x; cin >> n >> x;
string s; cin >> s;
long long int ans = 0;
for (int i = 0; i < n; i++) {
int a; cin >> a;
if (s[i] == '1') {
if (a > x) ans += x;
... |
// Copyright 2014 The Souper 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 ap... |
/*
* 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 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/*
* Copyright (C) 2015-2016 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Domain/Creators/Cylinder.hpp"
#include <algorithm>
#include <array>
#include <cmath>
#include <memory>
#include <unordered_map>
#include <variant>
#include <vector>
#include "Domain/BoundaryConditions/None.hpp"
#include "Domain/BoundaryC... |
// <Snippet1>
#using <System.Xml.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
int main()
{
//Create the XmlDocument.
XmlDocument^ doc = gcnew XmlDocument;
doc->LoadXml( "<!DOCTYPE book [<!ENTITY h 'hardcover'>]><book genre='novel' ISBN='1-861001-57-5'><title>Prid... |
#include "hbpch.h"
#include "AreaAllocator.h"
namespace Hubie::Maths
{
AreaAllocator::AreaAllocator()
{
Reset(0, 0);
}
AreaAllocator::AreaAllocator(int width, int height, bool fastMode)
{
Reset(width, height, width, height, fastMode);
}
AreaAllocator::AreaAllocator(int width, int height, int maxWidth, int... |
#include <cctype>
#include <string>
#include <vector>
bool isAllWhitespace(
const std::string token) // No obvious way to do it in REGEX so that CLANG
// on Linux won't miscompile it.
{
for (unsigned i = 0; i < token.size(); i++)
if (!std::isspace(token[i]))
return false;
... |
#include "codec_params.h"
#include "gtest/gtest.h"
#include "xrange_encoder.h"
namespace twim {
// Actually methods reside in encoder, but...
void writeSize(XRangeEncoder* dst, uint32_t value);
uint32_t simulateWriteSize(uint32_t value);
float calculateImageTax(uint32_t width, uint32_t height);
class XRangeEncoderF... |
#include "dcn_v2.h"
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
m.def("dcn_v2_forward", &dcn_v2_forward, "dcn_v2_forward");
m.def("dcn_v2_backward", &dcn_v2_backward, "dcn_v2_backward");
m.def("dcn_v2_psroi_pooling_forward", &dcn_v2_psroi_pooling_forward, "dcn_v2_psroi_pooling_forward");
m.def("dcn_v2_psroi_po... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/generated/effect/EffectParameterEvaluator.hpp>
#include <RED4ext/Types/generated/effect/TrackItem.hpp>
namespace RED4ext
{
namespace effect { ... |
/*
StepperController.cpp - Library for controlling multiple A4988 chips concurrently with dynamic motion profiles.
*/
#include <Arduino.h>
#include "StepperController.h"
#include "KiP33.h"
#define HIGH 1
#define LOW 0
#define INPUT 1
#define OUTPUT 0
#define KIP33
#define STEPS_PER_REVOLUTION 200
/**
* Constructs... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "common.h"
#include "stringliteralmap.h"
#include "virtualcallstub.h"
//*********************************... |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmGlobalJOMMakefileGenerator.h"
#include "cmDocumentationEntry.h"
#include "cmLocalUnixMakefileGenerator3.h"
#include "cmMakefile.h"
#include "cmState.h"
#includ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/cuda/cuda_execution_provider.h"
#include "core/framework/compute_capability.h"
#include "core/framework/fallback_cpu_capability.h"
#include "core/framework/kernel_registry.h"
#include "core/framewo... |
/*
* 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 (c) 2009-2019 The Bitcoin Core developers
// Copyright (c) 2014-2019 The BitsCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <coins.h>
#include <script/standard.h>
#include <uint256.h>
... |
/*
* Copyright 2019-2020 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 "... |
#include "trajectory.h"
#include <algorithm>
#include <iostream>
#include <sstream>
#include "constants.h"
#include "helpers.h"
#include "spline.h"
#include "JMT.h"
#include "debug.h"
// Use generated predictions (e.g., from Vehicle::generate_predictions())?
#define USE_PREDICTIONS 1
// Stay in the center (start... |
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers
//
// This file is part of DCRS.
//
// DCRS is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the Licen... |
#include <iostream>
#include <cstdio>
using namespace std;
int main(){
int nums[100][100];
int temp = 0;
for (int i = 0; i < 100; ++i) {
for (int j = 0; j < 100; ++j) {
cin >> temp;
if(temp == EOF){
break;
}
}
}
}
|
/*
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "version.h"
#include "dll_log.hpp"
#include "ini_file.hpp"
#include "addon_manager.hpp"
#include "runtime.hpp"
#include "runtime_objects.hpp"
#include "effect_parser.hpp"
#include "effect_co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.