text stringlengths 5 1.04M |
|---|
//
// Copyright (c) 2008-2016 the Urho3D project.
//
// 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... |
#pragma once
#include "Base.hpp"
namespace jzj {
#define JZJQUICKIMPLEMENT(x) int main(int argc, const char * argv[]){x JZJAPPOBJECT;JZJAPPOBJECT.run();return 0;}
class GameApp : public Base {
public:
GameApp() : isRunning(true) {}
~GameApp() {}
void run() {
init();
while(isRunning) {
... |
#include "browsereditimages.h"
#include "browserjavascriptfiles.h"
#include "browsersettings.h"
#include "layout.h"
#include <QString>
#include <QVector>
#include <QWebEngineView>
BrowserEditImages::BrowserEditImages(QWebEngineView* secondWebEngineView, QWebEngineView* webEngineView,
... |
extern "C" {
extern int printf(const char *, ...);
}
void voidSum(int a, int b, int *result) {
*result = a + b;
}
#define VOID_SUM(a, b, result) voidSum(a, b, result)
int sum(int a, int b) {
int result = 0;
VOID_SUM(a, b, &result);
return result;
}
int main() {
if (sum(2, 3) == 5) {
printf("NORMAL\n")... |
#include <fltk/run.h>
#include <fltk/Window.h>
#include <fltk/events.h>
#include <fltk/string.h>
#include <fltk/MultiLineOutput.h>
#include <stdio.h>
using namespace fltk;
Widget* bluewidget = 0;
Widget* greenwidget = 0;
MultiLineOutput* output = 0;
class DNDTarget : public Widget {
public:
int handle(int event) {... |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
// HolderView.cpp : implementation file
//
#include "stdafx.h"
#include "HolderView.h"
IMPLEMENT_DYNCREATE(CHolderView, CView)
CHolderView::CHolderView()
{
m_pAttachedWnd=NULL;
}
CHolderView::~CHolderView()
{
}
BEGIN_MESSAGE_MAP(CHolderView, CView)
ON_WM_SIZE()
END_MESSAGE_MAP()
// CHolderView drawing
// CH... |
#pragma once
#include "ASTNode.hh"
namespace sieve
{
class ASTVisitor;
class ASTBlock : public ASTNode {
public:
ASTBlock() : ASTNode() {}
ASTBlock(yy::location location);
void accept(ASTVisitor &visitor);
std::string value() const { return "ASTBlock"; }
template<class T>
std:... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
int n, logn=0;
void min_jmp(vector<vll> &T, int i, ll v0) {
T[i][0] = v0;
for (int b = 0; b < logn; ++b)
T[i][b+1] = min(T[i][b], T[max(i-(1<<b), 0)][b]);
}
int prev_smaller(vector<vll> &T, int i, ll v) {
... |
/*************************************************************************
*
* Copyright 2016 Realm 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/lice... |
//-----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2018, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the ... |
/** \file
*
* \author S. Bolognesi - INFN To
*/
#include "DTGeometryParserFromDDD.h"
#include "DataFormats/MuonDetId/interface/DTLayerId.h"
using namespace std;
DTGeometryParserFromDDD::DTGeometryParserFromDDD(
const DDCompactView* cview,
const MuonDDDConstants& muonConstants,
map<DTLayerId, std::pa... |
/*
* Copyright (c) 2021, Krisna Pranav
*
* SPDX-License-Identifier: BSD-2-Clause
*/
/* includes */
#include <libutils/array.h>
#include <libutils/bytebuffer.h>
#include <libutils/hex.h>
#include <libutils/stringutils.h>
#include <libutils/types.h>
#include <string.h>
namespace Utils {
Optional<ByteBuffer> decod... |
#include <iostream>
#include "SceneManager.h"
#include "GameScene3D.h"
#include "PauseScene.h"
#include "GameEndScene.h"
Font* GameEndScene::largeFont2D = nullptr;
Font* GameEndScene::smallFont3D = nullptr;
void GameEndScene::drawStrings()
{
}
GameEndScene::GameEndScene()
{
SceneManager::getInstance().switchWindow... |
/*
-----------------------------------------------------------------------------
This source file is part of ogre-procedural
For the latest info, see http://www.ogreprocedural.org
Copyright (c) 2010-2013 Michael Broutin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and... |
// Copyright (c) 2015-2017 The Eurodollar Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <consensus/merkle.h>
#include <test/test_eurodollar.h>
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_S... |
// ---------------------------------------------------
// Filter for selecting Calo Cosmic MIP-like events
// From CaloCosmicCalib by clusters to cells level
// V1 version: S.Miscetti 28/January/2021
// from original version of G. Pezzullo
// -------------------------------------------------
// framework
#include "... |
/*!
@file
@author Albert Semenov
@date 11/2007
*/
/*
This file is part of MyGUI.
MyGUI 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 the License, or
(at your option) any lat... |
TITLE("My Application V1.0.0.0 Help")
COMPRESSED
120,156,139,86,80,81,49,208,49,80,54,32,0,172,92,82,211,18,75,115,74,98,163,171,227,107,85,93,253,116,67,131,21,162,139,13,172,109,181,204,20,130,75,147,74,242,11,50,147,21,128,166,24,235,1,177,90,44,76,10,194,138,3,75,39,88,37,232,39,232,135,6,132,36,196,7,151,164,56,... |
#pragma once
#include <memory>
#include <string>
#include <vector>
#include "abstract_read_write_operator.hpp"
namespace opossum {
class TransactionContext;
/**
* Operator that modifies meta tables, e.g. calls insert on the plugins meta table to load a plugin.
* It expects the table name of the table to modify a... |
/*
* Copyright (c) 2019 by flomesh.io
*
* Unless prior written consent has been obtained from the copyright
* owner, the following shall not be allowed.
*
* 1. The distribution of any source codes, header files, make files,
* or libraries of the software.
*
* 2. Disclosure of any source codes pertaini... |
#ifndef _ES31CSHADERIMAGELOADSTORETESTS_HPP
#define _ES31CSHADERIMAGELOADSTORETESTS_HPP
/*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2014-2016 The Khronos Group Inc.
*
* Licensed under the Apache Licen... |
// stdafx.cpp : 只包括标准包含文件的源文件
// Student.pch 将作为预编译头
// stdafx.obj 将包含预编译类型信息
#include "stdafx.h"
// #include "resource.h"
|
/*
* Copyright 2016-present Facebook, 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 a... |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... |
class Solution {
public:
int getMinDistance(vector<int>& nums, int target, int start) {
int out=INT_MAX;
for(int i=0;i<nums.size();++i)
{
if(nums[i]==target)
{
out=min(out,abs(i-start));
}
}
return out;
}
}; |
// Copyright 2020 Autoware Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
#pragma once
#include <functional>
namespace WGSE
{
template<class Ret>
struct FuncPtr
{
const std::function<Ret()>* ptr;
};
template<class Ret, typename... Args>
struct FuncPtr<Ret(Args...)>
{
const std::function<Ret(Args...)>* ptr;
};
}
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/util/internal/testdata/proto3.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include <google/protobuf/util/internal/testdata/proto3.pb.h>
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google... |
/* TechDemo SFML/Box2D
Copyright (C) 2016 Matadini (matadini@hotmail.com)
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 ... |
/*
*
* Copyright (C) 2019-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#ifndef _ZE_APP_HPP_
#define _ZE_APP_HPP_
#include <level_zero/ze_api.h>
#include <fstream>
#include <iostream>
#include <string>
#include <cstring>
#include <vector>
class ZeApp {
public:
ZeApp(void);
ZeApp(std::string... |
/*************************************************************************/
/* collision_object_2d_sw.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
//===- JITMemoryManagerTest.cpp - Unit tests for the JIT memory manager ---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
#include"ObjectClass.hpp"
StrongEnemyA::StrongEnemyA(RectF body) {
HP = 80;
Body = body;
originX = body.center().x;
speed = 1.5;
offensivePower = StageMaxHP / 4;
money += 10;
}
void StrongEnemyA::move() {
Body.y += speed;
Body.x = 70*Sin(Body.y/180*Math::Pi) + originX;
}
void StrongEnemyA::draw() {
static... |
/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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. ... |
#include "duckdb/common/enums/logical_operator_type.hpp"
using namespace std;
namespace duckdb {
//===--------------------------------------------------------------------===//
// Value <--> String Utilities
//===--------------------------------------------------------------------===//
string LogicalOperatorToString(... |
// Copyright 2012 the V8 project authors. 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 ... |
//-----------------------------------------------------------------------------
// Includes
//-----------------------------------------------------------------------------
#pragma region
#include "imageio.hpp"
#include "sampling.hpp"
#include "specular.hpp"
#include "sphere.hpp"
#pragma endregion
//-----... |
//
// Enum.cpp
//
// $Id: //poco/1.4/CppParser/src/Enum.cpp#1 $
//
// Library: CppParser
// Package: SymbolTable
// Module: Enum
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/CppParser/Enum.h"
#include "Poco/CppP... |
//===----------------------------------------------------------------------===//
//
// 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 "walletmodel.h"
#include "guiconstants.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include "transactiontablemodel.h"
#include "ui_interface.h"
#include "wallet.h"
#include "walletdb.h" // for BackupWallet
#include "base58.h"
#include <QSet>
#include <QTimer>
#include <QDebug>
WalletModel::W... |
#include "stdafx.h"
#include "burer_fast_gravi.h"
#include "burer.h"
#include "../control_animation_base.h"
#include "../control_direction_base.h"
#include "../control_movement_base.h"
bool CBurerFastGravi::check_start_conditions()
{
if (is_active()) return false;
if (m_man->is_captured_pure()) return ... |
//
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail 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 BEAST_IMPL_BUFFER_PREFIX_IPP
#define BEAST_IMPL_BUFFER_PREFIX_IPP
#inclu... |
// Copyright (C) 2020 Samsung Electronics Co., Ltd.
// Licensed under the MIT License.
// See the LICENSE file in the project root for more information.
#include <catch2/catch.hpp>
#include <stdio.h>
#include <string.h>
#include <string>
#include "span.h"
#include "iosystem.h"
#include "streams.h"
#include "ioredirec... |
#define LEMI_LOADER_VERSION "4"
#include <Windows.h>
#include "imgui/imgui.h"
#include "imgui/imgui_impl_dx9.h"
#include "imgui/imgui_impl_win32.h"
#include <d3d9.h>
#include <tchar.h>
#include <thread>
#include "download.h"
#include "file_tools.h"
#include "imgui/my_style.h"
#include "globals.h"
#include "ui.h"
... |
// Copyright 2017 The Dawn 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... |
/*
* averagecounter.{cc,hh} -- element counts packets, measures duration
* Benjie Chen
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to d... |
/*
A pattern scanner that will search a running Wesnoth process for the bytes 0x29 42 04. These bytes are the opcode for the sub instruction
that is responsible for subtracting gold from a player when recruiting a unit.
The scanner works by using CreateToolhelp32Snapshot to find the Wesnoth process and the main Wesn... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
//Copyright (c) 2015-2020 The PIVX developers
//Copyright (c) 2020 The Sombe developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licen... |
/*
*
* Copyright 2015 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... |
/*
* Copyright (c) 2016-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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... |
// 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 "xfa/fde/cfx_chariter.h"
CFX_CharIter::CFX_CharIter(const CFX_WideSt... |
//
// 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/telegram/files/FileUploader.h"
#include "td/tel... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... |
/**
* 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... |
#include <iostream>
using namespace std;
int findUniqueNumber(int endMarker) {
int currentNumber;
cin >> currentNumber;
int xorSum = 0;
while (currentNumber != endMarker) {
xorSum ^= currentNumber;
cin >> currentNumber;
}
return xorSum;
}
int main() {
cout << findUniqueNumber(0) << "\n";
... |
#include <string.h>
#include "PacketUtils.h"
#include "IPv4Layer.h"
#include "IPv6Layer.h"
#include "TcpLayer.h"
#include "UdpLayer.h"
#include "IcmpLayer.h"
#include "Logger.h"
#include "EndianPortable.h"
namespace pcpp
{
uint16_t computeChecksum(ScalarBuffer<uint16_t> vec[], size_t vecSize)
{
uint32... |
/*
* Copyright 2015 The Kythe 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 ap... |
#include "WordSearch/wordSearch.h"
#include "gtest/gtest.h"
using namespace std;
class wordSearch_MultipleParamsTests :
public ::testing::TestWithParam<tuple<int,int>>{
};
TEST_P(wordSearch_MultipleParamsTests, CheckAns){
int n = get<0>(GetParam());
int expected = get<1>(GetParam());
ASSERT_EQ(expec... |
// Copyright (c) 2020 OUXT Polaris
//
// 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... |
//==============================================================================
// Project : Grape
// Module : IO
// File : IpSocket.cpp
//
// Copyright (c) 2012, Vilas Chitrakaran
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted pro... |
//===-- llvm/CodeGen/GlobalISel/LegalizerHelper.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
//
//===---------------------------... |
// Copyright (c) 2014 Readium Foundation and/or its licensees. 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, ... |
/* Copyright (c) 2017, Robert J. Hansen.
*
* 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 permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... |
#include "DNSSeeder.h"
#include <Common/Logger.h>
#include <Core/Global.h>
#include <asio.hpp>
DNSSeeder::DNSSeeder(const Config& config)
: m_config(config)
{
}
std::vector<SocketAddress> DNSSeeder::GetPeersFromDNS() const
{
std::vector<SocketAddress> addresses;
std::vector<std::string> dnsSeeds;
if (Global::I... |
/*
*
* Copyright (c) 2020 Project CHIP 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... |
/*
* Copyright (C) 2011-2018 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 li... |
#include <SDL.h>
#include <SDL_image.h>
#include <stdio.h>
#include "main.h"
const int SCREEN_WIDTH = 400;
const int SCREEN_HEIGHT = 200;
bool Init();
bool LoadMedia(const char* dir);
void Close();
SDL_Texture* LoadTexture(const char* dir);
SDL_Window* window = nullptr;
SDL_Renderer* renderer = nullptr;
SDL_Textu... |
/*++
Copyright (C) 2018 3MF Consortium
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the followi... |
#ifndef PACKETENUMS_H
#define PACKETENUMS_H
#include <stdint.h>
enum pkttype_e
{
PKT_Dummy = 0,
PKT_C2S_ClientConnect_NamedPipe = 1,
PKT_CHAT = 2,
PKT_C2S_QueryStatusReq = 3,
PKT_S2C_QueryStatusAns = 4,
PKT_S2C_StartSpawn = 5,
PKT_S2C_CreateHero = 6,
PKT_S2C_CreateNeutral = 7,
PKT_S... |
/*
* Copyright (c) 2018, 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... |
/*
* 22_Generate_Parentheses.cxx
*
* Copyright 2021 RedaKerouicha <redakerouicha@localhost>
*
* 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 ... |
/**
* Copyright 2020 Kaloian Manassiev
*
* 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, publis... |
/*!
* Copyright 2015-2022 by XGBoost Contributors
* \file data.cc
*/
#include <dmlc/registry.h>
#include <array>
#include <cstring>
#include "dmlc/io.h"
#include "xgboost/data.h"
#include "xgboost/c_api.h"
#include "xgboost/host_device_vector.h"
#include "xgboost/logging.h"
#include "xgboost/version_config.h"
#incl... |
/*
** gl_missingtexture.cpp
** Handles missing upper and lower textures and self referencing sector hacks
**
**---------------------------------------------------------------------------
** Copyright 2000-2005 Christoph Oelckers
** All rights reserved.
**
** Redistribution and use in source and binary forms, wi... |
//============================================================================
//
// SSSS tt lll lll
// SS SS tt ll ll
// SS tttttt eeee ll ll aaaa
// SSSS tt ee ee ll ll aa
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emula... |
// Blend2D - 2D Vector Graphics Powered by a JIT Compiler
//
// * Official Blend2D Home Page: https://blend2d.com
// * Official Github Repository: https://github.com/blend2d/blend2d
//
// Copyright (c) 2017-2020 The Blend2D Authors
//
// This software is provided 'as-is', without any express or implied
// warranty. I... |
#include "asset_browser_breadcrumbs_model.hpp"
#include "i_asset_object_item.hpp"
#include "core_reflection/i_definition_manager.hpp"
#include "core_data_model/i_item_role.hpp"
namespace wgt
{
//------------------------------------------------------------------------------
struct AssetBrowserBreadcrumbsModel::Implemen... |
#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
typedef long long int ll;
#define endl "\n"
vector<vector<ll>> adjlist;
ll max(ll x, ll y) { return (x > y) ? x : y; }
ll min(ll x, ll y) { return (x > y) ? y : x; }
#define mod 1000000007
ll cases = 1, n, x, y, left, right, curr, prev, next, sum, t... |
/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 ( the "License" );
you may not use this file except in compliance with the L... |
// Copyright 2017 The Ray 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 to i... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009 Ilya Baran <ibaran@mit.edu>
//
// 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 htt... |
// -*- C++ -*-
// Copyright (C) 2021 Dmitry Igrishin
//
// 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,
// i... |
// Copyright 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 "config.h"
#include "cc/texture_layer_impl.h"
#include "base/stringprintf.h"
#include "cc/quad_sink.h"
#include "cc/renderer.h"
#include "cc/te... |
#include "camera.h"
#include "nssc_errors.h"
nssc::NSSC_STATUS nssc::ingest::Camera::setExposure(float exposure_time)
{
this->node->g_config.frame_config.cam_exposure_time = exposure_time;
return GXSetFloat(this->h_device, GX_FLOAT_EXPOSURE_TIME, this->node->g_config.frame_config.cam_exposure_time);
}
nssc::N... |
// Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// 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 Fre... |
///////////////////////////////////////////////////////////////
// Copyright 2012 John Maddock. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
//
// Comparison operators for cpp_int_backend:
//
#ifndef BOOST_MP_... |
#include "storm/builder/DdJaniModelBuilder.h"
#include <sstream>
#include <boost/algorithm/string/join.hpp>
#include "storm/logic/Formulas.h"
#include "storm/storage/jani/Edge.h"
#include "storm/storage/jani/EdgeDestination.h"
#include "storm/storage/jani/Model.h"
#include "storm/storage/jani/Automaton.h"
#include ... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include ... |
// Copyright 2017 ProjectQ-Framework (www.projectq.ch)
//
// 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... |
/* Copyright 2016 Espen Flage-Larsen
This file is part of T4ME and covered by the BSD 3-clause license.
You should have received a copy of the BSD 3-clause license
along with T4ME. If not, see <https://opensource.org/licenses/BSD-3-Clause/>.
*/
#include <math.h>
#include "skw.hpp"
/* Dummy main, as we on... |
/*
* Copyright 2017 MapD Technologies, 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 o... |
#include "vm/test/test.hpp"
#include "builtin/bignum.hpp"
#include "builtin/exception.hpp"
#include "builtin/float.hpp"
#include "builtin/string.hpp"
class TestBignum : public CxxTest::TestSuite, public VMTest {
public:
Bignum* b1;
Bignum* b2;
Fixnum* two;
double TOLERANCE;
void setUp() {
create();
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#define REMOTE_STRING L"–remote “npipe:pipe=foo,server=bar”\t"
#define EXPECTED_REMOTE_STRING L"-remote \"npipe:pipe=foo,server=bar\""
|
/*
* Copyright (c) 2011-2014, 2017-2020 ARM Limited
* Copyright (c) 2013 Advanced Micro Devices, Inc.
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intelle... |
// (C) 2021 by folkert van heusden <mail@vanheusden.com>
// released under Apache License v2.0
#include <getopt.h>
#include <math.h>
#include <sndfile.h>
#include <stdio.h>
#include <midilib/MidiFile.h>
#include "fft.h"
void usage() {
printf("-i x sound file to process\n");
printf("-o x midi-file to write to\n");... |
// Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Nazara Engine - Utility module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Utility/AbstractTextDrawer.hpp>
#include <Nazara/Utility/Debug.hpp>
namespace Nz
{
AbstractTextDrawer::~AbstractTextDrawer(... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
// Modified version of Recast/Detour's source file
//
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.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
... |
#include "CommandHook.hpp"
#include "CommandRunner.hpp"
#include "Helpers.hpp"
namespace criteo {
namespace mesos {
using std::string;
const int TIMEOUT_SECONDS = 10;
CommandHook::CommandHook(const string& runTaskLabelCommand,
const string& executorEnvironmentCommand,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.