text stringlengths 7 961k |
|---|
// hello-world.cpp
#include <thread>
#include <iostream>
void hello( ) {
std::cout << "Hello ";
}
int main( ) {
std::thread t1( hello );
t1.join( );
std::cout << "World" << std::endl;
return 0;
} |
/* Self header */
#include <aht20.h>
/* Arduino libraries */
#include "crc8.h"
/* Config */
#define CONFIG_AHT20_I2C_ADDRESS 0x38
#define CONFIG_AHT20_CALIBRATION_DURATION 10
#define CONFIG_AHT20_CALIBRATION_TIMEOUT 30
#define CONFIG_AHT20_MEASUREMENT_DURATION 80
#define CONFIG_AHT20_MEASUREMENT_RETRY 1
#define CONFI... |
// 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 "quiche/http2/decoder/payload_decoders/altsvc_payload_decoder.h"
#include <stddef.h>
#include <string>
#include <tuple>
#include "quiche/http2... |
// 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/compiler/code-generator.h"
#include "src/compiler/code-generator-impl.h"
#include "src/compiler/gap-resolver.h"
#include "src/compiler/no... |
#include "TrtNet.h"
#include "EntroyCalibrator.h"
#include <cassert>
#include <cublas_v2.h>
#include <cudnn.h>
#include <iostream>
#include <sstream>
#include <string.h>
#include <time.h>
#include <unordered_map>
using namespace nvinfer1;
using namespace nvcaffeparser1;
using namespace plugin;
static Tn::Logger gLogg... |
// MIT License
// Copyright (C) August 2016 Hotride
#include <cstdlib>
#include "WalkData.h"
void CWalkData::GetOffset(float &x, float &y, float &steps)
{
float step_NESW_D = 44.0f / steps; //NW NE SW SE
float step_NESW = 22.0f / steps; //N E S W
int checkX = 22;
int checkY = 22;
switch (Direc... |
#include "Timestep.h" |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#includ... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageResliceMapper.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 sof... |
#include <cbag/layout/boundary.h>
namespace cbag {
namespace layout {
boundary::boundary(boundary_type type) noexcept : type(type) {}
boundary_type boundary::get_type() const noexcept { return type; }
bool boundary::operator==(const boundary &rhs) const noexcept {
return polygon::operator==(rhs) && type == rhs.... |
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:47 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... |
#include<iostream>
#include<string>
struct Vector3
{
float x, y, z;
};
/*class Entity
{
public:
int x;
public:
void Print() const { std::cout << "Hello!" << std::endl; }
};
class ScopedPtr
{
private:
Entity* m_Obj;
public:
ScopedPtr(Entity* entity)
: m_Obj(entity)
{
}
~ScopedPtr()
{
delete m_Obj;
}
... |
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
/*
* @Author: tusikalanse
* @Date: 2021-07-12 15:29:10
* @LastEditTime: 2021-07-12 17:24:40
* @LastEditors: tusikalanse
* @Description:
*/
#include <bits/stdc++.h>
using namespace std;
using LL = long long;
LL gcd(LL a, LL b) {
return b == 0 ? a : gcd(b, a % b);
}
const int INF = 0x3f3f3f3f;
const LL INFL = 0... |
// Copyright (c) Jeremiah Z. Griffin <nokurn@gmail.com>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND... |
// This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2018 The University of Sydney
// 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. Redistr... |
// REQUIRES: lld
// RUN: clang -g -c -o %t-1.o --target=x86_64-pc-linux -mllvm -accel-tables=Disable %s
// RUN: clang -g -c -o %t-2.o --target=x86_64-pc-linux -mllvm -accel-tables=Disable %S/Inputs/find-variable-file-2.cpp
// RUN: ld.lld %t-1.o %t-2.o -o %t
// RUN: lldb-test symbols --file=find-variable-file.cpp --fin... |
#include <iostream>
using integer = long long;
void answer(integer v)
{
std::cout << v << '\n';
}
void solve(integer x1, integer y1, integer x2, integer y2)
{
const integer dx = abs(x1 - x2);
const integer dy = abs(y1 - y2);
answer(std::max(dx, dy));
}
int main()
{
integer x1, y1;
std::cin ... |
#define EPI_DEBUG
#include "../../include/epiworld/epiworld.hpp"
int main()
{
// Setting up model --------------------------------------------------------
epiworld::Model<> model;
model.add_status("Susceptible", epiworld::default_update_susceptible<>);
model.add_status("Exposed", epiworld::default_upd... |
// Copyright 2019 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/offline_pages/task/sql_store_base.h"
#include <iterator>
#include <utility>
#include "base/files/file_path.h"
#include "base/files/... |
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <utility.h>
#include <window.h>
using namespace luminate;
void mouse_button_callback(GLFWwindow* window, int button, int action, int mods){
Window* luminate_window = (Window*)glfwGetWindowUserPointer(window);
luminate_window->notifyMouseHand... |
// Copyright 2014, Yahoo! Inc.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "yahoo/cnet/android/response_completion_adapter.h"
// Generated headers
#include "jni/ResponseCompletion_jni.h"
namespace cnet {
namespace android {
bool ResponseCompletionR... |
/**********************************************************************
// @@@ 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. ... |
// Copyright 2013 Olivier Gillet.
//
// Author: Olivier Gillet (ol.gillet@gmail.com)
//
// 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 th... |
/*
Copyright 2017 Cory Sherman
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 wr... |
/**
* \file WznmRMSubsetMSubset_vecs.cpp
* database access for table TblWznmRMSubsetMSubset (implementation of vectors)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
using namespace std;
using namespace ... |
// Copyright (c) 2012-2016 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 "dbwrapper.h"
#include "fs.h"
#include "random.h"
#include "util.h"
#include <algorithm>
#include <leveldb/cache.h... |
// RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -fnoopenmp-use-tls -ferror-limit 100 -emit-llvm -o - %s
// RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -ferror-limit 100 -emit-llvm -o - %s
#pragma omp threadprivate // expected-error {{expected '(' after 'threadprivate'}}
#prag... |
#pragma once
#include "workspace/command.hpp"
#include "workspace/configuration.hpp"
#include "workspace/folders.hpp"
#include "workspace/fswatch.hpp"
#include "workspace/operations.hpp"
#include "workspace/symbols.hpp" |
#include "../../../include/odfaeg/Driver/pipeline.hpp"
namespace odfaeg {
namespace driver {
Pipeline::Pipeline() t(run) {
pipelineStages[0] = std::make_unique<TransformVertices>();
pipelineStages[1] = std::make_unique<DriverGeometry>();
pipelineStages[2] = std::make_uniq... |
// jms_x.cpp : common millisecond time functions
//
// Written by Jonathan H. Connell, jconnell@alum.mit.edu
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 2017-2019 IBM Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use t... |
#include <iostream>
#include "udp.h"
using namespace std;
int main(int argc,char*args[])
{
if(argc>1)
socket_send(args[1]);
else
socket_recv();
return 0;
} |
// merge-sort.hpp
//
// Phi Luu
//
// Data Structures and Algorithms: Merge Sort
//
// This implementation serves as one of many ways to refine skills in
// data structures and algorithms.
//
// Sorts an array by dividing it into two halves and sorting each half, then
// merging two halves back into a sorted array (mer... |
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>.
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
#include <iostream>
void SayHello() {
std::cout << "Hello, World!" << std::endl;
} |
/**
* 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
* distribu... |
////////////////////////////////////////////////////////////////////////////
// Name: rfc2231.cpp
// Purpose: This class implements the rfc2047 norm
// Author: Brice André
// Created: 2010/12/12
// RCS-ID: $Id: mycomp.cpp 505 2007-03-31 10:31:46Z frm $
// Copyright: (c) 2010 Brice André
// Li... |
/*
Copyright 2005-2014 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... |
#pragma once
#include "Core/Core.hpp"
#include "Core/Image.hpp"
#include "Core/Task.hpp"
class Heightmap
{
public:
Heightmap() = default;
Heightmap(const Heightmap& other) = delete;
Heightmap(Heightmap&& other) noexcept;
~Heightmap();
int16* data = nullptr; // elevation in meters.
int32 width = 0;
int... |
#include "cbase.h"
#include "asw_marine_resource.h"
#include "asw_marine_profile.h"
#include "asw_player.h"
#include "asw_marine.h"
#include "asw_hack.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
IMPLEMENT_SERVERCLASS_ST(CASW_Hack, DT_ASW_Hack)
SendPropEHandle (SENDINFO... |
// Copyright (c) 2017 The Chromium Embedded Framework 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 "tests/ceftests/extensions/extension_test_handler.h"
#include "tests/ceftests/test_util.h"
#include "tests/shared/browser/... |
/* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... |
#include "program/program.hpp"
#include "program_visitor.hpp"
#include "symbol_visitor.hpp"
#include "ast/factory.hpp"
#include "parser.hpp"
#include "symbols.hpp"
#include "builtins.hpp"
namespace gorc {
class boc_shell_program : public program {
public:
std::string script_filename;
bool pars... |
/*
* Copyright (C) 2008 The Android Open Source 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:
* * Redistributions of source code must retain the above copyright
* notice, t... |
// This block enables to compile the code with and without the likwid header in place
#ifdef LIKWID_PERFMON
#include <likwid-marker.h>
#else
#define LIKWID_MARKER_INIT
#define LIKWID_MARKER_THREADINIT
#define LIKWID_MARKER_SWITCH
#define LIKWID_MARKER_REGISTER(regionTag)
#define LIKWID_MARKER_START(regionTag)
#define L... |
#include "pch.h"
namespace UnitTests
{
class TimeTests : public ::testing::Test
{
protected:
DiseaseSpreadSimulation::TimeManager time;
std::vector<DiseaseSpreadSimulation::Day> weekdays{
DiseaseSpreadSimulation::Day::Monday,
DiseaseSpreadSimulation::Day::Tuesday,
DiseaseSpreadSimulation::Day::Wednesda... |
/****************************************************************************
**
** Copyright (C) Qxt Foundation. Some rights reserved.
**
** This file is part of the QxtGui module of the Qxt library.
**
** This library is free software; you can redistribute it and/or modify it
** under the terms of the Common P... |
#include "../sigmaprimitives.h"
#include "../signaturebuilder.h"
#include "../../test/test_bitcoin.h"
#include "../../wallet/test/wallet_test_fixture.h"
#include <boost/test/unit_test.hpp>
namespace elysium {
class TestSignatureSigmaV1Builder : public SigmaV1SignatureBuilder
{
public:
TestSignatureSigmaV1Build... |
#include <cstdint>
#include <entity-system/EmptySystem.hpp>
#include <es-systems/SystemCore.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <es-fs/Filesystem.hpp>
#include <es-fs/fscomp/StaticFS.hpp>
#include <es-acorn/Acorn.hpp>
#include <es-general/comp/StaticObjRefID.hpp>
#include <es-general/comp/StaticCamer... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2008 Greenplum, Inc.
//
// @filename:
// CAutoRgTest.cpp
//
// @doc:
// Tests for CAutoRg
//---------------------------------------------------------------------------
#include "unittest/gpos/common/C... |
#include <iostream>
using namespace std;
class StackException {
string message_;
public:
StackException(string message)
: message_(message)
{}
string get_message() const {
return message_;
}
};
class Stack {
const static int INITIAL_SIZE = 2;
... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkAAClip.h"
#include "SkAtomics.h"
#include "SkBlitter.h"
#include "SkColorPriv.h"
#include "SkPath.h"
#include "SkScan.h"
#include "SkUtils.h"
class AutoAAClipVali... |
//
// Copyright (c) 2019 Erwin Rol <erwin@erwinrol.com>
//
// SPDX-License-Identifier: Apache-2.0
//
#ifndef ZPP_INCLUDE_ZPP_POLL_EVENT_SET_HPP
#define ZPP_INCLUDE_ZPP_POLL_EVENT_SET_HPP
#ifdef CONFIG_POLL
#include <kernel.h>
#include <sys/__assert.h>
#include <chrono>
#include <limits>
#include <optional>
#include... |
#include <iostream>
using namespace std;
/*
* https://algo-logic.info/combination/
*/
const int MOD = 1000000007;
long long r_seq(long long x, long long p) {
if(p==0)
return 1;
if(p % 2 == 0) {
long long partial = r_seq(x, p/2);
return ((partial % MOD) * (partial % MOD)) % MOD;
}
long long a = r... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
#include "image/ImageHeader.h"
#include "image/ImageUtility.h"
#include "common/Exception.hpp"
#include "common/MathFuncs.h"
#include <glm/glm.hpp>
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/string_cast.hpp>
#include <spdlog/spdlog.h>
ImageHeader::ImageHeader( const ImageIoInfo& ioInfoOnDisk, const ImageIo... |
// 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 "base/allocator/partition_allocator/partition_alloc.h"
#include <string.h>
#include <memory>
#include "base/allocator/partition_allocator/... |
#include <Engine_pch.h>
// The contents can only be accessed on a Win32 platform.
// If it is not present than just compile it out.
#if defined (IE_PLATFORM_BUILD_WIN32)
#include "Console_Window.h"
namespace Insight {
ConsoleWindow::ConsoleWindow()
{
Init();
}
ConsoleWindow::~ConsoleWindow()
{
Shutdown()... |
#include "EditorModelDebug.h"
#include "../Container/Ptr.h"
#include "../Core/Context.h"
#include "../Graphics/Batch.h"
#include "../Graphics/Camera.h"
#include "../Graphics/DebugRenderer.h"
#include "../Graphics/Drawable.h"
#include "../Graphics/Geometry.h"
#include "../Graphics/Graphics.h"
#include "../Graphics/Inde... |
/* 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... |
#include <CQSound.h>
#include <QSound>
#include <QAudioDeviceInfo>
#include <CSDLSound.h>
CQSoundMgr *
CQSoundMgr::
getInstance()
{
static CQSoundMgr *instance;
if (! instance)
instance = new CQSoundMgr;
return instance;
}
void
CQSoundMgr::
setActive(bool active)
{
active_ = active;
}
CQSoundMgr::
CQSo... |
// Copyright (c) 2017-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 "zciphcontroldialog.h"
#include "ui_zciphcontroldialog.h"
#include "accumulators.h"
#include "main.h"
#include "walletm... |
#ifndef PT_HIT_RECORD_HPP
#define PT_HIT_RECORD_HPP
#pragma once
#include "ray.hpp"
#include "sphere.hpp"
#include "vec.hpp"
namespace pt {
struct hit_record
{
ray original_ray{};
vec3 hit_point{ 0, 0, 0 };
vec3 outward_normal{ 0, 0, 0 };
vec3 normal{ 0, 0, 0 };
bool front_facing{ false };
};
[[... |
#include <bits/stdc++.h>
using namespace std;
// Complete the maxMin function below.
int maxMin(int k, vector<int> arr) {
int ret = 999999999;
sort(arr.begin(), arr.end());
for (int i = 0, j = k - 1; j < arr.size(); ++j, ++i) {
if ((arr[j] - arr[i]) < ret) {
ret = arr[j] - arr[i];
... |
// -------------------------------------------------------------------------------------------------
// Copyright 2016 - NumScale SAS
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE.txt or copy at
// ... |
#include "stdafx.h"
#include "Professor.h"
// Initializes professor data
Professor::Professor(int id, const string& name) : _id(id),
_name(name) { }
// Bind professor to course
void Professor::AddCourseClass(CourseClass* courseClass)
{
_courseClasses.push_back( courseClass );
} |
// Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_TEXTURE_CONST_PART_UNIQUE_PTR_HPP_INCLUDED
#define SGE_TEXTURE_CONST_PART_UNIQUE_PTR_HP... |
//=================================================================================================
/*!
// \file src/mathtest/dmatsmatmult/SDaUCb.cpp
// \brief Source file for the SDaUCb dense matrix/sparse matrix multiplication math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// Thi... |
// Copyright (c) 2011 Thomas Heller
// Copyright (c) 2013 Hartmut Kaiser
// Copyright (c) 2014 Agustin Berge
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <hp... |
// Copyright (c) 2011-2020 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 <test/util/setup_common.h>
#include <addrman.h>
#include <banman.h>
#include <chainparams.h>
#include <consensus/co... |
#ifndef FEEDING_FOODITEM_HPP_
#define FEEDING_FOODITEM_HPP_
#include <aikido/common/pointers.hpp>
#include <aikido/perception/DetectedObject.hpp>
#include <dart/dart.hpp>
#include <yaml-cpp/exceptions.h>
#include "feeding/AcquisitionAction.hpp"
namespace feeding {
AIKIDO_DECLARE_POINTERS(FoodItem)
class FoodItem {... |
// 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 "modules/battery/BatteryDispatcher.h"
#include "modules/battery/BatteryStatus.h"
#include "platform/NotImplemented.h"
#inclu... |
// Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
#include "doctest.h"
#include "snowman.hpp"
using namespace ariel;
#include <string>
#include <algorithm>
using namespace std;
string nospaces(string input) {
input.erase(remove(input.begin(),input.end(),' '),input.end());
input.erase(remove(input.begin(),input.end(),'\t'),input.end());
input.erase(remov... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "flush_target_candidates.h"
#include "flush_target_candidate.h"
#include "tls_stats.h"
namespace proton {
using search::SerialNum;
using Config = PrepareRestartFlushStrategy::Config;
using... |
#pragma once
#include <ph/testing/testing.hpp>
#include <ph/core/core.hpp>
namespace ph::core
{
struct Testing : ph::testing::Testing
{
virtual void run () override
{
}
};
} |
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *yaadi_strings[] = {
QT_TRANSLATE_NOOP("yaadi-core", " mints deleted\n"),
QT_TRANSLATE_NOOP("yaadi-core", " mints updated, "),
QT_TRANSLATE_NO... |
/*
* Copyright 2021 BaiQiang
*
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
#include "FlexLayout.h"
#include "LinearLayout.h"
#include "FlowLayout.h"
#include <vector>
#include <iostream>
#define COUNT 4
void genView(Layout* layout, int index) {
Item* it... |
#include <stdio.h>
#include <stdlib.h>
#include <RemoxlyApi.h>
#if defined(_WIN32)
# include <windows.h>
# define sleep_millis(x) Sleep(x)
#elif defined(__APPLE__)
# include <unistd.h>
# define sleep_millis(x) usleep(x * 1000)
#endif
/* ------------------------------------- */
#define EL_ID_VIEW_OPTION 1
#define... |
#ifndef __CIGAR__
#define __CIGAR__
#include <vector>
#include <string>
#include "SAM_entry.hpp"
using namespace std;
namespace Cigar {
typedef struct {
unsigned long len;
char code;
} t_cigar;
vector<t_cigar> parse_cigar(string& cigar_txt);
string construct_cigar(vector<alignment_segment>& segmen... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
#include "ARC_Modbus_Struct.h"
#include <string.h>
#include <stdlib.h>
namespace ARC_Modbus
{
Command_Parameter::Command_Parameter()
{
}
Command_Parameter::~Command_Parameter()
{
}
modbus_slave_base::modbus_slave_base()
{
this->Event_TxWork = 0;
this->CallBack_Coils = 0;
this->CallBack_InputCoil... |
#include "DataFormats/METReco/interface/HcalCaloFlagTool.h"
#include <cstring>
#include <cstdio>
HcalCaloFlagTool::HcalCaloFlagTool(const std::string& releaseName)
: releaseName_(releaseName), standardFormat_(false), major_(0), minor_(0), patch_(0), subpatch_(0) {
int fields = sscanf(releaseName.c_str(), "CMSSW_... |
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... |
/***************************************************************************
# Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of sourc... |
#include <gtest/gtest.h>
#include "test_utility.h"
#include "tiex_match.h"
using namespace tiex;
using namespace tiex::internal;
static bool TestMakeBoundaryTime(const Boundary& boundary, const std::tm& tm, std::time_t expected_time) {
std::time_t actual_time = 0;
bool is_succeeded = MakeBoundaryTime(boundary... |
/*
* Copyright (c) 2011-2018, 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, p... |
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#include <complex>
#include <queue>
#include <set>
#include <unordered_set>
#include <list>
#include <chrono>
#include <random>
#include <iostream>
#incl... |
// _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2019 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#include "vast/format/csv.hpp"
#define SUITE format
#i... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a cop... |
// Copyright (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) 2018 vrc Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http... |
//===----------------------------------------------------------------------===//
//
// BusTub
//
// transaction_manager.cpp
//
// Identification: src/concurrency/transaction_manager.cpp
//
// Copyright (c) 2015-2019, Carnegie Mellon University Database Group
//
//===-----------------------------... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ngraph/builder/split.hpp"
#include "ngraph/opsets/opset1.hpp"
using namespace ngraph;
OutputVector builder::opset1::split(const Output<Node>& value,
const std::vector<size_t>& split_le... |
#include <muse_mcl_2d/impl/resampling/stratified_2d.hpp>
#include <muse_smc/resampling/impl/stratified.hpp>
namespace muse_mcl_2d {
void Stratified::doApply(sample_set_t& sample_set)
{
muse_smc::impl::Stratified<sample_set_t, uniform_sampling_t>::apply(sample_set);
}
void Stratified::doApplyRecovery(sample_set... |
/*
* This file is part of liblcf. Copyright (c) 2020 liblcf authors.
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
*
* liblcf is Free/Libre Open Source Software, released under the MIT License.
* For the full copyright and license information, please view the COPYING
* file that was distributed with t... |
/*
* File : pbzip2.cpp
*
* Title : Parallel BZIP2 (pbzip2)
*
* Author: Jeff Gilchrist (http://gilchrist.ca/jeff/)
* - Modified producer/consumer threading code from
* Andrae Muys <andrae@humbug.org.au.au>
* - uses libbzip2 by Julian Seward (http://sources.redhat.com/bzip2/)
*
... |
/*******************************************************************************
* Copyright 2003-2012 LASMEA UMR 6602 CNRS/U.B.P
* Copyright 2011-2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
*
* Distributed under the Boost Software License, Version 1.0.
* See accompanying f... |
// 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 "chrome/browser/ui/ash/user_accounts_delegate_chromeos.h"
#include <algorithm>
#include <iterator>
#include "base/logging.h"
#include "chrome/b... |
// the rules were based off of this link https://en.wikipedia.org/wiki/Uno_(card_game) all house rules are planned to make it in the final version
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iterator>
#include <ctime>
//#include <bits/stdc++.h>
#include <sstream>
using names... |
#include <iostream>
#include <sstream>
#include <string>
#include <unordered_set>
#include <vector>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string input1;
getline(cin, input1);
int size = stoi(input1);
string input2;
getline(cin, input2);
stringstream s(i... |
// (c) Copyright Juergen Hunold 2008
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE.txt or copy at
// https://www.bfgroup.xyz/b2/LICENSE.txt)
#define BOOST_TEST_MODULE QtCore
#include <QtCore>
#include <boost/test/unit_test.hpp>
BOOST_AU... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.