text stringlengths 7 961k |
|---|
// 1. Include needed C headers here
// ---------------------------------
// 2. Include needed C++ headers here
#include <cinttypes>
#include <cstddef>
#include <cstdint>
// ---------------------------------
// 3. Include SJSU-Dev2 headers here
#include "L0_Platform/startup.hpp"
#include "newlib/newlib.hpp"
#include "... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2014-2018 Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne Univers... |
#ifndef DATATYPE_AST_HPP_INCLUDED
#define DATATYPE_AST_HPP_INCLUDED
#include "ast.hpp"
#include "identast.hpp"
#include "lexer.hpp"
class DATATYPE_AST : public AST
{
private:
DOMAIN_TAG basic_datatype;
IDENT_AST *ident;
public:
static DATATYPE_AST*read(TOKEN**tok, LEXER*lexer);
DATATYPE_AS... |
// x3c - C++ PluginFramework
#include <UtilFunc/PluginInc.h>
#include <Module/XModuleMacro.h>
#include <Module/XModuleImpl.h>
#include "Cx_FileUtility.h"
#include "Cx_FileTransaction.h"
#include "Cx_TempFolder.h"
XBEGIN_DEFINE_MODULE()
XDEFINE_CLASSMAP_ENTRY_Singleton(x3::CLSID_FileUtility, Cx_FileUtility)
XD... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2020 Baldur Karlsson
*
* 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 ... |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "logdevice/common/NodeSetFinder.h"
#include <folly/Memory.h>
#include "logde... |
//
// OctreeServer.cpp
// assignment-client/src/octree
//
// Created by Brad Hefta-Gaub on 9/16/13.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "OctreeServer.h"
... |
#include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
int n = -400;
vector<int> asteps = {8, 8, 12, n, 2, 8, n, 9, n, 3, n, n, n, n};
vector<int> bsteps = {n,... |
// 1999-09-20 bkoz
// Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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 Found... |
#include <iostream>
using namespace std;
void Max_Heap(int arr[], int i, int n);
void Heap_Sort(int arr[], int n);
void Build_MaxHeap(int arr[], int n);
void display(int arr[],int n);
int main()
{
int n, i;
cout<<"\n Enter the size of the list: ";
cin>>n;
n++;
int arr[n];
cout<<"\n Enter the elements :";
fo... |
//*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
/*
* Copyright 2020 Mathieu Nassar
*
* 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 ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The Platinum developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mi... |
#include "tutorial/SignalDataAdapter.h"
#include "tutorial/SignalData.h"
// Construct the signal data adapter.
SignalDataAdapter::SignalDataAdapter(const ConfigNode& config)
: AbstractStreamAdapter(config)
{
// Read the configuration using configuration node utility methods.
_samplesPerPacket = config.getO... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
// Copyright (c) 2013 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 "tools/gn/commands.h"
#include "tools/gn/filesystem_utils.h"
#include "tools/gn/item.h"
#include "tools/gn/label.h"
#include "tools/gn/label_... |
#include "sidebar.h"
#include <QDebug>
#include <QEvent>
#include <QPaintEvent>
#include <QPainter>
#define action_height 90
SideBar::SideBar(QWidget *parent)
: QWidget(parent), mCheckedAction(NULL), mOverAction(NULL) {
setMouseTracking(true);
}
void SideBar::paintEvent(QPaintEvent *event) {
QPainter p(this... |
#include "mwoibn/motor_side_reference/sea_reference.h"
namespace mwoibn
{
namespace motor_side_reference
{
SeaReference::SeaReference(
mwoibn::robot_class::Robot& robot,
mwoibn::basic_controllers::LowerLevelController& gravity_compensation,
mwoibn::Interface interface)
: mwoibn::basic... |
// Copyright (c) 2009-2017 The Bitcoin developers
// Copyright (c) 2017-2019 The SAFEGAMES developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "key.h"
#include "uint256.h"
#include "crypto/common.h"
#include "cr... |
#ifndef _VKTPIPELINESAMPLERTESTS_HPP
#define _VKTPIPELINESAMPLERTESTS_HPP
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2015 The Khronos Group Inc.
* Copyright (c) 2015 Imagination Technologies Ltd.
*
* Licensed ... |
#include "LogicalDevice.hpp"
#include "Instance.hpp"
#include "PhysicalDevice.hpp"
#include "Surface.hpp"
#include "Graphics/GraphicsContext.hpp"
namespace Ilum
{
const std::vector<const char *> LogicalDevice::extensions = {
VK_KHR_SWAPCHAIN_EXTENSION_NAME,
VK_KHR_ACCELERATION_STRUCTURE_EXTENSION_NAME,
VK... |
#include "stdafx.h"
#include "fasttrigo.h"
//Most ninja tricks used here:
//http://fastcpp.blogspot.fr/2011/03/changing-sign-of-float-values-using-sse.html
//http://www.songho.ca/misc/sse/sse.html
//http://markplusplus.wordpress.com/2007/03/14/fast-sse-select-operation/
//http://www.masmforum.com/board/index.php?PHPSE... |
#include "CPUmem.h"
Register8 MemoryArea::readAddress8(const physicalAddress& address) {
return (Register8)memory[address];
}
Register16 MemoryArea::readAddress16(const physicalAddress& address) {
return readAddressR(address).X;
}
DataRegister MemoryArea::readAddressR(const physicalAddress& address) {
return DataR... |
#include "CapabilityTest.h"
void CapabilityTest::check_comparison()
{
CPPUNIT_ASSERT( m_cap == m_cap );
CPPUNIT_ASSERT( m_cap != Capability::from_proc() );
}
void CapabilityTest::check_clear()
{
Capability cap = Capability::from_proc();
CPPUNIT_ASSERT( !cap.is_effective_flag_set(CAP_CHOWN) );
CP... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
#include<bits/stdc++.h>
using namespace std;
bool isPalindrome(string str)
{
int j = str.size()-1;
int flag = 1;
for(int i=0;i<str.size()/2;i++){
if(str[i]==str[j]){
flag = 1;
j -= 1;
continue;}
else{
flag = 0;
break;}
}
if(flag==1)
... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestGPURayCastVolumeUpdate.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... |
#include<bits/stdc++.h>
using namespace std;
#define mx 1001
vector<int> primefact[mx];
int cost[mx];
bool isvisited[mx];
void factor(int n)
{
int idx=n;
for(int i=2; i<=(n/2); i++)
{
int cnt=0;
while((n%i)==0)
n/=i,cnt++;
if(cnt)
primefact[idx].push_back(... |
// Copyright (c) 2020, NVIDIA CORPORATION. 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 ... |
/// @file
///
/// Equations hold equations for the fitting classes
///
/// @copyright (c) 2007 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// atnf-enquiries@csiro.au
///
/// This file is part o... |
//=================================================================================================
/*!
// \file src/mathtest/tdvecsmatmult/VDbLCb.cpp
// \brief Source file for the VDbLCb dense vector/sparse matrix multiplication math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// Th... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2019 The Khronos Group Inc.
* Copyright (c) 2019 Google Inc.
* Copyright (c) 2017 Codeplay Software Ltd.
* Copyright (c) 2018 NVIDIA Corporation
*
* Licensed under ... |
// license:BSD-3-Clause
// copyright-holders:Angelo Salese
/* TAS 5 REEL system? by Olympic Video Gaming */
#include "emu.h"
#include "cpu/m68000/m68000.h"
#include "machine/mc146818.h"
#include "machine/z80scc.h"
#include "screen.h"
class hotstuff_state : public driver_device
{
public:
hotstuff_state(const machine... |
// ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2021
// MIT License
#pragma once
#include <Arduino.h>
namespace ARDUINOJSON_NAMESPACE {
template <typename TSource>
struct Reader<TSource,
typename enable_if<is_base_of<Stream, TSource>::value>::type> {
public:
explicit Reader(Strea... |
/*************************************************************************/
/* file_access_buffered.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "Entities/StaticEntity.h"
namespace Entities {
StaticEntity::StaticEntity(Math::CoordF position, Math::CoordF size, ID id) :
Entity(position, size, id),
sprite() {
}
StaticEntity::~StaticEntity() {
}
void StaticEntity::render() {
sprite.render();
}
} // namespace En... |
#pragma once
#include <sfe/ComplexSprite.hpp>
#include <Component/Component.hpp>
#include <Engine/ResourceManager.hpp>
#include <Graphics/Color.hpp>
#include <Graphics/PositionTransformers.hpp>
#include <Graphics/Renderable.hpp>
#include <Graphics/Shader.hpp>
#include <Scene/Camera.hpp>
#include <Transform/Rect.hpp>
... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* 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 cop... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/win/variant_vector.h"
#include <stddef.h>
#include <windows.foundation.h>
#include <wrl/client.h>
#include "base/stl_util.h"
#include "ba... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <stdio.h>
#include <string.h>
#include <net/if.h>
#include <boost/asio.hpp>
#include <db/db_entry.h>
#include <db/db_table.h>
#include <db/db_table_partition.h>
#include <sandesh/sandesh_types.h>
#include <sandesh/sandesh.h>
#include <... |
// Copyright (c) 2018-2020 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <zcrct/deterministicmint.h>
#include "zcrcttracker.h"
#include "util.h"
#include "sync.h"
#include "main.h"
#include "txdb.h... |
#include "AlbumWidget.h"
#include "ThumbnailProxyModel.h"
#include "ui_AlbumWidget.h"
AlbumWidget::AlbumWidget(QWidget * parent) :
QWidget(parent),
ui(new Ui::AlbumWidget),
mAlbumModel(nullptr),
mAlbumSelectionModel(nullptr),
mPictureModel(nullptr),
mPictureSelectionModel(nullptr)
{
ui->set... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CParseHandlerPhysicalTVF.cpp
//
// @doc:
//
// Implementation of the SAX parse handler class for parsing table-valued
// functions
//--------------------------------... |
/*
@ 0xCCCCCCCC
*/
#include "winant_http/winant_utils.h"
#include "kbase/string_format.h"
namespace wat {
std::string EscapeUrl(kbase::StringView str)
{
constexpr kbase::StringView kUnreserved("ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
... |
/*!
\file file.cpp
\brief Filesystem file implementation
\author Ivan Shynkarenka
\date 29.08.2016
\copyright MIT License
*/
#include "filesystem/file.h"
#include "errors/fatal.h"
#include <cassert>
#include <cstring>
#if defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__... |
/*
* Copyright (c) 2011-2017, pinfutech <pinfutech@hotmail.com>
* Copyright (c) 2017-2021, Zhu Fei <zhufei8519@outlook.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistri... |
/*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
/*Exercise 3 - Repeatition
Convert the C program given below which calculates the Factorial of a number that you input from the keyboard to a C++ program.
Please Note that the input command in C++ is std::cin. This is a representation of the Keyboard.*/
#include <iostream>
using namespace std;
int main()
{
int ... |
#include <iostream>
#include <vector>
#define MAX 25
using namespace std;
int map[MAX][MAX];
int sizeX, sizeY;
int startPositionX;
int startPositionY;
int targetPositionX;
int targetPositionY;
vector<pair<int, int>> route(5, make_pair(10, 10));
bool visited[MAX][MAX];
bool found = false;
void input()
{
cin >... |
/**
* $Id$
*/
#include <stdexcept>
using std::runtime_error;
#include <string>
using std::string;
#include <cppunit/extensions/HelperMacros.h>
#include "par_t_nn.h"
int sstGroupByLongitudeLatitude(const char* file,
const int beginLongitude,
const int ... |
//*****************************************************************************
// Copyright 2017-2018 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
// RUN: %clang -fsanitize=null %s -O3 -o %t
// RUN: %t l 2>&1 | FileCheck %s --check-prefix=CHECK-LOAD
// RUN: %t s 2>&1 | FileCheck %s --check-prefix=CHECK-STORE
// RUN: %t r 2>&1 | FileCheck %s --check-prefix=CHECK-REFERENCE
// RUN: %t m 2>&1 | FileCheck %s --check-prefix=CHECK-MEMBER
// RUN: %t f 2>&1 | FileCheck %s... |
#include "polygon.h"
namespace geomodcore {
Polygon::Polygon(void) {
}
Polygon::Polygon(const std::vector<GPoint>& points) {
this->assign(points.begin(), points.end());
}
Polygon::Polygon(const Polygon& curve) {
this->assign(curve.begin(), curve.end());
}
Polygon& Polygon::operator= (const Polygon& curve) ... |
// VroemVroem - House Object Header
#pragma once
#include "objects/object.hpp"
#include <memory>
#include "image.hpp"
#include "canvas.hpp"
#include "camera.hpp"
namespace Objects {
class House : public Object {
public:
enum class Type {
HOUSE = 0,
HOUSE_SMALL,
BACKER... |
/*
Copyright (C) 2003-2014 by David White <davewx7@gmail.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 purpose,
incl... |
#include "ofImage.h"
#include "ofAppRunner.h"
#include "ofTypes.h"
#include "ofURLFileLoader.h"
#include "ofGraphics.h"
#include "FreeImage.h"
#if defined(TARGET_ANDROID) || defined(TARGET_OF_IPHONE)
#include <set>
// android destroys the opengl context on screen orientation change
// or when the application runs in... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <amount.h>
#include <chain.h>
#include <chainparams.h>
#include <consensus/co... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
// from https://github.com/adrianN/graph6
#ifndef GRAPH6_HPP
#define GRAPH6_HPP
#include <vector>
#include <stdexcept>
#include <cassert>
#include <iterator>
#include <utility>
#include <iostream>
#include <sstream>
#include <string>
#include <cassert>
#include <cmath>
/*Read a graph6 graph from an input stream. You ... |
//===----------------------------------------------------------------------===//
//
// BusTub
//
// update_executor.cpp
//
// Identification: src/execution/update_executor.cpp
//
// Copyright (c) 2015-20, Carnegie Mellon University Database Group
//
//===-----------------------------------------... |
#include <iostream>
#include <iomanip>
#include <cmath>
#include "nr.h"
using namespace std;
// Driver for routine dlinmin
DP func(Vec_I_DP &x)
{
int i;
DP f=0.0;
for (i=0;i<3;i++) f += (x[i]-1.0)*(x[i]-1.0);
return f;
}
void dfunc(Vec_I_DP &x, Vec_O_DP &df)
{
int i;
... |
/****************************************************************************
*
* Copyright (c) 2017-2019 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// Yo... |
#include <iostream>
#include <math.h>
#include <vector>
#include <Eigen/Dense>
using namespace std;
//Evaluate the Chebyshev polynomials up to order n in x.
vector<double> chebpolmult(const int &n,const double &x)
{
vector<double> V={1,x};
for (int k=1; k<n; k++)
V.push_back(2*x*V[k]-V[k-1]);
retu... |
#include "Graphics/Vulkan/DescriptorSetGroup.h"
Pu::DescriptorSetGroup::DescriptorSetGroup(DescriptorPool & pool)
: DescriptorSetBase(pool), subscribe(false)
{}
Pu::DescriptorSetGroup::DescriptorSetGroup(DescriptorSetGroup && value)
: DescriptorSetBase(std::move(value)), subscribe(value.subscribe), hndls(std::move(... |
/**
* @file
* @copyright defined in xmax/LICENSE
*/
#pragma once
#include <pro/types/build.hpp>
#include <filesystem>
namespace pro
{
#if _Project_Compiler == _Compiler_MSVC
# if _MSC_VER < 1914
namespace fs = std::experimental::filesystem;
# else
namespace fs = std::filesystem;
# endif
#else
namespace fs = std::... |
// 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 "mojo/public/cpp/environment/async_waiter.h"
namespace mojo {
AsyncWaiter::AsyncWaiter(Handle handle,
MojoHandleSignal... |
//*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: OVR.OpenVR.IVRSystem
#include "OVR/... |
/*------------------------------------------------------------------------
File Name: DGWindow.cpp
Description: This file contains the implementations of the DGWindow class,
which represent a basic window in the GUI.
Version:
1.0.0 10.02.2001 Created the file
---------------------------------------------------... |
#include<iostream>
using namespace std;
int main()
{
int choice,k;
char board[5][5] = { {'1','2','3','4','5'},{'6','7','8','9','10'},{'11','12','13','14','15'},{'16','17','18','19','20'},{'21','22','23','24','25'} };
cout << "\tTick Cross Game";
cout << "\n\tPlayer1 [X] \n\tPlayer2 [0]\n\n";
for (k = 1; k <= 5... |
// Copyright 2018 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 "device/vr/android/arcore/arcore_shim.h"
#include <dlfcn.h>
#include "base/android/android_hardware_buffer_compat.h"
#include "base/android/bui... |
#pragma once
#include <functional>
#include <vector>
#include <string>
class Window;
class WindowCategory;
class WindowClass
{
private:
std::function<Window *()> ctor;
std::string id, name;
WindowCategory *category;
WindowClass *next;
public:
WindowClass(std::string id, std::string name, WindowCategory *categ... |
/**********************************************************************
* File: tessvars.cpp (Formerly tessvars.c)
* Description: Variables and other globals for tessedit.
* Author: Ray Smith
* Created: Mon Apr 13 13:13:23 BST 1992
*
* (C) Copyright 1992, Hewlett-Packard Ltd.
** Licensed under t... |
#pragma once
#include <memory>
namespace mbgl {
class RendererObserver;
class UpdateParameters;
// The RenderFrontend is the bridge between the Map and
// platform used to update and observer the Renderer
//
// It hides any threading specifics and always replies on
// the original thread.
class RendererFrontend {
p... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
/*
** ClanLib SDK
** Copyright (c) 1997-2016 The ClanLib Team
**
** 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 a... |
#include "selfdrive/ui/qt/offroad/settings.h"
#include <cassert>
#include <cmath>
#include <string>
#include <QDebug>
#ifndef QCOM
#include "selfdrive/ui/qt/offroad/networking.h"
#endif
#ifdef ENABLE_MAPS
#include "selfdrive/ui/qt/maps/map_settings.h"
#endif
#include "selfdrive/common/params.h"
#include "selfdrive... |
/*
* Copyright (C) 2012-2016 Open Source Robotics 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... |
//
// Copyright (c) 2008-2019 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... |
#include "gtest/gtest.h"
#include "Commit.h"
TEST(Commit, Deserialize)
{
// TODO: generate test content
openapi::Commit x;
Json j;
x.FromJSON(j);
x.ToJSON(j);
} |
// Copyright Louis Dionne 2013-2016
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <boost/hana/at.hpp>
#include <boost/hana/at_key.hpp>
#include <boost/hana/back.hpp>
#include <boost/hana/ext/std/tuple.hpp>
#inclu... |
#include "XGDBFrameAnimation.h"
#include "XGXml.h"
#include "VxConvert.h"
/************************************************************************/
/* XGDBFrameAnimation
************************************************************************/
XGDBFrameAnimation::XGDBFrameAnimation()
{
}
XGDBFrameAnimation::~XGDBFr... |
/*
* Copyright (c) 2016, Markus Achtelik, ASL, ETH Zurich, Switzerland
* Copyright (c) 2016, Michael Burri, ASL, ETH Zurich, Switzerland
* Copyright (c) 2016, Helen Oleynikova, ASL, ETH Zurich, Switzerland
* Copyright (c) 2016, Rik Bähnemann, ASL, ETH Zurich, Switzerland
* Copyright (c) 2016, Marija Popovic, ASL, ... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "bitcoinrpc.h"
using namespace json_spirit;
using namespace... |
#include <Access/GrantedRoles.h>
#include <Access/RolesOrUsersSet.h>
#include <boost/range/algorithm/set_algorithm.hpp>
#include <boost/range/algorithm_ext/erase.hpp>
namespace DB
{
void GrantedRoles::grant(const UUID & role_)
{
roles.insert(role_);
}
void GrantedRoles::grant(const std::vector<UUID> & roles_)
{
... |
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2019, the Ginkgo 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:
1. Redistributions of source co... |
#include <vector>
template <class Graph> class cDFS
{
int cnt;
const Graph &G;
vector <int> ord;
void searchC(int v)
{
ord[v] = cnt++;
typename Graph::adjIterator A(G,v);
for(int t = A.beg(); !A.end(); t = A.nxt())
if(ord[t] == -1) searchC(t);
}
public:
... |
//
// MainPage.xaml.cpp
// Implementation of the MainPage class.
//
#include "pch.h"
#include "MainPage.xaml.h"
using namespace TestApp;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xa... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
// https://github.com/KubaO/stackoverflown/tree/master/questions/appnap-49677034
#if !defined(__APPLE__)
#error This example is for macOS
#endif
#include <QtWidgets>
#include <mutex>
#include <objc/runtime.h>
#include <objc/message.h>
// see https://stackoverflow.com/a/49679984/1329652
namespace detail { struct Latenc... |
#include "../../../includes/window/changes/start_game_change.h"
#include "../../../includes/threads/play_result.h"
#include "../../../includes/threads/key_reader.h"
#include "../../../includes/window/window.h"
#include <connector/connector.h>
/*
PRE: Recibe un connector.
POST: Inicializa un cambio de inicio
de part... |
/*
* GStreamer
* Copyright (C) 2005 Thomas Vander Stichele <thomas@apestaart.org>
* Copyright (C) 2005 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* Copyright (C) 2010 Sreerenj Balachandran <bsreerenj@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this softwar... |
// Copyright 2022 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... |
//
// Copyright (C) 2006 Telecommunication Networks Group (TKN) at Technische Universitaet Berlin, Germany.
//
// Documentation for these modules is at http://veins.car2x.org/
//
// SPDX-License-Identifier: GPL-2.0-or-later
//
// This program is free software; you can redistribute it and/or modify
// it under the terms... |
/*
* Copyright 2015 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 contributing ... |
#ifndef LAZYCOMPILE_H
#define LAZYCOMPILE_H
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include "filemachine.hpp"
#include "term.h"
using namespace std;
void Run(string path);
string Compile(string gFlags, vector<string> objs, string outputPath, string outputName = "lazyout");
void M... |
// Copyright (c) 2007-2013 Hartmut Kaiser
// Copyright (c) 2012-2013 Thomas Heller
//
// 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)
// This file has been automatically generated using the Boost.Wave tool.
// Do n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.