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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c06cbcd564c983c31c6f5716c7948d116a5375a | 247 | cpp | C++ | src/Engine/Components/PositionComponent.cpp | Lut1n/ECS_Test | 08cd68ced900d143a1384e0361af0e6ae2b5fd36 | [
"MIT"
] | null | null | null | src/Engine/Components/PositionComponent.cpp | Lut1n/ECS_Test | 08cd68ced900d143a1384e0361af0e6ae2b5fd36 | [
"MIT"
] | null | null | null | src/Engine/Components/PositionComponent.cpp | Lut1n/ECS_Test | 08cd68ced900d143a1384e0361af0e6ae2b5fd36 | [
"MIT"
] | null | null | null | #include <Engine/Components/PositionComponent.h>
PositionComponent::PositionComponent()
: _orientation(0.0)
{
}
PositionComponent::~PositionComponent()
{
}
Component::Type PositionComponent::getType() const {return Type_Position;} | 19 | 74 | 0.744939 | Lut1n |
4c0fe1a4e1aa1cdaa28eaaac6e691614a4f93a3f | 7,493 | cpp | C++ | Sources/ChronoRage/MenuScreens/ScreenSelectInput.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | 2 | 2015-04-16T01:05:53.000Z | 2019-08-26T07:38:43.000Z | Sources/ChronoRage/MenuScreens/ScreenSelectInput.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | Sources/ChronoRage/MenuScreens/ScreenSelectInput.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of ... | 37.278607 | 116 | 0.636594 | benkaraban |
4c135bb1d0fbf6ef3e921e3e6ba5ff2ab65ae4d7 | 2,076 | cpp | C++ | Games/NetGame/Code/Game/GameState_Loading.cpp | tonyatpeking/SMU_SD | 00ebc9c1acd437128de3562cf355f1d81e375975 | [
"MIT"
] | null | null | null | Games/NetGame/Code/Game/GameState_Loading.cpp | tonyatpeking/SMU_SD | 00ebc9c1acd437128de3562cf355f1d81e375975 | [
"MIT"
] | null | null | null | Games/NetGame/Code/Game/GameState_Loading.cpp | tonyatpeking/SMU_SD | 00ebc9c1acd437128de3562cf355f1d81e375975 | [
"MIT"
] | 1 | 2019-10-02T01:48:54.000Z | 2019-10-02T01:48:54.000Z | #include "Engine/Audio/AudioSystem.hpp"
#include "Engine/Core/Window.hpp"
#include "Engine/Image/Image.hpp"
#include "Engine/Math/SmoothNoise.hpp"
#include "Engine/Renderer/ShaderProgram.hpp"
#include "Engine/Renderer/CubeMap.hpp"
#include "Engine/Renderer/DebugRender.hpp"
#include "Engine/Profiler/Profiler.hpp"
#incl... | 22.813187 | 113 | 0.700867 | tonyatpeking |
4c14bc5d97afcd2f6c34c793d1bae0b989d52994 | 6,682 | cpp | C++ | Source/VRTeleoperation/Private/PointCloudActor.cpp | markjarzynski/VRTeleoperation | eb43cf6632d6dbe6428236e928e1007dafaef7b5 | [
"MIT"
] | null | null | null | Source/VRTeleoperation/Private/PointCloudActor.cpp | markjarzynski/VRTeleoperation | eb43cf6632d6dbe6428236e928e1007dafaef7b5 | [
"MIT"
] | null | null | null | Source/VRTeleoperation/Private/PointCloudActor.cpp | markjarzynski/VRTeleoperation | eb43cf6632d6dbe6428236e928e1007dafaef7b5 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "PointCloudActor.h"
#include "ROSIntegration/Classes/RI/Topic.h"
#include "ROSIntegration/Classes/ROSIntegrationGameInstance.h"
#include "ROSIntegration/Public/sensor_msgs/PointCloud2.h"
//#include "Kismet/GameplayStatics.h... | 34.802083 | 179 | 0.649356 | markjarzynski |
4c1b7f875ee31e5eb2c46f2ab5eb1bd97d049c8d | 2,860 | cpp | C++ | src/Emulators/nestopiaue/core/NstChips.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 34 | 2021-05-29T07:04:17.000Z | 2022-03-10T20:16:03.000Z | src/Emulators/nestopiaue/core/NstChips.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-25T13:05:21.000Z | 2022-01-19T17:35:17.000Z | src/Emulators/nestopiaue/core/NstChips.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-24T18:37:41.000Z | 2022-02-06T23:06:02.000Z | ////////////////////////////////////////////////////////////////////////////////////////
//
// Nestopia - NES/Famicom emulator written in C++
//
// Copyright (C) 2003-2008 Martin Freij
//
// This file is part of Nestopia.
//
// Nestopia is free software; you can redistribute it and/or modify
// it under the te... | 22.88 | 102 | 0.580769 | slajerek |
4c1ef69749b53a644c83cf10d0857f58972b0821 | 1,685 | hpp | C++ | generic_lock/include/generic_lock/details/lock_table.hpp | ketgo/generic_lock | 1a5f33ac5440db8e87b3e3cf0a6def9f05930502 | [
"MIT"
] | null | null | null | generic_lock/include/generic_lock/details/lock_table.hpp | ketgo/generic_lock | 1a5f33ac5440db8e87b3e3cf0a6def9f05930502 | [
"MIT"
] | null | null | null | generic_lock/include/generic_lock/details/lock_table.hpp | ketgo/generic_lock | 1a5f33ac5440db8e87b3e3cf0a6def9f05930502 | [
"MIT"
] | null | null | null | // Copyright 2021 Ketan Goyal
//
// 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 ... | 31.792453 | 78 | 0.767359 | ketgo |
4c1f63f6522f504d09e8c7ccce03f52addf38023 | 3,815 | cpp | C++ | rosbag2_storage/test/rosbag2_storage/test_metadata_serialization.cpp | carlossvg/rosbag2 | fafbe76191dc163a6ed01adb9fb1b97dccef8255 | [
"Apache-2.0"
] | 1 | 2019-06-25T16:04:53.000Z | 2019-06-25T16:04:53.000Z | rosbag2_storage/test/rosbag2_storage/test_metadata_serialization.cpp | carlossvg/rosbag2 | fafbe76191dc163a6ed01adb9fb1b97dccef8255 | [
"Apache-2.0"
] | null | null | null | rosbag2_storage/test/rosbag2_storage/test_metadata_serialization.cpp | carlossvg/rosbag2 | fafbe76191dc163a6ed01adb9fb1b97dccef8255 | [
"Apache-2.0"
] | 1 | 2020-02-17T22:12:09.000Z | 2020-02-17T22:12:09.000Z | // Copyright 2018, Bosch Software Innovations GmbH.
//
// 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 applicabl... | 39.739583 | 99 | 0.794233 | carlossvg |
4c2dca1c4faac1e87720da8409c60288349cacfa | 289 | cpp | C++ | Example/chrono_05/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/chrono_05/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/chrono_05/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | #include <boost/chrono.hpp>
#include <iostream>
using namespace boost::chrono;
int main()
{
std::cout << floor<minutes>(minutes{1} + seconds{45}) << '\n';
std::cout << round<minutes>(minutes{1} + seconds{15}) << '\n';
std::cout << ceil<minutes>(minutes{1} + seconds{15}) << '\n';
} | 26.272727 | 64 | 0.615917 | KwangjoJeong |
4c2deaec1a100d640f6c3c78a3653e85f8d9659a | 1,884 | cpp | C++ | sudokuparser/cli/sudoku_parser_cli.cpp | jamesandersen/go-sudoku | 950763915afc66cb74d70a93d92efb7ba2763277 | [
"MIT"
] | 16 | 2017-08-06T12:02:00.000Z | 2021-05-19T03:02:17.000Z | pkg/sudokuparser/cli/sudoku_parser_cli.cpp | ryanbmilbourne/syr-sudoku-backend | 657e965953d7c45d8431718c4d66b95a4ca78c34 | [
"MIT"
] | 2 | 2017-05-25T05:06:21.000Z | 2019-06-18T20:35:51.000Z | pkg/sudokuparser/cli/sudoku_parser_cli.cpp | ryanbmilbourne/syr-sudoku-backend | 657e965953d7c45d8431718c4d66b95a4ca78c34 | [
"MIT"
] | 11 | 2017-11-03T03:39:10.000Z | 2022-03-08T10:10:27.000Z | #include "../detect_digits.hpp"
#include "../identify_digits.hpp"
#include "../sudoku_parser.hpp"
using namespace std;
using namespace Sudoku;
int main(int argc, char *argv[])
{
// check if there is more than one argument and use the second one
// (the first argument is the executable)
if (argc > 2)
{
... | 30.387097 | 90 | 0.451699 | jamesandersen |
4c322513efeae073f287a27d0b437597c3798228 | 135,394 | cc | C++ | xic/src/cd/cd_cell.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | xic/src/cd/cd_cell.cc | markvolkmann/xictools | 5d32ad130cfd13f4e5ecaae7701f2863b4558f4e | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | xic/src/cd/cd_cell.cc | markvolkmann/xictools | 5d32ad130cfd13f4e5ecaae7701f2863b4558f4e | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 28.899466 | 81 | 0.493205 | wrcad |
4c33604fef70b0b238e7464e95b88479ac6e41d0 | 1,415 | cpp | C++ | RPI/Top/Main.cpp | lahiruroot/fprime | 8245dbd0c454e379af3504b70462e98d7f4353c2 | [
"Apache-2.0"
] | 4 | 2021-02-20T13:38:25.000Z | 2021-05-04T17:20:34.000Z | RPI/Top/Main.cpp | lahiruroot/fprime | 8245dbd0c454e379af3504b70462e98d7f4353c2 | [
"Apache-2.0"
] | 42 | 2021-06-10T23:31:10.000Z | 2021-06-25T00:35:31.000Z | RPI/Top/Main.cpp | lahiruroot/fprime | 8245dbd0c454e379af3504b70462e98d7f4353c2 | [
"Apache-2.0"
] | 5 | 2019-09-06T23:25:26.000Z | 2021-06-22T03:01:07.000Z | #include <getopt.h>
#include <stdlib.h>
#include <ctype.h>
#include <RPI/Top/Components.hpp>
#include <signal.h>
#include <stdio.h>
void print_usage() {
(void) printf("Usage: ./RPI [options]\n-p\tport_number\n-a\thostname/IP address\n");
}
volatile sig_atomic_t terminate = 0;
static void sighandler(int signum)... | 21.119403 | 88 | 0.530035 | lahiruroot |
4c3921b994e7946e7c93f630852b0062a89de22b | 849 | hpp | C++ | src/mqtt/topics/night_time.hpp | Universumgames/TIDILE | f58bbcb24570c5722f9f3d60a1f254e68a5c8379 | [
"MIT"
] | 3 | 2020-09-23T18:49:02.000Z | 2020-10-25T14:47:43.000Z | src/mqtt/topics/night_time.hpp | Universumgames/TIDILE | f58bbcb24570c5722f9f3d60a1f254e68a5c8379 | [
"MIT"
] | 12 | 2020-10-12T19:33:29.000Z | 2021-01-02T19:31:39.000Z | src/mqtt/topics/night_time.hpp | mt32net/TIDILE | f58bbcb24570c5722f9f3d60a1f254e68a5c8379 | [
"MIT"
] | 1 | 2021-01-05T16:36:40.000Z | 2021-01-05T16:36:40.000Z | #pragma once
#include <Arduino.h>
#include <ArduinoJson.h>
#include "../../ClockConfig.hpp"
#include "../../config/config_includes.hpp"
struct NightTime
{
bool enabled = true;
int begin = 2300; // 2300 -> 23:00
int end = 600; // 600 -> 6:00
void deserializeFromJSON(JsonDocument &doc)
{
... | 25.727273 | 63 | 0.630153 | Universumgames |
4c4612a6fad489075ef3f3a06fded8f341c01f82 | 2,213 | cpp | C++ | DlgSpells.cpp | GalacticSoft/DikuEd | 135f49bba7ce2faf5faac12a355da9813c28d0fa | [
"MIT"
] | null | null | null | DlgSpells.cpp | GalacticSoft/DikuEd | 135f49bba7ce2faf5faac12a355da9813c28d0fa | [
"MIT"
] | null | null | null | DlgSpells.cpp | GalacticSoft/DikuEd | 135f49bba7ce2faf5faac12a355da9813c28d0fa | [
"MIT"
] | null | null | null | // DlgSpells.cpp : implementation file
//
#include "stdafx.h"
#include "WinDE.h"
#include "DlgSpells.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// DlgSpells dialog
DlgSpells::DlgSpe... | 19.243478 | 77 | 0.619973 | GalacticSoft |
4c47309fa2e77009a23cc085b7e6ee1bd45c5460 | 1,089 | cpp | C++ | src/common/Logging.cpp | Arkshine/PrototypeEngine | 6833b931ca02934dd5f68377fc8c486f01103841 | [
"Unlicense"
] | 2 | 2018-10-09T14:42:39.000Z | 2021-02-07T21:41:00.000Z | src/common/Logging.cpp | Arkshine/PrototypeEngine | 6833b931ca02934dd5f68377fc8c486f01103841 | [
"Unlicense"
] | null | null | null | src/common/Logging.cpp | Arkshine/PrototypeEngine | 6833b931ca02934dd5f68377fc8c486f01103841 | [
"Unlicense"
] | 1 | 2018-10-09T14:42:41.000Z | 2018-10-09T14:42:41.000Z | #include <cstdarg>
#include <cstdio>
#include <SDL2/SDL.h>
#include "Logging.h"
void UTIL_ShowMessageBox( const char* const pszMessage, const char* const pszCaption, const LogType logType )
{
Uint32 type;
switch( logType )
{
default:
case LogType::INFO: type = SDL_MESSAGEBOX_INFORMATION; break;
case LogType:... | 20.166667 | 109 | 0.702479 | Arkshine |
4c58ca01668a7e2b66609dd53663feeef0dd61ec | 48,916 | cpp | C++ | s3/s3_cacheless_operations.cpp | SwooshyCueb/irods_resource_plugin_s3 | bc30d00d5e262f23e30361754e12ec75b76649a2 | [
"BSD-3-Clause"
] | null | null | null | s3/s3_cacheless_operations.cpp | SwooshyCueb/irods_resource_plugin_s3 | bc30d00d5e262f23e30361754e12ec75b76649a2 | [
"BSD-3-Clause"
] | null | null | null | s3/s3_cacheless_operations.cpp | SwooshyCueb/irods_resource_plugin_s3 | bc30d00d5e262f23e30361754e12ec75b76649a2 | [
"BSD-3-Clause"
] | null | null | null |
// =-=-=-=-=-=-=-
// local includes
#include "s3_archive_operations.hpp"
#include "libirods_s3.hpp"
#include "s3fs/curl.h"
#include "s3fs/cache.h"
#include "s3fs/fdcache.h"
#include "s3fs/s3fs.h"
#include "s3fs/s3fs_util.h"
#include "s3fs/s3fs_auth.h"
#include "s3fs/common.h"
// =-=-=-=-=-=-=-
// irods includes
#inc... | 37.627692 | 205 | 0.522058 | SwooshyCueb |
4c58de548339b5ea568de5637903e2afb58b1b05 | 935 | cpp | C++ | problems19dec/evading/correct.cpp | Gomango999/codebreaker | 407c4ac7a69c8db52cc7d2a57034cdda243c9134 | [
"MIT"
] | 1 | 2021-12-11T01:43:27.000Z | 2021-12-11T01:43:27.000Z | problems19dec/evading/correct.cpp | Gomango999/codebreaker | 407c4ac7a69c8db52cc7d2a57034cdda243c9134 | [
"MIT"
] | null | null | null | problems19dec/evading/correct.cpp | Gomango999/codebreaker | 407c4ac7a69c8db52cc7d2a57034cdda243c9134 | [
"MIT"
] | 1 | 2021-12-15T07:04:29.000Z | 2021-12-15T07:04:29.000Z | #include <bits/stdc++.h>
using namespace std;
vector<int> ch[100005];
int dis[100005][2];
int n, e, x, k;
int ans;
int main() {
scanf("%d%d%d%d", &n, &e, &x, &k);
for (int i = 1; i <= e; i++) {
int a, b; scanf("%d%d", &a, &b);
ch[a].push_back(b);
ch[b].push_back(a);
}
for (int... | 21.744186 | 67 | 0.393583 | Gomango999 |
4c5cb2f710479014158b336fd3d246208ca36972 | 33,202 | cpp | C++ | libSetReplace/Match.cpp | SantiagoGiner/SetReplace | 021f360c5e8e367c61fbb1499f9d6d6088e8033f | [
"MIT"
] | null | null | null | libSetReplace/Match.cpp | SantiagoGiner/SetReplace | 021f360c5e8e367c61fbb1499f9d6d6088e8033f | [
"MIT"
] | null | null | null | libSetReplace/Match.cpp | SantiagoGiner/SetReplace | 021f360c5e8e367c61fbb1499f9d6d6088e8033f | [
"MIT"
] | null | null | null | #include "Match.hpp"
#include <algorithm>
#include <atomic>
#include <functional>
#include <limits>
#include <map>
#include <memory>
#include <mutex>
#include <random>
#include <set>
#include <shared_mutex> // NOLINT cpplint thinks this is a C system header for some reason
#include <thread>
#include <unordered_map>
#... | 42.34949 | 120 | 0.681194 | SantiagoGiner |
4c62978ac3c79dce68f34c299315fe636a5fb522 | 9,310 | cpp | C++ | MBExtender/plugins/MarbleGhostingFix/ConsoleMethods.cpp | RandomityGuy/MBExtender | 5b5a4b5f8f9aafe76c6f50ab75f8a214ef22cb3c | [
"BSD-2-Clause"
] | 6 | 2018-11-04T00:40:15.000Z | 2021-12-22T03:12:48.000Z | MBExtender/plugins/MarbleGhostingFix/ConsoleMethods.cpp | RandomityGuy/MBExtender | 5b5a4b5f8f9aafe76c6f50ab75f8a214ef22cb3c | [
"BSD-2-Clause"
] | null | null | null | MBExtender/plugins/MarbleGhostingFix/ConsoleMethods.cpp | RandomityGuy/MBExtender | 5b5a4b5f8f9aafe76c6f50ab75f8a214ef22cb3c | [
"BSD-2-Clause"
] | 3 | 2020-05-17T21:27:12.000Z | 2021-04-11T05:49:37.000Z | //-----------------------------------------------------------------------------
// MBX_CONSOLE_METHODs.cpp
//
// Copyright (c) 2015 The Platinum Team
//
// 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 ... | 39.786325 | 159 | 0.72782 | RandomityGuy |
4c676e5c283145a6fa262fd65d936e64ca0b70b6 | 1,182 | hpp | C++ | include/forecast_io/DataOverview.hpp | Crystalix007/DarkSky-CPP | 10497ff292efdc460a67bc5dc44811b3a1459beb | [
"Apache-2.0"
] | null | null | null | include/forecast_io/DataOverview.hpp | Crystalix007/DarkSky-CPP | 10497ff292efdc460a67bc5dc44811b3a1459beb | [
"Apache-2.0"
] | null | null | null | include/forecast_io/DataOverview.hpp | Crystalix007/DarkSky-CPP | 10497ff292efdc460a67bc5dc44811b3a1459beb | [
"Apache-2.0"
] | null | null | null | #ifndef DATAOVERVIEW_HPP
#define DATAOVERVIEW_HPP
#include <ostream>
#include <string>
namespace forecast_io
{
class DataOverview
{
public:
DataOverview() = default;
DataOverview(std::string summary, std::string iconName) noexcept;
DataOverview(const DataOverview& copyee) = default;
virtual ~DataOverview() = def... | 19.7 | 82 | 0.65313 | Crystalix007 |
4c6909cac77822e0ed12acf4f2b2dccb2b130d35 | 766 | cpp | C++ | public/plagiarism_plugin/input/24/24/24 24 5113100004--Ball.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | public/plagiarism_plugin/input/24/24/24 24 5113100004--Ball.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | public/plagiarism_plugin/input/24/24/24 24 5113100004--Ball.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | #include "wx/wx.h"
#include "Ball.h"
Ball::Ball(void)
{
}
Ball::~Ball(void)
{
}
void Ball::Render(wxDC *dc)
{
dc->SetPen(*wxWHITE_PEN);
dc->SetBrush(*this->brush);
speedY = speedY + 0.5 * t;
x = x + speedX;
y = y + speedY;
dc->DrawCircle(x, y, radius);
t += 0.01f;
}
void Ball::WallHitTest(int x1, int y... | 13.927273 | 54 | 0.58094 | laurensiusadi |
4c6ae91532c1ee787e6948617c23c44d55c9e8de | 1,767 | hh | C++ | src/Titon/Context/Definition/CallableDefinition.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | src/Titon/Context/Definition/CallableDefinition.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | src/Titon/Context/Definition/CallableDefinition.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh // strict
/**
* @copyright 2010-2015, The Titon Project
* @license http://opensource.org/licenses/bsd-license.php
* @link http://titon.io
*/
namespace Titon\Context\Definition;
use Titon\Context\Depository;
/**
* A callable definition determines how a callable is created, including necessary
... | 26.373134 | 103 | 0.612903 | ciklon-z |
4c73398fb50f235bb8117116082f4ffdd415db92 | 4,143 | hpp | C++ | BMEarth.framework/PrivateHeaders/BMLoad.hpp | showzh20/BMEarthSDK | 83250d63ebb870f548387f32cbe1d38fc8735219 | [
"MIT"
] | null | null | null | BMEarth.framework/PrivateHeaders/BMLoad.hpp | showzh20/BMEarthSDK | 83250d63ebb870f548387f32cbe1d38fc8735219 | [
"MIT"
] | null | null | null | BMEarth.framework/PrivateHeaders/BMLoad.hpp | showzh20/BMEarthSDK | 83250d63ebb870f548387f32cbe1d38fc8735219 | [
"MIT"
] | null | null | null | //
// BMLoad.hpp
// BigeEarth
//
// Created by HerryBabaer on 2020/7/29.
// Copyright © 2020 赵洪. All rights reserved.
//
#ifndef BMLoad_hpp
#define BMLoad_hpp
#include "public.h"
#include <string>
#include <BmEarth/MapProvider/abstractprovider.h>
struct OffLineRequest
{
std::string bmUrl;
std::map<std:... | 23.810345 | 130 | 0.626599 | showzh20 |
dbc89279339faceade4aaf414fcedd33edf03367 | 1,895 | hpp | C++ | include/rqt_console_plus/modelfilter.hpp | facontidavide/rqt_console_plus | bb89f00140d9350c61408ad9077a6426f1fdcf72 | [
"MIT"
] | 4 | 2018-04-26T13:08:07.000Z | 2021-04-09T14:56:25.000Z | include/rqt_console_plus/modelfilter.hpp | facontidavide/rqt_console_plus | bb89f00140d9350c61408ad9077a6426f1fdcf72 | [
"MIT"
] | null | null | null | include/rqt_console_plus/modelfilter.hpp | facontidavide/rqt_console_plus | bb89f00140d9350c61408ad9077a6426f1fdcf72 | [
"MIT"
] | 3 | 2017-05-13T14:55:20.000Z | 2020-12-06T21:45:41.000Z | #ifndef MODELFILTER_HPP
#define MODELFILTER_HPP
#include <QSortFilterProxyModel>
#include <QDateTime>
#include <QString>
#include <QRegExpValidator>
class ModelFilter : public QSortFilterProxyModel
{
Q_OBJECT
public:
explicit ModelFilter(QObject *parent = 0);
typedef enum{
CONTAINS_ONE = 0,
WILDCARDS =... | 24.934211 | 90 | 0.770449 | facontidavide |
dbc9d6ad5de1d17fc9912d059364ef996555f52d | 911 | hpp | C++ | include/mizuiro/color/conversion/detail/convert_channel.hpp | cpreh/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | 1 | 2015-08-22T04:19:39.000Z | 2015-08-22T04:19:39.000Z | include/mizuiro/color/conversion/detail/convert_channel.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | include/mizuiro/color/conversion/detail/convert_channel.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2016.
// 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 MIZUIRO_COLOR_CONVERSION_DETAIL_CONVERT_CHANNEL_HPP_INCLUDED
#define MIZUIRO_COLOR_CONVERSI... | 30.366667 | 98 | 0.74753 | cpreh |
dbcba1c6d0082e6b0401848f6a9869974a05bf9a | 9,634 | cpp | C++ | src/assign_unittests.cpp | HMcCleave/sbovector | 55852ae717ab117a619585bc036295c24bc5f177 | [
"MIT"
] | null | null | null | src/assign_unittests.cpp | HMcCleave/sbovector | 55852ae717ab117a619585bc036295c24bc5f177 | [
"MIT"
] | null | null | null | src/assign_unittests.cpp | HMcCleave/sbovector | 55852ae717ab117a619585bc036295c24bc5f177 | [
"MIT"
] | null | null | null | #include "unittest_common.hpp"
// Unittests for operator=, assign methods
TYPED_TEST(CopyableSBOVector_, MustCopyAssign) {
{
const auto original = this->CreateContainer(SMALL_SIZE);
std::remove_const_t<decltype(original)> copy;
copy = original;
EXPECT_EQ(copy.size(), original.size());
}
{
con... | 30.584127 | 76 | 0.704692 | HMcCleave |
dbceb30bc0d586cc78113d8d39254623106b9bda | 2,103 | cpp | C++ | src/cpp/app/check_blocks.cpp | martinus/bitcoin_playground | f9a9089fe04341d5786765e1cb899061a2c06b01 | [
"MIT"
] | 29 | 2020-05-20T22:13:51.000Z | 2021-12-05T03:10:40.000Z | src/cpp/app/check_blocks.cpp | martinus/bitcoin_playground | f9a9089fe04341d5786765e1cb899061a2c06b01 | [
"MIT"
] | 2 | 2021-01-06T10:00:28.000Z | 2021-01-06T11:45:56.000Z | src/cpp/app/check_blocks.cpp | martinus/bitcoin_playground | f9a9089fe04341d5786765e1cb899061a2c06b01 | [
"MIT"
] | 5 | 2020-07-14T15:42:17.000Z | 2021-11-17T07:01:25.000Z | #include <app/fetchAllBlockHeaders.h>
#include <util/HttpClient.h>
#include <util/Throttle.h>
#include <util/hex.h>
#include <util/log.h>
#include <util/parallelToSequential.h>
#include <doctest.h>
#include <simdjson.h>
// 3637.720 src/cpp/app/utxo_to_change.cpp(174) | height=557166, bytes=7128215. utxo: 34470525 ent... | 33.380952 | 108 | 0.648597 | martinus |
dbd3c27e78a1595c21511e479fe504d8d909ab8b | 1,476 | cpp | C++ | src/StakeSpinCtrl.cpp | captain-igloo/greenthumb | 39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72 | [
"MIT"
] | 3 | 2019-04-08T19:17:51.000Z | 2019-05-21T01:01:29.000Z | src/StakeSpinCtrl.cpp | captain-igloo/greenthumb | 39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72 | [
"MIT"
] | 1 | 2019-04-30T23:39:06.000Z | 2019-07-27T00:07:20.000Z | src/StakeSpinCtrl.cpp | captain-igloo/greenthumb | 39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72 | [
"MIT"
] | 1 | 2019-02-28T09:22:18.000Z | 2019-02-28T09:22:18.000Z | #include <iostream>
#include "StakeSpinCtrl.h"
namespace greenthumb {
StakeSpinCtrl::StakeSpinCtrl(wxWindow* parent, wxWindowID id, const wxString &value,
const wxPoint& pos, const wxSize& size, long style, double min, double max,
double initial, double increment, const wxString& name) :
wxSpinCtrlDouble... | 22.707692 | 95 | 0.561653 | captain-igloo |
dbd4e92ad79659c89042a6cc350f1f5499f80f46 | 987 | cpp | C++ | test.cpp | ThatGuyJohnForbes/storelib | 9ac7f34a18408a0019650994dd141cf059a6bbeb | [
"BSD-2-Clause"
] | null | null | null | test.cpp | ThatGuyJohnForbes/storelib | 9ac7f34a18408a0019650994dd141cf059a6bbeb | [
"BSD-2-Clause"
] | null | null | null | test.cpp | ThatGuyJohnForbes/storelib | 9ac7f34a18408a0019650994dd141cf059a6bbeb | [
"BSD-2-Clause"
] | null | null | null | //
// Created by john on 2/10/22.
//
#include <cstdio>
#include "hashmap.h"
int main(int argc, char** argv){
(void)argc, (void)argv;
size_t len = 25;
hashmap<int,int> b(len);
const char wa[] = "1234567890-=qwertyuiop[]#asdfghjkl;'zxcvbnm,./\\`¬!£$%^&*()_+{}~:@<>?|QWERTYUIOPASDFGHJKLZXCVBNM";
auto ... | 23.5 | 138 | 0.509625 | ThatGuyJohnForbes |
dbd537818ed4eb774276e9d96cd85d7a4a519361 | 760 | cpp | C++ | src/mappers/mapper7.cpp | Ta180m/LaiNES | 42328080e6f56ba30af0451321870ef836f22c07 | [
"BSD-2-Clause"
] | 1 | 2020-05-18T19:35:06.000Z | 2020-05-18T19:35:06.000Z | src/mappers/mapper7.cpp | Ta180m/LaiNES | 42328080e6f56ba30af0451321870ef836f22c07 | [
"BSD-2-Clause"
] | null | null | null | src/mappers/mapper7.cpp | Ta180m/LaiNES | 42328080e6f56ba30af0451321870ef836f22c07 | [
"BSD-2-Clause"
] | null | null | null | #include "ppu.hpp"
#include "mappers/mapper7.hpp"
/* Based off of https://wiki.nesdev.com/w/index.php/AxROM */
/* Apply the registers state */
void Mapper7::apply()
{
/*
* 32 kb PRG ROM Banks
* 0x8000 - 0xFFFF swappable
*/
map_prg<32>(0, regs[0] & 0b00001111);
/* 8k of CHR (ram) */
map_chr... | 19.487179 | 84 | 0.575 | Ta180m |
dbd87c12bdf4be9d3e78f958ff0ae7e408c9fc9c | 1,104 | cc | C++ | src/ThreadLoopPool.cc | CXinsect/webServer | a659a64dde65f0b66b5bbb2332a636afabdb5a99 | [
"MIT"
] | null | null | null | src/ThreadLoopPool.cc | CXinsect/webServer | a659a64dde65f0b66b5bbb2332a636afabdb5a99 | [
"MIT"
] | null | null | null | src/ThreadLoopPool.cc | CXinsect/webServer | a659a64dde65f0b66b5bbb2332a636afabdb5a99 | [
"MIT"
] | null | null | null | #include "ThreadLoopPool.h"
#include "EventLoop.h"
EventLoop *threadLoop::startLoop() {
{
unique_lock<mutex> mylock(mutex_);
thread_.push_back(thread(&threadLoop::threadFunction, this));
while (loop_ == NULL) cond_.wait(mylock);
}
// cout << "thread:::_____________" << loop_ << endl;
return loop_;... | 24 | 65 | 0.643116 | CXinsect |
dbda878e0178b15d1e8df53537228d54684015a2 | 1,946 | cpp | C++ | aws-cpp-sdk-network-firewall/source/model/TargetType.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-network-firewall/source/model/TargetType.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-network-firewall/source/model/TargetType.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/network-firewall/model/TargetType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::U... | 27.408451 | 92 | 0.608941 | perfectrecall |
dbdc7da799b120336f25021b3c37363036650c06 | 1,716 | hpp | C++ | iRODS/lib/md5/include/md5.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/md5/include/md5.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/md5/include/md5.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | /* MD5.H - header file for MD5C.C
*/
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this softwar... | 28.6 | 72 | 0.722611 | nesi |
dbe193fa7ed8d374cdbc4e2035a30d2862b109fa | 3,341 | cc | C++ | voxblox_fast/src/utils/protobuf_utils.cc | mfehr/voxblox | 1cf538e6713c0b8a33d11bbdf7cf6b8768f99669 | [
"BSD-3-Clause"
] | null | null | null | voxblox_fast/src/utils/protobuf_utils.cc | mfehr/voxblox | 1cf538e6713c0b8a33d11bbdf7cf6b8768f99669 | [
"BSD-3-Clause"
] | 4 | 2017-05-05T13:19:34.000Z | 2018-10-15T15:04:43.000Z | voxblox_fast/src/utils/protobuf_utils.cc | mfehr/voxblox | 1cf538e6713c0b8a33d11bbdf7cf6b8768f99669 | [
"BSD-3-Clause"
] | 1 | 2019-12-26T08:10:38.000Z | 2019-12-26T08:10:38.000Z | #include "voxblox_fast/utils/protobuf_utils.h"
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
namespace voxblox_fast {
namespace utils {
bool readProtoMsgCountToStream(std::fstream* stream_in, uint32_t* message_coun... | 31.819048 | 80 | 0.703682 | mfehr |
dbe283609f132bd29a95a4bfbbcb97ef905f7376 | 445 | cc | C++ | src/util/data.cc | hkmix/score_tabler | 652121f3569ecc3b4fc82681ed6fc41836201cc4 | [
"MIT"
] | null | null | null | src/util/data.cc | hkmix/score_tabler | 652121f3569ecc3b4fc82681ed6fc41836201cc4 | [
"MIT"
] | null | null | null | src/util/data.cc | hkmix/score_tabler | 652121f3569ecc3b4fc82681ed6fc41836201cc4 | [
"MIT"
] | null | null | null | #include "src/util/data.hh"
namespace util {
std::vector<int> Data::sums() const
{
const auto size = players.size();
std::vector<int> ret(size, 0);
for (const auto& round : rounds) {
// Ignore invalid entries.
if (round.scores.size() != size) {
continue;
}
for... | 17.8 | 42 | 0.507865 | hkmix |
dbe5219da5395ad97fc369f1930d4f0d149c3ef5 | 2,200 | cpp | C++ | pbeRuntime/src/RuntimeLayer.cpp | pavilbezpravil/pbEngine | 55c051bdb296f0960ad05447d385a554334c4b5c | [
"Apache-2.0"
] | null | null | null | pbeRuntime/src/RuntimeLayer.cpp | pavilbezpravil/pbEngine | 55c051bdb296f0960ad05447d385a554334c4b5c | [
"Apache-2.0"
] | null | null | null | pbeRuntime/src/RuntimeLayer.cpp | pavilbezpravil/pbEngine | 55c051bdb296f0960ad05447d385a554334c4b5c | [
"Apache-2.0"
] | null | null | null | #include "RuntimeLayer.h"
#include "pbe/Renderer/GraphicsCore.h"
namespace pbe {
RuntimeLayer::RuntimeLayer(const std::string& scenePath) : scenePath(scenePath)
{
}
void RuntimeLayer::OnAttach()
{
LoadRuntimeScene();
}
void RuntimeLayer::OnDetach()
{
UnloadRuntimeScene();
}
void RuntimeLayer::OnEve... | 23.913043 | 138 | 0.683182 | pavilbezpravil |
dbeba7b02eb0d2909053a2c29006461ac7552670 | 1,247 | cpp | C++ | src/GMOJ/1004/gmoj-1004-b-1.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | 1 | 2021-08-13T14:27:39.000Z | 2021-08-13T14:27:39.000Z | src/GMOJ/1004/gmoj-1004-b-1.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | src/GMOJ/1004/gmoj-1004-b-1.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <iostream>
const int MAX_N = 100050;
struct Node {
int ch[2];
int f;
} tree[MAX_N];
int w[MAX_N], dfn[MAX_N], dp[MAX_N];
int cnt, len;
void dfs(int x);
template <typename T>
T read();
int main() {
std::ios::sync_with_stdio(false);
int n = read<int>(... | 17.56338 | 69 | 0.42903 | krishukr |
dbf1299b3e66b84e7c09e48b958e76b2623ce36e | 390 | hpp | C++ | src/cpp/biohash/assert.hpp | biohash/biohash | b0a9db4aed0223f58e92b6f9aaf3ced0451989e0 | [
"MIT"
] | null | null | null | src/cpp/biohash/assert.hpp | biohash/biohash | b0a9db4aed0223f58e92b6f9aaf3ced0451989e0 | [
"MIT"
] | null | null | null | src/cpp/biohash/assert.hpp | biohash/biohash | b0a9db4aed0223f58e92b6f9aaf3ced0451989e0 | [
"MIT"
] | null | null | null | #pragma once
#include <stdlib.h>
#include <stdio.h>
#define ASSERT(expression) ((expression) ? static_cast<void>(0): biohash::biohash_assert(#expression, __FILE__, __LINE__))
namespace biohash {
inline void biohash_assert(const char* expression, const char* file, long line)
{
fprintf(stderr, "Assertion '%s' faile... | 21.666667 | 122 | 0.705128 | biohash |
e00f4a1e01e018f6dae3905923cd886f3aab2bef | 609 | cpp | C++ | 3D Graphics - Summative 1/IndexBuffer.cpp | ferp132/OpenGL | 2d5387915f3bf80b44b7c078dd9d6bdbb1c69f6f | [
"MIT"
] | null | null | null | 3D Graphics - Summative 1/IndexBuffer.cpp | ferp132/OpenGL | 2d5387915f3bf80b44b7c078dd9d6bdbb1c69f6f | [
"MIT"
] | null | null | null | 3D Graphics - Summative 1/IndexBuffer.cpp | ferp132/OpenGL | 2d5387915f3bf80b44b7c078dd9d6bdbb1c69f6f | [
"MIT"
] | null | null | null | #include "IndexBuffer.h"
#include "Renderer.h"
IndexBuffer::IndexBuffer()
{
}
IndexBuffer::~IndexBuffer()
{
GLCall(glDeleteBuffers(1, &RendererID));
}
void IndexBuffer::Init(const GLuint* data, unsigned int InitCount)
{
Count = InitCount;
GLCall(glGenBuffers(1, &RendererID));
GLCall(glBindBuffer(GL_ELEMENT_ARRA... | 19.645161 | 93 | 0.758621 | ferp132 |
e0114f020eacb252bf773581891becde294ccd09 | 6,235 | hpp | C++ | pose_refinement/SA-LMPE/ba/openMVG/matching/matcher_brute_force.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 90 | 2019-05-19T03:48:23.000Z | 2022-02-02T15:20:49.000Z | pose_refinement/SA-LMPE/ba/openMVG/matching/matcher_brute_force.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 11 | 2019-05-22T07:45:46.000Z | 2021-05-20T01:48:26.000Z | pose_refinement/SA-LMPE/ba/openMVG/matching/matcher_brute_force.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 18 | 2019-05-19T03:48:32.000Z | 2021-05-29T18:19:16.000Z | // This file is part of OpenMVG, an Open Multiple View Geometry C++ library.
// Copyright (c) 2012, 2013 Pierre MOULON.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.... | 30.26699 | 114 | 0.65004 | Aurelio93 |
e0126b3ae8077c19f7db463aff5c81fc03a76a28 | 21,670 | hpp | C++ | include/ctml.hpp | vincentlaucsb/CTML | f6ba956539f90b671bc0db01070e24e8bac21700 | [
"MIT"
] | null | null | null | include/ctml.hpp | vincentlaucsb/CTML | f6ba956539f90b671bc0db01070e24e8bac21700 | [
"MIT"
] | null | null | null | include/ctml.hpp | vincentlaucsb/CTML | f6ba956539f90b671bc0db01070e24e8bac21700 | [
"MIT"
] | null | null | null | /**
* The MIT License (MIT)
*
* Copyright (c) 2019 Maxwell Flynn
*
* 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 us... | 29.563438 | 129 | 0.481957 | vincentlaucsb |
e0150897126faed24a603064d3cd44548b218944 | 353 | cpp | C++ | ch9/ex9_16.cpp | sanerror/sanerror-s-Cpp-Primer-Answers | 1e14c4789cacf03050c0aec93eb2e3a12010a77a | [
"MIT"
] | null | null | null | ch9/ex9_16.cpp | sanerror/sanerror-s-Cpp-Primer-Answers | 1e14c4789cacf03050c0aec93eb2e3a12010a77a | [
"MIT"
] | null | null | null | ch9/ex9_16.cpp | sanerror/sanerror-s-Cpp-Primer-Answers | 1e14c4789cacf03050c0aec93eb2e3a12010a77a | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <list>
using namespace std;
int main() {
list<int> ilst{ 1, 2, 3 };
vector<int> ive{ 1, 2, 3 };
vector<int> ive2{ 1, 2 };
cout << (vector<int>(ilst.begin(), ilst.end()) == ive) << endl;
cout << (vector<int>(ilst.begin(), ilst.end()) =... | 20.764706 | 66 | 0.566572 | sanerror |
e01909ee00b37ad88bb1b1f1f9806d72bcbfa32f | 6,512 | cpp | C++ | src/util/system.cpp | Riyyi/manafiles | cfe2987e50cf7f8c5f7edf7892fef02fc9a03fc8 | [
"MIT"
] | null | null | null | src/util/system.cpp | Riyyi/manafiles | cfe2987e50cf7f8c5f7edf7892fef02fc9a03fc8 | [
"MIT"
] | null | null | null | src/util/system.cpp | Riyyi/manafiles | cfe2987e50cf7f8c5f7edf7892fef02fc9a03fc8 | [
"MIT"
] | null | null | null | #include <cerrno> // errno, EAGAIN, EINTR
#include <cstddef> // size_t
#include <cstdio> // perror, ssize_t
#include <cstdlib> // exit, WEXITSTATUS
#include <cstring> // strcpy, strtok
#include <functional> // function
#include <sstream> // istringstream
#include <string>
#include <string_view>
#inc... | 19.793313 | 86 | 0.643735 | Riyyi |
e01938ab9642fd7ee945f6553402bf8b67496a85 | 10,582 | cpp | C++ | Classes/Level/Quadtree.cpp | WeHaveCookie/EnchantedForest | c17e3e1adf3bc0c1ef5afaef3126fd169ea99768 | [
"MIT"
] | null | null | null | Classes/Level/Quadtree.cpp | WeHaveCookie/EnchantedForest | c17e3e1adf3bc0c1ef5afaef3126fd169ea99768 | [
"MIT"
] | null | null | null | Classes/Level/Quadtree.cpp | WeHaveCookie/EnchantedForest | c17e3e1adf3bc0c1ef5afaef3126fd169ea99768 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Quadtree.h"
#include "Manager/Render/RenderMgr.h"
uint32_t Quadtree::s_quadNodeCapacity = 10;
int Quadtree::s_registerCount = 0;
int Quadtree::s_unregisterCount = 0;
int Quadtree::s_queryCount = 0;
struct EntityRange
{
Entity* ent;
float distance;
bool operator<(const EntityRange& e... | 24.609302 | 152 | 0.604801 | WeHaveCookie |
e01c1467f4a3434dda8d9028cde11011c3d2e1c0 | 1,918 | hpp | C++ | android-31/android/view/SurfaceControl_Transaction.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/view/SurfaceControl_Transaction.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-31/android/view/SurfaceControl_Transaction.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
namespace android::graphics
{
class Rect;
}
namespace android::os
{
class Parcel;
}
namespace android::view
{
class SurfaceControl;
}
namespace android::view
{
class SurfaceControl_Transaction : public JObject
{
public:
// Fields
static JObject CREATOR();
// Q... | 38.36 | 169 | 0.77268 | YJBeetle |
e024ea0bc67073d5b0688db1187eff5801882032 | 763 | cpp | C++ | window/android/app/src/main/cpp/android_main.cpp | wow2006/GraphicsDemos | 9f485abe1c71687889ae448fc52630b0f816bc61 | [
"MIT"
] | 1 | 2022-02-16T14:16:08.000Z | 2022-02-16T14:16:08.000Z | window/android/app/src/main/cpp/android_main.cpp | wow2006/GraphicsDemos | 9f485abe1c71687889ae448fc52630b0f816bc61 | [
"MIT"
] | null | null | null | window/android/app/src/main/cpp/android_main.cpp | wow2006/GraphicsDemos | 9f485abe1c71687889ae448fc52630b0f816bc61 | [
"MIT"
] | null | null | null | // Internal
#include "android_native_app_glue.h"
static void HandleCMD(android_app* /*pApp*/, int32_t /*cmd*/) {}
static int32_t HandleInput(android_app* /*pApp*/, AInputEvent* /*pEvent*/) { return 0; }
[[maybe_unused]] void android_main(android_app *pState) {
pState->onAppCmd = HandleCMD;
pState->o... | 25.433333 | 103 | 0.61599 | wow2006 |
e02eb398b377540f39e766122d0dbfde5a7251a6 | 8,490 | cpp | C++ | editor/extendedvariantmanager.cpp | voodooattack/ADWIF | 5267400362f66986ab138e376807720584f52811 | [
"BSD-2-Clause"
] | 6 | 2015-05-24T17:51:08.000Z | 2020-06-07T09:33:35.000Z | editor/extendedvariantmanager.cpp | voodooattack/ADWIF | 5267400362f66986ab138e376807720584f52811 | [
"BSD-2-Clause"
] | null | null | null | editor/extendedvariantmanager.cpp | voodooattack/ADWIF | 5267400362f66986ab138e376807720584f52811 | [
"BSD-2-Clause"
] | 2 | 2019-05-27T14:47:48.000Z | 2022-02-04T05:39:56.000Z | /* Copyright (c) 2013, Abdullah A. Hassan <voodooattack@hotmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright no... | 35.523013 | 146 | 0.680919 | voodooattack |
e031312b2414bdb0cd01d001dc6017ec31926a86 | 8,053 | cpp | C++ | liberty/lib/PointsToProfiler/Indeterminate.cpp | righier/cpf | 0a9d7c2cde6676be519c490d98197eb5283520b4 | [
"MIT"
] | 18 | 2020-08-14T21:19:59.000Z | 2022-02-22T12:43:52.000Z | liberty/lib/PointsToProfiler/Indeterminate.cpp | righier/cpf | 0a9d7c2cde6676be519c490d98197eb5283520b4 | [
"MIT"
] | 23 | 2020-08-17T21:04:36.000Z | 2022-03-02T19:29:27.000Z | liberty/lib/PointsToProfiler/Indeterminate.cpp | righier/cpf | 0a9d7c2cde6676be519c490d98197eb5283520b4 | [
"MIT"
] | 2 | 2020-09-17T17:25:19.000Z | 2021-05-21T11:21:43.000Z | #include "llvm/IR/Function.h"
#include "llvm/IR/Constant.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include "scaf/Utilities/CallSiteFactory.h"
#include "liberty/PointsToProfiler/Indeterminate.h"
namespace liberty
{
namespace SpecPriv
{
using namespace llvm;
... | 25.165625 | 105 | 0.672669 | righier |
e03268837b09e07231b5b8cc32b0833207c9e77a | 9,500 | cpp | C++ | ZeroLibraries/Platform/Windows/Atomic.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 1 | 2019-08-31T00:45:45.000Z | 2019-08-31T00:45:45.000Z | ZeroLibraries/Platform/Windows/Atomic.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 5 | 2020-04-13T00:17:11.000Z | 2021-04-20T23:11:42.000Z | ZeroLibraries/Platform/Windows/Atomic.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
///
/// \file Atomic.cpp
/// Implementation of the atomic functions.
///
/// Authors: Chris Peters, Andrew Colean
/// Copyright 2010-2015, DigiPen Institute of Technology
///
/////////////////////////////////////////////////////////////////... | 32.758621 | 128 | 0.751474 | jodavis42 |
e037c97f5c9d1fb0f31c82bc569284c8c53ff4b2 | 546 | hpp | C++ | include/cutempl/metafunctions/contains.hpp | dhollman/cutempl | 5bb6cae4423f0456c21e50454bcba210a94226b3 | [
"MIT"
] | null | null | null | include/cutempl/metafunctions/contains.hpp | dhollman/cutempl | 5bb6cae4423f0456c21e50454bcba210a94226b3 | [
"MIT"
] | null | null | null | include/cutempl/metafunctions/contains.hpp | dhollman/cutempl | 5bb6cae4423f0456c21e50454bcba210a94226b3 | [
"MIT"
] | null | null | null | #pragma once
#include "cutempl/utils/lambda.hpp"
#include "cutempl/utils/wrap.hpp"
namespace cutempl {
struct contains_mfc :
lambda_mfc<(
[]<class... Ts, class U>(wrap<type_list<Ts...>>, wrap<U>) {
return std::disjunction<std::is_same<Ts, U>...>{};
}
)> {};
template <class TL, class U>
using contai... | 24.818182 | 63 | 0.675824 | dhollman |
e0391e37e3a851f17e47428c1b97838fc15a7f89 | 14,144 | cxx | C++ | libbuild2/bash/rule.cxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 422 | 2018-05-30T12:00:00.000Z | 2022-03-29T07:29:56.000Z | libbuild2/bash/rule.cxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 183 | 2018-07-02T20:38:30.000Z | 2022-03-31T09:54:35.000Z | libbuild2/bash/rule.cxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 14 | 2019-01-09T12:34:02.000Z | 2021-03-16T09:10:53.000Z | // file : libbuild2/bash/rule.cxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#include <libbuild2/bash/rule.hxx>
#include <cstring> // strlen(), strchr()
#include <libbuild2/scope.hxx>
#include <libbuild2/target.hxx>
#include <libbuild2/algorithm.hxx>
#include <libbuild2/diagnostics.hxx>
#inc... | 32.589862 | 78 | 0.510181 | build2 |
e03d37b3795431267064994b3d0221c4f7e7cc34 | 212 | hpp | C++ | include/ds18b20/detail/type_traits/is_same.hpp | ricardocosme/ds18b20 | c8b400da2625706e6592e858635dace86a64df90 | [
"MIT"
] | 1 | 2020-11-08T21:55:42.000Z | 2020-11-08T21:55:42.000Z | include/ds18b20/detail/type_traits/is_same.hpp | ricardocosme/ds18b20 | c8b400da2625706e6592e858635dace86a64df90 | [
"MIT"
] | null | null | null | include/ds18b20/detail/type_traits/is_same.hpp | ricardocosme/ds18b20 | c8b400da2625706e6592e858635dace86a64df90 | [
"MIT"
] | null | null | null | #pragma once
#include "integral_constant.hpp"
namespace ds18b20 { namespace detail {
template<typename, typename>
struct is_same : false_type {};
template<typename T>
struct is_same<T, T> : true_type {};
}}
| 15.142857 | 38 | 0.735849 | ricardocosme |
e04208e302c4af3401f4c80ccfe5659a0566478d | 86 | cpp | C++ | Set kth bit.cpp | dishanp/Data-Structures-And-Algorithms-For-Interviews | d0a99c8019af458aa0845ae1d70c218da18dbee7 | [
"BSD-2-Clause"
] | 2 | 2021-10-01T04:20:04.000Z | 2021-10-01T04:20:06.000Z | Set kth bit.cpp | dishanp/Data-Structures-And-Algorithms-For-Interviews | d0a99c8019af458aa0845ae1d70c218da18dbee7 | [
"BSD-2-Clause"
] | null | null | null | Set kth bit.cpp | dishanp/Data-Structures-And-Algorithms-For-Interviews | d0a99c8019af458aa0845ae1d70c218da18dbee7 | [
"BSD-2-Clause"
] | 8 | 2021-10-01T04:20:38.000Z | 2022-03-19T17:05:05.000Z | int setKthBit(int N, int K)
{
int mask=1<<K;
return mask|N;
}
| 14.333333 | 27 | 0.465116 | dishanp |
e0465113105257a5e47746f9c18deeca05e8c92c | 1,789 | hpp | C++ | include/task1.hpp | Kotherine/Lab5 | 8825e65dd66baa7d3b62c0341267c671190ef464 | [
"MIT"
] | null | null | null | include/task1.hpp | Kotherine/Lab5 | 8825e65dd66baa7d3b62c0341267c671190ef464 | [
"MIT"
] | null | null | null | include/task1.hpp | Kotherine/Lab5 | 8825e65dd66baa7d3b62c0341267c671190ef464 | [
"MIT"
] | null | null | null | // Copyright 2021 Your Name <your_email>
#ifndef INCLUDE_TASK1_HPP_
#define INCLUDE_TASK1_HPP_
#include <utility>
#include "Node.h"
#include <iostream>
template <typename T>
class Stack1 {
protected:
Node<T>* head_stack = nullptr; //
public:
Stack1() = default;
Stack1(const Stack1& s) = delete; // нек... | 23.233766 | 76 | 0.640022 | Kotherine |
e04d7d8b46446959309a45a298629c410b56ecec | 950 | cpp | C++ | MAX7219-Library/testFunctions.cpp | StijnvanWijk98/Ipass | 39ec24ddbf3659b0fd46803f24b7b4c91f3439a7 | [
"BSL-1.0"
] | null | null | null | MAX7219-Library/testFunctions.cpp | StijnvanWijk98/Ipass | 39ec24ddbf3659b0fd46803f24b7b4c91f3439a7 | [
"BSL-1.0"
] | null | null | null | MAX7219-Library/testFunctions.cpp | StijnvanWijk98/Ipass | 39ec24ddbf3659b0fd46803f24b7b4c91f3439a7 | [
"BSL-1.0"
] | null | null | null | // ==========================================================================
//
// Author : Stijn van Wijk
// File : testFunctions.cpp
// Part of : C++ MAX7219 library
// Copyright : stijn.vanwijk@student.hu.nl 2019
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LI... | 25 | 77 | 0.454737 | StijnvanWijk98 |
e05120d4ec82df41b8dbe987e29d5bb226679ec9 | 4,468 | hpp | C++ | cpu/include/deltaCV/shm.hpp | DasudaRunner/CUDA-CV | 4dca7e80e403b978b3b9ef4dc4d8bc962b4380e3 | [
"MIT"
] | 146 | 2018-11-15T13:20:23.000Z | 2022-03-30T01:47:37.000Z | cpu/include/deltaCV/shm.hpp | layyyang/DeltaCV | 4dca7e80e403b978b3b9ef4dc4d8bc962b4380e3 | [
"MIT"
] | 1 | 2018-12-05T04:44:39.000Z | 2020-07-07T01:20:22.000Z | cpu/include/deltaCV/shm.hpp | layyyang/DeltaCV | 4dca7e80e403b978b3b9ef4dc4d8bc962b4380e3 | [
"MIT"
] | 8 | 2019-07-19T07:23:38.000Z | 2021-09-26T15:36:27.000Z | #ifndef DELTAIPS_SHM_HPP
#define DELTAIPS_SHM_HPP
#include <iostream>
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/sync/named_mutex.hpp>
#include <string.h>
namespace deltaCV{
using namespace std;
template <typename T1>
class shm_publisher{
public:
shm_... | 35.181102 | 131 | 0.543196 | DasudaRunner |
e05a0fdf3435ebc5a20b28f10dbf3ab4edabe6a1 | 21,754 | cpp | C++ | src/qt/optionspage.cpp | PRCYCoin/Multisig | 5ee00027ca47333443e18e6a06a7533f240518e0 | [
"MIT"
] | 2 | 2019-12-16T18:15:11.000Z | 2019-12-16T20:08:24.000Z | src/qt/optionspage.cpp | PRCYCoin/Multisig | 5ee00027ca47333443e18e6a06a7533f240518e0 | [
"MIT"
] | 2 | 2020-05-02T10:19:34.000Z | 2020-12-09T17:56:09.000Z | src/qt/optionspage.cpp | PRCYCoin/Multisig | 5ee00027ca47333443e18e6a06a7533f240518e0 | [
"MIT"
] | 9 | 2019-12-16T18:52:29.000Z | 2020-12-21T05:31:23.000Z | // Copyright (c) 2011-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "optionspage.h"
#include "ui_optionspage.h"
#include "addressbookpage.h"
#include "addresstablemodel.h"
#include "bi... | 36.256667 | 248 | 0.654316 | PRCYCoin |
e05eafbfd496a80e0ccd72a974bd1222d7a54877 | 6,235 | cpp | C++ | test/range/test-zip-homogeneous-2.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | test/range/test-zip-homogeneous-2.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | test/range/test-zip-homogeneous-2.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014, 2015 Rogier van Dalen.
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 writing, ... | 28.600917 | 80 | 0.592141 | rogiervd |
e05eb001f5194c3fe20d6aaf519dce413347ab45 | 2,021 | cpp | C++ | GameEngineV3/Test Classes/Pacman/NEAT/main.cpp | adgalad/GameEngineV2 | 1aaa1a510556584e0179ad691cc42de12545abef | [
"MIT"
] | null | null | null | GameEngineV3/Test Classes/Pacman/NEAT/main.cpp | adgalad/GameEngineV2 | 1aaa1a510556584e0179ad691cc42de12545abef | [
"MIT"
] | null | null | null | GameEngineV3/Test Classes/Pacman/NEAT/main.cpp | adgalad/GameEngineV2 | 1aaa1a510556584e0179ad691cc42de12545abef | [
"MIT"
] | null | null | null | //
// main.cpp
// NEAT
//
// Created by Carlos Spaggiari Roa on 4/23/17.
// Copyright © 2017 ARSC. All rights reserved.
//
#include <iostream>
#include "NEAT.hpp"
#define debug(x) printf("%s = %d\n",#x,x)
#define debugf(x) printf("%s = %f\n",#x,x)
Population *p = NULL;
double xorFitness(NeuralNetwork *nn){
do... | 22.208791 | 89 | 0.51806 | adgalad |
e05ef21e3eefbb69b1eaba6ebc01a05bb2ad55df | 3,110 | hpp | C++ | core/src/impl/DenseVector/Cuda/Morpheus_Dot_Impl.hpp | morpheus-org/morpheus | 8f12b7b75fb7c7c02a4d5d41c64791bacc2f54c6 | [
"Apache-2.0"
] | 1 | 2021-12-18T01:18:49.000Z | 2021-12-18T01:18:49.000Z | core/src/impl/DenseVector/Cuda/Morpheus_Dot_Impl.hpp | morpheus-org/morpheus | 8f12b7b75fb7c7c02a4d5d41c64791bacc2f54c6 | [
"Apache-2.0"
] | 5 | 2021-10-05T15:12:02.000Z | 2022-01-21T23:26:41.000Z | core/src/impl/DenseVector/Cuda/Morpheus_Dot_Impl.hpp | morpheus-org/morpheus | 8f12b7b75fb7c7c02a4d5d41c64791bacc2f54c6 | [
"Apache-2.0"
] | null | null | null | /**
* Morpheus_Dot_Impl.hpp
*
* EPCC, The University of Edinburgh
*
* (c) 2021 - 2022 The University of Edinburgh
*
* Contributing Authors:
* Christodoulos Stylianou (c.stylianou@ed.ac.uk)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | 32.395833 | 78 | 0.741479 | morpheus-org |
e05f90a6e5ea7d53fecda03f734550fd23819ab3 | 671 | cpp | C++ | IoStream/main.cpp | wo646231194/CPlus | fdb89c05f47206d08eb8a759c1ac2ccc27a1b140 | [
"Apache-2.0"
] | 2 | 2016-01-25T10:28:13.000Z | 2021-08-25T09:19:06.000Z | IoStream/main.cpp | wo646231194/CPlus | fdb89c05f47206d08eb8a759c1ac2ccc27a1b140 | [
"Apache-2.0"
] | null | null | null | IoStream/main.cpp | wo646231194/CPlus | fdb89c05f47206d08eb8a759c1ac2ccc27a1b140 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <iomanip>
using namespace std;
int add(int x,int y){
return x+y;
}
int main() {
cout << "Hello, World!" << endl;
cout << 20 <<endl;
cout << 30.01 << endl;
int i = 100;
cout << i <<endl;
cout << i+99 <<endl;
cout << add(11,55) <<endl;
cout << "Hello" <<... | 19.171429 | 54 | 0.467958 | wo646231194 |
e0618a04088cd9c52e7d0c7b8eed617acfb43672 | 357 | cpp | C++ | 217.cpp | nitin-maharana/LeetCode | d5e99fa313df3fda65bf385f46f8a62b6d061306 | [
"MIT"
] | 4 | 2016-02-28T17:09:14.000Z | 2017-04-15T15:56:08.000Z | 217.cpp | nitin-maharana/LeetCode | d5e99fa313df3fda65bf385f46f8a62b6d061306 | [
"MIT"
] | null | null | null | 217.cpp | nitin-maharana/LeetCode | d5e99fa313df3fda65bf385f46f8a62b6d061306 | [
"MIT"
] | null | null | null | /*
* Written by Nitin Kumar Maharana
* nitin.maharana@gmail.com
*/
class Solution {
public:
bool containsDuplicate(vector<int>& nums) {
set<int> memory;
for(int i : nums)
memory.insert(i);
if(memory.size() != nums.size())
return true;
els... | 17.85 | 47 | 0.509804 | nitin-maharana |
e06299acc6ec8e673f497bac6624c1430bd6f348 | 2,712 | cpp | C++ | src/examples/xbmcremote.cpp | cpp-ethereum-ios/libjson-rpc-cpp | b1c49a8243df6dd4cd3ad318f81206c0ab146afd | [
"MIT"
] | 5 | 2021-10-07T15:36:37.000Z | 2022-03-01T07:21:49.000Z | src/examples/xbmcremote.cpp | cpp-ethereum-ios/libjson-rpc-cpp | b1c49a8243df6dd4cd3ad318f81206c0ab146afd | [
"MIT"
] | null | null | null | src/examples/xbmcremote.cpp | cpp-ethereum-ios/libjson-rpc-cpp | b1c49a8243df6dd4cd3ad318f81206c0ab146afd | [
"MIT"
] | 1 | 2022-03-01T07:21:51.000Z | 2022-03-01T07:21:51.000Z | /*************************************************************************
* libjson-rpc-cpp
*************************************************************************
* @file xbmcremote.cpp
* @date 03.06.2013
* @author Peter Spiess-Knafl <peter.knafl@gmail.com>
* @license See attached LICENSE.txt
********... | 26.588235 | 114 | 0.439897 | cpp-ethereum-ios |
e063dbb751e1c47ef082fb1e511cdb74e6d89957 | 1,116 | cpp | C++ | src/string_buffer.cpp | NoobSaibot/templ | a5cdf9c1484b7898128236c0dc9302aa2e457501 | [
"MIT"
] | 1 | 2019-10-29T18:24:00.000Z | 2019-10-29T18:24:00.000Z | src/string_buffer.cpp | NoobSaibot/templ | a5cdf9c1484b7898128236c0dc9302aa2e457501 | [
"MIT"
] | 22 | 2019-10-27T10:15:06.000Z | 2019-11-30T15:17:56.000Z | src/string_buffer.cpp | NoobSaibot/templ | a5cdf9c1484b7898128236c0dc9302aa2e457501 | [
"MIT"
] | 1 | 2020-08-25T04:48:27.000Z | 2020-08-25T04:48:27.000Z | enum { STRING_BUFFER_CAP = 128 };
struct String_Buffer {
size_t cap;
size_t len;
size_t size;
char *buf;
};
internal_proc String_Buffer *
sb_push(String_Buffer *sb, char *str, Arena *arena) {
String_Buffer *result = sb;
if ( !result ) {
result = ALLOC_STRUCT(arena, String_Buffer);
... | 24.8 | 67 | 0.55914 | NoobSaibot |
e06a309e158b82515a890a01ef6a545b603e56ae | 80 | cpp | C++ | libboost-dynamic-bitset/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | 4 | 2021-02-23T11:24:33.000Z | 2021-09-11T20:10:46.000Z | libboost-dynamic-bitset/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | null | null | null | libboost-dynamic-bitset/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | null | null | null | #include <boost/dynamic_bitset/dynamic_bitset.hpp>
int
main ()
{
return 0;
}
| 10 | 50 | 0.7125 | build2-packaging |
e06a853b4cea4ea8e9f2cb2660c089acff76d9a9 | 5,712 | cpp | C++ | tests/binary_indexed_tree_2d_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | tests/binary_indexed_tree_2d_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | tests/binary_indexed_tree_2d_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "binary_indexed_tree_2d.hpp"
namespace gt = testing;
namespace pk
{
namespace testing
{
struct binary_indexed_tree_2d_tester : public gt::Test
{
static const int RANGE_1 = 20;
static const int RANGE_2 = 30;
binary_indexed_tree_2d_tester() : t(RANGE_1, RANGE_2) {}
... | 29.595855 | 118 | 0.64951 | pawel-kieliszczyk |
e06d08f08c6bf2a9f94f557ee334dbbe32030e85 | 559 | hpp | C++ | src/Camera/Camera3D.hpp | fqhd/Sokuban | 1b41fb6c6e7c865447824eaffce0dff8c7efafa4 | [
"MIT"
] | 1 | 2021-11-17T07:52:45.000Z | 2021-11-17T07:52:45.000Z | src/Camera/Camera3D.hpp | fqhd/Sokuban | 1b41fb6c6e7c865447824eaffce0dff8c7efafa4 | [
"MIT"
] | null | null | null | src/Camera/Camera3D.hpp | fqhd/Sokuban | 1b41fb6c6e7c865447824eaffce0dff8c7efafa4 | [
"MIT"
] | null | null | null | #ifndef CAMERA3D_H
#define CAMERA3D_H
#include <glm/gtc/matrix_transform.hpp>
#include "../Utils/InputManager.hpp"
class Camera3D {
public:
const glm::mat4& getProjectionMatrix();
const glm::mat4& getViewMatrix();
const glm::vec3& getPosition();
const glm::vec3& getDirection();
protected:
... | 18.633333 | 74 | 0.68873 | fqhd |
e07245e05789ab6dd8b3a75f1c0ebdd7b76732cf | 318 | cpp | C++ | 1877-minimize-maximum-pair-sum-in-array/1877-minimize-maximum-pair-sum-in-array.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | 1877-minimize-maximum-pair-sum-in-array/1877-minimize-maximum-pair-sum-in-array.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | 1877-minimize-maximum-pair-sum-in-array/1877-minimize-maximum-pair-sum-in-array.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | class Solution {
public:
int minPairSum(vector<int>& nums) {
sort(nums.begin(),nums.end());
int ans=INT_MIN;
int l=0;
int r=nums.size()-1;
while(l<r){
ans=max(ans,nums[l]+nums[r]);
l++;
r--;
}
return ans;
}
}; | 19.875 | 41 | 0.418239 | SouvikChan |
e072c4ec03e9fbbffaf2912961b6a7bf304b1a5e | 2,938 | cpp | C++ | aws-cpp-sdk-amplifybackend/source/model/AdditionalConstraintsElement.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-amplifybackend/source/model/AdditionalConstraintsElement.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-amplifybackend/source/model/AdditionalConstraintsElement.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/amplifybackend/model/AdditionalConstraintsElement.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using ... | 34.564706 | 100 | 0.663717 | perfectrecall |
e0738df585640effcec181267c98ab2e45e26abd | 1,070 | cc | C++ | examples/hash_std.cc | RadoslawChmielarz/sparsepp | 856dd563c8e453d8d9c5d0c6e43f404eb22db6d2 | [
"BSD-3-Clause"
] | 1,212 | 2016-08-22T00:34:34.000Z | 2022-03-23T16:28:38.000Z | examples/hash_std.cc | RadoslawChmielarz/sparsepp | 856dd563c8e453d8d9c5d0c6e43f404eb22db6d2 | [
"BSD-3-Clause"
] | 82 | 2016-08-23T11:05:50.000Z | 2021-07-21T20:57:23.000Z | examples/hash_std.cc | RadoslawChmielarz/sparsepp | 856dd563c8e453d8d9c5d0c6e43f404eb22db6d2 | [
"BSD-3-Clause"
] | 143 | 2016-08-22T20:03:33.000Z | 2022-03-05T02:18:17.000Z | #include <iostream>
#include <string>
#include <sparsepp/spp.h>
using std::string;
struct Person
{
bool operator==(const Person &o) const
{
return _first == o._first && _last == o._last;
}
string _first;
string _last;
};
namespace std
{
// inject specialization of std::hash for Person ... | 22.291667 | 71 | 0.51028 | RadoslawChmielarz |
e07575d8f45836bd7b07216f9b0b661de77b9b28 | 18,402 | cc | C++ | src/benchmark_viewer/benchmark_viewer_window.cc | tdelame/median_path | 80f5650ac252903be820c685332f9e815071102e | [
"MIT"
] | 1 | 2019-01-15T04:08:56.000Z | 2019-01-15T04:08:56.000Z | src/benchmark_viewer/benchmark_viewer_window.cc | tdelame/median_path | 80f5650ac252903be820c685332f9e815071102e | [
"MIT"
] | null | null | null | src/benchmark_viewer/benchmark_viewer_window.cc | tdelame/median_path | 80f5650ac252903be820c685332f9e815071102e | [
"MIT"
] | 1 | 2020-09-05T13:10:34.000Z | 2020-09-05T13:10:34.000Z | /* Created on: Mar 31, 2016
* Author: T. Delame (tdelame@gmail.com)
*/
# include "benchmark_viewer/benchmark_viewer_window.h"
# include "simple_gl_renderer.h"
# include <graphics-origin/application/shader_program.h>
# include <graphics-origin/tools/log.h>
# include <graphics-origin/application/camera.h>
# inc... | 38.987288 | 210 | 0.663787 | tdelame |
e0772c5e9c55e4ddc182690c6d917975989fce73 | 9,563 | cpp | C++ | quic/common/test/BufUtilTest.cpp | neko-suki/mvfst | 275edda5be49742221dfb0072e93786eb79cdc43 | [
"MIT"
] | 1 | 2020-01-29T06:41:43.000Z | 2020-01-29T06:41:43.000Z | quic/common/test/BufUtilTest.cpp | neko-suki/mvfst | 275edda5be49742221dfb0072e93786eb79cdc43 | [
"MIT"
] | null | null | null | quic/common/test/BufUtilTest.cpp | neko-suki/mvfst | 275edda5be49742221dfb0072e93786eb79cdc43 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
#include <gtest/gtest.h>
#include <folly/String.h>
#include <quic/common/BufUtil.h>
using namespace std;
using namespace folly... | 31.354098 | 79 | 0.705323 | neko-suki |
2fe61a13d313fd8e4e4c6c92987776cb1e356a24 | 3,809 | cpp | C++ | SoftI2cMaster/SoftI2cMaster.cpp | ardypro/arduino.libraries | a97206d57342aaca2bbf64c50667b1efae99b25d | [
"CC0-1.0"
] | null | null | null | SoftI2cMaster/SoftI2cMaster.cpp | ardypro/arduino.libraries | a97206d57342aaca2bbf64c50667b1efae99b25d | [
"CC0-1.0"
] | null | null | null | SoftI2cMaster/SoftI2cMaster.cpp | ardypro/arduino.libraries | a97206d57342aaca2bbf64c50667b1efae99b25d | [
"CC0-1.0"
] | null | null | null | /* Arduino SoftI2cMaster Library
* Copyright (C) 2009 by William Greiman
*
* This file is part of the Arduino SoftI2cMaster Library
*
* This Library is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation... | 35.598131 | 81 | 0.597007 | ardypro |
2fea8f4c8fba02567647eb836acfc78b0125b2ea | 8,253 | hpp | C++ | a3/src/MeshVertex.hpp | meetps/CS-749 | f1ddc4ed003b3a9f222f2a724d53076ddec697a6 | [
"MIT"
] | 2 | 2022-01-04T00:10:13.000Z | 2022-03-16T23:54:38.000Z | a3/src/MeshVertex.hpp | meetps/CS-749 | f1ddc4ed003b3a9f222f2a724d53076ddec697a6 | [
"MIT"
] | null | null | null | a3/src/MeshVertex.hpp | meetps/CS-749 | f1ddc4ed003b3a9f222f2a724d53076ddec697a6 | [
"MIT"
] | null | null | null | //============================================================================
//
// DGP: Digital Geometry Processing toolkit
// Copyright (C) 2016, Siddhartha Chaudhuri
//
// This software is covered by a BSD license. Portions derived from other
// works are covered by their respective licenses. For full licensing
// ... | 34.103306 | 127 | 0.634072 | meetps |
2feb7142a382beef70d3c72422fe3cd7943f6c0e | 152 | cpp | C++ | next karakter.cpp | restuhanputra/programCPP | 3c841f169a8d3245cff22a3ca2ce4d00055dd270 | [
"MIT"
] | null | null | null | next karakter.cpp | restuhanputra/programCPP | 3c841f169a8d3245cff22a3ca2ce4d00055dd270 | [
"MIT"
] | null | null | null | next karakter.cpp | restuhanputra/programCPP | 3c841f169a8d3245cff22a3ca2ce4d00055dd270 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
char ch;
cout<<"\nEnter any character : ";cin>>ch;
ch++;
cout<<"Next character is : "<<ch;
}
| 13.818182 | 42 | 0.625 | restuhanputra |
2ff05e0c405fd14a3e881a972701eabb875aeb7e | 2,417 | cpp | C++ | z/file/list.cpp | ZacharyWesterman/zLibraries | cbc6a5f4a6cce7d382906eb1754f627b5df1cc1d | [
"MIT"
] | null | null | null | z/file/list.cpp | ZacharyWesterman/zLibraries | cbc6a5f4a6cce7d382906eb1754f627b5df1cc1d | [
"MIT"
] | 12 | 2022-01-09T04:05:56.000Z | 2022-01-16T04:50:52.000Z | z/file/list.cpp | ZacharyWesterman/zLibraries | cbc6a5f4a6cce7d382906eb1754f627b5df1cc1d | [
"MIT"
] | 1 | 2021-01-30T01:19:02.000Z | 2021-01-30T01:19:02.000Z | #include "list.hpp"
#ifdef __linux__
#include <dirent.h>
#elif _WIN32
#include <windows.h>
#else
#error file::list is incompatible with target OS.
#endif
namespace z
{
namespace file
{
core::array< zpath > listFiles(const zpath& dir, const zpath& file_type) noexcept
{
core::array< zpath > output;
zpath s... | 15.593548 | 83 | 0.565163 | ZacharyWesterman |
2ff1be61e435b4ee05c4667ffbe19d1b31293a10 | 2,621 | hpp | C++ | c++/Palm/PalmMenu.hpp | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Palm/PalmMenu.hpp | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Palm/PalmMenu.hpp | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////
//......................................................................................
// This is a part of AI Library [Arthur's Interfaces Library]. .
// 1998-2001 Arthur Amshukov ... | 31.202381 | 95 | 0.415109 | aamshukov |
2ff401e303e9e5164f8d0762b1174b229a9cc9d8 | 21,469 | cpp | C++ | src/calibration_stereo_image_capture.cpp | aussierobots/galaxy_camera_u3v | c60722042b3685caeeaaac9d98215bb3f2883a34 | [
"Apache-2.0"
] | 2 | 2021-09-04T19:40:48.000Z | 2021-09-11T09:50:51.000Z | src/calibration_stereo_image_capture.cpp | aussierobots/galaxy_camera_u3v | c60722042b3685caeeaaac9d98215bb3f2883a34 | [
"Apache-2.0"
] | null | null | null | src/calibration_stereo_image_capture.cpp | aussierobots/galaxy_camera_u3v | c60722042b3685caeeaaac9d98215bb3f2883a34 | [
"Apache-2.0"
] | null | null | null | #include <chrono>
#include <iostream>
#include <iomanip>
#include <string>
// #include <deque>
#include <map>
#include <fstream>
#include "rclcpp/rclcpp.hpp"
#include "rclcpp_components/register_node_macro.hpp"
#include "sensor_msgs/msg/image.hpp"
#include "sensor_msgs/image_encodings.hpp"
#include "galaxy_camera_u3v/v... | 42.852295 | 183 | 0.668732 | aussierobots |
2ff4b6fe5fd80e0d777adf3ae3d193abc099f58d | 785 | cc | C++ | sample_merger.cc | algrant-arm/autofdo | 88ee9d075686a9ceb42a28a136ea98244e7198f9 | [
"Apache-2.0"
] | 1 | 2019-10-25T21:02:11.000Z | 2019-10-25T21:02:11.000Z | sample_merger.cc | pchome/perf2afdo | 1b747a65f57661367a2e42c605ff53917796fdef | [
"Apache-2.0"
] | 1 | 2018-06-12T19:47:39.000Z | 2018-06-12T19:47:39.000Z | sample_merger.cc | pchome/perf2afdo | 1b747a65f57661367a2e42c605ff53917796fdef | [
"Apache-2.0"
] | 1 | 2018-06-12T15:13:47.000Z | 2018-06-12T15:13:47.000Z | // Copyright 2011 Google Inc. All Rights Reserved.
// Author: dehao@google.com (Dehao Chen)
// Main function to merge different type of profile into txt profile.
#include "base/common.h"
#include "profile_creator.h"
DEFINE_string(profile, "data.profile",
"Profile file name");
DEFINE_string(profiler, "p... | 27.068966 | 72 | 0.667516 | algrant-arm |
2ff997af4d44cc70a3a33eca555992a4840b136a | 33,933 | cpp | C++ | yarnc/lib/YarnInstrumentLoop.cpp | RAttab/yarn | 3caa9d589aa298a7d2bf1091d056410206384454 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | yarnc/lib/YarnInstrumentLoop.cpp | RAttab/yarn | 3caa9d589aa298a7d2bf1091d056410206384454 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | yarnc/lib/YarnInstrumentLoop.cpp | RAttab/yarn | 3caa9d589aa298a7d2bf1091d056410206384454 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2020-04-15T23:37:10.000Z | 2020-04-15T23:37:10.000Z | //===- Hello.cpp - Example code from "Writing an LLVM Pass" ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 30.680832 | 90 | 0.652551 | RAttab |
2ffdce3c3da30b0b7c1744cfb8775843d9baeb16 | 19,574 | cpp | C++ | renderer.cpp | nlguillemot/fictional-doodle | d340f4e6983f77ea38b94f8ba30f7f1f5ebb532f | [
"MIT"
] | 14 | 2016-11-20T02:36:24.000Z | 2022-02-18T07:08:25.000Z | renderer.cpp | nlguillemot/fictional-doodle | d340f4e6983f77ea38b94f8ba30f7f1f5ebb532f | [
"MIT"
] | 1 | 2020-07-16T14:33:19.000Z | 2020-07-26T01:49:18.000Z | renderer.cpp | nlguillemot/fictional-doodle | d340f4e6983f77ea38b94f8ba30f7f1f5ebb532f | [
"MIT"
] | 1 | 2016-11-21T09:50:45.000Z | 2016-11-21T09:50:45.000Z | #include "renderer.h"
#include "scene.h"
#include "imgui/imgui.h"
#include <glm/gtx/transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <SDL.h>
#include <cassert>
#include <cstdlib>
#include <cstdio>
#include <algorithm>
void InitRenderer(Renderer* renderer)
{
renderer->ShadowMapSize = 4096;
glGenTex... | 40.949791 | 147 | 0.616379 | nlguillemot |
6404dfbfab7f46f3e70070aad7b7d5a8d2828c8f | 51,898 | hpp | C++ | include/graphMat/graph_mat.hpp | adi-g15/graphMat-rs | 68d06b94152208a6c61d7411ffadf6b67d2c2b11 | [
"Unlicense"
] | null | null | null | include/graphMat/graph_mat.hpp | adi-g15/graphMat-rs | 68d06b94152208a6c61d7411ffadf6b67d2c2b11 | [
"Unlicense"
] | null | null | null | include/graphMat/graph_mat.hpp | adi-g15/graphMat-rs | 68d06b94152208a6c61d7411ffadf6b67d2c2b11 | [
"Unlicense"
] | null | null | null | #pragma once
#include "graph_mat_decl.hpp"
#include "iterators.hpp"
#include <type_traits> // for std::is_invocable
#include <thread>
#include <cassert>
template<typename node_dtype, typename dimen_t>
inline void Graph_Matrix_3D<node_dtype, dimen_t>::resize(const dimen_t newX, const dimen_t newY, const dimen_t newZ, ... | 30.891667 | 361 | 0.701376 | adi-g15 |
6404ebaef9282c558efc3c458c95ea62006e4810 | 3,796 | cpp | C++ | gtsam/linear/GaussianMultifrontalSolver.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | 11 | 2015-02-04T16:41:47.000Z | 2021-12-10T07:02:44.000Z | gtsam/linear/GaussianMultifrontalSolver.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | null | null | null | gtsam/linear/GaussianMultifrontalSolver.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | 6 | 2015-09-10T12:06:08.000Z | 2021-12-10T07:02:48.000Z | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... | 39.957895 | 120 | 0.603793 | sdmiller |
640715f29b53d7b063b40c83adca83ed62aa1fcd | 3,062 | cpp | C++ | asst2_hil00/counter.cpp | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | asst2_hil00/counter.cpp | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | asst2_hil00/counter.cpp | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
class Counter {
private:
int ones, tens ,hundreds,thousands;
public:
Counter( int ones=0,int tens=0 ,int hundreds=0,int thousands=0)
{
this->ones = ones;
this-> tens = tens;
this... | 19.379747 | 88 | 0.447747 | hibalubbad |
640a80bc6f53ef5ef4ba10e916609d0d6032f83a | 10,058 | inl | C++ | AnimationProgramming/Dependencies/include/AltMath/Vector/Vector2.inl | maxbrundev/OpenGL-Skeletal-Animation | 4a0981dc222d4195663b180eaa5a4288aab7477c | [
"MIT"
] | 6 | 2020-05-08T20:24:03.000Z | 2021-12-20T08:42:09.000Z | AnimationProgramming/Dependencies/include/AltMath/Vector/Vector2.inl | maxbrundev/OpenGL-Skeletal-Animation | 4a0981dc222d4195663b180eaa5a4288aab7477c | [
"MIT"
] | null | null | null | AnimationProgramming/Dependencies/include/AltMath/Vector/Vector2.inl | maxbrundev/OpenGL-Skeletal-Animation | 4a0981dc222d4195663b180eaa5a4288aab7477c | [
"MIT"
] | 3 | 2019-03-18T08:33:07.000Z | 2020-04-17T13:38:09.000Z | /**
* Project AltMath
* @author GP2021
* @version 1.0.0
*/
#pragma once
#ifndef _VECTOR2_INL
#define _VECTOR2_INL
#include "AltMath/Tools/Utils.h"
namespace AltMath
{
template <typename T>
constexpr Vector2<T> Vector2<T>::Zero()
{
return Vector2<float>(0, 0);
}
#pragma region Constructors & Assignment
t... | 21.537473 | 97 | 0.686419 | maxbrundev |
640d9f59b150a8270ada6969331eafc2b65a55ed | 10,952 | hpp | C++ | os/api_config.hpp | JehTeh/jel | 2c43cf23ea7b89e7ec0f7c2e9549be74ab0bbc4b | [
"MIT"
] | 14 | 2018-10-09T00:08:26.000Z | 2021-09-24T19:49:42.000Z | os/api_config.hpp | JehTeh/jel | 2c43cf23ea7b89e7ec0f7c2e9549be74ab0bbc4b | [
"MIT"
] | null | null | null | os/api_config.hpp | JehTeh/jel | 2c43cf23ea7b89e7ec0f7c2e9549be74ab0bbc4b | [
"MIT"
] | null | null | null | /** @file os/api_config.hpp
* @brief jel Configuration components.
*
* @detail
* Multiple jel features support custom configuration. These parameters are accessible via this
* API. Note that there are two types of parameters - those configurable at the application level
* and those that require a rebui... | 52.152381 | 114 | 0.763605 | JehTeh |
640f6caafc5630abbfa75a0c23ec17563160082d | 10,289 | cpp | C++ | OGDF/src/ogdf/basic/NearestRectangleFinder.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 13 | 2017-12-21T03:35:41.000Z | 2022-01-31T13:45:25.000Z | OGDF/src/ogdf/basic/NearestRectangleFinder.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 7 | 2017-09-13T01:31:24.000Z | 2021-12-14T00:31:50.000Z | OGDF/src/ogdf/basic/NearestRectangleFinder.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 15 | 2017-09-07T18:28:55.000Z | 2022-01-18T14:17:43.000Z | /** \file
* \brief Implements class NearestRectangleFinder
*
* \author Carsten Gutwenger
*
* \par License:
* This file is part of the Open Graph Drawing Framework (OGDF).
*
* \par
* Copyright (C)<br>
* See README.txt in the root directory of the OGDF installation for details.
*
* \par
* This program is fre... | 27.364362 | 78 | 0.635533 | shahnidhi |
641dfc76588b0f29535b1234d26fa6f1616da525 | 5,590 | cpp | C++ | src/build/boc-shell/command_visitor.cpp | jdmclark/gorc | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | [
"Apache-2.0"
] | 97 | 2015-02-24T05:09:24.000Z | 2022-01-23T12:08:22.000Z | src/build/boc-shell/command_visitor.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 8 | 2015-03-27T23:03:23.000Z | 2020-12-21T02:34:33.000Z | src/build/boc-shell/command_visitor.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 10 | 2016-03-24T14:32:50.000Z | 2021-11-13T02:38:53.000Z | #include "command_visitor.hpp"
#include "system/process.hpp"
#include "system/pipe.hpp"
#include "io_redirection_visitor.hpp"
#include "log/log.hpp"
#include "argument_visitor.hpp"
#include <memory>
gorc::command_visitor::command_visitor(maybe<shvalue*> stdout_variable_target)
: stdout_variable_target(stdout_varia... | 32.882353 | 92 | 0.588014 | jdmclark |
642090f14ec57e5a3e1e32b56d9bb31e86b4b852 | 17,094 | cpp | C++ | src/engine/audio/private/snd_dev_sdl.cpp | DeadZoneLuna/csso-src | 6c978ea304ee2df3796bc9c0d2916bac550050d5 | [
"Unlicense"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | src/engine/audio/private/snd_dev_sdl.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | null | null | null | src/engine/audio/private/snd_dev_sdl.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//===========================================================================//
#include "audio_pch.h"
#if !DEDICATED
#include "tier0/dynfunction.h"
#include "video//ivideoservices.h"
#include "../../sys_dll.h"
// preven... | 29.728696 | 173 | 0.633556 | DeadZoneLuna |
6421d34917930225b6463dc5b543defe68818d5a | 3,172 | cpp | C++ | FakeMath/FakeMath/tests/Vec2/Vector2MultiplicationTest.cpp | FakeEngine/FakeMath | ce5810be8011f54ffc5f97e96eb1d4f4d2c08f5e | [
"Apache-2.0"
] | null | null | null | FakeMath/FakeMath/tests/Vec2/Vector2MultiplicationTest.cpp | FakeEngine/FakeMath | ce5810be8011f54ffc5f97e96eb1d4f4d2c08f5e | [
"Apache-2.0"
] | null | null | null | FakeMath/FakeMath/tests/Vec2/Vector2MultiplicationTest.cpp | FakeEngine/FakeMath | ce5810be8011f54ffc5f97e96eb1d4f4d2c08f5e | [
"Apache-2.0"
] | 3 | 2021-02-28T13:54:40.000Z | 2021-04-27T14:58:33.000Z | #include "Vector2MultiplicationTest.h"
#include "../../src/Core/Test.h"
namespace FakeVector2Tests
{
int test_multiply_vector_1()
{
FakeVec2f v(4.0f, 5.0f);
FakeVec2f vOther(20.0f, 10.0f);
FakeVec2f expected(80.0f, 50.0f);
FakeTimer timer("FakeVector2Tests::test_multiply_vector_1");
FakeVec2f result;
... | 20.597403 | 71 | 0.688209 | FakeEngine |
642668af9c793f1fb23644453e8afe16819b2187 | 968 | hpp | C++ | libmeasure/stub/CMeasureStub.hpp | akiml/ampehre | 383a863442574ea2e6a6ac853a9b99e153daeccf | [
"BSD-2-Clause"
] | 3 | 2016-01-20T13:41:52.000Z | 2018-04-10T17:50:49.000Z | libmeasure/stub/CMeasureStub.hpp | akiml/ampehre | 383a863442574ea2e6a6ac853a9b99e153daeccf | [
"BSD-2-Clause"
] | null | null | null | libmeasure/stub/CMeasureStub.hpp | akiml/ampehre | 383a863442574ea2e6a6ac853a9b99e153daeccf | [
"BSD-2-Clause"
] | null | null | null | /*
* CMeasureStub.hpp
*
* Copyright (C) 2015, Achim Lösch <achim.loesch@upb.de>, Christoph Knorr <cknorr@mail.uni-paderborn.de>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*
* encoding: UTF-8
* tab size: 4
... | 23.609756 | 104 | 0.705579 | akiml |
64278f805935f832c86b5c327b9321ef6696f2fd | 5,039 | cpp | C++ | HelperLibrary.cpp | WindyDarian/ProjectileAimingHelper | c2071b2ef2fe8b5b7113afbb90a794c62460c0a1 | [
"MIT"
] | 3 | 2017-03-05T19:39:29.000Z | 2020-05-03T08:14:31.000Z | HelperLibrary.cpp | WindyDarian/ProjectileAimingHelper | c2071b2ef2fe8b5b7113afbb90a794c62460c0a1 | [
"MIT"
] | null | null | null | HelperLibrary.cpp | WindyDarian/ProjectileAimingHelper | c2071b2ef2fe8b5b7113afbb90a794c62460c0a1 | [
"MIT"
] | null | null | null | // 2017 WindyDarian (RuoyuF). MIT License
#include "thegame.h"
#include "HelperLibrary.h"
#include <limits>
constexpr auto InfFloat = std::numeric_limits<float>::max();
float CalculateProjectileDirectionOneDimensionHelper(float Target, float Gravity, float Speed, bool * bWillHit, float * Time)
{
// Helper function... | 26.382199 | 219 | 0.688232 | WindyDarian |
64328f466bbcb3f9901eaa50e4f97e088bb16353 | 2,745 | cc | C++ | LibLow/Parser.cc | kmc7468/Lowscript | 2d49dd6d2b3ed340ec3cff8a5f5e0f6b241fe9f3 | [
"MIT"
] | 5 | 2017-04-16T10:37:17.000Z | 2020-03-23T19:05:37.000Z | LibLow/Parser.cc | kmc7468/Lowscript | 2d49dd6d2b3ed340ec3cff8a5f5e0f6b241fe9f3 | [
"MIT"
] | null | null | null | LibLow/Parser.cc | kmc7468/Lowscript | 2d49dd6d2b3ed340ec3cff8a5f5e0f6b241fe9f3 | [
"MIT"
] | null | null | null | #include "LibLow/Parser.hh"
#include "LibLow/Command.hh"
#include <algorithm>
#include <cctype>
#include <cstdint>
#include <iterator>
#include <sstream>
#include <utility>
namespace LibLow
{
Command Parser::ParseLine(std::string line)
{
while (line.length() > 0 && (line.front() == ' ' || line.front() == '\t'))
... | 19.748201 | 84 | 0.598179 | kmc7468 |
6436dcea0e5b4645f8cdb1da9ce790c1026280e4 | 20,632 | hpp | C++ | 11_learning_materials/stanford_self_driving_car/planner/aw_chsm_planning/include/aw_ChsmPlanner.hpp | EatAllBugs/autonomous_learning | 02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47 | [
"MIT"
] | 14 | 2021-09-01T14:25:45.000Z | 2022-02-21T08:49:57.000Z | 11_learning_materials/stanford_self_driving_car/planner/aw_chsm_planning/include/aw_ChsmPlanner.hpp | yinflight/autonomous_learning | 02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47 | [
"MIT"
] | null | null | null | 11_learning_materials/stanford_self_driving_car/planner/aw_chsm_planning/include/aw_ChsmPlanner.hpp | yinflight/autonomous_learning | 02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47 | [
"MIT"
] | 3 | 2021-10-10T00:58:29.000Z | 2022-01-23T13:16:09.000Z | /********************************************************
Stanford Driving Software
Copyright (c) 2011 Stanford University
All rights reserved.
Redistribution and use in source and binary forms, with
or without modification, are permitted provided that the
following conditions are met:
* Redistributions... | 41.596774 | 182 | 0.738852 | EatAllBugs |
643ab3e03f5f60fc59cdea98accfa95c142deb2f | 2,091 | cpp | C++ | DocTestTool/screen.cpp | Syndwar/DocTestTool | c171ed7bfeb368c93113f6bbb95d0889d98fdb43 | [
"Apache-2.0"
] | null | null | null | DocTestTool/screen.cpp | Syndwar/DocTestTool | c171ed7bfeb368c93113f6bbb95d0889d98fdb43 | [
"Apache-2.0"
] | null | null | null | DocTestTool/screen.cpp | Syndwar/DocTestTool | c171ed7bfeb368c93113f6bbb95d0889d98fdb43 | [
"Apache-2.0"
] | null | null | null | #include "screen.h"
#include "savedata.h"
//=============================================================================
// class Screen
//=============================================================================
Screen::Screen(QWidget * parent, Ui::DocTestToolClass * ui, SaveData * save)
: parent_(parent)
... | 26.807692 | 79 | 0.599713 | Syndwar |
6441bad442d2e98bec65ba8bd81e875d80d97b6e | 23,453 | cpp | C++ | net80211/Voodoo80211Device.cpp | Champ-Goblem/IntelWiFiDriver---Voodoo80211 | 593128156412690a785a55a3d7615f83b0f54b74 | [
"BSD-2-Clause"
] | 97 | 2020-01-08T10:39:37.000Z | 2020-07-27T07:06:25.000Z | net80211/Voodoo80211Device.cpp | Champ-Goblem/IntelWiFiDriver---Voodoo80211 | 593128156412690a785a55a3d7615f83b0f54b74 | [
"BSD-2-Clause"
] | 10 | 2020-01-07T19:17:32.000Z | 2020-08-12T08:53:23.000Z | net80211/Voodoo80211Device.cpp | Champ-Goblem/IntelWiFiDriver---Voodoo80211 | 593128156412690a785a55a3d7615f83b0f54b74 | [
"BSD-2-Clause"
] | 5 | 2020-01-24T03:41:55.000Z | 2020-02-17T12:50:26.000Z | //
// Voodoo80211Device.cpp
// net80211
//
// Created by Prashant Vaibhav on 20/12/11.
// Copyright (c) 2011 Prashant Vaibhav. All rights reserved.
//
#include "Voodoo80211Device.h"
#include <libkern/c++/OSString.h>
#include <IOKit/IOLib.h>
OSDefineMetaClassAndStructors(Voodoo80211Device, IO80211Controller)
OSDef... | 29.914541 | 148 | 0.69522 | Champ-Goblem |
6446f21c1a5545c1c04caf3d63ac210930ac8327 | 7,278 | cpp | C++ | Sim/sssp.cpp | dzhang50/convey | 65db1667705564535a8fc433c940ce9ceab4f620 | [
"MIT"
] | null | null | null | Sim/sssp.cpp | dzhang50/convey | 65db1667705564535a8fc433c940ce9ceab4f620 | [
"MIT"
] | null | null | null | Sim/sssp.cpp | dzhang50/convey | 65db1667705564535a8fc433c940ce9ceab4f620 | [
"MIT"
] | 1 | 2020-04-22T07:01:57.000Z | 2020-04-22T07:01:57.000Z | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <cassert>
#include <time.h>
#include <queue>
#include <vector>
#include "Worklist.h"
#include "UnorderedWorklist.h"
#include "LIFO.h"
#include "RandomWorklist.h"
#include "OrderedWorklist.h"
#include "ClusteredPushWorklist.h"
#inclu... | 38.104712 | 346 | 0.523633 | dzhang50 |
644a6abebd382d9cffa8c92da48999b2d541c928 | 557 | cpp | C++ | PROGRAM19.cpp | Sachit71/Karnataka-State-Ist-PU-LAB-practicals-source-code | f9eb5480dd24654e5e2743bc618bdf7b6d51ac88 | [
"MIT"
] | 1 | 2022-02-01T06:14:22.000Z | 2022-02-01T06:14:22.000Z | PROGRAM19.cpp | Sachit71/Karnataka-State-Ist-PU-LAB-practicals-source-code | f9eb5480dd24654e5e2743bc618bdf7b6d51ac88 | [
"MIT"
] | null | null | null | PROGRAM19.cpp | Sachit71/Karnataka-State-Ist-PU-LAB-practicals-source-code | f9eb5480dd24654e5e2743bc618bdf7b6d51ac88 | [
"MIT"
] | null | null | null | //Write a C++ program to arrange a list of numbers in ascending order
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
void main( )
{
int a[50], i, temp, j, n;
clrscr( );
cout<<"Enter the number of elements:"<<endl;
cin>>n;
cout<<"Enter the elements:"<<endl;
for(i=0; i<n; i++)
cin>>a[i];
for(i... | 19.206897 | 69 | 0.51526 | Sachit71 |
644be60bf771ca18d62765795292df8827f2e5e4 | 1,093 | cpp | C++ | Deitel/Chapter06/exercises/6.20/ex_620.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | Deitel/Chapter06/exercises/6.20/ex_620.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Deitel/Chapter06/exercises/6.20/ex_620.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | /*
* =====================================================================================
*
* Filename:
*
* Description:
*
* Version: 1.0
* Created: Thanks to github you know it
* Revision: none
* Compiler: g++
*
* Author: Mahmut Erdem ÖZGEN m.erdemozgen... | 22.306122 | 88 | 0.394328 | SebastianTirado |
644ea45db93fbbfc068a76405c5f03a1766bbe3c | 221 | cpp | C++ | Database/Profiler/CCWaitTimeProfiler.cpp | gunaprsd/cavalia | a408c75fa349f3c6f45c929734437647a0c023c5 | [
"Apache-2.0"
] | 109 | 2015-11-28T11:51:35.000Z | 2022-03-24T05:14:57.000Z | Database/Profiler/CCWaitTimeProfiler.cpp | gunaprsd/cavalia | a408c75fa349f3c6f45c929734437647a0c023c5 | [
"Apache-2.0"
] | 2 | 2019-12-03T17:37:00.000Z | 2019-12-04T19:00:51.000Z | Database/Profiler/CCWaitTimeProfiler.cpp | gunaprsd/cavalia | a408c75fa349f3c6f45c929734437647a0c023c5 | [
"Apache-2.0"
] | 25 | 2015-12-09T09:21:40.000Z | 2021-09-24T14:17:26.000Z | #include "CCWaitTimeProfiler.h"
namespace Cavalia{
namespace Database{
long long *cc_wait_time_stat_;
#if defined(PRECISE_TIMER)
PreciseTimeMeasurer *cc_wait_timer_;
#else
TimeMeasurer *cc_wait_timer_;
#endif
}
} | 18.416667 | 38 | 0.791855 | gunaprsd |
644f741c4acace4f3fab9ed5719624b3d10f79f4 | 4,187 | cpp | C++ | examples/projectors/pcontrol.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | examples/projectors/pcontrol.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | examples/projectors/pcontrol.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /*
* Copyright (c) <2011>, Tim Simon <tim.simon@radiumblue.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright n... | 35.483051 | 101 | 0.553857 | WearableComputerLab |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.