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
2554a0d5f1baacbb8c6c594da4b0029ce60d8e26
2,542
cpp
C++
ThirdParty/Struck/src/Sampler.cpp
abhineet123/MTF
6cb45c88d924fb2659696c3375bd25c683802621
[ "BSD-3-Clause" ]
100
2016-12-11T00:34:06.000Z
2022-01-27T23:03:40.000Z
ThirdParty/Struck/src/Sampler.cpp
siqiyan/MTF
9a76388c907755448bb7223420fe74349130f636
[ "BSD-3-Clause" ]
21
2017-09-04T06:27:13.000Z
2021-07-14T19:07:23.000Z
ThirdParty/Struck/src/Sampler.cpp
siqiyan/MTF
9a76388c907755448bb7223420fe74349130f636
[ "BSD-3-Clause" ]
21
2017-02-19T02:12:11.000Z
2020-09-23T03:47:55.000Z
/* * Struck: Structured Output Tracking with Kernels * * Code to accompany the paper: * Struck: Structured Output Tracking with Kernels * Sam Hare, Amir Saffari, Philip H. S. Torr * International Conference on Computer Vision (ICCV), 2011 * * Copyright (C) 2011 Sam Hare, Oxford Brookes Universi...
27.630435
88
0.640047
abhineet123
2557b707320b1ac078aeb7a547c716231914c7a8
1,693
hpp
C++
include/PauseState.hpp
AgostonSzepessy/oxshans-battle
15d4cd5eb6375cca5e8e426fc9b8f70e74ca28b0
[ "MIT" ]
null
null
null
include/PauseState.hpp
AgostonSzepessy/oxshans-battle
15d4cd5eb6375cca5e8e426fc9b8f70e74ca28b0
[ "MIT" ]
null
null
null
include/PauseState.hpp
AgostonSzepessy/oxshans-battle
15d4cd5eb6375cca5e8e426fc9b8f70e74ca28b0
[ "MIT" ]
null
null
null
#pragma once #include <memory> #include <SFML/Graphics.hpp> #include <SFML/System.hpp> #include "GameState.hpp" #include "PlayState.hpp" #include "Background.hpp" /** * @brief The PauseState class This the pause menu. * The user can decide to resume, restart or quit. */ class PauseState : public GameState { pub...
25.651515
92
0.680449
AgostonSzepessy
255bea5fc8a3cb03a0e5a4d77e498ae23a4a307b
991
hpp
C++
scenes/inf585/06_skinning/src/animation.hpp
Lieunoir/inf585
41e8e52436f34d4a46425482ff953888bb8345bc
[ "MIT" ]
null
null
null
scenes/inf585/06_skinning/src/animation.hpp
Lieunoir/inf585
41e8e52436f34d4a46425482ff953888bb8345bc
[ "MIT" ]
null
null
null
scenes/inf585/06_skinning/src/animation.hpp
Lieunoir/inf585
41e8e52436f34d4a46425482ff953888bb8345bc
[ "MIT" ]
null
null
null
#pragma once #include "vcl/vcl.hpp" #include "skeleton.hpp" namespace vcl { enum Marine_Animations { IDLE, WALK, RUN, }; struct marine_animation_structure { bool transition = false; float transitionStart; Marine_Animations current_animation = IDLE; ...
30.96875
147
0.739657
Lieunoir
255bf262ed7427659800ab1396debc802f912f41
1,018
cpp
C++
src/game_object.cpp
SYNTAXDZ/simpleOpenGLGame
14f50824e9f43b6c421676856aa33b0cce053554
[ "MIT" ]
null
null
null
src/game_object.cpp
SYNTAXDZ/simpleOpenGLGame
14f50824e9f43b6c421676856aa33b0cce053554
[ "MIT" ]
null
null
null
src/game_object.cpp
SYNTAXDZ/simpleOpenGLGame
14f50824e9f43b6c421676856aa33b0cce053554
[ "MIT" ]
null
null
null
/******************************************************************* ** This code is part of Breakout. ** ** Breakout is free software: you can redistribute it and/or modify ** it under the terms of the CC BY 4.0 license as published by ** Creative Commons, either version 4 of the License, or (at your ** option) any la...
44.26087
151
0.585462
SYNTAXDZ
2560385ae097cd937e78ffb7e9ff23b9d0e28a0c
4,638
cpp
C++
Source/managementD3D.cpp
L0mion/Makes-a-Click
c7f53a53ea3a58da027ea5f00176352edb914718
[ "MIT" ]
1
2016-04-28T06:24:15.000Z
2016-04-28T06:24:15.000Z
Source/managementD3D.cpp
L0mion/Makes-a-Click
c7f53a53ea3a58da027ea5f00176352edb914718
[ "MIT" ]
null
null
null
Source/managementD3D.cpp
L0mion/Makes-a-Click
c7f53a53ea3a58da027ea5f00176352edb914718
[ "MIT" ]
null
null
null
#include "managementD3D.h" #include "utility.h" ManagementD3D::ManagementD3D() { swapChain_ = NULL; device_ = NULL; devcon_ = NULL; uavBackBuffer_ = NULL; rtvBackBuffer_ = NULL; dsvDepthBuffer_ = NULL; } ManagementD3D::~ManagementD3D() { SAFE_RELEASE(swapChain_); SAFE_RELEASE(device_); SAFE_RELEASE(devco...
24.15625
81
0.734368
L0mion
2562d879338199db4916c1ec79fa50f3fd9fdc37
1,755
cpp
C++
aidu_elevator/src/actions/moveoutelevator.cpp
MartienLagerweij/aidu
a9b6e5a61f20bd60a7773495ba254e1bded1d7a1
[ "MIT" ]
null
null
null
aidu_elevator/src/actions/moveoutelevator.cpp
MartienLagerweij/aidu
a9b6e5a61f20bd60a7773495ba254e1bded1d7a1
[ "MIT" ]
null
null
null
aidu_elevator/src/actions/moveoutelevator.cpp
MartienLagerweij/aidu
a9b6e5a61f20bd60a7773495ba254e1bded1d7a1
[ "MIT" ]
null
null
null
#include <ros/ros.h> #include <aidu_elevator/actions/moveoutelevator.h> #include <aidu_robotarm/robot_arm_positions.h> #include <aidu_vision/DistanceSensors.h> #include <sensor_msgs/JointState.h> #include <geometry_msgs/Twist.h> #include <math.h> using namespace aidu::elevator; MoveOutElevator::MoveOutElevator(ros::N...
26.590909
96
0.71396
MartienLagerweij
25632e571c62600c9572c258fa50ce252f18e186
3,034
cpp
C++
devmand/gateway/src/devmand/channels/cli/IoConfigurationBuilder.cpp
fannycchen/magma
b8ccc1c7437c555656988638482d3a8f458224e8
[ "BSD-3-Clause" ]
1
2020-06-05T09:01:40.000Z
2020-06-05T09:01:40.000Z
devmand/gateway/src/devmand/channels/cli/IoConfigurationBuilder.cpp
phirmware/magma
1b3e4533235293f754d7375eb421c968cc0b1856
[ "BSD-3-Clause" ]
null
null
null
devmand/gateway/src/devmand/channels/cli/IoConfigurationBuilder.cpp
phirmware/magma
1b3e4533235293f754d7375eb421c968cc0b1856
[ "BSD-3-Clause" ]
1
2020-01-14T14:28:23.000Z
2020-01-14T14:28:23.000Z
// Copyright (c) 2019-present, Facebook, Inc. // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. #define LOG_WITH_G...
33.711111
78
0.733355
fannycchen
256561aced4a948f2f5dc45c31d60250b094472a
499
hpp
C++
server/include/tds/protocol/receiver.hpp
JMazurkiewicz/TinDox
7f6c8e826683c875692fc97a3e89a4c5833dabf9
[ "MIT" ]
null
null
null
server/include/tds/protocol/receiver.hpp
JMazurkiewicz/TinDox
7f6c8e826683c875692fc97a3e89a4c5833dabf9
[ "MIT" ]
null
null
null
server/include/tds/protocol/receiver.hpp
JMazurkiewicz/TinDox
7f6c8e826683c875692fc97a3e89a4c5833dabf9
[ "MIT" ]
null
null
null
#pragma once #include "tds/ip/tcp_socket.hpp" #include <span> #include <vector> namespace tds::protocol { class Receiver { public: explicit Receiver(ip::TcpSocket& socket); Receiver(const Receiver&) = delete; Receiver& operator=(const Receiver&) = delete; std::span<const char...
19.192308
54
0.59519
JMazurkiewicz
2567794d604519aeeae1c19ebadc8bd1e57daf9e
2,842
hpp
C++
src/interface/stream.hpp
wuxun-zhang/mkl-dnn
00a239ad2c932b967234ffb528069800ffcc0334
[ "Apache-2.0" ]
null
null
null
src/interface/stream.hpp
wuxun-zhang/mkl-dnn
00a239ad2c932b967234ffb528069800ffcc0334
[ "Apache-2.0" ]
null
null
null
src/interface/stream.hpp
wuxun-zhang/mkl-dnn
00a239ad2c932b967234ffb528069800ffcc0334
[ "Apache-2.0" ]
null
null
null
/******************************************************************************* * Copyright 2020-2022 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
32.295455
80
0.671006
wuxun-zhang
256a9728d866c93330b0cb16e2912deb5aff872d
770
cpp
C++
examples/Example4/EventListener.cpp
hasaranga/RFC-Framework
9c1881d412db6f9f7670b910a0918a631208cfd1
[ "MIT" ]
9
2017-10-02T08:15:50.000Z
2021-08-09T21:29:46.000Z
examples/Example4/EventListener.cpp
hasaranga/RFC-Framework
9c1881d412db6f9f7670b910a0918a631208cfd1
[ "MIT" ]
1
2021-09-18T07:38:53.000Z
2021-09-26T12:11:48.000Z
examples/Example4/EventListener.cpp
hasaranga/RFC-Framework
9c1881d412db6f9f7670b910a0918a631208cfd1
[ "MIT" ]
8
2017-10-02T13:21:29.000Z
2021-07-30T09:35:31.000Z
#include "../../amalgamated/rfc_amalgamated.h" class MyWindow : public KFrame, public KButtonListener { protected: KButton btn1; public: MyWindow() { this->SetText(L"My Window"); this->Create(); btn1.SetPosition(10, 10); btn1.SetText(L"My Button"); btn1.SetListener(this); // set MyWindow class as butt...
16.041667
83
0.685714
hasaranga
256b27c22efe1506adcc2def5f60ca936113eb87
3,494
cpp
C++
sources/core/ecs/private/system_manager.cpp
suVrik/hooker.galore
616e2692d7afab24b70bfb6aa14ad780eb7c451d
[ "MIT" ]
4
2019-09-14T09:18:47.000Z
2022-01-29T02:47:00.000Z
sources/core/ecs/private/system_manager.cpp
suVrik/hooker.galore
616e2692d7afab24b70bfb6aa14ad780eb7c451d
[ "MIT" ]
null
null
null
sources/core/ecs/private/system_manager.cpp
suVrik/hooker.galore
616e2692d7afab24b70bfb6aa14ad780eb7c451d
[ "MIT" ]
1
2020-03-25T14:41:17.000Z
2020-03-25T14:41:17.000Z
#include "core/ecs/system_manager.h" #include "core/ecs/tags.h" #include <entt/core/hashed_string.hpp> #include <entt/meta/factory.hpp> #include <algorithm> namespace hg { std::vector<SystemManager::SystemDescriptor> SystemManager::m_systems[2]; void SystemManager::commit() { size_t current_tag_index = 0; ...
38.395604
112
0.604179
suVrik
257000e1ece5778c65cb48266b94130794cd584c
4,910
cpp
C++
test/coco/combix/error_test.cpp
agatan/coco
e19e74cf97d788b435351379296ea3ead901c576
[ "BSL-1.0" ]
1
2016-08-31T04:44:17.000Z
2016-08-31T04:44:17.000Z
test/coco/combix/error_test.cpp
agatan/coco
e19e74cf97d788b435351379296ea3ead901c576
[ "BSL-1.0" ]
null
null
null
test/coco/combix/error_test.cpp
agatan/coco
e19e74cf97d788b435351379296ea3ead901c576
[ "BSL-1.0" ]
null
null
null
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE expected #include <coco/combix/combinators.hpp> #include <coco/combix/iterator_stream.hpp> #include <coco/combix/primitives.hpp> #include <coco/combix/chars.hpp> #include <coco/combix/parser.hpp> #include <coco/combix/lazy_fun.hpp> #include <boost/test/unit_test.h...
30.496894
81
0.599593
agatan
25777280a133b64c960a2a9dd33c507a8b372261
6,727
cc
C++
src/frameset.cc
alexeden/realsense-node
a4060c8fdcc091d933fb4c895f04e72f44328e63
[ "MIT" ]
null
null
null
src/frameset.cc
alexeden/realsense-node
a4060c8fdcc091d933fb4c895f04e72f44328e63
[ "MIT" ]
6
2021-01-28T20:31:27.000Z
2022-03-25T18:59:04.000Z
src/frameset.cc
alexeden/realsense-node
a4060c8fdcc091d933fb4c895f04e72f44328e63
[ "MIT" ]
null
null
null
#ifndef FRAMESET_H #define FRAMESET_H #include "frame.cc" #include "stream_profile_extractor.cc" #include "utils.cc" #include <iostream> #include <librealsense2/hpp/rs_types.hpp> #include <napi.h> using namespace Napi; class RSFrameSet : public ObjectWrap<RSFrameSet> { public: static Object Init(Napi::Env env, Obj...
30.716895
114
0.699569
alexeden
257a2fd0791223044d153300389d80c6b355cb21
927
cpp
C++
tests/test_message_builder.cpp
pmakaruk/-Network-File-System
8fddd7d9c5d850f1e3b621481f21fe378b1e8a21
[ "MIT" ]
null
null
null
tests/test_message_builder.cpp
pmakaruk/-Network-File-System
8fddd7d9c5d850f1e3b621481f21fe378b1e8a21
[ "MIT" ]
null
null
null
tests/test_message_builder.cpp
pmakaruk/-Network-File-System
8fddd7d9c5d850f1e3b621481f21fe378b1e8a21
[ "MIT" ]
null
null
null
#include <iostream> #include <sstream> #include <cassert> #include "./utils.hpp" #include "../libraries/core/serializers.hpp" int main() { MessageBuilder builder; builder.writeMessageType(MessageType::CLOSE_REQUEST); builder.write((u_int8_t)2); builder.write((int32_t)0x12345678); builder.write((u_int32_t)...
26.485714
57
0.655879
pmakaruk
257ab07332ad18085d7c029ff8e302892107b215
7,730
cpp
C++
liblineside/test/boparraymashdatatests.cpp
freesurfer-rge/linesidecabinet
8944c67fa7d340aa792e3a6e681113a4676bfbad
[ "MIT" ]
null
null
null
liblineside/test/boparraymashdatatests.cpp
freesurfer-rge/linesidecabinet
8944c67fa7d340aa792e3a6e681113a4676bfbad
[ "MIT" ]
14
2019-11-17T14:46:25.000Z
2021-03-10T02:48:40.000Z
liblineside/test/boparraymashdatatests.cpp
freesurfer-rge/linesidecabinet
8944c67fa7d340aa792e3a6e681113a4676bfbad
[ "MIT" ]
null
null
null
#include <boost/test/unit_test.hpp> #include "lineside/boparraymashdata.hpp" #include "lineside/boparraymash.hpp" #include "lineside/linesideexceptions.hpp" #include "exceptionmessagecheck.hpp" #include "mockmanagerfixture.hpp" BOOST_AUTO_TEST_SUITE(BOPArrayMASHData) // --------------- BOOST_AUTO_TEST_SUITE(Extrac...
28.419118
122
0.713454
freesurfer-rge
257ea34d17379a52fafdae8621743f031af0493d
148
cpp
C++
src/Window.cpp
HadesD/vim-power-mode
b3d701545fec08c329d54441d22e8f9b92ebb4cf
[ "MIT" ]
8
2018-07-01T12:18:42.000Z
2022-01-30T01:59:31.000Z
src/Window.cpp
HadesD/vim-power-mode
b3d701545fec08c329d54441d22e8f9b92ebb4cf
[ "MIT" ]
1
2018-07-01T16:50:47.000Z
2018-07-02T13:15:39.000Z
src/Window.cpp
HadesD/vim-power-mode
b3d701545fec08c329d54441d22e8f9b92ebb4cf
[ "MIT" ]
null
null
null
#include "vpm/Window.hpp" namespace VPM { bool Window::m_isClosed = false; bool Window::getIsClosed() const { return m_isClosed; } }
11.384615
34
0.662162
HadesD
25844dd5c6a48e2c123a7deb672348f2eff8bb93
1,543
hpp
C++
src/WebVizConstants.hpp
UTNuclearRobotics/robofleet_client
36f0cd0d38f174ac29254e13ac058dcfcafd15ce
[ "MIT" ]
null
null
null
src/WebVizConstants.hpp
UTNuclearRobotics/robofleet_client
36f0cd0d38f174ac29254e13ac058dcfcafd15ce
[ "MIT" ]
1
2022-01-26T17:59:54.000Z
2022-01-26T17:59:54.000Z
src/WebVizConstants.hpp
UTNuclearRobotics/robofleet_client
36f0cd0d38f174ac29254e13ac058dcfcafd15ce
[ "MIT" ]
null
null
null
#include <string> /** * These constants are topic names with special significance to the web * visualizer. * */ namespace webviz_constants { /** * @brief (amrl_msgs/RobofleetStatus) Robofleet status information for listing * robot in webviz overview. */ static const std::string status_topic = "status"; /** * ...
25.716667
78
0.73882
UTNuclearRobotics
258579fc67f3a1ba684e9e943e1a4d05970da572
1,480
cpp
C++
dlls/ulkata.cpp
Laluka256/halflife-planckepoch
3ccfd783213c3ee88b9ed8204acdce01d40d5420
[ "Unlicense" ]
1
2021-12-16T19:29:18.000Z
2021-12-16T19:29:18.000Z
dlls/ulkata.cpp
Laluka256/halflife-planckepoch
3ccfd783213c3ee88b9ed8204acdce01d40d5420
[ "Unlicense" ]
1
2021-11-29T18:04:51.000Z
2021-11-29T18:04:51.000Z
dlls/ulkata.cpp
Laluka256/halflife-planckepoch
3ccfd783213c3ee88b9ed8204acdce01d40d5420
[ "Unlicense" ]
null
null
null
#include "CBarney.h" class CUlkata : public CBarney { void Spawn(); void Precache(); int Classify(); }; LINK_ENTITY_TO_CLASS(monster_ulkata, CUlkata); void CUlkata::Spawn() { Precache(); SET_MODEL(ENT(pev), "models/ulkata.mdl"); UTIL_SetSize(pev, VEC_HUMAN_HULL_MIN, VEC_HUMAN_HULL_MAX); pev->solid = SOLID_...
23.125
113
0.741892
Laluka256
2586974c2338a596603666d4ad6c31a6479d3cfd
3,190
cc
C++
P2/src/bbseq.cc
romanarranz/PPR
6e5073cabbc084d07972afe45c2983e20082f1fa
[ "MIT" ]
3
2018-03-09T09:54:57.000Z
2021-08-22T02:46:35.000Z
P2/src/bbseq.cc
romanarranz/PPR
6e5073cabbc084d07972afe45c2983e20082f1fa
[ "MIT" ]
7
2016-04-23T19:43:40.000Z
2016-06-03T08:13:29.000Z
P2/src/bbseq.cc
romanarranz/PPR
6e5073cabbc084d07972afe45c2983e20082f1fa
[ "MIT" ]
1
2021-08-08T03:13:32.000Z
2021-08-08T03:13:32.000Z
/* ******************************************************************** */ /* Algoritmo Branch-And-Bound Secuencial */ /* ******************************************************************** */ #include <cstdlib> #include <cstdio> #include <iostream> #include <fstream> #include <st...
23.80597
76
0.532602
romanarranz
2586f4a0c4c6794bbcf64c3236ec408605e6c6a0
15,878
cxx
C++
PWMTest/PWMTest.cxx
RobertPHeller/RPi-RRCircuits
19aff23e20eebdbd028c0407d68eef77cc6ee0ec
[ "CC-BY-4.0" ]
10
2018-09-04T02:12:39.000Z
2022-03-17T20:29:32.000Z
PWMTest/PWMTest.cxx
RobertPHeller/RPi-RRCircuits
19aff23e20eebdbd028c0407d68eef77cc6ee0ec
[ "CC-BY-4.0" ]
null
null
null
PWMTest/PWMTest.cxx
RobertPHeller/RPi-RRCircuits
19aff23e20eebdbd028c0407d68eef77cc6ee0ec
[ "CC-BY-4.0" ]
1
2018-12-26T00:32:27.000Z
2018-12-26T00:32:27.000Z
// -!- C++ -!- ////////////////////////////////////////////////////////////// // // System : // Module : // Object Name : $RCSfile$ // Revision : $Revision$ // Date : $Date$ // Author : $Author$ // Created By : Robert Heller // Created : Sun Feb 17 15:35:50 2019 /...
46.7
108
0.609963
RobertPHeller
2588ecbf5ba8af9b5faadfeb107428a9334ae03a
4,036
cpp
C++
hardware/digistump/avr/libraries/LPD8806/LPD8806.cpp
emptyland/arduino
278cf1189401ba2bcb2d4125e42ac338c20ee4c8
[ "BSD-3-Clause" ]
1
2021-04-10T10:01:06.000Z
2021-04-10T10:01:06.000Z
hardware/digistump/avr/libraries/LPD8806/LPD8806.cpp
emptyland/arduino
278cf1189401ba2bcb2d4125e42ac338c20ee4c8
[ "BSD-3-Clause" ]
6
2020-06-04T06:04:39.000Z
2021-05-02T17:09:15.000Z
arduino/portable/packages/digistump/hardware/avr/1.6.7/libraries/LPD8806/LPD8806.cpp
darrintw/ardublockly-tw
b9c29bbe52c77a7bec14ae69a5a7365c9e4ab86e
[ "Apache-2.0" ]
3
2021-04-10T10:01:08.000Z
2021-09-02T00:14:31.000Z
#include "LPD8806.h" // Arduino library to control LPD8806-based RGB LED Strips // (c) Adafruit industries // MIT license /*****************************************************************************/ // Constructor for use with arbitrary clock/data pins: LPD8806::LPD8806(uint16_t n, uint8_t dpin, uint8_t cpin) { ...
32.288
79
0.625867
emptyland
258932e9f96ae85ee617f4c40c1f163bf0a461e9
353
cpp
C++
0812_largest_triangle_area.cpp
fxshan/LeetCode
a54bbe22bc335dcb3c7efffcc34357cab7641492
[ "Apache-2.0" ]
2
2020-06-04T13:20:20.000Z
2020-06-04T14:49:10.000Z
0812_largest_triangle_area.cpp
fxshan/LeetCode
a54bbe22bc335dcb3c7efffcc34357cab7641492
[ "Apache-2.0" ]
null
null
null
0812_largest_triangle_area.cpp
fxshan/LeetCode
a54bbe22bc335dcb3c7efffcc34357cab7641492
[ "Apache-2.0" ]
null
null
null
class Solution { public: double largestTriangleArea(vector<vector<int>>& points) { double res = 0; for (vector i : points) for (vector j : points) for (vector k : points) res = max(res, 0.5 * (i[0] * (j[1] - k[1]) + j[0] * (k[1] - i[1]) + k[0] * (i[1] -...
27.153846
77
0.456091
fxshan
258aaeff7d847467639165d02ba07830f5290c63
861
hpp
C++
drape_frontend/read_mwm_task.hpp
kudlav/organicmaps
390236365749e0525b9229684132c2888d11369d
[ "Apache-2.0" ]
4,879
2015-09-30T10:56:36.000Z
2022-03-31T18:43:03.000Z
drape_frontend/read_mwm_task.hpp
mbrukman/omim
d22fe2b6e0beee697f096e931df97a64f9db9dc1
[ "Apache-2.0" ]
7,549
2015-09-30T10:52:53.000Z
2022-03-31T22:04:22.000Z
drape_frontend/read_mwm_task.hpp
mbrukman/omim
d22fe2b6e0beee697f096e931df97a64f9db9dc1
[ "Apache-2.0" ]
1,493
2015-09-30T10:43:06.000Z
2022-03-21T09:16:49.000Z
#pragma once #include "drape_frontend/tile_info.hpp" #include "base/thread.hpp" #include <memory> namespace df { class ReadMWMTask : public threads::IRoutine { public: explicit ReadMWMTask(MapDataProvider & model); void Do() override; void Init(std::shared_ptr<TileInfo> const & tileInfo); void Reset() ove...
17.22
58
0.721254
kudlav
258f0019f7566eaf98860fb8aa6a8a20a2223140
529
hpp
C++
Siv3D/include/Siv3D/FileAction.hpp
emadurandal/OpenSiv3D
2c7a77526be7bb8669a223066210337d74bdc9c6
[ "MIT" ]
709
2016-03-19T07:55:58.000Z
2022-03-31T08:02:22.000Z
Siv3D/include/Siv3D/FileAction.hpp
emadurandal/OpenSiv3D
2c7a77526be7bb8669a223066210337d74bdc9c6
[ "MIT" ]
415
2017-05-21T05:05:02.000Z
2022-03-29T16:08:27.000Z
Siv3D/include/Siv3D/FileAction.hpp
emadurandal/OpenSiv3D
2c7a77526be7bb8669a223066210337d74bdc9c6
[ "MIT" ]
123
2016-03-19T12:47:08.000Z
2022-03-25T03:47:51.000Z
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 Ryo Suzuki // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "Common.hpp" namespac...
16.030303
50
0.52552
emadurandal
2590e40fb962694ad4e013e627025acdfecb9ce0
5,906
cpp
C++
podofo-0.9.6/test/unit/FontTest.cpp
zia95/pdf-toolkit-console-
369d73f66f7d4c74a252e83d200acbb792a6b8d5
[ "MIT" ]
1
2020-12-29T07:37:14.000Z
2020-12-29T07:37:14.000Z
podofo-0.9.6/test/unit/FontTest.cpp
zia95/pdf-toolkit-console-
369d73f66f7d4c74a252e83d200acbb792a6b8d5
[ "MIT" ]
null
null
null
podofo-0.9.6/test/unit/FontTest.cpp
zia95/pdf-toolkit-console-
369d73f66f7d4c74a252e83d200acbb792a6b8d5
[ "MIT" ]
null
null
null
/*************************************************************************** * Copyright (C) 2009 by Dominik Seichter * * domseichter@web.de * * * * This pr...
33.179775
115
0.526752
zia95
25977b810b0f80b9cb060e17cd3ffb1a385e5c16
1,292
cpp
C++
libs/pika/execution/tests/regressions/split_continuation_clear.cpp
pika-org/pika
c80f542b2432a7f108fcfba31a5fe5073ad2b3e1
[ "BSL-1.0" ]
13
2022-01-17T12:01:48.000Z
2022-03-16T10:03:14.000Z
libs/pika/execution/tests/regressions/split_continuation_clear.cpp
pika-org/pika
c80f542b2432a7f108fcfba31a5fe5073ad2b3e1
[ "BSL-1.0" ]
163
2022-01-17T17:36:45.000Z
2022-03-31T17:42:57.000Z
libs/pika/execution/tests/regressions/split_continuation_clear.cpp
pika-org/pika
c80f542b2432a7f108fcfba31a5fe5073ad2b3e1
[ "BSL-1.0" ]
4
2022-01-19T08:44:22.000Z
2022-01-31T23:16:21.000Z
// Copyright (c) 2022 ETH Zurich // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // This test reproduces a segfault in the split sender adaptor which happens if // the con...
28.711111
80
0.682663
pika-org
2599ad10f3991d5cd7850beafcc9204547252aec
1,089
cpp
C++
problemsets/UVA/UVA836.cpp
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/UVA/UVA836.cpp
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/UVA/UVA836.cpp
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
/** * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * */ #include <cstdio> #include <cstdlib> #include <cstring> #include <cctype> #include <cmath> #include <string> #include <algorithm> #include <sstream> #include <map> #include <set> #include <queue> #include <numeric> using namespace ...
19.8
67
0.399449
juarezpaulino
259a92c669b2ad7330ff4a4a3b05585f9fe62d7a
421
cpp
C++
Engine/Samples/Core/Math/main.cpp
ZenEngine3D/ZenEngine
42bcd06f743eb1381a587c9671de67e24cf72316
[ "MIT" ]
1
2018-10-12T19:10:59.000Z
2018-10-12T19:10:59.000Z
Engine/Samples/Core/Math/main.cpp
ZenEngine3D/ZenEngine
42bcd06f743eb1381a587c9671de67e24cf72316
[ "MIT" ]
null
null
null
Engine/Samples/Core/Math/main.cpp
ZenEngine3D/ZenEngine
42bcd06f743eb1381a587c9671de67e24cf72316
[ "MIT" ]
1
2019-03-09T02:12:31.000Z
2019-03-09T02:12:31.000Z
#include "zenEngine.h" namespace sample { extern void SampleVector(); class SampleBaseMath : public zenSys::zSampleEngineInstance { public: virtual const char* GetAppName()const { return "Sample Math"; } virtual void Update() { SampleVector(); SetDone(); } }; } int main(int argc, char * con...
15.592593
60
0.68171
ZenEngine3D
259b417714e466f713cae90869cfb8d203e85878
288
cpp
C++
CodeChef/Begginer-Problems/SMPAIR.cpp
annukamat/My-Competitive-Journey
adb13a5723483cde13e5f3859b3a7ad840b86c97
[ "MIT" ]
7
2018-11-08T11:39:27.000Z
2020-09-10T17:50:57.000Z
CodeChef/Begginer-Problems/SMPAIR.cpp
annukamat/My-Competitive-Journey
adb13a5723483cde13e5f3859b3a7ad840b86c97
[ "MIT" ]
null
null
null
CodeChef/Begginer-Problems/SMPAIR.cpp
annukamat/My-Competitive-Journey
adb13a5723483cde13e5f3859b3a7ad840b86c97
[ "MIT" ]
2
2019-09-16T14:34:03.000Z
2019-10-12T19:24:00.000Z
#include <bits/stdc++.h> using namespace std; int main(){ long int t; vector<long int> vals(100000); long int n, x; cin>>t; while(t--){ cin>> n; for(int i=0;i<n; i++) cin>>x; vals.push_back(x); } sort(vals.begin(), vals+n); }
16
34
0.489583
annukamat
259de4d152a4f89a607a1d66209fb8fb75e69105
1,393
hpp
C++
src/color/hsi/get/gray.hpp
3l0w/color
e42d0933b6b88564807bcd5f49e9c7f66e24990a
[ "Apache-2.0" ]
120
2015-12-31T22:30:14.000Z
2022-03-29T15:08:01.000Z
src/color/hsi/get/gray.hpp
3l0w/color
e42d0933b6b88564807bcd5f49e9c7f66e24990a
[ "Apache-2.0" ]
6
2016-08-22T02:14:56.000Z
2021-11-06T22:39:52.000Z
src/color/hsi/get/gray.hpp
3l0w/color
e42d0933b6b88564807bcd5f49e9c7f66e24990a
[ "Apache-2.0" ]
23
2016-02-03T01:56:26.000Z
2021-09-28T16:36:27.000Z
#ifndef color_hsi_get_gray #define color_hsi_get_gray // ::color::get::gray( c ) #include "../../gray/place/place.hpp" #include "../../gray/akin/hsi.hpp" #include "../../gray/trait/component.hpp" #include "../category.hpp" #include "../../_internal/normalize.hpp" #include "../../_internal/diverse.hpp" #include "../...
30.282609
132
0.656856
3l0w
259e79dc8c56138e5a173d30655bd280e724de4f
3,479
cpp
C++
test/test_free_functions.cpp
jb--/luaponte
06bfe551bce23e411e75895797b8bb84bb662ed2
[ "BSL-1.0" ]
3
2015-08-30T10:02:10.000Z
2018-08-27T06:54:44.000Z
test/test_free_functions.cpp
halmd-org/luaponte
165328485954a51524a0b1aec27518861c6be719
[ "BSL-1.0" ]
null
null
null
test/test_free_functions.cpp
halmd-org/luaponte
165328485954a51524a0b1aec27518861c6be719
[ "BSL-1.0" ]
null
null
null
// Luaponte library // Copyright (c) 2011-2012 Peter Colberg // Luaponte is based on Luabind, a library, inspired by and similar to // Boost.Python, that helps you create bindings between C++ and Lua, // Copyright (c) 2003-2010 Daniel Wallin and Arvid Norberg. // Use, modification and distribution is subject to the ...
23.193333
122
0.616556
jb--
259fbcf71e33fd6166fdebc6cfb7ca4a5337cb97
596
cpp
C++
GraphicsToolsModule/Objects/gtmaterialparametervector3f.cpp
HowCanidothis-zz/DevLib
d3d7f4ef7b2b3f1c9559ca6bd56743e5aeff06ee
[ "MIT" ]
null
null
null
GraphicsToolsModule/Objects/gtmaterialparametervector3f.cpp
HowCanidothis-zz/DevLib
d3d7f4ef7b2b3f1c9559ca6bd56743e5aeff06ee
[ "MIT" ]
null
null
null
GraphicsToolsModule/Objects/gtmaterialparametervector3f.cpp
HowCanidothis-zz/DevLib
d3d7f4ef7b2b3f1c9559ca6bd56743e5aeff06ee
[ "MIT" ]
1
2020-07-27T02:23:38.000Z
2020-07-27T02:23:38.000Z
#include "gtmaterialparametervector3f.h" #include <QOpenGLShaderProgram> #include "ResourcesModule/resourcessystem.h" #include "../internal.hpp" GtMaterialParameterVector3F::GtMaterialParameterVector3F(const QString& name, const QString& resource) : GtMaterialParameterBase(name, resource) {} GtMaterialParameter...
31.368421
102
0.771812
HowCanidothis-zz
25a65c573b1d9e09046be77976bf90321d8b36d9
408
cpp
C++
10783.cpp
shaonsani/UVA_Solving
ee916a2938ea81b3676baf4c8150b1b42c9ab5a5
[ "MIT" ]
null
null
null
10783.cpp
shaonsani/UVA_Solving
ee916a2938ea81b3676baf4c8150b1b42c9ab5a5
[ "MIT" ]
null
null
null
10783.cpp
shaonsani/UVA_Solving
ee916a2938ea81b3676baf4c8150b1b42c9ab5a5
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> #include<iostream> using namespace std; int main() { int t,a,b,ca=1; cin>>t; while(t!=0) { int sum=0; cin>>a; cin>>b; for(int i=a; i<=b; i++) { if(i%2==1) { sum+=i; } } ...
12.75
43
0.335784
shaonsani
25a7341141377dfd268a9ba521547ead79c8b139
10,744
hpp
C++
geometry/include/pcl/geometry/impl/face.hpp
zhangxaochen/CuFusion
e8bab7a366b1f2c85a80b95093d195d9f0774c11
[ "MIT" ]
52
2017-09-05T13:31:44.000Z
2022-03-14T08:48:29.000Z
geometry/include/pcl/geometry/impl/face.hpp
GucciPrada/CuFusion
522920bcf316d1ddf9732fc71fa457174168d2fb
[ "MIT" ]
4
2018-05-17T22:45:35.000Z
2020-02-01T21:46:42.000Z
geometry/include/pcl/geometry/impl/face.hpp
GucciPrada/CuFusion
522920bcf316d1ddf9732fc71fa457174168d2fb
[ "MIT" ]
21
2015-07-27T13:00:36.000Z
2022-01-17T08:18:41.000Z
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2009-2012, Willow Garage, Inc. * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification...
34.996743
123
0.53239
zhangxaochen
25ad7e1add2861ae364335aea992758eca1d85aa
2,542
hpp
C++
includes/adventofcode.hpp
mbitokhov/AdventOfCode2017
a716822b2906580b03b7c5cda8e7a696961f4c40
[ "Unlicense" ]
null
null
null
includes/adventofcode.hpp
mbitokhov/AdventOfCode2017
a716822b2906580b03b7c5cda8e7a696961f4c40
[ "Unlicense" ]
null
null
null
includes/adventofcode.hpp
mbitokhov/AdventOfCode2017
a716822b2906580b03b7c5cda8e7a696961f4c40
[ "Unlicense" ]
null
null
null
#pragma once #include <vector> #include <cstring> #include <string> constexpr long day1p1(const char input[], const size_t &index=0); constexpr long day1p2(const char input[], const size_t &index=0); long day2p1(const std::vector<std::vector<int>>&); long day2p2(const std::vector<std::vector<int>>&); long day3p1(con...
30.626506
81
0.579858
mbitokhov
25ad7edcabee4e006d328dc7213cfcfff80fef4e
31,886
cpp
C++
multimedia/wmdm_sr1/mdsp/mspmspsv/svchost/pmspservice.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
multimedia/wmdm_sr1/mdsp/mspmspsv/svchost/pmspservice.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
multimedia/wmdm_sr1/mdsp/mspmspsv/svchost/pmspservice.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
// PMSPservice.cpp #include "NTServApp.h" #include "PMSPservice.h" #include "svchost.h" #define BUFSIZE 256 #define PIPE_TIMEOUT 2000 #define NUM_BYTES_PER_READ_REQUEST (sizeof(MEDIA_SERIAL_NUMBER_DATA)) #define INACTIVE_TIMEOUT_SHUTDOWN (5*60*1000) // in millisec -- 5 minutes #include "seriali...
38.232614
134
0.535564
npocmaka
25af18af72584b900b02d6a5ef4ad2982c61e0d0
564
hh
C++
spl/include/ast/ext_dec_list.hh
Alan052918/CS323-Compilers
d2591dbf0e8b3eb87ab507cb8633c12d587fee99
[ "MIT" ]
2
2020-09-09T03:33:10.000Z
2020-11-29T15:14:01.000Z
spl/include/ast/ext_dec_list.hh
Alan052918/CS323-Compilers
d2591dbf0e8b3eb87ab507cb8633c12d587fee99
[ "MIT" ]
null
null
null
spl/include/ast/ext_dec_list.hh
Alan052918/CS323-Compilers
d2591dbf0e8b3eb87ab507cb8633c12d587fee99
[ "MIT" ]
1
2020-09-09T03:35:14.000Z
2020-09-09T03:35:14.000Z
#ifndef EXT_DEC_LIST_H #define EXT_DEC_LIST_H #include "ast.hh" #include "../common.hh" #include "../enums.hh" #include "../symtable.hh" #include "../typedef.hh" class VarDec; class ExtDecList : public NonterminalNode { public: // nonterminal member variables std::vector<VarDec *> node_list; // data member v...
20.888889
67
0.703901
Alan052918
25b1d4fc8bb3fe881a34d29ce566da161761ccd9
351
cpp
C++
src/apps/S3DAnalyzer/rendering/entity/stereo/anaglyphrectangleentity.cpp
hugbed/OpenS3D
4ffad16f9b0973404b59eb1424cc45f68754fe12
[ "BSD-3-Clause" ]
8
2017-04-16T16:38:15.000Z
2020-04-20T03:23:15.000Z
src/apps/S3DAnalyzer/rendering/entity/stereo/anaglyphrectangleentity.cpp
hugbed/OpenS3D
4ffad16f9b0973404b59eb1424cc45f68754fe12
[ "BSD-3-Clause" ]
40
2017-04-12T17:24:44.000Z
2017-12-21T18:41:23.000Z
src/apps/S3DAnalyzer/rendering/entity/stereo/anaglyphrectangleentity.cpp
hugbed/OpenS3D
4ffad16f9b0973404b59eb1424cc45f68754fe12
[ "BSD-3-Clause" ]
6
2017-07-13T21:51:09.000Z
2021-05-18T16:22:03.000Z
#include "anaglyphrectangleentity.h" AnaglyphRectangleEntity::AnaglyphRectangleEntity() : RectangleEntity() {} void AnaglyphRectangleEntity::addShaders() { m_program->addShaderFromSourceFile(QOpenGLShader::Vertex, ":/shaders/stereo/overlap.vert"); m_program->addShaderFromSourceFile(QOpenGLShader::Fragment, ":/sha...
39
96
0.803419
hugbed
25b5f7f721e45e2291d58fd3e0d534790183be7d
1,855
cpp
C++
Utils/tetvtk2mesh/tetvtk2mesh.cpp
msraig/CE-PolyCube
e46aff6e0594b711735118bfa902a91bc3d392ca
[ "MIT" ]
19
2020-08-13T05:15:09.000Z
2022-03-31T14:51:29.000Z
Utils/tetvtk2mesh/tetvtk2mesh.cpp
xh-liu-tech/CE-PolyCube
86d4ed0023215307116b6b3245e2dbd82907cbb8
[ "MIT" ]
2
2020-09-08T07:03:04.000Z
2021-08-04T05:43:27.000Z
Utils/tetvtk2mesh/tetvtk2mesh.cpp
xh-liu-tech/CE-PolyCube
86d4ed0023215307116b6b3245e2dbd82907cbb8
[ "MIT" ]
10
2020-08-06T02:37:46.000Z
2021-07-01T09:12:06.000Z
#include <iostream> #include <fstream> #include <string> #include <vector> //hex to vtk int main(int argc, char** argv) { //input must be two file name' //tet version if (argc != 3) { std::cout << "input format: " << "input.vtk output.mesh" << std::endl; } std::ifstream inputfile(argv[1]); std::ofstream out...
19.322917
90
0.566038
msraig
25bfd0677c71cf52215b34f200bf2f7c4a4f5ba5
796
cpp
C++
src/mgos_homie.cpp
cslauritsen/mgos-garage
934bc266d7486be320fec806dd265c655af76d56
[ "MIT" ]
null
null
null
src/mgos_homie.cpp
cslauritsen/mgos-garage
934bc266d7486be320fec806dd265c655af76d56
[ "MIT" ]
null
null
null
src/mgos_homie.cpp
cslauritsen/mgos-garage
934bc266d7486be320fec806dd265c655af76d56
[ "MIT" ]
null
null
null
#include "all.h" void homie::Device::computePsk() { int rc = 0; unsigned char output[64]; int is384 = 0; rc = mbedtls_sha512_ret((const unsigned char *)this->topicBase.c_str(), this->topicBase.length(), output, is384); if (0 == rc) { char *hex = (char *)calloc(1, sizeof(output)...
28.428571
78
0.556533
cslauritsen
25bfe6ccebf748994e3fa1ba664e9062153d7e8f
3,453
cpp
C++
src/language_dialog.cpp
sweetkristas/anura
5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd
[ "CC0-1.0" ]
null
null
null
src/language_dialog.cpp
sweetkristas/anura
5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd
[ "CC0-1.0" ]
null
null
null
src/language_dialog.cpp
sweetkristas/anura
5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd
[ "CC0-1.0" ]
null
null
null
#include <boost/bind.hpp> #include "button.hpp" #include "language_dialog.hpp" #include "dialog.hpp" #include "draw_scene.hpp" #include "graphical_font_label.hpp" #include "i18n.hpp" #include "level.hpp" #include "preferences.hpp" #include "json_parser.hpp" #include "foreach.hpp" namespace { void end_dialog(gui::dia...
31.108108
203
0.742832
sweetkristas
25c0733690a2dbbf47e53f0a74d66be3f8a5fba7
5,377
hpp
C++
cxxreflect/reflection/module_locator.hpp
dbremner/cxxreflect
bbf1649b00755f8463e4a73b28dec4cd5b609493
[ "BSL-1.0" ]
5
2019-03-21T14:52:16.000Z
2021-02-20T13:14:25.000Z
cxxreflect/reflection/module_locator.hpp
dbremner/cxxreflect
bbf1649b00755f8463e4a73b28dec4cd5b609493
[ "BSL-1.0" ]
null
null
null
cxxreflect/reflection/module_locator.hpp
dbremner/cxxreflect
bbf1649b00755f8463e4a73b28dec4cd5b609493
[ "BSL-1.0" ]
2
2017-02-17T23:24:23.000Z
2021-07-06T18:10:35.000Z
// Copyright James P. McNellis 2011 - 2013. // // Distributed under the Boost Software License, Version 1.0. // // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef CX...
29.064865
118
0.616143
dbremner
25c0b0af1a83afb1285a1ffdd396ff228a57fe67
24,253
cpp
C++
estl/containers/unittest/vector_s_unittest.cpp
mlutken/playground
88b0fc457ae8f028b9a1f8f959b8361a645468be
[ "Unlicense" ]
null
null
null
estl/containers/unittest/vector_s_unittest.cpp
mlutken/playground
88b0fc457ae8f028b9a1f8f959b8361a645468be
[ "Unlicense" ]
null
null
null
estl/containers/unittest/vector_s_unittest.cpp
mlutken/playground
88b0fc457ae8f028b9a1f8f959b8361a645468be
[ "Unlicense" ]
null
null
null
#include <stdexcept> #include <gtest/gtest.h> #include <gmock/gmock.h> #include "../vector_s.hpp" #include <vector> using namespace testing; using namespace estl; class VectorSUnitTest : public testing::Test { public: VectorSUnitTest() = default; ~VectorSUnitTest() override = default; void SetUp() ove...
27.06808
91
0.57564
mlutken
25c1dcf30031bb224d23644a9edb4afa00324808
1,255
cpp
C++
noise.cpp
ursinus-cs174-s2022/HW2_Steganography
af8ad24dbb6be42b5c4cb9f46b66cd8abfc3d3fe
[ "Apache-2.0" ]
null
null
null
noise.cpp
ursinus-cs174-s2022/HW2_Steganography
af8ad24dbb6be42b5c4cb9f46b66cd8abfc3d3fe
[ "Apache-2.0" ]
null
null
null
noise.cpp
ursinus-cs174-s2022/HW2_Steganography
af8ad24dbb6be42b5c4cb9f46b66cd8abfc3d3fe
[ "Apache-2.0" ]
null
null
null
/** * @file grayscale.cpp * @author Chris Tralie * * Purpose: To add a certain amount of noise to an image * */ #include <stdio.h> #include <stdlib.h> #include <string> #include <sstream> #include "simplecanvas/SimpleCanvas.h" #include "randutils.h" using namespace std; /** * @brief Add noise to every chann...
22.818182
64
0.495618
ursinus-cs174-s2022
5adeeb047ecd3ce367a32b84c6f8778bde34cb8d
1,335
cpp
C++
boboleetcode/Play-Leetcode-master/0672-Bulb-Switcher-II/cpp-0672/main2.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
2
2019-03-20T17:05:59.000Z
2019-10-15T07:56:45.000Z
boboleetcode/Play-Leetcode-master/0672-Bulb-Switcher-II/cpp-0672/main2.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
6
2019-12-04T06:08:32.000Z
2021-05-10T20:22:47.000Z
boboleetcode/Play-Leetcode-master/0672-Bulb-Switcher-II/cpp-0672/main2.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
null
null
null
/// Source : https://leetcode.com/problems/bulb-switcher-ii/description/ /// Author : liuyubobobo /// Time : 2017-12-02 #include <iostream> #include <unordered_set> using namespace std; /// For further analysis, we can see the first three lights uniquely determine the rest of the sequence /// Assume the four opera...
27.244898
103
0.538577
mcuallen
5ae569aec9055db273a7666f15859ef8ee7f7031
544
cpp
C++
Sorting Algorithms/insertionSort.cpp
Raghav1806/Data-Structures-CSL-201-
2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177
[ "MIT" ]
null
null
null
Sorting Algorithms/insertionSort.cpp
Raghav1806/Data-Structures-CSL-201-
2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177
[ "MIT" ]
null
null
null
Sorting Algorithms/insertionSort.cpp
Raghav1806/Data-Structures-CSL-201-
2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177
[ "MIT" ]
null
null
null
// insertion sort algorithm #include <iostream> using namespace std; int main(){ int size, i, j, curr; cout << "Enter the size of array to be sorted\n"; cin >> size; int A[size]; cout << "Enter the elements of array\n"; for(i = 0; i < size; i++) cin >> A[i]; for(i = 0; i < size - 1; i++){ j = i + 1; ...
16
50
0.483456
Raghav1806
5ae97766fa4dcf353527302a99c555db13297345
6,580
hpp
C++
include/mxx/type_traits.hpp
asrivast28/mxx
75a4a7b8b04922f070991f1d9a4351e339a0d848
[ "Apache-2.0" ]
76
2015-09-28T22:06:07.000Z
2022-03-25T17:47:34.000Z
include/mxx/type_traits.hpp
asrivast28/mxx
75a4a7b8b04922f070991f1d9a4351e339a0d848
[ "Apache-2.0" ]
23
2015-10-29T17:35:51.000Z
2021-09-07T09:56:56.000Z
include/mxx/type_traits.hpp
asrivast28/mxx
75a4a7b8b04922f070991f1d9a4351e339a0d848
[ "Apache-2.0" ]
20
2015-10-29T17:18:01.000Z
2021-05-12T16:41:20.000Z
#ifndef MXX_TYPE_TRAITS #define MXX_TYPE_TRAITS #include <type_traits> #include <vector> #include <string> namespace mxx { // source for testing if member functions are available: http://stackoverflow.com/a/16824239/4639394 #define MXX_DEFINE_HAS_MEMBER(member) \ template<typename, typename T> \ struct has_member_ #...
35.956284
106
0.670365
asrivast28
5aea383e89d1bf70f266b1ec1b9d000edd891f76
6,986
cpp
C++
wled00/Effect/snowflake/StarBurst.cpp
mdraper81/WLED
408696ef02f7b2dd66300a6a2ddb67a74d037b88
[ "MIT" ]
null
null
null
wled00/Effect/snowflake/StarBurst.cpp
mdraper81/WLED
408696ef02f7b2dd66300a6a2ddb67a74d037b88
[ "MIT" ]
null
null
null
wled00/Effect/snowflake/StarBurst.cpp
mdraper81/WLED
408696ef02f7b2dd66300a6a2ddb67a74d037b88
[ "MIT" ]
null
null
null
#include "StarBurst.h" namespace Effect { namespace Snowflake { /* ** ============================================================================ ** Constructor ** ============================================================================ */ StarBurst::StarBurst(NeoPixelWrapper* pixelWrapper, Data* effectD...
38.174863
110
0.577584
mdraper81
5aebf0364bd5cea46e2b0c66afdcb8edb69e3c2a
4,374
cpp
C++
leetcode/37-permutation.cpp
Moonshile/MyAlgorithmCandy
e1ab006a5abe7d2749ae564ad2bffc4a628ed31b
[ "Apache-2.0" ]
2
2016-11-26T02:56:35.000Z
2019-06-17T04:09:02.000Z
leetcode/37-permutation.cpp
Moonshile/MyAlgorithmCandy
e1ab006a5abe7d2749ae564ad2bffc4a628ed31b
[ "Apache-2.0" ]
null
null
null
leetcode/37-permutation.cpp
Moonshile/MyAlgorithmCandy
e1ab006a5abe7d2749ae564ad2bffc4a628ed31b
[ "Apache-2.0" ]
3
2016-07-18T14:13:20.000Z
2019-06-17T04:08:32.000Z
class Solution { private: static inline int row(int i, int v) { return (i<<4) | v; } static inline int col(int j, int v) { return 0x100 | (j<<4) | v; } static inline int grid(int i, int j, int v) { return 0x200 | ((i/3*3 + j/3)<<4) | v; } static inline bool isBusyCell(int i, int j, int v, vector<bool> ...
37.706897
134
0.405121
Moonshile
5aecb24cb91e7cbab905d3f4d806d586dd28db20
102,616
cc
C++
src/utils/opp_lcg32_seedtool.cc
eniac/parallel-inet-omnet
810ed40aecac89efbd0b6a05ee10f44a09417178
[ "Xnet", "X11" ]
15
2021-08-20T08:10:01.000Z
2022-03-24T21:24:50.000Z
src/utils/opp_lcg32_seedtool.cc
eniac/parallel-inet-omnet
810ed40aecac89efbd0b6a05ee10f44a09417178
[ "Xnet", "X11" ]
1
2022-03-30T09:03:39.000Z
2022-03-30T09:03:39.000Z
src/utils/opp_lcg32_seedtool.cc
eniac/parallel-inet-omnet
810ed40aecac89efbd0b6a05ee10f44a09417178
[ "Xnet", "X11" ]
3
2021-08-20T08:10:34.000Z
2021-12-02T06:15:02.000Z
//========================================================================= // SEEDTOOL.CC - part of // // OMNeT++/OMNEST // Discrete System Simulation in C++ // // seedtool utility // // To compile under Unix: gcc seedtool -o seedtool // // Author: Andras Varga // //=====================...
80.546311
110
0.793872
eniac
5af27f1563b3385df9acbc8fd8d973b92daedaa5
548
cpp
C++
Compiler/IntConstantExpression.cpp
acbarrentine/Mika
8d88f015360c1ab731da0fda1281a3327dcb9ec9
[ "Unlicense" ]
null
null
null
Compiler/IntConstantExpression.cpp
acbarrentine/Mika
8d88f015360c1ab731da0fda1281a3327dcb9ec9
[ "Unlicense" ]
null
null
null
Compiler/IntConstantExpression.cpp
acbarrentine/Mika
8d88f015360c1ab731da0fda1281a3327dcb9ec9
[ "Unlicense" ]
null
null
null
#include "stdafx.h" #include "IntConstantExpression.h" #include "Compiler.h" #include "ObjectFileHelper.h" void IntConstantExpression::ResolveType(SymbolTable&) { mType = GCompiler.GetIntType(); Token& tok = GCompiler.GetToken(mRootToken); mValue = tok.GetIntValue(); } void IntConstantExpression::GenCode(Object...
23.826087
77
0.775547
acbarrentine
5af511673b65874c9ebf3e5e97032f7758235e5c
1,073
hh
C++
src/lisp/map.hh
kuriboshi/lips
f9f4838a95ff574fb7a627a3eb966b38b6f430f7
[ "Apache-2.0" ]
1
2020-11-10T11:02:21.000Z
2020-11-10T11:02:21.000Z
src/lisp/map.hh
kuriboshi/lips
f9f4838a95ff574fb7a627a3eb966b38b6f430f7
[ "Apache-2.0" ]
null
null
null
src/lisp/map.hh
kuriboshi/lips
f9f4838a95ff574fb7a627a3eb966b38b6f430f7
[ "Apache-2.0" ]
null
null
null
// // Lips, lisp shell. // Copyright 2020 Krister Joas // #pragma once #include "lisp.hh" namespace lisp { namespace Map { void init(); LISPT map(lisp&, LISPT, LISPT, LISPT); LISPT mapc(lisp&, LISPT, LISPT, LISPT); LISPT maplist(lisp&, LISPT, LISPT, LISPT); LISPT mapcar(lisp&, LISPT, LISPT, LISPT); } inline L...
33.53125
98
0.650513
kuriboshi
5af6f81c6da9bb1476794675832ad0e9875d9b55
31,030
cc
C++
kleption.cc
jdb19937/tewel
e2dc25c0998b2bf2763cd68ff66691e0c9f86928
[ "MIT" ]
null
null
null
kleption.cc
jdb19937/tewel
e2dc25c0998b2bf2763cd68ff66691e0c9f86928
[ "MIT" ]
null
null
null
kleption.cc
jdb19937/tewel
e2dc25c0998b2bf2763cd68ff66691e0c9f86928
[ "MIT" ]
null
null
null
#define __MAKEMORE_KLEPTION_CC__ 1 #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <assert.h> #include <sys/stat.h> #include <sys/sysmacros.h> #include <dirent.h> #include "kleption.hh" #include "random.hh" #include "youtil.hh" #include "colonel.hh" #include "camera.hh" #includ...
21.593598
89
0.477312
jdb19937
5af8c11d00fe7ab4a4053086cf0211ba4bcc6a3b
3,647
cc
C++
attic/acpi.cc
Anton-Cao/sv6
f525c4d588d3cfe750867990902b882cd4a21fad
[ "MIT-0" ]
147
2015-01-13T08:56:18.000Z
2022-03-10T06:49:25.000Z
attic/acpi.cc
Anton-Cao/sv6
f525c4d588d3cfe750867990902b882cd4a21fad
[ "MIT-0" ]
1
2018-05-12T11:46:14.000Z
2018-05-12T11:46:14.000Z
attic/acpi.cc
Anton-Cao/sv6
f525c4d588d3cfe750867990902b882cd4a21fad
[ "MIT-0" ]
34
2015-01-06T12:36:58.000Z
2021-09-23T17:56:22.000Z
// http://www.acpi.info/spec.htm #include "types.h" #include "amd64.h" #include "kernel.hh" #include "cpu.hh" #include "apic.hh" struct rsdp { u8 signature[8]; u8 checksum; u8 oemid[6]; u8 revision; u32 rsdtaddr; u32 length; u64 xsdtaddr; u8 extchecksum; u8 reserved[3]; }; struct header { u8 sign...
18.994792
64
0.549767
Anton-Cao
5afa0b2d60def81c35bdec955d27b68cbbf8e422
14,976
cpp
C++
Samples/Win7Samples/multimedia/mediafoundation/MFCaptureToFile/winmain.cpp
windows-development/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
8
2017-04-30T17:38:27.000Z
2021-11-29T00:59:03.000Z
Samples/Win7Samples/multimedia/mediafoundation/MFCaptureToFile/winmain.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
null
null
null
Samples/Win7Samples/multimedia/mediafoundation/MFCaptureToFile/winmain.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
2
2020-08-11T13:21:49.000Z
2021-09-01T10:41:51.000Z
////////////////////////////////////////////////////////////////////////// // // winmain.cpp. Application entry-point. // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR...
25.340102
110
0.529046
windows-development
5afc5e1a7334fc71a78aae9fed6318b80a74bad0
846
cc
C++
poj/3/3636.cc
eagletmt/procon
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
[ "MIT" ]
1
2015-04-17T09:54:23.000Z
2015-04-17T09:54:23.000Z
poj/3/3636.cc
eagletmt/procon
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
[ "MIT" ]
null
null
null
poj/3/3636.cc
eagletmt/procon
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
[ "MIT" ]
null
null
null
#include <cstdio> #include <vector> #include <algorithm> using namespace std; struct cmp { bool operator()(const pair<int,int>& a, const pair<int,int>& b) const { if (a.first == b.first) { return a.second < b.second; } else { return a.first > b.first; } } }; int main() { int T; scanf...
18.391304
71
0.476359
eagletmt
5afcc9ce1af33e50dd599d3b2f62f2c5a9bf7c65
883
cpp
C++
Notes/File Handling/fileHandling.cpp
Concept-Team/e-box-UTA018
a6caf487c9f27a5ca30a00847ed49a163049f67e
[ "MIT" ]
26
2021-03-17T03:15:22.000Z
2021-06-09T13:29:41.000Z
Notes/File Handling/fileHandling.cpp
Servatom/e-box-UTA018
a6caf487c9f27a5ca30a00847ed49a163049f67e
[ "MIT" ]
6
2021-03-16T19:04:05.000Z
2021-06-03T13:41:04.000Z
Notes/File Handling/fileHandling.cpp
Concept-Team/e-box-UTA018
a6caf487c9f27a5ca30a00847ed49a163049f67e
[ "MIT" ]
42
2021-03-17T03:16:22.000Z
2021-06-14T21:11:20.000Z
#include <iostream> #include <fstream> #include <string> using namespace std; int main(){ //For output file //opening a file ofstream out("myFile.txt"); if(!out.is_open()){ cout<<"Error in opening file"<<endl; //ABORT return 1; } out<<"Raghav is a human"<<endl; ...
15.767857
44
0.518686
Concept-Team
85076df3619cc1a573d2fcf4d646a58b1524ac40
1,090
cpp
C++
Codechef/chefmayshort.cpp
ujjwalgulecha/Coding
d04c19d8f673749a00c85cd5e8935960fb7e8b16
[ "MIT" ]
null
null
null
Codechef/chefmayshort.cpp
ujjwalgulecha/Coding
d04c19d8f673749a00c85cd5e8935960fb7e8b16
[ "MIT" ]
1
2018-02-14T16:00:44.000Z
2021-10-17T16:32:50.000Z
Codechef/chefmayshort.cpp
ujjwalgulecha/Coding
d04c19d8f673749a00c85cd5e8935960fb7e8b16
[ "MIT" ]
null
null
null
<<<<<<< HEAD #include<iostream> #include<math.h> #include<algorithm> using namespace std; int gcd(int m,int n); int gcd(int m,int n) { while(m!=n){ if(m>n) return gcd(m-n,n); else return gcd(m,n-m); } return m; } int main() { int t,n,x,i,a[1001],diff,fl...
16.515152
48
0.445872
ujjwalgulecha
850781cb97ae66118a26a0fe738abc3e04d7885b
3,296
cpp
C++
src/core/template_deriveditem.cpp
mvsframework/mvs
4bbda9f18fab960a9bea9c4e5e2de16b77c6ff81
[ "Apache-2.0" ]
null
null
null
src/core/template_deriveditem.cpp
mvsframework/mvs
4bbda9f18fab960a9bea9c4e5e2de16b77c6ff81
[ "Apache-2.0" ]
null
null
null
src/core/template_deriveditem.cpp
mvsframework/mvs
4bbda9f18fab960a9bea9c4e5e2de16b77c6ff81
[ "Apache-2.0" ]
null
null
null
// // Copyright © 2015 Claus Christmann <hcc |ä| gatech.edu>. // // 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 requ...
29.693694
80
0.522755
mvsframework
8508032439c9d78399714ef8e4769ca2116c455b
4,586
cpp
C++
kernel/ubsan.cpp
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
16
2019-06-25T15:18:03.000Z
2021-10-10T18:52:30.000Z
kernel/ubsan.cpp
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
null
null
null
kernel/ubsan.cpp
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
null
null
null
#include <stddef.h> #include <stdint.h> #include <kmesg.h> enum type_kinds { TK_INTEGER = 0x0000, TK_FLOAT = 0x0001, TK_UNKNOWN = 0xffff }; struct type_descriptor { uint16_t type_kind; uint16_t type_info; char type_name[]; }; struct source_location { char *filename; uint32_t line; uint32_t column; }; struct o...
26.056818
99
0.744876
qookei
8508e990a285b9913d791410fa0cf7b8de83fcad
1,325
cpp
C++
Periodic.cpp
olehzdubna/FastOutReader
81cd55220492a6ae042b38af03c1152ee6fc7eef
[ "MIT" ]
null
null
null
Periodic.cpp
olehzdubna/FastOutReader
81cd55220492a6ae042b38af03c1152ee6fc7eef
[ "MIT" ]
null
null
null
Periodic.cpp
olehzdubna/FastOutReader
81cd55220492a6ae042b38af03c1152ee6fc7eef
[ "MIT" ]
1
2020-02-12T16:47:00.000Z
2020-02-12T16:47:00.000Z
/* * Periodic.cpp * * Created on: Jul 6, 2019 * Author: oleh */ #include <iostream> #include <Utils.h> #include <Periodic.h> Periodic::Periodic() : AxisX() , samples(0) , trig(0) , firstTime(0) , incrementTime(0) { } Periodic::~Periodic() { } /* // Read periodic information from a file // See 'Ve...
25.480769
139
0.637736
olehzdubna
850b15fcb635adbf4ee8a34c4bf3a16106ae6fc0
4,255
cpp
C++
formats/lua/Scanner.cpp
xguerin/ace
ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b
[ "MIT" ]
5
2016-06-14T17:56:47.000Z
2022-02-10T19:54:25.000Z
formats/lua/Scanner.cpp
xguerin/ace
ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b
[ "MIT" ]
42
2016-06-21T20:48:22.000Z
2021-03-23T15:20:51.000Z
formats/lua/Scanner.cpp
xguerin/ace
ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b
[ "MIT" ]
1
2016-10-02T02:58:49.000Z
2016-10-02T02:58:49.000Z
/** * Copyright (c) 2016 Xavier R. Guerin * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, p...
22.513228
80
0.644418
xguerin
85183b4114cbd1d8ce1bd978f58c2abb97c1a5d7
3,095
cpp
C++
CREP/utility.cpp
martinschonger/aerdg
d28df9fc9e2e0780f6e492e378320ed004e516ea
[ "MIT" ]
null
null
null
CREP/utility.cpp
martinschonger/aerdg
d28df9fc9e2e0780f6e492e378320ed004e516ea
[ "MIT" ]
null
null
null
CREP/utility.cpp
martinschonger/aerdg
d28df9fc9e2e0780f6e492e378320ed004e516ea
[ "MIT" ]
null
null
null
/* Implementation of some functions declared in utility.h. */ #include "utility.h" namespace crep { tstamp_ util::CUR_TIME = 0; tstamp_ util::CUR_TIME_AGE = 0; //Begin: legacy code dur util::charikar_partial_time_detailed = dur(0); dur util::charikar_partial_time_detailed2 = dur(0); dur util::ch...
26.452991
132
0.630048
martinschonger
851efea545fc612423498046f866042e0173dee5
17,573
cpp
C++
aws-cpp-sdk-ec2/source/model/IpamPool.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-01-05T18:20:03.000Z
2022-01-05T18:20:03.000Z
aws-cpp-sdk-ec2/source/model/IpamPool.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-ec2/source/model/IpamPool.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/ec2/model/IpamPool.h> #include <aws/core/utils/xml/XmlSerializer.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/utils/memory/stl/AWSStringStream.h> #include <utility> us...
36.307851
189
0.702157
perfectrecall
8521e0922a05bd286fa561d8f883e4165bb6c0ba
1,224
cpp
C++
src/svLibrary/src/Engine.cpp
sevanspowell/sev
c678aaab3a9e6bd4e5b98774205c8775c9a3291d
[ "MIT" ]
null
null
null
src/svLibrary/src/Engine.cpp
sevanspowell/sev
c678aaab3a9e6bd4e5b98774205c8775c9a3291d
[ "MIT" ]
1
2017-06-11T06:34:50.000Z
2017-06-11T06:34:50.000Z
src/svLibrary/src/Engine.cpp
sevanspowell/sev
c678aaab3a9e6bd4e5b98774205c8775c9a3291d
[ "MIT" ]
null
null
null
#include <cassert> #include <sstream> #include <sv/Engine.h> #include <sv/Globals.h> #include <sv/ProgramOptions.h> #include <sv/platform/SDL2Platform.h> namespace sv { Engine::Engine() { isInitialized = false; platform = std::shared_ptr<Platform>(new SDL2Platform()); } Engine::~Engine() { if (isIni...
23.538462
71
0.625817
sevanspowell
8522913d7710c96bb191a5516028f509c2f728ca
715
cpp
C++
2021.11.11-Homework-5/Project5/Source.cpp
021213/programming-c-rus-2021-2022
58d981f5b63554594705f597aad76bbfa6777988
[ "Apache-2.0" ]
null
null
null
2021.11.11-Homework-5/Project5/Source.cpp
021213/programming-c-rus-2021-2022
58d981f5b63554594705f597aad76bbfa6777988
[ "Apache-2.0" ]
null
null
null
2021.11.11-Homework-5/Project5/Source.cpp
021213/programming-c-rus-2021-2022
58d981f5b63554594705f597aad76bbfa6777988
[ "Apache-2.0" ]
null
null
null
#include<iostream> using namespace std; int main(int argc, char* argv[]) { int choice = 0; int count = 0; int capacity = 3; int* a = new int[capacity] { 0 }; int element = 0; do { cin >> choice; switch (choice) { case 1: cout << "[" << count << "/" << capacity << "] : "; for (int i = 0; i < count...
16.25
53
0.483916
021213
8526dab9bfc639c7b5cb90b3a340e96be8d9cd89
201
cpp
C++
Easy/172_Factorial_Trailing_Zeroes.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
1
2021-03-15T10:02:10.000Z
2021-03-15T10:02:10.000Z
Easy/172_Factorial_Trailing_Zeroes.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
null
null
null
Easy/172_Factorial_Trailing_Zeroes.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
null
null
null
class Solution { public: int trailingZeroes(int n) { int trails = 0; for(long long int i = 5; n/i > 0; i*=5) { trails += (n/i); } return trails; } };
20.1
49
0.452736
ShehabMMohamed
852bae421dee27b71e48ffd59f87498c7b2defc2
23,028
hpp
C++
include/Vector/GenericLengthedVector.hpp
Renardjojo/RenardMath
74b4e65cf8f663eda830e00a1c61b563f711288c
[ "MIT" ]
null
null
null
include/Vector/GenericLengthedVector.hpp
Renardjojo/RenardMath
74b4e65cf8f663eda830e00a1c61b563f711288c
[ "MIT" ]
null
null
null
include/Vector/GenericLengthedVector.hpp
Renardjojo/RenardMath
74b4e65cf8f663eda830e00a1c61b563f711288c
[ "MIT" ]
null
null
null
/* * Project : FoxMath * Editing by Six Jonathan * Date : 2020-08-28 - 10 h 03 * * * MIT License * * Copyright (c) 2020 Six Jonathan * * 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 S...
31.588477
250
0.57543
Renardjojo
852cb2f518a7b520b016b9426084cc6c4714d19a
371
cpp
C++
matriz/MATRIZ.cpp
ejpcr/libs-c
e544e4338ea9f2fe8c57de83045944f38ae06a07
[ "MIT" ]
null
null
null
matriz/MATRIZ.cpp
ejpcr/libs-c
e544e4338ea9f2fe8c57de83045944f38ae06a07
[ "MIT" ]
null
null
null
matriz/MATRIZ.cpp
ejpcr/libs-c
e544e4338ea9f2fe8c57de83045944f38ae06a07
[ "MIT" ]
null
null
null
#include <C:\TC\BIN\PRESENTA.CPP> #include <C:\TC\BIN\CAPTURA.CPP> #include <C:\TC\BIN\SALIDA.CPP> #include <C:\TC\BIN\PROCESO.CPP> #include <C:\TC\BIN\Menu.CPP> void main() {entrar(); matriz a,b; double x; a=crear(a);limpiar(); b=crear(b);limpiar(); a=llenar(a);limpiar(); b=llenar(b);limpiar(); menu(a,b); getcha...
24.733333
46
0.6469
ejpcr
852d241652927fe22d2f76c1f1384a421db67a87
1,245
cpp
C++
November/Homeworks/Homework 1/AlgoritmaOdev4/AlgoritmaOdev4.cpp
MrMirhan/Algorithm-Class-221-HomeWorks
3198fce11a0fd4ea10b576b418cec3a35ffcff2e
[ "MIT" ]
1
2020-11-19T09:15:09.000Z
2020-11-19T09:15:09.000Z
November/Homeworks/Homework 1/AlgoritmaOdev4/AlgoritmaOdev4.cpp
MrMirhan/Algorithm-Class-221-HomeWorks
3198fce11a0fd4ea10b576b418cec3a35ffcff2e
[ "MIT" ]
null
null
null
November/Homeworks/Homework 1/AlgoritmaOdev4/AlgoritmaOdev4.cpp
MrMirhan/Algorithm-Class-221-HomeWorks
3198fce11a0fd4ea10b576b418cec3a35ffcff2e
[ "MIT" ]
2
2020-11-12T17:37:28.000Z
2020-11-21T14:48:49.000Z
// AlgoritmaOdev4.cpp : Bu dosya 'main' işlevi içeriyor. Program yürütme orada başlayıp biter. // #include <iostream> #include <string> using namespace std; void minmax(int a, int b, int c, int d) { int min_ab, min_cd, min, max_ab, max_cd, max; min_ab = a < b ? a : b; min_cd = c < d ? c : d; max_ab...
25.408163
105
0.469076
MrMirhan
852fd5adb5e70262f234a2e9b9f05aec7056b782
4,075
cpp
C++
libs/7zip/win/CPP/7zip/UI/Common/ExtractingFilePath.cpp
JosephMillsAtWork/yacl
22458da501b1bdf08c67f20b01bbe9d639cf326f
[ "MIT" ]
2
2019-04-03T20:07:36.000Z
2020-06-24T14:05:46.000Z
libs/7zip/unix/CPP/7zip/UI/Common/ExtractingFilePath.cpp
JosephMillsAtWork/yacl
22458da501b1bdf08c67f20b01bbe9d639cf326f
[ "MIT" ]
null
null
null
libs/7zip/unix/CPP/7zip/UI/Common/ExtractingFilePath.cpp
JosephMillsAtWork/yacl
22458da501b1bdf08c67f20b01bbe9d639cf326f
[ "MIT" ]
1
2020-06-24T14:05:52.000Z
2020-06-24T14:05:52.000Z
// ExtractingFilePath.cpp #include "StdAfx.h" #include "../../../Common/Wildcard.h" #include "../../../Windows/FileName.h" #include "ExtractingFilePath.h" static UString ReplaceIncorrectChars(const UString &s, bool repaceColon) { #ifdef _WIN32 UString res; bool beforeColon = true; { for (unsigned i = 0...
21.335079
95
0.590675
JosephMillsAtWork
8532d44e9378acd401cf14b9f932d162525658fd
7,384
cpp
C++
Driver/Thread/Pthread/ZThreadPthread.cpp
paintdream/PaintsNowCore
4962b579ff3bc00aa55bb9294a4d722b1bef36ac
[ "MIT" ]
2
2020-10-09T07:43:13.000Z
2021-09-01T02:09:09.000Z
Driver/Thread/Pthread/ZThreadPthread.cpp
paintdream/PaintsNowCore
4962b579ff3bc00aa55bb9294a4d722b1bef36ac
[ "MIT" ]
null
null
null
Driver/Thread/Pthread/ZThreadPthread.cpp
paintdream/PaintsNowCore
4962b579ff3bc00aa55bb9294a4d722b1bef36ac
[ "MIT" ]
1
2021-03-31T02:02:02.000Z
2021-03-31T02:02:02.000Z
#include "ZThreadPthread.h" #if defined(_DEBUG) && defined(_MSC_VER) #include <Windows.h> #endif #if !defined(_MSC_VER) || _MSC_VER > 1200 #define USE_STD_THREAD #include <thread> #include <mutex> #include <condition_variable> #include <chrono> #else #include <windows.h> #include <process.h> #if _WIN32...
22.860681
119
0.687839
paintdream
8539c3db25cc2d087a1b4366f5cbb96d5a369184
3,585
cpp
C++
DataStructure/cht.cpp
rsk0315/codefolio
1de990978489f466e1fd47884d4a19de9cc30e02
[ "MIT" ]
1
2020-03-20T13:24:30.000Z
2020-03-20T13:24:30.000Z
DataStructure/cht.cpp
rsk0315/codefolio
1de990978489f466e1fd47884d4a19de9cc30e02
[ "MIT" ]
null
null
null
DataStructure/cht.cpp
rsk0315/codefolio
1de990978489f466e1fd47884d4a19de9cc30e02
[ "MIT" ]
null
null
null
template <typename Tp> class lower_envelope { public: using size_type = size_t; using value_type = Tp; private: using interval_type = std::pair<value_type, value_type>; using line_type = std::pair<value_type, value_type>; std::map<interval_type, line_type> M_lines; std::map<line_type, interval_type, std::g...
29.875
78
0.591353
rsk0315
853b0a18ec8a70ae2b7be35776b998dea2b8c39c
5,139
cpp
C++
Applied/CCore/src/FileName.cpp
SergeyStrukov/CCore-4-xx
5faeadd50a24a7dbe18ffff8efe5f49212588637
[ "BSL-1.0" ]
null
null
null
Applied/CCore/src/FileName.cpp
SergeyStrukov/CCore-4-xx
5faeadd50a24a7dbe18ffff8efe5f49212588637
[ "BSL-1.0" ]
null
null
null
Applied/CCore/src/FileName.cpp
SergeyStrukov/CCore-4-xx
5faeadd50a24a7dbe18ffff8efe5f49212588637
[ "BSL-1.0" ]
null
null
null
/* FileName.cpp */ //---------------------------------------------------------------------------------------- // // Project: CCore 4.01 // // Tag: Applied // // License: Boost Software License - Version 1.0 - August 17th, 2003 // // see http://www.boost.org/LICENSE_1_0.txt or the local copy // // Copyrig...
17.13
90
0.526562
SergeyStrukov
853bfe4922c5b8f74af6397ae26fdb8878cf1de1
1,068
cpp
C++
cses/introductoryproblems/1094_IncreasingArray.cpp
seahrh/cses-problem-set
1d4ab18f7686ab4e87cc74a5e911494780e42b21
[ "MIT" ]
null
null
null
cses/introductoryproblems/1094_IncreasingArray.cpp
seahrh/cses-problem-set
1d4ab18f7686ab4e87cc74a5e911494780e42b21
[ "MIT" ]
null
null
null
cses/introductoryproblems/1094_IncreasingArray.cpp
seahrh/cses-problem-set
1d4ab18f7686ab4e87cc74a5e911494780e42b21
[ "MIT" ]
1
2022-02-12T11:05:13.000Z
2022-02-12T11:05:13.000Z
/* You are given an array of n integers. Modify the array so that it is increasing, i.e., every element is at least as large as the previous element. On each turn, you may increase the value of any element by one. What is the minimum number of turns required? Input The first input line contains an integer n: the size o...
21.795918
109
0.607678
seahrh
853c50a2752dba650627d28f485d9eccc266c10c
227
cpp
C++
MainLib/Core/SceneCompletion/CPUInstantiations.cpp
Bovey0809/SCFusion
1d4a8f4eb0f330f5a69efd89fbf28686c1405471
[ "BSD-2-Clause" ]
30
2020-11-06T09:11:55.000Z
2022-03-11T06:56:57.000Z
MainLib/Core/SceneCompletion/CPUInstantiations.cpp
ShunChengWu/SCFusion
1d4a8f4eb0f330f5a69efd89fbf28686c1405471
[ "BSD-2-Clause" ]
1
2021-12-17T07:03:01.000Z
2021-12-17T07:03:01.000Z
MainLib/Core/SceneCompletion/CPUInstantiations.cpp
Bovey0809/SCFusion
1d4a8f4eb0f330f5a69efd89fbf28686c1405471
[ "BSD-2-Clause" ]
1
2021-12-17T07:02:47.000Z
2021-12-17T07:02:47.000Z
// Copyright 2014-2017 Oxford University Innovation Limited and the authors of InfiniTAM #include "../../ITMLibDefines.h" #include "SceneCompletion.tpp" //Core template class SCFUSION::SceneCompletion<ITMVoxel, ITMVoxelIndex>;
37.833333
88
0.797357
Bovey0809
853cd933cd66cd7622490591b70fa693c08ff795
558
hpp
C++
src/Jogo/GUI/EventHandler.hpp
MatheusKunnen/Jogo-TecProg
66f4320e51e42d12da74e487cc8552377ce865bb
[ "MIT" ]
null
null
null
src/Jogo/GUI/EventHandler.hpp
MatheusKunnen/Jogo-TecProg
66f4320e51e42d12da74e487cc8552377ce865bb
[ "MIT" ]
null
null
null
src/Jogo/GUI/EventHandler.hpp
MatheusKunnen/Jogo-TecProg
66f4320e51e42d12da74e487cc8552377ce865bb
[ "MIT" ]
null
null
null
// // EventHandler.hpp // Jogo-SFML // // Created by Matheus Kunnen Ledesma on 11/5/19. // Copyright © 2019 Matheus Kunnen Ledesma. All rights reserved. // #ifndef EventHandler_hpp #define EventHandler_hpp #include "base_gui_includes.hpp" namespace GUI { namespace Events { enum Type {CLICK, HOVER, ENABLED, ...
18
65
0.695341
MatheusKunnen
853d0f79142828a35817ae677b9c4030ca469793
464
cpp
C++
src/keycreate/keycreate.cpp
fusor-io/fusor-state-machine
d52f96e7067aecb19088c9d59c57bdb7cba55504
[ "MIT" ]
null
null
null
src/keycreate/keycreate.cpp
fusor-io/fusor-state-machine
d52f96e7067aecb19088c9d59c57bdb7cba55504
[ "MIT" ]
null
null
null
src/keycreate/keycreate.cpp
fusor-io/fusor-state-machine
d52f96e7067aecb19088c9d59c57bdb7cba55504
[ "MIT" ]
null
null
null
#include <string.h> #include "keycreate.h" char *KeyCreate::withScope(const char *scopeId, const char *name) { strncpy(_buffer, scopeId, MAX_VAR_NAME_LEN - 1); strncat(_buffer, ".", MAX_VAR_NAME_LEN - strlen(_buffer) - 1); strncat(_buffer, name, MAX_VAR_NAME_LEN - strlen(_buffer) - 1); return _buffer; ...
25.777778
67
0.678879
fusor-io
853dbabe78b9ceecae2a677a0eb27a9898be5720
4,351
tcc
C++
libraries/model/test/tcc/ModelMaker.tcc
Dream-maerD/ELL-master
9554afa876cc9e8e87529df3f3d99220abc711d6
[ "MIT" ]
1
2018-11-08T06:19:31.000Z
2018-11-08T06:19:31.000Z
libraries/model/test/tcc/ModelMaker.tcc
vishnoitanuj/ELL
993d5370f0f7a274e8dfd8f43220c792be46f314
[ "MIT" ]
null
null
null
libraries/model/test/tcc/ModelMaker.tcc
vishnoitanuj/ELL
993d5370f0f7a274e8dfd8f43220c792be46f314
[ "MIT" ]
1
2019-12-19T10:02:48.000Z
2019-12-19T10:02:48.000Z
//////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: ModelMaker.tcc (compile_test) // Authors: Umesh Madan, Chuck Jacobs // ///////////////////////////////////////////////////////////////////////////////////...
33.21374
120
0.695702
Dream-maerD
8547fcd6076b24448a7bec1e939241764501064f
2,097
cpp
C++
rendering/Pipeline.cpp
broecker/gfx1993
d0390cdf6bd7b864dd86c99fa4d79cb31c00fa2f
[ "MIT" ]
null
null
null
rendering/Pipeline.cpp
broecker/gfx1993
d0390cdf6bd7b864dd86c99fa4d79cb31c00fa2f
[ "MIT" ]
null
null
null
rendering/Pipeline.cpp
broecker/gfx1993
d0390cdf6bd7b864dd86c99fa4d79cb31c00fa2f
[ "MIT" ]
null
null
null
#include "Pipeline.h" #include <glm/glm.hpp> using glm::vec4; namespace render { VertexOut &&lerp(const VertexOut &a, const VertexOut &b, float d) { VertexOut result; result.clipPosition = glm::mix(a.clipPosition, b.clipPosition, d); result.worldPosition = glm::mix(a.worldPosition, b.worldPosition, d); resul...
32.261538
77
0.679542
broecker
854e2d0eada09c5c96b778e9d74865f6e0a55284
848
cpp
C++
Source/MapEditorModule/DetailsCustomisation/MapActorDetailCustomization.cpp
benoitestival/MapModuleEditor
3a7d72d0dc3761bd61f19df1e5af46081a791356
[ "MIT" ]
null
null
null
Source/MapEditorModule/DetailsCustomisation/MapActorDetailCustomization.cpp
benoitestival/MapModuleEditor
3a7d72d0dc3761bd61f19df1e5af46081a791356
[ "MIT" ]
null
null
null
Source/MapEditorModule/DetailsCustomisation/MapActorDetailCustomization.cpp
benoitestival/MapModuleEditor
3a7d72d0dc3761bd61f19df1e5af46081a791356
[ "MIT" ]
1
2021-07-07T09:22:28.000Z
2021-07-07T09:22:28.000Z
// Fill out your copyright notice in the Description page of Project Settings. #include "MapActorDetailCustomization.h" #include "Editor/PropertyEditor/Public/PropertyEditorModule.h" #include "MapGenerator/MapActor.h" #include "Modules/ModuleManager.h" TSharedRef<IDetailCustomization> MapActorDetailCustomization::M...
33.92
147
0.837264
benoitestival
8556297f0b4422ad12dc45a3b3f36a85b70e6142
801
hpp
C++
lib/index.hpp
cirossmonteiro/tensor
6ece78825535188fba6dbe62ae4be0521381c026
[ "Unlicense" ]
1
2019-03-31T05:23:20.000Z
2019-03-31T05:23:20.000Z
lib/index.hpp
cirossmonteiro/tensor
6ece78825535188fba6dbe62ae4be0521381c026
[ "Unlicense" ]
null
null
null
lib/index.hpp
cirossmonteiro/tensor
6ece78825535188fba6dbe62ae4be0521381c026
[ "Unlicense" ]
null
null
null
#pragma once #ifndef INDEX_HPP #define INDEX_HPP #include <cstddef> #include <iostream> using namespace std; class Index { unsigned int size = 0; unsigned int *values = NULL; public: ~Index(); // done Index(); // to do Index(unsigned int new_size); // done Index(unsigned int new_size, unsigned in...
26.7
67
0.649189
cirossmonteiro
85563c3c4cf38752082c149c6ad400bbc57b34db
11,166
hpp
C++
src/mirrage/utils/include/mirrage/utils/ranges.hpp
lowkey42/mirrage
2527537989a548062d0bbca8370d063fc6b81a18
[ "MIT" ]
14
2017-10-26T08:45:54.000Z
2021-04-06T11:44:17.000Z
src/mirrage/utils/include/mirrage/utils/ranges.hpp
lowkey42/mirrage
2527537989a548062d0bbca8370d063fc6b81a18
[ "MIT" ]
17
2017-10-09T20:11:58.000Z
2018-11-08T22:05:14.000Z
src/mirrage/utils/include/mirrage/utils/ranges.hpp
lowkey42/mirrage
2527537989a548062d0bbca8370d063fc6b81a18
[ "MIT" ]
1
2018-09-26T23:10:06.000Z
2018-09-26T23:10:06.000Z
/** simple wrappers for iterator pairs *************************************** * * * Copyright (c) 2018 Florian Oetke * * This file is distributed under the MIT License * * ...
29.307087
104
0.632814
lowkey42
85575110e6688911bc96e810076916a6fe555a8c
149,018
cpp
C++
jni/lua/packages/easeactions.cpp
zchajax/WiEngine
ea2fa297f00aa5367bb5b819d6714ac84a8a8e25
[ "MIT" ]
39
2015-01-23T10:01:31.000Z
2021-06-10T03:01:18.000Z
jni/lua/packages/easeactions.cpp
luckypen/WiEngine
7e80641fe15a77a2fc43db90f15dad6aa2c2860a
[ "MIT" ]
1
2015-04-15T08:07:47.000Z
2015-04-15T08:07:47.000Z
jni/lua/packages/easeactions.cpp
luckypen/WiEngine
7e80641fe15a77a2fc43db90f15dad6aa2c2860a
[ "MIT" ]
20
2015-01-20T07:36:10.000Z
2019-09-15T01:02:19.000Z
/* ** Lua binding: easeactions ** Generated automatically by tolua++-1.0.92 on Sat Jun 11 19:26:05 2011. */ #ifndef __cplusplus #include "stdlib.h" #endif #include "string.h" #include "tolua++.h" /* Exported function */ TOLUA_API int tolua_easeactions_open (lua_State* tolua_S); #include "WiEngine.h" /* function ...
30.110729
126
0.76535
zchajax
855a6cbddf47fbd3cfde60a54ae772f0997434e7
5,516
hpp
C++
library/src/main/jni/openslmediaplayer/include/oslmp/OpenSLMediaPlayerContext.hpp
cirnoftw/android-openslmediaplayer
6b363282dd0ac19bcb4e8ce52a4cb7bf35c58583
[ "Apache-2.0" ]
435
2015-01-16T14:36:07.000Z
2022-02-11T02:32:19.000Z
library/src/main/jni/openslmediaplayer/include/oslmp/OpenSLMediaPlayerContext.hpp
cirnoftw/android-openslmediaplayer
6b363282dd0ac19bcb4e8ce52a4cb7bf35c58583
[ "Apache-2.0" ]
59
2015-02-12T22:21:49.000Z
2021-06-16T11:48:15.000Z
library/src/main/jni/openslmediaplayer/include/oslmp/OpenSLMediaPlayerContext.hpp
cirnoftw/android-openslmediaplayer
6b363282dd0ac19bcb4e8ce52a4cb7bf35c58583
[ "Apache-2.0" ]
104
2015-01-16T14:36:07.000Z
2021-05-24T03:32:54.000Z
// // Copyright (C) 2014 Haruki Hasegawa // // 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 ap...
42.430769
120
0.687999
cirnoftw
855eff19f12f55dbac9886aa25d8181539af2efe
3,220
cpp
C++
Container.cpp
nirry78/codegen
9c538533ea899c8e9bb4a5f2f0851c0680708c82
[ "MIT" ]
null
null
null
Container.cpp
nirry78/codegen
9c538533ea899c8e9bb4a5f2f0851c0680708c82
[ "MIT" ]
null
null
null
Container.cpp
nirry78/codegen
9c538533ea899c8e9bb4a5f2f0851c0680708c82
[ "MIT" ]
null
null
null
#include "Container.h" Container::Container(json& object): mFieldCount(0) { for (auto& [key, value] : object.items()) { if (!key.compare("name")) { mName = value.get<std::string>(); LOGD(" Name: %s\n", mName.c_str()); } else if (!key.compare("param...
19.634146
87
0.476708
nirry78
856056ee5d6517a7e2eff6c71d9352575e1caebb
38,794
cpp
C++
SerialPrograms/Source/NintendoSwitch/TestProgramSwitch.cpp
BlizzardHero/Arduino-Source
bc4ce6433651b0feef488735098900f8bf4144f8
[ "MIT" ]
null
null
null
SerialPrograms/Source/NintendoSwitch/TestProgramSwitch.cpp
BlizzardHero/Arduino-Source
bc4ce6433651b0feef488735098900f8bf4144f8
[ "MIT" ]
null
null
null
SerialPrograms/Source/NintendoSwitch/TestProgramSwitch.cpp
BlizzardHero/Arduino-Source
bc4ce6433651b0feef488735098900f8bf4144f8
[ "MIT" ]
null
null
null
/* Test Program (Switch) * * From: https://github.com/PokemonAutomation/Arduino-Source * */ #include <cmath> //#include <QSystemTrayIcon> #include <QProcess> #include "Common/Cpp/Exceptions.h" #include "Common/Cpp/PrettyPrint.h" #include "Common/Cpp/AlignedVector.h" #include "Common/Cpp/SIMDDebuggers...
31.134831
127
0.6617
BlizzardHero
856472542cd47e4ec940c97e2ba7719c79562fe7
1,484
cc
C++
CodeChef/SHORT/COOK65/Problem B/B.cc
VastoLorde95/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
170
2017-07-25T14:47:29.000Z
2022-01-26T19:16:31.000Z
CodeChef/SHORT/COOK65/Problem B/B.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
null
null
null
CodeChef/SHORT/COOK65/Problem B/B.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
55
2017-07-28T06:17:33.000Z
2021-10-31T03:06:22.000Z
#include <bits/stdc++.h> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi first #define se second #define pb(x) push_back(x) #define mp(x,y) make_pair(x,y) #define LET(x, a) __typeof(a) x(a) #define foreach(it, v) for(LET(it, v.begin()); it != v...
20.328767
100
0.557951
VastoLorde95
8566a3fc64a064df90c9167e4d1799fd8b24e576
768
cpp
C++
Topics/2015_05_03/quiz.cpp
TelerikAcademy/C-Beginner
a4d5a8beb870da910f74da41362b02f0d754ee51
[ "MIT" ]
null
null
null
Topics/2015_05_03/quiz.cpp
TelerikAcademy/C-Beginner
a4d5a8beb870da910f74da41362b02f0d754ee51
[ "MIT" ]
null
null
null
Topics/2015_05_03/quiz.cpp
TelerikAcademy/C-Beginner
a4d5a8beb870da910f74da41362b02f0d754ee51
[ "MIT" ]
null
null
null
#include <iostream> #include <cmath> using namespace std; bool is_prime(long long a){ long long x=sqrt(a), i; if (a%2==0){ if (a==2) {return true;} else {return false;} } for (i=3; i<=x; i=i+2){ if (a%i==0) {return false;} } return true; } int main () { long long n,m,i,j,brc...
18.285714
52
0.451823
TelerikAcademy
85676711a5e512403a8f0422642f1b0912792d53
1,045
cpp
C++
500 problems pepcoding/Subarray with given sum.cpp
shikhar8434/OJ-problems
7e787b41fd8b6342f73ee59066e2a324608c511d
[ "MIT" ]
2
2020-10-13T12:37:15.000Z
2020-10-28T14:29:15.000Z
500 problems pepcoding/Subarray with given sum.cpp
shikhar8434/OJ-problems
7e787b41fd8b6342f73ee59066e2a324608c511d
[ "MIT" ]
null
null
null
500 problems pepcoding/Subarray with given sum.cpp
shikhar8434/OJ-problems
7e787b41fd8b6342f73ee59066e2a324608c511d
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define F first #define S second #define PB push_back #define MP make_pair #define ll long long int #define vi vector<int> #define vii vector<int, int> #define vc vector<char> #define vl vector<ll> #define mod 1000000007 #define INF 1000000009 using namespace std; int main() ...
18.017241
43
0.42488
shikhar8434
85677ce7bc7152934b8d1ae4e3bc98f3c6353c32
3,470
hpp
C++
include/Xyz/LineClipping.hpp
jebreimo/Xyz
654e22412fc505c5f6a385992a6f5c7e6ab3cc3c
[ "BSD-2-Clause" ]
null
null
null
include/Xyz/LineClipping.hpp
jebreimo/Xyz
654e22412fc505c5f6a385992a6f5c7e6ab3cc3c
[ "BSD-2-Clause" ]
null
null
null
include/Xyz/LineClipping.hpp
jebreimo/Xyz
654e22412fc505c5f6a385992a6f5c7e6ab3cc3c
[ "BSD-2-Clause" ]
null
null
null
//**************************************************************************** // Copyright © 2017 Jan Erik Breimo. All rights reserved. // Created by Jan Erik Breimo on 24.04.2017. // // This file is distributed under the BSD License. // License text is included with the source distribution. //************************...
34.356436
78
0.52853
jebreimo
8567a7d469c661f801c378faf104dddee93794f1
2,000
cpp
C++
app/src/App.cpp
elchtzeasar/balcony-watering-system
2fb20dc8bdf79cff4b7ba93cb362489562b62732
[ "MIT" ]
null
null
null
app/src/App.cpp
elchtzeasar/balcony-watering-system
2fb20dc8bdf79cff4b7ba93cb362489562b62732
[ "MIT" ]
null
null
null
app/src/App.cpp
elchtzeasar/balcony-watering-system
2fb20dc8bdf79cff4b7ba93cb362489562b62732
[ "MIT" ]
null
null
null
#include "App.h" #include "IAppConfiguration.h" #include "ConfigurationFile.h" #include "SingleRunHandler.h" #include "TextGui.h" #include <cassert> #include <variant> namespace balcony_watering_system { namespace app { using ::balcony_watering_system::configuration::IAppConfiguration; using ::balcony_watering_syst...
24.691358
78
0.7015
elchtzeasar
85696b81b51a00bf54ab18b733ba63df7b15bcd2
1,710
hpp
C++
include/put.hpp
Leonardo2718/btrio
67941bc4a5b1d6bc637e3b1ffd75cdbcaddbdba7
[ "BSL-1.0" ]
null
null
null
include/put.hpp
Leonardo2718/btrio
67941bc4a5b1d6bc637e3b1ffd75cdbcaddbdba7
[ "BSL-1.0" ]
null
null
null
include/put.hpp
Leonardo2718/btrio
67941bc4a5b1d6bc637e3b1ffd75cdbcaddbdba7
[ "BSL-1.0" ]
null
null
null
/** * Copyright Leonardo Banderali 2017 - 2017. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ #ifndef PUT_HPP #define PUT_HPP #include "format.hpp" #include "put_utils.hpp" #include ...
31.666667
130
0.580117
Leonardo2718
856a124ab0f9a59e5777d742161ef3d253753311
2,143
hpp
C++
gearoenix/render/engine/gx-rnd-eng-configuration.hpp
Hossein-Noroozpour/gearoenix
c8fa8b8946c03c013dad568d6d7a97d81097c051
[ "BSD-Source-Code" ]
35
2018-01-07T02:34:38.000Z
2022-02-09T05:19:03.000Z
gearoenix/render/engine/gx-rnd-eng-configuration.hpp
Hossein-Noroozpour/gearoenix
c8fa8b8946c03c013dad568d6d7a97d81097c051
[ "BSD-Source-Code" ]
111
2017-09-20T09:12:36.000Z
2020-12-27T12:52:03.000Z
gearoenix/render/engine/gx-rnd-eng-configuration.hpp
Hossein-Noroozpour/gearoenix
c8fa8b8946c03c013dad568d6d7a97d81097c051
[ "BSD-Source-Code" ]
5
2020-02-11T11:17:37.000Z
2021-01-08T17:55:43.000Z
#ifndef GEAROENIX_RENDER_ENGINE_CONFIGURATION_HPP #define GEAROENIX_RENDER_ENGINE_CONFIGURATION_HPP #include "../../core/gx-cr-build-configuration.hpp" #include "../../core/gx-cr-static.hpp" #include "../../math/gx-math-numeric.hpp" #include "../../system/gx-sys-log.hpp" #include <cstdint> namespace gearoenix::render:...
43.734694
133
0.74475
Hossein-Noroozpour
856a8b2d450d1f93a9bdf07f813386f156422476
360
cc
C++
src/gb/utils/test.cc
jonatan-ekstrom/FreshBoy
228302e720f4a8fe4bf5c911e86588e412c0ce0a
[ "MIT" ]
3
2021-11-30T20:37:33.000Z
2022-01-06T20:26:52.000Z
src/gb/utils/test.cc
jonatan-ekstrom/FreshBoy
228302e720f4a8fe4bf5c911e86588e412c0ce0a
[ "MIT" ]
null
null
null
src/gb/utils/test.cc
jonatan-ekstrom/FreshBoy
228302e720f4a8fe4bf5c911e86588e412c0ce0a
[ "MIT" ]
null
null
null
#include "types.h" namespace { /* Compile time test to verify that integers are at least 32-bits wide. */ using namespace gb; constexpr uint BitCount() { auto i{static_cast<uint>(-1)}; uint count{0}; while (i != 0) { i >>= 1; ++count; } return count; } static_assert(BitCount() >...
16.363636
74
0.594444
jonatan-ekstrom
856d5d809dcc6ae46e6a30adca8435263c6eb802
5,172
hpp
C++
lib/poplin/ConvolutionInternal.hpp
graphcore/poplibs
3fe5a3ecafe995eddb72675d1b4a7af8a622009e
[ "MIT" ]
95
2020-07-06T17:11:23.000Z
2022-03-12T14:42:28.000Z
lib/poplin/ConvolutionInternal.hpp
graphcore/poplibs
3fe5a3ecafe995eddb72675d1b4a7af8a622009e
[ "MIT" ]
null
null
null
lib/poplin/ConvolutionInternal.hpp
graphcore/poplibs
3fe5a3ecafe995eddb72675d1b4a7af8a622009e
[ "MIT" ]
14
2020-07-15T12:32:57.000Z
2022-01-26T14:58:45.000Z
// Copyright (c) 2020 Graphcore Ltd. All rights reserved. #ifndef _ConvolutionInternal_hpp_ #define _ConvolutionInternal_hpp_ #include "CanonicalConvParams.hpp" #include "ConvOptions.hpp" #include "ConvPlan.hpp" #include <poplin/Convolution.hpp> namespace poplin { struct ConvProgramTree; struct ConvIndices { unsi...
43.462185
80
0.607695
graphcore
85701f1cad53f89ee8392100a78788862b8f9e2e
568
cpp
C++
mytools/asm/SymbolTable.cpp
kingnak/nand2tetris
120be8f04251b88e519f1bac838c40fd4c1b68e1
[ "MIT" ]
null
null
null
mytools/asm/SymbolTable.cpp
kingnak/nand2tetris
120be8f04251b88e519f1bac838c40fd4c1b68e1
[ "MIT" ]
null
null
null
mytools/asm/SymbolTable.cpp
kingnak/nand2tetris
120be8f04251b88e519f1bac838c40fd4c1b68e1
[ "MIT" ]
null
null
null
#include "SymbolTable.h" using namespace std; void SymbolTable::addFixedEntry(const string &symbol, int16_t address) { m_map.insert(make_pair(symbol, address)); } int16_t SymbolTable::addVariableEntry(const std::string &symbol) { m_map.insert(make_pair(symbol, m_nextVariable)); return m_nextVariable++; } bool Sy...
21.037037
70
0.742958
kingnak
8572d407a4dd363db5f244fdc0af278010b6e859
7,484
hpp
C++
src/v8bind/class.hpp
ayles/V8Bind
1ed1bf8b87f9a1f52d510e4ece77f3ff17a944d1
[ "MIT" ]
1
2021-12-30T15:08:40.000Z
2021-12-30T15:08:40.000Z
src/v8bind/class.hpp
ayles/V8Bind
1ed1bf8b87f9a1f52d510e4ece77f3ff17a944d1
[ "MIT" ]
1
2020-02-05T21:52:17.000Z
2020-02-07T19:21:37.000Z
src/v8bind/class.hpp
ayles/v8bind
1ed1bf8b87f9a1f52d510e4ece77f3ff17a944d1
[ "MIT" ]
null
null
null
// // Created by selya on 01.09.2019. // #ifndef SANDWICH_V8B_CLASS_HPP #define SANDWICH_V8B_CLASS_HPP #include <v8bind/type_info.hpp> #include <v8.h> #include <unordered_map> #include <type_traits> #include <memory> #include <vector> #include <cstddef> #include <tuple> #define V8B_IMPL inline namespace v8b { cl...
30.672131
107
0.685863
ayles
85750cdbde250c45b6e2d90232d5dc0ee76e96d3
97
hpp
C++
led-blink/src/main.hpp
ikapoz/stm32
9efc2a099f55bddaf85b68cc51fb6a31b48538b7
[ "MIT" ]
null
null
null
led-blink/src/main.hpp
ikapoz/stm32
9efc2a099f55bddaf85b68cc51fb6a31b48538b7
[ "MIT" ]
null
null
null
led-blink/src/main.hpp
ikapoz/stm32
9efc2a099f55bddaf85b68cc51fb6a31b48538b7
[ "MIT" ]
null
null
null
#pragma once #ifdef __cplusplus extern "C" { #endif int app_main(); #ifdef __cplusplus } #endif
9.7
18
0.721649
ikapoz
8577dbdb44873d3aeac351497f36cae3f4e7427f
7,204
cpp
C++
build/moc/moc_QGeoMapReplyQGC.cpp
UNIST-ESCL/UNIST_GCS
f61f0c12bbb028869e4494f507ea8ab52c8c79c2
[ "Apache-2.0" ]
1
2018-11-07T06:10:53.000Z
2018-11-07T06:10:53.000Z
build/moc/moc_QGeoMapReplyQGC.cpp
UNIST-ESCL/UNIST_GCS
f61f0c12bbb028869e4494f507ea8ab52c8c79c2
[ "Apache-2.0" ]
null
null
null
build/moc/moc_QGeoMapReplyQGC.cpp
UNIST-ESCL/UNIST_GCS
f61f0c12bbb028869e4494f507ea8ab52c8c79c2
[ "Apache-2.0" ]
1
2018-11-07T06:10:47.000Z
2018-11-07T06:10:47.000Z
/**************************************************************************** ** Meta object code from reading C++ file 'QGeoMapReplyQGC.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.3) ** ** WARNING! All changes made in this file will be lost! *****************************************************...
37.520833
143
0.619933
UNIST-ESCL