text
string
size
int64
token_count
int64
/* * Author: Thomas Ingleby <thomas.c.ingleby@intel.com> * Copyright (c) 2014 Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * with...
2,661
896
#include "messageprovider.h" MessageProvider::MessageProvider(QObject *parent) : QObject(parent) { _socket = new QTcpSocket(this); connect(_socket, &QIODevice::readyRead, this, &MessageProvider::processMessage); connect(_socket, &QAbstractSocket::disconnected, [=](){emit this->disconnected();}...
5,114
1,746
/* * Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io> * * This file is part of the mod.io UE4 Plugin. * * Distributed under the MIT License. (See accompanying file LICENSE or * view online at <https://github.com/modio/modio-ue4/blob/main/LICENSE>) * */ #include "ModioSubsystem.h" #include "Engine/Engin...
21,223
7,834
/// \file fon9/Subr.hpp /// \author fonwinz@gmail.com #ifndef __fon9_Subr_hpp__ #define __fon9_Subr_hpp__ #include "fon9/DummyMutex.hpp" #include "fon9/MustLock.hpp" #include "fon9/SortedVector.hpp" namespace fon9 { /// Subject/Subscriber 註冊取得的 ID, 用來取消註冊時使用. /// - 此ID的編碼方式為: 在新的訂閱者註冊時, 為目前最後一個ID+1, 如果現在沒有任何訂閱者則使用1....
10,021
4,900
#ifndef SoftWire_RegisterAllocator_hpp #define SoftWire_RegisterAllocator_hpp #include "Assembler.hpp" namespace SoftWire { class RegisterAllocator : public Assembler { protected: struct AllocationData { AllocationData() { free(); } void free() { reference = 0; p...
5,141
2,056
#include <core/EConfigure.hpp> #include <fstream> namespace slc { EConfigure::EConfigure() {} EConfigure::~EConfigure() {} bool EConfigure::loadFile(EString file) { if(file.isEmpty()) return false; std::ifstream reader; reader.open(file.toStdChars(),std::ios::ate); if(!re...
707
227
//////////////////////////////////////////////////////////////////////////// // // This file is part of SNC // // Copyright (c) 2014-2021, Richard Barnett // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to de...
8,360
2,773
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2009-2012. 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.boost.org/libs/i...
11,059
3,722
/* * Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
6,301
2,029
#ifndef _OP_SOCKET_DGRAM_CHANNEL_HPP_ #define _OP_SOCKET_DGRAM_CHANNEL_HPP_ #include <atomic> #include <netinet/in.h> #include "framework/memory/offset_ptr.hpp" #include "socket/api.hpp" namespace openperf::socket { struct dgram_ipv4_addr { uint32_t addr; }; struct dgram_ipv6_addr { uint32_t addr[4]; ...
3,659
1,099
/*! * @copyright * Copyright (c) 2015-2019 Intel Corporation * * @copyright * 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 * http://www.apache.org/licenses/LICENSE-...
3,170
996
/* AFE Firmware for smarthome devices, More info: https://afe.smartnydom.pl/ */ #include "AFE-I2C-Scanner.h" #ifdef AFE_CONFIG_HARDWARE_I2C AFEI2CScanner::AFEI2CScanner() {}; void AFEI2CScanner::begin(TwoWire *_WirePort) { AFEDataAccess Data; WirePort = _WirePort; } #ifdef DEBUG void AFEI2CScanner::scanAll(...
6,725
3,109
/* * Copyright (c) 2003 The Regents of The University of Michigan * 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, ...
6,712
2,429
/* Copyright 2019 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...
8,323
3,232
// Copyright 2018 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/assistant/assistant_alarm_timer_controller_impl.h" #include <cmath> #include <utility> #include "ash/assistant/assistant_controller_impl.h...
20,626
6,180
/* * Copyright 2012 The LibYuv 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing p...
34,615
14,162
// Copyright (c) 2015-2018 Daniel Cooke // Use of this source code is governed by the MIT license that can be found in the LICENSE file. #ifndef indel_mutation_model_hpp #define indel_mutation_model_hpp #include <vector> #include <cstdint> #include "core/types/haplotype.hpp" #include "core/types/variant.hpp" namesp...
1,600
524
// 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 "media/filters/audio_file_reader.h" #include <stddef.h> #include <cmath> #include <vector> #include "base/bind.h" #include "base/callback....
10,357
3,439
#include <mainwindow.h> #include <QApplication> #include <cstring> int main(int argc, char *argv[]) { QApplication a(argc, argv); bool debug = argc > 1 && strcmp(argv[1], "-d") == 0; MainWindow w(debug); w.show(); return a.exec(); }
261
103
#include "Fraction.h" #include <sstream> Fraction::Fraction() { m_nom = new int(0); m_denom = new int(1); } Fraction::Fraction(int value) { m_nom = new int(value); m_denom = new int(1); } Fraction::Fraction(int nom, int denom) { m_nom = new int(nom); m_denom = new int(denom); makeDenomin...
1,088
460
/* Copyright 2018 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...
16,042
5,226
/* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/execution_environment/execution_environment.h" #include "shared/source/os_interface/linux/local_memory_helper.h" #include "shared/source/os_interface/linux/memory_info_impl.h" #include "shared/test/common/helpe...
4,696
1,697
#include "StdAfx.h" class ManagedFileInterface : public Rocket::Core::FileInterface { public: typedef size_t (*OpenCb)(String path HANDLE_ARG); typedef void(*CloseCb)(Rocket::Core::FileHandle file HANDLE_ARG); typedef size_t(*ReadCb)(void* buffer, size_t size, Rocket::Core::FileHandle file HANDLE_ARG); typ...
2,166
831
/* Name: K32_load Copyright: Copyright (C) SIL International. Documentation: Description: Create Date: 14 Sep 2006 Modified Date: 25 Oct 2016 Authors: mcdurdin Related Files: Dependencies: Bugs: Todo: Notes: ...
24,833
9,260
/**************************************************************************** * Copyright (C) from 2009 to Present EPAM Systems. * * This file is part of Indigo toolkit. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
2,990
1,091
/*************************************************************************** * Copyright 2019 HYUNWOO O * * 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/lice...
1,493
431
#pragma once #include <mcpe\BlockPos.hpp> #include <mcpe\Block.hpp> #include <mcpe\Dimension.hpp> class LevelChunk { public: Level getLevel() const; Dimension getDimension() const; Block getBlock(ChunkBlockPos const&) const; ChunkLocalHeight getHeightRange() const; ChunkPos* getPosition() const...
324
108
/* * * (C) 2003 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include <sstmac/replacements/mpi/mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "mpitest.h" namespace probe_intercomm{ /** static char MTEST_Descrip[] = "Test MPI_Probe() for an intercomm...
2,007
755
/* ------------------------------------------------------------------------- CxxTest: A lightweight C++ unit testing library. Copyright (c) 2008 Sandia Corporation. This software is distributed under the LGPL License v2.1 For more information, see the COPYING file in the top CxxTest directory. Under the terms of C...
3,660
1,202
using namespace System; using namespace System::Globalization; void ShowZeroPlaceholder() { // <Snippet1> double value; value = 123; Console::WriteLine(value.ToString("00000")); Console::WriteLine(String::Format("{0:00000}", value)); // Displays 00123 value = 1.2; Console::Wr...
9,131
2,963
// @@@LICENSE // // Copyright (c) 2010-2013 LG Electronics, 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 require...
1,226
399
#include <stdafx.h> #include "Sandbox.h" #include "Scripting.h" Sandbox::Sandbox(Scripting* apScripting, sol::environment aBaseEnvironment, const std::filesystem::path& acRootPath) : m_pScripting(apScripting) , m_env(apScripting->GetState().Get(), sol::create) , m_path(acRootPath) { // copy base envir...
984
338
#define __USE_MINGW_ANSI_STDIO 0 #include<bits/stdc++.h> using namespace std; #define PI acos(-1) #define pb push_back #define fi first #define se second #define TASK "commuting" #define sz(a) (int)(a).size() #define all(c) (c).begin(), (c).end() #define TIMESTAMP fprintf(stderr, "Execut...
3,031
1,571
// Handles challenges / current battles // Copyright David Stone 2020. // 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 <tm/constant_generation.hpp>
266
95
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkColorPriv.h" #include "SkColorSpace_Base.h" #include "SkColorSpaceXform.h" #include "SkOpts.h" static inline bool compute_gamut_xform(SkMatrix44* srcToDst, const ...
49,799
30,848
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "gtest/gtest.h" #include "test/providers/provider_test_utils.h" namespace onnxruntime { namespace test { static void scatter_without_axis_tests(const char* op_name, int op_version) { OpTester test(op_name, op_v...
9,838
4,364
// // Downloader.cpp // // Created by Nissim Hadar on 1 Mar 2018. // Copyright 2013 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 "Downloader.h" #include <QtWidgets/QMessageBox> Down...
1,098
364
/** Accelerated C++, Exercise 10-3, 10_3.cpp Write a test program to verify that the median function operates correctly. Ensure that calling median does not change the order of the elements in the container. */ #include "stdafx.h" #include "10_3.h" #include "10_2.h" #include <vector> using std::vector; #include <i...
871
355
#include "queue.h" Queue::Queue() { first = 0; last = 0; size = 0; } void Queue::addElem(PCB* pcb) { if (first == 0) { first = new Elem(pcb); last = first; } else { Elem* temp = new Elem(pcb); last->next = temp; last = temp; } size++; } PCB* Queue::getElem() { if (first == 0) r...
781
362
// 10298 - Power Strings #include <cstdio> #define N 1000001 int main() { int i, j; int b[N]; char str[N]; while(scanf("%s", str), str[0] != '.') { // KMP algorithm i = 0; j = -1; b[0] = -1; while(str[i]) { while(j >= 0 && str[i] != str[j]) j = b[j]; i++; j++; b[i] = j; } if(i % (i - j)) ...
389
223
// Copyright 2013 The Flutter 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 <future> #define FML_USED_ON_EMBEDDER #include "flutter/shell/common/shell_test.h" #include "flutter/flow/layers/layer_tree.h" #include "flutter...
13,787
4,282
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/il2cpp-ut...
5,630
1,864
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for(int i=0;i<n;i++) { string s; cin >> s; if(s.length()>10) { stringstream ss; int l; l=s.length()-2; ss << s[0] << l << s[s.length()-1]; ...
423
158
#include "Object.h" Object::Object() { } void Object::render(){ SDL_RenderCopy(texture->getRenderer(), texture->getTexture(), &sprite, &location); } /** \brief Sets the texture to the character * * \param Texture* _texture: The texture which you want to set to character * */ void Object::setTexture(Texture* _textu...
371
129
#include "Handler.h" #include "ServerHandler.h" using namespace ThorsAnvil::Nisse::Core::Service; TimerHandler::TimerHandler(Server& parent, double timeOut, std::function<void()>&& action) : HandlerNonSuspendable(parent, -1, EV_PERSIST, timeOut) , action(std::move(action)) {} short TimerHandler::eventActivat...
1,597
520
#include "stdafx.h" #include "RESTAPICore/RouteAccess/EpochTimeService.h" #include <chrono> #include <thread> using namespace testing; namespace systelab { namespace rest_api_core { namespace unit_test { class EpochTimeServiceTest : public Test { protected: rest_api_core::EpochTimeService m_service; }; TE...
907
340
/* * RejudgeJobBase.cpp * * Created on: 2018年11月20日 * Author: peter */ #include "RejudgeJobBase.hpp" #include "logger.hpp" #ifndef MYSQLPP_MYSQL_HEADERS_BURIED # define MYSQLPP_MYSQL_HEADERS_BURIED #endif #include <mysql++/transaction.h> #include <mysql_conn_factory.hpp> extern std::ofstream log_fp; Rejud...
5,182
2,064
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
4,734
1,403
#include <frovedis.hpp> #include <frovedis/ml/graph/graph.hpp> #include <boost/program_options.hpp> using namespace boost; using namespace frovedis; using namespace std; template <class T> void call_bfs(const std::string& data_p, const std::string& out_p, bool if_prep, size_...
4,347
1,482
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "2D.h" #include "PathAnalys...
16,845
6,300
#include "FileSystem/OsFileSync.h" #include "Log/Log.h" #include <exception> namespace Rocket { int32_t OsFileSync::Initialize(const std::string& path, const std::string& file_name, FileOperateMode mode) { mode_ = mode; file_.file_path = path; file_.file_name = file_name; file_.ful...
4,437
1,402
#include "lnk4archive.h" #include "../log.h" #include "uncompressedstream.h" #include "vfs.h" #include "../util.h" #include <SDL_endian.h> namespace Impacto { namespace Io { struct Lnk4MetaEntry : FileMeta { int64_t Offset; }; Lnk4Archive::~Lnk4Archive() { if (TOC) delete[] TOC; } IoError Lnk4Archive::Open(Fil...
2,756
1,145
#include "Environment/Template.hpp" #include "Environment/TemplateInstance.hpp" #include "Environment/ArgumentVariable.hpp" #include "Environment/ASTCallNode.hpp" #include "Environment/ASTSemanticAnalyzer.hpp" #include "Environment/SSATemplate.hpp" #include "Environment/BootstrapTypeRegistration.hpp" #include "Environm...
5,968
1,569
// -*- C++ -*- // // $Id: Acceptor_Registry.inl 73791 2006-07-27 20:54:56Z wotte $ TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_AcceptorSetIterator TAO_Acceptor_Registry::begin (void) { return this->acceptors_; } ACE_INLINE TAO_AcceptorSetIterator TAO_Acceptor_Registry::end (void) { return this->acceptors_ ...
371
171
/* * refit/scan/legacy.c * * Copyright (c) 2006-2010 Christoph Pfisterer * 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...
16,130
5,491
#include "decoration.hpp" #include <spdlog/spdlog.h> #include "protocols/wl/surface.hpp" namespace Awning::Protocols::KDE::Decoration { const struct org_kde_kwin_server_decoration_interface interface = { .release = Interface::Release, .request_mode = Interface::Request_Mode, }; std::unordered_map<wl_resou...
2,308
885
// 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 "content/renderer/dom_storage/webstoragearea_impl.h" #include "base/lazy_instance.h" #include "base/metrics/histogram.h" #include "base/time...
2,642
885
#ifndef network_cpp #define network_cpp #include<bits/stdc++.h> #include "customer.cpp" #include "utilities.cpp" using namespace std; namespace Network { string sms_otp(string name,string number) { string processed_name; for(int i=0;i<name.size() && name[i]!=' ';i++) processed_name.push_back(name[i]); ...
1,415
488
#include "pch.h" static void* GetModulePointer(HANDLE hProcess, const wchar_t* sDllPath) { Utils::Win32Handle<> th32(CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, GetProcessId(hProcess))); MODULEENTRY32W mod{ sizeof MODULEENTRY32W }; if (!Module32FirstW(th32, &mod)) return nullptr; do { if (_wcsicmp(mod.szExePa...
8,236
3,539
/* Copyright 2017 - 2021 R. Thomas * Copyright 2017 - 2021 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 req...
3,029
1,029
#include "FBPostProcessor.hh" #include "RawFrame.hh" #include "StretchScalerOutput.hh" #include "ScalerOutput.hh" #include "RenderSettings.hh" #include "Scaler.hh" #include "ScalerFactory.hh" #include "SDLOutputSurface.hh" #include "aligned.hh" #include "checked_cast.hh" #include "random.hh" #include "xrange.hh" #inclu...
12,218
5,060
#include "Basic2DGenericPFlowPositionCalc.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Utilities/interface/isFinite.h" #include <cmath> #include "CommonTools/Utils/interface/DynArray.h" #include<iterator> #include <boost/function_output_iterator.hpp> #include "vdt/vdtMath.h" namesp...
6,827
2,544
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
8,223
3,231
// // Location.cpp // PinballWarping // // Created by Eric on 6/10/15. // // #include "Location.h"
103
49
/* Bad Question Description: https://leetcode.com/problems/bag-of-tokens/discuss/197856/Bad-descriptions! Description Rewrite: You have a bag of tokens, from which you can take whichever token you want, and after you take one, you can't put it back to the bag, meaning you can use every token at most once. You st...
3,102
1,000
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2021, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (B. Van Essen, et al.) listed in // the CONTRIBUTORS file. <lbann-dev@l...
6,210
2,066
#include "Ext.h" #include "preprocessor/llvm_includes_start.h" #include <llvm/IR/IntrinsicInst.h> #include "preprocessor/llvm_includes_end.h" #include "RuntimeManager.h" #include "Memory.h" #include "Type.h" #include "Endianness.h" namespace dev { namespace vap { namespace jit { Ext::Ext(RuntimeManager& _runtimeMan...
8,509
3,179
// file : evolution/add-index/driver.cxx // copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file // Test adding a new index. // #include <memory> // std::auto_ptr #include <cassert> #include <iostream> #include <odb/database.hxx> #include <odb/tr...
3,478
1,158
// Copyright 2011-2020 Wason Technology, 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...
61,772
27,806
#include "./stack_two_queues.hpp" #include <queue> using std::queue; void stack_two_queues::pop() { if (q1.empty()) { return; } while (q1.size() != 1) { q2.push(q1.front()); q1.pop(); } q1.pop(); queue<int> temp = q1; q1 = q2; q2 = temp; } void stack_two_queues::push(int num) { q1.push...
552
266
#include "thriftlink_server.h" #include "userdef_server.h" #include <Windows.h> #include "stdio.h" #pragma comment(lib, "user32.lib") bool inject_dll(HMODULE &hmodule, HHOOK &hhook, int target_threadid); void eject_dll(HMODULE &hmodule, HHOOK &hhook); BOOL CtrlHandler( DWORD fdwCtrlType ) ; bool _break_loop = false...
3,181
1,131
/* Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, c...
9,777
3,433
#ifndef _COMMAND_LINE_ARGUMENTS_HPP_ #define _COMMAND_LINE_ARGUMENTS_HPP_ extern "C" { #include <inttypes.h> }; #include <string> #include <stdexcept> #include <sstream> #include <limits> /* Exceptions * */ struct not_enough_arguments_error : public std::runtime_error { not_enough_arguments_error(); }; struct...
7,586
2,481
/* Copyright (c) 2019, Acme Robotics, Ethan Quist, Corbyn Yhap * 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...
3,766
1,443
#include <cassert> #include <cstring> #include <numeric> #include <optional> #include <arpa/inet.h> #include <sys/socket.h> #include <sys/uio.h> #include "socket/server/icmp_socket.hpp" #include "socket/server/lwip_utils.hpp" #include "socket/server/raw_socket.hpp" #include "lwip/icmp.h" #include "lwip/icmp6.h" #inclu...
8,154
2,778
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <map> #include <memory> #include <string> #include <algorithm> #include <vector> #include <ie_layouts.h> #include <ie_iextension.h> #include <ie_blob.h> #include <ngraph/op/op.hpp> #include <ngraph/node.hpp> #include <ngr...
6,069
1,878
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include <stdint.h> #include "il2cpp-class-internals.h" #include "codegen/il2cpp-codegen.h" #include "i...
95,371
44,825
#include "canonical_pdbs.h" #include "dominance_pruning.h" #include "pattern_database.h" #include <algorithm> #include <cassert> #include <iostream> #include <limits> using namespace std; namespace pdbs { CanonicalPDBs::CanonicalPDBs( shared_ptr<PDBCollection> pattern_databases, shared_ptr<MaxAdditivePDBSub...
1,342
449
// // Utility.cpp // // $Id: //poco/Main/Data/SQLite/src/Utility.cpp#5 $ // // Library: SQLite // Package: SQLite // Module: Utility // // Implementation of Utility // // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // Permission is hereby granted, free of charge, to any p...
12,163
4,455
/* * 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 3 of the License, or * (at your option) any later version. * * Written (W) 2012 Sergey Lisitsyn * Copyright (C) 2012 Serg...
2,146
831
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2010, Rice University * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
10,956
3,205
/// \file // Range v3 library // // Copyright Eric Niebler 2013-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...
1,797
620
/* * ClusteringProjector.h * * Created on: 07.01.2013 * Author: Christian Staudt (christian.staudt@kit.edu) */ #ifndef NETWORKIT_COARSENING_CLUSTERING_PROJECTOR_HPP_ #define NETWORKIT_COARSENING_CLUSTERING_PROJECTOR_HPP_ #include <networkit/graph/Graph.hpp> #include <networkit/structures/Partition.hpp> na...
2,261
826
#ifdef _WIN32 #include "Timer.h" #include <Windows.h> using namespace Eleusis; using namespace std; static std::map<void*, Timer*> _activeTimers; void CALLBACK _timerProc(_In_ HWND hwnd, _In_ UINT uMsg, _In_ UINT_PTR idEvent, _In_ DWORD dwTime) { auto l_timerIter = _activeTimers.find(reinterpret_cast<void*>(id...
1,809
669
/************************************************************************* * * * Tokamak Physics Engine, Copyright (C) 2002-2007 David Lam. * * All rights reserved. Email: david@tokamakphysics.com * * ...
90,628
28,627
// Copyright 2020 Tier IV, 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 i...
4,851
1,762
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch.hpp" #include "SceneTrackStatic.h" #include "TestCommon.h" #include "tinydir/tinydir.h" #include "TestCRC.h" typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; typedef uint64_t u64; typed...
1,822
755
//Copyright (c) 2016 Artem A. Mavrin and other contributors #include "DialogueSystemPrivatePCH.h" #include "BTComposite_Context.h" UBTComposite_Context::UBTComposite_Context(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) { NodeName = "Context"; ExecutionMode = EContextExecutionMode::CE_Sequ...
1,929
651
#include "mp2v_hdr.h" #include "misc.hpp" bool write_sequence_header(bitstream_writer_c* m_bs, sequence_header_t &sh) { m_bs->align(); m_bs->write_bits(START_CODE(sequence_header_code), 32); m_bs->write_bits(sh.horizontal_size_value, 12); m_bs->write_bits(sh.vertical_size_value, 12); m_bs->write_bi...
10,251
4,252
//---------------------------------------------------------------------------- // ObjectWindows // Copyright (c) 1995, 1996 by Borland International, All Rights Reserved // //---------------------------------------------------------------------------- #include <owl/pch.h> #if !defined(OWL_TIMEGADG_H) # include <owl/tim...
2,969
1,097
/******************************************************************************* * disp_sdl.cpp * * Written by Christoph Hormann <chris_hormann@gmx.de> * * SDL (Simple direct media layer) based render display system * * from Persistence of Vision Ray Tracer ('POV-Ray') version 3.7. * Copyright 2003-2009 Persist...
19,610
8,157
#include <vector> #include "caffe/layers/tile_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void Tile(const int nthreads, const Dtype* bottom_data, const int tile_size, const int num_tiles, const int bottom_tile_axis, Dtype* top_data) { HIP_KERNE...
2,630
1,013
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wno-nullability-declspec %s -verify #if __has_feature(nullability) #else # error nullability feature should be defined #endif typedef decltype(nullptr) nullptr_t; class X { }; // Nullability applies to all pointer types. typedef int (X::* _Nonnull member_function_type_1...
3,608
1,192
// 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 "third_party/blink/renderer/modules/webgl/oes_draw_buffers_indexed.h" namespace blink { OESDrawBuffersIndexed::OESDrawBuffersIndexed(WebGLRende...
3,377
1,071
#include "std.h" #include "compile.h" #include "wildcard.h" #include "process.h" #include "env.h" namespace compile { Target::Target(const Path &wd, const Config &config) : wd(wd), config(config), includes(wd, config), compileVariants(config.getArray("compile")), buildDir(wd + Path(config.getVars("buildDir...
15,269
5,966
#include "../common/common.hpp" #include <edyn/sys/integrate_linvel.hpp> TEST(integrate_linvel, test) { entt::registry registry; auto e0 = registry.create(); auto e1 = registry.create(); auto e2 = registry.create(); auto& p0 = registry.emplace<edyn::position>(e0, 2.f, 3.f, 4.f); const auto p0_...
1,278
580
#include <iostream> #include <cstring> using namespace std; struct stringy { char *str; int ct; }; void set(stringy &stry, char *str); void show(const stringy &stry, int times = 1); void show(const char *str, int times = 1); int main() { stringy beany; char testing[] = "Reality isn't what it uesd to...
922
367
/* * Copyright 2017-2019 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 "...
11,056
3,430
// Copyright (c) 2013-2017, Matt Godbolt // 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 conditions...
4,085
1,508
// Copyright (c) 1999-2018 David Muse // See the file COPYING for more information #include <sqlrelay/sqlrserver.h> #include <rudiments/domnode.h> #include <rudiments/stdio.h> //#define DEBUG_MESSAGES 1 #include <rudiments/debugprint.h> #include <config.h> #ifndef SQLRELAY_ENABLE_SHARED extern "C" { #include "sq...
4,026
1,641