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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40a38fd9b67fbcb9b21519ae4fa5f0b301d1a0df | 12,173 | cc | C++ | libs/daemon/shell.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/daemon/shell.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/daemon/shell.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | //==========================================================================
// ObTools::Daemon: shell.cc
//
// Implementation of daemon shell
//
// Copyright (c) 2009 Paul Clark. All rights reserved
// This code comes with NO WARRANTY and is subject to licence agreement
//=============================================... | 25.955224 | 79 | 0.563707 | sandtreader |
40a721506ac9c6339abc64023a3026b1dd0e4d18 | 24,194 | cpp | C++ | trunk/src/app/srs_app_forward_rtsp.cpp | breezeewu/media-server | b7f6e7c24a1c849180ba31088250c0174b1112e0 | [
"MIT"
] | null | null | null | trunk/src/app/srs_app_forward_rtsp.cpp | breezeewu/media-server | b7f6e7c24a1c849180ba31088250c0174b1112e0 | [
"MIT"
] | null | null | null | trunk/src/app/srs_app_forward_rtsp.cpp | breezeewu/media-server | b7f6e7c24a1c849180ba31088250c0174b1112e0 | [
"MIT"
] | null | null | null | /****************************************************************************************************************
* filename srs_app_forward_rtsp.cpp
* describe Sunvalley forward rtsp classs define
* author Created by dawson on 2019/04/25
* Copyright ©2007 - 2029 Sunvally. All Rights Reserved.
***... | 36.381955 | 245 | 0.607175 | breezeewu |
40a7a7c216a19ecf469391fdd26677c687cda6e5 | 5,457 | cpp | C++ | Bomberman/GUI.cpp | PratikMandlecha/Bomberman | e62d99880f9856aab2aea393099e3386cedcb3ee | [
"MIT"
] | 26 | 2016-05-18T09:39:22.000Z | 2022-03-25T10:21:26.000Z | Bomberman/GUI.cpp | PratikMandlecha/Bomberman | e62d99880f9856aab2aea393099e3386cedcb3ee | [
"MIT"
] | 4 | 2016-05-22T11:55:22.000Z | 2016-06-09T08:22:36.000Z | Bomberman/GUI.cpp | PratikMandlecha/Bomberman | e62d99880f9856aab2aea393099e3386cedcb3ee | [
"MIT"
] | 21 | 2016-07-20T16:13:01.000Z | 2021-11-28T11:08:24.000Z | #include "GUI.h"
void GUI::draw(sf::RenderTarget & target, sf::RenderStates states) const
{
rect->setFillColor(sf::Color(255, 255, 255, 155));
rect->setSize(sf::Vector2f(m_screenWidth, m_screenHeight));
if (m_endOfGameMenuView)
{
target.draw(*m_frame, states);
target.draw(*rect, states);
target.draw(*m_re... | 29.983516 | 222 | 0.708814 | PratikMandlecha |
40aa23d314b53734894c6c1d441a15e4f1712af5 | 1,290 | hpp | C++ | libs/core/include/fcppt/container/find_opt_iterator.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/container/find_opt_iterator.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/container/find_opt_iterator.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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)
#ifndef FCPPT_CONTAINER_FIND_OPT_ITERATOR_HPP_INCLUDED
#define FCPPT_CONTAINER_FIND_OPT_ITERATOR_H... | 16.973684 | 78 | 0.727132 | pmiddend |
40ac7c0d929478f10e0c34c5f3f4ae75897ec363 | 2,894 | cpp | C++ | platformio/ethernet_client/src/main.cpp | amdxyz/aiolib | 90d6541b0945680d61d070109f8bcc468902af38 | [
"MIT"
] | 1 | 2020-05-24T10:33:14.000Z | 2020-05-24T10:33:14.000Z | platformio/ethernet_client/src/main.cpp | amdxyz/aiolib | 90d6541b0945680d61d070109f8bcc468902af38 | [
"MIT"
] | 1 | 2019-02-20T19:33:08.000Z | 2019-02-20T19:36:19.000Z | platformio/ethernet_client/src/main.cpp | amdx/aiolib | 90d6541b0945680d61d070109f8bcc468902af38 | [
"MIT"
] | null | null | null | /**
* AMDX AIO arduino library
*
* Copyright (C) 2019-2020 Archimedes Exhibitions GmbH
* All rights reserved.
*
* MIT License
*
* 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
* wi... | 28.94 | 93 | 0.651348 | amdxyz |
40b2611eae038d213c5ccfa342d44e5e7b9e2868 | 593 | cpp | C++ | MoravaEngine/src/H2M/Core/HashH2M.cpp | imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | b8e6ee3c3c890e9b8cf5de7bcb564b32f6767b6b | [
"Apache-2.0"
] | null | null | null | MoravaEngine/src/H2M/Core/HashH2M.cpp | imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | b8e6ee3c3c890e9b8cf5de7bcb564b32f6767b6b | [
"Apache-2.0"
] | null | null | null | MoravaEngine/src/H2M/Core/HashH2M.cpp | imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | b8e6ee3c3c890e9b8cf5de7bcb564b32f6767b6b | [
"Apache-2.0"
] | 1 | 2022-01-05T03:51:02.000Z | 2022-01-05T03:51:02.000Z | /**
* @package H2M (Hazel to Morava)
* @author Yan Chernikov (TheCherno)
* @licence Apache License 2.0
*/
#include "HashH2M.h"
namespace H2M
{
uint32_t HashH2M::GenerateFNVHash(const char* str)
{
constexpr uint32_t FNV_PRIME = 16777619u;
constexpr uint32_t OFFSET_BASIS = 2166136261u;
const size_t leng... | 17.441176 | 61 | 0.671164 | imgui-works |
40b523f52870cab0904b80949e7e892cc5c49cde | 395 | cpp | C++ | test/chapter_09_data_serialization/problem_077_printing_a_list_of_movies_to_a_pdf.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | test/chapter_09_data_serialization/problem_077_printing_a_list_of_movies_to_a_pdf.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | test/chapter_09_data_serialization/problem_077_printing_a_list_of_movies_to_a_pdf.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | #include "chapter_09_data_serialization/problem_077_printing_a_list_of_movies_to_a_pdf.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <sstream> // ostringstream
TEST(problem_77_main, DISABLED_output) {
std::ostringstream oss{};
problem_77_main(oss);
EXPECT_THAT(oss.str(), ::testing::Cont... | 24.6875 | 89 | 0.726582 | rturrado |
40b5ce5cc77231d5ef5716675374b11c6290e415 | 5,517 | hpp | C++ | renderboi/core/shader/shader_program.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | renderboi/core/shader/shader_program.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | renderboi/core/shader/shader_program.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | #ifndef RENDERBOI__CORE__SHADER__SHADER_PROGRAM_HPP
#define RENDERBOI__CORE__SHADER__SHADER_PROGRAM_HPP
#include <glad/gl.h>
#include <glm/glm.hpp>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <unordered_map>
#include "shader_feature.hpp"
#include "../material.hpp"
namespace ... | 37.277027 | 109 | 0.684249 | deqyra |
8ad653610f9deded27ac62e1d95fcf2b6797912c | 2,290 | cpp | C++ | src/Group.cpp | gicmo/nix | 17a5b90e6c12a22e921c181b79eb2a3db1bf61af | [
"BSD-3-Clause"
] | 53 | 2015-02-10T01:04:34.000Z | 2021-04-24T14:26:04.000Z | src/Group.cpp | tapaswenipathak/nix | 4565c2d7b363f27cac88932b35c085ee8fe975a1 | [
"BSD-3-Clause"
] | 262 | 2015-01-09T13:24:21.000Z | 2021-07-02T13:45:31.000Z | src/Group.cpp | gicmo/nix | 17a5b90e6c12a22e921c181b79eb2a3db1bf61af | [
"BSD-3-Clause"
] | 34 | 2015-03-27T16:41:14.000Z | 2020-03-27T06:47:59.000Z | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/Group.hpp>
#include <nix/util... | 27.590361 | 93 | 0.625328 | gicmo |
8ad874790cc7b81859edcf2349de3491b20944b5 | 1,749 | hpp | C++ | test/unit/search/helper.hpp | remyschwab/seqan3 | f10e557b61428ff7faac8b10f18b9087d1ff2663 | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | test/unit/search/helper.hpp | remyschwab/seqan3 | f10e557b61428ff7faac8b10f18b9087d1ff2663 | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | test/unit/search/helper.hpp | remyschwab/seqan3 | f10e557b61428ff7faac8b10f18b9087d1ff2663 | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2021, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... | 38.866667 | 104 | 0.6255 | remyschwab |
8ae376ff7484994fb0d118556b27921a69aad370 | 535 | cpp | C++ | demo/main.cpp | SSBMTonberry/emusound | 3f07b3af1158277cacaf63d78c47f47aeb18723d | [
"BSD-2-Clause"
] | 4 | 2020-07-22T07:26:18.000Z | 2020-09-01T22:10:21.000Z | demo/main.cpp | SSBMTonberry/emusound | 3f07b3af1158277cacaf63d78c47f47aeb18723d | [
"BSD-2-Clause"
] | 1 | 2020-08-21T06:43:04.000Z | 2020-08-30T12:28:08.000Z | demo/main.cpp | SSBMTonberry/emusound | 3f07b3af1158277cacaf63d78c47f47aeb18723d | [
"BSD-2-Clause"
] | null | null | null | //
// Created by robin on 19.01.2020.
//
#include "ProgramManager.h"
int emuprogramExample(int argc, char** argv)
{
std::string title = "emusound demo";
sf::ContextSettings settings;
settings.antialiasingLevel = 0;
esnddemo::ProgramManager program(title, sf::Vector2i(400 * 4, 240 * 4), sf::Vector2i(4... | 22.291667 | 131 | 0.66729 | SSBMTonberry |
8ae52f3cde59794915f589b495859af442b3ea62 | 9,126 | cpp | C++ | Managment/src/slam_client.cpp | cxdcxd/sepanta3 | a65a3415f046631ac4d6b91f9342966b0c030226 | [
"MIT"
] | 1 | 2018-09-11T18:40:25.000Z | 2018-09-11T18:40:25.000Z | ROS/Managment/src/slam_client.cpp | cxdcxd/NAVbot | 8068e7ca596708f1fbfc63b1f6f944b85dee0953 | [
"MIT"
] | null | null | null | ROS/Managment/src/slam_client.cpp | cxdcxd/NAVbot | 8068e7ca596708f1fbfc63b1f6f944b85dee0953 | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include <move_base_msgs/MoveBaseAction.h>
#include <actionlib/client/simple_action_client.h>
#include <tf/transform_broadcaster.h>
#include <stdio.h>
#include <boost/thread.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <actionlib/client/simple_action_client... | 23.952756 | 133 | 0.636862 | cxdcxd |
8ae63d490cda9c5c36b938df14957f23e053c408 | 99,673 | cpp | C++ | compiler/src/cpp_synth.cpp | mdegirolami/stay | b47676e5340c2bbd93fe97d52a12a895a3492b22 | [
"BSD-3-Clause"
] | null | null | null | compiler/src/cpp_synth.cpp | mdegirolami/stay | b47676e5340c2bbd93fe97d52a12a895a3492b22 | [
"BSD-3-Clause"
] | null | null | null | compiler/src/cpp_synth.cpp | mdegirolami/stay | b47676e5340c2bbd93fe97d52a12a895a3492b22 | [
"BSD-3-Clause"
] | null | null | null | #include <assert.h>
#include <string.h>
#include <stdio.h>
#include <vector>
#include <cinttypes>
#include "cpp_synth.h"
#include "FileName.h"
#include "helpers.h"
#include "builtin_functions.h"
namespace SingNames {
static const int KForcedPriority = 100; // i.e. requires no protection and never overrides order.... | 31.32401 | 149 | 0.558466 | mdegirolami |
8ae721269e40b7d5ffeeaed58bf0df78f43da481 | 1,365 | cpp | C++ | src/endgame.cpp | joestilin/Trading-Game | d795d375d4d9063703b7b4ca0a6ca420bd4a9c06 | [
"MIT"
] | 1 | 2021-11-19T02:56:04.000Z | 2021-11-19T02:56:04.000Z | src/endgame.cpp | joestilin/Trading-Game | d795d375d4d9063703b7b4ca0a6ca420bd4a9c06 | [
"MIT"
] | null | null | null | src/endgame.cpp | joestilin/Trading-Game | d795d375d4d9063703b7b4ca0a6ca420bd4a9c06 | [
"MIT"
] | null | null | null | #include "endgame.h"
EndGame::EndGame() { }
void EndGame::Run(State &state, Controller &controller, Renderer &renderer,
TradeLog &tradelog, std::size_t &target_frame_duration){
// timing variables
Uint32 title_timestamp = SDL_GetTicks();
Uint32 start = SDL_GetTicks();
Uint32 frame_st... | 27.3 | 76 | 0.625641 | joestilin |
8aec6d4b0dbb0d87b0e22e71cd47b612af21bd4c | 3,803 | cpp | C++ | test/testMat.cpp | anazli/raymann | 425c908f275309da4dc1f77fe6ea0a27ec9e30f8 | [
"BSD-2-Clause"
] | null | null | null | test/testMat.cpp | anazli/raymann | 425c908f275309da4dc1f77fe6ea0a27ec9e30f8 | [
"BSD-2-Clause"
] | null | null | null | test/testMat.cpp | anazli/raymann | 425c908f275309da4dc1f77fe6ea0a27ec9e30f8 | [
"BSD-2-Clause"
] | null | null | null | #include "geometry/sphere.h"
#include "gtest/gtest.h"
#include "tools/tools.h"
using namespace testing;
class TMat : public Test {
public:
Sphere *s;
PointLight light;
};
TEST_F(TMat, createsDefaultLight) {
ASSERT_TRUE(light.position() == Point3f());
ASSERT_TRUE(light.intensity() == Vec3f());
}
TEST_F(TMat... | 29.944882 | 75 | 0.621615 | anazli |
8af1b5bd6347590cd332381fda6ab6b0d40f2900 | 1,507 | cpp | C++ | COM Interfaces/IDispatch.cpp | ntclark/PDFium-Control | 4d1f41a7a48205ea26fb46dac59fec16c53df2ef | [
"BSD-3-Clause"
] | 2 | 2019-02-21T06:25:03.000Z | 2019-06-23T04:49:14.000Z | COM Interfaces/IDispatch.cpp | ntclark/PDFium-Control | 4d1f41a7a48205ea26fb46dac59fec16c53df2ef | [
"BSD-3-Clause"
] | 1 | 2020-08-29T03:02:46.000Z | 2020-08-29T03:02:46.000Z | COM Interfaces/IDispatch.cpp | ntclark/PDFium-Control | 4d1f41a7a48205ea26fb46dac59fec16c53df2ef | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017, 2018, 2019 InnoVisioNate Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "PDFiumControl.h"
// IDispatch
STDMETHODIMP PDFiumControl::GetTypeInfoCount(UINT * pctinfo) {
*pctinfo = 1;
ret... | 30.755102 | 138 | 0.629064 | ntclark |
8af345c62166da543e44498f6c87fae58444f925 | 72 | cpp | C++ | src/native/WeChatHelper/WeChatHelper27278/WeChatHelper27278.cpp | xundididi/weicai-scraper | e0e0931f769814e04e8e3f8d7c670675f420b980 | [
"MIT"
] | 71 | 2019-11-30T08:37:15.000Z | 2022-02-09T02:33:08.000Z | src/native/WeChatHelper/WeChatHelper27278/WeChatHelper27278.cpp | adams549659584/weicai-scraper | e0e0931f769814e04e8e3f8d7c670675f420b980 | [
"MIT"
] | 9 | 2020-03-04T08:18:46.000Z | 2021-05-10T22:38:05.000Z | src/native/WeChatHelper/WeChatHelper27278/WeChatHelper27278.cpp | adams549659584/weicai-scraper | e0e0931f769814e04e8e3f8d7c670675f420b980 | [
"MIT"
] | 37 | 2019-12-12T11:22:30.000Z | 2021-11-10T14:42:15.000Z | // WeChatHelper27278.cpp : 定义 DLL 应用程序的导出函数。
//
#include "stdafx.h"
| 10.285714 | 45 | 0.666667 | xundididi |
8af8630a3bf0fa2e294f240b467fec98c75f9582 | 628 | cpp | C++ | Readme_Engine/PanelConsole.cpp | dafral/Readme_Engine | b815e1a29bfdf5e1acc9ff133d406ac9f12085d4 | [
"MIT"
] | null | null | null | Readme_Engine/PanelConsole.cpp | dafral/Readme_Engine | b815e1a29bfdf5e1acc9ff133d406ac9f12085d4 | [
"MIT"
] | null | null | null | Readme_Engine/PanelConsole.cpp | dafral/Readme_Engine | b815e1a29bfdf5e1acc9ff133d406ac9f12085d4 | [
"MIT"
] | null | null | null | #include "PanelConsole.h"
#include "Application.h"
PanelConsole::PanelConsole(bool active = true) : Panel(active)
{}
PanelConsole::~PanelConsole()
{}
void PanelConsole::Draw()
{
ImGui::SetNextWindowPos(ImVec2(x, y));
ImGui::SetNextWindowSize(ImVec2(w, h));
ImGui::Begin("Console", &active);
ImGui::Text(App->te... | 19.625 | 62 | 0.654459 | dafral |
8af8ce245411708801abe5cde44f4273199529df | 3,738 | cpp | C++ | Samples/UWP/D3D12PipelineStateCache/src/MemoryMappedFile.cpp | mvisic/DirectX-Graphics-Samples | 5055b4f062bbc2e5f746cca377f5760c394bc2d6 | [
"MIT"
] | 2 | 2020-09-24T09:31:52.000Z | 2021-01-04T08:10:02.000Z | Samples/UWP/D3D12PipelineStateCache/src/MemoryMappedFile.cpp | mvisic/DirectX-Graphics-Samples | 5055b4f062bbc2e5f746cca377f5760c394bc2d6 | [
"MIT"
] | null | null | null | Samples/UWP/D3D12PipelineStateCache/src/MemoryMappedFile.cpp | mvisic/DirectX-Graphics-Samples | 5055b4f062bbc2e5f746cca377f5760c394bc2d6 | [
"MIT"
] | 2 | 2020-09-24T09:31:56.000Z | 2022-01-14T01:03:06.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 24.116129 | 119 | 0.644195 | mvisic |
8afcb7a84d82e8b57abbb6f1696651e331212a3e | 1,354 | cc | C++ | src/Code.cc | GuessEver/grun-core | 4250e00393251ee3a07124a9945cf1835f96922b | [
"MIT"
] | 2 | 2017-05-06T10:02:13.000Z | 2019-12-09T12:58:01.000Z | src/Code.cc | GuessEver/grun-core | 4250e00393251ee3a07124a9945cf1835f96922b | [
"MIT"
] | null | null | null | src/Code.cc | GuessEver/grun-core | 4250e00393251ee3a07124a9945cf1835f96922b | [
"MIT"
] | 1 | 2018-10-09T11:17:57.000Z | 2018-10-09T11:17:57.000Z | //
// Created by guessever on 5/3/17.
//
#include <string.h>
#include "Code.h"
#include "Grun.h"
/**
* get extension from filename
* @param filename
* @return extension
*/
const char *getExtension(const char *filename) {
long len = strlen(filename) - 1;
for (long i = 0; filename[i]; i++) {
if (fil... | 24.178571 | 82 | 0.526588 | GuessEver |
c10007ec3dce74631d45a270634358bcd3f2dc29 | 665 | cpp | C++ | Week-3/Day-16-checkValidString.cpp | utkarshavardhana/30-day-leetcoding-challenge | a47b14f74f28961a032d1f00ce710ea3dcb0d910 | [
"MIT"
] | 2 | 2020-05-02T04:21:56.000Z | 2020-05-14T04:19:47.000Z | Week-3/Day-16-checkValidString.cpp | utkarshavardhana/30-day-leetcoding-challenge | a47b14f74f28961a032d1f00ce710ea3dcb0d910 | [
"MIT"
] | null | null | null | Week-3/Day-16-checkValidString.cpp | utkarshavardhana/30-day-leetcoding-challenge | a47b14f74f28961a032d1f00ce710ea3dcb0d910 | [
"MIT"
] | null | null | null | class Solution {
public:
bool checkValidString(string s) {
stack<int> st, st1;
int i(0);
for(const auto &c: s) {
if(c == '(') st.push(i);
else if(c == '*') st1.push(i);
else {
if(st.empty() && st1.empty()) return false;
... | 25.576923 | 74 | 0.350376 | utkarshavardhana |
c1038a684e9e79e241ee1aaac41bcd566f98a22f | 314 | cpp | C++ | usaco/milkpails.cpp | datpq/competitive-programming | ed5733cc55fa4167c4a2e828894b044ea600dcac | [
"MIT"
] | 1 | 2022-02-24T21:35:18.000Z | 2022-02-24T21:35:18.000Z | usaco/milkpails.cpp | datpq/competitive-programming | ed5733cc55fa4167c4a2e828894b044ea600dcac | [
"MIT"
] | null | null | null | usaco/milkpails.cpp | datpq/competitive-programming | ed5733cc55fa4167c4a2e828894b044ea600dcac | [
"MIT"
] | 1 | 2022-02-12T14:40:21.000Z | 2022-02-12T14:40:21.000Z | #include <fstream>
using namespace std;
int main() {
ifstream ifs("pails.in");
ofstream ofs("pails.out");
int x, y, m; ifs >> x >> y >> m;
int ans = m;
for (int i = 0; i <= (m / x); i++) {
int remainder = m - (i * x);
ans = min(ans, remainder % y);
if (ans == 0) break;
}
ofs << (m - ans) << endl;
} | 19.625 | 37 | 0.515924 | datpq |
c10505d2cd710a8e041e77fb1120b415f6102343 | 1,674 | hpp | C++ | IgzModelConverterGUI/3rd_party/PreCore/datas/Matrix44.hpp | AdventureT/IgzModelConverter | 7b213d0dd32f04bc01524587a4fa357d204e1c04 | [
"MIT"
] | 9 | 2019-10-11T18:12:15.000Z | 2022-03-26T23:57:05.000Z | IgzModelConverterGUI/3rd_party/PreCore/datas/Matrix44.hpp | AdventureT/IgzModelConverter | 7b213d0dd32f04bc01524587a4fa357d204e1c04 | [
"MIT"
] | 2 | 2021-07-29T11:29:30.000Z | 2021-12-12T20:40:08.000Z | IgzModelConverterGUI/3rd_party/PreCore/datas/Matrix44.hpp | AdventureT/IgzModelConverter | 7b213d0dd32f04bc01524587a4fa357d204e1c04 | [
"MIT"
] | 1 | 2020-10-01T23:00:28.000Z | 2020-10-01T23:00:28.000Z | /* esMatrix44 class is a simple affine matrix 4x4
more info in README for PreCore Project
Copyright 2018-2019 Lukas Cone
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 o... | 38.045455 | 80 | 0.676225 | AdventureT |
c10bc8063d8b22b7096bbed7bbb9aff6dc1b138d | 54,855 | cpp | C++ | tf2_src/engine/vengineserver_impl.cpp | IamIndeedGamingAsHardAsICan03489/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | tf2_src/engine/vengineserver_impl.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | null | null | null | tf2_src/engine/vengineserver_impl.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $NoKeywords: $
//===========================================================================//
#include "server_pch.h"
#include "tier0/valve_minmax_off.h"
#include <algorithm>
#include "tier0/valve_min... | 26.071768 | 159 | 0.652338 | IamIndeedGamingAsHardAsICan03489 |
c10c7a43c480235d208526c1abf035cec9f8a363 | 62 | cpp | C++ | source/lib.cpp | vsdmars/sing | 6c84c4c92c446b119291d205a50df450ae994326 | [
"Unlicense"
] | null | null | null | source/lib.cpp | vsdmars/sing | 6c84c4c92c446b119291d205a50df450ae994326 | [
"Unlicense"
] | null | null | null | source/lib.cpp | vsdmars/sing | 6c84c4c92c446b119291d205a50df450ae994326 | [
"Unlicense"
] | null | null | null | #include "lib.hpp"
library::library()
: name("sing")
{
}
| 8.857143 | 18 | 0.564516 | vsdmars |
c10d66994ef114033e8fe779172cf9ddc10c4bdc | 566 | hh | C++ | src/proof-fwd.hh | ciaranm/certified-constraint-solver | 986b0149341474f911977f3093b1224ada90f605 | [
"MIT"
] | null | null | null | src/proof-fwd.hh | ciaranm/certified-constraint-solver | 986b0149341474f911977f3093b1224ada90f605 | [
"MIT"
] | null | null | null | src/proof-fwd.hh | ciaranm/certified-constraint-solver | 986b0149341474f911977f3093b1224ada90f605 | [
"MIT"
] | 1 | 2019-08-21T03:29:11.000Z | 2019-08-21T03:29:11.000Z | /* vim: set sw=4 sts=4 et foldmethod=syntax : */
#ifndef CERTIFIED_CONSTRAINT_SOLVER_GUARD_SRC_PROOF_FWD_HH
#define CERTIFIED_CONSTRAINT_SOLVER_GUARD_SRC_PROOF_FWD_HH 1
#include "strong_typedef.hpp"
#include <string>
struct Proof;
using UnderlyingVariableID = jss::strong_typedef<struct UnderlyingVariableIDTag, std:... | 29.789474 | 93 | 0.803887 | ciaranm |
c10f3febab8b3be2d570fec9be19669791f9ceb8 | 7,311 | cpp | C++ | tests/Unit/IO/Observers/Test_ReductionObserver.cpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | tests/Unit/IO/Observers/Test_ReductionObserver.cpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | tests/Unit/IO/Observers/Test_ReductionObserver.cpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "tests/Unit/TestingFramework.hpp"
#include <cstddef>
#include <functional>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>
#include "DataStructures/Matrix.hpp"
#include "Domain/ElementId.hpp"... | 42.754386 | 79 | 0.669265 | marissawalker |
c113ea03e9db5a31e4a47dc40a69e4463857cd95 | 2,038 | cpp | C++ | Engine/src/Platform/RayTracer/Samplers/MultiJittered.cpp | jeroennelis/Engine | 43ed6c76d1eeeeddd7fd2b3b38d17ed72d312f1f | [
"Apache-2.0"
] | null | null | null | Engine/src/Platform/RayTracer/Samplers/MultiJittered.cpp | jeroennelis/Engine | 43ed6c76d1eeeeddd7fd2b3b38d17ed72d312f1f | [
"Apache-2.0"
] | null | null | null | Engine/src/Platform/RayTracer/Samplers/MultiJittered.cpp | jeroennelis/Engine | 43ed6c76d1eeeeddd7fd2b3b38d17ed72d312f1f | [
"Apache-2.0"
] | null | null | null | #include "enpch.h"
#include "MultiJittered.h"
#include "Engine/Maths.h"
namespace Engine {
MultiJittered::MultiJittered()
:Sampler()
{
generate_samples();
}
MultiJittered::MultiJittered(const int numSamples)
: Sampler(numSamples)
{
generate_samples();
}
MultiJittered::MultiJittered(const int numSampl... | 24.261905 | 105 | 0.594701 | jeroennelis |
c114d89d3f36bf5664fa842d7f1bf9c3ddded22e | 1,016 | cpp | C++ | Backtracking/letter_phone.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | Backtracking/letter_phone.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | Backtracking/letter_phone.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
map<char, vector<char>> m;
string current;
void util(string &A, int i, vector<string> &ans) {
if(i >= A.size()) {
ans.push_back(current);
return;
}
for(char ch: m[A[i]]) {
current.push_back(ch);
util(A, i + 1, ans);
current.pop_back();
}
}
vector<string> l... | 20.734694 | 51 | 0.540354 | aneesh001 |
c11682a871c77334bfadcc50e6e2df9c4b193e48 | 6,416 | cpp | C++ | plugins/QGames/Tga.cpp | joeriedel/Tread3.0A2 | 337c4aa74d554e21b50d6bd4406ce0f67aa39144 | [
"MIT"
] | 1 | 2020-07-19T10:19:18.000Z | 2020-07-19T10:19:18.000Z | plugins/QGames/Tga.cpp | joeriedel/Tread3.0A2 | 337c4aa74d554e21b50d6bd4406ce0f67aa39144 | [
"MIT"
] | null | null | null | plugins/QGames/Tga.cpp | joeriedel/Tread3.0A2 | 337c4aa74d554e21b50d6bd4406ce0f67aa39144 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Tga.cpp
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2008, Joe Riedel
// All rights reserved.
//
// Redistribution and use in source and binary forms,
// with or without modification, ... | 30.552381 | 110 | 0.618142 | joeriedel |
c117aaceae41803129778da51a659d80452bd47c | 3,871 | cpp | C++ | cnes/src/otb/Noise.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | null | null | null | cnes/src/otb/Noise.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | null | null | null | cnes/src/otb/Noise.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 1 | 2019-11-02T11:01:58.000Z | 2019-11-02T11:01:58.000Z | //----------------------------------------------------------------------------
//
// "Copyright Centre National d'Etudes Spatiales"
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
//----------------------------------------------------------------------------
// $Id$
#inc... | 24.043478 | 122 | 0.624128 | dardok |
c12061ea6d495f6cbb54a586ee13c5faac0dcc83 | 2,550 | hpp | C++ | source/xyo/xyo-managedmemory-tsingletonprocess.hpp | g-stefan/xyo | e203cb699d6bba46eae6c8157f27ea29ab7506f1 | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo/xyo-managedmemory-tsingletonprocess.hpp | g-stefan/xyo | e203cb699d6bba46eae6c8157f27ea29ab7506f1 | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo/xyo-managedmemory-tsingletonprocess.hpp | g-stefan/xyo | e203cb699d6bba46eae6c8157f27ea29ab7506f1 | [
"MIT",
"Unlicense"
] | null | null | null | //
// XYO
//
// Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#ifndef XYO_MANAGEDMEMORY_TSINGLETONPROCESS_HPP
#define XYO_MANAGEDMEMORY_TSINGLETONPROCESS_HPP
#ifndef XYO_MANAGEDM... | 24.056604 | 79 | 0.663137 | g-stefan |
c1233652cc2ab2625d61c8c01b8fe368ad956c66 | 1,152 | cpp | C++ | Plugins/org.blueberry.core.runtime/src/internal/berryRegistryContributor.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Plugins/org.blueberry.core.runtime/src/internal/berryRegistryContributor.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Plugins/org.blueberry.core.runtime/src/internal/berryRegistryContributor.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.
=================... | 21.333333 | 92 | 0.633681 | zhaomengxiao |
c12754fe654a4374f75083a3e645efd115126352 | 6,148 | cc | C++ | src/app.cc | PaoJiao/slide | fccdcac94e951de113b8f0116084c41974e956da | [
"MIT"
] | null | null | null | src/app.cc | PaoJiao/slide | fccdcac94e951de113b8f0116084c41974e956da | [
"MIT"
] | null | null | null | src/app.cc | PaoJiao/slide | fccdcac94e951de113b8f0116084c41974e956da | [
"MIT"
] | null | null | null | #include "app.h"
#include "debug_print.h"
namespace slide {
App::App(void) {
wview_.title = "Slide";
wview_.url = html_data_uri;
wview_.width = 480;
wview_.height = 320;
wview_.resizable = 1;
wview_.userdata = this;
// The callback for when a webview event is invoked is the handleCommand
// method
wv... | 32.877005 | 80 | 0.621828 | PaoJiao |
c128913a7f57128044d9526daee53d864ed3b411 | 183 | cpp | C++ | src/core/i_heat_source_component.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 3 | 2015-02-22T20:34:28.000Z | 2020-03-04T08:55:25.000Z | src/core/i_heat_source_component.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 22 | 2015-12-13T16:29:40.000Z | 2017-03-04T15:45:44.000Z | src/core/i_heat_source_component.cpp | Reaping2/Reaping2 | 0d4c988c99413e50cc474f6206cf64176eeec95d | [
"MIT"
] | 14 | 2015-11-23T21:25:09.000Z | 2020-07-17T17:03:23.000Z | #include "i_heat_source_component.h"
#include <portable_iarchive.hpp>
#include <portable_oarchive.hpp>
REAPING2_CLASS_EXPORT_IMPLEMENT( IHeatSourceComponent, IHeatSourceComponent );
| 30.5 | 78 | 0.852459 | MrPepperoni |
c1299f21b1f8a218c5a8dd42e4ce9fd050e391cc | 737 | cpp | C++ | Unidad-3/Aula25/AViciusPikemanEasy.cpp | luismoroco/ProgrCompetitiva | 011cdb18749a16d17fd635a7c36a8a21b2b643d9 | [
"BSD-3-Clause"
] | null | null | null | Unidad-3/Aula25/AViciusPikemanEasy.cpp | luismoroco/ProgrCompetitiva | 011cdb18749a16d17fd635a7c36a8a21b2b643d9 | [
"BSD-3-Clause"
] | null | null | null | Unidad-3/Aula25/AViciusPikemanEasy.cpp | luismoroco/ProgrCompetitiva | 011cdb18749a16d17fd635a7c36a8a21b2b643d9 | [
"BSD-3-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// https://open.kattis.com/problems/pikemaneasy
typedef long long int ll;
ll ARRA[10000];
int
COMPARATION(const void *p, const void *q) {
int *a = (int *) p;
int *b = (int *) q;
return *a - *b;
}
int
main(int argc, char const *argv[])
{
ll x, y, z, m, ... | 21.676471 | 47 | 0.447761 | luismoroco |
c12a5cddd924ce38ee929ca606ed7cac3786cb88 | 313 | hpp | C++ | src/copy_and_move/src/Foo.hpp | VincentPopie/Sandbox | 882c5bf7325af595739fd9004ba1774ceeee272f | [
"MIT"
] | null | null | null | src/copy_and_move/src/Foo.hpp | VincentPopie/Sandbox | 882c5bf7325af595739fd9004ba1774ceeee272f | [
"MIT"
] | null | null | null | src/copy_and_move/src/Foo.hpp | VincentPopie/Sandbox | 882c5bf7325af595739fd9004ba1774ceeee272f | [
"MIT"
] | null | null | null | #pragma once
#include<string>
/*
* Class Foo contains a _name attribute.
*/
class Foo{
public:
/*
* Foo constructor, set the _name.
*/
Foo(const std::string& iName): _name(iName){}
/*
* Retrieve Foo name.
*/
std::string getName() const { return _name;}
private:
std::string _name;
};
| 13.041667 | 47 | 0.616613 | VincentPopie |
c12fac520b506da953ffbe92b0e4f58dfac8cf71 | 3,920 | cxx | C++ | Applications/AdaptiveParaView/pqCustomDisplayPolicy.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 1 | 2021-07-31T19:38:03.000Z | 2021-07-31T19:38:03.000Z | Applications/AdaptiveParaView/pqCustomDisplayPolicy.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | null | null | null | Applications/AdaptiveParaView/pqCustomDisplayPolicy.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 2 | 2019-01-22T19:51:40.000Z | 2021-07-31T19:38:05.000Z | #include "pqCustomDisplayPolicy.h"
#include <pqPipelineSource.h>
#include <vtkSMSourceProxy.h>
#include <pqOutputPort.h>
#include <vtkPVDataInformation.h>
#include <QString>
#include <vtkStructuredData.h>
#include <pqTwoDRenderView.h>
#include <pqApplicationCore.h>
#include <pqDataRepresentation.h>
#include <pqObjectBu... | 29.69697 | 81 | 0.653571 | matthb2 |
c132f471cf543582185d7b30aaaa4942c150155c | 1,606 | hpp | C++ | TopGraph/extendedpersistence/utils/mo_algorithm.hpp | mityanony404/TopGraph | 23595ca5d3dfcd5bc5ebb771800e3fbe9a0d5eed | [
"MIT"
] | 55 | 2018-01-11T02:20:02.000Z | 2022-03-24T06:18:54.000Z | TopGraph/extendedpersistence/utils/mo_algorithm.hpp | mityanony404/TopGraph | 23595ca5d3dfcd5bc5ebb771800e3fbe9a0d5eed | [
"MIT"
] | 10 | 2016-10-29T08:20:04.000Z | 2021-02-27T13:14:53.000Z | TopGraph/extendedpersistence/utils/mo_algorithm.hpp | mityanony404/TopGraph | 23595ca5d3dfcd5bc5ebb771800e3fbe9a0d5eed | [
"MIT"
] | 11 | 2016-10-29T06:00:53.000Z | 2021-06-16T14:32:43.000Z | #pragma once
#include <algorithm>
#include <cmath>
#include <numeric>
#include <tuple>
#include <utility>
#include <vector>
// struct mo_struct {
// typedef int64_t value_type;
// typedef int64_t result_type;
// void add_right(int nr, value_type x_r) {
// }
// void add_left(int nl, value_type x_nl)... | 29.740741 | 165 | 0.557908 | mityanony404 |
c13f5206521d4c221977c6376b97b0baff56db4a | 27,449 | cc | C++ | engine/source/2d/assets/ParticleAssetEmitter.cc | close-code/Torque2D | ad141fc7b5f28b75f727ef29dcc93aafbb3f5aa3 | [
"MIT"
] | 1,309 | 2015-01-01T02:46:14.000Z | 2022-03-14T04:56:02.000Z | engine/source/2d/assets/ParticleAssetEmitter.cc | SwaroopGuvvala/Torque2D | 55efccc7c7a4331547f5d71c733a75b8de1189e8 | [
"MIT"
] | 155 | 2015-01-11T19:26:32.000Z | 2021-11-22T04:08:55.000Z | engine/source/2d/assets/ParticleAssetEmitter.cc | SwaroopGuvvala/Torque2D | 55efccc7c7a4331547f5d71c733a75b8de1189e8 | [
"MIT"
] | 1,595 | 2015-01-01T23:19:48.000Z | 2022-02-17T07:00:52.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// 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 restrictio... | 43.988782 | 203 | 0.633611 | close-code |
c144552f3079ed40d3570ff9f7e2090fedade582 | 606 | hpp | C++ | android-28/android/util/TimeUtils.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/util/TimeUtils.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-28/android/util/TimeUtils.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
class JString;
namespace java::util
{
class TimeZone;
}
namespace android::util
{
class TimeUtils : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit TimeUtils(const char *className, const char *sig, Ts...agv) : JObject(c... | 20.2 | 150 | 0.69637 | YJBeetle |
c1448d8b832318d1fc649c638df8ce0147489690 | 62,276 | cc | C++ | protocal/control/control_conf.pb.cc | racestart/g2r | d115ebaab13829d716750eab2ebdcc51d79ff32e | [
"Apache-2.0"
] | 1 | 2020-03-05T12:49:21.000Z | 2020-03-05T12:49:21.000Z | protocal/control/control_conf.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | null | null | null | protocal/control/control_conf.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | 1 | 2020-03-25T15:06:39.000Z | 2020-03-25T15:06:39.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: control/control_conf.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "control/control_conf.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/... | 38.066015 | 135 | 0.730843 | racestart |
c1479ada0fad341ed4cad2268e40ee87fc39b67b | 132 | cpp | C++ | benchmark/fenwick/micro/add_byte23bit.cpp | pacman616/hybrid-fenwick-tree | 84e7cc8aa84b87937b98d85f3c2ed1998c0d79af | [
"MIT"
] | 4 | 2019-01-10T17:55:43.000Z | 2019-11-26T09:33:38.000Z | benchmark/fenwick/micro/add_byte23bit.cpp | pacman616/hybrid-fenwick-tree | 84e7cc8aa84b87937b98d85f3c2ed1998c0d79af | [
"MIT"
] | null | null | null | benchmark/fenwick/micro/add_byte23bit.cpp | pacman616/hybrid-fenwick-tree | 84e7cc8aa84b87937b98d85f3c2ed1998c0d79af | [
"MIT"
] | null | null | null | #define __HFT_BENCHMARK_FUNCTION__ add<Hybrid<ByteL, BitF, 64, 23>>(name + "/" + "Byte23Bit", queries, re);
#include "../micro.cpp"
| 44 | 107 | 0.689394 | pacman616 |
c15218d5e665c1371261e2caaaf75cc3d7b48bc3 | 1,125 | cpp | C++ | perf_test/thread/ThreadTest.cpp | armsword/DLog | 6b049124098f6c0f622e9a610a87fea27125e0da | [
"MIT"
] | 33 | 2016-09-10T16:42:16.000Z | 2021-05-13T07:02:06.000Z | perf_test/thread/ThreadTest.cpp | armsword/DLog | 6b049124098f6c0f622e9a610a87fea27125e0da | [
"MIT"
] | 1 | 2016-09-26T16:07:54.000Z | 2016-09-26T17:07:29.000Z | perf_test/thread/ThreadTest.cpp | armsword/DLog | 6b049124098f6c0f622e9a610a87fea27125e0da | [
"MIT"
] | 13 | 2016-09-14T10:24:15.000Z | 2021-01-05T18:46:56.000Z | #include <dlog/logger/Log.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/time.h>
#include <stdint.h>
#include <iostream>
#include <string.h>
#include <pthread.h>
using namespace dlog::logger;
int64_t currentTime() {
struct timeval tval;
gettimeofday(&tval, NULL);
return (tval.tv_sec * 1000000LL ... | 21.634615 | 71 | 0.537778 | armsword |
c152bdba5071a5589bb030f6c48876fb4c4a169b | 42,535 | cpp | C++ | AIPDebug/Function-Module/Widget_INDL.cpp | Bluce-Song/Master-AIP | 1757ab392504d839de89460da17630d268ff3eed | [
"Apache-2.0"
] | null | null | null | AIPDebug/Function-Module/Widget_INDL.cpp | Bluce-Song/Master-AIP | 1757ab392504d839de89460da17630d268ff3eed | [
"Apache-2.0"
] | null | null | null | AIPDebug/Function-Module/Widget_INDL.cpp | Bluce-Song/Master-AIP | 1757ab392504d839de89460da17630d268ff3eed | [
"Apache-2.0"
] | null | null | null | #include "Widget_INDL.h"
#include "ui_Widget_INDL.h"
Widget_INDL::Widget_INDL(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget_INDL)
{
ui->setupUi(this);
// 电感设置表头
ui->indlTab->horizontalHeader()->setStyleSheet\
("QHeaderView::section{background-color:#191919;color: white;"\
... | 41.782908 | 94 | 0.476619 | Bluce-Song |
c15610ad4f2b4e825c0d0a2764b50718b4973b32 | 7,560 | cpp | C++ | logview/mainwindow.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 8 | 2015-11-16T19:15:55.000Z | 2021-02-17T23:58:33.000Z | logview/mainwindow.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 5 | 2015-11-12T00:19:59.000Z | 2020-03-23T10:18:19.000Z | logview/mainwindow.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 11 | 2015-03-15T23:02:48.000Z | 2021-09-05T14:17:13.000Z | /************************************************************************************
* EMStudio - Open Source ECU tuning software *
* Copyright (C) 2020 Michael Carpenter (malcom2073@gmail.com) *
* ... | 30.731707 | 144 | 0.693783 | Hayesie88 |
c15af3d0e38be40e7776de8adf696eb86ee1f657 | 1,068 | cpp | C++ | UVa Online Judge/12247.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | 1 | 2022-02-24T12:44:30.000Z | 2022-02-24T12:44:30.000Z | UVa Online Judge/12247.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | null | null | null | UVa Online Judge/12247.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
const int INF = 1e9;
const long long LLINF = 4e18;
const double EPS = 1e-9;
int order[6][3] = {
0, 1, 2, 0, 2, 1,
1, 0, 2, 1, 2, 0,
2, 0, 1, 2, 1, 0,
};
int used[55];
i... | 15.705882 | 77 | 0.450375 | xiezeju |
c15d3e2d6315e3a096157ac58b12433af73bfdda | 3,086 | cpp | C++ | snake.cpp | billlin0904/QSnake | 07375173d9597ba3149cba5989c9122e90bb9c44 | [
"MIT"
] | null | null | null | snake.cpp | billlin0904/QSnake | 07375173d9597ba3149cba5989c9122e90bb9c44 | [
"MIT"
] | null | null | null | snake.cpp | billlin0904/QSnake | 07375173d9597ba3149cba5989c9122e90bb9c44 | [
"MIT"
] | 1 | 2021-01-15T19:44:40.000Z | 2021-01-15T19:44:40.000Z | #include <QPainter>
#include "gamestage.h"
#include "snake.h"
Snake::Snake(GameStage *stage)
: dir_(Direction::NoMove)
, growing_(7)
, stage_(stage) {
}
QPointF Snake::head() const {
return head_;
}
void Snake::setPause(bool pause) {
is_pause_ = pause;
}
QList<QPointF> const & Snake::tail() con... | 20.711409 | 83 | 0.557032 | billlin0904 |
c15e881205eb186e6a6c43d0908ccd95d480c91c | 610 | cpp | C++ | apps/myApps/Doshi_u1212719/BehaviorAlgorithms/BehaviorTree/BT.cpp | wanted28496/AIForGames | 8b958452ccf268ecd54990135a7a3dd154cab6d4 | [
"MIT"
] | null | null | null | apps/myApps/Doshi_u1212719/BehaviorAlgorithms/BehaviorTree/BT.cpp | wanted28496/AIForGames | 8b958452ccf268ecd54990135a7a3dd154cab6d4 | [
"MIT"
] | null | null | null | apps/myApps/Doshi_u1212719/BehaviorAlgorithms/BehaviorTree/BT.cpp | wanted28496/AIForGames | 8b958452ccf268ecd54990135a7a3dd154cab6d4 | [
"MIT"
] | null | null | null | #include "BT.h"
#include "BTTick.h"
#include "BTAction.h"
#include "BTBlackboard.h"
BT::BT(unsigned int iNodeID, BTTaskBase * iRootNode, BTBlackboard * iBlackboard) : mNodeID(iNodeID), mRootNode(iRootNode), mBlackboard(iBlackboard)
{
unsigned int i = 0;
SetTask(mRootNode, i);
}
void BT::SetTask(BTTaskBase * iTask,... | 17.428571 | 147 | 0.668852 | wanted28496 |
c15fcc75e874ce6260fe6ffcba76d171fe94309c | 43,778 | cpp | C++ | Samples/Win7Samples/winbase/rdc/client/RdcSdkTestClient.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/winbase/rdc/client/RdcSdkTestClient.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/winbase/rdc/client/RdcSdkTestClient.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
#include "stdafx.h"
... | 33.015083 | 169 | 0.49036 | windows-development |
c16422c107ccc84451d2b236f67c3d92592738ff | 1,158 | cpp | C++ | vislib/src/sys/COMException.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | vislib/src/sys/COMException.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | vislib/src/sys/COMException.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /*
* COMException.cpp
*
* Copyright (C) 2006 - 2012 by Visualisierungsinstitut Universitaet Stuttgart.
* Alle Rechte vorbehalten.
*/
#include "vislib/sys/COMException.h"
/*
* vislib::sys::COMException::COMException
*/
#ifdef _WIN32
vislib::sys::COMException::COMException(const HRESULT hr, const char* file, co... | 21.849057 | 113 | 0.659758 | masrice |
c16757cb4d61960300b92eb5ef4bb4dc01c83568 | 800 | hpp | C++ | include/x_copy_paste.hpp | langenhagen/barn-bookmark-manager | e7db7dba34e92c74ad445d088b57559dbba26f63 | [
"MIT"
] | null | null | null | include/x_copy_paste.hpp | langenhagen/barn-bookmark-manager | e7db7dba34e92c74ad445d088b57559dbba26f63 | [
"MIT"
] | null | null | null | include/x_copy_paste.hpp | langenhagen/barn-bookmark-manager | e7db7dba34e92c74ad445d088b57559dbba26f63 | [
"MIT"
] | null | null | null | /* Utility functions for easy reading from and writing to the x window system clipboard.
Use the external utility `xclip` rather than implemting clipboard capabilities for the X
application. This serves 2 purposes. First, avoid the necessity for the caller to implement an x11
application and avoid the complex setup fo... | 29.62963 | 100 | 0.77875 | langenhagen |
c167f118ba97e7ff21871be25ee3cc62b2574dcf | 784 | cpp | C++ | src/main/cpp/ByteReader.cpp | alexnsouza6/JavaVirtualMachine | d0e1702cc7f68f2a71a6b139326fcd13685e44de | [
"MIT"
] | null | null | null | src/main/cpp/ByteReader.cpp | alexnsouza6/JavaVirtualMachine | d0e1702cc7f68f2a71a6b139326fcd13685e44de | [
"MIT"
] | 1 | 2018-09-24T00:08:56.000Z | 2018-09-24T00:08:56.000Z | src/main/cpp/ByteReader.cpp | alexnsouza6/JavaVirtualMachine | d0e1702cc7f68f2a71a6b139326fcd13685e44de | [
"MIT"
] | 2 | 2018-12-09T17:44:49.000Z | 2018-12-10T16:41:40.000Z | #ifndef ___BYTEREADER_H___
#define ___BYTEREADER_H___
#define NEUTRAL_BYTE_FOR_OR 0x00;
/**
* @brief Classe ByteReader. No momento da instanciação define-se qual tipo deseja-se buscar
* E assim quando acionado o método byteCatch(FILE * fp) o arquivo busca o binário correspondente.
*/
template <class T>
class Byte... | 23.058824 | 98 | 0.678571 | alexnsouza6 |
c169629e883214292d37f58709924011cbd1456d | 2,156 | cpp | C++ | A.cpp | MaowMan/cpp-sprout | 64c261a49f02d3070d5c97480f3b71c0ac102f0e | [
"MIT"
] | null | null | null | A.cpp | MaowMan/cpp-sprout | 64c261a49f02d3070d5c97480f3b71c0ac102f0e | [
"MIT"
] | null | null | null | A.cpp | MaowMan/cpp-sprout | 64c261a49f02d3070d5c97480f3b71c0ac102f0e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cstdio>
#include <set>
int main(){
long long n;
std::cin>>n;
if (n==2){
long long nxt;
std::cin>>nxt;
if (nxt==1){
putchar('2');
putchar('\n');
}
else{
putchar('1');
putch... | 23.182796 | 61 | 0.306586 | MaowMan |
c17311fe4d62f2041e8a6d68bdedc80b5266f9cd | 833 | cpp | C++ | src/pan.cpp | Dam-0/grid | 5a522de1383c55c199804176d9591abeb3a04d41 | [
"MIT"
] | null | null | null | src/pan.cpp | Dam-0/grid | 5a522de1383c55c199804176d9591abeb3a04d41 | [
"MIT"
] | null | null | null | src/pan.cpp | Dam-0/grid | 5a522de1383c55c199804176d9591abeb3a04d41 | [
"MIT"
] | null | null | null | #include "grid.h"
void Grid::pan(float x, float y) {
_cam_x_decimal += x;
_cam_y_decimal += y;
int cell_pan = floor(_cam_x_decimal);
_cam_x += cell_pan;
_cam_x_decimal -= cell_pan;
cell_pan = floor(_cam_y_decimal);
_cam_y += cell_pan;
_cam_y_decimal -= cell_pan;
_gr... | 23.8 | 76 | 0.618247 | Dam-0 |
c1771e6362c0c0e415e7b4cdc8a55465a3e8dc3c | 390 | hpp | C++ | TGEngine/util/Debug.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | TGEngine/util/Debug.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | TGEngine/util/Debug.hpp | ThePixly/TGEngine | aff5d5f42c3094dcc37253f4a3f5e09db560a4eb | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "..\Stdbase.hpp"
SINCE(0, 0, 1)
#define printExtend(x) cout << "width:" << x.width << " height:" << x.height << endl;
SINCE(0, 0, 1)
#define printOffset(v) cout << "x:" << v.x << " y:" << v.y << endl;
/*
* Prints a version with the Format MAJOR.MINOR.VERSION e.g. 1.0.0
* You can built it w... | 24.375 | 86 | 0.615385 | ThePixly |
c178696be3dae369267c571130a2a46f475aed5c | 654 | hpp | C++ | supervisor/src/network/websocket/wrapper/events/Disconnection.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | 1 | 2018-11-12T02:48:46.000Z | 2018-11-12T02:48:46.000Z | supervisor/src/network/websocket/wrapper/events/Disconnection.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | null | null | null | supervisor/src/network/websocket/wrapper/events/Disconnection.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | null | null | null | #ifndef TIN_NETWORK_WEBSOCKET_WRAPPER_EVENTS_DISCONNECTION_HPP
#define TIN_NETWORK_WEBSOCKET_WRAPPER_EVENTS_DISCONNECTION_HPP
#include <websocketpp/server.hpp>
#include "../Event.hpp"
namespace tin { namespace network { namespace websocket { namespace wrapper { namespace events
{
struct Disconnection: public tin... | 31.142857 | 94 | 0.776758 | mdziekon |
c1812d08d9d03987552ec67444543443d73ad5ea | 2,137 | cpp | C++ | C++/cat-and-mouse.cpp | black-shadows/LeetCode-Solutions | b1692583f7b710943ffb19b392b8bf64845b5d7a | [
"Fair",
"Unlicense"
] | 1 | 2020-04-16T08:38:14.000Z | 2020-04-16T08:38:14.000Z | cat-and-mouse.cpp | Jeevan-kumar-Raj/LeetCode-Solutions-Topicwise | f1111b4edd401a3fc47111993bd7250cf4dc76da | [
"MIT"
] | null | null | null | cat-and-mouse.cpp | Jeevan-kumar-Raj/LeetCode-Solutions-Topicwise | f1111b4edd401a3fc47111993bd7250cf4dc76da | [
"MIT"
] | 1 | 2021-12-25T14:48:56.000Z | 2021-12-25T14:48:56.000Z | // Time: O(n^3)
// Space: O(n^2)
class Solution {
private:
template <typename A, typename B, typename C>
struct TupleHash {
size_t operator()(const tuple<A, B, C>& p) const {
size_t seed = 0;
A a; B b; C c;
tie(a, b, c) = p;
seed ^= std::hash<... | 31.895522 | 105 | 0.463734 | black-shadows |
c184369c50700cd126a7f04f0e0b682b146c1330 | 143 | cpp | C++ | building_cpp_with_sfml_wave_01/main.cpp | michaelgautier/codeexpo | f10a38d41cfbea521fc5938360d4481f966593ae | [
"Apache-2.0"
] | 1 | 2019-05-14T15:13:42.000Z | 2019-05-14T15:13:42.000Z | building_cpp_with_sfml_wave_01/main.cpp | michaelgautier/codeexpo | f10a38d41cfbea521fc5938360d4481f966593ae | [
"Apache-2.0"
] | null | null | null | building_cpp_with_sfml_wave_01/main.cpp | michaelgautier/codeexpo | f10a38d41cfbea521fc5938360d4481f966593ae | [
"Apache-2.0"
] | null | null | null | #include "program.h"
using namespace Gautier::SFMLApp;
int main()
{
Program SFMLAppProgram;
SFMLAppProgram.Execute();
return 0;
}
| 14.3 | 34 | 0.692308 | michaelgautier |
c1868d48624a8a26e01e0810da3e31770a8091d1 | 2,957 | cc | C++ | src/heap/finalization-registry-cleanup-task.cc | gilanghamidy/DifferentialFuzzingWASM-v8 | 28a546d241027a5fb715cacd26fd31d06b4bb0c1 | [
"BSD-3-Clause"
] | 1 | 2020-12-25T00:58:59.000Z | 2020-12-25T00:58:59.000Z | src/heap/finalization-registry-cleanup-task.cc | gilanghamidy/DifferentialFuzzingWASM-v8 | 28a546d241027a5fb715cacd26fd31d06b4bb0c1 | [
"BSD-3-Clause"
] | 2 | 2020-02-29T08:38:40.000Z | 2020-03-03T04:15:40.000Z | src/heap/finalization-registry-cleanup-task.cc | gilanghamidy/DifferentialFuzzingWASM-v8 | 28a546d241027a5fb715cacd26fd31d06b4bb0c1 | [
"BSD-3-Clause"
] | 1 | 2020-09-05T18:28:16.000Z | 2020-09-05T18:28:16.000Z | // Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/heap/finalization-registry-cleanup-task.h"
#include "src/execution/frames.h"
#include "src/execution/interrupts-scope.h"
#include "src/ex... | 37.910256 | 80 | 0.748732 | gilanghamidy |
c18879c2f0c496713cb539480a752414bebb9ea4 | 270 | cpp | C++ | OSE Resources Mesh ASSIMP/Resources/Mesh/MeshLoaderFactoryASSIMP.cpp | rexapex/OSE-V2-Game-Engine- | cbf8040d4b017275c073373f8438b227e691858d | [
"MIT"
] | 1 | 2019-09-29T17:45:11.000Z | 2019-09-29T17:45:11.000Z | OSE Resources Mesh ASSIMP/Resources/Mesh/MeshLoaderFactoryASSIMP.cpp | rexapex/OSE-V2-Game-Engine- | cbf8040d4b017275c073373f8438b227e691858d | [
"MIT"
] | 10 | 2020-11-13T13:41:26.000Z | 2020-11-16T18:46:57.000Z | OSE Resources Mesh ASSIMP/Resources/Mesh/MeshLoaderFactoryASSIMP.cpp | rexapex/OSE-Game-Engine | cbf8040d4b017275c073373f8438b227e691858d | [
"MIT"
] | null | null | null | #include "pch.h"
#include "MeshLoaderFactoryASSIMP.h"
#include "MeshLoaderASSIMP.h"
namespace ose::resources
{
uptr<MeshLoader> MeshLoaderFactoryASSIMP::NewMeshLoader(std::string const & project_path)
{
return ose::make_unique<MeshLoaderASSIMP>(project_path);
}
}
| 22.5 | 90 | 0.781481 | rexapex |
c1916fcbacd55009a99677cac0d6f078e316d7c4 | 14,367 | cpp | C++ | 1 course/lab_6_dyn_array/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 1 course/lab_6_dyn_array/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 1 course/lab_6_dyn_array/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | // ver 1.2 - 08.04.19
#include <iostream>
#include <fstream>
#include <ctime>
#include <cmath>
using namespace std;
void filling_array_from_keyboard (short int *A, int N)
{
cout << "*** Осуществляется заполнение динамического массива значениями с клавиатуры ***" << endl;
cout << "Задайте значения элементов ди... | 35.299754 | 163 | 0.523839 | SgAkErRu |
c1951e2242d124f3a46fb98ab36a1ea7db5fdf95 | 1,314 | hpp | C++ | include/ShishGL/Core/EventSystem/EventManager.hpp | Shishqa/ShishGL | 36a3273aecb4b87d040616059ed9487d18abac1a | [
"MIT"
] | null | null | null | include/ShishGL/Core/EventSystem/EventManager.hpp | Shishqa/ShishGL | 36a3273aecb4b87d040616059ed9487d18abac1a | [
"MIT"
] | null | null | null | include/ShishGL/Core/EventSystem/EventManager.hpp | Shishqa/ShishGL | 36a3273aecb4b87d040616059ed9487d18abac1a | [
"MIT"
] | null | null | null | /*============================================================================*/
#ifndef SHISHGL_EVENT_MANAGER_HPP
#define SHISHGL_EVENT_MANAGER_HPP
/*============================================================================*/
#include <type_traits>
#include <queue>
#include "Event.hpp"
/*==========================... | 28.565217 | 80 | 0.407915 | Shishqa |
c19b51b3fe764224c02028a55ff9196d04646bc6 | 130 | cc | C++ | build/ARM/arch/arm/pmu.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/ARM/arch/arm/pmu.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | build/ARM/arch/arm/pmu.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:debc68e4dbb38b0effed848d9297d632f5013185a2fedb77865d89d6d835e1e3
size 20574
| 32.5 | 75 | 0.884615 | zhoushuxin |
c19b84e57de39631c337542cc5c6e7a9c4d57b19 | 1,439 | cpp | C++ | src/module.cpp | CrendKing/proxy-copy-handler | 06e00839ef84c596a41851030f35530d79f3a7cd | [
"MIT"
] | 4 | 2020-04-18T04:01:06.000Z | 2022-03-06T09:24:15.000Z | src/module.cpp | CrendKing/proxy-copy-handler | 06e00839ef84c596a41851030f35530d79f3a7cd | [
"MIT"
] | null | null | null | src/module.cpp | CrendKing/proxy-copy-handler | 06e00839ef84c596a41851030f35530d79f3a7cd | [
"MIT"
] | null | null | null | class ProxyCopyHandlerModule : public ATL::CAtlDllModuleT<ProxyCopyHandlerModule> {
} g_module;
extern "C" auto WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) -> BOOL {
return g_module.DllMain(dwReason, lpReserved);
}
_Use_decl_annotations_ extern "C" auto STDAPICALLTYPE DllCanUnloadNow() ... | 31.977778 | 150 | 0.71091 | CrendKing |
c19d9250d7067d3e1874ebc8316af9643769da00 | 1,090 | hpp | C++ | src/shader.hpp | BujakiAttila/GPGPU-GameOfLife | 6fd13fe5f7a6a21c7820822df54d737f750177d2 | [
"MIT"
] | null | null | null | src/shader.hpp | BujakiAttila/GPGPU-GameOfLife | 6fd13fe5f7a6a21c7820822df54d737f750177d2 | [
"MIT"
] | null | null | null | src/shader.hpp | BujakiAttila/GPGPU-GameOfLife | 6fd13fe5f7a6a21c7820822df54d737f750177d2 | [
"MIT"
] | null | null | null | #ifndef _SHADER_
#define _SHADER_
#include <string>
#include <GL/glew.h>
class Shader{
private:
GLuint shaderProgram;
Shader();
bool fileToString(const char* path, char* &out, int& len);
public:
Shader(const char* vertexShaderPath, const char* fragmentShaderPath);
virtual ~Shader();
void shaderFromFil... | 25.348837 | 81 | 0.73578 | BujakiAttila |
c19fab504630ceb5e28c641dab3be61995a3dbf6 | 589 | cpp | C++ | kattis_numbertree.cpp | dylanashley/programming-problems | aeba99daaaade1071ed3ab8d51d6f36e84493ef6 | [
"MIT"
] | null | null | null | kattis_numbertree.cpp | dylanashley/programming-problems | aeba99daaaade1071ed3ab8d51d6f36e84493ef6 | [
"MIT"
] | null | null | null | kattis_numbertree.cpp | dylanashley/programming-problems | aeba99daaaade1071ed3ab8d51d6f36e84493ef6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main()
{
int height;
int label = 1;
string path;
cin >> height;
if (cin.eof())
{
label = (1 << (height + 1)) - 1;
}
else
{
cin >> path;
for (int i = 0; i < path.length(); ++i)
{
... | 15.102564 | 47 | 0.353141 | dylanashley |
c1a4c73501006f4f9b893b09820d43af00459514 | 2,343 | cpp | C++ | Sandbox/src/Sandbox3D/Model/Billboard.cpp | cyandestructor/Sandbox3D | de19e962aeb69f7e6f28fe07263f95920332287a | [
"MIT"
] | null | null | null | Sandbox/src/Sandbox3D/Model/Billboard.cpp | cyandestructor/Sandbox3D | de19e962aeb69f7e6f28fe07263f95920332287a | [
"MIT"
] | null | null | null | Sandbox/src/Sandbox3D/Model/Billboard.cpp | cyandestructor/Sandbox3D | de19e962aeb69f7e6f28fe07263f95920332287a | [
"MIT"
] | null | null | null | #include "Billboard.h"
Billboard::Billboard()
{
static const float vertices[] = {
-0.5f, -0.5f, 0.0f,
0.0f, 0.0f,
0.5f, -0.5f, 0.0f,
1.0f, 0.0f,
-0.5f, 0.5f, 0.0f,
0.0f, 1.0f,
0.5f, 0.5f, 0.0f,
1.0f, 1.0f
};
m_vertexArray = Jass::VertexArray::Create();
auto vbo = Jass::VertexBuffer::Creat... | 26.033333 | 103 | 0.673922 | cyandestructor |
c1a772fac95cff54fc9ab0a09ae37a05490478ca | 537 | cpp | C++ | lintcode/rotatestring.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | lintcode/rotatestring.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | lintcode/rotatestring.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
/**
* param A: A string
* param offset: Rotate string with offset.
* return: Rotated string.
*/
string rotateString(string A, int offset) {
// wirte your code here
int len=A.size();
if(len==0){
return "";
}
o... | 21.48 | 48 | 0.489758 | WIZARD-CXY |
c1a857079e4988789cdbca79dddf135c1f093773 | 2,306 | hpp | C++ | Graphics/ShaderTools/include/DXCompilerBaseUWP.hpp | AndreyMlashkin/DiligentCore | 20d5d7d2866e831a73437db2dec16bdc61413eb0 | [
"Apache-2.0"
] | null | null | null | Graphics/ShaderTools/include/DXCompilerBaseUWP.hpp | AndreyMlashkin/DiligentCore | 20d5d7d2866e831a73437db2dec16bdc61413eb0 | [
"Apache-2.0"
] | null | null | null | Graphics/ShaderTools/include/DXCompilerBaseUWP.hpp | AndreyMlashkin/DiligentCore | 20d5d7d2866e831a73437db2dec16bdc61413eb0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2021 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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/LICENS... | 29.948052 | 119 | 0.694276 | AndreyMlashkin |
c1af627d759e58563bb83352b9dc2d6045ef4db2 | 49,547 | cpp | C++ | src/energyplus/ForwardTranslator/ForwardTranslatePlantLoop.cpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 354 | 2015-01-10T17:46:11.000Z | 2022-03-29T10:00:00.000Z | src/energyplus/ForwardTranslator/ForwardTranslatePlantLoop.cpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 3,243 | 2015-01-02T04:54:45.000Z | 2022-03-31T17:22:22.000Z | src/energyplus/ForwardTranslator/ForwardTranslatePlantLoop.cpp | jmarrec/OpenStudio | 5276feff0d8dbd6c8ef4e87eed626bc270a19b14 | [
"blessing"
] | 157 | 2015-01-07T15:59:55.000Z | 2022-03-30T07:46:09.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 52.597665 | 182 | 0.71306 | muehleisen |
c1b1b4df493e9cec2f39abd06ab30bd1b5f951d8 | 1,146 | cpp | C++ | codeground/8. 블럭 없애기.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | null | null | null | codeground/8. 블럭 없애기.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | null | null | null | codeground/8. 블럭 없애기.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | null | null | null |
/*
* codeground - Practice - 연습문제 - 8. 블럭 없애기
* 문제 : https://www.codeground.org/practice/practiceProblemList
* 시간복잡도 : O(N)
* 알고리즘 : DP
*/
#include <iostream>
#include <vector>
#include <algorithm>
#define inf 1e9
using namespace std;
int solve()
{
int n;
cin >> n;
vector<int> arr(n + 2, 0);
for (int i = 1;... | 21.222222 | 87 | 0.557592 | Jeongseo21 |
c1b7f7dd34eb8411c40fb30e8c598d2f394af34f | 16,940 | cpp | C++ | LibUIDK/WLText.cpp | swjsky/sktminest | 42fa47d9ffb0f50a5727e42811e949fff920bec9 | [
"MIT"
] | 3 | 2019-12-03T09:04:04.000Z | 2021-01-29T02:03:30.000Z | LibUIDK/WLText.cpp | dushulife/LibUIDK | 04e79e64eaadfaa29641c24e9cddd9abde544aac | [
"MIT"
] | null | null | null | LibUIDK/WLText.cpp | dushulife/LibUIDK | 04e79e64eaadfaa29641c24e9cddd9abde544aac | [
"MIT"
] | 2 | 2019-09-12T07:49:42.000Z | 2019-12-24T22:28:49.000Z | // WLText.cpp : implementation file
//
#include "stdafx.h"
#include "ResourceMgr.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
struct WLTXTMEMBER
{
WLTXTMEMBER()
{
int i = 0;
for (i = 0; i < 2; ++i)
{
m_himgBk[i] = NULL;
}
m_p... | 21.690141 | 97 | 0.683353 | swjsky |
c1bc9d29f4115276986b581e6476527298fa8249 | 25,939 | hpp | C++ | src/cppad.git/include/cppad/example/eigen_mat_mul.hpp | yinzixuan126/my_udacity | cada1bc047cd21282b008a0eb85a1df52fd94034 | [
"MIT"
] | 1 | 2019-11-05T02:23:47.000Z | 2019-11-05T02:23:47.000Z | src/cppad.git/include/cppad/example/eigen_mat_mul.hpp | yinzixuan126/my_udacity | cada1bc047cd21282b008a0eb85a1df52fd94034 | [
"MIT"
] | null | null | null | src/cppad.git/include/cppad/example/eigen_mat_mul.hpp | yinzixuan126/my_udacity | cada1bc047cd21282b008a0eb85a1df52fd94034 | [
"MIT"
] | 1 | 2019-11-05T02:23:51.000Z | 2019-11-05T02:23:51.000Z | # ifndef CPPAD_EXAMPLE_EIGEN_MAT_MUL_HPP
# define CPPAD_EXAMPLE_EIGEN_MAT_MUL_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-18 Bradley M. Bell
CppAD is distributed under the terms of the
Eclipse Public License V... | 39.361153 | 80 | 0.463549 | yinzixuan126 |
c1bdd76957f2369247d910ebf23fcf05b6a932ee | 29,247 | cpp | C++ | Plugins/Raytracing/Raytracing.cpp | cryptobuks1/Stratum | 3ecf56c0ce9010e6e95248c0d63edc41eeb13910 | [
"MIT"
] | null | null | null | Plugins/Raytracing/Raytracing.cpp | cryptobuks1/Stratum | 3ecf56c0ce9010e6e95248c0d63edc41eeb13910 | [
"MIT"
] | null | null | null | Plugins/Raytracing/Raytracing.cpp | cryptobuks1/Stratum | 3ecf56c0ce9010e6e95248c0d63edc41eeb13910 | [
"MIT"
] | null | null | null | #include <Core/EnginePlugin.hpp>
#include <Scene/Camera.hpp>
#include <Scene/MeshRenderer.hpp>
#include <Scene/Scene.hpp>
#include <Util/Profiler.hpp>
#include <assimp/pbrmaterial.h>
using namespace std;
#ifdef GetObject
#undef GetObject
#endif
#define PASS_RAYTRACE (1u << 23)
#pragma pack(push)
#pragma pack(1)
s... | 43.782934 | 284 | 0.729716 | cryptobuks1 |
c1be765e20213864af4152203dab76e411c8a402 | 1,364 | cpp | C++ | Sources/Athena2D/Tools/TextureCacheViewer.cpp | jccit/Athena | fa204647bf9e60ae113fcaf5e391813da51b0881 | [
"BSD-3-Clause"
] | null | null | null | Sources/Athena2D/Tools/TextureCacheViewer.cpp | jccit/Athena | fa204647bf9e60ae113fcaf5e391813da51b0881 | [
"BSD-3-Clause"
] | null | null | null | Sources/Athena2D/Tools/TextureCacheViewer.cpp | jccit/Athena | fa204647bf9e60ae113fcaf5e391813da51b0881 | [
"BSD-3-Clause"
] | null | null | null | #include "pch.h"
#include "TextureCacheViewer.h"
#include <imgui.h>
TextureCacheViewer::TextureCacheViewer(std::map<std::string, SDL_Texture*>* texCache)
{
title = "Texture Cache Viewer";
cache = texCache;
}
std::string selectedTexture;
void TextureCacheViewer::renderPanel()
{
if (isShowing()) {
... | 25.735849 | 116 | 0.53739 | jccit |
c1c1ed9a884c62b14ed8e9ff4704ba783db8b35e | 11,757 | cpp | C++ | test/source/tests/executor_tests/inline_executor_tests.cpp | insujang/concurrencpp | 580f430caf1369521ee1422c15c4c8a89823972b | [
"MIT"
] | 1 | 2022-01-08T01:53:16.000Z | 2022-01-08T01:53:16.000Z | test/source/tests/executor_tests/inline_executor_tests.cpp | tlming16/concurrencpp | 580f430caf1369521ee1422c15c4c8a89823972b | [
"MIT"
] | null | null | null | test/source/tests/executor_tests/inline_executor_tests.cpp | tlming16/concurrencpp | 580f430caf1369521ee1422c15c4c8a89823972b | [
"MIT"
] | null | null | null | #include "concurrencpp/concurrencpp.h"
#include "infra/tester.h"
#include "infra/assertions.h"
#include "utils/object_observer.h"
#include "utils/test_generators.h"
#include "utils/test_ready_result.h"
#include "utils/executor_shutdowner.h"
namespace concurrencpp::tests {
void test_inline_executor_name();
vo... | 33.305949 | 124 | 0.722378 | insujang |
c1c5cd073ae8e747c8e3761617eaa3f5f7a62784 | 9,936 | cpp | C++ | src/misc/sharedmemory.cpp | OpenSpace/Ghoul | af5545a13d140b15e7b37f581ea7dde522be2b5b | [
"MIT"
] | 8 | 2016-09-13T12:39:49.000Z | 2022-03-21T12:30:50.000Z | src/misc/sharedmemory.cpp | OpenSpace/Ghoul | af5545a13d140b15e7b37f581ea7dde522be2b5b | [
"MIT"
] | 33 | 2016-07-07T20:35:05.000Z | 2021-10-15T03:12:13.000Z | src/misc/sharedmemory.cpp | OpenSpace/Ghoul | af5545a13d140b15e7b37f581ea7dde522be2b5b | [
"MIT"
] | 16 | 2015-06-24T20:41:28.000Z | 2022-01-08T04:14:03.000Z | /*****************************************************************************************
* *
* GHOUL *
* General Helpful Open Utility Library ... | 34.620209 | 90 | 0.580213 | OpenSpace |
c1c5de6bb615ca0dfdf7e1ee0a053e96a1ee39ed | 2,627 | cpp | C++ | morphdialog.cpp | emreozanalkan/VPOpenCVProject | 953fccdac9fa4c9793e3aeb0b97352ccabd28a64 | [
"MIT"
] | 1 | 2021-11-30T11:43:34.000Z | 2021-11-30T11:43:34.000Z | morphdialog.cpp | emreozanalkan/VPOpenCVProject | 953fccdac9fa4c9793e3aeb0b97352ccabd28a64 | [
"MIT"
] | null | null | null | morphdialog.cpp | emreozanalkan/VPOpenCVProject | 953fccdac9fa4c9793e3aeb0b97352ccabd28a64 | [
"MIT"
] | null | null | null | #include "morphdialog.h"
#include "ui_morphdialog.h"
#include "pch.h"
MorphDialog::MorphDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::MorphDialog)
{
ui->setupUi(this);
}
MorphDialog::~MorphDialog()
{
delete ui;
}
void MorphDialog::on_buttonBox_accepted()
{
QString morphologicalOperation =... | 39.80303 | 135 | 0.714884 | emreozanalkan |
c1c78d1f34346d9b979c3fa80ce828abe80aa0d1 | 1,733 | hpp | C++ | container/contiguous_storage_impl.hpp | birbacher/plaincontainers | 27386929da24b3d82887699458c99fc293618d05 | [
"BSL-1.0"
] | null | null | null | container/contiguous_storage_impl.hpp | birbacher/plaincontainers | 27386929da24b3d82887699458c99fc293618d05 | [
"BSL-1.0"
] | null | null | null | container/contiguous_storage_impl.hpp | birbacher/plaincontainers | 27386929da24b3d82887699458c99fc293618d05 | [
"BSL-1.0"
] | null | null | null | #ifndef NEWCONTAINER_CONTAINER_CONTIGUOUSSTORAGE_IMPL_INCLUDED
#define NEWCONTAINER_CONTAINER_CONTIGUOUSSTORAGE_IMPL_INCLUDED
#include "container/contiguous_storage.hpp"
#include "memory/interface/allocator.hpp"
#include "memory/adapter/typed_allocator.hpp"
#include <cassert>
#include <memory>
#include <utility>
name... | 26.661538 | 71 | 0.767455 | birbacher |
c1cba5e3548121de6d7a0cbe39a36f7beb25fe6b | 13,348 | cpp | C++ | flatland_server/src/debug_visualization.cpp | schmiddey/flatland | 7ae1c7e5a3edcad372ccde56fd7b5e79484ffeeb | [
"BSD-3-Clause"
] | null | null | null | flatland_server/src/debug_visualization.cpp | schmiddey/flatland | 7ae1c7e5a3edcad372ccde56fd7b5e79484ffeeb | [
"BSD-3-Clause"
] | null | null | null | flatland_server/src/debug_visualization.cpp | schmiddey/flatland | 7ae1c7e5a3edcad372ccde56fd7b5e79484ffeeb | [
"BSD-3-Clause"
] | null | null | null | /*
* ______ __ __ __
* /\ _ \ __ /\ \/\ \ /\ \__
* \ \ \L\ \ __ __ /\_\ \_\ \ \ \____ ___\ \ ,_\ ____
* \ \ __ \/\ \/\ \\/\ \ /'_` \ \ '__`\ / __`\ \ \/ /',__\
* \ \ \/\ \ \ \_/ |\ \ \/\ \L\ \ \ \L\ \/\ \L\ \ \ \_/\__, `\
* \ \_\ \_\ \_... | 36.173442 | 121 | 0.641744 | schmiddey |
c1cd25572d1bd1f2e3eeef5280aa22a2722479d7 | 12,144 | cpp | C++ | src/coreclr/jit/likelyclass.cpp | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 3 | 2021-06-24T15:39:52.000Z | 2021-11-04T02:13:43.000Z | src/coreclr/jit/likelyclass.cpp | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 18 | 2019-12-03T00:21:59.000Z | 2022-01-30T04:45:58.000Z | src/coreclr/jit/likelyclass.cpp | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 2 | 2022-03-05T21:34:42.000Z | 2022-03-10T15:17:42.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX ... | 36.911854 | 120 | 0.523798 | JimmyCushnie |
c1cd7ca6031e50ca4a041303f4cf8898726f2ed3 | 1,735 | cpp | C++ | functions/func.cpp | lucienmakutano/learn-cpp | de78caba34295938462b229a8669feaf401b3dbe | [
"MIT"
] | null | null | null | functions/func.cpp | lucienmakutano/learn-cpp | de78caba34295938462b229a8669feaf401b3dbe | [
"MIT"
] | null | null | null | functions/func.cpp | lucienmakutano/learn-cpp | de78caba34295938462b229a8669feaf401b3dbe | [
"MIT"
] | null | null | null | #include "func.h"
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void print_vector(vector<string> v);
void print_vector(vector<int> v = {1, 2, 3, 4, 5});
void print_array(int arr[], size_t size); // mutable
void print_array(const int arr[], size_t size); // immutable
void pass_by_... | 18.263158 | 60 | 0.55562 | lucienmakutano |
c1d398d751c40a07b8c1e391757793dd50315106 | 2,047 | cpp | C++ | extensions/test/nsphere/nsphere-multi_within.cpp | jonasdmentia/geometry | 097f6fdbe98118be82cd1917cc72c3c6a37bdf30 | [
"BSL-1.0"
] | 326 | 2015-02-08T13:47:49.000Z | 2022-03-16T02:13:59.000Z | extensions/test/nsphere/nsphere-multi_within.cpp | jonasdmentia/geometry | 097f6fdbe98118be82cd1917cc72c3c6a37bdf30 | [
"BSL-1.0"
] | 623 | 2015-01-02T23:45:23.000Z | 2022-03-09T11:15:23.000Z | extensions/test/nsphere/nsphere-multi_within.cpp | jonasdmentia/geometry | 097f6fdbe98118be82cd1917cc72c3c6a37bdf30 | [
"BSL-1.0"
] | 215 | 2015-01-14T15:50:38.000Z | 2022-02-23T03:58:36.000Z | // Boost.Geometry (aka GGL, Generic Geometry Library)
//
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#inc... | 35.912281 | 102 | 0.745481 | jonasdmentia |
c1d6dd87f8eae1fe05c6d040b6aaee7b6fac87aa | 7,257 | cpp | C++ | Official Windows Platform Sample/Windows Phone 8.1 samples/[C++]-Windows Phone 8.1 samples/Association launching sample/C++/Shared/App.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2022-01-21T01:40:58.000Z | 2022-01-21T01:41:10.000Z | Official Windows Platform Sample/Windows Phone 8.1 samples/[C++]-Windows Phone 8.1 samples/Association launching sample/C++/Shared/App.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | Official Windows Platform Sample/Windows Phone 8.1 samples/[C++]-Windows Phone 8.1 samples/Association launching sample/C++/Shared/App.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2015-12-25T11:15:10.000Z | 2015-12-25T11:15:10.000Z | // Copyright (c) Microsoft. All rights reserved.
#include "pch.h"
using namespace SDKSample;
using namespace Concurrency;
using namespace Platform;
using namespace Windows::ApplicationModel;
using namespace Windows::ApplicationModel::Activation;
using namespace Windows::Foundation;
using namespace Windows::Foundatio... | 34.393365 | 139 | 0.656194 | zzgchina888 |
c1df72113b58732f01bd47e8eb6307510913a3db | 3,857 | cpp | C++ | plugins/logging/logging.cpp | rpastrana/HPCC-Platform | 489454bd326ed6a39228c81f5d837c276724c022 | [
"Apache-2.0"
] | null | null | null | plugins/logging/logging.cpp | rpastrana/HPCC-Platform | 489454bd326ed6a39228c81f5d837c276724c022 | [
"Apache-2.0"
] | null | null | null | plugins/logging/logging.cpp | rpastrana/HPCC-Platform | 489454bd326ed6a39228c81f5d837c276724c022 | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
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... | 44.333333 | 192 | 0.681618 | rpastrana |
c1e40a0ff91577b0b279fbd5a76a1932fb55a497 | 2,277 | hpp | C++ | cppcache/src/StructSetImpl.hpp | mcmellawatt/geode-native | 53315985c4386e6781473c5713d638c8139e3e8e | [
"Apache-2.0"
] | null | null | null | cppcache/src/StructSetImpl.hpp | mcmellawatt/geode-native | 53315985c4386e6781473c5713d638c8139e3e8e | [
"Apache-2.0"
] | null | null | null | cppcache/src/StructSetImpl.hpp | mcmellawatt/geode-native | 53315985c4386e6781473c5713d638c8139e3e8e | [
"Apache-2.0"
] | null | null | null | #pragma once
#ifndef GEODE_STRUCTSETIMPL_H_
#define GEODE_STRUCTSETIMPL_H_
/*
* 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 f... | 28.111111 | 78 | 0.748353 | mcmellawatt |
c1e6dd448aa4d38f5b3151c626d05271bb339353 | 730 | cc | C++ | src/FillTheSkips.cc | DrScKAWAMOTO/cmdrecplay | f1191b455cb63460f1fd34e947fdb1474489b94c | [
"Apache-2.0"
] | null | null | null | src/FillTheSkips.cc | DrScKAWAMOTO/cmdrecplay | f1191b455cb63460f1fd34e947fdb1474489b94c | [
"Apache-2.0"
] | null | null | null | src/FillTheSkips.cc | DrScKAWAMOTO/cmdrecplay | f1191b455cb63460f1fd34e947fdb1474489b94c | [
"Apache-2.0"
] | null | null | null | /*
* Project: ifendif
* Version: 1.0
* Copyright: (C) 2017 Dr.Sc.KAWAMOTO,Takuji (Ext)
* Create: 2017/03/03 05:38:45 JST
*/
#include <string.h>
#include "FillTheSkips.h"
FillTheSkips::FillTheSkips(LineBuffer* parent)
: p_parent(parent)
{
p_parent->read_line();
}
FillTheSkips::~FillTheSkips()
{
}
bool Fill... | 16.976744 | 50 | 0.593151 | DrScKAWAMOTO |
c1e811cc5876921134c52168170b4d40ce9876d5 | 303 | hpp | C++ | pythran/pythonic/__builtin__/RuntimeWarning.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 1 | 2018-03-24T00:33:03.000Z | 2018-03-24T00:33:03.000Z | pythran/pythonic/__builtin__/RuntimeWarning.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/RuntimeWarning.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_BUILTIN_RUNTIMEWARNING_HPP
#define PYTHONIC_BUILTIN_RUNTIMEWARNING_HPP
#include "pythonic/include/__builtin__/RuntimeWarning.hpp"
#include "pythonic/types/exceptions.hpp"
PYTHONIC_NS_BEGIN
namespace __builtin__
{
PYTHONIC_EXCEPTION_IMPL(RuntimeWarning)
}
PYTHONIC_NS_END
#endif
| 16.833333 | 58 | 0.854785 | SylvainCorlay |
c1ea4f480b12eda6b000d01d3c2b8a3f6e09de4c | 53,483 | cpp | C++ | meta/source/app/App.cpp | congweitao/congfs | 54cedf484f8a2cacab567fe182cc1f6413c25cf2 | [
"BSD-3-Clause"
] | null | null | null | meta/source/app/App.cpp | congweitao/congfs | 54cedf484f8a2cacab567fe182cc1f6413c25cf2 | [
"BSD-3-Clause"
] | null | null | null | meta/source/app/App.cpp | congweitao/congfs | 54cedf484f8a2cacab567fe182cc1f6413c25cf2 | [
"BSD-3-Clause"
] | null | null | null | #include <common/app/log/LogContext.h>
#include <common/components/worker/queue/UserWorkContainer.h>
#include <common/components/worker/DummyWork.h>
#include <common/components/ComponentInitException.h>
#include <common/components/RegistrationDatagramListener.h>
#include <common/net/message/nodes/RegisterNodeMsg.h>
#in... | 32.179904 | 116 | 0.687116 | congweitao |
c1ea541864e67d3598c7f0f9c36cdd7ca95d8c4f | 10,990 | cpp | C++ | interface/src/ui/HMDToolsDialog.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | null | null | null | interface/src/ui/HMDToolsDialog.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | null | null | null | interface/src/ui/HMDToolsDialog.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | null | null | null | //
// HMDToolsDialog.cpp
// interface/src/ui
//
// Created by Brad Hefta-Gaub on 7/19/13.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <QDesktopWidget>
#include <Q... | 35.566343 | 117 | 0.643494 | stojce |
c1ec3c57e46722eccc5fd273c4183b50f4f3aff1 | 1,804 | hpp | C++ | shared/src/single_application.hpp | amazingidiot/qastools | 6e3b0532ebc353c79d6df0628ed375e3d3c09d12 | [
"MIT"
] | null | null | null | shared/src/single_application.hpp | amazingidiot/qastools | 6e3b0532ebc353c79d6df0628ed375e3d3c09d12 | [
"MIT"
] | null | null | null | shared/src/single_application.hpp | amazingidiot/qastools | 6e3b0532ebc353c79d6df0628ed375e3d3c09d12 | [
"MIT"
] | null | null | null | /// QasTools: Desktop toolset for the Linux sound system ALSA.
/// \copyright See COPYING file.
#ifndef __INC_single_application_hpp__
#define __INC_single_application_hpp__
#include <QApplication>
#include <QList>
#include <QLocalServer>
#include <QPointer>
class Single_Application : public QApplication
{
Q_OBJEC... | 15.824561 | 67 | 0.695122 | amazingidiot |
c1f00d76bd6d589ade8d2cf83656cb920d8689ca | 3,229 | cpp | C++ | src/qt/btcu/mninfodialog.cpp | askiiRobotics/orion | b664d3bbcd0c8bde3798724e33cc56aae6d2b6d8 | [
"MIT"
] | 2 | 2021-02-05T18:37:43.000Z | 2021-04-27T04:29:22.000Z | src/qt/btcu/mninfodialog.cpp | askiiRobotics/orion | b664d3bbcd0c8bde3798724e33cc56aae6d2b6d8 | [
"MIT"
] | 2 | 2021-02-15T13:16:49.000Z | 2021-05-19T12:06:09.000Z | src/qt/btcu/mninfodialog.cpp | askiiRobotics/orion | b664d3bbcd0c8bde3798724e33cc56aae6d2b6d8 | [
"MIT"
] | 4 | 2021-02-22T22:03:39.000Z | 2022-03-31T10:18:34.000Z | // Copyright (c) 2019 The PIVX developers
// Copyright (c) 2020 The BTCU developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/btcu/mninfodialog.h"
#include "qt/btcu/forms/ui_mninfodialog.h"
#include "walletmod... | 40.873418 | 194 | 0.6869 | askiiRobotics |
c1f216fd0d04799b4abcb0f5d4789a723dbfe7b6 | 4,452 | cpp | C++ | GUI.cpp | guc-cs/FPS-Trainer | 84c36af2abf9182fd76fead037ba7f6866a2749b | [
"MIT"
] | null | null | null | GUI.cpp | guc-cs/FPS-Trainer | 84c36af2abf9182fd76fead037ba7f6866a2749b | [
"MIT"
] | 1 | 2020-04-11T21:04:28.000Z | 2020-04-12T22:05:31.000Z | GUI.cpp | guc-cs/FPS-Trainer | 84c36af2abf9182fd76fead037ba7f6866a2749b | [
"MIT"
] | null | null | null | #include <GL/glut.h>
#include "GUI.h"
GUI gui;
Point::Point()
{
}
Point::Point(float posX, float posY)
{
x = posX;
y = posY;
}
MenuItem::MenuItem()
{
}
MenuItem::MenuItem(char* str)
{
s = str;
}
MenuItem::MenuItem(char* str, Point p1, Point p2, Point p3, Point p4)
{
s = str;
one = ... | 22.598985 | 94 | 0.623091 | guc-cs |
c1f79185179907836710189d5ff29b8af4818d3a | 9,227 | hpp | C++ | kty/containers/stringpool.hpp | mattheuslee/Kitty | 50bd18dc0b6c895f4b6b816c7340c03dd00a5f40 | [
"MIT"
] | null | null | null | kty/containers/stringpool.hpp | mattheuslee/Kitty | 50bd18dc0b6c895f4b6b816c7340c03dd00a5f40 | [
"MIT"
] | 6 | 2017-08-28T15:39:28.000Z | 2018-04-24T16:02:09.000Z | kty/containers/stringpool.hpp | mattheuslee/KittyInterpreter | 50bd18dc0b6c895f4b6b816c7340c03dd00a5f40 | [
"MIT"
] | null | null | null | #pragma once
#include <kty/sizes.hpp>
#include <kty/types.hpp>
namespace kty {
/*!
@brief Class that maintains all the strings in the program.
The memory pool is created on the stack to avoid heap fragmentation.
Holds enough memory to allocate N strings of at most length S.
*... | 29.860841 | 139 | 0.539395 | mattheuslee |
c1fbe49daca95bdaaa9b831113042e4ac43b03a6 | 1,863 | cpp | C++ | Source/Particles/Gather/GetExternalFields.cpp | rlombardini76/artemis | 268f59491b263d6ea0197440abc837e1610279fc | [
"BSD-3-Clause-LBNL"
] | 2 | 2020-12-02T15:27:51.000Z | 2021-01-13T11:31:37.000Z | Source/Particles/Gather/GetExternalFields.cpp | rlombardini76/artemis | 268f59491b263d6ea0197440abc837e1610279fc | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/Particles/Gather/GetExternalFields.cpp | rlombardini76/artemis | 268f59491b263d6ea0197440abc837e1610279fc | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include "WarpX.H"
#include "Particles/Gather/GetExternalFields.H"
GetExternalEField::GetExternalEField (const WarpXParIter& a_pti, int a_offset) noexcept
{
auto& warpx = WarpX::GetInstance();
auto& mypc = warpx.GetPartContainer();
if (mypc.m_E_ext_particle_s=="constant" || mypc.m_E_ext_particle_s=="defaul... | 39.638298 | 87 | 0.701557 | rlombardini76 |
de00be4d0f1b03344bc2724dfe63180bcba2c6c0 | 22,435 | cpp | C++ | src/jitcat/ASTHelper.cpp | mvhooren/JitCat | 8e05b51c5feda8fa9258ba443854b23c4ad8bf7c | [
"MIT"
] | 14 | 2019-03-16T07:00:44.000Z | 2021-10-20T23:36:51.000Z | src/jitcat/ASTHelper.cpp | mvhooren/JitCat | 8e05b51c5feda8fa9258ba443854b23c4ad8bf7c | [
"MIT"
] | 13 | 2019-11-22T12:43:55.000Z | 2020-05-25T13:09:08.000Z | src/jitcat/ASTHelper.cpp | mvhooren/JitCat | 8e05b51c5feda8fa9258ba443854b23c4ad8bf7c | [
"MIT"
] | 1 | 2019-11-23T17:59:58.000Z | 2019-11-23T17:59:58.000Z | /*
This file is part of the JitCat library.
Copyright (C) Machiel van Hooren 2018
Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
#include "jitcat/ASTHelper.h"
#include "jitcat/CatArgumentList.h"
#include "jitcat/CatAssignableExpression.h"
#include "jitcat/CatBui... | 36.302589 | 268 | 0.727925 | mvhooren |
de03ff19c26b6bfe1f4b0974b048e5b9412c4953 | 9,211 | cpp | C++ | src/syntax/lambda_man.cpp | tomoki/Shiranui | 0c02933d718ecf5c446ca00c0ede17fd1897f58d | [
"BSD-3-Clause"
] | 12 | 2015-01-10T15:21:09.000Z | 2021-04-09T02:53:23.000Z | src/syntax/lambda_man.cpp | tomoki/Shiranui | 0c02933d718ecf5c446ca00c0ede17fd1897f58d | [
"BSD-3-Clause"
] | 3 | 2015-01-01T04:26:07.000Z | 2015-08-20T12:51:39.000Z | src/syntax/lambda_man.cpp | tomoki/Shiranui | 0c02933d718ecf5c446ca00c0ede17fd1897f58d | [
"BSD-3-Clause"
] | 1 | 2020-05-20T08:25:43.000Z | 2020-05-20T08:25:43.000Z | #include "lambda_man.hpp"
namespace shiranui{
namespace syntax{
void LambdaMarkerScanner::visit(ast::Identifier&){}
void LambdaMarkerScanner::visit(ast::Variable&){}
void LambdaMarkerScanner::visit(ast::Number&){}
void LambdaMarkerScanner::visit(ast::String&){}
void LambdaMa... | 36.551587 | 84 | 0.525676 | tomoki |
90024ead7d13719eb9fa2cbabebb488ad8227d5c | 7,057 | hpp | C++ | include/multigraph/functors.hpp | YuanL12/BATS | 35a32facc87e17649b7fc32225c8ffaf0301bbfa | [
"MIT"
] | null | null | null | include/multigraph/functors.hpp | YuanL12/BATS | 35a32facc87e17649b7fc32225c8ffaf0301bbfa | [
"MIT"
] | null | null | null | include/multigraph/functors.hpp | YuanL12/BATS | 35a32facc87e17649b7fc32225c8ffaf0301bbfa | [
"MIT"
] | null | null | null | #pragma once
/*
Functors from one type of diagram to another
*/
#include "diagram.hpp"
#include <topology/data.hpp>
#include <topology/cover.hpp>
#include <topology/rips.hpp>
#include <topology/nerve.hpp>
#include <complex/simplicial_complex.hpp>
#include <complex/simplicial_map.hpp>
#include <chain/chain_complex.hpp>
... | 24.848592 | 90 | 0.659912 | YuanL12 |
9005b1e0cf6005acbdc988b40daf51ac99f3edd1 | 806 | cpp | C++ | Problema_88/Problema_88.cpp | EneRgYCZ/Problems | e8bf9aa4bba2b5ead25fc5ce482a36c861501f46 | [
"MIT"
] | null | null | null | Problema_88/Problema_88.cpp | EneRgYCZ/Problems | e8bf9aa4bba2b5ead25fc5ce482a36c861501f46 | [
"MIT"
] | null | null | null | Problema_88/Problema_88.cpp | EneRgYCZ/Problems | e8bf9aa4bba2b5ead25fc5ce482a36c861501f46 | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <string.h>
using namespace std;
ifstream fin("palindrom.in");
ofstream fout("palindrom.out");
int main()
{
int index = 0, ok = 0;
char s[256];
fin>>index;
for (int i = index; i > 0; i--)
{
fin.getline(s, 256);
int inceput = 0, sfarsit ... | 19.190476 | 49 | 0.361042 | EneRgYCZ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.