text
string
size
int64
token_count
int64
/********************************************************************** // @@@ START COPYRIGHT @@@ // // 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. ...
21,105
8,540
/* Copyright (c) 2005-2020, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
7,493
2,431
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "interfaces/queries/query_variant.hpp" #include "interfaces/queries/get_account.hpp" #include "interfaces/queries/get_account_asset_transactions.hpp" #include "interfaces/queries/get_account_assets.hpp" #incl...
1,928
601
// solving A * X = B // using driver function gesv() #include <cstddef> #include <iostream> #include <complex> #include <boost/numeric/bindings/lapack/gesv.hpp> #include <boost/numeric/bindings/traits/ublas_matrix.hpp> #include <boost/numeric/bindings/traits/std_vector.hpp> #include "utils.h" namespace ublas = boost...
2,250
1,071
#include "kl25_tsi.h" #include "mbed.h" /****************************************************************************** * Example 1 : put a cable on A0 pin and touch this pin for lighting red light #include "mbed.h" DigitalOut red(LED_RED); int main(){ uint16_t sense_A0; tsiInit(TSI_CURRENT_8uA, TSI_CURRENT_64...
5,130
2,030
#include <bits/stdc++.h> using namespace std; typedef long long ll; string s; int main() { // freopen("in.txt", "r", stdin); // freopen("out.txt", "w", stdout); std::ios_base::sync_with_stdio(false); cin.tie(0); ll k, cnt=0; cin>>k>>s; sort(s.begin(), s.end()); ...
570
261
/*=auto========================================================================= Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Program: 3D Slicer Module: $RCSfile: vtkMRMLColorLogic.cx...
62,613
18,956
// // CameraGoToPositionEffect.hpp // G3MiOSSDK // // Created by José Miguel S N on 24/10/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #ifndef G3MiOSSDK_CameraGoToPositionEffect #define G3MiOSSDK_CameraGoToPositionEffect #include "Geodetic3D.hpp" class CameraGoToPositionEffect : public E...
4,933
1,455
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cc/test/test_in_process_context_provider.h" #include "base/lazy_instance.h" #include "gpu/GLES2/gl2extchromium.h" #include "gpu/command_buffer/...
4,402
1,455
#include <iostream> #include "machine.h" /** * @file * @brief Address transfer operations. */ namespace mixal { /** Increase rA or rX by the address value. * * @see overflow */ void Computer::executeINC(const InstructionWord& instruction, Register5* reg) { int32_t value = reg->value(); int32_t address...
2,811
911
/*********************************************************************************** ** MIT License ** ** ** ** Copyright (c) 2018 Victor DENIS (victordenis01@gmail.com) ...
3,723
1,098
#include <time.h> #include "TimeValue.h" namespace Kriti { TimeValue TimeValue::current() { struct timespec current; clock_gettime(CLOCK_MONOTONIC, &current); return current.tv_nsec + current.tv_sec*1000000000; } } // namespace Kriti
252
98
/*************************************************************************** * * Project _____ __ ____ _ _ * ( _ ) /__\ (_ _)_| |_ _| |_ * )(_)( /(__)\ )( (_ _)(_ _) * (_____)(__)(__)(__) |_| |_| * * * Copyright 2018-present, Leoni...
4,471
1,824
// ========================================================== // PNG Loader and Writer // // Design and implementation by // - Floris van den Berg (flvdberg@wxs.nl) // - Herve Drolon (drolon@infonie.fr) // - Detlev Vendt (detlev.vendt@brillit.de) // - Aaron Shumate (trek@startreker.com) // // This file is part of FreeI...
26,522
11,586
/* A simple server in the internet domain using TCP The port number is passed as an argument */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <iostream> #include <cpprest/http_client.h> #inc...
4,249
1,551
//================================================================================================== /*! @file @copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //===========================...
1,461
488
// A Calandar #include <bits/stdc++.h> using namespace std; typedef long long ll; const string days[] = {"Friday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday"}; string date; ll yy1, yy2, m1, m2, d1, d2, offset; int main() { int T; scanf("%d", &T); while (T--) { scanf("%lld%lld%lld", &y...
722
315
// // Created by zelenyy on 07.12.17. // #include "SensitiveDetectorFactory.hh" #include "SensitiveScoredDetector.hh" #include "G4SDManager.hh" using namespace std; G4VSensitiveDetector *SensitiveDetectorFactory::getSensitiveDetector(G4GDMLAuxListType::const_iterator vit) { auto name = (*vit).value; G4SDMan...
728
268
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch.hpp" #include "if.h" #include "if_else.h" #include "switch.h" TEST_CASE("Verify Test Configuration", "verification") { REQUIRE(true == true); } TEST_CASE("Test is even function") { REQUIRE(is_even(2) ==...
924
391
/* * SendMessageAction.cpp * * Created on: 3 août 2015 * Author: horfee */ #include "SendMessageAction.h" #include "../Properties.h" #include <ctime> #include <locale> namespace alarmpi { SendMessageAction::SendMessageAction(std::string name, std::string message, bool synchronous): Action(name, synchrono...
2,658
1,064
/** * Copyright (C) 2019-2022 Xilinx, Inc * * 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
7,679
2,429
#include <core/vec_factory.h> #include <core/optimizers/gradient_descent.h> #include <core/vec_tools/fill.h> #include <core/vec_tools/distance.h> #include <core/funcs/lq.h> #include <gtest/gtest.h> TEST(Optimizer, GradientDescentTest) { const int N = 10; const double q = 2; const double EPS = 0.01; G...
569
239
// Copyright (C) 2000, International Business Machines // Corporation and others. All Rights Reserved. #ifndef _BCP_MATRIX_H #define _BCP_MATRIX_H // This file is fully docified. #include <cmath> #include <cfloat> #include "CoinPackedVector.hpp" #include "CoinPackedMatrix.hpp" #include "BCP_vector.hpp" //########...
18,826
5,622
/*============================================================================== Copyright (c) Laboratory for Percutaneous Surgery (PerkLab) Queen's University, Kingston, ON, Canada. All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law...
3,869
1,072
/* Shape.FixedFrame.cpp */ //---------------------------------------------------------------------------------------- // // Project: CCore 3.50 // // Tag: Desktop // // License: Boost Software License - Version 1.0 - August 17th, 2003 // // see http://www.boost.org/LICENSE_1_0.txt or the local copy // // ...
5,512
2,158
#include <utility> #include <vector> #include <Eigen/Core> #include <aslam/common/memory.h> #include <maplab-common/test/testing-entrypoint.h> #include <maplab-common/test/testing-predicates.h> #include <inverted-multi-index/inverted-multi-index-common.h> #include <inverted-multi-index/inverted-multi-index.h> namesp...
11,488
7,911
#include <iostream> #include <iomanip> using namespace std; class Hole { public: bool isEmpty = true; int id = -1; Hole *upRight = nullptr; Hole *upLeft = nullptr; Hole *downLeft = nullptr; Hole *downRight = nullptr; Hole *left = nullptr; Hole *right...
12,609
3,675
/** * @example oglplus/026_stencil_shadow.cpp * @brief Shows how to render shadows using geometry shader and stencil buffer * * @oglplus_screenshot{026_stencil_shadow} * * Copyright 2008-2015 Matus Chochlik. Distributed under the Boost * Software License, Version 1.0. (See accompanying file * LICENSE_1_0....
10,795
4,954
/* * Copyright (c) 2017 Cisco and/or its affiliates. * 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 applicabl...
2,185
778
/* Copyright (c) 2019 Agenium Scale 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, publish, distribute, ...
16,716
6,493
//====================================================================== //----------------------------------------------------------------------- /** * @file iutest_genparams.hpp * @brief iris unit test parameter generator * * @author t.shirayanagi * @par copyright * Copyright (C) 2011...
46,815
17,611
// // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com) // // 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) // // Official repository: https://github.com/cppalliance/json // // Test that header file is self-c...
79,166
26,231
// ============================================================================= // 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...
18,256
5,852
#include "GroundTileMap.hpp" #include "Obstacle.hpp" #include "Collectable.hpp" namespace fs::scene { void GroundTileMap::create(io::InputManager& inputManager, physics::PhysicsManager& physicsManager, graphics::SpriteSheet& tilesSpriteSheet, graphics::SpriteSheet& itemsSpriteSheet) { G...
10,381
4,217
/* * Edict is a blackboard messaging system -- have fun! * Copyright (c) 2018 Alex Raymond, Kier Dugan. */ #include <edict/edict.h> using namespace edict; #include <iostream> #include <regex> using namespace std; void helloHandler(const string &message_) { cout << message_ << ", Handler!" << endl; } void print...
853
299
// Day03.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "TriangleTest.h" int main() { signed ValidRowTriangles = 0; signed ValidColumnTriangles = 0; StringVectorVector Lines = GetFileLineParts("Input.txt"); TriangleTest RowTest; std::array<TriangleTest, 3> ColumnTes...
782
315
#include <RendererCorePCH.h> #include <Core/Graphics/Geometry.h> #include <Core/World/World.h> #include <Foundation/Configuration/Startup.h> #include <RendererCore/Debug/DebugRenderer.h> #include <RendererCore/Debug/SimpleASCIIFont.h> #include <RendererCore/Meshes/MeshBufferResource.h> #include <RendererCore/Pipeline/...
49,241
17,618
#include "mpc_local_planner/AcadosSolver.h" #include <ros/ros.h> namespace mpc { namespace Acados { void Solver::reInit(const State &state) { freeAllocated(); init(); setInitGuess(state); return; } void Solver::setInitCondition(const State &state) { // initial condition auto x0 = state.toArr...
2,697
1,079
#include "zeek/analyzer/protocol/pia/PIA.h" #include "zeek/DebugLogger.h" #include "zeek/Event.h" #include "zeek/IP.h" #include "zeek/NetVar.h" #include "zeek/Reporter.h" #include "zeek/RuleMatcher.h" #include "zeek/RunState.h" #include "zeek/analyzer/protocol/tcp/TCP_Flags.h" #include "zeek/analyzer/protocol/tcp/TCP_...
11,816
4,834
/* * Copyright (c) 2009 Carnegie Mellon University. * 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 ...
5,366
1,873
#include <jni.h> #include <string> #include <android/log.h> #include "facedetectcnn.h" #include <opencv2/opencv.hpp> //define the buffer size. Do not change the size! #define DETECT_BUFFER_SIZE 0x20000 using namespace cv; extern "C" { char *JNITag = const_cast<char *>("face-jni"); JNIEXPORT jobjectArray JNICALL Java...
3,723
1,348
// Copyright (c) 2019, QuantStack and Mamba Contributors // // Distributed under the terms of the BSD 3-Clause License. // // The full license is in the file LICENSE, distributed with this software. #ifndef UMAMBA_VERSION_HPP #define UMAMBA_VERSION_HPP #include <array> #include <string> #define UMAMBA_VERSION_MAJOR ...
1,174
443
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2017 - ROLI Ltd. JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the JUCE 5 End...
27,213
7,845
/*========================================================================= Program: ParaView Module: $RCSfile: pqTestUtility.cxx,v $ Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the term...
5,592
1,961
// // yield.hpp // ~~~~~~~~~ // // Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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 "coroutine.hpp" #ifndef ree...
487
213
#include <string> #include <iostream> #include <fstream> #include <sstream> #include <stdexcept> #include "opencv2/core.hpp" #include <opencv2/core/utility.hpp> #include "opencv2/video.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/videoio.hpp" #include "opencv2/highgui.hpp" #include "opencv2/videostab.hpp" #inc...
24,507
7,722
/* * SPDX-License-Identifier: Apache-2.0 */ //===------ KrnlSeqStore.cpp - Lower KrnlSeqStoreOp ----------------------===// // // Copyright 2019-2022 The IBM Research Authors. // // ============================================================================= // // This file lowers the KrnlSeqStoreOp operator. // //=...
2,622
868
/* * Copyright (C) 2009 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...
9,754
3,412
// Copyright 2014 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 "xfa/fxfa/app/xfa_ffdraw.h" #include "xfa/fxfa/xfa_ffapp.h" #include...
529
229
#include "coolpropsolver.h" #include "CoolPropTools.h" #include "CoolProp.h" #include "CPState.h" #include <iostream> #include <string> #include <stdlib.h> CoolPropSolver::CoolPropSolver(const std::string& mediumName, const std::string& libraryName, const std::string& substanceName) : BaseSolver(mediumName, libraryN...
28,376
8,415
#include <iostream> using namespace std; int main () { int n, arr[10000]; // INPUT HOW MUCH NUMBER TO INPUT cout << "Numbers?: "; cin >> n; // INPUT THE NUMBERS for (int i=0; i<n; i++) { cin >> arr[i]; } // SELECTION SORT ALGORITHM (ASCENDING) for (int i=0; i<n-1; i++) { int min_index = i; for(i...
1,151
595
/* * Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/ * * Written by Jan Kundrát <jan.kundrat@cesnet.cz>, Tomáš Pecka <tomas.pecka@fit.cvut.cz> * */ extern "C" { #include <sysrepo.h> } #include <cinttypes> #include <cstdio> #include <cxxabi.h> #include <spdlog/sinks/systemd_sink.h> #include <sys/stat.h> #i...
3,717
1,289
/* Copyright 2021 NVIDIA 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.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
2,571
966
/* * Copyright (C) 2009, Willow Garage, Inc. * * 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 and the follo...
4,009
1,281
/* * Copyright (C) 2015 midnightBITS * * 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, pub...
3,479
1,334
/* Name: QtRpt Version: 1.5.5 Web-site: http://www.qtrpt.tk Programmer: Aleksey Osipov E-mail: aliks-os@ukr.net Web-site: http://www.aliks-os.tk Copyright 2012-2015 Aleksey Osipov Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may o...
12,830
4,474
// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-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 "td/telegram/net/SessionProxy.h" #include "td/teleg...
7,573
2,651
// RUN: %clang_cc1 -verify -fopenmp %s -Wuninitialized // RUN: %clang_cc1 -verify -fopenmp-simd %s -Wuninitialized typedef void **omp_allocator_handle_t; extern const omp_allocator_handle_t omp_default_mem_alloc; extern const omp_allocator_handle_t omp_large_cap_mem_alloc; extern const omp_allocator_handle_t omp_cons...
11,455
3,784
// Copyright (c) YugaByte, 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 writ...
13,817
4,640
#include "gamecredits.hpp" CGameCredits::CGameCredits ( SDL_Renderer * r ) { SDL_Surface * aux; #if _WIN32 || _WIN64 char path[FILENAME_MAX], bg_path[FILENAME_MAX]; char p2[FILENAME_MAX]; _getcwd(p2, sizeof(p2)); #else char path[1024], bg_path[1024]; #endif #if _WIN32 || _WIN64 #ifndef PREFIX spri...
4,753
2,433
////////////////////////////////////////////////////////////////////////// #include <polysolve/FEMSolver.hpp> #include <catch2/catch.hpp> #include <iostream> #include <unsupported/Eigen/SparseExtra> #include <fstream> #include <vector> #include <ctime> #include <polysolve/LinearSolverAMGCL.hpp> ////////////////////////...
15,321
5,778
#define _CRT_SECURE_NO_WARNINGS #include "../WtPorter/WtPorter.h" //#include "../WtExecMon/WtExecPorter.h" #include "../Includes/WTSStruct.h" #include "../Share/DLLHelper.hpp" #include "../Share/CodeHelper.hpp" void PORTER_FLAG on_init(CtxHandler ctxid) { printf("on_init\r\n"); hft_sub_ticks(ctxid, "CFFE...
2,600
1,083
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
2,402
673
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
2,007
695
#include "vklive/vulkan/vulkan_render.h" #include "config_app.h" #include "vklive/file/file.h" #include "vklive/vulkan/vulkan_framebuffer.h" #include "vklive/vulkan/vulkan_model.h" #include "vklive/vulkan/vulkan_pipeline.h" #include "vklive/vulkan/vulkan_shader.h" #include "vklive/vulkan/vulkan_uniform.h" #include "vkl...
3,190
1,128
/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License. * * You may ...
2,835
975
#include <math.h> #include <stdio.h> #include "utils.h" //Helper function to see if value is in tolerance int is_equal(double a, double b, const double epsilon) { double c = a - b; return fabs(c) <= epsilon; } //Central diff function, makes two function calls, O(h^2) REAL diff(const REAL x, REAL (*func)(const...
2,630
1,041
#pragma once #include <array> #include <bitset> #include <cassert> #if !defined( BITPACKER_USE_STD_BIT ) # define BITPACKER_USE_STD_BIT __has_include( <bit> ) && __cplusplus >= 202002L #endif #if BITPACKER_USE_STD_BIT # include <bit> #endif #define BITPACKER_VERSION_MAJOR 0 #define BITPACKER_VE...
3,979
1,403
/* * Copyright (c) 2019, Infosys Ltd. * * SPDX-License-Identifier: Apache-2.0 */ #include <utils/mmeCommonUtils.h> #include <cmath> #include <controlBlock.h> #include <contextManager/dataBlocks.h> #include <contextManager/subsDataGroupManager.h> #include <log.h> #include <mme_app.h> #include <msgBuffer.h> #include...
14,125
5,833
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l...
695
230
#include "FW/SC/scene.h" #include "FW/tools.h" #include "FW/ST/state_writer.h" #include "FW/RC/record.h" #include "FW/SC/scene_line.h" //////////////////////////////////////////////////////////////////////// /// Static long TypeScene::m_IdCount = 0; QString TypeScene::GenerateId() { return QString().setNum( m_Id...
2,319
763
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <functional> #include <numeric> #include <sstream> #include "utils/provenance_tag.hpp" namespace ngraph { namespace onnx_import { namespace detail { std::string concat_strings( ...
1,766
487
#include <iostream> #include <algorithm> #include <vector> #include <iterator> int main() { int n1 = 3; int n2 = 5; std::vector<int> v{0, 1, 2, 3, 4}; auto result1 = std::find(std::begin(v), std::end(v), n1); auto result2 = std::find(std::begin(v), std::end(v), n2); if (result1 != std::end(v...
619
249
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
16,057
5,033
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cc/output/copy_output_result.h" #include "base/logging.h" #include "components/viz/common/quads/texture_mailbox.h" namespace cc { CopyOutputR...
1,360
443
#pragma once /* * Name: RS485.hpp * * Copyright (c) Mateusz Semegen and contributors. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root for details. */ #ifdef STM32L4 #include <soc/m4/stm32l4/peripherals/RS485.hpp> #endif // STM32L4 namespace cml { n...
468
206
#include"EchoCommand.h" bool EchoCommand::Execute(SOCKET sock, char* buf) { Sleep(2000); if (!Send(sock, buf)) { return false; } return true; }
173
71
#include<vector> #include<algorithm> #include<iostream> #include<unordered_map> using namespace std; class Solution { private: struct Node { int idx; vector<Node*> children; Node() : idx(-1), children(26, nullptr) {} }; struct Trie { Node* root; Trie() : root(new Nod...
1,864
610
#include <ATen/ATen.h> #include <ATen/ExpandUtils.h> #include <ATen/Dispatch.h> #include <ATen/NativeFunctions.h> #include <ATen/LegacyTHFunctions.h> #include <ATen/native/LinearAlgebraUtils.h> #include <ATen/TensorUtils.h> #include <ATen/Parallel.h> #include <functional> #include <numeric> #include <vector> #include <...
26,057
9,851
// 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 may...
40,053
11,438
/* ; Project: Open Vehicle Monitor System ; Module: CAN logging framework ; Date: 18th January 2018 ; ; (C) 2018 Michael Balzer ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"),...
9,571
3,516
/** * @author Alessandro Bianco */ /** * @addtogroup DFNs * @{ */ #ifndef STEREORECONSTRUCTION_SCANLINEOPTIMIZATION_HPP #define STEREORECONSTRUCTION_SCANLINEOPTIMIZATION_HPP #include "StereoReconstructionInterface.hpp" #include <Types/CPP/PointCloud.hpp> #include <Types/CPP/Frame.hpp> #include <Helpers/Paramet...
5,542
1,901
//--------------------------------------------------------------------------------// /*! @file AvCommon.cpp @brief libAvライブラリ共通クラス @author 大橋 */ //--------------------------------------------------------------------------------// #include "../AvCommon.h" #define __STDC_CONSTANT_MACROS #ifdef _STDINT_H #undef _STDIN...
1,229
354
/** A one line description of the class. * * #include "ButtonTest.hpp" * Created 3-12-18 By: Smitty * * A longer description. */ #ifndef BUTTONTEST_HPP #define BUTTONTEST_HPP #include "../BaseModelTest/BaseModelTest.hpp" class ButtonTest : public BaseModelTest { public: ButtonTest(void); ~ButtonTest...
460
176
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
4,076
1,320
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2016 The Auroracoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #include "ass...
10,169
4,045
#pragma once /** * @file b_tree.hpp * @brief B-木 */ #include <memory> #include "config.hpp" #include "simulator/disk_variable.hpp" /** * @brief B-木 * @details Cache Awareなデータ構造 * @note * 中間ノードは以下のデータを持つ (根のキー数はK-1未満でもOK + 葉のsonsは空) * - keys:k個のキー (キー数kは K-1 <= k <= 2K-1) * - sons:k+1個の子ノード * * さらに探索木としての性質と...
1,263
631
#include <v4r/segmentation/plane_utils.h> #include <v4r/segmentation/segmenter_organized_connected_component.h> #include <pcl/common/angles.h> #include <pcl/pcl_config.h> #include <pcl/segmentation/euclidean_cluster_comparator.h> #include <pcl/segmentation/organized_connected_component_segmentation.h> #include <pcl/im...
2,057
734
#include "static/Hello.h" int main(int argc, char* argv[]) { Hello hi_obj; hi_obj.print(); return 0; }
116
50
#include "IEngine.hpp" #include "Vector.hpp" #include "IRenderWorld.hpp" #include "GameEntity.hpp" #include <iostream> #include <chrono> #include "SDL.h" #include "SDL_opengl.h" #include "glm/gtc/matrix_transform.hpp" #include "Engine.hpp" namespace chrono = std::chrono; IEngine* IEngine::AllocateIns...
6,967
2,304
#pragma once #include <OgreInput.h> #include <OgreSceneNode.h> namespace pogre { class CameraStrategy { public: CameraStrategy(Ogre::SceneNode *camNode = nullptr) : _camNode(camNode) {} virtual ~CameraStrategy() = default; public: virtual void keyPressed(const OgreBites::Keybo...
949
288
// Copyright 2016 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. // This file contains basic "crash-and-recover" test support where the inferior // crashes and then the cause of the crash is fixed in the debugger and the...
5,170
2,110
// base_proxy_impl_ch.cpp,v 1.2 2001/05/15 15:48:35 parsons Exp #include "idl.h" #include "idl_extern.h" #include "be.h" #include "be_visitor_operation.h" ACE_RCSID(be_visitor_operation, x_proxy_impl_xh, "base_proxy_impl_ch.cpp,v 1.2 2001/05/15 15:48:35 parsons Exp") be_visitor_oper...
3,093
1,078
#include <aslam/backend/EuclideanExpressionNode.hpp> #include <aslam/backend/HomogeneousExpressionNode.hpp> #include <aslam/backend/VectorExpressionNode.hpp> #include <sm/kinematics/homogeneous_coordinates.hpp> #include <sm/kinematics/rotations.hpp> namespace aslam { namespace backend { EuclideanExpressionNode::Euclid...
19,019
5,830
// Copyright 2015 Paddle Creek Games Inc. All Rights Reserved. #include "HttpRpcRequest.h" #include <google/protobuf/descriptor.h> #include <google/protobuf/message.h> #include <google/protobuf/text_format.h> #include <google/protobuf/util/json_util.h> #include <google/protobuf/util/type_resolver_util.h> DEFINE_LOG_CA...
7,099
2,272
// https://www.hackerrank.com/challenges/game-of-throne-ii #include "common/modular/static/factorial.h" #include "common/modular_io.h" #include "common/stl/base.h" #include <string> using TFactorial = modular::mstatic::Factorial<TModularD, false>; int main_game_of_thrones_ii() { TFactorial f; string s; cin >>...
680
309
/* * Copyright 2019 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 ...
3,279
1,153
/********************************************************************* * Rice University Software Distribution License * * Copyright (c) 2010, Rice University * All Rights Reserved. * * For a full description see the file named LICENSE. * *********************************************************************/ /...
3,561
1,153
#include "olcPixelGameEngine.h" #include <cstdlib> #include <memory> #include "GameEngine.h" #include "Card.h" #include "Board.h" int main() { clsEngine gameInstance; if (gameInstance.Construct(1280, 720, 1, 1)) gameInstance.Start(); return 0; }
255
111
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2008 Andreas Gaida Copyright (C) 2008 Ralph Schreyer Copyright (C) 2008 Klaus Spanderen This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://q...
2,479
731