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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74aec0ab3cec521db8d07f694518e2b6b00ee3e6 | 5,551 | cpp | C++ | YSlow/YSlow/connection.cpp | Artenuvielle/YSlow | 5efe738cef855baefbce28b98663501fa350fc58 | [
"MIT"
] | null | null | null | YSlow/YSlow/connection.cpp | Artenuvielle/YSlow | 5efe738cef855baefbce28b98663501fa350fc58 | [
"MIT"
] | null | null | null | YSlow/YSlow/connection.cpp | Artenuvielle/YSlow | 5efe738cef855baefbce28b98663501fa350fc58 | [
"MIT"
] | null | null | null | #include <unistd.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/epoll.h>
#include <netdb.h>
#include <string.h>
#include "epollinterface.h"
#include "connection.h"
#include "Logger.h"
#include "netutils.h"
#define BUFFER_SIZE 4096
struct data_buffer_entry {
int is_clo... | 26.433333 | 127 | 0.715727 | Artenuvielle |
74b036befb761407d2b9872e4945a966c298aa48 | 13,169 | cpp | C++ | Foundation/library/source/TTMatrix.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | null | null | null | Foundation/library/source/TTMatrix.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | null | null | null | Foundation/library/source/TTMatrix.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | null | null | null | /** @file
*
* @ingroup foundationLibrary
*
* @brief 2-dimensional matrix of compound values with N elements each.
*
* @authors Timothy Place & Nathan Wolek
*
* @copyright Copyright © 2011-2012, Timothy Place & Nathan Wolek @n
* This code is licensed under the terms of the "New BSD License" @n
* http://creati... | 26.338 | 129 | 0.727846 | avilleret |
74b5f2f06e5b93d387ffe6e6321b3658b4fb9c3a | 11,213 | cpp | C++ | data/151.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/151.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/151.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int
P97p,
ND3,
Qdv,
fM,/*lNd*/A7 , //4l
T2, W6 ,NUyzgx, krq
, Tt
,//
q6e
,
We ,
e
,
Z4aRO//4L
, myxY
, KtS ,IGC/**/,W1q ,
P,
wek ,
H2yq,Rs,
/**/ W ,
/*x*/awrjh,
Yt
,
LwpUT
,pUE,d ,nfWm,tv
//1H
, NPr, OeXa4o /*2V*/,
h6,eA9,
nma ,R,cH, lwg/*Hiymi*/
, sjTUX,
g ,K3//h
,Mzf0, Yx , ROj,QSV0J... | 11.025565 | 67 | 0.461964 | TianyiChen |
74baaebf56bfda270f9770e23ca0232dccabc2d8 | 456 | hxx | C++ | MddProxyGit/CommonFunctions.hxx | dkhedekar/ProxyDataRouter | db49040de93085d397b7a057bf2d759dd65f48ac | [
"0BSD"
] | 2 | 2015-05-28T20:25:32.000Z | 2015-05-29T13:15:35.000Z | MddProxyGit/CommonFunctions.hxx | dkhedekar/ProxyDataRouter | db49040de93085d397b7a057bf2d759dd65f48ac | [
"0BSD"
] | null | null | null | MddProxyGit/CommonFunctions.hxx | dkhedekar/ProxyDataRouter | db49040de93085d397b7a057bf2d759dd65f48ac | [
"0BSD"
] | null | null | null | /*
* CommonFunctions.hxx
*
* Created on: Jul 8, 2015
* Author: kheddar
*/
#ifndef COMMONFUNCTIONS_HXX_
#define COMMONFUNCTIONS_HXX_
#include <time.h>
#include <sys/time.h>
namespace mdm {
namespace mddproxy {
class CommonFunctions {
public:
static timeval GetTime()
{
struct timeval currtime;
gettim... | 14.25 | 33 | 0.690789 | dkhedekar |
74bf29fbb83201efbc4a54e554adfdde079dc908 | 4,222 | cpp | C++ | Source.cpp | kenjinote/CursorTest | 9316a09ceee52be32d4f94af3c248689f373aa02 | [
"MIT"
] | 1 | 2021-12-15T02:52:46.000Z | 2021-12-15T02:52:46.000Z | Source.cpp | kenjinote/CursorTest | 9316a09ceee52be32d4f94af3c248689f373aa02 | [
"MIT"
] | null | null | null | Source.cpp | kenjinote/CursorTest | 9316a09ceee52be32d4f94af3c248689f373aa02 | [
"MIT"
] | 1 | 2022-03-05T03:23:59.000Z | 2022-03-05T03:23:59.000Z | #pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#include <windows.h>
TCHAR szClassName[] = TEXT("Window");
HICON CreateCursor(int nWidth, int nHeight, COLORREF col... | 29.524476 | 196 | 0.666272 | kenjinote |
74cc29a6fb4b50d1985b33e1f544656b35797eaa | 21,286 | cpp | C++ | stira/wavelet/wavelet/NonSubsampledTransform.cpp | frooms/stira | 60b419f3e478397a8ab43ce9315a259567d94a26 | [
"MIT"
] | 8 | 2016-03-23T08:12:33.000Z | 2022-01-25T14:07:03.000Z | stira/wavelet/wavelet/NonSubsampledTransform.cpp | frooms/stira | 60b419f3e478397a8ab43ce9315a259567d94a26 | [
"MIT"
] | null | null | null | stira/wavelet/wavelet/NonSubsampledTransform.cpp | frooms/stira | 60b419f3e478397a8ab43ce9315a259567d94a26 | [
"MIT"
] | 8 | 2015-06-29T12:00:06.000Z | 2019-09-03T12:40:47.000Z |
/***********************************************************************************
* Copyright (C) 2008 by Filip Rooms *
* *
* Terms and conditions for using this software in any form are... | 44.345833 | 165 | 0.574979 | frooms |
74cdb83fc6afc7d1473a45acfa60a6723e4b9547 | 9,057 | cpp | C++ | src/reference.cpp | stalowyjez/coan | a20cb0a87606f155a64e9c3361f5967e24882d5c | [
"BSD-3-Clause"
] | 4 | 2018-10-17T00:40:23.000Z | 2021-03-08T11:19:08.000Z | src/reference.cpp | stalowyjez/coan | a20cb0a87606f155a64e9c3361f5967e24882d5c | [
"BSD-3-Clause"
] | null | null | null | src/reference.cpp | stalowyjez/coan | a20cb0a87606f155a64e9c3361f5967e24882d5c | [
"BSD-3-Clause"
] | 2 | 2021-03-08T11:19:13.000Z | 2021-12-16T11:58:40.000Z | /***************************************************************************
* Copyright (C) 2007-2013 Mike Kinghan, imk@burroingroingjoing.com *
* All rights reserved. *
* *
* Contrib... | 34.568702 | 77 | 0.57094 | stalowyjez |
74d3212911b7c8a6e3ab7042b9e3104b44f883d2 | 87,732 | cpp | C++ | OREData/ored/marketdata/yieldcurve.cpp | paul-giltinan/Engine | 49b6e142905ca2cce93c2ae46e9ac69380d9f7a1 | [
"BSD-3-Clause"
] | null | null | null | OREData/ored/marketdata/yieldcurve.cpp | paul-giltinan/Engine | 49b6e142905ca2cce93c2ae46e9ac69380d9f7a1 | [
"BSD-3-Clause"
] | null | null | null | OREData/ored/marketdata/yieldcurve.cpp | paul-giltinan/Engine | 49b6e142905ca2cce93c2ae46e9ac69380d9f7a1 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (C) 2016 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 53.691554 | 120 | 0.630032 | paul-giltinan |
74d43b20e7b91fd311baf57c2650105cc20b746c | 8,046 | cpp | C++ | src/core/loops/src/LoopCarriedDependencies.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 43 | 2020-09-04T15:21:40.000Z | 2022-03-23T03:53:02.000Z | src/core/loops/src/LoopCarriedDependencies.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 15 | 2020-09-17T18:06:15.000Z | 2022-01-24T17:14:36.000Z | src/core/loops/src/LoopCarriedDependencies.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 23 | 2020-09-04T15:50:09.000Z | 2022-03-25T13:38:25.000Z | /*
* Copyright 2016 - 2021 Angelo Matni, Simone Campanoni, Brian Homerding
*
* 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 us... | 30.946154 | 435 | 0.666294 | SusanTan |
74d45d341df14dabd7b143bc609382f1ad300c32 | 2,095 | cpp | C++ | src/Mastermind.cpp | nikpfosk/mastermind | c824206c2b13d3c2a4055286ca86520ff7de94a1 | [
"MIT"
] | null | null | null | src/Mastermind.cpp | nikpfosk/mastermind | c824206c2b13d3c2a4055286ca86520ff7de94a1 | [
"MIT"
] | null | null | null | src/Mastermind.cpp | nikpfosk/mastermind | c824206c2b13d3c2a4055286ca86520ff7de94a1 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include "Mastermind.hpp"
using namespace mastermind;
using namespace utilities;
void
Mastermind::PrintGameRules()
{
std::cout << "\n************************************************"
<< std::endl;
std::cout << "\nWelcome to the game of Mastermind.\n" << ... | 29.507042 | 76 | 0.540334 | nikpfosk |
74da6e9fc32125d2f805fdeb92eff47b54682576 | 924 | hpp | C++ | src/IntermediateRepresentation/Entry.hpp | RainingComputers/ShnooTalk | 714f6648363a99e011e329ed1a3f800e6fe65f39 | [
"MIT"
] | 6 | 2021-07-17T16:02:07.000Z | 2022-02-05T16:33:51.000Z | src/IntermediateRepresentation/Entry.hpp | RainingComputers/ShnooTalk | 714f6648363a99e011e329ed1a3f800e6fe65f39 | [
"MIT"
] | 1 | 2021-07-16T07:14:31.000Z | 2021-07-16T07:22:10.000Z | src/IntermediateRepresentation/Entry.hpp | RainingComputers/ShnooTalk | 714f6648363a99e011e329ed1a3f800e6fe65f39 | [
"MIT"
] | 2 | 2021-07-16T02:54:27.000Z | 2022-03-29T20:51:57.000Z | #ifndef IR_ENTRY
#define IR_ENTRY
#include "Operand.hpp"
namespace icode
{
enum Instruction
{
PASS,
PASS_ADDR,
PASS_PTR,
CALL,
RET,
ADDR_ADD,
ADDR_MUL,
EQUAL,
PTR_ASSIGN,
READ,
WRITE,
CREATE_PTR,
ALLOC_PTR,... | 14.215385 | 27 | 0.411255 | RainingComputers |
74dc19dc52532bf1e9708a5f9d493e163aec1aac | 220 | cpp | C++ | src/c++/exercios/fluxo-io/fail.cpp | PedroExpedito/learc | bf0311f23860706881f7565c9347db3e40559145 | [
"MIT"
] | null | null | null | src/c++/exercios/fluxo-io/fail.cpp | PedroExpedito/learc | bf0311f23860706881f7565c9347db3e40559145 | [
"MIT"
] | null | null | null | src/c++/exercios/fluxo-io/fail.cpp | PedroExpedito/learc | bf0311f23860706881f7565c9347db3e40559145 | [
"MIT"
] | 1 | 2020-05-18T12:20:10.000Z | 2020-05-18T12:20:10.000Z | #include <iostream>
#include <fstream>
using namespace std;
int main(void) {
char path[] = ("fail.txt");
ifstream in(path);
char c;
while(1) {
in >> c;
if(in.fail())
break;
cout << c;
}
}
| 11.578947 | 29 | 0.536364 | PedroExpedito |
74e0163e266398e04fa27bb206817958886478d9 | 22,109 | cpp | C++ | src/api/algo.cpp | fleeto/pipy | 59c06821e4e7acb0a823682abed90d7641053c61 | [
"BSL-1.0"
] | 410 | 2021-01-02T03:10:45.000Z | 2022-03-28T10:29:15.000Z | src/api/algo.cpp | fleeto/pipy | 59c06821e4e7acb0a823682abed90d7641053c61 | [
"BSL-1.0"
] | 15 | 2021-02-12T03:20:07.000Z | 2022-03-26T11:32:15.000Z | src/api/algo.cpp | fleeto/pipy | 59c06821e4e7acb0a823682abed90d7641053c61 | [
"BSL-1.0"
] | 51 | 2021-02-12T01:50:07.000Z | 2022-03-21T05:07:56.000Z | /*
* Copyright (c) 2019 by flomesh.io
*
* Unless prior written consent has been obtained from the copyright
* owner, the following shall not be allowed.
*
* 1. The distribution of any source codes, header files, make files,
* or libraries of the software.
*
* 2. Disclosure of any source codes pertaini... | 23.520213 | 120 | 0.586548 | fleeto |
74e56ba8b91a30604f577583414a94793aafbd5c | 1,536 | hpp | C++ | Siv3D/src/Siv3D/TextBox/CTextBox.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/TextBox/CTextBox.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/TextBox/CTextBox.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | 1 | 2019-10-06T17:09:26.000Z | 2019-10-06T17:09:26.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <Siv3D/TextBox.hpp>
# ... | 18.731707 | 109 | 0.664714 | Fuyutsubaki |
74e5b95a557a6a1428b4cce72f989624a8568d20 | 325 | cpp | C++ | libs/PPU/PPUDebugState.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | 3 | 2019-10-27T22:32:44.000Z | 2020-05-21T04:00:46.000Z | libs/PPU/PPUDebugState.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | libs/PPU/PPUDebugState.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | #include "stdafx.h"
#include "PPUDebugState.h"
namespace RF::gfx::ppu {
///////////////////////////////////////////////////////////////////////////////
void PPUDebugState::Clear()
{
mNumStrings = 0;
mNumAuxStrings = 0;
mNumLines = 0;
}
/////////////////////////////////////////////////////////////////////////////... | 19.117647 | 79 | 0.341538 | max-delta |
d56027b19f92853eda227d37762d362465f124bc | 1,451 | cpp | C++ | LeetCode/36.Valid_Sudoku.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | LeetCode/36.Valid_Sudoku.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | LeetCode/36.Valid_Sudoku.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | class Solution {
public:
bool isValidSudoku(vector<vector<char>>& board) {
bool chk[11];
for(int i = 0; i < 9; ++i) {
for(int j = 0; j < 11; ++j) chk[j] = false;
for(int j = 0; j < 9; ++j) {
if(board[i][j] != '.') {
... | 39.216216 | 96 | 0.264645 | w181496 |
d5606dd981c947019768951f3f50ddbdc4d1c05f | 615 | cpp | C++ | TwoSum.cpp | ShreyaPrasad1209/Amazon-Interview-Questions | 4a5dfb87f60866bae9c7fe64bd33c81b50ddcebb | [
"MIT"
] | 10 | 2020-05-09T11:48:47.000Z | 2021-10-30T06:45:51.000Z | TwoSum.cpp | soma2000-lang/Amazon-Interview-Questions | 4a5dfb87f60866bae9c7fe64bd33c81b50ddcebb | [
"MIT"
] | 1 | 2022-03-04T12:15:10.000Z | 2022-03-04T12:15:10.000Z | TwoSum.cpp | soma2000-lang/Amazon-Interview-Questions | 4a5dfb87f60866bae9c7fe64bd33c81b50ddcebb | [
"MIT"
] | 5 | 2020-07-21T20:38:32.000Z | 2021-07-16T10:52:05.000Z | class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
vector<int>ans; int j=1;
if(!nums.size())
ans.push_back(0);
unordered_map<int,int>M;
int x;
for(int i =0; i<nums.size(); i++){
x = target-nums[i];
auto itr... | 24.6 | 55 | 0.455285 | ShreyaPrasad1209 |
d560dc72d12ed8a06e6fd6563ddb88833bfd2650 | 2,427 | cpp | C++ | removeworker.cpp | haraki/farman | 9aab8cfdd3f9d98f3be8dfddd6bad8451ea27297 | [
"MIT"
] | 5 | 2018-08-19T05:45:45.000Z | 2020-10-09T09:37:57.000Z | removeworker.cpp | haraki/farman | 9aab8cfdd3f9d98f3be8dfddd6bad8451ea27297 | [
"MIT"
] | 95 | 2018-04-26T12:13:24.000Z | 2020-05-03T08:23:56.000Z | removeworker.cpp | haraki/farman | 9aab8cfdd3f9d98f3be8dfddd6bad8451ea27297 | [
"MIT"
] | 1 | 2018-08-19T05:46:02.000Z | 2018-08-19T05:46:02.000Z | #include <QDebug>
#include <QFileInfo>
#include <QDir>
#include <QFile>
#include <QThread>
#include "removeworker.h"
#include "workerresult.h"
namespace Farman
{
RemoveWorker::RemoveWorker(const QStringList& paths, QObject *parent)
: Worker(parent)
, m_paths(paths)
{
}
RemoveWorker::~RemoveWorker()
{
}
vo... | 25.819149 | 90 | 0.532756 | haraki |
d563511066363c390e22d662b80a5345ee4b8bb6 | 5,398 | cpp | C++ | arrays_and_strings/tests.cpp | agurusa/interview_prep | b777e0803ee8d3316c0f3fb60efd8463d1437424 | [
"MIT"
] | null | null | null | arrays_and_strings/tests.cpp | agurusa/interview_prep | b777e0803ee8d3316c0f3fb60efd8463d1437424 | [
"MIT"
] | null | null | null | arrays_and_strings/tests.cpp | agurusa/interview_prep | b777e0803ee8d3316c0f3fb60efd8463d1437424 | [
"MIT"
] | null | null | null | #include "../catch.hpp"
#include "is_unique.cpp"
#include "check_permutation.cpp"
#include "urlify.cpp"
#include "palindrome_permutation.cpp"
#include "one_away.cpp"
#include "string_compression.cpp"
#include "zero_matrix.cpp"
#include "string_rotation.cpp"
SCENARIO("Strings can be tested for uniqueness", "[test_file... | 28.86631 | 110 | 0.648574 | agurusa |
d56a1ca0508895976fa72abc74ce6a474adb413c | 3,272 | hpp | C++ | 3pp/Hof/include/hof/detail/pp.hpp | TillHeinzel/Qt3DDragExample | 8ac12d214821311980be10766142e09d23e23063 | [
"Unlicense"
] | null | null | null | 3pp/Hof/include/hof/detail/pp.hpp | TillHeinzel/Qt3DDragExample | 8ac12d214821311980be10766142e09d23e23063 | [
"Unlicense"
] | null | null | null | 3pp/Hof/include/hof/detail/pp.hpp | TillHeinzel/Qt3DDragExample | 8ac12d214821311980be10766142e09d23e23063 | [
"Unlicense"
] | null | null | null | /*=============================================================================
Copyright (c) 2014 Paul Fultz II
pp.h
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)
=======================================... | 34.808511 | 88 | 0.669315 | TillHeinzel |
d56b31ed34ed513a33aca5d00f7f4e127008effe | 1,079 | cpp | C++ | tests/cuda_version.cpp | marwage/alzheimer | b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041 | [
"CC0-1.0"
] | null | null | null | tests/cuda_version.cpp | marwage/alzheimer | b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041 | [
"CC0-1.0"
] | null | null | null | tests/cuda_version.cpp | marwage/alzheimer | b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041 | [
"CC0-1.0"
] | null | null | null | // 2021 Copyright Marcel Wagenländer
#include "cusparse.h"
#include <cublas_v2.h>
#include <cuda_runtime.h>
#include <cudnn.h>
#include <iostream>
#include <catch2/catch.hpp>
int cuda_version() {
cublasHandle_t cublas_handle;
cudnnHandle_t cudnn_handle;
cusparseHandle_t cusparse_handle;
cublasCreate... | 27.666667 | 81 | 0.709917 | marwage |
d56bbaf58fbabcde3198db67ea2c00a4d616da7b | 1,748 | cpp | C++ | src/carbon/event/rpc.cpp | extester/carbon | ef3e51e35359a648c2b6f1ea119cf5acbcdf15c7 | [
"Apache-2.0"
] | 1 | 2019-12-25T17:38:30.000Z | 2019-12-25T17:38:30.000Z | src/carbon/event/rpc.cpp | extester/carbon | ef3e51e35359a648c2b6f1ea119cf5acbcdf15c7 | [
"Apache-2.0"
] | null | null | null | src/carbon/event/rpc.cpp | extester/carbon | ef3e51e35359a648c2b6f1ea119cf5acbcdf15c7 | [
"Apache-2.0"
] | null | null | null | /*
* Carbon framework
* Remote Procedure Call
*
* Copyright (c) 2013 Softland. All rights reserved.
* Licensed under the Apache License, Version 2.0
*/
/*
* Revision history:
*
* Revision 1.0, 04.04.2013 16:23:47
* Initial revision.
*/
#include "shell/hr_time.h"
#include "carbon/logger.h"
#inclu... | 21.317073 | 80 | 0.620137 | extester |
d56d0228ad820e146e57d71c6cfe2922a342f040 | 22,068 | cpp | C++ | MIC/CoHHMRISO/HHMRConfig2.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | null | null | null | MIC/CoHHMRISO/HHMRConfig2.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | 1 | 2017-09-14T15:23:39.000Z | 2017-09-14T15:23:39.000Z | MIC/CoHHMRISO/HHMRConfig2.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | null | null | null | /*
This work was supported by the United States Member State Support Program to IAEA Safeguards;
the U.S. Department of Energy, Office of Nonproliferation and National Security, International
Safeguards Division; and the U.S. Department of Energy, Office of Safeguards and Security.
LA-CC-14-089. This software was... | 33.589041 | 110 | 0.744154 | hnordquist |
d56ddeb922ece83b6d1c0beca90017c0390a59b9 | 3,001 | cpp | C++ | 07-recursion-intro/readerEx.07.06/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 81 | 2018-11-15T21:23:19.000Z | 2022-03-06T09:46:36.000Z | 07-recursion-intro/readerEx.07.06/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | null | null | null | 07-recursion-intro/readerEx.07.06/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 41 | 2018-11-15T21:23:24.000Z | 2022-02-24T03:02:26.000Z | //
// main.cpp
//
// This program compares the efficiency of computing the Fibonacci
// sequence by two different methods.
//
// --------------------------------------------------------------------------
// Attribution: "Programming Abstractions in C++" by Eric Roberts
// Chapter 7, Exercise 6
// Stanford University, A... | 30.313131 | 91 | 0.55115 | heavy3 |
d56efd35775a5c84bc4be29fe0e3ef8a0d0a4270 | 3,886 | cpp | C++ | src/KargerGraph.cpp | Santi-7/Minimum_cut | d0f9f404ab5533d26096163aabe434ad501d8c03 | [
"Apache-2.0"
] | null | null | null | src/KargerGraph.cpp | Santi-7/Minimum_cut | d0f9f404ab5533d26096163aabe434ad501d8c03 | [
"Apache-2.0"
] | null | null | null | src/KargerGraph.cpp | Santi-7/Minimum_cut | d0f9f404ab5533d26096163aabe434ad501d8c03 | [
"Apache-2.0"
] | null | null | null | /** ---------------------------------------------------------------------------
** KargerGraph.cpp
** Implementation for KargerGraph class.
**
** Author: Miguel Jorge Galindo Ramos, NIA: 679954
** Santiago Gil Begué, NIA: 683482
** -------------------------------------------------------------------------*... | 28.573529 | 97 | 0.579259 | Santi-7 |
d56f2221f40d300308a5a1127122ddf8222cbf57 | 1,485 | hpp | C++ | stan/math/prim/fun/simplex_free.hpp | tiagocabaco/math | 1b300c592b680fbfde289f08dc75d1da9c61901d | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/fun/simplex_free.hpp | tiagocabaco/math | 1b300c592b680fbfde289f08dc75d1da9c61901d | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/fun/simplex_free.hpp | tiagocabaco/math | 1b300c592b680fbfde289f08dc75d1da9c61901d | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_PRIM_FUN_SIMPLEX_FREE_HPP
#define STAN_MATH_PRIM_FUN_SIMPLEX_FREE_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/log.hpp>
#include <stan/math/prim/fun/logit.hpp>
#include <cmath>
namespace stan {
namespace... | 29.7 | 73 | 0.69697 | tiagocabaco |
d575efa99d671034370d67d5940ef5e37ab1d773 | 1,961 | cpp | C++ | simple_navigation_goals/src/main.cpp | umigv/goat | cdb8c8bdc81b35536aa7397574dc168c56e32239 | [
"BSD-3-Clause"
] | 5 | 2019-04-21T21:55:59.000Z | 2020-10-08T15:35:47.000Z | simple_navigation_goals/src/main.cpp | umigv/atlas | cdb8c8bdc81b35536aa7397574dc168c56e32239 | [
"BSD-3-Clause"
] | 349 | 2017-10-06T17:35:02.000Z | 2018-10-29T16:55:44.000Z | simple_navigation_goals/src/main.cpp | umigv/atlas | cdb8c8bdc81b35536aa7397574dc168c56e32239 | [
"BSD-3-Clause"
] | null | null | null | #include <ros/ros.h>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <geometry_msgs/PoseStamped.h>
#include <geodesy/wgs84.h>
#include <geodesy/utm.h>
#include <geographic_msgs/GeoPoint.h>
using namespace std;
int main(int argc, char** argv)
{
ros::init(argc, argv, "simple_navigation_goals");
... | 26.863014 | 154 | 0.698623 | umigv |
d57a20458cbaf7159203f59440bd0db286ce907e | 2,205 | cc | C++ | libcef_dll/ctocpp/jsdialog_handler_ctocpp.cc | desura/desura-cef1 | 54106e0abdbbb362b4d547af3095faeb467500d3 | [
"BSD-3-Clause"
] | 1 | 2017-01-18T17:04:40.000Z | 2017-01-18T17:04:40.000Z | libcef_dll/ctocpp/jsdialog_handler_ctocpp.cc | desura/desura-cef1 | 54106e0abdbbb362b4d547af3095faeb467500d3 | [
"BSD-3-Clause"
] | null | null | null | libcef_dll/ctocpp/jsdialog_handler_ctocpp.cc | desura/desura-cef1 | 54106e0abdbbb362b4d547af3095faeb467500d3 | [
"BSD-3-Clause"
] | 1 | 2015-07-14T02:36:29.000Z | 2015-07-14T02:36:29.000Z | // Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// A portion of this file was generated by the ... | 34.453125 | 78 | 0.71746 | desura |
d57aade28790e7d435697cb8d47c7cff59769661 | 582 | hpp | C++ | inc/CoAPServer.hpp | farlepet/coapserver | 5709add6cc4c1d61db1b719196d6941bdde96878 | [
"MIT"
] | 1 | 2021-07-04T21:52:23.000Z | 2021-07-04T21:52:23.000Z | inc/CoAPServer.hpp | farlepet/coapserver | 5709add6cc4c1d61db1b719196d6941bdde96878 | [
"MIT"
] | 12 | 2022-02-26T16:27:58.000Z | 2022-03-26T17:32:22.000Z | inc/CoAPServer.hpp | farlepet/coapserver | 5709add6cc4c1d61db1b719196d6941bdde96878 | [
"MIT"
] | null | null | null | #ifndef _COAP_SERVER_HPP_
#define _COAP_SERVER_HPP_
#include <string>
#include <list>
#include <coap3/coap.h>
#include "Config.hpp"
#include "Resource.hpp"
class CoAPServer {
private:
coap_context_t *ctx = nullptr;
coap_address_t addr;
coap_endpoint_t *endp = nullptr;
std::li... | 19.4 | 95 | 0.66323 | farlepet |
d57c0314f0cd8a38181c519b883d9e4e1a558444 | 2,359 | hpp | C++ | formal_languages/parsers/FiniteAutomatonParser.hpp | Bonotto/INE5421 | d47da55eec17d1c1cab52e4cdf3d50c1e23cad3e | [
"MIT"
] | null | null | null | formal_languages/parsers/FiniteAutomatonParser.hpp | Bonotto/INE5421 | d47da55eec17d1c1cab52e4cdf3d50c1e23cad3e | [
"MIT"
] | null | null | null | formal_languages/parsers/FiniteAutomatonParser.hpp | Bonotto/INE5421 | d47da55eec17d1c1cab52e4cdf3d50c1e23cad3e | [
"MIT"
] | null | null | null | #ifndef PARSER_FINITEAUTOMATON_HPP
#define PARSER_FINITEAUTOMATON_HPP
#include <iostream>
#include <boost/spirit/home/x3.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/fusion/include/io.hpp>
#include <boost/spirit/include/support_istream_iterator.hpp>
#include <iostream>
#include <sstream>
#inc... | 27.752941 | 105 | 0.715134 | Bonotto |
d57e7656e493c84f0dbe466b3217346d7ce5d10a | 3,914 | cpp | C++ | PSE/src/Read_q.cpp | srharris91/OrrSommerfeld_Squire | 92a1dcdc8e982238c7ed8f287622293f9cc60e73 | [
"MIT"
] | null | null | null | PSE/src/Read_q.cpp | srharris91/OrrSommerfeld_Squire | 92a1dcdc8e982238c7ed8f287622293f9cc60e73 | [
"MIT"
] | null | null | null | PSE/src/Read_q.cpp | srharris91/OrrSommerfeld_Squire | 92a1dcdc8e982238c7ed8f287622293f9cc60e73 | [
"MIT"
] | 1 | 2020-09-25T15:09:43.000Z | 2020-09-25T15:09:43.000Z | #define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_RESET "\x1b[0m"
#include "Read_q.hpp"
#include "print.hpp"
#include "set_Vec.hpp"
#include "Init_Vec.hpp"
#include <string>
namespace PSE
{
int Read_q(
Vec &evec,
PetscScalar y[],
const int ny,
PetscScalar z[... | 33.169492 | 122 | 0.565917 | srharris91 |
d57fad837dbb5584f70c22e408297e252e9d99ca | 1,102 | cpp | C++ | prism_light/lib/mydht/MyDHT.cpp | rickycraft/home_led | 0156b9a8f21a4fe0997ec8793d83d1177b701bff | [
"MIT"
] | null | null | null | prism_light/lib/mydht/MyDHT.cpp | rickycraft/home_led | 0156b9a8f21a4fe0997ec8793d83d1177b701bff | [
"MIT"
] | null | null | null | prism_light/lib/mydht/MyDHT.cpp | rickycraft/home_led | 0156b9a8f21a4fe0997ec8793d83d1177b701bff | [
"MIT"
] | null | null | null | #include <MyDHT.h>
MyDHT::MyDHT() : DHT(DHTPIN, DHTTYPE) { Serial.println("called default constructor"); };
MyDHT::MyDHT(MqttUtil *mqtt) : DHT(DHTPIN, DHTTYPE) {
MyDHT::mqtt = mqtt;
last_update = millis();
begin();
}
void MyDHT::read() {
if ((millis() - last_update) < READ_TIMEOUT) return;
last_update = mi... | 26.238095 | 88 | 0.634301 | rickycraft |
d582ef8a00bc77f68b281d30b5f9927f31f4d4fb | 3,338 | hpp | C++ | include/Mesh.hpp | VitalBuggy/RPSCellularAutomaton | ba33f2411cb1170a0647586aa6d637c1daa4a0de | [
"Zlib"
] | 1 | 2022-03-10T03:10:46.000Z | 2022-03-10T03:10:46.000Z | include/Mesh.hpp | VitalBuggy/RPSCellularAutomaton | ba33f2411cb1170a0647586aa6d637c1daa4a0de | [
"Zlib"
] | null | null | null | include/Mesh.hpp | VitalBuggy/RPSCellularAutomaton | ba33f2411cb1170a0647586aa6d637c1daa4a0de | [
"Zlib"
] | 1 | 2022-03-10T03:10:48.000Z | 2022-03-10T03:10:48.000Z | /*
* LICENSE: zlib/libpng
*
* raylib-cpp is licensed under an unmodified zlib/libpng license, which is an OSI-certified,
* BSD-like license that allows static linking with closed source software:
*
* Copyright (c) 2020 Rob Loach (@RobLoach)
*
* This software is provided "as-is", without any express or implied... | 26.492063 | 100 | 0.643799 | VitalBuggy |
d58313c5f1317726a53356f1b20d0011d61cd59f | 11,108 | hpp | C++ | src/benchmarks/benchmark.hpp | huwan/nvml | 596a47d33f067a61164d9ad4f7c8173c8bf7159d | [
"BSD-3-Clause"
] | 1 | 2021-04-25T10:47:37.000Z | 2021-04-25T10:47:37.000Z | src/benchmarks/benchmark.hpp | huwan/nvml | 596a47d33f067a61164d9ad4f7c8173c8bf7159d | [
"BSD-3-Clause"
] | null | null | null | src/benchmarks/benchmark.hpp | huwan/nvml | 596a47d33f067a61164d9ad4f7c8173c8bf7159d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2015-2017, Intel Corporation
*
* 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 ... | 38.435986 | 80 | 0.674019 | huwan |
d586f7557f37b9a32ab701f0e72fd031bb14b88c | 2,395 | cpp | C++ | DemoLib2/net/netmessages/NetUpdateStringTableMessage.cpp | PazerOP/DemoLib2 | 7377f87654ce9bf6487d6b7ce7050cec8e76894e | [
"MIT"
] | 14 | 2018-07-02T19:09:18.000Z | 2022-01-12T12:35:43.000Z | DemoLib2/net/netmessages/NetUpdateStringTableMessage.cpp | PazerOP/DemoLib2 | 7377f87654ce9bf6487d6b7ce7050cec8e76894e | [
"MIT"
] | 1 | 2018-12-27T20:22:06.000Z | 2020-01-04T03:27:31.000Z | DemoLib2/net/netmessages/NetUpdateStringTableMessage.cpp | PazerOP/DemoLib2 | 7377f87654ce9bf6487d6b7ce7050cec8e76894e | [
"MIT"
] | 1 | 2021-05-17T01:03:38.000Z | 2021-05-17T01:03:38.000Z | #include "NetUpdateStringTableMessage.hpp"
#include "BitIO/BitIOReader.hpp"
#include "BitIO/BitIOWriter.hpp"
#include "misc/Exceptions.hpp"
#include "net/data/SourceConstants.hpp"
#include "net/data/StringTableUpdate.hpp"
#include "net/worldstate/WorldState.hpp"
#include <inttypes.h>
#include <iostream>
void NetUpda... | 27.215909 | 108 | 0.766597 | PazerOP |
d58835f8b21670858e4f3a5c47329964777af974 | 18,130 | cpp | C++ | src/modules/fw_autotune_attitude_control/fw_autotune_attitude_control.cpp | donghee/Firmware | 32be88404a837da8215283ae6e618ffaf136b426 | [
"BSD-3-Clause"
] | 1 | 2020-08-29T00:30:23.000Z | 2020-08-29T00:30:23.000Z | src/modules/fw_autotune_attitude_control/fw_autotune_attitude_control.cpp | ZMurphyy/Firmware | 177fe4bade08440a0ae2c2679d5972b8e316ec66 | [
"BSD-3-Clause"
] | null | null | null | src/modules/fw_autotune_attitude_control/fw_autotune_attitude_control.cpp | ZMurphyy/Firmware | 177fe4bade08440a0ae2c2679d5972b8e316ec66 | [
"BSD-3-Clause"
] | 1 | 2021-11-21T00:31:08.000Z | 2021-11-21T00:31:08.000Z | /****************************************************************************
*
* Copyright (c) 2020-2021 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... | 26.428571 | 119 | 0.701158 | donghee |
d58ec71e41c7b477c6ddb6ed8b3dde9129a192be | 7,236 | hpp | C++ | include/codegen/include/System/Net/IPAddress.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Net/IPAddress.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Net/IPAddress.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:18 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 47.294118 | 105 | 0.721255 | Futuremappermydud |
d58fff52ae307945db3206033faccf0057992f3c | 353 | cpp | C++ | y2018/filters/gaussianBlur.cpp | valkyrierobotics/vision2018 | aa82e936c5481b7cc43a46ff5f6e68702c2166c2 | [
"BSD-2-Clause"
] | 2 | 2016-08-06T06:21:02.000Z | 2017-01-10T05:45:13.000Z | y2018/filters/gaussianBlur.cpp | valkyrierobotics/vision2018 | aa82e936c5481b7cc43a46ff5f6e68702c2166c2 | [
"BSD-2-Clause"
] | 1 | 2017-04-15T20:54:59.000Z | 2017-04-15T20:54:59.000Z | y2018/filters/gaussianBlur.cpp | valkyrierobotics/vision2018 | aa82e936c5481b7cc43a46ff5f6e68702c2166c2 | [
"BSD-2-Clause"
] | 3 | 2016-07-30T06:19:55.000Z | 2017-02-07T01:55:05.000Z | #include "filters/gaussianBlur.hpp"
void gaussianBlur(cv::Mat &img, int blur_ksize, int sigmaX, int sigmaY)
{
if (((blur_ksize % 2) == 0) || (blur_ksize < 0)) // If kernel size is even or negative, round to nearest upper odd number
blur_ksize++;
cv::GaussianBlur(img, img, cv::Size(blur_ksize, blur_ksize), sigmaX... | 35.3 | 122 | 0.705382 | valkyrierobotics |
d5920d58e9f9da58e0a64c41edabce64f190b370 | 1,062 | cpp | C++ | examples/track_shared_tracker/example.cpp | zsombi/libcomp | e7757ccf39b025b294da0483efa15fcd431089ca | [
"MIT"
] | null | null | null | examples/track_shared_tracker/example.cpp | zsombi/libcomp | e7757ccf39b025b294da0483efa15fcd431089ca | [
"MIT"
] | null | null | null | examples/track_shared_tracker/example.cpp | zsombi/libcomp | e7757ccf39b025b294da0483efa15fcd431089ca | [
"MIT"
] | null | null | null | #include <comp/signal>
#include <iostream>
class Object : public comp::DeleteObserver::Notifier
{
public:
explicit Object() = default;
};
int main()
{
comp::Signal<void()> signal;
auto object = comp::make_unique<Object>();
// Note: capture shared objects as weak pointer!
auto slot = [&object]()
... | 20.037736 | 78 | 0.576271 | zsombi |
d5921899a240041824f45bb4fea74ce87fddefb7 | 406 | cpp | C++ | src/renderer/material_manager.cpp | galek/LumixEngine | d7d1738f7fc2bc7f6cf08d1217330a591b370ed9 | [
"MIT"
] | 8 | 2015-09-06T20:05:27.000Z | 2021-07-14T11:12:33.000Z | src/renderer/material_manager.cpp | gamedevforks/LumixEngine | d7d1738f7fc2bc7f6cf08d1217330a591b370ed9 | [
"MIT"
] | null | null | null | src/renderer/material_manager.cpp | gamedevforks/LumixEngine | d7d1738f7fc2bc7f6cf08d1217330a591b370ed9 | [
"MIT"
] | null | null | null | #include "lumix.h"
#include "renderer/material_manager.h"
#include "core/resource.h"
#include "renderer/material.h"
namespace Lumix
{
Resource* MaterialManager::createResource(const Path& path)
{
return m_allocator.newObject<Material>(path, getOwner(), m_allocator);
}
void MaterialManager::destroyResource(Reso... | 22.555556 | 72 | 0.763547 | galek |
d596d92e5c3391d3f4eea48c3fdeeffeb347493c | 6,091 | cpp | C++ | ShaderManager.cpp | alecwalsh/glfwogltest2 | 70224838d4851cb308834662763e51eb310f13b2 | [
"BSD-2-Clause"
] | null | null | null | ShaderManager.cpp | alecwalsh/glfwogltest2 | 70224838d4851cb308834662763e51eb310f13b2 | [
"BSD-2-Clause"
] | null | null | null | ShaderManager.cpp | alecwalsh/glfwogltest2 | 70224838d4851cb308834662763e51eb310f13b2 | [
"BSD-2-Clause"
] | null | null | null | #include "ShaderManager.hpp"
#include "glad/glad.h"
#include <glm/gtc/type_ptr.hpp>
#include <fstream>
#include <iostream>
#include <sstream>
#include <utility>
#include <filesystem>
ShaderProgram::ShaderProgram(const ShaderIdentifier& id)
: version{id.version}, shaderProgram{ShaderProgramFromFiles(id.vertShade... | 29.283654 | 112 | 0.68593 | alecwalsh |
d59967f207502c8a419aac59376c3d6b1c975ef3 | 384 | cpp | C++ | C++/C++11/code/string-switch.cpp | MagicalBrain/My-note. | 4e2ed93a535f80c69b0b1786c2567604d2c9b02b | [
"MIT"
] | null | null | null | C++/C++11/code/string-switch.cpp | MagicalBrain/My-note. | 4e2ed93a535f80c69b0b1786c2567604d2c9b02b | [
"MIT"
] | 1 | 2022-01-03T14:33:46.000Z | 2022-01-03T14:34:04.000Z | C++/C++11/code/string-switch.cpp | MagicalBrain/My-note. | 4e2ed93a535f80c69b0b1786c2567604d2c9b02b | [
"MIT"
] | null | null | null | /*
* 试一下string容器是不是真的不可以在switch里面定义
*/
#include <iostream>
#include <string>
using namespace std;
using std::string;
int main() {
int c;
cin >> c;
switch (c)
{
case 1: {
string str;
cin >> str;
cout << str << endl;
break;
}
default:
break;
}
... | 12 | 32 | 0.533854 | MagicalBrain |
d5a06b2444e3c19fae8794a0a935ba4135069c5b | 2,970 | c++ | C++ | Implementing_stack_Operatins.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | Implementing_stack_Operatins.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | Implementing_stack_Operatins.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
struct Node{
int data;
struct Node * next;
};
void linkedListTraversal(struct Node *ptr)
{
while (ptr != NULL)
{
printf("Element: %d\n", ptr->data);
ptr = ptr->next;
}
}
int isEmpty(struct Node* top){
if (top==NULL){
... | 19.411765 | 72 | 0.449832 | Sambitcr-7 |
d5a130c5aba30495402b84388d70478cfde07468 | 254 | cpp | C++ | port/GraphQLParser/GraphQLParser/AST/GraphQLName.cpp | d0si/GraphQL-cpp | 42c35c97f239cc066455a11b37249697dcaed130 | [
"MIT"
] | null | null | null | port/GraphQLParser/GraphQLParser/AST/GraphQLName.cpp | d0si/GraphQL-cpp | 42c35c97f239cc066455a11b37249697dcaed130 | [
"MIT"
] | null | null | null | port/GraphQLParser/GraphQLParser/AST/GraphQLName.cpp | d0si/GraphQL-cpp | 42c35c97f239cc066455a11b37249697dcaed130 | [
"MIT"
] | null | null | null | #include <GraphQLParser/AST/GraphQLName.h>
namespace GraphQLParser {
namespace AST {
GraphQLName::GraphQLName() : ASTNode(ASTNodeKind::Name) {
}
GraphQLName::GraphQLName(std::string value) : ASTNode(ASTNodeKind::Name), Value(value) {
}
}
}
| 18.142857 | 90 | 0.712598 | d0si |
d5a21ec1c267d3fc7a9a0f2b1e9e4c290299020c | 3,758 | cpp | C++ | Graphs/Tarjan's SCC.cpp | Rand0mUsername/Algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | 2 | 2017-02-09T23:36:59.000Z | 2017-12-13T22:47:17.000Z | Graphs/Tarjan's SCC.cpp | Rand0mUsername/algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | null | null | null | Graphs/Tarjan's SCC.cpp | Rand0mUsername/algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | 1 | 2022-01-11T03:14:48.000Z | 2022-01-11T03:14:48.000Z | // RandomUsername (Nikola Jovanovic)
// Tarjan's algorithm for finding strongly connected
// components in a directed graph
// O(V + E) - one DFS
#include <bits/stdc++.h>
#define DBG false
#define debug(x) if(DBG) printf("(ln %d) %s = %d\n", __LINE__, #x, x);
#define lld long long
#define ff(i,a,b) for(int i=a; i<=b; ... | 22.236686 | 88 | 0.47951 | Rand0mUsername |
d5ac76baaa80373a0da7b1cba6fa123f22df3000 | 2,999 | hxx | C++ | Legolas/Algorithm/PowerAlgorithm.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | null | null | null | Legolas/Algorithm/PowerAlgorithm.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | null | null | null | Legolas/Algorithm/PowerAlgorithm.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | 1 | 2021-02-11T14:43:25.000Z | 2021-02-11T14:43:25.000Z | #ifndef __LEGOLAS_POWERALGORITHM_HXX__
#define __LEGOLAS_POWERALGORITHM_HXX__
// New Power Algorithm : This algorithm solves the Generalized Eigenvalue Problem
// find the biggest in modulus lambda such as : Ax=(1/lambda)Bx.
// It works whatever the sign of its value.
//
#include "Legolas/Algorithm... | 26.539823 | 141 | 0.586195 | LaurentPlagne |
d5ae026b1c72bc3684d565b5bdfc50907bf0f769 | 1,993 | cpp | C++ | src/traversal_algorithm.cpp | Algorithms-and-Data-Structures-2021/L04_data_structures_trees | cb8e2cab27a7a5c89696d5cde045f8c2f75c6547 | [
"MIT"
] | null | null | null | src/traversal_algorithm.cpp | Algorithms-and-Data-Structures-2021/L04_data_structures_trees | cb8e2cab27a7a5c89696d5cde045f8c2f75c6547 | [
"MIT"
] | null | null | null | src/traversal_algorithm.cpp | Algorithms-and-Data-Structures-2021/L04_data_structures_trees | cb8e2cab27a7a5c89696d5cde045f8c2f75c6547 | [
"MIT"
] | 9 | 2021-04-14T05:34:04.000Z | 2021-04-14T09:08:13.000Z | #include "traversal_algorithm.hpp"
#include <queue>
#include <stack>
namespace itis {
// инфиксный обход - L(left) N(node) R(right)
void InOrderTraversalAlgorithm::Print(std::ostream &os, Node *node) const {
if (node != nullptr) {
Print(os, node->left);
os << node->key << '\t';
Print(os, no... | 24.304878 | 82 | 0.587556 | Algorithms-and-Data-Structures-2021 |
d5b53b3a1de1fe3da98b02ccee0161984b0d01f3 | 2,758 | cpp | C++ | src/modules/test/InvalidSchemaModule/InvalidSchemaModule.cpp | simonjaeger/azure-osconfig | 95af26e222b3ed972e1669bc21b20306ed530962 | [
"MIT"
] | null | null | null | src/modules/test/InvalidSchemaModule/InvalidSchemaModule.cpp | simonjaeger/azure-osconfig | 95af26e222b3ed972e1669bc21b20306ed530962 | [
"MIT"
] | null | null | null | src/modules/test/InvalidSchemaModule/InvalidSchemaModule.cpp | simonjaeger/azure-osconfig | 95af26e222b3ed972e1669bc21b20306ed530962 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <cstring>
#include <errno.h>
#include <memory>
#include <CommonUtils.h>
#include <Mmi.h>
#include <map>
class TestsModuleInternal{};
// Mapping clientName <-> TestsModuleInternal
std::map<std::string, std::weak_pt... | 23.176471 | 90 | 0.658086 | simonjaeger |
d5b77ec393a16215f09c78b3cd03d4faf987e4b9 | 10,943 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/texts/src/LanguageDnk.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/texts/src/LanguageDnk.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/texts/src/LanguageDnk.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | #include <stdint.h>
#include <touchgfx/Unicode.hpp>
#ifndef NO_USING_NAMESPACE_TOUCHGFX
using namespace touchgfx;
#endif
extern const touchgfx::Unicode::UnicodeChar T_2048_score_delta_Ukr[];
extern const touchgfx::Unicode::UnicodeChar T_Three_Way_Progress_bar_status_Ukr[];
extern const touchgfx::Unicode::UnicodeChar ... | 125.781609 | 3,113 | 0.737366 | ramkumarkoppu |
d5b860464842e08f8ad2df500de348c9a0ad306c | 14,321 | cpp | C++ | src/RTL/Component/Rendering/CIFXRenderDevice.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 44 | 2016-05-06T00:47:11.000Z | 2022-02-11T06:51:37.000Z | src/RTL/Component/Rendering/CIFXRenderDevice.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 3 | 2016-06-27T12:37:31.000Z | 2021-03-24T12:39:48.000Z | src/RTL/Component/Rendering/CIFXRenderDevice.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 15 | 2016-02-28T11:08:30.000Z | 2021-06-01T03:32:01.000Z | //***************************************************************************
//
// Copyright (c) 2001 - 2006 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 26.08561 | 113 | 0.725717 | alemuntoni |
d5bb37d9a8b59f19a198f389066d11ff261cadd1 | 525 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/game/ui/GameSystemUI.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | include/RED4ext/Scripting/Natives/Generated/game/ui/GameSystemUI.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | include/RED4ext/Scripting/Natives/Generated/game/ui/GameSystemUI.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/ui/IGameSystemUI.hpp>
namespace RED4ext
{
namespace game::ui {
struct GameSystemUI : game::ui::IGameSystemUI
{
static constexpr const char* N... | 23.863636 | 72 | 0.739048 | WSSDude420 |
d5bdab715a90a9551091a384962f574bb755a1d0 | 748 | hpp | C++ | include/header.hpp | JakubKivi/ARA_2.0 | afdf7b2f4bfc66566961bf9896b810b2f59147be | [
"MIT"
] | null | null | null | include/header.hpp | JakubKivi/ARA_2.0 | afdf7b2f4bfc66566961bf9896b810b2f59147be | [
"MIT"
] | 1 | 2020-11-30T17:12:35.000Z | 2021-06-07T14:37:26.000Z | include/header.hpp | JakubKivi/ARA_2.0 | afdf7b2f4bfc66566961bf9896b810b2f59147be | [
"MIT"
] | null | null | null | #include <math.h>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include "consts.hpp"
#include "../src/visual/functions.h"
#include "pole.hpp"
#include "startingVars.hpp"
#include "settings.hpp"
#include "../src/visual/textures.h"
#... | 26.714286 | 45 | 0.719251 | JakubKivi |
d5bf2d848f7b43b21f43ae6be19440f4911c04f9 | 4,330 | cpp | C++ | src/main/mcuf/util/VectorBlockPool.cpp | ZxyKira/mcuf | 7ebe46921abfeb41906577b42e112e2dd1182544 | [
"MIT"
] | null | null | null | src/main/mcuf/util/VectorBlockPool.cpp | ZxyKira/mcuf | 7ebe46921abfeb41906577b42e112e2dd1182544 | [
"MIT"
] | null | null | null | src/main/mcuf/util/VectorBlockPool.cpp | ZxyKira/mcuf | 7ebe46921abfeb41906577b42e112e2dd1182544 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2020 ZxyKira
* All rights reserved.
*
* SPDX-License-Identifier: MIT
*/
/* ****************************************************************************************
* Include
*/
#include "mcuf.h"
/* ****************************************************************************************
... | 21.22549 | 102 | 0.47321 | ZxyKira |
d5c9d9431cd7aaae88d1fba148688f7ce7ae0e1a | 479 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/game/AmmoData.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | include/RED4ext/Scripting/Natives/Generated/game/AmmoData.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | include/RED4ext/Scripting/Natives/Generated/game/AmmoData.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/NativeTypes.hpp>
namespace RED4ext
{
namespace game {
struct AmmoData
{
static constexpr const char* NAME = "gameAmmoData";
static constexpr const char* ALIAS = NAME;
... | 19.958333 | 57 | 0.7119 | WSSDude420 |
d5cb9f34295cb1fc37ad66b0d5c2dce3458530b9 | 4,561 | cpp | C++ | tgfx/src/gpu/opengl/webgl/WEBGLDevice.cpp | DSPerson/libpag | 83d243e4914d688eaf6926128563cbfced6302b8 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | 1 | 2022-01-14T06:12:40.000Z | 2022-01-14T06:12:40.000Z | tgfx/src/gpu/opengl/webgl/WEBGLDevice.cpp | skymhzhang/libpag | e3d23ee1e84d98c410a48e25a01c52417c74d0f1 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | null | null | null | tgfx/src/gpu/opengl/webgl/WEBGLDevice.cpp | skymhzhang/libpag | e3d23ee1e84d98c410a48e25a01c52417c74d0f1 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... | 33.785185 | 97 | 0.697654 | DSPerson |
d5cc88ce84a6da95913469df352c54c1638f9816 | 1,898 | cpp | C++ | samples/multi_threaded_bar.cpp | wolfv/indicators | fd21e7d81f28e258e320a7e29c0ff65fc3994c43 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | samples/multi_threaded_bar.cpp | wolfv/indicators | fd21e7d81f28e258e320a7e29c0ff65fc3994c43 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | samples/multi_threaded_bar.cpp | wolfv/indicators | fd21e7d81f28e258e320a7e29c0ff65fc3994c43 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | #include <indicators/progress_bar.hpp>
#include <vector>
int main() {
indicators::ProgressBar bar{
indicators::option::BarWidth{50},
indicators::option::Start{"["},
indicators::option::Fill{"■"},
indicators::option::Lead{"■"},
indicators::option::Remainder{"-"},
indicators::optio... | 30.612903 | 95 | 0.501581 | wolfv |
d5d0824fb7b07b6e94aa66f74c7aad7bbae38a9c | 1,131 | cpp | C++ | 028_Implement_strStr()/Implement_strStr().cpp | Rookie39/Algorithms_Leetcode | 433d1360a91774df21b283e8d5d1a4a6c2a8c63d | [
"Apache-2.0"
] | null | null | null | 028_Implement_strStr()/Implement_strStr().cpp | Rookie39/Algorithms_Leetcode | 433d1360a91774df21b283e8d5d1a4a6c2a8c63d | [
"Apache-2.0"
] | null | null | null | 028_Implement_strStr()/Implement_strStr().cpp | Rookie39/Algorithms_Leetcode | 433d1360a91774df21b283e8d5d1a4a6c2a8c63d | [
"Apache-2.0"
] | null | null | null | /**
* Author: Rookie118
* Title: Implement_strStr()
* Completion time: 2018-09-07
*/
class Solution {
public:
int *getNext(string needle) {
int *next = new int[needle.length()];
next[0] = -1;
int k = -1, p = 0;
while (p < needle.length() - 1)
{
if (k == -... | 18.540984 | 90 | 0.409372 | Rookie39 |
d5d52d00856784ebb74ca59ff495c0789486cf05 | 2,472 | cpp | C++ | src/raft/archieved.cpp | ybbhwxfj/block-db | 2482ff6631184ecbc6329db97a2c0f8e19a6711f | [
"Apache-2.0"
] | null | null | null | src/raft/archieved.cpp | ybbhwxfj/block-db | 2482ff6631184ecbc6329db97a2c0f8e19a6711f | [
"Apache-2.0"
] | null | null | null | src/raft/archieved.cpp | ybbhwxfj/block-db | 2482ff6631184ecbc6329db97a2c0f8e19a6711f | [
"Apache-2.0"
] | 1 | 2021-12-28T02:25:34.000Z | 2021-12-28T02:25:34.000Z | #include "raft/archieved.h"
#include <boost/filesystem.hpp>
#include "common/make_int.h"
static const uint64_t CNO_KEY = 1;
static const uint64_t CONFIG_KEY = 2;
void archieved::start() {
tkrzw::HashDBM::TuningParameters tuning_params;
dbm_ = new tkrzw::HashDBM();
dbm_->OpenAdvanced("alog.tkh", true, tkrzw::Fil... | 27.164835 | 81 | 0.69822 | ybbhwxfj |
d5dcb8748d5649a2f5214d568a8053e01e7c05ed | 780 | cpp | C++ | Source/Context.cpp | RichierichorgYoutube/Team-20 | 355d11756bba6ff49a1cdb1fce11225c83281eaa | [
"Apache-2.0"
] | null | null | null | Source/Context.cpp | RichierichorgYoutube/Team-20 | 355d11756bba6ff49a1cdb1fce11225c83281eaa | [
"Apache-2.0"
] | null | null | null | Source/Context.cpp | RichierichorgYoutube/Team-20 | 355d11756bba6ff49a1cdb1fce11225c83281eaa | [
"Apache-2.0"
] | null | null | null | #include "Context.h"
#include <GL/glew.h>
Context::Context(const Config& config)
{
sf::ContextSettings settings;
settings.antialiasingLevel = 0;
settings.majorVersion = 3;
settings.minorVersion = 3;
settings.depthBits = 24;
settings.stencilBits = 8;
if(config.isFullscreen)
{
w... | 25.16129 | 106 | 0.666667 | RichierichorgYoutube |
d5dce86a04e4c78f45ac4c6ef86273629141a96f | 3,564 | cpp | C++ | src/xercesc/internal/BinFileOutputStream.cpp | rherardi/xerces-c-src_2_7_0 | a23711292bba70519940d7e6aeb07100319b607c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/xercesc/internal/BinFileOutputStream.cpp | rherardi/xerces-c-src_2_7_0 | a23711292bba70519940d7e6aeb07100319b607c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/xercesc/internal/BinFileOutputStream.cpp | rherardi/xerces-c-src_2_7_0 | a23711292bba70519940d7e6aeb07100319b607c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2003,2004 The Apache Software 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 re... | 34.941176 | 84 | 0.542929 | rherardi |
d5e5fd7fd8921cf50e1d7a85c713b4a1dabb6649 | 1,045 | cpp | C++ | sauce/core/collections/iterators/abstractions/strange__bidirectional_extractor_a.cpp | oneish/strange | e6c47eca5738dd98f4e09ee5c0bb820146e8b48f | [
"Apache-2.0"
] | null | null | null | sauce/core/collections/iterators/abstractions/strange__bidirectional_extractor_a.cpp | oneish/strange | e6c47eca5738dd98f4e09ee5c0bb820146e8b48f | [
"Apache-2.0"
] | null | null | null | sauce/core/collections/iterators/abstractions/strange__bidirectional_extractor_a.cpp | oneish/strange | e6c47eca5738dd98f4e09ee5c0bb820146e8b48f | [
"Apache-2.0"
] | null | null | null | #include "../../../strange__core.h"
namespace strange
{
template <typename element_d>
var<symbol_a> bidirectional_extractor_a<element_d>::cat(con<> const& me)
{
static auto r = sym("<strange::bidirectional_extractor>"); //TODO cat
return r;
}
template <typename element_d>
typename bidirectional_extractor_a<... | 27.5 | 132 | 0.743541 | oneish |
d5e641dc0a23d40b7d0d065b9855f4c1ab4bb9c2 | 3,527 | cc | C++ | audio/linear_filters/biquad_filter_test_tools.cc | foolish-hungry-b/test | 5276d8169f398da068e5694eaf571c1cb1e25e06 | [
"Apache-2.0"
] | 58 | 2018-01-20T14:27:07.000Z | 2022-01-26T03:09:02.000Z | audio/linear_filters/biquad_filter_test_tools.cc | chetgnegy/multichannel-audio-tools | b113f27dcc7a9614c578987ce7e3a8490a172267 | [
"Apache-2.0"
] | 1 | 2020-10-02T17:18:10.000Z | 2020-10-02T17:23:00.000Z | audio/linear_filters/biquad_filter_test_tools.cc | chetgnegy/multichannel-audio-tools | b113f27dcc7a9614c578987ce7e3a8490a172267 | [
"Apache-2.0"
] | 30 | 2018-02-28T16:13:07.000Z | 2022-03-31T00:38:54.000Z | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 33.273585 | 80 | 0.686986 | foolish-hungry-b |
d5e9764f9812442a7469c76e8d61e8afdfebc9eb | 351 | cxx | C++ | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CMakeLib/testXMLParser.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 2 | 2020-03-05T06:39:03.000Z | 2020-03-31T12:08:04.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CMakeLib/testXMLParser.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 3 | 2021-09-08T02:18:00.000Z | 2022-03-12T00:39:44.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CMakeLib/testXMLParser.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 1 | 2021-09-07T07:20:33.000Z | 2021-09-07T07:20:33.000Z | #include "testXMLParser.h"
#include "cmXMLParser.h"
#include <iostream>
int testXMLParser(int /*unused*/, char* /*unused*/ [])
{
// TODO: Derive from parser and check attributes.
cmXMLParser parser;
if (!parser.ParseFile(SOURCE_DIR "/testXMLParser.xml")) {
std::cerr << "cmXMLParser failed!" << std::endl;
... | 20.647059 | 59 | 0.663818 | duonglvtnaist |
d5eda64accef3232199968cc44a7ab3cf0ffe9db | 12,746 | cpp | C++ | kernel/Devices/ata/task.cpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | 4 | 2020-08-18T00:11:09.000Z | 2021-04-05T11:16:32.000Z | kernel/Devices/ata/task.cpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | 1 | 2020-08-15T20:39:13.000Z | 2020-08-15T20:39:13.000Z | kernel/Devices/ata/task.cpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | null | null | null | #define DEBUGME
#undef DEBUGME
#include <Exec/ExecBase.hpp>
#include "task.hpp"
extern "C" TUint8 bochs_present;
inline static void wait_io() {
outb(0x80, 0x70);
}
static void delay() {
for (TInt i = 0; i < 100; i++) {
outb(0x80, 0x00); // 1 microsecond
// wait_io();
};
}
AtaTask::AtaTask(AtaDevice *aD... | 30.861985 | 113 | 0.597678 | mschwartz |
d5ee0604c75b732e4fd7746204fea7aefad54557 | 304 | cpp | C++ | src/windowevent_dummy.cpp | trazfr/alarm | ea511eb0f16945de2005d828f452c76fce9d77e7 | [
"MIT"
] | null | null | null | src/windowevent_dummy.cpp | trazfr/alarm | ea511eb0f16945de2005d828f452c76fce9d77e7 | [
"MIT"
] | null | null | null | src/windowevent_dummy.cpp | trazfr/alarm | ea511eb0f16945de2005d828f452c76fce9d77e7 | [
"MIT"
] | null | null | null | #include "windowevent_dummy.hpp"
#include "event.hpp"
#include <ostream>
WindowEventDummy::~WindowEventDummy() = default;
std::optional<Event> WindowEventDummy::popEvent()
{
return {};
}
std::ostream &WindowEventDummy::toStream(std::ostream &str) const
{
return str << "WindowEventDummy";
}
| 16.888889 | 65 | 0.717105 | trazfr |
d5f0abb60a399b137674173900b437f581900854 | 493 | hpp | C++ | src/project/ih/prj_project_accessor.hpp | lpea/cppinclude | dc126c6057d2fe30569e6e86f66d2c8eebb50212 | [
"MIT"
] | 177 | 2020-08-24T19:20:35.000Z | 2022-03-27T01:58:04.000Z | src/project/ih/prj_project_accessor.hpp | lpea/cppinclude | dc126c6057d2fe30569e6e86f66d2c8eebb50212 | [
"MIT"
] | 15 | 2020-08-30T17:59:42.000Z | 2022-01-12T11:14:10.000Z | src/project/ih/prj_project_accessor.hpp | lpea/cppinclude | dc126c6057d2fe30569e6e86f66d2c8eebb50212 | [
"MIT"
] | 11 | 2020-09-17T23:31:10.000Z | 2022-03-04T13:15:21.000Z | #pragma once
#include <stdfwd/memory>
//------------------------------------------------------------------------------
namespace project
{
class Project;
//------------------------------------------------------------------------------
class ProjectAccessor
{
public:
virtual ~ProjectAccessor() = default;
using P... | 18.961538 | 80 | 0.36714 | lpea |
d5f2e3715512e35753587b6ba86fbaa9c9e9b9ea | 5,456 | cpp | C++ | lib/WSNClient/WSNClient.cpp | w01f6/esp8266-wsn-protocol | 30e9f6420537f41edd6f92badddc3e0b89d000a3 | [
"MIT"
] | null | null | null | lib/WSNClient/WSNClient.cpp | w01f6/esp8266-wsn-protocol | 30e9f6420537f41edd6f92badddc3e0b89d000a3 | [
"MIT"
] | null | null | null | lib/WSNClient/WSNClient.cpp | w01f6/esp8266-wsn-protocol | 30e9f6420537f41edd6f92badddc3e0b89d000a3 | [
"MIT"
] | null | null | null | #include "WSNClient.h"
WSNClient::WSNClient()
{
}
WSNClient::WSNClient(char host[], int port, int nodeID)
{
String h(host);
WSNClient(h, port, nodeID);
}
WSNClient::WSNClient(String host, int port, int nodeID)
{
this->setHost(host);
this->setPortNumber(port);
this->setNodeID(nodeID);
}
WSNClient::WSNClient(S... | 18.813793 | 110 | 0.667889 | w01f6 |
d5f4408d1a77f5d97b870e6934219f490c4c5112 | 961 | hpp | C++ | tools/common/symbols_serialization.hpp | makaleks/cxxplug | 7bec529fed7b685d255ea568cd16b900376a0efc | [
"MIT"
] | 1 | 2022-02-05T07:32:16.000Z | 2022-02-05T07:32:16.000Z | tools/common/symbols_serialization.hpp | makaleks/cxxplug | 7bec529fed7b685d255ea568cd16b900376a0efc | [
"MIT"
] | null | null | null | tools/common/symbols_serialization.hpp | makaleks/cxxplug | 7bec529fed7b685d255ea568cd16b900376a0efc | [
"MIT"
] | null | null | null | #ifndef SYMBOLS_SERIALIZATION_HPP_INCLUDED
#define SYMBOLS_SERIALIZATION_HPP_INCLUDED 0
#include <list>
#include <span>
#include <string>
#include <string_view>
#include <algorithm>
template <class It>
std::string serialize_symbols(It symbols_begin, It symbols_end) {
std::string result;
while (symbols_begin ... | 22.880952 | 65 | 0.649324 | makaleks |
d5f8d4d44343415e87cf61a3c307535f89a364e9 | 36,618 | cpp | C++ | wpd/WpdServiceSampleDriver/FakeDevice.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 3,084 | 2015-03-18T04:40:32.000Z | 2019-05-06T17:14:33.000Z | wpd/WpdServiceSampleDriver/FakeDevice.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 275 | 2015-03-19T18:44:41.000Z | 2019-05-06T14:13:26.000Z | wpd/WpdServiceSampleDriver/FakeDevice.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 3,091 | 2015-03-19T00:08:54.000Z | 2019-05-06T16:42:01.000Z | #include "stdafx.h"
#include "FakeDevice.tmh"
const PROPERTYKEY* g_SupportedCommands[] =
{
// WPD_CATEGORY_OBJECT_ENUMERATION
&WPD_COMMAND_OBJECT_ENUMERATION_START_FIND,
&WPD_COMMAND_OBJECT_ENUMERATION_FIND_NEXT,
&WPD_COMMAND_OBJECT_ENUMERATION_END_FIND,
// WPD_CATEGORY_OBJECT_PROPERTI... | 32.607302 | 148 | 0.601644 | ixjf |
d5fa9f7570f5bac3131ed3d788b1652adc12993a | 6,546 | cpp | C++ | src/vidhrdw/wiz.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 8 | 2020-05-01T15:15:16.000Z | 2021-05-30T18:49:15.000Z | src/vidhrdw/wiz.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | null | null | null | src/vidhrdw/wiz.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 5 | 2020-05-07T18:38:11.000Z | 2021-08-03T12:57:41.000Z | /***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
static struct rectangle spritevisiblearea... | 23.130742 | 114 | 0.60831 | gameblabla |
51076b034936c5ea9a68c638c1efaf8b8c060b48 | 1,992 | cpp | C++ | GchTool/CheckInclude.cpp | wangxiaobai-dd/Compilation | ffc61fa64ba2843eef6abe69832d5e9c48607c7b | [
"Apache-2.0"
] | 9 | 2021-02-14T10:48:10.000Z | 2022-03-03T04:21:04.000Z | GchTool/CheckInclude.cpp | wangxiaobai-dd/Compilation | ffc61fa64ba2843eef6abe69832d5e9c48607c7b | [
"Apache-2.0"
] | null | null | null | GchTool/CheckInclude.cpp | wangxiaobai-dd/Compilation | ffc61fa64ba2843eef6abe69832d5e9c48607c7b | [
"Apache-2.0"
] | 2 | 2021-02-22T03:47:17.000Z | 2021-08-01T15:55:13.000Z |
/*
* 分析目录下cpp包含.h 包含频率
* analyseInc.txt 供 ReplaceGCH.sh 使用
* analyseInc2.txt 便于我们查看头文件包含频率
*
* 使用方法: ./CheckInclude YourDir
*/
#include <iostream>
#include <fstream>
#include <set>
#include <vector>
#include <cstdlib>
#include <string.h>
#include <map>
#include <algorithm>
int main(int argc, char* argv[])
{
... | 22.636364 | 115 | 0.603916 | wangxiaobai-dd |
5108ef4d098e34d2aa4f29b3ba6a3741568f826f | 20,749 | cpp | C++ | src/cpp3ds/Graphics/Texture.cpp | cpp3ds/cpp3ds | 7813714776e2134bd75b9f3869ed142c1d4eeaaf | [
"MIT"
] | 98 | 2015-08-26T16:49:29.000Z | 2022-03-03T10:15:43.000Z | src/cpp3ds/Graphics/Texture.cpp | Naxann/cpp3ds | 1932e798306ec6d910c6a5b9e85e9d8f02fb815f | [
"MIT"
] | 10 | 2016-02-26T21:30:51.000Z | 2020-07-12T20:48:09.000Z | src/cpp3ds/Graphics/Texture.cpp | Naxann/cpp3ds | 1932e798306ec6d910c6a5b9e85e9d8f02fb815f | [
"MIT"
] | 15 | 2015-10-16T06:22:37.000Z | 2020-10-01T08:52:48.000Z | ////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2014 Laurent Gomila (laurent.gom@gmail.com)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages ... | 28.858136 | 140 | 0.545231 | cpp3ds |
510b7d6e12eecd6c2ec31caf1bfbd197c548c8d3 | 864 | cpp | C++ | kattis/cpp/bela/main.cpp | JoeyCluett/supreme-chainsaw | 99e24a7d0cedd9a6943db5a9e58f990b86a07fed | [
"Unlicense"
] | 1 | 2020-02-05T19:18:02.000Z | 2020-02-05T19:18:02.000Z | kattis/cpp/bela/main.cpp | JoeyCluett/supreme-chainsaw | 99e24a7d0cedd9a6943db5a9e58f990b86a07fed | [
"Unlicense"
] | null | null | null | kattis/cpp/bela/main.cpp | JoeyCluett/supreme-chainsaw | 99e24a7d0cedd9a6943db5a9e58f990b86a07fed | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <map>
using namespace std;
int main(int argc,char*argv[]) {
map<char, int> dominant_pts {
{'A', 11}, {'K', 4}, {'Q', 3}, {'J', 20}, {'T', 10}, {'9', 14}, {'8', 0}, {'7', 0} };
map<char, int> nondominant_pts {
{'A', 11}, {'K', 4}, {'Q', 3}, {'J', 2}, {'T', 10}, {'9'... | 21.6 | 93 | 0.460648 | JoeyCluett |
511173a0b533d565295487ad5b6949e8fdd0f9a3 | 2,379 | cpp | C++ | itemslist.cpp | bizjust/bizjust-erp | d3291e212bf89ab6e753194127b3951afcd02548 | [
"MIT"
] | 1 | 2022-02-16T13:02:43.000Z | 2022-02-16T13:02:43.000Z | itemslist.cpp | bizjust/bizjust-erp | d3291e212bf89ab6e753194127b3951afcd02548 | [
"MIT"
] | null | null | null | itemslist.cpp | bizjust/bizjust-erp | d3291e212bf89ab6e753194127b3951afcd02548 | [
"MIT"
] | null | null | null | #include "itemslist.h"
#include "ui_itemslist.h"
ItemsList::ItemsList(QWidget *parent) :
QWidget(parent),
ui(new Ui::ItemsList)
{
ui->setupUi(this);
loadform();
}
ItemsList::~ItemsList()
{
delete ui;
}
void ItemsList::loadform()
{
ui->tableWidget->setColumnCount(7);
QStringList titles;
... | 44.886792 | 123 | 0.671711 | bizjust |
51122b833cde48fa2f2f4a39cea2920c337501cf | 1,342 | cpp | C++ | 25.machines and parts/25.cpp | teryokhin/bsu-famcs-algo-solutions | 69fe6b08f1836aa04c3bab85ab975593182aa0ea | [
"MIT"
] | null | null | null | 25.machines and parts/25.cpp | teryokhin/bsu-famcs-algo-solutions | 69fe6b08f1836aa04c3bab85ab975593182aa0ea | [
"MIT"
] | null | null | null | 25.machines and parts/25.cpp | teryokhin/bsu-famcs-algo-solutions | 69fe6b08f1836aa04c3bab85ab975593182aa0ea | [
"MIT"
] | null | null | null | #pragma comment(linker, "/STACK:268435456")
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <climits>
#include <vector>
#include <algorithm>
#include <ctime>
#include <queue>
#define INF 2000000011
typedef long long ll;
using namespace std;
int main()
{
#ifndef _DEBUG
... | 23.54386 | 61 | 0.5693 | teryokhin |
5113c2e7685abef707d7ecd76c4e7ed769d51df2 | 929 | cpp | C++ | with_cpp14/stl_algorithms/std_sort.cpp | MengqiYe/Test_Cpp_Standards | 3acf52bd4457be007534b2b481f01a3bdfda0813 | [
"MIT"
] | null | null | null | with_cpp14/stl_algorithms/std_sort.cpp | MengqiYe/Test_Cpp_Standards | 3acf52bd4457be007534b2b481f01a3bdfda0813 | [
"MIT"
] | null | null | null | with_cpp14/stl_algorithms/std_sort.cpp | MengqiYe/Test_Cpp_Standards | 3acf52bd4457be007534b2b481f01a3bdfda0813 | [
"MIT"
] | null | null | null | //
// Created by mqye on 2020/10/1.
//
#include "common.h"
bool myfunction(int i, int j) { return (i < j); }
struct myclass {
bool operator()(int i, int j) { return (i < j); }
} myobject;
int main() {
int myints[] = {32, 71, 12, 45, 26, 80, 53, 33};
std::vector<int> myvector(myints, myints + 8); ... | 29.03125 | 90 | 0.58127 | MengqiYe |
5113c57edde472e12f88baa5af4c6f91f8fe2490 | 18,851 | cpp | C++ | system/security/shared/basesecurity.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | system/security/shared/basesecurity.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | system/security/shared/basesecurity.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License... | 31.418333 | 188 | 0.587608 | oxhead |
511570acac3cfde11c37a264b8079671f81a5ec7 | 3,397 | hpp | C++ | SDK/ARKSurvivalEvolved_Dino_AIController_BP_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Dino_AIController_BP_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Dino_AIController_BP_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Dino_AIController_BP_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//----------------------------------------------------... | 61.763636 | 192 | 0.581101 | 2bite |
51157238275e698c26f6ed30707434594a4ac153 | 441 | hpp | C++ | src/renderer/util.hpp | ranjak/opengl-tutorial | fff192b9966c9e14d77b4becb9c205ea21a02069 | [
"MIT"
] | 2 | 2018-08-24T00:09:03.000Z | 2019-08-25T23:03:11.000Z | src/renderer/util.hpp | ranjak/opengl-tutorial | fff192b9966c9e14d77b4becb9c205ea21a02069 | [
"MIT"
] | null | null | null | src/renderer/util.hpp | ranjak/opengl-tutorial | fff192b9966c9e14d77b4becb9c205ea21a02069 | [
"MIT"
] | 3 | 2016-12-02T17:22:14.000Z | 2018-05-08T11:34:56.000Z | #ifndef UTIL_HPP
#define UTIL_HPP
#include "log.hpp"
#include <glad/glad.h>
#include <string>
namespace ogl
{
std::string getErrorString(GLenum error);
bool checkError();
} // namespace ogl
#define OGL_CHECK_ERROR() \
do { GLenum error = glGetError(); \
if (error != GL_NO_ERROR) \
rlzLog(Log::ER... | 17.64 | 108 | 0.648526 | ranjak |
511601c9c2d951146b0122f02b9cfa8b6b8f6ff4 | 5,226 | cpp | C++ | Source/USemLog/Private/Utils/SLUuid.cpp | xxjunxx/USemLog | 1270e97d5fc518c042b2922e3883ad5b228d1f8e | [
"BSD-3-Clause"
] | null | null | null | Source/USemLog/Private/Utils/SLUuid.cpp | xxjunxx/USemLog | 1270e97d5fc518c042b2922e3883ad5b228d1f8e | [
"BSD-3-Clause"
] | null | null | null | Source/USemLog/Private/Utils/SLUuid.cpp | xxjunxx/USemLog | 1270e97d5fc518c042b2922e3883ad5b228d1f8e | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017-2020, Institute for Artificial Intelligence - University of Bremen
// Author: Andrei Haidu (http://haidu.eu)
#include "Utils/SLUuid.h"
#include "Misc/Guid.h"
#include "Misc/Base64.h"
#include "Serialization/MemoryReader.h"
#include "Serialization/BufferArchive.h"
/* Encodings */
// Creates a new GUI... | 29.525424 | 149 | 0.693838 | xxjunxx |
511c6c5fe853888365c65de88f6cadb7da424189 | 258 | cpp | C++ | tests/RangeForStmtHandler2Test.cpp | galorojo/cppinsights | 52ecab4ddd8e36fb99893551cf0fb8b5d58589f2 | [
"MIT"
] | 1,853 | 2018-05-13T21:49:17.000Z | 2022-03-30T10:34:45.000Z | tests/RangeForStmtHandler2Test.cpp | galorojo/cppinsights | 52ecab4ddd8e36fb99893551cf0fb8b5d58589f2 | [
"MIT"
] | 398 | 2018-05-15T14:48:51.000Z | 2022-03-24T12:14:33.000Z | tests/RangeForStmtHandler2Test.cpp | galorojo/cppinsights | 52ecab4ddd8e36fb99893551cf0fb8b5d58589f2 | [
"MIT"
] | 104 | 2018-05-15T04:00:59.000Z | 2022-03-17T02:04:15.000Z | // empty range base for loops
#include <cstdio>
#include <vector>
int main()
{
char arr[10]{2,4,6,8,10,12,14,16,18,20};
for(char c : arr)
;
std::vector<int> v{1, 2, 3, 5};
for(auto& vv : v)
;
for(auto& vv : v);
}
| 12.9 | 44 | 0.496124 | galorojo |
5123eb10d260a39a8e61d54433514139d33b5cad | 133 | cpp | C++ | jsonrpc/thirdparty/mapbox/variant/test/compilation_failure/get_type.cpp | cybosser/jsonrpc | a51b61c3f731dcc40765506940497d6f5079dfe6 | [
"MIT"
] | 1 | 2017-04-15T22:58:23.000Z | 2017-04-15T22:58:23.000Z | jsonrpc/thirdparty/mapbox/variant/test/compilation_failure/get_type.cpp | cybosser/jsonrpc | a51b61c3f731dcc40765506940497d6f5079dfe6 | [
"MIT"
] | 1 | 2019-11-21T09:59:27.000Z | 2019-11-21T09:59:27.000Z | jsonrpc/thirdparty/mapbox/variant/test/compilation_failure/get_type.cpp | cybosser/jsonrpc | a51b61c3f731dcc40765506940497d6f5079dfe6 | [
"MIT"
] | 1 | 2020-11-19T08:51:11.000Z | 2020-11-19T08:51:11.000Z |
// @EXPECTED: enable_if
#include <variant.hpp>
int main()
{
mapbox::util::variant<int, double> x;
x.get<std::string>();
}
| 12.090909 | 41 | 0.609023 | cybosser |
5127d4eaf294b3fe89f22ff8142ee2810d666f60 | 65 | hpp | C++ | src/boost_spirit_repository_home_qi_operator_keywords.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_repository_home_qi_operator_keywords.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_repository_home_qi_operator_keywords.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/repository/home/qi/operator/keywords.hpp>
| 32.5 | 64 | 0.815385 | miathedev |
512b74b5bffaec84ca3ee6fa9a9a8b0eb5196471 | 3,257 | cpp | C++ | fallen/Editor/Source/scan.cpp | jordandavidson/MuckyFoot-UrbanChaos | 00f7bda3f061bff9ecbb611d430f8f71bd557d14 | [
"MIT"
] | 188 | 2017-05-20T03:26:33.000Z | 2022-03-10T16:58:39.000Z | fallen/Editor/Source/scan.cpp | jordandavidson/MuckyFoot-UrbanChaos | 00f7bda3f061bff9ecbb611d430f8f71bd557d14 | [
"MIT"
] | 7 | 2017-05-28T14:28:13.000Z | 2022-01-09T01:47:38.000Z | fallen/Editor/Source/scan.cpp | inco1/MuckyFoot-UrbanChaos | 81aa5cfe18ef7fe2d1b1f9911bd33a47c22d5390 | [
"MIT"
] | 43 | 2017-05-20T07:31:32.000Z | 2022-03-09T18:39:35.000Z |
#include "Editor.hpp"
#include "c:\fallen\headers\memory.h"
void (*scan_function)(SLONG face,SLONG x,SLONG y,SLONG z,SLONG extra);
extern SWORD SelectFlag; //edit.h
void scan_a_prim_at(UWORD prim,SLONG x,SLONG y,SLONG z)
{
SLONG c0;
struct PrimObject *p_obj;
p_obj = &prim_objects[prim];
if(p_obj->EndFace... | 18.505682 | 95 | 0.699724 | jordandavidson |
512ba40bec31ef90e00c0f4d1bdbcf74f88466f0 | 3,032 | cc | C++ | leetcode/ds_trie_add_search_word.cc | prashrock/C- | 3ed46815d40b3e42cd9f36d23c8ee2a9de742323 | [
"MIT"
] | 1 | 2016-12-05T10:42:46.000Z | 2016-12-05T10:42:46.000Z | leetcode/ds_trie_add_search_word.cc | prashrock/CPP | 3ed46815d40b3e42cd9f36d23c8ee2a9de742323 | [
"MIT"
] | null | null | null | leetcode/ds_trie_add_search_word.cc | prashrock/CPP | 3ed46815d40b3e42cd9f36d23c8ee2a9de742323 | [
"MIT"
] | null | null | null | //g++-5 --std=c++11 -Wall -g -o ds_trie_add_search_word ds_trie_add_search_word.cc
/**
* @file Add/Search word Data Structure
* @brief DS to add and search words
*/
// https://leetcode.com/problems/add-and-search-word-data-structure-design/
#include <iostream> /* std::cout */
#include... | 31.583333 | 291 | 0.573549 | prashrock |
512fffe40480edec046b62d0286769c8ba88a7b5 | 1,048 | cpp | C++ | Library/Standard/Relators/BinaryRelator.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | Library/Standard/Relators/BinaryRelator.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | Library/Standard/Relators/BinaryRelator.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | #include "PlatoIncludes.h"
#include "Strings.h"
#include "Numbers.h"
#include "ClassTypeInfo.h"
#include "PropertyScopes.h"
#include "PropertyModes.h"
#include "Identifier.h"
#include "IdentifierRegex.h"
#include "Property.h"
#include "Point.h"
#include "Relator.h"
#include "ProximityRelator.h"
#include "BinaryRelator.... | 27.578947 | 115 | 0.70229 | dwhobrey |
5133d7d901273a823ebf68f3ab1edd2a23b281ab | 3,773 | hpp | C++ | tests/algorithm/tridiag_tests.hpp | xyuan/EKAT | 388fc1e37139e28074ca0d90bc3d09b3d3a12c13 | [
"BSL-1.0"
] | 5 | 2020-09-16T09:00:13.000Z | 2022-02-12T10:16:04.000Z | tests/algorithm/tridiag_tests.hpp | xyuan/EKAT | 388fc1e37139e28074ca0d90bc3d09b3d3a12c13 | [
"BSL-1.0"
] | 202 | 2020-08-07T16:53:37.000Z | 2022-03-30T23:32:56.000Z | tests/algorithm/tridiag_tests.hpp | xyuan/EKAT | 388fc1e37139e28074ca0d90bc3d09b3d3a12c13 | [
"BSL-1.0"
] | 4 | 2021-06-02T06:32:16.000Z | 2022-03-30T20:32:41.000Z | #ifndef EKAT_TRIDIAG_TESTS_HPP
#define EKAT_TRIDIAG_TESTS_HPP
#include "ekat/util/ekat_tridiag.hpp"
#include "ekat/util/ekat_arch.hpp"
#include "ekat/ekat_pack.hpp"
#include "ekat/ekat_pack_kokkos.hpp"
#include "ekat_test_config.h"
namespace ekat {
namespace test {
template <typename TridiagDiag>
KOKKOS_INLINE_FUNC... | 27.742647 | 85 | 0.55102 | xyuan |
51345de790438bc9f040cbbc7379855ce362d39f | 10,361 | cc | C++ | src/modular/bin/sessionmgr/agent_runner/agent_runner.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | src/modular/bin/sessionmgr/agent_runner/agent_runner.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | src/modular/bin/sessionmgr/agent_runner/agent_runner.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/modular/bin/sessionmgr/agent_runner/agent_runner.h"
#include <lib/async/cpp/task.h>
#include <lib/async/default.h>
#include <lib/fidl/epitap... | 38.232472 | 100 | 0.691825 | zarelaky |
51357de034f33f5a1c24bd7b3f5c0219ec94c9c8 | 270 | cpp | C++ | Old Code/SM64FM/C-/cppstdlib/substr/substr.cpp | sonich2401/SM64_Save_File_Converter | bd6876d66cbc3177b634540c7a2241e0ae8c759c | [
"MIT-0"
] | 6 | 2020-07-27T19:07:37.000Z | 2021-08-29T19:16:07.000Z | Old Code/SM64FM/C-/cppstdlib/substr/substr.cpp | sonich2401/SM64_Save_File_Converter | bd6876d66cbc3177b634540c7a2241e0ae8c759c | [
"MIT-0"
] | 2 | 2021-06-09T05:49:41.000Z | 2022-01-30T04:06:40.000Z | Old Code/SM64FM/C-/cppstdlib/substr/substr.cpp | sonich2401/SM64_Save_File_Converter | bd6876d66cbc3177b634540c7a2241e0ae8c759c | [
"MIT-0"
] | null | null | null | #include "substr.h"
#include <stdlib.h>
#include <string.h>
cstring substr(cstring src, uint16 start, uint16 end){
cstring ret = (cstring)malloc(end - start+ 1);
memcpy(ret, &src[start], end - start);
ret[end - start] = 0; //Null terminate
return ret;
} | 27 | 54 | 0.651852 | sonich2401 |
513cf3e5a87f1b36a27a2bd4ab3642041d5c4c9e | 1,172 | cpp | C++ | 2.5 Rekursif/deret.cpp | arryaaas/Programming-Algorithms | f469431830cbe528feb297abd47d2d6c08e0781a | [
"MIT"
] | null | null | null | 2.5 Rekursif/deret.cpp | arryaaas/Programming-Algorithms | f469431830cbe528feb297abd47d2d6c08e0781a | [
"MIT"
] | null | null | null | 2.5 Rekursif/deret.cpp | arryaaas/Programming-Algorithms | f469431830cbe528feb297abd47d2d6c08e0781a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void deret(int arr[], int n, int i) {
if (i == 0) {
arr[i] = 0;
deret(arr, n, i+1);
} else if (i == 1) {
arr[i] = 1;
deret(arr, n, i+1);
} else if (i == 2) {
arr[i] = 2;
deret(arr, n, i+1);
} else if (i == 3)... | 23.44 | 76 | 0.523038 | arryaaas |
513d482ce0268755b4bd6f134c2065bd5799aba7 | 8,418 | cpp | C++ | 20-iterators/readerEx.20.05/exp.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 81 | 2018-11-15T21:23:19.000Z | 2022-03-06T09:46:36.000Z | 20-iterators/readerEx.20.05/exp.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | null | null | null | 20-iterators/readerEx.20.05/exp.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 41 | 2018-11-15T21:23:24.000Z | 2022-02-24T03:02:26.000Z | //
// exp.cpp
//
// This file implements the exp.h interface.
//
// --------------------------------------------------------------------------
// Attribution: "Programming Abstractions in C++" by Eric Roberts
// Chapter 19, Exercise 07
// Stanford University, Autumn Quarter 2012
// http://web.stanford.edu/class/archive... | 25.743119 | 91 | 0.661202 | heavy3 |
513e397fb3471a5128772eb728b950a8dfd28492 | 25,902 | cpp | C++ | sdk/cpp/gnmi/src/gnmi_client.cpp | YDK-Solutions/ydk | 7ab961284cdc82de8828e53fa4870d3204d7730e | [
"ECL-2.0",
"Apache-2.0"
] | 125 | 2016-03-15T17:04:13.000Z | 2022-03-22T02:46:17.000Z | sdk/cpp/gnmi/src/gnmi_client.cpp | YDK-Solutions/ydk | 7ab961284cdc82de8828e53fa4870d3204d7730e | [
"ECL-2.0",
"Apache-2.0"
] | 818 | 2016-03-17T17:06:00.000Z | 2022-03-28T03:56:17.000Z | sdk/cpp/gnmi/src/gnmi_client.cpp | YDK-Solutions/ydk | 7ab961284cdc82de8828e53fa4870d3204d7730e | [
"ECL-2.0",
"Apache-2.0"
] | 93 | 2016-03-15T19:18:55.000Z | 2022-02-24T13:55:07.000Z | /// YANG Development Kit
// Copyright 2016 Cisco Systems. All rights reserved
//
////////////////////////////////////////////////////////////////
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional inf... | 34.72118 | 127 | 0.602926 | YDK-Solutions |
5145ea6f2dc2d0950e59ac4febcf81e50e4d4120 | 14,391 | cpp | C++ | Project3/src/ui/mainwindow.cpp | polferrando98/Qt-Project-3 | 747d9ce5c5c0f2ce5e7497978250636567136a80 | [
"MIT"
] | null | null | null | Project3/src/ui/mainwindow.cpp | polferrando98/Qt-Project-3 | 747d9ce5c5c0f2ce5e7497978250636567136a80 | [
"MIT"
] | null | null | null | Project3/src/ui/mainwindow.cpp | polferrando98/Qt-Project-3 | 747d9ce5c5c0f2ce5e7497978250636567136a80 | [
"MIT"
] | null | null | null | #include "ui/mainwindow.h"
#include "ui_mainwindow.h"
#include "ui/hierarchywidget.h"
#include "ui/resourceswidget.h"
#include "ui/inspectorwidget.h"
#include "ui/openglwidget.h"
#include "ui/aboutopengldialog.h"
#include "ui/miscsettingswidget.h"
#include "ecs/scene.h"
#include "resources/resourcemanager.h"
#include "... | 30.948387 | 125 | 0.70558 | polferrando98 |
51475395f4e29e20226dcb670aa8e9988102b90f | 4,912 | cpp | C++ | mocap4ros_drivers/vicon2_driver/test/test_vicon2_driver.cpp | FlorisE/MOCAP4ROS2 | 69055ee0f0ba658e24e03069e0f01544c16f3d9a | [
"BSD-3-Clause"
] | null | null | null | mocap4ros_drivers/vicon2_driver/test/test_vicon2_driver.cpp | FlorisE/MOCAP4ROS2 | 69055ee0f0ba658e24e03069e0f01544c16f3d9a | [
"BSD-3-Clause"
] | null | null | null | mocap4ros_drivers/vicon2_driver/test/test_vicon2_driver.cpp | FlorisE/MOCAP4ROS2 | 69055ee0f0ba658e24e03069e0f01544c16f3d9a | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2020, Intelligent Robotics Lab
// Copyright (c) 2020, Airelectronics.
//
// 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... | 35.338129 | 84 | 0.765472 | FlorisE |
5147b11b6dde641c8dd3b2d80e7c19b5f785d30c | 670 | cpp | C++ | src/assert.cpp | LipkeGu1810/FoxOS-kernel | d504dcac542e5535eb0481babc0515c6fe8e9f28 | [
"MIT"
] | null | null | null | src/assert.cpp | LipkeGu1810/FoxOS-kernel | d504dcac542e5535eb0481babc0515c6fe8e9f28 | [
"MIT"
] | null | null | null | src/assert.cpp | LipkeGu1810/FoxOS-kernel | d504dcac542e5535eb0481babc0515c6fe8e9f28 | [
"MIT"
] | null | null | null | #include <assert.h>
#include <interrupts/panic.h>
#include <driver/serial.h>
#include <stdio.h>
void __assert_fail(const char* __assertion, const char* __file, unsigned int __line) {
char panic_buffer[1024];
sprintf(panic_buffer, "Assertion failed: \"%s\" in file %s at line %d\n", __assertion, __file, __line);
int... | 35.263158 | 104 | 0.741791 | LipkeGu1810 |
51480d0a6a9e3b533b3d097e668670584b64d572 | 5,203 | hh | C++ | dune/stuff/common/parallel/threadstorage.hh | ftalbrecht/dune-stuff-simplified | fc1f80dedaa78fae6e6d67e8f5424a6b3ec86b5d | [
"BSD-2-Clause"
] | null | null | null | dune/stuff/common/parallel/threadstorage.hh | ftalbrecht/dune-stuff-simplified | fc1f80dedaa78fae6e6d67e8f5424a6b3ec86b5d | [
"BSD-2-Clause"
] | null | null | null | dune/stuff/common/parallel/threadstorage.hh | ftalbrecht/dune-stuff-simplified | fc1f80dedaa78fae6e6d67e8f5424a6b3ec86b5d | [
"BSD-2-Clause"
] | null | null | null | // This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_PARALLEL_THREADSTORAGE_HH
#define DUNE_STUFF_PARALLEL_THREADSTORAGE_HH
#incl... | 32.31677 | 115 | 0.719777 | ftalbrecht |
514dab217c1f92443e5651f2ff32762da0efa2c1 | 2,060 | cpp | C++ | MonthlySalesTax/MonthlySalesTax.cpp | wof8317/Monthy-Sales-Tax | d706cf01b3cded17c6f74f59092ca592595587e1 | [
"WTFPL"
] | null | null | null | MonthlySalesTax/MonthlySalesTax.cpp | wof8317/Monthy-Sales-Tax | d706cf01b3cded17c6f74f59092ca592595587e1 | [
"WTFPL"
] | null | null | null | MonthlySalesTax/MonthlySalesTax.cpp | wof8317/Monthy-Sales-Tax | d706cf01b3cded17c6f74f59092ca592595587e1 | [
"WTFPL"
] | null | null | null | // A C++ program to calculate the monthly sales tax for a business
#include <iostream>
#include <iomanip> // used for setprecision() and setw()
using namespace std;
int main()
{
// initialized variables needed for input/output and calculations
string month = "";
double year = 0;
double totalSales = 0;
cout << "--... | 49.047619 | 106 | 0.597087 | wof8317 |
514e1e9b20e2ce5588a1eb213dc2f5bd660a7ab6 | 3,153 | cpp | C++ | src/promise/deferreddata.cpp | zxfishhack/TaskPool | d5e022c79cf9088e73059479158cd066cfe215f4 | [
"Apache-2.0"
] | 3 | 2017-06-01T18:19:06.000Z | 2020-06-20T06:55:09.000Z | src/promise/deferreddata.cpp | zxfishhack/TaskPool | d5e022c79cf9088e73059479158cd066cfe215f4 | [
"Apache-2.0"
] | null | null | null | src/promise/deferreddata.cpp | zxfishhack/TaskPool | d5e022c79cf9088e73059479158cd066cfe215f4 | [
"Apache-2.0"
] | null | null | null | #include <promise/detail/deferreddata.h>
#include <promise/detail/deferredbase.h>
namespace Task {
typedef boost::shared_ptr<DeferredData> DeferredDataPtr;
DeferredData::DeferredData()
: m_state(indeterminate), m_activating(false), m_ownContext(false)
, m_context(NULL) {}
DeferredData::DeferredData(t... | 20.607843 | 70 | 0.6451 | zxfishhack |
514e41c7e238c309f39150296d6a43c4b706328b | 256 | cpp | C++ | projects/C++/competitive-programming/CodeForces/questions/41A/index.cpp | turbofuture1/dukeofedinburgh | bdb9679aa4977aa6df97b8c8d0b00cd68bbdf3a2 | [
"MIT"
] | 1 | 2022-02-08T21:00:12.000Z | 2022-02-08T21:00:12.000Z | projects/C++/competitive-programming/CodeForces/questions/41A/index.cpp | turbofuture1/dukeofedinburgh | bdb9679aa4977aa6df97b8c8d0b00cd68bbdf3a2 | [
"MIT"
] | null | null | null | projects/C++/competitive-programming/CodeForces/questions/41A/index.cpp | turbofuture1/dukeofedinburgh | bdb9679aa4977aa6df97b8c8d0b00cd68bbdf3a2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <bits/stdc++.h>
using namespace std;
int main()
{
string s,t;
cin>>s>>t;
reverse(s.begin(), s.end());
if (s == t)
{
cout << "YES";
} else {
cout << "NO";
}
} | 12.8 | 32 | 0.464844 | turbofuture1 |
51500ff643d36efe002abb071ea331f6904d77fb | 305 | hpp | C++ | StoreManager/StoreManager/PerishableProduct.hpp | damianbeles/Store-Manager | 4b0a1bac5fae3d7ce4bb41f546ddfb3c50ab820b | [
"MIT"
] | 3 | 2021-03-11T14:46:20.000Z | 2021-12-26T19:16:00.000Z | StoreManager/StoreManager/PerishableProduct.hpp | damianbeles/Store-Manager | 4b0a1bac5fae3d7ce4bb41f546ddfb3c50ab820b | [
"MIT"
] | null | null | null | StoreManager/StoreManager/PerishableProduct.hpp | damianbeles/Store-Manager | 4b0a1bac5fae3d7ce4bb41f546ddfb3c50ab820b | [
"MIT"
] | 1 | 2019-08-29T11:16:20.000Z | 2019-08-29T11:16:20.000Z | #pragma once
#include "DateTime.hpp"
#include "Product.hpp"
class PerishableProduct : public Product {
public:
PerishableProduct(std::string, int, double, DateTime, TypeOfProduct);
DateTime getExpirationDate() const;
virtual void showInfoAboutProduct() const = 0;
protected:
DateTime expiration_;
}; | 23.461538 | 70 | 0.777049 | damianbeles |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.