text stringlengths 5 1.04M |
|---|
#pragma once
#include "Utils.hpp"
#include "Program.hpp"
#include "Shader.hpp"
#include "Uniform.hpp"
#include "VertexArray.hpp"
#include "VertexAttribute.hpp"
#include "VertexBuffer.hpp" |
#include "catch.hpp"
#include "common/file_system.hpp"
#include "duckdb.hpp"
#include "main/appender.hpp"
#include "test_helpers.hpp"
#include <signal.h>
#include <sys/mman.h>
#include <unistd.h>
using namespace duckdb;
using namespace std;
TEST_CASE("Test transactional integrity when facing process aborts", "[persi... |
/*
* Copyright (C) 2018 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 appl... |
// Copyright (c) 2017-2021, University of Tennessee. All rights reserved.
// SPDX-License-Identifier: BSD-3-Clause
// This program is free software: you can redistribute it and/or modify it under
// the terms of the BSD 3-Clause license. See the accompanying LICENSE file.
#ifndef BLAS_DEVICE_NAMES_HH
#define BLAS_DEVI... |
#include <iostream>
using namespace std;
int main(){
int first_value = 5;
int *pttre;
pttre = &first_value;
*pttre = *pttre + 1;
cout<<*pttre<<endl;
int &reference = first_value;
++reference;
cout<<reference<<endl;
cout<<0xf3f2<<endl;
cout<<0437<<endl;
cout<<'a'<<endl;
}
|
//===--- SILMem2Reg.cpp - Promotes AllocStacks to registers ---------------===//
//
// 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... |
#include "Sandbox2D.h"
#include <imgui/imgui.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
Sandbox2D::Sandbox2D()
: Layer("Sandbox2D"), m_CameraController(1280.0f / 720.0f), m_SquareColor({ 0.2f, 0.3f, 0.8f, 1.0f })
{
}
void Sandbox2D::OnAttach()
{
HZ_PROFILE_FUNCTION();
m_Checkerboa... |
/*
* Copyright (c) 2018 01 People, s.r.o. (01 CryptoHouse).
*
* The MIT License
*
* 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 ... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.Be... |
#include<stdio.h>
char x[] = "programming";
char y[] = "Fortran";
void main()
{
int i = 0l;
while (x[i] != '\0' && y[i] != '\0')
{
if (x[i] == y[i])
{
int c=x[i]; putchar(c); c=getchar();
}
else i++;
}
}
|
// Copyright 2015 Intel Corporation. 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/logger.h"
#include "ppapi/cpp/instance.h"
static pp::Instance* instance_ = nullptr; // non-owning pointer
static LogLevel log_level_ = LOGDIS... |
/* 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 by applicable law or agr... |
#include "Base.h"
#include "Maths/Matrix4.h"
#include "Graphics/Mesh/Mesh.h"
#include "Graphics/Renderer/Renderer.h"
#include "Log/LogManager.h"
#include "Log/LogVerbose.h"
#include "CA_Assert.h"
#include "Game/Game.h"
namespace CasaEngine
{
Texture* Mesh::m_pDefaultTexture = nullptr;
// bgfx::TextureHandle genM... |
#include "winbd_cipher.h"
using namespace std;
int main()
{
Cipher cp;
string lol = "hello";
char key[5] = { 'A','B','C','D','E' };
string d = cp.xor_data_hex(lol, key);
cout << cp.xor_data(lol, key) << endl;
cout << d << endl;
cout << cp.hex_format_raw(d) << endl;
cout << cp.not_data(lol, key) <... |
#include "while.h"
//Using a while loop write code for sum_of_squares function that accepts an int and returns
//the sum of all the squares of that number from 1 to the number.
//Example: sum_of_squares(4)
//1*1 + 2 * 2 + 3*3 + 4*4 = 30
//Using a while loop write code for display function that accepts a string ... |
// Copyright 2017 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/fxfa/parser/cxfa_timezoneprovider.h"
#include <time.h>
static ... |
/*************************************************************************/
/* quick_open.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// 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 "content/renderer/media/mock_media_stream_registry.h"
#include <string>
#include "base/strings/utf_string_conversions.h"
#include "content/... |
/*=========================================================================
Program: ParaView
Module: pqStandardViewFrameActionsImplementation.cxx
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
u... |
// 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 <assert.h>
#include <stdlib.h>
#include <string.h>
#include "ppapi_main/ppapi_queue.h"
PPAPIQueue::PPAPIQueue()
: read_(0),
write_(0)... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
#include "../include/ConcurrentPipeline.hpp"
#include <unistd.h>
ConcurrentPipeline::ConcurrentPipeline(ISource &source, InPlaceProcessor &ipp, ReturningProcessor &rp, ITarget &target) :
ConcurrentSink(source, ipp, rp, target)
{
pthread_mutex_init(&Mutex2, NULL);
pthread_cond_init(&Cond2, NULL);
}
Concur... |
/**
Copyright (c) 2015-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
*/
#include <xcdriver/Sho... |
#include "hrpcheaders.h"
#include "ImGuiConsole.h"
#include "imgui.h"
#include "examples/imgui_impl_glfw.h"
#include "examples/imgui_impl_opengl3.h"
namespace Hildur {
uint16_t ImGuiConsole::s_MessageBufferCapacity = 200;
uint16_t ImGuiConsole::s_MessageBufferSize = 0;
uint16_t ImGuiConsole::s_MessageB... |
// 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.
// Decodes the packet HandshakeFailureReason from the chromium histogram
// Net.QuicClientHelloRejectReasons
#include <iostream>
#include "quic/core... |
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2020, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
w... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
#include <hk_physics/physics.h>
#include <hk_physics/simunit/psi_info.h>
#include <hk_physics/core/vm_query_builder/vm_query_builder.h>
#include <hk_physics/constraint/pulley/pulley_bp.h>
#include <hk_physics/constraint/pulley/pulley_constraint.h>
#ifdef HK_ARCH_PPC
#include <stddef.h> // for size_t
#endif
class ... |
/**
* @file lz4_compressor.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2017-2020 TileDB, 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 witho... |
#ifndef CONTEXT_HPP
#define CONTEXT_HPP
#include <SFML/Graphics.hpp>
#include "resourceIdentifiers.hpp"
class ResourceManager;
class MusicPlayer;
class SoundPlayer;
class Engine;
class SwapContext;
struct Context
{
Context(sf::RenderWindow& window,
ResourceManager& resourceManager,
Musi... |
#include "core/uri.h"
#include <regex>
class UriPrivate {
public:
string mUri;
smatch mResult;
};
/*!
\class Uri
\brief Uri class provides an interface for working with URI's.
\since Next 1.0
\inmodule Core
*/
Uri::Uri(const string &uri) :
p_ptr(new U... |
#include "../test/gtest.h"
#include <vector>
#include <arbor/morph/embed_pwlin.hpp>
#include <arbor/morph/locset.hpp>
#include <arbor/morph/morphexcept.hpp>
#include <arbor/morph/morphology.hpp>
#include <arbor/morph/mprovider.hpp>
#include <arbor/morph/primitives.hpp>
#include <arbor/morph/region.hpp>
#include <arbo... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkRectilinearSynchronizedTemplates.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
/*
* Copyright (c) 2015 Oleg Morozenkov
*
* 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, pub... |
//===- BlockExtractor.cpp - Extracts blocks into their own functions ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2013 - Raw Material Software Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL... |
//*******************************************************************************************************
// APath.cpp
// Christopher Wagner 9/5/2018
//
// Contains methods to assist in pathfinding given a vector<vector<>> of nodes with walkable and
// parent variables.
//********************************************... |
/*
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0, as
* published by the Free Software Foundation.
*
* This program is also distributed with... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2021, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
/*
* Copyright (C) 2012 Apple Inc. 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 a... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
#include "app_options.hpp"
#include "file_saver.hpp"
//#include "save_image_tga.hpp"
#include "string_helpers.hpp"
#include "save_image_unix.hpp"
//#include "DirectXTex.h"
#include <exception>
#include <string_view>
#include <string>
using namespace std::literals;
namespace {
/*
bool image_needs_converting(const ... |
// Copyright Carl Philipp Reh 2009 - 2021.
// 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 FCPPT_PARSE_FAIL_FWD_HPP_INCLUDED
#define FCPPT_PARSE_FAIL_FWD_HPP_INCLUDED
namespace fcpp... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#pragma once
#include <chrono>
#include <memory>
#include <string>
#include <type_traits>
#include <vector>
#include <azure/core/context.hpp>
#include <azure/core/datetime.hpp>
#include <azure/core/etag.hpp>
#include <azure/... |
#include "BallTracker.hpp"
#include "BallFilter.hpp"
#include <Utils.hpp>
#include <Processor.hpp>
#include <SystemState.hpp>
using namespace std;
using namespace boost;
using namespace Geometry2d;
// Balls closer together than this will be removed
static const float Distance_Limit = 0.2;
// Maximum distance betwee... |
/* @STSHELL_LICENSE_START@
*
* __ _______ ___________
* / |/ / __ \/ ___/_ __/
* / /|_/ / / / /\__ \ / /
* / / / / /_/ /___/ // /
* /_/ /_/\____//____//_/
*
* Multi-Objective System Tuner
* Copyright (c) 2007-2022 Politecnico di Milano
*
* Development leader: Vittorio ... |
// (C) Copyright Gennadiy Rozental 2001.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
//!@file
//!@brief Random generator
// **********... |
/*******************************************************************************
*
*Copyright: armuxinxian@aliyun.com
*
*Author: fangzhenmu
*
*File name: csf_message_error.hpp
*
*Version: 1.0
*
*Date: 22-3月-2019 22:38:33
*
*Description: Class(csf_message_error) 用于描述模块通信的错误
*
*Others:
*
*History:
*
********************... |
#include "opensslcpp/opensslcpp.hpp"
#include <iostream>
namespace OpensslCpp {
/**
* Ctors functions
*/
OpensslCpp::OpensslCpp() : _cert(new OpensslX509Cpp), _crl(new OpensslX509CRLCpp){
ERR_load_crypto_strings();
OpenSSL_add_all_algorithms();
}
OpensslCpp::~OpensslCpp() {... |
#include "demo/xor_pattern/xor.h"
#include "etl/scope_guard.h"
#include "etl/armv7m/instructions.h"
#include "vga/arena.h"
#include "vga/timing.h"
#include "vga/vga.h"
#include "demo/config.h"
#include "demo/input.h"
#include "demo/xor_pattern/rasterizer.h"
DEMO_REQUIRE_RESOLUTION(800, 600)
namespace demo {
namesp... |
//===--- TypeCheckType.cpp - Type Validation ------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
// Copyright 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.
#include "base/task/thread_pool/thread_group_impl.h"
#include <stddef.h>
#include <algorithm>
#include <type_traits>
#include <utility>
#include "base/... |
/* Project Euler Problem 2: Even Fibonacci numbers
* Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
* 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
* By considering the terms in the Fibonaci sequence whose values do not exceed fou... |
// Copyright 2013 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/v8.h"
#if V8_TARGET_ARCH_ARM64
#include "src/bootstrapper.h"
#include "src/codegen.h"
#include "src/cpu-profiler.h"
#include "src/debug.... |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2015-2018 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... |
#include "message.h"
#include <QDataStream>
Message::Message() :
mSpeedX(0)
, mSpeedY(0)
, mSpeedR(0)
, mSpeedDribbler(0)
, mDribblerEnable(0)
, mKickerVoltageLevel(0)
, mKickerChargeEnable(0)
, mKickUp(0)
, mKickForward(0)
, mBeep(0)
, mAutoKick(0)
{}
void Message::setSpeedX(int speedX)
{
mSpeedX = speed... |
#include <td.hpp>
int main()
{
Td game;
game.Run();
return 0;
}
|
// ======================================================================
// \title TestTlm/test/ut/TesterBase.cpp
// \author Auto-generated
// \brief cpp file for TestTlm component test harness base class
//
// \copyright
// Copyright 2009-2016, by the California Institute of Technology.
// ALL RIGHTS RESERVED. Uni... |
#include <iostream>
#include "Types.hpp"
#include "Parser.hpp"
#include "Formatter.hpp"
int main() {
glgen::EnumInfo d;
d.name = "GL_VERSION_NAME_STRING";
std::cout << "==================\n";
auto versions = glgen::Parser::parse("gl.xml");
glgen::Formatter formatter;
formatter.setClassNamespace("OpenGL");... |
// Copyright (c) 2014-2016 The Dash developers
// Copyright (c) 2016-2017 The PIVX developers
// Copyright (c) 2017-2020 The Verizon Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "spork.h"
#include... |
#ifndef MMIO_HPP
#define MMIO_HPP
#include <assert.h>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <complex>
#include <string>
#include <iomanip>
#include <type_traits>
#include <Eigen/Core>
#include <Eigen/SparseCore>
namespace mmio {
template<class T> struct is_complex : std::false_ty... |
#include "stdafx.h"
#include "../../../async_task.h"
#include "../wim_packet.h"
#include "upload_task.h"
#include "download_task.h"
#include "loader_handlers.h"
#include "loader_helpers.h"
#include "preview_proxy.h"
#include "web_file_info.h"
#include "../../../http_request.h"
#include "../../../tools/md5.h"
#include ... |
/*
Code by Drake Johnson
Displays multi-colored text in a windows console
*/
#ifndef CONS_HEADER_HEADER__
#define CONS_HEADER_HEADER__
#include "print.hpp"
#ifdef _WIN32
namespace cons
{
/**
The Header class creates a heading-style message. When the `display()` method
is called, the header will display fully f... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/messagebus/result.h>
#include <vespa/messagebus/error.h>
#include <vespa/messagebus/errorcode.h>
#include <vespa/messagebus/testlib/simplemessage.h>
usin... |
#include "drape/batcher_helpers.hpp"
#include "drape/attribute_provider.hpp"
#include "drape/cpu_buffer.hpp"
#include "drape/index_storage.hpp"
#include "base/assert.hpp"
#include "base/math.hpp"
#include <algorithm>
namespace dp
{
namespace
{
bool IsEnoughMemory(uint32_t avVertex, uint32_t existVertex, uint32_t avI... |
#define Uses_TKeys
#define Uses_TEvent
#define Uses_TScreen
#define Uses_THardwareInfo
#include <tvision/tv.h>
#include <internal/platform.h>
#include <internal/win32con.h>
#include <internal/ncurdisp.h>
#include <internal/ncursinp.h>
#include <internal/ansidisp.h>
#include <internal/linuxcon.h>
#include <... |
//
// basic_overlapped_handle.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable au... |
#include <bits/stdc++.h>
using namespace std;
string pangrams(string s) {
transform(s.begin(),s.end(),s.begin(), ::tolower);
int freq [26] = {0};
for(int i=0; i<s.size(); i++)
freq[ s[i] - 'a' ]++;
for(int i=0; i<26; i++) { cout << freq[i] << " ";
if(freq[i] == 0) return "not pangram... |
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Copyright (c) 2019 The PIVX developers
// Copyright (c) 2021 The REBEL Coin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// Unit tests for denial-of-... |
// Copyright (c) 2020 Huawei Technologies Co., Ltd
// Copyright (c) 2019, Facebook CORPORATION.
// All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://opensource... |
// This file is made available under Elastic License 2.0.
// This file is based on code available under the Apache license here:
// https://github.com/apache/incubator-doris/blob/master/be/src/util/bfd_parser.cpp
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements.... |
//===-------------- PPCMIPeephole.cpp - MI Peephole Cleanups -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------------... |
#include "workLoop.h"
#include<memory>
int workLoop::init()
{
listening.init(serverConfig::getConfig().getAddr(), serverConfig::getConfig().getPort());
if (em.init() == -1)
return -1;
em.registerEvent(listening.getSocketFd(), epollManager::event_type::LISTEN_EVENT);
return 0;
}
int workLoop::run()
{
... |
//
// "$Id$"
//
// Pixmap drawing code for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2012 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, ... |
// Copyright (C) 2018 ETH Zurich
// Copyright (C) 2018 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Raffaele Solca' (rasolca@itp.phys.ethz.ch)
//
// This file provides cublas related... |
//===---- TargetInfo.cpp - Encapsulate target details -----------*- C++ -*-===//
//
// 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 "WorkerData.h"
#include "MacroAct.h"
#include "Micro.h"
#include "The.h"
using namespace UAlbertaBot;
WorkerData::WorkerPost::WorkerPost()
: location(MacroLocation::Anywhere)
, position(the.placer.getMacroLocationPos(MacroLocation::Anywhere))
{
}
WorkerData::WorkerPost::WorkerPost(Macro... |
#include <cstdlib>
#include <iostream>
#include <cucumber-cpp/generic.hpp>
#include <cucumber-cpp/autodetect.hpp>
using cucumber::ScenarioScope;
struct MyContext {
int result;
};
GIVEN("^Given value (\\d+)$") {
REGEX_PARAM(int, val);
ScenarioScope<MyContext> context;
context->result = val;
}
WHEN("... |
///////////////////////////////////////////////////////////////////////////////
// Authors: Hyein Lee and Jiajia Li
// (Ph.D. advisor: Andrew B. Kahng)
//
// Many subsequent improvements were made by Minsoo Kim
// leading up to the initial release.
//
// BSD 3-Clause License
//
// 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. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
// -*- C++ -*-
//
// ======================================================================
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... |
/*
* Copyright (c) 2019, Intel Corporation
*
* 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... |
#include "Icons.h"
gui::Icons::Icons()
{
}
gui::Icons::~Icons()
{
}
std::pair<unsigned char*, unsigned int> gui::Icons::get(Icon icon)
{
switch (icon)
{
case gui::Icons::CHECKBOX:
return { _checkbox_icon, _checkbox_icon_size };
break;
case gui::Icons::RADIO_BUTTON_MARK:
return { _radio_button_mark_icon, _r... |
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "ConnectionFromClient.h"
#include <ConfigServer/ConfigClientEndpoint.h>
#include <LibCore/ConfigFile.h>
#include <LibCore/FileWatcher.h>
#include <LibCore/Timer.h>
namespace ConfigServer {
static H... |
#include "Logger.hpp"
#include "AmxDebugManager.hpp"
#include "LogManager.hpp"
#include "LogConfig.hpp"
#include "amx/amx2.h"
#include "utils.hpp"
#include <fmt/format.h>
#include <fmt/time.h>
#include <ctime>
Logger::Logger(std::string module_name) :
_moduleName(std::move(module_name)),
_logFilePath(LogConfig::Ge... |
// Copyright 2020 The XLS Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
/** Solution to Programming Challenge -
to sum the elements of Array
*/
#include<iostream>
using namespace std;
int main()
{
int A[10], sum = 0, i;
cout<<"\nEnter the Elements..";
for(i=0;i<10;i++)
cin>>A[i];
for(i=0;i<10;i++)
sum += A[i];
cout<<"The Sum is.."<<sum<<endl;
... |
//
// Created by Shujian Qian on 2020-11-17.
//
#include "nasoq/nasoq_step.h"
#include <cstdio>
#include <iostream>
namespace nasoq {
NasoqStep::NasoqStep(size_t H_size, int *Hp, int *Hi, double *Hx, double *q_in,
size_t B_row, size_t B_col, int *Bp, int *Bi,
dou... |
#include "fitpackpp/BSplineCurve.h"
#include "FCMangle.h"
#include <cmath>
#include <stdexcept>
extern "C"
{
void curfit(int* iopt, int* m, double* x, double* y, double* w, double* xb, double* xe, int* k,
double* s, int* nest, int* n, double* t, double* c, double* fp, double* wrk, int* lwrk,
int* ... |
///////////////////////////////////////////////////////////////////////////////
// This source file is part of Hect.
//
// Copyright (c) 2016 Colin Hill
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal ... |
#include "sc2api/sc2_map_info.h"
namespace sc2 {
ImageData::ImageData () :
width(0),
height(0),
bits_per_pixel(0)
{
}
GameInfo::GameInfo () :
width(0),
height(0)
{
}
} |
// SPDX-license-identifier: Apache-2.0
// Copyright © 2021 Intel Corporation
#pragma once
#include <cassert>
#include <cstdint>
#include <memory>
#include <string>
#include <tuple>
#include <unordered_map>
#include <variant>
#include <vector>
#include <optional>
#include "locations.hpp"
namespace Frontend::AST {
c... |
/**
* @file
* @author __AUTHOR_NAME__ <mail@host.com>
* @copyright 2021 __COMPANY_LTD__
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
*/
#ifndef ZEN_CORE_CONFIG_IMAGES_HPP
#define ZEN_CORE_CONFIG_IMAGES_HPP
#include <string>
namespace Zen {
/*
* Config object containing various so... |
#include <lemon/syscall.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <dirent.h>
#include <limits.h>
#include <fcntl.h>
#include <string.h>
#include <bits/ensure.h>
#include <mlibc/all-sysdeps.hpp>
#include <mlibc/debug.hpp>
namespace mlibc{
typedef struct {
dev_t st_dev;
ino_t st_in... |
/*
* Comba Multiplication and Squaring
*
* This file was automatically generated by ./src/scripts/comba.py on 2021-05-01
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/internal/mp_core.h>
namespace Botan {
/*
* Comba 4x4 Squaring
*/
void bigint_comba_sqr4(word z[8], const... |
#include <tc/crypto/Sha256Generator.h>
const std::array<byte_t, tc::crypto::Sha256Generator::kAsn1OidDataSize> tc::crypto::Sha256Generator::kAsn1OidData = {0x30, 0x31, 0x30, 0x0D, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0x00, 0x04, 0x20};
void tc::crypto::GenerateSha256Hash(byte_t* has... |
#include "db-engine/berkeley/MojDbBerkeleyDefs.h"
#include <sys/statvfs.h>
#include <db.h>
// DB
const MojUInt32 defs::MojDbOpenFlags = DB_THREAD /*| DB_MULTIVERSION*/; // NOTE: MULTIVERSION disabled due to leaked transactions
const MojUInt32 defs::MojDbGetFlags = DB_READ_COMMITTED;
// LOG
const MojUInt32 defs::MojLog... |
/**
* Autogenerated by Thrift for src/module.thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "thrift/compiler/test/fixtures/mcpp2-compare/gen-cpp2/ParamServiceAsyncClient.h"
#include <thrift/lib/cpp2/gen/client_cpp.h>
namespace some { namespace valid { names... |
/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <poll.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include "V4l2.h"
static int get_pixel_depth(unsigned int fmt)
{
int depth = 0;
switch (fmt)
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.