text stringlengths 5 1.04M |
|---|
// dll-shenanigans.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
int main()
{
std::cout << "Hello World!\n";
}
// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
// Debug program: F5 or Debug > Start Debugging menu
// Tips for Gettin... |
// STLport regression testsuite component.
// To compile as a separate example, please #define MAIN.
#include <algorithm>
#include <vector>
#include <iostream>
#include <iterator>
#include <functional>
#include <iterator>
#ifdef MAIN
#define replace1_test main
#endif
#if !defined (STLPORT) || defined(__STL_USE_NAME... |
class Solution {
public:
void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) {
int i = m - 1, j = n - 1, k = m + n - 1;
while (j >= 0)
{
nums1[k--] = (i >= 0 && nums1[i] > nums2[j]) ? nums1[i--] : nums2[j--];
}
}
}; |
// REQUIRES: asan-64-bits
// Regression test: __tls_get_addr interceptor must recognize static TLS.
//
// RUN: %clangxx_asan -DSHARED %s -shared -o %t-so.so -fPIC
// RUN: %clangxx_asan %s -ldl -pthread -o %t %t-so.so
// RUN: %env_asan_opts=verbosity=2 %run %t 2>&1 | FileCheck %s
// CHECK: before
// CHECK: __tls_get_ad... |
// Copyright (c) 2012 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/history/android/android_provider_backend.h"
#include "base/i18n/case_conversion.h"
#include "chrome/browser/bookmarks/bookma... |
#ifndef _MANIPULATORCOORDINATIONSERVICEIOQUERYQUERYHANDLER_HH_
#define _MANIPULATORCOORDINATIONSERVICEIOQUERYQUERYHANDLER_HH_
#include "CommBasicObjects/CommIOValues.hh"
#include "CommBasicObjects/CommIOValues.hh"
#include <string>
class ManipulatorCoordinationServiceIoqueryQueryHandler
{
public:
ManipulatorCoordin... |
#include "stdafx.h"
#include "../../xrEngine/igame_persistent.h"
#include "../xrRender/FBasicVisual.h"
#include "../../xrEngine/customhud.h"
#include "../../xrEngine/xr_object.h"
#include "../xrRender/QueryHelper.h"
IC bool pred_sp_sort (ISpatial* _1, ISpatial* _2)
{
float d1 = _1->spatial.sphere.P.distan... |
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <ugene@unipro.ru>
* http://ugene.unipro.ru
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version... |
/* Copyright (c) 2009-2013, Fortylines LLC
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 condi... |
// Copyright 2019 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 <ddk/debug.h>
#include <ddk/device.h>
#include <ddk/metadata.h>
#include <ddk/metadata/clock.h>
#include <ddk/platform-defs.h>
#include <ddk/proto... |
/*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* 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 r... |
#include <iostream>
using namespace std;
int K, L, M, N, D;
int main(void) {
cin >> K >> L >> M >> N >> D;
int ct = 0;
for(int i = 1; i <= D; i++) {
if(i % K == 0 || i % L == 0 || i % M == 0 || i % N == 0) ct++;
}
cout << ct << endl;
return 0;
}
|
//
// scale_to_action.hpp
// rawket
//
// Created by Tom Albrecht on 25.12.15.
//
//
#ifndef ScaleToAction_hpp
#define ScaleToAction_hpp
#include <vector>
#include <iostream>
#include "action.hpp"
#include "sprite.hpp"
RKT_NAMESPACE_BEGIN
class scale_to_action;
rkt_create_shared_ptr(scale_to_action);
/**
* S... |
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
* Copyright (C) 2011 Ericsson AB. 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 t... |
/* Example to demonstrate the working of virtual function in C++ programming. */
#include <iostream>
using namespace std;
class B
{
public:
virtual void display() /* Virtual function */
{ cout<<"Content of base class.\n"; }
};
class D1 : public B
{
public:
//virtual void display()
//{ cout<<"Cont... |
#include <vector>
#include <algorithm>
#include "algol/sequence/sequence.hpp"
#include "algol/sequence/generator/geometric_progression_generator.hpp"
#include "gtest/gtest.h"
using geometric_progression_infinite = algol::sequence::geometric_progression_infinite_seq<uint32_t>;
using geometric_progression_first_n = al... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcprotocol.h"
#include "util.h"
#include <stdint.h>
#include <boost/algor... |
/*
* Copyright (c) 2013, Alexander Fronkin
* 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 o... |
#include <cstdlib>
#include <ctime>
#include <random>
#include "checkers.hpp"
using namespace std;
int main(int argc, char* argv[]) {
const vector<string> board = {"_b_b_b_b", "b_b_b_b_", "_b_b_b_b",
"________", "________", "w_w_w_w_",
"_w_w_w_w"... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"
#includ... |
// Copyright (c) 2011-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 "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "bitcoinunits.h"
#include "qvalidatedlineedit.h"
#include... |
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2021, the Ginkgo authors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source co... |
// Module: Log4CPLUS
// File: filter.cxx
// Created: 5/2003
// Author: Tad E. Smith
//
//
// Copyright (C) Tad E. Smith All rights reserved.
//
// This software is published under the terms of the Apache Software
// License version 1.1, a copy of which has been included with this
// distribution in the LICENSE.AP... |
// Copyright 2010-2018 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
#include "Hub.h"
#include "HTTPSocket.h"
#include <openssl/sha.h>
namespace uWS {
char *Hub::inflate(char *data, size_t &length, size_t maxPayload) {
dynamicInflationBuffer.clear();
inflationStream.next_in = (Bytef *) data;
inflationStream.avail_in = length;
int err;
do {
i... |
/*
* Copyright (c) 2019-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
/*++
Copyright (C) 2019 3MF Consortium (Original Author)
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 conditio... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
// BinaryWriter.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "Basics.h"
#define DATAWRITER_EXPORTS // creating... |
/*
* Copyright (c) 2019 The Fuchsia Authors
*
* 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 THE AUTHOR... |
/////////////////////////////////////////////////////////////////////////////////
//
// SourceFile: HTTPTime.cpp
//
// Marlin Server: Internet server/client
//
// Copyright (c) 2014-2021 ir. W.E. Huisman
// All rights reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of thi... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
/*
* Copyright 2006 by NVIDIA Corporation. All rights reserved. All
* information contained herein is proprietary and confidential to NVIDIA
* Corporation. Any use, reproduction, or disclosure without the written
* permission of NVIDIA Corporation is prohibited.
*/
#include <Cg/half.hpp>
#include <Cg/fixed.hp... |
/*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language ... |
/*
* PatternContainer.cpp
* --------------------
* Purpose: Container class for managing patterns.
* Notes : (currently none)
* Authors: OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#include "stdafx.h"
#include "patternContainer.h"
#include "Sndfi... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "schemaconfigurer.h"
#include <vespa/config-attributes.h>
#include <vespa/config-imported-fields.h>
#include <vespa/config-indexschema.h>
#include <vespa/config-summary.h>
#include <vespa/searchcommon/comm... |
//
// DrawableUIComponent.cpp
// Chilli Source
// Created by Ian Copland on 28/11/2014.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Tag Games Limited
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software")... |
#pragma once
#include <torch/extension.h>
#include <deque>
#include <exception>
#include <memory>
#include <mutex>
#include <thread>
#include <vector>
#include <pybind11/chrono.h>
#include <c10d/ProcessGroup.hpp>
#include <c10d/Store.hpp>
#include <c10d/Types.hpp>
#include <c10d/Utils.hpp>
#include <ucp/api/ucp.h>... |
#include <mutex>
#include <thread>
#include <fstream>
#include <sys/stat.h>
#include "inc/list_processor.h"
#include "inc/u16fstream.h"
list_processor::list_processor()
:m_lock(), m_lists(), m_workingThread(), m_isWorking(true)
{
}
void list_processor::init()
{
syncFromFile();
m_workingThread = std::thre... |
// bslmf_allocatorargt.t.cpp -*-C++-*-
#include <bslmf_allocatorargt.h>
#include <bsls_bsltestutil.h>
#include <stdio.h> // 'printf'
#include <stdlib.h> // 'atoi'
using namespace BloombergLP;
//=============================================================================... |
//----------------------------------------------------------------------------//
// //
// ozz-animation is hosted at http://github.com/guillaumeblanc/ozz-animation //
// and distributed under the MIT License (MIT). ... |
// Copyright (c) UnnamedOrange. Licensed under the MIT Licence.
// See the LICENSE file in the repository root for full licence text.
#pragma once
#include <cctype>
#include <Windows.h>
#undef min
#undef max
#include "resource.h"
#include <utils/resource_loader.hpp>
#include <utils/multi_language.hpp>
class my_mu... |
// Copyright (c) 2013-2019 The Arowanacoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include <clientversion.h>
#include <key.h>
#include <key_io.h>
#include <streams.h... |
#include <eosio/eosio.hpp>
// Message table
struct [[eosio::table("message"), eosio::contract("talk")]] message {
uint64_t id = {}; // Non-0
uint64_t reply_to = {}; // Non-0 if this is a reply
eosio::name user = {};
std::string content = {};
uint64_t primary_key() const { return i... |
// Copyright (c) 2018-2021 The Dash Core developers
// Copyright (c) 2021 The CREDD Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "evodb.h"
std::unique_ptr<CEvoDB> evoDb;
CEvoDBScopedCommitter::CEvoD... |
/* Delete Kth element from max heap */
#include<bits/stdc++.h>
using namespace std;
// Heapify the array
void max_heapify (int a[], int n, int i) {
int largest = i;
int left = 2 * i + 1;
int right = 2 * i + 2;
if (n > left && a[left] > a[largest]) {
largest = left;
}
if (n > right && a... |
// Copyright (c) 2009-2013 The Bitcoin developers
// Copyright (c) 2015-2019 The PIVX developers
// Copyright (c) 2019 The ADSPLACE developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "crypter.h"
#include "s... |
/*
* Copyright (C) 2007 Apple Inc.
* Copyright (C) 2007 Alp Toker <alp@atoker.com>
* Copyright (C) 2008 Collabora Ltd.
* Copyright (C) 2008, 2009 Google Inc.
* Copyright (C) 2009 Kenneth Rohde Christiansen
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU L... |
/**
* @file concat_impl.hpp
* @author Marcus Edel
* @author Mehul Kumar Nirala
*
* Implementation of the Concat class, which acts as a concatenation contain.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of t... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The ADSPLACE developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#incl... |
///////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2002 - 2011.
// Copyright 2011 John Maddock. 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_
//
// This work is based ... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2017 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
//https://en.wikipedia.org/wiki/Quicksort
#include <iostream>
using namespace std;
void swap(int &x,int &y){
int temp=x;
x=y;
y=temp;
}
int partition(int A[], int lo, int hi){
int i,j,p=A[lo];
for(i=lo,j=hi; i<j;){
for(; A[i]<p; i++);
for(; p<A[j]; j--);
swap(A[i],A[j]);
... |
#pragma once
/// <summary>
/// Simple storage class that keeps the outlier score, core distance, and id (index) for a single point.
/// OutlierScores are sorted in ascending order by outlier score, with core distances used to break
/// outlier score ties, and ids used to break core distance ties.
/// </summary>
cl... |
/* Copyright 2020 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 <components/PolygonalPrism.h>
#include <core/IndentWriter.h>
#include <core/Point2D.h>
#include <core/Polygon.h>
#include <iostream>
int main(int argc, char **argv)
{
IndentWriter writer;
Polygon<Point2D> base;
base.addPoint(Point2D(1.0, 2.0));
base.addPoint(Point2D(1.0, -2.0));
base.addPoint(P... |
// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... |
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-compare"
#include <boost/test/unit_test.hpp>
#pragma GCC diagnostic pop
#include <boost/algorithm/string/predicate.hpp>
#include <fscio/testing/tester.hpp>
#include <fscio/chain/abi_serializer.hpp>
#include <payloadless/payloadless.wast.hpp>
#include <... |
/**Kattis - busnumbers2
* Kinda weird going back to easy questions after spending so much time in the 5-8 difficulty
* range with 100+ lines of code per question. We just find all sums of cubes of 2 distinct numbers
* under the upperbound. Then we get the largest. We can tell if a number can be represented in 2
* d... |
// Listing 10.3 - usestock0.cpp -- the client program
// compile with stock00.cpp
#include <iostream>
#include "stock00.h"
int main()
{
Stock fluffy_the_cat;
fluffy_the_cat.acquire("NanoSmart", 20, 12.50);
fluffy_the_cat.show();
fluffy_the_cat.buy(15, 18.125);
fluffy_the_cat.show();
fluffy_the_cat.se... |
// class template regex -*- C++ -*-
// Copyright (C) 2013-2016 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundat... |
//===--- Casting.cpp - Swift Language Dynamic Casting Support -------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2018 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... |
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstdarg>
#include <cstring>
#include <type_traits>
#include <typeinfo>
typedef std::string string;
// should support all compilers(todo)
// #if __GNUC__ || __clang__
// typedef __int128 int128;
// #else
// typedef __int128_t int128;
/... |
#ifndef _SEQUENCERHLCOORDINATIONSERVERHLCOMMANDSERVEREVENTHANDLER_HH_
#define _SEQUENCERHLCOORDINATIONSERVERHLCOMMANDSERVEREVENTHANDLER_HH_
#include "aceSmartSoft.hh"
#include <string>
#include <iostream>
#include "CommBasicObjects/CommSkillMsg.hh"
#include "CommBasicObjects/CommSkillMsg.hh"
class SequencerHLCoordin... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <proxygen/lib/http/RFC2616.h>
#include <stdlib.h>
#include <folly/String.h>
#include <fo... |
//=================================================================================================
/*!
// \file src/mathtest/dmatsmatmult/SUDbSCa.cpp
// \brief Source file for the SUDbSCa dense matrix/sparse matrix multiplication math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// T... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__wchar_t_connect_socket_fopen_02.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-02.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: connect_socket Read data ... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the... |
//
// Created by kazem on 4/23/17.
//
#include <atomic>
#include <fstream>
#include <iostream>
#include <sstream>
#include "Util.h"
namespace Sympiler {
namespace Internal {
namespace {
// We use 64K of memory to store unique counters for the purpose of
// making names unique. Using less memory increases the likeli... |
// 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 "ash/shelf/swipe_home_to_overview_controller.h"
#include "ash/app_list/app_list_controller_impl.h"
#include "ash/constants/ash_features.h"
#incl... |
#include <unistd.h>
#include "../simpleServer/abstractStream.h"
#include "../simpleServer/abstractService.h"
#include "../simpleServer/shared/stdLogOutput.h"
using namespace simpleServer;
int main(int argc, char **argv) {
return
ServiceControl::create(argc, argv,"exampleService",[](ServiceControl control, S... |
/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/QuickSort.h>
#include <LibGUI/RegularEditingEngine.h>
#include <LibGUI/TextEditor.h>
namespace GUI {
CursorWidth RegularEditingEngine::cursor_width() const
{
return CursorWidth::NARROW;
}
bool Regul... |
#include "threading.hpp"
// Thread_wait
void forest::Thread_wait::inc(){
std::unique_lock<std::mutex> lock(m);
++count;
}
void forest::Thread_wait::dec(){
std::unique_lock<std::mutex> lock(m);
if(--count == 0){
cv.notify_all();
}
}
void forest::Thread_wait::wait(){
std::unique_lock<std::mutex> lock(m);
whil... |
/**
@file main.cpp
*/
#include <Arduino.h>
#include <Ticker.h>
#include "LedControlModule.h"
#include "ClockModule.h"
#include "WifiModule.h"
#include "Settings.h"
#include "AceButton.h"
#include "SimpleTime.h"
#include "ConfigModule.h"
#include "AmbientLightModule.h"
using namespace ace_button;
//------------------... |
/**
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
* more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Green Energy Corp licenses this file to you under the Apache License,
* Version 2.0 (the "Li... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ngraph/validation_util.hpp"
#include <algorithm>
#include <ngraph/ops.hpp>
#include <ngraph/rt_info.hpp>
#include <numeric>
#include "ngraph/evaluator.hpp"
#include "ngraph/op/concat.hpp"
#include "ngraph/op/convert.hpp"... |
// Copyright(c) 2021 Hansen Audio.
#include "detail/shuffle_note.h"
#include "ha/fx_collection/trance_gate.h"
#include "gtest/gtest.h"
using namespace ha::fx_collection;
namespace {
//-----------------------------------------------------------------------------
TEST(trance_gate_test, test_setting_mix)
{
auto t... |
/****************************************************************************
*
* Copyright (c) 2021 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
/*
* Catch v1.2.1
* Generated: 2015-06-30 18:23:27.961086
* ----------------------------------------------------------
* This file has been merged from multiple headers. Please don't edit it directly
* Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
*
* Distributed under the Boost Software Lice... |
// Copyright 2019, Nawin
#include "Workspace.h"
|
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commerci... |
//
// Created by taylor-santos on 1/2/2022 at 21:02.
//
#pragma once
#include <string>
#include "ast/type.hpp"
namespace AST {
class ObjectType final : public Type {
public:
ObjectType(std::string name, const yy::location &name_loc, const yy::location &loc);
~ObjectType() override;
void
to_json(st... |
// Generated from /POI/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/hpsf/fwd-POI.hpp>
#include <org/apache/poi/hpsf/wellknown/fwd-POI.hpp>
#include <java/lang/Object.hpp>
template<typename ComponentType, typename...... |
//===--- PlatformKind.cpp - Swift Language Platform Kinds -----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/***********************************************************************
This file is part of the librjmcmc project source files.
Copyright : Institut Geographique National (2008-2012)
Contributors : Mathieu Brédif, Olivier Tournaire, Didier Boldo
email : librjmcmc@ign.fr
This software is a generic C++ library for st... |
//HEADER_GOES_HERE
#include "../types.h"
// Tracks which missile files are already loaded
int MissileFileFlag;
int monster_cpp_init_value; // weak
int monstkills[MAXMONSTERS];
int monstactive[MAXMONSTERS];
int nummonsters;
int sgbSaveSoundOn; // weak
MonsterStruct monster[MAXMONSTERS];
int totalmonsters... |
/* Scroll
*
* Copyright (c) 2008-2021 Orx-Project
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpos... |
/**
* @file addCustomValidator.cpp
* @brief Example creating a custom validator to be called during validation
* @author Frank T. Bergmann
*
* <!--------------------------------------------------------------------------
* This sample program is distributed under a different license than the rest
* of libSB... |
#include "mocks.h"
#include "source/common/network/address_impl.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
using testing::Const;
using testing::Return;
using testing::ReturnRef;
namespace Envoy {
namespace LocalInfo {
MockLocalInfo::MockLocalInfo() : address_(new Network::Address::Ipv4Instance("127.0.0.1... |
// Lines.cpp: implementation of the CLines class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Lines.h"
#include "Token.h"
#include "Param.h"
//////////////////////////////////////////////////////////////////////
// CLine class.
CInnoScript::CLine::CLine(SEC... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
/// YANG Development Kit
// Copyright 2019 Cisco Systems. All rights reserved
//
////////////////////////////////////////////////////////////////
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional inf... |
#include <sstream>
#include <vector>
#include "regex"
#include <iostream>
#include "NumberDecorator.hpp"
std::string NumberDecorator::toString() {
std::stringstream ss(StreamDecorator::toString());
std::string temp;
std::vector<std::string> tokens;
std::string tokenized;
std::regex pattern("^\\d+$... |
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <ugene@unipro.ru>
* http://ugene.unipro.ru
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version... |
//
//
// Copyright 2021 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 <QtGui>
#include <QAction>
#include <QFile>
#include <QKeyEvent>
#include <QMainWindow>
#include <QMenu>
#include <QMenuBar>
#include <QPixmap>
#include <QString>
#include <QTextStream>
#include <QStringList>
#include <QPushButton>
#include <QCheckBox>
#include <QStringList>
#include <QDesktopServices>
#inclu... |
// ********************************************************
// This C++ code was automatically generated by ml2cpp (development version).
// Copyright 2020
// https://github.com/antoinecarme/ml2cpp
// Model : LGBMClassifier_Pipeline
// Dataset : iris
// This CPP code can be compiled using any C++-17 compiler.
// g+... |
#include "Lines_window.h"
Lines_window::Lines_window(Point xy, int w, int h, const string& title)
:Window{xy,w,h,title},
next_button{Point{x_max()-300,0}, 150, 40, "Next point",
[](Address, Address pw) {reference_to<Lines_window>(pw).next();}},
quit_button{Point{x_max()-150,0}, 150, 40, "Quit",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.