text
string
size
int64
token_count
int64
// { Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends //User function template for C++ class Solution{ public: // swap k'th element from beginning and end void swapKth(int *arr, int n, int k) { int temp = arr[k - 1]; arr[k - 1] = arr[n - k]; arr[n - k] = temp;...
755
291
/** * Copyright 2013-2015, Facebook, Inc. * 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. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include <node.h>...
1,635
596
// Copyright 2021 Xsolla Inc. All Rights Reserved. // @author Vladimir Alyamkin <ufna@ufna.ru> #include "XsollaStore.h" #include "XsollaStoreDefines.h" #include "XsollaStoreSettings.h" #include "Developer/Settings/Public/ISettingsModule.h" #define LOCTEXT_NAMESPACE "FXsollaStoreModule" const FName FXsollaStoreModu...
1,618
574
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #include "strike.h" #include "util.h" #include "targetimpl.h" #include "host.h" #include <string> Target* Target::s...
9,064
2,653
/** * ValueIterator.cpp * * Implementation of the value iterator * * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> * @copyright 2014 Copernica BV */ #include "includes.h" /** * Set up namespace */ namespace Php { /** * Constructor * @param hashtable The hashtable to iterate over ...
3,731
1,169
//-------------------------------------------------------------------------- // Name: // PacWriteParticles // Environment: //------------------------------------------------------------------------ #include "BaBar/BaBar.hh" #include "CLHEP/Random/RandFlat.h" #include "PacSim/PacWriteParticles.hh" #include "PacSim/Pac...
3,123
1,109
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
10,714
3,601
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "scatter_elements_update_kernel_ref.h" #include "kernel_selector_utils.h" #include <string> #include <vector> namespace kernel_selector { static size_t GetScatterElementsUpdateChannelIndex(const scatter_elements_update_par...
5,769
1,919
// Copyright 2021 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 ...
6,166
2,516
/*============================================================================= Copyright (c) 2014 Kohei Takahashi 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) =============================================...
1,061
365
/* * Partial Copyright (C) 2019-2021 Xilinx, Inc * * Microsoft provides sample code how RESTful APIs are being called * * 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://www.a...
21,858
7,456
// 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
7,093
2,501
/* -------------------------------------------------------------------------- * * File TheStack.cpp * * Ported By Young-Hwan Mun * Contact xmsoft77@gmail.com * * -------------------------------------------------------------------------- * * Copyright (c)...
11,297
4,657
// // // inline bool check_filename(const std::string &given_filename) { switch(given_filename == "") { case false: return false; break; case true: return true; break; } };
182
68
// Copyright Nathaniel Christen 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 "kcm-env.h" #include "kcm-scopes/kcm-scope-system.h" #include <QDebug> KCM_Env::KCM_Env...
968
433
#include "midi_input.h" #include <iomanip> #include <iostream> #include <sstream> namespace primesynth { void checkMMResult(MMRESULT result) { if (result != MMSYSERR_NOERROR) { char msg[MAXERRORLENGTH]; midiInGetErrorTextA(result, msg, sizeof(msg)); std::ostringstream ss; ss << "MID...
5,563
1,857
/* * (C) Copyright 2020- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
10,832
3,671
// // TextOverlay.cpp // interface/src/ui/overlays // // Copyright 2014 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "TextOverlay.h" #include <QQuickItem> #include <QFontMetrics> #...
1,045
398
// Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- // Function InfoEntry.InfoEntry_C.DoesIt...
10,979
3,490
#include "Window.hpp" namespace Core { namespace Graphics { void error_callback(GLint, const GLchar*); void windowResize_callback(GLFWwindow*, GLint, GLint); Window::Window(const GLchar* title, GLint width, GLint height, glm::vec4 clearColor) : title(title), width(width), height(height), clearColor(clear...
5,076
2,229
#include "MissionScreen.h" #include "TextureManager.h" #include "Camera.h" #include "PlayerManager.h" #include "ResourceManager.h" #include "TextSanitizer.h" #include "MusicPlayer.h" #include "StateMachine.h" #include "Chapter.h" MissionScreen::MissionScreen(sf::RenderWindow* _pRenderWindow) : GameScreen(_pRenderWindo...
4,012
1,441
#include "../softbreeze.h" #include "vector4.h" softbreeze_namespace_beg void Vector4::Lerp( const Vector4 &v1, const Vector4 &v2, const float l ) { if(l <= 0.0f) { (*this) = v1; } else if (l >=1.0){ (*this) = v2; } else { (*this) = v1 + l*( v2 - v1 ); } } softbreeze_namespace_end
302
153
#include <array> #include <cassert> #include <chrono> #include <fstream> #include <iomanip> #include <iostream> #include <random> #include "bootstrapping_key.hpp" #include "gatebootstrapping.hpp" #include "hom_nand.hpp" #include "identity_key_switching.hpp" #include "key.hpp" #include "key_switching_key.hpp" #include ...
3,563
1,321
#include "PrimDummy.h" #include <macroses.h> namespace rt { bool CPrimDummy::intersect(Ray &) const { RT_ASSERT_MSG(false, "This method should never be called. Aborting..."); } bool CPrimDummy::if_intersect(const Ray &) const { RT_ASSERT_MSG(false, "This method should never be called. Abor...
747
263
//////////////////////////////////////////////////////////// // // LouEngine - Multiplatform Game Engine Project // Copyright (C) 2016-2017 Jesus Lou (loucocito@gmail.com) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages ari...
4,214
1,435
#ifndef VG_MIN_DISTANCE_HPP_INCLUDED #define VG_MIN_DISTANCE_HPP_INCLUDED #include <unordered_set> #include <jansson.h> #include "snarls.hpp" #include "hash_map.hpp" #include "bdsg/hash_graph.hpp" using namespace sdsl; namespace vg { /** * The distance index. Stores minimum distances among nodes in each * netg...
25,892
7,676
#include "custom_angle.h" CustomAngle::CustomAngle() { this->degree = 0; } CustomAngle::CustomAngle(double degree_) : degree(degree_) { } CustomAngle::CustomAngle(CustomAngle &custom_angle) { this->degree = custom_angle.get_degree(); } double CustomAngle::get_degree() { return this->degree; } void Cust...
580
203
/* Branch Monitoring Project * Marcus Botacin - UNICAMP - 2017 * PIN implementation of Branch Monitor * Used for simple comparisons and validation purposes * Inspired on PIN example: instcount0.cpp */ /* Include Block */ #include <iostream> #include <fstream> #include <sstream> #include <string> #include "pin.H"...
5,672
2,056
// // main.cpp // Exercise 5 // // Created by Zhehao Li on 2020/2/28. // Copyright © 2020 Zhehao Li. All rights reserved. // // Test the structures and interfaces of class Line #include "Point.hpp" #include "Line.hpp" #include <iostream> #include <string> using namespace std; int main(int argc, const char * argv...
1,918
556
#include "ros/ros.h" #include "pouco2000_ros/pouco2000.hpp" // keys param #define KEY_PARAM_POTENTIOMETERS_CIRCLE "potentiometers/circle/" #define KEY_PARAM_POTENTIOMETERS_SLIDER "potentiometers/slider/" #define KEY_PARAM_RATE "~rate" /** * @brief load parameter converter from rosparam * * @param key the key wh...
2,831
969
#ifndef EVENTOHISTORICO_HPP #define EVENTOHISTORICO_HPP #include <iostream> #include <string> #include <set> #include <cassert> #include <sstream> #include "Fecha.hpp" using namespace std; typedef string Suceso; class EventoHistorico { private: pair<Fecha, set<Suceso>> eventos; public: ...
4,519
1,628
#include "NCPhysicsModel.hh" #include <iostream> #include "NCrystal/internal/NCMath.hh"//for NC::linspace int main() { //Very simple test which instantiates our model and calculates a few cross //sections and samples a few scattering events: auto pm = NCP::PhysicsModel( 2.0/*sigma below lambda_cutoff*/, 5.0/*la...
987
390
/*****************************************************************/ /* NAME: Michael Benjamin */ /* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */ /* FILE: MarineViewer.cpp */ /* DATE: May 31st, 2005 ...
81,176
32,284
/*========================================================================= Program: Visualization Toolkit Module: vtkDIYAggregateDataSetFilter.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...
25,803
8,281
#ifndef PASTEL_UTILITY_TUPLE_META_REVERSE_HPP # define PASTEL_UTILITY_TUPLE_META_REVERSE_HPP # include <tuple> namespace pastel { namespace utility { namespace tuple { namespace meta { namespace reverse_detail { template <typename Result, typename... Args> ...
1,147
347
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2016 Francois Beaune, The appleseedhq Organization // ...
32,922
11,625
/* * 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...
2,673
930
// 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 "third_party/blink/renderer/platform/loader/fetch/cached_metadata.h" #include "third_party/blink/renderer/platform/loader/fetch/url_loader/cache...
2,834
931
/*You are required to complete below methods*/ /*inserts an element x at the back of the queue q */ void push(queue<int> &q,int x) { q.push(x); } /*pop out the front element from the queue q and returns it */ int pop(queue<int> &q) { if (q.empty()) return -1; const auto x = q.front(); q.pop(); ...
674
249
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001-2003 Russell L. Smith. * * All rights reserved. Email: russ@q12.org Web: www.q12.org * * ...
5,722
1,905
#include <iostream> #include <cassert> using namespace std; struct A { virtual ~A() { }; }; struct B : A { }; int main() { B bobj; A* ap = &bobj; void * vp = dynamic_cast<void *>(ap); cout << "Address of vp : " << vp << endl; cout << "Address of bobj: " << &bobj << endl; assert(vp == &bobj); }
314
130
// This file is part of the dune-xt-data project: // https://github.com/dune-community/dune-xt-data // Copyright 2009-2018 dune-xt-data developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://opensou...
197,382
174,586
#pragma once #include "dirichlet_updater.hpp" namespace lorad { class SubsetRelRateUpdater : public DirichletUpdater { public: typedef std::shared_ptr< SubsetRelRateUpdater > SharedPtr; SubsetRelRateUpdater(Model::SharedPtr model); ...
3,095
972
/* Copyright (c) 2017 TOSHIBA Digital Solutions Corporation This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any la...
30,889
13,399
#ifndef CPPNOTESMAIN_SERIALIZE_AND_DESERIALIZE_BT_HPP #define CPPNOTESMAIN_SERIALIZE_AND_DESERIALIZE_BT_HPP /* https://leetcode.com/problems/serialize-and-deserialize-binary-tree/ Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory ...
5,100
1,508
#include "AsmCmd.h" AsmCmd::AsmCmd(Json::Value json) : LeafCmd(json) { } Json::Value AsmCmd::toJson() { Json::Value result; result[fieldName::type] = "cmd"; result[fieldName::cmd] = "asm"; result[fieldName::args].append(_cmdJson[fieldName::command]); return result; }
296
114
/********************************************************************* (c) Matt Marchant 2017 - 2019 http://trederia.blogspot.com xygineXT - Zlib license. 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 thi...
2,781
769
/** \class HLTPMDocaFilter * * Original Author: Jeremy Werner * Institution: Princeton University, USA * Contact: Jeremy.Werner@cern.ch * Date: February 21, 2007 * */ #include "HLTrigger/Egamma/interface/HLTPMDocaFilter.h" #include "DataFormats...
3,090
1,135
class Solution { public: bool XXX(string s) { int l = s.size(); if (l%2==1) return false; string p; char c,a; for(int i = 0;i<l;i++) { a = s[i]; if(a=='(')p.push_back('('); else if (a=='[')p.push_back('['); else if (a==...
977
335
/*========================================================================= Program: ParaView Module: pqServer.cxx Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms of the ParaView l...
14,574
4,335
// AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from mynteye_types.djinni #pragma once #include <cstdint> #include <utility> namespace mynteye_jni { /** Image data */ struct ImgData final { /** Image frame id */ int64_t frame_id; /** Image timestamp in 1us */ int64_t timestam...
670
254
#include <bits/stdc++.h> using namespace std; int main() { char a[2002], b[2002]; int i, n, j = 1, med; cin>>n>>a; //if(n%2 == 0) med = n/2 - 1; //else med = (n-1)/2; //cout<<med<<endl; b[med] = a[0]; j = med+1; if(n%2 != 0) { for(i = 2; a[i] != '\0'; i...
892
430
#include "origin_drm.h" #include <QLineEdit> #include <QCheckBox> #include <QStandardPaths> OriginDRM::OriginDRM() : DRMType("<b>Origin</b>"){} /** Check if Origin exists or not and set various class variables accordingly. */ void OriginDRM::checkOriginExists() { QDir originRoot; QDir originFolder; #if define...
4,373
1,337
#pragma once #include <tssplitter/bitfield.hpp> #include <tssplitter/byte_container.hpp> namespace tssplitter { namespace ts { namespace psi { using pointer_field_type = bitfield< 8>; using table_id_type = pointer_field_type::next_bitfield< ...
1,890
574
// Copyright 2017 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "fxjs/xfa/cjx_instancemanager.h" #include <algorithm> #include <vect...
11,317
4,050
// 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 <fidl/examples/echo/cpp/fidl.h> #include <lib/async-loop/cpp/loop.h> #include <lib/async/default.h> #include <lib/sys/cpp/component_context.h> #in...
1,108
434
/* * CheckedObject.cpp * * Created on: Nov 23, 2013 * Author: wolong */ #include "ObjectCounter.h" using namespace Tizen::Base; using namespace Tizen::Base::Collection; ObjectCounter::ObjectCounter() { // TODO Auto-generated constructor stub } ObjectCounter::~ObjectCounter() { // TODO Auto-generated d...
1,356
465
// // Created by 王庆 on 2020-03-31. // #include "AVPlayStatus.h" AVPlayStatus::AVPlayStatus() { this->exit= false; }
123
61
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <fbl/alloc_checker.h> #include <fbl/auto_call.h> #include <fbl/auto_lock.h> #include <string.h> #include "intel-dsp-ipc.h" #include "intel-dsp.h"...
10,160
3,805
///////////////////////////////////////////////////////////////////////////////////// // DVBSLocator.cpp : Implementation of CDVBSLocator // Copyright (c) Microsoft Corporation 1999-2000. #include "stdafx.h" #include "Tuner.h" #include "DVBSLocator.h" DEFINE_EXTERN_OBJECT_ENTRY(CLSID_DVBSLocator, CDVBSLocator...
696
266
// -------------------------------------------------------------------------- // Module Name: Queue.cpp // // Copyright (c) 1999-2000, Microsoft Corporation // // This file contains a class to handle a queue element and a class to handle // a queue of queue elements. // // History: 1999-11-07 vtan ...
5,406
1,630
// // Created by henri on 27/04/21. //
40
24
#include <libcouchbase/couchbase.h> #include <libcouchbase/ixmgmt.h> static void ixmgmt_callback(lcb_t, int, const lcb_RESPN1XMGMT *resp) { if (resp->rc == LCB_SUCCESS) { printf("Operation successful!\n"); } else if (resp->rc == LCB_KEY_EEXISTS) { printf("Index already exists!\n"); } else {...
1,284
530
//---------- p_param.cpp ----------------------------------------------------- //---------------------------------------------------------------------------- #include "precHeader.h" //---------------------------------------------------------------------------- #include "p_param.h" #include "pOwnBtnImageStd.h" #include ...
9,766
3,827
/* * Copyright (c) 2020-2022, NVIDIA CORPORATION. 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 ...
4,183
1,592
class Solution { public: string complexNumberMultiply(string num1, string num2) { /* (a + ib) * (c + id) = (ac - bd) + i(bc + ad); */ int l1 = num1.size(), l2 = num2.size(); int a = 1, b = 1, c = 1, d = 1; auto isInt = [](char c) { return (c < '...
1,483
517
/** @file ***************************************************************************** Implementation of interfaces for the "basic radix-2" evaluation domain. See basic_radix2_domain.hpp . ***************************************************************************** * @author This file is part of libsnark,...
3,048
1,139
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2022 Ryo Suzuki // Copyright (c) 2016-2022 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D/Effect.hpp> # include <Siv3D/...
2,903
1,193
// Copyright 2021 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/ash/account_manager/account_apps_availability_factory.h" #include "base/files/file_path.h" #include "base/no_destructor.h" #incl...
2,407
704
/* * Copyright (C) 2005-2019 by Centre National d'Etudes Spatiales (CNES) * * This file is licensed under 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 restric...
8,679
2,832
//----------------------------------*-C++-*----------------------------------// /*! * \file c4/test/tstopstream.cc * \author Kent Budge * \date Wed Apr 28 09:31:51 2010 * \brief Test c4::determinate_swap and c4::indeterminate_swap functions * \note Copyright (C) 2016-2019 Triad National Security, LLC. * ...
1,757
532
/* * Copyright (C) 2020 The Android Open Source Project * * 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 app...
2,148
739
/* PIPS-NLP * * Authors: Nai-Yuan Chiang * * (C) 2015 Argonne National Laboratory */ #include "amplGenStochInput_AddSlack.hpp" #include "AmplData_NL.hpp" #include <iostream> #include <string> #include <fstream> #include <lim...
20,454
9,306
// Copyright 2014 Tommy Ettinger. 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 applic...
9,629
4,168
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Enum #include "Syste...
5,262
1,538
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condit...
9,608
3,015
//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------...
949
284
/* Plugin-SDK (Grand Theft Auto Vice City) source file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #include "CShadowCamera.h" PLUGIN_SOURCE_FILE int addrof(CShadowCamera::Create) = ADDRESS_BY_VERSION(0x626E70, 0...
4,024
1,861
/** * @file ParameterHandle.cpp * @author alex * @date 2017年2月20日 * @version 1.0 * * @brief <brief> * * @section DESCRIPTION * * Your description * */ #include <gateway/ParameterAPI.h> #include <gateway/ParameterHandler.hpp> #include "gateway/Gateway.hpp" #include "json/json.hpp" #inc...
1,233
442
#include <sstream> #include <aat/core/exchange/exchange.hpp> namespace aat { namespace core { str_t ExchangeType::toString() const { if (name != "") { return "Exchange+(" + name + ")"; } return "No Exchange"; } json ExchangeType::toJson() const { json ret; return ret; } } // n...
354
123
// 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 "content/browser/renderer_host/render_process_host_mojo_impl.h" #include "base/platform_file.h" #include "content/common/mojo/mojo_channel_init....
3,029
952
// Copyright 2021 The IREE Authors // // Licensed 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 //===- AdrenoConfig.h - Adreno CodeGen Configurations ---------------------===// // // This file ...
1,891
602
#include "GridShader.h" #include <cmath> #include <tiny-piyo/Shaders.h> void GridShader::Init() { this->_programID = CreateShader( R"( #version 330 core layout(location = 0) in vec3 vertPosition; layout(location = 1) in vec4 vertColor; out vec3 fragPositi...
7,075
2,417
/************************************************************************** * Copyright(c) 1998-2018, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are ...
79,156
37,845
#include <QtTest> #include <QCoreApplication> #include "plot.h" #include "qcustomplot.h" #include "createplot.h" #include "mainwindow.h" class Test1 : public QObject { Q_OBJECT public: Test1(); ~Test1(); private slots: void test_plot(); void test_createplot(); private: Plot p; CreatePlo...
2,481
1,091
// Copyright (c) 2017 Couchbase, Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in w...
12,315
4,602
#include "SimTracker/SiStripDigitizer/interface/SiPileUpSignals.h" #include "SimDataFormats/TrackingHit/interface/PSimHit.h" void SiPileUpSignals::resetSignals() { signal_.clear(); } void SiPileUpSignals::add(uint32_t detID, const std::vector<float>& locAmpl, const ...
808
277
// // $Id$ // // // Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu> // // Copyright 2009 Vanderbilt University - Nashville, TN 37232 // // 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...
2,252
723
/* * Copyright 2009-2017 Alibaba Cloud 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...
2,920
945
// stdafx.cpp : source file that includes just the standard includes // SOSHook.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file HMODULE g_hModule = NULL...
1,431
562
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //***************************************************************************** // File: gdbjit.cpp // // // NotifyG...
105,166
37,592
/* -*- Mode: c++ -*- */ /* VER: $Id: MathFunctions.h,v 1.2 2006/11/06 15:48:53 cdimitrakakis Exp cdimitrakakis $ */ // copyright (c) 2006 by Christos Dimitrakakis <christos.dimitrakakis@gmail.com> /*************************************************************************** * ...
3,034
1,135
#include "stdafx.h" #include "packet_decoder_mp3_common.h" #include "mp3_utils.h" unsigned packet_decoder_mp3_common::parseDecoderSetup( const GUID & p_owner,t_size p_param1,const void * p_param2,t_size p_param2size ) { if (p_owner == owner_MP3) return 3; else if (p_owner == owner_MP2) return 2; else if (p...
1,267
499
/* Copyright (c) 2016 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...
6,398
1,970
// RUN: %clang_cc1 -std=c++1z -fexceptions -fcxx-exceptions -fcilkplus -ftapir=none -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s int return_stuff(int i); int return_spawn_test(int i){ return _Cilk_spawn return_stuff(i); // expected-warning{{no parallelism from a '_Cilk_spawn' in a return state...
2,860
1,251
#include "missile.hpp" #include "skyland/entity/explosion/explosion.hpp" #include "skyland/room.hpp" #include "skyland/room_metatable.hpp" #include "skyland/rooms/forcefield.hpp" #include "skyland/rooms/missileSilo.hpp" #include "skyland/skyland.hpp" namespace skyland { Missile::Missile(const Vec2<Float>& positio...
3,127
1,080
#include "Buma3DPCH.h" #include "SwapChainD3D12.h" namespace buma3d { namespace /*anonymous*/ { DXGI_USAGE GetNativeBufferFlags(SWAP_CHAIN_BUFFER_FLAGS _flags) { DXGI_USAGE result = 0; if (_flags & SWAP_CHAIN_BUFFER_FLAG_SHADER_RESOURCE) result |= DXGI_USAGE_SHADER_INPUT; if (_flags & SWAP_CHAI...
29,080
12,857
#ifndef LIGHT_CIRCUIT_GATES_HPP_ #define LIGHT_CIRCUIT_GATES_HPP_ #include "common/Infrastructure/Infrastructure.hpp" #include "common/Utils/ErrorHandling.hpp" #include <algebraLib/FieldElement.hpp> #include <algebraLib/PolynomialDegree.hpp> #include "common/langCommon/Sequence.hpp" #include <vector> #include <map> #...
9,396
2,773
/* * Copyright 2015 The SageTV 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 re...
33,635
15,377
/** * @authors Lewis Tian (taseikyo@gmail.com) * @date 2020-06-20 12:46:25 * @link github.com/taseikyo */ /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ...
1,049
466