text stringlengths 7 961k |
|---|
#ifndef MARTIN_TEST_TOKEN_ACCESS_TYPES
#define MARTIN_TEST_TOKEN_ACCESS_TYPES
#include "testing.hpp"
#include <generators/accesstypes.hpp>
#include <tokens.hpp>
#include "helpers/validatetree.hpp"
namespace Martin {
class Test_token_accesstypes : public Test {
public:
std::string GetName() const ov... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/vr/vr_device_manager.h"
#include <utility>
#include "base/bind.h"
#include "base/memory/singleton.h"
#include "build/build_con... |
/*
* Copyright 2015 Georgia Institute of Technology
*
* 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 applicab... |
//
// Network.hpp
// NeuralNetwork
//
// Created by cmh on 2017. 10. 1..
// Copyright ยฉ 2017๋
cmh. All rights reserved.
//
#ifndef Matrix_hpp
#define Matrix_hpp
#include <iostream>
#include <vector>//vector์ pair๋ฅผ ์ธ์์๊ฒ ํ๋ค.
#include <cmath>//exp๋ log, pow๊ฐ์ ํจ์๋ค์ด ์๋ค.
#include <random>//๋๋คํจ์ ๋ง๋ค๋ ํ์ํ include
#includ... |
//
// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#include <MaterialXRender/ImageHandler.h>
#include <MaterialXGenShader/Shader.h>
#include <MaterialXGenShader/Util.h>
#include <iostream>
namespace MaterialX
{
const string IMAGE_PRO... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin developers
// Copyright (c) 2009-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-li... |
#include <sys/socket.h>
#include <unistd.h>
#include <sys/un.h>
#include <errno.h>
#include "LocalReceiver.h"
//******************************************************************************
// FUNCTION: LocalReceiver::LocalReceiver
//******************************************************************************
Loc... |
// Copyright (c) YugaByte, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... |
/*
* UAVCAN data structure definition for libuavcan.
*
* Autogenerated, do not edit.
*
* Source file: /home/lws/Firmware/src/drivers/uavcan/libuavcan/dsdl/uavcan/protocol/file/45.GetInfo.uavcan
*/
#ifndef UAVCAN_PROTOCOL_FILE_GETINFO_HPP_INCLUDED
#define UAVCAN_PROTOCOL_FILE_GETINFO_HPP_INCLUDED
#include <uavca... |
/*******************************************************************************
* Copyright 2019-2022 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://www.apa... |
// CLASSIFICATION: UNCLASSIFIED
#include <string.h>
#include "GEOREFCoordinates.h"
using namespace MSP::CCS;
GEOREFCoordinates::GEOREFCoordinates() :
CoordinateTuple( CoordinateType::georef ),
_precision( Precision::tenthOfSecond )
{
strncpy(_GEOREFString, "NGAA0000000000", 20);
}
GEOREFCoordinates::GEOREF... |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2005 Eric Niebler
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
====... |
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
template <typename A, typename B>
ostream &operator<<(ostream &os, const pair<A, B> &p) { return os << '(' << p.first << ", " << p.second << ')'; }
template <typename T_container, typename T = typename enabl... |
/******************************************************************************
*
* Project: PROJ
* Purpose: Test ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, ... |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/x/active_window_watcher_x.h"
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#include "ui/base/gtk/gtk_compat.h"
#include "ui/base/gtk/g... |
#include "Tools.h"
#include "MathSAT.h"
#include "Minisatp.h"
#include "SMTRAT.h"
#include "SMTRAT_OPB.h"
#include "Z3.h"
#include <benchmax/settings/SettingsParser.h>
#include <benchmax/logging.h>
#include <regex>
namespace benchmax {
template<typename T>
void createTools(const std::vector<std::filesystem::path>& ... |
#include "ep/cpp/component/resource/model.h"
#include "modelimpl.h"
#include "renderresource.h"
#include "ep/cpp/kernel.h"
#include "materialimpl.h"
namespace ep {
Variant epToVariant(const RenderList &r)
{
Variant::VarMap::MapType map;
map.insert("type", r.type.v);
map.insert("firstVertex", r.firstVertex);
m... |
/*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... |
// (c) Reliable Software, 2001
#include "precompiled.h"
#include "BrushBox.h"
#include <Graph/Brush.h>
#include <Graph/Pen.h>
#include <Graph/CanvTools.h>
#include <Dbg/Assert.h>
BrushBox::BrushBox ()
{
_bkgColor = Win::Color::Window ();
int intensity = _bkgColor.R () + _bkgColor.G () + _bkgColor.B ();
if (intensit... |
// Copyright 2004-present Facebook. All Rights Reserved.
#include "fboss/qsfp_service/module/cmis/CmisModule.h"
#include <boost/assign.hpp>
#include <cmath>
#include <iomanip>
#include <string>
#include "fboss/agent/FbossError.h"
#include "fboss/agent/platforms/common/PlatformMode.h"
#include "fboss/lib/usb/Transceiv... |
// This version targets C++11 and later.
//
// Copyright (c) 2016-2018 Martin Moene.
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// expected lite is based on:
// A proposal to add a utility class to represen... |
double dac(point_t *p, int l, int r) {
double d = 10e100;
if (r - l <= 3) {
for (int i = l; i <= r; ++i) {
for (int j = i + 1; j <= r; ++j) {
d = min(d, dist2(p[i], p[j]));
}
}
sort(p + l, p + r + 1, cmpY);
} else {
int mid = (l + r) / 2;
d = min(dac(p, l, mid), dac(p, mid + 1, r));
inplace_mer... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any per... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
/*
* kmp_global.cpp -- KPTS global variables for runtime support library
*/
//===----------------------------------------------------------------------===//
//
// 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... |
#include <catboost/libs/helpers/dynamic_iterator.h>
#include <util/generic/algorithm.h>
#include <util/generic/array_size.h>
#include <util/generic/xrange.h>
#include <util/system/types.h>
#include <library/unittest/registar.h>
using namespace NCB;
Y_UNIT_TEST_SUITE(DynamicIterator) {
Y_UNIT_TEST(TStaticItera... |
#include "mvDynamicTexture.h"
#include "mvLog.h"
#include "mvItemRegistry.h"
#include "mvPythonExceptions.h"
#include "mvUtilities.h"
namespace Marvel {
void mvDynamicTexture::InsertParser(std::map<std::string, mvPythonParser>* parsers)
{
mvPythonParser parser(mvPyDataType::UUID, "Undocumented function", { "Text... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkHyperTreeGridToUnstructuredGrid.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) 2017 christmann informationstechnik + medien GmbH & Co. KG
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal... |
/*
* Copyright 2012 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkLightingImageFilter.h"
#include "SkBitmap.h"
#include "SkColorPriv.h"
#include "SkReadBuffer.h"
#include "SkWriteBuffer.h"
#include "SkReadBuff... |
//misaka will carry me to cm
#include <iostream>
#include <cstdio>
#include <cstring>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <array>
#include <tuple>
#include <set>
#include <map>
#define ll long long
#define lb long double
#define sz(vec) ((int)(vec.size()))
#define all(... |
#include "ContactListener.h"
#include "Cell.h"
#include "World.h"
ContactListener::ContactListener(World* world)
:EventHandler(world)
{
//mEventHandler = world->getEventHandler();
}
ContactListener::~ContactListener()
{
}
void ContactListener::Add(const b2ContactPoint* point)
{
}
void ContactListener::Persis... |
#ifndef MAHOTAS_NUMPYPP_NUMPY_HPP_INCLUDE_GUARD_LPC_
#define MAHOTAS_NUMPYPP_NUMPY_HPP_INCLUDE_GUARD_LPC_
/* Copyright 2010-2014 (C)
* Luis Pedro Coelho <luis@luispedro.org>
* License: MIT
*/
#include <complex>
#include <Python.h>
#include <numpy/ndarrayobject.h>
namespace numpy {
template <typename T>
inline
np... |
/* Copyright 2015 The TensorFlow 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 a... |
#include "cru/ui/render/TextRenderObject.hpp"
#include "../Helper.hpp"
#include "cru/common/Logger.hpp"
#include "cru/platform/graphics/Factory.hpp"
#include "cru/platform/graphics/TextLayout.hpp"
#include "cru/platform/graphics/util/Painter.hpp"
#include "cru/ui/DebugFlags.hpp"
#include <algorithm>
#include <limits>... |
#include <vector>
#include "KeyListener.h"
std::vector<KeyListener*> KeyListener::listeners = {}; |
/*
* Copyright 2017 Sony Corporation
*/
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "easyhttpcpp/common/Cache.h"
#include "easyhttpcpp/EasyHttp.h"
#include "easyhttpcpp/Interceptor.h"
#include "easyhttpcpp/HttpException.h"
#include "EasyHttpCppAssertions.h"
#include "MockInterceptor.h"
#include "Eas... |
/*******************************************************************************
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#pragma once
#include <capabilities/types.hpp>
#include "blob_to_meta_converter.... |
// 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 "third_party/blink/renderer/core/fetch/headers.h"
#include "third_party/blink/renderer/bindings/core/v8/byte_string_sequence_sequence_or_byte_st... |
/*!
* This file is part of GPBoost a C++ library for combining
* boosting with Gaussian process and mixed effects models
*
* Original work Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Modified work Copyright (c) 2020 Fabio Sigrist. All rights reserved.
*
* Licensed under the Apache License Version 2... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: P2PData.proto
#include "P2PData.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <goo... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_char_cpy_44.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193.label.xml
Template File: sources-sink-44.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate memory f... |
#include "utils/thread.h"
#include <SDL.h>
#include <set>
#include "appfat.h"
#include "utils/log.hpp"
#include "utils/stubs.h"
namespace devilution {
static int SDLCALL ThreadTranslate(void *ptr)
{
auto handler = (void (*)())ptr;
handler();
return 0;
}
SDL_Thread *CreateThread(void (*handler)(), SDL_threadID... |
/*
* VMMLib - Tensor Classes
*
* @author Susanne Suter
*
* Quantized version of Tucker3 tensor
* - 16bit linear factor matrices quantization
* - 8bit logarithmic core tensor quantization
*
* reference:
* - Suter, Iglesias, Marton, Agus, Elsener, Zollikofer, Gopi, Gobbetti, and Pajarola:
* "Interactive M... |
//
// Created by chao on 25/07/19.
//
// jetsonTX2 I2C ๅพไธบ007่ฝฝๆฟ
// CANๅฃ -> Signal ๆๅฑๆฅๅฃ ADS1115ๆจกๅ
//----------->---------------------------------
// i2c0 -> I2C_CLK1 -> Pin11 -> SCL
// i2c0 -> I2C_DAT1 -> Pin12 -> SDA
// -> 5V -> Pin20 -> VCC
// -> GND -> P... |
#include <memory>
#include <iostream>
#include "mesh.h"
#include "transform.h"
#include "globals.h"
namespace gl {
void Mesh::generate_buffers(){
glGenVertexArrays(1, &vertex_array);
glGenBuffers(1, &vertex_buffer);
glGenBuffers(1, &normal_buffer);
glGenBuffers(1, &index_buffer);
}
void Mesh::destroy_buffers(){
... |
#ifndef TEXTNET_LAYER_HINGELOSS_LAYER_INL_HPP_
#define TEXTNET_LAYER_HINGELOSS_LAYER_INL_HPP_
#include <iostream>
#include <fstream>
#include <sstream>
#include <set>
#include <mshadow/tensor.h>
#include "../layer.h"
#include "../op.h"
namespace textnet {
namespace layer {
template<typename xpu>
class HingeLossLaye... |
//
// Copyright (c) 2016-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)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header ... |
<?hh // strict
namespace Zynga\Framework\StorableObject\Collections\Map\V1;
use Zynga\Framework\StorableObject\V1\Interfaces\ExportInterface;
use Zynga\Framework\StorableObject\V1\Interfaces\StorableObjectInterface;
use Zynga\Framework\StorableObject\V1\Fields\Generic as FieldsGeneric;
use Zynga\Framework\StorableOb... |
//Helper functions for drawing aligned text (header)
// Andreas Unterweger, 2017-2022
//This code is licensed under the 3-Clause BSD License. See LICENSE file for details.
#pragma once
#include <opencv2/core.hpp>
#include "colors.hpp"
namespace imgutils
{
static_assert(sizeof(unsigned char) == 1, "unsigned char m... |
#include "BoatShell_B.h"
BoatShell_B::BoatShell_B()
{
BaseMass = 200;
BaseFraction = 30;
rotor.reset(new WaterRotor(30));
} |
/*
* Copyright 2011-2013 Blender 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 ag... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php... |
// 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 "config.h"
#include "platform/graphics/paint/DisplayItemList.h"
#include "core/layout/LayoutTestHelper.h"
#include "core/layout/LayoutText.h"
#i... |
/* /////////////////////////////////////////////////////////////////////////
* File: test/unit/test.unit.bec.COMErrorObject/test.unit.bec.COMErrorObject.cpp
*
* Purpose: Implementation file for the test.unit.be.COMErrorObject project.
*
* Created: 1st January 2008
* Updated: 22nd March 2010
*
... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* 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 noti... |
//
// Created by wangrl on 2021/4/8.
//
#include "include/system/MutexImpl.h"
namespace sf {
namespace priv {
MutexImpl::MutexImpl() {
// Make it recursive to follow the expected behavior.
pthread_mutexattr_t attribute;
pthread_mutexattr_init(&attribute);
... |
// Copyright (c) 2016 Klemens D. Morgenstern
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_PROCESS_DETAIL_WINDOWS_ASIO_FWD_HPP_
#define BOOST_PROCESS_DETAIL_WINDOWS_ASIO_FWD_HPP_
#include <memor... |
#include "social.h"
using namespace roo_display;
// Image file ic_round_18_social_6_ft_apart 18x18, 4-bit Alpha, RLE, 98 bytes.
static const uint8_t ic_round_18_social_6_ft_apart_data[] PROGMEM = {
0x77, 0x78, 0x12, 0x72, 0x68, 0x12, 0x72, 0x68, 0x1D, 0xFD, 0x68, 0x1D, 0xFD, 0x68, 0x1D, 0xFD,
0x68, 0x1D, 0xFD, 0... |
// Copyright 2021 Petrova Kseniya <ksyushki5@yandex.ru>
#include "cashe.hpp"
#include <iomanip>
#include <string>
#include <algorithm>
Cashe::Cashe() {
for (int size = 0.5 * cache_size[0]; size <= 1.5 * cache_size[2];
size *= 2) {
mem_exp.push_back(size);
}
}
void Cashe::direct_type() {
travel_ty... |
/**
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
#include<iostream>
using namespace std;
class Obj{
private:
string s;
public:
Obj(){}// what will happend if we remove this line?
Obj(string _s){
s=_s;
}
friend ostream& operator<<(ostream& out, const Obj& A);
};
ostream& operator<<(ostream& out, const Obj& A) {
return out<<" "<<A.s... |
#include <pybind11/pybind11.h>
namespace py = pybind11;
using namespace pybind11::literals;
PYBIND11_MODULE(ex2, m) {
m.def("add",
[](int a, int b) { return a + b; },
"Add two integers.",
py::arg("a") = 3,
py::arg("b") = 4);
m.def("mult",
[](int a, int b) {... |
/*
* Copyright (c) 2021, Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/String.h>
#include <AK/Vector.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main([[maybe_unused]] int argc, [[maybe_unused]] char** argv)
{
if ... |
/* Copyright (c) 2014, Nordic Semiconductor ASA
*
* 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, mer... |
// 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: System.Enum
#include "System/Enum.h... |
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include <lib/fit/result.h>
#include <unittest/unittest.h>
namespace {
namespace example1 {
fit::result<int, std::string> divide(int di... |
// Copyright 2019 The TCMalloc 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
// Copyright (C) 2012-2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <asiolink/io_ad... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: FireworksController
#include "GlobalNamespace/FireworksController.hpp"
// Inc... |
๏ปฟ////////////////////////////////////////////////////////////////////////////////
// Description/UIDescriptionTypes.cpp (Leggiero/Modules - LegacyUI)
//
// Common implementation for UI Description types
////////////////////////////////////////////////////////////////////////////////
// My Header
#include "UIDescriptio... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactiondesc.h"
#i... |
/**********************************************************************
// @@@ 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 <iostream>
using namespace std;
int main()
{
int a = 0;
int b = 0;
cin >> a >> b;
if (a % 2 != 0) {
++a;
}
for (int i = a; i <= b; i += 2) {
cout << i << ' ';
}
cout << endl;
return 0;
}
/*
#include <iostream>
using namespace std;
int main() {
int... |
// -------------------------------------------------------------------------
//
// -------------------------------------------------------------------------
#include "NFMsgDefine.h"
//bool RecordToString( NFIRecord* pRecord, NFMsg::ObjectRecordBase& recordBase, E_CHECK_TYPE nCheckType, const bool bCheck )
//{
// ... |
// Copyright 2015 The Bazel 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 appl... |
/***************************************************************************
* Copyright (C) Codeplay Software Limited
* 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.ap... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/common/imagiff.h
// Purpose: wxImage handler for Amiga IFF images
// Author: Steffen Gutmann, Thomas Meyer
// RCS-ID: $Id: imagiff.cpp 61724 2009-08-21 10:41:26Z VZ $
// Copyright: (c) Steffen Gutmann, 2002... |
// Copyright (c) 2017-2020, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
/*!
******************************************************************************
*
* \file MapCollection.hpp
*
*... |
/*
* Copyright: JessMA Open Source (ldcsaa@gmail.com)
*
* Author : Bruce Liang
* Website : https://github.com/ldcsaa
* Project : https://github.com/ldcsaa/HP-Socket/HP-Socket
* Blog : http://www.cnblogs.com/ldcsaa
* Wiki : http://www.oschina.net/p/hp-socket
* QQ Group : 44636872, 75375912
*
* Licensed under... |
/*****************
Trie Tree
*****************/
#include "Trie.h"
#include <iostream>
#include <string>
#include <algorithm>
#include <list>
/* Trie Node */
TrieNode::TrieNode()
{
for(int i = 0; i < alphabetSize; i++)
{
children[i] = nullptr;
}
isEndOfWord = false;
}
TrieNode::~TrieNode(... |
#ifdef PEGASUS_OS_DARWIN
#ifndef __UNIX_FLOWSERVICE_PRIVATE_H
#define __UNIX_FLOWSERVICE_PRIVATE_H
#endif
#endif |
// 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 PIVX developers
// Copyright (c) 2017 The TNX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or ... |
// Copyright (c) 2019, Lawrence Livermore National Security, LLC.
// See top-level LICENSE file for details.
// Cupti.cpp
// Implementation of Cupti service
#include "CuptiEventSampling.h"
#include "caliper/CaliperService.h"
#include "caliper/Caliper.h"
#include "caliper/SnapshotRecord.h"
#include "caliper/common/... |
#include "MsnhViewerNodeSelect.h"
namespace MsnhViewer
{
QString NodeSelect::selectNode = "null";
} |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtai... |
// Copyright (c) 2014-2018, The Mask Project
// 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
// ... |
/*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... |
// Copyright 2018 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.
#ifndef V8_INTL_SUPPORT
#error Internationalization is expected to be enabled.
#endif // V8_INTL_SUPPORT
#include "src/objects/js-plural-rules.h"
#in... |
#include <bits/stdc++.h>
using namespace std;
class Teacher
{
public:
string name;
string age;
void print()
{
cout << " Teacher" << endl;
}
}; |
//==============================================================================
//
// CommandHandler.hpp:
//
//
// Handles commands
//
//
//==============================================================================
#if !defined(SMARTASS_COMMANDHANDLER_HPP_INCLUDED)
# define SMARTASS_COMMANDHANDLER_HPP_INCLU... |
#include <fstream>
#include <iostream>
#include <vector>
#include <bitset>
#include <string.h>
#include <algorithm>
#include <iomanip>
#include <math.h>
#include <time.h>
#include <stdlib.h>
#include <set>
#include <map>
#include <string>
#include <queue>
#include <deque>
#include <cassert>
using namespace std;
const... |
///////////////////////////////////////////////////////////////////////////////
// //
// DxilOperations.cpp //
// Copyright (C) Microsoft Corporation. All rights reserved. //
... |
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/syslog/cpp/macros.h>
#include <ostream>
#include <string>
#include "src/developer/shell/interpreter/src/code.h"
#include "src/developer/she... |
๏ปฟ#include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
template <typename R>
struct VirtFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
{
const Virt... |
// Copyright 2021 Aloe, 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 writing, ... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011-2014, Willow Garage, Inc.
* Copyright (c) 2014-2016, Open Source Robotics Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
// Copyright 2020 The TensorFlow Runtime 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 ... |
#include "IOUtil.h"
void SwapBytes(int16& rVal)
{
rVal = (((rVal & 0x00FF) << 8) |
((rVal & 0xFF00) >> 8));
}
void SwapBytes(uint16& rVal)
{
rVal = (((rVal & 0x00FF) << 8) |
((rVal & 0xFF00) >> 8));
}
void SwapBytes(int32& rVal)
{
rVal = (((rVal & 0x000000FF) << 24) |
((r... |
// stdafx.cpp : source file that includes just the standard includes
// TextFormatVerifier.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.