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
float64
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
float64
1
77k
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
float64
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
653k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
1
f0f4d31ae7f6da1fc55dcc061022c290329f8c54
724
cpp
C++
Array of objects.cpp
paurav11/Cpp
e8cc137d1530000898c9a92a98663a8a8b254068
[ "MIT" ]
1
2021-05-18T06:52:59.000Z
2021-05-18T06:52:59.000Z
Array of objects.cpp
paurav11/Cpp
e8cc137d1530000898c9a92a98663a8a8b254068
[ "MIT" ]
null
null
null
Array of objects.cpp
paurav11/Cpp
e8cc137d1530000898c9a92a98663a8a8b254068
[ "MIT" ]
null
null
null
#include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; class student { char name[100]; int id,age; public: void getdata() { cout<<"\nEnter name: "; cin>>name; cout<<"Enter id: "; cin>>id; cout<<"Enter age: "; cin>>age; } v...
15.73913
37
0.45442
e7c8407173d6b4e707e9f2fdde5bfd73ab685257
14,476
cpp
C++
src/audio/CSoundMixer.cpp
rherriman/Avara
eaa68133ac273796b60162673b8f240619cb35ed
[ "MIT" ]
null
null
null
src/audio/CSoundMixer.cpp
rherriman/Avara
eaa68133ac273796b60162673b8f240619cb35ed
[ "MIT" ]
null
null
null
src/audio/CSoundMixer.cpp
rherriman/Avara
eaa68133ac273796b60162673b8f240619cb35ed
[ "MIT" ]
null
null
null
/* Copyright ©1994-1996, Juri Munkki All rights reserved. File: CSoundMixer.c Created: Friday, December 23, 1994, 08:25 Modified: Tuesday, August 20, 1996, 00:20 */ #include "CSoundMixer.h" #include "CBasicSound.h" #include "CSoundHub.h" #include "Memory.h" #include "System.h" #define DONT_USE_M...
25.396491
102
0.550843
e7c8958dc2beaffff8a59eb2d4072ef8b2a3bd22
1,114
cpp
C++
silk_engine/src/gfx/buffers/index_buffer.cpp
GeorgeAzma/VulkanEngine
0c2279682f526f428b44eae2a82be6933c74320d
[ "MIT" ]
1
2022-02-11T12:49:49.000Z
2022-02-11T12:49:49.000Z
silk_engine/src/gfx/buffers/index_buffer.cpp
GeorgeAzma/VulkanEngine
0c2279682f526f428b44eae2a82be6933c74320d
[ "MIT" ]
null
null
null
silk_engine/src/gfx/buffers/index_buffer.cpp
GeorgeAzma/VulkanEngine
0c2279682f526f428b44eae2a82be6933c74320d
[ "MIT" ]
null
null
null
#include "index_buffer.h" #include "staging_buffer.h" #include "gfx/graphics.h" #include "gfx/buffers/command_buffer.h" IndexBuffer::IndexBuffer(const void* data, VkDeviceSize count, IndexType index_type, VmaMemoryUsage memory_usage) : Buffer(count * indexTypeSize(index_type), VK_BUFFER_USAGE_TRANSFER_DST_BIT | V...
26.52381
113
0.777379
e7cb1b6abec8324c260fbf8ecc7489fc23aa1f9f
780
cpp
C++
Snipets/08_Strings/CharacterCounting.cpp
Gabroide/Learning-C
63a89b9b6b84e410756e70e346173d475a1802a6
[ "Apache-2.0" ]
null
null
null
Snipets/08_Strings/CharacterCounting.cpp
Gabroide/Learning-C
63a89b9b6b84e410756e70e346173d475a1802a6
[ "Apache-2.0" ]
null
null
null
Snipets/08_Strings/CharacterCounting.cpp
Gabroide/Learning-C
63a89b9b6b84e410756e70e346173d475a1802a6
[ "Apache-2.0" ]
null
null
null
// CharacterCounting.cpp // Programa para contar los caracteres contenidos en un string #include <iostream> #include <stdlib.h> #include <stdio.h> #include <string.h> int main() { char str[100]; int i, j, n, k, o; i=0; j=0; k=0; o=0; puts("Introduce una frase"); gets(str); n=strlen(str); while(str[i...
16.595745
71
0.553846
e7d5a48fc6a783714974803c80fcd00436f6473c
3,002
cpp
C++
source/src/gui/qrsystemtray.cpp
Qters/QrChaos
accc5b9efe5469377a09170ecd92e4674d177f9f
[ "MIT" ]
1
2016-10-21T08:14:26.000Z
2016-10-21T08:14:26.000Z
source/src/gui/qrsystemtray.cpp
Qters/QrChaos
accc5b9efe5469377a09170ecd92e4674d177f9f
[ "MIT" ]
null
null
null
source/src/gui/qrsystemtray.cpp
Qters/QrChaos
accc5b9efe5469377a09170ecd92e4674d177f9f
[ "MIT" ]
null
null
null
#include "gui/qrsystemtray.h" #include <QtCore/qdebug.h> #include <QtCore/qmap.h> #include <QtWidgets/qsystemtrayicon.h> #include <QtWidgets/qaction.h> #include <QtWidgets/qmenu.h> #include <QtWidgets/qapplication.h> #include "db/qrtblsystemtray.h" #include "db/qrtblframeconfig.h" NS_CHAOS_BASE_BEGIN class QrSyste...
24.606557
104
0.675217
e7d5b0650b5e1da2cf4539df03afdd9040eb82ee
17,283
cpp
C++
SerialPortTool/MainWindow.cpp
mghcool/SerialPortToolForVs
06b6149f271f13a4c683d247e3bda1902c65d63c
[ "MIT" ]
null
null
null
SerialPortTool/MainWindow.cpp
mghcool/SerialPortToolForVs
06b6149f271f13a4c683d247e3bda1902c65d63c
[ "MIT" ]
null
null
null
SerialPortTool/MainWindow.cpp
mghcool/SerialPortToolForVs
06b6149f271f13a4c683d247e3bda1902c65d63c
[ "MIT" ]
null
null
null
#include "MainWindow.h" #include "CrcCheck.h" #include <QSerialPort> #include <QSerialPortInfo> #include <QStandardPaths> #include <QMessageBox> #include <QSettings> #include <QFileInfo> #include <QDebug> #include <QTimer> #include <QDir> #include <QDomDocument> #include <QDateTime> #include <QStandardItemModel> #incl...
33.236538
105
0.602789
e7d5fe6d99e8f0be14b02a2fecc0be859f659a67
181
cpp
C++
src/test/resources/cpp/function_ptr.cpp
shahrzadav/codyze
c075e8c874f8bef52037d3538166150a488f1607
[ "Apache-2.0" ]
58
2020-04-18T19:26:32.000Z
2022-03-23T20:37:18.000Z
src/test/resources/cpp/function_ptr.cpp
shahrzadav/codyze
c075e8c874f8bef52037d3538166150a488f1607
[ "Apache-2.0" ]
409
2020-04-06T08:29:20.000Z
2022-03-31T17:46:54.000Z
src/test/resources/cpp/function_ptr.cpp
shahrzadav/codyze
c075e8c874f8bef52037d3538166150a488f1607
[ "Apache-2.0" ]
13
2020-05-04T05:36:02.000Z
2022-01-29T09:24:16.000Z
#include <iostream> class A { public: void fun() { std::cout << "Hello" << std::endl; } }; int main() { A a; void (A::* f_ptr) () = &A::fun; (a.*f_ptr)(); }
12.066667
40
0.453039
e7d68cfba12d0c5cc12915b0739af0e174083928
6,140
cpp
C++
PG/physics/PhysicsWorld.cpp
mcdreamer/PG
a047615d9eae7f2229a203a262f239106cf7f39c
[ "MIT" ]
2
2018-01-14T17:47:22.000Z
2021-11-15T10:34:24.000Z
PG/physics/PhysicsWorld.cpp
mcdreamer/PG
a047615d9eae7f2229a203a262f239106cf7f39c
[ "MIT" ]
23
2017-07-31T19:43:00.000Z
2018-11-11T18:51:28.000Z
PG/physics/PhysicsWorld.cpp
mcdreamer/PG
a047615d9eae7f2229a203a262f239106cf7f39c
[ "MIT" ]
null
null
null
#include "PG/physics/PhysicsWorld.h" #include "PG/physics/PhysicsBody.h" #include "PG/app/GameConstants.h" #include "PG/entities/TilePositionCalculator.h" #include "PG/core/RectUtils.h" #include "PG/core/PointUtils.h" #include "PG/core/SizeUtils.h" #include "PG/core/MathsUtils.h" #include <array> namespace PG { name...
29.238095
123
0.669055
e7d6cb36c09282359e3ab5b7cc06ba1989389fd0
1,269
cxx
C++
src/sqlite/connection.cxx
slurps-mad-rips/apex
8d88e6167e460a74e2c42a4d11d7f8e70adb5102
[ "Apache-2.0" ]
4
2020-12-14T18:07:28.000Z
2021-04-21T18:10:26.000Z
src/sqlite/connection.cxx
slurps-mad-rips/apex
8d88e6167e460a74e2c42a4d11d7f8e70adb5102
[ "Apache-2.0" ]
11
2020-07-21T03:27:10.000Z
2021-03-22T20:24:44.000Z
src/sqlite/connection.cxx
slurps-mad-rips/apex
8d88e6167e460a74e2c42a4d11d7f8e70adb5102
[ "Apache-2.0" ]
3
2020-12-14T17:40:07.000Z
2022-03-18T15:43:10.000Z
#include <apex/sqlite/connection.hpp> #include <apex/sqlite/memory.hpp> #include <apex/sqlite/table.hpp> #include <apex/sqlite/error.hpp> #include <apex/core/memory.hpp> #include <apex/memory/out.hpp> #include <sqlite3.h> namespace apex::sqlite { void default_delete<sqlite3>::operator () (sqlite3* ptr) noexcept { s...
34.297297
110
0.704492
e7d95f2a857ad6a08d8098f6ce262a5ba9c33277
1,669
cpp
C++
Code/peek_recv.cpp
hewei-nju/TCP-IP-Network-Programming
0685f0cc60e3af49093d3aa5189c7eafda5af017
[ "MIT" ]
null
null
null
Code/peek_recv.cpp
hewei-nju/TCP-IP-Network-Programming
0685f0cc60e3af49093d3aa5189c7eafda5af017
[ "MIT" ]
null
null
null
Code/peek_recv.cpp
hewei-nju/TCP-IP-Network-Programming
0685f0cc60e3af49093d3aa5189c7eafda5af017
[ "MIT" ]
null
null
null
/** @author heweibright@gmail.com * @date 2021/9/3 11:06 * Copyright (c) All rights reserved. */ #include <iostream> #include <unistd.h> #include <cstdlib> #include <cstring> #include <sys/socket.h> #include <arpa/inet.h> const int BUF_SIZE = 1024; void error_handling(const char *msg) { std::cerr << msg <<...
27.816667
97
0.584781
e7dab0aec55c610adbe8dc2f3a51df4ee13a9827
17,150
cpp
C++
test/tf/t_tf_tree.cpp
Robotics-BUT/Robotic-Template-Library
a93b31f5a8f5b12fbbd5fa134a714ea0f82c1578
[ "MIT" ]
8
2020-04-22T09:46:14.000Z
2022-03-17T00:09:38.000Z
test/tf/t_tf_tree.cpp
Robotics-BUT/Robotic-Template-Library
a93b31f5a8f5b12fbbd5fa134a714ea0f82c1578
[ "MIT" ]
1
2020-08-11T07:24:14.000Z
2020-10-05T12:47:05.000Z
test/tf/t_tf_tree.cpp
Robotics-BUT/Robotic-Template-Library
a93b31f5a8f5b12fbbd5fa134a714ea0f82c1578
[ "MIT" ]
null
null
null
// This file is part of the Robotic Template Library (RTL), a C++ // template library for usage in robotic research and applications // under the MIT licence: // // Copyright 2020 Brno University of Technology // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and ass...
31.181818
128
0.593703
e7dc104fac5aba661f0f9a7f0b3db94052f413c2
10,700
hxx
C++
main/sc/source/filter/inc/xelink.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/sc/source/filter/inc/xelink.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/sc/source/filter/inc/xelink.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
49.082569
115
0.619159
e7dcb2b460b4edcbb916fd0fbe0f247cf0c112eb
784
cc
C++
bluetooth/newblued/main.cc
emersion/chromiumos-platform2
ba71ad06f7ba52e922c647a8915ff852b2d4ebbd
[ "BSD-3-Clause" ]
5
2019-01-19T15:38:48.000Z
2021-10-06T03:59:46.000Z
bluetooth/newblued/main.cc
emersion/chromiumos-platform2
ba71ad06f7ba52e922c647a8915ff852b2d4ebbd
[ "BSD-3-Clause" ]
null
null
null
bluetooth/newblued/main.cc
emersion/chromiumos-platform2
ba71ad06f7ba52e922c647a8915ff852b2d4ebbd
[ "BSD-3-Clause" ]
1
2019-02-15T23:05:30.000Z
2019-02-15T23:05:30.000Z
// Copyright 2018 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <brillo/flag_helper.h> #include <brillo/syslog_logging.h> #include "bluetooth/common/dbus_daemon.h" #include "bluetooth/newblued/newblue.h" #...
34.086957
74
0.716837
e7dd038a07f541672ecdbee54894256ccb613089
2,899
cpp
C++
387/387.cpp
bsamseth/project-euler
60d70b117960f37411935bc18eab5bb2fca220e2
[ "MIT" ]
null
null
null
387/387.cpp
bsamseth/project-euler
60d70b117960f37411935bc18eab5bb2fca220e2
[ "MIT" ]
null
null
null
387/387.cpp
bsamseth/project-euler
60d70b117960f37411935bc18eab5bb2fca220e2
[ "MIT" ]
null
null
null
/* A Harshad or Niven number is a number that is divisible by the sum of its digits. 201 is a Harshad number because it is divisible by 3 (the sum of its digits.) When we truncate the last digit from 201, we get 20, which is a Harshad number. When we truncate the last digit from 20, we get 2, which is also a Harshad ...
34.511905
79
0.709555
e7df344610a036fa37f3a557b41d52afea50ac7d
2,027
cpp
C++
TAO/tao/Incoming_Message_Queue.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
36
2015-01-10T07:27:33.000Z
2022-03-07T03:32:08.000Z
TAO/tao/Incoming_Message_Queue.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
2
2018-08-13T07:30:51.000Z
2019-02-25T03:04:31.000Z
TAO/tao/Incoming_Message_Queue.cpp
cflowe/ACE
5ff60b41adbe1772372d1a43bcc1f2726ff8f810
[ "DOC" ]
38
2015-01-08T14:12:06.000Z
2022-01-19T08:33:00.000Z
// $Id: Incoming_Message_Queue.cpp 91628 2010-09-07 11:11:12Z johnnyw $ #include "tao/Incoming_Message_Queue.h" #include "tao/Queued_Data.h" #include "tao/debug.h" #include "ace/Log_Msg.h" #include "ace/Malloc_Base.h" #if !defined (__ACE_INLINE__) # include "tao/Incoming_Message_Queue.inl" #endif /* __ACE_INLINE__ *...
20.474747
71
0.653182
e7e04f2e48b35efebb79ea7a8852920c557ecd42
1,921
cpp
C++
Game/src/game/Kamikaze.cpp
franticsoftware/vlad-heavy-strike
a4da4df617e9ccd6ebd9819ad166d892924638ce
[ "MIT" ]
3
2019-10-04T19:44:44.000Z
2021-07-27T15:59:39.000Z
Game/src/game/Kamikaze.cpp
franticsoftware/vlad-heavy-strike
a4da4df617e9ccd6ebd9819ad166d892924638ce
[ "MIT" ]
1
2019-07-20T05:36:31.000Z
2019-07-20T22:22:49.000Z
Game/src/game/Kamikaze.cpp
aminere/vlad-heavy-strike
a4da4df617e9ccd6ebd9819ad166d892924638ce
[ "MIT" ]
null
null
null
/* Amine Rehioui Created: November 05th 2011 */ #include "ShootTest.h" #include "Kamikaze.h" namespace shoot { DEFINE_OBJECT(Kamikaze); DEFINE_OBJECT(KamikazeSettings); //! constructor KamikazeSettings::KamikazeSettings() : m_fDuration(1.5f) { } //! serializes the entity to/from a PropertyStream void...
22.337209
108
0.71317
e7e43276a194c619ccf2813db3479e093ae732c5
7,324
cpp
C++
msfs2020/GaugeConnect/GaugeConnect.cpp
brion/simpanel
5ac172006889cbbf92e2b7f86bab3f709072ff12
[ "MIT" ]
1
2021-07-21T03:19:55.000Z
2021-07-21T03:19:55.000Z
msfs2020/GaugeConnect/GaugeConnect.cpp
brion/simpanel
5ac172006889cbbf92e2b7f86bab3f709072ff12
[ "MIT" ]
null
null
null
msfs2020/GaugeConnect/GaugeConnect.cpp
brion/simpanel
5ac172006889cbbf92e2b7f86bab3f709072ff12
[ "MIT" ]
1
2021-07-21T03:20:01.000Z
2021-07-21T03:20:01.000Z
// GaugeConnect.cpp #include <MSFS/MSFS.h> #include <MSFS/MSFS_WindowsTypes.h> #include <MSFS/Legacy/gauges.h> #include <SimConnect.h> #include <cstring> #include "GaugeConnect.h" struct Expression { bool valid; double value; char* expression; UINT32 expr_len; Expression(void) : valid(false), ex...
28.061303
164
0.685554
e7e8f43ab3bc37214f81a307791266a6fffe32ef
341
cpp
C++
UB/Scripting/EntTeleportAction.cpp
Mr-1337/CAGE
e99082676e83cc069ebf0859fcb34e5b96712725
[ "MIT" ]
null
null
null
UB/Scripting/EntTeleportAction.cpp
Mr-1337/CAGE
e99082676e83cc069ebf0859fcb34e5b96712725
[ "MIT" ]
null
null
null
UB/Scripting/EntTeleportAction.cpp
Mr-1337/CAGE
e99082676e83cc069ebf0859fcb34e5b96712725
[ "MIT" ]
1
2019-06-16T19:00:31.000Z
2019-06-16T19:00:31.000Z
#include "EntTeleportAction.hpp" namespace ub { EntTeleportAction::EntTeleportAction(World* world, glm::vec2 destination) : ScriptAction(world), m_destination(destination) { } void EntTeleportAction::Initialize() { } void EntTeleportAction::Update(float dt) { m_world->MoveEnt(1, m_destination); m_...
15.5
77
0.727273
e7eae52e56931502dd1699a15e56f123e6279b66
559
cpp
C++
src/tests/kits/app/bmessagequeue/MessageQueueTest.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
1,338
2015-01-03T20:06:56.000Z
2022-03-26T13:49:54.000Z
src/tests/kits/app/bmessagequeue/MessageQueueTest.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
15
2015-01-17T22:19:32.000Z
2021-12-20T12:35:00.000Z
src/tests/kits/app/bmessagequeue/MessageQueueTest.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
350
2015-01-08T14:15:27.000Z
2022-03-21T18:14:35.000Z
#include "../common.h" #include "AddMessageTest1.h" #include "AddMessageTest2.h" #include "ConcurrencyTest1.h" #include "ConcurrencyTest2.h" #include "FindMessageTest1.h" Test *MessageQueueTestSuite() { TestSuite *testSuite = new TestSuite(); testSuite->addTest(AddMessageTest1::suite()); testSuite->addTest(AddMe...
20.703704
89
0.735242
e7ec48c5dc2a6d4ffe8b131612214e9de530f484
420
cpp
C++
Online Judges/URI/1987/main.cpp
AnneLivia/URI-Online
02ff972be172a62b8abe25030c3676f6c04efd1b
[ "MIT" ]
64
2019-03-17T08:56:28.000Z
2022-01-14T02:31:21.000Z
Online Judges/URI/1987/main.cpp
AnneLivia/URI-Online
02ff972be172a62b8abe25030c3676f6c04efd1b
[ "MIT" ]
1
2020-12-24T07:16:30.000Z
2021-03-23T20:51:05.000Z
Online Judges/URI/1987/main.cpp
AnneLivia/URI-Online
02ff972be172a62b8abe25030c3676f6c04efd1b
[ "MIT" ]
19
2019-05-25T10:48:16.000Z
2022-01-07T10:07:46.000Z
#include <iostream> using namespace std; int main() { int qtdNumbers, sum; string number; bool stopped; while(cin >> qtdNumbers >> number) { sum = 0; while(qtdNumbers--) { sum +=(number[qtdNumbers] - '0'); } if(sum % 3 == 0) { cout << sum...
17.5
45
0.430952
e7eddc82f37df2a9dd86f8058ebcf131a0bf6f69
2,142
hpp
C++
kernel/lib/elf.hpp
ethan4984/rock
751b9af1009b622bedf384c1f80970b333c436c3
[ "BSD-2-Clause" ]
207
2020-05-27T21:57:28.000Z
2022-02-26T15:17:27.000Z
kernel/lib/elf.hpp
ethan4984/crepOS
751b9af1009b622bedf384c1f80970b333c436c3
[ "BSD-2-Clause" ]
3
2020-07-26T18:14:05.000Z
2020-12-09T05:32:07.000Z
kernel/lib/elf.hpp
ethan4984/rock
751b9af1009b622bedf384c1f80970b333c436c3
[ "BSD-2-Clause" ]
17
2020-07-05T19:08:48.000Z
2021-10-13T12:30:13.000Z
#ifndef ELF_HPP_ #define ELF_HPP_ #include <mm/vmm.hpp> #include <string.hpp> #include <fs/fd.hpp> namespace elf { constexpr size_t elf_signature = 0x464C457F; constexpr size_t elf64 = 0x2; constexpr size_t ei_class = 0x4; constexpr size_t ei_data = 0x5; constexpr size_t ei_version = 0x6; constexpr size_t ei_osabi ...
21.636364
102
0.704949
e7f00603063bc356ee35f2dd4e5a891475b981ee
387
cpp
C++
01_Week_Programming_Basics/FishTank/FishTank.cpp
kostadinmarkov99/SoftUni_Exercises_PB_Jan_2022
70e619d7c19b6676f509f2509fe102ecbc7669bc
[ "MIT" ]
null
null
null
01_Week_Programming_Basics/FishTank/FishTank.cpp
kostadinmarkov99/SoftUni_Exercises_PB_Jan_2022
70e619d7c19b6676f509f2509fe102ecbc7669bc
[ "MIT" ]
null
null
null
01_Week_Programming_Basics/FishTank/FishTank.cpp
kostadinmarkov99/SoftUni_Exercises_PB_Jan_2022
70e619d7c19b6676f509f2509fe102ecbc7669bc
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { int length, width, height; double percetage; cin >> length >> width >> height >> percetage; double volumeInSM = length * width * height; double liters = volumeInSM / 1000; double unusedLiters = liters * percetage / 100.0; double used...
19.35
53
0.648579
e7f4315c365569ee6ce9a3393bc227c62b6a2fc9
9,001
cpp
C++
Client/src/UIGuildBankForm.cpp
ruuuubi/corsairs-client
ddbcd293d6ef3f58ff02290c02382cbb7e0939a2
[ "Apache-2.0" ]
1
2021-06-14T09:34:08.000Z
2021-06-14T09:34:08.000Z
Client/src/UIGuildBankForm.cpp
ruuuubi/corsairs-client
ddbcd293d6ef3f58ff02290c02382cbb7e0939a2
[ "Apache-2.0" ]
null
null
null
Client/src/UIGuildBankForm.cpp
ruuuubi/corsairs-client
ddbcd293d6ef3f58ff02290c02382cbb7e0939a2
[ "Apache-2.0" ]
null
null
null
#include "StdAfx.h" #include "UIGuildBankForm.h" #include "uiform.h" #include "uilabel.h" #include "uiformmgr.h" #include "uigoodsgrid.h" #include "NetProtocol.h" #include "uiboxform.h" #include "uiEquipForm.h" #include "UIGoodsGrid.h" #include "uiItemCommand.h" #include "uiform.h" #include "uiBoatForm.h" #include "pa...
31.582456
128
0.651039
e7f603ac6f13bee4c23a336e65ebf2c1e5f4ece4
4,597
hpp
C++
ASch/include/ASch_System.hpp
JuhoL/ASch
757c7edacb1aabce5577acc3df0560548975df49
[ "MIT" ]
2
2018-08-20T08:56:11.000Z
2019-07-09T07:27:45.000Z
ASch/include/ASch_System.hpp
JuhoL/ASch
757c7edacb1aabce5577acc3df0560548975df49
[ "MIT" ]
null
null
null
ASch/include/ASch_System.hpp
JuhoL/ASch
757c7edacb1aabce5577acc3df0560548975df49
[ "MIT" ]
null
null
null
//----------------------------------------------------------------------------------------------------------------------------- // Copyright (c) 2018 Juho Lepistö // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), ...
45.068627
127
0.474005
e7f60c2f38799f660ad85b4e9de2bbd6da832a41
1,843
cpp
C++
src/Ledger.cpp
LAHumphreys/LedgerJRI
0c015ed328a71d624791bc6fb6c03e65709c7b13
[ "MIT" ]
null
null
null
src/Ledger.cpp
LAHumphreys/LedgerJRI
0c015ed328a71d624791bc6fb6c03e65709c7b13
[ "MIT" ]
null
null
null
src/Ledger.cpp
LAHumphreys/LedgerJRI
0c015ed328a71d624791bc6fb6c03e65709c7b13
[ "MIT" ]
null
null
null
#include <Ledger.h> #include <LedgerSessionData.h> #include <LedgerSession.h> #include <LedgerCommands.h> Ledger::Ledger() { // libLedger one-time setup? } std::unique_ptr<LedgerSession> Ledger::LoadJournal(const std::string& fname) { std::unique_ptr<LedgerSession> sess; WithInstance([&] (Ledger& instance...
29.253968
78
0.637005
e7f614803c22f2011f236925dc43df4b1144dd83
2,294
cc
C++
chrome/credential_provider/extension/extension_main.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/credential_provider/extension/extension_main.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/credential_provider/extension/extension_main.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2021-01-05T23:43:46.000Z
2021-01-07T23:36:34.000Z
// Copyright (c) 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "windows.h" #include "base/at_exit.h" #include "base/command_line.h" #include "base/files/file_path.h" #include "base/logging.h" #include "b...
37.606557
78
0.71796
e7f789f835be45fa51b41edcbf3a38b3802995b0
3,746
cpp
C++
code/silverlib/game_hooks.cpp
adm244/f4silver
564ecc80991266ae8b3238f553b76d75506f9fbf
[ "Unlicense" ]
6
2018-11-07T19:31:30.000Z
2021-07-29T02:58:33.000Z
code/silverlib/game_hooks.cpp
adm244/f4silver
564ecc80991266ae8b3238f553b76d75506f9fbf
[ "Unlicense" ]
2
2018-06-01T23:27:46.000Z
2018-09-11T23:35:58.000Z
code/silverlib/game_hooks.cpp
adm244/f4silver
564ecc80991266ae8b3238f553b76d75506f9fbf
[ "Unlicense" ]
3
2019-12-29T14:45:55.000Z
2020-05-12T16:34:23.000Z
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copy...
29.730159
78
0.70929
e7fe5c6f89e5e9048437b4d5c476f271f8341ad0
1,180
cpp
C++
source/idf/MadCatz.cpp
greck2908/IDF
0882cc35d88b96b0aea55e112060779654f040a6
[ "NASA-1.3" ]
84
2016-06-15T21:26:02.000Z
2022-03-12T15:09:57.000Z
source/idf/MadCatz.cpp
greck2908/IDF
0882cc35d88b96b0aea55e112060779654f040a6
[ "NASA-1.3" ]
44
2016-10-19T17:35:01.000Z
2022-03-11T17:20:51.000Z
source/idf/MadCatz.cpp
greck2908/IDF
0882cc35d88b96b0aea55e112060779654f040a6
[ "NASA-1.3" ]
46
2016-06-25T00:18:52.000Z
2019-12-19T11:13:15.000Z
#include "idf/MadCatz.hh" namespace idf { MadCatz::MadCatz() : forwardBackwardPivot(0, 1023, 511), leftRightPivot(0, 1023, 511), twist(0, 255, 127), leftThrottle(0, 255, 127), rightThrottle(0, 255, 127), trigger(0, 1), button2(0, 1), button3(0, 1), button4(0, 1), button5(0, 1),...
25.652174
111
0.616102
e7feb77a0e6a3e4807d2f203b96c6ff3cb432fb3
1,002
hpp
C++
coroutine/OverridingList.hpp
bxtx999/pmembench
9577a15bc7934a681f23b3096f2cd25e09f66874
[ "MIT", "Unlicense" ]
10
2021-02-09T21:07:12.000Z
2022-02-10T17:37:06.000Z
coroutine/OverridingList.hpp
bxtx999/pmembench
9577a15bc7934a681f23b3096f2cd25e09f66874
[ "MIT", "Unlicense" ]
null
null
null
coroutine/OverridingList.hpp
bxtx999/pmembench
9577a15bc7934a681f23b3096f2cd25e09f66874
[ "MIT", "Unlicense" ]
4
2021-04-12T08:13:09.000Z
2022-01-05T02:54:45.000Z
#pragma once // ------------------------------------------------------------------------------------- #include <type_traits> #include <cassert> // ------------------------------------------------------------------------------------- template<typename Value> class OverridingList { public: OverridingList() ...
20.875
88
0.422156
e7fecc8db9d079f7a0163210bdc20ae85ebd86fd
1,593
hpp
C++
unit_tests/common/test_string_collection.hpp
eido5/cubrid
f32dbe7cb90f096035c255d7b5f348438bbb5830
[ "Apache-2.0", "BSD-3-Clause" ]
253
2016-03-12T01:03:42.000Z
2022-03-14T08:24:39.000Z
unit_tests/common/test_string_collection.hpp
eido5/cubrid
f32dbe7cb90f096035c255d7b5f348438bbb5830
[ "Apache-2.0", "BSD-3-Clause" ]
1,124
2016-03-31T03:48:58.000Z
2022-03-31T23:44:04.000Z
unit_tests/common/test_string_collection.hpp
eido5/cubrid
f32dbe7cb90f096035c255d7b5f348438bbb5830
[ "Apache-2.0", "BSD-3-Clause" ]
268
2016-03-02T06:48:44.000Z
2022-03-04T05:17:24.000Z
/* * Copyright 2008 Search Solution Corporation * Copyright 2016 CUBRID 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-...
23.776119
76
0.696798
f001aa502b6b916c44ef754284d4953e994763a6
2,085
hh
C++
Include/Zion/GameMode.hh
ZionMP/Zion
7266cc5df81644e54c2744fca7f31b24873b31e7
[ "BSD-2-Clause" ]
1
2021-10-14T05:25:47.000Z
2021-10-14T05:25:47.000Z
Include/Zion/GameMode.hh
ZionMP/Zion
7266cc5df81644e54c2744fca7f31b24873b31e7
[ "BSD-2-Clause" ]
null
null
null
Include/Zion/GameMode.hh
ZionMP/Zion
7266cc5df81644e54c2744fca7f31b24873b31e7
[ "BSD-2-Clause" ]
null
null
null
#pragma once #include "Base.hh" #include "Player.hh" #include "Vehicle.hh" #include "Util.hh" #include "TextDraw.hh" #include "Pickup.hh" namespace Zion { class GameMode { public: virtual void OnPlayerInteriorChange(Player *player, int newInterior, int oldInterior) {} virtual void O...
56.351351
125
0.67482
f00450a13a46bc0721e45e796715b2a81e3a5215
558
cpp
C++
ZenUnitTestUtils/TestingNonDefaults.cpp
NeilJustice/ZenUnitAndZenMock
bbcb4221d063fa04e4ef3a98143e0f123e3af8d5
[ "MIT" ]
2
2019-11-11T17:32:53.000Z
2020-04-22T20:42:56.000Z
ZenUnitTestUtils/TestingNonDefaults.cpp
NeilJustice/ZenUnitAndZenMock
bbcb4221d063fa04e4ef3a98143e0f123e3af8d5
[ "MIT" ]
1
2018-04-21T07:53:26.000Z
2018-05-20T14:50:07.000Z
ZenUnitTestUtils/TestingNonDefaults.cpp
NeilJustice/ZenUnitAndZenMock
bbcb4221d063fa04e4ef3a98143e0f123e3af8d5
[ "MIT" ]
null
null
null
#include "pch.h" #include "ZenUnitTestUtils/TestingNonDefaults.h" namespace ZenUnit { TestResult TestingNonDefaultTestResult() noexcept { const FullTestName fullTestName("Non", "Default", 0); TestResult constructorFailTestResult = TestResult::ConstructorFail(fullTestName, TestPhaseResult()); ...
27.9
107
0.724014
f004f4a56457c170fc13c7bf1990d6c17b22871e
2,563
cpp
C++
core/runtime/register_trt_op.cpp
SrivastavaKshitij/TRTorch
cbe186603e21a7e6cb51a4e8182d6e397b33c7ab
[ "BSD-3-Clause" ]
9
2020-10-28T14:54:19.000Z
2021-12-23T07:23:04.000Z
core/runtime/register_trt_op.cpp
magnetsrev/TRTorch
72bf74b2a2e425e6c83542f99c92b9e551148149
[ "BSD-3-Clause" ]
1
2021-07-22T16:58:40.000Z
2021-07-22T16:58:40.000Z
core/runtime/register_trt_op.cpp
magnetsrev/TRTorch
72bf74b2a2e425e6c83542f99c92b9e551148149
[ "BSD-3-Clause" ]
2
2020-10-12T05:47:33.000Z
2020-11-05T09:26:07.000Z
#include "c10/cuda/CUDAStream.h" #include "torch/csrc/jit/runtime/custom_operator.h" #include "torch/torch.h" #include "core/runtime/runtime.h" #include "core/util/prelude.h" namespace trtorch { namespace core { namespace runtime { std::vector<at::Tensor> execute_engine(std::vector<at::Tensor> inputs, c10::intrusiv...
40.046875
119
0.708935
f005369c1ccf2e02974208beb2f1ab22db4f5cfb
2,025
hpp
C++
zen/lexgen/nodes.hpp
ZenLibraries/ZenLibraries
ae189b5080c75412cbd4f33cf6cfb51e15f6ee66
[ "Apache-2.0" ]
null
null
null
zen/lexgen/nodes.hpp
ZenLibraries/ZenLibraries
ae189b5080c75412cbd4f33cf6cfb51e15f6ee66
[ "Apache-2.0" ]
2
2020-02-06T17:01:39.000Z
2020-02-12T17:50:14.000Z
zen/lexgen/nodes.hpp
ZenLibraries/ZenLibraries
ae189b5080c75412cbd4f33cf6cfb51e15f6ee66
[ "Apache-2.0" ]
null
null
null
#ifndef ZEN_LEXGEN_NODES_HPP #define ZEN_LEXGEN_NODES_HPP #include <list> #include <memory> #include "zen/string.hpp" #include "zen/dllist.hpp" namespace zen { namespace lexgen { template<typename T> using SPtr = std::shared_ptr<T>; enum class NodeType { rule, ref_expr, char_expr, ...
15.944882
76
0.576296
f00812be6bc41c86a6dcd549186c57d6f57ce8d3
2,301
hpp
C++
CookieEngine/include/Gameplay/CGPWorker.hpp
qbleuse/Cookie-Engine
705d19d9e4c79e935e32244759ab63523dfbe6c4
[ "CC-BY-4.0" ]
null
null
null
CookieEngine/include/Gameplay/CGPWorker.hpp
qbleuse/Cookie-Engine
705d19d9e4c79e935e32244759ab63523dfbe6c4
[ "CC-BY-4.0" ]
null
null
null
CookieEngine/include/Gameplay/CGPWorker.hpp
qbleuse/Cookie-Engine
705d19d9e4c79e935e32244759ab63523dfbe6c4
[ "CC-BY-4.0" ]
null
null
null
#ifndef _CGP_WORKER_HPP__ #define _CGP_WORKER_HPP__ #include "ComponentTransform.hpp" #include "Map.hpp" #include "Gameplay/CGPResource.hpp" #include "Gameplay/Income.hpp" #include <vector> namespace Cookie { namespace ECS { class Coordinator; } namespace Resources { class Prefab; class Map; } namespac...
26.755814
105
0.633638
f00a35b5915426f9c5ddcecaebf999755c2cc7e7
192
cpp
C++
bytecode/interpreter/src/BytecodeInterpreter/Units/InterpreterCommandMov.cpp
Scorbutics/skalang
c8d1869a2f0c7857ee05ef45bd3aa4e537d39558
[ "MIT" ]
3
2019-04-08T17:34:19.000Z
2020-01-03T04:47:06.000Z
bytecode/interpreter/src/BytecodeInterpreter/Units/InterpreterCommandMov.cpp
Scorbutics/skalang
c8d1869a2f0c7857ee05ef45bd3aa4e537d39558
[ "MIT" ]
4
2020-04-19T22:09:06.000Z
2020-11-06T15:47:08.000Z
bytecode/interpreter/src/BytecodeInterpreter/Units/InterpreterCommandMov.cpp
Scorbutics/skalang
c8d1869a2f0c7857ee05ef45bd3aa4e537d39558
[ "MIT" ]
null
null
null
#include "InterpreterCommandMov.h" SKALANG_BYTECODE_INTERPRETER_COMMAND_DECLARE(MOV)(ExecutionContext& context, const Operand& left, const Operand& right) { return context.getCell(left); }
32
121
0.8125
f00dbdb3d7bef7604daa1335487649f287667bd0
5,221
cpp
C++
libvast/src/system/read_query.cpp
rdettai/vast
0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa
[ "BSD-3-Clause" ]
249
2019-08-26T01:44:45.000Z
2022-03-26T14:12:32.000Z
libvast/src/system/read_query.cpp
rdettai/vast
0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa
[ "BSD-3-Clause" ]
586
2019-08-06T13:10:36.000Z
2022-03-31T08:31:00.000Z
libvast/src/system/read_query.cpp
rdettai/vast
0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa
[ "BSD-3-Clause" ]
37
2019-08-16T02:01:14.000Z
2022-02-21T16:13:59.000Z
// _ _____ __________ // | | / / _ | / __/_ __/ Visibility // | |/ / __ |_\ \ / / Across // |___/_/ |_/___/ /_/ Space and Time // // SPDX-FileCopyrightText: (c) 2019 The VAST Contributors // SPDX-License-Identifier: BSD-3-Clause #include "vast/system/read_query.hpp" #include "vast/fw...
35.517007
80
0.622103
f00f829e36cab5051a674b7c0f5f57955c333623
4,000
hpp
C++
include/ashespp/RenderPass/RenderPass.hpp
DragonJoker/Ashes
a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e
[ "MIT" ]
227
2018-09-17T16:03:35.000Z
2022-03-19T02:02:45.000Z
include/ashespp/RenderPass/RenderPass.hpp
DragonJoker/RendererLib
0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a
[ "MIT" ]
39
2018-02-06T22:22:24.000Z
2018-08-29T07:11:06.000Z
include/ashespp/RenderPass/RenderPass.hpp
DragonJoker/Ashes
a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e
[ "MIT" ]
8
2019-05-04T10:33:32.000Z
2021-04-05T13:19:27.000Z
/* This file belongs to Ashes. See LICENSE file in root folder. */ #ifndef ___AshesPP_RenderPass_HPP___ #define ___AshesPP_RenderPass_HPP___ #pragma once #include "RenderPassCreateInfo.hpp" namespace ashes { /** *\brief * Describes a render pass (which can contain one or more render subpasses). */ class RenderPa...
24.390244
76
0.70075
f0140c4ac96027b009016a32e66fd6ff5f3e6fc1
14,176
cpp
C++
Immortal/Platform/D3D12/RenderContext.cpp
QSXW/Immortal
32adcc8609b318752dd97f1c14dc7368b47d47d1
[ "Apache-2.0" ]
6
2021-09-15T08:56:28.000Z
2022-03-29T15:55:02.000Z
Immortal/Platform/D3D12/RenderContext.cpp
DaShi-Git/Immortal
e3345b4ff2a2b9d215c682db2b4530e24cc3b203
[ "Apache-2.0" ]
null
null
null
Immortal/Platform/D3D12/RenderContext.cpp
DaShi-Git/Immortal
e3345b4ff2a2b9d215c682db2b4530e24cc3b203
[ "Apache-2.0" ]
4
2021-12-05T17:28:57.000Z
2022-03-29T15:55:05.000Z
#include "impch.h" #include "RenderContext.h" #include "Framework/Utils.h" #include "Descriptor.h" namespace Immortal { namespace D3D12 { Device *RenderContext::UnlimitedDevice = nullptr; DescriptorAllocator RenderContext::shaderVisibleDescriptorAllocator{ DescriptorPool::Type::ShaderResourceView, Descripto...
31.572383
137
0.670076
f015cd8f7d4f76500819b27551d6ae929fb9f087
11,675
cpp
C++
models/processor/zesto/ZCOMPS-bpred/bpred-tage.cpp
Basseuph/manifold
99779998911ed7e8b8ff6adacc7f93080409a5fe
[ "BSD-3-Clause" ]
8
2016-01-22T18:28:48.000Z
2021-05-07T02:27:21.000Z
models/processor/zesto/ZCOMPS-bpred/bpred-tage.cpp
Basseuph/manifold
99779998911ed7e8b8ff6adacc7f93080409a5fe
[ "BSD-3-Clause" ]
3
2016-04-15T02:58:58.000Z
2017-01-19T17:07:34.000Z
models/processor/zesto/ZCOMPS-bpred/bpred-tage.cpp
Basseuph/manifold
99779998911ed7e8b8ff6adacc7f93080409a5fe
[ "BSD-3-Clause" ]
10
2015-12-11T04:16:55.000Z
2019-05-25T20:58:13.000Z
/* bpred-tage.cpp: TAgged GEometric-history length predictor [Seznec and Michaud, JILP 2006] */ /* * __COPYRIGHT__ GT */ #define COMPONENT_NAME "tage" #ifdef BPRED_PARSE_ARGS if(!strcasecmp(COMPONENT_NAME,type)) { int num_tables; int bim_size; int table_size; int tag_width; int first_length; int last_le...
23.92418
154
0.53439
f0185c17361e3baf8c59b31edc45e0b8ac2a6df0
6,895
cpp
C++
Apps/APTestApp/MainMac.cpp
tom-weatherhead/exeter-asset-processor
e19c777427afe66684f308cb7b07448b3481c25e
[ "MIT" ]
null
null
null
Apps/APTestApp/MainMac.cpp
tom-weatherhead/exeter-asset-processor
e19c777427afe66684f308cb7b07448b3481c25e
[ "MIT" ]
null
null
null
Apps/APTestApp/MainMac.cpp
tom-weatherhead/exeter-asset-processor
e19c777427afe66684f308cb7b07448b3481c25e
[ "MIT" ]
null
null
null
/* main.c */ #include <Carbon/Carbon.h> #include "main.h" #include "ExAPBitmapARGB32.h" void Initialize(void); /* function prototypes */ void EventLoop(void); void MakeWindow(void); void MakeMenu(void); void DoEvent(EventRecord *event); void DoMenuCommand(long menuResult); void DoAboutBox(void); void D...
26.621622
150
0.522843
f01900af12de7167295f7738f8636d6c75b1ce11
8,180
cc
C++
src/server/DataBase.cc
ryan-rao/LTFS-Data-Management
041960282d20aeefb8da20eabf04367a164a5903
[ "Apache-2.0" ]
19
2018-06-28T03:53:41.000Z
2022-03-15T16:17:33.000Z
src/server/DataBase.cc
ryan-rao/LTFS-Data-Management
041960282d20aeefb8da20eabf04367a164a5903
[ "Apache-2.0" ]
13
2018-04-25T15:40:14.000Z
2021-01-18T11:03:27.000Z
src/server/DataBase.cc
ryan-rao/LTFS-Data-Management
041960282d20aeefb8da20eabf04367a164a5903
[ "Apache-2.0" ]
8
2018-08-08T05:40:31.000Z
2022-03-22T16:21:06.000Z
/******************************************************************************* * Copyright 2018 IBM Corp. 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 * * ht...
22.349727
81
0.590098
f01a5de4d6d19de7b46c6a567e60cd2d44ae84e6
1,786
cpp
C++
bachelor/computer-graphics/Les1/CG1_2DVector.cpp
Brent-rb/University
caae9c7d8e44bf7589865517f786529b1f171059
[ "MIT" ]
null
null
null
bachelor/computer-graphics/Les1/CG1_2DVector.cpp
Brent-rb/University
caae9c7d8e44bf7589865517f786529b1f171059
[ "MIT" ]
null
null
null
bachelor/computer-graphics/Les1/CG1_2DVector.cpp
Brent-rb/University
caae9c7d8e44bf7589865517f786529b1f171059
[ "MIT" ]
null
null
null
// CG1_2DVector.cpp: implementation of the CG1_2DVector class. // ////////////////////////////////////////////////////////////////////// #include "CG1_2DVector.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////...
21.518072
85
0.285554
f01cea47e637935b9573a782878720ddcdf1d0fa
1,902
cpp
C++
CS208_Lab/huffman_code.cpp
zc-BEAR/Course_Repo
bbbcc83992f3e837dfb21615bb8e81d86f397f83
[ "MIT" ]
null
null
null
CS208_Lab/huffman_code.cpp
zc-BEAR/Course_Repo
bbbcc83992f3e837dfb21615bb8e81d86f397f83
[ "MIT" ]
null
null
null
CS208_Lab/huffman_code.cpp
zc-BEAR/Course_Repo
bbbcc83992f3e837dfb21615bb8e81d86f397f83
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; struct Node{ int c; int num; Node* fa; bool operator < (const Node &x)const{ return x.num < num; } }num[100]; int t, str_len, fa_index; int val[100]; long long ans; string str; int main(){ ios::sync_with_stdio(false); cin.tie(0); ...
24.701299
62
0.388013
f01e5468ec34fc81f5bfb7f0da1d4d62e9107d7c
387
cpp
C++
leetcode/two-pointer/11.container-with-most-water.cpp
saurabhraj042/dsaPrep
0973a03bc565a2850003c7e48d99b97ff83b1d01
[ "MIT" ]
23
2021-10-30T04:11:52.000Z
2021-11-27T09:16:18.000Z
leetcode/two-pointer/11.container-with-most-water.cpp
Pawanupadhyay10/placement-prep
0449fa7cbc56e7933e6b090936ab7c15ca5f290f
[ "MIT" ]
null
null
null
leetcode/two-pointer/11.container-with-most-water.cpp
Pawanupadhyay10/placement-prep
0449fa7cbc56e7933e6b090936ab7c15ca5f290f
[ "MIT" ]
4
2021-10-30T03:26:05.000Z
2021-11-14T12:15:04.000Z
// saurabhraj042 class Solution { public: int maxArea(vector<int>& A) { int i = 0,j = A.size()-1; int mx = j * min( A[i],A[j] ); while( i < j ) { if( (j-i) * min( A[j],A[i] ) > mx) mx=(j-i)*min(A[j],A[i]); if( A[i] < A[j])...
19.35
46
0.330749
f01ebd1ec67d7007bf3487191f5484056bc66b78
5,238
cpp
C++
clang-tools-extra/test/pp-trace/pp-trace-pragma-general.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
clang-tools-extra/test/pp-trace/pp-trace-pragma-general.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
clang-tools-extra/test/pp-trace/pp-trace-pragma-general.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
// RUN: pp-trace -callbacks '*,-FileChanged,-MacroDefined' %s -- | FileCheck --strict-whitespace %s #pragma clang diagnostic push #pragma clang diagnostic pop #pragma clang diagnostic ignored "-Wformat" #pragma clang diagnostic warning "-Wformat" #pragma clang diagnostic error "-Wformat" #pragma clang diagnostic fatal...
44.016807
99
0.653685
f01f9b2b18a3d97fdf502b9b2fde13cba6e1418a
849
cpp
C++
Source/PluginPostEffects_Core1/Exports.cpp
shanefarris/CoreGameEngine
5bef275d1cd4e84aa059f2f4f9e97bfa2414d000
[ "MIT" ]
3
2019-04-12T15:22:53.000Z
2022-01-05T02:59:56.000Z
Source/PluginPostEffects_Core1/Exports.cpp
shanefarris/CoreGameEngine
5bef275d1cd4e84aa059f2f4f9e97bfa2414d000
[ "MIT" ]
null
null
null
Source/PluginPostEffects_Core1/Exports.cpp
shanefarris/CoreGameEngine
5bef275d1cd4e84aa059f2f4f9e97bfa2414d000
[ "MIT" ]
2
2019-04-10T22:46:21.000Z
2020-05-27T16:21:37.000Z
#define DLL_EXPORT #include "Exports.h" #include "Plugins/IPostEffectFactory.h" #include "Factories.h" namespace Core { namespace Plugin { CPostEffectFactory_Bloom* Bloom = nullptr; CPostEffectFactory_Hdr* Hdr = nullptr; CPostEffectFactory_MotionBlur* MotionBlur = nullptr; CPostEffectFactory_SSAO* Ssao = null...
19.295455
62
0.720848
f020af42a32e14a0c8a88f5f7986e92a282436ca
376
cpp
C++
moosh/src/msg_handler.cpp
mujido/moove
380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b
[ "Apache-2.0" ]
null
null
null
moosh/src/msg_handler.cpp
mujido/moove
380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b
[ "Apache-2.0" ]
null
null
null
moosh/src/msg_handler.cpp
mujido/moove
380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b
[ "Apache-2.0" ]
null
null
null
#include "msg_handler.hpp" #include <iostream> void MessageHandler::error(const std::string& msg, unsigned lineNum) { std::cerr << "Error, line " << lineNum + m_lineOffset << ": " << msg << std::endl; } void MessageHandler::warning(const std::string& msg, unsigned lineNum) { std::cerr << "Warning, line " <<...
25.066667
87
0.638298
f0226c78fa7c6e4f85aedf840418a5f8df8a9b15
10,309
cpp
C++
HaloTAS/TASDLL/tas_hooks.cpp
s3anyboy/HaloTAS
9584786f19e1475399298fda2d5783d47623cccd
[ "MIT" ]
6
2019-09-10T19:47:04.000Z
2020-11-26T08:32:36.000Z
HaloTAS/TASDLL/tas_hooks.cpp
s3anyboy/HaloTAS
9584786f19e1475399298fda2d5783d47623cccd
[ "MIT" ]
13
2018-11-24T09:37:49.000Z
2021-10-22T02:29:11.000Z
HaloTAS/TASDLL/tas_hooks.cpp
s3anyboy/HaloTAS
9584786f19e1475399298fda2d5783d47623cccd
[ "MIT" ]
3
2020-07-28T09:19:14.000Z
2020-09-02T04:48:49.000Z
#include "tas_hooks.h" #include "tas_logger.h" #include "tas_input_handler.h" #include "randomizer.h" #include "halo_engine.h" #include "render_d3d9.h" // Function Defs typedef HRESULT(__stdcall* GetDeviceState_t)(LPDIRECTINPUTDEVICE*, DWORD, LPVOID*); typedef HRESULT(__stdcall* GetDeviceData_t)(LPDIRECTINPUTDEVICE*, ...
30.957958
156
0.776409
f026bc67bdc4dda563e2a3d5378892436baf88ce
1,201
cpp
C++
13. Friend and Static Member/01_friend_function_my.cpp
All-CODE-with-Explanation/CPP_deep_dive_-Abdul-Bari-
2717ce14487deb47fff4ccc2b7349f12643bbd38
[ "MIT" ]
null
null
null
13. Friend and Static Member/01_friend_function_my.cpp
All-CODE-with-Explanation/CPP_deep_dive_-Abdul-Bari-
2717ce14487deb47fff4ccc2b7349f12643bbd38
[ "MIT" ]
null
null
null
13. Friend and Static Member/01_friend_function_my.cpp
All-CODE-with-Explanation/CPP_deep_dive_-Abdul-Bari-
2717ce14487deb47fff4ccc2b7349f12643bbd38
[ "MIT" ]
1
2021-12-01T14:03:07.000Z
2021-12-01T14:03:07.000Z
/* This program is my experiment. Create a global function and return an object. Also, make this as friend function. */ #include <iostream> using namespace std; class Test { private: protected: public: int a; int b; int c; friend Test fun(); // Though function doesn't belongs to this class but is ...
17.661765
110
0.602831
f02732e925b9bd7a3d1071c0ebc55a73fc0c1d0d
418
hpp
C++
pythran/pythonic/include/numpy/isscalar.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/include/numpy/isscalar.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/include/numpy/isscalar.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
null
null
null
#ifndef PYTHONIC_INCLUDE_NUMPY_ISSCALAR_HPP #define PYTHONIC_INCLUDE_NUMPY_ISSCALAR_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/types/traits.hpp" #include "pythonic/include/types/str.hpp" #include <type_traits> namespace pythonic { namespace numpy { template <class E> c...
17.416667
47
0.763158
f02e4a207cb97f3d4edb73883357be6961ea0058
1,583
cpp
C++
src/network/uber-profile-requestor.cpp
ghosalmartin/harbour-uber
b8d906f4050cfea8817aaebe1ade5c3466662109
[ "MIT" ]
2
2018-03-16T10:31:20.000Z
2018-10-02T15:50:56.000Z
src/network/uber-profile-requestor.cpp
ghosalmartin/harbour-uber
b8d906f4050cfea8817aaebe1ade5c3466662109
[ "MIT" ]
null
null
null
src/network/uber-profile-requestor.cpp
ghosalmartin/harbour-uber
b8d906f4050cfea8817aaebe1ade5c3466662109
[ "MIT" ]
null
null
null
#include "uber-profile-requestor.h" UberProfileRequestor::UberProfileRequestor(QObject *parent) : UberRequestor(parent){ connect(this, SIGNAL(profileChanged(Profile*)), this, SLOT(setProfile(Profile*))); } void UberProfileRequestor::fetchProfileFromNetwork(){ makeNetworkCall( U...
33.680851
76
0.602021
f0301b4fa363e12af3da418ae0df901ea49d2cc4
712
cpp
C++
example/src/main.cpp
MarPta/HT1621_universal
e7fd629732c4830de4701c282a0457b53812f52c
[ "MIT" ]
null
null
null
example/src/main.cpp
MarPta/HT1621_universal
e7fd629732c4830de4701c282a0457b53812f52c
[ "MIT" ]
null
null
null
example/src/main.cpp
MarPta/HT1621_universal
e7fd629732c4830de4701c282a0457b53812f52c
[ "MIT" ]
null
null
null
#include <Arduino.h> #include "HT1621_universal.h" const uint8_t csPin = 14; //Chip selection output const uint8_t wrPin = 27; //Read clock output const uint8_t dataPin = 26; //Serial data output HT1621_universal lcd(csPin, wrPin, dataPin); void setup() { lcd.init(); lcd.HT1621_all_on(16); delay(1000...
23.733333
51
0.633427
f0345cefb360a8d7f49255d1ecb9b909df56d97e
244
hpp
C++
include/PrimeGenerator.hpp
sigalor/prime-plot
53bfa9e5f4d89d717d616620045a7c21c7cfe733
[ "Apache-2.0" ]
9
2018-04-10T09:38:16.000Z
2021-02-02T22:46:30.000Z
include/PrimeGenerator.hpp
sigalor/prime-plot
53bfa9e5f4d89d717d616620045a7c21c7cfe733
[ "Apache-2.0" ]
null
null
null
include/PrimeGenerator.hpp
sigalor/prime-plot
53bfa9e5f4d89d717d616620045a7c21c7cfe733
[ "Apache-2.0" ]
2
2018-07-31T04:31:10.000Z
2019-12-21T22:47:50.000Z
#pragma once #include <iostream> #include <vector> //#include <thread> namespace PrimeGenerator { long integerSqrt(long num); std::vector<long> findPrimes(long start, std::size_t num, long* lastCurrLimit, long end=-1); }
15.25
99
0.67623
f03624c4db456ba229b7c38e968a48cfa94cb403
7,796
cpp
C++
Beon/src/main.cpp
Riordan-DC/B-on
174390c08eddcdfbd0ae7441fc440a32641bcf28
[ "MIT" ]
null
null
null
Beon/src/main.cpp
Riordan-DC/B-on
174390c08eddcdfbd0ae7441fc440a32641bcf28
[ "MIT" ]
null
null
null
Beon/src/main.cpp
Riordan-DC/B-on
174390c08eddcdfbd0ae7441fc440a32641bcf28
[ "MIT" ]
null
null
null
#include "Beon.hpp" // Window parameters int windowWidth = 1980; int windowHeight = 1080; static bool running = true; //Get a handle on our light //GLuint LightID = glGetUniformLocation(mShader.ID, "LightPosition_worldspace"); // Forward declaration of functions void cleanup(); // Create window manag...
34.043668
156
0.685993
f036d2b4c7e72d0bc013732246952863da7336c2
1,773
cpp
C++
roo_material_icons/sharp/18/home.cpp
dejwk/roo_material_icons
f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885
[ "MIT" ]
null
null
null
roo_material_icons/sharp/18/home.cpp
dejwk/roo_material_icons
f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885
[ "MIT" ]
null
null
null
roo_material_icons/sharp/18/home.cpp
dejwk/roo_material_icons
f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885
[ "MIT" ]
null
null
null
#include "home.h" using namespace roo_display; // Image file ic_sharp_18_home_sensor_door 18x18, 4-bit Alpha, RLE, 60 bytes. static const uint8_t ic_sharp_18_home_sensor_door_data[] PROGMEM = { 0x80, 0xC3, 0x00, 0x18, 0x06, 0x30, 0x16, 0x06, 0xFB, 0x06, 0x60, 0x6F, 0xB0, 0x66, 0x06, 0xFB, 0x06, 0x60, 0x6F, 0xB0,...
53.727273
97
0.716864
f0377dc35798653f437c55858a0ab0ae28426d9a
4,645
cc
C++
util/fuchsia/koid_utilities.cc
rbxeyl/crashpad
95b4e6276836283a91e18382fb258598bd77f8aa
[ "Apache-2.0" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
util/fuchsia/koid_utilities.cc
rbxeyl/crashpad
95b4e6276836283a91e18382fb258598bd77f8aa
[ "Apache-2.0" ]
113
2019-12-14T04:28:04.000Z
2021-09-26T18:40:27.000Z
util/fuchsia/koid_utilities.cc
rbxeyl/crashpad
95b4e6276836283a91e18382fb258598bd77f8aa
[ "Apache-2.0" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2018 The Crashpad Authors. 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 ...
32.711268
80
0.639182
f039d9bddaa3b8b6064b2f29637a92b5c15b3ba0
108
cpp
C++
src/test/sub.cpp
ifritJP/lctags
dd877c6f6f10b9299c59cfbc05755b7680c7dd80
[ "MIT" ]
17
2017-10-24T15:19:49.000Z
2021-12-19T00:49:48.000Z
src/test/sub.cpp
ifritJP/lctags
dd877c6f6f10b9299c59cfbc05755b7680c7dd80
[ "MIT" ]
1
2021-02-24T15:49:11.000Z
2021-02-26T07:45:05.000Z
src/test/sub.cpp
ifritJP/lctags
dd877c6f6f10b9299c59cfbc05755b7680c7dd80
[ "MIT" ]
1
2017-11-08T17:39:51.000Z
2017-11-08T17:39:51.000Z
#define NNNN #include <./hoge.h> #ifdef VVVVVVV int vvvvv; #endif namespace jjjjj { #include <field.h> }
9
19
0.685185
f040c8b9ee2c07b5d508dcc6f6c41cd4e4cd3511
8,596
hpp
C++
include/codegen/include/Zenject/FactoryFromBinder1Extensions.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/Zenject/FactoryFromBinder1Extensions.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/Zenject/FactoryFromBinder1Extensions.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:42 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.Object #include "System/Object.hpp" #include "utils/i...
73.470085
347
0.79665
f04378c7ee5b0e8ee964c93bb89f07a6b122379e
680
hpp
C++
include/jln/mp/functional/if.hpp
jonathanpoelen/jln.mp
e5f05fc4467f14ac0047e3bdc75a04076e689985
[ "MIT" ]
9
2020-07-04T16:46:13.000Z
2022-01-09T21:59:31.000Z
include/jln/mp/functional/if.hpp
jonathanpoelen/jln.mp
e5f05fc4467f14ac0047e3bdc75a04076e689985
[ "MIT" ]
null
null
null
include/jln/mp/functional/if.hpp
jonathanpoelen/jln.mp
e5f05fc4467f14ac0047e3bdc75a04076e689985
[ "MIT" ]
1
2021-05-23T13:37:40.000Z
2021-05-23T13:37:40.000Z
#pragma once #include <jln/mp/utility/conditional.hpp> #include <jln/mp/utility/always.hpp> #include <jln/mp/number/number.hpp> #include <jln/mp/functional/call.hpp> namespace jln::mp { /// \ingroup functional /// A conditional expression. /// \treturn \value template<class Pred, class TC, class FC = always<...
22.666667
72
0.636765
f043b2b0fde76b34dd159a94d2ffaa47995915cd
7,135
cpp
C++
src/zxing/zxing/oned/rss/expanded/decoders/FieldParser.cpp
favoritas37/qzxing
6ea2b31e26db9d43db027ba207f5c73dc9d759fc
[ "Apache-2.0" ]
608
2015-02-21T22:31:37.000Z
2022-03-31T05:05:36.000Z
src/zxing/zxing/oned/rss/expanded/decoders/FieldParser.cpp
favoritas37/qzxing
6ea2b31e26db9d43db027ba207f5c73dc9d759fc
[ "Apache-2.0" ]
512
2015-01-06T17:59:31.000Z
2022-03-31T13:21:49.000Z
src/zxing/zxing/oned/rss/expanded/decoders/FieldParser.cpp
favoritas37/qzxing
6ea2b31e26db9d43db027ba207f5c73dc9d759fc
[ "Apache-2.0" ]
281
2016-09-15T08:42:26.000Z
2022-03-21T17:55:00.000Z
#include "FieldParser.h" #include <algorithm> namespace zxing { namespace oned { namespace rss { static const int VARIABLE_LENGTH = 99999; struct DigitData { std::string digit; int variableLength; int length; }; static const DigitData TWO_DIGIT_DATA_LENGTH[] { // "DIGITS", new Integer(LENGTH) // ...
25.758123
95
0.571829
f045c323aed5df511f3059cb6ecfa62ee27afcee
1,198
hh
C++
GameLogic/Engine/piecefactory.hh
saarioka/Saaripeli
28145e49b4708e22fb7cb051c1ccddfa4a6a24f9
[ "MIT" ]
null
null
null
GameLogic/Engine/piecefactory.hh
saarioka/Saaripeli
28145e49b4708e22fb7cb051c1ccddfa4a6a24f9
[ "MIT" ]
null
null
null
GameLogic/Engine/piecefactory.hh
saarioka/Saaripeli
28145e49b4708e22fb7cb051c1ccddfa4a6a24f9
[ "MIT" ]
null
null
null
#ifndef PIECEFACTORY_HH #define PIECEFACTORY_HH #include <QJsonObject> #include <string> #include <vector> /** * @file * @brief Singleton class that creates pieces. */ namespace Logic { /** * @brief Singleton class for creating pieces. * * The factory is requested to read JSON file, after which it will reques...
21.392857
133
0.673623
f04c4f700ec089a967ffa9bfa9b5e02c7dfa42ff
1,413
hpp
C++
lib/include/interlinck/Core/Syntax/IWithSimplifiedWidthAndPosition.hpp
henrikfroehling/polyglot
955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142
[ "MIT" ]
null
null
null
lib/include/interlinck/Core/Syntax/IWithSimplifiedWidthAndPosition.hpp
henrikfroehling/polyglot
955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142
[ "MIT" ]
50
2021-06-30T20:01:50.000Z
2021-11-28T16:21:26.000Z
lib/include/interlinck/Core/Syntax/IWithSimplifiedWidthAndPosition.hpp
henrikfroehling/polyglot
955fb37c2f54ebbaf933c16bf9e0e4bcca8a4142
[ "MIT" ]
null
null
null
#ifndef INTERLINCK_CORE_SYNTAX_IWITHSIMPLIFIEDWIDTHANDPOSITION_H #define INTERLINCK_CORE_SYNTAX_IWITHSIMPLIFIEDWIDTHANDPOSITION_H #include "interlinck/interlinck_global.hpp" #include "interlinck/Core/Text/TextSpan.hpp" #include "interlinck/Core/Types.hpp" namespace interlinck::Core::Syntax { /** * @brief Interface ...
30.06383
105
0.726115
f04dea21f0d983027c7a935bca810fd5ba8b0309
8,835
hpp
C++
src/core/imports/blas/Ger.hpp
pjt1988/Elemental
71d3e2b98829594e9f52980a8b1ef7c1e99c724b
[ "Apache-2.0" ]
473
2015-01-11T03:22:11.000Z
2022-03-31T05:28:39.000Z
src/core/imports/blas/Ger.hpp
pjt1988/Elemental
71d3e2b98829594e9f52980a8b1ef7c1e99c724b
[ "Apache-2.0" ]
205
2015-01-10T20:33:45.000Z
2021-07-25T14:53:25.000Z
src/core/imports/blas/Ger.hpp
pjt1988/Elemental
71d3e2b98829594e9f52980a8b1ef7c1e99c724b
[ "Apache-2.0" ]
109
2015-02-16T14:06:42.000Z
2022-03-23T21:34:26.000Z
/* Copyright (c) 2009-2016, Jack Poulson All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ extern "C" { void EL_BLAS(sger) ( const BlasInt* m, c...
29.158416
73
0.637917
f0536743f2f27114eb1aa65d2d52739f363aad92
1,111
cpp
C++
UVA/11582/17163602_AC_970ms_0kB.cpp
BakaErii/ACM_Collection
d368b15c7f1c84472424d5e61e5ebc667f589025
[ "WTFPL" ]
null
null
null
UVA/11582/17163602_AC_970ms_0kB.cpp
BakaErii/ACM_Collection
d368b15c7f1c84472424d5e61e5ebc667f589025
[ "WTFPL" ]
null
null
null
UVA/11582/17163602_AC_970ms_0kB.cpp
BakaErii/ACM_Collection
d368b15c7f1c84472424d5e61e5ebc667f589025
[ "WTFPL" ]
null
null
null
/** * @author Moe_Sakiya sakiya@tun.moe * @date 2018-11-24 14:58:37 * */ #include <iostream> #include <string> #include <algorithm> #include <set> #include <map> #include <vector> #include <stack> #include <queue> #include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> using namespace std; ...
19.155172
105
0.545455
f0573ae4797675834357ceed30a2b0960325ab6e
1,281
hpp
C++
src/memory/Array.hpp
LU15W1R7H/lwirth-lib
f51cfb56b801790c200cea64d226730449d68f53
[ "MIT" ]
2
2018-04-04T17:26:32.000Z
2020-06-26T09:22:49.000Z
src/memory/Array.hpp
LU15W1R7H/lwirth-lib
f51cfb56b801790c200cea64d226730449d68f53
[ "MIT" ]
1
2018-08-27T14:35:45.000Z
2018-08-27T19:00:12.000Z
src/memory/Array.hpp
LU15W1R7H/lwirth-lib
f51cfb56b801790c200cea64d226730449d68f53
[ "MIT" ]
null
null
null
#pragma once #include "../Standard.hpp" #include <utility> #include <initializer_list> namespace lw { template<class T, size_t SIZE> class Array { private: T m_pData[SIZE]; public: constexpr Array() : m_pData{} { } constexpr Array(const std::initializer_list<T>& il) { static_assert(il.end() ...
14.233333
64
0.569087
f05afcaf3ed05ba253818a720fa5abcfd082bd35
261
cc
C++
test/mocks/grpc/mocks.cc
htuch/envoy
f466a86e4bba81c18f5b59f0c56ea36aa663e174
[ "Apache-2.0" ]
2
2017-07-31T15:03:19.000Z
2018-02-20T16:18:49.000Z
test/mocks/grpc/mocks.cc
htuch/envoy
f466a86e4bba81c18f5b59f0c56ea36aa663e174
[ "Apache-2.0" ]
null
null
null
test/mocks/grpc/mocks.cc
htuch/envoy
f466a86e4bba81c18f5b59f0c56ea36aa663e174
[ "Apache-2.0" ]
null
null
null
#include "mocks.h" namespace Envoy { namespace Grpc { MockRpcChannelCallbacks::MockRpcChannelCallbacks() {} MockRpcChannelCallbacks::~MockRpcChannelCallbacks() {} MockRpcChannel::MockRpcChannel() {} MockRpcChannel::~MockRpcChannel() {} } // Grpc } // Envoy
18.642857
54
0.754789
f05c0ab5100891ab71ff4d255acf39c1eb3592cd
1,426
cpp
C++
Algorithms/lab1/QuickSort_1.0.cpp
chaohu/Daily-Learning
0e8d14a3497ad319eda20bc4682cec08d5d6fb08
[ "MIT" ]
12
2016-04-09T15:43:02.000Z
2022-03-22T01:58:25.000Z
Algorithms/lab1/QuickSort_1.0.cpp
chaohu/Daily-Learning
0e8d14a3497ad319eda20bc4682cec08d5d6fb08
[ "MIT" ]
null
null
null
Algorithms/lab1/QuickSort_1.0.cpp
chaohu/Daily-Learning
0e8d14a3497ad319eda20bc4682cec08d5d6fb08
[ "MIT" ]
2
2018-08-23T07:34:59.000Z
2019-06-20T10:17:31.000Z
#include <iostream> #include <stack> using namespace std; #define MAX 0x7FFFFFFF int PARTITION(int p,int j); stack<int> s; //栈s,存储较大的部分的编号 int *A; //待分类的数据(1:n) int main() { int n = 0,i = 0,j = 0; int p = 0,q = 0,x = 0,y = 0; cout<<"输入待分类数据个数:"; cin>>n; A = (int *)malloc(sizeof(int) * (...
19.805556
45
0.3331
f05d0fb0bad04d57d1e34c6959370d81a322c039
3,847
cpp
C++
BlackVision/LibBlackVision/Source/Engine/Types/Values/ValuesFactory.cpp
black-vision-engine/bv-engine
85089d41bb22afeaa9de070646e12aa1777ecedf
[ "MIT" ]
1
2022-01-28T11:43:47.000Z
2022-01-28T11:43:47.000Z
BlackVision/LibBlackVision/Source/Engine/Types/Values/ValuesFactory.cpp
black-vision-engine/bv-engine
85089d41bb22afeaa9de070646e12aa1777ecedf
[ "MIT" ]
null
null
null
BlackVision/LibBlackVision/Source/Engine/Types/Values/ValuesFactory.cpp
black-vision-engine/bv-engine
85089d41bb22afeaa9de070646e12aa1777ecedf
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "ValuesFactory.h" namespace bv { // *********************** // ValueBoolPtr ValuesFactory::CreateValueBool ( const std::string & name ) { return std::make_shared< ValueBool >( name ); } // *********************** // ValueBoolPtr ValuesFactory::Cr...
23.601227
115
0.514947
f05e815d93655bacfc70fe1ce478ee32625984dd
881
cpp
C++
src/functions.cpp
cbries/tetrisgl
a40f22140d05c2cf6116946459a99a0477c1569a
[ "MIT" ]
1
2015-02-23T19:06:04.000Z
2015-02-23T19:06:04.000Z
src/functions.cpp
cbries/tetrisgl
a40f22140d05c2cf6116946459a99a0477c1569a
[ "MIT" ]
null
null
null
src/functions.cpp
cbries/tetrisgl
a40f22140d05c2cf6116946459a99a0477c1569a
[ "MIT" ]
null
null
null
/* * Copyright (c) 2008 Christian Benjamin Ries * License: MIT * Website: https://github.com/cbries/tetrisgl */ #include "functions.h" #include <GL/gl.h> void Enter2DMode( int startx, int starty, int width, int height ) { glPushAttrib(GL_ENABLE_BIT); glDisable(GL_DEPTH_TEST); glDisable(GL_CULL_FACE); glDi...
21.487805
92
0.702611
f0616ccc3e6e3633664c0f16c8791c09aeb718d5
549
cpp
C++
C++/Cracking-the-Coding-Interview/1.3.cpp
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
1
2018-05-24T11:30:05.000Z
2018-05-24T11:30:05.000Z
C++/Cracking-the-Coding-Interview/1.3.cpp
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
null
null
null
C++/Cracking-the-Coding-Interview/1.3.cpp
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
2
2017-08-11T06:53:30.000Z
2017-08-29T12:07:52.000Z
// Design an algorithm and write code to remove the duplicate characters in a string. #include <iostream> #include <string> #include <unordered_map> int main() { std::string input = "aabbccd"; std::string output = ""; std::unordered_map<char, int> numberOfInstances; for (int i = 0; i < input.length(); ++i) { c...
20.333333
85
0.666667
f06568948b9a5dd22a8d25344b24347add5cd753
967
cpp
C++
sdk/workspaces/vc10/LidarWrapper/LidarWrapper.cpp
maaks/ldrwrap
64e40908fc7f270b6378c3720e5c6539e989a77e
[ "BSD-2-Clause" ]
null
null
null
sdk/workspaces/vc10/LidarWrapper/LidarWrapper.cpp
maaks/ldrwrap
64e40908fc7f270b6378c3720e5c6539e989a77e
[ "BSD-2-Clause" ]
null
null
null
sdk/workspaces/vc10/LidarWrapper/LidarWrapper.cpp
maaks/ldrwrap
64e40908fc7f270b6378c3720e5c6539e989a77e
[ "BSD-2-Clause" ]
null
null
null
#include "pch.h" #include "LidarWrapper.h" #include "rplidar_cmd.h" using namespace rp::standalone::rplidar; LidarWrapper::Wrapper::Wrapper() { } bool LidarWrapper::Wrapper::connect(const char* com, _u32 baud) { drv = RPlidarDriver::CreateDriver(0x0); if (!drv) { return false; } r...
15.596774
63
0.587384
f065d57c662e513c19451436adce905eb462d9cb
1,056
cpp
C++
C++/1214-Two-Sum-BSTs/soln.cpp
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
C++/1214-Two-Sum-BSTs/soln.cpp
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
C++/1214-Two-Sum-BSTs/soln.cpp
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l...
28.540541
93
0.517045
f0661040e34c42c182ca269d08eafe3d14b1291c
1,350
hpp
C++
include/onepass/trackable.hpp
inql/OnePass
6e24d6bd6bcb70fdac4de5e4a155fcea68ea85ef
[ "Unlicense" ]
4
2021-10-20T17:40:33.000Z
2022-02-14T09:39:46.000Z
include/onepass/trackable.hpp
inql/OnePass
6e24d6bd6bcb70fdac4de5e4a155fcea68ea85ef
[ "Unlicense" ]
null
null
null
include/onepass/trackable.hpp
inql/OnePass
6e24d6bd6bcb70fdac4de5e4a155fcea68ea85ef
[ "Unlicense" ]
null
null
null
#ifndef TRACKABLE_HPP #define TRACKABLE_HPP namespace onepass { namespace core { template<class T> class Trackable { private: unsigned id_; time_t created_; time_t accessed_; friend class boost::serialization::access; public: T val_; Trackable() : id_(0) ...
19.285714
62
0.508889
f06c0f25f37e1f31691505bc5a0f838dd83c8a8e
48,489
cpp
C++
Temp/il2cppOutput/il2cppOutput/Il2CppCompilerCalculateTypeValues_19Table.cpp
408794550/871AR
3f903d01ae05522413f7be7abb286d1944d00bbb
[ "Apache-2.0" ]
1
2018-08-16T10:43:30.000Z
2018-08-16T10:43:30.000Z
Temp/il2cppOutput/il2cppOutput/Il2CppCompilerCalculateTypeValues_19Table.cpp
408794550/871AR
3f903d01ae05522413f7be7abb286d1944d00bbb
[ "Apache-2.0" ]
null
null
null
Temp/il2cppOutput/il2cppOutput/Il2CppCompilerCalculateTypeValues_19Table.cpp
408794550/871AR
3f903d01ae05522413f7be7abb286d1944d00bbb
[ "Apache-2.0" ]
null
null
null
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include "class-internals.h" #include "codegen/il2cpp-codegen.h" #include "UnityEngine_UI_UnityEngine_UI...
54.789831
211
0.855761
f06ee92972823d6b60af68a5fc9664e81b799368
646
hpp
C++
test/split.hpp
ortfero/chineseroom
6532df6af72f0ab7597e70e00c7f50c45af43c28
[ "MIT" ]
null
null
null
test/split.hpp
ortfero/chineseroom
6532df6af72f0ab7597e70e00c7f50c45af43c28
[ "MIT" ]
null
null
null
test/split.hpp
ortfero/chineseroom
6532df6af72f0ab7597e70e00c7f50c45af43c28
[ "MIT" ]
null
null
null
#pragma once #include <doctest/doctest.h> #include <chineseroom/split.hpp> TEST_CASE("splitting string '1,2,,3,'") { auto const splitted = chineseroom::split(std::string{"1,2,,3,"}, ','); REQUIRE(splitted.size() == 3); REQUIRE(splitted[0] == "1"); REQUIRE(splitted[1] == "2"); REQUIRE(splitted[2] == "3"); }...
23.925926
81
0.608359
7eb7a059af5ad373bdf75c3559c30c7b4abc159a
4,987
cpp
C++
source/Dream/Events/Source.cpp
kurocha/dream-events
b2cf5a188d8e3be2a07a5b7d36ed3eebc812cb72
[ "MIT", "Unlicense" ]
null
null
null
source/Dream/Events/Source.cpp
kurocha/dream-events
b2cf5a188d8e3be2a07a5b7d36ed3eebc812cb72
[ "MIT", "Unlicense" ]
null
null
null
source/Dream/Events/Source.cpp
kurocha/dream-events
b2cf5a188d8e3be2a07a5b7d36ed3eebc812cb72
[ "MIT", "Unlicense" ]
null
null
null
// // Events/Source.cpp // This file is part of the "Dream" project, and is released under the MIT license. // // Created by Samuel Williams on 9/12/08. // Copyright (c) 2008 Samuel Williams. All rights reserved. // // #include "Source.hpp" #include "Loop.hpp" #include <fcntl.h> #include <iostream> #include <un...
22.263393
188
0.697814
7eb7e0c4ee1bb77198967e12661cf0d495b0eb3f
2,172
cpp
C++
mainWindowTetris.cpp
karimob/Tetris-mi-parcours
f8252f1b8924b8e085403765055408c71555f112
[ "MIT" ]
null
null
null
mainWindowTetris.cpp
karimob/Tetris-mi-parcours
f8252f1b8924b8e085403765055408c71555f112
[ "MIT" ]
null
null
null
mainWindowTetris.cpp
karimob/Tetris-mi-parcours
f8252f1b8924b8e085403765055408c71555f112
[ "MIT" ]
null
null
null
#include "precompiledHeader.h" #include "mainWindowTetris.h" #include "ui_mainWindowTetris.h" #include "tetrixwindow.h" MainWindowTetris::MainWindowTetris(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindowTetris) { ui->setupUi(this); TetrixWindow *window = new TetrixWindow; QHBoxLayout *layo...
36.2
337
0.668969
7eb8f1d7a2ef4df245e9f013d0b1844198240c44
1,191
cpp
C++
ESOBrowser/ESODatabaseModel.cpp
moon-touched/ESOExplorer
a57e6c5d545d48f783664f624cbeee5c5b542ef3
[ "MIT" ]
2
2020-07-25T01:51:34.000Z
2021-07-12T20:35:28.000Z
ESOBrowser/ESODatabaseModel.cpp
moon-touched/ESOExplorer
a57e6c5d545d48f783664f624cbeee5c5b542ef3
[ "MIT" ]
null
null
null
ESOBrowser/ESODatabaseModel.cpp
moon-touched/ESOExplorer
a57e6c5d545d48f783664f624cbeee5c5b542ef3
[ "MIT" ]
null
null
null
#include "ESODatabaseModel.h" #include <ESOData/Database/ESODatabase.h> ESODatabaseModel::ESODatabaseModel(const esodata::ESODatabase* database, QObject* parent) : QAbstractItemModel(parent), m_database(database) { } ESODatabaseModel::~ESODatabaseModel() = default; int ESODatabaseModel::columnCount(const QModelInde...
24.8125
142
0.745592
7ec25261c39def588dac7424a1a1b276fad3ab59
11,445
cpp
C++
sdk/src/config.cpp
Appdynamics/iot-cpp-sdk
abb7d70b2364089495ac73adf2a992c0af6eaf8c
[ "Apache-2.0" ]
3
2018-09-13T21:26:27.000Z
2022-01-25T06:15:06.000Z
sdk/src/config.cpp
Appdynamics/iot-cpp-sdk
abb7d70b2364089495ac73adf2a992c0af6eaf8c
[ "Apache-2.0" ]
11
2018-01-30T00:42:23.000Z
2019-10-20T07:19:37.000Z
sdk/src/config.cpp
Appdynamics/iot-cpp-sdk
abb7d70b2364089495ac73adf2a992c0af6eaf8c
[ "Apache-2.0" ]
5
2018-01-29T18:52:21.000Z
2019-05-19T02:38:18.000Z
/* * Copyright (c) 2018 AppDynamics LLC and its affiliates * * 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 appli...
31.703601
110
0.757886
7ec322b6f9f602c5011df5edd6031a7aa189a19b
1,899
cpp
C++
Antiplagiat/Antiplagiat/bin/Debug/u42682_518_E_10004263.cpp
DmitryTheFirst/AntiplagiatVkCup
556d3fe2e5a630d06a7aa49f2af5dcb28667275a
[ "Apache-2.0" ]
1
2015-07-04T14:45:32.000Z
2015-07-04T14:45:32.000Z
Antiplagiat/Antiplagiat/bin/Debug/u42682_518_E_10004263.cpp
DmitryTheFirst/AntiplagiatVkCup
556d3fe2e5a630d06a7aa49f2af5dcb28667275a
[ "Apache-2.0" ]
null
null
null
Antiplagiat/Antiplagiat/bin/Debug/u42682_518_E_10004263.cpp
DmitryTheFirst/AntiplagiatVkCup
556d3fe2e5a630d06a7aa49f2af5dcb28667275a
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define ll long long #define gc getchar int a[500005]; bool v[500005]; int read(int i) { char c = gc(); while((c<'0' || c>'9') && c!='?' && c!='-') c = gc(); bool sig = 1; if(c=='?') { v[i] = 1; return 0; } if(c=='-') { c = gc(); sig = 0; } int ret = 0; whil...
22.879518
64
0.382833
7ec43bb8d48251e102fd7ca0fb5c2e2e4e91bbc4
302
cpp
C++
dojo/first/06_coroutine_ts/main.cpp
adrianimboden/cppusergroup-adynchronous-programming
d6fad3ff980be2e7c13ed9e3e05b62e984c9caa4
[ "MIT" ]
null
null
null
dojo/first/06_coroutine_ts/main.cpp
adrianimboden/cppusergroup-adynchronous-programming
d6fad3ff980be2e7c13ed9e3e05b62e984c9caa4
[ "MIT" ]
null
null
null
dojo/first/06_coroutine_ts/main.cpp
adrianimboden/cppusergroup-adynchronous-programming
d6fad3ff980be2e7c13ed9e3e05b62e984c9caa4
[ "MIT" ]
null
null
null
#include "http_client.h" namespace coroutines_ts { task<std::vector<std::string>> request_uris(HttpClient& http_client, const std::vector<std::string>& uris_to_request) { (void)http_client; (void)uris_to_request; co_return std::vector<std::string>{{"42"}}; } }
23.230769
63
0.652318
7ec468508f106eac6bf99e10ec8bd756222a6851
1,165
hpp
C++
src/serial/SerialPlayer.hpp
stu-inc/DataCapture
d2bd01cd431867ec8372687542150391344022d6
[ "MIT" ]
null
null
null
src/serial/SerialPlayer.hpp
stu-inc/DataCapture
d2bd01cd431867ec8372687542150391344022d6
[ "MIT" ]
null
null
null
src/serial/SerialPlayer.hpp
stu-inc/DataCapture
d2bd01cd431867ec8372687542150391344022d6
[ "MIT" ]
null
null
null
#pragma once #include <QReadWriteLock> #include <QSharedPointer> #include <QThread> #include <QtSerialPort> class QFile; class QElapsedTimer; class SerialPlayer : public QThread { public: explicit SerialPlayer(QObject *parent = nullptr); virtual ~SerialPlayer() override; void start(); void stop(); void re...
22.843137
52
0.771674
7ec85697288a121d2e81564097e612303ade086f
1,049
cpp
C++
Ejercicio4Tema11/Ejercicio4Tema11/Rio.cpp
gejors55/Algorithm
107d6cf4eb8fc7f4d0cebfe9b4e7b2811ac10533
[ "MIT" ]
null
null
null
Ejercicio4Tema11/Ejercicio4Tema11/Rio.cpp
gejors55/Algorithm
107d6cf4eb8fc7f4d0cebfe9b4e7b2811ac10533
[ "MIT" ]
null
null
null
Ejercicio4Tema11/Ejercicio4Tema11/Rio.cpp
gejors55/Algorithm
107d6cf4eb8fc7f4d0cebfe9b4e7b2811ac10533
[ "MIT" ]
null
null
null
#include "Rio.h" Rio::Rio() {} float Rio::embalsado_pantano(const string& pantano) const { return buscar_pantano(pantano).vol(); } float Rio::embalsado_total() const { DiccionarioHash<string, Pantano>::ConstIterator ipantano = _pantanos.cbegin(); DiccionarioHash<string, Pantano>::ConstIterator ifin ...
29.971429
87
0.711153
7ece0d313e1768940414c5fe1f211ce55e1716ec
18,342
cpp
C++
ccct.cpp
Taromati2/yaya-shiori
c49e3d4d03f167a8833f2e68810fb46dc33bac90
[ "BSD-3-Clause" ]
null
null
null
ccct.cpp
Taromati2/yaya-shiori
c49e3d4d03f167a8833f2e68810fb46dc33bac90
[ "BSD-3-Clause" ]
2
2022-01-12T03:25:46.000Z
2022-01-12T07:15:38.000Z
ccct.cpp
Taromati2/yaya-shiori
c49e3d4d03f167a8833f2e68810fb46dc33bac90
[ "BSD-3-Clause" ]
null
null
null
// // AYA version 5 // // 文字コード変換クラス Ccct // // 変換部分のコードは以下のサイトで公開されているものを利用しております。 // class CUnicodeF // kamoland // http://kamoland.com/comp/unicode.html // #if defined(WIN32) || defined(_WIN32_WCE) # include "stdafx.h" #endif #include <string.h> #include <clocale> #include <string> #include...
26.737609
104
0.522953
7ed02d68dd213deeafc9942003012d4865f18e14
10,429
hh
C++
extern/glow/src/glow/objects/Program.hh
huzjkevin/portal_maze_zgl
efb32b1c3430f20638c1401095999ecb4d0af5aa
[ "MIT" ]
null
null
null
extern/glow/src/glow/objects/Program.hh
huzjkevin/portal_maze_zgl
efb32b1c3430f20638c1401095999ecb4d0af5aa
[ "MIT" ]
null
null
null
extern/glow/src/glow/objects/Program.hh
huzjkevin/portal_maze_zgl
efb32b1c3430f20638c1401095999ecb4d0af5aa
[ "MIT" ]
null
null
null
#pragma once #include <glow/common/gltypeinfo.hh> #include <glow/common/macro_join.hh> #include <glow/common/nodiscard.hh> #include <glow/common/non_copyable.hh> #include <glow/common/property.hh> #include <glow/common/shared.hh> #include <glow/gl.hh> #include <glow/util/LocationMapping.hh> #include "NamedObject.hh...
36.592982
122
0.698149
7ed08d18a4a54352dac118c13d60f2c6715f9bb7
1,092
cc
C++
leetcode/p6.cc
lhyqie/lhyqie.github.io
d986ac4afddf169a07d4f1de95bcc737368e212b
[ "MIT" ]
null
null
null
leetcode/p6.cc
lhyqie/lhyqie.github.io
d986ac4afddf169a07d4f1de95bcc737368e212b
[ "MIT" ]
null
null
null
leetcode/p6.cc
lhyqie/lhyqie.github.io
d986ac4afddf169a07d4f1de95bcc737368e212b
[ "MIT" ]
null
null
null
#include "common.h" class Solution { public: string longestPalindrome(string s) { int start = 0, max_len = 1; for(int i = 0; i < s.size(); i++){ int len1 = expandAroundCenter(s, i, i); int len2 = expandAroundCenter(s, i, i+1); int len = std::max(len1, len2); if(std::max(len1, len2) > ...
30.333333
112
0.494505
7ed11ddecfb406867da6e2c1f16708dab04c588b
1,739
hpp
C++
include/pcl_ros_wrapper/registration/warp_point_2d.hpp
larics/pcl_ros_wrapper
cbb4fb2c74a463cee8d5c42dcd8cbabb407b617f
[ "BSD-3-Clause" ]
null
null
null
include/pcl_ros_wrapper/registration/warp_point_2d.hpp
larics/pcl_ros_wrapper
cbb4fb2c74a463cee8d5c42dcd8cbabb407b617f
[ "BSD-3-Clause" ]
null
null
null
include/pcl_ros_wrapper/registration/warp_point_2d.hpp
larics/pcl_ros_wrapper
cbb4fb2c74a463cee8d5c42dcd8cbabb407b617f
[ "BSD-3-Clause" ]
1
2021-03-31T12:42:13.000Z
2021-03-31T12:42:13.000Z
#ifndef WARP_POINT_2D #define WARP_POINT_2D #pragma once #include <pcl/registration/warp_point_rigid.h> #include <boost/shared_ptr.hpp> namespace pcl { namespace registration { /** \brief @b WarpPoint2D enables 3D (1D rotation around yaw + 2D translation) * transformations for points. * * \note The class ...
32.811321
89
0.693502
7ed9e9e405f5aad41a90800b91beedbb009328e9
769
hpp
C++
include/Version.hpp
marcosivni/dicomlib
dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7
[ "BSD-3-Clause" ]
null
null
null
include/Version.hpp
marcosivni/dicomlib
dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7
[ "BSD-3-Clause" ]
null
null
null
include/Version.hpp
marcosivni/dicomlib
dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7
[ "BSD-3-Clause" ]
null
null
null
/************************************************************************ * DICOMLIB * Copyright 2003 Sunnybrook and Women's College Health Science Center * Implemented by Trevor Morgan (morgan@sten.sunnybrook.utoronto.ca) * * See LICENSE.txt for copyright and licensing info. ******************************************...
26.517241
74
0.642393
7edaec75b0cf2648a7cee0b07f42f61f99fa1368
389
cpp
C++
cppcode/201710_12/reference.cpp
jiedou/study
606676ebc3d1fb1a87de26b6609307d71dafec22
[ "Apache-2.0" ]
null
null
null
cppcode/201710_12/reference.cpp
jiedou/study
606676ebc3d1fb1a87de26b6609307d71dafec22
[ "Apache-2.0" ]
null
null
null
cppcode/201710_12/reference.cpp
jiedou/study
606676ebc3d1fb1a87de26b6609307d71dafec22
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; int main() { int a=1; int &b=a; int c=b; b=2; cout<<"a="<<a<<",b="<<b<<",c="<<c<<endl; int d[]={1,2,3,4,5}; int(&e)[5]=d; for(int i=0;i<sizeof(d)/sizeof(d[0]);i++) { e[i]=e[i]*10+e[i]; } for(int i=0;i<sizeof(d)/sizeof(...
16.913043
45
0.411311
7edb7feacdeb2c8a27981b7a9ea1858e62205737
2,881
cpp
C++
algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvbio-test/fastq_test.cpp
mfkiwl/GAAS
29ab17d3e8a4ba18edef3a57c36d8db6329fac73
[ "BSD-3-Clause" ]
2,111
2019-01-29T07:01:32.000Z
2022-03-29T06:48:14.000Z
algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvbio-test/fastq_test.cpp
mfkiwl/GAAS
29ab17d3e8a4ba18edef3a57c36d8db6329fac73
[ "BSD-3-Clause" ]
131
2019-02-18T10:56:18.000Z
2021-09-27T12:07:00.000Z
algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvbio-test/fastq_test.cpp
mfkiwl/GAAS
29ab17d3e8a4ba18edef3a57c36d8db6329fac73
[ "BSD-3-Clause" ]
421
2019-02-12T07:59:18.000Z
2022-03-27T05:22:01.000Z
/* * nvbio * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice,...
31.659341
92
0.645262
7edf5e50fc97e2e4a115438d0fe06804eb043f50
1,648
hpp
C++
graph_tree/reroot.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
graph_tree/reroot.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
graph_tree/reroot.hpp
hotman78/cpplib
c2f85c8741cdd0b731a5aa828b28b38c70c8d699
[ "CC0-1.0" ]
null
null
null
#pragma once #include<vector> /** * @brief 全方位木DP */ template<typename T,typename F,typename Fix> struct reroot{ std::vector<std::vector<long long>>g; std::vector<int>p_list; std::vector<T>p_table; std::vector<bool>p_checked; std::vector<map<int,T>>table; std::vector<T>ans; T e; F f;...
25.353846
107
0.462985
7ee4b87260e8806d0a41f06e5a6ee005bf9bf864
1,963
cpp
C++
apps/opencs/view/doc/operations.cpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
apps/opencs/view/doc/operations.cpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
apps/opencs/view/doc/operations.cpp
Bodillium/openmw
5fdd264d0704e33b44b1ccf17ab4fb721f362e34
[ "Unlicense" ]
null
null
null
#include "operations.hpp" #include <QVBoxLayout> #include <QHBoxLayout> #include "operation.hpp" CSVDoc::Operations::Operations() { /// \todo make widget height fixed (exactly the height required to display all operations) setFeatures (QDockWidget::NoDockWidgetFeatures); QWidget *widgetContainer = new ...
28.042857
104
0.620479
7ee4c63995bffaf76d26ee7753c7496bf6dd7647
10,720
cpp
C++
evs/src/v2/model/ListSnapshotsRequest.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
5
2021-03-03T08:23:43.000Z
2022-02-16T02:16:39.000Z
evs/src/v2/model/ListSnapshotsRequest.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
null
null
null
evs/src/v2/model/ListSnapshotsRequest.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
7
2021-02-26T13:53:35.000Z
2022-03-18T02:36:43.000Z
#include "huaweicloud/evs/v2/model/ListSnapshotsRequest.h" namespace HuaweiCloud { namespace Sdk { namespace Evs { namespace V2 { namespace Model { ListSnapshotsRequest::ListSnapshotsRequest() { offset_ = 0; offsetIsSet_ = false; limit_ = 0; limitIsSet_ = false; name_ = ""; nameIsSet_ = f...
24.814815
116
0.673134
7ee5dd311a7c3ec42cf4eae373c6b0f129fb3ffa
2,332
cpp
C++
School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 4/c.cpp
SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming
ab1ca0d0d2187b561750d547e155e768951d29a0
[ "MIT" ]
null
null
null
School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 4/c.cpp
SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming
ab1ca0d0d2187b561750d547e155e768951d29a0
[ "MIT" ]
null
null
null
School Olympiads/Kazakhstan IOI Team Selection Camp 2018/Day 4/c.cpp
SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming
ab1ca0d0d2187b561750d547e155e768951d29a0
[ "MIT" ]
null
null
null
# include <bits/stdc++.h> # define F first # define S second # define mp make_pair // everything go according to my plan # define pb push_back # define sz(a) (int)(a.size()) # define vec vector // shimkenttin kyzdary, dzyn, dzyn, dzyn... # define y1 Y_U_NO_y1 # define left Y_U_NO_left # define right Y_U...
19.433333
73
0.496998
7ee62dc712cbf004e7453a3de916c97755ceec2b
2,417
cpp
C++
src/zone/call-task.cpp
localh0rzd/napajs
b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431
[ "MIT" ]
9,088
2017-08-08T22:28:16.000Z
2019-05-05T14:57:12.000Z
src/zone/call-task.cpp
localh0rzd/napajs
b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431
[ "MIT" ]
172
2017-08-09T21:32:15.000Z
2019-05-03T21:21:05.000Z
src/zone/call-task.cpp
localh0rzd/napajs
b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431
[ "MIT" ]
370
2017-08-09T04:58:14.000Z
2019-04-13T18:59:29.000Z
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // See: https://groups.google.com/forum/#!topic/nodejs/onA0S01INtw #ifdef BUILDING_NODE_EXTENSION #include <node.h> #endif #include "call-task.h" #include <module/core-modules/napa/call-context-wrap.h> #include <napa/log...
38.365079
128
0.695904
7ee9248ee9f8bd45268bfd3793b758401e95d653
1,892
cpp
C++
SimuVar/Is_Number.cpp
TheArquitect/SimuVar
b6f4965af938706f6de1497494362c4b5c87d01e
[ "BSD-2-Clause" ]
null
null
null
SimuVar/Is_Number.cpp
TheArquitect/SimuVar
b6f4965af938706f6de1497494362c4b5c87d01e
[ "BSD-2-Clause" ]
null
null
null
SimuVar/Is_Number.cpp
TheArquitect/SimuVar
b6f4965af938706f6de1497494362c4b5c87d01e
[ "BSD-2-Clause" ]
null
null
null
/** File : Is_Number.cpp Author : Menashe Rosemberg Created : 2019.02.19 Version: 20190219.1 Check if a string is a number Copyright (c) 2019 TheArquitect (Menashe Rosemberg) rosemberg@ymail.com Redistribution and use in source and binary forms, with or without modification...
44
94
0.708774
7eeb2627333c504966e2194063705b0f39a8d900
847
cpp
C++
RealTournament/source/Pickup.cpp
willcassella/RealTournament
70ed3c0d5cbb67938ec8f86eec7b4d98a26e25f3
[ "MIT" ]
null
null
null
RealTournament/source/Pickup.cpp
willcassella/RealTournament
70ed3c0d5cbb67938ec8f86eec7b4d98a26e25f3
[ "MIT" ]
null
null
null
RealTournament/source/Pickup.cpp
willcassella/RealTournament
70ed3c0d5cbb67938ec8f86eec7b4d98a26e25f3
[ "MIT" ]
null
null
null
// Pickup.cpp #include <Engine/World.h> #include "../include/RealTournament/Pickup.h" ////////////////////// /// Reflection /// BUILD_REFLECTION(real_tournament::Pickup); namespace real_tournament { /////////////////// /// Methods /// void Pickup::on_collision(Entity& entity, const CollisionData& /*data...
19.697674
73
0.62928
7eed663feab7bd786df2df95d386ddc4d2c7e025
820
cpp
C++
src/primitive.cpp
WilliamLewww/cuda_pbrt
d1136793025b7aa8cc2daf6da6ec19314684580b
[ "MIT" ]
null
null
null
src/primitive.cpp
WilliamLewww/cuda_pbrt
d1136793025b7aa8cc2daf6da6ec19314684580b
[ "MIT" ]
null
null
null
src/primitive.cpp
WilliamLewww/cuda_pbrt
d1136793025b7aa8cc2daf6da6ec19314684580b
[ "MIT" ]
null
null
null
#include "primitive.h" Bounds3 Primitive::worldBounds() {} bool Primitive::checkRayIntersectionPredicate(Ray* ray) {} bool Primitive::checkRayIntersection(Ray* ray, SurfaceInteraction* surfaceInteraction) {} GeometricPrimitive::GeometricPrimitive(Shape* shape) { this->shape = shape; } GeometricPrimitive::~Geometri...
25.625
97
0.767073
7ef3b326accd80455c869d530b44fecb228876a2
1,124
hpp
C++
src/Message.hpp
relaxtakenotes/xenos
24d19b683e85df54f56cd9a5b2c6416b86e1325d
[ "MIT" ]
4
2021-12-14T13:32:10.000Z
2022-03-08T23:14:58.000Z
src/Message.hpp
relaxtakenotes/xenos
24d19b683e85df54f56cd9a5b2c6416b86e1325d
[ "MIT" ]
1
2021-10-20T14:09:51.000Z
2021-10-20T14:09:51.000Z
src/Message.hpp
relaxtakenotes/xenos
24d19b683e85df54f56cd9a5b2c6416b86e1325d
[ "MIT" ]
null
null
null
#pragma once #include "stdafx.h" #include "Log.h" class Message { enum MsgType { Error, Warning, Info, Question, }; public: static void ShowError( HWND parent, const std::wstring& msg, const std::wstring& title = L"Error" ) { Show( msg, title, Error, parent...
22.938776
109
0.573843