text stringlengths 7 961k |
|---|
#include "io.hpp"
ZHETAPI_REGISTER(zhp_printf)
{
cout << "Printf!" << endl;
return nullptr;
} |
//=================================================================================================
/*!
// \file src/mathtest/dvecdvecouter/V5bV2b.cpp
// \brief Source file for the V5bV2b dense vector/dense vector outer product math test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This file... |
/*
* DbgShader.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2018 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "DbgShader.h"
#include "DbgCore.h"
namespace LLGL
{
DbgShader::DbgShader(Shader& instance, const ShaderType type, RenderingDebugger* debugger) :
... |
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
// #include "Eigen/Dense"
#include "MPC.h"
#include "json.hpp"
// for convenience
using json = nlohmann::json;
// For converting back and forth... |
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// binary_woarchive.cpp:
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http... |
/*
* Copyright 2006-2016 zorba.io
*
* 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... |
#include <iostream>
#include <string>
#include <memory>
class Person
{
std::string name_;
public:
Person(const std::string& name) : name_(name)
{
std::cout << "ctor::" << name_ << std::endl;
}
~Person()
{
std::cout << "dtor::" << name_ << std::endl;
}
std::shared_ptr<Person> best_friend;
};
void makeFriends(... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* 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.
*/
#include <proxygen/lib/http/session/HQSession.h>
#include <proxygen/lib/http/HTTPPriorityFunctions... |
/**
* solb_app.cpp
*
* Standalone version of SolB solenoid magnetic flux density calculator.
*
* Version 1.0 @ 10/26/2018
*
* Jaerin Lee
* Applied Superconductivity Laboratory
* Dept. of Electrical and Computer Engineering
* Seoul National University
*/
#include <vector>
#include <cstdlib>
#include <cstring... |
#include <bits/stdc++.h>
using namespace std;
inline int read()
{
register int x=0,f=1;register char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return x*f;
}
inline void write(register long long x)
{
if(!x)putchar('0');if(x<0)x=-... |
#include <deque>
#include <mutex>
#include <shared_mutex>
#include "REFramework.hpp"
#include "RETypeDB.hpp"
#include "RETypeDefinition.hpp"
namespace sdk {
sdk::REMethodDefinition* RETypeDefinition::MethodIterator::begin() const {
if (m_parent->member_method == 0) {
return nullptr;
}
auto tdb =... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "leveldb/table_builder.h"
#include <assert.h>
#include "leveldb/comparator.h"
#include "level... |
/* Copyright (c) 2019 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 by applicable law or... |
/******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
/*
* Copyright (C) 2018 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 appl... |
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
#if defined(IMGUI_IMPL_OPENGL_ES2)
#include <GLES2/gl2.h>
#endif
#include <GLFW/glfw3.h>
#define IMGUI_DEFINE_MATH_OPERATORS
#include "imgui_internal.h"
#define IMAPP_IMPL
#include "ImGuizmo.h"
#include <algorithm>
#include <math.h>
#incl... |
/*
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
// For more information about locking in this code
// please look at Documentation/Kernel/AHCILocking.md
#include <AK/Atomic.h>
#include <Kernel/Locking/Spinlock.h>
#include <Kernel/Memory/MemoryManager.h>
#inclu... |
// Copyright (c) 2021 The Orbit 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 <gtest/gtest.h>
#include <cstdint>
#include "MachineCode.h"
namespace orbit_user_space_instrumentation {
TEST(MachineCodeTest, BuildCode) {
... |
/**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... |
//
// Copyright 2005-2007 Adobe Systems Incorporated
// Copyright 2020 Samuel Debionne
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_EXTENSION_DYNAMIC_IMAGE_ANY_IMAGE_HPP
#define BOOST_GIL_... |
#include <bits/stdc++.h>
using namespace std;
int main() {
bool ctl = true;
int n; int maior;
cin >> n;
for (int i = 0; i < n; i++) {
int x;
cin >> x;
if (i == 0)
maior = x;
else if (x > maior)
ctl = false;
}
if (ctl)
cout <<... |
/// @file
/// @author David Pilger <dpilger26@gmail.com>
/// [GitHub Repository](https://github.com/dpilger26/NumCpp)
/// @version 2.0.0
///
/// @section License
/// Copyright 2020 David Pilger
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy of this
/// software and associated docum... |
#include "csgostructs.hpp"
#include "../Helpers/Math.hpp"
#include "../Helpers/Utils.hpp"
bool C_BaseEntity::IsPlayer()
{
//index: 152
//ref: "effects/nightvision"
//sig: 8B 92 ? ? ? ? FF D2 84 C0 0F 45 F7 85 F6
return CallVFunction<bool(__thiscall*)(C_BaseEntity*)>(this, 153)(this);
}
bool C_BaseEntity::IsLoot()... |
// Copyright 2019 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... |
//
// This file contains the C++ code from Program 3.1 of
// "Data Structures and Algorithms
// with Object-Oriented Design Patterns in C++"
// by Bruno R. Preiss.
//
// Copyright (c) 1998 by Bruno R. Preiss, P.Eng. All rights reserved.
//
// http://www.pads.uwaterloo.ca/Bruno.Preiss/books/opus4/programs/... |
#include "stdafx.h"
#include "../log/log.h"
#include "cache_garbage_collector.h"
namespace fs = boost::filesystem;
namespace
{
std::atomic<bool> is_running_(false);
}
CORE_DISK_CACHE_NS_BEGIN
void cleanup_dir(const std::wstring &_path)
{
assert(!_path.empty());
auto expected = false;
if (!is_runn... |
#pragma once
#include <stdint.h>
#include <stddef.h>
#define GLM_FORCE_SWIZZLE
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
namespace proto {
using u8 = uint8_t;
using u16 = uint16_t;
using u32 = uint32_t;
using u64 = uint64_t;
using s8 = int8_t;
... |
// Copyright (c) 2014-2018 The Bitsend Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <crypto/aes.h>
#include <crypto/chacha20.h>
#include <crypto/ripemd160.h>
#include <crypto/sha1.h>
#include <crypto/... |
/*
* 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... |
/*
* kmp_utility.cpp -- Utility routines for the OpenMP support library.
*/
//===----------------------------------------------------------------------===//
//
// 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... |
// Copyright (c) 2007-2017 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#if !defined(HPX_LCOS_DETAIL_FUTURE_DATA_MAR_06_2012_1055AM)
#define HPX_LCOS_DET... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
#pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018 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... |
// Copyright (c) 2011-2014 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 <QApplication>
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoin... |
// Copyright (C) 2020-2021 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef LEXY_DSL_BRANCH_HPP_INCLUDED
#define LEXY_DSL_BRANCH_HPP_INCLUDED
#include <lexy/dsl/base.hpp>
#include <lexy/ds... |
// SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2020 Jihoon Lee <jhoon.it.lee@samsung.com>
*
* @file unittest_nntrainer_profiler.cpp
* @date 09 December 2020
* @brief Profiler Tester
* @see https://github.com/nnstreamer/nntrainer
* @author Jihoon Lee <jhoon.it.lee@samsung.com>
* @bug No kn... |
/*
* @file utils.cc
* @brief Utility functions
* @author John McDonough
*/
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <assert.h>
#include "utils.h"
// ------------------------------------------------------------------------
// fileLock opens a file handle and locks it for writing
//... |
// 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.
#ifndef _METHOD_INL_
#define _METHOD_INL_
inline BOOL MethodDesc::HasTemporaryEntryPoint()
{
WRAPPER_NO_CONTR... |
#include <core/pose.h>
namespace ssim {
LocalPose::LocalPose(double to_left, double to_back) : to_left(to_left), to_back(to_back) {}
LocalPose::LocalPose(double to_left, double to_back, double yaw_from_straight) : to_left(to_left), to_back(to_back),
... |
using namespace std;
#define natural unsigned int
#pragma region "BINARY GCD"
template<class T>
typename std::enable_if<std::is_unsigned<T>::value, T>::type GCD(T u, T v) {
int shift;
if (u == 0) return v;
if (v == 0) return u;
for (shift = 0; ((u | v) & 1) == 0; ++shift) {
u >>= 1;
v >>= 1;
}
while ((u ... |
// 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/extensions/api/audio_modem/audio_modem_api.h"
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <ve... |
// bsls_deprecate.cpp -*-C++-*-
#include <bsls_deprecate.h>
// BDE_VERIFY pragma: -SH06 // Levelized below 'bsls_ident'.
///Implementation Notes
///--------------------
//
///Extraction of Arguments from '__VA_ARGS__'
/// - - - - - - - - - - - - - - - - - - - - -
// Th... |
/*******************************************************************************
*
* MIT License
*
* Copyright 2021-2022 Advanced Micro Devices, 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
*... |
//=================================================================================================
/*!
// \file src/mathtest/operations/dmatdmatmax/LDbSDb.cpp
// \brief Source file for the LDbSDb dense matrix/dense matrix maximum math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// T... |
/**
* Copyright (c) 2013 GraphLab Inc.
* 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
*
* Unles... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
/*
* ChordNode.cpp
* iPhone_p2p_engine
*
* Created by Laurent Vanni & Nicolas Goles Domic, 2010
*
*/
#include "protocols/chord/ChordNode.h"
#include "thread/Stabilization.h"
#include "thread/CheckPred.h"
#include "thread/FixFinger.h"
#include "transport/http/TransportHTTP.h"
#include "mongoose_http_server/cal... |
// Copyright 2019 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 "processing_node.h"
#include <lib/syslog/cpp/macros.h>
#include <zircon/assert.h>
#include <zircon/errors.h>
#include <zircon/types.h>
#include <... |
/*************************************************************************/
/* tween.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... |
const int SIZEP = 10005;
const int SIZET = 1000005;
char pat[SIZEP];
int Next[SIZEP];
char text[SIZET];
int lt,lp;
void getNext()
{
for(int i=0,j=-1;i<=lp;i++,j++)
{
Next[i] = j;
while(j!=-1 && pat[i]!=pat[j]) j = Next[j];
}
}
int query()
{
int cnt = 0;
for(int i=0,j=0;i<=lt;i++,j... |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2021 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... |
/*******************************************************************************
* Copyright (c) 2007, 2008, CerroKai Development
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistribu... |
#include <qt/test/wallettests.h>
#include <qt/test/util.h>
#include <interfaces/chain.h>
#include <interfaces/node.h>
#include <qt/bitcoinamountfield.h>
#include <qt/optionsmodel.h>
#include <qt/platformstyle.h>
#include <qt/qvalidatedlineedit.h>
#include <qt/sendcoinsdialog.h>
#include <qt/sendcoinsentry.h>
#include ... |
/* Copyright 2020 Stanford University, NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
//Original Work: Copyright 2006 Sony Computer Entertainment Inc.
//Modified Work: Copyright (C) 2022 Ehsan Kamrani
//This file is licensed and distributed under MIT license
#include "stdafx.h"
#include "geometry.h"
#include "scene.h"
#include "matrix.h"
#include "render.h"
#include "node.h"
//#include "cfxLoader.h"
/... |
#include "Addition.hpp"
AdditionModule::AdditionModule()
: Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
// nothing to do here
}
void AdditionModule::step() {
float top1 = inputs[TOP1_INPUT].value;
float top2 = inputs[TOP2_INPUT].value;
float bottom1 = inputs[BOTTOM1_INPUT].value;
float bott... |
// 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 "chrome/browser/win/conflicts/third_party_conflicts_manager.h"
#include <string>
#include <utility>
#include "base/base_paths.h"
#include "base... |
#ifndef QUICKHULL_HPP_
#define QUICKHULL_HPP_
#include <deque>
#include <vector>
#include <array>
#include <limits>
#include "Structs/Vector3.hpp"
#include "Structs/Plane.hpp"
#include "Structs/Pool.hpp"
#include "Structs/Mesh.hpp"
#include "ConvexHull.hpp"
#include "HalfEdgeMesh.hpp"
#include "MathUtils.hpp"
/*
* Im... |
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
/*ckwg +5
* Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "vtkVgEventRepresentationBase.h"
#include "vtkVgContourOperatorManager.h"
#include ... |
//ReceiverOutputQueue.cpp
#include "ReceiverOutputQueue.h"
ReceiverOutputQueue::ReceiverOutputQueue()
{
// this is the constructor
// initializes the queue
// sets front and back
front = RECEIVER_OUTPUT_QUEUE_SIZE - 1;
back = front;
length = 0;
}
int ReceiverOutputQueue::Length() const
{
// returns the number... |
#include <iostream>
using namespace std;
int main()
{
string s;
getline(cin, s);
while(s != "END"){
string prev = s;
string crt = to_string(s.size());
int count_ = 1;
while(crt != prev){
prev = crt;
crt = to_string(crt.size());
count_ +=... |
/*
* Copyright 2011 The LibYuv 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 p... |
// 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 "chromeos/components/cdm_factory_daemon/cdm_storage_adapter.h"
#include <utility>
#include "base/bind.h"
#include "mojo/public/cpp/bindings/cal... |
#pragma once
#include <sleepy_discord/sleepy_discord.h>
#include "zlib_wrapper.hpp"
class WebsocketZlibStream : public SleepyDiscord::JsonInputStream {
public:
typedef typename rapidjson::UTF8<>::Ch Ch;
private:
ZlibWrapper &_zlib_wrapper;
char _buf[1024]{};
int64_t _buf_read_size = 0;
uint32_t _current... |
#ifndef BOOST_ARCHIVE_ARRAY_OARCHIVE_HPP
#define BOOST_ARCHIVE_ARRAY_OARCHIVE_HPP
// (C) Copyright 2005 Matthias Troyer and Dave Abrahams
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0... |
/**
* @file SerialNumberSignatureOfKnowledge.cpp
*
* @brief SerialNumberSignatureOfKnowledge class for the Zerocoin library.
*
* @author Ian Miers, Christina Garman and Matthew Green
* @date June 2013
*
* @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
* @license This pr... |
// =============================================================================
// 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... |
#include "camera.hpp"
#include <glm\glm.hpp>
#include "window.hpp"
#include "input.hpp"
#include <glm\gtc\matrix_transform.hpp>
#include <glm\gtx\transform.hpp>
void Camera::update(float dt)
{
// DEBUG FPS CAMERA
auto dm = Input::mouseMov();
pitch += dm.y * 0.005f;
yaw -= dm.x * 0.005f;
float hpi = glm::half_pi<... |
/***
* ==++==
*
* Copyright (c) Microsoft 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 required by... |
#include "mvColumns.h"
#include "PythonUtilities/mvPythonTranslator.h"
namespace Marvel {
mvManagedColumns::mvManagedColumns(const std::string& name, int columns)
: mvAppItem(name)
{
if (columns < 1)
m_columns = 1;
else if (columns > 64)
m_columns = 64;
else
m_columns = columns;
for (int i = 0; ... |
/**
* Copyright (C) 2021 Elisha Riedlinger
*
* This software is provided 'as-is', without any express or implied warranty. In no event will the
* authors be held liable for any damages arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose, including co... |
#include <database/insert_query.hpp>
template <>
std::string before_value<Database::Date>()
{
if (Database::engine_type() == DatabaseEngine::EngineType::Sqlite3)
return "julianday(";
if (Database::engine_type() == DatabaseEngine::EngineType::Postgresql)
return "to_timestamp(";
return {};
}
template <>
s... |
/* file: df_cls_traversed_model_builder.cpp */
/*******************************************************************************
* Copyright 2014-2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain ... |
// Copyright (c) 2011-2013 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 <QApplication>
#include "bitcoingui.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
#include "OpenedDocument.h"
#include "RocketSystem.h"
#include "CodeEditor.h"
#include "RocketHelper.h"
OpenedDocument::OpenedDocument() : selectedElement(NULL)
{
}
void OpenedDocument::initialize()
{
OpenedFile::initialize();
highlighter = new XMLHighlighter(document());
fillTextEdit();
}
void OpenedDo... |
//===- FIRRTLFolds.cpp - Implement folds and canonicalizations for ops ----===//
//
// 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
//
//===---------------------------... |
/**
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2019.
*
* @file DataLayout.hpp
* @brief A mapping of names to variables stored in a MemoryImage.
* @note Status: ALPHA
*... |
// ======================================================================== //
// Copyright 2009-2018 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... |
/**
* \file
* unittest/handle.cpp: test cases for the implementations of the HandleGraph class.
*/
#include "catch.hpp"
#include "../handle.hpp"
#include "../vg.hpp"
#include "../xg.hpp"
#include "../json2pb.h"
#include "algorithms/are_equivalent.hpp"
#include "bdsg/packed_graph.hpp"
#include "bdsg/hash_graph.... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "overviewpage.h"
#inclu... |
//===-- MachineCSE.cpp - Machine Common Subexpression Elimination Pass ----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// 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/app_list/app_list_model.h"
#include <string>
#include "ui/app_list/app_list_folder_item.h"
#include "ui/app_list/app_list_item.h"
#incl... |
/*
* Copyright 2011 Esrille Inc.
* Copyright 2010 Google 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 ... |
// main.cc (2016-03-01)
// Yan Gaofeng (yangaofeng@360.cn)
#include <iostream>
#include <list>
using namespace std;
void Print(std::list<int> &l)
{
cout << "print list start -----" << endl;
std::list<int>::iterator it = l.begin();
for (; it != l.end(); it++) {
cout << *it << endl;
}
cout ... |
#include <glannotations/States/AbstractState.h>
#include <glannotations/Common/globals.h>
#include <glannotations/States/ViewportState.h>
#include <glannotations/States/QuadState.h>
#include <glannotations/States/SplineState.h>
void glannotations::AbstractState::setStyling(const globjects::ref_ptr<glannotations::Styli... |
/*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include <sstream>
#include <fstream>
#include <functional>
#include <regex>
#incl... |
// Concord
//
// Copyright (c) 2018 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in
// compliance with the Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyright no... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2018 The Styleit developers
// Distributed under the MIT software license, see the accompanying
// file COPYIN... |
//
// biginteger.hpp
// zxingpp
//
// Created by Kingle Zhuang on 6/12/18.
// Copyright © 2018 Kingle Zhuang. All rights reserved.
//
#pragma once |
// This file implements the IDebugDocument Interface and Gateway for Python.
// Generated by makegw.py
#include "stdafx.h"
#include "PyIDebugDocumentInfo.h"
#include "PyIDebugDocument.h"
// @doc - This file contains autoduck documentation
// ---------------------------------------------------
//
// Interface Impleme... |
// Copyright (c) 2009-2014 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/bitcoingem-config.h"
#endif
#include <cstddef>
#include <cstdint>
#if defined(H... |
// RUN: %clangxx -fsanitize=integer -g0 %s -o %t
// Suppression by symbol name (unsigned-integer-overflow:do_overflow below)
// requires the compiler-rt runtime to be able to symbolize stack addresses.
// REQUIRES: can-symbolize
// UNSUPPORTED: android
// Fails without any suppression.
// RUN: %env_ubsan_opts=halt_on... |
// Copyright (c) 2003-2010 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)
#include "stdafx.h"
#include "http_server/server.h"
#include "plugin/logger.h"
#incl... |
#include <iostream>
#include <cstring>
#include "classic.h"
using namespace std;
// Cd methods
Cd::Cd(const char * s1, const char * s2, int n, double x)
{
performers = new char[strlen(s1)+1];
strcpy(performers, s1);
label = new char[strlen(s2)+1];
strcpy(label, s2);
selections = n;
playtime = x... |
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2003-2008 Matthias Christian Schabel
// Copyright (C) 2008 Steven Watanabe
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.tx... |
/*
* Copyright (c) 2014 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.