text stringlengths 5 1.04M |
|---|
/***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* obje... |
#include "gmPythonNodeOption.hpp"
#include <QRegularExpression>
namespace gm
{
namespace Python
{
namespace Node
{
Option::Option(Object* node) : Param(gm::Component::Type::Option, node)
{
this->setName("option param");
this->m_options.a... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/paint/text_painter_base.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blin... |
/*************************************************************************/
/* visual_shader.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
* Copyright (C) 2012 Victor Carbune (victor@rosedu.org)
* Copyright (C) 2014 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain t... |
/*
This file contains code adapted from p3d.py in
http://code.google.com/p/pythonisosurfaces/source/checkout
which was released under the new BSD license.
accessed 31 July 2012
*/
#include <math.h>
#include <stdio.h>
const int edgeTable[] = {0x0, 0x109, 0x203, 0x30a, 0x406, 0x50f, 0x605, 0x70c,
0x80c... |
// RUN: mlir-clang %s --function=foo -S | FileCheck %s
extern "C" {
int foo(char t) {
int n = 10;
switch (t) {
case 'a':
n = 20;
break;
case 'A':
n = 30;
break;
default:
return -1;
}
return n;
}
}
// TODO the select should be canonicalized better
// CHECK: func @foo(%arg0: i8) -> i... |
//===- HWStubExternalModules.cpp - HW Module Stubbing Pass ----------------===//
//
// 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
//
//===---------------------------... |
#define FBGEMM_EXPORTS
#include "fbgemm/QuantUtils.h"
#include <cpuinfo.h>
#include "fbgemm/Fbgemm.h"
namespace fbgemm {
using namespace std;
float TensorQuantizationParams::Min() const {
return Dequantize(0, *this);
}
float TensorQuantizationParams::Max() const {
return Dequantize((1 << precision) - 1, *thi... |
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
//===--- SILLowerAggregateInstrs.cpp - Aggregate insts to Scalar insts ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
#include <iostream>
#include <string.h>
#define BUF_SIZE 200
#define SERVER_ADDR "47.97.181.98"
#define SERVER_PORT 20000
int main()
{
int clientfd;
if ((clientfd = socket(AF_INET, SOCK_STREAM, 0) == ... |
#include "std_lib_facilities.h"
#include <sstream> //maybe fix
int get_sum_of_ints(ifstream& ifs) {
int sum=0;
if (ifs.is_open())
{
int val = 0;
std::string line;
string tmp;
while (std::getline(ifs, line))
{
std::stringstream ss(line);
while (!ss.eof())
{
ss >>tmp;
if (stringstream(... |
/*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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)
==... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <algorithm>
#include <memory>
#include <ngraph/ngraph.hpp>
#include "low_precision/layer_transformation.hpp"
#include "common/fake_quantize_on_data.hpp"
#include "common/dequantization_operations.hpp"
namespa... |
/*
* Copyright (c) 2011-2014 ARM Limited
* Copyright (c) 2013 Advanced Micro Devices, Inc.
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual prope... |
/*
* Copyright (c) 2008, AMT – The Association For Manufacturing Technology (“AMT”)
* 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 cop... |
/*****************************************************************//**
* \file uncopyable_class.cpp
* \brief prevent copying - even with compiler generated
* copy-constructor and assignment operator
*
* declare the copy constructor and copy assignment operator
* private in a base class and deleb... |
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include "Profiling.hpp"
#include "JsonPrinter.hpp"
#if ARMNN_STREAMLINE_ENABLED
#include <streamline_annotate.h>
#endif
#if ARMCOMPUTECL_ENABLED
#include <arm_compute/runtime/CL/CLFunctions.... |
/**
* To compile this file use
* g++ PacketSniffer.cpp -lpcap
* Reference: http://www.tcpdump.org/pcap.htm
*/
#include <pcap.h>
#include <iostream>
#include <algorithm>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <vector>
#include <fstream... |
// Copyright (c) 2001, Daniel C. Nuffer
// Copyright (c) 2001-2009 Hartmut Kaiser
//
// 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(BOOST_SPIRIT_ITERATOR_BUF_ID_CHECK_POLICY_MAR_16_2007_1108AM)
#... |
/* Copyright 2017 R. Thomas
* Copyright 2017 Quarkslab
*
* 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 appli... |
/* Copyright 2017 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... |
/*
* 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 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
/*
* Copyright (C) 2005-2011 MaNGOS <http://getmangos.com/>
*
* 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 2 of the License, or
* (at your option) any later version.
*
... |
// Copyright (c) 2010-2019 The Regents of the University of Michigan
// This file is from the freud project, released under the BSD 3-Clause License.
#include <complex>
#include <stdexcept>
#include "HexOrderParameter.h"
using namespace std;
using namespace tbb;
/*! \file HexOrderParameter.cc
\brief Compute the... |
#include "libmul/mul.h"
extern int mul4( const int a, const int b ) noexcept {
return a * b * 4;
}
|
#pragma once
#include "program.hpp"
#include "util.hpp"
class Minimizer
{
public:
Minimizer( const Settings &settings )
:
settings( settings )
{
}
void minimize( Program &p, size_t num_terms ) const;
void optimizeAndMinimize( Program &p, size_t num_reserved_cells, size_t num_initialized_cells... |
// Copyright 2011 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 ... |
/* Copyright (c) 2009, 2010 Stanford University
*
* Permission to use, copy, modify, and 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... |
// Copyright (c) 2011-2019 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 <qt/patentcoinamountfield.h>
#include <qt/patentcoinunits.h>
#include <qt/guiconstants.h>
#include <qt/guiutil.h>
#... |
// Copyright (c) 2011-2013 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 "governancedialog.h"
#include "ui_governancedialog.h"
#include "masternode.h"
#include "masternode-sync.h"
#include ... |
/*********************************************************************************
* File Name : /home/yuewu/work/sol/src/sol/pario/csv_reader.cc
* Created By : yuewu
* Creation Date : [2015-11-13 19:39]
* Last Modified : [2016-02-12 21:23]
* Description ... |
/*-
* Copyright (c) 2016 Landon Fuller <landonf@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* noti... |
/// \page gepetto_viewer_corba_introduction Gepetto Viewer server
///
/// This package implements a corba server embedding gepetto-viewer library.
///
/// The idl interface of the server is defined by gepetto::corbaserver::GraphicalInterface.
///
/// To use the graphical interface via python,
/// \li start executable
/... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "UnrealEd.h"
#include "FoliageEditModule.h"
#include "Runtime/AssetRegistry/Public/AssetRegistryModule.h"
const FName FoliageEditAppIdentifier = FName(TEXT("FoliageEdApp"));
#include "FoliageEdMode.h"
#include "PropertyEditing.h"
#include "Foliag... |
#include <stdint.h>
#ifndef WEBUI_HPP
#define WEBUI_HPP
extern uint16_t webLabelLoad;
extern uint16_t webLabelPgnStatus;
extern uint16_t webButtonReboot;
extern uint16_t webTabHardware;
extern uint16_t webTabGPS;
extern uint16_t webTabIMU;
extern uint16_t webTabSteeringAngle;
extern int16_t webTabSteeringActuator;
... |
#include <iostream>
using namespace std;
namespace my_space {
void helloInSpace() {
cout << "Hello in space!" << endl;
}
}
namespace my_space {
void helloInSpace2() {
cout << "Hello in space!" << endl;
}
}
int main() {
my_space::helloInSpace();
my_space::helloInSpace2();
... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <string>
#include <vector>
#include "inference_engine.hpp"
namespace FuncTestUtils {
namespace TestModel {
/**
* @brief generates IR files (XML and BIN files) with the test model.
* Passed referenc... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) |
+---------... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016-2019 Baldur Karlsson
*
* 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 So... |
/*
* Copyright (C) 2002-2011 The DOSBox Team
*
* 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 2 of the License, or
* (at your option) any later version.
*
* This p... |
#pragma once
#include <stddef.h>
#include <bitset>
#include <cmath>
#include <exception>
#include <stdexcept>
#include <functional>
#include <map>
#include <memory>
#include <vector>
#include <limits>
#include "dynamixel_sdk/dynamixel_sdk.h"
#include "iostream"
#include "servo_register_definitions.h"
namespace dynam... |
//=================================================================================================
/*!
// \file src/mathtest/smatsmatkron/HCbUCa.cpp
// \brief Source file for the HCbUCa sparse matrix/sparse matrix Kronecker product math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// ... |
#ifndef BOOST_MPL_LIMITS_UNROLLING_HPP_INCLUDED
#define BOOST_MPL_LIMITS_UNROLLING_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-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://www.... |
// 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 "chrome/browser/ui/webui/chromeos/login/wrong_hwid_screen_handler.h"
#include "chrome/browser/ui/webui/chromeos/login/oobe_screen.h"
#includ... |
#pragma once
#include "solid_box/all.hpp"
#include "solid_uv_sphere/solid_uv_sphere.hpp"
#include "wire_axes/all.hpp"
|
/*
* 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
... |
/****************************************************************************
*
* Copyright (c) 2013-2020 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. Red... |
class Solution {
public:
int missingNumber(vector<int>& nums) {
int n = nums.size();
n = n*(n+1)/2;
for(auto i: nums) n-=i;
return n;
}
};
|
/// \file
// Range v3 library
//
// Copyright Eric Niebler 2014-present
//
// Use, modification and distribution is subject to 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)
//
// Project home: https://github.com/ericniebler... |
// Copyright 2017 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/wasm/wasm-code-manager.h"
#include <iomanip>
#include "src/base/build_config.h"
#include "src/base/iterator.h"
#include "src/base/macros... |
#ifndef DECODER_RSC_BCJR_INTRA_HPP_
#define DECODER_RSC_BCJR_INTRA_HPP_
#include <vector>
#include <mipp.h>
#include "../Decoder_RSC_BCJR.hpp"
namespace aff3ct
{
namespace module
{
template <typename B = int, typename R = float>
class Decoder_RSC_BCJR_intra : public Decoder_RSC_BCJR<B,R>
{
protected:
mipp::vector<R... |
/*
* Copyright (c) Facebook, Inc. and its 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.
*/
#define FBGEMM_EXPORTS
#include "fbgemm/FbgemmI8DepthwiseAvx2.h"
#include <stdexcept> // for logic_error... |
/* Copyright 2017 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... |
/*
* Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this so... |
#include <touchgfx/hal/Types.hpp>
FONT_GLYPH_LOCATION_FLASH_PRAGMA
KEEP extern const uint8_t unicodes_SairaCondensed_Medium_12_4bpp_0[] FONT_GLYPH_LOCATION_FLASH_ATTRIBUTE =
{
// Unicode: [0x0030, zero]
0xB0, 0xEE, 0x08, 0xD4, 0x20, 0x1F, 0xB6, 0x00, 0x2F, 0xB6, 0x00, 0x3E, 0xB6, 0x00, 0x3E, 0xB6,
0x00, 0x... |
////////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include "DXPlayerMainFrame.h"
#include "DXPlayerView.h"
#include "DXPlayerDocument.h"
#include "DXPlayerControlsBar.h"
#include "DXPlayerAboutDlg.h"
#include "DXPlayerOptions.h"
#include "DXPlaye... |
/***************************************************************************
*
* Copyright (c) 2013 Baidu, Inc. 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
*
... |
/*************************************************************************/
/* Copyright (c) 2021 David Snopek */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of thi... |
// Copyright (c) 2004-2022 Yoshikatsu Fujita / LittleWing Company Limited.
// See LICENSE file for terms and conditions of use.
#include "core.h"
#include "vm.h"
#include "heap.h"
#include "subr.h"
#include "arith.h"
#include "violation.h"
// flonum?
scm_obj_t
subr_flonum_pred(VM* vm, int argc, scm_obj_t argv[])
{
... |
// RUN: %clang_cc1 %s -verify -fsyntax-only -pedantic
// expected-no-diagnostics
// This file tests the clang extension which allows initializing the components
// of a complex number individually using an initialization list. Basically,
// if you have an explicit init list for a complex number that contains two
// in... |
/* Based on nsURLParsers.cc from Mozilla
* -------------------------------------
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/M... |
// 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 "content/shell/renderer/test_runner/MockWebRTCDataChannelHandler.h"
#include <assert.h>
#include "content/shell/renderer/test_runner/WebTestDel... |
//
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
//
// 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 purpose... |
#include "stdafx.h"
#include "uespLogMonitor.h"
#include "OptionsDlg.h"
#include "afxdialogex.h"
#include "uespLogMonitorDlg.h"
IMPLEMENT_DYNAMIC(COptionsDlg, CDialogEx)
BEGIN_MESSAGE_MAP(COptionsDlg, CDialogEx)
ON_BN_CLICKED(IDC_BROWSE_BUTTON, &COptionsDlg::OnBnClickedBrowseButton)
ON_CBN_SELCHANGE(I... |
/* -------------------------------------------------------------------
* @doc
* @notice Template file wizards/projects/qtquickapplication/main.cpp
*
* @copyright Arboreus (http://arboreus.systems)
* @author Alexandr Kirilov (http://alexandr.kirilov.me)
* @created 25/07/2021 at 19:36:19
* */// --------------... |
/** \file
* Measures the distance between two graph positions along the reference path
* (approximated by the longest connecting path)
*/
#ifndef VG_ALGORITHMS_REF_PATH_DISTANCE_HPP_INCLUDED
#define VG_ALGORITHMS_REF_PATH_DISTANCE_HPP_INCLUDED
#include <structures/rank_pairing_heap.hpp>
#include "handle.hpp"
#inc... |
#include "graph.h"
#include "scheduler.h"
#include <cmath>
#include <set>
#include <queue>
#include <unordered_map>
#include <iostream>
int sameHop(Flow &f, Hop &hop, int start, bool &hopJump) {
for (int i = start; i < f.hops.size(); i++) {
if (i - start != f.hops[i].fwdttl - f.hops[start].fwdttl)
... |
// Copyright (c) 2007-2015 Hartmut Kaiser
// Copyright (c) 2013 Agustin Berge
//
// 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)
/// \file lcos/wait_any.hpp
#if !defined(HPX_LCOS_WAIT_ANY_APR_17_2012_1143AM)
#... |
// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... |
#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... |
/**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int ret = 0;
auto vowels = set<char>{'a','e','i','o','u'};
auto isvowel = [&](char c) { return vowels.count(c); };
for (auto c: s)
ret ... |
// Copyright 2021 RobosoftAI Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... |
#include "crypto.h"
#include "ssl.h" // for OpenSSLException
#include "../assert.h"
#include "../streams/random.h"
namespace Mordor {
#define SSL_CHECK(x) if (!(x)) MORDOR_THROW_EXCEPTION(OpenSSLException()); else (void)0
const std::string CryptoStream::RANDOM_IV;
CryptoStream::CryptoStream(Stream::ptr p, const EVP... |
/***************************************************************************
I'm in no mood to write documentation now, so if you have any questions
about this driver, please address them to Pat Lawrence <pjl@ns.net>. I'll
be happy to help you out any way I can.
Crystal Castles memory map.
Address A A A A A A A A... |
#include "Isis.h"
#include "Application.h"
#include "IString.h"
#include "Portal.h"
#include "ProcessMosaic.h"
#include "SpecialPixel.h"
#include "Table.h"
using namespace Isis;
using namespace std;
void testIn(int iss, int isl, int isb, int ins = 0, int inl = 0, int inb = 0);
void testOut(int piSamples, int piLines... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===---------------------------------... |
/*
* Copyright (C) 2012 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
#include "intset.h"
#include "utils.h"
__thread thread_log_t* my_log;
node_l_t* new_node_l(skey_t key, svalue_t val, EpochThread epoch){
volatile node_l_t *the_node;
the_node = (node_l_t*)EpochAllocNode(epoch, sizeof(node_l_t));
the_node->key = key;
the_node->val = val;
the_node->next = NULL;
the_node->mark... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2020, ITU/ISO/IEC
* All rights reserve... |
// Copyright (c) 2011-2022 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 "qvaluecombobox.h"
QValueComboBox::QValueComboBox(QWidget *parent) :
QComboBox(parent), role(Qt::UserRole)
... |
/* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef TURI_ACTIVITY_CLASSIFIER_H_
#define TURI_ACTIVITY_CLASSIFIER_H_
#include <core/logging/tabl... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "MessagingDebuggerPrivatePCH.h"
#define LOCTEXT_NAMESPACE "SMessagingEndpointDetails"
/* SMessagingEndpointDetails interface
*****************************************************************************/
void SMessagingEndpointDetails::Constru... |
// 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)
#include <sge/image/size_type.hpp>
#include <sge/image/color/element_count.hpp>
#include <sge/image... |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2017-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... |
#include "lua.h"
#include "../../include/lua/lua.hpp"
#include "../assets/assets.h"
#include "../assets/scene.h"
#include "../gameobject/gameobject.h"
#include "../gameobject/geometry.h"
#include "../gameobject/material.h"
#include "../gameobject/camera.h"
#include "../gameobject/rigidbody.h"
#include "../colliders/box... |
// Copyright 2022 The Google Research 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... |
/**
* \file TestCsvReader.cpp
* \author Karsten Rink
* \date 2015-04-09
*
* \copyright
* Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.... |
#if _DEBUG
TCHAR test[] = _T("This is a test of CDumpContext::HexDump\n");
afxDump.HexDump(_T("."), (BYTE*)test, sizeof(test), 20);
#endif |
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 The Apache Software Foundation. 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 ... |
#include "performance_monitor.h"
#include <cgv/utils/file.h>
#include <stack>
#include <stdio.h>
namespace cgv {
namespace render {
performance_monitor::frame_data& performance_monitor::current_frame()
{
return data.back();
}
void performance_monitor::add_measurement(const performance_measurement& pm)
{
current... |
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Electronic Arts Inc. All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#include <EAStdC/internal/Config.h>
#include <EAStdC/Int128_t.h>
#include <string.h>
#inclu... |
#include "envoy/api/v2/cds.pb.h"
#include "envoy/api/v2/discovery.pb.h"
#include "envoy/grpc/status.h"
#include "envoy/stats/scope.h"
#include "common/config/protobuf_link_hacks.h"
#include "common/config/resources.h"
#include "common/protobuf/protobuf.h"
#include "common/protobuf/utility.h"
#include "test/common/grp... |
#include "mocks.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
using testing::_;
using testing::Assign;
using testing::DoAll;
using testing::Invoke;
using testing::NiceMock;
using testing::Return;
using testing::ReturnNew;
using testing::ReturnPointee;
using testing::SaveArg;
namespace Envoy {
namespace Event ... |
#include "../utility/String.hpp"
#include "RETypeDB.hpp"
#include "RETypeDefinition.hpp"
#include "MurmurHash.hpp"
namespace sdk::murmur_hash {
sdk::RETypeDefinition* type() {
static auto t = sdk::find_type_definition("via.murmur_hash");
return t;
}
uint32_t calc32(std::wstring_view str) {
static auto c... |
#ifndef NEPOMUK_TIMETABLE_STATION_TABLE_FACTORY_HPP_
#define NEPOMUK_TIMETABLE_STATION_TABLE_FACTORY_HPP_
#include "gtfs/stop.hpp"
#include "timetable/station_table.hpp"
#include <vector>
namespace nepomuk
{
namespace timetable
{
class StationTableFactory
{
public:
static StationTable produce(std::vector<gtfs:... |
// Copyright (c) 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 "chrome/browser/chromeos/policy/cached_policy_key_loader_chromeos.h"
#include <stddef.h>
#include <utility>
#include "base/bind.h"
#includ... |
// 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.