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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58614c941a10a050a810e7f34c18c37e5de685ad | 2,459 | cpp | C++ | src/Networking/ParseBaseStation.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null | src/Networking/ParseBaseStation.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null | src/Networking/ParseBaseStation.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null |
#include "Network.h"
#include "log.h"
#include "IK.h"
#include "motor_interface.h"
#include "ParseBaseStation.h"
#include <cmath>
#include <tgmath.h>
#include "../simulator/world_interface.h"
#include "../Globals.h"
#include <iostream>
using nlohmann::json;
bool ParseDrivePacket(json &message);
bool ParseEmergencyS... | 21.017094 | 70 | 0.649858 | jonahbardos |
5864ca14de111e2a98dc80bcb8e458ae2ecfa65b | 1,405 | cc | C++ | src/base/message_loop/timer_slack.cc | lazymartin/naiveproxy | 696e8714278e85e67e56a2eaea11f26c53116f0c | [
"BSD-3-Clause"
] | 2,219 | 2018-03-26T02:57:34.000Z | 2022-03-31T00:27:59.000Z | src/base/message_loop/timer_slack.cc | uszhen/naiveproxy | 0aa27e8bd37428f2124a891be1e5e793928cd726 | [
"BSD-3-Clause"
] | 250 | 2018-02-02T23:16:57.000Z | 2022-03-21T06:09:53.000Z | src/base/message_loop/timer_slack.cc | uszhen/naiveproxy | 0aa27e8bd37428f2124a891be1e5e793928cd726 | [
"BSD-3-Clause"
] | 473 | 2019-03-24T16:34:23.000Z | 2022-03-31T02:01:05.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/message_loop/timer_slack.h"
#include <atomic>
#include "base/check_op.h"
#include "base/feature_list.h"
#include "base/metrics/field_tria... | 25.089286 | 80 | 0.745907 | lazymartin |
58678121a455e51d562ddd820e632fc544f9d61c | 38,417 | cpp | C++ | sven_internal/config.cpp | revoiid/sven_internal | 99c0e8148fd8cd44100d5c7730ebb1fc71b7f368 | [
"MIT"
] | null | null | null | sven_internal/config.cpp | revoiid/sven_internal | 99c0e8148fd8cd44100d5c7730ebb1fc71b7f368 | [
"MIT"
] | null | null | null | sven_internal/config.cpp | revoiid/sven_internal | 99c0e8148fd8cd44100d5c7730ebb1fc71b7f368 | [
"MIT"
] | null | null | null | // Config
#include "config.h"
#include "../ini-parser/ini_parser.h"
#include "../features/skybox.h"
#include "../utils/styles.h"
#include "../interfaces.h"
#include <stdio.h>
#include <stdlib.h>
#include <type_traits>
//-----------------------------------------------------------------------------
// Make import/exp... | 51.635753 | 145 | 0.799516 | revoiid |
58692dbc09fcbcd91582427f34e2931ae3322c63 | 24,901 | cpp | C++ | Gem/Code/Source/RHI/MatrixAlignmentTestExampleComponent.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 15 | 2021-07-07T02:16:06.000Z | 2022-03-22T07:39:06.000Z | Gem/Code/Source/RHI/MatrixAlignmentTestExampleComponent.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 66 | 2021-07-07T00:01:05.000Z | 2022-03-28T06:37:41.000Z | Gem/Code/Source/RHI/MatrixAlignmentTestExampleComponent.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 13 | 2021-07-06T18:21:33.000Z | 2022-01-04T18:29:18.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <RHI/MatrixAlignmentTestExampleComponent.h>
#include <Utils/Utils.h>
#include <SampleCom... | 45.192377 | 163 | 0.627967 | Bindless-Chicken |
586bee0bdc08ad7200215c2abdf39c0f4803774a | 9,735 | cpp | C++ | src/core/SLSManager.cpp | rstular/srt-live-server | 968d29b7bd4d81b0b6cbe702ebf6bbc164b6a22c | [
"MIT"
] | 4 | 2021-12-17T07:58:48.000Z | 2022-02-04T17:35:37.000Z | src/core/SLSManager.cpp | rstular/srt-live-server | 968d29b7bd4d81b0b6cbe702ebf6bbc164b6a22c | [
"MIT"
] | null | null | null | src/core/SLSManager.cpp | rstular/srt-live-server | 968d29b7bd4d81b0b6cbe702ebf6bbc164b6a22c | [
"MIT"
] | 1 | 2021-12-15T21:56:57.000Z | 2021-12-15T21:56:57.000Z |
/**
* The MIT License (MIT)
*
* Copyright (c) 2019-2020 Edward.Wu
*
* 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
* ... | 27.116992 | 114 | 0.58942 | rstular |
586e6fa9f3536074c0781d20546a308cc5f1b608 | 31,226 | cpp | C++ | partial_digestion/src/uDGP.cpp | shuai-huang/turnpike-beltway | 20b68a48b68c2daad02346b1c076c0dce99c4431 | [
"Apache-2.0"
] | null | null | null | partial_digestion/src/uDGP.cpp | shuai-huang/turnpike-beltway | 20b68a48b68c2daad02346b1c076c0dce99c4431 | [
"Apache-2.0"
] | null | null | null | partial_digestion/src/uDGP.cpp | shuai-huang/turnpike-beltway | 20b68a48b68c2daad02346b1c076c0dce99c4431 | [
"Apache-2.0"
] | 1 | 2020-01-06T17:17:17.000Z | 2020-01-06T17:17:17.000Z | #include<chrono>
#include "uDGP.h"
uDGP::uDGP() {
M=0;
}
void uDGP::SetOutputFile(char* output_file) {
output_ite_file = output_file;
}
void uDGP::SetInitFile(char* init_file) {
smp_pos_init_file = init_file;
}
double uDGP::NormalCdf(double x_val, double mu, double sigma) {
return 0.5*(1+erf((x_val-... | 41.801874 | 247 | 0.600749 | shuai-huang |
5871ec92b26b8a28353bb7b4803321901bae76f4 | 32,269 | hpp | C++ | Sources/SolarTears/Rendering/Vulkan/VulkanFunctions.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | 4 | 2021-06-30T16:00:20.000Z | 2021-10-13T06:17:56.000Z | Sources/SolarTears/Rendering/Vulkan/VulkanFunctions.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | Sources/SolarTears/Rendering/Vulkan/VulkanFunctions.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <vulkan/vulkan.h>
#ifdef VK_NO_PROTOTYPES
#define DECLARE_VULKAN_FUNCTION(funcName) extern PFN_##funcName funcName;
extern "C"
{
DECLARE_VULKAN_FUNCTION(vkCreateInstance)
DECLARE_VULKAN_FUNCTION(vkDestroyInstance)
DECLARE_VULKAN_FUNCTION(vkEnumeratePhysicalDevices)
DECLARE_VULKAN_FUNCTION(vkGe... | 41.745149 | 118 | 0.917165 | Sixshaman |
5873c52aa895e08e0fd04abb35c5be93a9d23f13 | 14,972 | cpp | C++ | src/d3d9/d3d9_swapchain.cpp | dports/dxup | e961838d3d0d5db02cd065b782ad890bf876ceef | [
"Zlib"
] | 268 | 2018-04-27T14:05:01.000Z | 2022-03-24T03:55:54.000Z | src/d3d9/d3d9_swapchain.cpp | dports/dxup | e961838d3d0d5db02cd065b782ad890bf876ceef | [
"Zlib"
] | 49 | 2018-04-29T09:39:03.000Z | 2019-09-14T12:33:44.000Z | src/d3d9/d3d9_swapchain.cpp | dports/dxup | e961838d3d0d5db02cd065b782ad890bf876ceef | [
"Zlib"
] | 28 | 2018-05-16T12:07:49.000Z | 2022-02-26T09:19:18.000Z | #include "d3d9_swapchain.h"
#include "d3d9_surface.h"
#include "d3d9_renderer.h"
#include "d3d9_interface.h"
#include <algorithm>
namespace dxup {
Direct3DSwapChain9Ex::Direct3DSwapChain9Ex(Direct3DDevice9Ex* device, D3DPRESENT_PARAMETERS* presentationParameters, IDXGISwapChain1* swapchain)
: Direct3DSwapChain9... | 35.904077 | 190 | 0.713799 | dports |
587a644dfe541b34c737297ed56c478af0f9917d | 3,092 | cpp | C++ | higan/audio/stream.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | higan/audio/stream.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | higan/audio/stream.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | auto Stream::reset(uint channels_, double inputFrequency, double outputFrequency) -> void {
this->inputFrequency = inputFrequency;
this->outputFrequency = outputFrequency;
channels.reset();
channels.resize(channels_);
for(auto& channel : channels) {
channel.filters.reset();
channel.resampler.reset(i... | 34.741573 | 109 | 0.658797 | 13824125580 |
587ac38eca3e3d8623a70c0b7c12fd120038df71 | 16,655 | cpp | C++ | UniEngine/src/CameraComponent.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | null | null | null | UniEngine/src/CameraComponent.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | null | null | null | UniEngine/src/CameraComponent.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | 1 | 2021-09-06T08:07:37.000Z | 2021-09-06T08:07:37.000Z | #include "pch.h"
#include "CameraComponent.h"
#include "SerializationManager.h"
#include "RenderManager.h"
#include "Ray.h"
#include "Transforms.h"
#include "PostProcessing.h"
UniEngine::CameraInfoBlock UniEngine::CameraComponent::m_cameraInfoBlock;
std::unique_ptr<UniEngine::GLUBO> UniEngine::CameraComponent::m_camera... | 40.621951 | 216 | 0.735035 | edisonlee0212 |
5880a48731ff360303e1dc551daf9f1b389f0846 | 1,147 | cpp | C++ | fizz/tool/Main.cpp | karthikbhargavan/fizz | 0d57338a2ff5e3a57ea0aaf1d9c96a8a04a07164 | [
"BSD-3-Clause"
] | null | null | null | fizz/tool/Main.cpp | karthikbhargavan/fizz | 0d57338a2ff5e3a57ea0aaf1d9c96a8a04a07164 | [
"BSD-3-Clause"
] | null | null | null | fizz/tool/Main.cpp | karthikbhargavan/fizz | 0d57338a2ff5e3a57ea0aaf1d9c96a8a04a07164 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <fizz/tool/Commands.h>
#include <folly/ssl/Init.h>
#include <glog/logging.h>
#include <iostre... | 22.94 | 76 | 0.617262 | karthikbhargavan |
58847ea14fe47c6762ba364031a4e47789a884e6 | 698 | cpp | C++ | aizu/illumination.test.cpp | hasegawa1/procon-library | 9fea96b3f1ebcb44c08e413a2a9ecb22dc7cd39e | [
"MIT"
] | null | null | null | aizu/illumination.test.cpp | hasegawa1/procon-library | 9fea96b3f1ebcb44c08e413a2a9ecb22dc7cd39e | [
"MIT"
] | 6 | 2021-07-25T10:37:08.000Z | 2021-11-20T14:06:46.000Z | aizu/illumination.test.cpp | hasegawa1/procon-library | 9fea96b3f1ebcb44c08e413a2a9ecb22dc7cd39e | [
"MIT"
] | null | null | null | #define PROBLEM "https://onlinejudge.u-aizu.ac.jp/challenges/sources/JOI/Final/0603"
#include <iostream>
#include <vector>
#include "../other/run_length_encoding.cpp"
using namespace std;
int main(void) {
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
int N;
cin >> N;
vector<int> v(N);
... | 19.942857 | 84 | 0.553009 | hasegawa1 |
5884c25112e4c430c2617967ce7dd9999990dd72 | 5,389 | cpp | C++ | source/threads/_unix/vthread_platform.cpp | xvela/code-vault | 780dad2d2855e28d802a64baf781927b7edd9ed9 | [
"MIT"
] | 2 | 2019-01-09T19:09:45.000Z | 2019-04-02T17:53:49.000Z | source/threads/_unix/vthread_platform.cpp | xvela/code-vault | 780dad2d2855e28d802a64baf781927b7edd9ed9 | [
"MIT"
] | 17 | 2015-01-07T02:05:04.000Z | 2019-08-30T16:57:42.000Z | source/threads/_unix/vthread_platform.cpp | xvela/code-vault | 780dad2d2855e28d802a64baf781927b7edd9ed9 | [
"MIT"
] | 3 | 2016-04-06T19:01:11.000Z | 2017-09-20T09:28:00.000Z | /*
Copyright c1997-2014 Trygve Isaacson. All rights reserved.
This file is part of the Code Vault version 4.1
http://www.bombaydigital.com/
License: MIT. See LICENSE.md in the Vault top level directory.
*/
/** @file */
#include "vthread.h"
#include "vtypes_internal_platform.h"
#include "vmutex.h"
#include "vsemaphor... | 29.60989 | 151 | 0.698089 | xvela |
588874aa79c87267650730738315280dd0b803d6 | 1,126 | cpp | C++ | engine/source/Actions/ActionRotateTo.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | 11 | 2020-10-21T15:03:41.000Z | 2020-11-03T09:15:28.000Z | engine/source/Actions/ActionRotateTo.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | null | null | null | engine/source/Actions/ActionRotateTo.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | 1 | 2020-10-27T00:13:41.000Z | 2020-10-27T00:13:41.000Z | /////////////////////////////////////////////////////
// 2016 © Max Gittel //
/////////////////////////////////////////////////////
// SGEngine
#include "ActionRotateTo.h"
namespace sge {
ActionRotateTo* ActionRotateTo::create(float time, const Vec3& position){
Action... | 25.022222 | 77 | 0.519538 | MaxSigma |
58898bbbe8b6a802581d133c7d7b80f629f77d08 | 892 | cpp | C++ | PropGen/propgent.cpp | KondeU/QtPropGen | bae8a6c39071618a44ea6f439be66749348bf5af | [
"MIT"
] | null | null | null | PropGen/propgent.cpp | KondeU/QtPropGen | bae8a6c39071618a44ea6f439be66749348bf5af | [
"MIT"
] | null | null | null | PropGen/propgent.cpp | KondeU/QtPropGen | bae8a6c39071618a44ea6f439be66749348bf5af | [
"MIT"
] | null | null | null | #include "propgent.h"
PropGenT::PropGenT(QObject *parent) : QObject(parent)
{
connect(this, &PropGenT::Vec1Changed, this,
[](uintptr_t changer, double data) {
qDebug() << "Vec1Changed:"
<< changer << "," << data;
});
connect(this, &PropGenT::Vec2Changed, this,
[](uintptr_t... | 30.758621 | 76 | 0.482063 | KondeU |
588b0d1eb2031a6d44e325845d5755d0d939fb01 | 9,603 | cc | C++ | test/integration/physics_collision.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-07-14T19:36:51.000Z | 2020-04-01T06:47:59.000Z | test/integration/physics_collision.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2017-07-20T21:04:49.000Z | 2017-10-19T19:32:38.000Z | test/integration/physics_collision.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2015-2016 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... | 30.680511 | 77 | 0.632407 | otamachan |
58943f71058daf21380fd72fe1f6fd7485044f90 | 83 | cpp | C++ | OverEngine/vendor/stb/stb_sprintf.cpp | larrymason01/OverEngine | 4e44fe8385cc1780f2189ee5135f70b1e69104fd | [
"MIT"
] | 159 | 2020-03-16T14:46:46.000Z | 2022-03-31T23:38:14.000Z | OverEngine/vendor/stb/stb_sprintf.cpp | larrymason01/OverEngine | 4e44fe8385cc1780f2189ee5135f70b1e69104fd | [
"MIT"
] | 5 | 2020-11-22T14:40:20.000Z | 2022-01-16T03:45:54.000Z | OverEngine/vendor/stb/stb_sprintf.cpp | larrymason01/OverEngine | 4e44fe8385cc1780f2189ee5135f70b1e69104fd | [
"MIT"
] | 17 | 2020-06-01T05:58:32.000Z | 2022-02-10T17:28:36.000Z | #include "pcheader.h"
#define STB_SPRINTF_IMPLEMENTATION
#include "stb_sprintf.h"
| 16.6 | 34 | 0.807229 | larrymason01 |
58a3084e3860de03ccd87aab8586aee07f3cd3fe | 13,904 | cxx | C++ | IO/AMR/vtkAMREnzoReader.cxx | acamill/VTK | 76bc79f6ae38d457b152bdeae34d5236e3aed1e6 | [
"BSD-3-Clause"
] | null | null | null | IO/AMR/vtkAMREnzoReader.cxx | acamill/VTK | 76bc79f6ae38d457b152bdeae34d5236e3aed1e6 | [
"BSD-3-Clause"
] | null | null | null | IO/AMR/vtkAMREnzoReader.cxx | acamill/VTK | 76bc79f6ae38d457b152bdeae34d5236e3aed1e6 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Visualization Toolkit
Module: vtkAMREnzoReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distr... | 29.965517 | 99 | 0.5958 | acamill |
58a3f14a1bca9ae134f099f7224a3d89106b753d | 1,964 | cpp | C++ | factories/example/example.cpp | adhithadias/design-patterns-cplusplus | 19aef5d1a6c873c157cce27b048896166add01d6 | [
"MIT"
] | null | null | null | factories/example/example.cpp | adhithadias/design-patterns-cplusplus | 19aef5d1a6c873c157cce27b048896166add01d6 | [
"MIT"
] | null | null | null | factories/example/example.cpp | adhithadias/design-patterns-cplusplus | 19aef5d1a6c873c157cce27b048896166add01d6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
enum class PointType {
cartesian,
polar
};
/*
1) here we cannot have 2 Point constructors for cartesian and polar
because both of the constructors will have (float, float) arguments
we have to introduce enum for type differenciation
2) then we int... | 24.860759 | 92 | 0.62831 | adhithadias |
58a51b05f42a782a36e62239f2a9a36611c42ac9 | 1,189 | cpp | C++ | ojgl/src/render/Texture.cpp | OskarPedersen/OJGL | e905a59afc628bc420c510074d0f4174aea4da44 | [
"MIT"
] | null | null | null | ojgl/src/render/Texture.cpp | OskarPedersen/OJGL | e905a59afc628bc420c510074d0f4174aea4da44 | [
"MIT"
] | null | null | null | ojgl/src/render/Texture.cpp | OskarPedersen/OJGL | e905a59afc628bc420c510074d0f4174aea4da44 | [
"MIT"
] | null | null | null | #include "Texture.h"
#include "winapi/gl_loader.h"
namespace ojgl {
Texture::Texture(int width, int height, int channels, unsigned char* img)
: _width(width)
, _height(height)
, _channels(channels)
{
load(img);
}
ojstd::shared_ptr<Texture> Texture::construct(int width, int height, int channels, unsign... | 27.651163 | 122 | 0.736754 | OskarPedersen |
58afa5107ee38f491750a776226f9ccdf8dfb61d | 200 | cpp | C++ | Luogu/P1425.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | 1 | 2021-04-05T16:26:00.000Z | 2021-04-05T16:26:00.000Z | Luogu/P1425.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | null | null | null | Luogu/P1425.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | null | null | null | #include<cstdio>
int main(){
int h1,m1,h2,m2;
scanf("%d %d %d %d",&h1,&m1,&h2,&m2);
int h3,m3;
m3 = m2 - m1;
if(m3 < 0){
h2--;
m3 += 60;
}
h3 = h2- h1;
printf("%d %d",h3,m3);
return 0;
}
| 13.333333 | 38 | 0.485 | Rose2073 |
58b1747958284c0ece6133fb6f452e5db3a30652 | 750 | cpp | C++ | sydney-2017-03-29/motivation1c.cpp | cjdb/cpp-conferences | bafe69cf11ca38451367553460e956cb52df3dd2 | [
"Apache-2.0"
] | 3 | 2017-09-15T00:10:25.000Z | 2018-09-22T12:50:18.000Z | sydney-2017-03-29/motivation1c.cpp | cjdb/cppcon | bafe69cf11ca38451367553460e956cb52df3dd2 | [
"Apache-2.0"
] | 1 | 2017-12-04T22:12:16.000Z | 2017-12-04T22:12:16.000Z | sydney-2017-03-29/motivation1c.cpp | cjdb/cppcon | bafe69cf11ca38451367553460e956cb52df3dd2 | [
"Apache-2.0"
] | 1 | 2017-12-04T10:50:54.000Z | 2017-12-04T10:50:54.000Z | #include <algorithm>
#include <iterator>
#include <iostream>
#include <type_traits>
#include <vector>
template <typename InputIterator, std::enable_if_t<
std::is_same<typename InputIterator::iterator_tag_t,
typename InputIterator::iterator_tag_t>::value,
int> = 0>
std::vector<double> make_vector(I... | 25 | 92 | 0.676 | cjdb |
58b1c412f971463564e3254bbb42efd0dd5684a5 | 1,491 | hh | C++ | Config.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | Config.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | Config.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | #pragma once
#include <cstddef>
#include <cstdint>
struct ImageConfig{
static uint64_t PHYS_BASE;
static size_t SIZE;
static uint64_t VIRT_BASE;
static uint64_t KERN_END;
static uint64_t physBase() { return ImageConfig::PHYS_BASE; }
static size_t size() { return ImageConfig::SIZE; }
static uint64_t virtBase() ... | 31.723404 | 74 | 0.744467 | cndolo |
58b5a1499ead2cc7ce06ce342361ef373820b9dc | 494 | cpp | C++ | nowcoder/80C.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | nowcoder/80C.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | nowcoder/80C.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define N 100020
#define mod 998244353
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
int main(int argc, char co... | 24.7 | 61 | 0.546559 | swwind |
58b5da290227a4419b775b445b190b4e906c0a5e | 2,267 | cpp | C++ | main.cpp | MattLigocki/DNNAssist | 97801013ac948c6fdd84fa622888c519eed3bc85 | [
"MIT"
] | null | null | null | main.cpp | MattLigocki/DNNAssist | 97801013ac948c6fdd84fa622888c519eed3bc85 | [
"MIT"
] | null | null | null | main.cpp | MattLigocki/DNNAssist | 97801013ac948c6fdd84fa622888c519eed3bc85 | [
"MIT"
] | null | null | null | #include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQuickStyle>
#include <QQmlContext>
#include <QQuickWindow>
#include <memory>
#include <QTimer>
#include "models/modelObjects/Classifier.h"
#include "computerVision/QCvDetectFilter.h"
#include "controllers/DataSetsScreenController.h"
#include "cont... | 34.876923 | 144 | 0.731804 | MattLigocki |
58c4e5ac7ba38b36e29a6975398fa189684f2f13 | 479 | cpp | C++ | Source/Editor/Private/Customizations/SEComponentClassFilterCustomization.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 110 | 2018-10-20T21:47:54.000Z | 2022-03-14T03:47:58.000Z | Source/Editor/Private/Customizations/SEComponentClassFilterCustomization.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 68 | 2018-12-19T09:08:56.000Z | 2022-03-09T06:43:38.000Z | Source/Editor/Private/Customizations/SEComponentClassFilterCustomization.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 45 | 2018-12-03T14:35:47.000Z | 2022-03-05T01:35:24.000Z | // Copyright 2015-2020 Piperift. All Rights Reserved.
#include "Customizations/SEComponentClassFilterCustomization.h"
#include "PropertyHandle.h"
#define LOCTEXT_NAMESPACE "FSEComponentClassFilterCustomization"
TSharedPtr<IPropertyHandle> FSEComponentClassFilterCustomization::GetFilterHandle(TSharedRef<IPropertyHan... | 31.933333 | 131 | 0.860125 | foobit |
58c6e8c64c29739e6951e1ff66d67fa5ea003393 | 2,338 | cpp | C++ | src/imaging/ossimJpegMemDest.cpp | martidi/ossim | 44268fa9d7fc5a3038642e702e85ccd339a4ff9f | [
"MIT"
] | null | null | null | src/imaging/ossimJpegMemDest.cpp | martidi/ossim | 44268fa9d7fc5a3038642e702e85ccd339a4ff9f | [
"MIT"
] | null | null | null | src/imaging/ossimJpegMemDest.cpp | martidi/ossim | 44268fa9d7fc5a3038642e702e85ccd339a4ff9f | [
"MIT"
] | 1 | 2018-10-11T11:36:16.000Z | 2018-10-11T11:36:16.000Z | //----------------------------------------------------------------------------
//
// License: See top level LICENSE.txt file
//
// Most of code and comments below are from jpeg-6b "example.c" file. See
// http://www4.cs.fau.de/Services/Doc/graphics/doc/jpeg/libjpeg.html
//
// Author: Oscar Kramer (From example by Th... | 30.363636 | 103 | 0.652695 | martidi |
58ca4902c0172be2c805c0ddf926e800f67b4417 | 789 | hpp | C++ | mycenter/center/BaseCenter.hpp | nightli110/mycenter | 3d96bf6fa6e3442646f9a416c6fd80c9807590c8 | [
"MIT"
] | null | null | null | mycenter/center/BaseCenter.hpp | nightli110/mycenter | 3d96bf6fa6e3442646f9a416c6fd80c9807590c8 | [
"MIT"
] | null | null | null | mycenter/center/BaseCenter.hpp | nightli110/mycenter | 3d96bf6fa6e3442646f9a416c6fd80c9807590c8 | [
"MIT"
] | null | null | null | /***
* @Author: nightli
* @Date: 2020-10-13 17:15:52
* @LastEditors: nightli
* @LastEditTime: 2020-10-14 10:22:11
* @FilePath: /mycenter/MyCenter.hpp
* @Emile: 1658484908@qq.com
*/
#include <iostream>
#include "../App/InferenceAPP.hpp"
#include "../datatype/MyData.hpp"
using namespace std;
class BaseCenter
{
... | 19.243902 | 51 | 0.698352 | nightli110 |
58cf2bd16dc965f1c4210914a4957cf70c23b1bd | 4,432 | cpp | C++ | libraries/CRC/test/unit_test_crc32.cpp | jantje/Arduino | cd40e51b4eb9f8947aa58f278f61c9121d711fb0 | [
"MIT"
] | 1,253 | 2015-01-03T17:07:53.000Z | 2022-03-22T11:46:42.000Z | libraries/CRC/test/unit_test_crc32.cpp | henriquerochamattos/Arduino | 3ace3a4e7b2b51d52d4c2ea363d23ebaacd9cc68 | [
"MIT"
] | 134 | 2015-01-21T20:33:13.000Z | 2022-01-05T08:59:33.000Z | libraries/CRC/test/unit_test_crc32.cpp | henriquerochamattos/Arduino | 3ace3a4e7b2b51d52d4c2ea363d23ebaacd9cc68 | [
"MIT"
] | 3,705 | 2015-01-02T17:03:16.000Z | 2022-03-31T13:20:30.000Z | //
// FILE: unit_test_crc32.cpp
// AUTHOR: Rob Tillaart
// DATE: 2021-03-31
// PURPOSE: unit tests for the CRC library
// https://github.com/RobTillaart/CRC
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------------------------
// assert... | 28.779221 | 97 | 0.664486 | jantje |
58d33bf3fdb8ba76a35b1ccdd46e058876393bec | 248 | hpp | C++ | test/test_mpi.hpp | mirandaconrado/object-archive | e3f43ac8aac86293f642b1a85a6892904ea3714b | [
"MIT"
] | 1 | 2019-12-10T11:38:49.000Z | 2019-12-10T11:38:49.000Z | test/test_mpi.hpp | mirandaconrado/object-archive | e3f43ac8aac86293f642b1a85a6892904ea3714b | [
"MIT"
] | null | null | null | test/test_mpi.hpp | mirandaconrado/object-archive | e3f43ac8aac86293f642b1a85a6892904ea3714b | [
"MIT"
] | null | null | null | #ifndef __TASK_DISTRIBUTION__TEST_MPI_HPP__
#define __TASK_DISTRIBUTION__TEST_MPI_HPP__
#include <boost/mpi/environment.hpp>
#include <boost/mpi/communicator.hpp>
extern boost::mpi::environment env;
extern boost::mpi::communicator world;
#endif
| 22.545455 | 43 | 0.826613 | mirandaconrado |
58d4885be4e47bbfc155f2e61d97b3c1a306fce9 | 573 | cpp | C++ | 156.cpp | R-penguins/UVa-Online-Judge-Solutions | 4bb24ab26c207903ff5b6fea6cfe122ae6578d62 | [
"MIT"
] | null | null | null | 156.cpp | R-penguins/UVa-Online-Judge-Solutions | 4bb24ab26c207903ff5b6fea6cfe122ae6578d62 | [
"MIT"
] | null | null | null | 156.cpp | R-penguins/UVa-Online-Judge-Solutions | 4bb24ab26c207903ff5b6fea6cfe122ae6578d62 | [
"MIT"
] | null | null | null | /**
* AOAPC II Example 5-4 Ananagrams
*/
#include <bits/stdc++.h>
using namespace std;
int main() {
map<string, string> trans;
string s;
while ((cin >> s) && s[0] != '#') {
string t = s;
for (char &c : t)
c = tolower(c);
sort(t.begin(), t.end());
if (trans.find(... | 22.038462 | 41 | 0.4363 | R-penguins |
58e8b0f612d52ad89d385c9c65acd7fe2995970b | 400 | cc | C++ | extras/readnewmagres.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | extras/readnewmagres.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | extras/readnewmagres.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | #include "magres.h"
using namespace MagRes;
int main(int argc, const char **argv) {
try {
MagresFile magres;
magres.parse_from_file(argv[1]);
std::cout << magres;
}
catch (exception_t& exc) {
std::cerr << "Parsing failed: " << exc << '\n';
return 1;
}
catch (notmagres_exception_t&) {
... | 19.047619 | 51 | 0.6 | dch0ph |
58e999a3c5fd31dcf3b51b5996d50a3880d74664 | 530 | cpp | C++ | CodeChef June Contest 2020/Chef-and-String-Problem.cpp | Shiv-sharma-111/CodeChef-Contest | 93594692ba0818cb30ac3dd15addd67246e987ff | [
"MIT"
] | null | null | null | CodeChef June Contest 2020/Chef-and-String-Problem.cpp | Shiv-sharma-111/CodeChef-Contest | 93594692ba0818cb30ac3dd15addd67246e987ff | [
"MIT"
] | null | null | null | CodeChef June Contest 2020/Chef-and-String-Problem.cpp | Shiv-sharma-111/CodeChef-Contest | 93594692ba0818cb30ac3dd15addd67246e987ff | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
int T;
cin>>T;
while(T--)
{
string S;
//getline(cin,S);
cin>>S;
int n = S.length();
int count=0;
if(n==1)
{
cout<<"0"<<"\n";
}
else
{
... | 15.142857 | 68 | 0.39434 | Shiv-sharma-111 |
58eb71bbe291896006a7ff8e7e255045e4e2abf4 | 8,781 | cpp | C++ | ntUPSd/CommandProcessor.cpp | 6XGate/ntUPSd | 7a3d7301a78db632c93c8eb9665c9d039137d835 | [
"MIT"
] | 20 | 2016-04-11T12:22:59.000Z | 2021-12-07T19:38:26.000Z | ntUPSd/CommandProcessor.cpp | 6XGate/ntUPSd | 7a3d7301a78db632c93c8eb9665c9d039137d835 | [
"MIT"
] | 1 | 2016-04-11T12:45:54.000Z | 2016-04-13T11:44:45.000Z | ntUPSd/CommandProcessor.cpp | 6XGate/ntUPSd | 7a3d7301a78db632c93c8eb9665c9d039137d835 | [
"MIT"
] | 8 | 2017-11-03T00:57:13.000Z | 2021-11-10T14:20:23.000Z | /*
Copyright 2016 Matthew Holder
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,
subl... | 20.468531 | 106 | 0.705045 | 6XGate |
58f07777fde724228ad81e8451d775f50a07359f | 484 | cc | C++ | src/test/ndpc/test_fact.cc | abu-bakar-nu/nautilus | 9c5046d714e2ff2a00f757ba42dc887024365be6 | [
"MIT"
] | 28 | 2018-10-12T17:44:54.000Z | 2022-01-27T19:30:56.000Z | src/test/ndpc/test_fact.cc | abu-bakar-nu/nautilus | 9c5046d714e2ff2a00f757ba42dc887024365be6 | [
"MIT"
] | 31 | 2018-12-08T19:39:32.000Z | 2021-01-19T18:37:57.000Z | src/test/ndpc/test_fact.cc | abu-bakar-nu/nautilus | 9c5046d714e2ff2a00f757ba42dc887024365be6 | [
"MIT"
] | 26 | 2018-08-04T03:58:13.000Z | 2022-03-02T18:53:09.000Z | #define NDPC_NAUTILUS_KERNEL
#include "ndpc_glue.h"
#include "fact.hh"
//
//using namespace std;
NDPC_TEST(fact)
{
int input=5;
int output;
NDPC_PRINTF("Testing factorial example\n");
ndpc_init_preempt_threads();
if (fact(output,input)) {
NDPC_PRINTF("function call failed\n");
} els... | 15.125 | 52 | 0.654959 | abu-bakar-nu |
58f24871922634cdd3c0013179c13807f95ee6ee | 648 | hpp | C++ | src/agl/opengl/function/texture/parameter.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/opengl/function/texture/parameter.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/opengl/function/texture/parameter.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | #pragma once
#include "agl/opengl/enum/texture_parameter.hpp"
#include "agl/opengl/name/all.hpp"
namespace agl {
inline
void parameter(Texture t, TextureParameter tp, GLfloat param) {
glTextureParameterf(
t,
static_cast<GLenum>(tp),
param);
}
inline
void parameter(Texture t, TextureParam... | 18.514286 | 63 | 0.688272 | the-last-willy |
58f34c122d02d04fb94eb84d5d64a621e9add997 | 974 | cpp | C++ | Week16/1235.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | 101 | 2021-02-26T14:32:37.000Z | 2022-03-16T18:46:37.000Z | Week16/1235.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | null | null | null | Week16/1235.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | 30 | 2021-03-09T05:16:48.000Z | 2022-03-16T21:16:33.000Z | bool sortFunc(const vector<int>& p1, const vector<int>& p2) {
return p1[0] < p2[0];
}
class Solution {
public:
int jobScheduling(vector<int>& startTime, vector<int>& endTime, vector<int>& profit) {
vector<vector<int>> contain;
int max_end=0;
for(int i=0; i<startTime.size(); i++){
... | 32.466667 | 90 | 0.501027 | bobsingh149 |
58f507e211a425fdce51de03e2388d46b27b8c6a | 26,140 | cpp | C++ | Modules/Core/src/DataManagement/mitkPropertyRelationRuleBase.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Modules/Core/src/DataManagement/mitkPropertyRelationRuleBase.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Modules/Core/src/DataManagement/mitkPropertyRelationRuleBase.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 29.977064 | 174 | 0.714575 | zhaomengxiao |
58f61a8cce9d5594b07bcc61457d49ed308d10a8 | 1,182 | hpp | C++ | cpp/src/datacentric/dc/types/record/root_key.hpp | datacentricorg/datacentric | b9e2dedfac35759ea09bb5653095daba5861512e | [
"Apache-2.0"
] | 1 | 2019-08-08T01:27:47.000Z | 2019-08-08T01:27:47.000Z | cpp/src/datacentric/dc/types/record/root_key.hpp | datacentricorg/datacentric | b9e2dedfac35759ea09bb5653095daba5861512e | [
"Apache-2.0"
] | null | null | null | cpp/src/datacentric/dc/types/record/root_key.hpp | datacentricorg/datacentric | b9e2dedfac35759ea09bb5653095daba5861512e | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2013-present The DataCentric Authors.
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 ... | 33.771429 | 103 | 0.753807 | datacentricorg |
58f8610cdf0420bd3597b10a1403e8b2ad46cf17 | 7,256 | cpp | C++ | src/stores/GOG/gog_library.cpp | ColonelGerdauf/SKIF | ae0b300c0ededbc5437bd26c37be4f0b8fb8cfaa | [
"MIT"
] | null | null | null | src/stores/GOG/gog_library.cpp | ColonelGerdauf/SKIF | ae0b300c0ededbc5437bd26c37be4f0b8fb8cfaa | [
"MIT"
] | null | null | null | src/stores/GOG/gog_library.cpp | ColonelGerdauf/SKIF | ae0b300c0ededbc5437bd26c37be4f0b8fb8cfaa | [
"MIT"
] | null | null | null |
#include <stores/gog/gog_library.h>
#include <wtypes.h>
#include <filesystem>
/*
GOG Galaxy / Offline Installers shared registry struture
Root Key: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\
Each game is stored in a separate key beneath, named after the Game ID/Product ID of the game.
Each key have a ... | 38.595745 | 158 | 0.598953 | ColonelGerdauf |
58f8e7b49afbd778b849e3052f126235103b460c | 816 | cpp | C++ | luogu/CF977F.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | 1 | 2020-07-24T03:07:08.000Z | 2020-07-24T03:07:08.000Z | luogu/CF977F.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | luogu/CF977F.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | //
// Created by yangtao on 20-11-8.
//
//
// Created by yangtao on 2020/11/1.
//
#include<iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
#include <map>
using namespace std;
const int N = 2e5 + 5;
int n, ans , v;
int a[N];
map<int, int> mm;
int main() {
cin >> n;
for(int i = 1; i <= n; i++... | 20.4 | 56 | 0.436275 | delphi122 |
58fef46ff52b59a4abbdafc630afa4314be7880a | 1,111 | cpp | C++ | lib/save_obj.cpp | CraGL/SubdivisionSkinning | c593a7a4e38a49716e9d3981824871a7b6c29324 | [
"Apache-2.0"
] | 19 | 2017-03-29T00:14:00.000Z | 2021-11-27T15:44:44.000Z | lib/save_obj.cpp | Myzhencai/SubdivisionSkinning | c593a7a4e38a49716e9d3981824871a7b6c29324 | [
"Apache-2.0"
] | 1 | 2019-05-08T21:48:11.000Z | 2019-05-08T21:48:11.000Z | lib/save_obj.cpp | Myzhencai/SubdivisionSkinning | c593a7a4e38a49716e9d3981824871a7b6c29324 | [
"Apache-2.0"
] | 5 | 2017-04-23T17:52:44.000Z | 2020-06-28T18:00:26.000Z | #include "save_obj.h"
#include <iostream>
#include <fstream>
namespace save_obj
{
void save_mesh( const std::string& out_path, const std::vector< std::vector< int > >& faces, const std::vector< std::vector< real_t > >& vertices, const std::string& header_message )
{
std::ofstream out( out_path );
save_mesh( out,... | 25.25 | 182 | 0.531953 | CraGL |
4500146138fdc658e2e90b3d655f9689fe73331b | 11,131 | cpp | C++ | src/tpcc/DBtxnNewOrder.cpp | bailuding/centiman | 213eab0bd391822cbc9a01644979f8409440c376 | [
"Apache-2.0"
] | 4 | 2016-07-14T18:11:39.000Z | 2021-04-14T01:27:38.000Z | src/tpcc/DBtxnNewOrder.cpp | bailuding/centiman | 213eab0bd391822cbc9a01644979f8409440c376 | [
"Apache-2.0"
] | null | null | null | src/tpcc/DBtxnNewOrder.cpp | bailuding/centiman | 213eab0bd391822cbc9a01644979f8409440c376 | [
"Apache-2.0"
] | 1 | 2015-11-23T17:23:43.000Z | 2015-11-23T17:23:43.000Z | //
// DBtxnNewOrder.cpp
// centiman TPCC
//
// Created by Alan Demers on 11/1/12.
// Copyright (c) 2012 ademers. All rights reserved.
//
//#include <unordered_set>
#include <set>
#include <tpcc/Tables.h>
#include <tpcc/DB.h>
#include <util/const.h>
namespace TPCC {
/*
* New Order Transaction ...
... | 45.247967 | 138 | 0.55844 | bailuding |
4504f9adfd0c992fe47af0cbffea8e9a38dc2442 | 573 | cpp | C++ | week1/fileIO.cpp | shaili-regmi/cpp-examples | 66c8813b6ef301604c5003b103c1f11d5ee7519b | [
"MIT"
] | null | null | null | week1/fileIO.cpp | shaili-regmi/cpp-examples | 66c8813b6ef301604c5003b103c1f11d5ee7519b | [
"MIT"
] | null | null | null | week1/fileIO.cpp | shaili-regmi/cpp-examples | 66c8813b6ef301604c5003b103c1f11d5ee7519b | [
"MIT"
] | 4 | 2021-02-18T18:34:47.000Z | 2021-03-03T18:05:26.000Z | // Bryn Mawr College, 2021
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
using namespace std;
int main(int argc, char** argv)
{
string filename = "../files/grades.txt";
ifstream file(filename);
if (!file) // true if the file is valid
{
cout << "Cannot load file: " << f... | 16.371429 | 55 | 0.558464 | shaili-regmi |
4505c2df666176b029ee7d913f366e9ea6e34bdd | 303 | hpp | C++ | States.hpp | nvg-ict/StateMachineTemplate | abae3222535d20bea2aa82ba4aca83ebab1081dc | [
"Apache-2.0"
] | null | null | null | States.hpp | nvg-ict/StateMachineTemplate | abae3222535d20bea2aa82ba4aca83ebab1081dc | [
"Apache-2.0"
] | null | null | null | States.hpp | nvg-ict/StateMachineTemplate | abae3222535d20bea2aa82ba4aca83ebab1081dc | [
"Apache-2.0"
] | null | null | null | /*
* States.hpp
*
* Created on: Mar 4, 2017
* Author: nico
*/
#ifndef STATES_HPP_
#define STATES_HPP_
/**
* @brief States for the statemachine
*/
namespace States
{
enum Events
{
evInitReady,
evTask,
evTaskDone,
evSTOP,
evSTOPdisable
};
}
#endif /* STATES_HPP_ */
| 10.448276 | 37 | 0.613861 | nvg-ict |
450bfb405f75a9351e7c5860d6e97269891d2bc6 | 235 | cpp | C++ | src/0189.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | src/0189.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | src/0189.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | class Solution {
public:
void rotate(vector<int>& nums, int k) {
k %= size(nums);
reverse(begin(nums), end(nums));
reverse(begin(nums), begin(nums) + k);
reverse(begin(nums) + k, end(nums));
}
}; | 26.111111 | 46 | 0.544681 | shuihan0555 |
450e2111cdbc102af7b01657673639af2fa38c9c | 505 | hh | C++ | CppPool/cpp_d09/ex04/Priest.hh | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 40 | 2018-01-28T14:23:27.000Z | 2022-03-05T15:57:47.000Z | CppPool/cpp_d09/ex04/Priest.hh | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 1 | 2021-10-05T09:03:51.000Z | 2021-10-05T09:03:51.000Z | CppPool/cpp_d09/ex04/Priest.hh | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 73 | 2019-01-07T18:47:00.000Z | 2022-03-31T08:48:38.000Z | //
// Priest.hh for Priest in /home/gwendoline/Epitech/Tek2/Piscine_cpp/piscine_cpp_d09/ex02
//
// Made by Gwendoline Rodriguez
// Login <gwendoline@epitech.net>
//
// Started on Thu Jan 14 16:50:20 2016 Gwendoline Rodriguez
// Last update Thu Jan 14 18:54:34 2016 Gwendoline Rodriguez
//
#ifndef _PRIEST_HH
#define ... | 18.035714 | 89 | 0.69901 | 667MARTIN |
451157df0d6dc6e5135e7f9ce2b8f510befffa7c | 2,765 | cpp | C++ | Code/Modules/mutalisk/dx9/dx9Helpers.cpp | mrneo240/suicide-barbie | c8b01f9c04755e7f6d1d261fc4a1600cd6705b96 | [
"MIT"
] | 57 | 2021-01-02T00:18:22.000Z | 2022-03-27T14:40:25.000Z | Code/Modules/mutalisk/dx9/dx9Helpers.cpp | mrneo240/suicide-barbie | c8b01f9c04755e7f6d1d261fc4a1600cd6705b96 | [
"MIT"
] | 1 | 2021-01-05T20:43:02.000Z | 2021-01-11T23:04:41.000Z | Code/Modules/mutalisk/dx9/dx9Helpers.cpp | mrneo240/suicide-barbie | c8b01f9c04755e7f6d1d261fc4a1600cd6705b96 | [
"MIT"
] | 8 | 2021-01-01T22:34:43.000Z | 2022-03-22T01:21:26.000Z | #include "dx9Helpers.h"
#include <string>
#include <stdlib.h>
#include "../errors.h"
using namespace dx;
unsigned calcTextureSize(IDirect3DTexture9 const& texture)
{
IDirect3DTexture9& tex = const_cast<IDirect3DTexture9&>(texture);
const int mipMapLevels = tex.GetLevelCount();
//
// Size calculated by this eq... | 21.10687 | 110 | 0.692586 | mrneo240 |
4511e68cd54adac8baea46b169c0a8a6b659ed9d | 904 | cpp | C++ | Algorithmic-Toolbox/Extra_Poly_Mul.cpp | saddhu1005/Coursera-DataStructuresAlgorithms | 847508c1e93246900700a63b981033ec84d85031 | [
"MIT"
] | 1 | 2019-04-01T20:05:25.000Z | 2019-04-01T20:05:25.000Z | Algorithmic-Toolbox/Extra_Poly_Mul.cpp | saddhu1005/Coursera-DataStructuresAlgorithms | 847508c1e93246900700a63b981033ec84d85031 | [
"MIT"
] | null | null | null | Algorithmic-Toolbox/Extra_Poly_Mul.cpp | saddhu1005/Coursera-DataStructuresAlgorithms | 847508c1e93246900700a63b981033ec84d85031 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll * multp(ll a[],ll b[],ll n,ll l, ll r)
{
ll *rs=new ll[n*2-1];
for(ll i=0;i<n*2-1;++i)
rs[i]=0;
if(n==1)
{
rs[0]=a[l]*b[l];
return rs;
}
rs=multp(a,b,n/2,l,r);
rs=multp(a,b,n/2,l+n/2,r+n/2);
ll *d0e... | 17.72549 | 41 | 0.409292 | saddhu1005 |
45159869f3605b62595dd52d902b9c1c8b35a7ef | 2,804 | hpp | C++ | include/pmath/Matrix2.hpp | M4T1A5/ProbablyMath | fbf907ebfcb5a4d59c89fa240c20a1bb876b74be | [
"MIT"
] | null | null | null | include/pmath/Matrix2.hpp | M4T1A5/ProbablyMath | fbf907ebfcb5a4d59c89fa240c20a1bb876b74be | [
"MIT"
] | null | null | null | include/pmath/Matrix2.hpp | M4T1A5/ProbablyMath | fbf907ebfcb5a4d59c89fa240c20a1bb876b74be | [
"MIT"
] | null | null | null | #pragma once
#ifndef MATRIX2_PMATH_H
#define MATRIX2_PMATH_H
#include "Vector2.hpp"
#include <iostream>
#include <string>
namespace pmath
{
template<typename T>
class Matrix2
{
public:
Matrix2();
Matrix2(const T& a11, const T& a12,
const T& a21, const T& a22);
... | 28.323232 | 73 | 0.614836 | M4T1A5 |
4516b87899f4583240c9c086372d0fa0537d24c4 | 241 | cc | C++ | build/ARM/python/m5/internal/param_ThermalResistor.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_ThermalResistor.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_ThermalResistor.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_ThermalResistor();
}
EmbeddedSwig embed_swig_param_ThermalResistor(init_param_ThermalResistor, "m5.internal._param_ThermalResistor");
| 26.777778 | 120 | 0.643154 | Jakgn |
931f7a28603651a2203a309bde1bea50b5fcfdca | 2,002 | cpp | C++ | source/log/Layout.cpp | intive/StudyBox_CV | 5ea9b643177667ebdc9809f28db6705b308409f4 | [
"Apache-2.0"
] | 3 | 2016-03-07T09:40:49.000Z | 2018-05-29T16:13:10.000Z | source/log/Layout.cpp | intive/StudyBox_CV | 5ea9b643177667ebdc9809f28db6705b308409f4 | [
"Apache-2.0"
] | 38 | 2016-03-06T20:44:46.000Z | 2016-05-18T19:16:40.000Z | source/log/Layout.cpp | blstream/StudyBox_CV | 5ea9b643177667ebdc9809f28db6705b308409f4 | [
"Apache-2.0"
] | 10 | 2016-03-10T21:30:18.000Z | 2016-04-20T07:01:12.000Z | #define _CRT_SECURE_NO_WARNINGS
#include "Layout.h"
#include <iomanip>
#include <sstream>
LoggerInfo::LoggerInfo(std::size_t id, std::string name) : loggerId(id), loggerName(name)
{
}
std::size_t LoggerInfo::id() const
{
return loggerId;
}
const std::string& LoggerInfo::name() const
{
return loggerName;
}
T... | 16.683333 | 99 | 0.681818 | intive |
9326fea7cfefb0a2788b7d56c1eb06e083e1505c | 499 | cpp | C++ | src/TEMA VACANTA 2/#11/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | 2 | 2021-11-27T18:29:32.000Z | 2021-11-28T14:35:47.000Z | src/TEMA VACANTA 2/#11/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | src/TEMA VACANTA 2/#11/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | #include <iostream>
/*11) Se dă un şir cu n numere naturale. Să se afişeze suma primilor n termeni din şir, apoi suma
primilor n-1 termeni din şir, şi aşa mai departe.*/
using namespace std;
int main()
{
int i, n, v[100], s=0;
cout<<"Scrie nr de elem: ";
cin>>n;
cout<<"Scrie elem vect.: ";
for(i=0... | 19.192308 | 97 | 0.513026 | andrew-miroiu |
9333c21b1adced91325809aac79ac9d81c887635 | 123 | cpp | C++ | examples/op_new_arr_reinterpret_cast.cpp | typegrind/clang-typegrind | 6aa58997883d7973e14644563dc59ff9c34e8ffb | [
"MIT"
] | 2 | 2016-04-12T20:41:15.000Z | 2019-08-26T12:51:51.000Z | examples/op_new_arr_reinterpret_cast.cpp | typegrind/clang-typegrind | 6aa58997883d7973e14644563dc59ff9c34e8ffb | [
"MIT"
] | null | null | null | examples/op_new_arr_reinterpret_cast.cpp | typegrind/clang-typegrind | 6aa58997883d7973e14644563dc59ff9c34e8ffb | [
"MIT"
] | null | null | null | int main(void) {
int* pT = reinterpret_cast<int*>(::operator new[](100));
::operator delete[](pT);
return 0;
}
| 20.5 | 60 | 0.585366 | typegrind |
9335e297ab7455c1f85517ef1b2d632f562ed884 | 3,367 | cpp | C++ | src/wcl/geometry/LineSegment.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/wcl/geometry/LineSegment.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/wcl/geometry/LineSegment.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /*-
* Copyright (c) 2008 Michael Marner <michael@20papercups.net>
* 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. Redistributions of source code must retain the above copyright
* ... | 32.68932 | 94 | 0.665281 | WearableComputerLab |
93420c8cdc83e0718039a9b1fe1d15a10bced00f | 1,484 | hpp | C++ | include/math/constants.hpp | tomreddell/Hamilton | eec6e423f829a559237583803d11fbe06489a9b9 | [
"MIT"
] | 1 | 2020-09-19T14:48:32.000Z | 2020-09-19T14:48:32.000Z | include/math/constants.hpp | tomreddell/Hamilton | eec6e423f829a559237583803d11fbe06489a9b9 | [
"MIT"
] | null | null | null | include/math/constants.hpp | tomreddell/Hamilton | eec6e423f829a559237583803d11fbe06489a9b9 | [
"MIT"
] | 1 | 2021-01-01T02:23:55.000Z | 2021-01-01T02:23:55.000Z | #pragma once
#include "math/core_math.hpp"
/**
* @file constants.hpp
*/
/// Speed of light in vacuum (m/s)
constexpr double SPEED_LIGHT = 299792458.0;
namespace Earth
{
/// Earth mass (kg)
constexpr double MASS = 5.9722E24;
/// Earth gravitational consta... | 30.916667 | 76 | 0.582884 | tomreddell |
9343a5d6ea3bdc05162932d0111c8febf06d086d | 4,414 | cc | C++ | src/kudu/tserver/tablet_server_options.cc | luqun/kuduraft | a0746471a6a85e9d8ccb947a866eaf1a60159f8f | [
"Apache-2.0"
] | null | null | null | src/kudu/tserver/tablet_server_options.cc | luqun/kuduraft | a0746471a6a85e9d8ccb947a866eaf1a60159f8f | [
"Apache-2.0"
] | null | null | null | src/kudu/tserver/tablet_server_options.cc | luqun/kuduraft | a0746471a6a85e9d8ccb947a866eaf1a60159f8f | [
"Apache-2.0"
] | null | null | null | // 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... | 37.40678 | 102 | 0.678749 | luqun |
9348d26c132c0f094f2739746278bbe6311ecb15 | 523 | cpp | C++ | C++/camera.cpp | Galaco/BTLRN_XTRM | c55405d5a36a44a8b1e3def555de9ec10027625b | [
"Unlicense"
] | null | null | null | C++/camera.cpp | Galaco/BTLRN_XTRM | c55405d5a36a44a8b1e3def555de9ec10027625b | [
"Unlicense"
] | null | null | null | C++/camera.cpp | Galaco/BTLRN_XTRM | c55405d5a36a44a8b1e3def555de9ec10027625b | [
"Unlicense"
] | null | null | null | #include "camera.h"
float zCamPos = -250.0;
Camera::Camera(){
posX = 0;
posY = 0;
}
void Camera::zoom( int d ){
zCamPos += d;
if ( ( zCamPos > CAMERAMINZOOM ) || ( zCamPos < CAMERAMAXZOOM ) ) // Check bounds for min and max camera distance
{
zCamPos -= d;
}
}
void Camera::update( flo... | 19.37037 | 117 | 0.58891 | Galaco |
934924abe6cb1e79d292b4d63694dadc739b48f3 | 1,106 | cpp | C++ | src/engine/graphics/vulkan/validationlayers.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | src/engine/graphics/vulkan/validationlayers.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | src/engine/graphics/vulkan/validationlayers.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | #include "validationlayers.hpp"
ValidationLayers::ValidationLayers(bool enabled)
:
enabled(enabled)
{
}
auto ValidationLayers::is_enabled(void) const noexcept -> bool
{
return enabled;
}
auto ValidationLayers::check_layer_support(void) const -> void
{
uint32_t avl_layer_cnt;
vkEnumerateInstan... | 28.358974 | 78 | 0.637432 | dmfedorin |
9352b47a643cade9cfedd9552c153be445a4b29f | 11,258 | hpp | C++ | examples/segway_dynamics.hpp | yamaha-bps/cbr_control | c2faf79673d46c950dd7590f1072fc7decafad06 | [
"MIT"
] | null | null | null | examples/segway_dynamics.hpp | yamaha-bps/cbr_control | c2faf79673d46c950dd7590f1072fc7decafad06 | [
"MIT"
] | null | null | null | examples/segway_dynamics.hpp | yamaha-bps/cbr_control | c2faf79673d46c950dd7590f1072fc7decafad06 | [
"MIT"
] | null | null | null | // Copyright Yamaha 2021
// MIT License
// https://github.com/yamaha-bps/cbr_control/blob/master/LICENSE
#ifndef SEGWAY_DYNAMICS_HPP_
#define SEGWAY_DYNAMICS_HPP_
#include <Eigen/Dense>
// template here over some type
template<typename T1, typename T2>
auto segway_dynamics(const Eigen::MatrixBase<T1> & x, const Eige... | 20.211849 | 100 | 0.373601 | yamaha-bps |
9354b445599df8416c9c0a56d46a23ac4e56edfc | 600 | cpp | C++ | tutoriat-04-virtual-rtti/Subiecte examen/rezolvate/2.cpp | Tutoring-OOP-RM/Tutoring-OOP | f8709acbbe4a0fc0f869d95e3666c15f0332ddb8 | [
"MIT"
] | 4 | 2021-03-11T09:34:07.000Z | 2021-03-11T16:11:34.000Z | tutoriat-04-virtual-rtti/Subiecte examen/rezolvate/2.cpp | Tutoring-OOP-RM/Tutoring-OOP | f8709acbbe4a0fc0f869d95e3666c15f0332ddb8 | [
"MIT"
] | null | null | null | tutoriat-04-virtual-rtti/Subiecte examen/rezolvate/2.cpp | Tutoring-OOP-RM/Tutoring-OOP | f8709acbbe4a0fc0f869d95e3666c15f0332ddb8 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class B {
public:
int x;
B(int i = 16) { x = i; }
B f(B ob) { return x + ob.x; }
};
class D : public B {
public:
D(int i = 25) { x = i; }
D f(D ob) { return x + ob.x + 1; }
void afisare() { cout << x; }
};
int main()
{
D *p1 = new D;
// LA p2 SE INCEARCA UN DOWNCAST ... | 20.689655 | 102 | 0.525 | Tutoring-OOP-RM |
935ae248a1bcee611fae546b2d549b2905f20536 | 9,797 | cc | C++ | aku/vtln.cc | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | null | null | null | aku/vtln.cc | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | null | null | null | aku/vtln.cc | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | null | null | null | #include <math.h>
#include <string>
#include "io.hh"
#include "str.hh"
#include "conf.hh"
#include "HmmSet.hh"
#include "FeatureGenerator.hh"
#include "PhnReader.hh"
#include "Recipe.hh"
#include "SpeakerConfig.hh"
using namespace aku;
#define TINY 1e-10
std::string save_summary_file;
int info;
float grid_start;
... | 32.656667 | 101 | 0.597224 | phsmit |
935c99d810297c48a0b863ea0ae967f368f9a7a7 | 330 | cpp | C++ | HDU/20/hdu2030.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2017-08-19T16:02:15.000Z | 2017-08-19T16:02:15.000Z | HDU/20/hdu2030.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | null | null | null | HDU/20/hdu2030.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2018-01-05T23:37:23.000Z | 2018-01-05T23:37:23.000Z | #include <stdio.h>
#include <string.h>
int main(void)
{
int n;
int count;
char c;
scanf("%d%*c", &n);
while (n--)
{
count = 0;
while ((c = getchar()) != '\n')
{
if (c < 0)
count++;
}
printf("%d\n", count / 2);
}
re... | 12.222222 | 39 | 0.360606 | bilibiliShen |
93625ea160c92b5193dbc25e890a27fb6f2d3c33 | 1,658 | cpp | C++ | src/ui/components/frontiers_renderer.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/ui/components/frontiers_renderer.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/ui/components/frontiers_renderer.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-03T07:54:16.000Z | 2021-03-03T07:54:16.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 26.741935 | 117 | 0.728589 | anuranbaka |
9364ef2b32068883c5690a74afafab760d044879 | 636 | cpp | C++ | 7/char*replace.cpp | tangxiangru/NOIP | 6c756df37e5cb6105f5d5eb0fd9b03a4ef8407e4 | [
"MIT"
] | 1 | 2020-10-12T12:00:08.000Z | 2020-10-12T12:00:08.000Z | 7/char*replace.cpp | tangxiangru/NOIP | 6c756df37e5cb6105f5d5eb0fd9b03a4ef8407e4 | [
"MIT"
] | null | null | null | 7/char*replace.cpp | tangxiangru/NOIP | 6c756df37e5cb6105f5d5eb0fd9b03a4ef8407e4 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
char *Replace(char *str, char *substr, char *newstr);
void main()
{
char a[80], b[80], c[80], *d;
gets(a);
gets(b);
gets(c);
d = Replace(a, b, c);
printf("%s", a);
}
char *Replace(char *str, char *substr, char *newstr)
{
int a, b, i, j, k, flag = 1;
... | 17.666667 | 54 | 0.45283 | tangxiangru |
9369374d15e2f717b63c5f7961f1fa454a2199d8 | 5,412 | hpp | C++ | src/utils/utils.hpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2020-04-10T14:39:00.000Z | 2021-02-11T15:52:16.000Z | src/utils/utils.hpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2019-12-17T08:50:20.000Z | 2020-02-03T09:37:56.000Z | src/utils/utils.hpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 1 | 2020-08-19T03:06:52.000Z | 2020-08-19T03:06:52.000Z | #ifndef NINJACLOWN_UTILS_UTILS_HPP
#define NINJACLOWN_UTILS_UTILS_HPP
#include <algorithm>
#include <charconv>
#include <functional>
#include <optional>
#include <string_view>
#include <type_traits>
#include <cstddef>
namespace utils {
using ssize_t = std::make_signed_t<std::size_t>;
inline bool starts_with(std::str... | 30.234637 | 130 | 0.68422 | TiWinDeTea |
936dc75b3cfc04cdf53f38c65ad4f277d5e998a9 | 1,513 | cc | C++ | skiko/src/commonMain/cpp/generated/PathSegmentIterator.cc | sellmair/skiko | 9ccc6234799558386ccfa00630600e02c8eb62f9 | [
"Apache-2.0"
] | 842 | 2020-07-27T11:38:31.000Z | 2022-03-30T17:37:21.000Z | skiko/src/commonMain/cpp/generated/PathSegmentIterator.cc | sellmair/skiko | 9ccc6234799558386ccfa00630600e02c8eb62f9 | [
"Apache-2.0"
] | 127 | 2020-09-17T08:12:40.000Z | 2022-03-31T08:56:56.000Z | skiko/src/commonMain/cpp/generated/PathSegmentIterator.cc | sellmair/skiko | 9ccc6234799558386ccfa00630600e02c8eb62f9 | [
"Apache-2.0"
] | 49 | 2020-07-27T16:48:56.000Z | 2022-03-24T14:15:33.000Z | #include "SkPath.h"
#include "common.h"
SKIKO_EXPORT KNativePointer org_jetbrains_skia_PathSegmentIterator__1nMake
(KNativePointer pathPtr, KBoolean forceClose) {
SkPath* path = reinterpret_cast<SkPath*>(pathPtr);
SkPath::Iter* iter = new SkPath::Iter(*path, forceClose);
return reinterpret_cast<KNativePo... | 30.26 | 98 | 0.66226 | sellmair |
936f32f4905b9a290905efd784be3b3828368b0d | 178,176 | cc | C++ | libcpp/Include/Proto/Qot_StockFilter.pb.cc | stephenlyu/gofutuapi | 1a60310dd142ac7049c9ef9cf22c7d78d0f880ef | [
"MIT"
] | 2 | 2020-11-27T04:53:13.000Z | 2021-11-15T02:15:27.000Z | libcpp/Include/Proto/Qot_StockFilter.pb.cc | stephenlyu/gofutuapi | 1a60310dd142ac7049c9ef9cf22c7d78d0f880ef | [
"MIT"
] | null | null | null | libcpp/Include/Proto/Qot_StockFilter.pb.cc | stephenlyu/gofutuapi | 1a60310dd142ac7049c9ef9cf22c7d78d0f880ef | [
"MIT"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Qot_StockFilter.proto
#include "Qot_StockFilter.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#inc... | 35.191784 | 131 | 0.700336 | stephenlyu |
937ef1f4b01111547029f076d6f0900bb2256e10 | 6,244 | hpp | C++ | utils/convsym/input/AS_Listing.hpp | vladikcomper/md-modules | 24f652a036dc63f295173369dddfffb3be89bdd7 | [
"MIT"
] | 9 | 2018-01-22T06:44:43.000Z | 2022-03-26T18:57:40.000Z | utils/convsym/input/AS_Listing.hpp | vladikcomper/md-modules | 24f652a036dc63f295173369dddfffb3be89bdd7 | [
"MIT"
] | null | null | null | utils/convsym/input/AS_Listing.hpp | vladikcomper/md-modules | 24f652a036dc63f295173369dddfffb3be89bdd7 | [
"MIT"
] | null | null | null |
/* ------------------------------------------------------------ *
* ConvSym utility version 2.7 *
* Input wrapper for the AS listing format *
* ------------------------------------------------------------ */
struct Input__AS_Listing : public InputWrapper {
Input__AS_Listing() : InputWrapper() { /... | 39.27044 | 142 | 0.603459 | vladikcomper |
937f520ec2e8b59618931f94b3c31d1372db1b4e | 97 | cpp | C++ | cpp-old/lib/html/uri_map.cpp | boryas/hcppd | 86e7418bb5b6852e448d1f1a60029d2798c0b838 | [
"MIT"
] | 1 | 2018-08-25T08:10:07.000Z | 2018-08-25T08:10:07.000Z | cpp-old/lib/html/uri_map.cpp | boryas/hcppd | 86e7418bb5b6852e448d1f1a60029d2798c0b838 | [
"MIT"
] | 22 | 2016-09-21T05:46:18.000Z | 2016-12-18T04:05:18.000Z | cpp-old/lib/html/uri_map.cpp | boryas/ssfs | 86e7418bb5b6852e448d1f1a60029d2798c0b838 | [
"MIT"
] | null | null | null | #include "uri_map.h"
namespace ssfs {
namespace html {
} // namespace html
} // namespace ssfs
| 12.125 | 20 | 0.690722 | boryas |
93836cdfcd44be54ec3a233732f609adb087e450 | 2,317 | cpp | C++ | Source/Scene/LightProbeNode.cpp | PolyAH/RealTimeGI | 372638568ff22a4dea9c1ff448cec42e3e25aaf2 | [
"MIT"
] | 6 | 2021-10-31T14:43:04.000Z | 2022-03-12T12:56:27.000Z | Source/Scene/LightProbeNode.cpp | PolyAH/RealTimeGI | 372638568ff22a4dea9c1ff448cec42e3e25aaf2 | [
"MIT"
] | null | null | null | Source/Scene/LightProbeNode.cpp | PolyAH/RealTimeGI | 372638568ff22a4dea9c1ff448cec42e3e25aaf2 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Ammar Herzallah
//
// 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, publis... | 23.40404 | 81 | 0.761761 | PolyAH |
938b6958a01ceaf9e93de67c5cf8d79b78e5fdfb | 7,668 | cpp | C++ | test/oauth1_unittests.cpp | ColdOrange/http-cpp | dda4f41032485d23bc33200834e3cb2957212da3 | [
"MIT"
] | 3 | 2016-05-17T11:40:55.000Z | 2018-06-05T11:06:44.000Z | test/oauth1_unittests.cpp | ColdOrange/http-cpp | dda4f41032485d23bc33200834e3cb2957212da3 | [
"MIT"
] | 3 | 2015-01-06T09:36:27.000Z | 2018-09-03T20:10:37.000Z | test/oauth1_unittests.cpp | ColdOrange/http-cpp | dda4f41032485d23bc33200834e3cb2957212da3 | [
"MIT"
] | 9 | 2015-01-06T02:00:21.000Z | 2022-02-21T14:47:08.000Z | //
// The MIT License (MIT)
//
// Copyright (c) 2013 by Konstantin (Kosta) Baumann & Autodesk Inc.
//
// 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... | 44.323699 | 125 | 0.700052 | ColdOrange |
939325fe795f85146d7d143f1a4f39c67c941ad5 | 30,206 | cc | C++ | inet/src/inet/routing/ospfv3/neighbor/Ospfv3Neighbor.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/routing/ospfv3/neighbor/Ospfv3Neighbor.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/routing/ospfv3/neighbor/Ospfv3Neighbor.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T13:32:40.000Z | 2021-07-02T13:32:40.000Z |
#include "inet/routing/ospfv3/neighbor/Ospfv3Neighbor.h"
#include "inet/routing/ospfv3/neighbor/Ospfv3NeighborStateDown.h"
namespace inet {
namespace ospfv3 {
// FIXME!!! Should come from a global unique number generator module.
unsigned long Ospfv3Neighbor::ddSequenceNumberInitSeed = 0;
Ospfv3Neighbor::Ospfv3Neigh... | 41.378082 | 185 | 0.63782 | ntanetani |
9399c81a999864698b991e622d333e5335e5ca59 | 906 | cpp | C++ | Duno/Duno-Core/Graphics/renderEngine/GLEntityReflectiveRenderer.cpp | DunoGameEngine/Duno | f6c0fd5371a73ccb5ea1ba78540854b831b75b7f | [
"Apache-2.0"
] | null | null | null | Duno/Duno-Core/Graphics/renderEngine/GLEntityReflectiveRenderer.cpp | DunoGameEngine/Duno | f6c0fd5371a73ccb5ea1ba78540854b831b75b7f | [
"Apache-2.0"
] | null | null | null | Duno/Duno-Core/Graphics/renderEngine/GLEntityReflectiveRenderer.cpp | DunoGameEngine/Duno | f6c0fd5371a73ccb5ea1ba78540854b831b75b7f | [
"Apache-2.0"
] | null | null | null | #include "GLEntityReflectiveRenderer.h"
#include "GLTextureLoader.h"
#include <iostream>
using namespace std;
/* Define all uniform location handles */
#define CUBE_MAP 6
#define CAMERA_POSITION 7
GLEntityReflectiveRenderer::GLEntityReflectiveRenderer(GLTexture* cubeMap):
GLEntityRenderer("entity/reflectiv... | 30.2 | 88 | 0.735099 | DunoGameEngine |
939c55a2b6c312de1bdc90ecd3bb4d66bd403efe | 98 | cpp | C++ | Arrays/test.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | Arrays/test.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | Arrays/test.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
int main() {
} | 8.166667 | 20 | 0.704082 | sans712 |
4d36b3887a70c499e0c5783f4c75ed2fe0b3bd5b | 226 | cpp | C++ | sumofdigits.cpp | deepanshu1422/450Questions | 614a6bcb66f3202a62c375c0c0a63365e1021110 | [
"Apache-2.0"
] | null | null | null | sumofdigits.cpp | deepanshu1422/450Questions | 614a6bcb66f3202a62c375c0c0a63365e1021110 | [
"Apache-2.0"
] | null | null | null | sumofdigits.cpp | deepanshu1422/450Questions | 614a6bcb66f3202a62c375c0c0a63365e1021110 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int sumofdigits(int a)
{
if(a/10==0)
{
return a;
}
int sum=a%10+sumofdigits(a/10);
return sum;
}
int main()
{
int b =sumofdigits(123);
cout<<b;
} | 10.761905 | 35 | 0.553097 | deepanshu1422 |
4d36bae1fed44345c75187bc870290e0a6a85b3e | 1,486 | cpp | C++ | Sid's Levels/Level - 2/Matrix/MedianInRowSortedMatrix.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Levels/Level - 2/Matrix/MedianInRowSortedMatrix.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Levels/Level - 2/Matrix/MedianInRowSortedMatrix.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | // { Driver Code Starts
//Initial template for C++
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function template for C++
class Solution{
public:
//OM GAN GANAPATHAYE NAMO NAMAH
//JAI SHRI RAM
//JAI BAJRANGBALI
//AMME NARAYANA, DEVI NARAYANA, LAKSHMI NARAYANA, ... | 21.536232 | 83 | 0.446164 | Tiger-Team-01 |
4d37043ea5d0e06ef78be33c6c267f27286a6ca8 | 6,383 | cpp | C++ | src/obproxy/prometheus/ob_prometheus_convert.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 74 | 2021-05-31T15:23:49.000Z | 2022-03-12T04:46:39.000Z | src/obproxy/prometheus/ob_prometheus_convert.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 16 | 2021-05-31T15:26:38.000Z | 2022-03-30T06:02:43.000Z | src/obproxy/prometheus/ob_prometheus_convert.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 64 | 2021-05-31T15:25:36.000Z | 2022-02-23T08:43:58.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase Database Proxy(ODP) 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 ... | 35.265193 | 125 | 0.674448 | stutiredboy |
4d385212911a25588c981d9a91d6b2406b043228 | 2,757 | hpp | C++ | gloom/src/scene_graph/util.hpp | Stektpotet/gloom | fcb6e031d573be029dd829d8e4fc0a97feb22687 | [
"MIT"
] | null | null | null | gloom/src/scene_graph/util.hpp | Stektpotet/gloom | fcb6e031d573be029dd829d8e4fc0a97feb22687 | [
"MIT"
] | null | null | null | gloom/src/scene_graph/util.hpp | Stektpotet/gloom | fcb6e031d573be029dd829d8e4fc0a97feb22687 | [
"MIT"
] | null | null | null | #pragma once
#include "../mesh.hpp"
#include "SceneNode.hpp"
// Creates an empty SceneNode instance.
template<typename TNode, typename... Args>
TNode* createSceneNode(Args... ctorArgs) {
return new TNode(std::forward<Args>(ctorArgs)...);
}
// Transfer the mesh to the GPU
template<typename TNode>
void ... | 39.385714 | 109 | 0.657236 | Stektpotet |
4d4076d8d6f4bf2200eaeb83026467c1a9a295ed | 2,518 | cpp | C++ | MSP2007/MSP2007Ppg.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | MSP2007/MSP2007Ppg.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | MSP2007/MSP2007Ppg.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------------------
// COPYRIGHT NOTICE
// ----------------------------------------------------------------------------------------
//
// The Source Code Store LLC
// ACTIVEGANTT SCHEDULER COMPONENT FOR C++ - ActiveGan... | 31.08642 | 92 | 0.542097 | jluzardo1971 |
4d4145b043ef5da2e8c43bed3e9b748aefd458ec | 3,324 | cc | C++ | hackt_docker/hackt/src/Object/ref/reference_set.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/ref/reference_set.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/ref/reference_set.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/ref/reference_set.cc"
$Id: reference_set.cc,v 1.4 2010/04/02 22:18:46 fang Exp $
*/
#include "Object/ref/reference_set.hh"
#include <iostream>
#include <functional>
#include <algorithm>
#include "Object/entry_collection.hh"
#include "Object/traits/instance_traits.hh"
#include "util/iterator_more.h... | 26.592 | 79 | 0.586342 | broken-wheel |
4d44b1b692af90d9d08a1683c0f764dcef412996 | 2,975 | cpp | C++ | Source/Example/example_LuaLibrary.cpp | mf01/luacpp | ff06f2c5062968616d8e50162148f6cd070d124e | [
"MIT"
] | 19 | 2021-08-29T23:16:02.000Z | 2022-03-25T13:16:14.000Z | Source/Example/example_LuaLibrary.cpp | mf01/luacpp | ff06f2c5062968616d8e50162148f6cd070d124e | [
"MIT"
] | 3 | 2021-07-23T19:05:05.000Z | 2022-02-27T05:33:26.000Z | Source/Example/example_LuaLibrary.cpp | mf01/luacpp | ff06f2c5062968616d8e50162148f6cd070d124e | [
"MIT"
] | 8 | 2021-03-29T07:39:04.000Z | 2022-02-24T18:16:42.000Z | /*
MIT License
Copyright (c) 2021 Jordan Vrtanoski
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mod... | 30.050505 | 109 | 0.660504 | mf01 |
4d4a6fde5107b9e9cb6b393324dddcb1d7745fa5 | 963 | cpp | C++ | src/QtAVPlayer/qavsubtitlecodec.cpp | valbok/QAVPlayer | 6138dc7a2df8aef2bf8c40d004b115af538c627c | [
"MIT"
] | null | null | null | src/QtAVPlayer/qavsubtitlecodec.cpp | valbok/QAVPlayer | 6138dc7a2df8aef2bf8c40d004b115af538c627c | [
"MIT"
] | null | null | null | src/QtAVPlayer/qavsubtitlecodec.cpp | valbok/QAVPlayer | 6138dc7a2df8aef2bf8c40d004b115af538c627c | [
"MIT"
] | null | null | null | /*********************************************************
* Copyright (C) 2020, Val Doroshchuk <valbok@gmail.com> *
* *
* This file is part of QtAVPlayer. *
* Free Qt Media Player based on FFmpeg. *
************************... | 25.342105 | 91 | 0.519211 | valbok |
4d4adbd4278c8c0d7d3a851be4f1ff3249f0c1f7 | 521 | cpp | C++ | AtCoder/abc084/abc084_c.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | AtCoder/abc084/abc084_c.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | AtCoder/abc084/abc084_c.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int val[501], X[501], Y[501], Z[501];
int main(void){
int n;
cin >> n;
for(int i = 1; i < n; ++i){
cin >> X[i] >> Y[i] >> Z[i];
}
for(int i = 1; i <= n; ++i){
long t = Y[i] + X[i];
for(int j = i + 1; j < n; ++j){
if(t > Y[j]){
t -= Y[j]... | 16.28125 | 37 | 0.314779 | itsmevanessi |
4d4faa8ae9fef95b76cc139bafe32577e6d9521e | 1,012 | hpp | C++ | example/sim4ana/source/ApplyEnergyResponse.hpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | example/sim4ana/source/ApplyEnergyResponse.hpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | example/sim4ana/source/ApplyEnergyResponse.hpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | /**
@file ApplyEnergyResponse.hpp
@date 2020/08/24
@author
@detail Automatically generated by make_anlpy_project.sh 1.0.0
**/
#ifndef ApplyEnergyResponse_hpp
#define ApplyEnergyResponse_hpp
#include <VANL_Module.hpp>
class ApplyEnergyResponse : public anl::VANL_Module
{
public:
ApplyEnergyRespon... | 23 | 71 | 0.733202 | goroyabu |
4d516fee81e17231ea2fe808adcf9608cadf91d1 | 3,762 | cc | C++ | test/unit/core/container/shared_data_test.cc | willhemsley/biodynamo | c36830de621f8e105bf5eac913b96405b5c9d75c | [
"Apache-2.0"
] | null | null | null | test/unit/core/container/shared_data_test.cc | willhemsley/biodynamo | c36830de621f8e105bf5eac913b96405b5c9d75c | [
"Apache-2.0"
] | null | null | null | test/unit/core/container/shared_data_test.cc | willhemsley/biodynamo | c36830de621f8e105bf5eac913b96405b5c9d75c | [
"Apache-2.0"
] | null | null | null | // -----------------------------------------------------------------------------
//
// Copyright (C) 2021 CERN & Newcastle University for the benefit of the
// BioDynaMo collaboration. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compl... | 38.387755 | 80 | 0.662148 | willhemsley |
4d522a4da74a324d4626bb805ba9fca8290ac038 | 2,748 | cpp | C++ | src/StaticControls.cpp | pskowronski97z/EasyWin-GUI | 858dc01b025d406dca3007339bb63f82c6996146 | [
"MIT"
] | 2 | 2021-03-22T08:17:50.000Z | 2021-03-23T10:44:32.000Z | src/StaticControls.cpp | pskowronski97z/WinGUI | 858dc01b025d406dca3007339bb63f82c6996146 | [
"MIT"
] | null | null | null | src/StaticControls.cpp | pskowronski97z/WinGUI | 858dc01b025d406dca3007339bb63f82c6996146 | [
"MIT"
] | null | null | null | #include <StaticControls.h>
#include <CommCtrl.h>
#include <Window.h>
WinGUI::Label::Label(const Window& parent, std::string name, const int& x, const int& y) : Control(parent, x, y, std::move(name)) {
std::wstring w_name = string_to_wstring(name_);
id_= STATIC_CTRL;
width_ = w_name.size() * 6;
handle_ = Create... | 23.288136 | 146 | 0.699054 | pskowronski97z |
4d5649a874752696ebeb98383b2e45273a8be0d8 | 807 | cpp | C++ | Hashing/Incremental hash/Substring Concatenation.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | 7 | 2019-06-29T08:57:07.000Z | 2021-02-13T06:43:40.000Z | Hashing/Incremental hash/Substring Concatenation.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | null | null | null | Hashing/Incremental hash/Substring Concatenation.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | 3 | 2020-06-17T04:26:26.000Z | 2021-02-12T04:51:40.000Z | vector<int> Solution::findSubstring(string A, const vector<string> &B) {
int l = 0;
int n = B[0].size();
map<string, int> Main;
map<string, int> checker;
for( auto it : B ){
l += it.size();
Main[it]++;
}
vector<int> ans;
for( int i = 0; i < A.size(); i++ ){
checke... | 26.032258 | 72 | 0.386617 | cenation092 |
4d584cd3d4643561c0529a0bbdcf8228a395b398 | 7,707 | cpp | C++ | simxml/xsdgen/QDomNodeModel.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | simxml/xsdgen/QDomNodeModel.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | simxml/xsdgen/QDomNodeModel.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | /*
Copyright (c) 2011, Stanislaw Adaszewski
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 conditio... | 27.525 | 109 | 0.688335 | bobzabcik |
4d5a4b49aae516e4575a364a1d9a0b556a3330ac | 24,032 | cpp | C++ | test/test_server.cpp | CyanicYang/End_to_End_Encryption | a4908d86d3261a9df89d90078623198d7c03c6a8 | [
"MIT"
] | 1 | 2021-03-31T16:47:07.000Z | 2021-03-31T16:47:07.000Z | test/test_server.cpp | CyanicYang/End_to_End_Encryption | a4908d86d3261a9df89d90078623198d7c03c6a8 | [
"MIT"
] | null | null | null | test/test_server.cpp | CyanicYang/End_to_End_Encryption | a4908d86d3261a9df89d90078623198d7c03c6a8 | [
"MIT"
] | null | null | null | #include "communicate.hpp"
int log_init(std::ofstream &log_stream, const std::string log_name, const Level level, const bool* const log_env, const bool on_screen, const bool is_trunc) {
// log_stream must not be opened before getting into this function.
if (log_stream.is_open()) {
return -1;
}
if ... | 33.800281 | 158 | 0.537908 | CyanicYang |
4d5f99250b5504e62f3b76b5cd0c8c3186fa04e8 | 6,042 | cpp | C++ | Source/USharp/Private/ModulePaths.cpp | MiheevN/USharp | 8f0205cd8628b84a66326947d93588a8c8dcbd24 | [
"MIT"
] | 353 | 2018-09-29T07:34:40.000Z | 2022-03-07T17:03:06.000Z | Source/USharp/Private/ModulePaths.cpp | MiheevN/USharp | 8f0205cd8628b84a66326947d93588a8c8dcbd24 | [
"MIT"
] | 66 | 2018-09-29T04:08:06.000Z | 2020-09-30T22:10:56.000Z | Source/USharp/Private/ModulePaths.cpp | MiheevN/USharp | 8f0205cd8628b84a66326947d93588a8c8dcbd24 | [
"MIT"
] | 64 | 2018-09-29T02:12:07.000Z | 2022-02-18T07:41:45.000Z | #include "ModulePaths.h"
#include "USharpPCH.h"
#include "Interfaces/IPluginManager.h"
#include "Modules/ModuleManifest.h"
#include "HAL/PlatformProcess.h"
#include "HAL/FileManager.h"
#include "Misc/App.h"
#include "Misc/Paths.h"
DEFINE_LOG_CATEGORY_STATIC(LogModuleManager, Log, All);
bool FModulePaths::BuiltDirecto... | 33.016393 | 192 | 0.75091 | MiheevN |
4d6281f71e8ce24ab6c75d1b89c61b74bbeb1d95 | 578 | hpp | C++ | src/AST/Expressions/FunctionCallExpression.hpp | CarsonFox/CPSL | 07a949166d9399f273ddf15e239ade6e5ea6e4a5 | [
"MIT"
] | null | null | null | src/AST/Expressions/FunctionCallExpression.hpp | CarsonFox/CPSL | 07a949166d9399f273ddf15e239ade6e5ea6e4a5 | [
"MIT"
] | null | null | null | src/AST/Expressions/FunctionCallExpression.hpp | CarsonFox/CPSL | 07a949166d9399f273ddf15e239ade6e5ea6e4a5 | [
"MIT"
] | null | null | null | #pragma once
#include "ExpressionList.hpp"
struct FunctionCallExpression : Expression {
std::string id;
std::vector<std::shared_ptr<Expression>> args;
FunctionCallExpression(char *, ExpressionList *);
~FunctionCallExpression() override = default;
void print() const override;
bool isConst()... | 24.083333 | 80 | 0.723183 | CarsonFox |
4d644f6346992070b3021e1b3d9ca09e77b4e09b | 5,262 | hpp | C++ | include/lbann/layers/loss/cross_entropy.hpp | andy-yoo/lbann-andy | 237c45c392e7a5548796ac29537ab0a374e7e825 | [
"Apache-2.0"
] | null | null | null | include/lbann/layers/loss/cross_entropy.hpp | andy-yoo/lbann-andy | 237c45c392e7a5548796ac29537ab0a374e7e825 | [
"Apache-2.0"
] | null | null | null | include/lbann/layers/loss/cross_entropy.hpp | andy-yoo/lbann-andy | 237c45c392e7a5548796ac29537ab0a374e7e825 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2016, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... | 35.08 | 87 | 0.640631 | andy-yoo |
4d6cdafaade749c118cd6a6ef84cfd1af3abc49d | 875 | cpp | C++ | SOLVER/src/core/source/elem_src/solid/SolidForce.cpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 8 | 2020-06-05T01:13:20.000Z | 2022-02-24T05:11:50.000Z | SOLVER/src/core/source/elem_src/solid/SolidForce.cpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 24 | 2020-10-21T19:03:38.000Z | 2021-11-17T21:32:02.000Z | SOLVER/src/core/source/elem_src/solid/SolidForce.cpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 5 | 2020-06-21T11:54:22.000Z | 2021-06-23T01:02:39.000Z | //
// SolidForce.cpp
// AxiSEM3D
//
// Created by Kuangdai Leng on 3/5/19.
// Copyright © 2019 Kuangdai Leng. All rights reserved.
//
// force source on solid element
#include "SolidForce.hpp"
#include "SolidElement.hpp"
// constructor
SolidForce::SolidForce(std::unique_ptr<STF> &stf,
con... | 25.735294 | 68 | 0.645714 | nicklinyi |
4d6dd0144c5203b05354fff0a0fc36d19f466ab1 | 5,400 | hpp | C++ | src/context-traits.hpp | YutaroOrikasa/user-thread | 2d82ee257115e67630f5743ceb169441854fac22 | [
"MIT"
] | null | null | null | src/context-traits.hpp | YutaroOrikasa/user-thread | 2d82ee257115e67630f5743ceb169441854fac22 | [
"MIT"
] | 2 | 2017-05-02T07:02:23.000Z | 2017-05-20T09:32:52.000Z | src/context-traits.hpp | YutaroOrikasa/user-thread | 2d82ee257115e67630f5743ceb169441854fac22 | [
"MIT"
] | null | null | null | #ifndef USER_THREAD_CONTEXTTRAITS_HPP
#define USER_THREAD_CONTEXTTRAITS_HPP
#include "mysetjmp.h"
#include "user-thread-debug.hpp"
#include "splitstackapi.h"
#include "stack-address-tools.hpp"
#include "thread-data/thread-data.hpp"
#include "thread-data/splitstack-thread-data.hpp"
#include "call_with_alt_stack_arg3.h"... | 27.272727 | 153 | 0.663333 | YutaroOrikasa |
4d6e580c38cfb906fa4cb8a78141dd1970b0eca3 | 4,254 | cpp | C++ | src/glplayer.cpp | felixqin/gltest | 51f0dab25700a3fdcfba29e61029d6a98c283747 | [
"MIT"
] | null | null | null | src/glplayer.cpp | felixqin/gltest | 51f0dab25700a3fdcfba29e61029d6a98c283747 | [
"MIT"
] | null | null | null | src/glplayer.cpp | felixqin/gltest | 51f0dab25700a3fdcfba29e61029d6a98c283747 | [
"MIT"
] | null | null | null | #include <QPainter>
#include <QOpenGLShader>
#include <QTimerEvent>
#include "glplayer.h"
#define LOGI printf
#define LOGE printf
CGLPlayer::CGLPlayer(QWidget* parent, Qt::WindowFlags f)
: QOpenGLWidget(parent, f)
, mGLInitialized(false)
, mProgram(NULL)
, mVShader(NULL)
, mFShader(NULL)
, m... | 26.754717 | 98 | 0.602257 | felixqin |
4d703856c91c7aa738c542f8079b22d00ed7ef83 | 1,337 | hpp | C++ | include/Entity/States.hpp | cristianglezm/AntFarm | df7551621ad6eda6dae43a2ede56222500be1ae1 | [
"Apache-2.0"
] | null | null | null | include/Entity/States.hpp | cristianglezm/AntFarm | df7551621ad6eda6dae43a2ede56222500be1ae1 | [
"Apache-2.0"
] | 1 | 2016-03-13T10:55:21.000Z | 2016-03-13T10:55:21.000Z | include/Entity/States.hpp | cristianglezm/AntFarm | df7551621ad6eda6dae43a2ede56222500be1ae1 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////
// Copyright 2014 Cristian Glez <Cristian.glez.m@gmail.com>
//
// 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... | 33.425 | 75 | 0.635004 | cristianglezm |
4d70c50978d1d23df30eb43b1757f954637c226b | 2,002 | hpp | C++ | include/mos/gfx/model.hpp | morganbengtsson/mo | c719ff6b35478b068988901d0bf7253cb672e87a | [
"MIT"
] | 230 | 2016-02-15T20:46:01.000Z | 2022-03-07T11:56:12.000Z | include/mos/gfx/model.hpp | morganbengtsson/mo | c719ff6b35478b068988901d0bf7253cb672e87a | [
"MIT"
] | 79 | 2016-02-07T11:37:04.000Z | 2021-09-29T09:14:27.000Z | include/mos/gfx/model.hpp | morganbengtsson/mo | c719ff6b35478b068988901d0bf7253cb672e87a | [
"MIT"
] | 14 | 2018-05-16T13:10:22.000Z | 2021-09-28T10:23:31.000Z | #pragma once
#include <memory>
#include <optional>
#include <json.hpp>
#include <mos/gfx/assets.hpp>
#include <mos/gfx/material.hpp>
#include <mos/gfx/mesh.hpp>
#include <mos/gfx/models.hpp>
#include <mos/gfx/texture_2d.hpp>
namespace mos::gfx {
class Assets;
class Material;
namespace gl {
class Renderer;
}
/** ... | 23.011494 | 71 | 0.661339 | morganbengtsson |
4d74b1aa40359491cb37252c1186ba7298149e78 | 1,170 | cpp | C++ | server/sockchat/threadctx.cpp | sockchat/server-historical | 34befc2f7c2e310a9b58071633c2da00f5e7e308 | [
"Apache-2.0"
] | 1 | 2019-02-10T17:46:27.000Z | 2019-02-10T17:46:27.000Z | server/sockchat/threadctx.cpp | sockchat/server-historical | 34befc2f7c2e310a9b58071633c2da00f5e7e308 | [
"Apache-2.0"
] | null | null | null | server/sockchat/threadctx.cpp | sockchat/server-historical | 34befc2f7c2e310a9b58071633c2da00f5e7e308 | [
"Apache-2.0"
] | null | null | null | #include "cthread.h"
ThreadContext::Connection::Connection(sc::Socket *sock) {
this->sock = sock;
}
ThreadContext::ThreadContext(sc::Socket *sock) {
this->pendingConns.push_back(Connection(sock));
}
void ThreadContext::Finish() {
for(auto i = this->conns.begin(); i != this->conns.end(); )
i = Clo... | 26.590909 | 118 | 0.648718 | sockchat |
4d74e17e57df21d6e4e746c2c207ea6ccdc0245b | 191 | hpp | C++ | pypedream/array_col_reader.hpp | garywu/pipedream | d89a4031d5ee78c05c6845341607a59528f0bd75 | [
"BSD-3-Clause"
] | 8 | 2018-02-21T04:13:25.000Z | 2020-04-24T20:05:47.000Z | pypedream/array_col_reader.hpp | garywu/pipedream | d89a4031d5ee78c05c6845341607a59528f0bd75 | [
"BSD-3-Clause"
] | 1 | 2019-05-13T13:14:32.000Z | 2019-05-13T13:14:32.000Z | pypedream/array_col_reader.hpp | garywu/pypedream | d89a4031d5ee78c05c6845341607a59528f0bd75 | [
"BSD-3-Clause"
] | null | null | null | #ifndef ARRAY_COL_READER_HPP
#define ARRAY_COL_READER_HPP
#include <Python.h>
#include "parser_defs.hpp"
extern PyTypeObject ArrayColReaderType;
#endif // #ifndef ARRAY_COL_READER_HPP
| 13.642857 | 39 | 0.806283 | garywu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.