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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e5bf3ed8a25632e22230b9751c4fa4bc8efde557 | 2,062 | cpp | C++ | DistanceApp/App/src/SettingsDlg.cpp | 0xlay/Distance | aa7654bccc38c7016a5ee5895a5302c0b23c093a | [
"MIT"
] | 1 | 2021-09-02T07:40:21.000Z | 2021-09-02T07:40:21.000Z | DistanceApp/App/src/SettingsDlg.cpp | 0xlay/Distance | aa7654bccc38c7016a5ee5895a5302c0b23c093a | [
"MIT"
] | 3 | 2021-11-15T15:47:27.000Z | 2021-11-16T17:19:05.000Z | DistanceApp/App/src/SettingsDlg.cpp | 0xlay/Distance | aa7654bccc38c7016a5ee5895a5302c0b23c093a | [
"MIT"
] | 2 | 2021-07-23T00:41:30.000Z | 2021-11-16T06:14:36.000Z | // SettingsDlg.cpp : implementation file
//
#include "pch.hpp"
#include "DistanceApp.hpp"
#include "SettingsDlg.hpp"
#include "afxdialogex.h"
#include "ServerSettings.hpp"
//#include "Server.hpp"
// SettingsDlg dialog
IMPLEMENT_DYNAMIC(SettingsDlg, CDialogEx)
SettingsDlg::SettingsDlg(CWnd* pParent /*=nullptr*/)
... | 20.62 | 75 | 0.746848 | 0xlay |
e5c445a2c834850128c8c81fdc66915848f177fe | 164 | cpp | C++ | ForTeacher/Marks/marks.cpp | DmitrTRC/LabTraining | 9c689e5965d0fbdeacd2e991945c05e4b06c6928 | [
"Apache-2.0"
] | null | null | null | ForTeacher/Marks/marks.cpp | DmitrTRC/LabTraining | 9c689e5965d0fbdeacd2e991945c05e4b06c6928 | [
"Apache-2.0"
] | 1 | 2021-12-11T16:51:56.000Z | 2021-12-11T16:51:56.000Z | ForTeacher/Marks/marks.cpp | DmitrTRC/LabTraining | 9c689e5965d0fbdeacd2e991945c05e4b06c6928 | [
"Apache-2.0"
] | 1 | 2021-12-27T15:30:29.000Z | 2021-12-27T15:30:29.000Z | //
// Created by Dmitry Morozov on 10.12.2021.
//
#include <iostream>
#include "marks.h"
int main() {
std::cout << "hello world" << std::endl;
return 0;
} | 14.909091 | 44 | 0.597561 | DmitrTRC |
e5cefb140d0eefb20eb607005bb043dc7e8065a7 | 665 | hpp | C++ | src/UpdraftPkg/Updraft/Graphics/Rect.hpp | ciffelia/Updraft | 346230a52acf6a8d5b8e93625736e60a1dad8207 | [
"MIT"
] | 1 | 2022-01-06T12:55:09.000Z | 2022-01-06T12:55:09.000Z | src/UpdraftPkg/Updraft/Graphics/Rect.hpp | ciffelia/Updraft | 346230a52acf6a8d5b8e93625736e60a1dad8207 | [
"MIT"
] | null | null | null | src/UpdraftPkg/Updraft/Graphics/Rect.hpp | ciffelia/Updraft | 346230a52acf6a8d5b8e93625736e60a1dad8207 | [
"MIT"
] | null | null | null | #pragma once
#include "../Utils/Types.hpp"
#include "Geometry.hpp"
#include "Color.hpp"
#include "Point.hpp"
#include "Size.hpp"
struct Rect {
Point pos;
Size size;
Rect() = default;
constexpr Rect(const Point _pos, const Size _size)
: pos(_pos)
, size(_size)
{ }
constexpr Rect(const int32 x, c... | 17.972973 | 87 | 0.661654 | ciffelia |
e5da56cafd107fff5d30b71b9df42304e1beab62 | 33,617 | cpp | C++ | bulletgba/generator/data/code/otakutwo/self-2010.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/otakutwo/self-2010.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/otakutwo/self-2010.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | // XXX uniqID XXX efd829ced0c0774cf4ed358403f274ef XXX
#include <gba_types.h>
#include "bullet.hpp"
#include "fixed.hpp"
#include "otakutwo/self-2010.hpp"
extern const BulletStepFunc bullet_5838ab3659160b5a74ef21843c2cb8de_efd829ced0c0774cf4ed358403f274ef[] = {
stepfunc_b1238107a2a5cb0b4a6d3bbc640397a9_efd829ced... | 76.751142 | 362 | 0.840587 | pqrs-org |
e5e4703ac63bd2e540a25b0f7b238b6ee75f254b | 809 | cpp | C++ | ke_mode/winnt/ntke_cpprtl/eh/frame_based/_x86/eh_exception_registration.cpp | 133a/project_ntke_cpprtl | f2d3fd36a2c44f968f7b10c344abe7e0b7aa2e4c | [
"MIT"
] | 12 | 2016-08-02T19:22:26.000Z | 2022-02-28T21:20:18.000Z | ke_mode/winnt/ntke_cpprtl/eh/frame_based/_x86/eh_exception_registration.cpp | 133a/project_ntke_cpprtl | f2d3fd36a2c44f968f7b10c344abe7e0b7aa2e4c | [
"MIT"
] | null | null | null | ke_mode/winnt/ntke_cpprtl/eh/frame_based/_x86/eh_exception_registration.cpp | 133a/project_ntke_cpprtl | f2d3fd36a2c44f968f7b10c344abe7e0b7aa2e4c | [
"MIT"
] | 6 | 2018-04-15T16:51:40.000Z | 2021-04-23T19:32:34.000Z | /////////////////////////////////////////////////////////////////////////////
//// copyright (c) 2012-2017 project_ntke_cpprtl
//// mailto:kt133a@seznam.cz
//// license: the MIT license
/////////////////////////////////////////////////////////////////////////////
#include "eh_config.h"
#include "eh_e... | 26.966667 | 142 | 0.593325 | 133a |
e5e66870c002b3fd1b39ccaf54962aa3a267c169 | 198 | cpp | C++ | 8. Functii recursive/Numarul de cifre/numarCifre.cpp | RegusAl/School | 87deb27f241aab1a93fd1cab0de2c7d8ee93df71 | [
"MIT"
] | 2 | 2021-04-20T21:22:37.000Z | 2021-04-20T21:23:09.000Z | 8. Functii recursive/Numarul de cifre/numarCifre.cpp | RegusAl/School | 87deb27f241aab1a93fd1cab0de2c7d8ee93df71 | [
"MIT"
] | null | null | null | 8. Functii recursive/Numarul de cifre/numarCifre.cpp | RegusAl/School | 87deb27f241aab1a93fd1cab0de2c7d8ee93df71 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int numarCif(int n)
{
if(n<10)
return 1;
else
return numarCif(n/10) + 1;
}
int main()
{
int n;
cin>>n;
cout<<numarCif(n);
return 0;
}
| 9.9 | 30 | 0.585859 | RegusAl |
e5e9ccfbe7623d001efa9fdaca370aba3fc3ded3 | 968 | cpp | C++ | MapTile.cpp | gpelletier0/RogueLike | 82fe8b3b093063e7fceeada7d5cda5f615414207 | [
"MIT"
] | null | null | null | MapTile.cpp | gpelletier0/RogueLike | 82fe8b3b093063e7fceeada7d5cda5f615414207 | [
"MIT"
] | null | null | null | MapTile.cpp | gpelletier0/RogueLike | 82fe8b3b093063e7fceeada7d5cda5f615414207 | [
"MIT"
] | null | null | null | //
// Created by gpelletier on 2022-02.
//
#include "MapTile.h"
using namespace sf;
using namespace std;
/**
* MapTile constructor
* @param texture_name name of the texture
* @param pos position on map
* @param is_passable is tile passable
* @param is_exit is tile an exit
*/
MapTile::MapTile(const string &text... | 23.047619 | 92 | 0.663223 | gpelletier0 |
e5e9f353ea11910d92a757fc396558932c9c8f3f | 1,411 | hpp | C++ | TextEditor/Huffman/InternalNode.hpp | itravers/CS211-TextEditor | 47ddf2745f54ae826a96209eb767fe8280f4ce30 | [
"Apache-2.0"
] | null | null | null | TextEditor/Huffman/InternalNode.hpp | itravers/CS211-TextEditor | 47ddf2745f54ae826a96209eb767fe8280f4ce30 | [
"Apache-2.0"
] | 42 | 2019-09-27T16:46:52.000Z | 2019-12-06T18:39:18.000Z | TextEditor/Huffman/InternalNode.hpp | itravers/CS211-TextEditor | 47ddf2745f54ae826a96209eb767fe8280f4ce30 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Created Date: November 7th, 2019
* Created By: Isaac Travers
* ContextMenu.hpp: This is an internal node for a Huffman tree Node
* This code is pretty much straight copied from the
class textbo... | 23.131148 | 97 | 0.59674 | itravers |
e5ea12bf3f539c916028bb2e0e6c73343f2b93d5 | 2,198 | cpp | C++ | aws-cpp-sdk-chime-sdk-messaging/source/model/Processor.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-chime-sdk-messaging/source/model/Processor.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-chime-sdk-messaging/source/model/Processor.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime-sdk-messaging/model/Processor.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{... | 20.351852 | 109 | 0.735214 | perfectrecall |
e5eede54f6e841bbf3e9588a1d4266f3d9878449 | 836 | hpp | C++ | ModSource/newhaven/map_newhaven/CfgLocationTypes.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 70 | 2017-06-23T21:25:05.000Z | 2022-03-27T02:39:33.000Z | ModSource/newhaven/map_newhaven/CfgLocationTypes.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 84 | 2017-08-26T22:06:28.000Z | 2021-09-09T15:32:56.000Z | ModSource/newhaven/map_newhaven/CfgLocationTypes.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 71 | 2017-06-24T01:10:42.000Z | 2022-03-18T23:02:00.000Z | /*
Breaking Point Mod for Arma 3
Released under Arma Public Share Like Licence (APL-SA)
https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Alderon Games Pty Ltd
*/
class CfgLocationTypes {
class Airport; // External class reference
class myairport : Airport {
name = "CMC Airport";
... | 22 | 76 | 0.66866 | nrailuj |
e5f9f4a7a5420e91eb0cb950258866a3af824f7e | 332 | hpp | C++ | include/low-battery.hpp | sammhicks/keyboard-backlight-events | ca39f93f275c2ec0e8676f8021df8f7693f905b5 | [
"MIT"
] | null | null | null | include/low-battery.hpp | sammhicks/keyboard-backlight-events | ca39f93f275c2ec0e8676f8021df8f7693f905b5 | [
"MIT"
] | null | null | null | include/low-battery.hpp | sammhicks/keyboard-backlight-events | ca39f93f275c2ec0e8676f8021df8f7693f905b5 | [
"MIT"
] | null | null | null | #pragma once
#include "common.hpp"
const Color color = Color::Red;
const Colors leftColor = {color, color, Color::Black};
const Colors rightColor = {Color::Black, color, color};
const Brightness brightness = Brightness::Max;
const milliseconds duration = milliseconds(500);
const int count = 4;
int main(int argc, cha... | 25.538462 | 55 | 0.73494 | sammhicks |
e5fb2ebf365f9c38a21d3e51eae6ec9f4e88f672 | 1,106 | cpp | C++ | Cpp/Linked-Lists/Problems/list-cycle.cpp | mailtokartik1/InterviewBit-Solutions | 8a9be25cf55947aff456c7c138e2ee6f518aa6a5 | [
"MIT"
] | 58 | 2019-06-15T01:35:06.000Z | 2021-04-27T08:32:39.000Z | Linked-Lists/Problems/list-cycle.cpp | mojo912/InterviewBit-Solutions | 62fb19efff15bbe3b42183c12d2e6adf7c4c2a84 | [
"MIT"
] | 3 | 2019-06-17T00:20:13.000Z | 2019-06-30T05:41:10.000Z | Linked-Lists/Problems/list-cycle.cpp | mojo912/InterviewBit-Solutions | 62fb19efff15bbe3b42183c12d2e6adf7c4c2a84 | [
"MIT"
] | 14 | 2019-06-15T01:35:09.000Z | 2020-08-27T19:45:28.000Z | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
ListNode* Solution::detectCycle(ListNode* A) {
// Alternate solution
/*
map<ListNode*, int> B;
while (A) {
if (B[A... | 20.481481 | 75 | 0.444846 | mailtokartik1 |
e5ff2f9efd62f6eae810451c5281c6f96f8a2f60 | 1,885 | cpp | C++ | src/order_book.cpp | ivan-volnov/binance_order_book | c410cd52a480a7e58e35291ac57db80e15f3e0fa | [
"MIT"
] | null | null | null | src/order_book.cpp | ivan-volnov/binance_order_book | c410cd52a480a7e58e35291ac57db80e15f3e0fa | [
"MIT"
] | null | null | null | src/order_book.cpp | ivan-volnov/binance_order_book | c410cd52a480a7e58e35291ac57db80e15f3e0fa | [
"MIT"
] | null | null | null | #include "order_book.hpp"
#include <iostream>
#include <iomanip>
bool OrderBook::is_empty() const
{
return _asks.empty() && _bids.empty();
}
void OrderBook::set_bid(double price, double amount)
{
if (amount) {
_bids[price] = amount;
}
else {
_bids.erase(price);
}
if (_depth) ... | 19.635417 | 65 | 0.520955 | ivan-volnov |
f9038560737ef3edf3407591b2a805f4f4826dfc | 8,392 | cpp | C++ | src/Camera.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 6 | 2017-05-10T19:25:23.000Z | 2021-04-08T23:55:17.000Z | src/Camera.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 1 | 2017-11-10T12:17:26.000Z | 2017-11-10T12:17:26.000Z | src/Camera.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 5 | 2017-05-30T01:07:46.000Z | 2021-04-08T23:55:19.000Z | /**
* Copyright (c) 2017 Neon Edge
* File Name: Camera.cpp
* Header File Name: Camera.h
* Class Name: Camera
* Objective: The purpose of this class is to control the game camera features.
*/
#include <iostream>
#include <math.h>
#include <assert.h>
#include "Camera.h"
#include "Game.h"
#include "Inp... | 37.132743 | 137 | 0.599142 | filipecaixeta |
f90b3263c864104b793c389b70f625b6a15927b6 | 2,526 | cpp | C++ | src/SceneParser.cpp | ASxa86/funnan | 25ecae4458ac66835fe84b33425a0ac8e9f87762 | [
"MIT"
] | null | null | null | src/SceneParser.cpp | ASxa86/funnan | 25ecae4458ac66835fe84b33425a0ac8e9f87762 | [
"MIT"
] | null | null | null | src/SceneParser.cpp | ASxa86/funnan | 25ecae4458ac66835fe84b33425a0ac8e9f87762 | [
"MIT"
] | null | null | null | #include <funnan/SceneParser.h>
#include <funnan/TypeInfo.h>
#include <fstream>
#include <iostream>
#include <pugixml.hpp>
using namespace funnan;
namespace
{
void ParseProperties(const pugi::xml_node& x, Properties& p)
{
const auto tagProperties = x.children("property");
for(const auto& tagProperty : tagPrope... | 21.775862 | 84 | 0.669438 | ASxa86 |
f914f74f376c46b981d89b6b09db258996c18d34 | 3,132 | cpp | C++ | SPOJ/btcode.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | SPOJ/btcode.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | SPOJ/btcode.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cstdlib>
#include <stack>
#include <algorithm>
#include <cctype>
#include <vector>
#include <queue>
#include <tr1/unordered_map>
#include <cmath>
#include <map>
#include <bitset>
#include <set>
#include <iomanip>
#include <sstream>
usi... | 28.216216 | 80 | 0.543423 | henviso |
f91ab3cfdadada73bc42a260eb33de3119d6aca8 | 17,915 | cpp | C++ | extension/sv_helper/SGA/Algorithm/OverlapBlock.cpp | GenePlus/ncsv | f0f426ae4b64de86eee88518e3a1daf5718ce407 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-09-30T09:31:20.000Z | 2020-09-30T09:31:20.000Z | extension/sv_helper/SGA/Algorithm/OverlapBlock.cpp | GenePlus/ncsv | f0f426ae4b64de86eee88518e3a1daf5718ce407 | [
"Apache-2.0",
"MIT"
] | null | null | null | extension/sv_helper/SGA/Algorithm/OverlapBlock.cpp | GenePlus/ncsv | f0f426ae4b64de86eee88518e3a1daf5718ce407 | [
"Apache-2.0",
"MIT"
] | null | null | null | //-----------------------------------------------
// Copyright 2009 Wellcome Trust Sanger Institute
// Written by Jared Simpson (js18@sanger.ac.uk)
// Released under the GPL
//-----------------------------------------------
//
// OverlapBlock - Data structures holding
// the result of the alignment of a sequence read
/... | 35.058708 | 121 | 0.592911 | GenePlus |
f91c7993da0b44c6074f766f1ae62799644101e0 | 1,267 | hh | C++ | TEvtGen/EvtGen/EvtGenBase/EvtRadCorr.hh | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | TEvtGen/EvtGen/EvtGenBase/EvtRadCorr.hh | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | TEvtGen/EvtGen/EvtGenBase/EvtRadCorr.hh | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | //--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... | 23.036364 | 76 | 0.632991 | AllaMaevskaya |
f91e12326fbfa8ddbfab4039501b9f4a77d23e1a | 2,881 | cpp | C++ | tcob/src/physics/B2DFixture.cpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | 2 | 2021-08-18T19:14:35.000Z | 2021-12-01T14:14:49.000Z | tcob/src/physics/B2DFixture.cpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | tcob/src/physics/B2DFixture.cpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Tobias Bohnen
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include <tcob/physics/B2DFixture.hpp>
#include <box2d/box2d.h>
#include <tcob/physics/B2DWorld.hpp>
namespace tcob::physics::box2d {
///////////////////////////////////////////////////... | 25.27193 | 140 | 0.616106 | TobiasBohnen |
f91f589d4a4c9b19c01ebde272d5a4dd5c2bef03 | 23,106 | cpp | C++ | Source/ModuleNavigation.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 10 | 2019-02-05T07:57:21.000Z | 2021-10-17T13:44:31.000Z | Source/ModuleNavigation.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 178 | 2019-02-26T17:29:08.000Z | 2019-06-05T10:55:42.000Z | Source/ModuleNavigation.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 2 | 2020-02-27T18:57:27.000Z | 2020-05-28T01:19:59.000Z | #include "ModuleNavigation.h"
#include "NMInputGeom.h"
#include "NMDebugDraw.h"
#include "ModuleGOs.h"
#include "GameObject.h"
#include "ComponentNavAgent.h"
#include "ComponentTransform.h"
#include "Recast&Detour/Detour/Include/DetourNavMesh.h"
#include "Recast&Detour/Detour/Include/DetourNavMeshBuilder.h"
#include ... | 28.525926 | 242 | 0.731974 | JellyBitStudios |
f922f218e3564ebdc9303b488572e48ee633ae17 | 789 | cpp | C++ | Unit 2/Currency converter/Currency converter/main.cpp | hhaslam11/C-Projects | c9e76edcd136a163d61fc38a80e419c55f84354d | [
"MIT"
] | null | null | null | Unit 2/Currency converter/Currency converter/main.cpp | hhaslam11/C-Projects | c9e76edcd136a163d61fc38a80e419c55f84354d | [
"MIT"
] | null | null | null | Unit 2/Currency converter/Currency converter/main.cpp | hhaslam11/C-Projects | c9e76edcd136a163d61fc38a80e419c55f84354d | [
"MIT"
] | null | null | null | #include <iostream>;
using std::cin;
using std::cout;
using std::endl;
double getRate(int selection, int amount){
const double USD = 1.28, //US
GBP = 1.82, //British pound
JPY = 0.01, //Japanese Yen
MXN = 0.07; //Mexican Peso
switch(selection){
case 1:
return amount * USD;
case 2:
return amount... | 16.102041 | 57 | 0.588086 | hhaslam11 |
f9242d6c36334ed3cd6d7f1ae96db6c3051aea35 | 23,373 | cpp | C++ | src/saiga/vulkan/memory/Defragger.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 114 | 2017-08-13T22:37:32.000Z | 2022-03-25T12:28:39.000Z | src/saiga/vulkan/memory/Defragger.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 7 | 2019-10-14T18:19:11.000Z | 2021-06-11T09:41:52.000Z | src/saiga/vulkan/memory/Defragger.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 18 | 2017-08-14T01:22:05.000Z | 2022-03-12T12:35:07.000Z | //
// Created by Peter Eichinger on 2019-01-21.
//
#include "Defragger.h"
#include "saiga/core/util/Thread/threadName.h"
#include "saiga/vulkan/Base.h"
#include "ImageCopyComputeShader.h"
#include <optional>
namespace Saiga::Vulkan::Memory
{
template <typename T>
bool Defragger<T>::perform_free_operations()
{
u... | 32.194215 | 120 | 0.540624 | no33fewi |
2356a686f98ee4b4861e2a0dcef707b0286362f1 | 210 | cpp | C++ | grok/util/input.cpp | fyrware/grok | 02080a12db2e5da15962ffb7d7a11a52a1ab8a78 | [
"MIT"
] | 2 | 2018-10-21T16:56:07.000Z | 2018-11-15T23:40:48.000Z | grok/util/input.cpp | fyrware/grok | 02080a12db2e5da15962ffb7d7a11a52a1ab8a78 | [
"MIT"
] | 2 | 2018-10-07T04:45:40.000Z | 2018-10-29T00:04:49.000Z | grok/util/input.cpp | fyrware/grok | 02080a12db2e5da15962ffb7d7a11a52a1ab8a78 | [
"MIT"
] | null | null | null | # pragma once
# include <iostream>
# include <string>
namespace grok::util {
std::string input () {
std::string message;
std::getline(std::cin, message);
return message;
}
} | 14 | 40 | 0.57619 | fyrware |
2359050c6a299b6bfeff8eea2f7ec01779f701ce | 24,367 | cpp | C++ | graphics/shaders/GlslGeneratorInstance.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | graphics/shaders/GlslGeneratorInstance.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | graphics/shaders/GlslGeneratorInstance.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #include "GlslGeneratorInstance.hpp"
#include "AttributeNode.hpp"
#include "FloatConstNode.hpp"
#include "IntConstNode.hpp"
#include "OperationNode.hpp"
#include "ActionNode.hpp"
#include "SampleNode.hpp"
#include "SamplerNode.hpp"
#include "SequenceNode.hpp"
#include "SwizzleNode.hpp"
#include "UniformGroup.hpp"
#incl... | 26.865491 | 142 | 0.666434 | quyse |
235aed725232906f87cf0c9bdb7956102fad1895 | 1,767 | cpp | C++ | src/game_oninit.cpp | KranKRival/BomberManNX | 919ec1b0878ddf7fe9f5baecdc0f3a6b71892821 | [
"MIT"
] | 4 | 2019-09-30T18:21:44.000Z | 2020-06-01T18:32:24.000Z | src/game_oninit.cpp | KranKRival/BomberManNX | 919ec1b0878ddf7fe9f5baecdc0f3a6b71892821 | [
"MIT"
] | null | null | null | src/game_oninit.cpp | KranKRival/BomberManNX | 919ec1b0878ddf7fe9f5baecdc0f3a6b71892821 | [
"MIT"
] | null | null | null | #include "game.h"
//#define DEBUG_OUTPUT_GAME
#ifdef DEBUG_OUTPUT_GAME
#include <iostream>
#endif // DEBUG_OUTPUT_GAME
bool game::OnInit()
{
if(SDL_Init(SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0)
{
#ifdef DEBUG_OUTPUT_GAME
std::cout << "SDL_Init Error: " << SDL_GetError() << s... | 28.047619 | 113 | 0.598755 | KranKRival |
236a998c6af7b9b718778b5d8094dced982ce3ee | 873 | cpp | C++ | core/source/core/graphics/vertex_buffer.cpp | Karlashenko/engine-2d | 842c67fb6a7f19eaf16550b441ec7b79af2a0b7a | [
"MIT"
] | null | null | null | core/source/core/graphics/vertex_buffer.cpp | Karlashenko/engine-2d | 842c67fb6a7f19eaf16550b441ec7b79af2a0b7a | [
"MIT"
] | null | null | null | core/source/core/graphics/vertex_buffer.cpp | Karlashenko/engine-2d | 842c67fb6a7f19eaf16550b441ec7b79af2a0b7a | [
"MIT"
] | null | null | null | #include "vertex_buffer.hpp"
#include <glad/glad.h>
#include <utility>
VertexBuffer::VertexBuffer() : m_renderer_id(0)
{
glGenBuffers(1, &m_renderer_id);
}
VertexBuffer::VertexBuffer(void* p_data, U32 p_size, U32 p_usage, VertexLayout p_layout)
: m_renderer_id(0), m_layout(std::move(p_layout))
{
glGenBuf... | 22.384615 | 88 | 0.744559 | Karlashenko |
236ad7fef75b15f80d9aaa370fa8b2d2ede2383f | 4,319 | cpp | C++ | ExampleGame2/Main.cpp | Perukii/TeaGameLibrary | ecf04ce3827cc125523774978a574a095d0ae5c5 | [
"MIT"
] | 11 | 2020-03-08T03:12:38.000Z | 2020-10-30T14:35:39.000Z | ExampleGame2/Main.cpp | Perukii/TeaGameLibrary | ecf04ce3827cc125523774978a574a095d0ae5c5 | [
"MIT"
] | 3 | 2020-03-09T06:46:24.000Z | 2020-03-19T11:00:12.000Z | ExampleGame2/Main.cpp | Perukii/TeaGameLibrary | ecf04ce3827cc125523774978a574a095d0ae5c5 | [
"MIT"
] | 1 | 2020-03-19T09:42:45.000Z | 2020-03-19T09:42:45.000Z | #include "TeaGameLib/Window/App.hpp"
#include "TeaGameLib/GameWorld.hpp"
#include "TeaGameLib/WindowEvent.hpp"
#include "TeaGameLib/Input.hpp"
#include "TeaGameLib/ResourceManager.hpp"
#include "TeaGameLib/Variant.hpp"
#include "TeaGameLib/UtilModel/AnimSpriteModel.hpp"
#include "Ship.cpp"
#include "BackGround.cpp"
#in... | 30.631206 | 124 | 0.697847 | Perukii |
23736b77c211acef9572f0c04abb170e657ae55e | 1,259 | cpp | C++ | program/spml/src/timekeeper.cpp | AlexanderSobolev1990/SPML_open | 31a589aa41e7d9041e7b7c96fde4fa59edcc07c8 | [
"MIT"
] | null | null | null | program/spml/src/timekeeper.cpp | AlexanderSobolev1990/SPML_open | 31a589aa41e7d9041e7b7c96fde4fa59edcc07c8 | [
"MIT"
] | null | null | null | program/spml/src/timekeeper.cpp | AlexanderSobolev1990/SPML_open | 31a589aa41e7d9041e7b7c96fde4fa59edcc07c8 | [
"MIT"
] | null | null | null | //----------------------------------------------------------------------------------------------------------------------
///
/// \file timekeeper.cpp
/// \brief Класс подсчета времени выполнения кода
/// \date 25.09.20 - создан
/// \author Соболев А.А.
/// \addtogroup spml
/// \{
///
#include <tim... | 20.306452 | 130 | 0.594122 | AlexanderSobolev1990 |
237dc983d047f62832c567187e2e0da1c924d80e | 9,103 | cpp | C++ | source/console/concmd.cpp | bambusekd/duel6r | f5b77e54a29ce0f2eb326678dc03ad639ef45a3f | [
"BSD-3-Clause"
] | 2 | 2017-05-01T11:35:26.000Z | 2021-12-17T21:55:14.000Z | source/console/concmd.cpp | bambusekd/duel6r | f5b77e54a29ce0f2eb326678dc03ad639ef45a3f | [
"BSD-3-Clause"
] | null | null | null | source/console/concmd.cpp | bambusekd/duel6r | f5b77e54a29ce0f2eb326678dc03ad639ef45a3f | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2006, Ondrej Danek (www.ondrej-danek.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
* notice, ... | 35.838583 | 116 | 0.51126 | bambusekd |
237ee0728f3d825f794a1c5ec49ff74a98887c04 | 8,567 | hpp | C++ | utils/Vector2.hpp | lwesterl/PhysicsEngine | b528145a6b570a7bbb42c31552d8d8a99beb8d43 | [
"MIT"
] | null | null | null | utils/Vector2.hpp | lwesterl/PhysicsEngine | b528145a6b570a7bbb42c31552d8d8a99beb8d43 | [
"MIT"
] | null | null | null | utils/Vector2.hpp | lwesterl/PhysicsEngine | b528145a6b570a7bbb42c31552d8d8a99beb8d43 | [
"MIT"
] | null | null | null | /**
* @file Vector2.hpp
* @author Lauri Westerholm
* @brief Vector2 Header
* @details Contains class for representing 2D-vectors
*/
#pragma once
#include <ostream>
#include <cmath>
/**
* @namespace pe
* @remark Stands for PhysicsEngine
*/
namespace pe {
template<typename T> class Rect;... | 30.927798 | 86 | 0.557955 | lwesterl |
237f4b78ea96f3b01c37a36d7b7e8f13beba36d0 | 5,798 | cc | C++ | src/hse/codegen/block_ir_builder_test.cc | altale/OpenMLDB | f255d6e609b39efec73f05de2e4ec7671acce967 | [
"Apache-2.0"
] | 1 | 2021-08-23T12:02:30.000Z | 2021-08-23T12:02:30.000Z | src/hse/codegen/block_ir_builder_test.cc | altale/OpenMLDB | f255d6e609b39efec73f05de2e4ec7671acce967 | [
"Apache-2.0"
] | 2 | 2022-03-10T10:38:14.000Z | 2022-03-11T03:25:00.000Z | src/codegen/block_ir_builder_test.cc | vagetablechicken/HybridSE | 7dc2fae5ffea7b810eafc676481fdca9b3b08320 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 4Paradigm
*
* 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 w... | 30.041451 | 78 | 0.594343 | altale |
2384d412f5bc348e06230a45064c71da4610c05f | 1,375 | cc | C++ | problems/cc/print-zero-even-odd.cc | FisherCloud/LeetCode | ad831c0f00d91bb44612b0e8b5a7540e1cfc296e | [
"MIT"
] | null | null | null | problems/cc/print-zero-even-odd.cc | FisherCloud/LeetCode | ad831c0f00d91bb44612b0e8b5a7540e1cfc296e | [
"MIT"
] | null | null | null | problems/cc/print-zero-even-odd.cc | FisherCloud/LeetCode | ad831c0f00d91bb44612b0e8b5a7540e1cfc296e | [
"MIT"
] | null | null | null | /*
* @Description: https://leetcode-cn.com/problems/print-zero-even-odd/
* @Author: 鱼摆摆
* @Email: fishercloud@qq.com
* @Github: https://github.com/FisherCloud
* @Date: 2019-09-02 22:09:48
* @LastEditTime: 2019-09-03 19:21:46
*/
#include <mutex>
using namespace std;
class ZeroEvenOdd
{
private:
... | 19.366197 | 71 | 0.434182 | FisherCloud |
238a98b3d4a833d6f6141e085876d74b44a60071 | 12,394 | cpp | C++ | engine/src/common/pixelboost/graphics/renderer/primitive/primitiveRenderer.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | 6 | 2015-04-21T11:30:52.000Z | 2020-04-29T00:10:04.000Z | engine/src/common/pixelboost/graphics/renderer/primitive/primitiveRenderer.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | null | null | null | engine/src/common/pixelboost/graphics/renderer/primitive/primitiveRenderer.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | null | null | null | #include "glm/gtc/matrix_transform.hpp"
#include "pixelboost/graphics/device/device.h"
#include "pixelboost/graphics/device/indexBuffer.h"
#include "pixelboost/graphics/device/program.h"
#include "pixelboost/graphics/device/vertexBuffer.h"
#include "pixelboost/graphics/renderer/common/renderer.h"
#include "pixelboost/... | 30.082524 | 180 | 0.653865 | pixelballoon |
238f8fb6fdf7814735cfe9565450b8bc0fec1f90 | 1,298 | cpp | C++ | lc/1.cpp | jasonjx-w/code | 3ca769740372eef84fbd8ae24dab9265ef492be9 | [
"MIT"
] | null | null | null | lc/1.cpp | jasonjx-w/code | 3ca769740372eef84fbd8ae24dab9265ef492be9 | [
"MIT"
] | null | null | null | lc/1.cpp | jasonjx-w/code | 3ca769740372eef84fbd8ae24dab9265ef492be9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
// 这道题, 要求返回序号, 就无法排序了.
// 使用暴力法解决
vector<int> twoSum(vector<int>& nums, int target) {
#if 0
for (int i = 0; i < nums.size() - 1; ++i) {
int j = i + 1;
while (j < nums.size()) {
while (j > i + 1 && nums[j] == nums[j - ... | 21.633333 | 63 | 0.533128 | jasonjx-w |
239198c323f794199543e170a93f5c5b1f79f07d | 2,006 | cpp | C++ | Source/Math/Frustum.cpp | igorsegallafa/delta3d | 1c8e2c0a8bab3e378afcef8718a5175fa62f2bf3 | [
"MIT"
] | 7 | 2021-09-01T13:07:14.000Z | 2022-03-23T17:23:17.000Z | Source/Math/Frustum.cpp | igorsegallafa/Delta3D | 1c8e2c0a8bab3e378afcef8718a5175fa62f2bf3 | [
"MIT"
] | null | null | null | Source/Math/Frustum.cpp | igorsegallafa/Delta3D | 1c8e2c0a8bab3e378afcef8718a5175fa62f2bf3 | [
"MIT"
] | 2 | 2022-01-20T14:53:19.000Z | 2022-03-23T17:18:22.000Z | #include "PrecompiledHeader.h"
#include "Frustum.h"
namespace Delta3D::Math
{
void Frustum::Define( float fov, float zoom, float aspectRatio, float nearClip, float farClip )
{
nearDistance = nearClip;
farDistance = farClip;
//Compute Width and Height of near and far planes (scaled)
float tang = tanf(fov* 0.5f);
... | 30.861538 | 95 | 0.687438 | igorsegallafa |
2393a11847c450e4addafd33bdaaa5b4e4c8529c | 1,957 | hpp | C++ | galaxy/src/galaxy/audio/Buffer.hpp | DomRe/galaxy | dbffcbe3ff1ea0f1cb1f23a554b13be0eb681a57 | [
"Apache-2.0"
] | 19 | 2020-02-02T16:36:46.000Z | 2021-12-25T07:02:28.000Z | galaxy/src/galaxy/audio/Buffer.hpp | DomRe/galaxy | dbffcbe3ff1ea0f1cb1f23a554b13be0eb681a57 | [
"Apache-2.0"
] | 103 | 2020-10-13T09:03:42.000Z | 2022-03-26T03:41:50.000Z | galaxy/src/galaxy/audio/Buffer.hpp | DomRe/galaxy | dbffcbe3ff1ea0f1cb1f23a554b13be0eb681a57 | [
"Apache-2.0"
] | 5 | 2020-03-13T06:14:37.000Z | 2021-12-12T02:13:46.000Z | ///
/// Buffer.hpp
/// galaxy
///
/// Refer to LICENSE.txt for more details.
///
#ifndef GAlAXY_AUDIO_BUFFER_HPP_
#define GAlAXY_AUDIO_BUFFER_HPP_
#include <span>
#include <AL/al.h>
#include <AL/alc.h>
namespace galaxy
{
namespace audio
{
///
/// Holds a single piece of audio.
///
class Buffer
{
publi... | 17.017391 | 68 | 0.564129 | DomRe |
239d81153fe92eeb2d8742e6cb1e54ad8c52a404 | 203 | cpp | C++ | CollyraEngine/CollyraEngine/Engine/CollyraGameSystem/GameScripts/asd.cpp | Collyra-Modding-Guild/CollyraEngine | c6c99160995dc2ed28a058df353f13d6ce8c3af4 | [
"MIT"
] | null | null | null | CollyraEngine/CollyraEngine/Engine/CollyraGameSystem/GameScripts/asd.cpp | Collyra-Modding-Guild/CollyraEngine | c6c99160995dc2ed28a058df353f13d6ce8c3af4 | [
"MIT"
] | null | null | null | CollyraEngine/CollyraEngine/Engine/CollyraGameSystem/GameScripts/asd.cpp | Collyra-Modding-Guild/CollyraEngine | c6c99160995dc2ed28a058df353f13d6ce8c3af4 | [
"MIT"
] | null | null | null | #include "asd.h"
asd::asd() : CollObject()
{
}
asd::~asd()
{
}
void asd::Start()
{
}
void asd::Update()
{
}
COLLYRAGAMESYSTEM_EXPORTS asd* Createasd()
{
asd* newasd = new asd();
return newasd;
}
| 8.458333 | 42 | 0.600985 | Collyra-Modding-Guild |
23a4011d60db3630ff0832f6f8333ba468b77ff9 | 3,125 | cpp | C++ | Sockets/StringSocket.cpp | Agere98/Battleship | e011e6c2ae311f704e96ce56c9ec6b9cf7757628 | [
"MIT"
] | null | null | null | Sockets/StringSocket.cpp | Agere98/Battleship | e011e6c2ae311f704e96ce56c9ec6b9cf7757628 | [
"MIT"
] | null | null | null | Sockets/StringSocket.cpp | Agere98/Battleship | e011e6c2ae311f704e96ce56c9ec6b9cf7757628 | [
"MIT"
] | null | null | null | #include "StringSocket.h"
#include <algorithm>
#include <string.h>
#include <stdexcept>
namespace Sockets {
int StringSocket::_read(char* buffer, int length) {
// If there are unprocesed characters in the internal buffer
// (after a call to readLine), read them first
if (bufferPos != bufferEnd) {
int size =... | 25.614754 | 76 | 0.68608 | Agere98 |
23a7370dae48e859517508d842ded9c61099b30e | 10,029 | hpp | C++ | compiler-cpp/sources/fstd/core/unicode.hpp | Flamaros/f-lang | bcfe9e814e0c654ce68939ecf78b9fc0a937a3fc | [
"MIT"
] | null | null | null | compiler-cpp/sources/fstd/core/unicode.hpp | Flamaros/f-lang | bcfe9e814e0c654ce68939ecf78b9fc0a937a3fc | [
"MIT"
] | null | null | null | compiler-cpp/sources/fstd/core/unicode.hpp | Flamaros/f-lang | bcfe9e814e0c654ce68939ecf78b9fc0a937a3fc | [
"MIT"
] | null | null | null | #pragma once
#include <fstd/language/string.hpp>
#include <fstd/language/string_view.hpp>
#include <fstd/language/types.hpp>
// @TODO replace by my instinsics
#include <intrin.h>
// Module that contains methods to manage conversion between unicode strings.
// There is some that directly give code points and some oth... | 36.336957 | 181 | 0.683019 | Flamaros |
23aa368bcafd3740c332921002f81d46306a0e2e | 4,555 | cc | C++ | impl/components/editing/content/browser/editor_client_observer.cc | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | 9 | 2015-04-09T20:22:08.000Z | 2021-03-17T08:34:56.000Z | impl/components/editing/content/browser/editor_client_observer.cc | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | 2 | 2015-02-04T13:41:12.000Z | 2015-05-25T14:00:40.000Z | impl/components/editing/content/browser/editor_client_observer.cc | isabella232/chromium-efl | db2d09aba6498fb09bbea1f8440d071c4b0fde78 | [
"BSD-3-Clause"
] | 14 | 2015-02-12T16:20:47.000Z | 2022-01-20T10:36:26.000Z | // Copyright 2013 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "editor_client_observer.h"
#include <stddef.h>
#include <limits>
#include <map>
#include <set>
#include <utility>
#include "base/bind.h"
#includ... | 38.277311 | 107 | 0.731504 | Jabawack |
23b3711f78af314c50cd6eae06fe76df0d5addf4 | 6,922 | cpp | C++ | tests/benchmarks.cpp | beached/iso8601_parsing | 8e5c9510d26fbfe3f96f4b999b722686528fcc4a | [
"MIT"
] | null | null | null | tests/benchmarks.cpp | beached/iso8601_parsing | 8e5c9510d26fbfe3f96f4b999b722686528fcc4a | [
"MIT"
] | null | null | null | tests/benchmarks.cpp | beached/iso8601_parsing | 8e5c9510d26fbfe3f96f4b999b722686528fcc4a | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) Darrell Wright
//
// 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... | 34.267327 | 80 | 0.620341 | beached |
23be76db3144a2eb3c03f8b4ede0499389355ec7 | 159 | cpp | C++ | strings/substr.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | 2 | 2019-04-11T16:41:42.000Z | 2019-11-19T22:07:57.000Z | strings/substr.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | null | null | null | strings/substr.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
string sentence = "0123456789";
cout<<sentence.substr(1,3)<<endl;
return 0;
} | 13.25 | 37 | 0.591195 | punithpatil |
23c31f9a6c6a7e20f6771a10440b083c575198ff | 483 | cpp | C++ | leetcode/easy/66. Plus One.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | 7 | 2019-08-05T14:49:41.000Z | 2022-03-13T07:10:51.000Z | leetcode/easy/66. Plus One.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | null | null | null | leetcode/easy/66. Plus One.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | 4 | 2021-01-04T03:45:22.000Z | 2021-10-06T06:11:00.000Z | /**
* problem : https://leetcode.com/problems/plus-one/
* time complexity : O(N)
*/
class Solution {
public:
vector<int> plusOne(vector<int>& digits) {
int n = digits.size();
vector<int> ans(n);
int d = 1;
for(int i=n-1; i>=0; i--) {
d += digits[i];
ans[n-... | 21 | 52 | 0.445135 | Jeongseo21 |
23c6cc3132de6bc6ee1c2aaeabee86b4efe6396a | 404 | cpp | C++ | REFERENCE-SOLUTION/addCmdLine.cpp | ucsb-gradescope-tools/sample-cpp-tddFuncs-autograder | 00a7902c012f50c11432f816d15d5ab57f465fa3 | [
"MIT"
] | 1 | 2022-02-24T08:47:57.000Z | 2022-02-24T08:47:57.000Z | SAMPLE-SOLUTION-2/addCmdLine.cpp | ucsb-gradescope-tools/sample-cpp-tddFuncs-autograder | 00a7902c012f50c11432f816d15d5ab57f465fa3 | [
"MIT"
] | null | null | null | SAMPLE-SOLUTION-2/addCmdLine.cpp | ucsb-gradescope-tools/sample-cpp-tddFuncs-autograder | 00a7902c012f50c11432f816d15d5ab57f465fa3 | [
"MIT"
] | 6 | 2019-01-11T00:37:13.000Z | 2020-07-17T19:29:11.000Z | #include <iostream>
using namespace std;
#include "add.h"
void usage() {
cerr << "usage: ./addCmdLine a b" << endl;
}
int main(int argc, char const *argv[]) {
if (argc != 3) {
usage();
return 1;
}
try {
int a = stoi(argv[1]);
int b = stoi(argv[2]);
cout << "sum = " << addEm(a,b) << end... | 14.962963 | 44 | 0.522277 | ucsb-gradescope-tools |
23ca07993bb9f4206d67b895caf119609c2bd910 | 1,335 | hpp | C++ | backends/cxx/include/env.hpp | Chengifei/SySSFEs | 9e08715ed137d2405c051d9f74e9ab8bf18d4cbe | [
"Apache-2.0"
] | 1 | 2021-01-02T15:22:05.000Z | 2021-01-02T15:22:05.000Z | backends/cxx/include/env.hpp | Chengifei/SySSFEs | 9e08715ed137d2405c051d9f74e9ab8bf18d4cbe | [
"Apache-2.0"
] | null | null | null | backends/cxx/include/env.hpp | Chengifei/SySSFEs | 9e08715ed137d2405c051d9f74e9ab8bf18d4cbe | [
"Apache-2.0"
] | null | null | null | /* Copyright 2017-2018 by Yifei Zheng
*
* 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 agree... | 28.404255 | 82 | 0.755056 | Chengifei |
23cbf102d0c13e8ab3741b0ecfbf75ee5a891f97 | 23,441 | cpp | C++ | software/apps/quakeview/PakFile.cpp | v8786339/NyuziProcessor | 34854d333d91dbf69cd5625505fb81024ec4f785 | [
"Apache-2.0"
] | 1,388 | 2015-02-05T17:16:17.000Z | 2022-03-31T07:17:08.000Z | software/apps/quakeview/PakFile.cpp | czvf/NyuziProcessor | 31f74e43a785fa66d244f1e9744ca0ca9b8a1fad | [
"Apache-2.0"
] | 176 | 2015-02-02T02:54:06.000Z | 2022-02-01T06:00:21.000Z | software/apps/quakeview/PakFile.cpp | czvf/NyuziProcessor | 31f74e43a785fa66d244f1e9744ca0ca9b8a1fad | [
"Apache-2.0"
] | 271 | 2015-02-18T02:19:04.000Z | 2022-03-28T13:30:25.000Z | //
// Copyright 2015 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... | 34.120815 | 145 | 0.580991 | v8786339 |
23d259ccf69705fa02a83cb784323ed74f40b653 | 418 | hpp | C++ | inc/AdressValidator.hpp | LuckyCode7/Database | dd6ea636f38a9b5bd4b70867f0eb65d86bc8006c | [
"MIT"
] | null | null | null | inc/AdressValidator.hpp | LuckyCode7/Database | dd6ea636f38a9b5bd4b70867f0eb65d86bc8006c | [
"MIT"
] | 5 | 2018-07-31T17:11:22.000Z | 2018-08-08T10:27:32.000Z | inc/AdressValidator.hpp | LuckyCode7/Database | dd6ea636f38a9b5bd4b70867f0eb65d86bc8006c | [
"MIT"
] | null | null | null | #pragma once
#include<../inc/DataValidator.hpp>
#include<../inc/Adress.hpp>
class AdressValidator : public DataValidator
{
private:
static bool checkCityAndStreetLetters(const Adress& adress) noexcept;
static bool checkCityAndStreetSize(const Adress& adress) noexcept;
static bool checkNumberOfStreet(const ... | 29.857143 | 73 | 0.77512 | LuckyCode7 |
23d8073d8bdb31172ddf30c9f293431a411ee5cd | 10,753 | cpp | C++ | src/app/ControllerMovementRecorderComponent.cpp | jarllarsson/loppan | 64676c950facfedd88b4b5fbc589610251fb0c2b | [
"BSD-3-Clause"
] | null | null | null | src/app/ControllerMovementRecorderComponent.cpp | jarllarsson/loppan | 64676c950facfedd88b4b5fbc589610251fb0c2b | [
"BSD-3-Clause"
] | 9 | 2015-04-25T13:50:29.000Z | 2015-05-03T14:17:37.000Z | src/app/ControllerMovementRecorderComponent.cpp | jarllarsson/loppan | 64676c950facfedd88b4b5fbc589610251fb0c2b | [
"BSD-3-Clause"
] | null | null | null | #include "ControllerMovementRecorderComponent.h"
#include "ControllerComponent.h"
#include "ControllerSystem.h"
#include <assert.h>
#include <ToString.h>
ControllerMovementRecorderComponent::ControllerMovementRecorderComponent()
{
m_fdWeight = 1000.0f; // deviation from reference motion
m_fvWeight = 0.1f; // devi... | 38.403571 | 265 | 0.743234 | jarllarsson |
23da5788ba4e889d9dac2ef3f7f3efe255c1b5e3 | 2,407 | cpp | C++ | CodeJam1A/B.cpp | julianferres/Codeforces | ac80292a4d53b8078fc1a85e91db353c489555d9 | [
"MIT"
] | 4 | 2020-01-31T15:49:25.000Z | 2020-07-07T11:44:03.000Z | CodeJam1A/B.cpp | julianferres/CodeForces | 14e8369e82a2403094183d6f7824201f681c9f65 | [
"MIT"
] | null | null | null | CodeJam1A/B.cpp | julianferres/CodeForces | 14e8369e82a2403094183d6f7824201f681c9f65 | [
"MIT"
] | null | null | null | /* AUTHOR: julianferres */
#include <bits/stdc++.h>
using namespace std;
// neal Debugger
template<typename A, typename B> ostream& operator<<(ostream &os, const pair<A, B> &p) { return os << '(' << p.first << ", " << p.second << ')'; }
template<typename T_container, typename T = typename enable_if<!is_same<T_cont... | 29.353659 | 290 | 0.53926 | julianferres |
23e0ce19b3aefc77eabd597070ed0dd92dfa9538 | 1,333 | cpp | C++ | gSpiderMac/gSpiderMac/testWrap.cpp | reichtiger/grampusSpider | d8ba6b96a7af085c7c2420a5bcb1fa35ee8b03b7 | [
"Apache-2.0"
] | 87 | 2015-08-05T12:49:16.000Z | 2021-09-23T03:24:40.000Z | gSpiderMac/gSpiderMac/testWrap.cpp | reichtiger/grampusSpider | d8ba6b96a7af085c7c2420a5bcb1fa35ee8b03b7 | [
"Apache-2.0"
] | null | null | null | gSpiderMac/gSpiderMac/testWrap.cpp | reichtiger/grampusSpider | d8ba6b96a7af085c7c2420a5bcb1fa35ee8b03b7 | [
"Apache-2.0"
] | 52 | 2015-09-24T05:19:29.000Z | 2020-10-14T07:14:22.000Z | //
// testWrap.cpp
// gSpiderMac
//
// Created by reich on 14/10/21.
// Copyright (c) 2014年 zhaohu. All rights reserved.
//
//#include "Stdafx.h"
#include "testWrap.h"
namespace gSpider {
void MyWindow_initialize(Isolate* isolate, Handle<ObjectTemplate> global)
{
// XMLHttpRequest wrap
Ha... | 28.361702 | 94 | 0.631658 | reichtiger |
23ef77de4c5ddd71255b7f6301f35e0a4a7bdb8e | 8,698 | cc | C++ | libs/tube/server.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/tube/server.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/tube/server.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | //==========================================================================
// ObTools::Tube: server.cc
//
// Implementation of tube server
//
// Copyright (c) 2007 Paul Clark. All rights reserved
// This code comes with NO WARRANTY and is subject to licence agreement
//===============================================... | 29.484746 | 79 | 0.556565 | sandtreader |
23f2a4e415ebb6ff0362fda72d61c3e3366526a4 | 3,458 | cc | C++ | muqueue/src/asyncsubsys.cc | edelsys/colibri | 4cce9d1c3facff1a8115c84f2ffb28676f3745ce | [
"MIT"
] | 5 | 2021-01-15T12:55:18.000Z | 2022-03-15T10:23:54.000Z | muqueue/src/asyncsubsys.cc | edelsys/colibri | 4cce9d1c3facff1a8115c84f2ffb28676f3745ce | [
"MIT"
] | null | null | null | muqueue/src/asyncsubsys.cc | edelsys/colibri | 4cce9d1c3facff1a8115c84f2ffb28676f3745ce | [
"MIT"
] | 1 | 2021-02-26T07:53:45.000Z | 2021-02-26T07:53:45.000Z | /*
* Copyright (c) 2020, EDEL LLC <http://www.edelsys.com>
* All Rights Reserved
*
* Licensed under the MIT License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Permission is hereby granted, free of ch... | 29.555556 | 80 | 0.71631 | edelsys |
23f39f42a69bb63b47f0aa69afbf96cd13882b6e | 2,347 | hpp | C++ | source/yahoofinace/old/quote_requester.hpp | zeplaz/s_liz_rz | 612ebd97be4d0624b967b1968c45f092ea1c8ddb | [
"MIT"
] | null | null | null | source/yahoofinace/old/quote_requester.hpp | zeplaz/s_liz_rz | 612ebd97be4d0624b967b1968c45f092ea1c8ddb | [
"MIT"
] | null | null | null | source/yahoofinace/old/quote_requester.hpp | zeplaz/s_liz_rz | 612ebd97be4d0624b967b1968c45f092ea1c8ddb | [
"MIT"
] | null | null | null | //quote_requester.hpp
#ifndef SLIZERZ_YAHOOFINACE_QUOUTE_REQUESTER_01_HPP
#define SLIZERZ_YAHOOFINACE_QUOUTE_REQUESTER_01_HPP
#include <memory>
#include <atomic>
#include <condition_variable> // std::condition_variable
#include <mutex>
#include <queue>
#include <unordered_map>
#include "yf_curl.hpp"
#include "../... | 17.131387 | 107 | 0.729016 | zeplaz |
23f626abdd4693422bf92ff5d9366f5d90d4ce0e | 2,233 | cc | C++ | abel/threading/internal/spinlock_wait.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | abel/threading/internal/spinlock_wait.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | abel/threading/internal/spinlock_wait.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | //
// The OS-specific header included below must provide two calls:
// AbelInternalSpinLockDelay() and AbelInternalSpinLockWake().
// See spinlock_wait.h for the specs.
#include <atomic>
#include <cstdint>
#include <abel/threading/internal/spinlock_wait.h>
#if defined(_WIN32)
#include <abel/threading/internal/spinl... | 31.9 | 78 | 0.650694 | Conun |
23fb6a63b7d291461d9cefd27e552b65da4b43ea | 1,058 | cpp | C++ | src/interact/server.cpp | AndreyMokryj/unix-ipc-lab | 6a11b71b3215f9e7d8d3a9f192ab202c1882864f | [
"MIT"
] | 1 | 2020-11-20T19:42:43.000Z | 2020-11-20T19:42:43.000Z | src/interact/server.cpp | Nlioxa/unix-ipc-lab | 1f052aadf933fe39bf7a80414b0e35c49ac7c140 | [
"MIT"
] | null | null | null | src/interact/server.cpp | Nlioxa/unix-ipc-lab | 1f052aadf933fe39bf7a80414b0e35c49ac7c140 | [
"MIT"
] | null | null | null | #include "../message.hpp"
#include "../channel.hpp"
#include <unistd.h>
int main()
{
auto &log = std::cout;
auto channel = ipc::Channel::Server(8000);
log << "listening...\n";
for (auto msg = data::Message(); msg.type() != data::MessageType::Terminate;)
{
channel.Read((char *)&msg, size... | 22.041667 | 81 | 0.449905 | AndreyMokryj |
671394cc53f77071649f3e93a36cd2a8a4a3c311 | 9,645 | cpp | C++ | src/cpp/main.cpp | VougaDev/node-mta | 158dcccf146d95d6bb585deb8b387769b8564312 | [
"MIT"
] | null | null | null | src/cpp/main.cpp | VougaDev/node-mta | 158dcccf146d95d6bb585deb8b387769b8564312 | [
"MIT"
] | null | null | null | src/cpp/main.cpp | VougaDev/node-mta | 158dcccf146d95d6bb585deb8b387769b8564312 | [
"MIT"
] | null | null | null |
#include "main.hpp"
namespace boutch
{
napi_value TRUE;
napi_value FALSE;
model::config configuration;
smtp::sender sender;
dkim::signer signer;
napi_value send(napi_env env, napi_callback_info args)
{
size_t argc = 2;
napi_value argv[2];
napi_status status = napi_get_cb_info(env, args, &argc, argv, N... | 27.478632 | 111 | 0.650078 | VougaDev |
6728fd2f36a42a01bc390794dc04f1f4647e4bd4 | 411 | cpp | C++ | src/Codeforces_Round_1.cpp | MXLev/codeforces | 5229b2c9613bb7b4975a632ef95c4bf3996d2c44 | [
"MIT"
] | 2 | 2021-12-12T15:28:46.000Z | 2022-01-21T05:35:40.000Z | src/Codeforces_Round_1.cpp | MXLev/codeforces | 5229b2c9613bb7b4975a632ef95c4bf3996d2c44 | [
"MIT"
] | null | null | null | src/Codeforces_Round_1.cpp | MXLev/codeforces | 5229b2c9613bb7b4975a632ef95c4bf3996d2c44 | [
"MIT"
] | null | null | null | //
// Created by Beast on 14.12.2021.
//
#include <iostream>
using namespace std;
int main() {
int t;
cin >> t;
for (int i = 0; i < t; ++i) {
long a, b, c, d, e, f, g;
cin >> a >> b >> c >> d >> e >> f >> g;
if (a + b == c){
cout << a << ' ' << b << ' ' << d << '\n';
... | 20.55 | 56 | 0.311436 | MXLev |
672ca464f564ef1d0adbbf188e2676cddd3cdb3a | 263 | cpp | C++ | source/game/server/serverGameWorld.cpp | TheCandianVendingMachine/TacticalShooter | 3ef34a0cb7be3db75e31e19b3ed3e3ff3804f67f | [
"MIT"
] | null | null | null | source/game/server/serverGameWorld.cpp | TheCandianVendingMachine/TacticalShooter | 3ef34a0cb7be3db75e31e19b3ed3e3ff3804f67f | [
"MIT"
] | null | null | null | source/game/server/serverGameWorld.cpp | TheCandianVendingMachine/TacticalShooter | 3ef34a0cb7be3db75e31e19b3ed3e3ff3804f67f | [
"MIT"
] | null | null | null | #include "serverGameWorld.hpp"
serverGameWorld::serverGameWorld() :
m_physicsSystem(m_physics)
{
}
void serverGameWorld::update()
{
}
void serverGameWorld::fixedUpdate(double deltaTime)
{
m_physics.fixedUpdate(deltaTime);
}
| 16.4375 | 51 | 0.676806 | TheCandianVendingMachine |
6731f1e24583ca3bf75cdbcab707be795693b2c3 | 475 | cpp | C++ | src/ParametersInit.cpp | votol/FibersCubicComul | 05f7c1044ae0ee22af249751c57af9b3ae71a7ec | [
"BSD-3-Clause"
] | null | null | null | src/ParametersInit.cpp | votol/FibersCubicComul | 05f7c1044ae0ee22af249751c57af9b3ae71a7ec | [
"BSD-3-Clause"
] | null | null | null | src/ParametersInit.cpp | votol/FibersCubicComul | 05f7c1044ae0ee22af249751c57af9b3ae71a7ec | [
"BSD-3-Clause"
] | null | null | null | #include "ParametersInit.h"
#include "schema.h"
#include "ParameterDefines.h"
#include <iostream>
ParametersHolder::ParametersHolder(YAML::Node&& in)
{
parameters.resize(5);
t = 0.0;
Nfibs = in[FibersCubicComulSchema::PARAMETER_Nfibs].as<double>();
Nfibs_calc = in[FibersCubicComulSchema::PARAMETER_Nfibs... | 33.928571 | 79 | 0.730526 | votol |
6733f0a4e42937a58f043afb786ee229807937c0 | 16,254 | cpp | C++ | Sources/etwprof/Profiler/ETWProfiler.cpp | Donpedro13/etwprof | a9db371ef556d564529c5112c231157d3789292b | [
"MIT"
] | 38 | 2018-06-11T19:09:16.000Z | 2022-03-17T04:15:15.000Z | Sources/etwprof/Profiler/ETWProfiler.cpp | Donpedro13/etwprof | a9db371ef556d564529c5112c231157d3789292b | [
"MIT"
] | 12 | 2018-06-12T20:24:05.000Z | 2021-07-31T18:28:48.000Z | Sources/etwprof/Profiler/ETWProfiler.cpp | Donpedro13/etwprof | a9db371ef556d564529c5112c231157d3789292b | [
"MIT"
] | 5 | 2019-02-23T04:11:03.000Z | 2022-03-17T04:15:18.000Z | #include "ETWProfiler.hpp"
#include <process.h>
#include <string>
#include <vector>
#include "Log/Logging.hpp"
#include "OS/ETW/ETWConstants.hpp"
#include "OS/ETW/ETWSessionCommon.hpp"
#include "OS/ETW/NormalETWSession.hpp"
#include "OS/ETW/TraceRelogger.hpp"
#include "OS/ETW/Win7KernelSession.hpp"
#include "OS/ETW/... | 32.186139 | 119 | 0.617386 | Donpedro13 |
673b2c2143eeae5120f3b5e29f85f09eab9047eb | 971 | cpp | C++ | CodeInterviews-SwordOffer/Offer03-Duplicate-Numbers-In-An-Array/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | CodeInterviews-SwordOffer/Offer03-Duplicate-Numbers-In-An-Array/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | CodeInterviews-SwordOffer/Offer03-Duplicate-Numbers-In-An-Array/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | //
// main.cpp
// LeetCode-Solution
//
// Created by Loyio Hex on 3/13/22.
//
#include <iostream>
#include <chrono>
#include <vector>
#include <unordered_set>
using namespace std;
using namespace std::chrono;
class Solution {
public:
int findRepeatNumber(vector<int>& nums) {
unordered_set<int> set;
... | 21.108696 | 74 | 0.575695 | loyio |
673d5077eb01f9c53c94ec26ad5a086628133573 | 28,606 | cpp | C++ | minetest-ego/src/pathfinder.cpp | medialab-prado/Interactivos-15-Ego | 4c7e184b9495d07fc1008573ef1b752d20ebc1ab | [
"MIT"
] | null | null | null | minetest-ego/src/pathfinder.cpp | medialab-prado/Interactivos-15-Ego | 4c7e184b9495d07fc1008573ef1b752d20ebc1ab | [
"MIT"
] | null | null | null | minetest-ego/src/pathfinder.cpp | medialab-prado/Interactivos-15-Ego | 4c7e184b9495d07fc1008573ef1b752d20ebc1ab | [
"MIT"
] | null | null | null | /*
Minetest
Copyright (C) 2013 sapier, sapier at gmx dot net
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This pro... | 26.635009 | 90 | 0.545515 | medialab-prado |
67452a205acf5664192dc891ca4ea25788e6382b | 432 | cpp | C++ | etc/cpsco2019-s1/c/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | 3 | 2019-06-25T06:17:38.000Z | 2019-07-13T15:18:51.000Z | etc/cpsco2019-s1/c/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | etc/cpsco2019-s1/c/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | #include "template.hpp"
int main() {
ll(N, K);
vll(A, N);
auto f = def([&](auto &&f, ll k, ll i, ll s) -> ll {
ll res;
if (k == K) {
res = 0;
rep(_, 10) {
ll r = s % 10;
res += r / 5 + r % 5;
s /= 10;
}
return res;
}
res = INF;
rep(j, i, N - (K ... | 18 | 73 | 0.363426 | wotsushi |
675c215b489e8e9a6a28794414e147df07ca2d47 | 1,270 | cpp | C++ | src/threshold/AdaptiveThreshold.cpp | icaroalvarez/image-processors | 34ca32dff43db13291bfc89ba7a0a6fefd9f92cf | [
"MIT"
] | null | null | null | src/threshold/AdaptiveThreshold.cpp | icaroalvarez/image-processors | 34ca32dff43db13291bfc89ba7a0a6fefd9f92cf | [
"MIT"
] | null | null | null | src/threshold/AdaptiveThreshold.cpp | icaroalvarez/image-processors | 34ca32dff43db13291bfc89ba7a0a6fefd9f92cf | [
"MIT"
] | null | null | null | #include <opencv2/imgproc.hpp>
#include "AdaptiveThreshold.h"
AdaptiveThreshold::AdaptiveThreshold()
:ImageProcessor("adaptive_threshold")
{
getParameters().registerParameter("block_size", IntegerParameter{10, 1, 999});
getParameters().registerParameter("c_mean", IntegerParameter{-10, -999, 999});
getParam... | 29.534884 | 99 | 0.692913 | icaroalvarez |
67628765b9e01403da043ca8fc76ed620e8f0abd | 2,842 | hpp | C++ | QSidePanel/QSidePanel/SidePanel.hpp | inobelar/QSidePanel | 4554e1bcd3f0942df66ed1357cdac7afdd08597d | [
"MIT"
] | 16 | 2019-10-11T12:08:05.000Z | 2022-01-02T05:59:16.000Z | QSidePanel/QSidePanel/SidePanel.hpp | inobelar/QSidePanel | 4554e1bcd3f0942df66ed1357cdac7afdd08597d | [
"MIT"
] | null | null | null | QSidePanel/QSidePanel/SidePanel.hpp | inobelar/QSidePanel | 4554e1bcd3f0942df66ed1357cdac7afdd08597d | [
"MIT"
] | 9 | 2019-11-17T20:09:55.000Z | 2021-10-31T14:54:02.000Z | #ifndef Q_SIDE_PANEL__SIDE_PANEL_HPP
#define Q_SIDE_PANEL__SIDE_PANEL_HPP
#include <QScrollArea>
#include <QTimer>
#include <chrono>
#include <QEasingCurve>
#include <QPushButton>
#include <functional> // for std::function
#include "SidePanelState.hpp"
// ---------------------------------------------------------... | 24.929825 | 134 | 0.607319 | inobelar |
6767c56c669a3953226acaba2a05f760167a7795 | 192 | cpp | C++ | OperatorOverloading/Potion.cpp | diammen/CDDS | 827e7b9fe872ead24542e329902dcbaf1d520017 | [
"MIT"
] | null | null | null | OperatorOverloading/Potion.cpp | diammen/CDDS | 827e7b9fe872ead24542e329902dcbaf1d520017 | [
"MIT"
] | null | null | null | OperatorOverloading/Potion.cpp | diammen/CDDS | 827e7b9fe872ead24542e329902dcbaf1d520017 | [
"MIT"
] | null | null | null | #include "raylib.h"
#include "MyHero.h"
#include <string>
using std::string;
Potion::Potion()
{
name = "Juggernog";
HPModifier = 2;
quality = 5;
useByDate = 100;
}
Potion::~Potion()
{
} | 11.294118 | 20 | 0.640625 | diammen |
676e1ac3b42b4a6157f2c843e81f7a476e87b400 | 291 | cpp | C++ | gcd_lcm/main.cpp | soham2109/cpp_basic | ef52b730f2ab7b4b4a02876524ad2fad329f7320 | [
"Apache-2.0"
] | null | null | null | gcd_lcm/main.cpp | soham2109/cpp_basic | ef52b730f2ab7b4b4a02876524ad2fad329f7320 | [
"Apache-2.0"
] | null | null | null | gcd_lcm/main.cpp | soham2109/cpp_basic | ef52b730f2ab7b4b4a02876524ad2fad329f7320 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "gcdlcm.h"
using namespace std;
int main()
{
int m,n;
cout << "Enter the numbers (space separated)." << endl;
// cout << "m: " ;
cin >> m >> n;
cout << "GCD: " << gcd(m,n) << endl;
cout << "LCM: " << lcm(m,n) << endl;
return 0;
}
| 16.166667 | 59 | 0.494845 | soham2109 |
677ae101299d6de280d0de9045cafcd7166a4c0e | 58 | cpp | C++ | MMExercise/lab8.cpp | PaleCosmos/Multimedia_Lab | 601fe2e7c85bac98def8c6038a404af6b40bae86 | [
"Apache-2.0"
] | 2 | 2020-04-21T08:26:31.000Z | 2020-04-22T11:56:24.000Z | MMExercise/lab8.cpp | PaleCosmos/Multimedia_Lab | 601fe2e7c85bac98def8c6038a404af6b40bae86 | [
"Apache-2.0"
] | null | null | null | MMExercise/lab8.cpp | PaleCosmos/Multimedia_Lab | 601fe2e7c85bac98def8c6038a404af6b40bae86 | [
"Apache-2.0"
] | null | null | null | #include "lab.h"
using namespace cv;
using namespace std; | 14.5 | 20 | 0.758621 | PaleCosmos |
67804e9424bff3834fb873372ee4692d2cffd7fb | 2,042 | cpp | C++ | Game/Game/GObject.cpp | PhamMinhMan/Game | 794c67bd929f02d82746210a66b84213a91ef09c | [
"Apache-2.0"
] | 1 | 2016-09-24T06:55:51.000Z | 2016-09-24T06:55:51.000Z | Game/Game/GObject.cpp | PhamMinhMan/Game | 794c67bd929f02d82746210a66b84213a91ef09c | [
"Apache-2.0"
] | 1 | 2017-07-18T03:38:18.000Z | 2017-07-18T03:38:18.000Z | Game/Game/GObject.cpp | PhamMinhMan/Game | 794c67bd929f02d82746210a66b84213a91ef09c | [
"Apache-2.0"
] | null | null | null | #include "GObject.h"
bool GObject::update()
{
if (!alive)
return false;
if (sprite == 0)
return false;
updateAnimation();
return true;
}
bool GObject::draw()
{
if (!alive)
return false;
if (sprite == 0)
return false;
float xView ;
float yView ;
CAMERA->convertToRenderPos(x, y, xView, yView);
int ... | 15.469697 | 119 | 0.640548 | PhamMinhMan |
6780b368dba0198069fddd8ec6211ab6fadbd621 | 5,246 | cpp | C++ | Win32FormsExperiment/main.cpp | HaanstootZA/KeyValuePair | 2e3af2cd1e07be0d0b5489c1f5103aa94ad1ffcb | [
"Apache-2.0"
] | null | null | null | Win32FormsExperiment/main.cpp | HaanstootZA/KeyValuePair | 2e3af2cd1e07be0d0b5489c1f5103aa94ad1ffcb | [
"Apache-2.0"
] | null | null | null | Win32FormsExperiment/main.cpp | HaanstootZA/KeyValuePair | 2e3af2cd1e07be0d0b5489c1f5103aa94ad1ffcb | [
"Apache-2.0"
] | null | null | null | #include <windows.h>
#include <list>
#include "MyForm.h"
#include "Button.h"
#include "TextBox.h"
using namespace std;
static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
HINSTANCE g_inst;
int g_cmdshow;
MyForm fb(g_inst, g_cmdshow);
Button* btnArtist;
Button* btnAlbum;
Button* btnTitle;
Butto... | 29.144444 | 98 | 0.621998 | HaanstootZA |
678a38d087c82088dc2159c05fbcee98009bc807 | 2,280 | hpp | C++ | src/polyfill/api-ms-win-core-processtopology-obsolete.hpp | win-polyfill/win-polyfill | 67133feb64954a2017a4e403d87f93443b343123 | [
"MIT"
] | 2 | 2021-05-21T08:43:41.000Z | 2021-12-16T07:23:54.000Z | src/polyfill/api-ms-win-core-processtopology-obsolete.hpp | win-polyfill/win-polyfill | 67133feb64954a2017a4e403d87f93443b343123 | [
"MIT"
] | null | null | null | src/polyfill/api-ms-win-core-processtopology-obsolete.hpp | win-polyfill/win-polyfill | 67133feb64954a2017a4e403d87f93443b343123 | [
"MIT"
] | null | null | null |
#ifdef WP_Thunks_Implemented
namespace Downlevel {
//我们Windows 7以后才引入了组的概念,因此我们可以统一的假定 只有一组,并且不支持CPU热插拔。
static DWORD WINAPI GetProcessorCount(_In_ WORD GroupNumber)
{
if (GroupNumber == 0 || GroupNumber == ALL_PROCESSOR_GROUPS)
{
SYSTEM_INFO SystemInfo;
GetSystemInfo(&SystemInfo);
r... | 27.142857 | 91 | 0.749561 | win-polyfill |
096316f92068c47134cd5294d3d4c3fb316d8252 | 412 | cpp | C++ | opencl/source/xe_hp_core/gpgpu_walker_xe_hp_core.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 778 | 2017-09-29T20:02:43.000Z | 2022-03-31T15:35:28.000Z | opencl/source/xe_hp_core/gpgpu_walker_xe_hp_core.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 478 | 2018-01-26T16:06:45.000Z | 2022-03-30T10:19:10.000Z | opencl/source/xe_hp_core/gpgpu_walker_xe_hp_core.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 215 | 2018-01-30T08:39:32.000Z | 2022-03-29T11:08:51.000Z | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/command_queue/gpgpu_walker_xehp_and_later.inl"
#include "opencl/source/command_queue/hardware_interface_xehp_and_later.inl"
namespace NEO {
template class GpgpuWalkerHelper<XeHpFamily>;
template class Hardwa... | 20.6 | 76 | 0.796117 | troels |
09647f0ddd2bf171961caec8d6534b1c471b88a8 | 856 | cpp | C++ | src/morse.cpp | danielkrupinski/morse-cpp | f84d603ee7b62220b72dbb04335b7490e1197308 | [
"MIT"
] | 1 | 2021-06-27T16:19:09.000Z | 2021-06-27T16:19:09.000Z | src/morse.cpp | danielkrupinski/morse-cpp | f84d603ee7b62220b72dbb04335b7490e1197308 | [
"MIT"
] | null | null | null | src/morse.cpp | danielkrupinski/morse-cpp | f84d603ee7b62220b72dbb04335b7490e1197308 | [
"MIT"
] | null | null | null | #include "../include/morse.h"
using namespace std;
vector<string> to_morse(const string& s)
{
static const string latin {"abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};
static const vector<string> morse {".-", "-...", "-.-.", "-..", ".", "..-.",
... | 34.24 | 82 | 0.321262 | danielkrupinski |
0969126b170df217d36b9d00a2b40940118b41ab | 8,118 | cpp | C++ | src/components/utilities/buffers.cpp | simonwillis/SIP-Processing | be0fb2e80a04d25a34bf393f038bcf54d3963ae7 | [
"MIT"
] | null | null | null | src/components/utilities/buffers.cpp | simonwillis/SIP-Processing | be0fb2e80a04d25a34bf393f038bcf54d3963ae7 | [
"MIT"
] | null | null | null | src/components/utilities/buffers.cpp | simonwillis/SIP-Processing | be0fb2e80a04d25a34bf393f038bcf54d3963ae7 | [
"MIT"
] | 1 | 2021-11-02T03:23:19.000Z | 2021-11-02T03:23:19.000Z |
#include <cstdlib>
#include <sstream>
#include "buffers.h"
bool buffer_equals(mapped_buffer_t buffer, const char * value, bool caseSensitivity) {
size_t index = 0;
char * p = (char *)buffer.buf;
char * v = (char *)value;
if (v == 0) return false;
if (*v == 0) return (buffer.len == 0);
for ( ;... | 29.845588 | 115 | 0.56578 | simonwillis |
096ec661bae9fa9afa564d567fbe4b986abf3c4f | 1,210 | cpp | C++ | 396-rotate-function/rotate-function.cpp | nagestx/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | 3 | 2018-12-15T14:07:12.000Z | 2020-07-19T23:18:09.000Z | 396-rotate-function/rotate-function.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | 396-rotate-function/rotate-function.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | //
// Given an array of integers A and let n to be its length.
//
//
//
// Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a "rotation function" F on A as follow:
//
//
//
// F(k) = 0 * Bk[0] + 1 * Bk[1] + ... + (n-1) * Bk[n-1].
//
// Calculate the maximum value of F(0), F... | 24.693878 | 135 | 0.409917 | nagestx |
096f9c83214ffc0b2e7060ab227fad57063bd07f | 224 | cpp | C++ | src/slaggy-engine/slaggy-engine/physics/colliders/SphereCollider.cpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | 1 | 2021-09-24T23:13:13.000Z | 2021-09-24T23:13:13.000Z | src/slaggy-engine/slaggy-engine/physics/colliders/SphereCollider.cpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | null | null | null | src/slaggy-engine/slaggy-engine/physics/colliders/SphereCollider.cpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | 2 | 2020-06-24T07:10:13.000Z | 2022-03-08T17:19:12.000Z | #include "SphereCollider.hpp"
#include <core/Entity.hpp>
namespace slaggy
{
Component* SphereCollider::clone()
{
return nullptr;
}
Transform* SphereCollider::transform() const
{
return entity().transform();
}
}
| 13.176471 | 45 | 0.705357 | SlaggyWolfie |
09738cae693f44cc2f1347fa98295711bfe0da83 | 1,972 | hpp | C++ | include/newton.hpp | fekir/calcnumpp | eb769c0f83927c639c85d32758738146d65e8766 | [
"BSL-1.0"
] | null | null | null | include/newton.hpp | fekir/calcnumpp | eb769c0f83927c639c85d32758738146d65e8766 | [
"BSL-1.0"
] | null | null | null | include/newton.hpp | fekir/calcnumpp | eb769c0f83927c639c85d32758738146d65e8766 | [
"BSL-1.0"
] | null | null | null | // Copyright Federico Kircheis 2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef CALCNUM_NEWTON_HPP_1797832091
#define CALCNUM_NEWTON_HPP_1797832091
#include "intervals.hpp"
#include... | 21.67033 | 141 | 0.643002 | fekir |
097939ff3427462f3963b6fc302dde340c9636df | 4,147 | cpp | C++ | CocheritoLere/Terrain.cpp | IconicGIT/CocheritoLere_Physics_Project | b75b2e870fb61274e02a55d4bc2fd4a4fb7f73c1 | [
"MIT"
] | null | null | null | CocheritoLere/Terrain.cpp | IconicGIT/CocheritoLere_Physics_Project | b75b2e870fb61274e02a55d4bc2fd4a4fb7f73c1 | [
"MIT"
] | null | null | null | CocheritoLere/Terrain.cpp | IconicGIT/CocheritoLere_Physics_Project | b75b2e870fb61274e02a55d4bc2fd4a4fb7f73c1 | [
"MIT"
] | 1 | 2022-02-09T19:47:31.000Z | 2022-02-09T19:47:31.000Z | #include "Terrain.h"
byte_t* Terrain::GetRawHeightfieldData(PHY_ScalarType type, btScalar& minHeight, btScalar& maxHeight)
{
//b3BulletDefaultFileIO fileIO;
//char relativeFileName[1024];
//int found = fileIO.findFile("heightmaps/wm_height_out.png", relativeFileName, 1024);
//b3AlignedObjectArray<cha... | 26.928571 | 128 | 0.441524 | IconicGIT |
097c50e02deb8e4aee57d7b5503239c7527b9127 | 532 | cpp | C++ | acwing/0789.cpp | zyzisyz/OJ | 55221a55515231182b6bd133edbdb55501a565fc | [
"Apache-2.0"
] | null | null | null | acwing/0789.cpp | zyzisyz/OJ | 55221a55515231182b6bd133edbdb55501a565fc | [
"Apache-2.0"
] | null | null | null | acwing/0789.cpp | zyzisyz/OJ | 55221a55515231182b6bd133edbdb55501a565fc | [
"Apache-2.0"
] | 2 | 2020-01-01T13:49:08.000Z | 2021-03-06T06:54:26.000Z | #include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(void){
int n,q;
cin>>n>>q;
vector<int> table(n, 0);
for(int i=0; i<n; i++){
cin>>table[i];
}
for(int i=0; i<q; i++){
int k;
cin>>k;
auto pos = lower_bound(table.begin(), table.end(), k);
if(pos!=table.end() && *po... | 16.625 | 56 | 0.573308 | zyzisyz |
097d49da91b08b104e3d6c8a35d77f0c46b833c3 | 670 | cc | C++ | jax/training/21-04/21-04-08/e.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | 2 | 2022-01-01T16:55:02.000Z | 2022-03-16T14:47:29.000Z | jax/training/21-04/21-04-08/e.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | jax/training/21-04/21-04-08/e.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
vector<int> a(m);
for (int i = 0; i < m; ++i) cin >> a[i];
vector<int> cnts(105);
for (int i = 0; i < m; ++i) cnts[a[i]]++;
int sz = 0;
for (int i = 0; i < 105; ++i) if (cnts[i]) cnts[sz++] = cnts[i];
... | 23.928571 | 68 | 0.38806 | JaxVanYang |
097ebedb33c7f1577b06163bb72b2680ef7af0c5 | 5,304 | cpp | C++ | src/HelloWorld/CMyApp.cpp | hugetto/2DGame | 833c6596df8c2f9daf14cb9ebfffa36b77f96218 | [
"Apache-2.0"
] | null | null | null | src/HelloWorld/CMyApp.cpp | hugetto/2DGame | 833c6596df8c2f9daf14cb9ebfffa36b77f96218 | [
"Apache-2.0"
] | null | null | null | src/HelloWorld/CMyApp.cpp | hugetto/2DGame | 833c6596df8c2f9daf14cb9ebfffa36b77f96218 | [
"Apache-2.0"
] | null | null | null |
#include "CMyApp.h"
#include <CApp.h>
#include <json11/json11.hpp>
#include <string>
#include <fstream>
#include <streambuf>
#include <managers/CGameObjectManager.h>
#include <CGameObject.h>
#include <managers/CTextureManager.h>
#include <managers/CSoundManager.h>
#include <CScript.h>
#include <managers/CScriptManager... | 31.571429 | 133 | 0.553544 | hugetto |
097f732c2808cdf2cee59d9919e75637933d748b | 26,820 | cpp | C++ | src/detector/LineDetectorHough.cpp | anqixu/ftag2 | f77c0c0960a1ed44cc8723fd6c5320b7bb256a68 | [
"BSD-2-Clause"
] | 5 | 2019-08-16T07:04:32.000Z | 2022-03-31T11:02:09.000Z | src/detector/LineDetectorHough.cpp | anqixu/ftag2 | f77c0c0960a1ed44cc8723fd6c5320b7bb256a68 | [
"BSD-2-Clause"
] | null | null | null | src/detector/LineDetectorHough.cpp | anqixu/ftag2 | f77c0c0960a1ed44cc8723fd6c5320b7bb256a68 | [
"BSD-2-Clause"
] | 1 | 2021-12-09T21:05:56.000Z | 2021-12-09T21:05:56.000Z | #include "detector/FTag2Detector.hpp"
#include "common/BaseCV.hpp"
#include <opencv2/imgproc/imgproc.hpp>
#include <cmath>
#include <vector>
const double MAX_CONN_GAP_PX = sqrt(5) * 1.1; // account for worst-case projections of diagonal line (e.g. (1, 1), (3, 2), (5, 3), ... projected + margin of tolerance)
struct ... | 39.325513 | 382 | 0.669202 | anqixu |
09843ebcd12c8a09e14663e11ddc2071064293e7 | 861 | cc | C++ | server/memcache_parser_test.cc | romange/midi-redis | 35e7bce4ce6246716464fb78445babc0317b5000 | [
"Apache-2.0"
] | 12 | 2021-12-09T18:50:47.000Z | 2022-03-11T17:47:04.000Z | server/memcache_parser_test.cc | romange/midi-redis | 35e7bce4ce6246716464fb78445babc0317b5000 | [
"Apache-2.0"
] | null | null | null | server/memcache_parser_test.cc | romange/midi-redis | 35e7bce4ce6246716464fb78445babc0317b5000 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021, Roman Gershman. All rights reserved.
// See LICENSE for licensing terms.
//
#include "server/memcache_parser.h"
#include <gmock/gmock.h>
#include "absl/strings/str_cat.h"
#include "base/gtest.h"
#include "base/logging.h"
#include "server/test_utils.h"
using namespace testing;
using namespace std... | 22.076923 | 83 | 0.7259 | romange |
0988a46a5b2ea950722bc9455431685573635ffd | 1,017 | hpp | C++ | inc/dictos/core/async/task/GenericResultTask.hpp | JasonDictos/dictos-core | b33976a6c712fb3608106206ef77b366585b9ef2 | [
"BSD-2-Clause"
] | null | null | null | inc/dictos/core/async/task/GenericResultTask.hpp | JasonDictos/dictos-core | b33976a6c712fb3608106206ef77b366585b9ef2 | [
"BSD-2-Clause"
] | null | null | null | inc/dictos/core/async/task/GenericResultTask.hpp | JasonDictos/dictos-core | b33976a6c712fb3608106206ef77b366585b9ef2 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
namespace dictos::async::task {
/**
* The result task just exists to facilitate certain use cases whereby
* the caller wants a result from a directly instantiated task with
* its callback signature.
*/
template<class Impl, class Func, class ...Args>
class GenericResultTask : public GenericTask<Impl>
... | 25.425 | 94 | 0.716814 | JasonDictos |
098b77a2d4d74f19c805c0c423f177e98b3b3dc0 | 845 | cc | C++ | src/memcached.cc | zieckey/mcx | d86a8d17ee8982da71da82fe32f98d0485e17fb5 | [
"FSFAP"
] | 5 | 2015-03-03T17:02:29.000Z | 2018-07-19T04:03:24.000Z | src/memcached.cc | zieckey/mcx | d86a8d17ee8982da71da82fe32f98d0485e17fb5 | [
"FSFAP"
] | null | null | null | src/memcached.cc | zieckey/mcx | d86a8d17ee8982da71da82fe32f98d0485e17fb5 | [
"FSFAP"
] | null | null | null |
#include "internal/single_memcached.h"
namespace mcx
{
Memcached::Memcached(const std::string& host, int port)
: timeout_ms_(100)
{
impl_.reset(new detail::SingleMemcached(this, host, port));
}
Memcached::~Memcached()
{
}
bool Memcached::initialize(muduo::net::EventLoop* loop)
{
return impl_->initial... | 16.9 | 71 | 0.647337 | zieckey |
098e2dc02521c73baf1147527ce9fd1e699493ab | 1,267 | cpp | C++ | scene.cpp | jenny577513/Final_project_62 | 50e747ab254e243315dbf46a70187841d420c637 | [
"MIT"
] | null | null | null | scene.cpp | jenny577513/Final_project_62 | 50e747ab254e243315dbf46a70187841d420c637 | [
"MIT"
] | null | null | null | scene.cpp | jenny577513/Final_project_62 | 50e747ab254e243315dbf46a70187841d420c637 | [
"MIT"
] | null | null | null | #include "scene.h"
#include "charater.h"
#include "object.h"
#include "background.h"
ALLEGRO_FONT *font = NULL;
ALLEGRO_BITMAP *menu;
// function of menu
void menu_init(){
menu = al_load_bitmap("./image/menu.png");
font = al_load_ttf_font("./font/pirulen.ttf",24,0);
}
void menu_process(ALLE... | 23.462963 | 113 | 0.653512 | jenny577513 |
09937b674ed2cd92611154eec3ac1765b8a142dc | 4,556 | cpp | C++ | PhreadTest/PhreadTest/main.cpp | zhaishuai/practicePthread | 3e034280b5f5884956aae4b2a73d9b8e00cfdbb5 | [
"MIT"
] | null | null | null | PhreadTest/PhreadTest/main.cpp | zhaishuai/practicePthread | 3e034280b5f5884956aae4b2a73d9b8e00cfdbb5 | [
"MIT"
] | null | null | null | PhreadTest/PhreadTest/main.cpp | zhaishuai/practicePthread | 3e034280b5f5884956aae4b2a73d9b8e00cfdbb5 | [
"MIT"
] | null | null | null | //
// main.cpp
// PhreadTest
//
// Created by shuaizhai on 3/23/16.
// Copyright © 2016 pcx. All rights reserved.
//
#include <iostream>
#include <stdlib.h>
#include "learnPthreadCreate.hpp"
#include "condition.hpp"
#include "ThreadPool.hpp"
#include <list>
#include <time.h>
#include "ctpl_stl.h"
int main(int ar... | 25.740113 | 123 | 0.476514 | zhaishuai |
099466e73be754bbb2d19789cda0f54a27967d3d | 48,239 | cpp | C++ | dali/internal/event/actors/actor-property-handler.cpp | Coquinho/dali-core | 97a968a80ad681b1cbbc219fa6729f2344672476 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali/internal/event/actors/actor-property-handler.cpp | Coquinho/dali-core | 97a968a80ad681b1cbbc219fa6729f2344672476 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-10-19T13:42:35.000Z | 2020-10-19T15:39:53.000Z | dali/internal/event/actors/actor-property-handler.cpp | expertisesolutions/dali-core | 444ee3f60f12a23aca07059c5e1109f26613e44e | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 26.607281 | 191 | 0.6218 | Coquinho |
0997f729997474dcdc8b09f457666184b06b3994 | 15,231 | cpp | C++ | src/eepp/ui/uilinearlayout.cpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | src/eepp/ui/uilinearlayout.cpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | null | null | null | src/eepp/ui/uilinearlayout.cpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #include <eepp/ui/css/propertydefinition.hpp>
#include <eepp/ui/uilinearlayout.hpp>
#include <eepp/ui/uiscenenode.hpp>
namespace EE { namespace UI {
UILinearLayout* UILinearLayout::NewWithTag( const std::string& tag,
const UIOrientation& orientation ) {
return eeNew( UILinearLayout, ( tag, orientation ) )... | 29.234165 | 97 | 0.660035 | jayrulez |
099952666cc3e57b806aa151b590f9d328aa0e30 | 547 | cpp | C++ | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CMakeCommands/target_compile_definitions/consumer.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 107 | 2021-08-28T20:08:42.000Z | 2022-03-22T08:02:16.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CMakeCommands/target_compile_definitions/consumer.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 2 | 2022-01-13T04:03:55.000Z | 2022-03-12T01:02:31.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CMakeCommands/target_compile_definitions/consumer.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 16 | 2021-08-30T06:57:36.000Z | 2022-03-22T08:05:52.000Z |
#ifdef MY_PRIVATE_DEFINE
# error Unexpected MY_PRIVATE_DEFINE
#endif
#ifndef MY_PUBLIC_DEFINE
# error Expected MY_PUBLIC_DEFINE
#endif
#ifndef MY_INTERFACE_DEFINE
# error Expected MY_INTERFACE_DEFINE
#endif
#ifndef DASH_D_DEFINE
# error Expected DASH_D_DEFINE
#endif
#ifndef CONSUMER_LANG_CXX
# error Expected ... | 14.394737 | 37 | 0.797075 | duonglvtnaist |
09a2b5f15fe2f00fe511f7fa224de86c608103c6 | 1,243 | cpp | C++ | src/xray/editor/world/sources/property_string_values_value_shared_str_getter.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/editor/world/sources/property_string_values_value_shared_str_getter.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/editor/world/sources/property_string_values_value_shared_str_getter.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 09.01.2008
// Author : Dmitriy Iassenev
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "property_string_values_value_shared_s... | 33.594595 | 97 | 0.659694 | ixray-team |
09ada1c579cb442feb48854ef06edaba3bfb28cd | 11,216 | cpp | C++ | src/glib/base/xfl.cpp | mihapapler/qminer | 078bdd249313e984751789532c986309ab9689fd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/glib/base/xfl.cpp | mihapapler/qminer | 078bdd249313e984751789532c986309ab9689fd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/glib/base/xfl.cpp | mihapapler/qminer | 078bdd249313e984751789532c986309ab9689fd | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /**
* Copyright (c) 2015, Jozef Stefan Institute, Quintelligence d.o.o. and contributors
* All rights reserved.
*
* This source code is licensed under the FreeBSD license found in the
* LICENSE file in the root directory of this source tree.
*/
/////////////////////////////////////////////////
// Find-File-Desc... | 32.795322 | 110 | 0.609843 | mihapapler |
09ae3a7131f20e36b078b5079f91bab1bf2a6502 | 7,993 | cc | C++ | src/ast.cc | anthony-y/compiler | 6bd4b6814134fe61a8ec435ff92873e1d9fd5a1e | [
"MIT"
] | 4 | 2021-04-21T19:28:09.000Z | 2021-05-01T21:35:30.000Z | src/ast.cc | anthony-y/compiler | 6bd4b6814134fe61a8ec435ff92873e1d9fd5a1e | [
"MIT"
] | null | null | null | src/ast.cc | anthony-y/compiler | 6bd4b6814134fe61a8ec435ff92873e1d9fd5a1e | [
"MIT"
] | null | null | null | // Functions to create, delete and query AST (Abstract Syntax Tree) nodes.
#include "headers/ast.h"
#include "headers/token.h"
#include "headers/parser.h"
#include "headers/arena.h"
#include "headers/ast.h"
#include "headers/common.h"
#include "headers/context.h"
#include <stdlib.h>
#include <stdio.h>
#incl... | 26.379538 | 93 | 0.585888 | anthony-y |
09b1786406003e41b41ed60cdeffb303dd636d55 | 1,247 | hpp | C++ | source/liblxmax/config_helpers.hpp | impsnldavid/lxmax | 819bca21d6b1a0013671f62bfac7b3ead185d2fd | [
"MIT"
] | 10 | 2020-02-26T09:20:42.000Z | 2021-02-19T23:54:10.000Z | source/liblxmax/config_helpers.hpp | pixsper/lxmax | 819bca21d6b1a0013671f62bfac7b3ead185d2fd | [
"MIT"
] | 1 | 2020-09-18T22:58:36.000Z | 2020-09-18T22:58:36.000Z | source/liblxmax/config_helpers.hpp | pixsperdavid/lxmax | 819bca21d6b1a0013671f62bfac7b3ead185d2fd | [
"MIT"
] | null | null | null | /// @file
/// @ingroup lxmax
/// @copyright Copyright (C) 2021 Pixsper Ltd. All rights reserved.
/// @license Use of this source code is governed by the MIT License found in the LICENSE.md file.
#pragma once
#include <vector>
#include <Poco/Util/AbstractConfiguration.h>
#include <Poco/Net/IPAddress.h>
#include "commo... | 41.566667 | 120 | 0.646351 | impsnldavid |
09b401126b2cdade0b84925bdd3e369b5a9eb3ad | 276 | cpp | C++ | Labs/Lab-3/Source.cpp | donaldelrod/CSCE-221 | efbcaea542cfa80d3125a46c635f6bbc7fbc49fb | [
"Unlicense"
] | null | null | null | Labs/Lab-3/Source.cpp | donaldelrod/CSCE-221 | efbcaea542cfa80d3125a46c635f6bbc7fbc49fb | [
"Unlicense"
] | null | null | null | Labs/Lab-3/Source.cpp | donaldelrod/CSCE-221 | efbcaea542cfa80d3125a46c635f6bbc7fbc49fb | [
"Unlicense"
] | null | null | null | #include "Point.cpp"
using namespace std;
int main() {
Point stack[10];
for (Point p : stack) {
p.print();
}
cout << "done with stack" << endl;
Point* heap = new Point[10];
for (int i = 0; i < 10; i++) {
heap[i].print();
}
delete []heap;
system("pause");
} | 12.545455 | 35 | 0.557971 | donaldelrod |
09bbfc846c4efad153b0a818204b18e6f1059c5e | 12,838 | cpp | C++ | src/instructions/loads.cpp | luizschonarth/JVM-8 | b828d1e12072b71cbadeb924b7b13661d300f798 | [
"MIT"
] | null | null | null | src/instructions/loads.cpp | luizschonarth/JVM-8 | b828d1e12072b71cbadeb924b7b13661d300f798 | [
"MIT"
] | 24 | 2022-03-12T18:38:22.000Z | 2022-03-28T00:29:03.000Z | src/instructions/loads.cpp | luizschonarth/JVM-8 | b828d1e12072b71cbadeb924b7b13661d300f798 | [
"MIT"
] | null | null | null | #include "../../include/instructions/loads.hpp"
#include <iostream>
void aaload(cp_info_vector &constant_pool, bytestream &code, stack<frame_t> *stack_f)
{
exit(1);
}
void aload(cp_info_vector &constant_pool, bytestream &code, stack<frame_t> *stack_f)
{
exit(1);
}
void aload_0(cp_info_vector &constant_pool, ... | 27.314894 | 107 | 0.693644 | luizschonarth |
09bc4d98e9d750cb133cda86c933b3411e034e73 | 6,287 | cpp | C++ | C++/longest-substring-of-one-repeating-character.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 4 | 2018-10-11T17:50:56.000Z | 2018-10-11T21:16:44.000Z | C++/longest-substring-of-one-repeating-character.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | null | null | null | C++/longest-substring-of-one-repeating-character.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 4 | 2018-10-11T18:50:32.000Z | 2018-10-12T00:04:09.000Z | // Time: O(nlogn)
// Space: O(n)
template <typename Node, typename T>
class SegmentTree {
public:
explicit SegmentTree(
int N,
const function<Node(const int&)>& build_fn,
const function<Node(const T&)>& update_fn,
const function<Node(const Node&, const Node&)>& query_fn)
: t... | 31.592965 | 115 | 0.469063 | Priyansh2 |
09c0494724afce2a81245ef094057c62630db2b0 | 7,126 | hpp | C++ | Lib/vlc/include/vlcpp/MediaList.hpp | postalservice14/PlayLiveATC | 50f4ec4178ffb9387c92aade8a7cec4e99b7cfca | [
"MIT"
] | 4 | 2019-09-24T18:59:35.000Z | 2019-10-29T18:27:30.000Z | Lib/vlc/include/vlcpp/MediaList.hpp | postalservice14/PlayLiveATC | 50f4ec4178ffb9387c92aade8a7cec4e99b7cfca | [
"MIT"
] | 13 | 2019-10-11T17:54:22.000Z | 2019-10-12T12:53:27.000Z | Lib/vlc/include/vlcpp/MediaList.hpp | postalservice14/PlayLiveATC | 50f4ec4178ffb9387c92aade8a7cec4e99b7cfca | [
"MIT"
] | 1 | 2019-10-16T02:42:00.000Z | 2019-10-16T02:42:00.000Z | /*****************************************************************************
* MediaList.hpp: MediaList API
*****************************************************************************
* Copyright © 2015 libvlcpp authors & VideoLAN
*
* Authors: Alexey Sokolov <alexey+vlc@asokolov.org>
* Hugo Beauzée-L... | 28.504 | 130 | 0.622369 | postalservice14 |
09c39a81f7d3f9225ca48c1ece09d2eb9be310cf | 7,534 | cpp | C++ | arduino/libraries/ArduinoPusherClient/PusherClient.cpp | spoymenov/arisgames | aad5f5c6cdb3b1e8ade68da012c6e46ac9a6f77c | [
"MIT"
] | 1 | 2018-12-25T15:19:12.000Z | 2018-12-25T15:19:12.000Z | arduino/libraries/ArduinoPusherClient/PusherClient.cpp | augustozuniga/arisgames | 1ccf8fcbd9083134972b80e429456dbd6e28aa3d | [
"MIT"
] | null | null | null | arduino/libraries/ArduinoPusherClient/PusherClient.cpp | augustozuniga/arisgames | 1ccf8fcbd9083134972b80e429456dbd6e28aa3d | [
"MIT"
] | null | null | null | /*
PusherClient, a Pusher (http://pusherapp.com) client for Arduino
Copyright 2011 Kevin Rohling
http://kevinrohling.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,... | 34.245455 | 125 | 0.706663 | spoymenov |
09c4dc1156b0028d85b3faf1bbdeccf6f65dd9d1 | 286 | cpp | C++ | Phase 1 Placement Specific/06. Functions/6.3 Advance Function Problems/sumNaturalno.cpp | priyanshd2510/CPP-DSA | 00f5d1018ae2bd4e3d9c20a8b9d06c8ea862190f | [
"Apache-2.0"
] | 42 | 2021-01-03T17:54:59.000Z | 2022-03-26T15:57:01.000Z | Phase 1 Placement Specific/06. Functions/6.3 Advance Function Problems/sumNaturalno.cpp | sauhard2701/CPP-DSA | 1e9202c7b6a15e13aff9edd9220f362e0d84abc6 | [
"Apache-2.0"
] | 26 | 2021-04-05T07:54:21.000Z | 2021-12-10T07:35:39.000Z | Phase 1 Placement Specific/06. Functions/6.3 Advance Function Problems/sumNaturalno.cpp | sauhard2701/CPP-DSA | 1e9202c7b6a15e13aff9edd9220f362e0d84abc6 | [
"Apache-2.0"
] | 56 | 2020-12-24T17:06:33.000Z | 2022-02-06T18:21:33.000Z | #include <iostream>
#include <conio.h>
#include <stdio.h>
using namespace std;
int sumOfN(int n){
return n*(n+1)/2;
}
int main(){
int n;
printf("Enter the number till you want to know sum\n");
scanf("\n\n%d",&n);
printf("%d",sumOfN(n));
return 0;
} | 14.3 | 59 | 0.56993 | priyanshd2510 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.