text stringlengths 5 1.04M |
|---|
// Copyright (c) 2007-2011 Hartmut Kaiser
// Copyright (c) 2011 Bryce Adelstein-Lelbach
//
// 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)
#if !defined(HPX_ECFE19F9_A826_4AE1_AC7C_33DC5714CF0B)
#define HPX... |
//==============================================================================
///
/// File: ScriptingStringSwitcher.cpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE.txt', which is part ... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/* Copyright (C) 2020 European Spallation Source, ERIC. See LICENSE file */
//===----------------------------------------------------------------------===//
///
/// \file MainWindow.cpp
///
//===----------------------------------------------------------------------===//
#include "ui_MainWindow.h"
#include <MainWi... |
#pragma once
#ifndef _PYTHON_SEQUENCE_ITERATOR_HPP
#define _PYTHON_SEQUENCE_ITERATOR_HPP
#include "converters.hpp"
#include "core_reflection/object_handle.hpp"
#include "core_variant/collection.hpp"
#include "wg_pyscript/py_script_object.hpp"
#include <type_traits>
namespace wgt
{
namespace PythonType
{
/**
* This... |
/*
EngineAll.cpp
Written by Matthew Fisher
See EngineAll.h for a defintion of all files included here.
*/
//All source files include Main.h
#include "Main.h"
#include "EngineAll\Core\Stdhdr.cpp"
#include "EngineAll\Core\UnicodeString.cpp"
#include "EngineAll\Core\String.cpp"
#include "EngineAll\Core\OutputDataStream... |
/*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... |
#include <iostream>
#include <algorithm>
#include <string>
#include <bitset>
//#define CONTENT 16895
////14-5
//#define BUFFER 16384
//#define LOOK 34
//
//#define DISTANCE 14//2^14=16384
//#define LENGTH 5//2^5+2=34
//14-4
#define BUFFER 16384
#define LOOK 6
#define DISTANCE 14//2^14=16384
#defi... |
// Copyright 2005, Google 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of con... |
/*
* Copyright (c) 2014-2015 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* 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/LICE... |
/*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
*******************************************************************************/
#include <taichi/visual/tex... |
#pragma once
// We are using an older version of DirectX headers which causes
// "warning C4005: '...' : macro redefinition"
#pragma warning(push)
#pragma warning(disable: 4005)
#include <d3d11.h>
#include <d3dx11.h>
#pragma warning(pop)
#include <cstdint>
// Used by a scene to access necessary renderer internals
c... |
/*
@ 0xCCCCCCCC
*/
#include <iostream>
#include <functional>
#include "signals.h"
void foo(int i, const int& j, int&& k)
{
std::cout << "foo" << std::endl;
}
struct Foo {
static void sfoo(int i, const int& j, int&& k)
{
std::cout << "Foo::sfoo" << std::endl;
}
void foo(int i, const int... |
// Copyright (c) OpenMMLab. All rights reserved.
#include "mmdeploy/core/utils/device_utils.h"
#include "mmdeploy/core/utils/formatter.h"
#include "mmdeploy/preprocess/transform/pad.h"
#include "ppl/cv/cuda/copymakeborder.h"
using namespace std;
using namespace ppl::cv::cuda;
namespace mmdeploy {
namespace cuda {
c... |
// Copyright Vladimir Prus 2002-2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_ERRORS_VP_2003_01_02
#define BOOST_ERRORS_VP_2003_01_02
#include <boost/program_options/config.hpp>
#include... |
namespace mlpack {
namespace hpt {
/*! @page hpt Hyper-Parameter Tuning
@section hptintro Introduction
\b mlpack implements a generic hyperparameter tuner that is able to tune both
continuous and discrete parameters of various different algorithms. This is an
important task---the performance of many machine learnin... |
/* Copyright (c) 2008-2012, Avian Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
There is NO WARRANTY for this software. See l... |
/* Copyright 2020 Stanford, Tsinghua
*
* 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... |
/*
* 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 ma... |
#include "muduo/base/Timestamp.h"
#include <sys/time.h>
#include <stdio.h>
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
using namespace muduo;
static_assert(sizeof(Timestamp) == sizeof(int64_t),
"Timestamp is same size as int64_t");
string Timestamp::toStr... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*=============================================================================
**
** Source: GetFileAttributesA.c
... |
/*
* The MIT License
*
* Copyright (c) 1997-2019 The University of Utah
*
* 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
* right... |
//*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// LICENSE: LGPL see top level license.txt
//
// Author: Garrett Potts (gpotts@imagelinks.com)
//
//*************************************************************************
// $Id: ossimDateProperty.cpp 9094... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkMPEG2Writer.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software i... |
#include "k-framework.h"
kfw::core::HackManager* kfw::core::Factory::hackManager = nullptr;
kfw::core::HookManager* kfw::core::Factory::hookManager = nullptr;
kfw::core::HookManager * kfw::core::Factory::getDefaultHookManager()
{
if (hookManager == nullptr) hookManager = new HookManager();
return hookManager;... |
/*
* .file advanced/spectra/visualisation.cpp
* .brief Implements the canvas responsible for document visualisation
*
* @author Matus Chochlik
*
* Copyright 2012-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__strdup_wchar_t_33.cpp
Label Definition File: CWE401_Memory_Leak__strdup.label.xml
Template File: sources-sinks-33.tmpl.cpp
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: Allocate data using wcsdup()
* GoodSource: Allocate data on ... |
#include "3ds.hpp"
#include <iostream>
bool running = true;
int main(int argc, char* argv[]) {
RSGL::init();
RSGL::window topScreen = RSGL::createWindow(TOP_SCREEN, 0,0,SCREEN_WIDTH,SCREEN_LENGTH, {255,255,255});
Event e;
RSGL::color c = {255,0,0};
RSGL::rect r = {100,100,50,50};
while (running) {
e.Chec... |
// 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/searchlib/query/tree/querybuilder.h>
#include <vespa/searchlib/query/tree/simplequery.h>
#include <vespa/searchlib/query/tree/stackdumpcreator.h>
#include... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "openvino/op/util/framework_node.hpp"
#include <gtest/gtest.h>
#include "openvino/opsets/opset8.hpp"
#include "util/type_prop.hpp"
using namespace std;
TEST(type_prop, framework_node) {
auto param = std::make_shared... |
/*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... |
// Copyright 2006-2019 Flenniken
// All Rights Reserved.
#include "stdafx.h"
#include "people.h"
#include "Klondike.h"
#include <vector>
#include "Game.h"
#include <shlwapi.h>
#include <gdiplus.h>
#include "Stats.h"
#include "Options.h"
#include <WindowsX.h>
#include "Utils.h"
#include <commctrl.h>
#include <algorithm... |
/* mbed Microcontroller Library
* Copyright (c) 2018-2020 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* 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.o... |
/*=============================================================================
Copyright (c) 2011 RiSK (sscrisk)
https://github.com/sscrisk/CEL---ConstExpr-Library
Copyright (c) 2011-2017 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version ... |
//-----------------------------------------------------------------------------
// boost mpl/arg_fwd.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2001-02
// Peter Dimov, A... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Copyright (c) 2017-2019 The Raven Core developers
// Copyright (c) 2020-2021 The Foxdcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
// File: ILStubCache.cpp
//
//
#include "common.h"
#include "ilstubcache.h"
#include "dllimport.h"
#include ... |
/******************************************************************************
*
* Project: GDAL
* Purpose: Fuzzer
* Author: Even Rouault, even.rouault at spatialys.com
*
******************************************************************************
* Copyright (c) 2017, Even Rouault <even.rouault at spatia... |
#ifndef UNIT_TEST
#ifdef ARDUINO
#include <lcd-rotary-menu.h>
#include <lcd-rotary-menuitem.h>
#include <sys-debug.h>
// rotary menu example
LCDRotaryMenu *menu;
// check i2c lcd address using i2c scanner
#define LCD_ADDR 0x27
#define LCD_COLS 20
#define LCD_ROWS 4
// PB5
#define ROT_A_PIN 4
// PB3
#define ROT_... |
/*
* Copyright (C) 2013 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
//
// Common non-engine code/data for EDuke32 and Mapster32
//
#include "ns.h" // Must come before everything else!
#include "compat.h"
#include "build.h"
#include "baselayer.h"
#include "palette.h"
#include "gamecvars.h"
#include "cmdlib.h"
#include "rts.h"
#include "gamecontrol.h"
#include "common.h"
#include "co... |
// preprocessed version of 'boost/mpl/vector_c.hpp' header
// see the original for copyright information
namespace boost {
namespace mpl {
template<
typename T
, long C0 = LONG_MAX, long C1 = LONG_MAX, long C2 = LONG_MAX
, long C3 = LONG_MAX, long C4 = LONG_MAX, long C5 = LONG_MAX
, long C6 = LONG_M... |
// Parameters for Centauro Planner
// Author: Tobias Klamt <klamt@ais.uni-bonn.de
// 2016
#include <planning_abstraction_net/priority_queue_discr_pose.h>
namespace planning_abstraction_net
{
typedef fibonacci_heap<std::pair<Eigen::Vector3i, float>, compare<heap_compare_discr_pose>> fib_heap;
void PriorityQueueDiscr... |
#include <algorithm>
#include <iostream>
#include <cstring>
#include <climits>
#include <cstdio>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <queue>
#include <stack>
#include <map>
#include <set>
#define Re register
#define LL long long
#define U unsigned
#define FOR(i,a,b) for(Re ... |
/* The smooth Class Library
* Copyright (C) 1998-2021 Robert Kausch <robert.kausch@gmx.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of "The Artistic License, Version 2.0".
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRAN... |
#include "XrdBlockFetcher.h"
#include "XrdClient/XrdClient.hh"
#include <pcrecpp.h>
#include <memory>
#include <string>
#include <list>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fcntl.h>
#include <unistd.h>
//===========================================================... |
/* A Bison parser, made by GNU Bison 3.7.6. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License a... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: OVRPlugin
#include "GlobalNamespace/OVRPlugin.hpp"
// Completed inclu... |
// Optimise
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "/home/shahraaz/bin/debug.h"
#else
#define db(...)
#endif
using ll = long long;
#define f first
#define s second
#define pb push_back
#define all(v) v.begin(), v.end()
const int NAX = 2e5 + 5, MOD = 1000000007;
void solveCase()
{
in... |
/* Copyright 2017-2018 PaGMO development team
This file is part of the PaGMO library.
The PaGMO library is free software; you can redistribute it and/or modify
it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include ... |
/*
* Copyright 2011, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Oliver Tappe <zooey@hirschkaefer.de>
* Ingo Weinhold <ingo_weinhold@gmx.de>
*/
#include <package/PackageInfoSet.h>
#include <new>
#include <Referenceable.h>
#include <AutoDeleter.h>
#inc... |
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
// D... |
/*
* sgwsOverloadControlInformationInCreateBearerResponse.cpp
*
* Revisit header later
* Author: hariharanb
*/
#include "sgwsOverloadControlInformationInCreateBearerResponse.h"
#include "manual/gtpV2Ie.h"
#include "gtpV2IeFactory.h"
#include "sequenceNumberIe.h"
#include "metricIe.h"
#include "epcTimerIe.h"
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE590_Free_Memory_Not_on_Heap__delete_struct_declare_13.cpp
Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.nonpointer.label.xml
Template File: sources-sink-13.tmpl.cpp
*/
/*
* @description
* CWE: 590 Free Memory Not on Heap
* BadSource: declare Da... |
#include <cstdio>
#include <iostream>
#include <queue>
#include <climits>
using namespace std;
int top, numnodes;
struct node {
int flow, dst;
node *next, *rev;
} pool[12580], *H[12580];
void Edge(int from, int to, int cap) {
node *pA = &pool[top++], *re = &pool[top++];
pA->dst = to;
pA->flow = cap;
pA->next = H... |
#include "main.hpp"
#include "crc32.hpp"
#include <iomanip>
#include <utility>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <cstddef>
/**
* Parse a line of code, replacing the single quoted string
* in the macro SID('any-string'), by the corresponding hashed
* integer value,... |
// Copyright 2017 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 "components/viz/host/host_frame_sink_manager.h"
#include <utility>
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/con... |
//
// TypeCastError.cpp
// Bump
//
// Created by Christian Noon on 1/4/13.
// Copyright (c) 2013 Christian Noon. All rights reserved.
//
// Bump headers
#include <bump/TypeCastError.h>
namespace bump {
TypeCastError::TypeCastError(const String& description, const String& location) throw() :
RuntimeError("bump::Type... |
#include "Poller.h"
#include "Logger.h"
#include "Channel.h"
#include "Timestamp.h"
#include <set>
#include <vector>
#include <unistd.h>
#include <string.h>
#include <sys/epoll.h>
namespace buzz
{
const int kReadEvent = EPOLLIN;
const int kWriteEvent = EPOLLOUT;
class PollerEpoll : public Poller
{
... |
// Copyright 2019 The JIMDB 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... |
//--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... |
#include "logging.h"
#include "config.h"
#include "environment.h"
#include <spdlog/sinks/stdout_color_sinks.h>
namespace util {
static std::shared_ptr<spdlog::logger> logger;
static bool isInitialised = false;
void initLogging() {
if(isInitialised) {
return;
}
logger... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* DiamondTrap.cpp :+: :+: :+... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime/model/DeleteAttendeeRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Chime::Model;
using namespace Aws::Utils::Json;
using names... |
/**
* @file
* @brief Summoning spells and other effects creating monsters.
**/
#include "AppHdr.h"
#include "spl-summoning.h"
#include <algorithm>
#include <cmath>
#include "act-iter.h"
#include "areas.h"
#include "artefact.h"
#include "cloud.h"
#include "colour.h"
#include "coordit.h"
#include "corpse.h"
#includ... |
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: 2016 Hotride
#include "SkillGroup.h"
#include "Managers/SkillsManager.h"
CSkillGroupObject::CSkillGroupObject()
{
memset(m_Items, 0xFF, sizeof(m_Items));
}
CSkillGroupObject::~CSkillGroupObject()
{
}
uint8_t CSkillGroupObject::GetItem(intptr_t index)
{
... |
// Copyright 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 "base/file_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/win/object_watcher.h"
#include "base/win/scoped_bstr.h"
#inclu... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "soundenvelope.h"
#include "npc_manhack.h"
#include "ai_default.h"
#include "ai_node.h"
#include "ai_navigator.h"... |
/*
* Copyright (C) 2013 10gen 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 useful,... |
#ifndef BOOST_MPL_AUX_MSVC_ETI_BASE_HPP_INCLUDED
#define BOOST_MPL_AUX_MSVC_ETI_BASE_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2001-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://ww... |
#include <bits/stdc++.h>
using namespace std;
int main(){
int a, sum = 0;
for(int i = 0; i < 3; i++){
scanf("%d", &a);
sum = (sum * 10) + a;
}
printf("%s\n", (sum % 4 == 0) ? "YES" : "NO");
return 0;
}
|
// Copyright 2010-2018, Google 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... |
/* LSOracle: A learning based Oracle for Logic Synthesis
* MIT License
* Copyright 2019 Laboratory for Nano Integrated Systems (LNIS)
*
* 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 ... |
#ifndef BOOST_ARCHIVE_OSERIALIZER_HPP
#define BOOST_ARCHIVE_OSERIALIZER_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#pragma inline_depth(511)
#pragma inline_recursion(on)
#endif
#if defined(__MWERKS__)
#pragma inline_depth(511)
#endif
/////////1//////... |
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
#include <iostream>
#include <twinkle/twinkle.h>
using namespace std;
using namespace twinkle;
void client_main();
void server_main();
#define SERVER_PORT 9670
#define CLIENT_PORT 9000
int main()
{
twinkle::startup();
int choice = 0;
cout << "UDP Chat [0: Server, 1: Client]: ";
cin >> choice;
if (choice == 0... |
/* Generated by Cython 0.29.17 */
/* BEGIN: Cython Metadata
{
"distutils": {
"depends": [
"ssa_translation_c_w_lowmem_nostats.h"
],
"language": "c++",
"name": "ssa_translation_lowmem_nostats",
"sources": [
"ssa_translation_lowmem_nostats.pyx"
... |
//============================================================================
// MCKL/include/mckl/random/internal/aes_key_seq.hpp
//----------------------------------------------------------------------------
// MCKL: Monte Carlo Kernel Library
//-----------------------------------------------------------------------... |
// -*-Mode: C++;-*-
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
//... |
#include <limits>
#include <sys/time.h>
#include "generate_splits_utils.h"
using namespace std;
unordered_map<struct ckpt,double> ckpt_times;
vector<struct ckpt> ckpts;
static int group_by = 0;
int filter_syscall = 0;
int use_ckpt = 0, do_split = 0, details = 0, do_repartition = 0;
int lowmem = 0;
double ut_arg = ... |
/*
Copyright 2005-2008 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks.
Threading Building Blocks is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundat... |
#include "Player.hpp"
Player::Player(int x, int y, int points, int life, int attack, double cooldown_shoot, char *symbol)
:Character(x, y, points, life, attack, cooldown_shoot, cooldown_movement=-1, symbol) {
name = new char[MAX_NAME_LENGTH];
offset = 0;
isInvincible = false;
default_cooldown_shoot = cooldown_... |
/*
* 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 be... |
// Copyright (c) 2012-2015 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 "script/script.h"
#include "test/test_avian.h"
#include <boost/test/unit_test.hpp>
using namespace std;
BOOST_FIX... |
// 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 "components/autofill/browser/autofill_common_test.h"
#include "base/guid.h"
#include "base/prefs/pref_service.h"
#include "base/utf_string_c... |
// @HEADER
// ************************************************************************
//
// Intrepid Package
// Copyright (2007) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of the ... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
/*--------------... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2019, 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... |
// bdlt_epochutil.cpp -*-C++-*-
#include <bdlt_epochutil.h>
#include <bsls_ident.h>
BSLS_IDENT_RCSID(bdlt_epochutil_cpp,"$Id$ $CSID$")
namespace BloombergLP {
namespace bdlt {
// ----------------
// struct Epoch... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
#include <QDebug>
#include <QApplication>
#include <QMimeData>
#include <QClipboard>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.connect (QApplication::clipboard (), &QClipboard::changed, [=] () {
const QMimeData* mimeData = qApp->clipboard()->mimeData();
qDebug() << mimeD... |
#include "css/composite/grammar.h"
#include "TypeName.h"
using smtk::common::typeName;
#include "css/token/grammar.h"
#include "css/composite/grammar.h"
#include "css/parser/actions.h"
#include <chrono>
#include <memory>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <typeinfo>
std::string read_... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "connection.h"
#include "dummypacket.h"
#include "channel.h"
#include "controlpacket.h"
#include "ipacketstreamer.h"
#include "iserveradapter.h"
#include "config.h"
#include "transport_thread... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkMorphologyImageFilter.h"
#define WIDTH 700
#define HEIGHT 560
namespace skiagm {
class MorphologyGM : public GM {
public:
MorphologyGM() {
... |
/*
Tests assignment of generic cells of different types.
Copyright 2015, 2016 Ilja Honkonen
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyri... |
// ---------------------------------------------------------------------
// pion: a Boost C++ framework for building lightweight HTTP interfaces
// ---------------------------------------------------------------------
// Copyright (C) 2007-2014 Splunk Inc. (https://github.com/splunk/pion)
//
// Distributed under the ... |
#include <sstream>
#include <Common/CurrentThread.h>
#include <Common/Exception.h>
#include <Common/ThreadProfileEvents.h>
#include <Common/TaskStatsInfoGetter.h>
#include <Common/QueryProfiler.h>
#include <Common/ThreadStatus.h>
#include <Poco/Logger.h>
#include <common/getThreadNumber.h>
namespace DB
{
namespac... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
#include "h265_common.h"
#ifdef WIN32
#include <winsock2.h>
#else
#include <arpa/inet.h>
#endif
#include <stdio.h>
#include <cstdint>
#include <memory>
#include <vector>
namespace h265nal {
bool IsSliceSegment(uint32_t nal_unit_type) {
// payload (Table... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.