text stringlengths 7 961k |
|---|
/*
*
* Copyright (c) 2003
* John Maddock
*
* 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)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent version.
* F... |
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
ifstream f("numere.in");
ofstream g("numere.out");
int main()
{
int p,m;
f>>p>>m;
if(p>0 && m>=0)
{
g<<p*(pow(2,m)-1);
}
f.close();
g.close();
return 0;
} |
/* -*- c-file-style: "bsd"; c-basic-offset: 2; indent-tabs-mode: nil -*- */
#include <stdio.h>
#include "mixing.hpp"
#include "LSMSMode.hpp"
int writeRestart(const char *restartName, LSMSSystemParameters &lsms, CrystalParameters &crystal, MixingParameters &mix,
PotentialShifter &potentialShifter, All... |
///////////////////////////////////////////////////////////////////////////////
// Name: src/aui/tabart.cpp
// Purpose: wxaui: wx advanced user interface - notebook-art
// Author: Benjamin I. Williams
// Modified by: Jens Lody (moved from auibook.cpp in extra file)
// Created: 2012-03-21
// Copyrigh... |
#include "Scene/System/EditorLightSystem.h"
#include "Qt/Scene/SceneEditor2.h"
#include "Qt/Scene/SceneSignals.h"
#include "Commands2/RECommandIDs.h"
#include "StringConstants.h"
#include "Constants.h"
using namespace DAVA;
EditorLightSystem::EditorLightSystem(DAVA::Scene* scene)
: DAVA::SceneSystem(scene)
{
... |
/**
* Copyright (C) 2015 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... |
#line 2 "liblts_fsmlexer.cpp"
#line 4 "liblts_fsmlexer.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 5
#define YY_FLEX_SUBMINOR_VERSION 35
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
... |
/*
* DISTRHO AmplitudeImposer, a DPF'ied AmplitudeImposer.
* Copyright (C) 2004 Niall Moody
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
*
* 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 ... |
#include "urltests.h"
#include "../guiutil.h"
#include "../walletmodel.h"
#include <QUrl>
/*
struct SendCoinsRecipient
{
QString address;
QString label;
qint64 amount;
};
*/
void URLTests::urlTests()
{
SendCoinsRecipient rv;
QUrl url;
url.setUrl(QString("BitShekel:175tWpb8K1S7NmH4Zx6rewF9WQrc... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
#include "dmzRuntimeContextTime.h"
#include <dmzRuntimeTime.h>
#include <dmzSystem.h>
#include <dmzSystemStreamFile.h>
#include <math.h> // for modf
static const dmz::Float64 LocalMinFrequency (0.0001);
//! Constructor.
dmz::RuntimeContextTime::RuntimeContextTime () :
firstUpdate (True),
currentTime (0.0)... |
/* ********************************************************************** */
/**
* @brief Library for Hyperion Arduino LCD KeyPad Shield (HP-AMO-LCDSH).
* @author eel3
* @date 2017-08-25
*/
/* ********************************************************************** */
#include "Hyperion_LCDKeyPad.h"
#include ... |
// ----------------------------------------------------------------------------
// CodePort++
//
// A Portable Operating System Abstraction Library
// Copyright 2012 Amardeep S. Chana. All rights reserved.
// Use of this software is bound by the terms of the Modified BSD License.
//
// Module Name: cpSemLite_I... |
// Copyright 2014 the V8 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.
// A Disassembler object is used to disassemble a block of code instruction by
// instruction. The default implementation of the NameConverter object ca... |
#ifndef BOOST_MPL_LIST_LIST30_HPP_INCLUDED
#define BOOST_MPL_LIST_LIST30_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2004
//
// 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)
//
// See http://www.boost.org/l... |
/*
Author: Gudakov Ramil Sergeevich a.k.a. Gauss
Гудаков Рамиль Сергеевич
Contacts: [ramil2085@mail.ru, ramil2085@gmail.com]
See for more information LICENSE.md.
*/
#include "Base.h"
#include "Logger.h"
#include "SessionManager.h"
#include "DescRecvSession.h"
#include "ManagerManagerContextSc.h"
#include "ControlScen... |
#ifndef SIMPLE_EFFECTS_TRIPPY_MUSHROOM_HPP_INCLUDED
#define SIMPLE_EFFECTS_TRIPPY_MUSHROOM_HPP_INCLUDED
#include "context.hpp"
#include "effect-base.hpp"
#include <array>
namespace entity
{} // namespace entity
#endif // SIMPLE_EFFECTS_TRIPPY_MUSHROOM_HPP_INCLUDED |
/*
* EIoFilterChainBuilder.hh
*
* Created on: 2013-8-19
* Author: cxxjava@163.com
*/
#ifndef EIOFILTERCHAINBUILDER_HH_
#define EIOFILTERCHAINBUILDER_HH_
#include "./EIoFilterChain.hh"
#include "Efc.hh"
namespace efc {
namespace eio {
/**
* An interface that builds {@link IoFilterChain} in predefined way... |
#include <stdio.h>
#include <stdlib.h>
#include <pigpio.h> // include GPIO library
#include <signal.h> // needed to clean up CTL C abort
#include <sys/types.h>
#include <unistd.h>
#include "LSM9DS1.h"
#define servoPWM 18
float turn = 8;
int c;
extern "C"
{
void servo_initialize_pins()
{
if (gpioInitialise() < 0)
... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_WaterTap_Base_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//--------------------------------------------------------... |
/// @ref gtx_matrix_factorisation
/// @file glm/gtx/matrix_factorisation.hpp
///
/// @see core (dependence)
///
/// @defgroup gtx_matrix_factorisation GLM_GTX_matrix_factorisation
/// @ingroup gtx
///
/// Include <glm/gtx/matrix_factorisation.hpp> to use the features of this extension.
///
/// Functions to factor matri... |
/* Copyright (c) 2018, Grégoire Payen de La Garanderie, Durham University
* 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 copyrig... |
#include <dae.h>
#include <dae/daeDom.h>
#include <dom/domKinematics_index.h>
#include <dae/daeMetaCMPolicy.h>
#include <dae/daeMetaSequence.h>
#include <dae/daeMetaChoice.h>
#include <dae/daeMetaGroup.h>
#include <dae/daeMetaAny.h>
#include <dae/daeMetaElementAttribute.h>
daeElementRef
domKinematics_index::create(DAE... |
// File include/oglplus/enums/ext/reset_notif_strategy.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/ext/reset_notif_strategy.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2017 Matus Chochlik.
// Distributed under the Boo... |
// (C) Copyright Toon Knapen 2001.
// (C) Copyright David Abrahams 2003.
// (C) Copyright Roland Richter 2003.
// (C) Copyright Renaud Detry 2007-2008.
// 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)
// Thi... |
//-------------------------------------------------------------------------
/*
Copyright (C) 1997, 2005 - 3D Realms Entertainment
This file is part of Shadow Warrior version 1.2
Shadow Warrior is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by ... |
/*
* This source file is part of ARK
* For the latest info, see https://github.com/ArkNX
*
* Copyright (c) 2013-2019 ArkNX 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
*
... |
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
bool isSortable(vector<int> &);
int main() {
/**
* In order to find out wether we can sort the skills,
* we can start traversing from the end, where if the current
* skill is smaller then we swap with front, else we swa... |
/*
* Copyright 2018 Pavel Bludov <pbludov@gmail.com>
*
* 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 l... |
#pragma once
#include <functional>
namespace krakoa::ui
{
using UICallBack = std::function<void()>;
using UIQueryCallBack = std::function<void(bool)>;
} |
/**************************************************************************
***
*** Copyright (c) 1995-2000 Regents of the University of California,
*** Andrew E. Caldwell, Andrew B. Kahng and Igor L. Markov
*** Copyright (c) 2000-2010 Regents of the University of Michigan,
*** Saurabh N... |
#include "ControleEstoque.h"
ControleEstoque::ControleEstoque()
{
//ctor
}
ControleEstoque::~ControleEstoque()
{
//dtor
}
void ControleEstoque::salvaEstoque(){
ofstream arq = ofstream("estoque.txt", ios::out | ios::trunc);
if (!arq.is_open()){
cout << "Falha ao salvar o estoque." << endl;
... |
// Copyright (C) 2012-2017 Internet Systems Consortium, Inc. ("ISC")
//
// 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 <config.h>
#include <asiolink/io_ad... |
//=================================================================================================
/*!
// \file src/mathtest/smatsmatmult/LCbUCb.cpp
// \brief Source file for the LCbUCb sparse matrix/sparse matrix multiplication math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// Th... |
#include "RiverTrackingX86Assembler.h"
using namespace rev;
extern nodep::DWORD dwAddressTrackHandler;
extern nodep::DWORD dwAddressMarkHandler;
void RiverTrackingX86Assembler::AssemblePushFlg(nodep::DWORD testFlags, RelocableCodeBuffer &px86, nodep::DWORD &pFlags, nodep::DWORD &instrCounter) {
const nodep::BYTE ma... |
// 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 <openssl/ecdsa.h>
#include <openssl/rand.h>
#include <openssl/obj_mac.h>
#include "key.h"
// anonymous namespace w... |
class Solution {
public:
int nthUglyNumber(int n) {
set<long long> st;
st.insert(1);
long long num=0;
for(int i=0;i<n;i++){
num=*st.begin();
st.erase(num);
st.insert(num*2);
st.insert(num*3);
st.insert(num*5);
}
... |
#include "DateTime.h"
using namespace MB_DATETIME;
int main()
{
Date test;
//std::cin>>test;
//std::cout<<test << std::endl <<test.tomorrow()<< std::endl <<test.yesterday();
CTime tester;
std::cin >> tester;
std::cout << tester;
cin.get();
cin.get();
cin.get();
cin.get();
} |
#include "other.h"
int main() {
splashScreen();
int signUpStatusUser = 0, signInStatusUser = 0;
int signUpStatusPin = 0, signInStatusPin = 0;
int keyboardAreaStatus = 0;
bool signUp = 0, signIn = 0;
bool check1 = 0, check2 = 0, check3 = 0;
bool allowKeyboard = 0, allowNumpad = 0;
string user, pin;
/... |
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdfapi/fpdf_page/cpdf_tilingpattern.h"
#include "core/fpdfapi... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... |
//
// is_read_buffered.hpp
// ~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef ASIO_IS_READ_BUFFER... |
/**********************************************************************
Audacity: A Digital Audio Editor
AboutDialog.cpp
Dominic Mazzoni
Vaughan Johnson
James Crook
********************************************************************//**
\class AboutDialog
\brief The AboutDialog shows the program version... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkXMLUnstructuredGridReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
T... |
#include "TMC2130Stepper.h"
#include "TMC2130Stepper_MACROS.h"
// IHOLD_IRUN
void TMC2130Stepper::IHOLD_IRUN(uint32_t input) {
IHOLD_IRUN_sr = input;
TMC_WRITE_REG(IHOLD_IRUN);
}
uint32_t TMC2130Stepper::IHOLD_IRUN() { return IHOLD_IRUN_sr; }
void TMC2130Stepper::ihold(uint8_t B) { TMC_MOD_REG(IHOLD_IRUN, IHOLD)... |
//===- LowerTypeTests.cpp - type metadata lowering pass -------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/IterationDecision.h>
#include <AK/Singleton.h>
#include <AK/StringView.h>
#include <AK/UUID.h>
#include <Kernel/Bus/PCI/API.h>
#include <Kernel/Bus/PC... |
#include "jaws3/IO.h"
#include "SS_State_ERROR.h"
#include "SS_State_DONE.h"
#include "SS_Data.h"
int
TeraSS_State_ERROR::service (JAWS_Event_Completer *ec, void *data)
{
// Send an error message.
TeraSS_Data *tdata = (TeraSS_Data *) data;
tdata->mb ().reset ();
tdata->mb ().copy ("FAIL\r\n", 6);
JAWS_IO:... |
// Copyright (c) 2009-2014 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" // for pwalletMain
#include "bitcoinrpc.h"
#include "ui_interface.h"
#include "base58.h"
#include <boost/lexica... |
/*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later ve... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/*
** Copyright 2011-2014 Centreon
**
** 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... |
//----------------------------------
// (c) Reliable Software 2003 - 2006
//----------------------------------
#include "precompiled.h"
#include "MenuTable.h"
namespace Menu
{
//
// Menu Popup Items
//
const Item monitorItems [] =
{
{CMD, "&Save ...", "Monitor_Save", 0}, // Save
{CMD, "&Clear All", ... |
/**
* \file src/opr/impl/indexing.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" ... |
/****************************************************************************
Copyright (C) 2013 Henry van Merode. All rights reserved.
Copyright (c) 2015-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
https://adxeproject.github.io/
Permission is hereby granted, free of cha... |
#ifndef CPPSCRIPT_HPP
#define CPPSCRIPT_HPP
#include "Script/Script.h"
class Entity;
namespace fm
{
class CppScript : public fm::Script
{
public:
CppScript(const std::string &nameClass);
CppScript();
~CppScript();
virtual bool init(Entity* e) override;
virtual void start() ... |
/// @ref core
/// @file glm/ext/matrix_double4x3_precision.hpp
#pragma once
#include "../detail/type_mat4x3.hpp"
namespace glm
{
/// @addtogroup core_matrix_precision
/// @{
/// 4 columns of 3 components matrix of double-precision floating-point numbers using low precision arithmetic in term of ULPs.
///
/// @s... |
/*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#ifndef SAPI_SM_STATEMACHINE_HPP_
#define SAPI_SM_STATEMACHINE_HPP_
#include "../api/SmObject.hpp"
#include "../var/Data.hpp"
#include "../sys/Timer.hpp"
#include "../var/ConstString.hpp"
/*! \cond */
namespace sm {
... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkPanoramicProjectionPass.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Thi... |
//===- TestBuiltinAttributeInterfaces.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
//
//===---------------------------... |
//
// main.cpp
//
// Created by Jo Hyuk Jun on 2020.
// Copyright © 2020 Jo Hyuk Jun. All rights reserved.
//
#include <iostream>
#include <string.h>
#include <vector>
#define MAX 102
using namespace std;
int t, n;
int matrix[MAX][MAX] = { 0, };
int visited[MAX] = { 0, };
vector<int> line[MAX];
void dfs(int sta... |
/**
* @file methods/decision_tree/decision_tree.hpp
* @author Ryan Curtin
*
* A generic decision tree learner. Its behavior can be controlled via template
* arguments.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received ... |
#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
bool solve(int x) {
if (x % 11 == 0 || x % 111 == 0) {
return true;
}
// x = 11 * a + 111 * b = 11 * (a + 10 b) + b;
int b = x % 11;
int a = (x - b) / 11 - 10 * b;
// cout << "a: " << a << ", b:" << b << endl;
return ... |
#include "passwordinput.h"
/**
* @brief PasswordInput::PasswordInput
*/
PasswordInput::PasswordInput(){
this->m_password = QString();
}
/**
* @brief PasswordInput::setPassword
* @param password
*/
void PasswordInput::setPassword(const QString &password){
qDebug() << "Property value:" << password;
thi... |
//===-- BitcodeWriter.cpp - ClangDoc Bitcode Writer ------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "reporter.hpp"
void stator::Reporter::set_description(const std::string& desc)
{
description = desc;
} |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2014-2020 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... |
/*
MIT License
Copyright (c) 2020 4B4DB4B3
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, distr... |
// 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 <stan/math/prim/mat.hpp>
#include <gtest/gtest.h>
#include <test/unit/util.hpp>
#include <limits>
using stan::math::is_pos_definite;
class ErrorHandlingMatrix : public ::testing::Test {
public:
void SetUp() {}
Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> y;
};
TEST_F(ErrorHandlingMatrix, isPo... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
// 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 "fuzz_input.h"
#include <cstddef>
#include <cstdint>
#include <string.h>
namespace fuzzing {
const uint8_t* FuzzInput::TakeBytes(size_t size) ... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2009 University of Washington
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This pro... |
/*
* 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 ... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "flashlight/ext/plugin/ModulePlugin.h"
namespace fl {
namespace ext {
ModulePlugin::Modul... |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <CFrameRateDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Register
{
class CFrameRateRegister : public IRegister
... |
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers
//
// This file is part of Bytecoin.
//
// Bytecoin is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of t... |
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <iostream>
#include <stdlib.h>
#include "multinest.h"
/******************************************** loglikelihood routine ****************************************************/
// Now an example, sample an egg box likelihood
// Input arguments
// nd... |
#include<gtk/gtk.h>
static void buttonclick(GtkWidget *widget, gpointer data)
{
g_print("%s\n",gtk_entry_get_text(GTK_ENTRY(data)));
//gtk_entry_set_text(GTK_ENTRY(data),"HELLO"); This hello will get entered no matter whatever u type
//gtk_editable_select_region(GTK_EDITABLE(data),0,-1); it selects the entered text... |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2017-2018 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person ob... |
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 110;
int matrix[maxn][maxn];
int width, height;
inline void input()
{
for (int i = 0; i < width; i++)
{
for (int j = 0; j < height; j++)
{
cin >> matrix[i][j];
... |
/*
This file is part of the example codes which have been used
for the "Code Optmization Workshop".
Copyright (C) 2016 Fabio Baruffa <fbaru-dev@gmail.com>
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
... |
// Copyright 2014 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 "components/dom_distiller/core/distilled_page_prefs.h"
#include <memory>
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#in... |
//-----------------------------------------------------------------------------
// boost-libs variant/test/test8.cpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2003
// Eric ... |
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <mk219533 (a) students.mimuw.edu.pl> wrote this file. As long as you retain
* this notice you can do whatever you want with this stuff. If we meet some day,
* and you think this stuff is w... |
// Copyright 2015 the V8 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.
#include <utility>
#include "src/api/api-inl.h"
#include "src/codegen/optimized-compilation-info.h"
#include "src/compiler/pipeline.h"
#include "src/de... |
// sol3
// The MIT License (MIT)
// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors
// 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... |
#ifndef BINARY_TREE_HPP
#define BINARY_TREE_HPP
#include <stdexcept>
#include <memory>
#include "Node.hpp"
#include "../../tool.hpp"
using namespace std;
template <typename TKey,typename TValue>
class BinaryTree {
public:
BinaryTree()=default;
~BinaryTree(){
Clear();
}
typedef Node<TKey,TVa... |
//
// detail/resolver_service.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST... |
/*
* video_x.cpp - Video/graphics emulation, X11 specific stuff
*
* SheepShaver (C) Marc Hellwig and Christian Bauer
*
* 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 ... |
/*
* Copyright (c) 2014, Ford Motor Company
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of condit... |
/** sampled_dataset.cc -*- C++ -*-
Francois Maillet, 11 janvier 2016
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
*/
#include "mldb/sql/sql_expression.h"
#include "sampled_dataset.h"
#include "mldb/utils/lightweight_hash.h"
#include "... |
/*
Copyright (c) 2007 Cyrus Daboo. 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 re... |
/*
* Copyright (c) 2013, 2016 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*
*/
/**
* @file
* Wind River CGCS Platform File System Monitor Service Header
*/
#include "fsmon.h"
/* Process Monitor Configuration File */
#define CONFIG_FILE ((const char *)"/etc/mtc/fsmond.conf")
static un... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*/
#include "hermes/VM/JSDataView.h"
#include "hermes/VM/BuildMetadata.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE "seriali... |
// Copyright (c) 2014 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)
#pragma once
#include <hpx/include/parallel_executors.hpp>
#include <hpx/include/para... |
#include "Application.h"
namespace Algon {
Application::Application()
{
}
Application::~Application()
{
}
void Application::Run(){
while (true);
}
} |
// Copyright (c) 2006, 2007 Julio M. Merino Vidal
// Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
// Copyright (c) 2009 Boris Schaeling
// Copyright (c) 2010 Felipe Tanus, Boris Schaeling
// Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling
//
// Distributed under the Boost Software License, Version 1.0. (See ac... |
/*
* 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... |
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:44 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: Zenject.StaticMemoryPoolBase`1
#include "Zenject/StaticMemoryPoolBase_1.hpp"
// Includin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.