text stringlengths 7 961k |
|---|
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.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 gra... |
// This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#pragma once
#include "pass.hpp"
class Pass_lnastopt : public Pass {
protected:
public:
static void work(Eprp_var &var);
Pass_lnastopt(const Eprp_var &var);
static void setup();
}; |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
//
// The MIT License (MIT)
//
// Copyright (c) 2019 Livox. 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 ri... |
#include "main.h"
GLfloat cube[] = {
-1.0f,-1.0f,-1.0f, // triangle 1 : begin
-1.0f,-1.0f, 1.0f,
-1.0f, 1.0f, 1.0f, // triangle 1 : end
1.0f, 1.0f,-1.0f, // triangle 2 : begin
-1.0f,-1.0f,-1.0f,
-1.0f, 1.0f,-1.0f, // triangle 2 : end
1.0f,-1.0f, 1.0f,
-1.... |
//------------------------------------------------------------------------------
/*
Copyright (c) 2012-2014 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this p... |
// BSD 2-Clause License
//
// Copyright (c) 2017, Alex Piola
// 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... |
/**
* Copyright (C) 2014 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
// Copyright (c) 2014, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// This file implements the "... |
//===----------------------------------------------------------------------===//
//
// 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 <csignal>
#include <iostream>
bool forever = true;
void sighandler(int sig) {
std::cout << "Signal " << sig << " caught..." << std::endl;
forever = false;
}
int main() {
signal(SIGABRT, &sighandler);
signal(SIGTERM, &sighandler);
signal(SIGINT, &sighandler);
while (forever) {
}
} |
/** @file
A brief file description
@section license License
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
... |
// Copyright 2020 The XLS Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
//
// Created by Alex Beccaro on 20/01/18.
//
#ifndef PROJECT_EULER_PROBLEM41_HPP
#define PROJECT_EULER_PROBLEM41_HPP
#include <cstdint>
namespace problems {
class problem41 {
public:
/**
* Solves problem
* @return The solution
*/
static uint64_t solve();
};
}
... |
// Copyright (c) 2020 The Zortcoin Core 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 <secp256k1.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz... |
// Element Modifiers
#include "stdafx.h"
#include "XmlAttributes.h"
XmlAttribute* XmlAttributes::add(String& name) {
XmlAttribute& attr = next();
attr.name = name; name.clear(); return &attr;
}
void XmlAttributes::copy(XmlAttributes& attr) {
int n = attr.nData();
int i;
for (i = 0; i < n; i++) data[i] = a... |
/*
* Copyright (c) 2018-2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "TerminalSettingsWidget.h"
#include <AK/Assertions.h>
#include <AK/JsonObject.h>
#include <AK/QuickSort.h>
#include <Applications/TerminalSettings/TerminalSettingsMainGML.h>
#include <Applications/Termina... |
#include <cassert>
#include <cstddef>
#include <iostream>
#include <iterator>
#include <list>
#include <stdexcept>
#include <unordered_map>
class LFUCache {
public:
explicit LFUCache(int capacity);
LFUCache(const LFUCache&) = delete;
LFUCache(LFUCache&&) = default;
LFUCache& operator=(const LFUCache&)... |
// Copyright (c) 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 <chainparams.h>
#include <chainparamsseeds.h>
#include <consensus/merkle.h>
... |
// 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) 2018 The Specialcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COP... |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,m,q,x,y;
string s,t;
cin>>n>>m>>q;
cin>>s;
cin>>t;
int ans=0;
while(q--)
{
cin>>x>>y;
ans=0;
int j=0;
for(int i=x-1;i<=y-1;)
{
if(s[i]==t[j])
{
int l=i;
for(int k=0;k<m;k++)
{
l++;
cout<<s[l]<<" "<<t[k]<<... |
// 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 "obfuscation.h"
#include "coincontrol.h"
#include "consensus/validation.h... |
/* LCOV_EXCL_START */
// ______ _____ ______ _________
// ______________ ___ /_ ___(_)_______ ___ /_ ______ ______ ______ /
// __ ___/_ __ \__ __ \__ / __ __ \ __ __ \_ __ \_ __ \_ __ /
// _ / / /_/ /_ /_/ /_ / _ / / / _ / / ... |
//
// detail/impl/eventfd_select_interrupter.ipp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2008 Roelof Naude (roelof.naude at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accomp... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "TextCircularBuffer.h"
#ifdef LOG_SHIPPING
TextCircularBuffer::TextCircularBuffer( char * buffer, int bufferSize )
{
this->ptr = buffer;
this->size = bufferSize - 1;
this->currentPos = 0;
this->overwritten = 0;
... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkBlurMaskFilter.h"
#include "SkCamera.h"
#include "SkColorFilter.h"
#include "SkColorPriv.h"
#inclu... |
/*
The MIT License
Copyright (c) 2021, Prominence AI, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... |
// 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 "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"
#includ... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include "RemoveIndexFromListAction.h"
#include <Engine/Core/AssetLibrary/AssetLibrary.h>
#include <Engine/Core/Trigger/Trigger.h>
RemoveIndexFromListAction::RemoveIndexFromListAction(void)
{}
RemoveIndexFromListAction::RemoveIndexFromListAction(int32 _type): AbstractAction(_type)
{}
RemoveIndexFromListAction::~... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
#include "MegaBrite.h"
#include "ArduinoUno.h"
#include <binary.h>
#define LED_FADE_STEP_SLOW 2
#define LED_FADE_STEP_FAST 32
#define FADE_UP 1
#define FADE_DOWN -1
#define CLOCK_PIN 13U
#define ENABLE_PIN 10U
#define LATCH_PIN 9U
#define DATA_PIN 11U
MegaBrite::MegaBrite()
{
for (int i =0; i... |
#ifndef ATM_DISABLE_ANALOG
#include "Atm_analog.hpp"
Atm_analog& Atm_analog::begin( int attached_pin, int samplerate /* = 50 */ ) {
// clang-format off
const static state_t state_table[] PROGMEM = {
/* ON_ENTER ON_LOOP ON_EXIT EVT_TRIGGER EVT_TIMER ELSE */
/* IDLE */ -1, ... |
// 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 "src/media/audio/audio_core/reporter.h"
#include <lib/inspect/testing/cpp/inspect.h>
#include "src/media/audio/audio_core/audio_device_manager.h"
#... |
// Copyright (c) 2012-2015 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 "script/script.h"
#include "test/test_argo.h"
#include <boost/test/unit_test.hpp>
using namespace std;
BOOST_FIXT... |
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include <lib/async-loop/loop.h>
#include <lib/fidl-async/bind.h>
#include <lib/fi... |
#include <iostream>
#include <cmath>
#include <GL/gl.h>
#include <GL/glu.h>
#include <SDL2/SDL.h>
#include "common.hpp"
#include "coord.hpp"
#include "coord.hpp"
#include "qtree.hpp"
#include "game.hpp"
#include "generator.hpp"
#include "ui.hpp"
#include "cube.hpp"
#include "resource.hpp"
#include "physics.hpp"
SDL_... |
#include <bits/stdc++.h>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstring>
#include <chrono>
#include <complex>
#define endl "\n"
#define ll long long int
using namespace std;
ll n,h,a,b,ta,tb,fa,fb,k;
ll solve(){
cin>>ta>>fa>>tb>>fb;
if(ta==tb){
return abs(fa-fb);
}
el... |
/*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <algorithm>
#include "util/flet.h"
#include "util/interrupt.h"
#include "util/sexpr/option_declarations.h"
#include "kernel/instantiate.h"
#include... |
#include "circle.h"
void drawcircle(const int x, const int y, const int r, const float& red, const float& green, const float& blue, double xPos, double yPos)
{
int x_c = x;
int y_c = y;
for (int a = 0; a <= 2 * r; a++)
{
for (int b = 0; b <= 2 * r; b++)
{
int f = (r - b)*(r - b) + (r - a)*(r - a) - r*r;
... |
#include "Formatter.h"
#include "stdafx.h"
unordered_map<DXGI_FORMAT, DXGI_FORMAT> Formatter::colorFormatTable;
unordered_map<DXGI_FORMAT, DXGI_FORMAT> Formatter::depthFormatTable;
void Formatter::Init()
{
// color table
colorFormatTable[DXGI_FORMAT_R16G16B16A16_TYPELESS] = DXGI_FORMAT_R16G16B16A16_FLOAT;
colorFor... |
//===----------------------------------------------------------------------===//
//
// 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
const char* live_inputs_archive =
R"(
{
"_id": 1,
"active": true,
"description": "",
"name": "",
"tv": true,
"contents":[
... |
#include <iostream>
#include "/home/rafaeldali/Pulpit/Dane do programów/droniarz/inc/Prostopadloscian.hh"
#include "/home/rafaeldali/Pulpit/Dane do programów/droniarz/inc/Bryla.hh"
using namespace std;
Prostopadloscian::Prostopadloscian (double bokA, double bokB, double bokC)
{
if (bokA<0.0 || bokB<0.0 || bokC<0... |
vector<int> Solution::equal(vector<int> &A) {
map<int, int> fre;
for( int i = 0; i < A.size(); i++ ){
for( int j = i+1; j < A.size(); j++ ){
fre[A[i]+A[j]]++;
}
}
vector<int> v;
for( int i = 0; i < A.size(); i++ ){
for( int j = i+1; j < A.size(); j++ ){
... |
// 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.
#include "paymentservertests.h"
#include "optionsmodel.h"
#include "paymentrequestdata.h"
#include "amount.h"
#include "ran... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
/*MIT License
Copyright (c) 2021 Mohammad Issawi
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, publish,... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__new_twointsclass_54c.cpp
Label Definition File: CWE401_Memory_Leak__new.label.xml
Template File: sources-sinks-54c.tmpl.cpp
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: Allocate data using new
* GoodSource: Allocate data on the stack
* ... |
#include "DataBool.hpp"
namespace Utopia
{
DataBool::DataBool(bool value)
: Data(DATA_BOOL), value(value)
{
}
std::string DataBool::toString() const
{
return value ? "true" : "false";
}
std::string DataBool::toCPP() const
{
return std::string("std::make_unique<DataBool>(").append(toString()).append(1, ... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
// 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 "db.h"
#include "net.h"
#include "init.h"
#include "strlcpy.h"
#include "... |
#include "stdafx.h"
#include "UIHorizontalLayout.h"
namespace UiLib
{
CHorizontalLayoutUI::CHorizontalLayoutUI() : m_iSepWidth(0), m_uButtonState(0), m_bImmMode(false)
{
ptLastMouse.x = ptLastMouse.y = 0;
::ZeroMemory(&m_rcNewPos, sizeof(m_rcNewPos));
}
LPCTSTR CHorizontalLayoutUI::GetClass() const
{
retu... |
// (C) Copyright 2009-2011 Frederic Bron.
//
// 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).
//
// See http://www.boost.org/libs/type_traits for most recent version including... |
#include "SciDataParser.h"
#include "CDataSet.h"
#include <fstream>
#include <sstream>
u32 const timeToSeconds(std::string const & Field)
{
u32 In, Out = 0;
std::istringstream s(Field);
s >> In;
Out += In * 60 * 60;
s.ignore(1, ':');
s >> In;
Out += In * 60;
s.ignore(1, ':');
s >> In;
Out += In;
return Ou... |
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int n;
vector<int> v;
cin >> n;
while (n-- > 0) {
int t;
cin >> t;
v.push_back(t);
}
sort(v.begin(), v.end());
for (auto a: v) {
co... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Scorpion_AIController_BP_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------... |
/* 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 2020 Open Source Robotics Foundation, 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 appli... |
/*
Minimal Mapping of Quantum Circuits to IBM QX Architectures by JKU Linz, Austria
Developer: Robert Wille, Lukas Burgholzer, Alwin Zulehner
For more information, please visit http://iic.jku.at/eda/research/ibm_qx_mapping
If you have any questions feel free to contact us using
robert.wille@jku.at, lukas.burgholzer@... |
// This file has been generated by Py++.
#ifndef OpenGLGeometryBufferBase_hpp__pyplusplus_wrapper
#define OpenGLGeometryBufferBase_hpp__pyplusplus_wrapper
void register_OpenGLGeometryBufferBase_class();
#endif//OpenGLGeometryBufferBase_hpp__pyplusplus_wrapper |
////////////////////////////////////////////////////////////////////////////
// Module : smart_cover_loophole.cpp
// Created : 16.08.2007
// Author : Alexander Dudin
// Description : Loophole class for smart cover
////////////////////////////////////////////////////////////////////////////
#include "pch_script.h"
... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
* 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 m... |
#include <vcpkg/base/strings.h>
#include <vcpkg/base/system.print.h>
#include <vcpkg/base/util.h>
#include <vcpkg/cmakevars.h>
#include <vcpkg/commands.dependinfo.h>
#include <vcpkg/dependencies.h>
#include <vcpkg/help.h>
#include <vcpkg/input.h>
#include <vcpkg/install.h>
#include <vcpkg/packagespec.h>
#include <vcpk... |
/************************************************************************/
/*! \class RtAudio
\brief Realtime audio i/o C++ classes.
RtAudio provides a common API (Application Programming Interface)
for realtime audio input/output across Linux (native ALSA, Jack,
and OSS), Macintosh OS X (CoreAudio an... |
// csabbg_allocatorforward.t.hpp -*-C++-*-
#ifndef INCLUDED_CSABBG_ALLOCATORFORWARD
#define INCLUDED_CSABBG_ALLOCATORFORWARD
#ifndef INCLUDED_BDES_IDENT
# include <bdes_ident.h>
#endif
#ifndef INCLUDED_BSLMF_BSLMF_INTEGRALCONSTANT
#include <bslmf_integralconstant.h>
#endif
#ifnde... |
#include "pch.h"
#include "FullscreenRenderer.h"
#include "DirectX11Framework.h"
#include <d3d11.h>
#include "ShaderCompiler.h"
#include "AssetManager.h"
FullscreenRenderer::FullscreenRenderer()
{
for (size_t i = 0; i < CAST(size_t, Shader::COUNT); i++)
{
myPixelShaders[i] = nullptr;
}
}
bool FullscreenRenderer:... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkCachingInterpolatedVelocityField.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
/* Copyright (c) 2016, 2018, Oracle and/or its affiliates. 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, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... |
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... |
#include "ChangeFrontTextureAction.h"
#include <Engine/Core/AssetLibrary/AssetLibrary.h>
#include <Engine/Core/Trigger/Trigger.h>
ChangeFrontTextureAction::ChangeFrontTextureAction(void)
{}
ChangeFrontTextureAction::ChangeFrontTextureAction(int32 _type): AbstractAction(_type)
{}
ChangeFrontTextureAction::~Change... |
// Copyright (c) 2014-2016, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list o... |
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <unistd.h>
#include <eigen3/Eigen/Dense>
#include "common/timing.h"
#include "common/params.h"
#include "driving.h"
#include "clutil.h"
constexpr int DESIRE_PRED_SIZE = 32;
constexpr int OTHER_META_SIZE = 4;
constexpr int MODEL_WIDTH = 512;
constexp... |
#include <gtest/gtest.h>
#include "utils/HashFunctions.h"
#include "BaseDecoderTest.h"
#include <string>
static void UpdateHashFromPlane (SHA1Context* ctx, const uint8_t* plane,
int width, int height, int stride) {
for (int i = 0; i < height; i++) {
SHA1Input (ctx, plane, width);... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <c... |
/* Copyright (c) 2017-2020 Hans-Kristian Arntzen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, me... |
// Range v3 library
//
// Copyright Eric Niebler 2014
//
// 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.txt)
//
// Project home: https://github.com/ericniebler/range-v3
//
// C... |
#include "TChain.h"
#include "TTree.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TH3F.h"
#include "TFile.h"
#include "THnSparse.h"
#include "TCanvas.h"
#include "TNtuple.h"
#include "AliAnalysisTask.h"
#include "AliAnalysisManager.h"
#include "AliESDEvent.h"
#include "AliESDInputHandler.h"
#include "AliAODEvent.h"
... |
// Ex8_03.cpp
// Exercising the overloaded 'greater than' operator
#include <iostream> // For stream I/O
using std::cout;
using std::endl;
class CBox // Class definition at global scope
{
public:
// Constructor definition
explicit CBox(double lv = 1.0, doubl... |
/*************************************************************************/
/* register_types.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
//@HEADER
// ************************************************************************
//
// HPCCG: Simple Conjugate Gradient Benchmark Code
// Copyright (2006) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by ... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include "bgp/bgp_factory.h"
template <>
BgpObjectFactory *Factory<BgpObjectFactory>::singleton_ = NULL;
#include "bgp/bgp_config_listener.h"
FACTORY_STATIC_REGISTER(BgpObjectFactory, BgpConfigListener, BgpConfigListener);
#include "bgp/bgp_co... |
// Copyright (C) 2005 Arkadiy Vertleyb
// 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_TYPEOF_ENCODE_DECODE_PARAMS_HPP_INCLUDED
#define BOOST_TYPEOF_ENCODE_DECODE_PARAMS_HPP_INCLUDED
#include <boost/... |
// Copyright (C) Team13. All rights reserved.
#include "ETVActionSelf.h"
// Sets default values
UETVActionSelf::UETVActionSelf(): Super()
{
// Require 2 tile of distance from any enemy
RequiredSafetyDistance = 2;
}
bool UETVActionSelf::CanActivate()
{
return Super::CanActivate() && IsSafe();
}
bool UETVActionSel... |
/*++
Copyright (c) 2010 Microsoft Corporation
Module Name:
arith_plugin.cpp
Abstract:
Eliminate Arithmetical variable from formula
Author:
Nikolaj Bjorner (nbjorner) 2010-02-19
Revision History:
--*/
#include "qe/qe.h"
#include "ast/ast_pp.h"
#include "ast/rewriter/expr_safe_replace.h"
#include "a... |
#include "Cursor.hpp"
void Cursor::initialize(sf::RenderWindow* window)
{
this->window = window;
cursorAnim.setPath("Sprites/Cursors/Round");
cursorAnim.loadAnimator();
cursorAnim.setKey("IDLE");
}
void Cursor::selectCursor(std::string cursor)
{
cursorAnim.setPath("Sprites/Cursors/" + cursor);
cursorAnim.loadAn... |
// Copyright (c) 2011 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 "net/base/keygen_handler.h"
#include <openssl/bytestring.h>
#include <openssl/digest.h>
#include <openssl/evp.h>
#include <openssl/mem.h>
#i... |
// DO NOT EDIT. This file is generated
#include "../Precompiled.h"
#include "../AngelScript/APITemplates.h"
#include "../AngelScript/GeneratedIncludes.h"
#include "../AngelScript/Manual.h"
namespace Urho3D
{
void FakeAddRef(void* ptr);
void FakeReleaseRef(void* ptr);
// Quaternion::Quaternion(const Quaternion& qua... |
// Copyright 2010-2021 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
// slang-ir-specialize-resources.cpp
#include "slang-ir-specialize-resources.h"
#include "slang-ir.h"
#include "slang-ir-clone.h"
#include "slang-ir-insts.h"
namespace Slang
{
struct ResourceParameterSpecializationContext
{
// This type implements a pass to specialize functions
// with resource parameters to... |
#include <iostream>
#include <cstdio>
#include <vector>
#include <fstream>
using namespace std;
const int inf = 17070509;
int t, a, b;
vector<vector<int> > memo;
int DP(int fullness, bool half)
{
if(fullness > t) return -inf;
else if(fullness == t) return t;
else if(memo[fullness][half] != -1) return memo[fullnes... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/Scripting/Natives/Generated/LibTreeDefTreeVariable.hpp>
namespace RED4ext
{
struct LibTreeCTreeReference;
struct Lib... |
#include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_param_X86IntSinkPin[] = {
120,156,205,88,253,114,219,198,17,223,3,64,74,164,40,75,
178,190,108,75,181,216,118,220,176,158,74,76,156,200,118,39,
174,90,39,147,206,36,211,145,93,48,29,59,76,166,40,4,
28,73,80,32,192,1,78,146,153,74,255,68... |
#include "process.h"
#include <unistd.h>
#include <cctype>
#include <sstream>
#include <string>
#include <vector>
using std::string;
using std::to_string;
using std::vector;
// DONE: Return this process's ID
int Process::Pid() { return pid_; }
auto& Process::getCPU() const { return cpu_util; }
// DONE: Return this ... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
//
// Created by Ryan Elliott on 9/5/20.
//
#include <ludere/abstract_strategy.hpp>
#include <ludere/candlestick_data.hpp>
#include <ludere/order.hpp>
#include <ludere/portfolio.hpp>
#include <utility>
namespace lud {
abstract_strategy::abstract_strategy(std::shared_ptr<portfolio> portfolio_)
: m_portfolio(... |
#include <e32base.h>
#include <f32file.h>
#include <in_sock.h>
extern "C"
{
#include "IoState.h"
#include "IoNIL.h"
#include "IoMessage.h"
#include "IoNumber.h"
}
#include "SymbianMain.h"
#include "SymbianSockets.h"
#define min(a,b) ((a) < (b) ? (a) : (b))
#define SOCKET_BUFFER_SIZE 2048
class InternalSocket
{
publ... |
#include <vtkCellArray.h>
#include <vtkIdList.h>
#include <vtkNew.h>
#include <vtkOctreePointLocator.h>
#include <vtkPointSource.h>
#include <vtkPoints.h>
#include <vtkPolyData.h>
int main(int, char*[])
{
// Create some random points
vtkNew<vtkPointSource> pointSource;
pointSource->SetNumberOfPoints(10);
point... |
#include "gm_ind_opt.h"
#include "gm_misc.h"
#include "gm_traverse.h"
#include "gm_transform_helper.h"
#include "gm_rw_analysis.h"
#include "gm_argopts.h"
//--------------------------------------------------------------------
// flip edges
//--------------------------------------------------------------------
// Fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.