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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1539fab1fc1668eed8ad73910cf93a87afee1161 | 2,238 | cpp | C++ | tests/ModLoaderTests.cpp | Zemurin/commonItems | cda7c217c7b3433b61a17cd05ce8d3893b711bf7 | [
"MIT"
] | 7 | 2018-12-22T03:59:34.000Z | 2021-06-10T22:42:37.000Z | tests/ModLoaderTests.cpp | IhateTrains/commonItems | 759705dc41ff1595db9786d0a9facc0b336888c3 | [
"MIT"
] | 45 | 2018-12-04T04:51:20.000Z | 2021-08-12T12:20:56.000Z | tests/ModLoaderTests.cpp | IhateTrains/commonItems | 759705dc41ff1595db9786d0a9facc0b336888c3 | [
"MIT"
] | 15 | 2019-01-09T05:59:48.000Z | 2020-08-27T09:08:09.000Z | #include "../ModLoader/ModLoader.h"
#include "../OSCompatibilityLayer.h"
#include "gtest/gtest.h"
#include <gmock/gmock-matchers.h>
using testing::UnorderedElementsAre;
TEST(ModLoaderTests, ModsCanBeLocatedUnpackedAndUpdated)
{
Mods incomingMods; // this is what comes from the save
incomingMods.emplac... | 37.3 | 108 | 0.758266 | Zemurin |
153a61e9019d7b15d28d88d3922dd9ac261ebd05 | 6,529 | hpp | C++ | includes/coff/string.hpp | archercreat/linux-pe | 902f744424b70979d401a9274afd579bceea104a | [
"BSD-3-Clause"
] | 140 | 2020-01-16T19:04:33.000Z | 2022-03-10T02:54:01.000Z | includes/coff/string.hpp | archercreat/linux-pe | 902f744424b70979d401a9274afd579bceea104a | [
"BSD-3-Clause"
] | 4 | 2021-02-28T12:02:46.000Z | 2022-02-14T01:41:57.000Z | includes/coff/string.hpp | archercreat/linux-pe | 902f744424b70979d401a9274afd579bceea104a | [
"BSD-3-Clause"
] | 38 | 2020-01-16T01:48:08.000Z | 2022-03-12T16:52:20.000Z | // Copyright (c) 2020 Can Boluk
// 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 notice,
// this lis... | 38.405882 | 134 | 0.559657 | archercreat |
153e7c40f2bc9bfd7b3574a1fb809f1b9ef5da28 | 3,750 | hpp | C++ | third_party/boost/simd/arch/x86/avx2/simd/function/shift_left.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/arch/x86/avx2/simd/function/shift_left.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/arch/x86/avx2/simd/function/shift_left.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/**
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//====================================... | 33.482143 | 100 | 0.461333 | SylvainCorlay |
153f99ecd798218b9cb5ddf6ca547d6d87587629 | 2,400 | cpp | C++ | LiveCam/Core/Tracking/CaffeFaceDetector.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | LiveCam/Core/Tracking/CaffeFaceDetector.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | LiveCam/Core/Tracking/CaffeFaceDetector.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | #include "CaffeFaceDetector.h"
#include <Common/CommonClasses.h>
CaffeFaceDetector::CaffeFaceDetector()
{
capacity = MAX_TARGETS_COUNT;
inputSize = cv::Size(300, 300);
inputMean = cv::Scalar(104.0, 177.0, 123.0);
inputName = "data";
outputName = "detection_out";
const cv::String trackerConfiguration = "Assets/... | 27.272727 | 111 | 0.722917 | KanSmith |
1543882b2a28c40a8b2f7f37d65e700e15b4e2ee | 2,979 | hpp | C++ | libs/visitor/Visitable.hpp | cesiumsolutions/dynamic_generic_visitor | da8fe928bf77270e1a64beae0051bfadba7ea256 | [
"MIT"
] | null | null | null | libs/visitor/Visitable.hpp | cesiumsolutions/dynamic_generic_visitor | da8fe928bf77270e1a64beae0051bfadba7ea256 | [
"MIT"
] | null | null | null | libs/visitor/Visitable.hpp | cesiumsolutions/dynamic_generic_visitor | da8fe928bf77270e1a64beae0051bfadba7ea256 | [
"MIT"
] | null | null | null | #ifndef Visitable_hpp
#define Visitable_hpp
#include <functional>
#include <typeinfo>
// ----------------------------------------------------------------------------
// VisitableBase
// ----------------------------------------------------------------------------
template<typename VisitorType, typename Sign... | 35.464286 | 83 | 0.65089 | cesiumsolutions |
1543a351fa8dec3493095c95e01a4b6449ff059e | 1,117 | cc | C++ | lib/base/database/SPar.cc | SiFi-CC/sifi-framework | 8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55 | [
"MIT"
] | null | null | null | lib/base/database/SPar.cc | SiFi-CC/sifi-framework | 8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55 | [
"MIT"
] | 3 | 2020-05-06T18:22:40.000Z | 2020-05-26T14:00:23.000Z | lib/base/database/SPar.cc | SiFi-CC/sifi-framework | 8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55 | [
"MIT"
] | 4 | 2021-02-11T10:44:29.000Z | 2021-06-17T10:50:23.000Z | // @(#)lib/base:$Id$
// Author: Rafal Lalik 18/11/2017
/*************************************************************************
* Copyright (C) 2017-2018, Rafał Lalik. *
* All rights reserved. *
* ... | 36.032258 | 76 | 0.52641 | SiFi-CC |
154892726a064aa98f1dd9781fcd606859ade052 | 573 | cpp | C++ | task3_zad3.cpp | slaveya-nusheva/assignments8g | f082378f6d81f0ee6432c1f9e2d042daf7b6eb3d | [
"Apache-2.0"
] | null | null | null | task3_zad3.cpp | slaveya-nusheva/assignments8g | f082378f6d81f0ee6432c1f9e2d042daf7b6eb3d | [
"Apache-2.0"
] | null | null | null | task3_zad3.cpp | slaveya-nusheva/assignments8g | f082378f6d81f0ee6432c1f9e2d042daf7b6eb3d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
void printLine (int star, int space)//function not returning any result is void
{
for (int i = 0; i < space; i++)
{
cout<<" "<<" ";
}
for (int i = 0; i < star; i++)
{
cout<<"*"<<" ";
}
cout<<endl;
}
int main()
{
int lines = 0;
... | 18.483871 | 79 | 0.481675 | slaveya-nusheva |
1549cbcd24f93a67ce4a96896a56c07c39ce7a62 | 318 | cpp | C++ | 389.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 389.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 389.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | class Solution {
public:
char findTheDifference(string s, string t) {
int res = 0;
for (char c : s) {
int ch = c - 'a';
res ^= ch;
}
for (char c : t) {
int ch = c - 'a';
res ^= ch;
}
return (char)(res + 'a');
}
};
| 19.875 | 48 | 0.367925 | Alex-Amber |
154de9e98f0aa68c49a924d63034fe984444059e | 960 | cxx | C++ | src/DmwApplication.cxx | DmitrySemikin/das-mesh-workbench | 35a4d3b8b6d51a2ea6dc7ebfd019ea89e4ae3fb6 | [
"Apache-2.0"
] | null | null | null | src/DmwApplication.cxx | DmitrySemikin/das-mesh-workbench | 35a4d3b8b6d51a2ea6dc7ebfd019ea89e4ae3fb6 | [
"Apache-2.0"
] | null | null | null | src/DmwApplication.cxx | DmitrySemikin/das-mesh-workbench | 35a4d3b8b6d51a2ea6dc7ebfd019ea89e4ae3fb6 | [
"Apache-2.0"
] | null | null | null | #include <memory>
#include <QApplication>
#include <QSurfaceFormat>
#include <QVTKOpenGLStereoWidget.h>
#include "DmwKernel.hxx"
#include "DmwApplication.hxx"
using std::make_unique;
DmwApplication::DmwApplication(int argc, char ** argv)
: qApplication(nullptr)
{
// TODO: Move everything from constructor to `... | 25.263158 | 116 | 0.739583 | DmitrySemikin |
1554fd5d21463a2a7b8ec2921d65099c3e46beaa | 2,953 | cc | C++ | libLogging/test/LoggerTest.cc | marcbejerano/cpp-tools | 9ef62064a5b826b8722ff96e423ffff2d85f49f1 | [
"BSD-3-Clause"
] | null | null | null | libLogging/test/LoggerTest.cc | marcbejerano/cpp-tools | 9ef62064a5b826b8722ff96e423ffff2d85f49f1 | [
"BSD-3-Clause"
] | null | null | null | libLogging/test/LoggerTest.cc | marcbejerano/cpp-tools | 9ef62064a5b826b8722ff96e423ffff2d85f49f1 | [
"BSD-3-Clause"
] | null | null | null | #include "LoggerTest.h"
#include <Logger>
#include <sstream>
using namespace hslib;
class StringBufferAppender : public Appender
{
private:
std::stringstream buffer;
public:
StringBufferAppender() : Appender(), buffer() { }
StringBufferAppender(const StringBufferAppender& copy) : Appen... | 25.678261 | 93 | 0.66678 | marcbejerano |
155fa02032a320e9d3cb6fd3537c6d2d5d9a129f | 11,141 | cc | C++ | algorithms/map-optimization-legacy/src/ba-optimization-options.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 1,936 | 2017-11-27T23:11:37.000Z | 2022-03-30T14:24:14.000Z | algorithms/map-optimization-legacy/src/ba-optimization-options.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 353 | 2017-11-29T18:40:39.000Z | 2022-03-30T15:53:46.000Z | algorithms/map-optimization-legacy/src/ba-optimization-options.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 661 | 2017-11-28T07:20:08.000Z | 2022-03-28T08:06:29.000Z | #include "map-optimization-legacy/ba-optimization-options.h"
#include <glog/logging.h>
#include <maplab-common/conversions.h>
#include <maplab-common/gravity-provider.h>
DEFINE_bool(
lba_fix_ncamera_intrinsics, true,
"Whether or not to fix the intrinsics of the ncamera(s).");
DEFINE_bool(
lba_fix_ncamera_... | 45.105263 | 81 | 0.776322 | AdronTech |
1560bcd78ff0db310f8831074b2a41881b309ed0 | 991 | hpp | C++ | CaWE/GuiEditor/Commands/Create.hpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | CaWE/GuiEditor/Commands/Create.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | CaWE/GuiEditor/Commands/Create.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#ifndef CAFU_GUIEDITOR_COMMAND_CREATE_HPP_INCLUDED
#define CAFU_GUIEDITOR_COMMAND_CREATE_HPP_INCLUDED
#include "../../CommandPattern.hpp"
#include "Templates/Pointer.... | 22.522727 | 93 | 0.67003 | dns |
15656440d6137938d28333ca28fd96f233563a26 | 650 | cpp | C++ | src/base/ev_base.cpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | 6 | 2018-07-28T08:03:24.000Z | 2022-03-31T08:56:57.000Z | src/base/ev_base.cpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | null | null | null | src/base/ev_base.cpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | 2 | 2019-05-21T02:26:36.000Z | 2020-04-13T16:46:20.000Z | /**
* Created by Jian Chen
* @since 2017.02.03
* @author Jian Chen <admin@chensoft.com>
* @link http://chensoft.com
*/
#include "socket/base/ev_base.hpp"
// -----------------------------------------------------------------------------
// ev_base
const int chen::ev_base::Readable = 1 << 0;
const int chen::ev_ba... | 24.074074 | 80 | 0.556923 | chensoft |
15661111768fbcc964ff4b3df494d70d7904a1d5 | 340 | cpp | C++ | 789.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 8 | 2018-10-31T11:00:19.000Z | 2020-07-31T05:25:06.000Z | 789.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | null | null | null | 789.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 2 | 2018-05-31T11:29:22.000Z | 2019-09-11T06:34:40.000Z | class Solution {
public:
bool escapeGhosts(vector<vector<int>>& ghosts, vector<int>& target) {
int dist = abs(target[0]) + abs(target[1]);
for(int i = 0; i < ghosts.size(); i++){
if (dist >= abs(ghosts[i][0] - target[0]) + abs(ghosts[i][1] - target[1])) return false;
}
re... | 30.909091 | 100 | 0.532353 | zfang399 |
15663e00dc713f393337aa82e12adf2e2ad249e2 | 8,070 | cpp | C++ | dataAQ.cpp | LearnerDroid/cs32lab06 | 36a2cb19b51cc7796a4e9acbd6ac5fd41139e230 | [
"MIT"
] | null | null | null | dataAQ.cpp | LearnerDroid/cs32lab06 | 36a2cb19b51cc7796a4e9acbd6ac5fd41139e230 | [
"MIT"
] | null | null | null | dataAQ.cpp | LearnerDroid/cs32lab06 | 36a2cb19b51cc7796a4e9acbd6ac5fd41139e230 | [
"MIT"
] | null | null | null | #include "dataAQ.h"
#include "demogData.h"
#include "comboDemogData.h"
#include "comboHospitalData.h"
#include "countyDemogData.h"
#include "comboHospitalData.h"
#include "hospitalData.h"
#include "cityHospitalData.h"
#include "parse.h"
#include <iostream>
#include <algorithm>
#include <fstream>
#include <sstream>
#def... | 48.035714 | 577 | 0.669145 | LearnerDroid |
d080fb1b4f64a31c0d6a70bea15bfeba622e8b51 | 1,057 | cpp | C++ | sources/Emulator.cpp | NiwakaDev/NIWAKA_X86 | ae07dcd5e006c6b48459c18efd4a65e4492ce7b4 | [
"MIT"
] | 2 | 2022-02-19T04:57:16.000Z | 2022-02-19T05:45:39.000Z | sources/Emulator.cpp | NiwakaDev/NIWAKA_X86 | ae07dcd5e006c6b48459c18efd4a65e4492ce7b4 | [
"MIT"
] | 1 | 2022-02-19T04:59:05.000Z | 2022-02-19T11:02:17.000Z | sources/Emulator.cpp | NiwakaDev/NIWAKA_X86 | ae07dcd5e006c6b48459c18efd4a65e4492ce7b4 | [
"MIT"
] | null | null | null | #include "Memory.h"
#include "Cpu.h"
#include "IoManager.h"
#include "Bios.h"
#include "IntHandler.h"
#include "Device.h"
#include "Pic.h"
#include "Emulator.h"
Emulator::Emulator(Memory* memory, Bios* bios, Cpu* cpu, IoManager* io_manager){
this->mem = memory;
this->bios = bios;
this->cpu = cpu;
this->... | 26.425 | 86 | 0.601703 | NiwakaDev |
d081f38d1e67e302c5b176c3b84bb67b317e771e | 3,049 | cc | C++ | src/nodal_properties.cc | andrewsolis/mpm | c6ea73d3bac177a440f0aa0a5e66829c294a00e5 | [
"MIT"
] | 154 | 2017-11-29T06:41:18.000Z | 2022-03-09T23:19:05.000Z | src/nodal_properties.cc | andrewsolis/mpm | c6ea73d3bac177a440f0aa0a5e66829c294a00e5 | [
"MIT"
] | 707 | 2017-08-30T16:12:59.000Z | 2022-02-25T20:33:02.000Z | src/nodal_properties.cc | andrewsolis/mpm | c6ea73d3bac177a440f0aa0a5e66829c294a00e5 | [
"MIT"
] | 83 | 2017-11-22T15:22:07.000Z | 2022-03-19T17:02:51.000Z | #include "nodal_properties.h"
// Function to create new property with given name and size (rows x cols)
bool mpm::NodalProperties::create_property(const std::string& property,
unsigned rows, unsigned columns) {
// Create a matrix with size of rows times columns and insert i... | 49.177419 | 80 | 0.686783 | andrewsolis |
d084bc1c05e1bc0f984e99276c75a9657d0fee3a | 11,365 | cpp | C++ | paint_board.cpp | sakky016/PaintBoardWithUndo | 339cf6204e36252a6974181f14ce099f6f3fbb88 | [
"Apache-2.0"
] | null | null | null | paint_board.cpp | sakky016/PaintBoardWithUndo | 339cf6204e36252a6974181f14ce099f6f3fbb88 | [
"Apache-2.0"
] | null | null | null | paint_board.cpp | sakky016/PaintBoardWithUndo | 339cf6204e36252a6974181f14ce099f6f3fbb88 | [
"Apache-2.0"
] | null | null | null | #include<conio.h>
#include"paint_board.h"
#include<iostream>
//----------------------------------------------------------------------------------------------
// @name : PaintBoard
//
// @description : Constructor
//
// @returns : Nothing
//--------... | 32.195467 | 101 | 0.368676 | sakky016 |
d0874a1724f343d76a204d0d95f37594499c8190 | 6,208 | hpp | C++ | lib/inc/thinsqlitepp/impl/statement_impl.hpp | gershnik/thinsqlitepp | c132c83c7733c1cb6173b09039ccf48d62507e49 | [
"BSD-3-Clause"
] | null | null | null | lib/inc/thinsqlitepp/impl/statement_impl.hpp | gershnik/thinsqlitepp | c132c83c7733c1cb6173b09039ccf48d62507e49 | [
"BSD-3-Clause"
] | null | null | null | lib/inc/thinsqlitepp/impl/statement_impl.hpp | gershnik/thinsqlitepp | c132c83c7733c1cb6173b09039ccf48d62507e49 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright 2019 Eugene Gershnik
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://github.com/gershnik/thinsqlitepp/blob/main/LICENSE
*/
#ifndef HEADER_SQLITEPP_STATEMENT_IMPL_INCLUDED
#define HEADER_SQLITEPP_STATEMENT_IMPL_INCLUDED
#include "database... | 33.376344 | 107 | 0.536082 | gershnik |
d0883a7b1b82cffcb3238d45cffc94598e9f15a8 | 754 | cpp | C++ | codes/codeforces/OmkarandCompletion.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/codeforces/OmkarandCompletion.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/codeforces/OmkarandCompletion.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | /*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : mehrab.24csedu.001@gmail.com
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
#include <bits/stdc++.h>
#include <st... | 22.176471 | 61 | 0.460212 | smmehrab |
d08b77bb54317f62de909d6d66f83bb5501b9761 | 6,536 | cpp | C++ | src/Bloom.cpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | 1 | 2020-10-26T17:53:33.000Z | 2020-10-26T17:53:33.000Z | src/Bloom.cpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | null | null | null | src/Bloom.cpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | null | null | null | #include "Bloom.hpp"
namespace OGL {
Bloom::Bloom(
Shader &&downsamplingShader,
Shader &&horizontalBlurShader,
Shader &&verticalBlurShader,
Shader &&combineShader,
glm::vec3 thresHold
) : m_downsamplingShader{ std::move(downsamplingShader) },
m_horizontalBlurSha... | 33.177665 | 116 | 0.626224 | sltn011 |
d08f48515301709c5cccfcabeb509b06d4533129 | 9,122 | cpp | C++ | src/RTL/Component/SceneGraph/CIFXViewResource.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 44 | 2016-05-06T00:47:11.000Z | 2022-02-11T06:51:37.000Z | src/RTL/Component/SceneGraph/CIFXViewResource.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 3 | 2016-06-27T12:37:31.000Z | 2021-03-24T12:39:48.000Z | src/RTL/Component/SceneGraph/CIFXViewResource.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 15 | 2016-02-28T11:08:30.000Z | 2021-06-01T03:32:01.000Z | //***************************************************************************
//
// Copyright (c) 1999 - 2006 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 21.822967 | 85 | 0.725828 | alemuntoni |
d092a46ac91962e86187d573f3cfc211ffd2c2a4 | 3,372 | cc | C++ | src/4env/env.cc | romz-pl/upscaledb | 781206f75a9f49b67dc0cd2c0e191435e60f4693 | [
"Apache-2.0"
] | null | null | null | src/4env/env.cc | romz-pl/upscaledb | 781206f75a9f49b67dc0cd2c0e191435e60f4693 | [
"Apache-2.0"
] | 9 | 2018-05-05T08:01:58.000Z | 2018-05-07T19:10:01.000Z | src/4env/env.cc | romz-pl/upscaledb | 781206f75a9f49b67dc0cd2c0e191435e60f4693 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2005-2017 Christoph Rupp (chris@crupp.de).
*
* 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 ... | 24.794118 | 75 | 0.674081 | romz-pl |
d0957ef912818acc8cea594b0348d71d21daf660 | 467 | cpp | C++ | 2DProject2ndYear/main.cpp | ryan0432/AIE_PhysicsBS | 0ed7181b2e0624174e28dfa7b2035f8f1e597198 | [
"MIT"
] | null | null | null | 2DProject2ndYear/main.cpp | ryan0432/AIE_PhysicsBS | 0ed7181b2e0624174e28dfa7b2035f8f1e597198 | [
"MIT"
] | null | null | null | 2DProject2ndYear/main.cpp | ryan0432/AIE_PhysicsBS | 0ed7181b2e0624174e28dfa7b2035f8f1e597198 | [
"MIT"
] | null | null | null | #include "_2DProject2ndYearApp.h"
#include "PhysicsEngineApp.h"
#include "BrickTest.h"
#include <vld.h> // visual leak detection
#include <crtdbg.h> // traditional method to check memory leak
#include <Imgui.h>
int main()
{
// leak detection
//_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
// alloc... | 20.304348 | 64 | 0.721627 | ryan0432 |
d096b820283b096111d61c95bab22b4f663a60ea | 4,742 | cpp | C++ | codeforce/E53/E53G.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | 5 | 2019-03-17T01:33:19.000Z | 2021-06-25T09:50:45.000Z | codeforce/E53/E53G.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | codeforce/E53/E53G.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <tuple>
#include <string>
using namespace std;
struct SuffixDataStructure {
const std::vector<int> &a;
std::vector<int> sa;
std::vector<int> isa;
std::vector<int> lcp;
std::vector<int> lg;
std::vector<std::vector<int> > ... | 23.475248 | 131 | 0.412273 | heiseish |
d097074d91e884566fb39e3e198fa2f261f1aca7 | 497 | cpp | C++ | boost.asio/chapter01/passive-socket/main.cpp | pvthuyet/books | bac5f754a68243e463ec7b0d93610be8807b31ac | [
"BSL-1.0"
] | null | null | null | boost.asio/chapter01/passive-socket/main.cpp | pvthuyet/books | bac5f754a68243e463ec7b0d93610be8807b31ac | [
"BSL-1.0"
] | null | null | null | boost.asio/chapter01/passive-socket/main.cpp | pvthuyet/books | bac5f754a68243e463ec7b0d93610be8807b31ac | [
"BSL-1.0"
] | null | null | null | #include <boost/asio.hpp>
#include <iostream>
int main()
{
namespace asio = boost::asio;
// step 1
asio::io_service ios;
// step 2
asio::ip::tcp protocal = asio::ip::tcp::v6();
// step 3
asio::ip::tcp::acceptor acceptor(ios);
boost::system::error_code ec;
acceptor.open(protocal, ec);
if (ec.value() != 0) {
... | 23.666667 | 66 | 0.627767 | pvthuyet |
d09c65f9434d047f6393f2ab7424074d5f8682f2 | 30,055 | cpp | C++ | src/Button.cpp | cclark2a/SchmickleWorks | 6945cc443c1a65426770b11f0de1b44b5fdcbd85 | [
"Unlicense"
] | 15 | 2018-02-19T19:45:32.000Z | 2020-07-23T07:23:37.000Z | src/Button.cpp | cclark2a/SchmickleWorks | 6945cc443c1a65426770b11f0de1b44b5fdcbd85 | [
"Unlicense"
] | 24 | 2018-08-09T13:49:40.000Z | 2019-11-08T19:31:55.000Z | src/Button.cpp | cclark2a/SchmickleWorks | 6945cc443c1a65426770b11f0de1b44b5fdcbd85 | [
"Unlicense"
] | null | null | null | #include "Button.hpp"
#include "Display.hpp"
#include "Taker.hpp"
#include "Wheel.hpp"
#include "Widget.hpp"
// try to get rest working as well as note
void AdderButton::onDragEndPreamble(const event::DragEnd& e) {
// insertLoc, shiftTime set by caller
shiftLoc = insertLoc + 1;
startTime = this->ntw()->n()... | 35.950957 | 108 | 0.598669 | cclark2a |
d09e4be5225b159e0973d74a71e0c31dd158ee78 | 1,854 | tpp | C++ | rb_tree/includes/btree_delete.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | 1 | 2022-03-02T15:14:16.000Z | 2022-03-02T15:14:16.000Z | rb_tree/includes/btree_delete.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | 73 | 2021-12-11T18:54:53.000Z | 2022-03-28T01:32:52.000Z | rb_tree/includes/btree_delete.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | null | null | null |
#ifndef BTREE_DELETE_TPP
#define BTREE_DELETE_TPP
#include "btree.tpp"
#include "btree_create_node.tpp"
#include "btree_delete_rules.tpp"
template <class T>
ft::btree<T> * find_neighbor(ft::btree<T> *node)
{
if (!is_nil(node->left))
return (find_predecessor_below(node->left));
else
return (find_successor_below... | 25.054054 | 80 | 0.735707 | paulahemsi |
d0a12678e771de4ce7b18142dfdb630718a0f0ba | 466 | hpp | C++ | transmission_interface_extensions/include/transmission_interface_extensions/common_namespaces.hpp | smilerobotics/ros_control_extensions | 1eee21217708dcee80aa3d91b2c6415c1f4feffa | [
"MIT"
] | null | null | null | transmission_interface_extensions/include/transmission_interface_extensions/common_namespaces.hpp | smilerobotics/ros_control_extensions | 1eee21217708dcee80aa3d91b2c6415c1f4feffa | [
"MIT"
] | null | null | null | transmission_interface_extensions/include/transmission_interface_extensions/common_namespaces.hpp | smilerobotics/ros_control_extensions | 1eee21217708dcee80aa3d91b2c6415c1f4feffa | [
"MIT"
] | 1 | 2021-10-14T06:37:36.000Z | 2021-10-14T06:37:36.000Z | #ifndef TRANSMISSION_INTERFACE_EXTENSIONS_COMMON_NAMESPACES_HPP
#define TRANSMISSION_INTERFACE_EXTENSIONS_COMMON_NAMESPACES_HPP
namespace hardware_interface {}
namespace hardware_interface_extensions {}
namespace transmission_interface {}
namespace transmission_interface_extensions {
namespace hi = hardware_interfa... | 29.125 | 63 | 0.879828 | smilerobotics |
d0a285f3f8a5506ab698fd1dc084435df009c5ba | 1,457 | cpp | C++ | slUtil.cpp | FigBug/slCommon | b49d31c4f2f131506fe5ac53f2ac6e47b3ee109b | [
"MIT"
] | null | null | null | slUtil.cpp | FigBug/slCommon | b49d31c4f2f131506fe5ac53f2ac6e47b3ee109b | [
"MIT"
] | null | null | null | slUtil.cpp | FigBug/slCommon | b49d31c4f2f131506fe5ac53f2ac6e47b3ee109b | [
"MIT"
] | null | null | null | #include "slUtil.h"
LevelTracker::LevelTracker (float decayPerSecond) : decayRate (decayPerSecond)
{
}
void LevelTracker::trackBuffer (AudioSampleBuffer& buffer)
{
for (int i = 0; i < buffer.getNumChannels(); i++)
trackBuffer (buffer.getReadPointer (0), buffer.getNumSamples());
}
void LevelTr... | 24.694915 | 84 | 0.59849 | FigBug |
d0a5cbdbef2939103c237028f888b0bd3fe9c230 | 10,566 | hpp | C++ | generic_ext/comm_tool_scatter.hpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | generic_ext/comm_tool_scatter.hpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | generic_ext/comm_tool_scatter.hpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | /**************************************************************************************************/
/**
* @file comm_tool_scatter.hpp
* @brief STL container wrapper for PS::Comm::scatter()
*/
/**************************************************************************************************/
#pragma once
#include <c... | 39.27881 | 138 | 0.530475 | Tokumasu-Lab |
d0a772d51042d726237c37e9f95db81912eb93f5 | 382 | cpp | C++ | acm/contest/7.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | acm/contest/7.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | acm/contest/7.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
int main(int argc, char const *argv[]){
int a,b;
cin>>a>>b;
map<int,int> mp;
for(int i=1;i<=b;i++){
for(int j=(a/i)*i;j<=b;j+=i){
mp[j]+=i;
}
}
long long int sum=0;
for(int i=a;i<=b;i++){
//c... | 15.916667 | 39 | 0.575916 | AadityaJ |
d0a868938d64c864bda8abfd03170595f625ed70 | 2,468 | cpp | C++ | moai/src/moaicore/MOAICollisionShape.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/moaicore/MOAICollisionShape.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/moaicore/MOAICollisionShape.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | // Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved.
// http://getmoai.com
#include "pch.h"
#include <moaicore/MOAICollisionShape.h>
//================================================================//
// MOAICollisionShape
//================================================================//
//-------... | 29.035294 | 81 | 0.449757 | jjimenezg93 |
d0a96f7199b16477408266572e239c0516121321 | 11,031 | cpp | C++ | data/8.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/8.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/8.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int o3At,E7
,NPTt
,yQV,oY ,rs3s//oDd
, BJfEsB
,klq ,Dhv1
//j
,MQ
, N2
,QXu, nn4
, IlemB
,
MvE,/*vd6V*/ NZ ,X
, nuYH, zAc,rwvjkO//U1Rd
//k
, WPltg ,Zd,AL
, qndos
,
//GA26v
IDDAh6, A ,/*zM72*/Po4hp
, /*Q*/EaG,
Y5ia ,
kH
,
LybZ , Af3M, l/*sV*/ ,
D2Rch,
BhdS
//Js3H
,
YeG ,Xc,yjc0
, Ou
,
Cj
,... | 10.987052 | 76 | 0.458526 | TianyiChen |
d0af510f34f2f8a51519428af0ce2e5d1278127b | 12,282 | cpp | C++ | src/lib/utils/meta_table_manager.cpp | nannancy/hyrise | a22d270b0692a24605fe02937cbd070ee4b8ebcb | [
"MIT"
] | null | null | null | src/lib/utils/meta_table_manager.cpp | nannancy/hyrise | a22d270b0692a24605fe02937cbd070ee4b8ebcb | [
"MIT"
] | 11 | 2019-12-02T20:47:52.000Z | 2020-02-04T23:19:31.000Z | src/lib/utils/meta_table_manager.cpp | nannancy/hyrise | a22d270b0692a24605fe02937cbd070ee4b8ebcb | [
"MIT"
] | null | null | null | #include "meta_table_manager.hpp"
#include "constant_mappings.hpp"
#include "hyrise.hpp"
#include "resolve_type.hpp"
#include "statistics/table_statistics.hpp"
#include "storage/base_encoded_segment.hpp"
#include "storage/dictionary_segment.hpp"
#include "storage/fixed_string_dictionary_segment.hpp"
#include "storage/... | 51.605042 | 120 | 0.650708 | nannancy |
d0b11866e091002fc395d58222a1a7109b90bafb | 1,588 | cpp | C++ | aashishgahlawat/codeforces/E/166-E/166-E-32309345.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | aashishgahlawat/codeforces/E/166-E/166-E-32309345.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | aashishgahlawat/codeforces/E/166-E/166-E-32309345.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define len(a) (int)a.size()
#define all(a) (a.begin(),a.end())
#define fi first
#define sc second
#define ort(x,y) (x+y)/2
#define endl '\n'
#define FAST ios_base::sync_with_stdio(false);
#define d1(x) cerr<<#x<<":"<<x<<endl;
#defi... | 24.8125 | 117 | 0.564232 | aashishgahlawat |
d0b415cc938c7f9172b5af466464ef30381115a5 | 35,033 | cpp | C++ | src/lib/operators/aggregate.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/lib/operators/aggregate.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/lib/operators/aggregate.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #include "aggregate.hpp"
#include <algorithm>
#include <memory>
#include <optional>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include "constant_mappings.hpp"
#include "resolve_type.hpp"
#include "scheduler/abstract_task.hpp"
#include "scheduler/current_scheduler.hpp"
#include "s... | 42.056423 | 120 | 0.706277 | IanJamesMcKay |
d0b8ce1cfba602d6ad9bd5cffcca7c37ee3c3ec9 | 442 | cpp | C++ | samples/unit_test/test.cpp | vagran/adk | 1cf18aeca58444fc8ff59b29a4c25e22d5e50bb2 | [
"BSD-3-Clause"
] | 3 | 2015-10-12T06:06:00.000Z | 2020-01-17T18:16:18.000Z | samples/unit_test/test.cpp | vagran/adk | 1cf18aeca58444fc8ff59b29a4c25e22d5e50bb2 | [
"BSD-3-Clause"
] | null | null | null | samples/unit_test/test.cpp | vagran/adk | 1cf18aeca58444fc8ff59b29a4c25e22d5e50bb2 | [
"BSD-3-Clause"
] | null | null | null | /* This file is a part of ADK library.
* Copyright (c) 2012-2015, Artyom Lebedev <artyom.lebedev@gmail.com>
* All rights reserved.
* See LICENSE file for copyright details.
*/
/** @file test.cpp
* Sample unit test implementation.
*/
#include <adk_ut.h>
#include "component/component.h"
UT_TEST("Sample test")
{... | 19.217391 | 69 | 0.667421 | vagran |
d0c327df56e5ab30e0b0660b5d1ce80c5951629c | 52,074 | cpp | C++ | tests/RoundRectTest.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | tests/RoundRectTest.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | tests/RoundRectTest.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkMatrix.h"
#include "include/core/SkRRect.h"
#include "include/pathops/SkPathOps.h"
#include "include/utils/SkRandom.h"
#include "src/core/SkPointPriv.... | 40.026134 | 100 | 0.634002 | NearTox |
d0c577cd46beffe2d8a2321287d9a7881fe253aa | 1,777 | cpp | C++ | project/src/Leaderboard.cpp | lorenzovngl/progetto-grafica | 0f222e62da703c323cdc0f7edb39ee89d3fe566a | [
"MIT"
] | null | null | null | project/src/Leaderboard.cpp | lorenzovngl/progetto-grafica | 0f222e62da703c323cdc0f7edb39ee89d3fe566a | [
"MIT"
] | null | null | null | project/src/Leaderboard.cpp | lorenzovngl/progetto-grafica | 0f222e62da703c323cdc0f7edb39ee89d3fe566a | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#endif
#include "headers/Leaderboard.h"
Leaderboard::Leade... | 24.342466 | 118 | 0.608329 | lorenzovngl |
d0c98eb31a226532c4a5029954799c1c75cf8359 | 906 | cpp | C++ | CSES/Sorting And Searching/ArrayDivision.cpp | ShraxO1/OneDayOneAlgo | 68fe90f642985680e4014fdd1fe2ecd30097661d | [
"MIT"
] | 32 | 2020-05-23T07:40:31.000Z | 2021-02-02T18:14:30.000Z | CSES/Sorting And Searching/ArrayDivision.cpp | ShraxO1/OneDayOneAlgo | 68fe90f642985680e4014fdd1fe2ecd30097661d | [
"MIT"
] | 45 | 2020-05-22T10:30:51.000Z | 2020-12-28T08:17:13.000Z | CSES/Sorting And Searching/ArrayDivision.cpp | ShraxO1/OneDayOneAlgo | 68fe90f642985680e4014fdd1fe2ecd30097661d | [
"MIT"
] | 31 | 2020-05-22T10:18:16.000Z | 2020-10-23T07:52:35.000Z | #include <iostream>
#include<map>
#include<vector>
#include<algorithm>
using namespace std;
#define OJ \
freopen("input.txt", "r", stdin); \
freopen("output.txt", "w", stdout);
#define FIO \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | 19.695652 | 61 | 0.442605 | ShraxO1 |
d0cbb04c1d00f83a39b1d1ab3677595c2e9d10ec | 1,521 | cpp | C++ | Model-View/DataRole/main.cpp | BigWhiteCat/Qt-QML | 7d601721db535167ea257e8baffc1de83cc0aa15 | [
"MIT"
] | null | null | null | Model-View/DataRole/main.cpp | BigWhiteCat/Qt-QML | 7d601721db535167ea257e8baffc1de83cc0aa15 | [
"MIT"
] | null | null | null | Model-View/DataRole/main.cpp | BigWhiteCat/Qt-QML | 7d601721db535167ea257e8baffc1de83cc0aa15 | [
"MIT"
] | null | null | null | #include <QApplication>
#include <QDebug>
#include <QStandardItemModel>
#include <QTreeView>
int main(int argc, char **argv) {
QApplication app(argc, argv);
QStandardItemModel model;
QStandardItem *parentItem = model.invisibleRootItem();
QStandardItem *item0 = new QStandardItem;
item0->setText("... | 29.823529 | 85 | 0.65812 | BigWhiteCat |
d0d3fb20075e27b3eff9598a173568f29a0d07f8 | 4,613 | cc | C++ | asylo/test/loader/loader_test.cc | qinkunbao/asylo | 6c6c4a185a1ee927996b43a060d924a49548d999 | [
"Apache-2.0"
] | null | null | null | asylo/test/loader/loader_test.cc | qinkunbao/asylo | 6c6c4a185a1ee927996b43a060d924a49548d999 | [
"Apache-2.0"
] | null | null | null | asylo/test/loader/loader_test.cc | qinkunbao/asylo | 6c6c4a185a1ee927996b43a060d924a49548d999 | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright 2017 Asylo authors
*
* 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.83125 | 76 | 0.725775 | qinkunbao |
d0e2fd2f550b346519cc9e222304baaa651d8683 | 1,299 | cpp | C++ | ejercicios/cocineros/chef.cpp | jrinconada/cpp-examples | 069e3cc910b2c2d0716af36bef28336003fb6d9e | [
"MIT"
] | 1 | 2018-02-22T12:33:44.000Z | 2018-02-22T12:33:44.000Z | ejercicios/cocineros/chef.cpp | jrinconada/cpp-examples | 069e3cc910b2c2d0716af36bef28336003fb6d9e | [
"MIT"
] | null | null | null | ejercicios/cocineros/chef.cpp | jrinconada/cpp-examples | 069e3cc910b2c2d0716af36bef28336003fb6d9e | [
"MIT"
] | null | null | null | #include <vector>
#include <string>
#include <mutex>
#include "../../hilos/semaphore.cpp"
#include "recipe.cpp"
mutex knife;
mutex oven;
Semaphore semaphore;
class Chef {
void cut(Recipe* r) {
lock_guard<mutex> guard(knife);
for (int i = 0; i < r->cuttingTime; i++) {
std::cout << name... | 24.980769 | 65 | 0.458814 | jrinconada |
d0e8105c9fc484adf8a360f7427a674672bb6d84 | 9,379 | cpp | C++ | src/chainsim/PuyoField.cpp | puyogg/puyo-chain-detector | b71811759c31dc5041d4f3b2d1c89bf7bec0d89f | [
"MIT"
] | 5 | 2020-09-14T14:03:58.000Z | 2022-01-21T04:03:08.000Z | src/chainsim/PuyoField.cpp | puyogg/puyo-chain-detector | b71811759c31dc5041d4f3b2d1c89bf7bec0d89f | [
"MIT"
] | 5 | 2021-02-13T03:11:13.000Z | 2022-03-12T00:54:25.000Z | src/chainsim/PuyoField.cpp | puyogg/puyo-chain-detector | b71811759c31dc5041d4f3b2d1c89bf7bec0d89f | [
"MIT"
] | 2 | 2020-08-15T14:59:14.000Z | 2020-08-15T16:34:53.000Z | #include "Fields.hpp"
#include <queue>
#include <iostream>
namespace Chainsim {
// Puyo Field class
PuyoField::PuyoField()
: Field<Color>(DEFAULT_ROWS, DEFAULT_COLS),
m_hrows{ DEFAULT_HROWS },
m_puyoToPop{ DEFAULT_PUYOTOPOP }
{
m_data = std::vector<Color>(m_cols * m_rows, Color::NONE);
m_bool ... | 28.681957 | 139 | 0.549739 | puyogg |
d0e87fc80e8037fbf633aba724f01d79af7774ae | 189 | hh | C++ | extern/polymesh/src/polymesh/detail/math.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/polymesh/src/polymesh/detail/math.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/polymesh/src/polymesh/detail/math.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #pragma once
namespace polymesh::detail
{
template <class ScalarT>
struct pos3
{
ScalarT x;
ScalarT y;
ScalarT z;
};
using pos3f = pos3<float>;
using pos3d = pos3<double>;
}
| 11.117647 | 27 | 0.666667 | rovedit |
d0ea73981db21847986e53689154cf0fbab6d01b | 365 | hpp | C++ | Lodestar/aux/AlgebraicOperators.hpp | helkebir/Lodestar | 6b325d3e7a388676ed31d44eac1146630ee4bb2c | [
"BSD-3-Clause"
] | 4 | 2020-06-05T14:08:23.000Z | 2021-06-26T22:15:31.000Z | Lodestar/aux/AlgebraicOperators.hpp | helkebir/Lodestar | 6b325d3e7a388676ed31d44eac1146630ee4bb2c | [
"BSD-3-Clause"
] | 2 | 2021-06-25T15:14:01.000Z | 2021-07-01T17:43:20.000Z | Lodestar/aux/AlgebraicOperators.hpp | helkebir/Lodestar | 6b325d3e7a388676ed31d44eac1146630ee4bb2c | [
"BSD-3-Clause"
] | 1 | 2021-06-16T03:15:23.000Z | 2021-06-16T03:15:23.000Z | //
// Created by Hamza El-Kebir on 6/12/21.
//
#ifndef LODESTAR_ALGEBRAICOPERATORS_HPP
#define LODESTAR_ALGEBRAICOPERATORS_HPP
enum class AlgebraicOperators {
Addition,
Subtraction,
Multiplication,
Division,
Exponentiation
};
template <AlgebraicOperators... TOps>
struct AlgebraicOperatorsPack {
... | 16.590909 | 40 | 0.761644 | helkebir |
d0f692b7fa12559dfc2a02ac4e554c9e0949afcc | 7,103 | cpp | C++ | src/grpc/quick/qquickgrpcsubscription.cpp | ddobrev/qtprotobuf | c31170f47341c1da9988f7a660be8261d6cdcc6e | [
"MIT"
] | null | null | null | src/grpc/quick/qquickgrpcsubscription.cpp | ddobrev/qtprotobuf | c31170f47341c1da9988f7a660be8261d6cdcc6e | [
"MIT"
] | null | null | null | src/grpc/quick/qquickgrpcsubscription.cpp | ddobrev/qtprotobuf | c31170f47341c1da9988f7a660be8261d6cdcc6e | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Alexey Edelev <semlanik@gmail.com>
*
* This file is part of qtprotobuf project https://git.semlanik.org/semlanik/qtprotobuf
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Softwar... | 40.129944 | 202 | 0.680276 | ddobrev |
d0fc826362cdafb1ef9725642c027f03f8041bf7 | 2,511 | hpp | C++ | include/range/v3/experimental/view/shared.hpp | berolinux/range-v3 | d8ce45f1698931399fb09a322307eb95567be832 | [
"MIT"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | include/range/v3/experimental/view/shared.hpp | berolinux/range-v3 | d8ce45f1698931399fb09a322307eb95567be832 | [
"MIT"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | include/range/v3/experimental/view/shared.hpp | berolinux/range-v3 | d8ce45f1698931399fb09a322307eb95567be832 | [
"MIT"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | /// \file
// Range v3 library
//
// Copyright Filip Matzner 2017
//
// Use, modification and distribution is subject to 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)
//
// Project home: https://github.com/ericniebler/range-... | 27 | 84 | 0.545998 | berolinux |
cb9b706d6bd2c1b1d7243b87017c5e7361fd173c | 443 | cpp | C++ | test/general/headers.cpp | komiga/Beard | 059c7aed8c9d9818bcda2284c1e004309d70d2e1 | [
"MIT"
] | 3 | 2015-06-19T20:06:19.000Z | 2019-04-11T20:04:00.000Z | test/general/headers.cpp | komiga/Beard | 059c7aed8c9d9818bcda2284c1e004309d70d2e1 | [
"MIT"
] | null | null | null | test/general/headers.cpp | komiga/Beard | 059c7aed8c9d9818bcda2284c1e004309d70d2e1 | [
"MIT"
] | null | null | null |
#include <Beard/config.hpp>
#include <Beard/utility.hpp>
#include <Beard/ErrorCode.hpp>
#include <Beard/aux.hpp>
#include <Beard/String.hpp>
#include <Beard/Error.hpp>
#include <Beard/detail/gr_core.hpp>
#include <Beard/detail/gr_ceformat.hpp>
#include <Beard/detail/debug.hpp>
#include <Beard/tty/Defs.hpp>
#include ... | 20.136364 | 39 | 0.742664 | komiga |
cba1c45e531565fdd03678a71570e27ccb506fa4 | 5,693 | cpp | C++ | Simple++/Network/Server.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Network/Server.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Network/Server.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | #include "Server.h"
namespace Network {
Server::Server() :
mIsBinded( false ) {
}
Server::~Server() {
close();
}
bool Server::listen( unsigned short port, SockType sockType, IpFamily ipFamily, int maxClients ) {
return _listen( NULL, StringASCII( port ).getData(), sockType, ipFamily, maxClients );
... | 26.47907 | 214 | 0.645003 | Oriode |
cba2f72867e76b7d13524f329bd0189683090056 | 7,325 | cpp | C++ | src/lib/analysis/advisor/Inspection.cpp | GVProf/hpctoolkit | baf45028ead83ceba3e952bb8d0b14caf9ea5f78 | [
"BSD-3-Clause"
] | null | null | null | src/lib/analysis/advisor/Inspection.cpp | GVProf/hpctoolkit | baf45028ead83ceba3e952bb8d0b14caf9ea5f78 | [
"BSD-3-Clause"
] | null | null | null | src/lib/analysis/advisor/Inspection.cpp | GVProf/hpctoolkit | baf45028ead83ceba3e952bb8d0b14caf9ea5f78 | [
"BSD-3-Clause"
] | 2 | 2021-11-30T18:24:10.000Z | 2022-02-13T18:13:17.000Z |
//************************* System Include Files ****************************
#include <fstream>
#include <iostream>
#include <iomanip>
#include <climits>
#include <cstdio>
#include <cstring>
#include <string>
#include <algorithm>
#include <stack>
#include <typeinfo>
#include <unordered_map>
#include <sys/stat.h>
... | 29.53629 | 107 | 0.593857 | GVProf |
cba8b71b091fd3417882130d65401db0d0994a62 | 7,784 | cpp | C++ | DisPG/DisPG/util.cpp | hackflame/PgResarch | 5a2bb5433aae617cf9737bd1efc1643886f6bcf5 | [
"MIT"
] | 228 | 2015-01-04T01:28:05.000Z | 2022-03-28T01:37:46.000Z | DisPG/DisPG/util.cpp | zgz715/PgResarch | 5a2bb5433aae617cf9737bd1efc1643886f6bcf5 | [
"MIT"
] | 3 | 2015-07-24T04:34:05.000Z | 2018-10-07T06:08:57.000Z | DisPG/DisPG/util.cpp | zgz715/PgResarch | 5a2bb5433aae617cf9737bd1efc1643886f6bcf5 | [
"MIT"
] | 111 | 2015-01-05T19:32:10.000Z | 2021-11-24T03:07:26.000Z | //
// This module implements auxiliary functions. These functions do not have
// prefixes on their names.
//
#include "stdafx.h"
#include "util.h"
////////////////////////////////////////////////////////////////////////////////
//
// macro utilities
//
///////////////////////////////////////////////////////////////... | 26.297297 | 98 | 0.635149 | hackflame |
cba99ee10cd3b28bf2f9e3779c82bcf228c13d5e | 13,472 | cpp | C++ | src/vidhrdw/lwings.cpp | pierrelouys/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | 1 | 2021-01-25T20:16:33.000Z | 2021-01-25T20:16:33.000Z | src/vidhrdw/lwings.cpp | pierrelouys/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | 1 | 2021-05-24T20:28:35.000Z | 2021-05-25T14:44:54.000Z | src/vidhrdw/lwings.cpp | PSP-Archive/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | null | null | null | /***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
#include "osdepend.h"
unsigned char *lwin... | 26.261209 | 151 | 0.565395 | pierrelouys |
cbb10b61d84d535032a741a75db84a9e87bee635 | 437 | cpp | C++ | tests/operation/out.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | 17 | 2018-08-22T06:48:20.000Z | 2022-02-22T21:20:09.000Z | tests/operation/out.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | tests/operation/out.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | // Copyright 2020 Oleksandr Bacherikov.
//
// 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).
#include <actl/operation/scalar/all.hpp>
#include "test.hpp"
TEST_CASE("output parameter")
{
int res{};
CHECK(6 =... | 24.277778 | 60 | 0.638444 | AlCash07 |
cbb29f4bd651a9f40f5f1ea413809f830d86f536 | 1,354 | hpp | C++ | include/Color.hpp | Crazy-Piri/Img2CPC | af748085b3e1d1d63697aedb12d7021236b1e8ff | [
"MIT"
] | 6 | 2015-08-10T13:10:19.000Z | 2020-06-06T08:15:34.000Z | include/Color.hpp | Crazy-Piri/Img2CPC | af748085b3e1d1d63697aedb12d7021236b1e8ff | [
"MIT"
] | 5 | 2016-04-10T13:20:01.000Z | 2021-06-23T06:36:32.000Z | include/Color.hpp | Crazy-Piri/Img2CPC | af748085b3e1d1d63697aedb12d7021236b1e8ff | [
"MIT"
] | 4 | 2015-08-15T16:45:32.000Z | 2020-08-15T19:57:54.000Z | #ifndef _COLOR_H_
#define _COLOR_H_
#include <cmath>
#include <iostream>
using namespace std;
class Color {
public:
unsigned char A;
unsigned char R;
unsigned char G;
unsigned char B;
Color(): Color(0, 0,0,0) {};
Color(const unsigned char r,
const unsigned char g,
const unsigned b): A(255), R(r),G(... | 22.949153 | 97 | 0.532496 | Crazy-Piri |
cbbb8834b87999c28a2ba680766a7a7a6f1e3e9b | 98 | hpp | C++ | include/test_data.hpp | andrewkatson/json | c11ca0a075f2d4bb5b5b613b5319597cf15db11e | [
"MIT"
] | null | null | null | include/test_data.hpp | andrewkatson/json | c11ca0a075f2d4bb5b5b613b5319597cf15db11e | [
"MIT"
] | null | null | null | include/test_data.hpp | andrewkatson/json | c11ca0a075f2d4bb5b5b613b5319597cf15db11e | [
"MIT"
] | null | null | null | #define TEST_DATA_DIRECTORY "/home/andrew/DenariiServices/Core/external/json/json/json_test_data"
| 49 | 97 | 0.857143 | andrewkatson |
cbc32c5849ee5e01e91f5fa2d22eb64b8e2928e8 | 698 | hpp | C++ | src/arithmetic/bucket.hpp | r3c/tesca | e5ea2f4f2c4a35c47f38468a89f2f05038fb18d8 | [
"MIT"
] | 2 | 2016-06-01T14:44:21.000Z | 2018-05-04T11:55:02.000Z | src/arithmetic/bucket.hpp | r3c/tesca | e5ea2f4f2c4a35c47f38468a89f2f05038fb18d8 | [
"MIT"
] | 1 | 2021-03-21T11:36:18.000Z | 2021-03-21T14:49:17.000Z | src/arithmetic/bucket.hpp | r3c/tesca | e5ea2f4f2c4a35c47f38468a89f2f05038fb18d8 | [
"MIT"
] | null | null | null |
#ifndef __TESCA_ARITHMETIC_BUCKET_HPP
#define __TESCA_ARITHMETIC_BUCKET_HPP
#include "../../lib/glay/src/glay.hpp"
#include "../storage/variant.hpp"
namespace Tesca
{
namespace Arithmetic
{
class Bucket
{
public:
Bucket (Bucket const&);
Bucket (Glay::Int32u);
~Bucket ();
Bucket& operator = ... | 18.368421 | 61 | 0.657593 | r3c |
cbc55c23aabd6be2d881a9136e18c06b287f1909 | 2,484 | cpp | C++ | win8.1/test/readme.cpp | panopticoncentral/jsrt-wrappers | 9e6352240a00ff622bbf0726f1fba363977313b9 | [
"Apache-2.0"
] | 12 | 2015-08-17T12:59:12.000Z | 2021-10-10T02:54:40.000Z | win8.1/test/readme.cpp | panopticoncentral/jsrt-wrappers | 9e6352240a00ff622bbf0726f1fba363977313b9 | [
"Apache-2.0"
] | null | null | null | win8.1/test/readme.cpp | panopticoncentral/jsrt-wrappers | 9e6352240a00ff622bbf0726f1fba363977313b9 | [
"Apache-2.0"
] | 5 | 2019-03-08T04:13:44.000Z | 2019-12-17T09:51:09.000Z | // Copyright 2013 Paul Vick
//
// 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 writin... | 40.064516 | 132 | 0.5938 | panopticoncentral |
cbca8f819c06a57e7b04f6b80df354673bf4ef76 | 4,051 | cpp | C++ | modules/attention_segmentation/src/LocationMap.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 17 | 2015-11-16T14:21:10.000Z | 2020-11-09T02:57:33.000Z | modules/attention_segmentation/src/LocationMap.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 35 | 2015-07-27T15:04:43.000Z | 2019-08-22T10:52:35.000Z | modules/attention_segmentation/src/LocationMap.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 18 | 2015-08-06T09:26:27.000Z | 2020-09-03T01:31:00.000Z | /**
* Copyright (C) 2012
* Ekaterina Potapova
* Automation and Control Institute
* Vienna University of Technology
* Gusshausstraße 25-29
* 1040 Vienna, Austria
* potapova(at)acin.tuwien.ac.at
*
* This program is free software: you can redistribute it and/or modify
* it under the terms ... | 23.690058 | 104 | 0.626265 | ToMadoRe |
cbcd0ef8bc515c65044757062273b32f0068437d | 3,018 | hpp | C++ | include/blacknot/assert.hpp | yzt/blacknot | 58f2bc4264aae8c4300159c33ac0929edf07d36c | [
"MIT"
] | 16 | 2015-03-17T11:38:58.000Z | 2019-06-07T16:59:17.000Z | include/blacknot/assert.hpp | yzt/blacknot | 58f2bc4264aae8c4300159c33ac0929edf07d36c | [
"MIT"
] | 1 | 2020-04-03T07:14:19.000Z | 2020-04-03T07:14:19.000Z | include/blacknot/assert.hpp | yzt/blacknot | 58f2bc4264aae8c4300159c33ac0929edf07d36c | [
"MIT"
] | null | null | null | //======================================================================
// This is part of Project Blacknot:
// https://github.com/yzt/blacknot
//======================================================================
#pragma once
//======================================================================
#include <blac... | 46.430769 | 161 | 0.523194 | yzt |
cbd103eb5bd48dc7858554b641a4486e3b9e8e3a | 812 | cpp | C++ | 1st/unique_binary_search_trees.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 1st/unique_binary_search_trees.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 1st/unique_binary_search_trees.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
using std::cout;
using std::endl;
class Solution {
public:
int numTrees(int n) {
if (n <= 0)
return 0;
int *res = new int[n+1]();
res[0] = 1;
res[1] = 1;
for (int i = 2; i <= n; ++i) {
for (int j = 0; j < i; ++j) {
... | 20.3 | 59 | 0.415025 | buptlxb |
cbdb015e5e4ec0d145e6756c4930c1ecfb0a3957 | 1,931 | cpp | C++ | Source/VectorWarUE4/Private/VectorWar/Components/MovementComponent.cpp | hakansanli/VectorWarUE4 | 042c4321f0cab9f6ea2344e98d1db38a4b1ade06 | [
"MIT"
] | null | null | null | Source/VectorWarUE4/Private/VectorWar/Components/MovementComponent.cpp | hakansanli/VectorWarUE4 | 042c4321f0cab9f6ea2344e98d1db38a4b1ade06 | [
"MIT"
] | null | null | null | Source/VectorWarUE4/Private/VectorWar/Components/MovementComponent.cpp | hakansanli/VectorWarUE4 | 042c4321f0cab9f6ea2344e98d1db38a4b1ade06 | [
"MIT"
] | null | null | null | #include "MovementComponent.h"
#include "ECS/Entity.h"
#include "InputReceiverComponent.h"
#include "ComponentFactory.h"
#include <math.h>
#include "BodyComponent.h"
#include "VectorWar/vectorwar.h"
void MovementComponent::Update(Entity* entity) {
auto inputReceiver=(InputReceiverComponent*)entity->GetCompone... | 37.862745 | 113 | 0.590368 | hakansanli |
cbe5463e3a4b4df6971d54efaad81d97df641544 | 499 | cpp | C++ | examples/imgui_demo/imgui_demo.cpp | L-Sun/game_engine | e153280dae975c2770a202ca3b55e672626a172e | [
"MIT"
] | 52 | 2021-11-19T09:08:30.000Z | 2022-03-28T00:53:43.000Z | examples/imgui_demo/imgui_demo.cpp | L-Sun/game_engine | e153280dae975c2770a202ca3b55e672626a172e | [
"MIT"
] | 1 | 2021-10-30T06:55:35.000Z | 2021-10-30T06:55:35.000Z | examples/imgui_demo/imgui_demo.cpp | L-Sun/game_engine | e153280dae975c2770a202ca3b55e672626a172e | [
"MIT"
] | 2 | 2021-12-15T02:10:42.000Z | 2022-01-08T17:50:25.000Z | #include "imgui_demo.hpp"
#include <hitagi/gui/gui_manager.hpp>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
using namespace hitagi;
int ImGuiDemo::Initialize() {
m_Logger = spdlog::stdout_color_mt("ImGuiDemo");
return 0;
}
void ImGuiDemo::Finalize() {
m_Logger->info("ImGuiDe... | 19.192308 | 52 | 0.669339 | L-Sun |
cbe5566c3e0bc7613787e8eceba489f88000b3dc | 8,179 | cpp | C++ | MagicianApprentice/MagicianApprentice/Player.cpp | vandalo/MagicianApprentice | d8f0419399fd6579960ad1b85028ecfc88a83e25 | [
"MIT"
] | null | null | null | MagicianApprentice/MagicianApprentice/Player.cpp | vandalo/MagicianApprentice | d8f0419399fd6579960ad1b85028ecfc88a83e25 | [
"MIT"
] | null | null | null | MagicianApprentice/MagicianApprentice/Player.cpp | vandalo/MagicianApprentice | d8f0419399fd6579960ad1b85028ecfc88a83e25 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Utils.h"
#include "Player.h"
#include "Exit.h"
#include "Room.h"
#include "Item.h"
#include "Spell.h"
#include "Monster.h"
#include <string>
#include "World.h"
Player::Player(const char* name, const char* description, Entity* parent, World* myWorld) :
Creature(name, description, parent),... | 19.427553 | 114 | 0.55618 | vandalo |
cbebc3d40bb7e6b9c9568b642a68e529abf28cc1 | 2,765 | cpp | C++ | ehunter/genotyping/AlleleChecker.cpp | bw2/ExpansionHunter | 6a6005a4bae2c49f56ec8997a301b70a75b042b6 | [
"BSL-1.0",
"Apache-2.0"
] | 122 | 2017-01-06T16:19:31.000Z | 2022-03-08T00:05:50.000Z | ehunter/genotyping/AlleleChecker.cpp | bw2/ExpansionHunter | 6a6005a4bae2c49f56ec8997a301b70a75b042b6 | [
"BSL-1.0",
"Apache-2.0"
] | 90 | 2017-01-04T00:23:34.000Z | 2022-02-27T12:55:52.000Z | ehunter/genotyping/AlleleChecker.cpp | bw2/ExpansionHunter | 6a6005a4bae2c49f56ec8997a301b70a75b042b6 | [
"BSL-1.0",
"Apache-2.0"
] | 35 | 2017-03-02T13:39:58.000Z | 2022-03-30T17:34:11.000Z | //
// Expansion Hunter
// Copyright 2016-2019 Illumina, Inc.
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
... | 28.214286 | 117 | 0.688608 | bw2 |
cbebd7bce4351504b038d57b0d9e7e92cb57a291 | 2,242 | hpp | C++ | src/deps/include/boost/url/rfc/query_bnf.hpp | sandmanhome/liuguang | 73fb6ee06654d80f8c9dedee1ddfa4f9be2d5fb3 | [
"Apache-2.0"
] | null | null | null | src/deps/include/boost/url/rfc/query_bnf.hpp | sandmanhome/liuguang | 73fb6ee06654d80f8c9dedee1ddfa4f9be2d5fb3 | [
"Apache-2.0"
] | null | null | null | src/deps/include/boost/url/rfc/query_bnf.hpp | sandmanhome/liuguang | 73fb6ee06654d80f8c9dedee1ddfa4f9be2d5fb3 | [
"Apache-2.0"
] | null | null | null | //
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// 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)
//
// Official repository: https://github.com/CPPAlliance/url
//
#ifndef BOOST_URL_R... | 20.198198 | 79 | 0.554862 | sandmanhome |
cbedab134d53bff3e272b7a6b088b4fe8e192f68 | 1,506 | cpp | C++ | cpp/src/exercise/e0200/e0149.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0200/e0149.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0200/e0149.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | // https://leetcode-cn.com/problems/max-points-on-a-line/
#include "extern.h"
typedef pair<int, int> pii;
class S0149 {
void gcd(pii& p) {
int l = abs(p.first), r = abs(p.second);
if (r == 0) p = make_pair(1, 0);
else if (l == 0) p = make_pair(0, 1);
else {
if (l < r) ... | 29.529412 | 92 | 0.434263 | ajz34 |
cbef4911f3ffa13f77cf15b9834b2717f9982061 | 1,271 | cpp | C++ | src/critics/goal_critic.cpp | doisyg/mppic | e9cd561c5e108061bd90cf157f0f73327b21e51a | [
"MIT"
] | null | null | null | src/critics/goal_critic.cpp | doisyg/mppic | e9cd561c5e108061bd90cf157f0f73327b21e51a | [
"MIT"
] | null | null | null | src/critics/goal_critic.cpp | doisyg/mppic | e9cd561c5e108061bd90cf157f0f73327b21e51a | [
"MIT"
] | null | null | null | // Copyright 2022 FastSense, Samsung Research
#include "mppic/critics/goal_critic.hpp"
namespace mppi::critics
{
void GoalCritic::initialize()
{
auto node = parent_.lock();
auto getParam = utils::getParamGetter(node, name_);
getParam(power_, "goal_cost_power", 1);
getParam(weight_, "goal_cost_weight", 20.0);... | 28.244444 | 80 | 0.707317 | doisyg |
cbf176038b5218527024600bf137be49963ea712 | 2,212 | cpp | C++ | Binary Tree/Diameter.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 19 | 2018-12-02T05:59:44.000Z | 2021-07-24T14:11:54.000Z | Binary Tree/Diameter.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | null | null | null | Binary Tree/Diameter.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 13 | 2019-04-25T16:20:00.000Z | 2021-09-06T19:50:04.000Z | //Find the diameter of a tree
/*
approach 1: TC: O(n^2):
We find the left height and right height also for the possibility that
there might exist a subtree greater than the current left or right
approach 2: TC:O(n):
We find the height in the same recursive call only.
*/
#include<iostream>
using namespace std;
... | 20.867925 | 74 | 0.657776 | susantabiswas |
cbf22d95707136e9855e8fcd66bb0aeab0f25db3 | 972 | cpp | C++ | Bit Manipulation/8divideWithoutUsingDivideOperator.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | 1 | 2021-01-18T14:51:20.000Z | 2021-01-18T14:51:20.000Z | Bit Manipulation/8divideWithoutUsingDivideOperator.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | Bit Manipulation/8divideWithoutUsingDivideOperator.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | // C++ implementation to Divide two
// integers without using multiplication,
// division and mod operator
#include <bits/stdc++.h>
using namespace std;
// Function to divide a by b and
// return floor value it
int divide(long long dividend, long long divisor) {
// Calculate sign of divisor i.e.,
// sign will be nega... | 19.44 | 51 | 0.641975 | Coderangshu |
cbf57bcfe413d3b3dd58c1787f50c4eae5a8ebcc | 14,503 | cpp | C++ | src/zlib/Win32app.cpp | FreeAllegiance/AllegianceDX7 | 3955756dffea8e7e31d3a55fcf6184232b792195 | [
"MIT"
] | 76 | 2015-08-18T19:18:40.000Z | 2022-01-08T12:47:22.000Z | src/zlib/Win32app.cpp | StudentAlleg/Allegiance | e91660a471eb4e57e9cea4c743ad43a82f8c7b18 | [
"MIT"
] | 37 | 2015-08-14T22:44:12.000Z | 2020-01-21T01:03:06.000Z | src/zlib/Win32app.cpp | StudentAlleg/Allegiance | e91660a471eb4e57e9cea4c743ad43a82f8c7b18 | [
"MIT"
] | 42 | 2015-08-13T23:31:35.000Z | 2022-03-17T02:20:26.000Z | #include "Win32app.h"
#include "regkey.h"
#include "SlmVer.h"
//Imago 7/10
#include <dbghelp.h>
#include <crtdbg.h>
#include "zstring.h"
#include "VersionInfo.h"
#include <ctime>
#include "zmath.h"
#include "window.h"
#include "Logger.h"
#ifndef NO_STEAM
#include "steam_api.h"
#endif
////////////////////////////... | 24.498311 | 159 | 0.605116 | FreeAllegiance |
02082b5d69c4264e74197730f982e43693fb3c1f | 260 | hpp | C++ | Planets/Graph.hpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | Planets/Graph.hpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | Planets/Graph.hpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | #ifndef GRAPH_H
#define GRAPH_H
#include <vector>
#include <utility>
// Header file for the graphing file
std::pair<double,double> extrema(std::vector<double> v);
std::pair<double,double> getLeastSquares(std::vector<double> x, std::vector<double> y);
#endif | 23.636364 | 87 | 0.746154 | GEslinger |
02098a73feec75805920a6f0064ac723be0d6723 | 2,003 | hh | C++ | src/blas/utils.hh | hmatuschek/linalg | b4b8337ba001b24572f13349cc5804a416bfe5a7 | [
"MIT"
] | 1 | 2016-05-24T15:27:52.000Z | 2016-05-24T15:27:52.000Z | src/blas/utils.hh | hmatuschek/linalg | b4b8337ba001b24572f13349cc5804a416bfe5a7 | [
"MIT"
] | null | null | null | src/blas/utils.hh | hmatuschek/linalg | b4b8337ba001b24572f13349cc5804a416bfe5a7 | [
"MIT"
] | null | null | null | /*
* This file is part of the Linalg project, a C++ interface to BLAS and LAPACK.
*
* The source-code is licensed under the terms of the MIT license, read LICENSE for more details.
*
* (c) 2011, 2012 Hannes Matuschek <hmatuschek at gmail dot com>
*/
#ifndef __LINALG_BLAS_UTILS_HH__
#define __LINALG_BLAS_UTILS_HH... | 32.306452 | 119 | 0.658013 | hmatuschek |
020a06c3b0386487bf769fdb51b8d0e5db94421b | 3,157 | cpp | C++ | groups/csa/csamisc/csamisc_shortcompare.cpp | hyrosen/bde_verify | c2db13c9f1649806bfd9155e2bffcbbcf9d54918 | [
"Apache-2.0"
] | null | null | null | groups/csa/csamisc/csamisc_shortcompare.cpp | hyrosen/bde_verify | c2db13c9f1649806bfd9155e2bffcbbcf9d54918 | [
"Apache-2.0"
] | null | null | null | groups/csa/csamisc/csamisc_shortcompare.cpp | hyrosen/bde_verify | c2db13c9f1649806bfd9155e2bffcbbcf9d54918 | [
"Apache-2.0"
] | null | null | null | // csamisc_donotuseendl.cpp -*-C++-*-
#include <clang/AST/Expr.h>
#include <clang/ASTMatchers/ASTMatchFinder.h>
#include <clang/ASTMatchers/ASTMatchers.h>
#include <csabase_analyser.h>
#include <csabase_debug.h>
#include <csabase_registercheck.h>
#include <csabase_report.h>
#i... | 34.315217 | 80 | 0.560025 | hyrosen |
020a0fa22c0b7915b733150f7e2839eeba5c0058 | 26,548 | hpp | C++ | libs/fft/FFTRealFixed.hpp | constcut/mtherapp | 20b8e32361ef492d5b7cb4ff150f0956e952fdef | [
"MIT"
] | 2 | 2022-03-04T17:54:48.000Z | 2022-03-28T06:20:31.000Z | libs/fft/FFTRealFixed.hpp | constcut/aurals | bb00fac92a3a919867fe2e482c37fc0abe5e6984 | [
"MIT"
] | null | null | null | libs/fft/FFTRealFixed.hpp | constcut/aurals | bb00fac92a3a919867fe2e482c37fc0abe5e6984 | [
"MIT"
] | null | null | null | #ifndef FFTREALFIXED_H
#define FFTREALFIXED_H
#include <cstdint>
#include <cassert>
#include <cmath>
#include <type_traits>
const double PI = 3.1415926535897932384626433832795;
const double SQRT2 = 1.41421356237309514547462185873883;
template <class T>
class DynArray
{
public:
DynArray ();
explicit DynA... | 24.672862 | 183 | 0.548403 | constcut |
0215dc982e9b92fb0d9f4cc0303459c635969a42 | 3,885 | cpp | C++ | src/data_science/logistic_regression.cpp | arotem3/numerics | ba208d9fc0ccb9471cfec9927a21622eb3535f54 | [
"Apache-2.0"
] | 18 | 2019-04-18T17:34:49.000Z | 2021-11-15T07:57:29.000Z | src/data_science/logistic_regression.cpp | arotem3/numerics | ba208d9fc0ccb9471cfec9927a21622eb3535f54 | [
"Apache-2.0"
] | null | null | null | src/data_science/logistic_regression.cpp | arotem3/numerics | ba208d9fc0ccb9471cfec9927a21622eb3535f54 | [
"Apache-2.0"
] | 4 | 2019-12-02T04:04:21.000Z | 2022-02-17T08:23:09.000Z | #include <numerics.hpp>
void mult_coefs_serial(arma::mat& yh, const arma::vec& coefs, const arma::rowvec& b, const arma::mat& w, const arma::mat& x) {
yh = arma::repmat(coefs.subvec(0,b.n_elem-1).as_row(), x.n_rows, 1);
arma::uword start = b.n_elem;
for (u_long i=0; i < w.n_rows; ++i) {
for (u_long... | 29.656489 | 161 | 0.551094 | arotem3 |
0217515b32bbeec62e4d1faf4e81d57b3d7b1c5f | 2,409 | cpp | C++ | Lowest Common Ancestor (LCA-problem)/DISQUERY - Distance Query (sol. 2).cpp | yokeshrana/Fast_Algorithms_in_Data_Structures | 2346fee16c6c3ffceac7cb79b1f449b4d8dc9df2 | [
"MIT"
] | 4 | 2021-01-15T16:30:48.000Z | 2021-08-12T03:17:00.000Z | Lowest Common Ancestor (LCA-problem)/DISQUERY - Distance Query (sol. 2).cpp | andy489/Fast_Algorithms_in_Data_Structures | 0f28a75030df3367902f0aa859a34096ea2b2582 | [
"MIT"
] | null | null | null | Lowest Common Ancestor (LCA-problem)/DISQUERY - Distance Query (sol. 2).cpp | andy489/Fast_Algorithms_in_Data_Structures | 0f28a75030df3367902f0aa859a34096ea2b2582 | [
"MIT"
] | 2 | 2021-02-24T14:50:08.000Z | 2021-02-28T17:39:41.000Z | /*
github.com/andy489
Complexity: <O(n.log(n), log(n))>
Link: http://www.spoj.com/problems/DISQUERY/
*/
#include <stdio.h>
#include <vector>
using namespace std;
#define pii pair<int,int>
#define pb push_back
#define f first
#define s second
const int mxN = 1e5 + 5;
const int mxLog = 17;
vector<pair<int, int>> adj... | 24.581633 | 73 | 0.429639 | yokeshrana |
021cfde3788cdde45bee5f039475f69d25bb37e8 | 1,023 | cpp | C++ | FangameReader/DetectorMouseController.cpp | TheBiob/DeadSplit | 2e29bae2b86fa689ed9c28d345f2e8743b10c115 | [
"MIT"
] | 3 | 2019-04-02T19:23:35.000Z | 2021-04-30T03:57:15.000Z | FangameReader/DetectorMouseController.cpp | TheBiob/DeadSplit | 2e29bae2b86fa689ed9c28d345f2e8743b10c115 | [
"MIT"
] | 1 | 2018-07-10T22:34:41.000Z | 2018-07-10T22:52:43.000Z | FangameReader/DetectorMouseController.cpp | TheBiob/DeadSplit | 2e29bae2b86fa689ed9c28d345f2e8743b10c115 | [
"MIT"
] | 3 | 2020-12-28T19:06:07.000Z | 2021-01-30T10:09:56.000Z | #include <common.h>
#pragma hdrstop
#include <DetectorMouseController.h>
#include <FangameDetectorState.h>
#include <MouseTarget.h>
#include <DetectorActionController.h>
namespace Fangame {
//////////////////////////////////////////////////////////////////////////
void CDetectorMouseController::OnMouseMove()
{
con... | 22.733333 | 74 | 0.638319 | TheBiob |
021d90eda0e13562cdffcd38536f0c49f8fc403f | 38,617 | hpp | C++ | thirdparty/nark/gold_hash_map.hpp | ktprime/emhash | 3b059cc5db31f3e3c4102b1b1bc46bbfc3313c37 | [
"MIT"
] | 92 | 2019-09-11T05:17:20.000Z | 2022-03-31T09:54:06.000Z | thirdparty/nark/gold_hash_map.hpp | ktprime/emhash | 3b059cc5db31f3e3c4102b1b1bc46bbfc3313c37 | [
"MIT"
] | 7 | 2019-11-23T16:24:03.000Z | 2020-09-15T13:07:06.000Z | thirdparty/nark/gold_hash_map.hpp | ktprime/emhash | 3b059cc5db31f3e3c4102b1b1bc46bbfc3313c37 | [
"MIT"
] | 5 | 2020-06-10T07:20:04.000Z | 2022-03-01T08:43:18.000Z | #ifndef __nark_gold_hash_tab__
#define __nark_gold_hash_tab__
#ifdef _MSC_VER
#if _MSC_VER < 1600
#include <hash_map>
#define DEFAULT_HASH_FUNC stdext::hash
#else
#include <unordered_map>
#define DEFAULT_HASH_FUNC std::hash
#endif
#elif defined(__GNUC__) && __GNUC__ * 1000 + __GNUC_MINOR__ < 4001
#includ... | 27.842105 | 101 | 0.640081 | ktprime |
021f205bbd10b7ed975697de2501f90ec14fee0f | 7,038 | hpp | C++ | src/Luddite/Graphics/ShaderAttributeList.hpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | 1 | 2021-06-03T05:46:46.000Z | 2021-06-03T05:46:46.000Z | src/Luddite/Graphics/ShaderAttributeList.hpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | null | null | null | src/Luddite/Graphics/ShaderAttributeList.hpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Luddite/Core/pch.hpp"
#include "Luddite/Core/Core.hpp"
#include "Luddite/Core/AssetTypes/Texture.hpp"
#include "Luddite/Graphics/Color.hpp"
#include "Luddite/Graphics/DiligentInclude.hpp"
// #include "Luddite/Core/pch.hpp"
// #include "Luddite/Platform/DiligentPlatform.hpp"
// #include "Graphics/... | 42.143713 | 153 | 0.603296 | Aquaticholic |
0226d207c2cff8ddfb0f5797b924142535f9ce20 | 6,045 | cc | C++ | src/engine/systems/collider_system.cc | hvonck/lambda-lilac | c4cf744356c2d2056e8f66da4f95d2268f7c25d0 | [
"BSD-3-Clause"
] | 1 | 2019-05-28T16:39:19.000Z | 2019-05-28T16:39:19.000Z | src/engine/systems/collider_system.cc | hvonck/lambda-lilac | c4cf744356c2d2056e8f66da4f95d2268f7c25d0 | [
"BSD-3-Clause"
] | null | null | null | src/engine/systems/collider_system.cc | hvonck/lambda-lilac | c4cf744356c2d2056e8f66da4f95d2268f7c25d0 | [
"BSD-3-Clause"
] | 1 | 2019-05-28T16:39:06.000Z | 2019-05-28T16:39:06.000Z | #include "collider_system.h"
#include "rigid_body_system.h"
#include "transform_system.h"
#include "utils/mesh_decimator.h"
#include <platform/scene.h>
namespace lambda
{
namespace components
{
namespace ColliderSystem
{
ColliderComponent addComponent(const entity::Entity& entity, scene::Scene& sc... | 27.729358 | 135 | 0.66617 | hvonck |
02280e2bdcf0d36c1832ab5c74c6fbdd1c45cd52 | 2,421 | cpp | C++ | Sandbox/src/Player.cpp | Super-Shadow/RiseFlappyRocketGame | 7ed3191823af77cd246940f6766f453c12dab601 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Player.cpp | Super-Shadow/RiseFlappyRocketGame | 7ed3191823af77cd246940f6766f453c12dab601 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Player.cpp | Super-Shadow/RiseFlappyRocketGame | 7ed3191823af77cd246940f6766f453c12dab601 | [
"Apache-2.0"
] | null | null | null | #include "Player.h"
#include "imgui/imgui.h"
#include <glm/gtx/transform.hpp>
using namespace Rise;
Player::Player()
{
m_SmokeParticle.Position = {0.f, 0.f};
m_SmokeParticle.Velocity = {-2.f, 0.f};
m_SmokeParticle.VelocityVariation = { 4.f, 2.f};
m_SmokeParticle.SizeBegin = .35f;
m_SmokeParticle.SizeEnd = 0.f;
... | 26.604396 | 120 | 0.693928 | Super-Shadow |
022b26afd6d361726223c70e6c3ffbcb736c160d | 349 | cpp | C++ | CF/1611B.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | CF/1611B.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | CF/1611B.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | /*
/\ In The Name Of Allah /\
Author : Jawahiir Nabhan
*/
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
typedef long long ll;
const char nl = '\n';
int main()
{
int T; cin>> T;
while(T--)
{
int a,b; cin>> a >> b;
if(a > b) swap(a, b);
cout<< min(min(a, b... | 16.619048 | 47 | 0.495702 | jawahiir98 |
022c8391657a0ed821ec91198f3e3811e7e6e97e | 6,398 | cpp | C++ | DT3Core/System/Globals.cpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2018-10-05T15:03:27.000Z | 2019-03-19T11:01:56.000Z | DT3Core/System/Globals.cpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3Core/System/Globals.cpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2016-01-14T07:51:52.000Z | 2021-08-21T08:02:51.000Z | //==============================================================================
///
/// File: Globals.cpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE.txt', which is part of this source c... | 29.897196 | 116 | 0.455924 | 9heart |
0232334d11e4efc946c3ffad18c64a59c08d2b86 | 14,341 | cpp | C++ | src/asdxSkySphere.cpp | ProjectAsura/asdx11 | 67c3d4129f3e6d32e66c64ee9354d873f99d0eaf | [
"MIT"
] | null | null | null | src/asdxSkySphere.cpp | ProjectAsura/asdx11 | 67c3d4129f3e6d32e66c64ee9354d873f99d0eaf | [
"MIT"
] | null | null | null | src/asdxSkySphere.cpp | ProjectAsura/asdx11 | 67c3d4129f3e6d32e66c64ee9354d873f99d0eaf | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// File : asdxSkySphere.cpp
// Desc : Sky Sphere Module.
// Copyright(c) Project Asura. All right reserved.
//-----------------------------------------------------------------------------
//------------------------------------------... | 33.664319 | 122 | 0.473816 | ProjectAsura |
0238d577559be1aeeded0fdfb1e11de41c886a7b | 718 | hpp | C++ | src/layout/composer.hpp | kounoike/hisui | 7dca5cf4fedfdcf9320a1299ed61f16ee6a3a3ce | [
"Apache-2.0"
] | null | null | null | src/layout/composer.hpp | kounoike/hisui | 7dca5cf4fedfdcf9320a1299ed61f16ee6a3a3ce | [
"Apache-2.0"
] | null | null | null | src/layout/composer.hpp | kounoike/hisui | 7dca5cf4fedfdcf9320a1299ed61f16ee6a3a3ce | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <array>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <vector>
#include "layout/cell_util.hpp"
namespace hisui::layout {
class Region;
struct ComposerParameters {
const std::vector<std::shared_ptr<Region>>& regions;
const Resolution& resolution;
};
class Composer {
pu... | 20.514286 | 65 | 0.729805 | kounoike |
0241e131febd400c95b44450a12d4a135b6f0489 | 1,007 | cc | C++ | Daily_Problem/2101/Beginning/210104_Fibonacci_Number/method2/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | 1 | 2020-02-07T12:25:56.000Z | 2020-02-07T12:25:56.000Z | Daily_Problem/2101/Beginning/210104_Fibonacci_Number/method2/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | null | null | null | Daily_Problem/2101/Beginning/210104_Fibonacci_Number/method2/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | null | null | null | #include <vector>
using std::vector;
class Solution {
public:
// 除去直接使用通项公式的方法,还有一种方法时间复杂度更低,
// 1 1 ^n f(1) = f(n+1)
// 1 0 f(0) f(n)
using matrix_type = vector<vector<int>>;
int fib(int n) {
if (n < 2) return n;
matrix_type a{{1, 1}, {1, 0}};
matrix_type r = matri... | 23.97619 | 65 | 0.454816 | sheriby |
0249b78204328624e2fdccb88e9a72f5398166e4 | 5,933 | cpp | C++ | platform-io/lib/zeromq/src/zeromq/esp8266/ZeroMQConnection.cpp | darvik80/rover-cpp | 8da7b7f07efe7096843ae17536603277f55debea | [
"Apache-2.0"
] | 2 | 2020-01-13T07:32:50.000Z | 2020-03-03T14:32:25.000Z | platform-io/lib/zeromq/src/zeromq/esp8266/ZeroMQConnection.cpp | darvik80/rover-cpp | 8da7b7f07efe7096843ae17536603277f55debea | [
"Apache-2.0"
] | 16 | 2019-06-16T05:51:02.000Z | 2020-02-03T01:59:23.000Z | platform-io/lib/zeromq/src/zeromq/esp8266/ZeroMQConnection.cpp | darvik80/rover-cpp | 8da7b7f07efe7096843ae17536603277f55debea | [
"Apache-2.0"
] | 1 | 2020-03-03T14:32:27.000Z | 2020-03-03T14:32:27.000Z | //
// Created by Ivan Kishchenko on 01.09.2021.
//
#ifdef ARDUINO_ARCH_ESP8266
#include "ZeroMQConnection.h"
#include "../ZeroMQReader.h"
#include <HardwareSerial.h>
size_t ZeroMQDataMessage::ack(size_t len) {
// If the whole message is now acked...
if (_acked + len > _buf->size()) {
// Return the n... | 30.116751 | 130 | 0.568178 | darvik80 |
024fb820d76ab863416a6f3ad7ef02dae89eea3a | 4,329 | cpp | C++ | VAlloc.cpp | nardinan/vulture | d4be5b028d9fab4c0d23797ceb95d22f5a33cb75 | [
"FTL"
] | null | null | null | VAlloc.cpp | nardinan/vulture | d4be5b028d9fab4c0d23797ceb95d22f5a33cb75 | [
"FTL"
] | null | null | null | VAlloc.cpp | nardinan/vulture | d4be5b028d9fab4c0d23797ceb95d22f5a33cb75 | [
"FTL"
] | null | null | null | /* PSYCHO GAMES(C) STUDIOS - 2007 www.psychogames.net
* Project: Vulture(c)
* Author : Andrea Nardinocchi
* eMail : andrea@nardinan.it
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, ... | 37.318966 | 91 | 0.585355 | nardinan |
025a22a31abed79d345bca7e660f644db80de58c | 571 | cpp | C++ | Stack.cpp | nyugoh/STL | 3cd09e0be525e8951d7e28bc935fc0aa1971777c | [
"Apache-2.0"
] | null | null | null | Stack.cpp | nyugoh/STL | 3cd09e0be525e8951d7e28bc935fc0aa1971777c | [
"Apache-2.0"
] | null | null | null | Stack.cpp | nyugoh/STL | 3cd09e0be525e8951d7e28bc935fc0aa1971777c | [
"Apache-2.0"
] | null | null | null | #include <stack>
#include <iostream>
using namespace std;
int main(){
stack<string> applications;
//Adding elements to the stack
applications.push("ASPOF-3435");
applications.push("AAKJDH2399");
applications.push("ADXKJQ2332");
applications.push("ASDWWE232");
applications.push("ASKLD923")... | 25.954545 | 77 | 0.635727 | nyugoh |
025db52336b789ba6b08c8a68415287dcddffdec | 2,699 | hpp | C++ | septem/include/communication.hpp | CalielOfSeptem/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | 1 | 2017-03-30T14:31:33.000Z | 2017-03-30T14:31:33.000Z | septem/include/communication.hpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null | septem/include/communication.hpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null |
// ==========================================================================
#ifndef SE7EN_COMMUNICATION_HPP_
#define SE7EN_COMMUNICATION_HPP_
#include <string>
#include <boost/shared_ptr.hpp>
namespace terminalpp {
class string;
}
class client;
class world_context;
//* =====================================... | 34.164557 | 77 | 0.399407 | CalielOfSeptem |
025ffbb15475ed2d03edf32bfe3b9fbf87e589d8 | 2,708 | hpp | C++ | src/nnfusion/core/kernels/hlsl/hlsl_kernel_emitter.hpp | LittleQili/nnfusion | 6c1a25db5be459a1053798f1c75bfbd26863ed08 | [
"MIT"
] | 1 | 2021-05-14T08:10:30.000Z | 2021-05-14T08:10:30.000Z | src/nnfusion/core/kernels/hlsl/hlsl_kernel_emitter.hpp | LittleQili/nnfusion | 6c1a25db5be459a1053798f1c75bfbd26863ed08 | [
"MIT"
] | null | null | null | src/nnfusion/core/kernels/hlsl/hlsl_kernel_emitter.hpp | LittleQili/nnfusion | 6c1a25db5be459a1053798f1c75bfbd26863ed08 | [
"MIT"
] | 1 | 2021-08-11T09:09:53.000Z | 2021-08-11T09:09:53.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include "nnfusion/common/common.hpp"
#include "nnfusion/common/languageunit.hpp"
#include "nnfusion/core/kernels/antares_ke_imp.hpp"
#include "nnfusion/core/kernels/kernel_emitter.hpp"
#include "nnfusion/core/operators/generic_op/... | 34.717949 | 75 | 0.441654 | LittleQili |
026740d230641181e886680a0a7b6c846e76d76e | 1,286 | cpp | C++ | first_round/easy/test/test_add_two_nums_smartptr.cpp | forwardkth/leetcode | af1ecf96ca0630b2124f06b0527088f91ee2dafe | [
"MIT"
] | 1 | 2019-01-29T16:23:33.000Z | 2019-01-29T16:23:33.000Z | first_round/easy/test/test_add_two_nums_smartptr.cpp | forwardkth/leetcode | af1ecf96ca0630b2124f06b0527088f91ee2dafe | [
"MIT"
] | null | null | null | first_round/easy/test/test_add_two_nums_smartptr.cpp | forwardkth/leetcode | af1ecf96ca0630b2124f06b0527088f91ee2dafe | [
"MIT"
] | null | null | null | #include "../include/add_two_nums_smartptr.h"
#include <gtest/gtest.h>
//Google Test cases
TEST(AddTwoNums_sharedPtr_Test, testPos)
{
ListNodeShared* ls1 = new ListNodeShared(2);
ls1->next = make_shared<ListNodeShared>(4);
ls1->next->next = make_shared<ListNodeShared>(3);
ListNodeShared* ls2 = new ListNodeSh... | 31.365854 | 71 | 0.730949 | forwardkth |
026d5be2cb1f5ab3247a0e0f36b008c1a18e59a0 | 4,124 | cpp | C++ | darwin/unix_adapter.cpp | mikecovlee/darwin | 000bcfd31994be860a422fe2fb11dbced408da72 | [
"Apache-2.0"
] | 20 | 2016-12-12T12:07:44.000Z | 2021-07-29T01:23:35.000Z | darwin/unix_adapter.cpp | mikecovlee/darwin | 000bcfd31994be860a422fe2fb11dbced408da72 | [
"Apache-2.0"
] | null | null | null | darwin/unix_adapter.cpp | mikecovlee/darwin | 000bcfd31994be860a422fe2fb11dbced408da72 | [
"Apache-2.0"
] | 7 | 2016-12-17T12:52:19.000Z | 2020-04-04T03:35:47.000Z | /*
* Covariant Darwin Universal Character Graphics Library
*
* 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... | 21.591623 | 93 | 0.598206 | mikecovlee |
0276aff95eb79ef76baddcf8dac2319d4bf66be9 | 1,986 | cpp | C++ | parts/Drive.cpp | fdekruijff/Group-Project-TICT-V1GP-15 | ec1de58bf3e5f22066f563e0014760e54d779159 | [
"MIT"
] | null | null | null | parts/Drive.cpp | fdekruijff/Group-Project-TICT-V1GP-15 | ec1de58bf3e5f22066f563e0014760e54d779159 | [
"MIT"
] | null | null | null | parts/Drive.cpp | fdekruijff/Group-Project-TICT-V1GP-15 | ec1de58bf3e5f22066f563e0014760e54d779159 | [
"MIT"
] | null | null | null | #include <cmath>
#include <iostream>
#include <unistd.h>
#include "./piprograms/BrickPi3.cpp"
#include <thread>
#include <signal.h>
#include <vector>
using namespace std;
BrickPi3 BP;
uint8_t s_contrast = PORT_2; // Light sensor
uint8_t m_head = PORT_A; // Head motor
uint8_t m_left = PORT_B;... | 24.219512 | 117 | 0.666163 | fdekruijff |
02773adfef90ebe52be74848f2315ef64a8c0346 | 1,822 | cpp | C++ | algorithms/recursion/twisted_tower_of_hanoi.cpp | adisakshya/dsa | 5b40eb339b19cdec95dcfc645516d725f0cb6c74 | [
"MIT"
] | null | null | null | algorithms/recursion/twisted_tower_of_hanoi.cpp | adisakshya/dsa | 5b40eb339b19cdec95dcfc645516d725f0cb6c74 | [
"MIT"
] | null | null | null | algorithms/recursion/twisted_tower_of_hanoi.cpp | adisakshya/dsa | 5b40eb339b19cdec95dcfc645516d725f0cb6c74 | [
"MIT"
] | null | null | null | /**
* Twisted Tower of Hanoi (Recursive)
*
* Twisted Tower of Hanoi is a mathematical puzzle where we have three rods and n disks.
* The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules:
* 1) Only one disk can be moved at a time.
* 2) Each mov... | 35.72549 | 117 | 0.608672 | adisakshya |
02776f948c5fa197561eef3d5f575f85a41e012e | 4,281 | cpp | C++ | ModuleProgram.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | ModuleProgram.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | ModuleProgram.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | #include "ModuleProgram.h"
#include "Application.h"
#include "ModuleImgui.h"
#include "Globals.h"
#include "MathGeoLib/include/Math/float4x4.h"
#include "SDL.h"
ModuleProgram::ModuleProgram()
{
}
ModuleProgram::~ModuleProgram()
{
}
bool ModuleProgram::Init()
{
App->imgui->AddLog("\nSHADERS.\n\n");
//init verte... | 24.186441 | 92 | 0.759402 | raulgonzalezupc |
0280219b9443179587297e57704c87cc4b7aa7f2 | 1,644 | cpp | C++ | src/algorithm/Algorithm.cpp | oldas1/Riner | 492804079eb223e6d4ffd5f5f44283162eaf421b | [
"MIT"
] | null | null | null | src/algorithm/Algorithm.cpp | oldas1/Riner | 492804079eb223e6d4ffd5f5f44283162eaf421b | [
"MIT"
] | null | null | null | src/algorithm/Algorithm.cpp | oldas1/Riner | 492804079eb223e6d4ffd5f5f44283162eaf421b | [
"MIT"
] | null | null | null | //
//
#include "Algorithm.h"
#include "grin/AlgoCuckatoo31Cl.h"
#include "dummy/AlgoDummy.h"
#include "ethash/AlgoEthashCL.h"
#include <src/compute/DeviceId.h>
#include <src/pool/WorkEthash.h>
#include <src/pool/WorkCuckoo.h>
namespace miner {
/**
* Register all Algorithm implementations here.
* This i... | 34.978723 | 139 | 0.667275 | oldas1 |
0283b0332e6a4eb780ca44439332565d75e5dd1d | 601 | cpp | C++ | two-sum.cpp | casper001207/leetcode | 7b5c9b77078385fe67cb4ad5d0d52f9250cdfa30 | [
"MIT"
] | null | null | null | two-sum.cpp | casper001207/leetcode | 7b5c9b77078385fe67cb4ad5d0d52f9250cdfa30 | [
"MIT"
] | null | null | null | two-sum.cpp | casper001207/leetcode | 7b5c9b77078385fe67cb4ad5d0d52f9250cdfa30 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
vector<int> v;
for ( vector<int>::iterator it = nums.begin(); it != nums.end(); ++it ) {
for ( vector<int>::iterator it2 = nums.begin() + distance(nums.begin(), it) + 1; it2 != nums.end(); ++it2 ) {
... | 37.5625 | 121 | 0.430948 | casper001207 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.