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
108
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
67k
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
53b778497d67824a758b505d8509133ac53883c4
5,833
hpp
C++
include/RavEngine/unordered_vector.hpp
Ravbug/RavEngine
73249827cb2cd3c938bb59447e9edbf7b6f0defc
[ "Apache-2.0" ]
48
2020-11-18T23:14:25.000Z
2022-03-11T09:13:42.000Z
include/RavEngine/unordered_vector.hpp
Ravbug/RavEngine
73249827cb2cd3c938bb59447e9edbf7b6f0defc
[ "Apache-2.0" ]
1
2020-11-17T20:53:10.000Z
2020-12-01T20:27:36.000Z
include/RavEngine/unordered_vector.hpp
Ravbug/RavEngine
73249827cb2cd3c938bb59447e9edbf7b6f0defc
[ "Apache-2.0" ]
3
2020-12-22T02:40:39.000Z
2021-10-08T02:54:22.000Z
#pragma once #include <vector> #include <phmap.h> #include <functional> namespace RavEngine { /** The Unordered Vector provides: - O(1) erase by iterator All other complexities for valid behaviors are identical to a regular vector. Elements must be moveable. Note that the order of elements cannot be guareneed. *...
27.64455
188
0.652323
Ravbug
53ba76c61e98337aadf73ebd3e280e4db93c4c91
1,827
cpp
C++
book/CH02/S16_Presenting_an_image.cpp
THISISAGOODNAME/vkCookBook
d022b4151a02c33e5c58534dc53ca39610eee7b5
[ "MIT" ]
5
2019-03-02T16:29:15.000Z
2021-11-07T11:07:53.000Z
book/CH02/S16_Presenting_an_image.cpp
THISISAGOODNAME/vkCookBook
d022b4151a02c33e5c58534dc53ca39610eee7b5
[ "MIT" ]
null
null
null
book/CH02/S16_Presenting_an_image.cpp
THISISAGOODNAME/vkCookBook
d022b4151a02c33e5c58534dc53ca39610eee7b5
[ "MIT" ]
2
2018-07-10T18:15:40.000Z
2020-01-03T04:02:32.000Z
// // Created by aicdg on 2017/6/19. // // // Chapter: 02 Image Presentation // Recipe: 16 Presenting an image #include "S16_Presenting_an_image.h" namespace VKCookbook { bool PresentImage(VkQueue queue, std::vector<VkSemaphore> rendering_semaphores, std::vector<Prese...
41.522727
116
0.509031
THISISAGOODNAME
53bf0759144880c94ad882e74dd18a42bbed8403
910
cpp
C++
lab2/Q1.cpp
jasonsie88/OOP-and-DS
fdf76d6e9b3c70e5c7a97401dfe93984b63e5e28
[ "MIT" ]
null
null
null
lab2/Q1.cpp
jasonsie88/OOP-and-DS
fdf76d6e9b3c70e5c7a97401dfe93984b63e5e28
[ "MIT" ]
null
null
null
lab2/Q1.cpp
jasonsie88/OOP-and-DS
fdf76d6e9b3c70e5c7a97401dfe93984b63e5e28
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; class Student { private: string name; string studentID; int score; public: Student(){ } Student(string name, string studentID, int score){ Student:: name=name; Student:: studentID=studentID; St...
21.162791
80
0.552747
jasonsie88
53c1d1bfbc4f270184ff9e72daeba7920a071150
5,895
cpp
C++
source/QtCore/QFutureWatcherBaseSlots.cpp
kenny1818/qt4xhb
f62f40d8b17acb93761014317b52da9f919707d0
[ "MIT" ]
1
2021-03-07T10:44:03.000Z
2021-03-07T10:44:03.000Z
source/QtCore/QFutureWatcherBaseSlots.cpp
kenny1818/qt4xhb
f62f40d8b17acb93761014317b52da9f919707d0
[ "MIT" ]
null
null
null
source/QtCore/QFutureWatcherBaseSlots.cpp
kenny1818/qt4xhb
f62f40d8b17acb93761014317b52da9f919707d0
[ "MIT" ]
2
2020-07-19T03:28:08.000Z
2021-03-05T18:07:20.000Z
/* Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4 Copyright (C) 2021 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> */ /* DO NOT EDIT THIS FILE - the content was created using a source code generator */ #include "QFutureWatcherBaseSlots.h" QFutureWatcherBaseSlot...
26.917808
110
0.674979
kenny1818
53c3ed79cdbaac28d59dd1e13c36a9e10713d41b
6,671
cc
C++
alljoyn_js/jni/ScriptableObject.cc
liuxiang88/core-alljoyn
549c966482d9b89da84aa528117584e7049916cb
[ "Apache-2.0" ]
33
2018-01-12T00:37:43.000Z
2022-03-24T02:31:36.000Z
alljoyn_js/jni/ScriptableObject.cc
liuxiang88/core-alljoyn
549c966482d9b89da84aa528117584e7049916cb
[ "Apache-2.0" ]
1
2020-01-05T05:51:27.000Z
2020-01-05T05:51:27.000Z
alljoyn_js/jni/ScriptableObject.cc
liuxiang88/core-alljoyn
549c966482d9b89da84aa528117584e7049916cb
[ "Apache-2.0" ]
30
2017-12-13T23:24:00.000Z
2022-01-25T02:11:19.000Z
/* * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source * Project (AJOSP) Contributors and others. * * SPDX-License-Identifier: Apache-2.0 * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Apache License, Version 2.0...
32.227053
115
0.653275
liuxiang88
53cc3cee63f5e72f8f8ef2ed867e47459b546d2b
8,973
cpp
C++
CGALib/src/Model.cpp
jorge-jcc/MarioCraftv2
f0870721685452b2b39df1004f4be26f2dfb3629
[ "Xnet", "X11" ]
null
null
null
CGALib/src/Model.cpp
jorge-jcc/MarioCraftv2
f0870721685452b2b39df1004f4be26f2dfb3629
[ "Xnet", "X11" ]
null
null
null
CGALib/src/Model.cpp
jorge-jcc/MarioCraftv2
f0870721685452b2b39df1004f4be26f2dfb3629
[ "Xnet", "X11" ]
null
null
null
/* * Model.cpp * * Created on: 13/09/2016 * Author: rey */ #include "Headers/Model.h" #include "Headers/TimeManager.h" #include "Headers/mathUtil.h" Model::Model() { this->aabb.mins.x = FLT_MAX; this->aabb.mins.y = FLT_MAX; this->aabb.mins.z = FLT_MAX; this->aabb.maxs.x = -FLT_MAX; thi...
36.77459
146
0.657528
jorge-jcc
53cffcce8f6c207095d511f4629668bd41857bb6
10,689
cpp
C++
iOS/G3MApp/G3MApp/G3MHUDDemoScene.cpp
AeroGlass/g3m
a21a9e70a6205f1f37046ae85dafc6e3bfaeb917
[ "BSD-2-Clause" ]
null
null
null
iOS/G3MApp/G3MApp/G3MHUDDemoScene.cpp
AeroGlass/g3m
a21a9e70a6205f1f37046ae85dafc6e3bfaeb917
[ "BSD-2-Clause" ]
null
null
null
iOS/G3MApp/G3MApp/G3MHUDDemoScene.cpp
AeroGlass/g3m
a21a9e70a6205f1f37046ae85dafc6e3bfaeb917
[ "BSD-2-Clause" ]
null
null
null
// // G3MHUDDemoScene.cpp // G3MApp // // Created by Diego Gomez Deck on 12/2/14. // Copyright (c) 2014 Igo Software SL. All rights reserved. // #include "G3MHUDDemoScene.hpp" //#include <G3MiOSSDK/G3MWidget.hpp> #include <G3MiOSSDK/MapBoxLayer.hpp> #include <G3MiOSSDK/LayerSet.hpp> #include <G3MiOSSDK/CanvasImag...
41.27027
116
0.477874
AeroGlass
53d1654bd095104482205740dbd1d2022d6be557
1,346
hpp
C++
Hardware/src/hard/rpi_gpio.hpp
torunxxx001/BookCollectionSystem
cce2942e30c460949ba729db432f0efdd66f8465
[ "MIT" ]
null
null
null
Hardware/src/hard/rpi_gpio.hpp
torunxxx001/BookCollectionSystem
cce2942e30c460949ba729db432f0efdd66f8465
[ "MIT" ]
null
null
null
Hardware/src/hard/rpi_gpio.hpp
torunxxx001/BookCollectionSystem
cce2942e30c460949ba729db432f0efdd66f8465
[ "MIT" ]
null
null
null
/* 参考PDF[BCM2835-ARM-Peripherals.pdf] */ /* RaspberryPI用GPIO操作プログラム */ /* 対応表 PIN NAME 0 GPIO 2(SDA) 1 GPIO 3(SCL) 2 GPIO 4(GPCLK0) 3 GPIO 7(CE1) 4 GPIO 8(CE0) 5 GPIO 9(MISO) 6 GPIO 10(MOSI) 7 GPIO 11(SCLK) 8 GPIO 14(TXD) 9 GPIO 15(RXD) 10 GPIO 17 11 GPIO 18(PCM_CLK) 12 GPIO 22 13 GPIO 23 14 GPIO 24 15 GPIO 25 16 GP...
16.02381
54
0.732541
torunxxx001
53d19d2e5ac46e190dc814d6c6e9592c5831fbe9
1,137
cpp
C++
src/query_tatami.cpp
LTLA/diet.scran
c274bf058e10c174a06a409af50fcad225d40f0d
[ "MIT" ]
null
null
null
src/query_tatami.cpp
LTLA/diet.scran
c274bf058e10c174a06a409af50fcad225d40f0d
[ "MIT" ]
null
null
null
src/query_tatami.cpp
LTLA/diet.scran
c274bf058e10c174a06a409af50fcad225d40f0d
[ "MIT" ]
null
null
null
#include "tatami/tatami.h" #include "Rcpp.h" #include "tatamize.h" //[[Rcpp::export(rng=false)]] Rcpp::IntegerVector tatami_dim(SEXP x) { auto ptr = extract_NumericMatrix(x); return Rcpp::IntegerVector::create(ptr->nrow(), ptr->ncol()); } //[[Rcpp::export(rng=false)]] Rcpp::NumericMatrix tatami_rows(SEXP x, R...
27.071429
94
0.648197
LTLA
53d3d8fbf496c15a7e0b017d0d78183d4f70afc5
1,256
cpp
C++
Bit Manipulation/1835. Find XOR Sum of All Pairs Bitwise AND.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
Bit Manipulation/1835. Find XOR Sum of All Pairs Bitwise AND.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
Bit Manipulation/1835. Find XOR Sum of All Pairs Bitwise AND.cpp
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
/* We all know the distributive property that (a1+a2)*(b1+b2) = a1*b1 + a1*b2 + a2*b1 + a2*b2 Explanation Distributive property is similar for AND and XOR here. (a1^a2) & (b1^b2) = (a1&b1) ^ (a1&b2) ^ (a2&b1) ^ (a2&b2) (I wasn't aware of this at first either) 另一种思路, 如果所有arr2 中的数 第一个bit 是奇数个(求所有数第一位bit的xor),if ar...
26.723404
104
0.514331
beckswu
53d43ebb01cd7590624edbe6e9033bcf44f6d4ad
291
cpp
C++
Graph/DSU.cpp
scortier/DSA-Complete-Sheet
925a5cb148d9addcb32192fe676be76bfb2915c7
[ "MIT" ]
1
2021-07-20T06:08:26.000Z
2021-07-20T06:08:26.000Z
Graph/DSU.cpp
scortier/DSA-Complete-Sheet
925a5cb148d9addcb32192fe676be76bfb2915c7
[ "MIT" ]
null
null
null
Graph/DSU.cpp
scortier/DSA-Complete-Sheet
925a5cb148d9addcb32192fe676be76bfb2915c7
[ "MIT" ]
null
null
null
#define MAX 20001 int par[MAX], sz[MAX]; void init(int v) { par[v] = v; sz[v] = 1; } int find(int v) { return v == par[v] ? v : par[v] = find(par[v]); } void join(int u, int v) { u = find(u), v = find(v); if(u != v) { if(sz[u] < sz[v]) swap(u, v); par[v] = u; sz[u] += sz[v]; } }
17.117647
48
0.484536
scortier
53d6db547db42be009f19c81dd2f8ad1d67d5f6a
1,070
cpp
C++
Pm2Service/Pm2Helper.cpp
thebecwar/PM2Service
594fdc39f734a425ccd61fd6132755f32882afb6
[ "MIT" ]
null
null
null
Pm2Service/Pm2Helper.cpp
thebecwar/PM2Service
594fdc39f734a425ccd61fd6132755f32882afb6
[ "MIT" ]
null
null
null
Pm2Service/Pm2Helper.cpp
thebecwar/PM2Service
594fdc39f734a425ccd61fd6132755f32882afb6
[ "MIT" ]
null
null
null
#include "Pm2Helper.h" #include "Process.h" #define WIN32_LEAN_AND_MEAN #include <Windows.h> #include <PathCch.h> #include <locale> #include <codecvt> #include <string> #include <sstream> void ConvertNarrowToWide(std::string& narrow, std::wstring& wide) { std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> c...
23.777778
94
0.692523
thebecwar
53d7aa80fd1ff968638b54548a45f3b42086a965
517
cpp
C++
unittest/tests/JsonTest/source/Application.cpp
Hurleyworks/Ketone
97c0c730a6e3155154a0ccb87a535e109dfa3c7d
[ "Apache-2.0" ]
1
2021-04-01T01:16:33.000Z
2021-04-01T01:16:33.000Z
unittest/tests/JsonTest/source/Application.cpp
Hurleyworks/Ketone
97c0c730a6e3155154a0ccb87a535e109dfa3c7d
[ "Apache-2.0" ]
null
null
null
unittest/tests/JsonTest/source/Application.cpp
Hurleyworks/Ketone
97c0c730a6e3155154a0ccb87a535e109dfa3c7d
[ "Apache-2.0" ]
null
null
null
#include "Jahley.h" #include <json.hpp> const std::string APP_NAME = "JsonTest"; #ifdef CHECK #undef CHECK #endif #define DOCTEST_CONFIG_IMPLEMENT #include "doctest.h" using json = nlohmann::json; class Application : public Jahley::App { public: Application(DesktopWindowSettings settings = DesktopWindowSe...
14.771429
98
0.709865
Hurleyworks
53d7f6e0454d6351e2ae3cdadf79ee85ae0b982e
265
cpp
C++
1480 Running Sum of 1d Array.cpp
akash2099/LeetCode-Problems
74c346146ca5ba2336d1e8d6dc26e3cd8920cb25
[ "MIT" ]
1
2021-11-14T01:06:38.000Z
2021-11-14T01:06:38.000Z
1480 Running Sum of 1d Array.cpp
akash2099/LeetCode-Problems
74c346146ca5ba2336d1e8d6dc26e3cd8920cb25
[ "MIT" ]
null
null
null
1480 Running Sum of 1d Array.cpp
akash2099/LeetCode-Problems
74c346146ca5ba2336d1e8d6dc26e3cd8920cb25
[ "MIT" ]
null
null
null
class Solution { public: vector<int> runningSum(vector<int>& nums) { // input: nums array nums = [1,2,3,4] for(int i=1;i<nums.size();i++){ nums[i]=nums[i-1]+nums[i]; } return nums; } };
18.928571
47
0.441509
akash2099
53d82a58d6860797fcbbc6ec091433cc8d8e9769
1,402
cpp
C++
FERMIONS/WILSON/LoopMacros.cpp
markmace/OVERLAP
2d26366aa862cbd36182db8ee3165d9fe4d3e704
[ "MIT" ]
1
2020-12-13T03:11:03.000Z
2020-12-13T03:11:03.000Z
FERMIONS/WILSON/LoopMacros.cpp
markmace/OVERLAP
2d26366aa862cbd36182db8ee3165d9fe4d3e704
[ "MIT" ]
null
null
null
FERMIONS/WILSON/LoopMacros.cpp
markmace/OVERLAP
2d26366aa862cbd36182db8ee3165d9fe4d3e704
[ "MIT" ]
null
null
null
#ifndef __LOOP_MACROS_CPP__ #define __LOOP_MACROS_CPP__ #define START_FERMION_LOOP(gMatrixCoupling) \ \ for(INT i=0;i<Nc;i++){ \ for(INT j=0;j<Nc;j++){ \ \ for(INT alpha=0;alpha<DiracAlgebra::SpinorComponents;alpha++){\ for(INT beta=0;beta<DiracAlgebra::SpinorComponents;beta++){ \ \ if(gMatrixCoupling[alpha][beta]!=0....
18.207792
78
0.702568
markmace
53dbaa396bff25abf48fc6ac3065b6f56a0bcd80
2,156
cpp
C++
sources/thelib/src/mediaformats/readers/mp4/atomhdlr.cpp
rdkcmf/rdkc-rms
65ab1efcee9e3de46a888c125f591cd48b815601
[ "Apache-2.0" ]
3
2020-07-30T19:41:00.000Z
2020-10-28T12:52:37.000Z
sources/thelib/src/mediaformats/readers/mp4/atomhdlr.cpp
rdkcmf/rdkc-rms
65ab1efcee9e3de46a888c125f591cd48b815601
[ "Apache-2.0" ]
null
null
null
sources/thelib/src/mediaformats/readers/mp4/atomhdlr.cpp
rdkcmf/rdkc-rms
65ab1efcee9e3de46a888c125f591cd48b815601
[ "Apache-2.0" ]
2
2020-05-11T03:19:00.000Z
2021-07-07T17:40:47.000Z
/** ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
25.975904
90
0.678571
rdkcmf
53dbd15883fca8e4fb9012fbe7b16ae78429f8df
1,255
cpp
C++
ansi-c/fix_symbol.cpp
holao09/esbmc
659c006a45e9aaf8539b12484e2ec2b093cc6f02
[ "BSD-3-Clause" ]
null
null
null
ansi-c/fix_symbol.cpp
holao09/esbmc
659c006a45e9aaf8539b12484e2ec2b093cc6f02
[ "BSD-3-Clause" ]
null
null
null
ansi-c/fix_symbol.cpp
holao09/esbmc
659c006a45e9aaf8539b12484e2ec2b093cc6f02
[ "BSD-3-Clause" ]
null
null
null
/*******************************************************************\ Module: ANSI-C Linking Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ #include "fix_symbol.h" /*******************************************************************\ Function: ...
19.920635
69
0.449402
holao09
53de116229cda7fec51a86c23c78b472d07a9197
1,214
cc
C++
src/leaderboard.cc
CS126SP20/final-project-teresa622
38b1e943383fe9e71cfffb42460f855444754820
[ "MIT" ]
null
null
null
src/leaderboard.cc
CS126SP20/final-project-teresa622
38b1e943383fe9e71cfffb42460f855444754820
[ "MIT" ]
null
null
null
src/leaderboard.cc
CS126SP20/final-project-teresa622
38b1e943383fe9e71cfffb42460f855444754820
[ "MIT" ]
null
null
null
// // Created by Teresa Dong on 4/17/20. // #include <string> #include "mylibrary/leaderboard.h" #include "mylibrary/player.h" namespace tetris { LeaderBoard::LeaderBoard(const std::string& db_path) : db_{db_path} { db_ << "CREATE TABLE if not exists leaderboard (\n" " name TEXT NOT NULL,\n" "...
23.346154
73
0.623558
CS126SP20
53de483523e0636452f358b5f0779fb78869303d
628
cpp
C++
LuoguOJ/Luogu 2661.cpp
tico88612/Solution-Note
31a9d220fd633c6920760707a07c9a153c2f76cc
[ "MIT" ]
1
2018-02-11T09:41:54.000Z
2018-02-11T09:41:54.000Z
LuoguOJ/Luogu 2661.cpp
tico88612/Solution-Note
31a9d220fd633c6920760707a07c9a153c2f76cc
[ "MIT" ]
null
null
null
LuoguOJ/Luogu 2661.cpp
tico88612/Solution-Note
31a9d220fd633c6920760707a07c9a153c2f76cc
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define _ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); using namespace std; const int MAXN=2e6+10; int disjoint[MAXN],dis[MAXN]={0},ans=2e6+10; int getjoint(int s){ if(disjoint[s]!=s){ int last=disjoint[s]; disjoint[s]=getjoint(disjoint[s]); dis[s]+=dis[last]; } return disjoint[s]; ...
17.942857
57
0.600318
tico88612
53debfd17bffc22006b3728f7979ccc1a195d383
2,701
cpp
C++
graph-source-code/118-E/745508.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/118-E/745508.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/118-E/745508.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
//Language: GNU C++ #include <map> #include <set> #include <list> #include <stack> #include <cmath> #include <queue> #include <ctime> #include <cfloat> #include <vector> #include <string> #include <cstdio> #include <climits> #include <cstdlib> #include <cstring> #include <cassert> #include <iomanip> #includ...
20.007407
93
0.546835
AmrARaouf
53e19c7e9a43f973ed26aea01b09b554f826fbff
2,162
hpp
C++
src/camera.hpp
mvorbrodt/engine
0b9c5c1f6d293e98ea8bea3db3bfb67fee84b73c
[ "0BSD" ]
3
2019-04-25T11:39:13.000Z
2022-01-30T22:24:08.000Z
src/camera.hpp
mvorbrodt/engine
0b9c5c1f6d293e98ea8bea3db3bfb67fee84b73c
[ "0BSD" ]
null
null
null
src/camera.hpp
mvorbrodt/engine
0b9c5c1f6d293e98ea8bea3db3bfb67fee84b73c
[ "0BSD" ]
1
2019-11-20T07:58:38.000Z
2019-11-20T07:58:38.000Z
#pragma once #include <cassert> #include "types.hpp" #include "vector.hpp" #include "point.hpp" #include "matrix.hpp" #include "transforms.hpp" #define MIN_FOV 10.0f #define MAX_FOV 90.0f namespace engine { class camera { public: camera(real aspect, real fov = 60.0f, real _near = 1.0f, real _far = 100.0f, const...
21.405941
170
0.630897
mvorbrodt
53e8532ad79bf9a0704c56fe0263f884d7dc31cc
446
cpp
C++
643-maximum-average-subarray-i/643-maximum-average-subarray-i.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
643-maximum-average-subarray-i/643-maximum-average-subarray-i.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
643-maximum-average-subarray-i/643-maximum-average-subarray-i.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
class Solution { public: double findMaxAverage(vector<int>& nums, int k) { int sum=0; for(int i=0;i<k;i++){ sum+=nums[i]; } double avg=(double)sum/k; int i=0, j=k; while(j<nums.size()){ sum -= nums[i]; sum += nums[j]; do...
22.3
53
0.394619
SouvikChan
53f20407d36b640aa7b0d498a7d180d06e7ac743
1,477
cpp
C++
linked-list/merge-sort-doublyLL.cpp
Strider-7/code
e096c0d0633b53a07bf3f295cb3bd685b694d4ce
[ "MIT" ]
null
null
null
linked-list/merge-sort-doublyLL.cpp
Strider-7/code
e096c0d0633b53a07bf3f295cb3bd685b694d4ce
[ "MIT" ]
null
null
null
linked-list/merge-sort-doublyLL.cpp
Strider-7/code
e096c0d0633b53a07bf3f295cb3bd685b694d4ce
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; struct Node { int data; struct Node *next, *prev; }; Node *merge(Node *a, Node *b) { // Base cases if (!a) return b; if (!b) return a; if (a->data <= b->data) { a->next = merge(a->next, b); ...
19.181818
54
0.475288
Strider-7
53f50c53640f4dc2d832d2b71c9dd5101573236f
168
cpp
C++
vm/mterp/c/OP_DISPATCH_FF.cpp
ThirdProject/android_dalvik
6a9739380c73a0256f2484f2bcd0b8f908a2db52
[ "Apache-2.0" ]
null
null
null
vm/mterp/c/OP_DISPATCH_FF.cpp
ThirdProject/android_dalvik
6a9739380c73a0256f2484f2bcd0b8f908a2db52
[ "Apache-2.0" ]
null
null
null
vm/mterp/c/OP_DISPATCH_FF.cpp
ThirdProject/android_dalvik
6a9739380c73a0256f2484f2bcd0b8f908a2db52
[ "Apache-2.0" ]
null
null
null
HANDLE_OPCODE(OP_DISPATCH_FF) /* * Indicates extended opcode. Use next 8 bits to choose where to branch. */ DISPATCH_EXTENDED(INST_AA(inst)); OP_END
24
77
0.696429
ThirdProject
53fa031c22b8eed150594efa271ddde6a8d2a68e
9,895
cpp
C++
src/c++/lib/alignment/matchSelector/BinningFragmentStorage.cpp
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
13
2018-02-09T22:59:39.000Z
2021-11-29T06:33:22.000Z
src/c++/lib/alignment/matchSelector/BinningFragmentStorage.cpp
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
17
2018-01-26T11:36:07.000Z
2022-02-03T18:48:43.000Z
src/c++/lib/alignment/matchSelector/BinningFragmentStorage.cpp
Illumina/Isaac4
0924fba8b467868da92e1c48323b15d7cbca17dd
[ "BSD-3-Clause" ]
4
2018-10-19T20:00:00.000Z
2020-10-29T14:44:06.000Z
/** ** Isaac Genome Alignment Software ** Copyright (c) 2010-2017 Illumina, Inc. ** All rights reserved. ** ** This software is provided under the terms and conditions of the ** GNU GENERAL PUBLIC LICENSE Version 3 ** ** You should have received a copy of the GNU GENERAL PUBLIC LICENSE Version 3 ** along with ...
41.57563
145
0.703183
Illumina
53fb4768f41b00844adfb9ec51edd9b7f4b37bdf
3,036
hpp
C++
src/OpenAnalysis/CallGraph/ManagerCallGraph.hpp
sriharikrishna/OpenAnalysis
0d0c3819bd091cc0c83db5555cc20bfbc07ecbdc
[ "BSD-3-Clause" ]
null
null
null
src/OpenAnalysis/CallGraph/ManagerCallGraph.hpp
sriharikrishna/OpenAnalysis
0d0c3819bd091cc0c83db5555cc20bfbc07ecbdc
[ "BSD-3-Clause" ]
null
null
null
src/OpenAnalysis/CallGraph/ManagerCallGraph.hpp
sriharikrishna/OpenAnalysis
0d0c3819bd091cc0c83db5555cc20bfbc07ecbdc
[ "BSD-3-Clause" ]
null
null
null
/*! \file \brief Declarations of the AnnotationManager that generates a CallGraphStandard. \authors Arun Chauhan (2001 as part of Mint), Nathan Tallent, Michelle Strout, Priyadarshini Malusare \version $Id: ManagerCallGraphStandard.hpp,v 1.6 2004/11/19 19:21:50 mstrout Exp $ Copyright (c) 2002-2005, Rice U...
30.979592
103
0.600132
sriharikrishna
53fc218fdcd65dc427360ddb202a4d1c73c959e3
3,611
cpp
C++
geometry/src/capsule.cpp
Ludophonic/JigLib
541ec63b345ccf01e58cce49eb2f73c21eaf6aa6
[ "Zlib" ]
10
2016-06-01T12:54:45.000Z
2021-09-07T17:34:37.000Z
geometry/src/capsule.cpp
Ludophonic/JigLib
541ec63b345ccf01e58cce49eb2f73c21eaf6aa6
[ "Zlib" ]
null
null
null
geometry/src/capsule.cpp
Ludophonic/JigLib
541ec63b345ccf01e58cce49eb2f73c21eaf6aa6
[ "Zlib" ]
4
2017-05-03T14:03:03.000Z
2021-01-04T04:31:15.000Z
//============================================================== // Copyright (C) 2004 Danny Chapman // danny@rowlhouse.freeserve.co.uk //-------------------------------------------------------------- // /// @file capsule.cpp // //=====================================...
39.681319
112
0.546109
Ludophonic
53fdbadfaa6215e4b01d0233392fe1f15fd914eb
244
cpp
C++
lib/cards/expansion_card.cpp
BioBoost/home_automator
acc77023003110bc18f376c5305dd26912b26a9a
[ "MIT" ]
null
null
null
lib/cards/expansion_card.cpp
BioBoost/home_automator
acc77023003110bc18f376c5305dd26912b26a9a
[ "MIT" ]
14
2018-08-19T09:03:06.000Z
2018-09-22T21:08:36.000Z
lib/cards/expansion_card.cpp
BioBoost/home_automator
acc77023003110bc18f376c5305dd26912b26a9a
[ "MIT" ]
null
null
null
#include "expansion_card.h" namespace BiosHomeAutomator { ExpansionCard::ExpansionCard(unsigned int id) { this->id = id; } ExpansionCard::~ExpansionCard(void) { } unsigned int ExpansionCard::get_id(void) { return id; } };
16.266667
49
0.684426
BioBoost
d87cc8d47fa687a1a4fa586a5d626144557df6fb
850
hpp
C++
poet/detail/utility.hpp
fmhess/libpoet
ca6a168a772a1452ac39745a851ba390e86fad30
[ "BSL-1.0" ]
1
2017-04-03T11:53:20.000Z
2017-04-03T11:53:20.000Z
poet/detail/utility.hpp
fmhess/libpoet
ca6a168a772a1452ac39745a851ba390e86fad30
[ "BSL-1.0" ]
null
null
null
poet/detail/utility.hpp
fmhess/libpoet
ca6a168a772a1452ac39745a851ba390e86fad30
[ "BSL-1.0" ]
null
null
null
// copyright (c) Frank Mori Hess <fmhess@users.sourceforge.net> 2008-04-13 // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef _POET_DETAIL_UTILITY_HPP #define _POET_DETAIL_UTILITY_HPP #include <boost/...
21.25
75
0.685882
fmhess
d886b626bba54bf7c1acdaf6800e7e362c9ca320
1,378
hpp
C++
GLSL-Pipeline/Toolkits/include/System/Func.hpp
GilFerraz/GLSL-Pipeline
d2fd965a4324e85b6144682f8104c306034057d6
[ "Apache-2.0" ]
null
null
null
GLSL-Pipeline/Toolkits/include/System/Func.hpp
GilFerraz/GLSL-Pipeline
d2fd965a4324e85b6144682f8104c306034057d6
[ "Apache-2.0" ]
null
null
null
GLSL-Pipeline/Toolkits/include/System/Func.hpp
GilFerraz/GLSL-Pipeline
d2fd965a4324e85b6144682f8104c306034057d6
[ "Apache-2.0" ]
null
null
null
#pragma once #include "DLL.hpp" #include <functional> namespace System { /** * \brief Encapsulates a method that has specified parameters and returns a value of the type specified by the TResult * parameter. Unlike in other .NET languages, the first paramenter correspondes to TResult. * \tpa...
23.758621
122
0.624819
GilFerraz
d88756cddfe30e47e7f80e2cfebaaa7174008521
493
cc
C++
endo/module_wrap.cc
Qard/endo
6e3241b12e58344524711d4db4ed44d115fa8175
[ "MIT" ]
null
null
null
endo/module_wrap.cc
Qard/endo
6e3241b12e58344524711d4db4ed44d115fa8175
[ "MIT" ]
null
null
null
endo/module_wrap.cc
Qard/endo
6e3241b12e58344524711d4db4ed44d115fa8175
[ "MIT" ]
null
null
null
#include "module_wrap.h" namespace endo { ModuleWrap::ModuleWrap(Isolate* isolate, Local<Module> module, Local<String> url) : module_(isolate, module), url_(isolate, url) {}; bool ModuleWrap::operator==(Local<Module>& mod) { return module_.Get(Isolate::GetCurrent())->GetIdentityHash() == mod->GetIdentityHash...
22.409091
89
0.703854
Qard
d88790b0562948b7fa957ebf6c42c2c0eea6b303
2,542
cp
C++
Sources_Common/Application/Preferences/CSearchStyle.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
12
2015-04-21T16:10:43.000Z
2021-11-05T13:41:46.000Z
Sources_Common/Application/Preferences/CSearchStyle.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
2
2015-11-02T13:32:11.000Z
2019-07-10T21:11:21.000Z
Sources_Common/Application/Preferences/CSearchStyle.cp
mulberry-mail/mulberry4-client
cdaae15c51dd759110b4fbdb2063d0e3d5202103
[ "ECL-2.0", "Apache-2.0" ]
6
2015-01-12T08:49:12.000Z
2021-03-27T09:11:10.000Z
/* Copyright (c) 2007 Cyrus Daboo. 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 Unless re...
20.336
86
0.709284
mulberry-mail
d88b09f7941ed97b33f164ff59b9cd7a0be36365
606
hpp
C++
Helios/src/Game.hpp
rgracari/helio_test
2d516d16da4252c8f92f5c265b6151c6e87bc907
[ "Apache-2.0" ]
null
null
null
Helios/src/Game.hpp
rgracari/helio_test
2d516d16da4252c8f92f5c265b6151c6e87bc907
[ "Apache-2.0" ]
null
null
null
Helios/src/Game.hpp
rgracari/helio_test
2d516d16da4252c8f92f5c265b6151c6e87bc907
[ "Apache-2.0" ]
null
null
null
#pragma once #include <SDL.h> #include <memory> #include "Texture.hpp" #include "Sprite.hpp" #include "Clock.hpp" #include "Input.hpp" #include "Event.hpp" #include "SceneStateMachine.hpp" #include "scenes/SceneSplashScreen.hpp" #include "scenes/SceneGame.hpp" namespace Helio { class Game { private: Event even...
15.947368
39
0.70132
rgracari
d88f5accbe4168ea1013c8b0dca216ac0573e7fd
29,740
hpp
C++
include/CameraModels/CameraModelUtils.hpp
lukier/camera_models
90196141fa4749148b6a7b0adc7af19cb1971039
[ "BSD-3-Clause" ]
34
2016-11-13T22:17:50.000Z
2021-01-20T19:59:25.000Z
include/CameraModels/CameraModelUtils.hpp
lukier/camera_models
90196141fa4749148b6a7b0adc7af19cb1971039
[ "BSD-3-Clause" ]
null
null
null
include/CameraModels/CameraModelUtils.hpp
lukier/camera_models
90196141fa4749148b6a7b0adc7af19cb1971039
[ "BSD-3-Clause" ]
6
2016-11-14T00:45:56.000Z
2019-04-02T11:56:50.000Z
/** * **************************************************************************** * Copyright (c) 2015, Robert Lukierski. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributi...
46.323988
263
0.648857
lukier
d8918e5ce4cd1348ab24b3521eb4ec70ebe62e0a
2,657
cc
C++
euler/core/kernels/sample_edge_op.cc
HuangLED/euler
a56b5fe3fe56123af062317ca0b4160ce3b3ace9
[ "Apache-2.0" ]
2,829
2019-01-12T09:16:03.000Z
2022-03-29T14:00:58.000Z
euler/core/kernels/sample_edge_op.cc
HuangLED/euler
a56b5fe3fe56123af062317ca0b4160ce3b3ace9
[ "Apache-2.0" ]
331
2019-01-17T21:07:49.000Z
2022-03-30T06:38:17.000Z
euler/core/kernels/sample_edge_op.cc
HuangLED/euler
a56b5fe3fe56123af062317ca0b4160ce3b3ace9
[ "Apache-2.0" ]
578
2019-01-16T10:48:53.000Z
2022-03-21T13:41:34.000Z
/* Copyright 2020 Alibaba Group Holding Limited. 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 Unless required by applicable law o...
31.630952
80
0.666165
HuangLED
d894316a3388b78f662dc89b069e5ff4a9bf42f4
1,339
cpp
C++
src/lighting.cpp
armedturret/GlassWall
1ff438987d32be154ce81488a8f2729eaaf563ee
[ "MIT" ]
null
null
null
src/lighting.cpp
armedturret/GlassWall
1ff438987d32be154ce81488a8f2729eaaf563ee
[ "MIT" ]
null
null
null
src/lighting.cpp
armedturret/GlassWall
1ff438987d32be154ce81488a8f2729eaaf563ee
[ "MIT" ]
1
2018-12-23T01:46:41.000Z
2018-12-23T01:46:41.000Z
#include <lighting.h> GW::RenderEngine::Lighting::Lighting() { } GW::RenderEngine::Lighting::~Lighting() { } void GW::RenderEngine::Lighting::setDirectionalLight(const DirectionalLight & light) { m_directionalLight = light; } void GW::RenderEngine::Lighting::addPointLight(const PointLight & light) { m_pointLights...
21.253968
92
0.746826
armedturret
d894353cd687d3ce761962c40144ad58c01ad041
1,234
cpp
C++
EngineAttempt0/project/src/engine/general/Transform.cpp
MEEMEEMAN/EngineAttempt0
2d470af8d19b8f90c03b1bcdee9ae64f3cddd7b6
[ "MIT" ]
null
null
null
EngineAttempt0/project/src/engine/general/Transform.cpp
MEEMEEMAN/EngineAttempt0
2d470af8d19b8f90c03b1bcdee9ae64f3cddd7b6
[ "MIT" ]
null
null
null
EngineAttempt0/project/src/engine/general/Transform.cpp
MEEMEEMAN/EngineAttempt0
2d470af8d19b8f90c03b1bcdee9ae64f3cddd7b6
[ "MIT" ]
null
null
null
#include "Transform.h" void Transform::UpdateTRS() { mat4 modelMatrix = mat4(1); modelMatrix = glm::translate(modelMatrix, position); modelMatrix = glm::rotate(modelMatrix, glm::radians(rotaiton.x), vec3(1, 0, 0)); modelMatrix = glm::rotate(modelMatrix, glm::radians(rotaiton.y), vec3(0, 1, 0)); modelMatrix = gl...
26.826087
81
0.703404
MEEMEEMAN
d89886f2c4165e5ace2f8f6e9b07abdfd2d5d458
233
cpp
C++
library/src/ButtonMatrix.cpp
StratifyLabs/LvglAPI
c869d5b38ad3aa148fa0801d12271f2d9a6043c5
[ "MIT" ]
1
2022-01-03T19:16:58.000Z
2022-01-03T19:16:58.000Z
library/src/ButtonMatrix.cpp
StratifyLabs/LvglAPI
c869d5b38ad3aa148fa0801d12271f2d9a6043c5
[ "MIT" ]
null
null
null
library/src/ButtonMatrix.cpp
StratifyLabs/LvglAPI
c869d5b38ad3aa148fa0801d12271f2d9a6043c5
[ "MIT" ]
null
null
null
#include "lvgl/ButtonMatrix.hpp" using namespace lvgl; LVGL_OBJECT_ASSERT_SIZE(ButtonMatrix); ButtonMatrix::ButtonMatrix(const char * name){ m_object = api()->btnmatrix_create(screen_object()); set_user_data(m_object,name); }
21.181818
54
0.776824
StratifyLabs
d8989ee0c5f697d49473166919b635c30401a505
15,067
cpp
C++
3rdparty/GPSTk/ext/apps/geomatics/relposition/ProcessRawData.cpp
mfkiwl/ICE
e660d031bb1bcea664db1de4946fd8781be5b627
[ "MIT" ]
50
2019-10-12T01:22:20.000Z
2022-02-15T23:28:26.000Z
3rdparty/GPSTk/ext/apps/geomatics/relposition/ProcessRawData.cpp
wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation
2f1ff054b7c5059da80bb3b2f80c05861a02cc36
[ "MIT" ]
null
null
null
3rdparty/GPSTk/ext/apps/geomatics/relposition/ProcessRawData.cpp
wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation
2f1ff054b7c5059da80bb3b2f80c05861a02cc36
[ "MIT" ]
14
2019-11-05T01:50:29.000Z
2021-08-06T06:23:44.000Z
//============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk 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; ei...
38.338422
90
0.553727
mfkiwl
d89a1419d316000ed182f6a183475ebeb0a06af7
23,275
cpp
C++
codecparsers/vp9parser.cpp
genisysram/libyami
08d3ecbbfe1f5d23d433523f747a7093a0b3a13a
[ "Apache-2.0" ]
89
2015-01-09T10:31:13.000Z
2018-01-18T12:48:21.000Z
codecparsers/vp9parser.cpp
genisysram/libyami
08d3ecbbfe1f5d23d433523f747a7093a0b3a13a
[ "Apache-2.0" ]
626
2015-01-12T00:01:26.000Z
2018-01-23T18:58:58.000Z
codecparsers/vp9parser.cpp
genisysram/libyami
08d3ecbbfe1f5d23d433523f747a7093a0b3a13a
[ "Apache-2.0" ]
104
2015-01-12T04:02:09.000Z
2017-12-28T08:27:42.000Z
/* * Copyright 2016 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
34.17768
154
0.653792
genisysram
d89c9b95521a33dca025ff45cb1e46b31018c3f0
2,137
cc
C++
design-pattern/creational/factory_method.cc
curoky/my-own-x
825273af2d73dff76562422ca87a077635ee870b
[ "Apache-2.0" ]
null
null
null
design-pattern/creational/factory_method.cc
curoky/my-own-x
825273af2d73dff76562422ca87a077635ee870b
[ "Apache-2.0" ]
null
null
null
design-pattern/creational/factory_method.cc
curoky/my-own-x
825273af2d73dff76562422ca87a077635ee870b
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2018-2022 curoky(cccuroky@gmail.com). * * This file is part of my-own-x. * See https://github.com/curoky/my-own-x for further info. * * 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...
28.493333
96
0.718297
curoky
d89f410ee574765481e3a36294c4bdb915b9e62a
2,261
cpp
C++
main.cpp
paramsingh/gameboy
b6e57d14e975975fb1cdb85634682918c54cdb43
[ "MIT" ]
31
2016-08-31T10:19:06.000Z
2022-01-11T00:04:21.000Z
main.cpp
paramsingh/gameboy
b6e57d14e975975fb1cdb85634682918c54cdb43
[ "MIT" ]
null
null
null
main.cpp
paramsingh/gameboy
b6e57d14e975975fb1cdb85634682918c54cdb43
[ "MIT" ]
18
2016-08-19T07:21:44.000Z
2022-03-19T14:35:45.000Z
#include <bits/stdc++.h> #include <SDL2/SDL.h> using namespace std; #include "cpu/cpu.hpp" #include "cpu/cpu.cpp" #include "ops/ops.hpp" #include "ops/ops.cpp" #include "gui/gui.hpp" #include "gui/gui.cpp" #include "gpu/gpu.hpp" #include "gpu/gpu.cpp" const int fps = 60; const int ticks_per_frame = 1000 / 60; // TODO...
21.330189
77
0.513047
paramsingh
d8a38e5258811eb165bc3e3898308603f0c05dfd
174
cpp
C++
node2/src/init.cpp
eirikeve/ttk4155-byggern
07f33b70ed5e02214705f81d2537371b538716eb
[ "MIT" ]
null
null
null
node2/src/init.cpp
eirikeve/ttk4155-byggern
07f33b70ed5e02214705f81d2537371b538716eb
[ "MIT" ]
null
null
null
node2/src/init.cpp
eirikeve/ttk4155-byggern
07f33b70ed5e02214705f81d2537371b538716eb
[ "MIT" ]
null
null
null
#include "../include/init.h" // void init() { // init_timer(); // init_uart(); // can_init(); // ADC_internal& adc_internal = ADC_internal::getInstance(); // }
19.333333
64
0.58046
eirikeve
d8a4014bf20f395ce43b7168392b63d604bc2586
346
cpp
C++
C++/sum-of-digits-in-the-minimum-number.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
C++/sum-of-digits-in-the-minimum-number.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
C++/sum-of-digits-in-the-minimum-number.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
// Time: O(n * l), l is the max length of numbers // Space: O(l) class Solution { public: int sumOfDigits(vector<int>& A) { int min_num = *min_element(A.begin(),A.end()); int total = 0; while (min_num) { total += min_num % 10; min_num /= 10; } return...
21.625
54
0.488439
jaiskid
d8ad75d32fe936031a6c65bbb6bc7d6318b204cc
4,244
cpp
C++
src/platform/lpc17xx/power.cpp
wangyanjunmsn/vi-firmware
a5940ab6c773457d4c41e80273ae0ce327164d60
[ "BSD-3-Clause" ]
148
2015-01-01T18:32:25.000Z
2022-03-05T12:02:24.000Z
src/platform/lpc17xx/power.cpp
wangyanjunmsn/vi-firmware
a5940ab6c773457d4c41e80273ae0ce327164d60
[ "BSD-3-Clause" ]
109
2015-02-11T16:33:49.000Z
2021-01-04T16:14:00.000Z
src/platform/lpc17xx/power.cpp
wangyanjunmsn/vi-firmware
a5940ab6c773457d4c41e80273ae0ce327164d60
[ "BSD-3-Clause" ]
89
2015-02-04T00:39:29.000Z
2021-10-03T00:01:17.000Z
#include "power.h" #include "util/log.h" #include "gpio.h" #include "lpc17xx_pinsel.h" #include "lpc17xx_clkpwr.h" #include "lpc17xx_wdt.h" #define POWER_CONTROL_PORT 2 #define POWER_CONTROL_PIN 13 #define PROGRAM_BUTTON_PORT 2 #define PROGRAM_BUTTON_PIN 12 namespace gpio = openxc::gpio; using openxc::gpio::GPIO_VA...
31.671642
85
0.723139
wangyanjunmsn
d8ad9b57ba96684e2d202bffd040cf4b8cd25d22
2,228
cpp
C++
src/time.cpp
kushaldalsania/haystack-cpp
95997ae2bca9ea096dc7e61c000291f3ac08d9d7
[ "AFL-3.0" ]
null
null
null
src/time.cpp
kushaldalsania/haystack-cpp
95997ae2bca9ea096dc7e61c000291f3ac08d9d7
[ "AFL-3.0" ]
null
null
null
src/time.cpp
kushaldalsania/haystack-cpp
95997ae2bca9ea096dc7e61c000291f3ac08d9d7
[ "AFL-3.0" ]
null
null
null
// // Copyright (c) 2015, J2 Innovations // Copyright (c) 2012 Brian Frank // Licensed under the Academic Free License version 3.0 // History: // 06 Jun 2011 Brian Frank Creation // 19 Aug 2014 Radu Racariu<radur@2inn.com> Ported to C++ // #include "time.hpp" #include <sstream> #include <ctime> ///////////////...
26.211765
98
0.480251
kushaldalsania
d8b3a99a7dacc8d1ee20bd5a58d8d53b7dd355e3
40,105
cpp
C++
geometrictools/utils/image_cpu.cpp
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
3
2020-11-07T18:12:50.000Z
2021-06-11T22:56:09.000Z
geometrictools/utils/image_cpu.cpp
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
null
null
null
geometrictools/utils/image_cpu.cpp
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
null
null
null
#include "image.h" #include "image_cpu.h" #include "transforms/interpolation.h" #include "utils/utilities.h" using namespace std; Interval roundIntervalToInt(const Interval& i) { Interval in = i.meet({0, 1}); float inf = in.inf * 255.0f; int inf_lower = floorf(inf); if (inf_lower == roundf(inf)) { inf ...
32.792314
187
0.522279
eth-sri
d8b48ddfbda489b7b393ff79497c2ac72d382948
2,095
cpp
C++
simulation/Rendering/Window.cpp
Terae/3D_Langton_Ant
017dadbe2962018db043bf50e8a6dcd49ade0eac
[ "MIT" ]
null
null
null
simulation/Rendering/Window.cpp
Terae/3D_Langton_Ant
017dadbe2962018db043bf50e8a6dcd49ade0eac
[ "MIT" ]
null
null
null
simulation/Rendering/Window.cpp
Terae/3D_Langton_Ant
017dadbe2962018db043bf50e8a6dcd49ade0eac
[ "MIT" ]
null
null
null
// // Created by benji on 10/11/16. // #include "Window.h" #include "Context.h" void glfwErrorCallback(int error, const char* description) { std::cerr << _RED("There was a glfw error : ") << description << _RED(" (" + std::to_string(error) + ")") << std::endl; } Window::Window(std::string title) { std::cou...
24.08046
123
0.681623
Terae
d8bab90ef5648fdbaf3215e78ab86b647e808d74
88
cpp
C++
src/core/Distributor.cpp
jozhalaj/gateway
49168dcbcf833da690048880bb33542ffbc90ce3
[ "BSD-3-Clause" ]
7
2018-06-09T05:55:59.000Z
2021-01-05T05:19:02.000Z
src/core/Distributor.cpp
jozhalaj/gateway
49168dcbcf833da690048880bb33542ffbc90ce3
[ "BSD-3-Clause" ]
1
2019-12-25T10:39:06.000Z
2020-01-03T08:35:29.000Z
src/core/Distributor.cpp
jozhalaj/gateway
49168dcbcf833da690048880bb33542ffbc90ce3
[ "BSD-3-Clause" ]
11
2018-05-10T08:29:05.000Z
2020-01-22T20:49:32.000Z
#include "core/Distributor.h" using namespace BeeeOn; Distributor::~Distributor() { }
11
29
0.738636
jozhalaj
d8befa451c1a63907b4b8ddd0f23ce49f4c051be
862
cpp
C++
atcoder/B - Palindrome-philia/AC.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
atcoder/B - Palindrome-philia/AC.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
atcoder/B - Palindrome-philia/AC.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729 created: 2019-12-08 18:03:30 * solution_verdict: AC language: C++14 (GCC 5.4.1) * run...
43.1
111
0.37123
kzvd4729
d8bf6f2fc9a378f878a916d6e37e9a41f08a12af
1,313
cpp
C++
libdocscript/src/runtime/procedure/lambda_procedure.cpp
sotvokun/docscript
0718c8943e895672b9570524cd9eb7ff019d079f
[ "MIT" ]
1
2021-12-11T11:04:21.000Z
2021-12-11T11:04:21.000Z
libdocscript/src/runtime/procedure/lambda_procedure.cpp
sotvokun/docscript
0718c8943e895672b9570524cd9eb7ff019d079f
[ "MIT" ]
null
null
null
libdocscript/src/runtime/procedure/lambda_procedure.cpp
sotvokun/docscript
0718c8943e895672b9570524cd9eb7ff019d079f
[ "MIT" ]
null
null
null
#include "libdocscript/runtime/datatype.h" #include "libdocscript/runtime/procedure.h" #include "libdocscript/runtime/value.h" #include "libdocscript/runtime/environment.h" #include "libdocscript/interpreter.h" namespace libdocscript::runtime { // +--------------------+ // Constructor // +--------------------+ ...
25.745098
77
0.600914
sotvokun
d8c04a13313137cf5a7cf0c58c970a13042dcce3
376
cpp
C++
patterns/adapter/main.cpp
PotatoMaster101/pats
7429125a4b34fa1ba4ad6710a1753a547909f73c
[ "MIT" ]
null
null
null
patterns/adapter/main.cpp
PotatoMaster101/pats
7429125a4b34fa1ba4ad6710a1753a547909f73c
[ "MIT" ]
null
null
null
patterns/adapter/main.cpp
PotatoMaster101/pats
7429125a4b34fa1ba4ad6710a1753a547909f73c
[ "MIT" ]
null
null
null
#include <iostream> #include <memory> #include "adapter.hpp" int main(int argc, const char *argv[]) { auto legacy = std::make_unique<legacy_rect>(1, 2, 3, 4); // x1 x2 y1 y2 auto modern = std::make_unique<rect_adapter>(1, 2, 3, 4); // x y w h legacy->legacy_print(); // prints 1 3 2 4 modern...
31.333333
78
0.582447
PotatoMaster101
d8c07138e588daf79752f92dbe2f0522ae53bc14
887
cpp
C++
ExemploExcecoesTryCatchThrow/ClasseHerdeiraException.cpp
lucaslgr/LearningCplusplus
579e4ddc8a55605af9b46e24bfb91897d3be0274
[ "MIT" ]
1
2020-07-14T16:49:52.000Z
2020-07-14T16:49:52.000Z
ExemploExcecoesTryCatchThrow/ClasseHerdeiraException.cpp
lucaslgr/LearningCplusplus
579e4ddc8a55605af9b46e24bfb91897d3be0274
[ "MIT" ]
null
null
null
ExemploExcecoesTryCatchThrow/ClasseHerdeiraException.cpp
lucaslgr/LearningCplusplus
579e4ddc8a55605af9b46e24bfb91897d3be0274
[ "MIT" ]
null
null
null
#include <iostream> #include <string.h> #include <exception> using namespace std; class ExcecaoCustomizada : public exception { protected: char msg[100]; public: ExcecaoCustomizada(const char* e) { strcpy(msg, e); } virtual const char* what() { ...
17.392157
54
0.470124
lucaslgr
d8cd55713bb6d0e47bcf9a195ec14a4b22825b20
765
cpp
C++
lib/Dialect/XTen/IR/XTenDialect.cpp
jcamacho1234/mlir-xten
721f97fc01dd39a2f54ef3b409ceb5a9528c61f4
[ "Apache-2.0" ]
10
2021-11-05T00:08:47.000Z
2022-02-09T20:12:56.000Z
lib/Dialect/XTen/IR/XTenDialect.cpp
jcamacho1234/mlir-xten
721f97fc01dd39a2f54ef3b409ceb5a9528c61f4
[ "Apache-2.0" ]
1
2022-01-27T17:21:14.000Z
2022-01-27T17:22:41.000Z
lib/Dialect/XTen/IR/XTenDialect.cpp
jcamacho1234/mlir-xten
721f97fc01dd39a2f54ef3b409ceb5a9528c61f4
[ "Apache-2.0" ]
6
2021-11-10T06:49:47.000Z
2021-12-22T19:02:48.000Z
//===- XTenDialect.cpp ------------------------------------------*- C++ -*-===// // // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // // (c) Copyright 2021 Xilinx Inc. //...
27.321429
80
0.605229
jcamacho1234
d8d336b7d950ba8da6e2731acc03269305ba9c66
3,136
cpp
C++
Misc/foobarnowplayingannouncer.cpp
exscape/lyricusqt
69c9fc3c38833459493f136f65c9ede8940f0d77
[ "MIT" ]
null
null
null
Misc/foobarnowplayingannouncer.cpp
exscape/lyricusqt
69c9fc3c38833459493f136f65c9ede8940f0d77
[ "MIT" ]
null
null
null
Misc/foobarnowplayingannouncer.cpp
exscape/lyricusqt
69c9fc3c38833459493f136f65c9ede8940f0d77
[ "MIT" ]
null
null
null
#include "foobarnowplayingannouncer.h" #include <QDebug> #include <QThread> #include <QFile> // This should be more than enough, since the struct is smaller #define BUFSIZE 2048 struct songInfo { // These are in UTF-8; use QString::fromUtf8() to create a QString char artist[512]; char title[512]; char...
34.461538
153
0.601403
exscape
d8d41db745f162d061bcb56fdf849608ac910537
1,179
cpp
C++
Shoot/src/Color.cpp
franticsoftware/vlad-heavy-strike
a4da4df617e9ccd6ebd9819ad166d892924638ce
[ "MIT" ]
3
2019-10-04T19:44:44.000Z
2021-07-27T15:59:39.000Z
Shoot/src/Color.cpp
franticsoftware/vlad-heavy-strike
a4da4df617e9ccd6ebd9819ad166d892924638ce
[ "MIT" ]
1
2019-07-20T05:36:31.000Z
2019-07-20T22:22:49.000Z
Shoot/src/Color.cpp
aminere/vlad-heavy-strike
a4da4df617e9ccd6ebd9819ad166d892924638ce
[ "MIT" ]
null
null
null
/* Amine Rehioui Created: May 1st 2010 */ #include "Shoot.h" #include "Color.h" namespace shoot { // static variables initialization Color Color::Red = Color(1.0f, 0.0f, 0.0f, 1.0f); Color Color::Green = Color(0.0f, 1.0f, 0.0f, 1.0f); Color Color::Blue = Color(0.0f, 0.0f, 1.0f, 1.0f); Color Color::White = C...
21.436364
59
0.617472
franticsoftware
d8deb83ab03c9ca632a51a4283072a78d2a0add6
9,846
cpp
C++
src/main.cpp
katsumin/HomeM5
ca0cf55e3d6a415d2a07d9adcc81b1f9c9a3b021
[ "MIT" ]
null
null
null
src/main.cpp
katsumin/HomeM5
ca0cf55e3d6a415d2a07d9adcc81b1f9c9a3b021
[ "MIT" ]
null
null
null
src/main.cpp
katsumin/HomeM5
ca0cf55e3d6a415d2a07d9adcc81b1f9c9a3b021
[ "MIT" ]
null
null
null
#include <queue> #include <M5Stack.h> #include <time.h> #include <WiFi.h> #include <WiFiMulti.h> #include <Ethernet.h> #include <Wire.h> #include <BME280_t.h> // import BME280 template library #include "InfluxDb.h" #include "smartmeter.h" #include "config.h" #include "debugView.h" #include "FunctionButton.h" #include "...
24.132353
141
0.657323
katsumin
d8df3c1daffa3d064eeca194082eebff5b91e34e
311
cpp
C++
legion/engine/llri-dx/llri.cpp
Rythe-Interactive/Legion-LLRI
e0cc449cc8c2ba0701a73b8c07b80ccfd8f20477
[ "MIT" ]
16
2021-09-10T18:11:37.000Z
2022-01-26T06:28:51.000Z
legion/engine/llri-dx/llri.cpp
Rythe-Interactive/Legion-LLRI
e0cc449cc8c2ba0701a73b8c07b80ccfd8f20477
[ "MIT" ]
13
2021-09-12T16:28:47.000Z
2022-02-07T19:34:01.000Z
legion/engine/llri-dx/llri.cpp
Rythe-Interactive/Legion-LLRI
e0cc449cc8c2ba0701a73b8c07b80ccfd8f20477
[ "MIT" ]
1
2021-08-15T23:35:32.000Z
2021-08-15T23:35:32.000Z
/** * @file llri.cpp * @copyright 2021-2021 Leon Brands. All rights served. * @license: https://github.com/Legion-Engine/Legion-LLRI/blob/main/LICENSE */ #include <llri/llri.hpp> namespace llri { [[nodiscard]] implementation getImplementation() { return implementation::DirectX12; } }
19.4375
75
0.678457
Rythe-Interactive
d8e4153c4406f004e7438070813d1b8ed7ad35ac
958
cpp
C++
dev/test/simple_start_stop/main.cpp
Stiffstream/mosquitto_transport
b7bd85746b7b5ba9f96a9128a12292ebb0604454
[ "BSD-3-Clause" ]
3
2020-01-25T12:49:55.000Z
2021-11-08T10:42:09.000Z
dev/test/simple_start_stop/main.cpp
Stiffstream/mosquitto_transport
b7bd85746b7b5ba9f96a9128a12292ebb0604454
[ "BSD-3-Clause" ]
null
null
null
dev/test/simple_start_stop/main.cpp
Stiffstream/mosquitto_transport
b7bd85746b7b5ba9f96a9128a12292ebb0604454
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <mosquitto_transport/a_transport_manager.hpp> #include <so_5/all.hpp> using namespace std::chrono_literals; void do_test() { mosquitto_transport::lib_initializer_t mosq_lib; so_5::launch( [&mosq_lib]( auto & env ) { env.introduce_coop( [&mosq_lib]( so_5::coop_t & coop ) { using ...
19.16
58
0.627349
Stiffstream
d8e694d86bf0df4afeb16f257b966127ed42f3fd
867
cpp
C++
projects/abuild/cache/abi.cpp
agnesoft/adev-alt
3df0329939e3048bbf5db252efb5f74de9c0f061
[ "Apache-2.0" ]
null
null
null
projects/abuild/cache/abi.cpp
agnesoft/adev-alt
3df0329939e3048bbf5db252efb5f74de9c0f061
[ "Apache-2.0" ]
null
null
null
projects/abuild/cache/abi.cpp
agnesoft/adev-alt
3df0329939e3048bbf5db252efb5f74de9c0f061
[ "Apache-2.0" ]
null
null
null
#ifndef __clang__ export module abuild.cache:abi; export import astl; #endif namespace abuild { //! The `ABI` represent the compiler toolchain //! application binary interface. export struct ABI { //! Processor architecture. enum class Architecture { //! ARM ARM, //! Intel x86 ...
15.763636
50
0.558247
agnesoft
d8e8d67e6a22e721c27a4f9ef527f81eb4c477a2
1,201
cpp
C++
9999/1197.cpp
rmagur1203/acmicpc
83c4018548e42fc758b3858e8290990701e69e73
[ "MIT" ]
null
null
null
9999/1197.cpp
rmagur1203/acmicpc
83c4018548e42fc758b3858e8290990701e69e73
[ "MIT" ]
null
null
null
9999/1197.cpp
rmagur1203/acmicpc
83c4018548e42fc758b3858e8290990701e69e73
[ "MIT" ]
1
2022-01-11T05:03:52.000Z
2022-01-11T05:03:52.000Z
#include <iostream> #include <tuple> #include <vector> #include <queue> using namespace std; vector<pair<int, int>> graph[10001]; int visited[10001]; int main() { cin.tie(NULL)->sync_with_stdio(false); int V, E; cin >> V >> E; for (int i = 0; i < E; i++) { int s, e, w; cin >> s >>...
24.510204
75
0.512073
rmagur1203
d8e99a8f9376036a394248698698d57d76039d1d
12,337
cpp
C++
GraphicsSandbox/Engine.cpp
UberCelloCzar/GraphicsSandbox
3a96f99ca3693a67fdff69fdf7d338e8e5d21086
[ "MIT" ]
null
null
null
GraphicsSandbox/Engine.cpp
UberCelloCzar/GraphicsSandbox
3a96f99ca3693a67fdff69fdf7d338e8e5d21086
[ "MIT" ]
null
null
null
GraphicsSandbox/Engine.cpp
UberCelloCzar/GraphicsSandbox
3a96f99ca3693a67fdff69fdf7d338e8e5d21086
[ "MIT" ]
null
null
null
#include "Engine.h" #include "D11Graphics.h" Engine::Engine() { } Engine::~Engine() { } void Engine::Initialize() { assetManager = new AssetManager(); graphics = new D11Graphics(); // Create whichever graphics system we're using and initialize it graphics->Initialize(); GameSetup(); __int64 perfFreq; Que...
39.415335
258
0.739078
UberCelloCzar
d8efad03b3048947dc4ca59b2e5113576c4760ba
475
cc
C++
extensions/basic/types_bucket/types_bucket.cc
blockspacer/chromium_base_conan
b4749433cf34f54d2edff52e2f0465fec8cb9bad
[ "Apache-2.0", "BSD-3-Clause" ]
6
2020-12-22T05:48:31.000Z
2022-02-08T19:49:49.000Z
extensions/basic/types_bucket/types_bucket.cc
blockspacer/chromium_base_conan
b4749433cf34f54d2edff52e2f0465fec8cb9bad
[ "Apache-2.0", "BSD-3-Clause" ]
4
2020-05-22T18:36:43.000Z
2021-05-19T10:20:23.000Z
extensions/basic/types_bucket/types_bucket.cc
blockspacer/chromium_base_conan
b4749433cf34f54d2edff52e2f0465fec8cb9bad
[ "Apache-2.0", "BSD-3-Clause" ]
2
2019-12-06T11:48:16.000Z
2021-09-16T04:44:47.000Z
#include "basic/types_bucket/types_bucket.h" // IWYU pragma: associated #include <base/memory/singleton.h> #include <base/no_destructor.h> #include <base/task/post_task.h> #include <base/threading/sequence_local_storage_slot.h> #include <base/threading/sequenced_task_runner_handle.h> #include <base/memory/ptr_util.h> ...
21.590909
71
0.772632
blockspacer
d8f3c20502910b642f3ca733a9c5e5b8a24ad94c
607
cpp
C++
C++/Dynamic_Programming/1003.cpp
SkydevilK/BOJ
4b79a258c52aca24683531d64736b91cbdfca3f2
[ "MIT" ]
null
null
null
C++/Dynamic_Programming/1003.cpp
SkydevilK/BOJ
4b79a258c52aca24683531d64736b91cbdfca3f2
[ "MIT" ]
null
null
null
C++/Dynamic_Programming/1003.cpp
SkydevilK/BOJ
4b79a258c52aca24683531d64736b91cbdfca3f2
[ "MIT" ]
null
null
null
#include<iostream> #include<cstring> using namespace std; int note_zero[41]; int note_one[41]; void dp() { for (int i = 2; i < 41; ++i) { note_zero[i] = note_zero[i - 2] + note_zero[i - 1]; note_one[i] = note_one[i - 2] + note_one[i - 1]; } } int main(void) { ios::sync_with_stdio(false); memset(note_zero, -1, ...
18.393939
53
0.578254
SkydevilK
d8f5827ed2e61a8b336526ab372312d3a21186ff
666
hpp
C++
Canteen.hpp
dianabacon/stalag-escape
445085f1d95bec4190f29d72843bf4878d8f45ac
[ "MIT" ]
null
null
null
Canteen.hpp
dianabacon/stalag-escape
445085f1d95bec4190f29d72843bf4878d8f45ac
[ "MIT" ]
null
null
null
Canteen.hpp
dianabacon/stalag-escape
445085f1d95bec4190f29d72843bf4878d8f45ac
[ "MIT" ]
null
null
null
/********************************************************************* ** Program Filename: Canteen.cpp ** Author: Diana Bacon ** Date: 2015-12-05 ** Description: Definition of the Canteen class. Functions and data ** related to the derived class for Canteen spaces. ********************************************...
25.615385
71
0.510511
dianabacon
d8f5f664fe03cf939591e9af0b3f1e7f625f0439
2,430
cc
C++
tests/libtests/bc/obsolete/TestBoundaryConditionPoints.cc
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
93
2015-01-08T16:41:22.000Z
2022-02-25T13:40:02.000Z
tests/libtests/bc/obsolete/TestBoundaryConditionPoints.cc
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
277
2015-02-20T16:27:35.000Z
2022-03-30T21:13:09.000Z
tests/libtests/bc/obsolete/TestBoundaryConditionPoints.cc
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
71
2015-03-24T12:11:08.000Z
2022-03-03T04:26:02.000Z
// -*- C++ -*- // // ---------------------------------------------------------------------- // // Brad T. Aagaard, U.S. Geological Survey // Charles A. Williams, GNS Science // Matthew G. Knepley, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://...
30.759494
76
0.654321
Grant-Block
d8f72b9194e0af9370f4ece7e39abd1393eef4a3
567
hpp
C++
src/palm/batch.hpp
leezhenghui/Mushroom
8aed2bdd80453d856145925d067bef5ed9d10ee0
[ "BSD-3-Clause" ]
351
2016-10-12T14:06:09.000Z
2022-03-24T14:53:54.000Z
src/palm/batch.hpp
leezhenghui/Mushroom
8aed2bdd80453d856145925d067bef5ed9d10ee0
[ "BSD-3-Clause" ]
7
2017-03-07T01:49:16.000Z
2018-07-27T08:51:54.000Z
src/palm/batch.hpp
UncP/Mushroom
8aed2bdd80453d856145925d067bef5ed9d10ee0
[ "BSD-3-Clause" ]
62
2016-10-31T12:46:45.000Z
2021-12-28T11:25:26.000Z
/** * > Author: UncP * > Github: www.github.com/UncP/Mushroom * > License: BSD-3 * > Time: 2018-7-28 15:33:00 **/ #ifndef _BATCH_HPP_ #define _BATCH_HPP_ #include "../include/utility.hpp" namespace Mushroom { class KeySlice; class Batch : private NoCopy { public: static uint32_t Si...
14.921053
50
0.643739
leezhenghui
d8f7962309b2a67a96dd3175fe91d2d67fc5eb4e
10,980
cpp
C++
project/src/main.cpp
PhuNH/hpc-lab
25874fc36c87c57f2b6312d93897de9b898fbf26
[ "MIT" ]
null
null
null
project/src/main.cpp
PhuNH/hpc-lab
25874fc36c87c57f2b6312d93897de9b898fbf26
[ "MIT" ]
null
null
null
project/src/main.cpp
PhuNH/hpc-lab
25874fc36c87c57f2b6312d93897de9b898fbf26
[ "MIT" ]
null
null
null
#include <cmath> #include <iostream> #include <mpi.h> #include "tclap/CmdLine.h" #include "typedefs.h" #include "Simulator.h" #include "Grid.h" #include "InitialCondition.h" #include "RankDependentOutput.h" #include "GlobalMatrices.h" #include "microkernels.h" void computeAuxMatrices(GlobalConstants& globals) { d...
37.220339
252
0.650546
PhuNH
d8f910b00400f6a61a3f8ce43feb3f07939971c1
912
cpp
C++
test/bench2_rosenbrock.cpp
marcorushdy/realGen
2441cbb81d034137926c0f50c7dcdc6777329b76
[ "MIT" ]
16
2017-04-23T23:24:08.000Z
2021-03-12T21:38:28.000Z
test/bench2_rosenbrock.cpp
marcorushdy/realGen
2441cbb81d034137926c0f50c7dcdc6777329b76
[ "MIT" ]
null
null
null
test/bench2_rosenbrock.cpp
marcorushdy/realGen
2441cbb81d034137926c0f50c7dcdc6777329b76
[ "MIT" ]
6
2017-06-14T11:50:37.000Z
2019-05-16T20:09:07.000Z
#include "testcommon.h" #include "fitnessfunction.h" class RosenbrockFitness : public FitnessFunction { public: RosenbrockFitness() {} double eval(const RealGenotype &g) { double dx1 = g.gene[0]*g.gene[0]-g.gene[1]; double dx2 = 1.0 - g.gene[0]; return 100.0*dx1*dx1+dx2*dx2; ...
26.823529
68
0.639254
marcorushdy
d8febc737fe1416c65cd87a7bace3dc194b673ca
3,369
cpp
C++
source_code/system_sys/source_code/gui/Sys_Output_Flag_Dia.cpp
dabachma/ProMaIDes_src
3fa6263c46f89abbdb407f2e1643843d54eb6ccc
[ "BSD-3-Clause" ]
null
null
null
source_code/system_sys/source_code/gui/Sys_Output_Flag_Dia.cpp
dabachma/ProMaIDes_src
3fa6263c46f89abbdb407f2e1643843d54eb6ccc
[ "BSD-3-Clause" ]
null
null
null
source_code/system_sys/source_code/gui/Sys_Output_Flag_Dia.cpp
dabachma/ProMaIDes_src
3fa6263c46f89abbdb407f2e1643843d54eb6ccc
[ "BSD-3-Clause" ]
null
null
null
#include "Sys_Headers_Precompiled.h" //#include "Sys_Output_Flag_Dia.h" // Constructor Sys_Output_Flag_Dia::Sys_Output_Flag_Dia(QWidget *parent) : QDialog(parent){ this->old_flag=false; this->new_flag=false; ui.setupUi(this); ui.checkBox->setChecked(this->old_flag); QObject::connect(ui.okButton, SIGNAL(clicked...
30.908257
96
0.724844
dabachma
2b045b93305594bb73add275c035977d2754913a
322
cpp
C++
compendium/test_bundles/TestBundleDSDependentOptional/src/ServiceImpl.cpp
fmilano/CppMicroServices
b7e79edb558a63e45f6788e4a8b4e787cf956689
[ "Apache-2.0" ]
588
2015-10-07T15:55:08.000Z
2022-03-29T00:35:44.000Z
compendium/test_bundles/TestBundleDSDependentOptional/src/ServiceImpl.cpp
fmilano/CppMicroServices
b7e79edb558a63e45f6788e4a8b4e787cf956689
[ "Apache-2.0" ]
459
2015-10-05T23:29:59.000Z
2022-03-29T14:13:37.000Z
compendium/test_bundles/TestBundleDSDependentOptional/src/ServiceImpl.cpp
fmilano/CppMicroServices
b7e79edb558a63e45f6788e4a8b4e787cf956689
[ "Apache-2.0" ]
218
2015-11-04T08:19:48.000Z
2022-03-24T02:17:08.000Z
#include "ServiceImpl.hpp" namespace dependent { TestBundleDSDependentOptionalImpl::TestBundleDSDependentOptionalImpl( const std::shared_ptr<test::TestBundleDSUpstreamDependency>& c) : test::TestBundleDSDependent() , ref(c) {} TestBundleDSDependentOptionalImpl::~TestBundleDSDependentOptionalImpl() = default; ...
24.769231
73
0.807453
fmilano
2b0b1a3c8acf26e971ecac158c0b31e96a01c8c3
3,581
cpp
C++
src/orocos_kinematics_dynamics/orocos_kdl/src/treeiksolverpos_nr_jl.cpp
matchRos/simulation_multirobots
286c5add84d521ad371b2c8961dea872c34e7da2
[ "BSD-2-Clause" ]
742
2017-07-05T02:49:36.000Z
2022-03-30T12:55:43.000Z
src/orocos_kinematics_dynamics/orocos_kdl/src/treeiksolverpos_nr_jl.cpp
matchRos/simulation_multirobots
286c5add84d521ad371b2c8961dea872c34e7da2
[ "BSD-2-Clause" ]
73
2017-07-06T12:50:51.000Z
2022-03-07T08:07:07.000Z
src/orocos_kinematics_dynamics/orocos_kdl/src/treeiksolverpos_nr_jl.cpp
matchRos/simulation_multirobots
286c5add84d521ad371b2c8961dea872c34e7da2
[ "BSD-2-Clause" ]
425
2017-07-04T22:03:29.000Z
2022-03-29T06:59:06.000Z
// Copyright (C) 2007-2008 Ruben Smits <ruben dot smits at mech dot kuleuven dot be> // Copyright (C) 2008 Mikael Mayer // Copyright (C) 2008 Julia Jesse // Version: 1.0 // Author: Ruben Smits <ruben dot smits at mech dot kuleuven dot be> // Maintainer: Ruben Smits <ruben dot smits at mech dot kuleuven dot be...
42.129412
106
0.586987
matchRos
2b0c787652070af035f365871a15e179c7f10756
505
cpp
C++
src/test/config/schema.cpp
mpoeter/config
9a20b1dde685d42190310fa51ecd271e66d90ea0
[ "MIT" ]
1
2020-03-17T20:47:52.000Z
2020-03-17T20:47:52.000Z
src/test/config/schema.cpp
mpoeter/config
9a20b1dde685d42190310fa51ecd271e66d90ea0
[ "MIT" ]
null
null
null
src/test/config/schema.cpp
mpoeter/config
9a20b1dde685d42190310fa51ecd271e66d90ea0
[ "MIT" ]
null
null
null
// Copyright (c) 2019-2020 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/config/ #include <tao/config.hpp> #include <tao/config/schema.hpp> int main() { const auto tcs = tao::config::schema::from_file( "tests/schema.tcs" ); const auto data = tao::config::f...
28.055556
76
0.645545
mpoeter
2b0dbed5783e7ff3c89e007e407fb39d6512d7d5
1,467
cpp
C++
src/mayaToCorona/src/Corona/CoronaRoundCorners.cpp
haggi/OpenMaya
746e0740f480d9ef8d2173f31b3c99b9b0ea0d24
[ "MIT" ]
42
2015-01-03T15:07:25.000Z
2021-12-09T03:56:59.000Z
src/mayaToCorona/src/Corona/CoronaRoundCorners.cpp
haggi/OpenMaya
746e0740f480d9ef8d2173f31b3c99b9b0ea0d24
[ "MIT" ]
66
2015-01-02T13:28:44.000Z
2022-03-16T14:00:57.000Z
src/mayaToCorona/src/Corona/CoronaRoundCorners.cpp
haggi/OpenMaya
746e0740f480d9ef8d2173f31b3c99b9b0ea0d24
[ "MIT" ]
12
2015-02-07T05:02:17.000Z
2020-07-10T17:21:44.000Z
#include "Corona.h" #include "CoronaRoundCorners.h" #include <maya/MFnDependencyNode.h> #include "utilities/attrTools.h" #include "world.h" #include "renderGlobals.h" RoundCorners::RoundCorners(MObject shaderObject) { MFnDependencyNode depFn(shaderObject); radius = getFloatAttr("radius", depFn, 0.0f); samplesCount ...
28.764706
119
0.748466
haggi
2b0e369b3ee9925c6967788de2cba07a22e4465a
842
cc
C++
CPP/biweekly-contest-33/No1.cc
hxz1998/funny_leetcode
1d2c425af09b57a030fc018ddc1e1a5ffb966cd0
[ "Apache-2.0" ]
null
null
null
CPP/biweekly-contest-33/No1.cc
hxz1998/funny_leetcode
1d2c425af09b57a030fc018ddc1e1a5ffb966cd0
[ "Apache-2.0" ]
null
null
null
CPP/biweekly-contest-33/No1.cc
hxz1998/funny_leetcode
1d2c425af09b57a030fc018ddc1e1a5ffb966cd0
[ "Apache-2.0" ]
null
null
null
/** * Created by Xiaozhong on 2020/8/22. * Copyright (c) 2020/8/22 Xiaozhong. All rights reserved. */ #include "string" #include "vector" #include "iostream" #include "algorithm" using namespace std; class Solution { public: string thousandSeparator(int n) { if (n == 0) return "0"; if (n < 1000...
23.388889
58
0.511876
hxz1998
2b0f385d3a233869388c2265c1633d8543717815
46,960
cpp
C++
Breeder/BR.cpp
wolqws/sws
4086745d38cc7375ee38843214a63bd8d285a84d
[ "MIT", "Unlicense" ]
null
null
null
Breeder/BR.cpp
wolqws/sws
4086745d38cc7375ee38843214a63bd8d285a84d
[ "MIT", "Unlicense" ]
null
null
null
Breeder/BR.cpp
wolqws/sws
4086745d38cc7375ee38843214a63bd8d285a84d
[ "MIT", "Unlicense" ]
null
null
null
/***************************************************************************** / BR.cpp / / Copyright (c) 2012-2014 Dominik Martin Drzic / http://forum.cockos.com/member.php?u=27094 / https://code.google.com/p/sws-extension / / Permission is hereby granted, free of charge, to any person obtaining a copy / of th...
129.723757
246
0.549127
wolqws
2b0f49c1638c7ea6bf8f3d63268c53943d885bd0
21,707
hpp
C++
src/character/character.hpp
Galfurian/RadMud
1362cb0ee1b7a17386e57a98e29dd8baeea75af3
[ "MIT" ]
18
2016-05-26T18:11:31.000Z
2022-02-10T20:00:52.000Z
src/character/character.hpp
Galfurian/RadMud
1362cb0ee1b7a17386e57a98e29dd8baeea75af3
[ "MIT" ]
null
null
null
src/character/character.hpp
Galfurian/RadMud
1362cb0ee1b7a17386e57a98e29dd8baeea75af3
[ "MIT" ]
2
2016-06-30T15:20:01.000Z
2020-08-27T18:28:33.000Z
/// @file character.hpp /// @brief Define all the methods need to manipulate a character. /// @details It's the master class for both Player and Mobile, here are defined /// all the common methods needed to manipulate every dynamic living /// beeing that are playing. /// @author Enrico Fraccar...
39.111712
89
0.642466
Galfurian
2b108cb66775235bc0ce8abd982dc031aad83e6d
760
hpp
C++
TurbulentArena/DebugWindow.hpp
doodlemeat/Turbulent-Arena
9030f291693e670f7751e23538e649cc24dc929f
[ "MIT" ]
2
2017-02-03T04:30:29.000Z
2017-03-27T19:33:38.000Z
TurbulentArena/DebugWindow.hpp
doodlemeat/Turbulent-Arena
9030f291693e670f7751e23538e649cc24dc929f
[ "MIT" ]
null
null
null
TurbulentArena/DebugWindow.hpp
doodlemeat/Turbulent-Arena
9030f291693e670f7751e23538e649cc24dc929f
[ "MIT" ]
null
null
null
//DebugWindow.hpp #pragma once #include <sstream> namespace bjoernligan { class DebugWindow : public sf::Drawable { private: DebugWindow(const bool &p_bActive); DebugWindow(const DebugWindow&); DebugWindow& operator=(const DebugWindow&); public: typedef std::unique_ptr<DebugWindow> Ptr; static Ptr Crea...
22.352941
69
0.734211
doodlemeat
2b1308ba57844e88e867c04472f9112a469d6e1b
2,512
cpp
C++
code/src/pdflib/page_tree.cpp
jgresula/jagpdf
6c36958b109e6522e6b57d04144dd83c024778eb
[ "MIT" ]
54
2015-02-16T14:25:16.000Z
2022-03-16T07:54:25.000Z
code/src/pdflib/page_tree.cpp
jgresula/jagpdf
6c36958b109e6522e6b57d04144dd83c024778eb
[ "MIT" ]
null
null
null
code/src/pdflib/page_tree.cpp
jgresula/jagpdf
6c36958b109e6522e6b57d04144dd83c024778eb
[ "MIT" ]
30
2015-03-05T08:52:25.000Z
2022-02-17T13:49:15.000Z
// Copyright (c) 2005-2009 Jaroslav Gresula // // Distributed under the MIT license (See accompanying file // LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt) // #include "precompiled.h" #include "page_tree.h" #include "page_tree_node.h" #include "page_object.h" #include <core/generic/refcountedimpl.h> #include ...
23.045872
78
0.617834
jgresula
2b154804a41ee453695ad335d17a303a816c4e21
402
hpp
C++
raptor/gallery/par_matrix_market.hpp
lukeolson/raptor
526c88d0801634e6fb41375ae077f2d4aa3241a4
[ "BSD-2-Clause" ]
25
2017-11-20T21:45:43.000Z
2019-01-27T15:03:25.000Z
raptor/gallery/par_matrix_market.hpp
haoxiangmiao/raptor
866977b8166e39675a6a1fb883c57b7b9395d32f
[ "BSD-2-Clause" ]
3
2017-11-21T01:20:20.000Z
2018-11-16T17:33:06.000Z
raptor/gallery/par_matrix_market.hpp
haoxiangmiao/raptor
866977b8166e39675a6a1fb883c57b7b9395d32f
[ "BSD-2-Clause" ]
5
2017-11-20T22:03:57.000Z
2018-12-05T10:30:22.000Z
/* * Matrix Market I/O library for ANSI C * * See http://math.nist.gov/MatrixMarket for details. * * */ #ifndef PAR_MM_IO_H #define PAR_MM_IO_H #include "matrix_market.hpp" #include "core/types.hpp" #include "core/par_matrix.hpp" using namespace raptor; /* high level routines */ ParCSRMatrix* read_par_mm(cons...
15.461538
54
0.723881
lukeolson
2b15ae0c66fac4c2c4afbc7a6ce2c233d8fe5be9
867
hpp
C++
include/basic3d/zbuffer.hpp
MasterQ32/Basic3D
1da1ad64116018afe2b97372d9632d0b72b1ff95
[ "MIT" ]
1
2018-11-15T22:29:55.000Z
2018-11-15T22:29:55.000Z
include/basic3d/zbuffer.hpp
MasterQ32/Basic3D
1da1ad64116018afe2b97372d9632d0b72b1ff95
[ "MIT" ]
null
null
null
include/basic3d/zbuffer.hpp
MasterQ32/Basic3D
1da1ad64116018afe2b97372d9632d0b72b1ff95
[ "MIT" ]
null
null
null
#pragma once #include <cstdint> #include <array> #include <limits> namespace Basic3D { //! Provides a basic z-buffer template<int WIDTH, int HEIGHT, typename Depth = std::uint16_t> class ZBuffer { public: typedef Depth depth_t; private: std::array<depth_t, WIDTH ...
23.432432
74
0.509804
MasterQ32
2b18c1a58e5c452db93b6d20e5409e76dce55d31
1,331
cpp
C++
109. Convert Sorted List to Binary Search Tree/solution.cpp
KailinLi/LeetCode-Solutions
bad6aa401b290a203a572362e63e0b1085f7fc36
[ "MIT" ]
2
2017-03-27T09:53:32.000Z
2017-04-07T07:48:54.000Z
109. Convert Sorted List to Binary Search Tree/solution.cpp
KailinLi/LeetCode-Solutions
bad6aa401b290a203a572362e63e0b1085f7fc36
[ "MIT" ]
null
null
null
109. Convert Sorted List to Binary Search Tree/solution.cpp
KailinLi/LeetCode-Solutions
bad6aa401b290a203a572362e63e0b1085f7fc36
[ "MIT" ]
null
null
null
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), le...
26.098039
59
0.486852
KailinLi
2b24d50623f5ba9c0ed59fd55b0cb00c616c6aa3
2,353
tpp
C++
src/algorithms/rem_factorial_EltZZ.tpp
adienes/remainder-tree
0aa76214ab6f2a4389ec45a239ea660749989a90
[ "MIT" ]
null
null
null
src/algorithms/rem_factorial_EltZZ.tpp
adienes/remainder-tree
0aa76214ab6f2a4389ec45a239ea660749989a90
[ "MIT" ]
null
null
null
src/algorithms/rem_factorial_EltZZ.tpp
adienes/remainder-tree
0aa76214ab6f2a4389ec45a239ea660749989a90
[ "MIT" ]
null
null
null
// included by rem_factorial_custom.tpp (in case we want to change the file location) #include <cassert> #include <NTL/ZZ_pX.h> #include <NTL/matrix.h> #include "../elements/element.hpp" #include "factorial_engine.hpp" using NTL::ZZ; using NTL::ZZ_p; using NTL::ZZ_pX; using NTL::Mat; Elt<ZZ> calculate_factorial(l...
30.166667
139
0.576711
adienes
2b27eac05c8402f32f1dbad10a6b1ff5dc8f5ac5
2,363
cpp
C++
codeforces/round-278/div-2/candy_boxes.cpp
Rkhoiwal/Competitive-prog-Archive
18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9
[ "MIT" ]
1
2020-07-16T01:46:38.000Z
2020-07-16T01:46:38.000Z
codeforces/round-278/div-2/candy_boxes.cpp
Rkhoiwal/Competitive-prog-Archive
18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9
[ "MIT" ]
null
null
null
codeforces/round-278/div-2/candy_boxes.cpp
Rkhoiwal/Competitive-prog-Archive
18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9
[ "MIT" ]
1
2020-05-27T14:30:43.000Z
2020-05-27T14:30:43.000Z
#include <algorithm> #include <iostream> #include <vector> using namespace std; inline void use_io_optimizations() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } inline void solve_with_four_left_boxes(const vector<unsigned int>& boxes) { if ((3 * boxes[0] == boxes[3]) && (boxes[1] + boxes[2] == ...
19.211382
76
0.493017
Rkhoiwal
1a7098538ce52920df14b974fe6a6a1f795fb3b6
396
cpp
C++
src/ClosestBinarySearchTreeValue.cpp
yanzhe-chen/LeetCode
d82f0b9721ea613ab216c78e7286671d0e9e4187
[ "MIT" ]
43
2015-10-10T12:59:52.000Z
2018-07-11T18:07:00.000Z
src/ClosestBinarySearchTreeValue.cpp
yanzhe-chen/LeetCode
d82f0b9721ea613ab216c78e7286671d0e9e4187
[ "MIT" ]
null
null
null
src/ClosestBinarySearchTreeValue.cpp
yanzhe-chen/LeetCode
d82f0b9721ea613ab216c78e7286671d0e9e4187
[ "MIT" ]
11
2015-10-10T14:41:11.000Z
2018-07-28T06:03:16.000Z
#include "ClosestBinarySearchTreeValue.hpp" #include <cmath> using namespace std; int ClosestBinarySearchTreeValue::closestValue(TreeNode *root, double target) { int closest = root->val; while (root) { if (abs(root->val - target) < abs(closest - target)) closest = root->val; root ...
26.4
79
0.643939
yanzhe-chen
1a751dfcaf4dbf84cbd4870d1bb0d7be2d22a8ed
11,084
cpp
C++
src/lib/serialport/qserialportinfo_mac.cpp
Hayesie88/emstudio
0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b
[ "MIT" ]
8
2015-11-16T19:15:55.000Z
2021-02-17T23:58:33.000Z
src/lib/serialport/qserialportinfo_mac.cpp
Hayesie88/emstudio
0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b
[ "MIT" ]
5
2015-11-12T00:19:59.000Z
2020-03-23T10:18:19.000Z
src/lib/serialport/qserialportinfo_mac.cpp
Hayesie88/emstudio
0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b
[ "MIT" ]
11
2015-03-15T23:02:48.000Z
2021-09-05T14:17:13.000Z
/**************************************************************************** ** ** Copyright (C) 2011-2012 Denis Shienkov <denis.shienkov@gmail.com> ** Copyright (C) 2011 Sergey Belyashov <Sergey.Belyashov@gmail.com> ** Copyright (C) 2012 Laszlo Papp <lpapp@kde.org> ** Contact: http://www.qt-project.org/legal ** ** Th...
40.600733
138
0.480603
Hayesie88
1a775015d67a723319faa41188ea368f93b840f6
764
cpp
C++
greedy_problems/maximum_frequency_of_element.cpp
sanathvernekar/Routine_codes
a898ca7e79cf39c289cb2fefaf764c9f8e0eb331
[ "MIT" ]
null
null
null
greedy_problems/maximum_frequency_of_element.cpp
sanathvernekar/Routine_codes
a898ca7e79cf39c289cb2fefaf764c9f8e0eb331
[ "MIT" ]
null
null
null
greedy_problems/maximum_frequency_of_element.cpp
sanathvernekar/Routine_codes
a898ca7e79cf39c289cb2fefaf764c9f8e0eb331
[ "MIT" ]
null
null
null
#include <vector> #include <map> #include<bits/stdc++.h> using namespace std; long long int max_frequency(vector<long long int> const& v) { map<long long int, long long int> frequencyMap; long long int maxFrequency = 0; long long int mostFrequentElement = 0; for (long long int x : v) { lo...
21.222222
59
0.537958
sanathvernekar
1a7d0a4b1f6fbfbd04070f3df6da1bcfbd53a229
1,077
cpp
C++
STRINGS/Upper case conversion.cpp
snanacha/Coding-questions
18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d
[ "MIT" ]
null
null
null
STRINGS/Upper case conversion.cpp
snanacha/Coding-questions
18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d
[ "MIT" ]
1
2021-03-30T14:00:56.000Z
2021-03-30T14:00:56.000Z
STRINGS/Upper case conversion.cpp
snanacha/Coding-questions
18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d
[ "MIT" ]
null
null
null
/* Upper case conversion School Accuracy: 72.51% Submissions: 1152 Points: 0 Given a string str, convert the first letter of each word in the string to uppercase. Example 1: Input: str = "i love programming" Output: "I Love Programming" Explanation: 'I', 'L', 'P' are the first letters of the three word...
22.914894
150
0.622098
snanacha
1a7d59aa8da04b3bc9b6a7c6c73cdfb020f12695
2,133
cpp
C++
examples/sample2.cpp
SoultatosStefanos/preconditions
7c306219153e32afe6a915178f1e1c9fa1bdac8b
[ "MIT" ]
1
2021-09-07T21:10:05.000Z
2021-09-07T21:10:05.000Z
examples/sample2.cpp
SoultatosStefanos/preconditions
7c306219153e32afe6a915178f1e1c9fa1bdac8b
[ "MIT" ]
null
null
null
examples/sample2.cpp
SoultatosStefanos/preconditions
7c306219153e32afe6a915178f1e1c9fa1bdac8b
[ "MIT" ]
null
null
null
/** * @file sample2.cpp * @author Soultatos Stefanos (stefanoss1498@gmail.com) * @brief Contains sample code for the filters * @version 2.0 * @date 2021-10-29 * * @copyright Copyright (c) 2021 * */ #include "preconditions/filters.hpp" #include <array> #include <string> namespace { // Instead of: // // if (b....
20.708738
76
0.586498
SoultatosStefanos
1a7e496044132273825225cbae15412343883b22
1,899
cpp
C++
Odyssey/OdysseyVulkanCore/OdysseyVulkanCore/Initialize/SubmitClasses/ImmediateSubmit.cpp
paulburgess1357/Odyssey
ad351d1df7eeb1b4223ffbdf91ec7e3307b87983
[ "MIT" ]
1
2022-03-10T02:45:04.000Z
2022-03-10T02:45:04.000Z
Odyssey/OdysseyVulkanCore/OdysseyVulkanCore/Initialize/SubmitClasses/ImmediateSubmit.cpp
paulburgess1357/Odyssey
ad351d1df7eeb1b4223ffbdf91ec7e3307b87983
[ "MIT" ]
null
null
null
Odyssey/OdysseyVulkanCore/OdysseyVulkanCore/Initialize/SubmitClasses/ImmediateSubmit.cpp
paulburgess1357/Odyssey
ad351d1df7eeb1b4223ffbdf91ec7e3307b87983
[ "MIT" ]
null
null
null
#include "OdysseyVulkanCore/OdysseyVulkanCore/Initialize/SubmitClasses/ImmediateSubmit.h" #include "OdysseyVulkanCore/OdysseyVulkanCore/Initialize/SubmitClasses/Exceptions.h" #include "OdysseyVulkanCore/OdysseyVulkanCore/Initialize/CreateInfo.h" #include "OdysseyVulkanCore/OdysseyVulkanCore/Utility/Macros.h" #include <...
52.75
114
0.796735
paulburgess1357
1a7e908bd3cc80291942a076353938cb2bee4a7b
7,925
cpp
C++
avdev-jni/src/main/cpp/dependencies/windows/mf/src/MFVideoCaptureDevice.cpp
lectureStudio/avdev
02b980705565ed2dcf3eacc4992bdf2f244f24a0
[ "Apache-2.0" ]
1
2021-08-10T02:59:58.000Z
2021-08-10T02:59:58.000Z
avdev-jni/src/main/cpp/dependencies/windows/mf/src/MFVideoCaptureDevice.cpp
lectureStudio/avdev
02b980705565ed2dcf3eacc4992bdf2f244f24a0
[ "Apache-2.0" ]
null
null
null
avdev-jni/src/main/cpp/dependencies/windows/mf/src/MFVideoCaptureDevice.cpp
lectureStudio/avdev
02b980705565ed2dcf3eacc4992bdf2f244f24a0
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2016 Alex Andres * * 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...
26.155116
107
0.720505
lectureStudio
1a8046f70fc3a8f51fa385ecdcfba6767d5f840f
313
cpp
C++
Codeforces Round 323/Asphalting Roads/main.cpp
sqc1999-oi/Codeforces
5551e0e4b9dc66bb77c697568f0584aac3dbefae
[ "MIT" ]
1
2016-07-18T12:05:56.000Z
2016-07-18T12:05:56.000Z
Codeforces Round 323/Asphalting Roads/main.cpp
sqc1999/Codeforces
5551e0e4b9dc66bb77c697568f0584aac3dbefae
[ "MIT" ]
null
null
null
Codeforces Round 323/Asphalting Roads/main.cpp
sqc1999/Codeforces
5551e0e4b9dc66bb77c697568f0584aac3dbefae
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> using namespace std; bool vh[51], vv[51]; int main() { ios::sync_with_stdio(false); int n; cin >> n; for (int i = 1; i <= n*n; i++) { int h, v; cin >> h >> v; if (!vh[h] && !vv[v]) { vh[h] = vv[v] = true; cout << i << ' '; } } }
14.904762
32
0.456869
sqc1999-oi
1a8b5129949c5c0ff7268512f53daab7dcbdecd0
433
cpp
C++
binary_search.cpp
ankitelectronicsenemy/CppCodes
e2f274330c12e59a6c401c162e8d899690db0e14
[ "Apache-2.0" ]
null
null
null
binary_search.cpp
ankitelectronicsenemy/CppCodes
e2f274330c12e59a6c401c162e8d899690db0e14
[ "Apache-2.0" ]
null
null
null
binary_search.cpp
ankitelectronicsenemy/CppCodes
e2f274330c12e59a6c401c162e8d899690db0e14
[ "Apache-2.0" ]
null
null
null
#include<iostream> using namespace std; int binary_search(int arr[],int n,int key) { int s=0; int e=n-1; while(s<=e) { int mid=(s+e)/2; if(arr[mid]==key) { return mid; } if(arr[mid]>key) { e=mid-1; } else if(arr[mid]<key) { s=mid+1; } else return -1 ; } return -1; } int main() { int n; cin>>n...
8.836735
42
0.556582
ankitelectronicsenemy
1a8c74b4b5e597e0cc6288bffb2bbdcec3b8371b
2,585
cpp
C++
VC2010Samples/ATL/Advanced/mfcatl/objone.cpp
alonmm/VCSamples
6aff0b4902f5027164d593540fcaa6601a0407c3
[ "MIT" ]
300
2019-05-09T05:32:33.000Z
2022-03-31T20:23:24.000Z
VC2010Samples/ATL/Advanced/mfcatl/objone.cpp
JaydenChou/VCSamples
9e1d4475555b76a17a3568369867f1d7b6cc6126
[ "MIT" ]
9
2016-09-19T18:44:26.000Z
2018-10-26T10:20:05.000Z
VC2010Samples/ATL/Advanced/mfcatl/objone.cpp
JaydenChou/VCSamples
9e1d4475555b76a17a3568369867f1d7b6cc6126
[ "MIT" ]
633
2019-05-08T07:34:12.000Z
2022-03-30T04:38:28.000Z
// ObjOne.cpp : implementation file // // This is a part of the Active Template Library. // Copyright (c) Microsoft Corporation. All rights reserved. // // This source code is only intended as a supplement to the // Active Template Library Reference and related // electronic documentation provided with the library. //...
28.406593
125
0.716441
alonmm
1a8e101fc9fd68633703ee9420f4a7abe1788773
954
cpp
C++
src/Gui/ExportToDotDialog.cpp
loganek/gstcreator
619f1a6f1ee39c7c5b883c0a676cd490f59ac81b
[ "BSD-3-Clause" ]
1
2015-10-10T23:21:00.000Z
2015-10-10T23:21:00.000Z
src/Gui/ExportToDotDialog.cpp
loganek/gstcreator
619f1a6f1ee39c7c5b883c0a676cd490f59ac81b
[ "BSD-3-Clause" ]
null
null
null
src/Gui/ExportToDotDialog.cpp
loganek/gstcreator
619f1a6f1ee39c7c5b883c0a676cd490f59ac81b
[ "BSD-3-Clause" ]
null
null
null
/* * gstcreator * ExportToDotDialog.cpp * * Created on: 24 sty 2014 * Author: Marcin Kolny <marcin.kolny@gmail.com> */ #include "ExportToDotDialog.h" #include "ui_ExportToDotDialog.h" #include <QCheckBox> #include <QFileDialog> #include <cstdlib> ExportToDotDialog::ExportToDotDialog(QWidget *parent) : ...
20.73913
61
0.715933
loganek
1a8e647f78fe3b7f6ef04a0cdfd2407338557fae
1,191
cpp
C++
components/system/sources/platform/android/android_crash_processor.cpp
untgames/funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
7
2016-03-30T17:00:39.000Z
2017-03-27T16:04:04.000Z
components/system/sources/platform/android/android_crash_processor.cpp
untgames/Funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
4
2017-11-21T11:25:49.000Z
2018-09-20T17:59:27.000Z
components/system/sources/platform/android/android_crash_processor.cpp
untgames/Funner
c91614cda55fd00f5631d2bd11c4ab91f53573a3
[ "MIT" ]
4
2016-11-29T15:18:40.000Z
2017-03-27T16:04:08.000Z
#include "shared.h" using namespace syslib; using namespace syslib::android; namespace { typedef void (*sighandler_t)(int); sighandler_t prev_segv_handler = 0; //предыдущий обработчик сигнала SEGV // дамп карты памяти void dump_maps () { static char line [256]; FILE *fp = fopen ("/proc/self...
16.315068
115
0.56927
untgames
1a8f43595b382c481b51b8c6c60c53c69bd2f49c
1,532
cpp
C++
blades/xbmc/xbmc/filesystem/SFTPDirectory.cpp
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
4
2016-04-26T03:43:54.000Z
2016-11-17T08:09:04.000Z
blades/xbmc/xbmc/filesystem/SFTPDirectory.cpp
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
17
2015-01-05T21:06:22.000Z
2015-12-07T20:45:44.000Z
blades/xbmc/xbmc/filesystem/SFTPDirectory.cpp
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
3
2016-04-26T03:43:55.000Z
2020-11-06T11:02:08.000Z
/* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * 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 2, or (at your option) * any later version. * * ...
27.854545
99
0.727807
krattai
1a94bd2c1627daf0ff179c9c0c565a1262e87623
1,528
cpp
C++
winml/lib/Api.Image/DisjointBufferHelpers.cpp
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
18
2020-05-19T12:48:07.000Z
2021-04-28T06:41:57.000Z
winml/lib/Api.Image/DisjointBufferHelpers.cpp
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
61
2021-05-31T05:15:41.000Z
2022-03-29T22:34:33.000Z
winml/lib/Api.Image/DisjointBufferHelpers.cpp
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
9
2021-05-14T20:17:26.000Z
2022-03-20T11:44:29.000Z
#include "pch.h" #include "inc/DisjointBufferHelpers.h" namespace _winml { static void LoadOrStoreDisjointBuffers( bool should_load_buffer, size_t num_buffers, std::function<gsl::span<byte>(size_t)> get_buffer, gsl::span<byte>& buffer_span) { auto size_in_bytes = buffer_span.size_bytes(); auto buf...
31.183673
97
0.725131
dennyac
1a98d628ebe2402e2871ca4d09c060ce8f3c353c
726
cpp
C++
homomorphic_evaluation/src/main.cpp
dklee0501/PLDI_20_242_artifact_publication
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
1
2022-02-14T02:37:58.000Z
2022-02-14T02:37:58.000Z
homomorphic_evaluation/src/main.cpp
dklee0501/Lobster
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
null
null
null
homomorphic_evaluation/src/main.cpp
dklee0501/Lobster
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
null
null
null
#include "FHE.h" #include <timing.h> #include <EncryptedArray.h> #include <NTL/lzz_pXFactoring.h> #include <vector> #include <cassert> #include <cstdio> #include <iostream> #include <string> #include <string.h> #include <fstream> #include <vector> #include "NTL/ZZ_p.h" #include <NTL/ZZ_pX.h> #include <NTL/vec_ZZ_p.h> #...
20.742857
58
0.633609
dklee0501
1aa048d51d3dc8d3221ace15e82671a0cb56b13d
984
cpp
C++
Online Judges/HackerEarth/Grid.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
3
2018-12-18T13:39:42.000Z
2021-06-23T18:05:18.000Z
Online Judges/HackerEarth/Grid.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
1
2018-11-02T21:32:40.000Z
2018-11-02T22:47:12.000Z
Online Judges/HackerEarth/Grid.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
6
2018-10-27T14:07:52.000Z
2019-11-14T13:49:29.000Z
#include <bits/stdc++.h> using namespace std; const int maxN = 1e3; int n, m, q, si = 0, sj = 0; char grid[maxN][maxN + 1]; int dist[maxN][maxN], dy[4] = {0, 0, 1, -1}, dx[4] = {1, -1, 0, 0}; int valid(int i, int j) { return(!(i < 0 || i >= n || j < 0 || j >= m)); } void bfs() { memset(dist, -1, sizeof(dist)); ...
24.6
111
0.442073
NelsonGomesNeto