text stringlengths 5 1.04M |
|---|
/*
Copyright 2016 Tommi M. Tykkälä
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 in writing... |
#include "formatter.h"
#include <iterator>
const std::string Format::nullString(" null");
void Formatter::format(Format & source,
std::vector<AttributeWrapper*> & attributes, Format & dest) {
source.readFileHeader();
dest.writeFileHeader();
/*
Reading the rows one by one.
... |
#include "dynet/rnn.h"
#include "dynet/io-macros.h"
#include <string>
#include <cassert>
#include <vector>
#include <fstream>
#include <iostream>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/serialization/access.hpp>
#include <boost/serialization/vector.hpp>... |
#include "DwarfCompileUnit.h"
#include "DwarfExpression.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Instruction.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCStr... |
/****************************************************************************
*
* Copyright (c) 2018 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... |
/* Copyright 2018 The MathWorks, Inc. */
#include "solve_from_qr.h"
#include <float.h>
int qr_rank_ci(cs_cin* N, double* tol) {
int col, rowOffset, nnzThisCol, row, minSize, maxSize, rank;
double eps, scale;
cs_ci* mat = N->U; /* R, from QR */
int* p = mat->p;
if (mat->m < mat->n) {
minSize... |
#include "stdafx.h"
#include "libs.h"
#include "editor.h"
#include "blitzide.h"
static map<string,string> keyhelps;
std::vector<Runtime> runtimes;
int linker_ver,runtime_ver;
static string execProc( const string &proc ){
HANDLE rd,wr;
SECURITY_ATTRIBUTES sa={sizeof(sa),0,true};
if( CreatePipe( &rd,&wr,&sa,0 ) ... |
// Copyright (c) 2012-2018 The Bitcoin Core developers
// Copyright (c) 2017 The Raven Core developers
// Copyright (c) 2018 The Rito Core developers
// Copyright (c) 2020 The KringleProjectCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.... |
#include <bits/stdc++.h>
using namespace std;
int a,b;
int main(){
cin >> a;
for ( int i = 0 ; i < a ; i++){
int x; cin >> x;
long long ans = x*(x+1LL)/2LL;
ans -= 2*((pow(2,int(log2(x))+1LL))-1LL);
cout << ans << endl;
}
} |
#include "javascript_interface.h"
#include <iostream>
using std::cout;
using std::endl;
using std::unique_ptr;
using std::vector;
void JavascriptInterface::Init(const char *execution_path) {}
void JavascriptInterface::Execute(
const vector<unique_ptr<Instruction>> &instructions) {
for (const auto &instr : ins... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_wchar_t_ncat_64b.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806.label.xml
Template File: sources-sink-64b.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Initialize ... |
#include "stacktype.h"
#include <iostream>
using namespace std;
template <class ItemType>
StackType<ItemType>::StackType()
{
top=-1;
}
template <class ItemType>
bool StackType<ItemType>::IsEmpty()
{
return(top==-1);
}
template <class ItemType>
bool StackType<ItemType>::IsFull()
{
return (top==MAX_ITEM... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem.hpp>
#inc... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018 Intel Corporation
#include "../test_precomp.hpp"
#include "../common/gapi_imgproc_tests.hpp"
#incl... |
//
// Package: RecoTracker/FinalTrackSelectors
// Class: ConversionTrackProducer
//
// Description: Trivial producer of ConversionTrack collection from an edm::View of a track collection
// (ConversionTrack is a simple wrappper class containing a TrackBaseRef and some additional ... |
/*=========================================================================
*
* 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... |
/* This file is part of CosmoLattice, available at www.cosmolattice.net .
Copyright Daniel G. Figueroa, Adrien Florio, Francisco Torrenti and Wessel Valkenburg.
Released under the MIT license, see LICENSE.md. */
// File info: Main contributor(s): Daniel G. Figueroa, Adrien Florio, Francisco Torrenti, Year... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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.
#include <validation.h>
#include <arith_uint256.h>
#include <chain.h>
#include <... |
#ifndef ALEPH_TOPOLOGY_MORSE_SMALE_COMPLEX__
#define ALEPH_TOPOLOGY_MORSE_SMALE_COMPLEX__
#include <algorithm>
#include <vector>
// TODO: Remove after debugging
#include <iostream>
#include <aleph/topology/UnionFind.hh>
namespace aleph
{
namespace topology
{
template <class Mesh> class MorseSmaleComplex
{
public:... |
/*
* Copyright (C) 2011 Apple 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 a... |
// A. A pile of stones
#include <iostream>
#include <algorithm>
#include <string>
int main(){
int n;
std::cin >> n;
std::string s;
std::cin >> s;
int ans = 0;
for (auto el: s){
if (el == '+') ++ans;
else ans = std::max(0, --ans);
}
std::cout << ans << std::endl;
... |
// *****************************************************************************
// *****************************************************************************
// Copyright 2012, Cadence Design Systems
//
// This file is part of the Cadence LEF/DEF Open Source
// Distribution, Product Version 5.8.
//
//... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2020 The PIVX developers
// Copyright (c) 2020-2021 The PCTM developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-... |
#include "Game.hpp"
#include "Shared.hpp"
#include <algorithm>
using namespace std;
using namespace RakNet;
using namespace Values;
RakNetGUID Game::server;
Guarded<Game::CellRefs> Game::cellRefs;
Guarded<Player::CellContext> Game::cellContext;
Guarded<Game::UninitializedObjects> Game::uninitObj;
Guarded<Game::Dele... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
namespace GeneralizedHarmonic::BoundaryCorrections {
void register_derived_with_charm() noexcept;
} // namespace GeneralizedHarmonic::BoundaryCorrections
|
//**********************************
// OpenGL Framebuffer Multisample
// 27/01/2012 - 27/01/2012
//**********************************
// Christophe Riccio
// ogl-samples@g-truc.net
//**********************************
// G-Truc Creation
// www.g-truc.net
//**********************************
#include <glf/glf.hpp>
na... |
/*
* fpu.cpp
*
* This example demonstrates how one can use odeint to solve the Fermi-Pasta-Ulam system.
* Created on: July 13, 2011
*
* Copyright 2011-2012 Karsten Ahnert
* Copyright 2011 Mario Mulansky
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_... |
// ========================================================================== //
// Copyright (c) 2014-2019 The University of Texas at Austin. //
// All rights reserved. //
// ... |
/*
* 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... |
// Copyright (c) 2018, The AZUR Developers, The TURTLECOIN Developers
//
// Please see the included LICENSE file for more information.
//////////////////////////////////////////
#include <zedwallet++/CommandDispatcher.h>
//////////////////////////////////////////
#include <zedwallet++/AddressBook.h>
#include <zedwal... |
/*
* GmatSocketServer.h
*
* Created on: Mar 22, 2011
* Author: Tuan Nguyen
*/
#ifndef GmatSocketServer_hpp
#define GmatSocketServer_hpp
#include <wx/event.h>
#ifdef LINUX_MAC
#include <unistd.h>
#include <pthread.h>
#include <sys/time.h>
#include <sys/select.h>
#include <sys/types.... |
/*
* 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 "opentelemetry/sdk/trace/samplers/trace_id_ratio.h"
#include "opentelemetry/trace/span_context_kv_iterable_view.h"
#include "src/common/random.h"
#include <gtest/gtest.h>
#include <cstdlib>
#include <ctime>
using opentelemetry::sdk::common::Random;
using opentelemetry::sdk::trace::Decision;
using opentelemet... |
// 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 "chrome/browser/chromeos/borealis/borealis_task.h"
#include <memory>
#include "chrome/browser/ash/profiles/profile_helper.h"
#include "chrome/b... |
// Copyright (c) 2014-2019, The ByteRub 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 of
... |
#include "LockstepDemo.h"
#include "Cubes.h"
#ifdef CLIENT
#include "Global.h"
#include "Render.h"
#include "Console.h"
#include "core/Queue.h"
#include "protocol/Stream.h"
#include "protocol/SlidingWindow.h"
#include "protocol/PacketFactory.h"
#include "network/Simulator.h"
static const int MaxInputs = 256;
static ... |
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <list>
#include <deque>
#include <string>
#include <map>
#include <cstring>
#include "include/dart_api.h"
#include "include/dart_native_api.h"
#include "leveldb/db.h"
#include "leveldb/filter_policy.h"
const int BLOOM_BITS_PER_KEY = 10;
Dart_N... |
#include "chokoengine.hpp"
CE_BEGIN_NAMESPACE
Vec4::Vec4(float v) : x(v), y(v), z(v), w(v) {}
Vec4::Vec4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) {}
Vec4::Vec4(Vec2 a, Vec2 b) : x(a.x), y(a.y), z(b.y), w(b.y) {}
Vec4::Vec4(Vec3 v, float w) : x(v.x), y(v.y), z(v.z), w(w) {}
Vec4::operator Vec2(... |
// 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 "wallet.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "init.h"
#in... |
#include "common/Env.hpp"
namespace chatterino {
namespace {
QString readStringEnv(const char *envName, QString defaultValue)
{
auto envString = std::getenv(envName);
if (envString != nullptr)
{
return QString(envString);
}
return defaultValue;
}
} /... |
#include "LumiereFrustum.h"
#include "Common/LumiereAssert.h"
BEGIN_LUMIERE_NAMESPACE
Frustum::Frustum()
: mFOVy(45.0f)
, mAspectRatio(1.0f)
, mNearClipDistance(0.1f)
, mFarClipDistance(100.0f)
, mPosition(0.0f, 0.0f, 0.0f)
, mFrontDir(0.0f, 0.0f, -1.0f)
, mUpDir(0.0f, 1.0f, 0.... |
#pragma once
/* Compiler */
#include <stdint.h>
namespace interrupts
{
/**
* Public functions from int.asm
*/
extern "C"
{
/* Enables hardware based interrupts */
void enable_hw_interrupts();
/* Disables hardware based interrupts */
void disable_hw_interrupts();
}
/**
* Sets up a s... |
// link to the problem: https://leetcode.com/problems/length-of-last-word/
#include <algorithm>
#include <array>
#include <cassert>
#include <iostream>
#include <iterator>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <string>
#include <unordered_ma... |
// coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2017, Christopher Durand
* All Rights Reserved.
*
* The file is part of the xpcc library and is released under the 3-clause BSD
* license. See the file `LICENSE` for the full license governing this code... |
#include <precompiled.h>
///
/// MIT License
/// Copyright (c) 2018-2019 Jongmin Yun
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL... |
// Copyright (c) 2019-2021, Lawrence Livermore National Security, LLC and
// other Serac Project Developers. See the top-level LICENSE file for
// details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "serac/physics/thermal_conduction.hpp"
#include "serac/infrastructure/logger.hpp"
#include "serac/numerics/... |
/**
* @author : Maruf Tuhin
* @College : CUET CSE 11
* @Topcoder : the_redback
* @CodeForces : the_redback
* @UVA : the_redback
* @link : http://www.fb.com/maruf.2hin
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long lo... |
//*****************************************************************************
// Copyright 2017-2019 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://w... |
#include<iostream>
#include<vector>
#include<cmath>
using namespace std;
int get_digits(int n)
{
int count = 0;
while(n / 10 != 0)
{
count++;
n = n / 10;
}
return count;
}
int get_max(int a, int b)
{
int count_a = get_digits(a);
int count_b = get_digits(b);
int t... |
#include "source/common/grpc/async_client_manager_impl.h"
#include "envoy/config/core/v3/grpc_service.pb.h"
#include "envoy/stats/scope.h"
#include "source/common/common/base64.h"
#include "source/common/grpc/async_client_impl.h"
#include "absl/strings/match.h"
#ifdef ENVOY_GOOGLE_GRPC
#include "source/common/grpc/... |
#include <utility>
#include <vector>
#include "core/rts.h"
#include "core/unroller.h"
#include "engines/kinduction.h"
#include "engines/mbic3.h"
#include "gtest/gtest.h"
#include "smt/available_solvers.h"
#include "utils/exceptions.h"
using namespace pono;
using namespace smt;
using namespace std;
namespace pono_tes... |
// Copyright (c) 2012-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "netbase.h"
#include "test/test_abosom.h"
#include <string>
#i... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "localsocketcontroller.h"
#include "errorhandler.h"
#include "ipaddress.h"
#include "leakdetector.h"
#inc... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/AI/ITargetTrackingListener.hpp>
namespace RED4ext
{
namespace AI {
struct ScriptsTargetTrackingListenerWrapper : AI::ITargetTrackingListener
{
sta... |
// -----------------------------------------------------------------------------------------
// <copyright file="executor_test.cpp" company="Microsoft">
// Copyright 2013 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complianc... |
/*
* Copyright (c) 2005 The Regents of The University of Michigan
* 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, ... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
/*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Tasks for .NET API reference
when the project is build. Please check https:// Docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you can manually download Aspose.Tasks for .NET API from https://www.n... |
/* <stig/notification/system_shutdown.cc>
Implements <stig/notification/system_shutdown.h>.
Copyright 2010-2014 Tagged
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... |
// This file was generated using Parlex's cpp_generator
#include "FOR_COLLECTION.hpp"
#include "plange_grammar.hpp"
#include "parlex/detail/document.hpp"
#include "EXPRESSION.hpp"
#include "IC.hpp"
#include "IDENTIFIER.hpp"
#include "IMPLICIT_TYPE_DEREFERENCE.hpp"
#include "TYPE_DEREFERENCE.hpp"
plc::FOR_COLLECTIO... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "precomp.h"
#include "outputStream.hpp"
#include "_stream.h"
#include "getset.h"
#include "directio.h"
#include "../interactivity/inc/ServiceLocator.hpp"
#pragma hdrstop
using namespace Microsoft::Console;
using Mi... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
/*
* Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/PlayRho
*
* 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... |
/*
* 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... |
/*
//@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 softw... |
#include "DXUT.h"
#include "Resources.h"
void Resources::AddMeshList(LPD3DXMESH* object)
{
for (auto l : m_meshlist)
{
if (l == object) return;
}
m_meshlist.push_back(object);
}
void Resources::DeleteMeshList(LPD3DXMESH* object)
{
for (auto l : m_meshlist)
{
if (l == object)
{
m_meshlist.remove(object)... |
#include "../bench/util.hpp"
#include <GLFW/glfw3.h>
#include <mapbox/geojson.hpp>
#include <mapbox/geojson_impl.hpp>
#include <mapbox/geojsonvt.hpp>
#include <memory>
using namespace mapbox::geojsonvt;
template <typename T>
void drawLine(const T points) {
glColor4f(1, 0, 0, 1);
glBegin(GL_LINE_STRIP);
fo... |
#include <iostream>
using namespace std;
class Term {
};
class None : Term {
};
class Var : Term {
Term val=(Term)*this;
};
class Atomic : Term {
string val;
};
class Pair : Term {
Term* left;
Term* right;
};
//Term :: *Term deref() {
// return this;
//};
int main () {
string s="hello";
cout << ... |
//===- IdentifierTable.cpp - Hash table for identifier lookup -------------===//
//
// 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 <bits/stdc++.h>
using namespace std;
int prepross(string a,string b,int i)
{
int n=a.length();
if(n%2==0)
{
if(b[i]==b[n-1-i])
{
if(a[i]==a[n-1-i]) return 0;
else return 1;
}
else
{
if(a[i]==b[i]&&a[n-1-i]==b[n-1-i]) retur... |
#include "IEntity_API.h"
uint16_t alt_IEntity_GetID(uintptr_t entityPointer) {
auto* entity = dynamic_cast<alt::IEntity*>(reinterpret_cast<alt::IBaseObject*>(entityPointer));
return entity->GetID();
}
uint32_t alt_IEntity_GetModel(uintptr_t entityPointer) {
auto* entity = dynamic_cast<alt::IEntity*>(reinterpret_ca... |
#include "Log.h"
namespace LFHE
{
std::shared_ptr<spdlog::logger> Log::s_CoreLogger;
std::shared_ptr<spdlog::logger> Log::s_ClientLogger;
void Log::Init()
{
//[%T] timestamp
//%n: name logger
//%v%$ log message
spdlog::set_pattern("%^[%T] %n: %v%$");
s_CoreLogger = spdlog::stdout_color_mt("LFHE");
s_... |
#include "c_b2ChainShape.h"
extern "C" {
b2ChainShape* b2ChainShape_New() {
return new b2ChainShape;
}
void b2ChainShape_Delete(b2ChainShape* self) {
delete self;
}
b2Shape* b2ChainShape_Upcast(b2ChainShape* self) {
return static_cast<b2Shape*>(reinterpret_cast<b2ChainSha... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
#ifndef HEAP_PRIORITY_QUEUE
#define HEAP_PRIORITY_QUEUE
#include <utility>
#include <vector>
#include <stdexcept>
#include "../common_heap_utility.hpp"
#include "../max_min_heapify/max_min_heapify.hpp"
namespace CLRS
{
template <typename T>
// return reference or copy?
T heap_maximum(const std::vector<T> &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... |
#pragma once
#include <handlegraph/types.hpp>
#include <handlegraph/util.hpp>
#include <handlegraph/path_handle_graph.hpp>
namespace odgi {
namespace algorithms {
using namespace handlegraph;
bool nodes_are_perfect_path_neighbors(const PathHandleGraph& graph, handle_t left_handle, handle_t right_handle);
}
}
|
/*
* 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... |
#include <memory>
#include <string>
#include "envoy/config/bootstrap/v3/bootstrap.pb.h"
#include "envoy/config/core/v3/config_source.pb.h"
#include "envoy/extensions/transport_sockets/tls/v3/cert.pb.h"
#include "envoy/service/discovery/v3/discovery.pb.h"
#include "envoy/service/secret/v3/sds.pb.h"
#include "common/co... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.ValueTy... |
// Lab1.cpp
// Lab 2 example, textured quad
#include "App1.h"
float angle = 0.0f;
float rotateAmount;
App1::App1()
{
mesh = nullptr;
textureShader = nullptr;
}
void App1::init(HINSTANCE hinstance, HWND hwnd, int screenWidth, int screenHeight, Input *in, bool VSYNC, bool FULL_SCREEN)
{
// Call super/parent init fu... |
/*
All modification made by Cambricon Corporation: © 2018-2019 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2019, the respective contributors
All rights reserved.
For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
Redistribution and us... |
/*
* Copyright (c) 2011-2014, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of... |
//===-- StackFrameList.cpp ------------------------------------------------===//
//
// 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
//
//===---------------------------... |
#pragma once
#include <utility>
template<class F, class X>
struct fold_wrapper
{
F f;
X state;
template<typename FoldWrapper>
constexpr auto operator>>=(FoldWrapper &&fw)
{
auto result = f(state, std::forward<FoldWrapper>(fw).state);
return fold_wrapper<F, decltype(result)>{ f, result };
}
};
templa... |
#include <click/config.h>
#include <click/glue.hh>
#include <click/args.hh>
#include <click/ipflowid.hh>
#include <click/routervisitor.hh>
#include <click/error.hh>
#include "flowipmanager_cuckoopp_imp_lazy.hh"
#include <rte_hash.h>
#include <click/dpdk_glue.hh>
#include <rte_ethdev.h>
extern "C" {
#include <c... |
// (C) Copyright John Maddock 2007.
// Use, modification and distribution are 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.txt)
//
// This file is machine generated, do not edit by hand
// Polynomial evaluation using s... |
//
// Copyright (c) 2019-2020 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rig... |
// 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 "main.h"
#include "bitcoinrpc.h"
using namespace json_spirit;
using namespace... |
/**
*
* HttpClientImpl.cc
* An Tao
*
* Copyright 2018, An Tao. All rights reserved.
* https://github.com/an-tao/drogon
* Use of this source code is governed by a MIT license
* that can be found in the License file.
*
* Drogon
*
*/
#include "HttpClientImpl.h"
#include "HttpResponseImpl.h"
#include "... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+---------... |
#pragma once
#include <sys/time.h>
#include <chrono>
auto get_time() {
return std::chrono::high_resolution_clock::now();
}
|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
/*
* 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 the following disclaimer.
*
* - Redistributions in binar... |
#pragma warning(disable : 4018) // warning C4018: '<' : signed/unsigned mismatch
#include "NvTriStripObjects.h"
#include "NvTriStrip.h"
////////////////////////////////////////////////////////////////////////////////////////
//private data
static unsigned int cacheSize = CACHESIZE_GEFORCE1_2;
static bool bStitch... |
#include "sarpch.h"
#include "OpenGLRendererAPI.h"
#include <glad/glad.h>
namespace Sarene
{
void OpenGLRendererAPI::SetClearColor(const glm::vec4& color)
{
glClearColor(color.r, color.g, color.b, color.a);
}
void OpenGLRendererAPI::Clear()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}
void Ope... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PrimalItemResource_Wool_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//-------------------------------------------------... |
#include "priv.h"
#include "bindcb.h"
#include "resource.h"
#include <vrsscan.h>
#include "iface.h"
#include "security.h"
#include <wintrust.h>
#include "iehelpid.h"
#include <shlwapi.h>
#include "inetreg.h"
#include <mluisupp.h>
#define MIME
#include "filetype.h"
#ifdef UNIX
#include "unixstuff.h... |
/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 ( the "License" );
you may not use this file except in compliance with the L... |
#line 1 "flex_lexer.cpp"
#line 3 "flex_lexer.cpp"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
#ifdef yy_cr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.