hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
738662c27810c1ae8fd41b3675a52e067e5bb8b6 | 1,575 | cpp | C++ | src/sched/entry/ze/ze_event_wait_entry.cpp | otcshare/oneccl | 44dbef938cb7730eb4f3484389bacaadbfbb99ea | [
"Apache-2.0"
] | null | null | null | src/sched/entry/ze/ze_event_wait_entry.cpp | otcshare/oneccl | 44dbef938cb7730eb4f3484389bacaadbfbb99ea | [
"Apache-2.0"
] | null | null | null | src/sched/entry/ze/ze_event_wait_entry.cpp | otcshare/oneccl | 44dbef938cb7730eb4f3484389bacaadbfbb99ea | [
"Apache-2.0"
] | 1 | 2021-07-15T08:30:06.000Z | 2021-07-15T08:30:06.000Z | /*
Copyright 2016-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.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 30.882353 | 101 | 0.72254 | otcshare |
7387f9f8992e8b6c6a6aa4cc11eb4add18c8e617 | 3,159 | cpp | C++ | tests/test_depth_maps_pm.cpp | kpilyugin/PhotogrammetryTasks2021 | 7da69f04909075340a220a7021efeeb42283d9dc | [
"MIT"
] | null | null | null | tests/test_depth_maps_pm.cpp | kpilyugin/PhotogrammetryTasks2021 | 7da69f04909075340a220a7021efeeb42283d9dc | [
"MIT"
] | null | null | null | tests/test_depth_maps_pm.cpp | kpilyugin/PhotogrammetryTasks2021 | 7da69f04909075340a220a7021efeeb42283d9dc | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <opencv2/core.hpp>
#include <opencv2/opencv.hpp>
#include <fstream>
#include <libutils/timer.h>
#include <libutils/rasserts.h>
#include <libutils/string_utils.h>
#include <phg/utils/point_cloud_export.h>
#include <phg/utils/cameras_bundler_import.h>
#include <phg/mvs/depth_maps/pm_... | 41.565789 | 171 | 0.716682 | kpilyugin |
7387fb075c05ba940f346b6681a8dda890bd1dc1 | 3,362 | cpp | C++ | external/win32cpp/WCE samples/Scribble/MainFrm.cpp | probonopd/Update-Installer | 0e46db8acb7bb85174d9e63aca0fce9fbb9a57c2 | [
"BSD-2-Clause"
] | 236 | 2015-01-06T15:47:08.000Z | 2022-03-31T05:45:50.000Z | external/win32cpp/WCE samples/Scribble/MainFrm.cpp | probonopd/Update-Installer | 0e46db8acb7bb85174d9e63aca0fce9fbb9a57c2 | [
"BSD-2-Clause"
] | 8 | 2015-09-30T19:00:44.000Z | 2021-09-14T12:42:15.000Z | external/win32cpp/WCE samples/Scribble/MainFrm.cpp | probonopd/Update-Installer | 0e46db8acb7bb85174d9e63aca0fce9fbb9a57c2 | [
"BSD-2-Clause"
] | 60 | 2015-01-02T17:27:27.000Z | 2022-02-16T07:36:38.000Z | #include "MainFrm.h"
#include "resource.h"
CMainFrame::CMainFrame() : m_PenColor(RGB(0,0,0))
{
// Set the Resource IDs for the toolbar buttons
AddToolBarButton( 0 ); // Separator
AddToolBarButton( IDM_RED );
AddToolBarButton( IDM_BLUE );
AddToolBarButton( IDM_GREEN );
AddToolBarButton( IDM_BLACK );
}
void ... | 20.753086 | 83 | 0.682927 | probonopd |
7388c69d220200c084c0ca5685f72bcf630a3204 | 1,421 | cpp | C++ | src/rpcserver/iothreadpool.cpp | SymbioticLab/Salus | b2a194e7e4654b51dbd8d8fc1577fb1e9915ca6f | [
"Apache-2.0"
] | 104 | 2019-02-12T20:41:07.000Z | 2022-03-07T16:58:47.000Z | src/rpcserver/iothreadpool.cpp | SymbioticLab/Salus | b2a194e7e4654b51dbd8d8fc1577fb1e9915ca6f | [
"Apache-2.0"
] | 9 | 2019-08-24T03:23:21.000Z | 2021-06-06T17:59:07.000Z | src/rpcserver/iothreadpool.cpp | SymbioticLab/Salus | b2a194e7e4654b51dbd8d8fc1577fb1e9915ca6f | [
"Apache-2.0"
] | 18 | 2019-03-04T07:45:41.000Z | 2021-09-15T22:13:07.000Z | /*
* Copyright 2019 Peifeng Yu <peifeng@umich.edu>
*
* This file is part of Salus
* (see https://github.com/SymbioticLab/Salus).
*
* 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
*
... | 27.862745 | 80 | 0.717804 | SymbioticLab |
738a89dff4b2053c53125ee0b2421384ab36fd0b | 15,812 | cpp | C++ | tests/src/gui/testqgssqlcomposerdialog.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/gui/testqgssqlcomposerdialog.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/gui/testqgssqlcomposerdialog.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
testqgssqlcomposerdialog.cpp
--------------------------------------
Date : April 2016
Copyright : (C) 2016 Even Rouault
Email : even.rouault at spatialys.com
*********************... | 33.714286 | 201 | 0.667405 | dyna-mis |
738c7f95937e3f405448f7d9b026ded9d81c9c0f | 25 | cc | C++ | physicalBox.cc | dfyzy/simpleGL | 55790726559b46be596d16c294940ba629bd838c | [
"MIT"
] | 1 | 2016-10-16T21:19:21.000Z | 2016-10-16T21:19:21.000Z | physicalBox.cc | dfyzy/simpleGL | 55790726559b46be596d16c294940ba629bd838c | [
"MIT"
] | null | null | null | physicalBox.cc | dfyzy/simpleGL | 55790726559b46be596d16c294940ba629bd838c | [
"MIT"
] | null | null | null | #include "physicalBox.h"
| 12.5 | 24 | 0.76 | dfyzy |
738e715543f861d974c6fb8e827a5889e462391c | 7,577 | cpp | C++ | src/modules/events/temperature_calibration/gyro.cpp | mgkim3070/Drone_Firmware | 6843061ce5eb573424424598cf3bac33e037d4d0 | [
"BSD-3-Clause"
] | null | null | null | src/modules/events/temperature_calibration/gyro.cpp | mgkim3070/Drone_Firmware | 6843061ce5eb573424424598cf3bac33e037d4d0 | [
"BSD-3-Clause"
] | null | null | null | src/modules/events/temperature_calibration/gyro.cpp | mgkim3070/Drone_Firmware | 6843061ce5eb573424424598cf3bac33e037d4d0 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
*
* Copyright (c) 2017 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. ... | 35.078704 | 123 | 0.686287 | mgkim3070 |
738fbe615d90e30181d897804a5538d5ab970e6d | 2,034 | cpp | C++ | lit/SymbolFile/NativePDB/typedefs.cpp | nathawes/swift-lldb | 3cbf7470e0f9191ec1fc1c69ce8048c1dc64ec77 | [
"Apache-2.0"
] | 2 | 2019-05-24T14:10:24.000Z | 2019-05-24T14:27:38.000Z | lit/SymbolFile/NativePDB/typedefs.cpp | DalavanCloud/lldb | e913eaf2468290fb94c767d474d611b41a84dd69 | [
"Apache-2.0"
] | null | null | null | lit/SymbolFile/NativePDB/typedefs.cpp | DalavanCloud/lldb | e913eaf2468290fb94c767d474d611b41a84dd69 | [
"Apache-2.0"
] | null | null | null | // clang-format off
// REQUIRES: system-windows
// RUN: %build --compiler=clang-cl --nodefaultlib -o %t.exe -- %s
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck %s
namespace A {
namespace B {
using NamespaceTypedef = double;
}
template<typename T>
class C {
publi... | 28.25 | 114 | 0.692232 | nathawes |
7393c79c57121f10e1fa8e964b56e5a068e2892d | 2,926 | cpp | C++ | Src/Common/SceneControl/PointLightSceneNode.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | Src/Common/SceneControl/PointLightSceneNode.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | Src/Common/SceneControl/PointLightSceneNode.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | #include "Common/SceneControl/PointLightSceneNode.h"
#include <algorithm>
#include <iostream>
namespace SceneControl
{
PointLightSceneNode::PointLightSceneNode(SceneNode* a_parent, std::shared_ptr<ASphere> a_sphere )
: LightSceneNode(a_parent)
{
m_sphere = a_sphere;
}
PointLightSceneNode::~PointLightScen... | 26.36036 | 150 | 0.678742 | StavrosBizelis |
739491676802e865170067d53256855ed137f7fe | 44,364 | cpp | C++ | cocos2d/cocos/scripting/javascript/bindings/ScriptingCore.cpp | hiepns/OpenBird | 9e0198a1a2295f03fa1e8676e216e22c9c7d380b | [
"MIT"
] | 174 | 2015-01-01T15:12:53.000Z | 2022-03-23T03:06:07.000Z | cocos2d/cocos/scripting/javascript/bindings/ScriptingCore.cpp | shuaibin-lam/OpenBird | 762ab527a4a6bc7ede02ae6eb4f0702d21943f1b | [
"MIT"
] | 2 | 2015-05-20T14:34:48.000Z | 2019-08-14T00:54:40.000Z | cocos2d/cocos/scripting/javascript/bindings/ScriptingCore.cpp | shuaibin-lam/OpenBird | 762ab527a4a6bc7ede02ae6eb4f0702d21943f1b | [
"MIT"
] | 103 | 2015-01-10T13:34:24.000Z | 2022-01-10T00:55:33.000Z | //
// ScriptingCore.cpp
// testmonkey
//
// Created by Rolando Abarca on 3/14/12.
// Copyright (c) 2012 Zynga Inc. All rights reserved.
//
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <vector>
#include <map>
#include "ScriptingCore.h"
#include "jsdbga... | 29.225296 | 154 | 0.630128 | hiepns |
7397f201bc888d8a436aeb6e83868b36eec85a4f | 305 | hpp | C++ | library/ATF/$7A7EAA273238A7AEE4EBCB8D42B7FAA9.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/$7A7EAA273238A7AEE4EBCB8D42B7FAA9.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/$7A7EAA273238A7AEE4EBCB8D42B7FAA9.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
enum $7A7EAA273238A7AEE4EBCB8D42B7FAA9
{
combineslot_base = 0x0,
combineslot_max = 0x5,
};
END_ATF_NAMESPACE
| 21.785714 | 108 | 0.734426 | lemkova |
73997f23aa41c72edfe6e899e16f9d36e9bd1c4d | 17,757 | cpp | C++ | AnalyzerExamples/CanAnalyzer/CanSimulationDataGenerator.cpp | blargony/RFFEAnalyzer | 24684cee1494f5ac4bd7d9c9f020f42248a06f89 | [
"MIT"
] | 15 | 2015-06-23T23:28:24.000Z | 2022-03-12T03:23:31.000Z | AnalyzerExamples/CanAnalyzer/CanSimulationDataGenerator.cpp | blargony/RFFEAnalyzer | 24684cee1494f5ac4bd7d9c9f020f42248a06f89 | [
"MIT"
] | 3 | 2015-06-23T23:41:48.000Z | 2022-03-16T22:20:50.000Z | AnalyzerExamples/CanAnalyzer/CanSimulationDataGenerator.cpp | blargony/RFFEAnalyzer | 24684cee1494f5ac4bd7d9c9f020f42248a06f89 | [
"MIT"
] | 3 | 2015-06-23T23:28:30.000Z | 2020-07-30T15:46:04.000Z | #include "CanSimulationDataGenerator.h"
#include "CanAnalyzerSettings.h"
CanSimulationDataGenerator::CanSimulationDataGenerator()
{
}
CanSimulationDataGenerator::~CanSimulationDataGenerator()
{
}
void CanSimulationDataGenerator::Initialize( U32 simulation_sample_rate, CanAnalyzerSettings* settings )
{
... | 35.72837 | 175 | 0.707327 | blargony |
739ab177355eb1cb10a4e1ed9547d2da179af27c | 2,853 | cpp | C++ | src/Editor/WorldEditor/WCreateTab.cpp | henriquegemignani/PrimeWorldEditor | 741185e8d695c5bc86b7efbfadaf4e5dcd67d4d9 | [
"MIT"
] | null | null | null | src/Editor/WorldEditor/WCreateTab.cpp | henriquegemignani/PrimeWorldEditor | 741185e8d695c5bc86b7efbfadaf4e5dcd67d4d9 | [
"MIT"
] | null | null | null | src/Editor/WorldEditor/WCreateTab.cpp | henriquegemignani/PrimeWorldEditor | 741185e8d695c5bc86b7efbfadaf4e5dcd67d4d9 | [
"MIT"
] | 1 | 2020-02-21T15:22:56.000Z | 2020-02-21T15:22:56.000Z | #include "WCreateTab.h"
#include "ui_WCreateTab.h"
#include "CTemplateMimeData.h"
#include "CWorldEditor.h"
#include "Editor/Undo/UndoCommands.h"
#include <Core/Resource/Script/NGameList.h>
WCreateTab::WCreateTab(CWorldEditor *pEditor, QWidget *pParent /*= 0*/)
: QWidget(pParent)
, ui(new Ui::WCreateTab)
,... | 30.677419 | 133 | 0.637925 | henriquegemignani |
739be0511a8c2d7671de887ce70681e779f65c2a | 323 | hpp | C++ | include/result/version.hpp | cmrobotics/result | 89f2fdfdb9708fad9e794d6af3f705c4af420e7d | [
"MIT"
] | null | null | null | include/result/version.hpp | cmrobotics/result | 89f2fdfdb9708fad9e794d6af3f705c4af420e7d | [
"MIT"
] | null | null | null | include/result/version.hpp | cmrobotics/result | 89f2fdfdb9708fad9e794d6af3f705c4af420e7d | [
"MIT"
] | null | null | null | #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... | 19 | 110 | 0.826625 | cmrobotics |
739cc68ea31cdfc8a7f343f0ff8d06187bcf0767 | 22,188 | cpp | C++ | src/demos/sensor/demo_SEN_Gator.cpp | lucasw/chrono | e79d8c761c718ecb4c796725cff37026f357da8c | [
"BSD-3-Clause"
] | null | null | null | src/demos/sensor/demo_SEN_Gator.cpp | lucasw/chrono | e79d8c761c718ecb4c796725cff37026f357da8c | [
"BSD-3-Clause"
] | null | null | null | src/demos/sensor/demo_SEN_Gator.cpp | lucasw/chrono | e79d8c761c718ecb4c796725cff37026f357da8c | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// 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... | 43.251462 | 120 | 0.570128 | lucasw |
739dcd6701e5b595ac5bf68d0c537a9d7c46e90f | 10,785 | hpp | C++ | yolox_ros_cpp/yolox_cpp/include/yolox_cpp/core.hpp | HarvestX/YOLOX-ROS | f73bf6ab8f11ac0f720d4e5b3acc9737dfa44498 | [
"Apache-2.0"
] | 2 | 2022-02-21T09:56:42.000Z | 2022-02-22T00:38:41.000Z | yolox_ros_cpp/yolox_cpp/include/yolox_cpp/core.hpp | HarvestX/YOLOX-ROS | f73bf6ab8f11ac0f720d4e5b3acc9737dfa44498 | [
"Apache-2.0"
] | 5 | 2022-02-22T05:38:54.000Z | 2022-03-29T09:17:32.000Z | yolox_ros_cpp/yolox_cpp/include/yolox_cpp/core.hpp | HarvestX/YOLOX-ROS | f73bf6ab8f11ac0f720d4e5b3acc9737dfa44498 | [
"Apache-2.0"
] | null | null | null | #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 ... | 38.935018 | 212 | 0.418544 | HarvestX |
739e0781817325c9c53c2d1b9c20358752c73dc8 | 8,713 | cpp | C++ | packages/utility/system/test/tstSphericalDirectionalCoordinateConversionPolicy.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/utility/system/test/tstSphericalDirectionalCoordinateConversionPolicy.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/utility/system/test/tstSphericalDirectionalCoordinateConversionPolicy.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file tstSphericalDirectionalCoordinateConversionPolicy.cpp
//! \author Alex Robinson
//! \brief Spherical directional coordinate conversion policy unit tests
//!
//----------------------------------------------------------------... | 44.682051 | 89 | 0.596236 | bam241 |
73a02df7bd3f19fc1efb0e588c8be63205f76042 | 2,119 | cpp | C++ | extensions_loader.cpp | kevinfrei/neutralinojs | d6433ec105d102a25a011897fa1c0a45dce8aca3 | [
"WTFPL"
] | 1 | 2018-06-23T03:45:10.000Z | 2018-06-23T03:45:10.000Z | extensions_loader.cpp | kevinfrei/neutralinojs | d6433ec105d102a25a011897fa1c0a45dce8aca3 | [
"WTFPL"
] | null | null | null | extensions_loader.cpp | kevinfrei/neutralinojs | d6433ec105d102a25a011897fa1c0a45dce8aca3 | [
"WTFPL"
] | null | null | null | #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... | 27.881579 | 117 | 0.657857 | kevinfrei |
73a32a7eab079e8d8054f8741b4a29111e5c527e | 2,159 | hpp | C++ | Testbed/Tests/HalfPipe.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | Testbed/Tests/HalfPipe.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | Testbed/Tests/HalfPipe.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* 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... | 39.981481 | 98 | 0.592867 | louis-langholtz |
73a3cc66a9df48306cf9b544108bedb734859e28 | 6,876 | cpp | C++ | test-rpg/src/Character.cpp | sps1112/test-rpg | 28b2acb4379695ad7e04401161ecca92cab9e3a6 | [
"MIT"
] | 2 | 2021-07-09T12:25:24.000Z | 2021-12-22T12:38:47.000Z | test-rpg/src/Character.cpp | sps1112/test-rpg | 28b2acb4379695ad7e04401161ecca92cab9e3a6 | [
"MIT"
] | null | null | null | test-rpg/src/Character.cpp | sps1112/test-rpg | 28b2acb4379695ad7e04401161ecca92cab9e3a6 | [
"MIT"
] | null | null | null | #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;
... | 31.113122 | 100 | 0.557446 | sps1112 |
73a47a22080908680a30abee01a81c8c63776d50 | 2,243 | cpp | C++ | src/scripting/CameraScripting.cpp | ZaOniRinku/NeigeEngine | 8dfe06e428ec1751ba0b5003ccdf5162474f002b | [
"MIT"
] | 9 | 2020-10-06T11:17:07.000Z | 2022-03-29T20:28:07.000Z | src/scripting/CameraScripting.cpp | ZaOniRinku/NeigeEngine | 8dfe06e428ec1751ba0b5003ccdf5162474f002b | [
"MIT"
] | 1 | 2020-10-06T11:55:45.000Z | 2020-10-06T12:07:46.000Z | src/scripting/CameraScripting.cpp | ZaOniRinku/NeigeEngine | 8dfe06e428ec1751ba0b5003ccdf5162474f002b | [
"MIT"
] | null | null | null | #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... | 24.380435 | 127 | 0.644226 | ZaOniRinku |
73a5ec1a46304b47ea877a461b22cdbce9b1cd91 | 1,246 | hpp | C++ | source/ddnspp/common/dlloader.hpp | John-Chan/dnssdpp | 5d974c01db9f01bdd87ff5f547b5a310227a41a3 | [
"Apache-2.0"
] | null | null | null | source/ddnspp/common/dlloader.hpp | John-Chan/dnssdpp | 5d974c01db9f01bdd87ff5f547b5a310227a41a3 | [
"Apache-2.0"
] | null | null | null | source/ddnspp/common/dlloader.hpp | John-Chan/dnssdpp | 5d974c01db9f01bdd87ff5f547b5a310227a41a3 | [
"Apache-2.0"
] | null | null | null | #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)
... | 18.057971 | 61 | 0.576244 | John-Chan |
73a80bbfc941fc3e00aadc4871159e1c8922fd67 | 7,678 | cpp | C++ | src/gausskernel/storage/mot/core/src/system/mot_error.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | 1 | 2020-06-30T15:00:50.000Z | 2020-06-30T15:00:50.000Z | src/gausskernel/storage/mot/core/src/system/mot_error.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | src/gausskernel/storage/mot/core/src/system/mot_error.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | /*
* 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 ... | 29.417625 | 120 | 0.636494 | wotchin |
73ae11d09c48fe3a211b70bcb657f26912d2af0b | 780 | hpp | C++ | include/lol/def/LolCollectionsCollectionsTopChampionMasteries.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolCollectionsCollectionsTopChampionMasteries.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolCollectionsCollectionsTopChampionMasteries.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #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... | 39 | 98 | 0.725641 | Maufeat |
73ae4b067d02e1b8ff136d311fdc05d96d9a4614 | 49,584 | cpp | C++ | qtmultimedia/src/plugins/winrt/qwinrtcameracontrol.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | qtmultimedia/src/plugins/winrt/qwinrtcameracontrol.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | qtmultimedia/src/plugins/winrt/qwinrtcameracontrol.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
**
** 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 ... | 35.697624 | 164 | 0.673362 | wgnet |
73af7d36d6c4b4d17f1e692a9b88001686d08dcf | 11,290 | cpp | C++ | hi_modules/effects/editors/DelayEditor.cpp | psobot/HISE | cb97378039bae22c8eade3d4b699931bfd65c7d1 | [
"Intel",
"MIT"
] | 1 | 2021-03-04T19:37:06.000Z | 2021-03-04T19:37:06.000Z | hi_modules/effects/editors/DelayEditor.cpp | psobot/HISE | cb97378039bae22c8eade3d4b699931bfd65c7d1 | [
"Intel",
"MIT"
] | null | null | null | hi_modules/effects/editors/DelayEditor.cpp | psobot/HISE | cb97378039bae22c8eade3d4b699931bfd65c7d1 | [
"Intel",
"MIT"
] | null | null | null | /*
==============================================================================
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... | 39.475524 | 106 | 0.653322 | psobot |
73affffd66868ddc8821e36fdd6faa9691beff8e | 9,342 | cpp | C++ | doc/src/Chapter8-programs/cpp/MBPT/minnesota_potential.cpp | cpmoca/LectureNotesPhysics | 8e9f8c5d7f163ea10b14002850f7c79acc4513df | [
"CC0-1.0"
] | 24 | 2016-11-22T09:42:49.000Z | 2022-03-11T01:33:46.000Z | doc/src/Chapter8-programs/cpp/MBPT/minnesota_potential.cpp | cpmoca/LectureNotesPhysics | 8e9f8c5d7f163ea10b14002850f7c79acc4513df | [
"CC0-1.0"
] | null | null | null | doc/src/Chapter8-programs/cpp/MBPT/minnesota_potential.cpp | cpmoca/LectureNotesPhysics | 8e9f8c5d7f163ea10b14002850f7c79acc4513df | [
"CC0-1.0"
] | 25 | 2016-05-24T22:54:07.000Z | 2022-02-20T00:08:19.000Z | #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/... | 48.910995 | 131 | 0.621066 | cpmoca |
73b20b0eb8bcfd36319ab1f750b27f5a1e3c8f30 | 12,275 | hpp | C++ | src/ropufu/format/mat4_header.hpp | ropufu/aftermath | ab9364c41672a188879d84ebebb5a23f2d6641ec | [
"MIT"
] | null | null | null | src/ropufu/format/mat4_header.hpp | ropufu/aftermath | ab9364c41672a188879d84ebebb5a23f2d6641ec | [
"MIT"
] | null | null | null | src/ropufu/format/mat4_header.hpp | ropufu/aftermath | ab9364c41672a188879d84ebebb5a23f2d6641ec | [
"MIT"
] | null | null | null |
#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... | 47.211538 | 141 | 0.635682 | ropufu |
73b2de56a733c2aebe2a6c67cc40186136ea0917 | 1,425 | hpp | C++ | src/cpu/x64/brgemm/brgemm_amx.hpp | IvanNovoselov/oneDNN | aa47fcd2a03ee5caac119b6417bc66abe3154aab | [
"Apache-2.0"
] | 4 | 2019-02-01T11:16:59.000Z | 2020-04-27T17:27:06.000Z | src/cpu/x64/brgemm/brgemm_amx.hpp | IvanNovoselov/oneDNN | aa47fcd2a03ee5caac119b6417bc66abe3154aab | [
"Apache-2.0"
] | 1 | 2020-04-17T22:23:01.000Z | 2020-04-23T21:11:41.000Z | src/cpu/x64/brgemm/brgemm_amx.hpp | IvanNovoselov/oneDNN | aa47fcd2a03ee5caac119b6417bc66abe3154aab | [
"Apache-2.0"
] | 5 | 2019-02-08T07:36:01.000Z | 2021-07-14T07:58:50.000Z | /*******************************************************************************
* 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... | 29.6875 | 80 | 0.657544 | IvanNovoselov |
73b3a4596cd78848524d1c62f38c0ef15d1fa680 | 14,544 | cpp | C++ | test/api/wallets.cpp | dated/cpp-client | 392ad9ad87004165651aee61feca1b0320b287f8 | [
"MIT"
] | 11 | 2018-10-23T15:06:01.000Z | 2021-11-17T08:02:24.000Z | test/api/wallets.cpp | dated/cpp-client | 392ad9ad87004165651aee61feca1b0320b287f8 | [
"MIT"
] | 160 | 2018-10-24T17:29:11.000Z | 2021-05-10T14:14:29.000Z | test/api/wallets.cpp | dated/cpp-client | 392ad9ad87004165651aee61feca1b0320b287f8 | [
"MIT"
] | 28 | 2018-10-19T10:05:30.000Z | 2020-11-23T23:31:40.000Z |
#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
/*... | 33.981308 | 166 | 0.656216 | dated |
73b7336f682ba26cfed8a868e6defae302ec6ff4 | 130 | cpp | C++ | src/options.cpp | kz04px/chip8-interpreter | 51476ca70fec25c1657ae94a92a31758b49e195e | [
"MIT"
] | null | null | null | src/options.cpp | kz04px/chip8-interpreter | 51476ca70fec25c1657ae94a92a31758b49e195e | [
"MIT"
] | null | null | null | src/options.cpp | kz04px/chip8-interpreter | 51476ca70fec25c1657ae94a92a31758b49e195e | [
"MIT"
] | null | null | null | #include "options.hpp"
namespace options {
bool borders = true;
bool debug = false;
bool mute = false;
} // namespace options
| 13 | 23 | 0.7 | kz04px |
73b8c5a5d085532576b015c9e803a2555fcf495d | 1,884 | cc | C++ | amqp-open/src/model/ListBindingsRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | amqp-open/src/model/ListBindingsRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | amqp-open/src/model/ListBindingsRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* 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... | 25.459459 | 75 | 0.75 | iamzken |
73b9eb40e4d41b656d279febf6f9387e66b4d3e2 | 3,735 | cpp | C++ | rocsolver/library/src/lapack/roclapack_potrf.cpp | leekillough/rocSOLVER | a0fa2af65be983dcec60081ed618b0642867aef0 | [
"BSD-2-Clause"
] | null | null | null | rocsolver/library/src/lapack/roclapack_potrf.cpp | leekillough/rocSOLVER | a0fa2af65be983dcec60081ed618b0642867aef0 | [
"BSD-2-Clause"
] | null | null | null | rocsolver/library/src/lapack/roclapack_potrf.cpp | leekillough/rocSOLVER | a0fa2af65be983dcec60081ed618b0642867aef0 | [
"BSD-2-Clause"
] | null | null | null | /* ************************************************************************
* Copyright 2019-2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "roclapack_potrf.hpp"
template <typename S, typename T, typename U>
rocblas_status rocsolver_potrf_imp... | 36.262136 | 117 | 0.578849 | leekillough |
73be838c6e696c7e54255b7284532aa3b36c68ac | 11,643 | cpp | C++ | ngraph/test/backend/group_convolution_backprop_data.in.cpp | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | 1 | 2021-07-14T07:20:24.000Z | 2021-07-14T07:20:24.000Z | ngraph/test/backend/group_convolution_backprop_data.in.cpp | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | 34 | 2020-11-19T12:27:40.000Z | 2022-02-21T13:14:04.000Z | ngraph/test/backend/group_convolution_backprop_data.in.cpp | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | null | null | null | // 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... | 46.202381 | 117 | 0.449884 | monroid |
73bf6f8d6f2592fe2a09c64173e1b709630ed9ad | 18,066 | cpp | C++ | utils/errmsg/errmsg.cpp | kammerdienerb/flang | 8cc4a02b94713750f09fe6b756d33daced0b4a74 | [
"Apache-2.0"
] | 1 | 2019-12-11T17:43:58.000Z | 2019-12-11T17:43:58.000Z | utils/errmsg/errmsg.cpp | kammerdienerb/flang | 8cc4a02b94713750f09fe6b756d33daced0b4a74 | [
"Apache-2.0"
] | 2 | 2019-12-29T21:15:40.000Z | 2020-06-15T11:21:10.000Z | utils/errmsg/errmsg.cpp | kammerdienerb/flang | 8cc4a02b94713750f09fe6b756d33daced0b4a74 | [
"Apache-2.0"
] | 3 | 2019-12-21T06:35:35.000Z | 2020-06-07T23:18:58.000Z | /*
* 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 ... | 31.918728 | 80 | 0.579154 | kammerdienerb |
73c20d2ab7b184acabd3485d0ca0ca8267bb8a70 | 2,751 | hpp | C++ | breeze/debugging/dump_expression.hpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:35:52.000Z | 2021-04-03T22:35:52.000Z | breeze/debugging/dump_expression.hpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | null | null | null | breeze/debugging/dump_expression.hpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T04:26:48.000Z | 2021-10-01T04:26:48.000Z | // ===========================================================================
// 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... | 45.85 | 78 | 0.455107 | gennaroprota |
73c2fd63df7c371a3d3378954583d8eb779433c2 | 10,153 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Misc/NVC_MFC_RebarTest/cpp/MainFrm.cpp | sashang/docs-1 | 8399f7c62a5ed6031ee7c576503cc73c268c09bb | [
"CC-BY-4.0",
"MIT"
] | null | null | null | samples/snippets/cpp/VS_Snippets_Misc/NVC_MFC_RebarTest/cpp/MainFrm.cpp | sashang/docs-1 | 8399f7c62a5ed6031ee7c576503cc73c268c09bb | [
"CC-BY-4.0",
"MIT"
] | 15 | 2022-03-23T00:40:19.000Z | 2022-03-23T00:40:39.000Z | samples/snippets/cpp/VS_Snippets_Misc/NVC_MFC_RebarTest/cpp/MainFrm.cpp | sashang/docs-1 | 8399f7c62a5ed6031ee7c576503cc73c268c09bb | [
"CC-BY-4.0",
"MIT"
] | null | null | null | // 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... | 26.578534 | 97 | 0.751699 | sashang |
73c35c2ac358da87aa1b59edd3d1c2f9ce8d68f9 | 1,601 | cpp | C++ | src/trainerwrapper.cpp | roloza7/nn-test | 3400e6e065be68858c6ce692d349f3ddb8596033 | [
"MIT"
] | null | null | null | src/trainerwrapper.cpp | roloza7/nn-test | 3400e6e065be68858c6ce692d349f3ddb8596033 | [
"MIT"
] | null | null | null | src/trainerwrapper.cpp | roloza7/nn-test | 3400e6e065be68858c6ce692d349f3ddb8596033 | [
"MIT"
] | null | null | null | #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... | 26.245902 | 81 | 0.695815 | roloza7 |
73c4be390e11a7acd2aec5c9e208abbb026fa126 | 4,687 | cpp | C++ | VAIC_ISU_24/src/map.cpp | wpivex/vaic-v5-20_21 | ee3528ac0c2a0760ff7e15500a3160f297f889c7 | [
"MIT"
] | null | null | null | VAIC_ISU_24/src/map.cpp | wpivex/vaic-v5-20_21 | ee3528ac0c2a0760ff7e15500a3160f297f889c7 | [
"MIT"
] | null | null | null | VAIC_ISU_24/src/map.cpp | wpivex/vaic-v5-20_21 | ee3528ac0c2a0760ff7e15500a3160f297f889c7 | [
"MIT"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* */
/* Module: map.cpp */
/* Author: Jatin ... | 27.570588 | 100 | 0.550245 | wpivex |
73c7b96ac49869e4b4d20e36744795821b96e551 | 228 | cpp | C++ | 2_1_1.cpp | youngjeff/coursera | 8fc25ab04a1c0749fe4f9fd24f170c02db0b1f82 | [
"Apache-2.0"
] | null | null | null | 2_1_1.cpp | youngjeff/coursera | 8fc25ab04a1c0749fe4f9fd24f170c02db0b1f82 | [
"Apache-2.0"
] | null | null | null | 2_1_1.cpp | youngjeff/coursera | 8fc25ab04a1c0749fe4f9fd24f170c02db0b1f82 | [
"Apache-2.0"
] | null | null | null | #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;
}
| 9.913043 | 21 | 0.482456 | youngjeff |
73c803497dd0add1806b854d80e19b0e6e6afda1 | 216 | hpp | C++ | dynamic/wrappers/mesh/PottsElement3.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 6 | 2017-02-04T16:10:53.000Z | 2021-07-01T08:03:16.000Z | dynamic/wrappers/mesh/PottsElement3.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 6 | 2017-06-22T08:50:41.000Z | 2019-12-15T20:17:29.000Z | dynamic/wrappers/mesh/PottsElement3.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 3 | 2017-05-15T21:33:58.000Z | 2019-10-27T21:43:07.000Z | #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
| 30.857143 | 49 | 0.87037 | jmsgrogan |
73c88cb87b8bda75ea13212b26c55f84bb6cb392 | 6,528 | cpp | C++ | OpenSeesParser.cpp | fmckenna/EE-UQ | a1fe96fd000aec933430bda5829c82b5743338c3 | [
"BSD-2-Clause"
] | 1 | 2019-04-30T19:38:17.000Z | 2019-04-30T19:38:17.000Z | OpenSeesParser.cpp | s-m-amin-ghasemi/EE-UQ | 7eb42d09b59b42fd1256c6d8693cfe46e0b8034b | [
"BSD-2-Clause"
] | 2 | 2018-09-11T01:32:27.000Z | 2018-09-11T23:08:06.000Z | OpenSeesParser.cpp | s-m-amin-ghasemi/EE-UQ | 7eb42d09b59b42fd1256c6d8693cfe46e0b8034b | [
"BSD-2-Clause"
] | 6 | 2018-05-14T21:45:24.000Z | 2018-10-04T18:13:42.000Z |
/* *****************************************************************************
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... | 36.674157 | 127 | 0.620251 | fmckenna |
73c8afcec42a3d286bf261dd98130ed029e0ff26 | 5,841 | cpp | C++ | FlighterSerrisBertament/FlighterSerrisBertament/Application.cpp | lkstc112233/FlighterSerrisBertament | aa667f799f96c535148bbc7975b337c7b8419816 | [
"MIT"
] | null | null | null | FlighterSerrisBertament/FlighterSerrisBertament/Application.cpp | lkstc112233/FlighterSerrisBertament | aa667f799f96c535148bbc7975b337c7b8419816 | [
"MIT"
] | null | null | null | FlighterSerrisBertament/FlighterSerrisBertament/Application.cpp | lkstc112233/FlighterSerrisBertament | aa667f799f96c535148bbc7975b337c7b8419816 | [
"MIT"
] | null | null | null | #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... | 30.264249 | 80 | 0.649033 | lkstc112233 |
73c8b0cdf0697dc2df99d8caf25bec80359fc3e0 | 2,567 | cpp | C++ | tree/medium/173.BinarySearchTreeIterator.cpp | XiaotaoGuo/Leetcode-Solution-In-Cpp | 8e01e35c742a7afb0c8cdd228a6a5e564375434e | [
"Apache-2.0"
] | null | null | null | tree/medium/173.BinarySearchTreeIterator.cpp | XiaotaoGuo/Leetcode-Solution-In-Cpp | 8e01e35c742a7afb0c8cdd228a6a5e564375434e | [
"Apache-2.0"
] | null | null | null | tree/medium/173.BinarySearchTreeIterator.cpp | XiaotaoGuo/Leetcode-Solution-In-Cpp | 8e01e35c742a7afb0c8cdd228a6a5e564375434e | [
"Apache-2.0"
] | null | null | null | /*
* @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... | 23.990654 | 95 | 0.609661 | XiaotaoGuo |
73ca25d498b6dcf5c52c1a246fe269a47609b4af | 3,357 | cpp | C++ | src/PhyloAcc-GT/profile.cpp | gwct/PhyloAcc | 089162e2bce5a17b95d71add074bf51bccc8a266 | [
"MIT"
] | null | null | null | src/PhyloAcc-GT/profile.cpp | gwct/PhyloAcc | 089162e2bce5a17b95d71add074bf51bccc8a266 | [
"MIT"
] | null | null | null | src/PhyloAcc-GT/profile.cpp | gwct/PhyloAcc | 089162e2bce5a17b95d71add074bf51bccc8a266 | [
"MIT"
] | null | null | null | #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 ... | 27.975 | 107 | 0.563003 | gwct |
73ca3792a03420a375b91425d40f8015d5fd3bb8 | 2,922 | cpp | C++ | cpp/cpp/721. Accounts Merge.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | 3 | 2021-08-07T07:01:34.000Z | 2021-08-07T07:03:02.000Z | cpp/cpp/721. Accounts Merge.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | cpp/cpp/721. Accounts Merge.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | // 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... | 37.948052 | 81 | 0.562628 | longwangjhu |
73ca49245ff62774ee448f2ccb2a5973bf018a42 | 2,029 | cpp | C++ | oneflow/user/kernels/generate_random_batch_permutation_indices_kernel.cpp | wangyuyue/oneflow | 0a71c22fe8355392acc8dc0e301589faee4c4832 | [
"Apache-2.0"
] | 3,285 | 2020-07-31T05:51:22.000Z | 2022-03-31T15:20:16.000Z | oneflow/user/kernels/generate_random_batch_permutation_indices_kernel.cpp | duijiudanggecl/oneflow | d2096ae14cf847509394a3b717021e2bd1d72f62 | [
"Apache-2.0"
] | 2,417 | 2020-07-31T06:28:58.000Z | 2022-03-31T23:04:14.000Z | oneflow/user/kernels/generate_random_batch_permutation_indices_kernel.cpp | duijiudanggecl/oneflow | d2096ae14cf847509394a3b717021e2bd1d72f62 | [
"Apache-2.0"
] | 520 | 2020-07-31T05:52:42.000Z | 2022-03-29T02:38:11.000Z | /*
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... | 40.58 | 98 | 0.759487 | wangyuyue |
73ca79e05c8b1bf5d9bcf8f7cf628d550a210566 | 4,558 | cc | C++ | mindspore/lite/src/runtime/kernel/arm/string/predict.cc | ZLkanyo009/mindspore | 0a6ed86bb443ed233504fa7eee931a24637d50bb | [
"Apache-2.0"
] | 2 | 2021-07-08T13:10:42.000Z | 2021-11-08T02:48:57.000Z | mindspore/lite/src/runtime/kernel/arm/string/predict.cc | peixinhou/mindspore | fcb2ec2779b753e95c762cf292b23bd81d1f561b | [
"Apache-2.0"
] | null | null | null | mindspore/lite/src/runtime/kernel/arm/string/predict.cc | peixinhou/mindspore | fcb2ec2779b753e95c762cf292b23bd81d1f561b | [
"Apache-2.0"
] | null | null | null | /**
* 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... | 38.627119 | 119 | 0.683414 | ZLkanyo009 |
73cb633f5fa1a764c122a608cc4757ef3cd2d568 | 2,001 | hpp | C++ | hpx/runtime/components/server/preprocessed/runtime_support_create_component_capabilities.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/runtime/components/server/preprocessed/runtime_support_create_component_capabilities.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/runtime/components/server/preprocessed/runtime_support_create_component_capabilities.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | // 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... | 54.081081 | 106 | 0.86007 | andreasbuhr |
73cc4087180868f033aaa43bc7724e5ad04010e0 | 3,341 | cpp | C++ | AudioSynthesis/Audio/loop.cpp | eliasrm87/AudioSynthesisQt | feb05c74d85494300d0fca868a37015042ec74c8 | [
"Unlicense"
] | 1 | 2021-09-03T11:06:45.000Z | 2021-09-03T11:06:45.000Z | AudioSynthesis/Audio/loop.cpp | eliasrm87/AudioSynthesisQt | feb05c74d85494300d0fca868a37015042ec74c8 | [
"Unlicense"
] | null | null | null | AudioSynthesis/Audio/loop.cpp | eliasrm87/AudioSynthesisQt | feb05c74d85494300d0fca868a37015042ec74c8 | [
"Unlicense"
] | 2 | 2021-09-03T11:06:53.000Z | 2021-09-03T11:07:25.000Z | #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) {
... | 21.280255 | 77 | 0.57408 | eliasrm87 |
73ccfd3cb0f80bde181a6d4f4ec41b917af71cc8 | 27,244 | cc | C++ | src/common/chemistry/tests_regression/batch_chem.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/common/chemistry/tests_regression/batch_chem.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/common/chemistry/tests_regression/batch_chem.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | #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 "... | 39.143678 | 110 | 0.602812 | fmyuan |
73d091a7595a87265d1acfa7b9081aac2fc8a915 | 406 | hpp | C++ | src/point.hpp | harry830622/fixed-outline-floorplanning | 8fc1fc91f0e3329c6369c8b1f863bcce31465430 | [
"MIT"
] | 4 | 2019-07-02T18:15:01.000Z | 2021-12-22T06:09:35.000Z | src/point.hpp | harry830622/fixed-outline-floorplanning | 8fc1fc91f0e3329c6369c8b1f863bcce31465430 | [
"MIT"
] | null | null | null | src/point.hpp | harry830622/fixed-outline-floorplanning | 8fc1fc91f0e3329c6369c8b1f863bcce31465430 | [
"MIT"
] | 1 | 2016-12-07T15:13:07.000Z | 2016-12-07T15:13:07.000Z | #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;
... | 16.916667 | 71 | 0.694581 | harry830622 |
73d158187bc010e9aec65b6a81de99539d4e7b90 | 16,317 | cc | C++ | generator/integration_tests/golden/tests/golden_thing_admin_auth_decorator_test.cc | bryanlaura736/google-cloud-cpp | c0179a2209a4b11f8db1b1b474c1c8bdb2f1df86 | [
"Apache-2.0"
] | null | null | null | generator/integration_tests/golden/tests/golden_thing_admin_auth_decorator_test.cc | bryanlaura736/google-cloud-cpp | c0179a2209a4b11f8db1b1b474c1c8bdb2f1df86 | [
"Apache-2.0"
] | null | null | null | generator/integration_tests/golden/tests/golden_thing_admin_auth_decorator_test.cc | bryanlaura736/google-cloud-cpp | c0179a2209a4b11f8db1b1b474c1c8bdb2f1df86 | [
"Apache-2.0"
] | null | null | null | // 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... | 43.981132 | 90 | 0.771036 | bryanlaura736 |
73d1ac7b1a8d34b165370c90d6fd1b84f8e16aa4 | 666 | cpp | C++ | review_gg/longestCommonPrefix.cpp | alchemz/interview-algorithm-questions | 34039fc0db2766cf7531668a9947779a3835ebf5 | [
"MIT"
] | null | null | null | review_gg/longestCommonPrefix.cpp | alchemz/interview-algorithm-questions | 34039fc0db2766cf7531668a9947779a3835ebf5 | [
"MIT"
] | null | null | null | review_gg/longestCommonPrefix.cpp | alchemz/interview-algorithm-questions | 34039fc0db2766cf7531668a9947779a3835ebf5 | [
"MIT"
] | null | null | null | //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... | 22.965517 | 85 | 0.644144 | alchemz |
73d1d961b9b2003e9fa235136a493b26046ab0f4 | 3,560 | cpp | C++ | v3d_main/mozak/m_terafly/src/control/m_QUndoMarkerCreate.cpp | lens-biophotonics/v3d_external | 44ff3b60a297a96eaa77ca092e0de9af5c990ed3 | [
"MIT"
] | 39 | 2015-05-10T23:23:03.000Z | 2022-01-26T01:31:30.000Z | v3d_main/mozak/m_terafly/src/control/m_QUndoMarkerCreate.cpp | lens-biophotonics/v3d_external | 44ff3b60a297a96eaa77ca092e0de9af5c990ed3 | [
"MIT"
] | 13 | 2016-03-04T05:29:23.000Z | 2021-02-07T01:11:10.000Z | v3d_main/mozak/m_terafly/src/control/m_QUndoMarkerCreate.cpp | lens-biophotonics/v3d_external | 44ff3b60a297a96eaa77ca092e0de9af5c990ed3 | [
"MIT"
] | 44 | 2015-11-11T07:30:59.000Z | 2021-12-26T16:41:21.000Z | #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... | 34.230769 | 165 | 0.68736 | lens-biophotonics |
73d2718c9ae9549a1baabb2f2bd5d5452ea611d0 | 5,384 | cpp | C++ | common/fileview2/fvquerysource.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | null | null | null | common/fileview2/fvquerysource.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 1 | 2018-03-01T18:15:12.000Z | 2018-03-01T18:15:12.000Z | common/fileview2/fvquerysource.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 3 | 2021-05-02T17:01:57.000Z | 2021-05-02T17:02:28.000Z | /*##############################################################################
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... | 31.670588 | 128 | 0.678492 | miguelvazq |
73d672c11d2ba0f1999c1eb76be54c5848c0e9d4 | 380 | cpp | C++ | predavanje5/vector12.cpp | Miillky/algoritmi_i_strukture_podataka | b5813f4b897a1370b6f46782bf5ecd474d0d7e20 | [
"MIT"
] | null | null | null | predavanje5/vector12.cpp | Miillky/algoritmi_i_strukture_podataka | b5813f4b897a1370b6f46782bf5ecd474d0d7e20 | [
"MIT"
] | null | null | null | predavanje5/vector12.cpp | Miillky/algoritmi_i_strukture_podataka | b5813f4b897a1370b6f46782bf5ecd474d0d7e20 | [
"MIT"
] | null | null | null | #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... | 22.352941 | 91 | 0.613158 | Miillky |
73d80f96d5421a87f7fe89992e14e228f26355b3 | 15,621 | cpp | C++ | _studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder_hw.cpp | chuanli1/oneVPL-intel-gpu | 9d337b4add45f861f0307dc75fa1e50786b73462 | [
"MIT"
] | null | null | null | _studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder_hw.cpp | chuanli1/oneVPL-intel-gpu | 9d337b4add45f861f0307dc75fa1e50786b73462 | [
"MIT"
] | null | null | null | _studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder_hw.cpp | chuanli1/oneVPL-intel-gpu | 9d337b4add45f861f0307dc75fa1e50786b73462 | [
"MIT"
] | null | null | null | // 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,... | 30.629412 | 151 | 0.605147 | chuanli1 |
73d9c024579bede1257529c1ffc856074b6b47c2 | 2,679 | cpp | C++ | modules/task_4/iamshchikov_i_sparse_matrix_mult/main.cpp | 381706-1-DenisovVladislavL/pp_2020_spring | 52d640bd274920b1664414a5f9b0f27da6707f7d | [
"BSD-3-Clause"
] | 1 | 2020-04-21T04:02:06.000Z | 2020-04-21T04:02:06.000Z | modules/task_4/iamshchikov_i_sparse_matrix_mult/main.cpp | 381706-1-DenisovVladislavL/pp_2020_spring | 52d640bd274920b1664414a5f9b0f27da6707f7d | [
"BSD-3-Clause"
] | 1 | 2020-05-16T09:02:12.000Z | 2020-05-16T09:02:12.000Z | modules/task_4/iamshchikov_i_sparse_matrix_mult/main.cpp | 381706-1-DenisovVladislavL/pp_2020_spring | 52d640bd274920b1664414a5f9b0f27da6707f7d | [
"BSD-3-Clause"
] | 3 | 2020-07-28T13:12:29.000Z | 2021-03-24T20:22:40.000Z | // 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... | 25.514286 | 85 | 0.565136 | 381706-1-DenisovVladislavL |
73da3b2c1344576195b3a8cba5bc888b9b56d40b | 4,681 | cpp | C++ | src/location.cpp | smu-sc-gj/aicore | b313065e25851a974a3b061ca12595a1fa88d7be | [
"MIT"
] | 412 | 2015-01-05T01:06:31.000Z | 2022-03-08T08:13:36.000Z | src/location.cpp | smu-sc-gj/aicore | b313065e25851a974a3b061ca12595a1fa88d7be | [
"MIT"
] | 6 | 2015-04-18T17:53:13.000Z | 2021-03-29T17:01:23.000Z | src/location.cpp | smu-sc-gj/aicore | b313065e25851a974a3b061ca12595a1fa88d7be | [
"MIT"
] | 141 | 2015-01-11T11:39:48.000Z | 2022-03-24T16:53:15.000Z | /*
* 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... | 30.00641 | 73 | 0.582995 | smu-sc-gj |
73db55f6b2456faf9da66c82baad16c7f557be4a | 9,059 | hpp | C++ | src/plugins/intel_gpu/include/intel_gpu/primitives/loop.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | src/plugins/intel_gpu/include/intel_gpu/primitives/loop.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | src/plugins/intel_gpu/include/intel_gpu/primitives/loop.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | // 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... | 46.45641 | 153 | 0.65526 | ryanloney |
73dbaf1b035f1ca7b44e95b76ce80967e64c967f | 26,198 | cpp | C++ | olp-cpp-sdk-dataservice-write/tests/VersionedLayerClientImplTest.cpp | fermeise/here-data-sdk-cpp | e0ebd7bd74463fa3958eb0447b90227a4f322643 | [
"Apache-2.0"
] | 21 | 2019-07-03T07:26:52.000Z | 2019-09-04T08:35:07.000Z | olp-cpp-sdk-dataservice-write/tests/VersionedLayerClientImplTest.cpp | fermeise/here-data-sdk-cpp | e0ebd7bd74463fa3958eb0447b90227a4f322643 | [
"Apache-2.0"
] | 639 | 2019-09-13T17:14:24.000Z | 2020-05-13T11:49:14.000Z | olp-cpp-sdk-dataservice-write/tests/VersionedLayerClientImplTest.cpp | fermeise/here-data-sdk-cpp | e0ebd7bd74463fa3958eb0447b90227a4f322643 | [
"Apache-2.0"
] | 21 | 2020-05-14T15:32:28.000Z | 2022-03-15T13:52:33.000Z | /*
* 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... | 38.469897 | 177 | 0.666921 | fermeise |
73dbe8d52ddfcb290557627b769dc34ceefb418c | 663 | cpp | C++ | uva/340.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | uva/340.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | uva/340.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | #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++)
... | 23.678571 | 54 | 0.310709 | dk00 |
73dcc4a6d9d75eb6749c6bc36247865f8eaec465 | 23,001 | cpp | C++ | backend/pipeline/PipelineUBO.cpp | Xrysnow/cocos2d-x-gfx | 54bc8264b15d9fc0e86c731a029d1b9b8b99b5b8 | [
"MIT"
] | null | null | null | backend/pipeline/PipelineUBO.cpp | Xrysnow/cocos2d-x-gfx | 54bc8264b15d9fc0e86c731a029d1b9b8b99b5b8 | [
"MIT"
] | null | null | null | backend/pipeline/PipelineUBO.cpp | Xrysnow/cocos2d-x-gfx | 54bc8264b15d9fc0e86c731a029d1b9b8b99b5b8 | [
"MIT"
] | null | null | null | /****************************************************************************
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... | 51.804054 | 161 | 0.676884 | Xrysnow |
73dd78bb27495e5502f72f159af60d0ef4c69170 | 8,545 | cpp | C++ | LocalManUtils/IXmlSerializeable.cpp | xuepingiw/open_source_startalk | 44d962b04039f5660ec47a10313876a0754d3e72 | [
"MIT"
] | 34 | 2019-03-18T08:09:24.000Z | 2022-03-15T02:03:25.000Z | LocalManUtils/IXmlSerializeable.cpp | venliong/open_source_startalk | 51fda091a932a8adea626c312692836555753a9a | [
"MIT"
] | 5 | 2019-05-29T09:32:05.000Z | 2019-08-29T03:01:33.000Z | LocalManUtils/IXmlSerializeable.cpp | venliong/open_source_startalk | 51fda091a932a8adea626c312692836555753a9a | [
"MIT"
] | 32 | 2019-03-15T09:43:22.000Z | 2021-08-10T08:26:02.000Z | #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... | 29.263699 | 135 | 0.590053 | xuepingiw |
73de8ff45894187821fa3fd7844a623e398d9b1b | 1,422 | cc | C++ | tests/runtime/kernel_exec_context_test.cc | weisk/ppl.nn | 7dd75a1077867fc9a762449953417088446ae2f8 | [
"Apache-2.0"
] | 1 | 2021-10-06T14:39:58.000Z | 2021-10-06T14:39:58.000Z | tests/runtime/kernel_exec_context_test.cc | wolf15/ppl.nn | ac23e5eb518039536f1ef39b43c63d6bda900e77 | [
"Apache-2.0"
] | null | null | null | tests/runtime/kernel_exec_context_test.cc | wolf15/ppl.nn | ac23e5eb518039536f1ef39b43c63d6bda900e77 | [
"Apache-2.0"
] | null | null | null | #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::... | 30.255319 | 95 | 0.666667 | weisk |
73deb90e17605e524b783b1be083b0bf6f659a3d | 29,826 | cc | C++ | gazebo/gui/MainWindow_TEST.cc | yinnglu/gazebo | 3a5618a2a18873141e3cac734a692b778cec4fc0 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2018-07-17T00:17:13.000Z | 2020-05-26T08:39:25.000Z | gazebo/gui/MainWindow_TEST.cc | yinnglu/gazebo | 3a5618a2a18873141e3cac734a692b778cec4fc0 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2022-02-03T18:32:35.000Z | 2022-02-03T18:32:35.000Z | gazebo/gui/MainWindow_TEST.cc | mingfeisun/gazebo | f3eae789c738f040b8fb27c2dc16dc4c06f2495c | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2016-04-25T22:05:09.000Z | 2020-03-08T08:45:12.000Z | /*
* 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... | 26.70188 | 79 | 0.667974 | yinnglu |
73e19b361341c44b0f1055ac366ff7077cfa0be4 | 1,803 | hpp | C++ | include/codegen/include/GlobalNamespace/Signal.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/Signal.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/Signal.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // 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... | 34.018868 | 76 | 0.681642 | Futuremappermydud |
73e1cf080b36f9cefe704a37fb5c7e8772e8978e | 28,726 | cc | C++ | DQMServices/FwkIO/plugins/DQMRootSource.cc | CeliaFernandez/cmssw | bec73cc7eebb30608c73685df0ff07025d838dd2 | [
"Apache-2.0"
] | 13 | 2015-11-30T15:49:45.000Z | 2022-02-08T16:11:30.000Z | DQMServices/FwkIO/plugins/DQMRootSource.cc | CeliaFernandez/cmssw | bec73cc7eebb30608c73685df0ff07025d838dd2 | [
"Apache-2.0"
] | 640 | 2015-02-11T18:55:47.000Z | 2022-03-31T14:12:23.000Z | DQMServices/FwkIO/plugins/DQMRootSource.cc | CeliaFernandez/cmssw | bec73cc7eebb30608c73685df0ff07025d838dd2 | [
"Apache-2.0"
] | 51 | 2015-08-11T21:01:40.000Z | 2022-03-30T07:31:34.000Z | // -*- 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... | 37.94716 | 120 | 0.673641 | CeliaFernandez |
73e9728faae82223bb5b054b96e91de9c9fd6ea7 | 1,231 | cpp | C++ | src/parser.cpp | orlp/kwik | c1cb6c98e29bbf681ebbb486f33509794c426fe9 | [
"Zlib"
] | null | null | null | src/parser.cpp | orlp/kwik | c1cb6c98e29bbf681ebbb486f33509794c426fe9 | [
"Zlib"
] | 1 | 2015-10-28T11:54:46.000Z | 2015-10-28T12:07:08.000Z | src/parser.cpp | orlp/kwik | c1cb6c98e29bbf681ebbb486f33509794c426fe9 | [
"Zlib"
] | null | null | null | #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... | 27.977273 | 88 | 0.562957 | orlp |
73e9a0fbdf15fa564c69ca95f58af05dfe50ec65 | 4,764 | cpp | C++ | FarLight/src/FarLight/ConfigurationSystem/LocalConfigurations/Serializers/Entity/EntitySerializerConfiguration.cpp | NewBediver/FarLight | 1ffaf127f51bb88ea3f5eb8d05c04458532d5389 | [
"Apache-2.0"
] | null | null | null | FarLight/src/FarLight/ConfigurationSystem/LocalConfigurations/Serializers/Entity/EntitySerializerConfiguration.cpp | NewBediver/FarLight | 1ffaf127f51bb88ea3f5eb8d05c04458532d5389 | [
"Apache-2.0"
] | null | null | null | FarLight/src/FarLight/ConfigurationSystem/LocalConfigurations/Serializers/Entity/EntitySerializerConfiguration.cpp | NewBediver/FarLight | 1ffaf127f51bb88ea3f5eb8d05c04458532d5389 | [
"Apache-2.0"
] | null | null | null | #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/... | 42.535714 | 183 | 0.642317 | NewBediver |
73ec1a59a2f45435fe90e290b716d43d63f4d332 | 1,253 | cpp | C++ | 110. Balanced Binary Tree/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | 110. Balanced Binary Tree/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | 110. Balanced Binary Tree/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | /** 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;
/**
... | 24.096154 | 157 | 0.567438 | zlsun |
73ef53385daff78ff49599e30b156dbbf2ce0afd | 9,111 | cpp | C++ | host/RASDRproc/src/Logic/src/data_FreqVsCap.cpp | mfkiwl/RASDR | 2e4f7c3b368aa4d596f573433f8c998246444394 | [
"CC-BY-3.0"
] | 41 | 2015-01-25T08:13:12.000Z | 2021-06-24T18:39:33.000Z | host/RASDRproc/src/Logic/src/data_FreqVsCap.cpp | mfkiwl/RASDR | 2e4f7c3b368aa4d596f573433f8c998246444394 | [
"CC-BY-3.0"
] | 18 | 2015-09-30T16:07:03.000Z | 2020-08-05T12:28:50.000Z | host/RASDRproc/src/Logic/src/data_FreqVsCap.cpp | mfkiwl/RASDR | 2e4f7c3b368aa4d596f573433f8c998246444394 | [
"CC-BY-3.0"
] | 10 | 2015-04-01T00:28:41.000Z | 2021-05-31T14:08:22.000Z | // -----------------------------------------------------------------------------
// FILE: Data_FreqVsCap.cpp
// DESCRIPTION:
// DATE:
// AUTHOR(s): Lime Microsystems
// REVISIONS:
// -----------------------------------------------------------------------------
// -----------------------------------------------------... | 22.60794 | 80 | 0.592251 | mfkiwl |
73efb305f2fc9d060f8e139e9db8fcaa7a1e34e5 | 2,356 | hpp | C++ | src/interfaces/vectorInterfaces.hpp | lhb8125/HSF | f0cea44691a0e41bdeb5613a2d5a6cd7cda0a999 | [
"Apache-2.0"
] | null | null | null | src/interfaces/vectorInterfaces.hpp | lhb8125/HSF | f0cea44691a0e41bdeb5613a2d5a6cd7cda0a999 | [
"Apache-2.0"
] | null | null | null | src/interfaces/vectorInterfaces.hpp | lhb8125/HSF | f0cea44691a0e41bdeb5613a2d5a6cd7cda0a999 | [
"Apache-2.0"
] | null | null | null | /*
* @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;
... | 18.698413 | 107 | 0.663837 | lhb8125 |
73f1486954537fdcef284a0819d92cbdb4b35bd6 | 950 | hpp | C++ | include/Animador.hpp | rickylh/Medieval-Game | 2e818ab09cdd6158b59133c56cfca8e31d1f8f3a | [
"MIT"
] | null | null | null | include/Animador.hpp | rickylh/Medieval-Game | 2e818ab09cdd6158b59133c56cfca8e31d1f8f3a | [
"MIT"
] | null | null | null | include/Animador.hpp | rickylh/Medieval-Game | 2e818ab09cdd6158b59133c56cfca8e31d1f8f3a | [
"MIT"
] | null | null | null | #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();
... | 23.170732 | 80 | 0.712632 | rickylh |
73f18f7b6c9ff41a9d2300929d39dbe7e218c56b | 21,468 | cc | C++ | model/std_cells/MUX2.cc | gyb1325/Desent_modification | ff0a146bddfb97269b7874092dd203be3633f97c | [
"MIT"
] | 94 | 2015-02-21T09:44:03.000Z | 2022-03-13T03:06:19.000Z | model/std_cells/MUX2.cc | gyb1325/Desent_modification | ff0a146bddfb97269b7874092dd203be3633f97c | [
"MIT"
] | null | null | null | model/std_cells/MUX2.cc | gyb1325/Desent_modification | ff0a146bddfb97269b7874092dd203be3633f97c | [
"MIT"
] | 36 | 2015-01-09T16:48:18.000Z | 2022-03-13T03:06:21.000Z | #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"
#... | 50.992874 | 143 | 0.602851 | gyb1325 |
73f33b62a323bf26a419c2541deecbc0cec561ef | 4,824 | cc | C++ | chromium/chrome/browser/autofill/autofill_cc_infobar_delegate_unittest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/chrome/browser/autofill/autofill_cc_infobar_delegate_unittest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/chrome/browser/autofill/autofill_cc_infobar_delegate_unittest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // 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... | 32.375839 | 80 | 0.751036 | wedataintelligence |
73f36b14922041ca588a53c2303aabd62200aeb4 | 3,349 | cpp | C++ | src/globals.cpp | mad-mix/my-little-investigations | 8d40d117a4de44c337dd4d015cfcfa44c9de29e7 | [
"MIT"
] | null | null | null | src/globals.cpp | mad-mix/my-little-investigations | 8d40d117a4de44c337dd4d015cfcfa44c9de29e7 | [
"MIT"
] | null | null | null | src/globals.cpp | mad-mix/my-little-investigations | 8d40d117a4de44c337dd4d015cfcfa44c9de29e7 | [
"MIT"
] | null | null | null | /**
* 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... | 27.677686 | 83 | 0.776351 | mad-mix |
73f5d37c848c88088ac7fd1c24e98c0bc7ea3dc6 | 1,540 | cpp | C++ | src/lib/OpenEXR/ImfRational.cpp | msercheli/openexr | 9912f6b3886f6c695547747d70e19b98c0e38d59 | [
"BSD-3-Clause"
] | 517 | 2018-08-11T02:18:47.000Z | 2022-03-27T05:31:40.000Z | src/lib/OpenEXR/ImfRational.cpp | msercheli/openexr | 9912f6b3886f6c695547747d70e19b98c0e38d59 | [
"BSD-3-Clause"
] | 391 | 2018-07-31T21:28:52.000Z | 2022-03-28T16:51:18.000Z | src/lib/OpenEXR/ImfRational.cpp | msercheli/openexr | 9912f6b3886f6c695547747d70e19b98c0e38d59 | [
"BSD-3-Clause"
] | 189 | 2018-12-22T15:39:26.000Z | 2022-03-16T17:03:20.000Z | //
// 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.
//
//---------------... | 15.555556 | 79 | 0.453247 | msercheli |
73f6a3b9c1109b0d7ddb9bf54156dfe992327db7 | 1,974 | cpp | C++ | net/Connection.cpp | l4l/rl | 7b72f5a7a4e0a0160d4ef1b3a1839d760b9cb2ce | [
"WTFPL"
] | 1 | 2015-10-08T18:58:23.000Z | 2015-10-08T18:58:23.000Z | net/Connection.cpp | l4l/rl | 7b72f5a7a4e0a0160d4ef1b3a1839d760b9cb2ce | [
"WTFPL"
] | null | null | null | net/Connection.cpp | l4l/rl | 7b72f5a7a4e0a0160d4ef1b3a1839d760b9cb2ce | [
"WTFPL"
] | null | null | null | #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... | 29.909091 | 91 | 0.56231 | l4l |
73f6e4bc65509bde6d165c9b47c363c947c09932 | 5,637 | cpp | C++ | src/wiring/ads1115.cpp | Yanick-Salzmann/grower-controller-rpi | 30f279e960a3cc8125f112c76ee943b1fa766191 | [
"MIT"
] | null | null | null | src/wiring/ads1115.cpp | Yanick-Salzmann/grower-controller-rpi | 30f279e960a3cc8125f112c76ee943b1fa766191 | [
"MIT"
] | null | null | null | src/wiring/ads1115.cpp | Yanick-Salzmann/grower-controller-rpi | 30f279e960a3cc8125f112c76ee943b1fa766191 | [
"MIT"
] | null | null | null | #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... | 35.23125 | 97 | 0.66099 | Yanick-Salzmann |
73f8dc4c074982a878f59716c078a9ac87a3b08f | 5,525 | cpp | C++ | src/plugins/follow_me/follow_me.cpp | rworrall/MAVSDK | 634f171bb5b492e2d5bd6453f54e7e88c603899e | [
"BSD-3-Clause"
] | 275 | 2019-06-13T17:50:40.000Z | 2022-03-28T01:03:01.000Z | src/plugins/follow_me/follow_me.cpp | rworrall/MAVSDK | 634f171bb5b492e2d5bd6453f54e7e88c603899e | [
"BSD-3-Clause"
] | 655 | 2019-06-07T13:08:12.000Z | 2022-03-23T04:51:21.000Z | src/plugins/follow_me/follow_me.cpp | SEESAI/MAVSDK | 5a9289eb09eb6b13f24e9d8d69f5644d2210d6b2 | [
"BSD-3-Clause"
] | 299 | 2019-06-10T06:58:58.000Z | 2022-03-25T04:14:34.000Z | // 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 ... | 35.416667 | 99 | 0.631131 | rworrall |
73fa3659a1b7033d445a1a9baae14eb5aed32c57 | 9,925 | cpp | C++ | Tutorials/ForkJoin/MLMG/main.cpp | ylunalin/amrex | 5715b2fc8a77e0db17bfe7907982e29ec44811ca | [
"BSD-3-Clause-LBNL"
] | null | null | null | Tutorials/ForkJoin/MLMG/main.cpp | ylunalin/amrex | 5715b2fc8a77e0db17bfe7907982e29ec44811ca | [
"BSD-3-Clause-LBNL"
] | null | null | null | Tutorials/ForkJoin/MLMG/main.cpp | ylunalin/amrex | 5715b2fc8a77e0db17bfe7907982e29ec44811ca | [
"BSD-3-Clause-LBNL"
] | null | null | null | #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... | 33.758503 | 91 | 0.559496 | ylunalin |
73fbab9e4e3fd2e51524449a52051cf952fc847a | 11,265 | hpp | C++ | include/System/Security/Cryptography/AesTransform.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/System/Security/Cryptography/AesTransform.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/System/Security/Cryptography/AesTransform.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // 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.... | 59.289474 | 241 | 0.706791 | marksteward |
73fdb289f3e3b20d509023560c8bc7606bcf8bc1 | 60 | cpp | C++ | src/demo_skia.cpp | jiangkang/renderer-dog | 8081732e2b4dbdb97c8d1f5e23f9e52c6362ff85 | [
"MIT"
] | null | null | null | src/demo_skia.cpp | jiangkang/renderer-dog | 8081732e2b4dbdb97c8d1f5e23f9e52c6362ff85 | [
"MIT"
] | 1 | 2020-09-13T11:08:17.000Z | 2020-09-13T11:08:17.000Z | src/demo_skia.cpp | jiangkang/renderer-dog | 8081732e2b4dbdb97c8d1f5e23f9e52c6362ff85 | [
"MIT"
] | null | null | null | //
// Created by 姜康 on 2020/9/14.
//
void drawBasic(){
}
| 6.666667 | 30 | 0.55 | jiangkang |
73fe6bde5d5525aca9815814dc44113b5550f331 | 10,790 | hxx | C++ | Modules/Filtering/ChangeDetection/include/otbMultivariateAlterationDetectorImageFilter.hxx | kikislater/OTB | 8271c62b5891d3da9cb2e9ba3a2706a26de8c323 | [
"Apache-2.0"
] | null | null | null | Modules/Filtering/ChangeDetection/include/otbMultivariateAlterationDetectorImageFilter.hxx | kikislater/OTB | 8271c62b5891d3da9cb2e9ba3a2706a26de8c323 | [
"Apache-2.0"
] | null | null | null | Modules/Filtering/ChangeDetection/include/otbMultivariateAlterationDetectorImageFilter.hxx | kikislater/OTB | 8271c62b5891d3da9cb2e9ba3a2706a26de8c323 | [
"Apache-2.0"
] | null | null | null | /*
* 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 ... | 29.320652 | 102 | 0.702132 | kikislater |
73ff736684f88a5c01544e52ad77ef76a7ac6a9f | 1,276 | cpp | C++ | Chapter 10. Generic Algorithms/Codes/10.25 Solution.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | null | null | null | Chapter 10. Generic Algorithms/Codes/10.25 Solution.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | null | null | null | Chapter 10. Generic Algorithms/Codes/10.25 Solution.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | 1 | 2021-09-30T14:08:03.000Z | 2021-09-30T14:08:03.000Z | #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... | 26.583333 | 99 | 0.582288 | Yunxiang-Li |
bab5e503d2d46177aaad2fa52c2a017e0bbe2c66 | 14,755 | cpp | C++ | libEyeRenderer3/libEyeRenderer.cpp | BrainsOnBoard/eye-renderer | 59ae026fcb08e029500d1d0a8f152a37200ba260 | [
"MIT"
] | 2 | 2021-10-07T07:08:47.000Z | 2021-11-02T15:52:14.000Z | libEyeRenderer3/libEyeRenderer.cpp | BrainsOnBoard/eye-renderer | 59ae026fcb08e029500d1d0a8f152a37200ba260 | [
"MIT"
] | 1 | 2021-10-07T09:21:51.000Z | 2021-11-01T21:52:30.000Z | libEyeRenderer3/libEyeRenderer.cpp | BrainsOnBoard/compound-ray | 59ae026fcb08e029500d1d0a8f152a37200ba260 | [
"MIT"
] | 1 | 2021-11-07T12:51:58.000Z | 2021-11-07T12:51:58.000Z | //
// 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... | 32.006508 | 115 | 0.648729 | BrainsOnBoard |
bab68c309a9f3d41e60621cdfe3bc50336058c3e | 722 | cpp | C++ | ArithmeticEvalulator/HedronLoggerTestBranch/TokenType.cpp | Gabriel-Baril/arithmetic-evaluator | 171acdbf5ebde61b486833f64c8e1d48e5816540 | [
"Apache-2.0"
] | null | null | null | ArithmeticEvalulator/HedronLoggerTestBranch/TokenType.cpp | Gabriel-Baril/arithmetic-evaluator | 171acdbf5ebde61b486833f64c8e1d48e5816540 | [
"Apache-2.0"
] | null | null | null | ArithmeticEvalulator/HedronLoggerTestBranch/TokenType.cpp | Gabriel-Baril/arithmetic-evaluator | 171acdbf5ebde61b486833f64c8e1d48e5816540 | [
"Apache-2.0"
] | null | null | null | #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:... | 22.5625 | 51 | 0.65928 | Gabriel-Baril |
bab69c1c253d0c7dcf56aa04f811fd66d57a5f66 | 245 | hpp | C++ | uart/Uart.hpp | PhischDotOrg/phisch-lib | 26df59d78533d3220a46e077ead5a5180a84d57a | [
"MIT"
] | null | null | null | uart/Uart.hpp | PhischDotOrg/phisch-lib | 26df59d78533d3220a46e077ead5a5180a84d57a | [
"MIT"
] | null | null | null | uart/Uart.hpp | PhischDotOrg/phisch-lib | 26df59d78533d3220a46e077ead5a5180a84d57a | [
"MIT"
] | null | null | null | /*-
* $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 */
| 18.846154 | 60 | 0.787755 | PhischDotOrg |
bab82fb7a332e5c5b9ffc499aa0971e477ba5a05 | 4,130 | hpp | C++ | northstar/include/driver/Optics.hpp | BryanChrisBrown/project_northstar_openvr_driver | cf16e98e24804aee699805dca766b8153f4e52e5 | [
"Unlicense"
] | null | null | null | northstar/include/driver/Optics.hpp | BryanChrisBrown/project_northstar_openvr_driver | cf16e98e24804aee699805dca766b8153f4e52e5 | [
"Unlicense"
] | null | null | null | northstar/include/driver/Optics.hpp | BryanChrisBrown/project_northstar_openvr_driver | cf16e98e24804aee699805dca766b8153f4e52e5 | [
"Unlicense"
] | null | null | null | #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... | 51.625 | 204 | 0.659806 | BryanChrisBrown |
bab91f654799f7d5ca85465bc1a9a0f5e5a9500d | 3,461 | cpp | C++ | base/cluster/mgmt/cluscfg/wizard/namedcookie.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/cluster/mgmt/cluscfg/wizard/namedcookie.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/cluster/mgmt/cluscfg/wizard/namedcookie.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2001 Microsoft Corporation
//
// Module Name:
// NamedCookie.cpp
//
// Description:
// This file contains the definition of the SNamedCookie struct.
//
// Maintained By:
// John Franco (jfran... | 22.474026 | 79 | 0.324762 | npocmaka |
babcc15f3399c374704c2c2861c1e0010c6fee50 | 30,051 | cpp | C++ | layer/dispatch.cpp | jpark37/Fossilize | 4af65358c66a032ddb500df3341788277e32d56a | [
"MIT"
] | null | null | null | layer/dispatch.cpp | jpark37/Fossilize | 4af65358c66a032ddb500df3341788277e32d56a | [
"MIT"
] | null | null | null | layer/dispatch.cpp | jpark37/Fossilize | 4af65358c66a032ddb500df3341788277e32d56a | [
"MIT"
] | null | null | null | /* 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, ... | 42.147265 | 136 | 0.677349 | jpark37 |
bac1170359dcbd3a2d9f8b93934541c73c1adff0 | 1,623 | cc | C++ | src/parse.cc | realzhangm/dpdk_port_test | b5546a57df243ba86c8c3330cce3905e61d15ff2 | [
"MIT"
] | null | null | null | src/parse.cc | realzhangm/dpdk_port_test | b5546a57df243ba86c8c3330cce3905e61d15ff2 | [
"MIT"
] | null | null | null | src/parse.cc | realzhangm/dpdk_port_test | b5546a57df243ba86c8c3330cce3905e61d15ff2 | [
"MIT"
] | null | null | null | #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... | 26.606557 | 76 | 0.586568 | realzhangm |
bac13f0941380ccf228c0ba9d6e1f3d82e7819cf | 3,509 | cpp | C++ | code_reading/oceanbase-master/src/share/ob_task_define.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/share/ob_task_define.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/share/ob_task_define.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* 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... | 25.613139 | 112 | 0.68766 | wangcy6 |
bac18c89cb712144e3f8cb81cb67002a2f7e7279 | 1,311 | hh | C++ | Cayley.hh | steelbrain/Cayley-HHVM | a774f83a4a84f7d37592bc16e8f6336a31f34ce3 | [
"MIT"
] | 1 | 2015-04-25T06:09:20.000Z | 2015-04-25T06:09:20.000Z | Cayley.hh | steelbrain/Cayley-HHVM | a774f83a4a84f7d37592bc16e8f6336a31f34ce3 | [
"MIT"
] | null | null | null | Cayley.hh | steelbrain/Cayley-HHVM | a774f83a4a84f7d37592bc16e8f6336a31f34ce3 | [
"MIT"
] | null | null | null | <?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... | 27.3125 | 102 | 0.620137 | steelbrain |
bac3247d079e96a32b58c32aa87c2f2665545707 | 164 | cc | C++ | src/DetectorHit.cc | skscurious/Geant4_JPET | a5846af20b8b4b886f33c54552631623e1749fac | [
"Apache-2.0"
] | null | null | null | src/DetectorHit.cc | skscurious/Geant4_JPET | a5846af20b8b4b886f33c54552631623e1749fac | [
"Apache-2.0"
] | null | null | null | src/DetectorHit.cc | skscurious/Geant4_JPET | a5846af20b8b4b886f33c54552631623e1749fac | [
"Apache-2.0"
] | null | null | null | #include "DetectorHit.hh"
DetectorHit::DetectorHit()
: G4VHit(), fScinID(0), fTrackID(-1), fEdep(0.0), fTime(0), fPos(0)
{}
DetectorHit::~DetectorHit()
{}
| 14.909091 | 72 | 0.640244 | skscurious |
bac50e1c285675028a116f04c0065e3dcea125c5 | 5,596 | cpp | C++ | ch17/ex17_4_5_6_7_8.cpp | 0iui0/Cpp-Primer | ff8530a202ac0340a3e8de6bb9726cf0516c50fc | [
"CC0-1.0"
] | null | null | null | ch17/ex17_4_5_6_7_8.cpp | 0iui0/Cpp-Primer | ff8530a202ac0340a3e8de6bb9726cf0516c50fc | [
"CC0-1.0"
] | null | null | null | ch17/ex17_4_5_6_7_8.cpp | 0iui0/Cpp-Primer | ff8530a202ac0340a3e8de6bb9726cf0516c50fc | [
"CC0-1.0"
] | null | null | null | /***************************************************************************
* @file main.cpp
* @author Alan.W
* @date 3 Mar 2014
* @remark This code is for the exercises from C++ Primer 5th Edition
* @note
***************************************************************************/
//
/... | 34.757764 | 91 | 0.615797 | 0iui0 |
bac6990524fa666fb91476b5fa1f97f74a4fa4b1 | 474 | cpp | C++ | Leetcode/1000-2000/1828. Queries on Number of Points Inside a Circle/1828.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1828. Queries on Number of Points Inside a Circle/1828.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1828. Queries on Number of Points Inside a Circle/1828.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | 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... | 23.7 | 73 | 0.518987 | Next-Gen-UI |
baca68818975db51c621809679ffc250c1989c91 | 7,775 | cpp | C++ | libsensors/AkmSensor.cpp | kbc-developers/android_device_samsung_sc02e | debb9dbb8f9868a52cb705d6b6d3f5ddf8640e06 | [
"FTL"
] | null | null | null | libsensors/AkmSensor.cpp | kbc-developers/android_device_samsung_sc02e | debb9dbb8f9868a52cb705d6b6d3f5ddf8640e06 | [
"FTL"
] | null | null | null | libsensors/AkmSensor.cpp | kbc-developers/android_device_samsung_sc02e | debb9dbb8f9868a52cb705d6b6d3f5ddf8640e06 | [
"FTL"
] | null | null | null | /*
* 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... | 28.272727 | 83 | 0.59717 | kbc-developers |