text stringlengths 7 961k |
|---|
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
/**
* The Forgotten Server - a free and open-source MMORPG server emulator
* Copyright (C) 2019 Mark Samman <mark.samman@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; eithe... |
// -*- coding: us-ascii-unix -*-
// Copyright 2012 Lukas Kemmer
//
// 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 a... |
#pragma once
#include <msw/noncopyable.hpp>
#include <msw/include/boost/asio.hpp>
#include <msw/asio/socket_options.hpp>
#include <msw/throw_runtime_error.hpp>
#include <msw/lexical_cast/network/endpoint/to_string.hpp>
#include <rubetek/log.hpp>
#include <rubetek/local_link/set.hpp>
#include <rubetek/client/local/bea... |
// Copyright 2020 VMware, Inc.
// SPDX-License-Identifier: MIT
#include "instance.h"
#include "ui_instance.h"
Instance::Instance(QWidget *parent) :
QWidget(parent),
ui(new Ui::Instance)
{
ui->setupUi(this);
}
Instance::~Instance()
{
delete ui;
}
QString Instance::get_name()
{
return ui->custome... |
// 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)
/**
* @file mesh_utils_base.hpp
*
* @brief This file contains helper functions for importing and managing
* ... |
// Copyright (c) 2019 The BITCORN developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/bitcorn/tooltipmenu.h"
#include "qt/bitcorn/forms/ui_tooltipmenu.h"
#include "qt/bitcorn/bitcorngui.h"
#include "qt/bitco... |
/*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* 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 requir... |
//============================================================================
// Name : dnageoid_ext.cpp
// Author : Roger Fraser
// Contributors :
// Version : 1.00
// Copyright : Copyright 2017 Geoscience Australia
//
// Licensed under the Apache License, Version 2.0 (the "Licens... |
//----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... |
#include <stdio.h>
#include "ali_api_core.h"
#include "ali_string_utils.h"
#include "ali_cdn.h"
#include "json/value.h"
#include "json/reader.h"
using namespace aliyun;
namespace {
void Json2Type(const Json::Value& value, std::string* item);
void Json2Type(const Json::Value& value, CdnDescribeUserDomainsPageDataType* ... |
#pragma once
#include <mbgl/util/noncopyable.hpp>
#include <jni/jni.hpp>
namespace mbgl {
namespace android {
class FormattedSection : private mbgl::util::noncopyable {
public:
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/types/FormattedSection"; };
static void registerNative(jni::JNIE... |
// Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... |
#ifndef MPLLIBS_METAMONAD_V1_NO_CASE_MATCHED_HPP
#define MPLLIBS_METAMONAD_V1_NO_CASE_MATCHED_HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
// 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... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2012... |
/*
* 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 ... |
/*
* Copyright 2018 National Technology & Engineering Solutions of
* Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS,
* the U.S. Government retains certain rights in this software.
*
* The MIT License (MIT)
*
* Copyright (c) 2018 Sandia Corporation
*
* Permission is hereby granted, ... |
//---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of th... |
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/device/usb/mojo/device_manager_impl.h"
#include <stddef.h>
#include <memory>
#include <set>
#include <string>
#include <utility>
#in... |
// Copyright 2016 MongoDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
/**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... |
#pragma once
void readCheatFile_GBA();
void writeCheatFile_GBA(); |
/*
*
* Copyright 2016 gRPC 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 agree... |
/*
Atanua Real-Time Logic Simulator
Copyright (c) 2008-2014 Jari Komppa
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
in... |
#include "Logger/LogHandlers/consoleHandler.hpp"
#include <iostream>
#include <iomanip>
namespace WhitE {
void ConsoleHandler::utilizeLog(const LogRecord& logRecord)
{
std::cout << "[ " << std::left << std::setw(7)
<< std::to_string(logRecord.mTimeFromStart).erase(5, 4) << "s ]"
<< " | " << std::setw(8) << log... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common
* Development and Distribution License("CDDL") (... |
/*
* Copyright (c) 2020, Rapprise.
* 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 condition... |
/*
* Copyright (c) 2004-2015 by Jakob Schröter <js@camaya.net>
* This file is part of the gloox library. http://camaya.net/gloox
*
* This software is distributed under a license. The full license
* agreement can be found in the file LICENSE in this distribution.
* This software may not be copied, modified, s... |
#include <iostream>
#include <cctype>
#include <cstdio>
using namespace std;
int fa[50010], n, m, v, u, ans;
inline int read() {
int ret, f = 1;
char ch;
while(!isdigit(ch = getchar())) (ch == '-') && (f = -1);
for(ret = ch - '0'; isdigit(ch = getchar()); ret *= 10, ret += ch - '0');
return ret * f;
}
inline void... |
/**
* Copyright (c) Glow Contributors. See CONTRIBUTORS file.
*
* 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 b... |
// MIT License
// Copyright (C) December 2016 Hotride
#include "GumpRacialAbilitiesBook.h"
#include "GumpRacialAbility.h"
#include "../OrionUO.h"
#include "../ToolTip.h"
#include "../PressedObject.h"
#include "../SelectedObject.h"
#include "../ClickObject.h"
#include "../OrionWindow.h"
#include "../Managers/MouseManag... |
/*
* File: DescStat.hpp
* Part of commonpp.
*
* Distributed under the 2-clause BSD licence (See LICENCE.TXT file at the
* project root).
*
* Copyright (c) 2015 Thomas Sanchez. All rights reserved.
*
*/
#pragma once
#include <mutex>
#include <string>
#include <utility>
#include <vector>
#include <boost/accum... |
#pragma once
/**
* @file transforms.hpp
* @author Zakary Littlefield
* @brief <b> [INCOMPLETE] Some handy aliases for commonly used Eigen declarations. </b>
* */
#include <Eigen/Dense>
#include <Eigen/Core>
namespace prx
{
/** @brief A column vector of dimension <i>N</i>. */
template <int N>
using n_vector_t ... |
/*
* SlidingWindowMathExpressionFilter.hpp
*
* Created on: Aug 18, 2017
* Author: Peter Fankhauser
* Institute: ETH Zurich, ANYbotics
*/
#pragma once
#include <Eigen/Core>
#include <string>
#include <filters/filter_base.hpp>
#include <grid_map_core/grid_map_core.hpp>
#include "EigenLab/EigenLab.h"
na... |
/*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/
#include "ISF_FastCaloSimEvent/TFCSCenterPositionCalculation.h"
#include "ISF_FastCaloSimEvent/FastCaloSim_CaloCell_ID.h"
#include "ISF_FastCaloSimEvent/TFCSSimulationState.h"
#include "ISF_FastCaloSimEvent/TFCSExtrapolationState.h"
//==... |
#include "FrameLib_Complex_Unary_Objects.h"
#include "FrameLib_MaxClass.h"
extern "C" int C74_EXPORT main(void)
{
FrameLib_MaxClass_Expand<FrameLib_Complex_Cosh>::makeClass("fl.complex.cosh~");
} |
/******************************************************************************
This source file is part of the tomviz project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distributed u... |
/****************************************************************************
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... |
// NameValueParser.cpp
// Implements the cNameValueParser class that parses strings in the "name=value;name2=value2" format into a stringmap
#include "Globals.h"
#include "NameValueParser.h"
// DEBUG: Self-test
#if 0
class cNameValueParserTest
{
public:
cNameValueParserTest(void)
{
const char Data[] = " ... |
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
int nvnp
,ME ,
/*tN7*/Yg
,CLi
,
H2t
, xO,Gy, T
,n ,jn
/*b*/, YtB//lG
,O,du ,scrG ,DrF,
wLU,HzU ,
hcS, XQF
,RvXSGu,Cc, kI3Tr,
AIR4
,
mi
, Q
, Ph , j7DU5b,
BIY, Q1,/**/ vHaV//NAL
,ytn //H
,
Ikx, A , Pcz //DhA
,xmkD, OpXr,
rfz,
Ir
//l
,Fs,aTfi ,c8,IoOQk ,
RDCZZ
, p3oA
, wgQY//T5
, E , jYch,pLR
,/*T... |
#include "frame.h"
/*
* Constructors
*/
Frame::Frame()
{
m_image = QPixmap();
m_id = 0;
}
Frame::Frame(QPixmap image, int id)
{
m_image = image;
m_id = id;
}
/*
* Getter / Setter
*/
void Frame::setImage(QPixmap image) { m_image = image; }
void Frame::setId(int id) { m_id = id; }
QPixmap Frame::im... |
#include "include/stylus_api/stylus_api_plugin.h"
// This must be included before many other Windows headers.
#include <windows.h>
// For getPlatformVersion; remove unless needed for your plugin implementation.
#include <VersionHelpers.h>
#include <flutter/method_channel.h>
#include <flutter/plugin_registrar_windows... |
/*
* Copyright (c) 2021, Tim Flynn <trflynn89@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibJS/Runtime/AbstractOperations.h>
#include <LibJS/Runtime/Array.h>
#include <LibJS/Runtime/GlobalObject.h>
#include <LibJS/Runtime/Intl/AbstractOperations.h>
#include <LibJS/Runtime/Intl/NumberFor... |
///////////////////////////////////////////////////////////////////////////////
///
/// Project Queue++
/// Copyright (c) 2016
///
////////////////////////////////////////////////////////////////////////////////
/// @file types.hpp
/// @authors Poturaev Anton
/// @date 11.02.... |
#include "app.h"
#include "dep.h"
struct MyApp : App {
void run() override { print_app(); }
};
extern "C" {
std::unique_ptr<App> AppFactory() { return std::make_unique<MyApp>(); }
} |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "AssetTypeActions_BehaviorTree.h"
#include "Framework/Application/SlateApplication.h"
#include "BehaviorTreeEditorModule.h"
#include "BehaviorTree/BlackboardData.h"
#include "BehaviorTree/BehaviorTree.h"
#include "IBehaviorTreeEditor.h"
#include "B... |
/*
Copyright (c) 2010-2011, 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:
* Redistributions of source code must retain the above copyright
notice, this list of co... |
#include "Input.h"
// This is all really ugly, but it makes writing these functions much easier.
// All C_* macros are undefined before the end of this file.
#define C_AUTO(KeyName) case sf::Keyboard::KeyName: return EKeyboardInput::KeyName
#define C_MAN(KeyName, Input) case sf::Keyboard::KeyName: return EKeyboardInp... |
#define LOG_TAG "AFVTBDecoder"
#include "AppleVideoToolBox.h"
#include "codec/utils_ios.h"
#include "utils/errors/framework_error.h"
#include "utils/timer.h"
#include <cinttypes>
#include "video_tool_box_utils.h"
using namespace std;
namespace Cicada {
static const int IOS_OUTPUT_CACHE_FOR_B_FRAMES = 8;
AFVT... |
#ifndef TCLCALLBACKMESSAGES_HH
#define TCLCALLBACKMESSAGES_HH
#include "CliListener.hh"
#include "TclCallback.hh"
namespace openmsx {
class GlobalCliComm;
class CommandController;
class TclCallbackMessages final : public CliListener
{
public:
TclCallbackMessages(GlobalCliComm& cliComm, CommandController& controlle... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__char_environment_ifstream_54b.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-54b.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: environment Read input from an env... |
// MIT Licensed (see LICENSE.md).
#include "Precompiled.hpp"
namespace Plasma
{
void LauncherStartup::UserInitializeLibraries()
{
Debugger::Enabled = false;
LauncherLibrary::Initialize();
}
void LauncherStartup::UserInitializeConfig(Cog* configCog)
{
// Force certain config components to exist. There's a few up... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ios/chrome/browser/web_resource/web_resource_util.h"
#include "base/bind.h"
#include "base/json/json_reader.h"
#include "base/location.h"
#incl... |
/*=============================================================================
The MIT License (MIT)
Copyright @ 2013 by Zhang Zhimin
p3.1415@qq.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 the Softw... |
//
// AbstractGeometryMesh.cpp
// G3MiOSSDK
//
// Created by Jose Miguel SN on 23/06/13.
//
//
#include "AbstractGeometryMesh.hpp"
#include "IFloatBuffer.hpp"
#include "Color.hpp"
#include "GL.hpp"
#include "Box.hpp"
#include "DirectMesh.hpp"
#include "FloatBufferBuilderFromCartesian3D.hpp"
#include "CompositeMe... |
/**********************************************************************
* Copyright (c) 2008-2014, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... |
// 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 "courgette/assembly_program.h"
#include <memory.h>
#include <algorithm>
#include <map>
#include <set>
#include <sstream>
#include <vector>
... |
//===--- GenClass.cpp - Swift IR Generation For 'class' Types -------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/**
* Copyright 2013 Automatak, LLC
*
* Licensed to Automatak, LLC (www.automatak.com) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. Automatak, LLC
* licenses this file to you under the Apache License ... |
/*=========================================================================
Program: MIMX Meshing Toolkit
Module: $RCSfile: vtkKWMimxDisplayPropertiesGroup.cxx,v $
Language: C++
Date: $Date: 2012/12/10 15:15:07 $
Version: $Revision: 1.1 $
Musculoskeletal Imaging, Modelling and Experimentation (MIMX)
Ce... |
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include "tolua++.h"
#ifdef __cplusplus
}
#endif
int register_all_x_implot(lua_State* tolua_S); |
// C++
#include <iostream>
#include <time.h>
// OpenCV
#include <opencv2/core/core.hpp>
#include <opencv2/core/utility.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/video/tracking.hpp>
// PnP Tutorial
#include "Mesh.h"
#includ... |
// 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 "rtl8211f.h"
#include <lib/ddk/debug.h>
#include <lib/ddk/driver.h>
#include <lib/ddk/platform-defs.h>
#include <stdio.h>
#include <string.h>
#in... |
#include <algorithm>
#include "loguru.h"
#include "VegaXmlPlotter.h"
#include "ChainLoader.h"
#include "XmlHistogram.h"
#include "Utils.h"
#include "TLatex.h"
#include "THStack.h"
#include "TKey.h"
#include "TList.h"
#include "TStyle.h"
#include "TColor.h"
#include "TTree.h"
#include "TString.h"
#include "TEllipse.h... |
// 2008-08-20
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstring>
using namespace std;
typedef pair<int,int> pii;
char grid[1000][1000];
pii arr[1000];
int N;
pii radixarr[26][1000];
void order(int sc)
{
int i=0;
int j,k,m,cnt;
int lettercnt[26];
char c;
while (i<N)
{
j=i+1;
while (j<N&&arr... |
//
// Alert system
//
#include <algorithm>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/foreach.hpp>
#include <map>
#include "alert.h"
#include "key.h"
#include "net.h"
#include "sync.h"
#include "ui_interface.h"
using namespace std;
map<uint256,... |
/**************************************************************
*
* 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 y... |
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "td/utils/tests.h"
#include "td/actor/actor.h"
#inc... |
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include <memory.h> /* for memset */
#include "nfs.h"
/* Default timeout can be changed using clnt_control() */
static struct timeval TIMEOUT = { 25, 0 };
char **
ls_1(char *str, CLIENT *clnt)
{
static char *clnt_res;
memset((char *)&clnt_... |
/*
* Brian R Taylor
* brian.taylor@bolderflight.com
*
* Copyright (c) 2021 Bolder Flight Systems 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 ... |
// bslmf_nil.cpp -*-C++-*-
#include <bslmf_nil.h>
#include <bsls_ident.h>
BSLS_IDENT("$Id$ $CSID$")
// ----------------------------------------------------------------------------
// Copyright (C) 2013 Bloomberg L.P.
//
// Permission is hereby granted, free of char... |
/*
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
* Copyright (C) 2005 Eric Seidel <eric@webkit.org>
* Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
* Copyri... |
/******************************************************************************
Copyright 2017-2019 Nativepython 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://ww... |
#include <tdme/gui/nodes/GUIVerticalScrollbarInternalNode.h>
#include <array>
#include <string>
#include <tdme/gui/GUI.h>
#include <tdme/gui/nodes/GUIColor.h>
#include <tdme/gui/nodes/GUINode_Border.h>
#include <tdme/gui/nodes/GUINode_ComputedConstraints.h>
#include <tdme/gui/nodes/GUINode_Scale9Grid.h>
#include <tdm... |
/*
* MIT License
*
* Copyright (c) 2019 Jimmie Bergmann
*
* 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, m... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2015 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 a... |
#include <string>
#include <iostream>
using namespace std;
int main(){
string input;
while(getline(cin, input)){
int j = 0;
for(int i = 0; i < input.size(); i++){
j = i;
while(input[i] != ' ' && i < input.size()) i++;
for(int k = i - 1; k >= j; k--) printf("... |
/*
* CFG.cpp
*
* Created on: Jan 24, 2011
* Author: Peter Goodman
* Version: $Id$
*
* Copyright 2011 Peter Goodman, 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
*... |
// Throw new checks
class MyException {
};
int main() {
throw new MyException();
throw new (MyException)();
throw new MyException;
try {} catch (int i) {}
try {} catch (Foo i) {}
try {}
catch (Foo &i) {}
try {}
catch (Bar) {}
}; |
#include "RE/BSCore/BSTCreateFactoryManager.h"
namespace RE
{
MessageDataFactoryManager* MessageDataFactoryManager::GetSingleton()
{
using func_t = decltype(&MessageDataFactoryManager::GetSingleton);
REL::Relocation<func_t> func{ Offset::MessageDataFactoryManager::GetSingleton };
return func();
}
} |
/*
* Copyright (c) Meta Platforms, Inc. and 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 appl... |
#include "../nconfig.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
#include "../ndisasm.hpp"
int main(int argc,char**argv){
if(argc<2){
std::cerr<<"Too few files\n";
return 0;
}
if(strlen(argv[1])<5){
std::cerr<<"File format not recognized\n";
return 0;
}
if(strcmp(argv[1]+st... |
//
// Copyright (c) 2000-2002
// Joerg Walter, Mathias Koch
//
// Permission to use, copy, modify, distribute and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that the above copyright notice appear in all copies and
// that both that copyright notice and t... |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
#include <boost/mpl/aux_/preprocessed/msvc60/bitxor.hpp> |
#include "Timer.h"
#include "MemoryController.h"
Timer::Timer(MemoryController* memoryController) {
this->memoryController = memoryController;
}
Timer::~Timer() {
}
uint8_t Timer::getRegister(timerRegisters reg) {
return memoryController->cpuRead(reg);
} |
/*
* (c) Copyright 2016-2017, 2021 Hewlett Packard Enterprise Development Company LP.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the
* GNU Lesser General Public License Version 3, or (at your option)
* later with exceptions ... |
// Copyright (c) 2016 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.
// Keep this file in sync with the .proto files in this directory.
#include "components/sync/protocol/proto_memory_estimations.h"
#include "base/tra... |
/*
* =============================================================
* sumiflessv.c
* takes two inputs, one (mxn) matrix M and one vector
* (1xm) vector v
* each element of every column of M that is less than the
* corresponding v entry is added to the output vector
* output(j)=sum_{i} ... |
//===- ELFObjcopy.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
//
//===---------------------------... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: BeatmapLevelSO
#include "GlobalNamespace/BeatmapLevelSO.hpp"
// Including type... |
#include "filter.h"
Filter::Filter()
{
}
float gabor(float x, float y, float phi, float freq, float std2)
{
phi += M_PI/2;
float x2 = -x*sin(phi) + y*cos(phi);
float y2 = x*cos(phi) + y*sin(phi);
float t1 = (x2*x2)/std2;
float t2 = (y2*y2)/std2;
float exponential = exp(-0.5*(t1 + t2));
re... |
// 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)
//
// Preprocessed version of "boost/mpl/less.hpp" header
// -- DO NOT modify by hand!
namespace geofeatures_boost {}... |
/*
This is a SAMP (0.3.7-R1/R3) API project file.
Developer: LUCHARE <luchare.dev@gmail.com>
See more here https://github.com/LUCHARE/SAMP-API
Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved.
*/
#include "InputHandler.h"
void*& SAMP::InputHandler::prevWindowProc() { return *(void**)SAMP... |
#include "DFBB_BuildOrderSmartSearch.h"
using namespace BOSS;
DFBB_BuildOrderSmartSearch::DFBB_BuildOrderSmartSearch(const RaceID race)
: _race(race)
, _params(race)
, _goal(race)
, _stackSearch(race)
, _searchTimeLimit(30)
{
}
void DFBB_BuildOrderSmartSearch::doSearch()
{
BOSS_ASSERT(_initi... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2013 EMC Corp.
//
// @filename:
// CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotInNoCorrelations.cpp
//
// @doc:
// Implementation of transform
//----------------------------------------------------... |
/*
Copyright (c) 2006, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.