text
string
size
int64
token_count
int64
#ifndef RESULT_VERSION_HPP #define RESULT_VERSION_HPP #pragma once #define RESULT_VERSION_MAJOR 0 #define RESULT_VERSION_MINOR 2 #define RESULT_VERSION_PATCH 0 #define RESULT_VERSION_CODE (RESULT_VERSION_MAJOR * 10000 + RESULT_VERSION_MINOR * 100 + RESULT_VERSION_PATCH) #define RESULT_VERSION_STRING "0.2.0" #end...
323
146
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
22,188
6,838
#ifndef _YOLOX_CPP_CORE_HPP #define _YOLOX_CPP_CORE_HPP #include <opencv2/core/types.hpp> namespace yolox_cpp{ /** * @brief Define names based depends on Unicode path support */ #define tcout std::cout #define file_name_t std::string #define imread_t ...
10,785
3,186
//---------------------------------------------------------------------------// //! //! \file tstSphericalDirectionalCoordinateConversionPolicy.cpp //! \author Alex Robinson //! \brief Spherical directional coordinate conversion policy unit tests //! //----------------------------------------------------------------...
8,713
2,644
#include <string> #include <iostream> #include <fstream> #include <algorithm> #include <regex> #include <vector> #include "extensions_loader.h" #include "settings.h" #include "helpers.h" #include "auth/authbasic.h" #include "api/os/os.h" using namespace std; using json = nlohmann::json; namespace extensions { vecto...
2,119
602
/* * Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D * * 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 sof...
2,159
599
#include "Character.h" namespace rpgText { Character::Character(std::string name_, int level, float str, float sta, float inte, float agi, float luck) { name = name_; BaseStats bs(str, sta, inte, agi, luck); stats = Stats(bs, level); cStats = stats; ...
6,876
2,230
#include "CameraScripting.h" void CameraScripting::init() { lua_register(L, "getMainCameraIndex", getMainCameraIndex); lua_register(L, "setMainCameraIndex", setMainCameraIndex); lua_register(L, "getMainCameraEntity", getMainCameraEntity); lua_register(L, "getCameraCount", getCameraCount); } int CameraScr...
2,243
913
#ifndef DLLOADER_HPP #define DLLOADER_HPP #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <Windows.h> #include <string.h> #include <tchar.h> #include <boost/utility.hpp> namespace air{namespace common { class DllLoader:boost::noncopyable { public: DllLoader(const TCHAR* dll_name) ...
1,246
478
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
7,678
2,590
#pragma once #include "../base_def.hpp" #include "LolCollectionsCollectionsChampionMastery.hpp" namespace lol { struct LolCollectionsCollectionsTopChampionMasteries { uint64_t summonerId; uint64_t score; std::vector<LolCollectionsCollectionsChampionMastery> masteries; }; inline void to_json(json& j...
780
276
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd and/or its subsidiary(-ies). ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL3$ ** Commercial License Usage ** Licensees holding valid ...
49,584
15,852
/* ============================================================================== This is an automatically generated GUI class created by the Introjucer! Be careful when adding custom code to these files, as only the code within the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loa...
11,290
3,987
#include "minnesota_potential.hpp" minnesotaPotential::minnesotaPotential(int numberOfParticles, double density) { L = pow((numberOfParticles)/density, 1./3.); piOverL = M_PI/L; VRfactor = V_0R/(L*L*L)*pow(M_PI/kappa_R,1.5); VTfactor = -V_0T/(L*L*L)*pow(M_PI/kappa_T,1.5); VSfactor = -V_0S/(L*L*L)*pow(M_PI/...
9,342
5,039
#ifndef ROPUFU_AFTERMATH_FORMAT_MAT4_HEADER_HPP_INCLUDED #define ROPUFU_AFTERMATH_FORMAT_MAT4_HEADER_HPP_INCLUDED #include "../algebra/matrix.hpp" #include <cstddef> // std::size_t #include <cstdint> // std::int32_t #include <fstream> // std::ifstream, std::ofstream #include <ios> // std::ios_base::failure #incl...
12,275
4,201
/******************************************************************************* * Copyright 2020 Intel Corporation * * 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.o...
1,425
472
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
9,510
3,530
#include "gtest/gtest.h" #include "gmock/gmock.h" #include <arkClient.h> #include "mocks/mock_api.h" using testing::_; using testing::Return; namespace { using namespace Ark::Client; using namespace Ark::Client::api; constexpr const char* tIp = "167.114.29.55"; constexpr const int tPort = 4003; } // namespace /*...
14,544
7,181
#include "options.hpp" namespace options { bool borders = true; bool debug = false; bool mute = false; } // namespace options
130
41
#include "processor.h" double Processor::Utilization() { vector<string> cpuInformation = LinuxParser::CpuUtilization(); double previdle = prevIdle + prevIOWait; double idle = stod(cpuInformation[CPUStates::kIdle_]) + stod(cpuInformation[CPUStates::kIOwait_]); double prevNonIdle = prevUser + prevNice + prevSys...
820
295
/* * 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...
1,884
599
/* ************************************************************************ * Copyright 2019-2020 Advanced Micro Devices, Inc. * ************************************************************************ */ #include "roclapack_potrf.hpp" template <typename S, typename T, typename U> rocblas_status rocsolver_potrf_imp...
3,735
1,311
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "engines_util/test_case.hpp" #include "engines_util/test_engines.hpp" #include "gtest/gtest.h" #include "ngraph/ngraph.hpp" #include "util/test_control.hpp" using namespace std; using namespace ngraph; static string s_man...
11,643
4,084
/* * Copyright (c) 2016-2018, 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 ...
18,066
5,770
// =========================================================================== // Copyright 2013 Gennaro Prota // // Licensed under the 3-Clause BSD License. // (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or // <https://opensource.org/licenses/BSD-3-C...
2,751
734
// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sourc...
10,153
4,385
#include "trainerwrapper.h" #ifdef TrainerWrapper #undef TrainerWrapper #endif #ifndef TrainerWrapper_API #define TrainerWrapper_API TrainerWrapper #endif TrainerWrapper_API::TrainerWrapper_API(int n_subjects, int network_size) { pImpl = new TrainerWrapper_impl(n_subjects, network_size); } Trainer...
1,601
538
/*----------------------------------------------------------------------------*/ /* */ /* Module: map.cpp */ /* Author: Jatin ...
4,687
1,664
#include<iostream> using namespace std; int main() { int N; cin>>N; int a[100]; for(int i=0;i<N;i++) { cin>>a[i]; } for(int i=0;i<N;i++) { if(a[i] == i) { cout<<i; return 0; } } cout << "N"; return 0; }
228
140
#ifndef PottsElement3_hpp__pyplusplus_wrapper #define PottsElement3_hpp__pyplusplus_wrapper namespace py = pybind11; void register_PottsElement3_class(py::module &m); #endif // PottsElement3_hpp__pyplusplus_wrapper
216
77
/* ***************************************************************************** Copyright (c) 2016-2017, The Regents of the University of California (Regents). All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions a...
6,528
1,997
#include "stdafx.h" #include <random> #include <string> #include "Application.h" #include "utility.h" #pragma comment(lib, "d2d1") #pragma comment(lib, "Dwrite") Application::Application() : m_hwnd(NULL), fps(0) { mouse = std::make_shared<Mouse>(); std::default_random_engine randomEngine; std::uniform_real_di...
5,841
2,078
/* * @lc app=leetcode id=173 lang=cpp * * [173] Binary Search Tree Iterator * * https://leetcode.com/problems/binary-search-tree-iterator/description/ * * algorithms * Medium (57.87%) * Likes: 2998 * Dislikes: 285 * Total Accepted: 347.9K * Total Submissions: 599.5K * Testcase Example: '["BSTIterato...
2,567
878
#include "profile.h" #include <stdlib.h> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <cstring> #include <vector> #include <map> #include <cassert> #include "utils.h" using namespace std; // load the phylogenetic profile PhyloProf LoadPhyloProfiles(string profile_path, string ...
3,357
1,120
// https://leetcode.com/problems/accounts-merge/ // Given a list of accounts where each element accounts[i] is a list of strings, // where the first element accounts[i][0] is a name, and the rest of the elements // are emails representing emails of the account. // Now, we would like to merge these accounts. Two accou...
2,922
813
/* Copyright 2020 The OneFlow 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 agre...
2,029
690
/** * Copyright 2020 Huawei Technologies Co., Ltd * * 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...
4,558
1,554
// Copyright (c) 2007-2013 Hartmut Kaiser // Copyright (c) 2012-2013 Thomas Heller // // 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(HPX_PREPROCESSED_RUNTIME_COMPONENTS_SERVER_RUNTIME_SUPPORT_CREA...
2,001
770
#include <QDebug> #include <QJsonArray> #include "loop.h" Loop::Loop(QJsonObject *params, QObject *parent) : Source("Loop", params, parent) { //Path path_ = params_->value("path").toString(""); //Parts QJsonArray parts = params_->value("parts").toArray(); foreach (QJsonValue part, parts) { ...
3,341
1,187
#include <unistd.h> //#define ABORT_ON_FLOATING_POINT_EXCEPTIONS #ifdef __APPLE__ #include <xmmintrin.h> #endif #include <cstdlib> #include <cctype> #include <iostream> #include <iomanip> #include <fstream> #include <vector> #include <string> #include <stdexcept> // TPLs #include "VerboseObject_objs.hh" #include "...
27,244
8,769
#ifndef POINT_HPP #define POINT_HPP #include <iostream> class Point { public: static double HPWL(const Point& point_a, const Point& point_b); static Point Center(const Point& point_a, const Point& point_b); Point(double x, double y); void Print(std::ostream& os = std::cout, int indent_level = 0) const; ...
406
151
// 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 w...
16,317
5,436
//longestCommonPrefix.cpp /* Description: Write a function to find the longest common prefix string amongst an array of strings Thoughts: 从左开始一位一位判断当前位置的字符是否属于common prefix。第i位属于common prefix的前提是: 1. i < strs[k].size(),k = 0, 1, ....n-1 2. strs[0][i] = strs[1][i] = ... = strs[n-1][i] 两个条件缺一不可。 */ class Solution{ publ...
666
316
#include "v3dr_glwidget.h" #include "m_QUndoMarkerCreate.h" #include "m_CViewer.h" #include "m_PAnoToolBar.h" itm::QUndoMarkerCreate::QUndoMarkerCreate(itm::CViewer* _source, LocationSimple _marker) : QUndoCommand() { source = _source; marker = _marker; redoFirstTime = true; } // undo and redo methods voi...
3,560
1,288
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
5,384
1,724
#include <iostream> #include <vector> using std::cout; using std::endl; using std::vector; int main(){ vector <int> polje = {5,6,7}; vector <int>::iterator it; // iterator it ćemo koristit za pristup pojedinim elementima it = polje.begin(); // nije istokao front()! cout << *it << endl; it = polj...
380
140
// Copyright (c) 2004-2019 Intel Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge,...
15,621
5,774
// Copyright 2020 Iamshchikov Ivan #include <gtest/gtest.h> #include <thread> #include <random> #include <ctime> #include <cmath> #include "../../modules/task_4/iamshchikov_i_sparse_matrix_mult/sparse_matrix_mult.h" TEST(sparse_matrix_mult_std, can_create_matrix) { ASSERT_NO_THROW(CcsMatrix m(1, 1, 1)); } TEST(sp...
2,679
1,454
/* * Defines the state classes used for steering. * * Part of the Artificial Intelligence for Games system. * * Copyright (c) Ian Millington 2003-2006. All Rights Reserved. * * This software is distributed under licence. Use of this software * implies agreement with all terms and conditions of the accom...
4,681
1,382
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /////////////////////////////////////////////////////////////////////////////////////////////////// #pragma once #include <vector> #include <functional> #include "primitive.hpp" #include "intel_gpu/graph/topology.hpp" #define DEFAU...
9,059
2,433
/* * Copyright (C) 2020-2021 HERE Europe B.V. * * 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...
26,198
8,078
#include<cstdio> main() { int i,j,a,b,n,s0[1001],s1[1001],u0[15],u1[15],C=1; while(scanf("%d",&n) && n) { for(i=0;i<10;i++)u0[i]=0; for(i=0;i<n;i++) scanf("%d",s0+i),u0[s0[i]]++; printf("Game %d:\n",C++); while(1) { for(i=0;i<n;i++) ...
663
324
/**************************************************************************** Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, wo...
23,001
8,008
#include "IXmlSerializeable.h" const QString mainNode = "item"; const QString argsNode = "args"; const QString classNode = "className"; const QString argNode = "arg"; const QString argNode_Attribute = "attribute"; const QString argNode_Type = "type"; const QString argNode_Value = "value"; #define CompType(x, y) x.ty...
8,545
2,510
#include "ppl/nn/runtime/kernel_exec_context.h" #include "tests/ir/graph_builder.h" #include "tests/runtime/test_barrier.h" #include "gtest/gtest.h" #include <vector> using namespace std; using namespace ppl::nn; using namespace ppl::nn::test; using namespace ppl::common; class KernelExecContextTest : public testing::...
1,422
516
/* * Copyright (C) 2012 Open Source Robotics Foundation * * 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 appl...
29,826
11,253
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: UnityEngine.ScriptableObject #include "UnityEngine/Scri...
1,803
575
// -*- C++ -*- // // Package: FwkIO // Class : DQMRootSource // // Implementation: // [Notes on implementation] // // Original Author: Chris Jones // Created: Tue May 3 11:13:47 CDT 2011 // // system include files #include <memory> #include "TFile.h" #include "TString.h" #include "TTree.h" #in...
28,726
9,657
#if defined(ARDUINO) && ARDUINO >= 100 #include "Arduino.h" #else #include "WProgram.h" #endif #include "RP_PCA9554.h" #include "Wire.h" /* ########################################################################### * constructor */ PCA9554::PCA9554() { Wire.begin(); // start I2C commun...
4,527
1,902
#include "precompile.h" #include "token.h" #include "parser.h" #include "lexer.h" void* KwikParseAlloc(void* (*alloc_proc)(size_t)); void KwikParse(void* state, int token_id, kwik::Token* token_data, kwik::ParseState* s); void KwikParseFree(void*, void(*free_proc)(void*)); namespace kwik { void parse(const Sou...
1,231
387
#include "flpch.h" #include "FarLight/ConfigurationSystem/LocalConfigurations/Serializers/Entity/EntitySerializerConfiguration.h" #include "FarLight/ConfigurationSystem/ConfigurationManager.h" #include "FarLight/EntityComponentSystem/Components/Tag/TagComponent.h" #include "FarLight/EntityComponentSystem/Components/...
4,764
1,272
/** 110. Balanced Binary Tree Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1. **/ #include <iostream> #include "../utils.h" using namespace std; /** ...
1,253
434
// ----------------------------------------------------------------------------- // FILE: Data_FreqVsCap.cpp // DESCRIPTION: // DATE: // AUTHOR(s): Lime Microsystems // REVISIONS: // ----------------------------------------------------------------------------- // -----------------------------------------------------...
9,111
4,595
/* * @author: liu hongbin * @brief: vector interfaces * @email: lhb8134@foxmail.com * @date: 2020-02-22 12:09:40 * @last Modified by: lhb8125 * @last Modified time: 2020-02-22 14:48:06 */ #ifndef VECTORINTERFACES_HPP #define VECTORINTERFACES_HPP #include "mpi.h" // #include "voidtor.hpp" // using namespace HSF; ...
2,356
1,189
#pragma once #include "Std.hpp" class Fase; class Animador { private: sf::Texture textura; sf::IntRect sprite; int colunas; int coluna_atual; float tempo_contabilizado; float tempo_por_quadro; bool ja_terminou; bool ativa; void carregarTextura(std::string caminho); public: Animador(); ...
950
357
#include "model/std_cells/MUX2.h" #include <cmath> #include "model/PortInfo.h" #include "model/TransitionInfo.h" #include "model/EventInfo.h" #include "model/std_cells/StdCellLib.h" #include "model/std_cells/CellMacros.h" #include "model/timing_graph/ElectricalNet.h" #include "model/timing_graph/ElectricalDriver.h" #...
21,468
7,786
// 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 "components/autofill/core/browser/autofill_cc_infobar_delegate.h" #include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/te...
4,824
1,562
/** * Provides global variables for use in the game's source code. * * @author GabuEx, dawnmew * @since 1.0 * * Licensed under the MIT License. * * Copyright (c) 2014 Equestrian Dreamers * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
3,349
1,170
// // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) Contributors to the OpenEXR Project. // //----------------------------------------------------------------------------- // // Rational numbers // // The double-to-Rational conversion code below // was contributed to OpenEXR by Greg Ward. // //---------------...
1,540
608
#include "boost/array.hpp" #include "Connection.h" using boost::asio::ip::tcp; Connection::Connection(std::string host, short port) : _host(host), _port(port), _io_service(), _socket(_io_service) {} Connection::~Connection() { close(); } bool Connection::connect() { std::clog << "Starting co...
1,974
608
#include "ads1115.hpp" #include <stdexcept> #include <chrono> #include <thread> #include <wiringPiI2C.h> #include <netinet/in.h> namespace grower::wiring { enum conversion_delay : uint32_t { ADS1115_CONVERSION_DELAY_8 = 128000, ADS1115_CONVERSION_DELAY_16 = 64000, ADS1115_CONVERSION_DELAY_3...
5,637
2,844
// WARNING: THIS FILE IS AUTOGENERATED! As such, it should not be edited. // Edits need to be made to the proto files // (see https://github.com/mavlink/MAVSDK-Proto/blob/master/protos/follow_me/follow_me.proto) #include <iomanip> #include "follow_me_impl.h" #include "plugins/follow_me/follow_me.h" namespace mavsdk ...
5,525
1,831
#include <sstream> #include <AMReX_Vector.H> #include <AMReX_MultiFab.H> #include <AMReX_ParmParse.H> #include <AMReX_VisMF.H> #include <AMReX_Geometry.H> #include <AMReX_MLMG.H> #include <AMReX_MLABecLaplacian.H> #include <AMReX_ParallelContext.H> #include <AMReX_ForkJoin.H> using namespace amrex; namespace { i...
9,925
3,617
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: Mono.Security....
11,265
3,869
// // Created by 姜康 on 2020/9/14. // void drawBasic(){ }
60
37
/* * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
10,790
4,105
#include <functional> #include <iostream> #include <string> #include <vector> #include <algorithm> void elimdups(std::vector<std::string>& vs) { std::sort(vs.begin(), vs.end()); auto new_end = std::unique(vs.begin(), vs.end()); vs.erase(new_end, vs.end()); } bool check_size(const std::string& s, const std::stri...
1,276
458
// // Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of co...
14,755
5,056
#include "TokenType.hpp" void print_token_type(const token_type& type) { switch (type) { case token_type::null: std::cout << "NULL" << std::endl; break; case token_type::text: std::cout << "TEXT" << std::endl; break; case token_type::number: std::cout << "NUMBER" << std::endl; break; case token_type:...
722
308
/*- * $Copyright$ -*/ #ifndef __UART_HPP_ba3914c2_b82e_482b_ad80_f21cfb95d989 #define __UART_HPP_ba3914c2_b82e_482b_ad80_f21cfb95d989 namespace uart { }; /* namespace uart */ #endif /* __UART_HPP_ba3914c2_b82e_482b_ad80_f21cfb95d989 */
245
163
#pragma once #include "driver/IOptics.hpp" #include "math/Types.hpp" #include "math/IVectorFactory.hpp" #include "math/IMatrixFactory.hpp" #include "math/IGeometry.hpp" #include "math/ISpaceAdapter.hpp" #include "math/IWorldAdapter.hpp" #include "openvr_driver.h" #include "driver/Settings.hpp" #include "utility/ILogge...
4,130
1,329
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2001 Microsoft Corporation // // Module Name: // NamedCookie.cpp // // Description: // This file contains the definition of the SNamedCookie struct. // // Maintained By: // John Franco (jfran...
3,461
992
/* Copyright (c) 2018 Hans-Kristian Arntzen * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, ...
30,051
9,725
/* D3D_Plugin - for licensing and copyright see license.txt */ #include <StdAfx.h> #include "CD3DSystemDX11.h" #include "d3d11hook.h" #include <CPluginD3D.h> //#pragma comment(lib, "dxerr.lib") // not needed atm D3DPlugin::CD3DSystem11* D3DPlugin::gD3DSystem11 = NULL; #undef METHOD #undef INTERFACE #define INTERF...
17,439
6,067
// Copyright 2018-2019 Mickael Daniel. All Rights Reserved. #include "TargetSystemLockOnWidget.h" #include "Components/CanvasPanel.h" #include "Components/CanvasPanelSlot.h" #include "Blueprint/WidgetTree.h" UTargetSystemLockOnWidget::UTargetSystemLockOnWidget(const FObjectInitializer& ObjectInitializer) :...
1,503
505
#include <rte_mbuf.h> #include <rte_ether.h> #include <rte_ip.h> #include <rte_tcp.h> #include <rte_udp.h> bool PreparePacket(rte_mbuf* m, int port_id, int ring_id) { char* pkt_data = rte_ctrlmbuf_data(m); uint16_t* eth_type = (uint16_t*)(pkt_data + 2 * ETHER_ADDR_LEN); m->l2_len = 2 * ETHER_ADDR_LEN; ipv4_hdr...
1,623
776
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
3,509
1,393
<?hh //strict require(__DIR__.'/CayleyQuery.hh'); type TypeCayleyEntry = shape( 'subject' => string, 'predicate' => string, 'object' => string, 'label' => string ); enum CayleyOp:string as string{ WRITE = 'write'; DELETE = 'delete'; } class Cayley{ public function __construct(public string $URL){ } p...
1,311
453
/* <editor-fold desc="MIT License"> Copyright(c) 2018 Robert Osfield Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
7,158
2,463
#include "DetectorHit.hh" DetectorHit::DetectorHit() : G4VHit(), fScinID(0), fTrackID(-1), fEdep(0.0), fTime(0), fPos(0) {} DetectorHit::~DetectorHit() {}
164
84
/*************************************************************************** * @file main.cpp * @author Alan.W * @date 3 Mar 2014 * @remark This code is for the exercises from C++ Primer 5th Edition * @note ***************************************************************************/ // /...
5,596
1,733
class Solution { public: vector<int> countPoints(vector<vector<int>>& points, vector<vector<int>>& queries) { vector<int> ans; auto squared = [](int x) { return x * x; }; for (const auto& q : queries) { const int rSquared = q[2] * q[2]; int count = 0; for (co...
474
175
/* * Copyright (C) 2008 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...
7,775
2,859
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2017-2020, Waterplus http://www.6-robot.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
3,832
1,475
//============================================================================ // Name : MotionBlur.h // Author : Duarte Peixinho // Version : // Copyright : ;) // Description : MotionBlur Effect //============================================================================ #include <Pyros3D/Renderin...
3,855
1,888
// Copyright 2010-2020, Google 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: // // * Redistributions of source code must retain the above copyright // notice, this list of condit...
11,867
3,964
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
3,670
1,209
/* -------------------------------------------------------------------------- * * OpenSim Moco: PositionMotion.cpp * * -------------------------------------------------------------------------- * * Copyright (c) 2019 Stanford University and the Authors * ...
9,926
2,929
#pragma once #include <string> namespace util { /** * @brief Get the namedpipe path. It will get the namedpipe path from the * environment variable NAMED_PIPE_PATH. If it doesn't exist it will use the * path: \\\\.\\pipe\\mynamedpipe * * @return std::string It returns the namedpipe path as string. The move * se...
437
136
// MetaTM Project // File Name: osacache.cc // // Description: // // Operating Systems & Architecture Group // University of Texas at Austin - Department of Computer Sciences // Copyright 2006, 2007. All Rights Reserved. // See LICENSE file for license terms. #include "memaccess.h" #include "osaassert.h" #include "si...
37,502
13,400