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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f23a61df028c4bc3fb7cfed62a551939ce5ec547 | 634 | cpp | C++ | Estrutura de Dados/Sorts/SelectionSort/Source.cpp | boveloco/Puc | cbc3308fac104098b030dadebdd036fe288bbe0c | [
"MIT"
] | null | null | null | Estrutura de Dados/Sorts/SelectionSort/Source.cpp | boveloco/Puc | cbc3308fac104098b030dadebdd036fe288bbe0c | [
"MIT"
] | null | null | null | Estrutura de Dados/Sorts/SelectionSort/Source.cpp | boveloco/Puc | cbc3308fac104098b030dadebdd036fe288bbe0c | [
"MIT"
] | null | null | null | #pragma once
#include "Array.h"
#include "SelectionSort.h"
#include "Inimigos.h"
#include <iostream>
int compararEnergiaInimigos(Inimigos a, Inimigos b);
int main(){
Array<Inimigos> numbs(5);
numbs[0].energia = 13;
numbs[1].energia = 30;
numbs[2].energia = 20;
numbs[3].energia = 10;
numbs[4].energia = 5;
sel... | 19.212121 | 69 | 0.657729 | boveloco |
f2413268101c11fe61c3d43e27f20111c77f31f4 | 5,553 | cpp | C++ | 04_Sample/TowerDefence/Source/Tower.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2017-08-03T07:15:00.000Z | 2018-06-18T10:32:53.000Z | 04_Sample/TowerDefence/Source/Tower.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | null | null | null | 04_Sample/TowerDefence/Source/Tower.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2019-03-04T22:57:42.000Z | 2020-03-06T01:32:26.000Z | /* --------------------------------------------------------------------------
*
* File Tower.cpp
* Description
*
* Ported By Young-Hwan Mun
* Contact xmsoft77@gmail.com
*
* Created By Kirill Muzykov on 8/22/13.
*
* ---------------------------------... | 29.073298 | 128 | 0.591572 | mcodegeeks |
f2460ca1daec1f6e64ac04dc64574fc70288c57d | 2,121 | hpp | C++ | include/open-bo-api-crc64.hpp | sokoliko/open-bo-api | ddcad19163532543ad13a0398f0b0119e55d4c3d | [
"MIT"
] | 6 | 2020-02-09T06:40:03.000Z | 2021-09-08T09:38:19.000Z | include/open-bo-api-crc64.hpp | sokoliko/open-bo-api | ddcad19163532543ad13a0398f0b0119e55d4c3d | [
"MIT"
] | 3 | 2020-02-28T11:30:43.000Z | 2020-06-05T12:50:33.000Z | include/open-bo-api-crc64.hpp | sokoliko/open-bo-api | ddcad19163532543ad13a0398f0b0119e55d4c3d | [
"MIT"
] | 7 | 2020-03-24T22:31:25.000Z | 2021-11-24T17:13:56.000Z | /*
* open-bo-api - C++ API for working with binary options brokers
*
* Copyright (c) 2020 Elektro Yar. Email: git.electroyar@gmail.com
*
* 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 withou... | 32.630769 | 89 | 0.704856 | sokoliko |
f2465b2f9af69a8637fdd2e79279b20b1fc4ee81 | 986 | cpp | C++ | LeetCode/23. Merge k Sorted Lists/Solution.cpp | nik3212/challenges | b127bc66ffa27bfdef87ac402dc080f933dad893 | [
"MIT"
] | 1 | 2021-06-15T12:48:47.000Z | 2021-06-15T12:48:47.000Z | LeetCode/23. Merge k Sorted Lists/Solution.cpp | nik3212/challenges | b127bc66ffa27bfdef87ac402dc080f933dad893 | [
"MIT"
] | null | null | null | LeetCode/23. Merge k Sorted Lists/Solution.cpp | nik3212/challenges | b127bc66ffa27bfdef87ac402dc080f933dad893 | [
"MIT"
] | null | null | null | /*
23. Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
*/
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
... | 17.927273 | 98 | 0.51217 | nik3212 |
f24a6059fe50be8a4a5f21d303f9a8b110248f99 | 233 | cpp | C++ | src/caller/executor/executor.cpp | czhj/caller | 1f749bc039e731478a2a2f766445b8a14ac13063 | [
"MIT"
] | 1 | 2022-03-09T01:02:25.000Z | 2022-03-09T01:02:25.000Z | src/caller/executor/executor.cpp | czhj/caller | 1f749bc039e731478a2a2f766445b8a14ac13063 | [
"MIT"
] | null | null | null | src/caller/executor/executor.cpp | czhj/caller | 1f749bc039e731478a2a2f766445b8a14ac13063 | [
"MIT"
] | null | null | null | #include <caller/executor/executor.hpp>
CALLER_BEGIN
ExecutionContext::ExecutionContext()
{
}
ExecutionContext::~ExecutionContext()
{
}
Executor::Executor()
{
}
Executor::~Executor()
{
}
CALLER_END
| 8.961538 | 40 | 0.643777 | czhj |
f24f3f3faf0695de76ce2b2b4d575af04e5f9c12 | 70,427 | hpp | C++ | Evolutionary_Strategy_Vulkan.hpp | Harri-Renney/Survival_of_the_Synthesis-GPU_Accelerated_Frequency_Modulation_Parameter_Matcher | c70f8f2f2961148a7639fad05b3cf0d87f895c0c | [
"MIT"
] | null | null | null | Evolutionary_Strategy_Vulkan.hpp | Harri-Renney/Survival_of_the_Synthesis-GPU_Accelerated_Frequency_Modulation_Parameter_Matcher | c70f8f2f2961148a7639fad05b3cf0d87f895c0c | [
"MIT"
] | null | null | null | Evolutionary_Strategy_Vulkan.hpp | Harri-Renney/Survival_of_the_Synthesis-GPU_Accelerated_Frequency_Modulation_Parameter_Matcher | c70f8f2f2961148a7639fad05b3cf0d87f895c0c | [
"MIT"
] | null | null | null | #ifndef EVOLUTIONARY_STRATEGY_VULKAN_HPP
#define EVOLUTIONARY_STRATEGY_VULKAN_HPP
#include <math.h>
#include <array>
#include <random>
#include <chrono>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
//Graphic math types and functions//
#include <glm\glm.hpp>
#include "Evolutionary_Strategy.hpp"
#include "Benc... | 48.738408 | 458 | 0.799906 | Harri-Renney |
f25211b062c96bd4607d269177d7eee4e4c09c4a | 7,227 | cpp | C++ | Final/Dataset/B2016_Z2_Z3/student4982.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z2_Z3/student4982.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z2_Z3/student4982.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdexcept>
#include <vector>
#include <deque>
#include <type_traits>
#include <cmath>
#include <algorithm>
#include <iomanip>
int SumaCifara(long long int x)
{
int suma=0;
while(x!=0)
{
suma+=std::abs(x%10);
x=x/10;
}
return suma;
}
int SumaDjelilaca(long lon... | 22.100917 | 164 | 0.5705 | Team-PyRated |
f255aecf55b084a234b0747fedf0e3de15bf4980 | 7,619 | cpp | C++ | Necromancer/Terrain.cpp | myffx36/RenderingEngine | 38df29966b3126744fb40c2a97775ae44cea92f9 | [
"MIT"
] | null | null | null | Necromancer/Terrain.cpp | myffx36/RenderingEngine | 38df29966b3126744fb40c2a97775ae44cea92f9 | [
"MIT"
] | null | null | null | Necromancer/Terrain.cpp | myffx36/RenderingEngine | 38df29966b3126744fb40c2a97775ae44cea92f9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Terrain.h"
const float height_base = 200.0f;
namespace Necromancer {
Terrain::Terrain(const char* file_name, ID3D11Device* device)
{
std::fstream terrain_file;
terrain_file.open(file_name, std::ios::binary | std::ios::in);
terrain_file.seekg(0, std::ios::beg);
auto start_poi... | 35.110599 | 88 | 0.708229 | myffx36 |
f25c4187bd60703c16fbcb4709293a8ec00f1145 | 101 | cpp | C++ | code/code-complete/test.cpp | peter-can-talk/cpp-london | e232bf98f28b1d8b56af3af23d43a3f565221ab0 | [
"MIT"
] | 3 | 2017-02-20T23:24:47.000Z | 2019-09-09T19:15:07.000Z | code/code-complete/test.cpp | peter-can-talk/cpp-london-2017 | e232bf98f28b1d8b56af3af23d43a3f565221ab0 | [
"MIT"
] | null | null | null | code/code-complete/test.cpp | peter-can-talk/cpp-london-2017 | e232bf98f28b1d8b56af3af23d43a3f565221ab0 | [
"MIT"
] | null | null | null | struct X {
/**
* foo does things.
*/
void foo(int x) {
}
};
int main() {
X x;
x.
}
| 7.214286 | 21 | 0.405941 | peter-can-talk |
f2609badd8ff348904efaae8ae92b3112507f4fc | 8,628 | cpp | C++ | PersonDetection/PersonDetector.cpp | vohoaiviet/Human-Detection | e34acdab5af81fc2e99d686ada470a114ae3de63 | [
"MIT"
] | 28 | 2015-04-28T08:45:43.000Z | 2021-11-15T12:10:12.000Z | PersonDetection/PersonDetector.cpp | vohoaiviet/Human-Detection | e34acdab5af81fc2e99d686ada470a114ae3de63 | [
"MIT"
] | null | null | null | PersonDetection/PersonDetector.cpp | vohoaiviet/Human-Detection | e34acdab5af81fc2e99d686ada470a114ae3de63 | [
"MIT"
] | 28 | 2015-04-07T04:02:07.000Z | 2019-03-31T17:55:42.000Z | #include "StdAfx.h"
#include "PersonDetector.h"
#include <math.h>
PersonDetector::PersonDetector()
{
m_cell = cvSize(8, 8);
m_block = cvSize(2, 2);
m_winSize = cvSize(64, 128);
m_stepOverlap = 1;
classifier.SetParams(m_cell, m_block , m_stepOverlap);
startScale = 1;
scaleStep = 1.5;
m_widthStep = 8;
m_heigth... | 28.104235 | 186 | 0.663421 | vohoaiviet |
f260cce44c1ea4cd63b4a99908bfd536b9922ccb | 618 | cpp | C++ | src/game/LevelListLoader.cpp | ArthurSonzogni/InTheCube | c4a35096d962d23f6211802970ee44f77d29e38a | [
"MIT"
] | 4 | 2019-12-31T07:58:54.000Z | 2021-09-07T18:16:51.000Z | src/game/LevelListLoader.cpp | ArthurSonzogni/InTheCube | c4a35096d962d23f6211802970ee44f77d29e38a | [
"MIT"
] | null | null | null | src/game/LevelListLoader.cpp | ArthurSonzogni/InTheCube | c4a35096d962d23f6211802970ee44f77d29e38a | [
"MIT"
] | 2 | 2020-02-17T12:47:33.000Z | 2021-09-07T18:16:52.000Z | // Copyright 2020 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
#include "game/LevelListLoader.hpp"
#include <fstream>
#include <iostream>
#include "game/Resource.hpp"
std::vector<std::string> LevelListLoader() {
std::ifst... | 23.769231 | 78 | 0.669903 | ArthurSonzogni |
f26663b27836b964aeaa957327dbff9365075dc0 | 12,757 | cpp | C++ | bin/windows/cpp/obj/src/openfl/display/Tilesheet.cpp | DrSkipper/twogames | 916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b | [
"MIT"
] | null | null | null | bin/windows/cpp/obj/src/openfl/display/Tilesheet.cpp | DrSkipper/twogames | 916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b | [
"MIT"
] | null | null | null | bin/windows/cpp/obj/src/openfl/display/Tilesheet.cpp | DrSkipper/twogames | 916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b | [
"MIT"
] | null | null | null | #include <hxcpp.h>
#ifndef INCLUDED_flash_Lib
#include <flash/Lib.h>
#endif
#ifndef INCLUDED_flash_display_BitmapData
#include <flash/display/BitmapData.h>
#endif
#ifndef INCLUDED_flash_display_Graphics
#include <flash/display/Graphics.h>
#endif
#ifndef INCLUDED_flash_display_IBitmapDrawable
#include <flash/display/IB... | 35.143251 | 300 | 0.767108 | DrSkipper |
f26798529f0a2c0bbae58fdf5292113f7510975c | 431 | cpp | C++ | src/mesh/mesh.cpp | ycjungSubhuman/Kinect-Face | b582bd8572e998617b5a0d197b4ac9bd4a9b42be | [
"CNRI-Python"
] | 7 | 2018-08-12T22:05:26.000Z | 2021-05-14T08:39:32.000Z | src/mesh/mesh.cpp | ycjungSubhuman/Kinect-Face | b582bd8572e998617b5a0d197b4ac9bd4a9b42be | [
"CNRI-Python"
] | null | null | null | src/mesh/mesh.cpp | ycjungSubhuman/Kinect-Face | b582bd8572e998617b5a0d197b4ac9bd4a9b42be | [
"CNRI-Python"
] | 2 | 2019-02-14T08:29:16.000Z | 2019-03-01T07:11:17.000Z | #include <Eigen/Core>
#include <Eigen/Geometry>
#include "mesh/mesh.h"
namespace telef::mesh {
void ColorMesh::applyTransform(Eigen::MatrixXf transform) {
Eigen::Map<Eigen::Matrix3Xf> v(position.data(), 3, position.size() / 3);
Eigen::Matrix3Xf result =
(transform * v.colwise().homogeneous()).colwise().hnor... | 33.153846 | 74 | 0.698376 | ycjungSubhuman |
f26b97db07cd2c2457a94eb2ed16d8becd085010 | 963 | cpp | C++ | package/statistics/statistics_gateway/deprecated/btp_deprecated_gateway_multiton.cpp | mambaru/wfc_core | 0c3e7fba82a9bb1580582968efae02ef7fabc87a | [
"MIT"
] | null | null | null | package/statistics/statistics_gateway/deprecated/btp_deprecated_gateway_multiton.cpp | mambaru/wfc_core | 0c3e7fba82a9bb1580582968efae02ef7fabc87a | [
"MIT"
] | 5 | 2019-12-06T01:01:01.000Z | 2021-04-20T21:16:34.000Z | package/statistics/statistics_gateway/deprecated/btp_deprecated_gateway_multiton.cpp | mambaru/wfc_core | 0c3e7fba82a9bb1580582968efae02ef7fabc87a | [
"MIT"
] | null | null | null | //
// Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2015
//
// Copyright: See COPYING file that comes with this distribution
//
#include "btp_deprecated_gateway_multiton.hpp"
#include "btp_deprecated_gateway.hpp"
#include <wfc/module/multiton.hpp>
#include <wfc/module/instance.hpp>
#include <wfc/name.hpp>
... | 20.934783 | 66 | 0.695742 | mambaru |
f26c536c9a9135d1e2875932cd0d32332bcb451f | 3,571 | cpp | C++ | game-emu-common/src/binarytreememorymap.cpp | Dudejoe870/game-emu | 153b7f9b7bc56042cc6d41187688aa1d9a612830 | [
"MIT"
] | 1 | 2022-03-28T21:03:10.000Z | 2022-03-28T21:03:10.000Z | game-emu-common/src/binarytreememorymap.cpp | Dudejoe870/game-emu | 153b7f9b7bc56042cc6d41187688aa1d9a612830 | [
"MIT"
] | null | null | null | game-emu-common/src/binarytreememorymap.cpp | Dudejoe870/game-emu | 153b7f9b7bc56042cc6d41187688aa1d9a612830 | [
"MIT"
] | null | null | null | #include <game-emu/common/physicalmemorymap.h>
namespace GameEmu::Common
{
PhysicalMemoryMap::Entry* BinaryTreeMemoryMap::Map(u8* hostReadMemory, u8* hostWriteMemory, u64 size, u64 baseAddress,
Entry::ReadEventFunction readEvent, Entry::WriteEventFunction writeEvent)
{
entries.push_back(Entry(baseAddress &addres... | 25.147887 | 150 | 0.720806 | Dudejoe870 |
f26e1bf69404f9ff4878ce369c1a86cdd8c60546 | 5,364 | hpp | C++ | patterns/2020_10_19/prefab/include/prefab/IEntity.hpp | liff-engineer/articles | ad3386ef9cda5083793f485e309a9f85ab36f664 | [
"MIT"
] | 2 | 2020-12-01T06:44:41.000Z | 2021-11-22T06:07:52.000Z | patterns/2020_10_19/prefab/include/prefab/IEntity.hpp | liff-engineer/articles | ad3386ef9cda5083793f485e309a9f85ab36f664 | [
"MIT"
] | null | null | null | patterns/2020_10_19/prefab/include/prefab/IEntity.hpp | liff-engineer/articles | ad3386ef9cda5083793f485e309a9f85ab36f664 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <tuple>
#include <memory>
#include "IComponent.hpp"
namespace prefab
{
//用来操作tuple的foreach算法
template <typename Tuple, typename F, std::size_t ...Indices>
void for_each_impl(Tuple&& tuple, F&& f, std::index_sequence<Indices...>) {
using swallow = int[];
... | 27.228426 | 89 | 0.543624 | liff-engineer |
f271842da1c802a66058f6006e2a868b865d0c12 | 2,388 | hpp | C++ | include/Network/Session.hpp | Lisoph/MORL | f1c4f9a1c16df236495666fd46d76da6ac9a32af | [
"MIT"
] | 1 | 2015-05-24T17:20:06.000Z | 2015-05-24T17:20:06.000Z | include/Network/Session.hpp | Lisoph/MORL | f1c4f9a1c16df236495666fd46d76da6ac9a32af | [
"MIT"
] | 1 | 2015-05-15T20:29:58.000Z | 2015-05-15T20:29:58.000Z | include/Network/Session.hpp | Lisoph/MORL | f1c4f9a1c16df236495666fd46d76da6ac9a32af | [
"MIT"
] | null | null | null | #pragma once
#include "UdpSocket.hpp"
#include "IPEndpoint.hpp"
#include "Network/SessionState.hpp"
#include <cstdint>
#include <functional>
#include <stack>
namespace MORL {
class Game;
namespace Network {
class Session;
class StateNotRunning : public SessionState {
public:
StateNotRunning(S... | 22.528302 | 66 | 0.588358 | Lisoph |
f275bc1ce15ec5440151d3e7013dd7a10fdc3923 | 152 | cpp | C++ | 12_Sorting/HighScoreEntry.cpp | alyoshenka/CodeDesign | beb8bbf79b14cbf1cad26b1e8f58fd47c417ccdd | [
"MIT"
] | null | null | null | 12_Sorting/HighScoreEntry.cpp | alyoshenka/CodeDesign | beb8bbf79b14cbf1cad26b1e8f58fd47c417ccdd | [
"MIT"
] | null | null | null | 12_Sorting/HighScoreEntry.cpp | alyoshenka/CodeDesign | beb8bbf79b14cbf1cad26b1e8f58fd47c417ccdd | [
"MIT"
] | null | null | null | #include "HighScoreEntry.h"
HighScoreEntry::HighScoreEntry()
{
name = "noName";
score = -1;
level = -1;
}
HighScoreEntry::~HighScoreEntry()
{
}
| 9.5 | 33 | 0.657895 | alyoshenka |
f27a190e89511dc1e7eaf4ac352322b7f0cc9244 | 9,108 | cpp | C++ | src/Player.cpp | osbixaodaunb/RGBender-2.0 | 9c5e33cba50541b8288e29f56562820b3d7b0e55 | [
"MIT"
] | 4 | 2017-05-15T19:33:28.000Z | 2017-05-15T23:33:04.000Z | src/Player.cpp | osbixaodaunb/RGBender-2.0 | 9c5e33cba50541b8288e29f56562820b3d7b0e55 | [
"MIT"
] | 4 | 2017-10-04T14:29:18.000Z | 2017-10-04T14:43:52.000Z | src/Player.cpp | unbgames/RGBender | 9c5e33cba50541b8288e29f56562820b3d7b0e55 | [
"MIT"
] | 4 | 2017-05-15T19:33:37.000Z | 2017-08-18T14:12:41.000Z | #include "Player.h"
#include "SDLGameObject.h"
#include "LoaderParams.h"
#include "InputHandler.h"
#include "Bullet.h"
#include "Game.h"
#include "Log.h"
#include "Enemy.h"
#include "PlayState.h"
#include "Physics.h"
#include "AudioManager.h"
#include "GameOverState.h"
#include "Childmaiden.h"
#include "Timer.h"
#incl... | 26.553936 | 181 | 0.664361 | osbixaodaunb |
f27b60e26acb014e0db888dda596bbfd2c3c660b | 6,813 | cpp | C++ | tester/main-db-tester.cpp | hihi-dev/linphone | 45814404943a0c8a4e341dbebf5da71fc6e44b67 | [
"BSD-2-Clause"
] | null | null | null | tester/main-db-tester.cpp | hihi-dev/linphone | 45814404943a0c8a4e341dbebf5da71fc6e44b67 | [
"BSD-2-Clause"
] | null | null | null | tester/main-db-tester.cpp | hihi-dev/linphone | 45814404943a0c8a4e341dbebf5da71fc6e44b67 | [
"BSD-2-Clause"
] | null | null | null | /*
* main-db-tester.cpp
* Copyright (C) 2017 Belledonne Communications SARL
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any l... | 34.583756 | 115 | 0.719507 | hihi-dev |
f27b70324b23c204b5ef974c72beaadd47255450 | 414 | cpp | C++ | lecture5/task_6.cpp | zaneta-skiba/cpp | b02ce4252f9cf894370358fded7cfbfa3a317ead | [
"MIT"
] | null | null | null | lecture5/task_6.cpp | zaneta-skiba/cpp | b02ce4252f9cf894370358fded7cfbfa3a317ead | [
"MIT"
] | null | null | null | lecture5/task_6.cpp | zaneta-skiba/cpp | b02ce4252f9cf894370358fded7cfbfa3a317ead | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
string names[4];
cout << "Enter 4 names:" << endl;
for (int i = 0; i < 4; i++) // user enters the names
{
cout << "name " << i+1 <<": ";
cin >> names[i];
}
for (int i = 0; i < 4; i++)
{
cout <<... | 15.923077 | 79 | 0.417874 | zaneta-skiba |
f27b75f9a9f11ae8ad2f1dd03714e6a1cfdb2357 | 132 | cpp | C++ | flower_equals_win/logic/Minus.cpp | Garoli/flower-equals-win-game | c6965b9dfa38de124e3e8991a0d92509a54365df | [
"Unlicense",
"MIT"
] | null | null | null | flower_equals_win/logic/Minus.cpp | Garoli/flower-equals-win-game | c6965b9dfa38de124e3e8991a0d92509a54365df | [
"Unlicense",
"MIT"
] | null | null | null | flower_equals_win/logic/Minus.cpp | Garoli/flower-equals-win-game | c6965b9dfa38de124e3e8991a0d92509a54365df | [
"Unlicense",
"MIT"
] | null | null | null | #include "Minus.h"
Minus::Minus(char s) : Operator(s)
{
setImage("../flower_equals_win/meshes/textures/blocks/block_minus.png");
} | 26.4 | 74 | 0.727273 | Garoli |
f27b977245640cf13e6e45289e2901f7b0c05bd8 | 4,087 | cpp | C++ | Libs/DICOM/Core/Testing/Cpp/ctkDICOMTesterTest1.cpp | ntoussaint/CTK | fc7a5f78fff4c4394ee5ede2f21975c6a44dfea4 | [
"Apache-2.0"
] | 515 | 2015-01-13T05:42:10.000Z | 2022-03-29T03:10:01.000Z | Libs/DICOM/Core/Testing/Cpp/ctkDICOMTesterTest1.cpp | ntoussaint/CTK | fc7a5f78fff4c4394ee5ede2f21975c6a44dfea4 | [
"Apache-2.0"
] | 425 | 2015-01-06T05:28:38.000Z | 2022-03-08T19:42:18.000Z | Libs/DICOM/Core/Testing/Cpp/ctkDICOMTesterTest1.cpp | ntoussaint/CTK | fc7a5f78fff4c4394ee5ede2f21975c6a44dfea4 | [
"Apache-2.0"
] | 341 | 2015-01-08T06:18:17.000Z | 2022-03-29T21:47:49.000Z | /*=========================================================================
Library: CTK
Copyright (c) Kitware Inc.
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.ap... | 28.985816 | 79 | 0.571324 | ntoussaint |
f27be8659b0b452d8f4a3c58fde153b08c488f8c | 101 | hpp | C++ | source/windows.hpp | phwitti/elevate | 00e4718bcfbf2d5490a3059451d850d17c30d9b0 | [
"Unlicense"
] | 4 | 2021-02-24T23:50:18.000Z | 2021-08-08T11:56:49.000Z | src/shared/windows.hpp | phwitti/cmdhere | a8e7635780b043efb3e220c65366255d8529b615 | [
"Unlicense"
] | null | null | null | src/shared/windows.hpp | phwitti/cmdhere | a8e7635780b043efb3e220c65366255d8529b615 | [
"Unlicense"
] | null | null | null | #ifndef __PW_WINDOWS_HPP__
#define __PW_WINDOWS_HPP__
#define NOMINMAX
#include <Windows.h>
#endif
| 12.625 | 26 | 0.811881 | phwitti |
f27f8336710722dff65995ed0278c5e1a93f3a07 | 926 | cpp | C++ | ITK19_Summer_Training _2021/PreQNOI/21_08_21/e.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | 4 | 2021-08-25T10:53:32.000Z | 2021-09-30T03:25:50.000Z | ITK19_Summer_Training _2021/PreQNOI/21_08_21/e.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | null | null | null | ITK19_Summer_Training _2021/PreQNOI/21_08_21/e.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y, l, r;
cin >> x >> y >> l >> r;
long long powX = 1, powY = 1;
vector<long long> vecX, vecY, vecSum;
while (1) {
vecX.push_back(powX);
if (r / x < powX)
break;
powX *= x;
}
while (... | 21.045455 | 79 | 0.413607 | hoanghai1803 |
f28194fb10280e78290c1e8fd063a8815c6bae80 | 209 | cpp | C++ | src/stream/DirectStream.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 45 | 2018-08-24T12:57:38.000Z | 2021-11-12T11:21:49.000Z | src/stream/DirectStream.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | null | null | null | src/stream/DirectStream.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 4 | 2019-09-16T02:48:42.000Z | 2020-07-10T03:50:31.000Z | #include "DirectStream.h"
#include "../container/Buffer.h"
using namespace L;
Buffer DirectStream::read_into_buffer() {
Buffer buffer(size());
seek(0);
read(buffer, buffer.size());
return buffer;
}
| 16.076923 | 41 | 0.69378 | Lyatus |
f28b6c86a411b6fa3e1472f751d8e4235d6aa694 | 1,294 | cpp | C++ | src/Editor/Dynamic/Fields/TexturePathEditor.cpp | Tristeon/Tristeon | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 32 | 2018-06-16T20:50:15.000Z | 2022-03-26T16:57:15.000Z | src/Editor/Dynamic/Fields/TexturePathEditor.cpp | Tristeon/Tristeon2D | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 2 | 2018-10-07T17:41:39.000Z | 2021-01-08T03:14:19.000Z | src/Editor/Dynamic/Fields/TexturePathEditor.cpp | Tristeon/Tristeon2D | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 9 | 2018-06-12T21:00:58.000Z | 2021-01-08T02:18:30.000Z | #include "TexturePathEditor.h"
#include <qboxlayout.h>
#include <qdir.h>
#include <qfiledialog.h>
#include <Settings.h>
#include <AssetManagement/AssetDatabase.h>
namespace TristeonEditor
{
TexturePathEditor::TexturePathEditor(const nlohmann::json& pValue, const std::function<void(nlohmann::json)>& pCallback) : Abs... | 31.560976 | 178 | 0.697836 | Tristeon |
f290e9b9e1dfe6750502d56b139da0c12d11eefb | 2,707 | cpp | C++ | competitive_programming_3/2_data_structures_and_libraries/2.3_Non-Linear_DS_with_Built-in_Libraries/map(treemap)/978_Lemmings_Battle.cpp | FranciscoPigretti/onlinejudge_solutions | ec9368ade1faa403d0d26ad9321b030e128ae099 | [
"MIT"
] | null | null | null | competitive_programming_3/2_data_structures_and_libraries/2.3_Non-Linear_DS_with_Built-in_Libraries/map(treemap)/978_Lemmings_Battle.cpp | FranciscoPigretti/onlinejudge_solutions | ec9368ade1faa403d0d26ad9321b030e128ae099 | [
"MIT"
] | null | null | null | competitive_programming_3/2_data_structures_and_libraries/2.3_Non-Linear_DS_with_Built-in_Libraries/map(treemap)/978_Lemmings_Battle.cpp | FranciscoPigretti/onlinejudge_solutions | ec9368ade1faa403d0d26ad9321b030e128ae099 | [
"MIT"
] | null | null | null | #include <iostream> // cin, cout
#include <set>
#include <iterator>
using namespace std;
int main() {
int test_cases;
scanf("%d", &test_cases);
int B, SG, SB, current;
multiset <int, greater <int> > greens, blues;
multiset <int, greater <int> > temp_greens, temp_blues;
mult... | 27.907216 | 70 | 0.362763 | FranciscoPigretti |
f294481ff7e6dc8c20b6e4ea9d130ef1c07a09a1 | 12,105 | cpp | C++ | runtests.cpp | fguitton/mdipp | a79d207daa3bf6b2b730653d39cd270cf6295859 | [
"BSD-3-Clause"
] | 2 | 2017-11-01T16:45:16.000Z | 2021-02-24T08:29:14.000Z | runtests.cpp | fguitton/mdipp | a79d207daa3bf6b2b730653d39cd270cf6295859 | [
"BSD-3-Clause"
] | null | null | null | runtests.cpp | fguitton/mdipp | a79d207daa3bf6b2b730653d39cd270cf6295859 | [
"BSD-3-Clause"
] | 2 | 2018-03-22T16:40:51.000Z | 2018-07-16T13:05:10.000Z | #include <fstream>
#include <iostream>
#include <memory>
#include <Eigen/Dense>
#include "datatypes.hpp"
#include "utility.hpp"
std::default_random_engine generator;
template<typename T>
void
writeCsvMatrix (std::ostream &fd,
const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> &data,
const Eigen::VectorXi &a... | 26.546053 | 86 | 0.585378 | fguitton |
f295975d8918914e50a1a1e82b5b1f9a728aa1ff | 254 | cpp | C++ | ImportantExample/QIconEditorDemo/main.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 3 | 2018-12-24T19:35:52.000Z | 2022-02-04T14:45:59.000Z | ImportantExample/QIconEditorDemo/main.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | null | null | null | ImportantExample/QIconEditorDemo/main.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 1 | 2019-05-09T02:42:40.000Z | 2019-05-09T02:42:40.000Z | #include "iconeditor.h"
#include <QIcon>
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QImage icon(":/images/mouse.png");
IconEditor w;
w.setIconImage(icon);
w.show();
return a.exec();
}
| 16.933333 | 38 | 0.629921 | xiaohaijin |
f29fee79be5f44a0dd5e04a95fd2201638ea63c1 | 4,862 | cpp | C++ | src/ECS/Systems/UpdateEntityPositionSystem.cpp | novuscore/NovusCore-World | 4c0639e251cac9ae0cef601b814c575a1bfb4f2e | [
"MIT"
] | null | null | null | src/ECS/Systems/UpdateEntityPositionSystem.cpp | novuscore/NovusCore-World | 4c0639e251cac9ae0cef601b814c575a1bfb4f2e | [
"MIT"
] | null | null | null | src/ECS/Systems/UpdateEntityPositionSystem.cpp | novuscore/NovusCore-World | 4c0639e251cac9ae0cef601b814c575a1bfb4f2e | [
"MIT"
] | 2 | 2021-12-20T22:16:11.000Z | 2022-03-10T20:59:10.000Z | #include "UpdateEntityPositionSystem.h"
#include <entt.hpp>
#include <tracy/Tracy.hpp>
#include <Utils/DebugHandler.h>
#include "../../Utils/ServiceLocator.h"
#include "../Components/Singletons/MapSingleton.h"
#include "../Components/Network/ConnectionComponent.h"
#include <Gameplay/Network/PacketWriter.h>
#include <... | 37.4 | 127 | 0.567668 | novuscore |
f29feff2635c02f4971e24e5d2cf9f452cda5ce7 | 4,298 | cc | C++ | gpu/command_buffer/tests/gl_unallocated_texture_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | gpu/command_buffer/tests/gl_unallocated_texture_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | gpu/command_buffer/tests/gl_unallocated_texture_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2019 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 <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <stddef.h>
#include <stdint.h>
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buff... | 35.520661 | 79 | 0.744067 | zealoussnow |
f2a21670e5d0d880491c390727879e089abf1476 | 7,027 | cpp | C++ | Operations/albaOpImporterLandmark.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Operations/albaOpImporterLandmark.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Operations/albaOpImporterLandmark.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaOpImporterLandmark
Authors: Daniele Giunchi, Simone Brazzale
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY W... | 25.18638 | 128 | 0.588587 | IOR-BIC |
f2a38d65b98167a68d5ffc9639eab636bee17c11 | 324 | cpp | C++ | cpp/example/src/ContainerWithMostH2O/containerWithMostH2O.cpp | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | 1 | 2022-01-26T16:33:45.000Z | 2022-01-26T16:33:45.000Z | cpp/example/src/ContainerWithMostH2O/containerWithMostH2O.cpp | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | null | null | null | cpp/example/src/ContainerWithMostH2O/containerWithMostH2O.cpp | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | 1 | 2022-01-26T16:35:44.000Z | 2022-01-26T16:35:44.000Z | #include "containerWithMostH2O.h"
int containerWithMostH2O::naive(vector<int>& height){
int l=0;int r=height.size()-1;
int maxV = min(height[l],height[r])*r;
while (l<r){
if (height[l]>=height[r])r-=1;
else l+=1;
maxV = max(maxV,min(height[l],height[r])*(r-l));
}
return maxV... | 24.923077 | 56 | 0.57716 | zcemycl |
f2a96756f9c5581c82820de3bde9780e0eaad7de | 3,500 | cpp | C++ | 09/smoke_basin.t.cpp | ComicSansMS/AdventOfCode2021 | 60902d14c356c3375266703e85aca991241afc84 | [
"Unlicense"
] | null | null | null | 09/smoke_basin.t.cpp | ComicSansMS/AdventOfCode2021 | 60902d14c356c3375266703e85aca991241afc84 | [
"Unlicense"
] | null | null | null | 09/smoke_basin.t.cpp | ComicSansMS/AdventOfCode2021 | 60902d14c356c3375266703e85aca991241afc84 | [
"Unlicense"
] | null | null | null | #include <smoke_basin.hpp>
#include <catch.hpp>
#include <sstream>
TEST_CASE("Smoke Basin")
{
char const sample_input[] = "2199943210" "\n"
"3987894921" "\n"
"9856789892" "\n"
"8767896789" "\n"
... | 31.25 | 69 | 0.369429 | ComicSansMS |
f2ae2ff61ab14da82b661a799256e159355fbb26 | 1,054 | cpp | C++ | Source/PracticeVeter/Characters/Animations/BaseCharacterAnimInstance.cpp | mile634/ExperimentalUE | 20a7b13af43c79e7b53920b25b451da9212429e3 | [
"MIT"
] | null | null | null | Source/PracticeVeter/Characters/Animations/BaseCharacterAnimInstance.cpp | mile634/ExperimentalUE | 20a7b13af43c79e7b53920b25b451da9212429e3 | [
"MIT"
] | null | null | null | Source/PracticeVeter/Characters/Animations/BaseCharacterAnimInstance.cpp | mile634/ExperimentalUE | 20a7b13af43c79e7b53920b25b451da9212429e3 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "BaseCharacterAnimInstance.h"
#include "PracticeVeter/Characters/BaseCharacter.h"
#include "PracticeVeter/Components/MovementComponents/MyBaseCharacterMovementComponent.h"
void UBaseCharacterAnimInstance::NativeBeginPlay()
{
Su... | 31.939394 | 113 | 0.805503 | mile634 |
f2b21addfdadd2d17c3507ad5a4b634ba8889390 | 741 | cpp | C++ | DataStructure/c++/Linked-list/Remove loop in Linked List.cpp | Sauradip07/DataStructures-and-Algorithm | d782e2e5cf2caedce7202c4aac43ee0ca3a0c285 | [
"MIT"
] | 17 | 2021-09-13T14:50:29.000Z | 2022-01-07T10:53:35.000Z | DataStructure/c++/Linked-list/Remove loop in Linked List.cpp | Manish4Kumar/DataStructures-and-Algorithm | 7f3b156af8b380a0a2785782e6437a6cc5835448 | [
"MIT"
] | 15 | 2021-10-01T04:13:32.000Z | 2021-11-05T07:49:55.000Z | DataStructure/c++/Linked-list/Remove loop in Linked List.cpp | Manish4Kumar/DataStructures-and-Algorithm | 7f3b156af8b380a0a2785782e6437a6cc5835448 | [
"MIT"
] | 11 | 2021-09-23T14:37:03.000Z | 2021-11-04T13:22:17.000Z | Remove loop in Linked List : https://practice.geeksforgeeks.org/problems/remove-loop-in-linked-list/1#
solution:
void removeLoop(Node* head)
{
Node* low=head;
Node* high=head;
while(low!=NULL and high!=NULL and high->next!=NULL){
low=low->next;
high=high-... | 25.551724 | 102 | 0.453441 | Sauradip07 |
f2b290c54fb16b4f60d60b2c9d8596e02023abc1 | 2,542 | cxx | C++ | periphery/gpio.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | periphery/gpio.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | periphery/gpio.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | /*
* gpio.cxx
*
* Created on: 30 июля 2014 г.
* Author: root
*/
#include "gpio.h"
eErrorTp GpioInInit(u8 gpio)
{
string str;
str= "echo \"" + intToString(gpio) + "\"> /sys/class/gpio/export";
printf("%s\n",str.c_str());
system(str.c_str());
str= "echo \"in\" > /sys/class/gpio/gpio"+intToString(gpio)+... | 21.542373 | 103 | 0.623131 | trotill |
f2b73aff2628270efc7aad6f35bc915ff0db6efe | 791 | cpp | C++ | test_storage.cpp | squeek502/sol2 | f4434393ce820dca0bcbc3a5e74bd3100dbe51b9 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | test_storage.cpp | squeek502/sol2 | f4434393ce820dca0bcbc3a5e74bd3100dbe51b9 | [
"MIT"
] | null | null | null | test_storage.cpp | squeek502/sol2 | f4434393ce820dca0bcbc3a5e74bd3100dbe51b9 | [
"MIT"
] | null | null | null | #define SOL_CHECK_ARGUMENTS
#include <catch.hpp>
#include <sol.hpp>
TEST_CASE("storage/registry=construction", "ensure entries from the registry can be retrieved") {
const auto& script = R"(
function f()
return 2
end
)";
sol::state lua;
sol::function f = lua["f"];
sol::reference r = lua["f"];
sol::function ... | 22.6 | 119 | 0.676359 | squeek502 |
f2bb6efe0f31897af8c8c46b56d5e298bf6d645d | 385 | hpp | C++ | library/ATF/tagLITEM.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/tagLITEM.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/tagLITEM.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct tagLITEM
{
unsigned int mask;
int iLink;
unsigned int state;
unsigned int stateMask;
wchar_t... | 20.263158 | 108 | 0.657143 | lemkova |
f2bcb1eb081756a5c394ddceead203a6b2b9a8fe | 515 | hpp | C++ | Engine/Code/Engine/Math/Ray2.hpp | tonyatpeking/SmuSpecialTopic | b61d44e4efacb3c504847deb4d00234601bca49c | [
"MIT"
] | null | null | null | Engine/Code/Engine/Math/Ray2.hpp | tonyatpeking/SmuSpecialTopic | b61d44e4efacb3c504847deb4d00234601bca49c | [
"MIT"
] | null | null | null | Engine/Code/Engine/Math/Ray2.hpp | tonyatpeking/SmuSpecialTopic | b61d44e4efacb3c504847deb4d00234601bca49c | [
"MIT"
] | 1 | 2019-10-02T01:48:54.000Z | 2019-10-02T01:48:54.000Z | #pragma once
#include "Engine/Math/Vec2.hpp"
class Ray3;
class Ray2
{
public:
// This is not normalized so that the Evaluate T will match with the 3D version
static Ray2 FromRay3XZ( const Ray3& ray3 );
Ray2() {};
Ray2( const Vec2& point, const Vec2& dir );
~Ray2() {};
void SetStartEnd( const ... | 21.458333 | 83 | 0.642718 | tonyatpeking |
f2bec613e0307a903f3c93b54430727aa51028ac | 583 | cpp | C++ | src/actions/ActionableObject.cpp | MiKlTA/Lust_The_Game | aabe4a951ffd7305526466d378ba8b6769c555e8 | [
"MIT"
] | null | null | null | src/actions/ActionableObject.cpp | MiKlTA/Lust_The_Game | aabe4a951ffd7305526466d378ba8b6769c555e8 | [
"MIT"
] | null | null | null | src/actions/ActionableObject.cpp | MiKlTA/Lust_The_Game | aabe4a951ffd7305526466d378ba8b6769c555e8 | [
"MIT"
] | null | null | null | #include "Action.h"
#include "ActionableObject.h"
namespace lust {
void ActionableObject::addAction(Action *action)
{
m_dependentActions.insert(action);
}
void ActionableObject::removeAction(const Action *action)
{
auto found = std::find(
m_dependentActions.begin(), m_dependentActions.en... | 15.342105 | 76 | 0.620926 | MiKlTA |
f2c02db8e7fd5f2bcfd0e65349df14eaf893ed56 | 13,140 | cpp | C++ | src/parser/parser.cpp | toebsen/angreal | 772f0b2499ef9b121322f80f2dacdb8754180c38 | [
"MIT"
] | 4 | 2020-08-30T21:10:47.000Z | 2021-12-28T13:13:21.000Z | src/parser/parser.cpp | toebsen/angreal | 772f0b2499ef9b121322f80f2dacdb8754180c38 | [
"MIT"
] | 12 | 2020-05-14T12:25:54.000Z | 2021-08-01T11:01:23.000Z | src/parser/parser.cpp | toebsen/angreal | 772f0b2499ef9b121322f80f2dacdb8754180c38 | [
"MIT"
] | null | null | null | //
// Created by bichlmaier on 07.02.2020.
//
#include "parser.h"
namespace angreal::parser {
Parser::Parser(const error_handler_t& error_handler)
: error_handler_(error_handler) {}
template <typename Type, typename... Args>
std::shared_ptr<Type> Parser::MakeASTNode(Args&&... args) {
{
... | 31.211401 | 81 | 0.59863 | toebsen |
f2c03315b9f772048e9285a63a30d5021f782a3e | 1,800 | cpp | C++ | client/src/user_interface/game_over.cpp | dima1997/PORTAL_2D_copy | 7618d970feded3fc05fda0c422a5d76a1d3056c7 | [
"MIT"
] | null | null | null | client/src/user_interface/game_over.cpp | dima1997/PORTAL_2D_copy | 7618d970feded3fc05fda0c422a5d76a1d3056c7 | [
"MIT"
] | null | null | null | client/src/user_interface/game_over.cpp | dima1997/PORTAL_2D_copy | 7618d970feded3fc05fda0c422a5d76a1d3056c7 | [
"MIT"
] | null | null | null | #include "../../includes/user_interface/game_over.h"
#include "ui_GameOver.h"
#include "../../includes/threads/play_result.h"
#include <QWidget>
#include <QDesktopWidget>
#include <string>
#define WINDOW_WIDTH 640
#define WINDOW_HEIGHT 480
/*
PRE: Recibe un resultado de juego.
POST:Iniicaliza una ventana de fin d... | 28.571429 | 80 | 0.707778 | dima1997 |
f2c0b8fb27d8d25f924b9a57f850141d94ee4687 | 9,663 | cp | C++ | MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Authentication_Panels/CPrefsAccountAuth.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Authentication_Panels/CPrefsAccountAuth.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Authentication_Panels/CPrefsAccountAuth.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless re... | 26.841667 | 107 | 0.732381 | mulberry-mail |
f2c10f99fbebf3fd599e1bcd8fd28bbbfa8ac15a | 676 | cpp | C++ | binary-tree/check-if-subtree.cpp | Strider-7/code | e096c0d0633b53a07bf3f295cb3bd685b694d4ce | [
"MIT"
] | null | null | null | binary-tree/check-if-subtree.cpp | Strider-7/code | e096c0d0633b53a07bf3f295cb3bd685b694d4ce | [
"MIT"
] | null | null | null | binary-tree/check-if-subtree.cpp | Strider-7/code | e096c0d0633b53a07bf3f295cb3bd685b694d4ce | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct Node
{
int data;
Node *left;
Node *right;
Node(int x)
{
data = x;
left = nullptr;
right = nullptr;
}
};
bool isIdentical(Node* T, Node* S) {
if (!T && !S)
return true;
if (!T || !S... | 18.27027 | 99 | 0.486686 | Strider-7 |
f2c43230a7babcb209a2c7b93636ad6da4111bc2 | 755 | cpp | C++ | ReeeEngine/src/ReeeEngine/Rendering/Context/SampleState.cpp | Lewisscrivens/ReeeEngine | abb31ef7e1adb553fafe02c4f9bd60ceb520acbf | [
"MIT"
] | null | null | null | ReeeEngine/src/ReeeEngine/Rendering/Context/SampleState.cpp | Lewisscrivens/ReeeEngine | abb31ef7e1adb553fafe02c4f9bd60ceb520acbf | [
"MIT"
] | null | null | null | ReeeEngine/src/ReeeEngine/Rendering/Context/SampleState.cpp | Lewisscrivens/ReeeEngine | abb31ef7e1adb553fafe02c4f9bd60ceb520acbf | [
"MIT"
] | null | null | null | #include "SampleState.h"
namespace ReeeEngine
{
SampleState::SampleState(Graphics& graphics)
{
// Create sampler default options for UV read type.
D3D11_SAMPLER_DESC samplerOptions = {};
samplerOptions.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;
samplerOptions.AddressU = D3D11_TEXTURE_ADDRESS_WRAP;
samplerOp... | 31.458333 | 86 | 0.778808 | Lewisscrivens |
f2c4b177991326df24f69a82d0f92a72c44a23c9 | 3,632 | cpp | C++ | 03/minik/src/target_x86/x86_conv.cpp | nokia-wroclaw/nokia-book | dd397958b5db039a2f53e555c2becfc419065264 | [
"MIT"
] | 104 | 2015-06-30T07:41:42.000Z | 2022-02-28T08:56:37.000Z | 03/minik/src/target_x86/x86_conv.cpp | nokia-wroclaw/nokia-book | dd397958b5db039a2f53e555c2becfc419065264 | [
"MIT"
] | null | null | null | 03/minik/src/target_x86/x86_conv.cpp | nokia-wroclaw/nokia-book | dd397958b5db039a2f53e555c2becfc419065264 | [
"MIT"
] | 22 | 2015-06-11T14:40:49.000Z | 2021-12-27T19:13:11.000Z | #include "analysis/control_flow_graph.hpp"
#include "analysis/live_variables.hpp"
#include "ir/ir_printer.hpp"
#include "x86_assembler.hpp"
#include "x86_conv.hpp"
#include "utils/headers.hpp"
#include <list>
#include <iostream>
namespace
{
Ir::Block rewrite_block(SymbolTable &st, const Ir::Block &_block)
{
Ir:... | 27.725191 | 122 | 0.528359 | nokia-wroclaw |
f2c4dc83ec8d1f9807509068206be97a0cce3eb0 | 407 | cc | C++ | examples/Example3/main.cc | stognini/AdePT | 9a106b83f421938ad8f4d8567d199c84f339e6c9 | [
"Apache-2.0"
] | null | null | null | examples/Example3/main.cc | stognini/AdePT | 9a106b83f421938ad8f4d8567d199c84f339e6c9 | [
"Apache-2.0"
] | null | null | null | examples/Example3/main.cc | stognini/AdePT | 9a106b83f421938ad8f4d8567d199c84f339e6c9 | [
"Apache-2.0"
] | null | null | null | // SPDX-FileCopyrightText: 2020 CERN
// SPDX-License-Identifier: Apache-2.0
#include "common.h"
#include "loop.h"
#include <iostream>
int main(int argc, char **argv)
{
if (argc != 2) {
std::cout << "Usage: " << argv[0] << " nparticles" << std::endl;
return 0;
}
int nparticles = std::atoi(argv[1]);
#ifndef _... | 15.653846 | 66 | 0.653563 | stognini |
f2d318974ca25caa783bfda28c4121b7d15a1c02 | 354 | cpp | C++ | src/L/L1226.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/L/L1226.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/L/L1226.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
string s;
string o;
main(){
long long a;
bool first=true;
cin>>a;
s+=to_string(a);
sort(s.begin(),s.end());
for(int i=2;i<=9;i++){
o.clear();
o+=to_string(a*i);
sort(o.begin(),o.end());
if(s==o){
if(!first) cout<<" ";
cout<<i;
first=false;
}
}
if(f... | 14.16 | 26 | 0.553672 | wlhcode |
f2d7680e1d2d38fcd1f235c4d44731acfc3b1834 | 11,285 | hpp | C++ | src/core/TChem_KineticModelGasConstData.hpp | sandialabs/TChem | c9d00d7d283c8687a5aa4549161e29a08d3d39d6 | [
"BSD-2-Clause"
] | 30 | 2020-10-28T08:07:36.000Z | 2022-03-29T15:22:30.000Z | src/core/TChem_KineticModelGasConstData.hpp | sandialabs/TChem | c9d00d7d283c8687a5aa4549161e29a08d3d39d6 | [
"BSD-2-Clause"
] | 2 | 2021-02-22T21:47:47.000Z | 2022-03-16T16:38:07.000Z | src/core/TChem_KineticModelGasConstData.hpp | sandialabs/TChem | c9d00d7d283c8687a5aa4549161e29a08d3d39d6 | [
"BSD-2-Clause"
] | 10 | 2020-10-28T01:11:41.000Z | 2021-06-16T08:15:28.000Z | /* =====================================================================================
TChem version 2.0
Copyright (2020) NTESS
https://github.com/sandialabs/TChem
Copyright 2020 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Governme... | 38.780069 | 104 | 0.718121 | sandialabs |
f2dddfbc6249d58b917232fc7819daa05d380ca0 | 1,276 | hpp | C++ | include/tdc/util/lcp.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 1 | 2021-05-06T13:39:22.000Z | 2021-05-06T13:39:22.000Z | include/tdc/util/lcp.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 1 | 2020-03-07T08:05:20.000Z | 2020-03-07T08:05:20.000Z | include/tdc/util/lcp.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 2 | 2020-05-27T07:54:43.000Z | 2021-11-18T13:29:14.000Z | #pragma once
namespace tdc {
/// \brief Computes the LCP array from the suffix array using Kasai's algorithm.
/// \tparam char_t the character type
/// \tparam idx_t the suffix/LCP array entry type
/// \param text the input text, assuming to be zero-terminated
/// \param n the length of the input text including the z... | 29 | 111 | 0.554859 | herlez |
f2de2cd3f4565129763b927dfd000cad5c946085 | 58 | hpp | C++ | src/boost_mpl_aux__preprocessed_no_ctps_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_aux__preprocessed_no_ctps_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_aux__preprocessed_no_ctps_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/aux_/preprocessed/no_ctps/vector.hpp>
| 29 | 57 | 0.810345 | miathedev |
f2deba7cbaf90053e5c47ad9cee572e1fc63afc3 | 18,693 | cpp | C++ | src/lua/state.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/lua/state.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/lua/state.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "lcv.hpp"
#include "lvalue.hpp"
#include "../sdl/rw.hpp"
#include "../apppath.hpp"
#include "rewindtop.hpp"
#include "lubee/src/freelist.hpp"
extern "C" {
#include <lauxlib.h>
#include <lualib.h>
}
namespace rev {
// ----------------- LuaState::Exceptions -----------------
LuaState::EBase::EBase(const std... | 27.530191 | 102 | 0.658375 | degarashi |
f2e7dfd0dc05993a7fe9ccf12d63dcea44e78dc0 | 412 | cc | C++ | src/code_complete_cache.cc | Gei0r/cquery | 6ff8273e8b8624016f9363f444acfee30c4bbf64 | [
"MIT"
] | null | null | null | src/code_complete_cache.cc | Gei0r/cquery | 6ff8273e8b8624016f9363f444acfee30c4bbf64 | [
"MIT"
] | null | null | null | src/code_complete_cache.cc | Gei0r/cquery | 6ff8273e8b8624016f9363f444acfee30c4bbf64 | [
"MIT"
] | null | null | null | #include "code_complete_cache.h"
void CodeCompleteCache::WithLock(std::function<void()> action) {
std::lock_guard<std::mutex> lock(mutex_);
action();
}
bool CodeCompleteCache::IsCacheValid(lsTextDocumentPositionParams position) {
std::lock_guard<std::mutex> lock(mutex_);
return cached_path_ == position.textDo... | 34.333333 | 77 | 0.759709 | Gei0r |
f2e9881742fc1b942ac3a60416ebf51b41d9dfbe | 829 | cpp | C++ | Olamundo/freq_0502/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | Olamundo/freq_0502/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | Olamundo/freq_0502/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | #include <iostream>
/*Ordenação por referência
Complete o programa dado para que com apenas uma chamada
para o procedimento ordenarTres, os valores das variáveis a, b e c sejam colocados em ordem crescente.
Note que nenhuma alteração da função main nem do procedimento ordenarTres é necessária.*/
using namespace std... | 18.840909 | 102 | 0.640531 | tosantos1 |
f2e9b05f3c16a26d7f319ac7e9a8750d8943d941 | 8,390 | cpp | C++ | Testbeds/GTests/twEventTest.cpp | microqq/TwinkleGraphics | e3975dc6dad5b6b8d5db1d54e30e815072db162e | [
"MIT"
] | null | null | null | Testbeds/GTests/twEventTest.cpp | microqq/TwinkleGraphics | e3975dc6dad5b6b8d5db1d54e30e815072db162e | [
"MIT"
] | 1 | 2020-07-03T03:13:39.000Z | 2020-07-03T03:13:39.000Z | Testbeds/GTests/twEventTest.cpp | microqq/TwinkleGraphics | e3975dc6dad5b6b8d5db1d54e30e815072db162e | [
"MIT"
] | null | null | null |
#include <functional>
#include <string>
#include <gtest/gtest.h>
#include "twEventHandler.h"
#include "twEventManager.h"
#include "twConsoleLog.h"
using namespace TwinkleGraphics;
class SampleListener
{
public:
SampleListener(){}
~SampleListener(){}
void OnBaseEvent(Object::Ptr sender, BaseEventArgs::P... | 33.031496 | 152 | 0.682956 | microqq |
f2edbea3f6ac2b4c696a67227a8cf853d76b3482 | 4,716 | cpp | C++ | src/vi/vi_db.cpp | liulixinkerry/ripple | 330522a61bcf1cf290c100ce4686ed62dcdc5cab | [
"Unlicense"
] | 7 | 2021-01-25T04:28:38.000Z | 2021-11-20T04:14:14.000Z | src/vi/vi_db.cpp | Xingquan-Li/ripple | 330522a61bcf1cf290c100ce4686ed62dcdc5cab | [
"Unlicense"
] | 3 | 2021-02-25T08:13:41.000Z | 2022-02-25T16:37:16.000Z | src/vi/vi_db.cpp | Xingquan-Li/ripple | 330522a61bcf1cf290c100ce4686ed62dcdc5cab | [
"Unlicense"
] | 8 | 2021-02-27T13:52:25.000Z | 2021-11-15T08:01:02.000Z | #include "../db/db.h"
using namespace db;
#include "vi.h"
using namespace vi;
#include "../ut/utils.h"
void Geometry::draw(Visualizer* v, const Layer& L) const {
if ((L.rIndex >= 0 || L.cIndex >= 0) && layer != L) {
return;
}
if (layer.rIndex >= 0) {
v->setFillColor(v->scheme.metalFill[l... | 28.756098 | 84 | 0.516327 | liulixinkerry |
f2ef082ffdb2d2c0b7d783d0c5183936fe35c4aa | 543 | hpp | C++ | OptionsState.hpp | nathiss/ticTacToe | e51866b66dda3fe92e82450a7732ad175eb1c96c | [
"MIT"
] | null | null | null | OptionsState.hpp | nathiss/ticTacToe | e51866b66dda3fe92e82450a7732ad175eb1c96c | [
"MIT"
] | null | null | null | OptionsState.hpp | nathiss/ticTacToe | e51866b66dda3fe92e82450a7732ad175eb1c96c | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include <SFML/Graphics.hpp>
#include "State.hpp"
#include "SettingsBag.hpp"
#include "MapCell.hpp"
class OptionsState : public State {
public:
OptionsState(std::shared_ptr<sf::RenderWindow>);
~OptionsState();
static uint8_t player;
static uint8_t computer;
virtua... | 20.884615 | 52 | 0.694291 | nathiss |
f2f3834523da7253561a9831549f255536882d88 | 4,689 | inl | C++ | include/quadtree.inl | MaxAlzner/libtree | 80501e15fdec77e1f1824b46ebd3ae1c1cedd7f8 | [
"MIT"
] | null | null | null | include/quadtree.inl | MaxAlzner/libtree | 80501e15fdec77e1f1824b46ebd3ae1c1cedd7f8 | [
"MIT"
] | null | null | null | include/quadtree.inl | MaxAlzner/libtree | 80501e15fdec77e1f1824b46ebd3ae1c1cedd7f8 | [
"MIT"
] | null | null | null | #pragma once
template <typename T> inline bool quadnode_t<T>::empty() const
{
return this->_tree == 0 || this->_ring < 0 || this->_branch < 0;
}
template <typename T> inline size_t quadnode_t<T>::index() const
{
return tree_index(this->_ring, this->_branch, 4);
}
template <typename T> inline quaditerator_t<T> quad... | 26.342697 | 126 | 0.656856 | MaxAlzner |
f2f99b32899966a08f5aa199583f70adc9ac009d | 3,575 | tcc | C++ | src/utils/json/parser.tcc | unbornchikken/reflect-cpp | 1a9a3d107c952406d3b7cae4bc5a6a23d566ea4f | [
"BSD-2-Clause"
] | 45 | 2015-03-24T09:35:46.000Z | 2021-05-06T11:50:34.000Z | src/utils/json/parser.tcc | unbornchikken/reflect-cpp | 1a9a3d107c952406d3b7cae4bc5a6a23d566ea4f | [
"BSD-2-Clause"
] | null | null | null | src/utils/json/parser.tcc | unbornchikken/reflect-cpp | 1a9a3d107c952406d3b7cae4bc5a6a23d566ea4f | [
"BSD-2-Clause"
] | 11 | 2015-01-27T12:08:21.000Z | 2020-08-29T16:34:13.000Z | /* parser.tcc -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 12 Apr 2015
FreeBSD-style copyright and disclaimer apply
*/
#include "json.h"
#pragma once
namespace reflect {
namespace json {
/******************************************************************************/
/* GENER... | 23.064516 | 80 | 0.53958 | unbornchikken |
f2f9f2b8b37680de67e251215bbab012254aa65a | 290 | hpp | C++ | src/Game.hpp | ara159/snake | c65b25ab50a4b867f941c0a5406a11071ff80b78 | [
"MIT"
] | null | null | null | src/Game.hpp | ara159/snake | c65b25ab50a4b867f941c0a5406a11071ff80b78 | [
"MIT"
] | null | null | null | src/Game.hpp | ara159/snake | c65b25ab50a4b867f941c0a5406a11071ff80b78 | [
"MIT"
] | null | null | null | #ifndef GAME_H
#define GAME_H 1
#include "SFML/Graphics.hpp"
#include "Snake.hpp"
using namespace sf;
class Game
{
private:
RenderWindow * window;
void run();
void event_handler();
void draw();
Snake snake;
public:
Game();
~Game();
void start();
};
#endif | 13.181818 | 28 | 0.627586 | ara159 |
f2fa9b0bf14591422adab530b477db47bd3dab0a | 14,020 | cpp | C++ | Source/Native/MouriOptimizationPlugin/MoManageCompactOS.cpp | bryanwills/NSudo | 54ebd8092c3b2d4a89576d669ed123e23651ae77 | [
"MIT"
] | 1,363 | 2016-06-30T07:16:09.000Z | 2022-03-30T09:50:08.000Z | Source/Native/MouriOptimizationPlugin/MoManageCompactOS.cpp | bryanwills/NSudo | 54ebd8092c3b2d4a89576d669ed123e23651ae77 | [
"MIT"
] | 70 | 2017-04-29T11:17:33.000Z | 2022-03-26T06:31:11.000Z | Source/Native/MouriOptimizationPlugin/MoManageCompactOS.cpp | bryanwills/NSudo | 54ebd8092c3b2d4a89576d669ed123e23651ae77 | [
"MIT"
] | 206 | 2016-07-03T02:22:05.000Z | 2022-03-25T02:47:24.000Z | /*
* PROJECT: Mouri Optimization Plugin
* FILE: MoManageCompactOS.cpp
* PURPOSE: Implementation for Manage Compact OS
*
* LICENSE: The MIT License
*
* DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com)
*/
#include "MouriOptimizationPlugin.h"
#include <string>
#include <vector>
namespace
{
... | 32.155963 | 79 | 0.414194 | bryanwills |
f2ffc7cc13c60374f92699e9abddec3f51196fdc | 3,184 | cpp | C++ | dynamic programming/dp3-27 gfg-leetcode/dp3 - 300. Longest Increasing Subsequence.cpp | ankithans/dsa | 32aeeff1b4eeebcc8c18fdb1b95ee1dd123f8443 | [
"MIT"
] | 1 | 2021-09-16T07:01:46.000Z | 2021-09-16T07:01:46.000Z | dynamic programming/dp3-27 gfg-leetcode/dp3 - 300. Longest Increasing Subsequence.cpp | ankithans/dsa | 32aeeff1b4eeebcc8c18fdb1b95ee1dd123f8443 | [
"MIT"
] | null | null | null | dynamic programming/dp3-27 gfg-leetcode/dp3 - 300. Longest Increasing Subsequence.cpp | ankithans/dsa | 32aeeff1b4eeebcc8c18fdb1b95ee1dd123f8443 | [
"MIT"
] | 1 | 2021-10-19T06:48:48.000Z | 2021-10-19T06:48:48.000Z | // 0 1 2 3 4 5 6 7
// [10,9,2,5,3,7,101,18]
// o/p = 4 [2,3,7,101]
// idx -> f -> LIS
// (0, [])
// 2 (1, [10]) (1, [])
// (2,[10]) (2,[9]) (2,[])
// (3,[10]) ... | 26.983051 | 143 | 0.47142 | ankithans |
f2ffca4a66451085ebad8884a6f3a40914c630c0 | 759 | cpp | C++ | src/506.cpp | MoRunChang2015/LeetCode | d046083b952811dfbf5f8fb646060836a3e937ce | [
"Apache-2.0"
] | null | null | null | src/506.cpp | MoRunChang2015/LeetCode | d046083b952811dfbf5f8fb646060836a3e937ce | [
"Apache-2.0"
] | null | null | null | src/506.cpp | MoRunChang2015/LeetCode | d046083b952811dfbf5f8fb646060836a3e937ce | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
vector<string> findRelativeRanks(vector<int>& nums) {
vector<pair<int, int>> v;
for (int i = 0; i < nums.size(); ++i) {
v.push_back({nums[i], i});
}
sort(v.begin(), v.end());
vector<string> ans(nums.size());
for (int i = 0; i < num... | 31.625 | 62 | 0.417655 | MoRunChang2015 |
8402cf8233496ce59dc4677557df3e787ed7dc5c | 7,948 | cc | C++ | src/comm/communicator_collective.cc | akkaze/rdc | 76e85e3fe441e3ba968a190d9496f467b9d4d2e6 | [
"BSD-3-Clause"
] | 52 | 2018-10-08T01:56:15.000Z | 2021-03-14T12:19:51.000Z | src/comm/communicator_collective.cc | akkaze/rdc | 76e85e3fe441e3ba968a190d9496f467b9d4d2e6 | [
"BSD-3-Clause"
] | null | null | null | src/comm/communicator_collective.cc | akkaze/rdc | 76e85e3fe441e3ba968a190d9496f467b9d4d2e6 | [
"BSD-3-Clause"
] | 3 | 2019-01-02T05:17:28.000Z | 2020-01-06T03:53:12.000Z | #include "comm/communicator_base.h"
#include "comm/communicator_manager.h"
namespace rdc {
namespace comm {
void Communicator::TryAllreduce(Buffer sendrecvbuf, ReduceFunction reducer) {
if (sendrecvbuf.size_in_bytes() >
CommunicatorManager::Get()->reduce_ring_mincount()) {
return this->TryAllreduce... | 38.582524 | 78 | 0.612355 | akkaze |
8404279ffd536f25360485833c7e0df1f9a555f5 | 2,249 | cpp | C++ | src/minhook_api.cpp | MG4vQIs7Fv/PerformanceOverhaulCyberpunk | 4fb6e34752ce7c286357cf148d0b4096d4ca32ea | [
"MIT"
] | 26 | 2019-10-28T00:14:18.000Z | 2022-03-05T22:26:46.000Z | src/minhook_api.cpp | MG4vQIs7Fv/PerformanceOverhaulCyberpunk | 4fb6e34752ce7c286357cf148d0b4096d4ca32ea | [
"MIT"
] | null | null | null | src/minhook_api.cpp | MG4vQIs7Fv/PerformanceOverhaulCyberpunk | 4fb6e34752ce7c286357cf148d0b4096d4ca32ea | [
"MIT"
] | 7 | 2019-10-28T03:21:19.000Z | 2022-03-25T11:05:43.000Z | #include "common.hpp"
#include "minhook_api.hpp"
#include "minhook.h"
namespace minhook_api {
#if defined(USE_MINHOOK) && (USE_MINHOOK == 1)
void init() {
if(MH_Initialize() != MH_OK) {
DEBUG_TRACE("MH_Initialize : failed\n");
}
}
void cleanup() {
MH_Uninitialize();
}
#else
void init() {}
void cl... | 28.833333 | 142 | 0.638061 | MG4vQIs7Fv |
8405943d2334623503f09655d041c70e5d8bc794 | 483 | cpp | C++ | C++ STL Programming/C++_STL_Programming/Operator_Overloading/06_PlusOperatorFuncion.cpp | devgunho/Cpp_AtoZ | 4d87f22671a4eab06ca35b32c9b7f8f9abadb2bc | [
"MIT"
] | 1 | 2022-03-25T06:11:06.000Z | 2022-03-25T06:11:06.000Z | C++ STL Programming/C++_STL_Programming/Operator_Overloading/06_PlusOperatorFuncion.cpp | devgunho/Cpp_AtoZ | 4d87f22671a4eab06ca35b32c9b7f8f9abadb2bc | [
"MIT"
] | null | null | null | C++ STL Programming/C++_STL_Programming/Operator_Overloading/06_PlusOperatorFuncion.cpp | devgunho/Cpp_AtoZ | 4d87f22671a4eab06ca35b32c9b7f8f9abadb2bc | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class Point
{
int x;
int y;
public:
Point(int _x = 0, int _y = 0) :x(_x), y(_y) {}
void Print() const { cout << x << ',' << y << endl; }
const Point operator+(const Point& arg) const
{
Point pt;
pt.x = this->x + arg.x;
pt.y = this->y + arg.y;
return pt;
}
};
in... | 16.1 | 54 | 0.554865 | devgunho |
8406a1d0255cf5abbe189d3c0beeb27a9a93973a | 389 | hpp | C++ | src/firmware/src/websocket/socket_server.hpp | geaz/tableDisco | 1f081a0372da835150881da245dc69d97dcaabe3 | [
"MIT"
] | 1 | 2020-05-26T01:45:04.000Z | 2020-05-26T01:45:04.000Z | src/firmware/src/websocket/socket_server.hpp | geaz/tableDisco | 1f081a0372da835150881da245dc69d97dcaabe3 | [
"MIT"
] | null | null | null | src/firmware/src/websocket/socket_server.hpp | geaz/tableDisco | 1f081a0372da835150881da245dc69d97dcaabe3 | [
"MIT"
] | null | null | null | #pragma once
#ifndef SOCKETSERVER_H
#define SOCKETSERVER_H
#include <WebSocketsServer.h>
namespace TableDisco
{
class SocketServer
{
public:
SocketServer();
void loop();
void broadcast(String data);
private:
WebSocketsServer... | 17.681818 | 62 | 0.586118 | geaz |
8406dca80a0a5d0c040e297255c6eae5b07d4f27 | 2,391 | cpp | C++ | src/index_handler/index_file_handler.cpp | robinren03/database2021 | 50074b6fdab2bcd5d4c95870f247cfb430804081 | [
"Apache-2.0"
] | null | null | null | src/index_handler/index_file_handler.cpp | robinren03/database2021 | 50074b6fdab2bcd5d4c95870f247cfb430804081 | [
"Apache-2.0"
] | null | null | null | src/index_handler/index_file_handler.cpp | robinren03/database2021 | 50074b6fdab2bcd5d4c95870f247cfb430804081 | [
"Apache-2.0"
] | 1 | 2022-01-11T08:20:41.000Z | 2022-01-11T08:20:41.000Z | #include "index_file_handler.h"
#include <assert.h>
IndexFileHandler::IndexFileHandler(BufManager* _bm){
bm = _bm;
header = new IndexFileHeader;
}
void IndexFileHandler::openFile(const char* fileName){
fileID = bm->openFile(fileName);
int headerIndex;
if (fileID == -1){
bm->createFile(fileN... | 29.158537 | 98 | 0.634044 | robinren03 |
840c144708b1a8d9abcb758af72c07ae85187df7 | 2,833 | cpp | C++ | misc/fexcept/execdump/xxlib/Std/mu_case.cpp | MKadaner/FarManager | c99a14c12e3481dd25ce71451ecd264656f631bb | [
"BSD-3-Clause"
] | 1,256 | 2015-07-07T12:19:17.000Z | 2022-03-31T18:41:41.000Z | misc/fexcept/execdump/xxlib/Std/mu_case.cpp | MKadaner/FarManager | c99a14c12e3481dd25ce71451ecd264656f631bb | [
"BSD-3-Clause"
] | 305 | 2017-11-01T18:58:50.000Z | 2022-03-22T11:07:23.000Z | misc/fexcept/execdump/xxlib/Std/mu_case.cpp | MKadaner/FarManager | c99a14c12e3481dd25ce71451ecd264656f631bb | [
"BSD-3-Clause"
] | 183 | 2017-10-28T11:31:14.000Z | 2022-03-30T16:46:24.000Z | #include <all_lib.h>
#pragma hdrstop
#if defined(__MYPACKAGE__)
#pragma package(smart_init)
#endif
#if !defined(__HWIN__)
static char *lwrChars = "йцукенгшщзхъфывапролджэячсмитьбю";
static char *uprChars = "ЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ";
char MYRTLEXP ToUpper( char ch )
{
if ( ch >= 'A' && ch <= 'Z' ) retu... | 24.850877 | 68 | 0.491705 | MKadaner |
840cc9b4774d397c3f63b506e10cd5e32c5a3893 | 655 | cpp | C++ | test.cpp | ZaMaZaN4iK/iex_example | 57717f34f39ceadf1407bdd6b925f6b8c894533c | [
"MIT"
] | 1 | 2020-04-25T14:16:03.000Z | 2020-04-25T14:16:03.000Z | test.cpp | ZaMaZaN4iK/iex_example | 57717f34f39ceadf1407bdd6b925f6b8c894533c | [
"MIT"
] | null | null | null | test.cpp | ZaMaZaN4iK/iex_example | 57717f34f39ceadf1407bdd6b925f6b8c894533c | [
"MIT"
] | 1 | 2020-04-25T14:17:49.000Z | 2020-04-25T14:17:49.000Z | #define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include "CompanyPriceDataStorage.h"
/*
That's a sample test case
*/
TEST_CASE( "Company price data is stored and selecte3d", "[storage]" ) {
CompanyPriceData etalonData{0, "1", "2", "3", "4"}
CompanyPriceDataStorage storage("test.db");
const int id = stora... | 32.75 | 72 | 0.732824 | ZaMaZaN4iK |
8411ec0587bd6d49d94bee2f8e3e0d32ae5148d6 | 5,231 | cpp | C++ | source/options/OptionDialog.cpp | Mauzerov/wxPacman | 9fe599b1588d6143ff563ae8a3e5c2f31f69a5c3 | [
"Unlicense"
] | 1 | 2021-05-02T10:38:03.000Z | 2021-05-02T10:38:03.000Z | source/options/OptionDialog.cpp | Mauzerov/wxPacman | 9fe599b1588d6143ff563ae8a3e5c2f31f69a5c3 | [
"Unlicense"
] | null | null | null | source/options/OptionDialog.cpp | Mauzerov/wxPacman | 9fe599b1588d6143ff563ae8a3e5c2f31f69a5c3 | [
"Unlicense"
] | null | null | null | #include "OptionDialog.h"
#include <iostream>
//(*InternalHeaders(OptionDialog)
#include <wx/font.h>
#include <wx/intl.h>
#include <wx/settings.h>
#include <wx/string.h>
//*)
//(*IdInit(OptionDialog)
const long OptionDialog::ID_BUTTONSAVE = wxNewId();
const long OptionDialog::ID_KEYCHOICE = wxNewId();
const l... | 52.31 | 182 | 0.761422 | Mauzerov |
8416064ba4d7477f450641def58f3b03edb4f096 | 8,294 | cpp | C++ | HPCSimulation.cpp | iray-tno/hal2015 | c84643472b31efbcd7622867dcc4e71c80541274 | [
"FSFAP"
] | null | null | null | HPCSimulation.cpp | iray-tno/hal2015 | c84643472b31efbcd7622867dcc4e71c80541274 | [
"FSFAP"
] | null | null | null | HPCSimulation.cpp | iray-tno/hal2015 | c84643472b31efbcd7622867dcc4e71c80541274 | [
"FSFAP"
] | null | null | null | //------------------------------------------------------------------------------
/// @file
/// @brief HPCSimulation.hpp の実装
/// @author ハル研究所プログラミングコンテスト実行委員会
///
/// @copyright Copyright (c) 2015 HAL Laboratory, Inc.
/// @attention このファイルの利用は、同梱のREADMEにある
/// 利用条件に従ってください
//------------------------... | 29.204225 | 97 | 0.420666 | iray-tno |
84192b3897572770dbce377b3e7d0bec703cbff4 | 998 | cpp | C++ | tests/kernel/globalinit.cpp | v8786339/NyuziProcessor | 34854d333d91dbf69cd5625505fb81024ec4f785 | [
"Apache-2.0"
] | 1,388 | 2015-02-05T17:16:17.000Z | 2022-03-31T07:17:08.000Z | tests/kernel/globalinit.cpp | czvf/NyuziProcessor | 31f74e43a785fa66d244f1e9744ca0ca9b8a1fad | [
"Apache-2.0"
] | 176 | 2015-02-02T02:54:06.000Z | 2022-02-01T06:00:21.000Z | tests/kernel/globalinit.cpp | czvf/NyuziProcessor | 31f74e43a785fa66d244f1e9744ca0ca9b8a1fad | [
"Apache-2.0"
] | 271 | 2015-02-18T02:19:04.000Z | 2022-03-28T13:30:25.000Z | //
// Copyright 2016 Jeff Bush
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 20.791667 | 75 | 0.654309 | v8786339 |
841a59e25202ef8d5756d6c2ab19834648bbcfb8 | 100,646 | cpp | C++ | game/tools/guieditor/source/guieditorgui.cpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | null | null | null | game/tools/guieditor/source/guieditorgui.cpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | null | null | null | game/tools/guieditor/source/guieditorgui.cpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | 2 | 2019-03-08T03:02:45.000Z | 2019-05-14T08:41:26.000Z | ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Sep 8 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "OGLCanvas.hpp"
#include... | 72.721098 | 215 | 0.801701 | justinctlam |
841a7e2524ae14ecae06428526799000767f2719 | 1,069 | cpp | C++ | emulator/src/emu/dinetwork.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/emu/dinetwork.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/emu/dinetwork.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Carl, Miodrag Milanovic
#include "emu.h"
#include "osdnet.h"
device_network_interface::device_network_interface(const machine_config &mconfig, device_t &device, float bandwidth)
: device_interface(device, "network")
{
m_promisc = false;
m_bandwidth = bandwidth;
set_mac(... | 21.38 | 116 | 0.731525 | rjw57 |
8421f307b6c36c4060ee159cf7ed771972cd5bbb | 90 | cpp | C++ | src/Item.cpp | Erick9Thor/Zork | 43ee99711bb991e0f8c3cf61f18c1d2e373ac2a7 | [
"MIT"
] | null | null | null | src/Item.cpp | Erick9Thor/Zork | 43ee99711bb991e0f8c3cf61f18c1d2e373ac2a7 | [
"MIT"
] | null | null | null | src/Item.cpp | Erick9Thor/Zork | 43ee99711bb991e0f8c3cf61f18c1d2e373ac2a7 | [
"MIT"
] | null | null | null | #include "../include/Item.h"
ItemType Item::GetItemType() const
{
return itemType;
}
| 12.857143 | 34 | 0.677778 | Erick9Thor |
84265e8c1625a8e0a499b82c9b1ea02d707ffee2 | 1,259 | cpp | C++ | vegastrike/src/cmd/bolt_server.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/src/cmd/bolt_server.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/src/cmd/bolt_server.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | #include "bolt.h"
#include "gfxlib.h"
#include "gfx/mesh.h"
#include "gfxlib_struct.h"
#include <vector>
#include <string>
#include <algorithm>
#include "unit_generic.h"
#include "configxml.h"
GFXVertexList*bolt_draw::boltmesh = NULL;
bolt_draw::~bolt_draw()
{
unsigned int i;
for (i = 0; i < balls.size(); i++... | 24.686275 | 94 | 0.601271 | Ezeer |
842b1dd42b8e6cfb395af85944e7da162dc0a8bc | 4,385 | cpp | C++ | cnf_dump/cnf_dump_clo.cpp | appu226/FactorGraph | 26e4de8518874abf2696a167eaf3dbaede5930f8 | [
"MIT"
] | null | null | null | cnf_dump/cnf_dump_clo.cpp | appu226/FactorGraph | 26e4de8518874abf2696a167eaf3dbaede5930f8 | [
"MIT"
] | null | null | null | cnf_dump/cnf_dump_clo.cpp | appu226/FactorGraph | 26e4de8518874abf2696a167eaf3dbaede5930f8 | [
"MIT"
] | null | null | null | /*
Copyright 2019 Parakram Majumdar
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, publish, distribute, ... | 32.242647 | 109 | 0.620753 | appu226 |
842cc9c6722bc81483b9a34464a134e42c681b75 | 14,748 | cpp | C++ | src/RotationPricer.cpp | sergebisaillon/MerinioScheduler | 8549ce7f3c1c14817a2eba9d565ca0b56f451e2a | [
"MIT"
] | 1 | 2020-05-05T15:51:41.000Z | 2020-05-05T15:51:41.000Z | src/RotationPricer.cpp | qiqi789/NurseScheduler | 8549ce7f3c1c14817a2eba9d565ca0b56f451e2a | [
"MIT"
] | null | null | null | src/RotationPricer.cpp | qiqi789/NurseScheduler | 8549ce7f3c1c14817a2eba9d565ca0b56f451e2a | [
"MIT"
] | 1 | 2019-11-11T17:59:23.000Z | 2019-11-11T17:59:23.000Z | /*
* RotationPricer.cpp
*
* Created on: 2015-03-02
* Author: legraina
*/
#include "RotationPricer.h"
#include "BcpModeler.h"
/* namespace usage */
using namespace std;
//////////////////////////////////////////////////////////////
//
// R O T A T I O N P R I C E R
//
////////////////////////////////////... | 34.619718 | 137 | 0.702129 | sergebisaillon |
8438b89e25ce446d49d0eda0cc0bc78749c00c74 | 4,741 | cc | C++ | Samples/PostProcessing/PostProcessing.cc | rodrigobmg/YumeEngine | 67c525c84616a5167b5bae45f36641e90227c281 | [
"MIT"
] | 129 | 2016-05-05T23:34:44.000Z | 2022-03-07T20:17:18.000Z | Samples/PostProcessing/PostProcessing.cc | rodrigobmg/YumeEngine | 67c525c84616a5167b5bae45f36641e90227c281 | [
"MIT"
] | 1 | 2017-05-07T16:09:41.000Z | 2017-05-08T15:35:50.000Z | Samples/PostProcessing/PostProcessing.cc | rodrigobmg/YumeEngine | 67c525c84616a5167b5bae45f36641e90227c281 | [
"MIT"
] | 20 | 2016-02-24T20:40:08.000Z | 2022-02-04T23:48:18.000Z | //--------------------------------------------------------------------------------
//This is a file from Arkengine
//
//
//Copyright (c) arkenthera.All rights reserved.
//
//BasicRenderWindow.cpp
//--------------------------------------------------------------------------------
#include "Core/YumeHeaders.h"
#include ... | 27.725146 | 95 | 0.730015 | rodrigobmg |
843a8013b35ade495a373147057fe382813aa470 | 8,810 | cpp | C++ | 3d_conv/xilinx_prj/lib_gen/__merlinwrapper_conv_3d_kernel.cpp | FCS-holding/acc_lib | 1b6c0bc5467400e2ac678d18426cbbc7d44e8fec | [
"Apache-2.0"
] | null | null | null | 3d_conv/xilinx_prj/lib_gen/__merlinwrapper_conv_3d_kernel.cpp | FCS-holding/acc_lib | 1b6c0bc5467400e2ac678d18426cbbc7d44e8fec | [
"Apache-2.0"
] | null | null | null | 3d_conv/xilinx_prj/lib_gen/__merlinwrapper_conv_3d_kernel.cpp | FCS-holding/acc_lib | 1b6c0bc5467400e2ac678d18426cbbc7d44e8fec | [
"Apache-2.0"
] | null | null | null | #include "cmost.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <hls_stream.h>
#include "merlin_type_define.h"
#include "__merlinhead_kernel_top.h"
#include <chrono>
#include <iostream>
void __merlinwrapper_conv_3d_kernel(float data_in[DATA_IN_LENGTH],
floa... | 50.056818 | 163 | 0.539955 | FCS-holding |
8442f55fa028083cadf0b9d9008b6ee0bc7e20dd | 49,789 | cc | C++ | sim/models/actuators/ground_station_v2.cc | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1,178 | 2020-09-10T17:15:42.000Z | 2022-03-31T14:59:35.000Z | sim/models/actuators/ground_station_v2.cc | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1 | 2020-05-22T05:22:35.000Z | 2020-05-22T05:22:35.000Z | sim/models/actuators/ground_station_v2.cc | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 107 | 2020-09-10T17:29:30.000Z | 2022-03-18T09:00:14.000Z | // Copyright 2020 Makani Technologies LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 41.387365 | 80 | 0.685834 | leozz37 |
84459f68a60fdf2e0000ed96d3ea03669d0acbe6 | 4,547 | cpp | C++ | Sankore-3.1/src/domain/UBItem.cpp | eaglezzb/rsdc | cce881f6542ff206bf286cf798c8ec8da3b51d50 | [
"MIT"
] | null | null | null | Sankore-3.1/src/domain/UBItem.cpp | eaglezzb/rsdc | cce881f6542ff206bf286cf798c8ec8da3b51d50 | [
"MIT"
] | null | null | null | Sankore-3.1/src/domain/UBItem.cpp | eaglezzb/rsdc | cce881f6542ff206bf286cf798c8ec8da3b51d50 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2010-2013 Groupement d'Intérêt Public pour l'Education Numérique en Afrique (GIP ENA)
*
* This file is part of Open-Sankoré.
*
* Open-Sankoré is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Found... | 30.516779 | 102 | 0.720475 | eaglezzb |
844620b796aba499ce01fcbcbd13774f592a3af7 | 1,917 | cpp | C++ | src/renderer/components/RectComponent.cpp | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | src/renderer/components/RectComponent.cpp | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | src/renderer/components/RectComponent.cpp | artfulbytes/sumobot_simulator | f2784d2ff506759019d7d5e840bd7aed591a0add | [
"MIT"
] | null | null | null | #include "components/RectComponent.h"
#include "Renderer.h"
#include "components/Transforms.h"
#include "TexCoords.h"
#include "Texture.h"
#include "SpriteAnimation.h"
RectComponent::RectComponent(const RectTransform *transform, const glm::vec4& color) :
m_quadTransform(transform),
m_color(color)
{
}
RectComp... | 29.045455 | 130 | 0.695357 | artfulbytes |
8446b534ea042ba69efdfb5ac4c427e47710ad33 | 5,067 | cpp | C++ | src/imports/cvkb/vkbquickmodel.cpp | CELLINKAB/qtcvkb | 5b870f8ea4b42480eb678b065778de5dab36b199 | [
"MIT"
] | null | null | null | src/imports/cvkb/vkbquickmodel.cpp | CELLINKAB/qtcvkb | 5b870f8ea4b42480eb678b065778de5dab36b199 | [
"MIT"
] | null | null | null | src/imports/cvkb/vkbquickmodel.cpp | CELLINKAB/qtcvkb | 5b870f8ea4b42480eb678b065778de5dab36b199 | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (C) 2020 CELLINK AB <info@cellink.com>
*
* 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 ... | 34.705479 | 140 | 0.727452 | CELLINKAB |
84497ae9875b5463168efd697efe59406a255318 | 13,416 | cc | C++ | pigasus/software/src/file_api/file_identifier.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/file_api/file_identifier.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/file_api/file_identifier.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------
// Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved.
// Copyright (C) 2012-2013 Sourcefire, Inc.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public... | 24.172973 | 93 | 0.60003 | zhipengzhaocmu |
e0fe61b355cc89c9ca6d6501a2aaa5278a998e4f | 539 | cpp | C++ | notes/code4/GTX.cpp | suryaavala/advancedcpp | 84c1847bf42ff744f99b4c0f94b77cfa71ca00d8 | [
"MIT"
] | null | null | null | notes/code4/GTX.cpp | suryaavala/advancedcpp | 84c1847bf42ff744f99b4c0f94b77cfa71ca00d8 | [
"MIT"
] | null | null | null | notes/code4/GTX.cpp | suryaavala/advancedcpp | 84c1847bf42ff744f99b4c0f94b77cfa71ca00d8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
class GTx {
public:
GTx(size_t val = 0): bound{val} {}
bool operator()(const std::string &s) { return s.size() >= bound; }
private:
std::string::size_type bound;
};
int main() {
std::vector<std::string> words{"function","objects","are","fun"};
st... | 25.666667 | 69 | 0.628942 | suryaavala |
460071945d8a1109cb33f18a22a10552fabac77c | 1,052 | cpp | C++ | src/dynamic_load.cpp | cgilmour/dd-opentracing-cpp | c83c6a5dc72029d13ab0d64a7222fb139a1889f1 | [
"Apache-2.0"
] | null | null | null | src/dynamic_load.cpp | cgilmour/dd-opentracing-cpp | c83c6a5dc72029d13ab0d64a7222fb139a1889f1 | [
"Apache-2.0"
] | null | null | null | src/dynamic_load.cpp | cgilmour/dd-opentracing-cpp | c83c6a5dc72029d13ab0d64a7222fb139a1889f1 | [
"Apache-2.0"
] | null | null | null | #include <opentracing/dynamic_load.h>
#include <iostream>
#include "tracer.h"
#include "tracer_factory.h"
#include "version_check.h"
int OpenTracingMakeTracerFactory(const char* opentracing_version, const void** error_category,
void** tracer_factory) try {
if (!datadog::opentracing::... | 47.818182 | 94 | 0.681559 | cgilmour |
4604097af0b164349f1049831f710259fb25a9af | 12,410 | cc | C++ | mysql-server/mysys/crypt_genhash_impl.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/mysys/crypt_genhash_impl.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/mysys/crypt_genhash_impl.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... | 27.88764 | 80 | 0.609347 | silenc3502 |
4604dc0789f87eabd6425248d8f7f211dcb9baed | 6,663 | cpp | C++ | src/future/flexer.cpp | rasfmar/future | 189a996f7e2c6401626d11ca6d8f11243dd0b737 | [
"MIT"
] | null | null | null | src/future/flexer.cpp | rasfmar/future | 189a996f7e2c6401626d11ca6d8f11243dd0b737 | [
"MIT"
] | null | null | null | src/future/flexer.cpp | rasfmar/future | 189a996f7e2c6401626d11ca6d8f11243dd0b737 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include "internal/_ftoken.hpp"
#include "fstate.hpp"
#include "flexer.hpp"
void flexer::lex(fstate *state, fparser &parser) {
lex(state, parser.tokens);
}
void flexer::lex(fstate *state, std::vector<_ftoken*> &tokens) {
std::stack<_ftoken*> fstack;
bool ... | 31.880383 | 88 | 0.540147 | rasfmar |
46054b06a51fe0732a8681424f05cfcf5161c13e | 1,212 | cpp | C++ | test/communicator_broadcast.cpp | correaa/b-mpi3 | 161e52a28ab9043be9ef33acd8f31dbeae483b61 | [
"BSL-1.0"
] | null | null | null | test/communicator_broadcast.cpp | correaa/b-mpi3 | 161e52a28ab9043be9ef33acd8f31dbeae483b61 | [
"BSL-1.0"
] | null | null | null | test/communicator_broadcast.cpp | correaa/b-mpi3 | 161e52a28ab9043be9ef33acd8f31dbeae483b61 | [
"BSL-1.0"
] | null | null | null | #if COMPILATION_INSTRUCTIONS
mpic++ -O3 -std=c++14 -Wall -Wfatal-errors $0 -o $0x.x && time mpirun -n 2 $0x.x $@ && rm -f $0x.x; exit
#endif
// © Copyright Alfredo A. Correa 2018-2020
#include "../../mpi3/main.hpp"
#include "../../mpi3/communicator.hpp"
namespace mpi3 = boost::mpi3;
int mpi3::main(int, char*[], mpi3... | 27.545455 | 118 | 0.575908 | correaa |
460819731d1f58a91ad128467d955be784f981e0 | 764 | hpp | C++ | libs/resource_tree/include/sge/resource_tree/detail/strip_path_prefix.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/resource_tree/include/sge/resource_tree/detail/strip_path_prefix.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/resource_tree/include/sge/resource_tree/detail/strip_path_prefix.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_RESOURCE_TREE_DETAIL_STRIP_PATH_PREFIX_HPP_INCLUDED
#define SGE_RESOURCE_TREE_DETAIL_ST... | 31.833333 | 97 | 0.784031 | cpreh |
4608b94ee463cd53b6600c1666ac954f0d0ee380 | 3,114 | cpp | C++ | Drivers/SelfTests/Boundaries/InsertionBoundarySelfTest.cpp | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | Drivers/SelfTests/Boundaries/InsertionBoundarySelfTest.cpp | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | Drivers/SelfTests/Boundaries/InsertionBoundarySelfTest.cpp | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | //Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redistributions ... | 39.923077 | 115 | 0.738279 | gustavo-castillo-bautista |
460ad4d2f8b2dec3cb9b937daa8937e88710138c | 1,572 | cc | C++ | solutions/mrJudge/base/main.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 4 | 2020-11-07T14:38:02.000Z | 2022-01-03T19:02:36.000Z | solutions/mrJudge/base/main.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 1 | 2019-04-17T06:55:14.000Z | 2019-04-17T06:55:14.000Z | solutions/mrJudge/base/main.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | null | null | null | // #include <bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
#define FOR(i, j, k, l) for (s32 i = j; i < k; i += l)
#define RFOR(i, j, k, l) for (s... | 18.494118 | 67 | 0.48028 | zwliew |
460e73849e3611b85524258bf2aaa70644de2b5f | 22,430 | cpp | C++ | scatterplot.cpp | fadel/msc-pm | bedf6936885694688ddb8bd3452f6bd68ef8d29c | [
"MIT"
] | null | null | null | scatterplot.cpp | fadel/msc-pm | bedf6936885694688ddb8bd3452f6bd68ef8d29c | [
"MIT"
] | null | null | null | scatterplot.cpp | fadel/msc-pm | bedf6936885694688ddb8bd3452f6bd68ef8d29c | [
"MIT"
] | null | null | null | #include "scatterplot.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include <QSGGeometryNode>
#include <QSGSimpleRectNode>
#include "continuouscolorscale.h"
#include "geometry.h"
// Glyphs settings
static const QColor DEFAULT_GLYPH_COLOR(255, 255, 255);
static const float DEFAULT_GLYPH_SIZE = 8.0f;
st... | 28.609694 | 115 | 0.626973 | fadel |
4612f6436bee91d7c6b0cfc94f22418164a6900d | 2,187 | cpp | C++ | 排序/交换排序/P324.6.cpp | Ruvikm/Wangdao-Data-Structures | e00494f40c0be9d81229062bf69fe1e12e340773 | [
"MIT"
] | 103 | 2021-01-07T13:03:57.000Z | 2022-03-31T03:10:35.000Z | 排序/交换排序/P324.6.cpp | fu123567/Wangdao-Data-Structures | e00494f40c0be9d81229062bf69fe1e12e340773 | [
"MIT"
] | null | null | null | 排序/交换排序/P324.6.cpp | fu123567/Wangdao-Data-Structures | e00494f40c0be9d81229062bf69fe1e12e340773 | [
"MIT"
] | 23 | 2021-04-10T07:53:03.000Z | 2022-03-31T00:33:05.000Z | #include <cstdio>
#include <iostream>
#include <algorithm>
#include <time.h>
#include <stdlib.h>
using namespace std;
#pragma region 建立顺序存储的线性表
#define MAX 30
#define _for(i,a,b) for( int i=(a); i<(b); ++i)
#define _rep(i,a,b) for( int i=(a); i<=(b); ++i)
typedef struct {
int data[MAX];
int length;
}List;
void ... | 19.184211 | 93 | 0.581619 | Ruvikm |
4615023df5a596ca4b465687e621a84d88042a86 | 359 | cpp | C++ | module02/ex02/main.cpp | JLL32/piscine-cpp | d1d3296d8e25a1c33f7c92df4f61e6f76b8dab8c | [
"MIT"
] | null | null | null | module02/ex02/main.cpp | JLL32/piscine-cpp | d1d3296d8e25a1c33f7c92df4f61e6f76b8dab8c | [
"MIT"
] | null | null | null | module02/ex02/main.cpp | JLL32/piscine-cpp | d1d3296d8e25a1c33f7c92df4f61e6f76b8dab8c | [
"MIT"
] | null | null | null | #include "Fixed.hpp"
int main() {
Fixed a;
Fixed const b(Fixed(5.05f) * Fixed(2));
std::cout << a << std::endl;
std::cout << ++a << std::endl;
std::cout << a << std::endl;
std::cout << a++ << std::endl;
std::cout << a << std::endl;
std::cout << b << std::endl;
std::cout << Fixed::m... | 22.4375 | 47 | 0.487465 | JLL32 |
4617cf0f44153d1785df9b344a815585abe10e79 | 1,569 | cpp | C++ | Codeforces/MailRu/2018/Round1/C.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | 2 | 2018-12-11T14:37:24.000Z | 2022-01-23T18:11:54.000Z | Codeforces/MailRu/2018/Round1/C.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | Codeforces/MailRu/2018/Round1/C.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 1000000007
#define ll long long int
#define ld long double
#define vi vector<int>
#define vll vector<long long int>
#define sc(n) scanf("%d",&n);
#define scll(n) scanf("%lld",&n);
#define scld(n) s... | 22.73913 | 78 | 0.50478 | Mindjolt2406 |