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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b0180077b6f31c48a6686f5e574a09fc4d7de072 | 577 | cpp | C++ | code/cpp/StringAnagram.cpp | analgorithmaday/analgorithmaday.github.io | d43f98803bc673f61334bff54eed381426ee902e | [
"MIT"
] | null | null | null | code/cpp/StringAnagram.cpp | analgorithmaday/analgorithmaday.github.io | d43f98803bc673f61334bff54eed381426ee902e | [
"MIT"
] | null | null | null | code/cpp/StringAnagram.cpp | analgorithmaday/analgorithmaday.github.io | d43f98803bc673f61334bff54eed381426ee902e | [
"MIT"
] | null | null | null | bool detect_anagram(char* src, char* anagram)
{
int isrc=0, iana=0;
while(*src != '\0') {
char* iter = anagram;
while(*iter != '\0' && *src != ' ') {
if(*src == *iter) {
iana++;
break;
}
iter++;
}
if(*src != ' ')... | 19.233333 | 45 | 0.410745 | analgorithmaday |
b01c6c73dd8f078d4ab0b4d34dc115116ace8f4c | 2,640 | hpp | C++ | sal/memory.hpp | svens/sal.lib | 8dee6a0ace5a5e4e8616f9cff98ea86ee8c4761c | [
"MIT"
] | 3 | 2017-03-21T20:39:25.000Z | 2018-03-27T10:45:45.000Z | sal/memory.hpp | svens/sal.lib | 8dee6a0ace5a5e4e8616f9cff98ea86ee8c4761c | [
"MIT"
] | 49 | 2016-04-17T10:48:35.000Z | 2018-12-29T10:00:55.000Z | sal/memory.hpp | svens/sal.lib | 8dee6a0ace5a5e4e8616f9cff98ea86ee8c4761c | [
"MIT"
] | 1 | 2017-03-21T20:48:24.000Z | 2017-03-21T20:48:24.000Z | #pragma once
/**
* \file sal/memory.hpp
* Iterator and memory pointer helpers.
*/
#include <sal/config.hpp>
#include <iterator>
#include <memory>
__sal_begin
namespace __bits {
template <typename T> constexpr bool is_const_ref_v = false;
template <typename T> constexpr bool is_const_ref_v<const T &> = true;
... | 20.952381 | 78 | 0.708333 | svens |
b01c7c8ae174460c9de1a7271af2017d1824cfa3 | 285 | hpp | C++ | include/cru/parse/Nonterminal.hpp | crupest/cru | 3c3a08a02a0f8fc56dc2da3374f025d4fdaf62c5 | [
"Apache-2.0"
] | 1 | 2021-09-30T11:43:03.000Z | 2021-09-30T11:43:03.000Z | include/cru/parse/Nonterminal.hpp | crupest/cru | 3c3a08a02a0f8fc56dc2da3374f025d4fdaf62c5 | [
"Apache-2.0"
] | 11 | 2021-08-22T12:55:56.000Z | 2022-03-13T15:01:29.000Z | include/cru/parse/Nonterminal.hpp | crupest/cru | 3c3a08a02a0f8fc56dc2da3374f025d4fdaf62c5 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Symbol.hpp"
namespace cru::parse {
class CRU_PARSE_API Nonterminal : public Symbol {
public:
Nonterminal(Grammar* grammar, String name);
CRU_DELETE_COPY(Nonterminal)
CRU_DELETE_MOVE(Nonterminal)
~Nonterminal() override;
};
} // namespace cru::parse
| 19 | 49 | 0.747368 | crupest |
b01d33fdb12f244bb0018a7e9dee1924b576cfda | 295 | hpp | C++ | lib/Timing.hpp | CraGL/SubdivisionSkinning | c593a7a4e38a49716e9d3981824871a7b6c29324 | [
"Apache-2.0"
] | 19 | 2017-03-29T00:14:00.000Z | 2021-11-27T15:44:44.000Z | lib/Timing.hpp | Myzhencai/SubdivisionSkinning | c593a7a4e38a49716e9d3981824871a7b6c29324 | [
"Apache-2.0"
] | 1 | 2019-05-08T21:48:11.000Z | 2019-05-08T21:48:11.000Z | lib/Timing.hpp | Myzhencai/SubdivisionSkinning | c593a7a4e38a49716e9d3981824871a7b6c29324 | [
"Apache-2.0"
] | 5 | 2017-04-23T17:52:44.000Z | 2020-06-28T18:00:26.000Z | #ifndef __Timing_hpp__
#define __Timing_hpp__
void tic( const char* label = 0 ) ;
void toc( const char* label = 0 ) ;
struct Tick
{
Tick( const char* alabel = 0 ) : label( alabel ) { tic( label ); }
~Tick() { toc( label ); }
const char* label;
};
#endif /* __Timing_hpp__ */
| 18.4375 | 70 | 0.60339 | CraGL |
b02162aa82a4900b6ed9d5d2a109dd088a465dc4 | 945 | cpp | C++ | Word.cpp | dennistrukhin/C-Virtual-machine | 644be1f45c0d2804f93bddbfb4728e3d0c9fee5a | [
"MIT"
] | null | null | null | Word.cpp | dennistrukhin/C-Virtual-machine | 644be1f45c0d2804f93bddbfb4728e3d0c9fee5a | [
"MIT"
] | null | null | null | Word.cpp | dennistrukhin/C-Virtual-machine | 644be1f45c0d2804f93bddbfb4728e3d0c9fee5a | [
"MIT"
] | null | null | null | //
// Created by Dennis Trukhin on 21/04/2018.
//
#include <iostream>
#include "Word.h"
Word::Word(const char * word) {
for (int i = 0; i < 4; i++) {
w[i] = (unsigned char)word[i];
}
}
Word::Word(const unsigned char * word) {
for (int i = 0; i < 4; i++) {
w[i] = word[i];
}
}
unsigned... | 16.875 | 53 | 0.479365 | dennistrukhin |
b021b89a63aebef4408d1605dc318dc4cbe867f1 | 2,642 | cpp | C++ | ui/test/fixeditemproxymodeltest.cpp | VITObelgium/cpp-infra | 2a95a112439b21ff9125c2e6e29810a418b94a4d | [
"MIT"
] | 1 | 2022-02-23T03:15:54.000Z | 2022-02-23T03:15:54.000Z | ui/test/fixeditemproxymodeltest.cpp | VITObelgium/cpp-infra | 2a95a112439b21ff9125c2e6e29810a418b94a4d | [
"MIT"
] | null | null | null | ui/test/fixeditemproxymodeltest.cpp | VITObelgium/cpp-infra | 2a95a112439b21ff9125c2e6e29810a418b94a4d | [
"MIT"
] | null | null | null | #include "uiinfra/fixeditemproxymodel.h"
#include "simpletreemodel.h"
#include <gtest/gtest.h>
#include <qstandarditemmodel.h>
#include <qstringlistmodel.h>
void PrintTo(const QString& str, ::std::ostream* os)
{
*os << str.toStdString();
}
namespace inf::ui::test {
using namespace testing;
class FixedItemProx... | 32.617284 | 77 | 0.663134 | VITObelgium |
b0246c68a42555ffbf330568d5cb7d0a325f42af | 3,471 | cc | C++ | scene/geometry/triangle.cc | dinowernli/raytracer | b1af14b2d2a02fe679da392aaf25385b69efee1b | [
"MIT"
] | null | null | null | scene/geometry/triangle.cc | dinowernli/raytracer | b1af14b2d2a02fe679da392aaf25385b69efee1b | [
"MIT"
] | null | null | null | scene/geometry/triangle.cc | dinowernli/raytracer | b1af14b2d2a02fe679da392aaf25385b69efee1b | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2015 dinowernli
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy... | 38.566667 | 81 | 0.678767 | dinowernli |
b026fa1f34f46df9c8d3c941550ec74b12d0c415 | 24 | cpp | C++ | src/render/Renderer.cpp | Vasile2k/Luminica | 13250c6b536b0634e2f4ea95b7b75b0dee18705d | [
"Apache-2.0"
] | null | null | null | src/render/Renderer.cpp | Vasile2k/Luminica | 13250c6b536b0634e2f4ea95b7b75b0dee18705d | [
"Apache-2.0"
] | null | null | null | src/render/Renderer.cpp | Vasile2k/Luminica | 13250c6b536b0634e2f4ea95b7b75b0dee18705d | [
"Apache-2.0"
] | null | null | null | #include "Renderer.hpp"
| 12 | 23 | 0.75 | Vasile2k |
b02aca114d2c1bf20028a2f21a6baa3d7cbbe27f | 1,489 | cpp | C++ | gui/macrothread.cpp | fourier/frostbite | 47b00c5b93a949300e5b387e38d6ab77afc799d9 | [
"MIT"
] | 27 | 2016-03-25T19:15:34.000Z | 2021-10-17T14:39:00.000Z | gui/macrothread.cpp | fourier/frostbite | 47b00c5b93a949300e5b387e38d6ab77afc799d9 | [
"MIT"
] | 109 | 2016-09-02T08:13:58.000Z | 2022-03-28T05:45:51.000Z | gui/macrothread.cpp | fourier/frostbite | 47b00c5b93a949300e5b387e38d6ab77afc799d9 | [
"MIT"
] | 20 | 2016-06-30T15:29:25.000Z | 2021-04-05T16:47:17.000Z | #include "macrothread.h"
MacroThread::MacroThread() {
}
void MacroThread::init(QHash<QString, QStringList> macro, int time) {
this->abort = false;
this->macro = macro;
this->sequenceTime = time;
if(sequenceTime <= 0) {
sequenceTime = 1000;
}
}
void MacroThread::stopThread() {
this->a... | 27.574074 | 69 | 0.478845 | fourier |
b02b0406485458343a095d28a429450203bd8fe1 | 811 | cpp | C++ | Numbers/powers_of_two.cpp | jahnvisrivastava100/CompetitiveProgrammingQuestionBank | 0d72884ea5e0eb674a503b81ab65e444f5175cf4 | [
"MIT"
] | 931 | 2020-04-18T11:57:30.000Z | 2022-03-31T15:15:39.000Z | Numbers/powers_of_two.cpp | jahnvisrivastava100/CompetitiveProgrammingQuestionBank | 0d72884ea5e0eb674a503b81ab65e444f5175cf4 | [
"MIT"
] | 661 | 2020-12-13T04:31:48.000Z | 2022-03-15T19:11:54.000Z | Numbers/powers_of_two.cpp | Mayuri-cell/CompetitiveProgrammingQuestionBank | eca2257d7da5346f45bdd7a351cc95bde6ed5c7d | [
"MIT"
] | 351 | 2020-08-10T06:49:21.000Z | 2022-03-25T04:02:12.000Z | /*
Write a Program to find the minimum number of powers (sum of all those numbers) that are
required to form the given input number and print those numbers.
*/
#include<bits/stdc++.h>
#include<cmath>
using namespace std;
int main(int argc, char const *argv[])
{
int n = 20,count=0,flag=0;
int powers[n],res=0,j... | 22.527778 | 89 | 0.491985 | jahnvisrivastava100 |
b02b5686a6056ba162952d42e3ab0eba21e908e3 | 220 | hpp | C++ | mlog/string_builder.hpp | Lowdham/mlog | 034134ec2048fb78084f4772275b5f67efeec433 | [
"MIT"
] | 2 | 2021-06-19T04:14:14.000Z | 2021-08-30T15:39:49.000Z | mlog/string_builder.hpp | Lowdham/mlog | 034134ec2048fb78084f4772275b5f67efeec433 | [
"MIT"
] | 1 | 2021-06-21T15:58:19.000Z | 2021-06-22T02:04:39.000Z | mlog/string_builder.hpp | Lowdham/mlog | 034134ec2048fb78084f4772275b5f67efeec433 | [
"MIT"
] | null | null | null | // This file is part of mlog
#ifndef MLOG_STRING_BUILDER_HPP_
#define MLOG_STRING_BUILDER_HPP_
#include "fwd.hpp"
namespace mlog {
//
class StringBuilder {};
} // namespace mlog
#endif // !MLOG_STRING_BUILDER_HPP_ | 15.714286 | 36 | 0.754545 | Lowdham |
b02c5556d7d1efd00adf3c4153dfdcfa0a4fe6ae | 4,212 | cpp | C++ | tests/wifi_standard/wifi_framework/wifi_manage/wifi_scan/scan_monitor_test.cpp | openharmony-gitee-mirror/communication_wifi | de1ca7ecb2b61d2385f6450fdadab7df9d3a4e37 | [
"Apache-2.0"
] | 1 | 2021-12-03T14:28:10.000Z | 2021-12-03T14:28:10.000Z | tests/wifi_standard/wifi_framework/wifi_manage/wifi_scan/scan_monitor_test.cpp | openharmony-gitee-mirror/communication_wifi | de1ca7ecb2b61d2385f6450fdadab7df9d3a4e37 | [
"Apache-2.0"
] | null | null | null | tests/wifi_standard/wifi_framework/wifi_manage/wifi_scan/scan_monitor_test.cpp | openharmony-gitee-mirror/communication_wifi | de1ca7ecb2b61d2385f6450fdadab7df9d3a4e37 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:18:00.000Z | 2021-09-13T11:18:00.000Z | /*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* 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 ... | 26.325 | 100 | 0.732431 | openharmony-gitee-mirror |
b02c890f8b661b9926570d01bfb68d671c4d64e5 | 17 | cpp | C++ | misc/per.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | misc/per.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | misc/per.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | #include<cstdio>
| 8.5 | 16 | 0.764706 | dk00 |
b02e04da92fbfad6cc2e8612b93c7612590bc135 | 279 | cpp | C++ | old/main.cpp | melkir/AwesomeScheduler | 852a11dffc4996dc20bd0ef53143f3145cf37935 | [
"MIT"
] | null | null | null | old/main.cpp | melkir/AwesomeScheduler | 852a11dffc4996dc20bd0ef53143f3145cf37935 | [
"MIT"
] | null | null | null | old/main.cpp | melkir/AwesomeScheduler | 852a11dffc4996dc20bd0ef53143f3145cf37935 | [
"MIT"
] | null | null | null | #include "Scheduler.h"
#include "FCFSStrategy.h"
int main() {
FCFSStrategy fcfs;
Scheduler scheduler(fcfs);
scheduler.addProcess("A");
scheduler.addProcess("B");
scheduler.addProcess("C");
scheduler.addProcess("D");
scheduler.run(8);
return 0;
}
| 19.928571 | 30 | 0.65233 | melkir |
b0334f9f0fcecb768d17f3bedc232cca2613ad7a | 1,558 | cpp | C++ | C++/Bipartite_Graph.cpp | ayushyado/HACKTOBERFEST2021-2 | b63d568fd7f33023ca0b0dbd91325444c70c4d10 | [
"MIT"
] | 149 | 2021-09-17T17:11:06.000Z | 2021-10-01T17:32:18.000Z | C++/Bipartite_Graph.cpp | ayushyado/HACKTOBERFEST2021-2 | b63d568fd7f33023ca0b0dbd91325444c70c4d10 | [
"MIT"
] | 201 | 2021-10-30T20:40:01.000Z | 2022-03-22T17:26:28.000Z | C++/Bipartite_Graph.cpp | ayushyado/HACKTOBERFEST2021-2 | b63d568fd7f33023ca0b0dbd91325444c70c4d10 | [
"MIT"
] | 410 | 2021-09-27T03:13:55.000Z | 2021-10-01T17:59:42.000Z | // Bipartite Graph
// ---------------
// You can divide all the vertices of graph in 2 sets
// such that all edges of the graph are from set1 to set2
// Two Coloring
/// How to flip colors between 1 and 2 ?
// Use 3-color
// 3-2 = 1 and 3-1 = 2
#include <iostream>
#include <vector>
using namespace std;
boo... | 19.475 | 85 | 0.587933 | ayushyado |
b034396b580e32fa8e069f41aeadf742429fa745 | 536 | cpp | C++ | CodeForces/Contest/386/G/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | CodeForces/Contest/386/G/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | CodeForces/Contest/386/G/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#define rg register
#define rep(i,x,y) for(rg int i=(x);i<=(y);++i)
#define per(i,x,y) for(rg int i=(x);i>=(y);--i)
using namespace std;
const int N=2e5+10;
int n,t,k,a[N],v[N];
int main(){
scanf("%d%d%d",&n,&t,&k);
rep(i,2,t+1)scanf("%d",&a[i]);
int mink=0,maxk=n-t;
a[1]=1;
rep... | 20.615385 | 47 | 0.533582 | sjj118 |
b035424cc48f2e0b6b73ed14e5fde247329448fb | 645 | cpp | C++ | src/Text/StringUtils/Base64.cpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 3 | 2015-09-15T06:57:50.000Z | 2021-03-16T19:05:02.000Z | src/Text/StringUtils/Base64.cpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 2 | 2015-09-26T12:41:10.000Z | 2015-12-08T08:41:37.000Z | src/Text/StringUtils/Base64.cpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 1 | 2015-07-09T02:56:34.000Z | 2015-07-09T02:56:34.000Z | #include "RadonFramework/precompiled.hpp"
#include "RadonFramework/Text/StringUtils/Base64.hpp"
#include "RadonFramework/backend/stringcoders/modp_b64.h"
namespace RadonFramework::Text::StringUtils {
RF_Type::String Base64Converter::Encode(const RF_Type::String &Source)
{
std::string str = modp::b64_encode(Source... | 30.714286 | 72 | 0.733333 | tak2004 |
b0355d27647a3289fe8743a41068b21b77dbed20 | 2,172 | cpp | C++ | svc_kube_vision_opencvplus/extras/ImageRegionGraph/flow/util/mr_cbir_create_index_shards.cpp | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | 3 | 2018-06-22T07:55:51.000Z | 2021-06-21T19:18:16.000Z | svc_kube_vision_opencvplus/extras/ImageRegionGraph/flow/util/mr_cbir_create_index_shards.cpp | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | null | null | null | svc_kube_vision_opencvplus/extras/ImageRegionGraph/flow/util/mr_cbir_create_index_shards.cpp | lucmichalski/kube-vproxy | c7cc0edbcbcd07a48f0fc48b9457eae693b76688 | [
"Apache-2.0"
] | 1 | 2020-11-04T04:56:50.000Z | 2020-11-04T04:56:50.000Z | #include "iw/iw.pb.h"
#include "iw/matching/cbir/full/full.h"
#include "snap/deluge/deluge.h"
#include "snap/google/base/hashutils.h"
#include "snap/google/glog/logging.h"
using namespace std;
using namespace deluge;
/*
class Mapper : public HadoopPipes::Mapper {
public:
Mapper(HadoopPipes::TaskContext& context) {
... | 30.166667 | 106 | 0.734807 | lucmichalski |
b03d8c19200709f779d7f4a6f31f71a3e537453e | 1,300 | cpp | C++ | Vigenere/main.cpp | vbacaksiz/Encryption | ae2168f2fde738570f9aedbb4378600283d49046 | [
"MIT"
] | null | null | null | Vigenere/main.cpp | vbacaksiz/Encryption | ae2168f2fde738570f9aedbb4378600283d49046 | [
"MIT"
] | null | null | null | Vigenere/main.cpp | vbacaksiz/Encryption | ae2168f2fde738570f9aedbb4378600283d49046 | [
"MIT"
] | null | null | null | #include <iostream>
#include "vigenere.h"
using namespace std;
int main()
{
vigenere k;
int choice;
cout << "VIGENERE ENCRYPTION & DECRYPTION" << endl;
cout << "------------------------------" << endl << endl;
do
{
cout << "Press 1 For Encryption" << endl;
cout << "Press 2 For ... | 25.490196 | 72 | 0.442308 | vbacaksiz |
b0402173786ab45d7b6d30e8add62bd93b85462d | 4,907 | cpp | C++ | src/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.java
#include <org/apache/poi/hssf/extractor/EventBasedExcelExtractor.hpp>
#include <java/io/IOException.hpp>
#include <java/lang/IllegalStateException.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/lang/RuntimeExcept... | 36.619403 | 154 | 0.745058 | pebble2015 |
b0406195430797ea217d148983fe972a1779f69a | 2,304 | hpp | C++ | include/ocpp1_6/messages/GetConfiguration.hpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | 9 | 2022-01-16T05:13:16.000Z | 2022-03-18T22:15:16.000Z | include/ocpp1_6/messages/GetConfiguration.hpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | null | null | null | include/ocpp1_6/messages/GetConfiguration.hpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | 3 | 2022-01-20T04:51:01.000Z | 2022-03-13T07:16:49.000Z | // SPDX-License-Identifier: Apache-2.0
// Copyright 2020 - 2022 Pionix GmbH and Contributors to EVerest
#ifndef OCPP1_6_GETCONFIGURATION_HPP
#define OCPP1_6_GETCONFIGURATION_HPP
#include <boost/optional.hpp>
#include <ocpp1_6/ocpp_types.hpp>
#include <ocpp1_6/types.hpp>
namespace ocpp1_6 {
/// \brief Contains a OCP... | 41.890909 | 119 | 0.769097 | EVerest |
b04080ac7f0f9724f0155e4a6983d13609cc17c4 | 17,549 | cpp | C++ | EntityLib/Core/GPUEntityMgr.cpp | Calvin-Ruiz/LaserBombon | 404bea5b95393b3d011902a0d1458bd86efdc5a5 | [
"MIT"
] | null | null | null | EntityLib/Core/GPUEntityMgr.cpp | Calvin-Ruiz/LaserBombon | 404bea5b95393b3d011902a0d1458bd86efdc5a5 | [
"MIT"
] | null | null | null | EntityLib/Core/GPUEntityMgr.cpp | Calvin-Ruiz/LaserBombon | 404bea5b95393b3d011902a0d1458bd86efdc5a5 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** Vulkan-Engine
** File description:
** GPUEntityMgr.cpp
*/
#include "EntityCore/Core/VulkanMgr.hpp"
#include "EntityCore/Core/BufferMgr.hpp"
#include "EntityCore/Resource/SetMgr.hpp"
#include "EntityCore/Resource/Set.hpp"
#include "EntityCore/Resource/PipelineLayout.hpp"
#include "EntityCo... | 44.997436 | 240 | 0.691606 | Calvin-Ruiz |
b0429a36809a29c3971aff9087508d233c12ffe0 | 6,861 | cpp | C++ | cgame/fx_proton.cpp | kugelrund/Elite-Reinforce | a2fe0c0480ff2d9cdc241b9e5416ee7f298f00ca | [
"DOC"
] | 10 | 2017-07-04T14:38:48.000Z | 2022-03-08T22:46:39.000Z | cgame/fx_proton.cpp | UberGames/SP-Mod-Source-Code | 04e0e618d1ee57a2919f1a852a688c03b1aa155d | [
"DOC"
] | null | null | null | cgame/fx_proton.cpp | UberGames/SP-Mod-Source-Code | 04e0e618d1ee57a2919f1a852a688c03b1aa155d | [
"DOC"
] | 2 | 2017-04-23T18:24:44.000Z | 2021-11-19T23:27:03.000Z | #include "cg_local.h"
#include "FX_Public.h"
/*
-------------------------
-------------------------
// PROTON GUN
-------------------------
-------------------------
*/
/*
-------------------------
FX_ProtonShockRing
-------------------------
*/
void FX_ProtonShockRing( vec3_t start, vec3_t end )
{
vec3_t shot_d... | 22.718543 | 134 | 0.571491 | kugelrund |
b04338d5b534abf70639507ffe72bef388bd6b10 | 2,012 | cpp | C++ | gtsam/inference/IndexFactor.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | 11 | 2015-02-04T16:41:47.000Z | 2021-12-10T07:02:44.000Z | gtsam/inference/IndexFactor.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | null | null | null | gtsam/inference/IndexFactor.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | 6 | 2015-09-10T12:06:08.000Z | 2021-12-10T07:02:48.000Z | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... | 30.484848 | 80 | 0.500994 | sdmiller |
b04710b459e76e180d6b1076eae57b2ef779063c | 483 | hpp | C++ | contrib/autoboost/autoboost/chrono/chrono.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/chrono/chrono.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/chrono/chrono.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // chrono.hpp --------------------------------------------------------------//
// Copyright 2009-2011 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
#ifndef AUTOBOOST_CHRONO_CHRONO_HPP
#define AUTOBOOST_CHRONO_CHRONO_HPP
#inclu... | 30.1875 | 80 | 0.68323 | CaseyCarter |
b0496ad24efd9ec95a1966b32ddd2b733e835216 | 1,413 | cpp | C++ | Active/CodeForces/Count_Subarrays.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | 2 | 2021-03-05T08:40:01.000Z | 2021-04-25T13:58:42.000Z | Active/Codechef/Count_Subarrays.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | null | null | null | Active/Codechef/Count_Subarrays.cpp | pawan-nirpal-031/Algorithms-And-ProblemSolving | 24ce9649345dabe7275920f6912e410efc2c8e84 | [
"Apache-2.0"
] | null | null | null | // Problem Link : https://www.codechef.com/problems/SUBINC
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ull;
typedef long long int ll;
typedef long double ld;
#define Mod 1000000007
#define Infinity (ll)1e18
#define Append(a) push_back(a)
#define Pair(a,b) make_pair(a,b)
#define Clear(a)... | 26.166667 | 113 | 0.64402 | pawan-nirpal-031 |
b04b7c7fae4ad1f1dd17bf35259b5dcf0fbe3a52 | 1,033 | cpp | C++ | Lab6/timer/timer.cpp | HanlinHu/CS210_LAB_code | c0f2d89cb6b1d2047bd6fea7e2a041660245dc32 | [
"MIT"
] | null | null | null | Lab6/timer/timer.cpp | HanlinHu/CS210_LAB_code | c0f2d89cb6b1d2047bd6fea7e2a041660245dc32 | [
"MIT"
] | null | null | null | Lab6/timer/timer.cpp | HanlinHu/CS210_LAB_code | c0f2d89cb6b1d2047bd6fea7e2a041660245dc32 | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------
//
// Laboratory C timer.cpp
//
// SOLUTION: Implementation of the Timer ADT
//
//
// from "A Laboratory Course in C++ Data Structures" (Roberge,Brandle,Whittington)
//-------------------------------------... | 21.978723 | 83 | 0.398838 | HanlinHu |
b0520e39a141b1abdddddf6aa5ca3457e8914217 | 5,487 | cpp | C++ | src/solar/rendering/fonts/font_renderer.cpp | jseward/solar | a0b76e3c945679a8fcb4cc94160298788b96e4a5 | [
"MIT"
] | 4 | 2017-04-02T07:56:14.000Z | 2021-10-01T18:23:33.000Z | src/solar/rendering/fonts/font_renderer.cpp | jseward/solar | a0b76e3c945679a8fcb4cc94160298788b96e4a5 | [
"MIT"
] | null | null | null | src/solar/rendering/fonts/font_renderer.cpp | jseward/solar | a0b76e3c945679a8fcb4cc94160298788b96e4a5 | [
"MIT"
] | 1 | 2021-10-01T18:23:38.000Z | 2021-10-01T18:23:38.000Z | #include "font_renderer.h"
#include "solar/utility/assert.h"
#include "solar/utility/verify.h"
#include "solar/utility/type_convert.h"
#include "solar/resources/resource_system.h"
#include "solar/rendering/primatives/prim2d.h"
#include "solar/rendering/shaders/shader_program.h"
#include "solar/strings/string_marshal.h"... | 38.640845 | 173 | 0.767815 | jseward |
b05267c70465a20f74bbaf31e95e91e13ef23c52 | 4,119 | hpp | C++ | src/layer/common/split_layer-inl.hpp | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 114 | 2017-06-14T07:05:31.000Z | 2021-06-13T05:30:49.000Z | src/layer/common/split_layer-inl.hpp | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 7 | 2017-11-17T08:16:55.000Z | 2019-10-05T00:09:20.000Z | src/layer/common/split_layer-inl.hpp | pl8787/textnet-release | c85a4162c55b4cfe22eab6f8f0c8b615854f9b8f | [
"Apache-2.0"
] | 40 | 2017-06-15T03:21:10.000Z | 2021-10-31T15:03:30.000Z | #ifndef TEXTNET_LAYER_SPLIT_LAYER_INL_HPP_
#define TEXTNET_LAYER_SPLIT_LAYER_INL_HPP_
#include <iostream>
#include <fstream>
#include <sstream>
#include <set>
#include <mshadow/tensor.h>
#include "../layer.h"
#include "../op.h"
namespace textnet {
namespace layer {
template<typename xpu>
class Split... | 32.179688 | 68 | 0.563729 | pl8787 |
b052ccbe098ca08a99505dd8bd9bc6e07565b83a | 25,688 | cpp | C++ | qtdeclarative/src/quick/scenegraph/qsgdefaultimagenode.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | qtdeclarative/src/quick/scenegraph/qsgdefaultimagenode.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | qtdeclarative/src/quick/scenegraph/qsgdefaultimagenode.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtQuick module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid comme... | 38.570571 | 123 | 0.53706 | wgnet |
b0531130bb331b441af45927d8b8b8af52e452cc | 5,174 | cpp | C++ | source/rho/crypt/tReadableAES.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | 1 | 2016-09-22T03:27:33.000Z | 2016-09-22T03:27:33.000Z | source/rho/crypt/tReadableAES.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | null | null | null | source/rho/crypt/tReadableAES.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | null | null | null | #include <rho/crypt/tReadableAES.h>
#include <rho/eRho.h>
#include <algorithm>
#include <cstdlib>
namespace rho
{
namespace crypt
{
tReadableAES::tReadableAES(iReadable* internalStream, nOperationModeAES opmode,
const u8 key[], nKeyLengthAES keylen)
: m_stream(internalStream),
m_buf(NULL), m... | 26.533333 | 116 | 0.587746 | Rhobota |
b053416c45146f8521086f9776f5ad537888ec50 | 4,674 | cpp | C++ | src/Sound/IMA4.cpp | davidschlachter/Pomme | 6725e28f1428cf75d22054ff50665edbebee5713 | [
"BSL-1.0"
] | 37 | 2020-11-15T14:54:27.000Z | 2022-03-22T21:36:54.000Z | src/Sound/IMA4.cpp | davidschlachter/Pomme | 6725e28f1428cf75d22054ff50665edbebee5713 | [
"BSL-1.0"
] | 4 | 2020-12-19T05:41:40.000Z | 2022-01-31T08:59:37.000Z | src/Sound/IMA4.cpp | davidschlachter/Pomme | 6725e28f1428cf75d22054ff50665edbebee5713 | [
"BSL-1.0"
] | 8 | 2021-01-05T14:36:37.000Z | 2022-03-04T19:45:09.000Z | // Adapted from ffmpeg. Look at libavcodec/adpcm{,_data}.{c,h}
/*
* Portions Copyright (c) 2001-2003 The FFmpeg project
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version... | 28.851852 | 107 | 0.647625 | davidschlachter |
b05728ae2eed9351197d6e300f9c667d53475c61 | 4,961 | cpp | C++ | src/hgs-TV/Decomposition/RouteSequenceDecomposition.cpp | alberto-santini/cvrp-decomposition | 854d2b5b7cdd51fe4ab46acac7d88dbc7e5bfb88 | [
"MIT"
] | null | null | null | src/hgs-TV/Decomposition/RouteSequenceDecomposition.cpp | alberto-santini/cvrp-decomposition | 854d2b5b7cdd51fe4ab46acac7d88dbc7e5bfb88 | [
"MIT"
] | null | null | null | src/hgs-TV/Decomposition/RouteSequenceDecomposition.cpp | alberto-santini/cvrp-decomposition | 854d2b5b7cdd51fe4ab46acac7d88dbc7e5bfb88 | [
"MIT"
] | null | null | null | //
// Created by alberto on 13/03/19.
//
#include "RouteSequenceDecomposition.h"
namespace genvrp {
void RouteSequenceDecomposition::operator()(genvrp::Population& population, const SolverStatus& status) {
// If the problem does not have enough individuals, skip decomposition.
if(params.data.nbCli... | 41.689076 | 157 | 0.627293 | alberto-santini |
b057c834a9a81285ef0e662b6decf1a8d9b86531 | 1,727 | cpp | C++ | src/prod/test/LinuxRetailTests/FabricRuntime.Test.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/test/LinuxRetailTests/FabricRuntime.Test.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/test/LinuxRetailTests/FabricRuntime.Test.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include "... | 59.551724 | 193 | 0.727852 | vishnuk007 |
b0597baceedf8ac1132d1d0124598f17e6fa7d0a | 28,642 | cpp | C++ | src/suWireManager.cpp | ALIGN-analoglayout/AnalogDetailedRouter | 16cf4b4ec6c6b3d5a87277607064a15d7fb4ad3d | [
"BSD-3-Clause"
] | 19 | 2019-07-17T15:41:35.000Z | 2021-12-01T23:57:57.000Z | src/suWireManager.cpp | ALIGN-analoglayout/AnalogDetailedRouter | 16cf4b4ec6c6b3d5a87277607064a15d7fb4ad3d | [
"BSD-3-Clause"
] | null | null | null | src/suWireManager.cpp | ALIGN-analoglayout/AnalogDetailedRouter | 16cf4b4ec6c6b3d5a87277607064a15d7fb4ad3d | [
"BSD-3-Clause"
] | 2 | 2020-07-28T18:50:39.000Z | 2022-01-24T03:13:39.000Z | // see LICENSE
//! \author Ryzhenko Nikolai, 10984646, nikolai.v.ryzhenko@intel.com
//! \date Mon Oct 16 13:21:31 2017
//! \file suWireManager.cpp
//! \brief A collection of methods of the class suWireManager.
// std includes
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <vec... | 29.316274 | 189 | 0.506075 | ALIGN-analoglayout |
b059e0fd8d6cff44f05fbfac2706b115433d4d10 | 324 | cpp | C++ | 0027-Remove-Element/cpp_0027/main.cpp | ooooo-youwillsee/leetcode | 07b273f133c8cf755ea40b3ae9df242ce044823c | [
"MIT"
] | 12 | 2020-03-18T14:36:23.000Z | 2021-12-19T02:24:33.000Z | 0027-Remove-Element/cpp_0027/main.cpp | ooooo-youwillsee/leetcode | 07b273f133c8cf755ea40b3ae9df242ce044823c | [
"MIT"
] | null | null | null | 0027-Remove-Element/cpp_0027/main.cpp | ooooo-youwillsee/leetcode | 07b273f133c8cf755ea40b3ae9df242ce044823c | [
"MIT"
] | null | null | null | #include <iostream>
#include "Solution1.h"
void test(vector<int> vec, int val) {
Solution s;
int res = s.removeElement(vec, val);
for (int i = 0; i < res; ++i) {
cout << vec[i] << " ";
}
cout << endl;
}
int main() {
test({1}, 1);
test({1}, 2);
test({3, 2, 2, 3}, 3);
return ... | 18 | 40 | 0.484568 | ooooo-youwillsee |
b05d29bf79f5becd8a33c7ff52e004972fc454ce | 3,271 | hpp | C++ | src/Serialization/OptionalSerialization.hpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Serialization/OptionalSerialization.hpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Serialization/OptionalSerialization.hpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | /* ============================================================================================== *
* *
* Galaxia Blockchain *
* ... | 48.820896 | 111 | 0.404769 | ElSamaritan |
b05fe81d015b15a01af9f2d262c503a7830c40e1 | 163 | cpp | C++ | software/main/main.cpp | PerMalmberg/IO-Card-G3 | 4a44c8674a88e31d72b4174ca3c24a033a5d6e6f | [
"MIT"
] | 5 | 2019-09-19T01:27:39.000Z | 2021-04-17T06:06:55.000Z | software/main/main.cpp | PerMalmberg/IO-Card-G3 | 4a44c8674a88e31d72b4174ca3c24a033a5d6e6f | [
"MIT"
] | 19 | 2018-10-10T18:32:33.000Z | 2022-02-12T19:38:47.000Z | software/main/main.cpp | PerMalmberg/IO-Card-G3 | 4a44c8674a88e31d72b4174ca3c24a033a5d6e6f | [
"MIT"
] | 2 | 2019-10-13T11:40:50.000Z | 2021-04-17T06:06:57.000Z | #include "App.h"
#ifdef ESP_PLATFORM
extern "C" void app_main()
#else
int main(int /*argc*/, char** /*argv*/)
#endif
{
g3::App app{};
app.start();
}
| 12.538462 | 43 | 0.576687 | PerMalmberg |
b063cb22f43a50d261766d5683f084c7254b05e2 | 108,161 | cpp | C++ | Source/effects.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 2 | 2021-02-02T19:27:20.000Z | 2022-03-07T16:50:55.000Z | Source/effects.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | null | null | null | Source/effects.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 1 | 2022-03-07T16:51:16.000Z | 2022-03-07T16:51:16.000Z | /**
* @file effects.cpp
*
* Implementation of functions for loading and playing sounds.
*/
#include "all.h"
#ifndef NOSOUND
#include <SDL_mixer.h>
#include "utils/soundsample.h"
#endif
DEVILUTION_BEGIN_NAMESPACE
int sfxdelay;
int sfxdnum;
#ifdef NOSOUND
const int sgSFXSets[NUM_SFXSets][NUM_CLASS... | 76.492928 | 199 | 0.520271 | pionere |
b0651453fd9df482a581f72eafbbe880196c8d91 | 733 | cpp | C++ | src/DNNLab/FrameNotes.cpp | Qt-Widgets/BeeDNN | a117d5a1d990df3bc04a469b1b335cdd1add55df | [
"MIT"
] | 1 | 2021-01-10T06:38:52.000Z | 2021-01-10T06:38:52.000Z | src/DNNLab/FrameNotes.cpp | Qt-Widgets/BeeDNN | a117d5a1d990df3bc04a469b1b335cdd1add55df | [
"MIT"
] | null | null | null | src/DNNLab/FrameNotes.cpp | Qt-Widgets/BeeDNN | a117d5a1d990df3bc04a469b1b335cdd1add55df | [
"MIT"
] | null | null | null | #include "FrameNotes.h"
#include "ui_FrameNotes.h"
#include "mainwindow.h"
FrameNotes::FrameNotes(QWidget *parent) :
QFrame(parent),
ui(new Ui::FrameNotes)
{
_bLock=true;
_pMainWindow=nullptr;
ui->setupUi(this);
_bLock=false;
}
FrameNotes::~FrameNotes()
{
delete ui;
}
string FrameNotes::... | 16.288889 | 57 | 0.686221 | Qt-Widgets |
b0662e859010c6d24d33cd4faa9606e4548b2351 | 8,240 | cpp | C++ | cpptester/readData.cpp | ABC-iRobotics/RelaxedUnscentedTransformation | b0e2dc4d484f998fad84796d639af68b5ebdfbbc | [
"MIT"
] | null | null | null | cpptester/readData.cpp | ABC-iRobotics/RelaxedUnscentedTransformation | b0e2dc4d484f998fad84796d639af68b5ebdfbbc | [
"MIT"
] | null | null | null | cpptester/readData.cpp | ABC-iRobotics/RelaxedUnscentedTransformation | b0e2dc4d484f998fad84796d639af68b5ebdfbbc | [
"MIT"
] | null | null | null | #include "readData.h"
#include <fstream>
#include <string>
#include <algorithm>
Barcodes readBarcodes() {
Barcodes out;
// File pointer
std::fstream fin;
// Open an existing file
fin.open(std::string(DATASET_PATH) + "SLAM_dataset/Barcodes.dat", std::ios::in);
if (!fin)
std::logic_error("File not found");
/... | 22.27027 | 123 | 0.486408 | ABC-iRobotics |
b067b0b09e46cb29511d2a5542cf1a25897280b0 | 428 | cpp | C++ | solutions-LUOGU/P5714.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2022-02-26T10:33:24.000Z | 2022-02-26T10:33:24.000Z | solutions-LUOGU/P5714.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | null | null | null | solutions-LUOGU/P5714.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2021-12-01T14:54:33.000Z | 2021-12-01T14:54:33.000Z | #include <iostream>
using namespace std;
float getBMI(float weight, float height);
int main()
{
float m, h, bmi;
cin >> m >> h;
bmi = getBMI(m, h);
if (bmi<18.5)
{
cout << "Underweight";
}
else if (bmi>=18.5 && bmi<24)
{
cout << "Normal";
}
else
{
cout << bmi << endl << "Overweight";
}
return 0;... | 12.969697 | 41 | 0.586449 | Ki-Seki |
b06affa1b763067421762b4fa6fd97c34aedff68 | 2,944 | hpp | C++ | include/NP-Engine/Container/Container.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | include/NP-Engine/Container/Container.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | include/NP-Engine/Container/Container.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | //##===----------------------------------------------------------------------===##//
//
// Author: Nathan Phipps 12/30/20
//
//##===----------------------------------------------------------------------===##//
#ifndef NP_ENGINE_CONTAINER_HPP
#define NP_ENGINE_CONTAINER_HPP
#include "NP-Engine/Foundation/Foundation.h... | 35.46988 | 120 | 0.659647 | naphipps |
b06d44c38dbbaa6bca171c07e8bdd6e79daf24bf | 693 | cpp | C++ | UVA/vol-001/161.cpp | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | 3 | 2017-05-12T14:45:37.000Z | 2020-01-18T16:51:25.000Z | UVA/vol-001/161.cpp | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | null | null | null | UVA/vol-001/161.cpp | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int X[143], n;
while (cin >> X[0] && X[0]) {
for (n=1; cin>>X[n] && X[n]; ++n);
int Y[20000] = {};
for (int i=0; i<n; ++i) {
int p = X[i] << 1;
for (int j=0; j<=18000; j+=p)
++Y[j],
... | 23.1 | 68 | 0.337662 | arash16 |
b07320facb9ebf1254f7d54daedd88912fd9a4b7 | 3,192 | cpp | C++ | c714.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | c714.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | c714.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include<stdint.h>
using namespace std;
#define IOS {cin.tie(0);ios_base::sync_with_stdio(false);}
#define N 50006
#define int int64_t
const int INF = 1e6;
struct treap{
treap *l,*r;
int key,pri,sz,data,keytag,datatag;
treap(int _k,int _d):key(_k),data(_d),sz(1),pri(rand()),keyt... | 18.136364 | 105 | 0.492794 | puyuliao |
b0779c39639ae49c1c46c9ebd987f2a97dc44316 | 2,407 | hxx | C++ | base/fs/utils/tree/tree.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/fs/utils/tree/tree.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/fs/utils/tree/tree.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1991 Microsoft Corporation
Module Name:
tree.hxx
Abstract:
This module contains the definition of the TREE class.
The TREE class implements a tree utility functionally compatible
with the DOS 5 tree utility.
This utility displays the directory structure of a path or drive.
... | 15.33121 | 68 | 0.647279 | npocmaka |
b07c8b0a4d0120da4ca1e2aa96d7354d71d976a1 | 13,738 | cpp | C++ | src/pc_renderer.cpp | dooglz/Celestial-Drift | 8ffcd6765d8e2a70cba502f78ebee432d85f3fee | [
"MIT"
] | null | null | null | src/pc_renderer.cpp | dooglz/Celestial-Drift | 8ffcd6765d8e2a70cba502f78ebee432d85f3fee | [
"MIT"
] | null | null | null | src/pc_renderer.cpp | dooglz/Celestial-Drift | 8ffcd6765d8e2a70cba502f78ebee432d85f3fee | [
"MIT"
] | null | null | null | #include "pc_renderer.h"
#include "GL/glew.h"
#include "TextureManager.h"
#include "common.h"
#include "component_camera.h"
#include "glm/glm.hpp"
#include "mesh.h"
#include "pc_shaderprogram.h"
#include "renderer.h"
#include "resource.h"
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/transform.hpp>
glm::mat4 PC_Ren... | 31.800926 | 120 | 0.619522 | dooglz |
b07e5865ef27ca55b469403c571687d533dadca5 | 44,877 | cpp | C++ | source/bckgrnd.cpp | ToonTalk/desktop-toontalk | 781b9fa035304b93b015447f1c7773b07e912eb2 | [
"BSD-3-Clause"
] | 4 | 2015-10-30T15:50:32.000Z | 2019-11-26T23:26:50.000Z | source/bckgrnd.cpp | ToonTalk/desktop-toontalk | 781b9fa035304b93b015447f1c7773b07e912eb2 | [
"BSD-3-Clause"
] | null | null | null | source/bckgrnd.cpp | ToonTalk/desktop-toontalk | 781b9fa035304b93b015447f1c7773b07e912eb2 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 1992-2005. Ken Kahn, Animated Programs, All rights reserved.
#if !defined(__TT_DEFS_H)
#include "defs.h"
#endif
#if !defined(__TT_GLOBALS_H)
#include "globals.h"
#endif
#if !defined(__TT_STRINGS_H)
#include "strings.h"
#endif
#if !defined(__TT_SPRITE_H)
#include "sprite.h"
#endif ... | 35.41989 | 143 | 0.696949 | ToonTalk |
b0800c3f7028c8a89ef7473dc5cd100fbeba9c84 | 5,258 | cpp | C++ | app/main.cpp | VBot2410/A_Star_3D | 9755e14f5fe963bf48610d6dc8915b9f5a4009c8 | [
"MIT"
] | 3 | 2017-10-11T01:14:44.000Z | 2018-07-08T16:45:00.000Z | app/main.cpp | VBot2410/A_Star_3D | 9755e14f5fe963bf48610d6dc8915b9f5a4009c8 | [
"MIT"
] | null | null | null | app/main.cpp | VBot2410/A_Star_3D | 9755e14f5fe963bf48610d6dc8915b9f5a4009c8 | [
"MIT"
] | 1 | 2021-09-24T16:34:15.000Z | 2021-09-24T16:34:15.000Z | /**
* @file main.cpp
* @brief This project builds a discrete 3-D map from environment information
* and Implements the A* algorithm to plan the path from Start to Goal Point.
*
* @author Vaibhav Bhilare
* @copyright 2017, Vaibhav Bhilare
*
* MIT License
* Copyright (c) 2017 Vaibhav Bhilare
*
* Permission is ... | 40.446154 | 81 | 0.648726 | VBot2410 |
b0861b473d7b00a4491ca233c198d8aabad6c667 | 70 | cpp | C++ | CppMemento/examples/RADIX_SORT/radix_sort.cpp | andrasigneczi/cpp_lang_taining | 1198df6a896d0f6fce281e069abba88ef40598fc | [
"Apache-2.0"
] | null | null | null | CppMemento/examples/RADIX_SORT/radix_sort.cpp | andrasigneczi/cpp_lang_taining | 1198df6a896d0f6fce281e069abba88ef40598fc | [
"Apache-2.0"
] | null | null | null | CppMemento/examples/RADIX_SORT/radix_sort.cpp | andrasigneczi/cpp_lang_taining | 1198df6a896d0f6fce281e069abba88ef40598fc | [
"Apache-2.0"
] | null | null | null | #include "radix_sort.h"
void radixSort(std::vector<int>& v) {
}
| 11.666667 | 37 | 0.628571 | andrasigneczi |
b0892f6b2203b7e1f058e1016ae14e2afc100cf4 | 8,601 | cc | C++ | mysql-server/router/src/router/tests/issues/test_bug24909259.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/src/router/tests/issues/test_bug24909259.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/src/router/tests/issues/test_bug24909259.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /*
Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain ... | 33.337209 | 80 | 0.67434 | silenc3502 |
b08d744f3c24e3b86f5c9657adb051c635e8bfcf | 1,343 | cpp | C++ | aws-cpp-sdk-iot/source/model/FleetMetricNameAndArn.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-iot/source/model/FleetMetricNameAndArn.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-iot/source/model/FleetMetricNameAndArn.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot/model/FleetMetricNameAndArn.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
nam... | 17.906667 | 76 | 0.730454 | perfectrecall |
b08f5b84f7b9677ce9ac7e504b16496d7946fa4f | 2,631 | hpp | C++ | rmf_traffic/include/rmf_traffic/agv/LaneClosure.hpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 10 | 2021-04-14T07:01:56.000Z | 2022-02-21T02:26:58.000Z | rmf_traffic/include/rmf_traffic/agv/LaneClosure.hpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 63 | 2021-03-10T06:06:13.000Z | 2022-03-25T08:47:07.000Z | rmf_traffic/include/rmf_traffic/agv/LaneClosure.hpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 10 | 2021-03-17T02:52:14.000Z | 2022-02-21T02:27:02.000Z | /*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 27.694737 | 80 | 0.666287 | 0to1 |
b093bf85c00e5c421189ecb090f653605be700a0 | 4,477 | cpp | C++ | mail/Email.cpp | phiwen96/SocketsServer | eeff4347f0fc31c5081b7f3f59b3c201f6a4f4e7 | [
"Apache-2.0"
] | null | null | null | mail/Email.cpp | phiwen96/SocketsServer | eeff4347f0fc31c5081b7f3f59b3c201f6a4f4e7 | [
"Apache-2.0"
] | null | null | null | mail/Email.cpp | phiwen96/SocketsServer | eeff4347f0fc31c5081b7f3f59b3c201f6a4f4e7 | [
"Apache-2.0"
] | null | null | null | #include "Email.hpp"
void sendEmail()
{
CURL *curl;
CURLcode res = CURLE_OK;
struct curl_slist *recipients = NULL;
struct upload_status upload_ctx;
upload_ctx.lines_read = 0;
curl = curl_easy_init();
if(curl) {
/* Set username and password */
... | 49.197802 | 87 | 0.601296 | phiwen96 |
b093e01c59186885e11ef283c5de787fe460355f | 8,509 | cpp | C++ | plugins/nonpersistent_voxel_layer.cpp | SteveMacenski/non-persistent-voxel-layer | b09cf66faf8424c6245334b78605d58a2cf95da6 | [
"BSD-3-Clause"
] | null | null | null | plugins/nonpersistent_voxel_layer.cpp | SteveMacenski/non-persistent-voxel-layer | b09cf66faf8424c6245334b78605d58a2cf95da6 | [
"BSD-3-Clause"
] | null | null | null | plugins/nonpersistent_voxel_layer.cpp | SteveMacenski/non-persistent-voxel-layer | b09cf66faf8424c6245334b78605d58a2cf95da6 | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, 2013, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... | 33.632411 | 96 | 0.695146 | SteveMacenski |
b094644630701c8cefb6af63fb6367e20850660d | 1,878 | cpp | C++ | theory/burrows_wheeler/bw_matching.cpp | ideahitme/coursera | af44c8d817481d4f9025205284f109d95a9bb45d | [
"MIT"
] | null | null | null | theory/burrows_wheeler/bw_matching.cpp | ideahitme/coursera | af44c8d817481d4f9025205284f109d95a9bb45d | [
"MIT"
] | null | null | null | theory/burrows_wheeler/bw_matching.cpp | ideahitme/coursera | af44c8d817481d4f9025205284f109d95a9bb45d | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
struct t{
int l_index; //index in bwt string
int f_index; //index in suffix array
t(int f_index): f_index(f_index) {};
};
inline int con(char x){
if (x == '$') return 0;
if (x == 'A') return 1;
if (x == 'C') retur... | 20.866667 | 62 | 0.554846 | ideahitme |
b09645265b8e106645b7463c776a0713265b8a92 | 2,527 | hpp | C++ | src/camera.hpp | DeNiCoN/ComputerGraphicsLabs | ca02ea69b8dbc2ebeef1068779a0802babc95302 | [
"Unlicense"
] | null | null | null | src/camera.hpp | DeNiCoN/ComputerGraphicsLabs | ca02ea69b8dbc2ebeef1068779a0802babc95302 | [
"Unlicense"
] | null | null | null | src/camera.hpp | DeNiCoN/ComputerGraphicsLabs | ca02ea69b8dbc2ebeef1068779a0802babc95302 | [
"Unlicense"
] | null | null | null | #pragma once
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp>
#include <array>
#include <string_view>
#include <algorithm>
#include <ranges>
namespace Projection
{
enum Projection
{
ORTHO, PERSPECTIVE
};
const std::array projectionStrings
{
"Ortho", "Perspective"
};
inline const char* ToString(Project... | 25.785714 | 84 | 0.600712 | DeNiCoN |
b096e0545c390475f280c8363919f9ef6c5e33bc | 1,326 | cpp | C++ | mao_protocol_stack/protocol/udp.cpp | MaoJianwei/Mao_Protocol_Stack | 0c26cb35e61d131985acd0882d60ccc3e815a149 | [
"Apache-2.0"
] | null | null | null | mao_protocol_stack/protocol/udp.cpp | MaoJianwei/Mao_Protocol_Stack | 0c26cb35e61d131985acd0882d60ccc3e815a149 | [
"Apache-2.0"
] | null | null | null | mao_protocol_stack/protocol/udp.cpp | MaoJianwei/Mao_Protocol_Stack | 0c26cb35e61d131985acd0882d60ccc3e815a149 | [
"Apache-2.0"
] | null | null | null | //
// Created by root on 19-4-17.
//
#include <cstdio>
#include <cstring>
#include <netinet/in.h>
#include "udp.h"
#include "ethernet.h"
#include "ipv4.h"
udp::udp(unsigned char *packet) {
unsigned int first;
memcpy(&first, packet + ethernet::HEADER_LENGTH + ipv4::HEADER_LENGTH, 4);
first = ntohl(first);... | 19.217391 | 83 | 0.625943 | MaoJianwei |
b09728396bb1450cde6cf358f7e52e438bc5f736 | 2,157 | cpp | C++ | node-llvm/value.cpp | carlosalberto/echo-js | 1d92b782cf0465321635242138a1d8c902b5ebb2 | [
"MIT"
] | null | null | null | node-llvm/value.cpp | carlosalberto/echo-js | 1d92b782cf0465321635242138a1d8c902b5ebb2 | [
"MIT"
] | null | null | null | node-llvm/value.cpp | carlosalberto/echo-js | 1d92b782cf0465321635242138a1d8c902b5ebb2 | [
"MIT"
] | null | null | null | #include "node-llvm.h"
#include "value.h"
using namespace node;
using namespace v8;
namespace jsllvm {
void Value::Init(Handle<Object> target)
{
HandleScope scope;
Local<FunctionTemplate> t = FunctionTemplate::New(New);
s_ct = Persistent<FunctionTemplate>::New(t);
s_ct->InstanceTemplate()->SetI... | 23.703297 | 69 | 0.662031 | carlosalberto |
b0975cc86125fc253cf28d7cd36406647a43be04 | 2,073 | hpp | C++ | bin/Mediasoup.xcframework/ios-arm64_x86_64-simulator/Mediasoup.framework/PrivateHeaders/ReceiveTransportWrapper.hpp | VLprojects/mediaborsch-client-swift | 34cc664b0f2c95e769fa0d7df01a219bba43ff4f | [
"MIT"
] | null | null | null | bin/Mediasoup.xcframework/ios-arm64_x86_64-simulator/Mediasoup.framework/PrivateHeaders/ReceiveTransportWrapper.hpp | VLprojects/mediaborsch-client-swift | 34cc664b0f2c95e769fa0d7df01a219bba43ff4f | [
"MIT"
] | null | null | null | bin/Mediasoup.xcframework/ios-arm64_x86_64-simulator/Mediasoup.framework/PrivateHeaders/ReceiveTransportWrapper.hpp | VLprojects/mediaborsch-client-swift | 34cc664b0f2c95e769fa0d7df01a219bba43ff4f | [
"MIT"
] | null | null | null | #ifndef ReceiveTransportWrapper_h
#define ReceiveTransportWrapper_h
#import <Foundation/Foundation.h>
#import "MediasoupClientMediaKind.h"
#ifdef __cplusplus
namespace mediasoupclient {
class RecvTransport;
}
class ReceiveTransportListenerAdapter;
#endif
@class ConsumerWrapper;
@class RTCPeerConnectionFactory;
@pro... | 35.135593 | 95 | 0.826339 | VLprojects |
b09865ad533c07e5d1ddc2b35144a0f361e03072 | 1,726 | cpp | C++ | Unity/vr_arm_ctrl/Library/PackageCache/com.unity.xr.openxr@1.3.1/MockRuntime/Native~/openxr_loader/mock_loader.cpp | BigMeatBaoZi/SDM5002 | 52d60368f3c638d36f63de9e88cca5144b5021a5 | [
"MIT"
] | null | null | null | Unity/vr_arm_ctrl/Library/PackageCache/com.unity.xr.openxr@1.3.1/MockRuntime/Native~/openxr_loader/mock_loader.cpp | BigMeatBaoZi/SDM5002 | 52d60368f3c638d36f63de9e88cca5144b5021a5 | [
"MIT"
] | null | null | null | Unity/vr_arm_ctrl/Library/PackageCache/com.unity.xr.openxr@1.3.1/MockRuntime/Native~/openxr_loader/mock_loader.cpp | BigMeatBaoZi/SDM5002 | 52d60368f3c638d36f63de9e88cca5144b5021a5 | [
"MIT"
] | 2 | 2022-03-14T00:37:10.000Z | 2022-03-14T02:31:38.000Z | #ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif // !WIN32_LEAN_AND_MEAN
#include <d3d11.h>
#include <d3d12.h>
#include <windows.h>
#endif
#include <vulkan/vulkan.h>
#define XR_NO_PROTOTYPES
#include "XR/IUnityXRTrace.h"
#include "openxr/openxr.h"
#include "openxr/openxr_platform.h"
#inclu... | 27.83871 | 144 | 0.76883 | BigMeatBaoZi |
b09cff5b9f8737287234d92fa91d38eae16f9201 | 2,107 | cpp | C++ | src/prod/src/Hosting2/GetNetworkDeployedPackagesReply.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Hosting2/GetNetworkDeployedPackagesReply.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Hosting2/GetNetworkDeployedPackagesReply.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 36.327586 | 98 | 0.671096 | gridgentoo |
b09e5ae6e606fa911a52ef9c93db843e9eb5fc28 | 842 | cpp | C++ | cpp/Frustrated_coder_2.cpp | Razdeep/Hackerearth-Solutions | af37a2f8271c11ca5ed7ab7a8b1a1ff3436f0ea0 | [
"MIT"
] | null | null | null | cpp/Frustrated_coder_2.cpp | Razdeep/Hackerearth-Solutions | af37a2f8271c11ca5ed7ab7a8b1a1ff3436f0ea0 | [
"MIT"
] | null | null | null | cpp/Frustrated_coder_2.cpp | Razdeep/Hackerearth-Solutions | af37a2f8271c11ca5ed7ab7a8b1a1ff3436f0ea0 | [
"MIT"
] | null | null | null | // https://www.hackerearth.com/practice/data-structures/stacks/basics-of-stacks/practice-problems/algorithm/sniper-shooting/description/
// More efficient version of the previous code
#include<bits/stdc++.h>
#define MAX 1003
using namespace std;
typedef long long ll;
int main()
{
ll N,temp;
vector<ll> line;
... | 23.388889 | 136 | 0.566508 | Razdeep |
b09ead2a75fb0c63ed992c9f5df2cded5e5afb2c | 7,944 | cpp | C++ | ESPSloeber/BathFanControl/Configuration.cpp | theater/House | 7220f3d89d6de6a809fa36121dc28754feaf6bc0 | [
"MIT"
] | null | null | null | ESPSloeber/BathFanControl/Configuration.cpp | theater/House | 7220f3d89d6de6a809fa36121dc28754feaf6bc0 | [
"MIT"
] | null | null | null | ESPSloeber/BathFanControl/Configuration.cpp | theater/House | 7220f3d89d6de6a809fa36121dc28754feaf6bc0 | [
"MIT"
] | null | null | null | /*
* Configuration.cpp
*
* Created on: Oct 25, 2019
* Author: theater
*/
#include "Configuration.h"
void Configuration::print() {
Serial.println("###########################################");
String simulated = isSimulated ? "true" : "false";
Serial.printf("Simulated=%s \n", simulated.c_str... | 46.186047 | 187 | 0.715005 | theater |
b09fb659708b35048eb68528549ff9167f2b9a84 | 785 | hpp | C++ | src/kcount/kcount-gpu/hashutil.hpp | xiamaz/ipuma | f8bc8ac24a5c282cf8c2003cb32bc21c1cb386e2 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/kcount/kcount-gpu/hashutil.hpp | xiamaz/ipuma | f8bc8ac24a5c282cf8c2003cb32bc21c1cb386e2 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/kcount/kcount-gpu/hashutil.hpp | xiamaz/ipuma | f8bc8ac24a5c282cf8c2003cb32bc21c1cb386e2 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #pragma once
/*
* ============================================================================
*
* Authors: Prashant Pandey <ppandey@cs.stonybrook.edu>
* Rob Johnson <robj@vmware.com>
*
* ============================================================================
*/
#ifndef... | 30.192308 | 89 | 0.56051 | xiamaz |
b0a22f165833945ec40edefad837f9c08a1a1122 | 322,731 | cpp | C++ | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_sysadmin_asic_errors_ael.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_sysadmin_asic_errors_ael.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_sysadmin_asic_errors_ael.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z |
#include <sstream>
#include <iostream>
#include <ydk/entity_util.hpp>
#include "bundle_info.hpp"
#include "generated_entity_lookup.hpp"
#include "Cisco_IOS_XR_sysadmin_asic_errors_ael.hpp"
using namespace ydk;
namespace cisco_ios_xr {
namespace Cisco_IOS_XR_sysadmin_asic_errors_ael {
AsicErrors::AsicErrors()
:
... | 28.464544 | 379 | 0.673796 | CiscoDevNet |
b0ab4b787921ea1b94e7f14e3143e6c8378f4f61 | 1,715 | cpp | C++ | apps/gadgetron/connection/nodes/ParallelProcess.cpp | roopchansinghv/gadgetron | fb6c56b643911152c27834a754a7b6ee2dd912da | [
"MIT"
] | 1 | 2022-02-22T21:06:36.000Z | 2022-02-22T21:06:36.000Z | apps/gadgetron/connection/nodes/ParallelProcess.cpp | apd47/gadgetron | 073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2 | [
"MIT"
] | null | null | null | apps/gadgetron/connection/nodes/ParallelProcess.cpp | apd47/gadgetron | 073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2 | [
"MIT"
] | null | null | null | #include "ParallelProcess.h"
#include "ThreadPool.h"
using namespace Gadgetron::Core;
namespace Gadgetron::Server::Connection::Nodes {
void ParallelProcess::process_input(GenericInputChannel input, Queue &queue) {
ThreadPool pool(workers ? workers : std::thread::hardware_concurrency());
for (a... | 28.114754 | 102 | 0.577259 | roopchansinghv |
b0b0489f869e658de88779d56d4047b07a58ee43 | 26,553 | cc | C++ | src/st_sim_utils.cc | vzaccaria/most | 2b3b8768a960245e433a5a733cba6f08451e3fec | [
"Unlicense"
] | null | null | null | src/st_sim_utils.cc | vzaccaria/most | 2b3b8768a960245e433a5a733cba6f08451e3fec | [
"Unlicense"
] | null | null | null | src/st_sim_utils.cc | vzaccaria/most | 2b3b8768a960245e433a5a733cba6f08451e3fec | [
"Unlicense"
] | null | null | null | /* @STSHELL_LICENSE_START@
*
* __ _______ ___________
* / |/ / __ \/ ___/_ __/
* / /|_/ / / / /\__ \ / /
* / / / / /_/ /___/ // /
* /_/ /_/\____//____//_/
*
* Multi-Objective System Tuner
* Copyright (c) 2007-2022 Politecnico di Milano
*
* Development leader: Vittorio ... | 31.573127 | 80 | 0.610741 | vzaccaria |
b0b0e7932693aa9736d22b38148a2fde451c2921 | 1,352 | cpp | C++ | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Topological_Sort/Topological_Sort.cpp | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Topological_Sort/Topological_Sort.cpp | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Topological_Sort/Topological_Sort.cpp | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#include <vector>
using namespace std;
class Graph {
int numVertex;
vector<int> *adj;
public:
// Constructor to initialise graph
Graph(int numVertex) {
this->numVertex = numVertex;
adj = new vector<int> [numVertex];
}
// Function to add edge between source and d... | 18.777778 | 87 | 0.648669 | rajatenzyme |
b0b88e3500534c6d3940146d8d5009731e246a59 | 12,621 | hpp | C++ | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_SYSLOG_MIB.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_SYSLOG_MIB.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_SYSLOG_MIB.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z | #ifndef _CISCO_SYSLOG_MIB_
#define _CISCO_SYSLOG_MIB_
#include <memory>
#include <vector>
#include <string>
#include <ydk/types.hpp>
#include <ydk/errors.hpp>
namespace cisco_ios_xe {
namespace CISCO_SYSLOG_MIB {
class CISCOSYSLOGMIB : public ydk::Entity
{
public:
CISCOSYSLOGMIB();
~CISCOSYSLOGM... | 46.062044 | 162 | 0.686633 | CiscoDevNet |
b0bb5fe2bcc6f2ffb141c55e4fb4143367be729f | 2,177 | hpp | C++ | inc/statick/pybind/linear_model.hpp | Dekken/statick | f3759986f68020066fe35c16af843fcf083c0a31 | [
"BSD-3-Clause"
] | 7 | 2019-03-13T22:46:57.000Z | 2020-06-11T13:10:47.000Z | inc/statick/pybind/linear_model.hpp | Dekken/statick | f3759986f68020066fe35c16af843fcf083c0a31 | [
"BSD-3-Clause"
] | 4 | 2019-02-17T14:16:34.000Z | 2020-07-11T13:41:56.000Z | inc/statick/pybind/linear_model.hpp | Dekken/statick | f3759986f68020066fe35c16af843fcf083c0a31 | [
"BSD-3-Clause"
] | 2 | 2019-10-25T03:24:55.000Z | 2020-04-07T13:04:32.000Z |
#ifndef STATICK_PYBIND_LINEAR_MODEL_HPP_
#define STATICK_PYBIND_LINEAR_MODEL_HPP_
#include "statick/array.hpp"
#include "statick/pybind/def.hpp"
#include "statick/linear_model/model_logreg.hpp"
namespace statick_py {
namespace logreg {
template <typename T, typename DAO>
void fit_d(DAO &dao, py_array_t<T> &a, py_arr... | 33.492308 | 97 | 0.694993 | Dekken |
b0bfb70cbacd1f5f7425e2895d28c66003f38a77 | 7,481 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Winforms/ComponentEditorExample/CPP/componenteditorexamplecomponent.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Winforms/ComponentEditorExample/CPP/componenteditorexamplecomponent.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Winforms/ComponentEditorExample/CPP/componenteditorexamplecomponent.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
//<Snippet1>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.dll>
using namespace System;
using namespace System::ComponentModel;
using namespace System::ComponentModel::Design;
using namespace System::Collections;
using namespace System::Drawing;
using namespace System::IO;
... | 42.505682 | 220 | 0.670499 | hamarb123 |
b0c269ecd48a8acbbb768b8b2f55d36fb170d983 | 4,386 | cpp | C++ | source code/dvcc/v1.4.2.2/paint/ramqgitem.cpp | HarleyEhrich/DvccSimulationEnvironment | fdb082eb52c18a95015fc12058824345875cf038 | [
"Apache-2.0"
] | null | null | null | source code/dvcc/v1.4.2.2/paint/ramqgitem.cpp | HarleyEhrich/DvccSimulationEnvironment | fdb082eb52c18a95015fc12058824345875cf038 | [
"Apache-2.0"
] | null | null | null | source code/dvcc/v1.4.2.2/paint/ramqgitem.cpp | HarleyEhrich/DvccSimulationEnvironment | fdb082eb52c18a95015fc12058824345875cf038 | [
"Apache-2.0"
] | null | null | null | #include "ramqgitem.h"
QRectF RamQGItem::boundingRect() const
{
return QRectF(this->mapFromScene(200*this->data->zoomXPer,-250*this->data->zoomYPer),
QSizeF(150*this->data->zoomXPer,390*this->data->zoomYPer));
}
void RamQGItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWid... | 32.488889 | 99 | 0.645919 | HarleyEhrich |
b0c801272d537ad2a94c1bb762a4d0ad52c58a79 | 119 | hpp | C++ | src/QonGPU/include/potentials/Potential3D.hpp | s0vereign/SchroedingerSolver | 83461ef779019ec7944bb2c5ea0a4702f4aeb32f | [
"MIT"
] | 3 | 2017-04-21T12:22:33.000Z | 2019-01-22T13:14:46.000Z | src/QonGPU/include/potentials/Potential3D.hpp | s0vereign/SchroedingerSolver | 83461ef779019ec7944bb2c5ea0a4702f4aeb32f | [
"MIT"
] | 8 | 2016-05-09T09:44:35.000Z | 2017-03-22T15:31:13.000Z | src/QonGPU/include/potentials/Potential3D.hpp | s0vereign/QonGPU | 83461ef779019ec7944bb2c5ea0a4702f4aeb32f | [
"MIT"
] | null | null | null | #ifndef POTENTIAL3D_H
#define POTENTIAL3D_H
#include "Potential.hpp"
class Potential3D: public Potential{};
#endif
| 11.9 | 38 | 0.781513 | s0vereign |
37cede24bfbdc1e91225b35be3c11718492da60d | 1,747 | cpp | C++ | src/AttackFSM.cpp | mikaelmello/story-based-rpg | bc73c24ad0e41512c3e980ca3aad0fc5738af2f2 | [
"Zlib"
] | null | null | null | src/AttackFSM.cpp | mikaelmello/story-based-rpg | bc73c24ad0e41512c3e980ca3aad0fc5738af2f2 | [
"Zlib"
] | null | null | null | src/AttackFSM.cpp | mikaelmello/story-based-rpg | bc73c24ad0e41512c3e980ca3aad0fc5738af2f2 | [
"Zlib"
] | null | null | null | #include "AttackFSM.hpp"
#include <memory>
#include "Antagonist.hpp"
#include "Collider.hpp"
#include "Collision.hpp"
#include "Player.hpp"
#include "Sprite.hpp"
AttackFSM::AttackFSM(GameObject& object) : IFSM(object, ZERO_SPEED) {
auto ant_cpt = object.GetComponent(Types::AntagonistType);
if (!ant_cpt) {
thr... | 26.469697 | 75 | 0.717802 | mikaelmello |
37d1834549ed27237f7f8ffca18cc5371211d239 | 521 | cpp | C++ | Lab Sessions/Lab 2/Left_Rotation.cpp | bimalka98/Data-Structures-and-Algorithms | 7d358a816561551a5b04af8de378141becda42bd | [
"MIT"
] | 1 | 2021-03-21T07:54:08.000Z | 2021-03-21T07:54:08.000Z | Lab Sessions/Lab 2/Left_Rotation.cpp | bimalka98/Data-Structures-and-Algorithms | 7d358a816561551a5b04af8de378141becda42bd | [
"MIT"
] | null | null | null | Lab Sessions/Lab 2/Left_Rotation.cpp | bimalka98/Data-Structures-and-Algorithms | 7d358a816561551a5b04af8de378141becda42bd | [
"MIT"
] | null | null | null | vector<int> rotateLeft(int d, vector<int> arr) {
int i = 0; // declaring a temporarily variable to store the number of steps
while(i < d){
int temp = *arr.begin(); // storing the first element in the vector to a temporarily variable
arr.erase(arr.begin()); // erasing the first element
arr... | 47.363636 | 102 | 0.629559 | bimalka98 |
37d60679c8399348d97a637379229cc175873ab0 | 447 | cc | C++ | Sliding_Window/1208.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Sliding_Window/1208.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Sliding_Window/1208.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | //https://leetcode.com/problems/get-equal-substrings-within-budget/discuss/392837/JavaC%2B%2BPython-Sliding-Window
class Solution {
public:
int equalSubstring(string s, string t, int maxCost) {
int len = s.size();
int i = 0;
for (int j=0; j<len; ++j){
if((maxCost -= abs(s[j]-t[j... | 26.294118 | 114 | 0.505593 | guohaoqiang |
37d6a0ed152dbb0f062c0d52777ffb96bbc3a8d9 | 1,711 | cc | C++ | dragon/kernels/array/tile_op_kernel.cc | seetaresearch/Dragon | 494774d3a545f807d483fd9e6e4563cedec6dda5 | [
"BSD-2-Clause"
] | 81 | 2018-03-13T13:08:37.000Z | 2020-06-13T14:36:29.000Z | dragon/kernels/array/tile_op_kernel.cc | seetaresearch/Dragon | 494774d3a545f807d483fd9e6e4563cedec6dda5 | [
"BSD-2-Clause"
] | 2 | 2019-08-07T09:26:07.000Z | 2019-08-26T07:33:55.000Z | dragon/kernels/array/tile_op_kernel.cc | seetaresearch/Dragon | 494774d3a545f807d483fd9e6e4563cedec6dda5 | [
"BSD-2-Clause"
] | 13 | 2018-03-13T13:08:50.000Z | 2020-05-28T08:20:22.000Z | #include "dragon/utils/math_functions.h"
#include "dragon/utils/op_kernels.h"
namespace dragon {
namespace kernels {
namespace {
template <typename T>
void _Tile(
const int num_dims,
const int64_t* x_dims,
const int64_t* x_strides,
const int64_t* y_dims,
const T* x,
T* y) {
const auto N = ... | 27.596774 | 69 | 0.534775 | seetaresearch |
37d88fcebe078f663ad2bdd2163a12602df8a7ae | 10,703 | cpp | C++ | main.cpp | KacperSynator/Process_Scheduler | bdb41fbf8f2fbe473e2aa8fcd34ef5f3fce04428 | [
"MIT"
] | null | null | null | main.cpp | KacperSynator/Process_Scheduler | bdb41fbf8f2fbe473e2aa8fcd34ef5f3fce04428 | [
"MIT"
] | null | null | null | main.cpp | KacperSynator/Process_Scheduler | bdb41fbf8f2fbe473e2aa8fcd34ef5f3fce04428 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <sstream>
#include <algorithm>
/* Program description:
* Program is simulating a process scheduler. Program executes with three arguments (arguments description below).
* Program works in step mode i.e. firstly it reads input from stdin if there is any, secondly it exec... | 38.362007 | 127 | 0.622442 | KacperSynator |
37e270fc5a91c1ef49e228ad39aba802b4cee2f1 | 1,696 | cpp | C++ | design_patterns/structural_bridge/bridge_dynamic.cpp | anstellaire/photon-i3-colors | 3f3e44a5b9bdfbdc35e00bd2116acb7211ef6f54 | [
"MIT"
] | 1 | 2021-06-23T09:08:55.000Z | 2021-06-23T09:08:55.000Z | design_patterns/structural_bridge/bridge_dynamic.cpp | anstellaire/sweets | 3f3e44a5b9bdfbdc35e00bd2116acb7211ef6f54 | [
"MIT"
] | null | null | null | design_patterns/structural_bridge/bridge_dynamic.cpp | anstellaire/sweets | 3f3e44a5b9bdfbdc35e00bd2116acb7211ef6f54 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
// -----------------------------------------------------------------------------
// PATTERN (dynamic polymorphism)
// -----------------------------------------------------------------------------
struct weapon_slot {
virtual char const* use() = 0;
virtual ~weapon_slot()... | 24.941176 | 80 | 0.504127 | anstellaire |
37e367fba0718674625ec86cbf4214c97b764fd9 | 5,551 | cc | C++ | mindspore/ccsrc/plugin/device/cpu/kernel/mkldnn/lrn_grad_cpu_kernel.cc | httpsgithu/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | 1 | 2022-03-30T03:43:29.000Z | 2022-03-30T03:43:29.000Z | mindspore/ccsrc/plugin/device/cpu/kernel/mkldnn/lrn_grad_cpu_kernel.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/plugin/device/cpu/kernel/mkldnn/lrn_grad_cpu_kernel.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* 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... | 43.708661 | 116 | 0.717709 | httpsgithu |
37e75c8ec953bc5ccea781d3ba6900291606e451 | 3,832 | cpp | C++ | src/treemodel.cpp | RazrFalcon/ttf-explorer | ff6eab3616824a54c466ab28da43464a8a2540f3 | [
"MIT"
] | 18 | 2020-03-12T16:03:04.000Z | 2022-01-22T16:07:32.000Z | src/treemodel.cpp | RazrFalcon/ttf-explorer | ff6eab3616824a54c466ab28da43464a8a2540f3 | [
"MIT"
] | null | null | null | src/treemodel.cpp | RazrFalcon/ttf-explorer | ff6eab3616824a54c466ab28da43464a8a2540f3 | [
"MIT"
] | null | null | null | #include <QFont>
#include "utils.h"
#include "treemodel.h"
TreeItem::TreeItem(TreeItem *parent)
: m_parent(parent)
{
}
TreeItem::~TreeItem()
{
qDeleteAll(m_children);
}
TreeItem* TreeItem::child(int number)
{
return m_children.value(number);
}
int TreeItem::childCount() const
{
return m_children.c... | 21.054945 | 88 | 0.629958 | RazrFalcon |
37e914f417c2ce68699cef8806a884c11fcbc2a8 | 3,325 | cpp | C++ | examples/audio/audio_thru_with_scope/audio_thru_with_scope.cpp | newdigate/teensy-eurorack-software | c3013a73f302ae395c5f44dbd53312cb0f54ba6c | [
"MIT"
] | 4 | 2021-10-01T06:11:16.000Z | 2022-03-18T03:48:05.000Z | examples/audio/audio_thru_with_scope/audio_thru_with_scope.cpp | newdigate/teensy-eurorack-software | c3013a73f302ae395c5f44dbd53312cb0f54ba6c | [
"MIT"
] | null | null | null | examples/audio/audio_thru_with_scope/audio_thru_with_scope.cpp | newdigate/teensy-eurorack-software | c3013a73f302ae395c5f44dbd53312cb0f54ba6c | [
"MIT"
] | null | null | null | #include <Audio.h>
#include <SPI.h>
#include <ST7735_t3.h> // Hardware-specific library
#include <TeensyEurorack.h>
// GUItool: begin automatically generated code
AudioInputTDM tdm1; //xy=257,403
AudioRecordQueue queue1; //xy=527,243
AudioOutputTDM tdm3; //xy=67... | 27.941176 | 147 | 0.623459 | newdigate |
37e95a08ec1c6d85092eba530c33bf32f30ee6b3 | 1,737 | hpp | C++ | cmdstan/stan/lib/stan_math/test/unit/math/rev/scal/fun/util.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/rev/scal/fun/util.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/rev/scal/fun/util.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #ifndef TEST_UNIT_MATH_REV_SCAL_FUN_UTIL_HPP
#define TEST_UNIT_MATH_REV_SCAL_FUN_UTIL_HPP
#include <stan/math/rev/scal.hpp>
#include <test/unit/math/rev/scal/util.hpp>
typedef stan::math::var AVAR;
typedef std::vector<AVAR> AVEC;
typedef std::vector<double> VEC;
AVEC createAVEC(AVAR x) {
AVEC v;
v.push_back(x);
... | 20.927711 | 89 | 0.654001 | yizhang-cae |
37fa5dbcab513c7755df2b2137f41afd6ad207a0 | 1,331 | cpp | C++ | test/entity_tests.cpp | ShelbyZ/BattleSystem | 475b6e1024267d429c1e0946b7e9ddd05316fb49 | [
"MIT"
] | null | null | null | test/entity_tests.cpp | ShelbyZ/BattleSystem | 475b6e1024267d429c1e0946b7e9ddd05316fb49 | [
"MIT"
] | 2 | 2018-05-29T06:31:12.000Z | 2018-06-01T05:44:44.000Z | test/entity_tests.cpp | ShelbyZ/BattleSystem | 475b6e1024267d429c1e0946b7e9ddd05316fb49 | [
"MIT"
] | null | null | null | #include <string>
#include "gtest/gtest.h"
#include "../battle_system/entity.h"
TEST(Reference, Constructor)
{
std::string name = "shelby";
auto entity = CEntity(name);
ASSERT_EQ("shelby", entity.getName());
ASSERT_EQ("", name);
}
TEST(Reference_EmptyName, Constructor)
{
ASSERT_THROW({
... | 18.232877 | 44 | 0.636364 | ShelbyZ |
37fc78e202d07a699204dbf57c3d0692cbf52ba8 | 3,126 | cpp | C++ | src/proseco_planning/action/actionSpace.cpp | ProSeCo-Planning/proseco_planning | c9a8d65c5f24e59e170e8de271e769ca65b9b10d | [
"BSD-3-Clause"
] | null | null | null | src/proseco_planning/action/actionSpace.cpp | ProSeCo-Planning/proseco_planning | c9a8d65c5f24e59e170e8de271e769ca65b9b10d | [
"BSD-3-Clause"
] | null | null | null | src/proseco_planning/action/actionSpace.cpp | ProSeCo-Planning/proseco_planning | c9a8d65c5f24e59e170e8de271e769ca65b9b10d | [
"BSD-3-Clause"
] | null | null | null | #include "proseco_planning/action/actionSpace.h"
#include <cstddef>
#include <random>
#include <stdexcept>
#include <variant>
#include "proseco_planning/action/actionSpaceRectangle.h"
#include "proseco_planning/collision_checker/collisionChecker.h"
#include "proseco_planning/math/mathlib.h"
#include "proseco_planning... | 38.592593 | 98 | 0.705374 | ProSeCo-Planning |
37fc9861f48b90fc05844a3a8b621ce6395a845a | 473 | cpp | C++ | cf/ac/0268A.cpp | vitorgt/problem-solving | 11fa59de808f7a113c08454b4aca68b01410892e | [
"MIT"
] | null | null | null | cf/ac/0268A.cpp | vitorgt/problem-solving | 11fa59de808f7a113c08454b4aca68b01410892e | [
"MIT"
] | null | null | null | cf/ac/0268A.cpp | vitorgt/problem-solving | 11fa59de808f7a113c08454b4aca68b01410892e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
int main(int argc, const char **argv) {
std::ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
int n = 0, a = 0, b = 0, ans = 0;
unordered_multiset<int> h;
vector<int> g;
cin >> n;
while (n--) {
cin ... | 16.892857 | 68 | 0.513742 | vitorgt |
37fda60166636d21210077343121767f5fb066be | 528 | hpp | C++ | include/snd/ramp_gen.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | 18 | 2020-08-26T11:33:50.000Z | 2021-04-13T15:57:28.000Z | include/snd/ramp_gen.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | 1 | 2021-05-16T17:11:57.000Z | 2021-05-16T17:25:17.000Z | include/snd/ramp_gen.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | null | null | null | #pragma once
#pragma warning(push, 0)
#include <DSP/MLDSPOps.h>
#pragma warning(pop)
namespace ml {
class RampGen
{
public:
RampGen(int p = kFloatsPerDSPVector) : mCounter(p), mPeriod(p) {}
~RampGen() {}
inline void setPeriod(int p) { mPeriod = p; }
inline DSPVectorInt operator()()
{
DSPVectorInt vy;
for ... | 14.666667 | 66 | 0.611742 | colugomusic |
5301078cd20e7b2f699cde88f558226e8d6f5047 | 1,544 | cpp | C++ | Codeforces/1240C/dp_tree.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | Codeforces/1240C/dp_tree.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | Codeforces/1240C/dp_tree.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <bits/stdc++.h>
using namespace std;
#define SIZE 500010
class Edge {
public:
int to, next, len;
};
Edge edges[SIZE << 1];
int head[SIZE], edgesPt;
int vertexNum, lim; long long int dp[SIZE][2];
void addEdge(int from, int to, int len) {
edges[edgesPt] = {to, head[from], len};
head[from] = edges... | 27.087719 | 73 | 0.513601 | codgician |
53040e63660eb37274adac7727b0bbece49ddd79 | 1,183 | cpp | C++ | src/collections_and_containers/cpp/heap/test/test_heap.cpp | djeada/GraphAlgorithms | 0961303ec20430f90053a4efb9074185f96dfddc | [
"MIT"
] | 2 | 2021-05-31T13:01:33.000Z | 2021-12-20T19:48:18.000Z | src/collections_and_containers/cpp/heap/test/test_heap.cpp | djeada/GraphAlgorithms | 0961303ec20430f90053a4efb9074185f96dfddc | [
"MIT"
] | null | null | null | src/collections_and_containers/cpp/heap/test/test_heap.cpp | djeada/GraphAlgorithms | 0961303ec20430f90053a4efb9074185f96dfddc | [
"MIT"
] | null | null | null | #include "heap.h"
#include "gtest/gtest.h"
TEST(MaxHeapTest, EmptyHeap) {
MaxHeap<int> heap;
ASSERT_TRUE(heap.empty());
}
TEST(MaxHeapTest, AddingSingleElement) {
MaxHeap<int> heap;
heap.push(10);
EXPECT_EQ(heap.peek(), 10);
EXPECT_EQ(heap.size(), 1);
}
TEST(MaxHeapTest, AddingMultipleElements) {
MaxHe... | 20.754386 | 43 | 0.65765 | djeada |
530417011596662d07fd809484395dd78444c354 | 1,006 | hpp | C++ | ModSource/breakingpoint_infected/CfgBody.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 70 | 2017-06-23T21:25:05.000Z | 2022-03-27T02:39:33.000Z | ModSource/breakingpoint_infected/CfgBody.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 84 | 2017-08-26T22:06:28.000Z | 2021-09-09T15:32:56.000Z | ModSource/breakingpoint_infected/CfgBody.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 71 | 2017-06-24T01:10:42.000Z | 2022-03-18T23:02:00.000Z | /*
Breaking Point Mod for Arma 3
Released under Arma Public Share Like Licence (APL-SA)
https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Alderon Games Pty Ltd
*/
class CfgBody {
class head_hit {
memoryPoint = "pilot";
variation = 0.08;
};
class body {
memoryPoint = "aimPoint... | 15.242424 | 76 | 0.638171 | nrailuj |
5305301f280d86529dc2ead504eed0e339c3b6cd | 16,353 | hpp | C++ | engine/ItemType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | 1 | 2021-04-24T06:01:57.000Z | 2021-04-24T06:01:57.000Z | engine/ItemType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | engine/ItemType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************//**
* \author Rachel Weissman-Hohler
* \created 02/01/2017
* \modified 03/08/2017
* \course CS467, Winter 2017
* \file ItemType.hpp
*
* \details Header file for ItemType class. Defines the members and
* ... | 35.940659 | 135 | 0.554333 | rigertd |
530c162bdcea1cd5099808ad4ecffd8bc904549b | 9,463 | hpp | C++ | kv/complex.hpp | soonho-tri/kv | 4963be6560d8600cdc9ff22d004b2b965ae7b1df | [
"MIT"
] | 67 | 2017-01-04T15:30:54.000Z | 2022-03-31T05:45:02.000Z | src/interval/kv/complex.hpp | takafumihoriuchi/HyLaGI | 26b9f32a84611ee62d9cbbd903773d224088c959 | [
"BSL-1.0"
] | 4 | 2017-02-10T02:59:45.000Z | 2019-10-10T14:17:08.000Z | src/interval/kv/complex.hpp | takafumihoriuchi/HyLaGI | 26b9f32a84611ee62d9cbbd903773d224088c959 | [
"BSL-1.0"
] | 5 | 2021-09-29T02:27:46.000Z | 2022-03-31T05:45:04.000Z | /*
* Copyright (c) 2013-2016 Masahide Kashiwagi (kashi@waseda.jp)
*/
#ifndef COMPLEX_HPP
#define COMPLEX_HPP
#include <iostream>
#include <cmath>
#include <kv/convert.hpp>
namespace kv {
template <class T> class complex;
template <class C, class T> struct convertible<C, complex<T> > {
static const bool value... | 21.265169 | 177 | 0.590933 | soonho-tri |
530c4b2b94372f67ff4688139ea8d9b08d386bdf | 7,496 | cpp | C++ | Source/HeliumRain/UI/Menus/FlareCompanyMenu.cpp | fdsalbj/HeliumRain | a429db86e59e3c8d71c306a20c7abd2899a36464 | [
"BSD-3-Clause"
] | 2 | 2016-09-20T18:48:21.000Z | 2021-03-30T02:42:59.000Z | Source/HeliumRain/UI/Menus/FlareCompanyMenu.cpp | fdsalbj/HeliumRain | a429db86e59e3c8d71c306a20c7abd2899a36464 | [
"BSD-3-Clause"
] | null | null | null | Source/HeliumRain/UI/Menus/FlareCompanyMenu.cpp | fdsalbj/HeliumRain | a429db86e59e3c8d71c306a20c7abd2899a36464 | [
"BSD-3-Clause"
] | null | null | null |
#include "../../Flare.h"
#include "FlareCompanyMenu.h"
#include "../Components/FlarePartInfo.h"
#include "../Components/FlareCompanyInfo.h"
#include "../../Game/FlareGame.h"
#include "../../Game/FlareCompany.h"
#include "../../Player/FlareMenuManager.h"
#include "../../Player/FlareMenuPawn.h"
#include "../../Player/Fl... | 23.796825 | 130 | 0.651147 | fdsalbj |
53127eaa0c23b10c46391f8b88f95e066d5df024 | 181 | cpp | C++ | chapters/1/1-10.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | chapters/1/1-10.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | chapters/1/1-10.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | #include <iostream>
/*
* 使用递减运算符打印10到0之间的整数
*/
int main()
{
int base = 10;
while(base >= 0){
std::cout << base << std::endl;
--base;
}
return 0;
}
| 12.928571 | 39 | 0.486188 | Raymain1944 |
531421e1ca3b40383e7cb57725b02c17f7238ee8 | 215 | cpp | C++ | ares/sfc/coprocessor/dip/dip.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/sfc/coprocessor/dip/dip.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/sfc/coprocessor/dip/dip.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | //DIP switch
//used for Nintendo Super System emulation
DIP dip;
#include "serialization.cpp"
auto DIP::power() -> void {
}
auto DIP::read(n24, n8) -> n8 {
return value;
}
auto DIP::write(n24, n8) -> void {
}
| 13.4375 | 42 | 0.646512 | CasualPokePlayer |
531507ccae44b4d0653aa8c98c677bbb806d7f9f | 13,857 | cpp | C++ | src/spy/Spy.cpp | VincentPT/spy | f3b4dd87d00cf12886f52b4ee30ee15430317acd | [
"MIT"
] | 1 | 2022-02-14T12:42:26.000Z | 2022-02-14T12:42:26.000Z | src/spy/Spy.cpp | VincentPT/spy | f3b4dd87d00cf12886f52b4ee30ee15430317acd | [
"MIT"
] | null | null | null | src/spy/Spy.cpp | VincentPT/spy | f3b4dd87d00cf12886f52b4ee30ee15430317acd | [
"MIT"
] | null | null | null | #include "Spy.h"
#include <Shlwapi.h>
#include <Windows.h>
#include <iostream>
#include <vector>
#include <list>
#include "CustomCommandInvoker.h"
#include "CustomCommandManager.h"
#include "spy_interfaces.h"
// internal command function handlers
int freeBufferCommand(FreeBufferCmdData* commandData);
int loadPredifn... | 33.633495 | 170 | 0.748358 | VincentPT |
531835c944c674196e44c74ac93ada0b75ffd32a | 1,077 | cpp | C++ | c++/omarket/omarket/mainframe.cpp | optimus-informatica/omarket-qt | ea2285e1e587b83c8cf15ef06e1ee22e39a46e8a | [
"Apache-2.0"
] | null | null | null | c++/omarket/omarket/mainframe.cpp | optimus-informatica/omarket-qt | ea2285e1e587b83c8cf15ef06e1ee22e39a46e8a | [
"Apache-2.0"
] | null | null | null | c++/omarket/omarket/mainframe.cpp | optimus-informatica/omarket-qt | ea2285e1e587b83c8cf15ef06e1ee22e39a46e8a | [
"Apache-2.0"
] | null | null | null | #include "mainframe.h"
#include "ui_mainframe.h"
MainFrame::MainFrame(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainFrame)
{
ui->setupUi(this);
QSqlDatabase db = QSqlDatabase::addDatabase("QPSQL");
db.setHostName("localhost");
db.setPort(5432);
db.setUserName("omarket");
db.setDatabas... | 20.711538 | 82 | 0.657382 | optimus-informatica |
531b53c42ec6d2d4364908c747ef96121e018a25 | 1,121 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/duration/literals/range.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/duration/literals/range.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/duration/literals/range.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // { dg-do compile { target c++14 } }
// Copyright (C) 2014-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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 Found... | 35.03125 | 74 | 0.714541 | best08618 |
531e78bfa2c8716a6cf77d286ea5767c4ecf7ab4 | 1,260 | cpp | C++ | CTCI/Chapter3/3-4.cpp | EdwaRen/Competitve-Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | 1 | 2021-05-03T21:48:25.000Z | 2021-05-03T21:48:25.000Z | CTCI/Chapter3/3-4.cpp | EdwaRen/Competitve_Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | null | null | null | CTCI/Chapter3/3-4.cpp | EdwaRen/Competitve_Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
const int MAX_SIZE = 100;
class Stack {
private:
int cur;
int *buf;
int capacity;
public:
Stack(int capa = MAX_SIZE) {
capacity = capa;
cur = -1;
buf = new int[capa];
}
void updateQueue() {
// if (bufFilled) {
for (int i = 0; i < cur; i++) {
... | 14.651163 | 40 | 0.512698 | EdwaRen |