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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
529d5489a8577d64611c1fea38db4337b1bd1f53 | 9,968 | cpp | C++ | src/Chip8.cpp | JacobRBlomquist/Chip8-Emulator | df6af01bcbdd57586c0fe8b4787f573410ca7485 | [
"MIT"
] | null | null | null | src/Chip8.cpp | JacobRBlomquist/Chip8-Emulator | df6af01bcbdd57586c0fe8b4787f573410ca7485 | [
"MIT"
] | null | null | null | src/Chip8.cpp | JacobRBlomquist/Chip8-Emulator | df6af01bcbdd57586c0fe8b4787f573410ca7485 | [
"MIT"
] | null | null | null | /**
* Copyright 2021 - Jacob R. Blomquist
* Original Author: Jacob R. Blomquist <BlomDev at gmail dot com>
* License: MIT
*/
#include "Chip8.hpp"
#include <cstring>
#include <cstdlib>
#include <chrono>
#include <cstdio>
Chip8::Chip8()
{
//reset processor state
ResetState();
}
Chip8::~Chip8()
{
}
void Chi... | 19.506849 | 142 | 0.525682 | JacobRBlomquist |
52a00f1d24657c9a94141ba0751b1ab1dfc55817 | 3,538 | cpp | C++ | src/svgdom/cloner.cpp | JaimeIvanCervantes/svgdom | 8339d6d84a573cbeb0e235f4c828f4f898d67a6c | [
"MIT"
] | null | null | null | src/svgdom/cloner.cpp | JaimeIvanCervantes/svgdom | 8339d6d84a573cbeb0e235f4c828f4f898d67a6c | [
"MIT"
] | null | null | null | src/svgdom/cloner.cpp | JaimeIvanCervantes/svgdom | 8339d6d84a573cbeb0e235f4c828f4f898d67a6c | [
"MIT"
] | null | null | null | #include "cloner.hpp"
using namespace svgdom;
void cloner::clone_children(const container& e, container& clone){
auto oldParent = this->cur_parent;
this->cur_parent = &clone;
this->relay_accept(e);
this->cur_parent = oldParent;
}
void cloner::visit(const g_element& e) {
auto clone = std::make_unique<g_element>(... | 31.035088 | 66 | 0.729508 | JaimeIvanCervantes |
52a22b90cda064e3f1c8895b27ec1315cfc21701 | 12,217 | cpp | C++ | contracts/contracts/rem.auth/src/rem.auth.cpp | kushnirenko/remprotocol | ec450227a40bb18527b473266b07b982efc1d093 | [
"MIT"
] | null | null | null | contracts/contracts/rem.auth/src/rem.auth.cpp | kushnirenko/remprotocol | ec450227a40bb18527b473266b07b982efc1d093 | [
"MIT"
] | null | null | null | contracts/contracts/rem.auth/src/rem.auth.cpp | kushnirenko/remprotocol | ec450227a40bb18527b473266b07b982efc1d093 | [
"MIT"
] | null | null | null | /**
* @copyright defined in eos/LICENSE.txt
*/
#include <rem.auth/rem.auth.hpp>
#include <rem.system/rem.system.hpp>
#include <rem.swap/rem.swap.hpp>
#include <rem.oracle/rem.oracle.hpp>
#include <rem.token/rem.token.hpp>
namespace eosio {
using eosiosystem::system_contract;
void auth::addkeyacc(const name ... | 42.273356 | 138 | 0.676434 | kushnirenko |
52a2c97ce48729731057b72c71ff9b725d61e0eb | 437 | cpp | C++ | il2cpp/functions.cpp | RusJJ/AndroidModLoader | 981978237f020d571dac752e44ab9d70358f8156 | [
"MIT"
] | 10 | 2021-08-16T04:22:53.000Z | 2022-02-14T01:22:23.000Z | il2cpp/functions.cpp | RusJJ/AndroidModLoader | 981978237f020d571dac752e44ab9d70358f8156 | [
"MIT"
] | null | null | null | il2cpp/functions.cpp | RusJJ/AndroidModLoader | 981978237f020d571dac752e44ab9d70358f8156 | [
"MIT"
] | 4 | 2021-08-20T00:03:16.000Z | 2022-02-04T10:29:53.000Z | #include <mod/iaml.h>
#include <mod/logger.h>
#include <dlfcn.h>
namespace IL2CPP::Func
{
void* pIL2CPP = NULL;
static bool m_bInitialized = false;
void HookFunctions()
{
if(m_bInitialized) return;
if(!(pIL2CPP = dlopen("libil2cpp.so", RTLD_LAZY)))
{
logger->Error("... | 20.809524 | 74 | 0.574371 | RusJJ |
52a39cedcccca7f1d0ff0a4e31fd14255ce3756f | 9,711 | cpp | C++ | src/laser_object_tracker.cpp | PPokorski/laser_object_tracker | bc967459218b417c7e0e97603464e77f110e25ef | [
"BSD-3-Clause"
] | 14 | 2019-08-05T04:00:58.000Z | 2022-03-24T02:15:23.000Z | src/laser_object_tracker.cpp | PPokorski/laser_object_tracker | bc967459218b417c7e0e97603464e77f110e25ef | [
"BSD-3-Clause"
] | null | null | null | src/laser_object_tracker.cpp | PPokorski/laser_object_tracker | bc967459218b417c7e0e97603464e77f110e25ef | [
"BSD-3-Clause"
] | 5 | 2020-03-11T12:09:45.000Z | 2021-11-09T12:33:32.000Z | /*********************************************************************
*
* BSD 3-Clause License
*
* Copyright (c) 2019, Piotr Pokorski
* 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. R... | 40.974684 | 118 | 0.70518 | PPokorski |
52a9111bc0bba3895ab1d3fd5a379f1ebaf6c6e2 | 1,639 | cpp | C++ | src/Rtmp/Rtmp.cpp | tqcenglish/ZLMediaKit | e192931429ffe34f4a0777f6ee4356ad570f8979 | [
"MIT"
] | 8 | 2021-05-25T15:56:25.000Z | 2021-11-04T02:38:43.000Z | src/Rtmp/Rtmp.cpp | tqcenglish/ZLMediaKit | e192931429ffe34f4a0777f6ee4356ad570f8979 | [
"MIT"
] | null | null | null | src/Rtmp/Rtmp.cpp | tqcenglish/ZLMediaKit | e192931429ffe34f4a0777f6ee4356ad570f8979 | [
"MIT"
] | 1 | 2021-06-29T09:07:51.000Z | 2021-06-29T09:07:51.000Z | /*
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit).
*
* Use of this source code is governed by MIT license that can be found in the
* LICENSE file in the root of the source tree. All contributing project aut... | 35.630435 | 80 | 0.680903 | tqcenglish |
52a99b085beee09c8886ab786a0c4e80f6d18f90 | 2,618 | cpp | C++ | fftplan.cpp | philippemiron/piv-analysis | 48b460ec0453a7ef622455e350d7e0442e7cfab4 | [
"MIT"
] | null | null | null | fftplan.cpp | philippemiron/piv-analysis | 48b460ec0453a7ef622455e350d7e0442e7cfab4 | [
"MIT"
] | 1 | 2016-06-24T20:18:28.000Z | 2016-06-24T20:18:28.000Z | fftplan.cpp | tuxication/piv-analysis | 48b460ec0453a7ef622455e350d7e0442e7cfab4 | [
"MIT"
] | 2 | 2016-06-08T01:05:52.000Z | 2017-04-16T20:51:17.000Z | /*
Calculate the Fast Fourrier Trans of a velocity signal
Copyright (C) 2014 Philippe Miron
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option... | 27.270833 | 75 | 0.670741 | philippemiron |
52ad18f290992d72bc31aa1ad1802e0eecf079fa | 1,923 | hpp | C++ | System.Drawing/include/Switch/System/Drawing/Text/InstalledFontCollection.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 4 | 2021-10-14T01:43:00.000Z | 2022-03-13T02:16:08.000Z | System.Drawing/include/Switch/System/Drawing/Text/InstalledFontCollection.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | null | null | null | System.Drawing/include/Switch/System/Drawing/Text/InstalledFontCollection.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 2 | 2022-03-13T02:16:06.000Z | 2022-03-14T14:32:57.000Z | /// @file
/// @brief Contains Switch::System::Drawing::FontFamily class.
#pragma once
#include "../../../SystemDrawingExport.hpp"
#include "FontCollection.hpp"
/// @cond
namespace Native {
class DrawingApi;
}
/// @endcond
/// @brief The Switch namespace contains all fundamental classes to access Hardware, Os, Syst... | 53.416667 | 274 | 0.737389 | kkptm |
52b526868d6711e9c3140b8166ca109800ecaa7d | 48,943 | cpp | C++ | lib/hip_surgery/xregPAOCuts.cpp | rg2/xreg | c06440d7995f8a441420e311bb7b6524452843d3 | [
"MIT"
] | 30 | 2020-09-29T18:36:13.000Z | 2022-03-28T09:25:13.000Z | lib/hip_surgery/xregPAOCuts.cpp | gaocong13/Orthopedic-Robot-Navigation | bf36f7de116c1c99b86c9ba50f111c3796336af0 | [
"MIT"
] | 3 | 2020-10-09T01:21:27.000Z | 2020-12-10T15:39:44.000Z | lib/hip_surgery/xregPAOCuts.cpp | rg2/xreg | c06440d7995f8a441420e311bb7b6524452843d3 | [
"MIT"
] | 8 | 2021-05-25T05:14:48.000Z | 2022-02-26T12:29:50.000Z | /*
* MIT License
*
* Copyright (c) 2020 Robert Grupp
*
* 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, mod... | 38.446976 | 109 | 0.625217 | rg2 |
52b88f3f886a318c6e3bca1b5f5658f1ec3640ae | 2,671 | cpp | C++ | dataset/test/modification/1504_all/48/transformation_1.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/modification/1504_all/48/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/modification/1504_all/48/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include <iomanip>
#include <iostream>
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ordered_set tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update>
#define ll long l... | 21.198413 | 100 | 0.439536 | Karina5005 |
52bbf3261b1814f46ec02066623d964a6185e0cd | 1,885 | cpp | C++ | 47. Majority Element II/47. Majority Element II.cpp | YaoPengCN/MyLintCodeSolutions | a04c60c2988efa4a55532192ee5126b1d35255f1 | [
"Apache-2.0"
] | null | null | null | 47. Majority Element II/47. Majority Element II.cpp | YaoPengCN/MyLintCodeSolutions | a04c60c2988efa4a55532192ee5126b1d35255f1 | [
"Apache-2.0"
] | null | null | null | 47. Majority Element II/47. Majority Element II.cpp | YaoPengCN/MyLintCodeSolutions | a04c60c2988efa4a55532192ee5126b1d35255f1 | [
"Apache-2.0"
] | null | null | null | /**
* 47. Majority Element II
*
* Difficulty
* Medium
*
* Description
* Given an array of integers, the majority number is the number that occurs more than 1/3 of the size of the array.
* Find it.
*
* Clarification
* There is only one majority number in the array.
*
* Example
* Example 1
* Input: [9... | 19.635417 | 116 | 0.439788 | YaoPengCN |
1ebf82a5eb5d564f3cff5c36754686c070ece65c | 3,221 | cpp | C++ | lib/group.cpp | ksejdak/zone-allocator | 870852e55c136f75e3a1182f1a57554e1b1bf374 | [
"BSD-2-Clause"
] | null | null | null | lib/group.cpp | ksejdak/zone-allocator | 870852e55c136f75e3a1182f1a57554e1b1bf374 | [
"BSD-2-Clause"
] | 10 | 2017-12-07T03:14:43.000Z | 2018-03-12T08:25:17.000Z | lib/group.cpp | ksejdak/liballocator | ab099d6f381b3ede9969a52477924d6707646146 | [
"BSD-2-Clause"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////
///
/// @file
/// @author Kuba Sejdak
/// @copyright BSD 2-Clause License
///
/// Copyright (c) 2017-2022, Kuba Sejdak <kuba.sejdak@gmail.com>
/// All rights reserved.
///
/// Redistribution and use in source and binary forms, with or... | 30.102804 | 85 | 0.669357 | ksejdak |
1ec046a4e04ceaa99bcd7b84db97ac0f0a6da329 | 4,029 | cpp | C++ | src/ch2_linked_list/11_reverse_nodes_in_k_group.cpp | younglionwell/programmer-code-interview-guide | 1baf499871d14eedf1eed1608da514800d57a3f9 | [
"MIT"
] | null | null | null | src/ch2_linked_list/11_reverse_nodes_in_k_group.cpp | younglionwell/programmer-code-interview-guide | 1baf499871d14eedf1eed1608da514800d57a3f9 | [
"MIT"
] | null | null | null | src/ch2_linked_list/11_reverse_nodes_in_k_group.cpp | younglionwell/programmer-code-interview-guide | 1baf499871d14eedf1eed1608da514800d57a3f9 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright 2019 yanglingwell@sina.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 re... | 28.574468 | 91 | 0.578804 | younglionwell |
1ec0af0e0fd908fb7b975059af0cd027f99f6aae | 10,217 | cpp | C++ | src/test.cpp | niedong/stl_rb | 63034ac2a1aac3fe855235031f174a4198732c4f | [
"MIT"
] | 1 | 2020-12-11T13:17:36.000Z | 2020-12-11T13:17:36.000Z | src/test.cpp | niedong/stl_rbtree | 63034ac2a1aac3fe855235031f174a4198732c4f | [
"MIT"
] | null | null | null | src/test.cpp | niedong/stl_rbtree | 63034ac2a1aac3fe855235031f174a4198732c4f | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 niedong
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | 23.011261 | 91 | 0.512969 | niedong |
1ec922515991ab995befd3030e34a061a4a93f07 | 1,130 | cpp | C++ | source/toy/file/Compression.cpp | ToyAuthor/ToyBoxNote | accc792f5ab2fa8911dc1a70ffbfc6dfd02db9a6 | [
"Unlicense"
] | null | null | null | source/toy/file/Compression.cpp | ToyAuthor/ToyBoxNote | accc792f5ab2fa8911dc1a70ffbfc6dfd02db9a6 | [
"Unlicense"
] | null | null | null | source/toy/file/Compression.cpp | ToyAuthor/ToyBoxNote | accc792f5ab2fa8911dc1a70ffbfc6dfd02db9a6 | [
"Unlicense"
] | null | null | null | #include "lz4.h"
#include "toy/file/Compression.hpp"
namespace toy{
namespace file{
int CompressExt( toy::file::CompressionStream* stream,
const char* inputBuffer,
char* outputBuffer,
int inputSize,
int maxOutputSize )
{
return... | 23.541667 | 83 | 0.538938 | ToyAuthor |
1ed1c74e892ae1fd35fcffda4f757c0a0c7f8b52 | 3,951 | hpp | C++ | src/lib/server/then_operator.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/lib/server/then_operator.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/lib/server/then_operator.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #pragma once
#include <boost/thread/future.hpp>
// This code is inspired by the code examples of user Yakk on StackExchange
// https://codereview.stackexchange.com/q/23179
// https://stackoverflow.com/a/32320053
// It helps us to avoid boilerplate code in three ways:
// 1. It automatically 'get's the incoming future... | 35.594595 | 112 | 0.653252 | IanJamesMcKay |
1ed2d48bf4cec8042c4769237ac737e4ffaef771 | 2,115 | hpp | C++ | modules/core/sdk/include/nt2/sdk/meta/concrete.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/sdk/include/nt2/sdk/meta/concrete.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/sdk/include/nt2/sdk/meta/concrete.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 28.581081 | 80 | 0.551773 | psiha |
1ed30a1d33bf4adc0244b0790444b7b37e1900d1 | 15,169 | cpp | C++ | src/masternode/masternode-sync.cpp | BlockMechanic/crown | e6b1873ca79c484a3621e503eb8ce464f85dd2c7 | [
"MIT"
] | null | null | null | src/masternode/masternode-sync.cpp | BlockMechanic/crown | e6b1873ca79c484a3621e503eb8ce464f85dd2c7 | [
"MIT"
] | null | null | null | src/masternode/masternode-sync.cpp | BlockMechanic/crown | e6b1873ca79c484a3621e503eb8ce464f85dd2c7 | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2018 The Crown developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <addrman.h>
#include <crown/spork.h>
#include <masternode/activemasternode.h>
#include <masternode/masternode-budget.h>... | 35.52459 | 248 | 0.625091 | BlockMechanic |
1ed41d10d7d03802566fad70162ceb45cb7adf90 | 1,438 | hpp | C++ | framework/rendering/view.hpp | steppobeck/rgbd-recon | 171a8336c8e3ba52a1b187b73544338fdd3c9285 | [
"MIT"
] | 18 | 2016-09-03T05:12:25.000Z | 2022-02-23T15:52:33.000Z | framework/rendering/view.hpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 1 | 2016-05-04T09:06:29.000Z | 2016-05-04T09:06:29.000Z | framework/rendering/view.hpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 7 | 2016-04-20T13:58:50.000Z | 2018-07-09T15:47:26.000Z | #ifndef VIEW_HPP
#define VIEW_HPP
#include "Viewport.h"
#include <globjects/base/ref_ptr.h>
#include <glm/gtc/type_precision.hpp>
#include <vector>
namespace globjects {
class Framebuffer;
class Texture;
}
namespace kinect {
class View {
public:
View(unsigned width, unsigned height, bool depth = true)... | 26.145455 | 96 | 0.732962 | steppobeck |
1ede345a6a888587b671de9abd8bccb2d01519ad | 27,651 | cpp | C++ | libcat/src/cat_net_http.cpp | shadow-paw/cat | 975749c9d716687f1bd74c80d474fed6065768de | [
"MIT"
] | 5 | 2017-11-20T09:56:48.000Z | 2019-01-26T14:44:14.000Z | libcat/src/cat_net_http.cpp | shadow-paw/osal | 975749c9d716687f1bd74c80d474fed6065768de | [
"MIT"
] | 3 | 2017-12-17T11:23:29.000Z | 2020-07-01T04:14:24.000Z | libcat/src/cat_net_http.cpp | shadow-paw/cat | 975749c9d716687f1bd74c80d474fed6065768de | [
"MIT"
] | 3 | 2017-11-18T18:18:19.000Z | 2018-12-27T08:41:45.000Z | #include "cat_net_http.h"
#include <new>
#include <algorithm>
#include "cat_util_string.h"
#include "cat_time_service.h"
#if defined(PLATFORM_MAC)
#import <Cocoa/Cocoa.h>
#elif defined(PLATFORM_IOS)
#import <UIKit/UIKit.h>
#endif
using namespace cat;
// ------------------------------------------------------------... | 45.107667 | 209 | 0.589924 | shadow-paw |
1ede7311e10972b10a1433e7e6968ea74884507c | 11,458 | cpp | C++ | test/sema/overload_resolution_test.cpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 51 | 2019-05-06T01:33:34.000Z | 2021-11-17T11:44:54.000Z | test/sema/overload_resolution_test.cpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 191 | 2019-05-06T18:31:24.000Z | 2020-06-19T06:48:06.000Z | test/sema/overload_resolution_test.cpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 3 | 2019-10-12T21:03:29.000Z | 2020-06-19T06:22:25.000Z | #include "sema/overload_resolution.hpp"
#include "errors/errors_observer.hpp"
#include "sema/sema_context_impl.hpp"
#include "sema/sema_nodes.hpp"
#include "test/ast/mock/ast_node_mock.hpp"
#include "test/common/tokens.hpp"
#include "test/errors_observer_mock/errors_observer_mock.hpp"
#include "test/sema/mock/expres... | 35.80625 | 79 | 0.749782 | stryku |
1edfc7286670b8c1da822294416c070d44e82995 | 699 | hpp | C++ | include/opttmp/memory_layout/util.hpp | DavidPfander-UniStuttgart/AutoTuneTMP | f5fb836778b04c2ab0fbcc4d36c466e577e96e65 | [
"BSD-3-Clause"
] | 5 | 2019-11-06T15:02:41.000Z | 2022-01-14T20:25:50.000Z | include/opttmp/memory_layout/util.hpp | DavidPfander-UniStuttgart/AutoTuneTMP | f5fb836778b04c2ab0fbcc4d36c466e577e96e65 | [
"BSD-3-Clause"
] | 3 | 2018-01-25T21:25:22.000Z | 2022-03-14T17:35:27.000Z | include/opttmp/memory_layout/util.hpp | DavidPfander-UniStuttgart/AutoTuneTMP | f5fb836778b04c2ab0fbcc4d36c466e577e96e65 | [
"BSD-3-Clause"
] | 1 | 2020-07-15T11:05:43.000Z | 2020-07-15T11:05:43.000Z | #pragma once
namespace memory_layout {
template <size_t dim>
size_t flat_index(const size_t (&index)[dim], const size_t (&strides)[dim]) {
size_t flat_index = 0;
size_t cur_stride = 1;
for (size_t d = 0; d < dim; d++) {
flat_index += index[(dim - 1) - d] * cur_stride;
cur_stride *= strides[(dim - 1) - d]... | 25.888889 | 77 | 0.615165 | DavidPfander-UniStuttgart |
1ee0e5ff1b48bb53b706668909baa2766563b1a3 | 1,914 | cpp | C++ | src/Core/tests/TestBehaviour.cpp | Megaxela/HGEngineReloaded | 62d319308c2d8a62f6854721c31afc4981aa13df | [
"MIT"
] | 2 | 2021-02-26T05:25:48.000Z | 2021-09-16T22:30:41.000Z | src/Core/tests/TestBehaviour.cpp | Megaxela/HGEngineReloaded | 62d319308c2d8a62f6854721c31afc4981aa13df | [
"MIT"
] | 1 | 2019-10-19T10:36:43.000Z | 2019-10-19T10:36:43.000Z | src/Core/tests/TestBehaviour.cpp | Megaxela/HGEngineReloaded | 62d319308c2d8a62f6854721c31afc4981aa13df | [
"MIT"
] | 2 | 2019-10-22T18:56:59.000Z | 2020-03-12T04:38:31.000Z | #include <HG/Core/Behaviour.hpp>
#include <gtest/gtest.h>
class BlankBehaviour : public HG::Core::Behaviour
{
};
TEST(Core, BehaviourEmpty)
{
BlankBehaviour blankBehaviour;
ASSERT_EQ(blankBehaviour.type(), HG::Core::Behaviour::Type::Logic);
ASSERT_EQ(blankBehaviour.isEnabled(), true);
ASSERT_EQ(blank... | 31.377049 | 74 | 0.722571 | Megaxela |
1ee3b48f1efcc33faa871d06be934dc26ac9afd8 | 11,543 | cpp | C++ | packages/CLPBN/horus/CountingBp.cpp | denys-duchier/yap-6.3 | 97163fa150ba570e4ba2881646363e9877a07bcb | [
"Artistic-1.0-Perl",
"ClArtistic"
] | 2 | 2015-11-01T07:38:31.000Z | 2016-03-30T18:05:28.000Z | packages/CLPBN/horus/CountingBp.cpp | denys-duchier/yap-6.3 | 97163fa150ba570e4ba2881646363e9877a07bcb | [
"Artistic-1.0-Perl",
"ClArtistic"
] | null | null | null | packages/CLPBN/horus/CountingBp.cpp | denys-duchier/yap-6.3 | 97163fa150ba570e4ba2881646363e9877a07bcb | [
"Artistic-1.0-Perl",
"ClArtistic"
] | null | null | null | #include "CountingBp.h"
#include "WeightedBp.h"
bool CountingBp::checkForIdenticalFactors = true;
CountingBp::CountingBp (const FactorGraph& fg)
: Solver (fg), freeColor_(0)
{
findIdenticalFactors();
setInitialColors();
createGroups();
compressedFg_ = getCompressedFactorGraph();
solver_ = new Weighted... | 27.288416 | 75 | 0.609547 | denys-duchier |
1eec0da766d6768e700119e02ee9ef0c30835899 | 3,132 | hpp | C++ | external/pss/include/rantala/tools/vector_block.hpp | kurpicz/dsss | ac50a22b1beec1d8613a6cd868798426352305c8 | [
"BSD-2-Clause"
] | 3 | 2018-10-24T22:15:17.000Z | 2019-09-21T22:56:05.000Z | external/pss/include/rantala/tools/vector_block.hpp | kurpicz/dsss | ac50a22b1beec1d8613a6cd868798426352305c8 | [
"BSD-2-Clause"
] | null | null | null | external/pss/include/rantala/tools/vector_block.hpp | kurpicz/dsss | ac50a22b1beec1d8613a6cd868798426352305c8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2008 by Tommi Rantala <tt.rantala@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy... | 30.407767 | 79 | 0.711047 | kurpicz |
1eee4cc4dd0ff89ddf95c5883424ed77050e3976 | 8,046 | cpp | C++ | src/drivers/gotya.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 33 | 2015-08-10T11:13:47.000Z | 2021-08-30T10:00:46.000Z | src/drivers/gotya.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 13 | 2015-08-25T03:53:08.000Z | 2022-03-30T18:02:35.000Z | src/drivers/gotya.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 40 | 2015-08-25T05:09:21.000Z | 2022-02-08T05:02:30.000Z | #include "../vidhrdw/gotya.cpp"
#include "../sndhrdw/gotya.cpp"
/****************************************************************************
Got-Ya driver by Zsolt Vasvari
TODO: Emulated sound
Hitachi HD38880BP
HD38882PA06
I think HD38880 is a CPU/MCU, because the game just sends it a sound co... | 31.552941 | 117 | 0.631867 | gameblabla |
1ef171b7eb6cc685006131ad57d5c1fbfc352ec5 | 910 | cpp | C++ | _posts/ToDo/ADrawer/D5_max_mult/D5_max_mult.cpp | coolwindjo/coolwind.github.io | 2add3904fc29c978aace8637c0adc03dba7d5ce3 | [
"MIT"
] | null | null | null | _posts/ToDo/ADrawer/D5_max_mult/D5_max_mult.cpp | coolwindjo/coolwind.github.io | 2add3904fc29c978aace8637c0adc03dba7d5ce3 | [
"MIT"
] | null | null | null | _posts/ToDo/ADrawer/D5_max_mult/D5_max_mult.cpp | coolwindjo/coolwind.github.io | 2add3904fc29c978aace8637c0adc03dba7d5ce3 | [
"MIT"
] | null | null | null | #include <stdio.h>
int N;
double d[10000+10];
double sol;
int main(void)
{
int i;
// 입력받는 부분
scanf("%d", &N);
for(i=0; i<N; i++)
{
scanf("%lf", &d[i]);
}
// 여기서부터 작성
double s = 1;
for(i=0; i<N; i++)
{
s *= d... | 16.545455 | 35 | 0.23956 | coolwindjo |
1ef8801a994498b9f9e20bde0d12133bd05e7b8c | 8,099 | cpp | C++ | awapi/awapi_awiv_adapter/src/awapi_awiv_adapter_core.cpp | sgermanserrano/Pilot.Auto | 0f3dee10dd4c22fddbee44662bd520e5a6d87ef7 | [
"Apache-2.0"
] | 1 | 2020-12-18T01:32:41.000Z | 2020-12-18T01:32:41.000Z | awapi/awapi_awiv_adapter/src/awapi_awiv_adapter_core.cpp | sgermanserrano/Pilot.Auto | 0f3dee10dd4c22fddbee44662bd520e5a6d87ef7 | [
"Apache-2.0"
] | 1 | 2020-10-17T20:10:59.000Z | 2020-10-17T20:10:59.000Z | awapi/awapi_awiv_adapter/src/awapi_awiv_adapter_core.cpp | sgermanserrano/Pilot.Auto | 0f3dee10dd4c22fddbee44662bd520e5a6d87ef7 | [
"Apache-2.0"
] | 1 | 2021-09-07T16:02:48.000Z | 2021-09-07T16:02:48.000Z | /*
* Copyright 2020 Tier IV, 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
*
* Unless required by appli... | 36.318386 | 100 | 0.784665 | sgermanserrano |
1ef9b4957e32b60f27e4f8fb42b0ed1a1330e9fc | 8,799 | cpp | C++ | inferno/src/inferno/render/buffer.cpp | Riyyi/inferno | 50f363df6586108dc5488b45bdd57fa0e72b7487 | [
"MIT"
] | null | null | null | inferno/src/inferno/render/buffer.cpp | Riyyi/inferno | 50f363df6586108dc5488b45bdd57fa0e72b7487 | [
"MIT"
] | null | null | null | inferno/src/inferno/render/buffer.cpp | Riyyi/inferno | 50f363df6586108dc5488b45bdd57fa0e72b7487 | [
"MIT"
] | null | null | null | #include "glad/glad.h"
#include "inferno/assert.h"
#include "inferno/core.h"
#include "inferno/io/log.h"
#include "inferno/render/buffer.h"
namespace Inferno {
// -----------------------------------------
BufferElement::BufferElement(BufferElementType type, std::string name, bool normalized) :
m_type(type),
... | 29.428094 | 90 | 0.682123 | Riyyi |
48058c8111a59724785ae13043996226808606ec | 11,838 | cc | C++ | label-image.cc | corehacker/ch-tf-label-image-client | d4354db67ef5689bda67ec0489c0847ed4bd88eb | [
"MIT"
] | null | null | null | label-image.cc | corehacker/ch-tf-label-image-client | d4354db67ef5689bda67ec0489c0847ed4bd88eb | [
"MIT"
] | null | null | null | label-image.cc | corehacker/ch-tf-label-image-client | d4354db67ef5689bda67ec0489c0847ed4bd88eb | [
"MIT"
] | null | null | null |
#include "label-image.h"
LabelImage::LabelImage() {
root = "";
graph =
"tensorflow/examples/ch-tf-label-image-client/data/inception_v3_2016_08_28_frozen.pb";
labels =
"tensorflow/examples/ch-tf-label-image-client/data/imagenet_slim_labels.txt";
input_width = 299;
input_height = 299;
input_mea... | 38.435065 | 92 | 0.674776 | corehacker |
4808dd7114c57e70e96505bb28389a01ab27efe9 | 1,834 | cpp | C++ | bemobile.cpp | ytmytm/beos-bemobile | 5a0dc2b5f06abdd260f8c335f7ff1bb9c1e68586 | [
"MIT"
] | 1 | 2021-05-12T19:27:17.000Z | 2021-05-12T19:27:17.000Z | bemobile.cpp | ytmytm/beos-bemobile | 5a0dc2b5f06abdd260f8c335f7ff1bb9c1e68586 | [
"MIT"
] | 3 | 2018-11-07T19:11:54.000Z | 2018-11-25T10:56:32.000Z | bemobile.cpp | ytmytm/beos-bemobile | 5a0dc2b5f06abdd260f8c335f7ff1bb9c1e68586 | [
"MIT"
] | 3 | 2015-03-12T15:39:23.000Z | 2018-11-06T15:11:44.000Z |
#include <Alert.h>
#include <stdio.h>
#include "bemobile.h"
#include "dialabout.h"
#include "globals.h"
#include "gsm.h"
#include "initwindow.h"
#include "mainwindow.h"
BeMobileApp::BeMobileApp() : BApplication(APP_SIGNATURE) {
// startup stuff
gsm = new GSM();
startWindow = new initWindow(APP_NAME);
if (startW... | 25.830986 | 180 | 0.69084 | ytmytm |
4810fd2d64a144fdc99df5492a3403356852bc85 | 1,154 | cpp | C++ | assembly/PrintSimplePaths.cpp | mchaisso/blasr | 044b97e6e581a936d93e8226b25ac44aebf3c9da | [
"BSD-3-Clause"
] | 17 | 2015-05-05T12:41:15.000Z | 2021-03-24T05:50:58.000Z | assembly/PrintSimplePaths.cpp | EichlerLab/blasr | c9bced1fedfb026b4992e2b49e4ffa0f107819ea | [
"BSD-3-Clause"
] | 6 | 2015-07-07T14:01:00.000Z | 2021-04-17T07:53:12.000Z | assembly/PrintSimplePaths.cpp | EichlerLab/blasr | c9bced1fedfb026b4992e2b49e4ffa0f107819ea | [
"BSD-3-Clause"
] | 10 | 2015-01-22T19:27:40.000Z | 2022-02-17T06:43:01.000Z | #include "RepeatGraph.h"
#include "FASTAReader.h"
#include "FASTASequence.h"
#include <string>
#include <vector>
using namespace std;
int main(int argc, char* argv[]) {
string rgFileName, vertexSeqFileName, pathFileName;
ofstream pathFileOut
CrucialOpen(pathFileName,pathFileOut, std::ios::out);
FASTAReader ve... | 19.896552 | 77 | 0.724437 | mchaisso |
4814b0cffda47d971fa6d03cf2ac1443fae3c28e | 5,630 | cpp | C++ | dsound/IDirectSound3DBuffer8.cpp | elishacloud/dxwrapper | 6be80570acfcfd2b6f8e0aec1ed250dd96f5be5c | [
"Zlib"
] | 634 | 2017-02-09T01:32:58.000Z | 2022-03-26T18:14:28.000Z | dsound/IDirectSound3DBuffer8.cpp | elishacloud/dxwrapper | 6be80570acfcfd2b6f8e0aec1ed250dd96f5be5c | [
"Zlib"
] | 128 | 2017-03-02T13:30:12.000Z | 2022-03-11T07:08:24.000Z | dsound/IDirectSound3DBuffer8.cpp | elishacloud/dxwrapper | 6be80570acfcfd2b6f8e0aec1ed250dd96f5be5c | [
"Zlib"
] | 58 | 2017-05-16T14:42:35.000Z | 2022-02-21T20:32:02.000Z | /**
* Copyright (C) 2021 Elisha Riedlinger
*
* This software is provided 'as-is', without any express or implied warranty. In no event will the
* authors be held liable for any damages arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose, including co... | 29.020619 | 115 | 0.7254 | elishacloud |
481634da70e8d310f5012f23d1ab80dd02e0d1ac | 5,527 | hh | C++ | src/mem/ruby/network/garnet2.0/InputUnit.hh | farabimahmud/smart | d968ed5123363e9c05512b355c5d67360902d90f | [
"BSD-3-Clause"
] | null | null | null | src/mem/ruby/network/garnet2.0/InputUnit.hh | farabimahmud/smart | d968ed5123363e9c05512b355c5d67360902d90f | [
"BSD-3-Clause"
] | null | null | null | src/mem/ruby/network/garnet2.0/InputUnit.hh | farabimahmud/smart | d968ed5123363e9c05512b355c5d67360902d90f | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2008 Princeton University
* Copyright (c) 2016 Georgia Institute of Technology
* 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 retai... | 26.830097 | 76 | 0.686086 | farabimahmud |
481edfdf1b7344a77651fb3075261e4296018eb4 | 695 | cpp | C++ | src/top.chenqwwq/codeforces/contest/_790/E.cpp | chenqwwq/_leetcode | a8055c53c9a68cedb1b57a56f98e83709448e4cb | [
"Apache-2.0"
] | null | null | null | src/top.chenqwwq/codeforces/contest/_790/E.cpp | chenqwwq/_leetcode | a8055c53c9a68cedb1b57a56f98e83709448e4cb | [
"Apache-2.0"
] | null | null | null | src/top.chenqwwq/codeforces/contest/_790/E.cpp | chenqwwq/_leetcode | a8055c53c9a68cedb1b57a56f98e83709448e4cb | [
"Apache-2.0"
] | null | null | null | //
// Created by 陈炳鑫 on 2022/5/10.
//
#include <iostream>
#include <algorithm>
using namespace std;
const int mann = 1.5e5;
long long nums[mann];
int main() {
int n, m, q, qa;
cin >> n;
while (n--) {
cin >> m >> q;
for (int i = 0; i < m; ++i) {
cin >> nums[i];
}
... | 18.783784 | 60 | 0.38705 | chenqwwq |
4821ba0fe725f0e4fdde2bc65836e93762062186 | 1,038 | cc | C++ | third_party/drogon/lib/src/HttpViewData.cc | zh7314/drogon_test | 0411ef34d419630a3f20df8bd6e5baf75651ddfe | [
"BSD-3-Clause"
] | 2 | 2022-02-04T18:31:33.000Z | 2022-02-15T01:45:51.000Z | third_party/drogon/lib/src/HttpViewData.cc | zh7314/drogon_test | 0411ef34d419630a3f20df8bd6e5baf75651ddfe | [
"BSD-3-Clause"
] | 1 | 2021-11-03T14:24:51.000Z | 2021-11-03T14:24:51.000Z | third_party/drogon/lib/src/HttpViewData.cc | zh7314/drogon_test | 0411ef34d419630a3f20df8bd6e5baf75651ddfe | [
"BSD-3-Clause"
] | null | null | null | /**
*
* HttpViewData.cc
* An Tao
*
* Copyright 2018, An Tao. All rights reserved.
* https://github.com/an-tao/drogon
* Use of this source code is governed by a MIT license
* that can be found in the License file.
*
* Drogon
*
*/
#include <drogon/HttpViewData.h>
using namespace drog... | 22.085106 | 72 | 0.436416 | zh7314 |
4824a3440caefd26784cf91df9e4e99bb4c6cbb6 | 1,474 | cpp | C++ | practicas/lab_9_greedyAlgorithms/MaxNonoverlappingSegments/maxNonoverlappingSegments.cpp | JackMerma/Adagrupob | 240b4155a68cf0672299d93f8dc0b61abba2e5e4 | [
"BSD-3-Clause"
] | null | null | null | practicas/lab_9_greedyAlgorithms/MaxNonoverlappingSegments/maxNonoverlappingSegments.cpp | JackMerma/Adagrupob | 240b4155a68cf0672299d93f8dc0b61abba2e5e4 | [
"BSD-3-Clause"
] | null | null | null | practicas/lab_9_greedyAlgorithms/MaxNonoverlappingSegments/maxNonoverlappingSegments.cpp | JackMerma/Adagrupob | 240b4155a68cf0672299d93f8dc0b61abba2e5e4 | [
"BSD-3-Clause"
] | null | null | null | /**
* @author : Jackson Fernando Merma Portocarrero (jmermap@unsa.edu.pe)
* @filename : maxNoneoverlappingSegments
*/
/**
* Explanation:
* Para tener la longitud maxima de rectas NO superpuestas,
* simplemente, se debe cumplir que el limite derecho de la anterior
* no deba estar dentro del... | 32.755556 | 74 | 0.619403 | JackMerma |
4826cc2c80b14f3b84f1d81d680eed986c2b8f05 | 622 | cpp | C++ | user_cost_search/user_cost_search/search_common.cpp | adam-rumpf/social-transit-example | a748dd04d9062102a136b8b94db126114cd52241 | [
"MIT"
] | null | null | null | user_cost_search/user_cost_search/search_common.cpp | adam-rumpf/social-transit-example | a748dd04d9062102a136b8b94db126114cd52241 | [
"MIT"
] | null | null | null | user_cost_search/user_cost_search/search_common.cpp | adam-rumpf/social-transit-example | a748dd04d9062102a136b8b94db126114cd52241 | [
"MIT"
] | null | null | null | /// Functions common to all search and logger classes.
#include "search.hpp"
/// Converts a solution vector to a string by simply concatenating its digits separated by underscores.
string vec2str(const vector<int> &sol)
{
string out = "";
for (int i = 0; i < sol.size(); i++)
out += to_string(sol[i]) + DELIMITER;... | 21.448276 | 103 | 0.710611 | adam-rumpf |
48291e0a3f909bbe7344684002936769245c0b12 | 940 | cpp | C++ | test/algorithms/dp/test_collect_max_gold_from_grid.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | test/algorithms/dp/test_collect_max_gold_from_grid.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | test/algorithms/dp/test_collect_max_gold_from_grid.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #include <boost/test/unit_test.hpp>
#include "algorithms/dp/collect_max_gold_from_grid.hpp"
BOOST_AUTO_TEST_SUITE(TestCollectMaxGold)
BOOST_AUTO_TEST_CASE(test_input) {
{
const int expected = 24;
const std::vector<std::vector<int>> grid = {
{0, 6, 0},
... | 26.857143 | 68 | 0.485106 | iamantony |
482a2aa4292f890cd7bbcf0eeaa707d0124f3837 | 1,482 | hpp | C++ | include/primesum.hpp | kimwalisch/primesum | c73b8afba311413454a25d45482efaea025ae3a0 | [
"BSD-2-Clause"
] | 31 | 2016-05-16T10:43:48.000Z | 2021-12-31T23:20:46.000Z | include/primesum.hpp | kimwalisch/primesum | c73b8afba311413454a25d45482efaea025ae3a0 | [
"BSD-2-Clause"
] | 2 | 2016-06-07T08:41:55.000Z | 2017-11-17T13:22:20.000Z | include/primesum.hpp | kimwalisch/primesum | c73b8afba311413454a25d45482efaea025ae3a0 | [
"BSD-2-Clause"
] | 2 | 2019-10-31T02:11:39.000Z | 2021-06-29T16:37:56.000Z | ///
/// @file primesum.hpp
///
/// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License.
///
#ifndef PRIMESUM_HPP
#define PRIMESUM_HPP
#include <stdexcept>
#include <string>
#include <stdint.h>
#define PRIMESUM_VERSION "1.7"
#define PRIMESUM_VERSION_MAJOR 1
... | 24.295082 | 78 | 0.692308 | kimwalisch |
482ae9209b3929e56ab2ec027233ed4b44a4f80a | 7,297 | hpp | C++ | paradice/include/paradice/character.hpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 9 | 2015-12-16T07:00:39.000Z | 2021-05-05T13:29:28.000Z | paradice/include/paradice/character.hpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 43 | 2015-07-18T11:13:15.000Z | 2017-07-15T13:18:43.000Z | paradice/include/paradice/character.hpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 3 | 2015-10-09T13:33:35.000Z | 2016-07-11T02:23:08.000Z | // ==========================================================================
// Paradice Character
//
// Copyright (C) 2011 Matthew Chaplain, All Rights Reserved.
//
// Permission to reproduce, distribute, perform, display, and to prepare
// derivitive works from this file under the following conditions:
//
//... | 42.179191 | 78 | 0.417432 | KazDragon |
483198133f74641c22e963aa86a9cf0fdcc5a4e9 | 407 | cpp | C++ | ARRAYS/Easy/Best Time to Buy and Sell Stock/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | 3 | 2021-08-31T11:02:28.000Z | 2022-01-17T08:07:00.000Z | ARRAYS/Easy/Best Time to Buy and Sell Stock/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | null | null | null | ARRAYS/Easy/Best Time to Buy and Sell Stock/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | null | null | null | /*
PROBLEM LINK:- https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
*/
class Solution {
public:
int maxProfit(vector<int>& prices) {
int profit = 0, x = INT_MAX;
for(int i = 0; i < prices.size(); i++)
{
x = min(x, prices[i]);
if(x < prices[i])
... | 22.611111 | 77 | 0.493857 | HassanRahim26 |
483462c505a59f2e512b29e96a1097428acb8523 | 3,101 | cpp | C++ | utl/Texgen/Source/LayerEditForm.cpp | daher-alfawares/xr.engine | 0b512e15664708d7301ae5fdf6d712f67c142f41 | [
"Apache-2.0"
] | 2 | 2017-02-22T07:39:05.000Z | 2018-06-12T07:13:14.000Z | utl/Texgen/Source/LayerEditForm.cpp | daher-alfawares/xr.engine | 0b512e15664708d7301ae5fdf6d712f67c142f41 | [
"Apache-2.0"
] | null | null | null | utl/Texgen/Source/LayerEditForm.cpp | daher-alfawares/xr.engine | 0b512e15664708d7301ae5fdf6d712f67c142f41 | [
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "LayerEditForm.h"
#include "Unit1.h"
#include <sysutils.hpp>
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TTexLay... | 29.533333 | 77 | 0.581748 | daher-alfawares |
4837ce8db121adbe96ba8567c5db22521c2f13c9 | 3,693 | cpp | C++ | src/SPDepo/user_plot_graph.cpp | epmmko/SP-Depo-Single-Phase-Flow-V0.9 | dafc7ada225321fafa7382d118149707c84b6968 | [
"Unlicense"
] | 1 | 2021-08-25T09:35:52.000Z | 2021-08-25T09:35:52.000Z | src/SPDepo/user_plot_graph.cpp | epmmko/SP-Depo-Single-Phase-Flow-V0.9 | dafc7ada225321fafa7382d118149707c84b6968 | [
"Unlicense"
] | null | null | null | src/SPDepo/user_plot_graph.cpp | epmmko/SP-Depo-Single-Phase-Flow-V0.9 | dafc7ada225321fafa7382d118149707c84b6968 | [
"Unlicense"
] | 1 | 2019-06-07T19:45:03.000Z | 2019-06-07T19:45:03.000Z | #include <Windows.h>
#include "user_python_script.h"
#include <sstream>
#include <string>
#include <iomanip>
namespace spdepo {
namespace usr {
void CallPythonScript(LPCWSTR param) {
LPCWSTR operation = L"open";
LPCWSTR name = L"python";
ShellExecute(nullptr, operation, name, param, NULL, SW_HID... | 34.194444 | 70 | 0.606282 | epmmko |
483b33f01f71009f5fd57d5b9c71719d4bd98e74 | 5,980 | cpp | C++ | rssavers-0.2/src/Hyperspace/tunnel.cpp | NickPepper/MacScreensavers | 088625b06b123adcb61c7e9e1adc4415dda66a59 | [
"MIT"
] | 3 | 2017-08-13T14:47:57.000Z | 2020-03-02T06:48:29.000Z | rssavers-0.2/src/Hyperspace/tunnel.cpp | NickPepper/MacScreensavers | 088625b06b123adcb61c7e9e1adc4415dda66a59 | [
"MIT"
] | 1 | 2018-09-19T14:14:54.000Z | 2018-09-26T22:35:03.000Z | rssavers-0.2/src/Hyperspace/tunnel.cpp | NickPepper/MacScreensavers | 088625b06b123adcb61c7e9e1adc4415dda66a59 | [
"MIT"
] | 1 | 2018-09-19T14:13:55.000Z | 2018-09-19T14:13:55.000Z | /*
* Copyright (C) 2005-2010 Terence M. Welsh
*
* This file is part of Hyperspace.
*
* Hyperspace is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation; either version 2 of the License,
* or (at your option)... | 27.943925 | 93 | 0.593478 | NickPepper |
c618bb2ad451ac93a9aa6a56c37c748e53c9082b | 863 | cpp | C++ | Practice8/Task6.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | Practice8/Task6.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | Practice8/Task6.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int multiplying1(int, int, int);
void multiplying2(int, int, int &);
void multiplying3(int, int, int *);
int main(){
int a = 2, b = 5, c = 0;
cout << "a = " << a << "\t" << &a << endl;
cout << "b = " << b << "\t" << &b << endl;
cout << "c = " << c << "\t" <<... | 17.612245 | 46 | 0.449594 | zuza-rzemieniewska |
c61a125dbefd894e2017663cf4b27a3f90b46d32 | 1,860 | cpp | C++ | project-2/src/main.cpp | JRBarreraM/CI4321_COMPUTACION_GRAFICA_I | 8d5aaa536fdfe0e2e678bc9b7abb613e33057b07 | [
"MIT"
] | 1 | 2022-02-08T10:39:40.000Z | 2022-02-08T10:39:40.000Z | project-2/src/main.cpp | JRBarreraM/CI4321_COMPUTACION_GRAFICA_I | 8d5aaa536fdfe0e2e678bc9b7abb613e33057b07 | [
"MIT"
] | null | null | null | project-2/src/main.cpp | JRBarreraM/CI4321_COMPUTACION_GRAFICA_I | 8d5aaa536fdfe0e2e678bc9b7abb613e33057b07 | [
"MIT"
] | null | null | null | #include "CS248/CS248.h"
#include "CS248/viewer.h"
#define TINYEXR_IMPLEMENTATION
#include "CS248/tinyexr.h"
#include "application.h"
#include <iostream>
#ifndef gid_t
typedef unsigned int gid_t; // XXX Needed on some platforms, since gid_t is
// used in unistd.h but not always defined... | 24.8 | 95 | 0.620968 | JRBarreraM |
c621e9e7afc7a45bccc77cf321955a3e1f5e26ad | 644 | cpp | C++ | Code/1961.cpp | sunruisjtu2020/POJ_Submits | 786161a5bc297ef7a2457951341e45ea31b6a481 | [
"MIT"
] | 1 | 2022-03-29T11:38:18.000Z | 2022-03-29T11:38:18.000Z | Code/1961.cpp | sunruisjtu2020/POJ_Submits | 786161a5bc297ef7a2457951341e45ea31b6a481 | [
"MIT"
] | null | null | null | Code/1961.cpp | sunruisjtu2020/POJ_Submits | 786161a5bc297ef7a2457951341e45ea31b6a481 | [
"MIT"
] | null | null | null | /*
* Problem 1961 - Period
* http://poj.org/problem?id=1961
* Date 3/30/2022
* Accepted
* String - KMP Substring Search
*/
#include <cstdio>
#include <cstring>
const int MAXS = 1 << 20;
char s[MAXS];
int nxt[MAXS], l, t;
int main() {
while(scanf("%d", &l), l) {
printf("Test case #%d\n", ++t);
scanf("%s", s);
... | 18.4 | 53 | 0.476708 | sunruisjtu2020 |
c626a013650e3a9ed8d869560192328834c7a000 | 2,541 | cpp | C++ | HiraSnake/GameManager.cpp | herohiralal/HiraASCII | d043bb831fb10e49f3b5b4b4d7df98fa491a7625 | [
"MIT"
] | null | null | null | HiraSnake/GameManager.cpp | herohiralal/HiraASCII | d043bb831fb10e49f3b5b4b4d7df98fa491a7625 | [
"MIT"
] | null | null | null | HiraSnake/GameManager.cpp | herohiralal/HiraASCII | d043bb831fb10e49f3b5b4b4d7df98fa491a7625 | [
"MIT"
] | null | null | null | #include "GameManager.h"
#include "Apple.h"
#include "Border.h"
#include "GameOver.h"
#include "SnakeHead.h"
#include "Welcome.h"
#include "../HiraASCII/Headers/GameObject.h"
#include "../HiraASCII/Headers/World.h"
GameManager::GameManager(GameObject& InGo): Behaviour(InGo), CurrentState(Null)
{
}
void GameManager... | 21 | 79 | 0.565525 | herohiralal |
c62bc58bd3bd1ba570b3457a5b17e98140c3039f | 767 | cpp | C++ | test/unit/math/rev/meta/partials_return_type_test.cpp | peterwicksstringfield/math | 5ce0718ea64f2cca8b2f1e4eeac27a2dc2bd246e | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/rev/meta/partials_return_type_test.cpp | peterwicksstringfield/math | 5ce0718ea64f2cca8b2f1e4eeac27a2dc2bd246e | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/rev/meta/partials_return_type_test.cpp | peterwicksstringfield/math | 5ce0718ea64f2cca8b2f1e4eeac27a2dc2bd246e | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/rev/meta.hpp>
#include <test/unit/util.hpp>
#include <gtest/gtest.h>
#include <vector>
using stan::math::var;
using stan::partials_return_type;
TEST(MetaTraitsRevScal, PartialsReturnTypeVar) {
test::expect_same_type<double, partials_return_type<var>::type>();
}
TEST(MetaTraitsRevScal, PartialsR... | 28.407407 | 75 | 0.684485 | peterwicksstringfield |
c62e6ee5fb503def2f180a49acc8da205fb71a9d | 5,498 | hpp | C++ | include/GlobalNamespace/RotateBySpawnRotation.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/RotateBySpawnRotation.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/RotateBySpawnRotation.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.MonoBehaviour
#include "UnityEngine/MonoBehaviour.hpp"
#i... | 46.59322 | 625 | 0.722263 | darknight1050 |
c6307d8645081614cc5687b86c64907bbd7940dc | 40,700 | hpp | C++ | include/UnityEngine/Rendering/SupportedRenderingFeatures.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/UnityEngine/Rendering/SupportedRenderingFeatures.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/UnityEngine/Rendering/SupportedRenderingFeatures.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.Li... | 69.931271 | 1,856 | 0.77774 | Fernthedev |
c6318af770faffefcdf9260e9270a4351a10f0dc | 4,045 | hpp | C++ | AbstractHardware/Registers/STM32L4x1/crsregisters.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 22 | 2019-09-07T22:38:01.000Z | 2022-01-31T21:35:55.000Z | AbstractHardware/Registers/STM32L4x1/crsregisters.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | null | null | null | AbstractHardware/Registers/STM32L4x1/crsregisters.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 9 | 2019-09-22T11:26:24.000Z | 2022-03-21T10:53:15.000Z | /*******************************************************************************
* Filename : crsregisters.hpp
*
* Details : Clock recovery system. This header file is auto-generated for
* STM32L4x1 device.
*
*
*******************************************************************************/
... | 45.449438 | 91 | 0.683066 | snorkysnark |
c6327dae97f3049416d7059f66e3b63d6319ad43 | 1,189 | inl | C++ | TricksterEngine/Include/Noesis/NsCore/IdOf.inl | Trickje/Trickster | ab73f15ec1b45676a20793ad6d4e9acfc2ba944e | [
"ECL-2.0",
"Apache-2.0"
] | 18 | 2020-09-04T08:00:54.000Z | 2021-08-29T23:04:45.000Z | Dependencies/NoesisGUI/Include/NsCore/IdOf.inl | IbexOmega/LambdaEngine | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 32 | 2020-09-12T19:24:50.000Z | 2020-12-11T14:29:44.000Z | Dependencies/NoesisGUI/Include/NsCore/IdOf.inl | IbexOmega/LambdaEngine | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 2 | 2020-12-15T15:36:13.000Z | 2021-03-27T14:27:02.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
// NoesisGUI - http://www.noesisengine.com
// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.
////////////////////////////////////////////////////////////////////////////////////////////////////
#incl... | 27.651163 | 100 | 0.380992 | Trickje |
c638e84768ad4528ff876df3011e625298aaa759 | 16,252 | cpp | C++ | src/serialize.cpp | errata-c/ez-serialize | 358aadec482018f6d8846560533bb2eb60901464 | [
"MIT"
] | null | null | null | src/serialize.cpp | errata-c/ez-serialize | 358aadec482018f6d8846560533bb2eb60901464 | [
"MIT"
] | null | null | null | src/serialize.cpp | errata-c/ez-serialize | 358aadec482018f6d8846560533bb2eb60901464 | [
"MIT"
] | null | null | null | #include <ez/serialize.hpp>
#include "Convert.hpp"
namespace ez {
namespace serialize {
uint8_t* i8(int8_t val, uint8_t* write, uint8_t const* const end) {
if ((end - write) < sizeof(val)) {
throw std::out_of_range("ez::serialize::i8 called with write range smaller than the object being written!");
}
... | 30.491557 | 120 | 0.66761 | errata-c |
c63d02a9325e3d740bf9c36aae84b866f69a43b0 | 1,301 | cpp | C++ | src/base/database/connectors/MySqlConnector.cpp | YuDe95/mcplayer | c43d7c6fcafef0f093efef9248e9cf69b56aee2f | [
"MIT"
] | 18 | 2020-03-02T06:56:05.000Z | 2022-03-31T11:05:40.000Z | src/base/database/connectors/MySqlConnector.cpp | YuDe95/mcplayer | c43d7c6fcafef0f093efef9248e9cf69b56aee2f | [
"MIT"
] | 1 | 2020-03-03T19:28:52.000Z | 2020-03-03T19:28:52.000Z | src/base/database/connectors/MySqlConnector.cpp | YuDe95/mcplayer | c43d7c6fcafef0f093efef9248e9cf69b56aee2f | [
"MIT"
] | 4 | 2020-03-20T13:56:57.000Z | 2021-06-16T09:48:23.000Z | #include "MySqlConnector.h"
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QJsonObject>
#include <QJsonValue>
MySqlConnector::MySqlConnector(const QString &name, QObject *parent)
: Connector(name, parent)
{
}
MySqlConnector::MySqlConnector(const QString &name, const QJsonObject &config, QObject *parent)... | 26.02 | 95 | 0.66103 | YuDe95 |
c642f6fc2b8dc361321688049841dc91c4ee2052 | 3,293 | hpp | C++ | include/UnityEngine/Internal_SubsystemInstances.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Internal_SubsystemInstances.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Internal_SubsystemInstances.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Completed includes
// Begin forward declares
// Forward declaring namespace: System::... | 50.661538 | 124 | 0.755238 | darknight1050 |
c644dec72d731311c94da30886f84dac3638113d | 286 | hpp | C++ | store/mult.hpp | Cybermilitia/Huges4ProjectEuler | 26267b814c19b17862f37418a7c1b03050120a50 | [
"MIT"
] | null | null | null | store/mult.hpp | Cybermilitia/Huges4ProjectEuler | 26267b814c19b17862f37418a7c1b03050120a50 | [
"MIT"
] | null | null | null | store/mult.hpp | Cybermilitia/Huges4ProjectEuler | 26267b814c19b17862f37418a7c1b03050120a50 | [
"MIT"
] | null | null | null | #ifndef MULT_H
#define MULT_H
#include <iostream>
#include <vector>
#include <algorithm>
#include <ctime>
#include <math.h>
#include <bits/stdc++.h>
#include <fstream>
#include "basics.hpp"
using namespace std;
vector<int> * multiplication (vector<int> *, vector<int>*);
#endif
| 14.3 | 59 | 0.702797 | Cybermilitia |
c650275046ba0f4ee433c271d8f43d40daef3dc6 | 704 | cpp | C++ | data final practice/factorial.cpp | faisalsanto007/Codes | eabf2a96509fe1244a54de73cc1b7d43af1f8569 | [
"MIT"
] | null | null | null | data final practice/factorial.cpp | faisalsanto007/Codes | eabf2a96509fe1244a54de73cc1b7d43af1f8569 | [
"MIT"
] | null | null | null | data final practice/factorial.cpp | faisalsanto007/Codes | eabf2a96509fe1244a54de73cc1b7d43af1f8569 | [
"MIT"
] | null | null | null | #include<stdio.h>
int recursive(int n)
{
int p;
if(n<=1)
return 1;
p=n*recursive(n-1);
return p;
}
int main()
{
int i,j,k,l;
while(1)
{
printf("Enter 1 for recursive\n\t2 for non recursive\n\t3 for exit\n");
scanf(" %d",&i);
if(i==1)
{
pri... | 18.526316 | 79 | 0.386364 | faisalsanto007 |
c6507fdf9e9ace819450cb1736308de3a2715270 | 3,484 | cpp | C++ | KCCore/kcdatabase.cpp | louvainlinux/KapCompta | 8d871a718f945748dbed9207222bfd1efb6d5526 | [
"MIT"
] | 1 | 2015-08-26T14:17:26.000Z | 2015-08-26T14:17:26.000Z | KCCore/kcdatabase.cpp | louvainlinux/KapCompta | 8d871a718f945748dbed9207222bfd1efb6d5526 | [
"MIT"
] | null | null | null | KCCore/kcdatabase.cpp | louvainlinux/KapCompta | 8d871a718f945748dbed9207222bfd1efb6d5526 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2012-2013, Olivier Tilmans
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merg... | 26.393939 | 99 | 0.631458 | louvainlinux |
c6542bb7841a44836351e4f80f07400fc71119c0 | 1,385 | cpp | C++ | src/building.cpp | Groogy/derelict | 5ca82ae5a5a553e292e388706a27b53840cf3afa | [
"Zlib"
] | null | null | null | src/building.cpp | Groogy/derelict | 5ca82ae5a5a553e292e388706a27b53840cf3afa | [
"Zlib"
] | null | null | null | src/building.cpp | Groogy/derelict | 5ca82ae5a5a553e292e388706a27b53840cf3afa | [
"Zlib"
] | null | null | null | #include "building.hpp"
#include "macros.hpp"
Building::Building(const std::string& name, const std::string& button, float energyCost, float homeostasisChange, float energyChange, bool hidden, bool ignoresPreviousBuilding, UpdateEffect update)
: myName(name)
, myButton(button)
, myEnergyCost(energyCost)
, myHomeostasi... | 20.072464 | 197 | 0.756679 | Groogy |
c657afa1a693d343914edf251118cbbaa678eeb8 | 518 | cpp | C++ | tests/allegro_flare/test_b_test.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 25 | 2015-03-30T02:02:43.000Z | 2019-03-04T22:29:12.000Z | tests/allegro_flare/test_b_test.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 122 | 2015-04-01T08:15:26.000Z | 2019-10-16T20:31:22.000Z | tests/allegro_flare/test_b_test.cpp | allegroflare/allegro_flare | 21d6fe2a5a5323102285598c8a8c75b393ce0322 | [
"MIT"
] | 4 | 2020-02-25T18:17:31.000Z | 2021-04-17T05:06:52.000Z |
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE Suites
#include <boost/test/unit_test.hpp>
int add(int i, int j)
{
return i + j;
}
//
// Math
//
BOOST_AUTO_TEST_SUITE(Math)
BOOST_AUTO_TEST_CASE(universeInOrder)
{
BOOST_CHECK(add(2, 2) == 4);
}
BOOST_AUTO_TEST_SUITE_END()
//
// Phys... | 7.194444 | 37 | 0.644788 | MarkOates |
c666ccd4f99c77f6bd04d00da5f0e34a9606bb89 | 105 | cpp | C++ | main.cpp | maZymaZe/sfsnake | 9f183b59359e32f2b5164fa51254aa6072c0df8f | [
"MIT"
] | 1 | 2020-11-16T01:50:49.000Z | 2020-11-16T01:50:49.000Z | main.cpp | maZymaZe/sfsnake | 9f183b59359e32f2b5164fa51254aa6072c0df8f | [
"MIT"
] | null | null | null | main.cpp | maZymaZe/sfsnake | 9f183b59359e32f2b5164fa51254aa6072c0df8f | [
"MIT"
] | null | null | null | #include "Game.h"
using namespace sfSnake;
int main() {
Game game;
game.run();
return 0;
} | 10.5 | 24 | 0.590476 | maZymaZe |
c672f1d3883e2b49bc7e3bf7ab0979b0bac8fe05 | 193 | cpp | C++ | src/ListenerComponent.cpp | NoVariableGlobal/global-engine | b682dccbae6c5a4794e94960dfeb220addfe7773 | [
"MIT"
] | null | null | null | src/ListenerComponent.cpp | NoVariableGlobal/global-engine | b682dccbae6c5a4794e94960dfeb220addfe7773 | [
"MIT"
] | 3 | 2020-03-09T21:34:04.000Z | 2021-03-28T17:30:31.000Z | src/ListenerComponent.cpp | NoVariableGlobal/one-thousand-years | b682dccbae6c5a4794e94960dfeb220addfe7773 | [
"MIT"
] | 3 | 2020-08-15T06:33:32.000Z | 2021-03-28T14:23:31.000Z | #include "ListenerComponent.h"
#include "ComponentsManager.h"
#include "Scene.h"
void ListenerComponent::destroy() {
setActive(false);
scene_->getComponentsManager()->eraseLC(this);
}
| 21.444444 | 50 | 0.735751 | NoVariableGlobal |
c6746c93ef89e7efaac46b8aba848546916f9609 | 2,076 | hpp | C++ | game_engine/src/map.hpp | Jimmyee/Endless-Online-Awaken | 1af1e07fb8ae88d87e76fdf297422cff1c0bacab | [
"MIT"
] | 14 | 2017-06-01T16:00:25.000Z | 2021-12-01T16:02:00.000Z | game_engine/src/map.hpp | Jimmyee/Endless-Online-Awaken | 1af1e07fb8ae88d87e76fdf297422cff1c0bacab | [
"MIT"
] | null | null | null | game_engine/src/map.hpp | Jimmyee/Endless-Online-Awaken | 1af1e07fb8ae88d87e76fdf297422cff1c0bacab | [
"MIT"
] | 4 | 2017-10-04T22:51:44.000Z | 2021-03-18T10:16:02.000Z | // Endless Online Awaken
#ifndef MAP_HPP_INCLUDED
#define MAP_HPP_INCLUDED
#include "gfx_loader.hpp"
#include "character.hpp"
#include "npc.hpp"
#include <string>
#include <array>
#include <vector>
// (monostate)
class Map
{
public:
class Tile
{
public:
unsigned int graphic_id;
unsigned ... | 20.969697 | 95 | 0.612717 | Jimmyee |
c6755d1d3cd0ff58c6747e5ce720b9322275224d | 1,563 | cpp | C++ | library/third_party/skia/src/core/SkScalar.cpp | topillar/PuTTY-ng | 1f5bf26de0f42e03ef4f100fa879b16216d61abf | [
"MIT"
] | 39 | 2019-06-22T12:25:54.000Z | 2022-03-14T05:42:44.000Z | library/third_party/skia/src/core/SkScalar.cpp | topillar/PuTTY-ng | 1f5bf26de0f42e03ef4f100fa879b16216d61abf | [
"MIT"
] | 5 | 2019-06-29T10:58:43.000Z | 2020-09-04T08:44:09.000Z | library/third_party/skia/src/core/SkScalar.cpp | topillar/PuTTY-ng | 1f5bf26de0f42e03ef4f100fa879b16216d61abf | [
"MIT"
] | 13 | 2015-02-10T15:02:31.000Z | 2021-05-25T09:29:03.000Z | /*
* Copyright 2010, The Android Open Source Project
*
* 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 applica... | 36.348837 | 75 | 0.675624 | topillar |
c6794931ea696e4e71f946b167b7e98093a221cb | 911 | cpp | C++ | src/examples/09_module/06_vector/main.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-artgonzalezacc-1 | 03bb55aadcf6b6fec8d642b81576adf933c72c7b | [
"MIT"
] | 1 | 2020-12-07T23:53:11.000Z | 2020-12-07T23:53:11.000Z | src/examples/09_module/06_vector/main.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-artgonzalezacc-1 | 03bb55aadcf6b6fec8d642b81576adf933c72c7b | [
"MIT"
] | null | null | null | src/examples/09_module/06_vector/main.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-artgonzalezacc-1 | 03bb55aadcf6b6fec8d642b81576adf933c72c7b | [
"MIT"
] | 1 | 2020-12-07T23:54:00.000Z | 2020-12-07T23:54:00.000Z | //
#include "vector.h"
#include <utility>
#include<iostream>
int main()
{
/*int num = add(5, 5);
std::cout<<num<<"\n";
double num1 = add(1.5, 4.9);
std::cout<<num1<<"\n";*/
//use_stack_vector();
//use_heap_vector();
/*/requires copy constructor
Vector<int> v1(3);
Vector<int> ... | 15.982456 | 35 | 0.491767 | acc-cosc-1337-fall-2020 |
c6797be0c7f617bf42348faf38f5023cae05283f | 1,529 | cpp | C++ | Cribbage/src/utils/CardUtils.cpp | Pharap/Cribbage | 3ec426e2f0d51df013f11d5a7b862579fe0e1cf1 | [
"BSD-3-Clause"
] | null | null | null | Cribbage/src/utils/CardUtils.cpp | Pharap/Cribbage | 3ec426e2f0d51df013f11d5a7b862579fe0e1cf1 | [
"BSD-3-Clause"
] | null | null | null | Cribbage/src/utils/CardUtils.cpp | Pharap/Cribbage | 3ec426e2f0d51df013f11d5a7b862579fe0e1cf1 | [
"BSD-3-Clause"
] | 3 | 2019-08-20T12:15:47.000Z | 2021-05-24T15:22:02.000Z | #include "CardUtils.h"
#include "Constants.h"
CardUtils::CardUtils() {}
uint8_t CardUtils::getCardValue(uint8_t cardNumber, bool pictureCardsAsTens) {
uint8_t card = (cardNumber % 13) + 1;
if (pictureCardsAsTens && card > 10) card = 10;
return card;
}
Suit CardUtils::getCardSuit(uint8_t cardNumber) {
... | 20.118421 | 78 | 0.58862 | Pharap |
c680190bdaafacbffd797ce2cc80a5db2d489eb2 | 2,409 | hpp | C++ | module/native/src/get_volume.hpp | cpoco/eyna | eed817c3cc90f82fdc05125138a4e303dd3fa098 | [
"MIT"
] | null | null | null | module/native/src/get_volume.hpp | cpoco/eyna | eed817c3cc90f82fdc05125138a4e303dd3fa098 | [
"MIT"
] | null | null | null | module/native/src/get_volume.hpp | cpoco/eyna | eed817c3cc90f82fdc05125138a4e303dd3fa098 | [
"MIT"
] | null | null | null | #ifndef NATIVE_GET_VOLUME
#define NATIVE_GET_VOLUME
#include "common.hpp"
struct _volume
{
_string_t name;
std::filesystem::path full;
};
struct get_volume_work
{
uv_work_t request;
v8::Persistent<v8::Promise::Resolver> promise;
std::vector<_volume> volumes;
};
static void get_volume_async(uv_work_t *req)
{
... | 24.09 | 149 | 0.696555 | cpoco |
c684c8d4663ebeb8feeced66283cb60ddd0b95d0 | 2,571 | cpp | C++ | lib/libchen/test/src/base/num.cpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | 6 | 2018-07-28T08:03:24.000Z | 2022-03-31T08:56:57.000Z | lib/libchen/test/src/base/num.cpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | null | null | null | lib/libchen/test/src/base/num.cpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | 2 | 2019-05-21T02:26:36.000Z | 2020-04-13T16:46:20.000Z | /**
* Created by Jian Chen
* @since 2016.05.27
* @author Jian Chen <admin@chensoft.com>
* @link http://chensoft.com
*/
#include "chen/base/num.hpp"
#include "gtest/gtest.h"
TEST(BaseNumTest, General)
{
using chen::num;
// equal
EXPECT_TRUE(num::equal(0.1, 0.1));
EXPECT_TRUE(num::equal(0.1f, 0.... | 35.219178 | 115 | 0.674057 | chensoft |
c68646304f31040507d080ffc375de8a1da4aa4a | 4,845 | cpp | C++ | build-weather-Desktop_Qt_5_12_11_MSVC2017_64bit-Debug/debug/moc_dialog_change_city.cpp | Bin447/hongbin-de-weather | fee641e1a8aab9f205d8750286500e086efabcba | [
"Apache-2.0"
] | null | null | null | build-weather-Desktop_Qt_5_12_11_MSVC2017_64bit-Debug/debug/moc_dialog_change_city.cpp | Bin447/hongbin-de-weather | fee641e1a8aab9f205d8750286500e086efabcba | [
"Apache-2.0"
] | null | null | null | build-weather-Desktop_Qt_5_12_11_MSVC2017_64bit-Debug/debug/moc_dialog_change_city.cpp | Bin447/hongbin-de-weather | fee641e1a8aab9f205d8750286500e086efabcba | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'dialog_change_city.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.11)
**
** WARNING! All changes made in this file will be lost!
************************************************... | 32.516779 | 112 | 0.635088 | Bin447 |
c68a96ca7792ac368eebe9ff3ae8af170374ed41 | 3,762 | cpp | C++ | os/kernel/port/init.cpp | rvedam/es-operating-system | 32d3e4791c28a5623744800f108d029c40c745fc | [
"Apache-2.0"
] | 2 | 2020-11-30T18:38:20.000Z | 2021-06-07T07:44:03.000Z | os/kernel/port/init.cpp | LambdaLord/es-operating-system | 32d3e4791c28a5623744800f108d029c40c745fc | [
"Apache-2.0"
] | 1 | 2019-01-14T03:09:45.000Z | 2019-01-14T03:09:45.000Z | os/kernel/port/init.cpp | LambdaLord/es-operating-system | 32d3e4791c28a5623744800f108d029c40c745fc | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2008, 2009 Google Inc.
* Copyright 2006, 2007 Nintendo 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
*
... | 20.9 | 79 | 0.601542 | rvedam |
c68b7178961a49896152fe2c8cbeb31a07410145 | 6,337 | cpp | C++ | apps/opencs/model/world/idtable.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/model/world/idtable.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/model/world/idtable.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null |
#include "idtable.hpp"
#include "collectionbase.hpp"
#include "columnbase.hpp"
CSMWorld::IdTable::IdTable (CollectionBase *idCollection, unsigned int features)
: IdTableBase (features), mIdCollection (idCollection)
{}
CSMWorld::IdTable::~IdTable()
{}
int CSMWorld::IdTable::rowCount (const QModelIndex & parent) con... | 27.197425 | 111 | 0.6552 | Bodillium |
c692cf73b8b0db1d09ce23bdb2697e2a750f07a0 | 100 | hpp | C++ | src/factorial.hpp | montyanderson/euler | ba07a13c8afaa61edf35987f2a4db34c89b5ad39 | [
"MIT"
] | 1 | 2016-03-16T17:08:54.000Z | 2016-03-16T17:08:54.000Z | src/factorial.hpp | montyanderson/euler | ba07a13c8afaa61edf35987f2a4db34c89b5ad39 | [
"MIT"
] | null | null | null | src/factorial.hpp | montyanderson/euler | ba07a13c8afaa61edf35987f2a4db34c89b5ad39 | [
"MIT"
] | null | null | null | long long int factorial(int n) {
int f;
for(int i = 1; i <= n; i++) {
f *= i;
}
return f;
}
| 10 | 32 | 0.48 | montyanderson |
c6948af51c8112e67cd9ead51aea16ead15e1f4d | 743 | cpp | C++ | test/2015/Day01PuzzleTests.cpp | MarkRDavison/AdventOfCode | 640ae6de76709367be8dfeb86b9f1f7d21908946 | [
"MIT"
] | null | null | null | test/2015/Day01PuzzleTests.cpp | MarkRDavison/AdventOfCode | 640ae6de76709367be8dfeb86b9f1f7d21908946 | [
"MIT"
] | null | null | null | test/2015/Day01PuzzleTests.cpp | MarkRDavison/AdventOfCode | 640ae6de76709367be8dfeb86b9f1f7d21908946 | [
"MIT"
] | null | null | null | #include <catch/catch.hpp>
#include <2015/Day01Puzzle.hpp>
namespace TwentyFifteen {
TEST_CASE("2015 Day 1 Part 1 Example work", "[2015][Day01]") {
REQUIRE(+0 == Day01Puzzle::doPart1("(())"));
REQUIRE(+0 == Day01Puzzle::doPart1("()()"));
REQUIRE(+3 == Day01Puzzle::doPart1("((("));
REQUIRE(+3 == Day01Puzzle::... | 30.958333 | 63 | 0.588156 | MarkRDavison |
c6974e4943668f2046e697e474a68cb7692c3d9f | 1,570 | cpp | C++ | s10/test9.cpp | huxuan0307/Reactor-network-library | 26873ebfc755534bf127aa36af6fba06bb1b5c2f | [
"Apache-2.0"
] | null | null | null | s10/test9.cpp | huxuan0307/Reactor-network-library | 26873ebfc755534bf127aa36af6fba06bb1b5c2f | [
"Apache-2.0"
] | null | null | null | s10/test9.cpp | huxuan0307/Reactor-network-library | 26873ebfc755534bf127aa36af6fba06bb1b5c2f | [
"Apache-2.0"
] | null | null | null | #include "net/TcpConnection.h"
#include "net/TcpServer.h"
#include <iostream>
using namespace std;
void onConnection(const shared_ptr<TcpConnection>& conn)
{
if (conn->connected()) {
cout << "onConnection(): tid=" << this_thread::get_id()
<< " new connection [" << conn->name() <<... | 29.074074 | 80 | 0.564968 | huxuan0307 |
57917ef6ada4f2e98350fb9526de2dfd638a216a | 957 | cpp | C++ | src/ComponentFactory.cpp | sorressean/Aspen | cc77f84e038f3c8a7f15470b5910d91a7afb4e44 | [
"MIT"
] | 11 | 2015-03-24T07:01:07.000Z | 2021-04-09T13:03:31.000Z | src/ComponentFactory.cpp | sorressean/Aspen | cc77f84e038f3c8a7f15470b5910d91a7afb4e44 | [
"MIT"
] | 9 | 2015-03-25T01:18:46.000Z | 2018-07-23T18:09:16.000Z | src/ComponentFactory.cpp | sorressean/Aspen | cc77f84e038f3c8a7f15470b5910d91a7afb4e44 | [
"MIT"
] | 9 | 2015-01-30T17:47:28.000Z | 2018-07-23T16:50:03.000Z | #include <map>
#include <string>
#include "ComponentFactory.h"
#include "component.h"
#include "componentMeta.hpp"
ComponentFactory::~ComponentFactory()
{
for (auto it: _components)
{
delete it.second;
}
}
bool ComponentFactory::HasComponent(const std::string &name)
{
return (_com... | 18.403846 | 87 | 0.624869 | sorressean |
5798c89931e5cb0fd89fcbb965e06adaf7e61bb7 | 377 | cpp | C++ | Sources/Engine/UI/Theme.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Engine/UI/Theme.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Engine/UI/Theme.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | /*=============================================================================
Theme.cpp
Project: Sonata Engine
Author: Julien Delezenne
=============================================================================*/
#include "Theme.h"
#include "UI/UISystem.h"
namespace SonataEngine
{
namespace UI
{
Theme::Theme... | 15.708333 | 79 | 0.363395 | jdelezenne |
579d967f053722a017cf1f8af50b502d80930ef6 | 3,245 | cpp | C++ | imap/src/sync/SyncEngine.cpp | webOS-ports/mojomail | 49358ac2878e010f5c6e3bd962f047c476c11fc3 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:20:27.000Z | 2021-01-02T08:14:23.000Z | mojomail/imap/src/sync/SyncEngine.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 3 | 2019-05-11T19:17:56.000Z | 2021-11-24T16:04:36.000Z | mojomail/imap/src/sync/SyncEngine.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:21:13.000Z | 2021-01-02T02:37:10.000Z | // @@@LICENSE
//
// Copyright (c) 2010-2013 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... | 26.382114 | 90 | 0.70077 | webOS-ports |
57a055759ea15057129506497ae46d5b456525c0 | 3,257 | cpp | C++ | src/datastructure/Identification.cpp | geekyfox90/SolARFramework | 714c5077b5c4f55bab9e370868c14dcdd8157d97 | [
"Apache-2.0"
] | 10 | 2018-11-26T15:43:01.000Z | 2022-03-06T03:18:54.000Z | src/datastructure/Identification.cpp | geekyfox90/SolARFramework | 714c5077b5c4f55bab9e370868c14dcdd8157d97 | [
"Apache-2.0"
] | 12 | 2018-04-13T12:40:42.000Z | 2022-03-02T17:02:39.000Z | src/datastructure/Identification.cpp | geekyfox90/SolARFramework | 714c5077b5c4f55bab9e370868c14dcdd8157d97 | [
"Apache-2.0"
] | 12 | 2018-11-07T10:39:13.000Z | 2021-08-25T16:16:01.000Z | /**
* @copyright Copyright (c) 2017 B-com http://www.b-com.com/
*
* 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... | 26.056 | 121 | 0.729813 | geekyfox90 |
57a3045fe6934c0cf08938b0bf494d7e550cd467 | 15,353 | hpp | C++ | contrib/autoboost/autoboost/thread/detail/config.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/thread/detail/config.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/thread/detail/config.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // Copyright (C) 2001-2003
// William E. Kempf
// Copyright (C) 2011-2013 Vicente J. Botet Escriba
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef AUTOBOOST_THREAD_CONFIG_WEK01032003_HPP
#define AUTOBO... | 35.052511 | 142 | 0.832671 | CaseyCarter |
57ab8bf179e3d632479a3a0468611a378c385a21 | 7,809 | cpp | C++ | src/pmp/algorithms/SurfaceNormals.cpp | choyfung/pmp-library | 4a72c918494dac92f5e77545b71c7a327dafe71e | [
"BSD-3-Clause"
] | 1 | 2020-05-21T04:15:44.000Z | 2020-05-21T04:15:44.000Z | src/pmp/algorithms/SurfaceNormals.cpp | choyfung/pmp-library | 4a72c918494dac92f5e77545b71c7a327dafe71e | [
"BSD-3-Clause"
] | null | null | null | src/pmp/algorithms/SurfaceNormals.cpp | choyfung/pmp-library | 4a72c918494dac92f5e77545b71c7a327dafe71e | [
"BSD-3-Clause"
] | 1 | 2020-05-21T04:15:52.000Z | 2020-05-21T04:15:52.000Z | //=============================================================================
// Copyright (C) 2011-2018 The pmp-library developers
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source ... | 33.515021 | 80 | 0.472019 | choyfung |
57af63641efbbc5715e3c86b68219ca87ef70bed | 5,857 | hh | C++ | nox/src/include/netinet++/ethernet.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/include/netinet++/ethernet.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/include/netinet++/ethernet.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | /* Copyright 2008 (C) Nicira, Inc.
*
* This file is part of NOX.
*
* NOX is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* N... | 33.090395 | 79 | 0.506744 | ayjazz |
57b27b587a34692e16a3e6984a24a42159486462 | 1,618 | hpp | C++ | Circuit/VelocityViewController.hpp | Wang-Yue/Circu | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | 8 | 2018-08-24T01:31:38.000Z | 2021-03-01T14:57:59.000Z | Circuit/VelocityViewController.hpp | Wang-Yue/Circu | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | 1 | 2019-12-08T13:43:19.000Z | 2019-12-13T03:36:16.000Z | Circuit/VelocityViewController.hpp | Wang-Yue/Circuit | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | null | null | null | //
// VelocityViewController.hpp
// CircuitApp
//
// Created by Yue Wang on 8/24/18.
// Copyright © 2018 Yue Wang. All rights reserved.
//
#ifndef VelocityViewController_hpp
#define VelocityViewController_hpp
#include "KeyboardView.hpp"
#include <map>
#include <list>
#include "Pattern.hpp"
#include "Step.hpp"
#i... | 22.472222 | 69 | 0.702719 | Wang-Yue |
57b68cebb82cdc9220531c70667ab2719760a76f | 6,980 | cpp | C++ | src/core/OverlapM.cpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | null | null | null | src/core/OverlapM.cpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | null | null | null | src/core/OverlapM.cpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | 1 | 2021-07-21T06:48:19.000Z | 2021-07-21T06:48:19.000Z | // Copyright (c) 2020 Matthew J. Smith and Overkit contributors
// License: MIT (http://opensource.org/licenses/MIT)
#include "ovk/core/OverlapM.hpp"
#include "ovk/core/Array.hpp"
#include "ovk/core/Comm.hpp"
#include "ovk/core/Context.hpp"
#include "ovk/core/Debug.hpp"
#include "ovk/core/Editor.hpp"
#include "ovk/co... | 25.017921 | 100 | 0.708739 | gyzhangqm |
57b7d33d234dacea548a4df1fc83c3733c8d2890 | 16,324 | cpp | C++ | Source/Lib/Uncompressed/AIFF/AIFF.cpp | JeromeMartinez/RAWcooked | 41379cc9ebb9511eb7445dce7a4a9064125a92f0 | [
"BSD-2-Clause"
] | 1 | 2019-11-07T17:24:48.000Z | 2019-11-07T17:24:48.000Z | Source/Lib/Uncompressed/AIFF/AIFF.cpp | JeromeMartinez/RAWcooked | 41379cc9ebb9511eb7445dce7a4a9064125a92f0 | [
"BSD-2-Clause"
] | null | null | null | Source/Lib/Uncompressed/AIFF/AIFF.cpp | JeromeMartinez/RAWcooked | 41379cc9ebb9511eb7445dce7a4a9064125a92f0 | [
"BSD-2-Clause"
] | null | null | null | /* Copyright (c) MediaArea.net SARL & AV Preservation by reto.ch.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//---------------------------------------------------------------------------
#include "Lib/Unco... | 32.26087 | 111 | 0.526709 | JeromeMartinez |
57b8f109a7cac64451a7cf8460b47b653402d6e5 | 154 | cpp | C++ | CST276SRS02/Strategy_v1/context.cpp | robotrobotrobotrobotrobot/CST276SRS02 | 75eb84bedcc6fde19b69a64a26e8f3fff59687b4 | [
"MIT"
] | null | null | null | CST276SRS02/Strategy_v1/context.cpp | robotrobotrobotrobotrobot/CST276SRS02 | 75eb84bedcc6fde19b69a64a26e8f3fff59687b4 | [
"MIT"
] | null | null | null | CST276SRS02/Strategy_v1/context.cpp | robotrobotrobotrobotrobot/CST276SRS02 | 75eb84bedcc6fde19b69a64a26e8f3fff59687b4 | [
"MIT"
] | null | null | null | #include "context.h"
void Context::setStrategy(Strategy * strat)
{
strategy = strat;
}
void Context::opertion()
{
strategy->Algorithm();
}
| 12.833333 | 44 | 0.642857 | robotrobotrobotrobotrobot |
57bc0672c358d2dcf4ee26f881b7ab03edaacbf2 | 166 | cpp | C++ | uActor/src/actor_runtime/lua_functions.cpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | 1 | 2021-09-15T12:41:37.000Z | 2021-09-15T12:41:37.000Z | uActor/src/actor_runtime/lua_functions.cpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | null | null | null | uActor/src/actor_runtime/lua_functions.cpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | null | null | null | #include "actor_runtime/lua_functions.hpp"
namespace uActor::ActorRuntime {
lua_CFunction LuaFunctions::base_function_store[];
}; // namespace uActor::ActorRuntime
| 27.666667 | 50 | 0.807229 | uActor |
57bc07eda55c17e162bccd35a3408fff01b5c889 | 9,208 | cc | C++ | src/cnn.cc | YoshiKitaguchi/PINT | f90183c69c70b6afa40c324c2b68e1f33462f813 | [
"Apache-2.0"
] | null | null | null | src/cnn.cc | YoshiKitaguchi/PINT | f90183c69c70b6afa40c324c2b68e1f33462f813 | [
"Apache-2.0"
] | null | null | null | src/cnn.cc | YoshiKitaguchi/PINT | f90183c69c70b6afa40c324c2b68e1f33462f813 | [
"Apache-2.0"
] | null | null | null | #include "pint.h"
#include <iostream>
#include <algorithm>
#include "pint.h"
namespace pint
{
// constructor of ConvolutionalNet
ConvolutionalNet::ConvolutionalNet()
{
// demo filter layer of 3 x 3
int shape[3];
shape[0] = 3;
shape[1] = 3;
shape[2] = 1;
PTens... | 33.728938 | 133 | 0.492615 | YoshiKitaguchi |
57c04f3a524e547ce1855683ba3639630d6dcf25 | 3,395 | cpp | C++ | codes/mock/7/2.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null | codes/mock/7/2.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null | codes/mock/7/2.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null |
//misaka and rin will carry me to cm
#include <iostream>
#include <cstdio>
#include <cstring>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <array>
#include <tuple>
#include <map>
#include <unordered_map>
#define ll long long
#define lb long double
#define sz(vec) ((int)(vec.... | 23.908451 | 91 | 0.566716 | chessbot108 |
57c15efd1414522eee253450bc005e3b9fa713ab | 1,023 | hpp | C++ | cpp/concurrency/concurrency.hpp | giulianopa/Shameless | 91cfcec32de86ae8371aeff103b04d571aea4115 | [
"MIT"
] | null | null | null | cpp/concurrency/concurrency.hpp | giulianopa/Shameless | 91cfcec32de86ae8371aeff103b04d571aea4115 | [
"MIT"
] | null | null | null | cpp/concurrency/concurrency.hpp | giulianopa/Shameless | 91cfcec32de86ae8371aeff103b04d571aea4115 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2019 Giuliano Pasqualotto (github.com/giulianopa)
* This code is licensed under MIT license (see LICENSE.txt for details)
*/
#pragma once
#include <mutex>
#include <condition_variable>
/**
Implement a barrier using a condition_variable, returning true when count is 0.
*/
class Barrier {
private:... | 20.46 | 81 | 0.697947 | giulianopa |
57c1e486fd55e03a0981301d3b3ea85260535aea | 1,011 | cpp | C++ | competitive programming/interviewbit/arrays/Maximum Absolute Difference.cpp | kashyap99saksham/Code | 96658d0920eb79c007701d2a3cc9dbf453d78f96 | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | competitive programming/interviewbit/arrays/Maximum Absolute Difference.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | competitive programming/interviewbit/arrays/Maximum Absolute Difference.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | You are given an array of N integers, A1, A2 ,…, AN. Return maximum value of f(i, j) for all 1 ≤ i, j ≤ N.
f(i, j) is defined as |A[i] - A[j]| + |i - j|, where |x| denotes absolute value of x.
For example,
A=[1, 3, -1]
f(1, 1) = f(2, 2) = f(3, 3) = 0
f(1, 2) = f(2, 1) = |1 - 3| + |1 - 2| = 3
f(1, 3) = f(3, 1) = |1 -... | 17.736842 | 106 | 0.474777 | kashyap99saksham |
57c2411efb763028ed32d498eda0ef7d4e96839b | 1,569 | hh | C++ | framework/include/Core/Network/Udp/UdpSocketServer.hh | gautier-lefebvre/cppframework | bc1c3405913343274d79240b17ab75ae3f2adf56 | [
"MIT"
] | null | null | null | framework/include/Core/Network/Udp/UdpSocketServer.hh | gautier-lefebvre/cppframework | bc1c3405913343274d79240b17ab75ae3f2adf56 | [
"MIT"
] | 3 | 2015-12-21T09:04:49.000Z | 2015-12-21T19:22:47.000Z | framework/include/Core/Network/Udp/UdpSocketServer.hh | gautier-lefebvre/cppframework | bc1c3405913343274d79240b17ab75ae3f2adf56 | [
"MIT"
] | null | null | null | #ifndef __CORE_NETWORK_UDP_UDPSOCKETSERVER_HH__
#define __CORE_NETWORK_UDP_UDPSOCKETSERVER_HH__
#include <sys/select.h>
#include "Library/Factory/APooled.hpp"
#include "Core/Network/Udp/AUdpSocket.hh"
#include "Core/Network/Udp/UdpSocketClient.hh"
namespace fwk {
/**
* \class UdpSocketServer Core/Netwo... | 27.526316 | 104 | 0.678139 | gautier-lefebvre |
57c5496652f19a10b26545e19eaf74ca28de29e5 | 2,199 | cc | C++ | shift-reduce-itg.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | shift-reduce-itg.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | shift-reduce-itg.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | #include "Application.hh"
APPLICATION
using namespace Permute;
// Tests whether the target permutation is in the ITG neighborhood of the
// identity permutation using a shift-reduce parser. The parser keeps spans on
// the stack, and joins spans sharing endpoints if they are neighbors on the
// stack. If, when the... | 30.971831 | 90 | 0.637563 | lemrobotry |
57c84c194db85f481b0a16e56299112a7e8b6801 | 940 | hpp | C++ | include/core/iterator.hpp | AsulconS/Movie-Wrapper | 982b17aaf28343cd9526fd2feb682156dab7a7d8 | [
"BSD-2-Clause"
] | null | null | null | include/core/iterator.hpp | AsulconS/Movie-Wrapper | 982b17aaf28343cd9526fd2feb682156dab7a7d8 | [
"BSD-2-Clause"
] | null | null | null | include/core/iterator.hpp | AsulconS/Movie-Wrapper | 982b17aaf28343cd9526fd2feb682156dab7a7d8 | [
"BSD-2-Clause"
] | null | null | null | #ifndef ITERATOR_H
#define ITERATOR_H
#include "core/common.hpp"
template <typename CRTP, typename PtrType = uint8>
class IIterator
{
public:
explicit IIterator() : current(nullptr) {}
explicit IIterator(PtrType* _current) : current(_current) {}
virtual ~IIterator() {}
IIterator(const II... | 30.322581 | 92 | 0.656383 | AsulconS |
57d279dafa5719ed1a9433c5977896759d858f7b | 357 | cpp | C++ | solutions/AtCoder/abc119/A.cpp | yumeno-ukihashi/competitive-programming | 5cc3a7938b62133d8dc71a179cb11dfe985315d3 | [
"Unlicense"
] | null | null | null | solutions/AtCoder/abc119/A.cpp | yumeno-ukihashi/competitive-programming | 5cc3a7938b62133d8dc71a179cb11dfe985315d3 | [
"Unlicense"
] | null | null | null | solutions/AtCoder/abc119/A.cpp | yumeno-ukihashi/competitive-programming | 5cc3a7938b62133d8dc71a179cb11dfe985315d3 | [
"Unlicense"
] | null | null | null | #include<bits/stdc++.h>
#define REP(x,y,z) for(int x=y;x<=z;x++)
#define MSET(x,y) memset(x,y,sizeof(x))
#define M
using namespace std;
int main()
{
int y,m,d;
while (~scanf("%d/%d/%d", &y,&m,&d)) {
if (y<=2018 || y<=2019&&m<=4) {
puts("Heisei");
} else {
puts("TBD");
... | 17 | 42 | 0.45098 | yumeno-ukihashi |
57d47bdbddadb8f3f1ba1622a806b6681f5a85f2 | 824 | cpp | C++ | source/src/xcom/type.cpp | cflaviu/xcom-epoll | 4accc12c5abc727a0960185fa391cfa180d7db18 | [
"MIT"
] | null | null | null | source/src/xcom/type.cpp | cflaviu/xcom-epoll | 4accc12c5abc727a0960185fa391cfa180d7db18 | [
"MIT"
] | null | null | null | source/src/xcom/type.cpp | cflaviu/xcom-epoll | 4accc12c5abc727a0960185fa391cfa180d7db18 | [
"MIT"
] | null | null | null | // xcom-epoll library
#ifndef PCH
#include "xcom/type.hpp"
#include <cstdint>
#include <iostream>
#include <variant>
#endif
namespace xcom
{
std::ostream& operator<<(std::ostream& out, const ip_address_t& item)
{
if (item.index() == 0) // IPv4
{
const auto& ipv4_addr... | 24.969697 | 138 | 0.524272 | cflaviu |
57d710028852026f71dc4a48ece1303349792732 | 4,268 | cpp | C++ | CloakEngine/DX12VideoEncoder.cpp | Bizzarrus/CloakEngine | 0890eaada76b91be89702d2a6ec2dcf9b2901fb9 | [
"BSD-2-Clause"
] | null | null | null | CloakEngine/DX12VideoEncoder.cpp | Bizzarrus/CloakEngine | 0890eaada76b91be89702d2a6ec2dcf9b2901fb9 | [
"BSD-2-Clause"
] | null | null | null | CloakEngine/DX12VideoEncoder.cpp | Bizzarrus/CloakEngine | 0890eaada76b91be89702d2a6ec2dcf9b2901fb9 | [
"BSD-2-Clause"
] | null | null | null | #include "stdafx.h"
#include "Implementation/Rendering/DX12/VideoEncoder.h"
#include "Implementation/Rendering/DX12/Defines.h"
#include "CloakEngine/Helper/StringConvert.h"
#include "Engine/WindowHandler.h"
#include <mfapi.h>
#pragma comment(lib,"mfplat.lib")
#define DEL(x) delete x; x=nullptr
names... | 29.434483 | 128 | 0.603796 | Bizzarrus |
57ddb47f0bd82947a63be45ab733189aa89e8496 | 2,726 | cpp | C++ | XMPFiles/source/FormatSupport/AIFF/AIFFReconcile.cpp | colaub/XMP-Toolkit-SDK | 9e23134de315a4c5c9f00138d6c9e5e46d4ecb6a | [
"BSD-3-Clause"
] | 1 | 2020-06-26T02:37:27.000Z | 2020-06-26T02:37:27.000Z | XMPFiles/source/FormatSupport/AIFF/AIFFReconcile.cpp | colaub/XMP-Toolkit-SDK | 9e23134de315a4c5c9f00138d6c9e5e46d4ecb6a | [
"BSD-3-Clause"
] | 1 | 2021-02-23T11:31:21.000Z | 2021-02-23T11:31:21.000Z | XMPFiles/source/FormatSupport/AIFF/AIFFReconcile.cpp | colaub/XMP-Toolkit-SDK | 9e23134de315a4c5c9f00138d6c9e5e46d4ecb6a | [
"BSD-3-Clause"
] | 1 | 2020-05-31T06:12:11.000Z | 2020-05-31T06:12:11.000Z | // =================================================================================================
// Copyright Adobe
// Copyright 2010 Adobe
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it. ... | 41.30303 | 165 | 0.705062 | colaub |
57deb4ef90043fa98e9c4b3b347d0cf2a0f307ff | 652 | cpp | C++ | 1. White/2 Week/11. Annagrams/annagrams.cpp | freeraisor/yandexcplusplus | 9708fdb6cd7e039672ebc2e77f131fbc7a765750 | [
"MIT"
] | 14 | 2019-08-29T12:34:07.000Z | 2022-03-09T13:31:18.000Z | 1. White/2 Week/11. Annagrams/annagrams.cpp | freeraisor/yandexcplusplus | 9708fdb6cd7e039672ebc2e77f131fbc7a765750 | [
"MIT"
] | null | null | null | 1. White/2 Week/11. Annagrams/annagrams.cpp | freeraisor/yandexcplusplus | 9708fdb6cd7e039672ebc2e77f131fbc7a765750 | [
"MIT"
] | 8 | 2020-09-10T11:40:03.000Z | 2022-03-24T00:34:38.000Z | //
// Created by ilya on 16.07.19.
//
#include <map>
#include <iostream>
#include <string>
std::map<char, int> BuildHist(const std::string &s) {
std::map<char, int> res;
for (const auto& c : s) {
++res[c];
}
return res;
}
bool IsPalindrom(const std::string &s1, const std::string &s2) {
auto hist1 = Bui... | 18.628571 | 64 | 0.559816 | freeraisor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.