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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a3745e385ac1981cb79ad12880b051b5844f773 | 581 | hpp | C++ | HomeworkCodes/2021_hw1_sort_text/skeleton/data.hpp | senselab/CodeSensor | a9ba992d2ece3df8019e0d8b4c43e0ec9d811091 | [
"BSD-2-Clause"
] | 3 | 2016-07-26T09:22:49.000Z | 2022-02-04T09:38:15.000Z | HomeworkCodes/2021_hw1_sort_text/skeleton/data.hpp | senselab/CodeSensor | a9ba992d2ece3df8019e0d8b4c43e0ec9d811091 | [
"BSD-2-Clause"
] | null | null | null | HomeworkCodes/2021_hw1_sort_text/skeleton/data.hpp | senselab/CodeSensor | a9ba992d2ece3df8019e0d8b4c43e0ec9d811091 | [
"BSD-2-Clause"
] | 2 | 2017-11-19T23:29:43.000Z | 2020-03-06T08:39:21.000Z | #ifndef _DATA_H_
#define _DATA_H_
#define SHM_NAME "hw_test"
struct tTestData {
int cnt;
int data[5][20000];
};
#ifdef WRITER
#include <fstream>
// return true if success, false otherwise
bool load_data(tTestData* test_data) {
std::ifstream ifs("input.txt");
if (!ifs.is_open()) return false;
... | 16.6 | 58 | 0.593804 | senselab |
6a3ae8592ed0c529f02dfd2cbf1705fbb2d3f163 | 7,093 | hh | C++ | CalPatRec/inc/CalHelixFinderData.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2021-06-25T00:00:12.000Z | 2021-06-25T00:00:12.000Z | CalPatRec/inc/CalHelixFinderData.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 125 | 2020-04-03T13:44:30.000Z | 2021-10-15T21:29:57.000Z | CalPatRec/inc/CalHelixFinderData.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | //
#ifndef CalHelixFinderData_HH
#define CalHelixFinderData_HH
#include "Mu2eUtilities/inc/LsqSums4.hh"
#include "BTrk/TrkBase/TrkErrCode.hh"
#include "BTrk/TrkBase/TrkParticle.hh"
#include "RecoDataProducts/inc/TrkFitDirection.hh"
#include "RecoDataProducts/inc/StrawHitPositionCollection.hh"
#include "RecoDataProduc... | 34.6 | 113 | 0.46567 | bonventre |
6a3e53dd00e558b5cd763adf9a324e0ee74930cf | 634 | cpp | C++ | CodeForces-Solution/1409F.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-01-23T07:18:07.000Z | 2022-01-23T07:18:07.000Z | CodeForces-Solution/1409F.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | null | null | null | CodeForces-Solution/1409F.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-02-05T11:53:04.000Z | 2022-02-05T11:53:04.000Z | #include<bits/stdc++.h>
using namespace std;
string a, b;
int n, k, dp[202][202][202];
int yo(int i, int change, int cnt) {
if (change > k) return -1000000;
if (i == n) return 0;
int &ret = dp[i][change][cnt];
if (ret != -1) return ret;
ret = yo(i + 1, change, cnt + (a[i] == b[0])) + cnt * (a[i] == b[1]);
ret = ... | 26.416667 | 71 | 0.520505 | Tech-Intellegent |
6a3e5cfb004517c23f6921c36b8521048465d7ff | 12,627 | hpp | C++ | viennagrid/algorithm/circumcenter.hpp | viennagrid/viennagrid-dev | 6e47c8d098a0b691d6b9988f2444cd11d440f4c2 | [
"MIT"
] | 7 | 2015-09-13T03:50:58.000Z | 2019-06-27T14:24:49.000Z | viennagrid/algorithm/circumcenter.hpp | viennagrid/viennagrid-dev | 6e47c8d098a0b691d6b9988f2444cd11d440f4c2 | [
"MIT"
] | null | null | null | viennagrid/algorithm/circumcenter.hpp | viennagrid/viennagrid-dev | 6e47c8d098a0b691d6b9988f2444cd11d440f4c2 | [
"MIT"
] | 5 | 2015-07-03T07:14:15.000Z | 2021-05-20T00:51:58.000Z | #ifndef VIENNAGRID_ALGORITHM_CIRCUMCENTER_HPP
#define VIENNAGRID_ALGORITHM_CIRCUMCENTER_HPP
/* =======================================================================
Copyright (c) 2011-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... | 41.4 | 195 | 0.652491 | viennagrid |
6a44caaf29b1222cf5831d687765da37869ace31 | 9,505 | cpp | C++ | UnitTests/DiskShape.cpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 88 | 2017-07-13T18:12:40.000Z | 2022-03-23T03:43:11.000Z | UnitTests/DiskShape.cpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 388 | 2017-07-13T04:32:09.000Z | 2021-11-10T20:59:23.000Z | UnitTests/DiskShape.cpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 18 | 2017-07-20T16:14:57.000Z | 2021-06-20T07:17:23.000Z | /*
* Copyright (c) 2021 Louis Langholtz https://github.com/louis-langholtz/PlayRho
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this... | 36.698842 | 97 | 0.700263 | Hexlord |
c69f1278e813370c0c9e53ee8fe4610fae8c03dc | 587 | cpp | C++ | test/sini.cpp | apples/sini | e04f79ab2fd4e9d882c41507746bcb08f6fb343c | [
"MIT"
] | null | null | null | test/sini.cpp | apples/sini | e04f79ab2fd4e9d882c41507746bcb08f6fb343c | [
"MIT"
] | null | null | null | test/sini.cpp | apples/sini | e04f79ab2fd4e9d882c41507746bcb08f6fb343c | [
"MIT"
] | null | null | null | #include "sini.hpp"
#include <gtest/gtest.h>
namespace sini
{
namespace test
{
TEST(sini, temp)
{
Sini sini;
sini.parse(
"a=b\n"
"c=d\n"
"\n"
"[asdf]\n"
"e=f\n"
"g=h\n"
... | 18.34375 | 38 | 0.248722 | apples |
c6b2ea8baa44b45bb6c7fde91c717aea5ad84c26 | 810 | cpp | C++ | tests.cpp | Smith-TVDSB/ICS3U-2-4-Switch-Statements | eb2ffaf729041a494be6cd0ef2a08f052bf30696 | [
"MIT"
] | null | null | null | tests.cpp | Smith-TVDSB/ICS3U-2-4-Switch-Statements | eb2ffaf729041a494be6cd0ef2a08f052bf30696 | [
"MIT"
] | null | null | null | tests.cpp | Smith-TVDSB/ICS3U-2-4-Switch-Statements | eb2ffaf729041a494be6cd0ef2a08f052bf30696 | [
"MIT"
] | 1 | 2021-11-02T12:30:46.000Z | 2021-11-02T12:30:46.000Z | // Test definitions. Do NOT edit this file!
#include <tuple>
#define CATCH_CONFIG_MAIN // defines main() automatically
#include "catch.hpp"
#include "student.hpp" // student implementations
//TESTS
TEST_CASE("ExerciseOne") //Named ExerciseOne, tagged with example
{
CHECK(exerciseOne(7)=="James Bon... | 27.931034 | 70 | 0.680247 | Smith-TVDSB |
c6b7874f9e19fa650467ddafd881d13fb1ee0a9d | 10,520 | cpp | C++ | tests/unit/parsing/parsing_field_value_test.cpp | slepasteur/rmqpp | 9539d4e7954f8825f9550efecce057b9a3deb808 | [
"MIT"
] | null | null | null | tests/unit/parsing/parsing_field_value_test.cpp | slepasteur/rmqpp | 9539d4e7954f8825f9550efecce057b9a3deb808 | [
"MIT"
] | null | null | null | tests/unit/parsing/parsing_field_value_test.cpp | slepasteur/rmqpp | 9539d4e7954f8825f9550efecce057b9a3deb808 | [
"MIT"
] | null | null | null | #include <array>
#include <cstddef>
#include <span>
#include <parse_it/parser.h>
#include <parse_it/utils/byte_litterals.h>
#include "transport/parsing/data_field_parser.h"
#include "utils/overloaded.h"
#include <doctest/doctest.h>
using namespace parse_it::byte_litterals;
TEST_CASE("Parsing field values.")
{
SU... | 31.032448 | 119 | 0.558175 | slepasteur |
c6c67878474fd0eb71fe9ec227378079bae4d0f1 | 4,662 | cpp | C++ | src/GameServer/GameServerApp/GameServerApp.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | 4 | 2019-06-17T13:44:49.000Z | 2021-01-19T10:39:48.000Z | src/GameServer/GameServerApp/GameServerApp.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | null | null | null | src/GameServer/GameServerApp/GameServerApp.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | 4 | 2019-06-17T16:03:20.000Z | 2020-02-15T09:14:30.000Z | // GameServerApp.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "GameServerApp.h"
#include "MainFrm.h"
#include "GameServerAppDoc.h"
#include "GameServerAppView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
////////////////... | 25.2 | 87 | 0.674603 | vitek-karas |
c6cac27958a7a9e12255f4bbd54e7ba5aace1140 | 6,258 | cpp | C++ | test/threadTest/test.cpp | MaxZZG/ExprLib | c35e361ef6af365e7cd6afca6548595693bd149a | [
"MIT"
] | null | null | null | test/threadTest/test.cpp | MaxZZG/ExprLib | c35e361ef6af365e7cd6afca6548595693bd149a | [
"MIT"
] | null | null | null | test/threadTest/test.cpp | MaxZZG/ExprLib | c35e361ef6af365e7cd6afca6548595693bd149a | [
"MIT"
] | null | null | null | #include "test.h"
#include <spatialops/Nebo.h>
RHSExpr::RHSExpr( const Expr::Tag& fluxTag,
const Expr::Tag& srcTag )
: Expr::Expression<VolT>(),
doFlux_( fluxTag != Expr::Tag() ),
doSrc_ ( srcTag != Expr::Tag() )
{
this->set_gpu_runnable( true );
if( doFlux_ ) flux_ = this->create_fie... | 25.336032 | 99 | 0.454618 | MaxZZG |
c6cada1a338e6286c3dc65430fc22a6c236e4794 | 1,675 | cpp | C++ | Antario/Features/Resolver.cpp | NoelWriter/mirrorcsgo | bb527561df68cff5283472d5fed0492c58c2a078 | [
"MIT"
] | 1 | 2020-02-23T17:35:51.000Z | 2020-02-23T17:35:51.000Z | Antario/Features/Resolver.cpp | NoelWriter/mirrorcsgo | bb527561df68cff5283472d5fed0492c58c2a078 | [
"MIT"
] | null | null | null | Antario/Features/Resolver.cpp | NoelWriter/mirrorcsgo | bb527561df68cff5283472d5fed0492c58c2a078 | [
"MIT"
] | null | null | null | #include "Resolver.h"
#include "..\Hooks.h"
#include "..\SDK\CGlobalVarsBase.h"
#include "..\Utils\Utils.h"
#include "..\SDK\IVEngineClient.h"
#include "..\SDK\PlayerInfo.h"
#include "..\SDK\IVModelInfoClient.hpp"
Resolver g_Resolver;
void Resolver::DoResolver()
{
if (!g_Settings.bRagebotResolver)
return;
for (... | 16.75 | 86 | 0.675821 | NoelWriter |
c6cae22fc0e3077b22b50d24ae57e5b813cee929 | 3,030 | cpp | C++ | src/FusionEKF.cpp | RamadanAhmed/CarND-Extended-Kalman-Filter-Project | 4d40747d7deb586aadc49060daf3d1c55cddab68 | [
"MIT"
] | null | null | null | src/FusionEKF.cpp | RamadanAhmed/CarND-Extended-Kalman-Filter-Project | 4d40747d7deb586aadc49060daf3d1c55cddab68 | [
"MIT"
] | null | null | null | src/FusionEKF.cpp | RamadanAhmed/CarND-Extended-Kalman-Filter-Project | 4d40747d7deb586aadc49060daf3d1c55cddab68 | [
"MIT"
] | null | null | null | #include "FusionEKF.h"
#include <iostream>
#include "Eigen/Dense"
#include "tools.h"
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::cout;
using std::endl;
using std::vector;
/**
* Constructor.
*/
FusionEKF::FusionEKF() {
is_initialized_ = false;
previous_timestamp_ = 0;
// initializing matrices
... | 24.634146 | 82 | 0.660726 | RamadanAhmed |
c6d1b207f2acbf7a5bfb0bc20c244615d7a0dd87 | 1,620 | cpp | C++ | ioserver/src/ioserver/IoServer.cpp | kaliatech/r7-ioserver | 23612ef721a7bf7a8049f3c25fcf46b1fd5b5c62 | [
"MIT"
] | 1 | 2018-08-21T12:05:04.000Z | 2018-08-21T12:05:04.000Z | ioserver/src/ioserver/IoServer.cpp | kaliatech/r7-ioserver | 23612ef721a7bf7a8049f3c25fcf46b1fd5b5c62 | [
"MIT"
] | null | null | null | ioserver/src/ioserver/IoServer.cpp | kaliatech/r7-ioserver | 23612ef721a7bf7a8049f3c25fcf46b1fd5b5c62 | [
"MIT"
] | null | null | null | #include "IoServer.h"
#include "civetweb/CivetServer.h"
#include <chrono>
#include <fstream>
#include <string>
#include <thread>
#include <iostream>
#include "data/DatabaseManager.h"
#include "ioserver/IoServerConfig.h"
#include "IoServerContext.h"
#include "ioserver/IoServerException.h"
#include "api/web/WebServerP... | 24.923077 | 115 | 0.637037 | kaliatech |
c6d48e8cfac6138274b4ea320ec8a52e8b83f813 | 577 | cpp | C++ | Linked List/Circular Linked List/Insert at End.cpp | Benson1198/CPP | b12494becadc9431303cfdb51c5134dc68c679c3 | [
"MIT"
] | null | null | null | Linked List/Circular Linked List/Insert at End.cpp | Benson1198/CPP | b12494becadc9431303cfdb51c5134dc68c679c3 | [
"MIT"
] | null | null | null | Linked List/Circular Linked List/Insert at End.cpp | Benson1198/CPP | b12494becadc9431303cfdb51c5134dc68c679c3 | [
"MIT"
] | 1 | 2020-10-06T09:17:33.000Z | 2020-10-06T09:17:33.000Z | Node *insertEnd(Node *head,int x){
Node *temp= new Node(x);
if(head == NULL){
temp->next = temp;
return temp;
}
else{
Node *curr = head;
while(curr->next != head){
curr = curr->next;
}
curr->next = temp;
temp->next = head;
return head;
}
}
// Efficient solution O(1) time complexity
Node *... | 14.425 | 42 | 0.585789 | Benson1198 |
c6d904e6920d03ce5f26f20485f07716485db44b | 3,424 | cpp | C++ | src/client/login/login_handler_thread.cpp | Santoi/quantum-chess | a2f5a0f322c6aa51488c52c8ebacbe0ad75ca9f9 | [
"MIT"
] | 9 | 2021-12-22T02:10:34.000Z | 2021-12-30T17:14:25.000Z | src/client/login/login_handler_thread.cpp | Santoi/quantum-chess | a2f5a0f322c6aa51488c52c8ebacbe0ad75ca9f9 | [
"MIT"
] | null | null | null | src/client/login/login_handler_thread.cpp | Santoi/quantum-chess | a2f5a0f322c6aa51488c52c8ebacbe0ad75ca9f9 | [
"MIT"
] | null | null | null | #include "login_handler_thread.h"
#include "../logic/button.h"
#include "../logic/text_entry_button.h"
#include <list>
#include <string>
LoginHandlerThread::LoginHandlerThread(Login &login,
LoginStateHandler &login_state_handler) :
HandlerThread(true),
login(login),
l... | 31.703704 | 80 | 0.69889 | Santoi |
c6d9113330a90fc3e2febd6fbe924ca2e32ed5a0 | 3,891 | hpp | C++ | include/uxr/agent/utils/TokenBucket.hpp | JiGoRo1969/Micro-XRCE-DDS-Agent | 05ffeacc32181c6369be264d0bd4b74a0eb24632 | [
"Apache-2.0"
] | 2 | 2019-11-14T08:41:40.000Z | 2019-11-14T14:09:09.000Z | include/uxr/agent/utils/TokenBucket.hpp | JiGoRo1969/Micro-XRCE-DDS-Agent | 05ffeacc32181c6369be264d0bd4b74a0eb24632 | [
"Apache-2.0"
] | null | null | null | include/uxr/agent/utils/TokenBucket.hpp | JiGoRo1969/Micro-XRCE-DDS-Agent | 05ffeacc32181c6369be264d0bd4b74a0eb24632 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 29.477273 | 117 | 0.690054 | JiGoRo1969 |
c6d94ddf6b440370c10cfb3219705e6d18487b94 | 9,947 | cpp | C++ | Lumos/Source/Lumos/Platform/OpenGL/GLPipeline.cpp | perefm/Lumos | 2f0ae4d0bad1447b5318043500751be1753666a2 | [
"MIT"
] | 672 | 2019-01-29T18:14:40.000Z | 2022-03-31T20:38:40.000Z | Lumos/Source/Lumos/Platform/OpenGL/GLPipeline.cpp | perefm/Lumos | 2f0ae4d0bad1447b5318043500751be1753666a2 | [
"MIT"
] | 25 | 2019-10-05T17:16:13.000Z | 2021-12-29T01:40:04.000Z | Lumos/Source/Lumos/Platform/OpenGL/GLPipeline.cpp | perefm/Lumos | 2f0ae4d0bad1447b5318043500751be1753666a2 | [
"MIT"
] | 83 | 2019-03-13T14:11:12.000Z | 2022-03-30T02:52:49.000Z | #include "Precompiled.h"
#include "GLPipeline.h"
#include "GLDescriptorSet.h"
#include "GLShader.h"
#include "GLFramebuffer.h"
#include "GLRenderPass.h"
#include "GLSwapChain.h"
#include <glad/glad.h>
namespace Lumos
{
namespace Graphics
{
GLPipeline::GLPipeline(const PipelineDesc& pipelineDesc)
... | 36.30292 | 140 | 0.550116 | perefm |
c6db967d961e391961bbba93f0753e65cdb0e49a | 4,512 | cpp | C++ | module/mpc-be/SRC/src/ExtLib/VirtualDub/system/source/log.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/ExtLib/VirtualDub/system/source/log.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | 1 | 2019-11-14T04:18:32.000Z | 2019-11-14T04:18:32.000Z | module/mpc-be/SRC/src/ExtLib/VirtualDub/system/source/log.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | // VirtualDub - Video processing and capture application
// System library component
// Copyright (C) 1998-2004 Avery Lee, All Rights Reserved.
//
// Beginning with 1.6.0, the VirtualDub system library is licensed
// differently than the remainder of VirtualDub. This particular file is
// thus licensed as follows (the... | 25.636364 | 114 | 0.660683 | 1aq |
c6dfb8a3872a1dbe91070b89c89c4513d4eea541 | 1,978 | cpp | C++ | mathgl-2.4.3/src/mpi.cpp | angelamsj/cruise-control | 0fb94e86217afee2e637de694b0148b99b052ccf | [
"MIT"
] | 10 | 2017-05-06T19:05:02.000Z | 2021-11-30T15:12:09.000Z | mathgl-2.4.3/src/mpi.cpp | angelamsj/cruise-control | 0fb94e86217afee2e637de694b0148b99b052ccf | [
"MIT"
] | 19 | 2018-01-17T20:22:42.000Z | 2022-03-18T20:29:43.000Z | mathgl-2.4.3/src/mpi.cpp | angelamsj/cruise-control | 0fb94e86217afee2e637de694b0148b99b052ccf | [
"MIT"
] | 4 | 2018-04-19T15:33:06.000Z | 2021-06-15T16:13:12.000Z | #include "mgl2/mpi.h"
#include "mgl2/canvas.h"
#include <mpi.h>
#define MCW MPI_COMM_WORLD
#define TAG_DATA_Z 0
#define TAG_DATA_C 1
//-----------------------------------------------------------------------------
void MGL_EXPORT mgl_mpi_send(HMGL gr, int id)
{
mglCanvas *g = dynamic_cast<mglCanvas *>(gr); if(!g) retu... | 38.784314 | 96 | 0.567745 | angelamsj |
c6e17b2f7e0da4917551f872fc0ee3f6271123e1 | 1,319 | cpp | C++ | backup/2/hackerrank/c++/separate-the-numbers.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/hackerrank/c++/separate-the-numbers.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/hackerrank/c++/separate-the-numbers.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 34.710526 | 345 | 0.571645 | yangyanzhan |
c6e5edd95989179ef6617f3cba527e16e795018b | 3,178 | cpp | C++ | drm/src/v20181115/model/DrmSourceObject.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | drm/src/v20181115/model/DrmSourceObject.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | drm/src/v20181115/model/DrmSourceObject.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 28.375 | 144 | 0.707992 | suluner |
c6e62bd17331ec475c439ea08714fd2bc505eede | 1,052 | cpp | C++ | Chapter-2-Intro-to-C++/Programming Challenges/09.cpp | jesushilarioh/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 3 | 2019-02-02T16:59:48.000Z | 2019-02-28T14:50:08.000Z | Chapter-2-Intro-to-C++/Programming Challenges/09.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | null | null | null | Chapter-2-Intro-to-C++/Programming Challenges/09.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 1 | 2021-07-25T09:50:07.000Z | 2021-07-25T09:50:07.000Z | /********************************************************************
*
* 09. CYBORG DATA TYPE SIZES
* You have been given a job as a programmer on a Cyborg
* supercomputer. In order to accomplish some calculations, you
* need to know how many bytes the following data types use:
* char, int, flo... | 32.875 | 74 | 0.534221 | jesushilarioh |
c6e6a7ce39f6169968fb8fc557cbf285687db1a9 | 13,823 | cpp | C++ | Samples/Win7Samples/multimedia/mediafoundation/MFCaptureD3D/winmain.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/multimedia/mediafoundation/MFCaptureD3D/winmain.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/multimedia/mediafoundation/MFCaptureD3D/winmain.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | //////////////////////////////////////////////////////////////////////////
//
// winmain.cpp : Application entry-point
//
// 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... | 24.081882 | 101 | 0.500977 | windows-development |
c6eb69e1d92a216da3dd24452842e71de9b70a4a | 4,278 | cpp | C++ | SPOJ/SCAVHUNT - Scavenger Hunt.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 6 | 2018-11-26T02:38:07.000Z | 2021-07-28T00:16:41.000Z | SPOJ/SCAVHUNT - Scavenger Hunt.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 1 | 2021-05-30T09:25:53.000Z | 2021-06-05T08:33:56.000Z | SPOJ/SCAVHUNT - Scavenger Hunt.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 4 | 2020-04-16T07:15:01.000Z | 2020-12-04T06:26:07.000Z | /*SCAVHUNT - Scavenger Hunt
no tags
Bill has been the greatest boy scout in America and has become quite a superstar because he always organized the most wonderful scavenger hunts (you know, where the kids have to find a certain route following certain hints). Bill has retired now, but a nationwide election quickly f... | 31 | 1,065 | 0.578308 | ravirathee |
c6ebe1c3e119cdd2364a7c302d187fb26fd08ce7 | 2,261 | hpp | C++ | include/react/computation/variable.hpp | ldionne/react | 57b51d179661a9c21bc1f987d124722ac36399ac | [
"BSL-1.0"
] | 6 | 2015-06-05T17:48:12.000Z | 2020-10-04T03:45:18.000Z | include/react/computation/variable.hpp | ldionne/react | 57b51d179661a9c21bc1f987d124722ac36399ac | [
"BSL-1.0"
] | 1 | 2021-06-23T05:51:46.000Z | 2021-06-23T05:51:46.000Z | include/react/computation/variable.hpp | ldionne/react | 57b51d179661a9c21bc1f987d124722ac36399ac | [
"BSL-1.0"
] | 2 | 2016-05-06T06:55:40.000Z | 2020-03-25T19:19:14.000Z | /*!
* @file
* Defines `react::computation::variable`.
*/
#ifndef REACT_COMPUTATION_VARIABLE_HPP
#define REACT_COMPUTATION_VARIABLE_HPP
#include <react/computation/noop.hpp>
#include <react/detail/auto_return.hpp>
#include <react/detail/dont_care.hpp>
#include <array>
#include <boost/mpl/eval_if.hpp>
#include <boo... | 28.620253 | 74 | 0.616984 | ldionne |
c6f1e5d79cb6b68a86d3a4d9dc9e3d94d4eafcdd | 140 | cpp | C++ | regression/cpp-from-CVS/Implicit_Conversion1/main.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 1 | 2021-08-17T08:41:12.000Z | 2021-08-17T08:41:12.000Z | regression/cpp-from-CVS/Implicit_Conversion1/main.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 6 | 2017-12-03T22:02:14.000Z | 2018-04-10T09:42:20.000Z | regression/cpp-from-CVS/Implicit_Conversion1/main.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 4 | 2019-01-19T03:32:21.000Z | 2021-12-20T14:25:19.000Z | struct A
{
int i;
};
struct B: public A {
int j;
};
int func(A a)
{
return a.i;
}
int main()
{
B b;
b.i = 1;
assert(func(b)==1);
}
| 6.666667 | 20 | 0.5 | dan-blank |
c6f3135656e815fcffa7f73db140dc0677f3ae9a | 2,955 | cpp | C++ | src/nes/cart/mapper/Mapper000.cpp | clubycoder/nes_emu | b4dac31dc1bd7ebb04ecb0a8593a636567440e97 | [
"MIT"
] | null | null | null | src/nes/cart/mapper/Mapper000.cpp | clubycoder/nes_emu | b4dac31dc1bd7ebb04ecb0a8593a636567440e97 | [
"MIT"
] | null | null | null | src/nes/cart/mapper/Mapper000.cpp | clubycoder/nes_emu | b4dac31dc1bd7ebb04ecb0a8593a636567440e97 | [
"MIT"
] | null | null | null | /*******************************************************************************
MIT License
Copyright (c) 2020 Chris Luby
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, inc... | 34.360465 | 106 | 0.653469 | clubycoder |
c6fa63ea5c2834fb7bfa9fddb471a0fe9b70d0bc | 1,382 | cpp | C++ | P/2196.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2020-09-13T02:51:25.000Z | 2020-09-13T02:51:25.000Z | P/2196.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | null | null | null | P/2196.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2021-06-05T03:37:57.000Z | 2021-06-05T03:37:57.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
const int inf = 25;
bool conn[inf][inf], vis[inf];
int a[inf], path[inf], ans[inf], c;
int n, vmax;
inline bool func (int x)
{
for (int i = 1; i <= n; i ++)
{
if (conn[x][i] && !vis[i])
{
return false;
... | 17.493671 | 44 | 0.344428 | langonginc |
c6fb999689d30020f5c891040ed2f02455095f82 | 2,314 | hpp | C++ | src/lib/myStringLib.hpp | cpro95/renamer-youtube-dl | 98e1b5b14d9b5cecd24decf03c79e0b20ad756cc | [
"MIT"
] | null | null | null | src/lib/myStringLib.hpp | cpro95/renamer-youtube-dl | 98e1b5b14d9b5cecd24decf03c79e0b20ad756cc | [
"MIT"
] | null | null | null | src/lib/myStringLib.hpp | cpro95/renamer-youtube-dl | 98e1b5b14d9b5cecd24decf03c79e0b20ad756cc | [
"MIT"
] | null | null | null | #include <string>
#include <dirent.h>
#include "spdlog/spdlog.h"
namespace myStringLib
{
// lib test function
void myStringLib(void)
{
spdlog::info("myStringLib Init...");
}
bool sortOp(std::string i, std::string j)
{
return (i < j);
}
bool sortOpReverse(std::string i, std::string j)
{
return (i > j... | 19.610169 | 73 | 0.633535 | cpro95 |
c6fd86c915d739867d3e7cfaa38b29287207c595 | 4,466 | cpp | C++ | Love-Babbar-450-In-CPPTest/12_graph/32_cheapest_flights_within_K_stops.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | Love-Babbar-450-In-CPPTest/12_graph/32_cheapest_flights_within_K_stops.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | Love-Babbar-450-In-CPPTest/12_graph/32_cheapest_flights_within_K_stops.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | ///*
// link: https://leetcode.com/problems/cheapest-flights-within-k-stops/description/
//
// hint: use shortest path algo
//*/
//
//
//
//// ----------------------------------------------------------------------------------------------------------------------- //
///*
// DFS
//*/
//void dfs(int s, int d, int... | 25.965116 | 127 | 0.381997 | harshanu11 |
0503176714647cd43b2533b0f1a766a124fec33c | 28,862 | cc | C++ | rpi-rgb-led-matrix-master/demo-main.cc | hammal/macapar | 05fb84b8f5e967ed6d3edb0891ac58674e6b60bc | [
"MIT"
] | null | null | null | rpi-rgb-led-matrix-master/demo-main.cc | hammal/macapar | 05fb84b8f5e967ed6d3edb0891ac58674e6b60bc | [
"MIT"
] | null | null | null | rpi-rgb-led-matrix-master/demo-main.cc | hammal/macapar | 05fb84b8f5e967ed6d3edb0891ac58674e6b60bc | [
"MIT"
] | null | null | null | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
//
// This code is public domain
// (but note, that the led-matrix library this depends on is GPL v2)
#include "led-matrix.h"
#include "threaded-canvas-manipulator.h"
#include <assert.h>
#include <getopt.h>
#include <limits.h>
#include <math.h>
#include ... | 27.254013 | 81 | 0.545284 | hammal |
0503b5636803912e6c11888755b20c83a2cb1cff | 8,627 | cpp | C++ | src/utils/DocAPI.cpp | Fabio3rs/cppapiframework | 14f1b1b42b77edbbf72d9d7f949ea6c9fcfa06a5 | [
"MIT"
] | 3 | 2021-12-27T14:38:53.000Z | 2022-02-18T19:38:05.000Z | src/utils/DocAPI.cpp | eduardoc7/cppapiframework | 01153789c56ee217e5f1c424ef979d11c6d67d31 | [
"MIT"
] | null | null | null | src/utils/DocAPI.cpp | eduardoc7/cppapiframework | 01153789c56ee217e5f1c424ef979d11c6d67d31 | [
"MIT"
] | 1 | 2021-12-27T18:20:32.000Z | 2021-12-27T18:20:32.000Z | #include "DocAPI.hpp"
#include <Poco/UTF8Encoding.h>
#include <Poco/UTF8String.h>
DocAPI::DocAPI() {
paths = new Poco::JSON::Object;
mainobj = new Poco::JSON::Object;
Poco::JSON::Object::Ptr info = new Poco::JSON::Object;
info->set("contact", Poco::JSON::Object::Ptr(new Poco::JSON::Object));
Poco... | 30.484099 | 77 | 0.575055 | Fabio3rs |
0505aad471fbec5ff07708e33c50645db0aa24ff | 7,075 | cpp | C++ | MK/module/motion/stepper_indirection.cpp | bloutix/MarlinKimbra | de8e807bb56ab175b2b4154ed2afc5e11eabf47e | [
"RSA-MD"
] | null | null | null | MK/module/motion/stepper_indirection.cpp | bloutix/MarlinKimbra | de8e807bb56ab175b2b4154ed2afc5e11eabf47e | [
"RSA-MD"
] | null | null | null | MK/module/motion/stepper_indirection.cpp | bloutix/MarlinKimbra | de8e807bb56ab175b2b4154ed2afc5e11eabf47e | [
"RSA-MD"
] | null | null | null | /**
* MK & MK4due 3D Printer Firmware
*
* Based on Marlin, Sprinter and grbl
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (C) 2013 - 2016 Alberto Cotronei @MagoKimbra
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public Li... | 30.49569 | 101 | 0.759717 | bloutix |
050a9668dfde676f30522d7c5b180157881a774b | 1,896 | hh | C++ | arm-linux-ulibc-4.8.5/usr/arm-nuvoton-linux-uclibcgnueabi/sysroot/usr/include/log4cpp/TimeStamp.hh | next-generate/armv5TE-toolchain | 8f107ce06fdc6d7f6e56f3b1b1c9f0f13cfa6727 | [
"Apache-2.0"
] | 26 | 2019-06-02T15:22:01.000Z | 2022-03-11T06:54:23.000Z | arm-linux-ulibc-4.8.5/usr/arm-nuvoton-linux-uclibcgnueabi/sysroot/usr/include/log4cpp/TimeStamp.hh | next-generate/armv5TE-toolchain | 8f107ce06fdc6d7f6e56f3b1b1c9f0f13cfa6727 | [
"Apache-2.0"
] | 26 | 2019-09-20T06:46:05.000Z | 2022-03-11T08:07:14.000Z | arm-linux-ulibc-4.8.5/usr/arm-nuvoton-linux-uclibcgnueabi/sysroot/usr/include/log4cpp/TimeStamp.hh | next-generate/armv5TE-toolchain | 8f107ce06fdc6d7f6e56f3b1b1c9f0f13cfa6727 | [
"Apache-2.0"
] | 18 | 2019-06-02T13:00:17.000Z | 2022-01-21T13:12:29.000Z | /*
* TimeStamp.hh
*
* Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2001, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4CPP_TIMESTAMP_HH
#define _LOG4CPP_TIMESTAMP_HH
#include <log4cpp/Portabili... | 25.28 | 79 | 0.587025 | next-generate |
050d329066c83414fcdef2e001431deeb6806d34 | 337 | hpp | C++ | ast_processor/utils.hpp | cool-colo/rule_engine | eeed051db249baa13bb05e25efd2971e5c7361f8 | [
"MIT"
] | null | null | null | ast_processor/utils.hpp | cool-colo/rule_engine | eeed051db249baa13bb05e25efd2971e5c7361f8 | [
"MIT"
] | null | null | null | ast_processor/utils.hpp | cool-colo/rule_engine | eeed051db249baa13bb05e25efd2971e5c7361f8 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <memory>
#include <rttr/registration>
#include <rttr/type>
namespace rule_engine {
struct Utils {
inline static rttr::type get_unwrapped_type(const rttr::variant& var){
auto type = var.get_type();
if (type.is_wrapper()){
type = type.get_wrapped_type();
}
return ty... | 14.041667 | 72 | 0.68546 | cool-colo |
050ef2b90f7a0bbb0eeaa8317fb04ff493f9c67f | 21,438 | cpp | C++ | src/PlayerAIColorSelectMode.cpp | rhyslee/Warcfaft-GameAI-160 | 634b99d6ae97c3ac29542a256f36c6a85b47a4ec | [
"MIT"
] | 1 | 2019-06-02T06:14:19.000Z | 2019-06-02T06:14:19.000Z | src/PlayerAIColorSelectMode.cpp | rhyslee/Warcfaft-GameAI-160 | 634b99d6ae97c3ac29542a256f36c6a85b47a4ec | [
"MIT"
] | null | null | null | src/PlayerAIColorSelectMode.cpp | rhyslee/Warcfaft-GameAI-160 | 634b99d6ae97c3ac29542a256f36c6a85b47a4ec | [
"MIT"
] | 1 | 2018-06-16T04:52:47.000Z | 2018-06-16T04:52:47.000Z | /*
Copyright (c) 2015, Christopher Nitta
All rights reserved.
All source material (source code, images, sounds, etc.) have been provided to
University of California, Davis students of course ECS 160 for educational
purposes. It may not be distributed beyond those enrolled in the course without
... | 52.415648 | 295 | 0.690316 | rhyslee |
05118f39e8ed04da12bd9ffdf7b7f2577d4830cd | 9,553 | cpp | C++ | ledger-core/src/core/wallet/AbstractAccount.cpp | phaazon/lib-ledger-core | 726009203f9b298e70b65c679ca92e99705dfc8c | [
"MIT"
] | null | null | null | ledger-core/src/core/wallet/AbstractAccount.cpp | phaazon/lib-ledger-core | 726009203f9b298e70b65c679ca92e99705dfc8c | [
"MIT"
] | null | null | null | ledger-core/src/core/wallet/AbstractAccount.cpp | phaazon/lib-ledger-core | 726009203f9b298e70b65c679ca92e99705dfc8c | [
"MIT"
] | null | null | null | /*
*
* AbstractAccount
* ledger-core
*
* The MIT License (MIT)
*
* Copyright (c) 2019 Ledger
*
* 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 withou... | 43.821101 | 224 | 0.639485 | phaazon |
05154e72c05a2c6e52cde35689efa293dec26202 | 1,235 | cpp | C++ | src/kernel/idt.cpp | seshOS/kernel | 849cb85a685d294a08c50d4092b816b4dd90bdeb | [
"MIT"
] | 1 | 2020-01-11T14:04:03.000Z | 2020-01-11T14:04:03.000Z | src/kernel/idt.cpp | seshOS/kernel | 849cb85a685d294a08c50d4092b816b4dd90bdeb | [
"MIT"
] | null | null | null | src/kernel/idt.cpp | seshOS/kernel | 849cb85a685d294a08c50d4092b816b4dd90bdeb | [
"MIT"
] | null | null | null | #include <kernel/idt.h>
#include <kernel/gdt.h> // sesh::DescriptorTablePointer
#include <kernel/isr.h>
#include <kernel/irq.h>
namespace sesh {
InterruptDescriptorTable::InterruptDescriptorTable() : pic1_cmd(0x20), pic2_cmd(0xA0) {
pic1_data = pic1_cmd + 1;
pic2_data = pic2_cmd + 1;
}
void InterruptDescriptor... | 25.204082 | 88 | 0.706883 | seshOS |
05173089765911d8aeb44a2f4a6839ca03ed574b | 2,513 | cc | C++ | c++/cb_bfs.cc | baotiao/Asenal | 102170aa92ae72b1d589dd74e8bbbc9ae27a8d97 | [
"Apache-2.0"
] | 5 | 2017-04-10T03:35:40.000Z | 2020-11-26T10:00:57.000Z | c++/cb_bfs.cc | baotiao/Asenal | 102170aa92ae72b1d589dd74e8bbbc9ae27a8d97 | [
"Apache-2.0"
] | 1 | 2015-04-09T13:45:25.000Z | 2015-04-09T13:45:25.000Z | c++/cb_bfs.cc | baotiao/Asenal | 102170aa92ae72b1d589dd74e8bbbc9ae27a8d97 | [
"Apache-2.0"
] | 15 | 2015-03-10T04:15:10.000Z | 2021-03-19T13:00:48.000Z | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cmath>
#include <vector>
#include <list>
#include <queue>
#include <map>
#include <ctime>
#include <set>
typedef long long lld;
#ifdef DEBUG
#define debug(x) cout<<__LINE__<<" "<<#x<<"="<<x<<endl;
#else
#d... | 17.573427 | 89 | 0.571429 | baotiao |
051edadbac4c664b875dd42aac9d52c00aa47943 | 1,694 | cpp | C++ | tools/ifaceed/ifaceed/history/instances/instanceschangeway.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 58 | 2015-08-09T14:56:35.000Z | 2022-01-15T22:06:58.000Z | tools/ifaceed/ifaceed/history/instances/instanceschangeway.cpp | mamontov-cpp/saddy-graphics-engine-2d | e25a6637fcc49cb26614bf03b70e5d03a3a436c7 | [
"BSD-2-Clause"
] | 245 | 2015-08-08T08:44:22.000Z | 2022-01-04T09:18:08.000Z | tools/ifaceed/ifaceed/history/instances/instanceschangeway.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 23 | 2015-12-06T03:57:49.000Z | 2020-10-12T14:15:50.000Z | #include "instanceschangeway.h"
// ReSharper disable once CppUnusedIncludeDirective
#include <db/save.h>
#include "../../core/editor.h"
#include "../../blockedclosuremethodcall.h"
#include "../../closuremethodcall.h"
#include <p2d/app/way.h>
#include "../../gui/actions/actions.h"
#include "../../gui/a... | 23.205479 | 95 | 0.597403 | mamontov-cpp |
051edcf757198e2ce9cd74ef97c99a209d825d78 | 6,350 | cpp | C++ | srcs/common/sampletochunkbox.cpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | srcs/common/sampletochunkbox.cpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | srcs/common/sampletochunkbox.cpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | /* This file is part of Nokia HEIF library
*
* Copyright (c) 2015-2020 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
*
* Contact: heif@nokia.com
*
* This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its
* subsidiaries. All rights are r... | 31.127451 | 120 | 0.655906 | Reflectioner |
05259a0969f08e1efb041fc659d428f8b2abaf08 | 778 | cpp | C++ | Point.cpp | qiqvo/Materialized.Dijkstra_alg | 35cb53d6fa42b865365d4bb6ef993cb02bbbb1c5 | [
"MIT"
] | null | null | null | Point.cpp | qiqvo/Materialized.Dijkstra_alg | 35cb53d6fa42b865365d4bb6ef993cb02bbbb1c5 | [
"MIT"
] | null | null | null | Point.cpp | qiqvo/Materialized.Dijkstra_alg | 35cb53d6fa42b865365d4bb6ef993cb02bbbb1c5 | [
"MIT"
] | null | null | null | #include "Point.hpp"
#include <cmath>
const float Point::EPS = (float)10e-6;
bool Point::operator==(const Point& p2) const {
return fabs(x - p2.x) < EPS && fabs(y - p2.y) < EPS && fabs(z - p2.z) < EPS;
}
bool Point::operator!=(const Point& p2) const {
return !this->operator==(p2);
}
std::ostream & operator<<(std::... | 25.096774 | 77 | 0.565553 | qiqvo |
052878f03cf4ec5091da8c0e2112f839d6a9c316 | 1,215 | cc | C++ | src/ufo/predictors/Constant.cc | rnt20/ufo | 68dab85486f5d79991956076ac6b962bc1a0c5bd | [
"Apache-2.0"
] | null | null | null | src/ufo/predictors/Constant.cc | rnt20/ufo | 68dab85486f5d79991956076ac6b962bc1a0c5bd | [
"Apache-2.0"
] | null | null | null | src/ufo/predictors/Constant.cc | rnt20/ufo | 68dab85486f5d79991956076ac6b962bc1a0c5bd | [
"Apache-2.0"
] | null | null | null | /*
* (C) Copyright 2020 UCAR
*
* 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.
*/
#include <string>
#include "ufo/predictors/Constant.h"
#include "ioda/ObsSpace.h"
namespace ufo {
static PredictorMaker<Constan... | 26.413043 | 84 | 0.49465 | rnt20 |
0529c9f7bf1a892d05d9a2773664d9e4f7ddf273 | 17,129 | cpp | C++ | isis/tests/FunctionalTestsNoproj.cpp | gknorman/ISIS3 | 4800a8047626a864e163cc74055ba60008c105f7 | [
"CC0-1.0"
] | 1 | 2022-02-17T01:07:03.000Z | 2022-02-17T01:07:03.000Z | isis/tests/FunctionalTestsNoproj.cpp | gknorman/ISIS3 | 4800a8047626a864e163cc74055ba60008c105f7 | [
"CC0-1.0"
] | null | null | null | isis/tests/FunctionalTestsNoproj.cpp | gknorman/ISIS3 | 4800a8047626a864e163cc74055ba60008c105f7 | [
"CC0-1.0"
] | null | null | null | #include "noproj.h"
#include <QTextStream>
#include "Fixtures.h"
#include "Histogram.h"
#include "LineManager.h"
#include "PvlGroup.h"
#include "TestUtilities.h"
#include "gmock/gmock.h"
using namespace Isis;
static QString APP_XML = FileName("$ISISROOT/bin/xml/noproj.xml").expanded();
TEST_F(DefaultCube, Functio... | 42.398515 | 109 | 0.734719 | gknorman |
052a07e0ece477086c920a5bd873f34bebdfa80e | 5,600 | cpp | C++ | LinkClusteringAlgorithm/SimilarityFileCreator.cpp | ediston/Link-Clustering-Algorithm | e93a4b92f50bedae75c779937b5242d487075043 | [
"Unlicense"
] | 2 | 2015-05-20T09:05:30.000Z | 2017-11-08T09:23:54.000Z | LinkClusteringAlgorithm/SimilarityFileCreator.cpp | ediston/Link-Clustering-Algorithm | e93a4b92f50bedae75c779937b5242d487075043 | [
"Unlicense"
] | null | null | null | LinkClusteringAlgorithm/SimilarityFileCreator.cpp | ediston/Link-Clustering-Algorithm | e93a4b92f50bedae75c779937b5242d487075043 | [
"Unlicense"
] | null | null | null | /*
* File: SimilarityFileCreator.cpp
* Author: vivekdhiman
*
* Created on 12 December, 2014, 10:34 PM
*/
#include "SimilarityFileCreator.h"
SimilarityFileCreator::SimilarityFileCreator() {
}
SimilarityFileCreator::~SimilarityFileCreator() {
}
void SimilarityFileCreator::print(string s){
cout << "DEBUG: "... | 32.55814 | 159 | 0.556786 | ediston |
052be3f4dfe48eebacd111c4cdf71ee69935e1c1 | 1,110 | cpp | C++ | source/procedural_objects/procedural_operation_object_interface.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 12 | 2019-04-16T17:35:53.000Z | 2020-04-12T14:37:27.000Z | source/procedural_objects/procedural_operation_object_interface.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 47 | 2019-05-27T15:24:43.000Z | 2020-04-27T17:54:54.000Z | source/procedural_objects/procedural_operation_object_interface.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | null | null | null | #include "procedural_operation_object_interface.h"
#include "procedural_object.h"
namespace pagoda
{
ProceduralOperationObjectInterface::ProceduralOperationObjectInterface(const std::string& name) : interface_name(name)
{
}
bool ProceduralOperationObjectInterface::Accepts(ProceduralObjectPtr procedural_object) { ret... | 19.137931 | 118 | 0.787387 | diegoarjz |
052d41654e205c42897383523b3829eb21a1bf91 | 1,480 | cpp | C++ | Program/BST/BST_Zigzag.cpp | anurag-singh2001/Algo_Engineering | 58345da47378213c3b383ac3cdfdd5e829faee63 | [
"MIT"
] | 4 | 2020-12-21T18:33:46.000Z | 2022-02-14T19:57:01.000Z | Program/BST/BST_Zigzag.cpp | anurag-singh2001/Algo_Engineering | 58345da47378213c3b383ac3cdfdd5e829faee63 | [
"MIT"
] | 5 | 2021-08-13T08:52:43.000Z | 2021-10-08T06:28:21.000Z | Program/BST/BST_Zigzag.cpp | anurag-singh2001/Algo_Engineering | 58345da47378213c3b383ac3cdfdd5e829faee63 | [
"MIT"
] | 7 | 2021-09-30T18:23:36.000Z | 2021-10-08T05:19:18.000Z | #include <iostream>
#include <stack>
using namespace std;
class Node
{
public:
Node *left;
Node *right;
int data;
Node(int val)
{
data = val;
left = NULL;
right = NULL;
}
};
void zigzag(Node* root){
if(root==NULL){
return;
}
stack<Node*> currlevel;
... | 18.734177 | 48 | 0.418243 | anurag-singh2001 |
052f684d37682ae01ad8174f13f8af5f3a8d31c4 | 1,473 | cc | C++ | uva/00481.cc | algoriddle/cp | 9596654f921c9da0710e2743b235bd76d938a62c | [
"MIT"
] | null | null | null | uva/00481.cc | algoriddle/cp | 9596654f921c9da0710e2743b235bd76d938a62c | [
"MIT"
] | null | null | null | uva/00481.cc | algoriddle/cp | 9596654f921c9da0710e2743b235bd76d938a62c | [
"MIT"
] | null | null | null | #include <iostream>
#include <iterator>
#include <vector>
using namespace std;
int main() {
ios::sync_with_stdio(false);
vector<int> numbers;
vector<int> links;
vector<int> ends;
vector<int> endidxs;
int x;
while (cin >> x) {
numbers.push_back(x);
auto i = lower_bound(ends.begin(), ends.end(), x... | 23.380952 | 75 | 0.518669 | algoriddle |
05352eaad706ba0c6c941f60be7484906e420cf4 | 808 | cpp | C++ | Informatica C++/Elementar/pg 49/numar_maxim_minim_din_4_cifre.cpp | ArmynC/ArminC-Bac | 2b184eb099228133cf62330405e76b03a33388ac | [
"CC0-1.0"
] | 1 | 2022-03-31T21:45:03.000Z | 2022-03-31T21:45:03.000Z | Informatica C++/Elementar/pg 49/numar_maxim_minim_din_4_cifre.cpp | ArmynC/ArminC-Bac | 2b184eb099228133cf62330405e76b03a33388ac | [
"CC0-1.0"
] | null | null | null | Informatica C++/Elementar/pg 49/numar_maxim_minim_din_4_cifre.cpp | ArmynC/ArminC-Bac | 2b184eb099228133cf62330405e76b03a33388ac | [
"CC0-1.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int n, m, s, z, u, x, ogl, maxim, cif;
cin >> n;
m = n/1000;
s = (n/100)%10;
z = (n/10)%10;
u = n%10;
if(m<s){
x = m;
m = s;
s = x;
}
if(s<z){
x = s;
s = z;
z = x;
}
if... | 12.242424 | 47 | 0.299505 | ArmynC |
053ae7ddebbdc1560fc38a0adafe774087c4b494 | 1,484 | hpp | C++ | include/3d_line_detection/Sphere.hpp | xmba15/3d_line_detection | a287339caa88b257427dc5ec7c292d7e4695cf67 | [
"MIT"
] | 1 | 2021-09-15T12:04:00.000Z | 2021-09-15T12:04:00.000Z | include/3d_line_detection/Sphere.hpp | TANHAIYU/3d_line_detection | c62d9252b1e379b295e619a26afea88e03d556be | [
"MIT"
] | null | null | null | include/3d_line_detection/Sphere.hpp | TANHAIYU/3d_line_detection | c62d9252b1e379b295e619a26afea88e03d556be | [
"MIT"
] | 2 | 2021-09-15T12:07:49.000Z | 2022-02-24T06:09:10.000Z | /**
* @file Sphere.hpp
*
* @author btran
*
*/
#pragma once
#include <array>
#include <cmath>
#include <deque>
#include <vector>
namespace geometry
{
class Sphere
{
public:
using Vertex = std::array<float, 3>;
using Triangle = std::array<int, 3>;
static constexpr int MAX_SUBDIVISION = 6;
s... | 19.786667 | 87 | 0.641509 | xmba15 |
053ba8ebbb7268077f8cb3cea22f4034f6d4b16a | 492 | cpp | C++ | FuegoUniversalComponent/fuego/gouct/GoUctMoveFilter.cpp | GSMgeeth/gameofgo | 51563fea15fbdca797afb7cf9a29773a313e5697 | [
"Apache-2.0"
] | 13 | 2016-09-09T13:45:42.000Z | 2021-12-17T08:42:28.000Z | FuegoUniversalComponent/fuego/gouct/GoUctMoveFilter.cpp | GSMgeeth/gameofgo | 51563fea15fbdca797afb7cf9a29773a313e5697 | [
"Apache-2.0"
] | 1 | 2016-06-18T05:19:58.000Z | 2016-09-15T18:21:54.000Z | FuegoUniversalComponent/fuego/gouct/GoUctMoveFilter.cpp | cbordeman/gameofgo | 51563fea15fbdca797afb7cf9a29773a313e5697 | [
"Apache-2.0"
] | 5 | 2016-11-19T03:05:12.000Z | 2022-01-31T12:20:40.000Z | //----------------------------------------------------------------------------
/** @file GoUctMoveFilter.cpp
See GoUctMoveFilter.h */
//----------------------------------------------------------------------------
#include "../smartgame/SgSystem.h"
#include "../gouct/GoUctMoveFilter.h"
//--------------------------... | 32.8 | 78 | 0.252033 | GSMgeeth |
0549b62b4644c7a8f00cb9345d897b125f73c71e | 5,833 | cpp | C++ | src/settings.cpp | alexcrack/qetcedit | b902955a49c7385ac79ce1a8caf9db60ecc99ad5 | [
"MIT"
] | 4 | 2019-03-15T13:25:17.000Z | 2021-12-27T20:16:39.000Z | src/settings.cpp | alexcrack/qetchosts | b902955a49c7385ac79ce1a8caf9db60ecc99ad5 | [
"MIT"
] | null | null | null | src/settings.cpp | alexcrack/qetchosts | b902955a49c7385ac79ce1a8caf9db60ecc99ad5 | [
"MIT"
] | null | null | null | #include "settings.h"
Settings::Settings()
{
}
Settings::MainWindowSettings Settings::getWindowSettings()
{
MainWindowSettings mwSettings;
settings.beginGroup("MainWindow");
mwSettings.pos = settings.value("pos", QPoint(10, 10)).toPoint();
mwSettings.size = settings.value("size", QSize(1000, 500)).toSi... | 45.929134 | 1,956 | 0.536945 | alexcrack |
d728fc232168b32b45b705a7d285073e40754f2f | 2,081 | cc | C++ | nurbs/src/basisfunder.cc | xizou/IGAPack | 854684a8685d125fc086bfbaa3ac7de1b5332aa0 | [
"BSD-3-Clause"
] | 20 | 2018-04-22T14:56:56.000Z | 2022-03-31T23:11:51.000Z | nurbs/src/basisfunder.cc | xizou/IGAPack | 854684a8685d125fc086bfbaa3ac7de1b5332aa0 | [
"BSD-3-Clause"
] | 6 | 2018-04-22T00:36:38.000Z | 2021-07-22T09:24:55.000Z | nurbs/src/basisfunder.cc | xizou/IGAPack | 854684a8685d125fc086bfbaa3ac7de1b5332aa0 | [
"BSD-3-Clause"
] | 12 | 2016-06-22T12:06:54.000Z | 2021-09-07T05:04:03.000Z | /* Copyright (C) 2009, 2020 Carlo de Falco, Rafael Vazquez
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
(at your option) any later version.
This... | 28.506849 | 72 | 0.631427 | xizou |
d72a2a75d12e60e108bcfd24b72ad20c57147061 | 6,325 | cpp | C++ | TagLibWrapper/TagLibWrapper/taglib/mpeg/id3v1/id3v1genres.cpp | gongjiehong/NCMDecode | b714f293ff33b9a7c57f3730ac725564935678ed | [
"MIT"
] | 3 | 2021-05-27T03:45:35.000Z | 2021-12-30T06:34:49.000Z | TagLibWrapper/TagLibWrapper/taglib/mpeg/id3v1/id3v1genres.cpp | gongjiehong/NCMDecode | b714f293ff33b9a7c57f3730ac725564935678ed | [
"MIT"
] | null | null | null | TagLibWrapper/TagLibWrapper/taglib/mpeg/id3v1/id3v1genres.cpp | gongjiehong/NCMDecode | b714f293ff33b9a7c57f3730ac725564935678ed | [
"MIT"
] | 1 | 2021-12-30T06:38:49.000Z | 2021-12-30T06:38:49.000Z | /***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/*************************************************************... | 22.038328 | 77 | 0.49502 | gongjiehong |
d72ddbc2a09ad2b30c840518e7083e7937fc6b6f | 34,977 | cpp | C++ | data_analytics/L3/src/sw/text/regex_engine.cpp | Geekdude/Vitis_Libraries | bca52cee88c07e9ccbec90c00e6df98f4b450ec1 | [
"Apache-2.0"
] | 1 | 2021-04-19T20:40:02.000Z | 2021-04-19T20:40:02.000Z | data_analytics/L3/src/sw/text/regex_engine.cpp | Geekdude/Vitis_Libraries | bca52cee88c07e9ccbec90c00e6df98f4b450ec1 | [
"Apache-2.0"
] | null | null | null | data_analytics/L3/src/sw/text/regex_engine.cpp | Geekdude/Vitis_Libraries | bca52cee88c07e9ccbec90c00e6df98f4b450ec1 | [
"Apache-2.0"
] | 1 | 2021-04-28T05:58:38.000Z | 2021-04-28T05:58:38.000Z | /*
* Copyright 2020 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 43.885822 | 120 | 0.542356 | Geekdude |
d72df8b8715d6928467189c36689f8dcff50a408 | 1,155 | cpp | C++ | KernelEv.cpp | S-Ptr/OS1-Projekat-2018 | a73fa850c90eef227bde24fe0a8ae1691ebcd2a3 | [
"MIT"
] | null | null | null | KernelEv.cpp | S-Ptr/OS1-Projekat-2018 | a73fa850c90eef227bde24fe0a8ae1691ebcd2a3 | [
"MIT"
] | null | null | null | KernelEv.cpp | S-Ptr/OS1-Projekat-2018 | a73fa850c90eef227bde24fe0a8ae1691ebcd2a3 | [
"MIT"
] | null | null | null | #include "KernelEv.h"
#include "PCB.h"
#include "KSem.h"
#include "SCHEDULE.H"
#include "thread.h"
#include "IVTEntry.h"
KernelEv::KernelEv(IVTNo _ivtNo, PCB* _maker): ivtNo(_ivtNo), maker(_maker), blocked(0), val(1){
(IVTEntry::fetchEntry(ivtNo))->myEv = this;
}
KernelEv::~KernelEv(){
maker = blocked =... | 17.769231 | 97 | 0.587879 | S-Ptr |
d730497126ad244176670dee07f2e8ccef04b080 | 267 | cpp | C++ | 9_emscripten_custom_js_library/hello_world.cpp | Reesy/cpp-compilation-reference | 852027a485166199790fae7e92a2025a8a0825ce | [
"MIT"
] | null | null | null | 9_emscripten_custom_js_library/hello_world.cpp | Reesy/cpp-compilation-reference | 852027a485166199790fae7e92a2025a8a0825ce | [
"MIT"
] | null | null | null | 9_emscripten_custom_js_library/hello_world.cpp | Reesy/cpp-compilation-reference | 852027a485166199790fae7e92a2025a8a0825ce | [
"MIT"
] | null | null | null | /* hello_world.cpp */
#include <iostream>
#include <emscripten.h>
using namespace std;
//Inline JS function
EM_JS(void, print_hello_world, (), {
console.log("Hello, world!");
});
//Call a JS library function
int main()
{
print_hello_world();
return 0;
} | 14.833333 | 36 | 0.670412 | Reesy |
d7319134e730f89630c93ce1d6d62683570513ca | 859 | hpp | C++ | libs/core/src/molphene/utility.hpp | janucaria/Molphene | e5374599512ff4400d04c7c16d79d3a111cc1911 | [
"MIT"
] | 3 | 2018-05-18T06:30:48.000Z | 2018-09-01T13:59:58.000Z | libs/core/src/molphene/utility.hpp | janucaria/Molphene | e5374599512ff4400d04c7c16d79d3a111cc1911 | [
"MIT"
] | null | null | null | libs/core/src/molphene/utility.hpp | janucaria/Molphene | e5374599512ff4400d04c7c16d79d3a111cc1911 | [
"MIT"
] | null | null | null | #ifndef MOLPHENE_UTILITY_HPP
#define MOLPHENE_UTILITY_HPP
#include <type_traits>
#include <variant>
#include <vector>
namespace molphene::detail {
template<typename T, typename... Types>
constexpr auto attain(std::variant<Types...>* pv) noexcept
-> std::add_pointer_t<T>
{
auto* ptr = std::get_if<T>(pv);
assert(... | 20.95122 | 69 | 0.703143 | janucaria |
d7336ddfac10f67e819517fb80884379b2a0def6 | 421 | cpp | C++ | CodeInterviews-SwordOffer/Offer61-Straight-in-Poker/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | CodeInterviews-SwordOffer/Offer61-Straight-in-Poker/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | CodeInterviews-SwordOffer/Offer61-Straight-in-Poker/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | class Solution {
public:
bool isStraight(vector<int>& nums) {
unordered_set<int> repeat;
int maxn = 0, minn = 14;
for(const auto& num : nums){
if(num == 0) continue;
maxn = max(maxn, num);
minn = min(minn, num);
if(repeat.find(num) != repeat.en... | 24.764706 | 62 | 0.494062 | loyio |
d733cff0b2e2bfae42a9e741a75f24a32371366a | 5,494 | hpp | C++ | src/mediasystem/memory/Storage.hpp | m1keall1son/ofxMediaSystem | c4b1619111b43996aabcb5c123af90824f8eee63 | [
"MIT"
] | 6 | 2018-06-15T11:50:38.000Z | 2018-09-13T19:44:12.000Z | src/mediasystem/memory/Storage.hpp | m1keall1son/ofxMediaSystem | c4b1619111b43996aabcb5c123af90824f8eee63 | [
"MIT"
] | null | null | null | src/mediasystem/memory/Storage.hpp | m1keall1son/ofxMediaSystem | c4b1619111b43996aabcb5c123af90824f8eee63 | [
"MIT"
] | 1 | 2018-06-28T16:39:17.000Z | 2018-06-28T16:39:17.000Z | //
// FreeStore.hpp
// MemoryManagement
//
// Created by Michael Allison on 4/6/18.
//
#pragma once
#include <cstring>
#include <stdint.h>
#include <memory>
namespace mediasystem {
enum AllocationStorageType { FIXED_SIZE_STORAGE, BLOCK_LIST_STORAGE, NO_STORAGE };
class IMemoryStorage {
publi... | 37.889655 | 112 | 0.586458 | m1keall1son |
d7366c6751446a2e7361880c520580950882ee90 | 341 | cpp | C++ | SourceCode/Lec-16.3-Recursion-Problem/RemoveDuplicate.cpp | git-vivek29/Data-Structure-And-Algorithm | 30dcc76a313953fc52e167eb1b218064ed539cb1 | [
"MIT"
] | 1 | 2021-06-29T12:05:30.000Z | 2021-06-29T12:05:30.000Z | SourceCode/Lec-16.3-Recursion-Problem/RemoveDuplicate.cpp | git-vivek29/Data-Structure-And-Algorithm | 30dcc76a313953fc52e167eb1b218064ed539cb1 | [
"MIT"
] | null | null | null | SourceCode/Lec-16.3-Recursion-Problem/RemoveDuplicate.cpp | git-vivek29/Data-Structure-And-Algorithm | 30dcc76a313953fc52e167eb1b218064ed539cb1 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
string removeDuplicate(string s)
{
if(s.length() == 0)
{
return "";
}
char ch = s[0];
string ros = removeDuplicate(s.substr(1));
if( ch == ros[0])
{
return ros;
}
return ch+ros;
}
int main()
{
cout<<removeDuplicate("aaabbeec... | 16.238095 | 46 | 0.548387 | git-vivek29 |
d73bb4557e0c7642c7fbd107ca74cda468c4103b | 500 | cpp | C++ | 11.09-notCopyable1/main.cpp | andreasfertig/programming-with-cpp20 | 7c70351f3a46aea295e964096be77eb159be6e9f | [
"MIT"
] | 107 | 2021-04-13T12:43:06.000Z | 2022-03-30T05:07:16.000Z | 11.09-notCopyable1/main.cpp | jessesimpson/programming-with-cpp20 | 7c70351f3a46aea295e964096be77eb159be6e9f | [
"MIT"
] | 1 | 2021-04-13T12:59:30.000Z | 2021-04-13T13:02:55.000Z | 11.09-notCopyable1/main.cpp | jessesimpson/programming-with-cpp20 | 7c70351f3a46aea295e964096be77eb159be6e9f | [
"MIT"
] | 29 | 2021-04-13T18:07:03.000Z | 2022-03-28T13:44:01.000Z | // Copyright (c) Andreas Fertig.
// SPDX-License-Identifier: MIT
#include <string>
struct NotCopyable {
NotCopyable() = default;
NotCopyable(const NotCopyable&) = delete;
NotCopyable(NotCopyable&&) = default;
};
struct Resources {
int fileDescriptor;
std::string messageID;
... | 20 | 50 | 0.64 | andreasfertig |
d73e1df207b337aa0f3beaf73ce9a9efacdd96ea | 1,900 | hpp | C++ | util/variant.hpp | schwa423/Granite | b609789ccfea07f9ca47ea1758411acd760ba757 | [
"MIT"
] | 1 | 2018-03-27T03:06:13.000Z | 2018-03-27T03:06:13.000Z | util/variant.hpp | schwa423/Granite | b609789ccfea07f9ca47ea1758411acd760ba757 | [
"MIT"
] | null | null | null | util/variant.hpp | schwa423/Granite | b609789ccfea07f9ca47ea1758411acd760ba757 | [
"MIT"
] | null | null | null | /* Copyright (c) 2017-2018 Hans-Kristian Arntzen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, me... | 24.675325 | 73 | 0.71 | schwa423 |
d73e3f26a994b3fbabd67ff08382f5898684a560 | 6,142 | cpp | C++ | Sources/Tools/QtToolbox/WidgetRenderArea.moc.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | 2 | 2015-04-16T01:05:53.000Z | 2019-08-26T07:38:43.000Z | Sources/Tools/QtToolbox/WidgetRenderArea.moc.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | Sources/Tools/QtToolbox/WidgetRenderArea.moc.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* 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 ... | 35.50289 | 83 | 0.531911 | benkaraban |
d7407b9bf797e540e07ca20e657c554b0081385e | 695 | cpp | C++ | source/server/asio/udp_resolver.cpp | davchezt/CppServer | 375d4b7c61252de8af46cda7d677b7b8a998a47b | [
"MIT"
] | 834 | 2017-04-14T19:20:05.000Z | 2022-03-30T20:59:31.000Z | source/server/asio/udp_resolver.cpp | davchezt/CppServer | 375d4b7c61252de8af46cda7d677b7b8a998a47b | [
"MIT"
] | 70 | 2017-02-03T14:20:53.000Z | 2022-03-07T13:28:42.000Z | source/server/asio/udp_resolver.cpp | davchezt/CppServer | 375d4b7c61252de8af46cda7d677b7b8a998a47b | [
"MIT"
] | 213 | 2017-02-20T11:21:09.000Z | 2022-03-31T11:33:24.000Z | /*!
\file udp_resolver.cpp
\brief UDP resolver implementation
\author Ivan Shynkarenka
\date 08.02.2019
\copyright MIT License
*/
#include "server/asio/udp_resolver.h"
namespace CppServer {
namespace Asio {
UDPResolver::UDPResolver(const std::shared_ptr<Service>& service)
: _service(service),... | 24.821429 | 71 | 0.690647 | davchezt |
d75349a77b1609779e3b0fb77a806aa99205885c | 2,785 | cpp | C++ | tests/test_ring_buffer.cpp | KKoovalsky/RingBuffer | e2e9529b2ea034527439706b735d95dbc3b600a9 | [
"MIT"
] | null | null | null | tests/test_ring_buffer.cpp | KKoovalsky/RingBuffer | e2e9529b2ea034527439706b735d95dbc3b600a9 | [
"MIT"
] | null | null | null | tests/test_ring_buffer.cpp | KKoovalsky/RingBuffer | e2e9529b2ea034527439706b735d95dbc3b600a9 | [
"MIT"
] | null | null | null | /**
* @file test_ring_buffer.cpp
* @brief Tests the RingBuffer.
* @author Kacper Kowalski - kacper.s.kowalski@gmail.com
*/
#include <catch2/catch_template_test_macros.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_exception.hpp>
#include <catch2/matchers/catc... | 21.423077 | 113 | 0.542908 | KKoovalsky |
d756b7cf4940a9c804a0b31e8cd69175bb7e9158 | 2,669 | cpp | C++ | TFHE/test/cmux_main.cpp | dikosec/seccamp | 53956752e19d24f5cd80a12f3d9aa4a6675849ad | [
"MIT"
] | 2 | 2020-10-28T08:40:40.000Z | 2021-03-04T12:51:57.000Z | TFHE/test/cmux_main.cpp | dikosec/seccamp | 53956752e19d24f5cd80a12f3d9aa4a6675849ad | [
"MIT"
] | null | null | null | TFHE/test/cmux_main.cpp | dikosec/seccamp | 53956752e19d24f5cd80a12f3d9aa4a6675849ad | [
"MIT"
] | null | null | null | // CMUX test
//
// C ext_pro [(a1[x],b1[x])-(a0[x],b0[x])] + (a0[x],b0[x])
// C is trgsw
// c1:(a1[x],b1[x]) is trlwe
// c0:(a0[x],b0[x]) is trlwe
// out:res is trlwe
#include<array>
#include<vector>
#include<iostream>
#include<random>
#include<cassert>
#include<chrono>
#include<../include/params.hpp>
#include<../inc... | 24.712963 | 84 | 0.571 | dikosec |
d758ebb63ec5636747f0f0128278ac1a5c91d5d4 | 299 | cpp | C++ | runtime/gen8/command_stream_receiver_simulated_common_hw_gen8.cpp | tripzero/compute-runtime | cc960732db8775c471432d640d615d61640ee2cb | [
"MIT"
] | null | null | null | runtime/gen8/command_stream_receiver_simulated_common_hw_gen8.cpp | tripzero/compute-runtime | cc960732db8775c471432d640d615d61640ee2cb | [
"MIT"
] | 1 | 2019-09-17T08:06:24.000Z | 2019-09-17T08:06:24.000Z | runtime/gen8/command_stream_receiver_simulated_common_hw_gen8.cpp | tripzero/compute-runtime | cc960732db8775c471432d640d615d61640ee2cb | [
"MIT"
] | 2 | 2019-09-12T05:03:02.000Z | 2020-03-12T02:17:34.000Z | /*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/command_stream/command_stream_receiver_simulated_common_hw.inl"
namespace NEO {
typedef BDWFamily Family;
template class CommandStreamReceiverSimulatedCommonHw<Family>;
} // namespace NEO
| 19.933333 | 81 | 0.785953 | tripzero |
d75a40db10b84c6f8ae60774b6635841867b3dc7 | 4,475 | cpp | C++ | openstudiocore/src/utilities/idd/Test/IddRegex_GTest.cpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | 4 | 2015-05-02T21:04:15.000Z | 2015-10-28T09:47:22.000Z | openstudiocore/src/utilities/idd/Test/IddRegex_GTest.cpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | null | null | null | openstudiocore/src/utilities/idd/Test/IddRegex_GTest.cpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | 1 | 2020-11-12T21:52:36.000Z | 2020-11-12T21:52:36.000Z | /**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published ... | 34.960938 | 93 | 0.602235 | BIMDataHub |
d75d7447f2ac78dc286e0d829209b5b9467396f5 | 9,449 | cpp | C++ | dlib/external/libjpeg/jcmainct.cpp | ckproc/dlib-19.7 | 0ca40f5e85de2436e557bee9a805d3987d2d9507 | [
"BSL-1.0"
] | null | null | null | dlib/external/libjpeg/jcmainct.cpp | ckproc/dlib-19.7 | 0ca40f5e85de2436e557bee9a805d3987d2d9507 | [
"BSL-1.0"
] | 4 | 2018-02-27T15:44:25.000Z | 2018-02-28T01:26:03.000Z | dlib/external/libjpeg/jcmainct.cpp | ckproc/dlib-19.7 | 0ca40f5e85de2436e557bee9a805d3987d2d9507 | [
"BSL-1.0"
] | null | null | null | /*
* jcmainct.c
*
* Copyright (C) 1994-1996, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains the main buffer controller for compression.
* The main buffer lies between the pre... | 32.139456 | 79 | 0.670653 | ckproc |
d75e98c8a2ec797e1dee7c29cf368261cc65cda2 | 11,767 | hpp | C++ | Lib/Chip/Unknown/STMicro/STM32F334x/OPAMP.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/Unknown/STMicro/STM32F334x/OPAMP.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/Unknown/STMicro/STM32F334x/OPAMP.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Operational amplifier
namespace OpampOpamp1Cr{ ///<OPAMP1 control register
using Addr = Register::Address<0x40010038,0x00000010,0x00000000,std::uint32_t>;
///OPAMP1 enable
constexpr Register::FieldLocation<Addr,Register::m... | 80.59589 | 221 | 0.707912 | operativeF |
d760f076719138ba5f8616e0ca0f71ef0dca8385 | 3,896 | hxx | C++ | Utilities/itkComposeDiffeomorphismsImageFilter.hxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | null | null | null | Utilities/itkComposeDiffeomorphismsImageFilter.hxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | null | null | null | Utilities/itkComposeDiffeomorphismsImageFilter.hxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | 1 | 2019-10-06T07:31:58.000Z | 2019-10-06T07:31:58.000Z | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | 31.674797 | 88 | 0.720996 | KevinScholtes |
d762f3a516f478670e635f8a6ad3ddf4bf0d915d | 979 | inl | C++ | datas/internal/stat_ix.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 5 | 2019-10-17T15:52:38.000Z | 2021-08-10T18:57:32.000Z | datas/internal/stat_ix.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | null | null | null | datas/internal/stat_ix.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 1 | 2021-01-31T20:37:42.000Z | 2021-01-31T20:37:42.000Z | /* a posix source for stat
Copyright 2021 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 of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by app... | 28.794118 | 76 | 0.68335 | PredatorCZ |
d764bacbad6be4f7af95131273a3e031848b5e59 | 3,745 | cpp | C++ | pos_Tagger/eval.cpp | theSarge911/WikiNet | eda0b54733b5dd5cae3e2406871b494ffb440fda | [
"MIT"
] | 5 | 2016-06-13T07:38:28.000Z | 2019-01-24T13:03:09.000Z | pos_Tagger/eval.cpp | theSarge911/WikiNet | eda0b54733b5dd5cae3e2406871b494ffb440fda | [
"MIT"
] | 1 | 2018-11-14T14:21:49.000Z | 2018-11-28T16:11:27.000Z | pos_Tagger/eval.cpp | theSarge911/WikiNet | eda0b54733b5dd5cae3e2406871b494ffb440fda | [
"MIT"
] | 4 | 2016-09-15T18:43:23.000Z | 2020-05-20T19:15:46.000Z | /*
* $Id$
*/
#include <stdio.h>
#include <fstream>
#include <map>
#include <list>
#include <set>
#include <iostream>
#include <cfloat>
#include <sstream>
#include <cstdlib>
#include "common.h"
using namespace std;
set<string> known_words;
//const bool IGNORE_DISTICTION_BETWEEN_NNP_NN = true;
const bool IGNORE_DIS... | 26.373239 | 127 | 0.575968 | theSarge911 |
d76523071e443c1802dd1e626b58064ebeaa0a75 | 6,003 | cpp | C++ | interfaceoption.cpp | mxsshao/nsb-sdd-lunar | 14407a8f8d2ee9e1945285abbd5112d114020b2a | [
"MIT"
] | null | null | null | interfaceoption.cpp | mxsshao/nsb-sdd-lunar | 14407a8f8d2ee9e1945285abbd5112d114020b2a | [
"MIT"
] | null | null | null | interfaceoption.cpp | mxsshao/nsb-sdd-lunar | 14407a8f8d2ee9e1945285abbd5112d114020b2a | [
"MIT"
] | null | null | null | #include "interfaceoption.h"
#include "interfacedialog.h"
CInterfaceOption CInterfaceOption::MInterfaceOption;
void CInterfaceOption::Init()
{
open = true;
height = al_get_display_height(CStateManager::MStateManager.GetDisplay())/4.0f*3.0f;
width = height*1.2f;
//Window
window = new Controls::WindowControl(CSta... | 49.61157 | 283 | 0.800766 | mxsshao |
d767bac6922c093f1f16fd09a985d1f0e6b57dae | 743 | hpp | C++ | fixp/fixp_error.hpp | mdobrea/effective-fix | 0dc8013a8470366f99281f191ea4379d59ef761a | [
"BSD-2-Clause"
] | 3 | 2016-08-08T08:05:11.000Z | 2021-02-02T09:11:35.000Z | fixp/fixp_error.hpp | mdobrea/effective-fix | 0dc8013a8470366f99281f191ea4379d59ef761a | [
"BSD-2-Clause"
] | null | null | null | fixp/fixp_error.hpp | mdobrea/effective-fix | 0dc8013a8470366f99281f191ea4379d59ef761a | [
"BSD-2-Clause"
] | 1 | 2019-12-29T22:19:47.000Z | 2019-12-29T22:19:47.000Z | /*
* fixp_error.hpp
*
* Created on: 22.09.2014
* Author: Marius
*/
#ifndef FIXP_ERROR_HPP_
#define FIXP_ERROR_HPP_
#include <string>
#include <stdexcept>
namespace fixp
{
enum class error_code
{
empty_range=1,
end_of_stream,
empty_type_alias,
empty_type_name,
empty_user_type_name,
invalid_iterator_... | 16.511111 | 129 | 0.718708 | mdobrea |
d769c0c91233ae7a536039626713a751f0ff83fa | 291 | cc | C++ | payload/game/ui/SectionManager.cc | stblr/mkw-sp | 0505b427ace12cd8258776930e4f2576d38a7b1f | [
"MIT"
] | 24 | 2022-01-31T00:35:29.000Z | 2022-03-20T17:03:04.000Z | payload/game/ui/SectionManager.cc | stblr/mkw-sp | 0505b427ace12cd8258776930e4f2576d38a7b1f | [
"MIT"
] | 135 | 2022-01-31T09:24:26.000Z | 2022-03-31T19:49:07.000Z | payload/game/ui/SectionManager.cc | stblr/mkw-sp | 0505b427ace12cd8258776930e4f2576d38a7b1f | [
"MIT"
] | 13 | 2022-01-31T04:10:22.000Z | 2022-03-26T10:06:41.000Z | #include "SectionManager.hh"
namespace UI {
Section *SectionManager::currentSection() {
return m_currentSection;
}
GlobalContext *SectionManager::globalContext() {
return m_globalContext;
}
SectionManager *SectionManager::Instance() {
return s_instance;
}
} // namespace UI
| 16.166667 | 48 | 0.738832 | stblr |
d76acb24a2f212c82239a9b268cd332e0ec602cd | 4,929 | hpp | C++ | src/mlpack/core/kernels/pspectrum_string_kernel.hpp | shubham1206agra/mlpack | 2c656fcba850134f3f5d1dd1a6a1a15743aa7661 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | src/mlpack/core/kernels/pspectrum_string_kernel.hpp | shubham1206agra/mlpack | 2c656fcba850134f3f5d1dd1a6a1a15743aa7661 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | src/mlpack/core/kernels/pspectrum_string_kernel.hpp | shubham1206agra/mlpack | 2c656fcba850134f3f5d1dd1a6a1a15743aa7661 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | /**
* @file core/kernels/pspectrum_string_kernel.hpp
* @author Ryan Curtin
*
* Implementation of the p-spectrum string kernel, created for use with FastMKS.
* Instead of passing a data matrix to FastMKS which stores the kernels, pass a
* one-dimensional data matrix (data vector) to FastMKS which stores indices of... | 41.075 | 86 | 0.725299 | shubham1206agra |
d76ba12db43faf1eb00158d45bba077205c54d19 | 8,051 | cpp | C++ | source/data_logger.cpp | hdieset/NI_ELVISmx_Instruments_data_to_LaTeX_tool | ae35cccc5d0dd867b8bee799d196a31b77c426e3 | [
"MIT"
] | null | null | null | source/data_logger.cpp | hdieset/NI_ELVISmx_Instruments_data_to_LaTeX_tool | ae35cccc5d0dd867b8bee799d196a31b77c426e3 | [
"MIT"
] | null | null | null | source/data_logger.cpp | hdieset/NI_ELVISmx_Instruments_data_to_LaTeX_tool | ae35cccc5d0dd867b8bee799d196a31b77c426e3 | [
"MIT"
] | null | null | null | #include "data_logger.h"
#include "oscilloscope.h"
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <math.h>
#include <iomanip>
using namespace std;
struct numExp {
long double number = 0.0;
int exponent = 0;
int precision = 0;
};
void data_logger_formatter() {
bool finished =... | 22.179063 | 79 | 0.540306 | hdieset |
d76ddb3f0237e30541318323f5c961a9990b4918 | 3,712 | cpp | C++ | tests/Usul/File/Buffer.cpp | perryiv/usul | 4c43ba6b00d6b8a36df76fcfaaa5243080e3adcb | [
"MIT"
] | null | null | null | tests/Usul/File/Buffer.cpp | perryiv/usul | 4c43ba6b00d6b8a36df76fcfaaa5243080e3adcb | [
"MIT"
] | null | null | null | tests/Usul/File/Buffer.cpp | perryiv/usul | 4c43ba6b00d6b8a36df76fcfaaa5243080e3adcb | [
"MIT"
] | null | null | null |
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2020, Perry L Miller IV
// All rights reserved.
// MIT License: https://opensource.org/licenses/mit-license.html
//
////////////////////////////////////////////////////////////////////////////////
/////////////////... | 32.278261 | 102 | 0.540409 | perryiv |
d772dc199c1ee4a85f061e07852fe0d8a9d493ab | 3,498 | cc | C++ | src/Formlsms/noevnt_hlm.cc | asminer/smart | 269747c4578b670e5c3973f93a1e6ec71d95be78 | [
"Apache-2.0"
] | 6 | 2018-05-30T23:02:14.000Z | 2022-01-19T07:30:46.000Z | src/Formlsms/noevnt_hlm.cc | asminer/smart | 269747c4578b670e5c3973f93a1e6ec71d95be78 | [
"Apache-2.0"
] | null | null | null | src/Formlsms/noevnt_hlm.cc | asminer/smart | 269747c4578b670e5c3973f93a1e6ec71d95be78 | [
"Apache-2.0"
] | 2 | 2018-07-13T18:53:27.000Z | 2021-04-12T17:54:02.000Z |
#include "noevnt_hlm.h"
#include "../ExprLib/mod_vars.h"
#include "../Streams/streams.h"
// ******************************************************************
// * *
// * no_event_model methods *
// * ... | 24.291667 | 80 | 0.55689 | asminer |
d77603e70f2a0e9dd95f2f547a5c3d374d0944c2 | 30,724 | cpp | C++ | perception/object_recognition/prediction/map_based_prediction/src/map_based_prediction_ros.cpp | taikitanaka3/AutowareArchitectureProposal.iv | 0d47ea532118c98458516a8c83fbdab3d27c6231 | [
"Apache-2.0"
] | 12 | 2020-09-25T08:52:59.000Z | 2020-10-05T02:39:31.000Z | perception/object_recognition/prediction/map_based_prediction/src/map_based_prediction_ros.cpp | taikitanaka3/AutowareArchitectureProposal.iv | 0d47ea532118c98458516a8c83fbdab3d27c6231 | [
"Apache-2.0"
] | 7 | 2021-12-13T04:28:48.000Z | 2022-03-14T13:53:15.000Z | perception/object_recognition/prediction/map_based_prediction/src/map_based_prediction_ros.cpp | taikitanaka3/AutowareArchitectureProposal.iv | 0d47ea532118c98458516a8c83fbdab3d27c6231 | [
"Apache-2.0"
] | 9 | 2020-09-27T05:27:09.000Z | 2020-10-08T03:14:25.000Z | // Copyright 2018-2019 Autoware Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 40.373193 | 100 | 0.71576 | taikitanaka3 |
d77784b09f1e06b3a99eddb3afc964ca2f6cd1f0 | 6,143 | cpp | C++ | src/rtc.cpp | slankes/HB-RF-ETH | e003aaa189f1fad8965da06b9e73734319d99093 | [
"Apache-2.0"
] | 21 | 2020-07-16T13:18:13.000Z | 2022-03-27T16:56:51.000Z | src/rtc.cpp | slankes/HB-RF-ETH | e003aaa189f1fad8965da06b9e73734319d99093 | [
"Apache-2.0"
] | 29 | 2020-09-17T14:53:37.000Z | 2022-03-23T04:35:29.000Z | src/rtc.cpp | slankes/HB-RF-ETH | e003aaa189f1fad8965da06b9e73734319d99093 | [
"Apache-2.0"
] | 6 | 2020-12-20T10:33:20.000Z | 2022-01-16T12:02:21.000Z | /*
* rtc.cpp is part of the HB-RF-ETH firmware - https://github.com/alexreinert/HB-RF-ETH
*
* Copyright 2021 Alexander Reinert
*
* 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... | 25.595833 | 88 | 0.62966 | slankes |
d77bcbc78e2793e5df231bd75a9b274726e6f128 | 589 | cpp | C++ | src/qt/blockchaindialog.cpp | nezero/deeponion-ci | 4f76dee44c1771dc9c16d516f37d4eb690751517 | [
"MIT"
] | 569 | 2017-07-26T23:14:31.000Z | 2022-01-13T20:29:04.000Z | src/qt/blockchaindialog.cpp | cpyberry/deeponion | 448b4a1ea7c90294d9ace03ea5a9648fb9b1107e | [
"MIT"
] | 155 | 2017-07-17T15:40:36.000Z | 2021-12-07T07:59:33.000Z | src/qt/blockchaindialog.cpp | cpyberry/deeponion | 448b4a1ea7c90294d9ace03ea5a9648fb9b1107e | [
"MIT"
] | 214 | 2017-07-17T15:36:08.000Z | 2021-11-04T23:38:37.000Z | #include <qt/blockchaindialog.h>
#include <qt/forms/ui_blockchaindialog.h>
#include <util.h>
#include <qt/walletmodel.h>
BlockchainDialog::BlockchainDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::BlockchainDialog)
{
ui->setupUi(this);
}
BlockchainDialog::~BlockchainDialog()
{
delete ui;
}
vo... | 19 | 70 | 0.747029 | nezero |
d7803804e2853fb9d50961b87426a89c39dd8102 | 633 | cpp | C++ | Game/GameEngine/Behaviour/Behaviour.cpp | arthurChennetier/R-Type | bac6f8cf6502f74798181181a819d609b1d82e3a | [
"MIT"
] | 1 | 2018-07-22T13:45:47.000Z | 2018-07-22T13:45:47.000Z | Game/GameEngine/Behaviour/Behaviour.cpp | arthurChennetier/R-Type | bac6f8cf6502f74798181181a819d609b1d82e3a | [
"MIT"
] | null | null | null | Game/GameEngine/Behaviour/Behaviour.cpp | arthurChennetier/R-Type | bac6f8cf6502f74798181181a819d609b1d82e3a | [
"MIT"
] | 1 | 2018-07-20T12:52:42.000Z | 2018-07-20T12:52:42.000Z | #include "Behaviour.h"
namespace TacosEngine
{
Behaviour::Behaviour(const std::string &name, std::shared_ptr<GameObject> object)
: Component(name, std::move(object)), start(false), destroy(false)
{
}
Behaviour::~Behaviour()
= default;
void Behaviour::Start()
{
}
void Behaviour::update(const Input &inpu... | 13.1875 | 82 | 0.672986 | arthurChennetier |
d78116393c2ef0111de74de29317b6c59e8f544b | 2,074 | hpp | C++ | core/game_object.hpp | rocksolidwebdesign/game_engine | 14e644762018f0f8de0d9d13242053506888614d | [
"Unlicense"
] | null | null | null | core/game_object.hpp | rocksolidwebdesign/game_engine | 14e644762018f0f8de0d9d13242053506888614d | [
"Unlicense"
] | null | null | null | core/game_object.hpp | rocksolidwebdesign/game_engine | 14e644762018f0f8de0d9d13242053506888614d | [
"Unlicense"
] | null | null | null | #ifndef GAME_OBJECT_H
#define GAME_OBJECT_H
#include <GL/glew.h>
#include <GL/glfw.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtx/quaternion.hpp>
using namespace glm;
#include <btBulletDynamicsCommon.h>
#include "game_sprite.hpp"
... | 24.4 | 50 | 0.612825 | rocksolidwebdesign |
d78686ee8408f90b1179df4f1ee8ffd70284b29d | 12,717 | cpp | C++ | mordor/tests/pipe_stream.cpp | NoevilMe/mordor | d1963c0a8ee15524462ad5d01cb859e9d7706c1e | [
"BSD-3-Clause"
] | 200 | 2015-01-11T22:31:21.000Z | 2022-03-23T08:48:53.000Z | mordor/tests/pipe_stream.cpp | NoevilMe/mordor | d1963c0a8ee15524462ad5d01cb859e9d7706c1e | [
"BSD-3-Clause"
] | 3 | 2018-11-27T15:16:46.000Z | 2022-01-14T15:40:31.000Z | mordor/tests/pipe_stream.cpp | NoevilMe/mordor | d1963c0a8ee15524462ad5d01cb859e9d7706c1e | [
"BSD-3-Clause"
] | 31 | 2015-02-12T04:22:43.000Z | 2021-12-24T09:27:33.000Z | // Copyright (c) 2009 - Mozy, Inc.
#include <boost/bind.hpp>
#include "mordor/exception.h"
#include "mordor/fiber.h"
#include "mordor/scheduler.h"
#include "mordor/streams/buffer.h"
#include "mordor/streams/stream.h"
#include "mordor/streams/pipe.h"
#include "mordor/test/test.h"
#include "mordor/workerpool.h"
using ... | 31.169118 | 104 | 0.687269 | NoevilMe |
d7879c3b6e270838cc35b5a64265eae87096cf5c | 4,094 | cpp | C++ | Lab-Assignments/Data-Structure-Lab/Assignment-7/Question-3.cpp | Hics0000/Console-Based-Cpp-Programs | 6a7658a302d19b9d623ff7c5de5bc456c2d5ab69 | [
"MIT"
] | null | null | null | Lab-Assignments/Data-Structure-Lab/Assignment-7/Question-3.cpp | Hics0000/Console-Based-Cpp-Programs | 6a7658a302d19b9d623ff7c5de5bc456c2d5ab69 | [
"MIT"
] | 1 | 2021-10-05T17:00:52.000Z | 2021-10-05T17:00:52.000Z | Lab-Assignments/Data-Structure-Lab/Assignment-7/Question-3.cpp | Hics0000/Console-Based-Cpp-Programs | 6a7658a302d19b9d623ff7c5de5bc456c2d5ab69 | [
"MIT"
] | 7 | 2021-06-13T08:15:26.000Z | 2021-10-05T17:02:10.000Z | #include <bits/stdc++.h>
using namespace std;
struct node
{
string name;
int age;
node *next_alpha, *next_age;
};
node *newnode(string s, int n)
{
node *temp = new node();
temp->name = s;
temp->age = n;
temp->next_alpha = NULL;
temp->next_age = NULL;
return temp;
}
class multi_list
{... | 19.970732 | 53 | 0.382022 | Hics0000 |
d7884b445326659f07214a39006a449a0d3efb09 | 1,377 | cc | C++ | TC-programs/STUFF/rhodos.cc | sklinkusch/scripts | a717cadb559db823a0d5172545661d5afa2715e7 | [
"MIT"
] | null | null | null | TC-programs/STUFF/rhodos.cc | sklinkusch/scripts | a717cadb559db823a0d5172545661d5afa2715e7 | [
"MIT"
] | null | null | null | TC-programs/STUFF/rhodos.cc | sklinkusch/scripts | a717cadb559db823a0d5172545661d5afa2715e7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<fstream>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<stdio.h>
using namespace std;
int main(int argc, char* argv[]){
if(argc != 3 && argc != 4){
cerr << "Usage ./rhodos <nr of frequencies> <infile> <outfile (optionally)>\n";
}
int modus = 0;
if(argc == ... | 22.95 | 80 | 0.529412 | sklinkusch |
d78e4bc637049f78a0638c39d022b5100ae38ac4 | 2,537 | hpp | C++ | include/constraints.hpp | zijinoier/Hetero-MAPF | 1b3d09480c5cc7323ee5f553739d045ab52060f3 | [
"MIT"
] | 9 | 2021-03-06T11:55:10.000Z | 2022-02-25T03:09:57.000Z | include/constraints.hpp | triplez23/Hetero-MAPF | 1b3d09480c5cc7323ee5f553739d045ab52060f3 | [
"MIT"
] | null | null | null | include/constraints.hpp | triplez23/Hetero-MAPF | 1b3d09480c5cc7323ee5f553739d045ab52060f3 | [
"MIT"
] | 3 | 2021-04-20T10:41:41.000Z | 2022-03-31T17:31:59.000Z | /**
* @file constraints.hpp
* @author Licheng Wen (wenlc@zju.edu.cn)
* @brief base class of conflict & constraints
* @version 0.1
* @date 2021-01-17
*
* @copyright Copyright (c) 2021
*
*/
#pragma once
#include <iostream>
#include "model.hpp"
#include "state.hpp"
struct Conflict {
int time;
size_t agent1... | 25.118812 | 78 | 0.611352 | zijinoier |
d790291607784cfea992e1359e1dac83c0ebb36a | 2,059 | cc | C++ | src/core/interrupt/interrupt_controller_impl.cc | shimashimashi/gbeml | c40789e8592aef6665f15baec32d33a5283dfa62 | [
"MIT"
] | 1 | 2022-02-21T15:07:30.000Z | 2022-02-21T15:07:30.000Z | src/core/interrupt/interrupt_controller_impl.cc | shimashimashi/gbemu | c40789e8592aef6665f15baec32d33a5283dfa62 | [
"MIT"
] | 5 | 2022-02-24T14:15:24.000Z | 2022-03-03T17:24:35.000Z | src/core/interrupt/interrupt_controller_impl.cc | shimashimashi/gbemu | c40789e8592aef6665f15baec32d33a5283dfa62 | [
"MIT"
] | null | null | null | #include "core/interrupt/interrupt_controller_impl.h"
namespace gbeml {
u8 InterruptControllerImpl::readInterruptFlag() const {
return interrupt_flag.get();
}
void InterruptControllerImpl::writeInterruptFlag(u8 value) {
interrupt_flag.set(value);
}
u8 InterruptControllerImpl::readInterruptEnable() const {
ret... | 30.731343 | 80 | 0.776105 | shimashimashi |
d79c6c3767ab48fcaf29bb17c06d3a815ba7396c | 3,349 | cpp | C++ | Game/Client/WXCore/Core/WXXercesWriter.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/WXCore/Core/WXXercesWriter.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/WXCore/Core/WXXercesWriter.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "WXXercesWriter.h"
#include "WXXMLNode.h"
#include "WXXMLAttributes.h"
#include <OgreException.h>
// Xerces-C includes
#include <OgreNoMemoryMacros.h>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include <xercesc/dom/DOMImplementationRegistry.hpp>
#include <xercesc/dom/DOMImplementation.hpp>
#incl... | 33.828283 | 99 | 0.507017 | hackerlank |
d79c71de13fc5ff48b4d9b42d92a9e147703d24a | 2,310 | cpp | C++ | 3DGeometry.cpp | martonantoni/compolib | 9a9b9694d38af18f403d676da86a5e05d6e9ae08 | [
"MIT"
] | null | null | null | 3DGeometry.cpp | martonantoni/compolib | 9a9b9694d38af18f403d676da86a5e05d6e9ae08 | [
"MIT"
] | null | null | null | 3DGeometry.cpp | martonantoni/compolib | 9a9b9694d38af18f403d676da86a5e05d6e9ae08 | [
"MIT"
] | null | null | null | /// ----------------------------------------------------------------------------------------------------------- 3DGeometry.cpp
template<class T>
struct t3DPoint
{
T x, y, z;
t3DPoint(): x(0), y(0), z(0) {}
t3DPoint(T x, T y, T z): x(x), y(y), z(z) {}
template<class U> t3DPoint(const t3DPoint<U> &Other): x(Other.x)... | 45.294118 | 133 | 0.592641 | martonantoni |
d79c8286afd892e2861726bf8feff8af2b89ef9f | 7,208 | cpp | C++ | DeviceCode/Targets/Native/PXA271/DeviceCode/PXA271_time/PXA271__TIME.cpp | valoni/STM32F103 | 75f0cb8be593ca287a08f5992d1f5d3c3bb12bfc | [
"Apache-2.0"
] | 1 | 2020-06-09T02:16:43.000Z | 2020-06-09T02:16:43.000Z | DeviceCode/Targets/Native/PXA271/DeviceCode/PXA271_time/PXA271__TIME.cpp | valoni/STM32F103 | 75f0cb8be593ca287a08f5992d1f5d3c3bb12bfc | [
"Apache-2.0"
] | null | null | null | DeviceCode/Targets/Native/PXA271/DeviceCode/PXA271_time/PXA271__TIME.cpp | valoni/STM32F103 | 75f0cb8be593ca287a08f5992d1f5d3c3bb12bfc | [
"Apache-2.0"
] | 1 | 2019-12-03T05:37:43.000Z | 2019-12-03T05:37:43.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... | 32.035556 | 201 | 0.649972 | valoni |
d7a6ff701f706c5fd0f21192ec570189f39df878 | 797 | cpp | C++ | gui/src/aboutwindow.cpp | QtWorks/imgbrd-grabber | f3f51c56c38765f3c03b61daa3b30c418a9754ec | [
"Apache-2.0"
] | 1 | 2019-04-24T04:30:53.000Z | 2019-04-24T04:30:53.000Z | gui/src/aboutwindow.cpp | QtWorks/imgbrd-grabber | f3f51c56c38765f3c03b61daa3b30c418a9754ec | [
"Apache-2.0"
] | null | null | null | gui/src/aboutwindow.cpp | QtWorks/imgbrd-grabber | f3f51c56c38765f3c03b61daa3b30c418a9754ec | [
"Apache-2.0"
] | null | null | null | #include "aboutwindow.h"
#include "ui_aboutwindow.h"
AboutWindow::AboutWindow(QString version, QWidget *parent)
: QDialog(parent), ui(new Ui::AboutWindow), m_updater()
{
ui->setupUi(this);
ui->labelCurrent->setText(version);
ui->labelCreator->setText(ui->labelCreator->text().replace("{website}", PROJECT_WEBSITE_... | 28.464286 | 110 | 0.718946 | QtWorks |
92e214d5f6a43842c9e2adb4a88925d0b21553a0 | 1,015 | cpp | C++ | Problem Solving/Data Structures/Linked Lists/Delete a Node/delete a node.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | 108 | 2021-03-29T05:04:16.000Z | 2022-03-19T15:11:52.000Z | Problem Solving/Data Structures/Linked Lists/Delete a Node/delete a node.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | null | null | null | Problem Solving/Data Structures/Linked Lists/Delete a Node/delete a node.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | 32 | 2021-03-30T03:56:54.000Z | 2022-03-27T14:41:32.000Z | /* Author: Isaac Asante
* HackerRank URL for this exercise: https://www.hackerrank.com/challenges/delete-a-node-from-a-linked-list/problem
* Original video explanation: https://www.youtube.com/watch?v=7UnHIpypJFI
* Last verified on: March 28, 2021
*/
/* IMPORTANT:
* This code is meant to be used as a solution on ... | 28.194444 | 115 | 0.651232 | IsaacAsante |
92e41af319af0bc18932ce3dcc41ff558c54435a | 23,240 | cc | C++ | muduo/net/SocketsOps.cc | HZMCIU/muduo | dd863a47746b7d160c461df7d1f169833b152b67 | [
"BSD-3-Clause"
] | null | null | null | muduo/net/SocketsOps.cc | HZMCIU/muduo | dd863a47746b7d160c461df7d1f169833b152b67 | [
"BSD-3-Clause"
] | null | null | null | muduo/net/SocketsOps.cc | HZMCIU/muduo | dd863a47746b7d160c461df7d1f169833b152b67 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2010, Shuo Chen. All rights reserved.
// http://code.google.com/p/muduo/
//
// Use of this source code is governed by a BSD-style license
// that can be found in the License file.
// Author: Shuo Chen (chenshuo at chenshuo dot com)
#include "muduo/net/SocketsOps.h"
#include "muduo/base/Logging.h"
#incl... | 47.525562 | 180 | 0.662048 | HZMCIU |
92ea2df54905ae5dd1b840448d67cb1d6e6b6ac1 | 2,929 | cc | C++ | policies/DIF/RMT/Monitor/ModularMonitor/MM_DL_Out/MM_DL_Out.cc | karlhto/RINA-thesis | e006ad41275f3a7901f7bff10e7e41bd445ffc1f | [
"MIT"
] | 1 | 2020-09-02T15:26:58.000Z | 2020-09-02T15:26:58.000Z | policies/DIF/RMT/Monitor/ModularMonitor/MM_DL_Out/MM_DL_Out.cc | karlhto/RINA-thesis | e006ad41275f3a7901f7bff10e7e41bd445ffc1f | [
"MIT"
] | null | null | null | policies/DIF/RMT/Monitor/ModularMonitor/MM_DL_Out/MM_DL_Out.cc | karlhto/RINA-thesis | e006ad41275f3a7901f7bff10e7e41bd445ffc1f | [
"MIT"
] | null | null | null | //
// Copyright © 2014 - 2015 PRISTINE Consortium (http://ict-pristine.eu)
//
// 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 Foundation, either version 3 of the License, or
// (at your option) an... | 32.544444 | 112 | 0.660635 | karlhto |
92eb47915f6f4762b2b1bcd759f10f3fc1b2a2a1 | 289 | cpp | C++ | source/beispiel.cpp | Graunarmin/programmiersprachen-aufgabenblatt-4 | c4678fbb27b3de49313222af7cbf9e77c2396b6e | [
"MIT"
] | null | null | null | source/beispiel.cpp | Graunarmin/programmiersprachen-aufgabenblatt-4 | c4678fbb27b3de49313222af7cbf9e77c2396b6e | [
"MIT"
] | null | null | null | source/beispiel.cpp | Graunarmin/programmiersprachen-aufgabenblatt-4 | c4678fbb27b3de49313222af7cbf9e77c2396b6e | [
"MIT"
] | null | null | null | # include <iostream>
int compute()
{
int val = 1111;
std::cout << "computed: " << val << "\n";
return val;
}
int main (int argc, char* argv [])
{
int key = compute();
if (1234 != key){
std::cout << "ERROR: wrong key\n";
return 1;
}
std::cout << "Achievement unlocked \n";
return 0;
}
| 12.565217 | 41 | 0.584775 | Graunarmin |
92f46f531e6db3e51496c2667d00841f6a2e8a50 | 4,848 | cpp | C++ | Simulator/Layouts/Neuro/FixedLayout.cpp | jardiamj/Graphitti | 1fc94e69173759732772897009731f8dc7016157 | [
"Apache-2.0"
] | 2 | 2021-04-05T22:39:44.000Z | 2021-08-24T23:04:02.000Z | Simulator/Layouts/Neuro/FixedLayout.cpp | jardiamj/Graphitti | 1fc94e69173759732772897009731f8dc7016157 | [
"Apache-2.0"
] | 164 | 2021-03-26T19:32:36.000Z | 2022-03-25T17:29:39.000Z | Simulator/Layouts/Neuro/FixedLayout.cpp | jardiamj/Graphitti | 1fc94e69173759732772897009731f8dc7016157 | [
"Apache-2.0"
] | 12 | 2021-04-07T07:14:43.000Z | 2022-03-30T18:32:36.000Z | /**
* @file FixedLayout.cpp
*
* @ingroup Simulator/Layouts
*
* @brief The Layout class defines the layout of vertices in neural networks
*/
#include "FixedLayout.h"
#include "ParseParamError.h"
#include "Util.h"
#include "ParameterManager.h"
// TODO: I don't think that either of the constructor or destructor i... | 41.435897 | 119 | 0.688531 | jardiamj |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.