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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7fca7f0a1ab5371c77521df02499fe293640447 | 1,435 | hpp | C++ | include/MeshEditor/Cube.hpp | THOSE-EYES/MeshEditor | 6a58460a3ddfeba5d372aa92cd120b0c2a108c35 | [
"Apache-2.0"
] | null | null | null | include/MeshEditor/Cube.hpp | THOSE-EYES/MeshEditor | 6a58460a3ddfeba5d372aa92cd120b0c2a108c35 | [
"Apache-2.0"
] | null | null | null | include/MeshEditor/Cube.hpp | THOSE-EYES/MeshEditor | 6a58460a3ddfeba5d372aa92cd120b0c2a108c35 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 Illia Shvarov
*
* 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 ... | 23.916667 | 75 | 0.69547 | THOSE-EYES |
f7fd34a2d2b297a07b9f4de7d7527453d94707e7 | 3,692 | cpp | C++ | Engine/Source/ComponentManager.cpp | AdamSzentesiGrip/MiniECS | c938b5e90746c06f9a4e8ca8e1c2d3e8bf3c3faf | [
"Unlicense"
] | null | null | null | Engine/Source/ComponentManager.cpp | AdamSzentesiGrip/MiniECS | c938b5e90746c06f9a4e8ca8e1c2d3e8bf3c3faf | [
"Unlicense"
] | null | null | null | Engine/Source/ComponentManager.cpp | AdamSzentesiGrip/MiniECS | c938b5e90746c06f9a4e8ca8e1c2d3e8bf3c3faf | [
"Unlicense"
] | null | null | null | #include "../Include/ComponentManager.h"
namespace Mini
{
ComponentManager::ComponentManager()
{
_ComponentIDRegister = new std::map<size_t, int_componentID>();
_ComponentBuffers = new std::vector<ComponentBufferBase*>();
}
ComponentManager::~ComponentManager()
{
delete _ComponentIDRegister;
delete _Comp... | 29.536 | 115 | 0.765439 | AdamSzentesiGrip |
7902f4e5ce76bdc4d61f5467c02544bbabca6ad9 | 640 | hpp | C++ | plugins/opengl/include/sge/opengl/target/set_flipped_area.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/include/sge/opengl/target/set_flipped_area.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/include/sge/opengl/target/set_flipped_area.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_OPENGL_TARGET_SET_FLIPPED_AREA_HPP_INCLUDED
#define SGE_OPENGL_TARGET_SET_FLIPPED_AREA_... | 26.666667 | 61 | 0.751563 | cpreh |
7904ba5b69e6949c2728b7908c9d040da5b38e9d | 23,937 | cpp | C++ | Users.cpp | Yeeler/open-source-search-engine | 260864b36404a550c5268d2e2224c18d42e3eeb0 | [
"Apache-2.0"
] | null | null | null | Users.cpp | Yeeler/open-source-search-engine | 260864b36404a550c5268d2e2224c18d42e3eeb0 | [
"Apache-2.0"
] | null | null | null | Users.cpp | Yeeler/open-source-search-engine | 260864b36404a550c5268d2e2224c18d42e3eeb0 | [
"Apache-2.0"
] | null | null | null | #include "Users.h"
Users g_users;
RdbTree g_testResultsTree;
// intialize User members
User::User(){
m_permissions = 0;
m_numTagIds = 0;
m_numColls = 0;
m_allColls = false;
m_numIps = 0;
m_allIps = false;
m_numPages = 0;
m_allPages = 0;
m_reLogin = false;
m_username[0] = '\0';
m... | 26.685619 | 77 | 0.618081 | Yeeler |
790668ab16a374fc5914f305f2afa4855615ed99 | 37,027 | cpp | C++ | FindMeSAT_SW/amateurfunk-funkrufmaster_19862/src/digi.cpp | DF4IAH/GPS-TrackMe | 600511a41c995e98ec6e06a9e5bb1b64cce9b7a6 | [
"MIT"
] | 2 | 2018-01-18T16:03:41.000Z | 2018-04-01T15:55:59.000Z | FindMeSAT_SW/amateurfunk-funkrufmaster_19862/src/digi.cpp | DF4IAH/GPS-TrackMe | 600511a41c995e98ec6e06a9e5bb1b64cce9b7a6 | [
"MIT"
] | null | null | null | FindMeSAT_SW/amateurfunk-funkrufmaster_19862/src/digi.cpp | DF4IAH/GPS-TrackMe | 600511a41c995e98ec6e06a9e5bb1b64cce9b7a6 | [
"MIT"
] | 2 | 2020-05-22T17:01:24.000Z | 2021-10-08T15:53:01.000Z | /****************************************************************************
* *
* *
* Copyright (C) 2002-2004 by Holger Flemming *
* ... | 22.688113 | 115 | 0.556891 | DF4IAH |
790b13872a46feaeb2cd735acc929f881e79b0b1 | 11,690 | cpp | C++ | Motor2D/Enemy.cpp | pink-king/Final-Fantasy-Tactics | b5dcdd0aa548900b3b2279cd4c6d4220f5869c08 | [
"Unlicense"
] | 9 | 2019-04-19T17:25:34.000Z | 2022-01-30T14:46:30.000Z | Motor2D/Enemy.cpp | pink-king/Final-Fantasy-Tactics | b5dcdd0aa548900b3b2279cd4c6d4220f5869c08 | [
"Unlicense"
] | 44 | 2019-03-22T10:22:19.000Z | 2019-08-08T07:48:27.000Z | Motor2D/Enemy.cpp | pink-king/Final-Fantasy-Tactics | b5dcdd0aa548900b3b2279cd4c6d4220f5869c08 | [
"Unlicense"
] | 1 | 2022-01-30T14:46:34.000Z | 2022-01-30T14:46:34.000Z | #include "Enemy.h"
#include "j1App.h"
#include "j1Render.h"
#include "j1EntityFactory.h"
#include "j1PathFinding.h"
#include "j1Map.h"
#include "j1Scene.h"
#include "WaveManager.h"
#include <ctime>
#include <random>
Enemy::Enemy(iPoint position, uint movementSpeed, uint detectionRange, uint attackRange, uint baseDamage... | 28.651961 | 198 | 0.688537 | pink-king |
790b79670bda81a9c4bf639db26d4642f0963209 | 847 | cpp | C++ | src/easteregg.cpp | CodeScratcher/shimmerlang | 2137b3b11574d6b378aff8df7a3342c1a0915964 | [
"MIT"
] | null | null | null | src/easteregg.cpp | CodeScratcher/shimmerlang | 2137b3b11574d6b378aff8df7a3342c1a0915964 | [
"MIT"
] | 3 | 2020-10-29T21:02:49.000Z | 2021-06-14T19:40:36.000Z | src/easteregg.cpp | CodeScratcher/shimmerlang | 2137b3b11574d6b378aff8df7a3342c1a0915964 | [
"MIT"
] | null | null | null | #include <string>
#include "easteregg.h"
std::string get_easteregg(int n) {
return (
"\x1b[1;93m"
R"( )" "\n"
R"( LOL MEMES . . WOW FTLULZ )" "\n"
R"( XD ____ __ .*\.* SUCH C... | 42.35 | 79 | 0.250295 | CodeScratcher |
790d4dbebc90149c98b63fbfb10a26e7249295a7 | 263 | hpp | C++ | packets/PKT_S2C_DisableHUDForEndOfGame.hpp | HoDANG/OGLeague2 | 21efea8ea480972a6d686c4adefea03d57da5e9d | [
"MIT"
] | 1 | 2022-03-27T10:21:41.000Z | 2022-03-27T10:21:41.000Z | packets/PKT_S2C_DisableHUDForEndOfGame.hpp | HoDANG/OGLeague2 | 21efea8ea480972a6d686c4adefea03d57da5e9d | [
"MIT"
] | null | null | null | packets/PKT_S2C_DisableHUDForEndOfGame.hpp | HoDANG/OGLeague2 | 21efea8ea480972a6d686c4adefea03d57da5e9d | [
"MIT"
] | 3 | 2019-07-20T03:59:10.000Z | 2022-03-27T10:20:09.000Z | #ifndef HPP_180_PKT_S2C_DisableHUDForEndOfGame_HPP
#define HPP_180_PKT_S2C_DisableHUDForEndOfGame_HPP
#include "base.hpp"
#pragma pack(push, 1)
struct PKT_S2C_DisableHUDForEndOfGame_s : DefaultPacket<PKT_S2C_DisableHUDForEndOfGame>
{
};
#pragma pack(pop)
#endif | 23.909091 | 87 | 0.851711 | HoDANG |
790ecd27034330df97129d53197f2f617fcaf44d | 5,381 | cpp | C++ | Source/Desert.cpp | michal-z/Desert | 845a7f5f7b1927f6716c37fb3aa0bbe71645d49b | [
"MIT"
] | 1 | 2021-11-07T07:22:40.000Z | 2021-11-07T07:22:40.000Z | Source/Desert.cpp | michal-z/Desert | 845a7f5f7b1927f6716c37fb3aa0bbe71645d49b | [
"MIT"
] | null | null | null | Source/Desert.cpp | michal-z/Desert | 845a7f5f7b1927f6716c37fb3aa0bbe71645d49b | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define GLFW_INCLUDE_GLCOREARB
#include <GLFW/glfw3.h>
#define IMAGE_WIDTH 1280
#define IMAGE_HEIGHT 720
static PFNGLCREATEVERTEXARRAYSPROC glCreateVertexArrays;
static PFNGLCREATEPROGRAMPIPELINESPROC glCreateProgramPipelines;
static PFNGLCREATESHADERPROGRAM... | 33.01227 | 111 | 0.773091 | michal-z |
791034bc1e0f89557bbc5aab3358df5d200cca68 | 1,832 | cpp | C++ | tggdkjxv/State.Statistics.cpp | playdeezgames/tggdkjxv | bdb1a31ffff2dd3b3524de4639846fa902b893b9 | [
"MIT"
] | null | null | null | tggdkjxv/State.Statistics.cpp | playdeezgames/tggdkjxv | bdb1a31ffff2dd3b3524de4639846fa902b893b9 | [
"MIT"
] | null | null | null | tggdkjxv/State.Statistics.cpp | playdeezgames/tggdkjxv | bdb1a31ffff2dd3b3524de4639846fa902b893b9 | [
"MIT"
] | null | null | null | #include "Application.Renderer.h"
#include "Application.Command.h"
#include "Application.MouseButtonUp.h"
#include "Application.OnEnter.h"
#include "Game.Audio.Mux.h"
#include "Game.Achievements.h"
#include "Visuals.Texts.h"
#include <format>
#include "Common.Utility.h"
#include <tuple>
namespace state::Statistics
{
c... | 31.050847 | 118 | 0.708515 | playdeezgames |
79119636105a12278d7b0567946a2d866fe025ee | 3,010 | hpp | C++ | common-utilities/libs/math/tests/testStatistics/testLinearLeastSquaresFitting.hpp | crdrisko/drychem | 15de97f277a836fb0bfb34ac6489fbc037b5151f | [
"MIT"
] | 1 | 2020-09-26T12:38:54.000Z | 2020-09-26T12:38:54.000Z | common-utilities/libs/math/tests/testStatistics/testLinearLeastSquaresFitting.hpp | crdrisko/cpp-units | 15de97f277a836fb0bfb34ac6489fbc037b5151f | [
"MIT"
] | 9 | 2020-10-05T12:53:12.000Z | 2020-11-02T19:28:01.000Z | common-utilities/libs/math/tests/testStatistics/testLinearLeastSquaresFitting.hpp | crdrisko/cpp-units | 15de97f277a836fb0bfb34ac6489fbc037b5151f | [
"MIT"
] | 1 | 2020-12-04T13:34:41.000Z | 2020-12-04T13:34:41.000Z | // Copyright (c) 2020-2021 Cody R. Drisko. All rights reserved.
// Licensed under the MIT License. See the LICENSE file in the project root for more information.
//
// Name: testLinearLeastSquaresFitting.hpp
// Author: crdrisko
// Date: 10/26/2020-11:56:41
// Description: Provides ~100% unit test coverage over the line... | 39.605263 | 119 | 0.683389 | crdrisko |
79156c92a9f526a43c4ce31b21ba9cadadf8ba95 | 1,892 | cpp | C++ | leetcode/problems/hard/927-three-equal-parts.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | leetcode/problems/hard/927-three-equal-parts.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | leetcode/problems/hard/927-three-equal-parts.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Three Equal Parts
https://leetcode.com/problems/three-equal-parts/
You are given an array arr which consists of only zeros and ones, divide the array into three non-empty parts such that all of these parts represent the same binary value.
If it is possible, return any [i, j] with i + 1 < j, such that:
arr[0], arr... | 29.5625 | 216 | 0.580338 | wingkwong |
7919d493ae95ee0cae18e1b5222c4dcb2d338549 | 552 | cpp | C++ | source/chapter_02/listings/listing_02_05_ourfunc.cpp | ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition | ce2c8fca379508929dfd24dce10eff2c09117999 | [
"MIT"
] | null | null | null | source/chapter_02/listings/listing_02_05_ourfunc.cpp | ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition | ce2c8fca379508929dfd24dce10eff2c09117999 | [
"MIT"
] | null | null | null | source/chapter_02/listings/listing_02_05_ourfunc.cpp | ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition | ce2c8fca379508929dfd24dce10eff2c09117999 | [
"MIT"
] | null | null | null | /**
* \file
* listing_02_05_ourfunc.cpp
*
* \brief
* Defining your own function.
*/
#include <iostream>
void simon(int);
int main()
{
using namespace std;
simon(3); // call the simon() function
cout << "Pick an integer: ";
int count;
cin >> count;
simon(count); // call the simon() function again
... | 16.727273 | 65 | 0.630435 | ShinyGreenRobot |
791bcff4aab5d6974cf4327411cd4c422c555f06 | 48,594 | cpp | C++ | src/serverbase/datatable/DataTableLoader.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | src/serverbase/datatable/DataTableLoader.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | src/serverbase/datatable/DataTableLoader.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | #include "ServerBasePCH.h"
#include <gideon/serverbase/datatable/DataTableLoader.h>
#include <gideon/cs/datatable/DataTableFactory.h>
#include <gideon/cs/datatable/EquipTable.h>
#include <gideon/cs/datatable/ReprocessTable.h>
#include <gideon/cs/datatable/PlayerActiveSkillTable.h>
#include <gideon/cs/datatable/SOActive... | 33.629066 | 99 | 0.733239 | mark-online |
791c9ab9c4e0c2969625dec69ac7b20ee96f383c | 3,535 | cpp | C++ | Metazion/Net/ComConnecter.cpp | KaleoFeng/Metazion | 5f1149d60aa87b391c2f40de7a89a5044701f2ca | [
"MIT"
] | 15 | 2018-10-30T07:49:02.000Z | 2020-10-20T06:27:08.000Z | Metazion/Net/ComConnecter.cpp | kaleofeng/metazion | 5f1149d60aa87b391c2f40de7a89a5044701f2ca | [
"MIT"
] | null | null | null | Metazion/Net/ComConnecter.cpp | kaleofeng/metazion | 5f1149d60aa87b391c2f40de7a89a5044701f2ca | [
"MIT"
] | 5 | 2020-12-04T07:39:31.000Z | 2021-11-23T03:16:39.000Z | #include "Metazion/Net/ComConnecter.hpp"
#include <Metazion/Share/Time/Time.hpp>
#include "Metazion/Net/TransmitSocket.hpp"
DECL_NAMESPACE_MZ_NET_BEGIN
ComConnecter::ComConnecter(TransmitSocket& socket)
: m_socket(socket) {}
ComConnecter::~ComConnecter() {}
void ComConnecter::Reset() {
m_stage = STAGE_NON... | 22.373418 | 74 | 0.641018 | KaleoFeng |
791f893820e1fda1d7684a2eff098374840d4a7e | 2,188 | cpp | C++ | cppcheck/data/c_files/13.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | 2 | 2022-03-23T12:16:20.000Z | 2022-03-31T06:19:40.000Z | cppcheck/data/c_files/13.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | cppcheck/data/c_files/13.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | IDNConversionResult IDNToUnicodeWithAdjustmentsImpl(
base::StringPiece host,
base::OffsetAdjuster::Adjustments* adjustments,
bool enable_spoof_checks) {
if (adjustments)
adjustments->clear();
// Convert the ASCII input to a base::string16 for ICU.
base::string16 input16;
input16.reserve(host.length());
input16.insert(i... | 32.176471 | 77 | 0.762797 | awsm-research |
792136d98b549852f7f8776bf1bebc52c9f940be | 9,845 | cpp | C++ | src/odbc/Connection.cpp | mrylov/odbc-cpp-wrapper | c822bc036196aa1819ccf69a88556382eeae925f | [
"Apache-2.0"
] | 34 | 2019-02-25T14:43:58.000Z | 2022-03-14T17:15:44.000Z | src/odbc/Connection.cpp | mrylov/odbc-cpp-wrapper | c822bc036196aa1819ccf69a88556382eeae925f | [
"Apache-2.0"
] | 18 | 2019-05-14T10:00:09.000Z | 2022-03-14T17:15:05.000Z | src/odbc/Connection.cpp | mrylov/odbc-cpp-wrapper | c822bc036196aa1819ccf69a88556382eeae925f | [
"Apache-2.0"
] | 28 | 2019-05-14T09:25:30.000Z | 2022-03-18T04:21:21.000Z | #include <limits>
#include <odbc/Connection.h>
#include <odbc/DatabaseMetaData.h>
#include <odbc/DatabaseMetaDataUnicode.h>
#include <odbc/Environment.h>
#include <odbc/Exception.h>
#include <odbc/PreparedStatement.h>
#include <odbc/ResultSet.h>
#include <odbc/Statement.h>
#include <odbc/internal/Macros.h>
#include <od... | 37.011278 | 80 | 0.528085 | mrylov |
792273d865dd48c6e4851aaa7e72ca73121c7e56 | 26,275 | cc | C++ | src/cxx/default_ast_visitor.cc | robertoraggi/cplusplus | d15d4669629a7cc0347ea7ed60697b55cbd44523 | [
"MIT"
] | 49 | 2015-03-08T11:28:28.000Z | 2021-11-29T14:23:39.000Z | src/cxx/default_ast_visitor.cc | robertoraggi/cplusplus | d15d4669629a7cc0347ea7ed60697b55cbd44523 | [
"MIT"
] | 19 | 2021-03-06T05:14:02.000Z | 2021-12-02T19:48:07.000Z | src/cxx/default_ast_visitor.cc | robertoraggi/cplusplus | d15d4669629a7cc0347ea7ed60697b55cbd44523 | [
"MIT"
] | 10 | 2015-01-08T16:08:49.000Z | 2022-01-27T06:42:51.000Z | // Copyright (c) 2021 Roberto Raggi <roberto.raggi@gmail.com>
//
// 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, cop... | 33.903226 | 80 | 0.785157 | robertoraggi |
792cbb7ef29edd92cecb77d6adc5eec00c43f4ef | 13,490 | cpp | C++ | src/ProjectForecast/Systems/GMSRoomManagementSystem.cpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2019-04-09T13:03:11.000Z | 2021-01-27T04:58:29.000Z | src/ProjectForecast/Systems/GMSRoomManagementSystem.cpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 2 | 2017-02-06T03:48:45.000Z | 2020-08-31T01:30:10.000Z | src/ProjectForecast/Systems/GMSRoomManagementSystem.cpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2020-06-28T08:19:53.000Z | 2020-06-28T16:30:19.000Z | #include "GMSRoomManagementSystem.hpp"
#include "../Events/GMSRoomLoadRequestEvent.hpp"
#include "../AssetResources/GMSRoomResource.hpp"
#include "../AssetResources/GMSObjectResource.hpp"
#include "../AssetResources/OtherGMSResources.hpp"
#include "../AssetResources/TextureInfoResource.hpp"
#include <KEngine/Graphics... | 44.229508 | 160 | 0.58169 | yxbh |
792cfe158360577bc0a80ff036dba3e4304b7250 | 512 | hpp | C++ | EiRas/Framework/Component/LogSys/LogManager.hpp | MonsterENT/EiRas | b29592da60b1a9085f5a2d8fa4ed01b43660f712 | [
"MIT"
] | 1 | 2019-12-24T10:12:16.000Z | 2019-12-24T10:12:16.000Z | EiRas/Framework/Component/LogSys/LogManager.hpp | MonsterENT/EiRas | b29592da60b1a9085f5a2d8fa4ed01b43660f712 | [
"MIT"
] | null | null | null | EiRas/Framework/Component/LogSys/LogManager.hpp | MonsterENT/EiRas | b29592da60b1a9085f5a2d8fa4ed01b43660f712 | [
"MIT"
] | null | null | null | //
// LogManager.hpp
// EiRasMetalBuild
//
// Created by MonsterENT on 1/7/20.
// Copyright © 2020 MonsterENT. All rights reserved.
//
#ifndef LogManager_hpp
#define LogManager_hpp
#include <string>
#include <Global/GlobalDefine.h>
namespace LogSys {
class LogManager
{
public:
static void DebugPrint(std::str... | 18.285714 | 53 | 0.708984 | MonsterENT |
792f856eec0bfa0b84754b95d0ebf9e93ebe8d6d | 661 | hpp | C++ | src/core/kext/RemapFunc/ForceNumLockOn.hpp | gkb/Karabiner | f47307d4fc89a4c421d10157d059293c508f721a | [
"Unlicense"
] | null | null | null | src/core/kext/RemapFunc/ForceNumLockOn.hpp | gkb/Karabiner | f47307d4fc89a4c421d10157d059293c508f721a | [
"Unlicense"
] | null | null | null | src/core/kext/RemapFunc/ForceNumLockOn.hpp | gkb/Karabiner | f47307d4fc89a4c421d10157d059293c508f721a | [
"Unlicense"
] | null | null | null | #ifndef FORCENUMLOCKON_HPP
#define FORCENUMLOCKON_HPP
#include "RemapFuncBase.hpp"
namespace org_pqrs_Karabiner {
namespace RemapFunc {
class ForceNumLockOn final : public RemapFuncBase {
public:
ForceNumLockOn(void) : RemapFuncBase(BRIDGE_REMAPTYPE_FORCENUMLOCKON),
index_(0), forceOffMode_... | 22.793103 | 72 | 0.69289 | gkb |
79321995f0a323a5d0c3fe1abc92af50403e8719 | 1,360 | cpp | C++ | Day1-1/main.cpp | MPC-Game-Programming-Practice/Prantice | 42097c970aa5cb31fad31841db70f6fcc3536fb5 | [
"BSD-2-Clause"
] | null | null | null | Day1-1/main.cpp | MPC-Game-Programming-Practice/Prantice | 42097c970aa5cb31fad31841db70f6fcc3536fb5 | [
"BSD-2-Clause"
] | null | null | null | Day1-1/main.cpp | MPC-Game-Programming-Practice/Prantice | 42097c970aa5cb31fad31841db70f6fcc3536fb5 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
using namespace std;
// 以下に、和とスカラー倍の定義されたベクトルを表す構造体 Vector を定義する
// Vector構造体のメンバ変数を書く
// double x x座標を表す
// double y y座標を表す
// コンストラクタの定義を書く
// 引数:double argX, double argY (それぞれx座標の値、y座標の値を表す)
// コンストラクタの説明:メンバー変数xにargXを代入し、メンバー変数yにargYを代入する。
// メンバ関数 multiply の定義を書く
// 関数名:multiply
//... | 17.894737 | 53 | 0.616912 | MPC-Game-Programming-Practice |
a6b2ea36193d62125126242ca030b0f227f431ec | 699 | cpp | C++ | engine samples/01_HelloWord/source/HelloWordGame.cpp | drr00t/quanticvortex | b780b0f547cf19bd48198dc43329588d023a9ad9 | [
"MIT"
] | null | null | null | engine samples/01_HelloWord/source/HelloWordGame.cpp | drr00t/quanticvortex | b780b0f547cf19bd48198dc43329588d023a9ad9 | [
"MIT"
] | null | null | null | engine samples/01_HelloWord/source/HelloWordGame.cpp | drr00t/quanticvortex | b780b0f547cf19bd48198dc43329588d023a9ad9 | [
"MIT"
] | null | null | null |
#include "HelloWordGame.h"
// QuanticVortex headers
#include "qvGameViewTypes.h"
namespace samples
{
//------------------------------------------------------------------------------------------------
HelloWordGame::HelloWordGame()
{
//CreateHumanViewCommandArgs( gameViewName);
//ConfigureInputTransla... | 27.96 | 99 | 0.463519 | drr00t |
a6b37d0dc5172895077f2121d418007934f14864 | 9,508 | cc | C++ | display/simgraph0.cc | makkrnic/simutrans-extended | 8afbbce5b88c79bfea1760cf6c7662d020757b6a | [
"Artistic-1.0"
] | null | null | null | display/simgraph0.cc | makkrnic/simutrans-extended | 8afbbce5b88c79bfea1760cf6c7662d020757b6a | [
"Artistic-1.0"
] | null | null | null | display/simgraph0.cc | makkrnic/simutrans-extended | 8afbbce5b88c79bfea1760cf6c7662d020757b6a | [
"Artistic-1.0"
] | null | null | null | /*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include "../simconst.h"
#include "../sys/simsys.h"
#include "../descriptor/image.h"
#include "simgraph.h"
int large_font_height = 10;
int large_font_total_height = 11;
int large_font_ascent = 9;
KOORD_VAL... | 19.644628 | 186 | 0.77398 | makkrnic |
a6b6a050adf667fba6d81d8838ae25b018f6311f | 4,695 | cpp | C++ | src/profiling/PeriodicCounterSelectionCommandHandler.cpp | vivint-smarthome/armnn | 6b1bf1a40bebf4cc108d39f8b8e0c29bdfc51ce1 | [
"MIT"
] | null | null | null | src/profiling/PeriodicCounterSelectionCommandHandler.cpp | vivint-smarthome/armnn | 6b1bf1a40bebf4cc108d39f8b8e0c29bdfc51ce1 | [
"MIT"
] | null | null | null | src/profiling/PeriodicCounterSelectionCommandHandler.cpp | vivint-smarthome/armnn | 6b1bf1a40bebf4cc108d39f8b8e0c29bdfc51ce1 | [
"MIT"
] | null | null | null | //
// Copyright © 2019 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "PeriodicCounterSelectionCommandHandler.hpp"
#include "ProfilingUtils.hpp"
#include <armnn/Types.hpp>
#include <boost/numeric/conversion/cast.hpp>
#include <boost/format.hpp>
#include <vector>
namespace armnn
{
namespa... | 33.535714 | 118 | 0.61065 | vivint-smarthome |
a6bc696cea1a4154083afcd130c3edcf2c3084c4 | 1,766 | hh | C++ | libsrc/pylith/feassemble/feassemblefwd.hh | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | 1 | 2021-01-20T17:18:28.000Z | 2021-01-20T17:18:28.000Z | libsrc/pylith/feassemble/feassemblefwd.hh | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | libsrc/pylith/feassemble/feassemblefwd.hh | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | // -*- C++ -*-
//
// ======================================================================
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 23.236842 | 73 | 0.674972 | joegeisz |
a6d276d4b8a19938119a98e4bc1b7f5a2ba48330 | 4,316 | cc | C++ | tests/unit_tests/data/blocks/date_time.cc | tini2p/tini2p | 28fb4ddf69b2f191fee91a4ff349135fcff8dfe1 | [
"BSD-3-Clause"
] | 12 | 2019-01-21T07:04:30.000Z | 2021-12-06T03:35:07.000Z | tests/unit_tests/data/blocks/date_time.cc | chisa0a/tini2p | a9b6cb48dbbc8d667b081a95c720f0ff2a0f84f5 | [
"BSD-3-Clause"
] | null | null | null | tests/unit_tests/data/blocks/date_time.cc | chisa0a/tini2p | a9b6cb48dbbc8d667b081a95c720f0ff2a0f84f5 | [
"BSD-3-Clause"
] | 5 | 2019-02-07T23:08:37.000Z | 2021-12-06T03:35:08.000Z | /* Copyright (c) 2019, tini2p
* 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 conditions and th... | 31.275362 | 81 | 0.734013 | tini2p |
a6d4c69a57df9586374cc5ccea56d4b43a6223ff | 9,929 | cpp | C++ | multisense_ros/src/config.cpp | davidirobinson/multisense_ros2 | 87aa8dd64d3f380ffbff2483a32d0362c27dff5a | [
"MIT"
] | null | null | null | multisense_ros/src/config.cpp | davidirobinson/multisense_ros2 | 87aa8dd64d3f380ffbff2483a32d0362c27dff5a | [
"MIT"
] | null | null | null | multisense_ros/src/config.cpp | davidirobinson/multisense_ros2 | 87aa8dd64d3f380ffbff2483a32d0362c27dff5a | [
"MIT"
] | 1 | 2021-07-18T23:33:32.000Z | 2021-07-18T23:33:32.000Z | /**
* @file config.cpp
*
* Copyright 2020
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 38.785156 | 122 | 0.613758 | davidirobinson |
a6d4ec99bda3d0d817acb8e21c50ee77d13f547c | 5,175 | cpp | C++ | src/DS3231/DS3231.cpp | MarkMan0/STM32-Serial-Parser | 3ed62f3876d0859cbb4382af51b766815a9d994a | [
"BSD-3-Clause"
] | null | null | null | src/DS3231/DS3231.cpp | MarkMan0/STM32-Serial-Parser | 3ed62f3876d0859cbb4382af51b766815a9d994a | [
"BSD-3-Clause"
] | null | null | null | src/DS3231/DS3231.cpp | MarkMan0/STM32-Serial-Parser | 3ed62f3876d0859cbb4382af51b766815a9d994a | [
"BSD-3-Clause"
] | null | null | null | #include "DS3231/DS3231.h"
#include "main.h"
#include "i2c.h"
#include "utils.h"
#include "stdio.h"
#include "uart.h"
#include "cmsis_os.h"
/**
* @brief DS3231 Hardware description
*
*/
namespace DS3231Reg {
/**
* @brief DS3231 register addresses
*
*/
enum reg {
SECONDS,
MINUTES,
HOURS,
... | 23.847926 | 98 | 0.551304 | MarkMan0 |
a6d8cddca771e3fa045fed5f69dda19f1393dd3a | 2,931 | cpp | C++ | src/Game.cpp | RHUL-CS-Projects/towersAndMuskets | 6679857813e6bcd55e3bfc4f587e23e76da6e603 | [
"MIT"
] | 8 | 2017-04-01T13:27:27.000Z | 2019-03-23T14:44:15.000Z | src/Game.cpp | RHUL-CS-Projects/towersAndMuskets | 6679857813e6bcd55e3bfc4f587e23e76da6e603 | [
"MIT"
] | null | null | null | src/Game.cpp | RHUL-CS-Projects/towersAndMuskets | 6679857813e6bcd55e3bfc4f587e23e76da6e603 | [
"MIT"
] | null | null | null | #include <Game.h>
#include <irrlicht/irrlicht.h>
#include <EventReceiver.h>
#include <chrono>
#include <sfml/SFML/Window.hpp>
#include <StateMainMenu.h>
#include <DebugValues.h>
using namespace std;
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using names... | 20.075342 | 79 | 0.67622 | RHUL-CS-Projects |
a6e47799fe0a0eb1c1d78764fa8406d96b26767d | 2,843 | cpp | C++ | src/ariel/rendersys.cpp | lymastee/gslib | 1b165b7a812526c4b2a3179588df9a7c2ff602a6 | [
"MIT"
] | 9 | 2016-10-18T09:40:09.000Z | 2022-02-11T09:44:51.000Z | src/ariel/rendersys.cpp | lymastee/gslib | 1b165b7a812526c4b2a3179588df9a7c2ff602a6 | [
"MIT"
] | null | null | null | src/ariel/rendersys.cpp | lymastee/gslib | 1b165b7a812526c4b2a3179588df9a7c2ff602a6 | [
"MIT"
] | 1 | 2016-10-19T15:20:58.000Z | 2016-10-19T15:20:58.000Z | /*
* Copyright (c) 2016-2021 lymastee, All rights reserved.
* Contact: lymastee@hotmail.com
*
* This file is part of the gslib project.
*
* 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 t... | 29.926316 | 82 | 0.663384 | lymastee |
a6e5c2bec1f49071ef3a8df5348fc465336955a4 | 981 | cpp | C++ | src/DynamicProgramming/RegionalDP/MinimumMergeCost.cpp | S1xe/Way-to-Algorithm | e666edfb000b3eaef8cc1413f71b035ec4141718 | [
"MIT"
] | 101 | 2015-11-19T02:40:01.000Z | 2017-12-01T13:43:06.000Z | src/DynamicProgramming/RegionalDP/MinimumMergeCost.cpp | S1xe/Way-to-Algorithm | e666edfb000b3eaef8cc1413f71b035ec4141718 | [
"MIT"
] | 3 | 2019-05-31T14:27:56.000Z | 2021-07-28T04:24:55.000Z | src/DynamicProgramming/RegionalDP/MinimumMergeCost.cpp | S1xe/Way-to-Algorithm | e666edfb000b3eaef8cc1413f71b035ec4141718 | [
"MIT"
] | 72 | 2016-01-28T15:20:01.000Z | 2017-12-01T13:43:07.000Z | #include "MinimumMergeCost.h"
#include "../Util.h"
#include <algorithm>
#include <climits>
#include <cstdarg>
#include <iostream>
#include <string>
// 防止int溢出
static int Add(int a = 0, int b = 0, int c = 0) {
if (a == INF || b == INF || c == INF)
return INF;
return a + b + c;
}
int MinimumMergeCost(int *s, i... | 21.8 | 79 | 0.448522 | S1xe |
a6eb023906b4bc6df26ebf5d31be5d6cf5e49212 | 648 | cpp | C++ | problems/codeforces/1504/b-flip-the-bits/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/codeforces/1504/b-flip-the-bits/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/codeforces/1504/b-flip-the-bits/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// *****
auto solve() {
int N;
string a, b;
cin >> N >> a >> b;
bool eq = true;
int ones = count(begin(a), end(a), '1');
int zeros = N - ones;
for (int i = N - 1; i >= 0; i--) {
bool same = (a[i] == b[i]) == eq;
if (!same && ... | 16.615385 | 44 | 0.405864 | brunodccarvalho |
a6ebcbad9e9e3e377c2d3a8ed595b32dcc98fce4 | 284,460 | cpp | C++ | App/Il2CppOutputProject/Source/il2cppOutput/Assembly-CSharp_Attr.cpp | JBrentJ/MRDL_Unity_Surfaces | 155c97eb7803af90ef1b7e95dfe7969694507575 | [
"MIT"
] | null | null | null | App/Il2CppOutputProject/Source/il2cppOutput/Assembly-CSharp_Attr.cpp | JBrentJ/MRDL_Unity_Surfaces | 155c97eb7803af90ef1b7e95dfe7969694507575 | [
"MIT"
] | null | null | null | App/Il2CppOutputProject/Source/il2cppOutput/Assembly-CSharp_Attr.cpp | JBrentJ/MRDL_Unity_Surfaces | 155c97eb7803af90ef1b7e95dfe7969694507575 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
// System.Char[]
struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34;
// System.Type[]
struct TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755;
// System.Runtime.Compil... | 59.911542 | 381 | 0.896959 | JBrentJ |
a6f14a7d1edc2fc844996ba02934d8967a12f826 | 1,373 | hpp | C++ | threadpool.hpp | wangAlpha/SimpleDB | 0b37bd6a2481b266fc894d82d410759c39d06a72 | [
"MIT"
] | 8 | 2020-03-10T09:19:54.000Z | 2021-12-03T08:51:04.000Z | threadpool.hpp | wangAlpha/SimpleDB | 0b37bd6a2481b266fc894d82d410759c39d06a72 | [
"MIT"
] | null | null | null | threadpool.hpp | wangAlpha/SimpleDB | 0b37bd6a2481b266fc894d82d410759c39d06a72 | [
"MIT"
] | 1 | 2021-12-03T08:51:06.000Z | 2021-12-03T08:51:06.000Z | #pragma once
#include "core.hpp"
// 线程池
class ThreadPool {
public:
explicit ThreadPool(size_t const thread_count)
: data_(std::make_shared<data>()) {
for (size_t i = 0; i < thread_count; ++i) {
std::thread([data = data_] {
std::unique_lock<std::mutex> lock(data->mutex_);
for (;;) {
... | 22.883333 | 56 | 0.529497 | wangAlpha |
a6f905302c83c84fad7f0df79783718e0125ab77 | 4,498 | tpp | C++ | Turtle/src.tpp/Upp_TurtleServer_en-us.tpp | mirek-fidler/Turtle | fd413460c3d92c9a85fc620f6f3db50d96f3be2f | [
"BSD-2-Clause"
] | 2 | 2021-01-07T20:30:16.000Z | 2021-02-11T21:33:07.000Z | Turtle/src.tpp/Upp_TurtleServer_en-us.tpp | mirek-fidler/Turtle | fd413460c3d92c9a85fc620f6f3db50d96f3be2f | [
"BSD-2-Clause"
] | null | null | null | Turtle/src.tpp/Upp_TurtleServer_en-us.tpp | mirek-fidler/Turtle | fd413460c3d92c9a85fc620f6f3db50d96f3be2f | [
"BSD-2-Clause"
] | null | null | null | topic "TurtleServer";
[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class]
[l288;2 $$2,2#27521748481378242620020725143825:desc]
[0 $$3,0#96390100711032703541132217272105:end]
[H6;0 $$4,0#05600065144404261032431302351956:begin]
[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item]
[l288;a4;*@5;1 $$6,6#... | 47.851064 | 97 | 0.644731 | mirek-fidler |
a6fab4381de05117acc1f8055187147dc739c4b2 | 16,310 | cpp | C++ | src/bin2llvmir/analyses/reaching_definitions.cpp | bambooeric/retdec | faa531edfcc2030221856232b30a794f5dbcc503 | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 1 | 2020-08-29T21:43:47.000Z | 2020-08-29T21:43:47.000Z | src/bin2llvmir/analyses/reaching_definitions.cpp | bambooeric/retdec | faa531edfcc2030221856232b30a794f5dbcc503 | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | null | null | null | src/bin2llvmir/analyses/reaching_definitions.cpp | bambooeric/retdec | faa531edfcc2030221856232b30a794f5dbcc503 | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | null | null | null | /**
* @file src/bin2llvmir/analyses/reaching_definitions.cpp
* @brief Reaching definitions analysis builds UD and DU chains.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include <iomanip>
#include <iostream>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <ll... | 20.593434 | 83 | 0.605886 | bambooeric |
4700e412fc67c47b1dddda0183a03d6f35c0a14d | 1,730 | cpp | C++ | leetcode/problems/easy/1886-determine-whether-matrix-can-be-obtained-by-rotation.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | leetcode/problems/easy/1886-determine-whether-matrix-can-be-obtained-by-rotation.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | leetcode/problems/easy/1886-determine-whether-matrix-can-be-obtained-by-rotation.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Determine Whether Matrix Can Be Obtained By Rotation
https://leetcode.com/problems/determine-whether-matrix-can-be-obtained-by-rotation/
Given two n x n binary matrices mat and target, return true if it is possible to make mat equal to target by rotating mat in 90-degree increments, or false otherwise.
Example 1:... | 28.833333 | 166 | 0.558382 | wingkwong |
47017aa7672e04bfe6042463eb8d3c51ccec6ced | 2,340 | cpp | C++ | topcoder/srm/src/SRM648/AB.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | topcoder/srm/src/SRM648/AB.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | topcoder/srm/src/SRM648/AB.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
int f(string s)
{
int sum = 0;
for (int i = 0; i < s.size(); ++i) {
for (int j = i + 1; j < s.size();... | 32.054795 | 314 | 0.550427 | Johniel |
4707e2afe1cc405c8596ef711d31ec93dfcae69f | 549 | hh | C++ | src/nn/src/include/dataset.hh | juliia5m/knu_voice | 1f5d150ded23af4c152b8d20f1ab4ecec77b40e1 | [
"Apache-2.0"
] | 717 | 2015-01-03T15:25:46.000Z | 2022-03-30T12:45:45.000Z | src/nn/src/include/dataset.hh | juliia5m/knu_voice | 1f5d150ded23af4c152b8d20f1ab4ecec77b40e1 | [
"Apache-2.0"
] | 91 | 2015-03-19T09:25:23.000Z | 2021-05-19T08:51:26.000Z | src/nn/src/include/dataset.hh | juliia5m/knu_voice | 1f5d150ded23af4c152b8d20f1ab4ecec77b40e1 | [
"Apache-2.0"
] | 315 | 2015-01-21T00:06:00.000Z | 2022-03-29T08:13:36.000Z | /*
* $File: dataset.hh
* $Date: Sun Sep 08 08:47:09 2013 +0800
* $Author: Xinyu Zhou <zxytim[at]gmail[dot]com>
*/
#pragma once
#include "type.hh"
#include <vector>
typedef std::vector<std::pair<int, real_t> > Instance;
typedef std::vector<Instance> Dataset;
typedef std::vector<Instance *> RefDataset;
ty... | 21.115385 | 56 | 0.679417 | juliia5m |
470b9a04555479a3863c18af99b1010e5cd5b023 | 4,643 | cpp | C++ | uwsim_resources/uwsim_osgocean/src/osgOcean/WaterTrochoids.cpp | epsilonorion/usv_lsa_sim_copy | d189f172dc1d265b7688c7dc8375a65ac4a9c048 | [
"Apache-2.0"
] | 1 | 2020-11-30T09:55:33.000Z | 2020-11-30T09:55:33.000Z | uwsim_resources/uwsim_osgocean/src/osgOcean/WaterTrochoids.cpp | epsilonorion/usv_lsa_sim_copy | d189f172dc1d265b7688c7dc8375a65ac4a9c048 | [
"Apache-2.0"
] | null | null | null | uwsim_resources/uwsim_osgocean/src/osgOcean/WaterTrochoids.cpp | epsilonorion/usv_lsa_sim_copy | d189f172dc1d265b7688c7dc8375a65ac4a9c048 | [
"Apache-2.0"
] | 2 | 2020-11-21T19:50:54.000Z | 2020-12-27T09:35:29.000Z | /*
* This source file is part of the osgOcean library
*
* Copyright (C) 2009 Kim Bale
* Copyright (C) 2009 The University of Hull, UK
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free Software
* Found... | 30.546053 | 88 | 0.556752 | epsilonorion |
470bc8fa13523b710f85f15f6066282fa08b5b52 | 11,105 | cpp | C++ | test/audioplayertest.cpp | p-edelman/Transcribe | efa36298c48522d2fc25db4f26ae192fdbef1e23 | [
"Apache-2.0"
] | 2 | 2017-07-28T17:08:57.000Z | 2017-12-16T10:09:30.000Z | test/audioplayertest.cpp | p-edelman/Transcribe | efa36298c48522d2fc25db4f26ae192fdbef1e23 | [
"Apache-2.0"
] | 1 | 2017-08-19T10:42:08.000Z | 2017-10-08T14:46:34.000Z | test/audioplayertest.cpp | p-edelman/Transcribe | efa36298c48522d2fc25db4f26ae192fdbef1e23 | [
"Apache-2.0"
] | null | null | null | #include "audioplayertest.h"
AudioPlayerTest::AudioPlayerTest() {
m_noise_file = QString(SRCDIR);
m_noise_file += "files/noise.wav";
m_silence_file = QString(SRCDIR);
m_silence_file += "files/silence.wav";
m_player = new AudioPlayer();
m_player->openFile(m_noise_file);
}
void AudioPlayerTest::init() {
... | 33.753799 | 85 | 0.711121 | p-edelman |
470c8ee4b934bb2b70623fc622a9a7c999e71882 | 1,716 | cpp | C++ | default.cpp | LucasGMeneses/OpenGL_labs | ddf753c29cc2fcb07cd0ad04b16f03958b8e452f | [
"MIT"
] | null | null | null | default.cpp | LucasGMeneses/OpenGL_labs | ddf753c29cc2fcb07cd0ad04b16f03958b8e452f | [
"MIT"
] | null | null | null | default.cpp | LucasGMeneses/OpenGL_labs | ddf753c29cc2fcb07cd0ad04b16f03958b8e452f | [
"MIT"
] | 1 | 2020-11-24T16:27:14.000Z | 2020-11-24T16:27:14.000Z | /*
* To compile with windows -lfreeglut -lglu32 -lopengl32
* To compile linux -lglut -lGL -lGLU -lm
*/
#include <GL/freeglut.h> // ou glut.h - GLUT, include glu.h and gl.h
#include <math.h>
#include <stdio.h>
/* Initialize OpenGL Graphics */
void init() {
// Set "clearing" or background color
glClearColor... | 35.75 | 90 | 0.67366 | LucasGMeneses |
4710910ee61020d26beefb3ffa8bf298b31fbecf | 18,273 | cpp | C++ | euchar/cppbinding/curve.cpp | gbeltramo/euchar | 3852a0800f078b26c125b83e28465ec66212cbec | [
"MIT"
] | null | null | null | euchar/cppbinding/curve.cpp | gbeltramo/euchar | 3852a0800f078b26c125b83e28465ec66212cbec | [
"MIT"
] | null | null | null | euchar/cppbinding/curve.cpp | gbeltramo/euchar | 3852a0800f078b26c125b83e28465ec66212cbec | [
"MIT"
] | null | null | null | #include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <numeric> // std::partial_sum, std::iota
#include <algorithm> // std::copy, std::lower_bound
using namespace std;
//================================================
int sum_bool_2d(vector<vector<bool>> matrix)
{
size_t numI... | 30.710924 | 142 | 0.482734 | gbeltramo |
4710d506446d1b3aa5751a08b09a174046f1085a | 36,512 | cpp | C++ | src/renderer/vulkan/renderpass/Culling.cpp | Ryp/Reaper | ccaef540013db7e8bf873db6e597e9036184d100 | [
"MIT"
] | 11 | 2016-11-07T07:47:46.000Z | 2018-07-19T16:04:45.000Z | src/renderer/vulkan/renderpass/Culling.cpp | Ryp/Reaper | ccaef540013db7e8bf873db6e597e9036184d100 | [
"MIT"
] | null | null | null | src/renderer/vulkan/renderpass/Culling.cpp | Ryp/Reaper | ccaef540013db7e8bf873db6e597e9036184d100 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// Reaper
///
/// Copyright (c) 2015-2022 Thibault Schueller
/// This file is distributed under the MIT License
////////////////////////////////////////////////////////////////////////////////
#include "Culling.h"
#include "renderer/Pre... | 52.16 | 120 | 0.659482 | Ryp |
47116d2b7b8cf557348c96fd02077b17a2dfac8f | 328 | hpp | C++ | test/base_test.hpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | test/base_test.hpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | test/base_test.hpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | #if !defined(ESPADIN_BASE_TEST_HPP_)
#define ESPADIN_BASE_TEST_HPP_
#include <espadin/drive.hpp>
namespace espadin::test
{
class base
{
protected:
static std::string parent_id;
base();
std::string create_doc(const std::string& name);
void trash(const std::string& file_id);
drive drive_;
};
}
... | 13.12 | 52 | 0.70122 | mexicowilly |
4719a37fc250e61a70c06359c27b9d35b8503218 | 3,507 | cpp | C++ | sp/main.cpp | afmenez/xfspp | 202c8b819d6fe9e1a669f6042e9724ad7415cedd | [
"MIT"
] | 25 | 2017-03-30T04:58:10.000Z | 2022-01-26T22:34:03.000Z | sp/main.cpp | afmenez/xfspp | 202c8b819d6fe9e1a669f6042e9724ad7415cedd | [
"MIT"
] | 4 | 2019-08-26T06:14:47.000Z | 2022-02-23T18:48:11.000Z | sp/main.cpp | afmenez/xfspp | 202c8b819d6fe9e1a669f6042e9724ad7415cedd | [
"MIT"
] | 10 | 2017-04-10T09:52:58.000Z | 2021-09-30T13:42:22.000Z | /* sp/main.cpp
*
* Copyright (C) 2007 Antonio Di Monaco
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "xfsspi.h"
#include "win32/synch.hpp"
namespace
{
HINSTANCE dllInstance;
HANDLE mutexHandle = NULL;
... | 22.921569 | 304 | 0.697177 | afmenez |
4719ffba36ee3ce93b51efffee4973d79e571aaa | 729 | cpp | C++ | workspace/hellotest/src/Test.cpp | PeterSommerlad/workshopworkspace | 5e5eb9c42280a4aba27ee196d3003fd54a5e3607 | [
"MIT"
] | 2 | 2021-08-28T11:43:58.000Z | 2021-09-07T08:10:05.000Z | workspace/hellotest/src/Test.cpp | PeterSommerlad/workshopworkspace | 5e5eb9c42280a4aba27ee196d3003fd54a5e3607 | [
"MIT"
] | null | null | null | workspace/hellotest/src/Test.cpp | PeterSommerlad/workshopworkspace | 5e5eb9c42280a4aba27ee196d3003fd54a5e3607 | [
"MIT"
] | null | null | null | #include "sayhello.h"
#include "cute.h"
#include "ide_listener.h"
#include "xml_listener.h"
#include "cute_runner.h"
#include <sstream>
void createDefaultCounterIsZero() {
std::ostringstream out{};
sayhello(out);
ASSERT_EQUAL("Hello, World\n",out.str());
}
bool runAllTests(int argc, char const *argv[]) {
cute::s... | 25.137931 | 65 | 0.717421 | PeterSommerlad |
471c640c252c83a002cdd3f0356636abcac55d67 | 607 | cpp | C++ | cozybirdFX/UIIntField.cpp | HenryLoo/cozybirdFX | 0ef522d9a8304c190c8a586a4de6452c6bc9edfe | [
"BSD-3-Clause"
] | null | null | null | cozybirdFX/UIIntField.cpp | HenryLoo/cozybirdFX | 0ef522d9a8304c190c8a586a4de6452c6bc9edfe | [
"BSD-3-Clause"
] | null | null | null | cozybirdFX/UIIntField.cpp | HenryLoo/cozybirdFX | 0ef522d9a8304c190c8a586a4de6452c6bc9edfe | [
"BSD-3-Clause"
] | null | null | null | #include "UIIntField.h"
UIIntField::UIIntField(std::string label, int maxChars, glm::vec2 size,
glm::vec2 position) :
UIField(label, maxChars, size, position)
{
}
void UIIntField::setValue(int value)
{
UIField::setValue(std::to_string(value));
}
bool UIIntField::getValue(int &output)
{
try
{
output = std::st... | 15.175 | 72 | 0.662273 | HenryLoo |
4726bf017d83ca5a8e1b88c88689f30c3b3585d6 | 381 | cpp | C++ | src/custom/ucrt/common/stdio/fputc.cpp | ntoskrnl7/crtsys | 2948afde9496d4e873dc067d1d0e8a545ce894bc | [
"MIT"
] | null | null | null | src/custom/ucrt/common/stdio/fputc.cpp | ntoskrnl7/crtsys | 2948afde9496d4e873dc067d1d0e8a545ce894bc | [
"MIT"
] | null | null | null | src/custom/ucrt/common/stdio/fputc.cpp | ntoskrnl7/crtsys | 2948afde9496d4e873dc067d1d0e8a545ce894bc | [
"MIT"
] | null | null | null | #include "../../../common/crt/crt_internal.h"
EXTERN_C
int __cdecl fputc(int const c, FILE *const stream) {
if (stream == stdout) {
DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "%c", c);
return c;
} else if (stream == stderr) {
DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL, "%c", c);
re... | 25.4 | 65 | 0.645669 | ntoskrnl7 |
4728461966a6bdc3f46f8f6eefba89e8d41eec6a | 7,013 | cpp | C++ | src/tibb/src/TiTitaniumObject.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 3 | 2015-03-07T15:41:18.000Z | 2015-11-05T05:07:45.000Z | src/tibb/src/TiTitaniumObject.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 1 | 2015-04-12T11:50:33.000Z | 2015-04-12T21:13:19.000Z | src/tibb/src/TiTitaniumObject.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 5 | 2015-01-13T17:14:41.000Z | 2015-05-25T16:54:26.000Z | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#include "TiTitaniumObject.h"
#include "TiAccelerometer.h"
#include "TiBufferObj... | 30.491304 | 116 | 0.626551 | ssaracut |
472c13c8bac9a4f62364f5a302fcda89a0af9315 | 1,776 | cpp | C++ | src/dot.cpp | Xazax-hun/conceptanalysis | d552889345ad2c8aff294bff21b1788f126b312a | [
"Apache-2.0"
] | null | null | null | src/dot.cpp | Xazax-hun/conceptanalysis | d552889345ad2c8aff294bff21b1788f126b312a | [
"Apache-2.0"
] | null | null | null | src/dot.cpp | Xazax-hun/conceptanalysis | d552889345ad2c8aff294bff21b1788f126b312a | [
"Apache-2.0"
] | null | null | null | #include "include/dot.h"
#include <sstream>
namespace {
Concept minimizedForDisplay(int conc, const Lattice& l, const ConceptContext& data) {
std::set<int> preds;
std::set<int> succs;
for (auto e : l.less) {
if (conc == e.second)
preds.insert(e.first);
if (conc == e.first)
... | 29.6 | 85 | 0.561937 | Xazax-hun |
472c5da2e930d392c22ee1c4e325cce03f433956 | 1,241 | cpp | C++ | lanqiao/2022/b.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | 3 | 2022-03-30T14:14:57.000Z | 2022-03-31T04:30:32.000Z | lanqiao/2022/b.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | null | null | null | lanqiao/2022/b.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
bool solve(string v) {
for (int i = 0; i < 8 - 2; i++) {
if (v[i + 2] == v[i + 1] + 1 && v[i + 1] == v[i] + 1) {
return true;
}
}
return false;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
//IO
//freopen("bout.t... | 18.522388 | 78 | 0.362611 | Zilanlann |
472f9ace358db5d80a235e2ea0ee961ee0f74f09 | 970 | cpp | C++ | lib/homie/node/node.cpp | 2SmartCloud/2smart-cloud-esp8266-boilerplate | c40dace65f5ce5f27677b039ae8bb1e123a66723 | [
"MIT"
] | 2 | 2021-11-16T15:21:09.000Z | 2021-11-19T17:07:37.000Z | lib/homie/node/node.cpp | 2SmartCloud/2smart-cloud-esp8266-sonoff-s20 | 721e6f159fe4d7b2a630e21cd012507d8bb5085b | [
"MIT"
] | null | null | null | lib/homie/node/node.cpp | 2SmartCloud/2smart-cloud-esp8266-sonoff-s20 | 721e6f159fe4d7b2a630e21cd012507d8bb5085b | [
"MIT"
] | null | null | null | #include "node.h"
#include <utility>
Node::Node(const char* name, const char* id, Device* device) {
name_ = name;
id_ = id;
device_ = device;
}
bool Node::Init(Homie* homie) {
homie_ = homie;
homie->Publish(*this, "name", name_, true);
homie->Publish(*this, "state", state_, true);
bool st... | 26.944444 | 92 | 0.63299 | 2SmartCloud |
47325ac39c029ba65ebc59db7c4736ee05d3eb80 | 282 | cpp | C++ | Schweizer-Messer/numpy_eigen/src/autogen_test_module/test_D_5_float.cpp | mmmspatz/kalibr | e2e881e5d25d378f0c500c67e00532ee1c1082fd | [
"BSD-4-Clause"
] | null | null | null | Schweizer-Messer/numpy_eigen/src/autogen_test_module/test_D_5_float.cpp | mmmspatz/kalibr | e2e881e5d25d378f0c500c67e00532ee1c1082fd | [
"BSD-4-Clause"
] | null | null | null | Schweizer-Messer/numpy_eigen/src/autogen_test_module/test_D_5_float.cpp | mmmspatz/kalibr | e2e881e5d25d378f0c500c67e00532ee1c1082fd | [
"BSD-4-Clause"
] | null | null | null | #include <eigen3/Eigen/Core>
#include <numpy_eigen/boost_python_headers.hpp>
Eigen::Matrix<float, Eigen::Dynamic, 5> test_float_D_5(const Eigen::Matrix<float, Eigen::Dynamic, 5> & M)
{
return M;
}
void export_float_D_5()
{
boost::python::def("test_float_D_5",test_float_D_5);
}
| 21.692308 | 105 | 0.744681 | mmmspatz |
47343ea6154bcd0c7bc45a4d0d7dfe96fd63044f | 3,974 | hpp | C++ | palette.hpp | rsenn/qjs-opencv | 8035073ad8360636b816700325d92f4934e47e63 | [
"MIT"
] | null | null | null | palette.hpp | rsenn/qjs-opencv | 8035073ad8360636b816700325d92f4934e47e63 | [
"MIT"
] | null | null | null | palette.hpp | rsenn/qjs-opencv | 8035073ad8360636b816700325d92f4934e47e63 | [
"MIT"
] | null | null | null | #ifndef PALETTE_HPP
#define PALETTE_HPP
#include "jsbindings.hpp"
#include "js_array.hpp"
#include <opencv2/core/hal/interface.h>
#include <opencv2/core/mat.hpp>
#include <opencv2/core/mat.inl.hpp>
#include <cstdio>
template<class Container>
static inline void
palette_read(JSContext* ctx, JSValueConst arr, Container&... | 28.797101 | 142 | 0.624811 | rsenn |
473606e9e57605d14cc36446bfc8f714886ae17d | 4,619 | cpp | C++ | documents/code/Chapter7/MarchingTetrahedra/TetrahedraMarcher.cpp | evertonantunes/OpenGLPlayground | 1a7a9caaf81b250b90585dcdc128f6d55e391f7e | [
"MIT"
] | null | null | null | documents/code/Chapter7/MarchingTetrahedra/TetrahedraMarcher.cpp | evertonantunes/OpenGLPlayground | 1a7a9caaf81b250b90585dcdc128f6d55e391f7e | [
"MIT"
] | null | null | null | documents/code/Chapter7/MarchingTetrahedra/TetrahedraMarcher.cpp | evertonantunes/OpenGLPlayground | 1a7a9caaf81b250b90585dcdc128f6d55e391f7e | [
"MIT"
] | null | null | null | #include "TetrahedraMarcher.h"
#include <fstream>
#include "Tables.h"
TetrahedraMarcher::TetrahedraMarcher(void)
{
XDIM = 256;
YDIM = 256;
ZDIM = 256;
pVolume = NULL;
}
TetrahedraMarcher::~TetrahedraMarcher(void)
{
if(pVolume!=NULL) {
delete [] pVolume;
pVolume = NULL;
}
}
void Tet... | 27.993939 | 120 | 0.652739 | evertonantunes |
473731e1e9bd21c7cc06f33cff6cb8fdac9b44c1 | 18,378 | cpp | C++ | Max Objects/macOS/sofa~.mxo/Contents/Resources/SOFA/src/SOFADate.cpp | APL-Huddersfield/SOFA-for-Max | 55e2dbe4b6ffa9e948cfaae2f134fbc00f5b354f | [
"BSD-3-Clause"
] | 15 | 2019-03-31T22:03:21.000Z | 2022-02-25T04:15:49.000Z | Max Objects/macOS/sofa~.mxo/Contents/Resources/SOFA/src/SOFADate.cpp | APL-Huddersfield/SOFA-for-Max | 55e2dbe4b6ffa9e948cfaae2f134fbc00f5b354f | [
"BSD-3-Clause"
] | 1 | 2022-03-15T16:14:57.000Z | 2022-03-30T11:05:04.000Z | Max Objects/macOS/sofa~.mxo/Contents/Resources/SOFA/src/SOFADate.cpp | APL-Huddersfield/SOFA-for-Max | 55e2dbe4b6ffa9e948cfaae2f134fbc00f5b354f | [
"BSD-3-Clause"
] | 2 | 2019-03-31T22:04:08.000Z | 2020-12-31T08:49:54.000Z | /*
Copyright (c) 2013--2017, UMR STMS 9912 - Ircam-Centre Pompidou / CNRS / UPMC
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
... | 29.594203 | 127 | 0.512188 | APL-Huddersfield |
473b00feadf6feea3657aeebfd555c7af7f8ed95 | 635 | hpp | C++ | BaCa_P2/zadanieA/src/BitSetLib.hpp | arhmichal/P2_BaCa | 2567897544c907dac60290c3b727fc170310786c | [
"MIT"
] | 1 | 2018-03-21T18:29:29.000Z | 2018-03-21T18:29:29.000Z | BaCa_P2/zadanieA/src/BitSetLib.hpp | arhmichal/P2_BaCa | 2567897544c907dac60290c3b727fc170310786c | [
"MIT"
] | null | null | null | BaCa_P2/zadanieA/src/BitSetLib.hpp | arhmichal/P2_BaCa | 2567897544c907dac60290c3b727fc170310786c | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
#include <sstream>
void Emplace(std::string, int*);
void Insert(std::string, int*);
void Erase(std::string, int*);
void Print(int, std::string*);
bool Emptiness(int);
bool Nonempty(int);
bool Member(std::string, int);
bool Disjoint(int, int);
bool Conjunctive(int, in... | 23.518519 | 34 | 0.711811 | arhmichal |
4741de12653948415081686fc85895d4ff90ccb1 | 3,515 | cpp | C++ | QVES-App/DataPanel.cpp | joaconigro/QVES | 66498286838a60dbc7d3c1bd7bc7644208ae05a3 | [
"MIT"
] | 2 | 2017-08-09T17:32:47.000Z | 2018-04-03T11:05:12.000Z | QVES-App/DataPanel.cpp | joaconigro/QVES | 66498286838a60dbc7d3c1bd7bc7644208ae05a3 | [
"MIT"
] | null | null | null | QVES-App/DataPanel.cpp | joaconigro/QVES | 66498286838a60dbc7d3c1bd7bc7644208ae05a3 | [
"MIT"
] | 2 | 2017-10-19T04:44:37.000Z | 2019-04-29T08:59:44.000Z | #include "DataPanel.h"
#include "ui_DataPanel.h"
DataPanel::DataPanel(QVESModelDelegate *delegate, QWidget *parent) :
QWidget(parent),
ui(new Ui::DataPanel),
mainDelegate(delegate)
{
ui->setupUi(this);
ui->radioButtonField->setChecked(true);
mResetSelection = false;
selectionModel = nullptr... | 33.47619 | 144 | 0.714651 | joaconigro |
474334400e6b7b54ea439df22a9af425ed1fedb4 | 1,425 | cpp | C++ | learn_opencv3.1.0/source/chapter/chapter_030.cpp | k9bao/learn_opencv | 6fc6ec435ed2223d43f6a79c97ceb2475f7bf5c3 | [
"Apache-2.0"
] | null | null | null | learn_opencv3.1.0/source/chapter/chapter_030.cpp | k9bao/learn_opencv | 6fc6ec435ed2223d43f6a79c97ceb2475f7bf5c3 | [
"Apache-2.0"
] | null | null | null | learn_opencv3.1.0/source/chapter/chapter_030.cpp | k9bao/learn_opencv | 6fc6ec435ed2223d43f6a79c97ceb2475f7bf5c3 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <math.h>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
Mat src, dst;
const char *output_win = "findcontours-demo";
int threshold_value = 100;
int threshold_max = 255;
RNG rng;
void Demo_Contours(int, void *);
int main(int argc, char **argv) {
src = imread("hap... | 30.319149 | 96 | 0.666667 | k9bao |
4745f641e7c0cbfd95ff7354442d29603f99b28e | 941 | cpp | C++ | src/tools/qt-gui/src/editkeycommand.cpp | D-os/libelektra | e39f439bfa5ff1fe56e6c8c7ee290913449d1dde | [
"BSD-3-Clause"
] | null | null | null | src/tools/qt-gui/src/editkeycommand.cpp | D-os/libelektra | e39f439bfa5ff1fe56e6c8c7ee290913449d1dde | [
"BSD-3-Clause"
] | null | null | null | src/tools/qt-gui/src/editkeycommand.cpp | D-os/libelektra | e39f439bfa5ff1fe56e6c8c7ee290913449d1dde | [
"BSD-3-Clause"
] | null | null | null | #include "editkeycommand.hpp"
EditKeyCommand::EditKeyCommand(TreeViewModel* model, int index, DataContainer* data, QUndoCommand* parent)
: QUndoCommand(parent)
, m_model(model)
, m_index(index)
, m_oldName(data->oldName())
, m_oldValue(data->oldValue())
, m_oldMetaData(data->oldMetadata())
, m_newName(data->ne... | 29.40625 | 106 | 0.746015 | D-os |
4749bff31a4155950511394e49ba3aece171cec7 | 4,431 | cpp | C++ | src/Utils/HttpParser.cpp | lkmaks/caos-http-web-server-by-Lavrik-Karmazin | a2bd3ca9a7f0418e331a7a7f9b874e6c876c8739 | [
"MIT"
] | null | null | null | src/Utils/HttpParser.cpp | lkmaks/caos-http-web-server-by-Lavrik-Karmazin | a2bd3ca9a7f0418e331a7a7f9b874e6c876c8739 | [
"MIT"
] | null | null | null | src/Utils/HttpParser.cpp | lkmaks/caos-http-web-server-by-Lavrik-Karmazin | a2bd3ca9a7f0418e331a7a7f9b874e6c876c8739 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include <map>
#include "HttpParser.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include "GeneralUtils.h"
#include "Debug.hpp"
typedef std::string::size_type size_type;
bool is_substr(const std::string &t, const std::string &s, int pos) {... | 24.213115 | 102 | 0.60009 | lkmaks |
4749d5691fdc3d53230a2008b7ea862ed6cc64a6 | 8,947 | cpp | C++ | src/Game/Terrain/Block.cpp | NikiNatov/Minecraft_Clone | f3c04d595f06ceca2c060f44d67d2b4be751896c | [
"Apache-2.0"
] | null | null | null | src/Game/Terrain/Block.cpp | NikiNatov/Minecraft_Clone | f3c04d595f06ceca2c060f44d67d2b4be751896c | [
"Apache-2.0"
] | null | null | null | src/Game/Terrain/Block.cpp | NikiNatov/Minecraft_Clone | f3c04d595f06ceca2c060f44d67d2b4be751896c | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Block.h"
#include "Graphics\SpriteManager.h"
std::vector<ScopedPtr<Block>> Block::s_Blocks;
Block::Block(BlockID id)
: m_ID(id)
{
glm::vec3 positions[8];
positions[0] = { 0.0f, 0.0f, 1.0f };
positions[1] = { 1.0f, 0.0f, 1.0f };
positions[2] = { 1.0f, 1.0f, 1.0f };
positions[... | 37.592437 | 97 | 0.692858 | NikiNatov |
e6df7175e64f904976d2bdc4555fd81e363172fd | 656 | cpp | C++ | Subiecte 2009/V16 II 5.cpp | jbara2002/Informatica_LCIB | ff9db6d7d6119ba835750cc2d408079f76b852df | [
"CC0-1.0"
] | 1 | 2022-03-31T21:45:03.000Z | 2022-03-31T21:45:03.000Z | Subiecte 2009/V16 II 5.cpp | jbara2002/Informatica_LCIB | ff9db6d7d6119ba835750cc2d408079f76b852df | [
"CC0-1.0"
] | null | null | null | Subiecte 2009/V16 II 5.cpp | jbara2002/Informatica_LCIB | ff9db6d7d6119ba835750cc2d408079f76b852df | [
"CC0-1.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int a[16][16], n, i, j;
cin >> n;
for(i=1; i<=n; i++)
{
for(j=1; j<=n; j++)
{
if(i+j==n+1) /// Suntem pe diagonala secundara.
{
a[i][j] = 4;
}
else if(i==j) /// Sunt... | 15.619048 | 62 | 0.291159 | jbara2002 |
e6e13e4fb4ad558e7a2c66389e0817740bdaf028 | 432 | cpp | C++ | src/format.cpp | julesser/CppND-System-Monitor | 8480d73ef2bb9c70d1c4e0eba7dbb861f87c05de | [
"MIT"
] | null | null | null | src/format.cpp | julesser/CppND-System-Monitor | 8480d73ef2bb9c70d1c4e0eba7dbb861f87c05de | [
"MIT"
] | null | null | null | src/format.cpp | julesser/CppND-System-Monitor | 8480d73ef2bb9c70d1c4e0eba7dbb861f87c05de | [
"MIT"
] | null | null | null | #include "format.h"
#include <string>
using std::string;
// DONE: Complete this helper function
// INPUT: Long int measuring seconds
// OUTPUT: HH:MM:SS
string Format::ElapsedTime(long seconds) {
int min = int((seconds / (60)) % 60);
int sec = int(seconds % (60));
int hrs = int(min / (60 * 60));
string time... | 24 | 71 | 0.611111 | julesser |
e6e82a72fea08c5bea940bc545aca53d20de3d6a | 66,403 | cpp | C++ | EndlessReachHD/Private/EndlessReachHDPawn.cpp | Soverance/EndlessReachHD | 1e670fa265e78ea8c8c30d510282a39176c7215d | [
"Apache-2.0"
] | 11 | 2017-07-25T11:57:28.000Z | 2020-10-24T04:26:20.000Z | EndlessReachHD/Private/EndlessReachHDPawn.cpp | Soverance/EndlessReachHD | 1e670fa265e78ea8c8c30d510282a39176c7215d | [
"Apache-2.0"
] | null | null | null | EndlessReachHD/Private/EndlessReachHDPawn.cpp | Soverance/EndlessReachHD | 1e670fa265e78ea8c8c30d510282a39176c7215d | [
"Apache-2.0"
] | 4 | 2018-03-30T10:53:09.000Z | 2020-06-27T22:40:14.000Z | // © 2012 - 2019 Soverance Studios
// https://soverance.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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable ... | 36.167211 | 245 | 0.729425 | Soverance |
e6ec92140e30412542c541d2d928bb491d8a3d90 | 3,473 | cpp | C++ | solvers/src/solvers/CuSparseSolver.cpp | zurutech/stand | a341f691d991072a61d07aac6fa7e634e2d112d3 | [
"Apache-2.0"
] | 9 | 2022-01-17T07:30:49.000Z | 2022-01-20T17:27:52.000Z | solvers/src/solvers/CuSparseSolver.cpp | zurutech/stand | a341f691d991072a61d07aac6fa7e634e2d112d3 | [
"Apache-2.0"
] | null | null | null | solvers/src/solvers/CuSparseSolver.cpp | zurutech/stand | a341f691d991072a61d07aac6fa7e634e2d112d3 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2022 Zuru Tech HK Limited.
*
* 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 ... | 37.344086 | 80 | 0.69738 | zurutech |
e6f062fcb872ce77d5c9e3e6edab326aed749883 | 3,943 | cpp | C++ | XRVessels/XR2Ravenstar/XR2Ravenstar/XR2PostSteps.cpp | dbeachy1/XRVessels | 8dd2d879886154de2f31fa75393d8a6ac56a2089 | [
"MIT"
] | 10 | 2021-08-20T05:49:10.000Z | 2022-01-07T13:00:20.000Z | XRVessels/XR2Ravenstar/XR2Ravenstar/XR2PostSteps.cpp | dbeachy1/XRVessels | 8dd2d879886154de2f31fa75393d8a6ac56a2089 | [
"MIT"
] | null | null | null | XRVessels/XR2Ravenstar/XR2Ravenstar/XR2PostSteps.cpp | dbeachy1/XRVessels | 8dd2d879886154de2f31fa75393d8a6ac56a2089 | [
"MIT"
] | 4 | 2021-09-11T12:08:01.000Z | 2022-02-09T00:16:19.000Z | /**
XR Vessel add-ons for OpenOrbiter Space Flight Simulator
Copyright (C) 2006-2021 Douglas Beachy
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any... | 37.198113 | 146 | 0.632767 | dbeachy1 |
e6f0d9a145d8f4d7c84c00ba9fa45928e9a5c638 | 7,374 | cc | C++ | src/tests/grid/test_distribution_regular_bands.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 67 | 2018-03-01T06:56:49.000Z | 2022-03-08T18:44:47.000Z | src/tests/grid/test_distribution_regular_bands.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 93 | 2018-12-07T17:38:04.000Z | 2022-03-31T10:04:51.000Z | src/tests/grid/test_distribution_regular_bands.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 33 | 2018-02-28T17:06:19.000Z | 2022-01-20T12:12:27.000Z | /*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... | 35.282297 | 115 | 0.555194 | twsearle |
e6f180d9dc9c90ff8c5aea882d4336024b7c6b0b | 2,876 | cpp | C++ | etc/berlekamp_massey with kitamasa.cpp | jinhan814/algorithms-implementation | b5185f98c5d5d34c0f98de645e5b755fcf75c120 | [
"MIT"
] | null | null | null | etc/berlekamp_massey with kitamasa.cpp | jinhan814/algorithms-implementation | b5185f98c5d5d34c0f98de645e5b755fcf75c120 | [
"MIT"
] | null | null | null | etc/berlekamp_massey with kitamasa.cpp | jinhan814/algorithms-implementation | b5185f98c5d5d34c0f98de645e5b755fcf75c120 | [
"MIT"
] | null | null | null | /*
* BOJ 13976
* https://www.acmicpc.net/problem/13976
* reference : https://www.secmem.org/blog/2019/05/17/BerlekampMassey/, https://justicehui.github.io/hard-algorithm/2021/03/13/kitamasa/
*/
#include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
constexpr int MOD ... | 34.238095 | 137 | 0.439847 | jinhan814 |
e6f3a9d714382f24aa494d9f82a0f0b7864e084c | 2,747 | cpp | C++ | Snake/AIs/StupidAI/StupidAI.cpp | Madsy/GameAutomata | e32f0442f3238c6110a39dff509244dbec2d60be | [
"BSD-3-Clause"
] | 2 | 2015-08-17T17:22:40.000Z | 2015-11-17T05:15:20.000Z | Snake/AIs/StupidAI/StupidAI.cpp | Madsy/GameAutomata | e32f0442f3238c6110a39dff509244dbec2d60be | [
"BSD-3-Clause"
] | null | null | null | Snake/AIs/StupidAI/StupidAI.cpp | Madsy/GameAutomata | e32f0442f3238c6110a39dff509244dbec2d60be | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <iostream>
#include "../../shared/SnakeGame.hpp"
Direction AIMove(int player, SnakeGameInfo& state)
{
Point head, newHead, foodDelta;
const Direction startMoves[4] = { Up, Down, Left, Right };
Direction d;
std::vector<Direction> possibleMoves;
head = state.sn... | 29.858696 | 99 | 0.670186 | Madsy |
e6f3b6ad777fa3f65581e10e8cc18bd21f3e1082 | 18,343 | hpp | C++ | include/GlobalNamespace/SliderInteractionManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/SliderInteractionManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/SliderInteractionManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#include ... | 59.749186 | 239 | 0.774737 | RedBrumbler |
e6fb7a55a534790d4ee470e7dc39cc86affa0e9e | 721 | hpp | C++ | sprout/tuple/indexes.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | 1 | 2018-09-21T23:50:44.000Z | 2018-09-21T23:50:44.000Z | sprout/tuple/indexes.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | sprout/tuple/indexes.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_TUPLE_INDEXES_HPP
#define SPROUT_TUPLE_INDEXES_HPP
#include <sprout/config.hpp>
#include <sprout/index_tuple.hpp>
#include <sprout/index_tuple/detail/make_indexes_helper.hpp>
#include <sprout/tuple/tuple.hpp>
namespace sprout {
namespace tuples {
//
// tuple_indexes
//
template<ty... | 22.53125 | 69 | 0.708738 | jwakely |
e6fced42eecd74e756b76964d9ff0b95b731355f | 2,762 | hh | C++ | prothos/runtime/runtime/FlowGraph.hh | ManyThreads/prothos | dd77c46df1dde323ccdfeac3319ba1dd2ea15ce1 | [
"MIT"
] | 1 | 2017-03-09T10:18:54.000Z | 2017-03-09T10:18:54.000Z | prothos/runtime/runtime/FlowGraph.hh | ManyThreads/prothos | dd77c46df1dde323ccdfeac3319ba1dd2ea15ce1 | [
"MIT"
] | 9 | 2018-10-02T11:41:07.000Z | 2019-02-07T14:39:52.000Z | prothos/runtime/runtime/FlowGraph.hh | ManyThreads/prothos | dd77c46df1dde323ccdfeac3319ba1dd2ea15ce1 | [
"MIT"
] | 1 | 2021-12-10T16:40:56.000Z | 2021-12-10T16:40:56.000Z | #pragma once
#include "runtime/FlowGraph_impl.hh"
namespace Prothos {
namespace FlowGraph {
class Graph {
public:
Graph() {}
};
class GraphNode {
public:
GraphNode(Graph &g)
: g(g)
{}
private:
Graph &g;
};
template<typename T>
inline void makeEdge(Internal::Sender<T> &s, Internal::Receiv... | 21.920635 | 119 | 0.669442 | ManyThreads |
e6fd33400e83c691970a57f89d22cb2ae8921bf6 | 270 | cpp | C++ | Pacote-Download/C-C++/repeticao4.cpp | AbnerSantos25/Arquivos-em-C | fe20725012ca1c2f1976b93f8520b6b528b249d9 | [
"MIT"
] | null | null | null | Pacote-Download/C-C++/repeticao4.cpp | AbnerSantos25/Arquivos-em-C | fe20725012ca1c2f1976b93f8520b6b528b249d9 | [
"MIT"
] | null | null | null | Pacote-Download/C-C++/repeticao4.cpp | AbnerSantos25/Arquivos-em-C | fe20725012ca1c2f1976b93f8520b6b528b249d9 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main()
{
int num, fat=1;
printf("calcula o fatorial de um numero\n");
printf("informe o numero: ");
scanf("%d",&num);
for(int i=num; i>=1; i--)
fat *= i;
printf("o fatorial de %d e %d",num,fat);
return 0;
}
| 18 | 48 | 0.525926 | AbnerSantos25 |
e6fdb753db279599a480bf07b6306068a80e8354 | 7,414 | cpp | C++ | software/esp32-firmware/src/uart_thread.cpp | vhs/vhs-door-nfc | 55b8210d7b07a5c6fa26bc40fae8362b504addd6 | [
"Apache-2.0"
] | null | null | null | software/esp32-firmware/src/uart_thread.cpp | vhs/vhs-door-nfc | 55b8210d7b07a5c6fa26bc40fae8362b504addd6 | [
"Apache-2.0"
] | 1 | 2019-02-01T23:03:20.000Z | 2019-02-02T19:48:57.000Z | software/esp32-firmware/src/uart_thread.cpp | vhs/vhs-door-nfc | 55b8210d7b07a5c6fa26bc40fae8362b504addd6 | [
"Apache-2.0"
] | 1 | 2020-02-16T06:43:42.000Z | 2020-02-16T06:43:42.000Z | #include <stdio.h>
#include <string.h>
#include <sys/unistd.h>
#include <sys/stat.h>
#include <time.h>
#include <sys/time.h>
#include <assert.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include <esp_types.h>
#include "esp_system.h"
#include "esp_event.h"
#include "esp_ev... | 40.075676 | 151 | 0.632587 | vhs |
e6ff3dffcd27ace8ddd9f25a3988255f48674290 | 2,749 | hpp | C++ | lib/sfml/src/Object.hpp | benjyup/cpp_arcade | 4b755990b64156148e529da1c39efe8a8c0c5d1f | [
"MIT"
] | null | null | null | lib/sfml/src/Object.hpp | benjyup/cpp_arcade | 4b755990b64156148e529da1c39efe8a8c0c5d1f | [
"MIT"
] | null | null | null | lib/sfml/src/Object.hpp | benjyup/cpp_arcade | 4b755990b64156148e529da1c39efe8a8c0c5d1f | [
"MIT"
] | null | null | null | /*
** Object.hpp for cpp_arcade in /home/peixot_b/delivery/cpp_arcade/Object.hpp
**
** Made by benjamin.peixoto
** Login <benjamin.peixoto@epitech.eu>
**
** Started on Mon Apr 03 14:18:52 2017 benjamin.peixoto
// Last update Fri Apr 7 15:36:07 2017 Benjamin
*/
#ifndef Object_HPP_
#define Object_HPP_
#include <fst... | 30.544444 | 80 | 0.563478 | benjyup |
fc001a66094c076fdcc4703bf46f0f93f64ba66f | 8,406 | cpp | C++ | CMinus/CMinus/evaluator/comparison.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | CMinus/CMinus/evaluator/comparison.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | CMinus/CMinus/evaluator/comparison.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | #include "../type/string_type.h"
#include "../storage/global_storage.h"
#include "comparison.h"
cminus::evaluator::comparison::~comparison() = default;
cminus::evaluator::numeric_comparison::~numeric_comparison() = default;
cminus::evaluator::object::memory_ptr_type cminus::evaluator::numeric_comparison::evaluate(o... | 46.441989 | 188 | 0.786224 | benbraide |
fc05318d0135c7a78b86a34b868117c50b606c4b | 1,510 | hpp | C++ | core/include/bind/emu/edi_jump_caret.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 731 | 2020-05-07T06:22:59.000Z | 2022-03-31T16:36:03.000Z | core/include/bind/emu/edi_jump_caret.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 67 | 2020-07-20T19:46:42.000Z | 2022-03-31T15:34:47.000Z | core/include/bind/emu/edi_jump_caret.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 15 | 2021-01-29T04:49:11.000Z | 2022-03-04T22:16:31.000Z | #ifndef _EDI_JUMP_CARET_HPP
#define _EDI_JUMP_CARET_HPP
#include "bind/binded_func_creator.hpp"
namespace vind
{
struct JumpCaretToBOL : public BindedFuncCreator<JumpCaretToBOL> {
explicit JumpCaretToBOL() ;
static void sprocess() ;
static void sprocess(NTypeLogger& parent_lgr) ;
s... | 33.555556 | 70 | 0.701325 | pit-ray |
fc06ee36a66ddf7bade121a13443131b79b2b12a | 2,007 | cpp | C++ | rt/rt/solids/quadric.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/solids/quadric.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/solids/quadric.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | #include "triangle.h"
#include <rt/bbox.h>
#include <rt/intersection.h>
#include <rt/solids/quadric.h>
namespace rt
{
Quadric::Quadric(
const Quadric::Coefficients& cof, CoordMapper* texMapper, Material* material)
: Solid(texMapper, material)
, cof(cof)
{
}
BBox Quadric::getBounds() const
{
// it's kind of h... | 29.086957 | 79 | 0.563029 | DasNaCl |
fc0936740b0faab94d140d6dd699662b0512bd2d | 13,602 | cpp | C++ | ciphers.cpp | KoSeAn97/Classic-Ciphers | c7c99913c4837425e45bdc86b5726b67eda82f7c | [
"Unlicense"
] | null | null | null | ciphers.cpp | KoSeAn97/Classic-Ciphers | c7c99913c4837425e45bdc86b5726b67eda82f7c | [
"Unlicense"
] | null | null | null | ciphers.cpp | KoSeAn97/Classic-Ciphers | c7c99913c4837425e45bdc86b5726b67eda82f7c | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <list>
#include <algorithm>
#include <codecvt>
#include "ciphers.hpp"
#include "utf8.h"
#define ALPH_ENG 26
#define ALPH_RUS 32
#define SPACE_WC L' '
#define LEAST_FR L'X'
#define MX_S_ENG 5
#define MX_S_RUS 6
extern std::locale loc;
//std::wstring_convert< std::codecvt_utf8<wchar_t> > ... | 30.42953 | 112 | 0.597706 | KoSeAn97 |
fc0a255f8462c18869fcd6916641e5daa2a46017 | 835 | cpp | C++ | Gaina.cpp | Dimi-T/POO-Lab12 | 6c228e6356eeff5ba455d094cdbf6aa846a631c2 | [
"MIT"
] | null | null | null | Gaina.cpp | Dimi-T/POO-Lab12 | 6c228e6356eeff5ba455d094cdbf6aa846a631c2 | [
"MIT"
] | null | null | null | Gaina.cpp | Dimi-T/POO-Lab12 | 6c228e6356eeff5ba455d094cdbf6aa846a631c2 | [
"MIT"
] | null | null | null | #include "Gaina.h"
Gaina::Gaina():Hambar()
{
}
Gaina::Gaina(int nr_animale):Hambar(nr_animale)
{
}
Gaina::Gaina(const Gaina& obj)
{
*this = obj;
}
Gaina::~Gaina()
{
}
Gaina& Gaina::operator=(const Gaina& obj)
{
this->nr_animale = obj.nr_animale;
return *this;
}
void Gaina::afisare(ostr... | 14.910714 | 144 | 0.626347 | Dimi-T |
fc0aad87fcce1efcc823c926ae9f36f7a6a433bd | 1,130 | cpp | C++ | higan/sfc/expansion/expansion.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | higan/sfc/expansion/expansion.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 1 | 2018-04-29T19:45:14.000Z | 2018-04-29T19:45:14.000Z | higan/sfc/expansion/expansion.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | #include <sfc/sfc.hpp>
namespace SuperFamicom {
ExpansionPort expansionPort;
Expansion::Expansion() {
if(!handle()) create(Expansion::Enter, 1);
}
Expansion::~Expansion() {
scheduler.remove(*this);
}
auto Expansion::Enter() -> void {
while(true) scheduler.synchronize(), expansionPort.device->main();
}
auto ... | 20.925926 | 74 | 0.699115 | 13824125580 |
fc0ad633ccb12312afee8de445a4c5bb98dc3e39 | 289 | cpp | C++ | QtOrmTests/QueryModelsTest/D.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | null | null | null | QtOrmTests/QueryModelsTest/D.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | 1 | 2016-11-04T14:26:58.000Z | 2016-11-04T14:27:57.000Z | QtOrmTests/QueryModelsTest/D.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | null | null | null | #include "D.h"
D::D(QObject *parent) : QObject(parent){
}
D::~D() {
}
QSharedPointer<KindA> D::getKindA() const {
return kindA;
}
void D::setKindA(QSharedPointer<KindA> value) {
kindA = value;
}
long D::getId() const {
return id;
}
void D::setId(long value) {
id = value;
}
| 11.56 | 47 | 0.619377 | rensfo |
fc0b2647e0f66ade4bdcfa23a7f3470c66dac983 | 313 | cpp | C++ | BCM2/src/main.cpp | Zardium/blockcraftmine2 | d2a570e3ab35c756ffaf2ac83849a5d878841f3f | [
"Apache-2.0"
] | null | null | null | BCM2/src/main.cpp | Zardium/blockcraftmine2 | d2a570e3ab35c756ffaf2ac83849a5d878841f3f | [
"Apache-2.0"
] | null | null | null | BCM2/src/main.cpp | Zardium/blockcraftmine2 | d2a570e3ab35c756ffaf2ac83849a5d878841f3f | [
"Apache-2.0"
] | null | null | null | // Local Headers
#include "pch.hpp"
#include "BCM2.hpp"
// System Headers
#include <glad/glad.h>
#include <GLFW/glfw3.h>
// Standard Headers
#include <cstdio>
#include <cstdlib>
#include <thread>
int main(int argc, char * argv[])
{
BlockCraftMine2::Game main_game;
main_game();
return EXIT_SUCCESS;
}
| 15.65 | 35 | 0.693291 | Zardium |
fc0db890723239f5296e51413438a65d55ace6f1 | 1,191 | cc | C++ | HDU/5095_Linearization_of_the_kernel_functions_in_SVM/5095.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | 1 | 2019-05-05T03:51:20.000Z | 2019-05-05T03:51:20.000Z | HDU/5095_Linearization_of_the_kernel_functions_in_SVM/5095.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | HDU/5095_Linearization_of_the_kernel_functions_in_SVM/5095.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
string str = "pqruvwxyz";
int t;
cin >> t;
while (t--) {
int num[10];
for (int i = 0; i < 10; ++i)
cin >> num[i];
bool flag = false;
for (int i = 0; i < 9; ++i) {
if (num[i... | 20.894737 | 42 | 0.280437 | pdszhh |
fc1765053d9939f891a86fa23721432cce0bc871 | 18,135 | cpp | C++ | core/variant_call.cpp | ZopharShinta/SegsEngine | 86d52c5b805e05e107594efd3358cabd694365f0 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | core/variant_call.cpp | ZopharShinta/SegsEngine | 86d52c5b805e05e107594efd3358cabd694365f0 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | core/variant_call.cpp | ZopharShinta/SegsEngine | 86d52c5b805e05e107594efd3358cabd694365f0 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | /*************************************************************************/
/* variant_call.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 42.174419 | 163 | 0.636173 | ZopharShinta |
fc1786ec223203c0d0cc2c157a0077dd0a4cb4ea | 8,102 | cpp | C++ | tests/test_progress.cpp | jinyyu/kvd | f3a2f7944b037ee59f26e7e8bf69024686023fd0 | [
"MIT"
] | 2 | 2019-04-18T15:15:20.000Z | 2019-08-16T03:01:16.000Z | tests/test_progress.cpp | jinyyu/kvd | f3a2f7944b037ee59f26e7e8bf69024686023fd0 | [
"MIT"
] | null | null | null | tests/test_progress.cpp | jinyyu/kvd | f3a2f7944b037ee59f26e7e8bf69024686023fd0 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <raft-kv/raft/progress.h>
using namespace kv;
static bool cmp_InFlights(const InFlights& l, const InFlights& r) {
return l.start == r.start && l.count == r.count && l.size == r.size && l.buffer == r.buffer;
}
TEST(progress, add) {
InFlights in(10);
in.buffer.resize(10, 0);
... | 28.034602 | 121 | 0.618489 | jinyyu |
fc1efbfa3bb6422aee8616cbc642d6897baf3344 | 6,569 | cpp | C++ | src/llc.cpp | salessandri/libtins | 2cf61403e186cda93c48ffb4310ff46eddb8dd20 | [
"BSD-2-Clause"
] | null | null | null | src/llc.cpp | salessandri/libtins | 2cf61403e186cda93c48ffb4310ff46eddb8dd20 | [
"BSD-2-Clause"
] | null | null | null | src/llc.cpp | salessandri/libtins | 2cf61403e186cda93c48ffb4310ff46eddb8dd20 | [
"BSD-2-Clause"
] | 1 | 2020-11-12T21:19:10.000Z | 2020-11-12T21:19:10.000Z | /*
* Copyright (c) 2014, Matias Fontanini
* 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 ... | 27.60084 | 116 | 0.706348 | salessandri |
fc1f020afe3acad394af8c020777f964da209f1f | 2,527 | hh | C++ | psana/psana/peakFinder/peakfinder8.hh | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 16 | 2017-11-09T17:10:56.000Z | 2022-03-09T23:03:10.000Z | psana/psana/peakFinder/peakfinder8.hh | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 6 | 2017-12-12T19:30:05.000Z | 2020-07-09T00:28:33.000Z | psana/psana/peakFinder/peakfinder8.hh | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 25 | 2017-09-18T20:02:43.000Z | 2022-03-27T22:27:42.000Z | // This file is part of OM.
//
// OM is free software: you can redistribute it and/or modify it under the terms of
// the GNU General Public License as published by the Free Software Foundation, either
// version 3 of the License, or (at your option) any later version.
//
// OM is distributed in the hope that it will b... | 43.568966 | 86 | 0.734863 | ZhenghengLi |
fc1fb8db83e54cf86864f1c20ee6f31ee9243501 | 4,104 | cpp | C++ | XJ Contests/2020/12.3/T3/C.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2020/12.3/T3/C.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2020/12.3/T3/C.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | /*
the vast starry sky,
bright for those who chase the light.
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define mk make_pair
const int inf=(int)1e9;
const ll INF=(ll)5e18;
const int MOD=998244353;
int _abs(int x){return x<0 ? -x : x;}
int add(int x,int y){x+=y; ret... | 30.857143 | 98 | 0.504873 | jinzhengyu1212 |
fc21af3d3b8dc236074202a09ad8ffa9c9e2ae37 | 5,506 | cpp | C++ | test/ara/com/someip/pubsub/someip_pubsub_test.cpp | bigdark1024/Adaptive-AUTOSAR | b7ebbbd123761bf3f73b1ef425c14c7705c967f8 | [
"MIT"
] | 49 | 2021-07-26T14:28:55.000Z | 2022-03-29T03:33:32.000Z | test/ara/com/someip/pubsub/someip_pubsub_test.cpp | bigdark1024/Adaptive-AUTOSAR | b7ebbbd123761bf3f73b1ef425c14c7705c967f8 | [
"MIT"
] | 9 | 2021-07-26T14:35:20.000Z | 2022-02-05T15:49:43.000Z | test/ara/com/someip/pubsub/someip_pubsub_test.cpp | bigdark1024/Adaptive-AUTOSAR | b7ebbbd123761bf3f73b1ef425c14c7705c967f8 | [
"MIT"
] | 17 | 2021-09-03T15:38:27.000Z | 2022-03-27T15:48:01.000Z | #include <gtest/gtest.h>
#include "../../../../../src/ara/com/someip/pubsub/someip_pubsub_server.h"
#include "../../../../../src/ara/com/someip/pubsub/someip_pubsub_client.h"
#include "../../helper/mockup_network_layer.h"
namespace ara
{
namespace com
{
namespace someip
{
namespace ... | 38.236111 | 87 | 0.460407 | bigdark1024 |
fc235de156e8661ed509ddf134cd4c96efda6600 | 6,373 | cpp | C++ | source/core/util/h5json.cpp | jwuttke/daquiri-qpx | 6606f4efca9bbe460e25e511fd94a8277c7e1fe6 | [
"BSD-2-Clause"
] | 2 | 2018-03-25T05:31:44.000Z | 2019-07-25T05:17:51.000Z | source/core/util/h5json.cpp | jwuttke/daquiri-qpx | 6606f4efca9bbe460e25e511fd94a8277c7e1fe6 | [
"BSD-2-Clause"
] | 158 | 2017-11-16T09:20:24.000Z | 2022-03-28T11:39:43.000Z | source/core/util/h5json.cpp | martukas/daquiri-qpx | 6606f4efca9bbe460e25e511fd94a8277c7e1fe6 | [
"BSD-2-Clause"
] | 2 | 2018-09-20T08:29:21.000Z | 2020-08-04T18:34:50.000Z | #include <core/util/h5json.h>
std::string vector_idx_minlen(size_t idx, size_t max)
{
size_t minlen = std::to_string(max).size();
std::string name = std::to_string(idx);
if (name.size() < minlen)
name = std::string(minlen - name.size(), '0').append(name);
return name;
}
namespace hdf5 {
node::Group requ... | 28.07489 | 76 | 0.571473 | jwuttke |
fc23ec946dd1aae6ca6656c444d1030e2a5eb347 | 13,013 | hpp | C++ | lockfree/AsyncObject.hpp | unevens/lockfree-async | 57009fc5270d3b42b8ff8c57c6c2961cdcf299b1 | [
"MIT"
] | 2 | 2020-04-06T01:50:26.000Z | 2021-03-18T17:19:36.000Z | lockfree/AsyncObject.hpp | unevens/lockfree-async | 57009fc5270d3b42b8ff8c57c6c2961cdcf299b1 | [
"MIT"
] | null | null | null | lockfree/AsyncObject.hpp | unevens/lockfree-async | 57009fc5270d3b42b8ff8c57c6c2961cdcf299b1 | [
"MIT"
] | null | null | null | /*
Copyright 2021 Dario Mambro
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, sublic... | 29.308559 | 120 | 0.694229 | unevens |
fc2f6c79898723b87a65d4377f6d2e7edc089055 | 1,141 | cpp | C++ | src/_leetcode/leet_m03.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_m03.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_m03.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ====================== leet_m03.cpp ==========================
* -- tpr --
* CREATE -- 2020.05.18
* MODIFY --
* ----------------------------------------------------------
* 面试题03. 数组中重复的数字
*/
#include "in... | 18.403226 | 65 | 0.38475 | turesnake |
fc310e984915f553272a2c1f598190737294767f | 885 | hpp | C++ | src/TextWidget.hpp | marcogillies/GUIWidgetsInheritanceExample | de41415d1b923c10931e87be5859c4936e207bd7 | [
"MIT"
] | null | null | null | src/TextWidget.hpp | marcogillies/GUIWidgetsInheritanceExample | de41415d1b923c10931e87be5859c4936e207bd7 | [
"MIT"
] | null | null | null | src/TextWidget.hpp | marcogillies/GUIWidgetsInheritanceExample | de41415d1b923c10931e87be5859c4936e207bd7 | [
"MIT"
] | null | null | null | //
// TextWidget.hpp
// GUIWidgets
//
// Created by Marco Gillies on 13/03/2017.
//
//
#ifndef TextWidget_hpp
#define TextWidget_hpp
#include <string>
#include "Widget.hpp"
class ofTrueTypeFont;
/*
* This is a base class for Widgets that
* contain text.
* It stores a string and a font to draw
* the text... | 22.125 | 87 | 0.688136 | marcogillies |
fc35608b9c7898fcf51a44b33fbcd7c9b5e9be78 | 4,718 | hpp | C++ | crogine/include/crogine/core/State.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | crogine/include/crogine/core/State.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | crogine/include/crogine/core/State.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2017 - 2020
http://trederia.blogspot.com
crogine - Zlib license.
This software is provided 'as-is', without any express or
implied warranty.In no event will the authors be held
liable for any damages arising from the use of this ... | 30.43871 | 85 | 0.625265 | fallahn |
fc3846c1ee06b5620458de9307ce7a316136d6b6 | 4,105 | cpp | C++ | qubus/src/performance_models/unified_performance_model.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/src/performance_models/unified_performance_model.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/src/performance_models/unified_performance_model.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | #include <hpx/config.hpp>
#include <qubus/performance_models/unified_performance_model.hpp>
#include <qubus/performance_models/regression_performance_model.hpp>
#include <qubus/performance_models/simple_statistical_performance_model.hpp>
#include <hpx/include/local_lcos.hpp>
#include <qubus/util/assert.hpp>
#inclu... | 32.322835 | 100 | 0.647259 | qubusproject |
fc38c32ad236fe64f0c1747f769a287e4139fe0c | 1,611 | cpp | C++ | cmdstan/stan/lib/stan_math/test/unit/math/prim/arr/err/check_finite_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/prim/arr/err/check_finite_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/prim/arr/err/check_finite_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/prim/arr.hpp>
#include <gtest/gtest.h>
using stan::math::check_finite;
// ---------- check_finite: vector tests ----------
TEST(ErrorHandlingScalar,CheckFinite_Vector) {
const char* function = "check_finite";
std::vector<double> x;
x.clear();
x.push_back (-1);
x.push_back (0);
x.pu... | 27.305085 | 66 | 0.66915 | yizhang-cae |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.